From f6803380619f49a89fb4b83fc5d4364f961d6278 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 16 Jun 2022 16:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E6=A1=A3=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/police/AppPeopleList/Add.vue | 36 ++++++++++++------------ 1 file changed, 18 insertions(+), 18 deletions(-) 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 } }) }