// 均价 checkKeydown(value, e){ this.registerForm.averagePrice = this.changeNumber2(value) }, // 预算 changsoldBudget(value) { this.registerForm.buildingBudget = this.changeNumber2(value) }, // 保留正整数 changeNumber(value) { value = value.replace('.',''); value = value.replace(/[^\.\d]/g,''); return value }, // 保留2位小数 changeNumber2(value) { if (!value) { value = '' } value = parseFloat(value).toFixed(2) value=value.replace(/[^\.\d]/g,'') return value },