居民档案
This commit is contained in:
@@ -100,7 +100,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="tips"></span>
|
||||
<span class="tips">*</span>
|
||||
<div class="border">
|
||||
<span class="label">现住址</span>
|
||||
<span class="value">
|
||||
@@ -115,7 +115,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="tips"></span>
|
||||
<span class="tips">*</span>
|
||||
<div class="border">
|
||||
<span class="label">组</span>
|
||||
<span class="value">
|
||||
@@ -124,7 +124,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<span class="tips"></span>
|
||||
<span class="tips">*</span>
|
||||
<div class="border">
|
||||
<span class="label">户</span>
|
||||
<span class="value">
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user