[WIP] Фикс post запроса

This commit is contained in:
megavrilinvv
2022-12-26 19:59:03 +03:00
parent 82f1eaf2e8
commit 66ad76d127

View File

@@ -148,14 +148,13 @@ export default {
);
},
postCreateSchedule() {
let currentEmployee = this.clearEmployee.find((e) => e.schedules);
fetchWrapper
.post("accounts/schedules/create/", {
employee: this.clearEmployee.find((e) => e.schedules).id,
employee: currentEmployee.id,
active_flg: true,
start_date: this.clearEmployee.find((e) => e.schedules).schedules
.start_date,
end_date: this.clearEmployee.find((e) => e.schedules).schedules
.end_date,
start_date: currentEmployee.schedules.start_date,
end_date: currentEmployee.schedules.end_date,
start_time: this.times.start_time,
end_time: this.times.end_time,
status: this.buttons.find((e) => e.active).work,