|
|
|
@ -221,6 +221,9 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 数字转化成金额
|
|
|
|
|
formatMoney(val, places, symbol, thousand, decimal) {
|
|
|
|
|
if(val === 0 || !val) {
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
places = !isNaN(places = Math.abs(places)) ? places : 2;
|
|
|
|
|
symbol = symbol !== undefined ? symbol : "¥";
|
|
|
|
|
thousand = thousand || ",";
|
|
|
|
|