@studio-west/employees 0.6.28 → 0.6.30

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