|
@@ -35,7 +35,7 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="人均年收入">
|
|
|
- <el-input type="text" v-model="form.incomeVal" :disabled="limit.isRead"></el-input>
|
|
|
+ <el-input type="number" v-model="form.incomeVal" :disabled="limit.isRead"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
@@ -44,7 +44,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="联系电话">
|
|
|
+ <el-form-item label="联系电话" prop="phone">
|
|
|
<el-input type="text" v-model="form.phone" :disabled="limit.isRead"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -52,11 +52,11 @@
|
|
|
<el-row :gutter="20">
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="家庭人数">
|
|
|
- <el-input type="text" v-model="form.familyNum" :disabled="limit.isRead"></el-input>
|
|
|
+ <el-input type="number" v-model="form.familyNum" :disabled="limit.isRead"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="身份证号">
|
|
|
+ <el-form-item label="身份证号" prop="pid">
|
|
|
<el-input type="text" v-model="form.pid" :disabled="limit.isRead"></el-input>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
@@ -183,7 +183,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
-import {peopleType , nation , sexList} from "@/api/CONST.js"
|
|
|
+import {peopleType , nation , sexList , globalReg} from "@/api/CONST.js"
|
|
|
import { listArea ,saverAreaPeople , updateAreaPeople} from "@/api/belongToSubject/people";
|
|
|
export default {
|
|
|
name: 'addMobiel',
|
|
@@ -245,7 +245,23 @@ export default {
|
|
|
//验证
|
|
|
rules: {
|
|
|
farmerName: [{ required: true, message: '姓名不能为空!', trigger: 'blur' }],
|
|
|
- methodology: [{ required: true, message: '帮扶区域不能为空!', trigger: 'blur' }]
|
|
|
+ methodology: [{ required: true, message: '帮扶区域不能为空!', trigger: 'blur' }],
|
|
|
+ phone:[
|
|
|
+ { required: false, message: "手机号码不能为空", trigger: "blur" },
|
|
|
+ {
|
|
|
+ pattern:globalReg.regTelPhone,
|
|
|
+ message: "请输入正确号码/座机号请以区号-格式",
|
|
|
+ trigger: "blur"
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ pid:[
|
|
|
+ {
|
|
|
+ pattern:globalReg.regIdCard,
|
|
|
+ message: "身份证号格式错误,请检查!",
|
|
|
+ trigger: "blur"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ // idcard
|
|
|
},
|
|
|
//图片列表
|
|
|
fileList:[],
|