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

Loading…
Cancel
Save