From 7fa8957563a0afb199309308e3e4a2fcb17346a9 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 1 Nov 2024 13:28:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B4=E6=8E=A5=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/record/directIssueByBatch.vue | 1 + src/pages/putaway/record/putawayRecord.vue | 1 + src/pages/scrap/record/scrapRecord.vue | 1 + src/pages/unPlanned/record/issueRecord.vue | 1 + src/pages/unPlanned/record/receiptRecord.vue | 1 + .../unPlanned/record/receiptRecordByBatch.vue | 47 +------------------ 6 files changed, 7 insertions(+), 45 deletions(-) diff --git a/src/pages/issue/record/directIssueByBatch.vue b/src/pages/issue/record/directIssueByBatch.vue index 50693045..9457e8aa 100644 --- a/src/pages/issue/record/directIssueByBatch.vue +++ b/src/pages/issue/record/directIssueByBatch.vue @@ -12,6 +12,7 @@ diff --git a/src/pages/putaway/record/putawayRecord.vue b/src/pages/putaway/record/putawayRecord.vue index 9ca0a5ce..afefd46d 100644 --- a/src/pages/putaway/record/putawayRecord.vue +++ b/src/pages/putaway/record/putawayRecord.vue @@ -18,6 +18,7 @@ diff --git a/src/pages/unPlanned/record/receiptRecordByBatch.vue b/src/pages/unPlanned/record/receiptRecordByBatch.vue index efeaf748..84342d1d 100644 --- a/src/pages/unPlanned/record/receiptRecordByBatch.vue +++ b/src/pages/unPlanned/record/receiptRecordByBatch.vue @@ -18,6 +18,7 @@ :dataContent="item" @removeItem="removeItem(index,item)" @updateData="updateData" :queryBalance="false" + :allowModifyQty="true" :isShowLocation="false" @removePack="removePack"> @@ -109,7 +110,6 @@ dataContent: {}, managementList: [], toLocationAreaTypeList:[], - managementType:import.meta.env.VITE_MANAGE_MODEL } }, @@ -137,50 +137,7 @@ this.toLocationCode = code; }, getScanResult(result) { - var managementTypeParams =this.managementType - if (managementTypeParams == "BY_BATCH" || managementTypeParams == "BY_QUANTITY") { - this.setDataBatch(result) - } else { - this.setData(result) - } - - }, - - setData(result){ - let label = result.label; - let pack = result.package; - var item = this.detailSource.find(res => { - if (res.itemCode == label.itemCode) { - return res - } - }) - if (item == undefined) { - var itemp = this.createItemInfo(label, pack); - let newDetail = this.createDetailInfo(label, pack); - itemp.subList.push(newDetail); - this.detailSource.push(itemp) - this.getfocus() - - } else { - var detail = item.subList.find(r => { - if (r.packingNumber == pack.number && - r.batch == pack.batch) { - return r; - } - }) - - if (detail == undefined) { - let newDetail = this.createDetailInfo(label, pack); - item.subList.push(newDetail); - this.getfocus() - } else { - if (detail.scaned) { - this.showErrorMessage("箱码[" + pack.number + "]批次[" + pack.batch + "]已经扫描") - } - - } - } - this.calcHandleQty(); + this.setDataBatch(result) }, setDataBatch(result){