优化进货账目详情

This commit is contained in:
gyq
2024-07-04 11:55:48 +08:00
parent 72cfbf259b
commit a6f6b1918c

View File

@@ -87,7 +87,7 @@
</el-table-column> </el-table-column>
<el-table-column label="类型" prop="type"> <el-table-column label="类型" prop="type">
<template v-slot="scope"> <template v-slot="scope">
{{ scope.row.type == 'purveyor' ? '进货单' : '退货单' }} {{ scope.row.type | typeFilter }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="应付金额" prop="totalAmount"> <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() { mounted() {
this.getTableData() this.getTableData()
}, },