This commit is contained in:
Richie 2025-06-01 21:28:14 +08:00
parent 5202f57986
commit 6152170b73
1 changed files with 3 additions and 1 deletions

View File

@ -233,6 +233,8 @@ export function blobValidate(data) {
} }
// 金额格式化
export function amountFormatter(row, column, cellValue, index) { export function amountFormatter(row, column, cellValue, index) {
return '¥' + parseFloat(cellValue).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,'); return '¥' + cellValue.toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
} }