From 132c3c726b35cc675b733d5b027ee8520bf6c661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 4 Nov 2025 13:07:34 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat(=E5=90=88=E5=B9=B6=E9=92=A2=E5=8D=B7):?= =?UTF-8?q?=20=E6=B7=BB=E5=8A=A0=E5=AE=9E=E9=99=85=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- klp-ui/src/views/wms/coil/merge.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/klp-ui/src/views/wms/coil/merge.vue b/klp-ui/src/views/wms/coil/merge.vue index 9e3c6703..a6c83516 100644 --- a/klp-ui/src/views/wms/coil/merge.vue +++ b/klp-ui/src/views/wms/coil/merge.vue @@ -229,11 +229,13 @@ import { listRawMaterial } from '@/api/wms/rawMaterial'; import { listProduct } from '@/api/wms/product'; import { listPendingAction, completeAction } from '@/api/wms/pendingAction'; import CoilSelector from '@/components/CoilSelector'; +import ActualWarehouseSelect from "@/components/KLPService/ActualWarehouseSelect"; export default { name: 'MergeCoil', components: { - CoilSelector + CoilSelector, + ActualWarehouseSelect }, data() { return { From da73d23bfdf552167ea665ccddf332c4eebd21d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 4 Nov 2025 16:03:53 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E5=92=8C=E5=8E=9F=E6=9D=90=E6=96=99=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E7=BB=84=E4=BB=B6=E4=B8=AD=E9=BB=98=E8=AE=A4=E5=80=BC?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将空值时的默认值从数组改为空字符串,并统一使用getSku方法显示产品编码 --- klp-ui/src/components/KLPService/ProductSelect/index.vue | 4 ++-- klp-ui/src/components/KLPService/RawMaterialSelect/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index a091ae06..7bf381b3 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -7,7 +7,7 @@
未搜索到产品
+ :label="`${item.productName}(${getSku(item)})`" :value="item.productId">
{{ item.productName }} @@ -117,7 +117,7 @@ export default { value(val) { console.log(val, 'value'); if (!val) { - this.selected = []; + this.selected = ''; return; } if (this.multiple) { diff --git a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue index fe2cfb7e..5eddac8f 100644 --- a/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue +++ b/klp-ui/src/components/KLPService/RawMaterialSelect/index.vue @@ -7,7 +7,7 @@
未搜索到原材料
+ :label="`${item.rawMaterialName}(${getSku(item)})`" :value="item.rawMaterialId">
{{ item.rawMaterialName }} @@ -117,7 +117,7 @@ export default { watch: { value(val) { if (!val) { - this.selected = []; + this.selected = ''; return; } if (this.multiple) { From 9b2de4697740d6222680e88a46271b072576d6df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 4 Nov 2025 16:31:51 +0800 Subject: [PATCH 3/3] =?UTF-8?q?refactor(wms):=20=E4=BD=BF=E7=94=A8Material?= =?UTF-8?q?Select=E7=BB=84=E4=BB=B6=E6=9B=BF=E6=8D=A2=E7=89=A9=E5=93=81?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=92=8C=E7=89=A9=E5=93=81=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将typing.vue、merge.vue和split.vue中的物品类型和物品选择逻辑替换为MaterialSelect组件,简化代码并提高复用性 同时为ProductSelect组件添加width: 100%样式 --- .../KLPService/ProductSelect/index.vue | 2 +- klp-ui/src/views/wms/coil/merge.vue | 33 +++------------- klp-ui/src/views/wms/coil/split.vue | 38 +++---------------- klp-ui/src/views/wms/coil/typing.vue | 9 +++-- 4 files changed, 19 insertions(+), 63 deletions(-) diff --git a/klp-ui/src/components/KLPService/ProductSelect/index.vue b/klp-ui/src/components/KLPService/ProductSelect/index.vue index 7bf381b3..1d3d3055 100644 --- a/klp-ui/src/components/KLPService/ProductSelect/index.vue +++ b/klp-ui/src/components/KLPService/ProductSelect/index.vue @@ -1,7 +1,7 @@