Профиль хирургии
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import {NSkeleton, NStatistic, NRow, NCol, NSpace, NCard, NButton, NTag, NDatePicker, NFlex, NSelect, NText, NH2} from "naive-ui";
|
||||
import {NSkeleton, NStatistic, NRow, NCol, NSpace, NCard, NButton, NTag, NDatePicker, NFlex, NSelect, NText, NNumberAnimation} from "naive-ui";
|
||||
import {computed, ref} from "vue";
|
||||
import {format} from "date-fns";
|
||||
import {useNow} from "@vueuse/core";
|
||||
@@ -57,11 +57,11 @@ const currentDate = computed(() => {
|
||||
<NFlex vertical>
|
||||
<div class="grid grid-cols-[auto_1fr_auto] items-center">
|
||||
<NSpace align="center">
|
||||
<NTag v-if="isFillableMode" type="info" :bordered="false">
|
||||
<NTag type="info" :bordered="false">
|
||||
{{ reportStore.reportInfo.department.department_name }}
|
||||
</NTag>
|
||||
<DepartmentSelect v-if="isReadonlyMode" />
|
||||
<NTag v-if="reportStore.reportInfo.report.userName" type="warning">
|
||||
<!-- <DepartmentSelect v-if="isReadonlyMode" />-->
|
||||
<NTag v-if="authStore.isDoctor && reportStore.reportInfo.report.isActiveSendButton" type="warning">
|
||||
Ответственный: {{ reportStore.reportInfo.report.userName }}
|
||||
</NTag>
|
||||
</NSpace>
|
||||
@@ -69,6 +69,7 @@ const currentDate = computed(() => {
|
||||
<div class="col-3 w-full">
|
||||
<DatePickerQuery class="text-lg!"
|
||||
:is-head-or-admin="reportStore.reportInfo.report?.isHeadOrAdmin"
|
||||
:is-show-current-date-switch="reportStore.reportInfo.report?.isHeadOrAdmin"
|
||||
v-model:date="reportStore.timestampCurrentRange"
|
||||
:is-one-day="reportStore.reportInfo.report?.isOneDay" />
|
||||
</div>
|
||||
@@ -80,7 +81,8 @@ const currentDate = computed(() => {
|
||||
<NStatistic label="Коек">
|
||||
<template #default>
|
||||
<NSkeleton v-if="reportStore.isLoadReportInfo" round class="w-[70px]! mt-2 h-[29px]!" />
|
||||
<span v-else>{{ reportStore.reportInfo?.department?.beds }}</span>
|
||||
<NNumberAnimation v-else :from="0" :to="reportStore.reportInfo?.department?.beds" />
|
||||
<!-- <span v-else>{{ reportStore.reportInfo?.department?.beds }}</span>-->
|
||||
</template>
|
||||
</NStatistic>
|
||||
</NCol>
|
||||
@@ -88,7 +90,10 @@ const currentDate = computed(() => {
|
||||
<NStatistic label="Загруженность">
|
||||
<template #default>
|
||||
<NSkeleton v-if="reportStore.isLoadReportInfo" round class="w-[70px]! mt-2 h-[29px]!" />
|
||||
<span v-else>{{ reportStore.reportInfo?.department?.percentLoadedBeds }}%</span>
|
||||
<div v-else>
|
||||
<NNumberAnimation :from="0" :to="reportStore.reportInfo?.department?.percentLoadedBeds" />
|
||||
<span>%</span>
|
||||
</div>
|
||||
</template>
|
||||
</NStatistic>
|
||||
</NCol>
|
||||
@@ -96,7 +101,7 @@ const currentDate = computed(() => {
|
||||
<NStatistic label="Поступило">
|
||||
<template #default>
|
||||
<NSkeleton v-if="reportStore.isLoadReportInfo" round class="w-[70px]! mt-2 h-[29px]!" />
|
||||
<span v-else>{{ reportStore.reportInfo?.department?.recipientCount }}</span>
|
||||
<NNumberAnimation v-else :from="0" :to="reportStore.reportInfo?.department?.recipientCount" />
|
||||
</template>
|
||||
</NStatistic>
|
||||
</NCol>
|
||||
@@ -104,7 +109,7 @@ const currentDate = computed(() => {
|
||||
<NStatistic label="Выбыло">
|
||||
<template #default>
|
||||
<NSkeleton v-if="reportStore.isLoadReportInfo" round class="w-[70px]! mt-2 h-[29px]!" />
|
||||
<span v-else>{{ reportStore.reportInfo?.department?.extractCount }}</span>
|
||||
<NNumberAnimation v-else :from="0" :to="reportStore.reportInfo?.department?.extractCount" />
|
||||
</template>
|
||||
</NStatistic>
|
||||
</NCol>
|
||||
@@ -112,7 +117,7 @@ const currentDate = computed(() => {
|
||||
<NStatistic label="Состоит">
|
||||
<template #default>
|
||||
<NSkeleton v-if="reportStore.isLoadReportInfo" round class="w-[70px]! mt-2 h-[29px]!" />
|
||||
<span v-else>{{ reportStore.reportInfo?.department?.currentCount }}</span>
|
||||
<NNumberAnimation v-else :from="0" :to="reportStore.reportInfo?.department?.currentCount" />
|
||||
</template>
|
||||
</NStatistic>
|
||||
</NCol>
|
||||
|
||||
Reference in New Issue
Block a user