From 0eb81bd33231c0554ebe26a745be9d48f8cc93af Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sat, 14 Jun 2025 20:35:13 +0800 Subject: [PATCH] fix: vxe Amount --- apps/web-antd/src/adapter/vxe-table.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/adapter/vxe-table.ts b/apps/web-antd/src/adapter/vxe-table.ts index 1af58d866..777fe23cf 100644 --- a/apps/web-antd/src/adapter/vxe-table.ts +++ b/apps/web-antd/src/adapter/vxe-table.ts @@ -11,7 +11,7 @@ import { useVbenVxeGrid, } from '@vben/plugins/vxe-table'; import { - floatToFixed2, + erpNumberFormatter, formatToFractionDigit, isFunction, isString, @@ -333,8 +333,8 @@ setupVbenVxeTable({ }); vxeUI.formats.add('formatAmount2', { - tableCellFormatMethod({ cellValue }) { - return `${floatToFixed2(cellValue)}元`; + tableCellFormatMethod({ cellValue }, digits = 2) { + return `${erpNumberFormatter(cellValue, digits)}元`; }, }); },