|
|
@@ -44,7 +44,7 @@
|
|
|
:sortable="item.sortable">
|
|
|
<template #default="{ row }">
|
|
|
<span v-if="item.prop == 'invoiceType'">
|
|
|
- <!-- {{ invoiceTypeData.filter((item) => item.key == row.invoiceType)[0].value || '-' }} -->
|
|
|
+ {{ invoiceTypeData.filter((item) => item.key == row.invoiceType)[0].value || '-' }}
|
|
|
</span>
|
|
|
<span v-else-if="item.prop == 'approStatus'">
|
|
|
{{ row.approStatus == '10' ? '未通过' : '已通过' }}
|
|
|
@@ -169,8 +169,8 @@
|
|
|
return this.columns.filter((item) => this.checkList.includes(item.label))
|
|
|
},
|
|
|
},
|
|
|
- mounted() {
|
|
|
- this.getOptions()
|
|
|
+ async mounted() {
|
|
|
+ await this.getOptions()
|
|
|
this.queryData()
|
|
|
},
|
|
|
|
|
|
@@ -186,8 +186,8 @@
|
|
|
setSelectRows(val) {
|
|
|
this.selectRows = val.map((item) => item.id)
|
|
|
},
|
|
|
- getOptions() {
|
|
|
- Promise.all([this.getDicts('invoice_type')])
|
|
|
+ async getOptions() {
|
|
|
+ await Promise.all([this.getDicts('invoice_type')])
|
|
|
.then(([invoiceType]) => {
|
|
|
this.invoiceTypeData = invoiceType.data.values || []
|
|
|
})
|