From 354132d81aefb7e185f50b78c61740495210e8e5 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 13 Aug 2024 19:22:52 +0800 Subject: [PATCH 01/33] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=A1=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/common/comMessage.vue | 30 +++++++++++++++++++------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/src/mycomponents/common/comMessage.vue b/src/mycomponents/common/comMessage.vue index 85f72a16..5acb2266 100644 --- a/src/mycomponents/common/comMessage.vue +++ b/src/mycomponents/common/comMessage.vue @@ -12,16 +12,22 @@ - - - {{content}} - - - - + + + + + {{content}} + + + + + + + + - + {{ cancelText }} @@ -493,6 +499,7 @@ display: flex; //弹性布局 flex-direction: column; //垂直排列 align-items: center; //子元素居中 + margin: 8rpx; // background-image: url() } @@ -544,4 +551,11 @@ .def_text { color: $uni-color-primary; } + .text_content{ + padding: 10rpx; + font-size: 32rpx; + text-align: center; + word-break: break-all; + white-space: normal; + } From efa494646a47b3f565fe4053170b1c4b11acc2a7 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Tue, 13 Aug 2024 21:55:10 +0800 Subject: [PATCH 02/33] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerReturn/job/returnDetail.vue | 49 ++++++++++------- .../inventoryMove/job/inventoryMoveDetail.vue | 51 ++++++++++-------- .../job/productDismantleDetail.vue | 10 ++-- .../job/productPutawayDetail.vue | 10 ++-- .../job/completeReceiveJobDetail.vue | 10 ++-- .../job/productReceiptDetail.vue | 4 +- .../productReceipt/job/scrapReceiptDetail.vue | 43 ++++++++------- .../job/semiProductReceiptDetail.vue | 10 ++-- .../job/productRecycleJobDetail.vue | 52 +++++++++++-------- .../job/productionReceiptDetail.vue | 10 ++-- .../productionReturn/job/returnDetail.vue | 10 ++-- .../purchaseReceipt/job/receiptDetail.vue | 8 ++- src/pages/purchaseReturn/job/returnDetail.vue | 52 +++++++++++-------- src/pages/putaway/job/putawayDetail.vue | 10 ++-- src/pages/scrap/job/scrapJobDetail.vue | 51 ++++++++++-------- src/pages/transfer/job/issueDetail.vue | 10 ++-- src/pages/transfer/job/receiptDetail.vue | 11 ++-- src/pages/transfer/job/transferDetail.vue | 10 ++-- src/pages/unPlanned/job/issueJobDetail.vue | 50 ++++++++++-------- src/pages/unPlanned/job/receiptJobDetail.vue | 10 ++-- 20 files changed, 272 insertions(+), 199 deletions(-) diff --git a/src/pages/customerReturn/job/returnDetail.vue b/src/pages/customerReturn/job/returnDetail.vue index 21afb6d1..637d4376 100644 --- a/src/pages/customerReturn/job/returnDetail.vue +++ b/src/pages/customerReturn/job/returnDetail.vue @@ -339,17 +339,44 @@ if (!this.checkLocation()) { return } + + // //扫描数量和任务数量相等,直接提交 + if (this.scanCount == this.subList.length) { + this.checkCount(); + } else if (this.scanCount < this.subList.length) { + //扫描数量小于任务数量,判断是否允许部分提交 + if (this.jobContent.allowPartialComplete == "TRUE") { + //提交 + this.checkCount(); + } else { + //不允许部分提交,提示 + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { + if (res) { + this.openScanPopup(); + } + }); + } + } + }, + + checkCount(){ // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致` + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致` } }) }) if (str) { - str += ',是否确认提交?' + str = '任务明细未全部完成,是否提交?\n'+str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -358,24 +385,6 @@ } else { this.submitJob() } - // //扫描数量和任务数量相等,直接提交 - // if (this.scanCount == this.subList.length) { - // this.submitJob(); - // } else if (this.scanCount < this.subList.length) { - // //扫描数量小于任务数量,判断是否允许部分提交 - // if (this.jobContent.allowPartialComplete == "TRUE") { - // //提交 - // this.submitJob(); - // } else { - // //不允许部分提交,提示 - // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - // "]箱总共[" + this.subList.length + "]箱", res => { - // if (res) { - // this.openScanPopup(); - // } - // }); - // } - // } }, submitJob() { diff --git a/src/pages/inventoryMove/job/inventoryMoveDetail.vue b/src/pages/inventoryMove/job/inventoryMoveDetail.vue index ce81a5da..bf64c75a 100644 --- a/src/pages/inventoryMove/job/inventoryMoveDetail.vue +++ b/src/pages/inventoryMove/job/inventoryMoveDetail.vue @@ -354,17 +354,44 @@ this.showErrorMessage("扫描数为0,请先扫描") return; } + + //允许部分提交 + //扫描数量和任务数量相等,直接提交 + if (this.scanCount == this.subList.length) { + this.checkCount(); + } else if (this.scanCount < this.subList.length) { + //扫描数量小于任务数量,判断是否允许部分提交 + if (this.jobContent.allowPartialComplete == "TRUE") { + //提交 + this.checkCount(); + } else { + //不允许部分提交,提示 + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { + if (res) { + this.openScanPopup(); + } + }); + } + } + }, + checkCount(){ // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致` + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n` } }) }) if (str) { - str += ',是否确认提交?' + str = '任务明细未全部完成,是否提交?\n'+str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -373,26 +400,6 @@ } else { this.submitJob() } - // //允许部分提交 - // //扫描数量和任务数量相等,直接提交 - // if (this.scanCount == this.subList.length) { - // this.submitJob(); - // } else if (this.scanCount < this.subList.length) { - // //扫描数量小于任务数量,判断是否允许部分提交 - // if (this.jobContent.allowPartialComplete == "TRUE") { - // //提交 - // this.submitJob(); - // } else { - // //不允许部分提交,提示 - // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - // "]箱总共[" + this - // .subList.length + "]箱", res => { - // if (res) { - // this.openScanPopup(); - // } - // }); - // } - // } }, submitJob() { diff --git a/src/pages/productDismantle/job/productDismantleDetail.vue b/src/pages/productDismantle/job/productDismantleDetail.vue index e25735c9..27c9a7a6 100644 --- a/src/pages/productDismantle/job/productDismantleDetail.vue +++ b/src/pages/productDismantle/job/productDismantleDetail.vue @@ -342,12 +342,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/productPutaway/job/productPutawayDetail.vue b/src/pages/productPutaway/job/productPutawayDetail.vue index 1a970b6b..8cef3a48 100644 --- a/src/pages/productPutaway/job/productPutawayDetail.vue +++ b/src/pages/productPutaway/job/productPutawayDetail.vue @@ -404,12 +404,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/productReceipt/job/completeReceiveJobDetail.vue b/src/pages/productReceipt/job/completeReceiveJobDetail.vue index 2fb7b9aa..e591c1ed 100644 --- a/src/pages/productReceipt/job/completeReceiveJobDetail.vue +++ b/src/pages/productReceipt/job/completeReceiveJobDetail.vue @@ -302,12 +302,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.showMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + "]总共[" + this.subList - .length + - "]"); + this.showMessage("任务明细未全部完成,不允许部分提交!"); } } diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue index 24c63209..7a898713 100644 --- a/src/pages/productReceipt/job/productReceiptDetail.vue +++ b/src/pages/productReceipt/job/productReceiptDetail.vue @@ -378,8 +378,8 @@ var subItem = item.subList[i] if (calc.sub(subItem.handleQty, subItem.qty) < 0) { isCheck = false; - hint = "包装【" + subItem.packingNumber + "】实际收货数量:" + subItem.handleQty + "与包装数量" + subItem.qty + - "不相等,是否继续收货?" + hint = "包装【" + subItem.packingNumber + "】实际收货数量:[" + subItem.handleQty + "]与包装数量[" + subItem.qty + + "]不相等,是否继续收货?" break } } diff --git a/src/pages/productReceipt/job/scrapReceiptDetail.vue b/src/pages/productReceipt/job/scrapReceiptDetail.vue index 16cbdf0a..8970a98b 100644 --- a/src/pages/productReceipt/job/scrapReceiptDetail.vue +++ b/src/pages/productReceipt/job/scrapReceiptDetail.vue @@ -294,18 +294,41 @@ if (!this.checkLocation()) { return } + + // //扫描数量和任务数量相等,直接提交 + if (this.scanCount == this.subList.length) { + this.checkCount(); + } else if (this.scanCount < this.subList.length) { + //扫描数量小于任务数量,判断是否允许部分提交 + if (this.jobContent.allowPartialComplete == "TRUE") { + //提交 + this.checkCount(); + } else { + //不允许部分提交,提示 + this.showMessage("任务明细未全部完成,是否提交"); + } + } + }, + + checkCount(){ // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致` + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致` } }) }) if (str) { - str += ',是否确认提交?' + str = '任务明细未全部完成,是否提交?\n'+str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -314,22 +337,6 @@ } else { this.submitJob() } - // //扫描数量和任务数量相等,直接提交 - // if (this.scanCount == this.subList.length) { - // this.submitJob(); - // } else if (this.scanCount < this.subList.length) { - // //扫描数量小于任务数量,判断是否允许部分提交 - // if (this.jobContent.allowPartialComplete == "TRUE") { - // //提交 - // this.submitJob(); - // } else { - // //不允许部分提交,提示 - // this.showMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + "]总共[" + this.subList - // .length + - // "]"); - // } - // } - }, submitJob() { diff --git a/src/pages/productReceipt/job/semiProductReceiptDetail.vue b/src/pages/productReceipt/job/semiProductReceiptDetail.vue index 496a018c..d2fac2c1 100644 --- a/src/pages/productReceipt/job/semiProductReceiptDetail.vue +++ b/src/pages/productReceipt/job/semiProductReceiptDetail.vue @@ -302,12 +302,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.showMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + "]总共[" + this.subList - .length + - "]"); + this.showMessage("任务明细未全部完成,不允许部分提交!"); } } diff --git a/src/pages/productRecycle/job/productRecycleJobDetail.vue b/src/pages/productRecycle/job/productRecycleJobDetail.vue index 8908d9fa..f9c8bf00 100644 --- a/src/pages/productRecycle/job/productRecycleJobDetail.vue +++ b/src/pages/productRecycle/job/productRecycleJobDetail.vue @@ -318,17 +318,45 @@ this.showErrorMessage("扫描数为0,请先扫描") return; } + + // //允许部分提交 + // //扫描数量和任务数量相等,直接提交 + if (this.scanCount == this.subList.length) { + this.checkCount(); + } else if (this.scanCount < this.subList.length) { + //扫描数量小于任务数量,判断是否允许部分提交 + if (this.jobContent.allowPartialComplete == "TRUE") { + //提交 + this.checkCount(); + } else { + //不允许部分提交,提示 + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { + if (res) { + this.openScanPopup(); + } + }); + } + } + }, + + checkCount(){ // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致` + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致` } }) }) if (str) { - str += ',是否确认提交?' + str = '任务明细未全部完成,是否提交?\n'+str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -337,26 +365,6 @@ } else { this.submitJob() } - // //允许部分提交 - // //扫描数量和任务数量相等,直接提交 - // if (this.scanCount == this.subList.length) { - // this.submitJob(); - // } else if (this.scanCount < this.subList.length) { - // //扫描数量小于任务数量,判断是否允许部分提交 - // if (this.jobContent.allowPartialComplete == "TRUE") { - // //提交 - // this.submitJob(); - // } else { - // //不允许部分提交,提示 - // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - // "]箱总共[" + this - // .subList.length + "]箱", res => { - // if (res) { - // this.openScanPopup(); - // } - // }); - // } - // } }, submitJob() { diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index 967a3083..6270e88e 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -409,12 +409,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/productionReturn/job/returnDetail.vue b/src/pages/productionReturn/job/returnDetail.vue index 8bf54c4a..731d2a7d 100644 --- a/src/pages/productionReturn/job/returnDetail.vue +++ b/src/pages/productionReturn/job/returnDetail.vue @@ -349,12 +349,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/purchaseReceipt/job/receiptDetail.vue b/src/pages/purchaseReceipt/job/receiptDetail.vue index fa506e5a..7e7e6899 100644 --- a/src/pages/purchaseReceipt/job/receiptDetail.vue +++ b/src/pages/purchaseReceipt/job/receiptDetail.vue @@ -454,16 +454,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.$refs.comMessage.showQuestionMessage('还有未扫描的物料,是否继续提交?', res => { + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { if (res) { - this.submitJob(); + this.submitJob() } }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/purchaseReturn/job/returnDetail.vue b/src/pages/purchaseReturn/job/returnDetail.vue index 11708552..3c6f0907 100644 --- a/src/pages/purchaseReturn/job/returnDetail.vue +++ b/src/pages/purchaseReturn/job/returnDetail.vue @@ -350,17 +350,45 @@ this.showErrorMessage("扫描数为0,请先扫描") return; } + + //允许部分提交 + //扫描数量和任务数量相等,直接提交 + if (this.scanCount == this.subList.length) { + this.checkCount(); + } else if (this.scanCount < this.subList.length) { + //扫描数量小于任务数量,判断是否允许部分提交 + if (this.jobContent.allowPartialComplete == "TRUE") { + //提交 + this.checkCount(); + } else { + //不允许部分提交,提示 + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { + if (res) { + this.openScanPopup(); + } + }); + } + } + }, + + checkCount(){ // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致` + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致` } }) }) if (str) { - str += ',是否确认提交?' + str = '任务明细未全部完成,是否提交?\n'+str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -369,26 +397,6 @@ } else { this.submitJob() } - //允许部分提交 - //扫描数量和任务数量相等,直接提交 - // if (this.scanCount == this.subList.length) { - // this.submitJob(); - // } else if (this.scanCount < this.subList.length) { - // //扫描数量小于任务数量,判断是否允许部分提交 - // if (this.jobContent.allowPartialComplete == "TRUE") { - // //提交 - // this.submitJob(); - // } else { - // //不允许部分提交,提示 - // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - // "]箱总共[" + this - // .subList.length + "]箱", res => { - // if (res) { - // this.openScanPopup(); - // } - // }); - // } - // } }, submitJob() { diff --git a/src/pages/putaway/job/putawayDetail.vue b/src/pages/putaway/job/putawayDetail.vue index a9d9fbe2..80540675 100644 --- a/src/pages/putaway/job/putawayDetail.vue +++ b/src/pages/putaway/job/putawayDetail.vue @@ -452,12 +452,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/scrap/job/scrapJobDetail.vue b/src/pages/scrap/job/scrapJobDetail.vue index 13d08f94..f8a274ee 100644 --- a/src/pages/scrap/job/scrapJobDetail.vue +++ b/src/pages/scrap/job/scrapJobDetail.vue @@ -288,18 +288,44 @@ this.showErrorMessage("扫描数为0,请先扫描") return; } + + // //扫描数量和任务数量相等,直接提交 + if (this.scanCount == this.subList.length) { + this.checkCount(); + } else if (this.scanCount < this.subList.length) { + //扫描数量小于任务数量,判断是否允许部分提交 + if (this.jobContent.allowPartialComplete == "TRUE") { + //提交 + this.checkCount(); + } else { + //不允许部分提交,提示 + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { + if (res) { + this.openScanPopup(); + } + }); + } + } + }, + + checkCount(){ // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致` + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致` } }) }) if (str) { - str += ',是否确认提交?' - + str = '任务明细未全部完成,是否提交?\n'+str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -308,25 +334,6 @@ } else { this.submitJob() } - // //扫描数量和任务数量相等,直接提交 - // if (this.scanCount == this.subList.length) { - // this.submitJob(); - // } else if (this.scanCount < this.subList.length) { - // //扫描数量小于任务数量,判断是否允许部分提交 - // if (this.jobContent.allowPartialComplete == "TRUE") { - // //提交 - // this.submitJob(); - // } else { - // //不允许部分提交,提示 - // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - // "]箱总共[" + this - // .subList.length + "]箱", res => { - // if (res) { - // this.openScanPopup(); - // } - // }); - // } - // } }, submitJob() { diff --git a/src/pages/transfer/job/issueDetail.vue b/src/pages/transfer/job/issueDetail.vue index ac03934e..b0f8477b 100644 --- a/src/pages/transfer/job/issueDetail.vue +++ b/src/pages/transfer/job/issueDetail.vue @@ -333,12 +333,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/transfer/job/receiptDetail.vue b/src/pages/transfer/job/receiptDetail.vue index 82369338..0fce89d3 100644 --- a/src/pages/transfer/job/receiptDetail.vue +++ b/src/pages/transfer/job/receiptDetail.vue @@ -358,13 +358,14 @@ } else if (this.scanCount < this.subList.length) { //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { - //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/transfer/job/transferDetail.vue b/src/pages/transfer/job/transferDetail.vue index d362914a..2fd37fe0 100644 --- a/src/pages/transfer/job/transferDetail.vue +++ b/src/pages/transfer/job/transferDetail.vue @@ -368,13 +368,15 @@ async commit() { //允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { this.scanCount = this.getScanCount(); if (this.scanCount < this.subList.length) { - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } diff --git a/src/pages/unPlanned/job/issueJobDetail.vue b/src/pages/unPlanned/job/issueJobDetail.vue index 60aa60b6..0f8731ba 100644 --- a/src/pages/unPlanned/job/issueJobDetail.vue +++ b/src/pages/unPlanned/job/issueJobDetail.vue @@ -280,17 +280,44 @@ this.showErrorMessage("扫描数为0,请先扫描") return; } + + // //扫描数量和任务数量相等,直接提交 + if (this.scanCount == this.subList.length) { + this.checkCount(); + } else if (this.scanCount < this.subList.length) { + //扫描数量小于任务数量,判断是否允许部分提交 + if (this.jobContent.allowPartialComplete == "TRUE") { + //提交 + this.checkCount(); + } else { + //不允许部分提交,提示 + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { + if (res) { + this.openScanPopup(); + } + }); + } + } + }, + + checkCount(){ // 提交的数量和任务数量不一致提示 let str = '' this.detailSource.forEach((item) => { item.subList.forEach(cur => { if (cur.qty != cur.handleQty) { - str += `包装号【${cur.packingNumber}】提交数量【${cur.handleQty}】与任务物料数量【${cur.qty}】不一致` + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致` } }) }) if (str) { - str += ',是否确认提交?' + str = '任务明细未全部完成,是否提交?\n'+str this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { this.submitJob() @@ -299,25 +326,6 @@ } else { this.submitJob() } - // //扫描数量和任务数量相等,直接提交 - // if (this.scanCount == this.subList.length) { - // this.submitJob(); - // } else if (this.scanCount < this.subList.length) { - // //扫描数量小于任务数量,判断是否允许部分提交 - // if (this.jobContent.allowPartialComplete == "TRUE") { - // //提交 - // this.submitJob(); - // } else { - // //不允许部分提交,提示 - // this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - // "]箱总共[" + this - // .subList.length + "]箱", res => { - // if (res) { - // this.openScanPopup(); - // } - // }); - // } - // } }, diff --git a/src/pages/unPlanned/job/receiptJobDetail.vue b/src/pages/unPlanned/job/receiptJobDetail.vue index d9049d28..949ba2a7 100644 --- a/src/pages/unPlanned/job/receiptJobDetail.vue +++ b/src/pages/unPlanned/job/receiptJobDetail.vue @@ -261,12 +261,14 @@ //扫描数量小于任务数量,判断是否允许部分提交 if (this.jobContent.allowPartialComplete == "TRUE") { //提交 - this.submitJob(); + this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { + if (res) { + this.submitJob() + } + }); } else { //不允许部分提交,提示 - this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交\n' + "已经扫描[" + this.scanCount + - "]箱总共[" + this - .subList.length + "]箱", res => { + this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { if (res) { this.openScanPopup(); } From 069cad56ccf46aa46b0106b4629d15aeb66a0813 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 14 Aug 2024 09:15:23 +0800 Subject: [PATCH 03/33] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/httpRequest3.js | 4 +++- src/pages/login/index.vue | 23 +++++++++++++++-------- src/store/modules/user.js | 12 +++++------- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/api/httpRequest3.js b/src/api/httpRequest3.js index 81a84796..99e3086e 100644 --- a/src/api/httpRequest3.js +++ b/src/api/httpRequest3.js @@ -89,6 +89,8 @@ function service(options = {}) { message = '接口' + message.substr(message.length - 3) + '异常' } else if (message.includes('get lock')) { message = '接口' + "数据库死锁" + }else if(message.includes('statusCode:-1')){ + message = "当前设备无网络,请检查网络后重试" } reject("系统异常:" + message); console.log("系统异常", message) @@ -99,7 +101,7 @@ function service(options = {}) { const networkType = res.networkType; console.log("网络类型", networkType) if (networkType == "none") { - reject("当前无网络"); + reject("当前设备无网络,请检查网络后重试"); } else { uni.request(options); } diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 46030461..50420dd7 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -226,14 +226,21 @@ title: "正在登录", mask: true }) - await this.$store.dispatch('Login', logininfo); - // await this.$store.dispatch('GetTenantIdInfo', this.tenantName) - uni.hideLoading() - uni.setStorageSync('hasLogin', true) - uni.switchTab({ - url: '/pages/index/index' - }); - uni.setStorageSync('username', this.username); + try{ + var result = await this.$store.dispatch('Login', logininfo); + // await this.$store.dispatch('GetTenantIdInfo', this.tenantName) + console.log(result) + uni.hideLoading() + uni.setStorageSync('hasLogin', true) + uni.switchTab({ + url: '/pages/index/index' + }); + uni.setStorageSync('username', this.username); + }catch(e){ + uni.hideLoading() + this.showErrorMessage(e) + } + }, diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 509c9484..db0df418 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -59,16 +59,14 @@ const user = { storage.setStorage(storage.constant.token,res.accessToken) resolve(res) }else { - uni.showToast({ - title:res.msg - }) + if(res.msg){ + reject(res.msg) + }else { + reject("登录失败") + } } - }).catch(error => { reject(error) - uni.showToast({ - title:error - }) }) }) }, From 68ebff7d5af4db5f254af4beff3444ec4492d92d Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Wed, 14 Aug 2024 10:50:24 +0800 Subject: [PATCH 04/33] HL-4896 --- src/mycomponents/qty/balanceQtyEdit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mycomponents/qty/balanceQtyEdit.vue b/src/mycomponents/qty/balanceQtyEdit.vue index 741d2cc3..e4c8c031 100644 --- a/src/mycomponents/qty/balanceQtyEdit.vue +++ b/src/mycomponents/qty/balanceQtyEdit.vue @@ -36,7 +36,7 @@ 数量 : + @confirm="confirm()" @input="checkNum" :maxlength="maxlength" disabled :style="{background:'#f5f5f5',color:'#bbbbbb'}"/> From e9ed633dd0fab3037ff201ca81720cbe34bb7a96 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Wed, 14 Aug 2024 11:09:52 +0800 Subject: [PATCH 05/33] =?UTF-8?q?=E5=B0=81=E8=A3=85=E9=98=B2=E6=AD=A2?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E7=82=B9=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/noclick.js | 21 ++++++++++++++++++- src/main.js | 1 + src/pages/issue/record/directIssue.vue | 5 ++--- .../package/record/splitPackageRecord.vue | 2 +- 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/common/noclick.js b/src/common/noclick.js index 2c4191ee..6fe72a29 100644 --- a/src/common/noclick.js +++ b/src/common/noclick.js @@ -11,15 +11,34 @@ function noMultipleClicks(methods, info) { } else { methods(); } - setTimeout(()=> { + let timer = setTimeout(()=> { that.noClick= true; + clearTimeout(timer) }, 2000) } else { // 这里是重复点击的判断 } } + +// 节流函数 +const throttle = (fn, t,_this) => { + console.log('throttle') + return ()=> { + if (!_this.timer) { + _this.timer = setTimeout(()=>{ + fn() + console.log('fn') + //·清空定时器 + _this.timer = null + }, t) + } + } +} + + //导出 export default { noMultipleClicks,//禁止多次点击 + throttle } diff --git a/src/main.js b/src/main.js index 6344a1ab..6673bb74 100644 --- a/src/main.js +++ b/src/main.js @@ -36,6 +36,7 @@ export function createApp() { app.use(uView) app.component('comMessage', comMessage) app.config.globalProperties.$noMultipleClicks = noclick.noMultipleClicks; + app.config.globalProperties.$throttle = noclick.throttle; // startApp(app); return { app, diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue index 7d44bfd7..5970463b 100644 --- a/src/pages/issue/record/directIssue.vue +++ b/src/pages/issue/record/directIssue.vue @@ -5,10 +5,9 @@ - - 来源库位 : {{fromLocationCode}} + + 来源库位 : {{fromLocationCode}} - diff --git a/src/pages/package/record/splitPackageRecord.vue b/src/pages/package/record/splitPackageRecord.vue index bd4faefb..c4a93890 100644 --- a/src/pages/package/record/splitPackageRecord.vue +++ b/src/pages/package/record/splitPackageRecord.vue @@ -30,7 +30,7 @@ - + From 898276b3c36a17827de606e83b1d584327f48702 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 14 Aug 2024 11:31:02 +0800 Subject: [PATCH 06/33] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E6=96=99?= =?UTF-8?q?=E6=8E=A5=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../job/productionReceiptDetail.vue | 25 ++++++++++--------- .../job/productionReceiptJob.vue | 5 ++++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index 6270e88e..08e9e803 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -230,7 +230,8 @@ } //数量不相等,提示 if(noCommitInfo){ - this.showQuestionMessage("扫描数量["+noCommitInfo.handleQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ + var handQty =noCommitInfo.handleQty?noCommitInfo.handleQty:0 + this.showQuestionMessage("扫描数量["+handQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ if(res){ this.commit() } @@ -452,17 +453,17 @@ }); var params = this.setParams() console.log("提交参数", JSON.stringify(params)); - productionReceiptJobSubmit(params).then(res => { - uni.hideLoading() - if (res.data) { - this.showCommitSuccessMessage("提交成功\n生成发料接收记录\n" + res.data) - } else { - this.showErrorMessage("提交失败[" + res.msg + "]") - } - }).catch(error => { - uni.hideLoading() - this.showErrorMessage(error) - }) + // productionReceiptJobSubmit(params).then(res => { + // uni.hideLoading() + // if (res.data) { + // this.showCommitSuccessMessage("提交成功\n生成发料接收记录\n" + res.data) + // } else { + // this.showErrorMessage("提交失败[" + res.msg + "]") + // } + // }).catch(error => { + // uni.hideLoading() + // this.showErrorMessage(error) + // }) // var itemCodes = [] diff --git a/src/pages/productionReceipt/job/productionReceiptJob.vue b/src/pages/productionReceipt/job/productionReceiptJob.vue index c92ec8f5..fe5f82a4 100644 --- a/src/pages/productionReceipt/job/productionReceiptJob.vue +++ b/src/pages/productionReceipt/job/productionReceiptJob.vue @@ -373,6 +373,11 @@ action: "in", value: result.package.number + "," + result.package.parentNumber }, + { + column: "status", + action: "in", + value: '1,2' + }, { column: "batch", action: "==", From 1395fb75231f68a5ad62b70d0b4f267e1e534eed Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 14 Aug 2024 14:29:19 +0800 Subject: [PATCH 07/33] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=89=AB=E6=8F=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/scan/winComScan.vue | 55 +++++++++---------- src/pages/package/coms/comScanPackagePack.vue | 4 +- 2 files changed, 28 insertions(+), 31 deletions(-) diff --git a/src/mycomponents/scan/winComScan.vue b/src/mycomponents/scan/winComScan.vue index fc2c00ee..0a55bf5f 100644 --- a/src/mycomponents/scan/winComScan.vue +++ b/src/mycomponents/scan/winComScan.vue @@ -4,15 +4,11 @@ - - - + + + - + @@ -37,8 +33,7 @@ - + @@ -59,7 +54,7 @@ - + + \ No newline at end of file diff --git a/src/mycomponents/query/showListItem.vue b/src/mycomponents/query/showListItem.vue new file mode 100644 index 00000000..b0d21c0c --- /dev/null +++ b/src/mycomponents/query/showListItem.vue @@ -0,0 +1,84 @@ + + + + + \ No newline at end of file diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue index 86dad12a..a9f1c41f 100644 --- a/src/pages/issue/record/directIssue.vue +++ b/src/pages/issue/record/directIssue.vue @@ -48,7 +48,7 @@ - + @@ -99,8 +99,8 @@ import recordDetailCard from '@/mycomponents/record/recordDetailCard.vue' import balanceSelect from '@/mycomponents/balance/balanceSelect.vue' import winComScanBalance from '@/mycomponents/scan/winComScanBalance.vue' - import balanceQuery from '@/mycomponents/query/balanceQuery.vue' - + // import balanceQuery from '@/mycomponents/query/balanceQuery.vue' + export default { components: { @@ -114,7 +114,7 @@ recordDetailCard, balanceSelect, winComScanBalance, - balanceQuery + // balanceQuery }, data() { return { @@ -160,13 +160,14 @@ // } }, - + //返回首页 onNavigationBarButtonTap(e) { if (e.index === 0) { goHome(); } else if (e.index == 1) { - this.$refs.refBalanceQuery.showDrawer(); + // this.$refs.refBalanceQuery.showDrawer(); + // this.closeScanPopup(); } }, //拦截返回按钮事件 @@ -177,27 +178,10 @@ mounted() {}, methods: { - showDrawer() { - this.$refs.showRight.open(); - }, - closeDrawer() { - this.$refs.showRight.close(); - }, - - showDrawer() { - this.$refs.showRight.open(); - }, - closeDrawer() { - this.$refs.showRight.close(); - }, - - showDrawer() { - this.$refs.showRight.open(); - }, - closeDrawer() { - this.$refs.showRight.close(); - }, - + // showDrawer() { + // this.$refs.showRight.open(); + // }, + getBusinessType() { getBusinessType(this.businessTypeCode, res => { if (res.success) { diff --git a/src/pages/productionReceipt/job/productionReceiptDetail.vue b/src/pages/productionReceipt/job/productionReceiptDetail.vue index faa85925..1e246e2a 100644 --- a/src/pages/productionReceipt/job/productionReceiptDetail.vue +++ b/src/pages/productionReceipt/job/productionReceiptDetail.vue @@ -218,28 +218,33 @@ autoCommit(){ //判断数量是否相等 var noCommitInfo=null - for (var i = 0; i < this.detailSource.length; i++) { - var sub =this.detailSource[i].subList - for(var j=0;j { + item.subList.forEach(cur => { + if (cur.qty != cur.handleQty) { + var tempHandleQty =0 + if(cur.handleQty){ + tempHandleQty=cur.handleQty + }else { + tempHandleQty =0 + } + str += `包装号【${cur.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${cur.qty}】不一致\n` } - } - } - //数量不相等,提示 - if(noCommitInfo){ - var handQty =noCommitInfo.handleQty?noCommitInfo.handleQty:0 - this.showQuestionMessage("扫描数量["+handQty+"]任务数量["+noCommitInfo.qty+"]不一致,是否提交?",res=>{ - if(res){ + }) + }) + + if (str) { + str = '任务明细未全部完成,是否提交?\n'+str + this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { + if (res) { this.commit() } - }) - }else { - //提交 + }); + } else { this.commit() } + }, //继续扫描 diff --git a/src/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue b/src/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue index 71350340..8d29656b 100644 --- a/src/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue +++ b/src/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue @@ -16,9 +16,10 @@ + :hover-stay-time="70" @click="clickLeft" + style="margin-right: 70rpx;"> @@ -319,7 +320,14 @@ this.showTableInspectDTOList = this.data1.inspectDTOList } console.log(233, this.showTableInspectDTOList) - } + }, + showMessage(message) { + this.$refs.comMessage.showMessage(message, res => { + if (res) { + + } + }); + }, }, watch: { isLoadFinish: { @@ -364,6 +372,12 @@ this.tabIndex =2 } this.getTableInspectDTOList() + }).catch(error=>{ + this.$refs.comMessage.showMessage(error, res => { + if (res) { + + } + }); }) } From b21fbc2f76dd49ce80ad3644ec3c6662f02b77d6 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 15 Aug 2024 19:14:52 +0800 Subject: [PATCH 22/33] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E5=8D=95=E5=9B=9E?= =?UTF-8?q?=E9=80=80=E5=88=B0=E6=B2=A1=E6=9C=89=E6=8F=90=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manifest.json | 6 +- src/pages/pointPutawayJob/index.vue | 99 +++++++++++++++-------------- 2 files changed, 53 insertions(+), 52 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index 82cae880..c5464834 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -1,10 +1,10 @@ { "name" : "wms", "package" : "uni.UNI43932FE", - "appid" : "__UNI__C9CF4BF", + "appid" : "__UNI__F36DDCF", "description" : "", - "versionName" : "1.0.60", - "versionCode" : 60, + "versionName" : "1.0.62", + "versionCode" : 62, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/src/pages/pointPutawayJob/index.vue b/src/pages/pointPutawayJob/index.vue index df63a6e8..82418c03 100644 --- a/src/pages/pointPutawayJob/index.vue +++ b/src/pages/pointPutawayJob/index.vue @@ -41,9 +41,9 @@ 抽检数量 {{item.sampleQty}} - + @@ -207,7 +207,46 @@ this.readFile(htmlFileUrl1, (htmlContent) => { this.newHtmlContent1 = htmlContent this.data1.inspectDTOList.forEach(item => { - if(!item.haveInspectionRequest){ + // if(!item.haveInspectionRequest){ + // str += ` + //

