diff --git a/acupuncture-前台/src/views/medicalFile/details.vue b/acupuncture-前台/src/views/medicalFile/details.vue index 095c1e14..9627b0f0 100644 --- a/acupuncture-前台/src/views/medicalFile/details.vue +++ b/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;