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