src/api/ecg/doctor/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/api/ecg/queue/index.ts | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/ecg/doctor/components/QueuePanel.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/ecg/doctor/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/ecg/room/RoomStatusSetting.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/ecg/doctor/index.ts
@@ -8,14 +8,19 @@ // 医生 API export const DoctorApi = { // 下一位患者 nextPatient: async (params: RoomBedVO) => { return await request.get({ url: `/ecg/doctor/nextpatient`, params }) // 看完,取下一位患者 finishNextPatient: async (params: RoomBedVO) => { return await request.get({ url: `/ecg/doctor/finish-next-patient`, params }) }, // 看完患者 finishPatient: async (params: RoomBedVO) => { return await request.get({ url: `/ecg/doctor/finishpatient`, params }) // 过号,取下一位患者 passNextPatient: async (params: RoomBedVO) => { return await request.get({ url: `/ecg/doctor/pass-next-patient`, params }) }, // 取初始患者列表 getPatientList: async (params: RoomBedVO) => { return await request.get({ url: `/ecg/doctor/get-patient-list`, params }) } } src/api/ecg/queue/index.ts
@@ -52,5 +52,11 @@ // 初始化队列信息,用于开诊设置 openingSetting: async () => { return await request.get({ url: `/ecg/queue/opening-setting` }) }, // 开诊前一刻,对应 就诊准备的人员 重新排序 queueReorder: async () => { return await request.get({ url: `/ecg/queue/reorder` }) } } src/views/ecg/doctor/components/QueuePanel.vue
@@ -25,7 +25,7 @@ <template> <div v-for="(item, index) in queue" :key="index"> {{item.patName}} {{item.patGender==1 ? "男" : "女"}} <dict-tag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="item.patGender" /> {{item.roomId}} {{item.roomName}} {{item.bedNo}} src/views/ecg/doctor/index.vue
@@ -14,19 +14,24 @@ const list = ref<queueVO[]>([]) const nextPatient = async () => { const data = await DoctorApi.nextPatient(roomBedVO) const finishNextPatient = async () => { const data = await DoctorApi.finishNextPatient(roomBedVO) list.value = data } const finishPatient = async () => { const data = await DoctorApi.finishPatient(roomBedVO) const passNextPatient = async () => { const data = await DoctorApi.passNextPatient(roomBedVO) list.value = data } const getPatientList = async () => { const data = await DoctorApi.getPatientList(roomBedVO) list.value = data } /** 初始化 **/ onMounted(() => { nextPatient() getPatientList() }) </script> @@ -45,8 +50,8 @@ </el-aside> </el-container> <el-container style="justify-content: center;"> <el-button type="primary" @click="finishPatient">完成</el-button> <el-button type="primary" @click="nextPatient">下一位</el-button> <el-button type="primary" @click="finishNextPatient">完成下一位</el-button> <el-button type="primary" @click="passNextPatient">过号下一位</el-button> </el-container> </el-container> </template> src/views/ecg/room/RoomStatusSetting.vue
@@ -5,6 +5,8 @@ </div> </div> <el-button @click="startUsing">启用</el-button> <el-button @click="queueReorder"> 队列重排 </el-button> </template> <script setup lang="ts"> @@ -26,6 +28,10 @@ await queueApi.openingSetting(); } const queueReorder = async () => { await queueApi.queueReorder(); } /** 初始化 **/ onMounted(() => { getList()