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 @@
+
@@ -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)