From 78e0b7caedbe984a31a261b49f075530519e0bdf Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 18 Sep 2024 13:09:19 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E7=A1=AE=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerReturn/record/recordListDetail.vue | 4 +++- src/pages/itemHold/record/recordListDetail.vue | 4 +++- .../productionReturn/record/returnToHoldRecordListDetail.vue | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/pages/customerReturn/record/recordListDetail.vue b/src/pages/customerReturn/record/recordListDetail.vue index f9711e93..52516c3f 100644 --- a/src/pages/customerReturn/record/recordListDetail.vue +++ b/src/pages/customerReturn/record/recordListDetail.vue @@ -372,7 +372,9 @@ this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => { if (res) { this.getDetail() - } + } else { + this.isAllReceived=true + } }); } diff --git a/src/pages/itemHold/record/recordListDetail.vue b/src/pages/itemHold/record/recordListDetail.vue index eff60b19..f2ff58d3 100644 --- a/src/pages/itemHold/record/recordListDetail.vue +++ b/src/pages/itemHold/record/recordListDetail.vue @@ -378,7 +378,9 @@ this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => { if (res) { this.getDetail() - } + } else { + this.isAllReceived=true + } }); } diff --git a/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue b/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue index 478c9878..d67d1c1f 100644 --- a/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue +++ b/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue @@ -377,7 +377,9 @@ this.$refs.comMessage.showQuestionMessage("是否要关闭整单收货?", res => { if (res) { this.getDetail() - } + } else { + this.isAllReceived=true + } }); } From 83587497242b3f438a6f3776122e0f1b49da3be7 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 18 Sep 2024 13:10:19 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E5=AE=8C=E5=B7=A5=E5=92=8C=E6=97=A0=E8=AE=A1=E5=88=92=E5=AE=8C?= =?UTF-8?q?=E5=B7=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/fg/coms/comNoReceiptPopup.vue | 45 +++++++++++++++++++++++-- src/pages/fg/coms/comReceiptPopup.vue | 43 +++++++++++++++++++++-- src/pages/fg/receiptByPlan.vue | 37 +++++++++----------- src/pages/fg/receiptNoPlan.vue | 35 ++++++++++++------- 4 files changed, 121 insertions(+), 39 deletions(-) diff --git a/src/pages/fg/coms/comNoReceiptPopup.vue b/src/pages/fg/coms/comNoReceiptPopup.vue index fbc31272..63530f70 100644 --- a/src/pages/fg/coms/comNoReceiptPopup.vue +++ b/src/pages/fg/coms/comNoReceiptPopup.vue @@ -99,6 +99,29 @@ + + + + 创建检验申请 + + + + + + + + + + + 创建上架申请 + + + + + + @@ -159,7 +182,6 @@ showProductLineSelect: false, productLineList: [], productionLineName: "请选择生产线", - productLineCode: "", batch: "", packUnitName: "请选择包装规格", packUnit: "", @@ -177,7 +199,8 @@ rawLocationCode: "", workshop: "", bomVersion: "", - uom: "" + putAwayRequestSwitch:true, + putAwayInspectSwitch:true } }, props: { @@ -226,6 +249,8 @@ this.rawLocationCode = "" this.workshop = "" this.bomVersion ="" + this.putAwayRequestSwitch=true, + this.putAwayInspectSwitch=true }, @@ -289,7 +314,10 @@ fgLocationCode: this.fgLocationCode, rawLocationCode: this.rawLocationCode, workshop: this.workshop, - bomVersion :this.bomVersion + bomVersion :this.bomVersion, + putAwayRequestSwitch:this.putAwayRequestSwitch, + putAwayInspectSwitch:this.putAwayInspectSwitch + }; this.closeRequestPopup(); this.$emit("confirm", item); @@ -477,6 +505,17 @@ return item.label } }, + switchPutAwayRequest(value){ + console.log(value) + console.log("打印"+this.putAwayRequestSwitch) + this.putAwayRequestSwitch =value; + }, + + switchPutAwayInspect(value){ + console.log(value) + this.putAwayInspectSwitch =value; + } + } } diff --git a/src/pages/fg/coms/comReceiptPopup.vue b/src/pages/fg/coms/comReceiptPopup.vue index 9ce9c4f6..a90eae41 100644 --- a/src/pages/fg/coms/comReceiptPopup.vue +++ b/src/pages/fg/coms/comReceiptPopup.vue @@ -95,6 +95,27 @@ + + + + 创建检验申请 + + + + + + + + + + 创建上架申请 + + + + + @@ -170,7 +191,9 @@ showDateSelect: false, planDateList: [], fgLocationCode: "", - rawLocationCode: "" + rawLocationCode: "", + putAwayRequestSwitch:true, + putAwayInspectSwitch:true } }, props: { @@ -218,6 +241,8 @@ this.planDateList = [] this.fgLocationCode = "" this.rawLocationCode = "" + this.putAwayRequestSwitch=true + this.putAwayInspectSwitch=true }, @@ -274,7 +299,9 @@ planNumber: this.planNumber, workStationCode: this.workStationCode, fgLocationCode: this.fgLocationCode, - rawLocationCode: this.rawLocationCode + rawLocationCode: this.rawLocationCode, + putAwayRequestSwitch:this.putAwayRequestSwitch, + putAwayInspectSwitch:this.putAwayInspectSwitch }; this.closeRequestPopup(); this.$emit("confirm", item); @@ -370,6 +397,8 @@ // this.packUnitList = [] this.itemCodeList = []; this.showSelectItemCode(); + this.putAwayRequestSwitch=true + this.putAwayInspectSwitch=true }, showItemList() { @@ -508,6 +537,16 @@ return item.label } }, + switchPutAwayRequest(value){ + console.log(value) + console.log("打印"+this.putAwayRequestSwitch) + this.putAwayRequestSwitch =value; + }, + + switchPutAwayInspect(value){ + console.log(value) + this.putAwayInspectSwitch =value; + } } } diff --git a/src/pages/fg/receiptByPlan.vue b/src/pages/fg/receiptByPlan.vue index 9e2bf839..f95bec5a 100644 --- a/src/pages/fg/receiptByPlan.vue +++ b/src/pages/fg/receiptByPlan.vue @@ -211,6 +211,8 @@ packUnit: result.packUnit, workStationCode: result.workStationCode, fgLocationCode: result.fgLocationCode, + putAwayRequestSwitch:result.putAwayRequestSwitch, + putAwayInspectSwitch:result.putAwayInspectSwitch subList: [] } }, @@ -301,27 +303,6 @@ throw new Error("提交失败") } - //装配收货记录 生成后 创建 制品上架申请 - let createProductputawaySwitch = getSwitchInfoByCode( - "CreateProductputawayRequestAfterProductreceiptRecordCreated") - // if (createProductputawaySwitch) { - // createPutawayRequestByPlan(list[0].requestNumber).then(res => { - // createInspectRequestByPlan(list[0].requestNumber) - // }) - // } - //创建上架申请和检验申请 - if (createProductputawaySwitch) { - if (list.length > 0 && list[0].requestNumber) { - createPutawayRequestByPlan(list[0].requestNumber).then(res => { - createInspectRequestByPlan(list[0].requestNumber) - }) - } - } else { //创建检验申请 - if (list.length > 0 && list[0].requestNumber) { - createInspectRequestByPlan(list[0].requestNumber) - } - } - var queryParams = { filters: [{ column: "number", @@ -371,6 +352,20 @@ nextTick(() => { this.showCommitSuccessMessage(hintMsg, list) }) + + //创建上架申请 + if(this.dataContent.putAwayRequestSwitch){ + if(list.length>0&&list[0].requestNumber){ + createPutawayRequestByPlan(list[0].requestNumber) + } + } + + //创建检验申请 + if(this.dataContent.putAwayInspectSwitch){ + if(list.length>0&&list[0].requestNumber){ + createInspectRequestByPlan(list[0].requestNumber) + } + } } catch (error) { uni.hideLoading() diff --git a/src/pages/fg/receiptNoPlan.vue b/src/pages/fg/receiptNoPlan.vue index 25cb7dcb..7e875bf3 100644 --- a/src/pages/fg/receiptNoPlan.vue +++ b/src/pages/fg/receiptNoPlan.vue @@ -149,7 +149,7 @@ index: 1, loadingType: "", pageSize: 20, - scanedQty: 0 + scanedQty: 0, }; }, @@ -210,7 +210,9 @@ bomVersion: result.bomVersion, workshop: result.workshop, team: "", - shift: "" + shift: "", + putAwayRequestSwitch:result.putAwayRequestSwitch, + putAwayInspectSwitch:result.putAwayInspectSwitch } }, @@ -273,7 +275,7 @@ let list = [] var planData = await planReceiptSubmit(params) - if (planData.data) { + if (planData.data&&planData.data.length>0) { planData.data.forEach(item => { list.push({ itemCode: item.itemCode, // 物品代码 @@ -296,18 +298,25 @@ } else { throw new Error("提交失败") } - - let createProductputawaySwitch = getSwitchInfoByCode( - "CreateProductputawayRequestAfterProductreceiptRecordCreated") - //创建上架申请和检验申请 - if (createProductputawaySwitch) { - createPutawayRequestByPlan(list[0].requestNumber).then(res => { + //创建上架申请 + if(this.dataContent.putAwayRequestSwitch){ + if(list.length>0&&list[0].requestNumber){ + createPutawayRequestByPlan(list[0].requestNumber) + } + } + + //创建检验申请 + if(this.dataContent.putAwayInspectSwitch){ + if(list.length>0&&list[0].requestNumber){ createInspectRequestByPlan(list[0].requestNumber) - }) - } else { //创建检验申请 - createInspectRequestByPlan(list[0].requestNumber) + } } - this.showCommitSuccessMessage("提交成功\n生成装配收货记录\n" + list[0].requestNumber, list) + var hintMsg ="提交成功\n生成装配收货记录\n"; + if(list.length>0&&list[0].requestNumber){ + hintMsg += list[0].requestNumber + } + + this.showCommitSuccessMessage(hintMsg, list) this.scanedQty = this.scanedQty + this.showList.length; this.showList = []; this.dataContent.handleQty = 0; From fd22a28faeaa32d5b965acfe14472cdc2650096c Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 18 Sep 2024 13:44:37 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E6=94=B6?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/customerReturn/record/recordListDetail.vue | 3 +++ src/pages/itemHold/record/recordListDetail.vue | 3 +++ .../productionReturn/record/returnToHoldRecordListDetail.vue | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/pages/customerReturn/record/recordListDetail.vue b/src/pages/customerReturn/record/recordListDetail.vue index 52516c3f..58584d3c 100644 --- a/src/pages/customerReturn/record/recordListDetail.vue +++ b/src/pages/customerReturn/record/recordListDetail.vue @@ -178,6 +178,8 @@ //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { this.receiveDisable = false; + }else { + this.receiveDisable = true; } }, @@ -193,6 +195,7 @@ updateData() { this.calcHandleQty(); + this.updateBtn() }, openDetail(item) { diff --git a/src/pages/itemHold/record/recordListDetail.vue b/src/pages/itemHold/record/recordListDetail.vue index f2ff58d3..ea26fb72 100644 --- a/src/pages/itemHold/record/recordListDetail.vue +++ b/src/pages/itemHold/record/recordListDetail.vue @@ -183,6 +183,8 @@ //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { this.receiveDisable = false; + }else { + this.receiveDisable = true; } }, @@ -198,6 +200,7 @@ updateData() { this.calcHandleQty(); + this.updateBtn() }, openDetail(item) { diff --git a/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue b/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue index d67d1c1f..cf85c4e0 100644 --- a/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue +++ b/src/pages/productionReturn/record/returnToHoldRecordListDetail.vue @@ -181,6 +181,8 @@ //扫描数量和任务数量相等,直接提交 if (this.scanCount == this.subList.length) { this.receiveDisable = false; + }else { + this.receiveDisable = true; } }, @@ -196,6 +198,7 @@ updateData() { this.calcHandleQty(); + this.updateBtn() }, openDetail(item) { From c63717c3f529d84455e7a9ed1d11d22884c9ee76 Mon Sep 17 00:00:00 2001 From: lijuncheng Date: Wed, 18 Sep 2024 13:45:04 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E4=BF=AE=E6=94=B9=E5=BA=93=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/putaway/job/quantityPutawayJob.vue | 137 +++++++++++++------ 1 file changed, 93 insertions(+), 44 deletions(-) diff --git a/src/pages/putaway/job/quantityPutawayJob.vue b/src/pages/putaway/job/quantityPutawayJob.vue index 2cd84358..88b999eb 100644 --- a/src/pages/putaway/job/quantityPutawayJob.vue +++ b/src/pages/putaway/job/quantityPutawayJob.vue @@ -1,24 +1,28 @@