fix: vxe Amount
parent
122b835fb7
commit
0eb81bd332
|
@ -11,7 +11,7 @@ import {
|
||||||
useVbenVxeGrid,
|
useVbenVxeGrid,
|
||||||
} from '@vben/plugins/vxe-table';
|
} from '@vben/plugins/vxe-table';
|
||||||
import {
|
import {
|
||||||
floatToFixed2,
|
erpNumberFormatter,
|
||||||
formatToFractionDigit,
|
formatToFractionDigit,
|
||||||
isFunction,
|
isFunction,
|
||||||
isString,
|
isString,
|
||||||
|
@ -333,8 +333,8 @@ setupVbenVxeTable({
|
||||||
});
|
});
|
||||||
|
|
||||||
vxeUI.formats.add('formatAmount2', {
|
vxeUI.formats.add('formatAmount2', {
|
||||||
tableCellFormatMethod({ cellValue }) {
|
tableCellFormatMethod({ cellValue }, digits = 2) {
|
||||||
return `${floatToFixed2(cellValue)}元`;
|
return `${erpNumberFormatter(cellValue, digits)}元`;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue