diff --git a/vue/src/utils/zhijian.js b/vue/src/utils/zhijian.js index 0730b093..d9128b1d 100644 --- a/vue/src/utils/zhijian.js +++ b/vue/src/utils/zhijian.js @@ -233,6 +233,8 @@ export function blobValidate(data) { } +// 金额格式化 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, '$&,'); } +