@kengic/vue 0.7.2 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -3350,12 +3350,12 @@ function sendQuery(e, t, r, a) {
|
|
3350
3350
|
}), m = [];
|
3351
3351
|
}
|
3352
3352
|
function k(E, P, A) {
|
3353
|
-
const
|
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:
|
@@ -3365,8 +3365,8 @@ function sendQuery(e, t, r, a) {
|
|
3365
3365
|
u = A, b();
|
3366
3366
|
return;
|
3367
3367
|
}
|
3368
|
-
if (
|
3369
|
-
u = A, m.length || (l.length ?
|
3368
|
+
if (I) {
|
3369
|
+
u = A, m.length || (l.length ? M() : b());
|
3370
3370
|
return;
|
3371
3371
|
}
|
3372
3372
|
if (C(), T(), !e.random) {
|
@@ -3377,7 +3377,7 @@ function sendQuery(e, t, r, a) {
|
|
3377
3377
|
w(A);
|
3378
3378
|
});
|
3379
3379
|
}
|
3380
|
-
function
|
3380
|
+
function M() {
|
3381
3381
|
if (i !== "pending")
|
3382
3382
|
return;
|
3383
3383
|
C();
|
@@ -3395,13 +3395,13 @@ function sendQuery(e, t, r, a) {
|
|
3395
3395
|
const P = {
|
3396
3396
|
status: "pending",
|
3397
3397
|
resource: E,
|
3398
|
-
callback: (A,
|
3399
|
-
k(P, A,
|
3398
|
+
callback: (A, I) => {
|
3399
|
+
k(P, A, I);
|
3400
3400
|
}
|
3401
3401
|
};
|
3402
|
-
m.push(P), c++, d = setTimeout(
|
3402
|
+
m.push(P), c++, d = setTimeout(M, e.rotate), r(E, t, P.callback);
|
3403
3403
|
}
|
3404
|
-
return setTimeout(
|
3404
|
+
return setTimeout(M), y;
|
3405
3405
|
}
|
3406
3406
|
function initRedundancy(e) {
|
3407
3407
|
const t = {
|
@@ -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+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { 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
|
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+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { 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
|
+
} }, M = "en", E = {};
|
3954
|
+
E[M] = b;
|
3955
|
+
var P = "$isDayjsObject", A = function($) {
|
3956
|
+
return $ instanceof D || !(!$ || !$[P]);
|
3957
|
+
}, I = function $(V, O, U) {
|
3958
|
+
var F;
|
3959
|
+
if (!V)
|
3960
|
+
return M;
|
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 && (M = F), F || !U && M;
|
3972
|
+
}, w = function($, V) {
|
3973
|
+
if (A($))
|
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 = A, 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(y, 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 = A, w.unix = function($) {
|
4214
|
+
return w(1e3 * $);
|
4215
|
+
}, w.en = E[M], 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 y = C, b = Number(e), T = [], k = 0,
|
4179
|
-
|
4180
|
-
const E = a === 10 ? 1e3 : 1024, P = m === !0, A = b < 0,
|
4260
|
+
let y = C, b = Number(e), T = [], k = 0, M = 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, A = b < 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
4267
|
if (A && (b = -b), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(b) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
|
4186
4268
|
return y;
|
4187
4269
|
if (b === 0)
|
4188
|
-
T[0] = 0,
|
4270
|
+
T[0] = 0, M = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4189
4271
|
else {
|
4190
4272
|
k = b / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (k = k * 8, k >= E && y < 8 && (k = k / E, y++));
|
4191
4273
|
const w = Math.pow(10, y > 0 ? n : 0);
|
4192
|
-
T[0] =
|
4274
|
+
T[0] = I(k * w) / w, T[0] === E && y < 8 && C === -1 && (T[0] = 1, y++), M = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4193
4275
|
}
|
4194
4276
|
if (A && (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) {
|
4195
|
-
const w = o || PERIOD,
|
4196
|
-
T[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
4280
|
return P && (T[1] = v[y] ? v[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
4199
4281
|
value: T[0],
|
4200
4282
|
symbol: T[1],
|
4201
4283
|
exponent: y,
|
4202
|
-
unit:
|
4284
|
+
unit: M
|
4203
4285
|
} : T.join(i);
|
4204
4286
|
}
|
4205
4287
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
@@ -5390,8 +5472,8 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5390
5472
|
_ || (_ = m == "constructor");
|
5391
5473
|
}
|
5392
5474
|
if (g && !_) {
|
5393
|
-
var k = e.constructor,
|
5394
|
-
k !=
|
5475
|
+
var k = e.constructor, M = t.constructor;
|
5476
|
+
k != M && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof M == "function" && M instanceof M) && (g = !1);
|
5395
5477
|
}
|
5396
5478
|
return s.delete(e), s.delete(t), g;
|
5397
5479
|
}
|
@@ -6667,19 +6749,19 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6667
6749
|
!l && !C && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6668
6750
|
const g = ref({});
|
6669
6751
|
function _(A) {
|
6670
|
-
let
|
6671
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof A == "function" ? (A(a.state.value[e]),
|
6752
|
+
let I;
|
6753
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof A == "function" ? (A(a.state.value[e]), I = {
|
6672
6754
|
type: MutationType.patchFunction,
|
6673
6755
|
storeId: e,
|
6674
6756
|
events: v
|
6675
|
-
}) : (mergeReactiveObjects(a.state.value[e], A),
|
6757
|
+
}) : (mergeReactiveObjects(a.state.value[e], A), I = {
|
6676
6758
|
type: MutationType.patchObject,
|
6677
6759
|
payload: A,
|
6678
6760
|
storeId: e,
|
6679
6761
|
events: v
|
6680
6762
|
}), nextTick().then(() => {
|
6681
6763
|
c = !0;
|
6682
|
-
}), u = !0, triggerSubscriptions(d,
|
6764
|
+
}), u = !0, triggerSubscriptions(d, I, a.state.value[e]);
|
6683
6765
|
}
|
6684
6766
|
const y = process.env.NODE_ENV !== "production" ? () => {
|
6685
6767
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6687,30 +6769,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6687
6769
|
function b() {
|
6688
6770
|
s.stop(), d = [], m = [], a._s.delete(e);
|
6689
6771
|
}
|
6690
|
-
function T(A,
|
6772
|
+
function T(A, I) {
|
6691
6773
|
return function() {
|
6692
6774
|
setActivePinia(a);
|
6693
|
-
const w = Array.from(arguments),
|
6694
|
-
function
|
6695
|
-
|
6775
|
+
const w = Array.from(arguments), L = [], D = [];
|
6776
|
+
function x(O) {
|
6777
|
+
L.push(O);
|
6696
6778
|
}
|
6697
|
-
function O
|
6698
|
-
|
6779
|
+
function $(O) {
|
6780
|
+
D.push(O);
|
6699
6781
|
}
|
6700
6782
|
triggerSubscriptions(m, {
|
6701
6783
|
args: w,
|
6702
6784
|
name: A,
|
6703
6785
|
store: E,
|
6704
|
-
after:
|
6705
|
-
onError:
|
6786
|
+
after: x,
|
6787
|
+
onError: $
|
6706
6788
|
});
|
6707
|
-
let
|
6789
|
+
let V;
|
6708
6790
|
try {
|
6709
|
-
|
6710
|
-
} catch (
|
6711
|
-
throw triggerSubscriptions(
|
6791
|
+
V = I.apply(this && this.$id === e ? this : E, w);
|
6792
|
+
} catch (O) {
|
6793
|
+
throw triggerSubscriptions(D, O), O;
|
6712
6794
|
}
|
6713
|
-
return
|
6795
|
+
return V instanceof Promise ? V.then((O) => (triggerSubscriptions(L, O), O)).catch((O) => (triggerSubscriptions(D, O), Promise.reject(O))) : (triggerSubscriptions(L, V), V);
|
6714
6796
|
};
|
6715
6797
|
}
|
6716
6798
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6718,20 +6800,20 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6718
6800
|
getters: {},
|
6719
6801
|
state: [],
|
6720
6802
|
hotState: g
|
6721
|
-
}),
|
6803
|
+
}), M = {
|
6722
6804
|
_p: a,
|
6723
6805
|
$id: e,
|
6724
6806
|
$onAction: addSubscription.bind(null, m),
|
6725
6807
|
$patch: _,
|
6726
6808
|
$reset: y,
|
6727
|
-
$subscribe(A,
|
6728
|
-
const w = addSubscription(d, A,
|
6729
|
-
(
|
6809
|
+
$subscribe(A, I = {}) {
|
6810
|
+
const w = addSubscription(d, A, I.detached, () => L()), L = s.run(() => watch(() => a.state.value[e], (D) => {
|
6811
|
+
(I.flush === "sync" ? u : c) && A({
|
6730
6812
|
storeId: e,
|
6731
6813
|
type: MutationType.direct,
|
6732
6814
|
events: v
|
6733
|
-
},
|
6734
|
-
}, assign$1({}, i,
|
6815
|
+
}, D);
|
6816
|
+
}, assign$1({}, i, I)));
|
6735
6817
|
return w;
|
6736
6818
|
},
|
6737
6819
|
$dispose: b
|
@@ -6740,77 +6822,77 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6740
6822
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6741
6823
|
_hmrPayload: k
|
6742
6824
|
} : {},
|
6743
|
-
|
6825
|
+
M
|
6744
6826
|
));
|
6745
6827
|
a._s.set(e, E);
|
6746
6828
|
const P = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
6747
6829
|
for (const A in P) {
|
6748
|
-
const
|
6749
|
-
if (isRef(
|
6750
|
-
process.env.NODE_ENV !== "production" && n ? set(g.value, A, toRef(P, A)) : l || (C && shouldHydrate(
|
6751
|
-
else if (typeof
|
6752
|
-
const w = process.env.NODE_ENV !== "production" && n ?
|
6753
|
-
P[A] = w, process.env.NODE_ENV !== "production" && (k.actions[A] =
|
6830
|
+
const I = P[A];
|
6831
|
+
if (isRef(I) && !isComputed(I) || isReactive(I))
|
6832
|
+
process.env.NODE_ENV !== "production" && n ? set(g.value, A, toRef(P, A)) : l || (C && shouldHydrate(I) && (isRef(I) ? I.value = C[A] : mergeReactiveObjects(I, C[A])), a.state.value[e][A] = I), process.env.NODE_ENV !== "production" && k.state.push(A);
|
6833
|
+
else if (typeof I == "function") {
|
6834
|
+
const w = process.env.NODE_ENV !== "production" && n ? I : T(A, I);
|
6835
|
+
P[A] = w, process.env.NODE_ENV !== "production" && (k.actions[A] = I), o.actions[A] = I;
|
6754
6836
|
} else
|
6755
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6837
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[A] = l ? r.getters[A] : I, IS_CLIENT && (P._getters || (P._getters = markRaw([]))).push(A));
|
6756
6838
|
}
|
6757
6839
|
if (assign$1(E, P), assign$1(toRaw(E), P), Object.defineProperty(E, "$state", {
|
6758
6840
|
get: () => process.env.NODE_ENV !== "production" && n ? g.value : a.state.value[e],
|
6759
6841
|
set: (A) => {
|
6760
6842
|
if (process.env.NODE_ENV !== "production" && n)
|
6761
6843
|
throw new Error("cannot set hotState");
|
6762
|
-
_((
|
6763
|
-
assign$1(
|
6844
|
+
_((I) => {
|
6845
|
+
assign$1(I, A);
|
6764
6846
|
});
|
6765
6847
|
}
|
6766
6848
|
}), process.env.NODE_ENV !== "production") {
|
6767
|
-
E._hotUpdate = markRaw((
|
6768
|
-
E._hotUpdating = !0,
|
6849
|
+
E._hotUpdate = markRaw((I) => {
|
6850
|
+
E._hotUpdating = !0, I._hmrPayload.state.forEach((w) => {
|
6769
6851
|
if (w in E.$state) {
|
6770
|
-
const
|
6771
|
-
typeof
|
6852
|
+
const L = I.$state[w], D = E.$state[w];
|
6853
|
+
typeof L == "object" && isPlainObject(L) && isPlainObject(D) ? patchObject(L, D) : I.$state[w] = D;
|
6772
6854
|
}
|
6773
|
-
set(E, w, toRef(
|
6855
|
+
set(E, w, toRef(I.$state, w));
|
6774
6856
|
}), Object.keys(E.$state).forEach((w) => {
|
6775
|
-
w in
|
6776
|
-
}), c = !1, u = !1, a.state.value[e] = toRef(
|
6857
|
+
w in I.$state || del(E, w);
|
6858
|
+
}), c = !1, u = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
6777
6859
|
c = !0;
|
6778
6860
|
});
|
6779
|
-
for (const w in
|
6780
|
-
const
|
6781
|
-
set(E, w, T(w,
|
6861
|
+
for (const w in I._hmrPayload.actions) {
|
6862
|
+
const L = I[w];
|
6863
|
+
set(E, w, T(w, L));
|
6782
6864
|
}
|
6783
|
-
for (const w in
|
6784
|
-
const
|
6785
|
-
set(E, w,
|
6865
|
+
for (const w in I._hmrPayload.getters) {
|
6866
|
+
const L = I._hmrPayload.getters[w], D = l ? computed(() => (setActivePinia(a), L.call(E, E))) : L;
|
6867
|
+
set(E, w, D);
|
6786
6868
|
}
|
6787
6869
|
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
6788
|
-
w in
|
6870
|
+
w in I._hmrPayload.getters || del(E, w);
|
6789
6871
|
}), Object.keys(E._hmrPayload.actions).forEach((w) => {
|
6790
|
-
w in
|
6791
|
-
}), E._hmrPayload =
|
6872
|
+
w in I._hmrPayload.actions || del(E, w);
|
6873
|
+
}), E._hmrPayload = I._hmrPayload, E._getters = I._getters, E._hotUpdating = !1;
|
6792
6874
|
});
|
6793
6875
|
const A = {
|
6794
6876
|
writable: !0,
|
6795
6877
|
configurable: !0,
|
6796
6878
|
enumerable: !1
|
6797
6879
|
};
|
6798
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6799
|
-
Object.defineProperty(E,
|
6800
|
-
value: E[
|
6880
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
6881
|
+
Object.defineProperty(E, I, {
|
6882
|
+
value: E[I],
|
6801
6883
|
...A
|
6802
6884
|
});
|
6803
6885
|
});
|
6804
6886
|
}
|
6805
6887
|
return a._p.forEach((A) => {
|
6806
6888
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6807
|
-
const
|
6889
|
+
const I = s.run(() => A({
|
6808
6890
|
store: E,
|
6809
6891
|
app: a._a,
|
6810
6892
|
pinia: a,
|
6811
6893
|
options: o
|
6812
6894
|
}));
|
6813
|
-
Object.keys(
|
6895
|
+
Object.keys(I || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, I);
|
6814
6896
|
} else
|
6815
6897
|
assign$1(E, s.run(() => A({
|
6816
6898
|
store: E,
|
@@ -7119,7 +7201,9 @@ const getProps$B = () => ({
|
|
7119
7201
|
default: () => [s]
|
7120
7202
|
});
|
7121
7203
|
})]),
|
7122
|
-
suffixIcon: () => createVNode(CaretDownOutlined$1,
|
7204
|
+
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
7205
|
+
class: "ant-select-suffix"
|
7206
|
+
}, null)
|
7123
7207
|
})]
|
7124
7208
|
});
|
7125
7209
|
}
|
@@ -8628,11 +8712,11 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8628
8712
|
varSubmitConfig: b,
|
8629
8713
|
varSubmitFields: T,
|
8630
8714
|
varProfile: k,
|
8631
|
-
varProfileConfig:
|
8715
|
+
varProfileConfig: M,
|
8632
8716
|
varGrid: E,
|
8633
8717
|
varGridConfig: P
|
8634
8718
|
} = await GetAll({ params: { frm_id: e } });
|
8635
|
-
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(y != null ? y : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(T)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
8719
|
+
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(y != null ? y : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(T)), this.varProfileConfigMap.set(e, transformVarProfileConfig(M != null ? M : null)), this.varProfileMap.set(e, {
|
8636
8720
|
varProfile: k != null ? k : null,
|
8637
8721
|
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((A) => A.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((A) => A.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
|
8638
8722
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(P != null ? P : null)), this.varGridMap.set(e, {
|
@@ -8829,12 +8913,12 @@ function useKgVar(e, t, r = 0) {
|
|
8829
8913
|
u.leave(c);
|
8830
8914
|
}));
|
8831
8915
|
const d = (q) => computed(() => {
|
8832
|
-
var
|
8833
|
-
return (se = (
|
8834
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)),
|
8835
|
-
var q,
|
8836
|
-
return (
|
8837
|
-
}),
|
8916
|
+
var Z, ee, se;
|
8917
|
+
return (se = (ee = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? ee : q) != null ? se : "";
|
8918
|
+
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), A = 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(() => {
|
8919
|
+
var q, Z;
|
8920
|
+
return (Z = (q = V.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
|
8921
|
+
}), 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));
|
8838
8922
|
return {
|
8839
8923
|
formID: c,
|
8840
8924
|
store: u,
|
@@ -8847,23 +8931,23 @@ function useKgVar(e, t, r = 0) {
|
|
8847
8931
|
isUpdatingRequesting: b,
|
8848
8932
|
isCopying: T,
|
8849
8933
|
isCopyingRequesting: k,
|
8850
|
-
isDeleting:
|
8934
|
+
isDeleting: M,
|
8851
8935
|
isDeletingRequesting: E,
|
8852
8936
|
isOtherRequesting: P,
|
8853
8937
|
varButtons: A,
|
8854
|
-
varButtonSearch:
|
8938
|
+
varButtonSearch: I,
|
8855
8939
|
varButtonCreate: w,
|
8856
|
-
varButtonUpdate:
|
8857
|
-
varButtonCopy:
|
8858
|
-
varButtonDelete:
|
8859
|
-
varProfileMasters:
|
8860
|
-
currentVarProfileMaster:
|
8861
|
-
currentVarProfileMasterID:
|
8862
|
-
currentVarProfileDetails:
|
8863
|
-
varGridConfig:
|
8864
|
-
varGridMasters:
|
8865
|
-
currentVarGridMaster:
|
8866
|
-
systemVarGridDetails:
|
8940
|
+
varButtonUpdate: L,
|
8941
|
+
varButtonCopy: D,
|
8942
|
+
varButtonDelete: x,
|
8943
|
+
varProfileMasters: $,
|
8944
|
+
currentVarProfileMaster: V,
|
8945
|
+
currentVarProfileMasterID: O,
|
8946
|
+
currentVarProfileDetails: U,
|
8947
|
+
varGridConfig: F,
|
8948
|
+
varGridMasters: K,
|
8949
|
+
currentVarGridMaster: B,
|
8950
|
+
systemVarGridDetails: z,
|
8867
8951
|
currentVarGridDetails: Q,
|
8868
8952
|
setIsCreating: s,
|
8869
8953
|
setIsUpdating: l,
|
@@ -8949,9 +9033,9 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8949
9033
|
r("update:visible", !1);
|
8950
9034
|
}
|
8951
9035
|
async function C() {
|
8952
|
-
var g, _, y, b, T, k,
|
9036
|
+
var g, _, y, b, T, k, M;
|
8953
9037
|
if (d.value) {
|
8954
|
-
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (y = E.map((
|
9038
|
+
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (y = E.map((I) => I[m.value])) != null ? y : [];
|
8955
9039
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
8956
9040
|
var_nam: l,
|
8957
9041
|
isMultiple: !0,
|
@@ -8965,7 +9049,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8965
9049
|
rows: E
|
8966
9050
|
}), r("update:visible", !1));
|
8967
9051
|
} else {
|
8968
|
-
const E = (k = (T = (b = c.selectedRows) == null ? void 0 : b.value) == null ? void 0 : T[0]) != null ? k : null, P = (
|
9052
|
+
const E = (k = (T = (b = c.selectedRows) == null ? void 0 : b.value) == null ? void 0 : T[0]) != null ? k : null, P = (M = E == null ? void 0 : E[m.value]) != null ? M : "";
|
8969
9053
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
8970
9054
|
var_nam: l,
|
8971
9055
|
isMultiple: !1,
|
@@ -9134,7 +9218,7 @@ function _useRules(e) {
|
|
9134
9218
|
};
|
9135
9219
|
}
|
9136
9220
|
function useKgFormItem(e) {
|
9137
|
-
const t = inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
|
9221
|
+
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(() => {
|
9138
9222
|
var v, C, g, _, y, b;
|
9139
9223
|
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 = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
|
9140
9224
|
switch (r) {
|
@@ -9209,9 +9293,9 @@ function useKgFormItemSelect() {
|
|
9209
9293
|
}), d;
|
9210
9294
|
});
|
9211
9295
|
async function c() {
|
9212
|
-
var y, b, T, k,
|
9296
|
+
var y, b, T, k, M, E, P, A;
|
9213
9297
|
let d = [];
|
9214
|
-
const m = (y = a.value) == null ? void 0 : y.cmd, v = (T = (b = a.value) == null ? void 0 : b.cmd_method) != null ? T : "GET", C = (
|
9298
|
+
const m = (y = a.value) == null ? void 0 : y.cmd, v = (T = (b = a.value) == null ? void 0 : b.cmd_method) != null ? T : "GET", C = (M = (k = a.value) == null ? void 0 : k.val_clm) != null ? M : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
|
9215
9299
|
if (!m || !C || !g) {
|
9216
9300
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9217
9301
|
frm_id: r.formID,
|
@@ -9243,14 +9327,14 @@ function useKgFormItemSelect() {
|
|
9243
9327
|
break;
|
9244
9328
|
}
|
9245
9329
|
if (d.length > 0) {
|
9246
|
-
const
|
9247
|
-
(!(C in
|
9330
|
+
const I = d[0];
|
9331
|
+
(!(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.", {
|
9248
9332
|
frm_id: r.formID,
|
9249
9333
|
var_nam: e,
|
9250
9334
|
cmd: m,
|
9251
9335
|
val_clm: C,
|
9252
9336
|
lbl_clm: g,
|
9253
|
-
\u6240\u6709\u5217: Object.keys(
|
9337
|
+
\u6240\u6709\u5217: Object.keys(I)
|
9254
9338
|
});
|
9255
9339
|
}
|
9256
9340
|
l.value = d;
|
@@ -9293,8 +9377,8 @@ function useKgFormItemSelect() {
|
|
9293
9377
|
const T = s;
|
9294
9378
|
if ((b = T.value) != null && b.excludeValues)
|
9295
9379
|
return d.filter((k) => {
|
9296
|
-
var
|
9297
|
-
return !((
|
9380
|
+
var M;
|
9381
|
+
return !((M = T.value.excludeValues) != null && M.includes(k[m]));
|
9298
9382
|
});
|
9299
9383
|
}
|
9300
9384
|
break;
|
@@ -9395,8 +9479,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9395
9479
|
"kg-value": b[i.value]
|
9396
9480
|
}, {
|
9397
9481
|
default: () => {
|
9398
|
-
var
|
9399
|
-
return [b[(E = (
|
9482
|
+
var M, E;
|
9483
|
+
return [b[(E = (M = l.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
|
9400
9484
|
}
|
9401
9485
|
})]
|
9402
9486
|
});
|
@@ -9616,7 +9700,6 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9616
9700
|
placeholder: e.kgPlaceholder,
|
9617
9701
|
class: "kg-form-item-select",
|
9618
9702
|
dropdownClassName: "kg-form-item-select-dropdown",
|
9619
|
-
style: "width: 100%",
|
9620
9703
|
"kg-cmd": (m = n.value) == null ? void 0 : m.cmd,
|
9621
9704
|
"kg-val-clm": l.value,
|
9622
9705
|
"kg-lbl-clm": (v = n.value) == null ? void 0 : v.lbl_clm
|
@@ -9630,7 +9713,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9630
9713
|
return [C[(_ = (g = n.value) == null ? void 0 : g.lbl_clm) != null ? _ : ""]];
|
9631
9714
|
}
|
9632
9715
|
})),
|
9633
|
-
suffixIcon: () => createVNode(CaretDownOutlined$1,
|
9716
|
+
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
9717
|
+
class: "ant-select-suffix"
|
9718
|
+
}, null)
|
9634
9719
|
});
|
9635
9720
|
};
|
9636
9721
|
}
|
@@ -9693,15 +9778,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9693
9778
|
const s = useKgVar();
|
9694
9779
|
useKgForm(s.formID).onLookupOk(async ({
|
9695
9780
|
var_nam: A,
|
9696
|
-
model:
|
9781
|
+
model: I,
|
9697
9782
|
isMultiple: w,
|
9698
|
-
value:
|
9699
|
-
values:
|
9783
|
+
value: L,
|
9784
|
+
values: D
|
9700
9785
|
}) => {
|
9701
|
-
var
|
9786
|
+
var x;
|
9702
9787
|
switch (A) {
|
9703
9788
|
case e.kgVarName:
|
9704
|
-
|
9789
|
+
I.value && (w ? I.value[e.kgVarName] = D : I.value[e.kgVarName] = L), (x = n.value) == null || x.validate([e.kgVarName]);
|
9705
9790
|
break;
|
9706
9791
|
}
|
9707
9792
|
return !1;
|
@@ -9711,7 +9796,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9711
9796
|
} = _useRules(e), {
|
9712
9797
|
controlType: m
|
9713
9798
|
} = useKgFormItem(e), v = computed(() => {
|
9714
|
-
var
|
9799
|
+
var I, w, L, D, x;
|
9715
9800
|
if (s.isRetrieving.value)
|
9716
9801
|
return !0;
|
9717
9802
|
let A = !1;
|
@@ -9720,7 +9805,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9720
9805
|
else
|
9721
9806
|
switch (e.kgContext) {
|
9722
9807
|
case KG_FORM_CONTEXT.SEARCH:
|
9723
|
-
A = ((
|
9808
|
+
A = ((I = c.value) == null ? void 0 : I.ena_flg) === 0;
|
9724
9809
|
break;
|
9725
9810
|
case KG_FORM_CONTEXT.SUBMIT:
|
9726
9811
|
switch (!0) {
|
@@ -9728,78 +9813,78 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9728
9813
|
A = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
9729
9814
|
break;
|
9730
9815
|
case s.isUpdating.value:
|
9731
|
-
A = ((
|
9816
|
+
A = ((L = u.value) == null ? void 0 : L.upt_ena_flg) === 0;
|
9732
9817
|
break;
|
9733
9818
|
case s.isCopying.value:
|
9734
|
-
A = ((
|
9819
|
+
A = ((D = u.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
9735
9820
|
break;
|
9736
9821
|
case s.isDeleting.value:
|
9737
|
-
A = ((
|
9822
|
+
A = ((x = u.value) == null ? void 0 : x.del_ena_flg) === 0;
|
9738
9823
|
break;
|
9739
9824
|
}
|
9740
9825
|
break;
|
9741
9826
|
}
|
9742
9827
|
return A;
|
9743
9828
|
}), C = computed(() => {
|
9744
|
-
var
|
9829
|
+
var I, w, L, D;
|
9745
9830
|
let A = " ";
|
9746
9831
|
if (e.kgPlaceholder)
|
9747
9832
|
A = e.kgPlaceholder;
|
9748
9833
|
else
|
9749
9834
|
switch (e.kgContext) {
|
9750
9835
|
case KG_FORM_CONTEXT.SEARCH:
|
9751
|
-
A = s.t((w = (
|
9836
|
+
A = s.t((w = (I = c.value) == null ? void 0 : I.placeholder) != null ? w : " ").value;
|
9752
9837
|
break;
|
9753
9838
|
case KG_FORM_CONTEXT.SUBMIT:
|
9754
|
-
A = s.t((
|
9839
|
+
A = s.t((D = (L = u.value) == null ? void 0 : L.placeholder) != null ? D : " ").value;
|
9755
9840
|
break;
|
9756
9841
|
}
|
9757
9842
|
return A;
|
9758
9843
|
}), g = computed(() => {
|
9759
|
-
var
|
9844
|
+
var I, w, L, D, x, $, V, O, U, F;
|
9760
9845
|
let A = 6;
|
9761
9846
|
if (e.kgSpan !== void 0)
|
9762
9847
|
A = e.kgSpan;
|
9763
9848
|
else
|
9764
9849
|
switch (e.kgContext) {
|
9765
9850
|
case KG_FORM_CONTEXT.SEARCH:
|
9766
|
-
A = (w = (
|
9851
|
+
A = (w = (I = c.value) == null ? void 0 : I.width) != null ? w : 6;
|
9767
9852
|
break;
|
9768
9853
|
case KG_FORM_CONTEXT.SUBMIT:
|
9769
9854
|
switch (!0) {
|
9770
9855
|
case s.isCreating.value:
|
9771
|
-
A = (
|
9856
|
+
A = (D = (L = u.value) == null ? void 0 : L.crt_width) != null ? D : 6;
|
9772
9857
|
break;
|
9773
9858
|
case s.isUpdating.value:
|
9774
|
-
A = (
|
9859
|
+
A = ($ = (x = u.value) == null ? void 0 : x.upt_width) != null ? $ : 6;
|
9775
9860
|
break;
|
9776
9861
|
case s.isCopying.value:
|
9777
|
-
A = (
|
9862
|
+
A = (O = (V = u.value) == null ? void 0 : V.cpy_width) != null ? O : 6;
|
9778
9863
|
break;
|
9779
9864
|
case s.isDeleting.value:
|
9780
|
-
A = (
|
9865
|
+
A = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
|
9781
9866
|
break;
|
9782
9867
|
}
|
9783
9868
|
}
|
9784
9869
|
return Math.min(24, Math.max(1, A));
|
9785
9870
|
}), _ = computed(() => {
|
9786
|
-
var
|
9871
|
+
var L, D;
|
9787
9872
|
const A = get(k.value, "$el.parentElement");
|
9788
|
-
if (A && !((
|
9873
|
+
if (A && !((L = A.classList) != null && L.contains("ant-row")))
|
9789
9874
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9790
|
-
let
|
9791
|
-
const w = Math.abs(Number.parseInt((
|
9792
|
-
return Number.isNaN(w) || (
|
9875
|
+
let I = {};
|
9876
|
+
const w = Math.abs(Number.parseInt((D = get(k.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
9877
|
+
return Number.isNaN(w) || (I = {
|
9793
9878
|
paddingLeft: `${w}px !important`,
|
9794
9879
|
paddingRight: `${w}px !important`
|
9795
|
-
}),
|
9880
|
+
}), I;
|
9796
9881
|
}), y = computed(() => {
|
9797
|
-
var
|
9882
|
+
var I, w, L, D;
|
9798
9883
|
let A = "kg-form-item";
|
9799
9884
|
switch (o.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
9800
9885
|
case KG_FORM_CONTEXT.SEARCH:
|
9801
9886
|
switch (!0) {
|
9802
|
-
case ((
|
9887
|
+
case ((I = c.value) == null ? void 0 : I.vis_flg) === 0:
|
9803
9888
|
A += " kg-form-item--invisible";
|
9804
9889
|
break;
|
9805
9890
|
}
|
@@ -9807,8 +9892,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9807
9892
|
case KG_FORM_CONTEXT.SUBMIT:
|
9808
9893
|
switch (!0) {
|
9809
9894
|
case (s.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
9810
|
-
case (s.isUpdating.value && ((
|
9811
|
-
case (s.isCopying.value && ((
|
9895
|
+
case (s.isUpdating.value && ((L = u.value) == null ? void 0 : L.upt_vis_flg) === 0):
|
9896
|
+
case (s.isCopying.value && ((D = u.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
9812
9897
|
A += " kg-form-item--invisible";
|
9813
9898
|
break;
|
9814
9899
|
}
|
@@ -9816,10 +9901,10 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9816
9901
|
}
|
9817
9902
|
return A;
|
9818
9903
|
}), b = computed(() => {
|
9819
|
-
var
|
9904
|
+
var I;
|
9820
9905
|
const A = {
|
9821
9906
|
...e,
|
9822
|
-
value: (
|
9907
|
+
value: (I = a.value) == null ? void 0 : I[e.kgVarName],
|
9823
9908
|
"onUpdate:value": (w) => {
|
9824
9909
|
a.value && (a.value[e.kgVarName] = w);
|
9825
9910
|
},
|
@@ -9855,7 +9940,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9855
9940
|
}
|
9856
9941
|
return A;
|
9857
9942
|
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), k = ref(null);
|
9858
|
-
function
|
9943
|
+
function M() {
|
9859
9944
|
if (t.control) {
|
9860
9945
|
const A = {
|
9861
9946
|
varName: e.kgVarName,
|
@@ -9913,7 +9998,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9913
9998
|
});
|
9914
9999
|
}
|
9915
10000
|
return () => {
|
9916
|
-
var A,
|
10001
|
+
var A, I;
|
9917
10002
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
9918
10003
|
ref: k,
|
9919
10004
|
span: g.value,
|
@@ -9922,7 +10007,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9922
10007
|
"kg-frm_id": s.formID,
|
9923
10008
|
"kg-var_nam": e.kgVarName,
|
9924
10009
|
"kg-lkp_id": (A = o.value) == null ? void 0 : A.lkp_id,
|
9925
|
-
"kg-ret_fld": (
|
10010
|
+
"kg-ret_fld": (I = o.value) == null ? void 0 : I.ret_fld
|
9926
10011
|
}, {
|
9927
10012
|
default: () => [createVNode(Form.Item, {
|
9928
10013
|
name: e.kgVarName,
|
@@ -9930,7 +10015,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9930
10015
|
validateFirst: !0,
|
9931
10016
|
htmlFor: T.value
|
9932
10017
|
}, {
|
9933
|
-
default: () => createVNode(Fragment, null, [
|
10018
|
+
default: () => createVNode(Fragment, null, [M(), P()]),
|
9934
10019
|
label: () => E()
|
9935
10020
|
})]
|
9936
10021
|
});
|
@@ -10327,8 +10412,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10327
10412
|
}) => {
|
10328
10413
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10329
10414
|
return o = watch(c, (d) => {
|
10330
|
-
var m, v, C, g, _, y, b, T, k,
|
10331
|
-
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 = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : 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 = (
|
10415
|
+
var m, v, C, g, _, y, b, T, k, M, E, P;
|
10416
|
+
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 = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : 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 = (M = u == null ? void 0 : u.label_col) != null ? M : 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);
|
10332
10417
|
}, {
|
10333
10418
|
immediate: !0
|
10334
10419
|
}), KgUtil.hideLoading(), !1;
|
@@ -10431,7 +10516,7 @@ function _useFormModel$1() {
|
|
10431
10516
|
}
|
10432
10517
|
const d = r.selectedRow.value;
|
10433
10518
|
u.forEach((m) => {
|
10434
|
-
var C, g, _, y, b, T, k,
|
10519
|
+
var C, g, _, y, b, T, k, M;
|
10435
10520
|
const v = (C = m.var_nam) != null ? C : "";
|
10436
10521
|
switch (c.value[v] = void 0, !0) {
|
10437
10522
|
case t.isCreating.value:
|
@@ -10444,7 +10529,7 @@ function _useFormModel$1() {
|
|
10444
10529
|
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (T = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? T : void 0, "CP");
|
10445
10530
|
break;
|
10446
10531
|
case t.isDeleting.value:
|
10447
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (
|
10532
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
10448
10533
|
break;
|
10449
10534
|
}
|
10450
10535
|
}), a.store.setModel(t.formID, c.value);
|
@@ -10592,67 +10677,67 @@ const getProps$p = () => ({
|
|
10592
10677
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
10593
10678
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10594
10679
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
10595
|
-
l.onSubmitSave(async () => (await
|
10596
|
-
const u = computed(() => s.isDeleting.value && k.value.length === 0 &&
|
10597
|
-
var
|
10680
|
+
l.onSubmitSave(async () => (await oe(), !1)), l.onSubmitCancel(async () => (await se(), !1)), _useFormModel$1();
|
10681
|
+
const u = computed(() => s.isDeleting.value && k.value.length === 0 && M.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)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), k = computed(() => {
|
10682
|
+
var N, G, Y;
|
10598
10683
|
switch (!0) {
|
10599
10684
|
case s.isCreating.value:
|
10600
|
-
return (
|
10685
|
+
return (N = v.value) != null ? N : [];
|
10601
10686
|
case s.isUpdating.value:
|
10602
|
-
return (
|
10687
|
+
return (G = g.value) != null ? G : [];
|
10603
10688
|
case s.isCopying.value:
|
10604
|
-
return (
|
10689
|
+
return (Y = y.value) != null ? Y : [];
|
10605
10690
|
case s.isDeleting.value:
|
10606
10691
|
return [];
|
10607
10692
|
}
|
10608
10693
|
return [];
|
10609
|
-
}),
|
10610
|
-
var
|
10694
|
+
}), M = computed(() => {
|
10695
|
+
var N, G, Y, J;
|
10611
10696
|
switch (!0) {
|
10612
10697
|
case s.isCreating.value:
|
10613
|
-
return (
|
10698
|
+
return (N = C.value) != null ? N : [];
|
10614
10699
|
case s.isUpdating.value:
|
10615
|
-
return (
|
10700
|
+
return (G = _.value) != null ? G : [];
|
10616
10701
|
case s.isCopying.value:
|
10617
|
-
return (
|
10702
|
+
return (Y = b.value) != null ? Y : [];
|
10618
10703
|
case s.isDeleting.value:
|
10619
10704
|
return (J = T.value) != null ? J : [];
|
10620
10705
|
}
|
10621
10706
|
return [];
|
10622
|
-
}), 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), A = computed(() => d.value),
|
10707
|
+
}), 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), A = computed(() => d.value), I = ref({
|
10623
10708
|
kgWidth: 0
|
10624
10709
|
}), w = computed(() => {
|
10625
|
-
var
|
10626
|
-
return !!(u.value ||
|
10627
|
-
}),
|
10628
|
-
var
|
10629
|
-
return u.value ? 398 : (
|
10630
|
-
}),
|
10631
|
-
var
|
10632
|
-
return u.value ? 398 : (
|
10633
|
-
}),
|
10634
|
-
_useResizeObserver$1(
|
10635
|
-
const
|
10710
|
+
var N;
|
10711
|
+
return !!(u.value || F.isFullscreen || ((N = m.value) == null ? void 0 : N.resizable_flg) === 0);
|
10712
|
+
}), L = computed(() => {
|
10713
|
+
var N, G;
|
10714
|
+
return u.value ? 398 : (G = (N = m.value) == null ? void 0 : N.min_width) != null ? G : DEFAULT_MIN_WIDTH;
|
10715
|
+
}), D = computed(() => {
|
10716
|
+
var N, G;
|
10717
|
+
return u.value ? 398 : (G = (N = m.value) == null ? void 0 : N.max_width) != null ? G : DEFAULT_MAX_WIDTH;
|
10718
|
+
}), x = computed(() => u.value ? 398 : I.value.kgWidth), $ = ref(null);
|
10719
|
+
_useResizeObserver$1($);
|
10720
|
+
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({
|
10636
10721
|
isFullscreen: !1
|
10637
10722
|
}), {
|
10638
|
-
getClass:
|
10639
|
-
} = _useClass(e,
|
10640
|
-
getLayout:
|
10723
|
+
getClass: K
|
10724
|
+
} = _useClass(e, F), {
|
10725
|
+
getLayout: B
|
10641
10726
|
} = _useLayout(), {
|
10642
|
-
getDefaultWidth:
|
10727
|
+
getDefaultWidth: z
|
10643
10728
|
} = _useDefaultWidth(), Q = computed(() => {
|
10644
|
-
var
|
10645
|
-
switch (
|
10729
|
+
var N, G, Y;
|
10730
|
+
switch (B.value) {
|
10646
10731
|
case "horizontal":
|
10647
|
-
switch ((
|
10732
|
+
switch ((N = m.value) == null ? void 0 : N.label_col_unit) {
|
10648
10733
|
case KG_WIDTH_UNIT.SPAN:
|
10649
10734
|
return {
|
10650
|
-
span: (
|
10735
|
+
span: (G = m.value) == null ? void 0 : G.label_col
|
10651
10736
|
};
|
10652
10737
|
default:
|
10653
10738
|
return {
|
10654
10739
|
style: {
|
10655
|
-
width: `${(
|
10740
|
+
width: `${(Y = m.value) == null ? void 0 : Y.label_col}px`
|
10656
10741
|
}
|
10657
10742
|
};
|
10658
10743
|
}
|
@@ -10660,13 +10745,13 @@ const getProps$p = () => ({
|
|
10660
10745
|
return;
|
10661
10746
|
}
|
10662
10747
|
}), q = computed(() => {
|
10663
|
-
var
|
10664
|
-
switch (
|
10748
|
+
var N, G;
|
10749
|
+
switch (B.value) {
|
10665
10750
|
case "horizontal":
|
10666
|
-
switch ((
|
10751
|
+
switch ((N = m.value) == null ? void 0 : N.label_col_unit) {
|
10667
10752
|
case KG_WIDTH_UNIT.SPAN:
|
10668
10753
|
return {
|
10669
|
-
span: 24 - ((
|
10754
|
+
span: 24 - ((G = m.value) == null ? void 0 : G.label_col)
|
10670
10755
|
};
|
10671
10756
|
default:
|
10672
10757
|
return;
|
@@ -10675,19 +10760,19 @@ const getProps$p = () => ({
|
|
10675
10760
|
return;
|
10676
10761
|
}
|
10677
10762
|
});
|
10678
|
-
watch(
|
10679
|
-
|
10763
|
+
watch(U, (N, G) => {
|
10764
|
+
N === !0 && Z(), G === !0 && N === !1 && ee();
|
10680
10765
|
}, {
|
10681
10766
|
immediate: !0
|
10682
|
-
}), watch(
|
10683
|
-
|
10767
|
+
}), watch(z, (N) => {
|
10768
|
+
N && (I.value.kgWidth = N);
|
10684
10769
|
}, {
|
10685
10770
|
immediate: !0
|
10686
10771
|
});
|
10687
|
-
function
|
10688
|
-
var
|
10689
|
-
const
|
10690
|
-
|
10772
|
+
function Z() {
|
10773
|
+
var G;
|
10774
|
+
const N = watch(i.model, (Y) => {
|
10775
|
+
Y && Object.keys(Y).length > 0 && (setTimeout(() => N()), i.store.emit(s.formID, "open", {
|
10691
10776
|
isCreating: s.isCreating.value,
|
10692
10777
|
isUpdating: s.isUpdating.value,
|
10693
10778
|
isCopying: s.isCopying.value,
|
@@ -10698,10 +10783,10 @@ const getProps$p = () => ({
|
|
10698
10783
|
}, {
|
10699
10784
|
immediate: !0
|
10700
10785
|
});
|
10701
|
-
((
|
10786
|
+
((G = m.value) == null ? void 0 : G.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
10702
10787
|
}
|
10703
|
-
async function
|
10704
|
-
|
10788
|
+
async function ee() {
|
10789
|
+
I.value.kgWidth = z.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
10705
10790
|
}
|
10706
10791
|
function se() {
|
10707
10792
|
switch (!0) {
|
@@ -10719,8 +10804,8 @@ const getProps$p = () => ({
|
|
10719
10804
|
break;
|
10720
10805
|
}
|
10721
10806
|
}
|
10722
|
-
async function
|
10723
|
-
var
|
10807
|
+
async function oe() {
|
10808
|
+
var N, G;
|
10724
10809
|
try {
|
10725
10810
|
if (await i.store.emit(s.formID, "beforeOk", {
|
10726
10811
|
isCreating: s.isCreating.value,
|
@@ -10733,11 +10818,11 @@ const getProps$p = () => ({
|
|
10733
10818
|
}))
|
10734
10819
|
return;
|
10735
10820
|
try {
|
10736
|
-
await ((
|
10737
|
-
} catch (
|
10738
|
-
KgUtil.throwIfNotFormError(
|
10821
|
+
await ((N = i.formRef.value) == null ? void 0 : N.validate());
|
10822
|
+
} catch (te) {
|
10823
|
+
KgUtil.throwIfNotFormError(te);
|
10739
10824
|
}
|
10740
|
-
if (await ((
|
10825
|
+
if (await ((G = i.formRef.value) == null ? void 0 : G.validate()), await i.store.emit(s.formID, "afterValidate", {
|
10741
10826
|
isCreating: s.isCreating.value,
|
10742
10827
|
isUpdating: s.isUpdating.value,
|
10743
10828
|
isCopying: s.isCopying.value,
|
@@ -10749,26 +10834,26 @@ const getProps$p = () => ({
|
|
10749
10834
|
return;
|
10750
10835
|
switch (!0) {
|
10751
10836
|
case s.isCreating.value:
|
10752
|
-
await
|
10837
|
+
await fe();
|
10753
10838
|
break;
|
10754
10839
|
case s.isUpdating.value:
|
10755
|
-
await
|
10840
|
+
await ce();
|
10756
10841
|
break;
|
10757
10842
|
case s.isCopying.value:
|
10758
|
-
await
|
10843
|
+
await ne();
|
10759
10844
|
break;
|
10760
10845
|
case s.isDeleting.value:
|
10761
|
-
await
|
10846
|
+
await ue();
|
10762
10847
|
break;
|
10763
10848
|
}
|
10764
|
-
} catch (
|
10765
|
-
KgUtil.throwIfNotFormError(
|
10849
|
+
} catch (Y) {
|
10850
|
+
KgUtil.throwIfNotFormError(Y);
|
10766
10851
|
}
|
10767
10852
|
}
|
10768
|
-
async function
|
10769
|
-
var
|
10770
|
-
const
|
10771
|
-
if (!
|
10853
|
+
async function fe() {
|
10854
|
+
var G, Y, J, te, ae, ie;
|
10855
|
+
const N = (G = s.varButtonCreate.value) == null ? void 0 : G.cmd;
|
10856
|
+
if (!N) {
|
10772
10857
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10773
10858
|
VarButton: s.varButtonCreate.value
|
10774
10859
|
});
|
@@ -10776,7 +10861,7 @@ const getProps$p = () => ({
|
|
10776
10861
|
}
|
10777
10862
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
10778
10863
|
try {
|
10779
|
-
let
|
10864
|
+
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));
|
10780
10865
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10781
10866
|
isCreating: s.isCreating.value,
|
10782
10867
|
isUpdating: s.isUpdating.value,
|
@@ -10785,16 +10870,16 @@ const getProps$p = () => ({
|
|
10785
10870
|
row: o.selectedFirstRow.value,
|
10786
10871
|
rows: o.selectedRows.value,
|
10787
10872
|
model: i.model,
|
10788
|
-
params:
|
10789
|
-
data:
|
10873
|
+
params: re,
|
10874
|
+
data: le
|
10790
10875
|
}))
|
10791
10876
|
return;
|
10792
10877
|
await httpClient().request({
|
10793
|
-
method: (ae = (
|
10794
|
-
url:
|
10795
|
-
params:
|
10796
|
-
data:
|
10797
|
-
}), ((
|
10878
|
+
method: (ae = (te = s.varButtonCreate.value) == null ? void 0 : te.cmd_method) != null ? ae : "POST",
|
10879
|
+
url: N,
|
10880
|
+
params: re.value,
|
10881
|
+
data: le.value
|
10882
|
+
}), ((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", {
|
10798
10883
|
isCreating: s.isCreating.value,
|
10799
10884
|
isUpdating: s.isUpdating.value,
|
10800
10885
|
isCopying: s.isCopying.value,
|
@@ -10802,16 +10887,16 @@ const getProps$p = () => ({
|
|
10802
10887
|
row: o.selectedFirstRow.value,
|
10803
10888
|
model: i.model
|
10804
10889
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
10805
|
-
} catch (
|
10806
|
-
console.error(
|
10890
|
+
} catch (re) {
|
10891
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10807
10892
|
} finally {
|
10808
10893
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
10809
10894
|
}
|
10810
10895
|
}
|
10811
|
-
async function
|
10812
|
-
var
|
10813
|
-
const
|
10814
|
-
if (!
|
10896
|
+
async function ce() {
|
10897
|
+
var G, Y, J, te, ae, ie;
|
10898
|
+
const N = (G = s.varButtonUpdate.value) == null ? void 0 : G.cmd;
|
10899
|
+
if (!N) {
|
10815
10900
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10816
10901
|
VarButton: s.varButtonUpdate.value
|
10817
10902
|
});
|
@@ -10819,7 +10904,7 @@ const getProps$p = () => ({
|
|
10819
10904
|
}
|
10820
10905
|
try {
|
10821
10906
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
10822
|
-
let
|
10907
|
+
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));
|
10823
10908
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10824
10909
|
isCreating: s.isCreating.value,
|
10825
10910
|
isUpdating: s.isUpdating.value,
|
@@ -10828,16 +10913,16 @@ const getProps$p = () => ({
|
|
10828
10913
|
row: o.selectedRow.value,
|
10829
10914
|
rows: o.selectedRows.value,
|
10830
10915
|
model: i.model,
|
10831
|
-
params:
|
10832
|
-
data:
|
10916
|
+
params: re,
|
10917
|
+
data: le
|
10833
10918
|
}))
|
10834
10919
|
return;
|
10835
10920
|
await httpClient().request({
|
10836
|
-
method: (ae = (
|
10837
|
-
url:
|
10838
|
-
params:
|
10839
|
-
data:
|
10840
|
-
}), ((
|
10921
|
+
method: (ae = (te = s.varButtonUpdate.value) == null ? void 0 : te.cmd_method) != null ? ae : "POST",
|
10922
|
+
url: N,
|
10923
|
+
params: re.value,
|
10924
|
+
data: le.value
|
10925
|
+
}), ((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", {
|
10841
10926
|
isCreating: s.isCreating.value,
|
10842
10927
|
isUpdating: s.isUpdating.value,
|
10843
10928
|
isCopying: s.isCopying.value,
|
@@ -10845,16 +10930,16 @@ const getProps$p = () => ({
|
|
10845
10930
|
row: o.selectedFirstRow.value,
|
10846
10931
|
model: i.model
|
10847
10932
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
10848
|
-
} catch (
|
10849
|
-
console.error(
|
10933
|
+
} catch (re) {
|
10934
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10850
10935
|
} finally {
|
10851
10936
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
10852
10937
|
}
|
10853
10938
|
}
|
10854
|
-
async function
|
10855
|
-
var
|
10856
|
-
const
|
10857
|
-
if (!
|
10939
|
+
async function ne() {
|
10940
|
+
var G, Y, J, te, ae, ie, re, le;
|
10941
|
+
const N = (G = s.varButtonCopy.value) == null ? void 0 : G.cmd;
|
10942
|
+
if (!N) {
|
10858
10943
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10859
10944
|
VarButton: s.varButtonCopy.value
|
10860
10945
|
});
|
@@ -10862,8 +10947,8 @@ const getProps$p = () => ({
|
|
10862
10947
|
}
|
10863
10948
|
try {
|
10864
10949
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
10865
|
-
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10866
|
-
...(
|
10950
|
+
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({
|
10951
|
+
...(te = o.selectedFirstRow.value) != null ? te : {},
|
10867
10952
|
...toRaw(i.model.value)
|
10868
10953
|
}, s.formID, r));
|
10869
10954
|
if (((ae = m.value) == null ? void 0 : ae.cpy_clear_id_flg) !== 0 && delete pe.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
@@ -10879,11 +10964,11 @@ const getProps$p = () => ({
|
|
10879
10964
|
}))
|
10880
10965
|
return;
|
10881
10966
|
await httpClient().request({
|
10882
|
-
method: (
|
10883
|
-
url:
|
10967
|
+
method: (re = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd_method) != null ? re : "POST",
|
10968
|
+
url: N,
|
10884
10969
|
params: ge.value,
|
10885
10970
|
data: pe.value
|
10886
|
-
}), ((
|
10971
|
+
}), ((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", {
|
10887
10972
|
isCreating: s.isCreating.value,
|
10888
10973
|
isUpdating: s.isUpdating.value,
|
10889
10974
|
isCopying: s.isCopying.value,
|
@@ -10897,10 +10982,10 @@ const getProps$p = () => ({
|
|
10897
10982
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
10898
10983
|
}
|
10899
10984
|
}
|
10900
|
-
async function
|
10901
|
-
var
|
10902
|
-
const
|
10903
|
-
if (!
|
10985
|
+
async function ue() {
|
10986
|
+
var G, Y, J, te, ae, ie;
|
10987
|
+
const N = (G = s.varButtonDelete.value) == null ? void 0 : G.cmd;
|
10988
|
+
if (!N) {
|
10904
10989
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10905
10990
|
VarButton: s.varButtonDelete.value
|
10906
10991
|
});
|
@@ -10908,12 +10993,12 @@ const getProps$p = () => ({
|
|
10908
10993
|
}
|
10909
10994
|
try {
|
10910
10995
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
10911
|
-
let
|
10912
|
-
ids: (J = (
|
10996
|
+
let re = ref({
|
10997
|
+
ids: (J = (Y = o.selectedRows.value) == null ? void 0 : Y.map((pe) => {
|
10913
10998
|
var me, _e, he;
|
10914
10999
|
return (he = pe[(_e = (me = s.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
|
10915
11000
|
})) != null ? J : []
|
10916
|
-
}),
|
11001
|
+
}), le = ref({});
|
10917
11002
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10918
11003
|
isCreating: s.isCreating.value,
|
10919
11004
|
isUpdating: s.isUpdating.value,
|
@@ -10922,18 +11007,18 @@ const getProps$p = () => ({
|
|
10922
11007
|
row: o.selectedFirstRow.value,
|
10923
11008
|
rows: o.selectedRows.value,
|
10924
11009
|
model: i.model,
|
10925
|
-
params:
|
10926
|
-
data:
|
11010
|
+
params: re,
|
11011
|
+
data: le
|
10927
11012
|
}))
|
10928
11013
|
return;
|
10929
11014
|
await httpClient().request({
|
10930
|
-
method: (ae = (
|
10931
|
-
url:
|
10932
|
-
params:
|
10933
|
-
data:
|
11015
|
+
method: (ae = (te = s.varButtonDelete.value) == null ? void 0 : te.cmd_method) != null ? ae : "DELETE",
|
11016
|
+
url: N,
|
11017
|
+
params: re.value,
|
11018
|
+
data: le.value
|
10934
11019
|
}, {
|
10935
11020
|
joinParamsToUrl: !0
|
10936
|
-
}), ((
|
11021
|
+
}), ((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", {
|
10937
11022
|
isCreating: s.isCreating.value,
|
10938
11023
|
isUpdating: s.isUpdating.value,
|
10939
11024
|
isCopying: s.isCopying.value,
|
@@ -10941,52 +11026,52 @@ const getProps$p = () => ({
|
|
10941
11026
|
row: o.selectedFirstRow.value,
|
10942
11027
|
model: i.model
|
10943
11028
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
10944
|
-
} catch (
|
10945
|
-
console.error(
|
11029
|
+
} catch (re) {
|
11030
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10946
11031
|
} finally {
|
10947
11032
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
10948
11033
|
}
|
10949
11034
|
}
|
10950
|
-
function de(
|
10951
|
-
var
|
10952
|
-
const
|
10953
|
-
return isFunction$2(
|
10954
|
-
kgVarName:
|
11035
|
+
function de(N) {
|
11036
|
+
var Y, J;
|
11037
|
+
const G = (J = (Y = a == null ? void 0 : a.KgSubmit) == null ? void 0 : Y["KgForm.Item"]) == null ? void 0 : J[N.var_nam];
|
11038
|
+
return isFunction$2(G) ? createVNode(KgForm.Item, {
|
11039
|
+
kgVarName: N.var_nam,
|
10955
11040
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10956
|
-
kgRules: i.rules.value[
|
10957
|
-
onKgSubmit:
|
11041
|
+
kgRules: i.rules.value[N.var_nam],
|
11042
|
+
onKgSubmit: oe
|
10958
11043
|
}, {
|
10959
11044
|
control: ({
|
10960
|
-
varName:
|
11045
|
+
varName: te,
|
10961
11046
|
props: ae,
|
10962
|
-
model:
|
10963
|
-
varVariableConfig:
|
10964
|
-
varProfileDetail:
|
11047
|
+
model: ie,
|
11048
|
+
varVariableConfig: re,
|
11049
|
+
varProfileDetail: le,
|
10965
11050
|
varSubmitField: ge
|
10966
|
-
}) =>
|
10967
|
-
varName:
|
11051
|
+
}) => G({
|
11052
|
+
varName: te,
|
10968
11053
|
props: ae,
|
10969
|
-
model:
|
10970
|
-
varVariableConfig:
|
10971
|
-
varProfileDetail:
|
11054
|
+
model: ie,
|
11055
|
+
varVariableConfig: re,
|
11056
|
+
varProfileDetail: le,
|
10972
11057
|
varSubmitField: ge
|
10973
11058
|
})
|
10974
11059
|
}) : createVNode(KgForm.Item, {
|
10975
|
-
kgVarName:
|
11060
|
+
kgVarName: N.var_nam,
|
10976
11061
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10977
|
-
kgRules: i.rules.value[
|
10978
|
-
onKgSubmit:
|
11062
|
+
kgRules: i.rules.value[N.var_nam],
|
11063
|
+
onKgSubmit: oe
|
10979
11064
|
}, null);
|
10980
11065
|
}
|
10981
11066
|
function R() {
|
10982
|
-
let
|
11067
|
+
let N, G;
|
10983
11068
|
return createVNode(KgResizable, {
|
10984
11069
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10985
|
-
kgMinWidth:
|
10986
|
-
kgMaxWidth:
|
10987
|
-
kgWidth:
|
11070
|
+
kgMinWidth: L.value,
|
11071
|
+
kgMaxWidth: D.value,
|
11072
|
+
kgWidth: x.value,
|
10988
11073
|
kgDisabled: w.value,
|
10989
|
-
"onUpdate:kgWidth": (
|
11074
|
+
"onUpdate:kgWidth": (Y) => I.value.kgWidth = Y
|
10990
11075
|
}, {
|
10991
11076
|
default: () => [createVNode(Spin, {
|
10992
11077
|
spinning: d.value
|
@@ -10994,20 +11079,20 @@ const getProps$p = () => ({
|
|
10994
11079
|
default: () => [createVNode(KgForm, {
|
10995
11080
|
ref: i.formRef,
|
10996
11081
|
model: i.model.value,
|
10997
|
-
layout:
|
11082
|
+
layout: B.value,
|
10998
11083
|
labelCol: Q.value,
|
10999
11084
|
wrapperCol: q.value
|
11000
11085
|
}, {
|
11001
11086
|
default: () => [createVNode("div", {
|
11002
|
-
ref:
|
11087
|
+
ref: $
|
11003
11088
|
}, [k.value.length > 0 && createVNode(Row, {
|
11004
11089
|
gutter: 12
|
11005
|
-
}, _isSlot$8(
|
11006
|
-
default: () => [
|
11007
|
-
}), k.value.length > 0 &&
|
11090
|
+
}, _isSlot$8(N = k.value.map(de)) ? N : {
|
11091
|
+
default: () => [N]
|
11092
|
+
}), k.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
11008
11093
|
gutter: 12
|
11009
|
-
}, _isSlot$8(
|
11010
|
-
default: () => [
|
11094
|
+
}, _isSlot$8(G = M.value.map(de)) ? G : {
|
11095
|
+
default: () => [G]
|
11011
11096
|
}), u.value && createVNode("div", {
|
11012
11097
|
style: "text-align: center; padding: 6px 0 12px;"
|
11013
11098
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11015,34 +11100,34 @@ const getProps$p = () => ({
|
|
11015
11100
|
})]
|
11016
11101
|
});
|
11017
11102
|
}
|
11018
|
-
function
|
11019
|
-
let
|
11103
|
+
function H() {
|
11104
|
+
let N, G;
|
11020
11105
|
return createVNode("div", null, [createVNode(Button, {
|
11021
11106
|
type: "primary",
|
11022
11107
|
ghost: !P.value,
|
11023
11108
|
disabled: P.value,
|
11024
11109
|
onClick: se
|
11025
|
-
}, _isSlot$8(
|
11026
|
-
default: () => [
|
11110
|
+
}, _isSlot$8(N = n.t("kg.cancel")) ? N : {
|
11111
|
+
default: () => [N]
|
11027
11112
|
}), createVNode(Button, {
|
11028
11113
|
type: "primary",
|
11029
11114
|
disabled: A.value,
|
11030
11115
|
loading: E.value,
|
11031
11116
|
danger: !!s.isDeleting.value,
|
11032
|
-
onClick:
|
11033
|
-
}, _isSlot$8(
|
11034
|
-
default: () => [
|
11117
|
+
onClick: oe
|
11118
|
+
}, _isSlot$8(G = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? G : {
|
11119
|
+
default: () => [G]
|
11035
11120
|
})]);
|
11036
11121
|
}
|
11037
|
-
function
|
11122
|
+
function X() {
|
11038
11123
|
return createVNode("div", {
|
11039
|
-
title:
|
11040
|
-
}, [
|
11124
|
+
title: V.title.value
|
11125
|
+
}, [V.title.value]);
|
11041
11126
|
}
|
11042
|
-
function
|
11127
|
+
function W() {
|
11043
11128
|
return createVNode(KgSubmitHeader, {
|
11044
|
-
isFullscreen:
|
11045
|
-
"onUpdate:isFullscreen": (
|
11129
|
+
isFullscreen: F.isFullscreen,
|
11130
|
+
"onUpdate:isFullscreen": (N) => F.isFullscreen = N,
|
11046
11131
|
kgShowFullscreenButton: !u.value,
|
11047
11132
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11048
11133
|
onKgCancel: se
|
@@ -11051,20 +11136,20 @@ const getProps$p = () => ({
|
|
11051
11136
|
return onUnmounted(() => {
|
11052
11137
|
i.store.dispose(s.formID);
|
11053
11138
|
}), () => createVNode(Drawer, {
|
11054
|
-
visible:
|
11139
|
+
visible: U.value,
|
11055
11140
|
placement: "right",
|
11056
11141
|
closable: !1,
|
11057
11142
|
maskClosable: !1,
|
11058
11143
|
keyboard: !1,
|
11059
11144
|
destroyOnClose: !0,
|
11060
|
-
width:
|
11061
|
-
class:
|
11145
|
+
width: O.value,
|
11146
|
+
class: K.value,
|
11062
11147
|
"kg-frm_id": s.formID
|
11063
11148
|
}, {
|
11064
|
-
title:
|
11065
|
-
extra:
|
11149
|
+
title: X,
|
11150
|
+
extra: W,
|
11066
11151
|
default: R,
|
11067
|
-
footer:
|
11152
|
+
footer: H
|
11068
11153
|
});
|
11069
11154
|
}
|
11070
11155
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11334,31 +11419,31 @@ const getProps$n = () => ({
|
|
11334
11419
|
var k;
|
11335
11420
|
try {
|
11336
11421
|
await ((k = C.value) == null ? void 0 : k.validate());
|
11337
|
-
} catch (
|
11338
|
-
KgUtil.throwIfNotFormError(
|
11422
|
+
} catch (M) {
|
11423
|
+
KgUtil.throwIfNotFormError(M);
|
11339
11424
|
}
|
11340
11425
|
return !1;
|
11341
11426
|
});
|
11342
11427
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11343
|
-
var k,
|
11344
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((
|
11428
|
+
var k, M, E, P, A, I;
|
11429
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[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 && ((A = c.value) == null ? void 0 : A.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
|
11345
11430
|
}), d = 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]) === ((
|
11431
|
+
var k, M;
|
11432
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((M = o.selectedRow.value) == null ? void 0 : M[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);
|
11348
11433
|
}), m = computed(() => {
|
11349
|
-
var
|
11434
|
+
var M, E;
|
11350
11435
|
let k = "kg-table-td";
|
11351
|
-
return ((
|
11436
|
+
return ((M = i.value) == null ? void 0 : M.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;
|
11352
11437
|
}), v = computed(() => {
|
11353
|
-
var
|
11438
|
+
var M, E, P, A;
|
11354
11439
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11355
11440
|
return "";
|
11356
11441
|
let k = e.kgValue;
|
11357
|
-
switch ((
|
11442
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
11358
11443
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11359
11444
|
{
|
11360
|
-
const
|
11361
|
-
k = (A = (P = e.kgRow) == null ? void 0 : P[
|
11445
|
+
const I = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
|
11446
|
+
k = (A = (P = e.kgRow) == null ? void 0 : P[I.dscFieldName || `${e.kgVarName}_dsc`]) != null ? A : e.kgValue;
|
11362
11447
|
}
|
11363
11448
|
break;
|
11364
11449
|
}
|
@@ -11366,9 +11451,9 @@ const getProps$n = () => ({
|
|
11366
11451
|
`)), k;
|
11367
11452
|
}), C = ref(null);
|
11368
11453
|
function g(k) {
|
11369
|
-
var
|
11454
|
+
var M, E, P;
|
11370
11455
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11371
|
-
switch ((
|
11456
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
11372
11457
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11373
11458
|
k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
|
11374
11459
|
break;
|
@@ -11408,35 +11493,35 @@ const getProps$n = () => ({
|
|
11408
11493
|
});
|
11409
11494
|
}
|
11410
11495
|
function b() {
|
11411
|
-
var k,
|
11496
|
+
var k, M, E, P, A, I, w, L, D, x;
|
11412
11497
|
if (u.value)
|
11413
11498
|
return y();
|
11414
11499
|
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
11415
11500
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11416
|
-
const
|
11501
|
+
const $ = KgUtil.tryParseJSON((M = i.value) == null ? void 0 : M.display_type_properties);
|
11417
11502
|
return createVNode(KgYesOrNo, {
|
11418
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E =
|
11419
|
-
kgNilAsFalse:
|
11503
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = $.yValue) != null ? E : 1),
|
11504
|
+
kgNilAsFalse: $.nilAsFalse
|
11420
11505
|
}, null);
|
11421
11506
|
}
|
11422
11507
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
11423
|
-
const
|
11424
|
-
if (
|
11425
|
-
const
|
11426
|
-
return
|
11427
|
-
color: (A =
|
11428
|
-
}, _isSlot$7(
|
11429
|
-
default: () => [
|
11508
|
+
const $ = KgUtil.tryParseJSON((P = i.value) == null ? void 0 : P.display_type_properties), V = isArrayLike($) && $.find((O) => O.value === e.kgValue);
|
11509
|
+
if (V) {
|
11510
|
+
const O = n.t(V.varName).value;
|
11511
|
+
return O ? createVNode(Tag, {
|
11512
|
+
color: (A = V.color) != null ? A : "default"
|
11513
|
+
}, _isSlot$7(O) ? O : {
|
11514
|
+
default: () => [O]
|
11430
11515
|
}) : T();
|
11431
11516
|
} else
|
11432
11517
|
return T();
|
11433
11518
|
}
|
11434
11519
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11435
|
-
const
|
11436
|
-
if (
|
11437
|
-
const
|
11520
|
+
const $ = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
11521
|
+
if ($.isTag && isArrayLike($.tagColors)) {
|
11522
|
+
const V = $.tagColors.find((O) => O.value === e.kgValue);
|
11438
11523
|
return v.value ? createVNode(Tag, {
|
11439
|
-
color: (w =
|
11524
|
+
color: (w = V == null ? void 0 : V.color) != null ? w : "default"
|
11440
11525
|
}, {
|
11441
11526
|
default: () => [v.value]
|
11442
11527
|
}) : T();
|
@@ -11444,11 +11529,11 @@ const getProps$n = () => ({
|
|
11444
11529
|
return T();
|
11445
11530
|
}
|
11446
11531
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11447
|
-
const
|
11532
|
+
const $ = KgUtil.tryParseJSON((L = i.value) == null ? void 0 : L.display_type_properties);
|
11448
11533
|
return createVNode(KgProgressA, {
|
11449
|
-
kgTextWidth:
|
11450
|
-
kgLeft: (
|
11451
|
-
kgRight: (
|
11534
|
+
kgTextWidth: $.textWidth,
|
11535
|
+
kgLeft: (D = e.kgRow) == null ? void 0 : D[$.leftColumn],
|
11536
|
+
kgRight: (x = e.kgRow) == null ? void 0 : x[$.rightColumn]
|
11452
11537
|
}, null);
|
11453
11538
|
}
|
11454
11539
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -11462,16 +11547,17 @@ const getProps$n = () => ({
|
|
11462
11547
|
}
|
11463
11548
|
}
|
11464
11549
|
function T(k = !1) {
|
11465
|
-
let
|
11466
|
-
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (
|
11550
|
+
let M = "";
|
11551
|
+
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
11467
11552
|
innerHTML: v.value,
|
11468
|
-
class:
|
11553
|
+
class: M,
|
11469
11554
|
onClick: g
|
11470
11555
|
}, null);
|
11471
11556
|
}
|
11472
11557
|
return () => createVNode("div", {
|
11473
11558
|
class: m.value,
|
11474
|
-
title: v.value
|
11559
|
+
title: v.value,
|
11560
|
+
"kg-value": e.kgValue
|
11475
11561
|
}, [b()]);
|
11476
11562
|
}
|
11477
11563
|
}), KgTable_Info = "";
|
@@ -11561,8 +11647,8 @@ const getProps$m = () => ({
|
|
11561
11647
|
}) => {
|
11562
11648
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11563
11649
|
return l = watch(i, (u) => {
|
11564
|
-
var d, m, v, C, g, _, y, b, T, k,
|
11565
|
-
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 = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[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 = (
|
11650
|
+
var d, m, v, C, g, _, y, b, T, k, M;
|
11651
|
+
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 = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[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 = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11566
11652
|
}, {
|
11567
11653
|
immediate: !0
|
11568
11654
|
}), KgUtil.hideLoading(), !1;
|
@@ -11833,8 +11919,8 @@ const getProps$h = () => ({
|
|
11833
11919
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
11834
11920
|
}, [(T = n.currentVarGridDetails.value) == null ? void 0 : T.map((k) => createVNode("li", {
|
11835
11921
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11836
|
-
onClick: (
|
11837
|
-
|
11922
|
+
onClick: (M) => {
|
11923
|
+
M.preventDefault(), M.stopPropagation(), v(k);
|
11838
11924
|
},
|
11839
11925
|
style: {
|
11840
11926
|
display: l(k, o.value) ? "flex" : "none"
|
@@ -11846,8 +11932,8 @@ const getProps$h = () => ({
|
|
11846
11932
|
}, {
|
11847
11933
|
default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
|
11848
11934
|
}), createVNode(HolderOutlined$1, {
|
11849
|
-
onClick: (
|
11850
|
-
|
11935
|
+
onClick: (M) => {
|
11936
|
+
M.preventDefault(), M.stopPropagation();
|
11851
11937
|
}
|
11852
11938
|
}, null)]))])]);
|
11853
11939
|
},
|
@@ -11861,9 +11947,9 @@ const getProps$h = () => ({
|
|
11861
11947
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
11862
11948
|
}, {
|
11863
11949
|
default: () => {
|
11864
|
-
var
|
11950
|
+
var M;
|
11865
11951
|
let T, k;
|
11866
|
-
return createVNode(Fragment, null, [(
|
11952
|
+
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
|
11867
11953
|
var P;
|
11868
11954
|
return createVNode(Menu.Item, {
|
11869
11955
|
key: E.id,
|
@@ -11953,9 +12039,9 @@ function _useColumns(e) {
|
|
11953
12039
|
if (g.fix_right_flg === 1)
|
11954
12040
|
return "right";
|
11955
12041
|
}
|
11956
|
-
function
|
11957
|
-
var A,
|
11958
|
-
return !((
|
12042
|
+
function M() {
|
12043
|
+
var A, I, w, L;
|
12044
|
+
return !((I = (A = t == null ? void 0 : t.value) == null ? void 0 : A.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);
|
11959
12045
|
}
|
11960
12046
|
function E() {
|
11961
12047
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
@@ -11969,7 +12055,7 @@ function _useColumns(e) {
|
|
11969
12055
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11970
12056
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11971
12057
|
fixed: k(),
|
11972
|
-
sorter:
|
12058
|
+
sorter: M(),
|
11973
12059
|
align: E(),
|
11974
12060
|
defaultSortOrder: T(),
|
11975
12061
|
customHeaderCell: () => ({
|
@@ -11979,11 +12065,11 @@ function _useColumns(e) {
|
|
11979
12065
|
}),
|
11980
12066
|
customCell: (A) => {
|
11981
12067
|
var w;
|
11982
|
-
const
|
12068
|
+
const I = r.store.getVarSubmitField(r.formID, _);
|
11983
12069
|
return {
|
11984
12070
|
"kg-frm_id": r.formID,
|
11985
12071
|
"kg-var_nam": _,
|
11986
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && A[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (
|
12072
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && A[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" : ""
|
11987
12073
|
};
|
11988
12074
|
}
|
11989
12075
|
};
|
@@ -12084,7 +12170,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12084
12170
|
kgDisabled: {
|
12085
12171
|
type: Boolean,
|
12086
12172
|
default: void 0
|
12087
|
-
}
|
12173
|
+
},
|
12174
|
+
kgRowClassName: Function
|
12088
12175
|
}), KgTable = defineComponent({
|
12089
12176
|
name: "KgTable",
|
12090
12177
|
props: getProps$g(),
|
@@ -12096,26 +12183,26 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12096
12183
|
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();
|
12097
12184
|
i.onSearch(async ({
|
12098
12185
|
resetPageIndex: R
|
12099
|
-
}) => (
|
12186
|
+
}) => (B(R), !1)), i.onReset(async () => (B(!0), !1)), u.store.$onAction(async ({
|
12100
12187
|
name: R,
|
12101
|
-
args:
|
12188
|
+
args: H
|
12102
12189
|
}) => {
|
12103
12190
|
switch (R) {
|
12104
12191
|
case "setRowSelect":
|
12105
|
-
if (
|
12106
|
-
const
|
12192
|
+
if (H[0] === o.formID) {
|
12193
|
+
const X = H[1], W = H[2], N = X[u.id.value];
|
12107
12194
|
switch (!0) {
|
12108
|
-
case (
|
12109
|
-
|
12195
|
+
case (W && !x.value.includes(N)):
|
12196
|
+
z([...x.value, N]);
|
12110
12197
|
break;
|
12111
|
-
case (!
|
12112
|
-
|
12198
|
+
case (!W && x.value.includes(N)):
|
12199
|
+
z(without$1(x.value, N));
|
12113
12200
|
break;
|
12114
12201
|
}
|
12115
12202
|
}
|
12116
12203
|
break;
|
12117
12204
|
case "clearDatas":
|
12118
|
-
|
12205
|
+
H[0] === o.formID && (D.value = [], $.total = 0, K(), v.value = []);
|
12119
12206
|
break;
|
12120
12207
|
}
|
12121
12208
|
});
|
@@ -12127,239 +12214,239 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12127
12214
|
} = _useLoading(), y = ref(null);
|
12128
12215
|
_useResizeObserver(y), _useDragColumn(y, C);
|
12129
12216
|
const b = computed(() => {
|
12130
|
-
var R,
|
12131
|
-
return (
|
12217
|
+
var R, H;
|
12218
|
+
return (H = (R = o.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? H : null;
|
12132
12219
|
}), T = computed(() => {
|
12133
|
-
var
|
12220
|
+
var H, X, W, N, G, Y, J;
|
12134
12221
|
let R = {
|
12135
|
-
pageNo:
|
12136
|
-
pageSize:
|
12137
|
-
...
|
12138
|
-
...(
|
12222
|
+
pageNo: $.pageIndex,
|
12223
|
+
pageSize: $.pageSize,
|
12224
|
+
...V,
|
12225
|
+
...(X = (H = i.model) == null ? void 0 : H.value) != null ? X : {}
|
12139
12226
|
};
|
12140
12227
|
return o.varButtonSearch.value && (R = {
|
12141
12228
|
...R,
|
12142
|
-
...KgVarUtil.parseCommandParameter((
|
12143
|
-
}), (
|
12229
|
+
...KgVarUtil.parseCommandParameter((N = (W = o.varButtonSearch.value) == null ? void 0 : W.cmd_prm) != null ? N : "")
|
12230
|
+
}), (G = o.varGridConfig.value) != null && G.cmd_prm && (R = {
|
12144
12231
|
...R,
|
12145
|
-
...KgVarUtil.parseCommandParameter((
|
12232
|
+
...KgVarUtil.parseCommandParameter((Y = o.varGridConfig.value.cmd_prm) != null ? Y : "")
|
12146
12233
|
}), ((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;
|
12147
12234
|
}), k = computed(() => {
|
12148
|
-
var R,
|
12149
|
-
if (!isNil((
|
12150
|
-
return (
|
12235
|
+
var R, H, X, W;
|
12236
|
+
if (!isNil((H = (R = s == null ? void 0 : s.value) == null ? void 0 : R.KgTable) == null ? void 0 : H.kgDisabled))
|
12237
|
+
return (W = (X = s == null ? void 0 : s.value) == null ? void 0 : X.KgTable) == null ? void 0 : W.kgDisabled;
|
12151
12238
|
if (!isNil(e.kgDisabled))
|
12152
12239
|
return e.kgDisabled;
|
12153
|
-
}),
|
12240
|
+
}), M = 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(() => {
|
12154
12241
|
var R;
|
12155
12242
|
return !!((R = n == null ? void 0 : n.KgTable) != null && R.expandedRowRender);
|
12156
12243
|
}), A = computed(() => {
|
12157
12244
|
var R;
|
12158
12245
|
return ((R = o.varGridConfig.value) == null ? void 0 : R.show_check_column_flg) === 1;
|
12159
|
-
}),
|
12246
|
+
}), I = computed(() => {
|
12160
12247
|
if (!!A.value)
|
12161
12248
|
return {
|
12162
12249
|
fixed: "left",
|
12163
12250
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
12164
12251
|
hideSelectAll: !u.isMultiSelect.value,
|
12165
|
-
selectedRowKeys:
|
12252
|
+
selectedRowKeys: x,
|
12166
12253
|
preserveSelectedRowKeys: !1,
|
12167
12254
|
getCheckboxProps: (R) => ({
|
12168
12255
|
disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value
|
12169
12256
|
}),
|
12170
12257
|
onSelect: (R) => Q(R),
|
12171
|
-
onChange: (R) => u.isMultiSelect.value &&
|
12258
|
+
onChange: (R) => u.isMultiSelect.value && z(R)
|
12172
12259
|
};
|
12173
12260
|
}), w = computed(() => {
|
12174
|
-
var
|
12261
|
+
var H;
|
12175
12262
|
let R = "kg-table";
|
12176
|
-
return ((
|
12177
|
-
}),
|
12178
|
-
var
|
12263
|
+
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;
|
12264
|
+
}), L = computed(() => {
|
12265
|
+
var H;
|
12179
12266
|
let R = "kg-table-bottom";
|
12180
|
-
return ((
|
12181
|
-
}),
|
12267
|
+
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
|
12268
|
+
}), D = ref([]), x = (de = u.store.getSelectedRowKeys(o.formID)) != null ? de : ref([]), $ = reactive({
|
12182
12269
|
pageIndex: 1,
|
12183
12270
|
pageSize: 10,
|
12184
12271
|
total: 0
|
12185
|
-
}),
|
12272
|
+
}), V = reactive({
|
12186
12273
|
column: void 0,
|
12187
12274
|
order: void 0
|
12188
|
-
}),
|
12189
|
-
R && (setTimeout(() =>
|
12275
|
+
}), O = watch(u.pageSizeOption, (R) => {
|
12276
|
+
R && (setTimeout(() => O()), $.pageSize = R, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
|
12190
12277
|
}, {
|
12191
12278
|
immediate: !0
|
12192
12279
|
});
|
12193
12280
|
watch(u.pageSizeOptions, (R) => {
|
12194
|
-
R.length > 0 && !R.includes(
|
12195
|
-
}), watch([b, u.isReadAutomatically, i.isReady], ([R,
|
12196
|
-
R &&
|
12281
|
+
R.length > 0 && !R.includes($.pageSize) && ($.pageSize = u.pageSizeOption.value);
|
12282
|
+
}), watch([b, u.isReadAutomatically, i.isReady], ([R, H, X]) => {
|
12283
|
+
R && H && X && !u.store.getIsRetrieved(o.formID) && B(!0);
|
12197
12284
|
}, {
|
12198
12285
|
immediate: !0
|
12199
|
-
}), watch(o.isCreating, (R,
|
12200
|
-
R === !0 ?
|
12286
|
+
}), watch(o.isCreating, (R, H) => {
|
12287
|
+
R === !0 ? U() : R === !1 && H === !0 && F();
|
12201
12288
|
}), onUnmounted(() => {
|
12202
12289
|
u.store.dispose(o.formID);
|
12203
12290
|
});
|
12204
|
-
function
|
12291
|
+
function U() {
|
12205
12292
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
12206
12293
|
const R = {
|
12207
12294
|
[u.id.value]: KG_TABLE_TEMP_ID
|
12208
12295
|
};
|
12209
|
-
|
12296
|
+
D.value = [R, ...D.value], u.store.setSelectedRows(o.formID, [R]);
|
12210
12297
|
}
|
12211
12298
|
}
|
12212
|
-
function
|
12213
|
-
const R =
|
12214
|
-
R && (
|
12299
|
+
function F() {
|
12300
|
+
const R = D.value.find((H) => H[u.id.value] === KG_TABLE_TEMP_ID);
|
12301
|
+
R && (D.value = without$1(D.value, R), u.store.setSelectedRows(o.formID, []));
|
12215
12302
|
}
|
12216
|
-
function
|
12217
|
-
var
|
12218
|
-
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
12219
|
-
if (!
|
12303
|
+
function K(R, H) {
|
12304
|
+
var X;
|
12305
|
+
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!I.value) {
|
12306
|
+
if (!H) {
|
12220
12307
|
u.store.setSelectedRows(o.formID, []);
|
12221
12308
|
return;
|
12222
12309
|
}
|
12223
12310
|
switch (R == null ? void 0 : R.detail) {
|
12224
12311
|
case 1:
|
12225
|
-
switch ((
|
12312
|
+
switch ((X = o.varGridConfig.value) == null ? void 0 : X.operation_on_row_click) {
|
12226
12313
|
case 0:
|
12227
12314
|
break;
|
12228
12315
|
case 1:
|
12229
|
-
u.store.setSelectedRows(o.formID, [
|
12316
|
+
u.store.setSelectedRows(o.formID, [H]);
|
12230
12317
|
break;
|
12231
12318
|
}
|
12232
12319
|
break;
|
12233
12320
|
case 2:
|
12234
12321
|
u.store.emit(o.formID, "rowDoubleClick", {
|
12235
|
-
row:
|
12322
|
+
row: H
|
12236
12323
|
});
|
12237
12324
|
break;
|
12238
12325
|
}
|
12239
12326
|
}
|
12240
12327
|
}
|
12241
|
-
function
|
12328
|
+
function B(R = !1) {
|
12242
12329
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
12243
|
-
const
|
12244
|
-
|
12330
|
+
const H = watch(m, (W) => {
|
12331
|
+
W && (setTimeout(() => H()), X());
|
12245
12332
|
}, {
|
12246
12333
|
immediate: !0
|
12247
12334
|
});
|
12248
|
-
async function
|
12249
|
-
var
|
12335
|
+
async function X() {
|
12336
|
+
var W, N, G;
|
12250
12337
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !b.value) {
|
12251
12338
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12252
12339
|
VarButton: o.varButtonSearch.value
|
12253
12340
|
});
|
12254
12341
|
return;
|
12255
12342
|
}
|
12256
|
-
R && (
|
12343
|
+
R && ($.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
12257
12344
|
try {
|
12258
|
-
const
|
12345
|
+
const Y = KgUtil.parseParams(T.value, u.profileFormID.value, a), J = ref({});
|
12259
12346
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
12260
|
-
params:
|
12347
|
+
params: Y,
|
12261
12348
|
response: J
|
12262
12349
|
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : J.value = await httpClient().request({
|
12263
12350
|
method: "GET",
|
12264
12351
|
url: b.value,
|
12265
|
-
params:
|
12352
|
+
params: Y
|
12266
12353
|
}, {
|
12267
12354
|
successMessageMode: "none"
|
12268
12355
|
});
|
12269
|
-
let
|
12356
|
+
let te = ref([]), ae = ref(0);
|
12270
12357
|
switch (!0) {
|
12271
12358
|
case !J.value:
|
12272
|
-
|
12359
|
+
te.value = [], ae.value = 0;
|
12273
12360
|
break;
|
12274
12361
|
case isArrayLike(J.value):
|
12275
|
-
|
12362
|
+
te.value = J.value, ae.value = J.value.length;
|
12276
12363
|
break;
|
12277
12364
|
case ("total" in J.value && "records" in J.value):
|
12278
|
-
|
12365
|
+
te.value = (W = J.value.records) != null ? W : [], ae.value = (N = J.value.total) != null ? N : 0;
|
12279
12366
|
break;
|
12280
12367
|
}
|
12281
12368
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
12282
|
-
datas:
|
12369
|
+
datas: te,
|
12283
12370
|
total: ae
|
12284
|
-
}),
|
12371
|
+
}), 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", {
|
12285
12372
|
page: J.value,
|
12286
|
-
datas:
|
12373
|
+
datas: D
|
12287
12374
|
}), u.store.setIsRetrieved(o.formID, !0);
|
12288
|
-
} catch (
|
12289
|
-
throw
|
12375
|
+
} catch (Y) {
|
12376
|
+
throw Y;
|
12290
12377
|
} finally {
|
12291
12378
|
u.store.setIsRetrieving(o.formID, !1);
|
12292
12379
|
}
|
12293
12380
|
}
|
12294
12381
|
}
|
12295
|
-
function
|
12296
|
-
u.store.setSelectedRows(o.formID, R.map((
|
12297
|
-
var
|
12298
|
-
return (
|
12299
|
-
}).filter((
|
12382
|
+
function z(R) {
|
12383
|
+
u.store.setSelectedRows(o.formID, R.map((H) => {
|
12384
|
+
var X;
|
12385
|
+
return (X = D.value) == null ? void 0 : X.find((W) => W[u.id.value] === H);
|
12386
|
+
}).filter((H) => !!H));
|
12300
12387
|
}
|
12301
12388
|
function Q(R) {
|
12302
|
-
var
|
12389
|
+
var H, X;
|
12303
12390
|
switch (u.isMultiSelect.value) {
|
12304
12391
|
case !0:
|
12305
12392
|
{
|
12306
|
-
const
|
12307
|
-
|
12393
|
+
const W = R[u.id.value];
|
12394
|
+
x.value.includes(W) ? x.value = without$1(x.value, W) : x.value = [...(H = x.value) != null ? H : [], W];
|
12308
12395
|
}
|
12309
12396
|
break;
|
12310
12397
|
case !1:
|
12311
12398
|
{
|
12312
|
-
const
|
12313
|
-
(
|
12399
|
+
const W = R[u.id.value];
|
12400
|
+
(X = x.value) != null && X.includes(W) ? x.value = [] : x.value = [W];
|
12314
12401
|
}
|
12315
12402
|
break;
|
12316
12403
|
}
|
12317
|
-
u.store.setSelectedRows(o.formID,
|
12318
|
-
var
|
12319
|
-
return (
|
12320
|
-
}).filter((
|
12404
|
+
u.store.setSelectedRows(o.formID, x.value.map((W) => {
|
12405
|
+
var N;
|
12406
|
+
return (N = D.value) == null ? void 0 : N.find((G) => G[u.id.value] === W);
|
12407
|
+
}).filter((W) => !!W));
|
12321
12408
|
}
|
12322
|
-
function q(R,
|
12323
|
-
|
12409
|
+
function q(R, H) {
|
12410
|
+
H.width = R, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, R);
|
12324
12411
|
}
|
12325
|
-
async function
|
12326
|
-
var
|
12327
|
-
switch (
|
12412
|
+
async function Z(R, H, X, W) {
|
12413
|
+
var N;
|
12414
|
+
switch (W.action) {
|
12328
12415
|
case "sort":
|
12329
12416
|
{
|
12330
12417
|
await nextTick();
|
12331
|
-
let
|
12332
|
-
|
12418
|
+
let G = X;
|
12419
|
+
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);
|
12333
12420
|
}
|
12334
12421
|
break;
|
12335
12422
|
}
|
12336
12423
|
}
|
12337
|
-
function
|
12338
|
-
var
|
12339
|
-
const
|
12340
|
-
switch ((
|
12424
|
+
function ee(R, H) {
|
12425
|
+
var W;
|
12426
|
+
const X = H[u.id.value];
|
12427
|
+
switch ((W = o.varGridConfig.value) == null ? void 0 : W.expand_accordion_flg) {
|
12341
12428
|
case 0:
|
12342
|
-
R ? v.value = uniq([...v.value,
|
12429
|
+
R ? v.value = uniq([...v.value, X]) : v.value = without$1(v.value, X);
|
12343
12430
|
break;
|
12344
12431
|
default:
|
12345
|
-
R ? v.value = [
|
12432
|
+
R ? v.value = [X] : v.value = [];
|
12346
12433
|
break;
|
12347
12434
|
}
|
12348
12435
|
}
|
12349
|
-
function se(R,
|
12350
|
-
|
12436
|
+
function se(R, H) {
|
12437
|
+
H !== $.pageSize ? ($.pageIndex = 1, $.pageSize = H) : $.pageIndex = R, B();
|
12351
12438
|
}
|
12352
|
-
function
|
12353
|
-
u.store.setSelectedRows(o.formID, [R].map((
|
12354
|
-
var
|
12355
|
-
return (
|
12356
|
-
}).filter((
|
12439
|
+
function oe(R) {
|
12440
|
+
u.store.setSelectedRows(o.formID, [R].map((H) => {
|
12441
|
+
var X;
|
12442
|
+
return (X = D.value) == null ? void 0 : X.find((W) => W[u.id.value] === H[u.id.value]);
|
12443
|
+
}).filter((H) => !!H)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
12357
12444
|
}
|
12358
|
-
function
|
12445
|
+
function fe({
|
12359
12446
|
title: R,
|
12360
|
-
column:
|
12447
|
+
column: H
|
12361
12448
|
}) {
|
12362
|
-
switch (
|
12449
|
+
switch (H.dataIndex) {
|
12363
12450
|
case "index":
|
12364
12451
|
return createVNode(KgTableSetting, {
|
12365
12452
|
kgDisabled: k.value
|
@@ -12370,7 +12457,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12370
12457
|
}, [R]);
|
12371
12458
|
}
|
12372
12459
|
}
|
12373
|
-
function
|
12460
|
+
function ce() {
|
12374
12461
|
var R;
|
12375
12462
|
return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
|
12376
12463
|
fixed: "bottom"
|
@@ -12380,18 +12467,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12380
12467
|
index: 0
|
12381
12468
|
}, null), A.value && createVNode(TableSummary.Cell, {
|
12382
12469
|
index: P.value ? 1 : 0
|
12383
|
-
}, null), C.value.map((
|
12384
|
-
const
|
12385
|
-
let
|
12386
|
-
return P.value && A.value ?
|
12387
|
-
index:
|
12470
|
+
}, null), C.value.map((H, X) => {
|
12471
|
+
const W = o.store.getVarGridDetail(o.formID, H.dataIndex);
|
12472
|
+
let N = X;
|
12473
|
+
return P.value && A.value ? N += 2 : (P.value || A.value) && (N += 1), createVNode(TableSummary.Cell, {
|
12474
|
+
index: N
|
12388
12475
|
}, {
|
12389
12476
|
default: () => {
|
12390
|
-
var
|
12391
|
-
return [(
|
12392
|
-
column:
|
12393
|
-
index:
|
12394
|
-
varGridDetail:
|
12477
|
+
var G, Y;
|
12478
|
+
return [(Y = (G = n == null ? void 0 : n.KgTable) == null ? void 0 : G["summary.bodyCell"]) == null ? void 0 : Y.call(G, {
|
12479
|
+
column: H,
|
12480
|
+
index: N,
|
12481
|
+
varGridDetail: W
|
12395
12482
|
})];
|
12396
12483
|
}
|
12397
12484
|
});
|
@@ -12399,49 +12486,49 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12399
12486
|
})]
|
12400
12487
|
}) : null;
|
12401
12488
|
}
|
12402
|
-
function
|
12489
|
+
function ne({
|
12403
12490
|
column: R,
|
12404
|
-
index:
|
12405
|
-
record:
|
12406
|
-
text:
|
12407
|
-
value:
|
12491
|
+
index: H,
|
12492
|
+
record: X,
|
12493
|
+
text: W,
|
12494
|
+
value: N
|
12408
12495
|
}) {
|
12409
12496
|
var J;
|
12410
|
-
let
|
12411
|
-
R.customRender ?
|
12412
|
-
index:
|
12413
|
-
record:
|
12497
|
+
let G = "";
|
12498
|
+
R.customRender ? G = R.customRender({
|
12499
|
+
index: H,
|
12500
|
+
record: X,
|
12414
12501
|
column: R,
|
12415
|
-
text:
|
12416
|
-
value:
|
12417
|
-
renderIndex:
|
12418
|
-
}) :
|
12419
|
-
const
|
12420
|
-
kgRow:
|
12421
|
-
kgValue:
|
12502
|
+
text: W,
|
12503
|
+
value: N,
|
12504
|
+
renderIndex: H
|
12505
|
+
}) : G = N;
|
12506
|
+
const Y = createVNode(KgTableCell, {
|
12507
|
+
kgRow: X,
|
12508
|
+
kgValue: G,
|
12422
12509
|
kgVarName: R.dataIndex,
|
12423
|
-
onKgUpdateLinkClick: () =>
|
12510
|
+
onKgUpdateLinkClick: () => oe(X)
|
12424
12511
|
}, null);
|
12425
12512
|
if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
|
12426
|
-
const
|
12513
|
+
const te = R.dataIndex ? o.store.getVarGridDetail(o.formID, R.dataIndex) : null;
|
12427
12514
|
return n.KgTable.bodyCell({
|
12428
12515
|
column: R,
|
12429
|
-
index:
|
12430
|
-
record:
|
12431
|
-
text:
|
12432
|
-
value:
|
12433
|
-
row:
|
12434
|
-
varGridDetail:
|
12435
|
-
defaultRender:
|
12516
|
+
index: H,
|
12517
|
+
record: X,
|
12518
|
+
text: W,
|
12519
|
+
value: N,
|
12520
|
+
row: X,
|
12521
|
+
varGridDetail: te,
|
12522
|
+
defaultRender: Y
|
12436
12523
|
});
|
12437
12524
|
} else
|
12438
|
-
return
|
12525
|
+
return Y;
|
12439
12526
|
}
|
12440
|
-
function
|
12527
|
+
function ue() {
|
12441
12528
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
|
12442
12529
|
}
|
12443
12530
|
return () => {
|
12444
|
-
var R;
|
12531
|
+
var R, H, X;
|
12445
12532
|
return createVNode("div", {
|
12446
12533
|
class: w.value,
|
12447
12534
|
"kg-frm_id": o.formID,
|
@@ -12456,42 +12543,43 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12456
12543
|
pagination: !1,
|
12457
12544
|
showSorterTooltip: !1,
|
12458
12545
|
columns: C.value,
|
12459
|
-
dataSource:
|
12546
|
+
dataSource: D.value,
|
12460
12547
|
loading: _.value,
|
12461
12548
|
rowKey: u.id.value,
|
12549
|
+
rowClassName: (H = (R = s == null ? void 0 : s.value) == null ? void 0 : R.KgTable) == null ? void 0 : H.kgRowClassName,
|
12462
12550
|
expandColumnWidth: 28,
|
12463
12551
|
expandedRowKeys: v.value,
|
12464
|
-
rowSelection:
|
12465
|
-
customRow: (
|
12466
|
-
onClick: (
|
12552
|
+
rowSelection: I.value,
|
12553
|
+
customRow: (W) => ({
|
12554
|
+
onClick: (N) => K(N, W)
|
12467
12555
|
}),
|
12468
12556
|
onResizeColumn: q,
|
12469
|
-
onChange:
|
12470
|
-
onExpand:
|
12557
|
+
onChange: Z,
|
12558
|
+
onExpand: ee
|
12471
12559
|
}, {
|
12472
|
-
headerCell:
|
12473
|
-
bodyCell:
|
12474
|
-
emptyText:
|
12475
|
-
expandedRowRender: (
|
12476
|
-
summary:
|
12560
|
+
headerCell: fe,
|
12561
|
+
bodyCell: ne,
|
12562
|
+
emptyText: ue,
|
12563
|
+
expandedRowRender: (X = n == null ? void 0 : n.KgTable) == null ? void 0 : X.expandedRowRender,
|
12564
|
+
summary: ce
|
12477
12565
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
12478
|
-
class:
|
12566
|
+
class: L.value
|
12479
12567
|
}, [createVNode("div", {
|
12480
12568
|
class: "left"
|
12481
12569
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
12482
|
-
kgShowClearCheck:
|
12483
|
-
kgShowClearTable:
|
12484
|
-
kgShowLocate:
|
12485
|
-
kgTotal:
|
12486
|
-
kgDisabled:
|
12570
|
+
kgShowClearCheck: x.value.length > 0,
|
12571
|
+
kgShowClearTable: $.total > 0,
|
12572
|
+
kgShowLocate: x.value.length === 1,
|
12573
|
+
kgTotal: x.value.length,
|
12574
|
+
kgDisabled: M.value
|
12487
12575
|
}, null)]), createVNode("div", {
|
12488
12576
|
class: "right"
|
12489
12577
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
12490
12578
|
size: "default",
|
12491
|
-
current:
|
12492
|
-
pageSize:
|
12493
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
12494
|
-
total:
|
12579
|
+
current: $.pageIndex,
|
12580
|
+
pageSize: $.pageSize,
|
12581
|
+
pageSizeOptions: u.pageSizeOptions.value.map((W) => String(W)),
|
12582
|
+
total: $.total,
|
12495
12583
|
showSizeChanger: !0,
|
12496
12584
|
showQuickJumper: !1,
|
12497
12585
|
hideOnSinglePage: !1,
|
@@ -12499,12 +12587,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12499
12587
|
locale: {
|
12500
12588
|
page: ""
|
12501
12589
|
},
|
12502
|
-
showTotal: (
|
12503
|
-
from:
|
12504
|
-
to:
|
12505
|
-
total:
|
12590
|
+
showTotal: (W, N) => l.t("kg.KgTable.totalText", {
|
12591
|
+
from: N[0],
|
12592
|
+
to: N[1],
|
12593
|
+
total: W
|
12506
12594
|
}),
|
12507
|
-
onChange: (
|
12595
|
+
onChange: (W, N) => se(W, N)
|
12508
12596
|
}, null)])])]);
|
12509
12597
|
};
|
12510
12598
|
}
|
@@ -12724,8 +12812,8 @@ const KgButtonCreate = defineComponent({
|
|
12724
12812
|
attrs: a
|
12725
12813
|
}) {
|
12726
12814
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
12727
|
-
var T, k,
|
12728
|
-
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 && ((
|
12815
|
+
var T, k, M, E, P, A, I, w;
|
12816
|
+
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 && ((M = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (P = o.selectedRows.value) == null ? void 0 : P.length) != null ? A : 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;
|
12729
12817
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
12730
12818
|
async function m() {
|
12731
12819
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -12747,7 +12835,7 @@ const KgButtonCreate = defineComponent({
|
|
12747
12835
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12748
12836
|
}
|
12749
12837
|
function y() {
|
12750
|
-
var T, k,
|
12838
|
+
var T, k, M, E;
|
12751
12839
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
|
12752
12840
|
type: "primary",
|
12753
12841
|
disabled: u.value,
|
@@ -12755,7 +12843,7 @@ const KgButtonCreate = defineComponent({
|
|
12755
12843
|
class: a.class,
|
12756
12844
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
12757
12845
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
12758
|
-
"kg-var_nam": (
|
12846
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
12759
12847
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
12760
12848
|
}, {
|
12761
12849
|
default: () => [g(), _()]
|
@@ -12842,8 +12930,8 @@ const KgButtonCreate = defineComponent({
|
|
12842
12930
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
12843
12931
|
}), ((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;
|
12844
12932
|
}), c = computed(() => {
|
12845
|
-
var C, g, _, y, b, T, k,
|
12846
|
-
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 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((
|
12933
|
+
var C, g, _, y, b, T, k, M;
|
12934
|
+
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 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12847
12935
|
}), u = ref(!1);
|
12848
12936
|
async function d() {
|
12849
12937
|
var C, g;
|
@@ -12924,8 +13012,8 @@ const KgButtonCreate = defineComponent({
|
|
12924
13012
|
...KgVarUtil.parseCommandParameter((T = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? T : "")
|
12925
13013
|
}), _;
|
12926
13014
|
}), d = computed(() => {
|
12927
|
-
var _, y, b, T, k,
|
12928
|
-
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 && ((b = (y = l.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((
|
13015
|
+
var _, y, b, T, k, M, E, P;
|
13016
|
+
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 && ((b = (y = l.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((M = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? M : 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;
|
12929
13017
|
}), m = ref(!1);
|
12930
13018
|
async function v(_) {
|
12931
13019
|
if (!i.value)
|
@@ -13012,8 +13100,8 @@ const KgButtonCreate = defineComponent({
|
|
13012
13100
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
13013
13101
|
}), C;
|
13014
13102
|
}), c = computed(() => {
|
13015
|
-
var C, g, _, y, b, T, k,
|
13016
|
-
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 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((
|
13103
|
+
var C, g, _, y, b, T, k, M;
|
13104
|
+
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 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((M = s.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13017
13105
|
}), u = ref(!1);
|
13018
13106
|
async function d() {
|
13019
13107
|
var C, g;
|
@@ -13089,22 +13177,22 @@ const KgButtonCreate = defineComponent({
|
|
13089
13177
|
}
|
13090
13178
|
let m = null;
|
13091
13179
|
const v = async () => {
|
13092
|
-
var b, T, k,
|
13180
|
+
var b, T, k, M, E, P;
|
13093
13181
|
m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13094
13182
|
const y = s.selectedRows.value;
|
13095
13183
|
try {
|
13096
13184
|
const A = await httpClient().request({
|
13097
13185
|
method: (T = (b = e.kgButton) == null ? void 0 : b.cmd_method) != null ? T : "POST",
|
13098
13186
|
url: d,
|
13099
|
-
params: KgVarUtil.parseCommandParameter((
|
13187
|
+
params: KgVarUtil.parseCommandParameter((M = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? M : ""),
|
13100
13188
|
data: y != null ? y : []
|
13101
13189
|
});
|
13102
13190
|
if (((E = e.kgButton) == null ? void 0 : E.reload_all_after_done_flg) === 1) {
|
13103
13191
|
if (((P = e.kgButton) == null ? void 0 : P.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
13104
13192
|
datas: w
|
13105
13193
|
}) => {
|
13106
|
-
const
|
13107
|
-
return
|
13194
|
+
const L = w.value, D = intersectionWith$1(L, y != null ? y : [], (x, $) => (x == null ? void 0 : x[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
|
13195
|
+
return D.length > 0 && s.store.setSelectedRows(r.formID, D), !1;
|
13108
13196
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
13109
13197
|
button: e.kgButton,
|
13110
13198
|
data: A
|
@@ -13217,8 +13305,8 @@ const KgButtonCreate = defineComponent({
|
|
13217
13305
|
}
|
13218
13306
|
});
|
13219
13307
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13220
|
-
var T, k,
|
13221
|
-
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 && ((
|
13308
|
+
var T, k, M, E, P, A, I, w;
|
13309
|
+
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 && ((M = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (P = l.selectedRows.value) == null ? void 0 : P.length) != null ? A : 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;
|
13222
13310
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
13223
13311
|
async function m() {
|
13224
13312
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -13243,7 +13331,7 @@ const KgButtonCreate = defineComponent({
|
|
13243
13331
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13244
13332
|
}
|
13245
13333
|
function y() {
|
13246
|
-
var T, k,
|
13334
|
+
var T, k, M, E;
|
13247
13335
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
|
13248
13336
|
type: "primary",
|
13249
13337
|
disabled: u.value,
|
@@ -13252,7 +13340,7 @@ const KgButtonCreate = defineComponent({
|
|
13252
13340
|
class: a.class,
|
13253
13341
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
13254
13342
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
13255
|
-
"kg-var_nam": (
|
13343
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
13256
13344
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
13257
13345
|
}, {
|
13258
13346
|
default: () => [g(), _()]
|
@@ -13820,7 +13908,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13820
13908
|
}, _isSlot$2(s) ? s : {
|
13821
13909
|
default: () => [s]
|
13822
13910
|
})),
|
13823
|
-
suffixIcon: () => createVNode(CaretDownOutlined$1,
|
13911
|
+
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
13912
|
+
class: "ant-select-suffix"
|
13913
|
+
}, null)
|
13824
13914
|
});
|
13825
13915
|
}
|
13826
13916
|
}];
|
@@ -13843,7 +13933,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13843
13933
|
row: b,
|
13844
13934
|
model: T
|
13845
13935
|
}) => {
|
13846
|
-
var
|
13936
|
+
var M, E, P;
|
13847
13937
|
const k = o.store.getSystemVarProfileDetails(o.formID);
|
13848
13938
|
switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
13849
13939
|
case g:
|
@@ -13860,16 +13950,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13860
13950
|
}
|
13861
13951
|
});
|
13862
13952
|
i.value = i.value.map((w) => {
|
13863
|
-
var
|
13864
|
-
const
|
13865
|
-
return
|
13953
|
+
var D;
|
13954
|
+
const L = (D = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : D.find((x) => x.var_nam === w.var_nam);
|
13955
|
+
return L ? {
|
13866
13956
|
...w,
|
13867
|
-
...
|
13957
|
+
...L,
|
13868
13958
|
id: w.id
|
13869
13959
|
} : w;
|
13870
13960
|
});
|
13871
|
-
const
|
13872
|
-
c.value = i.value.filter((w) =>
|
13961
|
+
const I = (E = (M = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : M.map((w) => w.var_nam)) != null ? E : [];
|
13962
|
+
c.value = i.value.filter((w) => I.includes(w.var_nam)).map((w) => w.id);
|
13873
13963
|
} catch (A) {
|
13874
13964
|
throw A;
|
13875
13965
|
} finally {
|
@@ -13924,41 +14014,41 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13924
14014
|
}) => createVNode(Transfer, {
|
13925
14015
|
dataSource: i.value,
|
13926
14016
|
targetKeys: c.value,
|
13927
|
-
"onUpdate:targetKeys": (
|
13928
|
-
rowKey: (
|
14017
|
+
"onUpdate:targetKeys": (M) => c.value = M,
|
14018
|
+
rowKey: (M) => M.id,
|
13929
14019
|
showSearch: !0,
|
13930
14020
|
showSelectAll: !1,
|
13931
14021
|
searchPlaceholder: " ",
|
13932
|
-
filterOption: (
|
14022
|
+
filterOption: (M, E) => {
|
13933
14023
|
var P;
|
13934
|
-
return !!((P = E.var_nam) != null && P.includes(
|
14024
|
+
return !!((P = E.var_nam) != null && P.includes(M));
|
13935
14025
|
}
|
13936
14026
|
}, {
|
13937
14027
|
children: ({
|
13938
|
-
direction:
|
14028
|
+
direction: M,
|
13939
14029
|
filteredItems: E,
|
13940
14030
|
selectedKeys: P,
|
13941
14031
|
disabled: A,
|
13942
|
-
onItemSelectAll:
|
14032
|
+
onItemSelectAll: I,
|
13943
14033
|
onItemSelect: w
|
13944
14034
|
}) => createVNode(Table, {
|
13945
14035
|
pagination: !1,
|
13946
14036
|
class: "kg-flex-table",
|
13947
14037
|
size: "small",
|
13948
14038
|
scroll: {
|
13949
|
-
x:
|
14039
|
+
x: M === "left" ? "370px" : "1244px",
|
13950
14040
|
y: "auto"
|
13951
14041
|
},
|
13952
|
-
columns:
|
14042
|
+
columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
13953
14043
|
rowKey: "id",
|
13954
14044
|
dataSource: E,
|
13955
|
-
customRow: (
|
13956
|
-
onClick: (
|
14045
|
+
customRow: (L) => ({
|
14046
|
+
onClick: (D) => C(D, L, M, P)
|
13957
14047
|
}),
|
13958
14048
|
rowSelection: m({
|
13959
14049
|
disabled: A,
|
13960
14050
|
selectedKeys: P,
|
13961
|
-
onItemSelectAll:
|
14051
|
+
onItemSelectAll: I,
|
13962
14052
|
onItemSelect: w
|
13963
14053
|
})
|
13964
14054
|
}, null)
|
@@ -13979,10 +14069,10 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13979
14069
|
disabled: g || T.disabled
|
13980
14070
|
}),
|
13981
14071
|
onSelectAll(T, k) {
|
13982
|
-
const
|
14072
|
+
const M = k.filter((E) => !E.disabled).map(({
|
13983
14073
|
key: E
|
13984
14074
|
}) => E);
|
13985
|
-
y(
|
14075
|
+
y(M, T);
|
13986
14076
|
},
|
13987
14077
|
onSelect({
|
13988
14078
|
key: T
|
@@ -14196,23 +14286,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14196
14286
|
});
|
14197
14287
|
_useLayoutHeaderResizeObserver();
|
14198
14288
|
const g = _useFormModel(v, C), _ = computed(() => {
|
14199
|
-
var
|
14200
|
-
if (!isNil((
|
14201
|
-
return (Q = (
|
14289
|
+
var K, B, z, Q;
|
14290
|
+
if (!isNil((B = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : B.kgDisabled))
|
14291
|
+
return (Q = (z = r == null ? void 0 : r.value) == null ? void 0 : z.KgSearch) == null ? void 0 : Q.kgDisabled;
|
14202
14292
|
if (!isNil(e.kgDisabled))
|
14203
14293
|
return e.kgDisabled;
|
14204
14294
|
}), y = computed(() => {
|
14205
|
-
var
|
14206
|
-
return !!(_.value || l.isRetrieving.value || ((
|
14295
|
+
var K, B;
|
14296
|
+
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);
|
14207
14297
|
}), b = 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({
|
14208
14298
|
visible: !1
|
14209
|
-
}),
|
14210
|
-
var
|
14211
|
-
if (n.t((
|
14212
|
-
return n.t((
|
14299
|
+
}), M = computed(() => C.value.kgHeight === m.value), E = computed(() => {
|
14300
|
+
var K, B, z;
|
14301
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
|
14302
|
+
return n.t((z = n.varButtonSearch.value) == null ? void 0 : z.var_nam).value;
|
14213
14303
|
}), P = computed(() => {
|
14214
|
-
var
|
14215
|
-
switch ((
|
14304
|
+
var K;
|
14305
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
14216
14306
|
case 1:
|
14217
14307
|
return !0;
|
14218
14308
|
case 0:
|
@@ -14220,69 +14310,71 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14220
14310
|
default:
|
14221
14311
|
return !0;
|
14222
14312
|
}
|
14223
|
-
}), A = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)),
|
14224
|
-
let
|
14225
|
-
return o.value && (
|
14313
|
+
}), A = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
|
14314
|
+
let K = "kg-search";
|
14315
|
+
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
14226
14316
|
});
|
14227
14317
|
onUnmounted(() => {
|
14228
14318
|
s.store.dispose(n.formID);
|
14229
14319
|
});
|
14230
|
-
async function
|
14320
|
+
async function L(K = !1) {
|
14231
14321
|
y.value || (o.value ? v.value && v.value.validate().then(async () => {
|
14232
14322
|
await s.store.emit(n.formID, "search", {
|
14233
|
-
resetPageIndex:
|
14323
|
+
resetPageIndex: K
|
14234
14324
|
});
|
14235
|
-
}).catch((
|
14325
|
+
}).catch((B) => {
|
14236
14326
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
14237
|
-
e:
|
14327
|
+
e: B
|
14238
14328
|
});
|
14239
14329
|
}) : await s.store.emit(n.formID, "search", {
|
14240
|
-
resetPageIndex:
|
14330
|
+
resetPageIndex: K
|
14241
14331
|
}));
|
14242
14332
|
}
|
14243
|
-
s.store.setSearchFn(n.formID,
|
14244
|
-
async function
|
14333
|
+
s.store.setSearchFn(n.formID, L);
|
14334
|
+
async function D() {
|
14245
14335
|
g.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
14246
14336
|
await s.store.emit(n.formID, "reset", {});
|
14247
|
-
}).catch((
|
14337
|
+
}).catch((K) => {
|
14248
14338
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
14249
|
-
e:
|
14339
|
+
e: K
|
14250
14340
|
});
|
14251
14341
|
}) : await s.store.emit(n.formID, "reset", {});
|
14252
14342
|
}
|
14253
|
-
s.store.setResetFn(n.formID,
|
14254
|
-
function
|
14255
|
-
return
|
14343
|
+
s.store.setResetFn(n.formID, D);
|
14344
|
+
function x() {
|
14345
|
+
return L(!0), Promise.resolve(!0);
|
14256
14346
|
}
|
14257
|
-
function
|
14258
|
-
var
|
14347
|
+
function $() {
|
14348
|
+
var K;
|
14259
14349
|
return createVNode("div", {
|
14260
14350
|
class: "title",
|
14261
|
-
onClick:
|
14262
|
-
}, [((
|
14351
|
+
onClick: F
|
14352
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
14263
14353
|
class: "kg-search-title-left",
|
14264
|
-
onClick: (
|
14265
|
-
|
14354
|
+
onClick: (B) => {
|
14355
|
+
B.stopPropagation(), B.preventDefault();
|
14266
14356
|
}
|
14267
|
-
}, [t.KgSearch.left()]),
|
14357
|
+
}, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
14268
14358
|
}
|
14269
|
-
function
|
14270
|
-
var
|
14271
|
-
return ((
|
14359
|
+
function V() {
|
14360
|
+
var K, B, z, Q;
|
14361
|
+
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, {
|
14272
14362
|
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
14273
14363
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
14274
14364
|
disabled: b.value,
|
14275
14365
|
class: "kg-search-profile-master-select"
|
14276
14366
|
}, {
|
14277
14367
|
default: () => {
|
14278
|
-
var q,
|
14279
|
-
return (
|
14280
|
-
value:
|
14368
|
+
var q, Z;
|
14369
|
+
return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((ee) => createVNode(Select.Option, {
|
14370
|
+
value: ee.id
|
14281
14371
|
}, {
|
14282
|
-
default: () => [n.t(
|
14372
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
14283
14373
|
}));
|
14284
14374
|
},
|
14285
|
-
suffixIcon: () => createVNode(CaretDownOutlined$1,
|
14375
|
+
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
14376
|
+
class: "ant-select-suffix"
|
14377
|
+
}, null)
|
14286
14378
|
}), createVNode(Button, {
|
14287
14379
|
disabled: b.value,
|
14288
14380
|
onClick: () => {
|
@@ -14297,46 +14389,46 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14297
14389
|
hostFormID: n.formID
|
14298
14390
|
}, null)]);
|
14299
14391
|
}
|
14300
|
-
function
|
14301
|
-
var
|
14302
|
-
return createVNode(Fragment, null, [
|
14392
|
+
function O() {
|
14393
|
+
var K, B, z, Q, q;
|
14394
|
+
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, {
|
14303
14395
|
type: "primary",
|
14304
14396
|
ghost: !y.value,
|
14305
14397
|
disabled: y.value,
|
14306
|
-
onClick:
|
14398
|
+
onClick: D,
|
14307
14399
|
class: "kg-search-btn-reset"
|
14308
14400
|
}, {
|
14309
14401
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
14310
14402
|
}), createVNode(KgButton.Item, {
|
14311
14403
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
14312
|
-
kgVarName: (
|
14404
|
+
kgVarName: (z = n.varButtonSearch.value) == null ? void 0 : z.var_nam,
|
14313
14405
|
kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
|
14314
14406
|
kgText: E.value,
|
14315
14407
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
14316
14408
|
kgPrimary: P.value,
|
14317
14409
|
kgLoading: T.value,
|
14318
|
-
onKgClick:
|
14410
|
+
onKgClick: x
|
14319
14411
|
}, null)]);
|
14320
14412
|
}
|
14321
|
-
function
|
14413
|
+
function U() {
|
14322
14414
|
return createVNode(Spin, {
|
14323
|
-
spinning:
|
14415
|
+
spinning: I.value
|
14324
14416
|
}, {
|
14325
14417
|
default: () => {
|
14326
|
-
var
|
14418
|
+
var K;
|
14327
14419
|
return [createVNode(KgForm, {
|
14328
14420
|
ref: v,
|
14329
|
-
model: (
|
14421
|
+
model: (K = s.model.value) != null ? K : {}
|
14330
14422
|
}, {
|
14331
14423
|
default: () => [createVNode(Row, {
|
14332
14424
|
gutter: 6
|
14333
14425
|
}, {
|
14334
14426
|
default: () => {
|
14335
|
-
var
|
14336
|
-
return [(
|
14337
|
-
kgVarName:
|
14427
|
+
var B;
|
14428
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
|
14429
|
+
kgVarName: z.var_nam,
|
14338
14430
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
14339
|
-
onKgSubmit: () =>
|
14431
|
+
onKgSubmit: () => L(!0)
|
14340
14432
|
}, null))];
|
14341
14433
|
}
|
14342
14434
|
})]
|
@@ -14344,12 +14436,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14344
14436
|
}
|
14345
14437
|
});
|
14346
14438
|
}
|
14347
|
-
function
|
14348
|
-
|
14439
|
+
function F() {
|
14440
|
+
M.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
|
14349
14441
|
}
|
14350
14442
|
return () => createVNode(KgResizable, {
|
14351
14443
|
kgHeight: C.value.kgHeight,
|
14352
|
-
"onUpdate:kgHeight": (
|
14444
|
+
"onUpdate:kgHeight": (K) => C.value.kgHeight = K,
|
14353
14445
|
kgMinHeight: m.value,
|
14354
14446
|
kgMaxHeight: d.value,
|
14355
14447
|
kgDisabled: !i.value,
|
@@ -14369,15 +14461,15 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14369
14461
|
}, [createVNode(Spin, {
|
14370
14462
|
spinning: A.value
|
14371
14463
|
}, {
|
14372
|
-
default: () => [
|
14464
|
+
default: () => [$(), createVNode("div", {
|
14373
14465
|
class: "ant-collapse-extra"
|
14374
|
-
}, [
|
14466
|
+
}, [O()])]
|
14375
14467
|
})])]
|
14376
14468
|
}), createVNode("div", {
|
14377
14469
|
class: "ant-collapse-content ant-collapse-content-active"
|
14378
14470
|
}, [createVNode("div", {
|
14379
14471
|
class: "ant-collapse-content-box"
|
14380
|
-
}, [
|
14472
|
+
}, [U()])])])])]
|
14381
14473
|
});
|
14382
14474
|
}
|
14383
14475
|
});
|
@@ -14443,13 +14535,13 @@ function useMagicKeys(e = {}) {
|
|
14443
14535
|
}
|
14444
14536
|
function v(g, _) {
|
14445
14537
|
var y, b;
|
14446
|
-
const T = (y = g.key) == null ? void 0 : y.toLowerCase(), k = (b = g.code) == null ? void 0 : b.toLowerCase(),
|
14538
|
+
const T = (y = g.key) == null ? void 0 : y.toLowerCase(), k = (b = g.code) == null ? void 0 : b.toLowerCase(), M = [k, T].filter(Boolean);
|
14447
14539
|
k && (_ ? l.add(g.code) : l.delete(g.code));
|
14448
|
-
for (const E of
|
14540
|
+
for (const E of M)
|
14449
14541
|
u.add(E), d(E, _);
|
14450
14542
|
T === "meta" && !_ ? (c.forEach((E) => {
|
14451
14543
|
l.delete(E), d(E, !1);
|
14452
|
-
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...
|
14544
|
+
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...M].forEach((E) => c.add(E));
|
14453
14545
|
}
|
14454
14546
|
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 }));
|
14455
14547
|
const C = new Proxy(i, {
|
@@ -14848,112 +14940,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14848
14940
|
columnWidth: 32,
|
14849
14941
|
hideSelectAll: !0,
|
14850
14942
|
selectedRowKeys: d,
|
14851
|
-
onSelect: (
|
14943
|
+
onSelect: (D) => P(D)
|
14852
14944
|
}), v = ref({
|
14853
14945
|
visible: !1
|
14854
14946
|
}), C = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), g = computed(() => {
|
14855
|
-
var
|
14856
|
-
return !!u.value || ((
|
14947
|
+
var D;
|
14948
|
+
return !!u.value || ((D = a.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14857
14949
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
14858
|
-
watch(() => a.getSelectedVar, (
|
14859
|
-
|
14950
|
+
watch(() => a.getSelectedVar, (D) => {
|
14951
|
+
D ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
14860
14952
|
}, {
|
14861
14953
|
immediate: !0
|
14862
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
14863
|
-
var
|
14864
|
-
i.value.var_text = (
|
14954
|
+
}), watch(() => a.getSelectedVarCatalog, async (D) => {
|
14955
|
+
var x, $;
|
14956
|
+
i.value.var_text = (x = D == null ? void 0 : D.var_text) != null ? x : "", ($ = o.value) == null || $.clearValidate();
|
14865
14957
|
});
|
14866
|
-
async function b(
|
14867
|
-
var
|
14958
|
+
async function b(D = !1) {
|
14959
|
+
var x, $, V;
|
14868
14960
|
n.value = !0;
|
14869
14961
|
try {
|
14870
14962
|
const {
|
14871
|
-
records:
|
14963
|
+
records: O
|
14872
14964
|
} = await List({
|
14873
14965
|
params: {
|
14874
14966
|
pageNo: 1,
|
14875
14967
|
pageSize: 999,
|
14876
14968
|
frm_id: e == null ? void 0 : e.value,
|
14877
|
-
var_nam: (
|
14969
|
+
var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
|
14878
14970
|
column: "frm_id,locale_id,cust_lvl",
|
14879
14971
|
order: "asc"
|
14880
14972
|
}
|
14881
14973
|
});
|
14882
|
-
if (u.value = null, c.value =
|
14883
|
-
const
|
14884
|
-
var
|
14885
|
-
return
|
14974
|
+
if (u.value = null, c.value = O != null ? O : [], D) {
|
14975
|
+
const U = c.value.find((F) => {
|
14976
|
+
var K;
|
14977
|
+
return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
14886
14978
|
});
|
14887
|
-
a.setSelectedVarCatalog(
|
14979
|
+
a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
|
14888
14980
|
} else
|
14889
|
-
a.setSelectedVarCatalog((
|
14890
|
-
} catch (
|
14891
|
-
KgLogger.debug(
|
14981
|
+
a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (V = c.value[0]) != null && V.id ? [c.value[0].id] : [];
|
14982
|
+
} catch (O) {
|
14983
|
+
KgLogger.debug(O == null ? void 0 : O.message);
|
14892
14984
|
} finally {
|
14893
14985
|
n.value = !1;
|
14894
14986
|
}
|
14895
14987
|
}
|
14896
14988
|
async function T() {
|
14897
|
-
var
|
14989
|
+
var D, x, $;
|
14898
14990
|
try {
|
14899
|
-
s.value = !0, await ((
|
14900
|
-
const
|
14901
|
-
...(
|
14902
|
-
var_text: (
|
14991
|
+
s.value = !0, await ((D = o.value) == null ? void 0 : D.validate());
|
14992
|
+
const V = new VarCatalog({
|
14993
|
+
...(x = a.getSelectedVarCatalog) != null ? x : {},
|
14994
|
+
var_text: ($ = i.value) == null ? void 0 : $.var_text
|
14903
14995
|
});
|
14904
|
-
|
14905
|
-
data:
|
14996
|
+
V.id ? V.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (V.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(V, "id"), await Add({
|
14997
|
+
data: V
|
14906
14998
|
}, {
|
14907
14999
|
successMessageMode: "none"
|
14908
15000
|
}), message.success({
|
14909
15001
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14910
15002
|
}), await b()) : (await Edit({
|
14911
|
-
data:
|
15003
|
+
data: V
|
14912
15004
|
}, {
|
14913
15005
|
successMessageMode: "none"
|
14914
15006
|
}), message.success({
|
14915
15007
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
14916
15008
|
}), await b(!0)) : (await Add({
|
14917
|
-
data:
|
15009
|
+
data: V
|
14918
15010
|
}, {
|
14919
15011
|
successMessageMode: "none"
|
14920
15012
|
}), message.success({
|
14921
15013
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14922
15014
|
}), await b()), r.retrieve(e == null ? void 0 : e.value);
|
14923
|
-
} catch (
|
14924
|
-
KgUtil.throwIfNotFormError(
|
15015
|
+
} catch (V) {
|
15016
|
+
KgUtil.throwIfNotFormError(V);
|
14925
15017
|
} finally {
|
14926
15018
|
s.value = !1;
|
14927
15019
|
}
|
14928
15020
|
}
|
14929
15021
|
function k({
|
14930
|
-
isAllForm:
|
14931
|
-
isAllLanguage:
|
15022
|
+
isAllForm: D,
|
15023
|
+
isAllLanguage: x
|
14932
15024
|
}) {
|
14933
|
-
var
|
15025
|
+
var $, V, O;
|
14934
15026
|
u.value = new VarCatalog({
|
14935
15027
|
id: "",
|
14936
15028
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
14937
|
-
grp_nam: (
|
14938
|
-
var_nam: (
|
14939
|
-
frm_id:
|
14940
|
-
locale_id:
|
15029
|
+
grp_nam: ($ = a.getSelectedVar) == null ? void 0 : $.grp_nam,
|
15030
|
+
var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
|
15031
|
+
frm_id: D || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
15032
|
+
locale_id: x ? "ALL" : (O = t.locale) == null ? void 0 : O.value,
|
14941
15033
|
var_text: ""
|
14942
15034
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
14943
15035
|
}
|
14944
|
-
function
|
14945
|
-
var
|
15036
|
+
function M() {
|
15037
|
+
var x;
|
14946
15038
|
c.value = without$1(c.value, u.value), u.value = null;
|
14947
|
-
const
|
14948
|
-
a.setSelectedVarCatalog(
|
15039
|
+
const D = (x = c.value[0]) != null ? x : null;
|
15040
|
+
a.setSelectedVarCatalog(D), d.value = D ? [D.id] : [];
|
14949
15041
|
}
|
14950
15042
|
function E() {
|
14951
15043
|
KgUtil.confirm({
|
14952
15044
|
onOk: async () => {
|
14953
|
-
var
|
15045
|
+
var D;
|
14954
15046
|
await Delete({
|
14955
15047
|
params: {
|
14956
|
-
id: (
|
15048
|
+
id: (D = a.getSelectedVarCatalog) == null ? void 0 : D.id
|
14957
15049
|
}
|
14958
15050
|
}, {
|
14959
15051
|
successMessageMode: "none",
|
@@ -14964,19 +15056,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14964
15056
|
}
|
14965
15057
|
});
|
14966
15058
|
}
|
14967
|
-
function P(
|
14968
|
-
var
|
14969
|
-
((
|
15059
|
+
function P(D) {
|
15060
|
+
var x;
|
15061
|
+
((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== D.id && (unref(u) ? KgUtil.confirm({
|
14970
15062
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
14971
15063
|
onOk: () => {
|
14972
|
-
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(
|
15064
|
+
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(D)), d.value = [D.id];
|
14973
15065
|
}
|
14974
|
-
}) : (a.setSelectedVarCatalog(unref(
|
15066
|
+
}) : (a.setSelectedVarCatalog(unref(D)), d.value = [D.id]));
|
14975
15067
|
}
|
14976
15068
|
function A() {
|
14977
15069
|
v.value.visible = !0;
|
14978
15070
|
}
|
14979
|
-
function
|
15071
|
+
function I() {
|
14980
15072
|
return createVNode("div", {
|
14981
15073
|
class: "buttons"
|
14982
15074
|
}, [createVNode(Button, {
|
@@ -14996,7 +15088,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14996
15088
|
})]);
|
14997
15089
|
}
|
14998
15090
|
function w() {
|
14999
|
-
let
|
15091
|
+
let D, x;
|
15000
15092
|
return createVNode("div", {
|
15001
15093
|
class: "form"
|
15002
15094
|
}, [createVNode(Form, {
|
@@ -15013,7 +15105,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15013
15105
|
}, {
|
15014
15106
|
default: () => [createVNode(Textarea, {
|
15015
15107
|
value: i.value.var_text,
|
15016
|
-
"onUpdate:value": (
|
15108
|
+
"onUpdate:value": ($) => i.value.var_text = $,
|
15017
15109
|
disabled: !a.getSelectedVarCatalog
|
15018
15110
|
}, null), createVNode("button", {
|
15019
15111
|
hidden: !0
|
@@ -15023,26 +15115,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15023
15115
|
class: "buttons"
|
15024
15116
|
}, [createVNode(Button, {
|
15025
15117
|
disabled: _.value,
|
15026
|
-
onClick:
|
15027
|
-
}, _isSlot(
|
15028
|
-
default: () => [
|
15118
|
+
onClick: M
|
15119
|
+
}, _isSlot(D = t.t("common.cancelText")) ? D : {
|
15120
|
+
default: () => [D]
|
15029
15121
|
}), createVNode(Button, {
|
15030
15122
|
loading: s.value,
|
15031
15123
|
disabled: y.value,
|
15032
15124
|
onClick: T,
|
15033
15125
|
type: "primary"
|
15034
|
-
}, _isSlot(
|
15035
|
-
default: () => [
|
15126
|
+
}, _isSlot(x = t.t("common.save")) ? x : {
|
15127
|
+
default: () => [x]
|
15036
15128
|
})])]);
|
15037
15129
|
}
|
15038
|
-
function
|
15039
|
-
var
|
15040
|
-
let
|
15041
|
-
return
|
15130
|
+
function L(D) {
|
15131
|
+
var $;
|
15132
|
+
let x = "";
|
15133
|
+
return D.id || (x += " ant-table-row-create"), D.id === (($ = a.getSelectedVarCatalog) == null ? void 0 : $.id) && (x += " ant-table-row-selected "), x;
|
15042
15134
|
}
|
15043
15135
|
return () => createVNode("div", {
|
15044
15136
|
class: "kg-var-config-modal-var-var-catalog"
|
15045
|
-
}, [
|
15137
|
+
}, [I(), createVNode(Table, {
|
15046
15138
|
pagination: !1,
|
15047
15139
|
class: "kg-flex-table",
|
15048
15140
|
size: "small",
|
@@ -15054,14 +15146,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15054
15146
|
rowKey: "id",
|
15055
15147
|
dataSource: c.value,
|
15056
15148
|
loading: n.value,
|
15057
|
-
rowClassName:
|
15149
|
+
rowClassName: L,
|
15058
15150
|
rowSelection: m.value,
|
15059
|
-
customRow: (
|
15060
|
-
onClick: () => P(
|
15151
|
+
customRow: (D) => ({
|
15152
|
+
onClick: () => P(D)
|
15061
15153
|
})
|
15062
15154
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
15063
15155
|
visible: v.value.visible,
|
15064
|
-
"onUpdate:visible": (
|
15156
|
+
"onUpdate:visible": (D) => v.value.visible = D,
|
15065
15157
|
onKgOk: k
|
15066
15158
|
}, null)]);
|
15067
15159
|
}
|
@@ -15386,21 +15478,21 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15386
15478
|
record: k
|
15387
15479
|
}) => {
|
15388
15480
|
var E, P, A;
|
15389
|
-
const
|
15390
|
-
return createVNode("div", null, [createVNode("div", null, [(E =
|
15481
|
+
const M = k;
|
15482
|
+
return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (P = M.whId) != null ? P : " "]), createVNode("div", {
|
15391
15483
|
class: "address"
|
15392
|
-
}, [(A =
|
15484
|
+
}, [(A = M.adrId) != null ? A : " "])]);
|
15393
15485
|
}
|
15394
15486
|
}]), u = ref([]), d = computed(() => {
|
15395
|
-
var
|
15396
|
-
const k = (
|
15487
|
+
var M;
|
15488
|
+
const k = (M = s.value) == null ? void 0 : M.toUpperCase();
|
15397
15489
|
return u.value.filter((E) => {
|
15398
|
-
var P, A,
|
15399
|
-
return ((A = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : A.includes(k)) || ((w = (
|
15490
|
+
var P, A, I, w, L, D;
|
15491
|
+
return ((A = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : A.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));
|
15400
15492
|
});
|
15401
15493
|
}), m = computed(() => {
|
15402
|
-
var k,
|
15403
|
-
return ((
|
15494
|
+
var k, M;
|
15495
|
+
return ((M = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
15404
15496
|
});
|
15405
15497
|
watch(a.visible, (k) => {
|
15406
15498
|
!m.value || (k ? C() : g());
|
@@ -15450,14 +15542,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15450
15542
|
i.value = !1;
|
15451
15543
|
}
|
15452
15544
|
}
|
15453
|
-
function b(k,
|
15545
|
+
function b(k, M) {
|
15454
15546
|
var E;
|
15455
15547
|
switch (k.detail) {
|
15456
15548
|
case 1:
|
15457
|
-
((E = o.value) == null ? void 0 : E.id) ===
|
15549
|
+
((E = o.value) == null ? void 0 : E.id) === M.id ? o.value = null : o.value = M;
|
15458
15550
|
break;
|
15459
15551
|
case 2:
|
15460
|
-
o.value =
|
15552
|
+
o.value = M, _();
|
15461
15553
|
break;
|
15462
15554
|
}
|
15463
15555
|
}
|
@@ -15467,8 +15559,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15467
15559
|
placement: "bottomRight"
|
15468
15560
|
}, {
|
15469
15561
|
default: () => {
|
15470
|
-
var k,
|
15471
|
-
return [((k = l.value) == null ? void 0 : k.whDsc) || ((
|
15562
|
+
var k, M;
|
15563
|
+
return [((k = l.value) == null ? void 0 : k.whDsc) || ((M = l.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
15472
15564
|
}
|
15473
15565
|
}), createVNode(KgModal, {
|
15474
15566
|
visible: a.visible.value,
|
@@ -15510,9 +15602,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15510
15602
|
columns: c,
|
15511
15603
|
class: "kg-flex-table",
|
15512
15604
|
customRow: (k) => {
|
15513
|
-
var
|
15605
|
+
var M;
|
15514
15606
|
return {
|
15515
|
-
class: k.id === ((
|
15607
|
+
class: k.id === ((M = o.value) == null ? void 0 : M.id) ? "selected" : "",
|
15516
15608
|
onClick: (E) => b(E, k)
|
15517
15609
|
};
|
15518
15610
|
}
|