From cc2794409e28b7e96ca0cf06bcfae521f2b00e65 Mon Sep 17 00:00:00 2001 From: "1747191978@qq.com" <1942943850@qq.com> Date: Mon, 17 Mar 2025 16:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8F=E8=A1=A8=E8=AF=84=E4=BC=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- acupuncture-前台/src/api/medicalFile.js | 8 ++++++++ .../src/views/medicalFile/details.vue | 18 ++++++++++-------- .../src/views/medicalFile/index.vue | 18 +++++++++++++++++- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/acupuncture-前台/src/api/medicalFile.js b/acupuncture-前台/src/api/medicalFile.js index 3709f421..88498e12 100644 --- a/acupuncture-前台/src/api/medicalFile.js +++ b/acupuncture-前台/src/api/medicalFile.js @@ -72,3 +72,11 @@ export function selectReportByMemberId(data) { data: data, }); } +// 评估报告单 +export function exportTreatmentPg(data) { + return request({ + url: "/treatment/exportTreatmentPg", + method: "post", + data: data, + }); +} diff --git a/acupuncture-前台/src/views/medicalFile/details.vue b/acupuncture-前台/src/views/medicalFile/details.vue index 3a5fe680..8122212b 100644 --- a/acupuncture-前台/src/views/medicalFile/details.vue +++ b/acupuncture-前台/src/views/medicalFile/details.vue @@ -687,7 +687,7 @@ width="640px" append-to-body > - + @@ -1239,7 +1239,11 @@ export default { selectByMemberId({ memberId: this.form.visitNumber, }).then((res) => { - this.$modal.msgSuccess("操作成功"); + if (!res.data.id) { + this.$modal.msgError("暂无数据"); + return; + } + this.$modal.msgSuccess("同步成功"); const { weight, //体重 fat, //脂肪 @@ -1247,7 +1251,7 @@ export default { protein, //蛋白质 water, //水分 muscle, //肌肉 - SMM, //骨骼肌 + smm, //骨骼肌 pbf, //体脂百分比 bmi, //体质指数 whr, //腰臀比(2位小数) @@ -1257,10 +1261,7 @@ export default { bodyType, //体型判定 lbm, //瘦体重(去脂体重) } = res.data; - if (!res.data.id) { - this.$modal.msgError("暂无数据"); - return; - } + console.log("人体成分"); this.detailsForm.PG_RTCF_TZ = weight; // 体重 @@ -1271,11 +1272,12 @@ export default { 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 = ''; // 体型类型 + this.detailsForm.PG_RTCF_TXLX = [bodyType]; // 体型类型 this.detailsForm.PG_RTCF_STNL = bodyAge; // 身体年龄 this.detailsForm.PG_RTCF_JKPF = score; // 健康评分 }); diff --git a/acupuncture-前台/src/views/medicalFile/index.vue b/acupuncture-前台/src/views/medicalFile/index.vue index 7d576898..df8c332c 100644 --- a/acupuncture-前台/src/views/medicalFile/index.vue +++ b/acupuncture-前台/src/views/medicalFile/index.vue @@ -350,7 +350,7 @@ label="操作" align="center" class-name="small-padding fixed-width" - width="200" + width="250" >