From 0e74ac9e1a8db8de58438079b1c4a23ba0ad5c73 Mon Sep 17 00:00:00 2001 From: megavrilinvv Date: Fri, 30 Jun 2023 12:48:42 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=B1=D0=B0=D0=B3?= =?UTF-8?q?=D0=B0=20=D1=81=20=D0=BE=D1=82=D0=BE=D0=B1=D1=80=D0=B0=D0=B6?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC=20=D0=B8=D0=BD=D0=B4=D0=B5=D0=BA?= =?UTF-8?q?=D1=81=D0=BE=D0=B2=20=D0=B8=20ASTRA-132?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Forms/ClinicalForm.vue | 20 +++++++++++++---- .../Forms/IndexForm.vue | 2 +- .../newMedicalCard/utils/medicalConfig.js | 22 +++++++------------ src/store/modules/medicalCard.js | 2 +- 4 files changed, 26 insertions(+), 20 deletions(-) diff --git a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue index aeac2ac..42379af 100644 --- a/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue +++ b/src/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/ClinicalForm.vue @@ -13,10 +13,10 @@ .tag-wrap.flex.gap-x-1.gap-y-1 .tag.flex.items-center.px-3.text-smm( v-if="protocolData[data.state]", - v-for="item in protocolData[data.state]", + v-for="item in findData(data.results.diseases)", :key="item.id" :class="{'pointer': change || fillInspection}" - ) {{item.label + " - " + item.text}} + ) {{item.label + " - " + item.value}} .filter.flex.flex-col.gap-y-4.relative(v-if="change || fillInspection") .flex.gap-x-2 base-input(placeholder="Поиск", outlined, :width="452", iconLeft) @@ -40,9 +40,9 @@ .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="protocolData[data.state]", :val="disease") + q-checkbox(dense, v-model="protocolData[data.state]", :val="disease.label") .name.font-semibold.text-smm {{ disease.label }} - .name.font-medium.text-smm {{ disease.text }} + .name.font-medium.text-smm {{ disease.value }}