qk-pc-ui 3.9.1 → 3.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/qk-pc-ui.css +1 -1
- package/dist/qk-pc-ui.mjs +290 -283
- package/dist/qk-pc-ui.umd.js +19 -19
- package/package.json +1 -1
package/dist/qk-pc-ui.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createElementBlock, openBlock, createVNode, unref, withCtx, renderSlot, createTextVNode, toDisplayString, computed, createElementVNode, createBlock, createCommentVNode, ref, reactive, watch, Fragment, renderList, normalizeStyle, onMounted, useSlots, nextTick, useModel, mergeModels, onBeforeUnmount, normalizeClass, onUnmounted, withDirectives, vModelText, withKeys } from "vue";
|
|
2
2
|
import { ElForm, ElFormItem, ElButton, ElPagination, ElDialog, ElRow, ElSelect, ElOption, ElMessageBox, ElMessage, ElTable, ElTableColumn, ElLink, ElPopover, ElInput, ElCheckboxGroup, ElCheckbox, ElIcon, ElDropdown, ElDropdownMenu, ElDropdownItem, ElLoading, ElDatePicker, ElUpload, ElButtonGroup, ElRadioGroup, ElRadioButton, ElSwitch, ElTag, ElTabs, ElTabPane, ElCascader } from "element-plus";
|
|
3
3
|
import { L, Sleep, SaasApi, AndroidApi, GetUrlParam, SystemModuleApi, AjaxCallWeb, LocalApi, GetEnumName, MemberApi, UnRegisterKeyboard, RegisterKeyboard, GetCacheData, PlayTTS, InfrastructureApi } from "qk-lib-v3";
|
|
4
|
-
import { Setting,
|
|
4
|
+
import { Setting, ArrowDown, Plus } from "@element-plus/icons-vue";
|
|
5
5
|
import E from "wangeditor";
|
|
6
6
|
import axios from "axios";
|
|
7
7
|
import { useRouter, useRoute } from "vue-router";
|
|
@@ -1078,23 +1078,23 @@ function eval_fmt(e, r, t, a) {
|
|
|
1078
1078
|
H = s;
|
|
1079
1079
|
break;
|
|
1080
1080
|
}
|
|
1081
|
-
var
|
|
1081
|
+
var C = n.length;
|
|
1082
1082
|
if (H === n.length && F.indexOf("E") === -1) {
|
|
1083
1083
|
for (s = n.length - 1; s >= 0; --s)
|
|
1084
|
-
n[s] == null || "n?".indexOf(n[s].t) === -1 || (I >= n[s].v.length - 1 ? (I -= n[s].v.length, n[s].v = F.substr(I + 1, n[s].v.length)) : I < 0 ? n[s].v = "" : (n[s].v = F.substr(0, I + 1), I = -1), n[s].t = "t",
|
|
1085
|
-
I >= 0 &&
|
|
1084
|
+
n[s] == null || "n?".indexOf(n[s].t) === -1 || (I >= n[s].v.length - 1 ? (I -= n[s].v.length, n[s].v = F.substr(I + 1, n[s].v.length)) : I < 0 ? n[s].v = "" : (n[s].v = F.substr(0, I + 1), I = -1), n[s].t = "t", C = s);
|
|
1085
|
+
I >= 0 && C < n.length && (n[C].v = F.substr(0, I + 1) + n[C].v);
|
|
1086
1086
|
} else if (H !== n.length && F.indexOf("E") === -1) {
|
|
1087
1087
|
for (I = F.indexOf(".") - 1, s = H; s >= 0; --s)
|
|
1088
1088
|
if (!(n[s] == null || "n?".indexOf(n[s].t) === -1)) {
|
|
1089
1089
|
for (c = n[s].v.indexOf(".") > -1 && s === H ? n[s].v.indexOf(".") - 1 : n[s].v.length - 1, z = n[s].v.substr(c + 1); c >= 0; --c)
|
|
1090
1090
|
I >= 0 && (n[s].v.charAt(c) === "0" || n[s].v.charAt(c) === "#") && (z = F.charAt(I--) + z);
|
|
1091
|
-
n[s].v = z, n[s].t = "t",
|
|
1091
|
+
n[s].v = z, n[s].t = "t", C = s;
|
|
1092
1092
|
}
|
|
1093
|
-
for (I >= 0 &&
|
|
1093
|
+
for (I >= 0 && C < n.length && (n[C].v = F.substr(0, I + 1) + n[C].v), I = F.indexOf(".") + 1, s = H; s < n.length; ++s)
|
|
1094
1094
|
if (!(n[s] == null || "n?(".indexOf(n[s].t) === -1 && s !== H)) {
|
|
1095
1095
|
for (c = n[s].v.indexOf(".") > -1 && s === H ? n[s].v.indexOf(".") + 1 : 0, z = n[s].v.substr(0, c); c < n[s].v.length; ++c)
|
|
1096
1096
|
I < F.length && (z += F.charAt(I++));
|
|
1097
|
-
n[s].v = z, n[s].t = "t",
|
|
1097
|
+
n[s].v = z, n[s].t = "t", C = s;
|
|
1098
1098
|
}
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
@@ -1232,34 +1232,34 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1232
1232
|
var e = {};
|
|
1233
1233
|
e.version = "1.2.0";
|
|
1234
1234
|
function r() {
|
|
1235
|
-
for (var F = 0, H = new Array(256),
|
|
1236
|
-
F =
|
|
1235
|
+
for (var F = 0, H = new Array(256), C = 0; C != 256; ++C)
|
|
1236
|
+
F = C, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, F = F & 1 ? -306674912 ^ F >>> 1 : F >>> 1, H[C] = F;
|
|
1237
1237
|
return typeof Int32Array < "u" ? new Int32Array(H) : H;
|
|
1238
1238
|
}
|
|
1239
1239
|
var t = r();
|
|
1240
1240
|
function a(F) {
|
|
1241
|
-
var H = 0,
|
|
1241
|
+
var H = 0, C = 0, O = 0, D = typeof Int32Array < "u" ? new Int32Array(4096) : new Array(4096);
|
|
1242
1242
|
for (O = 0; O != 256; ++O) D[O] = F[O];
|
|
1243
1243
|
for (O = 0; O != 256; ++O)
|
|
1244
|
-
for (
|
|
1245
|
-
var
|
|
1246
|
-
for (O = 1; O != 16; ++O)
|
|
1247
|
-
return
|
|
1244
|
+
for (C = F[O], H = 256 + O; H < 4096; H += 256) C = D[H] = C >>> 8 ^ F[C & 255];
|
|
1245
|
+
var S = [];
|
|
1246
|
+
for (O = 1; O != 16; ++O) S[O - 1] = typeof Int32Array < "u" ? D.subarray(O * 256, O * 256 + 256) : D.slice(O * 256, O * 256 + 256);
|
|
1247
|
+
return S;
|
|
1248
1248
|
}
|
|
1249
1249
|
var n = a(t), i = n[0], s = n[1], l = n[2], o = n[3], f = n[4], c = n[5], m = n[6], p = n[7], d = n[8], h = n[9], u = n[10], _ = n[11], A = n[12], B = n[13], k = n[14];
|
|
1250
1250
|
function I(F, H) {
|
|
1251
|
-
for (var
|
|
1252
|
-
return ~
|
|
1251
|
+
for (var C = H ^ -1, O = 0, D = F.length; O < D; ) C = C >>> 8 ^ t[(C ^ F.charCodeAt(O++)) & 255];
|
|
1252
|
+
return ~C;
|
|
1253
1253
|
}
|
|
1254
1254
|
function z(F, H) {
|
|
1255
|
-
for (var
|
|
1256
|
-
for (O += 15; D < O; )
|
|
1257
|
-
return ~
|
|
1255
|
+
for (var C = H ^ -1, O = F.length - 15, D = 0; D < O; ) C = k[F[D++] ^ C & 255] ^ B[F[D++] ^ C >> 8 & 255] ^ A[F[D++] ^ C >> 16 & 255] ^ _[F[D++] ^ C >>> 24] ^ u[F[D++]] ^ h[F[D++]] ^ d[F[D++]] ^ p[F[D++]] ^ m[F[D++]] ^ c[F[D++]] ^ f[F[D++]] ^ o[F[D++]] ^ l[F[D++]] ^ s[F[D++]] ^ i[F[D++]] ^ t[F[D++]];
|
|
1256
|
+
for (O += 15; D < O; ) C = C >>> 8 ^ t[(C ^ F[D++]) & 255];
|
|
1257
|
+
return ~C;
|
|
1258
1258
|
}
|
|
1259
1259
|
function G(F, H) {
|
|
1260
|
-
for (var
|
|
1261
|
-
|
|
1262
|
-
return ~
|
|
1260
|
+
for (var C = H ^ -1, O = 0, D = F.length, S = 0, R = 0; O < D; )
|
|
1261
|
+
S = F.charCodeAt(O++), S < 128 ? C = C >>> 8 ^ t[(C ^ S) & 255] : S < 2048 ? (C = C >>> 8 ^ t[(C ^ (192 | S >> 6 & 31)) & 255], C = C >>> 8 ^ t[(C ^ (128 | S & 63)) & 255]) : S >= 55296 && S < 57344 ? (S = (S & 1023) + 64, R = F.charCodeAt(O++) & 1023, C = C >>> 8 ^ t[(C ^ (240 | S >> 8 & 7)) & 255], C = C >>> 8 ^ t[(C ^ (128 | S >> 2 & 63)) & 255], C = C >>> 8 ^ t[(C ^ (128 | R >> 6 & 15 | (S & 3) << 4)) & 255], C = C >>> 8 ^ t[(C ^ (128 | R & 63)) & 255]) : (C = C >>> 8 ^ t[(C ^ (224 | S >> 12 & 15)) & 255], C = C >>> 8 ^ t[(C ^ (128 | S >> 6 & 63)) & 255], C = C >>> 8 ^ t[(C ^ (128 | S & 63)) & 255]);
|
|
1262
|
+
return ~C;
|
|
1263
1263
|
}
|
|
1264
1264
|
return e.table = t, e.bstr = I, e.buf = z, e.str = G, e;
|
|
1265
1265
|
}(), CFB = /* @__PURE__ */ function() {
|
|
@@ -1410,7 +1410,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
function u(x, v, g) {
|
|
1412
1412
|
for (var w = x.start, y = x.size, T = [], U = w; g && y > 0 && U >= 0; )
|
|
1413
|
-
T.push(v.slice(U *
|
|
1413
|
+
T.push(v.slice(U * S, U * S + S)), y -= S, U = __readInt32LE(g, U * 4);
|
|
1414
1414
|
return T.length === 0 ? new_buf(0) : bconcat(T).slice(0, x.size);
|
|
1415
1415
|
}
|
|
1416
1416
|
function _(x, v, g, w, y) {
|
|
@@ -1509,10 +1509,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1509
1509
|
var v = "Sh33tJ5";
|
|
1510
1510
|
if (!CFB.find(x, "/" + v)) {
|
|
1511
1511
|
var g = new_buf(4);
|
|
1512
|
-
g[0] = 55, g[1] = g[3] = 50, g[2] = 54, x.FileIndex.push({ name: v, type: 2, content: g, size: 4, L: 69, R: 69, C: 69 }), x.FullPaths.push(x.FullPaths[0] + v),
|
|
1512
|
+
g[0] = 55, g[1] = g[3] = 50, g[2] = 54, x.FileIndex.push({ name: v, type: 2, content: g, size: 4, L: 69, R: 69, C: 69 }), x.FullPaths.push(x.FullPaths[0] + v), C(x);
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
|
-
function
|
|
1515
|
+
function C(x, v) {
|
|
1516
1516
|
F(x);
|
|
1517
1517
|
for (var g = !1, w = !1, y = x.FullPaths.length - 1; y >= 0; --y) {
|
|
1518
1518
|
var T = x.FileIndex[y];
|
|
@@ -1565,7 +1565,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1565
1565
|
function O(x, v) {
|
|
1566
1566
|
var g = v || {};
|
|
1567
1567
|
if (g.fileType == "mad") return ot(x, g);
|
|
1568
|
-
switch (
|
|
1568
|
+
switch (C(x), g.fileType) {
|
|
1569
1569
|
case "zip":
|
|
1570
1570
|
return tt(x, g);
|
|
1571
1571
|
}
|
|
@@ -1656,7 +1656,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
1656
1656
|
if ((K ? g[U].replace(chr1, "!") : g[U]).replace(chr0, "") == T || (K ? w[U].replace(chr1, "!") : w[U]).replace(chr0, "") == T) return x.FileIndex[U];
|
|
1657
1657
|
return null;
|
|
1658
1658
|
}
|
|
1659
|
-
var
|
|
1659
|
+
var S = 64, R = -2, ee = "d0cf11e0a1b11ae1", ne = [208, 207, 17, 224, 161, 177, 26, 225], ce = "00000000000000000000000000000000", re = {
|
|
1660
1660
|
/* 2.1 Compund File Sector Numbers and Types */
|
|
1661
1661
|
MAXREGSECT: -6,
|
|
1662
1662
|
DIFSECT: -4,
|
|
@@ -2204,7 +2204,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
2204
2204
|
return !1;
|
|
2205
2205
|
}
|
|
2206
2206
|
function dt(x) {
|
|
2207
|
-
|
|
2207
|
+
C(x, !0);
|
|
2208
2208
|
}
|
|
2209
2209
|
return r.find = D, r.read = G, r.parse = c, r.write = ve, r.writeFile = xe, r.utils = {
|
|
2210
2210
|
cfb_new: ft,
|
|
@@ -4540,9 +4540,9 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4540
4540
|
continue;
|
|
4541
4541
|
}
|
|
4542
4542
|
for (++c.l, f[++F] = [], H = 0, H = 0; H != k.length; ++H) {
|
|
4543
|
-
var
|
|
4544
|
-
c.l += k[H].len, prep_blob(
|
|
4545
|
-
var O = $cptable.utils.decode(B,
|
|
4543
|
+
var C = c.slice(c.l, c.l + k[H].len);
|
|
4544
|
+
c.l += k[H].len, prep_blob(C, 0);
|
|
4545
|
+
var O = $cptable.utils.decode(B, C);
|
|
4546
4546
|
switch (k[H].type) {
|
|
4547
4547
|
case "C":
|
|
4548
4548
|
O.trim().length && (f[F][H] = O.replace(/\s+$/, ""));
|
|
@@ -4555,7 +4555,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4555
4555
|
break;
|
|
4556
4556
|
case "+":
|
|
4557
4557
|
case "I":
|
|
4558
|
-
f[F][H] = h ?
|
|
4558
|
+
f[F][H] = h ? C.read_shift(-4, "i") ^ 2147483648 : C.read_shift(4, "i");
|
|
4559
4559
|
break;
|
|
4560
4560
|
case "L":
|
|
4561
4561
|
switch (O.trim().toUpperCase()) {
|
|
@@ -4576,32 +4576,32 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4576
4576
|
break;
|
|
4577
4577
|
case "M":
|
|
4578
4578
|
if (!p) throw new Error("DBF Unexpected MEMO for type " + m.toString(16));
|
|
4579
|
-
f[F][H] = "##MEMO##" + (h ? parseInt(O.trim(), 10) :
|
|
4579
|
+
f[F][H] = "##MEMO##" + (h ? parseInt(O.trim(), 10) : C.read_shift(4));
|
|
4580
4580
|
break;
|
|
4581
4581
|
case "N":
|
|
4582
4582
|
O = O.replace(/\u0000/g, "").trim(), O && O != "." && (f[F][H] = +O || 0);
|
|
4583
4583
|
break;
|
|
4584
4584
|
case "@":
|
|
4585
|
-
f[F][H] = new Date(
|
|
4585
|
+
f[F][H] = new Date(C.read_shift(-8, "f") - 621356832e5);
|
|
4586
4586
|
break;
|
|
4587
4587
|
case "T":
|
|
4588
|
-
f[F][H] = new Date((
|
|
4588
|
+
f[F][H] = new Date((C.read_shift(4) - 2440588) * 864e5 + C.read_shift(4));
|
|
4589
4589
|
break;
|
|
4590
4590
|
case "Y":
|
|
4591
|
-
f[F][H] =
|
|
4591
|
+
f[F][H] = C.read_shift(4, "i") / 1e4 + C.read_shift(4, "i") / 1e4 * Math.pow(2, 32);
|
|
4592
4592
|
break;
|
|
4593
4593
|
case "O":
|
|
4594
|
-
f[F][H] = -
|
|
4594
|
+
f[F][H] = -C.read_shift(-8, "f");
|
|
4595
4595
|
break;
|
|
4596
4596
|
case "B":
|
|
4597
4597
|
if (d && k[H].len == 8) {
|
|
4598
|
-
f[F][H] =
|
|
4598
|
+
f[F][H] = C.read_shift(8, "f");
|
|
4599
4599
|
break;
|
|
4600
4600
|
}
|
|
4601
4601
|
/* falls through */
|
|
4602
4602
|
case "G":
|
|
4603
4603
|
case "P":
|
|
4604
|
-
|
|
4604
|
+
C.l += k[H].len;
|
|
4605
4605
|
break;
|
|
4606
4606
|
case "0":
|
|
4607
4607
|
if (k[H].name === "_NullFlags") break;
|
|
@@ -4656,7 +4656,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4656
4656
|
}
|
|
4657
4657
|
var k = safe_decode_range(l["!ref"]), I = [], z = [], G = [];
|
|
4658
4658
|
for (u = 0; u <= k.e.c - k.s.c; ++u) {
|
|
4659
|
-
var F = "", H = "",
|
|
4659
|
+
var F = "", H = "", C = 0, O = [];
|
|
4660
4660
|
for (_ = 0; _ < d.length; ++_)
|
|
4661
4661
|
d[_][u] != null && O.push(d[_][u]);
|
|
4662
4662
|
if (O.length == 0 || p[u] == null) {
|
|
@@ -4681,9 +4681,9 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4681
4681
|
default:
|
|
4682
4682
|
H = "C";
|
|
4683
4683
|
}
|
|
4684
|
-
|
|
4684
|
+
C = Math.max(C, String(O[_]).length), F = F && F != H ? "C" : H;
|
|
4685
4685
|
}
|
|
4686
|
-
|
|
4686
|
+
C > 250 && (C = 250), H = ((h[u] || {}).DBF || {}).type, H == "C" && h[u].DBF.len > C && (C = h[u].DBF.len), F == "B" && H == "N" && (F = "N", G[u] = h[u].DBF.dec, C = h[u].DBF.len), z[u] = F == "C" || H == "N" ? C : i[F] || 0, B += z[u], I[u] = F;
|
|
4687
4687
|
}
|
|
4688
4688
|
var D = c.next(32);
|
|
4689
4689
|
for (D.write_shift(4, 318902576), D.write_shift(4, d.length), D.write_shift(2, 296 + 32 * A), D.write_shift(2, B), u = 0; u < 4; ++u) D.write_shift(4, 0);
|
|
@@ -4693,8 +4693,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4693
4693
|
/*::)*/
|
|
4694
4694
|
] || 3) << 8), u = 0, _ = 0; u < p.length; ++u)
|
|
4695
4695
|
if (p[u] != null) {
|
|
4696
|
-
var
|
|
4697
|
-
|
|
4696
|
+
var S = c.next(32), R = (p[u].slice(-10) + "\0\0\0\0\0\0\0\0\0\0\0").slice(0, 11);
|
|
4697
|
+
S.write_shift(1, R, "sbcs"), S.write_shift(1, I[u] == "?" ? "C" : I[u], "sbcs"), S.write_shift(4, _), S.write_shift(1, z[u] || i[I[u]] || 0), S.write_shift(1, G[u] || 0), S.write_shift(1, 2), S.write_shift(4, 0), S.write_shift(1, 0), S.write_shift(4, 0), S.write_shift(4, 0), _ += z[u] || i[I[u]] || 0;
|
|
4698
4698
|
}
|
|
4699
4699
|
var ee = c.next(264);
|
|
4700
4700
|
for (ee.write_shift(4, 13), u = 0; u < 65; ++u) ee.write_shift(4, 0);
|
|
@@ -4848,13 +4848,13 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4848
4848
|
throw new Error("Unrecognized type " + d.type);
|
|
4849
4849
|
}
|
|
4850
4850
|
function i(p, d) {
|
|
4851
|
-
var h = p.split(/[\n\r]+/), u = -1, _ = -1, A = 0, B = 0, k = [], I = [], z = null, G = {}, F = [], H = [],
|
|
4851
|
+
var h = p.split(/[\n\r]+/), u = -1, _ = -1, A = 0, B = 0, k = [], I = [], z = null, G = {}, F = [], H = [], C = [], O = 0, D;
|
|
4852
4852
|
for (+d.codepage >= 0 && set_cp(+d.codepage); A !== h.length; ++A) {
|
|
4853
4853
|
O = 0;
|
|
4854
|
-
var
|
|
4854
|
+
var S = h[A].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(r, t), R = S.replace(/;;/g, "\0").split(";").map(function(P) {
|
|
4855
4855
|
return P.replace(/\u0000/g, ";");
|
|
4856
4856
|
}), ee = R[0], ne;
|
|
4857
|
-
if (
|
|
4857
|
+
if (S.length > 0) switch (ee) {
|
|
4858
4858
|
case "ID":
|
|
4859
4859
|
break;
|
|
4860
4860
|
/* header */
|
|
@@ -4871,7 +4871,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4871
4871
|
break;
|
|
4872
4872
|
/* window? */
|
|
4873
4873
|
case "P":
|
|
4874
|
-
R[1].charAt(0) == "P" && I.push(
|
|
4874
|
+
R[1].charAt(0) == "P" && I.push(S.slice(3).replace(/;;/g, ";"));
|
|
4875
4875
|
break;
|
|
4876
4876
|
case "C":
|
|
4877
4877
|
var ce = !1, re = !1, xe = !1, he = !1, ve = -1, ge = -1;
|
|
@@ -4906,7 +4906,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4906
4906
|
ge = parseInt(R[B].slice(1)) - 1;
|
|
4907
4907
|
break;
|
|
4908
4908
|
default:
|
|
4909
|
-
if (d && d.WTF) throw new Error("SYLK bad record " +
|
|
4909
|
+
if (d && d.WTF) throw new Error("SYLK bad record " + S);
|
|
4910
4910
|
}
|
|
4911
4911
|
if (ce && (k[u][_] && k[u][_].length == 2 ? k[u][_][0] = ne : k[u][_] = ne, z = null), xe) {
|
|
4912
4912
|
if (he) throw new Error("SYLK shared formula cannot have own formula");
|
|
@@ -4946,8 +4946,8 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4946
4946
|
break;
|
|
4947
4947
|
/* font */
|
|
4948
4948
|
case "W":
|
|
4949
|
-
for (
|
|
4950
|
-
O = parseInt(
|
|
4949
|
+
for (C = R[B].slice(1).split(" "), D = parseInt(C[0], 10); D <= parseInt(C[1], 10); ++D)
|
|
4950
|
+
O = parseInt(C[2], 10), H[D - 1] = O === 0 ? { hidden: !0 } : { wch: O }, process_col(H[D - 1]);
|
|
4951
4951
|
break;
|
|
4952
4952
|
case "C":
|
|
4953
4953
|
_ = parseInt(R[B].slice(1)) - 1, H[_] || (H[_] = {});
|
|
@@ -4956,12 +4956,12 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
4956
4956
|
u = parseInt(R[B].slice(1)) - 1, F[u] || (F[u] = {}), O > 0 ? (F[u].hpt = O, F[u].hpx = pt2px(O)) : O === 0 && (F[u].hidden = !0);
|
|
4957
4957
|
break;
|
|
4958
4958
|
default:
|
|
4959
|
-
if (d && d.WTF) throw new Error("SYLK bad record " +
|
|
4959
|
+
if (d && d.WTF) throw new Error("SYLK bad record " + S);
|
|
4960
4960
|
}
|
|
4961
4961
|
b < 1 && (z = null);
|
|
4962
4962
|
break;
|
|
4963
4963
|
default:
|
|
4964
|
-
if (d && d.WTF) throw new Error("SYLK bad record " +
|
|
4964
|
+
if (d && d.WTF) throw new Error("SYLK bad record " + S);
|
|
4965
4965
|
}
|
|
4966
4966
|
}
|
|
4967
4967
|
return F.length > 0 && (G["!rows"] = F), H.length > 0 && (G["!cols"] = H), d && d.sheetRows && (k = k.slice(0, d.sheetRows)), [k, G];
|
|
@@ -5276,29 +5276,29 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
5276
5276
|
var _ = 0, A = 0, B = 0, k = 0, I = 0, z = d.charCodeAt(0), G = !1, F = 0, H = c.charCodeAt(0);
|
|
5277
5277
|
c = c.replace(/\r\n/mg, `
|
|
5278
5278
|
`);
|
|
5279
|
-
var
|
|
5279
|
+
var C = p.dateNF != null ? dateNF_regex(p.dateNF) : null;
|
|
5280
5280
|
function O() {
|
|
5281
|
-
var D = c.slice(k, I),
|
|
5282
|
-
if (D.charAt(0) == '"' && D.charAt(D.length - 1) == '"' && (D = D.slice(1, -1).replace(/""/g, '"')), D.length === 0)
|
|
5281
|
+
var D = c.slice(k, I), S = {};
|
|
5282
|
+
if (D.charAt(0) == '"' && D.charAt(D.length - 1) == '"' && (D = D.slice(1, -1).replace(/""/g, '"')), D.length === 0) S.t = "z";
|
|
5283
5283
|
else if (p.raw)
|
|
5284
|
-
|
|
5284
|
+
S.t = "s", S.v = D;
|
|
5285
5285
|
else if (D.trim().length === 0)
|
|
5286
|
-
|
|
5286
|
+
S.t = "s", S.v = D;
|
|
5287
5287
|
else if (D.charCodeAt(0) == 61)
|
|
5288
|
-
D.charCodeAt(1) == 34 && D.charCodeAt(D.length - 1) == 34 ? (
|
|
5288
|
+
D.charCodeAt(1) == 34 && D.charCodeAt(D.length - 1) == 34 ? (S.t = "s", S.v = D.slice(2, -1).replace(/""/g, '"')) : fuzzyfmla(D) ? (S.t = "n", S.f = D.slice(1)) : (S.t = "s", S.v = D);
|
|
5289
5289
|
else if (D == "TRUE")
|
|
5290
|
-
|
|
5290
|
+
S.t = "b", S.v = !0;
|
|
5291
5291
|
else if (D == "FALSE")
|
|
5292
|
-
|
|
5292
|
+
S.t = "b", S.v = !1;
|
|
5293
5293
|
else if (!isNaN(B = fuzzynum(D)))
|
|
5294
|
-
|
|
5295
|
-
else if (!isNaN(fuzzydate(D).getDate()) ||
|
|
5296
|
-
|
|
5294
|
+
S.t = "n", p.cellText !== !1 && (S.w = D), S.v = B;
|
|
5295
|
+
else if (!isNaN(fuzzydate(D).getDate()) || C && D.match(C)) {
|
|
5296
|
+
S.z = p.dateNF || table_fmt[14];
|
|
5297
5297
|
var R = 0;
|
|
5298
|
-
|
|
5298
|
+
C && D.match(C) && (D = dateNF_fix(D, p.dateNF, D.match(C) || []), R = 1), p.cellDates ? (S.t = "d", S.v = parseDate(D, R)) : (S.t = "n", S.v = datenum(parseDate(D, R))), p.cellText !== !1 && (S.w = SSF_format(S.z, S.v instanceof Date ? datenum(S.v) : S.v)), p.cellNF || delete S.z;
|
|
5299
5299
|
} else
|
|
5300
|
-
|
|
5301
|
-
if (
|
|
5300
|
+
S.t = "s", S.v = D;
|
|
5301
|
+
if (S.t == "z" || (p.dense ? (h[_] || (h[_] = []), h[_][A] = S) : h[encode_cell({ c: A, r: _ })] = S), k = I + 1, H = c.charCodeAt(k), u.e.c < A && (u.e.c = A), u.e.r < _ && (u.e.r = _), F == z) ++A;
|
|
5302
5302
|
else if (A = 0, ++_, p.sheetRows && p.sheetRows <= _) return !0;
|
|
5303
5303
|
}
|
|
5304
5304
|
e: for (; I < c.length; ++I) switch (F = c.charCodeAt(I)) {
|
|
@@ -5748,7 +5748,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
5748
5748
|
}
|
|
5749
5749
|
return b[1].v = P, b;
|
|
5750
5750
|
}
|
|
5751
|
-
function
|
|
5751
|
+
function C(N, V) {
|
|
5752
5752
|
var b = z(N), P = N.read_shift(4), j = N.read_shift(4), se = N.read_shift(2);
|
|
5753
5753
|
if (se == 65535)
|
|
5754
5754
|
return P === 0 && j === 3221225472 ? (b[1].t = "e", b[1].v = 15) : P === 0 && j === 3489660928 ? (b[1].t = "e", b[1].v = 42) : b[1].v = 0, b;
|
|
@@ -5763,10 +5763,10 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
5763
5763
|
return P < 0 && (se = 1, P = -P), le = Math.log2(P) | 0, P /= Math.pow(2, le - 31), Z = P >>> 0, (Z & 2147483648) == 0 && (P /= 2, ++le, Z = P >>> 0), P -= Z, Z |= 2147483648, Z >>>= 0, P *= Math.pow(2, 32), ie = P >>> 0, j.write_shift(4, ie), j.write_shift(4, Z), le += 16383 + (se ? 32768 : 0), j.write_shift(2, le), j;
|
|
5764
5764
|
}
|
|
5765
5765
|
function D(N, V) {
|
|
5766
|
-
var b =
|
|
5766
|
+
var b = C(N);
|
|
5767
5767
|
return N.l += V - 14, b;
|
|
5768
5768
|
}
|
|
5769
|
-
function
|
|
5769
|
+
function S(N, V) {
|
|
5770
5770
|
var b = z(N), P = N.read_shift(4);
|
|
5771
5771
|
return b[1].v = P >> 6, b;
|
|
5772
5772
|
}
|
|
@@ -5992,7 +5992,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
5992
5992
|
/*::[*/
|
|
5993
5993
|
22: { n: "LABEL16", f: G },
|
|
5994
5994
|
/*::[*/
|
|
5995
|
-
23: { n: "NUMBER17", f:
|
|
5995
|
+
23: { n: "NUMBER17", f: C },
|
|
5996
5996
|
/*::[*/
|
|
5997
5997
|
24: { n: "NUMBER18", f: H },
|
|
5998
5998
|
/*::[*/
|
|
@@ -6018,7 +6018,7 @@ var DBF = /* @__PURE__ */ function() {
|
|
|
6018
6018
|
/*::[*/
|
|
6019
6019
|
35: { n: "??" },
|
|
6020
6020
|
/*::[*/
|
|
6021
|
-
37: { n: "NUMBER25", f:
|
|
6021
|
+
37: { n: "NUMBER25", f: S },
|
|
6022
6022
|
/*::[*/
|
|
6023
6023
|
38: { n: "??" },
|
|
6024
6024
|
/*::[*/
|
|
@@ -7652,18 +7652,18 @@ function stringify_formula(e, r, t, a, n) {
|
|
|
7652
7652
|
H && H.slice(0, 6) == "_xlfn." && !n.xlfn && (H = H.slice(6)), l.push(H);
|
|
7653
7653
|
break;
|
|
7654
7654
|
case "PtgNameX":
|
|
7655
|
-
var
|
|
7655
|
+
var C = k[1][1];
|
|
7656
7656
|
p = k[1][2];
|
|
7657
7657
|
var O;
|
|
7658
7658
|
if (n.biff <= 5)
|
|
7659
|
-
|
|
7659
|
+
C < 0 && (C = -C), a[C] && (O = a[C][p]);
|
|
7660
7660
|
else {
|
|
7661
7661
|
var D = "";
|
|
7662
|
-
if (((a[
|
|
7662
|
+
if (((a[C] || [])[0] || [])[0] == 14849 || (((a[C] || [])[0] || [])[0] == 1025 ? a[C][p] && a[C][p].itab > 0 && (D = a.SheetNames[a[C][p].itab - 1] + "!") : D = a.SheetNames[p - 1] + "!"), a[C] && a[C][p]) D += a[C][p].Name;
|
|
7663
7663
|
else if (a[0] && a[0][p]) D += a[0][p].Name;
|
|
7664
7664
|
else {
|
|
7665
|
-
var
|
|
7666
|
-
|
|
7665
|
+
var S = (get_ixti_raw(a, C, n) || "").split(";;");
|
|
7666
|
+
S[p - 1] ? D = S[p - 1] : D += "SH33TJSERRX";
|
|
7667
7667
|
}
|
|
7668
7668
|
l.push(D);
|
|
7669
7669
|
break;
|
|
@@ -14417,15 +14417,15 @@ function sheet_add_dom(e, r, t) {
|
|
|
14417
14417
|
if (!(a.display && is_dom_element_hidden(G))) {
|
|
14418
14418
|
var F = G.hasAttribute("data-v") ? G.getAttribute("data-v") : G.hasAttribute("v") ? G.getAttribute("v") : htmldecode(G.innerHTML), H = G.getAttribute("data-z") || G.getAttribute("z");
|
|
14419
14419
|
for (p = 0; p < m.length; ++p) {
|
|
14420
|
-
var
|
|
14421
|
-
|
|
14420
|
+
var C = m[p];
|
|
14421
|
+
C.s.c == A + i && C.s.r < u + n && u + n <= C.e.r && (A = C.e.c + 1 - i, p = -1);
|
|
14422
14422
|
}
|
|
14423
14423
|
k = +G.getAttribute("colspan") || 1, ((B = +G.getAttribute("rowspan") || 1) > 1 || k > 1) && m.push({ s: { r: u + n, c: A + i }, e: { r: u + n + (B || 1) - 1, c: A + i + (k || 1) - 1 } });
|
|
14424
14424
|
var O = { t: "s", v: F }, D = G.getAttribute("data-t") || G.getAttribute("t") || "";
|
|
14425
14425
|
F != null && (F.length == 0 ? O.t = D || "z" : a.raw || F.trim().length == 0 || D == "s" || (F === "TRUE" ? O = { t: "b", v: !0 } : F === "FALSE" ? O = { t: "b", v: !1 } : isNaN(fuzzynum(F)) ? isNaN(fuzzydate(F).getDate()) || (O = { t: "d", v: parseDate(F) }, a.cellDates || (O = { t: "n", v: datenum(O.v) }), O.z = a.dateNF || table_fmt[14]) : O = { t: "n", v: fuzzynum(F) })), O.z === void 0 && H != null && (O.z = H);
|
|
14426
|
-
var
|
|
14427
|
-
if (R && R.length) for (var ee = 0; ee < R.length && !(R[ee].hasAttribute("href") && (
|
|
14428
|
-
|
|
14426
|
+
var S = "", R = G.getElementsByTagName("A");
|
|
14427
|
+
if (R && R.length) for (var ee = 0; ee < R.length && !(R[ee].hasAttribute("href") && (S = R[ee].getAttribute("href"), S.charAt(0) != "#")); ++ee) ;
|
|
14428
|
+
S && S.charAt(0) != "#" && (O.l = { Target: S }), a.dense ? (e[u + n] || (e[u + n] = []), e[u + n][A + i] = O) : e[encode_cell({ c: A + i, r: u + n })] = O, f.e.c < A + i && (f.e.c = A + i), A += k;
|
|
14429
14429
|
}
|
|
14430
14430
|
}
|
|
14431
14431
|
++u;
|
|
@@ -15001,23 +15001,23 @@ function write_numbers_iwa(e, r) {
|
|
|
15001
15001
|
H[1] = H[2] = [{ type: 0, data: write_varint49(F + 420690) }], G[1].push({ type: 2, data: write_shallow(H) }), G[2].push({ type: 0, data: write_varint49(F) }), G[3].push({ type: 0, data: write_varint49(F) });
|
|
15002
15002
|
}
|
|
15003
15003
|
G[4] = [], G[5] = [], G[6] = [];
|
|
15004
|
-
for (var
|
|
15005
|
-
H = [], H[1] = H[2] = [{ type: 0, data: write_varint49(
|
|
15004
|
+
for (var C = 0; C <= a.e.r; ++C)
|
|
15005
|
+
H = [], H[1] = H[2] = [{ type: 0, data: write_varint49(C + 726270) }], G[4].push({ type: 2, data: write_shallow(H) }), G[5].push({ type: 0, data: write_varint49(C) }), G[6].push({ type: 0, data: write_varint49(C) });
|
|
15006
15006
|
I[z].messages[0].data = write_shallow(G);
|
|
15007
15007
|
}
|
|
15008
15008
|
k.content = compress_iwa_file(write_iwa_file(I)), k.size = k.content.length, delete A[46];
|
|
15009
15009
|
var O = parse_shallow(A[4][0].data);
|
|
15010
15010
|
{
|
|
15011
15011
|
O[7][0].data = write_varint49(a.e.r + 1);
|
|
15012
|
-
var D = parse_shallow(O[1][0].data),
|
|
15013
|
-
k = CFB.find(f, l[
|
|
15012
|
+
var D = parse_shallow(O[1][0].data), S = parse_TSP_Reference(D[2][0].data);
|
|
15013
|
+
k = CFB.find(f, l[S].location), I = parse_iwa_file(decompress_iwa_file(k.content));
|
|
15014
15014
|
{
|
|
15015
|
-
if (I[0].id !=
|
|
15015
|
+
if (I[0].id != S)
|
|
15016
15016
|
throw "Bad HeaderStorageBucket";
|
|
15017
15017
|
var R = parse_shallow(I[0].messages[0].data);
|
|
15018
|
-
for (
|
|
15018
|
+
for (C = 0; C < i.length; ++C) {
|
|
15019
15019
|
var ee = parse_shallow(R[2][0].data);
|
|
15020
|
-
ee[1][0].data = write_varint49(
|
|
15020
|
+
ee[1][0].data = write_varint49(C), ee[4][0].data = write_varint49(i[C].length), R[2][C] = { type: R[2][0].type, data: write_shallow(ee) };
|
|
15021
15021
|
}
|
|
15022
15022
|
I[0].messages[0].data = write_shallow(R);
|
|
15023
15023
|
}
|
|
@@ -15708,8 +15708,8 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15708
15708
|
u.TitleArray && u.TitleArray.length > 0 ? _ = u.TitleArray.map((z, G) => `<tr><th colspan='100' style="font-size:${20 - G * 3}px;border:none;">${z}</th></tr>`).join("") : _ = `<tr><th colspan='100' style='font-size:20px;border:none'>${t.title}</th></tr>`, u.FootArray && u.FootArray.length > 0 && (A = u.FootArray.map((z) => `<tr><td colspan='100' style="font-size:18ddpx;border:none;text-align:right">${z}</td></tr>`).join(""));
|
|
15709
15709
|
let B = t.columnArray, k = h.map(
|
|
15710
15710
|
(z, G) => `<tr>${B.map((F, H) => {
|
|
15711
|
-
let
|
|
15712
|
-
return
|
|
15711
|
+
let C = c(z, F, H, G);
|
|
15712
|
+
return C.colspan == "0" || C.rowspan == "0" ? "" : `<td rowspan="${C.rowspan > 1 ? C.rowspan : ""}" colspan="${C.colspan > 1 ? C.colspan : ""}">${o(z, F.title)}</td>`;
|
|
15713
15713
|
}).join("")}</tr>`
|
|
15714
15714
|
).join(""), I = "";
|
|
15715
15715
|
return t.columnArray.filter((z) => z.isSummary).length > 0 && (I = `<tr>${d().map((z) => `<td>${z}</td>`).join("")}</tr>`), `
|
|
@@ -15913,7 +15913,10 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15913
15913
|
_: 3
|
|
15914
15914
|
}, 8, ["title", "modelValue", "fullscreen", "top", "width", "show-close", "modal"]));
|
|
15915
15915
|
}
|
|
15916
|
-
}, byDialog = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-19c47856"]]), _hoisted_1$f = { style: { height: "100%", width: "100%" } }, _hoisted_2$9 = {
|
|
15916
|
+
}, byDialog = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-19c47856"]]), _hoisted_1$f = { style: { height: "100%", width: "100%" } }, _hoisted_2$9 = {
|
|
15917
|
+
key: 0,
|
|
15918
|
+
style: { color: "cornflowerblue" }
|
|
15919
|
+
}, _hoisted_3$7 = { style: { position: "absolute", display: "inline-block" } }, _hoisted_4$6 = { style: { top: "2px", position: "relative" } }, _hoisted_5$5 = {
|
|
15917
15920
|
key: 1,
|
|
15918
15921
|
class: "myicon",
|
|
15919
15922
|
"aria-hidden": "true",
|
|
@@ -15945,67 +15948,67 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
15945
15948
|
emits: ["command", "select"],
|
|
15946
15949
|
setup(e, { expose: r, emit: t }) {
|
|
15947
15950
|
ref([]), ref();
|
|
15948
|
-
const a = ref([]), n = ref([]), i = reactive({ IsVisible: !1, dataArray: [], isShowPic: !1, PicUrl: "" }), s = e, l = (
|
|
15949
|
-
i.isShowPic = !0, i.PicUrl =
|
|
15950
|
-
}, o = (
|
|
15951
|
+
const a = ref([]), n = ref([]), i = reactive({ IsVisible: !1, dataArray: [], isShowPic: !1, PicUrl: "" }), s = e, l = (C) => {
|
|
15952
|
+
i.isShowPic = !0, i.PicUrl = C;
|
|
15953
|
+
}, o = (C) => {
|
|
15951
15954
|
try {
|
|
15952
|
-
let O = /* @__PURE__ */ new Date(), D =
|
|
15955
|
+
let O = /* @__PURE__ */ new Date(), D = C.ToDateTime();
|
|
15953
15956
|
return O > D ? "red" : (O = O.AddDays(30), O > D ? "#f6d00c" : "inherit");
|
|
15954
15957
|
} catch {
|
|
15955
15958
|
}
|
|
15956
|
-
}, f = ({ row:
|
|
15959
|
+
}, f = ({ row: C, column: O, columnIndex: D, rowIndex: S }) => {
|
|
15957
15960
|
if (O.property == null) return { rowspan: 1, colspan: 1 };
|
|
15958
15961
|
let R = O.property, ee = a.value.FirstOrDefault((re) => re.dataKey == R);
|
|
15959
15962
|
if (ee == null || !ee.isHeBing) return { rowspan: 1, colspan: 1 };
|
|
15960
|
-
let ne =
|
|
15961
|
-
if (
|
|
15963
|
+
let ne = C[R];
|
|
15964
|
+
if (S > 0 && ne == n.value[S - 1][R])
|
|
15962
15965
|
return { rowspan: 0, colspan: 0 };
|
|
15963
15966
|
let ce = 0;
|
|
15964
|
-
for (let re =
|
|
15967
|
+
for (let re = S; re < n.value.length && n.value[re][R] == ne; re++)
|
|
15965
15968
|
ce++;
|
|
15966
15969
|
return {
|
|
15967
15970
|
rowspan: ce,
|
|
15968
15971
|
colspan: 1
|
|
15969
15972
|
};
|
|
15970
|
-
}, c = (
|
|
15971
|
-
for (let D = 0; D <
|
|
15972
|
-
if (O(
|
|
15973
|
+
}, c = (C, O) => {
|
|
15974
|
+
for (let D = 0; D < C.length; D++)
|
|
15975
|
+
if (O(C[D])) return C[D];
|
|
15973
15976
|
return null;
|
|
15974
|
-
}, m = async (
|
|
15977
|
+
}, m = async (C) => {
|
|
15975
15978
|
let O = n.value.filter((D) => D.src.checked);
|
|
15976
|
-
return O.length == 0 && (await ElMessageBox.confirm(L(`您尚未选择任何数据!您是想${
|
|
15979
|
+
return O.length == 0 && (await ElMessageBox.confirm(L(`您尚未选择任何数据!您是想${C}全部数据吗??`), L(`数据${C}确认`), {
|
|
15977
15980
|
cancelButtonText: L("取消"),
|
|
15978
15981
|
confirmButtonText: L("确定")
|
|
15979
|
-
}), O = n.value), O = s.fnGetSelectData(O,
|
|
15980
|
-
let
|
|
15982
|
+
}), O = n.value), O = s.fnGetSelectData(O, C), O.map((D) => {
|
|
15983
|
+
let S = {};
|
|
15981
15984
|
for (let R in D) {
|
|
15982
15985
|
if (R == "src") {
|
|
15983
|
-
|
|
15986
|
+
C == "打印" && (S[R] = D.src);
|
|
15984
15987
|
continue;
|
|
15985
15988
|
}
|
|
15986
15989
|
let ee = c(a.value, (ne) => ne.dataKey == R);
|
|
15987
|
-
ee != null && (
|
|
15990
|
+
ee != null && (S[ee.title] = D[R]);
|
|
15988
15991
|
}
|
|
15989
|
-
return
|
|
15992
|
+
return S;
|
|
15990
15993
|
});
|
|
15991
15994
|
}, p = async () => {
|
|
15992
|
-
let
|
|
15993
|
-
console.log(
|
|
15994
|
-
let O = 0, D =
|
|
15995
|
-
for (let re in
|
|
15996
|
-
O++,
|
|
15995
|
+
let C = await m("导出");
|
|
15996
|
+
console.log(C);
|
|
15997
|
+
let O = 0, D = C.length, S = [];
|
|
15998
|
+
for (let re in C[0])
|
|
15999
|
+
O++, S.push(re);
|
|
15997
16000
|
let R = [];
|
|
15998
16001
|
s.printOption.TitleArray.forEach((re) => {
|
|
15999
16002
|
R.push([re]);
|
|
16000
|
-
}), R.push(
|
|
16001
|
-
for (let re = 0; re <
|
|
16002
|
-
let xe =
|
|
16003
|
+
}), R.push(S);
|
|
16004
|
+
for (let re = 0; re < C.length; re++) {
|
|
16005
|
+
let xe = S.map((he) => C[re][he]);
|
|
16003
16006
|
R.push(xe);
|
|
16004
16007
|
}
|
|
16005
16008
|
s.printOption.FootArray.forEach((re) => {
|
|
16006
16009
|
R.push([re]);
|
|
16007
16010
|
});
|
|
16008
|
-
const ee = utils.aoa_to_sheet(R, { header:
|
|
16011
|
+
const ee = utils.aoa_to_sheet(R, { header: S });
|
|
16009
16012
|
let ne = [];
|
|
16010
16013
|
for (let re = 0; re < s.printOption.TitleArray.length; re++)
|
|
16011
16014
|
ne.push({ s: { r: re, c: 0 }, e: { r: re, c: O - 1 } });
|
|
@@ -16014,7 +16017,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16014
16017
|
ne.push({ s: { r: xe, c: 0 }, e: { r: xe, c: O - 1 } });
|
|
16015
16018
|
}
|
|
16016
16019
|
for (let re = 0; re < O; re++) {
|
|
16017
|
-
let xe =
|
|
16020
|
+
let xe = S[re], he = a.value.FirstOrDefault((V) => V.title == xe);
|
|
16018
16021
|
if (he == null || !he.isHeBing) continue;
|
|
16019
16022
|
let ve, ge = 0, N = 0;
|
|
16020
16023
|
for (let V = 0; V < R.length; V++) {
|
|
@@ -16044,14 +16047,14 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16044
16047
|
utils.book_append_sheet(ce, ee, "sheet1"), writeFileSync(ce, s.tabName + L("导出") + ".xlsx");
|
|
16045
16048
|
};
|
|
16046
16049
|
let d = /^[+-]?([0-9]+[.][0-9]*|[.][0-9]+)$/;
|
|
16047
|
-
const h = ({ columns:
|
|
16050
|
+
const h = ({ columns: C, data: O }) => {
|
|
16048
16051
|
let D = [];
|
|
16049
|
-
return
|
|
16052
|
+
return C.forEach((S, R) => {
|
|
16050
16053
|
if (R === 0) {
|
|
16051
16054
|
D[R] = L("合计");
|
|
16052
16055
|
return;
|
|
16053
16056
|
}
|
|
16054
|
-
let ee = a.value.FirstOrDefault((ce) => ce.dataKey ==
|
|
16057
|
+
let ee = a.value.FirstOrDefault((ce) => ce.dataKey == S.property && ce.isSummary);
|
|
16055
16058
|
if (ee == null) {
|
|
16056
16059
|
D[R] = "";
|
|
16057
16060
|
return;
|
|
@@ -16067,75 +16070,75 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16067
16070
|
}
|
|
16068
16071
|
}), ne && (D[R] = D[R].toFixed(2));
|
|
16069
16072
|
}), D;
|
|
16070
|
-
}, u = async (
|
|
16071
|
-
let D =
|
|
16073
|
+
}, u = async (C, O) => {
|
|
16074
|
+
let D = C[O.dataKey];
|
|
16072
16075
|
if (D == "合计") return D;
|
|
16073
16076
|
if (O.EnumType) {
|
|
16074
|
-
let
|
|
16075
|
-
for (let R in
|
|
16076
|
-
if (
|
|
16077
|
+
let S = O.EnumType;
|
|
16078
|
+
for (let R in S)
|
|
16079
|
+
if (S[R] == D) return L(R);
|
|
16077
16080
|
return "";
|
|
16078
16081
|
}
|
|
16079
|
-
return O.FnGet ? await O.FnGet(
|
|
16080
|
-
}, _ = (
|
|
16081
|
-
|
|
16082
|
+
return O.FnGet ? await O.FnGet(C) : D;
|
|
16083
|
+
}, _ = (C) => {
|
|
16084
|
+
C.srcFilter = C.srcFilter || C.filters, C.filterText == "" ? C.filters = C.srcFilter : C.filters = C.srcFilter.filter((O) => O.text.indexOf(C.filterText) >= 0);
|
|
16082
16085
|
};
|
|
16083
16086
|
window.__id || (window.__id = 1);
|
|
16084
16087
|
const A = () => __id++, B = computed({
|
|
16085
|
-
get: () => a.value.some((
|
|
16088
|
+
get: () => a.value.some((C) => C.isSummary)
|
|
16086
16089
|
});
|
|
16087
16090
|
watch(
|
|
16088
16091
|
() => s.data,
|
|
16089
|
-
(
|
|
16092
|
+
(C, O) => {
|
|
16090
16093
|
I(!0);
|
|
16091
16094
|
}
|
|
16092
16095
|
), onMounted(() => {
|
|
16093
16096
|
I(!0);
|
|
16094
16097
|
});
|
|
16095
|
-
const k = async (
|
|
16096
|
-
|
|
16097
|
-
}, I = async (
|
|
16098
|
-
if (
|
|
16098
|
+
const k = async (C) => {
|
|
16099
|
+
C.filterList = C.filters.Where((O) => !C.filterList.Exists((D) => D == O.text)).Select((O) => O.text), await I(!0), C.isVisible = !1;
|
|
16100
|
+
}, I = async (C) => {
|
|
16101
|
+
if (C) {
|
|
16099
16102
|
let D = [];
|
|
16100
|
-
s.columnArray.forEach((
|
|
16103
|
+
s.columnArray.forEach((S) => {
|
|
16101
16104
|
let R = {};
|
|
16102
|
-
for (let ee in
|
|
16105
|
+
for (let ee in S) R[ee] = S[ee];
|
|
16103
16106
|
R.isFilter && (R.filters || (R.filterText = "", R.filterList = [], R.filters = [], R.Id = A())), D.push(R);
|
|
16104
16107
|
}), a.value = D;
|
|
16105
16108
|
}
|
|
16106
16109
|
let O = [];
|
|
16107
16110
|
for (let D = 0; D < s.data.length; D++) {
|
|
16108
|
-
let
|
|
16109
|
-
|
|
16111
|
+
let S = s.data[D];
|
|
16112
|
+
S.src = S;
|
|
16110
16113
|
let R = {};
|
|
16111
16114
|
for (let ee = 0; ee < a.value.length; ee++) {
|
|
16112
16115
|
let ne = a.value[ee];
|
|
16113
|
-
R[ne.dataKey] = await u(
|
|
16116
|
+
R[ne.dataKey] = await u(S, ne);
|
|
16114
16117
|
}
|
|
16115
|
-
R.src =
|
|
16118
|
+
R.src = S, O.push(R);
|
|
16116
16119
|
}
|
|
16117
|
-
|
|
16120
|
+
C && a.value.forEach((D) => {
|
|
16118
16121
|
if (D.isFilter) {
|
|
16119
|
-
let
|
|
16122
|
+
let S = [];
|
|
16120
16123
|
O.forEach((R) => {
|
|
16121
16124
|
let ee = R[D.dataKey];
|
|
16122
|
-
|
|
16123
|
-
}), D.filters =
|
|
16125
|
+
S.some((ne) => ne.value == ee) || S.push({ text: ee, value: ee });
|
|
16126
|
+
}), D.filters = S;
|
|
16124
16127
|
}
|
|
16125
16128
|
}), n.value = O.filter((D) => {
|
|
16126
|
-
for (let
|
|
16127
|
-
let R = a.value[
|
|
16129
|
+
for (let S = 0; S < a.value.length; S++) {
|
|
16130
|
+
let R = a.value[S];
|
|
16128
16131
|
if (R.isFilter && R.filterList && R.filterList.length > 0 && !R.filterList.some((ee) => ee == D[R.dataKey]))
|
|
16129
16132
|
return !1;
|
|
16130
16133
|
}
|
|
16131
16134
|
return !0;
|
|
16132
16135
|
});
|
|
16133
|
-
}, z = t, G = (
|
|
16134
|
-
let D = s.commandArray.FirstOrDefault((
|
|
16135
|
-
D && (D.onClick ? D.onClick(O) : D.OnClick && D.OnClick(O)), z("command",
|
|
16136
|
-
}, F = (
|
|
16137
|
-
n.value.ForEach((O) => O.src.checked = !1),
|
|
16138
|
-
}, H = (
|
|
16136
|
+
}, z = t, G = (C, O) => {
|
|
16137
|
+
let D = s.commandArray.FirstOrDefault((S) => typeof S == "object" && S.Name == C);
|
|
16138
|
+
D && (D.onClick ? D.onClick(O) : D.OnClick && D.OnClick(O)), z("command", C, O);
|
|
16139
|
+
}, F = (C) => {
|
|
16140
|
+
n.value.ForEach((O) => O.src.checked = !1), C.forEach((O) => O.src.checked = !0), z("select", C);
|
|
16141
|
+
}, H = (C) => {
|
|
16139
16142
|
};
|
|
16140
16143
|
return r({
|
|
16141
16144
|
onUpdateData: I,
|
|
@@ -16143,7 +16146,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16143
16146
|
printData: async () => {
|
|
16144
16147
|
i.dataArray = await m("打印"), i.IsVisible = !0;
|
|
16145
16148
|
}
|
|
16146
|
-
}), (
|
|
16149
|
+
}), (C, O) => (openBlock(), createElementBlock("div", _hoisted_1$f, [
|
|
16147
16150
|
createVNode(unref(ElTable), {
|
|
16148
16151
|
data: n.value,
|
|
16149
16152
|
height: "full",
|
|
@@ -16174,43 +16177,43 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16174
16177
|
fixed: "left",
|
|
16175
16178
|
align: "center"
|
|
16176
16179
|
}, null, 8, ["label"])) : createCommentVNode("", !0),
|
|
16177
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.value.Where((D,
|
|
16180
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(a.value.Where((D, S) => (D.groupName || (D.groupName = S), !0)).GroupBy((D) => D.groupName), (D) => (openBlock(), createElementBlock(Fragment, null, [
|
|
16178
16181
|
D.length > 1 ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
16179
16182
|
key: 0,
|
|
16180
16183
|
label: D[0].groupName,
|
|
16181
16184
|
"min-width": D[0].width,
|
|
16182
16185
|
"show-overflow-tooltip": ""
|
|
16183
16186
|
}, {
|
|
16184
|
-
default: withCtx(({ row:
|
|
16187
|
+
default: withCtx(({ row: S }) => [
|
|
16185
16188
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(D, (R) => (openBlock(), createElementBlock("div", null, [
|
|
16186
16189
|
createTextVNode(toDisplayString(R.title) + ": ", 1),
|
|
16187
16190
|
R.color ? (openBlock(), createElementBlock("span", {
|
|
16188
16191
|
key: 1,
|
|
16189
16192
|
style: normalizeStyle("color:" + R.color)
|
|
16190
|
-
}, toDisplayString(
|
|
16193
|
+
}, toDisplayString(S[R.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_2$9, toDisplayString(S[R.dataKey]), 1))
|
|
16191
16194
|
]))), 256))
|
|
16192
16195
|
]),
|
|
16193
16196
|
_: 2
|
|
16194
|
-
}, 1032, ["label", "min-width"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(D, (
|
|
16195
|
-
prop:
|
|
16196
|
-
label: unref(L)(
|
|
16197
|
-
"min-width":
|
|
16197
|
+
}, 1032, ["label", "min-width"])) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(D, (S) => (openBlock(), createBlock(unref(ElTableColumn), {
|
|
16198
|
+
prop: S.dataKey,
|
|
16199
|
+
label: unref(L)(S.title),
|
|
16200
|
+
"min-width": S.width,
|
|
16198
16201
|
"show-overflow-tooltip": "",
|
|
16199
16202
|
align: "center"
|
|
16200
16203
|
}, {
|
|
16201
16204
|
header: withCtx(() => [
|
|
16202
|
-
createElementVNode("span", null, toDisplayString(unref(L)(
|
|
16203
|
-
|
|
16205
|
+
createElementVNode("span", null, toDisplayString(unref(L)(S.title)), 1),
|
|
16206
|
+
S.isFilter ? (openBlock(), createBlock(unref(ElPopover), {
|
|
16204
16207
|
trigger: "click",
|
|
16205
|
-
key:
|
|
16208
|
+
key: S.Id,
|
|
16206
16209
|
width: "400px",
|
|
16207
|
-
visible:
|
|
16208
|
-
"onUpdate:visible": (R) =>
|
|
16210
|
+
visible: S.isVisible,
|
|
16211
|
+
"onUpdate:visible": (R) => S.isVisible = R
|
|
16209
16212
|
}, {
|
|
16210
16213
|
reference: withCtx(() => [
|
|
16211
16214
|
createElementVNode("div", _hoisted_3$7, [
|
|
16212
16215
|
createElementVNode("div", _hoisted_4$6, [
|
|
16213
|
-
|
|
16216
|
+
S.filterList.length > 0 ? (openBlock(), createBlock(unref(ElIcon), {
|
|
16214
16217
|
key: 0,
|
|
16215
16218
|
class: "havfilter myicon"
|
|
16216
16219
|
}, {
|
|
@@ -16233,18 +16236,18 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16233
16236
|
default: withCtx(() => [
|
|
16234
16237
|
createElementVNode("div", null, [
|
|
16235
16238
|
createVNode(unref(ElInput), {
|
|
16236
|
-
modelValue:
|
|
16237
|
-
"onUpdate:modelValue": (R) =>
|
|
16238
|
-
onInput: (R) => _(
|
|
16239
|
+
modelValue: S.filterText,
|
|
16240
|
+
"onUpdate:modelValue": (R) => S.filterText = R,
|
|
16241
|
+
onInput: (R) => _(S)
|
|
16239
16242
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"]),
|
|
16240
16243
|
createVNode(unref(ElCheckboxGroup), {
|
|
16241
|
-
modelValue:
|
|
16242
|
-
"onUpdate:modelValue": (R) =>
|
|
16244
|
+
modelValue: S.filterList,
|
|
16245
|
+
"onUpdate:modelValue": (R) => S.filterList = R,
|
|
16243
16246
|
class: "filtercheck",
|
|
16244
16247
|
onChange: (R) => H()
|
|
16245
16248
|
}, {
|
|
16246
16249
|
default: withCtx(() => [
|
|
16247
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
16250
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(S.filters, (R) => (openBlock(), createBlock(unref(ElCheckbox), {
|
|
16248
16251
|
label: R.text,
|
|
16249
16252
|
value: R.text,
|
|
16250
16253
|
style: { width: "400px" }
|
|
@@ -16258,7 +16261,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16258
16261
|
size: "small",
|
|
16259
16262
|
type: "primary",
|
|
16260
16263
|
onClick: (R) => {
|
|
16261
|
-
I(!1),
|
|
16264
|
+
I(!1), S.isVisible = !1;
|
|
16262
16265
|
}
|
|
16263
16266
|
}, {
|
|
16264
16267
|
default: withCtx(() => [
|
|
@@ -16270,7 +16273,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16270
16273
|
size: "small",
|
|
16271
16274
|
type: "danger",
|
|
16272
16275
|
onClick: (R) => {
|
|
16273
|
-
|
|
16276
|
+
S.filterList = [], I(!1), S.isVisible = !1;
|
|
16274
16277
|
}
|
|
16275
16278
|
}, {
|
|
16276
16279
|
default: withCtx(() => [
|
|
@@ -16281,7 +16284,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16281
16284
|
createVNode(unref(ElButton), {
|
|
16282
16285
|
size: "small",
|
|
16283
16286
|
type: "primary",
|
|
16284
|
-
onClick: (R) => k(
|
|
16287
|
+
onClick: (R) => k(S)
|
|
16285
16288
|
}, {
|
|
16286
16289
|
default: withCtx(() => [
|
|
16287
16290
|
createTextVNode(toDisplayString(unref(L)("反选")), 1)
|
|
@@ -16294,48 +16297,48 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16294
16297
|
}, 1032, ["visible", "onUpdate:visible"])) : createCommentVNode("", !0)
|
|
16295
16298
|
]),
|
|
16296
16299
|
default: withCtx(({ row: R }) => [
|
|
16297
|
-
|
|
16298
|
-
|
|
16299
|
-
R[
|
|
16300
|
+
S.Type ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16301
|
+
S.Type == "PIC" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16302
|
+
R[S.dataKey] ? (openBlock(), createBlock(unref(ElLink), {
|
|
16300
16303
|
key: 0,
|
|
16301
16304
|
type: "primary",
|
|
16302
|
-
onClick: (ee) => l(R[
|
|
16305
|
+
onClick: (ee) => l(R[S.dataKey])
|
|
16303
16306
|
}, {
|
|
16304
16307
|
default: withCtx(() => O[2] || (O[2] = [
|
|
16305
16308
|
createTextVNode("查看")
|
|
16306
16309
|
])),
|
|
16307
16310
|
_: 2
|
|
16308
16311
|
}, 1032, ["onClick"])) : createCommentVNode("", !0)
|
|
16309
|
-
], 64)) :
|
|
16312
|
+
], 64)) : S.Type == "ICON" ? (openBlock(), createElementBlock("svg", _hoisted_5$5, [
|
|
16310
16313
|
createElementVNode("use", {
|
|
16311
|
-
"xlink:href": R[
|
|
16314
|
+
"xlink:href": R[S.dataKey]
|
|
16312
16315
|
}, null, 8, _hoisted_6$5)
|
|
16313
|
-
])) :
|
|
16316
|
+
])) : S.Type == "COLOR" ? (openBlock(), createElementBlock("div", {
|
|
16314
16317
|
key: 2,
|
|
16315
|
-
style: normalizeStyle("width: 100%;height: 100%;background-color:" + R[
|
|
16316
|
-
}, " ", 4)) :
|
|
16318
|
+
style: normalizeStyle("width: 100%;height: 100%;background-color:" + R[S.dataKey])
|
|
16319
|
+
}, " ", 4)) : S.Type == "DATE" ? (openBlock(), createElementBlock("span", {
|
|
16317
16320
|
key: 3,
|
|
16318
|
-
style: normalizeStyle("color:" + o(R[
|
|
16319
|
-
}, toDisplayString(R[
|
|
16320
|
-
|
|
16321
|
+
style: normalizeStyle("color:" + o(R[S.dataKey]))
|
|
16322
|
+
}, toDisplayString(R[S.dataKey]), 5)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
16323
|
+
S.color ? (openBlock(), createElementBlock("span", {
|
|
16321
16324
|
key: 1,
|
|
16322
|
-
style: normalizeStyle("color:" +
|
|
16323
|
-
}, toDisplayString(R[
|
|
16325
|
+
style: normalizeStyle("color:" + S.color)
|
|
16326
|
+
}, toDisplayString(R[S.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_7$5, toDisplayString(R[S.dataKey]), 1))
|
|
16324
16327
|
], 64))
|
|
16325
|
-
], 64)) :
|
|
16328
|
+
], 64)) : S.OnClick ? (openBlock(), createBlock(unref(ElLink), {
|
|
16326
16329
|
key: 1,
|
|
16327
16330
|
type: "success",
|
|
16328
|
-
onClick: (ee) =>
|
|
16331
|
+
onClick: (ee) => S.OnClick(R)
|
|
16329
16332
|
}, {
|
|
16330
16333
|
default: withCtx(() => [
|
|
16331
|
-
createTextVNode(toDisplayString(R[
|
|
16334
|
+
createTextVNode(toDisplayString(R[S.dataKey]), 1)
|
|
16332
16335
|
]),
|
|
16333
16336
|
_: 2
|
|
16334
16337
|
}, 1032, ["onClick"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
16335
|
-
|
|
16338
|
+
S.color ? (openBlock(), createElementBlock("span", {
|
|
16336
16339
|
key: 1,
|
|
16337
|
-
style: normalizeStyle("color:" +
|
|
16338
|
-
}, toDisplayString(R[
|
|
16340
|
+
style: normalizeStyle("color:" + S.color)
|
|
16341
|
+
}, toDisplayString(R[S.dataKey]), 5)) : (openBlock(), createElementBlock("span", _hoisted_8$5, toDisplayString(R[S.dataKey]), 1))
|
|
16339
16342
|
], 64))
|
|
16340
16343
|
]),
|
|
16341
16344
|
_: 2
|
|
@@ -16344,67 +16347,40 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16344
16347
|
s.commandArray.length > 0 ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
16345
16348
|
key: 2,
|
|
16346
16349
|
label: unref(L)("功能"),
|
|
16347
|
-
|
|
16350
|
+
width: s.toolWidth,
|
|
16348
16351
|
fixed: "right",
|
|
16349
16352
|
align: "center"
|
|
16350
16353
|
}, {
|
|
16351
16354
|
default: withCtx(({ row: D }) => [
|
|
16352
|
-
s.commandArray.Where((
|
|
16353
|
-
(
|
|
16354
|
-
|
|
16355
|
-
typeof C == "string" ? (openBlock(), createBlock(unref(ElLink), {
|
|
16356
|
-
key: 0,
|
|
16357
|
-
style: { margin: "0 5px" },
|
|
16358
|
-
type: C == "删除" ? "danger" : "primary",
|
|
16359
|
-
onClick: (ee) => G(C, D)
|
|
16360
|
-
}, {
|
|
16361
|
-
default: withCtx(() => [
|
|
16362
|
-
createTextVNode(toDisplayString(C), 1)
|
|
16363
|
-
]),
|
|
16364
|
-
_: 2
|
|
16365
|
-
}, 1032, ["type", "onClick"])) : !C.IsShow || C.IsShow(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
16366
|
-
!C.CheckPower || s.powerArray.Exists((ee) => ee.Name == C.Name) ? (openBlock(), createBlock(unref(ElLink), {
|
|
16367
|
-
key: 0,
|
|
16368
|
-
style: { margin: "0 5px" },
|
|
16369
|
-
type: C.Name == "删除" ? "danger" : "primary",
|
|
16370
|
-
onClick: (ee) => G(C.Name, D),
|
|
16371
|
-
disabled: C.IsDisabled ? C.IsDisabled(D) : !1
|
|
16372
|
-
}, {
|
|
16373
|
-
default: withCtx(() => [
|
|
16374
|
-
createTextVNode(toDisplayString(C.Name), 1)
|
|
16375
|
-
]),
|
|
16376
|
-
_: 2
|
|
16377
|
-
}, 1032, ["type", "onClick", "disabled"])) : createCommentVNode("", !0)
|
|
16378
|
-
], 64)) : createCommentVNode("", !0)
|
|
16379
|
-
], 64)) : createCommentVNode("", !0)
|
|
16380
|
-
], 64))), 256)),
|
|
16381
|
-
s.commandArray.Where((C) => C.IsShow ? C.IsShow(D, s.powerArray) : !0).length > s.maxCommand ? (openBlock(), createBlock(unref(ElDropdown), {
|
|
16382
|
-
key: 0,
|
|
16383
|
-
onCommand: (C) => G(C, D)
|
|
16355
|
+
s.commandArray.Where((S) => S.IsShow || S.isShow ? (S.IsShow || S.isShow)(D, s.powerArray) : !0).length > s.maxCommand ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16356
|
+
createVNode(unref(ElDropdown), {
|
|
16357
|
+
onCommand: (S) => G(S, D)
|
|
16384
16358
|
}, {
|
|
16385
16359
|
dropdown: withCtx(() => [
|
|
16386
16360
|
createVNode(unref(ElDropdownMenu), null, {
|
|
16387
16361
|
default: withCtx(() => [
|
|
16388
|
-
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.commandArray, (
|
|
16389
|
-
|
|
16390
|
-
|
|
16391
|
-
command: C
|
|
16392
|
-
}, {
|
|
16393
|
-
default: withCtx(() => [
|
|
16394
|
-
createTextVNode(toDisplayString(unref(L)(C)), 1)
|
|
16395
|
-
]),
|
|
16396
|
-
_: 2
|
|
16397
|
-
}, 1032, ["command"])) : !C.IsShow || C.IsShow(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
16398
|
-
!C.CheckPower || s.powerArray.Exists((R) => R.Name == C.Name) ? (openBlock(), createBlock(unref(ElDropdownItem), {
|
|
16362
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.commandArray, (S, R) => (openBlock(), createElementBlock(Fragment, null, [
|
|
16363
|
+
R < s.commandArray.lang - s.maxCommand ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16364
|
+
typeof S == "string" ? (openBlock(), createBlock(unref(ElDropdownItem), {
|
|
16399
16365
|
key: 0,
|
|
16400
|
-
command:
|
|
16401
|
-
disabled: C.IsDisabled ? C.IsDisabled(D) : !1
|
|
16366
|
+
command: S
|
|
16402
16367
|
}, {
|
|
16403
16368
|
default: withCtx(() => [
|
|
16404
|
-
createTextVNode(toDisplayString(unref(L)(
|
|
16369
|
+
createTextVNode(toDisplayString(unref(L)(S)), 1)
|
|
16405
16370
|
]),
|
|
16406
16371
|
_: 2
|
|
16407
|
-
}, 1032, ["command"
|
|
16372
|
+
}, 1032, ["command"])) : !(S.IsShow || S.isShow) || (S.IsShow || S.isShow)(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
16373
|
+
!S.CheckPower || s.powerArray.Exists((ee) => ee.Name == S.Name) ? (openBlock(), createBlock(unref(ElDropdownItem), {
|
|
16374
|
+
key: 0,
|
|
16375
|
+
command: S.Name,
|
|
16376
|
+
disabled: S.IsDisabled ? S.IsDisabled(D) : !1
|
|
16377
|
+
}, {
|
|
16378
|
+
default: withCtx(() => [
|
|
16379
|
+
createTextVNode(toDisplayString(unref(L)(S.Name)), 1)
|
|
16380
|
+
]),
|
|
16381
|
+
_: 2
|
|
16382
|
+
}, 1032, ["command", "disabled"])) : createCommentVNode("", !0)
|
|
16383
|
+
], 64)) : createCommentVNode("", !0)
|
|
16408
16384
|
], 64)) : createCommentVNode("", !0)
|
|
16409
16385
|
], 64))), 256))
|
|
16410
16386
|
]),
|
|
@@ -16412,36 +16388,67 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16412
16388
|
}, 1024)
|
|
16413
16389
|
]),
|
|
16414
16390
|
default: withCtx(() => [
|
|
16415
|
-
|
|
16416
|
-
|
|
16417
|
-
|
|
16418
|
-
|
|
16419
|
-
|
|
16420
|
-
|
|
16391
|
+
createElementVNode("span", null, [
|
|
16392
|
+
createTextVNode(toDisplayString(unref(L)("更多")), 1),
|
|
16393
|
+
createVNode(unref(ElIcon), null, {
|
|
16394
|
+
default: withCtx(() => [
|
|
16395
|
+
createVNode(unref(ArrowDown))
|
|
16396
|
+
]),
|
|
16397
|
+
_: 1
|
|
16398
|
+
})
|
|
16399
|
+
])
|
|
16421
16400
|
]),
|
|
16422
16401
|
_: 2
|
|
16423
|
-
}, 1032, ["onCommand"])
|
|
16424
|
-
|
|
16425
|
-
|
|
16402
|
+
}, 1032, ["onCommand"]),
|
|
16403
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(s.commandArray, (S, R) => (openBlock(), createElementBlock(Fragment, null, [
|
|
16404
|
+
R > s.maxCommand - 2 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
16405
|
+
typeof S == "string" ? (openBlock(), createBlock(unref(ElLink), {
|
|
16406
|
+
key: 0,
|
|
16407
|
+
style: { margin: "0 5px" },
|
|
16408
|
+
type: S == "删除" ? "danger" : "primary",
|
|
16409
|
+
onClick: (ee) => G(S, D)
|
|
16410
|
+
}, {
|
|
16411
|
+
default: withCtx(() => [
|
|
16412
|
+
createTextVNode(toDisplayString(S), 1)
|
|
16413
|
+
]),
|
|
16414
|
+
_: 2
|
|
16415
|
+
}, 1032, ["type", "onClick"])) : !(S.IsShow || S.isShow) || (S.IsShow || S.isShow)(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
16416
|
+
!S.CheckPower || s.powerArray.Exists((ee) => ee.Name == S.Name) ? (openBlock(), createBlock(unref(ElLink), {
|
|
16417
|
+
key: 0,
|
|
16418
|
+
style: { margin: "0 5px" },
|
|
16419
|
+
type: S.Name == "删除" ? "danger" : "primary",
|
|
16420
|
+
onClick: (ee) => G(S.Name, D),
|
|
16421
|
+
disabled: S.IsDisabled ? S.IsDisabled(D) : !1
|
|
16422
|
+
}, {
|
|
16423
|
+
default: withCtx(() => [
|
|
16424
|
+
createTextVNode(toDisplayString(S.Name), 1)
|
|
16425
|
+
]),
|
|
16426
|
+
_: 2
|
|
16427
|
+
}, 1032, ["type", "onClick", "disabled"])) : createCommentVNode("", !0)
|
|
16428
|
+
], 64)) : createCommentVNode("", !0)
|
|
16429
|
+
], 64)) : createCommentVNode("", !0)
|
|
16430
|
+
], 64))), 256))
|
|
16431
|
+
], 64)) : (openBlock(!0), createElementBlock(Fragment, { key: 1 }, renderList(s.commandArray, (S) => (openBlock(), createElementBlock(Fragment, null, [
|
|
16432
|
+
typeof S == "string" ? (openBlock(), createBlock(unref(ElLink), {
|
|
16426
16433
|
key: 0,
|
|
16427
16434
|
style: { margin: "0 5px" },
|
|
16428
|
-
type:
|
|
16429
|
-
onClick: (R) => G(
|
|
16435
|
+
type: S == "删除" ? "danger" : "primary",
|
|
16436
|
+
onClick: (R) => G(S, D)
|
|
16430
16437
|
}, {
|
|
16431
16438
|
default: withCtx(() => [
|
|
16432
|
-
createTextVNode(toDisplayString(
|
|
16439
|
+
createTextVNode(toDisplayString(S), 1)
|
|
16433
16440
|
]),
|
|
16434
16441
|
_: 2
|
|
16435
|
-
}, 1032, ["type", "onClick"])) : !
|
|
16436
|
-
!
|
|
16442
|
+
}, 1032, ["type", "onClick"])) : !(S.IsShow || S.isShow) || (S.IsShow || S.isShow)(D, s.powerArray) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
16443
|
+
!S.CheckPower || s.powerArray.Exists((R) => R.Name == S.Name) ? (openBlock(), createBlock(unref(ElLink), {
|
|
16437
16444
|
key: 0,
|
|
16438
16445
|
style: { margin: "0 5px" },
|
|
16439
|
-
type:
|
|
16440
|
-
onClick: (R) => G(
|
|
16441
|
-
disabled:
|
|
16446
|
+
type: S.Name == "删除" ? "danger" : "primary",
|
|
16447
|
+
onClick: (R) => G(S.Name, D),
|
|
16448
|
+
disabled: S.IsDisabled ? S.IsDisabled(D) : !1
|
|
16442
16449
|
}, {
|
|
16443
16450
|
default: withCtx(() => [
|
|
16444
|
-
createTextVNode(toDisplayString(
|
|
16451
|
+
createTextVNode(toDisplayString(S.Name), 1)
|
|
16445
16452
|
]),
|
|
16446
16453
|
_: 2
|
|
16447
16454
|
}, 1032, ["type", "onClick", "disabled"])) : createCommentVNode("", !0)
|
|
@@ -16449,7 +16456,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16449
16456
|
], 64))), 256))
|
|
16450
16457
|
]),
|
|
16451
16458
|
_: 1
|
|
16452
|
-
}, 8, ["label", "
|
|
16459
|
+
}, 8, ["label", "width"])) : createCommentVNode("", !0)
|
|
16453
16460
|
]),
|
|
16454
16461
|
_: 1
|
|
16455
16462
|
}, 8, ["data", "show-summary", "sum-text"]),
|
|
@@ -16479,7 +16486,7 @@ const _hoisted_1$h = { style: { display: "inline-block", width: "100px" } }, _ho
|
|
|
16479
16486
|
}, 8, ["modelValue", "url"])
|
|
16480
16487
|
]));
|
|
16481
16488
|
}
|
|
16482
|
-
}, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-
|
|
16489
|
+
}, DataList = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-887b5a3a"]]), CreateNewPrint = () => {
|
|
16483
16490
|
let config = { Pid: "" }, LODOP = getLodop();
|
|
16484
16491
|
return {
|
|
16485
16492
|
onMessage: (e, r) => {
|
|
@@ -16723,19 +16730,19 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16723
16730
|
case "批量删除": {
|
|
16724
16731
|
if (confirm(L(`数据删除后无法恢复!!\r
|
|
16725
16732
|
确认删除吗?`))) {
|
|
16726
|
-
let H = n.value.filter((
|
|
16733
|
+
let H = n.value.filter((C) => C.checked);
|
|
16727
16734
|
if (H.length == 0) return ElMessage({ message: L("未选择需要删除的数据"), type: "error" });
|
|
16728
16735
|
SafeCall$1(async () => {
|
|
16729
|
-
for (let
|
|
16730
|
-
let O = H[
|
|
16736
|
+
for (let C = 0; C < H.length; C++) {
|
|
16737
|
+
let O = H[C].Id;
|
|
16731
16738
|
await AjaxCallWeb(`${d}/${h.controller}/Delete`, {
|
|
16732
16739
|
Id: O
|
|
16733
|
-
}), ElMessage({ message: L("删除成功") + `(${
|
|
16740
|
+
}), ElMessage({ message: L("删除成功") + `(${C + 1}/${H.length})` });
|
|
16734
16741
|
}
|
|
16735
16742
|
ElMessage({
|
|
16736
16743
|
message: L("批量删除") + `:${H.length}` + L("条数据成功"),
|
|
16737
16744
|
type: "success"
|
|
16738
|
-
}), n.value = n.value.filter((
|
|
16745
|
+
}), n.value = n.value.filter((C) => !H.some((O) => O.Id == C.Id)), f.value.onUpdateData(!0);
|
|
16739
16746
|
}, L("数据删除中"));
|
|
16740
16747
|
}
|
|
16741
16748
|
break;
|
|
@@ -16759,8 +16766,8 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16759
16766
|
};
|
|
16760
16767
|
if (h.searchParam)
|
|
16761
16768
|
for (var H in h.searchParam) F[H] = h.searchParam[H];
|
|
16762
|
-
let
|
|
16763
|
-
|
|
16769
|
+
let C = await AjaxCallWeb(`${d}/${h.controller}/GetPage`, F);
|
|
16770
|
+
C.data ? (c.value = C.totalCount, C = C.data) : c.value = window.LastResult.totalRows, C.forEach((O) => u("handData", O, !1)), n.value = C;
|
|
16764
16771
|
}, L("数据查询中"));
|
|
16765
16772
|
return onMounted(async () => {
|
|
16766
16773
|
if (s.value = a.FilterItem, h.powerArray && h.powerArray.length > 0)
|
|
@@ -16978,24 +16985,24 @@ const SafeCall$1 = async (e, r) => {
|
|
|
16978
16985
|
if (k == B.length) {
|
|
16979
16986
|
if (I.forEach((G) => z.push(G)), I.length > 1) {
|
|
16980
16987
|
let G = { IgnoreSummary: !0, Rows: I }, F = !0, H = I[0];
|
|
16981
|
-
for (let
|
|
16982
|
-
for (let
|
|
16983
|
-
if (F && o.columnArray[
|
|
16984
|
-
G[o.columnArray[
|
|
16988
|
+
for (let C in H) G[C] = H[C];
|
|
16989
|
+
for (let C = 0; C < o.columnArray.length; C++)
|
|
16990
|
+
if (F && o.columnArray[C].isHeBing)
|
|
16991
|
+
G[o.columnArray[C].dataKey] = I[0][o.columnArray[C].dataKey];
|
|
16985
16992
|
else {
|
|
16986
16993
|
if (F) {
|
|
16987
|
-
F = !1, G[o.columnArray[
|
|
16994
|
+
F = !1, G[o.columnArray[C].dataKey] = "合计";
|
|
16988
16995
|
continue;
|
|
16989
16996
|
}
|
|
16990
|
-
if (o.columnArray[
|
|
16997
|
+
if (o.columnArray[C].isSummary) {
|
|
16991
16998
|
let O = !1, D = 0;
|
|
16992
|
-
for (let
|
|
16993
|
-
let R = I[
|
|
16999
|
+
for (let S = 0; S < I.length; S++) {
|
|
17000
|
+
let R = I[S][o.columnArray[C].dataKey];
|
|
16994
17001
|
!O && u.test(R) && (O = !0), D += R * 1;
|
|
16995
17002
|
}
|
|
16996
|
-
O ? G[o.columnArray[
|
|
17003
|
+
O ? G[o.columnArray[C].dataKey] = D.toFixed(2) : G[o.columnArray[C].dataKey] = D;
|
|
16997
17004
|
} else
|
|
16998
|
-
G[o.columnArray[
|
|
17005
|
+
G[o.columnArray[C].dataKey] = "-";
|
|
16999
17006
|
}
|
|
17000
17007
|
z.push(G);
|
|
17001
17008
|
}
|