WIP Обновила конфиг
This commit is contained in:
@@ -0,0 +1,25 @@
|
|||||||
|
<template lang="pug">
|
||||||
|
medical-form-wrapper(
|
||||||
|
:title="data.title",
|
||||||
|
:is-edit="false",
|
||||||
|
)
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import BaseButton from "@/components/base/BaseButton.vue";
|
||||||
|
import BaseInput from "@/components/base/BaseInput.vue";
|
||||||
|
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "IndexForm",
|
||||||
|
components: { BaseButton, BaseInput, MedicalFormWrapper },
|
||||||
|
props: {
|
||||||
|
data: Object,
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="sass" scoped></style>
|
||||||
@@ -30,6 +30,8 @@
|
|||||||
:open-card="openCard",
|
:open-card="openCard",
|
||||||
:close-card="closeCard"
|
:close-card="closeCard"
|
||||||
)
|
)
|
||||||
|
div(v-for="form in protocolForms", :key="form.key")
|
||||||
|
component(v-bind:is="form.component", :data="form")
|
||||||
.protocol.flex.justify-between.p-6(v-if="fillInspection")
|
.protocol.flex.justify-between.p-6(v-if="fillInspection")
|
||||||
.flex.h-fit.w-fit.gap-2
|
.flex.h-fit.w-fit.gap-2
|
||||||
base-button.text-base.font-semibold(outlined, :size="40") Отменить
|
base-button.text-base.font-semibold(outlined, :size="40") Отменить
|
||||||
@@ -42,16 +44,20 @@
|
|||||||
<script>
|
<script>
|
||||||
import MedicalFormTagWrapper from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTagWrapper.vue";
|
import MedicalFormTagWrapper from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTagWrapper.vue";
|
||||||
import BaseButton from "@/components/base/BaseButton.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";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MedicalProtocolsInspection",
|
name: "MedicalProtocolsInspection",
|
||||||
components: {
|
components: {
|
||||||
MedicalFormTagWrapper,
|
MedicalFormTagWrapper,
|
||||||
BaseButton,
|
BaseButton,
|
||||||
|
IndexForm,
|
||||||
},
|
},
|
||||||
props: { inspection: Boolean, fillInspection: Boolean },
|
props: { inspection: Boolean, fillInspection: Boolean },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
protocolForms: protocolForms,
|
||||||
list: [
|
list: [
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
|
|||||||
@@ -561,3 +561,24 @@ export const mapEventStatus = {
|
|||||||
color: "#9294A7",
|
color: "#9294A7",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const protocolForms = [
|
||||||
|
{
|
||||||
|
title: "Прикус",
|
||||||
|
component: "IndexForm",
|
||||||
|
key: "bite",
|
||||||
|
state: "bite",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Индекс гигиены",
|
||||||
|
component: "IndexForm",
|
||||||
|
key: "hygieneIndex",
|
||||||
|
state: "hygieneIndex",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "Индекс КПУ",
|
||||||
|
component: "IndexForm",
|
||||||
|
key: "KPUIndex",
|
||||||
|
state: "KPUIndex",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user