Browse Source

中医测评流程

new-ays
liuzhipeng 3 months ago
parent
commit
5330dde168
  1. 21
      acupuncture-前台/src/api/medicalFile.js
  2. 4
      acupuncture-前台/src/utils/request.js
  3. 50
      acupuncture-前台/src/views/medicalFile/details.vue
  4. 2
      acupuncture-前台/src/views/medicalFile/h5Result.vue
  5. 1560
      acupuncture-前台/src/views/medicalFile/h5eva.vue

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

@ -80,26 +80,29 @@ export function exportTreatmentPg(data) {
data: data, data: data,
}); });
} }
// 中医体质辩识
export function evaSave(data) { // ------ 中医体质辩识 ------
// 查询二维码
export function zytzQrcode(data) {
return request({ return request({
url: "/medical/api/admin/eva/save", url: "zytz/qrcode",
method: "post", method: "post",
data: data, data: data,
}); });
} }
// 测评试题列表 // 测评试题列表
export function evaTestList(data) { export function evaTestList(data) {
return request({ return request({
url: "/medical/api/admin/eva/questions/list", url: "zytz/questions/list",
method: "post", method: "post",
data: data, data: data,
}); });
} }
// 测评试题列表 // 提交试题答案
export function evaTestSubmit(data) { export function evaTestSubmit(data) {
return request({ return request({
url: "/eva/questions/submit", url: "zytz/questions/submit",
method: "post", method: "post",
data: data, data: data,
}); });
@ -107,15 +110,15 @@ export function evaTestSubmit(data) {
// 完成测评 // 完成测评
export function evaComplete(data) { export function evaComplete(data) {
return request({ return request({
url: "/medical/api/admin/eva/complete", url: "zytz/eva/complete",
method: "post", method: "post",
data: data, data: data,
}); });
} }
// 完成测评 // 测评结果
export function evaResult(data) { export function evaResult(data) {
return request({ return request({
url: "/medical/api/admin/report/view", url: "zytz/report/view",
method: "post", method: "post",
data: data, data: data,
}); });

4
acupuncture-前台/src/utils/request.js

@ -37,6 +37,10 @@ service.interceptors.request.use(
"screening/save", "screening/save",
"screening/submitNoToken", "screening/submitNoToken",
"screening/queryDetailNoToken", "screening/queryDetailNoToken",
"zytz/questions/list",
"zytz/questions/submit",
"zytz/eva/complete",
"zytz/report/view",
]; ];
// console.log("config.url", config.url); // console.log("config.url", config.url);

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

@ -705,6 +705,17 @@
> >
<img width="560" :src="selectReportUrl" /> <img width="560" :src="selectReportUrl" />
</el-dialog> </el-dialog>
<el-dialog
class="popup"
title="中医体质辨识测评二维码"
:visible.sync="zytzOpen"
width="540px"
append-to-body
>
<div>
<img width="500" :src="pathUrl" />
</div>
</el-dialog>
</div> </div>
</template> </template>
@ -714,6 +725,7 @@ import {
saveAidRecord, saveAidRecord,
selectByMemberId, selectByMemberId,
selectReportByMemberId, selectReportByMemberId,
zytzQrcode,
} from "@/api/medicalFile"; } from "@/api/medicalFile";
import { followupQuery } from "@/api/followupFile"; import { followupQuery } from "@/api/followupFile";
// //
@ -741,6 +753,9 @@ export default {
}, },
data() { data() {
return { return {
userInfo: {}, //
zytzOpen: false,
pathUrl: "",
followupList: [], followupList: [],
title: "", // title: "", //
open: false, // open: false, //
@ -1219,15 +1234,44 @@ export default {
this.treatmentId = treatmentId; this.treatmentId = treatmentId;
this.handleDetails(treatmentId); this.handleDetails(treatmentId);
this.getFollowupQuery(); // 访 this.getFollowupQuery(); // 访
this.userInfo = JSON.parse(localStorage.getItem("user"));
}, },
methods: { methods: {
// //
getEvaQr() { getEvaQr() {
`${process.env.VUE_APP_VISIT_URL}medicalEva?id=${this.form.id}&name=${this.form.name}&phone=${this.form.phone}`; zytzQrcode({
window.location.href = `${process.env.VUE_APP_VISIT_URL}medicalEva?id=${this.form.visitNumber}&name=${this.form.name}&phone=${this.form.phone}`; param: {
id: this.form.id,
rewrite: 1,
path: `${"http://localhost:80/"}medicalEva?id=${this.form.id}&name=${
this.form.name
}&phone=${this.form.phone}&tenantId=${this.userInfo.tenantId}`,
},
}).then((res) => {
this.zytzOpen = true;
this.pathUrl = this.qzUrl + res.data;
});
}, },
// //
getEvaTb() {}, getEvaTb() {
const comment =
"【特禀质】、【气虚质】、【血瘀质】、【气郁质】、倾向是【阳虚质】、倾向是【痰湿质】";
const constitutionTypes = this.extractConstitutionTypes(comment);
// this.detailsForm.PG_TZBS_ZYTZ = ""; //
this.detailsForm.PG_TZBS_JJTZ = constitutionTypes; //
console.log(constitutionTypes);
},
extractConstitutionTypes(comment) {
const regex = /【(.*?)】/g;
const matches = [];
let match;
while ((match = regex.exec(comment)) !== null) {
matches.push(match[1]);
}
return matches;
},
// //
getHumanBodyReport() { getHumanBodyReport() {
selectReportByMemberId({ selectReportByMemberId({

2
acupuncture-前台/src/views/medicalFile/h5Result.vue

@ -23,7 +23,7 @@ export default {
}, },
created() { created() {
this.evaId = this.$route.query.evaId; this.evaId = this.$route.query.evaId;
// this.getEvaResult(); this.getEvaResult();
}, },
methods: { methods: {
getEvaResult() { getEvaResult() {

1560
acupuncture-前台/src/views/medicalFile/h5eva.vue

File diff suppressed because it is too large
Loading…
Cancel
Save