diff --git a/src/pages/newMedicalCard/TheMedicalCard.vue b/src/pages/newMedicalCard/TheMedicalCard.vue
index 0a20863..260f3f8 100644
--- a/src/pages/newMedicalCard/TheMedicalCard.vue
+++ b/src/pages/newMedicalCard/TheMedicalCard.vue
@@ -1,12 +1,22 @@
.w-full
- medical-card-header
+ medical-card-header(v-model="currentMenuItem")
+ component(
+ v-if="currentMenuItem",
+ v-bind:is="currentMenuItem",
+ )
diff --git a/src/pages/newMedicalCard/components/MedicalCardHeader.vue b/src/pages/newMedicalCard/components/MedicalCardHeader.vue
index 56feead..5b45b2d 100644
--- a/src/pages/newMedicalCard/components/MedicalCardHeader.vue
+++ b/src/pages/newMedicalCard/components/MedicalCardHeader.vue
@@ -13,18 +13,55 @@
q-btn(
flat,
text-color="grey",
- icon="app:basket",
- size="10px"
- label="Удалить медкарту",
no-caps,
- padding="4px"
+ padding="6px"
+ size="md"
)
- .flex.justify-between.mt-22px
+ q-icon(left, name="app:basket", size="16px")
+ span Удалить медкарту
+ .ml-6.flex.gap-x-4
+ q-avatar(size="80px", :style="{'background-color': 'var(--border-light-grey-color)', color: 'var(--font-dark-blue-color)'}")
+ img(v-if="patient?.avatar", :src="patient?.avatar")
+ span.text-2xl(v-else) {{patientAvatar}}
+ .flex.gap-y-1.flex-col
+ .flex.items-center
+ span.text-xxl.font-bold.mr-3(
+ :style="{color: 'var(--font-dark-blue-color)', 'line-height': '135%'}",
+ ) {{`${patient?.first_name} ${patient?.last_name} ${patient?.patronimic}`}}
+ q-chip(
+ square,
+ text-color="white",
+ :style="{height: '20px', background: priority.color, padding: '2px 8px'}",
+ :label="priority.text"
+ )
+ q-btn-dropdown(
+ :style="{background: 'var(--border-red-color)', height: '20px'}",
+ text-color="white",
+ :label="`+${patient?.allergy?.length}`"
+ icon="pan_tool"
+ size="10px",
+ padding="2px 8px",
+ dropdown-icon="expand_more",
+ menu-anchor="bottom left"
+ menu-self="top start"
+ )
+ q-list.w-56(:style="{padding: '16px', color: 'var(--font-dark-blue-color)'}")
+ q-item.text-smm(
+ v-close-popup,
+ v-for="allergy in patient?.allergy",
+ :style="{padding: 0, 'min-height': '32px'}"
+ )
+ q-item-section.cursor-pointer {{allergy}}
+ span.text-smm.label-color Добавлен в систему:
+ span.date-color {{ patient?.addedDate}}
+ span.text-smm.label-color Последнее обновление:
+ span.date-color {{patient?.updatedDate}}
+ .flex.justify-between.pt-4
.flex
.menu-item.px-6.py-10px.cursor-pointer.text-base(
v-for="item in menuItem",
- @click="selectItem(item.component)",
- :class="{'menu-item-active': item.component === currentMenuItem}",
+ @click="selectItem(item)",
+ :class="{'menu-item-active': item.component === modelValue}",
:key="item.id",
:id="item.id"
) {{item.title}}
@@ -34,21 +71,26 @@
label="Печатать",
dropdown-icon="expand_more",
flat,
+ size="md"
no-caps,
padding="2px 4px"
+ :style="{height: '32px'}"
)