From 17453d538a5324c4efddd2d27b29960a6403053f Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 4 Jul 2024 09:30:07 +0800 Subject: [PATCH 01/17] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A5=E6=96=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/balance/balanceSelect.vue | 4 ++-- src/mycomponents/scan/winScanPackAndLocation.vue | 2 +- src/pages/repleinsh/record/directRepleinshRecord.vue | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/mycomponents/balance/balanceSelect.vue b/src/mycomponents/balance/balanceSelect.vue index 15589b5b..931f3adc 100644 --- a/src/mycomponents/balance/balanceSelect.vue +++ b/src/mycomponents/balance/balanceSelect.vue @@ -3,10 +3,10 @@ - + - + diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index 55b5397e..124dea86 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -160,7 +160,7 @@ } this.fromInventoryStatuses = getDirectoryItemArray(this.businessType.outInventoryStatuses) this.inventoryStatus = getDirectoryItemArray(this.businessType.outInventoryStatuses); //出库库存状态 - this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.fromLocationAreaTypeList); //出库库区 + this.fromLocationAreaTypeList = getDirectoryItemArray(this.businessType.outAreaTypes); //出库库区 if (!this.show) { setTimeout(res => { this.$refs.popup.open('bottom') diff --git a/src/pages/repleinsh/record/directRepleinshRecord.vue b/src/pages/repleinsh/record/directRepleinshRecord.vue index 1bf861a3..4054b102 100644 --- a/src/pages/repleinsh/record/directRepleinshRecord.vue +++ b/src/pages/repleinsh/record/directRepleinshRecord.vue @@ -131,7 +131,6 @@ getBusinessType(this.businessTypeCode, res => { if (res.success) { this.businessType = res.businessType; - res.fromLocationAreaTypeList.push("INSPECT","SUPPER") this.fromLocationAreaTypeList = res.fromLocationAreaTypeList; this.toLocationAreaTypeList = res.toLocationAreaTypeList; this.showFromLocationPopup(); From 2ff626ac13e8fb1849845bb01d0db021e2a4bbe9 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 4 Jul 2024 19:18:30 +0800 Subject: [PATCH 02/17] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=87=E8=B4=A7?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=89=AB=E6=8F=8F=E5=85=B6=E4=BB=96=E6=89=B9?= =?UTF-8?q?=E6=AC=A1=E9=80=89=E4=B8=8D=E4=B8=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/deliver/coms/comScanDeliverPack.vue | 2 +- .../productionReturn/coms/comScanReturnPack.vue | 8 ++++---- src/pages/stockUp/coms/comScanStockUpPack.vue | 16 ++++++++-------- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/pages/deliver/coms/comScanDeliverPack.vue b/src/pages/deliver/coms/comScanDeliverPack.vue index 2b30bafa..c0e522eb 100644 --- a/src/pages/deliver/coms/comScanDeliverPack.vue +++ b/src/pages/deliver/coms/comScanDeliverPack.vue @@ -342,7 +342,7 @@ ) } } else { - if (this.jobContent.AllowModifyBatch == null) { + if (this.jobContent.allowModifyBatch == "TRUE") { this.showQuestionMessage('在【' + that.fromLocationCode + '】库位下,未查找到批次【' + lot + '】的发货明细,是否要继续发货?', res => { if (res) { diff --git a/src/pages/productionReturn/coms/comScanReturnPack.vue b/src/pages/productionReturn/coms/comScanReturnPack.vue index 2f11c595..3e3b0115 100644 --- a/src/pages/productionReturn/coms/comScanReturnPack.vue +++ b/src/pages/productionReturn/coms/comScanReturnPack.vue @@ -321,11 +321,11 @@ ) } } else { - if (this.jobContent.AllowModifyBatch == null) { + if (this.jobContent.allowModifyBatch == "TRUE") { this.showQuestionMessage('在【' + that.fromLocationCode + '】库位下,未查找到批次【' + lot + '】的发料明细,是否要继续发料?', res => { if (res) { - let batch = that.createBatchInfo(label, balance); + let batch = that.createBatchInfo(label, balance,packageInfo); fromLocation.Batchs.unshift(batch); } }) @@ -352,7 +352,7 @@ } }, - createBatchInfo(data, balance) { + createBatchInfo(data, balance,packageInfo) { let batch = { batch: data.lot, qty: 0, @@ -360,7 +360,7 @@ handleQty: Number(data.qty), Records: [] } - let record = this.creatRecord(data, balance); + let record = this.creatRecord(data, balance,packageInfo); batch.Records.push(record); this.issueRecord.unshift(record) return batch; diff --git a/src/pages/stockUp/coms/comScanStockUpPack.vue b/src/pages/stockUp/coms/comScanStockUpPack.vue index 6e2942e8..4f09dcbf 100644 --- a/src/pages/stockUp/coms/comScanStockUpPack.vue +++ b/src/pages/stockUp/coms/comScanStockUpPack.vue @@ -279,13 +279,13 @@ import { getDirectoryItemArray } from '../../../common/directory.js'; this.showBalanceSelect(balanceRes.data.list, packageInfo); } } else { - this.showErrorMessage(balanceRes.message.message); + this.showErrorMessage(balanceRes.message); } uni.hideLoading(); }); } - } catch (e) { - this.showErrorMessage(e.stack) + } catch (error) { + this.showErrorMessage(error) uni.hideLoading(); } }, @@ -340,11 +340,11 @@ import { getDirectoryItemArray } from '../../../common/directory.js'; ) } } else { - if (this.jobContent.AllowModifyBatch == null) { + if (this.jobContent.allowModifyBatch == "TRUE") { this.showQuestionMessage('在【' + that.fromLocationCode + '】库位下,未查找到批次【' + lot + '】的发货明细,是否要继续发货?', res => { if (res) { - let batch = that.createBatchInfo(label, balance); + let batch = that.createBatchInfo(label, balance,packageInfo); fromLocation.Batchs.unshift(batch); } }) @@ -371,15 +371,15 @@ import { getDirectoryItemArray } from '../../../common/directory.js'; } }, - createBatchInfo(data, balance) { + createBatchInfo(data, balance,packageInfo) { let batch = { - batch: data.lot, + batch: data.batch, qty: 0, uom: data.uom, handleQty: Number(data.qty), Records: [] } - let record = this.creatRecord(data, balance); + let record = this.creatRecord(data, balance,packageInfo); batch.Records.push(record); this.issueRecord.unshift(record) return batch; From a462aa455349ae86b865116fb00a7961729c350c Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 5 Jul 2024 10:52:07 +0800 Subject: [PATCH 03/17] =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E7=BF=BB=E5=8C=85=20?= =?UTF-8?q?=E4=B8=8D=E6=89=AB=E6=8F=8F=E5=BA=93=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/scan/winComScanBalance.vue | 215 ++++++++++++++++++ .../package/record/overPackageRecord.vue | 111 +++++---- 2 files changed, 282 insertions(+), 44 deletions(-) create mode 100644 src/mycomponents/scan/winComScanBalance.vue diff --git a/src/mycomponents/scan/winComScanBalance.vue b/src/mycomponents/scan/winComScanBalance.vue new file mode 100644 index 00000000..393f0cbc --- /dev/null +++ b/src/mycomponents/scan/winComScanBalance.vue @@ -0,0 +1,215 @@ + + + + + \ No newline at end of file diff --git a/src/pages/package/record/overPackageRecord.vue b/src/pages/package/record/overPackageRecord.vue index 6a4e7d4f..228630f9 100644 --- a/src/pages/package/record/overPackageRecord.vue +++ b/src/pages/package/record/overPackageRecord.vue @@ -1,7 +1,8 @@ + @@ -71,7 +74,8 @@ + \ No newline at end of file diff --git a/src/pages/query/location.vue b/src/pages/query/location.vue index cb61e4e9..a4a330a9 100644 --- a/src/pages/query/location.vue +++ b/src/pages/query/location.vue @@ -1,28 +1,27 @@