@studio-west/employees 0.4.5 → 0.4.6
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/package.json +1 -1
- package/dist/VacationTable.cjs +0 -1
- package/dist/VacationTable.js +0 -728
- package/dist/WorkTable.cjs +0 -3
- package/dist/WorkTable.js +0 -513
- package/dist/employees.css +0 -1
- package/dist/index-CHGzf-XH.cjs +0 -1
- package/dist/index-uVRk2ARj.js +0 -100
package/dist/VacationTable.js
DELETED
|
@@ -1,728 +0,0 @@
|
|
|
1
|
-
import { ref as f, openBlock as h, createElementBlock as $, createElementVNode as y, toDisplayString as b, unref as a, Fragment as P, renderList as W, normalizeClass as re, createCommentVNode as O, watch as ye, computed as Ce, resolveDirective as be, createBlock as B, withCtx as m, createVNode as v, createTextVNode as V, withDirectives as De } from "vue";
|
|
2
|
-
import { p as G, h as Se } from "./index-uVRk2ARj.js";
|
|
3
|
-
import { useI18n as me } from "vue-i18n";
|
|
4
|
-
import { saveAs as we } from "file-saver";
|
|
5
|
-
import * as xe from "exceljs";
|
|
6
|
-
import { ElSelect as ie, ElOption as de, ElButton as F, ElSkeleton as ke, ElSkeletonItem as le, ElTable as Ee, ElTableColumn as L, ElInput as $e, ElDialog as ve, ElForm as ce, ElFormItem as Te, ElSwitch as Ve } from "element-plus";
|
|
7
|
-
import { ContextMenu as Me, ContextMenuItem as se, ContextMenuSeparator as Ie } from "@imengyu/vue3-context-menu";
|
|
8
|
-
const _e = (A, M) => {
|
|
9
|
-
const n = A.__vccOpts || A;
|
|
10
|
-
for (const [w, o] of M)
|
|
11
|
-
n[w] = o;
|
|
12
|
-
return n;
|
|
13
|
-
}, Ye = { class: "wrapper" }, Be = { class: "month_year" }, Fe = { class: "text" }, Ge = { class: "week" }, Ae = { class: "month" }, je = ["onClick"], ze = { key: 0 }, Ne = { class: "month_year" }, Ue = { class: "text" }, Re = { class: "week" }, Oe = { class: "month" }, Pe = ["onClick"], qe = {
|
|
14
|
-
__name: "DataPicker",
|
|
15
|
-
props: {
|
|
16
|
-
data: Object,
|
|
17
|
-
limitation: { type: [Boolean, Array], default: () => !1 },
|
|
18
|
-
// {dateEnd:"30.12.2024",dateStart:"30.11.2024"}
|
|
19
|
-
range: { type: String, default: () => "solid" }
|
|
20
|
-
// range | solid
|
|
21
|
-
},
|
|
22
|
-
emits: ["init"],
|
|
23
|
-
setup(A, { emit: M }) {
|
|
24
|
-
var ae, ne, oe, Q;
|
|
25
|
-
const n = f(/* @__PURE__ */ new Date()), w = f(/* @__PURE__ */ new Date()), o = A, J = M, S = f((/* @__PURE__ */ new Date()).getFullYear()), j = f((/* @__PURE__ */ new Date()).getMonth()), X = f((/* @__PURE__ */ new Date()).getFullYear()), g = f((/* @__PURE__ */ new Date()).getMonth()), s = f([]), z = f(0), q = f(0), D = f(-1), k = f(-1), { locale: Z } = me(), _ = /en|zh|ja|he/.test(Z.value) ? 0 : 1, Y = o.range === "range" ? 2 : 1, N = (r) => {
|
|
26
|
-
const i = r.split(r.match(/\D.*?\D?/));
|
|
27
|
-
return i[0].length > 2 ? i.join("-") + "T00:00:01" : i.reverse().join("-") + "T00:00:01";
|
|
28
|
-
};
|
|
29
|
-
typeof ((ae = o.data) == null ? void 0 : ae.startDate) < "u" && (n.value = new Date(N(o.data.startDate)), S.value = n.value.getFullYear(), g.value = n.value.getMonth()), typeof ((ne = o.data) == null ? void 0 : ne.endDate) < "u" && (w.value = new Date(N(o.data.endDate)), X.value = w.value.getFullYear(), j.value = w.value.getMonth());
|
|
30
|
-
const c = () => {
|
|
31
|
-
let r = new Date(S.value, g.value, 0);
|
|
32
|
-
for (let t = r.getDate() - r.getDay() + _; t <= r.getDate() && r.getDay() !== 6 + _; t++)
|
|
33
|
-
z.value++, s.value.push({ day: t, month: r.getMonth(), year: r.getFullYear(), class: [] });
|
|
34
|
-
for (let t = 1; t <= new Date(S.value, g.value + 1, 0).getDate(); t++)
|
|
35
|
-
z.value++, s.value.push({ day: t, month: g.value, year: S.value, class: [] });
|
|
36
|
-
if (o.range === "range") {
|
|
37
|
-
q.value = new Date(S.value, g.value + 2, 0);
|
|
38
|
-
for (let t = 1; t <= q.value.getDate(); t++)
|
|
39
|
-
s.value.push({ day: t, month: q.value.getMonth(), year: q.value.getFullYear(), class: [] });
|
|
40
|
-
}
|
|
41
|
-
let i = new Date(S.value, g.value + Y, 1);
|
|
42
|
-
console.log(i.getDay());
|
|
43
|
-
for (let t = 1; t <= (7 - i.getDay() + _) % 7 && i.getDay() !== _; t++)
|
|
44
|
-
s.value.push({ day: t, month: i.getMonth(), year: i.getFullYear(), class: [] });
|
|
45
|
-
o.data.holiday.length !== 0 && (o.data.holiday.preholidays.forEach((t) => {
|
|
46
|
-
let d = t.split("-");
|
|
47
|
-
const x = s.value.findIndex((T) => T.year == d[0] && T.month + 1 == d[1] && T.day == d[2]);
|
|
48
|
-
x !== -1 && (s.value[x].class[0] = "preholiday");
|
|
49
|
-
}), o.data.holiday.holidays.forEach((t) => {
|
|
50
|
-
let d = t.split("-");
|
|
51
|
-
const x = s.value.findIndex((T) => T.year == d[0] && T.month + 1 == d[1] && T.day == d[2]);
|
|
52
|
-
x !== -1 && (s.value[x].class[0] = "weekend");
|
|
53
|
-
}), o.data.holiday.holiday.forEach((t) => {
|
|
54
|
-
let d = t.split("-");
|
|
55
|
-
const x = s.value.findIndex((T) => T.year == d[0] && T.month + 1 == d[1] && T.day == d[2]);
|
|
56
|
-
x !== -1 && (s.value[x].class[0] = "holiday");
|
|
57
|
-
}), o.data.holiday.nowork.forEach((t) => {
|
|
58
|
-
let d = t.split("-");
|
|
59
|
-
const x = s.value.findIndex((T) => T.year == d[0] && T.month + 1 == d[1] && T.day == d[2]);
|
|
60
|
-
x !== -1 && (s.value[x].class[0] = "nowork");
|
|
61
|
-
}));
|
|
62
|
-
}, te = (r, i) => {
|
|
63
|
-
let t = r - i + 1;
|
|
64
|
-
for (let d = 0; d <= r - i; d++)
|
|
65
|
-
s.value[d + i].class[0] === "holiday" && t--;
|
|
66
|
-
return t;
|
|
67
|
-
}, E = (r, i) => {
|
|
68
|
-
const t = G(new Date(r.year, r.month, r.day), "{dd}.{m}.{Y}");
|
|
69
|
-
if (o.range === "range")
|
|
70
|
-
if (console.log(D.value), k.value !== -1) {
|
|
71
|
-
if (k.value <= D.value)
|
|
72
|
-
for (let d = k.value; d <= D.value; d++) s.value[d].class[1] = "";
|
|
73
|
-
else for (let d = D.value; d <= k.value; d++) s.value[d].class[1] = "";
|
|
74
|
-
D.value = i, k.value = -1, s.value[i].class[1] = "active";
|
|
75
|
-
} else if (D.value !== -1) {
|
|
76
|
-
if (k.value = i, k.value >= D.value)
|
|
77
|
-
for (let x = D.value + 1; x < i; x++) s.value[x].class[1] = "select";
|
|
78
|
-
else for (let x = i + 1; x < D.value; x++) s.value[x].class[1] = "select";
|
|
79
|
-
s.value[i].class[1] = "active";
|
|
80
|
-
let d = G(new Date(s.value[D.value].year, s.value[D.value].month, s.value[D.value].day), "{dd}.{m}.{Y}");
|
|
81
|
-
D.value > i ? J("input", { dateStart: t, dateEnd: d, count: te(D.value, i) }) : J("input", { dateStart: d, dateEnd: t, count: te(i, D.value) });
|
|
82
|
-
} else
|
|
83
|
-
D.value = i, s.value[i].class[1] = "active";
|
|
84
|
-
else
|
|
85
|
-
s.value[D.value].class[1] = "", D.value = i, s.value[i].class[1] = "active", J("input", { dateStart: t, count: 1 });
|
|
86
|
-
};
|
|
87
|
-
if (c(), typeof ((oe = o.data) == null ? void 0 : oe.startDate) < "u" && (D.value = s.value.findIndex((r) => r.day === n.value.getDate() && r.month === g.value && r.year === S.value), s.value[D.value].class[1] = "active"), typeof ((Q = o.data) == null ? void 0 : Q.endDate) < "u" && o.range === "range") {
|
|
88
|
-
k.value = s.value.findIndex((r) => r.day === w.value.getDate() && r.month === j.value && r.year === X.value), s.value[k.value].class[1] = "active";
|
|
89
|
-
for (let r = D.value + 1; r < k.value; r++) s.value[r].class[1] = "select";
|
|
90
|
-
}
|
|
91
|
-
const U = (r, i) => {
|
|
92
|
-
H(r, i) && (s.value = [], z.value = 0, n.value = new Date(r, i, 1), S.value = n.value.getFullYear(), g.value = n.value.getMonth(), c());
|
|
93
|
-
}, H = (r, i) => {
|
|
94
|
-
if (!o.limitation) return !0;
|
|
95
|
-
if (o.limitation[0].dateStart) {
|
|
96
|
-
console.log(o.limitation[0].dateStart);
|
|
97
|
-
let t = o.limitation[0].dateStart.split(o.limitation[0].dateStart.match(/\D.*?\D?/));
|
|
98
|
-
if (t[0].length > 2 && t.reverse(), parseInt(t[2]) > r || parseInt(t[2]) === r && parseInt(t[1]) > i + 1) return !1;
|
|
99
|
-
}
|
|
100
|
-
if (o.limitation[o.limitation.length - 1].dateEnd) {
|
|
101
|
-
console.log(o.limitation[o.limitation.length - 1].dateEnd);
|
|
102
|
-
let t = o.limitation[o.limitation.length - 1].dateEnd.split(o.limitation[o.limitation.length - 1].dateEnd.match(/\D.*?\D?/));
|
|
103
|
-
if (t[0].length > 2 && t.reverse(), parseInt(t[2]) < r || parseInt(t[2]) === r && parseInt(t[1]) < i + Y) return !1;
|
|
104
|
-
}
|
|
105
|
-
return !0;
|
|
106
|
-
};
|
|
107
|
-
return (r, i) => (h(), $("div", Ye, [
|
|
108
|
-
y("div", null, [
|
|
109
|
-
y("p", Be, [
|
|
110
|
-
y("span", null, [
|
|
111
|
-
y("button", {
|
|
112
|
-
onClick: i[0] || (i[0] = (t) => U(S.value - 1, g.value))
|
|
113
|
-
}, "«"),
|
|
114
|
-
y("button", {
|
|
115
|
-
onClick: i[1] || (i[1] = (t) => U(S.value, g.value - 1))
|
|
116
|
-
}, "‹")
|
|
117
|
-
]),
|
|
118
|
-
y("span", Fe, [
|
|
119
|
-
y("button", null, b(S.value), 1),
|
|
120
|
-
y("button", null, b(a(G)(n.value.setMonth(g.value), "{F}")), 1)
|
|
121
|
-
]),
|
|
122
|
-
y("span", null, [
|
|
123
|
-
y("button", {
|
|
124
|
-
onClick: i[2] || (i[2] = (t) => U(S.value, g.value + 1))
|
|
125
|
-
}, "›"),
|
|
126
|
-
y("button", {
|
|
127
|
-
onClick: i[3] || (i[3] = (t) => U(S.value + 1, g.value))
|
|
128
|
-
}, "»")
|
|
129
|
-
])
|
|
130
|
-
]),
|
|
131
|
-
y("div", Ge, [
|
|
132
|
-
(h(), $(P, null, W(7, (t, d) => y("button", {
|
|
133
|
-
key: d,
|
|
134
|
-
class: "disabled"
|
|
135
|
-
}, b(a(G)(new Date(1970, 1, t + a(_)), "{D}")), 1)), 64))
|
|
136
|
-
]),
|
|
137
|
-
y("div", Ae, [
|
|
138
|
-
(h(!0), $(P, null, W(s.value, (t, d) => (h(), $(P, { key: d }, [
|
|
139
|
-
d < z.value + (7 - new Date(S.value, g.value + 1, 1).getDay() + a(_)) % 7 ? (h(), $("button", {
|
|
140
|
-
key: 0,
|
|
141
|
-
class: re(t.month === g.value && (!o.limitation || new Date(t.year, t.month, t.day + 1).getTime() > new Date(N(o.limitation[0].dateStart)).getTime() && new Date(t.year, t.month, t.day).getTime() < new Date(N(o.limitation[0].dateEnd)).getTime()) ? t.class : "disabled"),
|
|
142
|
-
onClick: () => {
|
|
143
|
-
t.month === g.value && E(t, d);
|
|
144
|
-
}
|
|
145
|
-
}, b(t.day), 11, je)) : O("", !0)
|
|
146
|
-
], 64))), 128))
|
|
147
|
-
])
|
|
148
|
-
]),
|
|
149
|
-
o.range === "range" ? (h(), $("div", ze, [
|
|
150
|
-
y("p", Ne, [
|
|
151
|
-
y("span", null, [
|
|
152
|
-
y("button", {
|
|
153
|
-
onClick: i[4] || (i[4] = (t) => U(S.value - 1, g.value))
|
|
154
|
-
}, "«"),
|
|
155
|
-
y("button", {
|
|
156
|
-
onClick: i[5] || (i[5] = (t) => U(S.value, g.value - 1))
|
|
157
|
-
}, "‹")
|
|
158
|
-
]),
|
|
159
|
-
y("span", Ue, [
|
|
160
|
-
y("button", null, b(new Date(S.value, g.value + 1).getFullYear()), 1),
|
|
161
|
-
y("button", null, b(a(G)(n.value.setMonth(g.value + 1), "{F}")), 1)
|
|
162
|
-
]),
|
|
163
|
-
y("span", null, [
|
|
164
|
-
y("button", {
|
|
165
|
-
onClick: i[6] || (i[6] = (t) => U(S.value, g.value + 1))
|
|
166
|
-
}, "›"),
|
|
167
|
-
y("button", {
|
|
168
|
-
onClick: i[7] || (i[7] = (t) => U(S.value + 1, g.value))
|
|
169
|
-
}, "»")
|
|
170
|
-
])
|
|
171
|
-
]),
|
|
172
|
-
y("div", Re, [
|
|
173
|
-
(h(), $(P, null, W(7, (t, d) => y("button", {
|
|
174
|
-
key: d,
|
|
175
|
-
class: "disabled"
|
|
176
|
-
}, b(a(G)(new Date(1970, 1, t + a(_)), "{D}")), 1)), 64))
|
|
177
|
-
]),
|
|
178
|
-
y("div", Oe, [
|
|
179
|
-
(h(!0), $(P, null, W(s.value, (t, d) => (h(), $(P, { key: d }, [
|
|
180
|
-
d >= z.value - (7 + new Date(S.value, g.value + 1, 1).getDay() - a(_)) % 7 ? (h(), $("button", {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: re(t.month === q.value.getMonth() && (!o.limitation || new Date(t.year, t.month, t.day + 1).getTime() > new Date(N(o.limitation[0].dateStart)).getTime() && new Date(t.year, t.month, t.day).getTime() < new Date(N(o.limitation[0].dateEnd)).getTime()) ? t.class : "disabled"),
|
|
183
|
-
onClick: () => {
|
|
184
|
-
t.month === q.value.getMonth() && E(t, d);
|
|
185
|
-
}
|
|
186
|
-
}, b(t.day), 11, Pe)) : O("", !0)
|
|
187
|
-
], 64))), 128))
|
|
188
|
-
])
|
|
189
|
-
])) : O("", !0)
|
|
190
|
-
]));
|
|
191
|
-
}
|
|
192
|
-
}, Le = /* @__PURE__ */ _e(qe, [["__scopeId", "data-v-5b3d4c74"]]), We = {
|
|
193
|
-
key: 1,
|
|
194
|
-
class: "controls-container",
|
|
195
|
-
style: { "margin-top": ".5rem" }
|
|
196
|
-
}, Je = { key: 0 }, Xe = {
|
|
197
|
-
key: 1,
|
|
198
|
-
style: { padding: "0 1rem .5rem" }
|
|
199
|
-
}, tl = {
|
|
200
|
-
__name: "VacationTable",
|
|
201
|
-
props: {
|
|
202
|
-
checkEdit: { type: Boolean, default: () => !0 },
|
|
203
|
-
odata: Object,
|
|
204
|
-
workSchedule: Object,
|
|
205
|
-
query: String,
|
|
206
|
-
fullName: { type: String, default: "Вы" }
|
|
207
|
-
},
|
|
208
|
-
setup(A) {
|
|
209
|
-
const M = A, { t: n } = me(), w = f([
|
|
210
|
-
// { name: 'Иванов Петр Михалыч',
|
|
211
|
-
// jobTitle: '(Ведущий работник месяца)',
|
|
212
|
-
// days: [{dateStart: "03.05.2024", dateEnd: "06.06.2024", note: 'забил - сказал он ослик', count: 14 },
|
|
213
|
-
// {dateStart: "23.07.2024", dateEnd: "06.08.2024", note: 'забил - сказал он осёл', count: 14 }
|
|
214
|
-
// ],
|
|
215
|
-
// code: '0000-00052'
|
|
216
|
-
// },
|
|
217
|
-
// { name: 'Петров Илья Пророкович',
|
|
218
|
-
// jobTitle: '(Ведущий работник года)',
|
|
219
|
-
// days: [{dateStart: "23.12.2024", dateEnd: "30.12.2024", note: 'забил - сказал он ослик', count: 14 }],
|
|
220
|
-
// code: '0000-00053'
|
|
221
|
-
// },
|
|
222
|
-
// { name: 'Хренова Гадя Петрович',
|
|
223
|
-
// jobTitle: '(Ведущий работник дня)',
|
|
224
|
-
// days: [{note:''}],
|
|
225
|
-
// code: '0000-00053'
|
|
226
|
-
// }
|
|
227
|
-
]);
|
|
228
|
-
f([]);
|
|
229
|
-
const o = f((/* @__PURE__ */ new Date()).getFullYear()), J = f(!1), S = f(!1), j = f(!1), X = f({
|
|
230
|
-
zIndex: 3,
|
|
231
|
-
minWidth: 230,
|
|
232
|
-
x: 500,
|
|
233
|
-
y: 200
|
|
234
|
-
}), g = f(!1), s = f(!1), z = f({ participants: [] }), q = f([]), D = f([]), k = f("all"), Z = f([{ value: "all", label: n("vacationSchedule.all"), key: "all" }]), _ = f(!1), Y = f([]), N = f(!1), c = f({ name: "", length: 0, code: "" }), te = (/* @__PURE__ */ new Date()).getMonth() > 11 ? [{ value: o.value, label: o.value }, { value: o.value + 1, label: o.value + 1 }] : [{ value: o.value - 1, label: o.value - 1 }, { value: o.value, label: o.value }];
|
|
235
|
-
ye(k, async (u, e) => {
|
|
236
|
-
u !== e && (Y.value = [], J.value = !1, M.odata.personalManagerData.forEach((p) => {
|
|
237
|
-
(p.Status !== "Увольнение" && p.Group === u || u === "all") && (Y.value.some((l) => (l == null ? void 0 : l.activeText) === p.Role) || Y.value.push({ val: !0, activeText: p.Role }));
|
|
238
|
-
}), H());
|
|
239
|
-
});
|
|
240
|
-
const E = Ce(() => w.value.flatMap((u, e) => !u.days || u.days.length === 0 ? [{ ...u, key: 0, ids: e }] : u.days.map((p, l) => ({
|
|
241
|
-
ids: e,
|
|
242
|
-
key: l,
|
|
243
|
-
...u,
|
|
244
|
-
...p
|
|
245
|
-
})))), U = async () => {
|
|
246
|
-
M.odata.getPersonalManagerData({}).then((u) => {
|
|
247
|
-
var e;
|
|
248
|
-
k.value = (e = u.find((p) => p.Status !== "Увольнение" && p.Description === M.fullName)) == null ? void 0 : e.Group, u.forEach((p) => {
|
|
249
|
-
p.Status !== "Увольнение" && (Z.value.some((l) => (l == null ? void 0 : l.value) === p.Group) || Z.value.push({ value: p.Group, label: p.Group, key: p.Group }), p.Group === k.value && !Y.value.some((l) => (l == null ? void 0 : l.activeText) === p.Role) && Y.value.push({ val: !0, activeText: p.Role }));
|
|
250
|
-
}), H(), S.value = !1;
|
|
251
|
-
});
|
|
252
|
-
}, H = () => {
|
|
253
|
-
w.value = [];
|
|
254
|
-
let u = [];
|
|
255
|
-
M.odata.personalManagerData.forEach((e) => {
|
|
256
|
-
e.Status !== "Увольнение" && (e.Group === k.value || k.value === "all") && Y.value.some((p) => p.val && p.activeText === e.Role) && (u.push(e.Code), w.value.push({ name: e.Description, days: [{ note: "" }], jobTitle: e.Role, code: e.Code }));
|
|
257
|
-
}), ae(u), g.value = !1;
|
|
258
|
-
}, ae = (u) => {
|
|
259
|
-
M.workSchedule.getAllVacations({ year: o.value }).then(
|
|
260
|
-
(e) => {
|
|
261
|
-
u.forEach((p, l) => {
|
|
262
|
-
w.value[l].days = [{ note: "" }], e.forEach((C) => {
|
|
263
|
-
p === C.code && (typeof w.value[l].days[0].dateStart > "u" ? w.value[l].days[0] = {
|
|
264
|
-
dateStart: G(C.dateStart, "{dd}.{m}.{Y}"),
|
|
265
|
-
dateEnd: G(C.dateEnd, "{dd}.{m}.{Y}"),
|
|
266
|
-
note: C.note,
|
|
267
|
-
count: C.count
|
|
268
|
-
} : w.value[l].days.push({
|
|
269
|
-
dateStart: G(C.dateStart, "{dd}.{m}.{Y}"),
|
|
270
|
-
dateEnd: G(C.dateEnd, "{dd}.{m}.{Y}"),
|
|
271
|
-
note: C.note,
|
|
272
|
-
count: C.count
|
|
273
|
-
}));
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
}
|
|
277
|
-
);
|
|
278
|
-
}, ne = (u) => {
|
|
279
|
-
if (u.columnIndex < 3 && E.value[u.rowIndex].key < E.value[u.rowIndex].days.length)
|
|
280
|
-
return E.value[u.rowIndex].key === 0 ? {
|
|
281
|
-
rowspan: E.value[u.rowIndex].days.length,
|
|
282
|
-
colspan: 1
|
|
283
|
-
} : {
|
|
284
|
-
rowspan: 0,
|
|
285
|
-
colspan: 0
|
|
286
|
-
};
|
|
287
|
-
}, oe = (u, e, p, l) => {
|
|
288
|
-
c.value.ids = u.ids, c.value.key = u.key, c.value.startDate = u.dateStart, c.value.endDate = u.dateEnd, c.value.name = u.name, c.value.count = u.count, c.value.allCount = () => u.days.length === 0 ? 0 : u.days.reduce((C, ee, R) => R !== u.key ? C + parseInt(ee.count) : C, 0), c.value.length = u.days.length, c.value.add = u.days.length > 0 && u.days[u.days.length - 1].count, c.value.level = e.level, c.value.holiday = D.value, X.value.y = l.clientY, X.value.x = l.clientX, e.level === 2 && e.no < 4 && (c.value.add || u.days.length > 1) && (j.value = !0), e.level === 3 && (j.value = !0);
|
|
289
|
-
}, Q = (u) => {
|
|
290
|
-
let e = w.value[c.value.ids];
|
|
291
|
-
switch (u) {
|
|
292
|
-
case "add":
|
|
293
|
-
e.days.push({ note: "" }), console.log(e.days.length);
|
|
294
|
-
break;
|
|
295
|
-
case "delete":
|
|
296
|
-
delete e.days.pop(), t(c.value.ids);
|
|
297
|
-
break;
|
|
298
|
-
}
|
|
299
|
-
j.value = !1;
|
|
300
|
-
}, r = (u) => {
|
|
301
|
-
N.value = u, c.value.count = u.count;
|
|
302
|
-
}, i = () => {
|
|
303
|
-
N.value && (w.value[c.value.ids].days[c.value.key] = { ...N.value, note: "" }, t(c.value.ids)), j.value = !1;
|
|
304
|
-
}, t = (u) => {
|
|
305
|
-
M.workSchedule.rewriteFull({
|
|
306
|
-
year: o.value,
|
|
307
|
-
code: w.value[u].code,
|
|
308
|
-
data: w.value[u].days.map((e) => ({
|
|
309
|
-
dateStart: e.dateStart.split(".").reverse().join("-"),
|
|
310
|
-
dateEnd: e.dateEnd.split(".").reverse().join("-"),
|
|
311
|
-
note: e.note,
|
|
312
|
-
count: e.count
|
|
313
|
-
}))
|
|
314
|
-
});
|
|
315
|
-
}, d = (u) => {
|
|
316
|
-
M.workSchedule.sendConfirmMessage({ fullname: M.fullName, confirm: u }), M.query = "";
|
|
317
|
-
}, x = () => {
|
|
318
|
-
M.workSchedule.sendAgreementMessage({ users: z.value.participants }), s.value = !1;
|
|
319
|
-
};
|
|
320
|
-
M.workSchedule.getBoss().then((u) => {
|
|
321
|
-
q.value = u[0].users;
|
|
322
|
-
}), Se().then((u) => {
|
|
323
|
-
D.value = u, U();
|
|
324
|
-
});
|
|
325
|
-
const T = () => c.value.length < 2 ? [{ dateStart: "01.01." + o.value, dateEnd: "31.12." + o.value }] : [{ dateStart: "01.01." + o.value, dateEnd: "31.12." + o.value }], ge = async () => {
|
|
326
|
-
_.value = !0;
|
|
327
|
-
const u = new xe.Workbook(), e = u.addWorksheet(o.value.toString(), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), p = { vertical: "middle", horizontal: "center" }, l = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, C = { vertical: "middle", horizontal: "center", wrapText: !0 }, ee = { vertical: "middle", horizontal: "right", wrapText: !0 };
|
|
328
|
-
e.mergeCells("D1:G1"), e.mergeCells("D2:G2"), e.mergeCells("D3:G3"), e.mergeCells("D4:G4"), e.mergeCells("A5:G5"), e.mergeCells("A6:G6"), e.mergeCells("A9:G9"), e.mergeCells("A10:A11"), e.mergeCells("B10:B11"), e.mergeCells("C10:C11"), e.mergeCells("D10:F10"), e.mergeCells("G10:G11"), e.getCell("D1").value = n("vacationSchedule.approve"), e.getCell("D2").value = n("vacationSchedule.dateApprove", { year: o.value - 1 }), e.getCell("D3").value = n("workSchedule.printPlace"), e.getCell("D4").value = n("vacationSchedule.dateApprove", { year: o.value - 1 }), e.getCell("A5").value = n("workSchedule.firm"), e.getCell("B7").value = n("vacationSchedule.vacationSchedule"), e.getCell("C7").value = n("vacationSchedule.numberDocs"), e.getCell("D7").value = n("vacationSchedule.compilation"), e.getCell("E7").value = n("vacationSchedule.year"), e.getCell("C8").value = "", e.getCell("D8").value = "", e.getCell("E8").value = o.value, e.getCell("E7").value = n("vacationSchedule.year"), e.getCell("A10").value = n("vacationSchedule.jobTitle"), e.getCell("B10").value = n("vacationSchedule.fullName"), e.getCell("C10").value = n("vacationSchedule.personnelNumber"), e.getCell("D10").value = n("vacationSchedule.vacation"), e.getCell("D11").value = n("vacationSchedule.days"), e.getCell("E11").value = n("vacationSchedule.date"), e.getCell("F11").value = n("vacationSchedule.endDate"), e.getCell("G11").value = n("vacationSchedule.note"), e.getRow(1).height = 80, e.getColumn(1).width = 28, e.getColumn(2).width = 28, e.getColumn(3).width = 18, e.getColumn(4).width = 18, e.getColumn(5).width = 14, e.getColumn(6).width = 14, e.getColumn(7).width = 14, e.getColumn(1).alignment = C, e.getColumn(2).alignment = C, e.getColumn(3).alignment = C, e.getColumn(4).alignment = C, e.getColumn(5).alignment = C, e.getColumn(6).alignment = C, e.getColumn(7).alignment = C, e.getCell("D1").alignment = ee, e.getCell("D2").alignment = ee, e.getCell("D4").alignment = ee, e.getCell("A5").alignment = p, e.getCell("C7").border = l, e.getCell("D7").border = l, e.getCell("E7").border = l, e.getCell("C8").border = l, e.getCell("D8").border = l, e.getCell("E8").border = l, e.getCell("A10").border = l, e.getCell("B10").border = l, e.getCell("C10").border = l, e.getCell("D10").border = l, e.getCell("G10").border = l, e.getCell("D11").border = l, e.getCell("E11").border = l, e.getCell("F11").border = l;
|
|
329
|
-
let R = 11;
|
|
330
|
-
for (const I of w.value)
|
|
331
|
-
if (I.days.length > 1)
|
|
332
|
-
I.days.forEach((K) => {
|
|
333
|
-
let ue = [I.jobTitle, I.name, I.code, K.count, K.dateStart, K.dateEnd, K.note];
|
|
334
|
-
const pe = e.addRow(ue);
|
|
335
|
-
pe.border = l, R++;
|
|
336
|
-
}), e.mergeCells(`A${R - I.days.length + 1}:A${R}`), e.mergeCells(`B${R - I.days.length + 1}:B${R}`), e.mergeCells(`C${R - I.days.length + 1}:C${R}`);
|
|
337
|
-
else {
|
|
338
|
-
let K = [I.jobTitle, I.name, I.code, I.days[0].count, I.days[0].dateStart, I.days[0].dateEnd, I.days[0].note];
|
|
339
|
-
const ue = e.addRow(K);
|
|
340
|
-
ue.border = l, R++;
|
|
341
|
-
}
|
|
342
|
-
const he = "export_" + G(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", fe = await u.xlsx.writeBuffer();
|
|
343
|
-
we(new Blob([fe]), he), _.value = !1;
|
|
344
|
-
};
|
|
345
|
-
return (u, e) => {
|
|
346
|
-
const p = be("loading");
|
|
347
|
-
return h(), $("div", null, [
|
|
348
|
-
A.checkEdit ? (h(), B(a(ie), {
|
|
349
|
-
key: 0,
|
|
350
|
-
modelValue: k.value,
|
|
351
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) => k.value = l),
|
|
352
|
-
placeholder: "Select",
|
|
353
|
-
style: { width: "240px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
|
|
354
|
-
}, {
|
|
355
|
-
default: m(() => [
|
|
356
|
-
(h(!0), $(P, null, W(Z.value, (l) => (h(), B(a(de), {
|
|
357
|
-
key: l.value,
|
|
358
|
-
label: l.label,
|
|
359
|
-
value: l.value
|
|
360
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
361
|
-
]),
|
|
362
|
-
_: 1
|
|
363
|
-
}, 8, ["modelValue"])) : O("", !0),
|
|
364
|
-
v(a(F), {
|
|
365
|
-
plain: "",
|
|
366
|
-
onClick: e[1] || (e[1] = (l) => g.value = !0),
|
|
367
|
-
style: { "margin-bottom": ".5rem", "margin-right": ".5rem" }
|
|
368
|
-
}, {
|
|
369
|
-
default: m(() => [
|
|
370
|
-
V(b(a(n)("workSchedule.jobTitle")), 1)
|
|
371
|
-
]),
|
|
372
|
-
_: 1
|
|
373
|
-
}),
|
|
374
|
-
v(a(ie), {
|
|
375
|
-
modelValue: o.value,
|
|
376
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) => o.value = l),
|
|
377
|
-
onChange: H,
|
|
378
|
-
placeholder: "Year",
|
|
379
|
-
style: { width: "80px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
|
|
380
|
-
}, {
|
|
381
|
-
default: m(() => [
|
|
382
|
-
(h(!0), $(P, null, W(a(te), (l) => (h(), B(a(de), {
|
|
383
|
-
key: l.value,
|
|
384
|
-
label: l.label,
|
|
385
|
-
value: l.value
|
|
386
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
387
|
-
]),
|
|
388
|
-
_: 1
|
|
389
|
-
}, 8, ["modelValue"]),
|
|
390
|
-
v(a(ke), {
|
|
391
|
-
style: { width: "100%" },
|
|
392
|
-
loading: S.value,
|
|
393
|
-
animated: ""
|
|
394
|
-
}, {
|
|
395
|
-
template: m(() => [
|
|
396
|
-
v(a(le), {
|
|
397
|
-
variant: "text",
|
|
398
|
-
style: { width: "100%", height: "2rem" }
|
|
399
|
-
}),
|
|
400
|
-
v(a(le), {
|
|
401
|
-
variant: "text",
|
|
402
|
-
style: { width: "180px", height: "4rem", "margin-right": "4px" }
|
|
403
|
-
}),
|
|
404
|
-
v(a(le), {
|
|
405
|
-
variant: "text",
|
|
406
|
-
style: { width: "calc( 100% - 184px)", height: "4rem" }
|
|
407
|
-
}),
|
|
408
|
-
v(a(le), {
|
|
409
|
-
variant: "text",
|
|
410
|
-
style: { width: "180px", height: "8rem", "margin-right": "4px" }
|
|
411
|
-
}),
|
|
412
|
-
v(a(le), {
|
|
413
|
-
variant: "text",
|
|
414
|
-
style: { width: "calc( 100% - 184px)", height: "8rem" }
|
|
415
|
-
})
|
|
416
|
-
]),
|
|
417
|
-
default: m(() => [
|
|
418
|
-
v(a(Ee), {
|
|
419
|
-
id: "printTable",
|
|
420
|
-
data: E.value,
|
|
421
|
-
"span-method": ne,
|
|
422
|
-
onCellClick: oe,
|
|
423
|
-
border: "",
|
|
424
|
-
style: { width: "100%" },
|
|
425
|
-
size: "small",
|
|
426
|
-
"empty-text": a(n)("vacationSchedule.emptyText")
|
|
427
|
-
}, {
|
|
428
|
-
default: m(() => [
|
|
429
|
-
v(a(L), {
|
|
430
|
-
label: k.value !== "all" ? a(n)("vacationSchedule.title", { name: k.value }) : a(n)("vacationSchedule.enterprise") + ` ${o.value}`,
|
|
431
|
-
align: "center",
|
|
432
|
-
height: "34"
|
|
433
|
-
}, {
|
|
434
|
-
default: m(() => [
|
|
435
|
-
v(a(L), {
|
|
436
|
-
label: a(n)("vacationSchedule.jobTitle"),
|
|
437
|
-
width: "180",
|
|
438
|
-
align: "center"
|
|
439
|
-
}, {
|
|
440
|
-
default: m((l) => [
|
|
441
|
-
V(b(E.value[l.$index].jobTitle), 1)
|
|
442
|
-
]),
|
|
443
|
-
_: 1
|
|
444
|
-
}, 8, ["label"]),
|
|
445
|
-
v(a(L), {
|
|
446
|
-
label: a(n)("vacationSchedule.fullName"),
|
|
447
|
-
width: "180",
|
|
448
|
-
align: "center"
|
|
449
|
-
}, {
|
|
450
|
-
default: m((l) => [
|
|
451
|
-
V(b(E.value[l.$index].name), 1)
|
|
452
|
-
]),
|
|
453
|
-
_: 1
|
|
454
|
-
}, 8, ["label"]),
|
|
455
|
-
v(a(L), {
|
|
456
|
-
label: a(n)("vacationSchedule.personnelNumber"),
|
|
457
|
-
align: "center"
|
|
458
|
-
}, {
|
|
459
|
-
default: m((l) => [
|
|
460
|
-
V(b(E.value[l.$index].code), 1)
|
|
461
|
-
]),
|
|
462
|
-
_: 1
|
|
463
|
-
}, 8, ["label"]),
|
|
464
|
-
v(a(L), {
|
|
465
|
-
label: a(n)("vacationSchedule.vacation"),
|
|
466
|
-
align: "center"
|
|
467
|
-
}, {
|
|
468
|
-
default: m(() => [
|
|
469
|
-
v(a(L), {
|
|
470
|
-
label: a(n)("vacationSchedule.days"),
|
|
471
|
-
align: "center"
|
|
472
|
-
}, {
|
|
473
|
-
default: m((l) => [
|
|
474
|
-
V(b(E.value[l.$index].count), 1)
|
|
475
|
-
]),
|
|
476
|
-
_: 1
|
|
477
|
-
}, 8, ["label"]),
|
|
478
|
-
v(a(L), {
|
|
479
|
-
label: a(n)("vacationSchedule.date"),
|
|
480
|
-
align: "center"
|
|
481
|
-
}, {
|
|
482
|
-
default: m((l) => [
|
|
483
|
-
V(b(E.value[l.$index].dateStart), 1)
|
|
484
|
-
]),
|
|
485
|
-
_: 1
|
|
486
|
-
}, 8, ["label"]),
|
|
487
|
-
v(a(L), {
|
|
488
|
-
label: a(n)("vacationSchedule.endDate"),
|
|
489
|
-
align: "center"
|
|
490
|
-
}, {
|
|
491
|
-
default: m((l) => [
|
|
492
|
-
V(b(E.value[l.$index].dateEnd), 1)
|
|
493
|
-
]),
|
|
494
|
-
_: 1
|
|
495
|
-
}, 8, ["label"])
|
|
496
|
-
]),
|
|
497
|
-
_: 1
|
|
498
|
-
}, 8, ["label"]),
|
|
499
|
-
v(a(L), {
|
|
500
|
-
label: a(n)("vacationSchedule.note"),
|
|
501
|
-
align: "center"
|
|
502
|
-
}, {
|
|
503
|
-
default: m((l) => [
|
|
504
|
-
v(a($e), {
|
|
505
|
-
modelValue: w.value[E.value[l.$index].ids].days[E.value[l.$index].key].note,
|
|
506
|
-
"onUpdate:modelValue": (C) => w.value[E.value[l.$index].ids].days[E.value[l.$index].key].note = C,
|
|
507
|
-
style: { width: "100%" },
|
|
508
|
-
placeholder: " ",
|
|
509
|
-
class: "noBorder",
|
|
510
|
-
onBlur: (C) => t(E.value[l.$index].ids)
|
|
511
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur"])
|
|
512
|
-
]),
|
|
513
|
-
_: 1
|
|
514
|
-
}, 8, ["label"])
|
|
515
|
-
]),
|
|
516
|
-
_: 1
|
|
517
|
-
}, 8, ["label"])
|
|
518
|
-
]),
|
|
519
|
-
_: 1
|
|
520
|
-
}, 8, ["data", "empty-text"])
|
|
521
|
-
]),
|
|
522
|
-
_: 1
|
|
523
|
-
}, 8, ["loading"]),
|
|
524
|
-
A.checkEdit ? (h(), $("div", We, [
|
|
525
|
-
J.value ? O("", !0) : (h(), B(a(F), {
|
|
526
|
-
key: 0,
|
|
527
|
-
type: "primary",
|
|
528
|
-
onClick: e[3] || (e[3] = (l) => s.value = !0)
|
|
529
|
-
}, {
|
|
530
|
-
default: m(() => [
|
|
531
|
-
V(b(a(n)("vacationSchedule.sendInformation")), 1)
|
|
532
|
-
]),
|
|
533
|
-
_: 1
|
|
534
|
-
})),
|
|
535
|
-
A.query === "confirm" ? (h(), B(a(F), {
|
|
536
|
-
key: 1,
|
|
537
|
-
type: "primary",
|
|
538
|
-
onClick: e[4] || (e[4] = (l) => d(!0))
|
|
539
|
-
}, {
|
|
540
|
-
default: m(() => [
|
|
541
|
-
V(b(a(n)("vacationSchedule.agreeOn")), 1)
|
|
542
|
-
]),
|
|
543
|
-
_: 1
|
|
544
|
-
})) : O("", !0),
|
|
545
|
-
A.query === "confirm" ? (h(), B(a(F), {
|
|
546
|
-
key: 2,
|
|
547
|
-
type: "primary",
|
|
548
|
-
onClick: e[5] || (e[5] = (l) => d(!1))
|
|
549
|
-
}, {
|
|
550
|
-
default: m(() => [
|
|
551
|
-
V(b(a(n)("vacationSchedule.reject")), 1)
|
|
552
|
-
]),
|
|
553
|
-
_: 1
|
|
554
|
-
})) : O("", !0)
|
|
555
|
-
])) : O("", !0),
|
|
556
|
-
De((h(), B(a(F), {
|
|
557
|
-
disabled: _.value,
|
|
558
|
-
plain: "",
|
|
559
|
-
onClick: ge,
|
|
560
|
-
style: { "margin-top": ".5rem" }
|
|
561
|
-
}, {
|
|
562
|
-
default: m(() => [
|
|
563
|
-
V(b(a(n)("workSchedule.exportExcel")), 1)
|
|
564
|
-
]),
|
|
565
|
-
_: 1
|
|
566
|
-
}, 8, ["disabled"])), [
|
|
567
|
-
[p, _.value]
|
|
568
|
-
]),
|
|
569
|
-
v(a(ve), {
|
|
570
|
-
title: a(n)("workSchedule.jobTitle"),
|
|
571
|
-
modelValue: g.value,
|
|
572
|
-
"onUpdate:modelValue": e[7] || (e[7] = (l) => g.value = l),
|
|
573
|
-
width: "400px"
|
|
574
|
-
}, {
|
|
575
|
-
footer: m(() => [
|
|
576
|
-
v(a(F), {
|
|
577
|
-
onClick: e[6] || (e[6] = (l) => g.value = !1),
|
|
578
|
-
size: "default"
|
|
579
|
-
}, {
|
|
580
|
-
default: m(() => [
|
|
581
|
-
V(b(u.$t("workSchedule.cancel")), 1)
|
|
582
|
-
]),
|
|
583
|
-
_: 1
|
|
584
|
-
}),
|
|
585
|
-
v(a(F), {
|
|
586
|
-
size: "default",
|
|
587
|
-
type: "primary",
|
|
588
|
-
onClick: H
|
|
589
|
-
}, {
|
|
590
|
-
default: m(() => [
|
|
591
|
-
V(b(u.$t("workSchedule.select")), 1)
|
|
592
|
-
]),
|
|
593
|
-
_: 1
|
|
594
|
-
})
|
|
595
|
-
]),
|
|
596
|
-
default: m(() => [
|
|
597
|
-
v(a(ce), {
|
|
598
|
-
model: Y.value,
|
|
599
|
-
autocomplete: "on"
|
|
600
|
-
}, {
|
|
601
|
-
default: m(() => [
|
|
602
|
-
(h(!0), $(P, null, W(Y.value, (l) => (h(), B(a(Te), null, {
|
|
603
|
-
default: m(() => [
|
|
604
|
-
v(a(Ve), {
|
|
605
|
-
modelValue: l.val,
|
|
606
|
-
"onUpdate:modelValue": (C) => l.val = C,
|
|
607
|
-
"active-text": l.activeText
|
|
608
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "active-text"])
|
|
609
|
-
]),
|
|
610
|
-
_: 2
|
|
611
|
-
}, 1024))), 256))
|
|
612
|
-
]),
|
|
613
|
-
_: 1
|
|
614
|
-
}, 8, ["model"])
|
|
615
|
-
]),
|
|
616
|
-
_: 1
|
|
617
|
-
}, 8, ["title", "modelValue"]),
|
|
618
|
-
v(a(ve), {
|
|
619
|
-
title: a(n)("vacationSchedule.pleaseCoordinate"),
|
|
620
|
-
modelValue: s.value,
|
|
621
|
-
"onUpdate:modelValue": e[10] || (e[10] = (l) => s.value = l),
|
|
622
|
-
width: "500px"
|
|
623
|
-
}, {
|
|
624
|
-
footer: m(() => [
|
|
625
|
-
v(a(F), {
|
|
626
|
-
onClick: e[9] || (e[9] = (l) => s.value = !1),
|
|
627
|
-
size: "default"
|
|
628
|
-
}, {
|
|
629
|
-
default: m(() => [
|
|
630
|
-
V(b(a(n)("workSchedule.cancel")), 1)
|
|
631
|
-
]),
|
|
632
|
-
_: 1
|
|
633
|
-
}),
|
|
634
|
-
v(a(F), {
|
|
635
|
-
size: "default",
|
|
636
|
-
type: "primary",
|
|
637
|
-
onClick: x
|
|
638
|
-
}, {
|
|
639
|
-
default: m(() => [
|
|
640
|
-
V(b(a(n)("vacationSchedule.send")), 1)
|
|
641
|
-
]),
|
|
642
|
-
_: 1
|
|
643
|
-
})
|
|
644
|
-
]),
|
|
645
|
-
default: m(() => [
|
|
646
|
-
v(a(ce), {
|
|
647
|
-
model: z.value,
|
|
648
|
-
autocomplete: "on"
|
|
649
|
-
}, {
|
|
650
|
-
default: m(() => [
|
|
651
|
-
v(a(ie), {
|
|
652
|
-
modelValue: z.value.participants,
|
|
653
|
-
"onUpdate:modelValue": e[8] || (e[8] = (l) => z.value.participants = l),
|
|
654
|
-
placeholder: a(n)("vacationSchedule.fullName"),
|
|
655
|
-
multiple: "",
|
|
656
|
-
size: "default"
|
|
657
|
-
}, {
|
|
658
|
-
default: m(() => [
|
|
659
|
-
(h(!0), $(P, null, W(q.value, (l) => (h(), B(a(de), {
|
|
660
|
-
key: l,
|
|
661
|
-
label: l,
|
|
662
|
-
value: l
|
|
663
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
664
|
-
]),
|
|
665
|
-
_: 1
|
|
666
|
-
}, 8, ["modelValue", "placeholder"])
|
|
667
|
-
]),
|
|
668
|
-
_: 1
|
|
669
|
-
}, 8, ["model"])
|
|
670
|
-
]),
|
|
671
|
-
_: 1
|
|
672
|
-
}, 8, ["title", "modelValue"]),
|
|
673
|
-
v(a(Me), {
|
|
674
|
-
show: j.value,
|
|
675
|
-
"onUpdate:show": e[14] || (e[14] = (l) => j.value = l),
|
|
676
|
-
options: X.value
|
|
677
|
-
}, {
|
|
678
|
-
default: m(() => [
|
|
679
|
-
v(a(se), {
|
|
680
|
-
label: c.value.level === 3 && typeof c.value.count < "u" ? c.value.name + " " + c.value.count + " " + a(n)("vacationSchedule.day", c.value.count) + ` ${a(n)("vacationSchedule.from")}: ${c.value.allCount() + parseInt(c.value.count)}` : c.value.name,
|
|
681
|
-
disabled: ""
|
|
682
|
-
}, null, 8, ["label"]),
|
|
683
|
-
v(a(Ie)),
|
|
684
|
-
c.value.level === 2 ? (h(), $("div", Je, [
|
|
685
|
-
c.value.length > 1 ? (h(), B(a(se), {
|
|
686
|
-
key: 0,
|
|
687
|
-
label: a(n)("vacationSchedule.deleteLast"),
|
|
688
|
-
onClick: e[11] || (e[11] = (l) => Q("delete"))
|
|
689
|
-
}, null, 8, ["label"])) : O("", !0),
|
|
690
|
-
c.value.add ? (h(), B(a(se), {
|
|
691
|
-
key: 1,
|
|
692
|
-
label: a(n)("vacationSchedule.addVacation"),
|
|
693
|
-
onClick: e[12] || (e[12] = (l) => Q("add"))
|
|
694
|
-
}, null, 8, ["label"])) : O("", !0)
|
|
695
|
-
])) : (h(), $("div", Xe, [
|
|
696
|
-
v(Le, {
|
|
697
|
-
data: c.value,
|
|
698
|
-
range: "range",
|
|
699
|
-
limitation: T(),
|
|
700
|
-
onInput: r
|
|
701
|
-
}, null, 8, ["data", "limitation"]),
|
|
702
|
-
y("div", null, [
|
|
703
|
-
v(a(F), {
|
|
704
|
-
onClick: e[13] || (e[13] = (l) => j.value = !1)
|
|
705
|
-
}, {
|
|
706
|
-
default: m(() => [
|
|
707
|
-
V(b(a(n)("vacationSchedule.cancel")), 1)
|
|
708
|
-
]),
|
|
709
|
-
_: 1
|
|
710
|
-
}),
|
|
711
|
-
v(a(F), { onClick: i }, {
|
|
712
|
-
default: m(() => [
|
|
713
|
-
V(b(a(n)("vacationSchedule.save")), 1)
|
|
714
|
-
]),
|
|
715
|
-
_: 1
|
|
716
|
-
})
|
|
717
|
-
])
|
|
718
|
-
]))
|
|
719
|
-
]),
|
|
720
|
-
_: 1
|
|
721
|
-
}, 8, ["show", "options"])
|
|
722
|
-
]);
|
|
723
|
-
};
|
|
724
|
-
}
|
|
725
|
-
};
|
|
726
|
-
export {
|
|
727
|
-
tl as default
|
|
728
|
-
};
|