|
@@ -321,40 +321,41 @@
|
|
|
<td>{{ item.leakagePosition }}</td>
|
|
|
<td>{{ item.leakageMedium }}</td>
|
|
|
<td>
|
|
|
- <el-radio-group v-model="item.suspendPlateM" v-if="record.isEdit||!isNotEmpty(item.suspendPlateM)">
|
|
|
- <el-radio label="是">是</el-radio>
|
|
|
- <el-radio label="否">否</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- <span v-else>
|
|
|
- {{item.suspendPlateM}}
|
|
|
- <el-button class="no-print" type="text" @click="item.suspendPlateM=''">修改</el-button>
|
|
|
- </span>
|
|
|
+ <el-checkbox-group v-model="item.suspendPlateMTmpl" :disabled="record.isEdit">
|
|
|
+ <el-checkbox label="是"></el-checkbox>
|
|
|
+ <el-checkbox label="否"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <el-radio-group v-model="item.leakageStatusM" v-if="record.isEdit||!isNotEmpty(item.leakageStatusM)">
|
|
|
- <el-radio label="未检出">未检出</el-radio>
|
|
|
- <el-radio label="轻微">轻微</el-radio>
|
|
|
- <el-radio label="严重">严重</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- <span v-else>{{item.leakageStatusM}}
|
|
|
- <el-button class="no-print" type="text" @click="item.leakageStatusM=''">修改</el-button> </span>
|
|
|
+ <el-checkbox-group v-model="item.leakageStatusMTmpl" :disabled="record.isEdit">
|
|
|
+ <el-checkbox label="未检出"></el-checkbox>
|
|
|
+ <el-checkbox label="轻微"></el-checkbox>
|
|
|
+ <el-checkbox label="严重"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <el-radio-group v-model="item.suspendPlateN" v-if="record.isEdit||!isNotEmpty(item.suspendPlateN)">
|
|
|
- <el-radio label="是">是</el-radio>
|
|
|
- <el-radio label="否">否</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- <span v-else>{{item.suspendPlateN}}
|
|
|
- <el-button class="no-print" type="text" @click="item.suspendPlateN=''">修改</el-button> </span>
|
|
|
+ <el-checkbox-group v-model="item.suspendPlateNTmpl" :disabled="record.isEdit">
|
|
|
+ <el-checkbox label="是"></el-checkbox>
|
|
|
+ <el-checkbox label="否"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <el-radio-group v-model="item.leakageStatusN" v-if="record.isEdit||!isNotEmpty(item.leakageStatusN)">
|
|
|
- <el-radio label="未检出">未检出</el-radio>
|
|
|
- <el-radio label="轻微">轻微</el-radio>
|
|
|
- <el-radio label="严重">严重</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- <span v-else>{{item.leakageStatusN}}
|
|
|
- <el-button class="no-print" type="text" @click="item.leakageStatusN=''">修改</el-button> </span>
|
|
|
+ <el-checkbox-group v-model="item.leakageStatusNTmpl" :disabled="record.isEdit">
|
|
|
+ <el-checkbox label="未检出"></el-checkbox>
|
|
|
+ <el-checkbox label="轻微"></el-checkbox>
|
|
|
+ <el-checkbox label="严重"></el-checkbox>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="7">
|
|
|
+ 备注:<el-input type="textarea" v-model="record.pointPatrol.remarks" style="width: 95%"/>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="7" style="text-align: left">
|
|
|
+ ● 根据每日巡检状况在相应处打 “✔”<br>
|
|
|
+ <span class="no-print">● 每日首次打开时请先点击保存按钮</span>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
@@ -546,19 +547,23 @@ export default {
|
|
|
listPointPatrol(this.record.queryParams).then(response => {
|
|
|
let list = response.rows;
|
|
|
if (list.length > 0) {
|
|
|
- this.record.pointPatrol = list[0]
|
|
|
+ for (let item of list[0].records) {
|
|
|
+ item.suspendPlateMTmpl=item.suspendPlateM==null?[]:item.suspendPlateM.split(",");
|
|
|
+ item.suspendPlateNTmpl=item.suspendPlateN==null?[]:item.suspendPlateN.split(",");
|
|
|
+ item.leakageStatusMTmpl=item.leakageStatusM==null?[]:item.leakageStatusM.split(",");
|
|
|
+ item.leakageStatusNTmpl=item.leakageStatusN==null?[]:item.leakageStatusN.split(",");
|
|
|
+ }
|
|
|
+ this.record.pointPatrol = list[0];
|
|
|
+ console.log(this.record.pointPatrol)
|
|
|
this.record.isEdit = false
|
|
|
- getTeams(this.record.queryParams.checkDateM).then(res=>{
|
|
|
- this.record.pointPatrol.teamM=res.data.teamM;
|
|
|
- this.record.pointPatrol.teamN=res.data.teamN;
|
|
|
- })
|
|
|
} else {
|
|
|
getTeams(this.record.queryParams.checkDateM).then(res=>{
|
|
|
this.record.pointPatrol = {};
|
|
|
this.record.pointPatrol.teamM=res.data.teamM;
|
|
|
this.record.pointPatrol.teamN=res.data.teamN;
|
|
|
})
|
|
|
- this.record.isEdit = true
|
|
|
+ this.record.isEdit = true;
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -576,6 +581,12 @@ export default {
|
|
|
this.record.isEdit = false
|
|
|
this.record.pointPatrol.checkDateM = this.record.queryParams.checkDateM;
|
|
|
if (this.record.pointPatrol.id != null) {
|
|
|
+ for (let item of this.record.pointPatrol.records) {
|
|
|
+ item.suspendPlateM=item.suspendPlateMTmpl.join(',')
|
|
|
+ item.suspendPlateN=item.suspendPlateNTmpl.join(',')
|
|
|
+ item.leakageStatusM=item.leakageStatusMTmpl.join(',')
|
|
|
+ item.leakageStatusN=item.leakageStatusNTmpl.join(',')
|
|
|
+ }
|
|
|
updatePointPatrol(this.record.pointPatrol).then(response => {
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
this.getRecordList();
|
|
@@ -767,5 +778,11 @@ table td {
|
|
|
.no-print {
|
|
|
display: none;
|
|
|
}
|
|
|
+ ::v-deep .el-radio__input,
|
|
|
+ ::v-deep .el-checkbox__input{
|
|
|
+ -webkit-print-color-adjust:exact;
|
|
|
+ -moz-print-color-adjust:exact;
|
|
|
+ color-adjust:exact;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|