|
|
@ -214,26 +214,26 @@ |
|
|
|
submit() { |
|
|
|
var scanCount = this.getScanCount(this.subList); |
|
|
|
|
|
|
|
//允许部分提交 |
|
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
|
// 如果扫描数是0,提示扫描数为0,是否提交,点击确定提交,取消提示消失 |
|
|
|
if (scanCount == 0) { |
|
|
|
this.$refs.comMessage.showQuestionMessage("扫描数为0,是否提交?", res => { |
|
|
|
if (res) { |
|
|
|
this.setSubmitParamsAndSubmit(); |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
this.setSubmitParamsAndSubmit(); |
|
|
|
} |
|
|
|
} else { |
|
|
|
// //允许部分提交 |
|
|
|
// if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
|
// // 如果扫描数是0,提示扫描数为0,是否提交,点击确定提交,取消提示消失 |
|
|
|
// if (scanCount == 0) { |
|
|
|
// this.$refs.comMessage.showQuestionMessage("扫描数为0,是否提交?", res => { |
|
|
|
// if (res) { |
|
|
|
// this.setSubmitParamsAndSubmit(); |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// } else { |
|
|
|
// this.setSubmitParamsAndSubmit(); |
|
|
|
// } |
|
|
|
// } else { |
|
|
|
//不允许部分提交,扫描数必须等于任务数量才可以提交 |
|
|
|
if (scanCount == 0) { |
|
|
|
this.showErrorMessage("扫描数为0,当前补料任务不允许部分提交,请先扫描") |
|
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
|
} else { |
|
|
|
this.setSubmitParamsAndSubmit(); |
|
|
|
} |
|
|
|
} |
|
|
|
// } |
|
|
|
}, |
|
|
|
|
|
|
|
setSubmitParamsAndSubmit() { |
|
|
|