|
@@ -5,7 +5,7 @@
|
|
|
<a-col :md="48" :sm="48">
|
|
|
<span class="table-page-search-submitButtons" style="float: right">
|
|
|
<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-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="primary" @click="handleAssign">派工</a-button>
|
|
|
<a-popconfirm v-if="$auth('repair-application-forms-deal') && (DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.NOT_ALLOCATED === model.status || DictCache.VALUE.REPAIR_APPLICATION_FORM_STATUS.REBACK === model.status)" title="是否要接收?" @confirm="receive">
|
|
|
<a-button style="margin-left: 8px">接收</a-button>
|
|
@@ -29,7 +29,7 @@
|
|
|
<detail-list-item term="设备名称">{{ model.sbName }}</detail-list-item>
|
|
|
<detail-list-item term="预留维修时间">{{ model.limitHours }}</detail-list-item>
|
|
|
<detail-list-item term="使用位置">{{ model.sbCph }}</detail-list-item>
|
|
|
- <detail-list-item term="是否停机">{{ BaseTool.Object.getField(needStopMap,model.needStop) }}</detail-list-item>
|
|
|
+ <detail-list-item term="计划性维修">{{ BaseTool.Object.getField(needStopMap,model.needStop) }}</detail-list-item>
|
|
|
<detail-list-item term="报修人">{{ model.actualUser }}</detail-list-item>
|
|
|
<detail-list-item term="报修来源">{{ BaseTool.Object.getField(this.sourceMap, model.source) }}</detail-list-item>
|
|
|
<detail-list-item term="紧急等级"><badge :text="BaseTool.Object.getField(levelMap,model.level)" :status="DictCache.COLOR.REPAIR_APPLICATION_FORM_LEVEL[model.applicationLevel]"/></detail-list-item>
|
|
@@ -89,82 +89,93 @@
|
|
|
</div>
|
|
|
</a-layout-sider>
|
|
|
</a-layout>
|
|
|
- <title-divider title="备件清单" width="90px"></title-divider>
|
|
|
- <div class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
- <a-button type="primary" @click="handleSpareStoreSelect">
|
|
|
- <a-icon type="plus"/>
|
|
|
- 添加
|
|
|
- </a-button>
|
|
|
- </div>
|
|
|
- <a-table
|
|
|
- :data-source="dataSpare"
|
|
|
- :columns="columnsSpare"
|
|
|
- :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
|
- tableLayout="auto"
|
|
|
- rowKey="id">
|
|
|
- <span slot="actionSpare" slot-scope="record">
|
|
|
- <template>
|
|
|
- <a v-if="$auth('repair-application-forms-finish')" @click="handleEditSpare(record)">修改</a>
|
|
|
- <a-divider type="vertical" />
|
|
|
- <a-popconfirm v-if="$auth('repair-application-forms-finish')" title="是否要删除该条数据?" @confirm="batchDeleteSpare(record.id)">
|
|
|
- <a>删除</a>
|
|
|
- </a-popconfirm>
|
|
|
- </template>
|
|
|
- </span>
|
|
|
- </a-table>
|
|
|
+ <q-tabs :activeKey="activeKey" @change="changeTab">
|
|
|
+ <q-tab-pane key="1" tab="备件清单">
|
|
|
+ <div class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
+ <a-button type="primary" @click="handleSpareStoreSelect">
|
|
|
+ <a-icon type="plus"/>
|
|
|
+ 添加
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
+ <a-table
|
|
|
+ :data-source="dataSpare"
|
|
|
+ :columns="columnsSpare"
|
|
|
+ :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
|
|
|
+ tableLayout="auto"
|
|
|
+ rowKey="id">
|
|
|
+ <span slot="actionSpare" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a v-if="$auth('repair-application-forms-finish')" @click="handleEditSpare(record)">修改</a>
|
|
|
+ <a-divider type="vertical" />
|
|
|
+ <a-popconfirm v-if="$auth('repair-application-forms-finish')" title="是否要删除该条数据?" @confirm="batchDeleteSpare(record.id)">
|
|
|
+ <a>删除</a>
|
|
|
+ </a-popconfirm>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
+ </a-table>
|
|
|
+ </q-tab-pane>
|
|
|
+ <q-tab-pane key="2" tab="费用清单">
|
|
|
+ <div 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
|
|
|
+ :data-source="dataFee"
|
|
|
+ :columns="columnsFee"
|
|
|
+ tableLayout="auto"
|
|
|
+ rowKey="id">
|
|
|
+ <span slot="action" slot-scope="record">
|
|
|
+ <template>
|
|
|
+ <a @click="handleViewFee(record)">查看</a>
|
|
|
+ <operation-button
|
|
|
+ @click="handleEditFee(record)" >修改</operation-button>
|
|
|
+ <operation-button
|
|
|
+ title="确认删除该笔费用?"
|
|
|
+ @confirm="batchDeleteFee(record.id)" >删除</operation-button>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
+ </a-table>
|
|
|
+ </q-tab-pane>
|
|
|
+ <q-tab-pane key="3" tab="维修报告">
|
|
|
+ <div class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
+ <a-button type="primary" @click="handleAddReason">
|
|
|
+ <a-icon type="plus"/>
|
|
|
+ 添加
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
+ <a-table
|
|
|
+ :data-source="dataReason"
|
|
|
+ :columns="columnsReason"
|
|
|
+ :scroll="{x: 1, y: BaseTool.Constant.scrollY }"
|
|
|
+ rowKey="id">
|
|
|
+ <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="handleCopyReason(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>
|
|
|
+ </template>
|
|
|
+ </span>
|
|
|
+ </a-table>
|
|
|
+ </q-tab-pane>
|
|
|
+ </q-tabs>
|
|
|
+ <!-- <title-divider title="备件清单" width="90px"></title-divider>
|
|
|
+
|
|
|
<title-divider title="费用清单" width="90px"></title-divider>
|
|
|
- <div 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
|
|
|
- :data-source="dataFee"
|
|
|
- :columns="columnsFee"
|
|
|
- tableLayout="auto"
|
|
|
- rowKey="id">
|
|
|
- <span slot="action" slot-scope="record">
|
|
|
- <template>
|
|
|
- <a @click="handleViewFee(record)">查看</a>
|
|
|
- <operation-button
|
|
|
- @click="handleEditFee(record)" >修改</operation-button>
|
|
|
- <operation-button
|
|
|
- title="确认删除该笔费用?"
|
|
|
- @confirm="batchDeleteFee(record.id)" >删除</operation-button>
|
|
|
- </template>
|
|
|
- </span>
|
|
|
- </a-table>
|
|
|
- <title-divider title="原因分析" width="90px"></title-divider>
|
|
|
- <div class="table-operator" v-if="$auth('repair-application-forms-finish')">
|
|
|
- <a-button type="primary" @click="handleAddReason">
|
|
|
- <a-icon type="plus"/>
|
|
|
- 添加
|
|
|
- </a-button>
|
|
|
- </div>
|
|
|
- <a-table
|
|
|
- :data-source="dataReason"
|
|
|
- :columns="columnsReason"
|
|
|
- :scroll="{x: 1, y: BaseTool.Constant.scrollY }"
|
|
|
- rowKey="id">
|
|
|
- <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="handleCopyReason(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>
|
|
|
- </template>
|
|
|
- </span>
|
|
|
- </a-table>
|
|
|
+ <title-divider title="维修报告" width="90px"></title-divider>-->
|
|
|
+
|
|
|
<!-- <q-tabs :activeKey="activeKey" @change="changeTab">
|
|
|
<q-tab-pane key="a" tab="配件更换">
|
|
|
<spare-part-used-select-table :type="2" :table-params="{sbId: model.sbId, modelId: model.modelId, repairId: model.id}" ref="sparePartUsedSelectTable"/>
|