优化进货账目详情
This commit is contained in:
@@ -87,7 +87,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="类型" prop="type">
|
||||
<template v-slot="scope">
|
||||
{{ scope.row.type == 'purveyor' ? '进货单' : '退货单' }}
|
||||
{{ scope.row.type | typeFilter }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="应付金额" prop="totalAmount">
|
||||
@@ -273,6 +273,17 @@ export default {
|
||||
}
|
||||
}
|
||||
},
|
||||
filters: {
|
||||
typeFilter(t) {
|
||||
const m = {
|
||||
purveyor: '进货单',
|
||||
reject: '退货单',
|
||||
cons_in: '耗材入库',
|
||||
cons_out: '耗材出库'
|
||||
}
|
||||
return m[t]
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getTableData()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user