From c6421e15ecc9df14dbb2f29ab76a73ce7aa7f603 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 25 十一月 2024 21:32:09 +0800 Subject: [PATCH] 预约小票 打印 --- src/views/ecg/doctor/components/TitlePanel.vue | 64 ++++++++++++++++++++++---------- 1 files changed, 44 insertions(+), 20 deletions(-) diff --git a/src/views/ecg/doctor/components/TitlePanel.vue b/src/views/ecg/doctor/components/TitlePanel.vue index aab19ad..ace710a 100644 --- a/src/views/ecg/doctor/components/TitlePanel.vue +++ b/src/views/ecg/doctor/components/TitlePanel.vue @@ -1,42 +1,66 @@ <script setup lang="ts"> import {defineComponent, PropType} from "vue"; -import {useUserStore} from "@/store/modules/user"; -import {RoomBedVO} from "@/api/ecg/doctor"; - -const userStore = useUserStore(); +import {PatientStatisticVO, RoomBedVO} from "@/api/ecg/doctor"; +import {useCheckTypeStore} from "@/store/modules/checkType"; defineComponent({ name: 'TitlePanel' }) -const roomBedVO: RoomBedVO = { - roomId: userStore.room.roomId, - bedNo: userStore.room.bedNo -} - const props = defineProps({ + titleType: Number, room: { - type: String, - required: true - } - /*, - bedList: { - type: Array as PropType<RoomVO[]>, + type: Object as PropType<RoomBedVO>, required: true }, - modelValue: { - type: Object as PropType<RoomVO>, + patientStatistic: { + type: Object as PropType<PatientStatisticVO>, required: true } -*/ }) + +const checkTypeStore = useCheckTypeStore(); </script> <template> -宸插氨璇妠{10}} 鍑嗗涓瓄{3}} 杩囧彿{{2}} 鎺掗槦涓瓄{100}} 璇婂{{roomBedVO.roomId}} 宸ヤ綅{{roomBedVO.bedNo}} +<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"> + {{checkTypeStore.getCheckTypeName(checkType)}} + </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> -- Gitblit v1.9.3