This commit is contained in:
shijingjing
2022-04-27 12:43:48 +08:00
parent d78c49aff4
commit 95ddb550e7
3 changed files with 36 additions and 27 deletions

View File

@@ -87,7 +87,8 @@
<span>现住址</span>
</div>
<div class="right">
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" v-model="form.currentAreaId" :areaId="user.areaId" :root="user.areaId" @select="onAreaChange">
<!-- :areaId="user.areaId" v-model="form.currentAreaId"-->
<AiAreaPicker ref="address" class="aiArea" :fullName.sync="form.currentAreaName" :root="user.areaId" @select="onAreaChange">
<div class="aiArea">
<span class="label" v-if="form.currentAreaName">{{ form.currentAreaName }}</span>
<i v-else>请选择</i>
@@ -173,13 +174,23 @@
</div>
</div>
<div class="form-item">
<div class="form-item__wrapper">
<div class="form-item__wrapper checkbox">
<div class="left">
<i style="opacity: 0;">*</i>
<span>健康状况</span>
</div>
<div class="right">
<AiSelect dict="fpHealth" v-model="form.healthyStatus"></AiSelect>
<!-- <AiSelect dict="fpHealth" v-model="form.healthyStatus"></AiSelect> -->
<u-checkbox-group>
<u-checkbox
v-model="e.checked"
v-for="(e, i) in fpHealth" :key="i"
:name="item.dictValue"
@change="checkboxChange(indexs, index, i)"
>{{ e.dictName }}
</u-checkbox>
</u-checkbox-group>
</div>
</div>
</div>
@@ -362,7 +373,8 @@ export default {
girdInfo: {},
photo: [],
userList: [],
flag:false,
flag: false,
helthList: [],
}
},
computed: {
@@ -389,13 +401,21 @@ export default {
this.$dict.load(['fpType','fpRiskType', 'riskEliminationMethod', 'fpRiskType', 'fpYesOrNo', 'fpNation', 'fpEducation', 'fpStudentsInSchool', 'fpHealth',
'fpLaborSkills', 'fpPoliticalOutlook', 'sex', 'fpHealth']).then(() => {
if (query.id) {
this.isEdit = true
this.flag = true
this.id = query.id
this.getInfo(this.id)
}else {
this.form.currentAreaId = this.user.areaId
}
})
// var dictList = []
// console.log(this.$dict.getDict('fpHealth'));
// this.$dict.getDict('fpHealth').map((item) => {
// dictList.push(item.dictValue)
// })
// return helthList = dictList.join(',')
// console.log(dictList.join(','));
},
@@ -414,12 +434,6 @@ export default {
}
},
getResidentList() {
this.$http.post('').then(res => {
})
},
getResidentList() {
uni.navigateTo({
url: './residentList'
@@ -462,10 +476,6 @@ export default {
return this.$u.toast('请选择风险因素')
}
// if(!this.form.detail) {
// return this.$u.toast('请输入备注说明')
// }
this.$http.post('/app/apppreventionreturntopoverty/addByEwechat', {
...this.form,
id: this.isEdit ? this.id : ''
@@ -589,6 +599,11 @@ export default {
border-bottom: 1px solid #E4E5E6;
}
.checkbox {
display: flex;
}
.right {
height: 112px;
line-height: 112px;
@@ -653,12 +668,6 @@ export default {
font-size: 32px;
}
}
// &:last-child {
// .form-item__wrapper {
// border: none;
// }
// }
}
}

View File

@@ -74,7 +74,7 @@ export default {
this.filesList = files.join(',')
}
if(this.status == 0) {
if(this.status == 0) { // 纳入监测
this.$http.post(`/app/apppreventionreturntopoverty/examine`, null,{
params: {
pass: this.pass,
@@ -85,7 +85,7 @@ export default {
}
}).then(res => {
if (res.code === 0) {
this.$u.toast('操作成功')
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() => {
uni.navigateBack({
@@ -94,7 +94,7 @@ export default {
},600)
}
})
} else {
} else { // 驳回
this.$http.post(`/app/apppreventionreturntopoverty/relieve`, null,{
params: {
pass: this.pass,
@@ -105,7 +105,7 @@ export default {
}
}).then(res => {
if (res.code === 0) {
this.$u.toast('操作成功')
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() => {
uni.navigateBack({

View File

@@ -123,7 +123,7 @@ export default {
}
}).then(res => {
if (res.code === 0) {
this.$u.toast('操作成功')
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() =>{
uni.navigateBack({
@@ -140,7 +140,7 @@ export default {
}
}).then(res => {
if (res.code === 0) {
this.$u.toast('操作成功')
this.$u.toast('提交成功')
uni.$emit('reload')
setTimeout(() =>{
uni.navigateBack({