@kengic/vue 0.5.14 → 0.5.16
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/kengic-vue.js
CHANGED
@@ -351,8 +351,6 @@ class VarGridMasterDTO {
|
|
351
351
|
}
|
352
352
|
class VarLookup {
|
353
353
|
constructor(t) {
|
354
|
-
g(this, "cmd");
|
355
|
-
g(this, "cmd_prm");
|
356
354
|
g(this, "cust_lvl");
|
357
355
|
g(this, "ena_flg");
|
358
356
|
g(this, "frm_id");
|
@@ -365,8 +363,6 @@ class VarLookup {
|
|
365
363
|
g(this, "var_nam");
|
366
364
|
keys$1(t != null ? t : {}).forEach((r) => {
|
367
365
|
switch (r) {
|
368
|
-
case "cmd":
|
369
|
-
case "cmd_prm":
|
370
366
|
case "cust_lvl":
|
371
367
|
case "ena_flg":
|
372
368
|
case "frm_id":
|
@@ -2264,12 +2260,12 @@ function baseClone(e, t, r, n, a, o) {
|
|
2264
2260
|
return p;
|
2265
2261
|
o.set(e, s), isSet$1(e) ? e.forEach(function(v) {
|
2266
2262
|
s.add(baseClone(v, t, r, v, e, o));
|
2267
|
-
}) : isMap$1(e) && e.forEach(function(v,
|
2268
|
-
s.set(
|
2263
|
+
}) : isMap$1(e) && e.forEach(function(v, C) {
|
2264
|
+
s.set(C, baseClone(v, t, r, C, e, o));
|
2269
2265
|
});
|
2270
2266
|
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = c ? void 0 : b(e);
|
2271
|
-
return arrayEach(_ || e, function(v,
|
2272
|
-
_ && (
|
2267
|
+
return arrayEach(_ || e, function(v, C) {
|
2268
|
+
_ && (C = v, v = e[C]), assignValue(s, C, baseClone(v, t, r, C, e, o));
|
2273
2269
|
}), s;
|
2274
2270
|
}
|
2275
2271
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2319,8 +2315,8 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2319
2315
|
break;
|
2320
2316
|
}
|
2321
2317
|
if (p) {
|
2322
|
-
if (!arraySome(t, function(
|
2323
|
-
if (!cacheHas(p, y) && (b ===
|
2318
|
+
if (!arraySome(t, function(C, y) {
|
2319
|
+
if (!cacheHas(p, y) && (b === C || a(b, C, r, n, o)))
|
2324
2320
|
return p.push(y);
|
2325
2321
|
})) {
|
2326
2322
|
m = !1;
|
@@ -2398,18 +2394,18 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2398
2394
|
o.set(e, t), o.set(t, e);
|
2399
2395
|
for (var v = s; ++d < l; ) {
|
2400
2396
|
m = i[d];
|
2401
|
-
var
|
2397
|
+
var C = e[m], y = t[m];
|
2402
2398
|
if (n)
|
2403
|
-
var
|
2404
|
-
if (!(
|
2399
|
+
var E = s ? n(y, C, m, t, e, o) : n(C, y, m, e, t, o);
|
2400
|
+
if (!(E === void 0 ? C === y || a(C, y, r, n, o) : E)) {
|
2405
2401
|
_ = !1;
|
2406
2402
|
break;
|
2407
2403
|
}
|
2408
2404
|
v || (v = m == "constructor");
|
2409
2405
|
}
|
2410
2406
|
if (_ && !v) {
|
2411
|
-
var
|
2412
|
-
|
2407
|
+
var A = e.constructor, P = t.constructor;
|
2408
|
+
A != P && "constructor" in e && "constructor" in t && !(typeof A == "function" && A instanceof A && typeof P == "function" && P instanceof P) && (_ = !1);
|
2413
2409
|
}
|
2414
2410
|
return o.delete(e), o.delete(t), _;
|
2415
2411
|
}
|
@@ -3482,7 +3478,7 @@ var Icon$1 = function(t, r) {
|
|
3482
3478
|
var v = l ? {
|
3483
3479
|
msTransform: "rotate(".concat(l, "deg)"),
|
3484
3480
|
transform: "rotate(".concat(l, "deg)")
|
3485
|
-
} : void 0,
|
3481
|
+
} : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], A = y[1];
|
3486
3482
|
return createVNode("span", _objectSpread$i({
|
3487
3483
|
role: "img",
|
3488
3484
|
"aria-label": s.name
|
@@ -3492,8 +3488,8 @@ var Icon$1 = function(t, r) {
|
|
3492
3488
|
}), [createVNode(VueIcon, {
|
3493
3489
|
class: b,
|
3494
3490
|
icon: s,
|
3495
|
-
primaryColor:
|
3496
|
-
secondaryColor:
|
3491
|
+
primaryColor: E,
|
3492
|
+
secondaryColor: A,
|
3497
3493
|
style: v
|
3498
3494
|
}, null)]);
|
3499
3495
|
};
|
@@ -4441,207 +4437,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4441
4437
|
(function(r, n) {
|
4442
4438
|
e.exports = n();
|
4443
4439
|
})(commonjsGlobal, function() {
|
4444
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
4445
|
-
var
|
4446
|
-
return "[" +
|
4447
|
-
} },
|
4448
|
-
var F = String(
|
4449
|
-
return !F || F.length >=
|
4450
|
-
},
|
4451
|
-
var
|
4452
|
-
return (
|
4453
|
-
}, m: function
|
4454
|
-
if (
|
4455
|
-
return
|
4456
|
-
var F = 12 * (
|
4457
|
-
return +(-(F + (
|
4458
|
-
}, a: function(
|
4459
|
-
return
|
4460
|
-
}, p: function(
|
4461
|
-
return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[
|
4462
|
-
}, u: function(
|
4463
|
-
return
|
4440
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", d = "month", m = "quarter", p = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function($) {
|
4441
|
+
var M = ["th", "st", "nd", "rd"], O = $ % 100;
|
4442
|
+
return "[" + $ + (M[(O - 20) % 10] || M[O] || M[0]) + "]";
|
4443
|
+
} }, E = function($, M, O) {
|
4444
|
+
var F = String($);
|
4445
|
+
return !F || F.length >= M ? $ : "" + Array(M + 1 - F.length).join(O) + $;
|
4446
|
+
}, A = { s: E, z: function($) {
|
4447
|
+
var M = -$.utcOffset(), O = Math.abs(M), F = Math.floor(O / 60), R = O % 60;
|
4448
|
+
return (M <= 0 ? "+" : "-") + E(F, 2, "0") + ":" + E(R, 2, "0");
|
4449
|
+
}, m: function $(M, O) {
|
4450
|
+
if (M.date() < O.date())
|
4451
|
+
return -$(O, M);
|
4452
|
+
var F = 12 * (O.year() - M.year()) + (O.month() - M.month()), R = M.clone().add(F, d), G = O - R < 0, V = M.clone().add(F + (G ? -1 : 1), d);
|
4453
|
+
return +(-(F + (O - R) / (G ? R - V : V - R)) || 0);
|
4454
|
+
}, a: function($) {
|
4455
|
+
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
4456
|
+
}, p: function($) {
|
4457
|
+
return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
4458
|
+
}, u: function($) {
|
4459
|
+
return $ === void 0;
|
4464
4460
|
} }, P = "en", T = {};
|
4465
4461
|
T[P] = y;
|
4466
|
-
var B = function(
|
4467
|
-
return
|
4468
|
-
},
|
4462
|
+
var B = function($) {
|
4463
|
+
return $ instanceof w;
|
4464
|
+
}, N = function $(M, O, F) {
|
4469
4465
|
var R;
|
4470
|
-
if (
|
4466
|
+
if (!M)
|
4471
4467
|
return P;
|
4472
|
-
if (typeof
|
4473
|
-
var G =
|
4474
|
-
T[G] && (R = G),
|
4475
|
-
var
|
4476
|
-
if (!R &&
|
4477
|
-
return
|
4468
|
+
if (typeof M == "string") {
|
4469
|
+
var G = M.toLowerCase();
|
4470
|
+
T[G] && (R = G), O && (T[G] = O, R = G);
|
4471
|
+
var V = M.split("-");
|
4472
|
+
if (!R && V.length > 1)
|
4473
|
+
return $(V[0]);
|
4478
4474
|
} else {
|
4479
|
-
var U =
|
4480
|
-
T[U] =
|
4475
|
+
var U = M.name;
|
4476
|
+
T[U] = M, R = U;
|
4481
4477
|
}
|
4482
4478
|
return !F && R && (P = R), R || !F && P;
|
4483
|
-
},
|
4484
|
-
if (B(
|
4485
|
-
return
|
4486
|
-
var
|
4487
|
-
return
|
4488
|
-
},
|
4489
|
-
|
4490
|
-
return
|
4479
|
+
}, k = function($, M) {
|
4480
|
+
if (B($))
|
4481
|
+
return $.clone();
|
4482
|
+
var O = typeof M == "object" ? M : {};
|
4483
|
+
return O.date = $, O.args = arguments, new w(O);
|
4484
|
+
}, I = A;
|
4485
|
+
I.l = N, I.i = B, I.w = function($, M) {
|
4486
|
+
return k($, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
|
4491
4487
|
};
|
4492
|
-
var
|
4493
|
-
function
|
4494
|
-
this.$L =
|
4488
|
+
var w = function() {
|
4489
|
+
function $(O) {
|
4490
|
+
this.$L = N(O.locale, null, !0), this.parse(O);
|
4495
4491
|
}
|
4496
|
-
var
|
4497
|
-
return
|
4492
|
+
var M = $.prototype;
|
4493
|
+
return M.parse = function(O) {
|
4498
4494
|
this.$d = function(F) {
|
4499
4495
|
var R = F.date, G = F.utc;
|
4500
4496
|
if (R === null)
|
4501
4497
|
return new Date(NaN);
|
4502
|
-
if (
|
4498
|
+
if (I.u(R))
|
4503
4499
|
return new Date();
|
4504
4500
|
if (R instanceof Date)
|
4505
4501
|
return new Date(R);
|
4506
4502
|
if (typeof R == "string" && !/Z$/i.test(R)) {
|
4507
|
-
var
|
4508
|
-
if (
|
4509
|
-
var U =
|
4510
|
-
return G ? new Date(Date.UTC(
|
4503
|
+
var V = R.match(v);
|
4504
|
+
if (V) {
|
4505
|
+
var U = V[2] - 1 || 0, H = (V[7] || "0").substring(0, 3);
|
4506
|
+
return G ? new Date(Date.UTC(V[1], U, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, H)) : new Date(V[1], U, V[3] || 1, V[4] || 0, V[5] || 0, V[6] || 0, H);
|
4511
4507
|
}
|
4512
4508
|
}
|
4513
4509
|
return new Date(R);
|
4514
|
-
}(
|
4515
|
-
},
|
4516
|
-
var
|
4517
|
-
this.$y =
|
4518
|
-
},
|
4519
|
-
return
|
4520
|
-
},
|
4510
|
+
}(O), this.$x = O.x || {}, this.init();
|
4511
|
+
}, M.init = function() {
|
4512
|
+
var O = this.$d;
|
4513
|
+
this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
|
4514
|
+
}, M.$utils = function() {
|
4515
|
+
return I;
|
4516
|
+
}, M.isValid = function() {
|
4521
4517
|
return this.$d.toString() !== _;
|
4522
|
-
},
|
4523
|
-
var R =
|
4518
|
+
}, M.isSame = function(O, F) {
|
4519
|
+
var R = k(O);
|
4524
4520
|
return this.startOf(F) <= R && R <= this.endOf(F);
|
4525
|
-
},
|
4526
|
-
return
|
4527
|
-
},
|
4528
|
-
return this.endOf(F) <
|
4529
|
-
},
|
4530
|
-
return
|
4531
|
-
},
|
4521
|
+
}, M.isAfter = function(O, F) {
|
4522
|
+
return k(O) < this.startOf(F);
|
4523
|
+
}, M.isBefore = function(O, F) {
|
4524
|
+
return this.endOf(F) < k(O);
|
4525
|
+
}, M.$g = function(O, F, R) {
|
4526
|
+
return I.u(O) ? this[F] : this.set(R, O);
|
4527
|
+
}, M.unix = function() {
|
4532
4528
|
return Math.floor(this.valueOf() / 1e3);
|
4533
|
-
},
|
4529
|
+
}, M.valueOf = function() {
|
4534
4530
|
return this.$d.getTime();
|
4535
|
-
},
|
4536
|
-
var R = this, G = !!
|
4537
|
-
var
|
4538
|
-
return G ?
|
4539
|
-
},
|
4540
|
-
return
|
4541
|
-
},
|
4542
|
-
switch (
|
4531
|
+
}, M.startOf = function(O, F) {
|
4532
|
+
var R = this, G = !!I.u(F) || F, V = I.p(O), U = function(ee, z) {
|
4533
|
+
var re = I.w(R.$u ? Date.UTC(R.$y, z, ee) : new Date(R.$y, z, ee), R);
|
4534
|
+
return G ? re : re.endOf(u);
|
4535
|
+
}, H = function(ee, z) {
|
4536
|
+
return I.w(R.toDate()[ee].apply(R.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(z)), R);
|
4537
|
+
}, Q = this.$W, J = this.$M, D = this.$D, x = "set" + (this.$u ? "UTC" : "");
|
4538
|
+
switch (V) {
|
4543
4539
|
case p:
|
4544
4540
|
return G ? U(1, 0) : U(31, 11);
|
4545
4541
|
case d:
|
4546
|
-
return G ? U(1,
|
4542
|
+
return G ? U(1, J) : U(0, J + 1);
|
4547
4543
|
case c:
|
4548
|
-
var
|
4549
|
-
return U(G ?
|
4544
|
+
var X = this.$locale().weekStart || 0, q = (Q < X ? Q + 7 : Q) - X;
|
4545
|
+
return U(G ? D - q : D + (6 - q), J);
|
4550
4546
|
case u:
|
4551
4547
|
case b:
|
4552
|
-
return
|
4548
|
+
return H(x + "Hours", 0);
|
4553
4549
|
case l:
|
4554
|
-
return
|
4550
|
+
return H(x + "Minutes", 1);
|
4555
4551
|
case i:
|
4556
|
-
return
|
4552
|
+
return H(x + "Seconds", 2);
|
4557
4553
|
case s:
|
4558
|
-
return
|
4554
|
+
return H(x + "Milliseconds", 3);
|
4559
4555
|
default:
|
4560
4556
|
return this.clone();
|
4561
4557
|
}
|
4562
|
-
},
|
4563
|
-
return this.startOf(
|
4564
|
-
},
|
4565
|
-
var R, G =
|
4558
|
+
}, M.endOf = function(O) {
|
4559
|
+
return this.startOf(O, !1);
|
4560
|
+
}, M.$set = function(O, F) {
|
4561
|
+
var R, G = I.p(O), V = "set" + (this.$u ? "UTC" : ""), U = (R = {}, R[u] = V + "Date", R[b] = V + "Date", R[d] = V + "Month", R[p] = V + "FullYear", R[l] = V + "Hours", R[i] = V + "Minutes", R[s] = V + "Seconds", R[o] = V + "Milliseconds", R)[G], H = G === u ? this.$D + (F - this.$W) : F;
|
4566
4562
|
if (G === d || G === p) {
|
4567
|
-
var
|
4568
|
-
|
4563
|
+
var Q = this.clone().set(b, 1);
|
4564
|
+
Q.$d[U](H), Q.init(), this.$d = Q.set(b, Math.min(this.$D, Q.daysInMonth())).$d;
|
4569
4565
|
} else
|
4570
|
-
U && this.$d[U](
|
4566
|
+
U && this.$d[U](H);
|
4571
4567
|
return this.init(), this;
|
4572
|
-
},
|
4573
|
-
return this.clone().$set(
|
4574
|
-
},
|
4575
|
-
return this[
|
4576
|
-
},
|
4568
|
+
}, M.set = function(O, F) {
|
4569
|
+
return this.clone().$set(O, F);
|
4570
|
+
}, M.get = function(O) {
|
4571
|
+
return this[I.p(O)]();
|
4572
|
+
}, M.add = function(O, F) {
|
4577
4573
|
var R, G = this;
|
4578
|
-
|
4579
|
-
var
|
4580
|
-
var
|
4581
|
-
return
|
4574
|
+
O = Number(O);
|
4575
|
+
var V = I.p(F), U = function(J) {
|
4576
|
+
var D = k(G);
|
4577
|
+
return I.w(D.date(D.date() + Math.round(J * O)), G);
|
4582
4578
|
};
|
4583
|
-
if (
|
4584
|
-
return this.set(d, this.$M +
|
4585
|
-
if (
|
4586
|
-
return this.set(p, this.$y +
|
4587
|
-
if (
|
4579
|
+
if (V === d)
|
4580
|
+
return this.set(d, this.$M + O);
|
4581
|
+
if (V === p)
|
4582
|
+
return this.set(p, this.$y + O);
|
4583
|
+
if (V === u)
|
4588
4584
|
return U(1);
|
4589
|
-
if (
|
4585
|
+
if (V === c)
|
4590
4586
|
return U(7);
|
4591
|
-
var
|
4592
|
-
return
|
4593
|
-
},
|
4594
|
-
return this.add(-1 *
|
4595
|
-
},
|
4587
|
+
var H = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[V] || 1, Q = this.$d.getTime() + O * H;
|
4588
|
+
return I.w(Q, this);
|
4589
|
+
}, M.subtract = function(O, F) {
|
4590
|
+
return this.add(-1 * O, F);
|
4591
|
+
}, M.format = function(O) {
|
4596
4592
|
var F = this, R = this.$locale();
|
4597
4593
|
if (!this.isValid())
|
4598
4594
|
return R.invalidDate || _;
|
4599
|
-
var G =
|
4600
|
-
return z && (z[
|
4601
|
-
},
|
4602
|
-
return
|
4603
|
-
},
|
4604
|
-
var
|
4605
|
-
return
|
4606
|
-
},
|
4607
|
-
return G.replace(
|
4608
|
-
return
|
4595
|
+
var G = O || "YYYY-MM-DDTHH:mm:ssZ", V = I.z(this), U = this.$H, H = this.$m, Q = this.$M, J = R.weekdays, D = R.months, x = function(z, re, ie, le) {
|
4596
|
+
return z && (z[re] || z(F, G)) || ie[re].slice(0, le);
|
4597
|
+
}, X = function(z) {
|
4598
|
+
return I.s(U % 12 || 12, z, "0");
|
4599
|
+
}, q = R.meridiem || function(z, re, ie) {
|
4600
|
+
var le = z < 12 ? "AM" : "PM";
|
4601
|
+
return ie ? le.toLowerCase() : le;
|
4602
|
+
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: I.s(Q + 1, 2, "0"), MMM: x(R.monthsShort, Q, D, 3), MMMM: x(D, Q), D: this.$D, DD: I.s(this.$D, 2, "0"), d: String(this.$W), dd: x(R.weekdaysMin, this.$W, J, 2), ddd: x(R.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(U), HH: I.s(U, 2, "0"), h: X(1), hh: X(2), a: q(U, H, !0), A: q(U, H, !1), m: String(H), mm: I.s(H, 2, "0"), s: String(this.$s), ss: I.s(this.$s, 2, "0"), SSS: I.s(this.$ms, 3, "0"), Z: V };
|
4603
|
+
return G.replace(C, function(z, re) {
|
4604
|
+
return re || ee[z] || V.replace(":", "");
|
4609
4605
|
});
|
4610
|
-
},
|
4606
|
+
}, M.utcOffset = function() {
|
4611
4607
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4612
|
-
},
|
4613
|
-
var G,
|
4614
|
-
return
|
4615
|
-
},
|
4608
|
+
}, M.diff = function(O, F, R) {
|
4609
|
+
var G, V = I.p(F), U = k(O), H = (U.utcOffset() - this.utcOffset()) * n, Q = this - U, J = I.m(this, U);
|
4610
|
+
return J = (G = {}, G[p] = J / 12, G[d] = J, G[m] = J / 3, G[c] = (Q - H) / 6048e5, G[u] = (Q - H) / 864e5, G[l] = Q / a, G[i] = Q / n, G[s] = Q / r, G)[V] || Q, R ? J : I.a(J);
|
4611
|
+
}, M.daysInMonth = function() {
|
4616
4612
|
return this.endOf(d).$D;
|
4617
|
-
},
|
4613
|
+
}, M.$locale = function() {
|
4618
4614
|
return T[this.$L];
|
4619
|
-
},
|
4620
|
-
if (!
|
4615
|
+
}, M.locale = function(O, F) {
|
4616
|
+
if (!O)
|
4621
4617
|
return this.$L;
|
4622
|
-
var R = this.clone(), G =
|
4618
|
+
var R = this.clone(), G = N(O, F, !0);
|
4623
4619
|
return G && (R.$L = G), R;
|
4624
|
-
},
|
4625
|
-
return
|
4626
|
-
},
|
4620
|
+
}, M.clone = function() {
|
4621
|
+
return I.w(this.$d, this);
|
4622
|
+
}, M.toDate = function() {
|
4627
4623
|
return new Date(this.valueOf());
|
4628
|
-
},
|
4624
|
+
}, M.toJSON = function() {
|
4629
4625
|
return this.isValid() ? this.toISOString() : null;
|
4630
|
-
},
|
4626
|
+
}, M.toISOString = function() {
|
4631
4627
|
return this.$d.toISOString();
|
4632
|
-
},
|
4628
|
+
}, M.toString = function() {
|
4633
4629
|
return this.$d.toUTCString();
|
4634
|
-
},
|
4635
|
-
}(),
|
4636
|
-
return
|
4637
|
-
|
4638
|
-
return this.$g(
|
4630
|
+
}, $;
|
4631
|
+
}(), L = w.prototype;
|
4632
|
+
return k.prototype = L, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", b]].forEach(function($) {
|
4633
|
+
L[$[1]] = function(M) {
|
4634
|
+
return this.$g(M, $[0], $[1]);
|
4639
4635
|
};
|
4640
|
-
}),
|
4641
|
-
return
|
4642
|
-
},
|
4643
|
-
return
|
4644
|
-
},
|
4636
|
+
}), k.extend = function($, M) {
|
4637
|
+
return $.$i || ($(M, w, k), $.$i = !0), k;
|
4638
|
+
}, k.locale = N, k.isDayjs = B, k.unix = function($) {
|
4639
|
+
return k(1e3 * $);
|
4640
|
+
}, k.en = T[P], k.Ls = T, k.p = {}, k;
|
4645
4641
|
});
|
4646
4642
|
})(dayjs_min);
|
4647
4643
|
const dayjs = dayjs_min.exports;
|
@@ -4686,32 +4682,32 @@ function filesize(e, {
|
|
4686
4682
|
roundingMethod: _ = ROUND,
|
4687
4683
|
precision: v = 0
|
4688
4684
|
} = {}) {
|
4689
|
-
let
|
4685
|
+
let C = b, y = Number(e), E = [], A = 0, P = EMPTY;
|
4690
4686
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4691
|
-
const T = n === 10 ? 1e3 : 1024, B = m === !0,
|
4687
|
+
const T = n === 10 ? 1e3 : 1024, B = m === !0, N = y < 0, k = Math[_];
|
4692
4688
|
if (typeof e != "bigint" && isNaN(e))
|
4693
4689
|
throw new TypeError(INVALID_NUMBER);
|
4694
|
-
if (typeof
|
4690
|
+
if (typeof k !== FUNCTION)
|
4695
4691
|
throw new TypeError(INVALID_ROUND);
|
4696
|
-
if (
|
4697
|
-
return
|
4692
|
+
if (N && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), d === EXPONENT)
|
4693
|
+
return C;
|
4698
4694
|
if (y === 0)
|
4699
|
-
|
4695
|
+
E[0] = 0, P = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4700
4696
|
else {
|
4701
|
-
|
4702
|
-
const
|
4703
|
-
|
4704
|
-
}
|
4705
|
-
if (
|
4706
|
-
const
|
4707
|
-
|
4708
|
-
}
|
4709
|
-
return B && (
|
4710
|
-
value:
|
4711
|
-
symbol:
|
4712
|
-
exponent:
|
4697
|
+
A = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (A = A * 8, A >= T && C < 8 && (A = A / T, C++));
|
4698
|
+
const I = Math.pow(10, C > 0 ? a : 0);
|
4699
|
+
E[0] = k(A * I) / I, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), P = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4700
|
+
}
|
4701
|
+
if (N && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4702
|
+
const I = i || PERIOD, w = E[0].toString().split(I), L = w[1] || EMPTY, $ = L.length, M = a - $;
|
4703
|
+
E[0] = `${w[0]}${I}${L.padEnd($ + M, ZERO)}`;
|
4704
|
+
}
|
4705
|
+
return B && (E[1] = p[C] ? p[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
|
4706
|
+
value: E[0],
|
4707
|
+
symbol: E[1],
|
4708
|
+
exponent: C,
|
4713
4709
|
unit: P
|
4714
|
-
} :
|
4710
|
+
} : E.join(l);
|
4715
4711
|
}
|
4716
4712
|
const data$5 = {
|
4717
4713
|
width: 1024,
|
@@ -4989,18 +4985,18 @@ function iconToSVG(e, t) {
|
|
4989
4985
|
};
|
4990
4986
|
let o = r.body;
|
4991
4987
|
[r, n].forEach((b) => {
|
4992
|
-
const _ = [], v = b.hFlip,
|
4988
|
+
const _ = [], v = b.hFlip, C = b.vFlip;
|
4993
4989
|
let y = b.rotate;
|
4994
|
-
v ?
|
4990
|
+
v ? C ? y += 2 : (_.push(
|
4995
4991
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
4996
|
-
), _.push("scale(-1 1)"), a.top = a.left = 0) :
|
4992
|
+
), _.push("scale(-1 1)"), a.top = a.left = 0) : C && (_.push(
|
4997
4993
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
4998
4994
|
), _.push("scale(1 -1)"), a.top = a.left = 0);
|
4999
|
-
let
|
4995
|
+
let E;
|
5000
4996
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
5001
4997
|
case 1:
|
5002
|
-
|
5003
|
-
"rotate(90 " +
|
4998
|
+
E = a.height / 2 + a.top, _.unshift(
|
4999
|
+
"rotate(90 " + E.toString() + " " + E.toString() + ")"
|
5004
5000
|
);
|
5005
5001
|
break;
|
5006
5002
|
case 2:
|
@@ -5009,12 +5005,12 @@ function iconToSVG(e, t) {
|
|
5009
5005
|
);
|
5010
5006
|
break;
|
5011
5007
|
case 3:
|
5012
|
-
|
5013
|
-
"rotate(-90 " +
|
5008
|
+
E = a.width / 2 + a.left, _.unshift(
|
5009
|
+
"rotate(-90 " + E.toString() + " " + E.toString() + ")"
|
5014
5010
|
);
|
5015
5011
|
break;
|
5016
5012
|
}
|
5017
|
-
y % 2 === 1 && (a.left !== a.top && (
|
5013
|
+
y % 2 === 1 && (a.left !== a.top && (E = a.left, a.left = a.top, a.top = E), a.width !== a.height && (E = a.width, a.width = a.height, a.height = E)), _.length && (o = '<g transform="' + _.join(" ") + '">' + o + "</g>");
|
5018
5014
|
});
|
5019
5015
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5020
5016
|
let c, d;
|
@@ -5316,7 +5312,7 @@ function sendQuery(e, t, r, n) {
|
|
5316
5312
|
function v(T, B) {
|
5317
5313
|
B && (p = []), typeof T == "function" && p.push(T);
|
5318
5314
|
}
|
5319
|
-
function
|
5315
|
+
function C() {
|
5320
5316
|
return {
|
5321
5317
|
startTime: i,
|
5322
5318
|
payload: t,
|
@@ -5332,37 +5328,37 @@ function sendQuery(e, t, r, n) {
|
|
5332
5328
|
T(void 0, c);
|
5333
5329
|
});
|
5334
5330
|
}
|
5335
|
-
function
|
5331
|
+
function E() {
|
5336
5332
|
m.forEach((T) => {
|
5337
5333
|
T.status === "pending" && (T.status = "aborted");
|
5338
5334
|
}), m = [];
|
5339
5335
|
}
|
5340
|
-
function
|
5341
|
-
const
|
5342
|
-
switch (m = m.filter((
|
5336
|
+
function A(T, B, N) {
|
5337
|
+
const k = B !== "success";
|
5338
|
+
switch (m = m.filter((I) => I !== T), l) {
|
5343
5339
|
case "pending":
|
5344
5340
|
break;
|
5345
5341
|
case "failed":
|
5346
|
-
if (
|
5342
|
+
if (k || !e.dataAfterTimeout)
|
5347
5343
|
return;
|
5348
5344
|
break;
|
5349
5345
|
default:
|
5350
5346
|
return;
|
5351
5347
|
}
|
5352
5348
|
if (B === "abort") {
|
5353
|
-
c =
|
5349
|
+
c = N, y();
|
5354
5350
|
return;
|
5355
5351
|
}
|
5356
|
-
if (
|
5357
|
-
c =
|
5352
|
+
if (k) {
|
5353
|
+
c = N, m.length || (s.length ? P() : y());
|
5358
5354
|
return;
|
5359
5355
|
}
|
5360
|
-
if (b(),
|
5361
|
-
const
|
5362
|
-
|
5356
|
+
if (b(), E(), !e.random) {
|
5357
|
+
const I = e.resources.indexOf(T.resource);
|
5358
|
+
I !== -1 && I !== e.index && (e.index = I);
|
5363
5359
|
}
|
5364
|
-
l = "completed", p.forEach((
|
5365
|
-
|
5360
|
+
l = "completed", p.forEach((I) => {
|
5361
|
+
I(N);
|
5366
5362
|
});
|
5367
5363
|
}
|
5368
5364
|
function P() {
|
@@ -5373,7 +5369,7 @@ function sendQuery(e, t, r, n) {
|
|
5373
5369
|
if (T === void 0) {
|
5374
5370
|
if (m.length) {
|
5375
5371
|
d = setTimeout(() => {
|
5376
|
-
b(), l === "pending" && (
|
5372
|
+
b(), l === "pending" && (E(), y());
|
5377
5373
|
}, e.timeout);
|
5378
5374
|
return;
|
5379
5375
|
}
|
@@ -5383,13 +5379,13 @@ function sendQuery(e, t, r, n) {
|
|
5383
5379
|
const B = {
|
5384
5380
|
status: "pending",
|
5385
5381
|
resource: T,
|
5386
|
-
callback: (
|
5387
|
-
|
5382
|
+
callback: (N, k) => {
|
5383
|
+
A(B, N, k);
|
5388
5384
|
}
|
5389
5385
|
};
|
5390
5386
|
m.push(B), u++, d = setTimeout(P, e.rotate), r(T, t, B.callback);
|
5391
5387
|
}
|
5392
|
-
return setTimeout(P),
|
5388
|
+
return setTimeout(P), C;
|
5393
5389
|
}
|
5394
5390
|
function initRedundancy(e) {
|
5395
5391
|
const t = {
|
@@ -5791,8 +5787,8 @@ const render = (e, t) => {
|
|
5791
5787
|
v !== !0 && v !== "true" && delete n["aria-hidden"];
|
5792
5788
|
break;
|
5793
5789
|
default: {
|
5794
|
-
const
|
5795
|
-
|
5790
|
+
const C = customisationAliases[_];
|
5791
|
+
C ? (v === !0 || v === "true" || v === 1) && (r[C] = !0) : defaultExtendedIconCustomisations[_] === void 0 && (n[_] = v);
|
5796
5792
|
}
|
5797
5793
|
}
|
5798
5794
|
}
|
@@ -6001,61 +5997,61 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6001
5997
|
const l = {
|
6002
5998
|
deep: !0
|
6003
5999
|
};
|
6004
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6005
|
-
u ? p =
|
6000
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (N) => {
|
6001
|
+
u ? p = N : u == !1 && !T._hotUpdating && (Array.isArray(p) ? p.push(N) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6006
6002
|
});
|
6007
6003
|
let u, c, d = markRaw([]), m = markRaw([]), p;
|
6008
6004
|
const b = n.state.value[e];
|
6009
6005
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6010
6006
|
const _ = ref({});
|
6011
|
-
function v(
|
6012
|
-
let
|
6013
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof
|
6007
|
+
function v(N) {
|
6008
|
+
let k;
|
6009
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (p = []), typeof N == "function" ? (N(n.state.value[e]), k = {
|
6014
6010
|
type: MutationType.patchFunction,
|
6015
6011
|
storeId: e,
|
6016
6012
|
events: p
|
6017
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6013
|
+
}) : (mergeReactiveObjects(n.state.value[e], N), k = {
|
6018
6014
|
type: MutationType.patchObject,
|
6019
|
-
payload:
|
6015
|
+
payload: N,
|
6020
6016
|
storeId: e,
|
6021
6017
|
events: p
|
6022
6018
|
}), nextTick().then(() => {
|
6023
6019
|
u = !0;
|
6024
|
-
}), c = !0, triggerSubscriptions(d,
|
6020
|
+
}), c = !0, triggerSubscriptions(d, k, n.state.value[e]);
|
6025
6021
|
}
|
6026
|
-
const
|
6022
|
+
const C = process.env.NODE_ENV !== "production" ? () => {
|
6027
6023
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6028
6024
|
} : noop$1;
|
6029
6025
|
function y() {
|
6030
6026
|
o.stop(), d = [], m = [], n._s.delete(e);
|
6031
6027
|
}
|
6032
|
-
function
|
6028
|
+
function E(N, k) {
|
6033
6029
|
return function() {
|
6034
6030
|
setActivePinia(n);
|
6035
|
-
const
|
6036
|
-
function w(F) {
|
6037
|
-
k.push(F);
|
6038
|
-
}
|
6031
|
+
const I = Array.from(arguments), w = [], L = [];
|
6039
6032
|
function $(F) {
|
6040
|
-
|
6033
|
+
w.push(F);
|
6034
|
+
}
|
6035
|
+
function M(F) {
|
6036
|
+
L.push(F);
|
6041
6037
|
}
|
6042
6038
|
triggerSubscriptions(m, {
|
6043
|
-
args:
|
6044
|
-
name:
|
6039
|
+
args: I,
|
6040
|
+
name: N,
|
6045
6041
|
store: T,
|
6046
|
-
after:
|
6047
|
-
onError:
|
6042
|
+
after: $,
|
6043
|
+
onError: M
|
6048
6044
|
});
|
6049
|
-
let
|
6045
|
+
let O;
|
6050
6046
|
try {
|
6051
|
-
|
6047
|
+
O = k.apply(this && this.$id === e ? this : T, I);
|
6052
6048
|
} catch (F) {
|
6053
|
-
throw triggerSubscriptions(
|
6049
|
+
throw triggerSubscriptions(L, F), F;
|
6054
6050
|
}
|
6055
|
-
return
|
6051
|
+
return O instanceof Promise ? O.then((F) => (triggerSubscriptions(w, F), F)).catch((F) => (triggerSubscriptions(L, F), Promise.reject(F))) : (triggerSubscriptions(w, O), O);
|
6056
6052
|
};
|
6057
6053
|
}
|
6058
|
-
const
|
6054
|
+
const A = /* @__PURE__ */ markRaw({
|
6059
6055
|
actions: {},
|
6060
6056
|
getters: {},
|
6061
6057
|
state: [],
|
@@ -6065,96 +6061,96 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6065
6061
|
$id: e,
|
6066
6062
|
$onAction: addSubscription.bind(null, m),
|
6067
6063
|
$patch: v,
|
6068
|
-
$reset:
|
6069
|
-
$subscribe(
|
6070
|
-
const
|
6071
|
-
(
|
6064
|
+
$reset: C,
|
6065
|
+
$subscribe(N, k = {}) {
|
6066
|
+
const I = addSubscription(d, N, k.detached, () => w()), w = o.run(() => watch(() => n.state.value[e], (L) => {
|
6067
|
+
(k.flush === "sync" ? c : u) && N({
|
6072
6068
|
storeId: e,
|
6073
6069
|
type: MutationType.direct,
|
6074
6070
|
events: p
|
6075
|
-
},
|
6076
|
-
}, assign$1({}, l,
|
6077
|
-
return
|
6071
|
+
}, L);
|
6072
|
+
}, assign$1({}, l, k)));
|
6073
|
+
return I;
|
6078
6074
|
},
|
6079
6075
|
$dispose: y
|
6080
6076
|
}, T = reactive(assign$1(
|
6081
6077
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6082
6078
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6083
|
-
_hmrPayload:
|
6079
|
+
_hmrPayload: A
|
6084
6080
|
} : {},
|
6085
6081
|
P
|
6086
6082
|
));
|
6087
6083
|
n._s.set(e, T);
|
6088
6084
|
const B = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6089
|
-
for (const
|
6090
|
-
const
|
6091
|
-
if (isRef(
|
6092
|
-
process.env.NODE_ENV !== "production" && a ? set(_.value,
|
6093
|
-
else if (typeof
|
6094
|
-
const
|
6095
|
-
B[
|
6085
|
+
for (const N in B) {
|
6086
|
+
const k = B[N];
|
6087
|
+
if (isRef(k) && !isComputed(k) || isReactive(k))
|
6088
|
+
process.env.NODE_ENV !== "production" && a ? set(_.value, N, toRef(B, N)) : s || (b && shouldHydrate(k) && (isRef(k) ? k.value = b[N] : mergeReactiveObjects(k, b[N])), n.state.value[e][N] = k), process.env.NODE_ENV !== "production" && A.state.push(N);
|
6089
|
+
else if (typeof k == "function") {
|
6090
|
+
const I = process.env.NODE_ENV !== "production" && a ? k : E(N, k);
|
6091
|
+
B[N] = I, process.env.NODE_ENV !== "production" && (A.actions[N] = k), i.actions[N] = k;
|
6096
6092
|
} else
|
6097
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6093
|
+
process.env.NODE_ENV !== "production" && isComputed(k) && (A.getters[N] = s ? r.getters[N] : k, IS_CLIENT && (B._getters || (B._getters = markRaw([]))).push(N));
|
6098
6094
|
}
|
6099
6095
|
if (assign$1(T, B), assign$1(toRaw(T), B), Object.defineProperty(T, "$state", {
|
6100
6096
|
get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
|
6101
|
-
set: (
|
6097
|
+
set: (N) => {
|
6102
6098
|
if (process.env.NODE_ENV !== "production" && a)
|
6103
6099
|
throw new Error("cannot set hotState");
|
6104
|
-
v((
|
6105
|
-
assign$1(
|
6100
|
+
v((k) => {
|
6101
|
+
assign$1(k, N);
|
6106
6102
|
});
|
6107
6103
|
}
|
6108
6104
|
}), process.env.NODE_ENV !== "production") {
|
6109
|
-
T._hotUpdate = markRaw((
|
6110
|
-
T._hotUpdating = !0,
|
6111
|
-
if (
|
6112
|
-
const
|
6113
|
-
typeof
|
6105
|
+
T._hotUpdate = markRaw((k) => {
|
6106
|
+
T._hotUpdating = !0, k._hmrPayload.state.forEach((I) => {
|
6107
|
+
if (I in T.$state) {
|
6108
|
+
const w = k.$state[I], L = T.$state[I];
|
6109
|
+
typeof w == "object" && isPlainObject(w) && isPlainObject(L) ? patchObject(w, L) : k.$state[I] = L;
|
6114
6110
|
}
|
6115
|
-
set(T,
|
6116
|
-
}), Object.keys(T.$state).forEach((
|
6117
|
-
|
6118
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6111
|
+
set(T, I, toRef(k.$state, I));
|
6112
|
+
}), Object.keys(T.$state).forEach((I) => {
|
6113
|
+
I in k.$state || del(T, I);
|
6114
|
+
}), u = !1, c = !1, n.state.value[e] = toRef(k._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6119
6115
|
u = !0;
|
6120
6116
|
});
|
6121
|
-
for (const
|
6122
|
-
const
|
6123
|
-
set(T,
|
6117
|
+
for (const I in k._hmrPayload.actions) {
|
6118
|
+
const w = k[I];
|
6119
|
+
set(T, I, E(I, w));
|
6124
6120
|
}
|
6125
|
-
for (const
|
6126
|
-
const
|
6127
|
-
set(T,
|
6121
|
+
for (const I in k._hmrPayload.getters) {
|
6122
|
+
const w = k._hmrPayload.getters[I], L = s ? computed(() => (setActivePinia(n), w.call(T, T))) : w;
|
6123
|
+
set(T, I, L);
|
6128
6124
|
}
|
6129
|
-
Object.keys(T._hmrPayload.getters).forEach((
|
6130
|
-
|
6131
|
-
}), Object.keys(T._hmrPayload.actions).forEach((
|
6132
|
-
|
6133
|
-
}), T._hmrPayload =
|
6125
|
+
Object.keys(T._hmrPayload.getters).forEach((I) => {
|
6126
|
+
I in k._hmrPayload.getters || del(T, I);
|
6127
|
+
}), Object.keys(T._hmrPayload.actions).forEach((I) => {
|
6128
|
+
I in k._hmrPayload.actions || del(T, I);
|
6129
|
+
}), T._hmrPayload = k._hmrPayload, T._getters = k._getters, T._hotUpdating = !1;
|
6134
6130
|
});
|
6135
|
-
const
|
6131
|
+
const N = {
|
6136
6132
|
writable: !0,
|
6137
6133
|
configurable: !0,
|
6138
6134
|
enumerable: !1
|
6139
6135
|
};
|
6140
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6141
|
-
Object.defineProperty(T,
|
6142
|
-
value: T[
|
6143
|
-
...
|
6136
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((k) => {
|
6137
|
+
Object.defineProperty(T, k, {
|
6138
|
+
value: T[k],
|
6139
|
+
...N
|
6144
6140
|
});
|
6145
6141
|
});
|
6146
6142
|
}
|
6147
|
-
return n._p.forEach((
|
6143
|
+
return n._p.forEach((N) => {
|
6148
6144
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6149
|
-
const
|
6145
|
+
const k = o.run(() => N({
|
6150
6146
|
store: T,
|
6151
6147
|
app: n._a,
|
6152
6148
|
pinia: n,
|
6153
6149
|
options: i
|
6154
6150
|
}));
|
6155
|
-
Object.keys(
|
6151
|
+
Object.keys(k || {}).forEach((I) => T._customProperties.add(I)), assign$1(T, k);
|
6156
6152
|
} else
|
6157
|
-
assign$1(T, o.run(() =>
|
6153
|
+
assign$1(T, o.run(() => N({
|
6158
6154
|
store: T,
|
6159
6155
|
app: n._a,
|
6160
6156
|
pinia: n,
|
@@ -6588,12 +6584,12 @@ const getProps$w = () => ({
|
|
6588
6584
|
function _(y) {
|
6589
6585
|
y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = v(document.documentElement, "mousemove", p), l = v(document.documentElement, "mouseup", b));
|
6590
6586
|
}
|
6591
|
-
function v(y,
|
6592
|
-
return y.addEventListener(
|
6593
|
-
remove: () => y.removeEventListener(
|
6587
|
+
function v(y, E, A) {
|
6588
|
+
return y.addEventListener(E, A), {
|
6589
|
+
remove: () => y.removeEventListener(E, A)
|
6594
6590
|
};
|
6595
6591
|
}
|
6596
|
-
function
|
6592
|
+
function C(y) {
|
6597
6593
|
y.stopPropagation(), y.preventDefault();
|
6598
6594
|
}
|
6599
6595
|
return () => {
|
@@ -6603,7 +6599,7 @@ const getProps$w = () => ({
|
|
6603
6599
|
style: u.value
|
6604
6600
|
}, [createVNode("div", {
|
6605
6601
|
class: "kg-resizable-handle",
|
6606
|
-
onClick:
|
6602
|
+
onClick: C,
|
6607
6603
|
onMousedown: _
|
6608
6604
|
}, [createVNode("div", {
|
6609
6605
|
class: "kg-resizable-handle-line"
|
@@ -6736,12 +6732,12 @@ const getProps$v = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6736
6732
|
r("update:visible", !1);
|
6737
6733
|
}
|
6738
6734
|
function p() {
|
6739
|
-
var b, _, v,
|
6735
|
+
var b, _, v, C, y, E, A;
|
6740
6736
|
if (c.value) {
|
6741
6737
|
const P = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], T = (v = P.map((B) => B[d.value])) != null ? v : [];
|
6742
6738
|
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6743
6739
|
} else {
|
6744
|
-
const P = (
|
6740
|
+
const P = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (A = P == null ? void 0 : P[d.value]) != null ? A : "";
|
6745
6741
|
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6746
6742
|
}
|
6747
6743
|
}
|
@@ -6946,8 +6942,8 @@ const KgFormItemSelect = defineComponent({
|
|
6946
6942
|
immediate: !0
|
6947
6943
|
});
|
6948
6944
|
async function i() {
|
6949
|
-
var
|
6950
|
-
const c = (
|
6945
|
+
var C, y, E, A, P, T, B, N, k;
|
6946
|
+
const c = (C = s.value) == null ? void 0 : C.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (A = (E = s.value) == null ? void 0 : E.cmd_method) != null ? A : "GET", p = (T = (P = s.value) == null ? void 0 : P.val_clm) != null ? T : "", b = (N = (B = s.value) == null ? void 0 : B.lbl_clm) != null ? N : "";
|
6951
6947
|
if (!c || !p || !b) {
|
6952
6948
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
6953
6949
|
formID: n.formID,
|
@@ -6961,25 +6957,36 @@ const KgFormItemSelect = defineComponent({
|
|
6961
6957
|
const _ = KgVarUtil.parseCommandParameter(d);
|
6962
6958
|
let v = null;
|
6963
6959
|
try {
|
6964
|
-
v = await ((
|
6960
|
+
v = await ((k = httpClient()) == null ? void 0 : k.request({
|
6965
6961
|
url: c,
|
6966
6962
|
method: m,
|
6967
6963
|
params: _
|
6968
6964
|
}));
|
6969
6965
|
} catch {
|
6970
6966
|
}
|
6971
|
-
if (isObjectLike(v)
|
6972
|
-
|
6973
|
-
|
6967
|
+
if (!isObjectLike(v))
|
6968
|
+
o.value = [];
|
6969
|
+
else
|
6970
|
+
switch (!0) {
|
6971
|
+
case isArrayLike(v):
|
6972
|
+
o.value = a(v);
|
6973
|
+
break;
|
6974
|
+
case (v && "total" in v && "records" in v):
|
6975
|
+
o.value = a(v.records);
|
6976
|
+
break;
|
6977
|
+
}
|
6978
|
+
if (o.value.length > 0) {
|
6979
|
+
const I = o.value[0];
|
6980
|
+
(!(p in I) || !(b in I)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
6974
6981
|
formID: n.formID,
|
6975
6982
|
kgVarName: e.kgVarName,
|
6976
6983
|
cmd: c,
|
6977
6984
|
val_clm: p,
|
6978
6985
|
lbl_clm: b,
|
6979
|
-
\u6240\u6709\u5217: Object.keys(
|
6986
|
+
\u6240\u6709\u5217: Object.keys(I)
|
6980
6987
|
});
|
6981
6988
|
}
|
6982
|
-
r("kgSelectDatasChange", o.value), o.value.find((
|
6989
|
+
r("kgSelectDatasChange", o.value), o.value.find((I) => I[p] === e.value) || r("update:value", void 0);
|
6983
6990
|
}
|
6984
6991
|
function l(c) {
|
6985
6992
|
var m;
|
@@ -7053,11 +7060,11 @@ const KgFormItemSelect = defineComponent({
|
|
7053
7060
|
}) {
|
7054
7061
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
|
7055
7062
|
const n = useKg(), a = useKgVar(), o = inject(DI_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), u = computed(() => a.store.isCopying(a.formID)), c = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), d = computed(() => a.store.getVarConfig(a.formID, e.kgVarName)), m = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), p = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), b = computed(() => {
|
7056
|
-
var
|
7057
|
-
let
|
7063
|
+
var L, $, M, O, F;
|
7064
|
+
let w = [];
|
7058
7065
|
switch (e.kgContext) {
|
7059
7066
|
case KG_FORM_CONTEXT.SEARCH:
|
7060
|
-
((
|
7067
|
+
((L = m.value) == null ? void 0 : L.rqr_flg) === 1 && (w = [{
|
7061
7068
|
required: !0,
|
7062
7069
|
message: n.t("kg.required")
|
7063
7070
|
}]);
|
@@ -7065,25 +7072,25 @@ const KgFormItemSelect = defineComponent({
|
|
7065
7072
|
case KG_FORM_CONTEXT.SUBMIT:
|
7066
7073
|
switch (!0) {
|
7067
7074
|
case a.isCreating.value:
|
7068
|
-
((
|
7075
|
+
(($ = p.value) == null ? void 0 : $.crt_rqr_flg) === 1 && (w = [{
|
7069
7076
|
required: !0,
|
7070
7077
|
message: n.t("kg.required")
|
7071
7078
|
}]);
|
7072
7079
|
break;
|
7073
7080
|
case a.isUpdating.value:
|
7074
|
-
((
|
7081
|
+
((M = p.value) == null ? void 0 : M.upt_rqr_flg) === 1 && (w = [{
|
7075
7082
|
required: !0,
|
7076
7083
|
message: n.t("kg.required")
|
7077
7084
|
}]);
|
7078
7085
|
break;
|
7079
7086
|
case a.isCopying.value:
|
7080
|
-
((
|
7087
|
+
((O = p.value) == null ? void 0 : O.cpy_rqr_flg) === 1 && (w = [{
|
7081
7088
|
required: !0,
|
7082
7089
|
message: n.t("kg.required")
|
7083
7090
|
}]);
|
7084
7091
|
break;
|
7085
7092
|
case a.isDeleting.value:
|
7086
|
-
((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (
|
7093
|
+
((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (w = [{
|
7087
7094
|
required: !0,
|
7088
7095
|
message: n.t("kg.required")
|
7089
7096
|
}]);
|
@@ -7091,111 +7098,111 @@ const KgFormItemSelect = defineComponent({
|
|
7091
7098
|
}
|
7092
7099
|
break;
|
7093
7100
|
}
|
7094
|
-
return e.kgRules && (
|
7101
|
+
return e.kgRules && (w = [...w, ...e.kgRules]), w;
|
7095
7102
|
}), _ = computed(() => {
|
7096
|
-
var
|
7103
|
+
var L, $, M, O, F;
|
7097
7104
|
if (a.isRetrievingVar.value)
|
7098
7105
|
return !0;
|
7099
|
-
let
|
7106
|
+
let w = !1;
|
7100
7107
|
if (e.kgDisabled !== void 0)
|
7101
|
-
|
7108
|
+
w = e.kgDisabled;
|
7102
7109
|
else
|
7103
7110
|
switch (e.kgContext) {
|
7104
7111
|
case KG_FORM_CONTEXT.SEARCH:
|
7105
|
-
|
7112
|
+
w = ((L = m.value) == null ? void 0 : L.ena_flg) === 0;
|
7106
7113
|
break;
|
7107
7114
|
case KG_FORM_CONTEXT.SUBMIT:
|
7108
7115
|
switch (!0) {
|
7109
7116
|
case a.isCreating.value:
|
7110
|
-
|
7117
|
+
w = (($ = p.value) == null ? void 0 : $.crt_ena_flg) === 0;
|
7111
7118
|
break;
|
7112
7119
|
case a.isUpdating.value:
|
7113
|
-
|
7120
|
+
w = ((M = p.value) == null ? void 0 : M.upt_ena_flg) === 0;
|
7114
7121
|
break;
|
7115
7122
|
case a.isCopying.value:
|
7116
|
-
|
7123
|
+
w = ((O = p.value) == null ? void 0 : O.cpy_ena_flg) === 0;
|
7117
7124
|
break;
|
7118
7125
|
case a.isDeleting.value:
|
7119
|
-
|
7126
|
+
w = ((F = p.value) == null ? void 0 : F.del_ena_flg) === 0;
|
7120
7127
|
break;
|
7121
7128
|
}
|
7122
7129
|
break;
|
7123
7130
|
}
|
7124
|
-
return
|
7131
|
+
return w;
|
7125
7132
|
}), v = computed(() => {
|
7126
|
-
var
|
7127
|
-
let
|
7133
|
+
var L, $, M, O;
|
7134
|
+
let w = " ";
|
7128
7135
|
if (e.kgPlaceholder)
|
7129
|
-
|
7136
|
+
w = e.kgPlaceholder;
|
7130
7137
|
else
|
7131
7138
|
switch (e.kgContext) {
|
7132
7139
|
case KG_FORM_CONTEXT.SEARCH:
|
7133
|
-
|
7140
|
+
w = n.t(($ = (L = m.value) == null ? void 0 : L.placeholder) != null ? $ : " ");
|
7134
7141
|
break;
|
7135
7142
|
case KG_FORM_CONTEXT.SUBMIT:
|
7136
|
-
|
7143
|
+
w = n.t((O = (M = p.value) == null ? void 0 : M.placeholder) != null ? O : " ");
|
7137
7144
|
break;
|
7138
7145
|
}
|
7139
|
-
return
|
7140
|
-
}),
|
7141
|
-
var
|
7142
|
-
let
|
7146
|
+
return w;
|
7147
|
+
}), C = computed(() => {
|
7148
|
+
var L, $, M, O, F, R, G, V, U, H;
|
7149
|
+
let w = 6;
|
7143
7150
|
if (e.kgSpan !== void 0)
|
7144
|
-
|
7151
|
+
w = e.kgSpan;
|
7145
7152
|
else
|
7146
7153
|
switch (e.kgContext) {
|
7147
7154
|
case KG_FORM_CONTEXT.SEARCH:
|
7148
|
-
|
7155
|
+
w = ($ = (L = m.value) == null ? void 0 : L.width) != null ? $ : 6;
|
7149
7156
|
break;
|
7150
7157
|
case KG_FORM_CONTEXT.SUBMIT:
|
7151
7158
|
switch (!0) {
|
7152
7159
|
case a.isCreating.value:
|
7153
|
-
|
7160
|
+
w = (O = (M = p.value) == null ? void 0 : M.crt_width) != null ? O : 6;
|
7154
7161
|
break;
|
7155
7162
|
case a.isUpdating.value:
|
7156
|
-
|
7163
|
+
w = (R = (F = p.value) == null ? void 0 : F.upt_width) != null ? R : 6;
|
7157
7164
|
break;
|
7158
7165
|
case a.isCopying.value:
|
7159
|
-
|
7166
|
+
w = (V = (G = p.value) == null ? void 0 : G.cpy_width) != null ? V : 6;
|
7160
7167
|
break;
|
7161
7168
|
case a.isDeleting.value:
|
7162
|
-
|
7169
|
+
w = (H = (U = p.value) == null ? void 0 : U.del_width) != null ? H : 6;
|
7163
7170
|
break;
|
7164
7171
|
}
|
7165
7172
|
}
|
7166
|
-
return Math.min(24, Math.max(1,
|
7173
|
+
return Math.min(24, Math.max(1, w));
|
7167
7174
|
}), y = computed(() => ({
|
7168
7175
|
paddingLeft: `${e.kgGutter / 2}px !important`,
|
7169
7176
|
paddingRight: `${e.kgGutter / 2}px !important`
|
7170
|
-
})),
|
7171
|
-
var
|
7172
|
-
let
|
7173
|
-
switch (c.value && (
|
7177
|
+
})), E = computed(() => {
|
7178
|
+
var L, $, M, O;
|
7179
|
+
let w = "kg-form-item";
|
7180
|
+
switch (c.value && (w += " kg-form-item-lookup"), e.kgContext) {
|
7174
7181
|
case KG_FORM_CONTEXT.SEARCH:
|
7175
7182
|
switch (!0) {
|
7176
|
-
case ((
|
7177
|
-
|
7183
|
+
case ((L = m.value) == null ? void 0 : L.vis_flg) === 0:
|
7184
|
+
w += " kg-form-item--invisible";
|
7178
7185
|
break;
|
7179
7186
|
}
|
7180
7187
|
break;
|
7181
7188
|
case KG_FORM_CONTEXT.SUBMIT:
|
7182
7189
|
switch (!0) {
|
7183
|
-
case (i.value && ((
|
7184
|
-
case (l.value && ((
|
7185
|
-
case (u.value && ((
|
7186
|
-
|
7190
|
+
case (i.value && (($ = p.value) == null ? void 0 : $.crt_vis_flg) === 0):
|
7191
|
+
case (l.value && ((M = p.value) == null ? void 0 : M.upt_vis_flg) === 0):
|
7192
|
+
case (u.value && ((O = p.value) == null ? void 0 : O.cpy_vis_flg) === 0):
|
7193
|
+
w += " kg-form-item--invisible";
|
7187
7194
|
break;
|
7188
7195
|
}
|
7189
7196
|
break;
|
7190
7197
|
}
|
7191
|
-
return
|
7192
|
-
}),
|
7193
|
-
var
|
7194
|
-
const
|
7198
|
+
return w;
|
7199
|
+
}), A = computed(() => {
|
7200
|
+
var L;
|
7201
|
+
const w = {
|
7195
7202
|
...e,
|
7196
|
-
value: (
|
7197
|
-
"onUpdate:value": (
|
7198
|
-
o.value && (o.value[e.kgVarName] =
|
7203
|
+
value: (L = o.value) == null ? void 0 : L[e.kgVarName],
|
7204
|
+
"onUpdate:value": ($) => {
|
7205
|
+
o.value && (o.value[e.kgVarName] = $);
|
7199
7206
|
},
|
7200
7207
|
kgPlaceholder: v.value,
|
7201
7208
|
kgDisabled: _.value,
|
@@ -7209,33 +7216,26 @@ const KgFormItemSelect = defineComponent({
|
|
7209
7216
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7210
7217
|
break;
|
7211
7218
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7212
|
-
|
7219
|
+
w.kgShowTime = !1;
|
7213
7220
|
break;
|
7214
7221
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7215
|
-
|
7222
|
+
w.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7216
7223
|
break;
|
7217
7224
|
}
|
7218
|
-
return
|
7225
|
+
return w;
|
7219
7226
|
}), P = computed(() => {
|
7220
|
-
var k;
|
7221
|
-
return e.kgType || ((k = d.value) == null ? void 0 : k.ctrl_typ);
|
7222
|
-
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7223
|
-
watch(() => {
|
7224
|
-
var k;
|
7225
|
-
return (k = o.value) == null ? void 0 : k[e.kgVarName];
|
7226
|
-
}, () => {
|
7227
|
-
var k;
|
7228
|
-
(k = s.value) == null || k.validate([e.kgVarName]);
|
7229
|
-
});
|
7230
|
-
function B(k, M) {
|
7231
7227
|
var w;
|
7232
|
-
|
7228
|
+
return e.kgType || ((w = d.value) == null ? void 0 : w.ctrl_typ);
|
7229
|
+
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7230
|
+
function B(w, L) {
|
7231
|
+
var $;
|
7232
|
+
o.value && (o.value[e.kgVarName] = w), r("kgChange", L), ($ = s.value) == null || $.validate([e.kgVarName]);
|
7233
7233
|
}
|
7234
|
-
function
|
7234
|
+
function N() {
|
7235
7235
|
if (t.control)
|
7236
7236
|
return t.control({
|
7237
7237
|
varName: e.kgVarName,
|
7238
|
-
props:
|
7238
|
+
props: A,
|
7239
7239
|
model: o,
|
7240
7240
|
varConfig: d,
|
7241
7241
|
varProfileDetail: m,
|
@@ -7243,27 +7243,27 @@ const KgFormItemSelect = defineComponent({
|
|
7243
7243
|
});
|
7244
7244
|
switch (P.value) {
|
7245
7245
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7246
|
-
return createVNode(KgFormItemInputNumber,
|
7246
|
+
return createVNode(KgFormItemInputNumber, A.value, null);
|
7247
7247
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7248
|
-
return createVNode(KgFormItemSelect,
|
7248
|
+
return createVNode(KgFormItemSelect, A.value, null);
|
7249
7249
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7250
|
-
return createVNode(KgFormItemSwitch,
|
7250
|
+
return createVNode(KgFormItemSwitch, A.value, null);
|
7251
7251
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7252
|
-
return createVNode(KgFormItemDate,
|
7252
|
+
return createVNode(KgFormItemDate, A.value, null);
|
7253
7253
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7254
|
-
return createVNode(KgFormItemDate,
|
7254
|
+
return createVNode(KgFormItemDate, A.value, null);
|
7255
7255
|
default:
|
7256
|
-
return createVNode(KgFormItemInput,
|
7256
|
+
return createVNode(KgFormItemInput, A.value, null);
|
7257
7257
|
}
|
7258
7258
|
}
|
7259
|
-
function
|
7259
|
+
function k() {
|
7260
7260
|
return e.kgShowLabel ? createVNode("span", {
|
7261
7261
|
title: a.t(e.kgVarName).value
|
7262
7262
|
}, [a.t(e.kgVarName).value]) : null;
|
7263
7263
|
}
|
7264
|
-
function
|
7265
|
-
var
|
7266
|
-
return !c.value || !((
|
7264
|
+
function I() {
|
7265
|
+
var w;
|
7266
|
+
return !c.value || !((w = c.value) != null && w.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7267
7267
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7268
7268
|
kgDisabled: _.value,
|
7269
7269
|
onKgOk: B,
|
@@ -7274,8 +7274,8 @@ const KgFormItemSelect = defineComponent({
|
|
7274
7274
|
return () => createVNode(Col, {
|
7275
7275
|
"kg-frm-id": a.formID,
|
7276
7276
|
"kg-var-nam": e.kgVarName,
|
7277
|
-
span:
|
7278
|
-
class:
|
7277
|
+
span: C.value,
|
7278
|
+
class: E.value,
|
7279
7279
|
style: y.value
|
7280
7280
|
}, {
|
7281
7281
|
default: () => [createVNode(Form.Item, {
|
@@ -7283,8 +7283,8 @@ const KgFormItemSelect = defineComponent({
|
|
7283
7283
|
rules: b.value,
|
7284
7284
|
htmlFor: T.value
|
7285
7285
|
}, {
|
7286
|
-
default: () => createVNode(Fragment, null, [
|
7287
|
-
label: () =>
|
7286
|
+
default: () => createVNode(Fragment, null, [N(), I()]),
|
7287
|
+
label: () => k()
|
7288
7288
|
})]
|
7289
7289
|
});
|
7290
7290
|
}
|
@@ -7473,8 +7473,8 @@ function createStore(e, t, r) {
|
|
7473
7473
|
var m = slice(arguments, 0), p = this;
|
7474
7474
|
function b() {
|
7475
7475
|
if (!!c)
|
7476
|
-
return each$6(arguments, function(v,
|
7477
|
-
m[
|
7476
|
+
return each$6(arguments, function(v, C) {
|
7477
|
+
m[C] = v;
|
7478
7478
|
}), c.apply(p, m);
|
7479
7479
|
}
|
7480
7480
|
var _ = [b].concat(m);
|
@@ -8200,11 +8200,11 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8200
8200
|
},
|
8201
8201
|
getVarButtonSearch(e) {
|
8202
8202
|
return (t) => {
|
8203
|
-
var
|
8203
|
+
var o, s;
|
8204
8204
|
if (!t)
|
8205
8205
|
return Logger.error("formID \u4E3A\u7A7A."), null;
|
8206
|
-
const
|
8207
|
-
return (
|
8206
|
+
const n = (o = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : o.prf_frm_id, a = e.varButtonsMap.get(n || t);
|
8207
|
+
return (s = a == null ? void 0 : a.find((i) => i.typ === KG_BUTTON_TYPE.SEARCH)) != null ? s : null;
|
8208
8208
|
};
|
8209
8209
|
},
|
8210
8210
|
getVarButtonCreate(e) {
|
@@ -8294,6 +8294,9 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8294
8294
|
return !t || !r ? null : (o = (a = (n = this.getCurrentVarProfileMaster(t)) == null ? void 0 : n.varProfileDetails) == null ? void 0 : a.find((s) => s.var_nam === r)) != null ? o : null;
|
8295
8295
|
};
|
8296
8296
|
},
|
8297
|
+
getVarGridConfigMap(e) {
|
8298
|
+
return e.varGridConfigMap;
|
8299
|
+
},
|
8297
8300
|
getVarGridConfig(e) {
|
8298
8301
|
return (t) => {
|
8299
8302
|
var r;
|
@@ -8397,10 +8400,10 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8397
8400
|
Logger.error("\u4E0D\u652F\u6301\u591A\u4E2A\u754C\u9762\u4F7F\u7528\u540C\u4E00\u4E2A\u754C\u9762\u6807\u8BC6(formID).", { formID: e.formID });
|
8398
8401
|
return;
|
8399
8402
|
}
|
8400
|
-
this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID);
|
8403
|
+
this.formIDs = [...this.formIDs, e].sort((t, r) => t.level - r.level), await this.retrieve(e.formID), store_legacy.set("KgVar.formIDs", this.formIDs);
|
8401
8404
|
},
|
8402
8405
|
leave(e) {
|
8403
|
-
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingVarMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogsMap.delete(e), this.varLookupsMap.delete(e), this.varPossibilitiesMap.delete(e), this.varConfigsMap.delete(e), this.varButtonsMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldsMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e);
|
8406
|
+
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingVarMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogsMap.delete(e), this.varLookupsMap.delete(e), this.varPossibilitiesMap.delete(e), this.varConfigsMap.delete(e), this.varButtonsMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldsMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
8404
8407
|
},
|
8405
8408
|
async retrieve(e) {
|
8406
8409
|
var t, r, n, a, o, s;
|
@@ -8418,12 +8421,12 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8418
8421
|
varProfile: b,
|
8419
8422
|
varProfileConfig: _,
|
8420
8423
|
varGrid: v,
|
8421
|
-
varGridConfig:
|
8424
|
+
varGridConfig: C
|
8422
8425
|
} = await GetAll({ params: { frm_id: e } });
|
8423
8426
|
this.varCatalogsMap.set(e, i != null ? i : []), this.varLookupsMap.set(e, l != null ? l : []), this.varPossibilitiesMap.set(e, c != null ? c : []), this.varConfigsMap.set(e, u != null ? u : []), this.varButtonsMap.set(e, transformVarButtons(d)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(m)), this.varSubmitFieldsMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMap.set(e, {
|
8424
8427
|
varProfile: b != null ? b : null,
|
8425
8428
|
currentVarProfileMasterID: (n = (r = (t = b == null ? void 0 : b.varProfileMasters) == null ? void 0 : t.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
8426
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
8429
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
|
8427
8430
|
varGrid: transformVarGridDTO(v),
|
8428
8431
|
currentVarGridMasterID: (s = (o = (a = v == null ? void 0 : v.varGridMasters) == null ? void 0 : a.find((y) => y.def_flg === 1 || y.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
8429
8432
|
});
|
@@ -8507,13 +8510,13 @@ function useKgVar(e, t, r = 0) {
|
|
8507
8510
|
}), onUnmounted(() => {
|
8508
8511
|
s.leave(o);
|
8509
8512
|
}));
|
8510
|
-
const i = (
|
8511
|
-
var
|
8512
|
-
return (
|
8513
|
-
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), d = computed(() => s.isUpdating(o)), m = computed(() => s.isCopying(o)), p = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)), _ = computed(() => s.getVarButtons(o)), v = computed(() => s.getVarProfileMasters(o)),
|
8514
|
-
var
|
8515
|
-
return (
|
8516
|
-
}),
|
8513
|
+
const i = (N) => computed(() => {
|
8514
|
+
var k, I, w;
|
8515
|
+
return (w = (I = (k = s.getVarCatalog(o, N)) == null ? void 0 : k.var_text) != null ? I : N) != null ? w : "";
|
8516
|
+
}), l = computed(() => s.isRetrievingVar(o)), u = computed(() => s.isRetrievingVarProfileMaster(o)), c = computed(() => s.isCreating(o)), d = computed(() => s.isUpdating(o)), m = computed(() => s.isCopying(o)), p = computed(() => s.isDeleting(o)), b = computed(() => s.isOtherRequesting(o)), _ = computed(() => s.getVarButtons(o)), v = computed(() => s.getVarProfileMasters(o)), C = computed(() => s.getCurrentVarProfileMaster(o)), y = computed(() => s.getCurrentVarProfileMasterID(o)), E = computed(() => {
|
8517
|
+
var N, k;
|
8518
|
+
return (k = (N = C.value) == null ? void 0 : N.varProfileDetails) != null ? k : null;
|
8519
|
+
}), A = computed(() => s.getVarGridConfig(o)), P = computed(() => s.getVarGridMasters(o)), T = computed(() => s.getCurrentVarGridMaster(o)), B = computed(() => s.getSystemVarGridDetails(o));
|
8517
8520
|
return {
|
8518
8521
|
formID: o,
|
8519
8522
|
store: s,
|
@@ -8526,10 +8529,10 @@ function useKgVar(e, t, r = 0) {
|
|
8526
8529
|
isOtherRequesting: b,
|
8527
8530
|
varButtons: _,
|
8528
8531
|
varProfileMasters: v,
|
8529
|
-
currentVarProfileMaster:
|
8532
|
+
currentVarProfileMaster: C,
|
8530
8533
|
currentVarProfileMasterID: y,
|
8531
|
-
currentVarProfileDetails:
|
8532
|
-
varGridConfig:
|
8534
|
+
currentVarProfileDetails: E,
|
8535
|
+
varGridConfig: A,
|
8533
8536
|
varGridMasters: P,
|
8534
8537
|
currentVarGridMaster: T,
|
8535
8538
|
systemVarGridDetails: B,
|
@@ -8703,8 +8706,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8703
8706
|
}) => {
|
8704
8707
|
const c = o.store.getVarSubmitConfig(o.formID);
|
8705
8708
|
return i = watch(u, (d) => {
|
8706
|
-
var m, p, b, _, v,
|
8707
|
-
d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, d.max_width = (
|
8709
|
+
var m, p, b, _, v, C, y, E, A, P, T, B;
|
8710
|
+
d && (d.id = (m = c == null ? void 0 : c.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (p = c == null ? void 0 : c.resizable_flg) != null ? p : 1, d.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, d.dft_fullscreen_flg = (_ = c == null ? void 0 : c.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, d.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, d.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (A = c == null ? void 0 : c.layout) != null ? A : KG_SUBMIT_LAYOUT.VERTICAL, d.label_col = (P = c == null ? void 0 : c.label_col) != null ? P : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (B = c == null ? void 0 : c.display_type) != null ? B : KG_SUBMIT_DISPLAY_TYPE.DRAWER);
|
8708
8711
|
}), !1;
|
8709
8712
|
}), l.onClose(async () => (i == null || i(), r("kgClose"), !1)), l.onBeforeOk(async ({
|
8710
8713
|
rules: u,
|
@@ -8752,8 +8755,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8752
8755
|
r("kgCancel");
|
8753
8756
|
}
|
8754
8757
|
function b() {
|
8755
|
-
var
|
8756
|
-
return e.kgShowFullscreenButton === !1 || ((
|
8758
|
+
var C;
|
8759
|
+
return e.kgShowFullscreenButton === !1 || ((C = i.value) == null ? void 0 : C.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
8757
8760
|
onClick: d,
|
8758
8761
|
class: "kg-submit--btn-fullscreen"
|
8759
8762
|
}, {
|
@@ -8800,20 +8803,20 @@ function _useFormModel() {
|
|
8800
8803
|
}), d = ref({});
|
8801
8804
|
return watch(c, (m) => {
|
8802
8805
|
d.value = {}, m != null && m.length && m.forEach((p) => {
|
8803
|
-
var v,
|
8806
|
+
var v, C, y, E;
|
8804
8807
|
const b = (v = p.var_nam) != null ? v : "", _ = t.selectedRow.value;
|
8805
8808
|
switch (d.value[b] = void 0, !0) {
|
8806
8809
|
case r.value:
|
8807
8810
|
isNil(p.crt_dft_val) || (d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.crt_dft_val));
|
8808
8811
|
break;
|
8809
8812
|
case n.value:
|
8810
|
-
d.value.id = _ == null ? void 0 : _.id, isNil(p.upt_dft_val) ? d.value[b] = (
|
8813
|
+
d.value.id = _ == null ? void 0 : _.id, isNil(p.upt_dft_val) ? d.value[b] = (C = _ == null ? void 0 : _[b]) != null ? C : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.upt_dft_val);
|
8811
8814
|
break;
|
8812
8815
|
case a.value:
|
8813
8816
|
d.value.id = _ == null ? void 0 : _.id, isNil(p.cpy_dft_val) ? d.value[b] = (y = _ == null ? void 0 : _[b]) != null ? y : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.cpy_dft_val);
|
8814
8817
|
break;
|
8815
8818
|
case o.value:
|
8816
|
-
d.value.id = _ == null ? void 0 : _.id, isNil(p.del_dft_val) ? d.value[b] = (
|
8819
|
+
d.value.id = _ == null ? void 0 : _.id, isNil(p.del_dft_val) ? d.value[b] = (E = _ == null ? void 0 : _[b]) != null ? E : void 0 : d.value[b] = KgVarUtil.transformValueByControlType(e.formID, b, p.del_dft_val);
|
8817
8820
|
break;
|
8818
8821
|
}
|
8819
8822
|
});
|
@@ -8898,77 +8901,77 @@ const getProps$p = () => ({
|
|
8898
8901
|
}) {
|
8899
8902
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null), {
|
8900
8903
|
model: l
|
8901
|
-
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() => n.store.isDeleting(n.formID)), p = computed(() => m.value &&
|
8902
|
-
var K,
|
8904
|
+
} = _useFormModel(), u = computed(() => n.store.isCreating(n.formID)), c = computed(() => n.store.isUpdating(n.formID)), d = computed(() => n.store.isCopying(n.formID)), m = computed(() => n.store.isDeleting(n.formID)), p = computed(() => m.value && w.value.length === 0 && L.value.length === 0), b = computed(() => n.store.getVarButtonCreate(n.formID)), _ = computed(() => n.store.getVarButtonUpdate(n.formID)), v = computed(() => n.store.getVarButtonCopy(n.formID)), C = computed(() => n.store.getVarButtonDelete(n.formID)), y = computed(() => o.store.isLoading(n.formID)), E = computed(() => n.store.getVarSubmitConfig(n.formID)), A = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), P = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), B = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), N = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), w = computed(() => {
|
8905
|
+
var K, W, Y;
|
8903
8906
|
switch (!0) {
|
8904
8907
|
case u.value:
|
8905
|
-
return (K =
|
8908
|
+
return (K = A.value) != null ? K : [];
|
8906
8909
|
case c.value:
|
8907
|
-
return (
|
8910
|
+
return (W = T.value) != null ? W : [];
|
8908
8911
|
case d.value:
|
8909
|
-
return (Y =
|
8912
|
+
return (Y = N.value) != null ? Y : [];
|
8910
8913
|
case m.value:
|
8911
8914
|
return [];
|
8912
8915
|
}
|
8913
8916
|
return [];
|
8914
|
-
}),
|
8915
|
-
var K,
|
8917
|
+
}), L = computed(() => {
|
8918
|
+
var K, W, Y, Z;
|
8916
8919
|
switch (!0) {
|
8917
8920
|
case u.value:
|
8918
8921
|
return (K = P.value) != null ? K : [];
|
8919
8922
|
case c.value:
|
8920
|
-
return (
|
8923
|
+
return (W = B.value) != null ? W : [];
|
8921
8924
|
case d.value:
|
8922
|
-
return (Y =
|
8925
|
+
return (Y = k.value) != null ? Y : [];
|
8923
8926
|
case m.value:
|
8924
|
-
return (Z =
|
8927
|
+
return (Z = I.value) != null ? Z : [];
|
8925
8928
|
}
|
8926
8929
|
return [];
|
8927
|
-
}),
|
8930
|
+
}), $ = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), M = computed(() => $.value || y.value), O = computed(() => y.value), F = ref({
|
8928
8931
|
kgWidth: DEFAULT_WIDTH
|
8929
8932
|
}), R = computed(() => {
|
8930
8933
|
var K;
|
8931
|
-
return !!(p.value ||
|
8932
|
-
}), G = ref(null),
|
8934
|
+
return !!(p.value || x.isFullscreen || ((K = E.value) == null ? void 0 : K.resizable_flg) === 0);
|
8935
|
+
}), G = ref(null), V = ref({}), U = ref(null);
|
8933
8936
|
_useResizeObserver$1(U);
|
8934
|
-
const
|
8937
|
+
const H = _useTitle(), Q = computed(() => !!(u.value || c.value || d.value || m.value)), J = computed(() => {
|
8935
8938
|
if (p.value)
|
8936
8939
|
return 400;
|
8937
8940
|
if (F.value.kgWidth)
|
8938
8941
|
return F.value.kgWidth + 2;
|
8939
|
-
}),
|
8940
|
-
var
|
8942
|
+
}), D = computed(() => {
|
8943
|
+
var W, Y;
|
8941
8944
|
let K = "kg-submit";
|
8942
|
-
return
|
8943
|
-
}),
|
8945
|
+
return x.isFullscreen && (K += " kg-submit--fullscreen"), ((W = E.value) == null ? void 0 : W.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL || m.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
8946
|
+
}), x = reactive({
|
8944
8947
|
isFullscreen: !1
|
8945
|
-
}),
|
8946
|
-
var K,
|
8947
|
-
switch ((K =
|
8948
|
+
}), X = computed(() => {
|
8949
|
+
var K, W, Y, Z;
|
8950
|
+
switch ((K = E.value) == null ? void 0 : K.layout) {
|
8948
8951
|
case "horizontal":
|
8949
|
-
switch ((
|
8952
|
+
switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
|
8950
8953
|
case KG_WIDTH_UNIT.SPAN:
|
8951
8954
|
return {
|
8952
|
-
span: (Y =
|
8955
|
+
span: (Y = E.value) == null ? void 0 : Y.label_col
|
8953
8956
|
};
|
8954
8957
|
default:
|
8955
8958
|
return {
|
8956
8959
|
style: {
|
8957
|
-
width: `${(Z =
|
8960
|
+
width: `${(Z = E.value) == null ? void 0 : Z.label_col}px`
|
8958
8961
|
}
|
8959
8962
|
};
|
8960
8963
|
}
|
8961
8964
|
default:
|
8962
8965
|
return;
|
8963
8966
|
}
|
8964
|
-
}),
|
8965
|
-
var K,
|
8966
|
-
switch ((K =
|
8967
|
+
}), q = computed(() => {
|
8968
|
+
var K, W, Y;
|
8969
|
+
switch ((K = E.value) == null ? void 0 : K.layout) {
|
8967
8970
|
case "horizontal":
|
8968
|
-
switch ((
|
8971
|
+
switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
|
8969
8972
|
case KG_WIDTH_UNIT.SPAN:
|
8970
8973
|
return {
|
8971
|
-
span: 24 - ((Y =
|
8974
|
+
span: 24 - ((Y = E.value) == null ? void 0 : Y.label_col)
|
8972
8975
|
};
|
8973
8976
|
default:
|
8974
8977
|
return;
|
@@ -8977,14 +8980,14 @@ const getProps$p = () => ({
|
|
8977
8980
|
return;
|
8978
8981
|
}
|
8979
8982
|
});
|
8980
|
-
watch(
|
8981
|
-
K ?
|
8982
|
-
}), watch(
|
8983
|
+
watch(Q, (K) => {
|
8984
|
+
K ? ee() : z();
|
8985
|
+
}), watch(E, (K) => {
|
8983
8986
|
K != null && K.dft_width && (F.value.kgWidth = K.dft_width);
|
8984
8987
|
}, {
|
8985
8988
|
immediate: !0
|
8986
8989
|
});
|
8987
|
-
function
|
8990
|
+
function ee() {
|
8988
8991
|
var K;
|
8989
8992
|
o.store.emit(n.formID, "open", {
|
8990
8993
|
isCreating: u.value,
|
@@ -8993,13 +8996,13 @@ const getProps$p = () => ({
|
|
8993
8996
|
isDeleting: m.value,
|
8994
8997
|
row: a.selectedRow.value,
|
8995
8998
|
model: l
|
8996
|
-
}), ((K =
|
8999
|
+
}), ((K = E.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (x.isFullscreen = !0);
|
8997
9000
|
}
|
8998
9001
|
function z() {
|
8999
9002
|
var K;
|
9000
|
-
F.value.kgWidth = ((K =
|
9003
|
+
F.value.kgWidth = ((K = E.value) == null ? void 0 : K.dft_width) || DEFAULT_WIDTH, x.isFullscreen = !1, o.store.emit(n.formID, "close");
|
9001
9004
|
}
|
9002
|
-
function
|
9005
|
+
function re() {
|
9003
9006
|
switch (!0) {
|
9004
9007
|
case u.value:
|
9005
9008
|
n.store.setIsCreating(n.formID, !1);
|
@@ -9015,11 +9018,11 @@ const getProps$p = () => ({
|
|
9015
9018
|
break;
|
9016
9019
|
}
|
9017
9020
|
}
|
9018
|
-
async function
|
9019
|
-
var K,
|
9021
|
+
async function ie() {
|
9022
|
+
var K, W;
|
9020
9023
|
try {
|
9021
9024
|
if (await o.store.emit(n.formID, "beforeOk", {
|
9022
|
-
rules:
|
9025
|
+
rules: V,
|
9023
9026
|
model: l
|
9024
9027
|
}))
|
9025
9028
|
return;
|
@@ -9028,27 +9031,27 @@ const getProps$p = () => ({
|
|
9028
9031
|
} catch (Z) {
|
9029
9032
|
KgUtil.throwIfNotFormError(Z);
|
9030
9033
|
}
|
9031
|
-
switch (await ((
|
9034
|
+
switch (await ((W = G.value) == null ? void 0 : W.validate()), !0) {
|
9032
9035
|
case u.value:
|
9033
|
-
await
|
9036
|
+
await le();
|
9034
9037
|
break;
|
9035
9038
|
case c.value:
|
9036
|
-
await
|
9039
|
+
await de();
|
9037
9040
|
break;
|
9038
9041
|
case d.value:
|
9039
|
-
await
|
9042
|
+
await fe();
|
9040
9043
|
break;
|
9041
9044
|
case m.value:
|
9042
|
-
await
|
9045
|
+
await ge();
|
9043
9046
|
break;
|
9044
9047
|
}
|
9045
9048
|
} catch (Y) {
|
9046
9049
|
KgUtil.throwIfNotFormError(Y);
|
9047
9050
|
}
|
9048
9051
|
}
|
9049
|
-
async function
|
9050
|
-
var
|
9051
|
-
const K = (
|
9052
|
+
async function le() {
|
9053
|
+
var W, Y, Z, ne, ae, oe, te;
|
9054
|
+
const K = (W = b.value) == null ? void 0 : W.cmd;
|
9052
9055
|
if (!K) {
|
9053
9056
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9054
9057
|
button: b.value
|
@@ -9060,18 +9063,18 @@ const getProps$p = () => ({
|
|
9060
9063
|
await httpClient().request({
|
9061
9064
|
method: (Z = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9062
9065
|
url: K,
|
9063
|
-
params: KgVarUtil.parseCommandParameter((
|
9066
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = b.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9064
9067
|
data: toRaw(l.value)
|
9065
|
-
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (
|
9066
|
-
} catch (
|
9067
|
-
console.error(
|
9068
|
+
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe, !0);
|
9069
|
+
} catch (se) {
|
9070
|
+
console.error(se);
|
9068
9071
|
} finally {
|
9069
9072
|
n.store.setIsCreatingRequesting(n.formID, !1);
|
9070
9073
|
}
|
9071
9074
|
}
|
9072
|
-
async function
|
9073
|
-
var
|
9074
|
-
const K = (
|
9075
|
+
async function de() {
|
9076
|
+
var W, Y, Z, ne, ae, oe, te;
|
9077
|
+
const K = (W = _.value) == null ? void 0 : W.cmd;
|
9075
9078
|
if (!K) {
|
9076
9079
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9077
9080
|
button: _.value
|
@@ -9082,18 +9085,18 @@ const getProps$p = () => ({
|
|
9082
9085
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
9083
9086
|
method: (Z = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9084
9087
|
url: K,
|
9085
|
-
params: KgVarUtil.parseCommandParameter((
|
9088
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = _.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9086
9089
|
data: toRaw(l.value)
|
9087
|
-
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (
|
9088
|
-
} catch (
|
9089
|
-
console.error(
|
9090
|
+
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe);
|
9091
|
+
} catch (se) {
|
9092
|
+
console.error(se);
|
9090
9093
|
} finally {
|
9091
9094
|
n.store.setIsUpdatingRequesting(n.formID, !1);
|
9092
9095
|
}
|
9093
9096
|
}
|
9094
|
-
async function
|
9095
|
-
var
|
9096
|
-
const K = (
|
9097
|
+
async function fe() {
|
9098
|
+
var W, Y, Z, ne, ae, oe, te;
|
9099
|
+
const K = (W = v.value) == null ? void 0 : W.cmd;
|
9097
9100
|
if (!K) {
|
9098
9101
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9099
9102
|
button: v.value
|
@@ -9101,110 +9104,112 @@ const getProps$p = () => ({
|
|
9101
9104
|
return;
|
9102
9105
|
}
|
9103
9106
|
try {
|
9104
|
-
n.store.setIsCopyingRequesting(n.formID, !0)
|
9107
|
+
n.store.setIsCopyingRequesting(n.formID, !0);
|
9108
|
+
const se = toRaw(l.value);
|
9109
|
+
delete se.id, await httpClient().request({
|
9105
9110
|
method: (Z = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9106
9111
|
url: K,
|
9107
|
-
params: KgVarUtil.parseCommandParameter((
|
9112
|
+
params: KgVarUtil.parseCommandParameter((ae = (ne = v.value) == null ? void 0 : ne.cmd_prm) != null ? ae : ""),
|
9108
9113
|
data: toRaw(l.value)
|
9109
|
-
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (
|
9110
|
-
} catch (
|
9111
|
-
console.error(
|
9114
|
+
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe, !0);
|
9115
|
+
} catch (se) {
|
9116
|
+
console.error(se);
|
9112
9117
|
} finally {
|
9113
9118
|
n.store.setIsCopyingRequesting(n.formID, !1);
|
9114
9119
|
}
|
9115
9120
|
}
|
9116
|
-
async function
|
9117
|
-
var
|
9118
|
-
const K = (
|
9121
|
+
async function ge() {
|
9122
|
+
var W, Y, Z, ne, ae, oe, te;
|
9123
|
+
const K = (W = C.value) == null ? void 0 : W.cmd;
|
9119
9124
|
if (!K) {
|
9120
9125
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9121
|
-
button:
|
9126
|
+
button: C.value
|
9122
9127
|
});
|
9123
9128
|
return;
|
9124
9129
|
}
|
9125
9130
|
try {
|
9126
9131
|
n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
|
9127
|
-
method: (Z = (Y =
|
9132
|
+
method: (Z = (Y = C.value) == null ? void 0 : Y.cmd_method) != null ? Z : "DELETE",
|
9128
9133
|
url: K,
|
9129
9134
|
params: {
|
9130
|
-
ids: (
|
9131
|
-
var
|
9132
|
-
return (
|
9133
|
-
})) != null ?
|
9135
|
+
ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((se) => {
|
9136
|
+
var ue;
|
9137
|
+
return (ue = se.id) != null ? ue : "";
|
9138
|
+
})) != null ? ae : []
|
9134
9139
|
}
|
9135
9140
|
}, {
|
9136
9141
|
joinParamsToUrl: !0
|
9137
|
-
}), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (
|
9138
|
-
} catch (
|
9139
|
-
console.error(
|
9142
|
+
}), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (te = (oe = s.search).value) == null || te.call(oe, !0);
|
9143
|
+
} catch (se) {
|
9144
|
+
console.error(se);
|
9140
9145
|
} finally {
|
9141
9146
|
n.store.setIsDeletingRequesting(n.formID, !1);
|
9142
9147
|
}
|
9143
9148
|
}
|
9144
9149
|
function ce(K) {
|
9145
9150
|
var Y, Z;
|
9146
|
-
const
|
9147
|
-
return isFunction$2(
|
9151
|
+
const W = (Z = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9152
|
+
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
9148
9153
|
kgVarName: K.var_nam,
|
9149
9154
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9150
|
-
kgRules:
|
9151
|
-
onKgSubmit:
|
9155
|
+
kgRules: V.value[K.var_nam],
|
9156
|
+
onKgSubmit: ie
|
9152
9157
|
}, {
|
9153
9158
|
control: ({
|
9154
|
-
varName:
|
9155
|
-
props:
|
9156
|
-
model:
|
9157
|
-
varConfig:
|
9158
|
-
varProfileDetail:
|
9159
|
-
varSubmitField:
|
9160
|
-
}) =>
|
9161
|
-
varName:
|
9162
|
-
props:
|
9163
|
-
model:
|
9164
|
-
varConfig:
|
9165
|
-
varProfileDetail:
|
9166
|
-
varSubmitField:
|
9159
|
+
varName: ne,
|
9160
|
+
props: ae,
|
9161
|
+
model: oe,
|
9162
|
+
varConfig: te,
|
9163
|
+
varProfileDetail: se,
|
9164
|
+
varSubmitField: ue
|
9165
|
+
}) => W({
|
9166
|
+
varName: ne,
|
9167
|
+
props: ae,
|
9168
|
+
model: oe,
|
9169
|
+
varConfig: te,
|
9170
|
+
varProfileDetail: se,
|
9171
|
+
varSubmitField: ue
|
9167
9172
|
})
|
9168
9173
|
}) : createVNode(KgForm.Item, {
|
9169
9174
|
kgVarName: K.var_nam,
|
9170
9175
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9171
|
-
kgRules:
|
9172
|
-
onKgSubmit:
|
9176
|
+
kgRules: V.value[K.var_nam],
|
9177
|
+
onKgSubmit: ie
|
9173
9178
|
}, null);
|
9174
9179
|
}
|
9175
|
-
function
|
9176
|
-
var Y, Z, ae, oe
|
9177
|
-
let K,
|
9180
|
+
function pe() {
|
9181
|
+
var Y, Z, ne, ae, oe;
|
9182
|
+
let K, W;
|
9178
9183
|
return createVNode(KgResizable, {
|
9179
|
-
kgType: ((Y =
|
9180
|
-
kgMinWidth: (
|
9181
|
-
kgMaxWidth: (
|
9184
|
+
kgType: ((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
|
9185
|
+
kgMinWidth: (ne = (Z = E.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
|
9186
|
+
kgMaxWidth: (oe = (ae = E.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
|
9182
9187
|
kgDisabled: R.value,
|
9183
9188
|
kgWidth: p.value ? 398 : F.value.kgWidth,
|
9184
|
-
"onUpdate:kgWidth": (
|
9189
|
+
"onUpdate:kgWidth": (te) => F.value.kgWidth = te
|
9185
9190
|
}, {
|
9186
9191
|
default: () => [createVNode(Spin, {
|
9187
9192
|
spinning: y.value
|
9188
9193
|
}, {
|
9189
9194
|
default: () => {
|
9190
|
-
var
|
9195
|
+
var te, se;
|
9191
9196
|
return [createVNode(KgForm, {
|
9192
9197
|
ref: G,
|
9193
9198
|
model: l.value,
|
9194
|
-
layout: (
|
9195
|
-
labelCol:
|
9196
|
-
wrapperCol:
|
9199
|
+
layout: (se = (te = E.value) == null ? void 0 : te.layout) != null ? se : "vertical",
|
9200
|
+
labelCol: X.value,
|
9201
|
+
wrapperCol: q.value
|
9197
9202
|
}, {
|
9198
9203
|
default: () => [createVNode("div", {
|
9199
9204
|
ref: U
|
9200
|
-
}, [
|
9205
|
+
}, [w.value.length > 0 && createVNode(Row, {
|
9201
9206
|
gutter: 6
|
9202
|
-
}, _isSlot$7(K =
|
9207
|
+
}, _isSlot$7(K = w.value.map(ce)) ? K : {
|
9203
9208
|
default: () => [K]
|
9204
|
-
}),
|
9209
|
+
}), w.value.length > 0 && L.value.length > 0 && createVNode(Divider, null, null), L.value.length > 0 && createVNode(Row, {
|
9205
9210
|
gutter: 6
|
9206
|
-
}, _isSlot$7(
|
9207
|
-
default: () => [
|
9211
|
+
}, _isSlot$7(W = L.value.map(ce)) ? W : {
|
9212
|
+
default: () => [W]
|
9208
9213
|
}), p.value && createVNode("div", {
|
9209
9214
|
style: "text-align: center; padding: 6px 0 12px;"
|
9210
9215
|
}, [r.t("kg.confirmDelete")])])]
|
@@ -9214,52 +9219,52 @@ const getProps$p = () => ({
|
|
9214
9219
|
});
|
9215
9220
|
}
|
9216
9221
|
function me() {
|
9217
|
-
let K,
|
9222
|
+
let K, W;
|
9218
9223
|
return createVNode("div", null, [createVNode(Button, {
|
9219
9224
|
type: "primary",
|
9220
|
-
ghost:
|
9221
|
-
disabled:
|
9222
|
-
onClick:
|
9225
|
+
ghost: !M.value,
|
9226
|
+
disabled: M.value,
|
9227
|
+
onClick: re
|
9223
9228
|
}, _isSlot$7(K = r.t("kg.cancel")) ? K : {
|
9224
9229
|
default: () => [K]
|
9225
9230
|
}), createVNode(Button, {
|
9226
9231
|
type: "primary",
|
9227
|
-
disabled:
|
9228
|
-
loading:
|
9232
|
+
disabled: O.value,
|
9233
|
+
loading: $.value,
|
9229
9234
|
danger: !!m.value,
|
9230
|
-
onClick:
|
9231
|
-
}, _isSlot$7(
|
9232
|
-
default: () => [
|
9235
|
+
onClick: ie
|
9236
|
+
}, _isSlot$7(W = r.t(m.value ? "kg.delete" : "kg.save")) ? W : {
|
9237
|
+
default: () => [W]
|
9233
9238
|
})]);
|
9234
9239
|
}
|
9235
9240
|
function he() {
|
9236
9241
|
return createVNode("div", {
|
9237
|
-
title:
|
9238
|
-
}, [
|
9242
|
+
title: H.title.value
|
9243
|
+
}, [H.title.value]);
|
9239
9244
|
}
|
9240
9245
|
function _e() {
|
9241
9246
|
return createVNode(KgSubmitHeader, {
|
9242
|
-
isFullscreen:
|
9243
|
-
"onUpdate:isFullscreen": (K) =>
|
9247
|
+
isFullscreen: x.isFullscreen,
|
9248
|
+
"onUpdate:isFullscreen": (K) => x.isFullscreen = K,
|
9244
9249
|
kgShowFullscreenButton: !p.value,
|
9245
9250
|
kgShowConfigButton: !p.value && e.kgShowConfigButton,
|
9246
|
-
onKgCancel:
|
9251
|
+
onKgCancel: re
|
9247
9252
|
}, null);
|
9248
9253
|
}
|
9249
9254
|
return () => createVNode(Drawer, {
|
9250
|
-
visible:
|
9255
|
+
visible: Q.value,
|
9251
9256
|
placement: "right",
|
9252
9257
|
closable: !1,
|
9253
9258
|
maskClosable: !1,
|
9254
9259
|
keyboard: !1,
|
9255
9260
|
destroyOnClose: !0,
|
9256
|
-
width:
|
9257
|
-
class:
|
9261
|
+
width: J.value,
|
9262
|
+
class: D.value,
|
9258
9263
|
"kg-frm-id": n.formID
|
9259
9264
|
}, {
|
9260
9265
|
title: he,
|
9261
9266
|
extra: _e,
|
9262
|
-
default:
|
9267
|
+
default: pe,
|
9263
9268
|
footer: me
|
9264
9269
|
});
|
9265
9270
|
}
|
@@ -9350,25 +9355,25 @@ const getProps$p = () => ({
|
|
9350
9355
|
var u, c, d, m, p, b, _, v;
|
9351
9356
|
switch ((u = a.value) == null ? void 0 : u.display_type) {
|
9352
9357
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
9353
|
-
const
|
9358
|
+
const C = KgUtil.tryParseJSON((c = a.value) == null ? void 0 : c.display_type_properties);
|
9354
9359
|
return createVNode(KgYesOrNo, {
|
9355
|
-
kgValue: e.kgValue === ((d =
|
9360
|
+
kgValue: e.kgValue === ((d = C.yValue) != null ? d : 1)
|
9356
9361
|
}, null);
|
9357
9362
|
}
|
9358
9363
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
9359
|
-
const
|
9360
|
-
return
|
9361
|
-
color: (p =
|
9364
|
+
const C = KgUtil.tryParseJSON((m = a.value) == null ? void 0 : m.display_type_properties).find((y) => y.value === e.kgValue);
|
9365
|
+
return C ? createVNode(Tag, {
|
9366
|
+
color: (p = C.color) != null ? p : "default"
|
9362
9367
|
}, {
|
9363
|
-
default: () => [n.t(
|
9368
|
+
default: () => [n.t(C.varName).value]
|
9364
9369
|
}) : l();
|
9365
9370
|
}
|
9366
9371
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
9367
|
-
const
|
9372
|
+
const C = KgUtil.tryParseJSON((b = a.value) == null ? void 0 : b.display_type_properties);
|
9368
9373
|
return createVNode(KgProgressA, {
|
9369
|
-
kgTextWidth:
|
9370
|
-
kgLeft: (_ = e.kgRow) == null ? void 0 : _[
|
9371
|
-
kgRight: (v = e.kgRow) == null ? void 0 : v[
|
9374
|
+
kgTextWidth: C.textWidth,
|
9375
|
+
kgLeft: (_ = e.kgRow) == null ? void 0 : _[C.leftColumn],
|
9376
|
+
kgRight: (v = e.kgRow) == null ? void 0 : v[C.rightColumn]
|
9372
9377
|
}, null);
|
9373
9378
|
}
|
9374
9379
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -9479,8 +9484,8 @@ const getProps$l = () => ({
|
|
9479
9484
|
}) => {
|
9480
9485
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9481
9486
|
return s = watch(l, (c) => {
|
9482
|
-
var d, m, p, b, _, v,
|
9483
|
-
c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (
|
9487
|
+
var d, m, p, b, _, v, C, y, E, A, P;
|
9488
|
+
c && (c.id = (d = u == null ? void 0 : u.id) != null ? d : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (m = u == null ? void 0 : u.aut_load_flg) != null ? m : 0, c.mult_flg = (p = u == null ? void 0 : u.mult_flg) != null ? p : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (_ = u == null ? void 0 : u.show_bottom_left_flg) != null ? _ : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (A = u == null ? void 0 : u.cmd_prm) != null ? A : void 0, c.button_display_type = (P = u == null ? void 0 : u.button_display_type) != null ? P : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9484
9489
|
}, {
|
9485
9490
|
immediate: !0
|
9486
9491
|
}), !1;
|
@@ -9687,28 +9692,28 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9687
9692
|
class: "columns"
|
9688
9693
|
}, [createVNode(Input, {
|
9689
9694
|
value: s.value,
|
9690
|
-
"onUpdate:value": (
|
9695
|
+
"onUpdate:value": (C) => s.value = C,
|
9691
9696
|
allowClear: !0
|
9692
9697
|
}, null), createVNode("ul", {
|
9693
9698
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
9694
|
-
}, [(v = a.systemVarGridDetails.value) == null ? void 0 : v.map((
|
9699
|
+
}, [(v = a.systemVarGridDetails.value) == null ? void 0 : v.map((C) => {
|
9695
9700
|
var y;
|
9696
9701
|
return createVNode("li", {
|
9697
9702
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
9698
|
-
onClick: (
|
9699
|
-
|
9703
|
+
onClick: (E) => {
|
9704
|
+
E.preventDefault(), E.stopPropagation(), u(C);
|
9700
9705
|
},
|
9701
9706
|
style: {
|
9702
|
-
display: (y = a.t(
|
9707
|
+
display: (y = a.t(C.var_nam).value) != null && y.includes(s.value) ? "flex" : "none"
|
9703
9708
|
}
|
9704
9709
|
}, [createVNode(Checkbox, {
|
9705
|
-
checked:
|
9710
|
+
checked: C.vis_flg === 1,
|
9706
9711
|
disabled: !0
|
9707
9712
|
}, {
|
9708
|
-
default: () => [createVNode("pre", null, [a.t(
|
9713
|
+
default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
|
9709
9714
|
}), createVNode(HolderOutlined$1, {
|
9710
|
-
onClick: (
|
9711
|
-
|
9715
|
+
onClick: (E) => {
|
9716
|
+
E.preventDefault(), E.stopPropagation();
|
9712
9717
|
}
|
9713
9718
|
}, null)]);
|
9714
9719
|
})])]);
|
@@ -9724,15 +9729,15 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9724
9729
|
}, {
|
9725
9730
|
default: () => {
|
9726
9731
|
var y;
|
9727
|
-
let v,
|
9728
|
-
return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((
|
9729
|
-
var
|
9732
|
+
let v, C;
|
9733
|
+
return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((E) => {
|
9734
|
+
var A;
|
9730
9735
|
return createVNode(Menu.Item, {
|
9731
|
-
key:
|
9732
|
-
class:
|
9733
|
-
"kg-var-nam":
|
9736
|
+
key: E.id,
|
9737
|
+
class: E.id === ((A = a.currentVarGridMaster.value) == null ? void 0 : A.id) ? "selected" : "",
|
9738
|
+
"kg-var-nam": E.grd_var_nam
|
9734
9739
|
}, {
|
9735
|
-
default: () => [a.t(
|
9740
|
+
default: () => [a.t(E.grd_var_nam).value]
|
9736
9741
|
});
|
9737
9742
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
9738
9743
|
key: "save-grid-view",
|
@@ -9742,8 +9747,8 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9742
9747
|
}), createVNode(Menu.Item, {
|
9743
9748
|
key: "save-grid-view-as",
|
9744
9749
|
onClick: m
|
9745
|
-
}, _isSlot$5(
|
9746
|
-
default: () => [
|
9750
|
+
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
|
9751
|
+
default: () => [C]
|
9747
9752
|
})]);
|
9748
9753
|
},
|
9749
9754
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
@@ -9948,22 +9953,22 @@ function _useColumns() {
|
|
9948
9953
|
if (m.fix_right_flg === 1)
|
9949
9954
|
return "right";
|
9950
9955
|
}
|
9951
|
-
function
|
9956
|
+
function C() {
|
9952
9957
|
return m.ord_flg === 1;
|
9953
9958
|
}
|
9954
9959
|
function y() {
|
9955
9960
|
return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
|
9956
9961
|
}
|
9957
|
-
const
|
9962
|
+
const E = p();
|
9958
9963
|
return {
|
9959
9964
|
dataIndex: m.var_nam,
|
9960
9965
|
title: b(),
|
9961
|
-
width:
|
9962
|
-
resizable: typeof
|
9966
|
+
width: E,
|
9967
|
+
resizable: typeof E == "number",
|
9963
9968
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
9964
9969
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
9965
9970
|
fixed: v(),
|
9966
|
-
sorter:
|
9971
|
+
sorter: C(),
|
9967
9972
|
align: y(),
|
9968
9973
|
defaultSortOrder: _(),
|
9969
9974
|
customHeaderCell: () => ({
|
@@ -10017,195 +10022,189 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10017
10022
|
slots: t,
|
10018
10023
|
emit: r
|
10019
10024
|
}) {
|
10020
|
-
const n =
|
10025
|
+
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
|
10026
|
+
o.onSearch((D) => {
|
10027
|
+
M(D);
|
10028
|
+
}), o.onReset(() => {
|
10029
|
+
M(!0);
|
10030
|
+
});
|
10031
|
+
const l = ref(!1), {
|
10021
10032
|
columns: u,
|
10022
10033
|
scrollX: c
|
10023
10034
|
} = _useColumns(), {
|
10024
10035
|
isLoading: d
|
10025
10036
|
} = _useLoading(), m = ref(null);
|
10026
10037
|
_useResizeObserver(m);
|
10027
|
-
const p = computed(() => {
|
10028
|
-
var
|
10029
|
-
|
10030
|
-
|
10031
|
-
}), b = computed(() => s.store.getVarLookup(n, a)), _ = computed(() => {
|
10038
|
+
const p = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
|
10039
|
+
var D;
|
10040
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
|
10041
|
+
}), _ = computed(() => {
|
10032
10042
|
var D;
|
10033
|
-
return
|
10043
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
|
10034
10044
|
}), v = computed(() => {
|
10035
10045
|
var D;
|
10036
|
-
return ((D =
|
10037
|
-
}),
|
10046
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
|
10047
|
+
}), C = computed(() => {
|
10038
10048
|
var D;
|
10039
|
-
return ((D =
|
10049
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
|
10040
10050
|
}), y = computed(() => {
|
10051
|
+
var D, x;
|
10052
|
+
return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
|
10053
|
+
}), E = computed(() => {
|
10041
10054
|
var D;
|
10042
|
-
return (
|
10043
|
-
}),
|
10044
|
-
var D;
|
10045
|
-
return ((D = s.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
|
10046
|
-
}), I = computed(() => {
|
10055
|
+
return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
|
10056
|
+
}), A = computed(() => {
|
10047
10057
|
var D, x;
|
10048
|
-
return
|
10058
|
+
return (x = (D = p.value) == null ? void 0 : D.cmd) != null ? x : null;
|
10049
10059
|
}), P = computed(() => {
|
10050
|
-
var
|
10051
|
-
return (D = s.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
|
10052
|
-
}), T = computed(() => {
|
10053
|
-
var D, x, z, H;
|
10054
|
-
return b.value ? (x = (D = b.value) == null ? void 0 : D.cmd) != null ? x : "" : _.value ? (H = (z = _.value) == null ? void 0 : z.cmd) != null ? H : "" : null;
|
10055
|
-
}), B = computed(() => {
|
10056
|
-
var x, z, H, ee, te, ue, de, fe, ce, ge;
|
10060
|
+
var x, X, q, ee, z, re, ie;
|
10057
10061
|
let D = {
|
10058
|
-
pageNo:
|
10059
|
-
pageSize:
|
10062
|
+
pageNo: I.pageIndex,
|
10063
|
+
pageSize: I.pageSize,
|
10060
10064
|
...w,
|
10061
|
-
...(
|
10065
|
+
...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
|
10062
10066
|
};
|
10063
|
-
return
|
10064
|
-
...D,
|
10065
|
-
...KgVarUtil.parseCommandParameter((te = (ee = _.value) == null ? void 0 : ee.cmd_prm) != null ? te : "")
|
10066
|
-
}), b.value && (D = {
|
10067
|
+
return p.value && (D = {
|
10067
10068
|
...D,
|
10068
|
-
...KgVarUtil.parseCommandParameter((
|
10069
|
-
}), (
|
10069
|
+
...KgVarUtil.parseCommandParameter((ee = (q = p.value) == null ? void 0 : q.cmd_prm) != null ? ee : "")
|
10070
|
+
}), (z = a.varGridConfig.value) != null && z.cmd_prm && (D = {
|
10070
10071
|
...D,
|
10071
|
-
...KgVarUtil.parseCommandParameter((
|
10072
|
-
}), ((
|
10073
|
-
}),
|
10072
|
+
...KgVarUtil.parseCommandParameter((re = a.varGridConfig.value.cmd_prm) != null ? re : "")
|
10073
|
+
}), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 && D.column && (D.column = snakeCase$1(D.column)), D;
|
10074
|
+
}), T = computed(() => {
|
10074
10075
|
var D;
|
10075
|
-
if (((D =
|
10076
|
+
if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
|
10076
10077
|
return {
|
10077
10078
|
fixed: "left",
|
10078
10079
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10079
|
-
hideSelectAll: !
|
10080
|
+
hideSelectAll: !b.value,
|
10080
10081
|
selectedRowKeys: k,
|
10081
10082
|
preserveSelectedRowKeys: !1,
|
10082
|
-
onSelect: (x) =>
|
10083
|
-
onChange: (x) =>
|
10083
|
+
onSelect: (x) => F(x),
|
10084
|
+
onChange: (x) => b.value && O(x)
|
10084
10085
|
};
|
10085
|
-
}),
|
10086
|
+
}), B = computed(() => {
|
10086
10087
|
let D = "kg-table";
|
10087
|
-
return !
|
10088
|
-
}),
|
10088
|
+
return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
|
10089
|
+
}), N = ref([]), k = ref([]), I = reactive({
|
10089
10090
|
pageIndex: 1,
|
10090
10091
|
pageSize: 10,
|
10091
10092
|
total: 0
|
10092
10093
|
}), w = reactive({
|
10093
10094
|
column: void 0,
|
10094
10095
|
order: void 0
|
10095
|
-
}),
|
10096
|
-
D && (setTimeout(() =>
|
10097
|
-
R(x);
|
10098
|
-
}), D.onReset(() => {
|
10099
|
-
R(!0);
|
10100
|
-
}));
|
10101
|
-
}), A = watch(P, (D) => {
|
10102
|
-
D && (setTimeout(() => A()), M.pageSize = D);
|
10096
|
+
}), L = watch(E, (D) => {
|
10097
|
+
D && (setTimeout(() => L()), I.pageSize = D), l.value = !0;
|
10103
10098
|
});
|
10104
|
-
watch(
|
10105
|
-
D.length > 0 && !D.includes(
|
10106
|
-
}), watch([
|
10107
|
-
|
10108
|
-
return (D = p == null ? void 0 : p.value) == null ? void 0 : D.isReady;
|
10109
|
-
}], ([D, x, z]) => {
|
10110
|
-
D && x && z && !i.store.getIsRetrieved(s.formID) && R(!0);
|
10099
|
+
watch(y, (D) => {
|
10100
|
+
D.length > 0 && !D.includes(I.pageSize) && (I.pageSize = E.value);
|
10101
|
+
}), watch([A, _, () => o.isReady], ([D, x, X]) => {
|
10102
|
+
D && x && X && !i.store.getIsRetrieved(a.formID) && M(!0);
|
10111
10103
|
}, {
|
10112
10104
|
immediate: !0
|
10113
10105
|
}), onUnmounted(() => {
|
10114
|
-
i.store.dispose(
|
10106
|
+
i.store.dispose(a.formID);
|
10115
10107
|
});
|
10116
|
-
function
|
10117
|
-
if (!!
|
10108
|
+
function $(D, x) {
|
10109
|
+
if (!!T.value) {
|
10118
10110
|
if (!x) {
|
10119
|
-
k.value = [];
|
10111
|
+
k.value = [], i.store.setSelectedRows(a.formID, []);
|
10120
10112
|
return;
|
10121
10113
|
}
|
10122
10114
|
switch (D == null ? void 0 : D.detail) {
|
10123
10115
|
case 1:
|
10124
|
-
k.value = [x.id], i.store.setSelectedRows(
|
10125
|
-
var
|
10126
|
-
return (
|
10127
|
-
}).filter((
|
10116
|
+
k.value = [x.id], i.store.setSelectedRows(a.formID, k.value.map((X) => {
|
10117
|
+
var q;
|
10118
|
+
return (q = N.value) == null ? void 0 : q.find((ee) => ee.id === X);
|
10119
|
+
}).filter((X) => !!X));
|
10128
10120
|
break;
|
10129
10121
|
case 2:
|
10130
|
-
i.store.emit(
|
10122
|
+
i.store.emit(a.formID, "rowDoubleClick", x);
|
10131
10123
|
break;
|
10132
10124
|
}
|
10133
10125
|
}
|
10134
10126
|
}
|
10135
|
-
|
10136
|
-
|
10137
|
-
|
10138
|
-
|
10139
|
-
|
10140
|
-
|
10141
|
-
|
10142
|
-
|
10143
|
-
|
10144
|
-
|
10145
|
-
|
10146
|
-
|
10147
|
-
|
10148
|
-
|
10149
|
-
|
10150
|
-
|
10151
|
-
|
10152
|
-
|
10153
|
-
|
10154
|
-
|
10127
|
+
function M(D = !1) {
|
10128
|
+
const x = watch(l, (q) => {
|
10129
|
+
q && (setTimeout(() => x()), X());
|
10130
|
+
}, {
|
10131
|
+
immediate: !0
|
10132
|
+
});
|
10133
|
+
async function X() {
|
10134
|
+
var q, ee;
|
10135
|
+
if (!A.value) {
|
10136
|
+
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10137
|
+
button: p.value
|
10138
|
+
});
|
10139
|
+
return;
|
10140
|
+
}
|
10141
|
+
D && (I.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
|
10142
|
+
try {
|
10143
|
+
const z = await httpClient().request({
|
10144
|
+
method: "GET",
|
10145
|
+
url: A.value,
|
10146
|
+
params: P.value
|
10147
|
+
});
|
10148
|
+
z ? isArrayLike(z) ? (N.value = z, I.total = z.length) : "total" in z && "records" in z && (N.value = (q = z.records) != null ? q : [], I.total = (ee = z.total) != null ? ee : 0) : (N.value = [], I.total = 0), i.store.emit(a.formID, "retrieve", z), $(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
|
10149
|
+
} catch (z) {
|
10150
|
+
throw z;
|
10151
|
+
} finally {
|
10152
|
+
i.store.setIsRetrieving(a.formID, !1);
|
10153
|
+
}
|
10155
10154
|
}
|
10156
10155
|
}
|
10157
|
-
function
|
10158
|
-
k.value = D, i.store.setSelectedRows(
|
10159
|
-
var
|
10160
|
-
return (
|
10156
|
+
function O(D) {
|
10157
|
+
k.value = D, i.store.setSelectedRows(a.formID, k.value.map((x) => {
|
10158
|
+
var X;
|
10159
|
+
return (X = N.value) == null ? void 0 : X.find((q) => q.id === x);
|
10161
10160
|
}).filter((x) => !!x));
|
10162
10161
|
}
|
10163
|
-
function
|
10164
|
-
var x,
|
10165
|
-
switch (
|
10162
|
+
function F(D) {
|
10163
|
+
var x, X;
|
10164
|
+
switch (b.value) {
|
10166
10165
|
case !0:
|
10167
10166
|
{
|
10168
|
-
const
|
10169
|
-
k.value.includes(
|
10167
|
+
const q = D.id;
|
10168
|
+
k.value.includes(q) ? k.value = without$1(k.value, q) : k.value = [...(x = k.value) != null ? x : [], q];
|
10170
10169
|
}
|
10171
10170
|
break;
|
10172
10171
|
case !1:
|
10173
10172
|
{
|
10174
|
-
const
|
10175
|
-
(
|
10173
|
+
const q = D.id;
|
10174
|
+
(X = k.value) != null && X.includes(q) ? k.value = [] : k.value = [q];
|
10176
10175
|
}
|
10177
10176
|
break;
|
10178
10177
|
}
|
10179
|
-
i.store.setSelectedRows(
|
10178
|
+
i.store.setSelectedRows(a.formID, k.value.map((q) => {
|
10180
10179
|
var ee;
|
10181
|
-
return (ee =
|
10182
|
-
}).filter((
|
10180
|
+
return (ee = N.value) == null ? void 0 : ee.find((z) => z.id === q);
|
10181
|
+
}).filter((q) => !!q));
|
10183
10182
|
}
|
10184
|
-
function
|
10185
|
-
x.width = D,
|
10183
|
+
function R(D, x) {
|
10184
|
+
x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
|
10186
10185
|
}
|
10187
|
-
async function
|
10186
|
+
async function G(D, x, X, q) {
|
10188
10187
|
var ee;
|
10189
|
-
switch (
|
10188
|
+
switch (q.action) {
|
10190
10189
|
case "sort":
|
10191
10190
|
{
|
10192
10191
|
await nextTick();
|
10193
|
-
let
|
10194
|
-
|
10192
|
+
let z = X;
|
10193
|
+
z.order ? (w.column = (ee = z.field) != null ? ee : void 0, w.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (w.column = void 0, w.order = void 0), M(!0);
|
10195
10194
|
}
|
10196
10195
|
break;
|
10197
10196
|
}
|
10198
10197
|
}
|
10199
|
-
function
|
10200
|
-
x !==
|
10198
|
+
function V(D, x) {
|
10199
|
+
x !== I.pageSize ? (I.pageIndex = 1, I.pageSize = x) : I.pageIndex = D, M();
|
10201
10200
|
}
|
10202
|
-
function
|
10203
|
-
k.value = [D.id], i.store.setSelectedRows(
|
10204
|
-
var
|
10205
|
-
return (
|
10206
|
-
}).filter((x) => !!x)),
|
10201
|
+
function U(D) {
|
10202
|
+
k.value = [D.id], i.store.setSelectedRows(a.formID, k.value.map((x) => {
|
10203
|
+
var X;
|
10204
|
+
return (X = N.value) == null ? void 0 : X.find((q) => q.id === x);
|
10205
|
+
}).filter((x) => !!x)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
|
10207
10206
|
}
|
10208
|
-
function
|
10207
|
+
function H({
|
10209
10208
|
title: D,
|
10210
10209
|
column: x
|
10211
10210
|
}) {
|
@@ -10216,42 +10215,42 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10216
10215
|
return createVNode("pre", null, [D]);
|
10217
10216
|
}
|
10218
10217
|
}
|
10219
|
-
function
|
10218
|
+
function Q({
|
10220
10219
|
column: D,
|
10221
10220
|
index: x,
|
10222
|
-
record:
|
10223
|
-
value:
|
10221
|
+
record: X,
|
10222
|
+
value: q,
|
10224
10223
|
text: ee
|
10225
10224
|
}) {
|
10226
|
-
let
|
10227
|
-
D.customRender ?
|
10225
|
+
let z = "";
|
10226
|
+
D.customRender ? z = D.customRender({
|
10228
10227
|
index: x,
|
10229
|
-
record:
|
10228
|
+
record: X,
|
10230
10229
|
column: D,
|
10231
10230
|
text: ee,
|
10232
|
-
value:
|
10231
|
+
value: q,
|
10233
10232
|
renderIndex: x
|
10234
|
-
}) :
|
10235
|
-
const
|
10236
|
-
kgRow:
|
10237
|
-
kgValue:
|
10233
|
+
}) : z = q;
|
10234
|
+
const re = createVNode(KgTableCell, {
|
10235
|
+
kgRow: X,
|
10236
|
+
kgValue: z,
|
10238
10237
|
kgVarName: D.dataIndex,
|
10239
|
-
onKgUpdateLinkClick: () =>
|
10238
|
+
onKgUpdateLinkClick: () => U(X)
|
10240
10239
|
}, null);
|
10241
10240
|
return t.bodyCell ? t.bodyCell({
|
10242
|
-
value:
|
10243
|
-
record:
|
10241
|
+
value: q,
|
10242
|
+
record: X,
|
10244
10243
|
index: x,
|
10245
10244
|
column: D,
|
10246
|
-
defaultRender:
|
10247
|
-
}) :
|
10245
|
+
defaultRender: re
|
10246
|
+
}) : re;
|
10248
10247
|
}
|
10249
|
-
function
|
10250
|
-
return !
|
10248
|
+
function J() {
|
10249
|
+
return !_.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10251
10250
|
}
|
10252
10251
|
return () => createVNode("div", {
|
10253
|
-
class:
|
10254
|
-
"kg-frm-id":
|
10252
|
+
class: B.value,
|
10253
|
+
"kg-frm-id": a.formID,
|
10255
10254
|
ref: m
|
10256
10255
|
}, [createVNode(Table, {
|
10257
10256
|
class: "kg-flex-table",
|
@@ -10263,26 +10262,26 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10263
10262
|
pagination: !1,
|
10264
10263
|
showSorterTooltip: !1,
|
10265
10264
|
columns: u.value,
|
10266
|
-
dataSource:
|
10265
|
+
dataSource: N.value,
|
10267
10266
|
loading: d.value,
|
10268
10267
|
rowKey: "id",
|
10269
|
-
rowSelection:
|
10268
|
+
rowSelection: T.value,
|
10270
10269
|
customRow: (D) => ({
|
10271
|
-
onClick: (x) =>
|
10270
|
+
onClick: (x) => $(x, D)
|
10272
10271
|
}),
|
10273
|
-
onResizeColumn:
|
10274
|
-
onChange:
|
10272
|
+
onResizeColumn: R,
|
10273
|
+
onChange: G
|
10275
10274
|
}, {
|
10276
|
-
headerCell:
|
10277
|
-
bodyCell:
|
10278
|
-
emptyText:
|
10279
|
-
}), (
|
10275
|
+
headerCell: H,
|
10276
|
+
bodyCell: Q,
|
10277
|
+
emptyText: J
|
10278
|
+
}), (v.value || C.value) && createVNode("div", {
|
10280
10279
|
class: "kg-table-bottom"
|
10281
10280
|
}, [createVNode("div", {
|
10282
10281
|
class: "left"
|
10283
|
-
}, [
|
10282
|
+
}, [v.value && createVNode(KgTableInfo, {
|
10284
10283
|
kgShowClearCheck: k.value.length > 0,
|
10285
|
-
kgShowClearTable:
|
10284
|
+
kgShowClearTable: I.total > 0,
|
10286
10285
|
kgShowLocate: k.value.length === 1,
|
10287
10286
|
kgTotal: k.value.length,
|
10288
10287
|
kgDisabled: d.value
|
@@ -10290,23 +10289,23 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10290
10289
|
class: "right"
|
10291
10290
|
}, [C.value && createVNode(Pagination, {
|
10292
10291
|
size: "default",
|
10293
|
-
current:
|
10294
|
-
pageSize:
|
10295
|
-
pageSizeOptions:
|
10296
|
-
total:
|
10292
|
+
current: I.pageIndex,
|
10293
|
+
pageSize: I.pageSize,
|
10294
|
+
pageSizeOptions: y.value.map((D) => String(D)),
|
10295
|
+
total: I.total,
|
10297
10296
|
showSizeChanger: !0,
|
10298
10297
|
showQuickJumper: !1,
|
10299
10298
|
hideOnSinglePage: !1,
|
10300
|
-
disabled: d.value ||
|
10299
|
+
disabled: d.value || I.total === 0,
|
10301
10300
|
locale: {
|
10302
10301
|
page: ""
|
10303
10302
|
},
|
10304
|
-
showTotal: (D, x) =>
|
10303
|
+
showTotal: (D, x) => n.t("kg.KgTable.totalText", {
|
10305
10304
|
from: x[0],
|
10306
10305
|
to: x[1],
|
10307
10306
|
total: D
|
10308
10307
|
}),
|
10309
|
-
onChange: (D, x) =>
|
10308
|
+
onChange: (D, x) => V(D, x)
|
10310
10309
|
}, null)])])]);
|
10311
10310
|
}
|
10312
10311
|
}), getProps$f = () => ({
|
@@ -10418,7 +10417,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10418
10417
|
var m, p;
|
10419
10418
|
return (p = (m = a.value) == null ? void 0 : m.cmd_method) != null ? p : "GET";
|
10420
10419
|
}), i = computed(() => {
|
10421
|
-
var p, b, _, v,
|
10420
|
+
var p, b, _, v, C, y;
|
10422
10421
|
let m = {
|
10423
10422
|
...(p = n.model.value) != null ? p : {}
|
10424
10423
|
};
|
@@ -10427,7 +10426,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10427
10426
|
...KgVarUtil.parseCommandParameter((_ = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? _ : "")
|
10428
10427
|
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (m = {
|
10429
10428
|
...m,
|
10430
|
-
...KgVarUtil.parseCommandParameter((
|
10429
|
+
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
10431
10430
|
}), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && m.column && (m.column = snakeCase$1(m.column)), m;
|
10432
10431
|
}), l = ref(!1);
|
10433
10432
|
async function u() {
|
@@ -10633,15 +10632,15 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10633
10632
|
}
|
10634
10633
|
let l = null;
|
10635
10634
|
const u = async () => {
|
10636
|
-
var _, v,
|
10635
|
+
var _, v, C, y, E, A;
|
10637
10636
|
l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
10638
10637
|
const p = ((_ = r.varGridConfig.value) == null ? void 0 : _.mult_flg) === 1, b = n.selectedRows.value;
|
10639
10638
|
try {
|
10640
10639
|
await httpClient().request({
|
10641
|
-
method: (
|
10640
|
+
method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
|
10642
10641
|
url: i,
|
10643
|
-
params: KgVarUtil.parseCommandParameter((
|
10644
|
-
data: p ? b != null ? b : [] : (
|
10642
|
+
params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
|
10643
|
+
data: p ? b != null ? b : [] : (A = b == null ? void 0 : b[0]) != null ? A : {}
|
10645
10644
|
});
|
10646
10645
|
} catch (P) {
|
10647
10646
|
console.error(P);
|
@@ -10883,13 +10882,15 @@ const KgButtonItem = defineComponent({
|
|
10883
10882
|
}
|
10884
10883
|
return u;
|
10885
10884
|
}), i = computed(() => {
|
10886
|
-
var c, d;
|
10885
|
+
var c, d, m, p;
|
10887
10886
|
return {
|
10888
10887
|
...e,
|
10889
10888
|
class: s.value,
|
10890
10889
|
kgDisabled: o.value,
|
10891
10890
|
"kg-var-btn-id": (c = a.value) == null ? void 0 : c.id,
|
10892
|
-
"kg-
|
10891
|
+
"kg-frm-id": (d = a.value) == null ? void 0 : d.frm_id,
|
10892
|
+
"kg-var-nam": (m = a.value) == null ? void 0 : m.var_nam,
|
10893
|
+
"kg-cmd": (p = a.value) == null ? void 0 : p.cmd
|
10893
10894
|
};
|
10894
10895
|
});
|
10895
10896
|
function l() {
|
@@ -11055,8 +11056,11 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11055
11056
|
},
|
11056
11057
|
getModel(e) {
|
11057
11058
|
return (t) => {
|
11058
|
-
var
|
11059
|
-
|
11059
|
+
var a, o;
|
11060
|
+
if (!t)
|
11061
|
+
return Logger.error("formID \u4E3A\u7A7A."), null;
|
11062
|
+
const n = (a = useKgVar(t).store.getVarGridConfig(t)) == null ? void 0 : a.prf_frm_id;
|
11063
|
+
return (o = e.modelMap.get(n || t)) != null ? o : null;
|
11060
11064
|
};
|
11061
11065
|
},
|
11062
11066
|
getSearchFn(e) {
|
@@ -11126,28 +11130,30 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11126
11130
|
}
|
11127
11131
|
},
|
11128
11132
|
emit(e, t, r) {
|
11129
|
-
|
11130
|
-
|
11131
|
-
|
11132
|
-
|
11133
|
-
|
11134
|
-
|
11135
|
-
|
11136
|
-
|
11137
|
-
|
11138
|
-
|
11139
|
-
|
11140
|
-
|
11141
|
-
|
11142
|
-
|
11143
|
-
|
11144
|
-
|
11145
|
-
|
11146
|
-
|
11147
|
-
|
11148
|
-
|
11149
|
-
|
11150
|
-
|
11133
|
+
const a = [...useKgVar(e).store.getVarGridConfigMap.values()].filter((o) => (o == null ? void 0 : o.prf_frm_id) === e).map((o) => o == null ? void 0 : o.frm_id).filter((o) => !!o);
|
11134
|
+
for (let o of [e, ...a])
|
11135
|
+
switch (t) {
|
11136
|
+
case "search":
|
11137
|
+
{
|
11138
|
+
const s = this.onSearchListenersMap.get(o);
|
11139
|
+
s && s.forEach((i) => i(r == null ? void 0 : r.resetPageIndex));
|
11140
|
+
}
|
11141
|
+
break;
|
11142
|
+
case "reset":
|
11143
|
+
{
|
11144
|
+
const s = this.onResetListenersMap.get(o);
|
11145
|
+
s && s.forEach((i) => i());
|
11146
|
+
}
|
11147
|
+
break;
|
11148
|
+
case "ready":
|
11149
|
+
{
|
11150
|
+
const s = [], i = this.onReadyListenersMap.get(o);
|
11151
|
+
i && i.forEach((l) => {
|
11152
|
+
l.once ? (s.push(l), l.invoked || l()) : l();
|
11153
|
+
}), s.forEach((l) => this.removeEventListener(o, "ready", l));
|
11154
|
+
}
|
11155
|
+
break;
|
11156
|
+
}
|
11151
11157
|
},
|
11152
11158
|
setIsReady(e, t) {
|
11153
11159
|
!e || this.isReadyMap.set(e, !!t);
|
@@ -11410,8 +11416,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11410
11416
|
s.onOpen(m), s.onBeforeOk(async ({
|
11411
11417
|
model: _
|
11412
11418
|
}) => {
|
11413
|
-
var v,
|
11414
|
-
return _.value.frm_id = i.formID, _.value.varProfileDetails = (
|
11419
|
+
var v, C;
|
11420
|
+
return _.value.frm_id = i.formID, _.value.varProfileDetails = (C = (v = l.value) == null ? void 0 : v.filter((y) => u.value.includes(y.id))) != null ? C : [], !1;
|
11415
11421
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
11416
11422
|
row: _
|
11417
11423
|
}) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((v) => {
|
@@ -11434,10 +11440,10 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11434
11440
|
varProfileDetails: ({
|
11435
11441
|
varName: _,
|
11436
11442
|
props: v,
|
11437
|
-
model:
|
11443
|
+
model: C,
|
11438
11444
|
varConfig: y,
|
11439
|
-
varProfileDetail:
|
11440
|
-
varSubmitField:
|
11445
|
+
varProfileDetail: E,
|
11446
|
+
varSubmitField: A
|
11441
11447
|
}) => createVNode(Transfer, {
|
11442
11448
|
dataSource: l.value,
|
11443
11449
|
targetKeys: u.value,
|
@@ -11455,9 +11461,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11455
11461
|
direction: P,
|
11456
11462
|
filteredItems: T,
|
11457
11463
|
selectedKeys: B,
|
11458
|
-
disabled:
|
11459
|
-
onItemSelectAll:
|
11460
|
-
onItemSelect:
|
11464
|
+
disabled: N,
|
11465
|
+
onItemSelectAll: k,
|
11466
|
+
onItemSelect: I
|
11461
11467
|
}) => createVNode(Table, {
|
11462
11468
|
pagination: !1,
|
11463
11469
|
class: "kg-flex-table",
|
@@ -11469,14 +11475,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11469
11475
|
columns: P === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11470
11476
|
rowKey: "id",
|
11471
11477
|
dataSource: T,
|
11472
|
-
customRow: (
|
11473
|
-
onClick: (
|
11478
|
+
customRow: (w) => ({
|
11479
|
+
onClick: (L) => b(L, w, P, B)
|
11474
11480
|
}),
|
11475
11481
|
rowSelection: d({
|
11476
|
-
disabled:
|
11482
|
+
disabled: N,
|
11477
11483
|
selectedKeys: B,
|
11478
|
-
onItemSelectAll:
|
11479
|
-
onItemSelect:
|
11484
|
+
onItemSelectAll: k,
|
11485
|
+
onItemSelect: I
|
11480
11486
|
})
|
11481
11487
|
}, null)
|
11482
11488
|
})
|
@@ -11489,22 +11495,22 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11489
11495
|
const d = ({
|
11490
11496
|
disabled: _,
|
11491
11497
|
selectedKeys: v,
|
11492
|
-
onItemSelectAll:
|
11498
|
+
onItemSelectAll: C,
|
11493
11499
|
onItemSelect: y
|
11494
11500
|
}) => ({
|
11495
|
-
getCheckboxProps: (
|
11496
|
-
disabled: _ ||
|
11501
|
+
getCheckboxProps: (E) => ({
|
11502
|
+
disabled: _ || E.disabled
|
11497
11503
|
}),
|
11498
|
-
onSelectAll(
|
11499
|
-
const P =
|
11504
|
+
onSelectAll(E, A) {
|
11505
|
+
const P = A.filter((T) => !T.disabled).map(({
|
11500
11506
|
key: T
|
11501
11507
|
}) => T);
|
11502
|
-
|
11508
|
+
C(P, E);
|
11503
11509
|
},
|
11504
11510
|
onSelect({
|
11505
|
-
key:
|
11506
|
-
},
|
11507
|
-
y(
|
11511
|
+
key: E
|
11512
|
+
}, A) {
|
11513
|
+
y(E, A);
|
11508
11514
|
},
|
11509
11515
|
selectedRowKeys: v,
|
11510
11516
|
columnWidth: 32
|
@@ -11512,17 +11518,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11512
11518
|
async function m({
|
11513
11519
|
isCreating: _,
|
11514
11520
|
isUpdating: v,
|
11515
|
-
isCopying:
|
11521
|
+
isCopying: C,
|
11516
11522
|
row: y
|
11517
11523
|
}) {
|
11518
|
-
var
|
11519
|
-
const
|
11520
|
-
switch (l.value =
|
11524
|
+
var A, P;
|
11525
|
+
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11526
|
+
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11521
11527
|
case _:
|
11522
11528
|
u.value = [];
|
11523
11529
|
break;
|
11524
11530
|
case v:
|
11525
|
-
case
|
11531
|
+
case C:
|
11526
11532
|
if (y != null && y.id)
|
11527
11533
|
try {
|
11528
11534
|
s.store.setIsLoading(n.formID, !0);
|
@@ -11531,17 +11537,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11531
11537
|
id: y.id
|
11532
11538
|
}
|
11533
11539
|
});
|
11534
|
-
l.value = l.value.map((
|
11535
|
-
var
|
11536
|
-
const
|
11537
|
-
return
|
11538
|
-
...
|
11539
|
-
...
|
11540
|
-
id:
|
11541
|
-
} :
|
11540
|
+
l.value = l.value.map((N) => {
|
11541
|
+
var I;
|
11542
|
+
const k = (I = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : I.find((w) => w.var_nam === N.var_nam);
|
11543
|
+
return k ? {
|
11544
|
+
...N,
|
11545
|
+
...k,
|
11546
|
+
id: N.id
|
11547
|
+
} : N;
|
11542
11548
|
});
|
11543
|
-
const B = (P = (
|
11544
|
-
u.value = l.value.filter((
|
11549
|
+
const B = (P = (A = T == null ? void 0 : T.varProfileDetails) == null ? void 0 : A.map((N) => N.var_nam)) != null ? P : [];
|
11550
|
+
u.value = l.value.filter((N) => B.includes(N.var_nam)).map((N) => N.id);
|
11545
11551
|
} catch (T) {
|
11546
11552
|
throw T;
|
11547
11553
|
} finally {
|
@@ -11555,22 +11561,22 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11555
11561
|
}
|
11556
11562
|
async function p() {
|
11557
11563
|
const _ = watch(a.isReady, async (v) => {
|
11558
|
-
var
|
11564
|
+
var C, y;
|
11559
11565
|
v && a.model.value && (setTimeout(() => _(), 0), a.store.patchModel(n.formID, {
|
11560
11566
|
frm_id: e.hostFormID
|
11561
|
-
}), (y = (
|
11567
|
+
}), (y = (C = a.search).value) == null || y.call(C));
|
11562
11568
|
}, {
|
11563
11569
|
immediate: !0
|
11564
11570
|
});
|
11565
11571
|
}
|
11566
|
-
function b(_, v,
|
11572
|
+
function b(_, v, C, y) {
|
11567
11573
|
if (!DomUtil.isNotClickable(_.target, ["ant-input"]))
|
11568
11574
|
switch (y.length = 0, _.detail) {
|
11569
11575
|
case 1:
|
11570
11576
|
y[0] = v.id;
|
11571
11577
|
break;
|
11572
11578
|
case 2:
|
11573
|
-
switch (
|
11579
|
+
switch (C) {
|
11574
11580
|
case "left":
|
11575
11581
|
u.value.push(v.id);
|
11576
11582
|
break;
|
@@ -11681,24 +11687,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11681
11687
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
11682
11688
|
_useLayoutHeaderResizeObserver();
|
11683
11689
|
const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
|
11684
|
-
var
|
11685
|
-
return o.value > 0 ? !1 : ((
|
11690
|
+
var V;
|
11691
|
+
return o.value > 0 ? !1 : ((V = s.value) == null ? void 0 : V.header_teleport_flg) !== 0;
|
11686
11692
|
}), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), d = computed(() => {
|
11687
|
-
var
|
11688
|
-
return !!(a.isRetrieving.value || ((
|
11693
|
+
var V, U;
|
11694
|
+
return !!(a.isRetrieving.value || ((V = E.value) == null ? void 0 : V.permission_type) === 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code));
|
11689
11695
|
}), m = computed(() => !!a.isRetrieving.value), p = computed(() => !!a.isRetrieving.value), b = ref(null), _ = ref({
|
11690
11696
|
kgHeight: c.value
|
11691
11697
|
}), v = ref({
|
11692
11698
|
visible: !1
|
11693
11699
|
});
|
11694
|
-
let
|
11695
|
-
const y = computed(() => _.value.kgHeight === c.value),
|
11696
|
-
var
|
11697
|
-
if (r.t((
|
11698
|
-
return r.t((
|
11700
|
+
let C;
|
11701
|
+
const y = computed(() => _.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), A = computed(() => {
|
11702
|
+
var V, U, H;
|
11703
|
+
if (r.t((V = E.value) == null ? void 0 : V.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
|
11704
|
+
return r.t((H = E.value) == null ? void 0 : H.var_nam).value;
|
11699
11705
|
}), P = computed(() => {
|
11700
|
-
var
|
11701
|
-
switch ((
|
11706
|
+
var V;
|
11707
|
+
switch ((V = E.value) == null ? void 0 : V.primary_flg) {
|
11702
11708
|
case 1:
|
11703
11709
|
return !0;
|
11704
11710
|
case 0:
|
@@ -11707,19 +11713,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11707
11713
|
return !0;
|
11708
11714
|
}
|
11709
11715
|
}), T = computed(() => {
|
11710
|
-
var
|
11711
|
-
return ((
|
11712
|
-
}), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)),
|
11713
|
-
let
|
11714
|
-
return T.value && (
|
11715
|
-
});
|
11716
|
-
watch(r.currentVarProfileDetails, (
|
11717
|
-
if (
|
11716
|
+
var V;
|
11717
|
+
return ((V = s.value) == null ? void 0 : V.vis_flg) === 1;
|
11718
|
+
}), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), N = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), k = computed(() => {
|
11719
|
+
let V = "kg-search";
|
11720
|
+
return T.value && (V += " kg-search--visible"), i.value && (V += " kg-search--teleport"), V;
|
11721
|
+
});
|
11722
|
+
watch(r.currentVarProfileDetails, (V) => {
|
11723
|
+
if (V) {
|
11718
11724
|
const U = {};
|
11719
|
-
|
11720
|
-
U[
|
11721
|
-
}), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (
|
11722
|
-
|
11725
|
+
V.forEach((H) => {
|
11726
|
+
U[H.var_nam] = "";
|
11727
|
+
}), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (H) => {
|
11728
|
+
H && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
11723
11729
|
}, {
|
11724
11730
|
immediate: !0
|
11725
11731
|
})) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
@@ -11729,23 +11735,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11729
11735
|
}), onUnmounted(() => {
|
11730
11736
|
n.store.dispose(r.formID);
|
11731
11737
|
});
|
11732
|
-
function
|
11738
|
+
function I(V = !1) {
|
11733
11739
|
T.value ? b.value && b.value.validate().then(() => {
|
11734
11740
|
n.store.emit(r.formID, "search", {
|
11735
|
-
resetPageIndex:
|
11741
|
+
resetPageIndex: V
|
11736
11742
|
});
|
11737
11743
|
}).catch((U) => {
|
11738
11744
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11739
11745
|
e: U
|
11740
11746
|
});
|
11741
11747
|
}) : n.store.emit(r.formID, "search", {
|
11742
|
-
resetPageIndex:
|
11748
|
+
resetPageIndex: V
|
11743
11749
|
});
|
11744
11750
|
}
|
11745
|
-
n.store.setSearchFn(r.formID,
|
11746
|
-
function
|
11747
|
-
var
|
11748
|
-
(
|
11751
|
+
n.store.setSearchFn(r.formID, I);
|
11752
|
+
function w() {
|
11753
|
+
var V;
|
11754
|
+
(V = b.value) == null || V.resetFields(), T.value ? b.value && b.value.validate().then(() => {
|
11749
11755
|
n.store.emit(r.formID, "reset");
|
11750
11756
|
}).catch((U) => {
|
11751
11757
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -11753,31 +11759,31 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11753
11759
|
});
|
11754
11760
|
}) : n.store.emit(r.formID, "reset");
|
11755
11761
|
}
|
11756
|
-
n.store.setResetFn(r.formID,
|
11757
|
-
function
|
11758
|
-
return
|
11762
|
+
n.store.setResetFn(r.formID, w);
|
11763
|
+
function L() {
|
11764
|
+
return I(!0), Promise.resolve(!0);
|
11759
11765
|
}
|
11760
|
-
function
|
11766
|
+
function $() {
|
11761
11767
|
return createVNode("div", {
|
11762
11768
|
class: "title",
|
11763
11769
|
onClick: G
|
11764
11770
|
}, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
11765
11771
|
}
|
11766
|
-
function
|
11767
|
-
var
|
11768
|
-
return ((
|
11769
|
-
value: (
|
11770
|
-
"onUpdate:value": (
|
11772
|
+
function M() {
|
11773
|
+
var V, U, H, Q;
|
11774
|
+
return ((H = (U = (V = r.varProfileMasters) == null ? void 0 : V.value) == null ? void 0 : U.length) != null ? H : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
11775
|
+
value: (Q = r.currentVarProfileMasterID.value) != null ? Q : void 0,
|
11776
|
+
"onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
|
11771
11777
|
disabled: m.value,
|
11772
11778
|
onChange: R,
|
11773
11779
|
class: "kg-search-profile-master-select"
|
11774
11780
|
}, {
|
11775
11781
|
default: () => {
|
11776
|
-
var
|
11777
|
-
return (
|
11778
|
-
value:
|
11782
|
+
var J, D;
|
11783
|
+
return (D = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : D.map((x) => createVNode(Select.Option, {
|
11784
|
+
value: x.id
|
11779
11785
|
}, {
|
11780
|
-
default: () => [r.t(
|
11786
|
+
default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
|
11781
11787
|
}));
|
11782
11788
|
},
|
11783
11789
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -11791,51 +11797,48 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11791
11797
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
11792
11798
|
}), createVNode(KgSearchConfigModal, {
|
11793
11799
|
visible: v.value.visible,
|
11794
|
-
"onUpdate:visible": (
|
11800
|
+
"onUpdate:visible": (J) => v.value.visible = J,
|
11795
11801
|
hostFormID: r.formID
|
11796
11802
|
}, null)]);
|
11797
11803
|
}
|
11798
|
-
function
|
11799
|
-
var
|
11800
|
-
return createVNode(Fragment, null, [
|
11804
|
+
function O() {
|
11805
|
+
var V, U, H, Q, J;
|
11806
|
+
return createVNode(Fragment, null, [M(), !(((V = E.value) == null ? void 0 : V.permission_type) !== 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
|
11801
11807
|
type: "primary",
|
11802
11808
|
ghost: !d.value,
|
11803
11809
|
disabled: d.value,
|
11804
|
-
onClick:
|
11810
|
+
onClick: w,
|
11805
11811
|
class: "kg-search-btn-reset"
|
11806
11812
|
}, {
|
11807
11813
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
11808
11814
|
}), createVNode(KgButton.Item, {
|
11809
11815
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
11810
|
-
kgVarName: (
|
11811
|
-
kgIcon: (
|
11812
|
-
kgText:
|
11813
|
-
kgColor: (
|
11816
|
+
kgVarName: (H = E.value) == null ? void 0 : H.var_nam,
|
11817
|
+
kgIcon: (Q = E.value) == null ? void 0 : Q.icon,
|
11818
|
+
kgText: A.value,
|
11819
|
+
kgColor: (J = E.value) == null ? void 0 : J.color,
|
11814
11820
|
kgPrimary: P.value,
|
11815
11821
|
kgLoading: p.value,
|
11816
|
-
onKgClick:
|
11817
|
-
class: "kg-search-btn-search",
|
11818
|
-
"kg-var-btn-id": (re = C.value) == null ? void 0 : re.id,
|
11819
|
-
"kg-var-nam": (J = C.value) == null ? void 0 : J.var_nam
|
11822
|
+
onKgClick: L
|
11820
11823
|
}, null)]);
|
11821
11824
|
}
|
11822
11825
|
function F() {
|
11823
11826
|
return createVNode(Spin, {
|
11824
|
-
spinning:
|
11827
|
+
spinning: N.value
|
11825
11828
|
}, {
|
11826
11829
|
default: () => {
|
11827
|
-
var
|
11830
|
+
var V;
|
11828
11831
|
return [createVNode(KgForm, {
|
11829
11832
|
ref: b,
|
11830
|
-
model: (
|
11833
|
+
model: (V = n.model.value) != null ? V : {}
|
11831
11834
|
}, {
|
11832
11835
|
default: () => [createVNode(Row, null, {
|
11833
11836
|
default: () => {
|
11834
11837
|
var U;
|
11835
|
-
return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((
|
11836
|
-
kgVarName:
|
11838
|
+
return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((H) => createVNode(KgForm.Item, {
|
11839
|
+
kgVarName: H.var_nam,
|
11837
11840
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
11838
|
-
onKgSubmit: () =>
|
11841
|
+
onKgSubmit: () => I(!0)
|
11839
11842
|
}, null))];
|
11840
11843
|
}
|
11841
11844
|
})]
|
@@ -11843,17 +11846,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11843
11846
|
}
|
11844
11847
|
});
|
11845
11848
|
}
|
11846
|
-
function R(
|
11847
|
-
console.log("333:value",
|
11849
|
+
function R(V) {
|
11850
|
+
console.log("333:value", V);
|
11848
11851
|
}
|
11849
11852
|
function G() {
|
11850
11853
|
y.value ? _.value.kgHeight = l.value : _.value.kgHeight = c.value;
|
11851
11854
|
}
|
11852
11855
|
return () => createVNode(KgResizable, {
|
11853
|
-
class:
|
11856
|
+
class: k.value,
|
11854
11857
|
"kg-frm-id": r.formID,
|
11855
11858
|
kgHeight: _.value.kgHeight,
|
11856
|
-
"onUpdate:kgHeight": (
|
11859
|
+
"onUpdate:kgHeight": (V) => _.value.kgHeight = V,
|
11857
11860
|
kgMinHeight: c.value,
|
11858
11861
|
kgMaxHeight: u.value
|
11859
11862
|
}, {
|
@@ -11870,9 +11873,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11870
11873
|
}, [createVNode(Spin, {
|
11871
11874
|
spinning: B.value
|
11872
11875
|
}, {
|
11873
|
-
default: () => [
|
11876
|
+
default: () => [$(), createVNode("div", {
|
11874
11877
|
class: "ant-collapse-extra"
|
11875
|
-
}, [
|
11878
|
+
}, [O()])]
|
11876
11879
|
})])]
|
11877
11880
|
}), createVNode("div", {
|
11878
11881
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -11943,27 +11946,27 @@ function useMagicKeys(e = {}) {
|
|
11943
11946
|
d(_, !1);
|
11944
11947
|
}
|
11945
11948
|
function p(_, v) {
|
11946
|
-
var
|
11947
|
-
const
|
11948
|
-
|
11949
|
+
var C, y;
|
11950
|
+
const E = (C = _.key) == null ? void 0 : C.toLowerCase(), A = (y = _.code) == null ? void 0 : y.toLowerCase(), P = [A, E].filter(Boolean);
|
11951
|
+
A && (v ? s.add(_.code) : s.delete(_.code));
|
11949
11952
|
for (const T of P)
|
11950
11953
|
c.add(T), d(T, v);
|
11951
|
-
|
11954
|
+
E === "meta" && !v ? (u.forEach((T) => {
|
11952
11955
|
s.delete(T), d(T, !1);
|
11953
11956
|
}), u.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && v && [...s, ...P].forEach((T) => u.add(T));
|
11954
11957
|
}
|
11955
11958
|
r && (useEventListener(r, "keydown", (_) => (p(_, !0), o(_)), { passive: a }), useEventListener(r, "keyup", (_) => (p(_, !1), o(_)), { passive: a }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
11956
11959
|
const b = new Proxy(l, {
|
11957
|
-
get(_, v,
|
11960
|
+
get(_, v, C) {
|
11958
11961
|
if (typeof v != "string")
|
11959
|
-
return Reflect.get(_, v,
|
11962
|
+
return Reflect.get(_, v, C);
|
11960
11963
|
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
11961
11964
|
if (/[+_-]/.test(v)) {
|
11962
|
-
const
|
11963
|
-
l[v] = computed(() =>
|
11965
|
+
const E = v.split(/[+_-]/g).map((A) => A.trim());
|
11966
|
+
l[v] = computed(() => E.every((A) => unref(b[A])));
|
11964
11967
|
} else
|
11965
11968
|
l[v] = ref(!1);
|
11966
|
-
const y = Reflect.get(_, v,
|
11969
|
+
const y = Reflect.get(_, v, C);
|
11967
11970
|
return t ? unref(y) : y;
|
11968
11971
|
}
|
11969
11972
|
});
|
@@ -12349,23 +12352,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12349
12352
|
columnWidth: 32,
|
12350
12353
|
hideSelectAll: !0,
|
12351
12354
|
selectedRowKeys: d,
|
12352
|
-
onSelect: (
|
12355
|
+
onSelect: (L) => B(L)
|
12353
12356
|
}), p = ref({
|
12354
12357
|
visible: !1
|
12355
12358
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
12356
|
-
var
|
12357
|
-
return !!c.value || ((
|
12358
|
-
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))),
|
12359
|
-
watch(() => n.getSelectedVar, (
|
12360
|
-
|
12359
|
+
var L;
|
12360
|
+
return !!c.value || ((L = n.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12361
|
+
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12362
|
+
watch(() => n.getSelectedVar, (L) => {
|
12363
|
+
L ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12361
12364
|
}, {
|
12362
12365
|
immediate: !0
|
12363
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12364
|
-
var
|
12365
|
-
l.value.var_text = (
|
12366
|
+
}), watch(() => n.getSelectedVarCatalog, async (L) => {
|
12367
|
+
var $, M;
|
12368
|
+
l.value.var_text = ($ = L == null ? void 0 : L.var_text) != null ? $ : "", (M = i.value) == null || M.clearValidate();
|
12366
12369
|
});
|
12367
|
-
async function y(
|
12368
|
-
var
|
12370
|
+
async function y(L = !1) {
|
12371
|
+
var $, M, O;
|
12369
12372
|
a.value = !0;
|
12370
12373
|
try {
|
12371
12374
|
const {
|
@@ -12375,86 +12378,86 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12375
12378
|
pageNo: 1,
|
12376
12379
|
pageSize: 999,
|
12377
12380
|
frm_id: e == null ? void 0 : e.value,
|
12378
|
-
var_nam: (
|
12381
|
+
var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
|
12379
12382
|
column: "frm_id,locale_id,cust_lvl",
|
12380
12383
|
order: "asc"
|
12381
12384
|
}
|
12382
12385
|
});
|
12383
|
-
if (c.value = null, u.value = F != null ? F : [],
|
12386
|
+
if (c.value = null, u.value = F != null ? F : [], L) {
|
12384
12387
|
const R = u.value.find((G) => {
|
12385
|
-
var
|
12386
|
-
return G.id === ((
|
12388
|
+
var V;
|
12389
|
+
return G.id === ((V = n.getSelectedVarCatalog) == null ? void 0 : V.id);
|
12387
12390
|
});
|
12388
12391
|
n.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
|
12389
12392
|
} else
|
12390
|
-
n.setSelectedVarCatalog((
|
12393
|
+
n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), d.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
|
12391
12394
|
} catch (F) {
|
12392
12395
|
Logger.debug(F == null ? void 0 : F.message);
|
12393
12396
|
} finally {
|
12394
12397
|
a.value = !1;
|
12395
12398
|
}
|
12396
12399
|
}
|
12397
|
-
async function
|
12398
|
-
var
|
12400
|
+
async function E() {
|
12401
|
+
var L, $, M;
|
12399
12402
|
try {
|
12400
|
-
o.value = !0, await ((
|
12401
|
-
const
|
12402
|
-
...(
|
12403
|
-
var_text: (
|
12403
|
+
o.value = !0, await ((L = i.value) == null ? void 0 : L.validate());
|
12404
|
+
const O = new VarCatalog({
|
12405
|
+
...($ = n.getSelectedVarCatalog) != null ? $ : {},
|
12406
|
+
var_text: (M = l.value) == null ? void 0 : M.var_text
|
12404
12407
|
});
|
12405
|
-
|
12406
|
-
data:
|
12408
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add$1({
|
12409
|
+
data: O
|
12407
12410
|
}, {
|
12408
12411
|
successMessageMode: "none"
|
12409
12412
|
}), message.success({
|
12410
12413
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12411
12414
|
}), await y()) : (await Edit$1({
|
12412
|
-
data:
|
12415
|
+
data: O
|
12413
12416
|
}, {
|
12414
12417
|
successMessageMode: "none"
|
12415
12418
|
}), message.success({
|
12416
12419
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12417
12420
|
}), await y(!0)) : (await Add$1({
|
12418
|
-
data:
|
12421
|
+
data: O
|
12419
12422
|
}, {
|
12420
12423
|
successMessageMode: "none"
|
12421
12424
|
}), message.success({
|
12422
12425
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12423
12426
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
12424
|
-
} catch (
|
12425
|
-
KgUtil.throwIfNotFormError(
|
12427
|
+
} catch (O) {
|
12428
|
+
KgUtil.throwIfNotFormError(O);
|
12426
12429
|
} finally {
|
12427
12430
|
o.value = !1;
|
12428
12431
|
}
|
12429
12432
|
}
|
12430
|
-
function
|
12431
|
-
isAllForm:
|
12432
|
-
isAllLanguage:
|
12433
|
+
function A({
|
12434
|
+
isAllForm: L,
|
12435
|
+
isAllLanguage: $
|
12433
12436
|
}) {
|
12434
|
-
var
|
12437
|
+
var M, O, F;
|
12435
12438
|
c.value = new VarCatalog({
|
12436
12439
|
id: "",
|
12437
12440
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12438
|
-
grp_nam: (
|
12439
|
-
var_nam: (
|
12440
|
-
frm_id:
|
12441
|
-
locale_id:
|
12441
|
+
grp_nam: (M = n.getSelectedVar) == null ? void 0 : M.grp_nam,
|
12442
|
+
var_nam: (O = n.getSelectedVar) == null ? void 0 : O.var_nam,
|
12443
|
+
frm_id: L || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12444
|
+
locale_id: $ ? "ALL" : (F = t.locale) == null ? void 0 : F.value,
|
12442
12445
|
var_text: ""
|
12443
12446
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), d.value = [""];
|
12444
12447
|
}
|
12445
12448
|
function P() {
|
12446
|
-
var
|
12449
|
+
var $;
|
12447
12450
|
u.value = without$1(u.value, c.value), c.value = null;
|
12448
|
-
const
|
12449
|
-
n.setSelectedVarCatalog(
|
12451
|
+
const L = ($ = u.value[0]) != null ? $ : null;
|
12452
|
+
n.setSelectedVarCatalog(L), d.value = L ? [L.id] : [];
|
12450
12453
|
}
|
12451
12454
|
function T() {
|
12452
12455
|
KgUtil.confirm({
|
12453
12456
|
onOk: async () => {
|
12454
|
-
var
|
12457
|
+
var L;
|
12455
12458
|
await Delete$1({
|
12456
12459
|
params: {
|
12457
|
-
id: (
|
12460
|
+
id: (L = n.getSelectedVarCatalog) == null ? void 0 : L.id
|
12458
12461
|
}
|
12459
12462
|
}, {
|
12460
12463
|
successMessageMode: "none",
|
@@ -12465,23 +12468,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12465
12468
|
}
|
12466
12469
|
});
|
12467
12470
|
}
|
12468
|
-
function B(
|
12469
|
-
var
|
12470
|
-
((
|
12471
|
+
function B(L) {
|
12472
|
+
var $;
|
12473
|
+
(($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== L.id && (unref(c) ? KgUtil.confirm({
|
12471
12474
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12472
12475
|
onOk: () => {
|
12473
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12476
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(L)), d.value = [L.id];
|
12474
12477
|
}
|
12475
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12478
|
+
}) : (n.setSelectedVarCatalog(unref(L)), d.value = [L.id]));
|
12476
12479
|
}
|
12477
|
-
function
|
12480
|
+
function N() {
|
12478
12481
|
p.value.visible = !0;
|
12479
12482
|
}
|
12480
|
-
function
|
12483
|
+
function k() {
|
12481
12484
|
return createVNode("div", {
|
12482
12485
|
class: "buttons"
|
12483
12486
|
}, [createVNode(Button, {
|
12484
|
-
onClick:
|
12487
|
+
onClick: N,
|
12485
12488
|
disabled: b.value,
|
12486
12489
|
type: "primary"
|
12487
12490
|
}, {
|
@@ -12496,14 +12499,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12496
12499
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12497
12500
|
})]);
|
12498
12501
|
}
|
12499
|
-
function
|
12500
|
-
let
|
12502
|
+
function I() {
|
12503
|
+
let L, $;
|
12501
12504
|
return createVNode("div", {
|
12502
12505
|
class: "form"
|
12503
12506
|
}, [createVNode(Form, {
|
12504
12507
|
ref: i,
|
12505
12508
|
model: l.value,
|
12506
|
-
onSubmit:
|
12509
|
+
onSubmit: E
|
12507
12510
|
}, {
|
12508
12511
|
default: () => [createVNode(Form.Item, {
|
12509
12512
|
name: "var_text",
|
@@ -12514,7 +12517,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12514
12517
|
}, {
|
12515
12518
|
default: () => [createVNode(Textarea, {
|
12516
12519
|
value: l.value.var_text,
|
12517
|
-
"onUpdate:value": (
|
12520
|
+
"onUpdate:value": (M) => l.value.var_text = M,
|
12518
12521
|
disabled: !n.getSelectedVarCatalog
|
12519
12522
|
}, null), createVNode("button", {
|
12520
12523
|
hidden: !0
|
@@ -12525,25 +12528,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12525
12528
|
}, [createVNode(Button, {
|
12526
12529
|
disabled: v.value,
|
12527
12530
|
onClick: P
|
12528
|
-
}, _isSlot(
|
12529
|
-
default: () => [
|
12531
|
+
}, _isSlot(L = t.t("common.cancelText")) ? L : {
|
12532
|
+
default: () => [L]
|
12530
12533
|
}), createVNode(Button, {
|
12531
12534
|
loading: o.value,
|
12532
|
-
disabled:
|
12533
|
-
onClick:
|
12535
|
+
disabled: C.value,
|
12536
|
+
onClick: E,
|
12534
12537
|
type: "primary"
|
12535
|
-
}, _isSlot(
|
12536
|
-
default: () => [
|
12538
|
+
}, _isSlot($ = t.t("common.save")) ? $ : {
|
12539
|
+
default: () => [$]
|
12537
12540
|
})])]);
|
12538
12541
|
}
|
12539
|
-
function
|
12540
|
-
var
|
12541
|
-
let
|
12542
|
-
return
|
12542
|
+
function w(L) {
|
12543
|
+
var M;
|
12544
|
+
let $ = "";
|
12545
|
+
return L.id || ($ += " ant-table-row-create"), L.id === ((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) && ($ += " ant-table-row-selected "), $;
|
12543
12546
|
}
|
12544
12547
|
return () => createVNode("div", {
|
12545
12548
|
class: "kg-var-config-modal-var-var-catalog"
|
12546
|
-
}, [
|
12549
|
+
}, [k(), createVNode(Table, {
|
12547
12550
|
pagination: !1,
|
12548
12551
|
class: "kg-flex-table",
|
12549
12552
|
size: "small",
|
@@ -12555,15 +12558,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12555
12558
|
rowKey: "id",
|
12556
12559
|
dataSource: u.value,
|
12557
12560
|
loading: a.value,
|
12558
|
-
rowClassName:
|
12561
|
+
rowClassName: w,
|
12559
12562
|
rowSelection: m.value,
|
12560
|
-
customRow: (
|
12561
|
-
onClick: () => B(
|
12563
|
+
customRow: (L) => ({
|
12564
|
+
onClick: () => B(L)
|
12562
12565
|
})
|
12563
|
-
}, null),
|
12566
|
+
}, null), I(), createVNode(KgVarConfigModalVarCreateModal, {
|
12564
12567
|
visible: p.value.visible,
|
12565
|
-
"onUpdate:visible": (
|
12566
|
-
onKgOk:
|
12568
|
+
"onUpdate:visible": (L) => p.value.visible = L,
|
12569
|
+
onKgOk: A
|
12567
12570
|
}, null)]);
|
12568
12571
|
}
|
12569
12572
|
}), columns = () => [{
|
@@ -12875,16 +12878,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12875
12878
|
emit: t
|
12876
12879
|
}) {
|
12877
12880
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
12878
|
-
let
|
12879
|
-
return (!m.value || e.kgInvisible) && (
|
12881
|
+
let A = "jeecg-layout-header-action__item kg-warehouse";
|
12882
|
+
return (!m.value || e.kgInvisible) && (A += " kg-warehouse--invisible"), A;
|
12880
12883
|
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
12881
12884
|
width: 80,
|
12882
12885
|
align: "center",
|
12883
12886
|
customRender: ({
|
12884
|
-
record:
|
12887
|
+
record: A
|
12885
12888
|
}) => {
|
12886
12889
|
var T;
|
12887
|
-
return
|
12890
|
+
return A.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
|
12888
12891
|
src: WAREHOUSE_1890ff
|
12889
12892
|
}, null) : createVNode("img", {
|
12890
12893
|
src: WAREHOUSE_000000
|
@@ -12892,27 +12895,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12892
12895
|
}
|
12893
12896
|
}, {
|
12894
12897
|
customRender: ({
|
12895
|
-
record:
|
12898
|
+
record: A
|
12896
12899
|
}) => {
|
12897
|
-
var T, B,
|
12898
|
-
const P =
|
12900
|
+
var T, B, N;
|
12901
|
+
const P = A;
|
12899
12902
|
return createVNode("div", null, [createVNode("div", null, [(T = P.whDsc) != null ? T : " ", createTextVNode(" - "), (B = P.whId) != null ? B : " "]), createVNode("div", {
|
12900
12903
|
class: "address"
|
12901
|
-
}, [(
|
12904
|
+
}, [(N = P.adrId) != null ? N : " "])]);
|
12902
12905
|
}
|
12903
12906
|
}]), c = ref([]), d = computed(() => {
|
12904
12907
|
var P;
|
12905
|
-
const
|
12908
|
+
const A = (P = o.value) == null ? void 0 : P.toUpperCase();
|
12906
12909
|
return c.value.filter((T) => {
|
12907
|
-
var B,
|
12908
|
-
return ((
|
12910
|
+
var B, N, k, I, w, L;
|
12911
|
+
return ((N = (B = T.whDsc) == null ? void 0 : B.toUpperCase()) == null ? void 0 : N.includes(A)) || ((I = (k = T.whId) == null ? void 0 : k.toUpperCase()) == null ? void 0 : I.includes(A)) || ((L = (w = T.adrId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : L.includes(A));
|
12909
12912
|
});
|
12910
12913
|
}), m = computed(() => {
|
12911
|
-
var
|
12912
|
-
return ((P = (
|
12914
|
+
var A, P;
|
12915
|
+
return ((P = (A = r.option.value) == null ? void 0 : A.KgWarehouse) == null ? void 0 : P.enable) !== !1;
|
12913
12916
|
});
|
12914
|
-
watch(n.visible, (
|
12915
|
-
!m.value || (
|
12917
|
+
watch(n.visible, (A) => {
|
12918
|
+
!m.value || (A ? b() : _());
|
12916
12919
|
}, {
|
12917
12920
|
immediate: !0
|
12918
12921
|
}), onMounted(() => {
|
@@ -12922,14 +12925,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12922
12925
|
!m.value || n.store.setVisible(!0);
|
12923
12926
|
}
|
12924
12927
|
function b() {
|
12925
|
-
i.value = n.warehouse.value,
|
12928
|
+
i.value = n.warehouse.value, C();
|
12926
12929
|
}
|
12927
12930
|
function _() {
|
12928
12931
|
o.value = "", c.value = [], i.value = null;
|
12929
12932
|
}
|
12930
12933
|
function v() {
|
12931
|
-
var
|
12932
|
-
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((
|
12934
|
+
var A;
|
12935
|
+
!i.value || (e.kgInvisible ? (n.store.setWarehouse(i.value), t("kgOk")) : i.value.id !== ((A = n.warehouse.value) == null ? void 0 : A.id) && (n.store.setWarehouse(i.value), KgUtil.confirm({
|
12933
12936
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
12934
12937
|
kgHideCancelButton: !0,
|
12935
12938
|
okButtonProps: {
|
@@ -12941,27 +12944,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12941
12944
|
}
|
12942
12945
|
})), n.store.setVisible(!1));
|
12943
12946
|
}
|
12944
|
-
async function
|
12947
|
+
async function C() {
|
12945
12948
|
l.value = !0;
|
12946
12949
|
try {
|
12947
12950
|
const {
|
12948
|
-
records:
|
12951
|
+
records: A
|
12949
12952
|
} = await ListVO({
|
12950
12953
|
params: {
|
12951
12954
|
pageNo: 1,
|
12952
12955
|
pageSize: 999
|
12953
12956
|
}
|
12954
12957
|
});
|
12955
|
-
c.value =
|
12956
|
-
} catch (
|
12957
|
-
console.error(
|
12958
|
+
c.value = A != null ? A : [];
|
12959
|
+
} catch (A) {
|
12960
|
+
console.error(A);
|
12958
12961
|
} finally {
|
12959
12962
|
l.value = !1;
|
12960
12963
|
}
|
12961
12964
|
}
|
12962
|
-
function y(
|
12965
|
+
function y(A, P) {
|
12963
12966
|
var T;
|
12964
|
-
switch (
|
12967
|
+
switch (A.detail) {
|
12965
12968
|
case 1:
|
12966
12969
|
((T = i.value) == null ? void 0 : T.id) === P.id ? i.value = null : i.value = P;
|
12967
12970
|
break;
|
@@ -12970,18 +12973,18 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12970
12973
|
break;
|
12971
12974
|
}
|
12972
12975
|
}
|
12973
|
-
function
|
12976
|
+
function E() {
|
12974
12977
|
return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
12975
12978
|
title: r.t("kg.KgWarehouse.warehouse"),
|
12976
12979
|
placement: "bottomRight"
|
12977
12980
|
}, {
|
12978
12981
|
default: () => {
|
12979
|
-
var
|
12980
|
-
return [((
|
12982
|
+
var A, P;
|
12983
|
+
return [((A = s.value) == null ? void 0 : A.whDsc) || ((P = s.value) == null ? void 0 : P.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
12981
12984
|
}
|
12982
12985
|
}), createVNode(KgModal, {
|
12983
12986
|
visible: n.visible.value,
|
12984
|
-
"onUpdate:visible": (
|
12987
|
+
"onUpdate:visible": (A) => n.store.setVisible(A),
|
12985
12988
|
title: r.t("kg.KgWarehouse.title"),
|
12986
12989
|
width: "500px",
|
12987
12990
|
kgFullHeight: !1,
|
@@ -12998,7 +13001,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12998
13001
|
}, {
|
12999
13002
|
default: () => [createVNode(Input, {
|
13000
13003
|
value: o.value,
|
13001
|
-
"onUpdate:value": (
|
13004
|
+
"onUpdate:value": (A) => o.value = A,
|
13002
13005
|
allowClear: !0,
|
13003
13006
|
disabled: l.value,
|
13004
13007
|
placeholder: r.t("kg.search")
|
@@ -13018,11 +13021,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13018
13021
|
dataSource: d.value,
|
13019
13022
|
columns: u,
|
13020
13023
|
class: "kg-flex-table",
|
13021
|
-
customRow: (
|
13024
|
+
customRow: (A) => {
|
13022
13025
|
var P;
|
13023
13026
|
return {
|
13024
|
-
class:
|
13025
|
-
onClick: (T) => y(T,
|
13027
|
+
class: A.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
|
13028
|
+
onClick: (T) => y(T, A)
|
13026
13029
|
};
|
13027
13030
|
}
|
13028
13031
|
}, null)]
|
@@ -13031,7 +13034,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13031
13034
|
return () => createVNode("div", {
|
13032
13035
|
class: a.value,
|
13033
13036
|
onClick: p
|
13034
|
-
}, [
|
13037
|
+
}, [E()]);
|
13035
13038
|
}
|
13036
13039
|
});
|
13037
13040
|
function createKgWarehouseGuard(e, t) {
|