fix: 常用方、患者管理
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
CI / CI OK (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled
This commit is contained in:
@@ -300,7 +300,8 @@ onUnmounted(() => {
|
||||
// 定义 emits
|
||||
const emit = defineEmits([
|
||||
'sendMessage',
|
||||
'openPrescription' // 添加开方事件
|
||||
'openPrescription', // 添加开方事件
|
||||
'end-consultation-success' // 结束接诊成功事件
|
||||
]);
|
||||
|
||||
// 开方功能触发函数
|
||||
@@ -453,7 +454,21 @@ const handleEndConsultation = () => {
|
||||
reason: '医生主动结束'
|
||||
});
|
||||
|
||||
// 发送结束问诊消息卡片
|
||||
const endTime = new Date().toLocaleString('zh-CN');
|
||||
await sendMessage({
|
||||
roomId: chatStore.currentFriend?.room_id,
|
||||
senderId: userStore.currentUser?.doctor_id,
|
||||
receiverId: chatStore.currentFriend?.id,
|
||||
type: 'end-consultation',
|
||||
content: JSON.stringify({
|
||||
end_reason: '医生主动结束',
|
||||
end_time: endTime
|
||||
})
|
||||
});
|
||||
|
||||
message.success('结束接诊成功');
|
||||
emit('end-consultation-success');
|
||||
} catch (error) {
|
||||
console.error('结束接诊失败:', error);
|
||||
message.error('结束接诊失败,请重试');
|
||||
|
||||
Reference in New Issue
Block a user