@kengic/vue 0.19.2-beta.3 → 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
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,17 +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
|
-
});
|
10310
|
+
}), ke = cloneDeep(N.value);
|
10311
10311
|
o.store.setDatas({
|
10312
10312
|
frmId: s.formID,
|
10313
|
-
datas: Ee.value
|
10314
|
-
|
10315
|
-
|
10316
|
-
d.value = {}, x({
|
10313
|
+
datas: Ee.value,
|
10314
|
+
isPreserveSelectedRows: !0
|
10315
|
+
}), O.total = Ae.value, d.value = {}, U({
|
10317
10316
|
isContinueWhenKgDisabled: !0
|
10318
10317
|
}), c.value = [], await nextTick(), B.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, ke.map((Se) => {
|
10319
|
-
var
|
10320
|
-
return (
|
10318
|
+
var H;
|
10319
|
+
return (H = Ee.value) == null ? void 0 : H.find((W) => W[o.id.value] === Se);
|
10321
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]]);
|
10322
10321
|
const Me = await o.store.emit(s.formID, "afterSearch", {
|
10323
10322
|
params: be,
|
@@ -10332,40 +10331,40 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10332
10331
|
}
|
10333
10332
|
}
|
10334
10333
|
}
|
10335
|
-
function
|
10334
|
+
function $(B) {
|
10336
10335
|
o.store.setSelectedRows(s.formID, B.map((G) => {
|
10337
|
-
var
|
10338
|
-
return (
|
10336
|
+
var Q;
|
10337
|
+
return (Q = y.value) == null ? void 0 : Q.find((Y) => Y[o.id.value] === G);
|
10339
10338
|
}).filter((G) => !!G));
|
10340
10339
|
}
|
10341
|
-
function
|
10342
|
-
var G,
|
10340
|
+
function q(B) {
|
10341
|
+
var G, Q;
|
10343
10342
|
switch (o.isMultiSelect.value) {
|
10344
10343
|
case !0:
|
10345
10344
|
{
|
10346
10345
|
const Y = B[o.id.value];
|
10347
|
-
|
10346
|
+
N.value.includes(Y) ? N.value = without$1(N.value, Y) : N.value = [...(G = N.value) != null ? G : [], Y];
|
10348
10347
|
}
|
10349
10348
|
break;
|
10350
10349
|
case !1:
|
10351
10350
|
{
|
10352
10351
|
const Y = B[o.id.value];
|
10353
|
-
(
|
10352
|
+
(Q = N.value) != null && Q.includes(Y) ? N.value = [] : N.value = [Y];
|
10354
10353
|
}
|
10355
10354
|
break;
|
10356
10355
|
}
|
10357
|
-
o.store.setSelectedRows(s.formID,
|
10356
|
+
o.store.setSelectedRows(s.formID, N.value.map((Y) => {
|
10358
10357
|
var Z;
|
10359
|
-
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);
|
10360
10359
|
}).filter((Y) => !!Y));
|
10361
10360
|
}
|
10362
|
-
function
|
10361
|
+
function z(B, G) {
|
10363
10362
|
G.width = B, s.store.setVarGridDetailWidth(s.formID, G.dataIndex, B);
|
10364
10363
|
}
|
10365
|
-
async function J(B, G,
|
10364
|
+
async function J(B, G, Q, Y) {
|
10366
10365
|
switch (Y.action) {
|
10367
10366
|
case "sort": {
|
10368
|
-
b.value =
|
10367
|
+
b.value = Q, b.value.order || (b.value.field = void 0), await nextTick(), L({
|
10369
10368
|
isSearchFirstPage: !0
|
10370
10369
|
});
|
10371
10370
|
break;
|
@@ -10376,20 +10375,20 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10376
10375
|
}
|
10377
10376
|
function re(B, G) {
|
10378
10377
|
var Y;
|
10379
|
-
const
|
10378
|
+
const Q = G[o.id.value];
|
10380
10379
|
switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
|
10381
10380
|
case 0:
|
10382
|
-
B ? c.value = uniq([...c.value,
|
10381
|
+
B ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
|
10383
10382
|
break;
|
10384
10383
|
default:
|
10385
|
-
B ? c.value = [
|
10384
|
+
B ? c.value = [Q] : c.value = [];
|
10386
10385
|
break;
|
10387
10386
|
}
|
10388
10387
|
}
|
10389
|
-
function
|
10390
|
-
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();
|
10391
10390
|
}
|
10392
|
-
function
|
10391
|
+
function oe(B) {
|
10393
10392
|
const {
|
10394
10393
|
column: G
|
10395
10394
|
} = B;
|
@@ -10398,7 +10397,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10398
10397
|
kgDisabled: A.value
|
10399
10398
|
}, null);
|
10400
10399
|
}
|
10401
|
-
function
|
10400
|
+
function ue() {
|
10402
10401
|
var B;
|
10403
10402
|
return (B = r == null ? void 0 : r.KgTable) != null && B["summary.bodyCell"] ? createVNode(TableSummary, {
|
10404
10403
|
fixed: "bottom"
|
@@ -10408,18 +10407,18 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10408
10407
|
index: 0
|
10409
10408
|
}, null), D.value && createVNode(TableSummary.Cell, {
|
10410
10409
|
index: I.value ? 1 : 0
|
10411
|
-
}, null), u.value.map((G,
|
10412
|
-
const Y = String(G.dataIndex), Z = Y ? s.store.getVarGridDetail(s.formID, Y) : null,
|
10413
|
-
let
|
10414
|
-
return I.value && D.value ?
|
10415
|
-
index:
|
10416
|
-
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
|
10417
10416
|
}, {
|
10418
10417
|
default: () => {
|
10419
|
-
var
|
10420
|
-
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, {
|
10421
10420
|
column: G,
|
10422
|
-
index:
|
10421
|
+
index: ce,
|
10423
10422
|
varGridDetail: Z
|
10424
10423
|
})];
|
10425
10424
|
}
|
@@ -10428,11 +10427,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10428
10427
|
})]
|
10429
10428
|
}) : null;
|
10430
10429
|
}
|
10431
|
-
function
|
10430
|
+
function ae() {
|
10432
10431
|
return !o.isAutoRequest.value && !o.store.getIsRequested(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10433
10432
|
}
|
10434
10433
|
return () => {
|
10435
|
-
var B, G,
|
10434
|
+
var B, G, Q;
|
10436
10435
|
return createVNode("div", {
|
10437
10436
|
class: P.value,
|
10438
10437
|
"kg-frm_id": s.formID,
|
@@ -10455,29 +10454,29 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10455
10454
|
expandedRowKeys: c.value,
|
10456
10455
|
rowSelection: K.value,
|
10457
10456
|
customRow: (Y) => ({
|
10458
|
-
onClick: (Z) =>
|
10457
|
+
onClick: (Z) => U({
|
10459
10458
|
event: Z,
|
10460
10459
|
row: Y
|
10461
10460
|
})
|
10462
10461
|
}),
|
10463
|
-
onResizeColumn:
|
10462
|
+
onResizeColumn: z,
|
10464
10463
|
onChange: J,
|
10465
10464
|
onExpand: re
|
10466
10465
|
}, {
|
10467
|
-
headerCell:
|
10466
|
+
headerCell: oe,
|
10468
10467
|
bodyCell: _,
|
10469
|
-
emptyText:
|
10470
|
-
expandedRowRender: (
|
10471
|
-
summary:
|
10468
|
+
emptyText: ae,
|
10469
|
+
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
10470
|
+
summary: ue
|
10472
10471
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
10473
|
-
class:
|
10472
|
+
class: x.value
|
10474
10473
|
}, [createVNode("div", {
|
10475
10474
|
class: "left"
|
10476
10475
|
}, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
10477
|
-
kgShowClearCheck:
|
10476
|
+
kgShowClearCheck: N.value.length > 0,
|
10478
10477
|
kgShowClearTable: O.total > 0,
|
10479
|
-
kgShowLocate:
|
10480
|
-
kgTotal:
|
10478
|
+
kgShowLocate: N.value.length === 1,
|
10479
|
+
kgTotal: N.value.length,
|
10481
10480
|
kgDisabled: w.value
|
10482
10481
|
}, null)]), createVNode("div", {
|
10483
10482
|
class: "right"
|
@@ -10499,7 +10498,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10499
10498
|
to: Z[1],
|
10500
10499
|
total: Y
|
10501
10500
|
}),
|
10502
|
-
onChange: (Y, Z) =>
|
10501
|
+
onChange: (Y, Z) => ee(Y, Z)
|
10503
10502
|
}, null)])])]);
|
10504
10503
|
};
|
10505
10504
|
}
|
@@ -10837,12 +10836,12 @@ function useKgFormItemSelect() {
|
|
10837
10836
|
let k = null;
|
10838
10837
|
try {
|
10839
10838
|
l.value = !0;
|
10840
|
-
const
|
10839
|
+
const x = KgUtil.parseParams(b.value, null, e);
|
10841
10840
|
k = await ((P = httpClient()) == null ? void 0 : P.request({
|
10842
10841
|
url: _,
|
10843
10842
|
method: y,
|
10844
|
-
params:
|
10845
|
-
data:
|
10843
|
+
params: x,
|
10844
|
+
data: x
|
10846
10845
|
}, {
|
10847
10846
|
dynamicQueryOperators: {},
|
10848
10847
|
dayjs: e
|
@@ -10863,14 +10862,14 @@ function useKgFormItemSelect() {
|
|
10863
10862
|
break;
|
10864
10863
|
}
|
10865
10864
|
if (m.value.length > 0) {
|
10866
|
-
const
|
10867
|
-
(!(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.", {
|
10868
10867
|
frm_id: a.formID,
|
10869
10868
|
var_nam: t,
|
10870
10869
|
cmd: _,
|
10871
10870
|
val_clm: v,
|
10872
10871
|
lbl_clm: T,
|
10873
|
-
\u6240\u6709\u5217: Object.keys(
|
10872
|
+
\u6240\u6709\u5217: Object.keys(x)
|
10874
10873
|
});
|
10875
10874
|
}
|
10876
10875
|
await n.store.emit(a.formID, "selectBeforeSetDatas", {
|
@@ -11404,13 +11403,13 @@ const KgFormItem = defineComponent({
|
|
11404
11403
|
var_nam: O,
|
11405
11404
|
model: R,
|
11406
11405
|
isMultiple: V,
|
11407
|
-
value:
|
11408
|
-
values:
|
11406
|
+
value: F,
|
11407
|
+
values: U
|
11409
11408
|
}) => {
|
11410
|
-
var
|
11409
|
+
var L;
|
11411
11410
|
switch (O) {
|
11412
11411
|
case e.kgVarName:
|
11413
|
-
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]);
|
11414
11413
|
break;
|
11415
11414
|
}
|
11416
11415
|
return !1;
|
@@ -11421,7 +11420,7 @@ const KgFormItem = defineComponent({
|
|
11421
11420
|
} = _useRules(e), {
|
11422
11421
|
controlType: m
|
11423
11422
|
} = useKgFormItem(e), _ = computed(() => {
|
11424
|
-
var R, V,
|
11423
|
+
var R, V, F, U, L;
|
11425
11424
|
if (i.isRetrieving.value)
|
11426
11425
|
return !0;
|
11427
11426
|
let O = !1;
|
@@ -11438,20 +11437,20 @@ const KgFormItem = defineComponent({
|
|
11438
11437
|
O = ((V = b.value) == null ? void 0 : V.crt_ena_flg) === 0;
|
11439
11438
|
break;
|
11440
11439
|
case i.isUpdating.value:
|
11441
|
-
O = ((
|
11440
|
+
O = ((F = b.value) == null ? void 0 : F.upt_ena_flg) === 0;
|
11442
11441
|
break;
|
11443
11442
|
case i.isCopying.value:
|
11444
|
-
O = ((
|
11443
|
+
O = ((U = b.value) == null ? void 0 : U.cpy_ena_flg) === 0;
|
11445
11444
|
break;
|
11446
11445
|
case i.isDeleting.value:
|
11447
|
-
O = ((
|
11446
|
+
O = ((L = b.value) == null ? void 0 : L.del_ena_flg) === 0;
|
11448
11447
|
break;
|
11449
11448
|
}
|
11450
11449
|
break;
|
11451
11450
|
}
|
11452
11451
|
return O;
|
11453
11452
|
}), y = computed(() => {
|
11454
|
-
var R, V,
|
11453
|
+
var R, V, F, U;
|
11455
11454
|
let O = " ";
|
11456
11455
|
if (e.kgPlaceholder)
|
11457
11456
|
O = e.kgPlaceholder;
|
@@ -11461,12 +11460,12 @@ const KgFormItem = defineComponent({
|
|
11461
11460
|
O = i.t((V = (R = d.value) == null ? void 0 : R.placeholder) != null ? V : " ").value;
|
11462
11461
|
break;
|
11463
11462
|
case KG_FORM_CONTEXT.SUBMIT:
|
11464
|
-
O = i.t((
|
11463
|
+
O = i.t((U = (F = b.value) == null ? void 0 : F.placeholder) != null ? U : " ").value;
|
11465
11464
|
break;
|
11466
11465
|
}
|
11467
11466
|
return O;
|
11468
11467
|
}), v = computed(() => {
|
11469
|
-
var R, V,
|
11468
|
+
var R, V, F, U, L, $, q, z, J, re;
|
11470
11469
|
let O = 6;
|
11471
11470
|
if (e.kgSpan !== void 0)
|
11472
11471
|
O = e.kgSpan;
|
@@ -11478,25 +11477,25 @@ const KgFormItem = defineComponent({
|
|
11478
11477
|
case KG_FORM_CONTEXT.SUBMIT:
|
11479
11478
|
switch (!0) {
|
11480
11479
|
case i.isCreating.value:
|
11481
|
-
O = (
|
11480
|
+
O = (U = (F = b.value) == null ? void 0 : F.crt_width) != null ? U : 6;
|
11482
11481
|
break;
|
11483
11482
|
case i.isUpdating.value:
|
11484
|
-
O = (
|
11483
|
+
O = ($ = (L = b.value) == null ? void 0 : L.upt_width) != null ? $ : 6;
|
11485
11484
|
break;
|
11486
11485
|
case i.isCopying.value:
|
11487
|
-
O = (
|
11486
|
+
O = (z = (q = b.value) == null ? void 0 : q.cpy_width) != null ? z : 6;
|
11488
11487
|
break;
|
11489
11488
|
case i.isDeleting.value:
|
11490
11489
|
O = (re = (J = b.value) == null ? void 0 : J.del_width) != null ? re : 6;
|
11491
11490
|
break;
|
11492
11491
|
}
|
11493
11492
|
}
|
11494
|
-
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.", {
|
11495
11494
|
VarProfileDetail: d.value,
|
11496
11495
|
VarSubmitField: b.value
|
11497
11496
|
}), 6);
|
11498
11497
|
}), T = computed(() => {
|
11499
|
-
var R, V,
|
11498
|
+
var R, V, F, U, L;
|
11500
11499
|
let O = null;
|
11501
11500
|
if (e.kgSpan !== void 0)
|
11502
11501
|
O = e.kgSpan;
|
@@ -11511,30 +11510,30 @@ const KgFormItem = defineComponent({
|
|
11511
11510
|
O = (V = b.value) == null ? void 0 : V.crt_width;
|
11512
11511
|
break;
|
11513
11512
|
case i.isUpdating.value:
|
11514
|
-
O = (
|
11513
|
+
O = (F = b.value) == null ? void 0 : F.upt_width;
|
11515
11514
|
break;
|
11516
11515
|
case i.isCopying.value:
|
11517
|
-
O = (
|
11516
|
+
O = (U = b.value) == null ? void 0 : U.cpy_width;
|
11518
11517
|
break;
|
11519
11518
|
case i.isDeleting.value:
|
11520
|
-
O = (
|
11519
|
+
O = (L = b.value) == null ? void 0 : L.del_width;
|
11521
11520
|
break;
|
11522
11521
|
}
|
11523
11522
|
}
|
11524
|
-
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;
|
11525
11524
|
}), k = computed(() => {
|
11526
|
-
var
|
11525
|
+
var F, U;
|
11527
11526
|
const O = get(M.value, "$el.parentElement");
|
11528
|
-
if (O && !((
|
11527
|
+
if (O && !((F = O.classList) != null && F.contains("ant-row")))
|
11529
11528
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
11530
11529
|
let R = {};
|
11531
|
-
const V = Math.abs(Number.parseInt((
|
11530
|
+
const V = Math.abs(Number.parseInt((U = get(M.value, "$el.parentElement.style.marginLeft")) != null ? U : "0px"));
|
11532
11531
|
return Number.isNaN(V) || (R = {
|
11533
11532
|
paddingLeft: `${V}px !important`,
|
11534
11533
|
paddingRight: `${V}px !important`
|
11535
11534
|
}), R;
|
11536
11535
|
}), A = computed(() => {
|
11537
|
-
var R, V,
|
11536
|
+
var R, V, F, U;
|
11538
11537
|
let O = "kg-form-item";
|
11539
11538
|
switch (c.value && (O += " kg-form-item-lookup"), T.value !== null && (O += " kg-form-item--col-fixed"), e.kgContext) {
|
11540
11539
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -11547,8 +11546,8 @@ const KgFormItem = defineComponent({
|
|
11547
11546
|
case KG_FORM_CONTEXT.SUBMIT:
|
11548
11547
|
switch (!0) {
|
11549
11548
|
case (i.isCreating.value && ((V = b.value) == null ? void 0 : V.crt_vis_flg) === 0):
|
11550
|
-
case (i.isUpdating.value && ((
|
11551
|
-
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):
|
11552
11551
|
O += " kg-form-item--invisible";
|
11553
11552
|
break;
|
11554
11553
|
}
|
@@ -11605,7 +11604,7 @@ const KgFormItem = defineComponent({
|
|
11605
11604
|
validateFirst: !0,
|
11606
11605
|
htmlFor: w.value
|
11607
11606
|
}, {
|
11608
|
-
default: () => createVNode(Fragment, null, [K(), D(),
|
11607
|
+
default: () => createVNode(Fragment, null, [K(), D(), x(), N()]),
|
11609
11608
|
label: () => P()
|
11610
11609
|
});
|
11611
11610
|
}
|
@@ -11657,12 +11656,12 @@ const KgFormItem = defineComponent({
|
|
11657
11656
|
var O, R, V;
|
11658
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, {
|
11659
11658
|
default: () => {
|
11660
|
-
var
|
11659
|
+
var F;
|
11661
11660
|
return [createVNode(Select, {
|
11662
|
-
value: (
|
11663
|
-
"onUpdate:value": (
|
11661
|
+
value: (F = l.operatorModel.value) == null ? void 0 : F[e.kgVarName],
|
11662
|
+
"onUpdate:value": (U) => {
|
11664
11663
|
l.store.patchOperatorModel(i.formID, {
|
11665
|
-
[e.kgVarName]:
|
11664
|
+
[e.kgVarName]: U
|
11666
11665
|
});
|
11667
11666
|
},
|
11668
11667
|
disabled: _.value,
|
@@ -11670,8 +11669,8 @@ const KgFormItem = defineComponent({
|
|
11670
11669
|
dropdownClassName: "kg-form-item-operator-select-dropdown"
|
11671
11670
|
}, {
|
11672
11671
|
default: () => {
|
11673
|
-
var
|
11674
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((
|
11672
|
+
var U;
|
11673
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((U = m.value) != null ? U : "");
|
11675
11674
|
},
|
11676
11675
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
11677
11676
|
class: "ant-select-suffix"
|
@@ -11685,7 +11684,7 @@ const KgFormItem = defineComponent({
|
|
11685
11684
|
title: i.t(e.kgVarName).value
|
11686
11685
|
}, [i.t(e.kgVarName).value]) : null;
|
11687
11686
|
}
|
11688
|
-
function
|
11687
|
+
function x() {
|
11689
11688
|
var O;
|
11690
11689
|
return !c.value || !((O = c.value) != null && O.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
11691
11690
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -11694,7 +11693,7 @@ const KgFormItem = defineComponent({
|
|
11694
11693
|
}, null)]
|
11695
11694
|
});
|
11696
11695
|
}
|
11697
|
-
function
|
11696
|
+
function N() {
|
11698
11697
|
return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
|
11699
11698
|
frm_id: i.formID,
|
11700
11699
|
varName: e.kgVarName,
|
@@ -12854,12 +12853,12 @@ const getProps$r = () => ({
|
|
12854
12853
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
12855
12854
|
inject(DI_KG_VAR__KG_PROPS, null);
|
12856
12855
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
12857
|
-
i.onSubmitSave(async () => (await
|
12856
|
+
i.onSubmitSave(async () => (await ce(), !1)), i.onSubmitCancel(async () => (await ge(), !1)), _useFormModel$1();
|
12858
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(() => {
|
12859
|
-
var
|
12858
|
+
var H, W, X;
|
12860
12859
|
switch (!0) {
|
12861
12860
|
case s.isCreating.value:
|
12862
|
-
return (
|
12861
|
+
return (H = E.value) != null ? H : [];
|
12863
12862
|
case s.isUpdating.value:
|
12864
12863
|
return (W = m.value) != null ? W : [];
|
12865
12864
|
case s.isCopying.value:
|
@@ -12869,10 +12868,10 @@ const getProps$r = () => ({
|
|
12869
12868
|
}
|
12870
12869
|
return [];
|
12871
12870
|
}), K = computed(() => {
|
12872
|
-
var
|
12871
|
+
var H, W, X;
|
12873
12872
|
switch (!0) {
|
12874
12873
|
case s.isCreating.value:
|
12875
|
-
return (
|
12874
|
+
return (H = T.value) != null ? H : [];
|
12876
12875
|
case s.isUpdating.value:
|
12877
12876
|
return (W = A.value) != null ? W : [];
|
12878
12877
|
case s.isCopying.value:
|
@@ -12882,57 +12881,57 @@ const getProps$r = () => ({
|
|
12882
12881
|
}
|
12883
12882
|
return [];
|
12884
12883
|
}), P = computed(() => {
|
12885
|
-
var
|
12884
|
+
var H, W, X, te;
|
12886
12885
|
switch (!0) {
|
12887
12886
|
case s.isCreating.value:
|
12888
|
-
return (
|
12887
|
+
return (H = g.value) != null ? H : [];
|
12889
12888
|
case s.isUpdating.value:
|
12890
12889
|
return (W = _.value) != null ? W : [];
|
12891
12890
|
case s.isCopying.value:
|
12892
12891
|
return (X = v.value) != null ? X : [];
|
12893
12892
|
case s.isDeleting.value:
|
12894
|
-
return (
|
12893
|
+
return (te = I.value) != null ? te : [];
|
12895
12894
|
}
|
12896
12895
|
return [];
|
12897
|
-
}),
|
12898
|
-
var
|
12896
|
+
}), x = computed(() => {
|
12897
|
+
var H, W, X, te;
|
12899
12898
|
switch (!0) {
|
12900
12899
|
case s.isCreating.value:
|
12901
|
-
return (
|
12900
|
+
return (H = k.value) != null ? H : [];
|
12902
12901
|
case s.isUpdating.value:
|
12903
12902
|
return (W = C.value) != null ? W : [];
|
12904
12903
|
case s.isCopying.value:
|
12905
12904
|
return (X = M.value) != null ? X : [];
|
12906
12905
|
case s.isDeleting.value:
|
12907
|
-
return (
|
12906
|
+
return (te = I.value) != null ? te : [];
|
12908
12907
|
}
|
12909
12908
|
return [];
|
12910
|
-
}),
|
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({
|
12911
12910
|
kgWidth: 0
|
12912
|
-
}),
|
12913
|
-
var
|
12914
|
-
return !!(u.value ||
|
12915
|
-
}),
|
12916
|
-
var
|
12917
|
-
return u.value ? 398 : (W = (
|
12918
|
-
}),
|
12919
|
-
var
|
12920
|
-
return u.value ? 398 : (W = (
|
12921
|
-
}),
|
12922
|
-
_useResizeObserver(
|
12923
|
-
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({
|
12924
12923
|
isFullscreen: !1
|
12925
12924
|
}), {
|
12926
|
-
getClass:
|
12927
|
-
} = _useClass(e,
|
12928
|
-
getLayout:
|
12925
|
+
getClass: oe
|
12926
|
+
} = _useClass(e, ee), {
|
12927
|
+
getLayout: ue
|
12929
12928
|
} = _useLayout(), {
|
12930
|
-
getDefaultWidth:
|
12929
|
+
getDefaultWidth: ae
|
12931
12930
|
} = _useDefaultWidth(), ne = computed(() => {
|
12932
|
-
var
|
12933
|
-
switch (
|
12931
|
+
var H, W, X;
|
12932
|
+
switch (ue.value) {
|
12934
12933
|
case "horizontal":
|
12935
|
-
switch ((
|
12934
|
+
switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
|
12936
12935
|
case KG_WIDTH_UNIT.SPAN:
|
12937
12936
|
return {
|
12938
12937
|
span: (W = b.value) == null ? void 0 : W.label_col
|
@@ -12949,10 +12948,10 @@ const getProps$r = () => ({
|
|
12949
12948
|
return;
|
12950
12949
|
}
|
12951
12950
|
}), B = computed(() => {
|
12952
|
-
var
|
12953
|
-
switch (
|
12951
|
+
var H, W;
|
12952
|
+
switch (ue.value) {
|
12954
12953
|
case "horizontal":
|
12955
|
-
switch ((
|
12954
|
+
switch ((H = b.value) == null ? void 0 : H.label_col_unit) {
|
12956
12955
|
case KG_WIDTH_UNIT.SPAN:
|
12957
12956
|
return {
|
12958
12957
|
span: 24 - ((W = b.value) == null ? void 0 : W.label_col)
|
@@ -12975,20 +12974,20 @@ const getProps$r = () => ({
|
|
12975
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");
|
12976
12975
|
}
|
12977
12976
|
return n.t("kg.save");
|
12978
|
-
}),
|
12977
|
+
}), Q = computed(() => l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL && !ee.isFullscreen);
|
12979
12978
|
((Se = (Me = (ke = n.option.value) == null ? void 0 : ke.KgModal) == null ? void 0 : Me.drag) == null ? void 0 : Se.on) === !0 && useKgDragModal({
|
12980
12979
|
visible: re,
|
12981
|
-
draggable:
|
12980
|
+
draggable: Q,
|
12982
12981
|
destroyOnClose: ref(!0),
|
12983
12982
|
containerElementSelector: ".ant-drawer-content-wrapper",
|
12984
12983
|
handleElementSelector: ".ant-drawer-header",
|
12985
12984
|
contentElementSelector: ".ant-drawer-content-wrapper"
|
12986
|
-
}), watch(re, (
|
12987
|
-
|
12985
|
+
}), watch(re, (H, W) => {
|
12986
|
+
H === !0 && Y(), W === !0 && H === !1 && Z();
|
12988
12987
|
}, {
|
12989
12988
|
immediate: !0
|
12990
|
-
}), watch(
|
12991
|
-
|
12989
|
+
}), watch(ae, (H) => {
|
12990
|
+
H && (V.value.kgWidth = H);
|
12992
12991
|
}, {
|
12993
12992
|
immediate: !0
|
12994
12993
|
});
|
@@ -13001,9 +13000,9 @@ const getProps$r = () => ({
|
|
13001
13000
|
row: o.selectedRow.value
|
13002
13001
|
}))
|
13003
13002
|
return new Promise((W, X) => {
|
13004
|
-
var
|
13005
|
-
const
|
13006
|
-
|
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", {
|
13007
13006
|
isCreating: s.isCreating.value,
|
13008
13007
|
isUpdating: s.isUpdating.value,
|
13009
13008
|
isCopying: s.isCopying.value,
|
@@ -13014,13 +13013,13 @@ const getProps$r = () => ({
|
|
13014
13013
|
}, {
|
13015
13014
|
immediate: !0
|
13016
13015
|
});
|
13017
|
-
((
|
13016
|
+
((ie = b.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (ee.isFullscreen = !0);
|
13018
13017
|
});
|
13019
13018
|
}
|
13020
13019
|
async function Z() {
|
13021
|
-
V.value.kgWidth =
|
13020
|
+
V.value.kgWidth = ae.value, ee.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
13022
13021
|
}
|
13023
|
-
async function
|
13022
|
+
async function ge() {
|
13024
13023
|
switch (!0) {
|
13025
13024
|
case s.isCreating.value:
|
13026
13025
|
s.store.setIsCreating(s.formID, !1);
|
@@ -13036,8 +13035,8 @@ const getProps$r = () => ({
|
|
13036
13035
|
break;
|
13037
13036
|
}
|
13038
13037
|
}
|
13039
|
-
async function
|
13040
|
-
var
|
13038
|
+
async function ce() {
|
13039
|
+
var H, W;
|
13041
13040
|
try {
|
13042
13041
|
if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
|
13043
13042
|
isCreating: s.isCreating.value,
|
@@ -13050,9 +13049,9 @@ const getProps$r = () => ({
|
|
13050
13049
|
}))
|
13051
13050
|
return;
|
13052
13051
|
try {
|
13053
|
-
await ((
|
13054
|
-
} catch (
|
13055
|
-
KgUtil.throwIfNotFormError(
|
13052
|
+
await ((H = l.formRef.value) == null ? void 0 : H.validate());
|
13053
|
+
} catch (ie) {
|
13054
|
+
KgUtil.throwIfNotFormError(ie);
|
13056
13055
|
}
|
13057
13056
|
if (await ((W = l.formRef.value) == null ? void 0 : W.validate()), await l.store.emit(s.formID, "afterValidate", {
|
13058
13057
|
isCreating: s.isCreating.value,
|
@@ -13066,7 +13065,7 @@ const getProps$r = () => ({
|
|
13066
13065
|
return;
|
13067
13066
|
switch (!0) {
|
13068
13067
|
case s.isCreating.value:
|
13069
|
-
await
|
13068
|
+
await fe();
|
13070
13069
|
break;
|
13071
13070
|
case s.isUpdating.value:
|
13072
13071
|
await he();
|
@@ -13082,11 +13081,11 @@ const getProps$r = () => ({
|
|
13082
13081
|
KgUtil.throwIfNotFormError(X);
|
13083
13082
|
}
|
13084
13083
|
}
|
13085
|
-
async function
|
13086
|
-
var
|
13084
|
+
async function fe() {
|
13085
|
+
var H, W, X, te, ie, le, de;
|
13087
13086
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
13088
13087
|
try {
|
13089
|
-
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));
|
13090
13089
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
13091
13090
|
isCreating: s.isCreating.value,
|
13092
13091
|
isUpdating: s.isUpdating.value,
|
@@ -13095,20 +13094,20 @@ const getProps$r = () => ({
|
|
13095
13094
|
row: o.selectedFirstRow.value,
|
13096
13095
|
rows: o.selectedRows.value,
|
13097
13096
|
model: l.model,
|
13098
|
-
params:
|
13097
|
+
params: se,
|
13099
13098
|
data: pe
|
13100
13099
|
}))
|
13101
13100
|
return;
|
13102
|
-
const
|
13103
|
-
if (!
|
13101
|
+
const _e = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd;
|
13102
|
+
if (!_e)
|
13104
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");
|
13105
13104
|
const me = await httpClient().request({
|
13106
|
-
url:
|
13107
|
-
method: (
|
13108
|
-
params:
|
13105
|
+
url: _e,
|
13106
|
+
method: (ie = (te = s.varButtonCreate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
|
13107
|
+
params: se.value,
|
13109
13108
|
data: pe.value
|
13110
13109
|
});
|
13111
|
-
((
|
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({
|
13112
13111
|
isSearchFirstPage: !0
|
13113
13112
|
}), await l.store.emit(s.formID, "ok", {
|
13114
13113
|
isCreating: !0,
|
@@ -13119,17 +13118,17 @@ const getProps$r = () => ({
|
|
13119
13118
|
model: l.model,
|
13120
13119
|
result: me
|
13121
13120
|
});
|
13122
|
-
} catch (
|
13123
|
-
console.error(
|
13121
|
+
} catch (se) {
|
13122
|
+
console.error(se), l.store.emit(s.formID, "error", se);
|
13124
13123
|
} finally {
|
13125
13124
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
13126
13125
|
}
|
13127
13126
|
}
|
13128
13127
|
async function he() {
|
13129
|
-
var
|
13128
|
+
var H, W, X, te, ie, le, de;
|
13130
13129
|
try {
|
13131
13130
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
13132
|
-
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));
|
13133
13132
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
13134
13133
|
isCreating: s.isCreating.value,
|
13135
13134
|
isUpdating: s.isUpdating.value,
|
@@ -13138,20 +13137,20 @@ const getProps$r = () => ({
|
|
13138
13137
|
row: o.selectedRow.value,
|
13139
13138
|
rows: o.selectedRows.value,
|
13140
13139
|
model: l.model,
|
13141
|
-
params:
|
13140
|
+
params: se,
|
13142
13141
|
data: pe
|
13143
13142
|
}))
|
13144
13143
|
return;
|
13145
|
-
const
|
13146
|
-
if (!
|
13144
|
+
const _e = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd;
|
13145
|
+
if (!_e)
|
13147
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");
|
13148
13147
|
const me = await httpClient().request({
|
13149
|
-
url:
|
13150
|
-
method: (
|
13151
|
-
params:
|
13148
|
+
url: _e,
|
13149
|
+
method: (ie = (te = s.varButtonUpdate.value) == null ? void 0 : te.cmd_method) != null ? ie : "POST",
|
13150
|
+
params: se.value,
|
13152
13151
|
data: pe.value
|
13153
13152
|
});
|
13154
|
-
((
|
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({
|
13155
13154
|
isPreserveSelectedRows: !0
|
13156
13155
|
}), await l.store.emit(s.formID, "ok", {
|
13157
13156
|
isCreating: !1,
|
@@ -13162,21 +13161,21 @@ const getProps$r = () => ({
|
|
13162
13161
|
model: l.model,
|
13163
13162
|
result: me
|
13164
13163
|
});
|
13165
|
-
} catch (
|
13166
|
-
console.error(
|
13164
|
+
} catch (se) {
|
13165
|
+
console.error(se), l.store.emit(s.formID, "error", se);
|
13167
13166
|
} finally {
|
13168
13167
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
13169
13168
|
}
|
13170
13169
|
}
|
13171
13170
|
async function Ce() {
|
13172
|
-
var
|
13171
|
+
var H, W, X, te, ie, le, de, se, pe;
|
13173
13172
|
try {
|
13174
13173
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
13175
|
-
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({
|
13176
13175
|
...(X = o.selectedFirstRow.value) != null ? X : {},
|
13177
13176
|
...toRaw(l.model.value)
|
13178
13177
|
}, s.formID, r));
|
13179
|
-
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", {
|
13180
13179
|
isCreating: s.isCreating.value,
|
13181
13180
|
isUpdating: s.isUpdating.value,
|
13182
13181
|
isCopying: s.isCopying.value,
|
@@ -13185,19 +13184,19 @@ const getProps$r = () => ({
|
|
13185
13184
|
rows: o.selectedRows.value,
|
13186
13185
|
model: l.model,
|
13187
13186
|
params: ve,
|
13188
|
-
data:
|
13187
|
+
data: _e
|
13189
13188
|
}))
|
13190
13189
|
return;
|
13191
|
-
const Te = (
|
13190
|
+
const Te = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd;
|
13192
13191
|
if (!Te)
|
13193
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");
|
13194
13193
|
const we = await httpClient().request({
|
13195
13194
|
url: Te,
|
13196
|
-
method: (
|
13195
|
+
method: (de = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? de : "POST",
|
13197
13196
|
params: ve.value,
|
13198
|
-
data:
|
13197
|
+
data: _e.value
|
13199
13198
|
});
|
13200
|
-
((
|
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({
|
13201
13200
|
isSearchFirstPage: !0
|
13202
13201
|
}), await l.store.emit(s.formID, "ok", {
|
13203
13202
|
isCreating: !1,
|
@@ -13215,15 +13214,15 @@ const getProps$r = () => ({
|
|
13215
13214
|
}
|
13216
13215
|
}
|
13217
13216
|
async function be() {
|
13218
|
-
var
|
13217
|
+
var H, W, X, te, ie, le, de, se, pe, ve, _e;
|
13219
13218
|
try {
|
13220
13219
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
13221
|
-
let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (
|
13222
|
-
if (((
|
13223
|
-
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) => {
|
13224
13223
|
var Re, Ke, Pe;
|
13225
13224
|
return (Pe = Le[(Ke = (Re = s.varButtonDelete.value) == null ? void 0 : Re.del_param_clm) != null ? Ke : "id"]) != null ? Pe : "";
|
13226
|
-
})) != null ?
|
13225
|
+
})) != null ? le : []
|
13227
13226
|
})), await l.store.emit(s.formID, "beforeRequest", {
|
13228
13227
|
isCreating: s.isCreating.value,
|
13229
13228
|
isUpdating: s.isUpdating.value,
|
@@ -13236,10 +13235,10 @@ const getProps$r = () => ({
|
|
13236
13235
|
data: Te
|
13237
13236
|
}))
|
13238
13237
|
return;
|
13239
|
-
const Oe = (
|
13238
|
+
const Oe = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd;
|
13240
13239
|
if (!Oe)
|
13241
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");
|
13242
|
-
const Ve = (pe = (
|
13241
|
+
const Ve = (pe = (se = s.varButtonDelete.value) == null ? void 0 : se.cmd_method) != null ? pe : "POST", Ne = await httpClient().request({
|
13243
13242
|
url: Oe,
|
13244
13243
|
method: Ve,
|
13245
13244
|
params: me.value,
|
@@ -13247,7 +13246,7 @@ const getProps$r = () => ({
|
|
13247
13246
|
}, {
|
13248
13247
|
joinParamsToUrl: !0
|
13249
13248
|
});
|
13250
|
-
((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({
|
13251
13250
|
isSearchFirstPage: !0
|
13252
13251
|
}), await l.store.emit(s.formID, "ok", {
|
13253
13252
|
isCreating: !1,
|
@@ -13267,27 +13266,27 @@ const getProps$r = () => ({
|
|
13267
13266
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
13268
13267
|
}
|
13269
13268
|
}
|
13270
|
-
function ye(
|
13271
|
-
var
|
13272
|
-
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];
|
13273
13272
|
return createVNode(KgForm.Item, {
|
13274
|
-
kgVarName:
|
13273
|
+
kgVarName: H.var_nam,
|
13275
13274
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
13276
|
-
kgRules: l.rules.value[
|
13277
|
-
onKgSubmit:
|
13275
|
+
kgRules: l.rules.value[H.var_nam],
|
13276
|
+
onKgSubmit: ce
|
13278
13277
|
}, {
|
13279
|
-
control: isFunction$2(W) ? (
|
13280
|
-
controlRight: isFunction$2(X) ? (
|
13278
|
+
control: isFunction$2(W) ? (se) => W(se) : void 0,
|
13279
|
+
controlRight: isFunction$2(X) ? (se) => X(se) : void 0
|
13281
13280
|
});
|
13282
13281
|
}
|
13283
13282
|
function De() {
|
13284
|
-
let
|
13283
|
+
let H, W;
|
13285
13284
|
return createVNode(KgResizable, {
|
13286
13285
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
13287
|
-
kgMinWidth:
|
13288
|
-
kgMaxWidth:
|
13289
|
-
kgWidth:
|
13290
|
-
kgDisabled:
|
13286
|
+
kgMinWidth: U.value,
|
13287
|
+
kgMaxWidth: L.value,
|
13288
|
+
kgWidth: $.value,
|
13289
|
+
kgDisabled: F.value,
|
13291
13290
|
"onUpdate:kgWidth": (X) => V.value.kgWidth = X
|
13292
13291
|
}, {
|
13293
13292
|
default: () => [createVNode(Spin, {
|
@@ -13298,17 +13297,17 @@ const getProps$r = () => ({
|
|
13298
13297
|
return [createVNode(KgForm, {
|
13299
13298
|
ref: l.formRef,
|
13300
13299
|
model: (X = l.model.value) != null ? X : void 0,
|
13301
|
-
layout:
|
13300
|
+
layout: ue.value,
|
13302
13301
|
labelCol: ne.value,
|
13303
13302
|
wrapperCol: B.value
|
13304
13303
|
}, {
|
13305
13304
|
default: () => [createVNode("div", {
|
13306
|
-
ref:
|
13305
|
+
ref: q
|
13307
13306
|
}, [D.value.length > 0 && createVNode(Row, {
|
13308
13307
|
gutter: 12
|
13309
|
-
}, _isSlot$6(
|
13310
|
-
default: () => [
|
13311
|
-
}), 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, {
|
13312
13311
|
gutter: 12
|
13313
13312
|
}, _isSlot$6(W = P.value.map(ye)) ? W : {
|
13314
13313
|
default: () => [W]
|
@@ -13321,36 +13320,36 @@ const getProps$r = () => ({
|
|
13321
13320
|
});
|
13322
13321
|
}
|
13323
13322
|
function Ee() {
|
13324
|
-
let
|
13323
|
+
let H;
|
13325
13324
|
return createVNode("div", null, [createVNode(Button, {
|
13326
13325
|
type: "primary",
|
13327
13326
|
ghost: !O.value,
|
13328
13327
|
disabled: O.value,
|
13329
|
-
onClick:
|
13330
|
-
}, _isSlot$6(
|
13331
|
-
default: () => [
|
13328
|
+
onClick: ge
|
13329
|
+
}, _isSlot$6(H = n.t("kg.cancel")) ? H : {
|
13330
|
+
default: () => [H]
|
13332
13331
|
}), createVNode(Button, {
|
13333
13332
|
type: "primary",
|
13334
13333
|
disabled: R.value,
|
13335
|
-
loading:
|
13334
|
+
loading: N.value,
|
13336
13335
|
danger: !!s.isDeleting.value,
|
13337
|
-
onClick:
|
13336
|
+
onClick: ce
|
13338
13337
|
}, {
|
13339
13338
|
default: () => [G.value]
|
13340
13339
|
})]);
|
13341
13340
|
}
|
13342
13341
|
function Ae() {
|
13343
13342
|
return createVNode("div", {
|
13344
|
-
title:
|
13345
|
-
}, [
|
13343
|
+
title: z.title.value
|
13344
|
+
}, [z.title.value]);
|
13346
13345
|
}
|
13347
13346
|
function Ie() {
|
13348
13347
|
return createVNode(KgSubmitHeader, {
|
13349
|
-
isFullscreen:
|
13350
|
-
"onUpdate:isFullscreen": (
|
13348
|
+
isFullscreen: ee.isFullscreen,
|
13349
|
+
"onUpdate:isFullscreen": (H) => ee.isFullscreen = H,
|
13351
13350
|
kgShowFullscreenButton: !u.value,
|
13352
13351
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
13353
|
-
onKgCancel:
|
13352
|
+
onKgCancel: ge
|
13354
13353
|
}, null);
|
13355
13354
|
}
|
13356
13355
|
return onUnmounted(async () => {
|
@@ -13363,7 +13362,7 @@ const getProps$r = () => ({
|
|
13363
13362
|
keyboard: !1,
|
13364
13363
|
destroyOnClose: !0,
|
13365
13364
|
width: J.value,
|
13366
|
-
class:
|
13365
|
+
class: oe.value,
|
13367
13366
|
"kg-frm_id": s.formID
|
13368
13367
|
}, {
|
13369
13368
|
title: Ae,
|
@@ -14932,10 +14931,10 @@ function useKgVar(e, t, r = 0) {
|
|
14932
14931
|
}), onUnmounted(() => {
|
14933
14932
|
i.dispose(s);
|
14934
14933
|
}));
|
14935
|
-
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)),
|
14936
|
-
var
|
14937
|
-
return (
|
14938
|
-
}),
|
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));
|
14939
14938
|
return {
|
14940
14939
|
formID: s,
|
14941
14940
|
store: i,
|
@@ -14961,31 +14960,31 @@ function useKgVar(e, t, r = 0) {
|
|
14961
14960
|
varProfileMasters: D,
|
14962
14961
|
currentVarProfileMasterID: K,
|
14963
14962
|
currentVarProfileMaster: P,
|
14964
|
-
currentVarProfileDetails:
|
14965
|
-
varGridConfig:
|
14963
|
+
currentVarProfileDetails: x,
|
14964
|
+
varGridConfig: N,
|
14966
14965
|
varGridMasters: O,
|
14967
14966
|
currentVarGridMasteID: R,
|
14968
14967
|
currentVarGridMaster: V,
|
14969
|
-
systemVarGridDetails:
|
14970
|
-
currentVarGridDetails:
|
14971
|
-
varSubmitConfigProps:
|
14972
|
-
setIsCreating(
|
14973
|
-
i.setIsCreating(s,
|
14968
|
+
systemVarGridDetails: F,
|
14969
|
+
currentVarGridDetails: U,
|
14970
|
+
varSubmitConfigProps: L,
|
14971
|
+
setIsCreating($) {
|
14972
|
+
i.setIsCreating(s, $);
|
14974
14973
|
},
|
14975
|
-
setIsUpdating(
|
14976
|
-
i.setIsUpdating(s,
|
14974
|
+
setIsUpdating($) {
|
14975
|
+
i.setIsUpdating(s, $);
|
14977
14976
|
},
|
14978
|
-
setIsCopying(
|
14979
|
-
i.setIsCopying(s,
|
14977
|
+
setIsCopying($) {
|
14978
|
+
i.setIsCopying(s, $);
|
14980
14979
|
},
|
14981
|
-
setIsDeleting(
|
14982
|
-
i.setIsDeleting(s,
|
14980
|
+
setIsDeleting($) {
|
14981
|
+
i.setIsDeleting(s, $);
|
14983
14982
|
},
|
14984
|
-
patchVarSubmitField(
|
14985
|
-
return i.patchVarSubmitField(s,
|
14983
|
+
patchVarSubmitField($, q, z) {
|
14984
|
+
return i.patchVarSubmitField(s, $, q, z);
|
14986
14985
|
},
|
14987
|
-
t(
|
14988
|
-
return computed(() => i.t(s,
|
14986
|
+
t($) {
|
14987
|
+
return computed(() => i.t(s, $));
|
14989
14988
|
},
|
14990
14989
|
onRetrieve: onEventFactory(s, i, "retrieve")
|
14991
14990
|
};
|
@@ -15715,7 +15714,7 @@ const getProps$p = () => ({
|
|
15715
15714
|
if (((w = e.kgButton) == null ? void 0 : w.re_select_after_reload_flg) !== 0 && s.onAfterSearch(async ({
|
15716
15715
|
datas: D
|
15717
15716
|
}) => {
|
15718
|
-
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]));
|
15719
15718
|
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
15720
15719
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15721
15720
|
button: e.kgButton,
|
@@ -16659,11 +16658,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16659
16658
|
}
|
16660
16659
|
});
|
16661
16660
|
l.value = l.value.map((P) => {
|
16662
|
-
var
|
16663
|
-
const
|
16664
|
-
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 ? {
|
16665
16664
|
...P,
|
16666
|
-
...
|
16665
|
+
...x,
|
16667
16666
|
id: P.id
|
16668
16667
|
} : P;
|
16669
16668
|
});
|
@@ -17004,23 +17003,23 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17004
17003
|
});
|
17005
17004
|
_useLayoutHeaderResizeObserver();
|
17006
17005
|
const _ = _useFormModel(E, g, m), y = computed(() => {
|
17007
|
-
var $,
|
17008
|
-
if (!isNil((
|
17009
|
-
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;
|
17010
17009
|
if (!isNil(e.kgDisabled))
|
17011
17010
|
return e.kgDisabled;
|
17012
17011
|
}), v = computed(() => {
|
17013
|
-
var
|
17014
|
-
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);
|
17015
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({
|
17016
17015
|
visible: !1
|
17017
17016
|
}), C = computed(() => m.value.kgHeight === b.value), w = computed(() => {
|
17018
|
-
var $,
|
17019
|
-
if (n.t((
|
17020
|
-
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;
|
17021
17020
|
}), M = computed(() => {
|
17022
|
-
var
|
17023
|
-
switch ((
|
17021
|
+
var L;
|
17022
|
+
switch ((L = n.varButtonSearch.value) == null ? void 0 : L.primary_flg) {
|
17024
17023
|
case 1:
|
17025
17024
|
return !0;
|
17026
17025
|
case 0:
|
@@ -17029,16 +17028,16 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17029
17028
|
return !0;
|
17030
17029
|
}
|
17031
17030
|
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), D = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), K = computed(() => {
|
17032
|
-
let
|
17033
|
-
return o.value && (
|
17031
|
+
let L = "kg-search";
|
17032
|
+
return o.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
|
17034
17033
|
});
|
17035
|
-
async function P(
|
17036
|
-
var
|
17034
|
+
async function P(L = {}) {
|
17035
|
+
var $, q;
|
17037
17036
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), i.isRetrieving.value) {
|
17038
17037
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
17039
17038
|
return;
|
17040
17039
|
}
|
17041
|
-
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)) {
|
17042
17041
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
|
17043
17042
|
return;
|
17044
17043
|
}
|
@@ -17047,55 +17046,55 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17047
17046
|
return;
|
17048
17047
|
}
|
17049
17048
|
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), g.value && g.value.validate().then(async () => {
|
17050
|
-
await s.store.emit(n.formID, "search",
|
17051
|
-
}).catch((
|
17049
|
+
await s.store.emit(n.formID, "search", L);
|
17050
|
+
}).catch((z) => {
|
17052
17051
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
17053
|
-
e:
|
17052
|
+
e: z
|
17054
17053
|
});
|
17055
|
-
})) : (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));
|
17056
17055
|
}
|
17057
17056
|
s.store.setSearchFn(n.formID, P);
|
17058
|
-
async function
|
17057
|
+
async function x() {
|
17059
17058
|
_.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
|
17060
17059
|
await s.store.emit(n.formID, "reset", {});
|
17061
|
-
}).catch((
|
17060
|
+
}).catch((L) => {
|
17062
17061
|
KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
17063
|
-
e:
|
17062
|
+
e: L
|
17064
17063
|
});
|
17065
17064
|
}) : await s.store.emit(n.formID, "reset", {});
|
17066
17065
|
}
|
17067
|
-
s.store.setResetFn(n.formID,
|
17068
|
-
function
|
17066
|
+
s.store.setResetFn(n.formID, x);
|
17067
|
+
function N() {
|
17069
17068
|
return P({
|
17070
17069
|
isSearchFirstPage: !0
|
17071
17070
|
}), Promise.resolve(!0);
|
17072
17071
|
}
|
17073
17072
|
function O() {
|
17074
|
-
var
|
17073
|
+
var L;
|
17075
17074
|
return createVNode("div", {
|
17076
17075
|
class: "title",
|
17077
|
-
onClick:
|
17078
|
-
}, [((
|
17076
|
+
onClick: U
|
17077
|
+
}, [((L = t == null ? void 0 : t.KgSearch) == null ? void 0 : L.left) && createVNode("div", {
|
17079
17078
|
class: "kg-search-title-left",
|
17080
|
-
onClick: (
|
17081
|
-
|
17079
|
+
onClick: ($) => {
|
17080
|
+
$.stopPropagation(), $.preventDefault();
|
17082
17081
|
}
|
17083
17082
|
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
17084
17083
|
}
|
17085
17084
|
function R() {
|
17086
|
-
var $,
|
17087
|
-
return ((
|
17088
|
-
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,
|
17089
17088
|
"onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
|
17090
17089
|
disabled: T.value,
|
17091
17090
|
class: "kg-search-profile-master-select"
|
17092
17091
|
}, {
|
17093
17092
|
default: () => {
|
17094
17093
|
var J, re;
|
17095
|
-
return (re = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : re.map((
|
17096
|
-
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
|
17097
17096
|
}, {
|
17098
|
-
default: () => [n.t(
|
17097
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
17099
17098
|
}));
|
17100
17099
|
},
|
17101
17100
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -17116,45 +17115,45 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17116
17115
|
}, null)]);
|
17117
17116
|
}
|
17118
17117
|
function V() {
|
17119
|
-
var $,
|
17118
|
+
var L, $, q;
|
17120
17119
|
return createVNode(Fragment, null, [R(), createVNode(Button, {
|
17121
17120
|
type: "primary",
|
17122
17121
|
ghost: !v.value,
|
17123
17122
|
disabled: v.value,
|
17124
|
-
onClick:
|
17123
|
+
onClick: x,
|
17125
17124
|
class: "kg-search-btn-reset"
|
17126
17125
|
}, {
|
17127
17126
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
17128
17127
|
}), createVNode(KgButton.Item, {
|
17129
17128
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
17130
|
-
kgVarName: (
|
17131
|
-
kgIcon: (
|
17129
|
+
kgVarName: (L = n.varButtonSearch.value) == null ? void 0 : L.var_nam,
|
17130
|
+
kgIcon: ($ = n.varButtonSearch.value) == null ? void 0 : $.icon,
|
17132
17131
|
kgText: w.value,
|
17133
|
-
kgColor: (
|
17132
|
+
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
17134
17133
|
kgPrimary: M.value,
|
17135
17134
|
kgDisabled: v.value,
|
17136
17135
|
kgLoading: k.value,
|
17137
|
-
onKgClick:
|
17136
|
+
onKgClick: N
|
17138
17137
|
}, null)]);
|
17139
17138
|
}
|
17140
|
-
function
|
17139
|
+
function F() {
|
17141
17140
|
return createVNode(Spin, {
|
17142
17141
|
spinning: D.value
|
17143
17142
|
}, {
|
17144
17143
|
default: () => {
|
17145
|
-
var
|
17144
|
+
var L;
|
17146
17145
|
return [createVNode(KgForm, {
|
17147
17146
|
ref: g,
|
17148
|
-
model: (
|
17147
|
+
model: (L = s.model.value) != null ? L : {}
|
17149
17148
|
}, {
|
17150
17149
|
default: () => [createVNode(Row, {
|
17151
17150
|
gutter: 6
|
17152
17151
|
}, {
|
17153
17152
|
default: () => {
|
17154
|
-
var
|
17155
|
-
return [(
|
17156
|
-
key:
|
17157
|
-
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,
|
17158
17157
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
17159
17158
|
onKgSubmit: () => P({
|
17160
17159
|
isSearchFirstPage: !0
|
@@ -17166,7 +17165,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17166
17165
|
}
|
17167
17166
|
});
|
17168
17167
|
}
|
17169
|
-
function
|
17168
|
+
function U() {
|
17170
17169
|
C.value ? m.value.kgHeight = u.value : m.value.kgHeight = b.value;
|
17171
17170
|
}
|
17172
17171
|
return onUnmounted(async () => {
|
@@ -17174,7 +17173,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17174
17173
|
}), () => createVNode(KgResizable, {
|
17175
17174
|
ref: E,
|
17176
17175
|
kgHeight: m.value.kgHeight,
|
17177
|
-
"onUpdate:kgHeight": (
|
17176
|
+
"onUpdate:kgHeight": (L) => m.value.kgHeight = L,
|
17178
17177
|
kgMinHeight: b.value,
|
17179
17178
|
kgMaxHeight: d.value,
|
17180
17179
|
kgDisabled: !l.value,
|
@@ -17202,7 +17201,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17202
17201
|
class: "ant-collapse-content ant-collapse-content-active"
|
17203
17202
|
}, [createVNode("div", {
|
17204
17203
|
class: "ant-collapse-content-box"
|
17205
|
-
}, [
|
17204
|
+
}, [F()])])])])]
|
17206
17205
|
});
|
17207
17206
|
}
|
17208
17207
|
}), KgVarConfig_FormIDsModal = "", getProps$i = () => ({
|
@@ -17593,11 +17592,11 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17593
17592
|
}, {
|
17594
17593
|
immediate: !0
|
17595
17594
|
}), watch(() => a.getSelectedVarCatalog, async (P) => {
|
17596
|
-
var
|
17597
|
-
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();
|
17598
17597
|
});
|
17599
17598
|
async function v(P = !1) {
|
17600
|
-
var
|
17599
|
+
var x, N, O;
|
17601
17600
|
n.value = !0;
|
17602
17601
|
try {
|
17603
17602
|
const {
|
@@ -17607,19 +17606,19 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17607
17606
|
pageNo: 1,
|
17608
17607
|
pageSize: 999,
|
17609
17608
|
frm_id: e == null ? void 0 : e.value,
|
17610
|
-
var_nam: (
|
17609
|
+
var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
|
17611
17610
|
column: "frm_id,locale_id,cust_lvl",
|
17612
17611
|
order: "asc"
|
17613
17612
|
}
|
17614
17613
|
});
|
17615
17614
|
if (u.value = null, c.value = R != null ? R : [], P) {
|
17616
|
-
const V = c.value.find((
|
17617
|
-
var
|
17618
|
-
return
|
17615
|
+
const V = c.value.find((F) => {
|
17616
|
+
var U;
|
17617
|
+
return F.id === ((U = a.getSelectedVarCatalog) == null ? void 0 : U.id);
|
17619
17618
|
});
|
17620
17619
|
a.setSelectedVarCatalog(V != null ? V : null), d.value = V != null && V.id ? [V.id] : [];
|
17621
17620
|
} else
|
17622
|
-
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] : [];
|
17623
17622
|
} catch (R) {
|
17624
17623
|
KgLogger.debug(R == null ? void 0 : R.message);
|
17625
17624
|
} finally {
|
@@ -17627,12 +17626,12 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17627
17626
|
}
|
17628
17627
|
}
|
17629
17628
|
async function T() {
|
17630
|
-
var P,
|
17629
|
+
var P, x, N;
|
17631
17630
|
try {
|
17632
17631
|
s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
|
17633
17632
|
const O = new VarVariableCatalog({
|
17634
|
-
...(
|
17635
|
-
var_text: (
|
17633
|
+
...(x = a.getSelectedVarCatalog) != null ? x : {},
|
17634
|
+
var_text: (N = l.value) == null ? void 0 : N.var_text
|
17636
17635
|
});
|
17637
17636
|
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
17638
17637
|
data: O
|
@@ -17661,23 +17660,23 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17661
17660
|
}
|
17662
17661
|
function k({
|
17663
17662
|
isAllForm: P,
|
17664
|
-
isAllLanguage:
|
17663
|
+
isAllLanguage: x
|
17665
17664
|
}) {
|
17666
|
-
var
|
17665
|
+
var N, O, R;
|
17667
17666
|
u.value = new VarVariableCatalog({
|
17668
17667
|
id: "",
|
17669
17668
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
17670
|
-
grp_nam: (
|
17669
|
+
grp_nam: (N = a.getSelectedVar) == null ? void 0 : N.grp_nam,
|
17671
17670
|
var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
|
17672
17671
|
frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17673
|
-
locale_id:
|
17672
|
+
locale_id: x ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
17674
17673
|
var_text: ""
|
17675
17674
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17676
17675
|
}
|
17677
17676
|
function A() {
|
17678
|
-
var
|
17677
|
+
var x;
|
17679
17678
|
c.value = without$1(c.value, u.value), u.value = null;
|
17680
|
-
const P = (
|
17679
|
+
const P = (x = c.value[0]) != null ? x : null;
|
17681
17680
|
a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
|
17682
17681
|
}
|
17683
17682
|
function C() {
|
@@ -17698,8 +17697,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17698
17697
|
});
|
17699
17698
|
}
|
17700
17699
|
function w(P) {
|
17701
|
-
var
|
17702
|
-
((
|
17700
|
+
var x;
|
17701
|
+
((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== P.id && (unref(u) ? KgUtil.confirm({
|
17703
17702
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17704
17703
|
onOk: () => {
|
17705
17704
|
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
|
@@ -17729,7 +17728,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17729
17728
|
})]);
|
17730
17729
|
}
|
17731
17730
|
function D() {
|
17732
|
-
let P,
|
17731
|
+
let P, x;
|
17733
17732
|
return createVNode("div", {
|
17734
17733
|
class: "form"
|
17735
17734
|
}, [createVNode(Form, {
|
@@ -17746,7 +17745,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17746
17745
|
}, {
|
17747
17746
|
default: () => [createVNode(Textarea, {
|
17748
17747
|
value: l.value.var_text,
|
17749
|
-
"onUpdate:value": (
|
17748
|
+
"onUpdate:value": (N) => l.value.var_text = N,
|
17750
17749
|
disabled: !a.getSelectedVarCatalog
|
17751
17750
|
}, null), createVNode("button", {
|
17752
17751
|
hidden: !0
|
@@ -17764,14 +17763,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17764
17763
|
disabled: y.value,
|
17765
17764
|
onClick: T,
|
17766
17765
|
type: "primary"
|
17767
|
-
}, _isSlot$1(
|
17768
|
-
default: () => [
|
17766
|
+
}, _isSlot$1(x = t.t("common.save")) ? x : {
|
17767
|
+
default: () => [x]
|
17769
17768
|
})])]);
|
17770
17769
|
}
|
17771
17770
|
function K(P) {
|
17772
|
-
var
|
17773
|
-
let
|
17774
|
-
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;
|
17775
17774
|
}
|
17776
17775
|
return () => createVNode("div", {
|
17777
17776
|
class: "kg-var-config-modal--var--var-variable-catalog"
|
@@ -19834,16 +19833,16 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19834
19833
|
const { varNam: D, properties: K = {} } = I, P = a.value.varButtons.find((O) => O.var_nam === D);
|
19835
19834
|
if (!P)
|
19836
19835
|
return;
|
19837
|
-
let
|
19836
|
+
let x = !1;
|
19838
19837
|
if (Object.entries(K).forEach(([O, R]) => {
|
19839
|
-
O in P && P[O] !== R && (P[O] = R,
|
19840
|
-
}), !
|
19838
|
+
O in P && P[O] !== R && (P[O] = R, x = !0);
|
19839
|
+
}), !x)
|
19841
19840
|
return;
|
19842
|
-
const
|
19843
|
-
|
19841
|
+
const N = [...a.value.varButtons];
|
19842
|
+
N.splice(a.value.varButtons.indexOf(P), 1, { ...P }), a.value.varButtons = toRaw(N);
|
19844
19843
|
}
|
19845
19844
|
function _(I) {
|
19846
|
-
const { varNam: D } = I, K = a.value.varButtons.find((
|
19845
|
+
const { varNam: D } = I, K = a.value.varButtons.find((x) => x.var_nam === D);
|
19847
19846
|
if (!K)
|
19848
19847
|
return;
|
19849
19848
|
const P = [...a.value.varButtons];
|
@@ -19873,7 +19872,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19873
19872
|
const { varNam: D, varText: K } = I;
|
19874
19873
|
if (!D)
|
19875
19874
|
return;
|
19876
|
-
const P = a.value.varVariableCatalogs.find((
|
19875
|
+
const P = a.value.varVariableCatalogs.find((x) => x.var_nam === D);
|
19877
19876
|
!P || (P.var_text = K || D);
|
19878
19877
|
}
|
19879
19878
|
function T(I) {
|
@@ -19915,7 +19914,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19915
19914
|
}
|
19916
19915
|
function w(I) {
|
19917
19916
|
var D, K, P;
|
19918
|
-
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 : "";
|
19919
19918
|
}
|
19920
19919
|
function M() {
|
19921
19920
|
const I = uniq(
|