From 6152170b73d8598c32d6f62b0dcc46df87745f7d Mon Sep 17 00:00:00 2001 From: Richie <280645618@qq.com> Date: Sun, 1 Jun 2025 21:28:14 +0800 Subject: [PATCH] fixbugs --- vue/src/utils/zhijian.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, '$&,'); } +