@kengic/vue 0.7.3 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -2188,7 +2188,7 @@ var Icon$1 = function(t, r) {
|
|
2188
2188
|
var _ = i ? {
|
2189
2189
|
msTransform: "rotate(".concat(i, "deg)"),
|
2190
2190
|
transform: "rotate(".concat(i, "deg)")
|
2191
|
-
} : void 0,
|
2191
|
+
} : void 0, b = normalizeTwoToneColors(u), y = _slicedToArray(b, 2), T = y[0], k = y[1];
|
2192
2192
|
return createVNode("span", _objectSpread$k({
|
2193
2193
|
role: "img",
|
2194
2194
|
"aria-label": l.name
|
@@ -3001,15 +3001,15 @@ function iconToSVG(e, t) {
|
|
3001
3001
|
};
|
3002
3002
|
let s = r.body;
|
3003
3003
|
[r, a].forEach((C) => {
|
3004
|
-
const g = [], _ = C.hFlip,
|
3005
|
-
let
|
3006
|
-
_ ?
|
3004
|
+
const g = [], _ = C.hFlip, b = C.vFlip;
|
3005
|
+
let y = C.rotate;
|
3006
|
+
_ ? b ? y += 2 : (g.push(
|
3007
3007
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3008
|
-
), g.push("scale(-1 1)"), n.top = n.left = 0) :
|
3008
|
+
), g.push("scale(-1 1)"), n.top = n.left = 0) : b && (g.push(
|
3009
3009
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3010
3010
|
), g.push("scale(1 -1)"), n.top = n.left = 0);
|
3011
3011
|
let T;
|
3012
|
-
switch (
|
3012
|
+
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
3013
3013
|
case 1:
|
3014
3014
|
T = n.height / 2 + n.top, g.unshift(
|
3015
3015
|
"rotate(90 " + T.toString() + " " + T.toString() + ")"
|
@@ -3026,7 +3026,7 @@ function iconToSVG(e, t) {
|
|
3026
3026
|
);
|
3027
3027
|
break;
|
3028
3028
|
}
|
3029
|
-
|
3029
|
+
y % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), g.length && (s = '<g transform="' + g.join(" ") + '">' + s + "</g>");
|
3030
3030
|
});
|
3031
3031
|
const l = a.width, o = a.height, i = n.width, c = n.height;
|
3032
3032
|
let u, d;
|
@@ -3328,7 +3328,7 @@ function sendQuery(e, t, r, a) {
|
|
3328
3328
|
function _(E, P) {
|
3329
3329
|
P && (v = []), typeof E == "function" && v.push(E);
|
3330
3330
|
}
|
3331
|
-
function
|
3331
|
+
function b() {
|
3332
3332
|
return {
|
3333
3333
|
startTime: o,
|
3334
3334
|
payload: t,
|
@@ -3339,7 +3339,7 @@ function sendQuery(e, t, r, a) {
|
|
3339
3339
|
abort: g
|
3340
3340
|
};
|
3341
3341
|
}
|
3342
|
-
function
|
3342
|
+
function y() {
|
3343
3343
|
i = "failed", v.forEach((E) => {
|
3344
3344
|
E(void 0, u);
|
3345
3345
|
});
|
@@ -3349,24 +3349,24 @@ function sendQuery(e, t, r, a) {
|
|
3349
3349
|
E.status === "pending" && (E.status = "aborted");
|
3350
3350
|
}), m = [];
|
3351
3351
|
}
|
3352
|
-
function k(E, P,
|
3353
|
-
const
|
3352
|
+
function k(E, P, M) {
|
3353
|
+
const I = P !== "success";
|
3354
3354
|
switch (m = m.filter((w) => w !== E), i) {
|
3355
3355
|
case "pending":
|
3356
3356
|
break;
|
3357
3357
|
case "failed":
|
3358
|
-
if (
|
3358
|
+
if (I || !e.dataAfterTimeout)
|
3359
3359
|
return;
|
3360
3360
|
break;
|
3361
3361
|
default:
|
3362
3362
|
return;
|
3363
3363
|
}
|
3364
3364
|
if (P === "abort") {
|
3365
|
-
u =
|
3365
|
+
u = M, y();
|
3366
3366
|
return;
|
3367
3367
|
}
|
3368
|
-
if (
|
3369
|
-
u =
|
3368
|
+
if (I) {
|
3369
|
+
u = M, m.length || (l.length ? A() : y());
|
3370
3370
|
return;
|
3371
3371
|
}
|
3372
3372
|
if (C(), T(), !e.random) {
|
@@ -3374,10 +3374,10 @@ function sendQuery(e, t, r, a) {
|
|
3374
3374
|
w !== -1 && w !== e.index && (e.index = w);
|
3375
3375
|
}
|
3376
3376
|
i = "completed", v.forEach((w) => {
|
3377
|
-
w(
|
3377
|
+
w(M);
|
3378
3378
|
});
|
3379
3379
|
}
|
3380
|
-
function
|
3380
|
+
function A() {
|
3381
3381
|
if (i !== "pending")
|
3382
3382
|
return;
|
3383
3383
|
C();
|
@@ -3385,23 +3385,23 @@ function sendQuery(e, t, r, a) {
|
|
3385
3385
|
if (E === void 0) {
|
3386
3386
|
if (m.length) {
|
3387
3387
|
d = setTimeout(() => {
|
3388
|
-
C(), i === "pending" && (T(),
|
3388
|
+
C(), i === "pending" && (T(), y());
|
3389
3389
|
}, e.timeout);
|
3390
3390
|
return;
|
3391
3391
|
}
|
3392
|
-
|
3392
|
+
y();
|
3393
3393
|
return;
|
3394
3394
|
}
|
3395
3395
|
const P = {
|
3396
3396
|
status: "pending",
|
3397
3397
|
resource: E,
|
3398
|
-
callback: (
|
3399
|
-
k(P,
|
3398
|
+
callback: (M, I) => {
|
3399
|
+
k(P, M, I);
|
3400
3400
|
}
|
3401
3401
|
};
|
3402
|
-
m.push(P), c++, d = setTimeout(
|
3402
|
+
m.push(P), c++, d = setTimeout(A, e.rotate), r(E, t, P.callback);
|
3403
3403
|
}
|
3404
|
-
return setTimeout(
|
3404
|
+
return setTimeout(A), b;
|
3405
3405
|
}
|
3406
3406
|
function initRedundancy(e) {
|
3407
3407
|
const t = {
|
@@ -3803,8 +3803,8 @@ const render = (e, t) => {
|
|
3803
3803
|
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
3804
3804
|
break;
|
3805
3805
|
default: {
|
3806
|
-
const
|
3807
|
-
|
3806
|
+
const b = customisationAliases[g];
|
3807
|
+
b ? (_ === !0 || _ === "true" || _ === 1) && (r[b] = !0) : defaultExtendedIconCustomisations[g] === void 0 && (a[g] = _);
|
3808
3808
|
}
|
3809
3809
|
}
|
3810
3810
|
}
|
@@ -3930,218 +3930,300 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3930
3930
|
(function(r, a) {
|
3931
3931
|
e.exports = a();
|
3932
3932
|
})(commonjsGlobal, function() {
|
3933
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", C = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
3934
|
-
var
|
3935
|
-
return "[" +
|
3936
|
-
} }, T = function(V, O
|
3937
|
-
var
|
3938
|
-
return !
|
3939
|
-
}, k = { s: T, z: function(
|
3940
|
-
var
|
3941
|
-
return (
|
3942
|
-
}, m: function V
|
3943
|
-
if (
|
3944
|
-
return
|
3945
|
-
var
|
3946
|
-
return +(-(
|
3947
|
-
}, a: function(
|
3948
|
-
return
|
3949
|
-
}, p: function(
|
3950
|
-
return { M: d, y: v, w: u, d: c, D: C, h: i, m: o, s: l, ms: s, Q: m }[
|
3951
|
-
}, u: function(
|
3952
|
-
return
|
3953
|
-
} },
|
3954
|
-
E[
|
3955
|
-
var P = function(
|
3956
|
-
return
|
3957
|
-
},
|
3958
|
-
var
|
3959
|
-
if (!
|
3960
|
-
return
|
3961
|
-
if (typeof
|
3962
|
-
var
|
3963
|
-
E[
|
3964
|
-
var
|
3965
|
-
if (!
|
3966
|
-
return
|
3933
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", C = "date", g = "Invalid Date", _ = /^(\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($) {
|
3934
|
+
var V = ["th", "st", "nd", "rd"], O = $ % 100;
|
3935
|
+
return "[" + $ + (V[(O - 20) % 10] || V[O] || V[0]) + "]";
|
3936
|
+
} }, T = function($, V, O) {
|
3937
|
+
var U = String($);
|
3938
|
+
return !U || U.length >= V ? $ : "" + Array(V + 1 - U.length).join(O) + $;
|
3939
|
+
}, k = { s: T, z: function($) {
|
3940
|
+
var V = -$.utcOffset(), O = Math.abs(V), U = Math.floor(O / 60), F = O % 60;
|
3941
|
+
return (V <= 0 ? "+" : "-") + T(U, 2, "0") + ":" + T(F, 2, "0");
|
3942
|
+
}, m: function $(V, O) {
|
3943
|
+
if (V.date() < O.date())
|
3944
|
+
return -$(O, V);
|
3945
|
+
var U = 12 * (O.year() - V.year()) + (O.month() - V.month()), F = V.clone().add(U, d), K = O - F < 0, B = V.clone().add(U + (K ? -1 : 1), d);
|
3946
|
+
return +(-(U + (O - F) / (K ? F - B : B - F)) || 0);
|
3947
|
+
}, a: function($) {
|
3948
|
+
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
3949
|
+
}, p: function($) {
|
3950
|
+
return { M: d, y: v, w: u, d: c, D: C, h: i, m: o, s: l, ms: s, Q: m }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
3951
|
+
}, u: function($) {
|
3952
|
+
return $ === void 0;
|
3953
|
+
} }, A = "en", E = {};
|
3954
|
+
E[A] = y;
|
3955
|
+
var P = "$isDayjsObject", M = function($) {
|
3956
|
+
return $ instanceof D || !(!$ || !$[P]);
|
3957
|
+
}, I = function $(V, O, U) {
|
3958
|
+
var F;
|
3959
|
+
if (!V)
|
3960
|
+
return A;
|
3961
|
+
if (typeof V == "string") {
|
3962
|
+
var K = V.toLowerCase();
|
3963
|
+
E[K] && (F = K), O && (E[K] = O, F = K);
|
3964
|
+
var B = V.split("-");
|
3965
|
+
if (!F && B.length > 1)
|
3966
|
+
return $(B[0]);
|
3967
3967
|
} else {
|
3968
|
-
var
|
3969
|
-
E[
|
3970
|
-
}
|
3971
|
-
return !
|
3972
|
-
},
|
3973
|
-
if (
|
3974
|
-
return
|
3975
|
-
var
|
3976
|
-
return
|
3977
|
-
},
|
3978
|
-
|
3979
|
-
return
|
3968
|
+
var z = V.name;
|
3969
|
+
E[z] = V, F = z;
|
3970
|
+
}
|
3971
|
+
return !U && F && (A = F), F || !U && A;
|
3972
|
+
}, w = function($, V) {
|
3973
|
+
if (M($))
|
3974
|
+
return $.clone();
|
3975
|
+
var O = typeof V == "object" ? V : {};
|
3976
|
+
return O.date = $, O.args = arguments, new D(O);
|
3977
|
+
}, L = k;
|
3978
|
+
L.l = I, L.i = M, L.w = function($, V) {
|
3979
|
+
return w($, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
|
3980
3980
|
};
|
3981
|
-
var
|
3982
|
-
function
|
3983
|
-
this.$L =
|
3984
|
-
}
|
3985
|
-
var
|
3986
|
-
return
|
3987
|
-
this.$d = function(
|
3988
|
-
var
|
3989
|
-
if (
|
3981
|
+
var D = function() {
|
3982
|
+
function $(O) {
|
3983
|
+
this.$L = I(O.locale, null, !0), this.parse(O), this.$x = this.$x || O.x || {}, this[P] = !0;
|
3984
|
+
}
|
3985
|
+
var V = $.prototype;
|
3986
|
+
return V.parse = function(O) {
|
3987
|
+
this.$d = function(U) {
|
3988
|
+
var F = U.date, K = U.utc;
|
3989
|
+
if (F === null)
|
3990
3990
|
return new Date(NaN);
|
3991
|
-
if (
|
3991
|
+
if (L.u(F))
|
3992
3992
|
return new Date();
|
3993
|
-
if (
|
3994
|
-
return new Date(
|
3995
|
-
if (typeof
|
3996
|
-
var
|
3997
|
-
if (
|
3998
|
-
var
|
3999
|
-
return
|
3993
|
+
if (F instanceof Date)
|
3994
|
+
return new Date(F);
|
3995
|
+
if (typeof F == "string" && !/Z$/i.test(F)) {
|
3996
|
+
var B = F.match(_);
|
3997
|
+
if (B) {
|
3998
|
+
var z = B[2] - 1 || 0, Q = (B[7] || "0").substring(0, 3);
|
3999
|
+
return K ? new Date(Date.UTC(B[1], z, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, Q)) : new Date(B[1], z, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, Q);
|
4000
4000
|
}
|
4001
4001
|
}
|
4002
|
-
return new Date(
|
4003
|
-
}(
|
4004
|
-
},
|
4005
|
-
var
|
4006
|
-
this.$y =
|
4007
|
-
},
|
4008
|
-
return
|
4009
|
-
},
|
4002
|
+
return new Date(F);
|
4003
|
+
}(O), this.init();
|
4004
|
+
}, V.init = function() {
|
4005
|
+
var O = this.$d;
|
4006
|
+
this.$y = O.getFullYear(), this.$M = O.getMonth(), this.$D = O.getDate(), this.$W = O.getDay(), this.$H = O.getHours(), this.$m = O.getMinutes(), this.$s = O.getSeconds(), this.$ms = O.getMilliseconds();
|
4007
|
+
}, V.$utils = function() {
|
4008
|
+
return L;
|
4009
|
+
}, V.isValid = function() {
|
4010
4010
|
return this.$d.toString() !== g;
|
4011
|
-
},
|
4012
|
-
var
|
4013
|
-
return this.startOf(
|
4014
|
-
},
|
4015
|
-
return
|
4016
|
-
},
|
4017
|
-
return this.endOf(
|
4018
|
-
},
|
4019
|
-
return
|
4020
|
-
},
|
4011
|
+
}, V.isSame = function(O, U) {
|
4012
|
+
var F = w(O);
|
4013
|
+
return this.startOf(U) <= F && F <= this.endOf(U);
|
4014
|
+
}, V.isAfter = function(O, U) {
|
4015
|
+
return w(O) < this.startOf(U);
|
4016
|
+
}, V.isBefore = function(O, U) {
|
4017
|
+
return this.endOf(U) < w(O);
|
4018
|
+
}, V.$g = function(O, U, F) {
|
4019
|
+
return L.u(O) ? this[U] : this.set(F, O);
|
4020
|
+
}, V.unix = function() {
|
4021
4021
|
return Math.floor(this.valueOf() / 1e3);
|
4022
|
-
},
|
4022
|
+
}, V.valueOf = function() {
|
4023
4023
|
return this.$d.getTime();
|
4024
|
-
},
|
4025
|
-
var
|
4026
|
-
var ue =
|
4027
|
-
return
|
4028
|
-
},
|
4029
|
-
return
|
4030
|
-
},
|
4031
|
-
switch (
|
4024
|
+
}, V.startOf = function(O, U) {
|
4025
|
+
var F = this, K = !!L.u(U) || U, B = L.p(O), z = function(ce, ne) {
|
4026
|
+
var ue = L.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
|
4027
|
+
return K ? ue : ue.endOf(c);
|
4028
|
+
}, Q = function(ce, ne) {
|
4029
|
+
return L.w(F.toDate()[ce].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4030
|
+
}, q = this.$W, Z = this.$M, ee = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
4031
|
+
switch (B) {
|
4032
4032
|
case v:
|
4033
|
-
return
|
4033
|
+
return K ? z(1, 0) : z(31, 11);
|
4034
4034
|
case d:
|
4035
|
-
return
|
4035
|
+
return K ? z(1, Z) : z(0, Z + 1);
|
4036
4036
|
case u:
|
4037
|
-
var
|
4038
|
-
return
|
4037
|
+
var oe = this.$locale().weekStart || 0, fe = (q < oe ? q + 7 : q) - oe;
|
4038
|
+
return z(K ? ee - fe : ee + (6 - fe), Z);
|
4039
4039
|
case c:
|
4040
4040
|
case C:
|
4041
|
-
return
|
4041
|
+
return Q(se + "Hours", 0);
|
4042
4042
|
case i:
|
4043
|
-
return
|
4043
|
+
return Q(se + "Minutes", 1);
|
4044
4044
|
case o:
|
4045
|
-
return
|
4045
|
+
return Q(se + "Seconds", 2);
|
4046
4046
|
case l:
|
4047
|
-
return
|
4047
|
+
return Q(se + "Milliseconds", 3);
|
4048
4048
|
default:
|
4049
4049
|
return this.clone();
|
4050
4050
|
}
|
4051
|
-
},
|
4052
|
-
return this.startOf(
|
4053
|
-
},
|
4054
|
-
var
|
4055
|
-
if (
|
4056
|
-
var
|
4057
|
-
|
4051
|
+
}, V.endOf = function(O) {
|
4052
|
+
return this.startOf(O, !1);
|
4053
|
+
}, V.$set = function(O, U) {
|
4054
|
+
var F, K = L.p(O), B = "set" + (this.$u ? "UTC" : ""), z = (F = {}, F[c] = B + "Date", F[C] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[i] = B + "Hours", F[o] = B + "Minutes", F[l] = B + "Seconds", F[s] = B + "Milliseconds", F)[K], Q = K === c ? this.$D + (U - this.$W) : U;
|
4055
|
+
if (K === d || K === v) {
|
4056
|
+
var q = this.clone().set(C, 1);
|
4057
|
+
q.$d[z](Q), q.init(), this.$d = q.set(C, Math.min(this.$D, q.daysInMonth())).$d;
|
4058
4058
|
} else
|
4059
|
-
|
4059
|
+
z && this.$d[z](Q);
|
4060
4060
|
return this.init(), this;
|
4061
|
-
},
|
4062
|
-
return this.clone().$set(
|
4063
|
-
},
|
4064
|
-
return this[
|
4065
|
-
},
|
4066
|
-
var
|
4067
|
-
|
4068
|
-
var
|
4069
|
-
var
|
4070
|
-
return
|
4061
|
+
}, V.set = function(O, U) {
|
4062
|
+
return this.clone().$set(O, U);
|
4063
|
+
}, V.get = function(O) {
|
4064
|
+
return this[L.p(O)]();
|
4065
|
+
}, V.add = function(O, U) {
|
4066
|
+
var F, K = this;
|
4067
|
+
O = Number(O);
|
4068
|
+
var B = L.p(U), z = function(Z) {
|
4069
|
+
var ee = w(K);
|
4070
|
+
return L.w(ee.date(ee.date() + Math.round(Z * O)), K);
|
4071
4071
|
};
|
4072
|
-
if (
|
4073
|
-
return this.set(d, this.$M +
|
4074
|
-
if (
|
4075
|
-
return this.set(v, this.$y +
|
4076
|
-
if (
|
4077
|
-
return
|
4078
|
-
if (
|
4079
|
-
return
|
4080
|
-
var
|
4081
|
-
return
|
4082
|
-
},
|
4083
|
-
return this.add(-1 *
|
4084
|
-
},
|
4085
|
-
var
|
4072
|
+
if (B === d)
|
4073
|
+
return this.set(d, this.$M + O);
|
4074
|
+
if (B === v)
|
4075
|
+
return this.set(v, this.$y + O);
|
4076
|
+
if (B === c)
|
4077
|
+
return z(1);
|
4078
|
+
if (B === u)
|
4079
|
+
return z(7);
|
4080
|
+
var Q = (F = {}, F[o] = a, F[i] = n, F[l] = r, F)[B] || 1, q = this.$d.getTime() + O * Q;
|
4081
|
+
return L.w(q, this);
|
4082
|
+
}, V.subtract = function(O, U) {
|
4083
|
+
return this.add(-1 * O, U);
|
4084
|
+
}, V.format = function(O) {
|
4085
|
+
var U = this, F = this.$locale();
|
4086
4086
|
if (!this.isValid())
|
4087
|
-
return
|
4088
|
-
var
|
4089
|
-
return ne && (ne[ue] || ne(
|
4090
|
-
},
|
4091
|
-
return
|
4092
|
-
},
|
4093
|
-
var
|
4094
|
-
return
|
4095
|
-
}
|
4096
|
-
return
|
4097
|
-
return ue ||
|
4087
|
+
return F.invalidDate || g;
|
4088
|
+
var K = O || "YYYY-MM-DDTHH:mm:ssZ", B = L.z(this), z = this.$H, Q = this.$m, q = this.$M, Z = F.weekdays, ee = F.months, se = F.meridiem, oe = function(ne, ue, de, R) {
|
4089
|
+
return ne && (ne[ue] || ne(U, K)) || de[ue].slice(0, R);
|
4090
|
+
}, fe = function(ne) {
|
4091
|
+
return L.s(z % 12 || 12, ne, "0");
|
4092
|
+
}, ce = se || function(ne, ue, de) {
|
4093
|
+
var R = ne < 12 ? "AM" : "PM";
|
4094
|
+
return de ? R.toLowerCase() : R;
|
4095
|
+
};
|
4096
|
+
return K.replace(b, function(ne, ue) {
|
4097
|
+
return ue || function(de) {
|
4098
|
+
switch (de) {
|
4099
|
+
case "YY":
|
4100
|
+
return String(U.$y).slice(-2);
|
4101
|
+
case "YYYY":
|
4102
|
+
return L.s(U.$y, 4, "0");
|
4103
|
+
case "M":
|
4104
|
+
return q + 1;
|
4105
|
+
case "MM":
|
4106
|
+
return L.s(q + 1, 2, "0");
|
4107
|
+
case "MMM":
|
4108
|
+
return oe(F.monthsShort, q, ee, 3);
|
4109
|
+
case "MMMM":
|
4110
|
+
return oe(ee, q);
|
4111
|
+
case "D":
|
4112
|
+
return U.$D;
|
4113
|
+
case "DD":
|
4114
|
+
return L.s(U.$D, 2, "0");
|
4115
|
+
case "d":
|
4116
|
+
return String(U.$W);
|
4117
|
+
case "dd":
|
4118
|
+
return oe(F.weekdaysMin, U.$W, Z, 2);
|
4119
|
+
case "ddd":
|
4120
|
+
return oe(F.weekdaysShort, U.$W, Z, 3);
|
4121
|
+
case "dddd":
|
4122
|
+
return Z[U.$W];
|
4123
|
+
case "H":
|
4124
|
+
return String(z);
|
4125
|
+
case "HH":
|
4126
|
+
return L.s(z, 2, "0");
|
4127
|
+
case "h":
|
4128
|
+
return fe(1);
|
4129
|
+
case "hh":
|
4130
|
+
return fe(2);
|
4131
|
+
case "a":
|
4132
|
+
return ce(z, Q, !0);
|
4133
|
+
case "A":
|
4134
|
+
return ce(z, Q, !1);
|
4135
|
+
case "m":
|
4136
|
+
return String(Q);
|
4137
|
+
case "mm":
|
4138
|
+
return L.s(Q, 2, "0");
|
4139
|
+
case "s":
|
4140
|
+
return String(U.$s);
|
4141
|
+
case "ss":
|
4142
|
+
return L.s(U.$s, 2, "0");
|
4143
|
+
case "SSS":
|
4144
|
+
return L.s(U.$ms, 3, "0");
|
4145
|
+
case "Z":
|
4146
|
+
return B;
|
4147
|
+
}
|
4148
|
+
return null;
|
4149
|
+
}(ne) || B.replace(":", "");
|
4098
4150
|
});
|
4099
|
-
},
|
4151
|
+
}, V.utcOffset = function() {
|
4100
4152
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4101
|
-
},
|
4102
|
-
var
|
4103
|
-
|
4104
|
-
|
4153
|
+
}, V.diff = function(O, U, F) {
|
4154
|
+
var K, B = this, z = L.p(U), Q = w(O), q = (Q.utcOffset() - this.utcOffset()) * a, Z = this - Q, ee = function() {
|
4155
|
+
return L.m(B, Q);
|
4156
|
+
};
|
4157
|
+
switch (z) {
|
4158
|
+
case v:
|
4159
|
+
K = ee() / 12;
|
4160
|
+
break;
|
4161
|
+
case d:
|
4162
|
+
K = ee();
|
4163
|
+
break;
|
4164
|
+
case m:
|
4165
|
+
K = ee() / 3;
|
4166
|
+
break;
|
4167
|
+
case u:
|
4168
|
+
K = (Z - q) / 6048e5;
|
4169
|
+
break;
|
4170
|
+
case c:
|
4171
|
+
K = (Z - q) / 864e5;
|
4172
|
+
break;
|
4173
|
+
case i:
|
4174
|
+
K = Z / n;
|
4175
|
+
break;
|
4176
|
+
case o:
|
4177
|
+
K = Z / a;
|
4178
|
+
break;
|
4179
|
+
case l:
|
4180
|
+
K = Z / r;
|
4181
|
+
break;
|
4182
|
+
default:
|
4183
|
+
K = Z;
|
4184
|
+
}
|
4185
|
+
return F ? K : L.a(K);
|
4186
|
+
}, V.daysInMonth = function() {
|
4105
4187
|
return this.endOf(d).$D;
|
4106
|
-
},
|
4188
|
+
}, V.$locale = function() {
|
4107
4189
|
return E[this.$L];
|
4108
|
-
},
|
4109
|
-
if (!
|
4190
|
+
}, V.locale = function(O, U) {
|
4191
|
+
if (!O)
|
4110
4192
|
return this.$L;
|
4111
|
-
var
|
4112
|
-
return
|
4113
|
-
},
|
4114
|
-
return
|
4115
|
-
},
|
4193
|
+
var F = this.clone(), K = I(O, U, !0);
|
4194
|
+
return K && (F.$L = K), F;
|
4195
|
+
}, V.clone = function() {
|
4196
|
+
return L.w(this.$d, this);
|
4197
|
+
}, V.toDate = function() {
|
4116
4198
|
return new Date(this.valueOf());
|
4117
|
-
},
|
4199
|
+
}, V.toJSON = function() {
|
4118
4200
|
return this.isValid() ? this.toISOString() : null;
|
4119
|
-
},
|
4201
|
+
}, V.toISOString = function() {
|
4120
4202
|
return this.$d.toISOString();
|
4121
|
-
},
|
4203
|
+
}, V.toString = function() {
|
4122
4204
|
return this.$d.toUTCString();
|
4123
|
-
},
|
4124
|
-
}(),
|
4125
|
-
return
|
4126
|
-
$[
|
4127
|
-
return this.$g(
|
4205
|
+
}, $;
|
4206
|
+
}(), x = D.prototype;
|
4207
|
+
return w.prototype = x, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", C]].forEach(function($) {
|
4208
|
+
x[$[1]] = function(V) {
|
4209
|
+
return this.$g(V, $[0], $[1]);
|
4128
4210
|
};
|
4129
|
-
}),
|
4130
|
-
return
|
4131
|
-
},
|
4132
|
-
return
|
4133
|
-
},
|
4211
|
+
}), w.extend = function($, V) {
|
4212
|
+
return $.$i || ($(V, D, w), $.$i = !0), w;
|
4213
|
+
}, w.locale = I, w.isDayjs = M, w.unix = function($) {
|
4214
|
+
return w(1e3 * $);
|
4215
|
+
}, w.en = E[A], w.Ls = E, w.p = {}, w;
|
4134
4216
|
});
|
4135
4217
|
})(dayjs_min);
|
4136
4218
|
const dayjs = dayjs_min.exports;
|
4137
4219
|
/**
|
4138
4220
|
* filesize
|
4139
4221
|
*
|
4140
|
-
* @copyright
|
4222
|
+
* @copyright 2023 Jason Mulligan <jason.mulligan@avoidwork.com>
|
4141
4223
|
* @license BSD-3-Clause
|
4142
|
-
* @version 10.0
|
4224
|
+
* @version 10.1.0
|
4143
4225
|
*/
|
4144
|
-
const ARRAY = "array", BIT = "bit", BITS = "bits", BYTE = "byte", BYTES = "bytes", EMPTY = "", EXPONENT = "exponent", FUNCTION = "function", IEC = "iec", INVALID_NUMBER = "Invalid number", INVALID_ROUND = "Invalid rounding method", JEDEC = "jedec", OBJECT = "object", PERIOD = ".", ROUND = "round", S = "s", SI_KBIT = "kbit", SI_KBYTE = "kB", SPACE = " ", STRING = "string", ZERO = "0", STRINGS = {
|
4226
|
+
const ARRAY = "array", BIT = "bit", BITS = "bits", BYTE = "byte", BYTES = "bytes", EMPTY = "", EXPONENT = "exponent", FUNCTION = "function", IEC = "iec", INVALID_NUMBER = "Invalid number", INVALID_ROUND = "Invalid rounding method", JEDEC = "jedec", OBJECT = "object", PERIOD = ".", ROUND = "round", S = "s", SI = "si", SI_KBIT = "kbit", SI_KBYTE = "kB", SPACE = " ", STRING = "string", ZERO = "0", STRINGS = {
|
4145
4227
|
symbol: {
|
4146
4228
|
iec: {
|
4147
4229
|
bits: ["bit", "Kibit", "Mibit", "Gibit", "Tibit", "Pibit", "Eibit", "Zibit", "Yibit"],
|
@@ -4175,31 +4257,31 @@ function filesize(e, {
|
|
4175
4257
|
roundingMethod: g = ROUND,
|
4176
4258
|
precision: _ = 0
|
4177
4259
|
} = {}) {
|
4178
|
-
let
|
4179
|
-
|
4180
|
-
const E = a === 10 ? 1e3 : 1024, P = m === !0,
|
4260
|
+
let b = C, y = Number(e), T = [], k = 0, A = EMPTY;
|
4261
|
+
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4262
|
+
const E = a === 10 ? 1e3 : 1024, P = m === !0, M = y < 0, I = Math[g];
|
4181
4263
|
if (typeof e != "bigint" && isNaN(e))
|
4182
4264
|
throw new TypeError(INVALID_NUMBER);
|
4183
|
-
if (typeof
|
4265
|
+
if (typeof I !== FUNCTION)
|
4184
4266
|
throw new TypeError(INVALID_ROUND);
|
4185
|
-
if (
|
4186
|
-
return
|
4187
|
-
if (
|
4188
|
-
T[0] = 0,
|
4267
|
+
if (M && (y = -y), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(y) / Math.log(E)), b < 0 && (b = 0)), b > 8 && (_ > 0 && (_ += 8 - b), b = 8), d === EXPONENT)
|
4268
|
+
return b;
|
4269
|
+
if (y === 0)
|
4270
|
+
T[0] = 0, A = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4189
4271
|
else {
|
4190
|
-
k =
|
4191
|
-
const w = Math.pow(10,
|
4192
|
-
T[0] =
|
4272
|
+
k = y / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (k = k * 8, k >= E && b < 8 && (k = k / E, b++));
|
4273
|
+
const w = Math.pow(10, b > 0 ? n : 0);
|
4274
|
+
T[0] = I(k * w) / w, T[0] === E && b < 8 && C === -1 && (T[0] = 1, b++), A = T[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4193
4275
|
}
|
4194
|
-
if (
|
4195
|
-
const w = o || PERIOD,
|
4196
|
-
T[0] = `${
|
4276
|
+
if (M && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, l) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
4277
|
+
const w = o || PERIOD, L = T[0].toString().split(w), D = L[1] || EMPTY, x = D.length, $ = n - x;
|
4278
|
+
T[0] = `${L[0]}${w}${D.padEnd(x + $, ZERO)}`;
|
4197
4279
|
}
|
4198
|
-
return P && (T[1] = v[
|
4280
|
+
return P && (T[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
4199
4281
|
value: T[0],
|
4200
4282
|
symbol: T[1],
|
4201
|
-
exponent:
|
4202
|
-
unit:
|
4283
|
+
exponent: b,
|
4284
|
+
unit: A
|
4203
4285
|
} : T.join(i);
|
4204
4286
|
}
|
4205
4287
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
@@ -5246,12 +5328,12 @@ function baseClone(e, t, r, a, n, s) {
|
|
5246
5328
|
return v;
|
5247
5329
|
s.set(e, l), isSet$1(e) ? e.forEach(function(_) {
|
5248
5330
|
l.add(baseClone(_, t, r, _, e, s));
|
5249
|
-
}) : isMap$1(e) && e.forEach(function(_,
|
5250
|
-
l.set(
|
5331
|
+
}) : isMap$1(e) && e.forEach(function(_, b) {
|
5332
|
+
l.set(b, baseClone(_, t, r, b, e, s));
|
5251
5333
|
});
|
5252
5334
|
var C = c ? i ? getAllKeysIn : getAllKeys : i ? keysIn : keys, g = u ? void 0 : C(e);
|
5253
|
-
return arrayEach(g || e, function(_,
|
5254
|
-
g && (
|
5335
|
+
return arrayEach(g || e, function(_, b) {
|
5336
|
+
g && (b = _, _ = e[b]), assignValue(l, b, baseClone(_, t, r, b, e, s));
|
5255
5337
|
}), l;
|
5256
5338
|
}
|
5257
5339
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -5301,9 +5383,9 @@ function equalArrays(e, t, r, a, n, s) {
|
|
5301
5383
|
break;
|
5302
5384
|
}
|
5303
5385
|
if (v) {
|
5304
|
-
if (!arraySome(t, function(
|
5305
|
-
if (!cacheHas(v,
|
5306
|
-
return v.push(
|
5386
|
+
if (!arraySome(t, function(b, y) {
|
5387
|
+
if (!cacheHas(v, y) && (C === b || n(C, b, r, a, s)))
|
5388
|
+
return v.push(y);
|
5307
5389
|
})) {
|
5308
5390
|
m = !1;
|
5309
5391
|
break;
|
@@ -5380,18 +5462,18 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5380
5462
|
s.set(e, t), s.set(t, e);
|
5381
5463
|
for (var _ = l; ++d < i; ) {
|
5382
5464
|
m = o[d];
|
5383
|
-
var
|
5465
|
+
var b = e[m], y = t[m];
|
5384
5466
|
if (a)
|
5385
|
-
var T = l ? a(
|
5386
|
-
if (!(T === void 0 ?
|
5467
|
+
var T = l ? a(y, b, m, t, e, s) : a(b, y, m, e, t, s);
|
5468
|
+
if (!(T === void 0 ? b === y || n(b, y, r, a, s) : T)) {
|
5387
5469
|
g = !1;
|
5388
5470
|
break;
|
5389
5471
|
}
|
5390
5472
|
_ || (_ = m == "constructor");
|
5391
5473
|
}
|
5392
5474
|
if (g && !_) {
|
5393
|
-
var k = e.constructor,
|
5394
|
-
k !=
|
5475
|
+
var k = e.constructor, A = t.constructor;
|
5476
|
+
k != A && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof A == "function" && A instanceof A) && (g = !1);
|
5395
5477
|
}
|
5396
5478
|
return s.delete(e), s.delete(t), g;
|
5397
5479
|
}
|
@@ -5778,7 +5860,9 @@ const without$1 = without, en = {
|
|
5778
5860
|
},
|
5779
5861
|
KgFormItem: {
|
5780
5862
|
mustGT: "Must > {0}",
|
5781
|
-
mustGTE: "Must >= {0}"
|
5863
|
+
mustGTE: "Must >= {0}",
|
5864
|
+
mustLT: "Must < {0}",
|
5865
|
+
mustLTE: "Must <= {0}"
|
5782
5866
|
},
|
5783
5867
|
KgSearch: {
|
5784
5868
|
title: "Search"
|
@@ -5922,7 +6006,9 @@ const without$1 = without, en = {
|
|
5922
6006
|
},
|
5923
6007
|
KgFormItem: {
|
5924
6008
|
mustGT: "\u5FC5\u987B\u5927\u4E8E {0}",
|
5925
|
-
mustGTE: "\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}"
|
6009
|
+
mustGTE: "\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}",
|
6010
|
+
mustLT: "\u5FC5\u987B\u5C0F\u4E8E {0}",
|
6011
|
+
mustLTE: "\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E {0}"
|
5926
6012
|
},
|
5927
6013
|
KgSearch: {
|
5928
6014
|
title: "\u67E5\u8BE2\u6761\u4EF6"
|
@@ -6405,14 +6491,14 @@ class KgVarUtil {
|
|
6405
6491
|
if (!u)
|
6406
6492
|
return i;
|
6407
6493
|
switch ((() => {
|
6408
|
-
const g = u.ctrl_typ, _ = u.prf_ctrl_typ,
|
6494
|
+
const g = u.ctrl_typ, _ = u.prf_ctrl_typ, b = u.crt_ctrl_typ, y = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
|
6409
6495
|
switch (s) {
|
6410
6496
|
case "R":
|
6411
6497
|
return _ || g;
|
6412
6498
|
case "C":
|
6413
|
-
return y || g;
|
6414
|
-
case "U":
|
6415
6499
|
return b || g;
|
6500
|
+
case "U":
|
6501
|
+
return y || g;
|
6416
6502
|
case "CP":
|
6417
6503
|
return T || g;
|
6418
6504
|
case "D":
|
@@ -6507,8 +6593,8 @@ class KgVarUtil {
|
|
6507
6593
|
const _ = o.store.getVarPossibility(t, r);
|
6508
6594
|
switch (_ == null ? void 0 : _.val_data_type) {
|
6509
6595
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6510
|
-
const
|
6511
|
-
if (
|
6596
|
+
const b = g.map((y) => Number(y));
|
6597
|
+
if (b.some((y) => Number.isNaN(b))) {
|
6512
6598
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6513
6599
|
frm_id: t,
|
6514
6600
|
var_nam: r,
|
@@ -6517,13 +6603,13 @@ class KgVarUtil {
|
|
6517
6603
|
});
|
6518
6604
|
return;
|
6519
6605
|
}
|
6520
|
-
return
|
6606
|
+
return b;
|
6521
6607
|
}
|
6522
6608
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6523
|
-
return g.map((
|
6609
|
+
return g.map((b) => Boolean(b));
|
6524
6610
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6525
6611
|
default:
|
6526
|
-
return g.map((
|
6612
|
+
return g.map((b) => String(b));
|
6527
6613
|
}
|
6528
6614
|
} catch {
|
6529
6615
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
@@ -6659,58 +6745,58 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6659
6745
|
const i = {
|
6660
6746
|
deep: !0
|
6661
6747
|
};
|
6662
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (
|
6663
|
-
c ? v =
|
6748
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (M) => {
|
6749
|
+
c ? v = M : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6664
6750
|
});
|
6665
6751
|
let c, u, d = markRaw([]), m = markRaw([]), v;
|
6666
6752
|
const C = a.state.value[e];
|
6667
6753
|
!l && !C && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6668
6754
|
const g = ref({});
|
6669
|
-
function _(
|
6670
|
-
let
|
6671
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
6755
|
+
function _(M) {
|
6756
|
+
let I;
|
6757
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof M == "function" ? (M(a.state.value[e]), I = {
|
6672
6758
|
type: MutationType.patchFunction,
|
6673
6759
|
storeId: e,
|
6674
6760
|
events: v
|
6675
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
6761
|
+
}) : (mergeReactiveObjects(a.state.value[e], M), I = {
|
6676
6762
|
type: MutationType.patchObject,
|
6677
|
-
payload:
|
6763
|
+
payload: M,
|
6678
6764
|
storeId: e,
|
6679
6765
|
events: v
|
6680
6766
|
}), nextTick().then(() => {
|
6681
6767
|
c = !0;
|
6682
|
-
}), u = !0, triggerSubscriptions(d,
|
6768
|
+
}), u = !0, triggerSubscriptions(d, I, a.state.value[e]);
|
6683
6769
|
}
|
6684
|
-
const
|
6770
|
+
const b = process.env.NODE_ENV !== "production" ? () => {
|
6685
6771
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6686
6772
|
} : noop$1;
|
6687
|
-
function
|
6773
|
+
function y() {
|
6688
6774
|
s.stop(), d = [], m = [], a._s.delete(e);
|
6689
6775
|
}
|
6690
|
-
function T(
|
6776
|
+
function T(M, I) {
|
6691
6777
|
return function() {
|
6692
6778
|
setActivePinia(a);
|
6693
|
-
const w = Array.from(arguments),
|
6694
|
-
function
|
6695
|
-
|
6779
|
+
const w = Array.from(arguments), L = [], D = [];
|
6780
|
+
function x(O) {
|
6781
|
+
L.push(O);
|
6696
6782
|
}
|
6697
|
-
function O
|
6698
|
-
|
6783
|
+
function $(O) {
|
6784
|
+
D.push(O);
|
6699
6785
|
}
|
6700
6786
|
triggerSubscriptions(m, {
|
6701
6787
|
args: w,
|
6702
|
-
name:
|
6788
|
+
name: M,
|
6703
6789
|
store: E,
|
6704
|
-
after:
|
6705
|
-
onError:
|
6790
|
+
after: x,
|
6791
|
+
onError: $
|
6706
6792
|
});
|
6707
|
-
let
|
6793
|
+
let V;
|
6708
6794
|
try {
|
6709
|
-
|
6710
|
-
} catch (
|
6711
|
-
throw triggerSubscriptions(
|
6795
|
+
V = I.apply(this && this.$id === e ? this : E, w);
|
6796
|
+
} catch (O) {
|
6797
|
+
throw triggerSubscriptions(D, O), O;
|
6712
6798
|
}
|
6713
|
-
return
|
6799
|
+
return V instanceof Promise ? V.then((O) => (triggerSubscriptions(L, O), O)).catch((O) => (triggerSubscriptions(D, O), Promise.reject(O))) : (triggerSubscriptions(L, V), V);
|
6714
6800
|
};
|
6715
6801
|
}
|
6716
6802
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6718,101 +6804,101 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6718
6804
|
getters: {},
|
6719
6805
|
state: [],
|
6720
6806
|
hotState: g
|
6721
|
-
}),
|
6807
|
+
}), A = {
|
6722
6808
|
_p: a,
|
6723
6809
|
$id: e,
|
6724
6810
|
$onAction: addSubscription.bind(null, m),
|
6725
6811
|
$patch: _,
|
6726
|
-
$reset:
|
6727
|
-
$subscribe(
|
6728
|
-
const w = addSubscription(d,
|
6729
|
-
(
|
6812
|
+
$reset: b,
|
6813
|
+
$subscribe(M, I = {}) {
|
6814
|
+
const w = addSubscription(d, M, I.detached, () => L()), L = s.run(() => watch(() => a.state.value[e], (D) => {
|
6815
|
+
(I.flush === "sync" ? u : c) && M({
|
6730
6816
|
storeId: e,
|
6731
6817
|
type: MutationType.direct,
|
6732
6818
|
events: v
|
6733
|
-
},
|
6734
|
-
}, assign$1({}, i,
|
6819
|
+
}, D);
|
6820
|
+
}, assign$1({}, i, I)));
|
6735
6821
|
return w;
|
6736
6822
|
},
|
6737
|
-
$dispose:
|
6823
|
+
$dispose: y
|
6738
6824
|
}, E = reactive(assign$1(
|
6739
6825
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6740
6826
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6741
6827
|
_hmrPayload: k
|
6742
6828
|
} : {},
|
6743
|
-
|
6829
|
+
A
|
6744
6830
|
));
|
6745
6831
|
a._s.set(e, E);
|
6746
6832
|
const P = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
6747
|
-
for (const
|
6748
|
-
const
|
6749
|
-
if (isRef(
|
6750
|
-
process.env.NODE_ENV !== "production" && n ? set(g.value,
|
6751
|
-
else if (typeof
|
6752
|
-
const w = process.env.NODE_ENV !== "production" && n ?
|
6753
|
-
P[
|
6833
|
+
for (const M in P) {
|
6834
|
+
const I = P[M];
|
6835
|
+
if (isRef(I) && !isComputed(I) || isReactive(I))
|
6836
|
+
process.env.NODE_ENV !== "production" && n ? set(g.value, M, toRef(P, M)) : l || (C && shouldHydrate(I) && (isRef(I) ? I.value = C[M] : mergeReactiveObjects(I, C[M])), a.state.value[e][M] = I), process.env.NODE_ENV !== "production" && k.state.push(M);
|
6837
|
+
else if (typeof I == "function") {
|
6838
|
+
const w = process.env.NODE_ENV !== "production" && n ? I : T(M, I);
|
6839
|
+
P[M] = w, process.env.NODE_ENV !== "production" && (k.actions[M] = I), o.actions[M] = I;
|
6754
6840
|
} else
|
6755
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6841
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[M] = l ? r.getters[M] : I, IS_CLIENT && (P._getters || (P._getters = markRaw([]))).push(M));
|
6756
6842
|
}
|
6757
6843
|
if (assign$1(E, P), assign$1(toRaw(E), P), Object.defineProperty(E, "$state", {
|
6758
6844
|
get: () => process.env.NODE_ENV !== "production" && n ? g.value : a.state.value[e],
|
6759
|
-
set: (
|
6845
|
+
set: (M) => {
|
6760
6846
|
if (process.env.NODE_ENV !== "production" && n)
|
6761
6847
|
throw new Error("cannot set hotState");
|
6762
|
-
_((
|
6763
|
-
assign$1(
|
6848
|
+
_((I) => {
|
6849
|
+
assign$1(I, M);
|
6764
6850
|
});
|
6765
6851
|
}
|
6766
6852
|
}), process.env.NODE_ENV !== "production") {
|
6767
|
-
E._hotUpdate = markRaw((
|
6768
|
-
E._hotUpdating = !0,
|
6853
|
+
E._hotUpdate = markRaw((I) => {
|
6854
|
+
E._hotUpdating = !0, I._hmrPayload.state.forEach((w) => {
|
6769
6855
|
if (w in E.$state) {
|
6770
|
-
const
|
6771
|
-
typeof
|
6856
|
+
const L = I.$state[w], D = E.$state[w];
|
6857
|
+
typeof L == "object" && isPlainObject(L) && isPlainObject(D) ? patchObject(L, D) : I.$state[w] = D;
|
6772
6858
|
}
|
6773
|
-
set(E, w, toRef(
|
6859
|
+
set(E, w, toRef(I.$state, w));
|
6774
6860
|
}), Object.keys(E.$state).forEach((w) => {
|
6775
|
-
w in
|
6776
|
-
}), c = !1, u = !1, a.state.value[e] = toRef(
|
6861
|
+
w in I.$state || del(E, w);
|
6862
|
+
}), c = !1, u = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
6777
6863
|
c = !0;
|
6778
6864
|
});
|
6779
|
-
for (const w in
|
6780
|
-
const
|
6781
|
-
set(E, w, T(w,
|
6865
|
+
for (const w in I._hmrPayload.actions) {
|
6866
|
+
const L = I[w];
|
6867
|
+
set(E, w, T(w, L));
|
6782
6868
|
}
|
6783
|
-
for (const w in
|
6784
|
-
const
|
6785
|
-
set(E, w,
|
6869
|
+
for (const w in I._hmrPayload.getters) {
|
6870
|
+
const L = I._hmrPayload.getters[w], D = l ? computed(() => (setActivePinia(a), L.call(E, E))) : L;
|
6871
|
+
set(E, w, D);
|
6786
6872
|
}
|
6787
6873
|
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
6788
|
-
w in
|
6874
|
+
w in I._hmrPayload.getters || del(E, w);
|
6789
6875
|
}), Object.keys(E._hmrPayload.actions).forEach((w) => {
|
6790
|
-
w in
|
6791
|
-
}), E._hmrPayload =
|
6876
|
+
w in I._hmrPayload.actions || del(E, w);
|
6877
|
+
}), E._hmrPayload = I._hmrPayload, E._getters = I._getters, E._hotUpdating = !1;
|
6792
6878
|
});
|
6793
|
-
const
|
6879
|
+
const M = {
|
6794
6880
|
writable: !0,
|
6795
6881
|
configurable: !0,
|
6796
6882
|
enumerable: !1
|
6797
6883
|
};
|
6798
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6799
|
-
Object.defineProperty(E,
|
6800
|
-
value: E[
|
6801
|
-
...
|
6884
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
6885
|
+
Object.defineProperty(E, I, {
|
6886
|
+
value: E[I],
|
6887
|
+
...M
|
6802
6888
|
});
|
6803
6889
|
});
|
6804
6890
|
}
|
6805
|
-
return a._p.forEach((
|
6891
|
+
return a._p.forEach((M) => {
|
6806
6892
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6807
|
-
const
|
6893
|
+
const I = s.run(() => M({
|
6808
6894
|
store: E,
|
6809
6895
|
app: a._a,
|
6810
6896
|
pinia: a,
|
6811
6897
|
options: o
|
6812
6898
|
}));
|
6813
|
-
Object.keys(
|
6899
|
+
Object.keys(I || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, I);
|
6814
6900
|
} else
|
6815
|
-
assign$1(E, s.run(() =>
|
6901
|
+
assign$1(E, s.run(() => M({
|
6816
6902
|
store: E,
|
6817
6903
|
app: a._a,
|
6818
6904
|
pinia: a,
|
@@ -7353,18 +7439,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7353
7439
|
slots: r
|
7354
7440
|
}) {
|
7355
7441
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
7356
|
-
const
|
7357
|
-
throw KgLogger.error(
|
7442
|
+
const y = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
7443
|
+
throw KgLogger.error(y, {
|
7358
7444
|
kgMaxHeight: e.kgMaxHeight,
|
7359
7445
|
kgMinHeight: e.kgMinHeight
|
7360
|
-
}), new Error(
|
7446
|
+
}), new Error(y);
|
7361
7447
|
}
|
7362
7448
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
7363
|
-
const
|
7364
|
-
throw KgLogger.error(
|
7449
|
+
const y = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
7450
|
+
throw KgLogger.error(y, {
|
7365
7451
|
kgMaxWidth: e.kgMaxWidth,
|
7366
7452
|
kgMinWidth: e.kgMinWidth
|
7367
|
-
}), new Error(
|
7453
|
+
}), new Error(y);
|
7368
7454
|
}
|
7369
7455
|
let a = 0, n = 0, s = 0, l = 0, o = {
|
7370
7456
|
remove: () => {
|
@@ -7387,22 +7473,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7387
7473
|
};
|
7388
7474
|
}
|
7389
7475
|
}), u = computed(() => {
|
7390
|
-
let
|
7391
|
-
switch (e.kgClass && (
|
7476
|
+
let y = "";
|
7477
|
+
switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
|
7392
7478
|
case "left":
|
7393
|
-
|
7479
|
+
y += " kg-resizable--left";
|
7394
7480
|
break;
|
7395
7481
|
case "right":
|
7396
|
-
|
7482
|
+
y += " kg-resizable--right";
|
7397
7483
|
break;
|
7398
7484
|
case "top":
|
7399
|
-
|
7485
|
+
y += " kg-resizable--top";
|
7400
7486
|
break;
|
7401
7487
|
case "bottom":
|
7402
|
-
|
7488
|
+
y += " kg-resizable--bottom";
|
7403
7489
|
break;
|
7404
7490
|
}
|
7405
|
-
return
|
7491
|
+
return y;
|
7406
7492
|
});
|
7407
7493
|
function d() {
|
7408
7494
|
o.remove(), i.remove();
|
@@ -7410,51 +7496,51 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7410
7496
|
onUnmounted(() => {
|
7411
7497
|
d();
|
7412
7498
|
});
|
7413
|
-
const m = (
|
7499
|
+
const m = (y) => {
|
7414
7500
|
switch (e.kgType) {
|
7415
7501
|
case "top":
|
7416
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
7502
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (y.pageY - l))));
|
7417
7503
|
break;
|
7418
7504
|
case "bottom":
|
7419
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
7505
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (y.pageY - l))));
|
7420
7506
|
break;
|
7421
7507
|
case "left":
|
7422
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
7508
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (y.pageX - s))));
|
7423
7509
|
break;
|
7424
7510
|
case "right":
|
7425
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
7511
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (y.pageX - s))));
|
7426
7512
|
break;
|
7427
7513
|
}
|
7428
7514
|
};
|
7429
|
-
function v(
|
7430
|
-
m(
|
7515
|
+
function v(y) {
|
7516
|
+
m(y);
|
7431
7517
|
}
|
7432
|
-
function C(
|
7433
|
-
m(
|
7518
|
+
function C(y) {
|
7519
|
+
m(y), d();
|
7434
7520
|
}
|
7435
|
-
function g(
|
7436
|
-
|
7521
|
+
function g(y) {
|
7522
|
+
y.stopPropagation(), y.preventDefault(), d(), !(y instanceof MouseEvent && y.which !== 1) && (s = y.pageX, l = y.pageY, a = e.kgWidth, n = e.kgHeight, o = _(document.documentElement, "mousemove", v), i = _(document.documentElement, "mouseup", C));
|
7437
7523
|
}
|
7438
|
-
function _(
|
7439
|
-
return
|
7440
|
-
remove: () =>
|
7524
|
+
function _(y, T, k) {
|
7525
|
+
return y.addEventListener(T, k), {
|
7526
|
+
remove: () => y.removeEventListener(T, k)
|
7441
7527
|
};
|
7442
7528
|
}
|
7443
|
-
function y
|
7444
|
-
|
7529
|
+
function b(y) {
|
7530
|
+
y.stopPropagation(), y.preventDefault();
|
7445
7531
|
}
|
7446
7532
|
return () => {
|
7447
|
-
var
|
7533
|
+
var y;
|
7448
7534
|
return createVNode("div", {
|
7449
7535
|
class: u.value,
|
7450
7536
|
style: c.value
|
7451
7537
|
}, [createVNode("div", {
|
7452
7538
|
class: "kg-resizable-handle",
|
7453
|
-
onClick:
|
7539
|
+
onClick: b,
|
7454
7540
|
onMousedown: g
|
7455
7541
|
}, [createVNode("div", {
|
7456
7542
|
class: "kg-resizable-handle-line"
|
7457
|
-
}, null)]), (
|
7543
|
+
}, null)]), (y = r.default) == null ? void 0 : y.call(r)]);
|
7458
7544
|
};
|
7459
7545
|
}
|
7460
7546
|
}), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
|
@@ -7609,8 +7695,8 @@ function createStore(e, t, r) {
|
|
7609
7695
|
var m = slice(arguments, 0), v = this;
|
7610
7696
|
function C() {
|
7611
7697
|
if (!!u)
|
7612
|
-
return each$6(arguments, function(_,
|
7613
|
-
m[
|
7698
|
+
return each$6(arguments, function(_, b) {
|
7699
|
+
m[b] = _;
|
7614
7700
|
}), u.apply(v, m);
|
7615
7701
|
}
|
7616
7702
|
var g = [C].concat(m);
|
@@ -8626,20 +8712,20 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8626
8712
|
varVariableInputs: C,
|
8627
8713
|
varPossibilities: g,
|
8628
8714
|
varButtons: _,
|
8629
|
-
varButtonConfig:
|
8630
|
-
varSubmitConfig:
|
8715
|
+
varButtonConfig: b,
|
8716
|
+
varSubmitConfig: y,
|
8631
8717
|
varSubmitFields: T,
|
8632
8718
|
varProfile: k,
|
8633
|
-
varProfileConfig:
|
8719
|
+
varProfileConfig: A,
|
8634
8720
|
varGrid: E,
|
8635
8721
|
varGridConfig: P
|
8636
8722
|
} = await GetAll({ params: { frm_id: e } });
|
8637
|
-
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(
|
8723
|
+
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(y)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(T)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
|
8638
8724
|
varProfile: k != null ? k : null,
|
8639
|
-
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((
|
8725
|
+
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((M) => M.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
8640
8726
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(P != null ? P : null)), this.varGridMap.set(e, {
|
8641
8727
|
varGrid: transformVarGridDTO(E),
|
8642
|
-
currentVarGridMasterID: (u = (c = ((l = E == null ? void 0 : E.varGridMasters) == null ? void 0 : l.find((
|
8728
|
+
currentVarGridMasterID: (u = (c = ((l = E == null ? void 0 : E.varGridMasters) == null ? void 0 : l.find((M) => M.def_flg === 1)) || ((o = E == null ? void 0 : E.varGridMasters) == null ? void 0 : o.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = E == null ? void 0 : E.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
8643
8729
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
8644
8730
|
} catch (d) {
|
8645
8731
|
throw d;
|
@@ -8831,12 +8917,12 @@ function useKgVar(e, t, r = 0) {
|
|
8831
8917
|
u.leave(c);
|
8832
8918
|
}));
|
8833
8919
|
const d = (q) => computed(() => {
|
8834
|
-
var
|
8835
|
-
return (se = (
|
8836
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)),
|
8837
|
-
var q,
|
8838
|
-
return (
|
8839
|
-
}),
|
8920
|
+
var Z, ee, se;
|
8921
|
+
return (se = (ee = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? ee : q) != null ? se : "";
|
8922
|
+
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), y = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), M = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), L = computed(() => u.getVarButtonUpdate(c)), D = computed(() => u.getVarButtonCopy(c)), x = computed(() => u.getVarButtonDelete(c)), $ = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
|
8923
|
+
var q, Z;
|
8924
|
+
return (Z = (q = V.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
|
8925
|
+
}), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), z = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
8840
8926
|
return {
|
8841
8927
|
formID: c,
|
8842
8928
|
store: u,
|
@@ -8845,27 +8931,27 @@ function useKgVar(e, t, r = 0) {
|
|
8845
8931
|
isRetrievingVarGridMaster: C,
|
8846
8932
|
isCreating: g,
|
8847
8933
|
isCreatingRequesting: _,
|
8848
|
-
isUpdating:
|
8849
|
-
isUpdatingRequesting:
|
8934
|
+
isUpdating: b,
|
8935
|
+
isUpdatingRequesting: y,
|
8850
8936
|
isCopying: T,
|
8851
8937
|
isCopyingRequesting: k,
|
8852
|
-
isDeleting:
|
8938
|
+
isDeleting: A,
|
8853
8939
|
isDeletingRequesting: E,
|
8854
8940
|
isOtherRequesting: P,
|
8855
|
-
varButtons:
|
8856
|
-
varButtonSearch:
|
8941
|
+
varButtons: M,
|
8942
|
+
varButtonSearch: I,
|
8857
8943
|
varButtonCreate: w,
|
8858
|
-
varButtonUpdate:
|
8859
|
-
varButtonCopy:
|
8860
|
-
varButtonDelete:
|
8861
|
-
varProfileMasters:
|
8862
|
-
currentVarProfileMaster:
|
8863
|
-
currentVarProfileMasterID:
|
8864
|
-
currentVarProfileDetails:
|
8865
|
-
varGridConfig:
|
8866
|
-
varGridMasters:
|
8867
|
-
currentVarGridMaster:
|
8868
|
-
systemVarGridDetails:
|
8944
|
+
varButtonUpdate: L,
|
8945
|
+
varButtonCopy: D,
|
8946
|
+
varButtonDelete: x,
|
8947
|
+
varProfileMasters: $,
|
8948
|
+
currentVarProfileMaster: V,
|
8949
|
+
currentVarProfileMasterID: O,
|
8950
|
+
currentVarProfileDetails: U,
|
8951
|
+
varGridConfig: F,
|
8952
|
+
varGridMasters: K,
|
8953
|
+
currentVarGridMaster: B,
|
8954
|
+
systemVarGridDetails: z,
|
8869
8955
|
currentVarGridDetails: Q,
|
8870
8956
|
setIsCreating: s,
|
8871
8957
|
setIsUpdating: l,
|
@@ -8951,9 +9037,9 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8951
9037
|
r("update:visible", !1);
|
8952
9038
|
}
|
8953
9039
|
async function C() {
|
8954
|
-
var g, _,
|
9040
|
+
var g, _, b, y, T, k, A;
|
8955
9041
|
if (d.value) {
|
8956
|
-
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (
|
9042
|
+
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (b = E.map((I) => I[m.value])) != null ? b : [];
|
8957
9043
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
8958
9044
|
var_nam: l,
|
8959
9045
|
isMultiple: !0,
|
@@ -8967,7 +9053,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8967
9053
|
rows: E
|
8968
9054
|
}), r("update:visible", !1));
|
8969
9055
|
} else {
|
8970
|
-
const E = (k = (T = (
|
9056
|
+
const E = (k = (T = (y = c.selectedRows) == null ? void 0 : y.value) == null ? void 0 : T[0]) != null ? k : null, P = (A = E == null ? void 0 : E[m.value]) != null ? A : "";
|
8971
9057
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
8972
9058
|
var_nam: l,
|
8973
9059
|
isMultiple: !1,
|
@@ -9083,7 +9169,7 @@ function _useRules(e) {
|
|
9083
9169
|
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));
|
9084
9170
|
return {
|
9085
9171
|
rules: computed(() => {
|
9086
|
-
var i, c, u, d, m, v, C, g;
|
9172
|
+
var i, c, u, d, m, v, C, g, _, b;
|
9087
9173
|
let o = [];
|
9088
9174
|
switch (e.kgContext) {
|
9089
9175
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9123,12 +9209,20 @@ function _useRules(e) {
|
|
9123
9209
|
}
|
9124
9210
|
switch ((v = n.value) == null ? void 0 : v.data_type) {
|
9125
9211
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9126
|
-
|
9127
|
-
|
9128
|
-
|
9129
|
-
|
9130
|
-
|
9131
|
-
|
9212
|
+
{
|
9213
|
+
const y = (C = n.value) == null ? void 0 : C.min;
|
9214
|
+
isNil(y) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? o.push({
|
9215
|
+
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < y ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [y])) : Promise.resolve()
|
9216
|
+
}) : o.push({
|
9217
|
+
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= y ? Promise.reject(t.t("kg.KgFormItem.mustGT", [y])) : Promise.resolve()
|
9218
|
+
}));
|
9219
|
+
const T = (_ = n.value) == null ? void 0 : _.max;
|
9220
|
+
isNil(T) || (((b = n.value) == null ? void 0 : b.max_include_flg) === 1 ? o.push({
|
9221
|
+
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) > T ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [T])) : Promise.resolve()
|
9222
|
+
}) : o.push({
|
9223
|
+
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) >= T ? Promise.reject(t.t("kg.KgFormItem.mustLT", [T])) : Promise.resolve()
|
9224
|
+
}));
|
9225
|
+
}
|
9132
9226
|
break;
|
9133
9227
|
}
|
9134
9228
|
return e.kgRules && (o = [...o, ...e.kgRules]), o;
|
@@ -9137,8 +9231,8 @@ function _useRules(e) {
|
|
9137
9231
|
}
|
9138
9232
|
function useKgFormItem(e) {
|
9139
9233
|
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(() => {
|
9140
|
-
var v, C, g, _,
|
9141
|
-
const o = (v = n.value) == null ? void 0 : v.ctrl_typ, i = (C = n.value) == null ? void 0 : C.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (
|
9234
|
+
var v, C, g, _, b, y;
|
9235
|
+
const o = (v = n.value) == null ? void 0 : v.ctrl_typ, i = (C = n.value) == null ? void 0 : C.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (b = n.value) == null ? void 0 : b.cpy_ctrl_typ, m = (y = n.value) == null ? void 0 : y.del_ctrl_typ;
|
9142
9236
|
switch (r) {
|
9143
9237
|
case KG_FORM_CONTEXT.SEARCH:
|
9144
9238
|
return i || o;
|
@@ -9156,9 +9250,9 @@ function useKgFormItem(e) {
|
|
9156
9250
|
}
|
9157
9251
|
return o;
|
9158
9252
|
}), l = computed(() => {
|
9159
|
-
var C, g, _,
|
9253
|
+
var C, g, _, b, y, T;
|
9160
9254
|
let o;
|
9161
|
-
const i = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (
|
9255
|
+
const i = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (b = n.value) == null ? void 0 : b.upt_ctrl_prop, m = (y = n.value) == null ? void 0 : y.cpy_ctrl_prop, v = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
9162
9256
|
switch (r) {
|
9163
9257
|
case KG_FORM_CONTEXT.SEARCH:
|
9164
9258
|
o = c || i;
|
@@ -9200,20 +9294,20 @@ function useKgFormItemSelect() {
|
|
9200
9294
|
var g, _;
|
9201
9295
|
let C = v;
|
9202
9296
|
if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
|
9203
|
-
let
|
9204
|
-
if (
|
9205
|
-
const T =
|
9206
|
-
|
9297
|
+
let b = v.slice(1, -1), y = "";
|
9298
|
+
if (b.includes(".")) {
|
9299
|
+
const T = b.split(".");
|
9300
|
+
b = T[0], y = T[1];
|
9207
9301
|
}
|
9208
|
-
t.value &&
|
9302
|
+
t.value && b in t.value && (y ? C = (_ = (g = t.value[`${b}_obj`]) == null ? void 0 : g[y]) != null ? _ : void 0 : C = t.value[b], C || (C = "__KG__FORM_ITEM_SELECT__PID"));
|
9209
9303
|
}
|
9210
9304
|
return C;
|
9211
9305
|
}), d;
|
9212
9306
|
});
|
9213
9307
|
async function c() {
|
9214
|
-
var
|
9308
|
+
var b, y, T, k, A, E, P, M;
|
9215
9309
|
let d = [];
|
9216
|
-
const m = (
|
9310
|
+
const m = (b = a.value) == null ? void 0 : b.cmd, v = (T = (y = a.value) == null ? void 0 : y.cmd_method) != null ? T : "GET", C = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
|
9217
9311
|
if (!m || !C || !g) {
|
9218
9312
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9219
9313
|
frm_id: r.formID,
|
@@ -9226,7 +9320,7 @@ function useKgFormItemSelect() {
|
|
9226
9320
|
}
|
9227
9321
|
let _ = null;
|
9228
9322
|
try {
|
9229
|
-
_ = await ((
|
9323
|
+
_ = await ((M = httpClient()) == null ? void 0 : M.request({
|
9230
9324
|
url: m,
|
9231
9325
|
method: v,
|
9232
9326
|
params: i.value
|
@@ -9245,23 +9339,23 @@ function useKgFormItemSelect() {
|
|
9245
9339
|
break;
|
9246
9340
|
}
|
9247
9341
|
if (d.length > 0) {
|
9248
|
-
const
|
9249
|
-
(!(C in
|
9342
|
+
const I = d[0];
|
9343
|
+
(!(C in I) || !(g in I)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9250
9344
|
frm_id: r.formID,
|
9251
9345
|
var_nam: e,
|
9252
9346
|
cmd: m,
|
9253
9347
|
val_clm: C,
|
9254
9348
|
lbl_clm: g,
|
9255
|
-
\u6240\u6709\u5217: Object.keys(
|
9349
|
+
\u6240\u6709\u5217: Object.keys(I)
|
9256
9350
|
});
|
9257
9351
|
}
|
9258
9352
|
l.value = d;
|
9259
9353
|
}
|
9260
9354
|
function u(d) {
|
9261
|
-
var C, g, _,
|
9355
|
+
var C, g, _, b, y;
|
9262
9356
|
if (!d)
|
9263
9357
|
return [];
|
9264
|
-
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", v = (
|
9358
|
+
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", v = (b = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? b : "string";
|
9265
9359
|
switch (v) {
|
9266
9360
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9267
9361
|
d.forEach((T) => {
|
@@ -9293,10 +9387,10 @@ function useKgFormItemSelect() {
|
|
9293
9387
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9294
9388
|
{
|
9295
9389
|
const T = s;
|
9296
|
-
if ((
|
9390
|
+
if ((y = T.value) != null && y.excludeValues)
|
9297
9391
|
return d.filter((k) => {
|
9298
|
-
var
|
9299
|
-
return !((
|
9392
|
+
var A;
|
9393
|
+
return !((A = T.value.excludeValues) != null && A.includes(k[m]));
|
9300
9394
|
});
|
9301
9395
|
}
|
9302
9396
|
break;
|
@@ -9334,20 +9428,20 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9334
9428
|
} = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
|
9335
9429
|
watch(o, () => v(), {
|
9336
9430
|
immediate: !0
|
9337
|
-
}), watch([() => e.value, c], ([_,
|
9338
|
-
const
|
9339
|
-
if (
|
9340
|
-
const T = intersection$1(_,
|
9341
|
-
if (T.length <
|
9431
|
+
}), watch([() => e.value, c], ([_, b]) => {
|
9432
|
+
const y = get(_, "length", 0);
|
9433
|
+
if (y > 0 && b.length > 0) {
|
9434
|
+
const T = intersection$1(_, b == null ? void 0 : b.map((k) => k[i.value]));
|
9435
|
+
if (T.length < y) {
|
9342
9436
|
r("update:value", T);
|
9343
9437
|
return;
|
9344
9438
|
}
|
9345
9439
|
}
|
9346
9440
|
switch (!0) {
|
9347
|
-
case (
|
9441
|
+
case (y > 0 && y === b.length):
|
9348
9442
|
d.value = !0, m.value = !1;
|
9349
9443
|
break;
|
9350
|
-
case (
|
9444
|
+
case (y > 0 && y !== b.length):
|
9351
9445
|
d.value = !1, m.value = !0;
|
9352
9446
|
break;
|
9353
9447
|
default:
|
@@ -9358,24 +9452,24 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9358
9452
|
immediate: !0
|
9359
9453
|
});
|
9360
9454
|
async function v() {
|
9361
|
-
var _,
|
9362
|
-
!((_ = l.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
9455
|
+
var _, b;
|
9456
|
+
!((_ = l.value) != null && _.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)));
|
9363
9457
|
}
|
9364
9458
|
function C(_) {
|
9365
|
-
var
|
9366
|
-
_.target.checked ? g((
|
9459
|
+
var b, y, T;
|
9460
|
+
_.target.checked ? g((y = (b = c.value) == null ? void 0 : b.map((k) => k[i.value])) != null ? y : []) : g([]), m.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
9367
9461
|
}
|
9368
9462
|
function g(_) {
|
9369
9463
|
r("update:value", _), r("kgChange", _);
|
9370
9464
|
}
|
9371
9465
|
return () => {
|
9372
|
-
let _,
|
9466
|
+
let _, b;
|
9373
9467
|
return createVNode("div", {
|
9374
9468
|
class: "kg-form-item-checkbox-group"
|
9375
9469
|
}, [createVNode(Form.ItemRest, null, {
|
9376
9470
|
default: () => [createVNode(Checkbox, {
|
9377
9471
|
checked: d.value,
|
9378
|
-
"onUpdate:checked": (
|
9472
|
+
"onUpdate:checked": (y) => d.value = y,
|
9379
9473
|
indeterminate: m.value,
|
9380
9474
|
onChange: C
|
9381
9475
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
@@ -9387,23 +9481,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9387
9481
|
}, {
|
9388
9482
|
default: () => [createVNode(Row, {
|
9389
9483
|
gutter: 12
|
9390
|
-
}, _isSlot$a(
|
9484
|
+
}, _isSlot$a(b = c.value.map((y) => {
|
9391
9485
|
var T, k;
|
9392
9486
|
return createVNode(Col, {
|
9393
9487
|
span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
|
9394
9488
|
}, {
|
9395
9489
|
default: () => [createVNode(Checkbox, {
|
9396
|
-
value:
|
9397
|
-
"kg-value":
|
9490
|
+
value: y[i.value],
|
9491
|
+
"kg-value": y[i.value]
|
9398
9492
|
}, {
|
9399
9493
|
default: () => {
|
9400
|
-
var
|
9401
|
-
return [
|
9494
|
+
var A, E;
|
9495
|
+
return [y[(E = (A = l.value) == null ? void 0 : A.lbl_clm) != null ? E : ""]];
|
9402
9496
|
}
|
9403
9497
|
})]
|
9404
9498
|
});
|
9405
|
-
})) ?
|
9406
|
-
default: () => [
|
9499
|
+
})) ? b : {
|
9500
|
+
default: () => [b]
|
9407
9501
|
})]
|
9408
9502
|
})]);
|
9409
9503
|
};
|
@@ -9695,16 +9789,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9695
9789
|
useKg();
|
9696
9790
|
const s = useKgVar();
|
9697
9791
|
useKgForm(s.formID).onLookupOk(async ({
|
9698
|
-
var_nam:
|
9699
|
-
model:
|
9792
|
+
var_nam: M,
|
9793
|
+
model: I,
|
9700
9794
|
isMultiple: w,
|
9701
|
-
value:
|
9702
|
-
values:
|
9795
|
+
value: L,
|
9796
|
+
values: D
|
9703
9797
|
}) => {
|
9704
|
-
var
|
9705
|
-
switch (
|
9798
|
+
var x;
|
9799
|
+
switch (M) {
|
9706
9800
|
case e.kgVarName:
|
9707
|
-
|
9801
|
+
I.value && (w ? I.value[e.kgVarName] = D : I.value[e.kgVarName] = L), (x = n.value) == null || x.validate([e.kgVarName]);
|
9708
9802
|
break;
|
9709
9803
|
}
|
9710
9804
|
return !1;
|
@@ -9714,115 +9808,115 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9714
9808
|
} = _useRules(e), {
|
9715
9809
|
controlType: m
|
9716
9810
|
} = useKgFormItem(e), v = computed(() => {
|
9717
|
-
var
|
9811
|
+
var I, w, L, D, x;
|
9718
9812
|
if (s.isRetrieving.value)
|
9719
9813
|
return !0;
|
9720
|
-
let
|
9814
|
+
let M = !1;
|
9721
9815
|
if (e.kgDisabled !== void 0)
|
9722
|
-
|
9816
|
+
M = e.kgDisabled;
|
9723
9817
|
else
|
9724
9818
|
switch (e.kgContext) {
|
9725
9819
|
case KG_FORM_CONTEXT.SEARCH:
|
9726
|
-
|
9820
|
+
M = ((I = c.value) == null ? void 0 : I.ena_flg) === 0;
|
9727
9821
|
break;
|
9728
9822
|
case KG_FORM_CONTEXT.SUBMIT:
|
9729
9823
|
switch (!0) {
|
9730
9824
|
case s.isCreating.value:
|
9731
|
-
|
9825
|
+
M = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
9732
9826
|
break;
|
9733
9827
|
case s.isUpdating.value:
|
9734
|
-
|
9828
|
+
M = ((L = u.value) == null ? void 0 : L.upt_ena_flg) === 0;
|
9735
9829
|
break;
|
9736
9830
|
case s.isCopying.value:
|
9737
|
-
|
9831
|
+
M = ((D = u.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
9738
9832
|
break;
|
9739
9833
|
case s.isDeleting.value:
|
9740
|
-
|
9834
|
+
M = ((x = u.value) == null ? void 0 : x.del_ena_flg) === 0;
|
9741
9835
|
break;
|
9742
9836
|
}
|
9743
9837
|
break;
|
9744
9838
|
}
|
9745
|
-
return
|
9839
|
+
return M;
|
9746
9840
|
}), C = computed(() => {
|
9747
|
-
var
|
9748
|
-
let
|
9841
|
+
var I, w, L, D;
|
9842
|
+
let M = " ";
|
9749
9843
|
if (e.kgPlaceholder)
|
9750
|
-
|
9844
|
+
M = e.kgPlaceholder;
|
9751
9845
|
else
|
9752
9846
|
switch (e.kgContext) {
|
9753
9847
|
case KG_FORM_CONTEXT.SEARCH:
|
9754
|
-
|
9848
|
+
M = s.t((w = (I = c.value) == null ? void 0 : I.placeholder) != null ? w : " ").value;
|
9755
9849
|
break;
|
9756
9850
|
case KG_FORM_CONTEXT.SUBMIT:
|
9757
|
-
|
9851
|
+
M = s.t((D = (L = u.value) == null ? void 0 : L.placeholder) != null ? D : " ").value;
|
9758
9852
|
break;
|
9759
9853
|
}
|
9760
|
-
return
|
9854
|
+
return M;
|
9761
9855
|
}), g = computed(() => {
|
9762
|
-
var
|
9763
|
-
let
|
9856
|
+
var I, w, L, D, x, $, V, O, U, F;
|
9857
|
+
let M = 6;
|
9764
9858
|
if (e.kgSpan !== void 0)
|
9765
|
-
|
9859
|
+
M = e.kgSpan;
|
9766
9860
|
else
|
9767
9861
|
switch (e.kgContext) {
|
9768
9862
|
case KG_FORM_CONTEXT.SEARCH:
|
9769
|
-
|
9863
|
+
M = (w = (I = c.value) == null ? void 0 : I.width) != null ? w : 6;
|
9770
9864
|
break;
|
9771
9865
|
case KG_FORM_CONTEXT.SUBMIT:
|
9772
9866
|
switch (!0) {
|
9773
9867
|
case s.isCreating.value:
|
9774
|
-
|
9868
|
+
M = (D = (L = u.value) == null ? void 0 : L.crt_width) != null ? D : 6;
|
9775
9869
|
break;
|
9776
9870
|
case s.isUpdating.value:
|
9777
|
-
|
9871
|
+
M = ($ = (x = u.value) == null ? void 0 : x.upt_width) != null ? $ : 6;
|
9778
9872
|
break;
|
9779
9873
|
case s.isCopying.value:
|
9780
|
-
|
9874
|
+
M = (O = (V = u.value) == null ? void 0 : V.cpy_width) != null ? O : 6;
|
9781
9875
|
break;
|
9782
9876
|
case s.isDeleting.value:
|
9783
|
-
|
9877
|
+
M = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
|
9784
9878
|
break;
|
9785
9879
|
}
|
9786
9880
|
}
|
9787
|
-
return Math.min(24, Math.max(1,
|
9881
|
+
return Math.min(24, Math.max(1, M));
|
9788
9882
|
}), _ = computed(() => {
|
9789
|
-
var
|
9790
|
-
const
|
9791
|
-
if (
|
9883
|
+
var L, D;
|
9884
|
+
const M = get(k.value, "$el.parentElement");
|
9885
|
+
if (M && !((L = M.classList) != null && L.contains("ant-row")))
|
9792
9886
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9793
|
-
let
|
9794
|
-
const w = Math.abs(Number.parseInt((
|
9795
|
-
return Number.isNaN(w) || (
|
9887
|
+
let I = {};
|
9888
|
+
const w = Math.abs(Number.parseInt((D = get(k.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
9889
|
+
return Number.isNaN(w) || (I = {
|
9796
9890
|
paddingLeft: `${w}px !important`,
|
9797
9891
|
paddingRight: `${w}px !important`
|
9798
|
-
}),
|
9799
|
-
}),
|
9800
|
-
var
|
9801
|
-
let
|
9802
|
-
switch (o.value && (
|
9892
|
+
}), I;
|
9893
|
+
}), b = computed(() => {
|
9894
|
+
var I, w, L, D;
|
9895
|
+
let M = "kg-form-item";
|
9896
|
+
switch (o.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9803
9897
|
case KG_FORM_CONTEXT.SEARCH:
|
9804
9898
|
switch (!0) {
|
9805
|
-
case ((
|
9806
|
-
|
9899
|
+
case ((I = c.value) == null ? void 0 : I.vis_flg) === 0:
|
9900
|
+
M += " kg-form-item--invisible";
|
9807
9901
|
break;
|
9808
9902
|
}
|
9809
9903
|
break;
|
9810
9904
|
case KG_FORM_CONTEXT.SUBMIT:
|
9811
9905
|
switch (!0) {
|
9812
9906
|
case (s.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
9813
|
-
case (s.isUpdating.value && ((
|
9814
|
-
case (s.isCopying.value && ((
|
9815
|
-
|
9907
|
+
case (s.isUpdating.value && ((L = u.value) == null ? void 0 : L.upt_vis_flg) === 0):
|
9908
|
+
case (s.isCopying.value && ((D = u.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
9909
|
+
M += " kg-form-item--invisible";
|
9816
9910
|
break;
|
9817
9911
|
}
|
9818
9912
|
break;
|
9819
9913
|
}
|
9820
|
-
return
|
9821
|
-
}),
|
9822
|
-
var
|
9823
|
-
const
|
9914
|
+
return M;
|
9915
|
+
}), y = computed(() => {
|
9916
|
+
var I;
|
9917
|
+
const M = {
|
9824
9918
|
...e,
|
9825
|
-
value: (
|
9919
|
+
value: (I = a.value) == null ? void 0 : I[e.kgVarName],
|
9826
9920
|
"onUpdate:value": (w) => {
|
9827
9921
|
a.value && (a.value[e.kgVarName] = w);
|
9828
9922
|
},
|
@@ -9838,67 +9932,67 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9838
9932
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
9839
9933
|
break;
|
9840
9934
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
9841
|
-
|
9935
|
+
M.kgShowTime = !1;
|
9842
9936
|
break;
|
9843
9937
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
9844
|
-
|
9938
|
+
M.kgShowTime = !1;
|
9845
9939
|
break;
|
9846
9940
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
9847
|
-
|
9941
|
+
M.kgPicker = "time";
|
9848
9942
|
break;
|
9849
9943
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
9850
|
-
|
9944
|
+
M.kgPicker = "time";
|
9851
9945
|
break;
|
9852
9946
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
9853
|
-
|
9947
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
9854
9948
|
break;
|
9855
9949
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
9856
|
-
|
9950
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
9857
9951
|
break;
|
9858
9952
|
}
|
9859
|
-
return
|
9953
|
+
return M;
|
9860
9954
|
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), k = ref(null);
|
9861
|
-
function
|
9955
|
+
function A() {
|
9862
9956
|
if (t.control) {
|
9863
|
-
const
|
9957
|
+
const M = {
|
9864
9958
|
varName: e.kgVarName,
|
9865
|
-
props:
|
9959
|
+
props: y,
|
9866
9960
|
model: a,
|
9867
9961
|
varVariableConfig: i,
|
9868
9962
|
varProfileDetail: c,
|
9869
9963
|
varSubmitField: u
|
9870
9964
|
};
|
9871
|
-
return t.control(
|
9965
|
+
return t.control(M);
|
9872
9966
|
}
|
9873
9967
|
switch (m.value) {
|
9874
9968
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
9875
|
-
return createVNode(KgFormItemInputNumber,
|
9969
|
+
return createVNode(KgFormItemInputNumber, y.value, null);
|
9876
9970
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
9877
|
-
return createVNode(KgFormItemTextArea,
|
9971
|
+
return createVNode(KgFormItemTextArea, y.value, null);
|
9878
9972
|
case KG_FORM_ITEM_TYPE.SELECT:
|
9879
|
-
return createVNode(KgFormItemSelect,
|
9973
|
+
return createVNode(KgFormItemSelect, y.value, null);
|
9880
9974
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
9881
|
-
return createVNode(KgFormItemSwitch,
|
9975
|
+
return createVNode(KgFormItemSwitch, y.value, null);
|
9882
9976
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
9883
|
-
return createVNode(KgFormItemCheckbox,
|
9977
|
+
return createVNode(KgFormItemCheckbox, y.value, null);
|
9884
9978
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9885
|
-
return createVNode(KgFormItemCheckboxGroup,
|
9979
|
+
return createVNode(KgFormItemCheckboxGroup, y.value, null);
|
9886
9980
|
case KG_FORM_ITEM_TYPE.RADIO_GROUP:
|
9887
|
-
return createVNode(KgFormItemRadioGroup,
|
9981
|
+
return createVNode(KgFormItemRadioGroup, y.value, null);
|
9888
9982
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
9889
|
-
return createVNode(KgFormItemDate,
|
9983
|
+
return createVNode(KgFormItemDate, y.value, null);
|
9890
9984
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
9891
|
-
return createVNode(KgFormItemDateRange,
|
9985
|
+
return createVNode(KgFormItemDateRange, y.value, null);
|
9892
9986
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
9893
|
-
return createVNode(KgFormItemDate,
|
9987
|
+
return createVNode(KgFormItemDate, y.value, null);
|
9894
9988
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
9895
|
-
return createVNode(KgFormItemDateRange,
|
9989
|
+
return createVNode(KgFormItemDateRange, y.value, null);
|
9896
9990
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
9897
|
-
return createVNode(KgFormItemDate,
|
9991
|
+
return createVNode(KgFormItemDate, y.value, null);
|
9898
9992
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
9899
|
-
return createVNode(KgFormItemDateRange,
|
9993
|
+
return createVNode(KgFormItemDateRange, y.value, null);
|
9900
9994
|
default:
|
9901
|
-
return createVNode(KgFormItemInput,
|
9995
|
+
return createVNode(KgFormItemInput, y.value, null);
|
9902
9996
|
}
|
9903
9997
|
}
|
9904
9998
|
function E() {
|
@@ -9907,8 +10001,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9907
10001
|
}, [s.t(e.kgVarName).value]) : null;
|
9908
10002
|
}
|
9909
10003
|
function P() {
|
9910
|
-
var
|
9911
|
-
return !o.value || !((
|
10004
|
+
var M;
|
10005
|
+
return !o.value || !((M = o.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9912
10006
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
9913
10007
|
kgDisabled: v.value,
|
9914
10008
|
kgLookupID: o.value.lkp_id
|
@@ -9916,16 +10010,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9916
10010
|
});
|
9917
10011
|
}
|
9918
10012
|
return () => {
|
9919
|
-
var
|
10013
|
+
var M, I;
|
9920
10014
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
9921
10015
|
ref: k,
|
9922
10016
|
span: g.value,
|
9923
|
-
class:
|
10017
|
+
class: b.value,
|
9924
10018
|
style: _.value,
|
9925
10019
|
"kg-frm_id": s.formID,
|
9926
10020
|
"kg-var_nam": e.kgVarName,
|
9927
|
-
"kg-lkp_id": (
|
9928
|
-
"kg-ret_fld": (
|
10021
|
+
"kg-lkp_id": (M = o.value) == null ? void 0 : M.lkp_id,
|
10022
|
+
"kg-ret_fld": (I = o.value) == null ? void 0 : I.ret_fld
|
9929
10023
|
}, {
|
9930
10024
|
default: () => [createVNode(Form.Item, {
|
9931
10025
|
name: e.kgVarName,
|
@@ -9933,7 +10027,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9933
10027
|
validateFirst: !0,
|
9934
10028
|
htmlFor: T.value
|
9935
10029
|
}, {
|
9936
|
-
default: () => createVNode(Fragment, null, [
|
10030
|
+
default: () => createVNode(Fragment, null, [A(), P()]),
|
9937
10031
|
label: () => E()
|
9938
10032
|
})]
|
9939
10033
|
});
|
@@ -10256,9 +10350,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10256
10350
|
}).bind(null, pinia())), store$5);
|
10257
10351
|
function useKgSubmit(e) {
|
10258
10352
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
10259
|
-
var _,
|
10353
|
+
var _, b, y, T, k;
|
10260
10354
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
10261
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (
|
10355
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (b = a.value) == null ? void 0 : b.crt_display_type, v = (y = a.value) == null ? void 0 : y.upt_display_type, C = (T = a.value) == null ? void 0 : T.cpy_display_type, g = (k = a.value) == null ? void 0 : k.del_display_type;
|
10262
10356
|
switch (!0) {
|
10263
10357
|
case (t.isCreating.value && (m === c || !m && d === c)):
|
10264
10358
|
i = c;
|
@@ -10330,8 +10424,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10330
10424
|
}) => {
|
10331
10425
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10332
10426
|
return o = watch(c, (d) => {
|
10333
|
-
var m, v, C, g, _,
|
10334
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (
|
10427
|
+
var m, v, C, g, _, b, y, T, k, A, E, P;
|
10428
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 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 = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (P = u == null ? void 0 : u.display_type) != null ? P : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10335
10429
|
}, {
|
10336
10430
|
immediate: !0
|
10337
10431
|
}), KgUtil.hideLoading(), !1;
|
@@ -10381,8 +10475,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10381
10475
|
r("kgCancel");
|
10382
10476
|
}
|
10383
10477
|
function C() {
|
10384
|
-
var
|
10385
|
-
return e.kgShowFullscreenButton === !1 || ((
|
10478
|
+
var b;
|
10479
|
+
return e.kgShowFullscreenButton === !1 || ((b = o.value) == null ? void 0 : b.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
10386
10480
|
onClick: d,
|
10387
10481
|
class: "kg-submit--btn-fullscreen"
|
10388
10482
|
}, {
|
@@ -10434,20 +10528,20 @@ function _useFormModel$1() {
|
|
10434
10528
|
}
|
10435
10529
|
const d = r.selectedRow.value;
|
10436
10530
|
u.forEach((m) => {
|
10437
|
-
var C, g, _,
|
10531
|
+
var C, g, _, b, y, T, k, A;
|
10438
10532
|
const v = (C = m.var_nam) != null ? C : "";
|
10439
10533
|
switch (c.value[v] = void 0, !0) {
|
10440
10534
|
case t.isCreating.value:
|
10441
10535
|
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
10442
10536
|
break;
|
10443
10537
|
case t.isUpdating.value:
|
10444
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
10538
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (b = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
|
10445
10539
|
break;
|
10446
10540
|
case t.isCopying.value:
|
10447
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (T = (
|
10541
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (T = (y = m.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? T : void 0, "CP");
|
10448
10542
|
break;
|
10449
10543
|
case t.isDeleting.value:
|
10450
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
10544
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (A = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? A : void 0, "D");
|
10451
10545
|
break;
|
10452
10546
|
}
|
10453
10547
|
}), a.store.setModel(t.formID, c.value);
|
@@ -10595,67 +10689,67 @@ const getProps$p = () => ({
|
|
10595
10689
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
10596
10690
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10597
10691
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
10598
|
-
l.onSubmitSave(async () => (await
|
10599
|
-
const u = computed(() => s.isDeleting.value && k.value.length === 0 &&
|
10600
|
-
var
|
10692
|
+
l.onSubmitSave(async () => (await oe(), !1)), l.onSubmitCancel(async () => (await se(), !1)), _useFormModel$1();
|
10693
|
+
const u = computed(() => s.isDeleting.value && k.value.length === 0 && A.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), k = computed(() => {
|
10694
|
+
var N, G, Y;
|
10601
10695
|
switch (!0) {
|
10602
10696
|
case s.isCreating.value:
|
10603
|
-
return (
|
10697
|
+
return (N = v.value) != null ? N : [];
|
10604
10698
|
case s.isUpdating.value:
|
10605
|
-
return (
|
10699
|
+
return (G = g.value) != null ? G : [];
|
10606
10700
|
case s.isCopying.value:
|
10607
|
-
return (
|
10701
|
+
return (Y = b.value) != null ? Y : [];
|
10608
10702
|
case s.isDeleting.value:
|
10609
10703
|
return [];
|
10610
10704
|
}
|
10611
10705
|
return [];
|
10612
|
-
}),
|
10613
|
-
var
|
10706
|
+
}), A = computed(() => {
|
10707
|
+
var N, G, Y, J;
|
10614
10708
|
switch (!0) {
|
10615
10709
|
case s.isCreating.value:
|
10616
|
-
return (
|
10710
|
+
return (N = C.value) != null ? N : [];
|
10617
10711
|
case s.isUpdating.value:
|
10618
|
-
return (
|
10712
|
+
return (G = _.value) != null ? G : [];
|
10619
10713
|
case s.isCopying.value:
|
10620
|
-
return (
|
10714
|
+
return (Y = y.value) != null ? Y : [];
|
10621
10715
|
case s.isDeleting.value:
|
10622
10716
|
return (J = T.value) != null ? J : [];
|
10623
10717
|
}
|
10624
10718
|
return [];
|
10625
|
-
}), E = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), P = computed(() => E.value || d.value),
|
10719
|
+
}), E = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), P = computed(() => E.value || d.value), M = computed(() => d.value), I = ref({
|
10626
10720
|
kgWidth: 0
|
10627
10721
|
}), w = computed(() => {
|
10628
|
-
var
|
10629
|
-
return !!(u.value ||
|
10630
|
-
}),
|
10631
|
-
var
|
10632
|
-
return u.value ? 398 : (
|
10633
|
-
}),
|
10634
|
-
var
|
10635
|
-
return u.value ? 398 : (
|
10636
|
-
}),
|
10637
|
-
_useResizeObserver$1(
|
10638
|
-
const
|
10722
|
+
var N;
|
10723
|
+
return !!(u.value || F.isFullscreen || ((N = m.value) == null ? void 0 : N.resizable_flg) === 0);
|
10724
|
+
}), L = computed(() => {
|
10725
|
+
var N, G;
|
10726
|
+
return u.value ? 398 : (G = (N = m.value) == null ? void 0 : N.min_width) != null ? G : DEFAULT_MIN_WIDTH;
|
10727
|
+
}), D = computed(() => {
|
10728
|
+
var N, G;
|
10729
|
+
return u.value ? 398 : (G = (N = m.value) == null ? void 0 : N.max_width) != null ? G : DEFAULT_MAX_WIDTH;
|
10730
|
+
}), x = computed(() => u.value ? 398 : I.value.kgWidth), $ = ref(null);
|
10731
|
+
_useResizeObserver$1($);
|
10732
|
+
const V = _useTitle(), O = computed(() => u.value ? 400 : I.value.kgWidth && I.value.kgWidth > 0 ? "auto" : 0), U = computed(() => O.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
|
10639
10733
|
isFullscreen: !1
|
10640
10734
|
}), {
|
10641
|
-
getClass:
|
10642
|
-
} = _useClass(e,
|
10643
|
-
getLayout:
|
10735
|
+
getClass: K
|
10736
|
+
} = _useClass(e, F), {
|
10737
|
+
getLayout: B
|
10644
10738
|
} = _useLayout(), {
|
10645
|
-
getDefaultWidth:
|
10739
|
+
getDefaultWidth: z
|
10646
10740
|
} = _useDefaultWidth(), Q = computed(() => {
|
10647
|
-
var
|
10648
|
-
switch (
|
10741
|
+
var N, G, Y;
|
10742
|
+
switch (B.value) {
|
10649
10743
|
case "horizontal":
|
10650
|
-
switch ((
|
10744
|
+
switch ((N = m.value) == null ? void 0 : N.label_col_unit) {
|
10651
10745
|
case KG_WIDTH_UNIT.SPAN:
|
10652
10746
|
return {
|
10653
|
-
span: (
|
10747
|
+
span: (G = m.value) == null ? void 0 : G.label_col
|
10654
10748
|
};
|
10655
10749
|
default:
|
10656
10750
|
return {
|
10657
10751
|
style: {
|
10658
|
-
width: `${(
|
10752
|
+
width: `${(Y = m.value) == null ? void 0 : Y.label_col}px`
|
10659
10753
|
}
|
10660
10754
|
};
|
10661
10755
|
}
|
@@ -10663,13 +10757,13 @@ const getProps$p = () => ({
|
|
10663
10757
|
return;
|
10664
10758
|
}
|
10665
10759
|
}), q = computed(() => {
|
10666
|
-
var
|
10667
|
-
switch (
|
10760
|
+
var N, G;
|
10761
|
+
switch (B.value) {
|
10668
10762
|
case "horizontal":
|
10669
|
-
switch ((
|
10763
|
+
switch ((N = m.value) == null ? void 0 : N.label_col_unit) {
|
10670
10764
|
case KG_WIDTH_UNIT.SPAN:
|
10671
10765
|
return {
|
10672
|
-
span: 24 - ((
|
10766
|
+
span: 24 - ((G = m.value) == null ? void 0 : G.label_col)
|
10673
10767
|
};
|
10674
10768
|
default:
|
10675
10769
|
return;
|
@@ -10678,19 +10772,19 @@ const getProps$p = () => ({
|
|
10678
10772
|
return;
|
10679
10773
|
}
|
10680
10774
|
});
|
10681
|
-
watch(
|
10682
|
-
|
10775
|
+
watch(U, (N, G) => {
|
10776
|
+
N === !0 && Z(), G === !0 && N === !1 && ee();
|
10683
10777
|
}, {
|
10684
10778
|
immediate: !0
|
10685
|
-
}), watch(
|
10686
|
-
|
10779
|
+
}), watch(z, (N) => {
|
10780
|
+
N && (I.value.kgWidth = N);
|
10687
10781
|
}, {
|
10688
10782
|
immediate: !0
|
10689
10783
|
});
|
10690
|
-
function
|
10691
|
-
var
|
10692
|
-
const
|
10693
|
-
|
10784
|
+
function Z() {
|
10785
|
+
var G;
|
10786
|
+
const N = watch(i.model, (Y) => {
|
10787
|
+
Y && Object.keys(Y).length > 0 && (setTimeout(() => N()), i.store.emit(s.formID, "open", {
|
10694
10788
|
isCreating: s.isCreating.value,
|
10695
10789
|
isUpdating: s.isUpdating.value,
|
10696
10790
|
isCopying: s.isCopying.value,
|
@@ -10701,10 +10795,10 @@ const getProps$p = () => ({
|
|
10701
10795
|
}, {
|
10702
10796
|
immediate: !0
|
10703
10797
|
});
|
10704
|
-
((
|
10798
|
+
((G = m.value) == null ? void 0 : G.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
10705
10799
|
}
|
10706
|
-
async function
|
10707
|
-
|
10800
|
+
async function ee() {
|
10801
|
+
I.value.kgWidth = z.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
10708
10802
|
}
|
10709
10803
|
function se() {
|
10710
10804
|
switch (!0) {
|
@@ -10722,8 +10816,8 @@ const getProps$p = () => ({
|
|
10722
10816
|
break;
|
10723
10817
|
}
|
10724
10818
|
}
|
10725
|
-
async function
|
10726
|
-
var
|
10819
|
+
async function oe() {
|
10820
|
+
var N, G;
|
10727
10821
|
try {
|
10728
10822
|
if (await i.store.emit(s.formID, "beforeOk", {
|
10729
10823
|
isCreating: s.isCreating.value,
|
@@ -10736,11 +10830,11 @@ const getProps$p = () => ({
|
|
10736
10830
|
}))
|
10737
10831
|
return;
|
10738
10832
|
try {
|
10739
|
-
await ((
|
10740
|
-
} catch (
|
10741
|
-
KgUtil.throwIfNotFormError(
|
10833
|
+
await ((N = i.formRef.value) == null ? void 0 : N.validate());
|
10834
|
+
} catch (te) {
|
10835
|
+
KgUtil.throwIfNotFormError(te);
|
10742
10836
|
}
|
10743
|
-
if (await ((
|
10837
|
+
if (await ((G = i.formRef.value) == null ? void 0 : G.validate()), await i.store.emit(s.formID, "afterValidate", {
|
10744
10838
|
isCreating: s.isCreating.value,
|
10745
10839
|
isUpdating: s.isUpdating.value,
|
10746
10840
|
isCopying: s.isCopying.value,
|
@@ -10752,26 +10846,26 @@ const getProps$p = () => ({
|
|
10752
10846
|
return;
|
10753
10847
|
switch (!0) {
|
10754
10848
|
case s.isCreating.value:
|
10755
|
-
await
|
10849
|
+
await fe();
|
10756
10850
|
break;
|
10757
10851
|
case s.isUpdating.value:
|
10758
|
-
await
|
10852
|
+
await ce();
|
10759
10853
|
break;
|
10760
10854
|
case s.isCopying.value:
|
10761
|
-
await
|
10855
|
+
await ne();
|
10762
10856
|
break;
|
10763
10857
|
case s.isDeleting.value:
|
10764
|
-
await
|
10858
|
+
await ue();
|
10765
10859
|
break;
|
10766
10860
|
}
|
10767
|
-
} catch (
|
10768
|
-
KgUtil.throwIfNotFormError(
|
10861
|
+
} catch (Y) {
|
10862
|
+
KgUtil.throwIfNotFormError(Y);
|
10769
10863
|
}
|
10770
10864
|
}
|
10771
|
-
async function
|
10772
|
-
var
|
10773
|
-
const
|
10774
|
-
if (!
|
10865
|
+
async function fe() {
|
10866
|
+
var G, Y, J, te, ae, ie;
|
10867
|
+
const N = (G = s.varButtonCreate.value) == null ? void 0 : G.cmd;
|
10868
|
+
if (!N) {
|
10775
10869
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10776
10870
|
VarButton: s.varButtonCreate.value
|
10777
10871
|
});
|
@@ -10779,7 +10873,7 @@ const getProps$p = () => ({
|
|
10779
10873
|
}
|
10780
10874
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
10781
10875
|
try {
|
10782
|
-
let
|
10876
|
+
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCreate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), le = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
10783
10877
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10784
10878
|
isCreating: s.isCreating.value,
|
10785
10879
|
isUpdating: s.isUpdating.value,
|
@@ -10788,16 +10882,16 @@ const getProps$p = () => ({
|
|
10788
10882
|
row: o.selectedFirstRow.value,
|
10789
10883
|
rows: o.selectedRows.value,
|
10790
10884
|
model: i.model,
|
10791
|
-
params:
|
10792
|
-
data:
|
10885
|
+
params: re,
|
10886
|
+
data: le
|
10793
10887
|
}))
|
10794
10888
|
return;
|
10795
10889
|
await httpClient().request({
|
10796
|
-
method: (ae = (
|
10797
|
-
url:
|
10798
|
-
params:
|
10799
|
-
data:
|
10800
|
-
}), ((
|
10890
|
+
method: (ae = (te = s.varButtonCreate.value) == null ? void 0 : te.cmd_method) != null ? ae : "POST",
|
10891
|
+
url: N,
|
10892
|
+
params: re.value,
|
10893
|
+
data: le.value
|
10894
|
+
}), ((ie = s.varButtonCreate.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(V.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
|
10801
10895
|
isCreating: s.isCreating.value,
|
10802
10896
|
isUpdating: s.isUpdating.value,
|
10803
10897
|
isCopying: s.isCopying.value,
|
@@ -10805,16 +10899,16 @@ const getProps$p = () => ({
|
|
10805
10899
|
row: o.selectedFirstRow.value,
|
10806
10900
|
model: i.model
|
10807
10901
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
10808
|
-
} catch (
|
10809
|
-
console.error(
|
10902
|
+
} catch (re) {
|
10903
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10810
10904
|
} finally {
|
10811
10905
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
10812
10906
|
}
|
10813
10907
|
}
|
10814
|
-
async function
|
10815
|
-
var
|
10816
|
-
const
|
10817
|
-
if (!
|
10908
|
+
async function ce() {
|
10909
|
+
var G, Y, J, te, ae, ie;
|
10910
|
+
const N = (G = s.varButtonUpdate.value) == null ? void 0 : G.cmd;
|
10911
|
+
if (!N) {
|
10818
10912
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10819
10913
|
VarButton: s.varButtonUpdate.value
|
10820
10914
|
});
|
@@ -10822,7 +10916,7 @@ const getProps$p = () => ({
|
|
10822
10916
|
}
|
10823
10917
|
try {
|
10824
10918
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
10825
|
-
let
|
10919
|
+
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonUpdate.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), le = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
10826
10920
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10827
10921
|
isCreating: s.isCreating.value,
|
10828
10922
|
isUpdating: s.isUpdating.value,
|
@@ -10831,16 +10925,16 @@ const getProps$p = () => ({
|
|
10831
10925
|
row: o.selectedRow.value,
|
10832
10926
|
rows: o.selectedRows.value,
|
10833
10927
|
model: i.model,
|
10834
|
-
params:
|
10835
|
-
data:
|
10928
|
+
params: re,
|
10929
|
+
data: le
|
10836
10930
|
}))
|
10837
10931
|
return;
|
10838
10932
|
await httpClient().request({
|
10839
|
-
method: (ae = (
|
10840
|
-
url:
|
10841
|
-
params:
|
10842
|
-
data:
|
10843
|
-
}), ((
|
10933
|
+
method: (ae = (te = s.varButtonUpdate.value) == null ? void 0 : te.cmd_method) != null ? ae : "POST",
|
10934
|
+
url: N,
|
10935
|
+
params: re.value,
|
10936
|
+
data: le.value
|
10937
|
+
}), ((ie = s.varButtonUpdate.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await i.store.emit(s.formID, "ok", {
|
10844
10938
|
isCreating: s.isCreating.value,
|
10845
10939
|
isUpdating: s.isUpdating.value,
|
10846
10940
|
isCopying: s.isCopying.value,
|
@@ -10848,16 +10942,16 @@ const getProps$p = () => ({
|
|
10848
10942
|
row: o.selectedFirstRow.value,
|
10849
10943
|
model: i.model
|
10850
10944
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
10851
|
-
} catch (
|
10852
|
-
console.error(
|
10945
|
+
} catch (re) {
|
10946
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10853
10947
|
} finally {
|
10854
10948
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
10855
10949
|
}
|
10856
10950
|
}
|
10857
|
-
async function
|
10858
|
-
var
|
10859
|
-
const
|
10860
|
-
if (!
|
10951
|
+
async function ne() {
|
10952
|
+
var G, Y, J, te, ae, ie, re, le;
|
10953
|
+
const N = (G = s.varButtonCopy.value) == null ? void 0 : G.cmd;
|
10954
|
+
if (!N) {
|
10861
10955
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10862
10956
|
VarButton: s.varButtonCopy.value
|
10863
10957
|
});
|
@@ -10865,8 +10959,8 @@ const getProps$p = () => ({
|
|
10865
10959
|
}
|
10866
10960
|
try {
|
10867
10961
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
10868
|
-
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10869
|
-
...(
|
10962
|
+
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (Y = s.varButtonCopy.value) == null ? void 0 : Y.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
|
10963
|
+
...(te = o.selectedFirstRow.value) != null ? te : {},
|
10870
10964
|
...toRaw(i.model.value)
|
10871
10965
|
}, s.formID, r));
|
10872
10966
|
if (((ae = m.value) == null ? void 0 : ae.cpy_clear_id_flg) !== 0 && delete pe.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
@@ -10882,11 +10976,11 @@ const getProps$p = () => ({
|
|
10882
10976
|
}))
|
10883
10977
|
return;
|
10884
10978
|
await httpClient().request({
|
10885
|
-
method: (
|
10886
|
-
url:
|
10979
|
+
method: (re = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd_method) != null ? re : "POST",
|
10980
|
+
url: N,
|
10887
10981
|
params: ge.value,
|
10888
10982
|
data: pe.value
|
10889
|
-
}), ((
|
10983
|
+
}), ((le = s.varButtonCopy.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
|
10890
10984
|
isCreating: s.isCreating.value,
|
10891
10985
|
isUpdating: s.isUpdating.value,
|
10892
10986
|
isCopying: s.isCopying.value,
|
@@ -10900,10 +10994,10 @@ const getProps$p = () => ({
|
|
10900
10994
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
10901
10995
|
}
|
10902
10996
|
}
|
10903
|
-
async function
|
10904
|
-
var
|
10905
|
-
const
|
10906
|
-
if (!
|
10997
|
+
async function ue() {
|
10998
|
+
var G, Y, J, te, ae, ie;
|
10999
|
+
const N = (G = s.varButtonDelete.value) == null ? void 0 : G.cmd;
|
11000
|
+
if (!N) {
|
10907
11001
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10908
11002
|
VarButton: s.varButtonDelete.value
|
10909
11003
|
});
|
@@ -10911,12 +11005,12 @@ const getProps$p = () => ({
|
|
10911
11005
|
}
|
10912
11006
|
try {
|
10913
11007
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
10914
|
-
let
|
10915
|
-
ids: (J = (
|
11008
|
+
let re = ref({
|
11009
|
+
ids: (J = (Y = o.selectedRows.value) == null ? void 0 : Y.map((pe) => {
|
10916
11010
|
var me, _e, he;
|
10917
11011
|
return (he = pe[(_e = (me = s.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
|
10918
11012
|
})) != null ? J : []
|
10919
|
-
}),
|
11013
|
+
}), le = ref({});
|
10920
11014
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10921
11015
|
isCreating: s.isCreating.value,
|
10922
11016
|
isUpdating: s.isUpdating.value,
|
@@ -10925,18 +11019,18 @@ const getProps$p = () => ({
|
|
10925
11019
|
row: o.selectedFirstRow.value,
|
10926
11020
|
rows: o.selectedRows.value,
|
10927
11021
|
model: i.model,
|
10928
|
-
params:
|
10929
|
-
data:
|
11022
|
+
params: re,
|
11023
|
+
data: le
|
10930
11024
|
}))
|
10931
11025
|
return;
|
10932
11026
|
await httpClient().request({
|
10933
|
-
method: (ae = (
|
10934
|
-
url:
|
10935
|
-
params:
|
10936
|
-
data:
|
11027
|
+
method: (ae = (te = s.varButtonDelete.value) == null ? void 0 : te.cmd_method) != null ? ae : "DELETE",
|
11028
|
+
url: N,
|
11029
|
+
params: re.value,
|
11030
|
+
data: le.value
|
10937
11031
|
}, {
|
10938
11032
|
joinParamsToUrl: !0
|
10939
|
-
}), ((
|
11033
|
+
}), ((ie = s.varButtonDelete.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await i.store.emit(s.formID, "ok", {
|
10940
11034
|
isCreating: s.isCreating.value,
|
10941
11035
|
isUpdating: s.isUpdating.value,
|
10942
11036
|
isCopying: s.isCopying.value,
|
@@ -10944,52 +11038,52 @@ const getProps$p = () => ({
|
|
10944
11038
|
row: o.selectedFirstRow.value,
|
10945
11039
|
model: i.model
|
10946
11040
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
10947
|
-
} catch (
|
10948
|
-
console.error(
|
11041
|
+
} catch (re) {
|
11042
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10949
11043
|
} finally {
|
10950
11044
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
10951
11045
|
}
|
10952
11046
|
}
|
10953
|
-
function de(
|
10954
|
-
var
|
10955
|
-
const
|
10956
|
-
return isFunction$2(
|
10957
|
-
kgVarName:
|
11047
|
+
function de(N) {
|
11048
|
+
var Y, J;
|
11049
|
+
const G = (J = (Y = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[N.var_nam];
|
11050
|
+
return isFunction$2(G) ? createVNode(KgForm.Item, {
|
11051
|
+
kgVarName: N.var_nam,
|
10958
11052
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10959
|
-
kgRules: i.rules.value[
|
10960
|
-
onKgSubmit:
|
11053
|
+
kgRules: i.rules.value[N.var_nam],
|
11054
|
+
onKgSubmit: oe
|
10961
11055
|
}, {
|
10962
11056
|
control: ({
|
10963
|
-
varName:
|
11057
|
+
varName: te,
|
10964
11058
|
props: ae,
|
10965
|
-
model:
|
10966
|
-
varVariableConfig:
|
10967
|
-
varProfileDetail:
|
11059
|
+
model: ie,
|
11060
|
+
varVariableConfig: re,
|
11061
|
+
varProfileDetail: le,
|
10968
11062
|
varSubmitField: ge
|
10969
|
-
}) =>
|
10970
|
-
varName:
|
11063
|
+
}) => G({
|
11064
|
+
varName: te,
|
10971
11065
|
props: ae,
|
10972
|
-
model:
|
10973
|
-
varVariableConfig:
|
10974
|
-
varProfileDetail:
|
11066
|
+
model: ie,
|
11067
|
+
varVariableConfig: re,
|
11068
|
+
varProfileDetail: le,
|
10975
11069
|
varSubmitField: ge
|
10976
11070
|
})
|
10977
11071
|
}) : createVNode(KgForm.Item, {
|
10978
|
-
kgVarName:
|
11072
|
+
kgVarName: N.var_nam,
|
10979
11073
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10980
|
-
kgRules: i.rules.value[
|
10981
|
-
onKgSubmit:
|
11074
|
+
kgRules: i.rules.value[N.var_nam],
|
11075
|
+
onKgSubmit: oe
|
10982
11076
|
}, null);
|
10983
11077
|
}
|
10984
11078
|
function R() {
|
10985
|
-
let
|
11079
|
+
let N, G;
|
10986
11080
|
return createVNode(KgResizable, {
|
10987
11081
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10988
|
-
kgMinWidth:
|
10989
|
-
kgMaxWidth:
|
10990
|
-
kgWidth:
|
11082
|
+
kgMinWidth: L.value,
|
11083
|
+
kgMaxWidth: D.value,
|
11084
|
+
kgWidth: x.value,
|
10991
11085
|
kgDisabled: w.value,
|
10992
|
-
"onUpdate:kgWidth": (
|
11086
|
+
"onUpdate:kgWidth": (Y) => I.value.kgWidth = Y
|
10993
11087
|
}, {
|
10994
11088
|
default: () => [createVNode(Spin, {
|
10995
11089
|
spinning: d.value
|
@@ -10997,20 +11091,20 @@ const getProps$p = () => ({
|
|
10997
11091
|
default: () => [createVNode(KgForm, {
|
10998
11092
|
ref: i.formRef,
|
10999
11093
|
model: i.model.value,
|
11000
|
-
layout:
|
11094
|
+
layout: B.value,
|
11001
11095
|
labelCol: Q.value,
|
11002
11096
|
wrapperCol: q.value
|
11003
11097
|
}, {
|
11004
11098
|
default: () => [createVNode("div", {
|
11005
|
-
ref:
|
11099
|
+
ref: $
|
11006
11100
|
}, [k.value.length > 0 && createVNode(Row, {
|
11007
11101
|
gutter: 12
|
11008
|
-
}, _isSlot$8(
|
11009
|
-
default: () => [
|
11010
|
-
}), k.value.length > 0 &&
|
11102
|
+
}, _isSlot$8(N = k.value.map(de)) ? N : {
|
11103
|
+
default: () => [N]
|
11104
|
+
}), k.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
|
11011
11105
|
gutter: 12
|
11012
|
-
}, _isSlot$8(
|
11013
|
-
default: () => [
|
11106
|
+
}, _isSlot$8(G = A.value.map(de)) ? G : {
|
11107
|
+
default: () => [G]
|
11014
11108
|
}), u.value && createVNode("div", {
|
11015
11109
|
style: "text-align: center; padding: 6px 0 12px;"
|
11016
11110
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11018,34 +11112,34 @@ const getProps$p = () => ({
|
|
11018
11112
|
})]
|
11019
11113
|
});
|
11020
11114
|
}
|
11021
|
-
function
|
11022
|
-
let
|
11115
|
+
function H() {
|
11116
|
+
let N, G;
|
11023
11117
|
return createVNode("div", null, [createVNode(Button, {
|
11024
11118
|
type: "primary",
|
11025
11119
|
ghost: !P.value,
|
11026
11120
|
disabled: P.value,
|
11027
11121
|
onClick: se
|
11028
|
-
}, _isSlot$8(
|
11029
|
-
default: () => [
|
11122
|
+
}, _isSlot$8(N = n.t("kg.cancel")) ? N : {
|
11123
|
+
default: () => [N]
|
11030
11124
|
}), createVNode(Button, {
|
11031
11125
|
type: "primary",
|
11032
|
-
disabled:
|
11126
|
+
disabled: M.value,
|
11033
11127
|
loading: E.value,
|
11034
11128
|
danger: !!s.isDeleting.value,
|
11035
|
-
onClick:
|
11036
|
-
}, _isSlot$8(
|
11037
|
-
default: () => [
|
11129
|
+
onClick: oe
|
11130
|
+
}, _isSlot$8(G = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? G : {
|
11131
|
+
default: () => [G]
|
11038
11132
|
})]);
|
11039
11133
|
}
|
11040
|
-
function
|
11134
|
+
function X() {
|
11041
11135
|
return createVNode("div", {
|
11042
|
-
title:
|
11043
|
-
}, [
|
11136
|
+
title: V.title.value
|
11137
|
+
}, [V.title.value]);
|
11044
11138
|
}
|
11045
|
-
function
|
11139
|
+
function W() {
|
11046
11140
|
return createVNode(KgSubmitHeader, {
|
11047
|
-
isFullscreen:
|
11048
|
-
"onUpdate:isFullscreen": (
|
11141
|
+
isFullscreen: F.isFullscreen,
|
11142
|
+
"onUpdate:isFullscreen": (N) => F.isFullscreen = N,
|
11049
11143
|
kgShowFullscreenButton: !u.value,
|
11050
11144
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11051
11145
|
onKgCancel: se
|
@@ -11054,20 +11148,20 @@ const getProps$p = () => ({
|
|
11054
11148
|
return onUnmounted(() => {
|
11055
11149
|
i.store.dispose(s.formID);
|
11056
11150
|
}), () => createVNode(Drawer, {
|
11057
|
-
visible:
|
11151
|
+
visible: U.value,
|
11058
11152
|
placement: "right",
|
11059
11153
|
closable: !1,
|
11060
11154
|
maskClosable: !1,
|
11061
11155
|
keyboard: !1,
|
11062
11156
|
destroyOnClose: !0,
|
11063
|
-
width:
|
11064
|
-
class:
|
11157
|
+
width: O.value,
|
11158
|
+
class: K.value,
|
11065
11159
|
"kg-frm_id": s.formID
|
11066
11160
|
}, {
|
11067
|
-
title:
|
11068
|
-
extra:
|
11161
|
+
title: X,
|
11162
|
+
extra: W,
|
11069
11163
|
default: R,
|
11070
|
-
footer:
|
11164
|
+
footer: H
|
11071
11165
|
});
|
11072
11166
|
}
|
11073
11167
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11337,31 +11431,31 @@ const getProps$n = () => ({
|
|
11337
11431
|
var k;
|
11338
11432
|
try {
|
11339
11433
|
await ((k = C.value) == null ? void 0 : k.validate());
|
11340
|
-
} catch (
|
11341
|
-
KgUtil.throwIfNotFormError(
|
11434
|
+
} catch (A) {
|
11435
|
+
KgUtil.throwIfNotFormError(A);
|
11342
11436
|
}
|
11343
11437
|
return !1;
|
11344
11438
|
});
|
11345
11439
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11346
|
-
var k,
|
11347
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((
|
11440
|
+
var k, A, E, P, M, I;
|
11441
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((P = c.value) == null ? void 0 : P.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
|
11348
11442
|
}), d = computed(() => {
|
11349
|
-
var k,
|
11350
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((
|
11443
|
+
var k, A;
|
11444
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[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);
|
11351
11445
|
}), m = computed(() => {
|
11352
|
-
var
|
11446
|
+
var A, E;
|
11353
11447
|
let k = "kg-table-td";
|
11354
|
-
return ((
|
11448
|
+
return ((A = i.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((E = i.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
11355
11449
|
}), v = computed(() => {
|
11356
|
-
var
|
11450
|
+
var A, E, P, M;
|
11357
11451
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11358
11452
|
return "";
|
11359
11453
|
let k = e.kgValue;
|
11360
|
-
switch ((
|
11454
|
+
switch ((A = i.value) == null ? void 0 : A.display_type) {
|
11361
11455
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11362
11456
|
{
|
11363
|
-
const
|
11364
|
-
k = (
|
11457
|
+
const I = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
|
11458
|
+
k = (M = (P = e.kgRow) == null ? void 0 : P[I.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
|
11365
11459
|
}
|
11366
11460
|
break;
|
11367
11461
|
}
|
@@ -11369,18 +11463,18 @@ const getProps$n = () => ({
|
|
11369
11463
|
`)), k;
|
11370
11464
|
}), C = ref(null);
|
11371
11465
|
function g(k) {
|
11372
|
-
var
|
11466
|
+
var A, E, P;
|
11373
11467
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11374
|
-
switch ((
|
11468
|
+
switch ((A = i.value) == null ? void 0 : A.display_type) {
|
11375
11469
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11376
11470
|
k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
|
11377
11471
|
break;
|
11378
11472
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11379
11473
|
{
|
11380
11474
|
k.stopPropagation(), k.preventDefault();
|
11381
|
-
const
|
11475
|
+
const M = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
|
11382
11476
|
(P = a.router.value) == null || P.push({
|
11383
|
-
path:
|
11477
|
+
path: M.path,
|
11384
11478
|
query: e.kgRow
|
11385
11479
|
});
|
11386
11480
|
}
|
@@ -11389,7 +11483,7 @@ const getProps$n = () => ({
|
|
11389
11483
|
}
|
11390
11484
|
function _() {
|
11391
11485
|
}
|
11392
|
-
function
|
11486
|
+
function b() {
|
11393
11487
|
return createVNode(KgForm, {
|
11394
11488
|
ref: C,
|
11395
11489
|
model: l.model.value,
|
@@ -11410,36 +11504,36 @@ const getProps$n = () => ({
|
|
11410
11504
|
})]
|
11411
11505
|
});
|
11412
11506
|
}
|
11413
|
-
function
|
11414
|
-
var k,
|
11507
|
+
function y() {
|
11508
|
+
var k, A, E, P, M, I, w, L, D, x;
|
11415
11509
|
if (u.value)
|
11416
|
-
return
|
11510
|
+
return b();
|
11417
11511
|
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
11418
11512
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11419
|
-
const
|
11513
|
+
const $ = KgUtil.tryParseJSON((A = i.value) == null ? void 0 : A.display_type_properties);
|
11420
11514
|
return createVNode(KgYesOrNo, {
|
11421
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E =
|
11422
|
-
kgNilAsFalse:
|
11515
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = $.yValue) != null ? E : 1),
|
11516
|
+
kgNilAsFalse: $.nilAsFalse
|
11423
11517
|
}, null);
|
11424
11518
|
}
|
11425
11519
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
11426
|
-
const
|
11427
|
-
if (
|
11428
|
-
const
|
11429
|
-
return
|
11430
|
-
color: (
|
11431
|
-
}, _isSlot$7(
|
11432
|
-
default: () => [
|
11520
|
+
const $ = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties), V = isArrayLike($) && $.find((O) => O.value === e.kgValue);
|
11521
|
+
if (V) {
|
11522
|
+
const O = n.t(V.varName).value;
|
11523
|
+
return O ? createVNode(Tag, {
|
11524
|
+
color: (M = V.color) != null ? M : "default"
|
11525
|
+
}, _isSlot$7(O) ? O : {
|
11526
|
+
default: () => [O]
|
11433
11527
|
}) : T();
|
11434
11528
|
} else
|
11435
11529
|
return T();
|
11436
11530
|
}
|
11437
11531
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11438
|
-
const
|
11439
|
-
if (
|
11440
|
-
const
|
11532
|
+
const $ = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
11533
|
+
if ($.isTag && isArrayLike($.tagColors)) {
|
11534
|
+
const V = $.tagColors.find((O) => O.value === e.kgValue);
|
11441
11535
|
return v.value ? createVNode(Tag, {
|
11442
|
-
color: (w =
|
11536
|
+
color: (w = V == null ? void 0 : V.color) != null ? w : "default"
|
11443
11537
|
}, {
|
11444
11538
|
default: () => [v.value]
|
11445
11539
|
}) : T();
|
@@ -11447,11 +11541,11 @@ const getProps$n = () => ({
|
|
11447
11541
|
return T();
|
11448
11542
|
}
|
11449
11543
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11450
|
-
const
|
11544
|
+
const $ = KgUtil.tryParseJSON((L = i.value) == null ? void 0 : L.display_type_properties);
|
11451
11545
|
return createVNode(KgProgressA, {
|
11452
|
-
kgTextWidth:
|
11453
|
-
kgLeft: (
|
11454
|
-
kgRight: (
|
11546
|
+
kgTextWidth: $.textWidth,
|
11547
|
+
kgLeft: (D = e.kgRow) == null ? void 0 : D[$.leftColumn],
|
11548
|
+
kgRight: (x = e.kgRow) == null ? void 0 : x[$.rightColumn]
|
11455
11549
|
}, null);
|
11456
11550
|
}
|
11457
11551
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -11465,17 +11559,18 @@ const getProps$n = () => ({
|
|
11465
11559
|
}
|
11466
11560
|
}
|
11467
11561
|
function T(k = !1) {
|
11468
|
-
let
|
11469
|
-
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (
|
11562
|
+
let A = "";
|
11563
|
+
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
|
11470
11564
|
innerHTML: v.value,
|
11471
|
-
class:
|
11565
|
+
class: A,
|
11472
11566
|
onClick: g
|
11473
11567
|
}, null);
|
11474
11568
|
}
|
11475
11569
|
return () => createVNode("div", {
|
11476
11570
|
class: m.value,
|
11477
|
-
title: v.value
|
11478
|
-
|
11571
|
+
title: v.value,
|
11572
|
+
"kg-value": e.kgValue
|
11573
|
+
}, [y()]);
|
11479
11574
|
}
|
11480
11575
|
}), KgTable_Info = "";
|
11481
11576
|
function _isSlot$6(e) {
|
@@ -11564,8 +11659,8 @@ const getProps$m = () => ({
|
|
11564
11659
|
}) => {
|
11565
11660
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11566
11661
|
return l = watch(i, (u) => {
|
11567
|
-
var d, m, v, C, g, _,
|
11568
|
-
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 = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (
|
11662
|
+
var d, m, v, C, g, _, b, y, T, k, A;
|
11663
|
+
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 = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 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 = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11569
11664
|
}, {
|
11570
11665
|
immediate: !0
|
11571
11666
|
}), KgUtil.hideLoading(), !1;
|
@@ -11836,8 +11931,8 @@ const getProps$h = () => ({
|
|
11836
11931
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
11837
11932
|
}, [(T = n.currentVarGridDetails.value) == null ? void 0 : T.map((k) => createVNode("li", {
|
11838
11933
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11839
|
-
onClick: (
|
11840
|
-
|
11934
|
+
onClick: (A) => {
|
11935
|
+
A.preventDefault(), A.stopPropagation(), v(k);
|
11841
11936
|
},
|
11842
11937
|
style: {
|
11843
11938
|
display: l(k, o.value) ? "flex" : "none"
|
@@ -11849,24 +11944,24 @@ const getProps$h = () => ({
|
|
11849
11944
|
}, {
|
11850
11945
|
default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
|
11851
11946
|
}), createVNode(HolderOutlined$1, {
|
11852
|
-
onClick: (
|
11853
|
-
|
11947
|
+
onClick: (A) => {
|
11948
|
+
A.preventDefault(), A.stopPropagation();
|
11854
11949
|
}
|
11855
11950
|
}, null)]))])]);
|
11856
11951
|
},
|
11857
11952
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
11858
11953
|
});
|
11859
11954
|
}
|
11860
|
-
function
|
11955
|
+
function b() {
|
11861
11956
|
return createVNode(Menu.SubMenu, {
|
11862
11957
|
key: "2",
|
11863
11958
|
title: a.t("kg.KgTable.varGridMasters"),
|
11864
11959
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
11865
11960
|
}, {
|
11866
11961
|
default: () => {
|
11867
|
-
var
|
11962
|
+
var A;
|
11868
11963
|
let T, k;
|
11869
|
-
return createVNode(Fragment, null, [(
|
11964
|
+
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((E) => {
|
11870
11965
|
var P;
|
11871
11966
|
return createVNode(Menu.Item, {
|
11872
11967
|
key: E.id,
|
@@ -11891,7 +11986,7 @@ const getProps$h = () => ({
|
|
11891
11986
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
11892
11987
|
});
|
11893
11988
|
}
|
11894
|
-
function
|
11989
|
+
function y() {
|
11895
11990
|
let T;
|
11896
11991
|
return createVNode(Menu.Item, {
|
11897
11992
|
key: "config-var-grid-master",
|
@@ -11915,7 +12010,7 @@ const getProps$h = () => ({
|
|
11915
12010
|
"onUpdate:openKeys": (T) => i.value = T,
|
11916
12011
|
selectable: !1
|
11917
12012
|
}, {
|
11918
|
-
default: () => [_(),
|
12013
|
+
default: () => [_(), b(), y()]
|
11919
12014
|
})
|
11920
12015
|
}), u.visible && createVNode(KgTableSettingConfigModal, {
|
11921
12016
|
visible: u.visible,
|
@@ -11941,10 +12036,10 @@ function _useColumns(e) {
|
|
11941
12036
|
}) => g + 1
|
11942
12037
|
}, ...(C = u == null ? void 0 : u.map((g) => {
|
11943
12038
|
const _ = g.var_nam;
|
11944
|
-
function
|
12039
|
+
function b() {
|
11945
12040
|
return g.width === "auto" ? "auto" : Number(g.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
11946
12041
|
}
|
11947
|
-
function
|
12042
|
+
function y() {
|
11948
12043
|
return r.t(_).value;
|
11949
12044
|
}
|
11950
12045
|
function T() {
|
@@ -11956,23 +12051,23 @@ function _useColumns(e) {
|
|
11956
12051
|
if (g.fix_right_flg === 1)
|
11957
12052
|
return "right";
|
11958
12053
|
}
|
11959
|
-
function
|
11960
|
-
var
|
11961
|
-
return !((
|
12054
|
+
function A() {
|
12055
|
+
var M, I, w, L;
|
12056
|
+
return !((I = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) != null && I.kgDisabled || isNil((L = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : L.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
11962
12057
|
}
|
11963
12058
|
function E() {
|
11964
12059
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
11965
12060
|
}
|
11966
|
-
const P =
|
12061
|
+
const P = b();
|
11967
12062
|
return {
|
11968
12063
|
dataIndex: _,
|
11969
|
-
title:
|
12064
|
+
title: y(),
|
11970
12065
|
width: P,
|
11971
12066
|
resizable: typeof P == "number",
|
11972
12067
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11973
12068
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11974
12069
|
fixed: k(),
|
11975
|
-
sorter:
|
12070
|
+
sorter: A(),
|
11976
12071
|
align: E(),
|
11977
12072
|
defaultSortOrder: T(),
|
11978
12073
|
customHeaderCell: () => ({
|
@@ -11980,13 +12075,13 @@ function _useColumns(e) {
|
|
11980
12075
|
"kg-var_nam": _,
|
11981
12076
|
draggable: !0
|
11982
12077
|
}),
|
11983
|
-
customCell: (
|
12078
|
+
customCell: (M) => {
|
11984
12079
|
var w;
|
11985
|
-
const
|
12080
|
+
const I = r.store.getVarSubmitField(r.formID, _);
|
11986
12081
|
return {
|
11987
12082
|
"kg-frm_id": r.formID,
|
11988
12083
|
"kg-var_nam": _,
|
11989
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
12084
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && M[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
|
11990
12085
|
};
|
11991
12086
|
}
|
11992
12087
|
};
|
@@ -12087,7 +12182,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12087
12182
|
kgDisabled: {
|
12088
12183
|
type: Boolean,
|
12089
12184
|
default: void 0
|
12090
|
-
}
|
12185
|
+
},
|
12186
|
+
kgRowClassName: Function
|
12091
12187
|
}), KgTable = defineComponent({
|
12092
12188
|
name: "KgTable",
|
12093
12189
|
props: getProps$g(),
|
@@ -12099,26 +12195,26 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12099
12195
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), l = useKg(), o = useKgVar(), i = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
12100
12196
|
i.onSearch(async ({
|
12101
12197
|
resetPageIndex: R
|
12102
|
-
}) => (
|
12198
|
+
}) => (B(R), !1)), i.onReset(async () => (B(!0), !1)), u.store.$onAction(async ({
|
12103
12199
|
name: R,
|
12104
|
-
args:
|
12200
|
+
args: H
|
12105
12201
|
}) => {
|
12106
12202
|
switch (R) {
|
12107
12203
|
case "setRowSelect":
|
12108
|
-
if (
|
12109
|
-
const
|
12204
|
+
if (H[0] === o.formID) {
|
12205
|
+
const X = H[1], W = H[2], N = X[u.id.value];
|
12110
12206
|
switch (!0) {
|
12111
|
-
case (
|
12112
|
-
|
12207
|
+
case (W && !x.value.includes(N)):
|
12208
|
+
z([...x.value, N]);
|
12113
12209
|
break;
|
12114
|
-
case (!
|
12115
|
-
|
12210
|
+
case (!W && x.value.includes(N)):
|
12211
|
+
z(without$1(x.value, N));
|
12116
12212
|
break;
|
12117
12213
|
}
|
12118
12214
|
}
|
12119
12215
|
break;
|
12120
12216
|
case "clearDatas":
|
12121
|
-
|
12217
|
+
H[0] === o.formID && (D.value = [], $.total = 0, K(), v.value = []);
|
12122
12218
|
break;
|
12123
12219
|
}
|
12124
12220
|
});
|
@@ -12127,242 +12223,242 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12127
12223
|
scrollX: g
|
12128
12224
|
} = _useColumns(e), {
|
12129
12225
|
isLoading: _
|
12130
|
-
} = _useLoading(),
|
12131
|
-
_useResizeObserver(
|
12132
|
-
const
|
12133
|
-
var R,
|
12134
|
-
return (
|
12226
|
+
} = _useLoading(), b = ref(null);
|
12227
|
+
_useResizeObserver(b), _useDragColumn(b, C);
|
12228
|
+
const y = computed(() => {
|
12229
|
+
var R, H;
|
12230
|
+
return (H = (R = o.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? H : null;
|
12135
12231
|
}), T = computed(() => {
|
12136
|
-
var
|
12232
|
+
var H, X, W, N, G, Y, J;
|
12137
12233
|
let R = {
|
12138
|
-
pageNo:
|
12139
|
-
pageSize:
|
12140
|
-
...
|
12141
|
-
...(
|
12234
|
+
pageNo: $.pageIndex,
|
12235
|
+
pageSize: $.pageSize,
|
12236
|
+
...V,
|
12237
|
+
...(X = (H = i.model) == null ? void 0 : H.value) != null ? X : {}
|
12142
12238
|
};
|
12143
12239
|
return o.varButtonSearch.value && (R = {
|
12144
12240
|
...R,
|
12145
|
-
...KgVarUtil.parseCommandParameter((
|
12146
|
-
}), (
|
12241
|
+
...KgVarUtil.parseCommandParameter((N = (W = o.varButtonSearch.value) == null ? void 0 : W.cmd_prm) != null ? N : "")
|
12242
|
+
}), (G = o.varGridConfig.value) != null && G.cmd_prm && (R = {
|
12147
12243
|
...R,
|
12148
|
-
...KgVarUtil.parseCommandParameter((
|
12244
|
+
...KgVarUtil.parseCommandParameter((Y = o.varGridConfig.value.cmd_prm) != null ? Y : "")
|
12149
12245
|
}), ((J = o.varGridConfig.value) == null ? void 0 : J.convert_sort_field_to_under_score_flg) === 1 && R.column && (R.column = snakeCase$1(R.column)), R;
|
12150
12246
|
}), k = computed(() => {
|
12151
|
-
var R,
|
12152
|
-
if (!isNil((
|
12153
|
-
return (
|
12247
|
+
var R, H, X, W;
|
12248
|
+
if (!isNil((H = (R = s == null ? void 0 : s.value) == null ? void 0 : R.KgTable) == null ? void 0 : H.kgDisabled))
|
12249
|
+
return (W = (X = s == null ? void 0 : s.value) == null ? void 0 : X.KgTable) == null ? void 0 : W.kgDisabled;
|
12154
12250
|
if (!isNil(e.kgDisabled))
|
12155
12251
|
return e.kgDisabled;
|
12156
|
-
}),
|
12252
|
+
}), A = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), E = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || $.total === 0), P = computed(() => {
|
12157
12253
|
var R;
|
12158
12254
|
return !!((R = n == null ? void 0 : n.KgTable) != null && R.expandedRowRender);
|
12159
|
-
}),
|
12255
|
+
}), M = computed(() => {
|
12160
12256
|
var R;
|
12161
12257
|
return ((R = o.varGridConfig.value) == null ? void 0 : R.show_check_column_flg) === 1;
|
12162
|
-
}),
|
12163
|
-
if (!!
|
12258
|
+
}), I = computed(() => {
|
12259
|
+
if (!!M.value)
|
12164
12260
|
return {
|
12165
12261
|
fixed: "left",
|
12166
12262
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
12167
12263
|
hideSelectAll: !u.isMultiSelect.value,
|
12168
|
-
selectedRowKeys:
|
12264
|
+
selectedRowKeys: x,
|
12169
12265
|
preserveSelectedRowKeys: !1,
|
12170
12266
|
getCheckboxProps: (R) => ({
|
12171
12267
|
disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value
|
12172
12268
|
}),
|
12173
12269
|
onSelect: (R) => Q(R),
|
12174
|
-
onChange: (R) => u.isMultiSelect.value &&
|
12270
|
+
onChange: (R) => u.isMultiSelect.value && z(R)
|
12175
12271
|
};
|
12176
12272
|
}), w = computed(() => {
|
12177
|
-
var
|
12273
|
+
var H;
|
12178
12274
|
let R = "kg-table";
|
12179
|
-
return ((
|
12180
|
-
}),
|
12181
|
-
var
|
12275
|
+
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (R += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (R += " 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) && (R += " kg-table--submitting"), R;
|
12276
|
+
}), L = computed(() => {
|
12277
|
+
var H;
|
12182
12278
|
let R = "kg-table-bottom";
|
12183
|
-
return ((
|
12184
|
-
}),
|
12279
|
+
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
|
12280
|
+
}), D = ref([]), x = (de = u.store.getSelectedRowKeys(o.formID)) != null ? de : ref([]), $ = reactive({
|
12185
12281
|
pageIndex: 1,
|
12186
12282
|
pageSize: 10,
|
12187
12283
|
total: 0
|
12188
|
-
}),
|
12284
|
+
}), V = reactive({
|
12189
12285
|
column: void 0,
|
12190
12286
|
order: void 0
|
12191
|
-
}),
|
12192
|
-
R && (setTimeout(() =>
|
12287
|
+
}), O = watch(u.pageSizeOption, (R) => {
|
12288
|
+
R && (setTimeout(() => O()), $.pageSize = R, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
|
12193
12289
|
}, {
|
12194
12290
|
immediate: !0
|
12195
12291
|
});
|
12196
12292
|
watch(u.pageSizeOptions, (R) => {
|
12197
|
-
R.length > 0 && !R.includes(
|
12198
|
-
}), watch([
|
12199
|
-
R &&
|
12293
|
+
R.length > 0 && !R.includes($.pageSize) && ($.pageSize = u.pageSizeOption.value);
|
12294
|
+
}), watch([y, u.isReadAutomatically, i.isReady], ([R, H, X]) => {
|
12295
|
+
R && H && X && !u.store.getIsRetrieved(o.formID) && B(!0);
|
12200
12296
|
}, {
|
12201
12297
|
immediate: !0
|
12202
|
-
}), watch(o.isCreating, (R,
|
12203
|
-
R === !0 ?
|
12298
|
+
}), watch(o.isCreating, (R, H) => {
|
12299
|
+
R === !0 ? U() : R === !1 && H === !0 && F();
|
12204
12300
|
}), onUnmounted(() => {
|
12205
12301
|
u.store.dispose(o.formID);
|
12206
12302
|
});
|
12207
|
-
function
|
12303
|
+
function U() {
|
12208
12304
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
12209
12305
|
const R = {
|
12210
12306
|
[u.id.value]: KG_TABLE_TEMP_ID
|
12211
12307
|
};
|
12212
|
-
|
12308
|
+
D.value = [R, ...D.value], u.store.setSelectedRows(o.formID, [R]);
|
12213
12309
|
}
|
12214
12310
|
}
|
12215
|
-
function
|
12216
|
-
const R =
|
12217
|
-
R && (
|
12311
|
+
function F() {
|
12312
|
+
const R = D.value.find((H) => H[u.id.value] === KG_TABLE_TEMP_ID);
|
12313
|
+
R && (D.value = without$1(D.value, R), u.store.setSelectedRows(o.formID, []));
|
12218
12314
|
}
|
12219
|
-
function
|
12220
|
-
var
|
12221
|
-
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
12222
|
-
if (!
|
12315
|
+
function K(R, H) {
|
12316
|
+
var X;
|
12317
|
+
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!I.value) {
|
12318
|
+
if (!H) {
|
12223
12319
|
u.store.setSelectedRows(o.formID, []);
|
12224
12320
|
return;
|
12225
12321
|
}
|
12226
12322
|
switch (R == null ? void 0 : R.detail) {
|
12227
12323
|
case 1:
|
12228
|
-
switch ((
|
12324
|
+
switch ((X = o.varGridConfig.value) == null ? void 0 : X.operation_on_row_click) {
|
12229
12325
|
case 0:
|
12230
12326
|
break;
|
12231
12327
|
case 1:
|
12232
|
-
u.store.setSelectedRows(o.formID, [
|
12328
|
+
u.store.setSelectedRows(o.formID, [H]);
|
12233
12329
|
break;
|
12234
12330
|
}
|
12235
12331
|
break;
|
12236
12332
|
case 2:
|
12237
12333
|
u.store.emit(o.formID, "rowDoubleClick", {
|
12238
|
-
row:
|
12334
|
+
row: H
|
12239
12335
|
});
|
12240
12336
|
break;
|
12241
12337
|
}
|
12242
12338
|
}
|
12243
12339
|
}
|
12244
|
-
function
|
12340
|
+
function B(R = !1) {
|
12245
12341
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
12246
|
-
const
|
12247
|
-
|
12342
|
+
const H = watch(m, (W) => {
|
12343
|
+
W && (setTimeout(() => H()), X());
|
12248
12344
|
}, {
|
12249
12345
|
immediate: !0
|
12250
12346
|
});
|
12251
|
-
async function
|
12252
|
-
var
|
12253
|
-
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !
|
12347
|
+
async function X() {
|
12348
|
+
var W, N, G;
|
12349
|
+
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !y.value) {
|
12254
12350
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12255
12351
|
VarButton: o.varButtonSearch.value
|
12256
12352
|
});
|
12257
12353
|
return;
|
12258
12354
|
}
|
12259
|
-
R && (
|
12355
|
+
R && ($.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
12260
12356
|
try {
|
12261
|
-
const
|
12357
|
+
const Y = KgUtil.parseParams(T.value, u.profileFormID.value, a), J = ref({});
|
12262
12358
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
12263
|
-
params:
|
12359
|
+
params: Y,
|
12264
12360
|
response: J
|
12265
12361
|
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : J.value = await httpClient().request({
|
12266
12362
|
method: "GET",
|
12267
|
-
url:
|
12268
|
-
params:
|
12363
|
+
url: y.value,
|
12364
|
+
params: Y
|
12269
12365
|
}, {
|
12270
12366
|
successMessageMode: "none"
|
12271
12367
|
});
|
12272
|
-
let
|
12368
|
+
let te = ref([]), ae = ref(0);
|
12273
12369
|
switch (!0) {
|
12274
12370
|
case !J.value:
|
12275
|
-
|
12371
|
+
te.value = [], ae.value = 0;
|
12276
12372
|
break;
|
12277
12373
|
case isArrayLike(J.value):
|
12278
|
-
|
12374
|
+
te.value = J.value, ae.value = J.value.length;
|
12279
12375
|
break;
|
12280
12376
|
case ("total" in J.value && "records" in J.value):
|
12281
|
-
|
12377
|
+
te.value = (W = J.value.records) != null ? W : [], ae.value = (N = J.value.total) != null ? N : 0;
|
12282
12378
|
break;
|
12283
12379
|
}
|
12284
12380
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
12285
|
-
datas:
|
12381
|
+
datas: te,
|
12286
12382
|
total: ae
|
12287
|
-
}),
|
12383
|
+
}), D.value = te.value, $.total = ae.value, K(), v.value = [], await nextTick(), ((G = o.varGridConfig.value) == null ? void 0 : G.check_first_row_after_retrieve) === 1 && D.value.length > 0 && u.store.setSelectedRows(o.formID, [D.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
12288
12384
|
page: J.value,
|
12289
|
-
datas:
|
12385
|
+
datas: D
|
12290
12386
|
}), u.store.setIsRetrieved(o.formID, !0);
|
12291
|
-
} catch (
|
12292
|
-
throw
|
12387
|
+
} catch (Y) {
|
12388
|
+
throw Y;
|
12293
12389
|
} finally {
|
12294
12390
|
u.store.setIsRetrieving(o.formID, !1);
|
12295
12391
|
}
|
12296
12392
|
}
|
12297
12393
|
}
|
12298
|
-
function
|
12299
|
-
u.store.setSelectedRows(o.formID, R.map((
|
12300
|
-
var
|
12301
|
-
return (
|
12302
|
-
}).filter((
|
12394
|
+
function z(R) {
|
12395
|
+
u.store.setSelectedRows(o.formID, R.map((H) => {
|
12396
|
+
var X;
|
12397
|
+
return (X = D.value) == null ? void 0 : X.find((W) => W[u.id.value] === H);
|
12398
|
+
}).filter((H) => !!H));
|
12303
12399
|
}
|
12304
12400
|
function Q(R) {
|
12305
|
-
var
|
12401
|
+
var H, X;
|
12306
12402
|
switch (u.isMultiSelect.value) {
|
12307
12403
|
case !0:
|
12308
12404
|
{
|
12309
|
-
const
|
12310
|
-
|
12405
|
+
const W = R[u.id.value];
|
12406
|
+
x.value.includes(W) ? x.value = without$1(x.value, W) : x.value = [...(H = x.value) != null ? H : [], W];
|
12311
12407
|
}
|
12312
12408
|
break;
|
12313
12409
|
case !1:
|
12314
12410
|
{
|
12315
|
-
const
|
12316
|
-
(
|
12411
|
+
const W = R[u.id.value];
|
12412
|
+
(X = x.value) != null && X.includes(W) ? x.value = [] : x.value = [W];
|
12317
12413
|
}
|
12318
12414
|
break;
|
12319
12415
|
}
|
12320
|
-
u.store.setSelectedRows(o.formID,
|
12321
|
-
var
|
12322
|
-
return (
|
12323
|
-
}).filter((
|
12416
|
+
u.store.setSelectedRows(o.formID, x.value.map((W) => {
|
12417
|
+
var N;
|
12418
|
+
return (N = D.value) == null ? void 0 : N.find((G) => G[u.id.value] === W);
|
12419
|
+
}).filter((W) => !!W));
|
12324
12420
|
}
|
12325
|
-
function q(R,
|
12326
|
-
|
12421
|
+
function q(R, H) {
|
12422
|
+
H.width = R, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, R);
|
12327
12423
|
}
|
12328
|
-
async function
|
12329
|
-
var
|
12330
|
-
switch (
|
12424
|
+
async function Z(R, H, X, W) {
|
12425
|
+
var N;
|
12426
|
+
switch (W.action) {
|
12331
12427
|
case "sort":
|
12332
12428
|
{
|
12333
12429
|
await nextTick();
|
12334
|
-
let
|
12335
|
-
|
12430
|
+
let G = X;
|
12431
|
+
G.order ? (V.column = (N = G.field) != null ? N : void 0, V.order = G.order === "ascend" ? "asc" : G.order === "descend" ? "desc" : void 0) : (V.column = void 0, V.order = void 0), B(!0);
|
12336
12432
|
}
|
12337
12433
|
break;
|
12338
12434
|
}
|
12339
12435
|
}
|
12340
|
-
function
|
12341
|
-
var
|
12342
|
-
const
|
12343
|
-
switch ((
|
12436
|
+
function ee(R, H) {
|
12437
|
+
var W;
|
12438
|
+
const X = H[u.id.value];
|
12439
|
+
switch ((W = o.varGridConfig.value) == null ? void 0 : W.expand_accordion_flg) {
|
12344
12440
|
case 0:
|
12345
|
-
R ? v.value = uniq([...v.value,
|
12441
|
+
R ? v.value = uniq([...v.value, X]) : v.value = without$1(v.value, X);
|
12346
12442
|
break;
|
12347
12443
|
default:
|
12348
|
-
R ? v.value = [
|
12444
|
+
R ? v.value = [X] : v.value = [];
|
12349
12445
|
break;
|
12350
12446
|
}
|
12351
12447
|
}
|
12352
|
-
function se(R,
|
12353
|
-
|
12448
|
+
function se(R, H) {
|
12449
|
+
H !== $.pageSize ? ($.pageIndex = 1, $.pageSize = H) : $.pageIndex = R, B();
|
12354
12450
|
}
|
12355
|
-
function
|
12356
|
-
u.store.setSelectedRows(o.formID, [R].map((
|
12357
|
-
var
|
12358
|
-
return (
|
12359
|
-
}).filter((
|
12451
|
+
function oe(R) {
|
12452
|
+
u.store.setSelectedRows(o.formID, [R].map((H) => {
|
12453
|
+
var X;
|
12454
|
+
return (X = D.value) == null ? void 0 : X.find((W) => W[u.id.value] === H[u.id.value]);
|
12455
|
+
}).filter((H) => !!H)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
12360
12456
|
}
|
12361
|
-
function
|
12457
|
+
function fe({
|
12362
12458
|
title: R,
|
12363
|
-
column:
|
12459
|
+
column: H
|
12364
12460
|
}) {
|
12365
|
-
switch (
|
12461
|
+
switch (H.dataIndex) {
|
12366
12462
|
case "index":
|
12367
12463
|
return createVNode(KgTableSetting, {
|
12368
12464
|
kgDisabled: k.value
|
@@ -12373,7 +12469,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12373
12469
|
}, [R]);
|
12374
12470
|
}
|
12375
12471
|
}
|
12376
|
-
function
|
12472
|
+
function ce() {
|
12377
12473
|
var R;
|
12378
12474
|
return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
|
12379
12475
|
fixed: "bottom"
|
@@ -12381,20 +12477,20 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12381
12477
|
default: () => [createVNode(TableSummary.Row, null, {
|
12382
12478
|
default: () => [P.value && createVNode(TableSummary.Cell, {
|
12383
12479
|
index: 0
|
12384
|
-
}, null),
|
12480
|
+
}, null), M.value && createVNode(TableSummary.Cell, {
|
12385
12481
|
index: P.value ? 1 : 0
|
12386
|
-
}, null), C.value.map((
|
12387
|
-
const
|
12388
|
-
let
|
12389
|
-
return P.value &&
|
12390
|
-
index:
|
12482
|
+
}, null), C.value.map((H, X) => {
|
12483
|
+
const W = o.store.getVarGridDetail(o.formID, H.dataIndex);
|
12484
|
+
let N = X;
|
12485
|
+
return P.value && M.value ? N += 2 : (P.value || M.value) && (N += 1), createVNode(TableSummary.Cell, {
|
12486
|
+
index: N
|
12391
12487
|
}, {
|
12392
12488
|
default: () => {
|
12393
|
-
var
|
12394
|
-
return [(
|
12395
|
-
column:
|
12396
|
-
index:
|
12397
|
-
varGridDetail:
|
12489
|
+
var G, Y;
|
12490
|
+
return [(Y = (G = n == null ? void 0 : n.KgTable) == null ? void 0 : G["summary.bodyCell"]) == null ? void 0 : Y.call(G, {
|
12491
|
+
column: H,
|
12492
|
+
index: N,
|
12493
|
+
varGridDetail: W
|
12398
12494
|
})];
|
12399
12495
|
}
|
12400
12496
|
});
|
@@ -12402,53 +12498,53 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12402
12498
|
})]
|
12403
12499
|
}) : null;
|
12404
12500
|
}
|
12405
|
-
function
|
12501
|
+
function ne({
|
12406
12502
|
column: R,
|
12407
|
-
index:
|
12408
|
-
record:
|
12409
|
-
text:
|
12410
|
-
value:
|
12503
|
+
index: H,
|
12504
|
+
record: X,
|
12505
|
+
text: W,
|
12506
|
+
value: N
|
12411
12507
|
}) {
|
12412
12508
|
var J;
|
12413
|
-
let
|
12414
|
-
R.customRender ?
|
12415
|
-
index:
|
12416
|
-
record:
|
12509
|
+
let G = "";
|
12510
|
+
R.customRender ? G = R.customRender({
|
12511
|
+
index: H,
|
12512
|
+
record: X,
|
12417
12513
|
column: R,
|
12418
|
-
text:
|
12419
|
-
value:
|
12420
|
-
renderIndex:
|
12421
|
-
}) :
|
12422
|
-
const
|
12423
|
-
kgRow:
|
12424
|
-
kgValue:
|
12514
|
+
text: W,
|
12515
|
+
value: N,
|
12516
|
+
renderIndex: H
|
12517
|
+
}) : G = N;
|
12518
|
+
const Y = createVNode(KgTableCell, {
|
12519
|
+
kgRow: X,
|
12520
|
+
kgValue: G,
|
12425
12521
|
kgVarName: R.dataIndex,
|
12426
|
-
onKgUpdateLinkClick: () =>
|
12522
|
+
onKgUpdateLinkClick: () => oe(X)
|
12427
12523
|
}, null);
|
12428
12524
|
if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
|
12429
|
-
const
|
12525
|
+
const te = R.dataIndex ? o.store.getVarGridDetail(o.formID, R.dataIndex) : null;
|
12430
12526
|
return n.KgTable.bodyCell({
|
12431
12527
|
column: R,
|
12432
|
-
index:
|
12433
|
-
record:
|
12434
|
-
text:
|
12435
|
-
value:
|
12436
|
-
row:
|
12437
|
-
varGridDetail:
|
12438
|
-
defaultRender:
|
12528
|
+
index: H,
|
12529
|
+
record: X,
|
12530
|
+
text: W,
|
12531
|
+
value: N,
|
12532
|
+
row: X,
|
12533
|
+
varGridDetail: te,
|
12534
|
+
defaultRender: Y
|
12439
12535
|
});
|
12440
12536
|
} else
|
12441
|
-
return
|
12537
|
+
return Y;
|
12442
12538
|
}
|
12443
|
-
function
|
12539
|
+
function ue() {
|
12444
12540
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
|
12445
12541
|
}
|
12446
12542
|
return () => {
|
12447
|
-
var R;
|
12543
|
+
var R, H, X;
|
12448
12544
|
return createVNode("div", {
|
12449
12545
|
class: w.value,
|
12450
12546
|
"kg-frm_id": o.formID,
|
12451
|
-
ref:
|
12547
|
+
ref: b
|
12452
12548
|
}, [createVNode(Table, {
|
12453
12549
|
class: "kg-flex-table",
|
12454
12550
|
size: "small",
|
@@ -12459,42 +12555,43 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12459
12555
|
pagination: !1,
|
12460
12556
|
showSorterTooltip: !1,
|
12461
12557
|
columns: C.value,
|
12462
|
-
dataSource:
|
12558
|
+
dataSource: D.value,
|
12463
12559
|
loading: _.value,
|
12464
12560
|
rowKey: u.id.value,
|
12561
|
+
rowClassName: (H = (R = s == null ? void 0 : s.value) == null ? void 0 : R.KgTable) == null ? void 0 : H.kgRowClassName,
|
12465
12562
|
expandColumnWidth: 28,
|
12466
12563
|
expandedRowKeys: v.value,
|
12467
|
-
rowSelection:
|
12468
|
-
customRow: (
|
12469
|
-
onClick: (
|
12564
|
+
rowSelection: I.value,
|
12565
|
+
customRow: (W) => ({
|
12566
|
+
onClick: (N) => K(N, W)
|
12470
12567
|
}),
|
12471
12568
|
onResizeColumn: q,
|
12472
|
-
onChange:
|
12473
|
-
onExpand:
|
12569
|
+
onChange: Z,
|
12570
|
+
onExpand: ee
|
12474
12571
|
}, {
|
12475
|
-
headerCell:
|
12476
|
-
bodyCell:
|
12477
|
-
emptyText:
|
12478
|
-
expandedRowRender: (
|
12479
|
-
summary:
|
12572
|
+
headerCell: fe,
|
12573
|
+
bodyCell: ne,
|
12574
|
+
emptyText: ue,
|
12575
|
+
expandedRowRender: (X = n == null ? void 0 : n.KgTable) == null ? void 0 : X.expandedRowRender,
|
12576
|
+
summary: ce
|
12480
12577
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
12481
|
-
class:
|
12578
|
+
class: L.value
|
12482
12579
|
}, [createVNode("div", {
|
12483
12580
|
class: "left"
|
12484
12581
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
12485
|
-
kgShowClearCheck:
|
12486
|
-
kgShowClearTable:
|
12487
|
-
kgShowLocate:
|
12488
|
-
kgTotal:
|
12489
|
-
kgDisabled:
|
12582
|
+
kgShowClearCheck: x.value.length > 0,
|
12583
|
+
kgShowClearTable: $.total > 0,
|
12584
|
+
kgShowLocate: x.value.length === 1,
|
12585
|
+
kgTotal: x.value.length,
|
12586
|
+
kgDisabled: A.value
|
12490
12587
|
}, null)]), createVNode("div", {
|
12491
12588
|
class: "right"
|
12492
12589
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
12493
12590
|
size: "default",
|
12494
|
-
current:
|
12495
|
-
pageSize:
|
12496
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
12497
|
-
total:
|
12591
|
+
current: $.pageIndex,
|
12592
|
+
pageSize: $.pageSize,
|
12593
|
+
pageSizeOptions: u.pageSizeOptions.value.map((W) => String(W)),
|
12594
|
+
total: $.total,
|
12498
12595
|
showSizeChanger: !0,
|
12499
12596
|
showQuickJumper: !1,
|
12500
12597
|
hideOnSinglePage: !1,
|
@@ -12502,12 +12599,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12502
12599
|
locale: {
|
12503
12600
|
page: ""
|
12504
12601
|
},
|
12505
|
-
showTotal: (
|
12506
|
-
from:
|
12507
|
-
to:
|
12508
|
-
total:
|
12602
|
+
showTotal: (W, N) => l.t("kg.KgTable.totalText", {
|
12603
|
+
from: N[0],
|
12604
|
+
to: N[1],
|
12605
|
+
total: W
|
12509
12606
|
}),
|
12510
|
-
onChange: (
|
12607
|
+
onChange: (W, N) => se(W, N)
|
12511
12608
|
}, null)])])]);
|
12512
12609
|
};
|
12513
12610
|
}
|
@@ -12533,8 +12630,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12533
12630
|
attrs: t
|
12534
12631
|
}) {
|
12535
12632
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
|
12536
|
-
var u, d, m, v, C, g, _,
|
12537
|
-
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 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = s.value) == null ? void 0 : _.permission_type) === 2 && !r.p((
|
12633
|
+
var u, d, m, v, C, g, _, b;
|
12634
|
+
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 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = s.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = s.value) == null ? void 0 : _.permission_type) === 2 && !r.p((b = s.value) == null ? void 0 : b.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12538
12635
|
});
|
12539
12636
|
async function o() {
|
12540
12637
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -12727,8 +12824,8 @@ const KgButtonCreate = defineComponent({
|
|
12727
12824
|
attrs: a
|
12728
12825
|
}) {
|
12729
12826
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
12730
|
-
var T, k,
|
12731
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((
|
12827
|
+
var T, k, A, E, P, M, I, w;
|
12828
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (P = o.selectedRows.value) == null ? void 0 : P.length) != null ? M : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12732
12829
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
12733
12830
|
async function m() {
|
12734
12831
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -12749,8 +12846,8 @@ const KgButtonCreate = defineComponent({
|
|
12749
12846
|
function _() {
|
12750
12847
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12751
12848
|
}
|
12752
|
-
function
|
12753
|
-
var T, k,
|
12849
|
+
function b() {
|
12850
|
+
var T, k, A, E;
|
12754
12851
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
|
12755
12852
|
type: "primary",
|
12756
12853
|
disabled: u.value,
|
@@ -12758,13 +12855,13 @@ const KgButtonCreate = defineComponent({
|
|
12758
12855
|
class: a.class,
|
12759
12856
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
12760
12857
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
12761
|
-
"kg-var_nam": (
|
12858
|
+
"kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
|
12762
12859
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
12763
12860
|
}, {
|
12764
12861
|
default: () => [g(), _()]
|
12765
12862
|
});
|
12766
12863
|
}
|
12767
|
-
function
|
12864
|
+
function y() {
|
12768
12865
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12769
12866
|
type: "primary",
|
12770
12867
|
onClick: v,
|
@@ -12780,7 +12877,7 @@ const KgButtonCreate = defineComponent({
|
|
12780
12877
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
12781
12878
|
})]);
|
12782
12879
|
}
|
12783
|
-
return () => createVNode(Fragment, null, [
|
12880
|
+
return () => createVNode(Fragment, null, [b(), y()]);
|
12784
12881
|
}
|
12785
12882
|
}), KgButtonDelete = defineComponent({
|
12786
12883
|
name: "KgButtonDelete",
|
@@ -12831,7 +12928,7 @@ const KgButtonCreate = defineComponent({
|
|
12831
12928
|
var C, g;
|
12832
12929
|
return (g = (C = s.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
12833
12930
|
}), i = computed(() => {
|
12834
|
-
var g, _,
|
12931
|
+
var g, _, b, y, T, k;
|
12835
12932
|
let C = {
|
12836
12933
|
pageNo: 1,
|
12837
12934
|
pageSize: 9999999,
|
@@ -12839,14 +12936,14 @@ const KgButtonCreate = defineComponent({
|
|
12839
12936
|
};
|
12840
12937
|
return s.value && (C = {
|
12841
12938
|
...C,
|
12842
|
-
...KgVarUtil.parseCommandParameter((
|
12843
|
-
}), (
|
12939
|
+
...KgVarUtil.parseCommandParameter((b = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? b : "")
|
12940
|
+
}), (y = r.varGridConfig.value) != null && y.cmd_prm && (C = {
|
12844
12941
|
...C,
|
12845
12942
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
12846
12943
|
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && C.column && (C.column = snakeCase$1(C.column)), C;
|
12847
12944
|
}), c = computed(() => {
|
12848
|
-
var C, g, _,
|
12849
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((
|
12945
|
+
var C, g, _, b, y, T, k, A;
|
12946
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12850
12947
|
}), u = ref(!1);
|
12851
12948
|
async function d() {
|
12852
12949
|
var C, g;
|
@@ -12867,8 +12964,8 @@ const KgButtonCreate = defineComponent({
|
|
12867
12964
|
}, {
|
12868
12965
|
joinParamsToUrl: !0,
|
12869
12966
|
isTransformResponse: !1
|
12870
|
-
}),
|
12871
|
-
KgUtil.downloadFile(_, `${
|
12967
|
+
}), b = (C = s.value) == null ? void 0 : C.export_excel_filename;
|
12968
|
+
KgUtil.downloadFile(_, `${b ? r.t(b).value : t.t("kg.export")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
|
12872
12969
|
} catch (_) {
|
12873
12970
|
throw _;
|
12874
12971
|
} finally {
|
@@ -12887,7 +12984,7 @@ const KgButtonCreate = defineComponent({
|
|
12887
12984
|
return e.kgText ? e.kgText : t.t("kg.export");
|
12888
12985
|
}
|
12889
12986
|
return () => {
|
12890
|
-
var C, g, _,
|
12987
|
+
var C, g, _, b;
|
12891
12988
|
return createVNode(Button, {
|
12892
12989
|
type: "primary",
|
12893
12990
|
disabled: c.value,
|
@@ -12897,7 +12994,7 @@ const KgButtonCreate = defineComponent({
|
|
12897
12994
|
"kg-id": (C = s.value) == null ? void 0 : C.id,
|
12898
12995
|
"kg-frm_id": (g = s.value) == null ? void 0 : g.frm_id,
|
12899
12996
|
"kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
|
12900
|
-
"kg-cmd": (
|
12997
|
+
"kg-cmd": (b = s.value) == null ? void 0 : b.cmd
|
12901
12998
|
}, {
|
12902
12999
|
default: () => [m(), v()]
|
12903
13000
|
});
|
@@ -12912,23 +13009,23 @@ const KgButtonCreate = defineComponent({
|
|
12912
13009
|
attrs: r
|
12913
13010
|
}) {
|
12914
13011
|
const a = useKg(), n = useKgVar(), s = useKgSearch(), l = useKgTable(), o = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), i = computed(() => {
|
12915
|
-
var _,
|
12916
|
-
return o.value ? (
|
13012
|
+
var _, b;
|
13013
|
+
return o.value ? (b = (_ = o.value) == null ? void 0 : _.cmd) != null ? b : "" : null;
|
12917
13014
|
}), c = computed(() => {
|
12918
|
-
var _,
|
12919
|
-
return (
|
13015
|
+
var _, b;
|
13016
|
+
return (b = (_ = o.value) == null ? void 0 : _.cmd_method) != null ? b : "POST";
|
12920
13017
|
}), u = computed(() => {
|
12921
|
-
var
|
13018
|
+
var b, y, T;
|
12922
13019
|
let _ = {
|
12923
|
-
...(
|
13020
|
+
...(b = s.model.value) != null ? b : {}
|
12924
13021
|
};
|
12925
13022
|
return o.value && (_ = {
|
12926
13023
|
..._,
|
12927
|
-
...KgVarUtil.parseCommandParameter((T = (
|
13024
|
+
...KgVarUtil.parseCommandParameter((T = (y = o.value) == null ? void 0 : y.cmd_prm) != null ? T : "")
|
12928
13025
|
}), _;
|
12929
13026
|
}), d = computed(() => {
|
12930
|
-
var _,
|
12931
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((
|
13027
|
+
var _, b, y, T, k, A, E, P;
|
13028
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((y = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((E = o.value) == null ? void 0 : E.permission_type) === 2 && !a.p((P = o.value) == null ? void 0 : P.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12932
13029
|
}), m = ref(!1);
|
12933
13030
|
async function v(_) {
|
12934
13031
|
if (!i.value)
|
@@ -12937,22 +13034,22 @@ const KgButtonCreate = defineComponent({
|
|
12937
13034
|
}), !1;
|
12938
13035
|
m.value = !0;
|
12939
13036
|
try {
|
12940
|
-
const
|
12941
|
-
|
12942
|
-
const
|
13037
|
+
const b = new FormData();
|
13038
|
+
b.append("file", _);
|
13039
|
+
const y = await httpClient().axiosInstance.request({
|
12943
13040
|
method: c.value,
|
12944
13041
|
baseURL: window._CONFIG.domianURL,
|
12945
13042
|
url: i.value,
|
12946
13043
|
params: KgUtil.parseParams(u.value),
|
12947
|
-
data:
|
13044
|
+
data: b,
|
12948
13045
|
headers: {
|
12949
13046
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
12950
13047
|
ignoreCancelToken: !0
|
12951
13048
|
}
|
12952
13049
|
});
|
12953
13050
|
message.success(a.t("kg.importSuccess")), s.search(!0);
|
12954
|
-
} catch (
|
12955
|
-
throw
|
13051
|
+
} catch (b) {
|
13052
|
+
throw b;
|
12956
13053
|
} finally {
|
12957
13054
|
m.value = !1;
|
12958
13055
|
}
|
@@ -12975,7 +13072,7 @@ const KgButtonCreate = defineComponent({
|
|
12975
13072
|
disabled: m.value
|
12976
13073
|
}, {
|
12977
13074
|
default: () => {
|
12978
|
-
var _,
|
13075
|
+
var _, b, y, T;
|
12979
13076
|
return [createVNode(Button, {
|
12980
13077
|
class: r.class,
|
12981
13078
|
type: "primary",
|
@@ -12983,8 +13080,8 @@ const KgButtonCreate = defineComponent({
|
|
12983
13080
|
ghost: !e.kgPrimary && !d.value,
|
12984
13081
|
loading: m.value,
|
12985
13082
|
"kg-id": (_ = o.value) == null ? void 0 : _.id,
|
12986
|
-
"kg-frm_id": (
|
12987
|
-
"kg-var_nam": (
|
13083
|
+
"kg-frm_id": (b = o.value) == null ? void 0 : b.frm_id,
|
13084
|
+
"kg-var_nam": (y = o.value) == null ? void 0 : y.var_nam,
|
12988
13085
|
"kg-cmd": (T = o.value) == null ? void 0 : T.cmd
|
12989
13086
|
}, {
|
12990
13087
|
default: () => [C(), g()]
|
@@ -13003,20 +13100,20 @@ const KgButtonCreate = defineComponent({
|
|
13003
13100
|
var C, g;
|
13004
13101
|
return (g = (C = s.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
13005
13102
|
}), i = computed(() => {
|
13006
|
-
var g, _,
|
13103
|
+
var g, _, b, y, T;
|
13007
13104
|
let C = {
|
13008
13105
|
...(g = a.model.value) != null ? g : {}
|
13009
13106
|
};
|
13010
13107
|
return s.value && (C = {
|
13011
13108
|
...C,
|
13012
|
-
...KgVarUtil.parseCommandParameter((
|
13013
|
-
}), (
|
13109
|
+
...KgVarUtil.parseCommandParameter((b = (_ = s.value) == null ? void 0 : _.cmd_prm) != null ? b : "")
|
13110
|
+
}), (y = r.varGridConfig.value) != null && y.cmd_prm && (C = {
|
13014
13111
|
...C,
|
13015
13112
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
13016
13113
|
}), C;
|
13017
13114
|
}), c = computed(() => {
|
13018
|
-
var C, g, _,
|
13019
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((
|
13115
|
+
var C, g, _, b, y, T, k, A;
|
13116
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((T = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13020
13117
|
}), u = ref(!1);
|
13021
13118
|
async function d() {
|
13022
13119
|
var C, g;
|
@@ -13036,8 +13133,8 @@ const KgButtonCreate = defineComponent({
|
|
13036
13133
|
}, {
|
13037
13134
|
joinParamsToUrl: !0,
|
13038
13135
|
isTransformResponse: !1
|
13039
|
-
}),
|
13040
|
-
KgUtil.downloadFile(_, `${
|
13136
|
+
}), b = (C = s.value) == null ? void 0 : C.export_excel_filename;
|
13137
|
+
KgUtil.downloadFile(_, `${b ? r.t(b).value : t.t("kg.importTemplate")}.${(g = s.value) == null ? void 0 : g.export_excel_suffix}`);
|
13041
13138
|
} catch (_) {
|
13042
13139
|
throw _;
|
13043
13140
|
} finally {
|
@@ -13055,7 +13152,7 @@ const KgButtonCreate = defineComponent({
|
|
13055
13152
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
13056
13153
|
}
|
13057
13154
|
return () => {
|
13058
|
-
var C, g, _,
|
13155
|
+
var C, g, _, b;
|
13059
13156
|
return createVNode(Button, {
|
13060
13157
|
type: "primary",
|
13061
13158
|
disabled: c.value,
|
@@ -13065,7 +13162,7 @@ const KgButtonCreate = defineComponent({
|
|
13065
13162
|
"kg-id": (C = s.value) == null ? void 0 : C.id,
|
13066
13163
|
"kg-frm_id": (g = s.value) == null ? void 0 : g.frm_id,
|
13067
13164
|
"kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
|
13068
|
-
"kg-cmd": (
|
13165
|
+
"kg-cmd": (b = s.value) == null ? void 0 : b.cmd
|
13069
13166
|
}, {
|
13070
13167
|
default: () => [m(), v()]
|
13071
13168
|
});
|
@@ -13076,8 +13173,8 @@ const KgButtonCreate = defineComponent({
|
|
13076
13173
|
props: getProps$f(),
|
13077
13174
|
setup(e) {
|
13078
13175
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), l = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
13079
|
-
var d, m, v, C, g, _,
|
13080
|
-
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 = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((C = l.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((_ = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) > 1 || ((
|
13176
|
+
var d, m, v, C, g, _, b, y;
|
13177
|
+
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 = (m = s.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((C = l.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((_ = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 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;
|
13081
13178
|
});
|
13082
13179
|
async function i() {
|
13083
13180
|
var C, g, _;
|
@@ -13092,44 +13189,44 @@ const KgButtonCreate = defineComponent({
|
|
13092
13189
|
}
|
13093
13190
|
let m = null;
|
13094
13191
|
const v = async () => {
|
13095
|
-
var
|
13192
|
+
var y, T, k, A, E, P;
|
13096
13193
|
m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13097
|
-
const
|
13194
|
+
const b = s.selectedRows.value;
|
13098
13195
|
try {
|
13099
|
-
const
|
13100
|
-
method: (T = (
|
13196
|
+
const M = await httpClient().request({
|
13197
|
+
method: (T = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? T : "POST",
|
13101
13198
|
url: d,
|
13102
|
-
params: KgVarUtil.parseCommandParameter((
|
13103
|
-
data:
|
13199
|
+
params: KgVarUtil.parseCommandParameter((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
|
13200
|
+
data: b != null ? b : []
|
13104
13201
|
});
|
13105
13202
|
if (((E = e.kgButton) == null ? void 0 : E.reload_all_after_done_flg) === 1) {
|
13106
13203
|
if (((P = e.kgButton) == null ? void 0 : P.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
13107
13204
|
datas: w
|
13108
13205
|
}) => {
|
13109
|
-
const
|
13110
|
-
return
|
13206
|
+
const L = w.value, D = intersectionWith$1(L, b != null ? b : [], (x, $) => (x == null ? void 0 : x[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
|
13207
|
+
return D.length > 0 && s.store.setSelectedRows(r.formID, D), !1;
|
13111
13208
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
13112
13209
|
button: e.kgButton,
|
13113
|
-
data:
|
13210
|
+
data: M
|
13114
13211
|
}))
|
13115
13212
|
return;
|
13116
13213
|
a.search(!0);
|
13117
13214
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
13118
13215
|
button: e.kgButton,
|
13119
|
-
data:
|
13216
|
+
data: M
|
13120
13217
|
}))
|
13121
13218
|
return;
|
13122
|
-
} catch (
|
13123
|
-
console.error(
|
13219
|
+
} catch (M) {
|
13220
|
+
console.error(M);
|
13124
13221
|
} finally {
|
13125
13222
|
r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
|
13126
13223
|
}
|
13127
13224
|
};
|
13128
13225
|
if (((g = e.kgButton) == null ? void 0 : g.show_modal_flg) === 1) {
|
13129
|
-
const
|
13130
|
-
typeof
|
13226
|
+
const b = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
|
13227
|
+
typeof b.content == "string" && (b.content = r.t(b.content).value), m = KgUtil.confirm({
|
13131
13228
|
onOk: () => v(),
|
13132
|
-
...
|
13229
|
+
...b
|
13133
13230
|
});
|
13134
13231
|
} else
|
13135
13232
|
v();
|
@@ -13220,8 +13317,8 @@ const KgButtonCreate = defineComponent({
|
|
13220
13317
|
}
|
13221
13318
|
});
|
13222
13319
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13223
|
-
var T, k,
|
13224
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((
|
13320
|
+
var T, k, A, E, P, M, I, w;
|
13321
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((A = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (P = l.selectedRows.value) == null ? void 0 : P.length) != null ? M : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13225
13322
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
13226
13323
|
async function m() {
|
13227
13324
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -13245,8 +13342,8 @@ const KgButtonCreate = defineComponent({
|
|
13245
13342
|
function _() {
|
13246
13343
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13247
13344
|
}
|
13248
|
-
function
|
13249
|
-
var T, k,
|
13345
|
+
function b() {
|
13346
|
+
var T, k, A, E;
|
13250
13347
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
|
13251
13348
|
type: "primary",
|
13252
13349
|
disabled: u.value,
|
@@ -13255,13 +13352,13 @@ const KgButtonCreate = defineComponent({
|
|
13255
13352
|
class: a.class,
|
13256
13353
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
13257
13354
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
13258
|
-
"kg-var_nam": (
|
13355
|
+
"kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
|
13259
13356
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
13260
13357
|
}, {
|
13261
13358
|
default: () => [g(), _()]
|
13262
13359
|
});
|
13263
13360
|
}
|
13264
|
-
function
|
13361
|
+
function y() {
|
13265
13362
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
13266
13363
|
type: "primary",
|
13267
13364
|
onClick: v,
|
@@ -13277,7 +13374,7 @@ const KgButtonCreate = defineComponent({
|
|
13277
13374
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
13278
13375
|
})]);
|
13279
13376
|
}
|
13280
|
-
return () => createVNode(Fragment, null, [
|
13377
|
+
return () => createVNode(Fragment, null, [b(), y()]);
|
13281
13378
|
}
|
13282
13379
|
}), KgButton_Item = "";
|
13283
13380
|
function _isSlot$4(e) {
|
@@ -13351,8 +13448,8 @@ const getProps$e = () => ({
|
|
13351
13448
|
}
|
13352
13449
|
function i(g) {
|
13353
13450
|
return computed(() => {
|
13354
|
-
var
|
13355
|
-
const _ = ((
|
13451
|
+
var b, y;
|
13452
|
+
const _ = ((y = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgButton) == null ? void 0 : y.kgDisabled) || e.kgDisabled;
|
13356
13453
|
if (_) {
|
13357
13454
|
const T = _(g);
|
13358
13455
|
if (!isNil(T))
|
@@ -13415,10 +13512,10 @@ const getProps$e = () => ({
|
|
13415
13512
|
overlay: () => createVNode(Menu, null, {
|
13416
13513
|
default: () => {
|
13417
13514
|
var g, _;
|
13418
|
-
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((
|
13419
|
-
let
|
13420
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
13421
|
-
default: () => [
|
13515
|
+
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((b) => b.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((b) => !(b.permission_type !== 2 && !a.p(b.permission_code))).map((b) => {
|
13516
|
+
let y;
|
13517
|
+
return createVNode(Menu.Item, null, _isSlot$3(y = m(b)) ? y : {
|
13518
|
+
default: () => [y]
|
13422
13519
|
});
|
13423
13520
|
})];
|
13424
13521
|
}
|
@@ -13844,39 +13941,39 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13844
13941
|
l.onOpen(async ({
|
13845
13942
|
isCreating: g,
|
13846
13943
|
isUpdating: _,
|
13847
|
-
isCopying:
|
13848
|
-
row:
|
13944
|
+
isCopying: b,
|
13945
|
+
row: y,
|
13849
13946
|
model: T
|
13850
13947
|
}) => {
|
13851
|
-
var
|
13948
|
+
var A, E, P;
|
13852
13949
|
const k = o.store.getSystemVarProfileDetails(o.formID);
|
13853
13950
|
switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
13854
13951
|
case g:
|
13855
13952
|
c.value = [];
|
13856
13953
|
break;
|
13857
13954
|
case _:
|
13858
|
-
case
|
13859
|
-
if (
|
13955
|
+
case b:
|
13956
|
+
if (y != null && y.id)
|
13860
13957
|
try {
|
13861
13958
|
l.store.setIsLoading(a.formID, !0);
|
13862
|
-
const
|
13959
|
+
const M = await QueryByID({
|
13863
13960
|
params: {
|
13864
|
-
id:
|
13961
|
+
id: y.id
|
13865
13962
|
}
|
13866
13963
|
});
|
13867
13964
|
i.value = i.value.map((w) => {
|
13868
|
-
var
|
13869
|
-
const
|
13870
|
-
return
|
13965
|
+
var D;
|
13966
|
+
const L = (D = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : D.find((x) => x.var_nam === w.var_nam);
|
13967
|
+
return L ? {
|
13871
13968
|
...w,
|
13872
|
-
...
|
13969
|
+
...L,
|
13873
13970
|
id: w.id
|
13874
13971
|
} : w;
|
13875
13972
|
});
|
13876
|
-
const
|
13877
|
-
c.value = i.value.filter((w) =>
|
13878
|
-
} catch (
|
13879
|
-
throw
|
13973
|
+
const I = (E = (A = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : A.map((w) => w.var_nam)) != null ? E : [];
|
13974
|
+
c.value = i.value.filter((w) => I.includes(w.var_nam)).map((w) => w.id);
|
13975
|
+
} catch (M) {
|
13976
|
+
throw M;
|
13880
13977
|
} finally {
|
13881
13978
|
l.store.setIsLoading(a.formID, !1);
|
13882
13979
|
}
|
@@ -13885,7 +13982,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13885
13982
|
break;
|
13886
13983
|
}
|
13887
13984
|
switch (!0) {
|
13888
|
-
case
|
13985
|
+
case b:
|
13889
13986
|
T.value.prf_var_nam = ((P = T.value.prf_var_nam) != null ? P : "") + "_COPY";
|
13890
13987
|
break;
|
13891
13988
|
}
|
@@ -13893,9 +13990,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13893
13990
|
}), l.onBeforeOk(async ({
|
13894
13991
|
model: g
|
13895
13992
|
}) => {
|
13896
|
-
var
|
13993
|
+
var b, y;
|
13897
13994
|
const _ = g.value;
|
13898
|
-
return _.frm_id = o.formID, _.varProfileDetails = (
|
13995
|
+
return _.frm_id = o.formID, _.varProfileDetails = (y = (b = i.value) == null ? void 0 : b.filter((T) => c.value.includes(T.id))) != null ? y : [], !1;
|
13899
13996
|
}), l.onOk(async () => (o.store.retrieve(o.formID), !1)), s.onUpdateBeforeClick(({
|
13900
13997
|
row: g
|
13901
13998
|
}) => (g == null ? void 0 : g.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
@@ -13922,48 +14019,48 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13922
14019
|
varProfileDetails: ({
|
13923
14020
|
varName: g,
|
13924
14021
|
props: _,
|
13925
|
-
model:
|
13926
|
-
varVariableConfig:
|
14022
|
+
model: b,
|
14023
|
+
varVariableConfig: y,
|
13927
14024
|
varProfileDetail: T,
|
13928
14025
|
varSubmitField: k
|
13929
14026
|
}) => createVNode(Transfer, {
|
13930
14027
|
dataSource: i.value,
|
13931
14028
|
targetKeys: c.value,
|
13932
|
-
"onUpdate:targetKeys": (
|
13933
|
-
rowKey: (
|
14029
|
+
"onUpdate:targetKeys": (A) => c.value = A,
|
14030
|
+
rowKey: (A) => A.id,
|
13934
14031
|
showSearch: !0,
|
13935
14032
|
showSelectAll: !1,
|
13936
14033
|
searchPlaceholder: " ",
|
13937
|
-
filterOption: (
|
14034
|
+
filterOption: (A, E) => {
|
13938
14035
|
var P;
|
13939
|
-
return !!((P = E.var_nam) != null && P.includes(
|
14036
|
+
return !!((P = E.var_nam) != null && P.includes(A));
|
13940
14037
|
}
|
13941
14038
|
}, {
|
13942
14039
|
children: ({
|
13943
|
-
direction:
|
14040
|
+
direction: A,
|
13944
14041
|
filteredItems: E,
|
13945
14042
|
selectedKeys: P,
|
13946
|
-
disabled:
|
13947
|
-
onItemSelectAll:
|
14043
|
+
disabled: M,
|
14044
|
+
onItemSelectAll: I,
|
13948
14045
|
onItemSelect: w
|
13949
14046
|
}) => createVNode(Table, {
|
13950
14047
|
pagination: !1,
|
13951
14048
|
class: "kg-flex-table",
|
13952
14049
|
size: "small",
|
13953
14050
|
scroll: {
|
13954
|
-
x:
|
14051
|
+
x: A === "left" ? "370px" : "1244px",
|
13955
14052
|
y: "auto"
|
13956
14053
|
},
|
13957
|
-
columns:
|
14054
|
+
columns: A === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
13958
14055
|
rowKey: "id",
|
13959
14056
|
dataSource: E,
|
13960
|
-
customRow: (
|
13961
|
-
onClick: (
|
14057
|
+
customRow: (L) => ({
|
14058
|
+
onClick: (D) => C(D, L, A, P)
|
13962
14059
|
}),
|
13963
14060
|
rowSelection: m({
|
13964
|
-
disabled:
|
14061
|
+
disabled: M,
|
13965
14062
|
selectedKeys: P,
|
13966
|
-
onItemSelectAll:
|
14063
|
+
onItemSelectAll: I,
|
13967
14064
|
onItemSelect: w
|
13968
14065
|
})
|
13969
14066
|
}, null)
|
@@ -13977,22 +14074,22 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13977
14074
|
const m = ({
|
13978
14075
|
disabled: g,
|
13979
14076
|
selectedKeys: _,
|
13980
|
-
onItemSelectAll:
|
13981
|
-
onItemSelect:
|
14077
|
+
onItemSelectAll: b,
|
14078
|
+
onItemSelect: y
|
13982
14079
|
}) => ({
|
13983
14080
|
getCheckboxProps: (T) => ({
|
13984
14081
|
disabled: g || T.disabled
|
13985
14082
|
}),
|
13986
14083
|
onSelectAll(T, k) {
|
13987
|
-
const
|
14084
|
+
const A = k.filter((E) => !E.disabled).map(({
|
13988
14085
|
key: E
|
13989
14086
|
}) => E);
|
13990
|
-
|
14087
|
+
b(A, T);
|
13991
14088
|
},
|
13992
14089
|
onSelect({
|
13993
14090
|
key: T
|
13994
14091
|
}, k) {
|
13995
|
-
|
14092
|
+
y(T, k);
|
13996
14093
|
},
|
13997
14094
|
selectedRowKeys: _,
|
13998
14095
|
columnWidth: 32
|
@@ -14006,14 +14103,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
14006
14103
|
immediate: !0
|
14007
14104
|
});
|
14008
14105
|
}
|
14009
|
-
function C(g, _,
|
14106
|
+
function C(g, _, b, y) {
|
14010
14107
|
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]))
|
14011
|
-
switch (
|
14108
|
+
switch (y.length = 0, g.detail) {
|
14012
14109
|
case 1:
|
14013
|
-
|
14110
|
+
y[0] = _.id;
|
14014
14111
|
break;
|
14015
14112
|
case 2:
|
14016
|
-
switch (
|
14113
|
+
switch (b) {
|
14017
14114
|
case "left":
|
14018
14115
|
c.value.push(_.id);
|
14019
14116
|
break;
|
@@ -14201,23 +14298,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14201
14298
|
});
|
14202
14299
|
_useLayoutHeaderResizeObserver();
|
14203
14300
|
const g = _useFormModel(v, C), _ = computed(() => {
|
14204
|
-
var
|
14205
|
-
if (!isNil((
|
14206
|
-
return (Q = (
|
14301
|
+
var K, B, z, Q;
|
14302
|
+
if (!isNil((B = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : B.kgDisabled))
|
14303
|
+
return (Q = (z = r == null ? void 0 : r.value) == null ? void 0 : z.KgSearch) == null ? void 0 : Q.kgDisabled;
|
14207
14304
|
if (!isNil(e.kgDisabled))
|
14208
14305
|
return e.kgDisabled;
|
14209
|
-
}),
|
14210
|
-
var
|
14211
|
-
return !!(_.value || l.isRetrieving.value || ((
|
14212
|
-
}),
|
14306
|
+
}), b = computed(() => {
|
14307
|
+
var K, B;
|
14308
|
+
return !!(_.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
14309
|
+
}), y = computed(() => !!(_.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), T = computed(() => !!(_.value || l.isRetrieving.value)), k = ref({
|
14213
14310
|
visible: !1
|
14214
|
-
}),
|
14215
|
-
var
|
14216
|
-
if (n.t((
|
14217
|
-
return n.t((
|
14311
|
+
}), A = computed(() => C.value.kgHeight === m.value), E = computed(() => {
|
14312
|
+
var K, B, z;
|
14313
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
|
14314
|
+
return n.t((z = n.varButtonSearch.value) == null ? void 0 : z.var_nam).value;
|
14218
14315
|
}), P = computed(() => {
|
14219
|
-
var
|
14220
|
-
switch ((
|
14316
|
+
var K;
|
14317
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
14221
14318
|
case 1:
|
14222
14319
|
return !0;
|
14223
14320
|
case 0:
|
@@ -14225,73 +14322,73 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14225
14322
|
default:
|
14226
14323
|
return !0;
|
14227
14324
|
}
|
14228
|
-
}),
|
14229
|
-
let
|
14230
|
-
return o.value && (
|
14325
|
+
}), M = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
|
14326
|
+
let K = "kg-search";
|
14327
|
+
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
14231
14328
|
});
|
14232
14329
|
onUnmounted(() => {
|
14233
14330
|
s.store.dispose(n.formID);
|
14234
14331
|
});
|
14235
|
-
async function
|
14236
|
-
|
14332
|
+
async function L(K = !1) {
|
14333
|
+
b.value || (o.value ? v.value && v.value.validate().then(async () => {
|
14237
14334
|
await s.store.emit(n.formID, "search", {
|
14238
|
-
resetPageIndex:
|
14335
|
+
resetPageIndex: K
|
14239
14336
|
});
|
14240
|
-
}).catch((
|
14337
|
+
}).catch((B) => {
|
14241
14338
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
14242
|
-
e:
|
14339
|
+
e: B
|
14243
14340
|
});
|
14244
14341
|
}) : await s.store.emit(n.formID, "search", {
|
14245
|
-
resetPageIndex:
|
14342
|
+
resetPageIndex: K
|
14246
14343
|
}));
|
14247
14344
|
}
|
14248
|
-
s.store.setSearchFn(n.formID,
|
14249
|
-
async function
|
14345
|
+
s.store.setSearchFn(n.formID, L);
|
14346
|
+
async function D() {
|
14250
14347
|
g.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
14251
14348
|
await s.store.emit(n.formID, "reset", {});
|
14252
|
-
}).catch((
|
14349
|
+
}).catch((K) => {
|
14253
14350
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
14254
|
-
e:
|
14351
|
+
e: K
|
14255
14352
|
});
|
14256
14353
|
}) : await s.store.emit(n.formID, "reset", {});
|
14257
14354
|
}
|
14258
|
-
s.store.setResetFn(n.formID,
|
14259
|
-
function
|
14260
|
-
return
|
14355
|
+
s.store.setResetFn(n.formID, D);
|
14356
|
+
function x() {
|
14357
|
+
return L(!0), Promise.resolve(!0);
|
14261
14358
|
}
|
14262
|
-
function
|
14263
|
-
var
|
14359
|
+
function $() {
|
14360
|
+
var K;
|
14264
14361
|
return createVNode("div", {
|
14265
14362
|
class: "title",
|
14266
|
-
onClick:
|
14267
|
-
}, [((
|
14363
|
+
onClick: F
|
14364
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
14268
14365
|
class: "kg-search-title-left",
|
14269
|
-
onClick: (
|
14270
|
-
|
14366
|
+
onClick: (B) => {
|
14367
|
+
B.stopPropagation(), B.preventDefault();
|
14271
14368
|
}
|
14272
|
-
}, [t.KgSearch.left()]),
|
14369
|
+
}, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
14273
14370
|
}
|
14274
|
-
function
|
14275
|
-
var
|
14276
|
-
return ((
|
14371
|
+
function V() {
|
14372
|
+
var K, B, z, Q;
|
14373
|
+
return ((z = (B = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : B.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
14277
14374
|
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
14278
14375
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
14279
|
-
disabled:
|
14376
|
+
disabled: y.value,
|
14280
14377
|
class: "kg-search-profile-master-select"
|
14281
14378
|
}, {
|
14282
14379
|
default: () => {
|
14283
|
-
var q,
|
14284
|
-
return (
|
14285
|
-
value:
|
14380
|
+
var q, Z;
|
14381
|
+
return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((ee) => createVNode(Select.Option, {
|
14382
|
+
value: ee.id
|
14286
14383
|
}, {
|
14287
|
-
default: () => [n.t(
|
14384
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
14288
14385
|
}));
|
14289
14386
|
},
|
14290
14387
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
14291
14388
|
class: "ant-select-suffix"
|
14292
14389
|
}, null)
|
14293
14390
|
}), createVNode(Button, {
|
14294
|
-
disabled:
|
14391
|
+
disabled: y.value,
|
14295
14392
|
onClick: () => {
|
14296
14393
|
k.value.visible = !0;
|
14297
14394
|
},
|
@@ -14304,46 +14401,46 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14304
14401
|
hostFormID: n.formID
|
14305
14402
|
}, null)]);
|
14306
14403
|
}
|
14307
|
-
function
|
14308
|
-
var
|
14309
|
-
return createVNode(Fragment, null, [
|
14404
|
+
function O() {
|
14405
|
+
var K, B, z, Q, q;
|
14406
|
+
return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
14310
14407
|
type: "primary",
|
14311
|
-
ghost: !
|
14312
|
-
disabled:
|
14313
|
-
onClick:
|
14408
|
+
ghost: !b.value,
|
14409
|
+
disabled: b.value,
|
14410
|
+
onClick: D,
|
14314
14411
|
class: "kg-search-btn-reset"
|
14315
14412
|
}, {
|
14316
14413
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
14317
14414
|
}), createVNode(KgButton.Item, {
|
14318
14415
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
14319
|
-
kgVarName: (
|
14416
|
+
kgVarName: (z = n.varButtonSearch.value) == null ? void 0 : z.var_nam,
|
14320
14417
|
kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
|
14321
14418
|
kgText: E.value,
|
14322
14419
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
14323
14420
|
kgPrimary: P.value,
|
14324
14421
|
kgLoading: T.value,
|
14325
|
-
onKgClick:
|
14422
|
+
onKgClick: x
|
14326
14423
|
}, null)]);
|
14327
14424
|
}
|
14328
|
-
function
|
14425
|
+
function U() {
|
14329
14426
|
return createVNode(Spin, {
|
14330
|
-
spinning:
|
14427
|
+
spinning: I.value
|
14331
14428
|
}, {
|
14332
14429
|
default: () => {
|
14333
|
-
var
|
14430
|
+
var K;
|
14334
14431
|
return [createVNode(KgForm, {
|
14335
14432
|
ref: v,
|
14336
|
-
model: (
|
14433
|
+
model: (K = s.model.value) != null ? K : {}
|
14337
14434
|
}, {
|
14338
14435
|
default: () => [createVNode(Row, {
|
14339
14436
|
gutter: 6
|
14340
14437
|
}, {
|
14341
14438
|
default: () => {
|
14342
|
-
var
|
14343
|
-
return [(
|
14344
|
-
kgVarName:
|
14439
|
+
var B;
|
14440
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
|
14441
|
+
kgVarName: z.var_nam,
|
14345
14442
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
14346
|
-
onKgSubmit: () =>
|
14443
|
+
onKgSubmit: () => L(!0)
|
14347
14444
|
}, null))];
|
14348
14445
|
}
|
14349
14446
|
})]
|
@@ -14351,12 +14448,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14351
14448
|
}
|
14352
14449
|
});
|
14353
14450
|
}
|
14354
|
-
function
|
14355
|
-
|
14451
|
+
function F() {
|
14452
|
+
A.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
|
14356
14453
|
}
|
14357
14454
|
return () => createVNode(KgResizable, {
|
14358
14455
|
kgHeight: C.value.kgHeight,
|
14359
|
-
"onUpdate:kgHeight": (
|
14456
|
+
"onUpdate:kgHeight": (K) => C.value.kgHeight = K,
|
14360
14457
|
kgMinHeight: m.value,
|
14361
14458
|
kgMaxHeight: d.value,
|
14362
14459
|
kgDisabled: !i.value,
|
@@ -14374,17 +14471,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14374
14471
|
default: () => [createVNode("div", {
|
14375
14472
|
class: "ant-collapse-header"
|
14376
14473
|
}, [createVNode(Spin, {
|
14377
|
-
spinning:
|
14474
|
+
spinning: M.value
|
14378
14475
|
}, {
|
14379
|
-
default: () => [
|
14476
|
+
default: () => [$(), createVNode("div", {
|
14380
14477
|
class: "ant-collapse-extra"
|
14381
|
-
}, [
|
14478
|
+
}, [O()])]
|
14382
14479
|
})])]
|
14383
14480
|
}), createVNode("div", {
|
14384
14481
|
class: "ant-collapse-content ant-collapse-content-active"
|
14385
14482
|
}, [createVNode("div", {
|
14386
14483
|
class: "ant-collapse-content-box"
|
14387
|
-
}, [
|
14484
|
+
}, [U()])])])])]
|
14388
14485
|
});
|
14389
14486
|
}
|
14390
14487
|
});
|
@@ -14449,28 +14546,28 @@ function useMagicKeys(e = {}) {
|
|
14449
14546
|
d(g, !1);
|
14450
14547
|
}
|
14451
14548
|
function v(g, _) {
|
14452
|
-
var
|
14453
|
-
const T = (
|
14549
|
+
var b, y;
|
14550
|
+
const T = (b = g.key) == null ? void 0 : b.toLowerCase(), k = (y = g.code) == null ? void 0 : y.toLowerCase(), A = [k, T].filter(Boolean);
|
14454
14551
|
k && (_ ? l.add(g.code) : l.delete(g.code));
|
14455
|
-
for (const E of
|
14552
|
+
for (const E of A)
|
14456
14553
|
u.add(E), d(E, _);
|
14457
14554
|
T === "meta" && !_ ? (c.forEach((E) => {
|
14458
14555
|
l.delete(E), d(E, !1);
|
14459
|
-
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...
|
14556
|
+
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...A].forEach((E) => c.add(E));
|
14460
14557
|
}
|
14461
14558
|
r && (useEventListener(r, "keydown", (g) => (v(g, !0), s(g)), { passive: n }), useEventListener(r, "keyup", (g) => (v(g, !1), s(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
14462
14559
|
const C = new Proxy(i, {
|
14463
|
-
get(g, _,
|
14560
|
+
get(g, _, b) {
|
14464
14561
|
if (typeof _ != "string")
|
14465
|
-
return Reflect.get(g, _,
|
14562
|
+
return Reflect.get(g, _, b);
|
14466
14563
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in i))
|
14467
14564
|
if (/[+_-]/.test(_)) {
|
14468
14565
|
const T = _.split(/[+_-]/g).map((k) => k.trim());
|
14469
14566
|
i[_] = computed(() => T.every((k) => unref(C[k])));
|
14470
14567
|
} else
|
14471
14568
|
i[_] = ref(!1);
|
14472
|
-
const
|
14473
|
-
return t ? unref(
|
14569
|
+
const y = Reflect.get(g, _, b);
|
14570
|
+
return t ? unref(y) : y;
|
14474
14571
|
}
|
14475
14572
|
});
|
14476
14573
|
return C;
|
@@ -14855,139 +14952,139 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14855
14952
|
columnWidth: 32,
|
14856
14953
|
hideSelectAll: !0,
|
14857
14954
|
selectedRowKeys: d,
|
14858
|
-
onSelect: (
|
14955
|
+
onSelect: (D) => P(D)
|
14859
14956
|
}), v = ref({
|
14860
14957
|
visible: !1
|
14861
14958
|
}), C = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), g = computed(() => {
|
14862
|
-
var
|
14863
|
-
return !!u.value || ((
|
14864
|
-
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))),
|
14865
|
-
watch(() => a.getSelectedVar, (
|
14866
|
-
|
14959
|
+
var D;
|
14960
|
+
return !!u.value || ((D = a.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14961
|
+
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
14962
|
+
watch(() => a.getSelectedVar, (D) => {
|
14963
|
+
D ? y() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
14867
14964
|
}, {
|
14868
14965
|
immediate: !0
|
14869
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
14870
|
-
var
|
14871
|
-
i.value.var_text = (
|
14966
|
+
}), watch(() => a.getSelectedVarCatalog, async (D) => {
|
14967
|
+
var x, $;
|
14968
|
+
i.value.var_text = (x = D == null ? void 0 : D.var_text) != null ? x : "", ($ = o.value) == null || $.clearValidate();
|
14872
14969
|
});
|
14873
|
-
async function
|
14874
|
-
var
|
14970
|
+
async function y(D = !1) {
|
14971
|
+
var x, $, V;
|
14875
14972
|
n.value = !0;
|
14876
14973
|
try {
|
14877
14974
|
const {
|
14878
|
-
records:
|
14975
|
+
records: O
|
14879
14976
|
} = await List({
|
14880
14977
|
params: {
|
14881
14978
|
pageNo: 1,
|
14882
14979
|
pageSize: 999,
|
14883
14980
|
frm_id: e == null ? void 0 : e.value,
|
14884
|
-
var_nam: (
|
14981
|
+
var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
|
14885
14982
|
column: "frm_id,locale_id,cust_lvl",
|
14886
14983
|
order: "asc"
|
14887
14984
|
}
|
14888
14985
|
});
|
14889
|
-
if (u.value = null, c.value =
|
14890
|
-
const
|
14891
|
-
var
|
14892
|
-
return
|
14986
|
+
if (u.value = null, c.value = O != null ? O : [], D) {
|
14987
|
+
const U = c.value.find((F) => {
|
14988
|
+
var K;
|
14989
|
+
return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
14893
14990
|
});
|
14894
|
-
a.setSelectedVarCatalog(
|
14991
|
+
a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
|
14895
14992
|
} else
|
14896
|
-
a.setSelectedVarCatalog((
|
14897
|
-
} catch (
|
14898
|
-
KgLogger.debug(
|
14993
|
+
a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (V = c.value[0]) != null && V.id ? [c.value[0].id] : [];
|
14994
|
+
} catch (O) {
|
14995
|
+
KgLogger.debug(O == null ? void 0 : O.message);
|
14899
14996
|
} finally {
|
14900
14997
|
n.value = !1;
|
14901
14998
|
}
|
14902
14999
|
}
|
14903
15000
|
async function T() {
|
14904
|
-
var
|
15001
|
+
var D, x, $;
|
14905
15002
|
try {
|
14906
|
-
s.value = !0, await ((
|
14907
|
-
const
|
14908
|
-
...(
|
14909
|
-
var_text: (
|
15003
|
+
s.value = !0, await ((D = o.value) == null ? void 0 : D.validate());
|
15004
|
+
const V = new VarCatalog({
|
15005
|
+
...(x = a.getSelectedVarCatalog) != null ? x : {},
|
15006
|
+
var_text: ($ = i.value) == null ? void 0 : $.var_text
|
14910
15007
|
});
|
14911
|
-
|
14912
|
-
data:
|
15008
|
+
V.id ? V.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (V.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(V, "id"), await Add({
|
15009
|
+
data: V
|
14913
15010
|
}, {
|
14914
15011
|
successMessageMode: "none"
|
14915
15012
|
}), message.success({
|
14916
15013
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14917
|
-
}), await
|
14918
|
-
data:
|
15014
|
+
}), await y()) : (await Edit({
|
15015
|
+
data: V
|
14919
15016
|
}, {
|
14920
15017
|
successMessageMode: "none"
|
14921
15018
|
}), message.success({
|
14922
15019
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
14923
|
-
}), await
|
14924
|
-
data:
|
15020
|
+
}), await y(!0)) : (await Add({
|
15021
|
+
data: V
|
14925
15022
|
}, {
|
14926
15023
|
successMessageMode: "none"
|
14927
15024
|
}), message.success({
|
14928
15025
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14929
|
-
}), await
|
14930
|
-
} catch (
|
14931
|
-
KgUtil.throwIfNotFormError(
|
15026
|
+
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
15027
|
+
} catch (V) {
|
15028
|
+
KgUtil.throwIfNotFormError(V);
|
14932
15029
|
} finally {
|
14933
15030
|
s.value = !1;
|
14934
15031
|
}
|
14935
15032
|
}
|
14936
15033
|
function k({
|
14937
|
-
isAllForm:
|
14938
|
-
isAllLanguage:
|
15034
|
+
isAllForm: D,
|
15035
|
+
isAllLanguage: x
|
14939
15036
|
}) {
|
14940
|
-
var
|
15037
|
+
var $, V, O;
|
14941
15038
|
u.value = new VarCatalog({
|
14942
15039
|
id: "",
|
14943
15040
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
14944
|
-
grp_nam: (
|
14945
|
-
var_nam: (
|
14946
|
-
frm_id:
|
14947
|
-
locale_id:
|
15041
|
+
grp_nam: ($ = a.getSelectedVar) == null ? void 0 : $.grp_nam,
|
15042
|
+
var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
|
15043
|
+
frm_id: D || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
15044
|
+
locale_id: x ? "ALL" : (O = t.locale) == null ? void 0 : O.value,
|
14948
15045
|
var_text: ""
|
14949
15046
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
14950
15047
|
}
|
14951
|
-
function
|
14952
|
-
var
|
15048
|
+
function A() {
|
15049
|
+
var x;
|
14953
15050
|
c.value = without$1(c.value, u.value), u.value = null;
|
14954
|
-
const
|
14955
|
-
a.setSelectedVarCatalog(
|
15051
|
+
const D = (x = c.value[0]) != null ? x : null;
|
15052
|
+
a.setSelectedVarCatalog(D), d.value = D ? [D.id] : [];
|
14956
15053
|
}
|
14957
15054
|
function E() {
|
14958
15055
|
KgUtil.confirm({
|
14959
15056
|
onOk: async () => {
|
14960
|
-
var
|
15057
|
+
var D;
|
14961
15058
|
await Delete({
|
14962
15059
|
params: {
|
14963
|
-
id: (
|
15060
|
+
id: (D = a.getSelectedVarCatalog) == null ? void 0 : D.id
|
14964
15061
|
}
|
14965
15062
|
}, {
|
14966
15063
|
successMessageMode: "none",
|
14967
15064
|
joinParamsToUrl: !0
|
14968
15065
|
}), message.success({
|
14969
15066
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
14970
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
15067
|
+
}), r.retrieve(e == null ? void 0 : e.value), await y();
|
14971
15068
|
}
|
14972
15069
|
});
|
14973
15070
|
}
|
14974
|
-
function P(
|
14975
|
-
var
|
14976
|
-
((
|
15071
|
+
function P(D) {
|
15072
|
+
var x;
|
15073
|
+
((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== D.id && (unref(u) ? KgUtil.confirm({
|
14977
15074
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
14978
15075
|
onOk: () => {
|
14979
|
-
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(
|
15076
|
+
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(D)), d.value = [D.id];
|
14980
15077
|
}
|
14981
|
-
}) : (a.setSelectedVarCatalog(unref(
|
15078
|
+
}) : (a.setSelectedVarCatalog(unref(D)), d.value = [D.id]));
|
14982
15079
|
}
|
14983
|
-
function
|
15080
|
+
function M() {
|
14984
15081
|
v.value.visible = !0;
|
14985
15082
|
}
|
14986
|
-
function
|
15083
|
+
function I() {
|
14987
15084
|
return createVNode("div", {
|
14988
15085
|
class: "buttons"
|
14989
15086
|
}, [createVNode(Button, {
|
14990
|
-
onClick:
|
15087
|
+
onClick: M,
|
14991
15088
|
disabled: C.value,
|
14992
15089
|
type: "primary"
|
14993
15090
|
}, {
|
@@ -15003,7 +15100,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15003
15100
|
})]);
|
15004
15101
|
}
|
15005
15102
|
function w() {
|
15006
|
-
let
|
15103
|
+
let D, x;
|
15007
15104
|
return createVNode("div", {
|
15008
15105
|
class: "form"
|
15009
15106
|
}, [createVNode(Form, {
|
@@ -15020,7 +15117,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15020
15117
|
}, {
|
15021
15118
|
default: () => [createVNode(Textarea, {
|
15022
15119
|
value: i.value.var_text,
|
15023
|
-
"onUpdate:value": (
|
15120
|
+
"onUpdate:value": ($) => i.value.var_text = $,
|
15024
15121
|
disabled: !a.getSelectedVarCatalog
|
15025
15122
|
}, null), createVNode("button", {
|
15026
15123
|
hidden: !0
|
@@ -15030,26 +15127,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15030
15127
|
class: "buttons"
|
15031
15128
|
}, [createVNode(Button, {
|
15032
15129
|
disabled: _.value,
|
15033
|
-
onClick:
|
15034
|
-
}, _isSlot(
|
15035
|
-
default: () => [
|
15130
|
+
onClick: A
|
15131
|
+
}, _isSlot(D = t.t("common.cancelText")) ? D : {
|
15132
|
+
default: () => [D]
|
15036
15133
|
}), createVNode(Button, {
|
15037
15134
|
loading: s.value,
|
15038
|
-
disabled:
|
15135
|
+
disabled: b.value,
|
15039
15136
|
onClick: T,
|
15040
15137
|
type: "primary"
|
15041
|
-
}, _isSlot(
|
15042
|
-
default: () => [
|
15138
|
+
}, _isSlot(x = t.t("common.save")) ? x : {
|
15139
|
+
default: () => [x]
|
15043
15140
|
})])]);
|
15044
15141
|
}
|
15045
|
-
function
|
15046
|
-
var
|
15047
|
-
let
|
15048
|
-
return
|
15142
|
+
function L(D) {
|
15143
|
+
var $;
|
15144
|
+
let x = "";
|
15145
|
+
return D.id || (x += " ant-table-row-create"), D.id === (($ = a.getSelectedVarCatalog) == null ? void 0 : $.id) && (x += " ant-table-row-selected "), x;
|
15049
15146
|
}
|
15050
15147
|
return () => createVNode("div", {
|
15051
15148
|
class: "kg-var-config-modal-var-var-catalog"
|
15052
|
-
}, [
|
15149
|
+
}, [I(), createVNode(Table, {
|
15053
15150
|
pagination: !1,
|
15054
15151
|
class: "kg-flex-table",
|
15055
15152
|
size: "small",
|
@@ -15061,14 +15158,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15061
15158
|
rowKey: "id",
|
15062
15159
|
dataSource: c.value,
|
15063
15160
|
loading: n.value,
|
15064
|
-
rowClassName:
|
15161
|
+
rowClassName: L,
|
15065
15162
|
rowSelection: m.value,
|
15066
|
-
customRow: (
|
15067
|
-
onClick: () => P(
|
15163
|
+
customRow: (D) => ({
|
15164
|
+
onClick: () => P(D)
|
15068
15165
|
})
|
15069
15166
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
15070
15167
|
visible: v.value.visible,
|
15071
|
-
"onUpdate:visible": (
|
15168
|
+
"onUpdate:visible": (D) => v.value.visible = D,
|
15072
15169
|
onKgOk: k
|
15073
15170
|
}, null)]);
|
15074
15171
|
}
|
@@ -15392,22 +15489,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15392
15489
|
customRender: ({
|
15393
15490
|
record: k
|
15394
15491
|
}) => {
|
15395
|
-
var E, P,
|
15396
|
-
const
|
15397
|
-
return createVNode("div", null, [createVNode("div", null, [(E =
|
15492
|
+
var E, P, M;
|
15493
|
+
const A = k;
|
15494
|
+
return createVNode("div", null, [createVNode("div", null, [(E = A.whDsc) != null ? E : " ", createTextVNode(" - "), (P = A.whId) != null ? P : " "]), createVNode("div", {
|
15398
15495
|
class: "address"
|
15399
|
-
}, [(
|
15496
|
+
}, [(M = A.adrId) != null ? M : " "])]);
|
15400
15497
|
}
|
15401
15498
|
}]), u = ref([]), d = computed(() => {
|
15402
|
-
var
|
15403
|
-
const k = (
|
15499
|
+
var A;
|
15500
|
+
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
15404
15501
|
return u.value.filter((E) => {
|
15405
|
-
var P,
|
15406
|
-
return ((
|
15502
|
+
var P, M, I, w, L, D;
|
15503
|
+
return ((M = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : M.includes(k)) || ((w = (I = E.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : w.includes(k)) || ((D = (L = E.adrId) == null ? void 0 : L.toUpperCase()) == null ? void 0 : D.includes(k));
|
15407
15504
|
});
|
15408
15505
|
}), m = computed(() => {
|
15409
|
-
var k,
|
15410
|
-
return ((
|
15506
|
+
var k, A;
|
15507
|
+
return ((A = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : A.enable) !== !1;
|
15411
15508
|
});
|
15412
15509
|
watch(a.visible, (k) => {
|
15413
15510
|
!m.value || (k ? C() : g());
|
@@ -15420,7 +15517,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15420
15517
|
!m.value || a.store.setVisible(!0);
|
15421
15518
|
}
|
15422
15519
|
function C() {
|
15423
|
-
o.value = a.warehouse.value,
|
15520
|
+
o.value = a.warehouse.value, b();
|
15424
15521
|
}
|
15425
15522
|
function g() {
|
15426
15523
|
s.value = "", u.value = [], o.value = null;
|
@@ -15439,7 +15536,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15439
15536
|
}
|
15440
15537
|
})), a.store.setVisible(!1));
|
15441
15538
|
}
|
15442
|
-
async function
|
15539
|
+
async function b() {
|
15443
15540
|
i.value = !0;
|
15444
15541
|
try {
|
15445
15542
|
const {
|
@@ -15457,14 +15554,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15457
15554
|
i.value = !1;
|
15458
15555
|
}
|
15459
15556
|
}
|
15460
|
-
function
|
15557
|
+
function y(k, A) {
|
15461
15558
|
var E;
|
15462
15559
|
switch (k.detail) {
|
15463
15560
|
case 1:
|
15464
|
-
((E = o.value) == null ? void 0 : E.id) ===
|
15561
|
+
((E = o.value) == null ? void 0 : E.id) === A.id ? o.value = null : o.value = A;
|
15465
15562
|
break;
|
15466
15563
|
case 2:
|
15467
|
-
o.value =
|
15564
|
+
o.value = A, _();
|
15468
15565
|
break;
|
15469
15566
|
}
|
15470
15567
|
}
|
@@ -15474,8 +15571,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15474
15571
|
placement: "bottomRight"
|
15475
15572
|
}, {
|
15476
15573
|
default: () => {
|
15477
|
-
var k,
|
15478
|
-
return [((k = l.value) == null ? void 0 : k.whDsc) || ((
|
15574
|
+
var k, A;
|
15575
|
+
return [((k = l.value) == null ? void 0 : k.whDsc) || ((A = l.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
15479
15576
|
}
|
15480
15577
|
}), createVNode(KgModal, {
|
15481
15578
|
visible: a.visible.value,
|
@@ -15517,10 +15614,10 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15517
15614
|
columns: c,
|
15518
15615
|
class: "kg-flex-table",
|
15519
15616
|
customRow: (k) => {
|
15520
|
-
var
|
15617
|
+
var A;
|
15521
15618
|
return {
|
15522
|
-
class: k.id === ((
|
15523
|
-
onClick: (E) =>
|
15619
|
+
class: k.id === ((A = o.value) == null ? void 0 : A.id) ? "selected" : "",
|
15620
|
+
onClick: (E) => y(E, k)
|
15524
15621
|
};
|
15525
15622
|
}
|
15526
15623
|
}, null)]
|