|
|
|
@ -208,7 +208,8 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-hasPermi="['device:inspectionWork:add']"
|
|
|
|
|
>新增</el-button>
|
|
|
|
|
>新增
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col v-if="false" :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -219,7 +220,8 @@
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdate"
|
|
|
|
|
v-hasPermi="['device:inspectionWork:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col v-if="false" :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -230,7 +232,8 @@
|
|
|
|
|
:disabled="multiple"
|
|
|
|
|
@click="handleDelete"
|
|
|
|
|
v-hasPermi="['device:inspectionWork:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
@ -240,7 +243,8 @@
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleExport"
|
|
|
|
|
v-hasPermi="['device:inspectionWork:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
>导出
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
@ -310,14 +314,16 @@
|
|
|
|
|
icon="el-icon-edit"
|
|
|
|
|
@click="handleUpdate(scope.row)"
|
|
|
|
|
v-hasPermi="['device:inspectionWork:edit']"
|
|
|
|
|
>修改</el-button>
|
|
|
|
|
>修改
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-delete"
|
|
|
|
|
@click="handleDelete(scope.row)"
|
|
|
|
|
v-hasPermi="['device:inspectionWork:remove']"
|
|
|
|
|
>删除</el-button>
|
|
|
|
|
>删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -330,16 +336,18 @@
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<el-drawer
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="巡检详情"
|
|
|
|
|
:visible.sync="workDetail"
|
|
|
|
|
size="700px">
|
|
|
|
|
|
|
|
|
|
<div class="my-margin-lr">
|
|
|
|
|
<el-descriptions title="巡检信息">
|
|
|
|
|
width="900px"
|
|
|
|
|
>
|
|
|
|
|
<el-tabs type="border-card">
|
|
|
|
|
<el-tab-pane label="巡检信息">
|
|
|
|
|
<el-descriptions title="" border :column="2">
|
|
|
|
|
<el-descriptions-item label="计划编码">{{ workVO.order.planCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="计划名称">{{ workVO.order.planName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="循环周期">{{workVO.order.planLoop}}{{workVO.order.planLoopType}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="循环周期">{{ workVO.order.planLoop }}{{ workVO.order.planLoopType }}
|
|
|
|
|
</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="工单编码">{{ workVO.order.orderCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="车间编码">{{ workVO.order.planWorkshop }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="巡检执行开始时间">{{ workVO.order.planLoopStart }}</el-descriptions-item>
|
|
|
|
@ -349,10 +357,9 @@
|
|
|
|
|
<el-descriptions-item label="巡检人">{{ workVO.order.planPerson }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="报修单号">{{ workVO.order.repairCode }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-descriptions title="设备信息">
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="设备信息">
|
|
|
|
|
<el-descriptions class="my-margin-top" title="" :column="2" border>
|
|
|
|
|
<el-descriptions-item label="设备编码">{{ workVO.equ.equipmentCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备名称">{{ workVO.equ.equipmentName }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="设备位置">{{ workVO.equ.equipmentLocation }}</el-descriptions-item>
|
|
|
|
@ -361,30 +368,53 @@
|
|
|
|
|
<el-descriptions-item label="所属工作中心编码">{{ workVO.equ.workshopCode }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="所属工作中心名称">{{ workVO.equ.workshopName }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
|
|
|
|
|
<el-descriptions v-if="workVO.detailList.length > 0" title="检查项信息"/>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
<el-tab-pane label="检查项信息">
|
|
|
|
|
<div v-for="(detail,index) in workVO.detailList" :key="index">
|
|
|
|
|
<el-divider content-position="right">{{detail.itemName}}</el-divider>
|
|
|
|
|
<div v-for="(standard,index) in detail.standardList" :key="index">
|
|
|
|
|
<el-descriptions title="">
|
|
|
|
|
<el-descriptions-item label="标准名称">{{standard.standardName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="标准类型">{{standard.standardTypeName}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="上限">{{standard.detailUpLimit}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="下限">{{standard.detailDownLimit}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="单位">{{standard.detailUnit}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'quantify' " label="实际值">{{standard.actualValue}}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item v-if="standard.standardType == 'qualitative' " label="是否达标">{{standard.detailReach}}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
|
<el-divider></el-divider>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-divider content-position="left">{{ detail.itemName }}</el-divider>
|
|
|
|
|
<el-table
|
|
|
|
|
:data="detail.standardList"
|
|
|
|
|
border
|
|
|
|
|
style="width: 100%">
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="standardName"
|
|
|
|
|
label="标准名称"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="standardType"
|
|
|
|
|
label="标准类型"
|
|
|
|
|
width="180">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailReach"
|
|
|
|
|
label="是否达标">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="actualValue"
|
|
|
|
|
label="实际值">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailUpLimit"
|
|
|
|
|
label="上限">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailDownLimit"
|
|
|
|
|
label="下限">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
prop="detailUnit"
|
|
|
|
|
label="单位">
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</el-drawer>
|
|
|
|
|
</el-tab-pane>
|
|
|
|
|
</el-tabs>
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
<el-button @click="workDetail = false">取 消</el-button>
|
|
|
|
|
<el-button type="primary" @click="workDetail = false">确 定</el-button>
|
|
|
|
|
</span>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改巡检记录对话框 -->
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
@ -397,13 +427,20 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { listInspectionWork, getInspectionWork, delInspectionWork, addInspectionWork, updateInspectionWork } from "@/api/device/inspectionWork";
|
|
|
|
|
import {
|
|
|
|
|
listInspectionWork,
|
|
|
|
|
getInspectionWork,
|
|
|
|
|
delInspectionWork,
|
|
|
|
|
addInspectionWork,
|
|
|
|
|
updateInspectionWork
|
|
|
|
|
} from "@/api/device/inspectionWork";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "InspectionWork",
|
|
|
|
|
dicts: ['device_order_status', 'device_loop_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
test: false,
|
|
|
|
|
// 初始化VO
|
|
|
|
|
workVO: {
|
|
|
|
|
order: {
|
|
|
|
@ -428,7 +465,7 @@ export default {
|
|
|
|
|
workshopName: null,
|
|
|
|
|
}, detailList: []
|
|
|
|
|
},
|
|
|
|
|
// 工单详情抽屉
|
|
|
|
|
// 工单详情弹窗
|
|
|
|
|
workDetail: false,
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
@ -483,8 +520,7 @@ export default {
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
|
// 表单校验
|
|
|
|
|
rules: {
|
|
|
|
|
}
|
|
|
|
|
rules: {}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
created() {
|
|
|
|
@ -612,7 +648,8 @@ export default {
|
|
|
|
|
}).then(() => {
|
|
|
|
|
this.getList();
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
|
handleExport() {
|
|
|
|
@ -624,8 +661,5 @@ export default {
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
.my-margin-lr{
|
|
|
|
|
margin-right: 10px;
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|