|
@ -148,24 +148,24 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
deleteFileById(id){ |
|
|
deleteFileById(id) { |
|
|
deleteFileById(id).then(res=>{ |
|
|
deleteFileById(id).then(res => { |
|
|
|
|
|
|
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
getFileList(id){ |
|
|
getFileList(id) { |
|
|
getFileList("jobInspectDetail", id).then(res => { |
|
|
getFileList("jobInspectDetail", id).then(res => { |
|
|
if(res.data){ |
|
|
if (res.data) { |
|
|
res.data.forEach(res=>{ |
|
|
res.data.forEach(res => { |
|
|
this.deleteFileById(res.id) |
|
|
this.deleteFileById(res.id) |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
clearPicList(subList){ |
|
|
clearPicList(subList) { |
|
|
subList.forEach(item=>{ |
|
|
subList.forEach(item => { |
|
|
this.getFileList(item.id) |
|
|
this.getFileList(item.id) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
@ -353,10 +353,14 @@ |
|
|
|
|
|
|
|
|
commit() { |
|
|
commit() { |
|
|
this.scanCount = getScanCount(this.subList); |
|
|
this.scanCount = getScanCount(this.subList); |
|
|
// if (this.scanCount == 0) { |
|
|
|
|
|
// this.showErrorMessage("扫描数为0,请先扫描") |
|
|
if (this.scanCount == 0) { |
|
|
// return; |
|
|
this.showErrorMessage("扫描数为0,请先扫描") |
|
|
// } |
|
|
return; |
|
|
|
|
|
} else { |
|
|
|
|
|
if (this.scanCount == this.subList.length) { |
|
|
|
|
|
this.submitJob(); |
|
|
|
|
|
} else { |
|
|
//如果是全检,必须全部扫描-------改为:任务中的是否允许部分提交:nxt 2023年12月13日 |
|
|
//如果是全检,必须全部扫描-------改为:任务中的是否允许部分提交:nxt 2023年12月13日 |
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
if (this.jobContent.allowPartialComplete == "TRUE") { |
|
|
this.submitJob(); |
|
|
this.submitJob(); |
|
@ -370,6 +374,12 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
submitJob() { |
|
|
submitJob() { |
|
|