From 8b7c4acc0f96a90705d198f86c82dec4ef68477f Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Sat, 17 Aug 2024 09:11:55 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E6=96=99?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/job/issueDetail.vue | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue index 374ef22a..76a209e7 100644 --- a/src/pages/issue/job/issueDetail.vue +++ b/src/pages/issue/job/issueDetail.vue @@ -32,7 +32,7 @@ - + @@ -449,9 +449,15 @@ afterScan() { this.resizeCollapse(); - let str = "" + this.autoCommit() + }, + + autoCommit(){ + var totalQty =0; + var taskQty =0; this.detailSource.forEach(detail => { detail.Items.forEach(item => { + taskQty =calc.add(taskQty,item.qty) item.Locations.forEach(lco => { lco.Batchs.forEach(batch => { batch.Records.forEach(record => { @@ -466,16 +472,23 @@ str += `包装号【${record.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${batch.qty}】不一致\n` } - } + if(record){ + var hanleQty =record.qty?record.qty:0 + totalQty = calc.add(totalQty,hanleQty) + } + }) }) }) }) }) - - if (str) { + + if(str){ str = '任务明细未全部完成,是否提交?\n' + str + } + if(totalQty!=taskQty){ + str ="扫描数量["+totalQty+"]与任务数量不一致["+taskQty+"],是否提交" this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { //防止重复点击 @@ -484,10 +497,9 @@ this.scanPopupGetFocus() } }); - } else { + }else { //防止重复点击 this.$throttle(this.submit, 2000, this)() - } }, From c8727798e28372d1bfa5b026b4ef1eb4e9dcfa96 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Sat, 17 Aug 2024 10:59:29 +0800 Subject: [PATCH 2/7] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=81=AF=E7=A0=81?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/scan/winComScanFg.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mycomponents/scan/winComScanFg.vue b/src/mycomponents/scan/winComScanFg.vue index b8772969..92a94549 100644 --- a/src/mycomponents/scan/winComScanFg.vue +++ b/src/mycomponents/scan/winComScanFg.vue @@ -188,6 +188,11 @@ // let productDate = content.substr(lengthMat, 8); // let batch = content.substr(lengthMat + 8, 3); let order = content.substr(-8); + if(content.length!=lengthBc){ + that.clear(); + throw new Error("解析错误:扫描标签长度与配置条码的长度不一致") + } + if (scanPartNumber != partNumber) { that.clear(); throw new Error("解析错误:扫描的客户物料号【" + scanPartNumber + From 7b5f7f91d4dde7bdc070a9e7d6834d72ee32f66a Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Sat, 17 Aug 2024 11:00:06 +0800 Subject: [PATCH 3/7] =?UTF-8?q?=E9=A2=84=E7=94=9F=E4=BA=A7=E3=80=81?= =?UTF-8?q?=E8=A3=85=E9=85=8D=E4=B8=8A=E6=9E=B6=E6=A0=A1=E9=AA=8C=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/scan/winScanPackage.vue | 48 +++++++++++++++---- .../record/productPutawayRecord.vue | 20 ++++---- 2 files changed, 46 insertions(+), 22 deletions(-) diff --git a/src/mycomponents/scan/winScanPackage.vue b/src/mycomponents/scan/winScanPackage.vue index e751e5f4..eb7f074a 100644 --- a/src/mycomponents/scan/winScanPackage.vue +++ b/src/mycomponents/scan/winScanPackage.vue @@ -32,7 +32,13 @@ import { getBalanceByFilter } from '@/api/request2.js'; - + + import { + getInventoryStatusDesc, + getDirectoryItemArray, + getLocationAreaTypeName + } from '@/common/directory.js'; + export default { name: 'winScanPack', components: { @@ -55,7 +61,8 @@ data() { return { show: false, - businessType: null + businessType: null, + scanResult:{} } }, created() { @@ -104,6 +111,7 @@ getScanResult(result) { if (result.success) { + this.scanResult=result this.getBalance(result, res => { result.balance = res; this.$emit("getResult", result); @@ -130,14 +138,14 @@ value: this.businessType.outInventoryStatuses }) } - if (this.businessType.outAreaTypes != null) { + if (this.businessType.outAreaTypes ) { filters.push({ column: "areaType", action: "in", value: this.businessType.outAreaTypes }) } - if (this.businessType.outAreaCodes != null) { + if (this.businessType.outAreaCodes ) { filters.push({ column: "areaCode", action: "in", @@ -146,6 +154,30 @@ } return filters; }, + + getQueryCondition() { + let condition = '按照以下条件:\n'; + let label = this.scanResult.label; + let status = getInventoryStatusDesc(getDirectoryItemArray(this.businessType.outInventoryStatuses)); + let areaType =getLocationAreaTypeName(this.businessType.outAreaTypes) + condition = condition + '物料号=[' + label.itemCode + + ']\n箱码=[' + label.packingNumber + + ']\n批次=[' + + label.batch + + ']' + + if (status) { + condition = condition + '\n库存状态=[' + status + ']' + } + + if (areaType) { + condition = condition + '\n库区类型=[' + areaType + ']' + } + if (this.businessType.outAreaCodes) { + condition = condition + '\n库区代码=[' + this.businessType.outAreaCodes + ']' + } + return condition; + }, getBalance(result, callback) { let filters = []; @@ -201,9 +233,7 @@ params.filters = filters; getBalanceByFilter(params).then(res1 => { if (res1.data.list.length == 0) { - this.showErrorMessage('未查找到该包装的库存余额', res => { - this.packGetFocus(); - }) + this.showErrorMessage(this.getQueryCondition()+'\n未查找到该包装的库存余额') } else { res1.data.list.forEach(r => r.parentPackingNumber = packageInfo.number) callback(res1.data.list) @@ -212,9 +242,7 @@ this.showErrorMessage(err.message); }) } else { - this.showErrorMessage('未查找到该包装的库存余额', res => { - this.packGetFocus(); - }) + this.showErrorMessage(this.getQueryCondition()+'\n未查找到该包装的库存余额') } } }).catch(err => { diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue index d3362b7d..31cc12c5 100644 --- a/src/pages/productPutaway/record/productPutawayRecord.vue +++ b/src/pages/productPutaway/record/productPutawayRecord.vue @@ -147,6 +147,7 @@ getScanResult(result) { let label = result.label; let pack = result.package; + let errorHint="" result.balance.forEach( balance => { let item = this.detailSource.find(res => { @@ -180,14 +181,19 @@ item.subList.push(newDetail); } else { if (detail.scaned == true) { - this.showErrorMessage("箱码[" + balance.packingNumber + "批次[" + balance.batch + - "]重复扫描") + errorHint+="箱码[" + balance.packingNumber + "批次[" + balance.batch + + "]重复扫描\n" } } } this.calcHandleQty(); } ) + if(errorHint){ + this.showErrorMessage(errorHint) + }else { + this.scanPopupGetFocus() + } }, getRecommendLocation(balance) { @@ -251,9 +257,6 @@ this.$forceUpdate(); }, - updateData() { - this.calcHandleQty(); - }, removeItem(index, item) { this.removeRecommendLocation([item.expectinNumber]); this.detailSource.splice(index, 1) @@ -423,13 +426,6 @@ if (res) {} }); }, - showErrorMessage(message) { - this.$refs.comMessage.showErrorMessage(message, res => { - if (res) { - - } - }); - }, showScanMessage(message) { this.$refs.comMessage.showScanMessage(message); From 1c1628290c33a1661ff24c7806d91912fb0bb66d Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Sat, 17 Aug 2024 11:04:20 +0800 Subject: [PATCH 4/7] =?UTF-8?q?HL-5369=E7=89=A9=E6=96=99=E9=9A=94=E7=A6=BB?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=EF=BC=8CPDA=E5=A2=9E=E5=8A=A0=E7=89=A9?= =?UTF-8?q?=E6=96=99=E5=8F=B7=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/inventoryMove/coms/comMoveJob.vue | 47 +++++++++++++++++-- .../inventoryMove/job/okToHoldMoveJob.vue | 2 +- 2 files changed, 44 insertions(+), 5 deletions(-) diff --git a/src/pages/inventoryMove/coms/comMoveJob.vue b/src/pages/inventoryMove/coms/comMoveJob.vue index fd6ab5f2..7446bf81 100644 --- a/src/pages/inventoryMove/coms/comMoveJob.vue +++ b/src/pages/inventoryMove/coms/comMoveJob.vue @@ -1,9 +1,9 @@