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