eight
2024-10-14 68496135c2ed6c85c677395e756b13b6132aa8ff
src/views/ecg/doctor/components/TitlePanel.vue
@@ -1,20 +1,16 @@
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
import {useUserStore} from "@/store/modules/user";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
const userStore = useUserStore();
defineComponent({
  name: 'TitlePanel'
})
const roomBedVO: RoomBedVO = {
  roomId: userStore.room!.roomId,
  bedNo: userStore.room!.bedNo
}
const  props = defineProps({
  room: {
    type: Object as PropType<RoomBedVO>,
    required: true
  },
  patientStatistic: {
    type: Object as PropType<PatientStatisticVO>,
    required: true
@@ -26,13 +22,13 @@
<template>
<div class="mytitle">
    <div>
      诊室{{roomBedVO.roomId}} 工位{{roomBedVO.bedNo}}
      {{room.roomName || ''}} {{room.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}}
    已领用{{patientStatistic.receivedNum??0}}
    准备中{{patientStatistic.readyNum??0}}
    过号{{patientStatistic.passedNum??0}}
    排队中{{patientStatistic.queuingNum??0}}
    </div>
</div>