29465
This commit is contained in:
@@ -121,7 +121,6 @@
|
|||||||
<span>现住址</span>
|
<span>现住址</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="right">
|
<div class="right">
|
||||||
<!-- :areaId="user.areaId" v-model="form.currentAreaId"-->
|
|
||||||
<AiAreaPicker :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :root="user.areaId">
|
<AiAreaPicker :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :root="user.areaId">
|
||||||
<AiMore v-model="form.currentAreaName"/>
|
<AiMore v-model="form.currentAreaName"/>
|
||||||
</AiAreaPicker>
|
</AiAreaPicker>
|
||||||
@@ -583,11 +582,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
nextStep() {
|
nextStep() {
|
||||||
// objectType: '请选择监测对象类型',
|
|
||||||
// name: '请输入户主姓名',
|
|
||||||
// idNumber: '请输入身份证号',
|
|
||||||
// phone: '请输入联系方式',
|
|
||||||
// currentAreaId: '请选择现住址',
|
|
||||||
|
|
||||||
if (!this.isEdit) {
|
if (!this.isEdit) {
|
||||||
if (!this.form.objectType) {
|
if (!this.form.objectType) {
|
||||||
@@ -605,14 +599,6 @@ export default {
|
|||||||
return this.$u.toast('请选择现住址')
|
return this.$u.toast('请选择现住址')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// const rules = this.rules()
|
|
||||||
|
|
||||||
// for (let v of Object.keys(rules)) {
|
|
||||||
// if (!this.form[v]) {
|
|
||||||
// return this.$u.toast(rules[v])
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
let regTel = /^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/
|
let regTel = /^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/
|
||||||
if (this.form.phone.length == 11 && !regTel.test(this.form.phone)) {
|
if (this.form.phone.length == 11 && !regTel.test(this.form.phone)) {
|
||||||
return this.$u.toast('请输入正确的手机号')
|
return this.$u.toast('请输入正确的手机号')
|
||||||
@@ -686,8 +672,16 @@ export default {
|
|||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$u.toast(this.$route.query.id ? '保存成功' : '提交成功')
|
this.$u.toast(this.$route.query.id ? '保存成功' : '提交成功')
|
||||||
uni.$emit('reload')
|
uni.$emit('reload')
|
||||||
|
setTimeout(() =>{
|
||||||
|
if (this.$route.query.id) {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 2
|
||||||
|
})
|
||||||
|
} else {
|
||||||
uni.navigateTo({url: './serviceResult'})
|
uni.navigateTo({url: './serviceResult'})
|
||||||
}
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
this.$u.toast(err)
|
this.$u.toast(err)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -597,9 +597,6 @@ export default {
|
|||||||
|
|
||||||
this.form.girdId = this.girdInfo.girdId
|
this.form.girdId = this.girdInfo.girdId
|
||||||
this.form.girdName = this.girdInfo.girdName
|
this.form.girdName = this.girdInfo.girdName
|
||||||
// this.form.householdIdNumber = this.form.idNumber
|
|
||||||
// this.form.householdRelation = '01'
|
|
||||||
// this.form.isHousehold = 1
|
|
||||||
this.current = 1
|
this.current = 1
|
||||||
|
|
||||||
// if(!this.form.riskType) {
|
// if(!this.form.riskType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user