From 7f1f0aa4032ccddc48543c344f7f31328413ce86 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 4 Nov 2024 11:03:33 +0800 Subject: [PATCH] =?UTF-8?q?YT-650=E5=8F=91=E6=96=99=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=EF=BC=8C=E6=89=AB=E4=B8=8D=E5=9C=A8=E4=BB=BB=E5=8A=A1=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=EF=BC=8C=E7=9B=AE=E6=A0=87=E5=BA=93=E4=BD=8D=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=B8=A6=E5=87=BA=EF=BC=8C=E5=BA=94=E5=B8=A6=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/job/issueDetailBatch.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/pages/issue/job/issueDetailBatch.vue b/src/pages/issue/job/issueDetailBatch.vue index 346ed891..53061a4a 100644 --- a/src/pages/issue/job/issueDetailBatch.vue +++ b/src/pages/issue/job/issueDetailBatch.vue @@ -222,6 +222,7 @@ that.subList = res.data.subList; that.detailSource = getThreeDataSource(that.jobContent) that.jobContent.detailToLocationCode = res.data.subList[0].toLocationCode + that.toLocationCode= res.data.subList[0].toLocationCode that.fromLocationCode = that.subList[0].fromLocationCode //任务中已经扫描,模拟扫描赋值 if (this.scanMessage) { @@ -263,9 +264,7 @@ this.managementType = managementTypeParams if(managementTypeParams == "BY_BATCH" ||managementTypeParams == "BY_QUANTITY" ){ this.setDataBatch(result) - }else{ - this.setData(result) - } + } }, setDataBatch(result) { try { @@ -312,10 +311,11 @@ if (isExit == undefined) { // this.showErrorMessage("批次【" + batch + "】库位【" + result // .fromLocationCode + "】不在列表中") - + console.log(this.toLocationCode) detail.subList.push({ scaned:true, fromLocationCode:this.fromLocationCode, + toLocationCode:this.toLocationCode, batch:result.label.batch, handleQty:result.label.qty, qty:result.balance.qty, @@ -400,7 +400,9 @@ itemDetail.balanceQty=result.balance.qty itemDetail.uom=result.balance.uom itemDetail.packQty=result.package.packQty - itemDetail.packUnit=result.package.packUnit + itemDetail.packUnit=result.package.packUnit + itemDetail.fromlocationCode=this.fromLocationCode + itemDetail.toLocationCode=this.toLocationCode // itemDetail.toInventoryStatus = "OK" // itemDetail.packList.forEach(pac => { // pac.scaned = true