eight
2024-08-28 0c45345e728ce224297ea224063d2e7a83b34516
src/views/ecg/doctor/components/TitlePanel.vue
@@ -1,7 +1,7 @@
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
import {useUserStore} from "@/store/modules/user";
import {RoomBedVO} from "@/api/ecg/doctor";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
const userStore = useUserStore();
@@ -10,33 +10,37 @@
})
const roomBedVO: RoomBedVO = {
  roomId: userStore.room.roomId,
  bedNo: userStore.room.bedNo
  roomId: userStore.room!.roomId,
  bedNo: userStore.room!.bedNo
}
const  props = defineProps({
  room: {
    type: String,
  patientStatistic: {
    type: Object as PropType<PatientStatisticVO>,
    required: true
  }
  /*,
  bedList: {
    type: Array as PropType<RoomVO[]>,
    required: true
  },
  modelValue: {
    type: Object as PropType<RoomVO>,
    required: true
  }
*/
})
</script>
<template>
已就诊{{10}}  准备中{{3}}  过号{{2}} 排队中{{100}}   诊室{{roomBedVO.roomId}} 工位{{roomBedVO.bedNo}}
<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>