From 98342521a6b9da53e882ea14bb54b5f40f4da271 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Mon, 22 May 2023 11:34:12 +0300 Subject: [PATCH] =?UTF-8?q?[WIP]=20=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B1=D0=B0?= =?UTF-8?q?=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InitialInspectionProtocol/Forms/DataForm.vue | 10 +++++++++- .../InitialInspectionProtocol/Forms/DiseaseForm.vue | 3 ++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue index a4985e8..185e181 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue @@ -188,7 +188,10 @@ export default { fillInspection: { immediate: true, handler(newVal) { - if (newVal) this.change = false; + if (newVal) { + this.change = false; + this.data.results.files.forEach((e) => (e.data = [])); + } }, }, }, @@ -201,6 +204,11 @@ export default {