From 803a1f4418ba0ec101d46fecb73bdbc0ef99b01a Mon Sep 17 00:00:00 2001 From: linfso Date: Fri, 17 May 2024 11:09:09 +0800 Subject: [PATCH] md --- src/directive/common/lazyLoadChild.js | 25 + .../emis/EmisBaseTools/GoodsSimplePicker.vue | 110 ++ src/views/emis/emisCountry/index.vue | 2 +- .../emis/emisWaybill/emisWaybillDetail.vue | 865 ++++++++++ .../emis/emisWaybill/emisWaybillModify.vue | 1492 +++++++++++++++++ .../emis/emisWaybill/orderRecord copy.vue | 1148 +++++++++++++ 6 files changed, 3641 insertions(+), 1 deletion(-) create mode 100644 src/directive/common/lazyLoadChild.js create mode 100644 src/views/emis/EmisBaseTools/GoodsSimplePicker.vue create mode 100644 src/views/emis/emisWaybill/emisWaybillDetail.vue create mode 100644 src/views/emis/emisWaybill/emisWaybillModify.vue create mode 100644 src/views/emis/emisWaybill/orderRecord copy.vue diff --git a/src/directive/common/lazyLoadChild.js b/src/directive/common/lazyLoadChild.js new file mode 100644 index 00000000..a81c033d --- /dev/null +++ b/src/directive/common/lazyLoadChild.js @@ -0,0 +1,25 @@ +export default function lazyLoadChild(maxFrameCount) { + return { + data() { + return { + frameCount: 0, + }; + }, + mounted() { + const refreshFrame = () => { + requestAnimationFrame(() => { + this.frameCount++; + if (this.frameCount < maxFrameCount) { + refreshFrame(); + } + }); + }; + refreshFrame(); + }, + methods: { + deferItem(showFrameCount) { + return this.frameCount >= showFrameCount; + }, + }, + }; +} diff --git a/src/views/emis/EmisBaseTools/GoodsSimplePicker.vue b/src/views/emis/EmisBaseTools/GoodsSimplePicker.vue new file mode 100644 index 00000000..9d063ab1 --- /dev/null +++ b/src/views/emis/EmisBaseTools/GoodsSimplePicker.vue @@ -0,0 +1,110 @@ + + + + + diff --git a/src/views/emis/emisCountry/index.vue b/src/views/emis/emisCountry/index.vue index 16803166..1f0569fe 100644 --- a/src/views/emis/emisCountry/index.vue +++ b/src/views/emis/emisCountry/index.vue @@ -167,7 +167,7 @@ - +