Browse Source

人体成分接口对接

newMaster
1747191978@qq.com 3 months ago
parent
commit
e7022d8abc
  1. 16
      acupuncture-前台/src/api/medicalFile.js
  2. 57
      acupuncture-前台/src/views/medicalFile/details.vue

16
acupuncture-前台/src/api/medicalFile.js

@ -56,3 +56,19 @@ export function queueAdd(data) {
data: data,
});
}
// 同步人体成分数据
export function selectByMemberId(data) {
return request({
url: "/api/http/selectByMemberId",
method: "post",
data: data,
});
}
// 同步人体成分报告
export function selectReportByMemberId(data) {
return request({
url: "/api/http/selectReportByMemberId",
method: "post",
data: data,
});
}

57
acupuncture-前台/src/views/medicalFile/details.vue

@ -79,7 +79,10 @@
<div>
<a name="病情评估"></a>
<div class="div-title1">病情评估</div>
<div class="div-title2">人体成分</div>
<div class="div-title2">
人体成分
<span @click="getHumanBody" class="foem-item-pg">同步</span>
</div>
</div>
<div class="human-body">
<el-form-item label="体重" prop="PG_RTCF_TZ">
@ -674,7 +677,12 @@
</template>
<script>
import { queryRecord, saveAidRecord } from "@/api/medicalFile";
import {
queryRecord,
saveAidRecord,
selectByMemberId,
selectReportByMemberId,
} from "@/api/medicalFile";
import { followupQuery } from "@/api/followupFile";
//
import TAPS from "./components/posture/TAPS"; // TAPS
@ -1194,6 +1202,49 @@ export default {
this.getFollowupQuery(); // 访
},
methods: {
//
getHumanBody() {
selectByMemberId({
memberId: 123456,
}).then((res) => {
this.$modal.msgSuccess("操作成功");
const {
weight, //
fat, //
Bone, //
Protein, //
Water, //
Muscle, //
SMM, //
pbf, //
bmi, //
whr, //2
vfi, //
bodyAge, //
score, //
bodyType, //
LBM, //
} = res.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;
this.detailsForm.PG_RTCF_DBZ = protein;
this.detailsForm.PG_RTCF_GZ = bone;
this.detailsForm.PG_RTCF_ZF = fat;
this.detailsForm.PG_RTCF_PBF = pbf;
this.detailsForm.PG_RTCF_BMI = bmi;
this.detailsForm.PG_RTCF_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;
console.log("res", res.data);
});
},
//
getzzffShow(_title) {
const { JBXX_ZYZD, JBXX_ZYZD_QT } = this.detailsForm;
if (_title == "肥胖症" && JBXX_ZYZD.includes("肥胖症")) {
@ -1305,7 +1356,7 @@ export default {
PG_RTCF_BMI: "", //BMI
PG_RTCF_WHR: "", //WHR
PG_RTCF_NZZFSP: "", //
PG_RTCF_STGCFBFB: "", //
PG_RTCF_STGCFBFB: "", //
PG_RTCF_TXLX: "", //
PG_RTCF_STNL: "", //
PG_RTCF_JKPF: "", //

Loading…
Cancel
Save