Browse Source

修改到货检验 盘点提交错误

wms3.0_pda
lijuncheng 11 months ago
parent
commit
6c9521ad11
  1. 22
      pages/count/job/countDetail.vue
  2. 19
      pages/inspect/job/inspectResult.vue

22
pages/count/job/countDetail.vue

@ -514,17 +514,17 @@
});
var params = this.setParams()
console.log("提交参数", JSON.stringify(params));
// countJobSubmit(params).then(res => {
// uni.hideLoading()
// if (res.data) {
// this.showCommitSuccessMessage("<br><br>" + res.data)
// } else {
// this.showErrorMessage("[" + res.msg + "]")
// }
// }).catch(error => {
// uni.hideLoading()
// this.showErrorMessage(error)
// })
countJobSubmit(params).then(res => {
uni.hideLoading()
if (res.data) {
this.showCommitSuccessMessage("提交成功<br>生成盘点记录<br>" + res.data)
} else {
this.showErrorMessage("提交失败[" + res.msg + "]")
}
}).catch(error => {
uni.hideLoading()
this.showErrorMessage(error)
})
},

19
pages/inspect/job/inspectResult.vue

@ -362,6 +362,23 @@
//==0()
if (failedQty == 0) {
if (crackQty == 0) {
if (this.nextAction == "ALL_NOK") {
this.jobContent.subList.forEach(res => {
res.handleQty = res.qty
res.failedQty = res.qty;
res.notPassedQty = res.failedQty;
res.crackQty = 0;
res.goodQty = 0;
res.failedReason = "";
res.photos = ""
res.inspectResult = ""
res.toInventoryStatus = "NOK"
res.inspectUser = this.$store.state.user.id
})
this.jobContent.nextAction = this.nextAction;
this.jobContent.goodQty = 0
this.submitJob(this.jobContent)
}else {
//==0
this.jobContent.subList.forEach(res => {
res.handleQty = res.qty
@ -379,6 +396,7 @@
this.jobContent.nextAction = "";
this.jobContent.goodQty = this.jobContent.receiveQty
this.submitJob(this.jobContent)
}
} else {
//0
@ -399,6 +417,7 @@
this.showMessage("请选择下一步动作")
return
}
//
if (this.nextAction == "ALL_NOK") {
//

Loading…
Cancel
Save