|
|
@@ -106,7 +106,7 @@
|
|
|
<template v-slot:isPass="{ row }">
|
|
|
<el-radio-group v-model="row.isPass">
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
- <el-radio :label="2">否</el-radio>
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</template>
|
|
|
<template v-slot:remark="{ row }">
|
|
|
@@ -170,7 +170,7 @@
|
|
|
<template v-slot:isPass="{ row }">
|
|
|
<el-radio-group v-model="row.isPass">
|
|
|
<el-radio :label="1">是</el-radio>
|
|
|
- <el-radio :label="2">否</el-radio>
|
|
|
+ <el-radio :label="0">否</el-radio>
|
|
|
</el-radio-group>
|
|
|
</template>
|
|
|
<template v-slot:remark="{ row }">
|
|
|
@@ -722,11 +722,16 @@
|
|
|
console.log('规则齐套检查', data);
|
|
|
|
|
|
// 把检查结果赋值给对应的明细
|
|
|
- this.form.details.forEach((item) => {
|
|
|
+ this.form.details = this.form.details.map((item) => {
|
|
|
const checkItem = data.find((d) => d.id === item.id);
|
|
|
+ console.log('checkItem 存在', checkItem);
|
|
|
if (checkItem && item.isAutoCheck) {
|
|
|
- item.isPass = checkItem.isPass;
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ isPass: checkItem.isPass
|
|
|
+ };
|
|
|
}
|
|
|
+ return item;
|
|
|
});
|
|
|
|
|
|
console.log('规则齐套检查', this.form.details);
|