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