feat:【antd】调整 formatNumber 为 formatAmount3 保留 3 位,formatAmount2 保留 2 位
This commit is contained in:
@@ -288,11 +288,13 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
{
|
||||
field: 'totalCount',
|
||||
title: '数量',
|
||||
formatter: 'formatAmount3',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
field: 'totalPrice',
|
||||
title: '金额',
|
||||
formatter: 'formatAmount2',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -141,6 +141,7 @@ export function useStockInItemTableColumns(
|
||||
minWidth: 120,
|
||||
slots: { default: 'count' },
|
||||
className: createRequiredValidation(isValidating, 'count'),
|
||||
formatter: 'formatAmount3',
|
||||
},
|
||||
{
|
||||
field: 'productPrice',
|
||||
|
||||
@@ -287,11 +287,13 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
{
|
||||
field: 'totalCount',
|
||||
title: '数量',
|
||||
formatter: 'formatAmount3',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
field: 'totalPrice',
|
||||
title: '金额',
|
||||
formatter: 'formatAmount2',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
|
||||
@@ -149,6 +149,7 @@ export function useStockInItemTableColumns(
|
||||
minWidth: 120,
|
||||
slots: { default: 'count' },
|
||||
className: createRequiredValidation(isValidating, 'count'),
|
||||
formatter: 'formatAmount3',
|
||||
},
|
||||
{
|
||||
field: 'productPrice',
|
||||
@@ -304,11 +305,13 @@ export function useGridColumns(): VxeTableGridOptions['columns'] {
|
||||
{
|
||||
field: 'totalCount',
|
||||
title: '数量',
|
||||
formatter: 'formatAmount3',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
field: 'totalPrice',
|
||||
title: '价格',
|
||||
formatter: 'formatAmount2',
|
||||
minWidth: 100,
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user