解除风险

This commit is contained in:
liuye
2022-10-10 11:24:37 +08:00
parent 6f5f17ecfa
commit fea1bac7ee
3 changed files with 15 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ export default {
},
computed: { ...mapState(['user']) },
onShow() {
document.title = '居家隔离确认'
document.title = '风险处置'
},
onLoad(option) {
this.form = uni.getStorageSync('checkPointContent')

View File

@@ -243,6 +243,10 @@ export default {
return this.$u.toast('请选择隔离策略')
}
if(this.form.communityHandleType == 2) { //风险解除
this.form.handleType = 5
}
this.$http.post(`/app/appepidemicpreventionregisterinfo/riskDisposal?homeQuarantineOperation=2`, this.form).then((res) => {
if (res.code == 0) {
this.$u.toast('提交成功')

View File

@@ -25,12 +25,13 @@
<div class="title">异常情况记录</div>
<div class="error-list">
<div class="item" v-for="(item, index) in info.riskDisposalList" :key="index">
<p>{{item.content}}</p>
<p>{{item.remarks}}</p>
<div>{{item.createTime}}
<span>{{item.createUserName}}</span>
</div>
</div>
</div>
<div style="height:16px;"></div>
</div>
<div class="bg-line"></div>
<div class="footer">
@@ -87,8 +88,13 @@ export default {
})
},
cancel() {
this.$confirm(`是否解除该条异常信息?`).then(() => {
this.$http.post("/app/appepidemicbackhomerecord/release", {id: this.id}).then(res => {
this.$confirm(`是否解除该条风险信息?`).then(() => {
var params = {
"handleType": 5,
"registerId": this.id,
"registerIdNumber": this.info.idNumber,
}
this.$http.post("/app/appepidemicpreventionregisterinfo/riskDisposal", params).then(res => {
if (res.code == 0) {
this.$u.toast("解除成功!")
uni.$emit('updateDetail')
@@ -109,6 +115,7 @@ export default {
"remarks": this.value,
"registerId": this.id,
"registerIdNumber": this.info.idNumber,
"handleType": 7
}
this.$http.post("/app/appepidemicpreventionregisterinfo/riskDisposal", params).then(res => {
if (res.code == 0) {