From 5cf6c8de9b33c262a24f0daeb8653effbda848d8 Mon Sep 17 00:00:00 2001 From: liuzhipeng <1747191978@qq.com> Date: Sun, 6 Apr 2025 23:08:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=8A=E7=96=97=E6=A1=A3=E6=A1=88=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E4=B8=AD=E5=8C=BB=E4=BD=93=E8=B4=A8=E8=BE=A8=E8=AF=86?= =?UTF-8?q?=E6=B5=8B=E8=AF=84=E7=BB=93=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/medicalFile/details.vue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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;