[WIP] Фикс конфига статусов
This commit is contained in:
@@ -43,8 +43,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import * as moment from "moment/moment";
|
import * as moment from "moment/moment";
|
||||||
import {
|
import {
|
||||||
recordingStatuses,
|
statuses,
|
||||||
medicalСardStatuses,
|
|
||||||
networks,
|
networks,
|
||||||
} from "@/pages/newCalendar/utils/calendarConfig.js";
|
} from "@/pages/newCalendar/utils/calendarConfig.js";
|
||||||
import { trimName } from "@/pages/newCalendar/utils/calendarFunctions.js";
|
import { trimName } from "@/pages/newCalendar/utils/calendarFunctions.js";
|
||||||
@@ -80,12 +79,12 @@ export default {
|
|||||||
return !this.bodyClass?.["flex-col"] && !this.expandedType;
|
return !this.bodyClass?.["flex-col"] && !this.expandedType;
|
||||||
},
|
},
|
||||||
recordingStatus() {
|
recordingStatus() {
|
||||||
return recordingStatuses.find(
|
return statuses[0].data.find(
|
||||||
(elem) => elem.value === this.record?.status
|
(elem) => elem.value === this.record?.status
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
medicalСardStatus() {
|
medicalСardStatus() {
|
||||||
return medicalСardStatuses.find(
|
return statuses[1].data.find(
|
||||||
(elem) => elem.value === this.record?.medicalCard?.status
|
(elem) => elem.value === this.record?.medicalCard?.status
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ import { trimName } from "@/pages/newCalendar/utils/calendarFunctions.js";
|
|||||||
import {
|
import {
|
||||||
recordList,
|
recordList,
|
||||||
recordPreviewConfig,
|
recordPreviewConfig,
|
||||||
recordingStatuses,
|
statuses,
|
||||||
} from "@/pages/newCalendar/utils/calendarConfig.js";
|
} from "@/pages/newCalendar/utils/calendarConfig.js";
|
||||||
export default {
|
export default {
|
||||||
name: "CalendarRecordPreview",
|
name: "CalendarRecordPreview",
|
||||||
@@ -93,14 +93,12 @@ export default {
|
|||||||
return this.start?.format("HH:mm") + " – " + this.end?.format("HH:mm");
|
return this.start?.format("HH:mm") + " – " + this.end?.format("HH:mm");
|
||||||
},
|
},
|
||||||
statusLabel() {
|
statusLabel() {
|
||||||
return recordingStatuses.find(
|
return statuses[0].data.find((elem) => elem.value === this.record?.status)
|
||||||
(elem) => elem.value === this.record?.status
|
.label;
|
||||||
).label;
|
|
||||||
},
|
},
|
||||||
statusIcon() {
|
statusIcon() {
|
||||||
return recordingStatuses.find(
|
return statuses[0].data.find((elem) => elem.value === this.record?.status)
|
||||||
(elem) => elem.value === this.record?.status
|
.icon;
|
||||||
).icon;
|
|
||||||
},
|
},
|
||||||
memberData() {
|
memberData() {
|
||||||
return this.record?.member;
|
return this.record?.member;
|
||||||
|
|||||||
@@ -42,44 +42,51 @@ export const networks = [
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
export const recordingStatuses = [
|
export const statuses = [
|
||||||
{
|
{
|
||||||
label: "Не принят",
|
name: "recording",
|
||||||
icon: not_accepted,
|
data: [
|
||||||
value: "not_accepted",
|
{
|
||||||
|
label: "Не принят",
|
||||||
|
icon: not_accepted,
|
||||||
|
value: "not_accepted",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Принят",
|
||||||
|
icon: accepted,
|
||||||
|
value: "accepted",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Отказ",
|
||||||
|
icon: rejected,
|
||||||
|
value: "rejected",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "На приеме",
|
||||||
|
icon: reception,
|
||||||
|
value: "reception",
|
||||||
|
},
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Принят",
|
name: "medicalCard",
|
||||||
icon: accepted,
|
data: [
|
||||||
value: "accepted",
|
{
|
||||||
},
|
label: "Не заполнена",
|
||||||
{
|
icon: not_filled,
|
||||||
label: "Отказ",
|
value: "not_filled",
|
||||||
icon: rejected,
|
},
|
||||||
value: "rejected",
|
{
|
||||||
},
|
label: "Частично заполнена",
|
||||||
{
|
icon: partially_filled,
|
||||||
label: "На приеме",
|
value: "partially_filled",
|
||||||
icon: reception,
|
},
|
||||||
value: "reception",
|
{
|
||||||
},
|
label: "Заполнена",
|
||||||
];
|
icon: filled,
|
||||||
|
value: "filled",
|
||||||
export const medicalСardStatuses = [
|
},
|
||||||
{
|
],
|
||||||
label: "Не заполнена",
|
|
||||||
icon: not_filled,
|
|
||||||
value: "not_filled",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Частично заполнена",
|
|
||||||
icon: partially_filled,
|
|
||||||
value: "partially_filled",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Заполнена",
|
|
||||||
icon: filled,
|
|
||||||
value: "filled",
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user