Browse Source

已经筛查过弹框提示是否查看结论,编辑患者、查看结论

new-ays
1747191978@qq.com 2 months ago
parent
commit
c6f07aab49
  1. 80
      acupuncture-前台/src/views/screening/h5eva.vue

80
acupuncture-前台/src/views/screening/h5eva.vue

@ -276,19 +276,25 @@
<div class="hospital1">{{ tenantName || "-" }}</div> <div class="hospital1">{{ tenantName || "-" }}</div>
<el-dialog <el-dialog
class="popup" class="popup"
title="筛查结论" title="提示"
:visible.sync="open" :visible.sync="open"
width="80%" width="80%"
append-to-body append-to-body
:show-close="false" :show-close="false"
:close-on-click-modal="false" :close-on-click-modal="false"
> >
属于<span :class="`BIMTips${BMIVerdict[form['SCWJ-JL']]}`">{{ <div class="popup-title">已经筛查过是否查看结论</div>
form["SCWJ-JL"] || "-" <div class="submit-box submit-box1">
}}</span <el-button
>型肥胖建议扫码关注医院公众号预约体重管理中心医师进一步评估 type="primary"
<div> class="submit-box-but"
<img src="./gzh.jpg" style="max-width: 100%" /> @click="handleContinue"
>
编辑信息
</el-button>
<el-button type="primary" class="submit-box-but" @click="handleResult">
查看结论
</el-button>
</div> </div>
</el-dialog> </el-dialog>
</div> </div>
@ -310,7 +316,7 @@ export default {
open: false, open: false,
loading: false, loading: false,
disabled: true, disabled: true,
detailList: {},
tenantId: "", tenantId: "",
tenantName: "", tenantName: "",
stepNum: 1, // stepNum: 1, //
@ -640,39 +646,40 @@ export default {
}, },
}, },
methods: { methods: {
//
handleContinue() {
this.form = { ...this.form, ...this.detailList };
this.open = false;
},
//
handleResult() {
this.$router.replace({
path: "/screening/h5Result",
query: {
tenantName: this.tenantName,
data: JSON.stringify(this.detailList),
},
});
this.open = false;
},
// //
getqueryDetailNoToken() { getqueryDetailNoToken() {
let phone = this.form["SCWJ-PHONE"]; let phone = this.form["SCWJ-PHONE"];
let name = this.form["SCWJ-NAME"]; let name = this.form["SCWJ-NAME"];
// // // //
if (name && phone && /^1[3456789]\d{9}$/.test(phone)) { if (name && phone && /^1[3456789]\d{9}$/.test(phone)) {
queryDetailNoToken({ param: { keywords: phone } }).then((res) => { queryDetailNoToken({ param: { name: name, phone: phone } }).then(
let flat = false; (res) => {
let detailList = null; this.detailList = {};
res.data.list.forEach((item) => { if (res.data.list.length) {
let data = {}; let data = res.data.list[0];
if (item.detailList) { data.detailList.forEach((item) => {
item.detailList?.forEach((row) => { this.detailList[item.questionCode] = item.answer;
item[row.questionCode] = row.answer;
data[row.questionCode] = row.answer;
}); });
this.open = true;
} }
if (item["SCWJ-NAME"] == name && item["SCWJ-PHONE"] == phone) {
flat = true;
detailList = data;
console.log("已经筛查过,直接显示结果");
} }
}); );
if (flat) {
this.$router.replace({
path: "/screening/h5Result",
query: {
tenantName: this.tenantName,
data: JSON.stringify(detailList),
},
});
}
});
} }
}, },
// //
@ -978,6 +985,12 @@ export default {
</script> </script>
<style scoped src="@/assets/styles/common.css"></style> <style scoped src="@/assets/styles/common.css"></style>
<style scoped> <style scoped>
.popup-title {
font-size: 20px;
color: #333333;
margin-bottom: 20px;
text-align: center;
}
>>> .el-dialog__header { >>> .el-dialog__header {
padding-bottom: 0; padding-bottom: 0;
} }
@ -1066,6 +1079,9 @@ export default {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.submit-box1 .submit-box-but {
border: none;
}
.submit-box .submit-box-but { .submit-box .submit-box-but {
background: #c6a268; background: #c6a268;
width: 100%; width: 100%;

Loading…
Cancel
Save