Browse Source

会计金额--两位小数

master_hella_20240701
wangyufei 5 months ago
parent
commit
76aca0a858
  1. 1
      src/utils/formatter.ts

1
src/utils/formatter.ts

@ -12,6 +12,7 @@ export const fenToYuanFormat = (
} }
export const accountantFormart = (row, column, cellValue) => { export const accountantFormart = (row, column, cellValue) => {
cellValue = cellValue + '' || '' cellValue = cellValue + '' || ''
cellValue = Number(cellValue).toFixed(2)
let x = cellValue.split('.') let x = cellValue.split('.')
let x1 = x[0] let x1 = x[0]
let x2 = x.length > 1 ? '.' + x[1] : '' let x2 = x.length > 1 ? '.' + x[1] : ''

Loading…
Cancel
Save