eight
2024-11-04 938254d5385770e153b2ae8148225630749fcd90
1
2
3
4
5
6
7
8
9
10
11
import { floatToFixed2 } from '@/utils'
 
// 格式化金额【分转元】
// @ts-ignore
export const fenToYuanFormat = (_, __, cellValue: any, ___) => {
  return `¥${floatToFixed2(cellValue)}`
}
 
export function PrefixInteger(num, length) {
  return (Array(length).join('0') + num).slice(-length);
}