eight
2025-04-11 106d90222ad7fb031cae93876e904e9dc8e5ce7f
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
import {useCheckTypeStore} from "@/store/modules/checkType";
import {getCheckTypeName} from "../../../../utils/checkTypeFormatter";
 
defineComponent({
  name: 'TitlePanel'
})
 
const  props = defineProps({
  titleType: Number,
  room: {
    type: Object as PropType<RoomBedVO>,
    required: true
  },
  patientStatistic: {
    type: Object as PropType<PatientStatisticVO>,
    required: true
  }
})
 
const checkTypeStore = useCheckTypeStore();
 
</script>
 
<template>
<div class="mytitle">
    <div>
      <img v-if="titleType !== room.opType"
           src="@/assets/imgs/error.png"
           alt="禁止访问本页面,当前工位不符合要求"
           width="20px"
      />
      {{room.roomName || ''}} {{room.bedNo || ''}} {{room.opType === 1?"领用":""}} {{room.opType === 2?"安装":""}}
      <div>
        <span v-for="(checkType, subIndex) in room.checkTypes" :key="subIndex">
          {{getCheckTypeName(checkType)}} &nbsp;
        </span>
      </div>
    </div>
    <div v-if="titleType === 0">
      已检查{{patientStatistic.finishedNum??0}}
      准备中{{patientStatistic.readyNum??0}}
      过号{{patientStatistic.passedNum??0}}
      排队中{{patientStatistic.queuingNum??0}}
    </div>
    <div v-if="titleType === 1">
      已发放{{patientStatistic.receivedNum??0}}
      准备中{{patientStatistic.readyNum??0}}
      过号{{patientStatistic.passedNum??0}}
      排队中{{patientStatistic.queuingNum??0}}
    </div>
    <div v-if="titleType === 2">
      已装机{{patientStatistic.finishedNum??0}}
      待装机{{patientStatistic.receivedNum??0}}
    </div>
</div>
 
</template>
 
<style scoped lang="scss">
.mytitle {
  display: flex;
  justify-content: space-between;
}
</style>