Merge branch 'ASTRA-80' into 'master'

[WIP] Разделил компоненты

See merge request andrusyakka/urban-couscous!357
This commit is contained in:
Vasiliy Gavrilin
2023-05-12 09:39:10 +00:00
2 changed files with 44 additions and 39 deletions

View File

@@ -1,21 +1,4 @@
<template lang="pug"> <template lang="pug">
.protocol.flex.justify-between.p-6(v-for="elem in list")
.flex.font-bold.text-6xl {{elem.label}}
.flex.gap-x-4
.button
q-btn(
icon="print",
size="20px",
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
padding="0"
)
.button
q-btn(
icon="app:basket",
size="20px",
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
padding="0"
)
medical-form-wrapper( medical-form-wrapper(
v-for="(item, index) in list[0].data", v-for="(item, index) in list[0].data",
:key="item.id" :key="item.id"
@@ -34,12 +17,7 @@
base-input.px-3(v-if="item.change || fillInspection", type="textarea", autogrow, borderless, placeholder="Введите жалобу...") base-input.px-3(v-if="item.change || fillInspection", type="textarea", autogrow, borderless, placeholder="Введите жалобу...")
.filter.flex.flex-col.gap-y-4(v-if="item.change || fillInspection") .filter.flex.flex-col.gap-y-4(v-if="item.change || fillInspection")
.flex.gap-x-2 .flex.gap-x-2
base-input( base-input(placeholder="Поиск", outlined, :width="232", iconLeft)
placeholder="Поиск",
outlined,
:width="232",
iconLeft
)
q-icon( q-icon(
name="app:icon-search", name="app:icon-search",
size="20px", size="20px",
@@ -58,9 +36,7 @@
padding="0" padding="0"
) )
.field.flex.flex-col.overflow-y-scroll(v-if="item.complaints") .field.flex.flex-col.overflow-y-scroll(v-if="item.complaints")
.checkbox.flex.flex-col( .checkbox.flex.flex-col(v-for="complaint in textSorting(item.complaints)")
v-for="complaint in textSorting(item.complaints)",
)
.letter.flex.items-center.font-bold.justify-center {{ complaint.sym }} .letter.flex.items-center.font-bold.justify-center {{ complaint.sym }}
.line.flex.gap-x-4.h-9.items-center(v-for="name in complaint?.array") .line.flex.gap-x-4.h-9.items-center(v-for="name in complaint?.array")
q-checkbox( q-checkbox(
@@ -71,13 +47,6 @@
) )
.name.flex.items-center.font-medium.text-smm {{ name?.label }} .name.flex.items-center.font-medium.text-smm {{ name?.label }}
.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") Отменить
base-button.text-base.font-semibold(:size="40") Сохранить
.flex.items-center.gap-x-3(:style="{color: 'var(--font-grey-color)'}")
.flex.font-semibold.text-7xl 0%
.flex.font-medium.text-smm.w-20 заполнение осмотра
</template> </template>
<script> <script>
@@ -154,12 +123,6 @@ export default {
</script> </script>
<style lang="sass" scoped> <style lang="sass" scoped>
.protocol
background: var(--default-white)
width: 100%
height: 80px
border-radius: 4px
.protocol-body .protocol-body
background: var(--default-white) background: var(--default-white)
border-radius: 4px border-radius: 4px

View File

@@ -5,6 +5,23 @@
:style="{color: 'var(--font-grey-color)'}" :style="{color: 'var(--font-grey-color)'}"
) Выберите осмотр ) Выберите осмотр
.flex.flex-col.gap-y-2(v-else) .flex.flex-col.gap-y-2(v-else)
.protocol.flex.justify-between.p-6(v-for="elem in list")
.flex.font-bold.text-6xl {{elem.label}}
.flex.gap-x-4
.button
q-btn(
icon="print",
size="20px",
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
padding="0"
)
.button
q-btn(
icon="app:basket",
size="20px",
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
padding="0"
)
medical-form-tag-wrapper( medical-form-tag-wrapper(
v-if="inspection || fillInspection", v-if="inspection || fillInspection",
:list="list", :list="list",
@@ -13,15 +30,24 @@
:open-card="openCard", :open-card="openCard",
:close-card="closeCard" :close-card="closeCard"
) )
.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") Отменить
base-button.text-base.font-semibold(:size="40") Сохранить
.flex.items-center.gap-x-3(:style="{color: 'var(--font-grey-color)'}")
.flex.font-semibold.text-7xl 0%
.flex.font-medium.text-smm.w-20 заполнение осмотра
</template> </template>
<script> <script>
import MedicalFormTagWrapper from "@/pages/newMedicalCard/components/MedicalFormTagWrapper.vue"; import MedicalFormTagWrapper from "@/pages/newMedicalCard/components/MedicalFormTagWrapper.vue";
import BaseButton from "@/components/base/BaseButton.vue";
export default { export default {
name: "MedicalProtocolsInspection", name: "MedicalProtocolsInspection",
components: { components: {
MedicalFormTagWrapper, MedicalFormTagWrapper,
BaseButton,
}, },
props: { inspection: Boolean, fillInspection: Boolean }, props: { inspection: Boolean, fillInspection: Boolean },
data() { data() {
@@ -88,4 +114,20 @@ export default {
overflow-y: auto overflow-y: auto
&::-webkit-scrollbar &::-webkit-scrollbar
width: 0 width: 0
.protocol
background: var(--default-white)
width: 100%
height: 80px
border-radius: 4px
.button
display: flex
align-items: center
width: 40px
height: 40px
justify-content: center
cursor: pointer
border-radius: 4px
background: var(--bg-light-grey)
</style> </style>