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