Browse Source

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

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

22
pages/count/job/countDetail.vue

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

55
pages/inspect/job/inspectResult.vue

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

Loading…
Cancel
Save