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