From 8544ad5024c46f25e25f5426c8f6bf7c2a845836 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 28 十月 2024 09:22:56 +0800
Subject: [PATCH] remove pay-related icons
---
src/views/ecg/doctor/components/TitlePanel.vue | 44 ++++++++++++++++++++++++++++++++------------
1 files changed, 32 insertions(+), 12 deletions(-)
diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue
index 00def2a..80eb826 100644
--- a/src/views/ecg/doctor/components/TitlePanel.vue
+++ b/src/views/ecg/doctor/components/TitlePanel.vue
@@ -1,20 +1,18 @@
<script setup lang="ts">
import {defineComponent, PropType} from "vue";
-import {useUserStore} from "@/store/modules/user";
import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor";
-
-const userStore = useUserStore();
+import {isNumber} from "@/utils/is";
defineComponent({
name: 'TitlePanel'
})
-const roomBedVO: RoomBedVO = {
- roomId: userStore.room.roomId,
- bedNo: userStore.room.bedNo
-}
-
const props = defineProps({
+ titleType: Number,
+ room: {
+ type: Object as PropType<RoomBedVO>,
+ required: true
+ },
patientStatistic: {
type: Object as PropType<PatientStatisticVO>,
required: true
@@ -24,11 +22,33 @@
</script>
<template>
-宸插氨璇妠{patientStatistic.finishedNum}} 鍑嗗涓瓄{patientStatistic.readyNum}}
- 杩囧彿{{patientStatistic.passedNum}} 鎺掗槦涓瓄{patientStatistic.queuingNum}}
- 璇婂{{roomBedVO.roomId}} 宸ヤ綅{{roomBedVO.bedNo}}
+<div class="mytitle">
+ <div>
+ {{room.roomName || ''}} {{room.bedNo || ''}}
+ </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>
<style scoped lang="scss">
-
+.mytitle {
+ display: flex;
+ justify-content: space-between;
+}
</style>
--
Gitblit v1.9.3