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

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

@ -350,7 +350,7 @@
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
width="200" width="250"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
@ -387,6 +387,14 @@
v-hasPermi="['medicalFile:index:ecorde']" v-hasPermi="['medicalFile:index:ecorde']"
>随访记录</el-button >随访记录</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 <el-button
:disabled="scope.row.status != 0 && scope.row.status != 3" :disabled="scope.row.status != 0 && scope.row.status != 3"
size="mini" size="mini"
@ -601,6 +609,7 @@ import {
queryRecord, queryRecord,
saveAidRecord, saveAidRecord,
queueAdd, queueAdd,
exportTreatmentPg,
} from "@/api/medicalFile"; } from "@/api/medicalFile";
import { getToken } from "@/utils/auth"; import { getToken } from "@/utils/auth";
import { followupQuery } from "@/api/followupFile"; import { followupQuery } from "@/api/followupFile";
@ -609,6 +618,7 @@ export default {
dicts: ["sys_normal_disable", "sys_user_sex"], dicts: ["sys_normal_disable", "sys_user_sex"],
data() { data() {
return { return {
qzUrl: process.env.VUE_APP_API_QZURL, //
// //
ethnicityList: [ ethnicityList: [
{ label: "汉族", value: "01" }, { label: "汉族", value: "01" },
@ -1422,6 +1432,12 @@ export default {
this.title = "修改诊疗档案"; this.title = "修改诊疗档案";
this.form = JSON.parse(JSON.stringify(row)); 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) { handleExamine(row, _status) {
let form = JSON.parse(JSON.stringify(row)); let form = JSON.parse(JSON.stringify(row));

Loading…
Cancel
Save