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] =?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) {