feat:【antd】【erp 系统】product 迁移

This commit is contained in:
YunaiV
2025-10-03 09:55:03 +08:00
parent 325cede2ed
commit eeb1f1ebf9
5 changed files with 42 additions and 12 deletions

View File

@@ -321,19 +321,22 @@ setupVbenVxeTable({
// add by 星语:数量格式化,例如说:金额
vxeUI.formats.add('formatNumber', {
tableCellFormatMethod({ cellValue }) {
if (cellValue === null || cellValue === undefined) {
return '';
}
return erpCountInputFormatter(cellValue);
},
});
vxeUI.formats.add('formatAmount2', {
tableCellFormatMethod({ cellValue }, digits = 2) {
return `${erpNumberFormatter(cellValue, digits)}`;
return `${erpNumberFormatter(cellValue, digits)}`;
},
});
vxeUI.formats.add('formatFenToYuanAmount', {
tableCellFormatMethod({ cellValue }, digits = 2) {
return `${erpNumberFormatter(fenToYuan(cellValue), digits)}`;
return `${erpNumberFormatter(fenToYuan(cellValue), digits)}`;
},
});
},