eight
2024-10-14 a3fd8c61c63f5ea5624371d8726fb141c336de38
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
 
defineComponent({
  name: 'TitlePanel'
})
 
const  props = defineProps({
  room: {
    type: Object as PropType<RoomBedVO>,
    required: true
  },
  patientStatistic: {
    type: Object as PropType<PatientStatisticVO>,
    required: true
  }
})
 
onMounted(() => {
  console.info(props.room)
})
 
</script>
 
<template>
<div class="mytitle">
    <div>
      {{room.roomName || ''}} {{room.bedNo || ''}}
    </div>
    <div>
      已装机{{patientStatistic.finishedNum??0}}
      待装机{{patientStatistic.receivedNum??0}}
    </div>
</div>
 
</template>
 
<style scoped lang="scss">
.mytitle {
  display: flex;
  justify-content: space-between;
}
</style>