feat:【antd】调整 formatNumber 为 formatAmount3 保留 3 位,formatAmount2 保留 2 位

This commit is contained in:
YunaiV
2025-10-04 14:53:31 +08:00
parent ceabd731ba
commit 3182a86b80
13 changed files with 59 additions and 33 deletions

View File

@@ -452,18 +452,19 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'totalCount',
title: '总数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'totalPrice',
title: '应付金额',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
{
field: 'paymentPrice',
title: '已付金额',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
{
@@ -564,23 +565,25 @@ export function useOrderGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'totalCount',
title: '总数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'inCount',
title: '入库数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'totalProductPrice',
title: '金额合计',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
{
field: 'totalPrice',
title: '含税金额',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
];

View File

@@ -379,34 +379,37 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'totalCount',
title: '总数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'inCount',
title: '入库数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'returnCount',
title: '退货数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'totalProductPrice',
title: '金额合计',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
{
field: 'totalPrice',
title: '含税金额',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
{
field: 'depositPrice',
title: '支付订金',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
{

View File

@@ -452,6 +452,7 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'totalCount',
title: '总数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
@@ -572,28 +573,31 @@ export function useOrderGridColumns(): VxeTableGridOptions['columns'] {
{
field: 'totalCount',
title: '总数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'inCount',
title: '入库数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'returnCount',
title: '退货数量',
formatter: 'formatAmount3',
minWidth: 120,
},
{
field: 'totalProductPrice',
title: '金额合计',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
{
field: 'totalPrice',
title: '含税金额',
formatter: 'formatNumber',
formatter: 'formatAmount2',
minWidth: 120,
},
];