Merge branch 'ASTRA-72' into 'master'
[WIP] Добавил карточку с первичным осмотром и тэгами See merge request andrusyakka/urban-couscous!343
This commit is contained in:
@@ -1,42 +1,127 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.protocols-wrapper.h-full.flex.flex-col.gap-y-2
|
.protocols-wrapper.h-full.flex.flex-col.gap-y-2
|
||||||
.protocol.flex.justify-between.p-6
|
.flex.font-bold.text-6xl.items-center.h-full.justify-center(
|
||||||
.flex.font-bold.text-6xl Первичный осмотр 2024
|
v-if="!inspection"
|
||||||
.flex.gap-x-4
|
:style="{color: 'var(--font-grey-color)'}"
|
||||||
.icon.flex.rounded.w-10.h-10.items-center.justify-center
|
) Выберите осмотр
|
||||||
q-icon(
|
.flex.flex-col.gap-y-2(v-else)
|
||||||
name="print",
|
.protocol.flex.justify-between.p-6(v-for="elem in list")
|
||||||
size="20px",
|
.flex.font-bold.text-6xl {{elem.label}}
|
||||||
style="color: var(--font-grey-color)"
|
.flex.gap-x-4
|
||||||
)
|
.icon.flex.rounded.w-10.h-10.items-center.justify-center
|
||||||
.icon.flex.rounded.w-10.h-10.items-center.justify-center
|
q-icon(
|
||||||
q-icon(
|
name="print",
|
||||||
name="app:basket",
|
size="20px",
|
||||||
size="20px",
|
style="color: var(--font-grey-color)"
|
||||||
style="color: var(--font-grey-color)"
|
)
|
||||||
)
|
.icon.flex.rounded.w-10.h-10.items-center.justify-center
|
||||||
//- .protocol-body
|
q-icon(
|
||||||
.protocol.flex.justify-between.p-6
|
name="app:basket",
|
||||||
.flex.h-fit.w-fit.gap-2
|
size="20px",
|
||||||
base-button.text-base.font-semibold(outlined, :size="40") Отменить
|
style="color: var(--font-grey-color)"
|
||||||
base-button.text-base.font-semibold(:size="40") Сохранить
|
)
|
||||||
.flex.items-center.gap-x-3(:style="{color: 'var(--font-grey-color)'}")
|
.protocol-body.flex.flex-col.p-6(v-for="item in list[0].data")
|
||||||
.flex.font-semibold.text-7xl 0%
|
.header.flex.justify-between.items-center
|
||||||
.flex.font-medium.text-smm.w-20 заполнение осмотра
|
.flex.font-bold.text-xm {{item.name}}
|
||||||
|
.flex.items-center.h-5(:style="{color: 'var(--btn-blue-color)'}")
|
||||||
|
q-btn(flat, no-caps)
|
||||||
|
q-icon(left, name="app:plus", size="10px")
|
||||||
|
span.text-smm.font-medium Создать шаблон
|
||||||
|
.flex.gap-x-4(:style="{height: '300px'}")
|
||||||
|
.textarea.flex.flex-col.gap-y-1
|
||||||
|
.tag-wrap.flex.gap-x-1.gap-y-1
|
||||||
|
.tag.flex.items-center.px-3.cursor-pointer(v-for="tag in item.tags") {{tag.label}}
|
||||||
|
base-input.px-3(type="textarea", autogrow, borderless placeholder="Введите жалобу...")
|
||||||
|
.filter.flex
|
||||||
|
.flex.gap-x-2
|
||||||
|
base-input(
|
||||||
|
placeholder="Поиск",
|
||||||
|
outlined,
|
||||||
|
:width="232",
|
||||||
|
iconLeft
|
||||||
|
)
|
||||||
|
q-icon(
|
||||||
|
name="app:icon-search",
|
||||||
|
size="20px",
|
||||||
|
style="color: var(--font-grey-color)"
|
||||||
|
)
|
||||||
|
.button
|
||||||
|
q-btn(
|
||||||
|
icon="filter_alt"
|
||||||
|
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
|
||||||
|
padding="0"
|
||||||
|
)
|
||||||
|
.button
|
||||||
|
q-btn(
|
||||||
|
icon="app:sort-number"
|
||||||
|
:style="{width: '40px', height: '40px', color: 'var(--font-grey-color)'}",
|
||||||
|
padding="0"
|
||||||
|
)
|
||||||
|
.protocol.flex.justify-between.p-6
|
||||||
|
.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 BaseButton from "@/components/base/BaseButton.vue";
|
import BaseButton from "@/components/base/BaseButton.vue";
|
||||||
|
import BaseInput from "@/components/base/BaseInput.vue";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MedicalProtocolsInspection",
|
name: "MedicalProtocolsInspection",
|
||||||
components: { BaseButton },
|
components: { BaseButton, BaseInput },
|
||||||
|
props: { inspection: Boolean },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
list: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
label: "Первичный осмотр 2023 года",
|
||||||
|
data: [
|
||||||
|
{
|
||||||
|
id: 1,
|
||||||
|
name: "Жалобы",
|
||||||
|
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: 2,
|
||||||
|
name: "Алергологический анамнез",
|
||||||
|
tags: [],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 3,
|
||||||
|
name: "Принимаемые лекарственные препараты",
|
||||||
|
tags: [],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
|
};
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="sass" scoped>
|
<style lang="sass" scoped>
|
||||||
.protocols-wrapper
|
.protocols-wrapper
|
||||||
width: 89.2%
|
flex: 1
|
||||||
|
overflow-y: auto
|
||||||
|
&::-webkit-scrollbar
|
||||||
|
width: 0
|
||||||
|
|
||||||
.protocol
|
.protocol
|
||||||
background: var(--default-white)
|
background: var(--default-white)
|
||||||
@@ -46,4 +131,40 @@ export default {
|
|||||||
|
|
||||||
.icon
|
.icon
|
||||||
background: var(--bg-light-grey)
|
background: var(--bg-light-grey)
|
||||||
|
|
||||||
|
.protocol-body
|
||||||
|
min-height: 394px
|
||||||
|
background: var(--default-white)
|
||||||
|
border-radius: 4px
|
||||||
|
row-gap: 26px
|
||||||
|
|
||||||
|
.tag-wrap
|
||||||
|
flex-wrap: wrap !important
|
||||||
|
|
||||||
|
.button
|
||||||
|
display: flex
|
||||||
|
align-items: center
|
||||||
|
width: 40px
|
||||||
|
height: 40px
|
||||||
|
justify-content: center
|
||||||
|
cursor: pointer
|
||||||
|
border-radius: 4px
|
||||||
|
background: var(--bg-light-grey)
|
||||||
|
|
||||||
|
.tag
|
||||||
|
height: 32px
|
||||||
|
background: var(--bg-light-grey)
|
||||||
|
border-radius: 4px
|
||||||
|
|
||||||
|
.textarea
|
||||||
|
width: 800px
|
||||||
|
padding: 4px
|
||||||
|
border: 1px solid var(--border-light-grey-color)
|
||||||
|
border-radius: 4px
|
||||||
|
|
||||||
|
.filter
|
||||||
|
border: 1px solid var(--border-light-grey-color)
|
||||||
|
border-radius: 4px
|
||||||
|
padding: 16px 16px 0
|
||||||
|
width: 360px
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
.flex.py-4.w-full.color-grey.text-base.justify-center
|
.flex.py-4.w-full.color-grey.text-base.justify-center
|
||||||
span.opacity-50 Осмотров: 5
|
span.opacity-50 Осмотров: 5
|
||||||
.flex.gap-y-2
|
.flex.gap-y-2
|
||||||
.w-full.border.rounded.border-grey.p-4
|
.w-full.border.rounded.border-grey.p-4(@click="openInspection")
|
||||||
.flex.justify-between.mb-7
|
.flex.justify-between.mb-7
|
||||||
.flex.flex-col.gap-y-1
|
.flex.flex-col.gap-y-1
|
||||||
span.text-xl.font-bold.color-blue.line-height 2023 г.
|
span.text-xl.font-bold.color-blue.line-height 2023 г.
|
||||||
@@ -42,6 +42,7 @@ import BaseSelect from "@/components/base/BaseSelect.vue";
|
|||||||
export default {
|
export default {
|
||||||
name: "MedicalProtocolsList",
|
name: "MedicalProtocolsList",
|
||||||
components: { BaseSelect },
|
components: { BaseSelect },
|
||||||
|
props: { openInspection: Function },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
sorting: false,
|
sorting: false,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
.wrapper.flex.gap-x-2
|
.wrapper.flex.gap-x-2
|
||||||
medical-protocols-list
|
medical-protocols-list(:open-inspection="openInspection")
|
||||||
medical-protocols-inspection
|
medical-protocols-inspection(:inspection="inspection")
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -10,6 +10,16 @@ import MedicalProtocolsInspection from "@/pages/newMedicalCard/components/Medica
|
|||||||
export default {
|
export default {
|
||||||
name: "MedicalProtocolsWrapper",
|
name: "MedicalProtocolsWrapper",
|
||||||
components: { MedicalProtocolsList, MedicalProtocolsInspection },
|
components: { MedicalProtocolsList, MedicalProtocolsInspection },
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
inspection: false,
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
openInspection() {
|
||||||
|
this.inspection = !this.inspection;
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user