|
|
@ -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("同步成功"); |
|
|
|
}); |
|
|
|
}, |
|
|
|