|
@@ -134,7 +134,19 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="main gutter-color" v-show="current == 2">
|
|
|
- <div class="title">审核详情</div>
|
|
|
+ <div class="title">审核记录</div>
|
|
|
+ <a-table
|
|
|
+ :data-source="dataVerifyRecord"
|
|
|
+ :columns="columnsVerifyRecord"
|
|
|
+ tableLayout="auto"
|
|
|
+ rowKey="id">
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a @click="handleVerifyRecord(record)">审核详情</a>
|
|
|
+ </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>
|
|
@@ -153,7 +165,7 @@
|
|
|
</viewer></div>
|
|
|
<div v-if="model.checkFileList == null || model.checkFileList.length === 0"> 暂无</div>
|
|
|
</a-descriptions-item>
|
|
|
- </a-descriptions >
|
|
|
+ </a-descriptions >-->
|
|
|
</div>
|
|
|
<div class="main gutter-color" v-show="current == 3">
|
|
|
<div class="title">维修记录</div>
|
|
@@ -165,9 +177,8 @@
|
|
|
<span slot="action" slot-scope="record">
|
|
|
<template>
|
|
|
<a @click="handleViewRecord(record)">维修详情</a>
|
|
|
- <!-- <operation-button
|
|
|
- @click="handleEditRecord(record)" >修改</operation-button>
|
|
|
- <operation-button
|
|
|
+ <operation-button @click="handleEditRecord(record)" >编辑</operation-button>
|
|
|
+<!-- <operation-button
|
|
|
title="确认该条维修记录?"
|
|
|
@confirm="deleteRecord(record.id)" >删除</operation-button>-->
|
|
|
</template>
|
|
@@ -214,10 +225,10 @@
|
|
|
</div>
|
|
|
<div class="main gutter-color" v-show="current == 5">
|
|
|
<div class="title">费用清单</div>
|
|
|
- <div style="margin:20px;" class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
+ <div style="margin:20px;margin-left:45%;" class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
<a-button type="primary" @click="handleAddFee">
|
|
|
<a-icon type="plus"/>
|
|
|
- 添加
|
|
|
+ 费用单
|
|
|
</a-button>
|
|
|
</div>
|
|
|
<a-table
|
|
@@ -239,10 +250,10 @@
|
|
|
</div>
|
|
|
<div class="main gutter-color" v-show="current == 6">
|
|
|
<div class="title">维修报告</div>
|
|
|
- <div style="margin:20px;" class="table-operator" v-if="$auth('repair-application-forms-finish') && ((dataReason === null) || (dataReason.length===0))">
|
|
|
+ <div style="margin:20px;margin-left:45%;" class="table-operator" v-if="$auth('repair-application-forms-finish') && ((dataReason === null) || (dataReason.length===0))">
|
|
|
<a-button type="primary" @click="handleAddReason">
|
|
|
<a-icon type="plus"/>
|
|
|
- 添加
|
|
|
+ 维修报告
|
|
|
</a-button>
|
|
|
</div>
|
|
|
<a-table
|
|
@@ -337,13 +348,15 @@
|
|
|
<resolve-detail ref="resolveDetail" @ok="handleResolveOk"/>
|
|
|
<detail-repair-record ref="detailRepairRecord" @ok="handleRepairRecordOk"/>
|
|
|
<transfer-form ref="transferForm" @ok="handleOk"/>
|
|
|
+ <detail-check-new ref='detailCheckNew' @ok='handleVerifyRecordOk'/>
|
|
|
+ <repair-record-form ref='repairRecordForm' @ok='handleRepairRecordOk' />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
// import { stringify } from 'qs'
|
|
|
import DetailList from '@/components/tools/DetailList'
|
|
|
-import { fetchRepairApplicationForm, examine, approve, receive } from '@/api/repair/application-form'
|
|
|
+import { fetchRepairApplicationForm, approve, receive } from '@/api/repair/application-form'
|
|
|
import CheckForm from './CheckForm'
|
|
|
import BaseOutForm from './BaseOutForm'
|
|
|
import FinishForm from './FinishForm'
|
|
@@ -377,6 +390,8 @@ import ResolveBaseForm from '@/views/repair/repair/modules/BaseForm'
|
|
|
import ResolveDetail from '@/views/repair/repair/modules/Detail'
|
|
|
import DetailRepairRecord from './DetailRepairRecord'
|
|
|
import TransferForm from './TransferForm'
|
|
|
+import DetailCheckNew from './DetailCheckNew'
|
|
|
+import RepairRecordForm from './RepairRecordForm'
|
|
|
const DetailListItem = DetailList.Item
|
|
|
|
|
|
export default {
|
|
@@ -408,7 +423,9 @@ export default {
|
|
|
ResolveBaseForm,
|
|
|
ResolveDetail,
|
|
|
DetailRepairRecord,
|
|
|
- TransferForm
|
|
|
+ TransferForm,
|
|
|
+ DetailCheckNew,
|
|
|
+ RepairRecordForm
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
@@ -439,6 +456,7 @@ export default {
|
|
|
dataReason: [],
|
|
|
dataRepairResolve: [],
|
|
|
dataRecord: [],
|
|
|
+ dataVerifyRecord: [],
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
@@ -553,6 +571,65 @@ export default {
|
|
|
scopedSlots: { customRender: 'action' }
|
|
|
}
|
|
|
],
|
|
|
+ columnsVerifyRecord: [
|
|
|
+ {
|
|
|
+ title: '序号',
|
|
|
+ dataIndex: 'index',
|
|
|
+ width: '70px',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return `${index + 1}`
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核人',
|
|
|
+ dataIndex: 'createdUserName',
|
|
|
+ width: '100px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核时间',
|
|
|
+ dataIndex: 'createdTime',
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核类别',
|
|
|
+ dataIndex: 'type',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '100px',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ if (text === 1) {
|
|
|
+ return '维修审核'
|
|
|
+ } else if (text === 2) {
|
|
|
+ return '报修审核'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核状态',
|
|
|
+ dataIndex: 'status',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '100px',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ if (text === 1) {
|
|
|
+ return '审核通过'
|
|
|
+ } else if (text === 2) {
|
|
|
+ return '审核拒绝'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '审核意见',
|
|
|
+ dataIndex: 'dataRemark',
|
|
|
+ ellipsis: true,
|
|
|
+ width: '150px'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作',
|
|
|
+ key: 'action',
|
|
|
+ width: '200px',
|
|
|
+ align: 'center',
|
|
|
+ scopedSlots: { customRender: 'action' }
|
|
|
+ }
|
|
|
+ ],
|
|
|
columnsRecord: [
|
|
|
{
|
|
|
title: '序号',
|
|
@@ -861,6 +938,13 @@ export default {
|
|
|
modal.base(res.data)
|
|
|
})
|
|
|
},
|
|
|
+ handleVerifyRecord (record) {
|
|
|
+ this.visible = false
|
|
|
+ fetchCustomDataForRepairRecord({ id: record.id }).then(res => {
|
|
|
+ const modal = this.$refs.detailCheckNew
|
|
|
+ modal.base(res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
batchDeleteReason (id) {
|
|
|
let ids = []
|
|
|
if (this.BaseTool.String.isBlank(id)) {
|
|
@@ -911,9 +995,16 @@ export default {
|
|
|
this.handleOk()
|
|
|
})
|
|
|
},
|
|
|
+ handleEditRecord (record) {
|
|
|
+ this.visible = false
|
|
|
+ fetchCustomDataForRepairRecord({ id: record.id }).then(res => {
|
|
|
+ const modal = this.$refs.repairRecordForm
|
|
|
+ modal.base(res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
handleReturn () {
|
|
|
const modal = this.$refs.checkForm
|
|
|
- modal.base(this.model)
|
|
|
+ modal.base(this.model, 1)
|
|
|
},
|
|
|
handleOk () {
|
|
|
this.loading = true
|
|
@@ -941,18 +1032,28 @@ export default {
|
|
|
this.dataRecord = res.data.rows
|
|
|
})
|
|
|
},
|
|
|
+ handleVerifyRecordOk () {
|
|
|
+ this.loading = true
|
|
|
+ this.visible = true
|
|
|
+ queryRepairRecord({ objId: this.model.id, remark: 'repair_verify_record' }).then(res => {
|
|
|
+ this.loading = false
|
|
|
+ this.dataVerifyRecord = res.data.rows
|
|
|
+ })
|
|
|
+ },
|
|
|
handleFinish () {
|
|
|
const modal = this.$refs.finishForm
|
|
|
modal.base(this.model)
|
|
|
},
|
|
|
handleExamine () {
|
|
|
- examine({ id: this.model.id }).then(res => {
|
|
|
+ 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()
|
|
|
+ this.init() */
|
|
|
},
|
|
|
handleDispatch () {
|
|
|
const modal = this.$refs.dispatchForm
|