Merge branch 'ASTRA-69' into 'master'
Resolve ASTRA-69 See merge request andrusyakka/urban-couscous!351
This commit is contained in:
@@ -219,13 +219,13 @@ export default {
|
|||||||
width: 302px
|
width: 302px
|
||||||
.form-wrap
|
.form-wrap
|
||||||
display: grid
|
display: grid
|
||||||
grid-template-columns: repeat(3, auto)
|
grid-template-columns: repeat(3, 1fr)
|
||||||
grid-template-rows: repeat(1, auto)
|
grid-template-rows: repeat(1, auto)
|
||||||
@media(max-width: 1900px)
|
@media(max-width: 1900px)
|
||||||
grid-template-columns: repeat(2, auto)
|
grid-template-columns: repeat(2, 1fr)
|
||||||
grid-template-rows: repeat(2, auto)
|
grid-template-rows: repeat(2, auto)
|
||||||
@media(max-width: 1320px)
|
@media(max-width: 1320px)
|
||||||
grid-template-columns: repeat(1, auto)
|
grid-template-columns: repeat(1, 1fr)
|
||||||
grid-template-rows: repeat(3, auto)
|
grid-template-rows: repeat(3, auto)
|
||||||
.network-field
|
.network-field
|
||||||
background-color: var(--bg-light-grey)
|
background-color: var(--bg-light-grey)
|
||||||
|
|||||||
@@ -3,16 +3,23 @@
|
|||||||
.header.w-full.h-fit.flex.justify-between.px-6.pt-4.pb-3.text-sm.font-medium
|
.header.w-full.h-fit.flex.justify-between.px-6.pt-4.pb-3.text-sm.font-medium
|
||||||
span Записи
|
span Записи
|
||||||
span {{ events.length }}
|
span {{ events.length }}
|
||||||
.w-full.h-full.py-10px.pl-6.pr-2
|
.w-full.h-full.py-10px.pl-6.pr-2.items-center
|
||||||
.events.flex.flex-col.pr-3.overflow-y-auto
|
.events.flex.flex-col.pr-3.overflow-y-auto(v-if="events.length")
|
||||||
.event.flex.justify-between.items-start.py-10px(v-for="(event, index) in getEventsList")
|
.event.flex.justify-between.items-start.py-10px.w-full.gap-x-2(v-for="(event, index) in getEventsList")
|
||||||
.flex.flex-col.gap-y-6px
|
.flex.flex-col.gap-y-6px
|
||||||
span.date.font-bold.whitespace-nowrap {{ event.date }}
|
span.date.font-bold.whitespace-nowrap {{ event.date }}
|
||||||
.time.flex.items-center.gap-x-6px
|
.time.flex.items-center.gap-x-6px
|
||||||
q-icon(name="app:time" size="13px")
|
q-icon(name="app:time" size="13px")
|
||||||
span.font-medium.text-smm.whitespace-nowrap {{ `${event.startTime} - ${event.endTime}` }}
|
span.font-medium.text-smm.whitespace-nowrap {{ `${event.startTime} - ${event.endTime}` }}
|
||||||
.flex.gap-x-1.text-smm.font-medium
|
.flex.gap-x-1.text-smm.font-medium.items-center
|
||||||
span {{ event.status }}
|
q-icon(
|
||||||
|
:name="event.status === 'PLANNED' ? 'radio_button_unchecked' : 'radio_button_checked'"
|
||||||
|
:style="{'color': statusMap[event.status].color}"
|
||||||
|
size="13px"
|
||||||
|
)
|
||||||
|
span.whitespace-nowrap(:style="{'color': statusMap[event.status].color}") {{ statusMap[event.status].title }}
|
||||||
|
.flex.items-center.justify-center.w-full(v-else :style={'height': '124px'})
|
||||||
|
span.text-lg.font-medium(:style="{'color': 'var(--font-grey-color)'}") Нет записей
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@@ -23,6 +30,11 @@ import { mapEventStatus } from "@/pages/newMedicalCard/utils/medicalConfig";
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "MedicalRecords",
|
name: "MedicalRecords",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
statusMap: mapEventStatus,
|
||||||
|
};
|
||||||
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
events: (state) => state.medical.events,
|
events: (state) => state.medical.events,
|
||||||
@@ -33,13 +45,12 @@ export default {
|
|||||||
const start = moment(el.event.start);
|
const start = moment(el.event.start);
|
||||||
const end = moment(el.event.end);
|
const end = moment(el.event.end);
|
||||||
return {
|
return {
|
||||||
...el,
|
...el.event,
|
||||||
date: `${start.format("D")} ${getChangeMonth(
|
date: `${start.format("D")} ${getChangeMonth(
|
||||||
start.format("MMMM")
|
start.format("MMMM")
|
||||||
)} (${start.format("dd")})`,
|
)} (${start.format("dd")})`,
|
||||||
startTime: start.format("HH:mm"),
|
startTime: start.format("HH:mm"),
|
||||||
endTime: end.format("HH:mm"),
|
endTime: end.format("HH:mm"),
|
||||||
status: mapEventStatus[el.event.status],
|
|
||||||
};
|
};
|
||||||
}),
|
}),
|
||||||
];
|
];
|
||||||
@@ -52,12 +63,15 @@ export default {
|
|||||||
.wrapper
|
.wrapper
|
||||||
width: 16.8%
|
width: 16.8%
|
||||||
height: 18.7%
|
height: 18.7%
|
||||||
|
min-height: 190px
|
||||||
|
min-width: 275px
|
||||||
background-color: var(--default-white)
|
background-color: var(--default-white)
|
||||||
.header
|
.header
|
||||||
border-bottom: 1px solid var(--border-light-grey-color)
|
border-bottom: 1px solid var(--border-light-grey-color)
|
||||||
color: var(--font-grey-color)
|
color: var(--font-grey-color)
|
||||||
.events
|
.events
|
||||||
height: 124px
|
height: 124px
|
||||||
|
min-width: 245px
|
||||||
&::-webkit-scrollbar
|
&::-webkit-scrollbar
|
||||||
width: 4px
|
width: 4px
|
||||||
.event
|
.event
|
||||||
|
|||||||
@@ -544,8 +544,20 @@ export const documentForm = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
export const mapEventStatus = {
|
export const mapEventStatus = {
|
||||||
COMPLETED: "Принят",
|
COMPLETED: {
|
||||||
CANCELED: "Отказ",
|
title: "Принят",
|
||||||
RECEPTION: "На приеме",
|
color: "#55CD76",
|
||||||
PLANNED: "Не принят",
|
},
|
||||||
|
CANCELED: {
|
||||||
|
title: "Отказ",
|
||||||
|
color: "#FF6F6F",
|
||||||
|
},
|
||||||
|
RECEPTION: {
|
||||||
|
title: "На приеме",
|
||||||
|
color: "#FFC75B",
|
||||||
|
},
|
||||||
|
PLANNED: {
|
||||||
|
title: "Не принят",
|
||||||
|
color: "#9294A7",
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { getConfidantObject } from "@/pages/newMedicalCard/utils/gettersObjects"
|
|||||||
const state = () => ({
|
const state = () => ({
|
||||||
medicalCard: {},
|
medicalCard: {},
|
||||||
confidantData: [],
|
confidantData: [],
|
||||||
personFiltredList: [],
|
|
||||||
contactsData: {
|
contactsData: {
|
||||||
phones: [],
|
phones: [],
|
||||||
emails: [],
|
emails: [],
|
||||||
@@ -362,9 +361,6 @@ const mutations = {
|
|||||||
setConfidantData(state) {
|
setConfidantData(state) {
|
||||||
state.confidantData = this.getters.getConfidantData;
|
state.confidantData = this.getters.getConfidantData;
|
||||||
},
|
},
|
||||||
setPersonFiltredList(state, persons) {
|
|
||||||
state.personFiltredList = persons;
|
|
||||||
},
|
|
||||||
setEventsPersonData(state, id) {
|
setEventsPersonData(state, id) {
|
||||||
fetchWrapper.get(`general/person/${id}/detail/`).then((res) => {
|
fetchWrapper.get(`general/person/${id}/detail/`).then((res) => {
|
||||||
state.events = res.events;
|
state.events = res.events;
|
||||||
|
|||||||
Reference in New Issue
Block a user