|
|
|
@ -93,22 +93,17 @@
|
|
|
|
|
<el-table-column width="150" label="养护数量" prop="count"></el-table-column>
|
|
|
|
|
<el-table-column width="150" label="养护状态" prop="maintenanceStatus">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio disabled="true" v-model="scope.row.maStatus"
|
|
|
|
|
:label="0">未养护
|
|
|
|
|
</el-radio>
|
|
|
|
|
<el-radio disabled="true" v-model="scope.row.maStatus"
|
|
|
|
|
:label="1">已养护
|
|
|
|
|
</el-radio>
|
|
|
|
|
<el-tag :type="statusFilterType(scope.row.maStatus)">
|
|
|
|
|
{{status[scope.row.maStatus]}}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column width="150" label="设备状态" prop="deviceStatus">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-radio v-model="scope.row.deviceStatus" :label="1" disabled="true">
|
|
|
|
|
正常
|
|
|
|
|
</el-radio>
|
|
|
|
|
<el-radio v-model="scope.row.deviceStatus" :label="0" disabled="true">
|
|
|
|
|
异常
|
|
|
|
|
</el-radio>
|
|
|
|
|
<el-tag :type="statusFilterType(scope.row.deviceStatus)"
|
|
|
|
|
>
|
|
|
|
|
{{deviceStatus[scope.row.deviceStatus]}}
|
|
|
|
|
</el-tag>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column width="200" label="养护备注" prop="remark">
|
|
|
|
@ -162,6 +157,14 @@ export default {
|
|
|
|
|
1: "未审核",
|
|
|
|
|
2: "已审核"
|
|
|
|
|
},
|
|
|
|
|
status:{
|
|
|
|
|
0:"未养护",
|
|
|
|
|
1:"已养护",
|
|
|
|
|
},
|
|
|
|
|
deviceStatus:{
|
|
|
|
|
1:"正常",
|
|
|
|
|
0:"异常",
|
|
|
|
|
},
|
|
|
|
|
detailQuery: {
|
|
|
|
|
orderIdFk: null,
|
|
|
|
|
page: 1,
|
|
|
|
@ -320,6 +323,15 @@ export default {
|
|
|
|
|
this.detailTotal = 0;
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
statusFilterType(status) {
|
|
|
|
|
const statusMap = {
|
|
|
|
|
1: "success",
|
|
|
|
|
0: "danger",
|
|
|
|
|
};
|
|
|
|
|
return statusMap[status];
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
document.body.ondrop = function (event) {
|
|
|
|
|