|
|
@ -705,6 +705,17 @@ |
|
|
|
> |
|
|
|
<img width="560" :src="selectReportUrl" /> |
|
|
|
</el-dialog> |
|
|
|
<el-dialog |
|
|
|
class="popup" |
|
|
|
title="中医体质辨识测评二维码" |
|
|
|
:visible.sync="zytzOpen" |
|
|
|
width="540px" |
|
|
|
append-to-body |
|
|
|
> |
|
|
|
<div> |
|
|
|
<img width="500" :src="pathUrl" /> |
|
|
|
</div> |
|
|
|
</el-dialog> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -714,6 +725,7 @@ import { |
|
|
|
saveAidRecord, |
|
|
|
selectByMemberId, |
|
|
|
selectReportByMemberId, |
|
|
|
zytzQrcode, |
|
|
|
} from "@/api/medicalFile"; |
|
|
|
import { followupQuery } from "@/api/followupFile"; |
|
|
|
// 体态评估 |
|
|
@ -741,6 +753,9 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
userInfo: {}, // 用户信息 |
|
|
|
zytzOpen: false, |
|
|
|
pathUrl: "", |
|
|
|
followupList: [], |
|
|
|
title: "", // 弹出框标题 |
|
|
|
open: false, // 是否显示弹出框 |
|
|
@ -1219,15 +1234,44 @@ export default { |
|
|
|
this.treatmentId = treatmentId; |
|
|
|
this.handleDetails(treatmentId); |
|
|
|
this.getFollowupQuery(); // 获取随访队列信息 |
|
|
|
|
|
|
|
this.userInfo = JSON.parse(localStorage.getItem("user")); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 中医体质辨识测评二维码 |
|
|
|
getEvaQr() { |
|
|
|
`${process.env.VUE_APP_VISIT_URL}medicalEva?id=${this.form.id}&name=${this.form.name}&phone=${this.form.phone}`; |
|
|
|
window.location.href = `${process.env.VUE_APP_VISIT_URL}medicalEva?id=${this.form.visitNumber}&name=${this.form.name}&phone=${this.form.phone}`; |
|
|
|
zytzQrcode({ |
|
|
|
param: { |
|
|
|
id: this.form.id, |
|
|
|
rewrite: 1, |
|
|
|
path: `${"http://localhost:80/"}medicalEva?id=${this.form.id}&name=${ |
|
|
|
this.form.name |
|
|
|
}&phone=${this.form.phone}&tenantId=${this.userInfo.tenantId}`, |
|
|
|
}, |
|
|
|
}).then((res) => { |
|
|
|
this.zytzOpen = true; |
|
|
|
this.pathUrl = this.qzUrl + res.data; |
|
|
|
}); |
|
|
|
}, |
|
|
|
// 中医体质辨识测评结果同步 |
|
|
|
getEvaTb() {}, |
|
|
|
getEvaTb() { |
|
|
|
const comment = |
|
|
|
"【特禀质】、【气虚质】、【血瘀质】、【气郁质】、倾向是【阳虚质】、倾向是【痰湿质】"; |
|
|
|
const constitutionTypes = this.extractConstitutionTypes(comment); |
|
|
|
// this.detailsForm.PG_TZBS_ZYTZ = "气虚质"; // 主要体质 |
|
|
|
this.detailsForm.PG_TZBS_JJTZ = constitutionTypes; // 兼夹体质 |
|
|
|
|
|
|
|
console.log(constitutionTypes); |
|
|
|
}, |
|
|
|
extractConstitutionTypes(comment) { |
|
|
|
const regex = /【(.*?)】/g; |
|
|
|
const matches = []; |
|
|
|
let match; |
|
|
|
while ((match = regex.exec(comment)) !== null) { |
|
|
|
matches.push(match[1]); |
|
|
|
} |
|
|
|
return matches; |
|
|
|
}, |
|
|
|
// 人体成分报告 |
|
|
|
getHumanBodyReport() { |
|
|
|
selectReportByMemberId({ |
|
|
|