|
|
@ -273,10 +273,14 @@ const commit = () => { |
|
|
|
// 扫描数量小于任务数量,判断是否允许部分提交 |
|
|
|
if (jobContent.value.allowPartialComplete == 'TRUE') { |
|
|
|
// 提交 |
|
|
|
submitJob() |
|
|
|
comMessageRef.value.showQuestionMessage1("任务明细未全部完成,是否提交?", 'red', res => { |
|
|
|
if (res) { |
|
|
|
submitJob() |
|
|
|
} |
|
|
|
}); |
|
|
|
} else { |
|
|
|
// 不允许部分提交,提示 |
|
|
|
comMessageRef.value.showErrorMessage('请完成扫描后,再进行提交<br>' + `已经扫描[${scanCount.value}]箱总共[${subList.value.length}]箱`, (res) => { |
|
|
|
comMessageRef.value.showErrorMessage('请完成扫描后,再进行提交\n' + `已经扫描[${scanCount.value}]箱总共[${subList.value.length}]箱`, (res) => { |
|
|
|
if (res) { |
|
|
|
openScanPopup() |
|
|
|
} |
|
|
@ -301,7 +305,7 @@ const submitJob = () => { |
|
|
|
transferIssueJobSubmit(params) |
|
|
|
.then((res) => { |
|
|
|
if (res.data) { |
|
|
|
showCommitSuccessMessage(`提交成功<br>生成调拨出库记录${res.data}`) |
|
|
|
showCommitSuccessMessage(`提交成功\n生成调拨出库记录${res.data}`) |
|
|
|
} else { |
|
|
|
showErrorMessage(`提交失败[${res.msg}]`) |
|
|
|
} |
|
|
|