与户主关系

This commit is contained in:
liuye
2022-03-29 09:50:22 +08:00
parent e3d841cfb2
commit 33f48e779f
2 changed files with 8 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
<div class="form-item__wrapper"> <div class="form-item__wrapper">
<div class="left"> <div class="left">
<i>*</i> <i>*</i>
<span>姓名</span> <span>户主姓名</span>
</div> </div>
<div class="right"> <div class="right">
<input placeholder="请输入" type="text" v-model="form.name" :maxlength="8" <input placeholder="请输入" type="text" v-model="form.name" :maxlength="8"
@@ -329,7 +329,7 @@ export default {
rules() { rules() {
return { return {
objectType: '请选择监测对象类型', objectType: '请选择监测对象类型',
name: '请输入姓名', name: '请输入户主姓名',
idNumber: '请输入身份证号', idNumber: '请输入身份证号',
phone: '请输入联系方式', phone: '请输入联系方式',
currentAreaId: '请选择现住址', currentAreaId: '请选择现住址',
@@ -359,6 +359,7 @@ 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.householdIdNumber = this.form.idNumber
this.form.householdRelation = '01'
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', { this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
...this.form, ...this.form,
id: this.isEdit ? this.id : '' id: this.isEdit ? this.id : ''

View File

@@ -268,7 +268,7 @@ export default {
return false return false
} }
return !!(this.info.drinkingWaterSafety && this.info.dilapidatedHouse); return !!(this.info.drinkingWaterSafety && this.info.dilapidatedHouse && this.info.move);
} }
@@ -285,12 +285,12 @@ export default {
}) })
this.id = query.id this.id = query.id
uni.$on('reload', () => {
this.getInfo()
})
}, },
onShow() { onShow() {
document.title = '居民详情' document.title = '居民详情'
uni.$on('reload', () => {
this.getInfo()
})
}, },
methods: { methods: {
@@ -329,7 +329,7 @@ export default {
this.$http.post(`/app/apppreventionreturntopovertylog/delete?ids=${id}`).then(res => { this.$http.post(`/app/apppreventionreturntopovertylog/delete?ids=${id}`).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.$u.toast('删除成功') this.$u.toast('删除成功')
this.getInfo(this.id) this.getInfo()
} }
uni.hideLoading() uni.hideLoading()
}) })