From 0c557d185cb6b99580587db32139a16675eeda81 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Thu, 18 May 2023 13:48:15 +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=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B5=20=D0=B2=20=D0=BA?= =?UTF-8?q?=D0=BE=D0=BD=D1=84=D0=B8=D0=B3,=20=D0=BF=D0=B5=D1=80=D0=B5?= =?UTF-8?q?=D0=BF=D0=B8=D1=81=D0=B0=D0=BB=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE?= =?UTF-8?q?=D0=BD=D0=B5=D0=BD=D1=82=20=D1=81=20=D0=BD=D0=B0=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=BE=D0=BC=20=D1=82=D1=8D=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/DataForm.vue | 8 +++ .../Forms/DiseaseForm.vue | 10 +++- .../Forms/MedicalFormTag.vue | 51 ++++++++++-------- .../MedicalProtocolsInspection.vue | 54 +------------------ .../newMedicalCard/utils/medicalConfig.js | 53 ++++++++++++++++++ 5 files changed, 100 insertions(+), 76 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue index 192d0b4..a2cde87 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue @@ -159,6 +159,14 @@ export default { }); }, }, + watch: { + fillInspection: { + immediate: true, + handler(newVal) { + if (newVal) this.change = false; + }, + }, + }, }; diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue index 0c859a3..fba6c28 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DiseaseForm.vue @@ -4,6 +4,7 @@ :is-edit="change", :open-edit="openCard", :cancel="closeCard", + :tag="fillInspection || change" ) .disease-body.flex .flex.flex-col.gap-y-17px(v-if="fillInspection || change") @@ -31,7 +32,6 @@ export default { props: { data: Object, fillInspection: Boolean, - inspection: Boolean, }, data() { return { change: false }; @@ -44,6 +44,14 @@ export default { this.change = false; }, }, + watch: { + fillInspection: { + immediate: true, + handler(newVal) { + if (newVal) this.change = false; + }, + }, + }, }; diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue index ff7a6cb..fc6fd72 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue @@ -1,21 +1,19 @@