与户主关系
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<div class="form-item__wrapper">
|
||||
<div class="left">
|
||||
<i>*</i>
|
||||
<span>姓名</span>
|
||||
<span>户主姓名</span>
|
||||
</div>
|
||||
<div class="right">
|
||||
<input placeholder="请输入" type="text" v-model="form.name" :maxlength="8"
|
||||
@@ -329,7 +329,7 @@ export default {
|
||||
rules() {
|
||||
return {
|
||||
objectType: '请选择监测对象类型',
|
||||
name: '请输入姓名',
|
||||
name: '请输入户主姓名',
|
||||
idNumber: '请输入身份证号',
|
||||
phone: '请输入联系方式',
|
||||
currentAreaId: '请选择现住址',
|
||||
@@ -359,6 +359,7 @@ export default {
|
||||
this.form.girdId = this.girdInfo.girdId
|
||||
this.form.girdName = this.girdInfo.girdName
|
||||
this.form.householdIdNumber = this.form.idNumber
|
||||
this.form.householdRelation = '01'
|
||||
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
|
||||
...this.form,
|
||||
id: this.isEdit ? this.id : ''
|
||||
|
||||
@@ -268,7 +268,7 @@ export default {
|
||||
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
|
||||
uni.$on('reload', () => {
|
||||
this.getInfo()
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
document.title = '居民详情'
|
||||
uni.$on('reload', () => {
|
||||
this.getInfo()
|
||||
})
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -329,7 +329,7 @@ export default {
|
||||
this.$http.post(`/app/apppreventionreturntopovertylog/delete?ids=${id}`).then(res => {
|
||||
if (res.code === 0) {
|
||||
this.$u.toast('删除成功')
|
||||
this.getInfo(this.id)
|
||||
this.getInfo()
|
||||
}
|
||||
uni.hideLoading()
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user