eight
2024-08-28 3b8457c9c63f0996d8dae63ac988f976da956d38
update
已修改4个文件
57 ■■■■ 文件已修改
src/api/ecg/doctor/index.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/components/TitlePanel.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/doctor/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/ecg/room/RoomLoginSelect.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/ecg/doctor/index.ts
@@ -1,8 +1,8 @@
import request from '@/config/axios'
export interface RoomBedVO {
  roomId: number // 诊室编号
  bedNo: string // 诊疗床编号
  roomId: number | null // 诊室编号
  bedNo: string | null // 诊疗床编号
}
export interface PatientVO {
src/views/ecg/doctor/components/TitlePanel.vue
@@ -10,8 +10,8 @@
})
const roomBedVO: RoomBedVO = {
  roomId: userStore.room.roomId,
  bedNo: userStore.room.bedNo
  roomId: userStore.room!.roomId,
  bedNo: userStore.room!.bedNo
}
const  props = defineProps({
@@ -24,11 +24,23 @@
</script>
<template>
已就诊{{patientStatistic.finishedNum}}  准备中{{patientStatistic.readyNum}}
  过号{{patientStatistic.passedNum}} 排队中{{patientStatistic.queuingNum}}
<div class="mytitle">
    <div>
  诊室{{roomBedVO.roomId}} 工位{{roomBedVO.bedNo}}
    </div>
    <div>
    已就诊{{patientStatistic.finishedNum==undefined ? 0 : patientStatistic.finishedNum}}
    准备中{{patientStatistic.readyNum==undefined ? 0 : patientStatistic.readyNum}}
    过号{{patientStatistic.passedNum==undefined ? 0 : patientStatistic.passedNum}}
    排队中{{patientStatistic.queuingNum==undefined ? 0 : patientStatistic.queuingNum}}
    </div>
</div>
</template>
<style scoped lang="scss">
.mytitle {
  display: flex;
  justify-content: space-between;
}
</style>
src/views/ecg/doctor/index.vue
@@ -19,6 +19,8 @@
    queuingNum: 0
})
let state: 'normal' | 'paused' = "normal";
const list = ref<queueVO[]>([])
const finishNextPatient = async () => {
@@ -45,6 +47,14 @@
    patientStat.value = data2
}
const pause = async () => {
  state = 'paused'
}
const resume = async () => {
  state = 'normal'
}
/** 初始化 **/
onMounted(() => {
    getPatientList()
@@ -68,6 +78,8 @@
    <el-container style="justify-content: center;">
      <el-button type="primary" @click="finishNextPatient">叫号</el-button>
      <el-button type="primary" @click="passNextPatient">过号</el-button>
      <el-button v-if="state==='normal'" type="primary" @click="pause">暂停</el-button>
      <el-button v-else type="primary" @click="resume">恢复</el-button>
    </el-container>
  </el-container>
</template>
src/views/ecg/room/RoomLoginSelect.vue
@@ -5,6 +5,7 @@
        <RoomBedSelect :title="key" :bedList="value" :curBed="curSel" @haveSeat="haveSeat" @leaveSeat="leaveSeat"/>
      </div>
    </div>
    <el-button @click="confirmCurSel">确认</el-button>
  </div>
</template>
@@ -180,6 +181,24 @@
  });
}
const confirmCurSel = () => {
  if (curSel.value.docId === null ) {
    ElMessage({
      message: '请先选择工作的位置!',
      type: 'info',
      duration: 3000 // 自动关闭时间,默认为3000ms
    });
    return
  }
  if (isStringEmpty(route.redirectedFrom?.fullPath))
    push({ path: "/"})
  else if(route.redirectedFrom?.fullPath === "/roomselect" )
    push({ path: "/"})
  else
    push({ path: route.redirectedFrom?.fullPath})
}
/** 初始化 **/
onMounted(() => {
  getList()