From b93fb2309fa6eeae83133a48ea7c1fe7b1517265 Mon Sep 17 00:00:00 2001 From: liangzhou <594755172@qq.com> Date: Sat, 21 Sep 2024 18:25:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=9B=B4=E6=96=B0=EF=BC=9A?= =?UTF-8?q?=201.=20=E4=BF=AE=E5=A4=8D=E9=9D=9E=E8=AE=A1=E5=88=92=E9=A2=86?= =?UTF-8?q?=E6=96=99=202.=20=E5=A4=87=E6=96=99=E6=89=A7=E8=A1=8C=E5=92=8C?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/clcNoPlan.vue | 30 +++++++++++++++++++++++------- src/layout/doKitting.vue | 8 +++++++- src/layout/finishKitting.vue | 2 +- 3 files changed, 31 insertions(+), 9 deletions(-) diff --git a/src/layout/clcNoPlan.vue b/src/layout/clcNoPlan.vue index 6a742c1..e2cc5fa 100644 --- a/src/layout/clcNoPlan.vue +++ b/src/layout/clcNoPlan.vue @@ -164,6 +164,19 @@ +
+
+ 剩余数量 +
+
+
+ +
+
+ PC +
+
+
@@ -210,7 +223,8 @@ export default { confirmFormEntity: reactive({ vehicleId: '', goodsId: '', - realPickNum: null + realPickNum: null, + remainNum: null }), rules: reactive({ goodsId: [ @@ -245,10 +259,10 @@ export default { }) }, getCurrentGoodsPickNumMethod() { - if (this.confirmFormEntity.vehicleId == '' || this.confirmFormEntity.vehicleId == null | undefined) { + if (this.confirmFormEntity.vehicleId == '' || this.confirmFormEntity.vehicleId == null|undefined) { this.$refs.confirmVehicleId.focus() } - if (this.confirmFormEntity.goodsId == '' || this.confirmFormEntity.goodsId == null | undefined) { + if (this.confirmFormEntity.goodsId == '' || this.confirmFormEntity.goodsId == null|undefined) { this.$refs.confirmGoodsId.focus() } if (this.confirmFormEntity.realPickNum == null | undefined) { @@ -265,13 +279,14 @@ export default { smallVehicleNo: '', callReason: '' }) - this.$refs.goodsId.focus() + this.$refs.needGoodsId.focus() }, resetConfirmForms() { this.confirmFormEntity = reactive({ vehicleId: '', goodsId: '', - realPickNum: null + realPickNum: null, + remainNum: null }) }, // 确认完成工作 @@ -305,8 +320,8 @@ export default { }, // 确认回库 confirmPick() { - if (this.standId == '' || this.workFormEntity.goodsId == '') { - errorBox('站台号和料号不可缺少') + if (this.standId == '' || this.confirmFormEntity.goodsId == '' || this.confirmFormEntity.vehicleId == '' || this.confirmFormEntity.realPickNum == null) { + errorBox('站台号、箱号、料号、领料数量不可缺少。') return } const confirmParams = { @@ -314,6 +329,7 @@ export default { goodsId: this.confirmFormEntity.goodsId, vehicleId: this.confirmFormEntity.vehicleId, realPickNum: this.confirmFormEntity.realPickNum, + remainNum: this.confirmFormEntity.remainNum, userName: store.getters.getUserName } clcNoPlanConfirmBack(confirmParams).then(res => { diff --git a/src/layout/doKitting.vue b/src/layout/doKitting.vue index 03a8d59..04ba9a7 100644 --- a/src/layout/doKitting.vue +++ b/src/layout/doKitting.vue @@ -231,6 +231,10 @@ export default { const response = res.data if (response.code == 0) { if (response.returnData != null && response.returnData.tip != '') { + this.workFormEntity.finishedRows = response.returnData.finishedRows + this.workFormEntity.totalRows = response.returnData.totalRows + this.workFormEntity.finishedCounts = response.returnData.finishedCounts + this.workFormEntity.totalCounts = response.returnData.totalCounts this.workFormEntity.tip = response.returnData.tip warningBox(this.workFormEntity.tip) } else { @@ -269,9 +273,11 @@ export default { if (response.code == 0) { if (response.returnData != null && response.returnData.tip != '') { this.workFormEntity.tip = response.returnData.tip + warningBox(this.workFormEntity.tip) + } else { + ElMessage.success(response.message) } this.resetForms() - ElMessage.success(response.message) } else { errorBox(response.message) } diff --git a/src/layout/finishKitting.vue b/src/layout/finishKitting.vue index 9c99690..9e7b759 100644 --- a/src/layout/finishKitting.vue +++ b/src/layout/finishKitting.vue @@ -226,7 +226,7 @@ export default { confirmFinishedWork(confirmParams).then(res => { const response = res.data if (response.code == 0) { - ElMessage.success('response.message') + ElMessage.success(response.message) this.resetForms() } else { errorBox(response.message)