+ //
+ //
Q
+ // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + // + //
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}供应商批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
未生成检验申请
+ //
+ //
+ // ` + // }else{ str += `

@@ -238,51 +277,12 @@ 抽检数量 ${item.sampleQty} - - 未生成检验申请 -
` - }else{ - str += ` -

-
-
Q
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}供应商批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
-
-
- ` - } + // } }) this.newHtmlContent1 = this.newHtmlContent1.replace( @@ -372,13 +372,14 @@ this.tabIndex =2 } this.getTableInspectDTOList() - }).catch(error=>{ - this.$refs.comMessage.showMessage(error, res => { - if (res) { - - } - }); }) + // .catch(error=>{ + // this.$refs.comMessage.showMessage(error, res => { + // if (res) { + + // } + // }); + // }) } this.getPointPutawayJobHtml() From 9eb9161274a10d7e0fbac3c12c11ca171e46cf20 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 15 Aug 2024 20:21:58 +0800 Subject: [PATCH 23/33] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E5=8D=95=E6=96=87?= =?UTF-8?q?=E5=AD=97=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manifest.json | 4 ++-- src/pages/pointPutawayJob/index.vue | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/manifest.json b/src/manifest.json index c5464834..3da3f3cc 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -3,8 +3,8 @@ "package" : "uni.UNI43932FE", "appid" : "__UNI__F36DDCF", "description" : "", - "versionName" : "1.0.62", - "versionCode" : 62, + "versionName" : "1.0.63", + "versionCode" : 63, "transformPx" : false, /* 5+App特有相关 */ "app-plus" : { diff --git a/src/pages/pointPutawayJob/index.vue b/src/pages/pointPutawayJob/index.vue index 82418c03..67f69a46 100644 --- a/src/pages/pointPutawayJob/index.vue +++ b/src/pages/pointPutawayJob/index.vue @@ -35,12 +35,6 @@ 抽检数量 {{item.sampleQty}} - - 到货数量 - {{item.quantityQty}} - 抽检数量 - {{item.sampleQty}} - From 2fb8148b9f27badc27ad7cd6822e5a082bbd7dd2 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Thu, 15 Aug 2024 20:39:07 +0800 Subject: [PATCH 24/33] =?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 | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/pages/issue/job/issueDetail.vue b/src/pages/issue/job/issueDetail.vue index ba6a0030..374ef22a 100644 --- a/src/pages/issue/job/issueDetail.vue +++ b/src/pages/issue/job/issueDetail.vue @@ -284,7 +284,6 @@ getManagementPrecisions(itemCodes, locationCode, res => { if (res.success) { this.managementList = res.list; - console.log("自动提交submitJob") this.submitJob(); } else { uni.hideLoading(); @@ -463,8 +462,11 @@ } else { tempHandleQty = 0 } - str += - `包装号【${record.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${batch.qty}】不一致\n` + if (batch.qty != 0) { + str += + `包装号【${record.packingNumber}】提交数量【${tempHandleQty}】与任务物料数量【${batch.qty}】不一致\n` + } + } }) }) @@ -477,15 +479,15 @@ this.$refs.comMessage.showQuestionMessage1(str, 'red', res => { if (res) { //防止重复点击 - this.$throttle(this.submit,2000,this)() + this.$throttle(this.submit, 2000, this)() } else { this.scanPopupGetFocus() } }); } else { //防止重复点击 - this.$throttle(this.submit,2000,this)() - + this.$throttle(this.submit, 2000, this)() + } }, From 14061c3dc9d938a45513ed17ea884b4b2f0fc1b4 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Thu, 15 Aug 2024 21:04:39 +0800 Subject: [PATCH 25/33] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=9C=80=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/pointPutawayJob/index.vue | 98 ++++++++++++++--------------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/src/pages/pointPutawayJob/index.vue b/src/pages/pointPutawayJob/index.vue index 67f69a46..dab39818 100644 --- a/src/pages/pointPutawayJob/index.vue +++ b/src/pages/pointPutawayJob/index.vue @@ -35,9 +35,9 @@ 抽检数量 {{item.sampleQty}} - +
@@ -201,46 +201,46 @@ this.readFile(htmlFileUrl1, (htmlContent) => { this.newHtmlContent1 = htmlContent this.data1.inspectDTOList.forEach(item => { - // if(!item.haveInspectionRequest){ - // str += ` - //

- //
- //
Q
- // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - //
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}供应商批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
未生成检验申请
- //
- //
- // ` - // }else{ + if(!item.haveInspectionRequest){ + str += ` +

