|
|
|
|
@ -501,16 +501,29 @@ |
|
|
|
|
:gender-list="genderList" |
|
|
|
|
:age-unit-list="ageUnitList" |
|
|
|
|
/> |
|
|
|
|
|
|
|
|
|
<!-- 分享弹窗 - 选择联系人 --> |
|
|
|
|
<CreateGroupDialog |
|
|
|
|
:visible.sync="shareDialogVisible" |
|
|
|
|
title="分享给" |
|
|
|
|
:recent-contacts="recentContacts" |
|
|
|
|
:recent-groups="recentGroups" |
|
|
|
|
:min-select-count="1" |
|
|
|
|
confirm-text="分享" |
|
|
|
|
@create-success="handleShareToContacts" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
// 导入打印组件 |
|
|
|
|
import UltrasoundReportPrint from "./components/UltrasoundReportPrint.vue"; |
|
|
|
|
import CreateGroupDialog from "@/views/message/components/CreateGroupDialog"; |
|
|
|
|
export default { |
|
|
|
|
name: "UltrasoundReport", |
|
|
|
|
components: { |
|
|
|
|
UltrasoundReportPrint, |
|
|
|
|
CreateGroupDialog, |
|
|
|
|
}, |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
@ -678,12 +691,32 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 新增:控制打印弹窗显隐 |
|
|
|
|
printDialogVisible: false, |
|
|
|
|
|
|
|
|
|
// ================== 分享相关 ================== |
|
|
|
|
shareDialogVisible: false, // 分享弹窗 |
|
|
|
|
shareItem: null, // 当前分享的病例 |
|
|
|
|
recentContacts: [], // 最近联系人 |
|
|
|
|
recentGroups: [], // 最近群组 |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.getCaseData(); |
|
|
|
|
this.loadRecentContacts(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
// 加载最近联系人 |
|
|
|
|
loadRecentContacts() { |
|
|
|
|
// TODO: 从后端获取最近联系人和群组 |
|
|
|
|
this.recentContacts = [ |
|
|
|
|
{ id: 1, name: "张医生", avatar: "" }, |
|
|
|
|
{ id: 2, name: "李医生", avatar: "" }, |
|
|
|
|
{ id: 3, name: "王医生", avatar: "" }, |
|
|
|
|
]; |
|
|
|
|
this.recentGroups = [ |
|
|
|
|
{ id: 1, name: "骨科会诊群", avatar: "" }, |
|
|
|
|
{ id: 2, name: "放射科交流群", avatar: "" }, |
|
|
|
|
]; |
|
|
|
|
}, |
|
|
|
|
// 根据路由参数获取病例数据 |
|
|
|
|
getCaseData() { |
|
|
|
|
const caseId = parseInt(this.$route.params.id); |
|
|
|
|
@ -735,7 +768,22 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
handleShare() { |
|
|
|
|
this.$message.success("分享成功"); |
|
|
|
|
this.shareItem = { |
|
|
|
|
patientName: this.form.patientName, |
|
|
|
|
medicalNo: this.form.medicalNo, |
|
|
|
|
findings: this.form.findings, |
|
|
|
|
conclusion: this.form.conclusion, |
|
|
|
|
}; |
|
|
|
|
this.shareDialogVisible = true; |
|
|
|
|
}, |
|
|
|
|
handleShareToContacts(selectedMembers) { |
|
|
|
|
if (selectedMembers && selectedMembers.length > 0) { |
|
|
|
|
const shareTarget = selectedMembers[0]; |
|
|
|
|
this.$message.success(`已分享给 ${shareTarget.name}`); |
|
|
|
|
console.log("分享病例:", this.shareItem, "给:", shareTarget); |
|
|
|
|
} |
|
|
|
|
this.shareDialogVisible = false; |
|
|
|
|
this.shareItem = null; |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 图片操作 |
|
|
|
|
|