diff --git a/src/views/invoicing/supplier_manage/purchase_detail.vue b/src/views/invoicing/supplier_manage/purchase_detail.vue
index bbac1bd..38e582c 100644
--- a/src/views/invoicing/supplier_manage/purchase_detail.vue
+++ b/src/views/invoicing/supplier_manage/purchase_detail.vue
@@ -87,7 +87,7 @@
- {{ scope.row.type == 'purveyor' ? '进货单' : '退货单' }}
+ {{ scope.row.type | typeFilter }}
@@ -273,6 +273,17 @@ export default {
}
}
},
+ filters: {
+ typeFilter(t) {
+ const m = {
+ purveyor: '进货单',
+ reject: '退货单',
+ cons_in: '耗材入库',
+ cons_out: '耗材出库'
+ }
+ return m[t]
+ }
+ },
mounted() {
this.getTableData()
},