|
@ -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; |
|
|