diff --git a/src/project/police/AppPeopleList/Add.vue b/src/project/police/AppPeopleList/Add.vue index 22bda7b0..ed969243 100644 --- a/src/project/police/AppPeopleList/Add.vue +++ b/src/project/police/AppPeopleList/Add.vue @@ -11,7 +11,7 @@ -
+
*
@@ -56,7 +56,7 @@
身份证号 - +
@@ -64,7 +64,7 @@ *
性别 - + 请选择 {{$dict.getLabel('sex', form.sex)}} @@ -75,7 +75,7 @@ *
出生日期 - + {{form.birthDate || '请选择'}} @@ -161,6 +161,7 @@
保存
+
@@ -192,6 +193,7 @@ export default { currentAddressNo: '' }, showSelect: false, + dateShow: false, formName: '', selectList: [] } @@ -216,15 +218,15 @@ export default { if(this.form.residentType === '') { return this.$u.toast('请选择居民类型') } - if(this.form.householdName === '') { - return this.$u.toast('请选择是否户主') - } - if(this.form.householdName != 1 && !this.form.householdIdNumber) { - return this.$u.toast('请输入户主身份证') - } - if(this.form.householdName != 1 && this.form.householdRelation === '') { - return this.$u.toast('请选择与户主关系') - } + // if(this.form.householdName === '') { + // return this.$u.toast('请选择是否户主') + // } + // if(this.form.householdName != 1 && !this.form.householdIdNumber) { + // return this.$u.toast('请输入户主身份证') + // } + // if(this.form.householdName != 1 && this.form.householdRelation === '') { + // return this.$u.toast('请选择与户主关系') + // } if(!this.form.name) { return this.$u.toast('请输入姓名') } @@ -276,6 +278,9 @@ export default { this.formName = formName this.showSelect = true }, + confirmTime(e) { + this.form.birthDate = `${e.year}-${e.month}-${e.day}` + }, changeIdNumber() { let reg = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/; if (this.form.idNumber.length == 18 && !reg.test(this.form.idNumber)) {