From a0ea3a8b7ec8f46a8c5a63aa6c00fdb7ae42d0ac Mon Sep 17 00:00:00 2001 From: jishenghua <752718920@qq.com> Date: Tue, 31 Dec 2024 00:29:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=A4=9A=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E5=95=86=E5=93=81=E9=80=89=E6=8B=A9=E5=A4=9A=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E6=8E=A5=E5=8F=A3=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/material/modules/MaterialModal.vue | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/jshERP-web/src/views/material/modules/MaterialModal.vue b/jshERP-web/src/views/material/modules/MaterialModal.vue index bd7637438..6ce8c25c1 100644 --- a/jshERP-web/src/views/material/modules/MaterialModal.vue +++ b/jshERP-web/src/views/material/modules/MaterialModal.vue @@ -834,21 +834,21 @@ this.skuThreeTitle = item.name } }) - getMaterialAttributeValueListById({'id': skuOneId}).then((res)=>{ - if(res) { - this.skuOneList = res - } - }) - getMaterialAttributeValueListById({'id': skuTwoId}).then((res)=>{ - if(res) { - this.skuTwoList = res - } - }) - getMaterialAttributeValueListById({'id': skuThreeId}).then((res)=>{ - if(res) { - this.skuThreeList = res - } - }) + if(skuOneId) { + getMaterialAttributeValueListById({'id': skuOneId}).then((res)=>{ + this.skuOneList = res? res:[] + }) + } + if(skuTwoId) { + getMaterialAttributeValueListById({'id': skuTwoId}).then((res)=>{ + this.skuTwoList = res? res:[] + }) + } + if(skuThreeId) { + getMaterialAttributeValueListById({'id': skuThreeId}).then((res)=>{ + this.skuThreeList = res? res:[] + }) + } } //控制条码列表中的多属性列 if(value.length>0) {