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