|
|
@ -88,7 +88,7 @@ Vue.prototype.olitype = function(value){ |
|
|
|
} |
|
|
|
} |
|
|
|
Vue.prototype.moneyIntercept = function(value){ |
|
|
|
Vue.prototype.moneyIntercept = function(value){ |
|
|
|
if (value != 'xxx.x') { |
|
|
|
if (value != 'xxx.x') { |
|
|
|
return String(value).split('.')[1]&&String(value).split('.')[1].length>2? Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,1)}${ Number(String(value).split('.')[1].substring(1,2)) + 1}`) :Number(value).toFixed(2); |
|
|
|
return String(value).split('.')[1]&&String(value).split('.')[1].length>2?Number(`${String(value).split('.')[0]}.${String(value).split('.')[1].substring(0,2)}${Number(String(value).split('.')[1].substr(2))==0?'':9}`).toFixed(2) :Number(value).toFixed(2); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return Number(value).toFixed(2) |
|
|
|
return Number(value).toFixed(2) |
|
|
|
} |
|
|
|
} |
|
|
|