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