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