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