eight
2025-04-15 49206ee0689d44367b9f5de3decf0c3ec02bfb51
src/views/ecg/doctor/components/TitlePanel.vue
@@ -1,7 +1,8 @@
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
import {isNumber} from "@/utils/is";
import {useCheckTypeStore} from "@/store/modules/checkType";
import {getCheckTypeName} from "../../../../utils/checkTypeFormatter";
defineComponent({
  name: 'TitlePanel'
@@ -19,29 +20,41 @@
  }
})
const checkTypeStore = useCheckTypeStore();
</script>
<template>
<div class="mytitle">
    <div>
      {{room.roomName || ''}} {{room.bedNo || ''}}
      <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.receivedNum??0}}
      已检查{{patientStatistic.finishedNum??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.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>