diff --git a/src/saas/AppResidentDocument/Add.vue b/src/saas/AppResidentDocument/Add.vue index 3b45f8c6..a2e1ab30 100644 --- a/src/saas/AppResidentDocument/Add.vue +++ b/src/saas/AppResidentDocument/Add.vue @@ -36,7 +36,7 @@
姓名 - +
@@ -45,7 +45,7 @@
身份证号 - +
@@ -84,7 +84,7 @@
现住址 - +
{{ form.currentAreaName }} 请选择 @@ -95,7 +95,7 @@
- * +
详细地址
@@ -104,7 +104,7 @@
- * +
户籍地址 @@ -119,7 +119,7 @@
- * +
详细地址
@@ -204,15 +204,15 @@ export default { if(!this.form.currentAreaId) { return this.$u.toast('请选择现住址') } - if(!this.form.currentAddress) { - return this.$u.toast('请输入现住址详细地址') - } - if(!this.form.householdAreaId) { - return this.$u.toast('请选择户籍地址') - } - if(!this.form.householdAddress) { - return this.$u.toast('请输入户籍地址详细地址') - } + // if(!this.form.currentAddress) { + // return this.$u.toast('请输入现住址详细地址') + // } + // if(!this.form.householdAreaId) { + // return this.$u.toast('请选择户籍地址') + // } + // if(!this.form.householdAddress) { + // return this.$u.toast('请输入户籍地址详细地址') + // } this.$http.post('/app/appresident/addOrUpdate', this.form).then(res => { if (res.code === 0) { @@ -263,7 +263,9 @@ export default { this.$http.post(`/app/appresident/detail?id=${this.form.id}`).then(res => { if (res.code === 0) { this.form = {...res.data.resident} - this.changeIdNumber() + var info = this.$idCardNoUtil.getIdCardInfo(this.form.idNumber) + this.form.birthDate = info.birthday + this.form.sex = info.gender } }) }