29318
This commit is contained in:
@@ -182,15 +182,15 @@
|
|||||||
<div class="right">
|
<div class="right">
|
||||||
|
|
||||||
<AiSelect dict="fpHealth" v-model="form.healthyStatus"></AiSelect>
|
<AiSelect dict="fpHealth" v-model="form.healthyStatus"></AiSelect>
|
||||||
<!-- <u-checkbox-group>
|
<u-checkbox-group>
|
||||||
<u-checkbox
|
<u-checkbox
|
||||||
v-model="e.checked"
|
v-model="e.checked"
|
||||||
v-for="(e, i) in fpHealth" :key="i"
|
v-for="(e, i) in $dict.getDict('fpHealth')" :key="i"
|
||||||
:name="item.dictValue"
|
:name="e.dictValue"
|
||||||
@change="checkboxChange(indexs, index, i)"
|
@change="checkboxChange(indexs, index, i)"
|
||||||
>{{ e.dictName }}
|
>{{ e.dictName }}
|
||||||
</u-checkbox>
|
</u-checkbox>
|
||||||
</u-checkbox-group> -->
|
</u-checkbox-group>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -409,15 +409,6 @@ export default {
|
|||||||
this.form.currentAreaId = this.user.areaId
|
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(','));
|
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -441,6 +432,11 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
checkboxChange(indexs, index, i) {
|
||||||
|
this.formDataList[indexs][index].checkList[i].checked = !this.formDataList[indexs][index].checkList[i].checked
|
||||||
|
this.$forceUpdate()
|
||||||
|
},
|
||||||
|
|
||||||
nextStep() {
|
nextStep() {
|
||||||
const rules = this.rules()
|
const rules = this.rules()
|
||||||
|
|
||||||
|
|||||||
@@ -228,20 +228,21 @@
|
|||||||
</AiFixedBtn>
|
</AiFixedBtn>
|
||||||
<!-- 0:待纳入、1:监测中、2:待解除、3:已解除、4:已驳回 -->
|
<!-- 0:待纳入、1:监测中、2:待解除、3:已解除、4:已驳回 -->
|
||||||
<div v-if="checkType == 1 && currIndex != 1">
|
<div v-if="checkType == 1 && currIndex != 1">
|
||||||
<div class="footer-btn" v-if="info.status == 4">
|
<!-- <div class="footer-btn" v-if="info.status == 4">
|
||||||
<div @click="del">删除人员</div>
|
<div @click="del">删除人员</div>
|
||||||
</div>
|
</div> -->
|
||||||
<div class="footer-btn" v-if="info.status == 1">
|
<div class="footer-btn" v-if="info.status == 1">
|
||||||
<div class="confirm-btn" @click="toAddView('您确认要申请解除此监测对象的风险吗?', '')">申请解除风险</div>
|
<div class="confirm-btn" @click="toAddView('您确认要申请解除此监测对象的风险吗?', '')">申请解除风险</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="footer-btn" v-if="info.status == 3">
|
<div class="footer-btn" v-if="info.status == 3 || info.status == 4">
|
||||||
|
<div @click="del">删除人员</div>
|
||||||
<div class="confirm-btn" @click="toAddView('您确认要申请纳入此监测对象吗?', '')">申请纳入监测</div>
|
<div class="confirm-btn" @click="toAddView('您确认要申请纳入此监测对象吗?', '')">申请纳入监测</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="checkType == 2 && currIndex != 1">
|
<div v-if="checkType == 2 && currIndex != 1">
|
||||||
|
|
||||||
<div class="footer-btn" v-if="info.status == 0 || info.status == 3">
|
<div class="footer-btn" v-if="info.status == 0 && userInfo == ''">
|
||||||
<div class="confirm-btn" @click="toRemove('您确认要将此居民纳入监测对象吗?', 1,0)">纳入监测审核</div>
|
<div class="confirm-btn" @click="toRemove('您确认要将此居民纳入监测对象吗?', 1,0)">纳入监测审核</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -253,8 +254,9 @@
|
|||||||
<div class="confirm-btn" @click="toRemove('您确认要解除此监测对象的风险吗?', 1,1)">消除风险审核</div>
|
<div class="confirm-btn" @click="toRemove('您确认要解除此监测对象的风险吗?', 1,1)">消除风险审核</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="footer-btn" v-if="info.status == 4">
|
<div class="footer-btn" v-if="(info.status == 4 || info.status == 3 || info.status == 0) && userInfo != ''">
|
||||||
<div @click="del">删除人员</div>
|
<div @click="del">删除人员</div>
|
||||||
|
<div class="confirm-btn" @click="toAddView('您确认要将此居民纳入监测对象吗?', 1)">纳入监测</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -275,7 +277,9 @@ export default {
|
|||||||
isFrom: false,
|
isFrom: false,
|
||||||
viewAll: false,
|
viewAll: false,
|
||||||
checkType: '',
|
checkType: '',
|
||||||
girdInfo: {}
|
girdInfo: {},
|
||||||
|
userInfo: {},
|
||||||
|
id: '',
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -325,6 +329,7 @@ export default {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.id = query.id
|
this.id = query.id
|
||||||
|
this.getUserPopup()
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '监测对象详情'
|
document.title = '监测对象详情'
|
||||||
@@ -404,6 +409,14 @@ export default {
|
|||||||
this.currIndex = index
|
this.currIndex = index
|
||||||
},
|
},
|
||||||
|
|
||||||
|
getUserPopup() {
|
||||||
|
this.$http.post(`/app/apppreventionreturntopoverty/popup?id=${this.id}`).then(res => {
|
||||||
|
if (res?.code === 0) {
|
||||||
|
this.userInfo = res.data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
getInfo() {
|
getInfo() {
|
||||||
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => {
|
this.$http.post(`/app/apppreventionreturntopoverty/queryDetailById?id=${this.id}`).then(res => {
|
||||||
if (res.code === 0) {
|
if (res.code === 0) {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="MonitorAddView">
|
<div class="MonitorAddView">
|
||||||
<div class="containter">
|
<div class="containter">
|
||||||
<div class="type" v-if="status == 0 || 3">
|
<div class="type" v-if="status == 3 || status == 4 || status == 0">
|
||||||
<div><span style="color: #FF4466">*</span>{{ status == 0? '监测对象类型' : status == 3? '风险因素':'' }}</div>
|
<div><span style="color: #FF4466">*</span>风险因素</div>
|
||||||
<div>
|
<div>
|
||||||
<AiSelect dict="fpRiskType" v-model="riskType" />
|
<AiSelect dict="fpRiskType" v-model="riskType" />
|
||||||
</div>
|
</div>
|
||||||
@@ -50,11 +50,12 @@ export default {
|
|||||||
this.status = o.status
|
this.status = o.status
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = this.status == 0 && this.pass ==''? '申请纳入监测': this.status == 1 && this.pass ==''? '申请解除风险' : '解除风险'
|
document.title = (this.status == 3 || this.status == 4 ) && this.pass ==''? '申请纳入监测': this.status == 1 && this.pass ==''? '申请解除风险' : this.status == 1 && this.pass ==1? '解除风险': (this.status == 4 || this.status==3) && this.pass == 1? '纳入监测':''
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submit() {
|
submit() {
|
||||||
if(this.pass != '') {
|
if(this.pass == 1) {
|
||||||
|
if(this.status == 1) { // 解除
|
||||||
this.$http.post(`/app/apppreventionreturntopoverty/relieve`,null,{
|
this.$http.post(`/app/apppreventionreturntopoverty/relieve`,null,{
|
||||||
params: {
|
params: {
|
||||||
pass: this.pass,
|
pass: this.pass,
|
||||||
@@ -73,6 +74,26 @@ export default {
|
|||||||
},600)
|
},600)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
} else if (this.status == 4 || this.status == 3 || this.status == 0) { // 纳入监测
|
||||||
|
this.$http.post(`/app/apppreventionreturntopoverty/examine`,null,{
|
||||||
|
params: {
|
||||||
|
pass: this.pass,
|
||||||
|
opinion: this.opinion,
|
||||||
|
files: this.filesList,
|
||||||
|
id: this.id,
|
||||||
|
}
|
||||||
|
}).then(res => {
|
||||||
|
if (res.code == 0) {
|
||||||
|
this.$u.toast('提交成功')
|
||||||
|
uni.$emit('reload')
|
||||||
|
setTimeout(() =>{
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 2
|
||||||
|
})
|
||||||
|
},600)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if(this.status == '0') {
|
if(this.status == '0') {
|
||||||
if(!this.riskType) {
|
if(!this.riskType) {
|
||||||
|
|||||||
Reference in New Issue
Block a user