[WIP] Добавил форму данных обследования

This commit is contained in:
megavrilinvv
2023-05-12 18:36:36 +03:00
parent 317e8c80fe
commit c192f777d1
6 changed files with 330 additions and 49 deletions

View File

@@ -17,7 +17,7 @@
)
.button
q-btn(
icon="app:basket",
icon="app:basket",
size="20px",
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
padding="0"
@@ -25,13 +25,12 @@
medical-form-tag(
v-if="inspection || fillInspection",
:list="list",
:inspection="inspection",
:fill-inspection="fillInspection"
:open-card="openCard",
:close-card="closeCard"
)
div(v-for="form in protocolForms", :key="form.key")
component(v-bind:is="form.component", :data="form")
component(v-bind:is="form.component", :data="form" :fill-inspection="fillInspection")
.protocol.flex.justify-between.p-6(v-if="fillInspection")
.flex.h-fit.w-fit.gap-2
base-button.text-base.font-semibold(outlined, :size="40") Отменить
@@ -43,7 +42,7 @@
<script>
import MedicalFormTag from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue";
import MedicalFormData from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.vue";
import DataForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/DataForm.vue";
import BaseButton from "@/components/base/BaseButton.vue";
import IndexForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue";
import { protocolForms } from "@/pages/newMedicalCard/utils/medicalConfig.js";
@@ -52,7 +51,7 @@ export default {
name: "MedicalProtocolsInspection",
components: {
MedicalFormTag,
MedicalFormData,
DataForm,
BaseButton,
IndexForm,
},