[WIP] Добавил компонент данных

This commit is contained in:
megavrilinvv
2023-05-12 13:55:44 +03:00
parent 601af6dbf8
commit 317e8c80fe
3 changed files with 46 additions and 4 deletions

View File

@@ -0,0 +1,40 @@
<template lang="pug">
medical-form-wrapper
</template>
<script>
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
export default {
name: "MedicalFormData",
components: { MedicalFormWrapper },
data() {
return {
list: {
title: "Данные обследования",
change: false,
tags: [
{ id: 1, label: "Боль при приеме сладкой пищи" },
{ id: 2, label: "Жжение языка" },
{ id: 3, label: "Кровоточивость десен" },
{ id: 4, label: "Лечение у ортодонта не проводилось" },
{ id: 5, label: "Ранее зубы лечили в ЛПУ" },
{ id: 6, label: "Удаление зуба" },
],
complaints: [
{ id: 1, label: "Ранее зубы лечили в ЛПУ" },
{ id: 2, label: "Жжение языка" },
{ id: 3, label: "Кровоточивость десен" },
{ id: 4, label: "Лечение у ортодонта не проводилось" },
{ id: 5, label: "Уныние зуба" },
{ id: 6, label: "Боль при приеме сладкой пищи" },
{ id: 7, label: "Удаление зуба" },
{ id: 2, label: "Жжение языка" },
],
},
};
},
};
</script>
<style lang="sass" scoped></style>

View File

@@ -55,7 +55,7 @@ import BaseInput from "@/components/base/BaseInput.vue";
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue"; import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
export default { export default {
name: "MedicalFormTagWrapper", name: "MedicalFormTag",
components: { BaseButton, BaseInput, MedicalFormWrapper }, components: { BaseButton, BaseInput, MedicalFormWrapper },
props: { props: {
list: Array, list: Array,

View File

@@ -22,7 +22,7 @@
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}", :style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
padding="0" padding="0"
) )
medical-form-tag-wrapper( medical-form-tag(
v-if="inspection || fillInspection", v-if="inspection || fillInspection",
:list="list", :list="list",
:inspection="inspection", :inspection="inspection",
@@ -42,7 +42,8 @@
</template> </template>
<script> <script>
import MedicalFormTagWrapper from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTagWrapper.vue"; import MedicalFormTag from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormTag.vue";
import MedicalFormData from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/MedicalFormData.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 IndexForm from "@/pages/newMedicalCard/components/InitialInspectionProtocol/Forms/IndexForm.vue";
import { protocolForms } from "@/pages/newMedicalCard/utils/medicalConfig.js"; import { protocolForms } from "@/pages/newMedicalCard/utils/medicalConfig.js";
@@ -50,7 +51,8 @@ import { protocolForms } from "@/pages/newMedicalCard/utils/medicalConfig.js";
export default { export default {
name: "MedicalProtocolsInspection", name: "MedicalProtocolsInspection",
components: { components: {
MedicalFormTagWrapper, MedicalFormTag,
MedicalFormData,
BaseButton, BaseButton,
IndexForm, IndexForm,
}, },