|
@@ -89,7 +89,8 @@
|
|
|
<a-descriptions-item label="报修时间">{{ model.applyTime }}</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="要求时间">{{ model.limitHours }}小时</a-descriptions-item>
|
|
|
- <a-descriptions-item label="要求日期" :span="2">{{ model.limitDate }}</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="故障描述" :span="3">{{ model.content }}</a-descriptions-item>
|
|
|
<a-descriptions-item label="报修图片" :span="3">
|
|
|
<div v-if="model.applicationFileList != null && model.applicationFileList.length > 0">
|
|
@@ -156,6 +157,25 @@
|
|
|
</a-descriptions-item>
|
|
|
</a-descriptions >
|
|
|
</div>
|
|
|
+ <div class="main gutter-color" v-show="current == 3">
|
|
|
+ <div class="title">维修记录</div>
|
|
|
+ <a-table
|
|
|
+ :data-source="dataRecord"
|
|
|
+ :columns="columnsRecord"
|
|
|
+ tableLayout="auto"
|
|
|
+ rowKey="id">
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a @click="handleViewRecord(record)">查看</a>
|
|
|
+ <operation-button
|
|
|
+ @click="handleEditRecord(record)" >修改</operation-button>
|
|
|
+ <operation-button
|
|
|
+ title="确认该条维修记录?"
|
|
|
+ @confirm="deleteRecord(record.id)" >删除</operation-button>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
+ </a-table>
|
|
|
+ </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')">
|
|
@@ -248,6 +268,31 @@
|
|
|
</span>
|
|
|
</a-table>
|
|
|
</div>
|
|
|
+ <div class="main gutter-color" v-show="current == 7">
|
|
|
+ <div class="title">维修方案</div>
|
|
|
+ <div style="margin:20px;margin-left:45%;" class="table-operator" >
|
|
|
+ <a-button type="primary" @click="handleAddRepairResolve">
|
|
|
+ <a-icon type="plus"/>
|
|
|
+ 添加方案
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
+ <a-table
|
|
|
+ :data-source="dataRepairResolve"
|
|
|
+ :columns="columnsRepairResolve"
|
|
|
+ tableLayout="auto"
|
|
|
+ rowKey="id">
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a @click="handleViewRepairResolve(record)">方案详情</a>
|
|
|
+ <operation-button
|
|
|
+ @click="handleEditRepairResolve(record)" >修改</operation-button>
|
|
|
+<!-- <operation-button
|
|
|
+ title="确认该条维修记录?"
|
|
|
+ @confirm="deleteRepairResolve(record.id)" >删除</operation-button>-->
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
+ </a-table>
|
|
|
+ </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>
|
|
@@ -283,6 +328,8 @@
|
|
|
<base-form ref="baseRepairProjectModal" @ok="handleOk"/>
|
|
|
<detail ref="detailRepairProjectModal"/>
|
|
|
<edit-form ref="editForm" @ok="handleOk" />
|
|
|
+ <resolve-base-form ref='resolveBaseForm' @ok='handleResolveOk'/>
|
|
|
+ <resolve-detail ref='resolveDetail' @ok='handleResolveOk'/>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -312,11 +359,15 @@ import { deleteRepairFees, fetchRepairFee, queryRepairFee } from '@/api/repair/f
|
|
|
import ReasonBaseForm from '@/views/repair/repair-reason/modules/BaseForm'
|
|
|
import ReasonDetail from '@/views/repair/repair-reason/modules/Detail'
|
|
|
import { deleteRepairReasons, fetchRepairReason, queryRepairReason } from '@/api/repair/repair-reason'
|
|
|
+import { queryRepairRecord } from '@/api/customize/fieldTemplateData'
|
|
|
import DetailSbBom from '@/views/sb/modelbom/modules/DetailSbBom'
|
|
|
import DetailSbCheck from '@/views/check/checkstandard/modules/DetailSbCheck'
|
|
|
import { fetchSbInfo } from '@/api/sb/info'
|
|
|
+import { getRepairSchemePage, fetchRepairScheme } from '@/api/repair/repair'
|
|
|
import BaseForm from '@/views/repair/repairproject/modules/BaseForm'
|
|
|
import Detail from '@/views/repair/repairproject/modules/Detail'
|
|
|
+import ResolveBaseForm from '@/views/repair/repair/modules/BaseForm'
|
|
|
+import ResolveDetail from '@/views/repair/repair/modules/Detail'
|
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
export default {
|
|
@@ -344,7 +395,9 @@ export default {
|
|
|
BaseFormForRepair,
|
|
|
SpareStoreSelectModal,
|
|
|
BaseForm,
|
|
|
- Detail
|
|
|
+ Detail,
|
|
|
+ ResolveBaseForm,
|
|
|
+ ResolveDetail
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -372,6 +425,8 @@ export default {
|
|
|
dataSpare: [],
|
|
|
dataFee: [],
|
|
|
dataReason: [],
|
|
|
+ dataRepairResolve: [],
|
|
|
+ dataRecord: [],
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -486,6 +541,78 @@ export default {
|
|
|
scopedSlots: { customRender: 'action' }
|
|
|
}
|
|
|
],
|
|
|
+ columnsRecord: [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ dataIndex: 'index',
|
|
|
+ width: '70px',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return `${index + 1}`
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '维修时间',
|
|
|
+ dataIndex: 'createdTime',
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '结束时间',
|
|
|
+ dataIndex: 'updateTime',
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '维修人',
|
|
|
+ dataIndex: 'createdUserName',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '维修意见',
|
|
|
+ dataIndex: 'dataRemark',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ key: 'action',
|
|
|
+ width: '200px',
|
|
|
+ align: 'center',
|
|
|
+ scopedSlots: { customRender: 'action' }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ columnsRepairResolve: [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ dataIndex: 'index',
|
|
|
+ width: '70px',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return `${index + 1}`
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '维修意见',
|
|
|
+ dataIndex: 'opinion',
|
|
|
+ width: '200px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '方案提供者',
|
|
|
+ dataIndex: 'createdUserName',
|
|
|
+ width: '120px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '方案提供时间',
|
|
|
+ dataIndex: 'createdTime',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ key: 'action',
|
|
|
+ width: '200px',
|
|
|
+ align: 'center',
|
|
|
+ scopedSlots: { customRender: 'action' }
|
|
|
+ }
|
|
|
+ ],
|
|
|
columnsReason: [
|
|
|
{
|
|
|
title: '序号',
|
|
@@ -560,7 +687,8 @@ export default {
|
|
|
'limitDate': null,
|
|
|
'updateUserName': null,
|
|
|
'repairFormVO': null,
|
|
|
- 'repairCheckVO': null
|
|
|
+ 'repairCheckVO': null,
|
|
|
+ 'checkUserName': null
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -614,6 +742,12 @@ export default {
|
|
|
queryRepairReason({ repairId: this.model.id }).then(res => {
|
|
|
this.dataReason = res.data
|
|
|
})
|
|
|
+ queryRepairRecord({ objId: this.model.id, remark: 'repair_record' }).then(res => {
|
|
|
+ this.dataRecord = res.data
|
|
|
+ })
|
|
|
+ getRepairSchemePage({ repairId: this.model.id }).then(res => {
|
|
|
+ this.dataRepairResolve = res.data.rows
|
|
|
+ })
|
|
|
},
|
|
|
handleViewBom (record) {
|
|
|
this.visible = false
|
|
@@ -682,6 +816,24 @@ export default {
|
|
|
modal.base(res.data)
|
|
|
})
|
|
|
},
|
|
|
+ handleAddRepairResolve () {
|
|
|
+ const modal = this.$refs.resolveBaseForm
|
|
|
+ modal.base({ repairId: this.model.id, repairNo: this.model.no })
|
|
|
+ },
|
|
|
+ handleViewRepairResolve (record) {
|
|
|
+ this.visible = false
|
|
|
+ fetchRepairScheme({ id: record.id }).then(res => {
|
|
|
+ const modal = this.$refs.resolveDetail
|
|
|
+ modal.base(res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleEditRepairResolve (record) {
|
|
|
+ fetchRepairScheme({ id: record.id }).then(res => {
|
|
|
+ const modal = this.$refs.resolveBaseForm
|
|
|
+ const data = res.data
|
|
|
+ modal.base(data)
|
|
|
+ })
|
|
|
+ },
|
|
|
batchDeleteReason (id) {
|
|
|
let ids = []
|
|
|
if (this.BaseTool.String.isBlank(id)) {
|
|
@@ -746,6 +898,14 @@ export default {
|
|
|
})
|
|
|
this.init()
|
|
|
},
|
|
|
+ handleResolveOk () {
|
|
|
+ this.loading = true
|
|
|
+ this.visible = true
|
|
|
+ getRepairSchemePage({ repairId: this.model.id }).then(res => {
|
|
|
+ this.loading = false
|
|
|
+ this.dataRepairResolve = res.data.rows
|
|
|
+ })
|
|
|
+ },
|
|
|
handleFinish () {
|
|
|
const modal = this.$refs.finishForm
|
|
|
modal.base(this.model)
|