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