From 9288127d0ea80014c423c381ad39d9cb01fc775b Mon Sep 17 00:00:00 2001
From: "1747191978@qq.com" <1942943850@qq.com>
Date: Mon, 17 Mar 2025 15:34:06 +0800
Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=BA=AB=E4=BD=93=E5=90=84?=
=?UTF-8?q?=E6=88=90=E5=88=86=E7=99=BE=E5=88=86=E6=AF=94?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/medicalFile/details.vue | 41 +++++++++++++++++--
1 file changed, 38 insertions(+), 3 deletions(-)
diff --git a/acupuncture-前台/src/views/medicalFile/details.vue b/acupuncture-前台/src/views/medicalFile/details.vue
index 12eddcd2..3a5fe680 100644
--- a/acupuncture-前台/src/views/medicalFile/details.vue
+++ b/acupuncture-前台/src/views/medicalFile/details.vue
@@ -82,6 +82,12 @@
人体成分
同步
+ 报告
@@ -169,13 +175,13 @@
placeholder="请输入"
/>
-
+
+
+
@@ -1192,6 +1208,9 @@ export default {
SFDL: [], //随访队列
}, // 档案详情表单
+ qzUrl: process.env.VUE_APP_API_QZURL, // 二维码路径
+ selectReportUrl: "",
+ humanBodyOpen: false,
};
},
created() {
@@ -1202,6 +1221,19 @@ export default {
this.getFollowupQuery(); // 获取随访队列信息
},
methods: {
+ // 人体成分报告
+ getHumanBodyReport() {
+ selectReportByMemberId({
+ memberId: this.form.visitNumber,
+ }).then((res) => {
+ if (!res.data.id) {
+ this.$modal.msgError("暂无报告");
+ return;
+ }
+ this.humanBodyOpen = true;
+ this.selectReportUrl = `${this.qzUrl}acupuncture${res.data.fileName}`;
+ });
+ },
// 查询人体成分
getHumanBody() {
selectByMemberId({
@@ -1225,7 +1257,10 @@ export default {
bodyType, //体型判定
lbm, //瘦体重(去脂体重)
} = res.data;
- if (!res.data.id) return;
+ if (!res.data.id) {
+ this.$modal.msgError("暂无数据");
+ return;
+ }
console.log("人体成分");
this.detailsForm.PG_RTCF_TZ = weight; // 体重