+
+
Q
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
物料代码:${item.itemCode}
物料名称${item.itemName}发货单号${this.data1.asnNumber}
供应商${item.supplierCode}供应商批次${item.supplierBatch}
到货数量${item.quantityQty}抽检数量${item.sampleQty}
未生成检验申请
+
+
+ ` + }else{ str += `

@@ -276,7 +276,7 @@
` - // } + } }) this.newHtmlContent1 = this.newHtmlContent1.replace( @@ -367,13 +367,13 @@ } this.getTableInspectDTOList() }) - // .catch(error=>{ - // this.$refs.comMessage.showMessage(error, res => { - // if (res) { + .catch(error=>{ + this.$refs.comMessage.showMessage(error, res => { + if (res) { - // } - // }); - // }) + } + }); + }) } this.getPointPutawayJobHtml() From 22d90fa4c13c56847615b08a5a20d30754ad3c2a Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 16 Aug 2024 08:52:34 +0800 Subject: [PATCH 26/33] =?UTF-8?q?=E7=9B=AE=E6=A0=87=E5=BA=93=E4=BD=8D?= =?UTF-8?q?=E5=92=8C=E7=8A=B6=E6=80=81=E9=83=BD=E4=B8=80=E8=87=B4=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E5=8F=AF=E4=BB=A5=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventoryMove/coms/comMoveRecord.vue | 48 +++++++++++++------ 1 file changed, 34 insertions(+), 14 deletions(-) diff --git a/src/pages/inventoryMove/coms/comMoveRecord.vue b/src/pages/inventoryMove/coms/comMoveRecord.vue index 89863e59..690ddbff 100644 --- a/src/pages/inventoryMove/coms/comMoveRecord.vue +++ b/src/pages/inventoryMove/coms/comMoveRecord.vue @@ -372,20 +372,7 @@ getPrecisionStrategyList(precisionStrategParams, res => { if (res.success) { this.managementList = res.list; - var params = this.setParams() - console.log("提交" + JSON.stringify(params)) - inventoryMoveRecordSubmit(params).then(res => { - uni.hideLoading() - if (res.data) { - this.showCommitSuccessMessage("提交成功\n生成" + this.title + "\n" + - res.data) - } else { - this.showErrorMessage("提交失败[" + res.msg + "]") - } - }).catch(error => { - uni.hideLoading() - this.showErrorMessage(error) - }) + this.submit() } else { uni.hideLoading(); this.showErrorMessage(res.message); @@ -398,6 +385,39 @@ } }, + + submit(){ + //目标库位和状态都一致时不可以提交 + var params = this.setParams() + let hint="" + this.dataContent.subList.forEach(res=>{ + if(res.fromLocationCode==res.toLocationCode&& + res.fromInventoryStatus&&res.toInventoryStatus){ + hint +=`包装号【${res.fromPackingNumber}】来源库位与目标库位 来源状态与目标状态一致,不可以提交\n` + } + }) + if(hint){ + uni.hideLoading() + this.$refs.comMessage.showQuestionMessage1(hint, 'red', res => { + if (res) { + } + }); + return; + } + console.log("提交" + JSON.stringify(params)) + inventoryMoveRecordSubmit(params).then(res => { + uni.hideLoading() + if (res.data) { + this.showCommitSuccessMessage("提交成功\n生成" + this.title + "\n" + + res.data) + } else { + this.showErrorMessage("提交失败[" + res.msg + "]") + } + }).catch(error => { + uni.hideLoading() + this.showErrorMessage(error) + }) + }, setPrecisionStrategParams() { var itemList = [] From 06bc901945557c883b1566ee32cc13e2bee5e97b Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 16 Aug 2024 09:15:03 +0800 Subject: [PATCH 27/33] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=8F=91=E6=96=99=E6=89=AB=E6=8F=8F=E7=84=A6=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/issue/record/directIssue.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/issue/record/directIssue.vue b/src/pages/issue/record/directIssue.vue index a9f1c41f..02938feb 100644 --- a/src/pages/issue/record/directIssue.vue +++ b/src/pages/issue/record/directIssue.vue @@ -268,7 +268,9 @@ showErrorMessage(message) { this.$refs.comMessage.showErrorMessage(message, res => { - if (res) {} + if (res) { + this.scanPopupGetFocus() + } }); }, From 7113fa4c29f02801d4c77ec5ee800d4cd202c04f Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 16 Aug 2024 10:35:15 +0800 Subject: [PATCH 28/33] =?UTF-8?q?HL-5275=20=E7=9B=B4=E6=8E=A5=E7=A7=BB?= =?UTF-8?q?=E5=BA=93=E6=89=AB=E6=8F=8F=E7=AC=AC=E4=B8=80=E4=B8=AA=E7=AE=B1?= =?UTF-8?q?=E7=AD=BE=E5=90=8E=EF=BC=8C=E5=9C=A8=E6=89=AB=E6=8F=8F=E7=AC=AC?= =?UTF-8?q?=E4=BA=8C=E4=B8=AA=E6=97=B6=E6=B2=A1=E6=9C=89=E5=85=89=E6=A0=87?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=EF=BC=8C=E9=9C=80=E8=A6=81=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E6=89=AB=E6=8F=8F=E6=A1=86=E6=89=8D=E8=83=BD=E7=BB=A7=E7=BB=AD?= =?UTF-8?q?=E6=89=AB=E6=8F=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mycomponents/scan/winScanPackAndLocation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mycomponents/scan/winScanPackAndLocation.vue b/src/mycomponents/scan/winScanPackAndLocation.vue index e958c8d4..d7504bf6 100644 --- a/src/mycomponents/scan/winScanPackAndLocation.vue +++ b/src/mycomponents/scan/winScanPackAndLocation.vue @@ -434,7 +434,7 @@ balance: item, fromLocationCode: this.fromLocationCode, } - // this.packGetFocus(); + this.packGetFocus(); this.$emit("getResult", data); }, From 908af9994956ae634c3876fe255837b5f0683e4c Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 16 Aug 2024 13:10:08 +0800 Subject: [PATCH 29/33] =?UTF-8?q?HL-5359=20=E5=9C=A8=E5=BC=80=E5=85=B3?= =?UTF-8?q?=E8=A1=A8=E4=B8=AD=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=85=B3=EF=BC=9A?= =?UTF-8?q?semiProductReceipCommitValidate=EF=BC=8C=E5=9C=A8=E9=A2=84?= =?UTF-8?q?=E7=94=9F=E4=BA=A7=E5=AE=8C=E5=B7=A5=E6=94=B6=E8=B4=A7=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=8F=90=E4=BA=A4=E6=97=B6=E6=A0=B9=E6=8D=AE=E5=BC=80?= =?UTF-8?q?=E5=85=B3=E6=A0=A1=E9=AA=8C=E6=98=AF=E5=90=A6=E8=A6=81=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E7=9B=AE=E6=A0=87=E5=BA=93=E4=BD=8D=EF=BC=8C=E5=A6=82?= =?UTF-8?q?=E6=9E=9C=E4=B8=8D=E6=89=AB=E6=8F=8F=E7=9B=AE=E6=A0=87=E5=BA=93?= =?UTF-8?q?=E4=BD=8D=E5=8F=96=E4=BB=BB=E5=8A=A1=E4=B8=AD=E7=9A=84=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E5=BA=93=E4=BD=8D=EF=BC=8C=E5=8F=82=E8=80=83=E8=A3=85?= =?UTF-8?q?=E9=85=8D=E4=BB=BB=E5=8A=A1=E4=B8=AD=E7=9A=84fgProductReceipCom?= =?UTF-8?q?mitValidate=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.vue | 2 +- .../job/productReceiptDetail.vue | 20 +++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 8fb3b6c7..1fa86ce7 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -388,7 +388,7 @@ console.log("包装规格获取失败", res) }) - var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated"; + var switchCode="FgPutawayLocationCodeValidate,SemiPutawayLocationCodeValidate,PurchasePutawayToLocationCodeValidate,IssueToLocationCodeValidate,fgProductReceipCommitValidate,semiProductReceipCommitValidate,purchasereceiptPrintPDA,purchaseReceiptLocationCodeValidate,CreateProductputawayRequestAfterProductreceiptRecordCreated"; getSwitchByCode(switchCode).then(res=>{ uni.setStorageSync("switch", res.data) diff --git a/src/pages/productReceipt/job/productReceiptDetail.vue b/src/pages/productReceipt/job/productReceiptDetail.vue index 7a898713..1c6c3cb3 100644 --- a/src/pages/productReceipt/job/productReceiptDetail.vue +++ b/src/pages/productReceipt/job/productReceiptDetail.vue @@ -85,7 +85,8 @@ import { goHome, navigateBack, - getPackingNumberAndBatch, + getPackingNumberAndBatch, + getSwitchInfoByCode } from '@/common/basic.js'; import { @@ -334,18 +335,21 @@ }); }, - commit() { + commit() { this.scanCount = getScanCount(this.subList); if (this.scanCount == 0) { this.showErrorMessage("扫描数为0,请先扫描") return; + } + var valiDate = getSwitchInfoByCode("semiProductReceipCommitValidate") + //校验库位、 + if(valiDate){ + if (!this.checkLocation()) { + return + } + }else{ + this.toLocationCode = this.jobToLocationCode } - //校验库位、 - if (!this.checkLocation()) { - return - } - - //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { if (this.checkCount()) { From 110767de2ade859596c77b47a4d5a0490d84f7ce Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Fri, 16 Aug 2024 14:50:22 +0800 Subject: [PATCH 30/33] =?UTF-8?q?HL-4766=20=E5=9C=A8WMS=E7=9A=84=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E5=92=8CPDA=E7=9A=84=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E9=A1=B5=E9=9D=A2=E5=8F=96=E6=B6=88=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/request2.js | 2 +- src/pages/login/index.vue | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/api/request2.js b/src/api/request2.js index f654afbd..8dc5ef33 100644 --- a/src/api/request2.js +++ b/src/api/request2.js @@ -19,7 +19,7 @@ export function getCaptchaImage(params) { */ export function login(username, password, code, uuid, tenantName) { return request({ - url: baseApi + '/system/auth/login', + url: baseApi + '/system/auth/loginNoCode', headers: { isToken: false }, diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 50420dd7..71ac4b30 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -65,13 +65,13 @@
- + - + @@ -119,7 +119,8 @@ imageSrc: "", code: "", uuid: "", - version: "" + version: "", + needCode:false } }, // computed: mapState(['forcedLogin', 'hasLogin']), @@ -185,13 +186,15 @@ icon: 'none', mask: true }) - } else if (this.code === '') { + } + else if (this.needCode&&this.code === '') { uni.showToast({ title: '验证码不能为空', icon: 'none', mask: true }) - } else { + } + else { // console.log("用户名:", this.username, "密码:", this.password, this.tapstyle, this.smloginmsg) let logininfo = { username: "", From 61d96a6582861ea729837ece9822a2ea70d64807 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Fri, 16 Aug 2024 14:57:22 +0800 Subject: [PATCH 31/33] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A2=84=E7=94=9F?= =?UTF-8?q?=E4=BA=A7=E4=B8=8A=E6=9E=B6=E6=89=AB=E6=8F=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../record/productPutawayRecord.vue | 48 +++++++++++-------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/src/pages/productPutaway/record/productPutawayRecord.vue b/src/pages/productPutaway/record/productPutawayRecord.vue index 1c98771d..d3362b7d 100644 --- a/src/pages/productPutaway/record/productPutawayRecord.vue +++ b/src/pages/productPutaway/record/productPutawayRecord.vue @@ -1,10 +1,10 @@