yh-report 2.4.110 → 2.4.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- var Ae = Object.defineProperty;
2
- var Re = (t, e, r) => e in t ? Ae(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
- var ce = (t, e, r) => Re(t, typeof e != "symbol" ? e + "" : e, r);
1
+ var De = Object.defineProperty;
2
+ var Oe = (t, e, r) => e in t ? De(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
3
+ var le = (t, e, r) => Oe(t, typeof e != "symbol" ? e + "" : e, r);
4
4
  import { ref, computed, defineComponent, reactive, watch, nextTick, triggerRef, onMounted, openBlock, createElementBlock, createVNode, unref, withCtx, Fragment, renderList, withDirectives, createBlock, mergeProps, resolveDynamicComponent, createCommentVNode, vShow, renderSlot, onUnmounted, useCssVars, inject, shallowRef, resolveComponent, resolveDirective, normalizeStyle, createTextVNode, toDisplayString, createElementVNode, normalizeClass, onBeforeUnmount, provide, withKeys, markRaw, h } from "vue";
5
5
  import { ElMessage, ElForm, ElFormItem, ElOption, ElSelect, ElLoading, ElMessageBox, ElDialog, ElButton, ElResult, ElAlert } from "element-plus";
6
6
  import http from "@/libs/api.request";
@@ -962,285 +962,283 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
962
962
  function getDefaultExportFromCjs(t) {
963
963
  return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
964
964
  }
965
- var dayjs_min = { exports: {} }, hasRequiredDayjs_min;
966
- function requireDayjs_min() {
967
- return hasRequiredDayjs_min || (hasRequiredDayjs_min = 1, function(t, e) {
968
- (function(r, n) {
969
- t.exports = n();
970
- })(commonjsGlobal, function() {
971
- var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", a = "second", s = "minute", l = "hour", c = "day", u = "week", f = "month", d = "quarter", p = "year", m = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
972
- var O = ["th", "st", "nd", "rd"], x = N % 100;
973
- return "[" + N + (O[(x - 20) % 10] || O[x] || O[0]) + "]";
974
- } }, y = function(N, O, x) {
975
- var A = String(N);
976
- return !A || A.length >= O ? N : "" + Array(O + 1 - A.length).join(x) + N;
977
- }, E = { s: y, z: function(N) {
978
- var O = -N.utcOffset(), x = Math.abs(O), A = Math.floor(x / 60), R = x % 60;
979
- return (O <= 0 ? "+" : "-") + y(A, 2, "0") + ":" + y(R, 2, "0");
980
- }, m: function N(O, x) {
981
- if (O.date() < x.date()) return -N(x, O);
982
- var A = 12 * (x.year() - O.year()) + (x.month() - O.month()), R = O.clone().add(A, f), L = x - R < 0, G = O.clone().add(A + (L ? -1 : 1), f);
983
- return +(-(A + (x - R) / (L ? R - G : G - R)) || 0);
984
- }, a: function(N) {
985
- return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
986
- }, p: function(N) {
987
- return { M: f, y: p, w: u, d: c, D: m, h: l, m: s, s: a, ms: i, Q: d }[N] || String(N || "").toLowerCase().replace(/s$/, "");
988
- }, u: function(N) {
989
- return N === void 0;
990
- } }, w = "en", C = {};
991
- C[w] = b;
992
- var $ = "$isDayjsObject", D = function(N) {
993
- return N instanceof B || !(!N || !N[$]);
994
- }, T = function N(O, x, A) {
995
- var R;
996
- if (!O) return w;
997
- if (typeof O == "string") {
998
- var L = O.toLowerCase();
999
- C[L] && (R = L), x && (C[L] = x, R = L);
1000
- var G = O.split("-");
1001
- if (!R && G.length > 1) return N(G[0]);
1002
- } else {
1003
- var j = O.name;
1004
- C[j] = O, R = j;
1005
- }
1006
- return !A && R && (w = R), R || !A && w;
1007
- }, S = function(N, O) {
1008
- if (D(N)) return N.clone();
1009
- var x = typeof O == "object" ? O : {};
1010
- return x.date = N, x.args = arguments, new B(x);
1011
- }, I = E;
1012
- I.l = T, I.i = D, I.w = function(N, O) {
1013
- return S(N, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
1014
- };
1015
- var B = function() {
1016
- function N(x) {
1017
- this.$L = T(x.locale, null, !0), this.parse(x), this.$x = this.$x || x.x || {}, this[$] = !0;
1018
- }
1019
- var O = N.prototype;
1020
- return O.parse = function(x) {
1021
- this.$d = function(A) {
1022
- var R = A.date, L = A.utc;
1023
- if (R === null) return /* @__PURE__ */ new Date(NaN);
1024
- if (I.u(R)) return /* @__PURE__ */ new Date();
1025
- if (R instanceof Date) return new Date(R);
1026
- if (typeof R == "string" && !/Z$/i.test(R)) {
1027
- var G = R.match(_);
1028
- if (G) {
1029
- var j = G[2] - 1 || 0, X = (G[7] || "0").substring(0, 3);
1030
- return L ? new Date(Date.UTC(G[1], j, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, X)) : new Date(G[1], j, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, X);
1031
- }
965
+ var dayjs_min = { exports: {} };
966
+ (function(t, e) {
967
+ (function(r, n) {
968
+ t.exports = n();
969
+ })(commonjsGlobal, function() {
970
+ var r = 1e3, n = 6e4, o = 36e5, i = "millisecond", a = "second", s = "minute", l = "hour", c = "day", u = "week", f = "month", d = "quarter", p = "year", m = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
971
+ var O = ["th", "st", "nd", "rd"], x = N % 100;
972
+ return "[" + N + (O[(x - 20) % 10] || O[x] || O[0]) + "]";
973
+ } }, y = function(N, O, x) {
974
+ var A = String(N);
975
+ return !A || A.length >= O ? N : "" + Array(O + 1 - A.length).join(x) + N;
976
+ }, E = { s: y, z: function(N) {
977
+ var O = -N.utcOffset(), x = Math.abs(O), A = Math.floor(x / 60), R = x % 60;
978
+ return (O <= 0 ? "+" : "-") + y(A, 2, "0") + ":" + y(R, 2, "0");
979
+ }, m: function N(O, x) {
980
+ if (O.date() < x.date()) return -N(x, O);
981
+ var A = 12 * (x.year() - O.year()) + (x.month() - O.month()), R = O.clone().add(A, f), L = x - R < 0, G = O.clone().add(A + (L ? -1 : 1), f);
982
+ return +(-(A + (x - R) / (L ? R - G : G - R)) || 0);
983
+ }, a: function(N) {
984
+ return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
985
+ }, p: function(N) {
986
+ return { M: f, y: p, w: u, d: c, D: m, h: l, m: s, s: a, ms: i, Q: d }[N] || String(N || "").toLowerCase().replace(/s$/, "");
987
+ }, u: function(N) {
988
+ return N === void 0;
989
+ } }, w = "en", C = {};
990
+ C[w] = b;
991
+ var $ = "$isDayjsObject", T = function(N) {
992
+ return N instanceof B || !(!N || !N[$]);
993
+ }, D = function N(O, x, A) {
994
+ var R;
995
+ if (!O) return w;
996
+ if (typeof O == "string") {
997
+ var L = O.toLowerCase();
998
+ C[L] && (R = L), x && (C[L] = x, R = L);
999
+ var G = O.split("-");
1000
+ if (!R && G.length > 1) return N(G[0]);
1001
+ } else {
1002
+ var j = O.name;
1003
+ C[j] = O, R = j;
1004
+ }
1005
+ return !A && R && (w = R), R || !A && w;
1006
+ }, S = function(N, O) {
1007
+ if (T(N)) return N.clone();
1008
+ var x = typeof O == "object" ? O : {};
1009
+ return x.date = N, x.args = arguments, new B(x);
1010
+ }, I = E;
1011
+ I.l = D, I.i = T, I.w = function(N, O) {
1012
+ return S(N, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
1013
+ };
1014
+ var B = function() {
1015
+ function N(x) {
1016
+ this.$L = D(x.locale, null, !0), this.parse(x), this.$x = this.$x || x.x || {}, this[$] = !0;
1017
+ }
1018
+ var O = N.prototype;
1019
+ return O.parse = function(x) {
1020
+ this.$d = function(A) {
1021
+ var R = A.date, L = A.utc;
1022
+ if (R === null) return /* @__PURE__ */ new Date(NaN);
1023
+ if (I.u(R)) return /* @__PURE__ */ new Date();
1024
+ if (R instanceof Date) return new Date(R);
1025
+ if (typeof R == "string" && !/Z$/i.test(R)) {
1026
+ var G = R.match(_);
1027
+ if (G) {
1028
+ var j = G[2] - 1 || 0, X = (G[7] || "0").substring(0, 3);
1029
+ return L ? new Date(Date.UTC(G[1], j, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, X)) : new Date(G[1], j, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, X);
1032
1030
  }
1033
- return new Date(R);
1034
- }(x), this.init();
1035
- }, O.init = function() {
1036
- var x = this.$d;
1037
- this.$y = x.getFullYear(), this.$M = x.getMonth(), this.$D = x.getDate(), this.$W = x.getDay(), this.$H = x.getHours(), this.$m = x.getMinutes(), this.$s = x.getSeconds(), this.$ms = x.getMilliseconds();
1038
- }, O.$utils = function() {
1039
- return I;
1040
- }, O.isValid = function() {
1041
- return this.$d.toString() !== g;
1042
- }, O.isSame = function(x, A) {
1043
- var R = S(x);
1044
- return this.startOf(A) <= R && R <= this.endOf(A);
1045
- }, O.isAfter = function(x, A) {
1046
- return S(x) < this.startOf(A);
1047
- }, O.isBefore = function(x, A) {
1048
- return this.endOf(A) < S(x);
1049
- }, O.$g = function(x, A, R) {
1050
- return I.u(x) ? this[A] : this.set(R, x);
1051
- }, O.unix = function() {
1052
- return Math.floor(this.valueOf() / 1e3);
1053
- }, O.valueOf = function() {
1054
- return this.$d.getTime();
1055
- }, O.startOf = function(x, A) {
1056
- var R = this, L = !!I.u(A) || A, G = I.p(x), j = function(U, F) {
1057
- var V = I.w(R.$u ? Date.UTC(R.$y, F, U) : new Date(R.$y, F, U), R);
1058
- return L ? V : V.endOf(c);
1059
- }, X = function(U, F) {
1060
- return I.w(R.toDate()[U].apply(R.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), R);
1061
- }, J = this.$W, Q = this.$M, ie = this.$D, ae = "set" + (this.$u ? "UTC" : "");
1062
- switch (G) {
1063
- case p:
1064
- return L ? j(1, 0) : j(31, 11);
1065
- case f:
1066
- return L ? j(1, Q) : j(0, Q + 1);
1067
- case u:
1068
- var ue = this.$locale().weekStart || 0, ye = (J < ue ? J + 7 : J) - ue;
1069
- return j(L ? ie - ye : ie + (6 - ye), Q);
1070
- case c:
1071
- case m:
1072
- return X(ae + "Hours", 0);
1073
- case l:
1074
- return X(ae + "Minutes", 1);
1075
- case s:
1076
- return X(ae + "Seconds", 2);
1077
- case a:
1078
- return X(ae + "Milliseconds", 3);
1079
- default:
1080
- return this.clone();
1081
1031
  }
1082
- }, O.endOf = function(x) {
1083
- return this.startOf(x, !1);
1084
- }, O.$set = function(x, A) {
1085
- var R, L = I.p(x), G = "set" + (this.$u ? "UTC" : ""), j = (R = {}, R[c] = G + "Date", R[m] = G + "Date", R[f] = G + "Month", R[p] = G + "FullYear", R[l] = G + "Hours", R[s] = G + "Minutes", R[a] = G + "Seconds", R[i] = G + "Milliseconds", R)[L], X = L === c ? this.$D + (A - this.$W) : A;
1086
- if (L === f || L === p) {
1087
- var J = this.clone().set(m, 1);
1088
- J.$d[j](X), J.init(), this.$d = J.set(m, Math.min(this.$D, J.daysInMonth())).$d;
1089
- } else j && this.$d[j](X);
1090
- return this.init(), this;
1091
- }, O.set = function(x, A) {
1092
- return this.clone().$set(x, A);
1093
- }, O.get = function(x) {
1094
- return this[I.p(x)]();
1095
- }, O.add = function(x, A) {
1096
- var R, L = this;
1097
- x = Number(x);
1098
- var G = I.p(A), j = function(Q) {
1099
- var ie = S(L);
1100
- return I.w(ie.date(ie.date() + Math.round(Q * x)), L);
1101
- };
1102
- if (G === f) return this.set(f, this.$M + x);
1103
- if (G === p) return this.set(p, this.$y + x);
1104
- if (G === c) return j(1);
1105
- if (G === u) return j(7);
1106
- var X = (R = {}, R[s] = n, R[l] = o, R[a] = r, R)[G] || 1, J = this.$d.getTime() + x * X;
1107
- return I.w(J, this);
1108
- }, O.subtract = function(x, A) {
1109
- return this.add(-1 * x, A);
1110
- }, O.format = function(x) {
1111
- var A = this, R = this.$locale();
1112
- if (!this.isValid()) return R.invalidDate || g;
1113
- var L = x || "YYYY-MM-DDTHH:mm:ssZ", G = I.z(this), j = this.$H, X = this.$m, J = this.$M, Q = R.weekdays, ie = R.months, ae = R.meridiem, ue = function(F, V, H, z) {
1114
- return F && (F[V] || F(A, L)) || H[V].slice(0, z);
1115
- }, ye = function(F) {
1116
- return I.s(j % 12 || 12, F, "0");
1117
- }, U = ae || function(F, V, H) {
1118
- var z = F < 12 ? "AM" : "PM";
1119
- return H ? z.toLowerCase() : z;
1120
- };
1121
- return L.replace(v, function(F, V) {
1122
- return V || function(H) {
1123
- switch (H) {
1124
- case "YY":
1125
- return String(A.$y).slice(-2);
1126
- case "YYYY":
1127
- return I.s(A.$y, 4, "0");
1128
- case "M":
1129
- return J + 1;
1130
- case "MM":
1131
- return I.s(J + 1, 2, "0");
1132
- case "MMM":
1133
- return ue(R.monthsShort, J, ie, 3);
1134
- case "MMMM":
1135
- return ue(ie, J);
1136
- case "D":
1137
- return A.$D;
1138
- case "DD":
1139
- return I.s(A.$D, 2, "0");
1140
- case "d":
1141
- return String(A.$W);
1142
- case "dd":
1143
- return ue(R.weekdaysMin, A.$W, Q, 2);
1144
- case "ddd":
1145
- return ue(R.weekdaysShort, A.$W, Q, 3);
1146
- case "dddd":
1147
- return Q[A.$W];
1148
- case "H":
1149
- return String(j);
1150
- case "HH":
1151
- return I.s(j, 2, "0");
1152
- case "h":
1153
- return ye(1);
1154
- case "hh":
1155
- return ye(2);
1156
- case "a":
1157
- return U(j, X, !0);
1158
- case "A":
1159
- return U(j, X, !1);
1160
- case "m":
1161
- return String(X);
1162
- case "mm":
1163
- return I.s(X, 2, "0");
1164
- case "s":
1165
- return String(A.$s);
1166
- case "ss":
1167
- return I.s(A.$s, 2, "0");
1168
- case "SSS":
1169
- return I.s(A.$ms, 3, "0");
1170
- case "Z":
1171
- return G;
1172
- }
1173
- return null;
1174
- }(F) || G.replace(":", "");
1175
- });
1176
- }, O.utcOffset = function() {
1177
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1178
- }, O.diff = function(x, A, R) {
1179
- var L, G = this, j = I.p(A), X = S(x), J = (X.utcOffset() - this.utcOffset()) * n, Q = this - X, ie = function() {
1180
- return I.m(G, X);
1181
- };
1182
- switch (j) {
1183
- case p:
1184
- L = ie() / 12;
1185
- break;
1186
- case f:
1187
- L = ie();
1188
- break;
1189
- case d:
1190
- L = ie() / 3;
1191
- break;
1192
- case u:
1193
- L = (Q - J) / 6048e5;
1194
- break;
1195
- case c:
1196
- L = (Q - J) / 864e5;
1197
- break;
1198
- case l:
1199
- L = Q / o;
1200
- break;
1201
- case s:
1202
- L = Q / n;
1203
- break;
1204
- case a:
1205
- L = Q / r;
1206
- break;
1207
- default:
1208
- L = Q;
1209
- }
1210
- return R ? L : I.a(L);
1211
- }, O.daysInMonth = function() {
1212
- return this.endOf(f).$D;
1213
- }, O.$locale = function() {
1214
- return C[this.$L];
1215
- }, O.locale = function(x, A) {
1216
- if (!x) return this.$L;
1217
- var R = this.clone(), L = T(x, A, !0);
1218
- return L && (R.$L = L), R;
1219
- }, O.clone = function() {
1220
- return I.w(this.$d, this);
1221
- }, O.toDate = function() {
1222
- return new Date(this.valueOf());
1223
- }, O.toJSON = function() {
1224
- return this.isValid() ? this.toISOString() : null;
1225
- }, O.toISOString = function() {
1226
- return this.$d.toISOString();
1227
- }, O.toString = function() {
1228
- return this.$d.toUTCString();
1229
- }, N;
1230
- }(), M = B.prototype;
1231
- return S.prototype = M, [["$ms", i], ["$s", a], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", p], ["$D", m]].forEach(function(N) {
1232
- M[N[1]] = function(O) {
1233
- return this.$g(O, N[0], N[1]);
1032
+ return new Date(R);
1033
+ }(x), this.init();
1034
+ }, O.init = function() {
1035
+ var x = this.$d;
1036
+ this.$y = x.getFullYear(), this.$M = x.getMonth(), this.$D = x.getDate(), this.$W = x.getDay(), this.$H = x.getHours(), this.$m = x.getMinutes(), this.$s = x.getSeconds(), this.$ms = x.getMilliseconds();
1037
+ }, O.$utils = function() {
1038
+ return I;
1039
+ }, O.isValid = function() {
1040
+ return this.$d.toString() !== g;
1041
+ }, O.isSame = function(x, A) {
1042
+ var R = S(x);
1043
+ return this.startOf(A) <= R && R <= this.endOf(A);
1044
+ }, O.isAfter = function(x, A) {
1045
+ return S(x) < this.startOf(A);
1046
+ }, O.isBefore = function(x, A) {
1047
+ return this.endOf(A) < S(x);
1048
+ }, O.$g = function(x, A, R) {
1049
+ return I.u(x) ? this[A] : this.set(R, x);
1050
+ }, O.unix = function() {
1051
+ return Math.floor(this.valueOf() / 1e3);
1052
+ }, O.valueOf = function() {
1053
+ return this.$d.getTime();
1054
+ }, O.startOf = function(x, A) {
1055
+ var R = this, L = !!I.u(A) || A, G = I.p(x), j = function(U, F) {
1056
+ var H = I.w(R.$u ? Date.UTC(R.$y, F, U) : new Date(R.$y, F, U), R);
1057
+ return L ? H : H.endOf(c);
1058
+ }, X = function(U, F) {
1059
+ return I.w(R.toDate()[U].apply(R.toDate("s"), (L ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(F)), R);
1060
+ }, Z = this.$W, ee = this.$M, oe = this.$D, ie = "set" + (this.$u ? "UTC" : "");
1061
+ switch (G) {
1062
+ case p:
1063
+ return L ? j(1, 0) : j(31, 11);
1064
+ case f:
1065
+ return L ? j(1, ee) : j(0, ee + 1);
1066
+ case u:
1067
+ var ce = this.$locale().weekStart || 0, pe = (Z < ce ? Z + 7 : Z) - ce;
1068
+ return j(L ? oe - pe : oe + (6 - pe), ee);
1069
+ case c:
1070
+ case m:
1071
+ return X(ie + "Hours", 0);
1072
+ case l:
1073
+ return X(ie + "Minutes", 1);
1074
+ case s:
1075
+ return X(ie + "Seconds", 2);
1076
+ case a:
1077
+ return X(ie + "Milliseconds", 3);
1078
+ default:
1079
+ return this.clone();
1080
+ }
1081
+ }, O.endOf = function(x) {
1082
+ return this.startOf(x, !1);
1083
+ }, O.$set = function(x, A) {
1084
+ var R, L = I.p(x), G = "set" + (this.$u ? "UTC" : ""), j = (R = {}, R[c] = G + "Date", R[m] = G + "Date", R[f] = G + "Month", R[p] = G + "FullYear", R[l] = G + "Hours", R[s] = G + "Minutes", R[a] = G + "Seconds", R[i] = G + "Milliseconds", R)[L], X = L === c ? this.$D + (A - this.$W) : A;
1085
+ if (L === f || L === p) {
1086
+ var Z = this.clone().set(m, 1);
1087
+ Z.$d[j](X), Z.init(), this.$d = Z.set(m, Math.min(this.$D, Z.daysInMonth())).$d;
1088
+ } else j && this.$d[j](X);
1089
+ return this.init(), this;
1090
+ }, O.set = function(x, A) {
1091
+ return this.clone().$set(x, A);
1092
+ }, O.get = function(x) {
1093
+ return this[I.p(x)]();
1094
+ }, O.add = function(x, A) {
1095
+ var R, L = this;
1096
+ x = Number(x);
1097
+ var G = I.p(A), j = function(ee) {
1098
+ var oe = S(L);
1099
+ return I.w(oe.date(oe.date() + Math.round(ee * x)), L);
1234
1100
  };
1235
- }), S.extend = function(N, O) {
1236
- return N.$i || (N(O, B, S), N.$i = !0), S;
1237
- }, S.locale = T, S.isDayjs = D, S.unix = function(N) {
1238
- return S(1e3 * N);
1239
- }, S.en = C[w], S.Ls = C, S.p = {}, S;
1240
- });
1241
- }(dayjs_min)), dayjs_min.exports;
1242
- }
1243
- var dayjs_minExports = requireDayjs_min();
1101
+ if (G === f) return this.set(f, this.$M + x);
1102
+ if (G === p) return this.set(p, this.$y + x);
1103
+ if (G === c) return j(1);
1104
+ if (G === u) return j(7);
1105
+ var X = (R = {}, R[s] = n, R[l] = o, R[a] = r, R)[G] || 1, Z = this.$d.getTime() + x * X;
1106
+ return I.w(Z, this);
1107
+ }, O.subtract = function(x, A) {
1108
+ return this.add(-1 * x, A);
1109
+ }, O.format = function(x) {
1110
+ var A = this, R = this.$locale();
1111
+ if (!this.isValid()) return R.invalidDate || g;
1112
+ var L = x || "YYYY-MM-DDTHH:mm:ssZ", G = I.z(this), j = this.$H, X = this.$m, Z = this.$M, ee = R.weekdays, oe = R.months, ie = R.meridiem, ce = function(F, H, q, Y) {
1113
+ return F && (F[H] || F(A, L)) || q[H].slice(0, Y);
1114
+ }, pe = function(F) {
1115
+ return I.s(j % 12 || 12, F, "0");
1116
+ }, U = ie || function(F, H, q) {
1117
+ var Y = F < 12 ? "AM" : "PM";
1118
+ return q ? Y.toLowerCase() : Y;
1119
+ };
1120
+ return L.replace(v, function(F, H) {
1121
+ return H || function(q) {
1122
+ switch (q) {
1123
+ case "YY":
1124
+ return String(A.$y).slice(-2);
1125
+ case "YYYY":
1126
+ return I.s(A.$y, 4, "0");
1127
+ case "M":
1128
+ return Z + 1;
1129
+ case "MM":
1130
+ return I.s(Z + 1, 2, "0");
1131
+ case "MMM":
1132
+ return ce(R.monthsShort, Z, oe, 3);
1133
+ case "MMMM":
1134
+ return ce(oe, Z);
1135
+ case "D":
1136
+ return A.$D;
1137
+ case "DD":
1138
+ return I.s(A.$D, 2, "0");
1139
+ case "d":
1140
+ return String(A.$W);
1141
+ case "dd":
1142
+ return ce(R.weekdaysMin, A.$W, ee, 2);
1143
+ case "ddd":
1144
+ return ce(R.weekdaysShort, A.$W, ee, 3);
1145
+ case "dddd":
1146
+ return ee[A.$W];
1147
+ case "H":
1148
+ return String(j);
1149
+ case "HH":
1150
+ return I.s(j, 2, "0");
1151
+ case "h":
1152
+ return pe(1);
1153
+ case "hh":
1154
+ return pe(2);
1155
+ case "a":
1156
+ return U(j, X, !0);
1157
+ case "A":
1158
+ return U(j, X, !1);
1159
+ case "m":
1160
+ return String(X);
1161
+ case "mm":
1162
+ return I.s(X, 2, "0");
1163
+ case "s":
1164
+ return String(A.$s);
1165
+ case "ss":
1166
+ return I.s(A.$s, 2, "0");
1167
+ case "SSS":
1168
+ return I.s(A.$ms, 3, "0");
1169
+ case "Z":
1170
+ return G;
1171
+ }
1172
+ return null;
1173
+ }(F) || G.replace(":", "");
1174
+ });
1175
+ }, O.utcOffset = function() {
1176
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1177
+ }, O.diff = function(x, A, R) {
1178
+ var L, G = this, j = I.p(A), X = S(x), Z = (X.utcOffset() - this.utcOffset()) * n, ee = this - X, oe = function() {
1179
+ return I.m(G, X);
1180
+ };
1181
+ switch (j) {
1182
+ case p:
1183
+ L = oe() / 12;
1184
+ break;
1185
+ case f:
1186
+ L = oe();
1187
+ break;
1188
+ case d:
1189
+ L = oe() / 3;
1190
+ break;
1191
+ case u:
1192
+ L = (ee - Z) / 6048e5;
1193
+ break;
1194
+ case c:
1195
+ L = (ee - Z) / 864e5;
1196
+ break;
1197
+ case l:
1198
+ L = ee / o;
1199
+ break;
1200
+ case s:
1201
+ L = ee / n;
1202
+ break;
1203
+ case a:
1204
+ L = ee / r;
1205
+ break;
1206
+ default:
1207
+ L = ee;
1208
+ }
1209
+ return R ? L : I.a(L);
1210
+ }, O.daysInMonth = function() {
1211
+ return this.endOf(f).$D;
1212
+ }, O.$locale = function() {
1213
+ return C[this.$L];
1214
+ }, O.locale = function(x, A) {
1215
+ if (!x) return this.$L;
1216
+ var R = this.clone(), L = D(x, A, !0);
1217
+ return L && (R.$L = L), R;
1218
+ }, O.clone = function() {
1219
+ return I.w(this.$d, this);
1220
+ }, O.toDate = function() {
1221
+ return new Date(this.valueOf());
1222
+ }, O.toJSON = function() {
1223
+ return this.isValid() ? this.toISOString() : null;
1224
+ }, O.toISOString = function() {
1225
+ return this.$d.toISOString();
1226
+ }, O.toString = function() {
1227
+ return this.$d.toUTCString();
1228
+ }, N;
1229
+ }(), M = B.prototype;
1230
+ return S.prototype = M, [["$ms", i], ["$s", a], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", p], ["$D", m]].forEach(function(N) {
1231
+ M[N[1]] = function(O) {
1232
+ return this.$g(O, N[0], N[1]);
1233
+ };
1234
+ }), S.extend = function(N, O) {
1235
+ return N.$i || (N(O, B, S), N.$i = !0), S;
1236
+ }, S.locale = D, S.isDayjs = T, S.unix = function(N) {
1237
+ return S(1e3 * N);
1238
+ }, S.en = C[w], S.Ls = C, S.p = {}, S;
1239
+ });
1240
+ })(dayjs_min);
1241
+ var dayjs_minExports = dayjs_min.exports;
1244
1242
  const dayjs = /* @__PURE__ */ getDefaultExportFromCjs(dayjs_minExports);
1245
1243
  var quarterOfYear$1 = { exports: {} };
1246
1244
  (function(t, e) {
@@ -1285,24 +1283,33 @@ const DATE_RANGE_TYPES = [
1285
1283
  [DataParamDateTypes.MONTHRANGE]: "YYYY-MM",
1286
1284
  [DataParamDateTypes.YEARRANGE]: "YYYY"
1287
1285
  }, SHIFT_TIME_RE = /^\d{1,2}(?::\d{1,2})?$/;
1288
- function parseShiftTime(t) {
1289
- if (!t || !SHIFT_TIME_RE.test(t)) return null;
1290
- const [e, r] = t.split(":").map(Number);
1291
- return e > 24 || r > 59 ? null : e * 60 + r;
1286
+ function parseShiftOffset(t) {
1287
+ if (!t) return null;
1288
+ const e = t.trim();
1289
+ if (!SHIFT_TIME_RE.test(e.replace(/^[+-]/, ""))) return null;
1290
+ const [r, n] = e.replace(/^[+-]/, "").split(":").map(Number);
1291
+ return r > 47 || n > 59 ? null : (e.startsWith("-") ? -1 : 1) * (r * 60 + (n || 0));
1292
+ }
1293
+ function formatShiftOffset(t) {
1294
+ return t < 0 ? `前一天 ${offsetMinutesToText(t + 1440)}` : t >= 1440 ? `次日 ${offsetMinutesToText(t - 1440)}` : `当天 ${offsetMinutesToText(t)}`;
1295
+ }
1296
+ function offsetMinutesToText(t) {
1297
+ return `${String(Math.floor(t / 60)).padStart(2, "0")}:${String(t % 60).padStart(2, "0")}`;
1292
1298
  }
1293
1299
  function parseShiftConfig(t) {
1294
1300
  if (!t) return [];
1295
1301
  const e = t.split(",").map((n) => n.trim()).filter(Boolean), r = [];
1296
1302
  return e.forEach((n, o) => {
1297
- let i = n, a = "";
1298
- const s = n.indexOf("|");
1299
- s > -1 && (a = n.slice(0, s).trim(), i = n.slice(s + 1).trim());
1300
- const [l, c] = i.split("-").map((d) => d.trim()), u = parseShiftTime(l), f = parseShiftTime(c);
1301
- u === null || f === null || f === 0 || (a || (a = e.length === 2 ? o === 0 ? "早班" : "晚班" : e.length === 3 ? ["早班", "中班", "晚班"][o] : `班次${o + 1}`), r.push({ label: a, startMinutes: u, endMinutes: f, crossDay: f <= u }));
1303
+ const i = n.split("|").map((d) => d.trim());
1304
+ if (i.length !== 3) return;
1305
+ const [a, s, l] = i, c = parseShiftOffset(s), u = parseShiftOffset(l);
1306
+ if (c === null || !u) return;
1307
+ let f = a;
1308
+ f || (f = e.length === 2 ? o === 0 ? "早班" : "晚班" : e.length === 3 ? ["早班", "中班", "晚班"][o] : `班次${o + 1}`), r.push({ label: f, startMinutes: c, endMinutes: u });
1302
1309
  }), r;
1303
1310
  }
1304
1311
  function getDateRanges() {
1305
- const t = "YYYY-MM-DD HH:mm:ss", e = dayjs(), r = e.startOf("day").format(t), n = e.endOf("day").format(t), o = e.startOf("week").format(t), i = e.endOf("week").format(t), a = e.startOf("month").format(t), s = e.endOf("month").format(t), l = e.subtract(1, "month").startOf("month").format(t), c = e.subtract(1, "month").endOf("month").format(t), u = e.startOf("quarter").format(t), f = e.endOf("quarter").format(t), d = e.subtract(1, "quarter").startOf("quarter").format(t), p = e.subtract(1, "quarter").endOf("quarter").format(t), m = e.startOf("year").format(t), g = e.endOf("year").format(t), _ = e.subtract(1, "year").startOf("year").format(t), v = e.subtract(1, "year").endOf("year").format(t), b = e.format(t), y = e.subtract(2, "day").format(t), E = e.subtract(3, "day").format(t), w = e.subtract(7, "day").format(t), C = e.subtract(15, "day").format(t), $ = e.subtract(30, "day").format(t), D = e.subtract(2, "week").startOf("week").format(t), T = e.subtract(2, "month").format(t), S = e.subtract(3, "month").format(t), I = e.subtract(6, "month").format(t), B = e.subtract(1, "year").startOf("year").format(t), M = e.subtract(2, "year").startOf("year").format(t), N = e.subtract(3, "year").format(t), O = e.subtract(5, "year").format(t);
1312
+ const t = "YYYY-MM-DD HH:mm:ss", e = dayjs(), r = e.startOf("day").format(t), n = e.endOf("day").format(t), o = e.startOf("week").format(t), i = e.endOf("week").format(t), a = e.startOf("month").format(t), s = e.endOf("month").format(t), l = e.subtract(1, "month").startOf("month").format(t), c = e.subtract(1, "month").endOf("month").format(t), u = e.startOf("quarter").format(t), f = e.endOf("quarter").format(t), d = e.subtract(1, "quarter").startOf("quarter").format(t), p = e.subtract(1, "quarter").endOf("quarter").format(t), m = e.startOf("year").format(t), g = e.endOf("year").format(t), _ = e.subtract(1, "year").startOf("year").format(t), v = e.subtract(1, "year").endOf("year").format(t), b = e.format(t), y = e.subtract(2, "day").format(t), E = e.subtract(3, "day").format(t), w = e.subtract(7, "day").format(t), C = e.subtract(15, "day").format(t), $ = e.subtract(30, "day").format(t), T = e.subtract(2, "week").startOf("week").format(t), D = e.subtract(2, "month").format(t), S = e.subtract(3, "month").format(t), I = e.subtract(6, "month").format(t), B = e.subtract(1, "year").startOf("year").format(t), M = e.subtract(2, "year").startOf("year").format(t), N = e.subtract(3, "year").format(t), O = e.subtract(5, "year").format(t);
1306
1313
  return {
1307
1314
  dateFormat: t,
1308
1315
  thisDayStart: r,
@@ -1327,8 +1334,8 @@ function getDateRanges() {
1327
1334
  sevenDay: w,
1328
1335
  fifteenDay: C,
1329
1336
  thirtyDay: $,
1330
- twoWeek: D,
1331
- twoMonth: T,
1337
+ twoWeek: T,
1338
+ twoMonth: D,
1332
1339
  threeMonth: S,
1333
1340
  sixMonth: I,
1334
1341
  oneYear: B,
@@ -1408,10 +1415,10 @@ const _hoisted_1$6 = { class: "yh-report-view-conditions" }, _sfc_main$7 = /* @_
1408
1415
  },
1409
1416
  emits: ["change", "addCell"],
1410
1417
  setup(t, { expose: e, emit: r }) {
1411
- const n = t, o = r, i = useRoute(), { dateFormat: a, thisDayStart: s, thisDayEnd: l, thisWeekStart: c, thisMonthStart: u, thisMonthEnd: f, lastMonthStart: d, lastMonthEnd: p, thisQuarterStart: m, lastQuarterStart: g, thisYearStart: _, thisYearEnd: v, lastYearStart: b, lastYearEnd: y, now: E, twoDay: w, threeDay: C, sevenDay: $, fifteenDay: D, thirtyDay: T, twoWeek: S, twoMonth: I, threeMonth: B, sixMonth: M, oneYear: N, twoYear: O, threeYear: x, fiveYear: A } = getDateRanges(), R = ref([]), L = ref([]), G = computed(() => {
1418
+ const n = t, o = r, i = useRoute(), { dateFormat: a, thisDayStart: s, thisDayEnd: l, thisWeekStart: c, thisMonthStart: u, thisMonthEnd: f, lastMonthStart: d, lastMonthEnd: p, thisQuarterStart: m, lastQuarterStart: g, thisYearStart: _, thisYearEnd: v, lastYearStart: b, lastYearEnd: y, now: E, twoDay: w, threeDay: C, sevenDay: $, fifteenDay: T, thirtyDay: D, twoWeek: S, twoMonth: I, threeMonth: B, sixMonth: M, oneYear: N, twoYear: O, threeYear: x, fiveYear: A } = getDateRanges(), R = ref([]), L = ref([]), G = computed(() => {
1412
1419
  let k = reactive({});
1413
- return L.value.forEach((Y) => {
1414
- k[Y.columnName] = Y;
1420
+ return L.value.forEach((V) => {
1421
+ k[V.columnName] = V;
1415
1422
  }), k;
1416
1423
  });
1417
1424
  let j = !1;
@@ -1429,79 +1436,79 @@ const _hoisted_1$6 = { class: "yh-report-view-conditions" }, _sfc_main$7 = /* @_
1429
1436
  j = !1;
1430
1437
  let k = [];
1431
1438
  R.value = [];
1432
- const Y = [];
1439
+ const V = [];
1433
1440
  if (n.config && n.config.length)
1434
- for (let q = 0; q < n.config.length; q++) {
1435
- const ee = cloneDeep(n.config[q]);
1436
- let { dataType: K, dateType: re, type: oe, selectorId: de, remoteSearch: le, cellIndex: fe, cellIndexSort: ve, cellIndexSortOrder: me, cellIndexSortNumeric: _e, name: pe, columnName: ge, defaultValue: we, isNull: $e } = ee, Ce = [DataSourceColumnDataType.DATE, DataSourceColumnDataType.DATETIME].includes(K);
1437
- const { componentName: Se, placeholerPrefix: be, type: xe } = componentTransition(K, re);
1438
- let Ee = {
1439
- ...ee,
1440
- elWidth: ee.elWidth || 210,
1441
- formItemType: Se,
1442
- placeholder: rct(be + pe || ge),
1443
- type: xe || "",
1441
+ for (let z = 0; z < n.config.length; z++) {
1442
+ const Q = cloneDeep(n.config[z]);
1443
+ let { dataType: K, dateType: re, type: ne, selectorId: se, remoteSearch: ae, cellIndex: ue, cellIndexSort: _e, cellIndexSortOrder: ge, cellIndexSortNumeric: me, name: de, columnName: he, defaultValue: Ee, isNull: Ce } = Q, ve = [DataSourceColumnDataType.DATE, DataSourceColumnDataType.DATETIME].includes(K);
1444
+ const { componentName: be, placeholerPrefix: we, type: $e } = componentTransition(K, re);
1445
+ let ye = {
1446
+ ...Q,
1447
+ elWidth: Q.elWidth || 210,
1448
+ formItemType: be,
1449
+ placeholder: rct(we + de || he),
1450
+ type: $e || "",
1444
1451
  optionData: [],
1445
1452
  value: "",
1446
1453
  shiftSegments: [],
1447
1454
  shiftValue: ""
1448
1455
  };
1449
- if (Ee.shiftSegments = re === DataParamDateTypes.DATE ? parseShiftConfig(ee.shifts) : [], Ee.value = Q(Ee, Ce), R.value.push({
1450
- name: ge,
1451
- value: Ee.value,
1452
- type: oe,
1453
- isNull: $e
1454
- }), ee.customOptions)
1455
- Ee.optionData = ee.customOptions.split(",").map((he) => he.trim()).filter(Boolean).map((he) => ({ label: he, value: he }));
1456
- else if (de) {
1457
- const he = ue(de, Ee, "", le);
1458
- le || Y.push(he);
1459
- } else fe && (o("addCell", fe), on(`cell-change:${fe}`, (he) => {
1460
- if (he = Object.values(he), he && Array.isArray(he) && he.length) {
1461
- if (ve) {
1462
- const De = createGroupSortComparator({ order: me, numeric: _e });
1463
- he.sort((Te, Oe) => De(Te.label, Oe.label));
1456
+ if (ye.shiftSegments = re === DataParamDateTypes.DATE ? parseShiftConfig(Q.shifts) : [], ye.value = ee(ye, ve), R.value.push({
1457
+ name: he,
1458
+ value: ye.value,
1459
+ type: ne,
1460
+ isNull: Ce
1461
+ }), Q.customOptions)
1462
+ ye.optionData = Q.customOptions.split(",").map((fe) => fe.trim()).filter(Boolean).map((fe) => ({ label: fe, value: fe }));
1463
+ else if (se) {
1464
+ const fe = ce(se, ye, "", ae);
1465
+ ae || V.push(fe);
1466
+ } else ue && (o("addCell", ue), on(`cell-change:${ue}`, (fe) => {
1467
+ if (fe = Object.values(fe), fe && Array.isArray(fe) && fe.length) {
1468
+ if (_e) {
1469
+ const Se = createGroupSortComparator({ order: ge, numeric: me });
1470
+ fe.sort((xe, Te) => Se(xe.label, Te.label));
1464
1471
  }
1465
- Ee.optionData = he, triggerRef(L);
1472
+ ye.optionData = fe, triggerRef(L);
1466
1473
  }
1467
1474
  }));
1468
- k.push(Ee), oe === "LT_GT_EQ" && !Ce && U(Ee, k, be, oe);
1475
+ k.push(ye), ne === "LT_GT_EQ" && !ve && U(ye, k, we, ne);
1469
1476
  }
1470
- L.value = k, J(), nextTick(async () => {
1471
- Y.length > 0 && await Promise.allSettled(Y), j || se();
1477
+ L.value = k, Z(), nextTick(async () => {
1478
+ V.length > 0 && await Promise.allSettled(V), j || J();
1472
1479
  });
1473
1480
  }
1474
- function J() {
1475
- Object.entries(i.query).forEach(([k, Y]) => {
1476
- if (!k || Y === null || Y === void 0 || Y === "") return;
1477
- const q = Array.isArray(Y) ? Y.join(",") : Y, ee = R.value.findIndex((K) => K.name === k);
1478
- if (ee > -1) {
1481
+ function Z() {
1482
+ Object.entries(i.query).forEach(([k, V]) => {
1483
+ if (!k || V === null || V === void 0 || V === "") return;
1484
+ const z = Array.isArray(V) ? V.join(",") : V, Q = R.value.findIndex((K) => K.name === k);
1485
+ if (Q > -1) {
1479
1486
  if (k.indexOf("end_") === 0) {
1480
- R.value[ee].value = q;
1487
+ R.value[Q].value = z;
1481
1488
  const K = L.value.find((re) => re.columnName === k);
1482
- K && (K.value = q);
1489
+ K && (K.value = z);
1483
1490
  }
1484
1491
  return;
1485
1492
  }
1486
- R.value.push({ name: k, value: q, type: "EQ", isNull: !1 });
1493
+ R.value.push({ name: k, value: z, type: "EQ", isNull: !1 });
1487
1494
  });
1488
1495
  }
1489
- function Q(k, Y) {
1490
- let { dataType: q, dateType: ee, defaultValue: K, startTime: re, endTime: oe, columnName: de } = k, le = K || "";
1491
- if (Y && K)
1492
- ee && (k.type = ee), ee && DATE_RANGE_TYPES.includes(ee) ? le = ie(K, re, oe) : le = ae(ee, K, re);
1493
- else if ([DataSourceColumnDataType.LIST, DataSourceColumnDataType.TABLE].includes(q)) {
1494
- if (Array.isArray(le))
1495
- return le;
1496
- if (i.query[de]) {
1497
- let fe = i.query[de];
1498
- le = Array.isArray(fe) ? fe : String(fe).split(",");
1499
- } else typeof le == "string" && le ? le = le.split(",") : le = [];
1496
+ function ee(k, V) {
1497
+ let { dataType: z, dateType: Q, defaultValue: K, startTime: re, endTime: ne, columnName: se } = k, ae = K || "";
1498
+ if (V && K)
1499
+ Q && (k.type = Q), Q && DATE_RANGE_TYPES.includes(Q) ? ae = oe(K, re, ne) : ae = ie(Q, K, re);
1500
+ else if ([DataSourceColumnDataType.LIST, DataSourceColumnDataType.TABLE].includes(z)) {
1501
+ if (Array.isArray(ae))
1502
+ return ae;
1503
+ if (i.query[se]) {
1504
+ let ue = i.query[se];
1505
+ ae = Array.isArray(ue) ? ue : String(ue).split(",");
1506
+ } else typeof ae == "string" && ae ? ae = ae.split(",") : ae = [];
1500
1507
  } else
1501
- i.query[de] && (le = i.query[de]);
1502
- return le;
1508
+ i.query[se] && (ae = i.query[se]);
1509
+ return ae;
1503
1510
  }
1504
- function ie(k, Y, q) {
1511
+ function oe(k, V, z) {
1505
1512
  let K = {
1506
1513
  thisDay: [s, l],
1507
1514
  thisMonth: [u, f],
@@ -1512,8 +1519,8 @@ const _hoisted_1$6 = { class: "yh-report-view-conditions" }, _sfc_main$7 = /* @_
1512
1519
  twoDay: [w, E],
1513
1520
  threeDay: [C, E],
1514
1521
  sevenDay: [$, E],
1515
- fifteenDay: [D, E],
1516
- thirtyDay: [T, E],
1522
+ fifteenDay: [T, E],
1523
+ thirtyDay: [D, E],
1517
1524
  threeMonth: [B, E],
1518
1525
  sixMonth: [M, E],
1519
1526
  oneYear: [N, E],
@@ -1521,9 +1528,9 @@ const _hoisted_1$6 = { class: "yh-report-view-conditions" }, _sfc_main$7 = /* @_
1521
1528
  threeYear: [x, E],
1522
1529
  fiveYear: [A, E]
1523
1530
  }[k] || [s, l];
1524
- return Y && (K[0] = ne(K[0], Y, a)), q && (K[1] = ne(K[1], q, a)), K;
1531
+ return V && (K[0] = te(K[0], V, a)), z && (K[1] = te(K[1], z, a)), K;
1525
1532
  }
1526
- function ae(k, Y, q) {
1533
+ function ie(k, V, z) {
1527
1534
  let K = {
1528
1535
  thisYear: _,
1529
1536
  twoYear: O,
@@ -1542,55 +1549,55 @@ const _hoisted_1$6 = { class: "yh-report-view-conditions" }, _sfc_main$7 = /* @_
1542
1549
  twoDay: w,
1543
1550
  threeDay: C,
1544
1551
  sevenDay: $,
1545
- fifteenDay: D,
1546
- thirtyDay: T
1547
- }[Y];
1552
+ fifteenDay: T,
1553
+ thirtyDay: D
1554
+ }[V];
1548
1555
  if (!K) {
1549
1556
  let re = dayjs().startOf(k);
1550
1557
  re.isValid() ? K = re.format(a) : K = E;
1551
1558
  }
1552
- return q && (K = ne(K, q, a)), K;
1559
+ return z && (K = te(K, z, a)), K;
1553
1560
  }
1554
- function ue(k, Y, q = "", ee = !1) {
1561
+ function ce(k, V, z = "", Q = !1) {
1555
1562
  return axios.request({
1556
1563
  url: "/sysSelector/list",
1557
1564
  method: "POST",
1558
- data: { id: k, f_value: q, remote: ee }
1565
+ data: { id: k, f_value: z, remote: Q }
1559
1566
  }).then((K) => {
1560
- K.data && Array.isArray(K.data.data) && (Y.optionData = K.data.data.map(({ NAME: re, VALUE: oe }) => ({
1567
+ K.data && Array.isArray(K.data.data) && (V.optionData = K.data.data.map(({ NAME: re, VALUE: ne }) => ({
1561
1568
  label: re,
1562
- value: oe
1569
+ value: ne
1563
1570
  })), triggerRef(L));
1564
1571
  }).catch((K) => {
1565
- console.warn(`选择器 ${k} 数据加载失败:`, K), Y.optionData = [];
1572
+ console.warn(`选择器 ${k} 数据加载失败:`, K), V.optionData = [];
1566
1573
  });
1567
1574
  }
1568
- function ye(k, Y) {
1569
- Y.selectorId && (Y.selectorLoading = !0, axios.request({
1575
+ function pe(k, V) {
1576
+ V.selectorId && (V.selectorLoading = !0, axios.request({
1570
1577
  url: "/sysSelector/list",
1571
1578
  method: "POST",
1572
- data: { id: Y.selectorId, f_value: k, remote: !0 }
1573
- }).then((q) => {
1574
- q.data && Array.isArray(q.data.data) && (Y.optionData = q.data.data.map(({ NAME: ee, VALUE: K }) => ({
1575
- label: ee,
1579
+ data: { id: V.selectorId, f_value: k, remote: !0 }
1580
+ }).then((z) => {
1581
+ z.data && Array.isArray(z.data.data) && (V.optionData = z.data.data.map(({ NAME: Q, VALUE: K }) => ({
1582
+ label: Q,
1576
1583
  value: K
1577
1584
  })));
1578
1585
  }).finally(() => {
1579
- Y.selectorLoading = !1, triggerRef(L);
1586
+ V.selectorLoading = !1, triggerRef(L);
1580
1587
  }));
1581
1588
  }
1582
- function U(k, Y, q, ee) {
1583
- const { columnName: K, defaultValue: re, isNull: oe } = k;
1584
- k.placeholder = rct(q + "开始");
1585
- const de = cloneDeep(k);
1586
- de.name = "-", de.columnName = `end_${K}`, de.placeholder = rct(q + "结束");
1587
- let le = re || "";
1589
+ function U(k, V, z, Q) {
1590
+ const { columnName: K, defaultValue: re, isNull: ne } = k;
1591
+ k.placeholder = rct(z + "开始");
1592
+ const se = cloneDeep(k);
1593
+ se.name = "-", se.columnName = `end_${K}`, se.placeholder = rct(z + "结束");
1594
+ let ae = re || "";
1588
1595
  R.value.push({
1589
1596
  name: `end_${K}`,
1590
- value: le,
1591
- type: ee,
1592
- isNull: oe
1593
- }), k.selectorId && ue(k.selectorId, de, "", !!k.remoteSearch), Y.push(de);
1597
+ value: ae,
1598
+ type: Q,
1599
+ isNull: ne
1600
+ }), k.selectorId && ce(k.selectorId, se, "", !!k.remoteSearch), V.push(se);
1594
1601
  }
1595
1602
  function F(k) {
1596
1603
  return {
@@ -1599,159 +1606,152 @@ const _hoisted_1$6 = { class: "yh-report-view-conditions" }, _sfc_main$7 = /* @_
1599
1606
  style: k.columnName.indexOf("end_") > -1 ? { marginLeft: "-22px" } : {}
1600
1607
  };
1601
1608
  }
1602
- function V(k) {
1603
- const Y = {
1609
+ function H(k) {
1610
+ const V = {
1604
1611
  modelValue: k.value,
1605
1612
  type: k.type,
1606
1613
  clearable: !0,
1607
1614
  placeholder: k.placeholder,
1608
- "onUpdate:modelValue": (q) => H(q, k)
1615
+ "onUpdate:modelValue": (z) => q(z, k)
1609
1616
  };
1610
- return k.formItemType === "ElDatePicker" && (Y["value-format"] = a, DATE_RANGE_TYPES.includes(k.type) && (Y.unlinkPanels = !0, Y.singlePanel = !!k.singlePanel), DATE_VIEW_FORMAT[k.type] && (Y.format = DATE_VIEW_FORMAT[k.type])), ["ElInput"].includes(k.formItemType) && (Y.onBlur = () => z(k, "blur"), Y.onKeyup = (q) => {
1611
- q.key === "Enter" && z(k, "enter");
1612
- }), ["ElSelect"].includes(k.formItemType) && (Y.multiple = !0, Y.collapseTags = !0, Y.filterable = !0, k.remoteSearch && k.selectorId && (Y.remote = !0, Y.remoteMethod = (q) => ye(q, k), Y.loading = k.selectorLoading)), Y;
1617
+ return k.formItemType === "ElDatePicker" && (V["value-format"] = a, DATE_RANGE_TYPES.includes(k.type) && (V.unlinkPanels = !0, V.singlePanel = !!k.singlePanel), DATE_VIEW_FORMAT[k.type] && (V.format = DATE_VIEW_FORMAT[k.type])), ["ElInput"].includes(k.formItemType) && (V.onBlur = () => Y(k, "blur"), V.onKeyup = (z) => {
1618
+ z.key === "Enter" && Y(k, "enter");
1619
+ }), ["ElSelect"].includes(k.formItemType) && (V.multiple = !0, V.collapseTags = !0, V.filterable = !0, k.remoteSearch && k.selectorId && (V.remote = !0, V.remoteMethod = (z) => pe(z, k), V.loading = k.selectorLoading)), V;
1613
1620
  }
1614
- function H(k, Y) {
1615
- let q = R.value.findIndex((ee) => ee.name === Y.columnName);
1616
- if (Y.value = k, R.value[q].value = k, ["ElSelect", "ElTreeSelect", "ElSwitch", "ElDatePicker", "ElTimePicker", "ElColorPicker"].includes(Y.formItemType)) {
1621
+ function q(k, V) {
1622
+ let z = R.value.findIndex((Q) => Q.name === V.columnName);
1623
+ if (V.value = k, R.value[z].value = k, ["ElSelect", "ElTreeSelect", "ElSwitch", "ElDatePicker", "ElTimePicker", "ElColorPicker"].includes(V.formItemType)) {
1617
1624
  if (!n.data.searchOnBlur)
1618
1625
  return !1;
1619
- j = !0, se();
1626
+ j = !0, J();
1620
1627
  }
1621
1628
  }
1622
- function z(k, Y) {
1629
+ function Y(k, V) {
1623
1630
  if (["ElInput", "ElInputNumber"].includes(k.formItemType)) {
1624
- if (Y === "blur" && !n.data.searchOnBlur)
1631
+ if (V === "blur" && !n.data.searchOnBlur)
1625
1632
  return !1;
1626
- j = !0, se();
1633
+ j = !0, J();
1627
1634
  }
1628
1635
  }
1629
- function W(k, Y) {
1630
- if (Y.shiftValue = k || "", !n.data.searchOnBlur)
1636
+ function W(k, V) {
1637
+ if (V.shiftValue = k || "", !n.data.searchOnBlur)
1631
1638
  return !1;
1632
- j = !0, se();
1633
- }
1634
- function te(k) {
1635
- return `${String(Math.floor(k / 60)).padStart(2, "0")}:${String(k % 60).padStart(2, "0")}`;
1639
+ j = !0, J();
1636
1640
  }
1637
- function Z(k) {
1638
- return k.crossDay ? `${k.label}(前日${te(k.startMinutes)}-当日${te(k.endMinutes)})` : `${k.label}(${te(k.startMinutes)}-${te(k.endMinutes)})`;
1639
- }
1640
- function ne(k, Y, q) {
1641
- if (Y && k) {
1642
- let ee = Y.split(",").map((re) => {
1643
- let oe = re.match(/[-+]/).index, de = Number(re.substring(oe)), le = re.substring(0, oe);
1641
+ function te(k, V, z) {
1642
+ if (V && k) {
1643
+ let Q = V.split(",").map((re) => {
1644
+ let ne = re.match(/[-+]/).index, se = Number(re.substring(ne)), ae = re.substring(0, ne);
1644
1645
  return {
1645
- count: de,
1646
- type: le
1646
+ count: se,
1647
+ type: ae
1647
1648
  };
1648
1649
  }), K = dayjs(k);
1649
- K.isValid() && (ee.forEach(({ count: re, type: oe }) => {
1650
- K = K.add(re, oe);
1651
- }), k = K.format(q));
1650
+ K.isValid() && (Q.forEach(({ count: re, type: ne }) => {
1651
+ K = K.add(re, ne);
1652
+ }), k = K.format(z));
1652
1653
  }
1653
1654
  return k;
1654
1655
  }
1655
- function se() {
1656
+ function J() {
1656
1657
  let k = cloneDeep(R.value);
1657
- k.forEach(({ name: Y, value: q, type: ee, isNull: K }, re) => {
1658
- let oe = G.value[Y];
1659
- if (!oe) {
1660
- Array.isArray(q) && (k[re].value = q.join(","));
1658
+ k.forEach(({ name: V, value: z, type: Q, isNull: K }, re) => {
1659
+ let ne = G.value[V];
1660
+ if (!ne) {
1661
+ Array.isArray(z) && (k[re].value = z.join(","));
1661
1662
  return;
1662
1663
  }
1663
- if ([DataSourceColumnDataType.DATE, DataSourceColumnDataType.DATETIME].includes(oe.dataType) && q)
1664
- if (oe.dateType && DATE_RANGE_TYPES.includes(oe.dateType) && q && q.length === 2) {
1665
- let [fe, ve] = q;
1666
- const me = DATE_RANGE_PERIOD_UNIT[oe.dateType];
1667
- if (me) {
1668
- const pe = dayjs(fe), ge = dayjs(ve);
1669
- pe.isValid() && (fe = pe.startOf(me).format(a)), ge.isValid() && (ve = ge.endOf(me).format(a));
1664
+ if ([DataSourceColumnDataType.DATE, DataSourceColumnDataType.DATETIME].includes(ne.dataType) && z)
1665
+ if (ne.dateType && DATE_RANGE_TYPES.includes(ne.dateType) && z && z.length === 2) {
1666
+ let [ue, _e] = z;
1667
+ const ge = DATE_RANGE_PERIOD_UNIT[ne.dateType];
1668
+ if (ge) {
1669
+ const de = dayjs(ue), he = dayjs(_e);
1670
+ de.isValid() && (ue = de.startOf(ge).format(a)), he.isValid() && (_e = he.endOf(ge).format(a));
1670
1671
  }
1671
- k[re].value = fe;
1672
- let _e = `end_${oe.columnName}`;
1673
- k.some((pe) => pe.name === _e) || k.push({
1674
- name: _e,
1675
- value: ve,
1676
- type: ee,
1672
+ k[re].value = ue;
1673
+ let me = `end_${ne.columnName}`;
1674
+ k.some((de) => de.name === me) || k.push({
1675
+ name: me,
1676
+ value: _e,
1677
+ type: Q,
1677
1678
  isNull: K
1678
1679
  });
1679
1680
  } else {
1680
- let fe = dayjs(q);
1681
- if (fe.isValid() && oe.dateType) {
1682
- const ve = oe.shiftValue ? Number(oe.shiftValue) : -1, me = oe.dateType === DataParamDateTypes.DATE ? (oe.shiftSegments || [])[ve] : void 0;
1683
- if (me) {
1684
- const _e = fe.startOf("day");
1685
- let pe = _e.add(me.startMinutes, "minute");
1686
- me.crossDay && (pe = pe.subtract(1, "day")), k[re].value = pe.format(a);
1687
- let ge = `end_${oe.columnName}`;
1688
- k.some((we) => we.name === ge) || k.push({
1689
- name: ge,
1690
- value: _e.add(me.endMinutes, "minute").format(a),
1691
- type: ee,
1681
+ let ue = dayjs(z);
1682
+ if (ue.isValid() && ne.dateType) {
1683
+ const _e = ne.shiftValue ? Number(ne.shiftValue) : -1, ge = ne.dateType === DataParamDateTypes.DATE ? (ne.shiftSegments || [])[_e] : void 0;
1684
+ if (ge) {
1685
+ const me = ue.startOf("day");
1686
+ k[re].value = me.add(ge.startMinutes, "minute").format(a);
1687
+ let de = `end_${ne.columnName}`;
1688
+ k.some((he) => he.name === de) || k.push({
1689
+ name: de,
1690
+ value: me.add(ge.endMinutes, "minute").format(a),
1691
+ type: Q,
1692
1692
  isNull: K
1693
1693
  });
1694
1694
  } else {
1695
- let _e = fe.startOf(oe.dateType).format(a);
1696
- k[re].value = ne(_e, oe.startTime, a);
1697
- let pe = fe.endOf(oe.dateType).format(a), ge = `end_${oe.columnName}`;
1698
- k.some((we) => we.name === ge) || k.push({
1699
- name: ge,
1700
- value: ne(pe, oe.endTime, a),
1701
- type: ee,
1695
+ let me = ue.startOf(ne.dateType).format(a);
1696
+ k[re].value = te(me, ne.startTime, a);
1697
+ let de = ue.endOf(ne.dateType).format(a), he = `end_${ne.columnName}`;
1698
+ k.some((Ee) => Ee.name === he) || k.push({
1699
+ name: he,
1700
+ value: te(de, ne.endTime, a),
1701
+ type: Q,
1702
1702
  isNull: K
1703
1703
  });
1704
1704
  }
1705
1705
  }
1706
1706
  }
1707
- else Array.isArray(q) && (k[re].value = q.join(","));
1707
+ else Array.isArray(z) && (k[re].value = z.join(","));
1708
1708
  }), o("change", k);
1709
1709
  }
1710
1710
  return e({
1711
- changeValue: se
1711
+ changeValue: J
1712
1712
  }), onMounted(() => {
1713
- }), (k, Y) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
1713
+ }), (k, V) => (openBlock(), createElementBlock("div", _hoisted_1$6, [
1714
1714
  createVNode(unref(ElForm), { inline: "" }, {
1715
1715
  default: withCtx(() => [
1716
- (openBlock(!0), createElementBlock(Fragment, null, renderList(L.value, (q) => withDirectives((openBlock(), createBlock(unref(ElFormItem), mergeProps({ ref_for: !0 }, F(q)), {
1716
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(L.value, (z) => withDirectives((openBlock(), createBlock(unref(ElFormItem), mergeProps({ ref_for: !0 }, F(z)), {
1717
1717
  default: withCtx(() => {
1718
- var ee;
1718
+ var Q;
1719
1719
  return [
1720
- q.formItemType === "ElSelect" ? (openBlock(), createBlock(resolveDynamicComponent(q.formItemType), mergeProps({
1720
+ z.formItemType === "ElSelect" ? (openBlock(), createBlock(resolveDynamicComponent(z.formItemType), mergeProps({
1721
1721
  key: 0,
1722
1722
  ref_for: !0
1723
- }, V(q), {
1724
- style: { width: `${q.elWidth}px` }
1723
+ }, H(z), {
1724
+ style: { width: `${z.elWidth}px` }
1725
1725
  }), {
1726
1726
  default: withCtx(() => [
1727
- (openBlock(!0), createElementBlock(Fragment, null, renderList(q.optionData, (K) => (openBlock(), createBlock(unref(ElOption), {
1727
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(z.optionData, (K) => (openBlock(), createBlock(unref(ElOption), {
1728
1728
  key: K.value,
1729
1729
  label: K.label,
1730
1730
  value: K.value
1731
1731
  }, null, 8, ["label", "value"]))), 128))
1732
1732
  ]),
1733
1733
  _: 2
1734
- }, 1040, ["style"])) : (openBlock(), createBlock(resolveDynamicComponent(q.formItemType), mergeProps({
1734
+ }, 1040, ["style"])) : (openBlock(), createBlock(resolveDynamicComponent(z.formItemType), mergeProps({
1735
1735
  key: 1,
1736
- style: { width: `${q.elWidth}px` }
1737
- }, { ref_for: !0 }, V(q)), null, 16, ["style"])),
1738
- q.formItemType === "ElDatePicker" && q.type === "date" && ((ee = q.shiftSegments) != null && ee.length) ? (openBlock(), createBlock(unref(ElSelect), {
1736
+ style: { width: `${z.elWidth}px` }
1737
+ }, { ref_for: !0 }, H(z)), null, 16, ["style"])),
1738
+ z.formItemType === "ElDatePicker" && z.type === "date" && ((Q = z.shiftSegments) != null && Q.length) ? (openBlock(), createBlock(unref(ElSelect), {
1739
1739
  key: 2,
1740
1740
  class: "shift-select",
1741
1741
  clearable: "",
1742
- "model-value": q.shiftValue,
1742
+ "model-value": z.shiftValue,
1743
1743
  placeholder: unref(rct)("全部班次"),
1744
- onChange: (K) => W(K, q)
1744
+ onChange: (K) => W(K, z)
1745
1745
  }, {
1746
1746
  default: withCtx(() => [
1747
1747
  createVNode(unref(ElOption), {
1748
1748
  value: "",
1749
1749
  label: unref(rct)("全部班次")
1750
1750
  }, null, 8, ["label"]),
1751
- (openBlock(!0), createElementBlock(Fragment, null, renderList(q.shiftSegments, (K, re) => (openBlock(), createBlock(unref(ElOption), {
1751
+ (openBlock(!0), createElementBlock(Fragment, null, renderList(z.shiftSegments, (K, re) => (openBlock(), createBlock(unref(ElOption), {
1752
1752
  key: re,
1753
1753
  value: String(re),
1754
- label: Z(K)
1754
+ label: K.label
1755
1755
  }, null, 8, ["value", "label"]))), 128))
1756
1756
  ]),
1757
1757
  _: 2
@@ -1760,7 +1760,7 @@ const _hoisted_1$6 = { class: "yh-report-view-conditions" }, _sfc_main$7 = /* @_
1760
1760
  }),
1761
1761
  _: 2
1762
1762
  }, 1040)), [
1763
- [vShow, q.isShow]
1763
+ [vShow, z.isShow]
1764
1764
  ])), 256))
1765
1765
  ]),
1766
1766
  _: 1
@@ -1802,7 +1802,7 @@ function getDateSourceData(t, e = {
1802
1802
  var zhCn$1 = { exports: {} };
1803
1803
  (function(t, e) {
1804
1804
  (function(r, n) {
1805
- t.exports = n(requireDayjs_min());
1805
+ t.exports = n(dayjs_minExports);
1806
1806
  })(commonjsGlobal, function(r) {
1807
1807
  function n(a) {
1808
1808
  return a && typeof a == "object" && "default" in a ? a : { default: a };
@@ -3076,7 +3076,7 @@ var divide = /* @__PURE__ */ function() {
3076
3076
  for (; !n[0] && n.length > 1; ) n.shift();
3077
3077
  }
3078
3078
  return function(n, o, i, a, s, l) {
3079
- var c, u, f, d, p, m, g, _, v, b, y, E, w, C, $, D, T, S, I, B, M = n.constructor, N = n.s == o.s ? 1 : -1, O = n.d, x = o.d;
3079
+ var c, u, f, d, p, m, g, _, v, b, y, E, w, C, $, T, D, S, I, B, M = n.constructor, N = n.s == o.s ? 1 : -1, O = n.d, x = o.d;
3080
3080
  if (!O || !O[0] || !x || !x[0])
3081
3081
  return new M(
3082
3082
  // Return NaN if either NaN, or both Infinity or 0.
@@ -3085,20 +3085,20 @@ var divide = /* @__PURE__ */ function() {
3085
3085
  O && O[0] == 0 || !x ? N * 0 : N / 0
3086
3086
  )
3087
3087
  );
3088
- for (l ? (p = 1, u = n.e - o.e) : (l = BASE, p = LOG_BASE, u = mathfloor(n.e / p) - mathfloor(o.e / p)), I = x.length, T = O.length, v = new M(N), b = v.d = [], f = 0; x[f] == (O[f] || 0); f++) ;
3088
+ for (l ? (p = 1, u = n.e - o.e) : (l = BASE, p = LOG_BASE, u = mathfloor(n.e / p) - mathfloor(o.e / p)), I = x.length, D = O.length, v = new M(N), b = v.d = [], f = 0; x[f] == (O[f] || 0); f++) ;
3089
3089
  if (x[f] > (O[f] || 0) && u--, i == null ? (C = i = M.precision, a = M.rounding) : s ? C = i + (n.e - o.e) + 1 : C = i, C < 0)
3090
3090
  b.push(1), m = !0;
3091
3091
  else {
3092
3092
  if (C = C / p + 2 | 0, f = 0, I == 1) {
3093
- for (d = 0, x = x[0], C++; (f < T || d) && C--; f++)
3093
+ for (d = 0, x = x[0], C++; (f < D || d) && C--; f++)
3094
3094
  $ = d * l + (O[f] || 0), b[f] = $ / x | 0, d = $ % x | 0;
3095
- m = d || f < T;
3095
+ m = d || f < D;
3096
3096
  } else {
3097
- for (d = l / (x[0] + 1) | 0, d > 1 && (x = t(x, d, l), O = t(O, d, l), I = x.length, T = O.length), D = I, y = O.slice(0, I), E = y.length; E < I; ) y[E++] = 0;
3097
+ for (d = l / (x[0] + 1) | 0, d > 1 && (x = t(x, d, l), O = t(O, d, l), I = x.length, D = O.length), T = I, y = O.slice(0, I), E = y.length; E < I; ) y[E++] = 0;
3098
3098
  B = x.slice(), B.unshift(0), S = x[0], x[1] >= l / 2 && ++S;
3099
3099
  do
3100
- d = 0, c = e(x, y, I, E), c < 0 ? (w = y[0], I != E && (w = w * l + (y[1] || 0)), d = w / S | 0, d > 1 ? (d >= l && (d = l - 1), g = t(x, d, l), _ = g.length, E = y.length, c = e(g, y, _, E), c == 1 && (d--, r(g, I < _ ? B : x, _, l))) : (d == 0 && (c = d = 1), g = x.slice()), _ = g.length, _ < E && g.unshift(0), r(y, g, E, l), c == -1 && (E = y.length, c = e(x, y, I, E), c < 1 && (d++, r(y, I < E ? B : x, E, l))), E = y.length) : c === 0 && (d++, y = [0]), b[f++] = d, c && y[0] ? y[E++] = O[D] || 0 : (y = [O[D]], E = 1);
3101
- while ((D++ < T || y[0] !== void 0) && C--);
3100
+ d = 0, c = e(x, y, I, E), c < 0 ? (w = y[0], I != E && (w = w * l + (y[1] || 0)), d = w / S | 0, d > 1 ? (d >= l && (d = l - 1), g = t(x, d, l), _ = g.length, E = y.length, c = e(g, y, _, E), c == 1 && (d--, r(g, I < _ ? B : x, _, l))) : (d == 0 && (c = d = 1), g = x.slice()), _ = g.length, _ < E && g.unshift(0), r(y, g, E, l), c == -1 && (E = y.length, c = e(x, y, I, E), c < 1 && (d++, r(y, I < E ? B : x, E, l))), E = y.length) : c === 0 && (d++, y = [0]), b[f++] = d, c && y[0] ? y[E++] = O[T] || 0 : (y = [O[T]], E = 1);
3101
+ while ((T++ < D || y[0] !== void 0) && C--);
3102
3102
  m = y[0] !== void 0;
3103
3103
  }
3104
3104
  b[0] || b.shift();
@@ -7406,8 +7406,8 @@ var dijkstraExports = dijkstra.exports;
7406
7406
  function f(v) {
7407
7407
  const b = u(a.NUMERIC, e.NUMERIC, v), y = u(a.ALPHANUMERIC, e.ALPHANUMERIC, v);
7408
7408
  let E, w;
7409
- return s.isKanjiModeEnabled() ? (E = u(a.BYTE, e.BYTE, v), w = u(a.KANJI, e.KANJI, v)) : (E = u(a.BYTE_KANJI, e.BYTE, v), w = []), b.concat(y, E, w).sort(function($, D) {
7410
- return $.index - D.index;
7409
+ return s.isKanjiModeEnabled() ? (E = u(a.BYTE, e.BYTE, v), w = u(a.KANJI, e.KANJI, v)) : (E = u(a.BYTE_KANJI, e.BYTE, v), w = []), b.concat(y, E, w).sort(function($, T) {
7410
+ return $.index - T.index;
7411
7411
  }).map(function($) {
7412
7412
  return {
7413
7413
  data: $.data,
@@ -7470,16 +7470,16 @@ var dijkstraExports = dijkstra.exports;
7470
7470
  const y = {}, E = { start: {} };
7471
7471
  let w = ["start"];
7472
7472
  for (let C = 0; C < v.length; C++) {
7473
- const $ = v[C], D = [];
7474
- for (let T = 0; T < $.length; T++) {
7475
- const S = $[T], I = "" + C + T;
7476
- D.push(I), y[I] = { node: S, lastCount: 0 }, E[I] = {};
7473
+ const $ = v[C], T = [];
7474
+ for (let D = 0; D < $.length; D++) {
7475
+ const S = $[D], I = "" + C + D;
7476
+ T.push(I), y[I] = { node: S, lastCount: 0 }, E[I] = {};
7477
7477
  for (let B = 0; B < w.length; B++) {
7478
7478
  const M = w[B];
7479
7479
  y[M] && y[M].node.mode === S.mode ? (E[M][I] = d(y[M].lastCount + S.length, S.mode) - d(y[M].lastCount, S.mode), y[M].lastCount += S.length) : (y[M] && (y[M].lastCount = S.length), E[M][I] = d(S.length, S.mode) + 4 + e.getCharCountIndicator(S.mode, b));
7480
7480
  }
7481
7481
  }
7482
- w = D;
7482
+ w = T;
7483
7483
  }
7484
7484
  for (let C = 0; C < w.length; C++)
7485
7485
  E[w[C]].end = 0;
@@ -7507,10 +7507,10 @@ var dijkstraExports = dijkstra.exports;
7507
7507
  return typeof E == "string" ? y.push(_(E, null)) : E.data && y.push(_(E.data, E.mode)), y;
7508
7508
  }, []);
7509
7509
  }, t.fromString = function(b, y) {
7510
- const E = f(b, s.isKanjiModeEnabled()), w = m(E), C = g(w, y), $ = l.find_path(C.map, "start", "end"), D = [];
7511
- for (let T = 1; T < $.length - 1; T++)
7512
- D.push(C.table[$[T]].node);
7513
- return t.fromArray(p(D));
7510
+ const E = f(b, s.isKanjiModeEnabled()), w = m(E), C = g(w, y), $ = l.find_path(C.map, "start", "end"), T = [];
7511
+ for (let D = 1; D < $.length - 1; D++)
7512
+ T.push(C.table[$[D]].node);
7513
+ return t.fromArray(p(T));
7514
7514
  }, t.rawSplit = function(b) {
7515
7515
  return t.fromArray(
7516
7516
  f(b, s.isKanjiModeEnabled())
@@ -7593,8 +7593,8 @@ function createCodewords(t, e, r) {
7593
7593
  let v = 0;
7594
7594
  const b = new Uint8Array(t.buffer);
7595
7595
  for (let $ = 0; $ < a; $++) {
7596
- const D = $ < l ? u : f;
7597
- g[$] = b.slice(m, m + D), _[$] = p.encode(g[$]), m += D, v = Math.max(v, D);
7596
+ const T = $ < l ? u : f;
7597
+ g[$] = b.slice(m, m + T), _[$] = p.encode(g[$]), m += T, v = Math.max(v, T);
7598
7598
  }
7599
7599
  const y = new Uint8Array(n);
7600
7600
  let E = 0, w, C;
@@ -7784,8 +7784,8 @@ browser.toString = renderCanvas.bind(null, function(t, e, r) {
7784
7784
  });
7785
7785
  class CanvasPool {
7786
7786
  constructor() {
7787
- ce(this, "pool", []);
7788
- ce(this, "maxSize", 10);
7787
+ le(this, "pool", []);
7788
+ le(this, "maxSize", 10);
7789
7789
  }
7790
7790
  // 最多缓存 10 个 canvas
7791
7791
  /**
@@ -8121,16 +8121,16 @@ function renderReportByDom(t, e, r, n, o, i) {
8121
8121
  const $ = renderCell(b, C, i);
8122
8122
  if (C.clickSortField) {
8123
8123
  $.classList.add("click-sort-cell"), $.setAttribute("data-click-sort-field", C.clickSortField), $.setAttribute("data-click-sort-numeric", C.clickSortNumeric ? "1" : "0");
8124
- const D = document.createElement("span");
8125
- D.className = "click-sort-arrow", (_ = $.querySelector(":scope > div")) == null || _.appendChild(D);
8124
+ const T = document.createElement("span");
8125
+ T.className = "click-sort-arrow", (_ = $.querySelector(":scope > div")) == null || _.appendChild(T);
8126
8126
  }
8127
8127
  if (w.isFixed === !0 && ($.classList.add("fixed-td"), $.style.position = "sticky", $.style.left = `${u - 1}px`), u += (w.size ?? 80) - 1, $.setAttribute("data-cell-data", `${v}-${E}`), !(C.rowSpan === 0 || C.colSpan === 0)) {
8128
8128
  if (C.style && C.style.border === !1 && $.classList.add("no-border"), y.appendChild($), C.rowSpan > 1) {
8129
- const D = d.length;
8129
+ const T = d.length;
8130
8130
  d.push($), p.push(C.rowSpan);
8131
- for (let T = 1; T < C.rowSpan; T++) {
8132
- const S = g + T;
8133
- m.has(S) || m.set(S, []), m.get(S).push(D);
8131
+ for (let D = 1; D < C.rowSpan; D++) {
8132
+ const S = g + D;
8133
+ m.has(S) || m.set(S, []), m.get(S).push(T);
8134
8134
  }
8135
8135
  }
8136
8136
  }
@@ -8754,7 +8754,7 @@ function loopGroupCols(t, e, r, n) {
8754
8754
  const E = getSeparatorKey("key", y);
8755
8755
  Array.from(l[E]).forEach((C) => {
8756
8756
  const $ = getSeparatorKey("child", y, C);
8757
- let T = (l[$] || []).map((S) => {
8757
+ let D = (l[$] || []).map((S) => {
8758
8758
  if (b) {
8759
8759
  let I = S[b];
8760
8760
  I || (I = "-");
@@ -8763,7 +8763,7 @@ function loopGroupCols(t, e, r, n) {
8763
8763
  return l[M] ? l[M].push(S) : l[M] = [S], l[O] ? l[O].push(S) : l[O] = [S], l[_].has(N) || (B = !0), l[_].add(N), l[N] = l[C].concat([I]), B ? I : null;
8764
8764
  }
8765
8765
  }).filter((S) => !!S);
8766
- l[$] = T;
8766
+ l[$] = D;
8767
8767
  });
8768
8768
  }
8769
8769
  });
@@ -8804,17 +8804,17 @@ function loopGroupCols(t, e, r, n) {
8804
8804
  if (s.includes(m)) {
8805
8805
  const y = getSeparatorKey("key", g.row);
8806
8806
  Array.from(l[y]).forEach((w, C) => {
8807
- const $ = p && m === f ? 1 : getGroupMinChildrenLength(l, w, f, p, s), D = l[w], T = D[D.length - 1], S = getSeparatorKey("data", w), I = l[S];
8807
+ const $ = p && m === f ? 1 : getGroupMinChildrenLength(l, w, f, p, s), T = l[w], D = T[T.length - 1], S = getSeparatorKey("data", w), I = l[S];
8808
8808
  let B = {
8809
8809
  ...g,
8810
- text: T,
8810
+ text: D,
8811
8811
  colSpan: $,
8812
8812
  colData: I
8813
8813
  };
8814
8814
  if (b.push(B), $ > 1) {
8815
8815
  let M = {
8816
8816
  ...g,
8817
- text: T,
8817
+ text: D,
8818
8818
  type: "",
8819
8819
  colSpan: 0,
8820
8820
  rowSpan: 0
@@ -8844,34 +8844,34 @@ function loopGroupCols(t, e, r, n) {
8844
8844
  const y = getSeparatorKey("key", f);
8845
8845
  let E = l[y] ? Array.from(l[y]) : [], w = g.data.replace("col:", "").toUpperCase();
8846
8846
  if (g.isRowColCombine) {
8847
- let C = s.map((D) => a[D].data.replace("col:", "").toUpperCase()), $ = [];
8848
- E.forEach((D, T) => {
8847
+ let C = s.map((T) => a[T].data.replace("col:", "").toUpperCase()), $ = [];
8848
+ E.forEach((T, D) => {
8849
8849
  let S = {
8850
8850
  ...g,
8851
8851
  combineKeys: C,
8852
- combineValues: l[D],
8853
- colGroupIndex: T
8852
+ combineValues: l[T],
8853
+ colGroupIndex: D
8854
8854
  };
8855
8855
  $.push(S);
8856
8856
  }), v.splice(g.col, 1, ...$);
8857
8857
  } else if (E.length)
8858
8858
  E.forEach((C, $) => {
8859
- let D = [];
8860
- const T = getSeparatorKey("data", C);
8861
- l[T].forEach((I) => {
8859
+ let T = [];
8860
+ const D = getSeparatorKey("data", C);
8861
+ l[D].forEach((I) => {
8862
8862
  let B = {
8863
8863
  ...g
8864
8864
  };
8865
- delete B.combineKeys, delete B.combineValues, delete B.isRowColCombine, I[w] !== void 0 ? (B.rawData = I[w], B.colData = I) : B.rawData = "", D.push(B);
8866
- }), v.splice(g.col, 1, ...D);
8865
+ delete B.combineKeys, delete B.combineValues, delete B.isRowColCombine, I[w] !== void 0 ? (B.rawData = I[w], B.colData = I) : B.rawData = "", T.push(B);
8866
+ }), v.splice(g.col, 1, ...T);
8867
8867
  });
8868
8868
  else {
8869
8869
  let C = [];
8870
8870
  i.forEach(($) => {
8871
- let D = {
8871
+ let T = {
8872
8872
  ...g
8873
8873
  };
8874
- delete D.combineKeys, delete D.combineValues, delete D.isRowColCombine, $[w] !== void 0 ? (D.rawData = $[w], D.colData = $) : D.rawData = "", C.push(D);
8874
+ delete T.combineKeys, delete T.combineValues, delete T.isRowColCombine, $[w] !== void 0 ? (T.rawData = $[w], T.colData = $) : T.rawData = "", C.push(T);
8875
8875
  }), v.splice(g.col, 1, ...C);
8876
8876
  }
8877
8877
  } else if (g.type === CellType.FUN && p && g.colSpan !== 0) {
@@ -8889,8 +8889,8 @@ function loopGroupCols(t, e, r, n) {
8889
8889
  colData: i[0]
8890
8890
  };
8891
8891
  if (g.colSpan === 0 && g.mergeTarget && g.mergeTarget.length === 2 && g.row === g.mergeTarget[0]) {
8892
- let [C, $] = g.mergeTarget, D = r.reduce((T, S) => T.concat(S), []).filter((T) => T.row === C && T.col === $)[0];
8893
- D && (D.colSpan += u - 1);
8892
+ let [C, $] = g.mergeTarget, T = r.reduce((D, S) => D.concat(S), []).filter((D) => D.row === C && D.col === $)[0];
8893
+ T && (T.colSpan += u - 1);
8894
8894
  } else (!Array.isArray(g.mergeTarget) || g.mergeTarget.length !== 2) && (y.colSpan = u);
8895
8895
  const E = {
8896
8896
  ...g,
@@ -9072,19 +9072,19 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9072
9072
  const y = getSeparatorKey("key", _.col);
9073
9073
  let E = Array.from(n[y]), w = d;
9074
9074
  const C = e.indexOf(_.col);
9075
- E.forEach(($, D) => {
9076
- let T;
9077
- v === s && (i || a) ? T = 1 : T = getGroupMinChildrenLength(n, $, s, a, i);
9075
+ E.forEach(($, T) => {
9076
+ let D;
9077
+ v === s && (i || a) ? D = 1 : D = getGroupMinChildrenLength(n, $, s, a, i);
9078
9078
  const S = n[$], I = S[S.length - 1], B = getSeparatorKey("data", $);
9079
9079
  n[B];
9080
9080
  let M = {
9081
9081
  ..._,
9082
9082
  text: "",
9083
- index: D,
9084
- rowSpan: T,
9083
+ index: T,
9084
+ rowSpan: D,
9085
9085
  rawData: formatGroupText(I),
9086
9086
  groupLevel: C,
9087
- groupIndices: D,
9087
+ groupIndices: T,
9088
9088
  groupChildIndex: 0,
9089
9089
  computedType: ComputedType.loopRow
9090
9090
  };
@@ -9096,16 +9096,16 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9096
9096
  colSpan: 0,
9097
9097
  rowSpan: 0,
9098
9098
  groupLevel: C,
9099
- groupIndices: D,
9099
+ groupIndices: T,
9100
9100
  computedType: ComputedType.loopRow,
9101
9101
  mergeTarget: [M.row, M.col]
9102
9102
  };
9103
- for (let O = 0; O < T - 1; O++) {
9103
+ for (let O = 0; O < D - 1; O++) {
9104
9104
  let x = cloneDeep(N);
9105
9105
  x.index = w + O + 1, x.groupChildIndex = O + 1, b.push(x);
9106
9106
  }
9107
- if (g[v] = !0, w += T, M.loopGroupRowIndex !== void 0 && M.loopGroupRowIndex !== "" && !isNaN(M.loopGroupRowIndex)) {
9108
- let O = cloneDeep(l[M.loopGroupRowIndex]), x = cloneDeep(c[M.loopGroupRowIndex]).map((R) => (R.type === CellType.FUN && R.fun && (R.groupIndices = D, R.groupLevel = C, R.computedType = ComputedType.loopGroup), R)), A = 0;
9107
+ if (g[v] = !0, w += D, M.loopGroupRowIndex !== void 0 && M.loopGroupRowIndex !== "" && !isNaN(M.loopGroupRowIndex)) {
9108
+ let O = cloneDeep(l[M.loopGroupRowIndex]), x = cloneDeep(c[M.loopGroupRowIndex]).map((R) => (R.type === CellType.FUN && R.fun && (R.groupIndices = T, R.groupLevel = C, R.computedType = ComputedType.loopGroup), R)), A = 0;
9109
9109
  if (C >= 0) {
9110
9110
  let R = C;
9111
9111
  for (; R >= 0; ) {
@@ -9113,7 +9113,7 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9113
9113
  j && j.groupIndices !== void 0 && !isNaN(j.groupIndices) && (A = A + j.groupIndices), R--;
9114
9114
  }
9115
9115
  }
9116
- f.set(`${D}:${C}:${w}`, {
9116
+ f.set(`${T}:${C}:${w}`, {
9117
9117
  row: O,
9118
9118
  cells: x,
9119
9119
  removeCount: A
@@ -9126,15 +9126,15 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9126
9126
  const E = getSeparatorKey("key", s);
9127
9127
  let w = n[E] ? Array.from(n[E]) : [];
9128
9128
  w.length ? w.forEach((C, $) => {
9129
- const D = getSeparatorKey("child", s, C);
9130
- let T = n[D], S = _.combineKeys ? _.combineKeys.map((M, N) => {
9129
+ const T = getSeparatorKey("child", s, C);
9130
+ let D = n[T], S = _.combineKeys ? _.combineKeys.map((M, N) => {
9131
9131
  const O = _.combineValues ? _.combineValues[N] : void 0;
9132
9132
  return {
9133
9133
  key: M,
9134
9134
  val: O
9135
9135
  };
9136
9136
  }) : [];
9137
- const I = T.filter((M) => S.every((N) => M[N.key] === N.val));
9137
+ const I = D.filter((M) => S.every((N) => M[N.key] === N.val));
9138
9138
  let B = {
9139
9139
  ..._,
9140
9140
  index: $
@@ -9146,7 +9146,7 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9146
9146
  B.rawData = "", B.rowData = {};
9147
9147
  b.push(B);
9148
9148
  }) : r.forEach((C, $) => {
9149
- let T = (_.combineKeys ? _.combineKeys.map((I, B) => {
9149
+ let D = (_.combineKeys ? _.combineKeys.map((I, B) => {
9150
9150
  const M = _.combineValues ? _.combineValues[B] : void 0;
9151
9151
  return {
9152
9152
  key: I,
@@ -9156,7 +9156,7 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9156
9156
  ..._,
9157
9157
  index: $
9158
9158
  };
9159
- delete S.combineKeys, delete S.combineValues, delete S.isRowColCombine, T ? (S.rawData = y ? C[y] : "", S.rowData = C) : (S.rawData = "", S.rowData = C), S.type === CellType.FUN && S.fun && (S.computedType = ComputedType.loopRow), b.push(S);
9159
+ delete S.combineKeys, delete S.combineValues, delete S.isRowColCombine, D ? (S.rawData = y ? C[y] : "", S.rowData = C) : (S.rawData = "", S.rowData = C), S.type === CellType.FUN && S.fun && (S.computedType = ComputedType.loopRow), b.push(S);
9160
9160
  });
9161
9161
  } else if (e.length === 0)
9162
9162
  r.forEach((E, w) => {
@@ -9170,28 +9170,28 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9170
9170
  const E = getSeparatorKey("key", s);
9171
9171
  let w = n[E] ? Array.from(n[E]) : [];
9172
9172
  if (w.length === 0) {
9173
- r.forEach(($, D) => {
9174
- let T = {
9175
- index: D,
9173
+ r.forEach(($, T) => {
9174
+ let D = {
9175
+ index: T,
9176
9176
  ..._
9177
9177
  };
9178
- delete T.combineKeys, delete T.combineValues, delete T.isRowColCombine, y && $[y] !== void 0 ? T.rawData = $[y] : T.rawData = "", T.rowData = $, T.computedType = ComputedType.loopRow, b.push(T);
9178
+ delete D.combineKeys, delete D.combineValues, delete D.isRowColCombine, y && $[y] !== void 0 ? D.rawData = $[y] : D.rawData = "", D.rowData = $, D.computedType = ComputedType.loopRow, b.push(D);
9179
9179
  });
9180
9180
  return;
9181
9181
  }
9182
9182
  const C = [];
9183
- if (w.forEach(($, D) => {
9183
+ if (w.forEach(($, T) => {
9184
9184
  if (a) {
9185
- const T = getSeparatorKey("child", s, $);
9186
- let S = n[T] || [];
9185
+ const D = getSeparatorKey("child", s, $);
9186
+ let S = n[D] || [];
9187
9187
  C.push(S);
9188
9188
  } else {
9189
- const T = getSeparatorKey("child", s, $);
9190
- let S = n[T] || [];
9189
+ const D = getSeparatorKey("child", s, $);
9190
+ let S = n[D] || [];
9191
9191
  const I = i ? S.slice(0, 1) : S;
9192
9192
  S.length > 0 ? I.forEach((B) => {
9193
9193
  let M = {
9194
- index: D,
9194
+ index: T,
9195
9195
  ..._,
9196
9196
  // 交叉表:函数格按当前行组聚合裂变列实例(供 jsep 按 groupIndices 过滤取值)
9197
9197
  isCrossAggregate: i
@@ -9204,20 +9204,20 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9204
9204
  });
9205
9205
  }
9206
9206
  }), a) {
9207
- const $ = Math.max(...C.map((T) => T.length));
9207
+ const $ = Math.max(...C.map((D) => D.length));
9208
9208
  p || (p = {
9209
9209
  count: $,
9210
9210
  row: _.row,
9211
9211
  index: v
9212
9212
  });
9213
- const D = {
9213
+ const T = {
9214
9214
  colIndex: v,
9215
9215
  maxCount: $,
9216
9216
  groupColumnLoopItems: C,
9217
9217
  dataKey: _.data ? _.data.replace("row:", "").toUpperCase() : void 0,
9218
9218
  cell: _
9219
9219
  };
9220
- m.push(D);
9220
+ m.push(T);
9221
9221
  }
9222
9222
  }
9223
9223
  } else if (_.isMergeInLoop !== !1) {
@@ -9227,8 +9227,8 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9227
9227
  index: 0
9228
9228
  };
9229
9229
  if (_.rowSpan === 0 && _.mergeTarget && _.mergeTarget.length === 2) {
9230
- let [$, D] = _.mergeTarget, T = c.reduce((S, I) => S.concat(I), []).filter((S) => S.row === $ && S.col === D)[0];
9231
- T && (T.rowSpan += o - 1);
9230
+ let [$, T] = _.mergeTarget, D = c.reduce((S, I) => S.concat(I), []).filter((S) => S.row === $ && S.col === T)[0];
9231
+ D && (D.rowSpan += o - 1);
9232
9232
  } else
9233
9233
  E.rowSpan += o - 1;
9234
9234
  const w = {
@@ -9243,14 +9243,14 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9243
9243
  } else if ((i || a) && e.length > 0) {
9244
9244
  const E = getSeparatorKey("key", s);
9245
9245
  (n[E] ? Array.from(n[E]) : []).forEach((C, $) => {
9246
- const D = getSeparatorKey("data", C), T = n[D];
9246
+ const T = getSeparatorKey("data", C), D = n[T];
9247
9247
  b.push({
9248
9248
  index: $,
9249
9249
  ..._,
9250
9250
  computedType: ComputedType.loopRow,
9251
9251
  rowSpan: 1,
9252
9252
  colSpan: 1,
9253
- rowData: T ? T[0] : void 0
9253
+ rowData: D ? D[0] : void 0
9254
9254
  });
9255
9255
  });
9256
9256
  } else if (e.length > 0)
@@ -9277,13 +9277,13 @@ function generateRowStructure(t, e, r, n, o, i, a, s, l, c) {
9277
9277
  }), a && m.length > 0 && m.forEach(({ colIndex: _, maxCount: v, cell: b, groupColumnLoopItems: y, dataKey: E }) => {
9278
9278
  for (let w = 0; w < v; w++) {
9279
9279
  const C = [];
9280
- y.forEach(($, D) => {
9281
- const T = $[w];
9280
+ y.forEach(($, T) => {
9281
+ const D = $[w];
9282
9282
  let S = {
9283
- index: D,
9283
+ index: T,
9284
9284
  ...b
9285
9285
  };
9286
- delete S.combineKeys, delete S.combineValues, delete S.isRowColCombine, E && T && T[E] !== void 0 ? (S.rawData = T[E], S.rowData = T) : (S.rawData = "", S.rowData = T || {}), S.computedType = ComputedType.loopRow, C.push(S);
9286
+ delete S.combineKeys, delete S.combineValues, delete S.isRowColCombine, E && D && D[E] !== void 0 ? (S.rawData = D[E], S.rowData = D) : (S.rawData = "", S.rowData = D || {}), S.computedType = ComputedType.loopRow, C.push(S);
9287
9287
  }), w === 0 ? u[_] = C : u.splice(_ + w, 0, C);
9288
9288
  }
9289
9289
  }), {
@@ -9308,18 +9308,18 @@ function loopGroupRows(t, e, r, n, o) {
9308
9308
  let C = transpose(y);
9309
9309
  if (C.forEach(() => {
9310
9310
  b.push(cloneDeep(v));
9311
- }), E.forEach(({ row: $, cells: D, removeCount: T }, S) => {
9311
+ }), E.forEach(({ row: $, cells: T, removeCount: D }, S) => {
9312
9312
  let [I, B, M] = S.split(":").map((A) => parseInt(A));
9313
9313
  $.isLoopGroupComputed = !1;
9314
- const N = M + T;
9314
+ const N = M + D;
9315
9315
  let O = C[N];
9316
- D = D.map((A, R) => {
9316
+ T = T.map((A, R) => {
9317
9317
  let L = O[R];
9318
9318
  if (R < B) {
9319
9319
  let G = [];
9320
- C.forEach((J, Q) => {
9321
- Q <= N && J.forEach((ie, ae) => {
9322
- ae === R && ie.rowSpan >= 1 && ["", "field"].includes(ie.type) && G.push(Q);
9320
+ C.forEach((Z, ee) => {
9321
+ ee <= N && Z.forEach((oe, ie) => {
9322
+ ie === R && oe.rowSpan >= 1 && ["", "field"].includes(oe.type) && G.push(ee);
9323
9323
  });
9324
9324
  });
9325
9325
  let j = Math.max(...G), X = C[j][R];
@@ -9331,33 +9331,33 @@ function loopGroupRows(t, e, r, n, o) {
9331
9331
  return A.type === CellType.FUN && A.fun && (A.computedType = ComputedType.loopGroup), A.isGroup = L ? !!L.isGroup : !1, A.groupIndices = L ? L.groupIndices : !1, A.linkedMergeCell = L ? !!L.linkedMergeCell : !1, A.linkedColIndex = L ? L.linkedColIndex : { rowSpan: 1, colSpan: 1 }, A.isLoopGroupComputedCell = !0, A;
9332
9332
  });
9333
9333
  const x = N + 1;
9334
- b.splice(x, 0, $), C.splice(x, 0, D);
9335
- }), C = mergeSameCells(C), C.forEach(($, D) => {
9336
- let T = [];
9334
+ b.splice(x, 0, $), C.splice(x, 0, T);
9335
+ }), C = mergeSameCells(C), C.forEach(($, T) => {
9336
+ let D = [];
9337
9337
  $.forEach((S) => {
9338
- S && S.groupIndices !== void 0 && !isNaN(S.groupIndices) && T.push(S.groupIndices);
9339
- }), T.length > 0 && $.forEach((S) => {
9340
- S && (S.groupIndices = T);
9338
+ S && S.groupIndices !== void 0 && !isNaN(S.groupIndices) && D.push(S.groupIndices);
9339
+ }), D.length > 0 && $.forEach((S) => {
9340
+ S && (S.groupIndices = D);
9341
9341
  });
9342
9342
  }), t.splice(c, 1, ...b), r.splice(c, 1, ...C), w) {
9343
- const { index: $, count: D } = w, T = n[$], S = [];
9344
- for (let B = 0; B < D; B++)
9345
- S.push(cloneDeep(T));
9343
+ const { index: $, count: T } = w, D = n[$], S = [];
9344
+ for (let B = 0; B < T; B++)
9345
+ S.push(cloneDeep(D));
9346
9346
  n.splice($, 1, ...S);
9347
9347
  for (let B = 0; B < c; B++) {
9348
9348
  const M = r[B], N = [];
9349
- for (let O = 0; O < D; O++) {
9349
+ for (let O = 0; O < T; O++) {
9350
9350
  const x = cloneDeep(M[$]);
9351
- O === 0 ? x.colSpan = D : (x.colSpan = 0, x.mergeTarget = [x.row, $]), N.push(x);
9351
+ O === 0 ? x.colSpan = T : (x.colSpan = 0, x.mergeTarget = [x.row, $]), N.push(x);
9352
9352
  }
9353
9353
  M.splice($, M.length - $, ...N);
9354
9354
  }
9355
9355
  const I = c + C.length;
9356
9356
  for (let B = I; B < r.length; B++) {
9357
9357
  const M = r[B], N = [];
9358
- for (let O = 0; O < D; O++) {
9358
+ for (let O = 0; O < T; O++) {
9359
9359
  const x = cloneDeep(M[$]);
9360
- O === 0 ? x.colSpan = D : (x.colSpan = 0, x.mergeTarget = [x.row, $]), N.push(x);
9360
+ O === 0 ? x.colSpan = T : (x.colSpan = 0, x.mergeTarget = [x.row, $]), N.push(x);
9361
9361
  }
9362
9362
  M.splice($, M.length - $, ...N);
9363
9363
  }
@@ -9689,36 +9689,36 @@ const exportExcel = async (t, e, r = "gray", n = 0) => {
9689
9689
  const C = a.getRow(l + v + 1);
9690
9690
  b && b.size && !isNaN(b.size) ? b.size > 0 ? C.height = b.size < 25 ? 25 : b.size : C.hidden = !0 : C.height = 25;
9691
9691
  for (let $ = 0; $ < E.length; $++) {
9692
- const D = E[$], T = C.getCell($ + 1);
9693
- let { style: S, col: I, row: B, colSpan: M, rowSpan: N, format: O, formatType: x } = D;
9692
+ const T = E[$], D = C.getCell($ + 1);
9693
+ let { style: S, col: I, row: B, colSpan: M, rowSpan: N, format: O, formatType: x } = T;
9694
9694
  const A = {};
9695
9695
  if (S && S.color && (A.color = {
9696
9696
  argb: "FF" + ((g = S.color) == null ? void 0 : g.replace("#", ""))
9697
- }), S && S.fontSize && (A.size = S.fontSize), S && S.fontFamily && (A.name = S.fontFamily), S && S.fontWeight && S.fontWeight === "bold" && (A.bold = !0), T.font = A, S && S.border) {
9697
+ }), S && S.fontSize && (A.size = S.fontSize), S && S.fontFamily && (A.name = S.fontFamily), S && S.fontWeight && S.fontWeight === "bold" && (A.bold = !0), D.font = A, S && S.border) {
9698
9698
  const j = normalizeBorder(S.border);
9699
9699
  if (j) {
9700
- const X = themeColors[r] || "#333333", J = (Q) => {
9701
- if (!(!Q || !Q.style || Q.style === "none"))
9700
+ const X = themeColors[r] || "#333333", Z = (ee) => {
9701
+ if (!(!ee || !ee.style || ee.style === "none"))
9702
9702
  return {
9703
- style: Q.style,
9704
- color: { argb: "FF" + (Q.color || X).replace("#", "") }
9703
+ style: ee.style,
9704
+ color: { argb: "FF" + (ee.color || X).replace("#", "") }
9705
9705
  };
9706
9706
  };
9707
- T.border = {
9708
- top: J(j.top),
9709
- left: J(j.left),
9710
- bottom: J(j.bottom),
9711
- right: J(j.right)
9707
+ D.border = {
9708
+ top: Z(j.top),
9709
+ left: Z(j.left),
9710
+ bottom: Z(j.bottom),
9711
+ right: Z(j.right)
9712
9712
  };
9713
9713
  }
9714
- } else (!S || S.border !== !1) && (T.border = {
9714
+ } else (!S || S.border !== !1) && (D.border = {
9715
9715
  top: { style: "thin", color: { argb: "FF" + themeColors[r].replace("#", "") } },
9716
9716
  left: { style: "thin", color: { argb: "FF" + themeColors[r].replace("#", "") } },
9717
9717
  bottom: { style: "thin", color: { argb: "FF" + themeColors[r].replace("#", "") } },
9718
9718
  right: { style: "thin", color: { argb: "FF" + themeColors[r].replace("#", "") } }
9719
9719
  });
9720
9720
  if (S && S.backgroundColor)
9721
- T.fill = {
9721
+ D.fill = {
9722
9722
  type: "pattern",
9723
9723
  pattern: "solid",
9724
9724
  fgColor: {
@@ -9727,7 +9727,7 @@ const exportExcel = async (t, e, r = "gray", n = 0) => {
9727
9727
  };
9728
9728
  else {
9729
9729
  const j = `${r}${v % 2}`;
9730
- T.fill = {
9730
+ D.fill = {
9731
9731
  type: "pattern",
9732
9732
  pattern: "solid",
9733
9733
  fgColor: {
@@ -9740,16 +9740,16 @@ const exportExcel = async (t, e, r = "gray", n = 0) => {
9740
9740
  horizontal: "center",
9741
9741
  wrapText: !0
9742
9742
  };
9743
- S && S.textAlign && (R.horizontal = S.textAlign), S && S.verticalAlign && (R.vertical = S.verticalAlign === "center" ? "middle" : S.verticalAlign), T.alignment = R;
9743
+ S && S.textAlign && (R.horizontal = S.textAlign), S && S.verticalAlign && (R.vertical = S.verticalAlign === "center" ? "middle" : S.verticalAlign), D.alignment = R;
9744
9744
  const L = N && !isNaN(N) && N > 1, G = M && !isNaN(M) && M > 1;
9745
9745
  if (L || G) {
9746
9746
  const j = l + v + 1, X = $ + 1;
9747
- let J = j, Q = X;
9748
- j && (J += N - 1), X && (Q += M - 1), s.push([j, X, J, Q]);
9747
+ let Z = j, ee = X;
9748
+ j && (Z += N - 1), X && (ee += M - 1), s.push([j, X, Z, ee]);
9749
9749
  }
9750
9750
  if (O && O === "number") {
9751
9751
  let j = "", X = "";
9752
- x && (x.numberUseGrouping && (j = x.numberUseGrouping), x.numberDecimal && (X = x.numberDecimal)), T.numFmt = generateNumFmt(j, X), T.value = Number(D.text);
9752
+ x && (x.numberUseGrouping && (j = x.numberUseGrouping), x.numberDecimal && (X = x.numberDecimal)), D.numFmt = generateNumFmt(j, X), D.value = Number(T.text);
9753
9753
  }
9754
9754
  }
9755
9755
  }
@@ -9884,26 +9884,26 @@ const DEFAULT_PRINT_HEADER = {
9884
9884
  pageIndex: 1,
9885
9885
  total: 0
9886
9886
  }), w = ref([]), C = ref([]), $ = (U) => {
9887
- let F = 0, V = U;
9887
+ let F = 0, H = U;
9888
9888
  if (U.includes("!")) {
9889
- let Z = U.split("!");
9890
- F = parseInt(Z[0]), V = Z[1];
9889
+ let J = U.split("!");
9890
+ F = parseInt(J[0]), H = J[1];
9891
9891
  }
9892
- let H = V.match(/[A-Z]+/)[0], z = V.match(/\d+/)[0] - 1, W = columnToNumber(H), te = `${F}:${z}:${W}`;
9892
+ let q = H.match(/[A-Z]+/)[0], Y = H.match(/\d+/)[0] - 1, W = columnToNumber(q), te = `${F}:${Y}:${W}`;
9893
9893
  C.value.includes(te) || C.value.push(te);
9894
9894
  };
9895
- function D(U) {
9895
+ function T(U) {
9896
9896
  if (S && n.config.data.autoQuery === !1)
9897
9897
  return S = !1, !1;
9898
9898
  w.value = U, E.pageIndex = 1, X();
9899
9899
  }
9900
- let T = !1, S = !0;
9900
+ let D = !1, S = !0;
9901
9901
  watch(
9902
9902
  () => [E.pageSize, E.pageIndex],
9903
9903
  (U, F) => {
9904
9904
  if (U && F) {
9905
- let [V, H] = U, [z, W] = U;
9906
- V !== z && (E.pageIndex = 1), T && X();
9905
+ let [H, q] = U, [Y, W] = U;
9906
+ H !== Y && (E.pageIndex = 1), D && X();
9907
9907
  }
9908
9908
  },
9909
9909
  {
@@ -9937,50 +9937,50 @@ const DEFAULT_PRINT_HEADER = {
9937
9937
  if (n.config && c.value && n.config.data.source) {
9938
9938
  let U = [];
9939
9939
  try {
9940
- U = await ue(!0);
9941
- } catch (z) {
9940
+ U = await ce(!0);
9941
+ } catch (Y) {
9942
9942
  o("report-error", {
9943
9943
  index: n.index,
9944
- message: getErrorMessage(z)
9944
+ message: getErrorMessage(Y)
9945
9945
  });
9946
9946
  return;
9947
9947
  }
9948
- let F = ae(U);
9948
+ let F = ie(U);
9949
9949
  if (n.config.data.processData && (F = await getProcessData(
9950
9950
  n.config.data.processData,
9951
9951
  F,
9952
9952
  w.value,
9953
9953
  E
9954
9954
  )), u && u.order !== "none") {
9955
- const z = F[u.key];
9956
- Array.isArray(z) && (F[u.key] = sortRowsByField(z, u.field, u.order, u.numeric));
9955
+ const Y = F[u.key];
9956
+ Array.isArray(Y) && (F[u.key] = sortRowsByField(Y, u.field, u.order, u.numeric));
9957
9957
  }
9958
- let V = [];
9959
- const H = [];
9960
- for (let z = 0; z < n.config.tableConfig.length; z++) {
9961
- const W = n.config.tableConfig[z];
9962
- let { rowConfig: te, colConfig: Z, config: ne } = cloneDeep(W), se = getLoopItem(Z, F, "col", ne), k = getLoopItem(te, F, "row", ne);
9963
- se.length && loopGroupCols(Z, se, ne, F), k.length && loopGroupRows(te, k, ne, Z, F);
9964
- const Y = transformArrayToObject(F, n.config.data.source);
9965
- computeCell(ne, Y, void 0, z), V.push({
9966
- config: ne,
9958
+ let H = [];
9959
+ const q = [];
9960
+ for (let Y = 0; Y < n.config.tableConfig.length; Y++) {
9961
+ const W = n.config.tableConfig[Y];
9962
+ let { rowConfig: te, colConfig: J, config: k } = cloneDeep(W), V = getLoopItem(J, F, "col", k), z = getLoopItem(te, F, "row", k);
9963
+ V.length && loopGroupCols(J, V, k, F), z.length && loopGroupRows(te, z, k, J, F);
9964
+ const Q = transformArrayToObject(F, n.config.data.source);
9965
+ computeCell(k, Q, void 0, Y), H.push({
9966
+ config: k,
9967
9967
  rowConfig: te,
9968
- colConfig: Z
9969
- }), H.push({ config: ne });
9968
+ colConfig: J
9969
+ }), q.push({ config: k });
9970
9970
  }
9971
- if (await preGenerateBarcodes(H), V && V.length) {
9972
- let z = await exportReport(
9973
- V,
9971
+ if (await preGenerateBarcodes(q), H && H.length) {
9972
+ let Y = await exportReport(
9973
+ H,
9974
9974
  n.name,
9975
9975
  "excel",
9976
9976
  n.config.theme,
9977
9977
  n.config.subReprotIndex
9978
9978
  );
9979
- if (z === null) {
9979
+ if (Y === null) {
9980
9980
  await ElMessageBox.alert("表格导出失败");
9981
9981
  return;
9982
9982
  }
9983
- n.config.exportMethod === "send" && window.opener ? sendReport(z) : downloadReport(z, n.name, "excel");
9983
+ n.config.exportMethod === "send" && window.opener ? sendReport(Y) : downloadReport(Y, n.name, "excel");
9984
9984
  } else
9985
9985
  ElMessage.warning("当前报表没有可导出的数据");
9986
9986
  } else
@@ -9988,28 +9988,28 @@ const DEFAULT_PRINT_HEADER = {
9988
9988
  }
9989
9989
  const x = ref(!1), A = ref(!1);
9990
9990
  async function R(U, F) {
9991
- let V = !1, { rowConfig: H, colConfig: z, config: W } = cloneDeep(U), te = getLoopItem(z, F, "col", W), Z = getLoopItem(H, F, "row", W);
9992
- te.length && (V = !0, loopGroupCols(z, te, W, F)), Z.length && (V = !0, loopGroupRows(H, Z, W, z, F));
9993
- const ne = transformArrayToObject(F, n.config.data.source);
9994
- return computeCell(W, ne, C.value), await preGenerateBarcodes([{ config: W }]), {
9995
- reportConfig: { config: W, rowConfig: H, colConfig: z },
9996
- hasLoop: V
9991
+ let H = !1, { rowConfig: q, colConfig: Y, config: W } = cloneDeep(U), te = getLoopItem(Y, F, "col", W), J = getLoopItem(q, F, "row", W);
9992
+ te.length && (H = !0, loopGroupCols(Y, te, W, F)), J.length && (H = !0, loopGroupRows(q, J, W, Y, F));
9993
+ const k = transformArrayToObject(F, n.config.data.source);
9994
+ return computeCell(W, k, C.value), await preGenerateBarcodes([{ config: W }]), {
9995
+ reportConfig: { config: W, rowConfig: q, colConfig: Y },
9996
+ hasLoop: H
9997
9997
  };
9998
9998
  }
9999
9999
  async function L(U, F) {
10000
- const V = U[F];
10001
- if (!(!Array.isArray(V) || V.length === 0)) {
10000
+ const H = U[F];
10001
+ if (!(!Array.isArray(H) || H.length === 0)) {
10002
10002
  m.value = [], l.value.innerHTML = "";
10003
- for (const H of V) {
10004
- const z = { ...U, ...H, [F]: [H] }, W = [];
10003
+ for (const q of H) {
10004
+ const Y = { ...U, ...q, [F]: [q] }, W = [];
10005
10005
  for (const te of n.config.tableConfig) {
10006
- const { reportConfig: Z, hasLoop: ne } = await R(te, z);
10007
- W.push(Z), renderReportByDom(
10008
- Z.rowConfig,
10009
- Z.colConfig,
10010
- Z.config,
10006
+ const { reportConfig: J, hasLoop: k } = await R(te, Y);
10007
+ W.push(J), renderReportByDom(
10008
+ J.rowConfig,
10009
+ J.colConfig,
10010
+ J.config,
10011
10011
  l,
10012
- ne,
10012
+ k,
10013
10013
  _.value.border
10014
10014
  );
10015
10015
  }
@@ -10022,84 +10022,84 @@ const DEFAULT_PRINT_HEADER = {
10022
10022
  if (console.time("renderReport"), p.value = [], A.value = !!n.config.tableConfig, A.value) {
10023
10023
  l.value.innerHTML = "";
10024
10024
  const F = [];
10025
- for (let V = 0; V < n.config.tableConfig.length; V++) {
10026
- const H = n.config.tableConfig[V];
10027
- let z = !1, { rowConfig: W, colConfig: te, config: Z } = cloneDeep(H), ne = getLoopItem(te, U, "col", Z), se = getLoopItem(W, U, "row", Z);
10028
- ne.length && (z = !0, loopGroupCols(te, ne, Z, U)), se.length && (z = !0, loopGroupRows(W, se, Z, te, U));
10029
- const k = transformArrayToObject(U, n.config.data.source);
10030
- computeCell(Z, k, C.value, V), F.push({ config: Z, rowConfig: W, colConfig: te, hasLoop: z }), p.value.push({
10031
- config: Z,
10025
+ for (let H = 0; H < n.config.tableConfig.length; H++) {
10026
+ const q = n.config.tableConfig[H];
10027
+ let Y = !1, { rowConfig: W, colConfig: te, config: J } = cloneDeep(q), k = getLoopItem(te, U, "col", J), V = getLoopItem(W, U, "row", J);
10028
+ k.length && (Y = !0, loopGroupCols(te, k, J, U)), V.length && (Y = !0, loopGroupRows(W, V, J, te, U));
10029
+ const z = transformArrayToObject(U, n.config.data.source);
10030
+ computeCell(J, z, C.value, H), F.push({ config: J, rowConfig: W, colConfig: te, hasLoop: Y }), p.value.push({
10031
+ config: J,
10032
10032
  rowConfig: W,
10033
10033
  colConfig: te
10034
10034
  });
10035
10035
  }
10036
- await preGenerateBarcodes(F), F.forEach((V) => {
10037
- renderReportByDom(V.rowConfig, V.colConfig, V.config, l, V.hasLoop, _.value.border);
10036
+ await preGenerateBarcodes(F), F.forEach((H) => {
10037
+ renderReportByDom(H.rowConfig, H.colConfig, H.config, l, H.hasLoop, _.value.border);
10038
10038
  }), console.timeEnd("renderReport"), nextTick(() => {
10039
- const V = l.value.querySelectorAll(".yh-report-table-context");
10040
- let H = 0;
10041
- if (V.forEach((z) => {
10042
- const W = z.querySelector("table");
10039
+ const H = l.value.querySelectorAll(".yh-report-table-context");
10040
+ let q = 0;
10041
+ if (H.forEach((Y) => {
10042
+ const W = Y.querySelector("table");
10043
10043
  if (W) {
10044
- const te = W.querySelectorAll("colgroup col"), Z = Array.from(te).reduce(
10045
- (ne, se) => ne + parseInt(se.style.width || "80", 10),
10044
+ const te = W.querySelectorAll("colgroup col"), J = Array.from(te).reduce(
10045
+ (k, V) => k + parseInt(V.style.width || "80", 10),
10046
10046
  0
10047
10047
  );
10048
- H = Math.max(H, Z);
10048
+ q = Math.max(q, J);
10049
10049
  }
10050
- }), H > 0) {
10051
- const z = l.value;
10050
+ }), q > 0) {
10051
+ const Y = l.value;
10052
10052
  let W = 0;
10053
- if (z) {
10054
- const te = getComputedStyle(z);
10055
- W = z.clientWidth - parseFloat(te.paddingLeft || "0") - parseFloat(te.paddingRight || "0");
10053
+ if (Y) {
10054
+ const te = getComputedStyle(Y);
10055
+ W = Y.clientWidth - parseFloat(te.paddingLeft || "0") - parseFloat(te.paddingRight || "0");
10056
10056
  }
10057
- W > 0 && (H = Math.max(H, W)), V.forEach((te) => {
10058
- const Z = te.querySelector("table");
10059
- if (Z) {
10060
- const ne = Z.querySelectorAll("colgroup col"), se = Array.from(ne).reduce(
10061
- (k, Y) => k + parseInt(Y.style.width || "80", 10),
10057
+ W > 0 && (q = Math.max(q, W)), H.forEach((te) => {
10058
+ const J = te.querySelector("table");
10059
+ if (J) {
10060
+ const k = J.querySelectorAll("colgroup col"), V = Array.from(k).reduce(
10061
+ (z, Q) => z + parseInt(Q.style.width || "80", 10),
10062
10062
  0
10063
10063
  );
10064
- if (se > 0 && se < H) {
10065
- const k = H / se;
10066
- ne.forEach((q) => {
10067
- const ee = parseInt(q.style.width || "80", 10);
10068
- q.style.width = `${Math.round(ee * k)}px`;
10064
+ if (V > 0 && V < q) {
10065
+ const z = q / V;
10066
+ k.forEach((K) => {
10067
+ const re = parseInt(K.style.width || "80", 10);
10068
+ K.style.width = `${Math.round(re * z)}px`;
10069
10069
  });
10070
- const Y = Array.from(ne).map(
10071
- (q) => parseInt(q.style.width || "80", 10)
10070
+ const Q = Array.from(k).map(
10071
+ (K) => parseInt(K.style.width || "80", 10)
10072
10072
  );
10073
- Z.querySelectorAll("tr").forEach((q) => {
10074
- let ee = 0, K = 0;
10075
- Array.from(q.children).forEach((re) => {
10076
- re.classList.contains("fixed-td") && (re.style.left = `${ee - 1}px`), K < Y.length && (ee += Y[K] - 1, K++);
10073
+ J.querySelectorAll("tr").forEach((K) => {
10074
+ let re = 0, ne = 0;
10075
+ Array.from(K.children).forEach((se) => {
10076
+ se.classList.contains("fixed-td") && (se.style.left = `${re - 1}px`), ne < Q.length && (re += Q[ne] - 1, ne++);
10077
10077
  });
10078
10078
  });
10079
10079
  }
10080
- Z.style.width = `${H}px`, Z.style.minWidth = `${H}px`;
10080
+ J.style.width = `${q}px`, J.style.minWidth = `${q}px`;
10081
10081
  }
10082
10082
  });
10083
10083
  }
10084
10084
  });
10085
10085
  } else {
10086
- let F = !1, { rowConfig: V, colConfig: H, config: z } = cloneDeep(n.config), W = getLoopItem(H, U, "col", z), te = getLoopItem(V, U, "row", z);
10087
- W.length && (F = !0, loopGroupCols(H, W, z, U)), te.length && (F = !0, loopGroupRows(V, te, z, H, U));
10088
- const Z = transformArrayToObject(U, n.config.data.source);
10089
- computeCell(z, Z, C.value), await preGenerateBarcodes([{ config: z }]), p.value.push({
10090
- config: z,
10091
- rowConfig: V,
10092
- colConfig: H
10093
- }), renderReportByDom(V, H, z, c.value, F, _.value.border), console.timeEnd("renderReport");
10086
+ let F = !1, { rowConfig: H, colConfig: q, config: Y } = cloneDeep(n.config), W = getLoopItem(q, U, "col", Y), te = getLoopItem(H, U, "row", Y);
10087
+ W.length && (F = !0, loopGroupCols(q, W, Y, U)), te.length && (F = !0, loopGroupRows(H, te, Y, q, U));
10088
+ const J = transformArrayToObject(U, n.config.data.source);
10089
+ computeCell(Y, J, C.value), await preGenerateBarcodes([{ config: Y }]), p.value.push({
10090
+ config: Y,
10091
+ rowConfig: H,
10092
+ colConfig: q
10093
+ }), renderReportByDom(H, q, Y, c.value, F, _.value.border), console.timeEnd("renderReport");
10094
10094
  }
10095
10095
  }
10096
10096
  function j() {
10097
- let U = 0, F = [], V = {};
10098
- return n.config.params.forEach((H) => {
10099
- H.isNull && (V[H.columnName] = H);
10100
- }), w.value.forEach((H) => {
10101
- H.name && V[H.name] && !H.value && (F.push(V[H.name].name), U++);
10102
- }), U > 0 && Object.keys(V).length > 0 ? (ElMessage.warning({
10097
+ let U = 0, F = [], H = {};
10098
+ return n.config.params.forEach((q) => {
10099
+ q.isNull && (H[q.columnName] = q);
10100
+ }), w.value.forEach((q) => {
10101
+ q.name && H[q.name] && !q.value && (F.push(H[q.name].name), U++);
10102
+ }), U > 0 && Object.keys(H).length > 0 ? (ElMessage.warning({
10103
10103
  message: `请填写必填项:${F.join(",")}`,
10104
10104
  grouping: !0
10105
10105
  }), !1) : !0;
@@ -10109,109 +10109,109 @@ const DEFAULT_PRINT_HEADER = {
10109
10109
  if (S = !1, i.value || j()) {
10110
10110
  x.value = !0;
10111
10111
  try {
10112
- let V = await ue(i.value), H = ae(V);
10113
- n.config.data.processData && (H = await getProcessData(
10112
+ let H = await ce(i.value), q = ie(H);
10113
+ n.config.data.processData && (q = await getProcessData(
10114
10114
  n.config.data.processData,
10115
- H,
10115
+ q,
10116
10116
  w.value,
10117
10117
  E
10118
- )), d = H, f = { ...H }, J(), H = f;
10119
- const z = (F = n.config.data.source) == null ? void 0 : F.find((W) => W.loopTable);
10120
- z && z.key ? await L(H, z.key) : await G(H), nextTick(ie);
10121
- } catch (V) {
10122
- console.error("数据源请求失败:", V), o("report-error", {
10118
+ )), d = q, f = { ...q }, Z(), q = f;
10119
+ const Y = (F = n.config.data.source) == null ? void 0 : F.find((W) => W.loopTable);
10120
+ Y && Y.key ? await L(q, Y.key) : await G(q), nextTick(oe);
10121
+ } catch (H) {
10122
+ console.error("数据源请求失败:", H), o("report-error", {
10123
10123
  index: n.index,
10124
- message: getErrorMessage(V)
10124
+ message: getErrorMessage(H)
10125
10125
  }), clearReportByDom(l);
10126
10126
  } finally {
10127
- x.value = !1, T = !0;
10127
+ x.value = !1, D = !0;
10128
10128
  }
10129
10129
  } else
10130
10130
  clearReportByDom(l);
10131
10131
  }
10132
- function J() {
10132
+ function Z() {
10133
10133
  if (!f || !d || !u) return;
10134
10134
  const U = d[u.key];
10135
10135
  Array.isArray(U) && (u.order === "none" ? f[u.key] = U : f[u.key] = sortRowsByField(U, u.field, u.order, u.numeric));
10136
10136
  }
10137
- async function Q(U) {
10138
- var ne;
10137
+ async function ee(U) {
10138
+ var k;
10139
10139
  const F = U.target.closest("td.click-sort-cell");
10140
10140
  if (!F) return;
10141
- const V = F.getAttribute("data-click-sort-field") || "", H = V.indexOf(".");
10142
- if (H < 1) return;
10143
- const z = V.slice(0, H).toUpperCase(), W = V.slice(H + 1).toUpperCase();
10144
- if (!z || !W || !f) return;
10141
+ const H = F.getAttribute("data-click-sort-field") || "", q = H.indexOf(".");
10142
+ if (q < 1) return;
10143
+ const Y = H.slice(0, q).toUpperCase(), W = H.slice(q + 1).toUpperCase();
10144
+ if (!Y || !W || !f) return;
10145
10145
  const te = F.getAttribute("data-click-sort-numeric") === "1";
10146
- u && u.key === z && u.field === W ? u.order = u.order === "asc" ? "desc" : u.order === "desc" ? "none" : "asc" : u = { key: z, field: W, order: "asc", numeric: te }, J();
10147
- const Z = (ne = n.config.data.source) == null ? void 0 : ne.find((se) => se.loopTable);
10148
- Z && Z.key ? await L(f, Z.key) : await G(f), nextTick(ie);
10146
+ u && u.key === Y && u.field === W ? u.order = u.order === "asc" ? "desc" : u.order === "desc" ? "none" : "asc" : u = { key: Y, field: W, order: "asc", numeric: te }, Z();
10147
+ const J = (k = n.config.data.source) == null ? void 0 : k.find((V) => V.loopTable);
10148
+ J && J.key ? await L(f, J.key) : await G(f), nextTick(oe);
10149
10149
  }
10150
- function ie() {
10150
+ function oe() {
10151
10151
  var U;
10152
10152
  (U = l.value) == null || U.querySelectorAll("td.click-sort-cell").forEach((F) => {
10153
10153
  var W;
10154
- const V = ((W = F.getAttribute("data-click-sort-field")) == null ? void 0 : W.toUpperCase()) || "", z = u && V === `${u.key}.${u.field}` && u.order !== "none" ? u.order : "";
10155
- F.dataset.sortDir = z;
10154
+ const H = ((W = F.getAttribute("data-click-sort-field")) == null ? void 0 : W.toUpperCase()) || "", Y = u && H === `${u.key}.${u.field}` && u.order !== "none" ? u.order : "";
10155
+ F.dataset.sortDir = Y;
10156
10156
  });
10157
10157
  }
10158
10158
  onMounted(() => {
10159
10159
  var U;
10160
- (U = l.value) == null || U.addEventListener("click", Q);
10160
+ (U = l.value) == null || U.addEventListener("click", ee);
10161
10161
  });
10162
- function ae(U) {
10162
+ function ie(U) {
10163
10163
  let F = {};
10164
- return Array.isArray(U) || (U = [U]), U.forEach(({ key: V, data: H }) => {
10165
- if (V !== "PARAM") {
10166
- let z = H.filter((W) => W);
10167
- F[V] = z;
10164
+ return Array.isArray(U) || (U = [U]), U.forEach(({ key: H, data: q }) => {
10165
+ if (H !== "PARAM") {
10166
+ let Y = q.filter((W) => W);
10167
+ F[H] = Y;
10168
10168
  } else
10169
- F[V] = H;
10169
+ F[H] = q;
10170
10170
  }), o("updateData", {
10171
10171
  key: n.config.id,
10172
10172
  data: F
10173
10173
  }), F;
10174
10174
  }
10175
- async function ue(U = !1) {
10175
+ async function ce(U = !1) {
10176
10176
  if (n.config.data.source) {
10177
10177
  let F = {
10178
10178
  id: n.id
10179
10179
  };
10180
10180
  b.value && (F.params = cloneDeep(w.value));
10181
- const V = collectCellQueryConditions(
10181
+ const H = collectCellQueryConditions(
10182
10182
  n.config.tableConfig,
10183
10183
  n.config.data.source
10184
10184
  );
10185
10185
  v.value ? U ? (F.pageSize = E.total, F.pageNumber = 1) : (F.pageSize = E.pageSize, F.pageNumber = E.pageIndex) : (F.pageSize = E.pageSize, F.pageNumber = 1);
10186
- let H = [], z = {};
10186
+ let q = [], Y = {};
10187
10187
  w.value.forEach(({ name: W, value: te }) => {
10188
- W && (z[W.toUpperCase()] = te);
10189
- }), H.push({ key: "PARAM", data: z });
10188
+ W && (Y[W.toUpperCase()] = te);
10189
+ }), q.push({ key: "PARAM", data: Y });
10190
10190
  for (let W = 0; W < n.config.data.source.length; W++) {
10191
- const { key: te, url: Z } = n.config.data.source[W];
10192
- if (Z) {
10193
- const ne = V.get(Z.toUpperCase()), se = ne != null && ne.length ? { ...F, params: [...F.params || [], ...ne] } : F, k = await getDateSourceData(Z, se);
10194
- H.push({ key: te, data: k.data }), v.value && (E.total = k.count || k.data.length);
10191
+ const { key: te, url: J } = n.config.data.source[W];
10192
+ if (J) {
10193
+ const k = H.get(J.toUpperCase()), V = k != null && k.length ? { ...F, params: [...F.params || [], ...k] } : F, z = await getDateSourceData(J, V);
10194
+ q.push({ key: te, data: z.data }), v.value && (E.total = z.count || z.data.length);
10195
10195
  }
10196
10196
  }
10197
- return H;
10197
+ return q;
10198
10198
  } else
10199
10199
  return [];
10200
10200
  }
10201
- function ye() {
10201
+ function pe() {
10202
10202
  if (n.config.data.pageSize !== void 0 && (E.pageSize = isNaN(n.config.data.pageSize) ? n.config.data.pagination ? 10 : 5e3 : n.config.data.pageSize), n.config.data.pagination && n.config.data.pageSizes !== void 0) {
10203
10203
  let U = n.config.data.pageSizes.split(",").map((F) => parseInt(F));
10204
10204
  E.pageSizes = Array.isArray(U) ? U : [10, 20, 50, 100, 200];
10205
10205
  }
10206
10206
  }
10207
- return ye(), e({
10207
+ return pe(), e({
10208
10208
  tableConfig: p,
10209
10209
  batchTableConfigs: m,
10210
10210
  statementTableRef: l,
10211
10211
  /** 拉数据 + 渲染(供父组件主动调用,如打印按钮触发) */
10212
10212
  renderHandler: X
10213
10213
  }), (U, F) => {
10214
- const V = resolveComponent("el-button"), H = resolveComponent("el-pagination"), z = resolveDirective("loading");
10214
+ const H = resolveComponent("el-button"), q = resolveComponent("el-pagination"), Y = resolveDirective("loading");
10215
10215
  return openBlock(), createElementBlock("div", {
10216
10216
  class: "yh-report-view-container",
10217
10217
  style: normalizeStyle(g.value)
@@ -10222,10 +10222,10 @@ const DEFAULT_PRINT_HEADER = {
10222
10222
  ref_key: "conditionsRef",
10223
10223
  ref: s,
10224
10224
  onAddCell: $,
10225
- onChange: D
10225
+ onChange: T
10226
10226
  }, {
10227
10227
  search: withCtx(() => [
10228
- y.value ? (openBlock(), createBlock(V, {
10228
+ y.value ? (openBlock(), createBlock(H, {
10229
10229
  key: 0,
10230
10230
  type: "primary",
10231
10231
  onClick: I
@@ -10235,7 +10235,7 @@ const DEFAULT_PRINT_HEADER = {
10235
10235
  ]),
10236
10236
  _: 1
10237
10237
  })) : createCommentVNode("", !0),
10238
- createVNode(V, {
10238
+ createVNode(H, {
10239
10239
  text: "",
10240
10240
  type: "primary",
10241
10241
  onClick: N
@@ -10245,7 +10245,7 @@ const DEFAULT_PRINT_HEADER = {
10245
10245
  ]),
10246
10246
  _: 1
10247
10247
  }),
10248
- v.value ? (openBlock(), createBlock(V, {
10248
+ v.value ? (openBlock(), createBlock(H, {
10249
10249
  key: 1,
10250
10250
  text: "",
10251
10251
  type: "primary",
@@ -10271,9 +10271,9 @@ const DEFAULT_PRINT_HEADER = {
10271
10271
  ref: c
10272
10272
  }, null, 512)
10273
10273
  ])), [
10274
- [z, x.value]
10274
+ [Y, x.value]
10275
10275
  ]),
10276
- v.value ? withDirectives((openBlock(), createBlock(H, {
10276
+ v.value ? withDirectives((openBlock(), createBlock(q, {
10277
10277
  key: 0,
10278
10278
  pageSize: E.pageSize,
10279
10279
  "onUpdate:pageSize": F[0] || (F[0] = (W) => E.pageSize = W),
@@ -10561,8 +10561,8 @@ const DEFAULT_PRINT_HEADER = {
10561
10561
  data: { source: w },
10562
10562
  notSingle: C,
10563
10563
  keyIds: $,
10564
- dataIds: D,
10565
- groupBy: T,
10564
+ dataIds: T,
10565
+ groupBy: D,
10566
10566
  orderBy: S,
10567
10567
  cutLength: I,
10568
10568
  singleComputed: B,
@@ -10588,29 +10588,29 @@ const DEFAULT_PRINT_HEADER = {
10588
10588
  if (Object.keys(O).length === 0)
10589
10589
  return l.value = !1, !1;
10590
10590
  if (c.value = [], C) {
10591
- if ($.length < 2 || D.length < 2)
10591
+ if ($.length < 2 || T.length < 2)
10592
10592
  return l.value = !1, !1;
10593
10593
  let x = "", A = "";
10594
10594
  $.length > 2 ? (x = $.splice(0, 2).join("."), A = $.at(0)) : (x = $.at(0), A = $.at(1));
10595
10595
  let R = get(O, x);
10596
10596
  if (!R)
10597
10597
  return l.value = !1, !1;
10598
- let L = R.map((ie) => ie[A]), G = "", j = "";
10599
- D.length > 2 ? (G = D.splice(0, 2).join("."), j = D.at(0)) : (G = D.at(0), j = D.at(1));
10600
- let X = [], J = {}, Q = get(O, G);
10601
- if (!Q)
10598
+ let L = R.map((oe) => oe[A]), G = "", j = "";
10599
+ T.length > 2 ? (G = T.splice(0, 2).join("."), j = T.at(0)) : (G = T.at(0), j = T.at(1));
10600
+ let X = [], Z = {}, ee = get(O, G);
10601
+ if (!ee)
10602
10602
  return l.value = !1, !1;
10603
- Q.map((ie) => {
10604
- let ae = ie[A], ue = ie[j];
10605
- T ? ae && L.includes(ae) && (J[ae] ? J[ae].push(ue) : J[ae] = [ue]) : ae && L.includes(ae) && X.push({
10606
- label: ae,
10607
- value: ue
10603
+ ee.map((oe) => {
10604
+ let ie = oe[A], ce = oe[j];
10605
+ D ? ie && L.includes(ie) && (Z[ie] ? Z[ie].push(ce) : Z[ie] = [ce]) : ie && L.includes(ie) && X.push({
10606
+ label: ie,
10607
+ value: ce
10608
10608
  });
10609
- }), T && (X = Object.keys(J).map((ie) => {
10610
- let ae = J[ie];
10609
+ }), D && (X = Object.keys(Z).map((oe) => {
10610
+ let ie = Z[oe];
10611
10611
  return {
10612
- label: ie,
10613
- value: _.SUM(ae)
10612
+ label: oe,
10613
+ value: _.SUM(ie)
10614
10614
  };
10615
10615
  })), !isNaN(I) && I > 0 && (X = X.splice(0, I)), c.value = X;
10616
10616
  } else {
@@ -11078,27 +11078,27 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11078
11078
  let w = function() {
11079
11079
  M.length > 0 && (B.push({ items: M }), M = [], N = 0);
11080
11080
  }, C = function() {
11081
- if (T)
11081
+ if (D)
11082
11082
  for (; O.length > 0; ) {
11083
- const A = O[0], R = D - N;
11083
+ const A = O[0], R = T - N;
11084
11084
  if (R <= 0) {
11085
11085
  if (M.length === 0) break;
11086
11086
  w();
11087
11087
  continue;
11088
11088
  }
11089
- let L = splitNextReportPage(A.state, R, S, D);
11089
+ let L = splitNextReportPage(A.state, R, S, T);
11090
11090
  if (!L) {
11091
11091
  if (M.length > 0) {
11092
11092
  w();
11093
11093
  continue;
11094
11094
  }
11095
- L = splitNextReportPage(A.state, R, S, D, !0);
11095
+ L = splitNextReportPage(A.state, R, S, T, !0);
11096
11096
  }
11097
11097
  M.push({ type: "report", dom: L.dom }), N += L.height, A.state.currentRowIdx >= A.state.visibleRows.length && O.shift();
11098
11098
  }
11099
11099
  };
11100
11100
  r.silentRender && await b();
11101
- const $ = !!r.autoPrint, D = getPrintContentHeightPxMeasured(r.printConfig), T = D != null, S = getPrintContentWidthPxMeasured(r.printConfig), I = [];
11101
+ const $ = !!r.autoPrint, T = getPrintContentHeightPxMeasured(r.printConfig), D = T != null, S = getPrintContentWidthPxMeasured(r.printConfig), I = [];
11102
11102
  for (let A = 0; A < r.configs.length; A++) {
11103
11103
  const R = r.configs[A];
11104
11104
  if (R.type === "report") {
@@ -11122,9 +11122,9 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11122
11122
  for (let j = 0; j < G.length; j++) {
11123
11123
  const X = G[j];
11124
11124
  j > 0 && I.push({ kind: "break" });
11125
- for (const J of X) {
11126
- const Q = createReportSplitState(
11127
- J,
11125
+ for (const Z of X) {
11126
+ const ee = createReportSplitState(
11127
+ Z,
11128
11128
  getThemeColors(R.theme || "none").border,
11129
11129
  {
11130
11130
  header: r.printConfig.header,
@@ -11133,7 +11133,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11133
11133
  title: r.statementName
11134
11134
  }
11135
11135
  );
11136
- await preGenerateBarcodes([{ config: Q.config }]), I.push({ kind: "report", pending: { state: Q } });
11136
+ await preGenerateBarcodes([{ config: ee.config }]), I.push({ kind: "report", pending: { state: ee } });
11137
11137
  }
11138
11138
  }
11139
11139
  } else if (R.type === "label")
@@ -11142,7 +11142,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11142
11142
  const B = [];
11143
11143
  let M = [], N = 0;
11144
11144
  const O = [];
11145
- if (T) {
11145
+ if (D) {
11146
11146
  for (const A of I) {
11147
11147
  if (A.kind === "break") {
11148
11148
  w();
@@ -11151,7 +11151,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11151
11151
  if (A.kind === "report") {
11152
11152
  const R = A.pending;
11153
11153
  C();
11154
- const L = D - N, G = splitNextReportPage(R.state, L, S, D);
11154
+ const L = T - N, G = splitNextReportPage(R.state, L, S, T);
11155
11155
  G ? (M.push({ type: "report", dom: G.dom }), N += G.height, R.state.currentRowIdx < R.state.visibleRows.length && O.push(R)) : (M.length > 0 && w(), O.push(R));
11156
11156
  }
11157
11157
  }
@@ -11165,8 +11165,8 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11165
11165
  continue;
11166
11166
  }
11167
11167
  if (G.kind === "report") {
11168
- const { state: j } = G.pending, { rowConfig: X, colConfig: J, config: Q } = j, ie = renderReportByDomForPrint(X, J, Q, j.themeColor);
11169
- L.push({ type: "report", dom: ie });
11168
+ const { state: j } = G.pending, { rowConfig: X, colConfig: Z, config: ee } = j, oe = renderReportByDomForPrint(X, Z, ee, j.themeColor);
11169
+ L.push({ type: "report", dom: oe });
11170
11170
  }
11171
11171
  }
11172
11172
  B.push({ items: L });
@@ -11196,16 +11196,16 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11196
11196
  for (let E = 0; E < r.configs.length; E++) {
11197
11197
  const w = r.configs[E];
11198
11198
  if (w.type !== "report") continue;
11199
- const C = w, $ = C.data, D = C.tableConfig;
11200
- if (!$ || !D || !$.source) continue;
11201
- const T = buildPrintParamsFromConfig(C, c.query), { resData: S } = await fetchReportData(
11202
- { id: r.reportId ?? "", data: $, tableConfig: D },
11203
- T,
11199
+ const C = w, $ = C.data, T = C.tableConfig;
11200
+ if (!$ || !T || !$.source) continue;
11201
+ const D = buildPrintParamsFromConfig(C, c.query), { resData: S } = await fetchReportData(
11202
+ { id: r.reportId ?? "", data: $, tableConfig: T },
11203
+ D,
11204
11204
  { pageSize: 5e3, pageIndex: 1, total: 0, isPagination: !!$.pagination },
11205
11205
  y
11206
11206
  );
11207
11207
  let I = toUpdateData(S);
11208
- $.processData && (I = await getProcessData($.processData, I, T, {
11208
+ $.processData && (I = await getProcessData($.processData, I, D, {
11209
11209
  pageSize: 5e3,
11210
11210
  pageIndex: 1,
11211
11211
  total: 0
@@ -11213,7 +11213,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11213
11213
  const B = $.source, M = B.find((N) => N.loopTable);
11214
11214
  if (M && M.key) {
11215
11215
  const N = await renderReportToConfigs(
11216
- D,
11216
+ T,
11217
11217
  I,
11218
11218
  B,
11219
11219
  [],
@@ -11222,7 +11222,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11222
11222
  f.value.set(E, N);
11223
11223
  } else {
11224
11224
  const N = await renderReportToConfigs(
11225
- D,
11225
+ T,
11226
11226
  I,
11227
11227
  B,
11228
11228
  []
@@ -11300,44 +11300,44 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11300
11300
  const r = t;
11301
11301
  ref();
11302
11302
  const n = ref(!1), o = ref(""), i = ref(""), a = ref([]), s = ref(), l = ref(), c = ref([]), u = ref({ ...DEFAULT_PRINT_CONFIG }), f = {}, d = computed(() => {
11303
- var D;
11304
- return !!((D = u.value) != null && D.enabled);
11303
+ var T;
11304
+ return !!((T = u.value) != null && T.enabled);
11305
11305
  });
11306
11306
  provide("printConfig", u), provide("isPrintMode", d);
11307
11307
  const p = computed(() => {
11308
11308
  if (!d.value) return {};
11309
- const D = u.value;
11309
+ const T = u.value;
11310
11310
  return {
11311
- "--print-content-width": `${mmToPx(D.width - D.marginLeft - D.marginRight)}px`
11311
+ "--print-content-width": `${mmToPx(T.width - T.marginLeft - T.marginRight)}px`
11312
11312
  };
11313
11313
  });
11314
11314
  watch(
11315
11315
  () => r.id,
11316
- (D) => {
11317
- m(D);
11316
+ (T) => {
11317
+ m(T);
11318
11318
  }
11319
11319
  );
11320
- function m(D) {
11321
- D ? (i.value = "", a.value = [], n.value = !0, getConfig(D).then(async (T) => {
11322
- let { name: S, remoteOptions: I, printConfig: B } = T;
11320
+ function m(T) {
11321
+ T ? (i.value = "", a.value = [], n.value = !0, getConfig(T).then(async (D) => {
11322
+ let { name: S, remoteOptions: I, printConfig: B } = D;
11323
11323
  o.value = S, c.value = I, B && (u.value = { ...DEFAULT_PRINT_CONFIG, ...B });
11324
- }).catch((T) => {
11325
- console.error("获取报表配置失败:", T), i.value = getErrorMessage(T);
11324
+ }).catch((D) => {
11325
+ console.error("获取报表配置失败:", D), i.value = getErrorMessage(D);
11326
11326
  }).finally(() => {
11327
11327
  n.value = !1;
11328
11328
  })) : i.value = "报表ID不能为空";
11329
11329
  }
11330
- function g({ index: D, message: T }) {
11331
- a.value.some((S) => S.key === D) || a.value.push({ key: D, message: T });
11330
+ function g({ index: T, message: D }) {
11331
+ a.value.some((S) => S.key === T) || a.value.push({ key: T, message: D });
11332
11332
  }
11333
- function _(D) {
11334
- const T = a.value.indexOf(D);
11335
- T > -1 && a.value.splice(T, 1);
11333
+ function _(T) {
11334
+ const D = a.value.indexOf(T);
11335
+ D > -1 && a.value.splice(D, 1);
11336
11336
  }
11337
11337
  const v = ref(!1);
11338
- function b(D) {
11339
- var T;
11340
- f[D.key] = D.data, (T = l.value) == null || T.forEach((S) => {
11338
+ function b(T) {
11339
+ var D;
11340
+ f[T.key] = T.data, (D = l.value) == null || D.forEach((S) => {
11341
11341
  S.setOutData(f);
11342
11342
  });
11343
11343
  }
@@ -11348,22 +11348,22 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11348
11348
  const B = C.value.filter((M) => M && typeof M.renderHandler == "function").map((M) => M.renderHandler());
11349
11349
  B.length > 0 && (n.value = !0, await Promise.all(B), n.value = !1);
11350
11350
  }
11351
- const D = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map();
11351
+ const T = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map();
11352
11352
  if (C.value) {
11353
11353
  for (let B = 0; B < c.value.length; B++)
11354
11354
  if (c.value[B].type === "report") {
11355
11355
  const M = C.value.find((N, O) => c.value.filter((A) => A.type === "report")[O] === c.value[B]);
11356
- M && ((I = (S = c.value[B].data) == null ? void 0 : S.source) != null && I.some((N) => N.loopTable) ? M.batchTableConfigs && T.set(
11356
+ M && ((I = (S = c.value[B].data) == null ? void 0 : S.source) != null && I.some((N) => N.loopTable) ? M.batchTableConfigs && D.set(
11357
11357
  B,
11358
11358
  M.batchTableConfigs.map((N) => N.length > 0 ? [N[0]] : [])
11359
- ) : M.tableConfig && D.set(B, M.tableConfig.length > 0 ? [M.tableConfig[0]] : []));
11359
+ ) : M.tableConfig && T.set(B, M.tableConfig.length > 0 ? [M.tableConfig[0]] : []));
11360
11360
  }
11361
11361
  }
11362
- E.value = D, w.value = T, y.value = !0;
11362
+ E.value = T, w.value = D, y.value = !0;
11363
11363
  }
11364
11364
  return onMounted(() => {
11365
11365
  m(r.id);
11366
- }), (D, T) => {
11366
+ }), (T, D) => {
11367
11367
  const S = resolveDirective("loading");
11368
11368
  return openBlock(), createElementBlock(Fragment, null, [
11369
11369
  createElementVNode("div", _hoisted_1$1, toDisplayString(o.value), 1),
@@ -11373,7 +11373,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11373
11373
  size: "small",
11374
11374
  onClick: $
11375
11375
  }, {
11376
- default: withCtx(() => [...T[1] || (T[1] = [
11376
+ default: withCtx(() => [...D[1] || (D[1] = [
11377
11377
  createTextVNode(" 打印预览 ", -1)
11378
11378
  ])]),
11379
11379
  _: 1
@@ -11436,7 +11436,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11436
11436
  length: c.value.length
11437
11437
  }, null, 8, ["config", "id", "index", "length"]))
11438
11438
  ], 64))), 256)),
11439
- withDirectives(createElementVNode("div", _hoisted_4$1, [...T[2] || (T[2] = [
11439
+ withDirectives(createElementVNode("div", _hoisted_4$1, [...D[2] || (D[2] = [
11440
11440
  createElementVNode("i", { class: "iconfont icon-backtop" }, null, -1)
11441
11441
  ])], 512), [
11442
11442
  [vShow, v.value]
@@ -11446,7 +11446,7 @@ const _hoisted_1$2 = { class: "print-preview-toolbar" }, _hoisted_2$2 = { class:
11446
11446
  ]),
11447
11447
  createVNode(_sfc_main$2, {
11448
11448
  visible: y.value,
11449
- "onUpdate:visible": T[0] || (T[0] = (I) => y.value = I),
11449
+ "onUpdate:visible": D[0] || (D[0] = (I) => y.value = I),
11450
11450
  configs: c.value,
11451
11451
  "print-config": u.value,
11452
11452
  "statement-name": o.value,
@@ -11474,26 +11474,26 @@ class PrinterClient {
11474
11474
  constructor() {
11475
11475
  // ===== 响应式状态(供 Composable 直接暴露) =====
11476
11476
  /** 连接状态 */
11477
- ce(this, "status", ref("disconnected"));
11477
+ le(this, "status", ref("disconnected"));
11478
11478
  /** 打印机列表 */
11479
- ce(this, "printers", ref([]));
11479
+ le(this, "printers", ref([]));
11480
11480
  /** 当前选中的打印机 name(Header 下拉选的,业务 print 不传 printerName 时用它) */
11481
- ce(this, "selectedPrinter", ref(null));
11481
+ le(this, "selectedPrinter", ref(null));
11482
11482
  /** 是否正在打印中(业务 print 流程中) */
11483
- ce(this, "printing", ref(!1));
11483
+ le(this, "printing", ref(!1));
11484
11484
  // ===== 内部状态 =====
11485
- ce(this, "ws", null);
11486
- ce(this, "url", "");
11487
- ce(this, "manualClosed", !1);
11488
- ce(this, "reconnectTimer", null);
11489
- ce(this, "reconnectDelay", 1e3);
11490
- ce(this, "retryCount", 0);
11491
- ce(this, "pollTimer", null);
11492
- ce(this, "seq", 0);
11493
- ce(this, "pending", /* @__PURE__ */ new Map());
11494
- ce(this, "statusListeners", /* @__PURE__ */ new Set());
11495
- ce(this, "printersListeners", /* @__PURE__ */ new Set());
11496
- ce(this, "selectListeners", /* @__PURE__ */ new Set());
11485
+ le(this, "ws", null);
11486
+ le(this, "url", "");
11487
+ le(this, "manualClosed", !1);
11488
+ le(this, "reconnectTimer", null);
11489
+ le(this, "reconnectDelay", 1e3);
11490
+ le(this, "retryCount", 0);
11491
+ le(this, "pollTimer", null);
11492
+ le(this, "seq", 0);
11493
+ le(this, "pending", /* @__PURE__ */ new Map());
11494
+ le(this, "statusListeners", /* @__PURE__ */ new Set());
11495
+ le(this, "printersListeners", /* @__PURE__ */ new Set());
11496
+ le(this, "selectListeners", /* @__PURE__ */ new Set());
11497
11497
  }
11498
11498
  /** 当前服务地址 */
11499
11499
  getUrl() {
@@ -12069,7 +12069,7 @@ async function registerRoute(t, e) {
12069
12069
  title: "报表列表",
12070
12070
  icon: "iconfont icon-s-grid"
12071
12071
  },
12072
- component: () => import("./StatementList-QIHW85YR.mjs")
12072
+ component: () => import("./StatementList-DCNv9hGj.mjs")
12073
12073
  }), e.addRoute("Index", {
12074
12074
  path: "statement/design/:id",
12075
12075
  name: "报表设计",
@@ -12078,7 +12078,7 @@ async function registerRoute(t, e) {
12078
12078
  title: "报表设计",
12079
12079
  icon: "iconfont icon-s-grid"
12080
12080
  },
12081
- component: () => import("./StatementDesign-DfROs_6d.mjs").then((r) => r.S)
12081
+ component: () => import("./StatementDesign-DxlogJmW.mjs").then((r) => r.S)
12082
12082
  }), e.addRoute("Index", {
12083
12083
  path: "statement/detail/:id",
12084
12084
  name: "后台报表查看",
@@ -12087,7 +12087,7 @@ async function registerRoute(t, e) {
12087
12087
  title: "后台报表查看",
12088
12088
  icon: "iconfont icon-s-grid"
12089
12089
  },
12090
- component: () => import("./StatementDetail-DrRfrLjM.mjs")
12090
+ component: () => import("./StatementDetail-JUTqSdrL.mjs")
12091
12091
  })), e.addRoute({
12092
12092
  path: "/statementdetail/:id",
12093
12093
  name: "报表查看",
@@ -12098,7 +12098,7 @@ async function registerRoute(t, e) {
12098
12098
  isWhite: !0
12099
12099
  },
12100
12100
  props: !0,
12101
- component: () => import("./StatementDetail-DrRfrLjM.mjs")
12101
+ component: () => import("./StatementDetail-JUTqSdrL.mjs")
12102
12102
  }), e.hasRoute("Index") && e.addRoute("Index", {
12103
12103
  path: "innerStatementdetail/:id",
12104
12104
  name: "系统内报表查看",
@@ -12109,7 +12109,7 @@ async function registerRoute(t, e) {
12109
12109
  noPadding: !0
12110
12110
  },
12111
12111
  props: !0,
12112
- component: () => import("./StatementDetail-DrRfrLjM.mjs")
12112
+ component: () => import("./StatementDetail-JUTqSdrL.mjs")
12113
12113
  });
12114
12114
  }
12115
12115
  const index = {
@@ -12175,29 +12175,31 @@ function dynamicReportView(t) {
12175
12175
  );
12176
12176
  }
12177
12177
  export {
12178
- validateAndCompleteTableConfig as A,
12179
- DEFAULT_PRINT_HEADER as B,
12178
+ getLoopSourceColumns as A,
12179
+ applyBorderOperation as B,
12180
12180
  CellType as C,
12181
12181
  DEFAULT_PRINT_CONFIG as D,
12182
- DEFAULT_PRINT_FOOTER as E,
12182
+ validateAndCompleteTableConfig as E,
12183
12183
  FormatType as F,
12184
- DEFAULT_PRINT_WATERMARK as G,
12185
- chartsTypeList as H,
12186
- getDateSourceColumns as I,
12187
- getDateSourceList as J,
12188
- getDateSourceData as K,
12189
- transformArrayToObject as L,
12190
- _sfc_main$2 as M,
12191
- ItemTypes as N,
12192
- getReportDefaultOption as O,
12193
- PrinterClient as P,
12194
- index as Q,
12195
- dynamicReportView as R,
12196
- fetchReportForPrint as S,
12184
+ DEFAULT_PRINT_HEADER as G,
12185
+ DEFAULT_PRINT_FOOTER as H,
12186
+ DEFAULT_PRINT_WATERMARK as I,
12187
+ chartsTypeList as J,
12188
+ getDateSourceColumns as K,
12189
+ getDateSourceList as L,
12190
+ getDateSourceData as M,
12191
+ transformArrayToObject as N,
12192
+ _sfc_main$2 as O,
12193
+ ItemTypes as P,
12194
+ getReportDefaultOption as Q,
12195
+ PrinterClient as R,
12196
+ index as S,
12197
12197
  TypeItems as T,
12198
- printReportByBrowser as U,
12199
- silenceExport as V,
12200
- usePrinterClient as W,
12198
+ dynamicReportView as U,
12199
+ fetchReportForPrint as V,
12200
+ printReportByBrowser as W,
12201
+ silenceExport as X,
12202
+ usePrinterClient as Y,
12201
12203
  _sfc_main$1 as _,
12202
12204
  del as a,
12203
12205
  defaultCol as b,
@@ -12222,8 +12224,8 @@ export {
12222
12224
  chartItem as u,
12223
12225
  DataSourceColumnDataType as v,
12224
12226
  DATE_RANGE_TYPES as w,
12225
- numberToColumn as x,
12226
- getLoopSourceColumns as y,
12227
- applyBorderOperation as z
12227
+ parseShiftOffset as x,
12228
+ formatShiftOffset as y,
12229
+ numberToColumn as z
12228
12230
  };
12229
- //# sourceMappingURL=index-D6FDdrDp.mjs.map
12231
+ //# sourceMappingURL=index-CpL13AF7.mjs.map