|
@@ -1,5 +1,12 @@
|
|
|
<template>
|
|
|
- <div v-show="visible">
|
|
|
+ <a-modal
|
|
|
+ :title="modalTitle"
|
|
|
+ :width="1000"
|
|
|
+ :visible="visible"
|
|
|
+ :confirmLoading="confirmLoading"
|
|
|
+ class="ant-modal2"
|
|
|
+ @cancel="handleCancel"
|
|
|
+ >
|
|
|
<a-row :gutter="48" slot="extra">
|
|
|
<a-col :md="48" :sm="48">
|
|
|
<span class="table-page-search-submitButtons" style="float: right">
|
|
@@ -7,14 +14,17 @@
|
|
|
</span>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
- <title-divider title="设备信息" width="90px"></title-divider>
|
|
|
+ <title-divider title="报修信息" width="90px"></title-divider>
|
|
|
<detail-list title="" :col="3">
|
|
|
- <detail-list-item term="设备新号">{{ model.no }}</detail-list-item>
|
|
|
- <detail-list-item term="设备旧号">{{ model.zbh }}</detail-list-item>
|
|
|
- <detail-list-item term="型号">{{ model.model }}</detail-list-item>
|
|
|
- <detail-list-item term="设备名称">{{ model.name }}</detail-list-item>
|
|
|
+ <detail-list-item term="报修单号">{{ model.no }}</detail-list-item>
|
|
|
+ <detail-list-item term="设备编号">{{ model.sbNo }}</detail-list-item>
|
|
|
+ <detail-list-item term="设备名称">{{ model.sbName }}</detail-list-item>
|
|
|
+ <detail-list-item term="预留维修时间">{{ model.limitHours }}</detail-list-item>
|
|
|
+ <detail-list-item term="使用位置">{{ model.sbCph }}</detail-list-item>
|
|
|
+ <detail-list-item term="报修时间">{{ model.applyTime }}</detail-list-item>
|
|
|
+ <detail-list-item term="维修结束时间">{{ model.repairEndTime }}</detail-list-item>
|
|
|
</detail-list>
|
|
|
- <title-divider title="历史故障原因分析" width="180px"></title-divider>
|
|
|
+ <title-divider title="原因分析" width="180px"></title-divider>
|
|
|
<div class="table-operator" style="margin-bottom:8px;">
|
|
|
</div>
|
|
|
<a-table
|
|
@@ -32,8 +42,7 @@
|
|
|
</a-table>
|
|
|
<base-form ref="baseModal" @ok="handleOk"/>
|
|
|
<detail ref="detailModal" @ok="handleOk"/>
|
|
|
-
|
|
|
- </div>
|
|
|
+ </a-modal>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -80,11 +89,14 @@ export default {
|
|
|
{
|
|
|
title: '序号',
|
|
|
dataIndex: 'index',
|
|
|
- width: '70px',
|
|
|
customRender: (text, record, index) => {
|
|
|
return `${index + 1}`
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '编号',
|
|
|
+ dataIndex: 'no'
|
|
|
+ },
|
|
|
{
|
|
|
title: '分析时间',
|
|
|
dataIndex: 'analyzeTime',
|
|
@@ -97,14 +109,23 @@ export default {
|
|
|
width: '200px'
|
|
|
},
|
|
|
{
|
|
|
- title: '检查处理过程',
|
|
|
+ title: '处理过程',
|
|
|
dataIndex: 'checkProcess',
|
|
|
ellipsis: true,
|
|
|
width: '200px'
|
|
|
},
|
|
|
{
|
|
|
- title: '原因分析',
|
|
|
- dataIndex: 'reasonAnalysis',
|
|
|
+ title: '改进措施类别',
|
|
|
+ dataIndex: 'type',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '200px',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return this.BaseTool.Object.getField(this.typeMap, text)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '改进内容',
|
|
|
+ dataIndex: 'changeRepairPlanContent',
|
|
|
ellipsis: true,
|
|
|
width: '200px'
|
|
|
},
|
|
@@ -116,24 +137,25 @@ export default {
|
|
|
scopedSlots: { customRender: 'action' }
|
|
|
}
|
|
|
],
|
|
|
+ typeMap: {},
|
|
|
data: []
|
|
|
}
|
|
|
},
|
|
|
created () {
|
|
|
// 下拉框map
|
|
|
-
|
|
|
+ this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_REASON_TYPE)
|
|
|
},
|
|
|
methods: {
|
|
|
base (record) {
|
|
|
this.visible = true
|
|
|
this.model = record
|
|
|
this.modalTitle = '历史故障原因分析'
|
|
|
- queryRepairReason({ sbId: record.id }).then(res => {
|
|
|
+ queryRepairReason({ repairId: this.model.id }).then(res => {
|
|
|
this.data = res.data
|
|
|
})
|
|
|
},
|
|
|
handleOk () {
|
|
|
- queryRepairReason({ sbId: this.model.id }).then(res => {
|
|
|
+ queryRepairReason({ repairId: this.model.id }).then(res => {
|
|
|
this.data = res.data
|
|
|
})
|
|
|
},
|