diff --git a/src/project/police/AppPeopleList/Add.vue b/src/project/police/AppPeopleList/Add.vue
index f077f206..b1cce122 100644
--- a/src/project/police/AppPeopleList/Add.vue
+++ b/src/project/police/AppPeopleList/Add.vue
@@ -100,7 +100,7 @@
-
+
*
现住址
@@ -115,7 +115,7 @@
-
+
*
组
@@ -124,7 +124,7 @@
-
+
*
户
@@ -249,18 +249,18 @@ export default {
// if(!this.form.birthDate) {
// return this.$u.toast('请选择出生日期')
// }
- // if(!this.form.currentAreaId) {
- // return this.$u.toast('请选择现住址')
- // }
- // if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
- // return this.$u.toast('现住址必须选到村级')
- // }
- // if(!this.form.currentAddressGroup) {
- // return this.$u.toast('请输入组')
- // }
- // if(!this.form.currentAddressNo) {
- // return this.$u.toast('请输入户')
- // }
+ if(!this.form.currentAreaId) {
+ return this.$u.toast('请选择现住址')
+ }
+ if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
+ return this.$u.toast('现住址必须选到村级')
+ }
+ if(!this.form.currentAddressGroup) {
+ return this.$u.toast('请输入组')
+ }
+ if(!this.form.currentAddressNo) {
+ return this.$u.toast('请输入户')
+ }
// if(this.form.householdAreaId && !/[^0]0{0,2}$/.test(this.form.householdAreaId)) {
// return this.$u.toast('户籍地必须选到村级')
// }
@@ -322,9 +322,9 @@ export default {
this.$http.post(`/app/appresident/detail?id=${this.form.id}`).then(res => {
if (res.code === 0) {
this.form = {...res.data.resident}
- var info = this.$idCardNoUtil.getIdCardInfo(this.form.idNumber)
- this.form.birthDate = info.birthday
- this.form.sex = info.gender
+ // var info = this.$idCardNoUtil.getIdCardInfo(this.form.idNumber)
+ // this.form.birthDate = info.birthday
+ // this.form.sex = info.gender
}
})
}