From 8137a3546548f3616d8e12fc7a6db0b3cb66ef08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=9B=BD?= <854933521@qq.com> Date: Mon, 28 Oct 2024 10:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E6=96=99=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=89=A7=E8=A1=8C=E5=8A=9F=E8=83=BD=202024/8/6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/coms/comScanIssuePack.vue | 5 +++-- src/pages/issue/job/issueDetail.vue | 6 +++--- src/pages/issue/job/issueJob.vue | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/issue/coms/comScanIssuePack.vue b/src/pages/issue/coms/comScanIssuePack.vue index 7e58f6bd..fe365265 100644 --- a/src/pages/issue/coms/comScanIssuePack.vue +++ b/src/pages/issue/coms/comScanIssuePack.vue @@ -296,7 +296,7 @@ const queryBalance = (result)=>{ result.balance = res.data[0] if (result.label.packingNumber != result.balance.packingNumber) { - result.balance.lableQty = result.label.qty + result.balance.lableQty = Number(result.label.qty) } this.afterGetBalance(result.label, result.balance, result.package); } else { @@ -524,8 +524,9 @@ const creatRecord = (label, balance, packageInfo) => { packingNumber: label.packingNumber, parentPackingNumber: packageInfo.parentNumber, batch: label.batch, - qty: Number(balance.qty), + // qty: Number(balance.qty), // qty: Number(label.qty) > Number(balance.qty) ? Number(balance.qty) : Number(label.qty), + qty: balance.lableQty ?? Number(label.qty), uom: balance.uom, inventoryStatus: balance.inventoryStatus, balance, diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue index d9a1c097..4e043608 100644 --- a/src/pages/issue/job/issueDetail.vue +++ b/src/pages/issue/job/issueDetail.vue @@ -340,9 +340,9 @@ const afterScan = () => { submit() } else { comMessageRef.value.showQuestionMessage(`实际扫描数量【${totalHandleQty}】与物料需求数量【${item.qty}】不一致,是否继续提交`, (res) => { - if (res) { - submit() - } + // if (res) { + // submit() + // } }) } }) diff --git a/src/pages/issue/job/issueJob.vue b/src/pages/issue/job/issueJob.vue index 0838c4af..9a06edec 100644 --- a/src/pages/issue/job/issueJob.vue +++ b/src/pages/issue/job/issueJob.vue @@ -457,7 +457,8 @@ const getScanResult = (result) => { selectItem(list[0]) } } else { - showMessage(`物料号[${result.label.itemCode}]批次[${result.label.batch}]` + '未查找到任务
' + `扫描[${result.scanMessage}]`) + showMessage("按来源库位[" + balance.locationCode + "]批次[" + result.label.batch + + "]物料号[" + result.label.itemCode + "]未查找到任务
" + "扫描[" + result.scanMessage + "]") } }) .catch((error) => {