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 @@