From 5e71c0ae07f079418602469761e19e7ec5fceca2 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 28 Apr 2022 16:28:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/apps/AppMonitoringObject/Add.vue | 43 ++++++++++----- src/apps/AppMonitoringObject/Detail.vue | 2 +- .../AppMonitoringObject/residentDetail.vue | 52 ++++++++++--------- 3 files changed, 58 insertions(+), 39 deletions(-) diff --git a/src/apps/AppMonitoringObject/Add.vue b/src/apps/AppMonitoringObject/Add.vue index 0e6879e0..82ae2c27 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" />
@@ -608,6 +605,7 @@ export default { 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,6 +756,26 @@ 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 diff --git a/src/apps/AppMonitoringObject/Detail.vue b/src/apps/AppMonitoringObject/Detail.vue index b42df9e9..38ab1830 100644 --- a/src/apps/AppMonitoringObject/Detail.vue +++ b/src/apps/AppMonitoringObject/Detail.vue @@ -16,7 +16,7 @@

{{ info.phone }}

- 详情 + 详情
diff --git a/src/apps/AppMonitoringObject/residentDetail.vue b/src/apps/AppMonitoringObject/residentDetail.vue index 84926ec8..70fc02ce 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 }}
@@ -55,61 +55,61 @@
- {{ $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 +119,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 +135,19 @@
- {{ info.workeMonths }} + {{ info.publicWelfarePosts }}
- {{ info.workeMonths }} + {{ info.publicWelfarePostsMonths }}
- {{ info.workeMonths }} + {{ $dict.getLabel('fpYesOrNo',info.foreignWorkers) }}
- {{ info.workArea }} + {{ info.foreignWorkersAddress }}
@@ -166,8 +166,10 @@ export default { } }, onLoad(o) { + this.$dict.load('fpRelationship','sex','fpNation','fpPoliticalOutlook','fpYear','fpLaborSkills','fpEmploymentChannels') this.id = o.id, this.getInfo() + }, methods: { getInfo() {