| | |
| | | columns: [ |
| | | { label: '序号', type: 'index' }, |
| | | { label: '用户信息', prop: 'customerName' }, |
| | | { label: '联系方式', prop: 'customerTel' }, |
| | | { label: '总积分', prop: 'totalPoint' }, |
| | | { label: '已使用积分', prop: 'usedPoint' }, |
| | | { label: '过期积分', prop: 'expiredPoint' }, |
| | | { label: '扣减积分', formatter: (row) => row.deductionPoint ?? 0 }, |
| | | { |
| | | label: '剩余积分', |
| | | formatter: (row) => |
| | | parseInt(row.totalPoint) - |
| | | parseInt(row.deductionPoint ?? 0) - |
| | | parseInt(row.usedPoint) - |
| | | parseInt(row.expiredPoint), |
| | | }, |
| | |
| | | searchForm: [ |
| | | { |
| | | type: 'row', |
| | | items: [{ label: '用户名称', id: 'customerName', type: 'input' }], |
| | | items: [ |
| | | { label: '用户名称', id: 'customerName', type: 'input' }, |
| | | { label: '联系方式', id: 'customerTel', type: 'input' }, |
| | | ], |
| | | }, |
| | | ], |
| | | extraDialogs: [ |