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, zytzQrcode,
evaResult, evaResult,
queryMotionInfo, queryMotionInfo,
queryMotionTcfInfo,
} from "@/api/medicalFile"; } from "@/api/medicalFile";
import { followupQuery } from "@/api/followupFile"; import { followupQuery } from "@/api/followupFile";
// //
@ -1481,25 +1482,61 @@ export default {
} }
return matches; return matches;
}, },
// // -
getHumanBodyReport() { getHumanBody() {
selectReportByMemberId({ queryMotionTcfInfo({
memberId: this.form.visitNumber, memberId: this.form.memberId,
}).then((res) => { }).then((res) => {
if (!res.data.id) { if (!res.data) {
this.$modal.msgError("暂无报告"); this.getHumanBody1(); // -
// this.$modal.msgError("");
return; return;
} }
this.humanBodyOpen = true; const {
this.selectReportUrl = `${this.qzUrl}${res.data.fileName}`; 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({ selectByMemberId({
id: this.form.id, id: this.form.id,
}).then((res) => { }).then((res) => {
if (!res.data.id) { if (!res.data?.id) {
this.$modal.msgError("暂无数据"); this.$modal.msgError("暂无数据");
return; return;
} }
@ -1554,7 +1591,6 @@ export default {
res.data.data.forEach((item) => { res.data.data.forEach((item) => {
this.detailsForm[item.Item] = item.Value; this.detailsForm[item.Item] = item.Value;
}); });
console.log(this.detailsForm["WOLI"]);
this.$modal.msgSuccess("同步成功"); this.$modal.msgSuccess("同步成功");
}); });
}, },

Loading…
Cancel
Save