sag-ubmp-pc 1.0.49 → 1.0.50
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/sag-ubmp-pc.es.js +151 -149
- package/dist/sag-ubmp-pc.umd.js +1 -1
- package/package.json +4 -4
package/dist/sag-ubmp-pc.es.js
CHANGED
|
@@ -160,7 +160,7 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
160
160
|
setDictDetail: function(e, n, t = A.application) {
|
|
161
161
|
return Rt(t, e, n);
|
|
162
162
|
}
|
|
163
|
-
}, Fe = "modal", lt = "open", rr = "confirm",
|
|
163
|
+
}, Fe = "modal", lt = "open", rr = "confirm", Ne = "sag_ubmp_pc_modal_instance_", or = (e) => rl(e, "buttonName"), ir = (e) => rl(e, "componentParams"), rl = (e, n) => s(e) && s(e[A.buttonKeyName]) ? e[A.buttonKeyName][n] : null, sr = (e) => s(e) && s(e[A.buttonKeyName]) ? e[A.buttonKeyName] : {}, ur = (e) => e._X_ROWS, cr = (e, n, t = {}) => {
|
|
164
164
|
const { span: a, placeholder: l, defaultValue: r, disabled: o } = t;
|
|
165
165
|
return {
|
|
166
166
|
field: e,
|
|
@@ -305,29 +305,31 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
305
305
|
headerAlign: "center"
|
|
306
306
|
};
|
|
307
307
|
}, br = (e = {}) => {
|
|
308
|
-
const { fixed: n = null, visible: t = !0 } = e;
|
|
308
|
+
const { fixed: n = null, visible: t = !0, treeNode: a = !1 } = e;
|
|
309
309
|
return {
|
|
310
310
|
field: "row_radio",
|
|
311
311
|
title: "",
|
|
312
|
-
minWidth: 50,
|
|
313
|
-
width: 50,
|
|
312
|
+
minWidth: a ? 60 : 50,
|
|
313
|
+
width: a ? 60 : 50,
|
|
314
314
|
fixed: n,
|
|
315
315
|
visible: t,
|
|
316
316
|
resizable: !1,
|
|
317
|
+
treeNode: a,
|
|
317
318
|
type: "radio",
|
|
318
319
|
align: "center",
|
|
319
320
|
headerAlign: "center"
|
|
320
321
|
};
|
|
321
322
|
}, yr = (e = {}) => {
|
|
322
|
-
const { fixed: n = null, visible: t = !0 } = e;
|
|
323
|
+
const { fixed: n = null, visible: t = !0, treeNode: a = !1 } = e;
|
|
323
324
|
return {
|
|
324
325
|
field: "row_check",
|
|
325
326
|
title: "",
|
|
326
|
-
minWidth: 50,
|
|
327
|
-
width: 50,
|
|
327
|
+
minWidth: a ? 60 : 50,
|
|
328
|
+
width: a ? 60 : 50,
|
|
328
329
|
fixed: n,
|
|
329
330
|
visible: t,
|
|
330
331
|
resizable: !1,
|
|
332
|
+
treeNode: a,
|
|
331
333
|
type: "checkbox",
|
|
332
334
|
align: "center",
|
|
333
335
|
headerAlign: "center"
|
|
@@ -551,7 +553,7 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
551
553
|
getVxePageLinkParams: ir,
|
|
552
554
|
getVxePageButtonProps: sr,
|
|
553
555
|
getVxePageRows: ur
|
|
554
|
-
},
|
|
556
|
+
}, Nn = (e) => {
|
|
555
557
|
const { mergeKey: n, seqKey: t, fields: a } = e;
|
|
556
558
|
return ({ row: r, _rowIndex: o, column: i, visibleData: u }) => {
|
|
557
559
|
if (n) {
|
|
@@ -629,7 +631,7 @@ const le = It("log"), Ka = It("warn"), vt = It("error"), at = {
|
|
|
629
631
|
const { field: i, datas: u, values: c } = o;
|
|
630
632
|
l[i] = u ? u.join(",") : c ? c.join(",") : "";
|
|
631
633
|
}), l;
|
|
632
|
-
},
|
|
634
|
+
}, Bn = (e, n, t = 1) => {
|
|
633
635
|
const a = document.documentElement.clientHeight * t, l = e && e.$el ? e.$el.offsetHeight : 0, r = a - l - 50;
|
|
634
636
|
n.height = r > n.minHeight ? r : n.minHeight;
|
|
635
637
|
}, Ke = (e, n, t) => {
|
|
@@ -682,7 +684,7 @@ function Dr(e, n, t) {
|
|
|
682
684
|
}
|
|
683
685
|
return { r: a * 255, g: l * 255, b: r * 255 };
|
|
684
686
|
}
|
|
685
|
-
function
|
|
687
|
+
function Nr(e, n, t) {
|
|
686
688
|
e = pe(e, 255), n = pe(n, 255), t = pe(t, 255);
|
|
687
689
|
var a = Math.max(e, n, t), l = Math.min(e, n, t), r = 0, o = a, i = a - l, u = a === 0 ? 0 : i / a;
|
|
688
690
|
if (a === l)
|
|
@@ -703,7 +705,7 @@ function Br(e, n, t) {
|
|
|
703
705
|
}
|
|
704
706
|
return { h: r, s: u, v: o };
|
|
705
707
|
}
|
|
706
|
-
function
|
|
708
|
+
function Br(e, n, t) {
|
|
707
709
|
e = pe(e, 360) * 6, n = pe(n, 100), t = pe(t, 100);
|
|
708
710
|
var a = Math.floor(e), l = e - a, r = t * (1 - n), o = t * (1 - l * n), i = t * (1 - (1 - l) * n), u = a % 6, c = [t, o, r, r, i, t][u], m = [i, t, t, o, r, r][u], f = [r, r, i, t, t, o][u];
|
|
709
711
|
return { r: c * 255, g: m * 255, b: f * 255 };
|
|
@@ -874,7 +876,7 @@ var In = {
|
|
|
874
876
|
};
|
|
875
877
|
function Ue(e) {
|
|
876
878
|
var n = { r: 0, g: 0, b: 0 }, t = 1, a = null, l = null, r = null, o = !1, i = !1;
|
|
877
|
-
return typeof e == "string" && (e = Er(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (n = qr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(e.h) && Ae(e.s) && Ae(e.v) ? (a = et(e.s), l = et(e.v), n =
|
|
879
|
+
return typeof e == "string" && (e = Er(e)), typeof e == "object" && (Ae(e.r) && Ae(e.g) && Ae(e.b) ? (n = qr(e.r, e.g, e.b), o = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : Ae(e.h) && Ae(e.s) && Ae(e.v) ? (a = et(e.s), l = et(e.v), n = Br(e.h, a, l), o = !0, i = "hsv") : Ae(e.h) && Ae(e.s) && Ae(e.l) && (a = et(e.s), r = et(e.l), n = Dr(e.h, a, r), o = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = jr(t), {
|
|
878
880
|
ok: o,
|
|
879
881
|
format: e.format || i,
|
|
880
882
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
@@ -964,7 +966,7 @@ var tt = 2, Rn = 0.16, Ur = 0.05, Fr = 0.05, Hr = 0.15, ul = 5, cl = 4, Yr = [{
|
|
|
964
966
|
opacity: 0.98
|
|
965
967
|
}];
|
|
966
968
|
function En(e) {
|
|
967
|
-
var n = e.r, t = e.g, a = e.b, l =
|
|
969
|
+
var n = e.r, t = e.g, a = e.b, l = Nr(n, t, a);
|
|
968
970
|
return {
|
|
969
971
|
h: l.h * 360,
|
|
970
972
|
s: l.s,
|
|
@@ -1138,15 +1140,15 @@ function lo(e, n) {
|
|
|
1138
1140
|
function Gn(e) {
|
|
1139
1141
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
1140
1142
|
}
|
|
1141
|
-
function
|
|
1143
|
+
function Nt(e, n, t) {
|
|
1142
1144
|
return t ? Ve(e.tag, Wn({
|
|
1143
1145
|
key: n
|
|
1144
1146
|
}, t, e.attrs), (e.children || []).map(function(a, l) {
|
|
1145
|
-
return
|
|
1147
|
+
return Nt(a, "".concat(n, "-").concat(e.tag, "-").concat(l));
|
|
1146
1148
|
})) : Ve(e.tag, Wn({
|
|
1147
1149
|
key: n
|
|
1148
1150
|
}, e.attrs), (e.children || []).map(function(a, l) {
|
|
1149
|
-
return
|
|
1151
|
+
return Nt(a, "".concat(n, "-").concat(e.tag, "-").concat(l));
|
|
1150
1152
|
}));
|
|
1151
1153
|
}
|
|
1152
1154
|
function gl(e) {
|
|
@@ -1285,7 +1287,7 @@ var je = function(n, t) {
|
|
|
1285
1287
|
var c = l;
|
|
1286
1288
|
return c && typeof c.icon == "function" && (c = ot({}, c, {
|
|
1287
1289
|
icon: c.icon(u.primaryColor, u.secondaryColor)
|
|
1288
|
-
})),
|
|
1290
|
+
})), Nt(c.icon, "svg-".concat(c.name), ot({}, i, {
|
|
1289
1291
|
"data-icon": c.name,
|
|
1290
1292
|
width: "1em",
|
|
1291
1293
|
height: "1em",
|
|
@@ -1446,7 +1448,7 @@ var J = function(n, t) {
|
|
|
1446
1448
|
var p = u ? {
|
|
1447
1449
|
msTransform: "rotate(".concat(u, "deg)"),
|
|
1448
1450
|
transform: "rotate(".concat(u, "deg)")
|
|
1449
|
-
} : void 0, O = hl(m), b = Co(O, 2), v = b[0],
|
|
1451
|
+
} : void 0, O = hl(m), b = Co(O, 2), v = b[0], N = b[1];
|
|
1450
1452
|
return q("span", Qn({
|
|
1451
1453
|
role: "img",
|
|
1452
1454
|
"aria-label": o.name
|
|
@@ -1457,7 +1459,7 @@ var J = function(n, t) {
|
|
|
1457
1459
|
}), [q(je, {
|
|
1458
1460
|
icon: o,
|
|
1459
1461
|
primaryColor: v,
|
|
1460
|
-
secondaryColor:
|
|
1462
|
+
secondaryColor: N,
|
|
1461
1463
|
style: p
|
|
1462
1464
|
}, null), q(wo, null, null)]);
|
|
1463
1465
|
};
|
|
@@ -1540,25 +1542,25 @@ var Wt = function(n, t) {
|
|
|
1540
1542
|
};
|
|
1541
1543
|
Wt.displayName = "CloseOutlined";
|
|
1542
1544
|
Wt.inheritAttrs = !1;
|
|
1543
|
-
var
|
|
1545
|
+
var No = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z" } }, { tag: "path", attrs: { d: "M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z" } }] }, name: "cloud-upload", theme: "outlined" };
|
|
1544
1546
|
function ta(e) {
|
|
1545
1547
|
for (var n = 1; n < arguments.length; n++) {
|
|
1546
1548
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, a = Object.keys(t);
|
|
1547
1549
|
typeof Object.getOwnPropertySymbols == "function" && (a = a.concat(Object.getOwnPropertySymbols(t).filter(function(l) {
|
|
1548
1550
|
return Object.getOwnPropertyDescriptor(t, l).enumerable;
|
|
1549
1551
|
}))), a.forEach(function(l) {
|
|
1550
|
-
|
|
1552
|
+
Bo(e, l, t[l]);
|
|
1551
1553
|
});
|
|
1552
1554
|
}
|
|
1553
1555
|
return e;
|
|
1554
1556
|
}
|
|
1555
|
-
function
|
|
1557
|
+
function Bo(e, n, t) {
|
|
1556
1558
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
1557
1559
|
}
|
|
1558
1560
|
var Gt = function(n, t) {
|
|
1559
1561
|
var a = ta({}, n, t.attrs);
|
|
1560
1562
|
return q(J, ta({}, a, {
|
|
1561
|
-
icon:
|
|
1563
|
+
icon: No
|
|
1562
1564
|
}), null);
|
|
1563
1565
|
};
|
|
1564
1566
|
Gt.displayName = "CloudUploadOutlined";
|
|
@@ -2161,7 +2163,7 @@ var Sn = function(n, t) {
|
|
|
2161
2163
|
};
|
|
2162
2164
|
Sn.displayName = "UserOutlined";
|
|
2163
2165
|
Sn.inheritAttrs = !1;
|
|
2164
|
-
const
|
|
2166
|
+
const Ni = (e) => {
|
|
2165
2167
|
const n = document.createElement("iframe");
|
|
2166
2168
|
n.style.display = "none", n.style.height = "0", n.src = e, document.body.appendChild(n), setTimeout(() => {
|
|
2167
2169
|
n.remove();
|
|
@@ -2193,7 +2195,7 @@ const Bi = (e) => {
|
|
|
2193
2195
|
onCancel() {
|
|
2194
2196
|
}
|
|
2195
2197
|
});
|
|
2196
|
-
}, E = (e, n) => e != null && e !== "" ? e : n,
|
|
2198
|
+
}, E = (e, n) => e != null && e !== "" ? e : n, Bi = (e, n, t) => {
|
|
2197
2199
|
e ? zt.success({
|
|
2198
2200
|
message: "操作成功",
|
|
2199
2201
|
description: n && n !== "操作成功" ? n : ""
|
|
@@ -2250,7 +2252,7 @@ const Bi = (e) => {
|
|
|
2250
2252
|
return null;
|
|
2251
2253
|
}, Aa = (e, n, t, a, l = !1) => {
|
|
2252
2254
|
n.loading = !0, We(t, a).then((r) => {
|
|
2253
|
-
if (n.loading = !1, (A.messageResp || r.success) &&
|
|
2255
|
+
if (n.loading = !1, (A.messageResp || r.success) && Bi(r.success, r.message), r.success || l) {
|
|
2254
2256
|
const o = e.value;
|
|
2255
2257
|
o && o.commitProxy("query");
|
|
2256
2258
|
}
|
|
@@ -2282,7 +2284,7 @@ function Ii(e) {
|
|
|
2282
2284
|
}, f = (g, d) => {
|
|
2283
2285
|
if (s(d.params.instanceField)) {
|
|
2284
2286
|
const h = {};
|
|
2285
|
-
if (h.instanceValue = g[d.params.instanceField], h.instanceId =
|
|
2287
|
+
if (h.instanceValue = g[d.params.instanceField], h.instanceId = Ne + h.instanceValue, h.title = E(d.params.title, i.title), h.width = E(d.params.width, i.width), h.height = E(d.params.height, i.height), h.maximize = E(d.params.maximize, !1), h.autoLoad = E(d.params.autoLoad, !1), h.componentVue = E(d.params.componentVue, i.componentVue), h.componentUrl = d.params.requestUrl, h.componentVue)
|
|
2286
2288
|
g[A.buttonKeyName] = d.params;
|
|
2287
2289
|
else {
|
|
2288
2290
|
let O = ne(r.ctxPath, h.componentUrl);
|
|
@@ -2321,8 +2323,8 @@ function Ii(e) {
|
|
|
2321
2323
|
const b = E(d.componentVue, i.componentVue);
|
|
2322
2324
|
if ((!b || d.requestType === lt) && (O = ne(r.ctxPath, O), d.requestRow && O.split("?").length > 1)) {
|
|
2323
2325
|
const v = Li(O.split("?")[1]);
|
|
2324
|
-
for (const
|
|
2325
|
-
const D = v[
|
|
2326
|
+
for (const N in v) {
|
|
2327
|
+
const D = v[N];
|
|
2326
2328
|
if (l.checkboxConfig) {
|
|
2327
2329
|
let R = [];
|
|
2328
2330
|
for (const H in p)
|
|
@@ -2340,19 +2342,19 @@ function Ii(e) {
|
|
|
2340
2342
|
if (s(d.instanceField)) {
|
|
2341
2343
|
const v = {};
|
|
2342
2344
|
v.title = E(d.title, i.title), v.width = E(d.width, i.width), v.height = E(d.height, i.height), v.maximize = E(d.maximize, !1), v.autoLoad = E(d.autoLoad, !0), v.componentVue = b, v.componentUrl = O, v.componentParams = {};
|
|
2343
|
-
const
|
|
2345
|
+
const N = Math.round(Math.random() * 1e8);
|
|
2344
2346
|
if (d.requestRow)
|
|
2345
2347
|
if (l.checkboxConfig)
|
|
2346
2348
|
if (d.requestRadio)
|
|
2347
|
-
p[0][A.buttonKeyName] = d, v.componentParams = p[0], v.instanceValue = p[0][d.instanceField], v.instanceId =
|
|
2349
|
+
p[0][A.buttonKeyName] = d, v.componentParams = p[0], v.instanceValue = p[0][d.instanceField], v.instanceId = Ne + v.instanceValue;
|
|
2348
2350
|
else {
|
|
2349
2351
|
const R = {};
|
|
2350
|
-
R[A.buttonKeyName] = d, R._X_ROWS = p, v.componentParams = R, v.instanceId =
|
|
2352
|
+
R[A.buttonKeyName] = d, R._X_ROWS = p, v.componentParams = R, v.instanceId = Ne + N;
|
|
2351
2353
|
}
|
|
2352
2354
|
else
|
|
2353
|
-
p[A.buttonKeyName] = d, v.componentParams = p, v.instanceValue = p[d.instanceField], v.instanceId =
|
|
2355
|
+
p[A.buttonKeyName] = d, v.componentParams = p, v.instanceValue = p[d.instanceField], v.instanceId = Ne + v.instanceValue;
|
|
2354
2356
|
else
|
|
2355
|
-
v.instanceId =
|
|
2357
|
+
v.instanceId = Ne + N, v.componentParams[A.buttonKeyName] = d;
|
|
2356
2358
|
v.visible = !0;
|
|
2357
2359
|
const D = a.value.findIndex((R) => R.instanceId === v.instanceId);
|
|
2358
2360
|
if (s(D) && D >= 0)
|
|
@@ -2425,8 +2427,8 @@ function Ii(e) {
|
|
|
2425
2427
|
if (g.requestType === Fe)
|
|
2426
2428
|
if (d[A.buttonKeyName] = g, s(g.instanceField)) {
|
|
2427
2429
|
const b = {};
|
|
2428
|
-
b.instanceValue = d[g.instanceField], b.instanceId =
|
|
2429
|
-
const v = a.value.findIndex((
|
|
2430
|
+
b.instanceValue = d[g.instanceField], b.instanceId = Ne + b.instanceValue, b.title = E(g.title, i.title), b.width = E(g.width, i.width), b.height = E(g.height, i.height), b.maximize = E(g.maximize, !1), b.autoLoad = E(g.autoLoad, !0), b.componentVue = p, b.componentUrl = h, b.componentParams = d, b.visible = !0;
|
|
2431
|
+
const v = a.value.findIndex((N) => N.instanceId === b.instanceId);
|
|
2430
2432
|
if (s(v) && v >= 0)
|
|
2431
2433
|
if (a.value[v].visible) {
|
|
2432
2434
|
Se("已经打开该数据弹窗信息");
|
|
@@ -2514,16 +2516,16 @@ function Ri(e) {
|
|
|
2514
2516
|
setTimeout(O, 2e3);
|
|
2515
2517
|
const b = a.value;
|
|
2516
2518
|
if (b) {
|
|
2517
|
-
const { filter: v, form:
|
|
2519
|
+
const { filter: v, form: N, sort: D } = b.getProxyInfo(), I = jt({
|
|
2518
2520
|
currentPage: 1,
|
|
2519
2521
|
pageSize: 25e3
|
|
2520
|
-
}, D, v,
|
|
2522
|
+
}, D, v, N, t, o);
|
|
2521
2523
|
if (typeof p == "string") {
|
|
2522
2524
|
p = ne(u.ctxPath, f.requestDownload);
|
|
2523
2525
|
let H = "";
|
|
2524
2526
|
Object.keys(I).forEach((W) => {
|
|
2525
2527
|
s(I[W]) && (typeof I[W] == "string" && (H += "&" + W + "=" + I[W]), typeof I[W] == "object" && Array.isArray(I[W]) && (H += "&" + W + "=" + I[W].join(",")));
|
|
2526
|
-
}), le("导出表格参数", [p, H]),
|
|
2528
|
+
}), le("导出表格参数", [p, H]), Ni(p + H);
|
|
2527
2529
|
} else
|
|
2528
2530
|
l.loading = !0, I.exportFlag = !0, r(I, f.requestData, !0).then(async (H) => {
|
|
2529
2531
|
if (H == null || H.rows.length == 0) {
|
|
@@ -2748,8 +2750,8 @@ function Zi() {
|
|
|
2748
2750
|
}));
|
|
2749
2751
|
if (!g) return O;
|
|
2750
2752
|
var b = d.weekStart;
|
|
2751
|
-
return O.map((function(v,
|
|
2752
|
-
return O[(
|
|
2753
|
+
return O.map((function(v, N) {
|
|
2754
|
+
return O[(N + (b || 0)) % 7];
|
|
2753
2755
|
}));
|
|
2754
2756
|
}, u = function() {
|
|
2755
2757
|
return l.Ls[l.locale()];
|
|
@@ -2812,13 +2814,13 @@ function Zi() {
|
|
|
2812
2814
|
})(ut)), ut.exports;
|
|
2813
2815
|
}
|
|
2814
2816
|
var Qi = Zi();
|
|
2815
|
-
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONSTANT_PAGE_OPTIONS", Ki = (e, n = "") => s(e) ? e : n, es = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0),
|
|
2817
|
+
const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONSTANT_PAGE_OPTIONS", Ki = (e, n = "") => s(e) ? e : n, es = (e, n) => (n = s(n) ? n : 2, s(e) ? e.toFixed(n) : 0), Bt = (e, n) => (n = s(n) ? n : 2, s(e) ? `${Me.commafy(Number(e), { digits: n })}` : e), wl = (e) => _n(e, "yyyy-MM-dd"), _l = (e) => _n(e, "yyyy-MM-dd HH:mm:ss"), _n = (e, n) => Me.toDateString(e, n), ct = (e, n) => e && e.length > n ? e.substring(0, n) + "..." : e, ts = (e, n) => typeof n == "string" ? n === "number" ? Bt(e) : n === "date" ? wl(e) : n === "datetime" ? _l(e) : ct(e, 200) : typeof n == "object" && n instanceof Array && n[0] === "number" ? Bt(e, n[1]) : ct(e, 200), V = {
|
|
2816
2818
|
toString: Ki,
|
|
2817
2819
|
toDateString: wl,
|
|
2818
2820
|
toDatetimeString: _l,
|
|
2819
2821
|
dateFormatter: _n,
|
|
2820
2822
|
toNumber: es,
|
|
2821
|
-
toMoney:
|
|
2823
|
+
toMoney: Bt,
|
|
2822
2824
|
stringFormat: ts,
|
|
2823
2825
|
truncateFormat: ct
|
|
2824
2826
|
}, ns = /* @__PURE__ */ Q({
|
|
@@ -2868,11 +2870,11 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2868
2870
|
let b = null, v = null;
|
|
2869
2871
|
return c.value && c.value[0] && (b = T(c.value[0]).format(o)), c.value && c.value[1] && (v = T(c.value[1]).format(o)), !b && !v ? null : [b, v];
|
|
2870
2872
|
}, h = (b) => {
|
|
2871
|
-
const v = b ? b[0] : null,
|
|
2872
|
-
typeof v == "number" || typeof
|
|
2873
|
+
const v = b ? b[0] : null, N = b ? b[1] : null;
|
|
2874
|
+
typeof v == "number" || typeof N == "number" ? c.value = [
|
|
2873
2875
|
s(v) ? T().add(v, r) : null,
|
|
2874
|
-
s(
|
|
2875
|
-
] : c.value = [s(v) ? T(v) : null, s(
|
|
2876
|
+
s(N) ? T().add(N, r) : null
|
|
2877
|
+
] : c.value = [s(v) ? T(v) : null, s(N) ? T(N) : null], C("update:value", d());
|
|
2876
2878
|
}, p = () => {
|
|
2877
2879
|
s(a.defaultValue) ? h([a.defaultValue, null]) : h(null);
|
|
2878
2880
|
}, O = () => "dateRange";
|
|
@@ -2884,8 +2886,8 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
2884
2886
|
resetValue: p,
|
|
2885
2887
|
getRefType: O
|
|
2886
2888
|
}), (b, v) => {
|
|
2887
|
-
const
|
|
2888
|
-
return x(), z(
|
|
2889
|
+
const N = F("a-range-picker");
|
|
2890
|
+
return x(), z(N, {
|
|
2889
2891
|
value: S(c),
|
|
2890
2892
|
"onUpdate:value": v[0] || (v[0] = (D) => gt(c) ? c.value = D : c = D),
|
|
2891
2893
|
onChange: g,
|
|
@@ -3070,11 +3072,11 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3070
3072
|
y.value = !0;
|
|
3071
3073
|
const v = {
|
|
3072
3074
|
searchValue: Te(b)
|
|
3073
|
-
},
|
|
3075
|
+
}, N = await Re(ne(r, a.requestUrl), {
|
|
3074
3076
|
...a.requestParams,
|
|
3075
3077
|
...v
|
|
3076
3078
|
});
|
|
3077
|
-
return y.value = !1,
|
|
3079
|
+
return y.value = !1, N;
|
|
3078
3080
|
} else
|
|
3079
3081
|
return [];
|
|
3080
3082
|
}, C = Lt((b) => {
|
|
@@ -3085,8 +3087,8 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3085
3087
|
u.value = b, f("update:value", b);
|
|
3086
3088
|
}, d = () => c.value, h = () => u.value, p = (b, v = null) => {
|
|
3087
3089
|
u.value = b, c.value = v;
|
|
3088
|
-
let
|
|
3089
|
-
|
|
3090
|
+
let N = m.value.filter((D) => D.value === u.value);
|
|
3091
|
+
N.length === 1 ? c.value = N[0].label : _(b).then((D) => {
|
|
3090
3092
|
m.value = D;
|
|
3091
3093
|
}), f("update:value", b);
|
|
3092
3094
|
};
|
|
@@ -3098,7 +3100,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3098
3100
|
p(a.defaultValue, a.defaultName);
|
|
3099
3101
|
}
|
|
3100
3102
|
}), (b, v) => {
|
|
3101
|
-
const
|
|
3103
|
+
const N = F("a-spin"), D = F("a-select");
|
|
3102
3104
|
return x(), Y("div", is, [
|
|
3103
3105
|
q(D, {
|
|
3104
3106
|
value: u.value,
|
|
@@ -3119,7 +3121,7 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3119
3121
|
y.value ? {
|
|
3120
3122
|
name: "notFoundContent",
|
|
3121
3123
|
fn: L(() => [
|
|
3122
|
-
q(
|
|
3124
|
+
q(N, { size: "small" })
|
|
3123
3125
|
]),
|
|
3124
3126
|
key: "0"
|
|
3125
3127
|
} : void 0
|
|
@@ -3150,12 +3152,12 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3150
3152
|
y("update:value", b);
|
|
3151
3153
|
}, d = () => c.value, h = () => u.value, p = (b) => {
|
|
3152
3154
|
u.value = b, y("update:value", u.value);
|
|
3153
|
-
let v = f.value.filter((
|
|
3155
|
+
let v = f.value.filter((N) => N.value === u.value);
|
|
3154
3156
|
if (a.multiple) {
|
|
3155
|
-
let
|
|
3157
|
+
let N = "";
|
|
3156
3158
|
v.forEach((D) => {
|
|
3157
|
-
|
|
3158
|
-
}), c.value =
|
|
3159
|
+
N += D.label + ",";
|
|
3160
|
+
}), c.value = N;
|
|
3159
3161
|
} else
|
|
3160
3162
|
v.length === 1 && (c.value = v[0].label);
|
|
3161
3163
|
};
|
|
@@ -3169,9 +3171,9 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3169
3171
|
}), C().then((b) => {
|
|
3170
3172
|
f.value = b, m.value = b;
|
|
3171
3173
|
}), (b, v) => {
|
|
3172
|
-
const
|
|
3174
|
+
const N = F("a-select");
|
|
3173
3175
|
return x(), Y("div", us, [
|
|
3174
|
-
q(
|
|
3176
|
+
q(N, {
|
|
3175
3177
|
value: u.value,
|
|
3176
3178
|
"onUpdate:value": v[0] || (v[0] = (D) => u.value = D),
|
|
3177
3179
|
placeholder: i,
|
|
@@ -3220,9 +3222,9 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3220
3222
|
"CASCADER_" + a.cacheKey
|
|
3221
3223
|
);
|
|
3222
3224
|
y.value = v;
|
|
3223
|
-
}, C = t, g = (v,
|
|
3224
|
-
s(
|
|
3225
|
-
}, d = (v,
|
|
3225
|
+
}, C = t, g = (v, N) => {
|
|
3226
|
+
s(N) ? (C("update:value", v[v.length - 1]), C("change", N[N.length - 1])) : (C("update:value", null), C("change", null));
|
|
3227
|
+
}, d = (v, N) => N.some((D) => D[c].indexOf(v) > -1), h = () => y.value.filter((N) => N[m] === f.value[f.value.length - 1])[c], p = () => f.value, O = (v) => {
|
|
3226
3228
|
f.value = v, C("update:value", v);
|
|
3227
3229
|
}, b = () => {
|
|
3228
3230
|
f.value = null, C("update:value", null), C("change", null);
|
|
@@ -3234,12 +3236,12 @@ const St = /* @__PURE__ */ Ol(Qi), Xi = "CONSTANT_DIALOG_CONTAINER", ve = "CONST
|
|
|
3234
3236
|
getValue: p,
|
|
3235
3237
|
setValue: O,
|
|
3236
3238
|
resetValue: b
|
|
3237
|
-
}), (v,
|
|
3239
|
+
}), (v, N) => {
|
|
3238
3240
|
const D = F("a-cascader");
|
|
3239
3241
|
return x(), Y("div", ds, [
|
|
3240
3242
|
q(D, {
|
|
3241
3243
|
value: f.value,
|
|
3242
|
-
"onUpdate:value":
|
|
3244
|
+
"onUpdate:value": N[0] || (N[0] = (R) => f.value = R),
|
|
3243
3245
|
options: y.value,
|
|
3244
3246
|
fieldNames: a.fieldNames,
|
|
3245
3247
|
"show-search": { filter: d },
|
|
@@ -3378,8 +3380,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3378
3380
|
}, v = () => {
|
|
3379
3381
|
let I = !_.value.fullScreen;
|
|
3380
3382
|
I ? (g.maxZoomIcon = "vxe-icon-maximize", g.width = "100%", g.height = c) : (g.maxZoomIcon = "vxe-icon-square", g.width = t.width, g.height = t.height), _.value.fullScreen = I;
|
|
3381
|
-
},
|
|
3382
|
-
console.log("iframe加载完毕",
|
|
3383
|
+
}, N = "vue_iframe_" + Math.round(Math.random() * 1e8), D = M(), R = () => {
|
|
3384
|
+
console.log("iframe加载完毕", N), D.value.contentWindow.addEventListener("closeSagDialogModal", function(I) {
|
|
3383
3385
|
console.log("iframe关闭触发", I), f();
|
|
3384
3386
|
});
|
|
3385
3387
|
};
|
|
@@ -3458,7 +3460,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3458
3460
|
key: 1,
|
|
3459
3461
|
ref_key: "iframeRef",
|
|
3460
3462
|
ref: D,
|
|
3461
|
-
id:
|
|
3463
|
+
id: N,
|
|
3462
3464
|
src: S(u),
|
|
3463
3465
|
onLoad: R,
|
|
3464
3466
|
style: { width: "100%", height: "100%", border: "0 none", display: "block" }
|
|
@@ -3545,7 +3547,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3545
3547
|
y("update:value", b);
|
|
3546
3548
|
}, d = () => m.value, h = () => c.value, p = (b) => {
|
|
3547
3549
|
c.value = b, y("update:value", c.value);
|
|
3548
|
-
let v = f.value.filter((
|
|
3550
|
+
let v = f.value.filter((N) => N.value === c.value);
|
|
3549
3551
|
v.length === 1 && (m.value = v[0].label);
|
|
3550
3552
|
};
|
|
3551
3553
|
return n({
|
|
@@ -3560,8 +3562,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3560
3562
|
!a.multiple && a.selectAll && (b = [{ label: "--全部--", value: "" }].concat(b)), f.value = b, _.options = b;
|
|
3561
3563
|
});
|
|
3562
3564
|
}), (b, v) => {
|
|
3563
|
-
const
|
|
3564
|
-
return x(), z(
|
|
3565
|
+
const N = F("vxe-select", !0);
|
|
3566
|
+
return x(), z(N, te({
|
|
3565
3567
|
modelValue: c.value,
|
|
3566
3568
|
"onUpdate:modelValue": v[0] || (v[0] = (D) => c.value = D)
|
|
3567
3569
|
}, _, {
|
|
@@ -3817,7 +3819,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3817
3819
|
});
|
|
3818
3820
|
};
|
|
3819
3821
|
}
|
|
3820
|
-
}), As = { class: "sag-vxe-page-search-wrapper" }, Ts = { class: "sag-vxe-page-table-wrapper" }, Ms = ["onClick"], Vs = { style: { "font-weight": "bold" } }, $s = { key: 0 }, zs = ["onClick"], js = { key: 1 }, qs = { style: { display: "inline" } }, Ds = { key: 0 },
|
|
3822
|
+
}), As = { class: "sag-vxe-page-search-wrapper" }, Ts = { class: "sag-vxe-page-table-wrapper" }, Ms = ["onClick"], Vs = { style: { "font-weight": "bold" } }, $s = { key: 0 }, zs = ["onClick"], js = { key: 1 }, qs = { style: { display: "inline" } }, Ds = { key: 0 }, Ns = ["onClick"], Bs = ["onClick"], Ls = { key: 0 }, Is = { key: 1 }, Rs = { key: 2 }, ja = /* @__PURE__ */ Q({
|
|
3821
3823
|
name: "SagVxePage",
|
|
3822
3824
|
inheritAttrs: !1,
|
|
3823
3825
|
__name: "SagVxePage",
|
|
@@ -3956,21 +3958,21 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
3956
3958
|
pageSizePlacement: V.toString(r?.templateTable?.pagerConfig?.pageSizePlacement, "top")
|
|
3957
3959
|
}), g = A.application + "_" + o.templateType, d = "sag_vxe_page_div_panel_" + g;
|
|
3958
3960
|
qn(ve, o), qn(Xi, () => document.getElementById(S(d)));
|
|
3959
|
-
const h = Object.keys(Le()), p = h.filter((P) => P.startsWith("items_")), O = h.filter((P) => P.startsWith("cols_")), b = h.filter((P) => P.startsWith("tools_")), v = M(),
|
|
3961
|
+
const h = Object.keys(Le()), p = h.filter((P) => P.startsWith("items_")), O = h.filter((P) => P.startsWith("cols_")), b = h.filter((P) => P.startsWith("tools_")), v = M(), N = M(!0), D = M(!1), R = M("none"), I = M(["1"]), H = M(0), W = qe(o.size), Oe = M(), G = ee({}), we = M([]), Je = M(), Ot = M([]), Ze = t, be = (P, w) => {
|
|
3960
3962
|
we.value[w] = P;
|
|
3961
3963
|
}, De = async () => {
|
|
3962
3964
|
const P = v.value;
|
|
3963
3965
|
if (!D.value && P) {
|
|
3964
3966
|
const w = Je.value;
|
|
3965
|
-
w ? w.validate().then((
|
|
3966
|
-
(!
|
|
3967
|
+
w ? w.validate().then((B) => {
|
|
3968
|
+
(!B || B.length === 0) && P.commitProxy("query");
|
|
3967
3969
|
}) : P.commitProxy("query");
|
|
3968
3970
|
}
|
|
3969
3971
|
}, Cn = () => {
|
|
3970
3972
|
c.storage && Dn(o.application, o.templateType, {}), Ke(Ot.value[0].children, we, G), Ze("resetValue");
|
|
3971
3973
|
}, xl = () => {
|
|
3972
3974
|
dt(() => {
|
|
3973
|
-
|
|
3975
|
+
Bn(Oe.value, Z, m.clientScale);
|
|
3974
3976
|
});
|
|
3975
3977
|
}, Z = ee({
|
|
3976
3978
|
size: o.size,
|
|
@@ -4014,15 +4016,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4014
4016
|
ajax: {
|
|
4015
4017
|
// 接收 Promise 对象
|
|
4016
4018
|
query: (P) => {
|
|
4017
|
-
const { page: w, sorts:
|
|
4019
|
+
const { page: w, sorts: B, filters: U, form: X } = P, de = jt(w, B, U, X, G, we);
|
|
4018
4020
|
if (c.storage) {
|
|
4019
|
-
const Pe = Vr(
|
|
4021
|
+
const Pe = Vr(B, U, X, G);
|
|
4020
4022
|
Dn(o.application, o.templateType, Pe);
|
|
4021
4023
|
}
|
|
4022
4024
|
return xn(de, i.requestData, !1);
|
|
4023
4025
|
},
|
|
4024
4026
|
querySuccess: (P) => {
|
|
4025
|
-
const { page: w, sort:
|
|
4027
|
+
const { page: w, sort: B, sorts: U, filters: X, form: de, response: Pe } = P;
|
|
4026
4028
|
f?.isMerge && (Z.mergeCells = kn(Pe?.rows)), Ze("search", Pe, { $gridRef: v.value, gridOptions: Z });
|
|
4027
4029
|
}
|
|
4028
4030
|
}
|
|
@@ -4030,9 +4032,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4030
4032
|
footerMethod: m.footerMethod
|
|
4031
4033
|
}), wt = M(!1), Pl = () => {
|
|
4032
4034
|
pt("确定要强制显示数据内容吗?", () => {
|
|
4033
|
-
f?.isMerge ? Z.mergeCells = null : Z.spanMethod =
|
|
4035
|
+
f?.isMerge ? Z.mergeCells = null : Z.spanMethod = Nn({}), Z.virtualYConfig = { enabled: !0 }, wt.value = !0, De();
|
|
4034
4036
|
});
|
|
4035
|
-
}, xn = async (P, w,
|
|
4037
|
+
}, xn = async (P, w, B) => {
|
|
4036
4038
|
if (R.value = "none", wt.value)
|
|
4037
4039
|
return wt.value = !1, Z.params.data;
|
|
4038
4040
|
{
|
|
@@ -4040,7 +4042,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4040
4042
|
$gridRef: v.value,
|
|
4041
4043
|
gridOptions: Z,
|
|
4042
4044
|
queryParams: P,
|
|
4043
|
-
exportFlag:
|
|
4045
|
+
exportFlag: B
|
|
4044
4046
|
});
|
|
4045
4047
|
const U = await We(
|
|
4046
4048
|
ne(o.ctxPath, w),
|
|
@@ -4052,7 +4054,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4052
4054
|
});
|
|
4053
4055
|
if (U.success) {
|
|
4054
4056
|
if (Z.params.dataSum = U.data?.dataSum, f?.mergeKey) {
|
|
4055
|
-
if (!
|
|
4057
|
+
if (!B && U.data.rows.length > 800)
|
|
4056
4058
|
return R.value = "more", Z.params.data = Pn(U.data), null;
|
|
4057
4059
|
f?.isMerge || (Z.virtualYConfig = { enabled: !1 });
|
|
4058
4060
|
}
|
|
@@ -4065,11 +4067,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4065
4067
|
le("checkboxChange", P);
|
|
4066
4068
|
const w = f?.mergeKey;
|
|
4067
4069
|
if (w) {
|
|
4068
|
-
const
|
|
4069
|
-
if (
|
|
4070
|
-
const U =
|
|
4070
|
+
const B = v.value;
|
|
4071
|
+
if (B) {
|
|
4072
|
+
const U = B.getTableData();
|
|
4071
4073
|
for (let X in U.tableData)
|
|
4072
|
-
P.row[w] === U.tableData[X][w] &&
|
|
4074
|
+
P.row[w] === U.tableData[X][w] && B.setCheckboxRow(U.tableData[X], P.checked);
|
|
4073
4075
|
}
|
|
4074
4076
|
}
|
|
4075
4077
|
}
|
|
@@ -4078,12 +4080,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4078
4080
|
le("radioChange", P);
|
|
4079
4081
|
const w = f?.mergeKey;
|
|
4080
4082
|
if (w) {
|
|
4081
|
-
const
|
|
4082
|
-
if (
|
|
4083
|
-
const U =
|
|
4083
|
+
const B = v.value;
|
|
4084
|
+
if (B) {
|
|
4085
|
+
const U = B.getTableData();
|
|
4084
4086
|
for (let X in U.tableData)
|
|
4085
4087
|
if (P.row[w] === U.tableData[X][w]) {
|
|
4086
|
-
|
|
4088
|
+
B.setRadioRow(U.tableData[X]);
|
|
4087
4089
|
break;
|
|
4088
4090
|
}
|
|
4089
4091
|
}
|
|
@@ -4094,11 +4096,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4094
4096
|
}, Ml = () => {
|
|
4095
4097
|
Z.params.currentRow = null;
|
|
4096
4098
|
}, Pn = (P) => {
|
|
4097
|
-
const w = f?.seqKey,
|
|
4098
|
-
if (
|
|
4099
|
+
const w = f?.seqKey, B = f?.mergeKey;
|
|
4100
|
+
if (B && w) {
|
|
4099
4101
|
let U = [""], X = 0 + P.pageSize * (P.pageNo - 1);
|
|
4100
4102
|
for (let de in P.rows)
|
|
4101
|
-
U.includes(P.rows[de][
|
|
4103
|
+
U.includes(P.rows[de][B]) || (X++, U.push(P.rows[de][B])), P.rows[de][w] = X;
|
|
4102
4104
|
}
|
|
4103
4105
|
return o.onLoadAfterModule ? o.onLoadAfterModule({
|
|
4104
4106
|
$gridRef: v.value,
|
|
@@ -4108,19 +4110,19 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4108
4110
|
}, kn = (P) => {
|
|
4109
4111
|
const w = f?.mergeKey;
|
|
4110
4112
|
if (w && f.isMerge) {
|
|
4111
|
-
const
|
|
4113
|
+
const B = v.value;
|
|
4112
4114
|
let U = [], X = {}, de = {};
|
|
4113
4115
|
for (let _e = 0; _e < P.length; _e++) {
|
|
4114
|
-
const ie = P[_e],
|
|
4116
|
+
const ie = P[_e], Be = P[_e - 1];
|
|
4115
4117
|
let ke = P[_e + 1];
|
|
4116
|
-
s(de[ie[w]]) || (de[ie[w]] = _e + 0), s(X[ie[w]]) ? (s(ke) && ke[w] === ie[w] || s(
|
|
4118
|
+
s(de[ie[w]]) || (de[ie[w]] = _e + 0), s(X[ie[w]]) ? (s(ke) && ke[w] === ie[w] || s(Be) && Be[w] === ie[w]) && (X[ie[w]] = X[ie[w]] + 1) : X[ie[w]] = 1;
|
|
4117
4119
|
}
|
|
4118
4120
|
let Pe = f?.fields;
|
|
4119
4121
|
for (let _e in Pe) {
|
|
4120
|
-
let ie =
|
|
4122
|
+
let ie = B?.getColumnByField(Pe[_e]), Be = B?.getColumnIndex(ie);
|
|
4121
4123
|
for (let ke in de)
|
|
4122
4124
|
U = U.concat([
|
|
4123
|
-
{ row: de[ke], col:
|
|
4125
|
+
{ row: de[ke], col: Be, rowspan: X[ke], colspan: 1 }
|
|
4124
4126
|
]);
|
|
4125
4127
|
}
|
|
4126
4128
|
return U;
|
|
@@ -4168,15 +4170,15 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4168
4170
|
pageRequest: i
|
|
4169
4171
|
}), ql = async () => {
|
|
4170
4172
|
if (s(c.formItems)) {
|
|
4171
|
-
const w = c.formItems,
|
|
4173
|
+
const w = c.formItems, B = c.formProps.foldingLength;
|
|
4172
4174
|
Object.keys(w).forEach((U, X) => {
|
|
4173
|
-
w[X].folding = !(X <
|
|
4175
|
+
w[X].folding = !(X < B);
|
|
4174
4176
|
}), Ot.value = [
|
|
4175
4177
|
{ span: 24, align: "right", children: w },
|
|
4176
4178
|
{
|
|
4177
4179
|
span: 24,
|
|
4178
4180
|
align: c.formProps.buttonAlign,
|
|
4179
|
-
collapseNode: w.length >
|
|
4181
|
+
collapseNode: w.length > B,
|
|
4180
4182
|
slots: { default: "toolbar_tools" }
|
|
4181
4183
|
}
|
|
4182
4184
|
];
|
|
@@ -4184,8 +4186,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4184
4186
|
if (document.documentElement.clientHeight < 680) {
|
|
4185
4187
|
const w = m.tableColumns;
|
|
4186
4188
|
Object.keys(w).forEach((U) => w[U].fixed = !1);
|
|
4187
|
-
const
|
|
4188
|
-
|
|
4189
|
+
const B = m.tableColumnsExtra;
|
|
4190
|
+
B && Object.keys(B).forEach((U) => B[U].fixed = !1);
|
|
4189
4191
|
}
|
|
4190
4192
|
Vn(o.application, !0), m.rowType === "checkbox" ? Z.checkboxConfig = { highlight: !0 } : m.rowType === "radio" ? Z.radioConfig = { highlight: !0 } : Z.rowConfig.isCurrent = !0;
|
|
4191
4193
|
const P = m.pageSizes;
|
|
@@ -4193,8 +4195,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4193
4195
|
trigger: "click",
|
|
4194
4196
|
mode: "row",
|
|
4195
4197
|
showStatus: !0
|
|
4196
|
-
}), s(f) && s(f.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = f.mergeKey, f.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod =
|
|
4197
|
-
}, Dl = (P, w) => P && P.length > 0 ? P && w ? P.some((
|
|
4198
|
+
}), s(f) && s(f.mergeKey) && (Z.cellStyle = An, Z.params.mergeField = f.mergeKey, f.isMerge ? Z.columnDragConfig.dragStartMethod = () => !1 : (Z.virtualYConfig = { enabled: !1 }, Z.spanMethod = Nn(f))), N.value = !1;
|
|
4199
|
+
}, Dl = (P, w) => P && P.length > 0 ? P && w ? P.some((B) => Ee(w[B.buttonName]) && Ee(B.auth)) : !0 : !1;
|
|
4198
4200
|
oe(async () => {
|
|
4199
4201
|
if (le("加载页面模板", o), await ql(), c.storage) {
|
|
4200
4202
|
const P = nr(o.application, o.templateType);
|
|
@@ -4203,10 +4205,10 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4203
4205
|
Me.arrayEach(c.formItems, (U, X) => {
|
|
4204
4206
|
w.push(U.field);
|
|
4205
4207
|
});
|
|
4206
|
-
let
|
|
4208
|
+
let B = [];
|
|
4207
4209
|
Me.objectEach(P, (U, X) => {
|
|
4208
|
-
|
|
4209
|
-
}), Me.includeArrays(w,
|
|
4210
|
+
B.push(X);
|
|
4211
|
+
}), Me.includeArrays(w, B) ? jn(P) : await Ke(c.formItems, we, G);
|
|
4210
4212
|
} else
|
|
4211
4213
|
await Ke(c.formItems, we, G);
|
|
4212
4214
|
} else
|
|
@@ -4223,7 +4225,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4223
4225
|
le("屏幕高度出现变化,重新计算表格高度"), m.clientScale === 1 && H.value == 0 && (window.onresize = () => {
|
|
4224
4226
|
H.value = document.body.clientWidth;
|
|
4225
4227
|
}), dt(() => {
|
|
4226
|
-
|
|
4228
|
+
Bn(Oe.value, Z, m.clientScale);
|
|
4227
4229
|
});
|
|
4228
4230
|
}, A.templateTable.lazyComputdHeightTime);
|
|
4229
4231
|
m.clientScale === 1 && he(
|
|
@@ -4233,45 +4235,45 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4233
4235
|
},
|
|
4234
4236
|
{ deep: !0, immediate: !0 }
|
|
4235
4237
|
);
|
|
4236
|
-
const
|
|
4238
|
+
const Nl = (P) => {
|
|
4237
4239
|
if (s(P.instanceId)) {
|
|
4238
4240
|
const w = {};
|
|
4239
|
-
w.instanceId =
|
|
4240
|
-
const
|
|
4241
|
-
if (s(
|
|
4242
|
-
if (l.value[
|
|
4241
|
+
w.instanceId = Ne + P.instanceId, w.title = E(P.title, A.targetModal.title), w.width = E(P.width, A.targetModal.width), w.height = E(P.height, A.targetModal.height), w.maximize = E(P.maximize, !1), w.autoLoad = E(P.autoLoad, !1), w.componentVue = E(P.componentVue, A.targetModal.componentVue), w.componentParams = P.componentParams, w.componentUrl = P.componentUrl, w.visible = !0;
|
|
4242
|
+
const B = l.value.findIndex((U) => U.instanceId === w.instanceId);
|
|
4243
|
+
if (s(B) && B >= 0)
|
|
4244
|
+
if (l.value[B].visible) {
|
|
4243
4245
|
Se("已经打开该数据弹窗信息");
|
|
4244
4246
|
return;
|
|
4245
4247
|
} else
|
|
4246
|
-
l.value[
|
|
4248
|
+
l.value[B] = w;
|
|
4247
4249
|
else
|
|
4248
4250
|
l.value.push(w);
|
|
4249
4251
|
} else
|
|
4250
4252
|
a.title = E(P.title, A.targetModal.title), a.width = E(P.width, A.targetModal.width), a.height = E(P.height, A.targetModal.height), a.maximize = E(P.maximize, !1), a.autoLoad = E(P.autoLoad, !1), a.componentVue = E(P.componentVue, A.targetModal.componentVue), a.componentParams = P.componentParams, a.componentUrl = P.componentUrl, a.visible = !0;
|
|
4251
4253
|
}, _t = (P) => {
|
|
4252
4254
|
if (s(P)) {
|
|
4253
|
-
const w = l.value.findIndex((
|
|
4255
|
+
const w = l.value.findIndex((B) => B.instanceId === P);
|
|
4254
4256
|
w !== -1 && (l.value[w].visible = !1, l.value[w].autoLoad && De());
|
|
4255
4257
|
} else
|
|
4256
4258
|
a.visible = !1, a.autoLoad && De();
|
|
4257
4259
|
}, zn = (P, w) => {
|
|
4258
4260
|
if (s(w)) {
|
|
4259
|
-
const
|
|
4260
|
-
if (
|
|
4261
|
-
l.value[
|
|
4262
|
-
const U = l.value[
|
|
4261
|
+
const B = l.value.findIndex((U) => U.instanceId === w);
|
|
4262
|
+
if (B !== -1) {
|
|
4263
|
+
l.value[B].visible = !1;
|
|
4264
|
+
const U = l.value[B].componentParams;
|
|
4263
4265
|
Ze("submit", { data: P, params: U, button: U[A.buttonKeyName] });
|
|
4264
4266
|
}
|
|
4265
4267
|
} else {
|
|
4266
4268
|
a.visible = !1;
|
|
4267
|
-
const
|
|
4268
|
-
Ze("submit", { data: P, params:
|
|
4269
|
+
const B = a.componentParams;
|
|
4270
|
+
Ze("submit", { data: P, params: B, button: B[A.buttonKeyName] });
|
|
4269
4271
|
}
|
|
4270
|
-
},
|
|
4272
|
+
}, Bl = async () => await Sl(v, Z), Ll = async () => {
|
|
4271
4273
|
const P = v.value;
|
|
4272
4274
|
if (P) {
|
|
4273
|
-
const { pager: w, filter:
|
|
4274
|
-
return jt(w, X,
|
|
4275
|
+
const { pager: w, filter: B, form: U, sort: X } = P.getProxyInfo();
|
|
4276
|
+
return jt(w, X, B, U, G, we);
|
|
4275
4277
|
} else
|
|
4276
4278
|
return null;
|
|
4277
4279
|
}, jn = (P) => {
|
|
@@ -4281,17 +4283,17 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4281
4283
|
return n({
|
|
4282
4284
|
doSearch: De,
|
|
4283
4285
|
resetFrom: Cn,
|
|
4284
|
-
showViewModal:
|
|
4286
|
+
showViewModal: Nl,
|
|
4285
4287
|
hideViewModal: _t,
|
|
4286
4288
|
getMergeCellStyle: An,
|
|
4287
|
-
getRequestData:
|
|
4289
|
+
getRequestData: Bl,
|
|
4288
4290
|
getFormData: Ll,
|
|
4289
4291
|
setFormData: jn,
|
|
4290
4292
|
setExportColumns: (P) => {
|
|
4291
4293
|
Z.params.exportColumns = P;
|
|
4292
4294
|
}
|
|
4293
4295
|
}), (P, w) => {
|
|
4294
|
-
const
|
|
4296
|
+
const B = F("a-button"), U = F("a-space"), X = F("vxe-form"), de = F("a-collapse-panel"), Pe = F("a-collapse"), _e = F("a-menu-item"), ie = F("a-menu"), Be = F("a-dropdown"), ke = F("vxe-button"), Il = F("vxe-grid");
|
|
4295
4297
|
return Vt((x(), Y("div", {
|
|
4296
4298
|
id: d,
|
|
4297
4299
|
class: "sag-vxe-page-wrapper"
|
|
@@ -4330,7 +4332,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4330
4332
|
toolbar_tools: L(() => [
|
|
4331
4333
|
q(U, null, {
|
|
4332
4334
|
default: L(() => [
|
|
4333
|
-
q(
|
|
4335
|
+
q(B, {
|
|
4334
4336
|
type: "primary",
|
|
4335
4337
|
size: S(W),
|
|
4336
4338
|
onClick: w[0] || (w[0] = (k) => De()),
|
|
@@ -4341,7 +4343,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4341
4343
|
])),
|
|
4342
4344
|
_: 1
|
|
4343
4345
|
}, 8, ["size", "disabled"]),
|
|
4344
|
-
q(
|
|
4346
|
+
q(B, {
|
|
4345
4347
|
size: S(W),
|
|
4346
4348
|
onClick: w[1] || (w[1] = (k) => Cn())
|
|
4347
4349
|
}, {
|
|
@@ -4498,7 +4500,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4498
4500
|
K("div", qs, [
|
|
4499
4501
|
(x(!0), Y(ce, null, Ce(y.tableButtons, ($) => (x(), Y(ce, { key: $ }, [
|
|
4500
4502
|
S(V).toString(k[$.buttonName], !0) && S(Ee)($.auth) ? (x(), Y("span", Ds, [
|
|
4501
|
-
m.showButtonLink ? j("", !0) : (x(), z(
|
|
4503
|
+
m.showButtonLink ? j("", !0) : (x(), z(B, {
|
|
4502
4504
|
key: 0,
|
|
4503
4505
|
size: "small",
|
|
4504
4506
|
type: S(V).toString($.status, "primary"),
|
|
@@ -4524,12 +4526,12 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4524
4526
|
icon: $.icon
|
|
4525
4527
|
}, null, 8, ["icon"]),
|
|
4526
4528
|
ue(" " + ae($.buttonName), 1)
|
|
4527
|
-
], 8,
|
|
4529
|
+
], 8, Ns)) : j("", !0),
|
|
4528
4530
|
w[8] || (w[8] = ue(" "))
|
|
4529
4531
|
])) : j("", !0)
|
|
4530
4532
|
], 64))), 128))
|
|
4531
4533
|
]),
|
|
4532
|
-
Dl(y.tableMoreButtons, k) ? (x(), z(
|
|
4534
|
+
Dl(y.tableMoreButtons, k) ? (x(), z(Be, {
|
|
4533
4535
|
key: 0,
|
|
4534
4536
|
destroyPopupOnHide: !0
|
|
4535
4537
|
}, {
|
|
@@ -4547,7 +4549,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4547
4549
|
icon: $.icon
|
|
4548
4550
|
}, null, 8, ["icon"]),
|
|
4549
4551
|
ue(" " + ae($.buttonName), 1)
|
|
4550
|
-
], 8,
|
|
4552
|
+
], 8, Bs)
|
|
4551
4553
|
]),
|
|
4552
4554
|
_: 2
|
|
4553
4555
|
}, 1024)) : j("", !0)
|
|
@@ -4558,7 +4560,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4558
4560
|
}, 1024)
|
|
4559
4561
|
]),
|
|
4560
4562
|
default: L(() => [
|
|
4561
|
-
q(
|
|
4563
|
+
q(B, {
|
|
4562
4564
|
type: m.showButtonLink ? "link" : "default",
|
|
4563
4565
|
size: "small"
|
|
4564
4566
|
}, {
|
|
@@ -4580,7 +4582,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4580
4582
|
}, {
|
|
4581
4583
|
default: L(() => [
|
|
4582
4584
|
(x(!0), Y(ce, null, Ce(y.formButtons, (k) => (x(), Y("span", { key: k }, [
|
|
4583
|
-
S(Ee)(k.auth) ? (x(), z(
|
|
4585
|
+
S(Ee)(k.auth) ? (x(), z(B, {
|
|
4584
4586
|
key: 0,
|
|
4585
4587
|
round: "",
|
|
4586
4588
|
size: S(W),
|
|
@@ -4692,7 +4694,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4692
4694
|
onSubmit: zn
|
|
4693
4695
|
}), null, 16)) : j("", !0)
|
|
4694
4696
|
], 512)), [
|
|
4695
|
-
[$t, !
|
|
4697
|
+
[$t, !N.value]
|
|
4696
4698
|
]);
|
|
4697
4699
|
};
|
|
4698
4700
|
}
|
|
@@ -4858,7 +4860,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4858
4860
|
install: (e, n) => {
|
|
4859
4861
|
e.component(Da.name, Da);
|
|
4860
4862
|
}
|
|
4861
|
-
},
|
|
4863
|
+
}, Na = /* @__PURE__ */ Q({
|
|
4862
4864
|
name: "SagAntdButton",
|
|
4863
4865
|
inheritAttrs: !1,
|
|
4864
4866
|
__name: "SagAntdButton",
|
|
@@ -4903,9 +4905,9 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4903
4905
|
}
|
|
4904
4906
|
}), cu = {
|
|
4905
4907
|
install: (e, n) => {
|
|
4906
|
-
e.component(
|
|
4908
|
+
e.component(Na.name, Na);
|
|
4907
4909
|
}
|
|
4908
|
-
}, Es = { class: "sag-antd-cascader-wrapper" },
|
|
4910
|
+
}, Es = { class: "sag-antd-cascader-wrapper" }, Ba = /* @__PURE__ */ Q({
|
|
4909
4911
|
name: "SagAntdCascader",
|
|
4910
4912
|
inheritAttrs: !1,
|
|
4911
4913
|
__name: "SagAntdCascader",
|
|
@@ -4977,7 +4979,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
4977
4979
|
}
|
|
4978
4980
|
}), du = {
|
|
4979
4981
|
install: (e, n) => {
|
|
4980
|
-
e.component(
|
|
4982
|
+
e.component(Ba.name, Ba);
|
|
4981
4983
|
}
|
|
4982
4984
|
}, Us = { key: 1 }, La = /* @__PURE__ */ Q({
|
|
4983
4985
|
name: "SagAntdCard",
|
|
@@ -5500,11 +5502,11 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5500
5502
|
p(), i.value = [], await y();
|
|
5501
5503
|
}, v = (D = !1) => {
|
|
5502
5504
|
c("update:value", l.value), c("update:label", r.value), D && c("change", o.value);
|
|
5503
|
-
},
|
|
5505
|
+
}, N = (D, R) => a.multiple ? s(D) && !s(R) || !s(D) && s(R) ? !0 : !s(D) && !s(R) || D.length !== R.length ? !1 : !D.every((I, H) => I === R[H]) : D !== R;
|
|
5504
5506
|
return he(
|
|
5505
5507
|
() => [a.corpId, a.value],
|
|
5506
5508
|
async ([D, R], [I, H]) => {
|
|
5507
|
-
const W = D !== I, Oe =
|
|
5509
|
+
const W = D !== I, Oe = N(R, l.value);
|
|
5508
5510
|
W && (p(), await f(R)), Oe && h(R);
|
|
5509
5511
|
}
|
|
5510
5512
|
), oe(async () => {
|
|
@@ -5614,8 +5616,8 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5614
5616
|
return he(
|
|
5615
5617
|
() => [a.corpId, a.value],
|
|
5616
5618
|
async ([p, O], [b, v]) => {
|
|
5617
|
-
const
|
|
5618
|
-
|
|
5619
|
+
const N = p !== b, D = O !== l.value;
|
|
5620
|
+
N && (i.value = [], r.value = null, l.value = null, o.value = null, h()), D && C(O).then((R) => {
|
|
5619
5621
|
R || f(O, O).then(() => {
|
|
5620
5622
|
d(O);
|
|
5621
5623
|
});
|
|
@@ -5636,7 +5638,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5636
5638
|
return x(), Y("div", Zs, [
|
|
5637
5639
|
q(v, {
|
|
5638
5640
|
value: l.value,
|
|
5639
|
-
"onUpdate:value": O[0] || (O[0] = (
|
|
5641
|
+
"onUpdate:value": O[0] || (O[0] = (N) => l.value = N),
|
|
5640
5642
|
placeholder: m,
|
|
5641
5643
|
style: me(a.style),
|
|
5642
5644
|
"filter-option": !1,
|
|
@@ -5646,7 +5648,7 @@ const vs = { id: "div_view_modal" }, bs = { class: "sag-ubmp-pc-modal-minimized-
|
|
|
5646
5648
|
listHeight: a.listHeight,
|
|
5647
5649
|
"default-active-first-option": !1,
|
|
5648
5650
|
"show-arrow": !1,
|
|
5649
|
-
getPopupContainer: (
|
|
5651
|
+
getPopupContainer: (N) => S(Ie)(a.mountainTop, e.getPopupContainer, N),
|
|
5650
5652
|
onChange: y,
|
|
5651
5653
|
onSearch: S(_),
|
|
5652
5654
|
"show-search": ""
|
package/dist/sag-ubmp-pc.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(U,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("xe-utils"),require("vue"),require("ant-design-vue"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","xe-utils","vue","ant-design-vue","dayjs"],H):(U=typeof globalThis<"u"?globalThis:U||self,H(U["sag-ubmp-pc"]={},U.XEUtils,U.Vue,U.AntdV,U.dayjs))})(this,(function(U,H,t,ge,V){"use strict";const ve="SAG_UBMP_PC$",Pe={set:()=>{},get:()=>"",has:()=>!1,remove:()=>{},clear:()=>{},clearSelf:()=>{}},Wa=e=>{const a=new Date().getTime();return e.addTime+e.expires>=a},Ve=e=>`${ve}${e}`;Object.assign(Pe,(e=>({set(a,n,r){const l=Ve(a);if(r)e.setItem(l,JSON.stringify({value:n,addTime:new Date().getTime(),expires:r}));else{const o=JSON.stringify(n);e.setItem(l,o)}n==null&&e.removeItem(l)},get(a){const n=Ve(a),r=JSON.parse(e.getItem(n));return r&&r.addTime?Wa(r)?r.value:(e.removeItem(n),null):r},has(a){const n=Ve(a);return!!e.getItem(n)},remove:a=>{const n=Ve(a);e.removeItem(n)},clear:()=>{e.clear()},clearSelf:()=>{Array.from({length:e.length},(n,r)=>e.key(r)).filter(n=>n?.startsWith(ve)).forEach(n=>e.removeItem(n))}}))(window.localStorage));function Ze(e){return function(a,n){console[e]("[sag-ubmp-pc]"+a,n)}}const W=Ze("log"),Wt=Ze("warn"),Be=Ze("error"),Ne={ExcelJS:null,FileSaver:null},P={application:"APP_VXE_PAGE",size:"small",ctxPath:"",requestDictUrl:"",buttonKeyName:"_X_BUTTON_INFO",messageResp:!0,dynamicViewsModules:{},requestPlugin:()=>(Be("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"),null),templateForm:{vxeSlot:!0,storage:!1,formProps:{vertical:!1,titleColon:!0,titleWidth:100,titleAlign:"right",buttonAlign:"center",foldingLength:8}},templateTable:{clientScale:1,minHeight:300,maxHeight:0,showOverflow:"title",showButtonLink:!1,toolbarConfig:{className:"vxe-page--toolbar",perfect:!0,print:!0,refresh:!0,custom:!0,zoom:!0,slots:{buttons:"toolbar_buttons",tools:"toolbar_tools"}},tableColumnMerge:{backgroundColor:""},pageSizes:[10,20,50,100],ignoreExportColumnsTitle:[""],lazyComputdHeightTime:250},targetModal:{title:"业务处理",width:"85%",height:"75vh",mountainTop:!0,dialogContainer:null,componentVue:!0,maskClosable:!0},getPopupContainer:null},c=e=>!(e===void 0||e===null||typeof e=="string"&&e===""||typeof e=="object"&&Array.isArray(e)&&e.length===0),Ce=e=>e===void 0||e===null?!0:e,Y=(e,a)=>c(a)?a.startsWith("/")?a:e.endsWith("/")?e+a:e+"/"+a:"",he=(e,a,n)=>a!=null?a(n):e?P.getPopupContainer!=null&&typeof P.getPopupContainer=="function"?P.getPopupContainer(n):document.body:n.parentNode,Te=e=>c(e)?e+"$":"",Gt="DICT_TYPE",Qe=(e,a,n)=>{Qa(e,Gt,a,n)},Ke=(e,a)=>Ka(e,Gt,a),Jt="COLUMNS_SWITCH",Ga=(e,a,n)=>{Kt(e,Jt,a,n)},Ja=(e,a)=>Xt(e,Jt,a),Zt="FORM_PARAMS",Qt=(e,a,n)=>{Kt(e,Zt,a,n)},Za=(e,a)=>Xt(e,Zt,a),Qa=(e,a,n,r)=>{const l=ve+Te(e)+a,o=sessionStorage.getItem(l),i=c(o)?JSON.parse(o):{};i[n]=r,sessionStorage.setItem(l,JSON.stringify(i))},Ka=(e,a,n)=>{const r=ve+Te(e)+a,l=sessionStorage.getItem(r);return c(l)?JSON.parse(l)[n]:null},Kt=(e,a,n,r)=>{const l=Te(e)+a,o=Pe.get(l),i=c(o)?o:{};i[n]=r,Pe.set(l,i)},Xt=(e,a,n)=>{const r=Te(e)+a,l=Pe.get(r);return c(l)?l[n]:null},Xa={setupConfig:function(e){H.merge(P,e),W("加载公共参数完毕",P)},setupExcelConfig:function(e,a){H.merge(Ne,{ExcelJS:e,FileSaver:a}),W("加载excel组件完毕")},getDictDetail:function(e,a=P.application){return Ke(a,e)},setDictDetail:function(e,a,n=P.application){return Qe(n,e,a)}},Se="modal",Ae="open",er="confirm",pe="sag_ubmp_pc_modal_instance_",tr=e=>en(e,"buttonName"),nr=e=>en(e,"componentParams"),en=(e,a)=>c(e)&&c(e[P.buttonKeyName])?e[P.buttonKeyName][a]:null,ar=e=>c(e)&&c(e[P.buttonKeyName])?e[P.buttonKeyName]:{},rr=e=>e._X_ROWS,lr=(e,a,n={})=>{const{span:r,placeholder:l,defaultValue:o,disabled:i}=n;return{field:e,title:a,span:c(r)?r:6,itemRender:{props:{placeholder:c(l)?l:"请输入"+a,defaultValue:c(o)?o:null,disabled:c(i)?i:!1}},slots:{default:"input"}}},or=(e,a,n={})=>{const{span:r,placeholder:l,defaultValue:o,disabled:i}=n;return{field:e,title:a,span:c(r)?r:6,itemRender:{props:{type:"number",placeholder:c(l)?l:"请输入"+a,defaultValue:c(o)?o:null,disabled:c(i)?i:!1}},slots:{default:"input"}}},ir=(e,a,n=!1,r={})=>{const{span:l,titleWidth:o}=r;return{field:e,title:a,span:c(l)?l:3,titleWidth:c(o)?o:null,itemRender:{name:"$switch",props:{openLabel:"是",openValue:"1",closeLabel:"否",closeValue:"",defaultValue:n?"1":""}}}},sr=(e,a,n,r={})=>{const{folding:l,span:o,multiple:i,clearable:s,filterable:u,disabled:d,defaultValue:g,dictRoleType:p,selectAll:S,parentNode:x}=r;return{field:e,title:a,folding:c(l)?l:!1,span:c(o)?o:6,itemRender:{props:{request:{dictType:n,parentNode:c(x)?x:null,dictRoleType:c(p)?p:null},multiple:c(i)?i:!1,clearable:c(s)?s:!0,filterable:c(u)?u:!1,selectAll:c(S)?S:!0,disabled:c(d)?d:!1,defaultValue:c(g)?g:null}},slots:{default:"select"}}},cr=(e,a,n={})=>{const{span:r,requestUrl:l,requestParams:o,defaultValue:i,multiple:s,selectAll:u,clearable:d,filterable:g,disabled:p}=n;return{field:e,title:a,span:c(r)?r:6,slots:{default:"selectList"},itemRender:{props:{requestUrl:l,requestParams:c(o)?o:{},defaultValue:c(i)?i:null,multiple:c(s)?s:!1,clearable:c(d)?d:!0,filterable:c(g)?g:!0,selectAll:c(u)?u:!0,disabled:c(p)?p:!1}}}},ur=(e,a,n={})=>{const{folding:r,span:l,format:o,picker:i,defaultValue:s}=n;return{field:e,title:a,folding:c(r)?r:!1,span:c(l)?l:6,slots:{default:"dateRange"},itemRender:{props:{defaultValue:c(s)?s:null,format:c(o)?o:"YYYY-MM-DD",picker:c(i)?i:"date"}}}},dr=(e,a,n={})=>{const{folding:r,span:l,defaultValue:o}=n;return{field:e,title:a,folding:c(r)?r:!1,span:c(l)?l:6,slots:{default:"date"},itemRender:{props:{defaultValue:c(o)?o:null,format:"YYYYMM",picker:"month"}}}},fr=(e={})=>{const{fixed:a=null,visible:n=!0}=e;return{field:"row_seq",title:"序号",type:"seq",minWidth:50,width:50,fixed:a,visible:n,resizable:!1,align:"center",headerAlign:"center"}},pr=(e={})=>{const{fixed:a=null,visible:n=!0}=e;return{field:"row_radio",title:"",minWidth:50,width:50,fixed:a,visible:n,resizable:!1,type:"radio",align:"center",headerAlign:"center"}},mr=(e={})=>{const{fixed:a=null,visible:n=!0}=e;return{field:"row_check",title:"",minWidth:50,width:50,fixed:a,visible:n,resizable:!1,type:"checkbox",align:"center",headerAlign:"center"}},gr=(e={})=>{const{slots:a,width:n,align:r="left",minWidth:l=120,fixed:o=null}=e;return{field:"row_button",title:"操作",width:c(n)?n:"auto",minWidth:c(l)?l:120,resizable:!1,sortable:!1,fixed:o,align:r,headerAlign:"center",slots:{default:c(a)?a:"button"}}},hr=(e,a,n={})=>(n.componentVue=!1,tn(e,a,n)),tn=(e,a,n={})=>{const{formatter:r,requestType:l,requestUrl:o,requestTitle:i,instanceField:s="",minWidth:u=120,maximize:d=!0,componentVue:g=!0,componentParams:p={},treeNode:S=!1,autoLoad:x=!1,resizable:k=!1,showOverflow:h,align:f="center",type:b,fixed:m,width:w}=n;return{field:e,title:a,sortable:!1,width:c(w)?w:c(b)?c(u)?u:120:"auto",minWidth:u,resizable:k,showOverflow:c(h)?h:"title",align:f,headerAlign:"center",type:c(b)?b:null,fixed:c(m)?m:"",formatter:c(r)?r:"",treeNode:S,params:{requestType:c(l)?l:"",requestUrl:o,title:i,maximize:d,autoLoad:x,componentVue:g,componentParams:p,instanceField:s},slots:{default:"operate"}}},br=(e,a,n=120,r={})=>{const{align:l="center",treeNode:o}=r;return{field:e,title:a,minWidth:n,sortable:!1,treeNode:c(o)?o:!1,align:l,headerAlign:"center"}},yr=(e,a,n=80,r="center")=>({field:e,title:a,width:"auto",minWidth:n,resizable:!1,sortable:!1,align:r,headerAlign:"center"}),Cr=(e,a,n={})=>{const{align:r="right",digits:l,width:o,minWidth:i,resizable:s}=n;return{field:e,title:a,width:c(o)?o:c(i)?null:"auto",minWidth:c(i)?i:120,resizable:c(s)?s:!1,sortable:!1,align:r,footerAlign:r,headerAlign:"center",formatter:["number",c(l)?l:6]}},Sr=(e,a,n={})=>(n.minWidth=180,n.formatter="datetime",nn(e,a,n)),nn=(e,a,n={})=>{const{align:r="center",formatter:l,minWidth:o,width:i}=n;return{field:e,title:a,width:c(i)?i:"auto",minWidth:c(o)?o:120,resizable:!1,sortable:!1,align:r,headerAlign:"center",formatter:c(l)?l:"date"}},wr=(e,a=200,n=[])=>({field:e,minWidth:a,title:e,sortable:!1,align:"left",headerAlign:"center",slots:{default:"vertical"},params:{childColumns:n}}),Or=(e="",a={})=>(a.componentVue=!1,an(e,a)),an=(e="",a={})=>{const{icon:n,status:r,title:l,requestUrl:o,requestRow:i=!0,requestRadio:s=!1,componentVue:u=!0,componentParams:d,maximize:g=!0,width:p,height:S,auth:x,autoLoad:k=!0,instanceField:h=""}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:Se,requestRow:i,requestRadio:s,requestUrl:c(o)?o:"",componentVue:u,componentParams:c(d)?d:{},title:c(l)?l:"操作",maximize:g,autoLoad:k,width:c(p)?p:null,height:c(S)?S:null,auth:c(x)?x:!0,instanceField:h}},xr={getItemInput:lr,getItemNumber:or,getItemSwitch:ir,getItemSelect:sr,getItemSelectList:cr,getItemDate:ur,getItemPeriod:dr,getColumnsSeq:fr,getColumnsRadio:pr,getColumnsCheckbox:mr,getColumnsButton:gr,getColumnsOperate:tn,getColumnsIframeOperate:hr,getColumnsLabel:br,getColumnsAutoLabel:yr,getColumnsNumber:Cr,getColumnsDate:nn,getColumnsDateTime:Sr,getColumnsVertical:wr,createModalButtons:an,createIframeModalButtons:Or,createConfirmButtons:(e="",a={})=>{const{icon:n,status:r,requestTitle:l,requestUrl:o,requestRow:i,requestRadio:s,requestConfirmContent:u,auth:d}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:er,requestRow:c(i)?i:!0,requestRadio:c(s)?s:!1,requestUrl:c(o)?o:"",requestTitle:c(l)?l:"确定要"+e+"选择的单据吗?",requestConfirmContent:c(u)?u:"",auth:c(d)?d:!0}},createOpenButtons:(e="",a={})=>{const{icon:n,status:r,requestUrl:l,auth:o}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:Ae,requestRow:!0,componentVue:!1,requestUrl:c(l)?l:"",auth:c(o)?o:!0}},createCustomButtons:(e="",a={})=>{const{icon:n,status:r,requestUrl:l,auth:o,downloadType:i}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:"custom",requestUrl:l,downloadType:c(i)?i:null,auth:c(o)?o:!0}},getVxePageButtonName:tr,getVxePageLinkParams:nr,getVxePageButtonProps:ar,getVxePageRows:rr},rn=e=>{const{mergeKey:a,seqKey:n,fields:r}=e;return({row:o,_rowIndex:i,column:s,visibleData:u})=>{if(a){const d=o[s.field]?o[s.field]:"";if(Array.isArray(r)){if(r&&r.includes(s.field)){const g=u[i-1],p=g&&g[s.field]?g[s.field]:"";let S=u[i+1];const x=S&&S[s.field]?S[s.field]:"";if(g&&p===d&&g[a]===o[a])return{rowspan:0,colspan:0};{let k=1;for(;S&&x===d&&S[a]===o[a];)S=u[++k+i];if(k>1)return{rowspan:k,colspan:1}}}else if(!c(s.field)||s.field===n){const g=u[i-1];let p=u[i+1];if(g&&g[a]===o[a])return{rowspan:0,colspan:0};{let S=1;for(;p&&p[a]===o[a];)p=u[++S+i];if(S>1)return{rowspan:S,colspan:1}}}}else if(c(r[s.field])){const g=r[s.field],p=u[i-1],S=p&&p[s.field]?p[s.field]:"";let x=u[i+1];const k=x&&x[s.field]?x[s.field]:"";if(p&&S===d&&p[g]===o[g])return{rowspan:0,colspan:0};{let h=1;for(;x&&k===d&&x[g]===o[g];)x=u[++h+i];if(h>1)return{rowspan:h,colspan:1}}}}}},Xe=(e,a,n,r,l,o)=>{const i=Object.assign({},r);Object.assign(i,l),Object.keys(i).forEach(u=>{typeof i[u]=="string"&&(i[u]=H.trim(i[u])),typeof l[u]=="object"&&c(l[u])&&o&&o.value[u]&&o.value[u].getRefType&&o.value[u].getRefType()==="dateRange"&&(i["begin"+u.substring(0,1).toUpperCase()+u.substring(1,u.length)]=l[u][0],i["end"+u.substring(0,1).toUpperCase()+u.substring(1,u.length)]=l[u][1],i[u]=null)}),i.pageModel={pageNo:e.currentPage,pageSize:e.pageSize,recordCount:e.total};const s=a[0];return s&&(i.sorts={sortName:s.field,sortType:s.order}),n&&n.forEach(u=>{const{field:d,datas:g,values:p}=u;i[d]=g?g.join(","):p?p.join(","):""}),W("表单查询参数:",i),i},kr=(e,a,n,r)=>{const l=Object.assign({},n);Object.assign(l,r),Object.keys(l).forEach(i=>{typeof l[i]=="string"&&(l[i]=H.trim(l[i]))});const o=e[0];return o&&(l.sorts={sortName:o.field,sortType:o.order}),a&&a.forEach(i=>{const{field:s,datas:u,values:d}=i;l[s]=u?u.join(","):d?d.join(","):""}),l},ln=(e,a,n=1)=>{const r=document.documentElement.clientHeight*n,l=e&&e.$el?e.$el.offsetHeight:0,o=r-l-50;a.height=o>a.minHeight?o:a.minHeight},Me=(e,a,n)=>{if(c(e))for(const r in e){const l=e[r].field;if(l){const o=e[r].itemRender?.props?.defaultValue;n[l]=o||null,a&&a.value[l]&&a.value[l]?.resetValue()}}};function K(e,a){_r(e)&&(e="100%");var n=vr(e);return e=a===360?e:Math.min(a,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*a),10)/100),Math.abs(e-a)<1e-6?1:(a===360?e=(e<0?e%a+a:e%a)/parseFloat(String(a)):e=e%a/parseFloat(String(a)),e)}function _r(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function vr(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Pr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ze(e){return e<=1?"".concat(Number(e)*100,"%"):e}function et(e){return e.length===1?"0"+e:String(e)}function Vr(e,a,n){return{r:K(e,255)*255,g:K(a,255)*255,b:K(n,255)*255}}function tt(e,a,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(a-e)*(6*n):n<1/2?a:n<2/3?e+(a-e)*(2/3-n)*6:e}function Br(e,a,n){var r,l,o;if(e=K(e,360),a=K(a,100),n=K(n,100),a===0)l=n,o=n,r=n;else{var i=n<.5?n*(1+a):n+a-n*a,s=2*n-i;r=tt(s,i,e+1/3),l=tt(s,i,e),o=tt(s,i,e-1/3)}return{r:r*255,g:l*255,b:o*255}}function Nr(e,a,n){e=K(e,255),a=K(a,255),n=K(n,255);var r=Math.max(e,a,n),l=Math.min(e,a,n),o=0,i=r,s=r-l,u=r===0?0:s/r;if(r===l)o=0;else{switch(r){case e:o=(a-n)/s+(a<n?6:0);break;case a:o=(n-e)/s+2;break;case n:o=(e-a)/s+4;break}o/=6}return{h:o,s:u,v:i}}function Tr(e,a,n){e=K(e,360)*6,a=K(a,100),n=K(n,100);var r=Math.floor(e),l=e-r,o=n*(1-a),i=n*(1-l*a),s=n*(1-(1-l)*a),u=r%6,d=[n,i,o,o,s,n][u],g=[s,n,n,i,o,o][u],p=[o,o,s,n,n,i][u];return{r:d*255,g:g*255,b:p*255}}function Ar(e,a,n,r){var l=[et(Math.round(e).toString(16)),et(Math.round(a).toString(16)),et(Math.round(n).toString(16))];return l.join("")}function on(e){return Z(e)/255}function Z(e){return parseInt(e,16)}var sn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function we(e){var a={r:0,g:0,b:0},n=1,r=null,l=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=$r(e)),typeof e=="object"&&(oe(e.r)&&oe(e.g)&&oe(e.b)?(a=Vr(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):oe(e.h)&&oe(e.s)&&oe(e.v)?(r=ze(e.s),l=ze(e.v),a=Tr(e.h,r,l),i=!0,s="hsv"):oe(e.h)&&oe(e.s)&&oe(e.l)&&(r=ze(e.s),o=ze(e.l),a=Br(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Pr(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:n}}var Mr="[-\\+]?\\d+%?",zr="[-\\+]?\\d*\\.\\d+%?",ce="(?:".concat(zr,")|(?:").concat(Mr,")"),nt="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),at="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),ee={CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+nt),rgba:new RegExp("rgba"+at),hsl:new RegExp("hsl"+nt),hsla:new RegExp("hsla"+at),hsv:new RegExp("hsv"+nt),hsva:new RegExp("hsva"+at),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function $r(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var a=!1;if(sn[e])e=sn[e],a=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ee.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ee.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ee.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ee.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ee.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ee.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ee.hex8.exec(e),n?{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),a:on(n[4]),format:a?"name":"hex8"}:(n=ee.hex6.exec(e),n?{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),format:a?"name":"hex"}:(n=ee.hex4.exec(e),n?{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),a:on(n[4]+n[4]),format:a?"name":"hex8"}:(n=ee.hex3.exec(e),n?{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),format:a?"name":"hex"}:!1)))))))))}function oe(e){return!!ee.CSS_UNIT.exec(String(e))}var $e=2,cn=.16,qr=.05,Dr=.05,Er=.15,un=5,dn=4,Lr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function fn(e){var a=e.r,n=e.g,r=e.b,l=Nr(a,n,r);return{h:l.h*360,s:l.s,v:l.v}}function qe(e){var a=e.r,n=e.g,r=e.b;return"#".concat(Ar(a,n,r))}function jr(e,a,n){var r=n/100,l={r:(a.r-e.r)*r+e.r,g:(a.g-e.g)*r+e.g,b:(a.b-e.b)*r+e.b};return l}function pn(e,a,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$e*a:Math.round(e.h)+$e*a:r=n?Math.round(e.h)+$e*a:Math.round(e.h)-$e*a,r<0?r+=360:r>=360&&(r-=360),r}function mn(e,a,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-cn*a:a===dn?r=e.s+cn:r=e.s+qr*a,r>1&&(r=1),n&&a===un&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function gn(e,a,n){var r;return n?r=e.v+Dr*a:r=e.v-Er*a,r>1&&(r=1),Number(r.toFixed(2))}function rt(e){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=we(e),l=un;l>0;l-=1){var o=fn(r),i=qe(we({h:pn(o,l,!0),s:mn(o,l,!0),v:gn(o,l,!0)}));n.push(i)}n.push(qe(r));for(var s=1;s<=dn;s+=1){var u=fn(r),d=qe(we({h:pn(u,s),s:mn(u,s),v:gn(u,s)}));n.push(d)}return a.theme==="dark"?Lr.map(function(g){var p=g.index,S=g.opacity,x=qe(jr(we(a.backgroundColor||"#141414"),we(n[p]),S*100));return x}):n}var lt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},De={},ot={};Object.keys(lt).forEach(function(e){De[e]=rt(lt[e]),De[e].primary=De[e][5],ot[e]=rt(lt[e],{theme:"dark",backgroundColor:"#141414"}),ot[e].primary=ot[e][5]});var Rr=De.blue,Ir=Symbol("iconContext"),hn=function(){return t.inject(Ir,{prefixCls:t.ref("anticon"),rootClassName:t.ref(""),csp:t.ref()})};function it(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fr(e,a){return e&&e.contains?e.contains(a):!1}var bn="data-vc-order",Ur="vc-icon-key",st=new Map;function yn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.mark;return a?a.startsWith("data-")?a:"data-".concat(a):Ur}function ct(e){if(e.attachTo)return e.attachTo;var a=document.querySelector("head");return a||document.body}function Hr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cn(e){return Array.from((st.get(e)||e).children).filter(function(a){return a.tagName==="STYLE"})}function Sn(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!it())return null;var n=a.csp,r=a.prepend,l=document.createElement("style");l.setAttribute(bn,Hr(r)),n&&n.nonce&&(l.nonce=n.nonce),l.innerHTML=e;var o=ct(a),i=o.firstChild;if(r){if(r==="queue"){var s=Cn(o).filter(function(u){return["prepend","prependQueue"].includes(u.getAttribute(bn))});if(s.length)return o.insertBefore(l,s[s.length-1].nextSibling),l}o.insertBefore(l,i)}else o.appendChild(l);return l}function Yr(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ct(a);return Cn(n).find(function(r){return r.getAttribute(yn(a))===e})}function Wr(e,a){var n=st.get(e);if(!n||!Fr(document,n)){var r=Sn("",a),l=r.parentNode;st.set(e,l),e.removeChild(r)}}function Gr(e,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ct(n);Wr(r,n);var l=Yr(a,n);if(l)return n.csp&&n.csp.nonce&&l.nonce!==n.csp.nonce&&(l.nonce=n.csp.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var o=Sn(e,n);return o.setAttribute(yn(n),a),o}function wn(e){for(var a=1;a<arguments.length;a++){var n=arguments[a]!=null?Object(arguments[a]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),r.forEach(function(l){Jr(e,l,n[l])})}return e}function Jr(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function Zr(e,a){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(a))}function Qr(e,a){Zr(e,"[@ant-design/icons-vue] ".concat(a))}function On(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function ut(e,a,n){return n?t.h(e.tag,wn({key:a},n,e.attrs),(e.children||[]).map(function(r,l){return ut(r,"".concat(a,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,wn({key:a},e.attrs),(e.children||[]).map(function(r,l){return ut(r,"".concat(a,"-").concat(e.tag,"-").concat(l))}))}function xn(e){return rt(e)[0]}function kn(e){return e?Array.isArray(e)?e:[e]:[]}var Kr=`
|
|
1
|
+
(function(U,H){typeof exports=="object"&&typeof module<"u"?H(exports,require("xe-utils"),require("vue"),require("ant-design-vue"),require("dayjs")):typeof define=="function"&&define.amd?define(["exports","xe-utils","vue","ant-design-vue","dayjs"],H):(U=typeof globalThis<"u"?globalThis:U||self,H(U["sag-ubmp-pc"]={},U.XEUtils,U.Vue,U.AntdV,U.dayjs))})(this,(function(U,H,t,ge,V){"use strict";const ve="SAG_UBMP_PC$",Pe={set:()=>{},get:()=>"",has:()=>!1,remove:()=>{},clear:()=>{},clearSelf:()=>{}},Wa=e=>{const a=new Date().getTime();return e.addTime+e.expires>=a},Ve=e=>`${ve}${e}`;Object.assign(Pe,(e=>({set(a,n,r){const l=Ve(a);if(r)e.setItem(l,JSON.stringify({value:n,addTime:new Date().getTime(),expires:r}));else{const o=JSON.stringify(n);e.setItem(l,o)}n==null&&e.removeItem(l)},get(a){const n=Ve(a),r=JSON.parse(e.getItem(n));return r&&r.addTime?Wa(r)?r.value:(e.removeItem(n),null):r},has(a){const n=Ve(a);return!!e.getItem(n)},remove:a=>{const n=Ve(a);e.removeItem(n)},clear:()=>{e.clear()},clearSelf:()=>{Array.from({length:e.length},(n,r)=>e.key(r)).filter(n=>n?.startsWith(ve)).forEach(n=>e.removeItem(n))}}))(window.localStorage));function Ze(e){return function(a,n){console[e]("[sag-ubmp-pc]"+a,n)}}const W=Ze("log"),Wt=Ze("warn"),Be=Ze("error"),Ne={ExcelJS:null,FileSaver:null},P={application:"APP_VXE_PAGE",size:"small",ctxPath:"",requestDictUrl:"",buttonKeyName:"_X_BUTTON_INFO",messageResp:!0,dynamicViewsModules:{},requestPlugin:()=>(Be("请在全局配置参数requestPlugin,此方法请求服务器获取相应数据"),null),templateForm:{vxeSlot:!0,storage:!1,formProps:{vertical:!1,titleColon:!0,titleWidth:100,titleAlign:"right",buttonAlign:"center",foldingLength:8}},templateTable:{clientScale:1,minHeight:300,maxHeight:0,showOverflow:"title",showButtonLink:!1,toolbarConfig:{className:"vxe-page--toolbar",perfect:!0,print:!0,refresh:!0,custom:!0,zoom:!0,slots:{buttons:"toolbar_buttons",tools:"toolbar_tools"}},tableColumnMerge:{backgroundColor:""},pageSizes:[10,20,50,100],ignoreExportColumnsTitle:[""],lazyComputdHeightTime:250},targetModal:{title:"业务处理",width:"85%",height:"75vh",mountainTop:!0,dialogContainer:null,componentVue:!0,maskClosable:!0},getPopupContainer:null},c=e=>!(e===void 0||e===null||typeof e=="string"&&e===""||typeof e=="object"&&Array.isArray(e)&&e.length===0),Ce=e=>e===void 0||e===null?!0:e,Y=(e,a)=>c(a)?a.startsWith("/")?a:e.endsWith("/")?e+a:e+"/"+a:"",he=(e,a,n)=>a!=null?a(n):e?P.getPopupContainer!=null&&typeof P.getPopupContainer=="function"?P.getPopupContainer(n):document.body:n.parentNode,Te=e=>c(e)?e+"$":"",Gt="DICT_TYPE",Qe=(e,a,n)=>{Qa(e,Gt,a,n)},Ke=(e,a)=>Ka(e,Gt,a),Jt="COLUMNS_SWITCH",Ga=(e,a,n)=>{Kt(e,Jt,a,n)},Ja=(e,a)=>Xt(e,Jt,a),Zt="FORM_PARAMS",Qt=(e,a,n)=>{Kt(e,Zt,a,n)},Za=(e,a)=>Xt(e,Zt,a),Qa=(e,a,n,r)=>{const l=ve+Te(e)+a,o=sessionStorage.getItem(l),i=c(o)?JSON.parse(o):{};i[n]=r,sessionStorage.setItem(l,JSON.stringify(i))},Ka=(e,a,n)=>{const r=ve+Te(e)+a,l=sessionStorage.getItem(r);return c(l)?JSON.parse(l)[n]:null},Kt=(e,a,n,r)=>{const l=Te(e)+a,o=Pe.get(l),i=c(o)?o:{};i[n]=r,Pe.set(l,i)},Xt=(e,a,n)=>{const r=Te(e)+a,l=Pe.get(r);return c(l)?l[n]:null},Xa={setupConfig:function(e){H.merge(P,e),W("加载公共参数完毕",P)},setupExcelConfig:function(e,a){H.merge(Ne,{ExcelJS:e,FileSaver:a}),W("加载excel组件完毕")},getDictDetail:function(e,a=P.application){return Ke(a,e)},setDictDetail:function(e,a,n=P.application){return Qe(n,e,a)}},Se="modal",Ae="open",er="confirm",pe="sag_ubmp_pc_modal_instance_",tr=e=>en(e,"buttonName"),nr=e=>en(e,"componentParams"),en=(e,a)=>c(e)&&c(e[P.buttonKeyName])?e[P.buttonKeyName][a]:null,ar=e=>c(e)&&c(e[P.buttonKeyName])?e[P.buttonKeyName]:{},rr=e=>e._X_ROWS,lr=(e,a,n={})=>{const{span:r,placeholder:l,defaultValue:o,disabled:i}=n;return{field:e,title:a,span:c(r)?r:6,itemRender:{props:{placeholder:c(l)?l:"请输入"+a,defaultValue:c(o)?o:null,disabled:c(i)?i:!1}},slots:{default:"input"}}},or=(e,a,n={})=>{const{span:r,placeholder:l,defaultValue:o,disabled:i}=n;return{field:e,title:a,span:c(r)?r:6,itemRender:{props:{type:"number",placeholder:c(l)?l:"请输入"+a,defaultValue:c(o)?o:null,disabled:c(i)?i:!1}},slots:{default:"input"}}},ir=(e,a,n=!1,r={})=>{const{span:l,titleWidth:o}=r;return{field:e,title:a,span:c(l)?l:3,titleWidth:c(o)?o:null,itemRender:{name:"$switch",props:{openLabel:"是",openValue:"1",closeLabel:"否",closeValue:"",defaultValue:n?"1":""}}}},sr=(e,a,n,r={})=>{const{folding:l,span:o,multiple:i,clearable:s,filterable:u,disabled:d,defaultValue:g,dictRoleType:p,selectAll:S,parentNode:x}=r;return{field:e,title:a,folding:c(l)?l:!1,span:c(o)?o:6,itemRender:{props:{request:{dictType:n,parentNode:c(x)?x:null,dictRoleType:c(p)?p:null},multiple:c(i)?i:!1,clearable:c(s)?s:!0,filterable:c(u)?u:!1,selectAll:c(S)?S:!0,disabled:c(d)?d:!1,defaultValue:c(g)?g:null}},slots:{default:"select"}}},cr=(e,a,n={})=>{const{span:r,requestUrl:l,requestParams:o,defaultValue:i,multiple:s,selectAll:u,clearable:d,filterable:g,disabled:p}=n;return{field:e,title:a,span:c(r)?r:6,slots:{default:"selectList"},itemRender:{props:{requestUrl:l,requestParams:c(o)?o:{},defaultValue:c(i)?i:null,multiple:c(s)?s:!1,clearable:c(d)?d:!0,filterable:c(g)?g:!0,selectAll:c(u)?u:!0,disabled:c(p)?p:!1}}}},ur=(e,a,n={})=>{const{folding:r,span:l,format:o,picker:i,defaultValue:s}=n;return{field:e,title:a,folding:c(r)?r:!1,span:c(l)?l:6,slots:{default:"dateRange"},itemRender:{props:{defaultValue:c(s)?s:null,format:c(o)?o:"YYYY-MM-DD",picker:c(i)?i:"date"}}}},dr=(e,a,n={})=>{const{folding:r,span:l,defaultValue:o}=n;return{field:e,title:a,folding:c(r)?r:!1,span:c(l)?l:6,slots:{default:"date"},itemRender:{props:{defaultValue:c(o)?o:null,format:"YYYYMM",picker:"month"}}}},fr=(e={})=>{const{fixed:a=null,visible:n=!0}=e;return{field:"row_seq",title:"序号",type:"seq",minWidth:50,width:50,fixed:a,visible:n,resizable:!1,align:"center",headerAlign:"center"}},pr=(e={})=>{const{fixed:a=null,visible:n=!0,treeNode:r=!1}=e;return{field:"row_radio",title:"",minWidth:r?60:50,width:r?60:50,fixed:a,visible:n,resizable:!1,treeNode:r,type:"radio",align:"center",headerAlign:"center"}},mr=(e={})=>{const{fixed:a=null,visible:n=!0,treeNode:r=!1}=e;return{field:"row_check",title:"",minWidth:r?60:50,width:r?60:50,fixed:a,visible:n,resizable:!1,treeNode:r,type:"checkbox",align:"center",headerAlign:"center"}},gr=(e={})=>{const{slots:a,width:n,align:r="left",minWidth:l=120,fixed:o=null}=e;return{field:"row_button",title:"操作",width:c(n)?n:"auto",minWidth:c(l)?l:120,resizable:!1,sortable:!1,fixed:o,align:r,headerAlign:"center",slots:{default:c(a)?a:"button"}}},hr=(e,a,n={})=>(n.componentVue=!1,tn(e,a,n)),tn=(e,a,n={})=>{const{formatter:r,requestType:l,requestUrl:o,requestTitle:i,instanceField:s="",minWidth:u=120,maximize:d=!0,componentVue:g=!0,componentParams:p={},treeNode:S=!1,autoLoad:x=!1,resizable:k=!1,showOverflow:h,align:f="center",type:b,fixed:m,width:w}=n;return{field:e,title:a,sortable:!1,width:c(w)?w:c(b)?c(u)?u:120:"auto",minWidth:u,resizable:k,showOverflow:c(h)?h:"title",align:f,headerAlign:"center",type:c(b)?b:null,fixed:c(m)?m:"",formatter:c(r)?r:"",treeNode:S,params:{requestType:c(l)?l:"",requestUrl:o,title:i,maximize:d,autoLoad:x,componentVue:g,componentParams:p,instanceField:s},slots:{default:"operate"}}},br=(e,a,n=120,r={})=>{const{align:l="center",treeNode:o}=r;return{field:e,title:a,minWidth:n,sortable:!1,treeNode:c(o)?o:!1,align:l,headerAlign:"center"}},yr=(e,a,n=80,r="center")=>({field:e,title:a,width:"auto",minWidth:n,resizable:!1,sortable:!1,align:r,headerAlign:"center"}),Cr=(e,a,n={})=>{const{align:r="right",digits:l,width:o,minWidth:i,resizable:s}=n;return{field:e,title:a,width:c(o)?o:c(i)?null:"auto",minWidth:c(i)?i:120,resizable:c(s)?s:!1,sortable:!1,align:r,footerAlign:r,headerAlign:"center",formatter:["number",c(l)?l:6]}},Sr=(e,a,n={})=>(n.minWidth=180,n.formatter="datetime",nn(e,a,n)),nn=(e,a,n={})=>{const{align:r="center",formatter:l,minWidth:o,width:i}=n;return{field:e,title:a,width:c(i)?i:"auto",minWidth:c(o)?o:120,resizable:!1,sortable:!1,align:r,headerAlign:"center",formatter:c(l)?l:"date"}},wr=(e,a=200,n=[])=>({field:e,minWidth:a,title:e,sortable:!1,align:"left",headerAlign:"center",slots:{default:"vertical"},params:{childColumns:n}}),Or=(e="",a={})=>(a.componentVue=!1,an(e,a)),an=(e="",a={})=>{const{icon:n,status:r,title:l,requestUrl:o,requestRow:i=!0,requestRadio:s=!1,componentVue:u=!0,componentParams:d,maximize:g=!0,width:p,height:S,auth:x,autoLoad:k=!0,instanceField:h=""}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:Se,requestRow:i,requestRadio:s,requestUrl:c(o)?o:"",componentVue:u,componentParams:c(d)?d:{},title:c(l)?l:"操作",maximize:g,autoLoad:k,width:c(p)?p:null,height:c(S)?S:null,auth:c(x)?x:!0,instanceField:h}},xr={getItemInput:lr,getItemNumber:or,getItemSwitch:ir,getItemSelect:sr,getItemSelectList:cr,getItemDate:ur,getItemPeriod:dr,getColumnsSeq:fr,getColumnsRadio:pr,getColumnsCheckbox:mr,getColumnsButton:gr,getColumnsOperate:tn,getColumnsIframeOperate:hr,getColumnsLabel:br,getColumnsAutoLabel:yr,getColumnsNumber:Cr,getColumnsDate:nn,getColumnsDateTime:Sr,getColumnsVertical:wr,createModalButtons:an,createIframeModalButtons:Or,createConfirmButtons:(e="",a={})=>{const{icon:n,status:r,requestTitle:l,requestUrl:o,requestRow:i,requestRadio:s,requestConfirmContent:u,auth:d}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:er,requestRow:c(i)?i:!0,requestRadio:c(s)?s:!1,requestUrl:c(o)?o:"",requestTitle:c(l)?l:"确定要"+e+"选择的单据吗?",requestConfirmContent:c(u)?u:"",auth:c(d)?d:!0}},createOpenButtons:(e="",a={})=>{const{icon:n,status:r,requestUrl:l,auth:o}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:Ae,requestRow:!0,componentVue:!1,requestUrl:c(l)?l:"",auth:c(o)?o:!0}},createCustomButtons:(e="",a={})=>{const{icon:n,status:r,requestUrl:l,auth:o,downloadType:i}=a;return{icon:c(n)?n:"save",status:c(r)?r:"primary",buttonName:e,requestType:"custom",requestUrl:l,downloadType:c(i)?i:null,auth:c(o)?o:!0}},getVxePageButtonName:tr,getVxePageLinkParams:nr,getVxePageButtonProps:ar,getVxePageRows:rr},rn=e=>{const{mergeKey:a,seqKey:n,fields:r}=e;return({row:o,_rowIndex:i,column:s,visibleData:u})=>{if(a){const d=o[s.field]?o[s.field]:"";if(Array.isArray(r)){if(r&&r.includes(s.field)){const g=u[i-1],p=g&&g[s.field]?g[s.field]:"";let S=u[i+1];const x=S&&S[s.field]?S[s.field]:"";if(g&&p===d&&g[a]===o[a])return{rowspan:0,colspan:0};{let k=1;for(;S&&x===d&&S[a]===o[a];)S=u[++k+i];if(k>1)return{rowspan:k,colspan:1}}}else if(!c(s.field)||s.field===n){const g=u[i-1];let p=u[i+1];if(g&&g[a]===o[a])return{rowspan:0,colspan:0};{let S=1;for(;p&&p[a]===o[a];)p=u[++S+i];if(S>1)return{rowspan:S,colspan:1}}}}else if(c(r[s.field])){const g=r[s.field],p=u[i-1],S=p&&p[s.field]?p[s.field]:"";let x=u[i+1];const k=x&&x[s.field]?x[s.field]:"";if(p&&S===d&&p[g]===o[g])return{rowspan:0,colspan:0};{let h=1;for(;x&&k===d&&x[g]===o[g];)x=u[++h+i];if(h>1)return{rowspan:h,colspan:1}}}}}},Xe=(e,a,n,r,l,o)=>{const i=Object.assign({},r);Object.assign(i,l),Object.keys(i).forEach(u=>{typeof i[u]=="string"&&(i[u]=H.trim(i[u])),typeof l[u]=="object"&&c(l[u])&&o&&o.value[u]&&o.value[u].getRefType&&o.value[u].getRefType()==="dateRange"&&(i["begin"+u.substring(0,1).toUpperCase()+u.substring(1,u.length)]=l[u][0],i["end"+u.substring(0,1).toUpperCase()+u.substring(1,u.length)]=l[u][1],i[u]=null)}),i.pageModel={pageNo:e.currentPage,pageSize:e.pageSize,recordCount:e.total};const s=a[0];return s&&(i.sorts={sortName:s.field,sortType:s.order}),n&&n.forEach(u=>{const{field:d,datas:g,values:p}=u;i[d]=g?g.join(","):p?p.join(","):""}),W("表单查询参数:",i),i},kr=(e,a,n,r)=>{const l=Object.assign({},n);Object.assign(l,r),Object.keys(l).forEach(i=>{typeof l[i]=="string"&&(l[i]=H.trim(l[i]))});const o=e[0];return o&&(l.sorts={sortName:o.field,sortType:o.order}),a&&a.forEach(i=>{const{field:s,datas:u,values:d}=i;l[s]=u?u.join(","):d?d.join(","):""}),l},ln=(e,a,n=1)=>{const r=document.documentElement.clientHeight*n,l=e&&e.$el?e.$el.offsetHeight:0,o=r-l-50;a.height=o>a.minHeight?o:a.minHeight},Me=(e,a,n)=>{if(c(e))for(const r in e){const l=e[r].field;if(l){const o=e[r].itemRender?.props?.defaultValue;n[l]=o||null,a&&a.value[l]&&a.value[l]?.resetValue()}}};function K(e,a){_r(e)&&(e="100%");var n=vr(e);return e=a===360?e:Math.min(a,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*a),10)/100),Math.abs(e-a)<1e-6?1:(a===360?e=(e<0?e%a+a:e%a)/parseFloat(String(a)):e=e%a/parseFloat(String(a)),e)}function _r(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function vr(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Pr(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function ze(e){return e<=1?"".concat(Number(e)*100,"%"):e}function et(e){return e.length===1?"0"+e:String(e)}function Vr(e,a,n){return{r:K(e,255)*255,g:K(a,255)*255,b:K(n,255)*255}}function tt(e,a,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(a-e)*(6*n):n<1/2?a:n<2/3?e+(a-e)*(2/3-n)*6:e}function Br(e,a,n){var r,l,o;if(e=K(e,360),a=K(a,100),n=K(n,100),a===0)l=n,o=n,r=n;else{var i=n<.5?n*(1+a):n+a-n*a,s=2*n-i;r=tt(s,i,e+1/3),l=tt(s,i,e),o=tt(s,i,e-1/3)}return{r:r*255,g:l*255,b:o*255}}function Nr(e,a,n){e=K(e,255),a=K(a,255),n=K(n,255);var r=Math.max(e,a,n),l=Math.min(e,a,n),o=0,i=r,s=r-l,u=r===0?0:s/r;if(r===l)o=0;else{switch(r){case e:o=(a-n)/s+(a<n?6:0);break;case a:o=(n-e)/s+2;break;case n:o=(e-a)/s+4;break}o/=6}return{h:o,s:u,v:i}}function Tr(e,a,n){e=K(e,360)*6,a=K(a,100),n=K(n,100);var r=Math.floor(e),l=e-r,o=n*(1-a),i=n*(1-l*a),s=n*(1-(1-l)*a),u=r%6,d=[n,i,o,o,s,n][u],g=[s,n,n,i,o,o][u],p=[o,o,s,n,n,i][u];return{r:d*255,g:g*255,b:p*255}}function Ar(e,a,n,r){var l=[et(Math.round(e).toString(16)),et(Math.round(a).toString(16)),et(Math.round(n).toString(16))];return l.join("")}function on(e){return Z(e)/255}function Z(e){return parseInt(e,16)}var sn={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function we(e){var a={r:0,g:0,b:0},n=1,r=null,l=null,o=null,i=!1,s=!1;return typeof e=="string"&&(e=$r(e)),typeof e=="object"&&(oe(e.r)&&oe(e.g)&&oe(e.b)?(a=Vr(e.r,e.g,e.b),i=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):oe(e.h)&&oe(e.s)&&oe(e.v)?(r=ze(e.s),l=ze(e.v),a=Tr(e.h,r,l),i=!0,s="hsv"):oe(e.h)&&oe(e.s)&&oe(e.l)&&(r=ze(e.s),o=ze(e.l),a=Br(e.h,r,o),i=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=Pr(n),{ok:i,format:e.format||s,r:Math.min(255,Math.max(a.r,0)),g:Math.min(255,Math.max(a.g,0)),b:Math.min(255,Math.max(a.b,0)),a:n}}var Mr="[-\\+]?\\d+%?",zr="[-\\+]?\\d*\\.\\d+%?",ce="(?:".concat(zr,")|(?:").concat(Mr,")"),nt="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),at="[\\s|\\(]+(".concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")[,|\\s]+(").concat(ce,")\\s*\\)?"),ee={CSS_UNIT:new RegExp(ce),rgb:new RegExp("rgb"+nt),rgba:new RegExp("rgba"+at),hsl:new RegExp("hsl"+nt),hsla:new RegExp("hsla"+at),hsv:new RegExp("hsv"+nt),hsva:new RegExp("hsva"+at),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function $r(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var a=!1;if(sn[e])e=sn[e],a=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ee.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=ee.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ee.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=ee.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ee.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=ee.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ee.hex8.exec(e),n?{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),a:on(n[4]),format:a?"name":"hex8"}:(n=ee.hex6.exec(e),n?{r:Z(n[1]),g:Z(n[2]),b:Z(n[3]),format:a?"name":"hex"}:(n=ee.hex4.exec(e),n?{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),a:on(n[4]+n[4]),format:a?"name":"hex8"}:(n=ee.hex3.exec(e),n?{r:Z(n[1]+n[1]),g:Z(n[2]+n[2]),b:Z(n[3]+n[3]),format:a?"name":"hex"}:!1)))))))))}function oe(e){return!!ee.CSS_UNIT.exec(String(e))}var $e=2,cn=.16,qr=.05,Dr=.05,Er=.15,un=5,dn=4,Lr=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function fn(e){var a=e.r,n=e.g,r=e.b,l=Nr(a,n,r);return{h:l.h*360,s:l.s,v:l.v}}function qe(e){var a=e.r,n=e.g,r=e.b;return"#".concat(Ar(a,n,r))}function jr(e,a,n){var r=n/100,l={r:(a.r-e.r)*r+e.r,g:(a.g-e.g)*r+e.g,b:(a.b-e.b)*r+e.b};return l}function pn(e,a,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-$e*a:Math.round(e.h)+$e*a:r=n?Math.round(e.h)+$e*a:Math.round(e.h)-$e*a,r<0?r+=360:r>=360&&(r-=360),r}function mn(e,a,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-cn*a:a===dn?r=e.s+cn:r=e.s+qr*a,r>1&&(r=1),n&&a===un&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function gn(e,a,n){var r;return n?r=e.v+Dr*a:r=e.v-Er*a,r>1&&(r=1),Number(r.toFixed(2))}function rt(e){for(var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=we(e),l=un;l>0;l-=1){var o=fn(r),i=qe(we({h:pn(o,l,!0),s:mn(o,l,!0),v:gn(o,l,!0)}));n.push(i)}n.push(qe(r));for(var s=1;s<=dn;s+=1){var u=fn(r),d=qe(we({h:pn(u,s),s:mn(u,s),v:gn(u,s)}));n.push(d)}return a.theme==="dark"?Lr.map(function(g){var p=g.index,S=g.opacity,x=qe(jr(we(a.backgroundColor||"#141414"),we(n[p]),S*100));return x}):n}var lt={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},De={},ot={};Object.keys(lt).forEach(function(e){De[e]=rt(lt[e]),De[e].primary=De[e][5],ot[e]=rt(lt[e],{theme:"dark",backgroundColor:"#141414"}),ot[e].primary=ot[e][5]});var Rr=De.blue,Ir=Symbol("iconContext"),hn=function(){return t.inject(Ir,{prefixCls:t.ref("anticon"),rootClassName:t.ref(""),csp:t.ref()})};function it(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Fr(e,a){return e&&e.contains?e.contains(a):!1}var bn="data-vc-order",Ur="vc-icon-key",st=new Map;function yn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=e.mark;return a?a.startsWith("data-")?a:"data-".concat(a):Ur}function ct(e){if(e.attachTo)return e.attachTo;var a=document.querySelector("head");return a||document.body}function Hr(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Cn(e){return Array.from((st.get(e)||e).children).filter(function(a){return a.tagName==="STYLE"})}function Sn(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!it())return null;var n=a.csp,r=a.prepend,l=document.createElement("style");l.setAttribute(bn,Hr(r)),n&&n.nonce&&(l.nonce=n.nonce),l.innerHTML=e;var o=ct(a),i=o.firstChild;if(r){if(r==="queue"){var s=Cn(o).filter(function(u){return["prepend","prependQueue"].includes(u.getAttribute(bn))});if(s.length)return o.insertBefore(l,s[s.length-1].nextSibling),l}o.insertBefore(l,i)}else o.appendChild(l);return l}function Yr(e){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ct(a);return Cn(n).find(function(r){return r.getAttribute(yn(a))===e})}function Wr(e,a){var n=st.get(e);if(!n||!Fr(document,n)){var r=Sn("",a),l=r.parentNode;st.set(e,l),e.removeChild(r)}}function Gr(e,a){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=ct(n);Wr(r,n);var l=Yr(a,n);if(l)return n.csp&&n.csp.nonce&&l.nonce!==n.csp.nonce&&(l.nonce=n.csp.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;var o=Sn(e,n);return o.setAttribute(yn(n),a),o}function wn(e){for(var a=1;a<arguments.length;a++){var n=arguments[a]!=null?Object(arguments[a]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),r.forEach(function(l){Jr(e,l,n[l])})}return e}function Jr(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function Zr(e,a){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(a))}function Qr(e,a){Zr(e,"[@ant-design/icons-vue] ".concat(a))}function On(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function ut(e,a,n){return n?t.h(e.tag,wn({key:a},n,e.attrs),(e.children||[]).map(function(r,l){return ut(r,"".concat(a,"-").concat(e.tag,"-").concat(l))})):t.h(e.tag,wn({key:a},e.attrs),(e.children||[]).map(function(r,l){return ut(r,"".concat(a,"-").concat(e.tag,"-").concat(l))}))}function xn(e){return rt(e)[0]}function kn(e){return e?Array.isArray(e)?e:[e]:[]}var Kr=`
|
|
2
2
|
.anticon {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
color: inherit;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sag-ubmp-pc",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.50",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"commit": "git add . && git-cz"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"vxe-table": "4.
|
|
39
|
-
"vxe-pc-ui": "4.
|
|
40
|
-
"xe-utils": "4.0.
|
|
38
|
+
"vxe-table": "4.21.2",
|
|
39
|
+
"vxe-pc-ui": "4.17.14",
|
|
40
|
+
"xe-utils": "4.0.12",
|
|
41
41
|
"exceljs": "4.4.0",
|
|
42
42
|
"file-saver": "2.0.5",
|
|
43
43
|
"ant-design-vue": "4.2.6",
|