|
@@ -78,26 +78,7 @@
|
|
|
</div>
|
|
|
</a-layout-sider>
|
|
|
</a-layout>
|
|
|
- <!-- <title-divider title="维修项目" width="90px"></title-divider>-->
|
|
|
- <!-- <div class="table-operator" v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)">-->
|
|
|
- <!-- <a-button type="primary" @click="handleRepairProjectSelect">-->
|
|
|
- <!-- <a-icon type="plus"/>-->
|
|
|
- <!-- 添加-->
|
|
|
- <!-- </a-button>-->
|
|
|
- <!-- </div>-->
|
|
|
- <!-- <a-table-->
|
|
|
- <!-- :data-source="data"-->
|
|
|
- <!-- :columns="columns"-->
|
|
|
- <!-- tableLayout="auto"-->
|
|
|
- <!-- rowKey="id">-->
|
|
|
- <!-- </a-table>-->
|
|
|
<title-divider title="配件清单" width="90px"></title-divider>
|
|
|
- <!-- <div class="table-operator" v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)">-->
|
|
|
- <!-- <a-button type="primary" @click="handleSpareSelect">-->
|
|
|
- <!-- <a-icon type="plus"/>-->
|
|
|
- <!-- 添加-->
|
|
|
- <!-- </a-button>-->
|
|
|
- <!-- </div>-->
|
|
|
<a-table
|
|
|
:data-source="dataSpare"
|
|
|
:columns="columnsSpare"
|
|
@@ -118,36 +99,29 @@
|
|
|
:columns="columnsFee"
|
|
|
tableLayout="auto"
|
|
|
rowKey="id">
|
|
|
-<!-- <span slot="action" slot-scope="record">-->
|
|
|
-<!-- <template>-->
|
|
|
-<!-- <a @click="handleViewFee(record)">查看</a>-->
|
|
|
-<!-- <operation-button-->
|
|
|
-<!-- v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"-->
|
|
|
-<!-- @click="handleEditFee(record)" >修改</operation-button>-->
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a @click="handleViewFee(record)">查看</a>
|
|
|
+ <operation-button
|
|
|
+ v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"
|
|
|
+ @click="handleEditFee(record)" >修改</operation-button>
|
|
|
|
|
|
-<!-- <operation-button-->
|
|
|
-<!-- v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"-->
|
|
|
-<!-- :type="2"-->
|
|
|
-<!-- title="确认删除该笔费用?"-->
|
|
|
-<!-- @confirm="batchDeleteFee(record.id)" >删除</operation-button>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- </span>-->
|
|
|
+ <operation-button
|
|
|
+ v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"
|
|
|
+ :type="2"
|
|
|
+ title="确认删除该笔费用?"
|
|
|
+ @confirm="batchDeleteFee(record.id)" >删除</operation-button>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
</a-table>
|
|
|
- <!--<q-tabs :activeKey="activeKey" @change="changeTab">
|
|
|
- <q-tab-pane key="a" tab="配件更换">
|
|
|
- <spare-part-used-select-table :type="1" :table-params="{sbId: model.sbId, modelId: model.modelId, repairId: model.id}" ref="sparePartUsedSelectTable"/>
|
|
|
- </q-tab-pane>
|
|
|
- <q-tab-pane key="b" tab="备件领用">
|
|
|
- <spare-pick-form-select-table :type="1" :table-params="{repairId: model.id, repairNo: model.no}" ref="sparePickFormSelectTable"/>
|
|
|
- </q-tab-pane>
|
|
|
- </q-tabs>-->
|
|
|
+
|
|
|
<title-divider title="原因分析" width="90px"></title-divider>
|
|
|
- <!-- <div class="table-operator" v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)">-->
|
|
|
- <!-- <a-button type="primary" @click="handleAddReason">-->
|
|
|
- <!-- <a-icon type="plus"/>-->
|
|
|
- <!-- 添加-->
|
|
|
- <!-- </a-button>-->
|
|
|
- <!-- </div>-->
|
|
|
+ <div class="table-operator" v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)">
|
|
|
+ <a-button type="primary" @click="handleAddReason">
|
|
|
+ <a-icon type="plus"/>
|
|
|
+ 添加
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
<a-table
|
|
|
:data-source="dataReason"
|
|
|
:columns="columnsReason"
|
|
@@ -156,15 +130,15 @@
|
|
|
<span slot="action" slot-scope="record">
|
|
|
<template>
|
|
|
<a @click="handleViewReason(record)">查看</a>
|
|
|
- <!-- <operation-button-->
|
|
|
- <!-- v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"-->
|
|
|
- <!-- @click="handleEditReason(record)" >修改</operation-button>-->
|
|
|
+ <operation-button
|
|
|
+ v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"
|
|
|
+ @click="handleEditReason(record)" >修改</operation-button>
|
|
|
|
|
|
- <!-- <operation-button-->
|
|
|
- <!-- v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"-->
|
|
|
- <!-- :type="2"-->
|
|
|
- <!-- title="确认删除该记录?"-->
|
|
|
- <!-- @confirm="batchDeleteReason(record.id)" >删除</operation-button>-->
|
|
|
+ <operation-button
|
|
|
+ v-if="$auth('repair-application-forms-finish') && ( DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.PROCESSING === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)"
|
|
|
+ :type="2"
|
|
|
+ title="确认删除该记录?"
|
|
|
+ @confirm="batchDeleteReason(record.id)" >删除</operation-button>
|
|
|
</template>
|
|
|
</span>
|
|
|
</a-table>
|
|
@@ -229,6 +203,7 @@ export default {
|
|
|
descripitionMap: {},
|
|
|
statusMap: {},
|
|
|
typeMap: {},
|
|
|
+ typeReasonMap: {},
|
|
|
repairProjectMap: {},
|
|
|
repairTechnologyMap: {},
|
|
|
data: [],
|
|
@@ -369,10 +344,13 @@ export default {
|
|
|
width: '200px'
|
|
|
},
|
|
|
{
|
|
|
- title: '改进措施',
|
|
|
+ title: '改进措施类别',
|
|
|
dataIndex: 'improveMeasure',
|
|
|
ellipsis: true,
|
|
|
- width: '200px'
|
|
|
+ width: '200px',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return this.BaseTool.Object.getField(this.typeReasonMap, text)
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
@@ -419,6 +397,7 @@ export default {
|
|
|
this.repairTechnologyMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_TECHNOLOGY_TYPE)
|
|
|
this.descripitionMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_QUESTION)
|
|
|
this.typeMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_FEE_TYPE)
|
|
|
+ this.typeReasonMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_REASON_TYPE)
|
|
|
},
|
|
|
methods: {
|
|
|
base (record) {
|