@kengic/vue 0.19.2-beta.4 → 0.19.2-beta.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +572 -572
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2930,7 +2930,7 @@ const emptyIcon = {
|
|
2930
2930
|
...t.data
|
2931
2931
|
}, r);
|
2932
2932
|
}
|
2933
|
-
}), version = "0.19.2-beta.
|
2933
|
+
}), version = "0.19.2-beta.5";
|
2934
2934
|
var isVue2 = !1;
|
2935
2935
|
function set(e, t, r) {
|
2936
2936
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
@@ -3161,18 +3161,18 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3161
3161
|
return function() {
|
3162
3162
|
setActivePinia(a);
|
3163
3163
|
const D = Array.from(arguments), K = [], P = [];
|
3164
|
-
function
|
3164
|
+
function x(R) {
|
3165
3165
|
K.push(R);
|
3166
3166
|
}
|
3167
|
-
function
|
3167
|
+
function N(R) {
|
3168
3168
|
P.push(R);
|
3169
3169
|
}
|
3170
3170
|
triggerSubscriptions(b, {
|
3171
3171
|
args: D,
|
3172
3172
|
name: M,
|
3173
3173
|
store: C,
|
3174
|
-
after:
|
3175
|
-
onError:
|
3174
|
+
after: x,
|
3175
|
+
onError: N
|
3176
3176
|
});
|
3177
3177
|
let O;
|
3178
3178
|
try {
|
@@ -5308,12 +5308,12 @@ class KgRouteUtil {
|
|
5308
5308
|
}), t;
|
5309
5309
|
}
|
5310
5310
|
static transformMenus(t) {
|
5311
|
-
var
|
5311
|
+
var d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, x, N, O, R, V, F, U, L, $, q, z, J, re, ee, oe, ue;
|
5312
5312
|
if (!t)
|
5313
5313
|
return [];
|
5314
|
-
const r = useKg(), a = (
|
5315
|
-
|
5316
|
-
|
5314
|
+
const r = useKg(), a = (ae) => {
|
5315
|
+
ae.forEach((ne) => {
|
5316
|
+
ne.key && ne.key !== ne.value && (ne.value = ne.key), ne.children && a(ne.children);
|
5317
5317
|
});
|
5318
5318
|
};
|
5319
5319
|
a(t);
|
@@ -5346,10 +5346,10 @@ class KgRouteUtil {
|
|
5346
5346
|
children: [],
|
5347
5347
|
id: KG_TMP_MENU_ID__DATA_MANAGER,
|
5348
5348
|
key: KG_TMP_MENU_ID__DATA_MANAGER,
|
5349
|
-
name: (
|
5350
|
-
slotTitle: (
|
5349
|
+
name: (b = (d = r.option.value.appTitle) == null ? void 0 : d[KG_APP.WMS_DATA_MANAGER]) != null ? b : "\u6570\u636E\u7BA1\u7406",
|
5350
|
+
slotTitle: (g = (E = r.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_DATA_MANAGER]) != null ? g : "\u6570\u636E\u7BA1\u7406",
|
5351
5351
|
sortNo: 1,
|
5352
|
-
title: (
|
5352
|
+
title: (_ = (m = r.option.value.appTitle) == null ? void 0 : m[KG_APP.WMS_DATA_MANAGER]) != null ? _ : "\u6570\u636E\u7BA1\u7406",
|
5353
5353
|
...n,
|
5354
5354
|
url: KG_APP_PREFIX.WMS_DATA_MANAGER,
|
5355
5355
|
value: KG_TMP_MENU_ID__DATA_MANAGER
|
@@ -5357,10 +5357,10 @@ class KgRouteUtil {
|
|
5357
5357
|
children: [],
|
5358
5358
|
id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
5359
5359
|
key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
5360
|
-
name: (
|
5361
|
-
slotTitle: (
|
5360
|
+
name: (v = (y = r.option.value.appTitle) == null ? void 0 : y[KG_APP.WMS_BUSINESS_MANAGER]) != null ? v : "\u4ED3\u5E93\u7BA1\u7406",
|
5361
|
+
slotTitle: (k = (T = r.option.value.appTitle) == null ? void 0 : T[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
|
5362
5362
|
sortNo: 2,
|
5363
|
-
title: (
|
5363
|
+
title: (C = (A = r.option.value.appTitle) == null ? void 0 : A[KG_APP.WMS_BUSINESS_MANAGER]) != null ? C : "\u4ED3\u5E93\u7BA1\u7406",
|
5364
5364
|
...n,
|
5365
5365
|
url: KG_APP_PREFIX.WMS_BUSINESS_MANAGER,
|
5366
5366
|
value: KG_TMP_MENU_ID__BUSINESS_MANAGER
|
@@ -5368,19 +5368,19 @@ class KgRouteUtil {
|
|
5368
5368
|
children: [],
|
5369
5369
|
id: KG_TMP_MENU_ID__WCS,
|
5370
5370
|
key: KG_TMP_MENU_ID__WCS,
|
5371
|
-
name: (
|
5372
|
-
slotTitle: (
|
5371
|
+
name: (M = (w = r.option.value.appTitle) == null ? void 0 : w[KG_APP.WCS]) != null ? M : "WCS",
|
5372
|
+
slotTitle: (D = (I = r.option.value.appTitle) == null ? void 0 : I[KG_APP.WCS]) != null ? D : "WCS",
|
5373
5373
|
sortNo: 3,
|
5374
|
-
title: (
|
5374
|
+
title: (P = (K = r.option.value.appTitle) == null ? void 0 : K[KG_APP.WCS]) != null ? P : "WCS",
|
5375
5375
|
...n,
|
5376
5376
|
url: KG_APP_PREFIX.WCS,
|
5377
5377
|
value: KG_TMP_MENU_ID__WCS
|
5378
5378
|
}, l = {
|
5379
5379
|
id: KG_TMP_MENU_ID__SYS,
|
5380
5380
|
key: KG_TMP_MENU_ID__SYS,
|
5381
|
-
title: (
|
5382
|
-
name: (
|
5383
|
-
slotTitle: (
|
5381
|
+
title: (N = (x = r.option.value.appTitle) == null ? void 0 : x[KG_APP.SYS]) != null ? N : "\u7CFB\u7EDF\u914D\u7F6E",
|
5382
|
+
name: (R = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.SYS]) != null ? R : "\u7CFB\u7EDF\u914D\u7F6E",
|
5383
|
+
slotTitle: (F = (V = r.option.value.appTitle) == null ? void 0 : V[KG_APP.SYS]) != null ? F : "\u7CFB\u7EDF\u914D\u7F6E",
|
5384
5384
|
sortNo: 4,
|
5385
5385
|
children: [],
|
5386
5386
|
...n,
|
@@ -5397,25 +5397,27 @@ class KgRouteUtil {
|
|
5397
5397
|
children: [],
|
5398
5398
|
...n
|
5399
5399
|
};
|
5400
|
-
|
5400
|
+
t.forEach((ae) => {
|
5401
5401
|
switch (!0) {
|
5402
|
-
case
|
5403
|
-
|
5402
|
+
case ae.app === "PDA":
|
5403
|
+
ae.parentId = KG_TMP_MENU_ID__PDA, c.children.push(ae);
|
5404
5404
|
break;
|
5405
|
-
case KgRouteUtil.isPathInApp(
|
5406
|
-
|
5405
|
+
case KgRouteUtil.isPathInApp(ae.url, KG_APP.WMS_DATA_MANAGER):
|
5406
|
+
ae.parentId = KG_TMP_MENU_ID__DATA_MANAGER, s.children.push(ae);
|
5407
5407
|
break;
|
5408
|
-
case KgRouteUtil.isPathInApp(
|
5409
|
-
|
5408
|
+
case KgRouteUtil.isPathInApp(ae.url, KG_APP.WMS_BUSINESS_MANAGER):
|
5409
|
+
ae.parentId = KG_TMP_MENU_ID__BUSINESS_MANAGER, i.children.push(ae);
|
5410
5410
|
break;
|
5411
|
-
case KgRouteUtil.isPathInApp(
|
5412
|
-
|
5411
|
+
case KgRouteUtil.isPathInApp(ae.url, KG_APP.WCS):
|
5412
|
+
ae.parentId = KG_TMP_MENU_ID__WCS, o.children.push(ae);
|
5413
5413
|
break;
|
5414
|
-
case KgRouteUtil.isPathInApp(
|
5415
|
-
|
5414
|
+
case KgRouteUtil.isPathInApp(ae.url, KG_APP.SYS):
|
5415
|
+
ae.parentId = KG_TMP_MENU_ID__SYS, l.children.push(ae);
|
5416
5416
|
break;
|
5417
5417
|
}
|
5418
|
-
})
|
5418
|
+
});
|
5419
|
+
let u = [];
|
5420
|
+
return ((L = (U = s.children) == null ? void 0 : U.length) != null ? L : 0 > 0) && u.push(s), ((q = ($ = i.children) == null ? void 0 : $.length) != null ? q : 0 > 0) && u.push(i), ((J = (z = o.children) == null ? void 0 : z.length) != null ? J : 0 > 0) && u.push(o), ((ee = (re = l.children) == null ? void 0 : re.length) != null ? ee : 0 > 0) && u.push(l), ((ue = (oe = c.children) == null ? void 0 : oe.length) != null ? ue : 0 > 0) && u.push(c), u;
|
5419
5421
|
}
|
5420
5422
|
static isPathInApp(t, r) {
|
5421
5423
|
if (!t || !r)
|
@@ -5470,8 +5472,6 @@ class KgAuthUtil {
|
|
5470
5472
|
var n, s, i, o;
|
5471
5473
|
if (!t)
|
5472
5474
|
return KgLogger.debug("KgAuthUtil | isAppAuthenticated() | \u6A21\u5757\u4E3A\u7A7A.", { app: t }), !1;
|
5473
|
-
if (KgAuthUtil.isAdminUser())
|
5474
|
-
return !0;
|
5475
5475
|
const a = (o = (i = (s = (n = useKg().store).getUsePermissionStore) == null ? void 0 : s.call(n)) == null ? void 0 : i.getBackMenuList) == null ? void 0 : o.map((l) => l.path);
|
5476
5476
|
return !!(a != null && a.some((l) => KgRouteUtil.isPathInApp(l, t)));
|
5477
5477
|
}
|
@@ -5502,76 +5502,76 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5502
5502
|
(function(r, a) {
|
5503
5503
|
e.exports = a();
|
5504
5504
|
})(commonjsGlobal, function() {
|
5505
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { 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(
|
5506
|
-
var O = ["th", "st", "nd", "rd"], R =
|
5507
|
-
return "[" +
|
5508
|
-
} }, T = function(
|
5509
|
-
var V = String(
|
5510
|
-
return !V || V.length >= O ?
|
5511
|
-
}, k = { s: T, z: function(
|
5512
|
-
var O = -
|
5513
|
-
return (O <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(
|
5514
|
-
}, m: function
|
5505
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|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, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(N) {
|
5506
|
+
var O = ["th", "st", "nd", "rd"], R = N % 100;
|
5507
|
+
return "[" + N + (O[(R - 20) % 10] || O[R] || O[0]) + "]";
|
5508
|
+
} }, T = function(N, O, R) {
|
5509
|
+
var V = String(N);
|
5510
|
+
return !V || V.length >= O ? N : "" + Array(O + 1 - V.length).join(R) + N;
|
5511
|
+
}, k = { s: T, z: function(N) {
|
5512
|
+
var O = -N.utcOffset(), R = Math.abs(O), V = Math.floor(R / 60), F = R % 60;
|
5513
|
+
return (O <= 0 ? "+" : "-") + T(V, 2, "0") + ":" + T(F, 2, "0");
|
5514
|
+
}, m: function N(O, R) {
|
5515
5515
|
if (O.date() < R.date())
|
5516
|
-
return -
|
5517
|
-
var V = 12 * (R.year() - O.year()) + (R.month() - O.month()),
|
5518
|
-
return +(-(V + (R -
|
5519
|
-
}, a: function(
|
5520
|
-
return
|
5521
|
-
}, p: function(
|
5522
|
-
return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[
|
5523
|
-
}, u: function(
|
5524
|
-
return
|
5516
|
+
return -N(R, O);
|
5517
|
+
var V = 12 * (R.year() - O.year()) + (R.month() - O.month()), F = O.clone().add(V, d), U = R - F < 0, L = O.clone().add(V + (U ? -1 : 1), d);
|
5518
|
+
return +(-(V + (R - F) / (U ? F - L : L - F)) || 0);
|
5519
|
+
}, a: function(N) {
|
5520
|
+
return N < 0 ? Math.ceil(N) || 0 : Math.floor(N);
|
5521
|
+
}, p: function(N) {
|
5522
|
+
return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[N] || String(N || "").toLowerCase().replace(/s$/, "");
|
5523
|
+
}, u: function(N) {
|
5524
|
+
return N === void 0;
|
5525
5525
|
} }, A = "en", C = {};
|
5526
5526
|
C[A] = v;
|
5527
|
-
var w = "$isDayjsObject", M = function(
|
5528
|
-
return
|
5529
|
-
}, I = function
|
5530
|
-
var
|
5527
|
+
var w = "$isDayjsObject", M = function(N) {
|
5528
|
+
return N instanceof P || !(!N || !N[w]);
|
5529
|
+
}, I = function N(O, R, V) {
|
5530
|
+
var F;
|
5531
5531
|
if (!O)
|
5532
5532
|
return A;
|
5533
5533
|
if (typeof O == "string") {
|
5534
|
-
var
|
5535
|
-
C[
|
5536
|
-
var
|
5537
|
-
if (!
|
5538
|
-
return L
|
5534
|
+
var U = O.toLowerCase();
|
5535
|
+
C[U] && (F = U), R && (C[U] = R, F = U);
|
5536
|
+
var L = O.split("-");
|
5537
|
+
if (!F && L.length > 1)
|
5538
|
+
return N(L[0]);
|
5539
5539
|
} else {
|
5540
|
-
var
|
5541
|
-
C[
|
5540
|
+
var $ = O.name;
|
5541
|
+
C[$] = O, F = $;
|
5542
5542
|
}
|
5543
|
-
return !V &&
|
5544
|
-
}, D = function(
|
5545
|
-
if (M(
|
5546
|
-
return
|
5543
|
+
return !V && F && (A = F), F || !V && A;
|
5544
|
+
}, D = function(N, O) {
|
5545
|
+
if (M(N))
|
5546
|
+
return N.clone();
|
5547
5547
|
var R = typeof O == "object" ? O : {};
|
5548
|
-
return R.date =
|
5548
|
+
return R.date = N, R.args = arguments, new P(R);
|
5549
5549
|
}, K = k;
|
5550
|
-
K.l = I, K.i = M, K.w = function(
|
5551
|
-
return D(
|
5550
|
+
K.l = I, K.i = M, K.w = function(N, O) {
|
5551
|
+
return D(N, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
5552
5552
|
};
|
5553
5553
|
var P = function() {
|
5554
|
-
function
|
5554
|
+
function N(R) {
|
5555
5555
|
this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[w] = !0;
|
5556
5556
|
}
|
5557
|
-
var O =
|
5557
|
+
var O = N.prototype;
|
5558
5558
|
return O.parse = function(R) {
|
5559
5559
|
this.$d = function(V) {
|
5560
|
-
var
|
5561
|
-
if (
|
5560
|
+
var F = V.date, U = V.utc;
|
5561
|
+
if (F === null)
|
5562
5562
|
return new Date(NaN);
|
5563
|
-
if (K.u(
|
5563
|
+
if (K.u(F))
|
5564
5564
|
return new Date();
|
5565
|
-
if (
|
5566
|
-
return new Date(
|
5567
|
-
if (typeof
|
5568
|
-
var
|
5569
|
-
if (
|
5570
|
-
var
|
5571
|
-
return
|
5565
|
+
if (F instanceof Date)
|
5566
|
+
return new Date(F);
|
5567
|
+
if (typeof F == "string" && !/Z$/i.test(F)) {
|
5568
|
+
var L = F.match(_);
|
5569
|
+
if (L) {
|
5570
|
+
var $ = L[2] - 1 || 0, q = (L[7] || "0").substring(0, 3);
|
5571
|
+
return U ? new Date(Date.UTC(L[1], $, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q)) : new Date(L[1], $, L[3] || 1, L[4] || 0, L[5] || 0, L[6] || 0, q);
|
5572
5572
|
}
|
5573
5573
|
}
|
5574
|
-
return new Date(
|
5574
|
+
return new Date(F);
|
5575
5575
|
}(R), this.init();
|
5576
5576
|
}, O.init = function() {
|
5577
5577
|
var R = this.$d;
|
@@ -5581,91 +5581,91 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5581
5581
|
}, O.isValid = function() {
|
5582
5582
|
return this.$d.toString() !== m;
|
5583
5583
|
}, O.isSame = function(R, V) {
|
5584
|
-
var
|
5585
|
-
return this.startOf(V) <=
|
5584
|
+
var F = D(R);
|
5585
|
+
return this.startOf(V) <= F && F <= this.endOf(V);
|
5586
5586
|
}, O.isAfter = function(R, V) {
|
5587
5587
|
return D(R) < this.startOf(V);
|
5588
5588
|
}, O.isBefore = function(R, V) {
|
5589
5589
|
return this.endOf(V) < D(R);
|
5590
|
-
}, O.$g = function(R, V,
|
5591
|
-
return K.u(R) ? this[V] : this.set(
|
5590
|
+
}, O.$g = function(R, V, F) {
|
5591
|
+
return K.u(R) ? this[V] : this.set(F, R);
|
5592
5592
|
}, O.unix = function() {
|
5593
5593
|
return Math.floor(this.valueOf() / 1e3);
|
5594
5594
|
}, O.valueOf = function() {
|
5595
5595
|
return this.$d.getTime();
|
5596
5596
|
}, O.startOf = function(R, V) {
|
5597
|
-
var
|
5598
|
-
var B = K.w(
|
5599
|
-
return
|
5600
|
-
},
|
5601
|
-
return K.w(
|
5602
|
-
},
|
5603
|
-
switch (
|
5597
|
+
var F = this, U = !!K.u(V) || V, L = K.p(R), $ = function(ae, ne) {
|
5598
|
+
var B = K.w(F.$u ? Date.UTC(F.$y, ne, ae) : new Date(F.$y, ne, ae), F);
|
5599
|
+
return U ? B : B.endOf(c);
|
5600
|
+
}, q = function(ae, ne) {
|
5601
|
+
return K.w(F.toDate()[ae].apply(F.toDate("s"), (U ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
5602
|
+
}, z = this.$W, J = this.$M, re = this.$D, ee = "set" + (this.$u ? "UTC" : "");
|
5603
|
+
switch (L) {
|
5604
5604
|
case E:
|
5605
|
-
return
|
5605
|
+
return U ? $(1, 0) : $(31, 11);
|
5606
5606
|
case d:
|
5607
|
-
return
|
5607
|
+
return U ? $(1, J) : $(0, J + 1);
|
5608
5608
|
case u:
|
5609
|
-
var
|
5610
|
-
return
|
5609
|
+
var oe = this.$locale().weekStart || 0, ue = (z < oe ? z + 7 : z) - oe;
|
5610
|
+
return $(U ? re - ue : re + (6 - ue), J);
|
5611
5611
|
case c:
|
5612
5612
|
case g:
|
5613
|
-
return
|
5613
|
+
return q(ee + "Hours", 0);
|
5614
5614
|
case l:
|
5615
|
-
return
|
5615
|
+
return q(ee + "Minutes", 1);
|
5616
5616
|
case o:
|
5617
|
-
return
|
5617
|
+
return q(ee + "Seconds", 2);
|
5618
5618
|
case i:
|
5619
|
-
return
|
5619
|
+
return q(ee + "Milliseconds", 3);
|
5620
5620
|
default:
|
5621
5621
|
return this.clone();
|
5622
5622
|
}
|
5623
5623
|
}, O.endOf = function(R) {
|
5624
5624
|
return this.startOf(R, !1);
|
5625
5625
|
}, O.$set = function(R, V) {
|
5626
|
-
var
|
5627
|
-
if (
|
5628
|
-
var
|
5629
|
-
|
5626
|
+
var F, U = K.p(R), L = "set" + (this.$u ? "UTC" : ""), $ = (F = {}, F[c] = L + "Date", F[g] = L + "Date", F[d] = L + "Month", F[E] = L + "FullYear", F[l] = L + "Hours", F[o] = L + "Minutes", F[i] = L + "Seconds", F[s] = L + "Milliseconds", F)[U], q = U === c ? this.$D + (V - this.$W) : V;
|
5627
|
+
if (U === d || U === E) {
|
5628
|
+
var z = this.clone().set(g, 1);
|
5629
|
+
z.$d[$](q), z.init(), this.$d = z.set(g, Math.min(this.$D, z.daysInMonth())).$d;
|
5630
5630
|
} else
|
5631
|
-
|
5631
|
+
$ && this.$d[$](q);
|
5632
5632
|
return this.init(), this;
|
5633
5633
|
}, O.set = function(R, V) {
|
5634
5634
|
return this.clone().$set(R, V);
|
5635
5635
|
}, O.get = function(R) {
|
5636
5636
|
return this[K.p(R)]();
|
5637
5637
|
}, O.add = function(R, V) {
|
5638
|
-
var
|
5638
|
+
var F, U = this;
|
5639
5639
|
R = Number(R);
|
5640
|
-
var
|
5641
|
-
var re = D(
|
5642
|
-
return K.w(re.date(re.date() + Math.round(J * R)),
|
5640
|
+
var L = K.p(V), $ = function(J) {
|
5641
|
+
var re = D(U);
|
5642
|
+
return K.w(re.date(re.date() + Math.round(J * R)), U);
|
5643
5643
|
};
|
5644
|
-
if (
|
5644
|
+
if (L === d)
|
5645
5645
|
return this.set(d, this.$M + R);
|
5646
|
-
if (
|
5646
|
+
if (L === E)
|
5647
5647
|
return this.set(E, this.$y + R);
|
5648
|
-
if (
|
5649
|
-
return
|
5650
|
-
if (
|
5651
|
-
return
|
5652
|
-
var
|
5653
|
-
return K.w(
|
5648
|
+
if (L === c)
|
5649
|
+
return $(1);
|
5650
|
+
if (L === u)
|
5651
|
+
return $(7);
|
5652
|
+
var q = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[L] || 1, z = this.$d.getTime() + R * q;
|
5653
|
+
return K.w(z, this);
|
5654
5654
|
}, O.subtract = function(R, V) {
|
5655
5655
|
return this.add(-1 * R, V);
|
5656
5656
|
}, O.format = function(R) {
|
5657
|
-
var V = this,
|
5657
|
+
var V = this, F = this.$locale();
|
5658
5658
|
if (!this.isValid())
|
5659
|
-
return
|
5660
|
-
var
|
5661
|
-
return ne && (ne[B] || ne(V,
|
5662
|
-
},
|
5663
|
-
return K.s(
|
5664
|
-
},
|
5665
|
-
var
|
5666
|
-
return G ?
|
5659
|
+
return F.invalidDate || m;
|
5660
|
+
var U = R || "YYYY-MM-DDTHH:mm:ssZ", L = K.z(this), $ = this.$H, q = this.$m, z = this.$M, J = F.weekdays, re = F.months, ee = F.meridiem, oe = function(ne, B, G, Q) {
|
5661
|
+
return ne && (ne[B] || ne(V, U)) || G[B].slice(0, Q);
|
5662
|
+
}, ue = function(ne) {
|
5663
|
+
return K.s($ % 12 || 12, ne, "0");
|
5664
|
+
}, ae = ee || function(ne, B, G) {
|
5665
|
+
var Q = ne < 12 ? "AM" : "PM";
|
5666
|
+
return G ? Q.toLowerCase() : Q;
|
5667
5667
|
};
|
5668
|
-
return
|
5668
|
+
return U.replace(y, function(ne, B) {
|
5669
5669
|
return B || function(G) {
|
5670
5670
|
switch (G) {
|
5671
5671
|
case "YY":
|
@@ -5673,13 +5673,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5673
5673
|
case "YYYY":
|
5674
5674
|
return K.s(V.$y, 4, "0");
|
5675
5675
|
case "M":
|
5676
|
-
return
|
5676
|
+
return z + 1;
|
5677
5677
|
case "MM":
|
5678
|
-
return K.s(
|
5678
|
+
return K.s(z + 1, 2, "0");
|
5679
5679
|
case "MMM":
|
5680
|
-
return
|
5680
|
+
return oe(F.monthsShort, z, re, 3);
|
5681
5681
|
case "MMMM":
|
5682
|
-
return
|
5682
|
+
return oe(re, z);
|
5683
5683
|
case "D":
|
5684
5684
|
return V.$D;
|
5685
5685
|
case "DD":
|
@@ -5687,27 +5687,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5687
5687
|
case "d":
|
5688
5688
|
return String(V.$W);
|
5689
5689
|
case "dd":
|
5690
|
-
return
|
5690
|
+
return oe(F.weekdaysMin, V.$W, J, 2);
|
5691
5691
|
case "ddd":
|
5692
|
-
return
|
5692
|
+
return oe(F.weekdaysShort, V.$W, J, 3);
|
5693
5693
|
case "dddd":
|
5694
5694
|
return J[V.$W];
|
5695
5695
|
case "H":
|
5696
|
-
return String(
|
5696
|
+
return String($);
|
5697
5697
|
case "HH":
|
5698
|
-
return K.s(
|
5698
|
+
return K.s($, 2, "0");
|
5699
5699
|
case "h":
|
5700
|
-
return
|
5700
|
+
return ue(1);
|
5701
5701
|
case "hh":
|
5702
|
-
return
|
5702
|
+
return ue(2);
|
5703
5703
|
case "a":
|
5704
|
-
return
|
5704
|
+
return ae($, q, !0);
|
5705
5705
|
case "A":
|
5706
|
-
return
|
5706
|
+
return ae($, q, !1);
|
5707
5707
|
case "m":
|
5708
|
-
return String(
|
5708
|
+
return String(q);
|
5709
5709
|
case "mm":
|
5710
|
-
return K.s(
|
5710
|
+
return K.s(q, 2, "0");
|
5711
5711
|
case "s":
|
5712
5712
|
return String(V.$s);
|
5713
5713
|
case "ss":
|
@@ -5715,46 +5715,46 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5715
5715
|
case "SSS":
|
5716
5716
|
return K.s(V.$ms, 3, "0");
|
5717
5717
|
case "Z":
|
5718
|
-
return
|
5718
|
+
return L;
|
5719
5719
|
}
|
5720
5720
|
return null;
|
5721
|
-
}(ne) ||
|
5721
|
+
}(ne) || L.replace(":", "");
|
5722
5722
|
});
|
5723
5723
|
}, O.utcOffset = function() {
|
5724
5724
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
5725
|
-
}, O.diff = function(R, V,
|
5726
|
-
var
|
5727
|
-
return K.m(
|
5725
|
+
}, O.diff = function(R, V, F) {
|
5726
|
+
var U, L = this, $ = K.p(V), q = D(R), z = (q.utcOffset() - this.utcOffset()) * a, J = this - q, re = function() {
|
5727
|
+
return K.m(L, q);
|
5728
5728
|
};
|
5729
|
-
switch (
|
5729
|
+
switch ($) {
|
5730
5730
|
case E:
|
5731
|
-
|
5731
|
+
U = re() / 12;
|
5732
5732
|
break;
|
5733
5733
|
case d:
|
5734
|
-
|
5734
|
+
U = re();
|
5735
5735
|
break;
|
5736
5736
|
case b:
|
5737
|
-
|
5737
|
+
U = re() / 3;
|
5738
5738
|
break;
|
5739
5739
|
case u:
|
5740
|
-
|
5740
|
+
U = (J - z) / 6048e5;
|
5741
5741
|
break;
|
5742
5742
|
case c:
|
5743
|
-
|
5743
|
+
U = (J - z) / 864e5;
|
5744
5744
|
break;
|
5745
5745
|
case l:
|
5746
|
-
|
5746
|
+
U = J / n;
|
5747
5747
|
break;
|
5748
5748
|
case o:
|
5749
|
-
|
5749
|
+
U = J / a;
|
5750
5750
|
break;
|
5751
5751
|
case i:
|
5752
|
-
|
5752
|
+
U = J / r;
|
5753
5753
|
break;
|
5754
5754
|
default:
|
5755
|
-
|
5755
|
+
U = J;
|
5756
5756
|
}
|
5757
|
-
return
|
5757
|
+
return F ? U : K.a(U);
|
5758
5758
|
}, O.daysInMonth = function() {
|
5759
5759
|
return this.endOf(d).$D;
|
5760
5760
|
}, O.$locale = function() {
|
@@ -5762,8 +5762,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5762
5762
|
}, O.locale = function(R, V) {
|
5763
5763
|
if (!R)
|
5764
5764
|
return this.$L;
|
5765
|
-
var
|
5766
|
-
return
|
5765
|
+
var F = this.clone(), U = I(R, V, !0);
|
5766
|
+
return U && (F.$L = U), F;
|
5767
5767
|
}, O.clone = function() {
|
5768
5768
|
return K.w(this.$d, this);
|
5769
5769
|
}, O.toDate = function() {
|
@@ -5774,16 +5774,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5774
5774
|
return this.$d.toISOString();
|
5775
5775
|
}, O.toString = function() {
|
5776
5776
|
return this.$d.toUTCString();
|
5777
|
-
},
|
5778
|
-
}(),
|
5779
|
-
return D.prototype =
|
5780
|
-
|
5781
|
-
return this.$g(O,
|
5777
|
+
}, N;
|
5778
|
+
}(), x = P.prototype;
|
5779
|
+
return D.prototype = x, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(N) {
|
5780
|
+
x[N[1]] = function(O) {
|
5781
|
+
return this.$g(O, N[0], N[1]);
|
5782
5782
|
};
|
5783
|
-
}), D.extend = function(
|
5784
|
-
return
|
5785
|
-
}, D.locale = I, D.isDayjs = M, D.unix = function(
|
5786
|
-
return D(1e3 *
|
5783
|
+
}), D.extend = function(N, O) {
|
5784
|
+
return N.$i || (N(O, P, D), N.$i = !0), D;
|
5785
|
+
}, D.locale = I, D.isDayjs = M, D.unix = function(N) {
|
5786
|
+
return D(1e3 * N);
|
5787
5787
|
}, D.en = C[A], D.Ls = C, D.p = {}, D;
|
5788
5788
|
});
|
5789
5789
|
})(dayjs_min);
|
@@ -5846,8 +5846,8 @@ function filesize(e, {
|
|
5846
5846
|
T[0] = I(k * D) / D, T[0] === C && y < 8 && g === -1 && (T[0] = 1, y++), A = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
5847
5847
|
}
|
5848
5848
|
if (M && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
5849
|
-
const D = o || PERIOD, K = T[0].toString().split(D), P = K[1] || EMPTY,
|
5850
|
-
T[0] = `${K[0]}${D}${P.padEnd(
|
5849
|
+
const D = o || PERIOD, K = T[0].toString().split(D), P = K[1] || EMPTY, x = P.length, N = n - x;
|
5850
|
+
T[0] = `${K[0]}${D}${P.padEnd(x + N, ZERO)}`;
|
5851
5851
|
}
|
5852
5852
|
return w && (T[1] = E[y] ? E[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
5853
5853
|
value: T[0],
|
@@ -7943,8 +7943,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
|
|
7943
7943
|
}) => (l.value = o.value ? [o.value] : [], !0), !0), n.onOpen(async ({
|
7944
7944
|
model: l
|
7945
7945
|
}) => (i = watch(l, (c) => {
|
7946
|
-
var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P,
|
7947
|
-
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (M = o.value) == null ? void 0 : M.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (D = o.value) == null ? void 0 : D.pg_size_opt) != null ? K : 10, c.cmd_prm = (
|
7946
|
+
var u, d, b, E, g, m, _, y, v, T, k, A, C, w, M, I, D, K, P, x, N, O;
|
7947
|
+
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (m = (g = o.value) == null ? void 0 : g.mult_flg) != null ? m : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (v = o.value) == null ? void 0 : v.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (w = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? w : 0, c.pg_size_opts = (I = (M = o.value) == null ? void 0 : M.pg_size_opts) != null ? I : "[10, 20, 50, 100]", c.pg_size_opt = (K = (D = o.value) == null ? void 0 : D.pg_size_opt) != null ? K : 10, c.cmd_prm = (x = (P = o.value) == null ? void 0 : P.cmd_prm) != null ? x : void 0, c.button_display_type = (O = (N = o.value) == null ? void 0 : N.button_display_type) != null ? O : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
7948
7948
|
}, {
|
7949
7949
|
immediate: !0
|
7950
7950
|
}), KgUtil.hideLoading(), !1)), n.onClose(async () => (i == null || i(), !1)), n.onBeforeOk(async ({
|
@@ -8867,24 +8867,24 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8867
8867
|
if (A != null && A.id)
|
8868
8868
|
try {
|
8869
8869
|
o.store.setIsLoading(n.formID, !0);
|
8870
|
-
const
|
8870
|
+
const x = await QueryByID$1({
|
8871
8871
|
params: {
|
8872
8872
|
id: A.id
|
8873
8873
|
}
|
8874
8874
|
});
|
8875
8875
|
c.value = c.value.map((O) => {
|
8876
8876
|
var V;
|
8877
|
-
const R = (V =
|
8877
|
+
const R = (V = x == null ? void 0 : x.varGridDetails) == null ? void 0 : V.find((F) => F.var_nam === O.var_nam);
|
8878
8878
|
return R ? {
|
8879
8879
|
...O,
|
8880
8880
|
...R,
|
8881
8881
|
id: O.id
|
8882
8882
|
} : O;
|
8883
8883
|
});
|
8884
|
-
const
|
8885
|
-
u.value = c.value.filter((O) =>
|
8886
|
-
} catch (
|
8887
|
-
throw
|
8884
|
+
const N = (I = (M = x == null ? void 0 : x.varGridDetails) == null ? void 0 : M.map((O) => O.var_nam)) != null ? I : [];
|
8885
|
+
u.value = c.value.filter((O) => N.includes(O.var_nam)).map((O) => O.id);
|
8886
|
+
} catch (x) {
|
8887
|
+
throw x;
|
8888
8888
|
} finally {
|
8889
8889
|
o.store.setIsLoading(n.formID, !1);
|
8890
8890
|
}
|
@@ -9635,7 +9635,7 @@ const getProps$z = () => ({
|
|
9635
9635
|
});
|
9636
9636
|
}
|
9637
9637
|
function v() {
|
9638
|
-
var k, A, C, w, M, I, D, K, P,
|
9638
|
+
var k, A, C, w, M, I, D, K, P, x, N;
|
9639
9639
|
if (u.value)
|
9640
9640
|
return y();
|
9641
9641
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
@@ -9671,7 +9671,7 @@ const getProps$z = () => ({
|
|
9671
9671
|
return T();
|
9672
9672
|
}
|
9673
9673
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
9674
|
-
const O = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties), R = (
|
9674
|
+
const O = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties), R = (x = (P = e.kgRow) == null ? void 0 : P[O.leftColumn]) != null ? x : 0;
|
9675
9675
|
switch (e.kgContext) {
|
9676
9676
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
9677
9677
|
return R;
|
@@ -9679,7 +9679,7 @@ const getProps$z = () => ({
|
|
9679
9679
|
return createVNode(KgProgressA, {
|
9680
9680
|
kgTextWidth: O.textWidth,
|
9681
9681
|
kgLeft: R,
|
9682
|
-
kgRight: (
|
9682
|
+
kgRight: (N = e.kgRow) == null ? void 0 : N[O.rightColumn]
|
9683
9683
|
}, null);
|
9684
9684
|
}
|
9685
9685
|
break;
|
@@ -9789,7 +9789,7 @@ function _useColumns(e) {
|
|
9789
9789
|
index: C
|
9790
9790
|
}) => C + 1
|
9791
9791
|
}, ...(A = y == null ? void 0 : y.map((C, w) => {
|
9792
|
-
var V,
|
9792
|
+
var V, F, U;
|
9793
9793
|
const M = C.var_nam;
|
9794
9794
|
function I() {
|
9795
9795
|
return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
@@ -9804,30 +9804,30 @@ function _useColumns(e) {
|
|
9804
9804
|
return "right";
|
9805
9805
|
}
|
9806
9806
|
function P() {
|
9807
|
-
var $,
|
9808
|
-
return !(C.ord_flg !== 1 || (
|
9809
|
-
}
|
9810
|
-
function
|
9811
|
-
var $,
|
9812
|
-
if (((
|
9813
|
-
return uniqBy(g.map((
|
9814
|
-
var
|
9807
|
+
var L, $, q, z;
|
9808
|
+
return !(C.ord_flg !== 1 || ($ = (L = t == null ? void 0 : t.value) == null ? void 0 : L.KgTable) != null && $.kgDisabled || isNil((z = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) == null ? void 0 : z.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
|
9809
|
+
}
|
9810
|
+
function x() {
|
9811
|
+
var L, $, q, z, J, re;
|
9812
|
+
if ((($ = (L = E.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : $.on) === !0 && C.filter_flag === 1 && !((z = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) != null && z.kgDisabled) && !(isNil((re = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : re.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
|
9813
|
+
return uniqBy(g.map((ee) => {
|
9814
|
+
var oe;
|
9815
9815
|
return {
|
9816
|
-
value: (
|
9816
|
+
value: (oe = ee == null ? void 0 : ee[M]) != null ? oe : "",
|
9817
9817
|
text: i({
|
9818
9818
|
column: {
|
9819
9819
|
dataIndex: M
|
9820
9820
|
},
|
9821
9821
|
index: w,
|
9822
|
-
record:
|
9823
|
-
value:
|
9822
|
+
record: ee,
|
9823
|
+
value: ee == null ? void 0 : ee[M]
|
9824
9824
|
}, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
|
9825
9825
|
};
|
9826
9826
|
}), "value");
|
9827
9827
|
}
|
9828
|
-
function
|
9829
|
-
var $,
|
9830
|
-
return ((
|
9828
|
+
function N() {
|
9829
|
+
var L, $, q;
|
9830
|
+
return (($ = (L = E.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : $.on) !== !0 ? null : ((q = o.value) == null ? void 0 : q[M]) || null;
|
9831
9831
|
}
|
9832
9832
|
function O() {
|
9833
9833
|
return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
|
@@ -9858,22 +9858,22 @@ function _useColumns(e) {
|
|
9858
9858
|
align: O(),
|
9859
9859
|
fixed: K(),
|
9860
9860
|
sorter: P(),
|
9861
|
-
sortOrder: ((V = l.value) == null ? void 0 : V.field) === M && (
|
9862
|
-
filteredValue:
|
9863
|
-
filters:
|
9864
|
-
onFilter: (
|
9861
|
+
sortOrder: ((V = l.value) == null ? void 0 : V.field) === M && (U = (F = l.value) == null ? void 0 : F.order) != null ? U : null,
|
9862
|
+
filteredValue: N(),
|
9863
|
+
filters: x(),
|
9864
|
+
onFilter: (L, $) => L === "" ? isNil($ == null ? void 0 : $[M]) || ($ == null ? void 0 : $[M]) === "" : ($ == null ? void 0 : $[M]) === L,
|
9865
9865
|
customHeaderCell: () => ({
|
9866
9866
|
"kg-frm_id": r.formID,
|
9867
9867
|
"kg-var_nam": M,
|
9868
9868
|
draggable: !0
|
9869
9869
|
}),
|
9870
|
-
customCell: (
|
9871
|
-
var
|
9872
|
-
const
|
9870
|
+
customCell: (L) => {
|
9871
|
+
var q;
|
9872
|
+
const $ = r.store.getVarSubmitField(r.formID, M);
|
9873
9873
|
return {
|
9874
9874
|
"kg-frm_id": r.formID,
|
9875
9875
|
"kg-var_nam": M,
|
9876
|
-
class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
9876
|
+
class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && L[s.id.value] === ((q = s.selectedRow.value) == null ? void 0 : q[s.id.value]) && (!!r.isCreating.value && ($ == null ? void 0 : $.crt_flg) === 1 || !!r.isUpdating.value && ($ == null ? void 0 : $.upt_flg) === 1 || !!r.isCopying.value && ($ == null ? void 0 : $.cpy_flg) === 1 || !!r.isDeleting.value && ($ == null ? void 0 : $.del_flg) === 1) ? "submitting" : ""
|
9877
9877
|
};
|
9878
9878
|
}
|
9879
9879
|
};
|
@@ -10038,20 +10038,20 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10038
10038
|
setup: function(e) {
|
10039
10039
|
var ne;
|
10040
10040
|
const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), i = useKgSearch(), o = useKgTable(), l = useKgSubmit();
|
10041
|
-
i.onSearch(async (B) => (
|
10041
|
+
i.onSearch(async (B) => (L(B), !1)), i.onReset(async () => (b.value = {}, !1)), o.store.$onAction(async ({
|
10042
10042
|
name: B,
|
10043
10043
|
args: G
|
10044
10044
|
}) => {
|
10045
10045
|
switch (B) {
|
10046
10046
|
case "setRowSelect":
|
10047
10047
|
if (G[0] === s.formID) {
|
10048
|
-
const
|
10048
|
+
const Q = G[1], Y = G[2], Z = Q[o.id.value];
|
10049
10049
|
switch (!0) {
|
10050
|
-
case (Y && !
|
10051
|
-
|
10050
|
+
case (Y && !N.value.includes(Z)):
|
10051
|
+
$([...N.value, Z]);
|
10052
10052
|
break;
|
10053
|
-
case (!Y &&
|
10054
|
-
|
10053
|
+
case (!Y && N.value.includes(Z)):
|
10054
|
+
$(without$1(N.value, Z));
|
10055
10055
|
break;
|
10056
10056
|
}
|
10057
10057
|
}
|
@@ -10060,7 +10060,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10060
10060
|
G[0] === s.formID && (o.store.setDatas({
|
10061
10061
|
frmId: s.formID,
|
10062
10062
|
datas: []
|
10063
|
-
}), O.total = 0,
|
10063
|
+
}), O.total = 0, U({
|
10064
10064
|
isContinueWhenKgDisabled: !0
|
10065
10065
|
}), c.value = []);
|
10066
10066
|
break;
|
@@ -10084,31 +10084,31 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10084
10084
|
var B, G;
|
10085
10085
|
return (G = (B = s.varButtonSearch.value) == null ? void 0 : B.cmd) != null ? G : null;
|
10086
10086
|
}), k = computed(() => {
|
10087
|
-
var G,
|
10087
|
+
var G, Q, Y, Z, ge, ce, fe, he, Ce;
|
10088
10088
|
let B = {
|
10089
10089
|
pageNo: O.pageIndex,
|
10090
10090
|
pageSize: O.pageSize,
|
10091
|
-
column: (
|
10091
|
+
column: (Q = (G = b.value) == null ? void 0 : G.field) != null ? Q : void 0,
|
10092
10092
|
order: b.value.order === "ascend" ? "asc" : b.value.order === "descend" ? "desc" : void 0,
|
10093
10093
|
...(Z = (Y = i.model) == null ? void 0 : Y.value) != null ? Z : {}
|
10094
10094
|
};
|
10095
10095
|
return s.varButtonSearch.value && (B = {
|
10096
10096
|
...B,
|
10097
|
-
...KgVarUtil.parseRequestParamsToJSON((
|
10098
|
-
}), (
|
10097
|
+
...KgVarUtil.parseRequestParamsToJSON((ce = (ge = s.varButtonSearch.value) == null ? void 0 : ge.cmd_prm) != null ? ce : "")
|
10098
|
+
}), (fe = s.varGridConfig.value) != null && fe.cmd_prm && (B = {
|
10099
10099
|
...B,
|
10100
10100
|
...KgVarUtil.parseRequestParamsToJSON((he = s.varGridConfig.value.cmd_prm) != null ? he : "")
|
10101
10101
|
}), ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.convert_sort_field_to_under_score_flg) === 1 && B.column && (B.column = snakeCase$1(B.column)), B;
|
10102
10102
|
}), A = computed(() => {
|
10103
|
-
var B, G,
|
10103
|
+
var B, G, Q, Y;
|
10104
10104
|
if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgDisabled))
|
10105
|
-
return (Y = (
|
10105
|
+
return (Y = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : Y.kgDisabled;
|
10106
10106
|
if (!isNil(e.kgDisabled))
|
10107
10107
|
return e.kgDisabled;
|
10108
10108
|
}), C = computed(() => {
|
10109
|
-
var B, G,
|
10109
|
+
var B, G, Q, Y;
|
10110
10110
|
if (!isNil((G = (B = a == null ? void 0 : a.value) == null ? void 0 : B.KgTable) == null ? void 0 : G.kgCheckboxDisabled))
|
10111
|
-
return (Y = (
|
10111
|
+
return (Y = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : Y.kgCheckboxDisabled;
|
10112
10112
|
if (!isNil(e.kgCheckboxDisabled))
|
10113
10113
|
return e.kgCheckboxDisabled;
|
10114
10114
|
}), w = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), M = computed(() => !!A.value || g.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), I = computed(() => {
|
@@ -10123,7 +10123,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10123
10123
|
fixed: "left",
|
10124
10124
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10125
10125
|
hideSelectAll: !o.isMultiSelect.value,
|
10126
|
-
selectedRowKeys:
|
10126
|
+
selectedRowKeys: N,
|
10127
10127
|
preserveSelectedRowKeys: !1,
|
10128
10128
|
getCheckboxProps: (B) => {
|
10129
10129
|
var G;
|
@@ -10131,8 +10131,8 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10131
10131
|
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((G = C.value) != null && G.call(C, B))
|
10132
10132
|
};
|
10133
10133
|
},
|
10134
|
-
onSelect: (B) =>
|
10135
|
-
onChange: (B) => o.isMultiSelect.value &&
|
10134
|
+
onSelect: (B) => q(B),
|
10135
|
+
onChange: (B) => o.isMultiSelect.value && $(B)
|
10136
10136
|
};
|
10137
10137
|
}), P = computed(() => {
|
10138
10138
|
var G;
|
@@ -10149,11 +10149,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10149
10149
|
break;
|
10150
10150
|
}
|
10151
10151
|
return B;
|
10152
|
-
}),
|
10152
|
+
}), x = computed(() => {
|
10153
10153
|
var G;
|
10154
10154
|
let B = "kg-table-bottom";
|
10155
10155
|
return ((G = s.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (B += " kg-table-bottom--border"), B;
|
10156
|
-
}),
|
10156
|
+
}), N = (ne = o.store.getSelectedRowKeys(s.formID)) != null ? ne : ref([]), O = reactive({
|
10157
10157
|
pageIndex: 1,
|
10158
10158
|
pageSize: 10,
|
10159
10159
|
total: 0
|
@@ -10164,12 +10164,12 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10164
10164
|
});
|
10165
10165
|
watch(o.pageSizeOptions, (B) => {
|
10166
10166
|
B.length > 0 && !B.includes(O.pageSize) && (O.pageSize = o.pageSizeOption.value);
|
10167
|
-
}), watch([o.isAutoRequest, o.isRequested, i.isReady], ([B, G,
|
10167
|
+
}), watch([o.isAutoRequest, o.isRequested, i.isReady], ([B, G, Q]) => {
|
10168
10168
|
KgLogger.debug(`KgTable | ${s.formID} | watch:[kgTable.isAutoRequest, kgTable.isRequested, kgSearch.isReady]`, {
|
10169
10169
|
isAutoRequest: B,
|
10170
10170
|
isRequested: G,
|
10171
|
-
isReady:
|
10172
|
-
}), B && !G &&
|
10171
|
+
isReady: Q
|
10172
|
+
}), B && !G && Q && L({
|
10173
10173
|
isSearchFirstPage: !0
|
10174
10174
|
});
|
10175
10175
|
}, {
|
@@ -10177,7 +10177,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10177
10177
|
}), watch(k, (B) => {
|
10178
10178
|
o.store.setRequestParams(s.formID, B);
|
10179
10179
|
}), watch(s.isCreating, (B, G) => {
|
10180
|
-
B === !0 ? V() : B === !1 && G === !0 &&
|
10180
|
+
B === !0 ? V() : B === !1 && G === !0 && F();
|
10181
10181
|
}), onUnmounted(() => {
|
10182
10182
|
o.store.dispose(s.formID);
|
10183
10183
|
});
|
@@ -10192,21 +10192,21 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10192
10192
|
}), o.store.setSelectedRows(s.formID, [B]);
|
10193
10193
|
}
|
10194
10194
|
}
|
10195
|
-
function
|
10195
|
+
function F() {
|
10196
10196
|
const B = y.value.find((G) => G[o.id.value] === KG_TABLE_TEMP_ID);
|
10197
10197
|
B && (o.store.setDatas({
|
10198
10198
|
frmId: s.formID,
|
10199
10199
|
datas: without$1(y.value, B)
|
10200
10200
|
}), o.store.setSelectedRows(s.formID, []));
|
10201
10201
|
}
|
10202
|
-
function
|
10202
|
+
function U(B = {}) {
|
10203
10203
|
var Z;
|
10204
10204
|
KgLogger.debug("KgTable | onRowClick() | \u6267\u884C\u5F00\u59CB.", {
|
10205
10205
|
param: B
|
10206
10206
|
});
|
10207
10207
|
const {
|
10208
10208
|
event: G,
|
10209
|
-
row:
|
10209
|
+
row: Q,
|
10210
10210
|
isContinueWhenKgDisabled: Y = !1
|
10211
10211
|
} = B;
|
10212
10212
|
if (!Y && !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) {
|
@@ -10223,7 +10223,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10223
10223
|
KgLogger.debug("KgTable | onRowClick() | \u4E0D\u652F\u6301\u884C\u52FE\u9009.");
|
10224
10224
|
return;
|
10225
10225
|
}
|
10226
|
-
if (!
|
10226
|
+
if (!Q) {
|
10227
10227
|
KgLogger.debug("KgTable | onRowClick() | \u6E05\u7A7A\u6240\u6709\u52FE\u9009\u7684\u884C."), o.store.setSelectedRows(s.formID, []);
|
10228
10228
|
return;
|
10229
10229
|
}
|
@@ -10237,32 +10237,32 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10237
10237
|
break;
|
10238
10238
|
case 1:
|
10239
10239
|
KgLogger.debug("KgTable | onRowClick() | \u52FE\u9009\u5355\u884C.", {
|
10240
|
-
row:
|
10241
|
-
}), o.store.setSelectedRows(s.formID, [
|
10240
|
+
row: Q
|
10241
|
+
}), o.store.setSelectedRows(s.formID, [Q]);
|
10242
10242
|
break;
|
10243
10243
|
case 2:
|
10244
|
-
|
10244
|
+
q(Q);
|
10245
10245
|
break;
|
10246
10246
|
}
|
10247
10247
|
break;
|
10248
10248
|
case 2:
|
10249
10249
|
o.store.emit(s.formID, "rowDoubleClick", {
|
10250
|
-
row:
|
10250
|
+
row: Q
|
10251
10251
|
});
|
10252
10252
|
break;
|
10253
10253
|
}
|
10254
10254
|
}
|
10255
|
-
function
|
10255
|
+
function L(B = {}) {
|
10256
10256
|
KgLogger.debug(`${s.formID} | KgTable | request() | \u6267\u884C\u5F00\u59CB.`, {
|
10257
10257
|
param: B
|
10258
10258
|
});
|
10259
10259
|
const G = watch(o.isReady, (Y) => {
|
10260
|
-
Y && (setTimeout(() => G()),
|
10260
|
+
Y && (setTimeout(() => G()), Q());
|
10261
10261
|
}, {
|
10262
10262
|
immediate: !0
|
10263
10263
|
});
|
10264
|
-
async function
|
10265
|
-
var Y, Z,
|
10264
|
+
async function Q() {
|
10265
|
+
var Y, Z, ge, ce, fe, he, Ce;
|
10266
10266
|
KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u6267\u884C\u5F00\u59CB.`), B.isSearchFirstPage && (O.pageIndex = 1), o.store.setIsRequesting(s.formID, !0);
|
10267
10267
|
try {
|
10268
10268
|
const be = KgUtil.parseParams(k.value, o.kgSearchFormID.value, t), ye = ref({});
|
@@ -10274,18 +10274,18 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10274
10274
|
throw KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
|
10275
10275
|
VarButton: s.varButtonSearch.value
|
10276
10276
|
}), new Error("\u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.");
|
10277
|
-
const Se = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((
|
10278
|
-
sql:
|
10277
|
+
const Se = ((Z = (Y = n.option.value.KgSearch) == null ? void 0 : Y.dynamicQuery) == null ? void 0 : Z.on) === !0 && ((ge = s.currentVarProfileMaster.value) == null ? void 0 : ge.dyn_flg) === 1, {
|
10278
|
+
sql: H,
|
10279
10279
|
whereSql: W,
|
10280
10280
|
orderBySql: X
|
10281
|
-
} = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t),
|
10281
|
+
} = KgUtil.getQuerySql(k.value, o.kgSearchFormID.value, null, t), te = await httpClient().request({
|
10282
10282
|
url: T.value,
|
10283
|
-
method: (
|
10283
|
+
method: (fe = (ce = s.varButtonSearch.value) == null ? void 0 : ce.cmd_method) != null ? fe : "GET",
|
10284
10284
|
params: be,
|
10285
10285
|
data: be,
|
10286
10286
|
headers: {
|
10287
10287
|
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: Se,
|
10288
|
-
[KG_HTTP_HEADERS.KG_QUERY_SQL]:
|
10288
|
+
[KG_HTTP_HEADERS.KG_QUERY_SQL]: H,
|
10289
10289
|
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: W,
|
10290
10290
|
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: X
|
10291
10291
|
}
|
@@ -10293,11 +10293,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10293
10293
|
isReturnNativeResponse: !0,
|
10294
10294
|
successMessageMode: "none"
|
10295
10295
|
});
|
10296
|
-
if (!
|
10296
|
+
if (!te.data)
|
10297
10297
|
throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
|
10298
|
-
if (![0, 200].includes((he =
|
10299
|
-
throw message.error(
|
10300
|
-
Se &&
|
10298
|
+
if (![0, 200].includes((he = te.data.code) != null ? he : -1) || !te.data.success)
|
10299
|
+
throw message.error(te.data.message || n.t("kg.KgTable.request-fail-error")), new Error(te.data.message || n.t("kg.KgTable.request-fail-error"));
|
10300
|
+
Se && te.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY.toLowerCase()] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), ye.value = te.data.result, KgLogger.debug(`${s.formID} | KgTable | request() | requestDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
10301
10301
|
params: be,
|
10302
10302
|
response: ye.value
|
10303
10303
|
});
|
@@ -10307,16 +10307,16 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10307
10307
|
total: Ae
|
10308
10308
|
} = v(ye), Ie = await o.store.emit(s.formID, "beforeSetDatas", {
|
10309
10309
|
datas: Ee
|
10310
|
-
}), ke = cloneDeep(
|
10310
|
+
}), ke = cloneDeep(N.value);
|
10311
10311
|
o.store.setDatas({
|
10312
10312
|
frmId: s.formID,
|
10313
10313
|
datas: Ee.value,
|
10314
10314
|
isPreserveSelectedRows: !0
|
10315
|
-
}), O.total = Ae.value, d.value = {},
|
10315
|
+
}), O.total = Ae.value, d.value = {}, U({
|
10316
10316
|
isContinueWhenKgDisabled: !0
|
10317
10317
|
}), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, ke.map((Se) => {
|
10318
|
-
var
|
10319
|
-
return (
|
10318
|
+
var H;
|
10319
|
+
return (H = Ee.value) == null ? void 0 : H.find((W) => W[o.id.value] === Se);
|
10320
10320
|
}).filter((Se) => !!Se)) : ((Ce = s.varGridConfig.value) == null ? void 0 : Ce.check_first_row_after_retrieve) === 1 && Ee.value.length > 0 && o.store.setSelectedRows(s.formID, [Ee.value[0]]);
|
10321
10321
|
const Me = await o.store.emit(s.formID, "afterSearch", {
|
10322
10322
|
params: be,
|
@@ -10331,40 +10331,40 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10331
10331
|
}
|
10332
10332
|
}
|
10333
10333
|
}
|
10334
|
-
function
|
10334
|
+
function $(B) {
|
10335
10335
|
o.store.setSelectedRows(s.formID, B.map((G) => {
|
10336
|
-
var
|
10337
|
-
return (
|
10336
|
+
var Q;
|
10337
|
+
return (Q = y.value) == null ? void 0 : Q.find((Y) => Y[o.id.value] === G);
|
10338
10338
|
}).filter((G) => !!G));
|
10339
10339
|
}
|
10340
|
-
function
|
10341
|
-
var G,
|
10340
|
+
function q(B) {
|
10341
|
+
var G, Q;
|
10342
10342
|
switch (o.isMultiSelect.value) {
|
10343
10343
|
case !0:
|
10344
10344
|
{
|
10345
10345
|
const Y = B[o.id.value];
|
10346
|
-
|
10346
|
+
N.value.includes(Y) ? N.value = without$1(N.value, Y) : N.value = [...(G = N.value) != null ? G : [], Y];
|
10347
10347
|
}
|
10348
10348
|
break;
|
10349
10349
|
case !1:
|
10350
10350
|
{
|
10351
10351
|
const Y = B[o.id.value];
|
10352
|
-
(
|
10352
|
+
(Q = N.value) != null && Q.includes(Y) ? N.value = [] : N.value = [Y];
|
10353
10353
|
}
|
10354
10354
|
break;
|
10355
10355
|
}
|
10356
|
-
o.store.setSelectedRows(s.formID,
|
10356
|
+
o.store.setSelectedRows(s.formID, N.value.map((Y) => {
|
10357
10357
|
var Z;
|
10358
|
-
return (Z = y.value) == null ? void 0 : Z.find((
|
10358
|
+
return (Z = y.value) == null ? void 0 : Z.find((ge) => ge[o.id.value] === Y);
|
10359
10359
|
}).filter((Y) => !!Y));
|
10360
10360
|
}
|
10361
|
-
function
|
10361
|
+
function z(B, G) {
|
10362
10362
|
G.width = B, s.store.setVarGridDetailWidth(s.formID, G.dataIndex, B);
|
10363
10363
|
}
|
10364
|
-
async function J(B, G,
|
10364
|
+
async function J(B, G, Q, Y) {
|
10365
10365
|
switch (Y.action) {
|
10366
10366
|
case "sort": {
|
10367
|
-
b.value =
|
10367
|
+
b.value = Q, b.value.order || (b.value.field = void 0), await nextTick(), L({
|
10368
10368
|
isSearchFirstPage: !0
|
10369
10369
|
});
|
10370
10370
|
break;
|
@@ -10375,20 +10375,20 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10375
10375
|
}
|
10376
10376
|
function re(B, G) {
|
10377
10377
|
var Y;
|
10378
|
-
const
|
10378
|
+
const Q = G[o.id.value];
|
10379
10379
|
switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
|
10380
10380
|
case 0:
|
10381
|
-
B ? c.value = uniq([...c.value,
|
10381
|
+
B ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
|
10382
10382
|
break;
|
10383
10383
|
default:
|
10384
|
-
B ? c.value = [
|
10384
|
+
B ? c.value = [Q] : c.value = [];
|
10385
10385
|
break;
|
10386
10386
|
}
|
10387
10387
|
}
|
10388
|
-
function
|
10389
|
-
G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = B,
|
10388
|
+
function ee(B, G) {
|
10389
|
+
G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = B, L();
|
10390
10390
|
}
|
10391
|
-
function
|
10391
|
+
function oe(B) {
|
10392
10392
|
const {
|
10393
10393
|
column: G
|
10394
10394
|
} = B;
|
@@ -10397,7 +10397,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10397
10397
|
kgDisabled: A.value
|
10398
10398
|
}, null);
|
10399
10399
|
}
|
10400
|
-
function
|
10400
|
+
function ue() {
|
10401
10401
|
var B;
|
10402
10402
|
return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
|
10403
10403
|
fixed: "bottom"
|
@@ -10407,18 +10407,18 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10407
10407
|
index: 0
|
10408
10408
|
}, null), D.value && createVNode(TableSummary.Cell, {
|
10409
10409
|
index: I.value ? 1 : 0
|
10410
|
-
}, null), u.value.map((G,
|
10411
|
-
const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null,
|
10412
|
-
let
|
10413
|
-
return I.value && D.value ?
|
10414
|
-
index:
|
10415
|
-
align:
|
10410
|
+
}, null), u.value.map((G, Q) => {
|
10411
|
+
const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null, ge = (() => ["left", "center", "right"].includes((Z == null ? void 0 : Z.align) || "") ? Z == null ? void 0 : Z.align : "left")();
|
10412
|
+
let ce = Q;
|
10413
|
+
return I.value && D.value ? ce += 2 : (I.value || D.value) && (ce += 1), createVNode(TableSummary.Cell, {
|
10414
|
+
index: ce,
|
10415
|
+
align: ge
|
10416
10416
|
}, {
|
10417
10417
|
default: () => {
|
10418
|
-
var
|
10419
|
-
return [(he = (
|
10418
|
+
var fe, he;
|
10419
|
+
return [(he = (fe = r == null ? void 0 : r.KgTable) == null ? void 0 : fe["summary.bodyCell"]) == null ? void 0 : he.call(fe, {
|
10420
10420
|
column: G,
|
10421
|
-
index:
|
10421
|
+
index: ce,
|
10422
10422
|
varGridDetail: Z
|
10423
10423
|
})];
|
10424
10424
|
}
|
@@ -10427,11 +10427,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10427
10427
|
})]
|
10428
10428
|
}) : null;
|
10429
10429
|
}
|
10430
|
-
function
|
10430
|
+
function ae() {
|
10431
10431
|
return !o.isAutoRequest.value && !o.store.getIsRequested(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10432
10432
|
}
|
10433
10433
|
return () => {
|
10434
|
-
var B, G,
|
10434
|
+
var B, G, Q;
|
10435
10435
|
return createVNode("div", {
|
10436
10436
|
class: P.value,
|
10437
10437
|
"kg-frm_id": s.formID,
|
@@ -10454,29 +10454,29 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10454
10454
|
expandedRowKeys: c.value,
|
10455
10455
|
rowSelection: K.value,
|
10456
10456
|
customRow: (Y) => ({
|
10457
|
-
onClick: (Z) =>
|
10457
|
+
onClick: (Z) => U({
|
10458
10458
|
event: Z,
|
10459
10459
|
row: Y
|
10460
10460
|
})
|
10461
10461
|
}),
|
10462
|
-
onResizeColumn:
|
10462
|
+
onResizeColumn: z,
|
10463
10463
|
onChange: J,
|
10464
10464
|
onExpand: re
|
10465
10465
|
}, {
|
10466
|
-
headerCell:
|
10466
|
+
headerCell: oe,
|
10467
10467
|
bodyCell: _,
|
10468
|
-
emptyText:
|
10469
|
-
expandedRowRender: (
|
10470
|
-
summary:
|
10468
|
+
emptyText: ae,
|
10469
|
+
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
10470
|
+
summary: ue
|
10471
10471
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
10472
|
-
class:
|
10472
|
+
class: x.value
|
10473
10473
|
}, [createVNode("div", {
|
10474
10474
|
class: "left"
|
10475
10475
|
}, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
10476
|
-
kgShowClearCheck:
|
10476
|
+
kgShowClearCheck: N.value.length > 0,
|
10477
10477
|
kgShowClearTable: O.total > 0,
|
10478
|
-
kgShowLocate:
|
10479
|
-
kgTotal:
|
10478
|
+
kgShowLocate: N.value.length === 1,
|
10479
|
+
kgTotal: N.value.length,
|
10480
10480
|
kgDisabled: w.value
|
10481
10481
|
}, null)]), createVNode("div", {
|
10482
10482
|
class: "right"
|
@@ -10498,7 +10498,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10498
10498
|
to: Z[1],
|
10499
10499
|
total: Y
|
10500
10500
|
}),
|
10501
|
-
onChange: (Y, Z) =>
|
10501
|
+
onChange: (Y, Z) => ee(Y, Z)
|
10502
10502
|
}, null)])])]);
|
10503
10503
|
};
|
10504
10504
|
}
|
@@ -10836,12 +10836,12 @@ function useKgFormItemSelect() {
|
|
10836
10836
|
let k = null;
|
10837
10837
|
try {
|
10838
10838
|
l.value = !0;
|
10839
|
-
const
|
10839
|
+
const x = KgUtil.parseParams(b.value, null, e);
|
10840
10840
|
k = await ((P = httpClient()) == null ? void 0 : P.request({
|
10841
10841
|
url: _,
|
10842
10842
|
method: y,
|
10843
|
-
params:
|
10844
|
-
data:
|
10843
|
+
params: x,
|
10844
|
+
data: x
|
10845
10845
|
}, {
|
10846
10846
|
dynamicQueryOperators: {},
|
10847
10847
|
dayjs: e
|
@@ -10862,14 +10862,14 @@ function useKgFormItemSelect() {
|
|
10862
10862
|
break;
|
10863
10863
|
}
|
10864
10864
|
if (m.value.length > 0) {
|
10865
|
-
const
|
10866
|
-
(!(v in
|
10865
|
+
const x = m.value[0];
|
10866
|
+
(!(v in x) || !(T in x)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
10867
10867
|
frm_id: a.formID,
|
10868
10868
|
var_nam: t,
|
10869
10869
|
cmd: _,
|
10870
10870
|
val_clm: v,
|
10871
10871
|
lbl_clm: T,
|
10872
|
-
\u6240\u6709\u5217: Object.keys(
|
10872
|
+
\u6240\u6709\u5217: Object.keys(x)
|
10873
10873
|
});
|
10874
10874
|
}
|
10875
10875
|
await n.store.emit(a.formID, "selectBeforeSetDatas", {
|
@@ -11403,13 +11403,13 @@ const KgFormItem = defineComponent({
|
|
11403
11403
|
var_nam: O,
|
11404
11404
|
model: R,
|
11405
11405
|
isMultiple: V,
|
11406
|
-
value:
|
11407
|
-
values:
|
11406
|
+
value: F,
|
11407
|
+
values: U
|
11408
11408
|
}) => {
|
11409
|
-
var
|
11409
|
+
var L;
|
11410
11410
|
switch (O) {
|
11411
11411
|
case e.kgVarName:
|
11412
|
-
R.value && (V ? R.value[e.kgVarName] =
|
11412
|
+
R.value && (V ? R.value[e.kgVarName] = U : R.value[e.kgVarName] = F), (L = n.value) == null || L.validate([e.kgVarName]);
|
11413
11413
|
break;
|
11414
11414
|
}
|
11415
11415
|
return !1;
|
@@ -11420,7 +11420,7 @@ const KgFormItem = defineComponent({
|
|
11420
11420
|
} = _useRules(e), {
|
11421
11421
|
controlType: m
|
11422
11422
|
} = useKgFormItem(e), _ = computed(() => {
|
11423
|
-
var R, V,
|
11423
|
+
var R, V, F, U, L;
|
11424
11424
|
if (i.isRetrieving.value)
|
11425
11425
|
return !0;
|
11426
11426
|
let O = !1;
|
@@ -11437,20 +11437,20 @@ const KgFormItem = defineComponent({
|
|
11437
11437
|
O = ((V = b.value) == null ? void 0 : V.crt_ena_flg) === 0;
|
11438
11438
|
break;
|
11439
11439
|
case i.isUpdating.value:
|
11440
|
-
O = ((
|
11440
|
+
O = ((F = b.value) == null ? void 0 : F.upt_ena_flg) === 0;
|
11441
11441
|
break;
|
11442
11442
|
case i.isCopying.value:
|
11443
|
-
O = ((
|
11443
|
+
O = ((U = b.value) == null ? void 0 : U.cpy_ena_flg) === 0;
|
11444
11444
|
break;
|
11445
11445
|
case i.isDeleting.value:
|
11446
|
-
O = ((
|
11446
|
+
O = ((L = b.value) == null ? void 0 : L.del_ena_flg) === 0;
|
11447
11447
|
break;
|
11448
11448
|
}
|
11449
11449
|
break;
|
11450
11450
|
}
|
11451
11451
|
return O;
|
11452
11452
|
}), y = computed(() => {
|
11453
|
-
var R, V,
|
11453
|
+
var R, V, F, U;
|
11454
11454
|
let O = " ";
|
11455
11455
|
if (e.kgPlaceholder)
|
11456
11456
|
O = e.kgPlaceholder;
|
@@ -11460,12 +11460,12 @@ const KgFormItem = defineComponent({
|
|
11460
11460
|
O = i.t((V = (R = d.value) == null ? void 0 : R.placeholder) != null ? V : " ").value;
|
11461
11461
|
break;
|
11462
11462
|
case KG_FORM_CONTEXT.SUBMIT:
|
11463
|
-
O = i.t((
|
11463
|
+
O = i.t((U = (F = b.value) == null ? void 0 : F.placeholder) != null ? U : " ").value;
|
11464
11464
|
break;
|
11465
11465
|
}
|
11466
11466
|
return O;
|
11467
11467
|
}), v = computed(() => {
|
11468
|
-
var R, V,
|
11468
|
+
var R, V, F, U, L, $, q, z, J, re;
|
11469
11469
|
let O = 6;
|
11470
11470
|
if (e.kgSpan !== void 0)
|
11471
11471
|
O = e.kgSpan;
|
@@ -11477,25 +11477,25 @@ const KgFormItem = defineComponent({
|
|
11477
11477
|
case KG_FORM_CONTEXT.SUBMIT:
|
11478
11478
|
switch (!0) {
|
11479
11479
|
case i.isCreating.value:
|
11480
|
-
O = (
|
11480
|
+
O = (U = (F = b.value) == null ? void 0 : F.crt_width) != null ? U : 6;
|
11481
11481
|
break;
|
11482
11482
|
case i.isUpdating.value:
|
11483
|
-
O = (
|
11483
|
+
O = ($ = (L = b.value) == null ? void 0 : L.upt_width) != null ? $ : 6;
|
11484
11484
|
break;
|
11485
11485
|
case i.isCopying.value:
|
11486
|
-
O = (
|
11486
|
+
O = (z = (q = b.value) == null ? void 0 : q.cpy_width) != null ? z : 6;
|
11487
11487
|
break;
|
11488
11488
|
case i.isDeleting.value:
|
11489
11489
|
O = (re = (J = b.value) == null ? void 0 : J.del_width) != null ? re : 6;
|
11490
11490
|
break;
|
11491
11491
|
}
|
11492
11492
|
}
|
11493
|
-
return O = Number(O), new Array(24).fill(0).map((
|
11493
|
+
return O = Number(O), new Array(24).fill(0).map((ee, oe) => oe + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
|
11494
11494
|
VarProfileDetail: d.value,
|
11495
11495
|
VarSubmitField: b.value
|
11496
11496
|
}), 6);
|
11497
11497
|
}), T = computed(() => {
|
11498
|
-
var R, V,
|
11498
|
+
var R, V, F, U, L;
|
11499
11499
|
let O = null;
|
11500
11500
|
if (e.kgSpan !== void 0)
|
11501
11501
|
O = e.kgSpan;
|
@@ -11510,30 +11510,30 @@ const KgFormItem = defineComponent({
|
|
11510
11510
|
O = (V = b.value) == null ? void 0 : V.crt_width;
|
11511
11511
|
break;
|
11512
11512
|
case i.isUpdating.value:
|
11513
|
-
O = (
|
11513
|
+
O = (F = b.value) == null ? void 0 : F.upt_width;
|
11514
11514
|
break;
|
11515
11515
|
case i.isCopying.value:
|
11516
|
-
O = (
|
11516
|
+
O = (U = b.value) == null ? void 0 : U.cpy_width;
|
11517
11517
|
break;
|
11518
11518
|
case i.isDeleting.value:
|
11519
|
-
O = (
|
11519
|
+
O = (L = b.value) == null ? void 0 : L.del_width;
|
11520
11520
|
break;
|
11521
11521
|
}
|
11522
11522
|
}
|
11523
|
-
return O = Number(O), new Array(24).fill(0).map((
|
11523
|
+
return O = Number(O), new Array(24).fill(0).map(($, q) => q + 1).includes(O) ? O : null;
|
11524
11524
|
}), k = computed(() => {
|
11525
|
-
var
|
11525
|
+
var F, U;
|
11526
11526
|
const O = get(M.value, "$el.parentElement");
|
11527
|
-
if (O && !((
|
11527
|
+
if (O && !((F = O.classList) != null && F.contains("ant-row")))
|
11528
11528
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
11529
11529
|
let R = {};
|
11530
|
-
const V = Math.abs(Number.parseInt((
|
11530
|
+
const V = Math.abs(Number.parseInt((U = get(M.value, "$el.parentElement.style.marginLeft")) != null ? U : "0px"));
|
11531
11531
|
return Number.isNaN(V) || (R = {
|
11532
11532
|
paddingLeft: `${V}px !important`,
|
11533
11533
|
paddingRight: `${V}px !important`
|
11534
11534
|
}), R;
|
11535
11535
|
}), A = computed(() => {
|
11536
|
-
var R, V,
|
11536
|
+
var R, V, F, U;
|
11537
11537
|
let O = "kg-form-item";
|
11538
11538
|
switch (c.value && (O += " kg-form-item-lookup"), T.value !== null && (O += " kg-form-item--col-fixed"), e.kgContext) {
|
11539
11539
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -11546,8 +11546,8 @@ const KgFormItem = defineComponent({
|
|
11546
11546
|
case KG_FORM_CONTEXT.SUBMIT:
|
11547
11547
|
switch (!0) {
|
11548
11548
|
case (i.isCreating.value && ((V = b.value) == null ? void 0 : V.crt_vis_flg) === 0):
|
11549
|
-
case (i.isUpdating.value && ((
|
11550
|
-
case (i.isCopying.value && ((
|
11549
|
+
case (i.isUpdating.value && ((F = b.value) == null ? void 0 : F.upt_vis_flg) === 0):
|
11550
|
+
case (i.isCopying.value && ((U = b.value) == null ? void 0 : U.cpy_vis_flg) === 0):
|
11551
11551
|
O += " kg-form-item--invisible";
|
11552
11552
|
break;
|
11553
11553
|
}
|
@@ -11604,7 +11604,7 @@ const KgFormItem = defineComponent({
|
|
11604
11604
|
validateFirst: !0,
|
11605
11605
|
htmlFor: w.value
|
11606
11606
|
}, {
|
11607
|
-
default: () => createVNode(Fragment, null, [K(), D(),
|
11607
|
+
default: () => createVNode(Fragment, null, [K(), D(), x(), N()]),
|
11608
11608
|
label: () => P()
|
11609
11609
|
});
|
11610
11610
|
}
|
@@ -11656,12 +11656,12 @@ const KgFormItem = defineComponent({
|
|
11656
11656
|
var O, R, V;
|
11657
11657
|
return ((R = (O = s.option.value.KgSearch) == null ? void 0 : O.dynamicQuery) == null ? void 0 : R.on) !== !0 || ((V = i.currentVarProfileMaster.value) == null ? void 0 : V.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
11658
11658
|
default: () => {
|
11659
|
-
var
|
11659
|
+
var F;
|
11660
11660
|
return [createVNode(Select, {
|
11661
|
-
value: (
|
11662
|
-
"onUpdate:value": (
|
11661
|
+
value: (F = l.operatorModel.value) == null ? void 0 : F[e.kgVarName],
|
11662
|
+
"onUpdate:value": (U) => {
|
11663
11663
|
l.store.patchOperatorModel(i.formID, {
|
11664
|
-
[e.kgVarName]:
|
11664
|
+
[e.kgVarName]: U
|
11665
11665
|
});
|
11666
11666
|
},
|
11667
11667
|
disabled: _.value,
|
@@ -11669,8 +11669,8 @@ const KgFormItem = defineComponent({
|
|
11669
11669
|
dropdownClassName: "kg-form-item-operator-select-dropdown"
|
11670
11670
|
}, {
|
11671
11671
|
default: () => {
|
11672
|
-
var
|
11673
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((
|
11672
|
+
var U;
|
11673
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((U = m.value) != null ? U : "");
|
11674
11674
|
},
|
11675
11675
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
11676
11676
|
class: "ant-select-suffix"
|
@@ -11684,7 +11684,7 @@ const KgFormItem = defineComponent({
|
|
11684
11684
|
title: i.t(e.kgVarName).value
|
11685
11685
|
}, [i.t(e.kgVarName).value]) : null;
|
11686
11686
|
}
|
11687
|
-
function
|
11687
|
+
function x() {
|
11688
11688
|
var O;
|
11689
11689
|
return !c.value || !((O = c.value) != null && O.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
11690
11690
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -11693,7 +11693,7 @@ const KgFormItem = defineComponent({
|
|
11693
11693
|
}, null)]
|
11694
11694
|
});
|
11695
11695
|
}
|
11696
|
-
function
|
11696
|
+
function N() {
|
11697
11697
|
return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
|
11698
11698
|
frm_id: i.formID,
|
11699
11699
|
varName: e.kgVarName,
|
@@ -12853,12 +12853,12 @@ const getProps$r = () => ({
|
|
12853
12853
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
12854
12854
|
inject(DI_KG_VAR__KG_PROPS, null);
|
12855
12855
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
12856
|
-
i.onSubmitSave(async () => (await
|
12856
|
+
i.onSubmitSave(async () => (await ce(), !1)), i.onSubmitCancel(async () => (await ge(), !1)), _useFormModel$1();
|
12857
12857
|
const u = computed(() => s.isDeleting.value && D.value.length === 0 && P.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), D = computed(() => {
|
12858
|
-
var
|
12858
|
+
var H, W, X;
|
12859
12859
|
switch (!0) {
|
12860
12860
|
case s.isCreating.value:
|
12861
|
-
return (
|
12861
|
+
return (H = E.value) != null ? H : [];
|
12862
12862
|
case s.isUpdating.value:
|
12863
12863
|
return (W = m.value) != null ? W : [];
|
12864
12864
|
case s.isCopying.value:
|
@@ -12868,10 +12868,10 @@ const getProps$r = () => ({
|
|
12868
12868
|
}
|
12869
12869
|
return [];
|
12870
12870
|
}), K = computed(() => {
|
12871
|
-
var
|
12871
|
+
var H, W, X;
|
12872
12872
|
switch (!0) {
|
12873
12873
|
case s.isCreating.value:
|
12874
|
-
return (
|
12874
|
+
return (H = T.value) != null ? H : [];
|
12875
12875
|
case s.isUpdating.value:
|
12876
12876
|
return (W = A.value) != null ? W : [];
|
12877
12877
|
case s.isCopying.value:
|
@@ -12881,57 +12881,57 @@ const getProps$r = () => ({
|
|
12881
12881
|
}
|
12882
12882
|
return [];
|
12883
12883
|
}), P = computed(() => {
|
12884
|
-
var
|
12884
|
+
var H, W, X, te;
|
12885
12885
|
switch (!0) {
|
12886
12886
|
case s.isCreating.value:
|
12887
|
-
return (
|
12887
|
+
return (H = g.value) != null ? H : [];
|
12888
12888
|
case s.isUpdating.value:
|
12889
12889
|
return (W = _.value) != null ? W : [];
|
12890
12890
|
case s.isCopying.value:
|
12891
12891
|
return (X = v.value) != null ? X : [];
|
12892
12892
|
case s.isDeleting.value:
|
12893
|
-
return (
|
12893
|
+
return (te = I.value) != null ? te : [];
|
12894
12894
|
}
|
12895
12895
|
return [];
|
12896
|
-
}),
|
12897
|
-
var
|
12896
|
+
}), x = computed(() => {
|
12897
|
+
var H, W, X, te;
|
12898
12898
|
switch (!0) {
|
12899
12899
|
case s.isCreating.value:
|
12900
|
-
return (
|
12900
|
+
return (H = k.value) != null ? H : [];
|
12901
12901
|
case s.isUpdating.value:
|
12902
12902
|
return (W = C.value) != null ? W : [];
|
12903
12903
|
case s.isCopying.value:
|
12904
12904
|
return (X = M.value) != null ? X : [];
|
12905
12905
|
case s.isDeleting.value:
|
12906
|
-
return (
|
12906
|
+
return (te = I.value) != null ? te : [];
|
12907
12907
|
}
|
12908
12908
|
return [];
|
12909
|
-
}),
|
12909
|
+
}), N = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), O = computed(() => N.value || d.value), R = computed(() => d.value), V = ref({
|
12910
12910
|
kgWidth: 0
|
12911
|
-
}),
|
12912
|
-
var
|
12913
|
-
return !!(u.value ||
|
12914
|
-
}),
|
12915
|
-
var
|
12916
|
-
return u.value ? 398 : (W = (
|
12917
|
-
}),
|
12918
|
-
var
|
12919
|
-
return u.value ? 398 : (W = (
|
12920
|
-
}),
|
12921
|
-
_useResizeObserver(
|
12922
|
-
const
|
12911
|
+
}), F = computed(() => {
|
12912
|
+
var H;
|
12913
|
+
return !!(u.value || ee.isFullscreen || ((H = b.value) == null ? void 0 : H.resizable_flg) === 0);
|
12914
|
+
}), U = computed(() => {
|
12915
|
+
var H, W;
|
12916
|
+
return u.value ? 398 : (W = (H = b.value) == null ? void 0 : H.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
12917
|
+
}), L = computed(() => {
|
12918
|
+
var H, W;
|
12919
|
+
return u.value ? 398 : (W = (H = b.value) == null ? void 0 : H.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
12920
|
+
}), $ = computed(() => u.value ? 398 : V.value.kgWidth), q = ref(null);
|
12921
|
+
_useResizeObserver(q);
|
12922
|
+
const z = _useTitle(), J = computed(() => u.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? "auto" : 0), re = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ee = reactive({
|
12923
12923
|
isFullscreen: !1
|
12924
12924
|
}), {
|
12925
|
-
getClass:
|
12926
|
-
} = _useClass(e,
|
12927
|
-
getLayout:
|
12925
|
+
getClass: oe
|
12926
|
+
} = _useClass(e, ee), {
|
12927
|
+
getLayout: ue
|
12928
12928
|
} = _useLayout(), {
|
12929
|
-
getDefaultWidth:
|
12929
|
+
getDefaultWidth: ae
|
12930
12930
|
} = _useDefaultWidth(), ne = computed(() => {
|
12931
|
-
var
|
12932
|
-
switch (
|
12931
|
+
var H, W, X;
|
12932
|
+
switch (ue.value) {
|
12933
12933
|
case "horizontal":
|
12934
|
-
switch ((
|
12934
|
+
switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
|
12935
12935
|
case KG_WIDTH_UNIT.SPAN:
|
12936
12936
|
return {
|
12937
12937
|
span: (W = b.value) == null ? void 0 : W.label_col
|
@@ -12948,10 +12948,10 @@ const getProps$r = () => ({
|
|
12948
12948
|
return;
|
12949
12949
|
}
|
12950
12950
|
}), B = computed(() => {
|
12951
|
-
var
|
12952
|
-
switch (
|
12951
|
+
var H, W;
|
12952
|
+
switch (ue.value) {
|
12953
12953
|
case "horizontal":
|
12954
|
-
switch ((
|
12954
|
+
switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
|
12955
12955
|
case KG_WIDTH_UNIT.SPAN:
|
12956
12956
|
return {
|
12957
12957
|
span: 24 - ((W = b.value) == null ? void 0 : W.label_col)
|
@@ -12974,20 +12974,20 @@ const getProps$r = () => ({
|
|
12974
12974
|
return s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"] ? s.t(s.varSubmitConfigProps.value["footer.ok-button.text-var-name.deleting"]).value : n.t("kg.delete");
|
12975
12975
|
}
|
12976
12976
|
return n.t("kg.save");
|
12977
|
-
}),
|
12977
|
+
}), Q = computed(() => l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
|
12978
12978
|
((Se = (Me = (ke = n.option.value) == null ? void 0 : ke.KgModal) == null ? void 0 : Me.drag) == null ? void 0 : Se.on) === !0 && useKgDragModal({
|
12979
12979
|
visible: re,
|
12980
|
-
draggable:
|
12980
|
+
draggable: Q,
|
12981
12981
|
destroyOnClose: ref(!0),
|
12982
12982
|
containerElementSelector: ".ant-drawer-content-wrapper",
|
12983
12983
|
handleElementSelector: ".ant-drawer-header",
|
12984
12984
|
contentElementSelector: ".ant-drawer-content-wrapper"
|
12985
|
-
}), watch(re, (
|
12986
|
-
|
12985
|
+
}), watch(re, (H, W) => {
|
12986
|
+
H === !0 && Y(), W === !0 && H === !1 && Z();
|
12987
12987
|
}, {
|
12988
12988
|
immediate: !0
|
12989
|
-
}), watch(
|
12990
|
-
|
12989
|
+
}), watch(ae, (H) => {
|
12990
|
+
H && (V.value.kgWidth = H);
|
12991
12991
|
}, {
|
12992
12992
|
immediate: !0
|
12993
12993
|
});
|
@@ -13000,9 +13000,9 @@ const getProps$r = () => ({
|
|
13000
13000
|
row: o.selectedRow.value
|
13001
13001
|
}))
|
13002
13002
|
return new Promise((W, X) => {
|
13003
|
-
var
|
13004
|
-
const
|
13005
|
-
|
13003
|
+
var ie;
|
13004
|
+
const te = watch(l.model, async (le) => {
|
13005
|
+
le && Object.keys(le).length > 0 && (setTimeout(() => te()), await l.store.emit(s.formID, "open", {
|
13006
13006
|
isCreating: s.isCreating.value,
|
13007
13007
|
isUpdating: s.isUpdating.value,
|
13008
13008
|
isCopying: s.isCopying.value,
|
@@ -13013,13 +13013,13 @@ const getProps$r = () => ({
|
|
13013
13013
|
}, {
|
13014
13014
|
immediate: !0
|
13015
13015
|
});
|
13016
|
-
((
|
13016
|
+
((ie = b.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (ee.isFullscreen = !0);
|
13017
13017
|
});
|
13018
13018
|
}
|
13019
13019
|
async function Z() {
|
13020
|
-
V.value.kgWidth =
|
13020
|
+
V.value.kgWidth = ae.value, ee.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
13021
13021
|
}
|
13022
|
-
async function
|
13022
|
+
async function ge() {
|
13023
13023
|
switch (!0) {
|
13024
13024
|
case s.isCreating.value:
|
13025
13025
|
s.store.setIsCreating(s.formID, !1);
|
@@ -13035,8 +13035,8 @@ const getProps$r = () => ({
|
|
13035
13035
|
break;
|
13036
13036
|
}
|
13037
13037
|
}
|
13038
|
-
async function
|
13039
|
-
var
|
13038
|
+
async function ce() {
|
13039
|
+
var H, W;
|
13040
13040
|
try {
|
13041
13041
|
if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
|
13042
13042
|
isCreating: s.isCreating.value,
|
@@ -13049,9 +13049,9 @@ const getProps$r = () => ({
|
|
13049
13049
|
}))
|
13050
13050
|
return;
|
13051
13051
|
try {
|
13052
|
-
await ((
|
13053
|
-
} catch (
|
13054
|
-
KgUtil.throwIfNotFormError(
|
13052
|
+
await ((H = l.formRef.value) == null ? void 0 : H.validate());
|
13053
|
+
} catch (ie) {
|
13054
|
+
KgUtil.throwIfNotFormError(ie);
|
13055
13055
|
}
|
13056
13056
|
if (await ((W = l.formRef.value) == null ? void 0 : W.validate()), await l.store.emit(s.formID, "afterValidate", {
|
13057
13057
|
isCreating: s.isCreating.value,
|
@@ -13065,7 +13065,7 @@ const getProps$r = () => ({
|
|
13065
13065
|
return;
|
13066
13066
|
switch (!0) {
|
13067
13067
|
case s.isCreating.value:
|
13068
|
-
await
|
13068
|
+
await fe();
|
13069
13069
|
break;
|
13070
13070
|
case s.isUpdating.value:
|
13071
13071
|
await he();
|
@@ -13081,11 +13081,11 @@ const getProps$r = () => ({
|
|
13081
13081
|
KgUtil.throwIfNotFormError(X);
|
13082
13082
|
}
|
13083
13083
|
}
|
13084
|
-
async function
|
13085
|
-
var
|
13084
|
+
async function fe() {
|
13085
|
+
var H, W, X, te, ie, le, de;
|
13086
13086
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
13087
13087
|
try {
|
13088
|
-
let
|
13088
|
+
let se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonCreate.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
13089
13089
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
13090
13090
|
isCreating: s.isCreating.value,
|
13091
13091
|
isUpdating: s.isUpdating.value,
|
@@ -13094,20 +13094,20 @@ const getProps$r = () => ({
|
|
13094
13094
|
row: o.selectedFirstRow.value,
|
13095
13095
|
rows: o.selectedRows.value,
|
13096
13096
|
model: l.model,
|
13097
|
-
params:
|
13097
|
+
params: se,
|
13098
13098
|
data: pe
|
13099
13099
|
}))
|
13100
13100
|
return;
|
13101
|
-
const
|
13102
|
-
if (!
|
13101
|
+
const _e = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd;
|
13102
|
+
if (!_e)
|
13103
13103
|
throw message.error(n.t("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u521B\u5EFA\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
13104
13104
|
const me = await httpClient().request({
|
13105
|
-
url:
|
13106
|
-
method: (
|
13107
|
-
params:
|
13105
|
+
url: _e,
|
13106
|
+
method: (ie = (te = s.varButtonCreate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
|
13107
|
+
params: se.value,
|
13108
13108
|
data: pe.value
|
13109
13109
|
});
|
13110
|
-
((
|
13110
|
+
((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(z.title.value + n.t("kg.succeed")), s.store.setIsCreating(s.formID, !1), ((de = s.varButtonCreate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
|
13111
13111
|
isSearchFirstPage: !0
|
13112
13112
|
}), await l.store.emit(s.formID, "ok", {
|
13113
13113
|
isCreating: !0,
|
@@ -13118,17 +13118,17 @@ const getProps$r = () => ({
|
|
13118
13118
|
model: l.model,
|
13119
13119
|
result: me
|
13120
13120
|
});
|
13121
|
-
} catch (
|
13122
|
-
console.error(
|
13121
|
+
} catch (se) {
|
13122
|
+
console.error(se), l.store.emit(s.formID, "error", se);
|
13123
13123
|
} finally {
|
13124
13124
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
13125
13125
|
}
|
13126
13126
|
}
|
13127
13127
|
async function he() {
|
13128
|
-
var
|
13128
|
+
var H, W, X, te, ie, le, de;
|
13129
13129
|
try {
|
13130
13130
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
13131
|
-
let
|
13131
|
+
let se = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonUpdate.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
13132
13132
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
13133
13133
|
isCreating: s.isCreating.value,
|
13134
13134
|
isUpdating: s.isUpdating.value,
|
@@ -13137,20 +13137,20 @@ const getProps$r = () => ({
|
|
13137
13137
|
row: o.selectedRow.value,
|
13138
13138
|
rows: o.selectedRows.value,
|
13139
13139
|
model: l.model,
|
13140
|
-
params:
|
13140
|
+
params: se,
|
13141
13141
|
data: pe
|
13142
13142
|
}))
|
13143
13143
|
return;
|
13144
|
-
const
|
13145
|
-
if (!
|
13144
|
+
const _e = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd;
|
13145
|
+
if (!_e)
|
13146
13146
|
throw message.error(n.t("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u66F4\u65B0\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
13147
13147
|
const me = await httpClient().request({
|
13148
|
-
url:
|
13149
|
-
method: (
|
13150
|
-
params:
|
13148
|
+
url: _e,
|
13149
|
+
method: (ie = (te = s.varButtonUpdate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
|
13150
|
+
params: se.value,
|
13151
13151
|
data: pe.value
|
13152
13152
|
});
|
13153
|
-
((
|
13153
|
+
((le = s.varButtonUpdate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.setIsUpdating(s.formID, !1), ((de = s.varButtonUpdate.value) == null ? void 0 : de.reload_all_after_done_flg) !== 0 && c.search({
|
13154
13154
|
isPreserveSelectedRows: !0
|
13155
13155
|
}), await l.store.emit(s.formID, "ok", {
|
13156
13156
|
isCreating: !1,
|
@@ -13161,21 +13161,21 @@ const getProps$r = () => ({
|
|
13161
13161
|
model: l.model,
|
13162
13162
|
result: me
|
13163
13163
|
});
|
13164
|
-
} catch (
|
13165
|
-
console.error(
|
13164
|
+
} catch (se) {
|
13165
|
+
console.error(se), l.store.emit(s.formID, "error", se);
|
13166
13166
|
} finally {
|
13167
13167
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
13168
13168
|
}
|
13169
13169
|
}
|
13170
13170
|
async function Ce() {
|
13171
|
-
var
|
13171
|
+
var H, W, X, te, ie, le, de, se, pe;
|
13172
13172
|
try {
|
13173
13173
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
13174
|
-
let ve = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (
|
13174
|
+
let ve = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonCopy.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), _e = ref(KgUtil.parseParams({
|
13175
13175
|
...(X = o.selectedFirstRow.value) != null ? X : {},
|
13176
13176
|
...toRaw(l.model.value)
|
13177
13177
|
}, s.formID, r));
|
13178
|
-
if (((
|
13178
|
+
if (((te = b.value) == null ? void 0 : te.cpy_clear_id_flg) !== 0 && delete _e.value.id, await l.store.emit(s.formID, "beforeRequest", {
|
13179
13179
|
isCreating: s.isCreating.value,
|
13180
13180
|
isUpdating: s.isUpdating.value,
|
13181
13181
|
isCopying: s.isCopying.value,
|
@@ -13184,19 +13184,19 @@ const getProps$r = () => ({
|
|
13184
13184
|
rows: o.selectedRows.value,
|
13185
13185
|
model: l.model,
|
13186
13186
|
params: ve,
|
13187
|
-
data:
|
13187
|
+
data: _e
|
13188
13188
|
}))
|
13189
13189
|
return;
|
13190
|
-
const Te = (
|
13190
|
+
const Te = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
|
13191
13191
|
if (!Te)
|
13192
13192
|
throw message.error(n.t("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u590D\u5236\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
13193
13193
|
const we = await httpClient().request({
|
13194
13194
|
url: Te,
|
13195
|
-
method: (
|
13195
|
+
method: (de = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? de : "POST",
|
13196
13196
|
params: ve.value,
|
13197
|
-
data:
|
13197
|
+
data: _e.value
|
13198
13198
|
});
|
13199
|
-
((
|
13199
|
+
((se = s.varButtonCopy.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.setIsCopying(s.formID, !1), ((pe = s.varButtonCopy.value) == null ? void 0 : pe.reload_all_after_done_flg) !== 0 && c.search({
|
13200
13200
|
isSearchFirstPage: !0
|
13201
13201
|
}), await l.store.emit(s.formID, "ok", {
|
13202
13202
|
isCreating: !1,
|
@@ -13214,15 +13214,15 @@ const getProps$r = () => ({
|
|
13214
13214
|
}
|
13215
13215
|
}
|
13216
13216
|
async function be() {
|
13217
|
-
var
|
13217
|
+
var H, W, X, te, ie, le, de, se, pe, ve, _e;
|
13218
13218
|
try {
|
13219
13219
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
13220
|
-
let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (
|
13221
|
-
if (((
|
13222
|
-
ids: (
|
13220
|
+
let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonDelete.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), Te = ref((X = o.selectedRows.value) != null ? X : []);
|
13221
|
+
if (((te = s.varButtonDelete.value) == null ? void 0 : te.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
|
13222
|
+
ids: (le = (ie = o.selectedRows.value) == null ? void 0 : ie.map((Le) => {
|
13223
13223
|
var Re, Ke, Pe;
|
13224
13224
|
return (Pe = Le[(Ke = (Re = s.varButtonDelete.value) == null ? void 0 : Re.del_param_clm) != null ? Ke : "id"]) != null ? Pe : "";
|
13225
|
-
})) != null ?
|
13225
|
+
})) != null ? le : []
|
13226
13226
|
})), await l.store.emit(s.formID, "beforeRequest", {
|
13227
13227
|
isCreating: s.isCreating.value,
|
13228
13228
|
isUpdating: s.isUpdating.value,
|
@@ -13235,10 +13235,10 @@ const getProps$r = () => ({
|
|
13235
13235
|
data: Te
|
13236
13236
|
}))
|
13237
13237
|
return;
|
13238
|
-
const Oe = (
|
13238
|
+
const Oe = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd;
|
13239
13239
|
if (!Oe)
|
13240
13240
|
throw message.error(n.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
13241
|
-
const Ve = (pe = (
|
13241
|
+
const Ve = (pe = (se = s.varButtonDelete.value) == null ? void 0 : se.cmd_method) != null ? pe : "POST", Ne = await httpClient().request({
|
13242
13242
|
url: Oe,
|
13243
13243
|
method: Ve,
|
13244
13244
|
params: me.value,
|
@@ -13246,7 +13246,7 @@ const getProps$r = () => ({
|
|
13246
13246
|
}, {
|
13247
13247
|
joinParamsToUrl: !0
|
13248
13248
|
});
|
13249
|
-
((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((
|
13249
|
+
((ve = s.varButtonDelete.value) == null ? void 0 : ve.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.setIsDeleting(s.formID, !1), ((_e = s.varButtonDelete.value) == null ? void 0 : _e.reload_all_after_done_flg) !== 0 && c.search({
|
13250
13250
|
isSearchFirstPage: !0
|
13251
13251
|
}), await l.store.emit(s.formID, "ok", {
|
13252
13252
|
isCreating: !1,
|
@@ -13266,27 +13266,27 @@ const getProps$r = () => ({
|
|
13266
13266
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
13267
13267
|
}
|
13268
13268
|
}
|
13269
|
-
function ye(
|
13270
|
-
var
|
13271
|
-
const W = (
|
13269
|
+
function ye(H) {
|
13270
|
+
var te, ie, le, de;
|
13271
|
+
const W = (ie = (te = a == null ? void 0 : a.KgSubmit) == null ? void 0 : te["KgForm.Item.control"]) == null ? void 0 : ie[H.var_nam], X = (de = (le = a == null ? void 0 : a.KgSubmit) == null ? void 0 : le["KgForm.Item.controlRight"]) == null ? void 0 : de[H.var_nam];
|
13272
13272
|
return createVNode(KgForm.Item, {
|
13273
|
-
kgVarName:
|
13273
|
+
kgVarName: H.var_nam,
|
13274
13274
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
13275
|
-
kgRules: l.rules.value[
|
13276
|
-
onKgSubmit:
|
13275
|
+
kgRules: l.rules.value[H.var_nam],
|
13276
|
+
onKgSubmit: ce
|
13277
13277
|
}, {
|
13278
|
-
control: isFunction$2(W) ? (
|
13279
|
-
controlRight: isFunction$2(X) ? (
|
13278
|
+
control: isFunction$2(W) ? (se) => W(se) : void 0,
|
13279
|
+
controlRight: isFunction$2(X) ? (se) => X(se) : void 0
|
13280
13280
|
});
|
13281
13281
|
}
|
13282
13282
|
function De() {
|
13283
|
-
let
|
13283
|
+
let H, W;
|
13284
13284
|
return createVNode(KgResizable, {
|
13285
13285
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
13286
|
-
kgMinWidth:
|
13287
|
-
kgMaxWidth:
|
13288
|
-
kgWidth:
|
13289
|
-
kgDisabled:
|
13286
|
+
kgMinWidth: U.value,
|
13287
|
+
kgMaxWidth: L.value,
|
13288
|
+
kgWidth: $.value,
|
13289
|
+
kgDisabled: F.value,
|
13290
13290
|
"onUpdate:kgWidth": (X) => V.value.kgWidth = X
|
13291
13291
|
}, {
|
13292
13292
|
default: () => [createVNode(Spin, {
|
@@ -13297,17 +13297,17 @@ const getProps$r = () => ({
|
|
13297
13297
|
return [createVNode(KgForm, {
|
13298
13298
|
ref: l.formRef,
|
13299
13299
|
model: (X = l.model.value) != null ? X : void 0,
|
13300
|
-
layout:
|
13300
|
+
layout: ue.value,
|
13301
13301
|
labelCol: ne.value,
|
13302
13302
|
wrapperCol: B.value
|
13303
13303
|
}, {
|
13304
13304
|
default: () => [createVNode("div", {
|
13305
|
-
ref:
|
13305
|
+
ref: q
|
13306
13306
|
}, [D.value.length > 0 && createVNode(Row, {
|
13307
13307
|
gutter: 12
|
13308
|
-
}, _isSlot$6(
|
13309
|
-
default: () => [
|
13310
|
-
}), K.value.length > 0 &&
|
13308
|
+
}, _isSlot$6(H = D.value.map(ye)) ? H : {
|
13309
|
+
default: () => [H]
|
13310
|
+
}), K.value.length > 0 && x.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
|
13311
13311
|
gutter: 12
|
13312
13312
|
}, _isSlot$6(W = P.value.map(ye)) ? W : {
|
13313
13313
|
default: () => [W]
|
@@ -13320,36 +13320,36 @@ const getProps$r = () => ({
|
|
13320
13320
|
});
|
13321
13321
|
}
|
13322
13322
|
function Ee() {
|
13323
|
-
let
|
13323
|
+
let H;
|
13324
13324
|
return createVNode("div", null, [createVNode(Button, {
|
13325
13325
|
type: "primary",
|
13326
13326
|
ghost: !O.value,
|
13327
13327
|
disabled: O.value,
|
13328
|
-
onClick:
|
13329
|
-
}, _isSlot$6(
|
13330
|
-
default: () => [
|
13328
|
+
onClick: ge
|
13329
|
+
}, _isSlot$6(H = n.t("kg.cancel")) ? H : {
|
13330
|
+
default: () => [H]
|
13331
13331
|
}), createVNode(Button, {
|
13332
13332
|
type: "primary",
|
13333
13333
|
disabled: R.value,
|
13334
|
-
loading:
|
13334
|
+
loading: N.value,
|
13335
13335
|
danger: !!s.isDeleting.value,
|
13336
|
-
onClick:
|
13336
|
+
onClick: ce
|
13337
13337
|
}, {
|
13338
13338
|
default: () => [G.value]
|
13339
13339
|
})]);
|
13340
13340
|
}
|
13341
13341
|
function Ae() {
|
13342
13342
|
return createVNode("div", {
|
13343
|
-
title:
|
13344
|
-
}, [
|
13343
|
+
title: z.title.value
|
13344
|
+
}, [z.title.value]);
|
13345
13345
|
}
|
13346
13346
|
function Ie() {
|
13347
13347
|
return createVNode(KgSubmitHeader, {
|
13348
|
-
isFullscreen:
|
13349
|
-
"onUpdate:isFullscreen": (
|
13348
|
+
isFullscreen: ee.isFullscreen,
|
13349
|
+
"onUpdate:isFullscreen": (H) => ee.isFullscreen = H,
|
13350
13350
|
kgShowFullscreenButton: !u.value,
|
13351
13351
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
13352
|
-
onKgCancel:
|
13352
|
+
onKgCancel: ge
|
13353
13353
|
}, null);
|
13354
13354
|
}
|
13355
13355
|
return onUnmounted(async () => {
|
@@ -13362,7 +13362,7 @@ const getProps$r = () => ({
|
|
13362
13362
|
keyboard: !1,
|
13363
13363
|
destroyOnClose: !0,
|
13364
13364
|
width: J.value,
|
13365
|
-
class:
|
13365
|
+
class: oe.value,
|
13366
13366
|
"kg-frm_id": s.formID
|
13367
13367
|
}, {
|
13368
13368
|
title: Ae,
|
@@ -14931,10 +14931,10 @@ function useKgVar(e, t, r = 0) {
|
|
14931
14931
|
}), onUnmounted(() => {
|
14932
14932
|
i.dispose(s);
|
14933
14933
|
}));
|
14934
|
-
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), M = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), D = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)),
|
14935
|
-
var
|
14936
|
-
return (
|
14937
|
-
}),
|
14934
|
+
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), m = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), v = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), w = computed(() => i.getVarButtonUpdate(s)), M = computed(() => i.getVarButtonCopy(s)), I = computed(() => i.getVarButtonDelete(s)), D = computed(() => i.getVarProfileMasters(s)), K = computed(() => i.getCurrentVarProfileMasterID(s)), P = computed(() => i.getCurrentVarProfileMaster(s)), x = computed(() => {
|
14935
|
+
var $, q;
|
14936
|
+
return (q = ($ = P.value) == null ? void 0 : $.varProfileDetails) != null ? q : null;
|
14937
|
+
}), N = computed(() => i.getVarGridConfig(s)), O = computed(() => i.getVarGridMasters(s)), R = computed(() => i.getCurrentVarGridMasterID(s)), V = computed(() => i.getCurrentVarGridMaster(s)), F = computed(() => i.getSystemVarGridDetails(s)), U = computed(() => i.getCurrentVarGridDetails(s)), L = computed(() => i.getVarSubmitConfigProps(s));
|
14938
14938
|
return {
|
14939
14939
|
formID: s,
|
14940
14940
|
store: i,
|
@@ -14960,31 +14960,31 @@ function useKgVar(e, t, r = 0) {
|
|
14960
14960
|
varProfileMasters: D,
|
14961
14961
|
currentVarProfileMasterID: K,
|
14962
14962
|
currentVarProfileMaster: P,
|
14963
|
-
currentVarProfileDetails:
|
14964
|
-
varGridConfig:
|
14963
|
+
currentVarProfileDetails: x,
|
14964
|
+
varGridConfig: N,
|
14965
14965
|
varGridMasters: O,
|
14966
14966
|
currentVarGridMasteID: R,
|
14967
14967
|
currentVarGridMaster: V,
|
14968
|
-
systemVarGridDetails:
|
14969
|
-
currentVarGridDetails:
|
14970
|
-
varSubmitConfigProps:
|
14971
|
-
setIsCreating(
|
14972
|
-
i.setIsCreating(s,
|
14968
|
+
systemVarGridDetails: F,
|
14969
|
+
currentVarGridDetails: U,
|
14970
|
+
varSubmitConfigProps: L,
|
14971
|
+
setIsCreating($) {
|
14972
|
+
i.setIsCreating(s, $);
|
14973
14973
|
},
|
14974
|
-
setIsUpdating(
|
14975
|
-
i.setIsUpdating(s,
|
14974
|
+
setIsUpdating($) {
|
14975
|
+
i.setIsUpdating(s, $);
|
14976
14976
|
},
|
14977
|
-
setIsCopying(
|
14978
|
-
i.setIsCopying(s,
|
14977
|
+
setIsCopying($) {
|
14978
|
+
i.setIsCopying(s, $);
|
14979
14979
|
},
|
14980
|
-
setIsDeleting(
|
14981
|
-
i.setIsDeleting(s,
|
14980
|
+
setIsDeleting($) {
|
14981
|
+
i.setIsDeleting(s, $);
|
14982
14982
|
},
|
14983
|
-
patchVarSubmitField(
|
14984
|
-
return i.patchVarSubmitField(s,
|
14983
|
+
patchVarSubmitField($, q, z) {
|
14984
|
+
return i.patchVarSubmitField(s, $, q, z);
|
14985
14985
|
},
|
14986
|
-
t(
|
14987
|
-
return computed(() => i.t(s,
|
14986
|
+
t($) {
|
14987
|
+
return computed(() => i.t(s, $));
|
14988
14988
|
},
|
14989
14989
|
onRetrieve: onEventFactory(s, i, "retrieve")
|
14990
14990
|
};
|
@@ -15714,7 +15714,7 @@ const getProps$p = () => ({
|
|
15714
15714
|
if (((w = e.kgButton) == null ? void 0 : w.re_select_after_reload_flg) !== 0 && s.onAfterSearch(async ({
|
15715
15715
|
datas: D
|
15716
15716
|
}) => {
|
15717
|
-
const K = D.value, P = intersectionWith$1(K, y != null ? y : [], (
|
15717
|
+
const K = D.value, P = intersectionWith$1(K, y != null ? y : [], (x, N) => (x == null ? void 0 : x[s.id.value]) === (N == null ? void 0 : N[s.id.value]));
|
15718
15718
|
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
15719
15719
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15720
15720
|
button: e.kgButton,
|
@@ -16658,11 +16658,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16658
16658
|
}
|
16659
16659
|
});
|
16660
16660
|
l.value = l.value.map((P) => {
|
16661
|
-
var
|
16662
|
-
const
|
16663
|
-
return
|
16661
|
+
var N;
|
16662
|
+
const x = (N = D == null ? void 0 : D.varProfileDetails) == null ? void 0 : N.find((O) => O.var_nam === P.var_nam);
|
16663
|
+
return x ? {
|
16664
16664
|
...P,
|
16665
|
-
...
|
16665
|
+
...x,
|
16666
16666
|
id: P.id
|
16667
16667
|
} : P;
|
16668
16668
|
});
|
@@ -17003,23 +17003,23 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17003
17003
|
});
|
17004
17004
|
_useLayoutHeaderResizeObserver();
|
17005
17005
|
const _ = _useFormModel(E, g, m), y = computed(() => {
|
17006
|
-
var $,
|
17007
|
-
if (!isNil((
|
17008
|
-
return (
|
17006
|
+
var L, $, q, z;
|
17007
|
+
if (!isNil(($ = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgSearch) == null ? void 0 : $.kgDisabled))
|
17008
|
+
return (z = (q = r == null ? void 0 : r.value) == null ? void 0 : q.KgSearch) == null ? void 0 : z.kgDisabled;
|
17009
17009
|
if (!isNil(e.kgDisabled))
|
17010
17010
|
return e.kgDisabled;
|
17011
17011
|
}), v = computed(() => {
|
17012
|
-
var
|
17013
|
-
return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType((
|
17012
|
+
var L, $;
|
17013
|
+
return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType((L = n.varButtonSearch.value) == null ? void 0 : L.permission_code) === 2 && !a.p(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
17014
17014
|
}), T = computed(() => !!(y.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!i.isRetrieving.value), A = ref({
|
17015
17015
|
visible: !1
|
17016
17016
|
}), C = computed(() => m.value.kgHeight === b.value), w = computed(() => {
|
17017
|
-
var $,
|
17018
|
-
if (n.t((
|
17019
|
-
return n.t((
|
17017
|
+
var L, $, q;
|
17018
|
+
if (n.t((L = n.varButtonSearch.value) == null ? void 0 : L.var_nam).value !== (($ = n.varButtonSearch.value) == null ? void 0 : $.var_nam))
|
17019
|
+
return n.t((q = n.varButtonSearch.value) == null ? void 0 : q.var_nam).value;
|
17020
17020
|
}), M = computed(() => {
|
17021
|
-
var
|
17022
|
-
switch ((
|
17021
|
+
var L;
|
17022
|
+
switch ((L = n.varButtonSearch.value) == null ? void 0 : L.primary_flg) {
|
17023
17023
|
case 1:
|
17024
17024
|
return !0;
|
17025
17025
|
case 0:
|
@@ -17028,16 +17028,16 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17028
17028
|
return !0;
|
17029
17029
|
}
|
17030
17030
|
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
|
17031
|
-
let
|
17032
|
-
return o.value && (
|
17031
|
+
let L = "kg-search";
|
17032
|
+
return o.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
|
17033
17033
|
});
|
17034
|
-
async function P(
|
17035
|
-
var
|
17034
|
+
async function P(L = {}) {
|
17035
|
+
var $, q;
|
17036
17036
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), i.isRetrieving.value) {
|
17037
17037
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
17038
17038
|
return;
|
17039
17039
|
}
|
17040
|
-
if (KgAuthUtil.getPermissionType((
|
17040
|
+
if (KgAuthUtil.getPermissionType(($ = n.varButtonSearch.value) == null ? void 0 : $.permission_code) === 2 && !a.p((q = n.varButtonSearch.value) == null ? void 0 : q.permission_code)) {
|
17041
17041
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
|
17042
17042
|
return;
|
17043
17043
|
}
|
@@ -17046,55 +17046,55 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17046
17046
|
return;
|
17047
17047
|
}
|
17048
17048
|
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), g.value && g.value.validate().then(async () => {
|
17049
|
-
await s.store.emit(n.formID, "search",
|
17050
|
-
}).catch((
|
17049
|
+
await s.store.emit(n.formID, "search", L);
|
17050
|
+
}).catch((z) => {
|
17051
17051
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
17052
|
-
e:
|
17052
|
+
e: z
|
17053
17053
|
});
|
17054
|
-
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search",
|
17054
|
+
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", L));
|
17055
17055
|
}
|
17056
17056
|
s.store.setSearchFn(n.formID, P);
|
17057
|
-
async function
|
17057
|
+
async function x() {
|
17058
17058
|
_.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
|
17059
17059
|
await s.store.emit(n.formID, "reset", {});
|
17060
|
-
}).catch((
|
17060
|
+
}).catch((L) => {
|
17061
17061
|
KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
17062
|
-
e:
|
17062
|
+
e: L
|
17063
17063
|
});
|
17064
17064
|
}) : await s.store.emit(n.formID, "reset", {});
|
17065
17065
|
}
|
17066
|
-
s.store.setResetFn(n.formID,
|
17067
|
-
function
|
17066
|
+
s.store.setResetFn(n.formID, x);
|
17067
|
+
function N() {
|
17068
17068
|
return P({
|
17069
17069
|
isSearchFirstPage: !0
|
17070
17070
|
}), Promise.resolve(!0);
|
17071
17071
|
}
|
17072
17072
|
function O() {
|
17073
|
-
var
|
17073
|
+
var L;
|
17074
17074
|
return createVNode("div", {
|
17075
17075
|
class: "title",
|
17076
|
-
onClick:
|
17077
|
-
}, [((
|
17076
|
+
onClick: U
|
17077
|
+
}, [((L = t == null ? void 0 : t.KgSearch) == null ? void 0 : L.left) && createVNode("div", {
|
17078
17078
|
class: "kg-search-title-left",
|
17079
|
-
onClick: (
|
17080
|
-
|
17079
|
+
onClick: ($) => {
|
17080
|
+
$.stopPropagation(), $.preventDefault();
|
17081
17081
|
}
|
17082
17082
|
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
17083
17083
|
}
|
17084
17084
|
function R() {
|
17085
|
-
var $,
|
17086
|
-
return ((
|
17087
|
-
value: (
|
17085
|
+
var L, $, q, z;
|
17086
|
+
return ((q = ($ = (L = n.varProfileMasters) == null ? void 0 : L.value) == null ? void 0 : $.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
17087
|
+
value: (z = n.currentVarProfileMasterID.value) != null ? z : void 0,
|
17088
17088
|
"onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
|
17089
17089
|
disabled: T.value,
|
17090
17090
|
class: "kg-search-profile-master-select"
|
17091
17091
|
}, {
|
17092
17092
|
default: () => {
|
17093
17093
|
var J, re;
|
17094
|
-
return (re = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : re.map((
|
17095
|
-
value:
|
17094
|
+
return (re = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : re.map((ee) => createVNode(Select.Option, {
|
17095
|
+
value: ee.id
|
17096
17096
|
}, {
|
17097
|
-
default: () => [n.t(
|
17097
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
17098
17098
|
}));
|
17099
17099
|
},
|
17100
17100
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -17115,45 +17115,45 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17115
17115
|
}, null)]);
|
17116
17116
|
}
|
17117
17117
|
function V() {
|
17118
|
-
var $,
|
17118
|
+
var L, $, q;
|
17119
17119
|
return createVNode(Fragment, null, [R(), createVNode(Button, {
|
17120
17120
|
type: "primary",
|
17121
17121
|
ghost: !v.value,
|
17122
17122
|
disabled: v.value,
|
17123
|
-
onClick:
|
17123
|
+
onClick: x,
|
17124
17124
|
class: "kg-search-btn-reset"
|
17125
17125
|
}, {
|
17126
17126
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
17127
17127
|
}), createVNode(KgButton.Item, {
|
17128
17128
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
17129
|
-
kgVarName: (
|
17130
|
-
kgIcon: (
|
17129
|
+
kgVarName: (L = n.varButtonSearch.value) == null ? void 0 : L.var_nam,
|
17130
|
+
kgIcon: ($ = n.varButtonSearch.value) == null ? void 0 : $.icon,
|
17131
17131
|
kgText: w.value,
|
17132
|
-
kgColor: (
|
17132
|
+
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
17133
17133
|
kgPrimary: M.value,
|
17134
17134
|
kgDisabled: v.value,
|
17135
17135
|
kgLoading: k.value,
|
17136
|
-
onKgClick:
|
17136
|
+
onKgClick: N
|
17137
17137
|
}, null)]);
|
17138
17138
|
}
|
17139
|
-
function
|
17139
|
+
function F() {
|
17140
17140
|
return createVNode(Spin, {
|
17141
17141
|
spinning: D.value
|
17142
17142
|
}, {
|
17143
17143
|
default: () => {
|
17144
|
-
var
|
17144
|
+
var L;
|
17145
17145
|
return [createVNode(KgForm, {
|
17146
17146
|
ref: g,
|
17147
|
-
model: (
|
17147
|
+
model: (L = s.model.value) != null ? L : {}
|
17148
17148
|
}, {
|
17149
17149
|
default: () => [createVNode(Row, {
|
17150
17150
|
gutter: 6
|
17151
17151
|
}, {
|
17152
17152
|
default: () => {
|
17153
|
-
var
|
17154
|
-
return [(
|
17155
|
-
key:
|
17156
|
-
kgVarName:
|
17153
|
+
var $;
|
17154
|
+
return [($ = n.currentVarProfileDetails.value) == null ? void 0 : $.map((q) => createVNode(KgForm.Item, {
|
17155
|
+
key: q.var_nam,
|
17156
|
+
kgVarName: q.var_nam,
|
17157
17157
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
17158
17158
|
onKgSubmit: () => P({
|
17159
17159
|
isSearchFirstPage: !0
|
@@ -17165,7 +17165,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17165
17165
|
}
|
17166
17166
|
});
|
17167
17167
|
}
|
17168
|
-
function
|
17168
|
+
function U() {
|
17169
17169
|
C.value ? m.value.kgHeight = u.value : m.value.kgHeight = b.value;
|
17170
17170
|
}
|
17171
17171
|
return onUnmounted(async () => {
|
@@ -17173,7 +17173,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17173
17173
|
}), () => createVNode(KgResizable, {
|
17174
17174
|
ref: E,
|
17175
17175
|
kgHeight: m.value.kgHeight,
|
17176
|
-
"onUpdate:kgHeight": (
|
17176
|
+
"onUpdate:kgHeight": (L) => m.value.kgHeight = L,
|
17177
17177
|
kgMinHeight: b.value,
|
17178
17178
|
kgMaxHeight: d.value,
|
17179
17179
|
kgDisabled: !l.value,
|
@@ -17201,7 +17201,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17201
17201
|
class: "ant-collapse-content ant-collapse-content-active"
|
17202
17202
|
}, [createVNode("div", {
|
17203
17203
|
class: "ant-collapse-content-box"
|
17204
|
-
}, [
|
17204
|
+
}, [F()])])])])]
|
17205
17205
|
});
|
17206
17206
|
}
|
17207
17207
|
}), KgVarConfig_FormIDsModal = "", getProps$i = () => ({
|
@@ -17592,11 +17592,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17592
17592
|
}, {
|
17593
17593
|
immediate: !0
|
17594
17594
|
}), watch(() => a.getSelectedVarCatalog, async (P) => {
|
17595
|
-
var
|
17596
|
-
l.value.var_text = (
|
17595
|
+
var x, N;
|
17596
|
+
l.value.var_text = (x = P == null ? void 0 : P.var_text) != null ? x : "", (N = o.value) == null || N.clearValidate();
|
17597
17597
|
});
|
17598
17598
|
async function v(P = !1) {
|
17599
|
-
var
|
17599
|
+
var x, N, O;
|
17600
17600
|
n.value = !0;
|
17601
17601
|
try {
|
17602
17602
|
const {
|
@@ -17606,19 +17606,19 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17606
17606
|
pageNo: 1,
|
17607
17607
|
pageSize: 999,
|
17608
17608
|
frm_id: e == null ? void 0 : e.value,
|
17609
|
-
var_nam: (
|
17609
|
+
var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
|
17610
17610
|
column: "frm_id,locale_id,cust_lvl",
|
17611
17611
|
order: "asc"
|
17612
17612
|
}
|
17613
17613
|
});
|
17614
17614
|
if (u.value = null, c.value = R != null ? R : [], P) {
|
17615
|
-
const V = c.value.find((
|
17616
|
-
var
|
17617
|
-
return
|
17615
|
+
const V = c.value.find((F) => {
|
17616
|
+
var U;
|
17617
|
+
return F.id === ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id);
|
17618
17618
|
});
|
17619
17619
|
a.setSelectedVarCatalog(V != null ? V : null), d.value = V != null && V.id ? [V.id] : [];
|
17620
17620
|
} else
|
17621
|
-
a.setSelectedVarCatalog((
|
17621
|
+
a.setSelectedVarCatalog((N = c.value[0]) != null ? N : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
|
17622
17622
|
} catch (R) {
|
17623
17623
|
KgLogger.debug(R == null ? void 0 : R.message);
|
17624
17624
|
} finally {
|
@@ -17626,12 +17626,12 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17626
17626
|
}
|
17627
17627
|
}
|
17628
17628
|
async function T() {
|
17629
|
-
var P,
|
17629
|
+
var P, x, N;
|
17630
17630
|
try {
|
17631
17631
|
s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
|
17632
17632
|
const O = new VarVariableCatalog({
|
17633
|
-
...(
|
17634
|
-
var_text: (
|
17633
|
+
...(x = a.getSelectedVarCatalog) != null ? x : {},
|
17634
|
+
var_text: (N = l.value) == null ? void 0 : N.var_text
|
17635
17635
|
});
|
17636
17636
|
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
17637
17637
|
data: O
|
@@ -17660,23 +17660,23 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17660
17660
|
}
|
17661
17661
|
function k({
|
17662
17662
|
isAllForm: P,
|
17663
|
-
isAllLanguage:
|
17663
|
+
isAllLanguage: x
|
17664
17664
|
}) {
|
17665
|
-
var
|
17665
|
+
var N, O, R;
|
17666
17666
|
u.value = new VarVariableCatalog({
|
17667
17667
|
id: "",
|
17668
17668
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
17669
|
-
grp_nam: (
|
17669
|
+
grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
|
17670
17670
|
var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
|
17671
17671
|
frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17672
|
-
locale_id:
|
17672
|
+
locale_id: x ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
17673
17673
|
var_text: ""
|
17674
17674
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17675
17675
|
}
|
17676
17676
|
function A() {
|
17677
|
-
var
|
17677
|
+
var x;
|
17678
17678
|
c.value = without$1(c.value, u.value), u.value = null;
|
17679
|
-
const P = (
|
17679
|
+
const P = (x = c.value[0]) != null ? x : null;
|
17680
17680
|
a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
|
17681
17681
|
}
|
17682
17682
|
function C() {
|
@@ -17697,8 +17697,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17697
17697
|
});
|
17698
17698
|
}
|
17699
17699
|
function w(P) {
|
17700
|
-
var
|
17701
|
-
((
|
17700
|
+
var x;
|
17701
|
+
((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== P.id && (unref(u) ? KgUtil.confirm({
|
17702
17702
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17703
17703
|
onOk: () => {
|
17704
17704
|
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
|
@@ -17728,7 +17728,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17728
17728
|
})]);
|
17729
17729
|
}
|
17730
17730
|
function D() {
|
17731
|
-
let P,
|
17731
|
+
let P, x;
|
17732
17732
|
return createVNode("div", {
|
17733
17733
|
class: "form"
|
17734
17734
|
}, [createVNode(Form, {
|
@@ -17745,7 +17745,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17745
17745
|
}, {
|
17746
17746
|
default: () => [createVNode(Textarea, {
|
17747
17747
|
value: l.value.var_text,
|
17748
|
-
"onUpdate:value": (
|
17748
|
+
"onUpdate:value": (N) => l.value.var_text = N,
|
17749
17749
|
disabled: !a.getSelectedVarCatalog
|
17750
17750
|
}, null), createVNode("button", {
|
17751
17751
|
hidden: !0
|
@@ -17763,14 +17763,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17763
17763
|
disabled: y.value,
|
17764
17764
|
onClick: T,
|
17765
17765
|
type: "primary"
|
17766
|
-
}, _isSlot$1(
|
17767
|
-
default: () => [
|
17766
|
+
}, _isSlot$1(x = t.t("common.save")) ? x : {
|
17767
|
+
default: () => [x]
|
17768
17768
|
})])]);
|
17769
17769
|
}
|
17770
17770
|
function K(P) {
|
17771
|
-
var
|
17772
|
-
let
|
17773
|
-
return P.id || (
|
17771
|
+
var N;
|
17772
|
+
let x = "";
|
17773
|
+
return P.id || (x += " ant-table-row-create"), P.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) && (x += " ant-table-row-selected "), x;
|
17774
17774
|
}
|
17775
17775
|
return () => createVNode("div", {
|
17776
17776
|
class: "kg-var-config-modal--var--var-variable-catalog"
|
@@ -19833,16 +19833,16 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19833
19833
|
const { varNam: D, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === D);
|
19834
19834
|
if (!P)
|
19835
19835
|
return;
|
19836
|
-
let
|
19836
|
+
let x = !1;
|
19837
19837
|
if (Object.entries(K).forEach(([O, R]) => {
|
19838
|
-
O in P && P[O] !== R && (P[O] = R,
|
19839
|
-
}), !
|
19838
|
+
O in P && P[O] !== R && (P[O] = R, x = !0);
|
19839
|
+
}), !x)
|
19840
19840
|
return;
|
19841
|
-
const
|
19842
|
-
|
19841
|
+
const N = [...a.value.varButtons];
|
19842
|
+
N.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(N);
|
19843
19843
|
}
|
19844
19844
|
function _(I) {
|
19845
|
-
const { varNam: D } = I, K = a.value.varButtons.find((
|
19845
|
+
const { varNam: D } = I, K = a.value.varButtons.find((x) => x.var_nam === D);
|
19846
19846
|
if (!K)
|
19847
19847
|
return;
|
19848
19848
|
const P = [...a.value.varButtons];
|
@@ -19872,7 +19872,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19872
19872
|
const { varNam: D, varText: K } = I;
|
19873
19873
|
if (!D)
|
19874
19874
|
return;
|
19875
|
-
const P = a.value.varVariableCatalogs.find((
|
19875
|
+
const P = a.value.varVariableCatalogs.find((x) => x.var_nam === D);
|
19876
19876
|
!P || (P.var_text = K || D);
|
19877
19877
|
}
|
19878
19878
|
function T(I) {
|
@@ -19914,7 +19914,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19914
19914
|
}
|
19915
19915
|
function w(I) {
|
19916
19916
|
var D, K, P;
|
19917
|
-
return I && (P = (K = (D = a.value.varVariableCatalogs) == null ? void 0 : D.find((
|
19917
|
+
return I && (P = (K = (D = a.value.varVariableCatalogs) == null ? void 0 : D.find((x) => x.var_nam === I)) == null ? void 0 : K.var_text) != null ? P : "";
|
19918
19918
|
}
|
19919
19919
|
function M() {
|
19920
19920
|
const I = uniq(
|