eight
2024-10-14 1f0704d535645119d230f19f1d6a38b1f9f1a712
src/views/ecg/doctor/components/TitlePanel.vue
@@ -1,12 +1,14 @@
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
import {isNumber} from "@/utils/is";
defineComponent({
  name: 'TitlePanel'
})
const  props = defineProps({
  titleType: Number,
  room: {
    type: Object as PropType<RoomBedVO>,
    required: true
@@ -24,12 +26,22 @@
    <div>
      {{room.roomName || ''}} {{room.bedNo || ''}}
    </div>
    <div>
    <div v-if="titleType === 0">
    已发放{{patientStatistic.receivedNum??0}}
    准备中{{patientStatistic.readyNum??0}}
    过号{{patientStatistic.passedNum??0}}
    排队中{{patientStatistic.queuingNum??0}}
    </div>
    <div v-if="titleType === 1">
      已装机{{patientStatistic.finishedNum??0}}
      待装机{{patientStatistic.receivedNum??0}}
    </div>
    <div v-if="titleType === 2">
      已检查{{patientStatistic.finishedNum??0}}
      准备中{{patientStatistic.readyNum??0}}
      过号{{patientStatistic.passedNum??0}}
      排队中{{patientStatistic.queuingNum??0}}
    </div>
</div>
</template>