From b704be07a0ada060e4892d62c1f177c966ad7f81 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 30 Dec 2024 13:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E4=B8=AAasn=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E6=98=AF=E5=8F=AF=E4=BB=A5=E7=9A=84=EF=BC=8C=E4=BD=86=E6=98=AF?= =?UTF-8?q?=E5=A4=9A=E4=B8=AAASN=E6=94=B6=E8=B4=A7=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=B8=8D=E5=8F=AF=E4=BB=A5=EF=BC=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue b/src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue index 71c99f89..e1741be4 100644 --- a/src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue +++ b/src/pages/purchaseReceipt/job/purchaseReceiptAsn.vue @@ -397,7 +397,9 @@ count++ obj = {...item} obj.id = item.masterId - if(this.params.some(i => i.asnNumber == item.asnNumber)){ + let isHaveObj = this.params.find(i => i.asnNumber == item.asnNumber) + if(isHaveObj){ + console.log(22,isHaveObj) item.packageDOS.forEach(cur=>{ if(cur.scaned){ obj1 = { @@ -426,7 +428,7 @@ handleQty:cur.handleQty, qty:item.qty, } - obj.subList.push(obj1) + isHaveObj.subList.push(obj1) } }) }else{ @@ -462,6 +464,7 @@ obj.subList.push(obj1) } }) + console.log(obj) this.params.push(obj) } } @@ -472,6 +475,7 @@ str1 += `ASN单号【${item.asnNumber}】物料代码【${item.itemCode}】实际收货数量为0,\n` } }) + this.params.forEach(item=>{ delete item.packageDOS item.subList.forEach(cur=>{