From 1f0704d535645119d230f19f1d6a38b1f9f1a712 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 14 十月 2024 15:14:48 +0800
Subject: [PATCH] 常规检查 统计信息

---
 src/views/ecg/doctor/components/TitlePanel.vue |   22 ++++++++--
 /dev/null                                      |   44 ----------------------
 src/views/ecg/doctor/DevInstall.vue            |    2 
 src/views/ecg/doctor/Routine.vue               |    2 
 src/views/ecg/doctor/index.vue                 |    2 
 5 files changed, 20 insertions(+), 52 deletions(-)

diff --git a/src/views/ecg/doctor/DevInstall.vue b/src/views/ecg/doctor/DevInstall.vue
index d9e1158..cdab691 100644
--- a/src/views/ecg/doctor/DevInstall.vue
+++ b/src/views/ecg/doctor/DevInstall.vue
@@ -164,7 +164,7 @@
 <template>
   <el-container>
     <el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px">
-      <TitleInstallPanel :room="roomBedVO" :patientStatistic="patientStat" />
+      <TitlePanel :titleType=1 :room="roomBedVO" :patientStatistic="patientStat" />
     </el-header>
     <el-container style="height: 100%;">
       <el-main style="border: solid var(--el-color-primary-light-7)">
diff --git a/src/views/ecg/doctor/Routine.vue b/src/views/ecg/doctor/Routine.vue
index d6d7d3d..0e84371 100644
--- a/src/views/ecg/doctor/Routine.vue
+++ b/src/views/ecg/doctor/Routine.vue
@@ -162,7 +162,7 @@
 <template>
   <el-container>
     <el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px">
-      <TitlePanel :room="roomBedVO" :patientStatistic="patientStat" />
+      <TitlePanel :titleType=2 :room="roomBedVO" :patientStatistic="patientStat" />
     </el-header>
     <el-container style="height: 100%;">
       <el-main style="border: solid var(--el-color-primary-light-7)">
diff --git a/src/views/ecg/doctor/components/TitleInstallPanel.vue b/src/views/ecg/doctor/components/TitleInstallPanel.vue
deleted file mode 100644
index 9963f95..0000000
--- a/src/views/ecg/doctor/components/TitleInstallPanel.vue
+++ /dev/null
@@ -1,44 +0,0 @@
-<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>
diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue
index f1dc7d3..80eb826 100644
--- a/src/views/ecg/doctor/components/TitlePanel.vue
+++ b/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,11 +26,21 @@
     <div>
       {{room.roomName || ''}} {{room.bedNo || ''}}
     </div>
-    <div>
-    宸插彂鏀緖{patientStatistic.receivedNum??0}}
-    鍑嗗涓瓄{patientStatistic.readyNum??0}}
-    杩囧彿{{patientStatistic.passedNum??0}}
-    鎺掗槦涓瓄{patientStatistic.queuingNum??0}}
+    <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>
 
diff --git a/src/views/ecg/doctor/index.vue b/src/views/ecg/doctor/index.vue
index 7f032fe..c239780 100644
--- a/src/views/ecg/doctor/index.vue
+++ b/src/views/ecg/doctor/index.vue
@@ -161,7 +161,7 @@
 <template>
   <el-container>
     <el-header style="background-color: var(--el-color-primary-light-7); font-size: 24px">
-      <TitlePanel :room="roomBedVO" :patientStatistic="patientStat" />
+      <TitlePanel :titleType=0 :room="roomBedVO" :patientStatistic="patientStat" />
     </el-header>
     <el-container style="height: 100%;">
       <el-main style="border: solid var(--el-color-primary-light-7)">

--
Gitblit v1.9.3