fix: IQC检验任务,再次修改优化,改变检验任务不同判定结果和是否重验时,界面行颜色不同显示

This commit is contained in:
angus liu 2024-12-27 10:53:19 +08:00
parent 89d9c4269f
commit 8687e4941e
2 changed files with 23 additions and 3 deletions

View File

@ -449,8 +449,20 @@ export default {
} }
}, },
tableRowClassName({row, rowIndex}) { tableRowClassName({row, rowIndex}) {
if (row.inspecResult === 'NG') {
return 'ng-row'; if (row.inspecResult === 'NG'){
// 非重验任务时,背景红色ng-row
if (row.originalJobNo === '' || row.originalJobNo == null){
return 'ng-row';
} else {
// 重验任务时,背景红色,字体黄色
return 'ng-receipt-row';
}
}else{
// 非NG ,重验任务 字体黄色
if (row.originalJobNo != '' && row.originalJobNo != null){
return 'receipt-row';
}
} }
return ''; return '';
}, },
@ -937,7 +949,14 @@ export default {
} }
} }
::v-deep .el-table__body .ng-row { ::v-deep .el-table__body .ng-row {
background-color: red !important; background-color: pink !important;
color: black !important; color: black !important;
} }
::v-deep .el-table__body .ng-receipt-row {
background-color: pink !important;
color: red !important;
}
::v-deep .el-table__body .receipt-row {
color: red !important;
}
</style> </style>

View File

@ -11,6 +11,7 @@ export const searchRules = {
from: [{ required: true, message: '', trigger: ['change', 'blur'] }], from: [{ required: true, message: '', trigger: ['change', 'blur'] }],
} }
export const tableObj = [ export const tableObj = [
{ prop: 'originalJobNo', label: '原任务号', width: '300' },
{ prop: 'inspectionBatch', label: '检验批', width: '200' }, { prop: 'inspectionBatch', label: '检验批', width: '200' },
{ prop: 'qcPlan', label: '检验计划编号', width: '200' }, { prop: 'qcPlan', label: '检验计划编号', width: '200' },
{ prop: 'itemDesc', label: '物料名称', width: '200' }, { prop: 'itemDesc', label: '物料名称', width: '200' },