From b42abc4d58940bc6e74a867b67e7566835dbebcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 12 Jan 2026 10:43:39 +0800 Subject: [PATCH] =?UTF-8?q?fix(ProductSelect):=20=E8=BF=87=E6=BB=A4?= =?UTF-8?q?=E7=A9=BA=E5=AD=97=E7=AC=A6=E4=B8=B2ID=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E6=97=A0=E6=95=88=E8=AF=B7=E6=B1=82=20feat(wms):=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=92=A2=E5=8D=B7=E4=BF=A1=E6=81=AF=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=8F=8A=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../KLPService/ProductSelect/index.vue | 2 +- .../KLPService/RawMaterialSelect/index.vue | 3 +- klp-ui/src/views/wms/coil/do/correct.vue | 1124 +++++++++++++++++ 3 files changed, 1127 insertions(+), 2 deletions(-) create mode 100644 klp-ui/src/views/wms/coil/do/correct.vue diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 6f396765..d992b769 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -205,7 +205,7 @@ export default { this.recentLoading = true; // 从localstorage中获取缓存的ids const ids = localStorage.getItem('recentlySelectedProductIds') || ''; - const idsArray = ids.split(','); + const idsArray = ids.split(',').filter(id => id); if (idsArray.length === 0) return; const list = await Promise.all(idsArray.map(async id => { const response = await getProduct(id); diff --git a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue index 7b317379..6ed02a98 100644 --- a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue +++ b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue @@ -215,7 +215,8 @@ export default { this.recentLoading = true; // 从localstorage中获取缓存的ids const ids = localStorage.getItem('recentlySelectedRawMaterialIds') || ''; - const idsArray = ids.split(','); + const idsArray = ids.split(',').filter(id => id); + console.log('idsArray', idsArray, idsArray.length === 0); if (idsArray.length === 0) return; const list = await Promise.all(idsArray.map(async id => { const response = await getRawMaterial(id); diff --git a/klp-ui/src/views/wms/coil/do/correct.vue b/klp-ui/src/views/wms/coil/do/correct.vue new file mode 100644 index 00000000..56428531 --- /dev/null +++ b/klp-ui/src/views/wms/coil/do/correct.vue @@ -0,0 +1,1124 @@ + + + + + \ No newline at end of file