|
@@ -273,6 +273,9 @@ export function isNumberVal(value) {
|
|
|
|
|
|
/* 增加减少小数点位数 */
|
|
/* 增加减少小数点位数 */
|
|
export function transDecimalPlace(str,{pn,nt}) {
|
|
export function transDecimalPlace(str,{pn,nt}) {
|
|
|
|
+
|
|
|
|
+ if(!isNumberVal(str)) return '';
|
|
|
|
+
|
|
let s = str.replace(/%/,''),
|
|
let s = str.replace(/%/,''),
|
|
decimalPlaces = getDecimalPlaces(str),
|
|
decimalPlaces = getDecimalPlaces(str),
|
|
decimalNum=pn;
|
|
decimalNum=pn;
|