diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue
index ae14168..1ff0c9a 100644
--- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue
+++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue
@@ -50,8 +50,8 @@
.flex.h-10.w-10.absolute.right-4.bottom-4
q-btn(@click="showModal = true", color="primary", dense, padding="4px 12px")
q-icon(name="app:icon-plus", size="17px")
- base-modal(v-model="showModal", title="Создание тега")
- tag-creation-form
+ base-modal(v-model="showModal", title="Создание тега", modal-padding)
+ tag-creation-form(:close-modal="closeModal", :create-tag="createTag")
.flex(v-if="data.title === 'Осмотр полости рта' && (fillInspection || change)", :style="{color: 'var(--btn-blue-color)'}")
q-btn(no-caps, flat padding="2px 4px")
q-icon(left, name="app:plus", size="11px")
@@ -111,6 +111,13 @@ export default {
closeCard() {
this.change = false;
},
+ closeModal() {
+ this.showModal = false;
+ },
+ createTag(model) {
+ this.showModal = false;
+ this.protocolData[this.data.state].push(model.tag);
+ },
},
watch: {
fillInspection: {
diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue
index e95ff0a..e8e9fda 100644
--- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue
+++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/TagCreationForm.vue
@@ -1,17 +1,48 @@
- .wrapper.flex.flex-col
- .flex.flex-col
+ .flex.flex-col
+ .flex.flex-col.justify-between.py-6(:style="{height: '194px'}")
+ .flex.flex-col(class="gap-y-1.5")
+ .label.font-semibold.text-smm Категория
+ .select.flex.items-center.justify-between.cursor-pointer.py-2.px-4.rounded(
+ :class="{'open-select': isOpen}",
+ @click="openMenu",
+ v-click-outside="closeMenu"
+ ) {{model.category ? model.category : "Выберите категорию"}}
+ .flex.duration-100(:class="{'open-menu': isOpen}")
+ q-icon(name="app:down-arrow")
+ q-menu(
+ v-if="isOpen",
+ :style="{rowGap: '6px'}",
+ style="margin-top: 4px !important",
+ fit,
+ anchor="bottom left",
+ self="top left"
+ )
+ .menu-wrapper.flex.flex-col.h-40.overflow-y-auto
+ .options.flex(v-for="item in options")
+ .item.flex.py-2.px-4.items-center.cursor-pointer(
+ @click="selected(item.label)"
+ ) {{item.label}}
+ .tag.item.flex.py-2.px-4.items-center.cursor-pointer.w-full.gap-x-2(
+ @click="addCategory"
+ )
+ q-icon(name="app:icon-plus", size="10px",)
+ span Добавить категорию
+ .flex.flex-col(class="gap-x-1.5")
+ base-input(v-model="model.tag", label="Текст тега", placeholder="Введите тэг", outlined)
.buttons-group.flex
q-btn(
+ @click="closeModal",
color="primary",
outline,
size="16px",
no-caps,
- label="Отмена",
+ label="Отменить",
:style="{width: '100%', height: '40px'}",
padding="10px 24px"
)
q-btn(
+ @click="createTag(model)",
color="primary",
size="16px",
no-caps,
@@ -22,27 +53,89 @@