From f61c405f0f4c426509f39d7ffc65bfcfd7f69c3b Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Thu, 29 Jun 2023 16:58:33 +0300 Subject: [PATCH 1/2] =?UTF-8?q?[WIP]=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BC=D0=BE=D0=B6=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=BA=D0=BD=D0=BE=20=D1=81=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=82=D1=8D=D0=B3=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/MedicalFormTag.vue | 11 +- .../Forms/TagCreationForm.vue | 105 +++++++++++++++++- 2 files changed, 108 insertions(+), 8 deletions(-) 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 @@ From e6015ba458610e37958ff6c7c266ebf221f06937 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Thu, 29 Jun 2023 17:13:42 +0300 Subject: [PATCH 2/2] =?UTF-8?q?[WIP]=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BC=D0=BE=D0=B4=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE?= =?UTF-8?q?=D0=B5=20=D0=BE=D0=BA=D0=BD=D0=BE=20=D1=81=D0=BE=D0=B7=D0=B4?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D1=8F=20=D1=82=D1=8D=D0=B3=D0=B0=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D1=84=D0=BE=D1=80=D0=BC=D1=83=20=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D1=85=20=D0=BE=D0=B1=D1=81=D0=BB=D0=B5=D0=B4=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D0=BD=D0=B8=D1=8F,=20=D1=84=D0=B8=D0=BA=D1=81=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/DataForm.vue | 14 ++- .../Forms/MedicalFormTag.vue | 5 +- .../Forms/TagCreationForm.vue | 105 +++++++++--------- 3 files changed, 67 insertions(+), 57 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue index 7f9b949..d979978 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue @@ -61,8 +61,9 @@ ) .name.flex.items-center.font-medium.text-smm {{ name }} .flex.h-10.w-10.absolute.right-4.bottom-4 - q-btn(color="primary", dense, padding="4px 12px") + q-btn(@click="showModal = true", color="primary", dense, padding="4px 12px") q-icon(name="app:icon-plus", size="17px") + tag-creation-form(:show-modal="showModal", :close-modal="closeModal", :create-tag="createTag") .flex.gap-x-20.w-full(v-if="change || fillInspection") .flex.flex-col.gap-y-3.w-full(v-for="file in protocolData[data.state].files") .title.text-smm.font-semibold {{file.name}} @@ -97,13 +98,14 @@