From b6fffcfddd84571b0efa6714b1db821804560f1e Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Mon, 26 Jun 2023 12:13:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D1=83=20=D0=9F=D1=80=D0=B5=D0=B4=D0=B2?= =?UTF-8?q?=D0=B0=D1=80=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=B4=D0=B8=D0=B0=D0=B3=D0=BD=D0=BE=D0=B7=D0=B0,=20?= =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D1=81=D1=82=D0=B8=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/ClinicalForm.vue | 23 ++++++++++++------- .../Forms/DiseaseForm.vue | 5 ++-- .../newMedicalCard/utils/medicalConfig.js | 9 ++++++++ src/store/modules/medicalCard.js | 1 + 4 files changed, 27 insertions(+), 11 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue index 4433299..4bd3d84 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue @@ -4,12 +4,13 @@ :is-edit="change", :open-edit="openCard", :cancel="closeCard", - :tag="fillInspection || change" + :tag="fillInspection || change", + template ) .protocol-body.flex.flex-col .flex.gap-x-4(:style="{height: change || fillInspection ? '300px' : ''}") .flex.flex-col.gap-y-1(:class="{'edit-form': change || fillInspection}") - .tag-wrap.flex.gap-x-1.gap-y-1(v-if="!fillInspection && selected") + .tag-wrap.flex.gap-x-1.gap-y-1 .tag.flex.items-center.px-3.text-smm( v-if="selected", v-for="item in selected", @@ -39,12 +40,7 @@ .field.flex.flex-col.overflow-y-scroll.gap-y-1(v-if="data.results.diseases") .letter.flex.items-center.font-bold.text-base Некоторые инфекционные и паразитарные болезни .checkbox.flex.gap-x-2.items-center(v-for="disease in data.results.diseases") - q-checkbox( - dense, - v-model="selected", - :val="disease", - :style="{border: 'none', width: '16px', height: '16px'}" - ) + q-checkbox(dense, v-model="selected", :val="disease") .name.font-semibold.text-smm {{ disease.label }} .name.font-medium.text-smm {{ disease.text }} @@ -72,6 +68,17 @@ export default { this.change = false; }, }, + watch: { + fillInspection: { + immediate: true, + handler(newVal) { + if (newVal) { + this.change = false; + this.selected = []; + } + }, + }, + }, }; diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue index df82f64..d09c042 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue @@ -9,7 +9,7 @@ ) .disease-body.flex .flex.flex-col.gap-y-17px.w-full(v-if="fillInspection || change") - .flex.-ml-2 + .flex.-ml-2(v-if="data.key === 'disease'") q-checkbox.text-smm.font-medium(v-model="data.results.checked" label="Без особенностей" size="36px") .textarea.flex.w-full base-input.w-full( @@ -78,10 +78,9 @@ export default { immediate: true, handler(newVal) { if (newVal) { - this.change = true; + this.change = false; this.modelValue = null; } else { - this.change = false; this.modelValue = this.state; } }, diff --git a/src/pages/newMedicalCard/utils/medicalConfig.js b/src/pages/newMedicalCard/utils/medicalConfig.js index 120d65d..32f9c25 100644 --- a/src/pages/newMedicalCard/utils/medicalConfig.js +++ b/src/pages/newMedicalCard/utils/medicalConfig.js @@ -1230,6 +1230,15 @@ export const protocolForms = [ if (roundedVal >= 6 && roundedVal <= 10) return "var(--border-red-color)"; }, }, + { + title: "Предварительный диагноз", + component: "DiseaseForm", + key: "preliminary", + state: "preliminary", + results: { + text: "Средний кариес 36-го зуба (II класс по Блэку)", + }, + }, { title: "План обследования", component: "MedicalFormTag", diff --git a/src/store/modules/medicalCard.js b/src/store/modules/medicalCard.js index 81b3d2b..529083c 100644 --- a/src/store/modules/medicalCard.js +++ b/src/store/modules/medicalCard.js @@ -331,6 +331,7 @@ const getters = { KPUIndex: 6.1, disease: "Пациенту 20 лет. Неделю назад металлокерамический мостовидный протез с опорами на зубы 4.3 и 4.6 зафиксирован на временный цемент. Во время ортопедического лечения интактные зубы 4.3 и 4.6 были препарированы под местной анестезией, после препарирования зубы были защищены временным пластмассовым мостовидным протезом, боли в это время пациент не ощущал. Ноющая боль появилась на второй день после фиксации металлокерамического зубного протеза на временный цемент, интенсивность боли постепенно нарастает, усиливается от холодного. Пациент точно указывает, что боль локализуется в области зуба 4.3", + preliminary: "Средний кариес 36-го зуба (II класс по Блэку)", thermometry: { cold: { value: 22,