|
@ -330,12 +330,12 @@ |
|
|
|
|
|
|
|
|
commit() { |
|
|
commit() { |
|
|
this.scanCount = getScanCount(this.subList); |
|
|
this.scanCount = getScanCount(this.subList); |
|
|
if (this.scanCount == 0) { |
|
|
// if (this.scanCount == 0) { |
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
// this.showErrorMessage("扫描数为0,请先扫描") |
|
|
return; |
|
|
// return; |
|
|
} |
|
|
// } |
|
|
//如果是全检,必须全部扫描 |
|
|
//如果是全检,必须全部扫描-------改为:任务中的是否允许部分提交:nxt 2023年12月13日 |
|
|
if (this.scanCount == this.subList.length) { |
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
this.submitJob(); |
|
|
this.submitJob(); |
|
|
} else { |
|
|
} else { |
|
|
//不允许部分提交,提示 |
|
|
//不允许部分提交,提示 |
|
@ -455,7 +455,7 @@ |
|
|
list.push(detail) |
|
|
list.push(detail) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
}) |
|
|
this.jobContent.notPassedQty = Number(this.jobContent.failedQty)+ Number(this.jobContent.crackQty) |
|
|
this.jobContent.notPassedQty = Number(this.jobContent.failedQty) + Number(this.jobContent.crackQty) |
|
|
this.jobContent.subList = list |
|
|
this.jobContent.subList = list |
|
|
this.jobContent.nextAction = "PARTIAL_OK"; |
|
|
this.jobContent.nextAction = "PARTIAL_OK"; |
|
|
return this.jobContent; |
|
|
return this.jobContent; |
|
|