[WIP] Добавил форму Развитие настоящего заболевания, перенес данные в стор, фикс стилей

This commit is contained in:
megavrilinvv
2023-05-17 16:49:25 +03:00
parent 495310f39e
commit 3fbe0dd6d8
5 changed files with 156 additions and 80 deletions

View File

@@ -0,0 +1,63 @@
<template lang="pug">
medical-form-wrapper(
:title="data.title",
:is-edit="change",
:open-edit="openCard",
:cancel="closeCard",
)
.disease-body.flex
.flex.flex-col.gap-y-17px(v-if="fillInspection || change")
.flex.-ml-2
q-checkbox.text-smm.font-medium(v-model="data.results.checked" label="Без особенностей" size="36px")
.textarea.flex
base-input(
v-model="data.results.text",
type="textarea",
outlined,
resize="vertical",
:width="1176",
placeholder="Введите данные..."
)
.font-medium.text-smm(v-else) {{data.results?.text}}
</template>
<script>
import MedicalFormWrapper from "@/pages/newMedicalCard/components/MedicalFormWrapper.vue";
import BaseInput from "@/components/base/BaseInput.vue";
export default {
name: "DiseaseForm",
components: { MedicalFormWrapper, BaseInput },
props: {
data: Object,
fillInspection: Boolean,
inspection: Boolean,
},
data() {
return { change: false };
},
methods: {
openCard() {
this.change = true;
},
closeCard() {
this.change = false;
},
},
};
</script>
<style lang="sass" scoped>
.disease-body
background: var(--default-white)
border-radius: 4px
color: var(--font-dark-blue-color)
.q-checkbox :deep(.q-checkbox__bg)
border-radius: 4px
border: 1.5px solid var(--font-grey-color)
.textarea
box-sizing: border-box
min-height: 130px
</style>