| | |
| | | import TitlePanel from "@/views/ecg/doctor/components/TitlePanel.vue"; |
| | | import DevInstallPanel from "@/views/ecg/doctor/components/DevInstallPanel.vue"; |
| | | import QueuePanel from "@/views/ecg/doctor/components/QueuePanel.vue"; |
| | | import DoctorPageLayout from "@/components/DoctorPageLayout/src/DoctorPageLayout.vue"; |
| | | import {DoctorApi, PatientStatisticVO, RoomBedVO} from '@/api/ecg/doctor'; |
| | | import {QueueVO} from "@/api/ecg/queue"; |
| | | import {ElMessage, ElMessageBox, ElNotification} from "element-plus"; |
| | |
| | | try { |
| | | await ElMessageBox.confirm( |
| | | `确定撤销「${last.patName || last.patId}」的完成操作吗?该患者将回到候诊区。`, |
| | | '撤销完成', |
| | | '撤销', |
| | | { type: 'warning', confirmButtonText: '确定撤销', cancelButtonText: '取消' } |
| | | ) |
| | | } catch { |
| | |
| | | patId: last.patId, |
| | | checkType: last.bookCheckType |
| | | } as any) |
| | | ElMessage.success(msg || '已撤销完成') |
| | | ElMessage.success(msg || '已撤销') |
| | | await initLoad() |
| | | } finally { |
| | | undoFlag.value = false |
| | |
| | | </script> |
| | | |
| | | <template> |
| | | <el-container> |
| | | <el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px"> |
| | | <!-- |
| | | 布局优化:功能按钮固定在页面底部,不再用 position:absolute 浮在内容上。 |
| | | 详见 components/DoctorPageLayout(与叫号检查/设备领用页共用同一布局)。 |
| | | --> |
| | | <DoctorPageLayout> |
| | | <template #header> |
| | | <TitlePanel :titleType=2 :room="roomBedVO" :patientStatistic="patientStat" /> |
| | | </el-header> |
| | | <el-container style="height: 100%;"> |
| | | <el-main style="border: solid var(--el-color-primary-light-7)"> |
| | | <DevInstallPanel :room="roomBedVO" ref="devInstallPanelRef" @event_dev_install="onEventDevInstall"/> |
| | | </el-main> |
| | | <el-aside width="400px" style="border: solid var(--el-color-primary-light-7)"> |
| | | <QueuePanel :room="roomBedVO" :queue="patientList" @event_RecallFinish="onEventRecallFinish"/> |
| | | </el-aside> |
| | | </el-container> |
| | | <el-container class="right-bottom"> |
| | | </template> |
| | | |
| | | <DevInstallPanel |
| | | :room="roomBedVO" |
| | | ref="devInstallPanelRef" |
| | | :undo-disabled="undoFlag" |
| | | :undo-loading="undoFlag" |
| | | @event_dev_install="onEventDevInstall" |
| | | @event_undo_finish="undoFinish" |
| | | /> |
| | | |
| | | <template #aside> |
| | | <QueuePanel :room="roomBedVO" :queue="patientList" @event_RecallFinish="onEventRecallFinish"/> |
| | | </template> |
| | | |
| | | |
| | | <!-- 底部控件:自动 + 功能按钮 + 停止候诊,整组靠右 --> |
| | | <template #footer> |
| | | <!-- 自动 复选框 --> |
| | | <el-checkbox label="自动 " v-model="autoCall" /> |
| | | <el-button :disabled="finishFlag" type="primary" @click="finishNextPatient">叫号</el-button> |
| | | <el-button :disabled="passFlag" type="primary" @click="passNextPatient">过号</el-button> |
| | | <el-button type="primary" @click="callAgain">重叫</el-button> |
| | | <el-button type="primary" @click="callAgain">重叫</el-button> |
| | | <el-button :disabled="bedControlFlag" type="primary" @click="bedControl">{{state?'暂停':'恢复'}}</el-button> |
| | | <!-- 需求3:停止候诊开关(已有候诊病人继续叫号,但不再新增候诊病人) --> |
| | | <el-switch |
| | |
| | | active-text="停止候诊" |
| | | inactive-text="正常接诊" |
| | | inline-prompt |
| | | style="margin-left: 12px; --el-switch-on-color: #e6a23c" |
| | | style="--el-switch-on-color: #e6a23c" |
| | | @change="onStopReadyChange" |
| | | /> |
| | | <!-- 需求2:撤销误点叫号 / 撤销完成(均回到候诊区) --> |
| | | |
| | | <!-- 需求2:撤销误点叫号(回到候诊区)。 |
| | | 需求11:「撤销完成」已改名为「撤销」,并移到「已完成装机记录列表」的最前面。 --> |
| | | <el-button :disabled="undoFlag" type="warning" plain @click="undoCall">撤销叫号</el-button> |
| | | <el-button :disabled="undoFlag" type="warning" plain @click="undoFinish">撤销完成</el-button> |
| | | </el-container> |
| | | </el-container> |
| | | </template> |
| | | </DoctorPageLayout> |
| | | </template> |
| | | |
| | | <style scoped lang="scss"> |
| | | .right-bottom { |
| | | position: absolute; |
| | | bottom: 50px; |
| | | right: 80px; |
| | | //background-color: #f00; |
| | | //color: #fff; |
| | | //padding: 10px; |
| | | } |
| | | </style> |
| | | <!-- |
| | | 原先这里有 .right-bottom { position:absolute; bottom:50px; right:80px }, |
| | | 正是"记录列表变长后盖住功能按钮"的根因(按钮脱离文档流、不占布局空间)。 |
| | | 现改由 DoctorPageLayout 的 #footer 承载:正常文档流中的固定底栏,无需偏移。 |
| | | --> |