|
|
|
@ -342,7 +342,7 @@
|
|
|
|
|
<el-table-column v-if="false" label="计划id" align="center" prop="planId" />
|
|
|
|
|
<el-table-column width="150" label="计划编码" align="center" prop="planCode" />
|
|
|
|
|
<el-table-column v-if="false" label="计划类型" align="center" prop="planType" />
|
|
|
|
|
<el-table-column width="150" label="巡检单号" align="center" prop="orderCode" fixed>
|
|
|
|
|
<el-table-column width="150" label="保养单号" align="center" prop="orderCode" fixed>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
type="text"
|
|
|
|
@ -397,9 +397,9 @@
|
|
|
|
|
<dict-tag :options="dict.type.device_inspect_status" :value="scope.row.orderInspect"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="工单费用" align="center" prop="orderCost"/>
|
|
|
|
|
<el-table-column width="120" label="工单费用(元)" align="center" prop="orderCost"/>
|
|
|
|
|
<el-table-column label="保养人" align="center" prop="planPerson"/>
|
|
|
|
|
<el-table-column label="工单用时" align="center" prop="orderCostTime"/>
|
|
|
|
|
<el-table-column width="120" label="工单用时(min)" align="center" prop="orderCostTime"/>
|
|
|
|
|
<el-table-column v-if="false" label="签字" align="center" prop="orderSignPerson"/>
|
|
|
|
|
<el-table-column v-if="false" label="工厂" align="center" prop="factoryCode"/>
|
|
|
|
|
<el-table-column v-if="false" label="备用字段1" align="center" prop="attr1"/>
|
|
|
|
@ -446,6 +446,7 @@
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<!-- 保养详情 -->
|
|
|
|
|
<el-dialog
|
|
|
|
|
title="保养详情"
|
|
|
|
|
:visible.sync="workDetail"
|
|
|
|
@ -460,10 +461,12 @@
|
|
|
|
|
</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>
|
|
|
|
|
<el-descriptions-item label="保养执行结束时间">{{ workVO.order.planLoopEnd }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="实际开始时间">{{ workVO.order.orderStart }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="实际结束时间">{{ workVO.order.orderEnd }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="循环开始时间">{{ workVO.order.planLoopStart }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="循环结束时间">{{ workVO.order.planLoopEnd }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="执行开始时间">{{ workVO.order.orderStart }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="执行结束时间">{{ workVO.order.orderEnd }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养类型">{{ workVO.order.upkeep }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="是否停机保养">{{ workVO.order.shutDown }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="保养人">{{ workVO.order.planPerson }}</el-descriptions-item>
|
|
|
|
|
<el-descriptions-item label="报修单号">{{ workVO.order.repairCode }}</el-descriptions-item>
|
|
|
|
|
</el-descriptions>
|
|
|
|
@ -565,7 +568,7 @@ import {getWorkCenter} from "@/api/device/plan";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "InspectionWork",
|
|
|
|
|
dicts: ['device_order_status', 'device_loop_type'],
|
|
|
|
|
dicts: ['device_order_status', 'device_loop_type','device_upkeep_type','device_inspect_status'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 日期范围选择快捷
|
|
|
|
@ -696,12 +699,22 @@ export default {
|
|
|
|
|
this.workCenterList = response.data;
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 测试
|
|
|
|
|
// 展示
|
|
|
|
|
showWork(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const orderId = row.orderId || this.ids
|
|
|
|
|
getInspectionWork(orderId).then(response => {
|
|
|
|
|
this.workVO = response.data;
|
|
|
|
|
if (this.workVO.order.upkeep == 0) {
|
|
|
|
|
this.workVO.order.upkeep = '内部';
|
|
|
|
|
}else {
|
|
|
|
|
this.workVO.order.upkeep = '委外';
|
|
|
|
|
}
|
|
|
|
|
if (this.workVO.order.shutDown == 0) {
|
|
|
|
|
this.workVO.order.shutDown = '开机保养';
|
|
|
|
|
}else {
|
|
|
|
|
this.workVO.order.shutDown = '停机保养';
|
|
|
|
|
}
|
|
|
|
|
this.workDetail = true;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|