Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -220,6 +220,12 @@ export default {
|
|||||||
if(!this.form.currentAreaId) {
|
if(!this.form.currentAreaId) {
|
||||||
return this.$u.toast('请选择现住址')
|
return this.$u.toast('请选择现住址')
|
||||||
}
|
}
|
||||||
|
if(!/[^0]0{0,2}$/.test(this.form.currentAreaId)) {
|
||||||
|
return this.$u.toast('现住址必须选到村级')
|
||||||
|
}
|
||||||
|
if(!/[^0]0{0,2}$/.test(this.form.householdAreaId)) {
|
||||||
|
return this.$u.toast('户籍地必须选到村级')
|
||||||
|
}
|
||||||
this.form.age = this.$calcAge(this.form.idNumber)
|
this.form.age = this.$calcAge(this.form.idNumber)
|
||||||
this.$http.post('/app/appresident/addOrUpdate', this.form).then(res => {
|
this.$http.post('/app/appresident/addOrUpdate', this.form).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
@@ -229,6 +235,8 @@ export default {
|
|||||||
delta: 1
|
delta: 1
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}).catch((err) => {
|
||||||
|
this.$u.toast(err)
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user