|
@@ -16,7 +16,7 @@
|
|
|
<a-col :span="6">
|
|
|
<div class="gutter-btn gutter-color" :class="{'act':current===0}" @click="current=0">
|
|
|
<my-icon type="icon-weixiu1" />
|
|
|
- <div style="font-size:25px">报修详情</div>
|
|
|
+ <div style="font-size:25px">报修数据</div>
|
|
|
</div>
|
|
|
</a-col>
|
|
|
<a-col :span="6" >
|
|
@@ -70,7 +70,7 @@
|
|
|
</a-row>
|
|
|
<div>
|
|
|
<div class="main gutter-color" v-show="current == 0">
|
|
|
- <div class="title">报修详情</div>
|
|
|
+ <div class="title">报修数据</div>
|
|
|
<div>
|
|
|
<a-descriptions :column="3" bordered>
|
|
|
<a-descriptions-item label="报修单号">{{ model.no }}</a-descriptions-item>
|
|
@@ -79,16 +79,11 @@
|
|
|
<a-descriptions-item label="送修部门">{{ model.limitHours }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="使用位置">{{ model.sbCph }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="工单类别">{{ BaseTool.Object.getField(planFlagMap,model.category) }}</a-descriptions-item>
|
|
|
- <!-- <a-descriptions-item label="是否停机">{{ BaseTool.Object.getField(needStopMap,model.needStop) }}</a-descriptions-item>-->
|
|
|
<a-descriptions-item label="报修状态"><badge :text="BaseTool.Object.getField(statusMap,model.status)" :status="DictCache.COLOR.REPAIR_APPLICATION_FORM_STATUS[model.status]"/></a-descriptions-item>
|
|
|
-
|
|
|
- <!-- <a-descriptions-item label="报修来源">{{ BaseTool.Object.getField(this.sourceMap, model.source) }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="紧急等级"><badge :text="BaseTool.Object.getField(levelMap,model.level)" :status="DictCache.COLOR.REPAIR_APPLICATION_FORM_LEVEL[model.applicationLevel]"/></a-descriptions-item>-->
|
|
|
<a-descriptions-item label="报修时间">{{ model.applyTime }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="报修人">{{ model.actualUser }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="要求时间">{{ model.limitHours }}小时</a-descriptions-item>
|
|
|
- <a-descriptions-item label="维修主管">{{ model.checkUserName }}</a-descriptions-item>
|
|
|
-<!-- <a-descriptions-item label="报修人">{{ model.actualUser }}</a-descriptions-item>-->
|
|
|
+ <a-descriptions-item label="维修主管" >{{ model.checkUserName }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="故障描述" :span="3">{{ model.content }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="报修图片" :span="3">
|
|
|
<div v-if="model.applicationFileList != null && model.applicationFileList.length > 0">
|
|
@@ -110,26 +105,10 @@
|
|
|
<div class="title">维修数据</div>
|
|
|
<div>
|
|
|
<a-descriptions :column="3" bordered>
|
|
|
- <!-- <a-descriptions-item label="故障类别">{{ model.repairErrorTypeName }}</a-descriptions-item>-->
|
|
|
<a-descriptions-item label="维修开始时间">{{ model.repairStartTime }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="维修结束时间">{{ model.repairEndTime }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="维修耗时">{{ model.repairMinutes }}小时</a-descriptions-item>
|
|
|
<a-descriptions-item label="当前维修人">{{ model.repairUserName }}</a-descriptions-item>
|
|
|
- <!--<a-descriptions-item label="维修次数">{{ model.repairTimes }}</a-descriptions-item>-->
|
|
|
- <!-- <a-descriptions-item label="维修描述" :span="2">{{ model.repairContent }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="报修图片" :span="3">
|
|
|
- <div v-if="model.repairFileList != null && model.repairFileList.length > 0">
|
|
|
- <viewer :images="model.repairFileList" @inited="inited" ref="viewer" :index="1" >
|
|
|
- <img
|
|
|
- v-for="item in model.repairFileList"
|
|
|
- :src="item.url"
|
|
|
- :key="item.id"
|
|
|
- class="image"
|
|
|
- width="200px"
|
|
|
- style="margin:10px;">
|
|
|
- </viewer></div>
|
|
|
- <div v-if="model.repairFileList == null || model.repairFileList.length === 0"> 暂无</div>
|
|
|
- </a-descriptions-item>-->
|
|
|
</a-descriptions>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -146,26 +125,6 @@
|
|
|
</template>
|
|
|
</span>
|
|
|
</a-table>
|
|
|
-<!-- <div class="title">审核详情</div>
|
|
|
- <a-descriptions bordered>
|
|
|
- <a-descriptions-item label="审核开始时间">{{ model.checkStartTime }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="审核结束时间">{{ model.checkEndTime }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="审核人员">{{ model.checkUserName }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="审核描述" :span="3">{{ model.checkContent }}</a-descriptions-item>
|
|
|
- <a-descriptions-item label="审核图片" :span="3">
|
|
|
- <div v-if="model.checkFileList != null && model.checkFileList.length > 0">
|
|
|
- <viewer :images="model.checkFileList" @inited="inited" ref="viewer" :index="1" >
|
|
|
- <img
|
|
|
- v-for="item in model.checkFileList"
|
|
|
- :src="item.url"
|
|
|
- :key="item.id"
|
|
|
- class="image"
|
|
|
- width="200px"
|
|
|
- style="margin:10px;">
|
|
|
- </viewer></div>
|
|
|
- <div v-if="model.checkFileList == null || model.checkFileList.length === 0"> 暂无</div>
|
|
|
- </a-descriptions-item>
|
|
|
- </a-descriptions >-->
|
|
|
</div>
|
|
|
<div class="main gutter-color" v-show="current == 3">
|
|
|
<div class="title">维修记录</div>
|
|
@@ -187,7 +146,7 @@
|
|
|
</div>
|
|
|
<div class="main gutter-color" v-show="current == 4">
|
|
|
<div class="title">备件清单</div>
|
|
|
- <div style="margin:20px;" class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
+ <div style="margin:20px;margin-left: 33%;" class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
<a-button type="primary" @click="handleSpareStoreSelect(1)">
|
|
|
<a-icon type="plus"/>
|
|
|
更换专用备件
|
|
@@ -212,9 +171,6 @@
|
|
|
<span slot="actionSpare" slot-scope="record">
|
|
|
<template>
|
|
|
<a v-if="$auth('repair-application-forms-finish') && record.isSpecial === 0" @click="handleEditSpare(record)">修改</a>
|
|
|
- <!-- <a-popconfirm v-if="$auth('repair-application-forms-finish')" title="是否替换该备件?" @confirm="updateSpare(record)">
|
|
|
- <a>更换备件</a>
|
|
|
- </a-popconfirm>-->
|
|
|
<a-divider type="vertical" />
|
|
|
<a-popconfirm v-if="$auth('repair-application-forms-finish')" title="是否要删除该条数据?" @confirm="batchDeleteSpare(record.id)">
|
|
|
<a>删除</a>
|
|
@@ -304,17 +260,9 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="btn">
|
|
|
- <!-- <a-button v-if="$auth('repair-application-forms-finish')" style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewBom()">备件BOM</a-button>
|
|
|
- <a-button v-if="$auth('repair-application-forms-finish')" style="margin-left: 16px" type="default" @ok="handleOk" @click="handleViewCheck()">维护项目</a-button>-->
|
|
|
<a-button v-if="$auth('repair-application-forms-assign') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)" style="margin-left: 16px" type="default" @click="handleAssign">派工</a-button>
|
|
|
- <!-- <a-popconfirm v-if="$auth('repair-application-forms-deal') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status)" title="是否要接收?" @confirm="receive">
|
|
|
- <a-button style="margin-left: 8px">接收</a-button>
|
|
|
- </a-popconfirm> -->
|
|
|
- <!-- <a-button v-if="$auth('repair-application-forms-out') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING >= model.status) && model.type != 2" style="margin-left: 8px" type="default" @click="handleOut">委外</a-button>
|
|
|
- <a-button v-if="$auth('repair-application-forms-dispatch') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status" style="margin-left: 8px" type="default" @click="handleDispatch">转派</a-button>-->
|
|
|
<a-button v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleTransfer()">转派申请</a-button>
|
|
|
- <a-button v-if="$auth('repair-application-forms-finish') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleFinish()">完成</a-button>
|
|
|
- <!-- <a-button v-if="$auth('repair-application-forms-edit')" style="margin-left: 8px" type="default" @click="handleEdit()">修改</a-button>-->
|
|
|
+ <a-button v-if="$auth('repair-application-forms-finish') && DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status" style="margin-left: 8px" type="default" @click="handleFinish()">完成维修</a-button>
|
|
|
<a-popconfirm v-if="DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.WAIT_SUBMIT === model.status" title="是否要提交审核该条数据?" @confirm="handleExamine">
|
|
|
<a-button style="margin-left: 8px" type="default">提交生产审核</a-button>
|
|
|
</a-popconfirm>
|
|
@@ -329,7 +277,7 @@
|
|
|
</div>
|
|
|
<check-form ref="checkForm" @ok="handleOk" />
|
|
|
<base-out-form ref="outForm" @ok="handleCancel" />
|
|
|
- <finish-form ref="finishForm" @ok="handleCancel" />
|
|
|
+ <finish-form ref="finishForm" @ok="handleRepairRecordOk" />
|
|
|
<dispatch-form ref="dispatchForm" @ok="handleCancel" />
|
|
|
<assign-form ref="assignForm" @ok="handleCancel" />
|
|
|
<spare-pick-base-form ref="baseModal" @ok="handleOk"/>
|
|
@@ -639,6 +587,12 @@ export default {
|
|
|
return `${index + 1}`
|
|
|
}
|
|
|
},
|
|
|
+ {
|
|
|
+ title: '维修人',
|
|
|
+ dataIndex: 'createdUserName',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
{
|
|
|
title: '维修时间',
|
|
|
dataIndex: 'createdTime',
|
|
@@ -650,17 +604,23 @@ export default {
|
|
|
width: '150px'
|
|
|
},
|
|
|
{
|
|
|
- title: '维修人',
|
|
|
- dataIndex: 'createdUserName',
|
|
|
+ title: '维修时长',
|
|
|
+ dataIndex: 'repairHours',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '100px'
|
|
|
+ },
|
|
|
+ /* {
|
|
|
+ title: '维修建议',
|
|
|
+ dataIndex: 'opinion',
|
|
|
ellipsis: true,
|
|
|
width: '150px'
|
|
|
},
|
|
|
{
|
|
|
- title: '维修意见',
|
|
|
+ title: '维修描述',
|
|
|
dataIndex: 'dataRemark',
|
|
|
ellipsis: true,
|
|
|
width: '150px'
|
|
|
- },
|
|
|
+ }, */
|
|
|
{
|
|
|
title: '操作',
|
|
|
key: 'action',
|
|
@@ -679,7 +639,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '维修意见',
|
|
|
+ title: '维修建议',
|
|
|
dataIndex: 'opinion',
|
|
|
width: '200px'
|
|
|
},
|
|
@@ -777,7 +737,8 @@ export default {
|
|
|
'updateUserName': null,
|
|
|
'repairFormVO': null,
|
|
|
'repairCheckVO': null,
|
|
|
- 'checkUserName': null
|
|
|
+ 'checkUserName': null,
|
|
|
+ 'remarkTwo': null
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -822,9 +783,6 @@ export default {
|
|
|
selectSparePartUsedListByRepairId({ id: this.model.id }).then(res => {
|
|
|
this.dataSpare = res.data
|
|
|
})
|
|
|
- /* selectSparePartUsedListBySbId({ id: this.model.sbId }).then(res => {
|
|
|
- this.dataSpare = res.data
|
|
|
- }) */
|
|
|
queryRepairFee({ repairId: this.model.id }).then(res => {
|
|
|
this.dataFee = res.data
|
|
|
})
|
|
@@ -835,9 +793,11 @@ export default {
|
|
|
this.dataRecord = res.data.rows
|
|
|
})
|
|
|
queryRepairRecord({ objId: this.model.id, pageSize: 20, remark: 'repair_status_record' }).then(res => {
|
|
|
- console.log(res)
|
|
|
this.repairStatus = res.data.rows
|
|
|
})
|
|
|
+ queryRepairRecord({ objId: this.model.id, remark: 'repair_verify_record' }).then(res => {
|
|
|
+ this.dataVerifyRecord = res.data.rows
|
|
|
+ })
|
|
|
getRepairSchemePage({ repairId: this.model.id }).then(res => {
|
|
|
this.dataRepairResolve = res.data.rows
|
|
|
})
|
|
@@ -866,8 +826,6 @@ export default {
|
|
|
receive () {
|
|
|
this.model.status = this.DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING
|
|
|
receive(this.model).then(() => {
|
|
|
- // const modal = this.$refs.finishForm
|
|
|
- // modal.base(that.model)
|
|
|
})
|
|
|
},
|
|
|
batchDeleteFee (id) {
|
|
@@ -1047,13 +1005,6 @@ export default {
|
|
|
handleExamine () {
|
|
|
const modal = this.$refs.checkForm
|
|
|
modal.base(this.model, 2)
|
|
|
- /* examine({ id: this.model.id }).then(res => {
|
|
|
- this.loading = false
|
|
|
- this.visible = true
|
|
|
- this.model.status = this.DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ACCEPTANCE
|
|
|
- this.$message.info('已提交,请等待审核')
|
|
|
- })
|
|
|
- this.init() */
|
|
|
},
|
|
|
handleDispatch () {
|
|
|
const modal = this.$refs.dispatchForm
|
|
@@ -1153,7 +1104,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
handleSpareStoreSelect (isSpecial) {
|
|
|
- // this.$refs.spareStoreSelectModal.base({}, { storeId: this.storeId, isSpecial: isSpecial, sbId: this.model.sbId })
|
|
|
this.$refs.spareStoreSelectModal.base({}, { repairFlag: 1, storeId: this.storeId, isSpecial: isSpecial, sbId: this.model.sbId })
|
|
|
},
|
|
|
handleSpareStoreSelected (record, keys, rows) {
|