|
@@ -22,7 +22,7 @@
|
|
|
<div class="sp-content">
|
|
|
<div class="sc-input">
|
|
|
<el-form-item label-width="80px" label="产品均价">
|
|
|
- <el-input v-model="product.average_price" placeholder="数字如:15000"></el-input>
|
|
|
+ <el-input v-model="product.average_price" placeholder="数字如:15000" onkeyup="value=value.replace(/[^\d]/g,'')"></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item label-width="80px" label="梯户比">
|
|
|
<el-input v-model="product.stairs_rate" placeholder="如:2梯4户"></el-input>
|
|
@@ -310,7 +310,16 @@ export default {
|
|
|
{ label: '容积率', key: 'plot_ratio', class: 'c-3'},
|
|
|
{ label: '占地面积', key: 'acreage', class: 'c-3', type: 'inputFont', appendFont: '㎡'},
|
|
|
{ label: '建筑面积', key: 'built_up_area', class: 'c-3', type: 'inputFont', appendFont: '㎡'},
|
|
|
- { label: '总户数', key: 'household', class: 'c-3', type: 'inputFont', appendFont: '户'},
|
|
|
+ { label: '总户数', key: 'household', class: 'c-3', type: 'inputFont', appendFont: '户', rules: [
|
|
|
+ { validator: (rule, value, callback) => {
|
|
|
+ if (Number(value) < 0 || isNaN(Number(value))) {
|
|
|
+ callback(new Error('请输入数字'))
|
|
|
+ } else {
|
|
|
+ callback()
|
|
|
+ }
|
|
|
+ }, trigger: 'blur' },
|
|
|
+ // { type: 'number', message: '请输入数字', trigger: 'blur' }
|
|
|
+ ]},
|
|
|
{ label: '物业公司', key: 'property_type', class: 'c-3'},
|
|
|
{ label: '物业费', key: 'property_fee', class: 'c-3'},
|
|
|
{ label: '车位数量', key: 'parking', class: 'c-3', type: 'inputFont', appendFont: '个'},
|