Browse Source

量表评估

newMaster
1747191978@qq.com 3 months ago
parent
commit
cc2794409e
  1. 8
      acupuncture-前台/src/api/medicalFile.js
  2. 18
      acupuncture-前台/src/views/medicalFile/details.vue
  3. 18
      acupuncture-前台/src/views/medicalFile/index.vue

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

@ -72,3 +72,11 @@ export function selectReportByMemberId(data) {
data: data,
});
}
// 评估报告单
export function exportTreatmentPg(data) {
return request({
url: "/treatment/exportTreatmentPg",
method: "post",
data: data,
});
}

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

@ -687,7 +687,7 @@
width="640px"
append-to-body
>
<img :src="selectReportUrl" />
<img width="560" :src="selectReportUrl" />
</el-dialog>
</div>
</template>
@ -1239,7 +1239,11 @@ export default {
selectByMemberId({
memberId: this.form.visitNumber,
}).then((res) => {
this.$modal.msgSuccess("操作成功");
if (!res.data.id) {
this.$modal.msgError("暂无数据");
return;
}
this.$modal.msgSuccess("同步成功");
const {
weight, //
fat, //
@ -1247,7 +1251,7 @@ export default {
protein, //
water, //
muscle, //
SMM, //
smm, //
pbf, //
bmi, //
whr, //2
@ -1257,10 +1261,7 @@ export default {
bodyType, //
lbm, //
} = res.data;
if (!res.data.id) {
this.$modal.msgError("暂无数据");
return;
}
console.log("人体成分");
this.detailsForm.PG_RTCF_TZ = weight; //
@ -1271,11 +1272,12 @@ export default {
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 = ''; //
this.detailsForm.PG_RTCF_TXLX = [bodyType]; //
this.detailsForm.PG_RTCF_STNL = bodyAge; //
this.detailsForm.PG_RTCF_JKPF = score; //
});

18
acupuncture-前台/src/views/medicalFile/index.vue

@ -350,7 +350,7 @@
label="操作"
align="center"
class-name="small-padding fixed-width"
width="200"
width="250"
>
<template slot-scope="scope">
<el-button
@ -387,6 +387,14 @@
v-hasPermi="['medicalFile:index:ecorde']"
>随访记录</el-button
>
<el-button
size="mini"
type="text"
icon="el-icon-notebook-2"
@click="handleReport(scope.row)"
v-hasPermi="['medicalFile:index:report']"
>评估报告单</el-button
>
<el-button
:disabled="scope.row.status != 0 && scope.row.status != 3"
size="mini"
@ -601,6 +609,7 @@ import {
queryRecord,
saveAidRecord,
queueAdd,
exportTreatmentPg,
} from "@/api/medicalFile";
import { getToken } from "@/utils/auth";
import { followupQuery } from "@/api/followupFile";
@ -609,6 +618,7 @@ export default {
dicts: ["sys_normal_disable", "sys_user_sex"],
data() {
return {
qzUrl: process.env.VUE_APP_API_QZURL, //
//
ethnicityList: [
{ label: "汉族", value: "01" },
@ -1422,6 +1432,12 @@ export default {
this.title = "修改诊疗档案";
this.form = JSON.parse(JSON.stringify(row));
},
//
handleReport(row) {
exportTreatmentPg({ treatmentId: row.id }).then((res) => {
window.open(`${process.env.VUE_APP_API_QZURL}acupuncture${res.data}`);
});
},
/** 提交审核 */
handleExamine(row, _status) {
let form = JSON.parse(JSON.stringify(row));

Loading…
Cancel
Save