|
|
|
@ -1047,6 +1047,7 @@ export default { |
|
|
|
partDesc: '', |
|
|
|
inspectionResult: '', |
|
|
|
inspectionTypeNo: '', |
|
|
|
inspectionTypeNos: ['首件检', '巡检'], // 过程检验只展示首件检和巡检 |
|
|
|
cinvSourceCode: '', |
|
|
|
orderNo: '', |
|
|
|
seqNo: '', |
|
|
|
@ -2118,6 +2119,14 @@ export default { |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
// 校验单据状态,必须是'待审核'才可以审核 |
|
|
|
const invalidRecords = this.IPQCSelections.filter(item => item.state !== '待审核') |
|
|
|
if (invalidRecords.length > 0) { |
|
|
|
this.$alert('只能审核状态为"待审核"的检验单!', '提示', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
return false |
|
|
|
} |
|
|
|
this.$confirm(`是否审核该 ${this.IPQCSelections.length} 条检验记录?`, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
|