From b873bfe1743b2f98b09c1028e8fc23e2a1ab18b1 Mon Sep 17 00:00:00 2001 From: DwCay Date: Thu, 29 Dec 2022 16:19:04 +0300 Subject: [PATCH] =?UTF-8?q?WIP=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D0=BE=D0=BB=D1=8F=20=D0=B4=D0=BB=D1=8F=20=D0=B4?= =?UTF-8?q?=D0=B5=D1=82=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B9=20=D0=B8=D0=BD?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D1=86=D0=B8=D0=B8,=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=84=D0=B8=D0=B3=20=D0=B4=D0=BB=D1=8F=20=D0=BC=D0=B5?= =?UTF-8?q?=D0=B4=20=D0=BA=D0=B0=D1=80=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/base/BaseDetailInfo.vue | 34 +++++ src/pages/clients/components/ClientsTable.vue | 4 +- .../components/MedicalCardWrapper.vue | 101 +++++++++++++- src/pages/medicalCard/utils/medicalConfig.js | 128 ++++++++++++++++++ tailwind.config.js | 1 + 5 files changed, 264 insertions(+), 4 deletions(-) create mode 100644 src/components/base/BaseDetailInfo.vue create mode 100644 src/pages/medicalCard/utils/medicalConfig.js diff --git a/src/components/base/BaseDetailInfo.vue b/src/components/base/BaseDetailInfo.vue new file mode 100644 index 0000000..3e158fe --- /dev/null +++ b/src/components/base/BaseDetailInfo.vue @@ -0,0 +1,34 @@ + + + + + diff --git a/src/pages/clients/components/ClientsTable.vue b/src/pages/clients/components/ClientsTable.vue index e2fdc24..9a5d1fc 100644 --- a/src/pages/clients/components/ClientsTable.vue +++ b/src/pages/clients/components/ClientsTable.vue @@ -271,9 +271,7 @@ export default { } if (action === "medical") { if (id) { - fetchWrapper - .get(`medical_card/medical_history/${id}/detail/`) - .then((res) => this.saveDataMedicalHistory(res)); + localStorage.setItem("medicalId", id); this.$router.push("medical-card"); } else { this.titleModal = "Создать мед.карту"; diff --git a/src/pages/medicalCard/components/MedicalCardWrapper.vue b/src/pages/medicalCard/components/MedicalCardWrapper.vue index 2c3e877..bf2aec7 100644 --- a/src/pages/medicalCard/components/MedicalCardWrapper.vue +++ b/src/pages/medicalCard/components/MedicalCardWrapper.vue @@ -1,10 +1,96 @@ diff --git a/src/pages/medicalCard/utils/medicalConfig.js b/src/pages/medicalCard/utils/medicalConfig.js new file mode 100644 index 0000000..9e089ad --- /dev/null +++ b/src/pages/medicalCard/utils/medicalConfig.js @@ -0,0 +1,128 @@ +export const medicalDetailConfig = { + identity_document: { + height: 366, + title: "Паспортные данные", + fields: [ + { + label: "number_series", + title: "Серия и номер", + type: "input", + copy: true, + }, + { + label: "issued_by_org", + title: "Выдан", + type: "input", + }, + { + label: "issued_by_org_code", + title: "Код подразделения", + type: "input", + }, + { + label: "issued_by_date", + title: "Дата выдачи", + type: "data", + }, + ], + }, + registration_address: { + height: 130, + title: "Адреес регистрации", + fields: [ + { + label: "registration_address", + title: "Полный адрес", + type: "input", + }, + ], + }, + temporary_address: { + height: 130, + title: "Адреес проживания", + fields: [ + { + label: "temporary_address", + title: "Полный адрес", + type: "input", + }, + ], + }, + snils: { + height: 108, + title: "СНИЛС", + fields: [ + { + label: "insurance_number", + title: "Номер", + type: "input", + copy: true, + }, + ], + }, + policy_number_series: { + height: 170, + title: "ПОЛИС", + fields: [ + { + label: "series", + title: "Серия", + type: "input", + }, + { + label: "number", + title: "Номер", + type: "input", + }, + ], + }, + policy_organization: { + height: 111, + title: "Страховая организация", + fields: [ + { + label: "organization", + title: "Название", + type: "input", + }, + ], + }, + additional: { + height: 202, + title: "Дополнительная информация", + fields: [ + { + label: "name_confidant", + title: "Доверенное лицо", + type: "input", + }, + { + label: "phone_confidant", + title: "", + type: "input", + }, + { + label: "benefit_code", + title: "Код категории льготы", + type: "input", + }, + ], + }, + agreement_form: { + height: 163, + title: + "Информированное добровольное согласие на виды медицинских вмешательств, включенные в Перечень определенных видов медицинских вмешательств:", + fields: [ + { + label: "agreement", + title: "Получено", + type: "check_box", + }, + { + label: "agreement_date", + title: "Дата", + type: "date", + }, + ], + }, +}; diff --git a/tailwind.config.js b/tailwind.config.js index 619aa66..247f020 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -28,6 +28,7 @@ module.exports = { gap: { "6px": "6px", "11px": "11px", + "30px": "30px", 43: "43px", }, spacing: {