@studio-west/employees 0.6.40 → 0.6.42
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 +1 -1
- package/dist/SheetTable.js +163 -161
- package/dist/WorkTable.cjs +1 -1
- package/dist/WorkTable.js +39 -37
- package/package.json +1 -1
package/dist/SheetTable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as y, computed as Se, watch as ne, resolveComponent as ue, resolveDirective as He, createElementBlock as O, openBlock as
|
|
1
|
+
import { ref as y, computed as Se, watch as ne, resolveComponent as ue, resolveDirective as He, createElementBlock as O, openBlock as b, Fragment as q, createElementVNode as A, createVNode as c, withDirectives as Oe, createBlock as _, createCommentVNode as M, unref as n, withCtx as g, renderList as me, createTextVNode as w, toDisplayString as C, resolveDynamicComponent as Pe, nextTick as Re } from "vue";
|
|
2
2
|
import { useI18n as We } from "vue-i18n";
|
|
3
3
|
import { p as Y, b as P, a as _e, h as Je, c as je, d as $ } from "./index-2Mx6IUGl.js";
|
|
4
|
-
import { ElSelect as Le, ElOption as Ge, ElButton as F, ElSwitch as ce, ElTable as Ke, ElTableColumn as
|
|
4
|
+
import { ElSelect as Le, ElOption as Ge, ElButton as F, ElSwitch as ce, ElTable as Ke, ElTableColumn as I } from "element-plus";
|
|
5
5
|
import { ContextMenu as Xe, ContextMenuSeparator as qe, ContextMenuGroup as Ze, ContextMenuItem as oe } from "@imengyu/vue3-context-menu";
|
|
6
6
|
import { saveAs as Ne } from "file-saver";
|
|
7
7
|
import * as Qe from "exceljs";
|
|
@@ -24,20 +24,20 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
24
24
|
editor: { type: Object, default: () => ({}) }
|
|
25
25
|
},
|
|
26
26
|
setup(se) {
|
|
27
|
-
const k = se, { t:
|
|
28
|
-
{ value: "Я", label:
|
|
29
|
-
{ value: "К", label:
|
|
30
|
-
{ value: "ОТ", label:
|
|
31
|
-
{ value: "ДО", label:
|
|
32
|
-
{ value: "Р", label:
|
|
33
|
-
{ value: "ОЖ", label:
|
|
34
|
-
{ value: "Б", label:
|
|
35
|
-
{ value: "НН", label:
|
|
36
|
-
{ value: "ПР", label:
|
|
37
|
-
{ value: "У", label:
|
|
38
|
-
{ value: "УД", label:
|
|
39
|
-
{ value: "Г", label:
|
|
40
|
-
]), $e = y([]), Me = y(0), V = y(9), N = y(8), E = y(0), G = y(0), K = y([]), W = y(!1), Q = y(!1), ye = y([]), ee = y([]), U = y(!1),
|
|
27
|
+
const k = se, { t: r, d: ie } = We(), re = y(!1), D = y([]), Z = y("0"), x = y(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(Z.value))), d = y([]), z = y([]), fe = y("100%"), R = y("true"), pe = y([]), Ae = y([
|
|
28
|
+
{ value: "Я", label: r("sheet.valid.1") },
|
|
29
|
+
{ value: "К", label: r("sheet.valid.2") },
|
|
30
|
+
{ value: "ОТ", label: r("sheet.valid.3") },
|
|
31
|
+
{ value: "ДО", label: r("sheet.valid.4") },
|
|
32
|
+
{ value: "Р", label: r("sheet.valid.5") },
|
|
33
|
+
{ value: "ОЖ", label: r("sheet.valid.6") },
|
|
34
|
+
{ value: "Б", label: r("sheet.valid.7") },
|
|
35
|
+
{ value: "НН", label: r("sheet.valid.8") },
|
|
36
|
+
{ value: "ПР", label: r("sheet.valid.9") },
|
|
37
|
+
{ value: "У", label: r("sheet.valid.10") },
|
|
38
|
+
{ value: "УД", label: r("sheet.valid.11") },
|
|
39
|
+
{ value: "Г", label: r("sheet.valid.12") }
|
|
40
|
+
]), $e = y([]), Me = y(0), V = y(9), N = y(8), E = y(0), G = y(0), K = y([]), W = y(!1), Q = y(!1), ye = y([]), ee = y([]), U = y(!1), de = y(!1), le = y(1), we = y(null), Ce = y({
|
|
41
41
|
zIndex: 3,
|
|
42
42
|
minWidth: 230,
|
|
43
43
|
x: 500,
|
|
@@ -52,7 +52,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
52
52
|
// }
|
|
53
53
|
// ]
|
|
54
54
|
// }
|
|
55
|
-
]), ve = y(""), ae = y("_____"), s = Se(() =>
|
|
55
|
+
]), ve = y(""), ae = y("_____"), s = Se(() => D.value.flatMap((l, e) => {
|
|
56
56
|
const h = T.value.find((t) => t.code === l.code), u = /* @__PURE__ */ new Map();
|
|
57
57
|
l.days.forEach((t) => u.set(t.day, { ...t })), h && h.days.forEach((t) => u.set(t.day, { ...t }));
|
|
58
58
|
const f = Array.from(u.values());
|
|
@@ -61,22 +61,22 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
61
61
|
ne(z, async (l, e) => {
|
|
62
62
|
l !== e && (K.value = [], confirm.value = !1, k.odata.personal.forEach((h) => {
|
|
63
63
|
l.includes(h.divisionName) && (K.value.some((u) => (u == null ? void 0 : u.activeText) === h.roleName) || K.value.push({ val: !0, activeText: h.roleName }));
|
|
64
|
-
}),
|
|
64
|
+
}), be());
|
|
65
65
|
}), ne(Z, (l) => {
|
|
66
|
-
|
|
66
|
+
x.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1).setMonth((/* @__PURE__ */ new Date()).getMonth() + Number(l)), ke(), be();
|
|
67
67
|
}), ne(N, () => W.value = U.value), ne(V, () => W.value = U.value), ne(le, () => W.value = U.value);
|
|
68
68
|
const Ve = async (l, e, h, u) => {
|
|
69
|
-
if (e.level !== 3 || e.labelClassName === "turn" || e.no === 15 || e.no >
|
|
69
|
+
if (e.level !== 3 || e.labelClassName === "turn" || e.no === 15 || e.no > d.value.length || !k.checkEdit) return "";
|
|
70
70
|
v.value.ids = l.ids, v.value.key = l.key, v.value.day = e.no < 15 ? e.no : e.no - 1;
|
|
71
|
-
const f = new Date(
|
|
71
|
+
const f = new Date(x.value), t = `${f.getFullYear()}-${(f.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`, i = T.value.findIndex((a) => a.code === l.code);
|
|
72
72
|
v.value.id = i !== -1 ? T.value[i].days.findIndex((a) => (a == null ? void 0 : a.day) === t) : i, V.value = typeof l.days[v.value.day].tips > "u" ? 9 : parseInt(l.days[v.value.day].tips.match(/(\d{1,2})/)), E.value = typeof l.days[v.value.day].night > "u" ? 0 : parseInt(l.days[v.value.day].night), G.value = typeof l.days[v.value.day].overtime > "u" ? 0 : parseInt(l.days[v.value.day].overtime), N.value = l.days[v.value.day].time !== "-" ? parseInt(l.days[v.value.day].time) : 8;
|
|
73
73
|
const m = l.days.findIndex((a) => a.day === t);
|
|
74
|
-
v.value.failure = l.days[m].state,
|
|
74
|
+
v.value.failure = l.days[m].state, Ce.value.y = u.clientY, Ce.value.x = u.clientX, v.value.rest = i !== -1 && v.value.id !== -1, v.value.name = P(l.fio), U.value = !0, await Re(), W.value = !1;
|
|
75
75
|
}, he = (l) => {
|
|
76
|
-
const e = new Date(
|
|
77
|
-
let u = T.value.findIndex((S) => S.code ===
|
|
76
|
+
const e = new Date(x.value), h = `${e.getFullYear()}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`;
|
|
77
|
+
let u = T.value.findIndex((S) => S.code === D.value[v.value.ids].code);
|
|
78
78
|
v.value.id = u !== -1 ? T.value[u].days.findIndex((S) => (S == null ? void 0 : S.day) === `${e.getFullYear()}-${(e.getMonth() + 1).toString().padStart(2, "0")}-${(v.value.day + 1).toString().padStart(2, "0")}`) : u;
|
|
79
|
-
let f =
|
|
79
|
+
let f = D.value[v.value.ids].days[v.value.day].state, t = l, i = "-", m, a, p;
|
|
80
80
|
switch (l) {
|
|
81
81
|
case "Я":
|
|
82
82
|
f === "В" && (t = "РВ"), i = 8;
|
|
@@ -89,24 +89,24 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
89
89
|
let S = te.value.split('"');
|
|
90
90
|
t = S[1], W.value = !1, S[2] !== "" && (i = N.value, p = "(" + S[2].split("(")[1], m = E.value, a = G.value);
|
|
91
91
|
}
|
|
92
|
-
l === "reset" ? (t = f, T.value[u].days.splice(v.value.id, 1)) : u === -1 ? T.value.push({ code:
|
|
93
|
-
date: Y(new Date(
|
|
92
|
+
l === "reset" ? (t = f, T.value[u].days.splice(v.value.id, 1)) : u === -1 ? T.value.push({ code: D.value[v.value.ids].code, days: [{ day: h, state: t, time: i, night: m, overtime: a, tips: p }] }) : v.value.id === -1 ? T.value[u].days.push({ day: h, state: t, time: i, night: m, overtime: a, tips: p }) : T.value[u].days[v.value.id] = { day: h, state: t, time: i, night: m, overtime: a, tips: p }, u = T.value.findIndex((S) => S.code === D.value[v.value.ids].code), k.workSchedule.addWorkSheet({
|
|
93
|
+
date: Y(new Date(x.value), "{Y}-{m}-{dd}"),
|
|
94
94
|
data: [{
|
|
95
|
-
name:
|
|
95
|
+
name: D.value[v.value.ids].fio,
|
|
96
96
|
days: T.value[u].days,
|
|
97
|
-
code:
|
|
97
|
+
code: D.value[v.value.ids].code
|
|
98
98
|
}]
|
|
99
99
|
}), v.value.failure = t, le.value > 1 && (le.value--, v.value.day++, he(t)), De();
|
|
100
100
|
}, te = Se(() => {
|
|
101
|
-
|
|
102
|
-
let l =
|
|
101
|
+
de.value = !1;
|
|
102
|
+
let l = D.value[v.value.ids].days[v.value.day], e = "";
|
|
103
103
|
E.value = 0, G.value = 0;
|
|
104
104
|
let h = N.value >= 22 ? V.value + N.value + 2 : V.value + N.value + 1, u = v.value.failure.split("/")[0];
|
|
105
|
-
u = /^Н(?!Н$)С?$/.test(u) ? l.state !== "В" ? "Я" : "РВ" : u, /^(|Я|РВ)$/.test(u) && ((V.value < 6 || h > 22) && (e = "Н", E.value = V.value < 6 ? Math.min(6, h) - V.value : 0, h <= 6 && (E.value = N.value, u = ""), h === 7 && E.value > 3 && E.value--, E.value += Math.max(22, h) - 22), N.value > l.time && u !== "РВ" && (e += "С",
|
|
105
|
+
u = /^Н(?!Н$)С?$/.test(u) ? l.state !== "В" ? "Я" : "РВ" : u, /^(|Я|РВ)$/.test(u) && ((V.value < 6 || h > 22) && (e = "Н", E.value = V.value < 6 ? Math.min(6, h) - V.value : 0, h <= 6 && (E.value = N.value, u = ""), h === 7 && E.value > 3 && E.value--, E.value += Math.max(22, h) - 22), N.value > l.time && u !== "РВ" && (e += "С", de.value = !0, G.value = N.value - l.time), /РВ/.test(u) && (de.value = !0)), e.length > 0 && u.length > 0 && (e = "/" + e);
|
|
106
106
|
let f = `(${V.value}:00 - ${N.value >= 22 ? V.value + N.value + 2 : V.value + N.value + 1}:00)`, t = s.value[v.value.ids * 2].days[v.value.day].time !== "-" ? " " + N.value + " " + f : "";
|
|
107
107
|
return '"' + u + e + '"' + t;
|
|
108
108
|
}), Te = (l) => {
|
|
109
|
-
if (l.columnIndex < 2 || l.columnIndex >
|
|
109
|
+
if (l.columnIndex < 2 || l.columnIndex > d.value.length + 3 && l.columnIndex < d.value.length + 9 || l.columnIndex > d.value.length + 11)
|
|
110
110
|
return s.value[l.rowIndex].key === 0 ? {
|
|
111
111
|
rowspan: 2,
|
|
112
112
|
colspan: 1
|
|
@@ -115,7 +115,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
115
115
|
colspan: 0
|
|
116
116
|
};
|
|
117
117
|
}, ke = () => {
|
|
118
|
-
const l = $e.value, e = new Date(
|
|
118
|
+
const l = $e.value, e = new Date(x.value), h = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
119
119
|
let u = [], f = 0;
|
|
120
120
|
for (let t = 1; t <= h; t++) {
|
|
121
121
|
const i = Y(e.setDate(t), "{Y}-{m}-{dd}");
|
|
@@ -123,52 +123,54 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
123
123
|
let m = l.nowork.includes(i) ? "nowork" : l.holidays.includes(i) ? "holiday" : l.preholidays.includes(i) ? "preholiday" : "";
|
|
124
124
|
u.push({ day: t, holidays: m, weekday: ie(new Date(e.getFullYear(), e.getMonth(), t), "day") });
|
|
125
125
|
}
|
|
126
|
-
return Me.value = f,
|
|
126
|
+
return Me.value = f, d.value = u, k.odata.getPersonal({}).then((t) => {
|
|
127
127
|
var i;
|
|
128
128
|
z.value.length === 0 && (z.value = [(i = t.find((m) => m.employeeName === k.fullName)) == null ? void 0 : i.divisionName]), t.forEach((m) => {
|
|
129
129
|
pe.value.some((a) => (a == null ? void 0 : a.value) === m.divisionName) || pe.value.push({ value: m.divisionName, label: m.divisionName, key: m.divisionName });
|
|
130
130
|
});
|
|
131
131
|
}), !0;
|
|
132
|
-
},
|
|
133
|
-
|
|
132
|
+
}, be = () => {
|
|
133
|
+
D.value = [], ee.value = [], ye.value = [], k.odata.personal.forEach((l) => {
|
|
134
134
|
if (z.value.includes(l.divisionName) && K.value.some((e) => e.val && e.activeText === l.roleName)) {
|
|
135
135
|
let e = P(l.employeeName);
|
|
136
|
-
ee.value.push(l.employeeKey),
|
|
136
|
+
ee.value.push(l.employeeKey), D.value.push({ fio: l.employeeName, name: e + " (" + l.roleName + ")", code: l.employeeKey, days: [], contHour: 0, id: !1 });
|
|
137
137
|
}
|
|
138
138
|
l.employeeName === k.fullName && (ae.value = l.roleName);
|
|
139
|
-
}),
|
|
139
|
+
}), D.value.sort((l, e) => l.fio < e.fio ? -1 : l.fio > e.fio ? 1 : 0), D.value.forEach((l, e) => {
|
|
140
|
+
l.ids = e;
|
|
141
|
+
}), k.workSchedule.getUsersYear({ code: ee.value, year: new Date(x.value).getFullYear() }).then((l) => {
|
|
140
142
|
l.forEach((e) => {
|
|
141
143
|
e.dateStart && ye.value.push({ code: e.code, dateStart: e.dateStart, dateEnd: e.dateEnd });
|
|
142
144
|
}), Ee();
|
|
143
145
|
});
|
|
144
146
|
}, Ee = () => {
|
|
145
|
-
k.workSchedule.getWorkSheet({ code: ee.value, date: Y(new Date(
|
|
147
|
+
k.workSchedule.getWorkSheet({ code: ee.value, date: Y(new Date(x.value), "{Y}-{m}-{dd}") }).then(
|
|
146
148
|
(l) => {
|
|
147
149
|
T.value = [], l.forEach((e) => {
|
|
148
150
|
e !== null && T.value.push({ code: e.code, days: e.data.days });
|
|
149
|
-
}), k.workSchedule.getWorkSchedule({ code: ee.value, date: Y(new Date(
|
|
151
|
+
}), k.workSchedule.getWorkSchedule({ code: ee.value, date: Y(new Date(x.value), "{Y}-{m}-{dd}") }).then(
|
|
150
152
|
(e) => {
|
|
151
153
|
e.forEach((h, u) => {
|
|
152
154
|
var f, t;
|
|
153
155
|
if (h !== null) {
|
|
154
|
-
|
|
155
|
-
for (let i = 1; i <=
|
|
156
|
-
let m = Y(new Date(
|
|
156
|
+
D.value[u].days = [], h.data.days.forEach((i) => i.state = "Я");
|
|
157
|
+
for (let i = 1; i <= d.value.length; i++) {
|
|
158
|
+
let m = Y(new Date(x.value).setDate(i), "{Y}-{m}-{dd}");
|
|
157
159
|
const a = (f = h.data) == null ? void 0 : f.days.findIndex((p) => p.day === m);
|
|
158
|
-
a === -1 ? ge(i, u, "-", "В") :
|
|
160
|
+
a === -1 ? ge(i, u, "-", "В") : D.value[u].days.push((t = h.data) == null ? void 0 : t.days[a]);
|
|
159
161
|
}
|
|
160
162
|
} else
|
|
161
|
-
for (let i = 1; i <=
|
|
162
|
-
|
|
163
|
-
for (let i = 1; i <=
|
|
164
|
-
let m = new Date(new Date(
|
|
163
|
+
for (let i = 1; i <= d.value.length; i++)
|
|
164
|
+
d.value[i - 1].holidays === "" ? ge(i, u, 8) : d.value[i - 1].holidays === "preholiday" ? ge(i, u, 7) : ge(i, u, "-", "В");
|
|
165
|
+
for (let i = 1; i <= d.value.length; i++) {
|
|
166
|
+
let m = new Date(new Date(x.value).getFullYear(), new Date(x.value).getMonth(), i).getTime() + 1e3;
|
|
165
167
|
for (let a of ye.value) {
|
|
166
168
|
const { dateStart: p, dateEnd: S, code: J } = a;
|
|
167
|
-
if (p && S && J ===
|
|
169
|
+
if (p && S && J === D.value[u].code) {
|
|
168
170
|
const j = new Date(_e(p)).getTime(), L = new Date(_e(S)).getTime();
|
|
169
171
|
if (m >= j && m <= L) {
|
|
170
|
-
const H = Y(new Date(
|
|
171
|
-
o !== -1 ?
|
|
172
|
+
const H = Y(new Date(x.value).setDate(i), "{Y}-{m}-{dd}"), o = D.value[u].days.findIndex((X) => X.day === H);
|
|
173
|
+
o !== -1 ? D.value[u].days[o] = { day: H, time: "-", state: "ОТ" } : D.value[u].days.push({ day: H, time: "-", state: "ОТ" });
|
|
172
174
|
}
|
|
173
175
|
}
|
|
174
176
|
}
|
|
@@ -179,8 +181,8 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
179
181
|
}
|
|
180
182
|
);
|
|
181
183
|
}, ge = (l, e, h, u = "Я") => {
|
|
182
|
-
const f = Y(new Date(
|
|
183
|
-
|
|
184
|
+
const f = Y(new Date(x.value).setDate(l), "{Y}-{m}-{dd}");
|
|
185
|
+
D.value[e].days.push({
|
|
184
186
|
day: f,
|
|
185
187
|
time: h,
|
|
186
188
|
state: u
|
|
@@ -210,40 +212,40 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
210
212
|
count: f.map((t) => t.count).join("/")
|
|
211
213
|
});
|
|
212
214
|
for (let t = 0; t < l.days.length; t++)
|
|
213
|
-
t < 15 && l.days[t].time !== "-" && (l.hourI += Number(l.days[t].time), l.days[t].
|
|
215
|
+
t < 15 && l.days[t].time !== "-" && (l.hourI += Number(l.days[t].time), l.days[t].overtime && (l.hourI += Number(l.days[t].overtime)), l.halfI++), t >= 15 && l.days[t].time !== "-" && (l.days[t].overtime && (l.hourII += Number(l.days[t].overtime)), l.hourII += Number(l.days[t].time), l.halfII++), l.days[t].night && (l.night += Number(l.days[t].night)), l.days[t].overtime && (l.overtime += Number(l.days[t].overtime)), /{|РВ|}/.test(l.days[t].state) && (l.weekend += Number(l.days[t].time)), l.days[t].state === "В" && l.weekendDays++;
|
|
214
216
|
l.contDays = l.halfI + l.halfII, l.contHour = l.hourI + l.hourII;
|
|
215
217
|
});
|
|
216
218
|
}, xe = (l, e) => {
|
|
217
219
|
var m, a, p, S, J, j, L;
|
|
218
220
|
if (e === -1) return "";
|
|
219
|
-
const h = s.value[e], u = new Date(
|
|
221
|
+
const h = s.value[e], u = new Date(x.value), f = `${u.getFullYear()}-${(u.getMonth() + 1).toString().padStart(2, "0")}-${l.toString().padStart(2, "0")}`, t = h.days.findIndex((H) => H.day === f);
|
|
220
222
|
let i = 0;
|
|
221
223
|
return (m = h.days[t]) != null && m.night && (i += h.days[t].night), (a = h.days[t]) != null && a.overtime && (i += h.days[t].overtime), t === -1 ? "" : h.key === 0 ? (p = h.days[t]) == null ? void 0 : p.state : ((S = h.days[t]) == null ? void 0 : S.time) === 0 ? i === 0 ? "-" : i : i === 0 || i === ((J = h.days[t]) == null ? void 0 : J.time) ? (j = h.days[t]) == null ? void 0 : j.time : `${(L = h.days[t]) == null ? void 0 : L.time}/${i}`;
|
|
222
224
|
};
|
|
223
225
|
k.group && (z.value[0] = k.group), k.date && (Z.value = (/* @__PURE__ */ new Date(k.date + "T00:00:01")).getMonth()), Je().then((l) => {
|
|
224
226
|
$e.value = l, ke();
|
|
225
227
|
});
|
|
226
|
-
const Ie = (l) => new Date(
|
|
227
|
-
let l = te.value.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/), e =
|
|
228
|
+
const Ie = (l) => new Date(x.value).getMonth() === (/* @__PURE__ */ new Date()).getMonth() && l === (/* @__PURE__ */ new Date()).getDate() ? " today" : "", Ye = () => {
|
|
229
|
+
let l = te.value.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/), e = D.value[v.value.ids].days[v.value.day + 1].tips;
|
|
228
230
|
return e = typeof e < "u" ? e.match(/(\d{1,2}):\d{2}\s*-\s*(\d{1,2})/) : [0, 9, 18], E.value > 0 && (Number(l[1]) <= 6 ? l[1] = Number(l[1]) + E.value : l[2] = Number(l[2]) - E.value), Number(l[1]) < Number(e[1]) ? `${l[1]}:00 по ${Number(l[1]) + G.value}:00` : `${Number(l[2]) - G.value}:00 по ${l[2]}:00`;
|
|
229
231
|
}, ze = () => {
|
|
230
232
|
let l = /РВ/.test(te.value), e = l ? te.value.match(/\(([^)]+)\)/)[1].replace("-", " по ") : Ye();
|
|
231
|
-
ve.value = `<p style="position: absolute;"><img src="https://cp.avanta-telecom.ru${k.logo}" style="height: 3rem;"></p><div style="display:inline-block;margin-left:66%;width:34%;">Директору<br>ООО "АВАНТА ТЕЛЕКОМ" Майстренко И.С.<br><br>от ${ae.value} ${P(k.fullName)}</div><p>${z.value[0]}<br>СЛУЖЕБНАЯ ЗАПИСКА<br>${Y(new Date(
|
|
233
|
+
ve.value = `<p style="position: absolute;"><img src="https://cp.avanta-telecom.ru${k.logo}" style="height: 3rem;"></p><div style="display:inline-block;margin-left:66%;width:34%;">Директору<br>ООО "АВАНТА ТЕЛЕКОМ" Майстренко И.С.<br><br>от ${ae.value} ${P(k.fullName)}</div><p>${z.value[0]}<br>СЛУЖЕБНАЯ ЗАПИСКА<br>${Y(new Date(x.value).setDate(v.value.day + 1), '"{dd}" {F} {Y}')}г.</p><p style="text-align:center;">Уважаемый Иван Сергеевич!</p><p>В связи с производственной необходимостью _________________, прошу привлечь к ${l ? "к работе в выходной день" : "сверхурочной работе"}, ${Y(new Date(x.value).setDate(v.value.day + 1), "{dd}.{m}.{Y}")} c ${e}, ${s.value[v.value.ids * 2].name.match(/\(([^)]+)\)/)[1]} ${s.value[v.value.ids * 2].fio} для выполнения вышеуказанных работ с его(её) письменного согласия.</p><p>${ae.value} ________________ ${P(k.fullName)}</p>`;
|
|
232
234
|
}, Be = async () => {
|
|
233
235
|
var J, j, L, H;
|
|
234
|
-
|
|
235
|
-
const l = new Qe.Workbook(), e = l.addWorksheet(ie(
|
|
236
|
-
e.mergeCells(`A1:${$("A1",
|
|
237
|
-
for (let o = 1; o <=
|
|
236
|
+
re.value = !0;
|
|
237
|
+
const l = new Qe.Workbook(), e = l.addWorksheet(ie(x.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), h = { vertical: "middle", horizontal: "center" }, u = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, f = { vertical: "middle", horizontal: "center", wrapText: !0 };
|
|
238
|
+
e.mergeCells(`A1:${$("A1", d.value.length + 15)}1`), e.mergeCells("A2:A4"), e.mergeCells("B2:B4"), e.mergeCells("C2:C4"), e.mergeCells("D5:R5"), e.mergeCells(`D2:${$("D2", d.value.length + 2)}2`), e.mergeCells(`${$("D2", d.value.length + 3)}2:${$("D2", d.value.length + 8)}2`), e.mergeCells(`${$("D2", d.value.length + 9)}2:${$("D2", d.value.length + 9)}4`), e.mergeCells(`${$("D2", d.value.length + 10)}2:${$("D2", d.value.length + 11)}2`), e.mergeCells(`${$("D2", d.value.length + 12)}2:${$("D2", d.value.length + 12)}4`), e.mergeCells(`${$("D3", d.value.length + 3)}3:${$("D3", d.value.length + 3)}4`), e.mergeCells(`${$("D3", d.value.length + 4)}3:${$("D3", d.value.length + 8)}3`), e.mergeCells(`${$("D3", d.value.length + 10)}3:${$("D3", d.value.length + 10)}4`), e.mergeCells(`${$("D3", d.value.length + 11)}3:${$("D3", d.value.length + 11)}4`), e.mergeCells(`T5:${$("D5", d.value.length + 1)}5`);
|
|
239
|
+
for (let o = 1; o <= d.value.length + 2; o++)
|
|
238
240
|
e.mergeCells(`${$("D3", o)}3:${$("D4", o)}4`), e.getColumn(o + 3).width = 5, e.getColumn(o + 3).alignment = f, e.getCell(3, o + 3).border = u, o < 16 && (e.getCell(3, o + 3).value = o), o > 16 && (e.getCell(3, o + 3).value = o - 1);
|
|
239
|
-
e.getCell("A1").value =
|
|
241
|
+
e.getCell("A1").value = r("sheet.title", { name: z.value[0] }) + ie(x.value, "month"), e.getCell("A2").value = r("sheet.listNumber"), e.getCell("B2").value = r("sheet.employee"), e.getCell("C2").value = r("sheet.personnelNumber"), e.getCell("D2").value = r("sheet.marks"), e.getCell("S3").value = r("sheet.halfMonth", { half: "I" }), e.getCell("A5").value = "1", e.getCell("B5").value = "2", e.getCell("C5").value = "3", e.getCell("D5").value = "4", e.getCell("S5").value = "5", e.getCell("T5").value = "6", e.getCell(5, d.value.length + 5).value = "7", e.getCell(2, d.value.length + 6).value = r("sheet.workedMonth"), e.getCell(2, d.value.length + 12).value = r("sheet.numberNonAppearing"), e.getCell(2, d.value.length + 13).value = r("sheet.them"), e.getCell(2, d.value.length + 15).value = r("sheet.countWeekend"), e.getCell(3, d.value.length + 5).value = r("sheet.halfMonth", { half: "II" }), e.getCell(3, d.value.length + 6).value = r("sheet.days"), e.getCell(3, d.value.length + 7).value = r("sheet.hours"), e.getCell(4, d.value.length + 7).value = r("sheet.all"), e.getCell(4, d.value.length + 8).value = r("sheet.overtime"), e.getCell(4, d.value.length + 9).value = r("sheet.night"), e.getCell(4, d.value.length + 10).value = r("sheet.weekend"), e.getCell(4, d.value.length + 13).value = r("sheet.code"), e.getCell(4, d.value.length + 14).value = r("sheet.count"), e.getRow(1).height = 40, e.getRow(2).height = 32, e.getRow(3).height = 20, e.getRow(4).height = 60, e.getColumn(1).width = 6, e.getColumn(2).width = 30, e.getColumn(3).width = 17, e.getColumn(19).width = 12, e.getColumn(d.value.length + 5).width = 12, e.getColumn(d.value.length + 12).width = 11, e.getColumn(d.value.length + 15).width = 11, e.getCell("A1").alignment = h, e.getColumn(1).alignment = f, e.getColumn(2).alignment = f, e.getColumn(3).alignment = f;
|
|
240
242
|
for (let o = 6; o <= 15; o++)
|
|
241
|
-
e.getCell(5,
|
|
242
|
-
e.getCell("A2").border = u, e.getCell("B2").border = u, e.getCell("C2").border = u, e.getCell("D2").border = u, e.getCell("D2").border = u, e.getCell("A5").border = u, e.getCell("B5").border = u, e.getCell("C5").border = u, e.getCell("D5").border = u, e.getCell("S5").border = u, e.getCell("T5").border = u, e.getCell(2,
|
|
243
|
+
e.getCell(5, d.value.length + o).value = o + 2, e.getColumn(d.value.length + o).alignment = f, e.getCell(4, d.value.length + o).border = u, e.getCell(5, d.value.length + o).border = u;
|
|
244
|
+
e.getCell("A2").border = u, e.getCell("B2").border = u, e.getCell("C2").border = u, e.getCell("D2").border = u, e.getCell("D2").border = u, e.getCell("A5").border = u, e.getCell("B5").border = u, e.getCell("C5").border = u, e.getCell("D5").border = u, e.getCell("S5").border = u, e.getCell("T5").border = u, e.getCell(2, d.value.length + 6).border = u, e.getCell(2, d.value.length + 12).border = u, e.getCell(2, d.value.length + 13).border = u, e.getCell(2, d.value.length + 15).border = u, e.getCell(3, d.value.length + 7).border = u;
|
|
243
245
|
let t = 1, i = 5, m = !0;
|
|
244
246
|
for (const o of s.value) {
|
|
245
247
|
let X = [t, o.name, o.code];
|
|
246
|
-
for (let B = 0; B <
|
|
248
|
+
for (let B = 0; B < d.value.length; B++)
|
|
247
249
|
B === 15 && X.push(m ? (o == null ? void 0 : o.halfI) || "" : (o == null ? void 0 : o.hourI) || ""), X.push(m ? ((J = o.days[B]) == null ? void 0 : J.state) || "" : ((j = o.days[B]) == null ? void 0 : j.time) || "");
|
|
248
250
|
X.push(
|
|
249
251
|
m ? (o == null ? void 0 : o.halfII) || 0 : (o == null ? void 0 : o.hourII) || 0,
|
|
@@ -261,27 +263,27 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
261
263
|
const Ue = e.addRow(X);
|
|
262
264
|
if (Ue.border = u, !m) {
|
|
263
265
|
e.mergeCells(`A${i + t * 2 - 1}:A${i + t * 2}`), e.mergeCells(`B${i + t * 2 - 1}:B${i + t * 2}`), e.mergeCells(`C${i + t * 2 - 1}:C${i + t * 2}`);
|
|
264
|
-
for (let B =
|
|
266
|
+
for (let B = d.value.length + 3; B <= d.value.length + 8; B++)
|
|
265
267
|
e.mergeCells(`${$("D", B)}${i + t * 2 - 1}:${$("D", B)}${i + t * 2}`);
|
|
266
|
-
e.mergeCells(`${$("D",
|
|
268
|
+
e.mergeCells(`${$("D", d.value.length + 12)}${i + t * 2 - 1}:${$("D", d.value.length + 12)}${i + t * 2}`), t++;
|
|
267
269
|
}
|
|
268
270
|
m = !m;
|
|
269
271
|
}
|
|
270
272
|
let a = "Чемарина Н. Ю.";
|
|
271
273
|
k.odata.personal.forEach((o) => {
|
|
272
274
|
o.roleName === "Специалист по кадрам и кадровому делопроизводству" && (a = o.employeeName);
|
|
273
|
-
}), e.mergeCells(`A${s.value.length + 7}:B${s.value.length + 7}`), e.mergeCells(`C${s.value.length + 7}:G${s.value.length + 7}`), e.mergeCells(`H${s.value.length + 7}:M${s.value.length + 7}`), e.mergeCells(`O${s.value.length + 7}:T${s.value.length + 7}`), e.mergeCells(`V${s.value.length + 7}:AC${s.value.length + 7}`), e.mergeCells(`AD${s.value.length + 7}:AI${s.value.length + 7}`), e.mergeCells(`AJ${s.value.length + 7}:AL${s.value.length + 7}`), e.mergeCells(`AM${s.value.length + 7}:AP${s.value.length + 7}`), e.mergeCells(`V${s.value.length + 9}:AC${s.value.length + 9}`), e.mergeCells(`AD${s.value.length + 9}:AI${s.value.length + 9}`), e.mergeCells(`AJ${s.value.length + 9}:AL${s.value.length + 9}`), e.mergeCells(`AM${s.value.length + 9}:AP${s.value.length + 9}`), e.getCell(`A${s.value.length + 7}`).value =
|
|
275
|
+
}), e.mergeCells(`A${s.value.length + 7}:B${s.value.length + 7}`), e.mergeCells(`C${s.value.length + 7}:G${s.value.length + 7}`), e.mergeCells(`H${s.value.length + 7}:M${s.value.length + 7}`), e.mergeCells(`O${s.value.length + 7}:T${s.value.length + 7}`), e.mergeCells(`V${s.value.length + 7}:AC${s.value.length + 7}`), e.mergeCells(`AD${s.value.length + 7}:AI${s.value.length + 7}`), e.mergeCells(`AJ${s.value.length + 7}:AL${s.value.length + 7}`), e.mergeCells(`AM${s.value.length + 7}:AP${s.value.length + 7}`), e.mergeCells(`V${s.value.length + 9}:AC${s.value.length + 9}`), e.mergeCells(`AD${s.value.length + 9}:AI${s.value.length + 9}`), e.mergeCells(`AJ${s.value.length + 9}:AL${s.value.length + 9}`), e.mergeCells(`AM${s.value.length + 9}:AP${s.value.length + 9}`), e.getCell(`A${s.value.length + 7}`).value = r("sheet.responsiblePerson"), e.getCell(`V${s.value.length + 7}`).value = r("sheet.headStructural"), e.getCell(`C${s.value.length + 7}`).value = ae.value + ":", e.getCell(`O${s.value.length + 7}`).value = P(k.fullName), e.getCell(`AD${s.value.length + 7}`).value = ae.value + ":", e.getCell(`AM${s.value.length + 7}`).value = P(k.fullName), e.getCell(`V${s.value.length + 9}`).value = r("sheet.HREmployee"), e.getCell(`AD${s.value.length + 9}`).value = "Специалист по кадрам и кадровому делопроизводству:", e.getCell(`AM${s.value.length + 9}`).value = P(a), e.getCell(`A${s.value.length + 7}`).alignment = { vertical: "middle", horizontal: "right", wrapText: !0 }, e.getCell(`C${s.value.length + 7}`).alignment = { vertical: "middle", horizontal: "right", wrapText: !0 }, e.getCell(`O${s.value.length + 7}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`V${s.value.length + 7}`).alignment = { vertical: "middle", horizontal: "right", wrapText: !0 }, e.getCell(`AD${s.value.length + 7}`).alignment = { vertical: "middle", horizontal: "right", wrapText: !0 }, e.getCell(`AM${s.value.length + 7}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`V${s.value.length + 9}`).alignment = { vertical: "middle", horizontal: "right", wrapText: !0 }, e.getCell(`AD${s.value.length + 9}`).alignment = { vertical: "middle", horizontal: "right", wrapText: !0 }, e.getCell(`AM${s.value.length + 9}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`H${s.value.length + 7}`).border = { bottom: { style: "thin" } }, e.getCell(`AJ${s.value.length + 7}`).border = { bottom: { style: "thin" } }, e.getCell(`AJ${s.value.length + 9}`).border = { bottom: { style: "thin" } };
|
|
274
276
|
const p = `export_${Y(Date.now(), "{dd}.{m}.{Y}")}.xlsx`, S = await l.xlsx.writeBuffer();
|
|
275
|
-
Ne(new Blob([S]), p),
|
|
277
|
+
Ne(new Blob([S]), p), re.value = !1;
|
|
276
278
|
}, Fe = () => {
|
|
277
279
|
let l = new Blob([ve.value], { type: "text/plain;charset=utf-8" });
|
|
278
280
|
Ne(l, `Служебка_${P(s.value[v.value.ids * 2].fio)}_${Y(Date.now(), "{dd}.{m}.{Y}")}.html`);
|
|
279
281
|
};
|
|
280
282
|
return (l, e) => {
|
|
281
283
|
const h = ue("el-form-item"), u = ue("el-form"), f = ue("el-dialog"), t = ue("svg-icon"), i = ue("el-slider"), m = He("loading");
|
|
282
|
-
return
|
|
284
|
+
return b(), O(q, null, [
|
|
283
285
|
A("div", el, [
|
|
284
|
-
se.checkEdit ? (
|
|
286
|
+
se.checkEdit ? (b(), _(n(Le), {
|
|
285
287
|
key: 0,
|
|
286
288
|
modelValue: z.value,
|
|
287
289
|
"onUpdate:modelValue": e[0] || (e[0] = (a) => z.value = a),
|
|
@@ -292,7 +294,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
292
294
|
style: { width: "240px", "margin-bottom": ".5rem", "margin-right": ".5rem" }
|
|
293
295
|
}, {
|
|
294
296
|
default: g(() => [
|
|
295
|
-
(
|
|
297
|
+
(b(!0), O(q, null, me(pe.value, (a) => (b(), _(n(Ge), {
|
|
296
298
|
key: a.value,
|
|
297
299
|
label: a.label,
|
|
298
300
|
value: a.value
|
|
@@ -300,22 +302,22 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
300
302
|
]),
|
|
301
303
|
_: 1
|
|
302
304
|
}, 8, ["modelValue"])) : M("", !0),
|
|
303
|
-
se.checkEdit ? (
|
|
305
|
+
se.checkEdit ? (b(), _(n(F), {
|
|
304
306
|
key: 1,
|
|
305
307
|
plain: "",
|
|
306
308
|
onClick: e[1] || (e[1] = (a) => Q.value = !0)
|
|
307
309
|
}, {
|
|
308
310
|
default: g(() => [
|
|
309
|
-
w(
|
|
311
|
+
w(C(n(r)("workSchedule.jobTitle")), 1)
|
|
310
312
|
]),
|
|
311
313
|
_: 1
|
|
312
314
|
})) : M("", !0),
|
|
313
315
|
e[19] || (e[19] = A("div", { class: "expander" }, null, -1)),
|
|
314
|
-
se.checkEdit ? (
|
|
316
|
+
se.checkEdit ? (b(), _(n(ce), {
|
|
315
317
|
key: 2,
|
|
316
318
|
modelValue: Z.value,
|
|
317
319
|
"onUpdate:modelValue": e[2] || (e[2] = (a) => Z.value = a),
|
|
318
|
-
"active-text": n(
|
|
320
|
+
"active-text": n(r)("workSchedule.currentMonth"),
|
|
319
321
|
"active-value": "0",
|
|
320
322
|
"inactive-value": "-1",
|
|
321
323
|
style: { "margin-bottom": ".5rem", "margin-left": ".5rem" }
|
|
@@ -342,48 +344,48 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
342
344
|
border: "",
|
|
343
345
|
style: { width: "100%" },
|
|
344
346
|
size: "small",
|
|
345
|
-
"empty-text": n(
|
|
347
|
+
"empty-text": n(r)("sheet.emptyText"),
|
|
346
348
|
align: "center",
|
|
347
349
|
onCellClick: Ve,
|
|
348
350
|
"max-height": fe.value,
|
|
349
351
|
"default-sort": { prop: "mame", order: "descending" }
|
|
350
352
|
}, {
|
|
351
353
|
default: g(() => [
|
|
352
|
-
c(n(
|
|
353
|
-
label: n(
|
|
354
|
+
c(n(I), {
|
|
355
|
+
label: n(r)("sheet.title", { name: z.value[0] }) + n(ie)(x.value, "month"),
|
|
354
356
|
align: "center",
|
|
355
357
|
height: "10"
|
|
356
358
|
}, {
|
|
357
359
|
default: g(() => [
|
|
358
|
-
c(n(
|
|
359
|
-
label: n(
|
|
360
|
+
c(n(I), {
|
|
361
|
+
label: n(r)("sheet.employee"),
|
|
360
362
|
width: R.value === "false" ? 180 : l.auto,
|
|
361
363
|
align: "center"
|
|
362
364
|
}, {
|
|
363
365
|
default: g((a) => [
|
|
364
|
-
w(
|
|
366
|
+
w(C(s.value[a.$index].name), 1)
|
|
365
367
|
]),
|
|
366
368
|
_: 1
|
|
367
369
|
}, 8, ["label", "width"]),
|
|
368
|
-
c(n(
|
|
369
|
-
label: n(
|
|
370
|
+
c(n(I), {
|
|
371
|
+
label: n(r)("sheet.personnelNumber"),
|
|
370
372
|
align: "center",
|
|
371
373
|
width: "108"
|
|
372
374
|
}, {
|
|
373
375
|
default: g((a) => [
|
|
374
|
-
w(
|
|
376
|
+
w(C(s.value[a.$index].code), 1)
|
|
375
377
|
]),
|
|
376
378
|
_: 1
|
|
377
379
|
}, 8, ["label"]),
|
|
378
|
-
c(n(
|
|
379
|
-
label: n(
|
|
380
|
+
c(n(I), {
|
|
381
|
+
label: n(r)("sheet.marks"),
|
|
380
382
|
align: "center"
|
|
381
383
|
}, {
|
|
382
384
|
default: g(() => [
|
|
383
|
-
(
|
|
385
|
+
(b(!0), O(q, null, me(d.value, (a) => (b(), O(q, {
|
|
384
386
|
key: a.day
|
|
385
387
|
}, [
|
|
386
|
-
a.day <= 15 ? (
|
|
388
|
+
a.day <= 15 ? (b(), _(n(I), {
|
|
387
389
|
key: 0,
|
|
388
390
|
width: "30",
|
|
389
391
|
"class-name": a.holidays + Ie(a.day),
|
|
@@ -392,22 +394,22 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
392
394
|
` + a.weekday
|
|
393
395
|
}, {
|
|
394
396
|
default: g((p) => [
|
|
395
|
-
A("div", ll,
|
|
397
|
+
A("div", ll, C(xe(a.day, p.$index) || " "), 1)
|
|
396
398
|
]),
|
|
397
399
|
_: 2
|
|
398
400
|
}, 1032, ["class-name", "label"])) : M("", !0),
|
|
399
|
-
a.day === 15 ? (
|
|
401
|
+
a.day === 15 ? (b(), _(n(I), {
|
|
400
402
|
key: 1,
|
|
401
|
-
label: n(
|
|
403
|
+
label: n(r)("sheet.halfMonth", { half: "I" }),
|
|
402
404
|
align: "center",
|
|
403
405
|
width: "120"
|
|
404
406
|
}, {
|
|
405
407
|
default: g((p) => [
|
|
406
|
-
w(
|
|
408
|
+
w(C(s.value[p.$index].key === 0 ? s.value[p.$index].halfI : s.value[p.$index].hourI), 1)
|
|
407
409
|
]),
|
|
408
410
|
_: 1
|
|
409
411
|
}, 8, ["label"])) : M("", !0),
|
|
410
|
-
a.day > 15 ? (
|
|
412
|
+
a.day > 15 ? (b(), _(n(I), {
|
|
411
413
|
key: 2,
|
|
412
414
|
width: "30",
|
|
413
415
|
"class-name": a.holidays + Ie(a.day),
|
|
@@ -416,87 +418,87 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
416
418
|
` + a.weekday
|
|
417
419
|
}, {
|
|
418
420
|
default: g((p) => [
|
|
419
|
-
A("div", al,
|
|
421
|
+
A("div", al, C(xe(a.day, p.$index) || " "), 1)
|
|
420
422
|
]),
|
|
421
423
|
_: 2
|
|
422
424
|
}, 1032, ["class-name", "label"])) : M("", !0)
|
|
423
425
|
], 64))), 128)),
|
|
424
|
-
c(n(
|
|
425
|
-
label: n(
|
|
426
|
+
c(n(I), {
|
|
427
|
+
label: n(r)("sheet.halfMonth", { half: "II" }),
|
|
426
428
|
align: "center",
|
|
427
429
|
width: "120"
|
|
428
430
|
}, {
|
|
429
431
|
default: g((a) => [
|
|
430
|
-
w(
|
|
432
|
+
w(C(s.value[a.$index].key === 0 ? s.value[a.$index].halfII : s.value[a.$index].hourII), 1)
|
|
431
433
|
]),
|
|
432
434
|
_: 1
|
|
433
435
|
}, 8, ["label"])
|
|
434
436
|
]),
|
|
435
437
|
_: 1
|
|
436
438
|
}, 8, ["label"]),
|
|
437
|
-
R.value === "false" ? (
|
|
439
|
+
R.value === "false" ? (b(), _(n(I), {
|
|
438
440
|
key: 0,
|
|
439
|
-
label: n(
|
|
441
|
+
label: n(r)("sheet.workedMonth"),
|
|
440
442
|
align: "center"
|
|
441
443
|
}, {
|
|
442
444
|
default: g(() => [
|
|
443
|
-
c(n(
|
|
444
|
-
label: n(
|
|
445
|
+
c(n(I), {
|
|
446
|
+
label: n(r)("sheet.days"),
|
|
445
447
|
align: "center",
|
|
446
448
|
"label-class-name": "turn",
|
|
447
449
|
width: "34"
|
|
448
450
|
}, {
|
|
449
451
|
default: g((a) => [
|
|
450
|
-
w(
|
|
452
|
+
w(C(s.value[a.$index].contDays), 1)
|
|
451
453
|
]),
|
|
452
454
|
_: 1
|
|
453
455
|
}, 8, ["label"]),
|
|
454
|
-
c(n(
|
|
455
|
-
label: n(
|
|
456
|
+
c(n(I), {
|
|
457
|
+
label: n(r)("sheet.hours"),
|
|
456
458
|
align: "center"
|
|
457
459
|
}, {
|
|
458
460
|
default: g(() => [
|
|
459
|
-
c(n(
|
|
460
|
-
label: n(
|
|
461
|
+
c(n(I), {
|
|
462
|
+
label: n(r)("sheet.all"),
|
|
461
463
|
align: "center",
|
|
462
464
|
"label-class-name": "turn",
|
|
463
465
|
width: "40"
|
|
464
466
|
}, {
|
|
465
467
|
default: g((a) => [
|
|
466
|
-
w(
|
|
468
|
+
w(C(s.value[a.$index].contHour), 1)
|
|
467
469
|
]),
|
|
468
470
|
_: 1
|
|
469
471
|
}, 8, ["label"]),
|
|
470
|
-
c(n(
|
|
471
|
-
label: n(
|
|
472
|
+
c(n(I), {
|
|
473
|
+
label: n(r)("sheet.overtime"),
|
|
472
474
|
align: "center",
|
|
473
475
|
"label-class-name": "turn",
|
|
474
476
|
width: "34"
|
|
475
477
|
}, {
|
|
476
478
|
default: g((a) => [
|
|
477
|
-
w(
|
|
479
|
+
w(C(s.value[a.$index].overtime), 1)
|
|
478
480
|
]),
|
|
479
481
|
_: 1
|
|
480
482
|
}, 8, ["label"]),
|
|
481
|
-
c(n(
|
|
482
|
-
label: n(
|
|
483
|
+
c(n(I), {
|
|
484
|
+
label: n(r)("sheet.night"),
|
|
483
485
|
align: "center",
|
|
484
486
|
"label-class-name": "turn",
|
|
485
487
|
width: "34"
|
|
486
488
|
}, {
|
|
487
489
|
default: g((a) => [
|
|
488
|
-
w(
|
|
490
|
+
w(C(s.value[a.$index].night), 1)
|
|
489
491
|
]),
|
|
490
492
|
_: 1
|
|
491
493
|
}, 8, ["label"]),
|
|
492
|
-
c(n(
|
|
493
|
-
label: n(
|
|
494
|
+
c(n(I), {
|
|
495
|
+
label: n(r)("sheet.weekend"),
|
|
494
496
|
align: "center",
|
|
495
497
|
"label-class-name": "turn",
|
|
496
498
|
width: "34"
|
|
497
499
|
}, {
|
|
498
500
|
default: g((a) => [
|
|
499
|
-
w(
|
|
501
|
+
w(C(s.value[a.$index].weekend), 1)
|
|
500
502
|
]),
|
|
501
503
|
_: 1
|
|
502
504
|
}, 8, ["label"])
|
|
@@ -506,27 +508,27 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
506
508
|
]),
|
|
507
509
|
_: 1
|
|
508
510
|
}, 8, ["label"])) : M("", !0),
|
|
509
|
-
R.value === "false" ? (
|
|
511
|
+
R.value === "false" ? (b(), _(n(I), {
|
|
510
512
|
key: 1,
|
|
511
|
-
label: n(
|
|
513
|
+
label: n(r)("sheet.numberNonAppearing"),
|
|
512
514
|
align: "center"
|
|
513
515
|
}, {
|
|
514
516
|
default: g((a) => {
|
|
515
517
|
var p;
|
|
516
518
|
return [
|
|
517
|
-
w(
|
|
519
|
+
w(C((p = s.value[a.$index]) == null ? void 0 : p.numberNonAppearing[s.value[a.$index].key]), 1)
|
|
518
520
|
];
|
|
519
521
|
}),
|
|
520
522
|
_: 1
|
|
521
523
|
}, 8, ["label"])) : M("", !0),
|
|
522
|
-
R.value === "false" ? (
|
|
524
|
+
R.value === "false" ? (b(), _(n(I), {
|
|
523
525
|
key: 2,
|
|
524
|
-
label: n(
|
|
526
|
+
label: n(r)("sheet.them"),
|
|
525
527
|
align: "center"
|
|
526
528
|
}, {
|
|
527
529
|
default: g(() => [
|
|
528
|
-
c(n(
|
|
529
|
-
label: n(
|
|
530
|
+
c(n(I), {
|
|
531
|
+
label: n(r)("sheet.code"),
|
|
530
532
|
align: "center",
|
|
531
533
|
"label-class-name": "turn",
|
|
532
534
|
width: "30"
|
|
@@ -534,13 +536,13 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
534
536
|
default: g((a) => {
|
|
535
537
|
var p;
|
|
536
538
|
return [
|
|
537
|
-
w(
|
|
539
|
+
w(C((p = s.value[a.$index].appearing) == null ? void 0 : p.code), 1)
|
|
538
540
|
];
|
|
539
541
|
}),
|
|
540
542
|
_: 1
|
|
541
543
|
}, 8, ["label"]),
|
|
542
|
-
c(n(
|
|
543
|
-
label: n(
|
|
544
|
+
c(n(I), {
|
|
545
|
+
label: n(r)("sheet.count"),
|
|
544
546
|
align: "center",
|
|
545
547
|
"label-class-name": "turn",
|
|
546
548
|
width: "30"
|
|
@@ -548,7 +550,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
548
550
|
default: g((a) => {
|
|
549
551
|
var p;
|
|
550
552
|
return [
|
|
551
|
-
w(
|
|
553
|
+
w(C((p = s.value[a.$index].appearing) == null ? void 0 : p.count), 1)
|
|
552
554
|
];
|
|
553
555
|
}),
|
|
554
556
|
_: 1
|
|
@@ -556,13 +558,13 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
556
558
|
]),
|
|
557
559
|
_: 1
|
|
558
560
|
}, 8, ["label"])) : M("", !0),
|
|
559
|
-
R.value === "false" ? (
|
|
561
|
+
R.value === "false" ? (b(), _(n(I), {
|
|
560
562
|
key: 3,
|
|
561
|
-
label: n(
|
|
563
|
+
label: n(r)("sheet.countWeekend"),
|
|
562
564
|
align: "center"
|
|
563
565
|
}, {
|
|
564
566
|
default: g((a) => [
|
|
565
|
-
w(
|
|
567
|
+
w(C(s.value[a.$index].weekendDays), 1)
|
|
566
568
|
]),
|
|
567
569
|
_: 1
|
|
568
570
|
}, 8, ["label"])) : M("", !0)
|
|
@@ -572,21 +574,21 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
572
574
|
]),
|
|
573
575
|
_: 1
|
|
574
576
|
}, 8, ["data", "empty-text", "max-height"]),
|
|
575
|
-
Oe((
|
|
576
|
-
disabled:
|
|
577
|
+
Oe((b(), _(n(F), {
|
|
578
|
+
disabled: re.value,
|
|
577
579
|
plain: "",
|
|
578
580
|
onClick: Be,
|
|
579
581
|
style: { "margin-top": ".5rem" }
|
|
580
582
|
}, {
|
|
581
583
|
default: g(() => [
|
|
582
|
-
w(
|
|
584
|
+
w(C(n(r)("workSchedule.exportExcel")), 1)
|
|
583
585
|
]),
|
|
584
586
|
_: 1
|
|
585
587
|
}, 8, ["disabled"])), [
|
|
586
|
-
[m,
|
|
588
|
+
[m, re.value]
|
|
587
589
|
]),
|
|
588
590
|
c(f, {
|
|
589
|
-
title: n(
|
|
591
|
+
title: n(r)("workSchedule.jobTitle"),
|
|
590
592
|
modelValue: Q.value,
|
|
591
593
|
"onUpdate:modelValue": e[7] || (e[7] = (a) => Q.value = a),
|
|
592
594
|
width: "400px"
|
|
@@ -597,7 +599,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
597
599
|
size: "default"
|
|
598
600
|
}, {
|
|
599
601
|
default: g(() => [
|
|
600
|
-
w(
|
|
602
|
+
w(C(l.$t("workSchedule.cancel")), 1)
|
|
601
603
|
]),
|
|
602
604
|
_: 1
|
|
603
605
|
}),
|
|
@@ -605,11 +607,11 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
605
607
|
size: "default",
|
|
606
608
|
type: "primary",
|
|
607
609
|
onClick: e[6] || (e[6] = (a) => {
|
|
608
|
-
|
|
610
|
+
be(), Q.value = !1;
|
|
609
611
|
})
|
|
610
612
|
}, {
|
|
611
613
|
default: g(() => [
|
|
612
|
-
w(
|
|
614
|
+
w(C(l.$t("workSchedule.select")), 1)
|
|
613
615
|
]),
|
|
614
616
|
_: 1
|
|
615
617
|
})
|
|
@@ -621,7 +623,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
621
623
|
autocomplete: "on"
|
|
622
624
|
}, {
|
|
623
625
|
default: g(() => [
|
|
624
|
-
(
|
|
626
|
+
(b(!0), O(q, null, me(K.value, (a) => (b(), _(h, null, {
|
|
625
627
|
default: g(() => [
|
|
626
628
|
c(n(ce), {
|
|
627
629
|
modelValue: a.val,
|
|
@@ -640,14 +642,14 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
640
642
|
c(n(Xe), {
|
|
641
643
|
show: U.value,
|
|
642
644
|
"onUpdate:show": e[16] || (e[16] = (a) => U.value = a),
|
|
643
|
-
options:
|
|
645
|
+
options: Ce.value
|
|
644
646
|
}, {
|
|
645
647
|
default: g(() => [
|
|
646
648
|
A("div", {
|
|
647
649
|
class: "mx-context-menu-item",
|
|
648
650
|
onClick: e[8] || (e[8] = (a) => U.value = !1)
|
|
649
651
|
}, [
|
|
650
|
-
A("span", tl,
|
|
652
|
+
A("span", tl, C(v.value.name), 1),
|
|
651
653
|
e[20] || (e[20] = A("div", { class: "expander" }, null, -1)),
|
|
652
654
|
c(t, { "icon-class": "cross" })
|
|
653
655
|
]),
|
|
@@ -659,7 +661,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
659
661
|
style: { padding: "0 0 .5rem" }
|
|
660
662
|
}, {
|
|
661
663
|
default: g(() => [
|
|
662
|
-
(
|
|
664
|
+
(b(!0), O(q, null, me(Ae.value, (a) => (b(), _(n(oe), {
|
|
663
665
|
key: a.value,
|
|
664
666
|
label: a.label,
|
|
665
667
|
onClick: (p) => {
|
|
@@ -671,10 +673,10 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
671
673
|
_: 1
|
|
672
674
|
}, 8, ["label"])
|
|
673
675
|
]),
|
|
674
|
-
/^(РВ|Я|Н(?![Н])).*$/.test(v.value.failure) ? (
|
|
676
|
+
/^(РВ|Я|Н(?![Н])).*$/.test(v.value.failure) ? (b(), O("div", nl, [
|
|
675
677
|
c(n(oe), { clickClose: !1 }, {
|
|
676
678
|
default: g(() => [
|
|
677
|
-
A("span", null,
|
|
679
|
+
A("span", null, C(n(r)("workSchedule.with")) + ":", 1)
|
|
678
680
|
]),
|
|
679
681
|
_: 1
|
|
680
682
|
}),
|
|
@@ -688,7 +690,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
688
690
|
}, null, 8, ["modelValue"]),
|
|
689
691
|
c(n(oe), { clickClose: !1 }, {
|
|
690
692
|
default: g(() => [
|
|
691
|
-
A("span", null,
|
|
693
|
+
A("span", null, C(n(r)("workSchedule.duration")) + ":", 1)
|
|
692
694
|
]),
|
|
693
695
|
_: 1
|
|
694
696
|
}),
|
|
@@ -700,10 +702,10 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
700
702
|
max: n(je)(V.value !== 1 ? 23 - V.value : 21, 4, 22)
|
|
701
703
|
}, null, 8, ["modelValue", "max"])
|
|
702
704
|
])) : M("", !0),
|
|
703
|
-
/^(|К|КВ|ОТ|Б|Р|ОЖ|У|ДО|УД|Г)$/.test(v.value.failure) ? (
|
|
705
|
+
/^(|К|КВ|ОТ|Б|Р|ОЖ|У|ДО|УД|Г)$/.test(v.value.failure) ? (b(), O("div", ul, [
|
|
704
706
|
c(n(oe), { clickClose: !1 }, {
|
|
705
707
|
default: g(() => [
|
|
706
|
-
A("span", null,
|
|
708
|
+
A("span", null, C(n(r)("sheet.count")) + ":", 1)
|
|
707
709
|
]),
|
|
708
710
|
_: 1
|
|
709
711
|
}),
|
|
@@ -712,27 +714,27 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
712
714
|
"onUpdate:modelValue": e[11] || (e[11] = (a) => le.value = a),
|
|
713
715
|
step: 1,
|
|
714
716
|
min: 1,
|
|
715
|
-
max:
|
|
717
|
+
max: d.value.length - v.value.day,
|
|
716
718
|
style: { width: "100%" }
|
|
717
719
|
}, null, 8, ["modelValue", "max"])
|
|
718
720
|
])) : M("", !0),
|
|
719
721
|
c(n(oe), { class: "wrap" }, {
|
|
720
722
|
default: g(() => [
|
|
721
|
-
v.value.rest ? (
|
|
723
|
+
v.value.rest ? (b(), _(n(F), {
|
|
722
724
|
key: 0,
|
|
723
725
|
onClick: e[12] || (e[12] = (a) => he("reset"))
|
|
724
726
|
}, {
|
|
725
727
|
default: g(() => [
|
|
726
|
-
w(
|
|
728
|
+
w(C(n(r)("sheet.reset")), 1)
|
|
727
729
|
]),
|
|
728
730
|
_: 1
|
|
729
731
|
})) : M("", !0),
|
|
730
|
-
W.value ? (
|
|
732
|
+
W.value ? (b(), _(n(F), {
|
|
731
733
|
key: 1,
|
|
732
734
|
onClick: e[13] || (e[13] = (a) => he("save"))
|
|
733
735
|
}, {
|
|
734
736
|
default: g(() => [
|
|
735
|
-
w(
|
|
737
|
+
w(C(n(r)("sheet.save")), 1)
|
|
736
738
|
]),
|
|
737
739
|
_: 1
|
|
738
740
|
})) : M("", !0),
|
|
@@ -740,17 +742,17 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
740
742
|
onClick: e[14] || (e[14] = (a) => U.value = !1)
|
|
741
743
|
}, {
|
|
742
744
|
default: g(() => [
|
|
743
|
-
w(
|
|
745
|
+
w(C(n(r)("sheet.cancel")), 1)
|
|
744
746
|
]),
|
|
745
747
|
_: 1
|
|
746
748
|
}),
|
|
747
|
-
|
|
749
|
+
de.value ? (b(), _(n(F), {
|
|
748
750
|
key: 2,
|
|
749
751
|
onClick: e[15] || (e[15] = (a) => ze()),
|
|
750
752
|
popovertarget: "my-service"
|
|
751
753
|
}, {
|
|
752
754
|
default: g(() => [
|
|
753
|
-
w(
|
|
755
|
+
w(C(n(r)("sheet.service")), 1)
|
|
754
756
|
]),
|
|
755
757
|
_: 1
|
|
756
758
|
})) : M("", !0)
|
|
@@ -769,7 +771,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
769
771
|
ref: we
|
|
770
772
|
}, [
|
|
771
773
|
e[21] || (e[21] = A("header", null, "Служебная записка", -1)),
|
|
772
|
-
(
|
|
774
|
+
(b(), _(Pe(k.editor), {
|
|
773
775
|
modelValue: ve.value,
|
|
774
776
|
"onUpdate:modelValue": e[17] || (e[17] = (a) => ve.value = a)
|
|
775
777
|
}, null, 8, ["modelValue"])),
|
|
@@ -779,7 +781,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
779
781
|
size: "default"
|
|
780
782
|
}, {
|
|
781
783
|
default: g(() => [
|
|
782
|
-
w(
|
|
784
|
+
w(C(l.$t("calendar.cancel")), 1)
|
|
783
785
|
]),
|
|
784
786
|
_: 1
|
|
785
787
|
}),
|
|
@@ -789,7 +791,7 @@ const el = { class: "nav" }, ll = { style: { height: "20px", width: "100%", disp
|
|
|
789
791
|
onClick: Fe
|
|
790
792
|
}, {
|
|
791
793
|
default: g(() => [
|
|
792
|
-
w(
|
|
794
|
+
w(C(l.$t("calendar.save")), 1)
|
|
793
795
|
]),
|
|
794
796
|
_: 1
|
|
795
797
|
})
|