From c00e48b75ba97ae811ffe639e59f9b174dc8600c Mon Sep 17 00:00:00 2001 From: zhang_li Date: Thu, 17 Apr 2025 10:35:12 +0800 Subject: [PATCH] =?UTF-8?q?YT-2450pda=E7=9B=B4=E6=8E=A5=E5=8F=91=E6=96=99?= =?UTF-8?q?=EF=BC=8C=E6=8F=90=E7=A4=BA=E6=9C=AA=E6=89=BE=E5=88=B0=E5=AF=B9?= =?UTF-8?q?=E5=BA=94=E7=94=9F=E4=BA=A7=E7=BA=BF=E5=90=8E=EF=BC=8C=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E7=A1=AE=E5=AE=9A=EF=BC=8C=E5=9C=A8=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8C=89=E9=92=AE=EF=BC=8C=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E6=88=90=E5=8A=9F=EF=BC=8C=E6=8F=90=E7=A4=BA=E6=B2=A1=E6=89=BE?= =?UTF-8?q?=E5=88=B0=E5=90=8E=E5=BA=94=E4=B8=8D=E8=B5=8B=E5=80=BC=E5=88=B0?= =?UTF-8?q?=E7=9B=AE=E6=A0=87=E5=BA=93=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/record/directIssueByBatch.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue index 2de95518..462e4122 100644 --- a/src/pages/issue/record/directIssueByBatch.vue +++ b/src/pages/issue/record/directIssueByBatch.vue @@ -440,6 +440,15 @@ if(array.length>0){ this.positionInfo = array[0].productionLineCode this.workStationCode = array[0].workshopCode + this.toLocationCode = code + this.detailSource.forEach(item => { + item.subList.forEach(detail => { + detail.toLocationCode = code + detail.productionLineCode = this.positionInfo + detail.workStationCode = this.workStationCode + }) + }) + }else{ this.showErrorMessage("未查询到库位对应的生产线,请重新扫描。") } @@ -455,14 +464,6 @@ this.showErrorMessage(res.mag) return } - this.toLocationCode = code - this.detailSource.forEach(item => { - item.subList.forEach(detail => { - detail.toLocationCode = code - detail.productionLineCode = this.positionInfo - detail.workStationCode = this.workStationCode - }) - }) },