trade: 分销员表格佣金字段格式化

This commit is contained in:
owen
2023-09-08 23:58:45 +08:00
parent e9d5027e72
commit dbb87e3850
2 changed files with 29 additions and 2 deletions

12
src/utils/formatter.ts Normal file
View File

@ -0,0 +1,12 @@
import { fenToYuan } from '@/utils'
import { TableColumnCtx } from 'element-plus'
// 格式化金额【分转元】
export const fenToYuanFormat = (
row: any,
column: TableColumnCtx<any>,
cellValue: any,
index: number
) => {
return `${fenToYuan(cellValue)}`
}