|
@ -342,12 +342,14 @@ |
|
|
//扫描数量小于任务数量,判断是否允许部分提交 |
|
|
//扫描数量小于任务数量,判断是否允许部分提交 |
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
//提交 |
|
|
//提交 |
|
|
this.submitJob(); |
|
|
this.$refs.comMessage.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { |
|
|
|
|
|
if (res) { |
|
|
|
|
|
this.submitJob() |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
//不允许部分提交,提示 |
|
|
//不允许部分提交,提示 |
|
|
this.$refs.comMessage.showErrorMessage('请完成扫描后,再进行提交<br>' + "已经扫描[" + this.scanCount + |
|
|
this.$refs.comMessage.showErrorMessage("任务明细未全部完成,不允许部分提交!", res => { |
|
|
"]箱总共[" + this |
|
|
|
|
|
.subList.length + "]箱", res => { |
|
|
|
|
|
if (res) { |
|
|
if (res) { |
|
|
this.openScanPopup(); |
|
|
this.openScanPopup(); |
|
|
} |
|
|
} |
|
@ -373,7 +375,7 @@ |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
console.log("提交参数", JSON.stringify(params)); |
|
|
// productDismantleJobSubmit(this.id, params).then(res => { |
|
|
// productDismantleJobSubmit(this.id, params).then(res => { |
|
|
// if (res.data) { |
|
|
// if (res.data) { |
|
|
// this.showCommitSuccessMessage("提交成功<br>生成采购收货记录" + res.data.Number, ) |
|
|
// this.showCommitSuccessMessage("提交成功\n生成采购收货记录" + res.data.Number, ) |
|
|
// } else { |
|
|
// } else { |
|
|
// this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
// this.showErrorMessage("提交失败[" + res.msg + "]") |
|
|
// } |
|
|
// } |
|
@ -430,7 +432,6 @@ |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (nullLocationList.length > 0) { |
|
|
if (nullLocationList.length > 0) { |
|
|
//弹出提示,是否把其他的库位都变成默认库位 |
|
|
//弹出提示,是否把其他的库位都变成默认库位 |
|
|
this.$refs.comMessage.showQuestionMessage("是否把其他的库位都变成默认库位", res => { |
|
|
this.$refs.comMessage.showQuestionMessage("是否把其他的库位都变成默认库位", res => { |
|
|