Browse Source

诊疗档案同步中医体质辨识测评结果

new-ays
liuzhipeng 3 months ago
parent
commit
5cf6c8de9b
  1. 15
      acupuncture-前台/src/views/medicalFile/details.vue

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

@ -726,6 +726,7 @@ import {
selectByMemberId,
selectReportByMemberId,
zytzQrcode,
evaResult,
} from "@/api/medicalFile";
import { followupQuery } from "@/api/followupFile";
//
@ -1255,13 +1256,15 @@ export default {
},
//
getEvaTb() {
const comment =
"【特禀质】、【气虚质】、【血瘀质】、【气郁质】、倾向是【阳虚质】、倾向是【痰湿质】";
const constitutionTypes = this.extractConstitutionTypes(comment);
// this.detailsForm.PG_TZBS_ZYTZ = ""; //
this.detailsForm.PG_TZBS_JJTZ = constitutionTypes; //
evaResult({ param: { evaId: this.form.id } }).then((res) => {
let result1 = res.data.result1;
let result2 = res.data.result2;
console.log(constitutionTypes);
const zytz = this.extractConstitutionTypes(result1);
const jjtz = this.extractConstitutionTypes(result2);
this.detailsForm.PG_TZBS_ZYTZ = zytz.join(","); //
this.detailsForm.PG_TZBS_JJTZ = jjtz; //
});
},
extractConstitutionTypes(comment) {
const regex = /【(.*?)】/g;

Loading…
Cancel
Save