From ea1e0876233ee1d2cd16e85420ed9cfe34e5c25c Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Fri, 25 Apr 2025 16:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E4=BD=93=E6=88=90=E5=88=86=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5=EF=BC=8C=E8=B0=83=E7=94=A8=E4=B8=A4=E4=B8=AA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E5=85=88=E8=B0=83=E7=94=A8=E5=AE=89=E9=98=B3?= =?UTF-8?q?=E7=9A=84=E6=B2=A1=E6=95=B0=E6=8D=AE=E8=B0=83=E7=94=A8=E9=92=88?= =?UTF-8?q?=E7=81=B8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/medicalFile/details.vue | 60 +++++++++++++++---- 1 file changed, 48 insertions(+), 12 deletions(-) diff --git a/acupuncture-前台/src/views/medicalFile/details.vue b/acupuncture-前台/src/views/medicalFile/details.vue index 6b29c776..d90ab8c0 100644 --- a/acupuncture-前台/src/views/medicalFile/details.vue +++ b/acupuncture-前台/src/views/medicalFile/details.vue @@ -912,6 +912,7 @@ import { zytzQrcode, evaResult, queryMotionInfo, + queryMotionTcfInfo, } from "@/api/medicalFile"; import { followupQuery } from "@/api/followupFile"; // 体态评估 @@ -1481,25 +1482,61 @@ export default { } return matches; }, - // 人体成分报告 - getHumanBodyReport() { - selectReportByMemberId({ - memberId: this.form.visitNumber, + // 查询人体成分 - 安阳人体成分 + getHumanBody() { + queryMotionTcfInfo({ + memberId: this.form.memberId, }).then((res) => { - if (!res.data.id) { - this.$modal.msgError("暂无报告"); + if (!res.data) { + this.getHumanBody1(); // 调用新接口 - 针灸人体成分 + // this.$modal.msgError("暂无数据"); return; } - this.humanBodyOpen = true; - this.selectReportUrl = `${this.qzUrl}${res.data.fileName}`; + const { + weight, //体重 + fat, //脂肪 + bone, //骨质 + protein, //蛋白质 + water, //水分 + muscle, //肌肉 + smm, //骨骼肌 + pbf, //体脂百分比 + bmi, //体质指数 + whr, //腰臀比(2位小数) + vfi, //内脏脂肪指数 + bodyAge, //身体年龄 + score, //健康评分 + bodyType, //体型判定 + lbm, //瘦体重(去脂体重) + } = res.data.data; + + console.log("人体成分", res.data.data); + + this.detailsForm.PG_RTCF_TZ = weight; // 体重 + this.detailsForm.PG_RTCF_QZTZ = lbm; // 去脂体重 + this.detailsForm.PG_RTCF_JRL = muscle; // 肌肉量 + this.detailsForm.PG_RTCF_TBW = water; // 总水分(TBW) + this.detailsForm.PG_RTCF_DBZ = protein; // 蛋白质 + this.detailsForm.PG_RTCF_GZ = bone; // 骨质量(GZ) + this.detailsForm.PG_RTCF_ZF = fat; // 脂肪 + this.detailsForm.PG_RTCF_PBF = pbf; // 体脂百分比 + this.detailsForm.PG_RTCF_GGJ = smm; //骨骼肌 + this.detailsForm.PG_RTCF_BMI = bmi; // 体质指数(BMI) + this.detailsForm.PG_RTCF_WHR = whr; // 腰臀比(WHR) + this.detailsForm.PG_RTCF_NZZFSP = vfi; // 内脏脂肪水平 + // this.detailsForm.PG_RTCF_STGCFBFB = ""; // 身体各成分百分比 + this.detailsForm.PG_RTCF_TXLX = bodyType; // 体型类型 + this.detailsForm.PG_RTCF_STNL = bodyAge; // 身体年龄 + this.detailsForm.PG_RTCF_JKPF = score; // 健康评分 + this.$modal.msgSuccess("同步成功"); }); }, - // 查询人体成分 - getHumanBody() { + // 查询人体成分 - 针灸人体成分 + getHumanBody1() { selectByMemberId({ id: this.form.id, }).then((res) => { - if (!res.data.id) { + if (!res.data?.id) { this.$modal.msgError("暂无数据"); return; } @@ -1554,7 +1591,6 @@ export default { res.data.data.forEach((item) => { this.detailsForm[item.Item] = item.Value; }); - console.log(this.detailsForm["WOLI"]); this.$modal.msgSuccess("同步成功"); }); },