!173 feat: 添加 fen 转 yuan 金额格式化方法
Merge pull request !173 from 痴货/master
This commit is contained in:
@@ -13,6 +13,7 @@ import {
|
||||
import {
|
||||
erpCountInputFormatter,
|
||||
erpNumberFormatter,
|
||||
fenToYuan,
|
||||
formatPast2,
|
||||
isFunction,
|
||||
isString,
|
||||
@@ -343,6 +344,12 @@ setupVbenVxeTable({
|
||||
return `${erpNumberFormatter(cellValue, digits)}元`;
|
||||
},
|
||||
});
|
||||
|
||||
vxeUI.formats.add('formatFenToYuanAmount', {
|
||||
tableCellFormatMethod({ cellValue }, digits = 2) {
|
||||
return `${erpNumberFormatter(fenToYuan(cellValue), digits)}元`;
|
||||
},
|
||||
});
|
||||
},
|
||||
useVbenForm,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user