Browse Source

诊疗方法通过主要诊断判断是否显示

newMaster
1747191978@qq.com 3 months ago
parent
commit
324b50016d
  1. 28
      acupuncture-前台/src/views/medicalFile/details.vue

28
acupuncture-前台/src/views/medicalFile/details.vue

@ -437,7 +437,11 @@
<div style="font-size: 22px; margin-bottom: 14px" class="div-title1">
诊疗方法
</div>
<div v-for="(i, ind) in healType" :key="ind">
<div
v-for="(i, ind) in healType"
:key="ind"
v-if="getzzffShow(i.title)"
>
<div class="div-title2">{{ i.title }}</div>
<div v-for="(j, jnd) in i.list" :key="jnd">
<div v-if="j.title != '针灸疗法'">
@ -1183,6 +1187,28 @@ export default {
this.getFollowupQuery(); // 访
},
methods: {
getzzffShow(_title) {
const { JBXX_ZYZD, JBXX_ZYZD_QT } = this.detailsForm;
if (_title == "肥胖症" && JBXX_ZYZD.includes("肥胖症")) {
return true;
}
if (_title == "失眠症" && JBXX_ZYZD.includes("失眠病")) {
return true;
}
if (_title == "其他") {
let flat = false;
JBXX_ZYZD.forEach((item) => {
if (item != "肥胖症" && item != "失眠病") {
flat = true;
}
});
if (JBXX_ZYZD_QT) {
return true;
}
return flat;
}
return false;
},
// 访
getFollowupQuery() {
followupQuery({

Loading…
Cancel
Save