mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-17 12:25:07 +08:00
trade: 分销员表格佣金字段格式化
This commit is contained in:
12
src/utils/formatter.ts
Normal file
12
src/utils/formatter.ts
Normal 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)}`
|
||||
}
|
Reference in New Issue
Block a user