formatter.ts 274 B

123456789101112
  1. import { fenToYuan } from '@/utils'
  2. import { TableColumnCtx } from 'element-plus'
  3. // 格式化金额【分转元】
  4. export const fenToYuanFormat = (
  5. row: any,
  6. column: TableColumnCtx<any>,
  7. cellValue: any,
  8. index: number
  9. ) => {
  10. return `¥${fenToYuan(cellValue)}`
  11. }