@kengic/vue 0.10.7 → 0.10.8
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +1183 -1113
- package/dist/src/src/components/KgTable/components/setting/KgTable.Setting.hooks.d.ts +1 -1
- package/dist/src/src/components/KgTable/index.store.d.ts +5 -1
- package/dist/src/src/components/KgTable/index.vm.d.ts +2 -0
- package/dist/src/src/config/index.store.d.ts +16 -2
- package/dist/src/src/consts/i18n/en.d.ts +4 -0
- package/dist/src/src/consts/i18n/zh_CN.d.ts +4 -0
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -2200,7 +2200,7 @@ var Icon$1 = function(t, r) {
|
|
2200
2200
|
var g = i ? {
|
2201
2201
|
msTransform: "rotate(".concat(i, "deg)"),
|
2202
2202
|
transform: "rotate(".concat(i, "deg)")
|
2203
|
-
} : void 0,
|
2203
|
+
} : void 0, b = normalizeTwoToneColors(u), y = _slicedToArray(b, 2), C = y[0], M = y[1];
|
2204
2204
|
return createVNode("span", _objectSpread$k({
|
2205
2205
|
role: "img",
|
2206
2206
|
"aria-label": l.name
|
@@ -2211,7 +2211,7 @@ var Icon$1 = function(t, r) {
|
|
2211
2211
|
class: E,
|
2212
2212
|
icon: l,
|
2213
2213
|
primaryColor: C,
|
2214
|
-
secondaryColor:
|
2214
|
+
secondaryColor: M,
|
2215
2215
|
style: g
|
2216
2216
|
}, null)]);
|
2217
2217
|
};
|
@@ -3021,15 +3021,15 @@ function iconToSVG(e, t) {
|
|
3021
3021
|
};
|
3022
3022
|
let s = r.body;
|
3023
3023
|
[r, a].forEach((E) => {
|
3024
|
-
const m = [], g = E.hFlip,
|
3025
|
-
let
|
3026
|
-
g ?
|
3024
|
+
const m = [], g = E.hFlip, b = E.vFlip;
|
3025
|
+
let y = E.rotate;
|
3026
|
+
g ? b ? y += 2 : (m.push(
|
3027
3027
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3028
|
-
), m.push("scale(-1 1)"), n.top = n.left = 0) :
|
3028
|
+
), m.push("scale(-1 1)"), n.top = n.left = 0) : b && (m.push(
|
3029
3029
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3030
3030
|
), m.push("scale(1 -1)"), n.top = n.left = 0);
|
3031
3031
|
let C;
|
3032
|
-
switch (
|
3032
|
+
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
3033
3033
|
case 1:
|
3034
3034
|
C = n.height / 2 + n.top, m.unshift(
|
3035
3035
|
"rotate(90 " + C.toString() + " " + C.toString() + ")"
|
@@ -3046,7 +3046,7 @@ function iconToSVG(e, t) {
|
|
3046
3046
|
);
|
3047
3047
|
break;
|
3048
3048
|
}
|
3049
|
-
|
3049
|
+
y % 2 === 1 && (n.left !== n.top && (C = n.left, n.left = n.top, n.top = C), n.width !== n.height && (C = n.width, n.width = n.height, n.height = C)), m.length && (s = '<g transform="' + m.join(" ") + '">' + s + "</g>");
|
3050
3050
|
});
|
3051
3051
|
const l = a.width, o = a.height, i = n.width, c = n.height;
|
3052
3052
|
let u, d;
|
@@ -3328,8 +3328,8 @@ function sendQuery(e, t, r, a) {
|
|
3328
3328
|
if (e.random) {
|
3329
3329
|
let T = e.resources.slice(0);
|
3330
3330
|
for (l = []; T.length > 1; ) {
|
3331
|
-
const
|
3332
|
-
l.push(T[
|
3331
|
+
const O = Math.floor(Math.random() * T.length);
|
3332
|
+
l.push(T[O]), T = T.slice(0, O).concat(T.slice(O + 1));
|
3333
3333
|
}
|
3334
3334
|
l = l.concat(T);
|
3335
3335
|
} else
|
@@ -3345,10 +3345,10 @@ function sendQuery(e, t, r, a) {
|
|
3345
3345
|
T.status === "pending" && (T.status = "aborted");
|
3346
3346
|
}), p = [];
|
3347
3347
|
}
|
3348
|
-
function g(T,
|
3349
|
-
|
3348
|
+
function g(T, O) {
|
3349
|
+
O && (v = []), typeof T == "function" && v.push(T);
|
3350
3350
|
}
|
3351
|
-
function
|
3351
|
+
function b() {
|
3352
3352
|
return {
|
3353
3353
|
startTime: o,
|
3354
3354
|
payload: t,
|
@@ -3359,7 +3359,7 @@ function sendQuery(e, t, r, a) {
|
|
3359
3359
|
abort: m
|
3360
3360
|
};
|
3361
3361
|
}
|
3362
|
-
function
|
3362
|
+
function y() {
|
3363
3363
|
i = "failed", v.forEach((T) => {
|
3364
3364
|
T(void 0, u);
|
3365
3365
|
});
|
@@ -3369,35 +3369,35 @@ function sendQuery(e, t, r, a) {
|
|
3369
3369
|
T.status === "pending" && (T.status = "aborted");
|
3370
3370
|
}), p = [];
|
3371
3371
|
}
|
3372
|
-
function
|
3373
|
-
const
|
3374
|
-
switch (p = p.filter((
|
3372
|
+
function M(T, O, I) {
|
3373
|
+
const w = O !== "success";
|
3374
|
+
switch (p = p.filter((A) => A !== T), i) {
|
3375
3375
|
case "pending":
|
3376
3376
|
break;
|
3377
3377
|
case "failed":
|
3378
|
-
if (
|
3378
|
+
if (w || !e.dataAfterTimeout)
|
3379
3379
|
return;
|
3380
3380
|
break;
|
3381
3381
|
default:
|
3382
3382
|
return;
|
3383
3383
|
}
|
3384
|
-
if (
|
3385
|
-
u =
|
3384
|
+
if (O === "abort") {
|
3385
|
+
u = I, y();
|
3386
3386
|
return;
|
3387
3387
|
}
|
3388
|
-
if (
|
3389
|
-
u =
|
3388
|
+
if (w) {
|
3389
|
+
u = I, p.length || (l.length ? k() : y());
|
3390
3390
|
return;
|
3391
3391
|
}
|
3392
3392
|
if (E(), C(), !e.random) {
|
3393
|
-
const
|
3394
|
-
|
3393
|
+
const A = e.resources.indexOf(T.resource);
|
3394
|
+
A !== -1 && A !== e.index && (e.index = A);
|
3395
3395
|
}
|
3396
|
-
i = "completed", v.forEach((
|
3397
|
-
|
3396
|
+
i = "completed", v.forEach((A) => {
|
3397
|
+
A(I);
|
3398
3398
|
});
|
3399
3399
|
}
|
3400
|
-
function
|
3400
|
+
function k() {
|
3401
3401
|
if (i !== "pending")
|
3402
3402
|
return;
|
3403
3403
|
E();
|
@@ -3405,23 +3405,23 @@ function sendQuery(e, t, r, a) {
|
|
3405
3405
|
if (T === void 0) {
|
3406
3406
|
if (p.length) {
|
3407
3407
|
d = setTimeout(() => {
|
3408
|
-
E(), i === "pending" && (C(),
|
3408
|
+
E(), i === "pending" && (C(), y());
|
3409
3409
|
}, e.timeout);
|
3410
3410
|
return;
|
3411
3411
|
}
|
3412
|
-
|
3412
|
+
y();
|
3413
3413
|
return;
|
3414
3414
|
}
|
3415
|
-
const
|
3415
|
+
const O = {
|
3416
3416
|
status: "pending",
|
3417
3417
|
resource: T,
|
3418
|
-
callback: (
|
3419
|
-
|
3418
|
+
callback: (I, w) => {
|
3419
|
+
M(O, I, w);
|
3420
3420
|
}
|
3421
3421
|
};
|
3422
|
-
p.push(
|
3422
|
+
p.push(O), c++, d = setTimeout(k, e.rotate), r(T, t, O.callback);
|
3423
3423
|
}
|
3424
|
-
return setTimeout(
|
3424
|
+
return setTimeout(k), b;
|
3425
3425
|
}
|
3426
3426
|
function initRedundancy(e) {
|
3427
3427
|
const t = {
|
@@ -3823,8 +3823,8 @@ const render = (e, t) => {
|
|
3823
3823
|
g !== !0 && g !== "true" && delete a["aria-hidden"];
|
3824
3824
|
break;
|
3825
3825
|
default: {
|
3826
|
-
const
|
3827
|
-
|
3826
|
+
const b = customisationAliases[m];
|
3827
|
+
b ? (g === !0 || g === "true" || g === 1) && (r[b] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (a[m] = g);
|
3828
3828
|
}
|
3829
3829
|
}
|
3830
3830
|
}
|
@@ -3939,7 +3939,7 @@ const emptyIcon = {
|
|
3939
3939
|
...t.data
|
3940
3940
|
}, r);
|
3941
3941
|
}
|
3942
|
-
}), name = "@kengic/vue", version = "0.10.
|
3942
|
+
}), name = "@kengic/vue", version = "0.10.8", data$1 = {
|
3943
3943
|
width: 24,
|
3944
3944
|
height: 24,
|
3945
3945
|
body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
|
@@ -3958,60 +3958,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3958
3958
|
(function(r, a) {
|
3959
3959
|
e.exports = a();
|
3960
3960
|
})(commonjsGlobal, function() {
|
3961
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", p = "quarter", v = "year", E = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
3962
|
-
var
|
3963
|
-
return "[" +
|
3964
|
-
} }, C = function(
|
3965
|
-
var x = String(
|
3966
|
-
return !x || x.length >=
|
3967
|
-
},
|
3968
|
-
var
|
3969
|
-
return (
|
3970
|
-
}, m: function
|
3971
|
-
if (
|
3972
|
-
return -
|
3973
|
-
var x = 12 * ($.year() -
|
3961
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", p = "quarter", v = "year", E = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
|
3962
|
+
var R = ["th", "st", "nd", "rd"], $ = V % 100;
|
3963
|
+
return "[" + V + (R[($ - 20) % 10] || R[$] || R[0]) + "]";
|
3964
|
+
} }, C = function(V, R, $) {
|
3965
|
+
var x = String(V);
|
3966
|
+
return !x || x.length >= R ? V : "" + Array(R + 1 - x.length).join($) + V;
|
3967
|
+
}, M = { s: C, z: function(V) {
|
3968
|
+
var R = -V.utcOffset(), $ = Math.abs(R), x = Math.floor($ / 60), F = $ % 60;
|
3969
|
+
return (R <= 0 ? "+" : "-") + C(x, 2, "0") + ":" + C(F, 2, "0");
|
3970
|
+
}, m: function V(R, $) {
|
3971
|
+
if (R.date() < $.date())
|
3972
|
+
return -V($, R);
|
3973
|
+
var x = 12 * ($.year() - R.year()) + ($.month() - R.month()), F = R.clone().add(x, d), G = $ - F < 0, L = R.clone().add(x + (G ? -1 : 1), d);
|
3974
3974
|
return +(-(x + ($ - F) / (G ? F - L : L - F)) || 0);
|
3975
|
-
}, a: function(
|
3976
|
-
return
|
3977
|
-
}, p: function(
|
3978
|
-
return { M: d, y: v, w: u, d: c, D: E, h: i, m: o, s: l, ms: s, Q: p }[
|
3979
|
-
}, u: function(
|
3980
|
-
return
|
3981
|
-
} },
|
3982
|
-
T[
|
3983
|
-
var
|
3984
|
-
return
|
3985
|
-
},
|
3975
|
+
}, a: function(V) {
|
3976
|
+
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3977
|
+
}, p: function(V) {
|
3978
|
+
return { M: d, y: v, w: u, d: c, D: E, h: i, m: o, s: l, ms: s, Q: p }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
3979
|
+
}, u: function(V) {
|
3980
|
+
return V === void 0;
|
3981
|
+
} }, k = "en", T = {};
|
3982
|
+
T[k] = y;
|
3983
|
+
var O = "$isDayjsObject", I = function(V) {
|
3984
|
+
return V instanceof D || !(!V || !V[O]);
|
3985
|
+
}, w = function V(R, $, x) {
|
3986
3986
|
var F;
|
3987
|
-
if (!
|
3988
|
-
return
|
3989
|
-
if (typeof
|
3990
|
-
var G =
|
3987
|
+
if (!R)
|
3988
|
+
return k;
|
3989
|
+
if (typeof R == "string") {
|
3990
|
+
var G = R.toLowerCase();
|
3991
3991
|
T[G] && (F = G), $ && (T[G] = $, F = G);
|
3992
|
-
var L =
|
3992
|
+
var L = R.split("-");
|
3993
3993
|
if (!F && L.length > 1)
|
3994
|
-
return
|
3994
|
+
return V(L[0]);
|
3995
3995
|
} else {
|
3996
|
-
var H =
|
3997
|
-
T[H] =
|
3996
|
+
var H = R.name;
|
3997
|
+
T[H] = R, F = H;
|
3998
3998
|
}
|
3999
|
-
return !x && F && (
|
4000
|
-
},
|
4001
|
-
if (
|
4002
|
-
return
|
4003
|
-
var $ = typeof
|
4004
|
-
return $.date =
|
4005
|
-
}, P =
|
4006
|
-
P.l =
|
4007
|
-
return
|
3999
|
+
return !x && F && (k = F), F || !x && k;
|
4000
|
+
}, A = function(V, R) {
|
4001
|
+
if (I(V))
|
4002
|
+
return V.clone();
|
4003
|
+
var $ = typeof R == "object" ? R : {};
|
4004
|
+
return $.date = V, $.args = arguments, new D($);
|
4005
|
+
}, P = M;
|
4006
|
+
P.l = w, P.i = I, P.w = function(V, R) {
|
4007
|
+
return A(V, { locale: R.$L, utc: R.$u, x: R.$x, $offset: R.$offset });
|
4008
4008
|
};
|
4009
|
-
var
|
4010
|
-
function
|
4011
|
-
this.$L =
|
4009
|
+
var D = function() {
|
4010
|
+
function V($) {
|
4011
|
+
this.$L = w($.locale, null, !0), this.parse($), this.$x = this.$x || $.x || {}, this[O] = !0;
|
4012
4012
|
}
|
4013
|
-
var
|
4014
|
-
return
|
4013
|
+
var R = V.prototype;
|
4014
|
+
return R.parse = function($) {
|
4015
4015
|
this.$d = function(x) {
|
4016
4016
|
var F = x.date, G = x.utc;
|
4017
4017
|
if (F === null)
|
@@ -4029,27 +4029,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4029
4029
|
}
|
4030
4030
|
return new Date(F);
|
4031
4031
|
}($), this.init();
|
4032
|
-
},
|
4032
|
+
}, R.init = function() {
|
4033
4033
|
var $ = this.$d;
|
4034
4034
|
this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
|
4035
|
-
},
|
4035
|
+
}, R.$utils = function() {
|
4036
4036
|
return P;
|
4037
|
-
},
|
4037
|
+
}, R.isValid = function() {
|
4038
4038
|
return this.$d.toString() !== m;
|
4039
|
-
},
|
4040
|
-
var F =
|
4039
|
+
}, R.isSame = function($, x) {
|
4040
|
+
var F = A($);
|
4041
4041
|
return this.startOf(x) <= F && F <= this.endOf(x);
|
4042
|
-
},
|
4043
|
-
return
|
4044
|
-
},
|
4045
|
-
return this.endOf(x) <
|
4046
|
-
},
|
4042
|
+
}, R.isAfter = function($, x) {
|
4043
|
+
return A($) < this.startOf(x);
|
4044
|
+
}, R.isBefore = function($, x) {
|
4045
|
+
return this.endOf(x) < A($);
|
4046
|
+
}, R.$g = function($, x, F) {
|
4047
4047
|
return P.u($) ? this[x] : this.set(F, $);
|
4048
|
-
},
|
4048
|
+
}, R.unix = function() {
|
4049
4049
|
return Math.floor(this.valueOf() / 1e3);
|
4050
|
-
},
|
4050
|
+
}, R.valueOf = function() {
|
4051
4051
|
return this.$d.getTime();
|
4052
|
-
},
|
4052
|
+
}, R.startOf = function($, x) {
|
4053
4053
|
var F = this, G = !!P.u(x) || x, L = P.p($), H = function(fe, se) {
|
4054
4054
|
var pe = P.w(F.$u ? Date.UTC(F.$y, se, fe) : new Date(F.$y, se, fe), F);
|
4055
4055
|
return G ? pe : pe.endOf(c);
|
@@ -4076,9 +4076,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4076
4076
|
default:
|
4077
4077
|
return this.clone();
|
4078
4078
|
}
|
4079
|
-
},
|
4079
|
+
}, R.endOf = function($) {
|
4080
4080
|
return this.startOf($, !1);
|
4081
|
-
},
|
4081
|
+
}, R.$set = function($, x) {
|
4082
4082
|
var F, G = P.p($), L = "set" + (this.$u ? "UTC" : ""), H = (F = {}, F[c] = L + "Date", F[E] = L + "Date", F[d] = L + "Month", F[v] = L + "FullYear", F[i] = L + "Hours", F[o] = L + "Minutes", F[l] = L + "Seconds", F[s] = L + "Milliseconds", F)[G], Q = G === c ? this.$D + (x - this.$W) : x;
|
4083
4083
|
if (G === d || G === v) {
|
4084
4084
|
var X = this.clone().set(E, 1);
|
@@ -4086,15 +4086,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4086
4086
|
} else
|
4087
4087
|
H && this.$d[H](Q);
|
4088
4088
|
return this.init(), this;
|
4089
|
-
},
|
4089
|
+
}, R.set = function($, x) {
|
4090
4090
|
return this.clone().$set($, x);
|
4091
|
-
},
|
4091
|
+
}, R.get = function($) {
|
4092
4092
|
return this[P.p($)]();
|
4093
|
-
},
|
4093
|
+
}, R.add = function($, x) {
|
4094
4094
|
var F, G = this;
|
4095
4095
|
$ = Number($);
|
4096
4096
|
var L = P.p(x), H = function(q) {
|
4097
|
-
var ee =
|
4097
|
+
var ee = A(G);
|
4098
4098
|
return P.w(ee.date(ee.date() + Math.round(q * $)), G);
|
4099
4099
|
};
|
4100
4100
|
if (L === d)
|
@@ -4107,9 +4107,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4107
4107
|
return H(7);
|
4108
4108
|
var Q = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[L] || 1, X = this.$d.getTime() + $ * Q;
|
4109
4109
|
return P.w(X, this);
|
4110
|
-
},
|
4110
|
+
}, R.subtract = function($, x) {
|
4111
4111
|
return this.add(-1 * $, x);
|
4112
|
-
},
|
4112
|
+
}, R.format = function($) {
|
4113
4113
|
var x = this, F = this.$locale();
|
4114
4114
|
if (!this.isValid())
|
4115
4115
|
return F.invalidDate || m;
|
@@ -4121,7 +4121,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4121
4121
|
var K = se < 12 ? "AM" : "PM";
|
4122
4122
|
return ve ? K.toLowerCase() : K;
|
4123
4123
|
};
|
4124
|
-
return G.replace(
|
4124
|
+
return G.replace(b, function(se, pe) {
|
4125
4125
|
return pe || function(ve) {
|
4126
4126
|
switch (ve) {
|
4127
4127
|
case "YY":
|
@@ -4176,10 +4176,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4176
4176
|
return null;
|
4177
4177
|
}(se) || L.replace(":", "");
|
4178
4178
|
});
|
4179
|
-
},
|
4179
|
+
}, R.utcOffset = function() {
|
4180
4180
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4181
|
-
},
|
4182
|
-
var G, L = this, H = P.p(x), Q =
|
4181
|
+
}, R.diff = function($, x, F) {
|
4182
|
+
var G, L = this, H = P.p(x), Q = A($), X = (Q.utcOffset() - this.utcOffset()) * a, q = this - Q, ee = function() {
|
4183
4183
|
return P.m(L, Q);
|
4184
4184
|
};
|
4185
4185
|
switch (H) {
|
@@ -4211,36 +4211,36 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4211
4211
|
G = q;
|
4212
4212
|
}
|
4213
4213
|
return F ? G : P.a(G);
|
4214
|
-
},
|
4214
|
+
}, R.daysInMonth = function() {
|
4215
4215
|
return this.endOf(d).$D;
|
4216
|
-
},
|
4216
|
+
}, R.$locale = function() {
|
4217
4217
|
return T[this.$L];
|
4218
|
-
},
|
4218
|
+
}, R.locale = function($, x) {
|
4219
4219
|
if (!$)
|
4220
4220
|
return this.$L;
|
4221
|
-
var F = this.clone(), G =
|
4221
|
+
var F = this.clone(), G = w($, x, !0);
|
4222
4222
|
return G && (F.$L = G), F;
|
4223
|
-
},
|
4223
|
+
}, R.clone = function() {
|
4224
4224
|
return P.w(this.$d, this);
|
4225
|
-
},
|
4225
|
+
}, R.toDate = function() {
|
4226
4226
|
return new Date(this.valueOf());
|
4227
|
-
},
|
4227
|
+
}, R.toJSON = function() {
|
4228
4228
|
return this.isValid() ? this.toISOString() : null;
|
4229
|
-
},
|
4229
|
+
}, R.toISOString = function() {
|
4230
4230
|
return this.$d.toISOString();
|
4231
|
-
},
|
4231
|
+
}, R.toString = function() {
|
4232
4232
|
return this.$d.toUTCString();
|
4233
|
-
},
|
4234
|
-
}(), N =
|
4235
|
-
return
|
4236
|
-
N[
|
4237
|
-
return this.$g(
|
4233
|
+
}, V;
|
4234
|
+
}(), N = D.prototype;
|
4235
|
+
return A.prototype = N, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", E]].forEach(function(V) {
|
4236
|
+
N[V[1]] = function(R) {
|
4237
|
+
return this.$g(R, V[0], V[1]);
|
4238
4238
|
};
|
4239
|
-
}),
|
4240
|
-
return
|
4241
|
-
},
|
4242
|
-
return
|
4243
|
-
},
|
4239
|
+
}), A.extend = function(V, R) {
|
4240
|
+
return V.$i || (V(R, D, A), V.$i = !0), A;
|
4241
|
+
}, A.locale = w, A.isDayjs = I, A.unix = function(V) {
|
4242
|
+
return A(1e3 * V);
|
4243
|
+
}, A.en = T[k], A.Ls = T, A.p = {}, A;
|
4244
4244
|
});
|
4245
4245
|
})(dayjs_min);
|
4246
4246
|
const dayjs = dayjs_min.exports;
|
@@ -4285,31 +4285,31 @@ function filesize(e, {
|
|
4285
4285
|
roundingMethod: m = ROUND,
|
4286
4286
|
precision: g = 0
|
4287
4287
|
} = {}) {
|
4288
|
-
let
|
4288
|
+
let b = E, y = Number(e), C = [], M = 0, k = EMPTY;
|
4289
4289
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4290
|
-
const T = a === 10 ? 1e3 : 1024,
|
4290
|
+
const T = a === 10 ? 1e3 : 1024, O = p === !0, I = y < 0, w = Math[m];
|
4291
4291
|
if (typeof e != "bigint" && isNaN(e))
|
4292
4292
|
throw new TypeError(INVALID_NUMBER);
|
4293
|
-
if (typeof
|
4293
|
+
if (typeof w !== FUNCTION)
|
4294
4294
|
throw new TypeError(INVALID_ROUND);
|
4295
|
-
if (
|
4296
|
-
return
|
4297
|
-
if (
|
4298
|
-
C[0] = 0,
|
4295
|
+
if (I && (y = -y), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(y) / Math.log(T)), b < 0 && (b = 0)), b > 8 && (g > 0 && (g += 8 - b), b = 8), d === EXPONENT)
|
4296
|
+
return b;
|
4297
|
+
if (y === 0)
|
4298
|
+
C[0] = 0, k = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4299
4299
|
else {
|
4300
|
-
|
4301
|
-
const
|
4302
|
-
C[0] =
|
4300
|
+
M = y / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (M = M * 8, M >= T && b < 8 && (M = M / T, b++));
|
4301
|
+
const A = Math.pow(10, b > 0 ? n : 0);
|
4302
|
+
C[0] = w(M * A) / A, C[0] === T && b < 8 && E === -1 && (C[0] = 1, b++), k = C[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4303
4303
|
}
|
4304
|
-
if (
|
4305
|
-
const
|
4306
|
-
C[0] = `${P[0]}${
|
4304
|
+
if (I && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
|
4305
|
+
const A = o || PERIOD, P = C[0].toString().split(A), D = P[1] || EMPTY, N = D.length, V = n - N;
|
4306
|
+
C[0] = `${P[0]}${A}${D.padEnd(N + V, ZERO)}`;
|
4307
4307
|
}
|
4308
|
-
return
|
4308
|
+
return O && (C[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
|
4309
4309
|
value: C[0],
|
4310
4310
|
symbol: C[1],
|
4311
|
-
exponent:
|
4312
|
-
unit:
|
4311
|
+
exponent: b,
|
4312
|
+
unit: k
|
4313
4313
|
} : C.join(i);
|
4314
4314
|
}
|
4315
4315
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
@@ -5356,12 +5356,12 @@ function baseClone(e, t, r, a, n, s) {
|
|
5356
5356
|
return v;
|
5357
5357
|
s.set(e, l), isSet$1(e) ? e.forEach(function(g) {
|
5358
5358
|
l.add(baseClone(g, t, r, g, e, s));
|
5359
|
-
}) : isMap$1(e) && e.forEach(function(g,
|
5360
|
-
l.set(
|
5359
|
+
}) : isMap$1(e) && e.forEach(function(g, b) {
|
5360
|
+
l.set(b, baseClone(g, t, r, b, e, s));
|
5361
5361
|
});
|
5362
5362
|
var E = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys, m = u ? void 0 : E(e);
|
5363
|
-
return arrayEach(m || e, function(g,
|
5364
|
-
m && (
|
5363
|
+
return arrayEach(m || e, function(g, b) {
|
5364
|
+
m && (b = g, g = e[b]), assignValue(l, b, baseClone(g, t, r, b, e, s));
|
5365
5365
|
}), l;
|
5366
5366
|
}
|
5367
5367
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -5411,9 +5411,9 @@ function equalArrays(e, t, r, a, n, s) {
|
|
5411
5411
|
break;
|
5412
5412
|
}
|
5413
5413
|
if (v) {
|
5414
|
-
if (!arraySome(t, function(
|
5415
|
-
if (!cacheHas(v,
|
5416
|
-
return v.push(
|
5414
|
+
if (!arraySome(t, function(b, y) {
|
5415
|
+
if (!cacheHas(v, y) && (E === b || n(E, b, r, a, s)))
|
5416
|
+
return v.push(y);
|
5417
5417
|
})) {
|
5418
5418
|
p = !1;
|
5419
5419
|
break;
|
@@ -5490,18 +5490,18 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5490
5490
|
s.set(e, t), s.set(t, e);
|
5491
5491
|
for (var g = l; ++d < i; ) {
|
5492
5492
|
p = o[d];
|
5493
|
-
var
|
5493
|
+
var b = e[p], y = t[p];
|
5494
5494
|
if (a)
|
5495
|
-
var C = l ? a(
|
5496
|
-
if (!(C === void 0 ?
|
5495
|
+
var C = l ? a(y, b, p, t, e, s) : a(b, y, p, e, t, s);
|
5496
|
+
if (!(C === void 0 ? b === y || n(b, y, r, a, s) : C)) {
|
5497
5497
|
m = !1;
|
5498
5498
|
break;
|
5499
5499
|
}
|
5500
5500
|
g || (g = p == "constructor");
|
5501
5501
|
}
|
5502
5502
|
if (m && !g) {
|
5503
|
-
var
|
5504
|
-
|
5503
|
+
var M = e.constructor, k = t.constructor;
|
5504
|
+
M != k && "constructor" in e && "constructor" in t && !(typeof M == "function" && M instanceof M && typeof k == "function" && k instanceof k) && (m = !1);
|
5505
5505
|
}
|
5506
5506
|
return s.delete(e), s.delete(t), m;
|
5507
5507
|
}
|
@@ -5654,46 +5654,46 @@ function debounce(e, t, r) {
|
|
5654
5654
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5655
5655
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, p = "trailing" in r ? !!r.trailing : p);
|
5656
5656
|
function v(T) {
|
5657
|
-
var
|
5658
|
-
return a = n = void 0, c = T, l = e.apply(
|
5657
|
+
var O = a, I = n;
|
5658
|
+
return a = n = void 0, c = T, l = e.apply(I, O), l;
|
5659
5659
|
}
|
5660
5660
|
function E(T) {
|
5661
|
-
return c = T, o = setTimeout(
|
5661
|
+
return c = T, o = setTimeout(b, t), u ? v(T) : l;
|
5662
5662
|
}
|
5663
5663
|
function m(T) {
|
5664
|
-
var
|
5665
|
-
return d ? nativeMin$1(
|
5664
|
+
var O = T - i, I = T - c, w = t - O;
|
5665
|
+
return d ? nativeMin$1(w, s - I) : w;
|
5666
5666
|
}
|
5667
5667
|
function g(T) {
|
5668
|
-
var
|
5669
|
-
return i === void 0 ||
|
5668
|
+
var O = T - i, I = T - c;
|
5669
|
+
return i === void 0 || O >= t || O < 0 || d && I >= s;
|
5670
5670
|
}
|
5671
|
-
function
|
5671
|
+
function b() {
|
5672
5672
|
var T = now$1();
|
5673
5673
|
if (g(T))
|
5674
|
-
return
|
5675
|
-
o = setTimeout(
|
5674
|
+
return y(T);
|
5675
|
+
o = setTimeout(b, m(T));
|
5676
5676
|
}
|
5677
|
-
function
|
5677
|
+
function y(T) {
|
5678
5678
|
return o = void 0, p && a ? v(T) : (a = n = void 0, l);
|
5679
5679
|
}
|
5680
5680
|
function C() {
|
5681
5681
|
o !== void 0 && clearTimeout(o), c = 0, a = i = n = o = void 0;
|
5682
5682
|
}
|
5683
|
-
function
|
5684
|
-
return o === void 0 ? l :
|
5683
|
+
function M() {
|
5684
|
+
return o === void 0 ? l : y(now$1());
|
5685
5685
|
}
|
5686
|
-
function
|
5687
|
-
var T = now$1(),
|
5688
|
-
if (a = arguments, n = this, i = T,
|
5686
|
+
function k() {
|
5687
|
+
var T = now$1(), O = g(T);
|
5688
|
+
if (a = arguments, n = this, i = T, O) {
|
5689
5689
|
if (o === void 0)
|
5690
5690
|
return E(i);
|
5691
5691
|
if (d)
|
5692
|
-
return clearTimeout(o), o = setTimeout(
|
5692
|
+
return clearTimeout(o), o = setTimeout(b, t), v(i);
|
5693
5693
|
}
|
5694
|
-
return o === void 0 && (o = setTimeout(
|
5694
|
+
return o === void 0 && (o = setTimeout(b, t)), l;
|
5695
5695
|
}
|
5696
|
-
return
|
5696
|
+
return k.cancel = C, k.flush = M, k;
|
5697
5697
|
}
|
5698
5698
|
function isArrayLikeObject(e) {
|
5699
5699
|
return isObjectLike(e) && isArrayLike(e);
|
@@ -5985,6 +5985,10 @@ const without$1 = without, en = {
|
|
5985
5985
|
column: "Column",
|
5986
5986
|
config: "Config",
|
5987
5987
|
emptyText: "Too many data, please click the Query button to load.",
|
5988
|
+
rowHeight: "Row Height",
|
5989
|
+
rowHeightH: "High",
|
5990
|
+
rowHeightL: "Low",
|
5991
|
+
rowHeightM: "Medium",
|
5988
5992
|
"save-var-grid-master-as-success-message": "Copy Grid View Successfully.",
|
5989
5993
|
saveVarGridMaster: "Save Current Grid View",
|
5990
5994
|
saveVarGridMasterAs: "Save Current Grid View As ...",
|
@@ -6167,9 +6171,13 @@ const without$1 = without, en = {
|
|
6167
6171
|
},
|
6168
6172
|
KgTable: {
|
6169
6173
|
canNotUpdateSystemVarGridMaster: "\u7CFB\u7EDF\u89C6\u56FE\u4E0D\u5141\u8BB8\u88AB\u4FEE\u6539, \u5C06\u57FA\u4E8E\u5B83\u53E6\u5B58\u4E00\u4E2A\u65B0\u7684\u89C6\u56FE ?",
|
6170
|
-
column: "\
|
6174
|
+
column: "\u5B57\u6BB5",
|
6171
6175
|
config: "\u914D\u7F6E",
|
6172
6176
|
emptyText: "\u5F53\u524D\u6570\u636E\u91CF\u5927, \u8BF7\u70B9\u51FB\u67E5\u8BE2\u52A0\u8F7D\u6570\u636E.",
|
6177
|
+
rowHeight: "\u884C\u9AD8",
|
6178
|
+
rowHeightH: "\u9AD8",
|
6179
|
+
rowHeightL: "\u4F4E",
|
6180
|
+
rowHeightM: "\u4E2D",
|
6173
6181
|
"save-var-grid-master-as-success-message": "\u53E6\u5B58\u89C6\u56FE\u6210\u529F.",
|
6174
6182
|
saveVarGridMaster: "\u4FDD\u5B58\u5F53\u524D\u89C6\u56FE",
|
6175
6183
|
saveVarGridMasterAs: "\u53E6\u5B58\u5F53\u524D\u89C6\u56FE ...",
|
@@ -6403,7 +6411,7 @@ class KgUtil {
|
|
6403
6411
|
}
|
6404
6412
|
case (!!a && a.isDayjs(E)): {
|
6405
6413
|
const g = E;
|
6406
|
-
let
|
6414
|
+
let b = this.parseParamFromDayJS(d, g, r);
|
6407
6415
|
switch (m) {
|
6408
6416
|
case KG_DYNAMIC_QUERY_OPERATOR.NE:
|
6409
6417
|
break;
|
@@ -6417,45 +6425,45 @@ class KgUtil {
|
|
6417
6425
|
break;
|
6418
6426
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6419
6427
|
default: {
|
6420
|
-
let
|
6428
|
+
let y = b, C = "";
|
6421
6429
|
switch (!0) {
|
6422
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
6430
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(y): {
|
6423
6431
|
C = g.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
6424
6432
|
break;
|
6425
6433
|
}
|
6426
|
-
case /\d\d-\d\d-\d\d/.test(
|
6434
|
+
case /\d\d-\d\d-\d\d/.test(y): {
|
6427
6435
|
C = g.add(1, "day").format("YYYY-MM-DD");
|
6428
6436
|
break;
|
6429
6437
|
}
|
6430
|
-
case /\d\d:\d\d:\d\d/.test(
|
6431
|
-
|
6438
|
+
case /\d\d:\d\d:\d\d/.test(y): {
|
6439
|
+
y = g.format("1970-01-01 HH:mm:ss"), C = g.add(1, "second").format("1970-01-01 HH:mm:ss");
|
6432
6440
|
break;
|
6433
6441
|
}
|
6434
6442
|
}
|
6435
|
-
C ?
|
6443
|
+
C ? b = ` AND (${v}${d} >= '${y}' AND ${v}${d} < '${C}')` : b = ` AND (${v}${d} >= '${y}')`;
|
6436
6444
|
}
|
6437
6445
|
}
|
6438
|
-
s[d] =
|
6446
|
+
s[d] = b;
|
6439
6447
|
break;
|
6440
6448
|
}
|
6441
6449
|
case (!!a && isArray$1(E) && E.length === 2 && a.isDayjs(E[0]) && a.isDayjs(E[1])): {
|
6442
|
-
const g = E[0],
|
6443
|
-
let
|
6450
|
+
const g = E[0], b = E[1];
|
6451
|
+
let y = this.parseParamFromDayJS(d, g, r), C = "", M = "";
|
6444
6452
|
switch (!0) {
|
6445
|
-
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(
|
6446
|
-
C =
|
6453
|
+
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(y): {
|
6454
|
+
C = b.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
6447
6455
|
break;
|
6448
6456
|
}
|
6449
|
-
case /\d\d-\d\d-\d\d/.test(
|
6450
|
-
C =
|
6457
|
+
case /\d\d-\d\d-\d\d/.test(y): {
|
6458
|
+
C = b.add(1, "day").format("YYYY-MM-DD");
|
6451
6459
|
break;
|
6452
6460
|
}
|
6453
|
-
case /\d\d:\d\d:\d\d/.test(
|
6454
|
-
|
6461
|
+
case /\d\d:\d\d:\d\d/.test(y): {
|
6462
|
+
y = g.format("1970-01-01 HH:mm:ss"), C = b.add(1, "second").format("1970-01-01 HH:mm:ss");
|
6455
6463
|
break;
|
6456
6464
|
}
|
6457
6465
|
}
|
6458
|
-
C ?
|
6466
|
+
C ? M = ` AND (${v}${d} >= '${y}' AND ${v}${d} < '${C}')` : M = ` AND (${v}${d} >= '${y}')`, s[d] = M;
|
6459
6467
|
break;
|
6460
6468
|
}
|
6461
6469
|
case Array.isArray(E): {
|
@@ -6463,7 +6471,7 @@ class KgUtil {
|
|
6463
6471
|
s[d] = void 0;
|
6464
6472
|
break;
|
6465
6473
|
}
|
6466
|
-
const g = E.map((
|
6474
|
+
const g = E.map((b) => `'${String(b)}'`).join(", ");
|
6467
6475
|
s[d] = ` AND (${v}${d} IN (${g}))`;
|
6468
6476
|
break;
|
6469
6477
|
}
|
@@ -6781,21 +6789,21 @@ class KgRouteUtil {
|
|
6781
6789
|
throw new Error(`\u5730\u5740\u65E0\u6CD5\u5339\u914D\u6A21\u5757. \u5730\u5740: ${t}`);
|
6782
6790
|
}
|
6783
6791
|
static getAppIndexPath(t) {
|
6784
|
-
var n, s, l, o
|
6792
|
+
var n, s, l, o;
|
6785
6793
|
const r = useKg();
|
6786
6794
|
let a = "";
|
6787
6795
|
switch (t) {
|
6788
6796
|
case KG_APP.WMS_DATA_MANAGER:
|
6789
|
-
a = ((
|
6797
|
+
a = ((n = r.option.value.appIndex) == null ? void 0 : n[KG_APP.WMS_DATA_MANAGER]) || `${KG_APP_PREFIX.WMS_DATA_MANAGER}/index`;
|
6790
6798
|
break;
|
6791
6799
|
case KG_APP.WMS_BUSINESS_MANAGER:
|
6792
|
-
a = ((
|
6800
|
+
a = ((s = r.option.value.appIndex) == null ? void 0 : s[KG_APP.WMS_BUSINESS_MANAGER]) || `${KG_APP_PREFIX.WMS_BUSINESS_MANAGER}/index`;
|
6793
6801
|
break;
|
6794
6802
|
case KG_APP.WCS:
|
6795
|
-
a = ((
|
6803
|
+
a = ((l = r.option.value.appIndex) == null ? void 0 : l[KG_APP.WCS]) || `${KG_APP_PREFIX.WCS}/index`;
|
6796
6804
|
break;
|
6797
6805
|
case KG_APP.SYS:
|
6798
|
-
a = ((
|
6806
|
+
a = ((o = r.option.value.appIndex) == null ? void 0 : o[KG_APP.SYS]) || `${KG_APP_PREFIX.SYS}/index`;
|
6799
6807
|
break;
|
6800
6808
|
default:
|
6801
6809
|
throw new Error(`\u672A\u77E5\u6A21\u5757: ${t}`);
|
@@ -6841,18 +6849,18 @@ class KgVarUtil {
|
|
6841
6849
|
if (!u)
|
6842
6850
|
return i;
|
6843
6851
|
const d = (() => {
|
6844
|
-
const m = u.ctrl_typ, g = u.prf_ctrl_typ,
|
6852
|
+
const m = u.ctrl_typ, g = u.prf_ctrl_typ, b = u.crt_ctrl_typ, y = u.upt_ctrl_typ, C = u.cpy_ctrl_typ, M = u.del_ctrl_typ;
|
6845
6853
|
switch (s) {
|
6846
6854
|
case "R":
|
6847
6855
|
return g || m;
|
6848
6856
|
case "C":
|
6849
|
-
return y || m;
|
6850
|
-
case "U":
|
6851
6857
|
return b || m;
|
6858
|
+
case "U":
|
6859
|
+
return y || m;
|
6852
6860
|
case "CP":
|
6853
6861
|
return C || m;
|
6854
6862
|
case "D":
|
6855
|
-
return
|
6863
|
+
return M || m;
|
6856
6864
|
}
|
6857
6865
|
return m;
|
6858
6866
|
})();
|
@@ -6945,8 +6953,8 @@ class KgVarUtil {
|
|
6945
6953
|
const g = o.store.getVarPossibility(t, r);
|
6946
6954
|
switch (g == null ? void 0 : g.val_data_type) {
|
6947
6955
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6948
|
-
const
|
6949
|
-
if (
|
6956
|
+
const b = m.map((y) => Number(y));
|
6957
|
+
if (b.some((y) => Number.isNaN(b))) {
|
6950
6958
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6951
6959
|
frm_id: t,
|
6952
6960
|
var_nam: r,
|
@@ -6955,13 +6963,13 @@ class KgVarUtil {
|
|
6955
6963
|
});
|
6956
6964
|
return;
|
6957
6965
|
}
|
6958
|
-
return
|
6966
|
+
return b;
|
6959
6967
|
}
|
6960
6968
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6961
|
-
return m.map((
|
6969
|
+
return m.map((b) => Boolean(b));
|
6962
6970
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6963
6971
|
default:
|
6964
|
-
return m.map((
|
6972
|
+
return m.map((b) => String(b));
|
6965
6973
|
}
|
6966
6974
|
} catch {
|
6967
6975
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
@@ -7221,160 +7229,160 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7221
7229
|
const i = {
|
7222
7230
|
deep: !0
|
7223
7231
|
};
|
7224
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (
|
7225
|
-
c ? v =
|
7232
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (I) => {
|
7233
|
+
c ? v = I : c == !1 && !T._hotUpdating && (Array.isArray(v) ? v.push(I) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
7226
7234
|
});
|
7227
7235
|
let c, u, d = markRaw([]), p = markRaw([]), v;
|
7228
7236
|
const E = a.state.value[e];
|
7229
7237
|
!l && !E && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
7230
7238
|
const m = ref({});
|
7231
|
-
function g(
|
7232
|
-
let
|
7233
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
7239
|
+
function g(I) {
|
7240
|
+
let w;
|
7241
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof I == "function" ? (I(a.state.value[e]), w = {
|
7234
7242
|
type: MutationType.patchFunction,
|
7235
7243
|
storeId: e,
|
7236
7244
|
events: v
|
7237
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
7245
|
+
}) : (mergeReactiveObjects(a.state.value[e], I), w = {
|
7238
7246
|
type: MutationType.patchObject,
|
7239
|
-
payload:
|
7247
|
+
payload: I,
|
7240
7248
|
storeId: e,
|
7241
7249
|
events: v
|
7242
7250
|
}), nextTick().then(() => {
|
7243
7251
|
c = !0;
|
7244
|
-
}), u = !0, triggerSubscriptions(d,
|
7252
|
+
}), u = !0, triggerSubscriptions(d, w, a.state.value[e]);
|
7245
7253
|
}
|
7246
|
-
const
|
7254
|
+
const b = process.env.NODE_ENV !== "production" ? () => {
|
7247
7255
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
7248
7256
|
} : noop$1;
|
7249
|
-
function
|
7257
|
+
function y() {
|
7250
7258
|
s.stop(), d = [], p = [], a._s.delete(e);
|
7251
7259
|
}
|
7252
|
-
function C(
|
7260
|
+
function C(I, w) {
|
7253
7261
|
return function() {
|
7254
7262
|
setActivePinia(a);
|
7255
|
-
const
|
7263
|
+
const A = Array.from(arguments), P = [], D = [];
|
7256
7264
|
function N($) {
|
7257
7265
|
P.push($);
|
7258
7266
|
}
|
7259
|
-
function
|
7260
|
-
|
7267
|
+
function V($) {
|
7268
|
+
D.push($);
|
7261
7269
|
}
|
7262
7270
|
triggerSubscriptions(p, {
|
7263
|
-
args:
|
7264
|
-
name:
|
7271
|
+
args: A,
|
7272
|
+
name: I,
|
7265
7273
|
store: T,
|
7266
7274
|
after: N,
|
7267
|
-
onError:
|
7275
|
+
onError: V
|
7268
7276
|
});
|
7269
|
-
let
|
7277
|
+
let R;
|
7270
7278
|
try {
|
7271
|
-
|
7279
|
+
R = w.apply(this && this.$id === e ? this : T, A);
|
7272
7280
|
} catch ($) {
|
7273
|
-
throw triggerSubscriptions(
|
7281
|
+
throw triggerSubscriptions(D, $), $;
|
7274
7282
|
}
|
7275
|
-
return
|
7283
|
+
return R instanceof Promise ? R.then(($) => (triggerSubscriptions(P, $), $)).catch(($) => (triggerSubscriptions(D, $), Promise.reject($))) : (triggerSubscriptions(P, R), R);
|
7276
7284
|
};
|
7277
7285
|
}
|
7278
|
-
const
|
7286
|
+
const M = /* @__PURE__ */ markRaw({
|
7279
7287
|
actions: {},
|
7280
7288
|
getters: {},
|
7281
7289
|
state: [],
|
7282
7290
|
hotState: m
|
7283
|
-
}),
|
7291
|
+
}), k = {
|
7284
7292
|
_p: a,
|
7285
7293
|
$id: e,
|
7286
7294
|
$onAction: addSubscription.bind(null, p),
|
7287
7295
|
$patch: g,
|
7288
|
-
$reset:
|
7289
|
-
$subscribe(
|
7290
|
-
const
|
7291
|
-
(
|
7296
|
+
$reset: b,
|
7297
|
+
$subscribe(I, w = {}) {
|
7298
|
+
const A = addSubscription(d, I, w.detached, () => P()), P = s.run(() => watch(() => a.state.value[e], (D) => {
|
7299
|
+
(w.flush === "sync" ? u : c) && I({
|
7292
7300
|
storeId: e,
|
7293
7301
|
type: MutationType.direct,
|
7294
7302
|
events: v
|
7295
|
-
},
|
7296
|
-
}, assign$1({}, i,
|
7297
|
-
return
|
7303
|
+
}, D);
|
7304
|
+
}, assign$1({}, i, w)));
|
7305
|
+
return A;
|
7298
7306
|
},
|
7299
|
-
$dispose:
|
7307
|
+
$dispose: y
|
7300
7308
|
}, T = reactive(assign$1(
|
7301
7309
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
7302
7310
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
7303
|
-
_hmrPayload:
|
7311
|
+
_hmrPayload: M
|
7304
7312
|
} : {},
|
7305
|
-
|
7313
|
+
k
|
7306
7314
|
));
|
7307
7315
|
a._s.set(e, T);
|
7308
|
-
const
|
7309
|
-
for (const
|
7310
|
-
const
|
7311
|
-
if (isRef(
|
7312
|
-
process.env.NODE_ENV !== "production" && n ? set(m.value,
|
7313
|
-
else if (typeof
|
7314
|
-
const
|
7315
|
-
|
7316
|
+
const O = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
7317
|
+
for (const I in O) {
|
7318
|
+
const w = O[I];
|
7319
|
+
if (isRef(w) && !isComputed(w) || isReactive(w))
|
7320
|
+
process.env.NODE_ENV !== "production" && n ? set(m.value, I, toRef(O, I)) : l || (E && shouldHydrate(w) && (isRef(w) ? w.value = E[I] : mergeReactiveObjects(w, E[I])), a.state.value[e][I] = w), process.env.NODE_ENV !== "production" && M.state.push(I);
|
7321
|
+
else if (typeof w == "function") {
|
7322
|
+
const A = process.env.NODE_ENV !== "production" && n ? w : C(I, w);
|
7323
|
+
O[I] = A, process.env.NODE_ENV !== "production" && (M.actions[I] = w), o.actions[I] = w;
|
7316
7324
|
} else
|
7317
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
7325
|
+
process.env.NODE_ENV !== "production" && isComputed(w) && (M.getters[I] = l ? r.getters[I] : w, IS_CLIENT && (O._getters || (O._getters = markRaw([]))).push(I));
|
7318
7326
|
}
|
7319
|
-
if (assign$1(T,
|
7327
|
+
if (assign$1(T, O), assign$1(toRaw(T), O), Object.defineProperty(T, "$state", {
|
7320
7328
|
get: () => process.env.NODE_ENV !== "production" && n ? m.value : a.state.value[e],
|
7321
|
-
set: (
|
7329
|
+
set: (I) => {
|
7322
7330
|
if (process.env.NODE_ENV !== "production" && n)
|
7323
7331
|
throw new Error("cannot set hotState");
|
7324
|
-
g((
|
7325
|
-
assign$1(
|
7332
|
+
g((w) => {
|
7333
|
+
assign$1(w, I);
|
7326
7334
|
});
|
7327
7335
|
}
|
7328
7336
|
}), process.env.NODE_ENV !== "production") {
|
7329
|
-
T._hotUpdate = markRaw((
|
7330
|
-
T._hotUpdating = !0,
|
7331
|
-
if (
|
7332
|
-
const P =
|
7333
|
-
typeof P == "object" && isPlainObject(P) && isPlainObject(
|
7337
|
+
T._hotUpdate = markRaw((w) => {
|
7338
|
+
T._hotUpdating = !0, w._hmrPayload.state.forEach((A) => {
|
7339
|
+
if (A in T.$state) {
|
7340
|
+
const P = w.$state[A], D = T.$state[A];
|
7341
|
+
typeof P == "object" && isPlainObject(P) && isPlainObject(D) ? patchObject(P, D) : w.$state[A] = D;
|
7334
7342
|
}
|
7335
|
-
set(T,
|
7336
|
-
}), Object.keys(T.$state).forEach((
|
7337
|
-
|
7338
|
-
}), c = !1, u = !1, a.state.value[e] = toRef(
|
7343
|
+
set(T, A, toRef(w.$state, A));
|
7344
|
+
}), Object.keys(T.$state).forEach((A) => {
|
7345
|
+
A in w.$state || del(T, A);
|
7346
|
+
}), c = !1, u = !1, a.state.value[e] = toRef(w._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
7339
7347
|
c = !0;
|
7340
7348
|
});
|
7341
|
-
for (const
|
7342
|
-
const P =
|
7343
|
-
set(T,
|
7349
|
+
for (const A in w._hmrPayload.actions) {
|
7350
|
+
const P = w[A];
|
7351
|
+
set(T, A, C(A, P));
|
7344
7352
|
}
|
7345
|
-
for (const
|
7346
|
-
const P =
|
7347
|
-
set(T,
|
7353
|
+
for (const A in w._hmrPayload.getters) {
|
7354
|
+
const P = w._hmrPayload.getters[A], D = l ? computed(() => (setActivePinia(a), P.call(T, T))) : P;
|
7355
|
+
set(T, A, D);
|
7348
7356
|
}
|
7349
|
-
Object.keys(T._hmrPayload.getters).forEach((
|
7350
|
-
|
7351
|
-
}), Object.keys(T._hmrPayload.actions).forEach((
|
7352
|
-
|
7353
|
-
}), T._hmrPayload =
|
7357
|
+
Object.keys(T._hmrPayload.getters).forEach((A) => {
|
7358
|
+
A in w._hmrPayload.getters || del(T, A);
|
7359
|
+
}), Object.keys(T._hmrPayload.actions).forEach((A) => {
|
7360
|
+
A in w._hmrPayload.actions || del(T, A);
|
7361
|
+
}), T._hmrPayload = w._hmrPayload, T._getters = w._getters, T._hotUpdating = !1;
|
7354
7362
|
});
|
7355
|
-
const
|
7363
|
+
const I = {
|
7356
7364
|
writable: !0,
|
7357
7365
|
configurable: !0,
|
7358
7366
|
enumerable: !1
|
7359
7367
|
};
|
7360
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
7361
|
-
Object.defineProperty(T,
|
7362
|
-
value: T[
|
7363
|
-
...
|
7368
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
7369
|
+
Object.defineProperty(T, w, {
|
7370
|
+
value: T[w],
|
7371
|
+
...I
|
7364
7372
|
});
|
7365
7373
|
});
|
7366
7374
|
}
|
7367
|
-
return a._p.forEach((
|
7375
|
+
return a._p.forEach((I) => {
|
7368
7376
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
7369
|
-
const
|
7377
|
+
const w = s.run(() => I({
|
7370
7378
|
store: T,
|
7371
7379
|
app: a._a,
|
7372
7380
|
pinia: a,
|
7373
7381
|
options: o
|
7374
7382
|
}));
|
7375
|
-
Object.keys(
|
7383
|
+
Object.keys(w || {}).forEach((A) => T._customProperties.add(A)), assign$1(T, w);
|
7376
7384
|
} else
|
7377
|
-
assign$1(T, s.run(() =>
|
7385
|
+
assign$1(T, s.run(() => I({
|
7378
7386
|
store: T,
|
7379
7387
|
app: a._a,
|
7380
7388
|
pinia: a,
|
@@ -7430,7 +7438,8 @@ const useKgStore = (e) => (store$9 || (store$9 = defineStore("Kg", {
|
|
7430
7438
|
return this.useUserStore;
|
7431
7439
|
},
|
7432
7440
|
getOption() {
|
7433
|
-
|
7441
|
+
var t;
|
7442
|
+
return (t = this.option) != null ? t : {};
|
7434
7443
|
}
|
7435
7444
|
},
|
7436
7445
|
actions: {
|
@@ -7923,18 +7932,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7923
7932
|
slots: r
|
7924
7933
|
}) {
|
7925
7934
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
7926
|
-
const
|
7927
|
-
throw KgLogger.error(
|
7935
|
+
const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
7936
|
+
throw KgLogger.error(y, {
|
7928
7937
|
kgMaxHeight: e.kgMaxHeight,
|
7929
7938
|
kgMinHeight: e.kgMinHeight
|
7930
|
-
}), new Error(
|
7939
|
+
}), new Error(y);
|
7931
7940
|
}
|
7932
7941
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
7933
|
-
const
|
7934
|
-
throw KgLogger.error(
|
7942
|
+
const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
7943
|
+
throw KgLogger.error(y, {
|
7935
7944
|
kgMaxWidth: e.kgMaxWidth,
|
7936
7945
|
kgMinWidth: e.kgMinWidth
|
7937
|
-
}), new Error(
|
7946
|
+
}), new Error(y);
|
7938
7947
|
}
|
7939
7948
|
let a = 0, n = 0, s = 0, l = 0, o = {
|
7940
7949
|
remove: () => {
|
@@ -7957,22 +7966,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7957
7966
|
};
|
7958
7967
|
}
|
7959
7968
|
}), u = computed(() => {
|
7960
|
-
let
|
7961
|
-
switch (e.kgClass && (
|
7969
|
+
let y = "";
|
7970
|
+
switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
|
7962
7971
|
case "left":
|
7963
|
-
|
7972
|
+
y += " kg-resizable--left";
|
7964
7973
|
break;
|
7965
7974
|
case "right":
|
7966
|
-
|
7975
|
+
y += " kg-resizable--right";
|
7967
7976
|
break;
|
7968
7977
|
case "top":
|
7969
|
-
|
7978
|
+
y += " kg-resizable--top";
|
7970
7979
|
break;
|
7971
7980
|
case "bottom":
|
7972
|
-
|
7981
|
+
y += " kg-resizable--bottom";
|
7973
7982
|
break;
|
7974
7983
|
}
|
7975
|
-
return
|
7984
|
+
return y;
|
7976
7985
|
});
|
7977
7986
|
function d() {
|
7978
7987
|
o.remove(), i.remove();
|
@@ -7980,51 +7989,51 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7980
7989
|
onUnmounted(() => {
|
7981
7990
|
d();
|
7982
7991
|
});
|
7983
|
-
const p = (
|
7992
|
+
const p = (y) => {
|
7984
7993
|
switch (e.kgType) {
|
7985
7994
|
case "top":
|
7986
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
7995
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (y.pageY - l))));
|
7987
7996
|
break;
|
7988
7997
|
case "bottom":
|
7989
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
7998
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (y.pageY - l))));
|
7990
7999
|
break;
|
7991
8000
|
case "left":
|
7992
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
8001
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (y.pageX - s))));
|
7993
8002
|
break;
|
7994
8003
|
case "right":
|
7995
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
8004
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (y.pageX - s))));
|
7996
8005
|
break;
|
7997
8006
|
}
|
7998
8007
|
};
|
7999
|
-
function v(
|
8000
|
-
p(
|
8008
|
+
function v(y) {
|
8009
|
+
p(y);
|
8001
8010
|
}
|
8002
|
-
function E(
|
8003
|
-
p(
|
8011
|
+
function E(y) {
|
8012
|
+
p(y), d();
|
8004
8013
|
}
|
8005
|
-
function m(
|
8006
|
-
|
8014
|
+
function m(y) {
|
8015
|
+
y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (s = y.pageX, l = y.pageY, a = e.kgWidth, n = e.kgHeight, o = g(document.documentElement, "mousemove", v), i = g(document.documentElement, "mouseup", E));
|
8007
8016
|
}
|
8008
|
-
function g(
|
8009
|
-
return
|
8010
|
-
remove: () =>
|
8017
|
+
function g(y, C, M) {
|
8018
|
+
return y.addEventListener(C, M), {
|
8019
|
+
remove: () => y.removeEventListener(C, M)
|
8011
8020
|
};
|
8012
8021
|
}
|
8013
|
-
function y
|
8014
|
-
|
8022
|
+
function b(y) {
|
8023
|
+
y.stopPropagation(), y.preventDefault();
|
8015
8024
|
}
|
8016
8025
|
return () => {
|
8017
|
-
var
|
8026
|
+
var y;
|
8018
8027
|
return createVNode("div", {
|
8019
8028
|
class: u.value,
|
8020
8029
|
style: c.value
|
8021
8030
|
}, [createVNode("div", {
|
8022
8031
|
class: "kg-resizable-handle",
|
8023
|
-
onClick:
|
8032
|
+
onClick: b,
|
8024
8033
|
onMousedown: m
|
8025
8034
|
}, [createVNode("div", {
|
8026
8035
|
class: "kg-resizable-handle-line"
|
8027
|
-
}, null)]), (
|
8036
|
+
}, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
|
8028
8037
|
};
|
8029
8038
|
}
|
8030
8039
|
}), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
|
@@ -8179,8 +8188,8 @@ function createStore(e, t, r) {
|
|
8179
8188
|
var p = slice(arguments, 0), v = this;
|
8180
8189
|
function E() {
|
8181
8190
|
if (!!u)
|
8182
|
-
return each$6(arguments, function(g,
|
8183
|
-
p[
|
8191
|
+
return each$6(arguments, function(g, b) {
|
8192
|
+
p[b] = g;
|
8184
8193
|
}), u.apply(v, p);
|
8185
8194
|
}
|
8186
8195
|
var m = [E].concat(p);
|
@@ -9257,22 +9266,22 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9257
9266
|
varLookups: E,
|
9258
9267
|
varConfigs: m,
|
9259
9268
|
varVariableInputs: g,
|
9260
|
-
varPossibilities:
|
9261
|
-
varButtons:
|
9269
|
+
varPossibilities: b,
|
9270
|
+
varButtons: y,
|
9262
9271
|
varButtonConfig: C,
|
9263
|
-
varSubmitConfig:
|
9264
|
-
varSubmitFields:
|
9272
|
+
varSubmitConfig: M,
|
9273
|
+
varSubmitFields: k,
|
9265
9274
|
varProfile: T,
|
9266
|
-
varProfileConfig:
|
9267
|
-
varGrid:
|
9268
|
-
varGridConfig:
|
9275
|
+
varProfileConfig: O,
|
9276
|
+
varGrid: I,
|
9277
|
+
varGridConfig: w
|
9269
9278
|
} = await GetAll({ params: { frm_id: e } });
|
9270
|
-
this.varCatalogMap.set(e, v != null ? v : []), this.varLookupMap.set(e, E != null ? E : []), this.varPossibilityMap.set(e,
|
9279
|
+
this.varCatalogMap.set(e, v != null ? v : []), this.varLookupMap.set(e, E != null ? E : []), this.varPossibilityMap.set(e, b != null ? b : []), this.varVariableConfigMap.set(e, m != null ? m : []), this.varVariableInputMap.set(e, g != null ? g : []), this.varButtonMap.set(e, transformVarButtons(y)), this.varButtonConfigMap.set(e, transformVarButtonConfig(C != null ? C : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(M)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(k)), this.varProfileConfigMap.set(e, transformVarProfileConfig(O != null ? O : null)), this.varProfileMap.set(e, {
|
9271
9280
|
varProfile: T != null ? T : null,
|
9272
|
-
currentVarProfileMasterID: (l = (s = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((
|
9273
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
9274
|
-
varGrid: transformVarGridDTO(
|
9275
|
-
currentVarGridMasterID: (p = (d = ((o =
|
9281
|
+
currentVarProfileMasterID: (l = (s = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((A) => A.id === this.getCurrentVarProfileMasterID(e))) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((A) => A.def_flg === 1)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find((A) => A.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((n = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : n.find(() => !0))) == null ? void 0 : s.id) != null ? l : null
|
9282
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(w != null ? w : null)), this.varGridMap.set(e, {
|
9283
|
+
varGrid: transformVarGridDTO(I),
|
9284
|
+
currentVarGridMasterID: (p = (d = ((o = I == null ? void 0 : I.varGridMasters) == null ? void 0 : o.find((A) => A.id === this.getCurrentVarGridMasterID(e))) || ((i = I == null ? void 0 : I.varGridMasters) == null ? void 0 : i.find((A) => A.def_flg === 1)) || ((c = I == null ? void 0 : I.varGridMasters) == null ? void 0 : c.find((A) => A.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((u = I == null ? void 0 : I.varGridMasters) == null ? void 0 : u.find(() => !0))) == null ? void 0 : d.id) != null ? p : null
|
9276
9285
|
}), await Promise.all([
|
9277
9286
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
9278
9287
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
@@ -9482,7 +9491,7 @@ function useKgVar(e, t, r = 0) {
|
|
9482
9491
|
}), onUnmounted(() => {
|
9483
9492
|
u.dispose(c);
|
9484
9493
|
}));
|
9485
|
-
const d = (q) => computed(() => u.t(c, q)), p = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), E = computed(() => u.isRetrievingVarGridMaster(c)), m = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)),
|
9494
|
+
const d = (q) => computed(() => u.t(c, q)), p = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), E = computed(() => u.isRetrievingVarGridMaster(c)), m = computed(() => u.isRetrieved(c)), g = computed(() => u.isCreating(c)), b = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), M = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), T = computed(() => u.isDeleting(c)), O = computed(() => u.isDeletingRequesting(c)), I = computed(() => u.isOtherRequesting(c)), w = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), P = computed(() => u.getVarButtonCreate(c)), D = computed(() => u.getVarButtonUpdate(c)), N = computed(() => u.getVarButtonCopy(c)), V = computed(() => u.getVarButtonDelete(c)), R = computed(() => u.getVarProfileMasters(c)), $ = computed(() => u.getCurrentVarProfileMaster(c)), x = computed(() => u.getCurrentVarProfileMasterID(c)), F = computed(() => {
|
9486
9495
|
var q, ee;
|
9487
9496
|
return (ee = (q = $.value) == null ? void 0 : q.varProfileDetails) != null ? ee : null;
|
9488
9497
|
}), G = computed(() => u.getVarGridConfig(c)), L = computed(() => u.getVarGridMasters(c)), H = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -9494,21 +9503,21 @@ function useKgVar(e, t, r = 0) {
|
|
9494
9503
|
isRetrievingVarGridMaster: E,
|
9495
9504
|
isRetrieved: m,
|
9496
9505
|
isCreating: g,
|
9497
|
-
isCreatingRequesting:
|
9498
|
-
isUpdating:
|
9506
|
+
isCreatingRequesting: b,
|
9507
|
+
isUpdating: y,
|
9499
9508
|
isUpdatingRequesting: C,
|
9500
|
-
isCopying:
|
9501
|
-
isCopyingRequesting:
|
9509
|
+
isCopying: M,
|
9510
|
+
isCopyingRequesting: k,
|
9502
9511
|
isDeleting: T,
|
9503
|
-
isDeletingRequesting:
|
9504
|
-
isOtherRequesting:
|
9505
|
-
varButtons:
|
9506
|
-
varButtonSearch:
|
9512
|
+
isDeletingRequesting: O,
|
9513
|
+
isOtherRequesting: I,
|
9514
|
+
varButtons: w,
|
9515
|
+
varButtonSearch: A,
|
9507
9516
|
varButtonCreate: P,
|
9508
|
-
varButtonUpdate:
|
9517
|
+
varButtonUpdate: D,
|
9509
9518
|
varButtonCopy: N,
|
9510
|
-
varButtonDelete:
|
9511
|
-
varProfileMasters:
|
9519
|
+
varButtonDelete: V,
|
9520
|
+
varProfileMasters: R,
|
9512
9521
|
currentVarProfileMaster: $,
|
9513
9522
|
currentVarProfileMasterID: x,
|
9514
9523
|
currentVarProfileDetails: F,
|
@@ -9540,38 +9549,38 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9540
9549
|
}) {
|
9541
9550
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
9542
9551
|
const r = useKgVar(), a = useKgSearch(r.formID), n = useKgButton(r.formID), s = useKgSubmit(r.formID), l = useKgTable(r.formID), o = computed(() => r.store.getVarProfileConfig(r.formID)), i = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => r.store.getVarGridConfig(r.formID)), u = computed(() => r.store.getVarSubmitConfig(r.formID)), d = computed(() => {
|
9543
|
-
var
|
9552
|
+
var y, C, M, k;
|
9544
9553
|
switch (!0) {
|
9545
9554
|
case r.isCreating.value:
|
9546
|
-
return ((
|
9555
|
+
return ((y = u.value) == null ? void 0 : y.crt_flg) !== 0;
|
9547
9556
|
case r.isUpdating.value:
|
9548
9557
|
return ((C = u.value) == null ? void 0 : C.upt_flg) !== 0;
|
9549
9558
|
case r.isCopying.value:
|
9550
|
-
return ((
|
9559
|
+
return ((M = u.value) == null ? void 0 : M.cpy_flg) !== 0;
|
9551
9560
|
case r.isDeleting.value:
|
9552
|
-
return ((
|
9561
|
+
return ((k = u.value) == null ? void 0 : k.del_flg) !== 0;
|
9553
9562
|
}
|
9554
9563
|
return !1;
|
9555
9564
|
}), p = computed(() => {
|
9556
|
-
var
|
9557
|
-
return r.isRetrieved.value && ((
|
9565
|
+
var y;
|
9566
|
+
return r.isRetrieved.value && ((y = o.value) == null ? void 0 : y.available_flg) !== 0;
|
9558
9567
|
}), v = computed(() => {
|
9559
|
-
var
|
9560
|
-
return r.isRetrieved.value && ((
|
9568
|
+
var y;
|
9569
|
+
return r.isRetrieved.value && ((y = i.value) == null ? void 0 : y.available_flg) !== 0;
|
9561
9570
|
}), E = computed(() => {
|
9562
|
-
var
|
9563
|
-
return r.isRetrieved.value && ((
|
9571
|
+
var y;
|
9572
|
+
return r.isRetrieved.value && ((y = c.value) == null ? void 0 : y.available_flg) !== 0;
|
9564
9573
|
}), m = computed(() => !!r.isOtherRequesting.value), g = computed(() => {
|
9565
|
-
let
|
9566
|
-
return e.KgBackgroundGray && (
|
9574
|
+
let y = "kg-var";
|
9575
|
+
return e.KgBackgroundGray && (y += " kg-var--bg-gray"), !p.value && !v.value && !E.value && (y += " kg-var--empty"), y;
|
9567
9576
|
});
|
9568
|
-
function
|
9577
|
+
function b() {
|
9569
9578
|
return createVNode(Spin, {
|
9570
9579
|
spinning: m.value
|
9571
9580
|
}, {
|
9572
9581
|
default: () => {
|
9573
|
-
var
|
9574
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), v.value && createVNode(KgButton, null, null), E.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (C = (
|
9582
|
+
var y, C;
|
9583
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), v.value && createVNode(KgButton, null, null), E.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (C = (y = e.kgSlots) == null ? void 0 : y.afterKgTable) == null ? void 0 : C.call(y)]), d.value && createVNode(KgSubmit, null, null)])];
|
9575
9584
|
}
|
9576
9585
|
});
|
9577
9586
|
}
|
@@ -9579,7 +9588,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9579
9588
|
a.store.dispose(r.formID), n.store.dispose(r.formID), l.store.dispose(r.formID), s.store.dispose(r.formID);
|
9580
9589
|
}), () => createVNode("div", {
|
9581
9590
|
class: g.value
|
9582
|
-
}, [
|
9591
|
+
}, [b()]);
|
9583
9592
|
}
|
9584
9593
|
}), KgForm_Item_Addon_Lookup = "", KgForm_Item_Addon_Lookup_Modal = "", getProps$u = () => ({
|
9585
9594
|
visible: Boolean,
|
@@ -9596,53 +9605,53 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9596
9605
|
var g;
|
9597
9606
|
return ((g = d == null ? void 0 : d.value) == null ? void 0 : g.mult_flg) === 1;
|
9598
9607
|
}), v = computed(() => {
|
9599
|
-
var g,
|
9600
|
-
return (
|
9608
|
+
var g, b;
|
9609
|
+
return (b = (g = d == null ? void 0 : d.value) == null ? void 0 : g.ret_fld) != null ? b : "";
|
9601
9610
|
});
|
9602
9611
|
u.onRowDoubleClick(async () => (await m(), !1));
|
9603
9612
|
function E() {
|
9604
9613
|
r("update:visible", !1);
|
9605
9614
|
}
|
9606
9615
|
async function m() {
|
9607
|
-
var g,
|
9616
|
+
var g, b, y, C, M, k, T;
|
9608
9617
|
if (p.value) {
|
9609
|
-
const
|
9618
|
+
const O = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], I = (y = O.map((A) => A[v.value])) != null ? y : [];
|
9610
9619
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9611
9620
|
var_nam: l,
|
9612
9621
|
isMultiple: !0,
|
9613
|
-
values:
|
9614
|
-
rows:
|
9622
|
+
values: I,
|
9623
|
+
rows: O
|
9615
9624
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9616
9625
|
var_nam: l,
|
9617
9626
|
model: i,
|
9618
9627
|
isMultiple: !0,
|
9619
|
-
values:
|
9620
|
-
rows:
|
9628
|
+
values: I,
|
9629
|
+
rows: O
|
9621
9630
|
}), r("update:visible", !1));
|
9622
9631
|
} else {
|
9623
|
-
const
|
9632
|
+
const O = (k = (M = (C = u.selectedRows) == null ? void 0 : C.value) == null ? void 0 : M[0]) != null ? k : null, I = (T = O == null ? void 0 : O[v.value]) != null ? T : "";
|
9624
9633
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9625
9634
|
var_nam: l,
|
9626
9635
|
isMultiple: !1,
|
9627
|
-
value:
|
9628
|
-
row:
|
9636
|
+
value: I,
|
9637
|
+
row: O
|
9629
9638
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9630
9639
|
var_nam: l,
|
9631
9640
|
model: i,
|
9632
9641
|
isMultiple: !1,
|
9633
|
-
value:
|
9634
|
-
row:
|
9642
|
+
value: I,
|
9643
|
+
row: O
|
9635
9644
|
}), r("update:visible", !1));
|
9636
9645
|
}
|
9637
9646
|
}
|
9638
9647
|
return () => {
|
9639
|
-
var g,
|
9648
|
+
var g, b;
|
9640
9649
|
return createVNode(KgModal, {
|
9641
9650
|
visible: e.visible,
|
9642
9651
|
title: n.t(l).value,
|
9643
9652
|
destroyOnClose: !0,
|
9644
9653
|
okButtonProps: {
|
9645
|
-
disabled: ((
|
9654
|
+
disabled: ((b = (g = u.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0
|
9646
9655
|
},
|
9647
9656
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
9648
9657
|
onCancel: E,
|
@@ -9740,7 +9749,7 @@ function _useRules(e) {
|
|
9740
9749
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), s = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
9741
9750
|
return {
|
9742
9751
|
rules: computed(() => {
|
9743
|
-
var i, c, u, d, p, v, E, m, g,
|
9752
|
+
var i, c, u, d, p, v, E, m, g, b;
|
9744
9753
|
let o = [];
|
9745
9754
|
switch (e.kgContext) {
|
9746
9755
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9781,17 +9790,17 @@ function _useRules(e) {
|
|
9781
9790
|
switch ((v = n.value) == null ? void 0 : v.data_type) {
|
9782
9791
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9783
9792
|
{
|
9784
|
-
const
|
9785
|
-
isNil(
|
9786
|
-
validator: (
|
9793
|
+
const y = (E = n.value) == null ? void 0 : E.min;
|
9794
|
+
isNil(y) || (((m = n.value) == null ? void 0 : m.min_include_flg) === 1 ? o.push({
|
9795
|
+
validator: (M, k) => k == null || k === "" || typeof k == "string" && k.trim() === "" ? Promise.resolve() : Number(k) < y ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [y])) : Promise.resolve()
|
9787
9796
|
}) : o.push({
|
9788
|
-
validator: (
|
9797
|
+
validator: (M, k) => k == null || k === "" || typeof k == "string" && k.trim() === "" ? Promise.resolve() : Number(k) <= y ? Promise.reject(t.t("kg.KgFormItem.mustGT", [y])) : Promise.resolve()
|
9789
9798
|
}));
|
9790
9799
|
const C = (g = n.value) == null ? void 0 : g.max;
|
9791
|
-
isNil(C) || (((
|
9792
|
-
validator: (
|
9800
|
+
isNil(C) || (((b = n.value) == null ? void 0 : b.max_include_flg) === 1 ? o.push({
|
9801
|
+
validator: (M, k) => k == null || k === "" || typeof k == "string" && k.trim() === "" ? Promise.resolve() : Number(k) > C ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [C])) : Promise.resolve()
|
9793
9802
|
}) : o.push({
|
9794
|
-
validator: (
|
9803
|
+
validator: (M, k) => k == null || k === "" || typeof k == "string" && k.trim() === "" ? Promise.resolve() : Number(k) >= C ? Promise.reject(t.t("kg.KgFormItem.mustLT", [C])) : Promise.resolve()
|
9795
9804
|
}));
|
9796
9805
|
}
|
9797
9806
|
break;
|
@@ -9802,8 +9811,8 @@ function _useRules(e) {
|
|
9802
9811
|
}
|
9803
9812
|
function useKgFormItem(e) {
|
9804
9813
|
const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
|
9805
|
-
var v, E, m, g,
|
9806
|
-
const o = ((v = n.value) == null ? void 0 : v.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (E = n.value) == null ? void 0 : E.prf_ctrl_typ, c = (m = n.value) == null ? void 0 : m.crt_ctrl_typ, u = (g = n.value) == null ? void 0 : g.upt_ctrl_typ, d = (
|
9814
|
+
var v, E, m, g, b, y;
|
9815
|
+
const o = ((v = n.value) == null ? void 0 : v.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, i = (E = n.value) == null ? void 0 : E.prf_ctrl_typ, c = (m = n.value) == null ? void 0 : m.crt_ctrl_typ, u = (g = n.value) == null ? void 0 : g.upt_ctrl_typ, d = (b = n.value) == null ? void 0 : b.cpy_ctrl_typ, p = (y = n.value) == null ? void 0 : y.del_ctrl_typ;
|
9807
9816
|
switch (r) {
|
9808
9817
|
case KG_FORM_CONTEXT.SEARCH:
|
9809
9818
|
return i || o;
|
@@ -9821,9 +9830,9 @@ function useKgFormItem(e) {
|
|
9821
9830
|
}
|
9822
9831
|
return o;
|
9823
9832
|
}), l = computed(() => {
|
9824
|
-
var E, m, g,
|
9833
|
+
var E, m, g, b, y, C;
|
9825
9834
|
let o;
|
9826
|
-
const i = (E = n.value) == null ? void 0 : E.ctrl_prop, c = (m = n.value) == null ? void 0 : m.prf_ctrl_prop, u = (g = n.value) == null ? void 0 : g.crt_ctrl_prop, d = (
|
9835
|
+
const i = (E = n.value) == null ? void 0 : E.ctrl_prop, c = (m = n.value) == null ? void 0 : m.prf_ctrl_prop, u = (g = n.value) == null ? void 0 : g.crt_ctrl_prop, d = (b = n.value) == null ? void 0 : b.upt_ctrl_prop, p = (y = n.value) == null ? void 0 : y.cpy_ctrl_prop, v = (C = n.value) == null ? void 0 : C.del_ctrl_prop;
|
9827
9836
|
switch (r) {
|
9828
9837
|
case KG_FORM_CONTEXT.SEARCH:
|
9829
9838
|
o = c || i;
|
@@ -9865,36 +9874,36 @@ function useKgFormItemSelect() {
|
|
9865
9874
|
var E;
|
9866
9875
|
let v = KgVarUtil.parseCommandParameter((E = a.value) == null ? void 0 : E.cmd_prm);
|
9867
9876
|
return v = mapValues(v, (m) => {
|
9868
|
-
var
|
9877
|
+
var b, y;
|
9869
9878
|
let g = m;
|
9870
9879
|
if (typeof m == "string" && m.startsWith("{") && m.endsWith("}")) {
|
9871
|
-
let C = m.slice(1, -1),
|
9880
|
+
let C = m.slice(1, -1), M = "";
|
9872
9881
|
if (C.includes(".")) {
|
9873
|
-
const
|
9874
|
-
C =
|
9882
|
+
const k = C.split(".");
|
9883
|
+
C = k[0], M = k[1];
|
9875
9884
|
}
|
9876
|
-
t.value && C in t.value && (
|
9885
|
+
t.value && C in t.value && (M ? g = (y = (b = t.value[`${C}_obj`]) == null ? void 0 : b[M]) != null ? y : void 0 : g = t.value[C], g || (g = "__kg__form_item_select__pid"));
|
9877
9886
|
}
|
9878
9887
|
return g;
|
9879
9888
|
}), v;
|
9880
9889
|
});
|
9881
9890
|
async function d() {
|
9882
|
-
var C,
|
9891
|
+
var C, M, k, T, O, I, w, A;
|
9883
9892
|
let v = [];
|
9884
|
-
const E = (C = a.value) == null ? void 0 : C.cmd, m = (
|
9885
|
-
if (!E || !g || !
|
9893
|
+
const E = (C = a.value) == null ? void 0 : C.cmd, m = (k = (M = a.value) == null ? void 0 : M.cmd_method) != null ? k : "GET", g = (O = (T = a.value) == null ? void 0 : T.val_clm) != null ? O : "", b = (w = (I = a.value) == null ? void 0 : I.lbl_clm) != null ? w : "";
|
9894
|
+
if (!E || !g || !b) {
|
9886
9895
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9887
9896
|
frm_id: r.formID,
|
9888
9897
|
var_nam: e,
|
9889
9898
|
cmd: E,
|
9890
9899
|
val_clm: g,
|
9891
|
-
lbl_clm:
|
9900
|
+
lbl_clm: b
|
9892
9901
|
});
|
9893
9902
|
return;
|
9894
9903
|
}
|
9895
|
-
let
|
9904
|
+
let y = null;
|
9896
9905
|
try {
|
9897
|
-
l.value = !0,
|
9906
|
+
l.value = !0, y = await ((A = httpClient()) == null ? void 0 : A.request({
|
9898
9907
|
url: E,
|
9899
9908
|
method: m,
|
9900
9909
|
params: u.value
|
@@ -9903,70 +9912,70 @@ function useKgFormItemSelect() {
|
|
9903
9912
|
} finally {
|
9904
9913
|
l.value = !1;
|
9905
9914
|
}
|
9906
|
-
if (!isObjectLike(
|
9915
|
+
if (!isObjectLike(y))
|
9907
9916
|
v = [];
|
9908
9917
|
else
|
9909
9918
|
switch (!0) {
|
9910
|
-
case isArrayLike(
|
9911
|
-
v = p(
|
9919
|
+
case isArrayLike(y):
|
9920
|
+
v = p(y);
|
9912
9921
|
break;
|
9913
|
-
case (
|
9914
|
-
v = p(
|
9922
|
+
case (y && "total" in y && "records" in y):
|
9923
|
+
v = p(y.records);
|
9915
9924
|
break;
|
9916
9925
|
}
|
9917
9926
|
if (v.length > 0) {
|
9918
9927
|
const P = v[0];
|
9919
|
-
(!(g in P) || !(
|
9928
|
+
(!(g in P) || !(b in P)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9920
9929
|
frm_id: r.formID,
|
9921
9930
|
var_nam: e,
|
9922
9931
|
cmd: E,
|
9923
9932
|
val_clm: g,
|
9924
|
-
lbl_clm:
|
9933
|
+
lbl_clm: b,
|
9925
9934
|
\u6240\u6709\u5217: Object.keys(P)
|
9926
9935
|
});
|
9927
9936
|
}
|
9928
9937
|
o.value = v;
|
9929
9938
|
}
|
9930
9939
|
function p(v) {
|
9931
|
-
var g,
|
9940
|
+
var g, b, y, C, M;
|
9932
9941
|
if (!v)
|
9933
9942
|
return [];
|
9934
|
-
const E = (
|
9943
|
+
const E = (b = (g = a.value) == null ? void 0 : g.val_clm) != null ? b : "", m = (C = (y = a.value) == null ? void 0 : y.val_data_type) != null ? C : "string";
|
9935
9944
|
switch (m) {
|
9936
9945
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9937
|
-
v.forEach((
|
9938
|
-
|
9946
|
+
v.forEach((k) => {
|
9947
|
+
k[E] = String(k[E]);
|
9939
9948
|
});
|
9940
9949
|
break;
|
9941
9950
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9942
|
-
v.forEach((
|
9943
|
-
let T = Number(
|
9944
|
-
Number.isNaN(T) && (T =
|
9951
|
+
v.forEach((k) => {
|
9952
|
+
let T = Number(k[E]);
|
9953
|
+
Number.isNaN(T) && (T = k[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[E]} \u8F6C\u6362\u4E3A ${m} \u7C7B\u578B`, {
|
9945
9954
|
frm_id: r.formID,
|
9946
9955
|
var_nam: e,
|
9947
9956
|
VarPossibility: a.value
|
9948
|
-
})),
|
9957
|
+
})), k[E] = T;
|
9949
9958
|
});
|
9950
9959
|
break;
|
9951
9960
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9952
|
-
v.forEach((
|
9961
|
+
v.forEach((k) => {
|
9953
9962
|
let T;
|
9954
|
-
String(
|
9963
|
+
String(k[E]).toLowerCase() === "true" ? T = !0 : String(k[E]).toLowerCase() === "false" ? T = !1 : (T = k[E], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[E]} \u8F6C\u6362\u4E3A ${m} \u7C7B\u578B`, {
|
9955
9964
|
frm_id: r.formID,
|
9956
9965
|
var_nam: e,
|
9957
9966
|
VarPossibility: a.value
|
9958
|
-
})),
|
9967
|
+
})), k[E] = T;
|
9959
9968
|
});
|
9960
9969
|
break;
|
9961
9970
|
}
|
9962
9971
|
switch (n.value) {
|
9963
9972
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9964
9973
|
{
|
9965
|
-
const
|
9966
|
-
if ((
|
9974
|
+
const k = s;
|
9975
|
+
if ((M = k.value) != null && M.excludeValues)
|
9967
9976
|
return v.filter((T) => {
|
9968
|
-
var
|
9969
|
-
return !((
|
9977
|
+
var O;
|
9978
|
+
return !((O = k.value.excludeValues) != null && O.includes(T[E]));
|
9970
9979
|
});
|
9971
9980
|
}
|
9972
9981
|
break;
|
@@ -10006,20 +10015,20 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10006
10015
|
} = useKgFormItemSelect(), d = ref(!1), p = ref(!1);
|
10007
10016
|
watch(o, () => v(), {
|
10008
10017
|
immediate: !0
|
10009
|
-
}), watch([() => e.value, c], ([g,
|
10010
|
-
const
|
10011
|
-
if (
|
10012
|
-
const C = intersection$1(g,
|
10013
|
-
if (C.length <
|
10018
|
+
}), watch([() => e.value, c], ([g, b]) => {
|
10019
|
+
const y = get(g, "length", 0);
|
10020
|
+
if (y > 0 && b.length > 0) {
|
10021
|
+
const C = intersection$1(g, b == null ? void 0 : b.map((M) => M[i.value]));
|
10022
|
+
if (C.length < y) {
|
10014
10023
|
r("update:value", C);
|
10015
10024
|
return;
|
10016
10025
|
}
|
10017
10026
|
}
|
10018
10027
|
switch (!0) {
|
10019
|
-
case (
|
10028
|
+
case (y > 0 && y === b.length):
|
10020
10029
|
d.value = !0, p.value = !1;
|
10021
10030
|
break;
|
10022
|
-
case (
|
10031
|
+
case (y > 0 && y !== b.length):
|
10023
10032
|
d.value = !1, p.value = !0;
|
10024
10033
|
break;
|
10025
10034
|
default:
|
@@ -10030,24 +10039,24 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10030
10039
|
immediate: !0
|
10031
10040
|
});
|
10032
10041
|
async function v() {
|
10033
|
-
var g,
|
10034
|
-
!((g = l.value) != null && g.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
10042
|
+
var g, b;
|
10043
|
+
!((g = l.value) != null && g.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((b = c.value) == null ? void 0 : b.map((y) => y[i.value]), e.value)));
|
10035
10044
|
}
|
10036
10045
|
function E(g) {
|
10037
|
-
var
|
10038
|
-
g.target.checked ? m((
|
10046
|
+
var b, y, C;
|
10047
|
+
g.target.checked ? m((y = (b = c.value) == null ? void 0 : b.map((M) => M[i.value])) != null ? y : []) : m([]), p.value = !1, (C = n.value) == null || C.validate(e.kgVarName);
|
10039
10048
|
}
|
10040
10049
|
function m(g) {
|
10041
10050
|
r("update:value", g), r("kgChange", g);
|
10042
10051
|
}
|
10043
10052
|
return () => {
|
10044
|
-
let g,
|
10053
|
+
let g, b;
|
10045
10054
|
return createVNode("div", {
|
10046
10055
|
class: "kg-form-item-checkbox-group"
|
10047
10056
|
}, [createVNode(Form.ItemRest, null, {
|
10048
10057
|
default: () => [createVNode(Checkbox, {
|
10049
10058
|
checked: d.value,
|
10050
|
-
"onUpdate:checked": (
|
10059
|
+
"onUpdate:checked": (y) => d.value = y,
|
10051
10060
|
indeterminate: p.value,
|
10052
10061
|
onChange: E
|
10053
10062
|
}, _isSlot$b(g = a.t("kg.selectAll")) ? g : {
|
@@ -10059,23 +10068,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10059
10068
|
}, {
|
10060
10069
|
default: () => [createVNode(Row, {
|
10061
10070
|
gutter: 12
|
10062
|
-
}, _isSlot$b(
|
10063
|
-
var C,
|
10071
|
+
}, _isSlot$b(b = c.value.map((y) => {
|
10072
|
+
var C, M;
|
10064
10073
|
return createVNode(Col, {
|
10065
|
-
span: (
|
10074
|
+
span: (M = (C = s.value) == null ? void 0 : C.span) != null ? M : 24
|
10066
10075
|
}, {
|
10067
10076
|
default: () => [createVNode(Checkbox, {
|
10068
|
-
value:
|
10069
|
-
"kg-value":
|
10077
|
+
value: y[i.value],
|
10078
|
+
"kg-value": y[i.value]
|
10070
10079
|
}, {
|
10071
10080
|
default: () => {
|
10072
|
-
var
|
10073
|
-
return [
|
10081
|
+
var k, T;
|
10082
|
+
return [y[(T = (k = l.value) == null ? void 0 : k.lbl_clm) != null ? T : ""]];
|
10074
10083
|
}
|
10075
10084
|
})]
|
10076
10085
|
});
|
10077
|
-
})) ?
|
10078
|
-
default: () => [
|
10086
|
+
})) ? b : {
|
10087
|
+
default: () => [b]
|
10079
10088
|
})]
|
10080
10089
|
})]);
|
10081
10090
|
};
|
@@ -10276,22 +10285,22 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10276
10285
|
switch (await p(), r("kgSelectDatasChange", d.value), e.kgMode) {
|
10277
10286
|
case "multiple": {
|
10278
10287
|
if (Array.isArray(e.value)) {
|
10279
|
-
const
|
10280
|
-
|
10288
|
+
const b = e.value.filter((y) => d.value.find((C) => C[i.value] === y));
|
10289
|
+
b.length > 0 ? r("update:value", b) : r("update:value", []);
|
10281
10290
|
}
|
10282
10291
|
break;
|
10283
10292
|
}
|
10284
10293
|
default:
|
10285
|
-
d.value.find((
|
10294
|
+
d.value.find((b) => b[i.value] === e.value) || r("update:value", void 0);
|
10286
10295
|
break;
|
10287
10296
|
}
|
10288
10297
|
}
|
10289
10298
|
function E(g) {
|
10290
|
-
var
|
10299
|
+
var b, y;
|
10291
10300
|
switch (e.kgMode) {
|
10292
10301
|
case "multiple": {
|
10293
10302
|
if (Array.isArray(g)) {
|
10294
|
-
const C = (
|
10303
|
+
const C = (b = toRaw(d.value.filter((M) => g.includes(M[i.value])))) != null ? b : null;
|
10295
10304
|
r("kgSelectChange", C), s.store.emit(s.formID, "selectChange", {
|
10296
10305
|
var_nam: e.kgVarName,
|
10297
10306
|
rows: C
|
@@ -10300,7 +10309,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10300
10309
|
break;
|
10301
10310
|
}
|
10302
10311
|
default: {
|
10303
|
-
const C = (
|
10312
|
+
const C = (y = toRaw(d.value.find((M) => M[i.value] === g))) != null ? y : null;
|
10304
10313
|
r("kgSelectChange", C), s.store.emit(s.formID, "selectChange", {
|
10305
10314
|
var_nam: e.kgVarName,
|
10306
10315
|
rows: C
|
@@ -10325,7 +10334,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10325
10334
|
placeholder: e.kgPlaceholder,
|
10326
10335
|
showArrow: !0,
|
10327
10336
|
showSearch: !0,
|
10328
|
-
filterOption: (
|
10337
|
+
filterOption: (b, y) => (y == null ? void 0 : y.value) !== null && (y == null ? void 0 : y.value) !== void 0 && String(y.value).toLowerCase().includes(b.toLowerCase()) || (y == null ? void 0 : y.label) !== null && (y == null ? void 0 : y.label) !== void 0 && String(y.label).toLowerCase().includes(b.toLowerCase()),
|
10329
10338
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
10330
10339
|
class: "kg-form-item-select",
|
10331
10340
|
onChange: E,
|
@@ -10334,13 +10343,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10334
10343
|
"kg-val_clm": i.value,
|
10335
10344
|
"kg-lbl_clm": c.value
|
10336
10345
|
}, {
|
10337
|
-
default: () => d.value.map((
|
10338
|
-
title:
|
10339
|
-
"kg-value":
|
10340
|
-
value:
|
10341
|
-
label:
|
10346
|
+
default: () => d.value.map((b) => createVNode(Select.Option, {
|
10347
|
+
title: b[c.value],
|
10348
|
+
"kg-value": b[i.value],
|
10349
|
+
value: b[i.value],
|
10350
|
+
label: b[c.value]
|
10342
10351
|
}, {
|
10343
|
-
default: () => [
|
10352
|
+
default: () => [b[c.value]]
|
10344
10353
|
})),
|
10345
10354
|
notFoundContent: () => u.value ? createVNode("span", null, [n.t("kg.loading")]) : createVNode("span", null, [n.t("kg.empty")]),
|
10346
10355
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -10407,16 +10416,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10407
10416
|
useKg();
|
10408
10417
|
const s = useKgVar(), l = useKgForm(s.formID), o = useKgSearch(s.formID);
|
10409
10418
|
l.onLookupOk(async ({
|
10410
|
-
var_nam:
|
10419
|
+
var_nam: A,
|
10411
10420
|
model: P,
|
10412
|
-
isMultiple:
|
10421
|
+
isMultiple: D,
|
10413
10422
|
value: N,
|
10414
|
-
values:
|
10423
|
+
values: V
|
10415
10424
|
}) => {
|
10416
|
-
var
|
10417
|
-
switch (
|
10425
|
+
var R;
|
10426
|
+
switch (A) {
|
10418
10427
|
case e.kgVarName:
|
10419
|
-
P.value && (
|
10428
|
+
P.value && (D ? P.value[e.kgVarName] = V : P.value[e.kgVarName] = N), (R = n.value) == null || R.validate([e.kgVarName]);
|
10420
10429
|
break;
|
10421
10430
|
}
|
10422
10431
|
return !1;
|
@@ -10426,121 +10435,121 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10426
10435
|
} = _useRules(e), {
|
10427
10436
|
controlType: v
|
10428
10437
|
} = useKgFormItem(e), E = computed(() => {
|
10429
|
-
var P,
|
10438
|
+
var P, D, N, V, R;
|
10430
10439
|
if (s.isRetrieving.value)
|
10431
10440
|
return !0;
|
10432
|
-
let
|
10441
|
+
let A = !1;
|
10433
10442
|
if (e.kgDisabled !== void 0)
|
10434
|
-
|
10443
|
+
A = e.kgDisabled;
|
10435
10444
|
else
|
10436
10445
|
switch (e.kgContext) {
|
10437
10446
|
case KG_FORM_CONTEXT.SEARCH:
|
10438
|
-
|
10447
|
+
A = ((P = u.value) == null ? void 0 : P.ena_flg) === 0;
|
10439
10448
|
break;
|
10440
10449
|
case KG_FORM_CONTEXT.SUBMIT:
|
10441
10450
|
switch (!0) {
|
10442
10451
|
case s.isCreating.value:
|
10443
|
-
|
10452
|
+
A = ((D = d.value) == null ? void 0 : D.crt_ena_flg) === 0;
|
10444
10453
|
break;
|
10445
10454
|
case s.isUpdating.value:
|
10446
|
-
|
10455
|
+
A = ((N = d.value) == null ? void 0 : N.upt_ena_flg) === 0;
|
10447
10456
|
break;
|
10448
10457
|
case s.isCopying.value:
|
10449
|
-
|
10458
|
+
A = ((V = d.value) == null ? void 0 : V.cpy_ena_flg) === 0;
|
10450
10459
|
break;
|
10451
10460
|
case s.isDeleting.value:
|
10452
|
-
|
10461
|
+
A = ((R = d.value) == null ? void 0 : R.del_ena_flg) === 0;
|
10453
10462
|
break;
|
10454
10463
|
}
|
10455
10464
|
break;
|
10456
10465
|
}
|
10457
|
-
return
|
10466
|
+
return A;
|
10458
10467
|
}), m = computed(() => {
|
10459
|
-
var P,
|
10460
|
-
let
|
10468
|
+
var P, D, N, V;
|
10469
|
+
let A = " ";
|
10461
10470
|
if (e.kgPlaceholder)
|
10462
|
-
|
10471
|
+
A = e.kgPlaceholder;
|
10463
10472
|
else
|
10464
10473
|
switch (e.kgContext) {
|
10465
10474
|
case KG_FORM_CONTEXT.SEARCH:
|
10466
|
-
|
10475
|
+
A = s.t((D = (P = u.value) == null ? void 0 : P.placeholder) != null ? D : " ").value;
|
10467
10476
|
break;
|
10468
10477
|
case KG_FORM_CONTEXT.SUBMIT:
|
10469
|
-
|
10478
|
+
A = s.t((V = (N = d.value) == null ? void 0 : N.placeholder) != null ? V : " ").value;
|
10470
10479
|
break;
|
10471
10480
|
}
|
10472
|
-
return
|
10481
|
+
return A;
|
10473
10482
|
}), g = computed(() => {
|
10474
|
-
var P,
|
10475
|
-
let
|
10483
|
+
var P, D, N, V, R, $, x, F, G, L;
|
10484
|
+
let A = 6;
|
10476
10485
|
if (e.kgSpan !== void 0)
|
10477
|
-
|
10486
|
+
A = e.kgSpan;
|
10478
10487
|
else
|
10479
10488
|
switch (e.kgContext) {
|
10480
10489
|
case KG_FORM_CONTEXT.SEARCH:
|
10481
|
-
|
10490
|
+
A = (D = (P = u.value) == null ? void 0 : P.width) != null ? D : 6;
|
10482
10491
|
break;
|
10483
10492
|
case KG_FORM_CONTEXT.SUBMIT:
|
10484
10493
|
switch (!0) {
|
10485
10494
|
case s.isCreating.value:
|
10486
|
-
|
10495
|
+
A = (V = (N = d.value) == null ? void 0 : N.crt_width) != null ? V : 6;
|
10487
10496
|
break;
|
10488
10497
|
case s.isUpdating.value:
|
10489
|
-
|
10498
|
+
A = ($ = (R = d.value) == null ? void 0 : R.upt_width) != null ? $ : 6;
|
10490
10499
|
break;
|
10491
10500
|
case s.isCopying.value:
|
10492
|
-
|
10501
|
+
A = (F = (x = d.value) == null ? void 0 : x.cpy_width) != null ? F : 6;
|
10493
10502
|
break;
|
10494
10503
|
case s.isDeleting.value:
|
10495
|
-
|
10504
|
+
A = (L = (G = d.value) == null ? void 0 : G.del_width) != null ? L : 6;
|
10496
10505
|
break;
|
10497
10506
|
}
|
10498
10507
|
}
|
10499
|
-
return Math.min(24, Math.max(1,
|
10500
|
-
}),
|
10501
|
-
var N,
|
10502
|
-
const
|
10503
|
-
if (
|
10508
|
+
return Math.min(24, Math.max(1, A));
|
10509
|
+
}), b = computed(() => {
|
10510
|
+
var N, V;
|
10511
|
+
const A = get(k.value, "$el.parentElement");
|
10512
|
+
if (A && !((N = A.classList) != null && N.contains("ant-row")))
|
10504
10513
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
10505
10514
|
let P = {};
|
10506
|
-
const
|
10507
|
-
return Number.isNaN(
|
10508
|
-
paddingLeft: `${
|
10509
|
-
paddingRight: `${
|
10515
|
+
const D = Math.abs(Number.parseInt((V = get(k.value, "$el.parentElement.style.marginLeft")) != null ? V : "0px"));
|
10516
|
+
return Number.isNaN(D) || (P = {
|
10517
|
+
paddingLeft: `${D}px !important`,
|
10518
|
+
paddingRight: `${D}px !important`
|
10510
10519
|
}), P;
|
10511
|
-
}),
|
10512
|
-
var P,
|
10513
|
-
let
|
10514
|
-
switch (i.value && (
|
10520
|
+
}), y = computed(() => {
|
10521
|
+
var P, D, N, V;
|
10522
|
+
let A = "kg-form-item";
|
10523
|
+
switch (i.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
10515
10524
|
case KG_FORM_CONTEXT.SEARCH:
|
10516
10525
|
switch (!0) {
|
10517
10526
|
case ((P = u.value) == null ? void 0 : P.vis_flg) === 0:
|
10518
|
-
|
10527
|
+
A += " kg-form-item--invisible";
|
10519
10528
|
break;
|
10520
10529
|
}
|
10521
10530
|
break;
|
10522
10531
|
case KG_FORM_CONTEXT.SUBMIT:
|
10523
10532
|
switch (!0) {
|
10524
|
-
case (s.isCreating.value && ((
|
10533
|
+
case (s.isCreating.value && ((D = d.value) == null ? void 0 : D.crt_vis_flg) === 0):
|
10525
10534
|
case (s.isUpdating.value && ((N = d.value) == null ? void 0 : N.upt_vis_flg) === 0):
|
10526
|
-
case (s.isCopying.value && ((
|
10527
|
-
|
10535
|
+
case (s.isCopying.value && ((V = d.value) == null ? void 0 : V.cpy_vis_flg) === 0):
|
10536
|
+
A += " kg-form-item--invisible";
|
10528
10537
|
break;
|
10529
10538
|
}
|
10530
10539
|
break;
|
10531
10540
|
}
|
10532
|
-
return
|
10541
|
+
return A;
|
10533
10542
|
}), C = computed(() => {
|
10534
10543
|
var P;
|
10535
|
-
const
|
10544
|
+
const A = {
|
10536
10545
|
...e,
|
10537
10546
|
value: (P = a.value) == null ? void 0 : P[e.kgVarName],
|
10538
|
-
"onUpdate:value": (
|
10539
|
-
a.value && (a.value[e.kgVarName] =
|
10547
|
+
"onUpdate:value": (D) => {
|
10548
|
+
a.value && (a.value[e.kgVarName] = D);
|
10540
10549
|
},
|
10541
10550
|
kgPlaceholder: m.value,
|
10542
10551
|
kgDisabled: E.value,
|
10543
|
-
id:
|
10552
|
+
id: M.value
|
10544
10553
|
};
|
10545
10554
|
switch (v.value) {
|
10546
10555
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10548,34 +10557,34 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10548
10557
|
case KG_FORM_ITEM_TYPE.SELECT:
|
10549
10558
|
break;
|
10550
10559
|
case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
|
10551
|
-
|
10560
|
+
A.kgMode = "multiple";
|
10552
10561
|
break;
|
10553
10562
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10554
10563
|
break;
|
10555
10564
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10556
|
-
|
10565
|
+
A.kgShowTime = !1;
|
10557
10566
|
break;
|
10558
10567
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10559
|
-
|
10568
|
+
A.kgShowTime = !1;
|
10560
10569
|
break;
|
10561
10570
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10562
|
-
|
10571
|
+
A.kgPicker = "time";
|
10563
10572
|
break;
|
10564
10573
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10565
|
-
|
10574
|
+
A.kgPicker = "time";
|
10566
10575
|
break;
|
10567
10576
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10568
|
-
|
10577
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10569
10578
|
break;
|
10570
10579
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10571
|
-
|
10580
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10572
10581
|
break;
|
10573
10582
|
}
|
10574
|
-
return
|
10575
|
-
}),
|
10583
|
+
return A;
|
10584
|
+
}), M = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), k = ref(null);
|
10576
10585
|
function T() {
|
10577
10586
|
if (t.control) {
|
10578
|
-
const
|
10587
|
+
const A = {
|
10579
10588
|
frm_id: s.formID,
|
10580
10589
|
varName: e.kgVarName,
|
10581
10590
|
props: C,
|
@@ -10584,7 +10593,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10584
10593
|
varProfileDetail: u,
|
10585
10594
|
varSubmitField: d
|
10586
10595
|
};
|
10587
|
-
return t.control(
|
10596
|
+
return t.control(A);
|
10588
10597
|
}
|
10589
10598
|
switch (v.value) {
|
10590
10599
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10619,16 +10628,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10619
10628
|
return createVNode(KgFormItemInput, C.value, null);
|
10620
10629
|
}
|
10621
10630
|
}
|
10622
|
-
function
|
10623
|
-
var
|
10624
|
-
return ((
|
10631
|
+
function O() {
|
10632
|
+
var A;
|
10633
|
+
return ((A = s.currentVarProfileMaster.value) == null ? void 0 : A.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
10625
10634
|
default: () => {
|
10626
10635
|
var P;
|
10627
10636
|
return [createVNode(Select, {
|
10628
10637
|
value: (P = o.operatorModel.value) == null ? void 0 : P[e.kgVarName],
|
10629
|
-
"onUpdate:value": (
|
10638
|
+
"onUpdate:value": (D) => {
|
10630
10639
|
o.store.patchOperatorModel(s.formID, {
|
10631
|
-
[e.kgVarName]:
|
10640
|
+
[e.kgVarName]: D
|
10632
10641
|
});
|
10633
10642
|
},
|
10634
10643
|
disabled: E.value,
|
@@ -10636,8 +10645,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10636
10645
|
dropdownClassName: "kg-form-item-operator-select-dropdown"
|
10637
10646
|
}, {
|
10638
10647
|
default: () => {
|
10639
|
-
var
|
10640
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((
|
10648
|
+
var D;
|
10649
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((D = v.value) != null ? D : "");
|
10641
10650
|
},
|
10642
10651
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
10643
10652
|
class: "ant-select-suffix"
|
@@ -10646,14 +10655,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10646
10655
|
}
|
10647
10656
|
});
|
10648
10657
|
}
|
10649
|
-
function
|
10658
|
+
function I() {
|
10650
10659
|
return e.kgShowLabel ? createVNode("span", {
|
10651
10660
|
title: s.t(e.kgVarName).value
|
10652
10661
|
}, [s.t(e.kgVarName).value]) : null;
|
10653
10662
|
}
|
10654
|
-
function
|
10655
|
-
var
|
10656
|
-
return !i.value || !((
|
10663
|
+
function w() {
|
10664
|
+
var A;
|
10665
|
+
return !i.value || !((A = i.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10657
10666
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
10658
10667
|
kgDisabled: E.value,
|
10659
10668
|
kgLookupID: i.value.lkp_id
|
@@ -10661,25 +10670,25 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10661
10670
|
});
|
10662
10671
|
}
|
10663
10672
|
return () => {
|
10664
|
-
var
|
10673
|
+
var A, P;
|
10665
10674
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10666
|
-
ref:
|
10675
|
+
ref: k,
|
10667
10676
|
span: g.value,
|
10668
|
-
class:
|
10669
|
-
style:
|
10677
|
+
class: y.value,
|
10678
|
+
style: b.value,
|
10670
10679
|
"kg-frm_id": s.formID,
|
10671
10680
|
"kg-var_nam": e.kgVarName,
|
10672
|
-
"kg-lkp_id": (
|
10681
|
+
"kg-lkp_id": (A = i.value) == null ? void 0 : A.lkp_id,
|
10673
10682
|
"kg-ret_fld": (P = i.value) == null ? void 0 : P.ret_fld
|
10674
10683
|
}, {
|
10675
10684
|
default: () => [createVNode(Form.Item, {
|
10676
10685
|
name: e.kgVarName,
|
10677
10686
|
rules: p.value,
|
10678
10687
|
validateFirst: !0,
|
10679
|
-
htmlFor:
|
10688
|
+
htmlFor: M.value
|
10680
10689
|
}, {
|
10681
|
-
default: () => createVNode(Fragment, null, [
|
10682
|
-
label: () =>
|
10690
|
+
default: () => createVNode(Fragment, null, [O(), T(), w()]),
|
10691
|
+
label: () => I()
|
10683
10692
|
})]
|
10684
10693
|
});
|
10685
10694
|
};
|
@@ -11042,9 +11051,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
11042
11051
|
}).bind(null, pinia())), store$5);
|
11043
11052
|
function useKgSubmit(e) {
|
11044
11053
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
11045
|
-
var g,
|
11054
|
+
var g, b, y, C, M;
|
11046
11055
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
11047
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (g = a.value) == null ? void 0 : g.display_type, p = (
|
11056
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (g = a.value) == null ? void 0 : g.display_type, p = (b = a.value) == null ? void 0 : b.crt_display_type, v = (y = a.value) == null ? void 0 : y.upt_display_type, E = (C = a.value) == null ? void 0 : C.cpy_display_type, m = (M = a.value) == null ? void 0 : M.del_display_type;
|
11048
11057
|
switch (!0) {
|
11049
11058
|
case (t.isCreating.value && (p === c || !p && d === c)):
|
11050
11059
|
i = c;
|
@@ -11116,8 +11125,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11116
11125
|
}) => {
|
11117
11126
|
const u = s.store.getVarSubmitConfig(s.formID);
|
11118
11127
|
return o = watch(c, (d) => {
|
11119
|
-
var p, v, E, m, g,
|
11120
|
-
d && (d.id = (p = u == null ? void 0 : u.id) != null ? p : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (E = u == null ? void 0 : u.fullscreen_flg) != null ? E : 1, d.dft_fullscreen_flg = (m = u == null ? void 0 : u.dft_fullscreen_flg) != null ? m : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (
|
11128
|
+
var p, v, E, m, g, b, y, C, M, k, T, O;
|
11129
|
+
d && (d.id = (p = u == null ? void 0 : u.id) != null ? p : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (E = u == null ? void 0 : u.fullscreen_flg) != null ? E : 1, d.dft_fullscreen_flg = (m = u == null ? void 0 : u.dft_fullscreen_flg) != null ? m : 0, d.responsive_flg = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (y = u == null ? void 0 : u.min_width) != null ? y : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (M = u == null ? void 0 : u.layout) != null ? M : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (k = u == null ? void 0 : u.label_col) != null ? k : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (O = u == null ? void 0 : u.display_type) != null ? O : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
11121
11130
|
}, {
|
11122
11131
|
immediate: !0
|
11123
11132
|
}), KgUtil.hideLoading(), !1;
|
@@ -11167,8 +11176,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11167
11176
|
r("kgCancel");
|
11168
11177
|
}
|
11169
11178
|
function E() {
|
11170
|
-
var
|
11171
|
-
return e.kgShowFullscreenButton === !1 || ((
|
11179
|
+
var b;
|
11180
|
+
return e.kgShowFullscreenButton === !1 || ((b = o.value) == null ? void 0 : b.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
11172
11181
|
onClick: d,
|
11173
11182
|
class: "kg-submit--btn-fullscreen"
|
11174
11183
|
}, {
|
@@ -11220,20 +11229,20 @@ function _useFormModel$1() {
|
|
11220
11229
|
}
|
11221
11230
|
const d = r.selectedRow.value;
|
11222
11231
|
u.forEach((p) => {
|
11223
|
-
var E, m, g,
|
11232
|
+
var E, m, g, b, y, C, M, k;
|
11224
11233
|
const v = (E = p.var_nam) != null ? E : "";
|
11225
11234
|
switch (c.value[v] = void 0, !0) {
|
11226
11235
|
case t.isCreating.value:
|
11227
11236
|
c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (m = p.crt_dft_val) != null ? m : void 0, "C");
|
11228
11237
|
break;
|
11229
11238
|
case t.isUpdating.value:
|
11230
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (
|
11239
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (b = (g = p.upt_dft_val) != null ? g : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
|
11231
11240
|
break;
|
11232
11241
|
case t.isCopying.value:
|
11233
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (C = (
|
11242
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (C = (y = p.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
|
11234
11243
|
break;
|
11235
11244
|
case t.isDeleting.value:
|
11236
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (
|
11245
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (k = (M = p.del_dft_val) != null ? M : d == null ? void 0 : d[v]) != null ? k : void 0, "D");
|
11237
11246
|
break;
|
11238
11247
|
}
|
11239
11248
|
}), a.store.setModel(t.formID, c.value);
|
@@ -11382,7 +11391,7 @@ const getProps$p = () => ({
|
|
11382
11391
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11383
11392
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11384
11393
|
l.onSubmitSave(async () => (await z(), !1)), l.onSubmitCancel(async () => (await B(), !1)), _useFormModel$1();
|
11385
|
-
const u = computed(() => s.isDeleting.value &&
|
11394
|
+
const u = computed(() => s.isDeleting.value && A.value.length === 0 && D.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), p = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), A = computed(() => {
|
11386
11395
|
var U, W, J;
|
11387
11396
|
switch (!0) {
|
11388
11397
|
case s.isCreating.value:
|
@@ -11390,7 +11399,7 @@ const getProps$p = () => ({
|
|
11390
11399
|
case s.isUpdating.value:
|
11391
11400
|
return (W = m.value) != null ? W : [];
|
11392
11401
|
case s.isCopying.value:
|
11393
|
-
return (J =
|
11402
|
+
return (J = b.value) != null ? J : [];
|
11394
11403
|
case s.isDeleting.value:
|
11395
11404
|
return [];
|
11396
11405
|
}
|
@@ -11401,14 +11410,14 @@ const getProps$p = () => ({
|
|
11401
11410
|
case s.isCreating.value:
|
11402
11411
|
return (U = C.value) != null ? U : [];
|
11403
11412
|
case s.isUpdating.value:
|
11404
|
-
return (W =
|
11413
|
+
return (W = k.value) != null ? W : [];
|
11405
11414
|
case s.isCopying.value:
|
11406
|
-
return (J =
|
11415
|
+
return (J = O.value) != null ? J : [];
|
11407
11416
|
case s.isDeleting.value:
|
11408
11417
|
return [];
|
11409
11418
|
}
|
11410
11419
|
return [];
|
11411
|
-
}),
|
11420
|
+
}), D = computed(() => {
|
11412
11421
|
var U, W, J, re;
|
11413
11422
|
switch (!0) {
|
11414
11423
|
case s.isCreating.value:
|
@@ -11416,25 +11425,25 @@ const getProps$p = () => ({
|
|
11416
11425
|
case s.isUpdating.value:
|
11417
11426
|
return (W = g.value) != null ? W : [];
|
11418
11427
|
case s.isCopying.value:
|
11419
|
-
return (J =
|
11428
|
+
return (J = y.value) != null ? J : [];
|
11420
11429
|
case s.isDeleting.value:
|
11421
|
-
return (re =
|
11430
|
+
return (re = w.value) != null ? re : [];
|
11422
11431
|
}
|
11423
11432
|
return [];
|
11424
11433
|
}), N = computed(() => {
|
11425
11434
|
var U, W, J, re;
|
11426
11435
|
switch (!0) {
|
11427
11436
|
case s.isCreating.value:
|
11428
|
-
return (U =
|
11437
|
+
return (U = M.value) != null ? U : [];
|
11429
11438
|
case s.isUpdating.value:
|
11430
11439
|
return (W = T.value) != null ? W : [];
|
11431
11440
|
case s.isCopying.value:
|
11432
|
-
return (J =
|
11441
|
+
return (J = I.value) != null ? J : [];
|
11433
11442
|
case s.isDeleting.value:
|
11434
|
-
return (re =
|
11443
|
+
return (re = w.value) != null ? re : [];
|
11435
11444
|
}
|
11436
11445
|
return [];
|
11437
|
-
}),
|
11446
|
+
}), V = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), R = computed(() => V.value || d.value), $ = computed(() => d.value), x = ref({
|
11438
11447
|
kgWidth: 0
|
11439
11448
|
}), F = computed(() => {
|
11440
11449
|
var U;
|
@@ -11735,8 +11744,8 @@ const getProps$p = () => ({
|
|
11735
11744
|
let Ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (J = s.varButtonDelete.value) == null ? void 0 : J.cmd_prm) != null ? re : ""), s.formID, r)), Te = ref((oe = o.selectedRows.value) != null ? oe : []);
|
11736
11745
|
if (((le = s.varButtonDelete.value) == null ? void 0 : le.del_param_clm) !== "__kg__new_delete_param" && (Ee = ref({
|
11737
11746
|
ids: (ne = (de = o.selectedRows.value) == null ? void 0 : de.map((Ie) => {
|
11738
|
-
var ke,
|
11739
|
-
return (
|
11747
|
+
var ke, Me, Ae;
|
11748
|
+
return (Ae = Ie[(Me = (ke = s.varButtonDelete.value) == null ? void 0 : ke.del_param_clm) != null ? Me : "id"]) != null ? Ae : "";
|
11740
11749
|
})) != null ? ne : []
|
11741
11750
|
}), Te = ref({})), await i.store.emit(s.formID, "beforeRequest", {
|
11742
11751
|
isCreating: s.isCreating.value,
|
@@ -11829,13 +11838,13 @@ const getProps$p = () => ({
|
|
11829
11838
|
}, {
|
11830
11839
|
default: () => [createVNode("div", {
|
11831
11840
|
ref: Q
|
11832
|
-
}, [
|
11841
|
+
}, [A.value.length > 0 && createVNode(Row, {
|
11833
11842
|
gutter: 12
|
11834
|
-
}, _isSlot$9(U =
|
11843
|
+
}, _isSlot$9(U = A.value.map(ie)) ? U : {
|
11835
11844
|
default: () => [U]
|
11836
|
-
}), P.value.length > 0 && N.value.length > 0 && createVNode(Divider, null, null),
|
11845
|
+
}), P.value.length > 0 && N.value.length > 0 && createVNode(Divider, null, null), D.value.length > 0 && createVNode(Row, {
|
11837
11846
|
gutter: 12
|
11838
|
-
}, _isSlot$9(W =
|
11847
|
+
}, _isSlot$9(W = D.value.map(ie)) ? W : {
|
11839
11848
|
default: () => [W]
|
11840
11849
|
}), u.value && createVNode("div", {
|
11841
11850
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -11848,15 +11857,15 @@ const getProps$p = () => ({
|
|
11848
11857
|
let U, W;
|
11849
11858
|
return createVNode("div", null, [createVNode(Button, {
|
11850
11859
|
type: "primary",
|
11851
|
-
ghost: !
|
11852
|
-
disabled:
|
11860
|
+
ghost: !R.value,
|
11861
|
+
disabled: R.value,
|
11853
11862
|
onClick: B
|
11854
11863
|
}, _isSlot$9(U = n.t("kg.cancel")) ? U : {
|
11855
11864
|
default: () => [U]
|
11856
11865
|
}), createVNode(Button, {
|
11857
11866
|
type: "primary",
|
11858
11867
|
disabled: $.value,
|
11859
|
-
loading:
|
11868
|
+
loading: V.value,
|
11860
11869
|
danger: !!s.isDeleting.value,
|
11861
11870
|
onClick: z
|
11862
11871
|
}, _isSlot$9(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
|
@@ -11928,6 +11937,7 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
11928
11937
|
isRetrievedMap: /* @__PURE__ */ new Map(),
|
11929
11938
|
isRetrievingMap: /* @__PURE__ */ new Map(),
|
11930
11939
|
tableWidthMap: /* @__PURE__ */ new Map(),
|
11940
|
+
rowHeightMap: /* @__PURE__ */ new Map(),
|
11931
11941
|
onReadyListenersMap: /* @__PURE__ */ new Map(),
|
11932
11942
|
rowDoubleClickListenersMap: /* @__PURE__ */ new Map(),
|
11933
11943
|
beforeRetrieveListenersMap: /* @__PURE__ */ new Map(),
|
@@ -11990,6 +12000,12 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
11990
12000
|
var r;
|
11991
12001
|
return t ? (r = e.tableWidthMap.get(t)) != null ? r : null : (KgLogger.error("formID \u4E3A\u7A7A."), null);
|
11992
12002
|
};
|
12003
|
+
},
|
12004
|
+
getRowHeight(e) {
|
12005
|
+
return (t) => {
|
12006
|
+
var r;
|
12007
|
+
return t ? (r = e.rowHeightMap.get(t)) != null ? r : "M" : (KgLogger.error("formID \u4E3A\u7A7A."), "M");
|
12008
|
+
};
|
11993
12009
|
}
|
11994
12010
|
},
|
11995
12011
|
actions: {
|
@@ -12165,6 +12181,13 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
12165
12181
|
}
|
12166
12182
|
this.tableWidthMap.set(e, unref(t));
|
12167
12183
|
},
|
12184
|
+
setRowHeight(e, t) {
|
12185
|
+
if (!e) {
|
12186
|
+
KgLogger.error("formID \u4E3A\u7A7A.");
|
12187
|
+
return;
|
12188
|
+
}
|
12189
|
+
this.rowHeightMap.set(e, unref(t));
|
12190
|
+
},
|
12168
12191
|
clearDatas(e) {
|
12169
12192
|
}
|
12170
12193
|
}
|
@@ -12177,17 +12200,17 @@ function useKgTable(e) {
|
|
12177
12200
|
var g;
|
12178
12201
|
return ((g = t.varGridConfig.value) == null ? void 0 : g.aut_load_flg) === 1;
|
12179
12202
|
}), u = computed(() => {
|
12180
|
-
var g,
|
12181
|
-
return !!((g = t.varGridConfig.value) != null && g.id) && ((
|
12203
|
+
var g, b;
|
12204
|
+
return !!((g = t.varGridConfig.value) != null && g.id) && ((b = t.varGridConfig.value) == null ? void 0 : b.show_bottom_left_flg) !== 0;
|
12182
12205
|
}), d = computed(() => {
|
12183
|
-
var g,
|
12184
|
-
return !!((g = t.varGridConfig.value) != null && g.id) && ((
|
12206
|
+
var g, b;
|
12207
|
+
return !!((g = t.varGridConfig.value) != null && g.id) && ((b = t.varGridConfig.value) == null ? void 0 : b.show_bottom_right_flg) !== 0;
|
12185
12208
|
}), p = computed(() => {
|
12186
|
-
var g,
|
12187
|
-
return (
|
12209
|
+
var g, b;
|
12210
|
+
return (b = (g = t.varGridConfig.value) == null ? void 0 : g.id_clm) != null ? b : "id";
|
12188
12211
|
}), v = computed(() => {
|
12189
|
-
var g,
|
12190
|
-
return JSON.parse((
|
12212
|
+
var g, b;
|
12213
|
+
return JSON.parse((b = (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opts) != null ? b : "[]");
|
12191
12214
|
}), E = computed(() => {
|
12192
12215
|
var g;
|
12193
12216
|
return (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opt;
|
@@ -12237,53 +12260,53 @@ const getProps$n = () => ({
|
|
12237
12260
|
}) {
|
12238
12261
|
const a = useKg(), n = useKgVar(), s = useKgButton(), l = useKgSubmit(), o = useKgTable();
|
12239
12262
|
s.onSubmitSave(async () => {
|
12240
|
-
var
|
12263
|
+
var M;
|
12241
12264
|
try {
|
12242
|
-
await ((
|
12243
|
-
} catch (
|
12244
|
-
KgUtil.throwIfNotFormError(
|
12265
|
+
await ((M = E.value) == null ? void 0 : M.validate());
|
12266
|
+
} catch (k) {
|
12267
|
+
KgUtil.throwIfNotFormError(k);
|
12245
12268
|
}
|
12246
12269
|
return !1;
|
12247
12270
|
});
|
12248
12271
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
12249
|
-
var
|
12250
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((
|
12272
|
+
var M, k, T, O, I, w;
|
12273
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((M = e.kgRow) == null ? void 0 : M[o.id.value]) === ((k = o.selectedRow.value) == null ? void 0 : k[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && ((O = c.value) == null ? void 0 : O.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((w = c.value) == null ? void 0 : w.del_flg) === 1);
|
12251
12274
|
}), d = computed(() => {
|
12252
|
-
var
|
12253
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((
|
12275
|
+
var M, k;
|
12276
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((M = e.kgRow) == null ? void 0 : M[o.id.value]) === ((k = o.selectedRow.value) == null ? void 0 : k[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
12254
12277
|
}), p = computed(() => {
|
12255
|
-
var
|
12256
|
-
let
|
12257
|
-
return ((
|
12278
|
+
var k, T;
|
12279
|
+
let M = "kg-table-td";
|
12280
|
+
return ((k = i.value) == null ? void 0 : k.align) === "center" ? M += " kg-table-td--center" : ((T = i.value) == null ? void 0 : T.align) === "right" && (M += " kg-table-td--right"), u.value && (M += " kg-table-td--submitting"), M;
|
12258
12281
|
}), v = computed(() => {
|
12259
|
-
var
|
12282
|
+
var k, T, O, I, w;
|
12260
12283
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
12261
12284
|
return "";
|
12262
|
-
let
|
12263
|
-
switch ((
|
12285
|
+
let M = e.kgValue;
|
12286
|
+
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
12264
12287
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
12265
12288
|
{
|
12266
|
-
const
|
12267
|
-
|
12289
|
+
const A = KgUtil.tryParseJSON((T = i.value) == null ? void 0 : T.display_type_properties);
|
12290
|
+
A.dscFieldName ? M = ((O = e.kgRow) == null ? void 0 : O[A.dscFieldName]) || e.kgValue : M = ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}_dsc`]) || ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}Dsc`]) || e.kgValue;
|
12268
12291
|
}
|
12269
12292
|
break;
|
12270
12293
|
}
|
12271
|
-
return isString$1(
|
12272
|
-
`)),
|
12294
|
+
return isString$1(M) && (M = M.replaceAll("\\n", `
|
12295
|
+
`)), M;
|
12273
12296
|
}), E = ref(null);
|
12274
|
-
function m(
|
12275
|
-
var
|
12276
|
-
if (
|
12277
|
-
switch ((
|
12297
|
+
function m(M) {
|
12298
|
+
var k, T, O;
|
12299
|
+
if (M.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
12300
|
+
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
12278
12301
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
12279
|
-
|
12302
|
+
M.stopPropagation(), M.preventDefault(), r("kgUpdateLinkClick");
|
12280
12303
|
break;
|
12281
12304
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
12282
12305
|
{
|
12283
|
-
|
12284
|
-
const
|
12285
|
-
(
|
12286
|
-
path:
|
12306
|
+
M.stopPropagation(), M.preventDefault();
|
12307
|
+
const I = KgUtil.tryParseJSON((T = i.value) == null ? void 0 : T.display_type_properties);
|
12308
|
+
(O = a.router.value) == null || O.push({
|
12309
|
+
path: I.path,
|
12287
12310
|
query: e.kgRow
|
12288
12311
|
});
|
12289
12312
|
}
|
@@ -12292,7 +12315,7 @@ const getProps$n = () => ({
|
|
12292
12315
|
}
|
12293
12316
|
function g() {
|
12294
12317
|
}
|
12295
|
-
function
|
12318
|
+
function b() {
|
12296
12319
|
return createVNode(KgForm, {
|
12297
12320
|
ref: E,
|
12298
12321
|
model: l.model.value,
|
@@ -12313,24 +12336,24 @@ const getProps$n = () => ({
|
|
12313
12336
|
})]
|
12314
12337
|
});
|
12315
12338
|
}
|
12316
|
-
function
|
12317
|
-
var
|
12339
|
+
function y() {
|
12340
|
+
var M, k, T, O, I, w, A, P, D, N;
|
12318
12341
|
if (u.value)
|
12319
|
-
return
|
12320
|
-
switch ((
|
12342
|
+
return b();
|
12343
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
12321
12344
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
12322
|
-
const
|
12345
|
+
const V = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12323
12346
|
return createVNode(KgYesOrNo, {
|
12324
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T =
|
12325
|
-
kgNilAsFalse:
|
12347
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T = V.yValue) != null ? T : 1),
|
12348
|
+
kgNilAsFalse: V.nilAsFalse
|
12326
12349
|
}, null);
|
12327
12350
|
}
|
12328
12351
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
12329
|
-
const
|
12330
|
-
if (
|
12331
|
-
const $ = n.t(
|
12352
|
+
const V = KgUtil.tryParseJSON((O = i.value) == null ? void 0 : O.display_type_properties), R = isArrayLike(V) && V.find(($) => $.value === e.kgValue);
|
12353
|
+
if (R) {
|
12354
|
+
const $ = n.t(R.varName).value;
|
12332
12355
|
return $ ? createVNode(Tag, {
|
12333
|
-
color: (
|
12356
|
+
color: (I = R.color) != null ? I : "default"
|
12334
12357
|
}, _isSlot$8($) ? $ : {
|
12335
12358
|
default: () => [$]
|
12336
12359
|
}) : C();
|
@@ -12338,11 +12361,11 @@ const getProps$n = () => ({
|
|
12338
12361
|
return C();
|
12339
12362
|
}
|
12340
12363
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
12341
|
-
const
|
12342
|
-
if (
|
12343
|
-
const
|
12364
|
+
const V = KgUtil.tryParseJSON((w = i.value) == null ? void 0 : w.display_type_properties);
|
12365
|
+
if (V.isTag && isArrayLike(V.tagColors)) {
|
12366
|
+
const R = V.tagColors.find(($) => $.value === e.kgValue);
|
12344
12367
|
return v.value ? createVNode(Tag, {
|
12345
|
-
color: (
|
12368
|
+
color: (A = R == null ? void 0 : R.color) != null ? A : "default"
|
12346
12369
|
}, {
|
12347
12370
|
default: () => [v.value]
|
12348
12371
|
}) : C();
|
@@ -12350,11 +12373,11 @@ const getProps$n = () => ({
|
|
12350
12373
|
return C();
|
12351
12374
|
}
|
12352
12375
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
12353
|
-
const
|
12376
|
+
const V = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties);
|
12354
12377
|
return createVNode(KgProgressA, {
|
12355
|
-
kgTextWidth:
|
12356
|
-
kgLeft: (
|
12357
|
-
kgRight: (N = e.kgRow) == null ? void 0 : N[
|
12378
|
+
kgTextWidth: V.textWidth,
|
12379
|
+
kgLeft: (D = e.kgRow) == null ? void 0 : D[V.leftColumn],
|
12380
|
+
kgRight: (N = e.kgRow) == null ? void 0 : N[V.rightColumn]
|
12358
12381
|
}, null);
|
12359
12382
|
}
|
12360
12383
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -12367,11 +12390,11 @@ const getProps$n = () => ({
|
|
12367
12390
|
return C();
|
12368
12391
|
}
|
12369
12392
|
}
|
12370
|
-
function C(
|
12371
|
-
let
|
12372
|
-
return
|
12393
|
+
function C(M = !1) {
|
12394
|
+
let k = "";
|
12395
|
+
return M && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (k += "kg-table-td-update-link"), createVNode("pre", {
|
12373
12396
|
innerHTML: v.value,
|
12374
|
-
class:
|
12397
|
+
class: k,
|
12375
12398
|
onClick: m
|
12376
12399
|
}, null);
|
12377
12400
|
}
|
@@ -12379,7 +12402,7 @@ const getProps$n = () => ({
|
|
12379
12402
|
class: p.value,
|
12380
12403
|
title: v.value,
|
12381
12404
|
"kg-value": e.kgValue
|
12382
|
-
}, [
|
12405
|
+
}, [y()]);
|
12383
12406
|
}
|
12384
12407
|
}), KgTable_Info = "";
|
12385
12408
|
function _isSlot$7(e) {
|
@@ -12468,8 +12491,8 @@ const getProps$m = () => ({
|
|
12468
12491
|
}) => {
|
12469
12492
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
12470
12493
|
return l = watch(i, (u) => {
|
12471
|
-
var d, p, v, E, m, g,
|
12472
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (p = c == null ? void 0 : c.aut_load_flg) != null ? p : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (E = c == null ? void 0 : c.show_check_column_flg) != null ? E : 0, u.show_bottom_left_flg = (m = c == null ? void 0 : c.show_bottom_left_flg) != null ? m : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (
|
12494
|
+
var d, p, v, E, m, g, b, y, C, M, k;
|
12495
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (p = c == null ? void 0 : c.aut_load_flg) != null ? p : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (E = c == null ? void 0 : c.show_check_column_flg) != null ? E : 0, u.show_bottom_left_flg = (m = c == null ? void 0 : c.show_bottom_left_flg) != null ? m : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (y = c == null ? void 0 : c.pg_size_opts) != null ? y : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (M = c == null ? void 0 : c.cmd_prm) != null ? M : void 0, u.button_display_type = (k = c == null ? void 0 : c.button_display_type) != null ? k : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
12473
12496
|
}, {
|
12474
12497
|
immediate: !0
|
12475
12498
|
}), KgUtil.hideLoading(), !1;
|
@@ -13263,7 +13286,7 @@ function _useDragRow$1(e, t, r) {
|
|
13263
13286
|
if (n = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"] > td.handler`), () => !0), n)
|
13264
13287
|
for (let u of n)
|
13265
13288
|
u.__kg__dragstart__ = async (d) => {
|
13266
|
-
var g,
|
13289
|
+
var g, b;
|
13267
13290
|
s = u.parentElement, u.classList.add("dragging"), u.parentElement.classList.add("dragging");
|
13268
13291
|
const p = document.createElement("span");
|
13269
13292
|
p.setAttribute("id", "__kg_table_config_fields_drag_image__");
|
@@ -13273,7 +13296,7 @@ function _useDragRow$1(e, t, r) {
|
|
13273
13296
|
} = u.parentElement.getBoundingClientRect();
|
13274
13297
|
v && E && (p.style.width = `${v + 2}px`, p.style.height = `${E + 2}px`), (g = d.dataTransfer) == null || g.setDragImage(p, -10, (E + 2) / 2);
|
13275
13298
|
const m = await toCanvas(u.parentElement);
|
13276
|
-
p.appendChild(m), document.body.appendChild(p), (
|
13299
|
+
p.appendChild(m), document.body.appendChild(p), (b = d.dataTransfer) == null || b.setDragImage(p, -10, (E + 2) / 2);
|
13277
13300
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
13278
13301
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
13279
13302
|
const p = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -13321,10 +13344,10 @@ function _useDragRow$1(e, t, r) {
|
|
13321
13344
|
if (p === -1 || v === -1)
|
13322
13345
|
return;
|
13323
13346
|
const E = t.value.find((g) => g.var_nam === u), m = [];
|
13324
|
-
t.value.forEach((g,
|
13325
|
-
p > v ?
|
13326
|
-
}), m.forEach((g,
|
13327
|
-
g.srtseq =
|
13347
|
+
t.value.forEach((g, b) => {
|
13348
|
+
p > v ? b < v ? m.push(g) : b === v ? (m.push(E), m.push(g)) : b > v && b !== p && m.push(g) : p < v && (b < p ? m.push(g) : b === p || (b === v ? (m.push(g), m.push(E)) : m.push(g)));
|
13349
|
+
}), m.forEach((g, b) => {
|
13350
|
+
g.srtseq = b + 1;
|
13328
13351
|
}), t.value = m, nextTick().finally(() => {
|
13329
13352
|
KgUtil.hideLoading();
|
13330
13353
|
});
|
@@ -13355,40 +13378,40 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
|
|
13355
13378
|
s.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
13356
13379
|
dft_val: a.formID
|
13357
13380
|
}), !1)), o.onOpen(async ({
|
13358
|
-
isCreating:
|
13381
|
+
isCreating: y,
|
13359
13382
|
isUpdating: C,
|
13360
|
-
isCopying:
|
13361
|
-
row:
|
13383
|
+
isCopying: M,
|
13384
|
+
row: k,
|
13362
13385
|
model: T
|
13363
13386
|
}) => {
|
13364
|
-
var
|
13365
|
-
const
|
13366
|
-
switch (c.value =
|
13367
|
-
case
|
13387
|
+
var I, w, A, P, D;
|
13388
|
+
const O = a.store.getSystemVarGridDetails(a.formID);
|
13389
|
+
switch (c.value = O ? cloneDeep(unref(toRaw(O))) : [], !0) {
|
13390
|
+
case y: {
|
13368
13391
|
u.value = [];
|
13369
13392
|
break;
|
13370
13393
|
}
|
13371
13394
|
case C:
|
13372
|
-
case
|
13373
|
-
if (
|
13395
|
+
case M: {
|
13396
|
+
if (k != null && k.id)
|
13374
13397
|
try {
|
13375
13398
|
o.store.setIsLoading(n.formID, !0);
|
13376
13399
|
const N = await QueryByID$1({
|
13377
13400
|
params: {
|
13378
|
-
id:
|
13401
|
+
id: k.id
|
13379
13402
|
}
|
13380
13403
|
});
|
13381
|
-
c.value = c.value.map((
|
13404
|
+
c.value = c.value.map((R) => {
|
13382
13405
|
var x;
|
13383
|
-
const $ = (x = N == null ? void 0 : N.varGridDetails) == null ? void 0 : x.find((F) => F.var_nam ===
|
13406
|
+
const $ = (x = N == null ? void 0 : N.varGridDetails) == null ? void 0 : x.find((F) => F.var_nam === R.var_nam);
|
13384
13407
|
return $ ? {
|
13385
|
-
...
|
13408
|
+
...R,
|
13386
13409
|
...$,
|
13387
|
-
id:
|
13388
|
-
} :
|
13410
|
+
id: R.id
|
13411
|
+
} : R;
|
13389
13412
|
});
|
13390
|
-
const
|
13391
|
-
u.value = c.value.filter((
|
13413
|
+
const V = (w = (I = N == null ? void 0 : N.varGridDetails) == null ? void 0 : I.map((R) => R.var_nam)) != null ? w : [];
|
13414
|
+
u.value = c.value.filter((R) => V.includes(R.var_nam)).map((R) => R.id);
|
13392
13415
|
} catch (N) {
|
13393
13416
|
throw N;
|
13394
13417
|
} finally {
|
@@ -13400,21 +13423,21 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
|
|
13400
13423
|
}
|
13401
13424
|
}
|
13402
13425
|
switch (!0) {
|
13403
|
-
case
|
13404
|
-
T.value.grd_var_nam = ((
|
13426
|
+
case M: {
|
13427
|
+
T.value.grd_var_nam = ((A = T.value.grd_var_nam) != null ? A : "") + "_COPY", T.value.grd_var_nam_dsc = ((D = (P = T.value.grd_var_nam_dsc) != null ? P : T.value.grd_var_nam) != null ? D : "") + "_COPY";
|
13405
13428
|
break;
|
13406
13429
|
}
|
13407
13430
|
}
|
13408
13431
|
return !1;
|
13409
13432
|
}), o.onBeforeOk(async ({
|
13410
|
-
model:
|
13433
|
+
model: y
|
13411
13434
|
}) => {
|
13412
|
-
var
|
13413
|
-
const C =
|
13414
|
-
return C.frm_id = a.formID, C.varGridDetails = (
|
13435
|
+
var M, k;
|
13436
|
+
const C = y.value;
|
13437
|
+
return C.frm_id = a.formID, C.varGridDetails = (k = (M = c.value) == null ? void 0 : M.filter((T) => u.value.includes(T.id))) != null ? k : [], !1;
|
13415
13438
|
}), o.onOk(async () => (a.store.retrieve(a.formID), !1)), l.onUpdateBeforeClick(({
|
13416
|
-
row:
|
13417
|
-
}) => (
|
13439
|
+
row: y
|
13440
|
+
}) => (y == null ? void 0 : y.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((C) => {
|
13418
13441
|
KgUtil.confirm({
|
13419
13442
|
content: r.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
13420
13443
|
okButtonProps: {
|
@@ -13434,7 +13457,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
|
|
13434
13457
|
} = _useTransferColumns(e.hostFormID, c);
|
13435
13458
|
_useDragRow$1(e.hostFormID, c, d);
|
13436
13459
|
const E = computed(() => {
|
13437
|
-
const
|
13460
|
+
const y = i.selectedRow.value;
|
13438
13461
|
return {
|
13439
13462
|
KgSubmit: {
|
13440
13463
|
kgClass: "kg-submit--kg-table-setting-config-modal--var-grid-master"
|
@@ -13443,7 +13466,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
|
|
13443
13466
|
kgDisabled: (C) => {
|
13444
13467
|
switch (C.var_nam) {
|
13445
13468
|
case "set-default":
|
13446
|
-
if ((
|
13469
|
+
if ((y == null ? void 0 : y.def_flg) === 1)
|
13447
13470
|
return !0;
|
13448
13471
|
break;
|
13449
13472
|
}
|
@@ -13456,50 +13479,50 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
|
|
13456
13479
|
varGridDetails: () => createVNode(Transfer, {
|
13457
13480
|
dataSource: c.value,
|
13458
13481
|
targetKeys: u.value,
|
13459
|
-
"onUpdate:targetKeys": (
|
13460
|
-
rowKey: (
|
13482
|
+
"onUpdate:targetKeys": (y) => u.value = y,
|
13483
|
+
rowKey: (y) => y.id,
|
13461
13484
|
showSearch: !0,
|
13462
13485
|
showSelectAll: !1,
|
13463
13486
|
searchPlaceholder: " ",
|
13464
|
-
filterOption: (
|
13465
|
-
var
|
13466
|
-
return !!((
|
13487
|
+
filterOption: (y, C) => {
|
13488
|
+
var M;
|
13489
|
+
return !!((M = C.var_nam) != null && M.includes(y));
|
13467
13490
|
}
|
13468
13491
|
}, {
|
13469
13492
|
children: ({
|
13470
|
-
direction:
|
13493
|
+
direction: y,
|
13471
13494
|
filteredItems: C,
|
13472
|
-
selectedKeys:
|
13473
|
-
disabled:
|
13495
|
+
selectedKeys: M,
|
13496
|
+
disabled: k,
|
13474
13497
|
onItemSelectAll: T,
|
13475
|
-
onItemSelect:
|
13498
|
+
onItemSelect: O
|
13476
13499
|
}) => {
|
13477
|
-
const
|
13478
|
-
var P,
|
13479
|
-
return ((P =
|
13500
|
+
const I = C.sort((w, A) => {
|
13501
|
+
var P, D;
|
13502
|
+
return ((P = w.srtseq) != null ? P : 0) - ((D = A.srtseq) != null ? D : 0);
|
13480
13503
|
});
|
13481
|
-
return d.value =
|
13504
|
+
return d.value = I, createVNode(Table, {
|
13482
13505
|
pagination: !1,
|
13483
13506
|
class: "kg-flex-table",
|
13484
13507
|
size: "small",
|
13485
13508
|
scroll: {
|
13486
|
-
x:
|
13509
|
+
x: y === "left" ? "370px" : `${1472 + 32}px`,
|
13487
13510
|
y: "auto"
|
13488
13511
|
},
|
13489
|
-
columns:
|
13512
|
+
columns: y === "left" ? p() : v(),
|
13490
13513
|
rowKey: "id",
|
13491
|
-
dataSource:
|
13492
|
-
customRow: (
|
13493
|
-
let
|
13494
|
-
onClick: (P) =>
|
13514
|
+
dataSource: I,
|
13515
|
+
customRow: (w) => {
|
13516
|
+
let A = {
|
13517
|
+
onClick: (P) => b(P, w, y, M)
|
13495
13518
|
};
|
13496
|
-
return
|
13519
|
+
return y === "right" && (A["kg-host-frm_id"] = a.formID, A["kg-var_nam"] = w.var_nam), A;
|
13497
13520
|
},
|
13498
13521
|
rowSelection: g({
|
13499
|
-
disabled:
|
13500
|
-
selectedKeys:
|
13522
|
+
disabled: k,
|
13523
|
+
selectedKeys: M,
|
13501
13524
|
onItemSelectAll: T,
|
13502
|
-
onItemSelect:
|
13525
|
+
onItemSelect: O
|
13503
13526
|
})
|
13504
13527
|
}, null);
|
13505
13528
|
}
|
@@ -13507,36 +13530,36 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$k = () => ({
|
|
13507
13530
|
}
|
13508
13531
|
}
|
13509
13532
|
}), g = ({
|
13510
|
-
disabled:
|
13533
|
+
disabled: y,
|
13511
13534
|
selectedKeys: C,
|
13512
|
-
onItemSelectAll:
|
13513
|
-
onItemSelect:
|
13535
|
+
onItemSelectAll: M,
|
13536
|
+
onItemSelect: k
|
13514
13537
|
}) => ({
|
13515
13538
|
getCheckboxProps: (T) => ({
|
13516
|
-
disabled:
|
13539
|
+
disabled: y || T.disabled
|
13517
13540
|
}),
|
13518
|
-
onSelectAll(T,
|
13519
|
-
const
|
13520
|
-
key:
|
13521
|
-
}) =>
|
13522
|
-
|
13541
|
+
onSelectAll(T, O) {
|
13542
|
+
const I = O.filter((w) => !w.disabled).map(({
|
13543
|
+
key: w
|
13544
|
+
}) => w);
|
13545
|
+
M(I, T);
|
13523
13546
|
},
|
13524
13547
|
onSelect({
|
13525
13548
|
key: T
|
13526
|
-
},
|
13527
|
-
|
13549
|
+
}, O) {
|
13550
|
+
k(T, O);
|
13528
13551
|
},
|
13529
13552
|
selectedRowKeys: C,
|
13530
13553
|
columnWidth: 32
|
13531
13554
|
});
|
13532
|
-
function y
|
13533
|
-
if (!KgDomUtil.isNotClickable(
|
13534
|
-
switch (
|
13555
|
+
function b(y, C, M, k) {
|
13556
|
+
if (!KgDomUtil.isNotClickable(y.target, ["ant-input"]))
|
13557
|
+
switch (k.length = 0, y.detail) {
|
13535
13558
|
case 1:
|
13536
|
-
|
13559
|
+
k[0] = C.id;
|
13537
13560
|
break;
|
13538
13561
|
case 2:
|
13539
|
-
switch (
|
13562
|
+
switch (M) {
|
13540
13563
|
case "left":
|
13541
13564
|
u.value.push(C.id);
|
13542
13565
|
break;
|
@@ -13630,7 +13653,7 @@ function _useServices() {
|
|
13630
13653
|
filterVarGridDetailByKey: t
|
13631
13654
|
};
|
13632
13655
|
}
|
13633
|
-
function
|
13656
|
+
function _useObserveMenuColumns(e) {
|
13634
13657
|
let t = null;
|
13635
13658
|
watch(e, async (r) => {
|
13636
13659
|
r ? (await nextTick(), setTimeout(() => {
|
@@ -13684,31 +13707,33 @@ const getProps$h = () => ({
|
|
13684
13707
|
slots: t,
|
13685
13708
|
emit: r
|
13686
13709
|
}) {
|
13687
|
-
const a = useKg(), n = useKgVar(), {
|
13688
|
-
filterVarGridDetailByKey:
|
13689
|
-
} = _useServices(),
|
13710
|
+
const a = useKg(), n = useKgVar(), s = useKgTable(n.formID), {
|
13711
|
+
filterVarGridDetailByKey: l
|
13712
|
+
} = _useServices(), o = ref([]), i = computed(() => o.value.includes("1")), c = ref(""), u = computed(() => s.store.getRowHeight(n.formID)), d = ref({
|
13713
|
+
visible: !1
|
13714
|
+
}), p = ref({
|
13690
13715
|
visible: !1
|
13691
|
-
}),
|
13692
|
-
|
13693
|
-
|
13716
|
+
}), v = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled);
|
13717
|
+
_useObserveMenuColumns(i), watch(i, (k) => {
|
13718
|
+
k || (c.value = "");
|
13694
13719
|
}, {
|
13695
13720
|
immediate: !0
|
13696
13721
|
});
|
13697
|
-
function
|
13698
|
-
n.store.patchVarGridDetail(n.formID,
|
13699
|
-
vis_flg:
|
13722
|
+
function E(k) {
|
13723
|
+
n.store.patchVarGridDetail(n.formID, k.var_nam, {
|
13724
|
+
vis_flg: k.vis_flg === 1 ? 0 : 1
|
13700
13725
|
});
|
13701
13726
|
}
|
13702
|
-
async function
|
13703
|
-
var
|
13704
|
-
if (((
|
13727
|
+
async function m() {
|
13728
|
+
var k;
|
13729
|
+
if (((k = n.currentVarGridMaster.value) == null ? void 0 : k.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
13705
13730
|
KgUtil.confirm({
|
13706
13731
|
content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
13707
13732
|
okButtonProps: {
|
13708
13733
|
danger: !1
|
13709
13734
|
},
|
13710
13735
|
onOk: async () => {
|
13711
|
-
|
13736
|
+
p.value.visible = !0;
|
13712
13737
|
}
|
13713
13738
|
});
|
13714
13739
|
return;
|
@@ -13719,104 +13744,136 @@ const getProps$h = () => ({
|
|
13719
13744
|
})
|
13720
13745
|
}), KgUtil.hideLoading(), message.success(a.t("kg.KgTable.saveVarGridMasterSuccessMessage"));
|
13721
13746
|
}
|
13722
|
-
async function
|
13723
|
-
|
13747
|
+
async function g() {
|
13748
|
+
p.value.visible = !0;
|
13724
13749
|
}
|
13725
|
-
function
|
13750
|
+
function b() {
|
13726
13751
|
return createVNode(Menu.SubMenu, {
|
13727
|
-
key: "
|
13752
|
+
key: "columns",
|
13728
13753
|
title: a.t("kg.KgTable.column"),
|
13729
13754
|
popupClassName: "kg-table-setting-submenu-popup-columns"
|
13730
13755
|
}, {
|
13731
13756
|
default: () => {
|
13732
|
-
var
|
13757
|
+
var k;
|
13733
13758
|
return createVNode("div", {
|
13734
13759
|
class: "columns"
|
13735
13760
|
}, [createVNode(Input, {
|
13736
|
-
value:
|
13737
|
-
"onUpdate:value": (
|
13761
|
+
value: c.value,
|
13762
|
+
"onUpdate:value": (T) => c.value = T,
|
13738
13763
|
allowClear: !0
|
13739
13764
|
}, null), createVNode("ul", {
|
13740
13765
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
13741
|
-
}, [(
|
13766
|
+
}, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
|
13742
13767
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
13743
|
-
onClick: (
|
13744
|
-
|
13768
|
+
onClick: (O) => {
|
13769
|
+
O.preventDefault(), O.stopPropagation(), E(T);
|
13745
13770
|
},
|
13746
13771
|
style: {
|
13747
|
-
display:
|
13772
|
+
display: l(T, c.value) ? "flex" : "none"
|
13748
13773
|
},
|
13749
|
-
"kg-var_nam":
|
13774
|
+
"kg-var_nam": T.var_nam
|
13750
13775
|
}, [createVNode(Checkbox, {
|
13751
|
-
checked:
|
13776
|
+
checked: T.vis_flg === 1,
|
13752
13777
|
disabled: !0
|
13753
13778
|
}, {
|
13754
|
-
default: () => [createVNode("pre", null, [n.t(
|
13779
|
+
default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
|
13755
13780
|
}), createVNode(HolderOutlined$1, {
|
13756
|
-
onClick: (
|
13757
|
-
|
13781
|
+
onClick: (O) => {
|
13782
|
+
O.preventDefault(), O.stopPropagation();
|
13758
13783
|
}
|
13759
13784
|
}, null)]))])]);
|
13760
13785
|
},
|
13761
13786
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13762
13787
|
});
|
13763
13788
|
}
|
13764
|
-
function
|
13789
|
+
function y() {
|
13765
13790
|
return createVNode(Menu.SubMenu, {
|
13766
|
-
key: "
|
13791
|
+
key: "var-grid-masters",
|
13767
13792
|
title: a.t("kg.KgTable.varGridMasters"),
|
13768
|
-
popupClassName: "kg-table-setting
|
13793
|
+
popupClassName: "kg-table-setting--submenu-popup--var-grid-masters"
|
13769
13794
|
}, {
|
13770
13795
|
default: () => {
|
13771
|
-
var
|
13772
|
-
let
|
13773
|
-
return createVNode(Fragment, null, [(
|
13774
|
-
var
|
13796
|
+
var O;
|
13797
|
+
let k, T;
|
13798
|
+
return createVNode(Fragment, null, [(O = n.varGridMasters.value) == null ? void 0 : O.map((I) => {
|
13799
|
+
var w;
|
13775
13800
|
return createVNode(Menu.Item, {
|
13776
|
-
key:
|
13777
|
-
class:
|
13778
|
-
"kg-var_nam":
|
13779
|
-
onClick: () => n.store.setCurrentVarGridMasterID(n.formID,
|
13801
|
+
key: I.id,
|
13802
|
+
class: I.id === ((w = n.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
|
13803
|
+
"kg-var_nam": I.grd_var_nam,
|
13804
|
+
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, I.id)
|
13780
13805
|
}, {
|
13781
|
-
default: () => [n.t(
|
13806
|
+
default: () => [n.t(I.grd_var_nam).value]
|
13782
13807
|
});
|
13783
13808
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
13784
13809
|
key: "save-grid-view",
|
13785
|
-
onClick:
|
13810
|
+
onClick: m,
|
13786
13811
|
icon: createVNode(Icon, {
|
13787
13812
|
icon: "material-symbols:save-outline-rounded"
|
13788
13813
|
}, null)
|
13789
|
-
}, _isSlot$5(
|
13790
|
-
default: () => [
|
13814
|
+
}, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMaster")) ? k : {
|
13815
|
+
default: () => [k]
|
13791
13816
|
}), createVNode(Menu.Item, {
|
13792
13817
|
key: "save-grid-view-as",
|
13793
|
-
onClick:
|
13818
|
+
onClick: g,
|
13794
13819
|
icon: createVNode(Icon, {
|
13795
13820
|
icon: "material-symbols:save-as-outline-rounded",
|
13796
13821
|
style: {
|
13797
13822
|
fontsize: "18px"
|
13798
13823
|
}
|
13799
13824
|
}, null)
|
13800
|
-
}, _isSlot$5(
|
13801
|
-
default: () => [
|
13825
|
+
}, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
|
13826
|
+
default: () => [T]
|
13802
13827
|
})]);
|
13803
13828
|
},
|
13804
13829
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13805
13830
|
});
|
13806
13831
|
}
|
13807
|
-
function
|
13808
|
-
|
13832
|
+
function C() {
|
13833
|
+
var k, T, O;
|
13834
|
+
return ((O = (T = (k = a.option.value.KgTable) == null ? void 0 : k.Setting) == null ? void 0 : T.rowHeight) == null ? void 0 : O.on) !== !0 ? null : createVNode(Menu.SubMenu, {
|
13835
|
+
key: "row-height",
|
13836
|
+
title: a.t("kg.KgTable.rowHeight"),
|
13837
|
+
popupClassName: "kg-table-setting--submenu-popup--row-height"
|
13838
|
+
}, {
|
13839
|
+
default: () => {
|
13840
|
+
let I, w, A;
|
13841
|
+
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13842
|
+
key: "L",
|
13843
|
+
class: u.value === "L" ? "selected" : "",
|
13844
|
+
onClick: () => s.store.setRowHeight(n.formID, "L")
|
13845
|
+
}, _isSlot$5(I = a.t("kg.KgTable.rowHeightL")) ? I : {
|
13846
|
+
default: () => [I]
|
13847
|
+
}), createVNode(Menu.Item, {
|
13848
|
+
key: "M",
|
13849
|
+
class: u.value === "M" ? "selected" : "",
|
13850
|
+
onClick: () => s.store.setRowHeight(n.formID, "M")
|
13851
|
+
}, _isSlot$5(w = a.t("kg.KgTable.rowHeightM")) ? w : {
|
13852
|
+
default: () => [w]
|
13853
|
+
}), createVNode(Menu.Item, {
|
13854
|
+
key: "H",
|
13855
|
+
class: u.value === "H" ? "selected" : "",
|
13856
|
+
onClick: () => s.store.setRowHeight(n.formID, "H")
|
13857
|
+
}, _isSlot$5(A = a.t("kg.KgTable.rowHeightH")) ? A : {
|
13858
|
+
default: () => [A]
|
13859
|
+
})]);
|
13860
|
+
},
|
13861
|
+
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13862
|
+
});
|
13863
|
+
}
|
13864
|
+
function M() {
|
13865
|
+
let k;
|
13809
13866
|
return createVNode(Menu.Item, {
|
13810
13867
|
key: "config-var-grid-master",
|
13811
13868
|
onClick: () => {
|
13812
|
-
|
13869
|
+
d.value.visible = !0;
|
13813
13870
|
}
|
13814
|
-
}, _isSlot$5(
|
13815
|
-
default: () => [
|
13871
|
+
}, _isSlot$5(k = a.t("kg.KgTable.config")) ? k : {
|
13872
|
+
default: () => [k]
|
13816
13873
|
});
|
13817
13874
|
}
|
13818
13875
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
13819
|
-
disabled:
|
13876
|
+
disabled: v.value,
|
13820
13877
|
class: "kg-table-setting",
|
13821
13878
|
overlayClassName: "kg-table-setting-dropdown",
|
13822
13879
|
trigger: "click"
|
@@ -13825,18 +13882,18 @@ const getProps$h = () => ({
|
|
13825
13882
|
overlay: () => createVNode(Menu, {
|
13826
13883
|
triggerSubMenuAction: "click",
|
13827
13884
|
openKeys: o.value,
|
13828
|
-
"onUpdate:openKeys": (
|
13885
|
+
"onUpdate:openKeys": (k) => o.value = k,
|
13829
13886
|
selectable: !1
|
13830
13887
|
}, {
|
13831
|
-
default: () => [
|
13888
|
+
default: () => [b(), C(), y(), M()]
|
13832
13889
|
})
|
13833
|
-
}),
|
13834
|
-
visible:
|
13835
|
-
"onUpdate:visible": (
|
13890
|
+
}), d.value.visible && createVNode(KgTableSettingConfigModal, {
|
13891
|
+
visible: d.value.visible,
|
13892
|
+
"onUpdate:visible": (k) => d.value.visible = k,
|
13836
13893
|
hostFormID: n.formID
|
13837
|
-
}, null),
|
13894
|
+
}, null), p.value.visible && createVNode(KgTableSettingVarGridMasterSaveAs, {
|
13838
13895
|
onKgClose: () => {
|
13839
|
-
|
13896
|
+
p.value.visible = !1;
|
13840
13897
|
}
|
13841
13898
|
}, null)]);
|
13842
13899
|
}
|
@@ -13858,38 +13915,38 @@ function _useColumns(e) {
|
|
13858
13915
|
}) => m + 1
|
13859
13916
|
}, ...(E = u == null ? void 0 : u.map((m) => {
|
13860
13917
|
const g = m.var_nam;
|
13861
|
-
function
|
13918
|
+
function b() {
|
13862
13919
|
return m.width === "auto" ? "auto" : Number(m.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
13863
13920
|
}
|
13864
|
-
function
|
13921
|
+
function y() {
|
13865
13922
|
return r.t(g).value;
|
13866
13923
|
}
|
13867
13924
|
function C() {
|
13868
13925
|
return m.ord === -1 ? null : m.ord === 0 ? "ascend" : m.ord === 1 ? "descend" : null;
|
13869
13926
|
}
|
13870
|
-
function
|
13927
|
+
function M() {
|
13871
13928
|
if (m.fix_left_flg === 1)
|
13872
13929
|
return "left";
|
13873
13930
|
if (m.fix_right_flg === 1)
|
13874
13931
|
return "right";
|
13875
13932
|
}
|
13876
|
-
function
|
13877
|
-
var
|
13878
|
-
return !((
|
13933
|
+
function k() {
|
13934
|
+
var I, w, A, P;
|
13935
|
+
return !((w = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && w.kgDisabled || isNil((P = (A = t == null ? void 0 : t.value) == null ? void 0 : A.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || m.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
13879
13936
|
}
|
13880
13937
|
function T() {
|
13881
13938
|
return ["left", "center", "right"].includes(m.align || "") ? m.align : "left";
|
13882
13939
|
}
|
13883
|
-
const
|
13940
|
+
const O = b();
|
13884
13941
|
return {
|
13885
13942
|
dataIndex: g,
|
13886
|
-
title:
|
13887
|
-
width:
|
13888
|
-
resizable: typeof
|
13943
|
+
title: y(),
|
13944
|
+
width: O,
|
13945
|
+
resizable: typeof O == "number",
|
13889
13946
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
13890
13947
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
13891
|
-
fixed:
|
13892
|
-
sorter:
|
13948
|
+
fixed: M(),
|
13949
|
+
sorter: k(),
|
13893
13950
|
align: T(),
|
13894
13951
|
defaultSortOrder: C(),
|
13895
13952
|
customHeaderCell: () => ({
|
@@ -13897,13 +13954,13 @@ function _useColumns(e) {
|
|
13897
13954
|
"kg-var_nam": g,
|
13898
13955
|
draggable: !0
|
13899
13956
|
}),
|
13900
|
-
customCell: (
|
13901
|
-
var
|
13902
|
-
const
|
13957
|
+
customCell: (I) => {
|
13958
|
+
var A;
|
13959
|
+
const w = r.store.getVarSubmitField(r.formID, g);
|
13903
13960
|
return {
|
13904
13961
|
"kg-frm_id": r.formID,
|
13905
13962
|
"kg-var_nam": g,
|
13906
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
13963
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && I[n.id.value] === ((A = n.selectedRow.value) == null ? void 0 : A[n.id.value]) && (!!r.isCreating.value && (w == null ? void 0 : w.crt_flg) === 1 || !!r.isUpdating.value && (w == null ? void 0 : w.upt_flg) === 1 || !!r.isCopying.value && (w == null ? void 0 : w.cpy_flg) === 1 || !!r.isDeleting.value && (w == null ? void 0 : w.del_flg) === 1) ? "submitting" : ""
|
13907
13964
|
};
|
13908
13965
|
}
|
13909
13966
|
};
|
@@ -14040,7 +14097,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14040
14097
|
}
|
14041
14098
|
break;
|
14042
14099
|
case "clearDatas":
|
14043
|
-
B[0] === o.formID && (u.store.setDatas(o.formID, []),
|
14100
|
+
B[0] === o.formID && (u.store.setDatas(o.formID, []), V.total = 0, G(), p.value = []);
|
14044
14101
|
break;
|
14045
14102
|
}
|
14046
14103
|
});
|
@@ -14051,15 +14108,15 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14051
14108
|
isLoading: m
|
14052
14109
|
} = _useLoading(), g = ref(null);
|
14053
14110
|
_useResizeObserver(g), _useDragColumn(g, v);
|
14054
|
-
const
|
14111
|
+
const b = computed(() => {
|
14055
14112
|
var K, B;
|
14056
14113
|
return (B = (K = o.varButtonSearch.value) == null ? void 0 : K.cmd) != null ? B : null;
|
14057
|
-
}),
|
14114
|
+
}), y = computed(() => {
|
14058
14115
|
var B, z, Y, Z, te, ue, ie;
|
14059
14116
|
let K = {
|
14060
|
-
pageNo:
|
14061
|
-
pageSize:
|
14062
|
-
...
|
14117
|
+
pageNo: V.pageIndex,
|
14118
|
+
pageSize: V.pageSize,
|
14119
|
+
...R,
|
14063
14120
|
...(z = (B = i.model) == null ? void 0 : B.value) != null ? z : {}
|
14064
14121
|
};
|
14065
14122
|
return o.varButtonSearch.value && (K = {
|
@@ -14075,20 +14132,20 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14075
14132
|
return (Y = (z = s == null ? void 0 : s.value) == null ? void 0 : z.KgTable) == null ? void 0 : Y.kgDisabled;
|
14076
14133
|
if (!isNil(e.kgDisabled))
|
14077
14134
|
return e.kgDisabled;
|
14078
|
-
}),
|
14135
|
+
}), M = computed(() => {
|
14079
14136
|
var K, B, z, Y;
|
14080
14137
|
if (!isNil((B = (K = s == null ? void 0 : s.value) == null ? void 0 : K.KgTable) == null ? void 0 : B.kgCheckboxDisabled))
|
14081
14138
|
return (Y = (z = s == null ? void 0 : s.value) == null ? void 0 : z.KgTable) == null ? void 0 : Y.kgCheckboxDisabled;
|
14082
14139
|
if (!isNil(e.kgCheckboxDisabled))
|
14083
14140
|
return e.kgCheckboxDisabled;
|
14084
|
-
}),
|
14141
|
+
}), k = computed(() => !!C.value || m.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), T = computed(() => !!C.value || m.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || V.total === 0), O = computed(() => {
|
14085
14142
|
var K;
|
14086
14143
|
return !!((K = n == null ? void 0 : n.KgTable) != null && K.expandedRowRender);
|
14087
|
-
}),
|
14144
|
+
}), I = computed(() => {
|
14088
14145
|
var K;
|
14089
14146
|
return ((K = o.varGridConfig.value) == null ? void 0 : K.show_check_column_flg) === 1;
|
14090
|
-
}),
|
14091
|
-
if (!!
|
14147
|
+
}), w = computed(() => {
|
14148
|
+
if (!!I.value)
|
14092
14149
|
return {
|
14093
14150
|
fixed: "left",
|
14094
14151
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
@@ -14098,35 +14155,46 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14098
14155
|
getCheckboxProps: (K) => {
|
14099
14156
|
var B;
|
14100
14157
|
return {
|
14101
|
-
disabled: !!C.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((B =
|
14158
|
+
disabled: !!C.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((B = M.value) != null && B.call(M, K))
|
14102
14159
|
};
|
14103
14160
|
},
|
14104
14161
|
onSelect: (K) => Q(K),
|
14105
14162
|
onChange: (K) => u.isMultiSelect.value && H(K)
|
14106
14163
|
};
|
14107
|
-
}),
|
14164
|
+
}), A = computed(() => {
|
14108
14165
|
var B;
|
14109
14166
|
let K = "kg-table";
|
14110
|
-
|
14167
|
+
switch (((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (K += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (K += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (K += " kg-table--submitting"), u.store.getRowHeight(o.formID)) {
|
14168
|
+
case "L":
|
14169
|
+
K += " kg-table--row-l";
|
14170
|
+
break;
|
14171
|
+
case "M":
|
14172
|
+
K += " kg-table--row-m";
|
14173
|
+
break;
|
14174
|
+
case "H":
|
14175
|
+
K += " kg-table--row-h";
|
14176
|
+
break;
|
14177
|
+
}
|
14178
|
+
return K;
|
14111
14179
|
}), P = computed(() => {
|
14112
14180
|
var B;
|
14113
14181
|
let K = "kg-table-bottom";
|
14114
14182
|
return ((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (K += " kg-table-bottom--border"), K;
|
14115
|
-
}),
|
14183
|
+
}), D = computed(() => u.store.getDatas(o.formID)), N = (ve = u.store.getSelectedRowKeys(o.formID)) != null ? ve : ref([]), V = reactive({
|
14116
14184
|
pageIndex: 1,
|
14117
14185
|
pageSize: 10,
|
14118
14186
|
total: 0
|
14119
|
-
}),
|
14187
|
+
}), R = reactive({
|
14120
14188
|
column: void 0,
|
14121
14189
|
order: void 0
|
14122
14190
|
}), $ = watch(u.pageSizeOption, (K) => {
|
14123
|
-
K && (setTimeout(() => $()),
|
14191
|
+
K && (setTimeout(() => $()), V.pageSize = K, u.store.emit(o.formID, "ready", {}), u.store.setIsReady(o.formID, !0));
|
14124
14192
|
}, {
|
14125
14193
|
immediate: !0
|
14126
14194
|
});
|
14127
14195
|
watch(u.pageSizeOptions, (K) => {
|
14128
|
-
K.length > 0 && !K.includes(
|
14129
|
-
}), watch([
|
14196
|
+
K.length > 0 && !K.includes(V.pageSize) && (V.pageSize = u.pageSizeOption.value);
|
14197
|
+
}), watch([b, u.isReadAutomatically, i.isReady], ([K, B, z]) => {
|
14130
14198
|
K && B && z && !u.store.getIsRetrieved(o.formID) && L(!0);
|
14131
14199
|
}, {
|
14132
14200
|
immediate: !0
|
@@ -14140,16 +14208,16 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14140
14208
|
const K = {
|
14141
14209
|
[u.id.value]: KG_TABLE_TEMP_ID
|
14142
14210
|
};
|
14143
|
-
u.store.setDatas(o.formID, [K, ...
|
14211
|
+
u.store.setDatas(o.formID, [K, ...D.value]), u.store.setSelectedRows(o.formID, [K]);
|
14144
14212
|
}
|
14145
14213
|
}
|
14146
14214
|
function F() {
|
14147
|
-
const K =
|
14148
|
-
K && (u.store.setDatas(o.formID, without$1(
|
14215
|
+
const K = D.value.find((B) => B[u.id.value] === KG_TABLE_TEMP_ID);
|
14216
|
+
K && (u.store.setDatas(o.formID, without$1(D.value, K)), u.store.setSelectedRows(o.formID, []));
|
14149
14217
|
}
|
14150
14218
|
function G(K, B) {
|
14151
14219
|
var z;
|
14152
|
-
if (!(!!C.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
14220
|
+
if (!(!!C.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!w.value) {
|
14153
14221
|
if (!B) {
|
14154
14222
|
u.store.setSelectedRows(o.formID, []);
|
14155
14223
|
return;
|
@@ -14181,21 +14249,21 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14181
14249
|
});
|
14182
14250
|
async function z() {
|
14183
14251
|
var Y, Z, te, ue;
|
14184
|
-
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !
|
14252
|
+
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !b.value) {
|
14185
14253
|
KgLogger.error(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.`, {
|
14186
14254
|
VarButton: o.varButtonSearch.value
|
14187
14255
|
});
|
14188
14256
|
return;
|
14189
14257
|
}
|
14190
|
-
K && (
|
14258
|
+
K && (V.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
14191
14259
|
try {
|
14192
|
-
const ie = KgUtil.parseParams(
|
14260
|
+
const ie = KgUtil.parseParams(y.value, u.profileFormID.value, a), ce = ref({});
|
14193
14261
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
14194
14262
|
params: ie,
|
14195
14263
|
response: ce
|
14196
14264
|
}) || (ce.value = await httpClient().request({
|
14197
14265
|
method: "GET",
|
14198
|
-
url:
|
14266
|
+
url: b.value,
|
14199
14267
|
params: ie,
|
14200
14268
|
headers: {
|
14201
14269
|
[KG_HEADERS.DYNAMIC_QUERY]: ((Y = o.currentVarProfileMaster.value) == null ? void 0 : Y.dyn_flg) === 1
|
@@ -14223,7 +14291,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14223
14291
|
setDatas(Ce) {
|
14224
14292
|
u.store.setDatas(o.formID, Ce);
|
14225
14293
|
}
|
14226
|
-
}), u.store.setDatas(o.formID, be.value),
|
14294
|
+
}), u.store.setDatas(o.formID, be.value), V.total = Se.value, G(), p.value = [], await nextTick(), ((ue = o.varGridConfig.value) == null ? void 0 : ue.check_first_row_after_retrieve) === 1 && be.value.length > 0 && u.store.setSelectedRows(o.formID, [be.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
14227
14295
|
page: ce.value,
|
14228
14296
|
datas: be,
|
14229
14297
|
setDatas(Ce) {
|
@@ -14240,7 +14308,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14240
14308
|
function H(K) {
|
14241
14309
|
u.store.setSelectedRows(o.formID, K.map((B) => {
|
14242
14310
|
var z;
|
14243
|
-
return (z =
|
14311
|
+
return (z = D.value) == null ? void 0 : z.find((Y) => Y[u.id.value] === B);
|
14244
14312
|
}).filter((B) => !!B));
|
14245
14313
|
}
|
14246
14314
|
function Q(K) {
|
@@ -14261,7 +14329,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14261
14329
|
}
|
14262
14330
|
u.store.setSelectedRows(o.formID, N.value.map((Y) => {
|
14263
14331
|
var Z;
|
14264
|
-
return (Z =
|
14332
|
+
return (Z = D.value) == null ? void 0 : Z.find((te) => te[u.id.value] === Y);
|
14265
14333
|
}).filter((Y) => !!Y));
|
14266
14334
|
}
|
14267
14335
|
function X(K, B) {
|
@@ -14274,7 +14342,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14274
14342
|
{
|
14275
14343
|
await nextTick();
|
14276
14344
|
let te = z;
|
14277
|
-
te.order ? (
|
14345
|
+
te.order ? (R.column = (Z = te.field) != null ? Z : void 0, R.order = te.order === "ascend" ? "asc" : te.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), L(!0);
|
14278
14346
|
}
|
14279
14347
|
break;
|
14280
14348
|
}
|
@@ -14292,12 +14360,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14292
14360
|
}
|
14293
14361
|
}
|
14294
14362
|
function ae(K, B) {
|
14295
|
-
B !==
|
14363
|
+
B !== V.pageSize ? (V.pageIndex = 1, V.pageSize = B) : V.pageIndex = K, L();
|
14296
14364
|
}
|
14297
14365
|
function _e(K) {
|
14298
14366
|
u.store.setSelectedRows(o.formID, [K].map((B) => {
|
14299
14367
|
var z;
|
14300
|
-
return (z =
|
14368
|
+
return (z = D.value) == null ? void 0 : z.find((Y) => Y[u.id.value] === B[u.id.value]);
|
14301
14369
|
}).filter((B) => !!B)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
14302
14370
|
}
|
14303
14371
|
function he({
|
@@ -14321,14 +14389,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14321
14389
|
fixed: "bottom"
|
14322
14390
|
}, {
|
14323
14391
|
default: () => [createVNode(TableSummary.Row, null, {
|
14324
|
-
default: () => [
|
14392
|
+
default: () => [O.value && createVNode(TableSummary.Cell, {
|
14325
14393
|
index: 0
|
14326
|
-
}, null),
|
14327
|
-
index:
|
14394
|
+
}, null), I.value && createVNode(TableSummary.Cell, {
|
14395
|
+
index: O.value ? 1 : 0
|
14328
14396
|
}, null), v.value.map((B, z) => {
|
14329
14397
|
const Y = o.store.getVarGridDetail(o.formID, B.dataIndex), Z = (() => ["left", "center", "right"].includes((Y == null ? void 0 : Y.align) || "") ? Y == null ? void 0 : Y.align : "left")();
|
14330
14398
|
let te = z;
|
14331
|
-
return
|
14399
|
+
return O.value && I.value ? te += 2 : (O.value || I.value) && (te += 1), createVNode(TableSummary.Cell, {
|
14332
14400
|
index: te,
|
14333
14401
|
align: Z
|
14334
14402
|
}, {
|
@@ -14389,7 +14457,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14389
14457
|
return () => {
|
14390
14458
|
var K, B, z;
|
14391
14459
|
return createVNode("div", {
|
14392
|
-
class:
|
14460
|
+
class: A.value,
|
14393
14461
|
"kg-frm_id": o.formID,
|
14394
14462
|
ref: g
|
14395
14463
|
}, [createVNode(Table, {
|
@@ -14402,13 +14470,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14402
14470
|
pagination: !1,
|
14403
14471
|
showSorterTooltip: !1,
|
14404
14472
|
columns: v.value,
|
14405
|
-
dataSource:
|
14473
|
+
dataSource: D.value,
|
14406
14474
|
loading: m.value,
|
14407
14475
|
rowKey: u.id.value,
|
14408
14476
|
rowClassName: (B = (K = s == null ? void 0 : s.value) == null ? void 0 : K.KgTable) == null ? void 0 : B.kgRowClassName,
|
14409
14477
|
expandColumnWidth: 28,
|
14410
14478
|
expandedRowKeys: p.value,
|
14411
|
-
rowSelection:
|
14479
|
+
rowSelection: w.value,
|
14412
14480
|
customRow: (Y) => ({
|
14413
14481
|
onClick: (Z) => G(Z, Y)
|
14414
14482
|
}),
|
@@ -14427,18 +14495,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14427
14495
|
class: "left"
|
14428
14496
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
14429
14497
|
kgShowClearCheck: N.value.length > 0,
|
14430
|
-
kgShowClearTable:
|
14498
|
+
kgShowClearTable: V.total > 0,
|
14431
14499
|
kgShowLocate: N.value.length === 1,
|
14432
14500
|
kgTotal: N.value.length,
|
14433
|
-
kgDisabled:
|
14501
|
+
kgDisabled: k.value
|
14434
14502
|
}, null)]), createVNode("div", {
|
14435
14503
|
class: "right"
|
14436
14504
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
14437
14505
|
size: "default",
|
14438
|
-
current:
|
14439
|
-
pageSize:
|
14506
|
+
current: V.pageIndex,
|
14507
|
+
pageSize: V.pageSize,
|
14440
14508
|
pageSizeOptions: u.pageSizeOptions.value.map((Y) => String(Y)),
|
14441
|
-
total:
|
14509
|
+
total: V.total,
|
14442
14510
|
showSizeChanger: !0,
|
14443
14511
|
showQuickJumper: !1,
|
14444
14512
|
hideOnSinglePage: !1,
|
@@ -14477,8 +14545,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14477
14545
|
attrs: t
|
14478
14546
|
}) {
|
14479
14547
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
|
14480
|
-
var u, d, p, v, E, m, g,
|
14481
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((p = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? p : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((m = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? m : 0) > 1 || ((g = s.value) == null ? void 0 : g.permission_type) === 2 && !r.p((
|
14548
|
+
var u, d, p, v, E, m, g, b;
|
14549
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((p = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? p : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((m = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? m : 0) > 1 || ((g = s.value) == null ? void 0 : g.permission_type) === 2 && !r.p((b = s.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14482
14550
|
});
|
14483
14551
|
async function o() {
|
14484
14552
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -14676,8 +14744,8 @@ const KgButtonCreate = defineComponent({
|
|
14676
14744
|
attrs: a
|
14677
14745
|
}) {
|
14678
14746
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14679
|
-
var C,
|
14680
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
14747
|
+
var C, M, k, T, O, I, w, A;
|
14748
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((k = (M = o.selectedRows.value) == null ? void 0 : M.length) != null ? k : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (O = o.selectedRows.value) == null ? void 0 : O.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14681
14749
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
14682
14750
|
async function p() {
|
14683
14751
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -14698,22 +14766,22 @@ const KgButtonCreate = defineComponent({
|
|
14698
14766
|
function g() {
|
14699
14767
|
return e.kgText ? e.kgText : n.t("kg.create");
|
14700
14768
|
}
|
14701
|
-
function
|
14702
|
-
var C,
|
14769
|
+
function b() {
|
14770
|
+
var C, M, k, T;
|
14703
14771
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
|
14704
14772
|
type: "primary",
|
14705
14773
|
disabled: u.value,
|
14706
14774
|
onClick: p,
|
14707
14775
|
class: a.class,
|
14708
14776
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
14709
|
-
"kg-frm_id": (
|
14710
|
-
"kg-var_nam": (
|
14777
|
+
"kg-frm_id": (M = c.value) == null ? void 0 : M.frm_id,
|
14778
|
+
"kg-var_nam": (k = c.value) == null ? void 0 : k.var_nam,
|
14711
14779
|
"kg-cmd": (T = c.value) == null ? void 0 : T.cmd
|
14712
14780
|
}, {
|
14713
14781
|
default: () => [m(), g()]
|
14714
14782
|
});
|
14715
14783
|
}
|
14716
|
-
function
|
14784
|
+
function y() {
|
14717
14785
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
14718
14786
|
type: "primary",
|
14719
14787
|
onClick: v,
|
@@ -14729,7 +14797,7 @@ const KgButtonCreate = defineComponent({
|
|
14729
14797
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
14730
14798
|
})]);
|
14731
14799
|
}
|
14732
|
-
return () => createVNode(Fragment, null, [
|
14800
|
+
return () => createVNode(Fragment, null, [b(), y()]);
|
14733
14801
|
}
|
14734
14802
|
}), KgButtonDelete = defineComponent({
|
14735
14803
|
name: "KgButtonDelete",
|
@@ -14780,7 +14848,7 @@ const KgButtonCreate = defineComponent({
|
|
14780
14848
|
var E, m;
|
14781
14849
|
return (m = (E = s.value) == null ? void 0 : E.cmd_method) != null ? m : "GET";
|
14782
14850
|
}), i = computed(() => {
|
14783
|
-
var m, g,
|
14851
|
+
var m, g, b, y, C, M;
|
14784
14852
|
let E = {
|
14785
14853
|
pageNo: 1,
|
14786
14854
|
pageSize: 9999999,
|
@@ -14788,14 +14856,14 @@ const KgButtonCreate = defineComponent({
|
|
14788
14856
|
};
|
14789
14857
|
return s.value && (E = {
|
14790
14858
|
...E,
|
14791
|
-
...KgVarUtil.parseCommandParameter((
|
14792
|
-
}), (
|
14859
|
+
...KgVarUtil.parseCommandParameter((b = (g = s.value) == null ? void 0 : g.cmd_prm) != null ? b : "")
|
14860
|
+
}), (y = r.varGridConfig.value) != null && y.cmd_prm && (E = {
|
14793
14861
|
...E,
|
14794
14862
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14795
|
-
}), ((
|
14863
|
+
}), ((M = r.varGridConfig.value) == null ? void 0 : M.convert_sort_field_to_under_score_flg) === 1 && E.column && (E.column = snakeCase$1(E.column)), E;
|
14796
14864
|
}), c = computed(() => {
|
14797
|
-
var E, m, g,
|
14798
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((g = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? g : 0) === 0 || ((
|
14865
|
+
var E, m, g, b, y, C, M, k;
|
14866
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((g = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? C : 0) > 1 || ((M = s.value) == null ? void 0 : M.permission_type) === 2 && !t.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14799
14867
|
}), u = ref(!1);
|
14800
14868
|
async function d() {
|
14801
14869
|
var E, m;
|
@@ -14816,8 +14884,8 @@ const KgButtonCreate = defineComponent({
|
|
14816
14884
|
}, {
|
14817
14885
|
joinParamsToUrl: !0,
|
14818
14886
|
isTransformResponse: !1
|
14819
|
-
}),
|
14820
|
-
KgUtil.downloadFile(g, `${
|
14887
|
+
}), b = (E = s.value) == null ? void 0 : E.export_excel_filename;
|
14888
|
+
KgUtil.downloadFile(g, `${b ? r.t(b).value : t.t("kg.export")}.${(m = s.value) == null ? void 0 : m.export_excel_suffix}`);
|
14821
14889
|
} catch (g) {
|
14822
14890
|
throw g;
|
14823
14891
|
} finally {
|
@@ -14836,7 +14904,7 @@ const KgButtonCreate = defineComponent({
|
|
14836
14904
|
return e.kgText ? e.kgText : t.t("kg.export");
|
14837
14905
|
}
|
14838
14906
|
return () => {
|
14839
|
-
var E, m, g,
|
14907
|
+
var E, m, g, b;
|
14840
14908
|
return createVNode(Button, {
|
14841
14909
|
type: "primary",
|
14842
14910
|
disabled: c.value,
|
@@ -14846,7 +14914,7 @@ const KgButtonCreate = defineComponent({
|
|
14846
14914
|
"kg-id": (E = s.value) == null ? void 0 : E.id,
|
14847
14915
|
"kg-frm_id": (m = s.value) == null ? void 0 : m.frm_id,
|
14848
14916
|
"kg-var_nam": (g = s.value) == null ? void 0 : g.var_nam,
|
14849
|
-
"kg-cmd": (
|
14917
|
+
"kg-cmd": (b = s.value) == null ? void 0 : b.cmd
|
14850
14918
|
}, {
|
14851
14919
|
default: () => [p(), v()]
|
14852
14920
|
});
|
@@ -14861,23 +14929,23 @@ const KgButtonCreate = defineComponent({
|
|
14861
14929
|
attrs: r
|
14862
14930
|
}) {
|
14863
14931
|
const a = useKg(), n = useKgVar(), s = useKgSearch(), l = useKgTable(), o = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), i = computed(() => {
|
14864
|
-
var g,
|
14865
|
-
return o.value ? (
|
14932
|
+
var g, b;
|
14933
|
+
return o.value ? (b = (g = o.value) == null ? void 0 : g.cmd) != null ? b : "" : null;
|
14866
14934
|
}), c = computed(() => {
|
14867
|
-
var g,
|
14868
|
-
return (
|
14935
|
+
var g, b;
|
14936
|
+
return (b = (g = o.value) == null ? void 0 : g.cmd_method) != null ? b : "POST";
|
14869
14937
|
}), u = computed(() => {
|
14870
|
-
var
|
14938
|
+
var b, y, C;
|
14871
14939
|
let g = {
|
14872
|
-
...(
|
14940
|
+
...(b = s.model.value) != null ? b : {}
|
14873
14941
|
};
|
14874
14942
|
return o.value && (g = {
|
14875
14943
|
...g,
|
14876
|
-
...KgVarUtil.parseCommandParameter((C = (
|
14944
|
+
...KgVarUtil.parseCommandParameter((C = (y = o.value) == null ? void 0 : y.cmd_prm) != null ? C : "")
|
14877
14945
|
}), g;
|
14878
14946
|
}), d = computed(() => {
|
14879
|
-
var g,
|
14880
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((
|
14947
|
+
var g, b, y, C, M, k, T, O;
|
14948
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((y = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((k = (M = l.selectedRows.value) == null ? void 0 : M.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p((O = o.value) == null ? void 0 : O.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14881
14949
|
}), p = ref(!1);
|
14882
14950
|
async function v(g) {
|
14883
14951
|
if (!i.value)
|
@@ -14886,22 +14954,22 @@ const KgButtonCreate = defineComponent({
|
|
14886
14954
|
}), !1;
|
14887
14955
|
p.value = !0;
|
14888
14956
|
try {
|
14889
|
-
const
|
14890
|
-
|
14891
|
-
const
|
14957
|
+
const b = new FormData();
|
14958
|
+
b.append("file", g);
|
14959
|
+
const y = await httpClient().axiosInstance.request({
|
14892
14960
|
method: c.value,
|
14893
14961
|
baseURL: window._CONFIG.domianURL,
|
14894
14962
|
url: i.value,
|
14895
14963
|
params: KgUtil.parseParams(u.value),
|
14896
|
-
data:
|
14964
|
+
data: b,
|
14897
14965
|
headers: {
|
14898
14966
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
14899
14967
|
ignoreCancelToken: !0
|
14900
14968
|
}
|
14901
14969
|
});
|
14902
14970
|
message.success(a.t("kg.importSuccess")), s.search(!0);
|
14903
|
-
} catch (
|
14904
|
-
throw
|
14971
|
+
} catch (b) {
|
14972
|
+
throw b;
|
14905
14973
|
} finally {
|
14906
14974
|
p.value = !1;
|
14907
14975
|
}
|
@@ -14924,7 +14992,7 @@ const KgButtonCreate = defineComponent({
|
|
14924
14992
|
disabled: p.value
|
14925
14993
|
}, {
|
14926
14994
|
default: () => {
|
14927
|
-
var g,
|
14995
|
+
var g, b, y, C;
|
14928
14996
|
return [createVNode(Button, {
|
14929
14997
|
class: r.class,
|
14930
14998
|
type: "primary",
|
@@ -14932,8 +15000,8 @@ const KgButtonCreate = defineComponent({
|
|
14932
15000
|
ghost: !e.kgPrimary && !d.value,
|
14933
15001
|
loading: p.value,
|
14934
15002
|
"kg-id": (g = o.value) == null ? void 0 : g.id,
|
14935
|
-
"kg-frm_id": (
|
14936
|
-
"kg-var_nam": (
|
15003
|
+
"kg-frm_id": (b = o.value) == null ? void 0 : b.frm_id,
|
15004
|
+
"kg-var_nam": (y = o.value) == null ? void 0 : y.var_nam,
|
14937
15005
|
"kg-cmd": (C = o.value) == null ? void 0 : C.cmd
|
14938
15006
|
}, {
|
14939
15007
|
default: () => [E(), m()]
|
@@ -14952,20 +15020,20 @@ const KgButtonCreate = defineComponent({
|
|
14952
15020
|
var E, m;
|
14953
15021
|
return (m = (E = s.value) == null ? void 0 : E.cmd_method) != null ? m : "GET";
|
14954
15022
|
}), i = computed(() => {
|
14955
|
-
var m, g,
|
15023
|
+
var m, g, b, y, C;
|
14956
15024
|
let E = {
|
14957
15025
|
...(m = a.model.value) != null ? m : {}
|
14958
15026
|
};
|
14959
15027
|
return s.value && (E = {
|
14960
15028
|
...E,
|
14961
|
-
...KgVarUtil.parseCommandParameter((
|
14962
|
-
}), (
|
15029
|
+
...KgVarUtil.parseCommandParameter((b = (g = s.value) == null ? void 0 : g.cmd_prm) != null ? b : "")
|
15030
|
+
}), (y = r.varGridConfig.value) != null && y.cmd_prm && (E = {
|
14963
15031
|
...E,
|
14964
15032
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14965
15033
|
}), E;
|
14966
15034
|
}), c = computed(() => {
|
14967
|
-
var E, m, g,
|
14968
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((g = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? g : 0) === 0 || ((
|
15035
|
+
var E, m, g, b, y, C, M, k;
|
15036
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((E = s.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((g = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? C : 0) > 1 || ((M = s.value) == null ? void 0 : M.permission_type) === 2 && !t.p((k = s.value) == null ? void 0 : k.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14969
15037
|
}), u = ref(!1);
|
14970
15038
|
async function d() {
|
14971
15039
|
var E, m;
|
@@ -14985,8 +15053,8 @@ const KgButtonCreate = defineComponent({
|
|
14985
15053
|
}, {
|
14986
15054
|
joinParamsToUrl: !0,
|
14987
15055
|
isTransformResponse: !1
|
14988
|
-
}),
|
14989
|
-
KgUtil.downloadFile(g, `${
|
15056
|
+
}), b = (E = s.value) == null ? void 0 : E.export_excel_filename;
|
15057
|
+
KgUtil.downloadFile(g, `${b ? r.t(b).value : t.t("kg.importTemplate")}.${(m = s.value) == null ? void 0 : m.export_excel_suffix}`);
|
14990
15058
|
} catch (g) {
|
14991
15059
|
throw g;
|
14992
15060
|
} finally {
|
@@ -15004,7 +15072,7 @@ const KgButtonCreate = defineComponent({
|
|
15004
15072
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
15005
15073
|
}
|
15006
15074
|
return () => {
|
15007
|
-
var E, m, g,
|
15075
|
+
var E, m, g, b;
|
15008
15076
|
return createVNode(Button, {
|
15009
15077
|
type: "primary",
|
15010
15078
|
disabled: c.value,
|
@@ -15014,7 +15082,7 @@ const KgButtonCreate = defineComponent({
|
|
15014
15082
|
"kg-id": (E = s.value) == null ? void 0 : E.id,
|
15015
15083
|
"kg-frm_id": (m = s.value) == null ? void 0 : m.frm_id,
|
15016
15084
|
"kg-var_nam": (g = s.value) == null ? void 0 : g.var_nam,
|
15017
|
-
"kg-cmd": (
|
15085
|
+
"kg-cmd": (b = s.value) == null ? void 0 : b.cmd
|
15018
15086
|
}, {
|
15019
15087
|
default: () => [p(), v()]
|
15020
15088
|
});
|
@@ -15025,8 +15093,8 @@ const KgButtonCreate = defineComponent({
|
|
15025
15093
|
props: getProps$f(),
|
15026
15094
|
setup(e) {
|
15027
15095
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
15028
|
-
var d, p, v, E, m, g,
|
15029
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (p = s.selectedRows.value) == null ? void 0 : p.length) != null ? v : 0) === 0 || ((E = l.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((g = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? g : 0) > 1 || ((
|
15096
|
+
var d, p, v, E, m, g, b, y;
|
15097
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = l.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (p = s.selectedRows.value) == null ? void 0 : p.length) != null ? v : 0) === 0 || ((E = l.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((g = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? g : 0) > 1 || ((b = l.value) == null ? void 0 : b.permission_type) === 2 && !t.p((y = l.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15030
15098
|
});
|
15031
15099
|
async function i() {
|
15032
15100
|
var E, m, g;
|
@@ -15041,44 +15109,44 @@ const KgButtonCreate = defineComponent({
|
|
15041
15109
|
}
|
15042
15110
|
let p = null;
|
15043
15111
|
const v = async () => {
|
15044
|
-
var
|
15112
|
+
var y, C, M, k, T, O;
|
15045
15113
|
p == null || p.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
15046
|
-
const
|
15114
|
+
const b = s.selectedRows.value;
|
15047
15115
|
try {
|
15048
|
-
const
|
15049
|
-
method: (C = (
|
15116
|
+
const I = await httpClient().request({
|
15117
|
+
method: (C = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? C : "POST",
|
15050
15118
|
url: d,
|
15051
|
-
params: KgVarUtil.parseCommandParameter((
|
15052
|
-
data:
|
15119
|
+
params: KgVarUtil.parseCommandParameter((k = (M = e.kgButton) == null ? void 0 : M.cmd_prm) != null ? k : ""),
|
15120
|
+
data: b != null ? b : []
|
15053
15121
|
});
|
15054
15122
|
if (((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1) {
|
15055
|
-
if (((
|
15056
|
-
datas:
|
15123
|
+
if (((O = e.kgButton) == null ? void 0 : O.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
15124
|
+
datas: A
|
15057
15125
|
}) => {
|
15058
|
-
const P =
|
15059
|
-
return
|
15126
|
+
const P = A.value, D = intersectionWith$1(P, b != null ? b : [], (N, V) => (N == null ? void 0 : N[s.id.value]) === (V == null ? void 0 : V[s.id.value]));
|
15127
|
+
return D.length > 0 && s.store.setSelectedRows(r.formID, D), !1;
|
15060
15128
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15061
15129
|
button: e.kgButton,
|
15062
|
-
data:
|
15130
|
+
data: I
|
15063
15131
|
}))
|
15064
15132
|
return;
|
15065
15133
|
a.search(!0);
|
15066
15134
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
15067
15135
|
button: e.kgButton,
|
15068
|
-
data:
|
15136
|
+
data: I
|
15069
15137
|
}))
|
15070
15138
|
return;
|
15071
|
-
} catch (
|
15072
|
-
console.error(
|
15139
|
+
} catch (I) {
|
15140
|
+
console.error(I);
|
15073
15141
|
} finally {
|
15074
15142
|
r.store.setIsOtherRequesting(r.formID, !1), p == null || p.hideLoading();
|
15075
15143
|
}
|
15076
15144
|
};
|
15077
15145
|
if (((m = e.kgButton) == null ? void 0 : m.show_modal_flg) === 1) {
|
15078
|
-
const
|
15079
|
-
typeof
|
15146
|
+
const b = KgUtil.tryParseJSON((g = e.kgButton) == null ? void 0 : g.modal_props);
|
15147
|
+
typeof b.content == "string" && (b.content = r.t(b.content).value), p = KgUtil.confirm({
|
15080
15148
|
onOk: () => v(),
|
15081
|
-
...
|
15149
|
+
...b
|
15082
15150
|
});
|
15083
15151
|
} else
|
15084
15152
|
v();
|
@@ -15160,17 +15228,17 @@ const KgButtonCreate = defineComponent({
|
|
15160
15228
|
const n = useKg(), s = useKgVar(), l = useKgTable(), o = useKgButton(), i = useKgSubmit();
|
15161
15229
|
o.store.$onAction(async ({
|
15162
15230
|
name: C,
|
15163
|
-
args:
|
15231
|
+
args: M
|
15164
15232
|
}) => {
|
15165
15233
|
switch (C) {
|
15166
15234
|
case "click":
|
15167
|
-
|
15235
|
+
M[0] === s.formID && await p();
|
15168
15236
|
break;
|
15169
15237
|
}
|
15170
15238
|
});
|
15171
15239
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
15172
|
-
var C,
|
15173
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
15240
|
+
var C, M, k, T, O, I, w, A;
|
15241
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((k = (M = l.selectedRows.value) == null ? void 0 : M.length) != null ? k : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (O = l.selectedRows.value) == null ? void 0 : O.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((A = c.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15174
15242
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
15175
15243
|
async function p() {
|
15176
15244
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -15194,8 +15262,8 @@ const KgButtonCreate = defineComponent({
|
|
15194
15262
|
function g() {
|
15195
15263
|
return e.kgText ? e.kgText : n.t("kg.update");
|
15196
15264
|
}
|
15197
|
-
function
|
15198
|
-
var C,
|
15265
|
+
function b() {
|
15266
|
+
var C, M, k, T;
|
15199
15267
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
|
15200
15268
|
type: "primary",
|
15201
15269
|
disabled: u.value,
|
@@ -15203,14 +15271,14 @@ const KgButtonCreate = defineComponent({
|
|
15203
15271
|
onClick: p,
|
15204
15272
|
class: a.class,
|
15205
15273
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
15206
|
-
"kg-frm_id": (
|
15207
|
-
"kg-var_nam": (
|
15274
|
+
"kg-frm_id": (M = c.value) == null ? void 0 : M.frm_id,
|
15275
|
+
"kg-var_nam": (k = c.value) == null ? void 0 : k.var_nam,
|
15208
15276
|
"kg-cmd": (T = c.value) == null ? void 0 : T.cmd
|
15209
15277
|
}, {
|
15210
15278
|
default: () => [m(), g()]
|
15211
15279
|
});
|
15212
15280
|
}
|
15213
|
-
function
|
15281
|
+
function y() {
|
15214
15282
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
15215
15283
|
type: "primary",
|
15216
15284
|
onClick: v,
|
@@ -15226,7 +15294,7 @@ const KgButtonCreate = defineComponent({
|
|
15226
15294
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
15227
15295
|
})]);
|
15228
15296
|
}
|
15229
|
-
return () => createVNode(Fragment, null, [
|
15297
|
+
return () => createVNode(Fragment, null, [b(), y()]);
|
15230
15298
|
}
|
15231
15299
|
}), KgButton_Item = "";
|
15232
15300
|
function _isSlot$4(e) {
|
@@ -15300,8 +15368,8 @@ const getProps$e = () => ({
|
|
15300
15368
|
}
|
15301
15369
|
function i(m) {
|
15302
15370
|
return computed(() => {
|
15303
|
-
var
|
15304
|
-
const g = ((
|
15371
|
+
var b, y;
|
15372
|
+
const g = ((y = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgButton) == null ? void 0 : y.kgDisabled) || e.kgDisabled;
|
15305
15373
|
if (g) {
|
15306
15374
|
const C = g(m);
|
15307
15375
|
if (!isNil(C))
|
@@ -15364,10 +15432,10 @@ const getProps$e = () => ({
|
|
15364
15432
|
overlay: () => createVNode(Menu, null, {
|
15365
15433
|
default: () => {
|
15366
15434
|
var m, g;
|
15367
|
-
return [(g = (m = n.varButtons.value) == null ? void 0 : m.filter((
|
15368
|
-
let
|
15369
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
15370
|
-
default: () => [
|
15435
|
+
return [(g = (m = n.varButtons.value) == null ? void 0 : m.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : g.filter((b) => !(b.permission_type !== 2 && !a.p(b.permission_code))).map((b) => {
|
15436
|
+
let y;
|
15437
|
+
return createVNode(Menu.Item, null, _isSlot$3(y = p(b)) ? y : {
|
15438
|
+
default: () => [y]
|
15371
15439
|
});
|
15372
15440
|
})];
|
15373
15441
|
}
|
@@ -15628,15 +15696,17 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
15628
15696
|
}).bind(null, pinia())), store$2);
|
15629
15697
|
function useKgSearch(e) {
|
15630
15698
|
const t = useKgVar(e), r = useKgSearchStore()(), a = computed(() => r.getIsReady(t.formID)), n = computed(() => r.getModel(t.formID)), s = computed(() => r.getOperatorModel(t.formID)), l = (i) => {
|
15631
|
-
const c =
|
15632
|
-
|
15633
|
-
async (
|
15634
|
-
if (
|
15635
|
-
setTimeout(() =>
|
15636
|
-
const
|
15637
|
-
if (!
|
15638
|
-
|
15639
|
-
|
15699
|
+
const c = watch(
|
15700
|
+
a,
|
15701
|
+
async (u) => {
|
15702
|
+
if (u) {
|
15703
|
+
setTimeout(() => c());
|
15704
|
+
const d = r.getSearchFn(t.formID);
|
15705
|
+
if (!d) {
|
15706
|
+
KgLogger.error(`${t.formID} | useKgSearch | search() | \u67E5\u8BE2\u51FD\u6570\u4E3A\u7A7A.`);
|
15707
|
+
return;
|
15708
|
+
}
|
15709
|
+
d(i);
|
15640
15710
|
}
|
15641
15711
|
},
|
15642
15712
|
{ immediate: !0 }
|
@@ -15853,7 +15923,7 @@ function _useDragRow(e, t, r) {
|
|
15853
15923
|
if (n = filter(document.querySelectorAll(`tr[kg-host-frm_id="${e}"] > td.handler`), () => !0), n)
|
15854
15924
|
for (let u of n)
|
15855
15925
|
u.__kg__dragstart__ = async (d) => {
|
15856
|
-
var g,
|
15926
|
+
var g, b;
|
15857
15927
|
s = u.parentElement, u.classList.add("dragging"), u.parentElement.classList.add("dragging");
|
15858
15928
|
const p = document.createElement("span");
|
15859
15929
|
p.setAttribute("id", "__kg_search_config_fields_drag_image__");
|
@@ -15863,7 +15933,7 @@ function _useDragRow(e, t, r) {
|
|
15863
15933
|
} = u.parentElement.getBoundingClientRect();
|
15864
15934
|
v && E && (p.style.width = `${v + 2}px`, p.style.height = `${E + 2}px`), (g = d.dataTransfer) == null || g.setDragImage(p, -10, (E + 2) / 2);
|
15865
15935
|
const m = await toCanvas(u.parentElement);
|
15866
|
-
p.appendChild(m), document.body.appendChild(p), (
|
15936
|
+
p.appendChild(m), document.body.appendChild(p), (b = d.dataTransfer) == null || b.setDragImage(p, -10, (E + 2) / 2);
|
15867
15937
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
15868
15938
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
15869
15939
|
const p = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -15911,10 +15981,10 @@ function _useDragRow(e, t, r) {
|
|
15911
15981
|
if (p === -1 || v === -1)
|
15912
15982
|
return;
|
15913
15983
|
const E = t.value.find((g) => g.var_nam === u), m = [];
|
15914
|
-
t.value.forEach((g,
|
15915
|
-
p > v ?
|
15916
|
-
}), m.forEach((g,
|
15917
|
-
g.srtseq =
|
15984
|
+
t.value.forEach((g, b) => {
|
15985
|
+
p > v ? b < v ? m.push(g) : b === v ? (m.push(E), m.push(g)) : b > v && b !== p && m.push(g) : p < v && (b < p ? m.push(g) : b === p || (b === v ? (m.push(g), m.push(E)) : m.push(g)));
|
15986
|
+
}), m.forEach((g, b) => {
|
15987
|
+
g.srtseq = b + 1;
|
15918
15988
|
}), t.value = m, nextTick().finally(() => {
|
15919
15989
|
KgUtil.hideLoading();
|
15920
15990
|
});
|
@@ -15945,40 +16015,40 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15945
16015
|
}), !1)), o.onOpen(async ({
|
15946
16016
|
isCreating: m,
|
15947
16017
|
isUpdating: g,
|
15948
|
-
isCopying:
|
15949
|
-
row:
|
16018
|
+
isCopying: b,
|
16019
|
+
row: y,
|
15950
16020
|
model: C
|
15951
16021
|
}) => {
|
15952
|
-
var
|
15953
|
-
const
|
15954
|
-
switch (i.value =
|
16022
|
+
var k, T, O, I, w;
|
16023
|
+
const M = r.store.getSystemVarProfileDetails(r.formID);
|
16024
|
+
switch (i.value = M ? cloneDeep(unref(toRaw(M))) : [], !0) {
|
15955
16025
|
case m: {
|
15956
16026
|
c.value = [];
|
15957
16027
|
break;
|
15958
16028
|
}
|
15959
16029
|
case g:
|
15960
|
-
case
|
15961
|
-
if (
|
16030
|
+
case b: {
|
16031
|
+
if (y != null && y.id)
|
15962
16032
|
try {
|
15963
16033
|
o.store.setIsLoading(a.formID, !0);
|
15964
|
-
const
|
16034
|
+
const A = await QueryByID({
|
15965
16035
|
params: {
|
15966
|
-
id:
|
16036
|
+
id: y.id
|
15967
16037
|
}
|
15968
16038
|
});
|
15969
|
-
i.value = i.value.map((
|
15970
|
-
var
|
15971
|
-
const N = (
|
16039
|
+
i.value = i.value.map((D) => {
|
16040
|
+
var V;
|
16041
|
+
const N = (V = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : V.find((R) => R.var_nam === D.var_nam);
|
15972
16042
|
return N ? {
|
15973
|
-
...
|
16043
|
+
...D,
|
15974
16044
|
...N,
|
15975
|
-
id:
|
15976
|
-
} :
|
16045
|
+
id: D.id
|
16046
|
+
} : D;
|
15977
16047
|
});
|
15978
|
-
const P = (T = (
|
15979
|
-
c.value = i.value.filter((
|
15980
|
-
} catch (
|
15981
|
-
throw
|
16048
|
+
const P = (T = (k = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : k.map((D) => D.var_nam)) != null ? T : [];
|
16049
|
+
c.value = i.value.filter((D) => P.includes(D.var_nam)).map((D) => D.id);
|
16050
|
+
} catch (A) {
|
16051
|
+
throw A;
|
15982
16052
|
} finally {
|
15983
16053
|
o.store.setIsLoading(a.formID, !1);
|
15984
16054
|
}
|
@@ -15988,8 +16058,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15988
16058
|
}
|
15989
16059
|
}
|
15990
16060
|
switch (!0) {
|
15991
|
-
case
|
15992
|
-
C.value.prf_var_nam = ((
|
16061
|
+
case b: {
|
16062
|
+
C.value.prf_var_nam = ((O = C.value.prf_var_nam) != null ? O : "") + "_COPY", C.value.prf_var_nam_dsc = ((w = (I = C.value.prf_var_nam_dsc) != null ? I : C.value.prf_var_nam) != null ? w : "") + "_COPY";
|
15993
16063
|
break;
|
15994
16064
|
}
|
15995
16065
|
}
|
@@ -15997,9 +16067,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15997
16067
|
}), o.onBeforeOk(async ({
|
15998
16068
|
model: m
|
15999
16069
|
}) => {
|
16000
|
-
var
|
16070
|
+
var b, y;
|
16001
16071
|
const g = m.value;
|
16002
|
-
return g.frm_id = r.formID, g.varProfileDetails = (
|
16072
|
+
return g.frm_id = r.formID, g.varProfileDetails = (y = (b = i.value) == null ? void 0 : b.filter((C) => c.value.includes(C.id))) != null ? y : [], !1;
|
16003
16073
|
}), o.onOk(async () => (r.store.retrieve(r.formID), !1)), l.onUpdateBeforeClick(({
|
16004
16074
|
row: m
|
16005
16075
|
}) => (m == null ? void 0 : m.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((g) => {
|
@@ -16047,23 +16117,23 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16047
16117
|
showSelectAll: !1,
|
16048
16118
|
searchPlaceholder: " ",
|
16049
16119
|
filterOption: (m, g) => {
|
16050
|
-
var
|
16051
|
-
return !!((
|
16120
|
+
var b;
|
16121
|
+
return !!((b = g.var_nam) != null && b.includes(m));
|
16052
16122
|
}
|
16053
16123
|
}, {
|
16054
16124
|
children: ({
|
16055
16125
|
direction: m,
|
16056
16126
|
filteredItems: g,
|
16057
|
-
selectedKeys:
|
16058
|
-
disabled:
|
16127
|
+
selectedKeys: b,
|
16128
|
+
disabled: y,
|
16059
16129
|
onItemSelectAll: C,
|
16060
|
-
onItemSelect:
|
16130
|
+
onItemSelect: M
|
16061
16131
|
}) => {
|
16062
|
-
const
|
16063
|
-
var
|
16064
|
-
return ((
|
16132
|
+
const k = g.sort((T, O) => {
|
16133
|
+
var I, w;
|
16134
|
+
return ((I = T.srtseq) != null ? I : 0) - ((w = O.srtseq) != null ? w : 0);
|
16065
16135
|
});
|
16066
|
-
return u.value =
|
16136
|
+
return u.value = k, createVNode(Table, {
|
16067
16137
|
pagination: !1,
|
16068
16138
|
class: "kg-flex-table",
|
16069
16139
|
size: "small",
|
@@ -16073,18 +16143,18 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16073
16143
|
},
|
16074
16144
|
columns: m === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
16075
16145
|
rowKey: "id",
|
16076
|
-
dataSource:
|
16146
|
+
dataSource: k,
|
16077
16147
|
customRow: (T) => {
|
16078
|
-
let
|
16079
|
-
onClick: (
|
16148
|
+
let O = {
|
16149
|
+
onClick: (I) => E(I, T, m, b)
|
16080
16150
|
};
|
16081
|
-
return m === "right" && (
|
16151
|
+
return m === "right" && (O["kg-host-frm_id"] = r.formID, O["kg-var_nam"] = T.var_nam), O;
|
16082
16152
|
},
|
16083
16153
|
rowSelection: v({
|
16084
|
-
disabled:
|
16085
|
-
selectedKeys:
|
16154
|
+
disabled: y,
|
16155
|
+
selectedKeys: b,
|
16086
16156
|
onItemSelectAll: C,
|
16087
|
-
onItemSelect:
|
16157
|
+
onItemSelect: M
|
16088
16158
|
})
|
16089
16159
|
}, null);
|
16090
16160
|
}
|
@@ -16094,34 +16164,34 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16094
16164
|
}), v = ({
|
16095
16165
|
disabled: m,
|
16096
16166
|
selectedKeys: g,
|
16097
|
-
onItemSelectAll:
|
16098
|
-
onItemSelect:
|
16167
|
+
onItemSelectAll: b,
|
16168
|
+
onItemSelect: y
|
16099
16169
|
}) => ({
|
16100
16170
|
getCheckboxProps: (C) => ({
|
16101
16171
|
disabled: m || C.disabled
|
16102
16172
|
}),
|
16103
|
-
onSelectAll(C,
|
16104
|
-
const
|
16173
|
+
onSelectAll(C, M) {
|
16174
|
+
const k = M.filter((T) => !T.disabled).map(({
|
16105
16175
|
key: T
|
16106
16176
|
}) => T);
|
16107
|
-
|
16177
|
+
b(k, C);
|
16108
16178
|
},
|
16109
16179
|
onSelect({
|
16110
16180
|
key: C
|
16111
|
-
},
|
16112
|
-
|
16181
|
+
}, M) {
|
16182
|
+
y(C, M);
|
16113
16183
|
},
|
16114
16184
|
selectedRowKeys: g,
|
16115
16185
|
columnWidth: 32
|
16116
16186
|
});
|
16117
|
-
function E(m, g,
|
16187
|
+
function E(m, g, b, y) {
|
16118
16188
|
if (!KgDomUtil.isNotClickable(m.target, ["ant-input"]))
|
16119
|
-
switch (
|
16189
|
+
switch (y.length = 0, m.detail) {
|
16120
16190
|
case 1:
|
16121
|
-
|
16191
|
+
y[0] = g.id;
|
16122
16192
|
break;
|
16123
16193
|
case 2:
|
16124
|
-
switch (
|
16194
|
+
switch (b) {
|
16125
16195
|
case "left":
|
16126
16196
|
c.value.push(g.id);
|
16127
16197
|
break;
|
@@ -16263,9 +16333,9 @@ function _useFormModel(e, t, r) {
|
|
16263
16333
|
async function p() {
|
16264
16334
|
var v;
|
16265
16335
|
((v = n.currentVarProfileDetails.value) != null ? v : []).forEach((E) => {
|
16266
|
-
var g,
|
16336
|
+
var g, b, y;
|
16267
16337
|
const m = (g = E.var_nam) != null ? g : "";
|
16268
|
-
u.value[m] = KgVarUtil.transformFormItemValue(n.formID, m, a, (
|
16338
|
+
u.value[m] = KgVarUtil.transformFormItemValue(n.formID, m, a, (b = E.dft_val) != null ? b : void 0, "R"), d.value[m] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, m, (y = E.dft_dyn_op) != null ? y : void 0);
|
16269
16339
|
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), l.value ? (c == null || c(), c = watch(t, async (E) => {
|
16270
16340
|
E && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
16271
16341
|
}, {
|
@@ -16312,22 +16382,22 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16312
16382
|
kgHeight: p.value
|
16313
16383
|
});
|
16314
16384
|
_useLayoutHeaderResizeObserver();
|
16315
|
-
const g = _useFormModel(v, E, m),
|
16385
|
+
const g = _useFormModel(v, E, m), b = computed(() => {
|
16316
16386
|
var L, H, Q, X;
|
16317
16387
|
if (!isNil((H = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgSearch) == null ? void 0 : H.kgDisabled))
|
16318
16388
|
return (X = (Q = r == null ? void 0 : r.value) == null ? void 0 : Q.KgSearch) == null ? void 0 : X.kgDisabled;
|
16319
16389
|
if (!isNil(e.kgDisabled))
|
16320
16390
|
return e.kgDisabled;
|
16321
|
-
}),
|
16391
|
+
}), y = computed(() => {
|
16322
16392
|
var L, H;
|
16323
|
-
return !!(
|
16324
|
-
}), C = computed(() => !!(
|
16393
|
+
return !!(b.value || l.isRetrieving.value || ((L = n.varButtonSearch.value) == null ? void 0 : L.permission_type) === 2 && !a.p((H = n.varButtonSearch.value) == null ? void 0 : H.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
16394
|
+
}), C = computed(() => !!(b.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), M = computed(() => !!(b.value || l.isRetrieving.value)), k = ref({
|
16325
16395
|
visible: !1
|
16326
|
-
}), T = computed(() => m.value.kgHeight === p.value),
|
16396
|
+
}), T = computed(() => m.value.kgHeight === p.value), O = computed(() => {
|
16327
16397
|
var L, H, Q;
|
16328
16398
|
if (n.t((L = n.varButtonSearch.value) == null ? void 0 : L.var_nam).value !== ((H = n.varButtonSearch.value) == null ? void 0 : H.var_nam))
|
16329
16399
|
return n.t((Q = n.varButtonSearch.value) == null ? void 0 : Q.var_nam).value;
|
16330
|
-
}),
|
16400
|
+
}), I = computed(() => {
|
16331
16401
|
var L;
|
16332
16402
|
switch ((L = n.varButtonSearch.value) == null ? void 0 : L.primary_flg) {
|
16333
16403
|
case 1:
|
@@ -16337,12 +16407,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16337
16407
|
default:
|
16338
16408
|
return !0;
|
16339
16409
|
}
|
16340
|
-
}),
|
16410
|
+
}), w = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), A = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), P = computed(() => {
|
16341
16411
|
let L = "kg-search";
|
16342
16412
|
return o.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
|
16343
16413
|
});
|
16344
|
-
async function
|
16345
|
-
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`),
|
16414
|
+
async function D(L = !1) {
|
16415
|
+
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), y.value) {
|
16346
16416
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
|
16347
16417
|
return;
|
16348
16418
|
}
|
@@ -16358,7 +16428,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16358
16428
|
resetPageIndex: L
|
16359
16429
|
}));
|
16360
16430
|
}
|
16361
|
-
s.store.setSearchFn(n.formID,
|
16431
|
+
s.store.setSearchFn(n.formID, D);
|
16362
16432
|
async function N() {
|
16363
16433
|
g.initFormModel(), o.value ? E.value && E.value.validate().then(async () => {
|
16364
16434
|
await s.store.emit(n.formID, "reset", {});
|
@@ -16369,10 +16439,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16369
16439
|
}) : await s.store.emit(n.formID, "reset", {});
|
16370
16440
|
}
|
16371
16441
|
s.store.setResetFn(n.formID, N);
|
16372
|
-
function D() {
|
16373
|
-
return O(!0), Promise.resolve(!0);
|
16374
|
-
}
|
16375
16442
|
function V() {
|
16443
|
+
return D(!0), Promise.resolve(!0);
|
16444
|
+
}
|
16445
|
+
function R() {
|
16376
16446
|
var L;
|
16377
16447
|
return createVNode("div", {
|
16378
16448
|
class: "title",
|
@@ -16406,14 +16476,14 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16406
16476
|
}), createVNode(Button, {
|
16407
16477
|
disabled: C.value,
|
16408
16478
|
onClick: () => {
|
16409
|
-
|
16479
|
+
k.value.visible = !0;
|
16410
16480
|
},
|
16411
16481
|
class: "kg-search-profile-master-btn"
|
16412
16482
|
}, {
|
16413
16483
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
16414
16484
|
}), createVNode(KgSearchConfigModal, {
|
16415
|
-
visible:
|
16416
|
-
"onUpdate:visible": (q) =>
|
16485
|
+
visible: k.value.visible,
|
16486
|
+
"onUpdate:visible": (q) => k.value.visible = q,
|
16417
16487
|
hostFormID: n.formID
|
16418
16488
|
}, null)]);
|
16419
16489
|
}
|
@@ -16421,8 +16491,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16421
16491
|
var L, H, Q, X, q;
|
16422
16492
|
return createVNode(Fragment, null, [$(), !(((L = n.varButtonSearch.value) == null ? void 0 : L.permission_type) !== 2 && !a.p((H = n.varButtonSearch.value) == null ? void 0 : H.permission_code)) && createVNode(Button, {
|
16423
16493
|
type: "primary",
|
16424
|
-
ghost: !
|
16425
|
-
disabled:
|
16494
|
+
ghost: !y.value,
|
16495
|
+
disabled: y.value,
|
16426
16496
|
onClick: N,
|
16427
16497
|
class: "kg-search-btn-reset"
|
16428
16498
|
}, {
|
@@ -16431,16 +16501,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16431
16501
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
16432
16502
|
kgVarName: (Q = n.varButtonSearch.value) == null ? void 0 : Q.var_nam,
|
16433
16503
|
kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
|
16434
|
-
kgText:
|
16504
|
+
kgText: O.value,
|
16435
16505
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
16436
|
-
kgPrimary:
|
16437
|
-
kgLoading:
|
16438
|
-
onKgClick:
|
16506
|
+
kgPrimary: I.value,
|
16507
|
+
kgLoading: M.value,
|
16508
|
+
onKgClick: V
|
16439
16509
|
}, null)]);
|
16440
16510
|
}
|
16441
16511
|
function F() {
|
16442
16512
|
return createVNode(Spin, {
|
16443
|
-
spinning:
|
16513
|
+
spinning: A.value
|
16444
16514
|
}, {
|
16445
16515
|
default: () => {
|
16446
16516
|
var L;
|
@@ -16457,7 +16527,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16457
16527
|
key: Q.var_nam,
|
16458
16528
|
kgVarName: Q.var_nam,
|
16459
16529
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
16460
|
-
onKgSubmit: () =>
|
16530
|
+
onKgSubmit: () => D(!0)
|
16461
16531
|
}, null))];
|
16462
16532
|
}
|
16463
16533
|
})]
|
@@ -16489,9 +16559,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16489
16559
|
default: () => [createVNode("div", {
|
16490
16560
|
class: "ant-collapse-header"
|
16491
16561
|
}, [createVNode(Spin, {
|
16492
|
-
spinning:
|
16562
|
+
spinning: w.value
|
16493
16563
|
}, {
|
16494
|
-
default: () => [
|
16564
|
+
default: () => [R(), createVNode("div", {
|
16495
16565
|
class: "ant-collapse-extra"
|
16496
16566
|
}, [x()])]
|
16497
16567
|
})])]
|
@@ -16564,28 +16634,28 @@ function useMagicKeys(e = {}) {
|
|
16564
16634
|
d(m, !1);
|
16565
16635
|
}
|
16566
16636
|
function v(m, g) {
|
16567
|
-
var
|
16568
|
-
const C = (
|
16569
|
-
|
16570
|
-
for (const T of
|
16637
|
+
var b, y;
|
16638
|
+
const C = (b = m.key) == null ? void 0 : b.toLowerCase(), M = (y = m.code) == null ? void 0 : y.toLowerCase(), k = [M, C].filter(Boolean);
|
16639
|
+
M && (g ? l.add(m.code) : l.delete(m.code));
|
16640
|
+
for (const T of k)
|
16571
16641
|
u.add(T), d(T, g);
|
16572
16642
|
C === "meta" && !g ? (c.forEach((T) => {
|
16573
16643
|
l.delete(T), d(T, !1);
|
16574
|
-
}), c.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && g && [...l, ...
|
16644
|
+
}), c.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && g && [...l, ...k].forEach((T) => c.add(T));
|
16575
16645
|
}
|
16576
16646
|
r && (useEventListener(r, "keydown", (m) => (v(m, !0), s(m)), { passive: n }), useEventListener(r, "keyup", (m) => (v(m, !1), s(m)), { passive: n }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
16577
16647
|
const E = new Proxy(i, {
|
16578
|
-
get(m, g,
|
16648
|
+
get(m, g, b) {
|
16579
16649
|
if (typeof g != "string")
|
16580
|
-
return Reflect.get(m, g,
|
16650
|
+
return Reflect.get(m, g, b);
|
16581
16651
|
if (g = g.toLowerCase(), g in a && (g = a[g]), !(g in i))
|
16582
16652
|
if (/[+_-]/.test(g)) {
|
16583
|
-
const C = g.split(/[+_-]/g).map((
|
16584
|
-
i[g] = computed(() => C.every((
|
16653
|
+
const C = g.split(/[+_-]/g).map((M) => M.trim());
|
16654
|
+
i[g] = computed(() => C.every((M) => unref(E[M])));
|
16585
16655
|
} else
|
16586
16656
|
i[g] = ref(!1);
|
16587
|
-
const
|
16588
|
-
return t ? unref(
|
16657
|
+
const y = Reflect.get(m, g, b);
|
16658
|
+
return t ? unref(y) : y;
|
16589
16659
|
}
|
16590
16660
|
});
|
16591
16661
|
return E;
|
@@ -16970,23 +17040,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16970
17040
|
columnWidth: 32,
|
16971
17041
|
hideSelectAll: !0,
|
16972
17042
|
selectedRowKeys: d,
|
16973
|
-
onSelect: (
|
17043
|
+
onSelect: (D) => O(D)
|
16974
17044
|
}), v = ref({
|
16975
17045
|
visible: !1
|
16976
17046
|
}), E = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), m = computed(() => {
|
16977
|
-
var
|
16978
|
-
return !!u.value || ((
|
16979
|
-
}), g = computed(() => !!(!unref(u) || unref(n) || unref(s))),
|
16980
|
-
watch(() => a.getSelectedVar, (
|
16981
|
-
|
17047
|
+
var D;
|
17048
|
+
return !!u.value || ((D = a.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
17049
|
+
}), g = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
17050
|
+
watch(() => a.getSelectedVar, (D) => {
|
17051
|
+
D ? y() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
16982
17052
|
}, {
|
16983
17053
|
immediate: !0
|
16984
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
16985
|
-
var N,
|
16986
|
-
i.value.var_text = (N =
|
17054
|
+
}), watch(() => a.getSelectedVarCatalog, async (D) => {
|
17055
|
+
var N, V;
|
17056
|
+
i.value.var_text = (N = D == null ? void 0 : D.var_text) != null ? N : "", (V = o.value) == null || V.clearValidate();
|
16987
17057
|
});
|
16988
|
-
async function
|
16989
|
-
var N,
|
17058
|
+
async function y(D = !1) {
|
17059
|
+
var N, V, R;
|
16990
17060
|
n.value = !0;
|
16991
17061
|
try {
|
16992
17062
|
const {
|
@@ -17001,14 +17071,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17001
17071
|
order: "asc"
|
17002
17072
|
}
|
17003
17073
|
});
|
17004
|
-
if (u.value = null, c.value = $ != null ? $ : [],
|
17074
|
+
if (u.value = null, c.value = $ != null ? $ : [], D) {
|
17005
17075
|
const x = c.value.find((F) => {
|
17006
17076
|
var G;
|
17007
17077
|
return F.id === ((G = a.getSelectedVarCatalog) == null ? void 0 : G.id);
|
17008
17078
|
});
|
17009
17079
|
a.setSelectedVarCatalog(x != null ? x : null), d.value = x != null && x.id ? [x.id] : [];
|
17010
17080
|
} else
|
17011
|
-
a.setSelectedVarCatalog((
|
17081
|
+
a.setSelectedVarCatalog((V = c.value[0]) != null ? V : null), d.value = (R = c.value[0]) != null && R.id ? [c.value[0].id] : [];
|
17012
17082
|
} catch ($) {
|
17013
17083
|
KgLogger.debug($ == null ? void 0 : $.message);
|
17014
17084
|
} finally {
|
@@ -17016,93 +17086,93 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17016
17086
|
}
|
17017
17087
|
}
|
17018
17088
|
async function C() {
|
17019
|
-
var
|
17089
|
+
var D, N, V;
|
17020
17090
|
try {
|
17021
|
-
s.value = !0, await ((
|
17022
|
-
const
|
17091
|
+
s.value = !0, await ((D = o.value) == null ? void 0 : D.validate());
|
17092
|
+
const R = new VarCatalog({
|
17023
17093
|
...(N = a.getSelectedVarCatalog) != null ? N : {},
|
17024
|
-
var_text: (
|
17094
|
+
var_text: (V = i.value) == null ? void 0 : V.var_text
|
17025
17095
|
});
|
17026
|
-
|
17027
|
-
data:
|
17096
|
+
R.id ? R.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (R.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(R, "id"), await Add({
|
17097
|
+
data: R
|
17028
17098
|
}, {
|
17029
17099
|
successMessageMode: "none"
|
17030
17100
|
}), message.success({
|
17031
17101
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17032
|
-
}), await
|
17033
|
-
data:
|
17102
|
+
}), await y()) : (await Edit({
|
17103
|
+
data: R
|
17034
17104
|
}, {
|
17035
17105
|
successMessageMode: "none"
|
17036
17106
|
}), message.success({
|
17037
17107
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
17038
|
-
}), await
|
17039
|
-
data:
|
17108
|
+
}), await y(!0)) : (await Add({
|
17109
|
+
data: R
|
17040
17110
|
}, {
|
17041
17111
|
successMessageMode: "none"
|
17042
17112
|
}), message.success({
|
17043
17113
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17044
|
-
}), await
|
17045
|
-
} catch (
|
17046
|
-
KgUtil.throwIfNotFormError(
|
17114
|
+
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
17115
|
+
} catch (R) {
|
17116
|
+
KgUtil.throwIfNotFormError(R);
|
17047
17117
|
} finally {
|
17048
17118
|
s.value = !1;
|
17049
17119
|
}
|
17050
17120
|
}
|
17051
|
-
function
|
17052
|
-
isAllForm:
|
17121
|
+
function M({
|
17122
|
+
isAllForm: D,
|
17053
17123
|
isAllLanguage: N
|
17054
17124
|
}) {
|
17055
|
-
var
|
17125
|
+
var V, R, $;
|
17056
17126
|
u.value = new VarCatalog({
|
17057
17127
|
id: "",
|
17058
17128
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
17059
|
-
grp_nam: (
|
17060
|
-
var_nam: (
|
17061
|
-
frm_id:
|
17129
|
+
grp_nam: (V = a.getSelectedVar) == null ? void 0 : V.grp_nam,
|
17130
|
+
var_nam: (R = a.getSelectedVar) == null ? void 0 : R.var_nam,
|
17131
|
+
frm_id: D || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17062
17132
|
locale_id: N ? "ALL" : ($ = t.locale) == null ? void 0 : $.value,
|
17063
17133
|
var_text: ""
|
17064
17134
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17065
17135
|
}
|
17066
|
-
function
|
17136
|
+
function k() {
|
17067
17137
|
var N;
|
17068
17138
|
c.value = without$1(c.value, u.value), u.value = null;
|
17069
|
-
const
|
17070
|
-
a.setSelectedVarCatalog(
|
17139
|
+
const D = (N = c.value[0]) != null ? N : null;
|
17140
|
+
a.setSelectedVarCatalog(D), d.value = D ? [D.id] : [];
|
17071
17141
|
}
|
17072
17142
|
function T() {
|
17073
17143
|
KgUtil.confirm({
|
17074
17144
|
onOk: async () => {
|
17075
|
-
var
|
17145
|
+
var D;
|
17076
17146
|
await Delete({
|
17077
17147
|
params: {
|
17078
|
-
id: (
|
17148
|
+
id: (D = a.getSelectedVarCatalog) == null ? void 0 : D.id
|
17079
17149
|
}
|
17080
17150
|
}, {
|
17081
17151
|
successMessageMode: "none",
|
17082
17152
|
joinParamsToUrl: !0
|
17083
17153
|
}), message.success({
|
17084
17154
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
17085
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
17155
|
+
}), r.retrieve(e == null ? void 0 : e.value), await y();
|
17086
17156
|
}
|
17087
17157
|
});
|
17088
17158
|
}
|
17089
|
-
function
|
17159
|
+
function O(D) {
|
17090
17160
|
var N;
|
17091
|
-
((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) !==
|
17161
|
+
((N = a.getSelectedVarCatalog) == null ? void 0 : N.id) !== D.id && (unref(u) ? KgUtil.confirm({
|
17092
17162
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17093
17163
|
onOk: () => {
|
17094
|
-
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(
|
17164
|
+
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(D)), d.value = [D.id];
|
17095
17165
|
}
|
17096
|
-
}) : (a.setSelectedVarCatalog(unref(
|
17166
|
+
}) : (a.setSelectedVarCatalog(unref(D)), d.value = [D.id]));
|
17097
17167
|
}
|
17098
|
-
function
|
17168
|
+
function I() {
|
17099
17169
|
v.value.visible = !0;
|
17100
17170
|
}
|
17101
|
-
function
|
17171
|
+
function w() {
|
17102
17172
|
return createVNode("div", {
|
17103
17173
|
class: "buttons"
|
17104
17174
|
}, [createVNode(Button, {
|
17105
|
-
onClick:
|
17175
|
+
onClick: I,
|
17106
17176
|
disabled: E.value,
|
17107
17177
|
type: "primary"
|
17108
17178
|
}, {
|
@@ -17117,8 +17187,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17117
17187
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
17118
17188
|
})]);
|
17119
17189
|
}
|
17120
|
-
function
|
17121
|
-
let
|
17190
|
+
function A() {
|
17191
|
+
let D, N;
|
17122
17192
|
return createVNode("div", {
|
17123
17193
|
class: "form"
|
17124
17194
|
}, [createVNode(Form, {
|
@@ -17135,7 +17205,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17135
17205
|
}, {
|
17136
17206
|
default: () => [createVNode(Textarea, {
|
17137
17207
|
value: i.value.var_text,
|
17138
|
-
"onUpdate:value": (
|
17208
|
+
"onUpdate:value": (V) => i.value.var_text = V,
|
17139
17209
|
disabled: !a.getSelectedVarCatalog
|
17140
17210
|
}, null), createVNode("button", {
|
17141
17211
|
hidden: !0
|
@@ -17145,26 +17215,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17145
17215
|
class: "buttons"
|
17146
17216
|
}, [createVNode(Button, {
|
17147
17217
|
disabled: g.value,
|
17148
|
-
onClick:
|
17149
|
-
}, _isSlot(
|
17150
|
-
default: () => [
|
17218
|
+
onClick: k
|
17219
|
+
}, _isSlot(D = t.t("common.cancelText")) ? D : {
|
17220
|
+
default: () => [D]
|
17151
17221
|
}), createVNode(Button, {
|
17152
17222
|
loading: s.value,
|
17153
|
-
disabled:
|
17223
|
+
disabled: b.value,
|
17154
17224
|
onClick: C,
|
17155
17225
|
type: "primary"
|
17156
17226
|
}, _isSlot(N = t.t("common.save")) ? N : {
|
17157
17227
|
default: () => [N]
|
17158
17228
|
})])]);
|
17159
17229
|
}
|
17160
|
-
function P(
|
17161
|
-
var
|
17230
|
+
function P(D) {
|
17231
|
+
var V;
|
17162
17232
|
let N = "";
|
17163
|
-
return
|
17233
|
+
return D.id || (N += " ant-table-row-create"), D.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (N += " ant-table-row-selected "), N;
|
17164
17234
|
}
|
17165
17235
|
return () => createVNode("div", {
|
17166
17236
|
class: "kg-var-config-modal-var-var-catalog"
|
17167
|
-
}, [
|
17237
|
+
}, [w(), createVNode(Table, {
|
17168
17238
|
pagination: !1,
|
17169
17239
|
class: "kg-flex-table",
|
17170
17240
|
size: "small",
|
@@ -17178,13 +17248,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17178
17248
|
loading: n.value,
|
17179
17249
|
rowClassName: P,
|
17180
17250
|
rowSelection: p.value,
|
17181
|
-
customRow: (
|
17182
|
-
onClick: () =>
|
17251
|
+
customRow: (D) => ({
|
17252
|
+
onClick: () => O(D)
|
17183
17253
|
})
|
17184
|
-
}, null),
|
17254
|
+
}, null), A(), createVNode(KgVarConfigModalVarCreateModal, {
|
17185
17255
|
visible: v.value.visible,
|
17186
|
-
"onUpdate:visible": (
|
17187
|
-
onKgOk:
|
17256
|
+
"onUpdate:visible": (D) => v.value.visible = D,
|
17257
|
+
onKgOk: M
|
17188
17258
|
}, null)]);
|
17189
17259
|
}
|
17190
17260
|
}), columns = () => [{
|
@@ -17419,13 +17489,13 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
|
|
17419
17489
|
return this.visible;
|
17420
17490
|
},
|
17421
17491
|
getWarehouse() {
|
17422
|
-
var r, a
|
17492
|
+
var r, a;
|
17423
17493
|
const t = this.warehouse || store_legacy.get(LOCAL_STORAGE_KEY, null);
|
17424
17494
|
if (!t) {
|
17425
|
-
const
|
17426
|
-
if (((
|
17427
|
-
const
|
17428
|
-
return
|
17495
|
+
const n = useKg(e);
|
17496
|
+
if (((r = n.option.value.KgWarehouse) == null ? void 0 : r.enable) === !1) {
|
17497
|
+
const s = (a = n.option.value.KgWarehouse) == null ? void 0 : a.defaultWarehouseID;
|
17498
|
+
return s ? { whId: s } : null;
|
17429
17499
|
}
|
17430
17500
|
}
|
17431
17501
|
return t;
|
@@ -17488,16 +17558,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17488
17558
|
emit: t
|
17489
17559
|
}) {
|
17490
17560
|
const r = useKg(), a = useKgWarehouse(), n = computed(() => {
|
17491
|
-
let
|
17492
|
-
return (!p.value || e.kgInvisible) && (
|
17561
|
+
let M = "jeecg-layout-header-action__item kg-warehouse";
|
17562
|
+
return (!p.value || e.kgInvisible) && (M += " kg-warehouse--invisible"), M;
|
17493
17563
|
}), s = ref(""), l = a.warehouse, o = ref(null), i = ref(!1), c = reactive([{
|
17494
17564
|
width: 80,
|
17495
17565
|
align: "center",
|
17496
17566
|
customRender: ({
|
17497
|
-
record:
|
17567
|
+
record: M
|
17498
17568
|
}) => {
|
17499
17569
|
var T;
|
17500
|
-
return
|
17570
|
+
return M.id === ((T = o.value) == null ? void 0 : T.id) ? createVNode("img", {
|
17501
17571
|
src: WAREHOUSE_1890ff
|
17502
17572
|
}, null) : createVNode("img", {
|
17503
17573
|
src: WAREHOUSE_000000
|
@@ -17505,27 +17575,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17505
17575
|
}
|
17506
17576
|
}, {
|
17507
17577
|
customRender: ({
|
17508
|
-
record:
|
17578
|
+
record: M
|
17509
17579
|
}) => {
|
17510
|
-
var T,
|
17511
|
-
const
|
17512
|
-
return createVNode("div", null, [createVNode("div", null, [(T =
|
17580
|
+
var T, O, I;
|
17581
|
+
const k = M;
|
17582
|
+
return createVNode("div", null, [createVNode("div", null, [(T = k.whDsc) != null ? T : " ", createTextVNode(" - "), (O = k.whId) != null ? O : " "]), createVNode("div", {
|
17513
17583
|
class: "address"
|
17514
|
-
}, [(
|
17584
|
+
}, [(I = k.adrId) != null ? I : " "])]);
|
17515
17585
|
}
|
17516
17586
|
}]), u = ref([]), d = computed(() => {
|
17517
|
-
var
|
17518
|
-
const
|
17587
|
+
var k;
|
17588
|
+
const M = (k = s.value) == null ? void 0 : k.toUpperCase();
|
17519
17589
|
return u.value.filter((T) => {
|
17520
|
-
var
|
17521
|
-
return ((
|
17590
|
+
var O, I, w, A, P, D;
|
17591
|
+
return ((I = (O = T.whDsc) == null ? void 0 : O.toUpperCase()) == null ? void 0 : I.includes(M)) || ((A = (w = T.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : A.includes(M)) || ((D = (P = T.adrId) == null ? void 0 : P.toUpperCase()) == null ? void 0 : D.includes(M));
|
17522
17592
|
});
|
17523
17593
|
}), p = computed(() => {
|
17524
|
-
var
|
17525
|
-
return ((
|
17594
|
+
var M;
|
17595
|
+
return ((M = r.option.value.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
17526
17596
|
});
|
17527
|
-
watch(a.visible, (
|
17528
|
-
!p.value || (
|
17597
|
+
watch(a.visible, (M) => {
|
17598
|
+
!p.value || (M ? E() : m());
|
17529
17599
|
}, {
|
17530
17600
|
immediate: !0
|
17531
17601
|
}), onMounted(() => {
|
@@ -17535,14 +17605,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17535
17605
|
!p.value || a.store.setVisible(!0);
|
17536
17606
|
}
|
17537
17607
|
function E() {
|
17538
|
-
o.value = a.warehouse.value,
|
17608
|
+
o.value = a.warehouse.value, b();
|
17539
17609
|
}
|
17540
17610
|
function m() {
|
17541
17611
|
s.value = "", u.value = [], o.value = null;
|
17542
17612
|
}
|
17543
17613
|
function g() {
|
17544
|
-
var
|
17545
|
-
!o.value || (e.kgInvisible ? (a.store.setWarehouse(o.value), t("kgOk")) : o.value.id !== ((
|
17614
|
+
var M;
|
17615
|
+
!o.value || (e.kgInvisible ? (a.store.setWarehouse(o.value), t("kgOk")) : o.value.id !== ((M = a.warehouse.value) == null ? void 0 : M.id) && (a.store.setWarehouse(o.value), KgUtil.confirm({
|
17546
17616
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
17547
17617
|
kgHideCancelButton: !0,
|
17548
17618
|
okButtonProps: {
|
@@ -17554,32 +17624,32 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17554
17624
|
}
|
17555
17625
|
})), a.store.setVisible(!1));
|
17556
17626
|
}
|
17557
|
-
async function
|
17627
|
+
async function b() {
|
17558
17628
|
i.value = !0;
|
17559
17629
|
try {
|
17560
17630
|
const {
|
17561
|
-
records:
|
17631
|
+
records: M
|
17562
17632
|
} = await ListVO({
|
17563
17633
|
params: {
|
17564
17634
|
pageNo: 1,
|
17565
17635
|
pageSize: 999
|
17566
17636
|
}
|
17567
17637
|
});
|
17568
|
-
u.value =
|
17569
|
-
} catch (
|
17570
|
-
console.error(
|
17638
|
+
u.value = M != null ? M : [];
|
17639
|
+
} catch (M) {
|
17640
|
+
console.error(M);
|
17571
17641
|
} finally {
|
17572
17642
|
i.value = !1;
|
17573
17643
|
}
|
17574
17644
|
}
|
17575
|
-
function
|
17645
|
+
function y(M, k) {
|
17576
17646
|
var T;
|
17577
|
-
switch (
|
17647
|
+
switch (M.detail) {
|
17578
17648
|
case 1:
|
17579
|
-
((T = o.value) == null ? void 0 : T.id) ===
|
17649
|
+
((T = o.value) == null ? void 0 : T.id) === k.id ? o.value = null : o.value = k;
|
17580
17650
|
break;
|
17581
17651
|
case 2:
|
17582
|
-
o.value =
|
17652
|
+
o.value = k, g();
|
17583
17653
|
break;
|
17584
17654
|
}
|
17585
17655
|
}
|
@@ -17589,12 +17659,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17589
17659
|
placement: "bottomRight"
|
17590
17660
|
}, {
|
17591
17661
|
default: () => {
|
17592
|
-
var
|
17593
|
-
return [((
|
17662
|
+
var M, k;
|
17663
|
+
return [((M = l.value) == null ? void 0 : M.whDsc) || ((k = l.value) == null ? void 0 : k.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
17594
17664
|
}
|
17595
17665
|
}), createVNode(KgModal, {
|
17596
17666
|
visible: a.visible.value,
|
17597
|
-
"onUpdate:visible": (
|
17667
|
+
"onUpdate:visible": (M) => a.store.setVisible(M),
|
17598
17668
|
title: r.t("kg.KgWarehouse.title"),
|
17599
17669
|
width: "500px",
|
17600
17670
|
kgFullHeight: !1,
|
@@ -17611,7 +17681,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17611
17681
|
}, {
|
17612
17682
|
default: () => [createVNode(Input, {
|
17613
17683
|
value: s.value,
|
17614
|
-
"onUpdate:value": (
|
17684
|
+
"onUpdate:value": (M) => s.value = M,
|
17615
17685
|
allowClear: !0,
|
17616
17686
|
disabled: i.value,
|
17617
17687
|
placeholder: r.t("kg.search")
|
@@ -17631,11 +17701,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17631
17701
|
dataSource: d.value,
|
17632
17702
|
columns: c,
|
17633
17703
|
class: "kg-flex-table",
|
17634
|
-
customRow: (
|
17635
|
-
var
|
17704
|
+
customRow: (M) => {
|
17705
|
+
var k;
|
17636
17706
|
return {
|
17637
|
-
class:
|
17638
|
-
onClick: (T) =>
|
17707
|
+
class: M.id === ((k = o.value) == null ? void 0 : k.id) ? "selected" : "",
|
17708
|
+
onClick: (T) => y(T, M)
|
17639
17709
|
};
|
17640
17710
|
}
|
17641
17711
|
}, null)]
|
@@ -17649,8 +17719,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17649
17719
|
});
|
17650
17720
|
function createKgWarehouseGuard(e, t) {
|
17651
17721
|
e.beforeEach(async () => {
|
17652
|
-
var n
|
17653
|
-
if (((
|
17722
|
+
var n;
|
17723
|
+
if (((n = useKg(t).option.value.KgWarehouse) == null ? void 0 : n.enable) === !1)
|
17654
17724
|
return !0;
|
17655
17725
|
const a = useKgWarehouse(t);
|
17656
17726
|
return a.onMounted(() => {
|
@@ -17659,10 +17729,10 @@ function createKgWarehouseGuard(e, t) {
|
|
17659
17729
|
if (e.currentRoute.value.path === "/login")
|
17660
17730
|
return;
|
17661
17731
|
a.store.setVisible(!0);
|
17662
|
-
const
|
17732
|
+
const s = watch(
|
17663
17733
|
a.warehouse,
|
17664
|
-
(
|
17665
|
-
|
17734
|
+
(l) => {
|
17735
|
+
l && setTimeout(() => s());
|
17666
17736
|
},
|
17667
17737
|
{ immediate: !0 }
|
17668
17738
|
);
|