|
@@ -28,7 +28,7 @@
|
|
|
<div class="table-operator" style="margin-bottom: 8px;">
|
|
|
<a-row>
|
|
|
<a-col :md="16">
|
|
|
- <a-button type="primary" icon="plus" @click="handleAdd()">新增</a-button>
|
|
|
+ <a-button type="primary" icon="plus" @click="handleAdd()">筹建工单</a-button>
|
|
|
<a-button style="margin-left: 8px" v-if="$auth('preparation-preparations-export')" type="primary" icon="download" @click="doExport">导出</a-button>
|
|
|
<a-dropdown v-action:edit v-if="selectedRowKeys.length > 0 && $auth('preparation-preparations-del')">
|
|
|
<a-menu slot="overlay">
|
|
@@ -103,6 +103,7 @@ export default {
|
|
|
advanced: false,
|
|
|
visible: true,
|
|
|
statusMap: {},
|
|
|
+ preparationMap: {},
|
|
|
// 查询参数
|
|
|
queryParam: {
|
|
|
searchType: this.searchType
|
|
@@ -127,8 +128,11 @@ export default {
|
|
|
{
|
|
|
title: '公司',
|
|
|
checked: true,
|
|
|
- width: '150',
|
|
|
- dataIndex: 'companyName'
|
|
|
+ width: '200',
|
|
|
+ dataIndex: 'parentPositionId',
|
|
|
+ customRender: (text, record, index) => {
|
|
|
+ return this.BaseTool.Object.getField(this.preparationMap, text)
|
|
|
+ }
|
|
|
},
|
|
|
{
|
|
|
title: '申请部门',
|
|
@@ -159,9 +163,7 @@ export default {
|
|
|
checked: true,
|
|
|
dataIndex: 'status',
|
|
|
width: 150,
|
|
|
- customRender: (text, record, index) => {
|
|
|
- return this.BaseTool.Object.getField(this.statusMap, text)
|
|
|
- }
|
|
|
+ scopedSlots: { customRender: 'status' }
|
|
|
},
|
|
|
{
|
|
|
title: '操作',
|
|
@@ -206,6 +208,7 @@ export default {
|
|
|
// 下拉框map
|
|
|
this.tableOption()
|
|
|
this.statusMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REPAIR_PREPARATION_STATUS)
|
|
|
+ this.preparationMap = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.PREPARATION_PARENT)
|
|
|
},
|
|
|
methods: {
|
|
|
tableOption () {
|