@kengic/vue 0.7.3 → 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 +970 -885
- package/dist/src/components/KgTable/KgTable.d.ts +10 -3
- package/package.json +9 -9
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,
|
@@ -8630,11 +8712,11 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8630
8712
|
varSubmitConfig: b,
|
8631
8713
|
varSubmitFields: T,
|
8632
8714
|
varProfile: k,
|
8633
|
-
varProfileConfig:
|
8715
|
+
varProfileConfig: M,
|
8634
8716
|
varGrid: E,
|
8635
8717
|
varGridConfig: P
|
8636
8718
|
} = await GetAll({ params: { frm_id: e } });
|
8637
|
-
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(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, {
|
8638
8720
|
varProfile: k != null ? k : null,
|
8639
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
|
8640
8722
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(P != null ? P : null)), this.varGridMap.set(e, {
|
@@ -8831,12 +8913,12 @@ function useKgVar(e, t, r = 0) {
|
|
8831
8913
|
u.leave(c);
|
8832
8914
|
}));
|
8833
8915
|
const d = (q) => computed(() => {
|
8834
|
-
var
|
8835
|
-
return (se = (
|
8836
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)),
|
8837
|
-
var q,
|
8838
|
-
return (
|
8839
|
-
}),
|
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));
|
8840
8922
|
return {
|
8841
8923
|
formID: c,
|
8842
8924
|
store: u,
|
@@ -8849,23 +8931,23 @@ function useKgVar(e, t, r = 0) {
|
|
8849
8931
|
isUpdatingRequesting: b,
|
8850
8932
|
isCopying: T,
|
8851
8933
|
isCopyingRequesting: k,
|
8852
|
-
isDeleting:
|
8934
|
+
isDeleting: M,
|
8853
8935
|
isDeletingRequesting: E,
|
8854
8936
|
isOtherRequesting: P,
|
8855
8937
|
varButtons: A,
|
8856
|
-
varButtonSearch:
|
8938
|
+
varButtonSearch: I,
|
8857
8939
|
varButtonCreate: w,
|
8858
|
-
varButtonUpdate:
|
8859
|
-
varButtonCopy:
|
8860
|
-
varButtonDelete:
|
8861
|
-
varProfileMasters:
|
8862
|
-
currentVarProfileMaster:
|
8863
|
-
currentVarProfileMasterID:
|
8864
|
-
currentVarProfileDetails:
|
8865
|
-
varGridConfig:
|
8866
|
-
varGridMasters:
|
8867
|
-
currentVarGridMaster:
|
8868
|
-
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,
|
8869
8951
|
currentVarGridDetails: Q,
|
8870
8952
|
setIsCreating: s,
|
8871
8953
|
setIsUpdating: l,
|
@@ -8951,9 +9033,9 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8951
9033
|
r("update:visible", !1);
|
8952
9034
|
}
|
8953
9035
|
async function C() {
|
8954
|
-
var g, _, y, b, T, k,
|
9036
|
+
var g, _, y, b, T, k, M;
|
8955
9037
|
if (d.value) {
|
8956
|
-
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 : [];
|
8957
9039
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
8958
9040
|
var_nam: l,
|
8959
9041
|
isMultiple: !0,
|
@@ -8967,7 +9049,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8967
9049
|
rows: E
|
8968
9050
|
}), r("update:visible", !1));
|
8969
9051
|
} else {
|
8970
|
-
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 : "";
|
8971
9053
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
8972
9054
|
var_nam: l,
|
8973
9055
|
isMultiple: !1,
|
@@ -9211,9 +9293,9 @@ function useKgFormItemSelect() {
|
|
9211
9293
|
}), d;
|
9212
9294
|
});
|
9213
9295
|
async function c() {
|
9214
|
-
var y, b, T, k,
|
9296
|
+
var y, b, T, k, M, E, P, A;
|
9215
9297
|
let d = [];
|
9216
|
-
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 : "";
|
9217
9299
|
if (!m || !C || !g) {
|
9218
9300
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9219
9301
|
frm_id: r.formID,
|
@@ -9245,14 +9327,14 @@ function useKgFormItemSelect() {
|
|
9245
9327
|
break;
|
9246
9328
|
}
|
9247
9329
|
if (d.length > 0) {
|
9248
|
-
const
|
9249
|
-
(!(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.", {
|
9250
9332
|
frm_id: r.formID,
|
9251
9333
|
var_nam: e,
|
9252
9334
|
cmd: m,
|
9253
9335
|
val_clm: C,
|
9254
9336
|
lbl_clm: g,
|
9255
|
-
\u6240\u6709\u5217: Object.keys(
|
9337
|
+
\u6240\u6709\u5217: Object.keys(I)
|
9256
9338
|
});
|
9257
9339
|
}
|
9258
9340
|
l.value = d;
|
@@ -9295,8 +9377,8 @@ function useKgFormItemSelect() {
|
|
9295
9377
|
const T = s;
|
9296
9378
|
if ((b = T.value) != null && b.excludeValues)
|
9297
9379
|
return d.filter((k) => {
|
9298
|
-
var
|
9299
|
-
return !((
|
9380
|
+
var M;
|
9381
|
+
return !((M = T.value.excludeValues) != null && M.includes(k[m]));
|
9300
9382
|
});
|
9301
9383
|
}
|
9302
9384
|
break;
|
@@ -9397,8 +9479,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9397
9479
|
"kg-value": b[i.value]
|
9398
9480
|
}, {
|
9399
9481
|
default: () => {
|
9400
|
-
var
|
9401
|
-
return [b[(E = (
|
9482
|
+
var M, E;
|
9483
|
+
return [b[(E = (M = l.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
|
9402
9484
|
}
|
9403
9485
|
})]
|
9404
9486
|
});
|
@@ -9696,15 +9778,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9696
9778
|
const s = useKgVar();
|
9697
9779
|
useKgForm(s.formID).onLookupOk(async ({
|
9698
9780
|
var_nam: A,
|
9699
|
-
model:
|
9781
|
+
model: I,
|
9700
9782
|
isMultiple: w,
|
9701
|
-
value:
|
9702
|
-
values:
|
9783
|
+
value: L,
|
9784
|
+
values: D
|
9703
9785
|
}) => {
|
9704
|
-
var
|
9786
|
+
var x;
|
9705
9787
|
switch (A) {
|
9706
9788
|
case e.kgVarName:
|
9707
|
-
|
9789
|
+
I.value && (w ? I.value[e.kgVarName] = D : I.value[e.kgVarName] = L), (x = n.value) == null || x.validate([e.kgVarName]);
|
9708
9790
|
break;
|
9709
9791
|
}
|
9710
9792
|
return !1;
|
@@ -9714,7 +9796,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9714
9796
|
} = _useRules(e), {
|
9715
9797
|
controlType: m
|
9716
9798
|
} = useKgFormItem(e), v = computed(() => {
|
9717
|
-
var
|
9799
|
+
var I, w, L, D, x;
|
9718
9800
|
if (s.isRetrieving.value)
|
9719
9801
|
return !0;
|
9720
9802
|
let A = !1;
|
@@ -9723,7 +9805,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9723
9805
|
else
|
9724
9806
|
switch (e.kgContext) {
|
9725
9807
|
case KG_FORM_CONTEXT.SEARCH:
|
9726
|
-
A = ((
|
9808
|
+
A = ((I = c.value) == null ? void 0 : I.ena_flg) === 0;
|
9727
9809
|
break;
|
9728
9810
|
case KG_FORM_CONTEXT.SUBMIT:
|
9729
9811
|
switch (!0) {
|
@@ -9731,78 +9813,78 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9731
9813
|
A = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
9732
9814
|
break;
|
9733
9815
|
case s.isUpdating.value:
|
9734
|
-
A = ((
|
9816
|
+
A = ((L = u.value) == null ? void 0 : L.upt_ena_flg) === 0;
|
9735
9817
|
break;
|
9736
9818
|
case s.isCopying.value:
|
9737
|
-
A = ((
|
9819
|
+
A = ((D = u.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
9738
9820
|
break;
|
9739
9821
|
case s.isDeleting.value:
|
9740
|
-
A = ((
|
9822
|
+
A = ((x = u.value) == null ? void 0 : x.del_ena_flg) === 0;
|
9741
9823
|
break;
|
9742
9824
|
}
|
9743
9825
|
break;
|
9744
9826
|
}
|
9745
9827
|
return A;
|
9746
9828
|
}), C = computed(() => {
|
9747
|
-
var
|
9829
|
+
var I, w, L, D;
|
9748
9830
|
let A = " ";
|
9749
9831
|
if (e.kgPlaceholder)
|
9750
9832
|
A = e.kgPlaceholder;
|
9751
9833
|
else
|
9752
9834
|
switch (e.kgContext) {
|
9753
9835
|
case KG_FORM_CONTEXT.SEARCH:
|
9754
|
-
A = s.t((w = (
|
9836
|
+
A = s.t((w = (I = c.value) == null ? void 0 : I.placeholder) != null ? w : " ").value;
|
9755
9837
|
break;
|
9756
9838
|
case KG_FORM_CONTEXT.SUBMIT:
|
9757
|
-
A = s.t((
|
9839
|
+
A = s.t((D = (L = u.value) == null ? void 0 : L.placeholder) != null ? D : " ").value;
|
9758
9840
|
break;
|
9759
9841
|
}
|
9760
9842
|
return A;
|
9761
9843
|
}), g = computed(() => {
|
9762
|
-
var
|
9844
|
+
var I, w, L, D, x, $, V, O, U, F;
|
9763
9845
|
let A = 6;
|
9764
9846
|
if (e.kgSpan !== void 0)
|
9765
9847
|
A = e.kgSpan;
|
9766
9848
|
else
|
9767
9849
|
switch (e.kgContext) {
|
9768
9850
|
case KG_FORM_CONTEXT.SEARCH:
|
9769
|
-
A = (w = (
|
9851
|
+
A = (w = (I = c.value) == null ? void 0 : I.width) != null ? w : 6;
|
9770
9852
|
break;
|
9771
9853
|
case KG_FORM_CONTEXT.SUBMIT:
|
9772
9854
|
switch (!0) {
|
9773
9855
|
case s.isCreating.value:
|
9774
|
-
A = (
|
9856
|
+
A = (D = (L = u.value) == null ? void 0 : L.crt_width) != null ? D : 6;
|
9775
9857
|
break;
|
9776
9858
|
case s.isUpdating.value:
|
9777
|
-
A = (
|
9859
|
+
A = ($ = (x = u.value) == null ? void 0 : x.upt_width) != null ? $ : 6;
|
9778
9860
|
break;
|
9779
9861
|
case s.isCopying.value:
|
9780
|
-
A = (
|
9862
|
+
A = (O = (V = u.value) == null ? void 0 : V.cpy_width) != null ? O : 6;
|
9781
9863
|
break;
|
9782
9864
|
case s.isDeleting.value:
|
9783
|
-
A = (
|
9865
|
+
A = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
|
9784
9866
|
break;
|
9785
9867
|
}
|
9786
9868
|
}
|
9787
9869
|
return Math.min(24, Math.max(1, A));
|
9788
9870
|
}), _ = computed(() => {
|
9789
|
-
var
|
9871
|
+
var L, D;
|
9790
9872
|
const A = get(k.value, "$el.parentElement");
|
9791
|
-
if (A && !((
|
9873
|
+
if (A && !((L = A.classList) != null && L.contains("ant-row")))
|
9792
9874
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9793
|
-
let
|
9794
|
-
const w = Math.abs(Number.parseInt((
|
9795
|
-
return Number.isNaN(w) || (
|
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 = {
|
9796
9878
|
paddingLeft: `${w}px !important`,
|
9797
9879
|
paddingRight: `${w}px !important`
|
9798
|
-
}),
|
9880
|
+
}), I;
|
9799
9881
|
}), y = computed(() => {
|
9800
|
-
var
|
9882
|
+
var I, w, L, D;
|
9801
9883
|
let A = "kg-form-item";
|
9802
9884
|
switch (o.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
9803
9885
|
case KG_FORM_CONTEXT.SEARCH:
|
9804
9886
|
switch (!0) {
|
9805
|
-
case ((
|
9887
|
+
case ((I = c.value) == null ? void 0 : I.vis_flg) === 0:
|
9806
9888
|
A += " kg-form-item--invisible";
|
9807
9889
|
break;
|
9808
9890
|
}
|
@@ -9810,8 +9892,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9810
9892
|
case KG_FORM_CONTEXT.SUBMIT:
|
9811
9893
|
switch (!0) {
|
9812
9894
|
case (s.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
9813
|
-
case (s.isUpdating.value && ((
|
9814
|
-
case (s.isCopying.value && ((
|
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):
|
9815
9897
|
A += " kg-form-item--invisible";
|
9816
9898
|
break;
|
9817
9899
|
}
|
@@ -9819,10 +9901,10 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9819
9901
|
}
|
9820
9902
|
return A;
|
9821
9903
|
}), b = computed(() => {
|
9822
|
-
var
|
9904
|
+
var I;
|
9823
9905
|
const A = {
|
9824
9906
|
...e,
|
9825
|
-
value: (
|
9907
|
+
value: (I = a.value) == null ? void 0 : I[e.kgVarName],
|
9826
9908
|
"onUpdate:value": (w) => {
|
9827
9909
|
a.value && (a.value[e.kgVarName] = w);
|
9828
9910
|
},
|
@@ -9858,7 +9940,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9858
9940
|
}
|
9859
9941
|
return A;
|
9860
9942
|
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), k = ref(null);
|
9861
|
-
function
|
9943
|
+
function M() {
|
9862
9944
|
if (t.control) {
|
9863
9945
|
const A = {
|
9864
9946
|
varName: e.kgVarName,
|
@@ -9916,7 +9998,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9916
9998
|
});
|
9917
9999
|
}
|
9918
10000
|
return () => {
|
9919
|
-
var A,
|
10001
|
+
var A, I;
|
9920
10002
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
9921
10003
|
ref: k,
|
9922
10004
|
span: g.value,
|
@@ -9925,7 +10007,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9925
10007
|
"kg-frm_id": s.formID,
|
9926
10008
|
"kg-var_nam": e.kgVarName,
|
9927
10009
|
"kg-lkp_id": (A = o.value) == null ? void 0 : A.lkp_id,
|
9928
|
-
"kg-ret_fld": (
|
10010
|
+
"kg-ret_fld": (I = o.value) == null ? void 0 : I.ret_fld
|
9929
10011
|
}, {
|
9930
10012
|
default: () => [createVNode(Form.Item, {
|
9931
10013
|
name: e.kgVarName,
|
@@ -9933,7 +10015,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9933
10015
|
validateFirst: !0,
|
9934
10016
|
htmlFor: T.value
|
9935
10017
|
}, {
|
9936
|
-
default: () => createVNode(Fragment, null, [
|
10018
|
+
default: () => createVNode(Fragment, null, [M(), P()]),
|
9937
10019
|
label: () => E()
|
9938
10020
|
})]
|
9939
10021
|
});
|
@@ -10330,8 +10412,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10330
10412
|
}) => {
|
10331
10413
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10332
10414
|
return o = watch(c, (d) => {
|
10333
|
-
var m, v, C, g, _, y, b, T, k,
|
10334
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (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);
|
10335
10417
|
}, {
|
10336
10418
|
immediate: !0
|
10337
10419
|
}), KgUtil.hideLoading(), !1;
|
@@ -10434,7 +10516,7 @@ function _useFormModel$1() {
|
|
10434
10516
|
}
|
10435
10517
|
const d = r.selectedRow.value;
|
10436
10518
|
u.forEach((m) => {
|
10437
|
-
var C, g, _, y, b, T, k,
|
10519
|
+
var C, g, _, y, b, T, k, M;
|
10438
10520
|
const v = (C = m.var_nam) != null ? C : "";
|
10439
10521
|
switch (c.value[v] = void 0, !0) {
|
10440
10522
|
case t.isCreating.value:
|
@@ -10447,7 +10529,7 @@ function _useFormModel$1() {
|
|
10447
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");
|
10448
10530
|
break;
|
10449
10531
|
case t.isDeleting.value:
|
10450
|
-
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");
|
10451
10533
|
break;
|
10452
10534
|
}
|
10453
10535
|
}), a.store.setModel(t.formID, c.value);
|
@@ -10595,67 +10677,67 @@ const getProps$p = () => ({
|
|
10595
10677
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
10596
10678
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10597
10679
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
10598
|
-
l.onSubmitSave(async () => (await
|
10599
|
-
const u = computed(() => s.isDeleting.value && k.value.length === 0 &&
|
10600
|
-
var
|
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;
|
10601
10683
|
switch (!0) {
|
10602
10684
|
case s.isCreating.value:
|
10603
|
-
return (
|
10685
|
+
return (N = v.value) != null ? N : [];
|
10604
10686
|
case s.isUpdating.value:
|
10605
|
-
return (
|
10687
|
+
return (G = g.value) != null ? G : [];
|
10606
10688
|
case s.isCopying.value:
|
10607
|
-
return (
|
10689
|
+
return (Y = y.value) != null ? Y : [];
|
10608
10690
|
case s.isDeleting.value:
|
10609
10691
|
return [];
|
10610
10692
|
}
|
10611
10693
|
return [];
|
10612
|
-
}),
|
10613
|
-
var
|
10694
|
+
}), M = computed(() => {
|
10695
|
+
var N, G, Y, J;
|
10614
10696
|
switch (!0) {
|
10615
10697
|
case s.isCreating.value:
|
10616
|
-
return (
|
10698
|
+
return (N = C.value) != null ? N : [];
|
10617
10699
|
case s.isUpdating.value:
|
10618
|
-
return (
|
10700
|
+
return (G = _.value) != null ? G : [];
|
10619
10701
|
case s.isCopying.value:
|
10620
|
-
return (
|
10702
|
+
return (Y = b.value) != null ? Y : [];
|
10621
10703
|
case s.isDeleting.value:
|
10622
10704
|
return (J = T.value) != null ? J : [];
|
10623
10705
|
}
|
10624
10706
|
return [];
|
10625
|
-
}), E = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), P = computed(() => E.value || d.value), 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({
|
10626
10708
|
kgWidth: 0
|
10627
10709
|
}), w = computed(() => {
|
10628
|
-
var
|
10629
|
-
return !!(u.value ||
|
10630
|
-
}),
|
10631
|
-
var
|
10632
|
-
return u.value ? 398 : (
|
10633
|
-
}),
|
10634
|
-
var
|
10635
|
-
return u.value ? 398 : (
|
10636
|
-
}),
|
10637
|
-
_useResizeObserver$1(
|
10638
|
-
const
|
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({
|
10639
10721
|
isFullscreen: !1
|
10640
10722
|
}), {
|
10641
|
-
getClass:
|
10642
|
-
} = _useClass(e,
|
10643
|
-
getLayout:
|
10723
|
+
getClass: K
|
10724
|
+
} = _useClass(e, F), {
|
10725
|
+
getLayout: B
|
10644
10726
|
} = _useLayout(), {
|
10645
|
-
getDefaultWidth:
|
10727
|
+
getDefaultWidth: z
|
10646
10728
|
} = _useDefaultWidth(), Q = computed(() => {
|
10647
|
-
var
|
10648
|
-
switch (
|
10729
|
+
var N, G, Y;
|
10730
|
+
switch (B.value) {
|
10649
10731
|
case "horizontal":
|
10650
|
-
switch ((
|
10732
|
+
switch ((N = m.value) == null ? void 0 : N.label_col_unit) {
|
10651
10733
|
case KG_WIDTH_UNIT.SPAN:
|
10652
10734
|
return {
|
10653
|
-
span: (
|
10735
|
+
span: (G = m.value) == null ? void 0 : G.label_col
|
10654
10736
|
};
|
10655
10737
|
default:
|
10656
10738
|
return {
|
10657
10739
|
style: {
|
10658
|
-
width: `${(
|
10740
|
+
width: `${(Y = m.value) == null ? void 0 : Y.label_col}px`
|
10659
10741
|
}
|
10660
10742
|
};
|
10661
10743
|
}
|
@@ -10663,13 +10745,13 @@ const getProps$p = () => ({
|
|
10663
10745
|
return;
|
10664
10746
|
}
|
10665
10747
|
}), q = computed(() => {
|
10666
|
-
var
|
10667
|
-
switch (
|
10748
|
+
var N, G;
|
10749
|
+
switch (B.value) {
|
10668
10750
|
case "horizontal":
|
10669
|
-
switch ((
|
10751
|
+
switch ((N = m.value) == null ? void 0 : N.label_col_unit) {
|
10670
10752
|
case KG_WIDTH_UNIT.SPAN:
|
10671
10753
|
return {
|
10672
|
-
span: 24 - ((
|
10754
|
+
span: 24 - ((G = m.value) == null ? void 0 : G.label_col)
|
10673
10755
|
};
|
10674
10756
|
default:
|
10675
10757
|
return;
|
@@ -10678,19 +10760,19 @@ const getProps$p = () => ({
|
|
10678
10760
|
return;
|
10679
10761
|
}
|
10680
10762
|
});
|
10681
|
-
watch(
|
10682
|
-
|
10763
|
+
watch(U, (N, G) => {
|
10764
|
+
N === !0 && Z(), G === !0 && N === !1 && ee();
|
10683
10765
|
}, {
|
10684
10766
|
immediate: !0
|
10685
|
-
}), watch(
|
10686
|
-
|
10767
|
+
}), watch(z, (N) => {
|
10768
|
+
N && (I.value.kgWidth = N);
|
10687
10769
|
}, {
|
10688
10770
|
immediate: !0
|
10689
10771
|
});
|
10690
|
-
function
|
10691
|
-
var
|
10692
|
-
const
|
10693
|
-
|
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", {
|
10694
10776
|
isCreating: s.isCreating.value,
|
10695
10777
|
isUpdating: s.isUpdating.value,
|
10696
10778
|
isCopying: s.isCopying.value,
|
@@ -10701,10 +10783,10 @@ const getProps$p = () => ({
|
|
10701
10783
|
}, {
|
10702
10784
|
immediate: !0
|
10703
10785
|
});
|
10704
|
-
((
|
10786
|
+
((G = m.value) == null ? void 0 : G.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
10705
10787
|
}
|
10706
|
-
async function
|
10707
|
-
|
10788
|
+
async function ee() {
|
10789
|
+
I.value.kgWidth = z.value, F.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
10708
10790
|
}
|
10709
10791
|
function se() {
|
10710
10792
|
switch (!0) {
|
@@ -10722,8 +10804,8 @@ const getProps$p = () => ({
|
|
10722
10804
|
break;
|
10723
10805
|
}
|
10724
10806
|
}
|
10725
|
-
async function
|
10726
|
-
var
|
10807
|
+
async function oe() {
|
10808
|
+
var N, G;
|
10727
10809
|
try {
|
10728
10810
|
if (await i.store.emit(s.formID, "beforeOk", {
|
10729
10811
|
isCreating: s.isCreating.value,
|
@@ -10736,11 +10818,11 @@ const getProps$p = () => ({
|
|
10736
10818
|
}))
|
10737
10819
|
return;
|
10738
10820
|
try {
|
10739
|
-
await ((
|
10740
|
-
} catch (
|
10741
|
-
KgUtil.throwIfNotFormError(
|
10821
|
+
await ((N = i.formRef.value) == null ? void 0 : N.validate());
|
10822
|
+
} catch (te) {
|
10823
|
+
KgUtil.throwIfNotFormError(te);
|
10742
10824
|
}
|
10743
|
-
if (await ((
|
10825
|
+
if (await ((G = i.formRef.value) == null ? void 0 : G.validate()), await i.store.emit(s.formID, "afterValidate", {
|
10744
10826
|
isCreating: s.isCreating.value,
|
10745
10827
|
isUpdating: s.isUpdating.value,
|
10746
10828
|
isCopying: s.isCopying.value,
|
@@ -10752,26 +10834,26 @@ const getProps$p = () => ({
|
|
10752
10834
|
return;
|
10753
10835
|
switch (!0) {
|
10754
10836
|
case s.isCreating.value:
|
10755
|
-
await
|
10837
|
+
await fe();
|
10756
10838
|
break;
|
10757
10839
|
case s.isUpdating.value:
|
10758
|
-
await
|
10840
|
+
await ce();
|
10759
10841
|
break;
|
10760
10842
|
case s.isCopying.value:
|
10761
|
-
await
|
10843
|
+
await ne();
|
10762
10844
|
break;
|
10763
10845
|
case s.isDeleting.value:
|
10764
|
-
await
|
10846
|
+
await ue();
|
10765
10847
|
break;
|
10766
10848
|
}
|
10767
|
-
} catch (
|
10768
|
-
KgUtil.throwIfNotFormError(
|
10849
|
+
} catch (Y) {
|
10850
|
+
KgUtil.throwIfNotFormError(Y);
|
10769
10851
|
}
|
10770
10852
|
}
|
10771
|
-
async function
|
10772
|
-
var
|
10773
|
-
const
|
10774
|
-
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) {
|
10775
10857
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10776
10858
|
VarButton: s.varButtonCreate.value
|
10777
10859
|
});
|
@@ -10779,7 +10861,7 @@ const getProps$p = () => ({
|
|
10779
10861
|
}
|
10780
10862
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
10781
10863
|
try {
|
10782
|
-
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));
|
10783
10865
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10784
10866
|
isCreating: s.isCreating.value,
|
10785
10867
|
isUpdating: s.isUpdating.value,
|
@@ -10788,16 +10870,16 @@ const getProps$p = () => ({
|
|
10788
10870
|
row: o.selectedFirstRow.value,
|
10789
10871
|
rows: o.selectedRows.value,
|
10790
10872
|
model: i.model,
|
10791
|
-
params:
|
10792
|
-
data:
|
10873
|
+
params: re,
|
10874
|
+
data: le
|
10793
10875
|
}))
|
10794
10876
|
return;
|
10795
10877
|
await httpClient().request({
|
10796
|
-
method: (ae = (
|
10797
|
-
url:
|
10798
|
-
params:
|
10799
|
-
data:
|
10800
|
-
}), ((
|
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", {
|
10801
10883
|
isCreating: s.isCreating.value,
|
10802
10884
|
isUpdating: s.isUpdating.value,
|
10803
10885
|
isCopying: s.isCopying.value,
|
@@ -10805,16 +10887,16 @@ const getProps$p = () => ({
|
|
10805
10887
|
row: o.selectedFirstRow.value,
|
10806
10888
|
model: i.model
|
10807
10889
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
10808
|
-
} catch (
|
10809
|
-
console.error(
|
10890
|
+
} catch (re) {
|
10891
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10810
10892
|
} finally {
|
10811
10893
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
10812
10894
|
}
|
10813
10895
|
}
|
10814
|
-
async function
|
10815
|
-
var
|
10816
|
-
const
|
10817
|
-
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) {
|
10818
10900
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10819
10901
|
VarButton: s.varButtonUpdate.value
|
10820
10902
|
});
|
@@ -10822,7 +10904,7 @@ const getProps$p = () => ({
|
|
10822
10904
|
}
|
10823
10905
|
try {
|
10824
10906
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
10825
|
-
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));
|
10826
10908
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10827
10909
|
isCreating: s.isCreating.value,
|
10828
10910
|
isUpdating: s.isUpdating.value,
|
@@ -10831,16 +10913,16 @@ const getProps$p = () => ({
|
|
10831
10913
|
row: o.selectedRow.value,
|
10832
10914
|
rows: o.selectedRows.value,
|
10833
10915
|
model: i.model,
|
10834
|
-
params:
|
10835
|
-
data:
|
10916
|
+
params: re,
|
10917
|
+
data: le
|
10836
10918
|
}))
|
10837
10919
|
return;
|
10838
10920
|
await httpClient().request({
|
10839
|
-
method: (ae = (
|
10840
|
-
url:
|
10841
|
-
params:
|
10842
|
-
data:
|
10843
|
-
}), ((
|
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", {
|
10844
10926
|
isCreating: s.isCreating.value,
|
10845
10927
|
isUpdating: s.isUpdating.value,
|
10846
10928
|
isCopying: s.isCopying.value,
|
@@ -10848,16 +10930,16 @@ const getProps$p = () => ({
|
|
10848
10930
|
row: o.selectedFirstRow.value,
|
10849
10931
|
model: i.model
|
10850
10932
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
10851
|
-
} catch (
|
10852
|
-
console.error(
|
10933
|
+
} catch (re) {
|
10934
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10853
10935
|
} finally {
|
10854
10936
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
10855
10937
|
}
|
10856
10938
|
}
|
10857
|
-
async function
|
10858
|
-
var
|
10859
|
-
const
|
10860
|
-
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) {
|
10861
10943
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10862
10944
|
VarButton: s.varButtonCopy.value
|
10863
10945
|
});
|
@@ -10865,8 +10947,8 @@ const getProps$p = () => ({
|
|
10865
10947
|
}
|
10866
10948
|
try {
|
10867
10949
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
10868
|
-
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10869
|
-
...(
|
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 : {},
|
10870
10952
|
...toRaw(i.model.value)
|
10871
10953
|
}, s.formID, r));
|
10872
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", {
|
@@ -10882,11 +10964,11 @@ const getProps$p = () => ({
|
|
10882
10964
|
}))
|
10883
10965
|
return;
|
10884
10966
|
await httpClient().request({
|
10885
|
-
method: (
|
10886
|
-
url:
|
10967
|
+
method: (re = (ie = s.varButtonCopy.value) == null ? void 0 : ie.cmd_method) != null ? re : "POST",
|
10968
|
+
url: N,
|
10887
10969
|
params: ge.value,
|
10888
10970
|
data: pe.value
|
10889
|
-
}), ((
|
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", {
|
10890
10972
|
isCreating: s.isCreating.value,
|
10891
10973
|
isUpdating: s.isUpdating.value,
|
10892
10974
|
isCopying: s.isCopying.value,
|
@@ -10900,10 +10982,10 @@ const getProps$p = () => ({
|
|
10900
10982
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
10901
10983
|
}
|
10902
10984
|
}
|
10903
|
-
async function
|
10904
|
-
var
|
10905
|
-
const
|
10906
|
-
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) {
|
10907
10989
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10908
10990
|
VarButton: s.varButtonDelete.value
|
10909
10991
|
});
|
@@ -10911,12 +10993,12 @@ const getProps$p = () => ({
|
|
10911
10993
|
}
|
10912
10994
|
try {
|
10913
10995
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
10914
|
-
let
|
10915
|
-
ids: (J = (
|
10996
|
+
let re = ref({
|
10997
|
+
ids: (J = (Y = o.selectedRows.value) == null ? void 0 : Y.map((pe) => {
|
10916
10998
|
var me, _e, he;
|
10917
10999
|
return (he = pe[(_e = (me = s.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
|
10918
11000
|
})) != null ? J : []
|
10919
|
-
}),
|
11001
|
+
}), le = ref({});
|
10920
11002
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
10921
11003
|
isCreating: s.isCreating.value,
|
10922
11004
|
isUpdating: s.isUpdating.value,
|
@@ -10925,18 +11007,18 @@ const getProps$p = () => ({
|
|
10925
11007
|
row: o.selectedFirstRow.value,
|
10926
11008
|
rows: o.selectedRows.value,
|
10927
11009
|
model: i.model,
|
10928
|
-
params:
|
10929
|
-
data:
|
11010
|
+
params: re,
|
11011
|
+
data: le
|
10930
11012
|
}))
|
10931
11013
|
return;
|
10932
11014
|
await httpClient().request({
|
10933
|
-
method: (ae = (
|
10934
|
-
url:
|
10935
|
-
params:
|
10936
|
-
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
|
10937
11019
|
}, {
|
10938
11020
|
joinParamsToUrl: !0
|
10939
|
-
}), ((
|
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", {
|
10940
11022
|
isCreating: s.isCreating.value,
|
10941
11023
|
isUpdating: s.isUpdating.value,
|
10942
11024
|
isCopying: s.isCopying.value,
|
@@ -10944,52 +11026,52 @@ const getProps$p = () => ({
|
|
10944
11026
|
row: o.selectedFirstRow.value,
|
10945
11027
|
model: i.model
|
10946
11028
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
10947
|
-
} catch (
|
10948
|
-
console.error(
|
11029
|
+
} catch (re) {
|
11030
|
+
console.error(re), i.store.emit(s.formID, "error", re);
|
10949
11031
|
} finally {
|
10950
11032
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
10951
11033
|
}
|
10952
11034
|
}
|
10953
|
-
function de(
|
10954
|
-
var
|
10955
|
-
const
|
10956
|
-
return isFunction$2(
|
10957
|
-
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,
|
10958
11040
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10959
|
-
kgRules: i.rules.value[
|
10960
|
-
onKgSubmit:
|
11041
|
+
kgRules: i.rules.value[N.var_nam],
|
11042
|
+
onKgSubmit: oe
|
10961
11043
|
}, {
|
10962
11044
|
control: ({
|
10963
|
-
varName:
|
11045
|
+
varName: te,
|
10964
11046
|
props: ae,
|
10965
|
-
model:
|
10966
|
-
varVariableConfig:
|
10967
|
-
varProfileDetail:
|
11047
|
+
model: ie,
|
11048
|
+
varVariableConfig: re,
|
11049
|
+
varProfileDetail: le,
|
10968
11050
|
varSubmitField: ge
|
10969
|
-
}) =>
|
10970
|
-
varName:
|
11051
|
+
}) => G({
|
11052
|
+
varName: te,
|
10971
11053
|
props: ae,
|
10972
|
-
model:
|
10973
|
-
varVariableConfig:
|
10974
|
-
varProfileDetail:
|
11054
|
+
model: ie,
|
11055
|
+
varVariableConfig: re,
|
11056
|
+
varProfileDetail: le,
|
10975
11057
|
varSubmitField: ge
|
10976
11058
|
})
|
10977
11059
|
}) : createVNode(KgForm.Item, {
|
10978
|
-
kgVarName:
|
11060
|
+
kgVarName: N.var_nam,
|
10979
11061
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10980
|
-
kgRules: i.rules.value[
|
10981
|
-
onKgSubmit:
|
11062
|
+
kgRules: i.rules.value[N.var_nam],
|
11063
|
+
onKgSubmit: oe
|
10982
11064
|
}, null);
|
10983
11065
|
}
|
10984
11066
|
function R() {
|
10985
|
-
let
|
11067
|
+
let N, G;
|
10986
11068
|
return createVNode(KgResizable, {
|
10987
11069
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10988
|
-
kgMinWidth:
|
10989
|
-
kgMaxWidth:
|
10990
|
-
kgWidth:
|
11070
|
+
kgMinWidth: L.value,
|
11071
|
+
kgMaxWidth: D.value,
|
11072
|
+
kgWidth: x.value,
|
10991
11073
|
kgDisabled: w.value,
|
10992
|
-
"onUpdate:kgWidth": (
|
11074
|
+
"onUpdate:kgWidth": (Y) => I.value.kgWidth = Y
|
10993
11075
|
}, {
|
10994
11076
|
default: () => [createVNode(Spin, {
|
10995
11077
|
spinning: d.value
|
@@ -10997,20 +11079,20 @@ const getProps$p = () => ({
|
|
10997
11079
|
default: () => [createVNode(KgForm, {
|
10998
11080
|
ref: i.formRef,
|
10999
11081
|
model: i.model.value,
|
11000
|
-
layout:
|
11082
|
+
layout: B.value,
|
11001
11083
|
labelCol: Q.value,
|
11002
11084
|
wrapperCol: q.value
|
11003
11085
|
}, {
|
11004
11086
|
default: () => [createVNode("div", {
|
11005
|
-
ref:
|
11087
|
+
ref: $
|
11006
11088
|
}, [k.value.length > 0 && createVNode(Row, {
|
11007
11089
|
gutter: 12
|
11008
|
-
}, _isSlot$8(
|
11009
|
-
default: () => [
|
11010
|
-
}), 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, {
|
11011
11093
|
gutter: 12
|
11012
|
-
}, _isSlot$8(
|
11013
|
-
default: () => [
|
11094
|
+
}, _isSlot$8(G = M.value.map(de)) ? G : {
|
11095
|
+
default: () => [G]
|
11014
11096
|
}), u.value && createVNode("div", {
|
11015
11097
|
style: "text-align: center; padding: 6px 0 12px;"
|
11016
11098
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11018,34 +11100,34 @@ const getProps$p = () => ({
|
|
11018
11100
|
})]
|
11019
11101
|
});
|
11020
11102
|
}
|
11021
|
-
function
|
11022
|
-
let
|
11103
|
+
function H() {
|
11104
|
+
let N, G;
|
11023
11105
|
return createVNode("div", null, [createVNode(Button, {
|
11024
11106
|
type: "primary",
|
11025
11107
|
ghost: !P.value,
|
11026
11108
|
disabled: P.value,
|
11027
11109
|
onClick: se
|
11028
|
-
}, _isSlot$8(
|
11029
|
-
default: () => [
|
11110
|
+
}, _isSlot$8(N = n.t("kg.cancel")) ? N : {
|
11111
|
+
default: () => [N]
|
11030
11112
|
}), createVNode(Button, {
|
11031
11113
|
type: "primary",
|
11032
11114
|
disabled: A.value,
|
11033
11115
|
loading: E.value,
|
11034
11116
|
danger: !!s.isDeleting.value,
|
11035
|
-
onClick:
|
11036
|
-
}, _isSlot$8(
|
11037
|
-
default: () => [
|
11117
|
+
onClick: oe
|
11118
|
+
}, _isSlot$8(G = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? G : {
|
11119
|
+
default: () => [G]
|
11038
11120
|
})]);
|
11039
11121
|
}
|
11040
|
-
function
|
11122
|
+
function X() {
|
11041
11123
|
return createVNode("div", {
|
11042
|
-
title:
|
11043
|
-
}, [
|
11124
|
+
title: V.title.value
|
11125
|
+
}, [V.title.value]);
|
11044
11126
|
}
|
11045
|
-
function
|
11127
|
+
function W() {
|
11046
11128
|
return createVNode(KgSubmitHeader, {
|
11047
|
-
isFullscreen:
|
11048
|
-
"onUpdate:isFullscreen": (
|
11129
|
+
isFullscreen: F.isFullscreen,
|
11130
|
+
"onUpdate:isFullscreen": (N) => F.isFullscreen = N,
|
11049
11131
|
kgShowFullscreenButton: !u.value,
|
11050
11132
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11051
11133
|
onKgCancel: se
|
@@ -11054,20 +11136,20 @@ const getProps$p = () => ({
|
|
11054
11136
|
return onUnmounted(() => {
|
11055
11137
|
i.store.dispose(s.formID);
|
11056
11138
|
}), () => createVNode(Drawer, {
|
11057
|
-
visible:
|
11139
|
+
visible: U.value,
|
11058
11140
|
placement: "right",
|
11059
11141
|
closable: !1,
|
11060
11142
|
maskClosable: !1,
|
11061
11143
|
keyboard: !1,
|
11062
11144
|
destroyOnClose: !0,
|
11063
|
-
width:
|
11064
|
-
class:
|
11145
|
+
width: O.value,
|
11146
|
+
class: K.value,
|
11065
11147
|
"kg-frm_id": s.formID
|
11066
11148
|
}, {
|
11067
|
-
title:
|
11068
|
-
extra:
|
11149
|
+
title: X,
|
11150
|
+
extra: W,
|
11069
11151
|
default: R,
|
11070
|
-
footer:
|
11152
|
+
footer: H
|
11071
11153
|
});
|
11072
11154
|
}
|
11073
11155
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11337,31 +11419,31 @@ const getProps$n = () => ({
|
|
11337
11419
|
var k;
|
11338
11420
|
try {
|
11339
11421
|
await ((k = C.value) == null ? void 0 : k.validate());
|
11340
|
-
} catch (
|
11341
|
-
KgUtil.throwIfNotFormError(
|
11422
|
+
} catch (M) {
|
11423
|
+
KgUtil.throwIfNotFormError(M);
|
11342
11424
|
}
|
11343
11425
|
return !1;
|
11344
11426
|
});
|
11345
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(() => {
|
11346
|
-
var k,
|
11347
|
-
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);
|
11348
11430
|
}), d = computed(() => {
|
11349
|
-
var k,
|
11350
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((
|
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);
|
11351
11433
|
}), m = computed(() => {
|
11352
|
-
var
|
11434
|
+
var M, E;
|
11353
11435
|
let k = "kg-table-td";
|
11354
|
-
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;
|
11355
11437
|
}), v = computed(() => {
|
11356
|
-
var
|
11438
|
+
var M, E, P, A;
|
11357
11439
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11358
11440
|
return "";
|
11359
11441
|
let k = e.kgValue;
|
11360
|
-
switch ((
|
11442
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
11361
11443
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11362
11444
|
{
|
11363
|
-
const
|
11364
|
-
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;
|
11365
11447
|
}
|
11366
11448
|
break;
|
11367
11449
|
}
|
@@ -11369,9 +11451,9 @@ const getProps$n = () => ({
|
|
11369
11451
|
`)), k;
|
11370
11452
|
}), C = ref(null);
|
11371
11453
|
function g(k) {
|
11372
|
-
var
|
11454
|
+
var M, E, P;
|
11373
11455
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11374
|
-
switch ((
|
11456
|
+
switch ((M = i.value) == null ? void 0 : M.display_type) {
|
11375
11457
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11376
11458
|
k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
|
11377
11459
|
break;
|
@@ -11411,35 +11493,35 @@ const getProps$n = () => ({
|
|
11411
11493
|
});
|
11412
11494
|
}
|
11413
11495
|
function b() {
|
11414
|
-
var k,
|
11496
|
+
var k, M, E, P, A, I, w, L, D, x;
|
11415
11497
|
if (u.value)
|
11416
11498
|
return y();
|
11417
11499
|
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
11418
11500
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11419
|
-
const
|
11501
|
+
const $ = KgUtil.tryParseJSON((M = i.value) == null ? void 0 : M.display_type_properties);
|
11420
11502
|
return createVNode(KgYesOrNo, {
|
11421
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E =
|
11422
|
-
kgNilAsFalse:
|
11503
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = $.yValue) != null ? E : 1),
|
11504
|
+
kgNilAsFalse: $.nilAsFalse
|
11423
11505
|
}, null);
|
11424
11506
|
}
|
11425
11507
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
11426
|
-
const
|
11427
|
-
if (
|
11428
|
-
const
|
11429
|
-
return
|
11430
|
-
color: (A =
|
11431
|
-
}, _isSlot$7(
|
11432
|
-
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]
|
11433
11515
|
}) : T();
|
11434
11516
|
} else
|
11435
11517
|
return T();
|
11436
11518
|
}
|
11437
11519
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11438
|
-
const
|
11439
|
-
if (
|
11440
|
-
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);
|
11441
11523
|
return v.value ? createVNode(Tag, {
|
11442
|
-
color: (w =
|
11524
|
+
color: (w = V == null ? void 0 : V.color) != null ? w : "default"
|
11443
11525
|
}, {
|
11444
11526
|
default: () => [v.value]
|
11445
11527
|
}) : T();
|
@@ -11447,11 +11529,11 @@ const getProps$n = () => ({
|
|
11447
11529
|
return T();
|
11448
11530
|
}
|
11449
11531
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11450
|
-
const
|
11532
|
+
const $ = KgUtil.tryParseJSON((L = i.value) == null ? void 0 : L.display_type_properties);
|
11451
11533
|
return createVNode(KgProgressA, {
|
11452
|
-
kgTextWidth:
|
11453
|
-
kgLeft: (
|
11454
|
-
kgRight: (
|
11534
|
+
kgTextWidth: $.textWidth,
|
11535
|
+
kgLeft: (D = e.kgRow) == null ? void 0 : D[$.leftColumn],
|
11536
|
+
kgRight: (x = e.kgRow) == null ? void 0 : x[$.rightColumn]
|
11455
11537
|
}, null);
|
11456
11538
|
}
|
11457
11539
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -11465,16 +11547,17 @@ const getProps$n = () => ({
|
|
11465
11547
|
}
|
11466
11548
|
}
|
11467
11549
|
function T(k = !1) {
|
11468
|
-
let
|
11469
|
-
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", {
|
11470
11552
|
innerHTML: v.value,
|
11471
|
-
class:
|
11553
|
+
class: M,
|
11472
11554
|
onClick: g
|
11473
11555
|
}, null);
|
11474
11556
|
}
|
11475
11557
|
return () => createVNode("div", {
|
11476
11558
|
class: m.value,
|
11477
|
-
title: v.value
|
11559
|
+
title: v.value,
|
11560
|
+
"kg-value": e.kgValue
|
11478
11561
|
}, [b()]);
|
11479
11562
|
}
|
11480
11563
|
}), KgTable_Info = "";
|
@@ -11564,8 +11647,8 @@ const getProps$m = () => ({
|
|
11564
11647
|
}) => {
|
11565
11648
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11566
11649
|
return l = watch(i, (u) => {
|
11567
|
-
var d, m, v, C, g, _, y, b, T, k,
|
11568
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (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);
|
11569
11652
|
}, {
|
11570
11653
|
immediate: !0
|
11571
11654
|
}), KgUtil.hideLoading(), !1;
|
@@ -11836,8 +11919,8 @@ const getProps$h = () => ({
|
|
11836
11919
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
11837
11920
|
}, [(T = n.currentVarGridDetails.value) == null ? void 0 : T.map((k) => createVNode("li", {
|
11838
11921
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11839
|
-
onClick: (
|
11840
|
-
|
11922
|
+
onClick: (M) => {
|
11923
|
+
M.preventDefault(), M.stopPropagation(), v(k);
|
11841
11924
|
},
|
11842
11925
|
style: {
|
11843
11926
|
display: l(k, o.value) ? "flex" : "none"
|
@@ -11849,8 +11932,8 @@ const getProps$h = () => ({
|
|
11849
11932
|
}, {
|
11850
11933
|
default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
|
11851
11934
|
}), createVNode(HolderOutlined$1, {
|
11852
|
-
onClick: (
|
11853
|
-
|
11935
|
+
onClick: (M) => {
|
11936
|
+
M.preventDefault(), M.stopPropagation();
|
11854
11937
|
}
|
11855
11938
|
}, null)]))])]);
|
11856
11939
|
},
|
@@ -11864,9 +11947,9 @@ const getProps$h = () => ({
|
|
11864
11947
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
11865
11948
|
}, {
|
11866
11949
|
default: () => {
|
11867
|
-
var
|
11950
|
+
var M;
|
11868
11951
|
let T, k;
|
11869
|
-
return createVNode(Fragment, null, [(
|
11952
|
+
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
|
11870
11953
|
var P;
|
11871
11954
|
return createVNode(Menu.Item, {
|
11872
11955
|
key: E.id,
|
@@ -11956,9 +12039,9 @@ function _useColumns(e) {
|
|
11956
12039
|
if (g.fix_right_flg === 1)
|
11957
12040
|
return "right";
|
11958
12041
|
}
|
11959
|
-
function
|
11960
|
-
var A,
|
11961
|
-
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);
|
11962
12045
|
}
|
11963
12046
|
function E() {
|
11964
12047
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
@@ -11972,7 +12055,7 @@ function _useColumns(e) {
|
|
11972
12055
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11973
12056
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11974
12057
|
fixed: k(),
|
11975
|
-
sorter:
|
12058
|
+
sorter: M(),
|
11976
12059
|
align: E(),
|
11977
12060
|
defaultSortOrder: T(),
|
11978
12061
|
customHeaderCell: () => ({
|
@@ -11982,11 +12065,11 @@ function _useColumns(e) {
|
|
11982
12065
|
}),
|
11983
12066
|
customCell: (A) => {
|
11984
12067
|
var w;
|
11985
|
-
const
|
12068
|
+
const I = r.store.getVarSubmitField(r.formID, _);
|
11986
12069
|
return {
|
11987
12070
|
"kg-frm_id": r.formID,
|
11988
12071
|
"kg-var_nam": _,
|
11989
|
-
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" : ""
|
11990
12073
|
};
|
11991
12074
|
}
|
11992
12075
|
};
|
@@ -12087,7 +12170,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12087
12170
|
kgDisabled: {
|
12088
12171
|
type: Boolean,
|
12089
12172
|
default: void 0
|
12090
|
-
}
|
12173
|
+
},
|
12174
|
+
kgRowClassName: Function
|
12091
12175
|
}), KgTable = defineComponent({
|
12092
12176
|
name: "KgTable",
|
12093
12177
|
props: getProps$g(),
|
@@ -12099,26 +12183,26 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12099
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();
|
12100
12184
|
i.onSearch(async ({
|
12101
12185
|
resetPageIndex: R
|
12102
|
-
}) => (
|
12186
|
+
}) => (B(R), !1)), i.onReset(async () => (B(!0), !1)), u.store.$onAction(async ({
|
12103
12187
|
name: R,
|
12104
|
-
args:
|
12188
|
+
args: H
|
12105
12189
|
}) => {
|
12106
12190
|
switch (R) {
|
12107
12191
|
case "setRowSelect":
|
12108
|
-
if (
|
12109
|
-
const
|
12192
|
+
if (H[0] === o.formID) {
|
12193
|
+
const X = H[1], W = H[2], N = X[u.id.value];
|
12110
12194
|
switch (!0) {
|
12111
|
-
case (
|
12112
|
-
|
12195
|
+
case (W && !x.value.includes(N)):
|
12196
|
+
z([...x.value, N]);
|
12113
12197
|
break;
|
12114
|
-
case (!
|
12115
|
-
|
12198
|
+
case (!W && x.value.includes(N)):
|
12199
|
+
z(without$1(x.value, N));
|
12116
12200
|
break;
|
12117
12201
|
}
|
12118
12202
|
}
|
12119
12203
|
break;
|
12120
12204
|
case "clearDatas":
|
12121
|
-
|
12205
|
+
H[0] === o.formID && (D.value = [], $.total = 0, K(), v.value = []);
|
12122
12206
|
break;
|
12123
12207
|
}
|
12124
12208
|
});
|
@@ -12130,239 +12214,239 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12130
12214
|
} = _useLoading(), y = ref(null);
|
12131
12215
|
_useResizeObserver(y), _useDragColumn(y, C);
|
12132
12216
|
const b = computed(() => {
|
12133
|
-
var R,
|
12134
|
-
return (
|
12217
|
+
var R, H;
|
12218
|
+
return (H = (R = o.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? H : null;
|
12135
12219
|
}), T = computed(() => {
|
12136
|
-
var
|
12220
|
+
var H, X, W, N, G, Y, J;
|
12137
12221
|
let R = {
|
12138
|
-
pageNo:
|
12139
|
-
pageSize:
|
12140
|
-
...
|
12141
|
-
...(
|
12222
|
+
pageNo: $.pageIndex,
|
12223
|
+
pageSize: $.pageSize,
|
12224
|
+
...V,
|
12225
|
+
...(X = (H = i.model) == null ? void 0 : H.value) != null ? X : {}
|
12142
12226
|
};
|
12143
12227
|
return o.varButtonSearch.value && (R = {
|
12144
12228
|
...R,
|
12145
|
-
...KgVarUtil.parseCommandParameter((
|
12146
|
-
}), (
|
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 = {
|
12147
12231
|
...R,
|
12148
|
-
...KgVarUtil.parseCommandParameter((
|
12232
|
+
...KgVarUtil.parseCommandParameter((Y = o.varGridConfig.value.cmd_prm) != null ? Y : "")
|
12149
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;
|
12150
12234
|
}), k = computed(() => {
|
12151
|
-
var R,
|
12152
|
-
if (!isNil((
|
12153
|
-
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;
|
12154
12238
|
if (!isNil(e.kgDisabled))
|
12155
12239
|
return e.kgDisabled;
|
12156
|
-
}),
|
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(() => {
|
12157
12241
|
var R;
|
12158
12242
|
return !!((R = n == null ? void 0 : n.KgTable) != null && R.expandedRowRender);
|
12159
12243
|
}), A = computed(() => {
|
12160
12244
|
var R;
|
12161
12245
|
return ((R = o.varGridConfig.value) == null ? void 0 : R.show_check_column_flg) === 1;
|
12162
|
-
}),
|
12246
|
+
}), I = computed(() => {
|
12163
12247
|
if (!!A.value)
|
12164
12248
|
return {
|
12165
12249
|
fixed: "left",
|
12166
12250
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
12167
12251
|
hideSelectAll: !u.isMultiSelect.value,
|
12168
|
-
selectedRowKeys:
|
12252
|
+
selectedRowKeys: x,
|
12169
12253
|
preserveSelectedRowKeys: !1,
|
12170
12254
|
getCheckboxProps: (R) => ({
|
12171
12255
|
disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value
|
12172
12256
|
}),
|
12173
12257
|
onSelect: (R) => Q(R),
|
12174
|
-
onChange: (R) => u.isMultiSelect.value &&
|
12258
|
+
onChange: (R) => u.isMultiSelect.value && z(R)
|
12175
12259
|
};
|
12176
12260
|
}), w = computed(() => {
|
12177
|
-
var
|
12261
|
+
var H;
|
12178
12262
|
let R = "kg-table";
|
12179
|
-
return ((
|
12180
|
-
}),
|
12181
|
-
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;
|
12182
12266
|
let R = "kg-table-bottom";
|
12183
|
-
return ((
|
12184
|
-
}),
|
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({
|
12185
12269
|
pageIndex: 1,
|
12186
12270
|
pageSize: 10,
|
12187
12271
|
total: 0
|
12188
|
-
}),
|
12272
|
+
}), V = reactive({
|
12189
12273
|
column: void 0,
|
12190
12274
|
order: void 0
|
12191
|
-
}),
|
12192
|
-
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}`));
|
12193
12277
|
}, {
|
12194
12278
|
immediate: !0
|
12195
12279
|
});
|
12196
12280
|
watch(u.pageSizeOptions, (R) => {
|
12197
|
-
R.length > 0 && !R.includes(
|
12198
|
-
}), watch([b, u.isReadAutomatically, i.isReady], ([R,
|
12199
|
-
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);
|
12200
12284
|
}, {
|
12201
12285
|
immediate: !0
|
12202
|
-
}), watch(o.isCreating, (R,
|
12203
|
-
R === !0 ?
|
12286
|
+
}), watch(o.isCreating, (R, H) => {
|
12287
|
+
R === !0 ? U() : R === !1 && H === !0 && F();
|
12204
12288
|
}), onUnmounted(() => {
|
12205
12289
|
u.store.dispose(o.formID);
|
12206
12290
|
});
|
12207
|
-
function
|
12291
|
+
function U() {
|
12208
12292
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
12209
12293
|
const R = {
|
12210
12294
|
[u.id.value]: KG_TABLE_TEMP_ID
|
12211
12295
|
};
|
12212
|
-
|
12296
|
+
D.value = [R, ...D.value], u.store.setSelectedRows(o.formID, [R]);
|
12213
12297
|
}
|
12214
12298
|
}
|
12215
|
-
function
|
12216
|
-
const R =
|
12217
|
-
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, []));
|
12218
12302
|
}
|
12219
|
-
function
|
12220
|
-
var
|
12221
|
-
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
12222
|
-
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) {
|
12223
12307
|
u.store.setSelectedRows(o.formID, []);
|
12224
12308
|
return;
|
12225
12309
|
}
|
12226
12310
|
switch (R == null ? void 0 : R.detail) {
|
12227
12311
|
case 1:
|
12228
|
-
switch ((
|
12312
|
+
switch ((X = o.varGridConfig.value) == null ? void 0 : X.operation_on_row_click) {
|
12229
12313
|
case 0:
|
12230
12314
|
break;
|
12231
12315
|
case 1:
|
12232
|
-
u.store.setSelectedRows(o.formID, [
|
12316
|
+
u.store.setSelectedRows(o.formID, [H]);
|
12233
12317
|
break;
|
12234
12318
|
}
|
12235
12319
|
break;
|
12236
12320
|
case 2:
|
12237
12321
|
u.store.emit(o.formID, "rowDoubleClick", {
|
12238
|
-
row:
|
12322
|
+
row: H
|
12239
12323
|
});
|
12240
12324
|
break;
|
12241
12325
|
}
|
12242
12326
|
}
|
12243
12327
|
}
|
12244
|
-
function
|
12328
|
+
function B(R = !1) {
|
12245
12329
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
12246
|
-
const
|
12247
|
-
|
12330
|
+
const H = watch(m, (W) => {
|
12331
|
+
W && (setTimeout(() => H()), X());
|
12248
12332
|
}, {
|
12249
12333
|
immediate: !0
|
12250
12334
|
});
|
12251
|
-
async function
|
12252
|
-
var
|
12335
|
+
async function X() {
|
12336
|
+
var W, N, G;
|
12253
12337
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !b.value) {
|
12254
12338
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12255
12339
|
VarButton: o.varButtonSearch.value
|
12256
12340
|
});
|
12257
12341
|
return;
|
12258
12342
|
}
|
12259
|
-
R && (
|
12343
|
+
R && ($.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
12260
12344
|
try {
|
12261
|
-
const
|
12345
|
+
const Y = KgUtil.parseParams(T.value, u.profileFormID.value, a), J = ref({});
|
12262
12346
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
12263
|
-
params:
|
12347
|
+
params: Y,
|
12264
12348
|
response: J
|
12265
12349
|
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : J.value = await httpClient().request({
|
12266
12350
|
method: "GET",
|
12267
12351
|
url: b.value,
|
12268
|
-
params:
|
12352
|
+
params: Y
|
12269
12353
|
}, {
|
12270
12354
|
successMessageMode: "none"
|
12271
12355
|
});
|
12272
|
-
let
|
12356
|
+
let te = ref([]), ae = ref(0);
|
12273
12357
|
switch (!0) {
|
12274
12358
|
case !J.value:
|
12275
|
-
|
12359
|
+
te.value = [], ae.value = 0;
|
12276
12360
|
break;
|
12277
12361
|
case isArrayLike(J.value):
|
12278
|
-
|
12362
|
+
te.value = J.value, ae.value = J.value.length;
|
12279
12363
|
break;
|
12280
12364
|
case ("total" in J.value && "records" in J.value):
|
12281
|
-
|
12365
|
+
te.value = (W = J.value.records) != null ? W : [], ae.value = (N = J.value.total) != null ? N : 0;
|
12282
12366
|
break;
|
12283
12367
|
}
|
12284
12368
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
12285
|
-
datas:
|
12369
|
+
datas: te,
|
12286
12370
|
total: ae
|
12287
|
-
}),
|
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", {
|
12288
12372
|
page: J.value,
|
12289
|
-
datas:
|
12373
|
+
datas: D
|
12290
12374
|
}), u.store.setIsRetrieved(o.formID, !0);
|
12291
|
-
} catch (
|
12292
|
-
throw
|
12375
|
+
} catch (Y) {
|
12376
|
+
throw Y;
|
12293
12377
|
} finally {
|
12294
12378
|
u.store.setIsRetrieving(o.formID, !1);
|
12295
12379
|
}
|
12296
12380
|
}
|
12297
12381
|
}
|
12298
|
-
function
|
12299
|
-
u.store.setSelectedRows(o.formID, R.map((
|
12300
|
-
var
|
12301
|
-
return (
|
12302
|
-
}).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));
|
12303
12387
|
}
|
12304
12388
|
function Q(R) {
|
12305
|
-
var
|
12389
|
+
var H, X;
|
12306
12390
|
switch (u.isMultiSelect.value) {
|
12307
12391
|
case !0:
|
12308
12392
|
{
|
12309
|
-
const
|
12310
|
-
|
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];
|
12311
12395
|
}
|
12312
12396
|
break;
|
12313
12397
|
case !1:
|
12314
12398
|
{
|
12315
|
-
const
|
12316
|
-
(
|
12399
|
+
const W = R[u.id.value];
|
12400
|
+
(X = x.value) != null && X.includes(W) ? x.value = [] : x.value = [W];
|
12317
12401
|
}
|
12318
12402
|
break;
|
12319
12403
|
}
|
12320
|
-
u.store.setSelectedRows(o.formID,
|
12321
|
-
var
|
12322
|
-
return (
|
12323
|
-
}).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));
|
12324
12408
|
}
|
12325
|
-
function q(R,
|
12326
|
-
|
12409
|
+
function q(R, H) {
|
12410
|
+
H.width = R, o.store.setVarGridDetailWidth(o.formID, H.dataIndex, R);
|
12327
12411
|
}
|
12328
|
-
async function
|
12329
|
-
var
|
12330
|
-
switch (
|
12412
|
+
async function Z(R, H, X, W) {
|
12413
|
+
var N;
|
12414
|
+
switch (W.action) {
|
12331
12415
|
case "sort":
|
12332
12416
|
{
|
12333
12417
|
await nextTick();
|
12334
|
-
let
|
12335
|
-
|
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);
|
12336
12420
|
}
|
12337
12421
|
break;
|
12338
12422
|
}
|
12339
12423
|
}
|
12340
|
-
function
|
12341
|
-
var
|
12342
|
-
const
|
12343
|
-
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) {
|
12344
12428
|
case 0:
|
12345
|
-
R ? v.value = uniq([...v.value,
|
12429
|
+
R ? v.value = uniq([...v.value, X]) : v.value = without$1(v.value, X);
|
12346
12430
|
break;
|
12347
12431
|
default:
|
12348
|
-
R ? v.value = [
|
12432
|
+
R ? v.value = [X] : v.value = [];
|
12349
12433
|
break;
|
12350
12434
|
}
|
12351
12435
|
}
|
12352
|
-
function se(R,
|
12353
|
-
|
12436
|
+
function se(R, H) {
|
12437
|
+
H !== $.pageSize ? ($.pageIndex = 1, $.pageSize = H) : $.pageIndex = R, B();
|
12354
12438
|
}
|
12355
|
-
function
|
12356
|
-
u.store.setSelectedRows(o.formID, [R].map((
|
12357
|
-
var
|
12358
|
-
return (
|
12359
|
-
}).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);
|
12360
12444
|
}
|
12361
|
-
function
|
12445
|
+
function fe({
|
12362
12446
|
title: R,
|
12363
|
-
column:
|
12447
|
+
column: H
|
12364
12448
|
}) {
|
12365
|
-
switch (
|
12449
|
+
switch (H.dataIndex) {
|
12366
12450
|
case "index":
|
12367
12451
|
return createVNode(KgTableSetting, {
|
12368
12452
|
kgDisabled: k.value
|
@@ -12373,7 +12457,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12373
12457
|
}, [R]);
|
12374
12458
|
}
|
12375
12459
|
}
|
12376
|
-
function
|
12460
|
+
function ce() {
|
12377
12461
|
var R;
|
12378
12462
|
return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
|
12379
12463
|
fixed: "bottom"
|
@@ -12383,18 +12467,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12383
12467
|
index: 0
|
12384
12468
|
}, null), A.value && createVNode(TableSummary.Cell, {
|
12385
12469
|
index: P.value ? 1 : 0
|
12386
|
-
}, null), C.value.map((
|
12387
|
-
const
|
12388
|
-
let
|
12389
|
-
return P.value && A.value ?
|
12390
|
-
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
|
12391
12475
|
}, {
|
12392
12476
|
default: () => {
|
12393
|
-
var
|
12394
|
-
return [(
|
12395
|
-
column:
|
12396
|
-
index:
|
12397
|
-
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
|
12398
12482
|
})];
|
12399
12483
|
}
|
12400
12484
|
});
|
@@ -12402,49 +12486,49 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12402
12486
|
})]
|
12403
12487
|
}) : null;
|
12404
12488
|
}
|
12405
|
-
function
|
12489
|
+
function ne({
|
12406
12490
|
column: R,
|
12407
|
-
index:
|
12408
|
-
record:
|
12409
|
-
text:
|
12410
|
-
value:
|
12491
|
+
index: H,
|
12492
|
+
record: X,
|
12493
|
+
text: W,
|
12494
|
+
value: N
|
12411
12495
|
}) {
|
12412
12496
|
var J;
|
12413
|
-
let
|
12414
|
-
R.customRender ?
|
12415
|
-
index:
|
12416
|
-
record:
|
12497
|
+
let G = "";
|
12498
|
+
R.customRender ? G = R.customRender({
|
12499
|
+
index: H,
|
12500
|
+
record: X,
|
12417
12501
|
column: R,
|
12418
|
-
text:
|
12419
|
-
value:
|
12420
|
-
renderIndex:
|
12421
|
-
}) :
|
12422
|
-
const
|
12423
|
-
kgRow:
|
12424
|
-
kgValue:
|
12502
|
+
text: W,
|
12503
|
+
value: N,
|
12504
|
+
renderIndex: H
|
12505
|
+
}) : G = N;
|
12506
|
+
const Y = createVNode(KgTableCell, {
|
12507
|
+
kgRow: X,
|
12508
|
+
kgValue: G,
|
12425
12509
|
kgVarName: R.dataIndex,
|
12426
|
-
onKgUpdateLinkClick: () =>
|
12510
|
+
onKgUpdateLinkClick: () => oe(X)
|
12427
12511
|
}, null);
|
12428
12512
|
if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
|
12429
|
-
const
|
12513
|
+
const te = R.dataIndex ? o.store.getVarGridDetail(o.formID, R.dataIndex) : null;
|
12430
12514
|
return n.KgTable.bodyCell({
|
12431
12515
|
column: R,
|
12432
|
-
index:
|
12433
|
-
record:
|
12434
|
-
text:
|
12435
|
-
value:
|
12436
|
-
row:
|
12437
|
-
varGridDetail:
|
12438
|
-
defaultRender:
|
12516
|
+
index: H,
|
12517
|
+
record: X,
|
12518
|
+
text: W,
|
12519
|
+
value: N,
|
12520
|
+
row: X,
|
12521
|
+
varGridDetail: te,
|
12522
|
+
defaultRender: Y
|
12439
12523
|
});
|
12440
12524
|
} else
|
12441
|
-
return
|
12525
|
+
return Y;
|
12442
12526
|
}
|
12443
|
-
function
|
12527
|
+
function ue() {
|
12444
12528
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
|
12445
12529
|
}
|
12446
12530
|
return () => {
|
12447
|
-
var R;
|
12531
|
+
var R, H, X;
|
12448
12532
|
return createVNode("div", {
|
12449
12533
|
class: w.value,
|
12450
12534
|
"kg-frm_id": o.formID,
|
@@ -12459,42 +12543,43 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12459
12543
|
pagination: !1,
|
12460
12544
|
showSorterTooltip: !1,
|
12461
12545
|
columns: C.value,
|
12462
|
-
dataSource:
|
12546
|
+
dataSource: D.value,
|
12463
12547
|
loading: _.value,
|
12464
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,
|
12465
12550
|
expandColumnWidth: 28,
|
12466
12551
|
expandedRowKeys: v.value,
|
12467
|
-
rowSelection:
|
12468
|
-
customRow: (
|
12469
|
-
onClick: (
|
12552
|
+
rowSelection: I.value,
|
12553
|
+
customRow: (W) => ({
|
12554
|
+
onClick: (N) => K(N, W)
|
12470
12555
|
}),
|
12471
12556
|
onResizeColumn: q,
|
12472
|
-
onChange:
|
12473
|
-
onExpand:
|
12557
|
+
onChange: Z,
|
12558
|
+
onExpand: ee
|
12474
12559
|
}, {
|
12475
|
-
headerCell:
|
12476
|
-
bodyCell:
|
12477
|
-
emptyText:
|
12478
|
-
expandedRowRender: (
|
12479
|
-
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
|
12480
12565
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
12481
|
-
class:
|
12566
|
+
class: L.value
|
12482
12567
|
}, [createVNode("div", {
|
12483
12568
|
class: "left"
|
12484
12569
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
12485
|
-
kgShowClearCheck:
|
12486
|
-
kgShowClearTable:
|
12487
|
-
kgShowLocate:
|
12488
|
-
kgTotal:
|
12489
|
-
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
|
12490
12575
|
}, null)]), createVNode("div", {
|
12491
12576
|
class: "right"
|
12492
12577
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
12493
12578
|
size: "default",
|
12494
|
-
current:
|
12495
|
-
pageSize:
|
12496
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
12497
|
-
total:
|
12579
|
+
current: $.pageIndex,
|
12580
|
+
pageSize: $.pageSize,
|
12581
|
+
pageSizeOptions: u.pageSizeOptions.value.map((W) => String(W)),
|
12582
|
+
total: $.total,
|
12498
12583
|
showSizeChanger: !0,
|
12499
12584
|
showQuickJumper: !1,
|
12500
12585
|
hideOnSinglePage: !1,
|
@@ -12502,12 +12587,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12502
12587
|
locale: {
|
12503
12588
|
page: ""
|
12504
12589
|
},
|
12505
|
-
showTotal: (
|
12506
|
-
from:
|
12507
|
-
to:
|
12508
|
-
total:
|
12590
|
+
showTotal: (W, N) => l.t("kg.KgTable.totalText", {
|
12591
|
+
from: N[0],
|
12592
|
+
to: N[1],
|
12593
|
+
total: W
|
12509
12594
|
}),
|
12510
|
-
onChange: (
|
12595
|
+
onChange: (W, N) => se(W, N)
|
12511
12596
|
}, null)])])]);
|
12512
12597
|
};
|
12513
12598
|
}
|
@@ -12727,8 +12812,8 @@ const KgButtonCreate = defineComponent({
|
|
12727
12812
|
attrs: a
|
12728
12813
|
}) {
|
12729
12814
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
12730
|
-
var T, k,
|
12731
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((
|
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;
|
12732
12817
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
12733
12818
|
async function m() {
|
12734
12819
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -12750,7 +12835,7 @@ const KgButtonCreate = defineComponent({
|
|
12750
12835
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12751
12836
|
}
|
12752
12837
|
function y() {
|
12753
|
-
var T, k,
|
12838
|
+
var T, k, M, E;
|
12754
12839
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
|
12755
12840
|
type: "primary",
|
12756
12841
|
disabled: u.value,
|
@@ -12758,7 +12843,7 @@ const KgButtonCreate = defineComponent({
|
|
12758
12843
|
class: a.class,
|
12759
12844
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
12760
12845
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
12761
|
-
"kg-var_nam": (
|
12846
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
12762
12847
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
12763
12848
|
}, {
|
12764
12849
|
default: () => [g(), _()]
|
@@ -12845,8 +12930,8 @@ const KgButtonCreate = defineComponent({
|
|
12845
12930
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
12846
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;
|
12847
12932
|
}), c = computed(() => {
|
12848
|
-
var C, g, _, y, b, T, k,
|
12849
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((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;
|
12850
12935
|
}), u = ref(!1);
|
12851
12936
|
async function d() {
|
12852
12937
|
var C, g;
|
@@ -12927,8 +13012,8 @@ const KgButtonCreate = defineComponent({
|
|
12927
13012
|
...KgVarUtil.parseCommandParameter((T = (b = o.value) == null ? void 0 : b.cmd_prm) != null ? T : "")
|
12928
13013
|
}), _;
|
12929
13014
|
}), d = computed(() => {
|
12930
|
-
var _, y, b, T, k,
|
12931
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((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;
|
12932
13017
|
}), m = ref(!1);
|
12933
13018
|
async function v(_) {
|
12934
13019
|
if (!i.value)
|
@@ -13015,8 +13100,8 @@ const KgButtonCreate = defineComponent({
|
|
13015
13100
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
13016
13101
|
}), C;
|
13017
13102
|
}), c = computed(() => {
|
13018
|
-
var C, g, _, y, b, T, k,
|
13019
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = s.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((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;
|
13020
13105
|
}), u = ref(!1);
|
13021
13106
|
async function d() {
|
13022
13107
|
var C, g;
|
@@ -13092,22 +13177,22 @@ const KgButtonCreate = defineComponent({
|
|
13092
13177
|
}
|
13093
13178
|
let m = null;
|
13094
13179
|
const v = async () => {
|
13095
|
-
var b, T, k,
|
13180
|
+
var b, T, k, M, E, P;
|
13096
13181
|
m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13097
13182
|
const y = s.selectedRows.value;
|
13098
13183
|
try {
|
13099
13184
|
const A = await httpClient().request({
|
13100
13185
|
method: (T = (b = e.kgButton) == null ? void 0 : b.cmd_method) != null ? T : "POST",
|
13101
13186
|
url: d,
|
13102
|
-
params: KgVarUtil.parseCommandParameter((
|
13187
|
+
params: KgVarUtil.parseCommandParameter((M = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? M : ""),
|
13103
13188
|
data: y != null ? y : []
|
13104
13189
|
});
|
13105
13190
|
if (((E = e.kgButton) == null ? void 0 : E.reload_all_after_done_flg) === 1) {
|
13106
13191
|
if (((P = e.kgButton) == null ? void 0 : P.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
13107
13192
|
datas: w
|
13108
13193
|
}) => {
|
13109
|
-
const
|
13110
|
-
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;
|
13111
13196
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
13112
13197
|
button: e.kgButton,
|
13113
13198
|
data: A
|
@@ -13220,8 +13305,8 @@ const KgButtonCreate = defineComponent({
|
|
13220
13305
|
}
|
13221
13306
|
});
|
13222
13307
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13223
|
-
var T, k,
|
13224
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((
|
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;
|
13225
13310
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
13226
13311
|
async function m() {
|
13227
13312
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -13246,7 +13331,7 @@ const KgButtonCreate = defineComponent({
|
|
13246
13331
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13247
13332
|
}
|
13248
13333
|
function y() {
|
13249
|
-
var T, k,
|
13334
|
+
var T, k, M, E;
|
13250
13335
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
|
13251
13336
|
type: "primary",
|
13252
13337
|
disabled: u.value,
|
@@ -13255,7 +13340,7 @@ const KgButtonCreate = defineComponent({
|
|
13255
13340
|
class: a.class,
|
13256
13341
|
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
13257
13342
|
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
13258
|
-
"kg-var_nam": (
|
13343
|
+
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
13259
13344
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
13260
13345
|
}, {
|
13261
13346
|
default: () => [g(), _()]
|
@@ -13848,7 +13933,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13848
13933
|
row: b,
|
13849
13934
|
model: T
|
13850
13935
|
}) => {
|
13851
|
-
var
|
13936
|
+
var M, E, P;
|
13852
13937
|
const k = o.store.getSystemVarProfileDetails(o.formID);
|
13853
13938
|
switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
13854
13939
|
case g:
|
@@ -13865,16 +13950,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13865
13950
|
}
|
13866
13951
|
});
|
13867
13952
|
i.value = i.value.map((w) => {
|
13868
|
-
var
|
13869
|
-
const
|
13870
|
-
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 ? {
|
13871
13956
|
...w,
|
13872
|
-
...
|
13957
|
+
...L,
|
13873
13958
|
id: w.id
|
13874
13959
|
} : w;
|
13875
13960
|
});
|
13876
|
-
const
|
13877
|
-
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);
|
13878
13963
|
} catch (A) {
|
13879
13964
|
throw A;
|
13880
13965
|
} finally {
|
@@ -13929,41 +14014,41 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13929
14014
|
}) => createVNode(Transfer, {
|
13930
14015
|
dataSource: i.value,
|
13931
14016
|
targetKeys: c.value,
|
13932
|
-
"onUpdate:targetKeys": (
|
13933
|
-
rowKey: (
|
14017
|
+
"onUpdate:targetKeys": (M) => c.value = M,
|
14018
|
+
rowKey: (M) => M.id,
|
13934
14019
|
showSearch: !0,
|
13935
14020
|
showSelectAll: !1,
|
13936
14021
|
searchPlaceholder: " ",
|
13937
|
-
filterOption: (
|
14022
|
+
filterOption: (M, E) => {
|
13938
14023
|
var P;
|
13939
|
-
return !!((P = E.var_nam) != null && P.includes(
|
14024
|
+
return !!((P = E.var_nam) != null && P.includes(M));
|
13940
14025
|
}
|
13941
14026
|
}, {
|
13942
14027
|
children: ({
|
13943
|
-
direction:
|
14028
|
+
direction: M,
|
13944
14029
|
filteredItems: E,
|
13945
14030
|
selectedKeys: P,
|
13946
14031
|
disabled: A,
|
13947
|
-
onItemSelectAll:
|
14032
|
+
onItemSelectAll: I,
|
13948
14033
|
onItemSelect: w
|
13949
14034
|
}) => createVNode(Table, {
|
13950
14035
|
pagination: !1,
|
13951
14036
|
class: "kg-flex-table",
|
13952
14037
|
size: "small",
|
13953
14038
|
scroll: {
|
13954
|
-
x:
|
14039
|
+
x: M === "left" ? "370px" : "1244px",
|
13955
14040
|
y: "auto"
|
13956
14041
|
},
|
13957
|
-
columns:
|
14042
|
+
columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
13958
14043
|
rowKey: "id",
|
13959
14044
|
dataSource: E,
|
13960
|
-
customRow: (
|
13961
|
-
onClick: (
|
14045
|
+
customRow: (L) => ({
|
14046
|
+
onClick: (D) => C(D, L, M, P)
|
13962
14047
|
}),
|
13963
14048
|
rowSelection: m({
|
13964
14049
|
disabled: A,
|
13965
14050
|
selectedKeys: P,
|
13966
|
-
onItemSelectAll:
|
14051
|
+
onItemSelectAll: I,
|
13967
14052
|
onItemSelect: w
|
13968
14053
|
})
|
13969
14054
|
}, null)
|
@@ -13984,10 +14069,10 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13984
14069
|
disabled: g || T.disabled
|
13985
14070
|
}),
|
13986
14071
|
onSelectAll(T, k) {
|
13987
|
-
const
|
14072
|
+
const M = k.filter((E) => !E.disabled).map(({
|
13988
14073
|
key: E
|
13989
14074
|
}) => E);
|
13990
|
-
y(
|
14075
|
+
y(M, T);
|
13991
14076
|
},
|
13992
14077
|
onSelect({
|
13993
14078
|
key: T
|
@@ -14201,23 +14286,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14201
14286
|
});
|
14202
14287
|
_useLayoutHeaderResizeObserver();
|
14203
14288
|
const g = _useFormModel(v, C), _ = computed(() => {
|
14204
|
-
var
|
14205
|
-
if (!isNil((
|
14206
|
-
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;
|
14207
14292
|
if (!isNil(e.kgDisabled))
|
14208
14293
|
return e.kgDisabled;
|
14209
14294
|
}), y = computed(() => {
|
14210
|
-
var
|
14211
|
-
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);
|
14212
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({
|
14213
14298
|
visible: !1
|
14214
|
-
}),
|
14215
|
-
var
|
14216
|
-
if (n.t((
|
14217
|
-
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;
|
14218
14303
|
}), P = computed(() => {
|
14219
|
-
var
|
14220
|
-
switch ((
|
14304
|
+
var K;
|
14305
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
14221
14306
|
case 1:
|
14222
14307
|
return !0;
|
14223
14308
|
case 0:
|
@@ -14225,66 +14310,66 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14225
14310
|
default:
|
14226
14311
|
return !0;
|
14227
14312
|
}
|
14228
|
-
}), A = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)),
|
14229
|
-
let
|
14230
|
-
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;
|
14231
14316
|
});
|
14232
14317
|
onUnmounted(() => {
|
14233
14318
|
s.store.dispose(n.formID);
|
14234
14319
|
});
|
14235
|
-
async function
|
14320
|
+
async function L(K = !1) {
|
14236
14321
|
y.value || (o.value ? v.value && v.value.validate().then(async () => {
|
14237
14322
|
await s.store.emit(n.formID, "search", {
|
14238
|
-
resetPageIndex:
|
14323
|
+
resetPageIndex: K
|
14239
14324
|
});
|
14240
|
-
}).catch((
|
14325
|
+
}).catch((B) => {
|
14241
14326
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
14242
|
-
e:
|
14327
|
+
e: B
|
14243
14328
|
});
|
14244
14329
|
}) : await s.store.emit(n.formID, "search", {
|
14245
|
-
resetPageIndex:
|
14330
|
+
resetPageIndex: K
|
14246
14331
|
}));
|
14247
14332
|
}
|
14248
|
-
s.store.setSearchFn(n.formID,
|
14249
|
-
async function
|
14333
|
+
s.store.setSearchFn(n.formID, L);
|
14334
|
+
async function D() {
|
14250
14335
|
g.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
14251
14336
|
await s.store.emit(n.formID, "reset", {});
|
14252
|
-
}).catch((
|
14337
|
+
}).catch((K) => {
|
14253
14338
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
14254
|
-
e:
|
14339
|
+
e: K
|
14255
14340
|
});
|
14256
14341
|
}) : await s.store.emit(n.formID, "reset", {});
|
14257
14342
|
}
|
14258
|
-
s.store.setResetFn(n.formID,
|
14259
|
-
function
|
14260
|
-
return
|
14343
|
+
s.store.setResetFn(n.formID, D);
|
14344
|
+
function x() {
|
14345
|
+
return L(!0), Promise.resolve(!0);
|
14261
14346
|
}
|
14262
|
-
function
|
14263
|
-
var
|
14347
|
+
function $() {
|
14348
|
+
var K;
|
14264
14349
|
return createVNode("div", {
|
14265
14350
|
class: "title",
|
14266
|
-
onClick:
|
14267
|
-
}, [((
|
14351
|
+
onClick: F
|
14352
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
14268
14353
|
class: "kg-search-title-left",
|
14269
|
-
onClick: (
|
14270
|
-
|
14354
|
+
onClick: (B) => {
|
14355
|
+
B.stopPropagation(), B.preventDefault();
|
14271
14356
|
}
|
14272
|
-
}, [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")])]);
|
14273
14358
|
}
|
14274
|
-
function
|
14275
|
-
var
|
14276
|
-
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, {
|
14277
14362
|
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
14278
14363
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
14279
14364
|
disabled: b.value,
|
14280
14365
|
class: "kg-search-profile-master-select"
|
14281
14366
|
}, {
|
14282
14367
|
default: () => {
|
14283
|
-
var q,
|
14284
|
-
return (
|
14285
|
-
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
|
14286
14371
|
}, {
|
14287
|
-
default: () => [n.t(
|
14372
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
14288
14373
|
}));
|
14289
14374
|
},
|
14290
14375
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -14304,46 +14389,46 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14304
14389
|
hostFormID: n.formID
|
14305
14390
|
}, null)]);
|
14306
14391
|
}
|
14307
|
-
function
|
14308
|
-
var
|
14309
|
-
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, {
|
14310
14395
|
type: "primary",
|
14311
14396
|
ghost: !y.value,
|
14312
14397
|
disabled: y.value,
|
14313
|
-
onClick:
|
14398
|
+
onClick: D,
|
14314
14399
|
class: "kg-search-btn-reset"
|
14315
14400
|
}, {
|
14316
14401
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
14317
14402
|
}), createVNode(KgButton.Item, {
|
14318
14403
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
14319
|
-
kgVarName: (
|
14404
|
+
kgVarName: (z = n.varButtonSearch.value) == null ? void 0 : z.var_nam,
|
14320
14405
|
kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
|
14321
14406
|
kgText: E.value,
|
14322
14407
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
14323
14408
|
kgPrimary: P.value,
|
14324
14409
|
kgLoading: T.value,
|
14325
|
-
onKgClick:
|
14410
|
+
onKgClick: x
|
14326
14411
|
}, null)]);
|
14327
14412
|
}
|
14328
|
-
function
|
14413
|
+
function U() {
|
14329
14414
|
return createVNode(Spin, {
|
14330
|
-
spinning:
|
14415
|
+
spinning: I.value
|
14331
14416
|
}, {
|
14332
14417
|
default: () => {
|
14333
|
-
var
|
14418
|
+
var K;
|
14334
14419
|
return [createVNode(KgForm, {
|
14335
14420
|
ref: v,
|
14336
|
-
model: (
|
14421
|
+
model: (K = s.model.value) != null ? K : {}
|
14337
14422
|
}, {
|
14338
14423
|
default: () => [createVNode(Row, {
|
14339
14424
|
gutter: 6
|
14340
14425
|
}, {
|
14341
14426
|
default: () => {
|
14342
|
-
var
|
14343
|
-
return [(
|
14344
|
-
kgVarName:
|
14427
|
+
var B;
|
14428
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((z) => createVNode(KgForm.Item, {
|
14429
|
+
kgVarName: z.var_nam,
|
14345
14430
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
14346
|
-
onKgSubmit: () =>
|
14431
|
+
onKgSubmit: () => L(!0)
|
14347
14432
|
}, null))];
|
14348
14433
|
}
|
14349
14434
|
})]
|
@@ -14351,12 +14436,12 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14351
14436
|
}
|
14352
14437
|
});
|
14353
14438
|
}
|
14354
|
-
function
|
14355
|
-
|
14439
|
+
function F() {
|
14440
|
+
M.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
|
14356
14441
|
}
|
14357
14442
|
return () => createVNode(KgResizable, {
|
14358
14443
|
kgHeight: C.value.kgHeight,
|
14359
|
-
"onUpdate:kgHeight": (
|
14444
|
+
"onUpdate:kgHeight": (K) => C.value.kgHeight = K,
|
14360
14445
|
kgMinHeight: m.value,
|
14361
14446
|
kgMaxHeight: d.value,
|
14362
14447
|
kgDisabled: !i.value,
|
@@ -14376,15 +14461,15 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14376
14461
|
}, [createVNode(Spin, {
|
14377
14462
|
spinning: A.value
|
14378
14463
|
}, {
|
14379
|
-
default: () => [
|
14464
|
+
default: () => [$(), createVNode("div", {
|
14380
14465
|
class: "ant-collapse-extra"
|
14381
|
-
}, [
|
14466
|
+
}, [O()])]
|
14382
14467
|
})])]
|
14383
14468
|
}), createVNode("div", {
|
14384
14469
|
class: "ant-collapse-content ant-collapse-content-active"
|
14385
14470
|
}, [createVNode("div", {
|
14386
14471
|
class: "ant-collapse-content-box"
|
14387
|
-
}, [
|
14472
|
+
}, [U()])])])])]
|
14388
14473
|
});
|
14389
14474
|
}
|
14390
14475
|
});
|
@@ -14450,13 +14535,13 @@ function useMagicKeys(e = {}) {
|
|
14450
14535
|
}
|
14451
14536
|
function v(g, _) {
|
14452
14537
|
var y, b;
|
14453
|
-
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);
|
14454
14539
|
k && (_ ? l.add(g.code) : l.delete(g.code));
|
14455
|
-
for (const E of
|
14540
|
+
for (const E of M)
|
14456
14541
|
u.add(E), d(E, _);
|
14457
14542
|
T === "meta" && !_ ? (c.forEach((E) => {
|
14458
14543
|
l.delete(E), d(E, !1);
|
14459
|
-
}), 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));
|
14460
14545
|
}
|
14461
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 }));
|
14462
14547
|
const C = new Proxy(i, {
|
@@ -14855,112 +14940,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14855
14940
|
columnWidth: 32,
|
14856
14941
|
hideSelectAll: !0,
|
14857
14942
|
selectedRowKeys: d,
|
14858
|
-
onSelect: (
|
14943
|
+
onSelect: (D) => P(D)
|
14859
14944
|
}), v = ref({
|
14860
14945
|
visible: !1
|
14861
14946
|
}), C = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), g = computed(() => {
|
14862
|
-
var
|
14863
|
-
return !!u.value || ((
|
14947
|
+
var D;
|
14948
|
+
return !!u.value || ((D = a.getSelectedVarCatalog) == null ? void 0 : D.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14864
14949
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
14865
|
-
watch(() => a.getSelectedVar, (
|
14866
|
-
|
14950
|
+
watch(() => a.getSelectedVar, (D) => {
|
14951
|
+
D ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
14867
14952
|
}, {
|
14868
14953
|
immediate: !0
|
14869
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
14870
|
-
var
|
14871
|
-
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();
|
14872
14957
|
});
|
14873
|
-
async function b(
|
14874
|
-
var
|
14958
|
+
async function b(D = !1) {
|
14959
|
+
var x, $, V;
|
14875
14960
|
n.value = !0;
|
14876
14961
|
try {
|
14877
14962
|
const {
|
14878
|
-
records:
|
14963
|
+
records: O
|
14879
14964
|
} = await List({
|
14880
14965
|
params: {
|
14881
14966
|
pageNo: 1,
|
14882
14967
|
pageSize: 999,
|
14883
14968
|
frm_id: e == null ? void 0 : e.value,
|
14884
|
-
var_nam: (
|
14969
|
+
var_nam: (x = a.getSelectedVar) == null ? void 0 : x.var_nam,
|
14885
14970
|
column: "frm_id,locale_id,cust_lvl",
|
14886
14971
|
order: "asc"
|
14887
14972
|
}
|
14888
14973
|
});
|
14889
|
-
if (u.value = null, c.value =
|
14890
|
-
const
|
14891
|
-
var
|
14892
|
-
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);
|
14893
14978
|
});
|
14894
|
-
a.setSelectedVarCatalog(
|
14979
|
+
a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
|
14895
14980
|
} else
|
14896
|
-
a.setSelectedVarCatalog((
|
14897
|
-
} catch (
|
14898
|
-
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);
|
14899
14984
|
} finally {
|
14900
14985
|
n.value = !1;
|
14901
14986
|
}
|
14902
14987
|
}
|
14903
14988
|
async function T() {
|
14904
|
-
var
|
14989
|
+
var D, x, $;
|
14905
14990
|
try {
|
14906
|
-
s.value = !0, await ((
|
14907
|
-
const
|
14908
|
-
...(
|
14909
|
-
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
|
14910
14995
|
});
|
14911
|
-
|
14912
|
-
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
|
14913
14998
|
}, {
|
14914
14999
|
successMessageMode: "none"
|
14915
15000
|
}), message.success({
|
14916
15001
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14917
15002
|
}), await b()) : (await Edit({
|
14918
|
-
data:
|
15003
|
+
data: V
|
14919
15004
|
}, {
|
14920
15005
|
successMessageMode: "none"
|
14921
15006
|
}), message.success({
|
14922
15007
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
14923
15008
|
}), await b(!0)) : (await Add({
|
14924
|
-
data:
|
15009
|
+
data: V
|
14925
15010
|
}, {
|
14926
15011
|
successMessageMode: "none"
|
14927
15012
|
}), message.success({
|
14928
15013
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14929
15014
|
}), await b()), r.retrieve(e == null ? void 0 : e.value);
|
14930
|
-
} catch (
|
14931
|
-
KgUtil.throwIfNotFormError(
|
15015
|
+
} catch (V) {
|
15016
|
+
KgUtil.throwIfNotFormError(V);
|
14932
15017
|
} finally {
|
14933
15018
|
s.value = !1;
|
14934
15019
|
}
|
14935
15020
|
}
|
14936
15021
|
function k({
|
14937
|
-
isAllForm:
|
14938
|
-
isAllLanguage:
|
15022
|
+
isAllForm: D,
|
15023
|
+
isAllLanguage: x
|
14939
15024
|
}) {
|
14940
|
-
var
|
15025
|
+
var $, V, O;
|
14941
15026
|
u.value = new VarCatalog({
|
14942
15027
|
id: "",
|
14943
15028
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
14944
|
-
grp_nam: (
|
14945
|
-
var_nam: (
|
14946
|
-
frm_id:
|
14947
|
-
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,
|
14948
15033
|
var_text: ""
|
14949
15034
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
14950
15035
|
}
|
14951
|
-
function
|
14952
|
-
var
|
15036
|
+
function M() {
|
15037
|
+
var x;
|
14953
15038
|
c.value = without$1(c.value, u.value), u.value = null;
|
14954
|
-
const
|
14955
|
-
a.setSelectedVarCatalog(
|
15039
|
+
const D = (x = c.value[0]) != null ? x : null;
|
15040
|
+
a.setSelectedVarCatalog(D), d.value = D ? [D.id] : [];
|
14956
15041
|
}
|
14957
15042
|
function E() {
|
14958
15043
|
KgUtil.confirm({
|
14959
15044
|
onOk: async () => {
|
14960
|
-
var
|
15045
|
+
var D;
|
14961
15046
|
await Delete({
|
14962
15047
|
params: {
|
14963
|
-
id: (
|
15048
|
+
id: (D = a.getSelectedVarCatalog) == null ? void 0 : D.id
|
14964
15049
|
}
|
14965
15050
|
}, {
|
14966
15051
|
successMessageMode: "none",
|
@@ -14971,19 +15056,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14971
15056
|
}
|
14972
15057
|
});
|
14973
15058
|
}
|
14974
|
-
function P(
|
14975
|
-
var
|
14976
|
-
((
|
15059
|
+
function P(D) {
|
15060
|
+
var x;
|
15061
|
+
((x = a.getSelectedVarCatalog) == null ? void 0 : x.id) !== D.id && (unref(u) ? KgUtil.confirm({
|
14977
15062
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
14978
15063
|
onOk: () => {
|
14979
|
-
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];
|
14980
15065
|
}
|
14981
|
-
}) : (a.setSelectedVarCatalog(unref(
|
15066
|
+
}) : (a.setSelectedVarCatalog(unref(D)), d.value = [D.id]));
|
14982
15067
|
}
|
14983
15068
|
function A() {
|
14984
15069
|
v.value.visible = !0;
|
14985
15070
|
}
|
14986
|
-
function
|
15071
|
+
function I() {
|
14987
15072
|
return createVNode("div", {
|
14988
15073
|
class: "buttons"
|
14989
15074
|
}, [createVNode(Button, {
|
@@ -15003,7 +15088,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15003
15088
|
})]);
|
15004
15089
|
}
|
15005
15090
|
function w() {
|
15006
|
-
let
|
15091
|
+
let D, x;
|
15007
15092
|
return createVNode("div", {
|
15008
15093
|
class: "form"
|
15009
15094
|
}, [createVNode(Form, {
|
@@ -15020,7 +15105,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15020
15105
|
}, {
|
15021
15106
|
default: () => [createVNode(Textarea, {
|
15022
15107
|
value: i.value.var_text,
|
15023
|
-
"onUpdate:value": (
|
15108
|
+
"onUpdate:value": ($) => i.value.var_text = $,
|
15024
15109
|
disabled: !a.getSelectedVarCatalog
|
15025
15110
|
}, null), createVNode("button", {
|
15026
15111
|
hidden: !0
|
@@ -15030,26 +15115,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15030
15115
|
class: "buttons"
|
15031
15116
|
}, [createVNode(Button, {
|
15032
15117
|
disabled: _.value,
|
15033
|
-
onClick:
|
15034
|
-
}, _isSlot(
|
15035
|
-
default: () => [
|
15118
|
+
onClick: M
|
15119
|
+
}, _isSlot(D = t.t("common.cancelText")) ? D : {
|
15120
|
+
default: () => [D]
|
15036
15121
|
}), createVNode(Button, {
|
15037
15122
|
loading: s.value,
|
15038
15123
|
disabled: y.value,
|
15039
15124
|
onClick: T,
|
15040
15125
|
type: "primary"
|
15041
|
-
}, _isSlot(
|
15042
|
-
default: () => [
|
15126
|
+
}, _isSlot(x = t.t("common.save")) ? x : {
|
15127
|
+
default: () => [x]
|
15043
15128
|
})])]);
|
15044
15129
|
}
|
15045
|
-
function
|
15046
|
-
var
|
15047
|
-
let
|
15048
|
-
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;
|
15049
15134
|
}
|
15050
15135
|
return () => createVNode("div", {
|
15051
15136
|
class: "kg-var-config-modal-var-var-catalog"
|
15052
|
-
}, [
|
15137
|
+
}, [I(), createVNode(Table, {
|
15053
15138
|
pagination: !1,
|
15054
15139
|
class: "kg-flex-table",
|
15055
15140
|
size: "small",
|
@@ -15061,14 +15146,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15061
15146
|
rowKey: "id",
|
15062
15147
|
dataSource: c.value,
|
15063
15148
|
loading: n.value,
|
15064
|
-
rowClassName:
|
15149
|
+
rowClassName: L,
|
15065
15150
|
rowSelection: m.value,
|
15066
|
-
customRow: (
|
15067
|
-
onClick: () => P(
|
15151
|
+
customRow: (D) => ({
|
15152
|
+
onClick: () => P(D)
|
15068
15153
|
})
|
15069
15154
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
15070
15155
|
visible: v.value.visible,
|
15071
|
-
"onUpdate:visible": (
|
15156
|
+
"onUpdate:visible": (D) => v.value.visible = D,
|
15072
15157
|
onKgOk: k
|
15073
15158
|
}, null)]);
|
15074
15159
|
}
|
@@ -15393,21 +15478,21 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15393
15478
|
record: k
|
15394
15479
|
}) => {
|
15395
15480
|
var E, P, A;
|
15396
|
-
const
|
15397
|
-
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", {
|
15398
15483
|
class: "address"
|
15399
|
-
}, [(A =
|
15484
|
+
}, [(A = M.adrId) != null ? A : " "])]);
|
15400
15485
|
}
|
15401
15486
|
}]), u = ref([]), d = computed(() => {
|
15402
|
-
var
|
15403
|
-
const k = (
|
15487
|
+
var M;
|
15488
|
+
const k = (M = s.value) == null ? void 0 : M.toUpperCase();
|
15404
15489
|
return u.value.filter((E) => {
|
15405
|
-
var P, A,
|
15406
|
-
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));
|
15407
15492
|
});
|
15408
15493
|
}), m = computed(() => {
|
15409
|
-
var k,
|
15410
|
-
return ((
|
15494
|
+
var k, M;
|
15495
|
+
return ((M = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
15411
15496
|
});
|
15412
15497
|
watch(a.visible, (k) => {
|
15413
15498
|
!m.value || (k ? C() : g());
|
@@ -15457,14 +15542,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15457
15542
|
i.value = !1;
|
15458
15543
|
}
|
15459
15544
|
}
|
15460
|
-
function b(k,
|
15545
|
+
function b(k, M) {
|
15461
15546
|
var E;
|
15462
15547
|
switch (k.detail) {
|
15463
15548
|
case 1:
|
15464
|
-
((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;
|
15465
15550
|
break;
|
15466
15551
|
case 2:
|
15467
|
-
o.value =
|
15552
|
+
o.value = M, _();
|
15468
15553
|
break;
|
15469
15554
|
}
|
15470
15555
|
}
|
@@ -15474,8 +15559,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15474
15559
|
placement: "bottomRight"
|
15475
15560
|
}, {
|
15476
15561
|
default: () => {
|
15477
|
-
var k,
|
15478
|
-
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")];
|
15479
15564
|
}
|
15480
15565
|
}), createVNode(KgModal, {
|
15481
15566
|
visible: a.visible.value,
|
@@ -15517,9 +15602,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15517
15602
|
columns: c,
|
15518
15603
|
class: "kg-flex-table",
|
15519
15604
|
customRow: (k) => {
|
15520
|
-
var
|
15605
|
+
var M;
|
15521
15606
|
return {
|
15522
|
-
class: k.id === ((
|
15607
|
+
class: k.id === ((M = o.value) == null ? void 0 : M.id) ? "selected" : "",
|
15523
15608
|
onClick: (E) => b(E, k)
|
15524
15609
|
};
|
15525
15610
|
}
|