@studio-west/employees 0.6.51 → 0.6.52
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 +182 -182
- package/dist/WorkTable.cjs +4 -4
- package/dist/WorkTable.js +50 -50
- package/dist/employees.css +1 -1
- package/package.json +4 -2
package/dist/VacationTable.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ref as f, createElementBlock as
|
|
1
|
+
import { ref as f, createElementBlock as T, openBlock as h, createElementVNode as p, createCommentVNode as P, toDisplayString as b, unref as a, Fragment as q, renderList as W, normalizeClass as re, watch as ye, computed as Ce, resolveDirective as be, createBlock as B, createVNode as v, withDirectives as De, withCtx as m, createTextVNode as I } from "vue";
|
|
2
2
|
import { p as A, h as Se } from "./index-2Mx6IUGl.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
6
|
import { ElSelect as ie, ElOption as de, ElButton as F, ElSkeleton as ke, ElTable as Ee, ElTableColumn as R, ElInput as $e, ElSkeletonItem as le, ElDialog as ve, ElForm as ce, ElFormItem as Te, ElSwitch as Ve } from "element-plus";
|
|
7
7
|
import { ContextMenu as Ie, ContextMenuItem as se, ContextMenuSeparator as Ne } from "@imengyu/vue3-context-menu";
|
|
8
|
-
const Me = (j,
|
|
9
|
-
const
|
|
10
|
-
for (const [
|
|
11
|
-
|
|
12
|
-
return
|
|
8
|
+
const Me = (j, i) => {
|
|
9
|
+
const D = j.__vccOpts || j;
|
|
10
|
+
for (const [x, n] of i)
|
|
11
|
+
D[x] = n;
|
|
12
|
+
return D;
|
|
13
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: {
|
|
@@ -20,168 +20,168 @@ const Me = (j, I) => {
|
|
|
20
20
|
// range | solid
|
|
21
21
|
},
|
|
22
22
|
emits: ["input"],
|
|
23
|
-
setup(j, { emit:
|
|
23
|
+
setup(j, { emit: i }) {
|
|
24
24
|
var ae, ne, oe, Q;
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
return
|
|
25
|
+
const D = f(/* @__PURE__ */ new Date()), x = f(/* @__PURE__ */ new Date()), n = j, J = i, w = 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), S = f(-1), E = f(-1), { locale: H } = me(), M = /en|zh|ja|he/.test(H.value) ? 0 : 1, _ = n.range === "range" ? 2 : 1, U = (r) => {
|
|
26
|
+
const u = r.split(r.match(/\D.*?\D?/));
|
|
27
|
+
return u[0].length > 2 ? u.join("-") + "T00:00:01" : u.reverse().join("-") + "T00:00:01";
|
|
28
28
|
};
|
|
29
|
-
typeof ((ae = n.data) == null ? void 0 : ae.startDate) < "u" && (
|
|
29
|
+
typeof ((ae = n.data) == null ? void 0 : ae.startDate) < "u" && (D.value = new Date(U(n.data.startDate)), w.value = D.value.getFullYear(), g.value = D.value.getMonth()), typeof ((ne = n.data) == null ? void 0 : ne.endDate) < "u" && (x.value = new Date(U(n.data.endDate)), K.value = x.value.getFullYear(), z.value = x.value.getMonth());
|
|
30
30
|
const c = () => {
|
|
31
|
-
let r = new Date(
|
|
31
|
+
let r = new Date(w.value, g.value, 0);
|
|
32
32
|
for (let t = r.getDate() - r.getDay() + M; t <= r.getDate() && r.getDay() !== 6 + M; t++)
|
|
33
33
|
G.value++, s.value.push({ day: t, month: r.getMonth(), year: r.getFullYear(), class: [] });
|
|
34
|
-
for (let t = 1; t <= new Date(
|
|
35
|
-
G.value++, s.value.push({ day: t, month: g.value, year:
|
|
34
|
+
for (let t = 1; t <= new Date(w.value, g.value + 1, 0).getDate(); t++)
|
|
35
|
+
G.value++, s.value.push({ day: t, month: g.value, year: w.value, class: [] });
|
|
36
36
|
if (n.range === "range") {
|
|
37
|
-
L.value = new Date(
|
|
37
|
+
L.value = new Date(w.value, g.value + 2, 0);
|
|
38
38
|
for (let t = 1; t <= L.value.getDate(); t++)
|
|
39
39
|
s.value.push({ day: t, month: L.value.getMonth(), year: L.value.getFullYear(), class: [] });
|
|
40
40
|
}
|
|
41
|
-
let
|
|
42
|
-
console.log(
|
|
43
|
-
for (let t = 1; t <= (7 -
|
|
44
|
-
s.value.push({ day: t, month:
|
|
41
|
+
let u = new Date(w.value, g.value + _, 1);
|
|
42
|
+
console.log(u.getDay());
|
|
43
|
+
for (let t = 1; t <= (7 - u.getDay() + M) % 7 && u.getDay() !== M; t++)
|
|
44
|
+
s.value.push({ day: t, month: u.getMonth(), year: u.getFullYear(), class: [] });
|
|
45
45
|
n.data.holiday.length !== 0 && (n.data.holiday.preholidays.forEach((t) => {
|
|
46
46
|
let d = t.split("-");
|
|
47
|
-
const
|
|
48
|
-
|
|
47
|
+
const k = s.value.findIndex((V) => V.year == d[0] && V.month + 1 == d[1] && V.day == d[2]);
|
|
48
|
+
k !== -1 && (s.value[k].class[0] = "preholiday");
|
|
49
49
|
}), n.data.holiday.holidays.forEach((t) => {
|
|
50
50
|
let d = t.split("-");
|
|
51
|
-
const
|
|
52
|
-
|
|
51
|
+
const k = s.value.findIndex((V) => V.year == d[0] && V.month + 1 == d[1] && V.day == d[2]);
|
|
52
|
+
k !== -1 && (s.value[k].class[0] = "weekend");
|
|
53
53
|
}), n.data.holiday.holiday.forEach((t) => {
|
|
54
54
|
let d = t.split("-");
|
|
55
|
-
const
|
|
56
|
-
|
|
55
|
+
const k = s.value.findIndex((V) => V.year == d[0] && V.month + 1 == d[1] && V.day == d[2]);
|
|
56
|
+
k !== -1 && (s.value[k].class[0] = "holiday");
|
|
57
57
|
}), n.data.holiday.nowork.forEach((t) => {
|
|
58
58
|
let d = t.split("-");
|
|
59
|
-
const
|
|
60
|
-
|
|
59
|
+
const k = s.value.findIndex((V) => V.year == d[0] && V.month + 1 == d[1] && V.day == d[2]);
|
|
60
|
+
k !== -1 && (s.value[k].class[0] = "nowork");
|
|
61
61
|
}));
|
|
62
|
-
}, te = (r,
|
|
63
|
-
let t = r -
|
|
64
|
-
for (let d = 0; d <= r -
|
|
65
|
-
s.value[d +
|
|
62
|
+
}, te = (r, u) => {
|
|
63
|
+
let t = r - u + 1;
|
|
64
|
+
for (let d = 0; d <= r - u; d++)
|
|
65
|
+
s.value[d + u].class[0] === "holiday" && t--;
|
|
66
66
|
return t;
|
|
67
|
-
},
|
|
67
|
+
}, $ = (r, u) => {
|
|
68
68
|
const t = A(new Date(r.year, r.month, r.day), "{dd}.{m}.{Y}");
|
|
69
69
|
if (n.range === "range")
|
|
70
|
-
if (console.log(
|
|
71
|
-
if (
|
|
72
|
-
for (let d =
|
|
73
|
-
else for (let d =
|
|
74
|
-
|
|
75
|
-
} else if (
|
|
76
|
-
if (
|
|
77
|
-
for (let
|
|
78
|
-
else for (let
|
|
79
|
-
s.value[
|
|
80
|
-
let d = A(new Date(s.value[
|
|
81
|
-
|
|
70
|
+
if (console.log(S.value), E.value !== -1) {
|
|
71
|
+
if (E.value <= S.value)
|
|
72
|
+
for (let d = E.value; d <= S.value; d++) s.value[d].class[1] = "";
|
|
73
|
+
else for (let d = S.value; d <= E.value; d++) s.value[d].class[1] = "";
|
|
74
|
+
S.value = u, E.value = -1, s.value[u].class[1] = "active";
|
|
75
|
+
} else if (S.value !== -1) {
|
|
76
|
+
if (E.value = u, E.value >= S.value)
|
|
77
|
+
for (let k = S.value + 1; k < u; k++) s.value[k].class[1] = "select";
|
|
78
|
+
else for (let k = u + 1; k < S.value; k++) s.value[k].class[1] = "select";
|
|
79
|
+
s.value[u].class[1] = "active";
|
|
80
|
+
let d = A(new Date(s.value[S.value].year, s.value[S.value].month, s.value[S.value].day), "{dd}.{m}.{Y}");
|
|
81
|
+
S.value > u ? J("input", { dateStart: t, dateEnd: d, count: te(S.value, u) }) : J("input", { dateStart: d, dateEnd: t, count: te(u, S.value) });
|
|
82
82
|
} else
|
|
83
|
-
|
|
83
|
+
S.value = u, s.value[u].class[1] = "active";
|
|
84
84
|
else
|
|
85
|
-
s.value[
|
|
85
|
+
s.value[S.value].class[1] = "", S.value = u, s.value[u].class[1] = "active", J("input", { dateStart: t, count: 1 });
|
|
86
86
|
};
|
|
87
|
-
if (c(), typeof ((oe = n.data) == null ? void 0 : oe.startDate) < "u" && (
|
|
88
|
-
|
|
89
|
-
for (let r =
|
|
87
|
+
if (c(), typeof ((oe = n.data) == null ? void 0 : oe.startDate) < "u" && (S.value = s.value.findIndex((r) => r.day === D.value.getDate() && r.month === g.value && r.year === w.value), s.value[S.value].class[1] = "active"), typeof ((Q = n.data) == null ? void 0 : Q.endDate) < "u" && n.range === "range") {
|
|
88
|
+
E.value = s.value.findIndex((r) => r.day === x.value.getDate() && r.month === z.value && r.year === K.value), s.value[E.value].class[1] = "active";
|
|
89
|
+
for (let r = S.value + 1; r < E.value; r++) s.value[r].class[1] = "select";
|
|
90
90
|
}
|
|
91
|
-
const Y = (r,
|
|
92
|
-
Z(r,
|
|
93
|
-
}, Z = (r,
|
|
91
|
+
const Y = (r, u) => {
|
|
92
|
+
Z(r, u) && (s.value = [], G.value = 0, D.value = new Date(r, u, 1), w.value = D.value.getFullYear(), g.value = D.value.getMonth(), c());
|
|
93
|
+
}, Z = (r, u) => {
|
|
94
94
|
if (!n.limitation) return !0;
|
|
95
95
|
if (n.limitation[0].dateStart) {
|
|
96
96
|
console.log(n.limitation[0].dateStart);
|
|
97
97
|
let t = n.limitation[0].dateStart.split(n.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]) >
|
|
98
|
+
if (t[0].length > 2 && t.reverse(), parseInt(t[2]) > r || parseInt(t[2]) === r && parseInt(t[1]) > u + 1) return !1;
|
|
99
99
|
}
|
|
100
100
|
if (n.limitation[n.limitation.length - 1].dateEnd) {
|
|
101
101
|
console.log(n.limitation[n.limitation.length - 1].dateEnd);
|
|
102
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]) <
|
|
103
|
+
if (t[0].length > 2 && t.reverse(), parseInt(t[2]) < r || parseInt(t[2]) === r && parseInt(t[1]) < u + _) return !1;
|
|
104
104
|
}
|
|
105
105
|
return !0;
|
|
106
106
|
};
|
|
107
|
-
return (r,
|
|
107
|
+
return (r, u) => (h(), T("div", _e, [
|
|
108
108
|
p("div", null, [
|
|
109
109
|
p("p", Ye, [
|
|
110
110
|
p("span", null, [
|
|
111
111
|
p("button", {
|
|
112
|
-
onClick:
|
|
112
|
+
onClick: u[0] || (u[0] = (t) => Y(w.value - 1, g.value))
|
|
113
113
|
}, "«"),
|
|
114
114
|
p("button", {
|
|
115
|
-
onClick:
|
|
115
|
+
onClick: u[1] || (u[1] = (t) => Y(w.value, g.value - 1))
|
|
116
116
|
}, "‹")
|
|
117
117
|
]),
|
|
118
118
|
p("span", Be, [
|
|
119
|
-
p("button", null, b(
|
|
120
|
-
p("button", null, b(a(A)(
|
|
119
|
+
p("button", null, b(w.value), 1),
|
|
120
|
+
p("button", null, b(a(A)(D.value.setMonth(g.value), "{F}")), 1)
|
|
121
121
|
]),
|
|
122
122
|
p("span", null, [
|
|
123
123
|
p("button", {
|
|
124
|
-
onClick:
|
|
124
|
+
onClick: u[2] || (u[2] = (t) => Y(w.value, g.value + 1))
|
|
125
125
|
}, "›"),
|
|
126
126
|
p("button", {
|
|
127
|
-
onClick:
|
|
127
|
+
onClick: u[3] || (u[3] = (t) => Y(w.value + 1, g.value))
|
|
128
128
|
}, "»")
|
|
129
129
|
])
|
|
130
130
|
]),
|
|
131
131
|
p("div", Fe, [
|
|
132
|
-
(h(),
|
|
132
|
+
(h(), T(q, null, W(7, (t, d) => p("button", {
|
|
133
133
|
key: d,
|
|
134
134
|
class: "disabled"
|
|
135
135
|
}, b(a(A)(new Date(1970, 1, t + a(M)), "{D}")), 1)), 64))
|
|
136
136
|
]),
|
|
137
137
|
p("div", Ae, [
|
|
138
|
-
(h(!0),
|
|
139
|
-
d < G.value + (7 - new Date(
|
|
138
|
+
(h(!0), T(q, null, W(s.value, (t, d) => (h(), T(q, { key: d }, [
|
|
139
|
+
d < G.value + (7 - new Date(w.value, g.value + 1, 1).getDay() + a(M)) % 7 ? (h(), T("button", {
|
|
140
140
|
key: 0,
|
|
141
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
|
-
t.month === g.value &&
|
|
143
|
+
t.month === g.value && $(t, d);
|
|
144
144
|
}
|
|
145
145
|
}, b(t.day), 11, je)) : P("", !0)
|
|
146
146
|
], 64))), 128))
|
|
147
147
|
])
|
|
148
148
|
]),
|
|
149
|
-
n.range === "range" ? (h(),
|
|
149
|
+
n.range === "range" ? (h(), T("div", ze, [
|
|
150
150
|
p("p", Ge, [
|
|
151
151
|
p("span", null, [
|
|
152
152
|
p("button", {
|
|
153
|
-
onClick:
|
|
153
|
+
onClick: u[4] || (u[4] = (t) => Y(w.value - 1, g.value))
|
|
154
154
|
}, "«"),
|
|
155
155
|
p("button", {
|
|
156
|
-
onClick:
|
|
156
|
+
onClick: u[5] || (u[5] = (t) => Y(w.value, g.value - 1))
|
|
157
157
|
}, "‹")
|
|
158
158
|
]),
|
|
159
159
|
p("span", Ue, [
|
|
160
|
-
p("button", null, b(new Date(
|
|
161
|
-
p("button", null, b(a(A)(
|
|
160
|
+
p("button", null, b(new Date(w.value, g.value + 1).getFullYear()), 1),
|
|
161
|
+
p("button", null, b(a(A)(D.value.setMonth(g.value + 1), "{F}")), 1)
|
|
162
162
|
]),
|
|
163
163
|
p("span", null, [
|
|
164
164
|
p("button", {
|
|
165
|
-
onClick:
|
|
165
|
+
onClick: u[6] || (u[6] = (t) => Y(w.value, g.value + 1))
|
|
166
166
|
}, "›"),
|
|
167
167
|
p("button", {
|
|
168
|
-
onClick:
|
|
168
|
+
onClick: u[7] || (u[7] = (t) => Y(w.value + 1, g.value))
|
|
169
169
|
}, "»")
|
|
170
170
|
])
|
|
171
171
|
]),
|
|
172
172
|
p("div", Oe, [
|
|
173
|
-
(h(),
|
|
173
|
+
(h(), T(q, null, W(7, (t, d) => p("button", {
|
|
174
174
|
key: d,
|
|
175
175
|
class: "disabled"
|
|
176
176
|
}, b(a(A)(new Date(1970, 1, t + a(M)), "{D}")), 1)), 64))
|
|
177
177
|
]),
|
|
178
178
|
p("div", Pe, [
|
|
179
|
-
(h(!0),
|
|
180
|
-
d >= G.value - (7 + new Date(
|
|
179
|
+
(h(!0), T(q, null, W(s.value, (t, d) => (h(), T(q, { key: d }, [
|
|
180
|
+
d >= G.value - (7 + new Date(w.value, g.value + 1, 1).getDay() - a(M)) % 7 ? (h(), T("button", {
|
|
181
181
|
key: 0,
|
|
182
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 === L.value.getMonth() &&
|
|
184
|
+
t.month === L.value.getMonth() && $(t, d);
|
|
185
185
|
}
|
|
186
186
|
}, b(t.day), 11, qe)) : P("", !0)
|
|
187
187
|
], 64))), 128))
|
|
@@ -206,7 +206,7 @@ const Me = (j, I) => {
|
|
|
206
206
|
fullName: { type: String, default: "Вы" }
|
|
207
207
|
},
|
|
208
208
|
setup(j) {
|
|
209
|
-
const
|
|
209
|
+
const { t: i } = me(), D = j, x = f([
|
|
210
210
|
// { name: 'Иванов Петр Михалыч',
|
|
211
211
|
// jobTitle: '(Ведущий работник месяца)',
|
|
212
212
|
// days: [{dateStart: "03.05.2024", dateEnd: "06.06.2024", note: 'забил - сказал он ослик', count: 14 },
|
|
@@ -226,46 +226,46 @@ const Me = (j, I) => {
|
|
|
226
226
|
// }
|
|
227
227
|
]);
|
|
228
228
|
f([]);
|
|
229
|
-
const n = f((/* @__PURE__ */ new Date()).getFullYear()), J = f(!1),
|
|
229
|
+
const n = f((/* @__PURE__ */ new Date()).getFullYear()), J = f(!1), w = 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), G = f({ participants: [] }), L = f([]),
|
|
235
|
-
ye(
|
|
236
|
-
|
|
237
|
-
(y.divisionName ===
|
|
234
|
+
}), g = f(!1), s = f(!1), G = f({ participants: [] }), L = f([]), S = f([]), E = f("all"), H = f([{ value: "all", label: i("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
|
+
ye(E, async (o, e) => {
|
|
236
|
+
o !== e && (_.value = [], J.value = !1, D.odata.employee.forEach((y) => {
|
|
237
|
+
(y.divisionName === o || o === "all") && (_.value.some((l) => (l == null ? void 0 : l.activeText) === y.roleName) || _.value.push({ val: !0, activeText: y.roleName }));
|
|
238
238
|
}), Z());
|
|
239
239
|
});
|
|
240
|
-
const
|
|
240
|
+
const $ = Ce(() => x.value.flatMap((o, e) => !o.days || o.days.length === 0 ? [{ ...o, key: 0, ids: e }] : o.days.map((y, l) => ({
|
|
241
241
|
ids: e,
|
|
242
242
|
key: l,
|
|
243
|
-
...
|
|
243
|
+
...o,
|
|
244
244
|
...y
|
|
245
245
|
})))), Y = async () => {
|
|
246
|
-
|
|
246
|
+
D.odata.getEmployee(n.value - 1 + "-12-17T23:59:00").then((o) => {
|
|
247
247
|
var e;
|
|
248
|
-
|
|
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 ===
|
|
250
|
-
}), Z(),
|
|
248
|
+
E.value = (e = o.find((y) => y.employeeName === D.fullName)) == null ? void 0 : e.divisionName, o.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 === E.value && !_.value.some((l) => (l == null ? void 0 : l.activeText) === y.roleName) && _.value.push({ val: !0, activeText: y.roleName });
|
|
250
|
+
}), Z(), w.value = !1;
|
|
251
251
|
});
|
|
252
252
|
}, Z = () => {
|
|
253
|
-
|
|
254
|
-
let
|
|
255
|
-
|
|
256
|
-
(e.divisionName ===
|
|
257
|
-
}), ae(
|
|
258
|
-
}, ae = (
|
|
259
|
-
|
|
253
|
+
x.value = [];
|
|
254
|
+
let o = [];
|
|
255
|
+
D.odata.employee.forEach((e) => {
|
|
256
|
+
(e.divisionName === E.value || E.value === "all") && _.value.some((y) => y.val && y.activeText === e.roleName) && (o.push(e.employeeKey), x.value.push({ name: e.employeeName, days: [{ note: "" }], jobTitle: e.roleName, code: e.employeeKey }));
|
|
257
|
+
}), ae(o), g.value = !1;
|
|
258
|
+
}, ae = (o) => {
|
|
259
|
+
D.workSchedule.getAllVacations({ year: n.value }).then(
|
|
260
260
|
(e) => {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
y === C.code && (typeof
|
|
261
|
+
o.forEach((y, l) => {
|
|
262
|
+
x.value[l].days = [{ note: "" }], e.forEach((C) => {
|
|
263
|
+
y === C.code && (typeof x.value[l].days[0].dateStart > "u" ? x.value[l].days[0] = {
|
|
264
264
|
dateStart: A(C.dateStart, "{dd}.{m}.{Y}"),
|
|
265
265
|
dateEnd: A(C.dateEnd, "{dd}.{m}.{Y}"),
|
|
266
266
|
note: C.note,
|
|
267
267
|
count: C.count
|
|
268
|
-
} :
|
|
268
|
+
} : x.value[l].days.push({
|
|
269
269
|
dateStart: A(C.dateStart, "{dd}.{m}.{Y}"),
|
|
270
270
|
dateEnd: A(C.dateEnd, "{dd}.{m}.{Y}"),
|
|
271
271
|
note: C.note,
|
|
@@ -275,59 +275,59 @@ const Me = (j, I) => {
|
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
277
|
);
|
|
278
|
-
}, ne = (
|
|
279
|
-
if (
|
|
280
|
-
return
|
|
281
|
-
rowspan:
|
|
278
|
+
}, ne = (o) => {
|
|
279
|
+
if (o.columnIndex < 3 && $.value[o.rowIndex].key < $.value[o.rowIndex].days.length)
|
|
280
|
+
return $.value[o.rowIndex].key === 0 ? {
|
|
281
|
+
rowspan: $.value[o.rowIndex].days.length,
|
|
282
282
|
colspan: 1
|
|
283
283
|
} : {
|
|
284
284
|
rowspan: 0,
|
|
285
285
|
colspan: 0
|
|
286
286
|
};
|
|
287
|
-
}, oe = (
|
|
288
|
-
c.value.ids =
|
|
289
|
-
}, Q = (
|
|
290
|
-
let e =
|
|
291
|
-
switch (
|
|
287
|
+
}, oe = (o, e, y, l) => {
|
|
288
|
+
c.value.ids = o.ids, c.value.key = o.key, c.value.startDate = o.dateStart, c.value.endDate = o.dateEnd, c.value.name = o.name, c.value.count = o.count, c.value.allCount = () => o.days.length === 0 ? 0 : o.days.reduce((C, ee, O) => O !== o.key ? C + parseInt(ee.count) : C, 0), c.value.length = o.days.length, c.value.add = o.days.length > 0 && o.days[o.days.length - 1].count, c.value.level = e.level, c.value.holiday = S.value, K.value.y = l.clientY, K.value.x = l.clientX, e.level === 2 && e.no < 4 && (c.value.add || o.days.length > 1) && (z.value = !0), e.level === 3 && (z.value = !0);
|
|
289
|
+
}, Q = (o) => {
|
|
290
|
+
let e = x.value[c.value.ids];
|
|
291
|
+
switch (o) {
|
|
292
292
|
case "add":
|
|
293
|
-
e.days.push({ note: "" });
|
|
293
|
+
e.days.push({ note: "" }), console.log(e.days.length);
|
|
294
294
|
break;
|
|
295
295
|
case "delete":
|
|
296
296
|
delete e.days.pop(), t(c.value.ids);
|
|
297
297
|
break;
|
|
298
298
|
}
|
|
299
299
|
z.value = !1;
|
|
300
|
-
}, r = (
|
|
301
|
-
U.value =
|
|
302
|
-
},
|
|
303
|
-
U.value && (
|
|
304
|
-
}, t = (
|
|
305
|
-
|
|
300
|
+
}, r = (o) => {
|
|
301
|
+
U.value = o, c.value.count = o.count;
|
|
302
|
+
}, u = () => {
|
|
303
|
+
U.value && (x.value[c.value.ids].days[c.value.key] = { ...U.value, note: "" }, t(c.value.ids)), z.value = !1;
|
|
304
|
+
}, t = (o) => {
|
|
305
|
+
D.workSchedule.rewriteFull({
|
|
306
306
|
year: n.value,
|
|
307
|
-
code:
|
|
308
|
-
data:
|
|
307
|
+
code: x.value[o].code,
|
|
308
|
+
data: x.value[o].days.map((e) => ({
|
|
309
309
|
dateStart: e.dateStart.split(".").reverse().join("-"),
|
|
310
310
|
dateEnd: e.dateEnd.split(".").reverse().join("-"),
|
|
311
311
|
note: e.note,
|
|
312
312
|
count: e.count
|
|
313
313
|
}))
|
|
314
314
|
});
|
|
315
|
-
}, d = (
|
|
316
|
-
|
|
317
|
-
},
|
|
318
|
-
|
|
315
|
+
}, d = (o) => {
|
|
316
|
+
D.workSchedule.sendConfirmMessage({ fullname: D.fullName, confirm: o }), D.query = "";
|
|
317
|
+
}, k = () => {
|
|
318
|
+
D.workSchedule.sendAgreementMessage({ users: G.value.participants }), s.value = !1;
|
|
319
319
|
};
|
|
320
|
-
|
|
321
|
-
L.value =
|
|
322
|
-
}), Se().then((
|
|
323
|
-
|
|
320
|
+
D.workSchedule.getBoss().then((o) => {
|
|
321
|
+
L.value = o[0].users;
|
|
322
|
+
}), Se().then((o) => {
|
|
323
|
+
S.value = o, Y();
|
|
324
324
|
});
|
|
325
|
-
const
|
|
325
|
+
const V = () => 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
326
|
M.value = !0;
|
|
327
|
-
const
|
|
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 =
|
|
327
|
+
const o = new xe.Workbook(), e = o.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 = i("vacationSchedule.approve"), e.getCell("D2").value = i("vacationSchedule.dateApprove", { year: n.value - 1 }), e.getCell("D3").value = i("workSchedule.printPlace"), e.getCell("D4").value = i("vacationSchedule.dateApprove", { year: n.value - 1 }), e.getCell("A5").value = i("workSchedule.firm"), e.getCell("B7").value = i("vacationSchedule.vacationSchedule"), e.getCell("C7").value = i("vacationSchedule.numberDocs"), e.getCell("D7").value = i("vacationSchedule.compilation"), e.getCell("E7").value = i("vacationSchedule.year"), e.getCell("C8").value = "", e.getCell("D8").value = "", e.getCell("E8").value = n.value, e.getCell("E7").value = i("vacationSchedule.year"), e.getCell("A10").value = i("vacationSchedule.jobTitle"), e.getCell("B10").value = i("vacationSchedule.fullName"), e.getCell("C10").value = i("vacationSchedule.personnelNumber"), e.getCell("D10").value = i("vacationSchedule.vacation"), e.getCell("D11").value = i("vacationSchedule.days"), e.getCell("E11").value = i("vacationSchedule.date"), e.getCell("F11").value = i("vacationSchedule.endDate"), e.getCell("G11").value = i("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
329
|
let O = 11;
|
|
330
|
-
for (const N of
|
|
330
|
+
for (const N of x.value)
|
|
331
331
|
if (N.days.length > 1)
|
|
332
332
|
N.days.forEach((X) => {
|
|
333
333
|
let ue = [N.jobTitle, N.name, N.code, X.count, X.dateStart, X.dateEnd, X.note];
|
|
@@ -339,21 +339,21 @@ const Me = (j, I) => {
|
|
|
339
339
|
const ue = e.addRow(X);
|
|
340
340
|
ue.border = l, O++;
|
|
341
341
|
}
|
|
342
|
-
const he = "export_" + A(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", fe = await
|
|
342
|
+
const he = "export_" + A(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", fe = await o.xlsx.writeBuffer();
|
|
343
343
|
we(new Blob([fe]), he), M.value = !1;
|
|
344
344
|
};
|
|
345
|
-
return (
|
|
345
|
+
return (o, e) => {
|
|
346
346
|
const y = be("loading");
|
|
347
|
-
return h(),
|
|
347
|
+
return h(), T("div", null, [
|
|
348
348
|
j.checkEdit ? (h(), B(a(ie), {
|
|
349
349
|
key: 0,
|
|
350
|
-
modelValue:
|
|
351
|
-
"onUpdate:modelValue": e[0] || (e[0] = (l) =>
|
|
350
|
+
modelValue: E.value,
|
|
351
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => E.value = l),
|
|
352
352
|
placeholder: "Select",
|
|
353
353
|
style: { width: "240px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
|
|
354
354
|
}, {
|
|
355
355
|
default: m(() => [
|
|
356
|
-
(h(!0),
|
|
356
|
+
(h(!0), T(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
|
|
@@ -367,7 +367,7 @@ const Me = (j, I) => {
|
|
|
367
367
|
style: { "margin-bottom": ".5rem", "margin-right": ".5rem" }
|
|
368
368
|
}, {
|
|
369
369
|
default: m(() => [
|
|
370
|
-
|
|
370
|
+
I(b(a(i)("workSchedule.jobTitle")), 1)
|
|
371
371
|
]),
|
|
372
372
|
_: 1
|
|
373
373
|
}),
|
|
@@ -379,7 +379,7 @@ const Me = (j, I) => {
|
|
|
379
379
|
style: { width: "80px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
|
|
380
380
|
}, {
|
|
381
381
|
default: m(() => [
|
|
382
|
-
(h(!0),
|
|
382
|
+
(h(!0), T(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
|
|
@@ -389,7 +389,7 @@ const Me = (j, I) => {
|
|
|
389
389
|
}, 8, ["modelValue"]),
|
|
390
390
|
v(a(ke), {
|
|
391
391
|
style: { width: "100%" },
|
|
392
|
-
loading:
|
|
392
|
+
loading: w.value,
|
|
393
393
|
animated: ""
|
|
394
394
|
}, {
|
|
395
395
|
template: m(() => [
|
|
@@ -417,79 +417,79 @@ const Me = (j, I) => {
|
|
|
417
417
|
default: m(() => [
|
|
418
418
|
v(a(Ee), {
|
|
419
419
|
id: "printTable",
|
|
420
|
-
data:
|
|
420
|
+
data: $.value,
|
|
421
421
|
"span-method": ne,
|
|
422
422
|
onCellClick: oe,
|
|
423
423
|
border: "",
|
|
424
424
|
style: { width: "100%" },
|
|
425
425
|
size: "small",
|
|
426
|
-
"empty-text": a(
|
|
426
|
+
"empty-text": a(i)("vacationSchedule.emptyText")
|
|
427
427
|
}, {
|
|
428
428
|
default: m(() => [
|
|
429
429
|
v(a(R), {
|
|
430
|
-
label:
|
|
430
|
+
label: E.value !== "all" ? a(i)("vacationSchedule.title", { name: E.value }) : a(i)("vacationSchedule.enterprise") + ` ${n.value}`,
|
|
431
431
|
align: "center",
|
|
432
432
|
height: "34"
|
|
433
433
|
}, {
|
|
434
434
|
default: m(() => [
|
|
435
435
|
v(a(R), {
|
|
436
|
-
label: a(
|
|
436
|
+
label: a(i)("vacationSchedule.jobTitle"),
|
|
437
437
|
width: "180",
|
|
438
438
|
align: "center"
|
|
439
439
|
}, {
|
|
440
440
|
default: m((l) => [
|
|
441
|
-
|
|
441
|
+
I(b($.value[l.$index].jobTitle), 1)
|
|
442
442
|
]),
|
|
443
443
|
_: 1
|
|
444
444
|
}, 8, ["label"]),
|
|
445
445
|
v(a(R), {
|
|
446
|
-
label: a(
|
|
446
|
+
label: a(i)("vacationSchedule.fullName"),
|
|
447
447
|
width: "180",
|
|
448
448
|
align: "center"
|
|
449
449
|
}, {
|
|
450
450
|
default: m((l) => [
|
|
451
|
-
|
|
451
|
+
I(b($.value[l.$index].name), 1)
|
|
452
452
|
]),
|
|
453
453
|
_: 1
|
|
454
454
|
}, 8, ["label"]),
|
|
455
455
|
v(a(R), {
|
|
456
|
-
label: a(
|
|
456
|
+
label: a(i)("vacationSchedule.personnelNumber"),
|
|
457
457
|
align: "center"
|
|
458
458
|
}, {
|
|
459
459
|
default: m((l) => [
|
|
460
|
-
|
|
460
|
+
I(b($.value[l.$index].code), 1)
|
|
461
461
|
]),
|
|
462
462
|
_: 1
|
|
463
463
|
}, 8, ["label"]),
|
|
464
464
|
v(a(R), {
|
|
465
|
-
label: a(
|
|
465
|
+
label: a(i)("vacationSchedule.vacation"),
|
|
466
466
|
align: "center"
|
|
467
467
|
}, {
|
|
468
468
|
default: m(() => [
|
|
469
469
|
v(a(R), {
|
|
470
|
-
label: a(
|
|
470
|
+
label: a(i)("vacationSchedule.days"),
|
|
471
471
|
align: "center"
|
|
472
472
|
}, {
|
|
473
473
|
default: m((l) => [
|
|
474
|
-
|
|
474
|
+
I(b($.value[l.$index].count), 1)
|
|
475
475
|
]),
|
|
476
476
|
_: 1
|
|
477
477
|
}, 8, ["label"]),
|
|
478
478
|
v(a(R), {
|
|
479
|
-
label: a(
|
|
479
|
+
label: a(i)("vacationSchedule.date"),
|
|
480
480
|
align: "center"
|
|
481
481
|
}, {
|
|
482
482
|
default: m((l) => [
|
|
483
|
-
|
|
483
|
+
I(b($.value[l.$index].dateStart), 1)
|
|
484
484
|
]),
|
|
485
485
|
_: 1
|
|
486
486
|
}, 8, ["label"]),
|
|
487
487
|
v(a(R), {
|
|
488
|
-
label: a(
|
|
488
|
+
label: a(i)("vacationSchedule.endDate"),
|
|
489
489
|
align: "center"
|
|
490
490
|
}, {
|
|
491
491
|
default: m((l) => [
|
|
492
|
-
|
|
492
|
+
I(b($.value[l.$index].dateEnd), 1)
|
|
493
493
|
]),
|
|
494
494
|
_: 1
|
|
495
495
|
}, 8, ["label"])
|
|
@@ -497,17 +497,17 @@ const Me = (j, I) => {
|
|
|
497
497
|
_: 1
|
|
498
498
|
}, 8, ["label"]),
|
|
499
499
|
v(a(R), {
|
|
500
|
-
label: a(
|
|
500
|
+
label: a(i)("vacationSchedule.note"),
|
|
501
501
|
align: "center"
|
|
502
502
|
}, {
|
|
503
503
|
default: m((l) => [
|
|
504
504
|
v(a($e), {
|
|
505
|
-
modelValue:
|
|
506
|
-
"onUpdate:modelValue": (C) =>
|
|
505
|
+
modelValue: x.value[$.value[l.$index].ids].days[$.value[l.$index].key].note,
|
|
506
|
+
"onUpdate:modelValue": (C) => x.value[$.value[l.$index].ids].days[$.value[l.$index].key].note = C,
|
|
507
507
|
style: { width: "100%" },
|
|
508
508
|
placeholder: " ",
|
|
509
509
|
class: "noBorder",
|
|
510
|
-
onBlur: (C) => t(
|
|
510
|
+
onBlur: (C) => t($.value[l.$index].ids)
|
|
511
511
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onBlur"])
|
|
512
512
|
]),
|
|
513
513
|
_: 1
|
|
@@ -521,14 +521,14 @@ const Me = (j, I) => {
|
|
|
521
521
|
]),
|
|
522
522
|
_: 1
|
|
523
523
|
}, 8, ["loading"]),
|
|
524
|
-
j.checkEdit ? (h(),
|
|
524
|
+
j.checkEdit ? (h(), T("div", We, [
|
|
525
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
|
-
|
|
531
|
+
I(b(a(i)("vacationSchedule.sendInformation")), 1)
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
534
|
})),
|
|
@@ -538,7 +538,7 @@ const Me = (j, I) => {
|
|
|
538
538
|
onClick: e[4] || (e[4] = (l) => d(!0))
|
|
539
539
|
}, {
|
|
540
540
|
default: m(() => [
|
|
541
|
-
|
|
541
|
+
I(b(a(i)("vacationSchedule.agreeOn")), 1)
|
|
542
542
|
]),
|
|
543
543
|
_: 1
|
|
544
544
|
})) : P("", !0),
|
|
@@ -548,7 +548,7 @@ const Me = (j, I) => {
|
|
|
548
548
|
onClick: e[5] || (e[5] = (l) => d(!1))
|
|
549
549
|
}, {
|
|
550
550
|
default: m(() => [
|
|
551
|
-
|
|
551
|
+
I(b(a(i)("vacationSchedule.reject")), 1)
|
|
552
552
|
]),
|
|
553
553
|
_: 1
|
|
554
554
|
})) : P("", !0)
|
|
@@ -560,14 +560,14 @@ const Me = (j, I) => {
|
|
|
560
560
|
style: { "margin-top": ".5rem" }
|
|
561
561
|
}, {
|
|
562
562
|
default: m(() => [
|
|
563
|
-
|
|
563
|
+
I(b(a(i)("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(i)("workSchedule.jobTitle"),
|
|
571
571
|
modelValue: g.value,
|
|
572
572
|
"onUpdate:modelValue": e[7] || (e[7] = (l) => g.value = l),
|
|
573
573
|
width: "400px"
|
|
@@ -578,7 +578,7 @@ const Me = (j, I) => {
|
|
|
578
578
|
size: "default"
|
|
579
579
|
}, {
|
|
580
580
|
default: m(() => [
|
|
581
|
-
|
|
581
|
+
I(b(o.$t("workSchedule.cancel")), 1)
|
|
582
582
|
]),
|
|
583
583
|
_: 1
|
|
584
584
|
}),
|
|
@@ -588,7 +588,7 @@ const Me = (j, I) => {
|
|
|
588
588
|
onClick: Z
|
|
589
589
|
}, {
|
|
590
590
|
default: m(() => [
|
|
591
|
-
|
|
591
|
+
I(b(o.$t("workSchedule.select")), 1)
|
|
592
592
|
]),
|
|
593
593
|
_: 1
|
|
594
594
|
})
|
|
@@ -599,7 +599,7 @@ const Me = (j, I) => {
|
|
|
599
599
|
autocomplete: "on"
|
|
600
600
|
}, {
|
|
601
601
|
default: m(() => [
|
|
602
|
-
(h(!0),
|
|
602
|
+
(h(!0), T(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 Me = (j, I) => {
|
|
|
616
616
|
_: 1
|
|
617
617
|
}, 8, ["title", "modelValue"]),
|
|
618
618
|
v(a(ve), {
|
|
619
|
-
title: a(
|
|
619
|
+
title: a(i)("vacationSchedule.pleaseCoordinate"),
|
|
620
620
|
modelValue: s.value,
|
|
621
621
|
"onUpdate:modelValue": e[10] || (e[10] = (l) => s.value = l),
|
|
622
622
|
width: "500px"
|
|
@@ -627,17 +627,17 @@ const Me = (j, I) => {
|
|
|
627
627
|
size: "default"
|
|
628
628
|
}, {
|
|
629
629
|
default: m(() => [
|
|
630
|
-
|
|
630
|
+
I(b(a(i)("workSchedule.cancel")), 1)
|
|
631
631
|
]),
|
|
632
632
|
_: 1
|
|
633
633
|
}),
|
|
634
634
|
v(a(F), {
|
|
635
635
|
size: "default",
|
|
636
636
|
type: "primary",
|
|
637
|
-
onClick:
|
|
637
|
+
onClick: k
|
|
638
638
|
}, {
|
|
639
639
|
default: m(() => [
|
|
640
|
-
|
|
640
|
+
I(b(a(i)("vacationSchedule.send")), 1)
|
|
641
641
|
]),
|
|
642
642
|
_: 1
|
|
643
643
|
})
|
|
@@ -651,12 +651,12 @@ const Me = (j, I) => {
|
|
|
651
651
|
v(a(ie), {
|
|
652
652
|
modelValue: G.value.participants,
|
|
653
653
|
"onUpdate:modelValue": e[8] || (e[8] = (l) => G.value.participants = l),
|
|
654
|
-
placeholder: a(
|
|
654
|
+
placeholder: a(i)("vacationSchedule.fullName"),
|
|
655
655
|
multiple: "",
|
|
656
656
|
size: "default"
|
|
657
657
|
}, {
|
|
658
658
|
default: m(() => [
|
|
659
|
-
(h(!0),
|
|
659
|
+
(h(!0), T(q, null, W(L.value, (l) => (h(), B(a(de), {
|
|
660
660
|
key: l,
|
|
661
661
|
label: l,
|
|
662
662
|
value: l
|
|
@@ -677,26 +677,26 @@ const Me = (j, I) => {
|
|
|
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(i)("vacationSchedule.day", c.value.count) + ` ${a(i)("vacationSchedule.from")}: ${c.value.allCount() + parseInt(c.value.count)}` : c.value.name,
|
|
681
681
|
disabled: ""
|
|
682
682
|
}, null, 8, ["label"]),
|
|
683
683
|
v(a(Ne)),
|
|
684
|
-
c.value.level === 2 ? (h(),
|
|
684
|
+
c.value.level === 2 ? (h(), T("div", Je, [
|
|
685
685
|
c.value.length > 1 ? (h(), B(a(se), {
|
|
686
686
|
key: 0,
|
|
687
|
-
label: a(
|
|
687
|
+
label: a(i)("vacationSchedule.deleteLast"),
|
|
688
688
|
onClick: e[11] || (e[11] = (l) => Q("delete"))
|
|
689
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(i)("vacationSchedule.addVacation"),
|
|
693
693
|
onClick: e[12] || (e[12] = (l) => Q("add"))
|
|
694
694
|
}, null, 8, ["label"])) : P("", !0)
|
|
695
|
-
])) : (h(),
|
|
695
|
+
])) : (h(), T("div", Ke, [
|
|
696
696
|
v(Re, {
|
|
697
697
|
data: c.value,
|
|
698
698
|
range: "range",
|
|
699
|
-
limitation:
|
|
699
|
+
limitation: V(),
|
|
700
700
|
onInput: r
|
|
701
701
|
}, null, 8, ["data", "limitation"]),
|
|
702
702
|
p("div", null, [
|
|
@@ -704,13 +704,13 @@ const Me = (j, I) => {
|
|
|
704
704
|
onClick: e[13] || (e[13] = (l) => z.value = !1)
|
|
705
705
|
}, {
|
|
706
706
|
default: m(() => [
|
|
707
|
-
|
|
707
|
+
I(b(a(i)("vacationSchedule.cancel")), 1)
|
|
708
708
|
]),
|
|
709
709
|
_: 1
|
|
710
710
|
}),
|
|
711
|
-
v(a(F), { onClick:
|
|
711
|
+
v(a(F), { onClick: u }, {
|
|
712
712
|
default: m(() => [
|
|
713
|
-
|
|
713
|
+
I(b(a(i)("vacationSchedule.save")), 1)
|
|
714
714
|
]),
|
|
715
715
|
_: 1
|
|
716
716
|
})
|