|
@@ -33,8 +33,8 @@
|
|
|
|
|
|
<script>
|
|
|
import DetailList from '@/components/tools/DetailList'
|
|
|
-import { fetchCheckJob } from '@/api/check/checkjob'
|
|
|
-import Detail from '@/views/check/checkjob/modules/Detail'
|
|
|
+import { fillGatherTask } from '@/api/fill/task'
|
|
|
+import Detail from '@/views/fill/task/modules/Detail'
|
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
export default {
|
|
@@ -71,32 +71,31 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '设备编号',
|
|
|
+ title: '巡检任务名成',
|
|
|
checked: true,
|
|
|
- width: '100px',
|
|
|
- dataIndex: 'sbNo'
|
|
|
+ width: '120px',
|
|
|
+ dataIndex: 'name'
|
|
|
},
|
|
|
{
|
|
|
- title: '设备名称',
|
|
|
+ title: '巡检人',
|
|
|
checked: true,
|
|
|
- width: '150px',
|
|
|
- dataIndex: 'sbId',
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return record.sbName
|
|
|
- }
|
|
|
+ width: '100px',
|
|
|
+ dataIndex: 'checkerName'
|
|
|
},
|
|
|
{
|
|
|
- title: '报修人',
|
|
|
+ title: '巡检负责人',
|
|
|
checked: true,
|
|
|
- width: '120px',
|
|
|
- dataIndex: 'actualUser'
|
|
|
+ width: '150px',
|
|
|
+ dataIndex: 'leaderName'
|
|
|
+
|
|
|
},
|
|
|
{
|
|
|
- title: '维修人',
|
|
|
+ title: '周期',
|
|
|
checked: true,
|
|
|
width: '120px',
|
|
|
- dataIndex: 'repairUserName'
|
|
|
+ dataIndex: 'period'
|
|
|
},
|
|
|
+
|
|
|
/* {
|
|
|
title: '报修来源',
|
|
|
checked: true,
|
|
@@ -107,19 +106,16 @@ export default {
|
|
|
}
|
|
|
}, */
|
|
|
{
|
|
|
- title: '工单类型',
|
|
|
+ title: '限时',
|
|
|
checked: true,
|
|
|
width: '150px',
|
|
|
- dataIndex: 'category',
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return this.BaseTool.Object.getField(this.planFlagMap, text)
|
|
|
- }
|
|
|
+ dataIndex: 'requireHour'
|
|
|
},
|
|
|
{
|
|
|
- title: '报修时间',
|
|
|
+ title: '任务等级',
|
|
|
checked: true,
|
|
|
width: '200px',
|
|
|
- dataIndex: 'applyTime'
|
|
|
+ dataIndex: 'taskLevel'
|
|
|
},
|
|
|
/* {
|
|
|
title: '紧急等级',
|
|
@@ -139,43 +135,9 @@ export default {
|
|
|
}
|
|
|
}, */
|
|
|
{
|
|
|
- title: '创建日期',
|
|
|
+ title: '更新时间',
|
|
|
width: '200px',
|
|
|
- dataIndex: 'createdTime'
|
|
|
- },
|
|
|
- {
|
|
|
- title: '接收超时',
|
|
|
- checked: true,
|
|
|
- width: '100px',
|
|
|
- dataIndex: 'receiveOvertime',
|
|
|
- customRender: (text, record, index) => {
|
|
|
- if (text) {
|
|
|
- return '是'
|
|
|
- } else {
|
|
|
- return '否'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '维修超时',
|
|
|
- checked: true,
|
|
|
- width: '100px',
|
|
|
- dataIndex: 'repairOvertime',
|
|
|
- customRender: (text, record, index) => {
|
|
|
- if (text) {
|
|
|
- return '是'
|
|
|
- } else {
|
|
|
- return '否'
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- {
|
|
|
- title: '报修状态',
|
|
|
- checked: true,
|
|
|
- width: '100px',
|
|
|
- dataIndex: 'status',
|
|
|
- fixed: 'right',
|
|
|
- scopedSlots: { customRender: 'status' }
|
|
|
+ dataIndex: 'updateTime'
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
@@ -215,7 +177,7 @@ export default {
|
|
|
this.confirmLoading = false
|
|
|
},
|
|
|
handleView (record) {
|
|
|
- fetchCheckJob({ id: record.id }).then(res => {
|
|
|
+ fillGatherTask({ id: record.id }).then(res => {
|
|
|
const modal = this.$refs.detailModal
|
|
|
modal.base(res.data)
|
|
|
})
|