From e83e6a4512945fda6c49a6331cb1afa5ba71e18f Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 21 Mar 2024 11:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=87=87=E8=B4=AD=E6=94=B6?= =?UTF-8?q?=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/purchaseReceipt/job/receiptDetail.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index 4b31684e..ef951402 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -203,6 +203,7 @@ that.jobStatus = res.data.status that.jobToLocationCode = that.subList[0].toLocationCode that.detailSource = getTreeDataSource(that.subList) + that.isAllReceived = false; } else { that.showMessage('列表数据为0'); } @@ -496,13 +497,26 @@ detail.handleQty = detail.qty; detail.toLocationCode = this.toLocationCode; detail.labelQty = detail.qty; + detail.packList.forEach(pack=>{ + pack.scaned = true; + pack.handleQty = Number(pack.qty); + pack.toLocationCode = this.toLocationCode; + }) }) }) console.log(JSON.stringify(this.detailSource)) calcHandleQty(this.detailSource); } else { - this.getDetail() + this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => { + if (res) { + + this.getDetail() + }else { + this.isAllReceived = true; + } + }); + } },