@studio-west/employees 0.5.24 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/SheetTable.cjs +1 -1
- package/dist/SheetTable.js +1 -1
- package/dist/VacationTable.cjs +1 -1
- package/dist/VacationTable.js +1 -1
- package/dist/WorkTable.cjs +3 -3
- package/dist/WorkTable.js +274 -265
- package/dist/{index-DIjJDdmP.js → index-D4ZMBdCa.js} +16 -11
- package/dist/{index-CmFQ6bqG.cjs → index-DxdyeKnm.cjs} +1 -1
- package/package.json +1 -1
package/dist/WorkTable.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { saveAs as
|
|
3
|
-
import * as
|
|
4
|
-
import { p as
|
|
5
|
-
import { useI18n as
|
|
6
|
-
import { ElSelect as
|
|
7
|
-
import { ContextMenu as
|
|
8
|
-
const
|
|
1
|
+
import { ref as v, watch as fe, resolveComponent as Ee, resolveDirective as Ne, createElementBlock as A, openBlock as f, createElementVNode as w, createVNode as i, createCommentVNode as X, withDirectives as Me, createBlock as T, unref as t, withCtx as s, Fragment as ue, renderList as de, createTextVNode as $, toDisplayString as h, normalizeClass as Ae, normalizeStyle as Te } from "vue";
|
|
2
|
+
import { saveAs as Be } from "file-saver";
|
|
3
|
+
import * as ze from "exceljs";
|
|
4
|
+
import { p as W, b as ie, h as Fe, a as re, c as D } from "./index-D4ZMBdCa.js";
|
|
5
|
+
import { useI18n as Ue } from "vue-i18n";
|
|
6
|
+
import { ElSelect as Ye, ElOption as Ie, ElButton as N, ElSwitch as se, ElSkeleton as He, ElTable as Re, ElTableColumn as B, ElSkeletonItem as P, ElDialog as We, ElForm as Pe, ElFormItem as je, ElRadioGroup as Le, ElRadioButton as ve, ElSlider as j } from "element-plus";
|
|
7
|
+
import { ContextMenu as Oe, ContextMenuItem as Ge, ContextMenuSeparator as Ze } from "@imengyu/vue3-context-menu";
|
|
8
|
+
const qe = { class: "work" }, Je = { class: "nav" }, Ke = { style: { height: "100px", width: "100%", display: "inline-block" } }, Qe = ["innerHTML"], Xe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "controls-container",
|
|
11
11
|
style: { "margin-top": ".5rem" }
|
|
12
|
-
},
|
|
12
|
+
}, _e = {
|
|
13
13
|
key: 0,
|
|
14
14
|
style: { padding: "0.5em 1.5em" }
|
|
15
|
-
},
|
|
15
|
+
}, el = {
|
|
16
16
|
key: 1,
|
|
17
17
|
style: { padding: "0.5em 1.5em" }
|
|
18
|
-
},
|
|
18
|
+
}, dl = {
|
|
19
19
|
__name: "WorkTable",
|
|
20
20
|
props: {
|
|
21
21
|
checkEdit: { type: Boolean, default: () => !0 },
|
|
@@ -24,7 +24,7 @@ const Oe = { class: "work" }, Ge = { class: "nav" }, Ze = { style: { height: "10
|
|
|
24
24
|
fullName: { type: String, default: "Вы" }
|
|
25
25
|
},
|
|
26
26
|
setup(z) {
|
|
27
|
-
const { t: d, d:
|
|
27
|
+
const { t: d, d: L } = Ue(), S = z, O = v(!1), o = v([
|
|
28
28
|
// { name: 'Иванов П.М. (Ведущий работник месяца)',
|
|
29
29
|
// days: [], // {day: "2024-11-01", tips: '(9:00 - 18:00)', time: 8 }
|
|
30
30
|
// contHour: 0,
|
|
@@ -37,294 +37,303 @@ const Oe = { class: "work" }, Ge = { class: "nav" }, Ze = { style: { height: "10
|
|
|
37
37
|
// code: '0000-00052'
|
|
38
38
|
// ids: 1
|
|
39
39
|
// }
|
|
40
|
-
]),
|
|
40
|
+
]), _ = v((/* @__PURE__ */ new Date()).getMonth() + 1), ee = v(!1), F = v([]), x = v(new Date((/* @__PURE__ */ new Date()).getFullYear(), (/* @__PURE__ */ new Date()).getMonth(), 1)), u = v([]), G = v(0), b = v(9), k = v(8), Z = v(!1), ge = v(!0), U = v(!1), le = v("5"), Y = v(1), V = v(""), te = v([]), E = v([]), q = v([]), m = v({ name: "Имя", length: 0, code: "" }), J = v(!1), ae = v({
|
|
41
41
|
zIndex: 30,
|
|
42
42
|
minWidth: 220,
|
|
43
43
|
x: 500,
|
|
44
44
|
y: 200
|
|
45
|
-
}),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}),
|
|
50
|
-
}),
|
|
51
|
-
let e = (/* @__PURE__ */ new Date()).getMonth(),
|
|
52
|
-
|
|
53
|
-
}), oe(_, (t) => {
|
|
54
|
-
t && fe();
|
|
45
|
+
}), me = v({}), I = v("100%");
|
|
46
|
+
fe(V, async (a, e) => {
|
|
47
|
+
a !== e && (E.value = [], Z.value = !1, S.odata.personal.forEach((n) => {
|
|
48
|
+
n.divisionName === a && (E.value.some((r) => (r == null ? void 0 : r.activeText) === n.roleName) || E.value.push({ val: !0, activeText: n.roleName }));
|
|
49
|
+
}), ne());
|
|
50
|
+
}), fe(_, async (a) => {
|
|
51
|
+
let e = (/* @__PURE__ */ new Date()).getMonth(), n = a === null ? e : a - 1;
|
|
52
|
+
n = e - 1 <= n ? n : n + 12, x.value = new Date((/* @__PURE__ */ new Date()).getFullYear(), n, 1), he();
|
|
55
53
|
});
|
|
56
|
-
const
|
|
57
|
-
m.value.ids =
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
54
|
+
const we = (a, e, n, r) => {
|
|
55
|
+
m.value.ids = a.ids, m.value.key = a.key, m.value.add = a.days.length > 0 && a.days[a.days.length - 1].cont, m.value.level = e.level, m.value.day = n.cellIndex, ae.value.y = r.clientY, ae.value.x = r.clientX, e.level === 2 && e.no === 0 && S.checkEdit && (m.value.name = d("workSchedule.autocomplete"), J.value = !0), e.level === 3 && n.cellIndex - e.no === 1 && S.checkEdit && (M(n.cellIndex, a.ids), m.value.name = d("workSchedule.modeSelection"), J.value = !0);
|
|
56
|
+
}, ke = (a, e) => {
|
|
57
|
+
if (!F.value || F.value.length === 0) return !1;
|
|
58
|
+
const n = new Date(re(a)).getTime();
|
|
59
|
+
for (let r of F.value) {
|
|
60
|
+
const { dateStart: l, dateEnd: g, code: p } = r;
|
|
61
|
+
if (l && g && p === e) {
|
|
62
|
+
const c = new Date(re(l)).getTime(), C = new Date(re(g)).getTime();
|
|
63
|
+
if (n >= c && n <= C) return !0;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return !1;
|
|
67
|
+
}, he = () => {
|
|
68
|
+
const a = me.value, e = new Date(x.value), n = new Date(e.getFullYear(), e.getMonth() + 1, 0).getDate();
|
|
66
69
|
let r = [], l = 0;
|
|
67
|
-
for (let g = 1; g <=
|
|
68
|
-
const
|
|
69
|
-
l +=
|
|
70
|
-
const
|
|
71
|
-
r.push({ day: g, holidays:
|
|
70
|
+
for (let g = 1; g <= n; g++) {
|
|
71
|
+
const p = W(e.setDate(g), "{Y}-{m}-{dd}");
|
|
72
|
+
l += a.nowork.includes(p) || a.holidays.includes(p) ? 0 : a.preholidays.includes(p) ? 7 : 8;
|
|
73
|
+
const c = a.nowork.includes(p) ? "nowork" : a.holidays.includes(p) ? "holiday" : a.preholidays.includes(p) ? "preholiday" : "";
|
|
74
|
+
r.push({ day: g, holidays: c, weekday: L(new Date(e.getFullYear(), e.getMonth(), g), "day") });
|
|
72
75
|
}
|
|
73
|
-
|
|
74
|
-
var
|
|
75
|
-
V.value.length === 0 && (V.value = (
|
|
76
|
-
|
|
77
|
-
}),
|
|
76
|
+
G.value = l, u.value = r, S.odata.getPersonal({}).then((g) => {
|
|
77
|
+
var p;
|
|
78
|
+
V.value.length === 0 && (V.value = (p = g.find((c) => c.employeeName === S.fullName)) == null ? void 0 : p.divisionName), g.forEach((c) => {
|
|
79
|
+
te.value.some((C) => (C == null ? void 0 : C.value) === c.divisionName) || te.value.push({ value: c.divisionName, label: c.divisionName, key: c.divisionName }), c.divisionName === V.value && !E.value.some((C) => (C == null ? void 0 : C.activeText) === c.roleName) && E.value.push({ val: !0, activeText: c.roleName });
|
|
80
|
+
}), ne(), ge.value = !1;
|
|
78
81
|
});
|
|
79
|
-
},
|
|
80
|
-
var g,
|
|
81
|
-
const
|
|
82
|
-
return e === -1 || l === -1 ? "" : ((
|
|
83
|
-
},
|
|
84
|
-
|
|
85
|
-
if (
|
|
86
|
-
let e = ie(
|
|
87
|
-
|
|
82
|
+
}, ce = (a, e) => {
|
|
83
|
+
var g, p, c;
|
|
84
|
+
const n = new Date(x.value), r = `${n.getFullYear()}-${(n.getMonth() + 1).toString().padStart(2, "0")}-${a.toString().padStart(2, "0")}`, l = (g = o.value[e]) == null ? void 0 : g.days.findIndex((C) => C.day === r);
|
|
85
|
+
return e === -1 || l === -1 ? "" : ((p = o.value[e].days[l]) == null ? void 0 : p.tips) + "<br>" + ((c = o.value[e].days[l]) == null ? void 0 : c.time);
|
|
86
|
+
}, ne = () => {
|
|
87
|
+
o.value = [], q.value = [], F.value = [], S.odata.personal.forEach((a) => {
|
|
88
|
+
if (a.divisionName === V.value && E.value.some((e) => e.val && e.activeText === a.roleName)) {
|
|
89
|
+
let e = ie(a.employeeName);
|
|
90
|
+
q.value.push(a.employeeKey), o.value.push({ name: e + " (" + a.roleName + ")", days: [], contHour: 0, code: a.employeeKey, id: !1, ids: o.value.length });
|
|
88
91
|
}
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
S.workSchedule.getUsersYear({ code: q.value, year: new Date(x.value).getFullYear() }).then((e) => {
|
|
93
|
+
e.forEach((n) => {
|
|
94
|
+
n.dateStart && F.value.push({ code: n.code, dateStart: n.dateStart, dateEnd: n.dateEnd });
|
|
95
|
+
}), Ce(), U.value = !1;
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
}, Ce = () => {
|
|
99
|
+
S.workSchedule.getWorkSchedule({ code: q.value, date: W(new Date(x.value), "{Y}-{m}-{dd}") }).then(
|
|
100
|
+
(a) => {
|
|
101
|
+
a.forEach((e, n) => {
|
|
102
|
+
e !== null && (o.value[n].days = e.data.days, o.value[n].id = e.id);
|
|
103
|
+
}), H();
|
|
96
104
|
}
|
|
97
105
|
);
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
106
|
+
}, H = () => {
|
|
107
|
+
o.value.forEach((a) => {
|
|
108
|
+
a.contHour = a.days.reduce((e, n) => e + n.time, 0);
|
|
101
109
|
});
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
},
|
|
105
|
-
switch (
|
|
110
|
+
}, xe = (a) => {
|
|
111
|
+
o.value[a].days = [], H();
|
|
112
|
+
}, Se = (a) => {
|
|
113
|
+
switch (le.value) {
|
|
106
114
|
case "5":
|
|
107
|
-
for (let e =
|
|
108
|
-
u.value[e - 1].holidays === "" && M(e,
|
|
115
|
+
for (let e = Y.value; e <= u.value.length; e++)
|
|
116
|
+
u.value[e - 1].holidays === "" && M(e, a, !0), u.value[e - 1].holidays === "preholiday" && (k.value -= 1, M(e, a, !0), k.value += 1);
|
|
109
117
|
break;
|
|
110
118
|
case "2x2":
|
|
111
|
-
for (let e =
|
|
112
|
-
M(e,
|
|
119
|
+
for (let e = Y.value; e <= u.value.length; e += 4)
|
|
120
|
+
M(e, a, !0), e + 1 <= u.value.length && M(e + 1, a, !0);
|
|
113
121
|
break;
|
|
114
122
|
case "2x5":
|
|
115
|
-
for (let e =
|
|
116
|
-
for (let
|
|
117
|
-
u.value[
|
|
123
|
+
for (let e = Y.value; e <= u.value.length; e += 7)
|
|
124
|
+
for (let n = e; n < e + 5 && n <= u.value.length; n++)
|
|
125
|
+
u.value[n - 1].holidays === "preholiday" ? (k.value -= 1, M(n, a, !0), k.value += 1) : M(n, a, !0);
|
|
118
126
|
break;
|
|
119
127
|
}
|
|
120
|
-
}, M = (
|
|
121
|
-
const { date: r, ind: l } =
|
|
122
|
-
l === -1 ? (
|
|
128
|
+
}, M = (a, e, n = !1) => {
|
|
129
|
+
const { date: r, ind: l } = K(a, e);
|
|
130
|
+
l === -1 ? (o.value[e].days.push({
|
|
123
131
|
day: r,
|
|
124
132
|
time: k.value,
|
|
125
|
-
tips: `(${
|
|
126
|
-
}),
|
|
127
|
-
},
|
|
128
|
-
const { ind:
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
const { date:
|
|
132
|
-
|
|
133
|
-
day:
|
|
133
|
+
tips: `(${b.value}:00 - ${b.value + k.value + 1}:00)`
|
|
134
|
+
}), H()) : n || (k.value = o.value[e].days[l].time, b.value = parseInt(o.value[e].days[l].tips.slice(1, -12)));
|
|
135
|
+
}, $e = (a, e) => {
|
|
136
|
+
const { ind: n } = K(a, e);
|
|
137
|
+
o.value[e].days.splice(n, 1), H(), document.querySelector(".app-main").click();
|
|
138
|
+
}, pe = (a, e) => {
|
|
139
|
+
const { date: n, ind: r } = K(a, e);
|
|
140
|
+
o.value[e].days[r] = {
|
|
141
|
+
day: n,
|
|
134
142
|
time: k.value,
|
|
135
|
-
tips: `(${
|
|
136
|
-
},
|
|
137
|
-
},
|
|
143
|
+
tips: `(${b.value}:00 - ${b.value + k.value + 1}:00)`
|
|
144
|
+
}, H();
|
|
145
|
+
}, K = (a, e) => {
|
|
138
146
|
var l;
|
|
139
|
-
const
|
|
140
|
-
return { date:
|
|
141
|
-
},
|
|
142
|
-
var
|
|
143
|
-
|
|
144
|
-
const
|
|
145
|
-
e.mergeCells(`A1:${D("A1", u.value.length + 5)}1`), e.mergeCells(`A2:${D("A2", u.value.length + 5)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${D("B3", u.value.length)}3`), e.mergeCells(`${D("B3", u.value.length + 1)}3:${D("B3", u.value.length + 2)}3`), e.mergeCells(`${D("B3", u.value.length + 3)}3:${D("B4", u.value.length + 3)}4`), e.mergeCells(`${D("B3", u.value.length + 4)}3:${D("B4", u.value.length + 4)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: V.value }) +
|
|
146
|
-
for (let
|
|
147
|
-
e.getCell(4,
|
|
148
|
-
` + (
|
|
149
|
-
e.getRow(1).height = 40, e.getRow(2).height = 30, e.getRow(3).height = 20, e.getColumn(1).width = 15, e.getColumn(u.value.length + 2).width = 5, e.getColumn(u.value.length + 3).width = 6, e.getColumn(u.value.length + 4).width = 13, e.getColumn(u.value.length + 5).width = 13, e.getColumn(1).alignment = l, e.getCell("A2").alignment =
|
|
147
|
+
const n = W(new Date(x.value).setDate(a), "{Y}-{m}-{dd}"), r = (l = o.value[e]) == null ? void 0 : l.days.findIndex((g) => g.day === n);
|
|
148
|
+
return { date: n, ind: r };
|
|
149
|
+
}, be = async () => {
|
|
150
|
+
var ye;
|
|
151
|
+
O.value = !0;
|
|
152
|
+
const a = new ze.Workbook(), e = a.addWorksheet(L(x.value, "month"), { pageSetup: { paperSize: 9, orientation: "landscape", fitToPage: !0 } }), n = { vertical: "middle", horizontal: "center" }, r = { top: { style: "thin" }, left: { style: "thin" }, bottom: { style: "thin" }, right: { style: "thin" } }, l = { vertical: "middle", horizontal: "center", wrapText: !0 };
|
|
153
|
+
e.mergeCells(`A1:${D("A1", u.value.length + 5)}1`), e.mergeCells(`A2:${D("A2", u.value.length + 5)}2`), e.mergeCells("A3:A4"), e.mergeCells(`B3:${D("B3", u.value.length)}3`), e.mergeCells(`${D("B3", u.value.length + 1)}3:${D("B3", u.value.length + 2)}3`), e.mergeCells(`${D("B3", u.value.length + 3)}3:${D("B4", u.value.length + 3)}4`), e.mergeCells(`${D("B3", u.value.length + 4)}3:${D("B4", u.value.length + 4)}4`), e.getCell("A1").value = d("workSchedule.firm"), e.getCell("A2").value = d("workSchedule.title", { name: V.value }) + L(x.value, "month") + ` ${new Date(x.value).getFullYear()}`, e.getCell("A3").value = d("workSchedule.month"), e.getCell("B3").value = d("workSchedule.numbersMonth"), e.getCell(3, u.value.length + 2).value = d("workSchedule.onSchedule"), e.getCell(3, u.value.length + 4).value = d("workSchedule.acquainted"), e.getCell(3, u.value.length + 5).value = d("workSchedule.date"), e.getCell(4, u.value.length + 2).value = d("workSchedule.days"), e.getCell(4, u.value.length + 3).value = `${d("workSchedule.hours")} (${G.value})`;
|
|
154
|
+
for (let y = 2; y <= u.value.length + 1; y++)
|
|
155
|
+
e.getCell(4, y).value = u.value[y - 2].weekday + `
|
|
156
|
+
` + (y - 1), e.getColumn(y).width = 6, e.getColumn(y).alignment = l, e.getCell(4, y).border = r;
|
|
157
|
+
e.getRow(1).height = 40, e.getRow(2).height = 30, e.getRow(3).height = 20, e.getColumn(1).width = 15, e.getColumn(u.value.length + 2).width = 5, e.getColumn(u.value.length + 3).width = 6, e.getColumn(u.value.length + 4).width = 13, e.getColumn(u.value.length + 5).width = 13, e.getColumn(1).alignment = l, e.getCell("A2").alignment = n, e.getCell("A3").alignment = n, e.getCell("B3").alignment = n, e.getCell(3, u.value.length + 2).alignment = n, e.getColumn(u.value.length + 2).alignment = l, e.getColumn(u.value.length + 3).alignment = l, e.getColumn(u.value.length + 4).alignment = n, e.getColumn(u.value.length + 5).alignment = n, e.getCell("A3").border = r, e.getCell("B3").border = r, e.getCell(3, u.value.length + 2).border = r, e.getCell(4, u.value.length + 2).border = r, e.getCell(3, u.value.length + 4).border = r, e.getCell(3, u.value.length + 5).border = r, e.getCell(4, u.value.length + 3).border = r;
|
|
150
158
|
let g = 0;
|
|
151
|
-
for (const
|
|
152
|
-
let
|
|
153
|
-
for (let
|
|
154
|
-
const { ind:
|
|
155
|
-
|
|
159
|
+
for (const y of o.value) {
|
|
160
|
+
let Q = [y.name];
|
|
161
|
+
for (let R = 1; R <= u.value.length; R++) {
|
|
162
|
+
const { ind: oe } = K(R, g);
|
|
163
|
+
oe !== -1 ? Q[R] = `${y.days[oe].time} ${y.days[oe].tips}` : Q[R] = " ";
|
|
156
164
|
}
|
|
157
|
-
|
|
158
|
-
const
|
|
159
|
-
|
|
165
|
+
Q.push(((ye = y.days) == null ? void 0 : ye.length) || " ", y.contHour || 0);
|
|
166
|
+
const De = e.addRow(Q);
|
|
167
|
+
De.border = r, g++;
|
|
160
168
|
}
|
|
161
|
-
let
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}), e.mergeCells(`A${
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
+
let p = "Щербина Е. В.";
|
|
170
|
+
S.odata.personal.forEach((y) => {
|
|
171
|
+
y.roleName === "Начальник отдела правовой и кадровой работы" && (p = y.employeeName);
|
|
172
|
+
}), e.mergeCells(`A${o.value.length + 6}:P${o.value.length + 6}`), e.mergeCells(`Q${o.value.length + 6}:AG${o.value.length + 6}`), e.mergeCells(`B${o.value.length + 8}:E${o.value.length + 8}`), e.mergeCells(`F${o.value.length + 8}:L${o.value.length + 8}`), e.mergeCells(`M${o.value.length + 8}:P${o.value.length + 8}`), e.mergeCells(`S${o.value.length + 8}:V${o.value.length + 8}`), e.mergeCells(`W${o.value.length + 8}:AC${o.value.length + 8}`), e.mergeCells(`AD${o.value.length + 8}:AG${o.value.length + 8}`), e.mergeCells(`Z${o.value.length + 9}:AA${o.value.length + 9}`), e.getCell(`A${o.value.length + 6}`).value = d("workSchedule.byInitials"), e.getCell(`Q${o.value.length + 6}`).value = d("workSchedule.supervisorHR"), e.getCell(`B${o.value.length + 8}`).value = d("workSchedule.compiled") + ":", e.getCell(`S${o.value.length + 8}`).value = d("workSchedule.approved") + ":", e.getCell(`M${o.value.length + 8}`).value = ie(S.fullName), e.getCell(`AD${o.value.length + 8}`).value = ie(p), e.getCell(`Z${o.value.length + 9}`).value = d("workSchedule.printPlace"), e.getCell(`A${o.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`Q${o.value.length + 6}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`B${o.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`F${o.value.length + 8}`).alignment = { vertical: "middle", horizontal: "right" }, e.getCell(`M${o.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`AD${o.value.length + 8}`).alignment = { vertical: "middle", horizontal: "left" }, e.getCell(`Z${o.value.length + 9}`).alignment = n, e.getCell(`F${o.value.length + 8}`).border = { bottom: { style: "thin" } }, e.getCell(`W${o.value.length + 8}`).border = { bottom: { style: "thin" } };
|
|
173
|
+
const c = "export_" + W(Date.now(), "{dd}.{m}.{Y}") + ".xlsx", C = await a.xlsx.writeBuffer();
|
|
174
|
+
Be(new Blob([C]), c), O.value = !1;
|
|
175
|
+
}, Ve = async () => {
|
|
176
|
+
Z.value || S.workSchedule.addWorkSchedule({ data: o.value, date: W(new Date(x.value), "{Y}-{m}-{dd}") }).then((a) => Z.value = a);
|
|
169
177
|
};
|
|
170
|
-
return
|
|
171
|
-
|
|
172
|
-
}), (
|
|
173
|
-
const
|
|
174
|
-
return f(), A("div",
|
|
175
|
-
w("div",
|
|
176
|
-
z.checkEdit ? (f(),
|
|
178
|
+
return Fe().then((a) => {
|
|
179
|
+
me.value = a, he();
|
|
180
|
+
}), (a, e) => {
|
|
181
|
+
const n = Ee("el-date-picker"), r = Ne("loading");
|
|
182
|
+
return f(), A("div", qe, [
|
|
183
|
+
w("div", Je, [
|
|
184
|
+
z.checkEdit ? (f(), T(t(Ye), {
|
|
177
185
|
key: 0,
|
|
178
186
|
modelValue: V.value,
|
|
179
187
|
"onUpdate:modelValue": e[0] || (e[0] = (l) => V.value = l),
|
|
180
188
|
placeholder: "Select",
|
|
181
189
|
style: { width: "240px" }
|
|
182
190
|
}, {
|
|
183
|
-
default:
|
|
184
|
-
(f(!0), A(ue, null, de(
|
|
191
|
+
default: s(() => [
|
|
192
|
+
(f(!0), A(ue, null, de(te.value, (l) => (f(), T(t(Ie), {
|
|
185
193
|
key: l.value,
|
|
186
194
|
label: l.label,
|
|
187
195
|
value: l.value
|
|
188
196
|
}, null, 8, ["label", "value"]))), 128))
|
|
189
197
|
]),
|
|
190
198
|
_: 1
|
|
191
|
-
}, 8, ["modelValue"])) :
|
|
192
|
-
z.checkEdit ? (f(),
|
|
199
|
+
}, 8, ["modelValue"])) : X("", !0),
|
|
200
|
+
z.checkEdit ? (f(), T(t(N), {
|
|
193
201
|
key: 1,
|
|
194
202
|
plain: "",
|
|
195
|
-
onClick: e[1] || (e[1] = (l) =>
|
|
203
|
+
onClick: e[1] || (e[1] = (l) => U.value = !0)
|
|
196
204
|
}, {
|
|
197
|
-
default:
|
|
198
|
-
|
|
205
|
+
default: s(() => [
|
|
206
|
+
$(h(t(d)("workSchedule.jobTitle")), 1)
|
|
199
207
|
]),
|
|
200
208
|
_: 1
|
|
201
|
-
})) :
|
|
202
|
-
i(
|
|
203
|
-
modelValue:
|
|
204
|
-
"onUpdate:modelValue": e[2] || (e[2] = (l) =>
|
|
209
|
+
})) : X("", !0),
|
|
210
|
+
i(n, {
|
|
211
|
+
modelValue: _.value,
|
|
212
|
+
"onUpdate:modelValue": e[2] || (e[2] = (l) => _.value = l),
|
|
205
213
|
type: "month",
|
|
206
214
|
placeholder: "Выберите месяц",
|
|
207
215
|
format: "MMM",
|
|
208
216
|
"value-format": "M"
|
|
209
217
|
}, null, 8, ["modelValue"]),
|
|
210
218
|
e[19] || (e[19] = w("div", { class: "expander" }, null, -1)),
|
|
211
|
-
i(
|
|
212
|
-
modelValue:
|
|
213
|
-
"onUpdate:modelValue": e[3] || (e[3] = (l) =>
|
|
214
|
-
"active-text":
|
|
219
|
+
i(t(se), {
|
|
220
|
+
modelValue: I.value,
|
|
221
|
+
"onUpdate:modelValue": e[3] || (e[3] = (l) => I.value = l),
|
|
222
|
+
"active-text": a.$t("bids.currentHeight"),
|
|
215
223
|
"active-value": "100%",
|
|
216
224
|
"inactive-value": "calc(100vh - var(--el-component-size)*4 - var(--el-main-padding)*2 - var(--header-height))"
|
|
217
225
|
}, null, 8, ["modelValue", "active-text"]),
|
|
218
|
-
i(
|
|
219
|
-
modelValue:
|
|
220
|
-
"onUpdate:modelValue": e[4] || (e[4] = (l) =>
|
|
226
|
+
i(t(se), {
|
|
227
|
+
modelValue: ee.value,
|
|
228
|
+
"onUpdate:modelValue": e[4] || (e[4] = (l) => ee.value = l),
|
|
221
229
|
"active-text": "Отпуска",
|
|
222
230
|
"active-value": !0,
|
|
223
231
|
"inactive-value": !1
|
|
224
232
|
}, null, 8, ["modelValue"])
|
|
225
233
|
]),
|
|
226
|
-
i(
|
|
234
|
+
i(t(He), {
|
|
227
235
|
style: { width: "100%" },
|
|
228
|
-
loading:
|
|
236
|
+
loading: ge.value,
|
|
229
237
|
animated: ""
|
|
230
238
|
}, {
|
|
231
|
-
template:
|
|
232
|
-
i(
|
|
239
|
+
template: s(() => [
|
|
240
|
+
i(t(P), {
|
|
233
241
|
variant: "text",
|
|
234
242
|
style: { width: "100%", height: "2rem" }
|
|
235
243
|
}),
|
|
236
|
-
i(
|
|
244
|
+
i(t(P), {
|
|
237
245
|
variant: "text",
|
|
238
246
|
style: { width: "180px", height: "4rem", "margin-right": "4px" }
|
|
239
247
|
}),
|
|
240
|
-
i(
|
|
248
|
+
i(t(P), {
|
|
241
249
|
variant: "text",
|
|
242
250
|
style: { width: "calc( 100% - 184px)", height: "4rem" }
|
|
243
251
|
}),
|
|
244
|
-
i(
|
|
252
|
+
i(t(P), {
|
|
245
253
|
variant: "text",
|
|
246
254
|
style: { width: "180px", height: "8rem", "margin-right": "4px" }
|
|
247
255
|
}),
|
|
248
|
-
i(
|
|
256
|
+
i(t(P), {
|
|
249
257
|
variant: "text",
|
|
250
258
|
style: { width: "calc( 100% - 184px)", height: "8rem" }
|
|
251
259
|
})
|
|
252
260
|
]),
|
|
253
|
-
default:
|
|
254
|
-
i(
|
|
261
|
+
default: s(() => [
|
|
262
|
+
i(t(Re), {
|
|
255
263
|
id: "printTable",
|
|
256
|
-
data:
|
|
264
|
+
data: o.value,
|
|
257
265
|
style: { width: "100%" },
|
|
258
|
-
"max-height":
|
|
266
|
+
"max-height": I.value,
|
|
259
267
|
size: "small",
|
|
260
268
|
align: "center",
|
|
261
|
-
onCellClick:
|
|
262
|
-
"empty-text":
|
|
269
|
+
onCellClick: we,
|
|
270
|
+
"empty-text": t(d)("workSchedule.emptyText")
|
|
263
271
|
}, {
|
|
264
|
-
default:
|
|
265
|
-
i(
|
|
266
|
-
label:
|
|
272
|
+
default: s(() => [
|
|
273
|
+
i(t(B), {
|
|
274
|
+
label: t(d)("workSchedule.title", { name: V.value }) + t(L)(x.value, "month") + ` ${new Date(x.value).getFullYear()}`,
|
|
267
275
|
align: "center",
|
|
268
276
|
height: "34"
|
|
269
277
|
}, {
|
|
270
|
-
default:
|
|
271
|
-
i(
|
|
272
|
-
label:
|
|
278
|
+
default: s(() => [
|
|
279
|
+
i(t(B), {
|
|
280
|
+
label: t(d)("workSchedule.month"),
|
|
273
281
|
width: "180",
|
|
274
282
|
align: "center",
|
|
275
|
-
fixed:
|
|
283
|
+
fixed: I.value !== "100%"
|
|
276
284
|
}, {
|
|
277
|
-
default:
|
|
278
|
-
w("div",
|
|
285
|
+
default: s((l) => [
|
|
286
|
+
w("div", Ke, h(o.value[l.$index].name), 1)
|
|
279
287
|
]),
|
|
280
288
|
_: 1
|
|
281
289
|
}, 8, ["label", "fixed"]),
|
|
282
|
-
i(
|
|
283
|
-
label:
|
|
290
|
+
i(t(B), {
|
|
291
|
+
label: t(d)("workSchedule.numbersMonth"),
|
|
284
292
|
align: "center"
|
|
285
293
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
(f(!0), A(ue, null, de(u.value, (l) => (f(),
|
|
294
|
+
default: s(() => [
|
|
295
|
+
(f(!0), A(ue, null, de(u.value, (l) => (f(), T(t(B), {
|
|
288
296
|
key: l.day,
|
|
289
|
-
width: "
|
|
297
|
+
width: "46",
|
|
290
298
|
"class-name": l.holidays,
|
|
291
299
|
align: "center",
|
|
292
300
|
label: l.weekday + `
|
|
293
301
|
` + l.day.toString()
|
|
294
302
|
}, {
|
|
295
|
-
default:
|
|
303
|
+
default: s((g) => [
|
|
296
304
|
w("div", {
|
|
297
305
|
style: { height: "100px", width: "100%", display: "inline-block" },
|
|
298
|
-
|
|
299
|
-
|
|
306
|
+
class: Ae(ee.value && ke(l.day, l.code) ? "vacation" : ""),
|
|
307
|
+
innerHTML: ce(l.day, g.$index) || " "
|
|
308
|
+
}, null, 10, Qe)
|
|
300
309
|
]),
|
|
301
310
|
_: 2
|
|
302
311
|
}, 1032, ["class-name", "label"]))), 128))
|
|
303
312
|
]),
|
|
304
313
|
_: 1
|
|
305
314
|
}, 8, ["label"]),
|
|
306
|
-
i(
|
|
307
|
-
label:
|
|
315
|
+
i(t(B), {
|
|
316
|
+
label: t(d)("workSchedule.onSchedule"),
|
|
308
317
|
align: "center",
|
|
309
|
-
fixed:
|
|
318
|
+
fixed: I.value !== "100%" ? "right" : !1
|
|
310
319
|
}, {
|
|
311
|
-
default:
|
|
312
|
-
i(
|
|
313
|
-
label:
|
|
320
|
+
default: s(() => [
|
|
321
|
+
i(t(B), {
|
|
322
|
+
label: t(d)("workSchedule.days"),
|
|
314
323
|
align: "center"
|
|
315
324
|
}, {
|
|
316
|
-
default:
|
|
317
|
-
|
|
325
|
+
default: s((l) => [
|
|
326
|
+
$(h(o.value[l.$index].days.length || 0), 1)
|
|
318
327
|
]),
|
|
319
328
|
_: 1
|
|
320
329
|
}, 8, ["label"]),
|
|
321
|
-
i(
|
|
322
|
-
label: `${
|
|
330
|
+
i(t(B), {
|
|
331
|
+
label: `${t(d)("workSchedule.hours")} ( ${G.value} )`,
|
|
323
332
|
align: "center"
|
|
324
333
|
}, {
|
|
325
|
-
default:
|
|
334
|
+
default: s((l) => [
|
|
326
335
|
w("div", {
|
|
327
|
-
style:
|
|
336
|
+
style: Te(`color: ${G.value === l.row.contHour ? "green" : "red"};`)
|
|
328
337
|
}, h(l.row.contHour), 5)
|
|
329
338
|
]),
|
|
330
339
|
_: 1
|
|
@@ -341,71 +350,71 @@ const Oe = { class: "work" }, Ge = { class: "nav" }, Ze = { style: { height: "10
|
|
|
341
350
|
]),
|
|
342
351
|
_: 1
|
|
343
352
|
}, 8, ["loading"]),
|
|
344
|
-
z.checkEdit ? (f(), A("div",
|
|
345
|
-
|
|
346
|
-
|
|
353
|
+
z.checkEdit ? (f(), A("div", Xe, [
|
|
354
|
+
$(h(t(d)("workSchedule.chartsFilled")) + ": ", 1),
|
|
355
|
+
Z.value ? X("", !0) : (f(), T(t(N), {
|
|
347
356
|
key: 0,
|
|
348
357
|
type: "primary",
|
|
349
|
-
onClick:
|
|
358
|
+
onClick: Ve
|
|
350
359
|
}, {
|
|
351
|
-
default:
|
|
352
|
-
|
|
360
|
+
default: s(() => [
|
|
361
|
+
$(h(t(d)("workSchedule.confirm")), 1)
|
|
353
362
|
]),
|
|
354
363
|
_: 1
|
|
355
364
|
})),
|
|
356
|
-
e[20] || (e[20] =
|
|
365
|
+
e[20] || (e[20] = $()),
|
|
357
366
|
w("span", null, h(z.fullName), 1)
|
|
358
|
-
])) :
|
|
359
|
-
|
|
360
|
-
disabled:
|
|
367
|
+
])) : X("", !0),
|
|
368
|
+
Me((f(), T(t(N), {
|
|
369
|
+
disabled: O.value,
|
|
361
370
|
plain: "",
|
|
362
|
-
onClick:
|
|
371
|
+
onClick: be,
|
|
363
372
|
style: { "margin-top": ".5rem" }
|
|
364
373
|
}, {
|
|
365
|
-
default:
|
|
366
|
-
|
|
374
|
+
default: s(() => [
|
|
375
|
+
$(h(t(d)("workSchedule.exportExcel")), 1)
|
|
367
376
|
]),
|
|
368
377
|
_: 1
|
|
369
378
|
}, 8, ["disabled"])), [
|
|
370
|
-
[r,
|
|
379
|
+
[r, O.value]
|
|
371
380
|
]),
|
|
372
|
-
i(
|
|
373
|
-
title:
|
|
374
|
-
modelValue:
|
|
375
|
-
"onUpdate:modelValue": e[6] || (e[6] = (l) =>
|
|
381
|
+
i(t(We), {
|
|
382
|
+
title: t(d)("workSchedule.jobTitle"),
|
|
383
|
+
modelValue: U.value,
|
|
384
|
+
"onUpdate:modelValue": e[6] || (e[6] = (l) => U.value = l),
|
|
376
385
|
width: "400px"
|
|
377
386
|
}, {
|
|
378
|
-
footer:
|
|
379
|
-
i(
|
|
380
|
-
onClick: e[5] || (e[5] = (l) =>
|
|
387
|
+
footer: s(() => [
|
|
388
|
+
i(t(N), {
|
|
389
|
+
onClick: e[5] || (e[5] = (l) => U.value = !1),
|
|
381
390
|
size: "default"
|
|
382
391
|
}, {
|
|
383
|
-
default:
|
|
384
|
-
|
|
392
|
+
default: s(() => [
|
|
393
|
+
$(h(a.$t("workSchedule.cancel")), 1)
|
|
385
394
|
]),
|
|
386
395
|
_: 1
|
|
387
396
|
}),
|
|
388
|
-
i(
|
|
397
|
+
i(t(N), {
|
|
389
398
|
size: "default",
|
|
390
399
|
type: "primary",
|
|
391
|
-
onClick:
|
|
400
|
+
onClick: ne
|
|
392
401
|
}, {
|
|
393
|
-
default:
|
|
394
|
-
|
|
402
|
+
default: s(() => [
|
|
403
|
+
$(h(a.$t("workSchedule.select")), 1)
|
|
395
404
|
]),
|
|
396
405
|
_: 1
|
|
397
406
|
})
|
|
398
407
|
]),
|
|
399
|
-
default:
|
|
400
|
-
i(
|
|
408
|
+
default: s(() => [
|
|
409
|
+
i(t(Pe), {
|
|
401
410
|
ref: "dialogForm",
|
|
402
411
|
model: E.value,
|
|
403
412
|
autocomplete: "on"
|
|
404
413
|
}, {
|
|
405
|
-
default:
|
|
406
|
-
(f(!0), A(ue, null, de(E.value, (l) => (f(),
|
|
407
|
-
default:
|
|
408
|
-
i(
|
|
414
|
+
default: s(() => [
|
|
415
|
+
(f(!0), A(ue, null, de(E.value, (l) => (f(), T(t(je), null, {
|
|
416
|
+
default: s(() => [
|
|
417
|
+
i(t(se), {
|
|
409
418
|
modelValue: l.val,
|
|
410
419
|
"onUpdate:modelValue": (g) => l.val = g,
|
|
411
420
|
"active-text": l.activeText
|
|
@@ -419,33 +428,33 @@ const Oe = { class: "work" }, Ge = { class: "nav" }, Ze = { style: { height: "10
|
|
|
419
428
|
]),
|
|
420
429
|
_: 1
|
|
421
430
|
}, 8, ["title", "modelValue"]),
|
|
422
|
-
i(
|
|
423
|
-
show:
|
|
424
|
-
"onUpdate:show": e[18] || (e[18] = (l) =>
|
|
425
|
-
options:
|
|
431
|
+
i(t(Oe), {
|
|
432
|
+
show: J.value,
|
|
433
|
+
"onUpdate:show": e[18] || (e[18] = (l) => J.value = l),
|
|
434
|
+
options: ae.value
|
|
426
435
|
}, {
|
|
427
|
-
default:
|
|
428
|
-
i(
|
|
436
|
+
default: s(() => [
|
|
437
|
+
i(t(Ge), {
|
|
429
438
|
label: m.value.name,
|
|
430
439
|
disabled: ""
|
|
431
440
|
}, null, 8, ["label"]),
|
|
432
|
-
i(
|
|
433
|
-
m.value.level === 2 ? (f(), A("div",
|
|
434
|
-
i(
|
|
435
|
-
modelValue:
|
|
436
|
-
"onUpdate:modelValue": e[7] || (e[7] = (l) =>
|
|
441
|
+
i(t(Ze)),
|
|
442
|
+
m.value.level === 2 ? (f(), A("div", _e, [
|
|
443
|
+
i(t(Le), {
|
|
444
|
+
modelValue: le.value,
|
|
445
|
+
"onUpdate:modelValue": e[7] || (e[7] = (l) => le.value = l),
|
|
437
446
|
size: "small"
|
|
438
447
|
}, {
|
|
439
|
-
default:
|
|
440
|
-
i(
|
|
441
|
-
label:
|
|
448
|
+
default: s(() => [
|
|
449
|
+
i(t(ve), {
|
|
450
|
+
label: t(d)("workSchedule.Days5"),
|
|
442
451
|
value: "5"
|
|
443
452
|
}, null, 8, ["label"]),
|
|
444
|
-
i(
|
|
453
|
+
i(t(ve), {
|
|
445
454
|
label: "2 Х 2",
|
|
446
455
|
value: "2x2"
|
|
447
456
|
}),
|
|
448
|
-
i(
|
|
457
|
+
i(t(ve), {
|
|
449
458
|
label: "2 Х 5",
|
|
450
459
|
value: "2x5"
|
|
451
460
|
})
|
|
@@ -453,78 +462,78 @@ const Oe = { class: "work" }, Ge = { class: "nav" }, Ze = { style: { height: "10
|
|
|
453
462
|
_: 1
|
|
454
463
|
}, 8, ["modelValue"]),
|
|
455
464
|
e[21] || (e[21] = w("br", null, null, -1)),
|
|
456
|
-
w("span", null, h(
|
|
457
|
-
i(
|
|
458
|
-
modelValue:
|
|
459
|
-
"onUpdate:modelValue": e[8] || (e[8] = (l) =>
|
|
465
|
+
w("span", null, h(t(d)("workSchedule.fromDate")) + ":", 1),
|
|
466
|
+
i(t(j), {
|
|
467
|
+
modelValue: Y.value,
|
|
468
|
+
"onUpdate:modelValue": e[8] || (e[8] = (l) => Y.value = l),
|
|
460
469
|
step: 1,
|
|
461
470
|
min: 1,
|
|
462
471
|
max: u.value.length
|
|
463
472
|
}, null, 8, ["modelValue", "max"]),
|
|
464
|
-
w("span", null, h(
|
|
465
|
-
i(
|
|
466
|
-
modelValue:
|
|
467
|
-
"onUpdate:modelValue": e[9] || (e[9] = (l) =>
|
|
473
|
+
w("span", null, h(t(d)("workSchedule.with")) + ":", 1),
|
|
474
|
+
i(t(j), {
|
|
475
|
+
modelValue: b.value,
|
|
476
|
+
"onUpdate:modelValue": e[9] || (e[9] = (l) => b.value = l),
|
|
468
477
|
step: 1,
|
|
469
478
|
min: 8,
|
|
470
479
|
max: 11
|
|
471
480
|
}, null, 8, ["modelValue"]),
|
|
472
|
-
w("span", null, h(
|
|
473
|
-
i(
|
|
481
|
+
w("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
|
|
482
|
+
i(t(j), {
|
|
474
483
|
modelValue: k.value,
|
|
475
484
|
"onUpdate:modelValue": e[10] || (e[10] = (l) => k.value = l),
|
|
476
485
|
step: 1,
|
|
477
486
|
min: 4,
|
|
478
487
|
max: 12
|
|
479
488
|
}, null, 8, ["modelValue"]),
|
|
480
|
-
i(
|
|
489
|
+
i(t(N), {
|
|
481
490
|
style: { "margin-top": ".5rem" },
|
|
482
491
|
size: "small",
|
|
483
|
-
onClick: e[11] || (e[11] = (l) =>
|
|
492
|
+
onClick: e[11] || (e[11] = (l) => Se(m.value.ids))
|
|
484
493
|
}, {
|
|
485
|
-
default:
|
|
486
|
-
|
|
494
|
+
default: s(() => [
|
|
495
|
+
$(h(t(d)("workSchedule.fillOut")), 1)
|
|
487
496
|
]),
|
|
488
497
|
_: 1
|
|
489
498
|
}),
|
|
490
|
-
i(
|
|
499
|
+
i(t(N), {
|
|
491
500
|
style: { "margin-top": ".5rem" },
|
|
492
501
|
size: "small",
|
|
493
|
-
onClick: e[12] || (e[12] = (l) =>
|
|
502
|
+
onClick: e[12] || (e[12] = (l) => xe(m.value.ids))
|
|
494
503
|
}, {
|
|
495
|
-
default:
|
|
496
|
-
|
|
504
|
+
default: s(() => [
|
|
505
|
+
$(h(t(d)("workSchedule.clearRow")), 1)
|
|
497
506
|
]),
|
|
498
507
|
_: 1
|
|
499
508
|
})
|
|
500
|
-
])) : (f(), A("div",
|
|
501
|
-
w("div", null, h(
|
|
509
|
+
])) : (f(), A("div", el, [
|
|
510
|
+
w("div", null, h(ce(m.value.day, m.value.ids)), 1),
|
|
502
511
|
e[22] || (e[22] = w("br", null, null, -1)),
|
|
503
|
-
w("span", null, h(
|
|
504
|
-
i(
|
|
505
|
-
modelValue:
|
|
506
|
-
"onUpdate:modelValue": e[13] || (e[13] = (l) =>
|
|
512
|
+
w("span", null, h(t(d)("workSchedule.with")) + ":", 1),
|
|
513
|
+
i(t(j), {
|
|
514
|
+
modelValue: b.value,
|
|
515
|
+
"onUpdate:modelValue": e[13] || (e[13] = (l) => b.value = l),
|
|
507
516
|
step: 1,
|
|
508
517
|
min: 8,
|
|
509
518
|
max: 11,
|
|
510
|
-
onChange: e[14] || (e[14] = (l) =>
|
|
519
|
+
onChange: e[14] || (e[14] = (l) => pe(m.value.day, m.value.ids))
|
|
511
520
|
}, null, 8, ["modelValue"]),
|
|
512
|
-
w("span", null, h(
|
|
513
|
-
i(
|
|
521
|
+
w("span", null, h(t(d)("workSchedule.duration")) + ":", 1),
|
|
522
|
+
i(t(j), {
|
|
514
523
|
modelValue: k.value,
|
|
515
524
|
"onUpdate:modelValue": e[15] || (e[15] = (l) => k.value = l),
|
|
516
525
|
step: 1,
|
|
517
526
|
min: 4,
|
|
518
527
|
max: 12,
|
|
519
|
-
onChange: e[16] || (e[16] = (l) =>
|
|
528
|
+
onChange: e[16] || (e[16] = (l) => pe(m.value.day, m.value.ids))
|
|
520
529
|
}, null, 8, ["modelValue"]),
|
|
521
|
-
i(
|
|
530
|
+
i(t(N), {
|
|
522
531
|
style: { "margin-top": ".5rem" },
|
|
523
532
|
size: "small",
|
|
524
|
-
onClick: e[17] || (e[17] = (l) =>
|
|
533
|
+
onClick: e[17] || (e[17] = (l) => $e(m.value.day, m.value.ids))
|
|
525
534
|
}, {
|
|
526
|
-
default:
|
|
527
|
-
|
|
535
|
+
default: s(() => [
|
|
536
|
+
$(h(t(d)("workSchedule.delete")), 1)
|
|
528
537
|
]),
|
|
529
538
|
_: 1
|
|
530
539
|
})
|
|
@@ -537,5 +546,5 @@ const Oe = { class: "work" }, Ge = { class: "nav" }, Ze = { style: { height: "10
|
|
|
537
546
|
}
|
|
538
547
|
};
|
|
539
548
|
export {
|
|
540
|
-
|
|
549
|
+
dl as default
|
|
541
550
|
};
|