From 317e8c80fe514b042a024e854b827cb86371653b Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Fri, 12 May 2023 13:55:44 +0300 Subject: [PATCH 1/4] =?UTF-8?q?[WIP]=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/MedicalFormData.vue | 40 +++++++++++++++++++ ...lFormTagWrapper.vue => MedicalFormTag.vue} | 2 +- .../MedicalProtocolsInspection.vue | 8 ++-- 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue rename src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/{MedicalFormTagWrapper.vue => MedicalFormTag.vue} (99%) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue new file mode 100644 index 0000000..f869b1c --- /dev/null +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue @@ -0,0 +1,40 @@ + + + + + diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTagWrapper.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue similarity index 99% rename from src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTagWrapper.vue rename to src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue index ff9cb42..27c62d5 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTagWrapper.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue @@ -55,7 +55,7 @@ import BaseInput from "@/components/base/BaseInput.vue"; import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue"; export default { - name: "MedicalFormTagWrapper", + name: "MedicalFormTag", components: { BaseButton, BaseInput, MedicalFormWrapper }, props: { list: Array, diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue index 845224c..0d8aea9 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue @@ -22,7 +22,7 @@ :style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}", padding="0" ) - medical-form-tag-wrapper( + medical-form-tag( v-if="inspection || fillInspection", :list="list", :inspection="inspection", @@ -42,7 +42,8 @@ + + diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue deleted file mode 100644 index f869b1c..0000000 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - - - diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue index 27c62d5..3a70262 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue @@ -43,8 +43,7 @@ dense, v-model="selected", :val="name?.label", - :style="{border: 'none', width: '16px', height: '16px'}", - + :style="{border: 'none', width: '16px', height: '16px'}" ) .name.flex.items-center.font-medium.text-smm {{ name?.label }} @@ -59,7 +58,6 @@ export default { components: { BaseButton, BaseInput, MedicalFormWrapper }, props: { list: Array, - inspection: Boolean, fillInspection: Boolean, openCard: Function, closeCard: Function, diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue index 0d8aea9..f1c587e 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue @@ -17,7 +17,7 @@ ) .button q-btn( - icon="app:basket", + icon="app:basket", size="20px", :style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}", padding="0" @@ -25,13 +25,12 @@ medical-form-tag( v-if="inspection || fillInspection", :list="list", - :inspection="inspection", :fill-inspection="fillInspection" :open-card="openCard", :close-card="closeCard" ) div(v-for="form in protocolForms", :key="form.key") - component(v-bind:is="form.component", :data="form") + component(v-bind:is="form.component", :data="form" :fill-inspection="fillInspection") .protocol.flex.justify-between.p-6(v-if="fillInspection") .flex.h-fit.w-fit.gap-2 base-button.text-base.font-semibold(outlined, :size="40") Отменить @@ -43,7 +42,7 @@ diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue index f1c587e..1e18121 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue @@ -30,7 +30,7 @@ :close-card="closeCard" ) div(v-for="form in protocolForms", :key="form.key") - component(v-bind:is="form.component", :data="form" :fill-inspection="fillInspection") + component(v-bind:is="form.component", :data="form", :fill-inspection="fillInspection") .protocol.flex.justify-between.p-6(v-if="fillInspection") .flex.h-fit.w-fit.gap-2 base-button.text-base.font-semibold(outlined, :size="40") Отменить From a51b2b65080eceed636a3f4d9deb68b5dd54fcda Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Fri, 12 May 2023 18:41:08 +0300 Subject: [PATCH 4/4] =?UTF-8?q?[WIP]=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=BF=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/DataForm.vue | 34 +----------------- .../Forms/MedicalFormTag.vue | 34 +----------------- .../MedicalProtocolsInspection.vue | 36 ++++++++++++++++++- 3 files changed, 37 insertions(+), 67 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue index 346f982..142d287 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue @@ -103,6 +103,7 @@ export default { name: "DataForm", components: { MedicalFormWrapper, BaseButton, BaseInput }, props: { + abc: Array, data: Object, fillInspection: Boolean, inspection: Boolean, @@ -132,39 +133,6 @@ export default { ], }, selected: [], - abc: [ - "А", - "Б", - "В", - "Г", - "Д", - "Е", - "Ё", - "Ж", - "З", - "И", - "Й", - "К", - "Л", - "М", - "Н", - "О", - "П", - "Р", - "С", - "Т", - "У", - "Ф", - "Х", - "Ц", - "Ч", - "Ш", - "Щ", - "Ы", - "Э", - "Ю", - "Я", - ], docData: [], scanData: [], iconDictionary: { diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue index 3a70262..4f58f9c 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue @@ -57,6 +57,7 @@ export default { name: "MedicalFormTag", components: { BaseButton, BaseInput, MedicalFormWrapper }, props: { + abc: Array, list: Array, fillInspection: Boolean, openCard: Function, @@ -65,39 +66,6 @@ export default { data() { return { selected: [], - abc: [ - "А", - "Б", - "В", - "Г", - "Д", - "Е", - "Ё", - "Ж", - "З", - "И", - "Й", - "К", - "Л", - "М", - "Н", - "О", - "П", - "Р", - "С", - "Т", - "У", - "Ф", - "Х", - "Ц", - "Ч", - "Ш", - "Щ", - "Ы", - "Э", - "Ю", - "Я", - ], }; }, methods: { diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue index 1e18121..9909de5 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/MedicalProtocolsInspection.vue @@ -25,12 +25,13 @@ medical-form-tag( v-if="inspection || fillInspection", :list="list", + :abc="abc", :fill-inspection="fillInspection" :open-card="openCard", :close-card="closeCard" ) div(v-for="form in protocolForms", :key="form.key") - component(v-bind:is="form.component", :data="form", :fill-inspection="fillInspection") + component(v-bind:is="form.component", :data="form", :fill-inspection="fillInspection", :abc="abc") .protocol.flex.justify-between.p-6(v-if="fillInspection") .flex.h-fit.w-fit.gap-2 base-button.text-base.font-semibold(outlined, :size="40") Отменить @@ -102,6 +103,39 @@ export default { ], }, ], + abc: [ + "А", + "Б", + "В", + "Г", + "Д", + "Е", + "Ё", + "Ж", + "З", + "И", + "Й", + "К", + "Л", + "М", + "Н", + "О", + "П", + "Р", + "С", + "Т", + "У", + "Ф", + "Х", + "Ц", + "Ч", + "Ш", + "Щ", + "Ы", + "Э", + "Ю", + "Я", + ], }; }, methods: {