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; // 体重