| | |
| | | return |
| | | } |
| | | |
| | | const loaded = await routimePanelRef.value?.examineFromQueue?.(item) |
| | | if (loaded) await initLoad() |
| | | // 【2026-11-26】加载失败不能静默:之前接口报错(4xx/5xx)时 await 直接 reject, |
| | | // 页面没有任何提示,现场就是"点检查没反应"。这里兜住并给出提示。 |
| | | try { |
| | | const panel = routimePanelRef.value |
| | | if (!panel || typeof panel.examineFromQueue !== 'function') { |
| | | ElMessage.warning('当前工作台未就绪,请刷新页面后重试') |
| | | return |
| | | } |
| | | const loaded = await panel.examineFromQueue(item) |
| | | if (loaded) { |
| | | await initLoad() |
| | | } |
| | | } catch (e: any) { |
| | | console.error('[onEventExamine] 加载患者失败', e) |
| | | ElMessage.error(e?.message ? `加载患者失败:${e.message}` : '加载患者失败,请稍后重试') |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | <template #aside> |
| | | <QueuePanel :room="roomBedVO" :queue="patientList" :waiting-list="roomWaitingList" |
| | | :fetch-info="fetchInfo" |
| | | :examine-enabled="true" |
| | | @event_RecallFinish="onEventRecallFinish" |
| | | @event_PullWaiting="onEventPullWaiting" |
| | | @event_Examine="onEventExamine" |