medcards list fixes
This commit is contained in:
@@ -40,7 +40,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
headerStyle(field) {
|
headerStyle(field) {
|
||||||
return {
|
return {
|
||||||
width: field.width,
|
...field,
|
||||||
"justify-content": field.title === "Do" ? "center" : "",
|
"justify-content": field.title === "Do" ? "center" : "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -8,22 +8,15 @@
|
|||||||
span.font-semibold.text-dark {{patientName}}
|
span.font-semibold.text-dark {{patientName}}
|
||||||
.field(:style="headerStyle(headerConfig[1])")
|
.field(:style="headerStyle(headerConfig[1])")
|
||||||
span.text-dark {{ convertDate(medcardInfo?.person?.birth_date) }} г.
|
span.text-dark {{ convertDate(medcardInfo?.person?.birth_date) }} г.
|
||||||
.field.gap-x-2(:style="headerStyle(headerConfig[2])")
|
.field(:style="headerStyle(headerConfig[2])")
|
||||||
.rounded-full.h-2.w-2(:style="{background: patientPriority?.color}")
|
|
||||||
span(:style="{color: patientPriority?.color}") {{ patientPriority?.text }}
|
|
||||||
.field(:style="headerStyle(headerConfig[3])")
|
|
||||||
.medcard-number.rounded.h-7.py-1.pl-3.pr-2.flex.items-center.justify-between.w-full.cursor-pointer(
|
.medcard-number.rounded.h-7.py-1.pl-3.pr-2.flex.items-center.justify-between.w-full.cursor-pointer(
|
||||||
@click="copyValue(medcardInfo?.number)"
|
@click="copyValue(medcardInfo?.number)"
|
||||||
)
|
)
|
||||||
span.text-dark.cursor-pointer {{ medcardInfo?.number }}
|
span.text-dark.cursor-pointer {{ medcardInfo?.number }}
|
||||||
q-icon.copy(size="18px", name="app:copy")
|
q-icon.copy(size="18px", name="app:copy")
|
||||||
.field(:style="headerStyle(headerConfig[4])")
|
.field(:style="headerStyle(headerConfig[3])")
|
||||||
span.text-dark {{ convertDate(medcardInfo?.created_at) }} г.
|
span.text-dark {{ convertDate(medcardInfo?.created_at) }} г.
|
||||||
.field.gap-x-3(:style="headerStyle(headerConfig[5])")
|
.field(:style="{...headerStyle(headerConfig[4])}")
|
||||||
.track.h-2.flex-1.rounded
|
|
||||||
.thumb.h-full.rounded(:style="thumbStyle")
|
|
||||||
span.grey-color {{ medcardInfo?.filling_percentage || 0 }}%
|
|
||||||
.field(:style="{...headerStyle(headerConfig[6])}")
|
|
||||||
q-icon.medcard.cursor-pointer(name="app:medcard", size="20px", @click="openMedicalCard")
|
q-icon.medcard.cursor-pointer(name="app:medcard", size="20px", @click="openMedicalCard")
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,24 @@
|
|||||||
export const searchListConfig = [
|
export const searchListConfig = [
|
||||||
{
|
{
|
||||||
title: "ФИО",
|
title: "ФИО",
|
||||||
width: "550px",
|
width: "100%",
|
||||||
|
minWidth: "350px",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Дата рождения",
|
title: "Дата рождения",
|
||||||
width: "220px",
|
minWidth: "220px",
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Приоритет",
|
|
||||||
width: "220px",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "№ медкарты",
|
title: "№ медкарты",
|
||||||
width: "280px",
|
minWidth: "280px",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Дата создания",
|
title: "Дата создания",
|
||||||
width: "215px",
|
minWidth: "215px",
|
||||||
},
|
|
||||||
{
|
|
||||||
title: "Процент заполнения",
|
|
||||||
width: "295px",
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Do",
|
title: "Do",
|
||||||
width: "60px",
|
minWidth: "60px",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
medical-form-wrapper(
|
medical-form-wrapper(
|
||||||
|
id="base"
|
||||||
title="Основные данные"
|
title="Основные данные"
|
||||||
:is-check-change="isCheckChange"
|
:is-check-change="isCheckChange"
|
||||||
:is-loading-data="isLoadingData"
|
:is-loading-data="isLoadingData"
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
medical-form-wrapper(
|
medical-form-wrapper(
|
||||||
|
id="contacts"
|
||||||
title="Контакты"
|
title="Контакты"
|
||||||
:is-check-change="isCheckChange"
|
:is-check-change="isCheckChange"
|
||||||
:is-loading-data="isLoadingData"
|
:is-loading-data="isLoadingData"
|
||||||
:is-edit="isEdit"
|
:is-edit="isEdit"
|
||||||
:save="saveChange"
|
:save="saveChange"
|
||||||
:cancel="cancelEdit"
|
:cancel="cancelEdit"
|
||||||
:open-edit="openEdit"
|
:open-edit="openEdit"
|
||||||
)
|
)
|
||||||
q-form.form-wrap.gap-24.w-full(ref="formContacts")
|
q-form.form-wrap.gap-24.w-full(ref="formContacts")
|
||||||
@@ -16,7 +17,7 @@
|
|||||||
.input-wrapper.items-center.flex.h-10.gap-10px
|
.input-wrapper.items-center.flex.h-10.gap-10px
|
||||||
.flex(v-if="key === 'networks'")
|
.flex(v-if="key === 'networks'")
|
||||||
.flex.rounded-full.cursor-pointer.items-center.gap-10px.py-1.pl-1.pr-2(
|
.flex.rounded-full.cursor-pointer.items-center.gap-10px.py-1.pl-1.pr-2(
|
||||||
v-if="data.id || data.filled"
|
v-if="data.id || data.filled"
|
||||||
@click="() => copyLinkNetwork(data.value)"
|
@click="() => copyLinkNetwork(data.value)"
|
||||||
style="background-color: var(--bg-light-grey)"
|
style="background-color: var(--bg-light-grey)"
|
||||||
)
|
)
|
||||||
@@ -47,7 +48,7 @@
|
|||||||
size="M"
|
size="M"
|
||||||
)
|
)
|
||||||
.delete-contact.icon-cancel.text-xxs.cursor-pointer(
|
.delete-contact.icon-cancel.text-xxs.cursor-pointer(
|
||||||
v-if="isEdit"
|
v-if="isEdit"
|
||||||
@click="() => deleteContact(key, index)"
|
@click="() => deleteContact(key, index)"
|
||||||
)
|
)
|
||||||
q-btn.ml-2px(
|
q-btn.ml-2px(
|
||||||
|
|||||||
@@ -1,12 +1,13 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
medical-form-wrapper(
|
medical-form-wrapper(
|
||||||
|
id="documents",
|
||||||
title="Документы",
|
title="Документы",
|
||||||
:is-check-change="isCheckChange",
|
:is-check-change="isCheckChange",
|
||||||
:is-edit="isEdit",
|
:is-edit="isEdit",
|
||||||
:cancel="cancelEdit",
|
:cancel="cancelEdit",
|
||||||
:open-edit="openEdit",
|
:open-edit="openEdit",
|
||||||
:save="saveChange"
|
:save="saveChange"
|
||||||
)
|
)
|
||||||
q-form.form-wrap.gap-24.w-full(ref="documentForm", :no-error-focus="true")
|
q-form.form-wrap.gap-24.w-full(ref="documentForm", :no-error-focus="true")
|
||||||
.data-section.flex.flex-col.gap-4(v-for="data in configData", :key="data.dataLabel")
|
.data-section.flex.flex-col.gap-4(v-for="data in configData", :key="data.dataLabel")
|
||||||
.font-semibold.text-sm.whitespace-nowrap {{data.dataLabel}}
|
.font-semibold.text-sm.whitespace-nowrap {{data.dataLabel}}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
<template lang="pug">
|
<template lang="pug">
|
||||||
medical-form-wrapper(
|
medical-form-wrapper(
|
||||||
|
id="insurance",
|
||||||
title="Страховка",
|
title="Страховка",
|
||||||
:is-loading-data="isLoadingData",
|
:is-loading-data="isLoadingData",
|
||||||
:is-check-change="isCheckChange",
|
:is-check-change="isCheckChange",
|
||||||
@@ -46,14 +47,14 @@
|
|||||||
base-upload-photo(
|
base-upload-photo(
|
||||||
:key="insurance.insuranceKey"
|
:key="insurance.insuranceKey"
|
||||||
v-model="insuranceData[photoId][field.key]"
|
v-model="insuranceData[photoId][field.key]"
|
||||||
:confirm-upload="confirmChangePhoto"
|
:confirm-upload="confirmChangePhoto"
|
||||||
)
|
)
|
||||||
.category.flex.h-10.relative.gap-x-2(v-else-if="field.type === 'select'")
|
.category.flex.h-10.relative.gap-x-2(v-else-if="field.type === 'select'")
|
||||||
.category-select.flex.items-center.change.px-4.rounded {{selectCategory(basic[insurance.insuranceKey][field.key])}}
|
.category-select.flex.items-center.change.px-4.rounded {{selectCategory(basic[insurance.insuranceKey][field.key])}}
|
||||||
q-btn.change.flex.w-7.h-9.rounded-md(
|
q-btn.change.flex.w-7.h-9.rounded-md(
|
||||||
v-if="isEdit",
|
v-if="isEdit",
|
||||||
@click="openModalCategories",
|
@click="openModalCategories",
|
||||||
dense,
|
dense,
|
||||||
padding="8px"
|
padding="8px"
|
||||||
)
|
)
|
||||||
q-icon.icon(name="app:folder", size="24px")
|
q-icon.icon(name="app:folder", size="24px")
|
||||||
@@ -75,7 +76,7 @@
|
|||||||
v-if="basic?.benefit[insurance?.discount]",
|
v-if="basic?.benefit[insurance?.discount]",
|
||||||
:style="{color: 'var(--font-grey-color)'}"
|
:style="{color: 'var(--font-grey-color)'}"
|
||||||
)
|
)
|
||||||
span Процент скидки:
|
span Процент скидки:
|
||||||
span(
|
span(
|
||||||
:style="{color: 'var(--font-dark-blue-color)'}"
|
:style="{color: 'var(--font-dark-blue-color)'}"
|
||||||
) {{"\xa0" + basic?.benefit[insurance?.discount] + "%"}}
|
) {{"\xa0" + basic?.benefit[insurance?.discount] + "%"}}
|
||||||
|
|||||||
Reference in New Issue
Block a user