@studio-west/employees 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SwDatePicker-CJjKSM8k-BM055u68.cjs → SwDatePicker-CJjKSM8k-BHve4k7b.cjs} +1 -1
- package/dist/{SwDatePicker-CJjKSM8k-MaDENLOD.js → SwDatePicker-CJjKSM8k-DNmg0aWx.js} +1 -1
- package/dist/{SwDropdownItem-CtlMVgsX-DZBTkRCg.cjs → SwDropdownItem-CtlMVgsX-B6bLOdES.cjs} +1 -1
- package/dist/{SwDropdownItem-CtlMVgsX-B0y_klNq.js → SwDropdownItem-CtlMVgsX-CusP_bDd.js} +1 -1
- package/dist/{SwGide-DbSSyZ-y-CdqOXtTf.js → SwGide-DbSSyZ-y-CH5hJbsP.js} +1 -1
- package/dist/{SwGide-DbSSyZ-y-BJOOalKN.cjs → SwGide-DbSSyZ-y-DACxw_Ok.cjs} +1 -1
- package/dist/{SwInput-DCV1rrWa-VI25fSFi.cjs → SwInput-DCV1rrWa-Oljf6Ies.cjs} +1 -1
- package/dist/{SwInput-DCV1rrWa-RwwuH45g.js → SwInput-DCV1rrWa-alCLu1yQ.js} +1 -1
- package/dist/{SwMessage-CovKkpf6-DgzuTa6f.js → SwMessage-CovKkpf6-BDgVLZft.js} +1 -1
- package/dist/{SwMessage-CovKkpf6-BldEKjAC.cjs → SwMessage-CovKkpf6-jV8C6S3p.cjs} +1 -1
- package/dist/{SwSlider-YncjYKPw-DWb3SdAc.js → SwSlider-YncjYKPw-BqQedHzC.js} +1 -1
- package/dist/{SwSlider-YncjYKPw-RQiE3xTC.cjs → SwSlider-YncjYKPw-DTvRMb6o.cjs} +1 -1
- package/dist/VacationTable-DX7oTkwj.cjs +1 -0
- package/dist/{VacationTable-B0YqgIi2.js → VacationTable-HdZI-mVQ.js} +305 -305
- package/dist/VacationTable.cjs +1 -1
- package/dist/VacationTable.js +1 -1
- package/dist/WorkTable.cjs +4 -4
- package/dist/WorkTable.js +267 -267
- package/package.json +1 -1
- package/dist/VacationTable-DT5FUQ4-.cjs +0 -1
package/dist/WorkTable.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { saveAs as
|
|
3
|
-
import * as
|
|
4
|
-
import { p as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { ElSelect as
|
|
7
|
-
import { ContextMenu as
|
|
8
|
-
const
|
|
1
|
+
import { ref as v, watch as Se, computed as Ye, resolveComponent as be, resolveDirective as Ue, createElementBlock as U, openBlock as b, createElementVNode as k, createVNode as r, createCommentVNode as ae, withDirectives as He, createBlock as H, unref as t, withCtx as g, Fragment as re, renderList as se, createTextVNode as V, toDisplayString as h, normalizeStyle as Ie } from "vue";
|
|
2
|
+
import { saveAs as qe } from "file-saver";
|
|
3
|
+
import * as Re from "exceljs";
|
|
4
|
+
import { p as J, b as ve, h as We, c as xe, a as De, d as E } from "./index-DaZTfcYO.js";
|
|
5
|
+
import { useI18n as je } from "vue-i18n";
|
|
6
|
+
import { ElSelect as Pe, ElOption as Oe, ElButton as z, ElSwitch as ge, ElTable as Ge, ElTableColumn as I, ElDialog as Le, ElForm as Ze, ElFormItem as Je, ElRadioGroup as Qe, ElRadioButton as me, ElSlider as Q } from "element-plus";
|
|
7
|
+
import { ContextMenu as Ke, ContextMenuSeparator as Xe } from "@imengyu/vue3-context-menu";
|
|
8
|
+
const _e = { class: "work" }, el = { class: "nav" }, ll = { style: { height: "100px", width: "100%", display: "inline-block" } }, al = { style: { height: "100px", width: "100%", display: "inline-block" } }, tl = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "controls-container",
|
|
11
11
|
style: { "margin-top": ".5rem" }
|
|
12
|
-
},
|
|
12
|
+
}, nl = { class: "label" }, ul = {
|
|
13
13
|
key: 0,
|
|
14
14
|
style: { padding: "0.5em 1.5em" }
|
|
15
|
-
},
|
|
15
|
+
}, ol = {
|
|
16
16
|
key: 1,
|
|
17
17
|
style: { padding: "0.5em 1.5em" }
|
|
18
|
-
},
|
|
18
|
+
}, ml = {
|
|
19
19
|
__name: "WorkTable",
|
|
20
20
|
props: {
|
|
21
21
|
checkEdit: { type: Boolean, default: () => !0 },
|
|
@@ -24,9 +24,9 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
|
|
|
24
24
|
fullName: { type: String, default: "Вы" },
|
|
25
25
|
query: Object
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
var
|
|
29
|
-
const { t: d, d:
|
|
27
|
+
setup(R) {
|
|
28
|
+
var ye, fe, we, ke, Ce, $e;
|
|
29
|
+
const { t: d, d: K } = je(), f = R, X = v(!1), n = v([
|
|
30
30
|
// { name: 'Иванов П.М. (Ведущий работник месяца)',
|
|
31
31
|
// days: [], // {day: "2024-11-01", tips: '(9:00 - 18:00)', time: 8 }
|
|
32
32
|
// contHour: 0,
|
|
@@ -39,242 +39,242 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
|
|
|
39
39
|
// code: '0000-00052'
|
|
40
40
|
// ids: 1
|
|
41
41
|
// }
|
|
42
|
-
]),
|
|
42
|
+
]), te = v((ye = f.query) != null && ye.date ? (/* @__PURE__ */ new Date(((fe = f.query) == null ? void 0 : fe.date) + "T00:00:01")).getMonth() : (/* @__PURE__ */ new Date()).getMonth()), ne = v(!1), W = v([]), y = v(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)), o = v([]), T = v([0, 0]), C = v(9), w = v(8), _ = v(!1), q = v(!1), ue = v("5"), j = v(1), D = v([]), oe = v([]), A = v([]), ee = v([]), c = v({ name: "Имя", length: 0, code: "" }), P = v(!1), de = v({
|
|
43
43
|
zIndex: 3,
|
|
44
44
|
minWidth: 230,
|
|
45
45
|
x: 500,
|
|
46
46
|
y: 200
|
|
47
|
-
}),
|
|
48
|
-
|
|
49
|
-
l !== e && (
|
|
50
|
-
l.includes(u.divisionName) && (
|
|
51
|
-
}),
|
|
52
|
-
}),
|
|
47
|
+
}), M = v({}), O = v("100%");
|
|
48
|
+
Se(D, async (l, e) => {
|
|
49
|
+
l !== e && (A.value = [], _.value = !1, f.odata.personal.forEach((u) => {
|
|
50
|
+
l.includes(u.divisionName) && (A.value.some((i) => (i == null ? void 0 : i.activeText) === u.roleName) || A.value.push({ val: !0, activeText: u.roleName }));
|
|
51
|
+
}), ie());
|
|
52
|
+
}), Se(te, async (l) => {
|
|
53
53
|
let e = (/* @__PURE__ */ new Date()).getMonth(), u = l === null ? e : l - 1;
|
|
54
|
-
u = e - 1 <= u ? u - e >= 11 ? u - 12 : u : u + 12,
|
|
54
|
+
u = e - 1 <= u ? u - e >= 11 ? u - 12 : u : u + 12, y.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), u, 1), he();
|
|
55
55
|
});
|
|
56
|
-
const
|
|
57
|
-
c.value.ids = l.ids, c.value.key = l.key, c.value.add = l.days.length > 0 && l.days[l.days.length - 1].cont, c.value.level = e.level, c.value.day = u.cellIndex,
|
|
58
|
-
},
|
|
59
|
-
if (!
|
|
60
|
-
const u = new Date(new Date(
|
|
61
|
-
for (let
|
|
62
|
-
const { dateStart:
|
|
63
|
-
if (
|
|
64
|
-
const
|
|
65
|
-
if (u >=
|
|
56
|
+
const Ve = (l, e, u, i) => {
|
|
57
|
+
c.value.ids = l.ids, c.value.key = l.key, c.value.add = l.days.length > 0 && l.days[l.days.length - 1].cont, c.value.level = e.level, c.value.day = u.cellIndex, de.value.y = i.clientY, de.value.x = i.clientX, e.level === 2 && e.no === 0 && f.checkEdit && (c.value.name = d("workSchedule.autocomplete"), P.value = !0), e.level === 3 && u.cellIndex - e.no === 1 && f.checkEdit && (F(u.cellIndex, l.ids), c.value.name = d("workSchedule.modeSelection"), P.value = !0);
|
|
58
|
+
}, Ee = ({ row: l, columnIndex: e }) => {
|
|
59
|
+
if (!W.value || W.value.length === 0 || !ne.value) return "";
|
|
60
|
+
const u = new Date(new Date(y.value).getFullYear(), new Date(y.value).getMonth(), e).getTime() + 1e3;
|
|
61
|
+
for (let i of W.value) {
|
|
62
|
+
const { dateStart: s, dateEnd: a, code: $ } = i;
|
|
63
|
+
if (s && a && $ === l.code && e !== 0 && e <= o.value.length) {
|
|
64
|
+
const N = new Date(De(s)).getTime(), B = new Date(De(a)).getTime();
|
|
65
|
+
if (u >= N && u <= B) return "vacation";
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
return "";
|
|
69
|
-
},
|
|
70
|
-
var
|
|
71
|
-
const l = new Date(
|
|
72
|
-
let u = [],
|
|
73
|
-
for (let
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
const
|
|
77
|
-
u.push({ day:
|
|
69
|
+
}, he = () => {
|
|
70
|
+
var a, $, N, B, L, m;
|
|
71
|
+
const l = new Date(y.value), e = new Date(l.getFullYear(), l.getMonth() + 1, 0).getDate();
|
|
72
|
+
let u = [], i = 0, s = 0;
|
|
73
|
+
for (let x = 1; x <= e; x++) {
|
|
74
|
+
const S = J(l.setDate(x), "{Y}-{m}-{dd}");
|
|
75
|
+
i += (a = M.value.nowork) != null && a.includes(S) || M.value.holidays.includes(S) ? 0 : ($ = M.value.preholidays) != null && $.includes(S) ? 7 : 8, s += (N = M.value.nowork) != null && N.includes(S) || M.value.holidays.includes(S) ? 0 : (B = M.value.preholidays) != null && B.includes(S) ? 6 : 7;
|
|
76
|
+
const p = (L = M.value.nowork) != null && L.includes(S) ? "nowork" : M.value.holidays.includes(S) ? "holiday" : (m = M.value.preholidays) != null && m.includes(S) ? "preholiday" : "";
|
|
77
|
+
u.push({ day: x, holidays: p, weekday: K(new Date(l.getFullYear(), l.getMonth(), x), "day") });
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}),
|
|
79
|
+
T.value[0] = i, T.value[1] = s, o.value = u, f.odata.getPersonal({ dismissed: "false" }).then((x) => {
|
|
80
|
+
var S;
|
|
81
|
+
D.value.length === 0 && (D.value = [(S = x.find((p) => p.employeeName === f.fullName && p.dismissalDate.length === 0)) == null ? void 0 : S.divisionName]), x.forEach((p, Z) => {
|
|
82
|
+
oe.value.some((Y) => p.dismissalDate.length > 0 && new Date(p.dismissalDate) < new Date(y.value) || (Y == null ? void 0 : Y.value) === p.divisionName) || oe.value.push({ value: p.divisionName, label: p.divisionName, key: Z }), D.value.includes(p.divisionName) && !A.value.some((Y) => (Y == null ? void 0 : Y.activeText) === p.roleName) && A.value.push({ val: !0, activeText: p.roleName });
|
|
83
|
+
}), ie();
|
|
84
84
|
});
|
|
85
|
-
},
|
|
86
|
-
var a,
|
|
87
|
-
const u = new Date(
|
|
88
|
-
return e === -1 ||
|
|
89
|
-
` + ((
|
|
90
|
-
},
|
|
91
|
-
n.value = [],
|
|
92
|
-
if (
|
|
93
|
-
let e =
|
|
85
|
+
}, Me = Ye(() => !n.value.some((l) => l.contHour !== T.value[0] || l.contHour !== T.value[1])), ce = (l, e) => {
|
|
86
|
+
var a, $, N;
|
|
87
|
+
const u = new Date(y.value), i = `${u.getFullYear()}-${(u.getMonth() + 1).toString().padStart(2, "0")}-${l.toString().padStart(2, "0")}`, s = (a = n.value[e]) == null ? void 0 : a.days.findIndex((B) => B.day === i);
|
|
88
|
+
return e === -1 || s === -1 ? "" : (($ = n.value[e].days[s]) == null ? void 0 : $.tips) + `
|
|
89
|
+
` + ((N = n.value[e].days[s]) == null ? void 0 : N.time);
|
|
90
|
+
}, ie = () => {
|
|
91
|
+
n.value = [], ee.value = [], W.value = [], f.odata.personal.forEach((l) => {
|
|
92
|
+
if (D.value.includes(l.divisionName) && A.value.some((e) => e.val && e.activeText === l.roleName) && (l.dismissalDate.length === 0 || new Date(l.dismissalDate) > new Date(y.value))) {
|
|
93
|
+
let e = ve(l.employeeName);
|
|
94
94
|
n.value.push({ name: e + " (" + l.roleName + ")", days: [], contHour: 0, code: l.employeeKey, id: !1 });
|
|
95
95
|
}
|
|
96
96
|
}), n.value.sort((l, e) => l.name < e.name ? -1 : l.name > e.name ? 1 : 0), n.value.forEach((l, e) => {
|
|
97
|
-
l.ids = e,
|
|
98
|
-
}), f.workSchedule.getUsersYear({ code:
|
|
97
|
+
l.ids = e, ee.value.push(l.code);
|
|
98
|
+
}), f.workSchedule.getUsersYear({ code: ee.value, year: new Date(y.value).getFullYear() }).then((l) => {
|
|
99
99
|
l.forEach((e) => {
|
|
100
|
-
e.dateStart &&
|
|
101
|
-
}),
|
|
100
|
+
e.dateStart && W.value.push({ code: e.code, dateStart: e.dateStart, dateEnd: e.dateEnd });
|
|
101
|
+
}), Ne(), q.value = !1;
|
|
102
102
|
});
|
|
103
|
-
},
|
|
104
|
-
f.workSchedule.getWorkSchedule({ code:
|
|
103
|
+
}, Ne = () => {
|
|
104
|
+
f.workSchedule.getWorkSchedule({ code: ee.value, date: J(new Date(y.value), "{Y}-{m}-{dd}") }).then(
|
|
105
105
|
(l) => {
|
|
106
106
|
l.forEach((e, u) => {
|
|
107
107
|
e !== null && (n.value[u].days = e.data.days, n.value[u].id = e.id);
|
|
108
|
-
}),
|
|
108
|
+
}), G();
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
|
-
},
|
|
111
|
+
}, G = () => {
|
|
112
112
|
n.value.forEach((l) => {
|
|
113
113
|
l.contHour = l.days.reduce((e, u) => e + u.time, 0);
|
|
114
114
|
});
|
|
115
|
-
}, Ne = (l) => {
|
|
116
|
-
n.value[l].days = [], O();
|
|
117
115
|
}, Te = (l) => {
|
|
118
|
-
|
|
116
|
+
n.value[l].days = [], G();
|
|
117
|
+
}, Ae = (l) => {
|
|
118
|
+
switch (ue.value) {
|
|
119
119
|
case "5":
|
|
120
|
-
for (let e =
|
|
121
|
-
o.value[e - 1].holidays === "" &&
|
|
120
|
+
for (let e = j.value; e <= o.value.length; e++)
|
|
121
|
+
o.value[e - 1].holidays === "" && F(e, l, !0), o.value[e - 1].holidays === "preholiday" && (w.value -= 1, F(e, l, !0), w.value += 1);
|
|
122
122
|
break;
|
|
123
123
|
case "2x2":
|
|
124
|
-
for (let e =
|
|
125
|
-
|
|
124
|
+
for (let e = j.value; e <= o.value.length; e += 4)
|
|
125
|
+
F(e, l, !0), e + 1 <= o.value.length && F(e + 1, l, !0);
|
|
126
126
|
break;
|
|
127
127
|
case "2x5":
|
|
128
|
-
for (let e =
|
|
128
|
+
for (let e = j.value; e <= o.value.length; e += 7)
|
|
129
129
|
for (let u = e; u < e + 5 && u <= o.value.length; u++)
|
|
130
|
-
o.value[u - 1].holidays === "preholiday" ? (
|
|
130
|
+
o.value[u - 1].holidays === "preholiday" ? (w.value -= 1, F(u, l, !0), w.value += 1) : F(u, l, !0);
|
|
131
131
|
break;
|
|
132
132
|
}
|
|
133
|
-
},
|
|
134
|
-
const { date:
|
|
135
|
-
|
|
136
|
-
day:
|
|
137
|
-
time:
|
|
138
|
-
tips: `(${
|
|
139
|
-
}),
|
|
140
|
-
},
|
|
141
|
-
const { ind: u } =
|
|
142
|
-
n.value[e].days.splice(u, 1),
|
|
143
|
-
},
|
|
144
|
-
const { date: u, ind:
|
|
145
|
-
n.value[e].days[
|
|
133
|
+
}, F = (l, e, u = !1) => {
|
|
134
|
+
const { date: i, ind: s } = le(l, e);
|
|
135
|
+
s === -1 ? (n.value[e].days.push({
|
|
136
|
+
day: i,
|
|
137
|
+
time: w.value,
|
|
138
|
+
tips: `(${C.value}:00 - ${w.value >= 22 ? C.value + w.value + 2 : C.value + w.value + 1}:00)`
|
|
139
|
+
}), G()) : u || (w.value = n.value[e].days[s].time, C.value = parseInt(n.value[e].days[s].tips.slice(1, -12)));
|
|
140
|
+
}, Be = (l, e) => {
|
|
141
|
+
const { ind: u } = le(l, e);
|
|
142
|
+
n.value[e].days.splice(u, 1), G(), document.querySelector(".app-main").click();
|
|
143
|
+
}, pe = (l, e) => {
|
|
144
|
+
const { date: u, ind: i } = le(l, e);
|
|
145
|
+
n.value[e].days[i] = {
|
|
146
146
|
day: u,
|
|
147
|
-
time:
|
|
148
|
-
tips: `(${
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
var
|
|
152
|
-
const u =
|
|
153
|
-
return { date: u, ind:
|
|
154
|
-
},
|
|
155
|
-
var
|
|
156
|
-
|
|
157
|
-
const l = new
|
|
158
|
-
e.mergeCells(`A1:${
|
|
159
|
-
for (let
|
|
160
|
-
e.getCell(4,
|
|
161
|
-
` + (
|
|
162
|
-
e.getRow(1).height = 40, e.getRow(2).height = 30, e.getRow(3).height = 20, e.getColumn(1).width = 15, e.getColumn(o.value.length + 2).width = 5, e.getColumn(o.value.length + 3).width = 6, e.getColumn(o.value.length + 4).width = 13, e.getColumn(o.value.length + 5).width = 13, e.getColumn(o.value.length + 6).width = 13, e.getColumn(1).alignment =
|
|
147
|
+
time: w.value,
|
|
148
|
+
tips: `(${C.value}:00 - ${w.value >= 22 ? C.value + w.value + 2 : C.value + w.value + 1}:00)`
|
|
149
|
+
}, G();
|
|
150
|
+
}, le = (l, e) => {
|
|
151
|
+
var s;
|
|
152
|
+
const u = J(new Date(y.value).setDate(l), "{Y}-{m}-{dd}"), i = (s = n.value[e]) == null ? void 0 : s.days.findIndex((a) => a.day === u);
|
|
153
|
+
return { date: u, ind: i };
|
|
154
|
+
}, ze = async () => {
|
|
155
|
+
var L;
|
|
156
|
+
X.value = !0;
|
|
157
|
+
const l = new Re.Workbook(), e = l.addWorksheet(K(y.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), u = { vertical: "middle", horizontal: "center" }, i = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, s = { vertical: "middle", horizontal: "center", wrapText: !0 };
|
|
158
|
+
e.mergeCells(`A1:${E("A1", o.value.length + 6)}1`), e.mergeCells(`A2:${E("A2", o.value.length + 6)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${E("B3", o.value.length)}3`), e.mergeCells(`${E("B3", o.value.length + 1)}3:${E("B3", o.value.length + 2)}3`), e.mergeCells(`${E("B3", o.value.length + 3)}3:${E("B4", o.value.length + 3)}4`), e.mergeCells(`${E("B3", o.value.length + 4)}3:${E("B4", o.value.length + 4)}4`), e.mergeCells(`${E("B3", o.value.length + 5)}3:${E("B4", o.value.length + 5)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: D.value[0] }) + K(y.value, "month") + ` ${new Date(y.value).getFullYear()}`, e.getCell("A3").value = d("workSchedule.month"), e.getCell("B3").value = d("workSchedule.numbersMonth"), e.getCell(3, o.value.length + 2).value = d("workSchedule.onSchedule"), e.getCell(3, o.value.length + 4).value = d("workSchedule.acquainted"), e.getCell(3, o.value.length + 5).value = d("workSchedule.decryption"), e.getCell(3, o.value.length + 6).value = d("workSchedule.date"), e.getCell(4, o.value.length + 2).value = d("workSchedule.days"), e.getCell(4, o.value.length + 3).value = `${d("workSchedule.hours")} (${T.value[0]})`;
|
|
159
|
+
for (let m = 2; m <= o.value.length + 1; m++)
|
|
160
|
+
e.getCell(4, m).value = o.value[m - 2].weekday + `
|
|
161
|
+
` + (m - 1), e.getColumn(m).width = 6, e.getColumn(m).alignment = s, e.getCell(4, m).border = i;
|
|
162
|
+
e.getRow(1).height = 40, e.getRow(2).height = 30, e.getRow(3).height = 20, e.getColumn(1).width = 15, e.getColumn(o.value.length + 2).width = 5, e.getColumn(o.value.length + 3).width = 6, e.getColumn(o.value.length + 4).width = 13, e.getColumn(o.value.length + 5).width = 13, e.getColumn(o.value.length + 6).width = 13, e.getColumn(1).alignment = s, e.getCell("A2").alignment = u, e.getCell("A3").alignment = u, e.getCell("B3").alignment = u, e.getCell(3, o.value.length + 2).alignment = u, e.getColumn(o.value.length + 2).alignment = s, e.getColumn(o.value.length + 3).alignment = s, e.getColumn(o.value.length + 4).alignment = s, e.getColumn(o.value.length + 5).alignment = s, e.getColumn(o.value.length + 6).alignment = u, e.getCell("A3").border = i, e.getCell("B3").border = i, e.getCell(3, o.value.length + 2).border = i, e.getCell(4, o.value.length + 2).border = i, e.getCell(3, o.value.length + 4).border = i, e.getCell(3, o.value.length + 5).border = i, e.getCell(3, o.value.length + 6).border = i, e.getCell(4, o.value.length + 3).border = i;
|
|
163
163
|
let a = 0;
|
|
164
|
-
for (const
|
|
165
|
-
let
|
|
166
|
-
for (let
|
|
167
|
-
const { ind:
|
|
168
|
-
|
|
164
|
+
for (const m of n.value) {
|
|
165
|
+
let x = [m.name];
|
|
166
|
+
for (let p = 1; p <= o.value.length; p++) {
|
|
167
|
+
const { ind: Z } = le(p, a);
|
|
168
|
+
Z !== -1 ? x[p] = `${m.days[Z].time} ${m.days[Z].tips}` : x[p] = " ";
|
|
169
169
|
}
|
|
170
|
-
|
|
171
|
-
const
|
|
172
|
-
|
|
170
|
+
x.push(((L = m.days) == null ? void 0 : L.length) || " ", m.contHour || 0);
|
|
171
|
+
const S = e.addRow(x);
|
|
172
|
+
S.border = i, a++;
|
|
173
173
|
}
|
|
174
|
-
let
|
|
175
|
-
f.odata.personal.forEach((
|
|
176
|
-
|
|
177
|
-
}), e.mergeCells(`A${n.value.length + 6}:P${n.value.length + 6}`), e.mergeCells(`Q${n.value.length + 6}:AG${n.value.length + 6}`), e.mergeCells(`B${n.value.length + 8}:E${n.value.length + 8}`), e.mergeCells(`F${n.value.length + 8}:L${n.value.length + 8}`), e.mergeCells(`M${n.value.length + 8}:P${n.value.length + 8}`), e.mergeCells(`S${n.value.length + 8}:V${n.value.length + 8}`), e.mergeCells(`W${n.value.length + 8}:AC${n.value.length + 8}`), e.mergeCells(`AD${n.value.length + 8}:AG${n.value.length + 8}`), e.mergeCells(`Z${n.value.length + 9}:AA${n.value.length + 9}`), e.getCell(`A${n.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${n.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${n.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${n.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${n.value.length + 8}`).value =
|
|
178
|
-
const
|
|
179
|
-
|
|
180
|
-
},
|
|
181
|
-
|
|
174
|
+
let $ = "Щербина Е. В.";
|
|
175
|
+
f.odata.personal.forEach((m) => {
|
|
176
|
+
m.roleName === "Начальник отдела правовой и кадровой работы" && (m.dismissalDate.length === 0 || new Date(m.dismissalDate) > new Date(thisMonth.value)) && ($ = m.employeeName);
|
|
177
|
+
}), e.mergeCells(`A${n.value.length + 6}:P${n.value.length + 6}`), e.mergeCells(`Q${n.value.length + 6}:AG${n.value.length + 6}`), e.mergeCells(`B${n.value.length + 8}:E${n.value.length + 8}`), e.mergeCells(`F${n.value.length + 8}:L${n.value.length + 8}`), e.mergeCells(`M${n.value.length + 8}:P${n.value.length + 8}`), e.mergeCells(`S${n.value.length + 8}:V${n.value.length + 8}`), e.mergeCells(`W${n.value.length + 8}:AC${n.value.length + 8}`), e.mergeCells(`AD${n.value.length + 8}:AG${n.value.length + 8}`), e.mergeCells(`Z${n.value.length + 9}:AA${n.value.length + 9}`), e.getCell(`A${n.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${n.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${n.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${n.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${n.value.length + 8}`).value = ve(f.fullName), e.getCell(`AD${n.value.length + 8}`).value = ve($), e.getCell(`Z${n.value.length + 9}`).value = d("workSchedule.printPlace"), e.getCell(`A${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`Q${n.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`B${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`F${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`M${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`AD${n.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`Z${n.value.length + 9}`).alignment = u, e.getCell(`F${n.value.length + 8}`).border = { bottom: { style: "thin" } }, e.getCell(`W${n.value.length + 8}`).border = { bottom: { style: "thin" } };
|
|
178
|
+
const N = "export_" + J(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", B = await l.xlsx.writeBuffer();
|
|
179
|
+
qe(new Blob([B]), N), X.value = !1;
|
|
180
|
+
}, Fe = async () => {
|
|
181
|
+
_.value || f.workSchedule.addWorkSchedule({ data: n.value, date: J(new Date(y.value), "{Y}-{m}-{dd}"), group: D.value[0] }).then((l) => _.value = l);
|
|
182
182
|
};
|
|
183
|
-
return (((
|
|
184
|
-
|
|
183
|
+
return (((we = f.query) == null ? void 0 : we.group) ?? !1) && (D.value[0] = (ke = f.query) == null ? void 0 : ke.group), (((Ce = f.query) == null ? void 0 : Ce.date) ?? !1) && (y.value = /* @__PURE__ */ new Date((($e = f.query) == null ? void 0 : $e.date) + "T00:00:01")), We().then((l) => {
|
|
184
|
+
M.value = l, he();
|
|
185
185
|
}), (l, e) => {
|
|
186
|
-
const u =
|
|
187
|
-
return
|
|
188
|
-
|
|
189
|
-
|
|
186
|
+
const u = be("el-date-picker"), i = be("svg-icon"), s = Ue("loading");
|
|
187
|
+
return b(), U("div", _e, [
|
|
188
|
+
k("div", el, [
|
|
189
|
+
R.checkEdit ? (b(), H(t(Pe), {
|
|
190
190
|
key: 0,
|
|
191
|
-
modelValue:
|
|
192
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) =>
|
|
191
|
+
modelValue: D.value,
|
|
192
|
+
"onUpdate:modelValue": e[0] || (e[0] = (a) => D.value = a),
|
|
193
193
|
multiple: "",
|
|
194
194
|
"collapse-tags": "",
|
|
195
195
|
"collapse-tags-tooltip": "",
|
|
196
196
|
placeholder: "Select",
|
|
197
197
|
style: { width: "240px" }
|
|
198
198
|
}, {
|
|
199
|
-
default:
|
|
200
|
-
(
|
|
199
|
+
default: g(() => [
|
|
200
|
+
(b(!0), U(re, null, se(oe.value, (a) => (b(), H(t(Oe), {
|
|
201
201
|
key: a.key,
|
|
202
202
|
label: a.label,
|
|
203
203
|
value: a.value
|
|
204
204
|
}, null, 8, ["label", "value"]))), 128))
|
|
205
205
|
]),
|
|
206
206
|
_: 1
|
|
207
|
-
}, 8, ["modelValue"])) :
|
|
208
|
-
|
|
207
|
+
}, 8, ["modelValue"])) : ae("", !0),
|
|
208
|
+
R.checkEdit ? (b(), H(t(z), {
|
|
209
209
|
key: 1,
|
|
210
210
|
plain: "",
|
|
211
|
-
onClick: e[1] || (e[1] = (a) =>
|
|
211
|
+
onClick: e[1] || (e[1] = (a) => q.value = !0)
|
|
212
212
|
}, {
|
|
213
|
-
default:
|
|
214
|
-
|
|
213
|
+
default: g(() => [
|
|
214
|
+
V(h(t(d)("workSchedule.jobTitle")), 1)
|
|
215
215
|
]),
|
|
216
216
|
_: 1
|
|
217
|
-
})) :
|
|
218
|
-
|
|
219
|
-
modelValue:
|
|
220
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) =>
|
|
217
|
+
})) : ae("", !0),
|
|
218
|
+
r(u, {
|
|
219
|
+
modelValue: te.value,
|
|
220
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => te.value = a),
|
|
221
221
|
type: "month",
|
|
222
222
|
placeholder: "Выберите месяц",
|
|
223
223
|
format: "MMM",
|
|
224
224
|
"value-format": "M"
|
|
225
225
|
}, null, 8, ["modelValue"]),
|
|
226
|
-
e[21] || (e[21] =
|
|
227
|
-
|
|
228
|
-
modelValue:
|
|
229
|
-
"onUpdate:modelValue": e[3] || (e[3] = (a) =>
|
|
226
|
+
e[21] || (e[21] = k("div", { class: "expander" }, null, -1)),
|
|
227
|
+
r(t(ge), {
|
|
228
|
+
modelValue: O.value,
|
|
229
|
+
"onUpdate:modelValue": e[3] || (e[3] = (a) => O.value = a),
|
|
230
230
|
"active-text": l.$t("bids.currentHeight"),
|
|
231
231
|
"active-value": "100%",
|
|
232
232
|
"inactive-value": "calc(100vh - var(--el-component-size)*5 - var(--el-main-padding)*2 - var(--header-height))"
|
|
233
233
|
}, null, 8, ["modelValue", "active-text"]),
|
|
234
|
-
|
|
235
|
-
modelValue:
|
|
236
|
-
"onUpdate:modelValue": e[4] || (e[4] = (a) =>
|
|
234
|
+
r(t(ge), {
|
|
235
|
+
modelValue: ne.value,
|
|
236
|
+
"onUpdate:modelValue": e[4] || (e[4] = (a) => ne.value = a),
|
|
237
237
|
"active-text": "Отпуска",
|
|
238
238
|
"active-value": !0,
|
|
239
239
|
"inactive-value": !1
|
|
240
240
|
}, null, 8, ["modelValue"])
|
|
241
241
|
]),
|
|
242
|
-
|
|
242
|
+
r(t(Ge), {
|
|
243
243
|
id: "printTable",
|
|
244
244
|
data: n.value,
|
|
245
245
|
style: { width: "100%" },
|
|
246
|
-
"max-height":
|
|
246
|
+
"max-height": O.value,
|
|
247
247
|
size: "small",
|
|
248
248
|
align: "center",
|
|
249
|
-
onCellClick:
|
|
249
|
+
onCellClick: Ve,
|
|
250
250
|
"empty-text": t(d)("workSchedule.emptyText"),
|
|
251
|
-
"cell-class-name":
|
|
251
|
+
"cell-class-name": Ee
|
|
252
252
|
}, {
|
|
253
|
-
default:
|
|
254
|
-
|
|
255
|
-
label: t(d)("workSchedule.title", { name:
|
|
253
|
+
default: g(() => [
|
|
254
|
+
r(t(I), {
|
|
255
|
+
label: t(d)("workSchedule.title", { name: D.value[0] }) + t(K)(y.value, "month") + ` ${new Date(y.value).getFullYear()}`,
|
|
256
256
|
align: "center",
|
|
257
257
|
height: "34"
|
|
258
258
|
}, {
|
|
259
|
-
default:
|
|
260
|
-
|
|
259
|
+
default: g(() => [
|
|
260
|
+
r(t(I), {
|
|
261
261
|
label: t(d)("workSchedule.month"),
|
|
262
262
|
width: "180",
|
|
263
263
|
align: "center",
|
|
264
|
-
fixed:
|
|
264
|
+
fixed: O.value !== "100%"
|
|
265
265
|
}, {
|
|
266
|
-
default:
|
|
267
|
-
|
|
266
|
+
default: g((a) => [
|
|
267
|
+
k("div", ll, h(n.value[a.$index].name), 1)
|
|
268
268
|
]),
|
|
269
269
|
_: 1
|
|
270
270
|
}, 8, ["label", "fixed"]),
|
|
271
|
-
|
|
271
|
+
r(t(I), {
|
|
272
272
|
label: t(d)("workSchedule.numbersMonth"),
|
|
273
273
|
align: "center"
|
|
274
274
|
}, {
|
|
275
|
-
default:
|
|
276
|
-
(
|
|
277
|
-
key: `${
|
|
275
|
+
default: g(() => [
|
|
276
|
+
(b(!0), U(re, null, se(o.value, (a) => (b(), H(t(I), {
|
|
277
|
+
key: `${y.value.getTime()}-${a.day}`,
|
|
278
278
|
width: "46",
|
|
279
279
|
"class-name": a.holidays,
|
|
280
280
|
align: "center",
|
|
@@ -282,36 +282,36 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
|
|
|
282
282
|
` + a.day.toString(),
|
|
283
283
|
prop: "vacation"
|
|
284
284
|
}, {
|
|
285
|
-
default:
|
|
286
|
-
|
|
285
|
+
default: g(($) => [
|
|
286
|
+
k("div", al, h(ce(a.day, $.$index) || " "), 1)
|
|
287
287
|
]),
|
|
288
288
|
_: 2
|
|
289
289
|
}, 1032, ["class-name", "label"]))), 128))
|
|
290
290
|
]),
|
|
291
291
|
_: 1
|
|
292
292
|
}, 8, ["label"]),
|
|
293
|
-
|
|
293
|
+
r(t(I), {
|
|
294
294
|
label: t(d)("workSchedule.onSchedule"),
|
|
295
295
|
align: "center",
|
|
296
|
-
fixed:
|
|
296
|
+
fixed: O.value !== "100%" ? "right" : !1
|
|
297
297
|
}, {
|
|
298
|
-
default:
|
|
299
|
-
|
|
298
|
+
default: g(() => [
|
|
299
|
+
r(t(I), {
|
|
300
300
|
label: t(d)("workSchedule.days"),
|
|
301
301
|
align: "center"
|
|
302
302
|
}, {
|
|
303
|
-
default:
|
|
304
|
-
|
|
303
|
+
default: g((a) => [
|
|
304
|
+
V(h(n.value[a.$index].days.length || 0), 1)
|
|
305
305
|
]),
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, ["label"]),
|
|
308
|
-
|
|
309
|
-
label: `${t(d)("workSchedule.hours")} ( ${
|
|
308
|
+
r(t(I), {
|
|
309
|
+
label: `${t(d)("workSchedule.hours")} ( ${T.value[0]} / ${T.value[1]} )`,
|
|
310
310
|
align: "center"
|
|
311
311
|
}, {
|
|
312
|
-
default:
|
|
313
|
-
|
|
314
|
-
style:
|
|
312
|
+
default: g((a) => [
|
|
313
|
+
k("div", {
|
|
314
|
+
style: Ie(`color: ${T.value === a.row.contHour ? "green" : "red"};`)
|
|
315
315
|
}, h(a.row.contHour), 5)
|
|
316
316
|
]),
|
|
317
317
|
_: 1
|
|
@@ -325,75 +325,75 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
|
|
|
325
325
|
]),
|
|
326
326
|
_: 1
|
|
327
327
|
}, 8, ["data", "max-height", "empty-text"]),
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
328
|
+
Me.value && R.checkEdit ? (b(), U("div", tl, [
|
|
329
|
+
V(h(t(d)("workSchedule.chartsFilled")) + ": ", 1),
|
|
330
|
+
_.value ? ae("", !0) : (b(), H(t(z), {
|
|
331
331
|
key: 0,
|
|
332
332
|
type: "primary",
|
|
333
|
-
onClick:
|
|
333
|
+
onClick: Fe
|
|
334
334
|
}, {
|
|
335
|
-
default:
|
|
336
|
-
|
|
335
|
+
default: g(() => [
|
|
336
|
+
V(h(t(d)("workSchedule.confirm")), 1)
|
|
337
337
|
]),
|
|
338
338
|
_: 1
|
|
339
339
|
})),
|
|
340
|
-
e[22] || (e[22] =
|
|
341
|
-
|
|
342
|
-
])) :
|
|
343
|
-
|
|
344
|
-
disabled:
|
|
340
|
+
e[22] || (e[22] = V()),
|
|
341
|
+
k("span", null, h(R.fullName), 1)
|
|
342
|
+
])) : ae("", !0),
|
|
343
|
+
He((b(), H(t(z), {
|
|
344
|
+
disabled: X.value,
|
|
345
345
|
plain: "",
|
|
346
|
-
onClick:
|
|
346
|
+
onClick: ze,
|
|
347
347
|
style: { "margin-top": ".5rem" }
|
|
348
348
|
}, {
|
|
349
|
-
default:
|
|
350
|
-
|
|
349
|
+
default: g(() => [
|
|
350
|
+
V(h(t(d)("workSchedule.exportExcel")), 1)
|
|
351
351
|
]),
|
|
352
352
|
_: 1
|
|
353
353
|
}, 8, ["disabled"])), [
|
|
354
|
-
[
|
|
354
|
+
[s, X.value]
|
|
355
355
|
]),
|
|
356
|
-
|
|
356
|
+
r(t(Le), {
|
|
357
357
|
title: t(d)("workSchedule.jobTitle"),
|
|
358
|
-
modelValue:
|
|
359
|
-
"onUpdate:modelValue": e[7] || (e[7] = (a) =>
|
|
358
|
+
modelValue: q.value,
|
|
359
|
+
"onUpdate:modelValue": e[7] || (e[7] = (a) => q.value = a),
|
|
360
360
|
width: "400px"
|
|
361
361
|
}, {
|
|
362
|
-
footer:
|
|
363
|
-
|
|
364
|
-
onClick: e[5] || (e[5] = (a) =>
|
|
362
|
+
footer: g(() => [
|
|
363
|
+
r(t(z), {
|
|
364
|
+
onClick: e[5] || (e[5] = (a) => q.value = !1),
|
|
365
365
|
size: "default"
|
|
366
366
|
}, {
|
|
367
|
-
default:
|
|
368
|
-
|
|
367
|
+
default: g(() => [
|
|
368
|
+
V(h(l.$t("workSchedule.cancel")), 1)
|
|
369
369
|
]),
|
|
370
370
|
_: 1
|
|
371
371
|
}),
|
|
372
|
-
|
|
372
|
+
r(t(z), {
|
|
373
373
|
size: "default",
|
|
374
374
|
type: "primary",
|
|
375
375
|
onClick: e[6] || (e[6] = (a) => {
|
|
376
|
-
|
|
376
|
+
ie(), q.value = !1;
|
|
377
377
|
})
|
|
378
378
|
}, {
|
|
379
|
-
default:
|
|
380
|
-
|
|
379
|
+
default: g(() => [
|
|
380
|
+
V(h(l.$t("workSchedule.select")), 1)
|
|
381
381
|
]),
|
|
382
382
|
_: 1
|
|
383
383
|
})
|
|
384
384
|
]),
|
|
385
|
-
default:
|
|
386
|
-
|
|
385
|
+
default: g(() => [
|
|
386
|
+
r(t(Ze), {
|
|
387
387
|
ref: "dialogForm",
|
|
388
|
-
model:
|
|
388
|
+
model: A.value,
|
|
389
389
|
autocomplete: "on"
|
|
390
390
|
}, {
|
|
391
|
-
default:
|
|
392
|
-
(
|
|
393
|
-
default:
|
|
394
|
-
|
|
391
|
+
default: g(() => [
|
|
392
|
+
(b(!0), U(re, null, se(A.value, (a) => (b(), H(t(Je), null, {
|
|
393
|
+
default: g(() => [
|
|
394
|
+
r(t(ge), {
|
|
395
395
|
modelValue: a.val,
|
|
396
|
-
"onUpdate:modelValue": (
|
|
396
|
+
"onUpdate:modelValue": ($) => a.val = $,
|
|
397
397
|
"active-text": a.activeText
|
|
398
398
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-text"])
|
|
399
399
|
]),
|
|
@@ -405,116 +405,116 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
|
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
407
|
}, 8, ["title", "modelValue"]),
|
|
408
|
-
|
|
409
|
-
show:
|
|
410
|
-
"onUpdate:show": e[20] || (e[20] = (a) =>
|
|
411
|
-
options:
|
|
408
|
+
r(t(Ke), {
|
|
409
|
+
show: P.value,
|
|
410
|
+
"onUpdate:show": e[20] || (e[20] = (a) => P.value = a),
|
|
411
|
+
options: de.value
|
|
412
412
|
}, {
|
|
413
|
-
default:
|
|
414
|
-
|
|
413
|
+
default: g(() => [
|
|
414
|
+
k("div", {
|
|
415
415
|
class: "mx-context-menu-item",
|
|
416
|
-
onClick: e[8] || (e[8] = (a) =>
|
|
416
|
+
onClick: e[8] || (e[8] = (a) => P.value = !1)
|
|
417
417
|
}, [
|
|
418
|
-
|
|
419
|
-
e[23] || (e[23] =
|
|
420
|
-
|
|
418
|
+
k("span", nl, h(c.value.name), 1),
|
|
419
|
+
e[23] || (e[23] = k("div", { class: "expander" }, null, -1)),
|
|
420
|
+
r(i, { "icon-class": "cross" })
|
|
421
421
|
]),
|
|
422
|
-
|
|
423
|
-
c.value.level === 2 ? (
|
|
424
|
-
|
|
425
|
-
modelValue:
|
|
426
|
-
"onUpdate:modelValue": e[9] || (e[9] = (a) =>
|
|
422
|
+
r(t(Xe)),
|
|
423
|
+
c.value.level === 2 ? (b(), U("div", ul, [
|
|
424
|
+
r(t(Qe), {
|
|
425
|
+
modelValue: ue.value,
|
|
426
|
+
"onUpdate:modelValue": e[9] || (e[9] = (a) => ue.value = a),
|
|
427
427
|
size: "small"
|
|
428
428
|
}, {
|
|
429
|
-
default:
|
|
430
|
-
|
|
429
|
+
default: g(() => [
|
|
430
|
+
r(t(me), {
|
|
431
431
|
label: t(d)("workSchedule.Days5"),
|
|
432
432
|
value: "5"
|
|
433
433
|
}, null, 8, ["label"]),
|
|
434
|
-
|
|
434
|
+
r(t(me), {
|
|
435
435
|
label: "2 Х 2",
|
|
436
436
|
value: "2x2"
|
|
437
437
|
}),
|
|
438
|
-
|
|
438
|
+
r(t(me), {
|
|
439
439
|
label: "2 Х 5",
|
|
440
440
|
value: "2x5"
|
|
441
441
|
})
|
|
442
442
|
]),
|
|
443
443
|
_: 1
|
|
444
444
|
}, 8, ["modelValue"]),
|
|
445
|
-
e[24] || (e[24] =
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
modelValue:
|
|
449
|
-
"onUpdate:modelValue": e[10] || (e[10] = (a) =>
|
|
445
|
+
e[24] || (e[24] = k("br", null, null, -1)),
|
|
446
|
+
k("span", null, h(t(d)("workSchedule.fromDate")) + ":", 1),
|
|
447
|
+
r(t(Q), {
|
|
448
|
+
modelValue: j.value,
|
|
449
|
+
"onUpdate:modelValue": e[10] || (e[10] = (a) => j.value = a),
|
|
450
450
|
step: 1,
|
|
451
451
|
min: 1,
|
|
452
452
|
max: o.value.length
|
|
453
453
|
}, null, 8, ["modelValue", "max"]),
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
modelValue:
|
|
457
|
-
"onUpdate:modelValue": e[11] || (e[11] = (a) =>
|
|
454
|
+
k("span", null, h(t(d)("workSchedule.with")) + ":", 1),
|
|
455
|
+
r(t(Q), {
|
|
456
|
+
modelValue: C.value,
|
|
457
|
+
"onUpdate:modelValue": e[11] || (e[11] = (a) => C.value = a),
|
|
458
458
|
step: 1,
|
|
459
459
|
min: 0,
|
|
460
460
|
max: 19
|
|
461
461
|
}, null, 8, ["modelValue"]),
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
modelValue:
|
|
465
|
-
"onUpdate:modelValue": e[12] || (e[12] = (a) =>
|
|
462
|
+
k("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
|
|
463
|
+
r(t(Q), {
|
|
464
|
+
modelValue: w.value,
|
|
465
|
+
"onUpdate:modelValue": e[12] || (e[12] = (a) => w.value = a),
|
|
466
466
|
step: 1,
|
|
467
467
|
min: 4,
|
|
468
|
-
max: t(
|
|
468
|
+
max: t(xe)(C.value !== 1 ? 23 - C.value : 21, 4, 22)
|
|
469
469
|
}, null, 8, ["modelValue", "max"]),
|
|
470
|
-
|
|
470
|
+
r(t(z), {
|
|
471
471
|
style: { "margin-top": ".5rem" },
|
|
472
472
|
size: "small",
|
|
473
|
-
onClick: e[13] || (e[13] = (a) =>
|
|
473
|
+
onClick: e[13] || (e[13] = (a) => Ae(c.value.ids))
|
|
474
474
|
}, {
|
|
475
|
-
default:
|
|
476
|
-
|
|
475
|
+
default: g(() => [
|
|
476
|
+
V(h(t(d)("workSchedule.fillOut")), 1)
|
|
477
477
|
]),
|
|
478
478
|
_: 1
|
|
479
479
|
}),
|
|
480
|
-
|
|
480
|
+
r(t(z), {
|
|
481
481
|
style: { "margin-top": ".5rem" },
|
|
482
482
|
size: "small",
|
|
483
|
-
onClick: e[14] || (e[14] = (a) =>
|
|
483
|
+
onClick: e[14] || (e[14] = (a) => Te(c.value.ids))
|
|
484
484
|
}, {
|
|
485
|
-
default:
|
|
486
|
-
|
|
485
|
+
default: g(() => [
|
|
486
|
+
V(h(t(d)("workSchedule.clearRow")), 1)
|
|
487
487
|
]),
|
|
488
488
|
_: 1
|
|
489
489
|
})
|
|
490
|
-
])) : (
|
|
491
|
-
|
|
492
|
-
e[25] || (e[25] =
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
modelValue:
|
|
496
|
-
"onUpdate:modelValue": e[15] || (e[15] = (a) =>
|
|
490
|
+
])) : (b(), U("div", ol, [
|
|
491
|
+
k("div", null, h(ce(c.value.day, c.value.ids)), 1),
|
|
492
|
+
e[25] || (e[25] = k("br", null, null, -1)),
|
|
493
|
+
k("span", null, h(t(d)("workSchedule.with")) + ":", 1),
|
|
494
|
+
r(t(Q), {
|
|
495
|
+
modelValue: C.value,
|
|
496
|
+
"onUpdate:modelValue": e[15] || (e[15] = (a) => C.value = a),
|
|
497
497
|
step: 1,
|
|
498
498
|
min: 0,
|
|
499
499
|
max: 19,
|
|
500
|
-
onChange: e[16] || (e[16] = (a) =>
|
|
500
|
+
onChange: e[16] || (e[16] = (a) => pe(c.value.day, c.value.ids))
|
|
501
501
|
}, null, 8, ["modelValue"]),
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
modelValue:
|
|
505
|
-
"onUpdate:modelValue": e[17] || (e[17] = (a) =>
|
|
502
|
+
k("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
|
|
503
|
+
r(t(Q), {
|
|
504
|
+
modelValue: w.value,
|
|
505
|
+
"onUpdate:modelValue": e[17] || (e[17] = (a) => w.value = a),
|
|
506
506
|
step: 1,
|
|
507
507
|
min: 4,
|
|
508
|
-
max: t(
|
|
509
|
-
onChange: e[18] || (e[18] = (a) =>
|
|
508
|
+
max: t(xe)(C.value !== 1 ? 23 - C.value : 21, 4, 22),
|
|
509
|
+
onChange: e[18] || (e[18] = (a) => pe(c.value.day, c.value.ids))
|
|
510
510
|
}, null, 8, ["modelValue", "max"]),
|
|
511
|
-
|
|
511
|
+
r(t(z), {
|
|
512
512
|
style: { "margin-top": ".5rem" },
|
|
513
513
|
size: "small",
|
|
514
|
-
onClick: e[19] || (e[19] = (a) =>
|
|
514
|
+
onClick: e[19] || (e[19] = (a) => Be(c.value.day, c.value.ids))
|
|
515
515
|
}, {
|
|
516
|
-
default:
|
|
517
|
-
|
|
516
|
+
default: g(() => [
|
|
517
|
+
V(h(t(d)("workSchedule.delete")), 1)
|
|
518
518
|
]),
|
|
519
519
|
_: 1
|
|
520
520
|
})
|
|
@@ -527,5 +527,5 @@ const Xe = { class: "work" }, _e = { class: "nav" }, el = { style: { height: "10
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
export {
|
|
530
|
-
|
|
530
|
+
ml as default
|
|
531
531
|
};
|