diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index 0e6879e0..945c12d1 100644 --- a/src/apps/AppMonitoringObject/Add.vue +++ b/src/apps/AppMonitoringObject/Add.vue @@ -45,15 +45,12 @@
- + * 成员姓名
- - 请选择 - {{ userList[0].name }} - - +
@@ -77,7 +74,7 @@
+ placeholder-style="color: #999; font-size: 30rpx;" @input="changeIdNumber" :disabled="id" />
@@ -181,7 +178,7 @@
- +
@@ -603,11 +600,12 @@ export default { this.flag = true this.id = query.id this.getInfo(this.id) - this.photo = this.form.photo + } else { this.form.currentAreaId = this.user.areaId } }) + console.log(this.helthList); }, onShow() { @@ -638,9 +636,7 @@ export default { } else { this.helthList[i].checked = false // 取消 this.namelist.map((item, index) => { - // 判断当前项是否取消 if (item.dictValue == row.dictValue) { - // 如果当前项取消了,就删掉当前项 this.namelist.splice(index, 1) } }) @@ -703,7 +699,6 @@ export default { } this.basicsCheckList.map((item, index) => { - console.log(item.checked,index); if (item.checked) { this.basicsList.push(index) } @@ -735,17 +730,19 @@ export default { this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', { ...this.form, - id: this.isEdit ? this.id : '' + id: this.id || '', + girdId: this.user.girdCheckType == 1? this.user.girdId:'', }).then(res => { if (res.code == 0) { this.$u.toast(this.isEdit ? '保存成功' : '提交成功') uni.$emit('reload') - uni.navigateTo({url: './serviceResult'}) + uni.navigateBack({ + delta: 2 + }) } }).catch((err) => { this.$u.toast(err) }) - // console.log(this.form); }, onAreaChange(e) { @@ -759,10 +756,31 @@ export default { getInfo(id) { this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${id}`).then(res => { if (res.code === 0) { + res.data.basicsCheckList = res.data.basicsCheck.split(',') + res.data.basicsCheckList.map((item,index)=> { + this.basicsCheckList[index].checked = true + }) + res.data.guaranteeCheckList = res.data.guaranteeCheck.split(',') + res.data.guaranteeCheckList.map((item,index)=> { + this.guaranteeCheckList[index].checked = true + }) + + res.data.healthyStatusList = res.data.healthyStatus.split(',') + + res.data.healthyStatusList.map((item)=>{ + this.helthList.map(items=>{ + if(item == items.dictValue) { + items.checked = true + } + }) + }) + + this.form = { ...this.form, ...res.data } + this.photo = [{url:this.form.photo}] if(this.form.photo) { this.form.files = [{url: this.form.photo}] diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue index b42df9e9..a3329fca 100644 --- a/src/apps/AppMonitoringObject/Detail.vue +++ b/src/apps/AppMonitoringObject/Detail.vue @@ -16,7 +16,7 @@

{{ info.phone }}

- 详情 + 详情
@@ -361,7 +361,7 @@ export default { this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => { if (res.code === 0) { this.info = res.data - + let ylbxCount = 0 let ylCount = 0 if(res.data.family && res.data.family.length) { diff --git a/src/apps/AppMonitoringObject/residentDetail.vue b/src/apps/AppMonitoringObject/residentDetail.vue index 84926ec8..40e926c6 100644 --- a/src/apps/AppMonitoringObject/residentDetail.vue +++ b/src/apps/AppMonitoringObject/residentDetail.vue @@ -10,7 +10,7 @@

{{ info.phone }}

- 户主 + {{ $dict.getLabel('fpRelationship',info.householdRelation) }}
@@ -23,15 +23,15 @@
- {{ $dict.getLabel('fpNation', info.nation) }} + {{ info.idNumber }}
- {{ $dict.getLabel('fpNation', info.nation) }} + {{ $dict.getLabel('sex', info.sex) }}
- {{ $dict.getLabel('fpNation', info.nation) }} + {{ info.birthDate }}
@@ -51,65 +51,69 @@
- {{ $dict.getLabel('fpHealth', info.healthyStatus) }} + + ,{{$dict.getLabel("fpHealth", item)}} + + +
- {{ $dict.getLabel('fpNation', info.nation) }} + {{ $dict.getLabel('fpDisabilityType', info.disabilityType) }}
- {{ $dict.getLabel('fpNation', info.nation) }} + {{ $dict.getLabel('fpYear', info.disabilityCertificateYear) }}

基础保障

- {{ $dict.getLabel('fpYesOrNo', info.basicMedicalTreatment) }} + {{ $dict.getLabel('fpYesOrNo', info.jcbxCxyiliao) }}
- {{ $dict.getLabel('fpYesOrNo', info.basicMedicalTreatment) }} + {{ $dict.getLabel('fpYesOrNo', info.jcbxCzyiliao) }}
- {{ $dict.getLabel('fpYesOrNo', info.basicMedicalTreatment) }} + {{ $dict.getLabel('fpYesOrNo', info.jcbxDabing) }}
- {{ $dict.getLabel('fpYesOrNo', info.basicMedicalTreatment) }} + {{ $dict.getLabel('fpYesOrNo', info.jcbxShangye) }}
- {{ $dict.getLabel('fpYesOrNo', info.basicMedicalTreatment) }} + {{ $dict.getLabel('fpYesOrNo', info.jcbxCxyanglao) }}
- {{ $dict.getLabel('fpYesOrNo', info.basicMedicalTreatment) }} + {{ $dict.getLabel('fpYesOrNo', info.jcbxCzyanglao) }}
- {{ $dict.getLabel('fpYesOrNo', info.basicMedicalTreatment) }} + {{ $dict.getLabel('fpYesOrNo', info.jcbxRenshenyiwai) }}
- {{ $dict.getLabel('fpYesOrNo', info.subsistenceAllowance) }} + {{ $dict.getLabel('fpYesOrNo', info.bzcsNongcundibao) }}
- {{ $dict.getLabel('fpYesOrNo', info.subsistenceAllowance) }} + {{ $dict.getLabel('fpYesOrNo', info.bzcsTekungongyang) }}
- {{ $dict.getLabel('fpYesOrNo', info.subsistenceAllowance) }} + {{ $dict.getLabel('fpYesOrNo', info.bzcsWubaohu) }}
- {{ $dict.getLabel('fpYesOrNo', info.specialPovertySupport) }} + {{ $dict.getLabel('fpYesOrNo', info.bzcsYiliaojiuzhu) }}
- {{ $dict.getLabel('fpYesOrNo', info.specialPovertySupport) }} + {{ $dict.getLabel('fpYesOrNo', info.bzcsQita) }}

务工就业

@@ -119,15 +123,15 @@
- {{ $dict.getLabel('fpLaborSkills', info.labourStatus) }} + {{ $dict.getLabel('fpYesOrNo', info.mandarin) }}
- {{ $dict.getLabel('fpLaborSkills', info.labourStatus) }} + {{ $dict.getLabel('fpEmploymentChannels', info.employmentChannels) }}
- {{ $dict.getLabel('fpLaborSkills', info.labourStatus) }} + {{ info.migrantEnterprises }}
@@ -135,19 +139,19 @@
- {{ info.workeMonths }} + {{ info.publicWelfarePosts }}
- {{ info.workeMonths }} + {{ info.publicWelfarePostsMonths }}
- {{ info.workeMonths }} + {{ $dict.getLabel('fpYesOrNo',info.foreignWorkers) }}
- {{ info.workArea }} + {{ info.foreignWorkersAddress }}
@@ -163,17 +167,22 @@ export default { return { id: '', info: {}, + healthyStatusList: [] } }, onLoad(o) { + this.$dict.load('fpRelationship','sex','fpNation','fpPoliticalOutlook','fpYear','fpLaborSkills','fpEmploymentChannels') this.id = o.id, this.getInfo() + }, methods: { getInfo() { this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => { if (res.code === 0) { this.info = res.data + this.healthyStatusList = res.data.healthyStatus.split(',') + } }) },