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