|
@@ -9,39 +9,56 @@
|
|
|
>
|
|
|
<a-spin :spinning="confirmLoading">
|
|
|
<!-- 基础信息详情 -->
|
|
|
- <a-descriptions title="" bordered size="middle">
|
|
|
+ <a-descriptions title="" bordered size="middle" :column="2">
|
|
|
<a-descriptions-item label="维修工单编号">
|
|
|
{{detailData.repaircode}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="工单名称">
|
|
|
+ <a-descriptions-item label="维修工单名称">
|
|
|
{{detailData.repairname}}
|
|
|
</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="录入人">
|
|
|
+ {{detailData.createBy}}
|
|
|
+ </a-descriptions-item>
|
|
|
+ <a-descriptions-item label="工单创建时间">
|
|
|
+ {{detailData.createTime}}
|
|
|
+ </a-descriptions-item>
|
|
|
<a-descriptions-item label="设备编号">
|
|
|
{{detailData.equipmentcode}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="优先级">
|
|
|
- {{detailData.priority}}
|
|
|
- </a-descriptions-item>
|
|
|
<a-descriptions-item label="设备名称">
|
|
|
{{detailData.equipmentname}}
|
|
|
</a-descriptions-item>
|
|
|
+ <a-descriptions-item label="优先级">
|
|
|
+ <!-- 0 普通 1 紧急 2 特急 -->
|
|
|
+ <a-tag v-if="detailData.priority === '0'">普通</a-tag>
|
|
|
+ <a-tag v-if="detailData.priority === '1'" color="orange">紧急</a-tag>
|
|
|
+ <a-tag v-if="detailData.priority === '2'" color="red">特急</a-tag>
|
|
|
+ </a-descriptions-item>
|
|
|
<a-descriptions-item label="故障日期">
|
|
|
{{detailData.faultdate}}
|
|
|
</a-descriptions-item>
|
|
|
<a-descriptions-item label="故障描述" :span="2">
|
|
|
- {{detailData.repaircode}}
|
|
|
- </a-descriptions-item>
|
|
|
- <a-descriptions-item label="上一次维修时间">
|
|
|
- {{detailData.repaircode}}
|
|
|
+ {{detailData.faultdesc}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="维修反馈">
|
|
|
- {{detailData.repaircode}}
|
|
|
+ <a-descriptions-item label="待办人">
|
|
|
+ {{detailData.repairuser}}
|
|
|
</a-descriptions-item>
|
|
|
- <a-descriptions-item label="处理结果">
|
|
|
+
|
|
|
+ <!-- <a-descriptions-item label="维修时间">
|
|
|
+ {{detailData.repairdate}}
|
|
|
+ </a-descriptions-item> -->
|
|
|
+ <!-- <a-descriptions-item label="维修反馈">
|
|
|
{{detailData.repaircode}}
|
|
|
- </a-descriptions-item>
|
|
|
- <a-descriptions-item label="当前状态">
|
|
|
+ </a-descriptions-item> -->
|
|
|
+ <!-- <a-descriptions-item label="处理结果">
|
|
|
{{detailData.repaircode}}
|
|
|
+ </a-descriptions-item> -->
|
|
|
+ <a-descriptions-item label="当前维修状态">
|
|
|
+ <!-- 0 上报故障 1 维修检查 2 维修挂单 3 维修结束 -->
|
|
|
+ <a-tag v-if="detailData.status === '0'" color="orange">上报故障</a-tag>
|
|
|
+ <a-tag v-if="detailData.status === '1'" color="blue">维修检查</a-tag>
|
|
|
+ <a-tag v-if="detailData.status === '2'" color="blue">维修挂单</a-tag>
|
|
|
+ <a-tag v-if="detailData.status === '3'">维修结束</a-tag>
|
|
|
</a-descriptions-item>
|
|
|
</a-descriptions>
|
|
|
<!-- 分割线 -->
|
|
@@ -57,10 +74,12 @@
|
|
|
:dataSource="logData"
|
|
|
class="j-table-force-nowrap cmms-table">
|
|
|
|
|
|
- <span slot="status" slot-scope="text, record">
|
|
|
- <a-tag v-if="record.status === '0'" color="orange">{{ text }}</a-tag>
|
|
|
- <a-tag v-if="record.status === '1' || record.priority === '2'" color="blue">{{ text }}</a-tag>
|
|
|
- <a-tag v-if="record.status === '3'">{{ text }}</a-tag>
|
|
|
+ <span slot="nodename" slot-scope="text">
|
|
|
+ <!-- 0 上报故障 1 维修检查 2 维修挂单 3 维修结束 -->
|
|
|
+ <span v-if="text === '0'">上报故障</span>
|
|
|
+ <span v-if="text === '1'">维修检查</span>
|
|
|
+ <span v-if="text === '2'">维修挂单</span>
|
|
|
+ <span v-if="text === '3'">维修结束</span>
|
|
|
</span>
|
|
|
|
|
|
</a-table>
|
|
@@ -96,7 +115,8 @@
|
|
|
{
|
|
|
title:'节点名称',
|
|
|
align:"center",
|
|
|
- dataIndex: 'nodename'
|
|
|
+ dataIndex: 'nodename',
|
|
|
+ scopedSlots: { customRender: 'nodename' }
|
|
|
},
|
|
|
{
|
|
|
title:'日期',
|