Browse Source

去掉身体各成分百分比

newMaster
1747191978@qq.com 3 months ago
parent
commit
9288127d0e
  1. 41
      acupuncture-前台/src/views/medicalFile/details.vue

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

@ -82,6 +82,12 @@
<div class="div-title2">
人体成分
<span @click="getHumanBody" class="foem-item-pg">同步</span>
<span
style="margin-left: 10px"
@click="getHumanBodyReport"
class="foem-item-pg"
>报告</span
>
</div>
</div>
<div class="human-body">
@ -169,13 +175,13 @@
placeholder="请输入"
/>
</el-form-item>
<el-form-item label="身体各成分百分比" prop="PG_RTCF_STGCFBFB">
<!-- <el-form-item label="身体各成分百分比" prop="PG_RTCF_STGCFBFB">
<el-input
:disabled="form.status != 0 && form.status != 3"
v-model="detailsForm['PG_RTCF_STGCFBFB']"
placeholder="请输入"
/>
</el-form-item>
</el-form-item> -->
<el-form-item label="体型类型" prop="PG_RTCF_TXLX">
<el-select
:disabled="form.status != 0 && form.status != 3"
@ -673,6 +679,16 @@
:is="componentsCode"
></component>
</el-dialog>
<!-- 人体成分报告 -->
<el-dialog
class="popup"
title="人体成分报告"
:visible.sync="humanBodyOpen"
width="640px"
append-to-body
>
<img :src="selectReportUrl" />
</el-dialog>
</div>
</template>
@ -1192,6 +1208,9 @@ export default {
SFDL: [], //访
}, //
qzUrl: process.env.VUE_APP_API_QZURL, //
selectReportUrl: "",
humanBodyOpen: false,
};
},
created() {
@ -1202,6 +1221,19 @@ export default {
this.getFollowupQuery(); // 访
},
methods: {
//
getHumanBodyReport() {
selectReportByMemberId({
memberId: this.form.visitNumber,
}).then((res) => {
if (!res.data.id) {
this.$modal.msgError("暂无报告");
return;
}
this.humanBodyOpen = true;
this.selectReportUrl = `${this.qzUrl}acupuncture${res.data.fileName}`;
});
},
//
getHumanBody() {
selectByMemberId({
@ -1225,7 +1257,10 @@ export default {
bodyType, //
lbm, //
} = res.data;
if (!res.data.id) return;
if (!res.data.id) {
this.$modal.msgError("暂无数据");
return;
}
console.log("人体成分");
this.detailsForm.PG_RTCF_TZ = weight; //

Loading…
Cancel
Save