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: {