From 3ea002a5e5b85609280276176fabae551fa25cd3 Mon Sep 17 00:00:00 2001 From: DwCay Date: Thu, 30 Mar 2023 19:41:41 +0300 Subject: [PATCH 1/2] =?UTF-8?q?WIP=20=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=20=D0=B2=D1=80=D0=B0=D0=BF=D0=BF=D0=B5=D1=80=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=84=D0=BE=D1=80=D0=BC=20=D0=BC=D0=B5=D0=B4=20=D0=BA?= =?UTF-8?q?=D0=B0=D1=80=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/BasicDataForm.vue | 8 +++ .../components/MedicalFormWrapper.vue | 69 +++++++++++++++++++ .../newMedicalCard/utils/configMedical.js | 35 ++++++++++ tailwind.config.js | 1 + 4 files changed, 113 insertions(+) create mode 100644 src/pages/newMedicalCard/components/BasicDataForm.vue create mode 100644 src/pages/newMedicalCard/components/MedicalFormWrapper.vue create mode 100644 src/pages/newMedicalCard/utils/configMedical.js diff --git a/src/pages/newMedicalCard/components/BasicDataForm.vue b/src/pages/newMedicalCard/components/BasicDataForm.vue new file mode 100644 index 0000000..61b61ee --- /dev/null +++ b/src/pages/newMedicalCard/components/BasicDataForm.vue @@ -0,0 +1,8 @@ + + + diff --git a/src/pages/newMedicalCard/components/MedicalFormWrapper.vue b/src/pages/newMedicalCard/components/MedicalFormWrapper.vue new file mode 100644 index 0000000..8ccf8da --- /dev/null +++ b/src/pages/newMedicalCard/components/MedicalFormWrapper.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/pages/newMedicalCard/utils/configMedical.js b/src/pages/newMedicalCard/utils/configMedical.js new file mode 100644 index 0000000..dbf3509 --- /dev/null +++ b/src/pages/newMedicalCard/utils/configMedical.js @@ -0,0 +1,35 @@ +export const baseDataForm = [ + { + fieldName: "Личные данные", + fields: [ + { + key: "last_name", + label: "Фамилия", + }, + { + key: "first_name", + label: "Имя", + }, + { + key: "patronymic", + label: "Отчество", + }, + { + key: "patronymic", + label: "Отчество", + }, + { + key: "gender", + label: "Пол", + }, + { + key: "birth_date", + label: "Дата рождения", + }, + { + key: "photo", + label: "Фото", + }, + ], + }, +]; diff --git a/tailwind.config.js b/tailwind.config.js index 961885d..ab60bc1 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -31,6 +31,7 @@ module.exports = { "7px": "7px", "11px": "11px", "30px": "30px", + "25px": "25px", 43: "43px", }, spacing: { From 011dd12278b28f8e2c29b5cb7f54f94a2f3244cb Mon Sep 17 00:00:00 2001 From: DwCay Date: Thu, 30 Mar 2023 19:54:21 +0300 Subject: [PATCH 2/2] =?UTF-8?q?WIP=20=D0=9F=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20=D0=BE=D1=82=D1=81=D1=82=D1=83=D0=BF=D1=8B=20?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B2=D1=80=D0=B0=D0=BF=D0=B5=D1=80=D0=B5=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=20=D0=BC=D0=B5=D0=B4=20=D0=BA=D0=B0?= =?UTF-8?q?=D1=80=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/newMedicalCard/components/MedicalFormWrapper.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/newMedicalCard/components/MedicalFormWrapper.vue b/src/pages/newMedicalCard/components/MedicalFormWrapper.vue index 8ccf8da..487dc4a 100644 --- a/src/pages/newMedicalCard/components/MedicalFormWrapper.vue +++ b/src/pages/newMedicalCard/components/MedicalFormWrapper.vue @@ -3,7 +3,7 @@ transition(name="medical-form", mode="out-in") .loader.absolute.flex.items-center.justify-center.w-full.h-full.rounded(v-if="isLoadingData") base-loader - .flex.flex-col.h-full.gap-25px.m-6 + .flex.flex-col.h-full.gap-25px.p-6 .flex.w-fit.gap-11px.items-center span.font-bold.text-base {{title}} q-icon.edit-button.text-lg.cursor-pointer(name="app:edit" v-if="!thisEdit" @click="clickEditForm" size="20")