Browse Source

人体成分对接,调用两个接口,先调用安阳的没数据调用针灸的

new-ays^2
1747191978@qq.com 2 months ago
parent
commit
ea1e087623
  1. 60
      acupuncture-前台/src/views/medicalFile/details.vue

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

Loading…
Cancel
Save