From d232e71f0db126a83d268295069212496c85024a Mon Sep 17 00:00:00 2001 From: DwCay Date: Thu, 18 May 2023 17:26:51 +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=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=83=D1=81=D1=82=D1=8B=D1=85=20=D0=B8=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=9F=D0=B5=D1=80=D0=B2?= =?UTF-8?q?=D0=B8=D1=87=D0=BD=D0=BE=D0=B3=D0=BE=20=D0=BE=D1=81=D0=BC=D0=BE?= =?UTF-8?q?=D1=82=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/IndexForm.vue | 19 ++-- .../Forms/MainFactorsForm.vue | 33 ++++++- .../MedicalProtocolsWrapper.vue | 10 +++ src/store/modules/medicalCard.js | 90 ++++++++++++++----- 4 files changed, 120 insertions(+), 32 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue index e7e7c24..2cd4508 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue @@ -108,14 +108,17 @@ export default { if (!this.fillInspection) this.modelValue = value; }, }, - fillInspection(value) { - if (value) { - this.isEdit = true; - this.modelValue = null; - } else { - this.isEdit = false; - this.modelValue = this.state; - } + fillInspection: { + immediate: true, + handler(value) { + if (value) { + this.isEdit = true; + this.modelValue = null; + } else { + this.isEdit = false; + this.modelValue = this.state; + } + }, }, }, }; diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MainFactorsForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MainFactorsForm.vue index d8d4385..107e643 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MainFactorsForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MainFactorsForm.vue @@ -1,5 +1,11 @@