@kengic/vue 0.5.16-beta.0 → 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/index.css +1 -1
- package/dist/kengic-vue.js +855 -850
- package/dist/src/components/KgVar/index.store.d.ts +2 -0
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2404,8 +2404,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2404
2404
|
v || (v = m == "constructor");
|
2405
2405
|
}
|
2406
2406
|
if (_ && !v) {
|
2407
|
-
var
|
2408
|
-
|
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);
|
2409
2409
|
}
|
2410
2410
|
return o.delete(e), o.delete(t), _;
|
2411
2411
|
}
|
@@ -3478,7 +3478,7 @@ var Icon$1 = function(t, r) {
|
|
3478
3478
|
var v = l ? {
|
3479
3479
|
msTransform: "rotate(".concat(l, "deg)"),
|
3480
3480
|
transform: "rotate(".concat(l, "deg)")
|
3481
|
-
} : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0],
|
3481
|
+
} : void 0, C = normalizeTwoToneColors(c), y = _slicedToArray(C, 2), E = y[0], A = y[1];
|
3482
3482
|
return createVNode("span", _objectSpread$i({
|
3483
3483
|
role: "img",
|
3484
3484
|
"aria-label": s.name
|
@@ -3489,7 +3489,7 @@ var Icon$1 = function(t, r) {
|
|
3489
3489
|
class: b,
|
3490
3490
|
icon: s,
|
3491
3491
|
primaryColor: E,
|
3492
|
-
secondaryColor:
|
3492
|
+
secondaryColor: A,
|
3493
3493
|
style: v
|
3494
3494
|
}, null)]);
|
3495
3495
|
};
|
@@ -4437,207 +4437,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4437
4437
|
(function(r, n) {
|
4438
4438
|
e.exports = n();
|
4439
4439
|
})(commonjsGlobal, function() {
|
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
|
4442
|
-
return "[" +
|
4443
|
-
} }, E = function(
|
4444
|
-
var
|
4445
|
-
return !
|
4446
|
-
},
|
4447
|
-
var
|
4448
|
-
return (
|
4449
|
-
}, m: function
|
4450
|
-
if (
|
4451
|
-
return
|
4452
|
-
var
|
4453
|
-
return +(-(
|
4454
|
-
}, a: function(
|
4455
|
-
return
|
4456
|
-
}, p: function(
|
4457
|
-
return { M: d, y: p, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: m }[
|
4458
|
-
}, u: function(
|
4459
|
-
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;
|
4460
4460
|
} }, P = "en", T = {};
|
4461
4461
|
T[P] = y;
|
4462
|
-
var B = function(
|
4463
|
-
return
|
4464
|
-
},
|
4462
|
+
var B = function($) {
|
4463
|
+
return $ instanceof w;
|
4464
|
+
}, N = function $(M, O, F) {
|
4465
4465
|
var R;
|
4466
|
-
if (
|
4466
|
+
if (!M)
|
4467
4467
|
return P;
|
4468
|
-
if (typeof
|
4469
|
-
var
|
4470
|
-
T[
|
4471
|
-
var
|
4472
|
-
if (!R &&
|
4473
|
-
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]);
|
4474
4474
|
} else {
|
4475
|
-
var U =
|
4476
|
-
T[U] =
|
4477
|
-
}
|
4478
|
-
return !
|
4479
|
-
},
|
4480
|
-
if (B(
|
4481
|
-
return
|
4482
|
-
var
|
4483
|
-
return
|
4484
|
-
},
|
4485
|
-
|
4486
|
-
return
|
4475
|
+
var U = M.name;
|
4476
|
+
T[U] = M, R = U;
|
4477
|
+
}
|
4478
|
+
return !F && R && (P = R), R || !F && P;
|
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 });
|
4487
4487
|
};
|
4488
|
-
var
|
4489
|
-
function
|
4490
|
-
this.$L =
|
4491
|
-
}
|
4492
|
-
var
|
4493
|
-
return
|
4494
|
-
this.$d = function(
|
4495
|
-
var R =
|
4488
|
+
var w = function() {
|
4489
|
+
function $(O) {
|
4490
|
+
this.$L = N(O.locale, null, !0), this.parse(O);
|
4491
|
+
}
|
4492
|
+
var M = $.prototype;
|
4493
|
+
return M.parse = function(O) {
|
4494
|
+
this.$d = function(F) {
|
4495
|
+
var R = F.date, G = F.utc;
|
4496
4496
|
if (R === null)
|
4497
4497
|
return new Date(NaN);
|
4498
|
-
if (
|
4498
|
+
if (I.u(R))
|
4499
4499
|
return new Date();
|
4500
4500
|
if (R instanceof Date)
|
4501
4501
|
return new Date(R);
|
4502
4502
|
if (typeof R == "string" && !/Z$/i.test(R)) {
|
4503
|
-
var
|
4504
|
-
if (
|
4505
|
-
var U =
|
4506
|
-
return
|
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);
|
4507
4507
|
}
|
4508
4508
|
}
|
4509
4509
|
return new Date(R);
|
4510
|
-
}(
|
4511
|
-
},
|
4512
|
-
var
|
4513
|
-
this.$y =
|
4514
|
-
},
|
4515
|
-
return
|
4516
|
-
},
|
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() {
|
4517
4517
|
return this.$d.toString() !== _;
|
4518
|
-
},
|
4519
|
-
var R = O
|
4520
|
-
return this.startOf(
|
4521
|
-
},
|
4522
|
-
return O
|
4523
|
-
},
|
4524
|
-
return this.endOf(
|
4525
|
-
},
|
4526
|
-
return
|
4527
|
-
},
|
4518
|
+
}, M.isSame = function(O, F) {
|
4519
|
+
var R = k(O);
|
4520
|
+
return this.startOf(F) <= R && R <= this.endOf(F);
|
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() {
|
4528
4528
|
return Math.floor(this.valueOf() / 1e3);
|
4529
|
-
},
|
4529
|
+
}, M.valueOf = function() {
|
4530
4530
|
return this.$d.getTime();
|
4531
|
-
},
|
4532
|
-
var R = this,
|
4533
|
-
var
|
4534
|
-
return
|
4535
|
-
},
|
4536
|
-
return
|
4537
|
-
},
|
4538
|
-
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) {
|
4539
4539
|
case p:
|
4540
|
-
return
|
4540
|
+
return G ? U(1, 0) : U(31, 11);
|
4541
4541
|
case d:
|
4542
|
-
return
|
4542
|
+
return G ? U(1, J) : U(0, J + 1);
|
4543
4543
|
case c:
|
4544
|
-
var
|
4545
|
-
return U(
|
4544
|
+
var X = this.$locale().weekStart || 0, q = (Q < X ? Q + 7 : Q) - X;
|
4545
|
+
return U(G ? D - q : D + (6 - q), J);
|
4546
4546
|
case u:
|
4547
4547
|
case b:
|
4548
|
-
return
|
4548
|
+
return H(x + "Hours", 0);
|
4549
4549
|
case l:
|
4550
|
-
return
|
4550
|
+
return H(x + "Minutes", 1);
|
4551
4551
|
case i:
|
4552
|
-
return
|
4552
|
+
return H(x + "Seconds", 2);
|
4553
4553
|
case s:
|
4554
|
-
return
|
4554
|
+
return H(x + "Milliseconds", 3);
|
4555
4555
|
default:
|
4556
4556
|
return this.clone();
|
4557
4557
|
}
|
4558
|
-
},
|
4559
|
-
return this.startOf(
|
4560
|
-
},
|
4561
|
-
var R,
|
4562
|
-
if (
|
4563
|
-
var
|
4564
|
-
|
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;
|
4562
|
+
if (G === d || G === p) {
|
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;
|
4565
4565
|
} else
|
4566
|
-
U && this.$d[U](
|
4566
|
+
U && this.$d[U](H);
|
4567
4567
|
return this.init(), this;
|
4568
|
-
},
|
4569
|
-
return this.clone().$set(
|
4570
|
-
},
|
4571
|
-
return this[
|
4572
|
-
},
|
4573
|
-
var R,
|
4574
|
-
|
4575
|
-
var
|
4576
|
-
var
|
4577
|
-
return
|
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) {
|
4573
|
+
var R, G = this;
|
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);
|
4578
4578
|
};
|
4579
|
-
if (
|
4580
|
-
return this.set(d, this.$M +
|
4581
|
-
if (
|
4582
|
-
return this.set(p, this.$y +
|
4583
|
-
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)
|
4584
4584
|
return U(1);
|
4585
|
-
if (
|
4585
|
+
if (V === c)
|
4586
4586
|
return U(7);
|
4587
|
-
var
|
4588
|
-
return
|
4589
|
-
},
|
4590
|
-
return this.add(-1 *
|
4591
|
-
},
|
4592
|
-
var
|
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) {
|
4592
|
+
var F = this, R = this.$locale();
|
4593
4593
|
if (!this.isValid())
|
4594
4594
|
return R.invalidDate || _;
|
4595
|
-
var
|
4596
|
-
return
|
4597
|
-
},
|
4598
|
-
return
|
4599
|
-
},
|
4600
|
-
var le =
|
4601
|
-
return
|
4602
|
-
},
|
4603
|
-
return
|
4604
|
-
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(":", "");
|
4605
4605
|
});
|
4606
|
-
},
|
4606
|
+
}, M.utcOffset = function() {
|
4607
4607
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4608
|
-
},
|
4609
|
-
var
|
4610
|
-
return
|
4611
|
-
},
|
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() {
|
4612
4612
|
return this.endOf(d).$D;
|
4613
|
-
},
|
4613
|
+
}, M.$locale = function() {
|
4614
4614
|
return T[this.$L];
|
4615
|
-
},
|
4616
|
-
if (!
|
4615
|
+
}, M.locale = function(O, F) {
|
4616
|
+
if (!O)
|
4617
4617
|
return this.$L;
|
4618
|
-
var R = this.clone(),
|
4619
|
-
return
|
4620
|
-
},
|
4621
|
-
return
|
4622
|
-
},
|
4618
|
+
var R = this.clone(), G = N(O, F, !0);
|
4619
|
+
return G && (R.$L = G), R;
|
4620
|
+
}, M.clone = function() {
|
4621
|
+
return I.w(this.$d, this);
|
4622
|
+
}, M.toDate = function() {
|
4623
4623
|
return new Date(this.valueOf());
|
4624
|
-
},
|
4624
|
+
}, M.toJSON = function() {
|
4625
4625
|
return this.isValid() ? this.toISOString() : null;
|
4626
|
-
},
|
4626
|
+
}, M.toISOString = function() {
|
4627
4627
|
return this.$d.toISOString();
|
4628
|
-
},
|
4628
|
+
}, M.toString = function() {
|
4629
4629
|
return this.$d.toUTCString();
|
4630
|
-
},
|
4631
|
-
}(),
|
4632
|
-
return
|
4633
|
-
|
4634
|
-
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]);
|
4635
4635
|
};
|
4636
|
-
}),
|
4637
|
-
return
|
4638
|
-
},
|
4639
|
-
return
|
4640
|
-
},
|
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;
|
4641
4641
|
});
|
4642
4642
|
})(dayjs_min);
|
4643
4643
|
const dayjs = dayjs_min.exports;
|
@@ -4682,25 +4682,25 @@ function filesize(e, {
|
|
4682
4682
|
roundingMethod: _ = ROUND,
|
4683
4683
|
precision: v = 0
|
4684
4684
|
} = {}) {
|
4685
|
-
let C = b, y = Number(e), E = [],
|
4685
|
+
let C = b, y = Number(e), E = [], A = 0, P = EMPTY;
|
4686
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);
|
4687
|
-
const T = n === 10 ? 1e3 : 1024, B = m === !0,
|
4687
|
+
const T = n === 10 ? 1e3 : 1024, B = m === !0, N = y < 0, k = Math[_];
|
4688
4688
|
if (typeof e != "bigint" && isNaN(e))
|
4689
4689
|
throw new TypeError(INVALID_NUMBER);
|
4690
|
-
if (typeof
|
4690
|
+
if (typeof k !== FUNCTION)
|
4691
4691
|
throw new TypeError(INVALID_ROUND);
|
4692
|
-
if (
|
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
4693
|
return C;
|
4694
4694
|
if (y === 0)
|
4695
4695
|
E[0] = 0, P = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4696
4696
|
else {
|
4697
|
-
|
4698
|
-
const
|
4699
|
-
E[0] =
|
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
4700
|
}
|
4701
|
-
if (
|
4702
|
-
const
|
4703
|
-
E[0] = `${
|
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
4704
|
}
|
4705
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
4706
|
value: E[0],
|
@@ -5333,32 +5333,32 @@ function sendQuery(e, t, r, n) {
|
|
5333
5333
|
T.status === "pending" && (T.status = "aborted");
|
5334
5334
|
}), m = [];
|
5335
5335
|
}
|
5336
|
-
function
|
5337
|
-
const
|
5338
|
-
switch (m = m.filter((
|
5336
|
+
function A(T, B, N) {
|
5337
|
+
const k = B !== "success";
|
5338
|
+
switch (m = m.filter((I) => I !== T), l) {
|
5339
5339
|
case "pending":
|
5340
5340
|
break;
|
5341
5341
|
case "failed":
|
5342
|
-
if (
|
5342
|
+
if (k || !e.dataAfterTimeout)
|
5343
5343
|
return;
|
5344
5344
|
break;
|
5345
5345
|
default:
|
5346
5346
|
return;
|
5347
5347
|
}
|
5348
5348
|
if (B === "abort") {
|
5349
|
-
c =
|
5349
|
+
c = N, y();
|
5350
5350
|
return;
|
5351
5351
|
}
|
5352
|
-
if (
|
5353
|
-
c =
|
5352
|
+
if (k) {
|
5353
|
+
c = N, m.length || (s.length ? P() : y());
|
5354
5354
|
return;
|
5355
5355
|
}
|
5356
5356
|
if (b(), E(), !e.random) {
|
5357
|
-
const
|
5358
|
-
|
5357
|
+
const I = e.resources.indexOf(T.resource);
|
5358
|
+
I !== -1 && I !== e.index && (e.index = I);
|
5359
5359
|
}
|
5360
|
-
l = "completed", p.forEach((
|
5361
|
-
|
5360
|
+
l = "completed", p.forEach((I) => {
|
5361
|
+
I(N);
|
5362
5362
|
});
|
5363
5363
|
}
|
5364
5364
|
function P() {
|
@@ -5379,8 +5379,8 @@ function sendQuery(e, t, r, n) {
|
|
5379
5379
|
const B = {
|
5380
5380
|
status: "pending",
|
5381
5381
|
resource: T,
|
5382
|
-
callback: (
|
5383
|
-
|
5382
|
+
callback: (N, k) => {
|
5383
|
+
A(B, N, k);
|
5384
5384
|
}
|
5385
5385
|
};
|
5386
5386
|
m.push(B), u++, d = setTimeout(P, e.rotate), r(T, t, B.callback);
|
@@ -5997,27 +5997,27 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
5997
5997
|
const l = {
|
5998
5998
|
deep: !0
|
5999
5999
|
};
|
6000
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6001
|
-
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."));
|
6002
6002
|
});
|
6003
6003
|
let u, c, d = markRaw([]), m = markRaw([]), p;
|
6004
6004
|
const b = n.state.value[e];
|
6005
6005
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6006
6006
|
const _ = ref({});
|
6007
|
-
function v(
|
6008
|
-
let
|
6009
|
-
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 = {
|
6010
6010
|
type: MutationType.patchFunction,
|
6011
6011
|
storeId: e,
|
6012
6012
|
events: p
|
6013
|
-
}) : (mergeReactiveObjects(n.state.value[e],
|
6013
|
+
}) : (mergeReactiveObjects(n.state.value[e], N), k = {
|
6014
6014
|
type: MutationType.patchObject,
|
6015
|
-
payload:
|
6015
|
+
payload: N,
|
6016
6016
|
storeId: e,
|
6017
6017
|
events: p
|
6018
6018
|
}), nextTick().then(() => {
|
6019
6019
|
u = !0;
|
6020
|
-
}), c = !0, triggerSubscriptions(d,
|
6020
|
+
}), c = !0, triggerSubscriptions(d, k, n.state.value[e]);
|
6021
6021
|
}
|
6022
6022
|
const C = process.env.NODE_ENV !== "production" ? () => {
|
6023
6023
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6025,33 +6025,33 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6025
6025
|
function y() {
|
6026
6026
|
o.stop(), d = [], m = [], n._s.delete(e);
|
6027
6027
|
}
|
6028
|
-
function E(
|
6028
|
+
function E(N, k) {
|
6029
6029
|
return function() {
|
6030
6030
|
setActivePinia(n);
|
6031
|
-
const
|
6032
|
-
function
|
6033
|
-
|
6031
|
+
const I = Array.from(arguments), w = [], L = [];
|
6032
|
+
function $(F) {
|
6033
|
+
w.push(F);
|
6034
6034
|
}
|
6035
|
-
function
|
6036
|
-
|
6035
|
+
function M(F) {
|
6036
|
+
L.push(F);
|
6037
6037
|
}
|
6038
6038
|
triggerSubscriptions(m, {
|
6039
|
-
args:
|
6040
|
-
name:
|
6039
|
+
args: I,
|
6040
|
+
name: N,
|
6041
6041
|
store: T,
|
6042
|
-
after:
|
6043
|
-
onError:
|
6042
|
+
after: $,
|
6043
|
+
onError: M
|
6044
6044
|
});
|
6045
|
-
let
|
6045
|
+
let O;
|
6046
6046
|
try {
|
6047
|
-
|
6048
|
-
} catch (
|
6049
|
-
throw triggerSubscriptions(
|
6047
|
+
O = k.apply(this && this.$id === e ? this : T, I);
|
6048
|
+
} catch (F) {
|
6049
|
+
throw triggerSubscriptions(L, F), F;
|
6050
6050
|
}
|
6051
|
-
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);
|
6052
6052
|
};
|
6053
6053
|
}
|
6054
|
-
const
|
6054
|
+
const A = /* @__PURE__ */ markRaw({
|
6055
6055
|
actions: {},
|
6056
6056
|
getters: {},
|
6057
6057
|
state: [],
|
@@ -6062,95 +6062,95 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6062
6062
|
$onAction: addSubscription.bind(null, m),
|
6063
6063
|
$patch: v,
|
6064
6064
|
$reset: C,
|
6065
|
-
$subscribe(
|
6066
|
-
const
|
6067
|
-
(
|
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({
|
6068
6068
|
storeId: e,
|
6069
6069
|
type: MutationType.direct,
|
6070
6070
|
events: p
|
6071
|
-
},
|
6072
|
-
}, assign$1({}, l,
|
6073
|
-
return
|
6071
|
+
}, L);
|
6072
|
+
}, assign$1({}, l, k)));
|
6073
|
+
return I;
|
6074
6074
|
},
|
6075
6075
|
$dispose: y
|
6076
6076
|
}, T = reactive(assign$1(
|
6077
6077
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6078
6078
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6079
|
-
_hmrPayload:
|
6079
|
+
_hmrPayload: A
|
6080
6080
|
} : {},
|
6081
6081
|
P
|
6082
6082
|
));
|
6083
6083
|
n._s.set(e, T);
|
6084
6084
|
const B = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6085
|
-
for (const
|
6086
|
-
const
|
6087
|
-
if (isRef(
|
6088
|
-
process.env.NODE_ENV !== "production" && a ? set(_.value,
|
6089
|
-
else if (typeof
|
6090
|
-
const
|
6091
|
-
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;
|
6092
6092
|
} else
|
6093
|
-
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));
|
6094
6094
|
}
|
6095
6095
|
if (assign$1(T, B), assign$1(toRaw(T), B), Object.defineProperty(T, "$state", {
|
6096
6096
|
get: () => process.env.NODE_ENV !== "production" && a ? _.value : n.state.value[e],
|
6097
|
-
set: (
|
6097
|
+
set: (N) => {
|
6098
6098
|
if (process.env.NODE_ENV !== "production" && a)
|
6099
6099
|
throw new Error("cannot set hotState");
|
6100
|
-
v((
|
6101
|
-
assign$1(
|
6100
|
+
v((k) => {
|
6101
|
+
assign$1(k, N);
|
6102
6102
|
});
|
6103
6103
|
}
|
6104
6104
|
}), process.env.NODE_ENV !== "production") {
|
6105
|
-
T._hotUpdate = markRaw((
|
6106
|
-
T._hotUpdating = !0,
|
6107
|
-
if (
|
6108
|
-
const
|
6109
|
-
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;
|
6110
6110
|
}
|
6111
|
-
set(T,
|
6112
|
-
}), Object.keys(T.$state).forEach((
|
6113
|
-
|
6114
|
-
}), 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(() => {
|
6115
6115
|
u = !0;
|
6116
6116
|
});
|
6117
|
-
for (const
|
6118
|
-
const
|
6119
|
-
set(T,
|
6117
|
+
for (const I in k._hmrPayload.actions) {
|
6118
|
+
const w = k[I];
|
6119
|
+
set(T, I, E(I, w));
|
6120
6120
|
}
|
6121
|
-
for (const
|
6122
|
-
const
|
6123
|
-
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);
|
6124
6124
|
}
|
6125
|
-
Object.keys(T._hmrPayload.getters).forEach((
|
6126
|
-
|
6127
|
-
}), Object.keys(T._hmrPayload.actions).forEach((
|
6128
|
-
|
6129
|
-
}), 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;
|
6130
6130
|
});
|
6131
|
-
const
|
6131
|
+
const N = {
|
6132
6132
|
writable: !0,
|
6133
6133
|
configurable: !0,
|
6134
6134
|
enumerable: !1
|
6135
6135
|
};
|
6136
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6137
|
-
Object.defineProperty(T,
|
6138
|
-
value: T[
|
6139
|
-
...
|
6136
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((k) => {
|
6137
|
+
Object.defineProperty(T, k, {
|
6138
|
+
value: T[k],
|
6139
|
+
...N
|
6140
6140
|
});
|
6141
6141
|
});
|
6142
6142
|
}
|
6143
|
-
return n._p.forEach((
|
6143
|
+
return n._p.forEach((N) => {
|
6144
6144
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6145
|
-
const
|
6145
|
+
const k = o.run(() => N({
|
6146
6146
|
store: T,
|
6147
6147
|
app: n._a,
|
6148
6148
|
pinia: n,
|
6149
6149
|
options: i
|
6150
6150
|
}));
|
6151
|
-
Object.keys(
|
6151
|
+
Object.keys(k || {}).forEach((I) => T._customProperties.add(I)), assign$1(T, k);
|
6152
6152
|
} else
|
6153
|
-
assign$1(T, o.run(() =>
|
6153
|
+
assign$1(T, o.run(() => N({
|
6154
6154
|
store: T,
|
6155
6155
|
app: n._a,
|
6156
6156
|
pinia: n,
|
@@ -6584,9 +6584,9 @@ const getProps$w = () => ({
|
|
6584
6584
|
function _(y) {
|
6585
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));
|
6586
6586
|
}
|
6587
|
-
function v(y, E,
|
6588
|
-
return y.addEventListener(E,
|
6589
|
-
remove: () => y.removeEventListener(E,
|
6587
|
+
function v(y, E, A) {
|
6588
|
+
return y.addEventListener(E, A), {
|
6589
|
+
remove: () => y.removeEventListener(E, A)
|
6590
6590
|
};
|
6591
6591
|
}
|
6592
6592
|
function C(y) {
|
@@ -6732,12 +6732,12 @@ const getProps$v = () => ({ ...formProps() }), DI_MODEL = Symbol("DI_MODEL"), DI
|
|
6732
6732
|
r("update:visible", !1);
|
6733
6733
|
}
|
6734
6734
|
function p() {
|
6735
|
-
var b, _, v, C, y, E,
|
6735
|
+
var b, _, v, C, y, E, A;
|
6736
6736
|
if (c.value) {
|
6737
6737
|
const P = (_ = (b = l.selectedRows) == null ? void 0 : b.value) != null ? _ : [], T = (v = P.map((B) => B[d.value])) != null ? v : [];
|
6738
6738
|
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6739
6739
|
} else {
|
6740
|
-
const P = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (
|
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 : "";
|
6741
6741
|
(!i || i(T, P)) && (r("kgOk", T, P), r("update:visible", !1));
|
6742
6742
|
}
|
6743
6743
|
}
|
@@ -6942,8 +6942,8 @@ const KgFormItemSelect = defineComponent({
|
|
6942
6942
|
immediate: !0
|
6943
6943
|
});
|
6944
6944
|
async function i() {
|
6945
|
-
var C, y, E,
|
6946
|
-
const c = (C = s.value) == null ? void 0 : C.cmd, d = (y = s.value) == null ? void 0 : y.cmd_prm, m = (
|
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 : "";
|
6947
6947
|
if (!c || !p || !b) {
|
6948
6948
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
6949
6949
|
formID: n.formID,
|
@@ -6957,7 +6957,7 @@ const KgFormItemSelect = defineComponent({
|
|
6957
6957
|
const _ = KgVarUtil.parseCommandParameter(d);
|
6958
6958
|
let v = null;
|
6959
6959
|
try {
|
6960
|
-
v = await ((
|
6960
|
+
v = await ((k = httpClient()) == null ? void 0 : k.request({
|
6961
6961
|
url: c,
|
6962
6962
|
method: m,
|
6963
6963
|
params: _
|
@@ -6976,17 +6976,17 @@ const KgFormItemSelect = defineComponent({
|
|
6976
6976
|
break;
|
6977
6977
|
}
|
6978
6978
|
if (o.value.length > 0) {
|
6979
|
-
const
|
6980
|
-
(!(p in
|
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.", {
|
6981
6981
|
formID: n.formID,
|
6982
6982
|
kgVarName: e.kgVarName,
|
6983
6983
|
cmd: c,
|
6984
6984
|
val_clm: p,
|
6985
6985
|
lbl_clm: b,
|
6986
|
-
\u6240\u6709\u5217: Object.keys(
|
6986
|
+
\u6240\u6709\u5217: Object.keys(I)
|
6987
6987
|
});
|
6988
6988
|
}
|
6989
|
-
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);
|
6990
6990
|
}
|
6991
6991
|
function l(c) {
|
6992
6992
|
var m;
|
@@ -7060,11 +7060,11 @@ const KgFormItemSelect = defineComponent({
|
|
7060
7060
|
}) {
|
7061
7061
|
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_BEFORE_LOOKUP_OK, e.onKgBeforeLookupOk);
|
7062
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(() => {
|
7063
|
-
var
|
7064
|
-
let
|
7063
|
+
var L, $, M, O, F;
|
7064
|
+
let w = [];
|
7065
7065
|
switch (e.kgContext) {
|
7066
7066
|
case KG_FORM_CONTEXT.SEARCH:
|
7067
|
-
((
|
7067
|
+
((L = m.value) == null ? void 0 : L.rqr_flg) === 1 && (w = [{
|
7068
7068
|
required: !0,
|
7069
7069
|
message: n.t("kg.required")
|
7070
7070
|
}]);
|
@@ -7072,25 +7072,25 @@ const KgFormItemSelect = defineComponent({
|
|
7072
7072
|
case KG_FORM_CONTEXT.SUBMIT:
|
7073
7073
|
switch (!0) {
|
7074
7074
|
case a.isCreating.value:
|
7075
|
-
((
|
7075
|
+
(($ = p.value) == null ? void 0 : $.crt_rqr_flg) === 1 && (w = [{
|
7076
7076
|
required: !0,
|
7077
7077
|
message: n.t("kg.required")
|
7078
7078
|
}]);
|
7079
7079
|
break;
|
7080
7080
|
case a.isUpdating.value:
|
7081
|
-
((
|
7081
|
+
((M = p.value) == null ? void 0 : M.upt_rqr_flg) === 1 && (w = [{
|
7082
7082
|
required: !0,
|
7083
7083
|
message: n.t("kg.required")
|
7084
7084
|
}]);
|
7085
7085
|
break;
|
7086
7086
|
case a.isCopying.value:
|
7087
|
-
((
|
7087
|
+
((O = p.value) == null ? void 0 : O.cpy_rqr_flg) === 1 && (w = [{
|
7088
7088
|
required: !0,
|
7089
7089
|
message: n.t("kg.required")
|
7090
7090
|
}]);
|
7091
7091
|
break;
|
7092
7092
|
case a.isDeleting.value:
|
7093
|
-
((
|
7093
|
+
((F = p.value) == null ? void 0 : F.del_rqr_flg) === 1 && (w = [{
|
7094
7094
|
required: !0,
|
7095
7095
|
message: n.t("kg.required")
|
7096
7096
|
}]);
|
@@ -7098,111 +7098,111 @@ const KgFormItemSelect = defineComponent({
|
|
7098
7098
|
}
|
7099
7099
|
break;
|
7100
7100
|
}
|
7101
|
-
return e.kgRules && (
|
7101
|
+
return e.kgRules && (w = [...w, ...e.kgRules]), w;
|
7102
7102
|
}), _ = computed(() => {
|
7103
|
-
var
|
7103
|
+
var L, $, M, O, F;
|
7104
7104
|
if (a.isRetrievingVar.value)
|
7105
7105
|
return !0;
|
7106
|
-
let
|
7106
|
+
let w = !1;
|
7107
7107
|
if (e.kgDisabled !== void 0)
|
7108
|
-
|
7108
|
+
w = e.kgDisabled;
|
7109
7109
|
else
|
7110
7110
|
switch (e.kgContext) {
|
7111
7111
|
case KG_FORM_CONTEXT.SEARCH:
|
7112
|
-
|
7112
|
+
w = ((L = m.value) == null ? void 0 : L.ena_flg) === 0;
|
7113
7113
|
break;
|
7114
7114
|
case KG_FORM_CONTEXT.SUBMIT:
|
7115
7115
|
switch (!0) {
|
7116
7116
|
case a.isCreating.value:
|
7117
|
-
|
7117
|
+
w = (($ = p.value) == null ? void 0 : $.crt_ena_flg) === 0;
|
7118
7118
|
break;
|
7119
7119
|
case a.isUpdating.value:
|
7120
|
-
|
7120
|
+
w = ((M = p.value) == null ? void 0 : M.upt_ena_flg) === 0;
|
7121
7121
|
break;
|
7122
7122
|
case a.isCopying.value:
|
7123
|
-
|
7123
|
+
w = ((O = p.value) == null ? void 0 : O.cpy_ena_flg) === 0;
|
7124
7124
|
break;
|
7125
7125
|
case a.isDeleting.value:
|
7126
|
-
|
7126
|
+
w = ((F = p.value) == null ? void 0 : F.del_ena_flg) === 0;
|
7127
7127
|
break;
|
7128
7128
|
}
|
7129
7129
|
break;
|
7130
7130
|
}
|
7131
|
-
return
|
7131
|
+
return w;
|
7132
7132
|
}), v = computed(() => {
|
7133
|
-
var
|
7134
|
-
let
|
7133
|
+
var L, $, M, O;
|
7134
|
+
let w = " ";
|
7135
7135
|
if (e.kgPlaceholder)
|
7136
|
-
|
7136
|
+
w = e.kgPlaceholder;
|
7137
7137
|
else
|
7138
7138
|
switch (e.kgContext) {
|
7139
7139
|
case KG_FORM_CONTEXT.SEARCH:
|
7140
|
-
|
7140
|
+
w = n.t(($ = (L = m.value) == null ? void 0 : L.placeholder) != null ? $ : " ");
|
7141
7141
|
break;
|
7142
7142
|
case KG_FORM_CONTEXT.SUBMIT:
|
7143
|
-
|
7143
|
+
w = n.t((O = (M = p.value) == null ? void 0 : M.placeholder) != null ? O : " ");
|
7144
7144
|
break;
|
7145
7145
|
}
|
7146
|
-
return
|
7146
|
+
return w;
|
7147
7147
|
}), C = computed(() => {
|
7148
|
-
var
|
7149
|
-
let
|
7148
|
+
var L, $, M, O, F, R, G, V, U, H;
|
7149
|
+
let w = 6;
|
7150
7150
|
if (e.kgSpan !== void 0)
|
7151
|
-
|
7151
|
+
w = e.kgSpan;
|
7152
7152
|
else
|
7153
7153
|
switch (e.kgContext) {
|
7154
7154
|
case KG_FORM_CONTEXT.SEARCH:
|
7155
|
-
|
7155
|
+
w = ($ = (L = m.value) == null ? void 0 : L.width) != null ? $ : 6;
|
7156
7156
|
break;
|
7157
7157
|
case KG_FORM_CONTEXT.SUBMIT:
|
7158
7158
|
switch (!0) {
|
7159
7159
|
case a.isCreating.value:
|
7160
|
-
|
7160
|
+
w = (O = (M = p.value) == null ? void 0 : M.crt_width) != null ? O : 6;
|
7161
7161
|
break;
|
7162
7162
|
case a.isUpdating.value:
|
7163
|
-
|
7163
|
+
w = (R = (F = p.value) == null ? void 0 : F.upt_width) != null ? R : 6;
|
7164
7164
|
break;
|
7165
7165
|
case a.isCopying.value:
|
7166
|
-
|
7166
|
+
w = (V = (G = p.value) == null ? void 0 : G.cpy_width) != null ? V : 6;
|
7167
7167
|
break;
|
7168
7168
|
case a.isDeleting.value:
|
7169
|
-
|
7169
|
+
w = (H = (U = p.value) == null ? void 0 : U.del_width) != null ? H : 6;
|
7170
7170
|
break;
|
7171
7171
|
}
|
7172
7172
|
}
|
7173
|
-
return Math.min(24, Math.max(1,
|
7173
|
+
return Math.min(24, Math.max(1, w));
|
7174
7174
|
}), y = computed(() => ({
|
7175
7175
|
paddingLeft: `${e.kgGutter / 2}px !important`,
|
7176
7176
|
paddingRight: `${e.kgGutter / 2}px !important`
|
7177
7177
|
})), E = computed(() => {
|
7178
|
-
var
|
7179
|
-
let
|
7180
|
-
switch (c.value && (
|
7178
|
+
var L, $, M, O;
|
7179
|
+
let w = "kg-form-item";
|
7180
|
+
switch (c.value && (w += " kg-form-item-lookup"), e.kgContext) {
|
7181
7181
|
case KG_FORM_CONTEXT.SEARCH:
|
7182
7182
|
switch (!0) {
|
7183
|
-
case ((
|
7184
|
-
|
7183
|
+
case ((L = m.value) == null ? void 0 : L.vis_flg) === 0:
|
7184
|
+
w += " kg-form-item--invisible";
|
7185
7185
|
break;
|
7186
7186
|
}
|
7187
7187
|
break;
|
7188
7188
|
case KG_FORM_CONTEXT.SUBMIT:
|
7189
7189
|
switch (!0) {
|
7190
|
-
case (i.value && ((
|
7191
|
-
case (l.value && ((
|
7192
|
-
case (u.value && ((
|
7193
|
-
|
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";
|
7194
7194
|
break;
|
7195
7195
|
}
|
7196
7196
|
break;
|
7197
7197
|
}
|
7198
|
-
return
|
7199
|
-
}),
|
7200
|
-
var
|
7201
|
-
const
|
7198
|
+
return w;
|
7199
|
+
}), A = computed(() => {
|
7200
|
+
var L;
|
7201
|
+
const w = {
|
7202
7202
|
...e,
|
7203
|
-
value: (
|
7204
|
-
"onUpdate:value": (
|
7205
|
-
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] = $);
|
7206
7206
|
},
|
7207
7207
|
kgPlaceholder: v.value,
|
7208
7208
|
kgDisabled: _.value,
|
@@ -7216,26 +7216,26 @@ const KgFormItemSelect = defineComponent({
|
|
7216
7216
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7217
7217
|
break;
|
7218
7218
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7219
|
-
|
7219
|
+
w.kgShowTime = !1;
|
7220
7220
|
break;
|
7221
7221
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7222
|
-
|
7222
|
+
w.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7223
7223
|
break;
|
7224
7224
|
}
|
7225
|
-
return
|
7225
|
+
return w;
|
7226
7226
|
}), P = computed(() => {
|
7227
|
-
var M;
|
7228
|
-
return e.kgType || ((M = d.value) == null ? void 0 : M.ctrl_typ);
|
7229
|
-
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext));
|
7230
|
-
function B(M, D) {
|
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,
|
@@ -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
|
}
|
@@ -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;
|
@@ -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
|
+
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 : "";
|
8513
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(() => {
|
8514
|
-
var
|
8515
|
-
return (
|
8516
|
-
}),
|
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,
|
@@ -8529,7 +8532,7 @@ function useKgVar(e, t, r = 0) {
|
|
8529
8532
|
currentVarProfileMaster: C,
|
8530
8533
|
currentVarProfileMasterID: y,
|
8531
8534
|
currentVarProfileDetails: E,
|
8532
|
-
varGridConfig:
|
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, C, y, E,
|
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 = (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 = (
|
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,
|
@@ -8898,52 +8901,52 @@ 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 &&
|
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(() => {
|
8902
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
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, W, Y,
|
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
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 (
|
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
|
-
}),
|
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
|
-
if (
|
8938
|
-
return
|
8939
|
-
}),
|
8940
|
+
if (F.value.kgWidth)
|
8941
|
+
return F.value.kgWidth + 2;
|
8942
|
+
}), D = computed(() => {
|
8940
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, W, Y,
|
8948
|
+
}), X = computed(() => {
|
8949
|
+
var K, W, Y, Z;
|
8947
8950
|
switch ((K = E.value) == null ? void 0 : K.layout) {
|
8948
8951
|
case "horizontal":
|
8949
8952
|
switch ((W = E.value) == null ? void 0 : W.label_col_unit) {
|
@@ -8954,14 +8957,14 @@ const getProps$p = () => ({
|
|
8954
8957
|
default:
|
8955
8958
|
return {
|
8956
8959
|
style: {
|
8957
|
-
width: `${(
|
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
|
-
}),
|
8967
|
+
}), q = computed(() => {
|
8965
8968
|
var K, W, Y;
|
8966
8969
|
switch ((K = E.value) == null ? void 0 : K.layout) {
|
8967
8970
|
case "horizontal":
|
@@ -8977,14 +8980,14 @@ const getProps$p = () => ({
|
|
8977
8980
|
return;
|
8978
8981
|
}
|
8979
8982
|
});
|
8980
|
-
watch(
|
8981
|
-
K ?
|
8983
|
+
watch(Q, (K) => {
|
8984
|
+
K ? ee() : z();
|
8982
8985
|
}), watch(E, (K) => {
|
8983
|
-
K != null && K.dft_width && (
|
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 = E.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (
|
8999
|
+
}), ((K = E.value) == null ? void 0 : K.dft_fullscreen_flg) === 1 && (x.isFullscreen = !0);
|
8997
9000
|
}
|
8998
|
-
function
|
9001
|
+
function z() {
|
8999
9002
|
var K;
|
9000
|
-
|
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,28 +9018,28 @@ const getProps$p = () => ({
|
|
9015
9018
|
break;
|
9016
9019
|
}
|
9017
9020
|
}
|
9018
|
-
async function
|
9021
|
+
async function ie() {
|
9019
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;
|
9026
9029
|
try {
|
9027
|
-
await ((K =
|
9028
|
-
} catch (
|
9029
|
-
KgUtil.throwIfNotFormError(
|
9030
|
+
await ((K = G.value) == null ? void 0 : K.validate());
|
9031
|
+
} catch (Z) {
|
9032
|
+
KgUtil.throwIfNotFormError(Z);
|
9030
9033
|
}
|
9031
|
-
switch (await ((W =
|
9034
|
+
switch (await ((W = G.value) == null ? void 0 : W.validate()), !0) {
|
9032
9035
|
case u.value:
|
9033
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
9045
|
await ge();
|
@@ -9047,7 +9050,7 @@ const getProps$p = () => ({
|
|
9047
9050
|
}
|
9048
9051
|
}
|
9049
9052
|
async function le() {
|
9050
|
-
var W, Y,
|
9053
|
+
var W, Y, Z, ne, ae, oe, te;
|
9051
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.", {
|
@@ -9058,19 +9061,19 @@ const getProps$p = () => ({
|
|
9058
9061
|
n.store.setIsCreatingRequesting(n.formID, !0);
|
9059
9062
|
try {
|
9060
9063
|
await httpClient().request({
|
9061
|
-
method: (
|
9064
|
+
method: (Z = (Y = b.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9062
9065
|
url: K,
|
9063
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 W, Y,
|
9075
|
+
async function de() {
|
9076
|
+
var W, Y, Z, ne, ae, oe, te;
|
9074
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.", {
|
@@ -9080,19 +9083,19 @@ const getProps$p = () => ({
|
|
9080
9083
|
}
|
9081
9084
|
try {
|
9082
9085
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
9083
|
-
method: (
|
9086
|
+
method: (Z = (Y = _.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9084
9087
|
url: K,
|
9085
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 W, Y,
|
9097
|
+
async function fe() {
|
9098
|
+
var W, Y, Z, ne, ae, oe, te;
|
9096
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.", {
|
@@ -9101,20 +9104,22 @@ const getProps$p = () => ({
|
|
9101
9104
|
return;
|
9102
9105
|
}
|
9103
9106
|
try {
|
9104
|
-
n.store.setIsCopyingRequesting(n.formID, !0)
|
9105
|
-
|
9107
|
+
n.store.setIsCopyingRequesting(n.formID, !0);
|
9108
|
+
const se = toRaw(l.value);
|
9109
|
+
delete se.id, await httpClient().request({
|
9110
|
+
method: (Z = (Y = v.value) == null ? void 0 : Y.cmd_method) != null ? Z : "POST",
|
9106
9111
|
url: K,
|
9107
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
9121
|
async function ge() {
|
9117
|
-
var W, Y,
|
9122
|
+
var W, Y, Z, ne, ae, oe, te;
|
9118
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.", {
|
@@ -9124,86 +9129,86 @@ const getProps$p = () => ({
|
|
9124
9129
|
}
|
9125
9130
|
try {
|
9126
9131
|
n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
|
9127
|
-
method: (
|
9132
|
+
method: (Z = (Y = C.value) == null ? void 0 : Y.cmd_method) != null ? Z : "DELETE",
|
9128
9133
|
url: K,
|
9129
9134
|
params: {
|
9130
|
-
ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((
|
9131
|
-
var
|
9132
|
-
return (
|
9135
|
+
ids: (ae = (ne = a.selectedRows.value) == null ? void 0 : ne.map((se) => {
|
9136
|
+
var ue;
|
9137
|
+
return (ue = se.id) != null ? ue : "";
|
9133
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
|
-
function
|
9145
|
-
var Y,
|
9146
|
-
const W = (
|
9149
|
+
function ce(K) {
|
9150
|
+
var Y, Z;
|
9151
|
+
const W = (Z = (Y = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9147
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
9159
|
varName: ne,
|
9155
9160
|
props: ae,
|
9156
9161
|
model: oe,
|
9157
|
-
varConfig:
|
9158
|
-
varProfileDetail:
|
9159
|
-
varSubmitField:
|
9162
|
+
varConfig: te,
|
9163
|
+
varProfileDetail: se,
|
9164
|
+
varSubmitField: ue
|
9160
9165
|
}) => W({
|
9161
9166
|
varName: ne,
|
9162
9167
|
props: ae,
|
9163
9168
|
model: oe,
|
9164
|
-
varConfig:
|
9165
|
-
varProfileDetail:
|
9166
|
-
varSubmitField:
|
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
9180
|
function pe() {
|
9176
|
-
var Y,
|
9181
|
+
var Y, Z, ne, ae, oe;
|
9177
9182
|
let K, W;
|
9178
9183
|
return createVNode(KgResizable, {
|
9179
9184
|
kgType: ((Y = E.value) == null ? void 0 : Y.display_type) === KG_SUBMIT_DISPLAY_TYPE.MODAL ? "right" : "left",
|
9180
|
-
kgMinWidth: (ne = (
|
9185
|
+
kgMinWidth: (ne = (Z = E.value) == null ? void 0 : Z.min_width) != null ? ne : DEFAULT_MIN_WIDTH,
|
9181
9186
|
kgMaxWidth: (oe = (ae = E.value) == null ? void 0 : ae.max_width) != null ? oe : DEFAULT_MAX_WIDTH,
|
9182
9187
|
kgDisabled: R.value,
|
9183
|
-
kgWidth: p.value ? 398 :
|
9184
|
-
"onUpdate:kgWidth": (
|
9188
|
+
kgWidth: p.value ? 398 : F.value.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
|
-
ref:
|
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(W =
|
9211
|
+
}, _isSlot$7(W = L.value.map(ce)) ? W : {
|
9207
9212
|
default: () => [W]
|
9208
9213
|
}), p.value && createVNode("div", {
|
9209
9214
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -9217,44 +9222,44 @@ const getProps$p = () => ({
|
|
9217
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:
|
9235
|
+
onClick: ie
|
9231
9236
|
}, _isSlot$7(W = r.t(m.value ? "kg.delete" : "kg.save")) ? W : {
|
9232
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,
|
@@ -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, C, y, E,
|
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 = (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 = (
|
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;
|
@@ -9726,10 +9731,10 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
9726
9731
|
var y;
|
9727
9732
|
let v, C;
|
9728
9733
|
return createVNode(Fragment, null, [(y = a.varGridMasters.value) == null ? void 0 : y.map((E) => {
|
9729
|
-
var
|
9734
|
+
var A;
|
9730
9735
|
return createVNode(Menu.Item, {
|
9731
9736
|
key: E.id,
|
9732
|
-
class: E.id === ((
|
9737
|
+
class: E.id === ((A = a.currentVarGridMaster.value) == null ? void 0 : A.id) ? "selected" : "",
|
9733
9738
|
"kg-var-nam": E.grd_var_nam
|
9734
9739
|
}, {
|
9735
9740
|
default: () => [a.t(E.grd_var_nam).value]
|
@@ -10017,240 +10022,235 @@ 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
|
-
return V === void 0 ? null : useKgSearch(V || s.formID);
|
10031
|
-
});
|
10032
|
-
computed(() => s.store.getVarLookup(n, a));
|
10033
|
-
const b = computed(() => {
|
10034
|
-
var V;
|
10035
|
-
return s.store.getVarButtonSearch(((V = p.value) == null ? void 0 : V.formID) || s.formID);
|
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;
|
10036
10041
|
}), _ = computed(() => {
|
10037
|
-
var
|
10038
|
-
return ((
|
10042
|
+
var D;
|
10043
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
|
10039
10044
|
}), v = computed(() => {
|
10040
|
-
var
|
10041
|
-
return ((
|
10045
|
+
var D;
|
10046
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
|
10042
10047
|
}), C = computed(() => {
|
10043
|
-
var
|
10044
|
-
return ((
|
10048
|
+
var D;
|
10049
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
|
10045
10050
|
}), y = computed(() => {
|
10046
|
-
var
|
10047
|
-
return ((
|
10051
|
+
var D, x;
|
10052
|
+
return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
|
10048
10053
|
}), E = computed(() => {
|
10049
|
-
var
|
10050
|
-
return
|
10051
|
-
}),
|
10052
|
-
var
|
10053
|
-
return (
|
10054
|
+
var D;
|
10055
|
+
return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
|
10056
|
+
}), A = computed(() => {
|
10057
|
+
var D, x;
|
10058
|
+
return (x = (D = p.value) == null ? void 0 : D.cmd) != null ? x : null;
|
10054
10059
|
}), P = computed(() => {
|
10055
|
-
var
|
10056
|
-
|
10057
|
-
|
10058
|
-
|
10059
|
-
|
10060
|
-
|
10061
|
-
pageSize: M.pageSize,
|
10062
|
-
...D,
|
10063
|
-
...(G = (q = (x = p.value) == null ? void 0 : x.model) == null ? void 0 : q.value) != null ? G : {}
|
10060
|
+
var x, X, q, ee, z, re, ie;
|
10061
|
+
let D = {
|
10062
|
+
pageNo: I.pageIndex,
|
10063
|
+
pageSize: I.pageSize,
|
10064
|
+
...w,
|
10065
|
+
...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
|
10064
10066
|
};
|
10065
|
-
return
|
10066
|
-
...
|
10067
|
-
...KgVarUtil.parseCommandParameter((
|
10068
|
-
}), (
|
10069
|
-
...
|
10070
|
-
...KgVarUtil.parseCommandParameter((
|
10071
|
-
}), ((
|
10072
|
-
}),
|
10073
|
-
var
|
10074
|
-
if (((
|
10067
|
+
return p.value && (D = {
|
10068
|
+
...D,
|
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 = {
|
10071
|
+
...D,
|
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(() => {
|
10075
|
+
var D;
|
10076
|
+
if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
|
10075
10077
|
return {
|
10076
10078
|
fixed: "left",
|
10077
10079
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10078
|
-
hideSelectAll: !
|
10080
|
+
hideSelectAll: !b.value,
|
10079
10081
|
selectedRowKeys: k,
|
10080
10082
|
preserveSelectedRowKeys: !1,
|
10081
|
-
onSelect: (x) =>
|
10082
|
-
onChange: (x) =>
|
10083
|
+
onSelect: (x) => F(x),
|
10084
|
+
onChange: (x) => b.value && O(x)
|
10083
10085
|
};
|
10084
|
-
}),
|
10085
|
-
let
|
10086
|
-
return !
|
10087
|
-
}),
|
10086
|
+
}), B = computed(() => {
|
10087
|
+
let D = "kg-table";
|
10088
|
+
return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
|
10089
|
+
}), N = ref([]), k = ref([]), I = reactive({
|
10088
10090
|
pageIndex: 1,
|
10089
10091
|
pageSize: 10,
|
10090
10092
|
total: 0
|
10091
|
-
}),
|
10093
|
+
}), w = reactive({
|
10092
10094
|
column: void 0,
|
10093
10095
|
order: void 0
|
10094
|
-
}),
|
10095
|
-
|
10096
|
-
L(x);
|
10097
|
-
}), V.onReset(() => {
|
10098
|
-
L(!0);
|
10099
|
-
}));
|
10100
|
-
}), $ = watch(I, (V) => {
|
10101
|
-
V && (setTimeout(() => $()), M.pageSize = V);
|
10096
|
+
}), L = watch(E, (D) => {
|
10097
|
+
D && (setTimeout(() => L()), I.pageSize = D), l.value = !0;
|
10102
10098
|
});
|
10103
|
-
watch(
|
10104
|
-
|
10105
|
-
}), watch([
|
10106
|
-
|
10107
|
-
return (V = p == null ? void 0 : p.value) == null ? void 0 : V.isReady;
|
10108
|
-
}], ([V, x, q]) => {
|
10109
|
-
V && x && q && !i.store.getIsRetrieved(s.formID) && L(!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);
|
10110
10103
|
}, {
|
10111
10104
|
immediate: !0
|
10112
10105
|
}), onUnmounted(() => {
|
10113
|
-
i.store.dispose(
|
10106
|
+
i.store.dispose(a.formID);
|
10114
10107
|
});
|
10115
|
-
function
|
10116
|
-
if (!!
|
10108
|
+
function $(D, x) {
|
10109
|
+
if (!!T.value) {
|
10117
10110
|
if (!x) {
|
10118
|
-
k.value = [], i.store.setSelectedRows(
|
10111
|
+
k.value = [], i.store.setSelectedRows(a.formID, []);
|
10119
10112
|
return;
|
10120
10113
|
}
|
10121
|
-
switch (
|
10114
|
+
switch (D == null ? void 0 : D.detail) {
|
10122
10115
|
case 1:
|
10123
|
-
k.value = [x.id], i.store.setSelectedRows(
|
10124
|
-
var
|
10125
|
-
return (
|
10126
|
-
}).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));
|
10127
10120
|
break;
|
10128
10121
|
case 2:
|
10129
|
-
i.store.emit(
|
10122
|
+
i.store.emit(a.formID, "rowDoubleClick", x);
|
10130
10123
|
break;
|
10131
10124
|
}
|
10132
10125
|
}
|
10133
10126
|
}
|
10134
|
-
|
10135
|
-
|
10136
|
-
|
10137
|
-
|
10138
|
-
|
10139
|
-
|
10140
|
-
|
10141
|
-
|
10142
|
-
|
10143
|
-
|
10144
|
-
|
10145
|
-
|
10146
|
-
|
10147
|
-
|
10148
|
-
|
10149
|
-
|
10150
|
-
|
10151
|
-
|
10152
|
-
|
10153
|
-
|
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
|
+
}
|
10154
10154
|
}
|
10155
10155
|
}
|
10156
|
-
function
|
10157
|
-
k.value =
|
10158
|
-
var
|
10159
|
-
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);
|
10160
10160
|
}).filter((x) => !!x));
|
10161
10161
|
}
|
10162
|
-
function
|
10163
|
-
var x,
|
10164
|
-
switch (
|
10162
|
+
function F(D) {
|
10163
|
+
var x, X;
|
10164
|
+
switch (b.value) {
|
10165
10165
|
case !0:
|
10166
10166
|
{
|
10167
|
-
const
|
10168
|
-
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];
|
10169
10169
|
}
|
10170
10170
|
break;
|
10171
10171
|
case !1:
|
10172
10172
|
{
|
10173
|
-
const
|
10174
|
-
(
|
10173
|
+
const q = D.id;
|
10174
|
+
(X = k.value) != null && X.includes(q) ? k.value = [] : k.value = [q];
|
10175
10175
|
}
|
10176
10176
|
break;
|
10177
10177
|
}
|
10178
|
-
i.store.setSelectedRows(
|
10179
|
-
var
|
10180
|
-
return (
|
10181
|
-
}).filter((
|
10178
|
+
i.store.setSelectedRows(a.formID, k.value.map((q) => {
|
10179
|
+
var ee;
|
10180
|
+
return (ee = N.value) == null ? void 0 : ee.find((z) => z.id === q);
|
10181
|
+
}).filter((q) => !!q));
|
10182
10182
|
}
|
10183
|
-
function
|
10184
|
-
x.width =
|
10183
|
+
function R(D, x) {
|
10184
|
+
x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
|
10185
10185
|
}
|
10186
|
-
async function
|
10187
|
-
var
|
10188
|
-
switch (
|
10186
|
+
async function G(D, x, X, q) {
|
10187
|
+
var ee;
|
10188
|
+
switch (q.action) {
|
10189
10189
|
case "sort":
|
10190
10190
|
{
|
10191
10191
|
await nextTick();
|
10192
|
-
let
|
10193
|
-
|
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);
|
10194
10194
|
}
|
10195
10195
|
break;
|
10196
10196
|
}
|
10197
10197
|
}
|
10198
|
-
function
|
10199
|
-
x !==
|
10198
|
+
function V(D, x) {
|
10199
|
+
x !== I.pageSize ? (I.pageIndex = 1, I.pageSize = x) : I.pageIndex = D, M();
|
10200
10200
|
}
|
10201
|
-
function
|
10202
|
-
k.value = [
|
10203
|
-
var
|
10204
|
-
return (
|
10205
|
-
}).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);
|
10206
10206
|
}
|
10207
|
-
function
|
10208
|
-
title:
|
10207
|
+
function H({
|
10208
|
+
title: D,
|
10209
10209
|
column: x
|
10210
10210
|
}) {
|
10211
10211
|
switch (x.dataIndex) {
|
10212
10212
|
case "index":
|
10213
10213
|
return createVNode(KgTableSetting, null, null);
|
10214
10214
|
default:
|
10215
|
-
return createVNode("pre", null, [
|
10215
|
+
return createVNode("pre", null, [D]);
|
10216
10216
|
}
|
10217
10217
|
}
|
10218
|
-
function
|
10219
|
-
column:
|
10218
|
+
function Q({
|
10219
|
+
column: D,
|
10220
10220
|
index: x,
|
10221
|
-
record:
|
10222
|
-
value:
|
10223
|
-
text:
|
10221
|
+
record: X,
|
10222
|
+
value: q,
|
10223
|
+
text: ee
|
10224
10224
|
}) {
|
10225
|
-
let
|
10226
|
-
|
10225
|
+
let z = "";
|
10226
|
+
D.customRender ? z = D.customRender({
|
10227
10227
|
index: x,
|
10228
|
-
record:
|
10229
|
-
column:
|
10230
|
-
text:
|
10231
|
-
value:
|
10228
|
+
record: X,
|
10229
|
+
column: D,
|
10230
|
+
text: ee,
|
10231
|
+
value: q,
|
10232
10232
|
renderIndex: x
|
10233
|
-
}) :
|
10234
|
-
const
|
10235
|
-
kgRow:
|
10236
|
-
kgValue:
|
10237
|
-
kgVarName:
|
10238
|
-
onKgUpdateLinkClick: () => X
|
10233
|
+
}) : z = q;
|
10234
|
+
const re = createVNode(KgTableCell, {
|
10235
|
+
kgRow: X,
|
10236
|
+
kgValue: z,
|
10237
|
+
kgVarName: D.dataIndex,
|
10238
|
+
onKgUpdateLinkClick: () => U(X)
|
10239
10239
|
}, null);
|
10240
10240
|
return t.bodyCell ? t.bodyCell({
|
10241
|
-
value:
|
10242
|
-
record:
|
10241
|
+
value: q,
|
10242
|
+
record: X,
|
10243
10243
|
index: x,
|
10244
|
-
column:
|
10245
|
-
defaultRender:
|
10246
|
-
}) :
|
10244
|
+
column: D,
|
10245
|
+
defaultRender: re
|
10246
|
+
}) : re;
|
10247
10247
|
}
|
10248
|
-
function
|
10249
|
-
return !
|
10248
|
+
function J() {
|
10249
|
+
return !_.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10250
10250
|
}
|
10251
10251
|
return () => createVNode("div", {
|
10252
|
-
class:
|
10253
|
-
"kg-frm-id":
|
10252
|
+
class: B.value,
|
10253
|
+
"kg-frm-id": a.formID,
|
10254
10254
|
ref: m
|
10255
10255
|
}, [createVNode(Table, {
|
10256
10256
|
class: "kg-flex-table",
|
@@ -10262,50 +10262,50 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10262
10262
|
pagination: !1,
|
10263
10263
|
showSorterTooltip: !1,
|
10264
10264
|
columns: u.value,
|
10265
|
-
dataSource:
|
10265
|
+
dataSource: N.value,
|
10266
10266
|
loading: d.value,
|
10267
10267
|
rowKey: "id",
|
10268
|
-
rowSelection:
|
10269
|
-
customRow: (
|
10270
|
-
onClick: (x) =>
|
10268
|
+
rowSelection: T.value,
|
10269
|
+
customRow: (D) => ({
|
10270
|
+
onClick: (x) => $(x, D)
|
10271
10271
|
}),
|
10272
|
-
onResizeColumn:
|
10273
|
-
onChange:
|
10272
|
+
onResizeColumn: R,
|
10273
|
+
onChange: G
|
10274
10274
|
}, {
|
10275
|
-
headerCell:
|
10276
|
-
bodyCell:
|
10277
|
-
emptyText:
|
10278
|
-
}), (
|
10275
|
+
headerCell: H,
|
10276
|
+
bodyCell: Q,
|
10277
|
+
emptyText: J
|
10278
|
+
}), (v.value || C.value) && createVNode("div", {
|
10279
10279
|
class: "kg-table-bottom"
|
10280
10280
|
}, [createVNode("div", {
|
10281
10281
|
class: "left"
|
10282
|
-
}, [
|
10282
|
+
}, [v.value && createVNode(KgTableInfo, {
|
10283
10283
|
kgShowClearCheck: k.value.length > 0,
|
10284
|
-
kgShowClearTable:
|
10284
|
+
kgShowClearTable: I.total > 0,
|
10285
10285
|
kgShowLocate: k.value.length === 1,
|
10286
10286
|
kgTotal: k.value.length,
|
10287
10287
|
kgDisabled: d.value
|
10288
10288
|
}, null)]), createVNode("div", {
|
10289
10289
|
class: "right"
|
10290
|
-
}, [
|
10290
|
+
}, [C.value && createVNode(Pagination, {
|
10291
10291
|
size: "default",
|
10292
|
-
current:
|
10293
|
-
pageSize:
|
10294
|
-
pageSizeOptions:
|
10295
|
-
total:
|
10292
|
+
current: I.pageIndex,
|
10293
|
+
pageSize: I.pageSize,
|
10294
|
+
pageSizeOptions: y.value.map((D) => String(D)),
|
10295
|
+
total: I.total,
|
10296
10296
|
showSizeChanger: !0,
|
10297
10297
|
showQuickJumper: !1,
|
10298
10298
|
hideOnSinglePage: !1,
|
10299
|
-
disabled: d.value ||
|
10299
|
+
disabled: d.value || I.total === 0,
|
10300
10300
|
locale: {
|
10301
10301
|
page: ""
|
10302
10302
|
},
|
10303
|
-
showTotal: (
|
10303
|
+
showTotal: (D, x) => n.t("kg.KgTable.totalText", {
|
10304
10304
|
from: x[0],
|
10305
10305
|
to: x[1],
|
10306
|
-
total:
|
10306
|
+
total: D
|
10307
10307
|
}),
|
10308
|
-
onChange: (
|
10308
|
+
onChange: (D, x) => V(D, x)
|
10309
10309
|
}, null)])])]);
|
10310
10310
|
}
|
10311
10311
|
}), getProps$f = () => ({
|
@@ -10632,7 +10632,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10632
10632
|
}
|
10633
10633
|
let l = null;
|
10634
10634
|
const u = async () => {
|
10635
|
-
var _, v, C, y, E,
|
10635
|
+
var _, v, C, y, E, A;
|
10636
10636
|
l == null || l.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
10637
10637
|
const p = ((_ = r.varGridConfig.value) == null ? void 0 : _.mult_flg) === 1, b = n.selectedRows.value;
|
10638
10638
|
try {
|
@@ -10640,7 +10640,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10640
10640
|
method: (C = (v = e.kgButton) == null ? void 0 : v.cmd_method) != null ? C : "POST",
|
10641
10641
|
url: i,
|
10642
10642
|
params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
|
10643
|
-
data: p ? b != null ? b : [] : (
|
10643
|
+
data: p ? b != null ? b : [] : (A = b == null ? void 0 : b[0]) != null ? A : {}
|
10644
10644
|
});
|
10645
10645
|
} catch (P) {
|
10646
10646
|
console.error(P);
|
@@ -11056,8 +11056,11 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11056
11056
|
},
|
11057
11057
|
getModel(e) {
|
11058
11058
|
return (t) => {
|
11059
|
-
var
|
11060
|
-
|
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;
|
11061
11064
|
};
|
11062
11065
|
},
|
11063
11066
|
getSearchFn(e) {
|
@@ -11127,28 +11130,30 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11127
11130
|
}
|
11128
11131
|
},
|
11129
11132
|
emit(e, t, r) {
|
11130
|
-
|
11131
|
-
|
11132
|
-
|
11133
|
-
|
11134
|
-
|
11135
|
-
|
11136
|
-
|
11137
|
-
|
11138
|
-
|
11139
|
-
|
11140
|
-
|
11141
|
-
|
11142
|
-
|
11143
|
-
|
11144
|
-
|
11145
|
-
|
11146
|
-
|
11147
|
-
|
11148
|
-
|
11149
|
-
|
11150
|
-
|
11151
|
-
|
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
|
+
}
|
11152
11157
|
},
|
11153
11158
|
setIsReady(e, t) {
|
11154
11159
|
!e || this.isReadyMap.set(e, !!t);
|
@@ -11438,7 +11443,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11438
11443
|
model: C,
|
11439
11444
|
varConfig: y,
|
11440
11445
|
varProfileDetail: E,
|
11441
|
-
varSubmitField:
|
11446
|
+
varSubmitField: A
|
11442
11447
|
}) => createVNode(Transfer, {
|
11443
11448
|
dataSource: l.value,
|
11444
11449
|
targetKeys: u.value,
|
@@ -11456,9 +11461,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11456
11461
|
direction: P,
|
11457
11462
|
filteredItems: T,
|
11458
11463
|
selectedKeys: B,
|
11459
|
-
disabled:
|
11460
|
-
onItemSelectAll:
|
11461
|
-
onItemSelect:
|
11464
|
+
disabled: N,
|
11465
|
+
onItemSelectAll: k,
|
11466
|
+
onItemSelect: I
|
11462
11467
|
}) => createVNode(Table, {
|
11463
11468
|
pagination: !1,
|
11464
11469
|
class: "kg-flex-table",
|
@@ -11470,14 +11475,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11470
11475
|
columns: P === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11471
11476
|
rowKey: "id",
|
11472
11477
|
dataSource: T,
|
11473
|
-
customRow: (
|
11474
|
-
onClick: (
|
11478
|
+
customRow: (w) => ({
|
11479
|
+
onClick: (L) => b(L, w, P, B)
|
11475
11480
|
}),
|
11476
11481
|
rowSelection: d({
|
11477
|
-
disabled:
|
11482
|
+
disabled: N,
|
11478
11483
|
selectedKeys: B,
|
11479
|
-
onItemSelectAll:
|
11480
|
-
onItemSelect:
|
11484
|
+
onItemSelectAll: k,
|
11485
|
+
onItemSelect: I
|
11481
11486
|
})
|
11482
11487
|
}, null)
|
11483
11488
|
})
|
@@ -11496,16 +11501,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11496
11501
|
getCheckboxProps: (E) => ({
|
11497
11502
|
disabled: _ || E.disabled
|
11498
11503
|
}),
|
11499
|
-
onSelectAll(E,
|
11500
|
-
const P =
|
11504
|
+
onSelectAll(E, A) {
|
11505
|
+
const P = A.filter((T) => !T.disabled).map(({
|
11501
11506
|
key: T
|
11502
11507
|
}) => T);
|
11503
11508
|
C(P, E);
|
11504
11509
|
},
|
11505
11510
|
onSelect({
|
11506
11511
|
key: E
|
11507
|
-
},
|
11508
|
-
y(E,
|
11512
|
+
}, A) {
|
11513
|
+
y(E, A);
|
11509
11514
|
},
|
11510
11515
|
selectedRowKeys: v,
|
11511
11516
|
columnWidth: 32
|
@@ -11516,7 +11521,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11516
11521
|
isCopying: C,
|
11517
11522
|
row: y
|
11518
11523
|
}) {
|
11519
|
-
var
|
11524
|
+
var A, P;
|
11520
11525
|
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11521
11526
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11522
11527
|
case _:
|
@@ -11532,17 +11537,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11532
11537
|
id: y.id
|
11533
11538
|
}
|
11534
11539
|
});
|
11535
|
-
l.value = l.value.map((
|
11536
|
-
var
|
11537
|
-
const
|
11538
|
-
return
|
11539
|
-
...
|
11540
|
-
...
|
11541
|
-
id:
|
11542
|
-
} :
|
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;
|
11543
11548
|
});
|
11544
|
-
const B = (P = (
|
11545
|
-
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);
|
11546
11551
|
} catch (T) {
|
11547
11552
|
throw T;
|
11548
11553
|
} finally {
|
@@ -11682,24 +11687,24 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11682
11687
|
const t = useKg(), r = useKgVar(), n = useKgSearch(), a = useKgTable();
|
11683
11688
|
_useLayoutHeaderResizeObserver();
|
11684
11689
|
const o = computed(() => r.store.getFormLevel(r.formID)), s = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => {
|
11685
|
-
var
|
11686
|
-
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;
|
11687
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(() => {
|
11688
|
-
var
|
11689
|
-
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));
|
11690
11695
|
}), m = computed(() => !!a.isRetrieving.value), p = computed(() => !!a.isRetrieving.value), b = ref(null), _ = ref({
|
11691
11696
|
kgHeight: c.value
|
11692
11697
|
}), v = ref({
|
11693
11698
|
visible: !1
|
11694
11699
|
});
|
11695
11700
|
let C;
|
11696
|
-
const y = computed(() => _.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)),
|
11697
|
-
var
|
11698
|
-
if (r.t((
|
11699
|
-
return r.t((
|
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;
|
11700
11705
|
}), P = computed(() => {
|
11701
|
-
var
|
11702
|
-
switch ((
|
11706
|
+
var V;
|
11707
|
+
switch ((V = E.value) == null ? void 0 : V.primary_flg) {
|
11703
11708
|
case 1:
|
11704
11709
|
return !0;
|
11705
11710
|
case 0:
|
@@ -11708,19 +11713,19 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11708
11713
|
return !0;
|
11709
11714
|
}
|
11710
11715
|
}), T = computed(() => {
|
11711
|
-
var
|
11712
|
-
return ((
|
11713
|
-
}), B = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)),
|
11714
|
-
let
|
11715
|
-
return T.value && (
|
11716
|
-
});
|
11717
|
-
watch(r.currentVarProfileDetails, (
|
11718
|
-
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) {
|
11719
11724
|
const U = {};
|
11720
|
-
|
11721
|
-
U[
|
11722
|
-
}), _.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (
|
11723
|
-
|
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));
|
11724
11729
|
}, {
|
11725
11730
|
immediate: !0
|
11726
11731
|
})) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
@@ -11730,23 +11735,23 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11730
11735
|
}), onUnmounted(() => {
|
11731
11736
|
n.store.dispose(r.formID);
|
11732
11737
|
});
|
11733
|
-
function
|
11738
|
+
function I(V = !1) {
|
11734
11739
|
T.value ? b.value && b.value.validate().then(() => {
|
11735
11740
|
n.store.emit(r.formID, "search", {
|
11736
|
-
resetPageIndex:
|
11741
|
+
resetPageIndex: V
|
11737
11742
|
});
|
11738
11743
|
}).catch((U) => {
|
11739
11744
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
11740
11745
|
e: U
|
11741
11746
|
});
|
11742
11747
|
}) : n.store.emit(r.formID, "search", {
|
11743
|
-
resetPageIndex:
|
11748
|
+
resetPageIndex: V
|
11744
11749
|
});
|
11745
11750
|
}
|
11746
|
-
n.store.setSearchFn(r.formID,
|
11747
|
-
function
|
11748
|
-
var
|
11749
|
-
(
|
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(() => {
|
11750
11755
|
n.store.emit(r.formID, "reset");
|
11751
11756
|
}).catch((U) => {
|
11752
11757
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -11754,31 +11759,31 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11754
11759
|
});
|
11755
11760
|
}) : n.store.emit(r.formID, "reset");
|
11756
11761
|
}
|
11757
|
-
n.store.setResetFn(r.formID,
|
11758
|
-
function
|
11759
|
-
return
|
11762
|
+
n.store.setResetFn(r.formID, w);
|
11763
|
+
function L() {
|
11764
|
+
return I(!0), Promise.resolve(!0);
|
11760
11765
|
}
|
11761
|
-
function
|
11766
|
+
function $() {
|
11762
11767
|
return createVNode("div", {
|
11763
11768
|
class: "title",
|
11764
|
-
onClick:
|
11769
|
+
onClick: G
|
11765
11770
|
}, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
11766
11771
|
}
|
11767
|
-
function
|
11768
|
-
var
|
11769
|
-
return ((
|
11770
|
-
value: (
|
11771
|
-
"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),
|
11772
11777
|
disabled: m.value,
|
11773
11778
|
onChange: R,
|
11774
11779
|
class: "kg-search-profile-master-select"
|
11775
11780
|
}, {
|
11776
11781
|
default: () => {
|
11777
|
-
var
|
11778
|
-
return (
|
11779
|
-
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
|
11780
11785
|
}, {
|
11781
|
-
default: () => [r.t(
|
11786
|
+
default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
|
11782
11787
|
}));
|
11783
11788
|
},
|
11784
11789
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -11792,48 +11797,48 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11792
11797
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
11793
11798
|
}), createVNode(KgSearchConfigModal, {
|
11794
11799
|
visible: v.value.visible,
|
11795
|
-
"onUpdate:visible": (
|
11800
|
+
"onUpdate:visible": (J) => v.value.visible = J,
|
11796
11801
|
hostFormID: r.formID
|
11797
11802
|
}, null)]);
|
11798
11803
|
}
|
11799
|
-
function
|
11800
|
-
var
|
11801
|
-
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, {
|
11802
11807
|
type: "primary",
|
11803
11808
|
ghost: !d.value,
|
11804
11809
|
disabled: d.value,
|
11805
|
-
onClick:
|
11810
|
+
onClick: w,
|
11806
11811
|
class: "kg-search-btn-reset"
|
11807
11812
|
}, {
|
11808
11813
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
11809
11814
|
}), createVNode(KgButton.Item, {
|
11810
11815
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
11811
|
-
kgVarName: (
|
11812
|
-
kgIcon: (
|
11813
|
-
kgText:
|
11814
|
-
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,
|
11815
11820
|
kgPrimary: P.value,
|
11816
11821
|
kgLoading: p.value,
|
11817
|
-
onKgClick:
|
11822
|
+
onKgClick: L
|
11818
11823
|
}, null)]);
|
11819
11824
|
}
|
11820
|
-
function
|
11825
|
+
function F() {
|
11821
11826
|
return createVNode(Spin, {
|
11822
|
-
spinning:
|
11827
|
+
spinning: N.value
|
11823
11828
|
}, {
|
11824
11829
|
default: () => {
|
11825
|
-
var
|
11830
|
+
var V;
|
11826
11831
|
return [createVNode(KgForm, {
|
11827
11832
|
ref: b,
|
11828
|
-
model: (
|
11833
|
+
model: (V = n.model.value) != null ? V : {}
|
11829
11834
|
}, {
|
11830
11835
|
default: () => [createVNode(Row, null, {
|
11831
11836
|
default: () => {
|
11832
11837
|
var U;
|
11833
|
-
return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((
|
11834
|
-
kgVarName:
|
11838
|
+
return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((H) => createVNode(KgForm.Item, {
|
11839
|
+
kgVarName: H.var_nam,
|
11835
11840
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
11836
|
-
onKgSubmit: () =>
|
11841
|
+
onKgSubmit: () => I(!0)
|
11837
11842
|
}, null))];
|
11838
11843
|
}
|
11839
11844
|
})]
|
@@ -11841,17 +11846,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11841
11846
|
}
|
11842
11847
|
});
|
11843
11848
|
}
|
11844
|
-
function R(
|
11845
|
-
console.log("333:value",
|
11849
|
+
function R(V) {
|
11850
|
+
console.log("333:value", V);
|
11846
11851
|
}
|
11847
|
-
function
|
11852
|
+
function G() {
|
11848
11853
|
y.value ? _.value.kgHeight = l.value : _.value.kgHeight = c.value;
|
11849
11854
|
}
|
11850
11855
|
return () => createVNode(KgResizable, {
|
11851
|
-
class:
|
11856
|
+
class: k.value,
|
11852
11857
|
"kg-frm-id": r.formID,
|
11853
11858
|
kgHeight: _.value.kgHeight,
|
11854
|
-
"onUpdate:kgHeight": (
|
11859
|
+
"onUpdate:kgHeight": (V) => _.value.kgHeight = V,
|
11855
11860
|
kgMinHeight: c.value,
|
11856
11861
|
kgMaxHeight: u.value
|
11857
11862
|
}, {
|
@@ -11868,15 +11873,15 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11868
11873
|
}, [createVNode(Spin, {
|
11869
11874
|
spinning: B.value
|
11870
11875
|
}, {
|
11871
|
-
default: () => [
|
11876
|
+
default: () => [$(), createVNode("div", {
|
11872
11877
|
class: "ant-collapse-extra"
|
11873
|
-
}, [
|
11878
|
+
}, [O()])]
|
11874
11879
|
})])]
|
11875
11880
|
}), createVNode("div", {
|
11876
11881
|
class: "ant-collapse-content ant-collapse-content-active"
|
11877
11882
|
}, [createVNode("div", {
|
11878
11883
|
class: "ant-collapse-content-box"
|
11879
|
-
}, [
|
11884
|
+
}, [F()])])])])]
|
11880
11885
|
});
|
11881
11886
|
}
|
11882
11887
|
});
|
@@ -11942,8 +11947,8 @@ function useMagicKeys(e = {}) {
|
|
11942
11947
|
}
|
11943
11948
|
function p(_, v) {
|
11944
11949
|
var C, y;
|
11945
|
-
const E = (C = _.key) == null ? void 0 : C.toLowerCase(),
|
11946
|
-
|
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));
|
11947
11952
|
for (const T of P)
|
11948
11953
|
c.add(T), d(T, v);
|
11949
11954
|
E === "meta" && !v ? (u.forEach((T) => {
|
@@ -11957,8 +11962,8 @@ function useMagicKeys(e = {}) {
|
|
11957
11962
|
return Reflect.get(_, v, C);
|
11958
11963
|
if (v = v.toLowerCase(), v in n && (v = n[v]), !(v in l))
|
11959
11964
|
if (/[+_-]/.test(v)) {
|
11960
|
-
const E = v.split(/[+_-]/g).map((
|
11961
|
-
l[v] = computed(() => E.every((
|
11965
|
+
const E = v.split(/[+_-]/g).map((A) => A.trim());
|
11966
|
+
l[v] = computed(() => E.every((A) => unref(b[A])));
|
11962
11967
|
} else
|
11963
11968
|
l[v] = ref(!1);
|
11964
11969
|
const y = Reflect.get(_, v, C);
|
@@ -12347,112 +12352,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12347
12352
|
columnWidth: 32,
|
12348
12353
|
hideSelectAll: !0,
|
12349
12354
|
selectedRowKeys: d,
|
12350
|
-
onSelect: (
|
12355
|
+
onSelect: (L) => B(L)
|
12351
12356
|
}), p = ref({
|
12352
12357
|
visible: !1
|
12353
12358
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
12354
|
-
var
|
12355
|
-
return !!c.value || ((
|
12359
|
+
var L;
|
12360
|
+
return !!c.value || ((L = n.getSelectedVarCatalog) == null ? void 0 : L.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12356
12361
|
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12357
|
-
watch(() => n.getSelectedVar, (
|
12358
|
-
|
12362
|
+
watch(() => n.getSelectedVar, (L) => {
|
12363
|
+
L ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12359
12364
|
}, {
|
12360
12365
|
immediate: !0
|
12361
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12362
|
-
var
|
12363
|
-
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();
|
12364
12369
|
});
|
12365
|
-
async function y(
|
12366
|
-
var
|
12370
|
+
async function y(L = !1) {
|
12371
|
+
var $, M, O;
|
12367
12372
|
a.value = !0;
|
12368
12373
|
try {
|
12369
12374
|
const {
|
12370
|
-
records:
|
12375
|
+
records: F
|
12371
12376
|
} = await List$1({
|
12372
12377
|
params: {
|
12373
12378
|
pageNo: 1,
|
12374
12379
|
pageSize: 999,
|
12375
12380
|
frm_id: e == null ? void 0 : e.value,
|
12376
|
-
var_nam: (
|
12381
|
+
var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
|
12377
12382
|
column: "frm_id,locale_id,cust_lvl",
|
12378
12383
|
order: "asc"
|
12379
12384
|
}
|
12380
12385
|
});
|
12381
|
-
if (c.value = null, u.value =
|
12382
|
-
const R = u.value.find((
|
12383
|
-
var
|
12384
|
-
return
|
12386
|
+
if (c.value = null, u.value = F != null ? F : [], L) {
|
12387
|
+
const R = u.value.find((G) => {
|
12388
|
+
var V;
|
12389
|
+
return G.id === ((V = n.getSelectedVarCatalog) == null ? void 0 : V.id);
|
12385
12390
|
});
|
12386
12391
|
n.setSelectedVarCatalog(R != null ? R : null), d.value = R != null && R.id ? [R.id] : [];
|
12387
12392
|
} else
|
12388
|
-
n.setSelectedVarCatalog((
|
12389
|
-
} catch (
|
12390
|
-
Logger.debug(
|
12393
|
+
n.setSelectedVarCatalog((M = u.value[0]) != null ? M : null), d.value = (O = u.value[0]) != null && O.id ? [u.value[0].id] : [];
|
12394
|
+
} catch (F) {
|
12395
|
+
Logger.debug(F == null ? void 0 : F.message);
|
12391
12396
|
} finally {
|
12392
12397
|
a.value = !1;
|
12393
12398
|
}
|
12394
12399
|
}
|
12395
12400
|
async function E() {
|
12396
|
-
var
|
12401
|
+
var L, $, M;
|
12397
12402
|
try {
|
12398
|
-
o.value = !0, await ((
|
12399
|
-
const
|
12400
|
-
...(
|
12401
|
-
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
|
12402
12407
|
});
|
12403
|
-
|
12404
|
-
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
|
12405
12410
|
}, {
|
12406
12411
|
successMessageMode: "none"
|
12407
12412
|
}), message.success({
|
12408
12413
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12409
12414
|
}), await y()) : (await Edit$1({
|
12410
|
-
data:
|
12415
|
+
data: O
|
12411
12416
|
}, {
|
12412
12417
|
successMessageMode: "none"
|
12413
12418
|
}), message.success({
|
12414
12419
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
12415
12420
|
}), await y(!0)) : (await Add$1({
|
12416
|
-
data:
|
12421
|
+
data: O
|
12417
12422
|
}, {
|
12418
12423
|
successMessageMode: "none"
|
12419
12424
|
}), message.success({
|
12420
12425
|
content: t.t("kg.KgVarConfig.createSuccess")
|
12421
12426
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
12422
|
-
} catch (
|
12423
|
-
KgUtil.throwIfNotFormError(
|
12427
|
+
} catch (O) {
|
12428
|
+
KgUtil.throwIfNotFormError(O);
|
12424
12429
|
} finally {
|
12425
12430
|
o.value = !1;
|
12426
12431
|
}
|
12427
12432
|
}
|
12428
|
-
function
|
12429
|
-
isAllForm:
|
12430
|
-
isAllLanguage:
|
12433
|
+
function A({
|
12434
|
+
isAllForm: L,
|
12435
|
+
isAllLanguage: $
|
12431
12436
|
}) {
|
12432
|
-
var
|
12437
|
+
var M, O, F;
|
12433
12438
|
c.value = new VarCatalog({
|
12434
12439
|
id: "",
|
12435
12440
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12436
|
-
grp_nam: (
|
12437
|
-
var_nam: (
|
12438
|
-
frm_id:
|
12439
|
-
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,
|
12440
12445
|
var_text: ""
|
12441
12446
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), d.value = [""];
|
12442
12447
|
}
|
12443
12448
|
function P() {
|
12444
|
-
var
|
12449
|
+
var $;
|
12445
12450
|
u.value = without$1(u.value, c.value), c.value = null;
|
12446
|
-
const
|
12447
|
-
n.setSelectedVarCatalog(
|
12451
|
+
const L = ($ = u.value[0]) != null ? $ : null;
|
12452
|
+
n.setSelectedVarCatalog(L), d.value = L ? [L.id] : [];
|
12448
12453
|
}
|
12449
12454
|
function T() {
|
12450
12455
|
KgUtil.confirm({
|
12451
12456
|
onOk: async () => {
|
12452
|
-
var
|
12457
|
+
var L;
|
12453
12458
|
await Delete$1({
|
12454
12459
|
params: {
|
12455
|
-
id: (
|
12460
|
+
id: (L = n.getSelectedVarCatalog) == null ? void 0 : L.id
|
12456
12461
|
}
|
12457
12462
|
}, {
|
12458
12463
|
successMessageMode: "none",
|
@@ -12463,23 +12468,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12463
12468
|
}
|
12464
12469
|
});
|
12465
12470
|
}
|
12466
|
-
function B(
|
12467
|
-
var
|
12468
|
-
((
|
12471
|
+
function B(L) {
|
12472
|
+
var $;
|
12473
|
+
(($ = n.getSelectedVarCatalog) == null ? void 0 : $.id) !== L.id && (unref(c) ? KgUtil.confirm({
|
12469
12474
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12470
12475
|
onOk: () => {
|
12471
|
-
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];
|
12472
12477
|
}
|
12473
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12478
|
+
}) : (n.setSelectedVarCatalog(unref(L)), d.value = [L.id]));
|
12474
12479
|
}
|
12475
|
-
function
|
12480
|
+
function N() {
|
12476
12481
|
p.value.visible = !0;
|
12477
12482
|
}
|
12478
|
-
function
|
12483
|
+
function k() {
|
12479
12484
|
return createVNode("div", {
|
12480
12485
|
class: "buttons"
|
12481
12486
|
}, [createVNode(Button, {
|
12482
|
-
onClick:
|
12487
|
+
onClick: N,
|
12483
12488
|
disabled: b.value,
|
12484
12489
|
type: "primary"
|
12485
12490
|
}, {
|
@@ -12494,8 +12499,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12494
12499
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12495
12500
|
})]);
|
12496
12501
|
}
|
12497
|
-
function
|
12498
|
-
let
|
12502
|
+
function I() {
|
12503
|
+
let L, $;
|
12499
12504
|
return createVNode("div", {
|
12500
12505
|
class: "form"
|
12501
12506
|
}, [createVNode(Form, {
|
@@ -12512,7 +12517,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12512
12517
|
}, {
|
12513
12518
|
default: () => [createVNode(Textarea, {
|
12514
12519
|
value: l.value.var_text,
|
12515
|
-
"onUpdate:value": (
|
12520
|
+
"onUpdate:value": (M) => l.value.var_text = M,
|
12516
12521
|
disabled: !n.getSelectedVarCatalog
|
12517
12522
|
}, null), createVNode("button", {
|
12518
12523
|
hidden: !0
|
@@ -12523,25 +12528,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12523
12528
|
}, [createVNode(Button, {
|
12524
12529
|
disabled: v.value,
|
12525
12530
|
onClick: P
|
12526
|
-
}, _isSlot(
|
12527
|
-
default: () => [
|
12531
|
+
}, _isSlot(L = t.t("common.cancelText")) ? L : {
|
12532
|
+
default: () => [L]
|
12528
12533
|
}), createVNode(Button, {
|
12529
12534
|
loading: o.value,
|
12530
12535
|
disabled: C.value,
|
12531
12536
|
onClick: E,
|
12532
12537
|
type: "primary"
|
12533
|
-
}, _isSlot(
|
12534
|
-
default: () => [
|
12538
|
+
}, _isSlot($ = t.t("common.save")) ? $ : {
|
12539
|
+
default: () => [$]
|
12535
12540
|
})])]);
|
12536
12541
|
}
|
12537
|
-
function
|
12538
|
-
var
|
12539
|
-
let
|
12540
|
-
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 "), $;
|
12541
12546
|
}
|
12542
12547
|
return () => createVNode("div", {
|
12543
12548
|
class: "kg-var-config-modal-var-var-catalog"
|
12544
|
-
}, [
|
12549
|
+
}, [k(), createVNode(Table, {
|
12545
12550
|
pagination: !1,
|
12546
12551
|
class: "kg-flex-table",
|
12547
12552
|
size: "small",
|
@@ -12553,15 +12558,15 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12553
12558
|
rowKey: "id",
|
12554
12559
|
dataSource: u.value,
|
12555
12560
|
loading: a.value,
|
12556
|
-
rowClassName:
|
12561
|
+
rowClassName: w,
|
12557
12562
|
rowSelection: m.value,
|
12558
|
-
customRow: (
|
12559
|
-
onClick: () => B(
|
12563
|
+
customRow: (L) => ({
|
12564
|
+
onClick: () => B(L)
|
12560
12565
|
})
|
12561
|
-
}, null),
|
12566
|
+
}, null), I(), createVNode(KgVarConfigModalVarCreateModal, {
|
12562
12567
|
visible: p.value.visible,
|
12563
|
-
"onUpdate:visible": (
|
12564
|
-
onKgOk:
|
12568
|
+
"onUpdate:visible": (L) => p.value.visible = L,
|
12569
|
+
onKgOk: A
|
12565
12570
|
}, null)]);
|
12566
12571
|
}
|
12567
12572
|
}), columns = () => [{
|
@@ -12873,16 +12878,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12873
12878
|
emit: t
|
12874
12879
|
}) {
|
12875
12880
|
const r = useKg(), n = useKgWarehouse(), a = computed(() => {
|
12876
|
-
let
|
12877
|
-
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;
|
12878
12883
|
}), o = ref(""), s = n.warehouse, i = ref(null), l = ref(!1), u = reactive([{
|
12879
12884
|
width: 80,
|
12880
12885
|
align: "center",
|
12881
12886
|
customRender: ({
|
12882
|
-
record:
|
12887
|
+
record: A
|
12883
12888
|
}) => {
|
12884
12889
|
var T;
|
12885
|
-
return
|
12890
|
+
return A.id === ((T = i.value) == null ? void 0 : T.id) ? createVNode("img", {
|
12886
12891
|
src: WAREHOUSE_1890ff
|
12887
12892
|
}, null) : createVNode("img", {
|
12888
12893
|
src: WAREHOUSE_000000
|
@@ -12890,27 +12895,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12890
12895
|
}
|
12891
12896
|
}, {
|
12892
12897
|
customRender: ({
|
12893
|
-
record:
|
12898
|
+
record: A
|
12894
12899
|
}) => {
|
12895
|
-
var T, B,
|
12896
|
-
const P =
|
12900
|
+
var T, B, N;
|
12901
|
+
const P = A;
|
12897
12902
|
return createVNode("div", null, [createVNode("div", null, [(T = P.whDsc) != null ? T : " ", createTextVNode(" - "), (B = P.whId) != null ? B : " "]), createVNode("div", {
|
12898
12903
|
class: "address"
|
12899
|
-
}, [(
|
12904
|
+
}, [(N = P.adrId) != null ? N : " "])]);
|
12900
12905
|
}
|
12901
12906
|
}]), c = ref([]), d = computed(() => {
|
12902
12907
|
var P;
|
12903
|
-
const
|
12908
|
+
const A = (P = o.value) == null ? void 0 : P.toUpperCase();
|
12904
12909
|
return c.value.filter((T) => {
|
12905
|
-
var B,
|
12906
|
-
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));
|
12907
12912
|
});
|
12908
12913
|
}), m = computed(() => {
|
12909
|
-
var
|
12910
|
-
return ((P = (
|
12914
|
+
var A, P;
|
12915
|
+
return ((P = (A = r.option.value) == null ? void 0 : A.KgWarehouse) == null ? void 0 : P.enable) !== !1;
|
12911
12916
|
});
|
12912
|
-
watch(n.visible, (
|
12913
|
-
!m.value || (
|
12917
|
+
watch(n.visible, (A) => {
|
12918
|
+
!m.value || (A ? b() : _());
|
12914
12919
|
}, {
|
12915
12920
|
immediate: !0
|
12916
12921
|
}), onMounted(() => {
|
@@ -12926,8 +12931,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12926
12931
|
o.value = "", c.value = [], i.value = null;
|
12927
12932
|
}
|
12928
12933
|
function v() {
|
12929
|
-
var
|
12930
|
-
!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({
|
12931
12936
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
12932
12937
|
kgHideCancelButton: !0,
|
12933
12938
|
okButtonProps: {
|
@@ -12943,23 +12948,23 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12943
12948
|
l.value = !0;
|
12944
12949
|
try {
|
12945
12950
|
const {
|
12946
|
-
records:
|
12951
|
+
records: A
|
12947
12952
|
} = await ListVO({
|
12948
12953
|
params: {
|
12949
12954
|
pageNo: 1,
|
12950
12955
|
pageSize: 999
|
12951
12956
|
}
|
12952
12957
|
});
|
12953
|
-
c.value =
|
12954
|
-
} catch (
|
12955
|
-
console.error(
|
12958
|
+
c.value = A != null ? A : [];
|
12959
|
+
} catch (A) {
|
12960
|
+
console.error(A);
|
12956
12961
|
} finally {
|
12957
12962
|
l.value = !1;
|
12958
12963
|
}
|
12959
12964
|
}
|
12960
|
-
function y(
|
12965
|
+
function y(A, P) {
|
12961
12966
|
var T;
|
12962
|
-
switch (
|
12967
|
+
switch (A.detail) {
|
12963
12968
|
case 1:
|
12964
12969
|
((T = i.value) == null ? void 0 : T.id) === P.id ? i.value = null : i.value = P;
|
12965
12970
|
break;
|
@@ -12974,12 +12979,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12974
12979
|
placement: "bottomRight"
|
12975
12980
|
}, {
|
12976
12981
|
default: () => {
|
12977
|
-
var
|
12978
|
-
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")];
|
12979
12984
|
}
|
12980
12985
|
}), createVNode(KgModal, {
|
12981
12986
|
visible: n.visible.value,
|
12982
|
-
"onUpdate:visible": (
|
12987
|
+
"onUpdate:visible": (A) => n.store.setVisible(A),
|
12983
12988
|
title: r.t("kg.KgWarehouse.title"),
|
12984
12989
|
width: "500px",
|
12985
12990
|
kgFullHeight: !1,
|
@@ -12996,7 +13001,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
12996
13001
|
}, {
|
12997
13002
|
default: () => [createVNode(Input, {
|
12998
13003
|
value: o.value,
|
12999
|
-
"onUpdate:value": (
|
13004
|
+
"onUpdate:value": (A) => o.value = A,
|
13000
13005
|
allowClear: !0,
|
13001
13006
|
disabled: l.value,
|
13002
13007
|
placeholder: r.t("kg.search")
|
@@ -13016,11 +13021,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13016
13021
|
dataSource: d.value,
|
13017
13022
|
columns: u,
|
13018
13023
|
class: "kg-flex-table",
|
13019
|
-
customRow: (
|
13024
|
+
customRow: (A) => {
|
13020
13025
|
var P;
|
13021
13026
|
return {
|
13022
|
-
class:
|
13023
|
-
onClick: (T) => y(T,
|
13027
|
+
class: A.id === ((P = i.value) == null ? void 0 : P.id) ? "selected" : "",
|
13028
|
+
onClick: (T) => y(T, A)
|
13024
13029
|
};
|
13025
13030
|
}
|
13026
13031
|
}, null)]
|