diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue
index fb0f46e9..47038b41 100644
--- a/src/pages/inventoryMove/coms/comMoveRecord.vue
+++ b/src/pages/inventoryMove/coms/comMoveRecord.vue
@@ -11,6 +11,7 @@
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 1791dccc..9f5b8add 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){