fix: 金额显示

This commit is contained in:
xingyu4j
2025-06-28 00:07:55 +08:00
parent 20922aec14
commit 0e5ef6e546
6 changed files with 20 additions and 20 deletions

View File

@@ -2,7 +2,7 @@ import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import { useUserStore } from '@vben/stores';
import { floatToFixed2 } from '@vben/utils';
import { erpPriceInputFormatter } from '@vben/utils';
import { getContractSimpleList } from '#/api/crm/contract';
import { getCustomerSimpleList } from '#/api/crm/customer';
@@ -254,9 +254,9 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
minWidth: 160,
formatter: ({ row }) => {
if (row.receivable) {
return floatToFixed2(row.price - row.receivable.price);
return erpPriceInputFormatter(row.price - row.receivable.price);
}
return floatToFixed2(row.price);
return erpPriceInputFormatter(row.price);
},
},
{