| | |
| | | }, |
| | | }); |
| | | const { searchForm } = toRefs(data); |
| | | const tableColumn = ref([ |
| | | const tableColumn = computed(() => { |
| | | const baseColumns = [ |
| | | { |
| | | label: "审批状态", |
| | | prop: "approveStatus", |
| | |
| | | label: "当前审批人", |
| | | prop: "approveUserCurrentName", |
| | | width: 120 |
| | | }, |
| | | { |
| | | } |
| | | ]; |
| | | |
| | | // 如果是报销管理审批表(approveType=4),添加报销金额列 |
| | | if (props.approveType == 4) { |
| | | baseColumns.push({ |
| | | label: "报销金额", |
| | | prop: "price", |
| | | width: 120, |
| | | fixed: "right", |
| | | formatData: (params) => { |
| | | if (params) { |
| | | return `¥${Number(params).toFixed(2)}`; |
| | | } |
| | | return '-' |
| | | } |
| | | }); |
| | | } |
| | | |
| | | // 添加操作列 |
| | | baseColumns.push({ |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |
| | |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | ]); |
| | | }); |
| | | |
| | | return baseColumns; |
| | | }); |
| | | const tableData = ref([]); |
| | | const selectedRows = ref([]); |
| | | const tableLoading = ref(false); |