From e289df0c90fc75a2d3f8702bf2e53184009025db Mon Sep 17 00:00:00 2001 From: DwCay Date: Mon, 15 May 2023 18:51:49 +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=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B2=20?= =?UTF-8?q?=D1=80=D0=B5=D0=B6=D0=B8=D0=BC=D0=B5=20=D0=BF=D1=80=D0=BE=D1=81?= =?UTF-8?q?=D0=BC=D0=BE=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/sass/variables.sass | 5 + .../Forms/ThermometryForm.vue | 99 +++++++++---------- .../newMedicalCard/utils/medicalConfig.js | 37 +++++++ src/store/modules/medicalCard.js | 10 ++ 4 files changed, 96 insertions(+), 55 deletions(-) diff --git a/src/assets/sass/variables.sass b/src/assets/sass/variables.sass index 44f3a31..e013c00 100644 --- a/src/assets/sass/variables.sass +++ b/src/assets/sass/variables.sass @@ -35,6 +35,11 @@ --bg-event-green-color-0: #cdf0e5 --bg-event-green-color-1: #92e8be --bg-event-red-color: #e93131 + --bg-heat-color: #ffdad2 + --bg-cold-color: #e4efff + --font-heat-color: #773122 + --font-cold-color: #3b3e6c + --bg-yellow-warning: #ffb931 --bg-event-red-color-0: #f8c1c1 --bg-event-red-color-1: #f49898 --bg-event-yellow-color: #e5e931 diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue index a3fa09b..8e6d698 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ThermometryForm.vue @@ -1,10 +1,10 @@ @@ -110,4 +97,6 @@ export default { color: var(--font-grey-color) .result border-bottom: 1px solid var(--bg-light-grey) + &:last-child + border: none diff --git a/src/pages/newMedicalCard/utils/medicalConfig.js b/src/pages/newMedicalCard/utils/medicalConfig.js index 76c8fd4..060e46d 100644 --- a/src/pages/newMedicalCard/utils/medicalConfig.js +++ b/src/pages/newMedicalCard/utils/medicalConfig.js @@ -666,5 +666,42 @@ export const protocolForms = [ component: "ThermometryForm", key: "thermometry", state: "thermometry", + config: { + temperature: { + cold: { + title: "Реакция на холод", + color: "var(--font-cold-color)", + bg: "var(--bg-cold-color)", + icon: "ac_unit", + }, + heat: { + title: "Реакция на тепло", + color: "var(--font-heat-color)", + bg: "var(--bg-heat-color)", + icon: "local_fire_department", + }, + }, + results: [ + { + value: "Нет реакции", + colorWarning: "var(--border-red-color)", + }, + { + value: "Слабая реакция", + colorWarning: "var(--bg-yellow-warning)", + }, + { + value: "Реакция нормальная", + }, + { + value: "Повышенная чувствительность", + colorWarning: "var(--bg-yellow-warning)", + }, + { + value: "Непереносимость", + colorWarning: "var(--border-red-color)", + }, + ], + }, }, ]; diff --git a/src/store/modules/medicalCard.js b/src/store/modules/medicalCard.js index e619fe3..8b1261e 100644 --- a/src/store/modules/medicalCard.js +++ b/src/store/modules/medicalCard.js @@ -131,6 +131,16 @@ const state = () => ({ hygieneIndex: 2, KPUIndex: 3, }, + protocolThermometry: { + cold: { + temperature: 22, + result: "Нет реакции", + }, + heat: { + temperature: 50, + result: "Повышенная чувствительность", + }, + }, }); const getters = {