@kengic/vue 0.13.1 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1033 -1008
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +4 -2
- package/dist/src/apis/WMS/models.d.ts +4 -2
- package/dist/src/consts/i18n/en.d.ts +3 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +3 -0
- package/dist/src/consts/index.d.ts +10 -4
- package/dist/src/utils/kg.util.d.ts +6 -2
- package/package.json +2 -2
package/dist/kengic-vue.js
CHANGED
@@ -826,6 +826,7 @@ class WhDTO {
|
|
826
826
|
v(this, "activeFlg");
|
827
827
|
v(this, "adrId");
|
828
828
|
v(this, "adrnam");
|
829
|
+
v(this, "comCod");
|
829
830
|
v(this, "defWhFlg");
|
830
831
|
v(this, "id");
|
831
832
|
v(this, "orgcod");
|
@@ -840,6 +841,7 @@ class WhDTO {
|
|
840
841
|
case "activeFlg":
|
841
842
|
case "adrId":
|
842
843
|
case "adrnam":
|
844
|
+
case "comCod":
|
843
845
|
case "defWhFlg":
|
844
846
|
case "id":
|
845
847
|
case "orgcod":
|
@@ -1377,6 +1379,7 @@ class ListVOQuery {
|
|
1377
1379
|
v(this, "activeFlg");
|
1378
1380
|
v(this, "adrId");
|
1379
1381
|
v(this, "adrnam");
|
1382
|
+
v(this, "comCod");
|
1380
1383
|
v(this, "defWhFlg");
|
1381
1384
|
v(this, "id");
|
1382
1385
|
v(this, "orgcod");
|
@@ -1395,6 +1398,7 @@ class ListVOQuery {
|
|
1395
1398
|
case "activeFlg":
|
1396
1399
|
case "adrId":
|
1397
1400
|
case "adrnam":
|
1401
|
+
case "comCod":
|
1398
1402
|
case "defWhFlg":
|
1399
1403
|
case "id":
|
1400
1404
|
case "orgcod":
|
@@ -2175,12 +2179,12 @@ setTwoToneColor("#1890ff");
|
|
2175
2179
|
var Icon$1 = function(t, r) {
|
2176
2180
|
var a, n = _objectSpread$k({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, g = _objectWithoutProperties(n, _excluded), b = (a = {
|
2177
2181
|
anticon: !0
|
2178
|
-
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a),
|
2182
|
+
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, s, s), a), y = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "", _ = c;
|
2179
2183
|
_ === void 0 && d && (_ = -1, g.tabindex = _);
|
2180
2184
|
var p = l ? {
|
2181
2185
|
msTransform: "rotate(".concat(l, "deg)"),
|
2182
2186
|
transform: "rotate(".concat(l, "deg)")
|
2183
|
-
} : void 0, m = normalizeTwoToneColors(u),
|
2187
|
+
} : void 0, m = normalizeTwoToneColors(u), E = _slicedToArray(m, 2), T = E[0], k = E[1];
|
2184
2188
|
return createVNode("span", _objectSpread$k({
|
2185
2189
|
role: "img",
|
2186
2190
|
"aria-label": i.name
|
@@ -2188,7 +2192,7 @@ var Icon$1 = function(t, r) {
|
|
2188
2192
|
onClick: d,
|
2189
2193
|
class: b
|
2190
2194
|
}), [createVNode(VueIcon, {
|
2191
|
-
class:
|
2195
|
+
class: y,
|
2192
2196
|
icon: i,
|
2193
2197
|
primaryColor: T,
|
2194
2198
|
secondaryColor: k,
|
@@ -3000,16 +3004,16 @@ function iconToSVG(e, t) {
|
|
3000
3004
|
height: r.height
|
3001
3005
|
};
|
3002
3006
|
let s = r.body;
|
3003
|
-
[r, a].forEach((
|
3004
|
-
const _ = [], p =
|
3005
|
-
let
|
3006
|
-
p ? m ?
|
3007
|
+
[r, a].forEach((y) => {
|
3008
|
+
const _ = [], p = y.hFlip, m = y.vFlip;
|
3009
|
+
let E = y.rotate;
|
3010
|
+
p ? m ? E += 2 : (_.push(
|
3007
3011
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3008
3012
|
), _.push("scale(-1 1)"), n.top = n.left = 0) : m && (_.push(
|
3009
3013
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3010
3014
|
), _.push("scale(1 -1)"), n.top = n.left = 0);
|
3011
3015
|
let T;
|
3012
|
-
switch (
|
3016
|
+
switch (E < 0 && (E -= Math.floor(E / 4) * 4), E = E % 4, E) {
|
3013
3017
|
case 1:
|
3014
3018
|
T = n.height / 2 + n.top, _.unshift(
|
3015
3019
|
"rotate(90 " + T.toString() + " " + T.toString() + ")"
|
@@ -3026,13 +3030,13 @@ function iconToSVG(e, t) {
|
|
3026
3030
|
);
|
3027
3031
|
break;
|
3028
3032
|
}
|
3029
|
-
|
3033
|
+
E % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), _.length && (s = '<g transform="' + _.join(" ") + '">' + s + "</g>");
|
3030
3034
|
});
|
3031
3035
|
const i = a.width, o = a.height, l = n.width, c = n.height;
|
3032
3036
|
let u, d;
|
3033
3037
|
i === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = o === null ? calculateSize(u, c / l) : o === "auto" ? c : o);
|
3034
|
-
const g = {}, b = (
|
3035
|
-
isUnsetKeyword(_) || (g[
|
3038
|
+
const g = {}, b = (y, _) => {
|
3039
|
+
isUnsetKeyword(_) || (g[y] = _.toString());
|
3036
3040
|
};
|
3037
3041
|
return b("width", u), b("height", d), g.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
3038
3042
|
attributes: g,
|
@@ -3317,11 +3321,11 @@ function sendQuery(e, t, r, a) {
|
|
3317
3321
|
const o = Date.now();
|
3318
3322
|
let l = "pending", c = 0, u, d = null, g = [], b = [];
|
3319
3323
|
typeof a == "function" && b.push(a);
|
3320
|
-
function
|
3324
|
+
function y() {
|
3321
3325
|
d && (clearTimeout(d), d = null);
|
3322
3326
|
}
|
3323
3327
|
function _() {
|
3324
|
-
l === "pending" && (l = "aborted"),
|
3328
|
+
l === "pending" && (l = "aborted"), y(), g.forEach((C) => {
|
3325
3329
|
C.status === "pending" && (C.status = "aborted");
|
3326
3330
|
}), g = [];
|
3327
3331
|
}
|
@@ -3339,7 +3343,7 @@ function sendQuery(e, t, r, a) {
|
|
3339
3343
|
abort: _
|
3340
3344
|
};
|
3341
3345
|
}
|
3342
|
-
function
|
3346
|
+
function E() {
|
3343
3347
|
l = "failed", b.forEach((C) => {
|
3344
3348
|
C(void 0, u);
|
3345
3349
|
});
|
@@ -3362,14 +3366,14 @@ function sendQuery(e, t, r, a) {
|
|
3362
3366
|
return;
|
3363
3367
|
}
|
3364
3368
|
if (M === "abort") {
|
3365
|
-
u = w,
|
3369
|
+
u = w, E();
|
3366
3370
|
return;
|
3367
3371
|
}
|
3368
3372
|
if (I) {
|
3369
|
-
u = w, g.length || (i.length ? A() :
|
3373
|
+
u = w, g.length || (i.length ? A() : E());
|
3370
3374
|
return;
|
3371
3375
|
}
|
3372
|
-
if (
|
3376
|
+
if (y(), T(), !e.random) {
|
3373
3377
|
const R = e.resources.indexOf(C.resource);
|
3374
3378
|
R !== -1 && R !== e.index && (e.index = R);
|
3375
3379
|
}
|
@@ -3380,16 +3384,16 @@ function sendQuery(e, t, r, a) {
|
|
3380
3384
|
function A() {
|
3381
3385
|
if (l !== "pending")
|
3382
3386
|
return;
|
3383
|
-
|
3387
|
+
y();
|
3384
3388
|
const C = i.shift();
|
3385
3389
|
if (C === void 0) {
|
3386
3390
|
if (g.length) {
|
3387
3391
|
d = setTimeout(() => {
|
3388
|
-
|
3392
|
+
y(), l === "pending" && (T(), E());
|
3389
3393
|
}, e.timeout);
|
3390
3394
|
return;
|
3391
3395
|
}
|
3392
|
-
|
3396
|
+
E();
|
3393
3397
|
return;
|
3394
3398
|
}
|
3395
3399
|
const M = {
|
@@ -3817,14 +3821,14 @@ const render = (e, t) => {
|
|
3817
3821
|
let _ = 0, p = t.id;
|
3818
3822
|
return typeof p == "string" && (p = p.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, p ? () => p + "ID" + _++ : "iconifyVue"), h("svg", a);
|
3819
3823
|
}
|
3820
|
-
const { body: u, width: d, height: g } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1),
|
3824
|
+
const { body: u, width: d, height: g } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), y = iconToHTML(u, {
|
3821
3825
|
...c,
|
3822
3826
|
width: d + "",
|
3823
3827
|
height: g + ""
|
3824
3828
|
});
|
3825
3829
|
return a.style = {
|
3826
3830
|
...s,
|
3827
|
-
"--svg": svgToURL(
|
3831
|
+
"--svg": svgToURL(y),
|
3828
3832
|
width: fixSize(c.width),
|
3829
3833
|
height: fixSize(c.height),
|
3830
3834
|
...commonProps,
|
@@ -3919,7 +3923,7 @@ const emptyIcon = {
|
|
3919
3923
|
...t.data
|
3920
3924
|
}, r);
|
3921
3925
|
}
|
3922
|
-
}), name = "@kengic/vue", version = "0.13.
|
3926
|
+
}), name = "@kengic/vue", version = "0.13.3", data$1 = {
|
3923
3927
|
width: 24,
|
3924
3928
|
height: 24,
|
3925
3929
|
body: '<path fill="currentColor" d="M5 21q-.825 0-1.413-.588T3 19V5q0-.825.588-1.413T5 3h11.175q.4 0 .763.15t.637.425l2.85 2.85q.275.275.425.638t.15.762V12.3q-.475-.2-.988-.263T19 12.05V7.825L16.175 5H5v14h6v2H5ZM5 5v14V5Zm8 17v-1.65q0-.2.075-.388t.225-.337l5.225-5.2q.225-.225.5-.325t.55-.1q.3 0 .575.113t.5.337l.925.925q.2.225.313.5t.112.55q0 .275-.1.563t-.325.512l-5.2 5.2q-.15.15-.338.225T15.65 23H14q-.425 0-.712-.287T13 22Zm7.5-5.575l-.925-.925l.925.925Zm-6 5.075h.95l3.025-3.05l-.45-.475l-.475-.45l-3.05 3.025v.95Zm3.525-3.525l-.475-.45l.925.925l-.45-.475ZM7 10h7q.425 0 .713-.288T15 9V7q0-.425-.288-.713T14 6H7q-.425 0-.713.288T6 7v2q0 .425.288.713T7 10Zm5 8h.1l2.9-2.875V15q0-1.25-.875-2.125T12 12q-1.25 0-2.125.875T9 15q0 1.25.875 2.125T12 18Z"/>'
|
@@ -3938,52 +3942,52 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3938
3942
|
(function(r, a) {
|
3939
3943
|
e.exports = a();
|
3940
3944
|
})(commonjsGlobal, function() {
|
3941
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", b = "year",
|
3945
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", b = "year", y = "date", _ = "Invalid Date", p = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|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, E = { 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($) {
|
3942
3946
|
var D = ["th", "st", "nd", "rd"], V = $ % 100;
|
3943
3947
|
return "[" + $ + (D[(V - 20) % 10] || D[V] || D[0]) + "]";
|
3944
3948
|
} }, T = function($, D, V) {
|
3945
|
-
var
|
3946
|
-
return !
|
3949
|
+
var P = String($);
|
3950
|
+
return !P || P.length >= D ? $ : "" + Array(D + 1 - P.length).join(V) + $;
|
3947
3951
|
}, k = { s: T, z: function($) {
|
3948
|
-
var D = -$.utcOffset(), V = Math.abs(D),
|
3949
|
-
return (D <= 0 ? "+" : "-") + T(
|
3952
|
+
var D = -$.utcOffset(), V = Math.abs(D), P = Math.floor(V / 60), B = V % 60;
|
3953
|
+
return (D <= 0 ? "+" : "-") + T(P, 2, "0") + ":" + T(B, 2, "0");
|
3950
3954
|
}, m: function $(D, V) {
|
3951
3955
|
if (D.date() < V.date())
|
3952
3956
|
return -$(V, D);
|
3953
|
-
var
|
3954
|
-
return +(-(
|
3957
|
+
var P = 12 * (V.year() - D.year()) + (V.month() - D.month()), B = D.clone().add(P, d), Y = V - B < 0, K = D.clone().add(P + (Y ? -1 : 1), d);
|
3958
|
+
return +(-(P + (V - B) / (Y ? B - K : K - B)) || 0);
|
3955
3959
|
}, a: function($) {
|
3956
3960
|
return $ < 0 ? Math.ceil($) || 0 : Math.floor($);
|
3957
3961
|
}, p: function($) {
|
3958
|
-
return { M: d, y: b, w: u, d: c, D:
|
3962
|
+
return { M: d, y: b, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[$] || String($ || "").toLowerCase().replace(/s$/, "");
|
3959
3963
|
}, u: function($) {
|
3960
3964
|
return $ === void 0;
|
3961
3965
|
} }, A = "en", C = {};
|
3962
|
-
C[A] =
|
3966
|
+
C[A] = E;
|
3963
3967
|
var M = "$isDayjsObject", w = function($) {
|
3964
3968
|
return $ instanceof O || !(!$ || !$[M]);
|
3965
|
-
}, I = function $(D, V,
|
3969
|
+
}, I = function $(D, V, P) {
|
3966
3970
|
var B;
|
3967
3971
|
if (!D)
|
3968
3972
|
return A;
|
3969
3973
|
if (typeof D == "string") {
|
3970
|
-
var
|
3971
|
-
C[
|
3972
|
-
var
|
3973
|
-
if (!B &&
|
3974
|
-
return $(
|
3974
|
+
var Y = D.toLowerCase();
|
3975
|
+
C[Y] && (B = Y), V && (C[Y] = V, B = Y);
|
3976
|
+
var K = D.split("-");
|
3977
|
+
if (!B && K.length > 1)
|
3978
|
+
return $(K[0]);
|
3975
3979
|
} else {
|
3976
3980
|
var x = D.name;
|
3977
3981
|
C[x] = D, B = x;
|
3978
3982
|
}
|
3979
|
-
return !
|
3983
|
+
return !P && B && (A = B), B || !P && A;
|
3980
3984
|
}, R = function($, D) {
|
3981
3985
|
if (w($))
|
3982
3986
|
return $.clone();
|
3983
3987
|
var V = typeof D == "object" ? D : {};
|
3984
3988
|
return V.date = $, V.args = arguments, new O(V);
|
3985
|
-
},
|
3986
|
-
|
3989
|
+
}, N = k;
|
3990
|
+
N.l = I, N.i = w, N.w = function($, D) {
|
3987
3991
|
return R($, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
3988
3992
|
};
|
3989
3993
|
var O = function() {
|
@@ -3992,19 +3996,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3992
3996
|
}
|
3993
3997
|
var D = $.prototype;
|
3994
3998
|
return D.parse = function(V) {
|
3995
|
-
this.$d = function(
|
3996
|
-
var B =
|
3999
|
+
this.$d = function(P) {
|
4000
|
+
var B = P.date, Y = P.utc;
|
3997
4001
|
if (B === null)
|
3998
4002
|
return new Date(NaN);
|
3999
|
-
if (
|
4003
|
+
if (N.u(B))
|
4000
4004
|
return new Date();
|
4001
4005
|
if (B instanceof Date)
|
4002
4006
|
return new Date(B);
|
4003
4007
|
if (typeof B == "string" && !/Z$/i.test(B)) {
|
4004
|
-
var
|
4005
|
-
if (
|
4006
|
-
var x =
|
4007
|
-
return
|
4008
|
+
var K = B.match(p);
|
4009
|
+
if (K) {
|
4010
|
+
var x = K[2] - 1 || 0, W = (K[7] || "0").substring(0, 3);
|
4011
|
+
return Y ? new Date(Date.UTC(K[1], x, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, W)) : new Date(K[1], x, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, W);
|
4008
4012
|
}
|
4009
4013
|
}
|
4010
4014
|
return new Date(B);
|
@@ -4013,195 +4017,195 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4013
4017
|
var V = this.$d;
|
4014
4018
|
this.$y = V.getFullYear(), this.$M = V.getMonth(), this.$D = V.getDate(), this.$W = V.getDay(), this.$H = V.getHours(), this.$m = V.getMinutes(), this.$s = V.getSeconds(), this.$ms = V.getMilliseconds();
|
4015
4019
|
}, D.$utils = function() {
|
4016
|
-
return
|
4020
|
+
return N;
|
4017
4021
|
}, D.isValid = function() {
|
4018
4022
|
return this.$d.toString() !== _;
|
4019
|
-
}, D.isSame = function(V,
|
4023
|
+
}, D.isSame = function(V, P) {
|
4020
4024
|
var B = R(V);
|
4021
|
-
return this.startOf(
|
4022
|
-
}, D.isAfter = function(V,
|
4023
|
-
return R(V) < this.startOf(
|
4024
|
-
}, D.isBefore = function(V,
|
4025
|
-
return this.endOf(
|
4026
|
-
}, D.$g = function(V,
|
4027
|
-
return
|
4025
|
+
return this.startOf(P) <= B && B <= this.endOf(P);
|
4026
|
+
}, D.isAfter = function(V, P) {
|
4027
|
+
return R(V) < this.startOf(P);
|
4028
|
+
}, D.isBefore = function(V, P) {
|
4029
|
+
return this.endOf(P) < R(V);
|
4030
|
+
}, D.$g = function(V, P, B) {
|
4031
|
+
return N.u(V) ? this[P] : this.set(B, V);
|
4028
4032
|
}, D.unix = function() {
|
4029
4033
|
return Math.floor(this.valueOf() / 1e3);
|
4030
4034
|
}, D.valueOf = function() {
|
4031
4035
|
return this.$d.getTime();
|
4032
|
-
}, D.startOf = function(V,
|
4033
|
-
var B = this,
|
4034
|
-
var
|
4035
|
-
return
|
4036
|
-
},
|
4037
|
-
return
|
4038
|
-
}, q = this.$W,
|
4039
|
-
switch (
|
4036
|
+
}, D.startOf = function(V, P) {
|
4037
|
+
var B = this, Y = !!N.u(P) || P, K = N.p(V), x = function(ce, se) {
|
4038
|
+
var L = N.w(B.$u ? Date.UTC(B.$y, se, ce) : new Date(B.$y, se, ce), B);
|
4039
|
+
return Y ? L : L.endOf(c);
|
4040
|
+
}, W = function(ce, se) {
|
4041
|
+
return N.w(B.toDate()[ce].apply(B.toDate("s"), (Y ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), B);
|
4042
|
+
}, q = this.$W, J = this.$M, Z = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
4043
|
+
switch (K) {
|
4040
4044
|
case b:
|
4041
|
-
return
|
4045
|
+
return Y ? x(1, 0) : x(31, 11);
|
4042
4046
|
case d:
|
4043
|
-
return
|
4047
|
+
return Y ? x(1, J) : x(0, J + 1);
|
4044
4048
|
case u:
|
4045
|
-
var
|
4046
|
-
return x(
|
4049
|
+
var ie = this.$locale().weekStart || 0, pe = (q < ie ? q + 7 : q) - ie;
|
4050
|
+
return x(Y ? Z - pe : Z + (6 - pe), J);
|
4047
4051
|
case c:
|
4048
|
-
case
|
4049
|
-
return
|
4052
|
+
case y:
|
4053
|
+
return W(te + "Hours", 0);
|
4050
4054
|
case l:
|
4051
|
-
return
|
4055
|
+
return W(te + "Minutes", 1);
|
4052
4056
|
case o:
|
4053
|
-
return
|
4057
|
+
return W(te + "Seconds", 2);
|
4054
4058
|
case i:
|
4055
|
-
return
|
4059
|
+
return W(te + "Milliseconds", 3);
|
4056
4060
|
default:
|
4057
4061
|
return this.clone();
|
4058
4062
|
}
|
4059
4063
|
}, D.endOf = function(V) {
|
4060
4064
|
return this.startOf(V, !1);
|
4061
|
-
}, D.$set = function(V,
|
4062
|
-
var B,
|
4063
|
-
if (
|
4064
|
-
var q = this.clone().set(
|
4065
|
-
q.$d[x](
|
4065
|
+
}, D.$set = function(V, P) {
|
4066
|
+
var B, Y = N.p(V), K = "set" + (this.$u ? "UTC" : ""), x = (B = {}, B[c] = K + "Date", B[y] = K + "Date", B[d] = K + "Month", B[b] = K + "FullYear", B[l] = K + "Hours", B[o] = K + "Minutes", B[i] = K + "Seconds", B[s] = K + "Milliseconds", B)[Y], W = Y === c ? this.$D + (P - this.$W) : P;
|
4067
|
+
if (Y === d || Y === b) {
|
4068
|
+
var q = this.clone().set(y, 1);
|
4069
|
+
q.$d[x](W), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
4066
4070
|
} else
|
4067
|
-
x && this.$d[x](
|
4071
|
+
x && this.$d[x](W);
|
4068
4072
|
return this.init(), this;
|
4069
|
-
}, D.set = function(V,
|
4070
|
-
return this.clone().$set(V,
|
4073
|
+
}, D.set = function(V, P) {
|
4074
|
+
return this.clone().$set(V, P);
|
4071
4075
|
}, D.get = function(V) {
|
4072
|
-
return this[
|
4073
|
-
}, D.add = function(V,
|
4074
|
-
var B,
|
4076
|
+
return this[N.p(V)]();
|
4077
|
+
}, D.add = function(V, P) {
|
4078
|
+
var B, Y = this;
|
4075
4079
|
V = Number(V);
|
4076
|
-
var
|
4077
|
-
var
|
4078
|
-
return
|
4080
|
+
var K = N.p(P), x = function(J) {
|
4081
|
+
var Z = R(Y);
|
4082
|
+
return N.w(Z.date(Z.date() + Math.round(J * V)), Y);
|
4079
4083
|
};
|
4080
|
-
if (
|
4084
|
+
if (K === d)
|
4081
4085
|
return this.set(d, this.$M + V);
|
4082
|
-
if (
|
4086
|
+
if (K === b)
|
4083
4087
|
return this.set(b, this.$y + V);
|
4084
|
-
if (
|
4088
|
+
if (K === c)
|
4085
4089
|
return x(1);
|
4086
|
-
if (
|
4090
|
+
if (K === u)
|
4087
4091
|
return x(7);
|
4088
|
-
var
|
4089
|
-
return
|
4090
|
-
}, D.subtract = function(V,
|
4091
|
-
return this.add(-1 * V,
|
4092
|
+
var W = (B = {}, B[o] = a, B[l] = n, B[i] = r, B)[K] || 1, q = this.$d.getTime() + V * W;
|
4093
|
+
return N.w(q, this);
|
4094
|
+
}, D.subtract = function(V, P) {
|
4095
|
+
return this.add(-1 * V, P);
|
4092
4096
|
}, D.format = function(V) {
|
4093
|
-
var
|
4097
|
+
var P = this, B = this.$locale();
|
4094
4098
|
if (!this.isValid())
|
4095
4099
|
return B.invalidDate || _;
|
4096
|
-
var
|
4097
|
-
return
|
4098
|
-
},
|
4099
|
-
return
|
4100
|
-
},
|
4101
|
-
var Q =
|
4100
|
+
var Y = V || "YYYY-MM-DDTHH:mm:ssZ", K = N.z(this), x = this.$H, W = this.$m, q = this.$M, J = B.weekdays, Z = B.months, te = B.meridiem, ie = function(se, L, U, Q) {
|
4101
|
+
return se && (se[L] || se(P, Y)) || U[L].slice(0, Q);
|
4102
|
+
}, pe = function(se) {
|
4103
|
+
return N.s(x % 12 || 12, se, "0");
|
4104
|
+
}, ce = te || function(se, L, U) {
|
4105
|
+
var Q = se < 12 ? "AM" : "PM";
|
4102
4106
|
return U ? Q.toLowerCase() : Q;
|
4103
4107
|
};
|
4104
|
-
return
|
4105
|
-
return
|
4108
|
+
return Y.replace(m, function(se, L) {
|
4109
|
+
return L || function(U) {
|
4106
4110
|
switch (U) {
|
4107
4111
|
case "YY":
|
4108
|
-
return String(
|
4112
|
+
return String(P.$y).slice(-2);
|
4109
4113
|
case "YYYY":
|
4110
|
-
return
|
4114
|
+
return N.s(P.$y, 4, "0");
|
4111
4115
|
case "M":
|
4112
4116
|
return q + 1;
|
4113
4117
|
case "MM":
|
4114
|
-
return
|
4118
|
+
return N.s(q + 1, 2, "0");
|
4115
4119
|
case "MMM":
|
4116
|
-
return
|
4120
|
+
return ie(B.monthsShort, q, Z, 3);
|
4117
4121
|
case "MMMM":
|
4118
|
-
return
|
4122
|
+
return ie(Z, q);
|
4119
4123
|
case "D":
|
4120
|
-
return
|
4124
|
+
return P.$D;
|
4121
4125
|
case "DD":
|
4122
|
-
return
|
4126
|
+
return N.s(P.$D, 2, "0");
|
4123
4127
|
case "d":
|
4124
|
-
return String(
|
4128
|
+
return String(P.$W);
|
4125
4129
|
case "dd":
|
4126
|
-
return
|
4130
|
+
return ie(B.weekdaysMin, P.$W, J, 2);
|
4127
4131
|
case "ddd":
|
4128
|
-
return
|
4132
|
+
return ie(B.weekdaysShort, P.$W, J, 3);
|
4129
4133
|
case "dddd":
|
4130
|
-
return
|
4134
|
+
return J[P.$W];
|
4131
4135
|
case "H":
|
4132
4136
|
return String(x);
|
4133
4137
|
case "HH":
|
4134
|
-
return
|
4138
|
+
return N.s(x, 2, "0");
|
4135
4139
|
case "h":
|
4136
|
-
return
|
4140
|
+
return pe(1);
|
4137
4141
|
case "hh":
|
4138
|
-
return
|
4142
|
+
return pe(2);
|
4139
4143
|
case "a":
|
4140
|
-
return
|
4144
|
+
return ce(x, W, !0);
|
4141
4145
|
case "A":
|
4142
|
-
return
|
4146
|
+
return ce(x, W, !1);
|
4143
4147
|
case "m":
|
4144
|
-
return String(
|
4148
|
+
return String(W);
|
4145
4149
|
case "mm":
|
4146
|
-
return
|
4150
|
+
return N.s(W, 2, "0");
|
4147
4151
|
case "s":
|
4148
|
-
return String(
|
4152
|
+
return String(P.$s);
|
4149
4153
|
case "ss":
|
4150
|
-
return
|
4154
|
+
return N.s(P.$s, 2, "0");
|
4151
4155
|
case "SSS":
|
4152
|
-
return
|
4156
|
+
return N.s(P.$ms, 3, "0");
|
4153
4157
|
case "Z":
|
4154
|
-
return
|
4158
|
+
return K;
|
4155
4159
|
}
|
4156
4160
|
return null;
|
4157
|
-
}(
|
4161
|
+
}(se) || K.replace(":", "");
|
4158
4162
|
});
|
4159
4163
|
}, D.utcOffset = function() {
|
4160
4164
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4161
|
-
}, D.diff = function(V,
|
4162
|
-
var
|
4163
|
-
return
|
4165
|
+
}, D.diff = function(V, P, B) {
|
4166
|
+
var Y, K = this, x = N.p(P), W = R(V), q = (W.utcOffset() - this.utcOffset()) * a, J = this - W, Z = function() {
|
4167
|
+
return N.m(K, W);
|
4164
4168
|
};
|
4165
4169
|
switch (x) {
|
4166
4170
|
case b:
|
4167
|
-
|
4171
|
+
Y = Z() / 12;
|
4168
4172
|
break;
|
4169
4173
|
case d:
|
4170
|
-
|
4174
|
+
Y = Z();
|
4171
4175
|
break;
|
4172
4176
|
case g:
|
4173
|
-
|
4177
|
+
Y = Z() / 3;
|
4174
4178
|
break;
|
4175
4179
|
case u:
|
4176
|
-
|
4180
|
+
Y = (J - q) / 6048e5;
|
4177
4181
|
break;
|
4178
4182
|
case c:
|
4179
|
-
|
4183
|
+
Y = (J - q) / 864e5;
|
4180
4184
|
break;
|
4181
4185
|
case l:
|
4182
|
-
|
4186
|
+
Y = J / n;
|
4183
4187
|
break;
|
4184
4188
|
case o:
|
4185
|
-
|
4189
|
+
Y = J / a;
|
4186
4190
|
break;
|
4187
4191
|
case i:
|
4188
|
-
|
4192
|
+
Y = J / r;
|
4189
4193
|
break;
|
4190
4194
|
default:
|
4191
|
-
|
4195
|
+
Y = J;
|
4192
4196
|
}
|
4193
|
-
return B ?
|
4197
|
+
return B ? Y : N.a(Y);
|
4194
4198
|
}, D.daysInMonth = function() {
|
4195
4199
|
return this.endOf(d).$D;
|
4196
4200
|
}, D.$locale = function() {
|
4197
4201
|
return C[this.$L];
|
4198
|
-
}, D.locale = function(V,
|
4202
|
+
}, D.locale = function(V, P) {
|
4199
4203
|
if (!V)
|
4200
4204
|
return this.$L;
|
4201
|
-
var B = this.clone(),
|
4202
|
-
return
|
4205
|
+
var B = this.clone(), Y = I(V, P, !0);
|
4206
|
+
return Y && (B.$L = Y), B;
|
4203
4207
|
}, D.clone = function() {
|
4204
|
-
return
|
4208
|
+
return N.w(this.$d, this);
|
4205
4209
|
}, D.toDate = function() {
|
4206
4210
|
return new Date(this.valueOf());
|
4207
4211
|
}, D.toJSON = function() {
|
@@ -4212,7 +4216,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4212
4216
|
return this.$d.toUTCString();
|
4213
4217
|
}, $;
|
4214
4218
|
}(), F = O.prototype;
|
4215
|
-
return R.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D",
|
4219
|
+
return R.prototype = F, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D", y]].forEach(function($) {
|
4216
4220
|
F[$[1]] = function(D) {
|
4217
4221
|
return this.$g(D, $[0], $[1]);
|
4218
4222
|
};
|
@@ -4261,29 +4265,29 @@ function filesize(e, {
|
|
4261
4265
|
output: d = STRING,
|
4262
4266
|
fullform: g = !1,
|
4263
4267
|
fullforms: b = [],
|
4264
|
-
exponent:
|
4268
|
+
exponent: y = -1,
|
4265
4269
|
roundingMethod: _ = ROUND,
|
4266
4270
|
precision: p = 0
|
4267
4271
|
} = {}) {
|
4268
|
-
let m =
|
4272
|
+
let m = y, E = Number(e), T = [], k = 0, A = EMPTY;
|
4269
4273
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4270
|
-
const C = a === 10 ? 1e3 : 1024, M = g === !0, w =
|
4274
|
+
const C = a === 10 ? 1e3 : 1024, M = g === !0, w = E < 0, I = Math[_];
|
4271
4275
|
if (typeof e != "bigint" && isNaN(e))
|
4272
4276
|
throw new TypeError(INVALID_NUMBER);
|
4273
4277
|
if (typeof I !== FUNCTION)
|
4274
4278
|
throw new TypeError(INVALID_ROUND);
|
4275
|
-
if (w && (
|
4279
|
+
if (w && (E = -E), (m === -1 || isNaN(m)) && (m = Math.floor(Math.log(E) / Math.log(C)), m < 0 && (m = 0)), m > 8 && (p > 0 && (p += 8 - m), m = 8), d === EXPONENT)
|
4276
4280
|
return m;
|
4277
|
-
if (
|
4281
|
+
if (E === 0)
|
4278
4282
|
T[0] = 0, A = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][m];
|
4279
4283
|
else {
|
4280
|
-
k =
|
4284
|
+
k = E / (a === 2 ? Math.pow(2, m * 10) : Math.pow(1e3, m)), t && (k = k * 8, k >= C && m < 8 && (k = k / C, m++));
|
4281
4285
|
const R = Math.pow(10, m > 0 ? n : 0);
|
4282
|
-
T[0] = I(k * R) / R, T[0] === C && m < 8 &&
|
4286
|
+
T[0] = I(k * R) / R, T[0] === C && m < 8 && y === -1 && (T[0] = 1, m++), A = T[1] = a === 10 && m === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][m];
|
4283
4287
|
}
|
4284
4288
|
if (w && (T[0] = -T[0]), p > 0 && (T[0] = T[0].toPrecision(p)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
4285
|
-
const R = o || PERIOD,
|
4286
|
-
T[0] = `${
|
4289
|
+
const R = o || PERIOD, N = T[0].toString().split(R), O = N[1] || EMPTY, F = O.length, $ = n - F;
|
4290
|
+
T[0] = `${N[0]}${R}${O.padEnd(F + $, ZERO)}`;
|
4287
4291
|
}
|
4288
4292
|
return M && (T[1] = b[m] ? b[m] : STRINGS.fullform[u][m] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
4289
4293
|
value: T[0],
|
@@ -5339,7 +5343,7 @@ function baseClone(e, t, r, a, n, s) {
|
|
5339
5343
|
}) : isMap$1(e) && e.forEach(function(p, m) {
|
5340
5344
|
i.set(m, baseClone(p, t, r, m, e, s));
|
5341
5345
|
});
|
5342
|
-
var
|
5346
|
+
var y = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, _ = u ? void 0 : y(e);
|
5343
5347
|
return arrayEach(_ || e, function(p, m) {
|
5344
5348
|
_ && (m = p, p = e[m]), assignValue(i, m, baseClone(p, t, r, m, e, s));
|
5345
5349
|
}), i;
|
@@ -5388,9 +5392,9 @@ function equalArrays(e, t, r, a, n, s) {
|
|
5388
5392
|
return c == t && u == e;
|
5389
5393
|
var d = -1, g = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5390
5394
|
for (s.set(e, t), s.set(t, e); ++d < o; ) {
|
5391
|
-
var
|
5395
|
+
var y = e[d], _ = t[d];
|
5392
5396
|
if (a)
|
5393
|
-
var p = i ? a(_,
|
5397
|
+
var p = i ? a(_, y, d, t, e, s) : a(y, _, d, e, t, s);
|
5394
5398
|
if (p !== void 0) {
|
5395
5399
|
if (p)
|
5396
5400
|
continue;
|
@@ -5398,14 +5402,14 @@ function equalArrays(e, t, r, a, n, s) {
|
|
5398
5402
|
break;
|
5399
5403
|
}
|
5400
5404
|
if (b) {
|
5401
|
-
if (!arraySome(t, function(m,
|
5402
|
-
if (!cacheHas(b,
|
5403
|
-
return b.push(
|
5405
|
+
if (!arraySome(t, function(m, E) {
|
5406
|
+
if (!cacheHas(b, E) && (y === m || n(y, m, r, a, s)))
|
5407
|
+
return b.push(E);
|
5404
5408
|
})) {
|
5405
5409
|
g = !1;
|
5406
5410
|
break;
|
5407
5411
|
}
|
5408
|
-
} else if (!(
|
5412
|
+
} else if (!(y === _ || n(y, _, r, a, s))) {
|
5409
5413
|
g = !1;
|
5410
5414
|
break;
|
5411
5415
|
}
|
@@ -5470,17 +5474,17 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5470
5474
|
if (!(i ? g in t : hasOwnProperty$1.call(t, g)))
|
5471
5475
|
return !1;
|
5472
5476
|
}
|
5473
|
-
var b = s.get(e),
|
5474
|
-
if (b &&
|
5475
|
-
return b == t &&
|
5477
|
+
var b = s.get(e), y = s.get(t);
|
5478
|
+
if (b && y)
|
5479
|
+
return b == t && y == e;
|
5476
5480
|
var _ = !0;
|
5477
5481
|
s.set(e, t), s.set(t, e);
|
5478
5482
|
for (var p = i; ++d < l; ) {
|
5479
5483
|
g = o[d];
|
5480
|
-
var m = e[g],
|
5484
|
+
var m = e[g], E = t[g];
|
5481
5485
|
if (a)
|
5482
|
-
var T = i ? a(
|
5483
|
-
if (!(T === void 0 ? m ===
|
5486
|
+
var T = i ? a(E, m, g, t, e, s) : a(m, E, g, e, t, s);
|
5487
|
+
if (!(T === void 0 ? m === E || n(m, E, r, a, s) : T)) {
|
5484
5488
|
_ = !1;
|
5485
5489
|
break;
|
5486
5490
|
}
|
@@ -5505,9 +5509,9 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
|
|
5505
5509
|
if (g && !u)
|
5506
5510
|
return s || (s = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, s) : equalByTag(e, t, l, r, a, n, s);
|
5507
5511
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5508
|
-
var b = u && hasOwnProperty.call(e, "__wrapped__"),
|
5509
|
-
if (b ||
|
5510
|
-
var _ = b ? e.value() : e, p =
|
5512
|
+
var b = u && hasOwnProperty.call(e, "__wrapped__"), y = d && hasOwnProperty.call(t, "__wrapped__");
|
5513
|
+
if (b || y) {
|
5514
|
+
var _ = b ? e.value() : e, p = y ? t.value() : t;
|
5511
5515
|
return s || (s = new Stack()), n(_, p, r, a, s);
|
5512
5516
|
}
|
5513
5517
|
}
|
@@ -5644,7 +5648,7 @@ function debounce(e, t, r) {
|
|
5644
5648
|
var M = a, w = n;
|
5645
5649
|
return a = n = void 0, c = C, i = e.apply(w, M), i;
|
5646
5650
|
}
|
5647
|
-
function
|
5651
|
+
function y(C) {
|
5648
5652
|
return c = C, o = setTimeout(m, t), u ? b(C) : i;
|
5649
5653
|
}
|
5650
5654
|
function _(C) {
|
@@ -5658,23 +5662,23 @@ function debounce(e, t, r) {
|
|
5658
5662
|
function m() {
|
5659
5663
|
var C = now$1();
|
5660
5664
|
if (p(C))
|
5661
|
-
return
|
5665
|
+
return E(C);
|
5662
5666
|
o = setTimeout(m, _(C));
|
5663
5667
|
}
|
5664
|
-
function
|
5668
|
+
function E(C) {
|
5665
5669
|
return o = void 0, g && a ? b(C) : (a = n = void 0, i);
|
5666
5670
|
}
|
5667
5671
|
function T() {
|
5668
5672
|
o !== void 0 && clearTimeout(o), c = 0, a = l = n = o = void 0;
|
5669
5673
|
}
|
5670
5674
|
function k() {
|
5671
|
-
return o === void 0 ? i :
|
5675
|
+
return o === void 0 ? i : E(now$1());
|
5672
5676
|
}
|
5673
5677
|
function A() {
|
5674
5678
|
var C = now$1(), M = p(C);
|
5675
5679
|
if (a = arguments, n = this, l = C, M) {
|
5676
5680
|
if (o === void 0)
|
5677
|
-
return
|
5681
|
+
return y(l);
|
5678
5682
|
if (d)
|
5679
5683
|
return clearTimeout(o), o = setTimeout(m, t), b(l);
|
5680
5684
|
}
|
@@ -5767,14 +5771,14 @@ function baseIntersection(e, t, r) {
|
|
5767
5771
|
var d = -1, g = o[0];
|
5768
5772
|
e:
|
5769
5773
|
for (; ++d < n && c.length < l; ) {
|
5770
|
-
var b = u[d],
|
5771
|
-
if (b = r || b !== 0 ? b : 0, !(g ? cacheHas(g,
|
5774
|
+
var b = u[d], y = t ? t(b) : b;
|
5775
|
+
if (b = r || b !== 0 ? b : 0, !(g ? cacheHas(g, y) : a(c, y, r))) {
|
5772
5776
|
for (i = s; --i; ) {
|
5773
5777
|
var _ = o[i];
|
5774
|
-
if (!(_ ? cacheHas(_,
|
5778
|
+
if (!(_ ? cacheHas(_, y) : a(e[i], y, r)))
|
5775
5779
|
continue e;
|
5776
5780
|
}
|
5777
|
-
g && g.push(
|
5781
|
+
g && g.push(y), c.push(b);
|
5778
5782
|
}
|
5779
5783
|
}
|
5780
5784
|
return c;
|
@@ -5983,7 +5987,10 @@ const without$1 = without, en = {
|
|
5983
5987
|
canNotUpdateSystemVarGridMaster: "System grid view cannot be changed, create a new one based on it ?",
|
5984
5988
|
column: "Column",
|
5985
5989
|
config: "Config",
|
5990
|
+
"dynamic-query-is-off-in-server": "API NOT SUPPORT DYNAMIC QUERY.",
|
5986
5991
|
emptyText: "Too many data, please click the Query button to load.",
|
5992
|
+
"request-fail-error": "REQUEST FAIL.",
|
5993
|
+
"request-fail-no-data": "REQUEST FAIL, NO DATA.",
|
5987
5994
|
rowHeight: "Row Height",
|
5988
5995
|
rowHeightH: "High",
|
5989
5996
|
rowHeightL: "Low",
|
@@ -6172,7 +6179,10 @@ const without$1 = without, en = {
|
|
6172
6179
|
canNotUpdateSystemVarGridMaster: "\u7CFB\u7EDF\u89C6\u56FE\u4E0D\u5141\u8BB8\u88AB\u4FEE\u6539, \u5C06\u57FA\u4E8E\u5B83\u53E6\u5B58\u4E00\u4E2A\u65B0\u7684\u89C6\u56FE ?",
|
6173
6180
|
column: "\u5B57\u6BB5",
|
6174
6181
|
config: "\u914D\u7F6E",
|
6182
|
+
"dynamic-query-is-off-in-server": "\u67E5\u8BE2\u63A5\u53E3\u5C1A\u4E0D\u652F\u6301\u9AD8\u7EA7\u67E5\u8BE2.",
|
6175
6183
|
emptyText: "\u5F53\u524D\u6570\u636E\u91CF\u5927, \u8BF7\u70B9\u51FB\u67E5\u8BE2\u52A0\u8F7D\u6570\u636E.",
|
6184
|
+
"request-fail-error": "\u8BF7\u6C42\u5931\u8D25.",
|
6185
|
+
"request-fail-no-data": "\u8BF7\u6C42\u5931\u8D25, \u54CD\u5E94\u5185\u5BB9\u4E3A\u7A7A.",
|
6176
6186
|
rowHeight: "\u884C\u9AD8",
|
6177
6187
|
rowHeightH: "\u9AD8",
|
6178
6188
|
rowHeightL: "\u4F4E",
|
@@ -6311,7 +6321,8 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "data-manager", e.WMS
|
|
6311
6321
|
const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"];
|
6312
6322
|
var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-manager", e.WMS_BUSINESS_MANAGER = "/wms/business-manager", e.WCS = "/wcs", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
|
6313
6323
|
const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
|
6314
|
-
var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.
|
6324
|
+
var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {}), KG_DYNAMIC_QUERY_OPERATOR = /* @__PURE__ */ ((e) => (e.EQ = "eq", e.NE = "ne", e.GT = "gt", e.LT = "lt", e.GTE = "gte", e.LTE = "lte", e.START_WITH = "start", e.END_WITH = "end", e.CONTAIN = "contain", e.IN = "in", e.BETWEEN = "between", e))(KG_DYNAMIC_QUERY_OPERATOR || {}), KG_HTTP_HEADERS = /* @__PURE__ */ ((e) => (e.KG_DYNAMIC_QUERY = "Kg-Dynamic-Query", e.KG_QUERY_SQL = "Kg-Query-Sql", e.KG_QUERY_WHERE_SQL = "Kg-Query-Where-Sql", e.KG_QUERY_ORDER_BY_SQL = "Kg-Query-Order-By-Sql", e))(KG_HTTP_HEADERS || {});
|
6325
|
+
const __KG__RESPONSE__ = "__KG__RESPONSE__";
|
6315
6326
|
class KgLogger {
|
6316
6327
|
static deprecated(t, r = {}, a = !0) {
|
6317
6328
|
KgLogger.log("deprecated", t, r, a);
|
@@ -6453,31 +6464,32 @@ class KgUtil {
|
|
6453
6464
|
}
|
6454
6465
|
}), s);
|
6455
6466
|
}
|
6456
|
-
static
|
6457
|
-
var E, _, p;
|
6467
|
+
static getQuerySql(t, r, a) {
|
6458
6468
|
let n = toRaw(unref(t));
|
6459
|
-
if (!n || !isObjectLike(n)
|
6460
|
-
return "";
|
6461
|
-
|
6462
|
-
|
6463
|
-
|
6464
|
-
|
6465
|
-
|
6466
|
-
if (l.includes(
|
6467
|
-
o[
|
6469
|
+
if (!n || !isObjectLike(n))
|
6470
|
+
return { sql: "", whereSql: "", orderBySql: "" };
|
6471
|
+
if (!r)
|
6472
|
+
return { sql: "", whereSql: "", orderBySql: "" };
|
6473
|
+
const s = useKg(), i = useKgVar(r), o = {}, l = ["pageNo", "pageSize", "column", "order"], u = useKgSearch(r).operatorModel.value;
|
6474
|
+
Object.keys(n).sort().forEach((y) => {
|
6475
|
+
var k, A, C;
|
6476
|
+
if (l.includes(y)) {
|
6477
|
+
o[y] = n[y];
|
6468
6478
|
return;
|
6469
6479
|
}
|
6470
|
-
const
|
6471
|
-
let
|
6472
|
-
|
6473
|
-
|
6474
|
-
|
6480
|
+
const _ = i.store.getVarProfileDetail(r, y), p = _ != null && _.table_alias ? `${_ == null ? void 0 : _.table_alias}.` : "", m = n[y];
|
6481
|
+
let E = u == null ? void 0 : u[y];
|
6482
|
+
(((A = (k = s.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : A.on) !== !0 || ((C = i.currentVarProfileMaster.value) == null ? void 0 : C.dyn_flg) !== 1) && (E = KG_DYNAMIC_QUERY_OPERATOR.EQ);
|
6483
|
+
let T = y;
|
6484
|
+
switch ((_ == null ? void 0 : _.use_underscore_when_dynamic_query_flag) !== 0 && (T = y.split(".").map((M) => snakeCase$1(M)).join(".")), !0) {
|
6485
|
+
case y.endsWith("_obj"): {
|
6486
|
+
o[y] = void 0;
|
6475
6487
|
break;
|
6476
6488
|
}
|
6477
|
-
case (!!a && a.isDayjs(
|
6478
|
-
const M =
|
6479
|
-
let w = this.parseParamFromDayJS(
|
6480
|
-
switch (
|
6489
|
+
case (!!a && a.isDayjs(m)): {
|
6490
|
+
const M = m;
|
6491
|
+
let w = this.parseParamFromDayJS(y, M, r);
|
6492
|
+
switch (E) {
|
6481
6493
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6482
6494
|
let I = w, R = "";
|
6483
6495
|
switch (!0) {
|
@@ -6496,7 +6508,7 @@ class KgUtil {
|
|
6496
6508
|
default:
|
6497
6509
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
6498
6510
|
}
|
6499
|
-
w = ` AND (${
|
6511
|
+
w = ` AND (${p}${T} < '${I}' OR ${p}${T} >= '${R}')`;
|
6500
6512
|
break;
|
6501
6513
|
}
|
6502
6514
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
@@ -6513,7 +6525,7 @@ class KgUtil {
|
|
6513
6525
|
default:
|
6514
6526
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
6515
6527
|
}
|
6516
|
-
w = ` AND (${
|
6528
|
+
w = ` AND (${p}${T} < '${I}')`;
|
6517
6529
|
break;
|
6518
6530
|
}
|
6519
6531
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
@@ -6534,7 +6546,7 @@ class KgUtil {
|
|
6534
6546
|
default:
|
6535
6547
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
6536
6548
|
}
|
6537
|
-
w = ` AND (${
|
6549
|
+
w = ` AND (${p}${T} < '${R}')`;
|
6538
6550
|
break;
|
6539
6551
|
}
|
6540
6552
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
@@ -6555,7 +6567,7 @@ class KgUtil {
|
|
6555
6567
|
default:
|
6556
6568
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
6557
6569
|
}
|
6558
|
-
w = ` AND (${
|
6570
|
+
w = ` AND (${p}${T} >= '${R}')`;
|
6559
6571
|
break;
|
6560
6572
|
}
|
6561
6573
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
@@ -6572,7 +6584,7 @@ class KgUtil {
|
|
6572
6584
|
default:
|
6573
6585
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
6574
6586
|
}
|
6575
|
-
w = ` AND (${
|
6587
|
+
w = ` AND (${p}${T} >= '${I}')`;
|
6576
6588
|
break;
|
6577
6589
|
}
|
6578
6590
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
@@ -6594,16 +6606,16 @@ class KgUtil {
|
|
6594
6606
|
default:
|
6595
6607
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
6596
6608
|
}
|
6597
|
-
w = ` AND (${
|
6609
|
+
w = ` AND (${p}${T} >= '${I}' AND ${p}${T} < '${R}')`;
|
6598
6610
|
break;
|
6599
6611
|
}
|
6600
6612
|
}
|
6601
|
-
o[
|
6613
|
+
o[y] = w;
|
6602
6614
|
break;
|
6603
6615
|
}
|
6604
|
-
case (!!a && isArray$1(
|
6605
|
-
const M =
|
6606
|
-
let I = this.parseParamFromDayJS(
|
6616
|
+
case (!!a && isArray$1(m) && m.length === 2 && a.isDayjs(m[0]) && a.isDayjs(m[1])): {
|
6617
|
+
const M = m[0], w = m[1];
|
6618
|
+
let I = this.parseParamFromDayJS(y, M, r), R = "", N = "";
|
6607
6619
|
switch (!0) {
|
6608
6620
|
case /\d\d-\d\d-\d\d \d\d:\d\d:\d\d/.test(I): {
|
6609
6621
|
R = w.add(1, "second").format("YYYY-MM-DD HH:mm:ss");
|
@@ -6618,120 +6630,120 @@ class KgUtil {
|
|
6618
6630
|
break;
|
6619
6631
|
}
|
6620
6632
|
}
|
6621
|
-
R ?
|
6633
|
+
R ? N = ` AND (${p}${T} >= '${I}' AND ${p}${T} < '${R}')` : N = ` AND (${p}${T} >= '${I}')`, o[y] = N;
|
6622
6634
|
break;
|
6623
6635
|
}
|
6624
|
-
case Array.isArray(
|
6625
|
-
if (
|
6626
|
-
o[
|
6636
|
+
case Array.isArray(m): {
|
6637
|
+
if (m.length === 0) {
|
6638
|
+
o[y] = void 0;
|
6627
6639
|
break;
|
6628
6640
|
}
|
6629
|
-
const M =
|
6630
|
-
o[
|
6641
|
+
const M = m.map((w) => `N'${String(w)}'`).join(", ");
|
6642
|
+
o[y] = ` AND (${p}${T} IN (${M}))`;
|
6631
6643
|
break;
|
6632
6644
|
}
|
6633
|
-
case isObjectLike(
|
6634
|
-
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value:
|
6635
|
-
case typeof
|
6636
|
-
if (
|
6637
|
-
o[
|
6645
|
+
case isObjectLike(m):
|
6646
|
+
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", { value: m }), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
6647
|
+
case typeof m == "string": {
|
6648
|
+
if (m.trim() === "") {
|
6649
|
+
o[y] = void 0;
|
6638
6650
|
break;
|
6639
6651
|
}
|
6640
|
-
let M = this.parseParamFromString(
|
6641
|
-
switch (
|
6652
|
+
let M = this.parseParamFromString(m);
|
6653
|
+
switch (E) {
|
6642
6654
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6643
|
-
M = ` AND (${
|
6655
|
+
M = ` AND (${p}${T} <> N'${M}')`;
|
6644
6656
|
break;
|
6645
6657
|
}
|
6646
6658
|
case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
|
6647
|
-
M = ` AND (${
|
6659
|
+
M = ` AND (${p}${T} LIKE N'${M}%')`;
|
6648
6660
|
break;
|
6649
6661
|
}
|
6650
6662
|
case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
|
6651
|
-
M = ` AND (${
|
6663
|
+
M = ` AND (${p}${T} LIKE N'%${M}')`;
|
6652
6664
|
break;
|
6653
6665
|
}
|
6654
6666
|
case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
|
6655
|
-
M = ` AND (${
|
6667
|
+
M = ` AND (${p}${T} LIKE N'%${M}%')`;
|
6656
6668
|
break;
|
6657
6669
|
}
|
6658
6670
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6659
6671
|
default: {
|
6660
|
-
M = ` AND (${
|
6672
|
+
M = ` AND (${p}${T} = N'${M}')`;
|
6661
6673
|
break;
|
6662
6674
|
}
|
6663
6675
|
}
|
6664
|
-
o[
|
6676
|
+
o[y] = M;
|
6665
6677
|
break;
|
6666
6678
|
}
|
6667
|
-
case typeof
|
6679
|
+
case typeof m == "number": {
|
6668
6680
|
let M = "";
|
6669
|
-
switch (
|
6681
|
+
switch (E) {
|
6670
6682
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6671
|
-
M = ` AND (${
|
6683
|
+
M = ` AND (${p}${T} <> ${m})`;
|
6672
6684
|
break;
|
6673
6685
|
}
|
6674
6686
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
6675
|
-
M = ` AND (${
|
6687
|
+
M = ` AND (${p}${T} < ${m})`;
|
6676
6688
|
break;
|
6677
6689
|
}
|
6678
6690
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
6679
|
-
M = ` AND (${
|
6691
|
+
M = ` AND (${p}${T} <= ${m})`;
|
6680
6692
|
break;
|
6681
6693
|
}
|
6682
6694
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
6683
|
-
M = ` AND (${
|
6695
|
+
M = ` AND (${p}${T} > ${m})`;
|
6684
6696
|
break;
|
6685
6697
|
}
|
6686
6698
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
6687
|
-
M = ` AND (${
|
6699
|
+
M = ` AND (${p}${T} >= ${m})`;
|
6688
6700
|
break;
|
6689
6701
|
}
|
6690
6702
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6691
6703
|
default: {
|
6692
|
-
M = ` AND (${
|
6704
|
+
M = ` AND (${p}${T} = ${m})`;
|
6693
6705
|
break;
|
6694
6706
|
}
|
6695
6707
|
}
|
6696
|
-
o[
|
6708
|
+
o[y] = M;
|
6697
6709
|
break;
|
6698
6710
|
}
|
6699
|
-
case typeof
|
6711
|
+
case typeof m == "boolean": {
|
6700
6712
|
let M = "";
|
6701
|
-
switch (
|
6713
|
+
switch (E) {
|
6702
6714
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6703
|
-
M = ` AND (${
|
6715
|
+
M = ` AND (${p}${T} <> ${m ? 1 : 0})`;
|
6704
6716
|
break;
|
6705
6717
|
}
|
6706
6718
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6707
6719
|
default: {
|
6708
|
-
M = ` AND (${
|
6720
|
+
M = ` AND (${p}${T} = ${m ? 1 : 0})`;
|
6709
6721
|
break;
|
6710
6722
|
}
|
6711
6723
|
}
|
6712
|
-
o[
|
6724
|
+
o[y] = M;
|
6713
6725
|
break;
|
6714
6726
|
}
|
6715
6727
|
default: {
|
6716
|
-
o[
|
6728
|
+
o[y] = m;
|
6717
6729
|
break;
|
6718
6730
|
}
|
6719
6731
|
}
|
6720
6732
|
});
|
6721
6733
|
const d = reduce(
|
6722
6734
|
o,
|
6723
|
-
(
|
6735
|
+
(y, _, p) => l.includes(p) || !_ ? y : y + _,
|
6724
6736
|
""
|
6725
6737
|
);
|
6726
6738
|
let g = "";
|
6727
6739
|
d.trim() && (g = `WHERE${d}`), g = g.replace("WHERE AND", "WHERE");
|
6728
6740
|
let b = "";
|
6729
6741
|
if (n.column) {
|
6730
|
-
const
|
6731
|
-
let
|
6732
|
-
(
|
6742
|
+
const y = i.store.getVarProfileDetail(r, n.column);
|
6743
|
+
let _ = n.column;
|
6744
|
+
(y == null ? void 0 : y.use_underscore_when_dynamic_query_flag) !== 0 && (_ = n.column.split(".").map((p) => snakeCase$1(p)).join(".")), b = `ORDER BY ${_}`, n.order === "asc" ? b += " ASC" : n.order === "desc" && (b += " DESC");
|
6733
6745
|
}
|
6734
|
-
return g
|
6746
|
+
return { sql: `${g} ${b}`, whereSql: g, orderBySql: b };
|
6735
6747
|
}
|
6736
6748
|
static parseParamFromString(t) {
|
6737
6749
|
var n, s, i, o, l;
|
@@ -6958,7 +6970,7 @@ class KgVarUtil {
|
|
6958
6970
|
return r;
|
6959
6971
|
}
|
6960
6972
|
static transformFormItemValue(t, r, a, n, s) {
|
6961
|
-
var g, b,
|
6973
|
+
var g, b, y;
|
6962
6974
|
const i = useKg(), o = useKgVar(t);
|
6963
6975
|
let l = n;
|
6964
6976
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -6969,7 +6981,7 @@ class KgVarUtil {
|
|
6969
6981
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
6970
6982
|
break;
|
6971
6983
|
case "{USER.username}":
|
6972
|
-
l = l.replace("{USER.username}", (
|
6984
|
+
l = l.replace("{USER.username}", (y = (b = (g = i.store).getUseUserStore) == null ? void 0 : b.call(g).userInfo) == null ? void 0 : y.username);
|
6973
6985
|
break;
|
6974
6986
|
}
|
6975
6987
|
}
|
@@ -6977,14 +6989,14 @@ class KgVarUtil {
|
|
6977
6989
|
if (!u)
|
6978
6990
|
return l;
|
6979
6991
|
const d = (() => {
|
6980
|
-
const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ,
|
6992
|
+
const _ = u.ctrl_typ, p = u.prf_ctrl_typ, m = u.crt_ctrl_typ, E = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
|
6981
6993
|
switch (s) {
|
6982
6994
|
case "R":
|
6983
6995
|
return p || _;
|
6984
6996
|
case "C":
|
6985
6997
|
return m || _;
|
6986
6998
|
case "U":
|
6987
|
-
return
|
6999
|
+
return E || _;
|
6988
7000
|
case "CP":
|
6989
7001
|
return T || _;
|
6990
7002
|
case "D":
|
@@ -7081,8 +7093,8 @@ class KgVarUtil {
|
|
7081
7093
|
const p = o.store.getVarPossibility(t, r);
|
7082
7094
|
switch (p == null ? void 0 : p.val_data_type) {
|
7083
7095
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
7084
|
-
const m = _.map((
|
7085
|
-
if (m.some((
|
7096
|
+
const m = _.map((E) => Number(E));
|
7097
|
+
if (m.some((E) => Number.isNaN(m))) {
|
7086
7098
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
7087
7099
|
frm_id: t,
|
7088
7100
|
var_nam: r,
|
@@ -7361,8 +7373,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7361
7373
|
c ? b = w : c == !1 && !C._hotUpdating && (Array.isArray(b) ? b.push(w) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
7362
7374
|
});
|
7363
7375
|
let c, u, d = markRaw([]), g = markRaw([]), b;
|
7364
|
-
const
|
7365
|
-
!i && !
|
7376
|
+
const y = a.state.value[e];
|
7377
|
+
!i && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
7366
7378
|
const _ = ref({});
|
7367
7379
|
function p(w) {
|
7368
7380
|
let I;
|
@@ -7382,15 +7394,15 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7382
7394
|
const m = process.env.NODE_ENV !== "production" ? () => {
|
7383
7395
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
7384
7396
|
} : noop$1;
|
7385
|
-
function
|
7397
|
+
function E() {
|
7386
7398
|
s.stop(), d = [], g = [], a._s.delete(e);
|
7387
7399
|
}
|
7388
7400
|
function T(w, I) {
|
7389
7401
|
return function() {
|
7390
7402
|
setActivePinia(a);
|
7391
|
-
const R = Array.from(arguments),
|
7403
|
+
const R = Array.from(arguments), N = [], O = [];
|
7392
7404
|
function F(V) {
|
7393
|
-
|
7405
|
+
N.push(V);
|
7394
7406
|
}
|
7395
7407
|
function $(V) {
|
7396
7408
|
O.push(V);
|
@@ -7408,7 +7420,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7408
7420
|
} catch (V) {
|
7409
7421
|
throw triggerSubscriptions(O, V), V;
|
7410
7422
|
}
|
7411
|
-
return D instanceof Promise ? D.then((V) => (triggerSubscriptions(
|
7423
|
+
return D instanceof Promise ? D.then((V) => (triggerSubscriptions(N, V), V)).catch((V) => (triggerSubscriptions(O, V), Promise.reject(V))) : (triggerSubscriptions(N, D), D);
|
7412
7424
|
};
|
7413
7425
|
}
|
7414
7426
|
const k = /* @__PURE__ */ markRaw({
|
@@ -7423,7 +7435,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7423
7435
|
$patch: p,
|
7424
7436
|
$reset: m,
|
7425
7437
|
$subscribe(w, I = {}) {
|
7426
|
-
const R = addSubscription(d, w, I.detached, () =>
|
7438
|
+
const R = addSubscription(d, w, I.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (O) => {
|
7427
7439
|
(I.flush === "sync" ? u : c) && w({
|
7428
7440
|
storeId: e,
|
7429
7441
|
type: MutationType.direct,
|
@@ -7432,7 +7444,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7432
7444
|
}, assign$1({}, l, I)));
|
7433
7445
|
return R;
|
7434
7446
|
},
|
7435
|
-
$dispose:
|
7447
|
+
$dispose: E
|
7436
7448
|
}, C = reactive(assign$1(
|
7437
7449
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
7438
7450
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
@@ -7445,7 +7457,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7445
7457
|
for (const w in M) {
|
7446
7458
|
const I = M[w];
|
7447
7459
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
7448
|
-
process.env.NODE_ENV !== "production" && n ? set(_.value, w, toRef(M, w)) : i || (
|
7460
|
+
process.env.NODE_ENV !== "production" && n ? set(_.value, w, toRef(M, w)) : i || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[w] : mergeReactiveObjects(I, y[w])), a.state.value[e][w] = I), process.env.NODE_ENV !== "production" && k.state.push(w);
|
7449
7461
|
else if (typeof I == "function") {
|
7450
7462
|
const R = process.env.NODE_ENV !== "production" && n ? I : T(w, I);
|
7451
7463
|
M[w] = R, process.env.NODE_ENV !== "production" && (k.actions[w] = I), o.actions[w] = I;
|
@@ -7465,8 +7477,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7465
7477
|
C._hotUpdate = markRaw((I) => {
|
7466
7478
|
C._hotUpdating = !0, I._hmrPayload.state.forEach((R) => {
|
7467
7479
|
if (R in C.$state) {
|
7468
|
-
const
|
7469
|
-
typeof
|
7480
|
+
const N = I.$state[R], O = C.$state[R];
|
7481
|
+
typeof N == "object" && isPlainObject(N) && isPlainObject(O) ? patchObject(N, O) : I.$state[R] = O;
|
7470
7482
|
}
|
7471
7483
|
set(C, R, toRef(I.$state, R));
|
7472
7484
|
}), Object.keys(C.$state).forEach((R) => {
|
@@ -7475,11 +7487,11 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7475
7487
|
c = !0;
|
7476
7488
|
});
|
7477
7489
|
for (const R in I._hmrPayload.actions) {
|
7478
|
-
const
|
7479
|
-
set(C, R, T(R,
|
7490
|
+
const N = I[R];
|
7491
|
+
set(C, R, T(R, N));
|
7480
7492
|
}
|
7481
7493
|
for (const R in I._hmrPayload.getters) {
|
7482
|
-
const
|
7494
|
+
const N = I._hmrPayload.getters[R], O = i ? computed(() => (setActivePinia(a), N.call(C, C))) : N;
|
7483
7495
|
set(C, R, O);
|
7484
7496
|
}
|
7485
7497
|
Object.keys(C._hmrPayload.getters).forEach((R) => {
|
@@ -7518,7 +7530,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7518
7530
|
})));
|
7519
7531
|
}), process.env.NODE_ENV !== "production" && C.$state && typeof C.$state == "object" && typeof C.$state.constructor == "function" && !C.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
7520
7532
|
state: () => new MyClass()
|
7521
|
-
Found in store "${C.$id}".`),
|
7533
|
+
Found in store "${C.$id}".`), y && i && r.hydrate && r.hydrate(C.$state, y), c = !0, u = !0, C;
|
7522
7534
|
}
|
7523
7535
|
function defineStore(e, t, r) {
|
7524
7536
|
let a, n;
|
@@ -8060,18 +8072,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
8060
8072
|
slots: r
|
8061
8073
|
}) {
|
8062
8074
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
8063
|
-
const
|
8064
|
-
throw KgLogger.error(
|
8075
|
+
const E = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
8076
|
+
throw KgLogger.error(E, {
|
8065
8077
|
kgMaxHeight: e.kgMaxHeight,
|
8066
8078
|
kgMinHeight: e.kgMinHeight
|
8067
|
-
}), new Error(
|
8079
|
+
}), new Error(E);
|
8068
8080
|
}
|
8069
8081
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
8070
|
-
const
|
8071
|
-
throw KgLogger.error(
|
8082
|
+
const E = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
8083
|
+
throw KgLogger.error(E, {
|
8072
8084
|
kgMaxWidth: e.kgMaxWidth,
|
8073
8085
|
kgMinWidth: e.kgMinWidth
|
8074
|
-
}), new Error(
|
8086
|
+
}), new Error(E);
|
8075
8087
|
}
|
8076
8088
|
let a = 0, n = 0, s = 0, i = 0, o = {
|
8077
8089
|
remove: () => {
|
@@ -8094,22 +8106,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
8094
8106
|
};
|
8095
8107
|
}
|
8096
8108
|
}), u = computed(() => {
|
8097
|
-
let
|
8098
|
-
switch (e.kgClass && (
|
8109
|
+
let E = "";
|
8110
|
+
switch (e.kgClass && (E += `${e.kgClass} `), E += "kg-resizable", e.kgDisabled && (E += " kg-resizable--disabled"), e.kgType) {
|
8099
8111
|
case "left":
|
8100
|
-
|
8112
|
+
E += " kg-resizable--left";
|
8101
8113
|
break;
|
8102
8114
|
case "right":
|
8103
|
-
|
8115
|
+
E += " kg-resizable--right";
|
8104
8116
|
break;
|
8105
8117
|
case "top":
|
8106
|
-
|
8118
|
+
E += " kg-resizable--top";
|
8107
8119
|
break;
|
8108
8120
|
case "bottom":
|
8109
|
-
|
8121
|
+
E += " kg-resizable--bottom";
|
8110
8122
|
break;
|
8111
8123
|
}
|
8112
|
-
return
|
8124
|
+
return E;
|
8113
8125
|
});
|
8114
8126
|
function d() {
|
8115
8127
|
o.remove(), l.remove();
|
@@ -8117,41 +8129,41 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
8117
8129
|
onUnmounted(() => {
|
8118
8130
|
d();
|
8119
8131
|
});
|
8120
|
-
const g = (
|
8132
|
+
const g = (E) => {
|
8121
8133
|
switch (e.kgType) {
|
8122
8134
|
case "top":
|
8123
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
8135
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (E.pageY - i))));
|
8124
8136
|
break;
|
8125
8137
|
case "bottom":
|
8126
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
8138
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (E.pageY - i))));
|
8127
8139
|
break;
|
8128
8140
|
case "left":
|
8129
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
8141
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (E.pageX - s))));
|
8130
8142
|
break;
|
8131
8143
|
case "right":
|
8132
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
8144
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (E.pageX - s))));
|
8133
8145
|
break;
|
8134
8146
|
}
|
8135
8147
|
};
|
8136
|
-
function b(
|
8137
|
-
g(
|
8148
|
+
function b(E) {
|
8149
|
+
g(E);
|
8138
8150
|
}
|
8139
|
-
function E
|
8140
|
-
g(
|
8151
|
+
function y(E) {
|
8152
|
+
g(E), d();
|
8141
8153
|
}
|
8142
|
-
function _(
|
8143
|
-
|
8154
|
+
function _(E) {
|
8155
|
+
E.stopPropagation(), E.preventDefault(), d(), !(E instanceof MouseEvent && E.which !== 1) && (s = E.pageX, i = E.pageY, a = e.kgWidth, n = e.kgHeight, o = p(document.documentElement, "mousemove", b), l = p(document.documentElement, "mouseup", y));
|
8144
8156
|
}
|
8145
|
-
function p(
|
8146
|
-
return
|
8147
|
-
remove: () =>
|
8157
|
+
function p(E, T, k) {
|
8158
|
+
return E.addEventListener(T, k), {
|
8159
|
+
remove: () => E.removeEventListener(T, k)
|
8148
8160
|
};
|
8149
8161
|
}
|
8150
|
-
function m(
|
8151
|
-
|
8162
|
+
function m(E) {
|
8163
|
+
E.stopPropagation(), E.preventDefault();
|
8152
8164
|
}
|
8153
8165
|
return () => {
|
8154
|
-
var
|
8166
|
+
var E;
|
8155
8167
|
return createVNode("div", {
|
8156
8168
|
class: u.value,
|
8157
8169
|
style: c.value
|
@@ -8161,7 +8173,7 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
8161
8173
|
onMousedown: _
|
8162
8174
|
}, [createVNode("div", {
|
8163
8175
|
class: "kg-resizable-handle-line"
|
8164
|
-
}, null)]), (
|
8176
|
+
}, null)]), (E = r.default) == null ? void 0 : E.call(r)]);
|
8165
8177
|
};
|
8166
8178
|
}
|
8167
8179
|
}), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
|
@@ -8314,13 +8326,13 @@ function createStore(e, t, r) {
|
|
8314
8326
|
var u = this[c];
|
8315
8327
|
this[c] = function() {
|
8316
8328
|
var g = slice(arguments, 0), b = this;
|
8317
|
-
function
|
8329
|
+
function y() {
|
8318
8330
|
if (!!u)
|
8319
8331
|
return each$6(arguments, function(p, m) {
|
8320
8332
|
g[m] = p;
|
8321
8333
|
}), u.apply(b, g);
|
8322
8334
|
}
|
8323
|
-
var _ = [
|
8335
|
+
var _ = [y].concat(g);
|
8324
8336
|
return l.apply(b, _);
|
8325
8337
|
};
|
8326
8338
|
},
|
@@ -9414,17 +9426,17 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9414
9426
|
varButtons: d,
|
9415
9427
|
varSubmitConfig: g,
|
9416
9428
|
varSubmitFields: b,
|
9417
|
-
varProfileMasters:
|
9429
|
+
varProfileMasters: y,
|
9418
9430
|
varProfileConfig: _,
|
9419
9431
|
varGridMasters: p,
|
9420
9432
|
varGridConfig: m
|
9421
9433
|
} = await GetAll({ params: { frm_id: e } });
|
9422
9434
|
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(g)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(b)), this.varProfileConfigMap.set(e, transformVarProfileConfig(_ != null ? _ : null)), this.varProfileMasterMap.set(e, {
|
9423
|
-
varProfileMasters: transformVarProfileMasterDTOs(
|
9424
|
-
currentVarProfileMasterID: (r = (t = (
|
9435
|
+
varProfileMasters: transformVarProfileMasterDTOs(y),
|
9436
|
+
currentVarProfileMasterID: (r = (t = (y == null ? void 0 : y.find((E) => E.id === this.getCurrentVarProfileMasterID(e))) || (y == null ? void 0 : y.find((E) => E.def_flg === 1)) || (y == null ? void 0 : y.find((E) => E.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (y == null ? void 0 : y.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
|
9425
9437
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(m != null ? m : null)), this.varGridMasterMap.set(e, {
|
9426
9438
|
varGridMasters: transformVarGridMasterDTOs(p),
|
9427
|
-
currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((
|
9439
|
+
currentVarGridMasterID: (n = (a = (p == null ? void 0 : p.find((E) => E.id === this.getCurrentVarGridMasterID(e))) || (p == null ? void 0 : p.find((E) => E.def_flg === 1)) || (p == null ? void 0 : p.find((E) => E.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (p == null ? void 0 : p.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
|
9428
9440
|
}), await Promise.all([
|
9429
9441
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
9430
9442
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
@@ -9617,14 +9629,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9617
9629
|
function useKgVar(e, t, r = 0) {
|
9618
9630
|
var a, n;
|
9619
9631
|
try {
|
9620
|
-
let s = function(
|
9621
|
-
u.setIsCreating(c,
|
9622
|
-
}, i = function(
|
9623
|
-
u.setIsUpdating(c,
|
9624
|
-
}, o = function(
|
9625
|
-
u.setIsCopying(c,
|
9626
|
-
}, l = function(
|
9627
|
-
u.setIsDeleting(c,
|
9632
|
+
let s = function(Z) {
|
9633
|
+
u.setIsCreating(c, Z);
|
9634
|
+
}, i = function(Z) {
|
9635
|
+
u.setIsUpdating(c, Z);
|
9636
|
+
}, o = function(Z) {
|
9637
|
+
u.setIsCopying(c, Z);
|
9638
|
+
}, l = function(Z) {
|
9639
|
+
u.setIsDeleting(c, Z);
|
9628
9640
|
}, c = e || inject(KG_DI_FORM_ID, "");
|
9629
9641
|
if (!c)
|
9630
9642
|
throw new Error("useKgVar() | \u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
|
@@ -9634,20 +9646,20 @@ function useKgVar(e, t, r = 0) {
|
|
9634
9646
|
}), onUnmounted(() => {
|
9635
9647
|
u.dispose(c);
|
9636
9648
|
}));
|
9637
|
-
const d = (
|
9638
|
-
var
|
9639
|
-
return (te = (
|
9640
|
-
}),
|
9649
|
+
const d = (Z) => computed(() => u.t(c, Z)), g = computed(() => u.isRetrieving(c)), b = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), _ = computed(() => u.isRetrieved(c)), p = computed(() => u.isCreating(c)), m = computed(() => u.isCreatingRequesting(c)), E = computed(() => u.isUpdating(c)), T = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), A = computed(() => u.isCopyingRequesting(c)), C = computed(() => u.isDeleting(c)), M = computed(() => u.isDeletingRequesting(c)), w = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), R = computed(() => u.getVarButtonSearch(c)), N = computed(() => u.getVarButtonCreate(c)), O = computed(() => u.getVarButtonUpdate(c)), F = computed(() => u.getVarButtonCopy(c)), $ = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), V = computed(() => u.getCurrentVarProfileMasterID(c)), P = computed(() => u.getCurrentVarProfileMaster(c)), B = computed(() => {
|
9650
|
+
var Z, te;
|
9651
|
+
return (te = (Z = P.value) == null ? void 0 : Z.varProfileDetails) != null ? te : null;
|
9652
|
+
}), Y = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMasterID(c)), W = computed(() => u.getCurrentVarGridMaster(c)), q = computed(() => u.getSystemVarGridDetails(c)), J = computed(() => u.getCurrentVarGridDetails(c));
|
9641
9653
|
return {
|
9642
9654
|
formID: c,
|
9643
9655
|
store: u,
|
9644
9656
|
isRetrieving: g,
|
9645
9657
|
isRetrievingVarProfileMaster: b,
|
9646
|
-
isRetrievingVarGridMaster:
|
9658
|
+
isRetrievingVarGridMaster: y,
|
9647
9659
|
isRetrieved: _,
|
9648
9660
|
isCreating: p,
|
9649
9661
|
isCreatingRequesting: m,
|
9650
|
-
isUpdating:
|
9662
|
+
isUpdating: E,
|
9651
9663
|
isUpdatingRequesting: T,
|
9652
9664
|
isCopying: k,
|
9653
9665
|
isCopyingRequesting: A,
|
@@ -9656,20 +9668,20 @@ function useKgVar(e, t, r = 0) {
|
|
9656
9668
|
isOtherRequesting: w,
|
9657
9669
|
varButtons: I,
|
9658
9670
|
varButtonSearch: R,
|
9659
|
-
varButtonCreate:
|
9671
|
+
varButtonCreate: N,
|
9660
9672
|
varButtonUpdate: O,
|
9661
9673
|
varButtonCopy: F,
|
9662
9674
|
varButtonDelete: $,
|
9663
9675
|
varProfileMasters: D,
|
9664
9676
|
currentVarProfileMasterID: V,
|
9665
|
-
currentVarProfileMaster:
|
9677
|
+
currentVarProfileMaster: P,
|
9666
9678
|
currentVarProfileDetails: B,
|
9667
|
-
varGridConfig:
|
9668
|
-
varGridMasters:
|
9679
|
+
varGridConfig: Y,
|
9680
|
+
varGridMasters: K,
|
9669
9681
|
currentVarGridMasteID: x,
|
9670
|
-
currentVarGridMaster:
|
9682
|
+
currentVarGridMaster: W,
|
9671
9683
|
systemVarGridDetails: q,
|
9672
|
-
currentVarGridDetails:
|
9684
|
+
currentVarGridDetails: J,
|
9673
9685
|
setIsCreating: s,
|
9674
9686
|
setIsUpdating: i,
|
9675
9687
|
setIsCopying: o,
|
@@ -9693,10 +9705,10 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9693
9705
|
}) {
|
9694
9706
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
9695
9707
|
const r = useKgVar(), a = useKgSearch(r.formID), n = useKgButton(r.formID), s = useKgSubmit(r.formID), i = useKgTable(r.formID), o = computed(() => r.store.getVarProfileConfig(r.formID)), l = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => r.store.getVarGridConfig(r.formID)), u = computed(() => r.store.getVarSubmitConfig(r.formID)), d = computed(() => {
|
9696
|
-
var
|
9708
|
+
var E, T, k, A;
|
9697
9709
|
switch (!0) {
|
9698
9710
|
case r.isCreating.value:
|
9699
|
-
return ((
|
9711
|
+
return ((E = u.value) == null ? void 0 : E.crt_flg) !== 0;
|
9700
9712
|
case r.isUpdating.value:
|
9701
9713
|
return ((T = u.value) == null ? void 0 : T.upt_flg) !== 0;
|
9702
9714
|
case r.isCopying.value:
|
@@ -9706,25 +9718,25 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9706
9718
|
}
|
9707
9719
|
return !1;
|
9708
9720
|
}), g = computed(() => {
|
9709
|
-
var
|
9710
|
-
return r.isRetrieved.value && ((
|
9721
|
+
var E;
|
9722
|
+
return r.isRetrieved.value && ((E = o.value) == null ? void 0 : E.available_flg) !== 0;
|
9711
9723
|
}), b = computed(() => {
|
9712
|
-
var
|
9713
|
-
return r.isRetrieved.value && ((
|
9714
|
-
}),
|
9715
|
-
var
|
9716
|
-
return r.isRetrieved.value && ((
|
9724
|
+
var E;
|
9725
|
+
return r.isRetrieved.value && ((E = l.value) == null ? void 0 : E.available_flg) !== 0;
|
9726
|
+
}), y = computed(() => {
|
9727
|
+
var E;
|
9728
|
+
return r.isRetrieved.value && ((E = c.value) == null ? void 0 : E.available_flg) !== 0;
|
9717
9729
|
}), _ = computed(() => !!r.isOtherRequesting.value), p = computed(() => {
|
9718
|
-
let
|
9719
|
-
return e.KgBackgroundGray && (
|
9730
|
+
let E = "kg-var";
|
9731
|
+
return e.KgBackgroundGray && (E += " kg-var--bg-gray"), !g.value && !b.value && !y.value && (E += " kg-var--empty"), E;
|
9720
9732
|
});
|
9721
9733
|
function m() {
|
9722
9734
|
return createVNode(Spin, {
|
9723
9735
|
spinning: _.value
|
9724
9736
|
}, {
|
9725
9737
|
default: () => {
|
9726
|
-
var
|
9727
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), b.value && createVNode(KgButton, null, null),
|
9738
|
+
var E, T;
|
9739
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [g.value && createVNode(KgSearch, null, null), b.value && createVNode(KgButton, null, null), y.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (E = e.kgSlots) == null ? void 0 : E.afterKgTable) == null ? void 0 : T.call(E)]), d.value && createVNode(KgSubmit, null, null)])];
|
9728
9740
|
}
|
9729
9741
|
});
|
9730
9742
|
}
|
@@ -9753,13 +9765,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9753
9765
|
return (m = (p = d == null ? void 0 : d.value) == null ? void 0 : p.ret_fld) != null ? m : "";
|
9754
9766
|
});
|
9755
9767
|
u.onRowDoubleClick(async () => (await _(), !1));
|
9756
|
-
function
|
9768
|
+
function y() {
|
9757
9769
|
r("update:visible", !1);
|
9758
9770
|
}
|
9759
9771
|
async function _() {
|
9760
|
-
var p, m,
|
9772
|
+
var p, m, E, T, k, A, C;
|
9761
9773
|
if (g.value) {
|
9762
|
-
const M = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], w = (
|
9774
|
+
const M = (m = (p = u.selectedRows) == null ? void 0 : p.value) != null ? m : [], w = (E = M.map((R) => R[b.value])) != null ? E : [];
|
9763
9775
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9764
9776
|
var_nam: i,
|
9765
9777
|
isMultiple: !0,
|
@@ -9798,7 +9810,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9798
9810
|
disabled: ((m = (p = u.selectedRows.value) == null ? void 0 : p.length) != null ? m : 0) === 0
|
9799
9811
|
},
|
9800
9812
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
9801
|
-
onCancel:
|
9813
|
+
onCancel: y,
|
9802
9814
|
onOk: _
|
9803
9815
|
}, {
|
9804
9816
|
default: () => [createVNode(KgVar, null, null)]
|
@@ -9893,7 +9905,7 @@ function _useRules(e) {
|
|
9893
9905
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), s = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
9894
9906
|
return {
|
9895
9907
|
rules: computed(() => {
|
9896
|
-
var l, c, u, d, g, b,
|
9908
|
+
var l, c, u, d, g, b, y, _, p, m;
|
9897
9909
|
let o = [];
|
9898
9910
|
switch (e.kgContext) {
|
9899
9911
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9934,11 +9946,11 @@ function _useRules(e) {
|
|
9934
9946
|
switch ((b = n.value) == null ? void 0 : b.data_type) {
|
9935
9947
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9936
9948
|
{
|
9937
|
-
const
|
9938
|
-
isNil(
|
9939
|
-
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <
|
9949
|
+
const E = (y = n.value) == null ? void 0 : y.min;
|
9950
|
+
isNil(E) || (((_ = n.value) == null ? void 0 : _.min_include_flg) === 1 ? o.push({
|
9951
|
+
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
|
9940
9952
|
}) : o.push({
|
9941
|
-
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <=
|
9953
|
+
validator: (k, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= E ? Promise.reject(t.t("kg.KgFormItem.mustGT", [E])) : Promise.resolve()
|
9942
9954
|
}));
|
9943
9955
|
const T = (p = n.value) == null ? void 0 : p.max;
|
9944
9956
|
isNil(T) || (((m = n.value) == null ? void 0 : m.max_include_flg) === 1 ? o.push({
|
@@ -9955,8 +9967,8 @@ function _useRules(e) {
|
|
9955
9967
|
}
|
9956
9968
|
function useKgFormItem(e) {
|
9957
9969
|
const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
|
9958
|
-
var b,
|
9959
|
-
const o = ((b = n.value) == null ? void 0 : b.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (
|
9970
|
+
var b, y, _, p, m, E;
|
9971
|
+
const o = ((b = n.value) == null ? void 0 : b.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (y = n.value) == null ? void 0 : y.prf_ctrl_typ, c = (_ = n.value) == null ? void 0 : _.crt_ctrl_typ, u = (p = n.value) == null ? void 0 : p.upt_ctrl_typ, d = (m = n.value) == null ? void 0 : m.cpy_ctrl_typ, g = (E = n.value) == null ? void 0 : E.del_ctrl_typ;
|
9960
9972
|
switch (r) {
|
9961
9973
|
case KG_FORM_CONTEXT.SEARCH:
|
9962
9974
|
return l || o;
|
@@ -9974,9 +9986,9 @@ function useKgFormItem(e) {
|
|
9974
9986
|
}
|
9975
9987
|
return o;
|
9976
9988
|
}), i = computed(() => {
|
9977
|
-
var
|
9989
|
+
var y, _, p, m, E, T;
|
9978
9990
|
let o;
|
9979
|
-
const l = (
|
9991
|
+
const l = (y = n.value) == null ? void 0 : y.ctrl_prop, c = (_ = n.value) == null ? void 0 : _.prf_ctrl_prop, u = (p = n.value) == null ? void 0 : p.crt_ctrl_prop, d = (m = n.value) == null ? void 0 : m.upt_ctrl_prop, g = (E = n.value) == null ? void 0 : E.cpy_ctrl_prop, b = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
9980
9992
|
switch (r) {
|
9981
9993
|
case KG_FORM_CONTEXT.SEARCH:
|
9982
9994
|
o = c || l;
|
@@ -10009,16 +10021,16 @@ function useKgFormItemSelect() {
|
|
10009
10021
|
controlType: n,
|
10010
10022
|
controlProperties: s
|
10011
10023
|
} = useKgFormItem(), i = ref(!1), o = ref([]), l = computed(() => {
|
10012
|
-
var b,
|
10013
|
-
return (
|
10024
|
+
var b, y;
|
10025
|
+
return (y = (b = a.value) == null ? void 0 : b.val_clm) != null ? y : "";
|
10014
10026
|
}), c = computed(() => {
|
10015
|
-
var b,
|
10016
|
-
return (
|
10027
|
+
var b, y;
|
10028
|
+
return (y = (b = a.value) == null ? void 0 : b.lbl_clm) != null ? y : "";
|
10017
10029
|
}), u = computed(() => {
|
10018
|
-
var
|
10019
|
-
let b = KgVarUtil.parseCommandParameter((
|
10030
|
+
var y;
|
10031
|
+
let b = KgVarUtil.parseCommandParameter((y = a.value) == null ? void 0 : y.cmd_prm);
|
10020
10032
|
return b = mapValues(b, (_) => {
|
10021
|
-
var m,
|
10033
|
+
var m, E;
|
10022
10034
|
let p = _;
|
10023
10035
|
if (typeof _ == "string" && _.startsWith("{") && _.endsWith("}")) {
|
10024
10036
|
let T = _.slice(1, -1), k = "";
|
@@ -10026,7 +10038,7 @@ function useKgFormItemSelect() {
|
|
10026
10038
|
const A = T.split(".");
|
10027
10039
|
T = A[0], k = A[1];
|
10028
10040
|
}
|
10029
|
-
t.value && T in t.value && (k ? p = (
|
10041
|
+
t.value && T in t.value && (k ? p = (E = (m = t.value[`${T}_obj`]) == null ? void 0 : m[k]) != null ? E : void 0 : p = t.value[T], p || (p = "__kg__form_item_select__pid"));
|
10030
10042
|
}
|
10031
10043
|
return p;
|
10032
10044
|
}), b;
|
@@ -10034,21 +10046,21 @@ function useKgFormItemSelect() {
|
|
10034
10046
|
async function d() {
|
10035
10047
|
var T, k, A, C, M, w, I, R;
|
10036
10048
|
let b = [];
|
10037
|
-
const
|
10038
|
-
if (!
|
10049
|
+
const y = (T = a.value) == null ? void 0 : T.cmd, _ = (A = (k = a.value) == null ? void 0 : k.cmd_method) != null ? A : "GET", p = (M = (C = a.value) == null ? void 0 : C.val_clm) != null ? M : "", m = (I = (w = a.value) == null ? void 0 : w.lbl_clm) != null ? I : "";
|
10050
|
+
if (!y || !p || !m) {
|
10039
10051
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
10040
10052
|
frm_id: r.formID,
|
10041
10053
|
var_nam: e,
|
10042
|
-
cmd:
|
10054
|
+
cmd: y,
|
10043
10055
|
val_clm: p,
|
10044
10056
|
lbl_clm: m
|
10045
10057
|
});
|
10046
10058
|
return;
|
10047
10059
|
}
|
10048
|
-
let
|
10060
|
+
let E = null;
|
10049
10061
|
try {
|
10050
|
-
i.value = !0,
|
10051
|
-
url:
|
10062
|
+
i.value = !0, E = await ((R = httpClient()) == null ? void 0 : R.request({
|
10063
|
+
url: y,
|
10052
10064
|
method: _,
|
10053
10065
|
params: u.value
|
10054
10066
|
}));
|
@@ -10056,59 +10068,59 @@ function useKgFormItemSelect() {
|
|
10056
10068
|
} finally {
|
10057
10069
|
i.value = !1;
|
10058
10070
|
}
|
10059
|
-
if (!isObjectLike(
|
10071
|
+
if (!isObjectLike(E))
|
10060
10072
|
b = [];
|
10061
10073
|
else
|
10062
10074
|
switch (!0) {
|
10063
|
-
case isArrayLike(
|
10064
|
-
b = g(
|
10075
|
+
case isArrayLike(E):
|
10076
|
+
b = g(E);
|
10065
10077
|
break;
|
10066
|
-
case (
|
10067
|
-
b = g(
|
10078
|
+
case (E && "total" in E && "records" in E):
|
10079
|
+
b = g(E.records);
|
10068
10080
|
break;
|
10069
10081
|
}
|
10070
10082
|
if (b.length > 0) {
|
10071
|
-
const
|
10072
|
-
(!(p in
|
10083
|
+
const N = b[0];
|
10084
|
+
(!(p in N) || !(m in N)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
10073
10085
|
frm_id: r.formID,
|
10074
10086
|
var_nam: e,
|
10075
|
-
cmd:
|
10087
|
+
cmd: y,
|
10076
10088
|
val_clm: p,
|
10077
10089
|
lbl_clm: m,
|
10078
|
-
\u6240\u6709\u5217: Object.keys(
|
10090
|
+
\u6240\u6709\u5217: Object.keys(N)
|
10079
10091
|
});
|
10080
10092
|
}
|
10081
10093
|
o.value = b;
|
10082
10094
|
}
|
10083
10095
|
function g(b) {
|
10084
|
-
var p, m,
|
10096
|
+
var p, m, E, T, k;
|
10085
10097
|
if (!b)
|
10086
10098
|
return [];
|
10087
|
-
const
|
10099
|
+
const y = (m = (p = a.value) == null ? void 0 : p.val_clm) != null ? m : "", _ = (T = (E = a.value) == null ? void 0 : E.val_data_type) != null ? T : "string";
|
10088
10100
|
switch (_) {
|
10089
10101
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
10090
10102
|
b.forEach((A) => {
|
10091
|
-
A[
|
10103
|
+
A[y] = String(A[y]);
|
10092
10104
|
});
|
10093
10105
|
break;
|
10094
10106
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
10095
10107
|
b.forEach((A) => {
|
10096
|
-
let C = Number(A[
|
10097
|
-
Number.isNaN(C) && (C = A[
|
10108
|
+
let C = Number(A[y]);
|
10109
|
+
Number.isNaN(C) && (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
10098
10110
|
frm_id: r.formID,
|
10099
10111
|
var_nam: e,
|
10100
10112
|
VarPossibility: a.value
|
10101
|
-
})), A[
|
10113
|
+
})), A[y] = C;
|
10102
10114
|
});
|
10103
10115
|
break;
|
10104
10116
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
10105
10117
|
b.forEach((A) => {
|
10106
10118
|
let C;
|
10107
|
-
String(A[
|
10119
|
+
String(A[y]).toLowerCase() === "true" ? C = !0 : String(A[y]).toLowerCase() === "false" ? C = !1 : (C = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${_} \u7C7B\u578B`, {
|
10108
10120
|
frm_id: r.formID,
|
10109
10121
|
var_nam: e,
|
10110
10122
|
VarPossibility: a.value
|
10111
|
-
})), A[
|
10123
|
+
})), A[y] = C;
|
10112
10124
|
});
|
10113
10125
|
break;
|
10114
10126
|
}
|
@@ -10119,7 +10131,7 @@ function useKgFormItemSelect() {
|
|
10119
10131
|
if ((k = A.value) != null && k.excludeValues)
|
10120
10132
|
return b.filter((C) => {
|
10121
10133
|
var M;
|
10122
|
-
return !((M = A.value.excludeValues) != null && M.includes(C[
|
10134
|
+
return !((M = A.value.excludeValues) != null && M.includes(C[y]));
|
10123
10135
|
});
|
10124
10136
|
}
|
10125
10137
|
break;
|
@@ -10160,19 +10172,19 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10160
10172
|
watch(o, () => b(), {
|
10161
10173
|
immediate: !0
|
10162
10174
|
}), watch([() => e.value, c], ([p, m]) => {
|
10163
|
-
const
|
10164
|
-
if (
|
10175
|
+
const E = get(p, "length", 0);
|
10176
|
+
if (E > 0 && m.length > 0) {
|
10165
10177
|
const T = intersection$1(p, m == null ? void 0 : m.map((k) => k[l.value]));
|
10166
|
-
if (T.length <
|
10178
|
+
if (T.length < E) {
|
10167
10179
|
r("update:value", T);
|
10168
10180
|
return;
|
10169
10181
|
}
|
10170
10182
|
}
|
10171
10183
|
switch (!0) {
|
10172
|
-
case (
|
10184
|
+
case (E > 0 && E === m.length):
|
10173
10185
|
d.value = !0, g.value = !1;
|
10174
10186
|
break;
|
10175
|
-
case (
|
10187
|
+
case (E > 0 && E !== m.length):
|
10176
10188
|
d.value = !1, g.value = !0;
|
10177
10189
|
break;
|
10178
10190
|
default:
|
@@ -10184,11 +10196,11 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10184
10196
|
});
|
10185
10197
|
async function b() {
|
10186
10198
|
var p, m;
|
10187
|
-
!((p = i.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((
|
10199
|
+
!((p = i.value) != null && p.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((m = c.value) == null ? void 0 : m.map((E) => E[l.value]), e.value)));
|
10188
10200
|
}
|
10189
|
-
function
|
10190
|
-
var m,
|
10191
|
-
p.target.checked ? _((
|
10201
|
+
function y(p) {
|
10202
|
+
var m, E, T;
|
10203
|
+
p.target.checked ? _((E = (m = c.value) == null ? void 0 : m.map((k) => k[l.value])) != null ? E : []) : _([]), g.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
10192
10204
|
}
|
10193
10205
|
function _(p) {
|
10194
10206
|
r("update:value", p), r("kgChange", p);
|
@@ -10200,9 +10212,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10200
10212
|
}, [createVNode(Form.ItemRest, null, {
|
10201
10213
|
default: () => [createVNode(Checkbox, {
|
10202
10214
|
checked: d.value,
|
10203
|
-
"onUpdate:checked": (
|
10215
|
+
"onUpdate:checked": (E) => d.value = E,
|
10204
10216
|
indeterminate: g.value,
|
10205
|
-
onChange:
|
10217
|
+
onChange: y
|
10206
10218
|
}, _isSlot$b(p = a.t("kg.selectAll")) ? p : {
|
10207
10219
|
default: () => [p]
|
10208
10220
|
})]
|
@@ -10212,18 +10224,18 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
10212
10224
|
}, {
|
10213
10225
|
default: () => [createVNode(Row, {
|
10214
10226
|
gutter: 12
|
10215
|
-
}, _isSlot$b(m = c.value.map((
|
10227
|
+
}, _isSlot$b(m = c.value.map((E) => {
|
10216
10228
|
var T, k;
|
10217
10229
|
return createVNode(Col, {
|
10218
10230
|
span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
|
10219
10231
|
}, {
|
10220
10232
|
default: () => [createVNode(Checkbox, {
|
10221
|
-
value:
|
10222
|
-
"kg-value":
|
10233
|
+
value: E[l.value],
|
10234
|
+
"kg-value": E[l.value]
|
10223
10235
|
}, {
|
10224
10236
|
default: () => {
|
10225
10237
|
var A, C;
|
10226
|
-
return [
|
10238
|
+
return [E[(C = (A = i.value) == null ? void 0 : A.lbl_clm) != null ? C : ""]];
|
10227
10239
|
}
|
10228
10240
|
})]
|
10229
10241
|
});
|
@@ -10381,9 +10393,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10381
10393
|
default: () => [createVNode(Row, {
|
10382
10394
|
gutter: 12
|
10383
10395
|
}, _isSlot$a(d = o.value.map((g) => {
|
10384
|
-
var b,
|
10396
|
+
var b, y;
|
10385
10397
|
return createVNode(Col, {
|
10386
|
-
span: (
|
10398
|
+
span: (y = (b = a.value) == null ? void 0 : b.span) != null ? y : 24
|
10387
10399
|
}, {
|
10388
10400
|
default: () => [createVNode(Radio, {
|
10389
10401
|
value: g[i.value],
|
@@ -10429,7 +10441,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10429
10441
|
switch (await g(), r("kgSelectDatasChange", d.value), e.kgMode) {
|
10430
10442
|
case "multiple": {
|
10431
10443
|
if (Array.isArray(e.value)) {
|
10432
|
-
const m = e.value.filter((
|
10444
|
+
const m = e.value.filter((E) => d.value.find((T) => T[l.value] === E));
|
10433
10445
|
m.length > 0 ? r("update:value", m) : r("update:value", []);
|
10434
10446
|
}
|
10435
10447
|
break;
|
@@ -10439,8 +10451,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10439
10451
|
break;
|
10440
10452
|
}
|
10441
10453
|
}
|
10442
|
-
function
|
10443
|
-
var m,
|
10454
|
+
function y(p) {
|
10455
|
+
var m, E;
|
10444
10456
|
switch (e.kgMode) {
|
10445
10457
|
case "multiple": {
|
10446
10458
|
if (Array.isArray(p)) {
|
@@ -10453,7 +10465,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10453
10465
|
break;
|
10454
10466
|
}
|
10455
10467
|
default: {
|
10456
|
-
const T = (
|
10468
|
+
const T = (E = toRaw(d.value.find((k) => k[l.value] === p))) != null ? E : null;
|
10457
10469
|
r("kgSelectChange", T), s.store.emit(s.formID, "selectChange", {
|
10458
10470
|
var_nam: e.kgVarName,
|
10459
10471
|
rows: T
|
@@ -10478,10 +10490,10 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10478
10490
|
placeholder: e.kgPlaceholder,
|
10479
10491
|
showArrow: !0,
|
10480
10492
|
showSearch: !0,
|
10481
|
-
filterOption: (m,
|
10493
|
+
filterOption: (m, E) => (E == null ? void 0 : E.value) !== null && (E == null ? void 0 : E.value) !== void 0 && String(E.value).toLowerCase().includes(m.toLowerCase()) || (E == null ? void 0 : E.label) !== null && (E == null ? void 0 : E.label) !== void 0 && String(E.label).toLowerCase().includes(m.toLowerCase()),
|
10482
10494
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item-select-dropdown kg-form-item-multi-select-dropdown" : "kg-form-item-select-dropdown",
|
10483
10495
|
class: "kg-form-item-select",
|
10484
|
-
onChange:
|
10496
|
+
onChange: y,
|
10485
10497
|
"kg-value": e.value,
|
10486
10498
|
"kg-cmd": (p = i.value) == null ? void 0 : p.cmd,
|
10487
10499
|
"kg-val_clm": l.value,
|
@@ -10564,10 +10576,10 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10564
10576
|
value: D,
|
10565
10577
|
values: V
|
10566
10578
|
}) => {
|
10567
|
-
var
|
10579
|
+
var P;
|
10568
10580
|
switch (O) {
|
10569
10581
|
case e.kgVarName:
|
10570
|
-
F.value && ($ ? F.value[e.kgVarName] = V : F.value[e.kgVarName] = D), (
|
10582
|
+
F.value && ($ ? F.value[e.kgVarName] = V : F.value[e.kgVarName] = D), (P = n.value) == null || P.validate([e.kgVarName]);
|
10571
10583
|
break;
|
10572
10584
|
}
|
10573
10585
|
return !1;
|
@@ -10575,9 +10587,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10575
10587
|
const c = computed(() => i.store.getVarLookup(i.formID, e.kgVarName)), u = computed(() => i.store.getVarVariableConfig(i.formID, e.kgVarName)), d = computed(() => i.store.getVarProfileDetail(i.formID, e.kgVarName)), g = computed(() => i.store.getVarSubmitField(i.formID, e.kgVarName)), {
|
10576
10588
|
rules: b
|
10577
10589
|
} = _useRules(e), {
|
10578
|
-
controlType:
|
10590
|
+
controlType: y
|
10579
10591
|
} = useKgFormItem(e), _ = computed(() => {
|
10580
|
-
var F, $, D, V,
|
10592
|
+
var F, $, D, V, P;
|
10581
10593
|
if (i.isRetrieving.value)
|
10582
10594
|
return !0;
|
10583
10595
|
let O = !1;
|
@@ -10600,7 +10612,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10600
10612
|
O = ((V = g.value) == null ? void 0 : V.cpy_ena_flg) === 0;
|
10601
10613
|
break;
|
10602
10614
|
case i.isDeleting.value:
|
10603
|
-
O = ((
|
10615
|
+
O = ((P = g.value) == null ? void 0 : P.del_ena_flg) === 0;
|
10604
10616
|
break;
|
10605
10617
|
}
|
10606
10618
|
break;
|
@@ -10622,7 +10634,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10622
10634
|
}
|
10623
10635
|
return O;
|
10624
10636
|
}), m = computed(() => {
|
10625
|
-
var F, $, D, V,
|
10637
|
+
var F, $, D, V, P, B, Y, K, x, W;
|
10626
10638
|
let O = 6;
|
10627
10639
|
if (e.kgSpan !== void 0)
|
10628
10640
|
O = e.kgSpan;
|
@@ -10637,22 +10649,22 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10637
10649
|
O = (V = (D = g.value) == null ? void 0 : D.crt_width) != null ? V : 6;
|
10638
10650
|
break;
|
10639
10651
|
case i.isUpdating.value:
|
10640
|
-
O = (B = (
|
10652
|
+
O = (B = (P = g.value) == null ? void 0 : P.upt_width) != null ? B : 6;
|
10641
10653
|
break;
|
10642
10654
|
case i.isCopying.value:
|
10643
|
-
O = (
|
10655
|
+
O = (K = (Y = g.value) == null ? void 0 : Y.cpy_width) != null ? K : 6;
|
10644
10656
|
break;
|
10645
10657
|
case i.isDeleting.value:
|
10646
|
-
O = (
|
10658
|
+
O = (W = (x = g.value) == null ? void 0 : x.del_width) != null ? W : 6;
|
10647
10659
|
break;
|
10648
10660
|
}
|
10649
10661
|
}
|
10650
|
-
return O = Number(O), new Array(24).fill(0).map((q,
|
10662
|
+
return O = Number(O), new Array(24).fill(0).map((q, J) => J + 1).includes(O) ? O : (KgLogger.error("| \u6570\u636E\u6709\u8BEF | \u5BBD\u5EA6\u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", {
|
10651
10663
|
VarProfileDetail: d.value,
|
10652
10664
|
VarSubmitField: g.value
|
10653
10665
|
}), 6);
|
10654
|
-
}),
|
10655
|
-
var F, $, D, V,
|
10666
|
+
}), E = computed(() => {
|
10667
|
+
var F, $, D, V, P;
|
10656
10668
|
let O = null;
|
10657
10669
|
if (e.kgSpan !== void 0)
|
10658
10670
|
O = e.kgSpan;
|
@@ -10673,11 +10685,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10673
10685
|
O = (V = g.value) == null ? void 0 : V.cpy_width;
|
10674
10686
|
break;
|
10675
10687
|
case i.isDeleting.value:
|
10676
|
-
O = (
|
10688
|
+
O = (P = g.value) == null ? void 0 : P.del_width;
|
10677
10689
|
break;
|
10678
10690
|
}
|
10679
10691
|
}
|
10680
|
-
return O = Number(O), new Array(24).fill(0).map((B,
|
10692
|
+
return O = Number(O), new Array(24).fill(0).map((B, Y) => Y + 1).includes(O) ? O : null;
|
10681
10693
|
}), T = computed(() => {
|
10682
10694
|
var D, V;
|
10683
10695
|
const O = get(M.value, "$el.parentElement");
|
@@ -10692,7 +10704,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10692
10704
|
}), k = computed(() => {
|
10693
10705
|
var F, $, D, V;
|
10694
10706
|
let O = "kg-form-item";
|
10695
|
-
switch (c.value && (O += " kg-form-item-lookup"),
|
10707
|
+
switch (c.value && (O += " kg-form-item-lookup"), E.value !== null && (O += " kg-form-item--col-fixed"), e.kgContext) {
|
10696
10708
|
case KG_FORM_CONTEXT.SEARCH:
|
10697
10709
|
switch (!0) {
|
10698
10710
|
case ((F = d.value) == null ? void 0 : F.vis_flg) === 0:
|
@@ -10723,7 +10735,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10723
10735
|
kgDisabled: _.value,
|
10724
10736
|
id: C.value
|
10725
10737
|
};
|
10726
|
-
switch (
|
10738
|
+
switch (y.value) {
|
10727
10739
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
10728
10740
|
break;
|
10729
10741
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -10767,7 +10779,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10767
10779
|
};
|
10768
10780
|
return t.control(O);
|
10769
10781
|
}
|
10770
|
-
switch (
|
10782
|
+
switch (y.value) {
|
10771
10783
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
10772
10784
|
return createVNode(KgFormItemInputNumber, A.value, null);
|
10773
10785
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
@@ -10818,7 +10830,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10818
10830
|
}, {
|
10819
10831
|
default: () => {
|
10820
10832
|
var V;
|
10821
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((V =
|
10833
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((V = y.value) != null ? V : "");
|
10822
10834
|
},
|
10823
10835
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
10824
10836
|
class: "ant-select-suffix"
|
@@ -10832,7 +10844,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10832
10844
|
title: i.t(e.kgVarName).value
|
10833
10845
|
}, [i.t(e.kgVarName).value]) : null;
|
10834
10846
|
}
|
10835
|
-
function
|
10847
|
+
function N() {
|
10836
10848
|
var O;
|
10837
10849
|
return !c.value || !((O = c.value) != null && O.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10838
10850
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -10859,7 +10871,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10859
10871
|
validateFirst: !0,
|
10860
10872
|
htmlFor: C.value
|
10861
10873
|
}, {
|
10862
|
-
default: () => createVNode(Fragment, null, [I(), w(),
|
10874
|
+
default: () => createVNode(Fragment, null, [I(), w(), N()]),
|
10863
10875
|
label: () => R()
|
10864
10876
|
})]
|
10865
10877
|
});
|
@@ -11223,9 +11235,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
11223
11235
|
}).bind(null, pinia())), store$5);
|
11224
11236
|
function useKgSubmit(e) {
|
11225
11237
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
11226
|
-
var p, m,
|
11238
|
+
var p, m, E, T, k;
|
11227
11239
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
11228
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, b = (
|
11240
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (p = a.value) == null ? void 0 : p.display_type, g = (m = a.value) == null ? void 0 : m.crt_display_type, b = (E = a.value) == null ? void 0 : E.upt_display_type, y = (T = a.value) == null ? void 0 : T.cpy_display_type, _ = (k = a.value) == null ? void 0 : k.del_display_type;
|
11229
11241
|
switch (!0) {
|
11230
11242
|
case (t.isCreating.value && (g === c || !g && d === c)):
|
11231
11243
|
l = c;
|
@@ -11233,7 +11245,7 @@ function useKgSubmit(e) {
|
|
11233
11245
|
case (t.isUpdating.value && (b === c || !b && d === c)):
|
11234
11246
|
l = c;
|
11235
11247
|
break;
|
11236
|
-
case (t.isCopying.value && (
|
11248
|
+
case (t.isCopying.value && (y === c || !y && d === c)):
|
11237
11249
|
l = c;
|
11238
11250
|
break;
|
11239
11251
|
case (t.isDeleting.value && (_ === c || !_)):
|
@@ -11247,7 +11259,7 @@ function useKgSubmit(e) {
|
|
11247
11259
|
case (t.isUpdating.value && (b === u || !b && d === u)):
|
11248
11260
|
l = u;
|
11249
11261
|
break;
|
11250
|
-
case (t.isCopying.value && (
|
11262
|
+
case (t.isCopying.value && (y === u || !y && d === u)):
|
11251
11263
|
l = u;
|
11252
11264
|
break;
|
11253
11265
|
}
|
@@ -11297,8 +11309,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11297
11309
|
}) => {
|
11298
11310
|
const u = s.store.getVarSubmitConfig(s.formID);
|
11299
11311
|
return o = watch(c, (d) => {
|
11300
|
-
var g, b,
|
11301
|
-
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 1, d.fullscreen_flg = (
|
11312
|
+
var g, b, y, _, p, m, E, T, k, A, C, M;
|
11313
|
+
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 1, d.dft_fullscreen_flg = (_ = u == null ? void 0 : u.dft_fullscreen_flg) != null ? _ : 0, d.responsive_flg = (p = u == null ? void 0 : u.responsive_flg) != null ? p : 1, d.max_width = (m = u == null ? void 0 : u.max_width) != null ? m : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (M = u == null ? void 0 : u.display_type) != null ? M : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
11302
11314
|
}, {
|
11303
11315
|
immediate: !0
|
11304
11316
|
}), KgUtil.hideLoading(), !1;
|
@@ -11347,7 +11359,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11347
11359
|
function b() {
|
11348
11360
|
r("kgCancel");
|
11349
11361
|
}
|
11350
|
-
function
|
11362
|
+
function y() {
|
11351
11363
|
var m;
|
11352
11364
|
return e.kgShowFullscreenButton === !1 || ((m = o.value) == null ? void 0 : m.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
11353
11365
|
onClick: d,
|
@@ -11376,7 +11388,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11376
11388
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
11377
11389
|
});
|
11378
11390
|
}
|
11379
|
-
return () => createVNode(Fragment, null, [_(),
|
11391
|
+
return () => createVNode(Fragment, null, [_(), y(), p()]);
|
11380
11392
|
}
|
11381
11393
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
11382
11394
|
function _useFormModel$1() {
|
@@ -11401,8 +11413,8 @@ function _useFormModel$1() {
|
|
11401
11413
|
}
|
11402
11414
|
const d = r.selectedRow.value;
|
11403
11415
|
u.forEach((g) => {
|
11404
|
-
var
|
11405
|
-
const b = (
|
11416
|
+
var y, _, p, m, E, T, k, A;
|
11417
|
+
const b = (y = g.var_nam) != null ? y : "";
|
11406
11418
|
switch (c.value[b] = void 0, !0) {
|
11407
11419
|
case t.isCreating.value:
|
11408
11420
|
c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (_ = g.crt_dft_val) != null ? _ : void 0, "C");
|
@@ -11411,7 +11423,7 @@ function _useFormModel$1() {
|
|
11411
11423
|
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (m = (p = g.upt_dft_val) != null ? p : d == null ? void 0 : d[b]) != null ? m : void 0, "U");
|
11412
11424
|
break;
|
11413
11425
|
case t.isCopying.value:
|
11414
|
-
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (T = (
|
11426
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (T = (E = g.cpy_dft_val) != null ? E : d == null ? void 0 : d[b]) != null ? T : void 0, "CP");
|
11415
11427
|
break;
|
11416
11428
|
case t.isDeleting.value:
|
11417
11429
|
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformFormItemValue(t.formID, b, e, (A = (k = g.del_dft_val) != null ? k : d == null ? void 0 : d[b]) != null ? A : void 0, "D");
|
@@ -11485,9 +11497,9 @@ function _useClass(e, t) {
|
|
11485
11497
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
11486
11498
|
return {
|
11487
11499
|
getClass: computed(() => {
|
11488
|
-
var c, u, d, g, b,
|
11500
|
+
var c, u, d, g, b, y, _;
|
11489
11501
|
let l = "kg-submit";
|
11490
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && b.kgClass ? l += ` ${(_ = (
|
11502
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) != null && b.kgClass ? l += ` ${(_ = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgSubmit) == null ? void 0 : _.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
11491
11503
|
})
|
11492
11504
|
};
|
11493
11505
|
}
|
@@ -11563,106 +11575,106 @@ const getProps$p = () => ({
|
|
11563
11575
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11564
11576
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
11565
11577
|
i.onSubmitSave(async () => (await ee(), !1)), i.onSubmitCancel(async () => (await z(), !1)), _useFormModel$1();
|
11566
|
-
const u = computed(() => s.isDeleting.value && R.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)),
|
11567
|
-
var G,
|
11578
|
+
const u = computed(() => s.isDeleting.value && R.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), M = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), w = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), R = computed(() => {
|
11579
|
+
var G, H, X;
|
11568
11580
|
switch (!0) {
|
11569
11581
|
case s.isCreating.value:
|
11570
11582
|
return (G = b.value) != null ? G : [];
|
11571
11583
|
case s.isUpdating.value:
|
11572
|
-
return (
|
11584
|
+
return (H = _.value) != null ? H : [];
|
11573
11585
|
case s.isCopying.value:
|
11574
|
-
return (
|
11586
|
+
return (X = m.value) != null ? X : [];
|
11575
11587
|
case s.isDeleting.value:
|
11576
11588
|
return [];
|
11577
11589
|
}
|
11578
11590
|
return [];
|
11579
|
-
}),
|
11580
|
-
var G,
|
11591
|
+
}), N = computed(() => {
|
11592
|
+
var G, H, X;
|
11581
11593
|
switch (!0) {
|
11582
11594
|
case s.isCreating.value:
|
11583
11595
|
return (G = T.value) != null ? G : [];
|
11584
11596
|
case s.isUpdating.value:
|
11585
|
-
return (
|
11597
|
+
return (H = A.value) != null ? H : [];
|
11586
11598
|
case s.isCopying.value:
|
11587
|
-
return (
|
11599
|
+
return (X = M.value) != null ? X : [];
|
11588
11600
|
case s.isDeleting.value:
|
11589
11601
|
return [];
|
11590
11602
|
}
|
11591
11603
|
return [];
|
11592
11604
|
}), O = computed(() => {
|
11593
|
-
var G,
|
11605
|
+
var G, H, X, re;
|
11594
11606
|
switch (!0) {
|
11595
11607
|
case s.isCreating.value:
|
11596
|
-
return (G =
|
11608
|
+
return (G = y.value) != null ? G : [];
|
11597
11609
|
case s.isUpdating.value:
|
11598
|
-
return (
|
11610
|
+
return (H = p.value) != null ? H : [];
|
11599
11611
|
case s.isCopying.value:
|
11600
|
-
return (
|
11612
|
+
return (X = E.value) != null ? X : [];
|
11601
11613
|
case s.isDeleting.value:
|
11602
11614
|
return (re = I.value) != null ? re : [];
|
11603
11615
|
}
|
11604
11616
|
return [];
|
11605
11617
|
}), F = computed(() => {
|
11606
|
-
var G,
|
11618
|
+
var G, H, X, re;
|
11607
11619
|
switch (!0) {
|
11608
11620
|
case s.isCreating.value:
|
11609
11621
|
return (G = k.value) != null ? G : [];
|
11610
11622
|
case s.isUpdating.value:
|
11611
|
-
return (
|
11623
|
+
return (H = C.value) != null ? H : [];
|
11612
11624
|
case s.isCopying.value:
|
11613
|
-
return (
|
11625
|
+
return (X = w.value) != null ? X : [];
|
11614
11626
|
case s.isDeleting.value:
|
11615
11627
|
return (re = I.value) != null ? re : [];
|
11616
11628
|
}
|
11617
11629
|
return [];
|
11618
|
-
}), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => $.value || d.value), V = computed(() => d.value),
|
11630
|
+
}), $ = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), D = computed(() => $.value || d.value), V = computed(() => d.value), P = ref({
|
11619
11631
|
kgWidth: 0
|
11620
11632
|
}), B = computed(() => {
|
11621
11633
|
var G;
|
11622
11634
|
return !!(u.value || te.isFullscreen || ((G = g.value) == null ? void 0 : G.resizable_flg) === 0);
|
11623
|
-
}),
|
11624
|
-
var G,
|
11625
|
-
return u.value ? 398 : (
|
11626
|
-
}),
|
11627
|
-
var G,
|
11628
|
-
return u.value ? 398 : (
|
11629
|
-
}), x = computed(() => u.value ? 398 :
|
11630
|
-
_useResizeObserver$1(
|
11631
|
-
const q = _useTitle(),
|
11635
|
+
}), Y = computed(() => {
|
11636
|
+
var G, H;
|
11637
|
+
return u.value ? 398 : (H = (G = g.value) == null ? void 0 : G.min_width) != null ? H : DEFAULT_MIN_WIDTH;
|
11638
|
+
}), K = computed(() => {
|
11639
|
+
var G, H;
|
11640
|
+
return u.value ? 398 : (H = (G = g.value) == null ? void 0 : G.max_width) != null ? H : DEFAULT_MAX_WIDTH;
|
11641
|
+
}), x = computed(() => u.value ? 398 : P.value.kgWidth), W = ref(null);
|
11642
|
+
_useResizeObserver$1(W);
|
11643
|
+
const q = _useTitle(), J = computed(() => u.value ? 400 : P.value.kgWidth && P.value.kgWidth > 0 ? "auto" : 0), Z = computed(() => J.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), te = reactive({
|
11632
11644
|
isFullscreen: !1
|
11633
11645
|
}), {
|
11634
|
-
getClass:
|
11646
|
+
getClass: ie
|
11635
11647
|
} = _useClass(e, te), {
|
11636
|
-
getLayout:
|
11648
|
+
getLayout: pe
|
11637
11649
|
} = _useLayout(), {
|
11638
|
-
getDefaultWidth:
|
11639
|
-
} = _useDefaultWidth(),
|
11640
|
-
var G,
|
11641
|
-
switch (
|
11650
|
+
getDefaultWidth: ce
|
11651
|
+
} = _useDefaultWidth(), se = computed(() => {
|
11652
|
+
var G, H, X;
|
11653
|
+
switch (pe.value) {
|
11642
11654
|
case "horizontal":
|
11643
11655
|
switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
|
11644
11656
|
case KG_WIDTH_UNIT.SPAN:
|
11645
11657
|
return {
|
11646
|
-
span: (
|
11658
|
+
span: (H = g.value) == null ? void 0 : H.label_col
|
11647
11659
|
};
|
11648
11660
|
default:
|
11649
11661
|
return {
|
11650
11662
|
style: {
|
11651
|
-
width: `${(
|
11663
|
+
width: `${(X = g.value) == null ? void 0 : X.label_col}px`
|
11652
11664
|
}
|
11653
11665
|
};
|
11654
11666
|
}
|
11655
11667
|
default:
|
11656
11668
|
return;
|
11657
11669
|
}
|
11658
|
-
}),
|
11659
|
-
var G,
|
11660
|
-
switch (
|
11670
|
+
}), L = computed(() => {
|
11671
|
+
var G, H;
|
11672
|
+
switch (pe.value) {
|
11661
11673
|
case "horizontal":
|
11662
11674
|
switch ((G = g.value) == null ? void 0 : G.label_col_unit) {
|
11663
11675
|
case KG_WIDTH_UNIT.SPAN:
|
11664
11676
|
return {
|
11665
|
-
span: 24 - ((
|
11677
|
+
span: 24 - ((H = g.value) == null ? void 0 : H.label_col)
|
11666
11678
|
};
|
11667
11679
|
default:
|
11668
11680
|
return;
|
@@ -11671,12 +11683,12 @@ const getProps$p = () => ({
|
|
11671
11683
|
return;
|
11672
11684
|
}
|
11673
11685
|
});
|
11674
|
-
watch(
|
11675
|
-
G === !0 && U(),
|
11686
|
+
watch(Z, (G, H) => {
|
11687
|
+
G === !0 && U(), H === !0 && G === !1 && Q();
|
11676
11688
|
}, {
|
11677
11689
|
immediate: !0
|
11678
|
-
}), watch(
|
11679
|
-
G && (
|
11690
|
+
}), watch(ce, (G) => {
|
11691
|
+
G && (P.value.kgWidth = G);
|
11680
11692
|
}, {
|
11681
11693
|
immediate: !0
|
11682
11694
|
});
|
@@ -11688,25 +11700,25 @@ const getProps$p = () => ({
|
|
11688
11700
|
isDeleting: s.isDeleting.value,
|
11689
11701
|
row: o.selectedRow.value
|
11690
11702
|
}))
|
11691
|
-
return new Promise((
|
11692
|
-
var
|
11693
|
-
const re = watch(l.model, async (
|
11694
|
-
|
11703
|
+
return new Promise((H, X) => {
|
11704
|
+
var ne;
|
11705
|
+
const re = watch(l.model, async (ae) => {
|
11706
|
+
ae && Object.keys(ae).length > 0 && (setTimeout(() => re()), await l.store.emit(s.formID, "open", {
|
11695
11707
|
isCreating: s.isCreating.value,
|
11696
11708
|
isUpdating: s.isUpdating.value,
|
11697
11709
|
isCopying: s.isCopying.value,
|
11698
11710
|
isDeleting: s.isDeleting.value,
|
11699
11711
|
row: o.selectedRow.value,
|
11700
11712
|
model: l.model
|
11701
|
-
}),
|
11713
|
+
}), H());
|
11702
11714
|
}, {
|
11703
11715
|
immediate: !0
|
11704
11716
|
});
|
11705
|
-
((
|
11717
|
+
((ne = g.value) == null ? void 0 : ne.dft_fullscreen_flg) === 1 && !u.value && (te.isFullscreen = !0);
|
11706
11718
|
});
|
11707
11719
|
}
|
11708
11720
|
async function Q() {
|
11709
|
-
|
11721
|
+
P.value.kgWidth = ce.value, te.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
11710
11722
|
}
|
11711
11723
|
function z() {
|
11712
11724
|
switch (!0) {
|
@@ -11725,7 +11737,7 @@ const getProps$p = () => ({
|
|
11725
11737
|
}
|
11726
11738
|
}
|
11727
11739
|
async function ee() {
|
11728
|
-
var G,
|
11740
|
+
var G, H;
|
11729
11741
|
try {
|
11730
11742
|
if (await l.store.emit(s.formID, "beforeOk", {
|
11731
11743
|
isCreating: s.isCreating.value,
|
@@ -11739,10 +11751,10 @@ const getProps$p = () => ({
|
|
11739
11751
|
return;
|
11740
11752
|
try {
|
11741
11753
|
await ((G = l.formRef.value) == null ? void 0 : G.validate());
|
11742
|
-
} catch (
|
11743
|
-
KgUtil.throwIfNotFormError(
|
11754
|
+
} catch (ne) {
|
11755
|
+
KgUtil.throwIfNotFormError(ne);
|
11744
11756
|
}
|
11745
|
-
if (await ((
|
11757
|
+
if (await ((H = l.formRef.value) == null ? void 0 : H.validate()), await l.store.emit(s.formID, "afterValidate", {
|
11746
11758
|
isCreating: s.isCreating.value,
|
11747
11759
|
isUpdating: s.isUpdating.value,
|
11748
11760
|
isCopying: s.isCopying.value,
|
@@ -11754,25 +11766,25 @@ const getProps$p = () => ({
|
|
11754
11766
|
return;
|
11755
11767
|
switch (!0) {
|
11756
11768
|
case s.isCreating.value:
|
11757
|
-
await
|
11769
|
+
await _e();
|
11758
11770
|
break;
|
11759
11771
|
case s.isUpdating.value:
|
11760
|
-
await
|
11772
|
+
await de();
|
11761
11773
|
break;
|
11762
11774
|
case s.isCopying.value:
|
11763
|
-
await
|
11775
|
+
await ge();
|
11764
11776
|
break;
|
11765
11777
|
case s.isDeleting.value:
|
11766
|
-
await
|
11778
|
+
await me();
|
11767
11779
|
break;
|
11768
11780
|
}
|
11769
|
-
} catch (
|
11770
|
-
KgUtil.throwIfNotFormError(
|
11781
|
+
} catch (X) {
|
11782
|
+
KgUtil.throwIfNotFormError(X);
|
11771
11783
|
}
|
11772
11784
|
}
|
11773
|
-
async function
|
11774
|
-
var
|
11775
|
-
const G = (
|
11785
|
+
async function _e() {
|
11786
|
+
var H, X, re, ne, ae, le;
|
11787
|
+
const G = (H = s.varButtonCreate.value) == null ? void 0 : H.cmd;
|
11776
11788
|
if (!G) {
|
11777
11789
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11778
11790
|
VarButton: s.varButtonCreate.value
|
@@ -11781,7 +11793,7 @@ const getProps$p = () => ({
|
|
11781
11793
|
}
|
11782
11794
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
11783
11795
|
try {
|
11784
|
-
let
|
11796
|
+
let oe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ue = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
11785
11797
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
11786
11798
|
isCreating: s.isCreating.value,
|
11787
11799
|
isUpdating: s.isUpdating.value,
|
@@ -11790,16 +11802,16 @@ const getProps$p = () => ({
|
|
11790
11802
|
row: o.selectedFirstRow.value,
|
11791
11803
|
rows: o.selectedRows.value,
|
11792
11804
|
model: l.model,
|
11793
|
-
params:
|
11794
|
-
data:
|
11805
|
+
params: oe,
|
11806
|
+
data: ue
|
11795
11807
|
}))
|
11796
11808
|
return;
|
11797
11809
|
await httpClient().request({
|
11798
|
-
method: (
|
11810
|
+
method: (ae = (ne = s.varButtonCreate.value) == null ? void 0 : ne.cmd_method) != null ? ae : "POST",
|
11799
11811
|
url: G,
|
11800
|
-
params:
|
11801
|
-
data:
|
11802
|
-
}), ((
|
11812
|
+
params: oe.value,
|
11813
|
+
data: ue.value
|
11814
|
+
}), ((le = s.varButtonCreate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(q.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
|
11803
11815
|
isCreating: s.isCreating.value,
|
11804
11816
|
isUpdating: s.isUpdating.value,
|
11805
11817
|
isCopying: s.isCopying.value,
|
@@ -11809,15 +11821,15 @@ const getProps$p = () => ({
|
|
11809
11821
|
}), s.store.setIsCreating(s.formID, !1), c.search({
|
11810
11822
|
isSearchFirstPage: !0
|
11811
11823
|
});
|
11812
|
-
} catch (
|
11813
|
-
console.error(
|
11824
|
+
} catch (oe) {
|
11825
|
+
console.error(oe), l.store.emit(s.formID, "error", oe);
|
11814
11826
|
} finally {
|
11815
11827
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
11816
11828
|
}
|
11817
11829
|
}
|
11818
|
-
async function
|
11819
|
-
var
|
11820
|
-
const G = (
|
11830
|
+
async function de() {
|
11831
|
+
var H, X, re, ne, ae, le;
|
11832
|
+
const G = (H = s.varButtonUpdate.value) == null ? void 0 : H.cmd;
|
11821
11833
|
if (!G) {
|
11822
11834
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11823
11835
|
VarButton: s.varButtonUpdate.value
|
@@ -11826,7 +11838,7 @@ const getProps$p = () => ({
|
|
11826
11838
|
}
|
11827
11839
|
try {
|
11828
11840
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
11829
|
-
let
|
11841
|
+
let oe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ue = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
11830
11842
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
11831
11843
|
isCreating: s.isCreating.value,
|
11832
11844
|
isUpdating: s.isUpdating.value,
|
@@ -11835,16 +11847,16 @@ const getProps$p = () => ({
|
|
11835
11847
|
row: o.selectedRow.value,
|
11836
11848
|
rows: o.selectedRows.value,
|
11837
11849
|
model: l.model,
|
11838
|
-
params:
|
11839
|
-
data:
|
11850
|
+
params: oe,
|
11851
|
+
data: ue
|
11840
11852
|
}))
|
11841
11853
|
return;
|
11842
11854
|
await httpClient().request({
|
11843
|
-
method: (
|
11855
|
+
method: (ae = (ne = s.varButtonUpdate.value) == null ? void 0 : ne.cmd_method) != null ? ae : "POST",
|
11844
11856
|
url: G,
|
11845
|
-
params:
|
11846
|
-
data:
|
11847
|
-
}), ((
|
11857
|
+
params: oe.value,
|
11858
|
+
data: ue.value
|
11859
|
+
}), ((le = s.varButtonUpdate.value) == null ? void 0 : le.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
|
11848
11860
|
isCreating: s.isCreating.value,
|
11849
11861
|
isUpdating: s.isUpdating.value,
|
11850
11862
|
isCopying: s.isCopying.value,
|
@@ -11854,15 +11866,15 @@ const getProps$p = () => ({
|
|
11854
11866
|
}), s.store.setIsUpdating(s.formID, !1), c.search({
|
11855
11867
|
isPreserveSelectedRows: !0
|
11856
11868
|
});
|
11857
|
-
} catch (
|
11858
|
-
console.error(
|
11869
|
+
} catch (oe) {
|
11870
|
+
console.error(oe), l.store.emit(s.formID, "error", oe);
|
11859
11871
|
} finally {
|
11860
11872
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11861
11873
|
}
|
11862
11874
|
}
|
11863
|
-
async function
|
11864
|
-
var
|
11865
|
-
const G = (
|
11875
|
+
async function ge() {
|
11876
|
+
var H, X, re, ne, ae, le, oe, ue;
|
11877
|
+
const G = (H = s.varButtonCopy.value) == null ? void 0 : H.cmd;
|
11866
11878
|
if (!G) {
|
11867
11879
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11868
11880
|
VarButton: s.varButtonCopy.value
|
@@ -11871,11 +11883,11 @@ const getProps$p = () => ({
|
|
11871
11883
|
}
|
11872
11884
|
try {
|
11873
11885
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11874
|
-
let
|
11875
|
-
...(
|
11886
|
+
let fe = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonCopy.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), ye = ref(KgUtil.parseParams({
|
11887
|
+
...(ne = o.selectedFirstRow.value) != null ? ne : {},
|
11876
11888
|
...toRaw(l.model.value)
|
11877
11889
|
}, s.formID, r));
|
11878
|
-
if (((
|
11890
|
+
if (((ae = g.value) == null ? void 0 : ae.cpy_clear_id_flg) !== 0 && delete ye.value.id, await l.store.emit(s.formID, "beforeRequest", {
|
11879
11891
|
isCreating: s.isCreating.value,
|
11880
11892
|
isUpdating: s.isUpdating.value,
|
11881
11893
|
isCopying: s.isCopying.value,
|
@@ -11883,16 +11895,16 @@ const getProps$p = () => ({
|
|
11883
11895
|
row: o.selectedRow.value,
|
11884
11896
|
rows: o.selectedRows.value,
|
11885
11897
|
model: l.model,
|
11886
|
-
params:
|
11887
|
-
data:
|
11898
|
+
params: fe,
|
11899
|
+
data: ye
|
11888
11900
|
}))
|
11889
11901
|
return;
|
11890
11902
|
await httpClient().request({
|
11891
|
-
method: (
|
11903
|
+
method: (oe = (le = s.varButtonCopy.value) == null ? void 0 : le.cmd_method) != null ? oe : "POST",
|
11892
11904
|
url: G,
|
11893
|
-
params:
|
11894
|
-
data:
|
11895
|
-
}), ((
|
11905
|
+
params: fe.value,
|
11906
|
+
data: ye.value
|
11907
|
+
}), ((ue = s.varButtonCopy.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
|
11896
11908
|
isCreating: s.isCreating.value,
|
11897
11909
|
isUpdating: s.isUpdating.value,
|
11898
11910
|
isCopying: s.isCopying.value,
|
@@ -11902,15 +11914,15 @@ const getProps$p = () => ({
|
|
11902
11914
|
}), s.store.setIsCopying(s.formID, !1), c.search({
|
11903
11915
|
isSearchFirstPage: !0
|
11904
11916
|
});
|
11905
|
-
} catch (
|
11906
|
-
console.error(
|
11917
|
+
} catch (fe) {
|
11918
|
+
console.error(fe), l.store.emit(s.formID, "error", fe);
|
11907
11919
|
} finally {
|
11908
11920
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11909
11921
|
}
|
11910
11922
|
}
|
11911
|
-
async function
|
11912
|
-
var
|
11913
|
-
const G = (
|
11923
|
+
async function me() {
|
11924
|
+
var H, X, re, ne, ae, le, oe, ue, fe, ye;
|
11925
|
+
const G = (H = s.varButtonDelete.value) == null ? void 0 : H.cmd;
|
11914
11926
|
if (!G) {
|
11915
11927
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11916
11928
|
VarButton: s.varButtonDelete.value
|
@@ -11919,12 +11931,12 @@ const getProps$p = () => ({
|
|
11919
11931
|
}
|
11920
11932
|
try {
|
11921
11933
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11922
|
-
let
|
11923
|
-
if (((
|
11924
|
-
ids: (
|
11934
|
+
let Ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (X = s.varButtonDelete.value) == null ? void 0 : X.cmd_prm) != null ? re : ""), s.formID, r)), Te = ref((ne = o.selectedRows.value) != null ? ne : []);
|
11935
|
+
if (((ae = s.varButtonDelete.value) == null ? void 0 : ae.del_param_clm) !== "__kg__new_delete_param" && (Ee = ref({
|
11936
|
+
ids: (oe = (le = o.selectedRows.value) == null ? void 0 : le.map((Ie) => {
|
11925
11937
|
var ke, Ae, Me;
|
11926
11938
|
return (Me = Ie[(Ae = (ke = s.varButtonDelete.value) == null ? void 0 : ke.del_param_clm) != null ? Ae : "id"]) != null ? Me : "";
|
11927
|
-
})) != null ?
|
11939
|
+
})) != null ? oe : []
|
11928
11940
|
}), Te = ref({})), await l.store.emit(s.formID, "beforeRequest", {
|
11929
11941
|
isCreating: s.isCreating.value,
|
11930
11942
|
isUpdating: s.isUpdating.value,
|
@@ -11933,18 +11945,18 @@ const getProps$p = () => ({
|
|
11933
11945
|
row: o.selectedFirstRow.value,
|
11934
11946
|
rows: o.selectedRows.value,
|
11935
11947
|
model: l.model,
|
11936
|
-
params:
|
11948
|
+
params: Ee,
|
11937
11949
|
data: Te
|
11938
11950
|
}))
|
11939
11951
|
return;
|
11940
11952
|
await httpClient().request({
|
11941
|
-
method: (
|
11953
|
+
method: (fe = (ue = s.varButtonDelete.value) == null ? void 0 : ue.cmd_method) != null ? fe : "DELETE",
|
11942
11954
|
url: G,
|
11943
|
-
params:
|
11955
|
+
params: Ee.value,
|
11944
11956
|
data: Te.value
|
11945
11957
|
}, {
|
11946
11958
|
joinParamsToUrl: !0
|
11947
|
-
}), ((
|
11959
|
+
}), ((ye = s.varButtonDelete.value) == null ? void 0 : ye.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await i.store.emit(s.formID, "deleteOk", {
|
11948
11960
|
button: s.varButtonDelete.value,
|
11949
11961
|
rows: o.selectedRows.value
|
11950
11962
|
}), await l.store.emit(s.formID, "ok", {
|
@@ -11957,37 +11969,37 @@ const getProps$p = () => ({
|
|
11957
11969
|
}), s.store.setIsDeleting(s.formID, !1), c.search({
|
11958
11970
|
isSearchFirstPage: !0
|
11959
11971
|
});
|
11960
|
-
} catch (
|
11961
|
-
console.error(
|
11972
|
+
} catch (Ee) {
|
11973
|
+
console.error(Ee), l.store.emit(s.formID, "error", Ee);
|
11962
11974
|
} finally {
|
11963
11975
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11964
11976
|
}
|
11965
11977
|
}
|
11966
|
-
function
|
11967
|
-
var
|
11968
|
-
const
|
11969
|
-
return isFunction$2(
|
11978
|
+
function he(G) {
|
11979
|
+
var X, re;
|
11980
|
+
const H = (re = (X = a == null ? void 0 : a.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : re[G.var_nam];
|
11981
|
+
return isFunction$2(H) ? createVNode(KgForm.Item, {
|
11970
11982
|
kgVarName: G.var_nam,
|
11971
11983
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11972
11984
|
kgRules: l.rules.value[G.var_nam],
|
11973
11985
|
onKgSubmit: ee
|
11974
11986
|
}, {
|
11975
11987
|
control: ({
|
11976
|
-
frm_id:
|
11977
|
-
varName:
|
11978
|
-
props:
|
11979
|
-
model:
|
11980
|
-
varVariableConfig:
|
11981
|
-
varProfileDetail:
|
11982
|
-
varSubmitField:
|
11983
|
-
}) =>
|
11984
|
-
frm_id:
|
11985
|
-
varName:
|
11986
|
-
props:
|
11987
|
-
model:
|
11988
|
-
varVariableConfig:
|
11989
|
-
varProfileDetail:
|
11990
|
-
varSubmitField:
|
11988
|
+
frm_id: ne,
|
11989
|
+
varName: ae,
|
11990
|
+
props: le,
|
11991
|
+
model: oe,
|
11992
|
+
varVariableConfig: ue,
|
11993
|
+
varProfileDetail: fe,
|
11994
|
+
varSubmitField: ye
|
11995
|
+
}) => H({
|
11996
|
+
frm_id: ne,
|
11997
|
+
varName: ae,
|
11998
|
+
props: le,
|
11999
|
+
model: oe,
|
12000
|
+
varVariableConfig: ue,
|
12001
|
+
varProfileDetail: fe,
|
12002
|
+
varSubmitField: ye
|
11991
12003
|
})
|
11992
12004
|
}) : createVNode(KgForm.Item, {
|
11993
12005
|
kgVarName: G.var_nam,
|
@@ -11996,15 +12008,15 @@ const getProps$p = () => ({
|
|
11996
12008
|
onKgSubmit: ee
|
11997
12009
|
}, null);
|
11998
12010
|
}
|
11999
|
-
function
|
12000
|
-
let G,
|
12011
|
+
function ve() {
|
12012
|
+
let G, H;
|
12001
12013
|
return createVNode(KgResizable, {
|
12002
12014
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
12003
|
-
kgMinWidth:
|
12004
|
-
kgMaxWidth:
|
12015
|
+
kgMinWidth: Y.value,
|
12016
|
+
kgMaxWidth: K.value,
|
12005
12017
|
kgWidth: x.value,
|
12006
12018
|
kgDisabled: B.value,
|
12007
|
-
"onUpdate:kgWidth": (
|
12019
|
+
"onUpdate:kgWidth": (X) => P.value.kgWidth = X
|
12008
12020
|
}, {
|
12009
12021
|
default: () => [createVNode(Spin, {
|
12010
12022
|
spinning: d.value
|
@@ -12012,20 +12024,20 @@ const getProps$p = () => ({
|
|
12012
12024
|
default: () => [createVNode(KgForm, {
|
12013
12025
|
ref: l.formRef,
|
12014
12026
|
model: l.model.value,
|
12015
|
-
layout:
|
12016
|
-
labelCol:
|
12017
|
-
wrapperCol:
|
12027
|
+
layout: pe.value,
|
12028
|
+
labelCol: se.value,
|
12029
|
+
wrapperCol: L.value
|
12018
12030
|
}, {
|
12019
12031
|
default: () => [createVNode("div", {
|
12020
|
-
ref:
|
12032
|
+
ref: W
|
12021
12033
|
}, [R.value.length > 0 && createVNode(Row, {
|
12022
12034
|
gutter: 12
|
12023
|
-
}, _isSlot$9(G = R.value.map(
|
12035
|
+
}, _isSlot$9(G = R.value.map(he)) ? G : {
|
12024
12036
|
default: () => [G]
|
12025
|
-
}),
|
12037
|
+
}), N.value.length > 0 && F.value.length > 0 && createVNode(Divider, null, null), O.value.length > 0 && createVNode(Row, {
|
12026
12038
|
gutter: 12
|
12027
|
-
}, _isSlot$9(
|
12028
|
-
default: () => [
|
12039
|
+
}, _isSlot$9(H = O.value.map(he)) ? H : {
|
12040
|
+
default: () => [H]
|
12029
12041
|
}), u.value && createVNode("div", {
|
12030
12042
|
style: "text-align: center; padding: 6px 0 12px;"
|
12031
12043
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -12033,8 +12045,8 @@ const getProps$p = () => ({
|
|
12033
12045
|
})]
|
12034
12046
|
});
|
12035
12047
|
}
|
12036
|
-
function
|
12037
|
-
let G,
|
12048
|
+
function Se() {
|
12049
|
+
let G, H;
|
12038
12050
|
return createVNode("div", null, [createVNode(Button, {
|
12039
12051
|
type: "primary",
|
12040
12052
|
ghost: !D.value,
|
@@ -12048,16 +12060,16 @@ const getProps$p = () => ({
|
|
12048
12060
|
loading: $.value,
|
12049
12061
|
danger: !!s.isDeleting.value,
|
12050
12062
|
onClick: ee
|
12051
|
-
}, _isSlot$9(
|
12052
|
-
default: () => [
|
12063
|
+
}, _isSlot$9(H = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? H : {
|
12064
|
+
default: () => [H]
|
12053
12065
|
})]);
|
12054
12066
|
}
|
12055
|
-
function
|
12067
|
+
function be() {
|
12056
12068
|
return createVNode("div", {
|
12057
12069
|
title: q.title.value
|
12058
12070
|
}, [q.title.value]);
|
12059
12071
|
}
|
12060
|
-
function
|
12072
|
+
function Ce() {
|
12061
12073
|
return createVNode(KgSubmitHeader, {
|
12062
12074
|
isFullscreen: te.isFullscreen,
|
12063
12075
|
"onUpdate:isFullscreen": (G) => te.isFullscreen = G,
|
@@ -12069,20 +12081,20 @@ const getProps$p = () => ({
|
|
12069
12081
|
return onUnmounted(async () => {
|
12070
12082
|
await Q();
|
12071
12083
|
}), () => createVNode(Drawer, {
|
12072
|
-
visible:
|
12084
|
+
visible: Z.value,
|
12073
12085
|
placement: "right",
|
12074
12086
|
closable: !1,
|
12075
12087
|
maskClosable: !1,
|
12076
12088
|
keyboard: !1,
|
12077
12089
|
destroyOnClose: !0,
|
12078
|
-
width:
|
12079
|
-
class:
|
12090
|
+
width: J.value,
|
12091
|
+
class: ie.value,
|
12080
12092
|
"kg-frm_id": s.formID
|
12081
12093
|
}, {
|
12082
|
-
title:
|
12083
|
-
extra:
|
12084
|
-
default:
|
12085
|
-
footer:
|
12094
|
+
title: be,
|
12095
|
+
extra: Ce,
|
12096
|
+
default: ve,
|
12097
|
+
footer: Se
|
12086
12098
|
});
|
12087
12099
|
}
|
12088
12100
|
});
|
@@ -12370,7 +12382,7 @@ function useKgTable(e) {
|
|
12370
12382
|
}), b = computed(() => {
|
12371
12383
|
var p, m;
|
12372
12384
|
return JSON.parse((m = (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opts) != null ? m : "[]");
|
12373
|
-
}),
|
12385
|
+
}), y = computed(() => {
|
12374
12386
|
var p;
|
12375
12387
|
return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
|
12376
12388
|
}), _ = computed(() => {
|
@@ -12391,7 +12403,7 @@ function useKgTable(e) {
|
|
12391
12403
|
isShowBottomRight: d,
|
12392
12404
|
id: g,
|
12393
12405
|
pageSizeOptions: b,
|
12394
|
-
pageSizeOption:
|
12406
|
+
pageSizeOption: y,
|
12395
12407
|
profileFormID: _,
|
12396
12408
|
onReady: onEventFactory(t.formID, r, "ready"),
|
12397
12409
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
@@ -12487,8 +12499,8 @@ const getProps$o = () => ({
|
|
12487
12499
|
}) => {
|
12488
12500
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
12489
12501
|
return i = watch(l, (u) => {
|
12490
|
-
var d, g, b,
|
12491
|
-
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 = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (b = c == null ? void 0 : c.mult_flg) != null ? b : 0, u.show_check_column_flg = (
|
12502
|
+
var d, g, b, y, _, p, m, E, T, k, A;
|
12503
|
+
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 = (g = c == null ? void 0 : c.aut_load_flg) != null ? g : 0, u.mult_flg = (b = c == null ? void 0 : c.mult_flg) != null ? b : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (_ = c == null ? void 0 : c.show_bottom_left_flg) != null ? _ : 1, u.show_bottom_right_flg = (p = c == null ? void 0 : c.show_bottom_right_flg) != null ? p : 1, u.convert_sort_field_to_under_score_flg = (m = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? m : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
12492
12504
|
}, {
|
12493
12505
|
immediate: !0
|
12494
12506
|
}), KgUtil.hideLoading(), !1;
|
@@ -13198,7 +13210,7 @@ function _useTransferColumns(e, t) {
|
|
13198
13210
|
class: "kg-not-clickable"
|
13199
13211
|
}, {
|
13200
13212
|
default: () => {
|
13201
|
-
let c, u, d, g, b,
|
13213
|
+
let c, u, d, g, b, y, _;
|
13202
13214
|
return createVNode(Fragment, null, [createVNode(Select.Option, {
|
13203
13215
|
value: "DESC"
|
13204
13216
|
}, _isSlot$7(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
|
@@ -13221,8 +13233,8 @@ function _useTransferColumns(e, t) {
|
|
13221
13233
|
default: () => [b]
|
13222
13234
|
}), createVNode(Select.Option, {
|
13223
13235
|
value: "UPDATE_LINK"
|
13224
|
-
}, _isSlot$7(
|
13225
|
-
default: () => [
|
13236
|
+
}, _isSlot$7(y = r.t("kg.KgTableSettingConfigModalVarGridMaster.UPDATE_LINK")) ? y : {
|
13237
|
+
default: () => [y]
|
13226
13238
|
}), createVNode(Select.Option, {
|
13227
13239
|
value: "ROUTE_LINK"
|
13228
13240
|
}, _isSlot$7(_ = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? _ : {
|
@@ -13301,11 +13313,11 @@ function _useDragRow$1(e, t, r) {
|
|
13301
13313
|
g.setAttribute("id", "__kg_table_config_fields_drag_image__");
|
13302
13314
|
const {
|
13303
13315
|
width: b,
|
13304
|
-
height:
|
13316
|
+
height: y
|
13305
13317
|
} = u.parentElement.getBoundingClientRect();
|
13306
|
-
b &&
|
13318
|
+
b && y && (g.style.width = `${b + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
|
13307
13319
|
const _ = await toCanvas(u.parentElement);
|
13308
|
-
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (
|
13320
|
+
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
|
13309
13321
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
13310
13322
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
13311
13323
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -13329,8 +13341,8 @@ function _useDragRow$1(e, t, r) {
|
|
13329
13341
|
d.preventDefault(), KgUtil.showLoading();
|
13330
13342
|
const g = document.querySelector("#__kg_table_config_fields_drag_image__");
|
13331
13343
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
13332
|
-
const b = s == null ? void 0 : s.getAttribute("kg-var_nam"),
|
13333
|
-
b !==
|
13344
|
+
const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
13345
|
+
b !== y && l(b, y);
|
13334
13346
|
}, u.addEventListener("drop", u.__kg__drop__);
|
13335
13347
|
}
|
13336
13348
|
function o() {
|
@@ -13352,9 +13364,9 @@ function _useDragRow$1(e, t, r) {
|
|
13352
13364
|
const g = t.value.findIndex((p) => p.var_nam === u), b = t.value.findIndex((p) => p.var_nam === d);
|
13353
13365
|
if (g === -1 || b === -1)
|
13354
13366
|
return;
|
13355
|
-
const
|
13367
|
+
const y = t.value.find((p) => p.var_nam === u), _ = [];
|
13356
13368
|
t.value.forEach((p, m) => {
|
13357
|
-
g > b ? m < b ? _.push(p) : m === b ? (_.push(
|
13369
|
+
g > b ? m < b ? _.push(p) : m === b ? (_.push(y), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(y)) : _.push(p)));
|
13358
13370
|
}), _.forEach((p, m) => {
|
13359
13371
|
p.srtseq = m + 1;
|
13360
13372
|
}), t.value = _, nextTick().finally(() => {
|
@@ -13387,16 +13399,16 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13387
13399
|
s.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
13388
13400
|
dft_val: a.formID
|
13389
13401
|
}), !1)), o.onOpen(async ({
|
13390
|
-
isCreating:
|
13402
|
+
isCreating: E,
|
13391
13403
|
isUpdating: T,
|
13392
13404
|
isCopying: k,
|
13393
13405
|
row: A,
|
13394
13406
|
model: C
|
13395
13407
|
}) => {
|
13396
|
-
var w, I, R,
|
13408
|
+
var w, I, R, N, O;
|
13397
13409
|
const M = a.store.getSystemVarGridDetails(a.formID);
|
13398
13410
|
switch (c.value = M ? cloneDeep(unref(toRaw(M))) : [], !0) {
|
13399
|
-
case
|
13411
|
+
case E: {
|
13400
13412
|
u.value = [];
|
13401
13413
|
break;
|
13402
13414
|
}
|
@@ -13411,8 +13423,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13411
13423
|
}
|
13412
13424
|
});
|
13413
13425
|
c.value = c.value.map((D) => {
|
13414
|
-
var
|
13415
|
-
const V = (
|
13426
|
+
var P;
|
13427
|
+
const V = (P = F == null ? void 0 : F.varGridDetails) == null ? void 0 : P.find((B) => B.var_nam === D.var_nam);
|
13416
13428
|
return V ? {
|
13417
13429
|
...D,
|
13418
13430
|
...V,
|
@@ -13433,20 +13445,20 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13433
13445
|
}
|
13434
13446
|
switch (!0) {
|
13435
13447
|
case k: {
|
13436
|
-
C.value.grd_var_nam = ((R = C.value.grd_var_nam) != null ? R : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (
|
13448
|
+
C.value.grd_var_nam = ((R = C.value.grd_var_nam) != null ? R : "") + "_COPY", C.value.grd_var_nam_dsc = ((O = (N = C.value.grd_var_nam_dsc) != null ? N : C.value.grd_var_nam) != null ? O : "") + "_COPY";
|
13437
13449
|
break;
|
13438
13450
|
}
|
13439
13451
|
}
|
13440
13452
|
return !1;
|
13441
13453
|
}), o.onBeforeOk(async ({
|
13442
|
-
model:
|
13454
|
+
model: E
|
13443
13455
|
}) => {
|
13444
13456
|
var k, A;
|
13445
|
-
const T =
|
13457
|
+
const T = E.value;
|
13446
13458
|
return T.frm_id = a.formID, T.varGridDetails = (A = (k = c.value) == null ? void 0 : k.filter((C) => u.value.includes(C.id))) != null ? A : [], !1;
|
13447
13459
|
}), o.onOk(async () => (a.store.retrieve(a.formID), !1)), i.onUpdateBeforeClick(({
|
13448
|
-
row:
|
13449
|
-
}) => (
|
13460
|
+
row: E
|
13461
|
+
}) => (E == null ? void 0 : E.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
|
13450
13462
|
KgUtil.confirm({
|
13451
13463
|
content: r.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
13452
13464
|
okButtonProps: {
|
@@ -13465,8 +13477,8 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13465
13477
|
rightColumns: b
|
13466
13478
|
} = _useTransferColumns(e.hostFormID, c);
|
13467
13479
|
_useDragRow$1(e.hostFormID, c, d);
|
13468
|
-
const
|
13469
|
-
const
|
13480
|
+
const y = computed(() => {
|
13481
|
+
const E = l.selectedRow.value;
|
13470
13482
|
return {
|
13471
13483
|
KgSubmit: {
|
13472
13484
|
kgClass: "kg-submit--kg-table-setting-config-modal--var-grid-master"
|
@@ -13475,7 +13487,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13475
13487
|
kgDisabled: (T) => {
|
13476
13488
|
switch (T.var_nam) {
|
13477
13489
|
case "set-default":
|
13478
|
-
if ((
|
13490
|
+
if ((E == null ? void 0 : E.def_flg) === 1)
|
13479
13491
|
return !0;
|
13480
13492
|
break;
|
13481
13493
|
}
|
@@ -13488,18 +13500,18 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13488
13500
|
varGridDetails: () => createVNode(Transfer, {
|
13489
13501
|
dataSource: c.value,
|
13490
13502
|
targetKeys: u.value,
|
13491
|
-
"onUpdate:targetKeys": (
|
13492
|
-
rowKey: (
|
13503
|
+
"onUpdate:targetKeys": (E) => u.value = E,
|
13504
|
+
rowKey: (E) => E.id,
|
13493
13505
|
showSearch: !0,
|
13494
13506
|
showSelectAll: !1,
|
13495
13507
|
searchPlaceholder: " ",
|
13496
|
-
filterOption: (
|
13508
|
+
filterOption: (E, T) => {
|
13497
13509
|
var k;
|
13498
|
-
return !!((k = T.var_nam) != null && k.includes(
|
13510
|
+
return !!((k = T.var_nam) != null && k.includes(E));
|
13499
13511
|
}
|
13500
13512
|
}, {
|
13501
13513
|
children: ({
|
13502
|
-
direction:
|
13514
|
+
direction: E,
|
13503
13515
|
filteredItems: T,
|
13504
13516
|
selectedKeys: k,
|
13505
13517
|
disabled: A,
|
@@ -13507,25 +13519,25 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13507
13519
|
onItemSelect: M
|
13508
13520
|
}) => {
|
13509
13521
|
const w = T.sort((I, R) => {
|
13510
|
-
var
|
13511
|
-
return ((
|
13522
|
+
var N, O;
|
13523
|
+
return ((N = I.srtseq) != null ? N : 0) - ((O = R.srtseq) != null ? O : 0);
|
13512
13524
|
});
|
13513
13525
|
return d.value = w, createVNode(Table, {
|
13514
13526
|
pagination: !1,
|
13515
13527
|
class: "kg-flex-table",
|
13516
13528
|
size: "small",
|
13517
13529
|
scroll: {
|
13518
|
-
x:
|
13530
|
+
x: E === "left" ? "370px" : `${1552 + 32}px`,
|
13519
13531
|
y: "auto"
|
13520
13532
|
},
|
13521
|
-
columns:
|
13533
|
+
columns: E === "left" ? g() : b(),
|
13522
13534
|
rowKey: "id",
|
13523
13535
|
dataSource: w,
|
13524
13536
|
customRow: (I) => {
|
13525
13537
|
let R = {
|
13526
|
-
onClick: (
|
13538
|
+
onClick: (N) => m(N, I, E, k)
|
13527
13539
|
};
|
13528
|
-
return
|
13540
|
+
return E === "right" && (R["kg-host-frm_id"] = a.formID, R["kg-var_nam"] = I.var_nam), R;
|
13529
13541
|
},
|
13530
13542
|
rowSelection: p({
|
13531
13543
|
disabled: A,
|
@@ -13539,13 +13551,13 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13539
13551
|
}
|
13540
13552
|
}
|
13541
13553
|
}), p = ({
|
13542
|
-
disabled:
|
13554
|
+
disabled: E,
|
13543
13555
|
selectedKeys: T,
|
13544
13556
|
onItemSelectAll: k,
|
13545
13557
|
onItemSelect: A
|
13546
13558
|
}) => ({
|
13547
13559
|
getCheckboxProps: (C) => ({
|
13548
|
-
disabled:
|
13560
|
+
disabled: E || C.disabled
|
13549
13561
|
}),
|
13550
13562
|
onSelectAll(C, M) {
|
13551
13563
|
const w = M.filter((I) => !I.disabled).map(({
|
@@ -13561,9 +13573,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13561
13573
|
selectedRowKeys: T,
|
13562
13574
|
columnWidth: 32
|
13563
13575
|
});
|
13564
|
-
function m(
|
13565
|
-
if (!KgDomUtil.isNotClickable(
|
13566
|
-
switch (A.length = 0,
|
13576
|
+
function m(E, T, k, A) {
|
13577
|
+
if (!KgDomUtil.isNotClickable(E.target, ["ant-input"]))
|
13578
|
+
switch (A.length = 0, E.detail) {
|
13567
13579
|
case 1:
|
13568
13580
|
A[0] = T.id;
|
13569
13581
|
break;
|
@@ -13581,7 +13593,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$m = () => ({
|
|
13581
13593
|
}
|
13582
13594
|
return () => createVNode(KgVar, {
|
13583
13595
|
class: "kg-table--config-modal--var-grid-master",
|
13584
|
-
kgProps:
|
13596
|
+
kgProps: y.value,
|
13585
13597
|
kgSlots: _.value
|
13586
13598
|
}, null);
|
13587
13599
|
}
|
@@ -13693,9 +13705,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
13693
13705
|
return o.onOpen(async ({
|
13694
13706
|
model: l
|
13695
13707
|
}) => {
|
13696
|
-
var u, d, g, b,
|
13708
|
+
var u, d, g, b, y, _, p;
|
13697
13709
|
const c = s.currentVarGridMaster.value;
|
13698
|
-
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, l.value.frm_id = (b = c == null ? void 0 : c.frm_id) != null ? b : "", l.value.usr_id = (
|
13710
|
+
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(g = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? g : ""}_COPY`, l.value.frm_id = (b = c == null ? void 0 : c.frm_id) != null ? b : "", l.value.usr_id = (y = c == null ? void 0 : c.usr_id) != null ? y : "", l.value.grp_nam = (_ = c == null ? void 0 : c.grp_nam) != null ? _ : "", l.value.varGridDetails = (p = c == null ? void 0 : c.varGridDetails) != null ? p : [], KgUtil.hideLoading(), !1;
|
13699
13711
|
}), o.onBeforeOk(async ({
|
13700
13712
|
model: l
|
13701
13713
|
}) => (l.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), i.store.setIsCopying(i.formID, !0), () => createVNode(KgVar, null, null);
|
@@ -13728,7 +13740,7 @@ const getProps$j = () => ({
|
|
13728
13740
|
}, {
|
13729
13741
|
immediate: !0
|
13730
13742
|
});
|
13731
|
-
function
|
13743
|
+
function y(C) {
|
13732
13744
|
n.store.patchVarGridDetail(n.formID, C.var_nam, {
|
13733
13745
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
13734
13746
|
});
|
@@ -13759,7 +13771,7 @@ const getProps$j = () => ({
|
|
13759
13771
|
async function m() {
|
13760
13772
|
g.value.visible = !0;
|
13761
13773
|
}
|
13762
|
-
function
|
13774
|
+
function E() {
|
13763
13775
|
return createVNode(Menu.SubMenu, {
|
13764
13776
|
key: "columns",
|
13765
13777
|
title: a.t("kg.KgTable.column"),
|
@@ -13778,7 +13790,7 @@ const getProps$j = () => ({
|
|
13778
13790
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((M) => createVNode("li", {
|
13779
13791
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
13780
13792
|
onClick: (w) => {
|
13781
|
-
w.preventDefault(), w.stopPropagation(),
|
13793
|
+
w.preventDefault(), w.stopPropagation(), y(M);
|
13782
13794
|
},
|
13783
13795
|
style: {
|
13784
13796
|
display: i(M, c.value) ? "flex" : "none"
|
@@ -13849,7 +13861,7 @@ const getProps$j = () => ({
|
|
13849
13861
|
popupClassName: "kg-table-setting--submenu-popup--row-height"
|
13850
13862
|
}, {
|
13851
13863
|
default: () => {
|
13852
|
-
let I, R,
|
13864
|
+
let I, R, N;
|
13853
13865
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13854
13866
|
key: "L",
|
13855
13867
|
class: u.value === "L" ? "selected" : "",
|
@@ -13866,8 +13878,8 @@ const getProps$j = () => ({
|
|
13866
13878
|
key: "H",
|
13867
13879
|
class: u.value === "H" ? "selected" : "",
|
13868
13880
|
onClick: () => s.store.setRowHeight(n.formID, "H")
|
13869
|
-
}, _isSlot$6(
|
13870
|
-
default: () => [
|
13881
|
+
}, _isSlot$6(N = a.t("kg.KgTable.rowHeightH")) ? N : {
|
13882
|
+
default: () => [N]
|
13871
13883
|
})]);
|
13872
13884
|
},
|
13873
13885
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
@@ -13897,7 +13909,7 @@ const getProps$j = () => ({
|
|
13897
13909
|
"onUpdate:openKeys": (C) => o.value = C,
|
13898
13910
|
selectable: !1
|
13899
13911
|
}, {
|
13900
|
-
default: () => [
|
13912
|
+
default: () => [E(), k(), T(), A()]
|
13901
13913
|
})
|
13902
13914
|
}), d.value.visible && createVNode(KgTableSettingConfigModal, {
|
13903
13915
|
visible: d.value.visible,
|
@@ -13955,7 +13967,7 @@ const getProps$h = () => ({
|
|
13955
13967
|
s.onSubmitSave(async () => {
|
13956
13968
|
var k;
|
13957
13969
|
try {
|
13958
|
-
await ((k =
|
13970
|
+
await ((k = y.value) == null ? void 0 : k.validate());
|
13959
13971
|
} catch (A) {
|
13960
13972
|
KgUtil.throwIfNotFormError(A);
|
13961
13973
|
}
|
@@ -13986,7 +13998,7 @@ const getProps$h = () => ({
|
|
13986
13998
|
}
|
13987
13999
|
return isString$1(k) && (k = k.replaceAll("\\n", `
|
13988
14000
|
`)), isNil(k) && (k = ""), k;
|
13989
|
-
}),
|
14001
|
+
}), y = ref(null);
|
13990
14002
|
function _(k) {
|
13991
14003
|
var A, C, M;
|
13992
14004
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
@@ -14017,7 +14029,7 @@ const getProps$h = () => ({
|
|
14017
14029
|
}
|
14018
14030
|
function m() {
|
14019
14031
|
return createVNode(KgForm, {
|
14020
|
-
ref:
|
14032
|
+
ref: y,
|
14021
14033
|
model: i.model.value,
|
14022
14034
|
layout: "vertical",
|
14023
14035
|
wrapperCol: {
|
@@ -14036,8 +14048,8 @@ const getProps$h = () => ({
|
|
14036
14048
|
})]
|
14037
14049
|
});
|
14038
14050
|
}
|
14039
|
-
function
|
14040
|
-
var k, A, C, M, w, I, R,
|
14051
|
+
function E() {
|
14052
|
+
var k, A, C, M, w, I, R, N, O, F, $;
|
14041
14053
|
if (u.value)
|
14042
14054
|
return m();
|
14043
14055
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
@@ -14049,13 +14061,13 @@ const getProps$h = () => ({
|
|
14049
14061
|
}, null);
|
14050
14062
|
}
|
14051
14063
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
14052
|
-
const D = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties), V = isArrayLike(D) && D.find((
|
14064
|
+
const D = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties), V = isArrayLike(D) && D.find((P) => P.value === e.kgValue);
|
14053
14065
|
if (V) {
|
14054
|
-
const
|
14055
|
-
return
|
14066
|
+
const P = n.t(V.varName).value;
|
14067
|
+
return P ? createVNode(Tag, {
|
14056
14068
|
color: (w = V.color) != null ? w : "default"
|
14057
|
-
}, _isSlot$5(
|
14058
|
-
default: () => [
|
14069
|
+
}, _isSlot$5(P) ? P : {
|
14070
|
+
default: () => [P]
|
14059
14071
|
}) : T();
|
14060
14072
|
} else
|
14061
14073
|
return T();
|
@@ -14063,7 +14075,7 @@ const getProps$h = () => ({
|
|
14063
14075
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
14064
14076
|
const D = KgUtil.tryParseJSON((I = l.value) == null ? void 0 : I.display_type_properties);
|
14065
14077
|
if (D.isTag && isArrayLike(D.tagColors)) {
|
14066
|
-
const V = D.tagColors.find((
|
14078
|
+
const V = D.tagColors.find((P) => P.value === e.kgValue);
|
14067
14079
|
return b.value ? createVNode(Tag, {
|
14068
14080
|
color: (R = V == null ? void 0 : V.color) != null ? R : "default"
|
14069
14081
|
}, {
|
@@ -14073,7 +14085,7 @@ const getProps$h = () => ({
|
|
14073
14085
|
return T();
|
14074
14086
|
}
|
14075
14087
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
14076
|
-
const D = KgUtil.tryParseJSON((
|
14088
|
+
const D = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties), V = (F = (O = e.kgRow) == null ? void 0 : O[D.leftColumn]) != null ? F : 0;
|
14077
14089
|
switch (e.kgContext) {
|
14078
14090
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
14079
14091
|
return V;
|
@@ -14122,7 +14134,7 @@ const getProps$h = () => ({
|
|
14122
14134
|
class: g.value,
|
14123
14135
|
title: b.value,
|
14124
14136
|
"kg-value": e.kgValue
|
14125
|
-
}, [
|
14137
|
+
}, [E()]);
|
14126
14138
|
}
|
14127
14139
|
});
|
14128
14140
|
function _useRenderBodyCell() {
|
@@ -14139,19 +14151,19 @@ function _useRenderBodyCell() {
|
|
14139
14151
|
text: d,
|
14140
14152
|
value: g
|
14141
14153
|
} = i, b = l.dataIndex;
|
14142
|
-
let
|
14143
|
-
l.customRender ?
|
14154
|
+
let y = "";
|
14155
|
+
l.customRender ? y = l.customRender({
|
14144
14156
|
index: c,
|
14145
14157
|
record: u,
|
14146
14158
|
column: l,
|
14147
14159
|
text: d,
|
14148
14160
|
value: g,
|
14149
14161
|
renderIndex: c
|
14150
|
-
}) :
|
14162
|
+
}) : y = g;
|
14151
14163
|
const _ = createVNode(KgTableCell, {
|
14152
14164
|
kgContext: o,
|
14153
14165
|
kgRow: u,
|
14154
|
-
kgValue:
|
14166
|
+
kgValue: y,
|
14155
14167
|
kgVarName: b,
|
14156
14168
|
onKgUpdateLinkClick: () => n(u)
|
14157
14169
|
}, null);
|
@@ -14181,7 +14193,7 @@ function _useColumns(e) {
|
|
14181
14193
|
return ((b = r.store.getVarGridConfig(r.formID)) == null ? void 0 : b.show_check_column_flg) === 1;
|
14182
14194
|
}), u = computed(() => {
|
14183
14195
|
var T, k, A;
|
14184
|
-
const b = useKg(),
|
14196
|
+
const b = useKg(), y = s.store.getDatas(r.formID), _ = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, p = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, m = r.store.getCurrentVisibleVarGridDetails(r.formID), E = [{
|
14185
14197
|
dataIndex: "index",
|
14186
14198
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
14187
14199
|
fixed: "left",
|
@@ -14191,7 +14203,7 @@ function _useColumns(e) {
|
|
14191
14203
|
index: C
|
14192
14204
|
}) => C + 1
|
14193
14205
|
}, ...(A = m == null ? void 0 : m.map((C, M) => {
|
14194
|
-
var
|
14206
|
+
var P, B, Y;
|
14195
14207
|
const w = C.var_nam;
|
14196
14208
|
function I() {
|
14197
14209
|
return C.width === "auto" ? "auto" : Number(C.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
@@ -14199,23 +14211,23 @@ function _useColumns(e) {
|
|
14199
14211
|
function R() {
|
14200
14212
|
return r.t(w).value;
|
14201
14213
|
}
|
14202
|
-
function
|
14214
|
+
function N() {
|
14203
14215
|
if (C.fix_left_flg === 1)
|
14204
14216
|
return "left";
|
14205
14217
|
if (C.fix_right_flg === 1)
|
14206
14218
|
return "right";
|
14207
14219
|
}
|
14208
14220
|
function O() {
|
14209
|
-
var
|
14210
|
-
return !(C.ord_flg !== 1 || (x = (
|
14221
|
+
var K, x, W, q;
|
14222
|
+
return !(C.ord_flg !== 1 || (x = (K = t == null ? void 0 : t.value) == null ? void 0 : K.KgTable) != null && x.kgDisabled || isNil((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) == null ? void 0 : q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || y.length <= 0);
|
14211
14223
|
}
|
14212
14224
|
function F() {
|
14213
|
-
var
|
14214
|
-
if (((x = (
|
14215
|
-
return uniqBy(
|
14216
|
-
var
|
14225
|
+
var K, x, W, q, J, Z;
|
14226
|
+
if (((x = (K = b.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((q = (W = t == null ? void 0 : t.value) == null ? void 0 : W.KgTable) != null && q.kgDisabled) && !(isNil((Z = (J = t == null ? void 0 : t.value) == null ? void 0 : J.KgTable) == null ? void 0 : Z.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(y.length <= 0))
|
14227
|
+
return uniqBy(y.map((te) => {
|
14228
|
+
var ie;
|
14217
14229
|
return {
|
14218
|
-
value: (
|
14230
|
+
value: (ie = te == null ? void 0 : te[w]) != null ? ie : "",
|
14219
14231
|
text: i({
|
14220
14232
|
column: {
|
14221
14233
|
dataIndex: w
|
@@ -14228,8 +14240,8 @@ function _useColumns(e) {
|
|
14228
14240
|
}), "value");
|
14229
14241
|
}
|
14230
14242
|
function $() {
|
14231
|
-
var
|
14232
|
-
return ((x = (
|
14243
|
+
var K, x, W;
|
14244
|
+
return ((x = (K = b.option.value.KgTable) == null ? void 0 : K.filter) == null ? void 0 : x.on) !== !0 ? null : ((W = o.value) == null ? void 0 : W[w]) || null;
|
14233
14245
|
}
|
14234
14246
|
function D() {
|
14235
14247
|
return ["left", "center", "right"].includes(C.align || "") ? C.align : "left";
|
@@ -14258,39 +14270,39 @@ function _useColumns(e) {
|
|
14258
14270
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
14259
14271
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
14260
14272
|
align: D(),
|
14261
|
-
fixed:
|
14273
|
+
fixed: N(),
|
14262
14274
|
sorter: O(),
|
14263
|
-
sortOrder: ((
|
14275
|
+
sortOrder: ((P = l.value) == null ? void 0 : P.field) === w && (Y = (B = l.value) == null ? void 0 : B.order) != null ? Y : null,
|
14264
14276
|
filteredValue: $(),
|
14265
14277
|
filters: F(),
|
14266
|
-
onFilter: (
|
14278
|
+
onFilter: (K, x) => K === "" ? isNil(x == null ? void 0 : x[w]) || (x == null ? void 0 : x[w]) === "" : (x == null ? void 0 : x[w]) === K,
|
14267
14279
|
customHeaderCell: () => ({
|
14268
14280
|
"kg-frm_id": r.formID,
|
14269
14281
|
"kg-var_nam": w,
|
14270
14282
|
draggable: !0
|
14271
14283
|
}),
|
14272
|
-
customCell: (
|
14273
|
-
var
|
14284
|
+
customCell: (K) => {
|
14285
|
+
var W;
|
14274
14286
|
const x = r.store.getVarSubmitField(r.formID, w);
|
14275
14287
|
return {
|
14276
14288
|
"kg-frm_id": r.formID,
|
14277
14289
|
"kg-var_nam": w,
|
14278
|
-
class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
14290
|
+
class: n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && K[s.id.value] === ((W = s.selectedRow.value) == null ? void 0 : W[s.id.value]) && (!!r.isCreating.value && (x == null ? void 0 : x.crt_flg) === 1 || !!r.isUpdating.value && (x == null ? void 0 : x.upt_flg) === 1 || !!r.isCopying.value && (x == null ? void 0 : x.cpy_flg) === 1 || !!r.isDeleting.value && (x == null ? void 0 : x.del_flg) === 1) ? "submitting" : ""
|
14279
14291
|
};
|
14280
14292
|
}
|
14281
14293
|
};
|
14282
14294
|
})) != null ? A : []];
|
14283
|
-
return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) &&
|
14295
|
+
return (p === 0 || _ > p && !(m != null && m.find((C) => C.width === "auto"))) && E.push({
|
14284
14296
|
width: "auto",
|
14285
14297
|
customRender: () => null
|
14286
|
-
}),
|
14298
|
+
}), E;
|
14287
14299
|
}), d = computed(() => {
|
14288
|
-
var
|
14300
|
+
var y;
|
14289
14301
|
let b = 0;
|
14290
|
-
return c.value && (b += KG_TABLE_TD_CHECK_WIDTH), b += KG_TABLE_TD_INDEX_WIDTH, b += (
|
14302
|
+
return c.value && (b += KG_TABLE_TD_CHECK_WIDTH), b += KG_TABLE_TD_INDEX_WIDTH, b += (y = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? y : 0, `${b}px`;
|
14291
14303
|
});
|
14292
14304
|
let g = null;
|
14293
|
-
return watch(r.currentVarGridMasteID, (b,
|
14305
|
+
return watch(r.currentVarGridMasteID, (b, y) => {
|
14294
14306
|
l.value = {}, g == null || g(), g = watch(l, () => {
|
14295
14307
|
g(), g = null, a.search({
|
14296
14308
|
isSearchFirstPage: !0
|
@@ -14343,9 +14355,9 @@ function _useDragColumn(e, t) {
|
|
14343
14355
|
width: d,
|
14344
14356
|
height: g
|
14345
14357
|
} = l.getBoundingClientRect();
|
14346
|
-
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (b = c.dataTransfer) == null || b.setDragImage(u, -10, (g + 2) / 2), toCanvas(l).then((
|
14358
|
+
d && g && (u.style.width = `${d + 2}px`, u.style.height = `${g + 2}px`), (b = c.dataTransfer) == null || b.setDragImage(u, -10, (g + 2) / 2), toCanvas(l).then((y) => {
|
14347
14359
|
var _;
|
14348
|
-
u.appendChild(
|
14360
|
+
u.appendChild(y), document.body.appendChild(u), (_ = c.dataTransfer) == null || _.setDragImage(u, -10, (g + 2) / 2);
|
14349
14361
|
});
|
14350
14362
|
}, l.addEventListener("dragstart", l.__kg__dragstart__), l.__kg__dragend__ = (c) => {
|
14351
14363
|
l.classList.remove("dragging"), l.parentElement.classList.remove("dragging");
|
@@ -14438,15 +14450,15 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14438
14450
|
name: "KgTable",
|
14439
14451
|
props: getProps$g(),
|
14440
14452
|
setup: function(e) {
|
14441
|
-
var
|
14453
|
+
var se;
|
14442
14454
|
const t = inject("$dayjs", dayjs), r = inject(DI_KG_VAR__KG_SLOTS, null), a = inject(DI_KG_VAR__KG_PROPS, null), n = useKg(), s = useKgVar(), i = useKgSearch(), o = useKgTable(), l = useKgSubmit();
|
14443
|
-
i.onSearch(async (
|
14455
|
+
i.onSearch(async (L) => (K(L), !1)), i.onReset(async () => (g.value = {}, K({
|
14444
14456
|
isSearchFirstPage: !0
|
14445
14457
|
}), !1)), o.store.$onAction(async ({
|
14446
|
-
name:
|
14458
|
+
name: L,
|
14447
14459
|
args: U
|
14448
14460
|
}) => {
|
14449
|
-
switch (
|
14461
|
+
switch (L) {
|
14450
14462
|
case "setRowSelect":
|
14451
14463
|
if (U[0] === s.formID) {
|
14452
14464
|
const Q = U[1], z = U[2], ee = Q[o.id.value];
|
@@ -14461,7 +14473,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14461
14473
|
}
|
14462
14474
|
break;
|
14463
14475
|
case "clearDatas":
|
14464
|
-
U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0,
|
14476
|
+
U[0] === s.formID && (o.store.setDatas(s.formID, []), D.total = 0, Y(), c.value = []);
|
14465
14477
|
break;
|
14466
14478
|
}
|
14467
14479
|
});
|
@@ -14471,52 +14483,52 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14471
14483
|
sorterInfo: g,
|
14472
14484
|
scrollX: b
|
14473
14485
|
} = _useColumns(e), {
|
14474
|
-
isLoading:
|
14486
|
+
isLoading: y
|
14475
14487
|
} = _useLoading(), _ = ref(null), {
|
14476
14488
|
renderBodyCell: p
|
14477
14489
|
} = _useRenderBodyCell();
|
14478
14490
|
_useResizeObserver(_), _useDragColumn(_, u);
|
14479
14491
|
const {
|
14480
14492
|
datas: m,
|
14481
|
-
transformDatas:
|
14493
|
+
transformDatas: E
|
14482
14494
|
} = _useDatas(), T = computed(() => {
|
14483
|
-
var
|
14484
|
-
return (U = (
|
14495
|
+
var L, U;
|
14496
|
+
return (U = (L = s.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? U : null;
|
14485
14497
|
}), k = computed(() => {
|
14486
|
-
var U, Q, z, ee,
|
14487
|
-
let
|
14498
|
+
var U, Q, z, ee, _e, de, ge, me, he;
|
14499
|
+
let L = {
|
14488
14500
|
pageNo: D.pageIndex,
|
14489
14501
|
pageSize: D.pageSize,
|
14490
14502
|
column: (Q = (U = g.value) == null ? void 0 : U.field) != null ? Q : void 0,
|
14491
14503
|
order: g.value.order === "ascend" ? "asc" : g.value.order === "descend" ? "desc" : void 0,
|
14492
14504
|
...(ee = (z = i.model) == null ? void 0 : z.value) != null ? ee : {}
|
14493
14505
|
};
|
14494
|
-
return s.varButtonSearch.value && (
|
14495
|
-
...
|
14496
|
-
...KgVarUtil.parseCommandParameter((
|
14497
|
-
}), (
|
14498
|
-
...
|
14499
|
-
...KgVarUtil.parseCommandParameter((
|
14500
|
-
}), ((
|
14506
|
+
return s.varButtonSearch.value && (L = {
|
14507
|
+
...L,
|
14508
|
+
...KgVarUtil.parseCommandParameter((de = (_e = s.varButtonSearch.value) == null ? void 0 : _e.cmd_prm) != null ? de : "")
|
14509
|
+
}), (ge = s.varGridConfig.value) != null && ge.cmd_prm && (L = {
|
14510
|
+
...L,
|
14511
|
+
...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
|
14512
|
+
}), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
|
14501
14513
|
}), A = computed(() => {
|
14502
|
-
var
|
14503
|
-
if (!isNil((U = (
|
14514
|
+
var L, U, Q, z;
|
14515
|
+
if (!isNil((U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgDisabled))
|
14504
14516
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgDisabled;
|
14505
14517
|
if (!isNil(e.kgDisabled))
|
14506
14518
|
return e.kgDisabled;
|
14507
14519
|
}), C = computed(() => {
|
14508
|
-
var
|
14509
|
-
if (!isNil((U = (
|
14520
|
+
var L, U, Q, z;
|
14521
|
+
if (!isNil((U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgCheckboxDisabled))
|
14510
14522
|
return (z = (Q = a == null ? void 0 : a.value) == null ? void 0 : Q.KgTable) == null ? void 0 : z.kgCheckboxDisabled;
|
14511
14523
|
if (!isNil(e.kgCheckboxDisabled))
|
14512
14524
|
return e.kgCheckboxDisabled;
|
14513
|
-
}), M = computed(() => !!A.value ||
|
14514
|
-
var
|
14515
|
-
return !!((
|
14525
|
+
}), M = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), w = computed(() => !!A.value || y.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || D.total === 0), I = computed(() => {
|
14526
|
+
var L;
|
14527
|
+
return !!((L = r == null ? void 0 : r.KgTable) != null && L.expandedRowRender);
|
14516
14528
|
}), R = computed(() => {
|
14517
|
-
var
|
14518
|
-
return ((
|
14519
|
-
}),
|
14529
|
+
var L;
|
14530
|
+
return ((L = s.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
14531
|
+
}), N = computed(() => {
|
14520
14532
|
if (!!R.value)
|
14521
14533
|
return {
|
14522
14534
|
fixed: "left",
|
@@ -14524,76 +14536,76 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14524
14536
|
hideSelectAll: !o.isMultiSelect.value,
|
14525
14537
|
selectedRowKeys: $,
|
14526
14538
|
preserveSelectedRowKeys: !1,
|
14527
|
-
getCheckboxProps: (
|
14539
|
+
getCheckboxProps: (L) => {
|
14528
14540
|
var U;
|
14529
14541
|
return {
|
14530
|
-
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C,
|
14542
|
+
disabled: !!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || !!((U = C.value) != null && U.call(C, L))
|
14531
14543
|
};
|
14532
14544
|
},
|
14533
|
-
onSelect: (
|
14534
|
-
onChange: (
|
14545
|
+
onSelect: (L) => W(L),
|
14546
|
+
onChange: (L) => o.isMultiSelect.value && x(L)
|
14535
14547
|
};
|
14536
14548
|
}), O = computed(() => {
|
14537
14549
|
var U;
|
14538
|
-
let
|
14539
|
-
switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (
|
14550
|
+
let L = "kg-table";
|
14551
|
+
switch (((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !o.isShowBottomLeft.value && !o.isShowBottomRight.value && (L += " kg-table--no-bottom"), l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (L += " kg-table--submitting"), o.store.getRowHeight(s.formID)) {
|
14540
14552
|
case "L":
|
14541
|
-
|
14553
|
+
L += " kg-table--row-l";
|
14542
14554
|
break;
|
14543
14555
|
case "M":
|
14544
|
-
|
14556
|
+
L += " kg-table--row-m";
|
14545
14557
|
break;
|
14546
14558
|
case "H":
|
14547
|
-
|
14559
|
+
L += " kg-table--row-h";
|
14548
14560
|
break;
|
14549
14561
|
}
|
14550
|
-
return
|
14562
|
+
return L;
|
14551
14563
|
}), F = computed(() => {
|
14552
14564
|
var U;
|
14553
|
-
let
|
14554
|
-
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (
|
14555
|
-
}), $ = (
|
14565
|
+
let L = "kg-table-bottom";
|
14566
|
+
return ((U = s.varGridConfig.value) == null ? void 0 : U.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
14567
|
+
}), $ = (se = o.store.getSelectedRowKeys(s.formID)) != null ? se : ref([]), D = reactive({
|
14556
14568
|
pageIndex: 1,
|
14557
14569
|
pageSize: 10,
|
14558
14570
|
total: 0
|
14559
|
-
}), V = watch(o.pageSizeOption, (
|
14560
|
-
|
14571
|
+
}), V = watch(o.pageSizeOption, (L) => {
|
14572
|
+
L && (setTimeout(() => V()), D.pageSize = L, o.store.emit(s.formID, "ready", {}), o.store.setIsReady(s.formID, !0));
|
14561
14573
|
}, {
|
14562
14574
|
immediate: !0
|
14563
14575
|
});
|
14564
|
-
watch(o.pageSizeOptions, (
|
14565
|
-
|
14566
|
-
}), watch([T, o.isReadAutomatically, i.isReady], ([
|
14567
|
-
|
14576
|
+
watch(o.pageSizeOptions, (L) => {
|
14577
|
+
L.length > 0 && !L.includes(D.pageSize) && (D.pageSize = o.pageSizeOption.value);
|
14578
|
+
}), watch([T, o.isReadAutomatically, i.isReady], ([L, U, Q]) => {
|
14579
|
+
L && U && Q && !o.store.getIsRetrieved(s.formID) && K({
|
14568
14580
|
isSearchFirstPage: !0
|
14569
14581
|
});
|
14570
14582
|
}, {
|
14571
14583
|
immediate: !0
|
14572
|
-
}), watch(s.isCreating, (
|
14573
|
-
|
14584
|
+
}), watch(s.isCreating, (L, U) => {
|
14585
|
+
L === !0 ? P() : L === !1 && U === !0 && B();
|
14574
14586
|
}), onUnmounted(() => {
|
14575
14587
|
o.store.dispose(s.formID);
|
14576
14588
|
});
|
14577
|
-
function
|
14589
|
+
function P() {
|
14578
14590
|
if (l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
14579
|
-
const
|
14591
|
+
const L = {
|
14580
14592
|
[o.id.value]: KG_TABLE_TEMP_ID
|
14581
14593
|
};
|
14582
|
-
o.store.setDatas(s.formID, [
|
14594
|
+
o.store.setDatas(s.formID, [L, ...m.value]), o.store.setSelectedRows(s.formID, [L]);
|
14583
14595
|
}
|
14584
14596
|
}
|
14585
14597
|
function B() {
|
14586
|
-
const
|
14587
|
-
|
14598
|
+
const L = m.value.find((U) => U[o.id.value] === KG_TABLE_TEMP_ID);
|
14599
|
+
L && (o.store.setDatas(s.formID, without$1(m.value, L)), o.store.setSelectedRows(s.formID, []));
|
14588
14600
|
}
|
14589
|
-
function
|
14601
|
+
function Y(L, U) {
|
14590
14602
|
var Q;
|
14591
|
-
if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!
|
14603
|
+
if (!(!!A.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!N.value) {
|
14592
14604
|
if (!U) {
|
14593
14605
|
o.store.setSelectedRows(s.formID, []);
|
14594
14606
|
return;
|
14595
14607
|
}
|
14596
|
-
switch (
|
14608
|
+
switch (L == null ? void 0 : L.detail) {
|
14597
14609
|
case 1:
|
14598
14610
|
switch ((Q = s.varGridConfig.value) == null ? void 0 : Q.operation_on_row_click) {
|
14599
14611
|
case 0:
|
@@ -14611,9 +14623,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14611
14623
|
}
|
14612
14624
|
}
|
14613
14625
|
}
|
14614
|
-
function L
|
14626
|
+
function K(L = {}) {
|
14615
14627
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u6267\u884C\u5F00\u59CB.`, {
|
14616
|
-
param:
|
14628
|
+
param: L
|
14617
14629
|
});
|
14618
14630
|
const U = watch(o.isReady, (z) => {
|
14619
14631
|
z && (setTimeout(() => U()), Q());
|
@@ -14621,99 +14633,111 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14621
14633
|
immediate: !0
|
14622
14634
|
});
|
14623
14635
|
async function Q() {
|
14624
|
-
var z, ee,
|
14636
|
+
var z, ee, _e, de, ge, me, he;
|
14625
14637
|
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u6267\u884C\u5F00\u59CB.`), !T.value) {
|
14626
|
-
KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3
|
14638
|
+
KgLogger.error(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3.`, {
|
14627
14639
|
VarButton: s.varButtonSearch.value
|
14628
14640
|
});
|
14629
14641
|
return;
|
14630
14642
|
}
|
14631
|
-
|
14643
|
+
L.isSearchFirstPage && (D.pageIndex = 1), o.store.setIsRetrieving(s.formID, !0);
|
14632
14644
|
try {
|
14633
|
-
const
|
14645
|
+
const ve = KgUtil.parseParams(k.value, o.profileFormID.value, t), Se = ref({});
|
14634
14646
|
if (!await o.store.emit(s.formID, "beforeRetrieve", {
|
14635
|
-
params:
|
14636
|
-
response:
|
14647
|
+
params: ve,
|
14648
|
+
response: Se
|
14637
14649
|
})) {
|
14638
|
-
const
|
14639
|
-
|
14640
|
-
|
14650
|
+
const H = ((ee = (z = n.option.value.KgSearch) == null ? void 0 : z.dynamicQuery) == null ? void 0 : ee.on) === !0 && ((_e = s.currentVarProfileMaster.value) == null ? void 0 : _e.dyn_flg) === 1, {
|
14651
|
+
sql: X,
|
14652
|
+
whereSql: re,
|
14653
|
+
orderBySql: ne
|
14654
|
+
} = KgUtil.getQuerySql(k.value, o.profileFormID.value, t), ae = await httpClient().request({
|
14655
|
+
method: (ge = (de = s.varButtonSearch.value) == null ? void 0 : de.cmd_method) != null ? ge : "GET",
|
14641
14656
|
url: T.value,
|
14642
|
-
params:
|
14657
|
+
params: ve,
|
14658
|
+
data: ve,
|
14643
14659
|
headers: {
|
14644
|
-
[KG_HTTP_HEADERS.
|
14645
|
-
[KG_HTTP_HEADERS.
|
14660
|
+
[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY]: H,
|
14661
|
+
[KG_HTTP_HEADERS.KG_QUERY_SQL]: X,
|
14662
|
+
[KG_HTTP_HEADERS.KG_QUERY_WHERE_SQL]: re,
|
14663
|
+
[KG_HTTP_HEADERS.KG_QUERY_ORDER_BY_SQL]: ne
|
14646
14664
|
}
|
14647
14665
|
}, {
|
14666
|
+
isReturnNativeResponse: !0,
|
14648
14667
|
successMessageMode: "none"
|
14649
|
-
})
|
14650
|
-
|
14651
|
-
|
14668
|
+
});
|
14669
|
+
if (!ae.data)
|
14670
|
+
throw message.error(n.t("kg.KgTable.request-fail-no-data")), new Error(n.t("kg.KgTable.request-fail-no-data"));
|
14671
|
+
if (![0, 200].includes((me = ae.data.code) != null ? me : -1) || !ae.data.success)
|
14672
|
+
throw message.error(ae.data.message || n.t("kg.KgTable.request-fail-error")), new Error(ae.data.message || n.t("kg.KgTable.request-fail-error"));
|
14673
|
+
H && ae.headers[KG_HTTP_HEADERS.KG_DYNAMIC_QUERY] !== "true" && message.warning(n.t("kg.KgTable.dynamic-query-is-off-in-server")), Se.value = ae.data.result, KgLogger.debug(`${s.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u6210\u529F.`, {
|
14674
|
+
params: ve,
|
14675
|
+
response: Se.value
|
14652
14676
|
});
|
14653
14677
|
}
|
14654
14678
|
const {
|
14655
|
-
datas:
|
14656
|
-
total:
|
14657
|
-
} =
|
14679
|
+
datas: be,
|
14680
|
+
total: Ce
|
14681
|
+
} = E(Se);
|
14658
14682
|
await o.store.emit(s.formID, "beforeSetDatas", {
|
14659
|
-
datas:
|
14660
|
-
total:
|
14661
|
-
setDatas(
|
14662
|
-
o.store.setDatas(s.formID,
|
14683
|
+
datas: be,
|
14684
|
+
total: Ce,
|
14685
|
+
setDatas(H) {
|
14686
|
+
o.store.setDatas(s.formID, H);
|
14663
14687
|
}
|
14664
|
-
}), d.value = {}, o.store.setDatas(s.formID,
|
14665
|
-
const
|
14666
|
-
|
14667
|
-
var
|
14668
|
-
return (
|
14669
|
-
}).filter((
|
14670
|
-
page:
|
14671
|
-
datas:
|
14672
|
-
setDatas(
|
14673
|
-
o.store.setDatas(s.formID,
|
14688
|
+
}), d.value = {}, o.store.setDatas(s.formID, be.value), D.total = Ce.value;
|
14689
|
+
const G = cloneDeep($.value);
|
14690
|
+
Y(), c.value = [], await nextTick(), L.isPreserveSelectedRows ? o.store.setSelectedRows(s.formID, G.map((H) => {
|
14691
|
+
var X;
|
14692
|
+
return (X = be.value) == null ? void 0 : X.find((re) => re[o.id.value] === H);
|
14693
|
+
}).filter((H) => !!H)) : ((he = s.varGridConfig.value) == null ? void 0 : he.check_first_row_after_retrieve) === 1 && be.value.length > 0 && o.store.setSelectedRows(s.formID, [be.value[0]]), await o.store.emit(s.formID, "retrieve", {
|
14694
|
+
page: Se.value,
|
14695
|
+
datas: be,
|
14696
|
+
setDatas(H) {
|
14697
|
+
o.store.setDatas(s.formID, H);
|
14674
14698
|
}
|
14675
14699
|
}), o.store.setIsRetrieved(s.formID, !0);
|
14676
|
-
} catch (
|
14677
|
-
throw
|
14700
|
+
} catch (ve) {
|
14701
|
+
throw ve;
|
14678
14702
|
} finally {
|
14679
14703
|
o.store.setIsRetrieving(s.formID, !1);
|
14680
14704
|
}
|
14681
14705
|
}
|
14682
14706
|
}
|
14683
|
-
function x(
|
14684
|
-
o.store.setSelectedRows(s.formID,
|
14707
|
+
function x(L) {
|
14708
|
+
o.store.setSelectedRows(s.formID, L.map((U) => {
|
14685
14709
|
var Q;
|
14686
14710
|
return (Q = m.value) == null ? void 0 : Q.find((z) => z[o.id.value] === U);
|
14687
14711
|
}).filter((U) => !!U));
|
14688
14712
|
}
|
14689
|
-
function
|
14713
|
+
function W(L) {
|
14690
14714
|
var U, Q;
|
14691
14715
|
switch (o.isMultiSelect.value) {
|
14692
14716
|
case !0:
|
14693
14717
|
{
|
14694
|
-
const z =
|
14718
|
+
const z = L[o.id.value];
|
14695
14719
|
$.value.includes(z) ? $.value = without$1($.value, z) : $.value = [...(U = $.value) != null ? U : [], z];
|
14696
14720
|
}
|
14697
14721
|
break;
|
14698
14722
|
case !1:
|
14699
14723
|
{
|
14700
|
-
const z =
|
14724
|
+
const z = L[o.id.value];
|
14701
14725
|
(Q = $.value) != null && Q.includes(z) ? $.value = [] : $.value = [z];
|
14702
14726
|
}
|
14703
14727
|
break;
|
14704
14728
|
}
|
14705
14729
|
o.store.setSelectedRows(s.formID, $.value.map((z) => {
|
14706
14730
|
var ee;
|
14707
|
-
return (ee = m.value) == null ? void 0 : ee.find((
|
14731
|
+
return (ee = m.value) == null ? void 0 : ee.find((_e) => _e[o.id.value] === z);
|
14708
14732
|
}).filter((z) => !!z));
|
14709
14733
|
}
|
14710
|
-
function q(
|
14711
|
-
U.width =
|
14734
|
+
function q(L, U) {
|
14735
|
+
U.width = L, s.store.setVarGridDetailWidth(s.formID, U.dataIndex, L);
|
14712
14736
|
}
|
14713
|
-
async function
|
14737
|
+
async function J(L, U, Q, z) {
|
14714
14738
|
switch (z.action) {
|
14715
14739
|
case "sort": {
|
14716
|
-
g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(),
|
14740
|
+
g.value = Q, g.value.order || (g.value.field = void 0), await nextTick(), K({
|
14717
14741
|
isSearchFirstPage: !0
|
14718
14742
|
});
|
14719
14743
|
break;
|
@@ -14722,23 +14746,23 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14722
14746
|
d.value = U;
|
14723
14747
|
}
|
14724
14748
|
}
|
14725
|
-
function
|
14749
|
+
function Z(L, U) {
|
14726
14750
|
var z;
|
14727
14751
|
const Q = U[o.id.value];
|
14728
14752
|
switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
14729
14753
|
case 0:
|
14730
|
-
|
14754
|
+
L ? c.value = uniq([...c.value, Q]) : c.value = without$1(c.value, Q);
|
14731
14755
|
break;
|
14732
14756
|
default:
|
14733
|
-
|
14757
|
+
L ? c.value = [Q] : c.value = [];
|
14734
14758
|
break;
|
14735
14759
|
}
|
14736
14760
|
}
|
14737
|
-
function te(
|
14738
|
-
U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex =
|
14761
|
+
function te(L, U) {
|
14762
|
+
U !== D.pageSize ? (D.pageIndex = 1, D.pageSize = U) : D.pageIndex = L, K();
|
14739
14763
|
}
|
14740
|
-
function
|
14741
|
-
title:
|
14764
|
+
function ie({
|
14765
|
+
title: L,
|
14742
14766
|
column: U
|
14743
14767
|
}) {
|
14744
14768
|
switch (U.dataIndex) {
|
@@ -14748,13 +14772,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14748
14772
|
}, null);
|
14749
14773
|
default:
|
14750
14774
|
return createVNode("pre", {
|
14751
|
-
title:
|
14752
|
-
}, [
|
14775
|
+
title: L
|
14776
|
+
}, [L]);
|
14753
14777
|
}
|
14754
14778
|
}
|
14755
|
-
function
|
14756
|
-
var
|
14757
|
-
return (
|
14779
|
+
function pe() {
|
14780
|
+
var L;
|
14781
|
+
return (L = r == null ? void 0 : r.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
|
14758
14782
|
fixed: "bottom"
|
14759
14783
|
}, {
|
14760
14784
|
default: () => [createVNode(TableSummary.Row, null, {
|
@@ -14763,17 +14787,17 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14763
14787
|
}, null), R.value && createVNode(TableSummary.Cell, {
|
14764
14788
|
index: I.value ? 1 : 0
|
14765
14789
|
}, null), u.value.map((U, Q) => {
|
14766
|
-
const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null,
|
14767
|
-
let
|
14768
|
-
return I.value && R.value ?
|
14769
|
-
index:
|
14770
|
-
align:
|
14790
|
+
const z = String(U.dataIndex), ee = z ? s.store.getVarGridDetail(s.formID, z) : null, _e = (() => ["left", "center", "right"].includes((ee == null ? void 0 : ee.align) || "") ? ee == null ? void 0 : ee.align : "left")();
|
14791
|
+
let de = Q;
|
14792
|
+
return I.value && R.value ? de += 2 : (I.value || R.value) && (de += 1), createVNode(TableSummary.Cell, {
|
14793
|
+
index: de,
|
14794
|
+
align: _e
|
14771
14795
|
}, {
|
14772
14796
|
default: () => {
|
14773
|
-
var
|
14774
|
-
return [(
|
14797
|
+
var ge, me;
|
14798
|
+
return [(me = (ge = r == null ? void 0 : r.KgTable) == null ? void 0 : ge["summary.bodyCell"]) == null ? void 0 : me.call(ge, {
|
14775
14799
|
column: U,
|
14776
|
-
index:
|
14800
|
+
index: de,
|
14777
14801
|
varGridDetail: ee
|
14778
14802
|
})];
|
14779
14803
|
}
|
@@ -14782,11 +14806,11 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14782
14806
|
})]
|
14783
14807
|
}) : null;
|
14784
14808
|
}
|
14785
|
-
function
|
14809
|
+
function ce() {
|
14786
14810
|
return !o.isReadAutomatically.value && !o.store.getIsRetrieved(s.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
14787
14811
|
}
|
14788
14812
|
return () => {
|
14789
|
-
var
|
14813
|
+
var L, U, Q;
|
14790
14814
|
return createVNode("div", {
|
14791
14815
|
class: O.value,
|
14792
14816
|
"kg-frm_id": s.formID,
|
@@ -14802,24 +14826,24 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14802
14826
|
showSorterTooltip: !1,
|
14803
14827
|
columns: u.value,
|
14804
14828
|
dataSource: m.value,
|
14805
|
-
loading:
|
14829
|
+
loading: y.value,
|
14806
14830
|
rowKey: o.id.value,
|
14807
|
-
rowClassName: (U = (
|
14831
|
+
rowClassName: (U = (L = a == null ? void 0 : a.value) == null ? void 0 : L.KgTable) == null ? void 0 : U.kgRowClassName,
|
14808
14832
|
expandColumnWidth: 28,
|
14809
14833
|
expandedRowKeys: c.value,
|
14810
|
-
rowSelection:
|
14834
|
+
rowSelection: N.value,
|
14811
14835
|
customRow: (z) => ({
|
14812
|
-
onClick: (ee) =>
|
14836
|
+
onClick: (ee) => Y(ee, z)
|
14813
14837
|
}),
|
14814
14838
|
onResizeColumn: q,
|
14815
|
-
onChange:
|
14816
|
-
onExpand:
|
14839
|
+
onChange: J,
|
14840
|
+
onExpand: Z
|
14817
14841
|
}, {
|
14818
|
-
headerCell:
|
14842
|
+
headerCell: ie,
|
14819
14843
|
bodyCell: p,
|
14820
|
-
emptyText:
|
14844
|
+
emptyText: ce,
|
14821
14845
|
expandedRowRender: (Q = r == null ? void 0 : r.KgTable) == null ? void 0 : Q.expandedRowRender,
|
14822
|
-
summary:
|
14846
|
+
summary: pe
|
14823
14847
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
14824
14848
|
class: F.value
|
14825
14849
|
}, [createVNode("div", {
|
@@ -14876,8 +14900,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
14876
14900
|
attrs: t
|
14877
14901
|
}) {
|
14878
14902
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
14879
|
-
var u, d, g, b,
|
14880
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((_ = (
|
14903
|
+
var u, d, g, b, y, _, p, m;
|
14904
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((g = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((_ = (y = n.selectedRows.value) == null ? void 0 : y.length) != null ? _ : 0) > 1 || ((p = s.value) == null ? void 0 : p.permission_type) === 2 && !r.p((m = s.value) == null ? void 0 : m.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14881
14905
|
});
|
14882
14906
|
async function o() {
|
14883
14907
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -15084,7 +15108,7 @@ const KgButtonCreate = defineComponent({
|
|
15084
15108
|
function b() {
|
15085
15109
|
i.store.emit(s.formID, "submitSave", {});
|
15086
15110
|
}
|
15087
|
-
function
|
15111
|
+
function y() {
|
15088
15112
|
i.store.emit(s.formID, "submitCancel", {});
|
15089
15113
|
}
|
15090
15114
|
function _() {
|
@@ -15112,7 +15136,7 @@ const KgButtonCreate = defineComponent({
|
|
15112
15136
|
default: () => [_(), p()]
|
15113
15137
|
});
|
15114
15138
|
}
|
15115
|
-
function
|
15139
|
+
function E() {
|
15116
15140
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
15117
15141
|
type: "primary",
|
15118
15142
|
onClick: b,
|
@@ -15123,20 +15147,20 @@ const KgButtonCreate = defineComponent({
|
|
15123
15147
|
type: "primary",
|
15124
15148
|
ghost: !d.value,
|
15125
15149
|
disabled: d.value,
|
15126
|
-
onClick:
|
15150
|
+
onClick: y
|
15127
15151
|
}, {
|
15128
15152
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
15129
15153
|
})]);
|
15130
15154
|
}
|
15131
|
-
return () => createVNode(Fragment, null, [m(),
|
15155
|
+
return () => createVNode(Fragment, null, [m(), E()]);
|
15132
15156
|
}
|
15133
15157
|
}), KgButtonDelete = defineComponent({
|
15134
15158
|
name: "KgButtonDelete",
|
15135
15159
|
props: getProps$f(),
|
15136
15160
|
setup(e) {
|
15137
15161
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
15138
|
-
var c, u, d, g, b,
|
15139
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((
|
15162
|
+
var c, u, d, g, b, y, _, p;
|
15163
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((g = n.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((y = (b = a.selectedRows.value) == null ? void 0 : b.length) != null ? y : 0) > 1 || ((_ = n.value) == null ? void 0 : _.permission_type) === 2 && !t.p((p = n.value) == null ? void 0 : p.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15140
15164
|
});
|
15141
15165
|
async function i() {
|
15142
15166
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -15173,31 +15197,31 @@ const KgButtonCreate = defineComponent({
|
|
15173
15197
|
props: getProps$f(),
|
15174
15198
|
setup(e) {
|
15175
15199
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
15176
|
-
var
|
15177
|
-
return s.value ? (_ = (
|
15200
|
+
var y, _;
|
15201
|
+
return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
|
15178
15202
|
}), o = computed(() => {
|
15179
|
-
var
|
15180
|
-
return (_ = (
|
15203
|
+
var y, _;
|
15204
|
+
return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
|
15181
15205
|
}), l = computed(() => {
|
15182
|
-
var _, p, m,
|
15183
|
-
let
|
15206
|
+
var _, p, m, E, T, k;
|
15207
|
+
let y = {
|
15184
15208
|
pageNo: 1,
|
15185
15209
|
pageSize: 9999999,
|
15186
15210
|
...(_ = a.model.value) != null ? _ : {}
|
15187
15211
|
};
|
15188
|
-
return s.value && (
|
15189
|
-
...
|
15212
|
+
return s.value && (y = {
|
15213
|
+
...y,
|
15190
15214
|
...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
|
15191
|
-
}), (
|
15192
|
-
...
|
15215
|
+
}), (E = r.varGridConfig.value) != null && E.cmd_prm && (y = {
|
15216
|
+
...y,
|
15193
15217
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
15194
|
-
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 &&
|
15218
|
+
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
|
15195
15219
|
}), c = computed(() => {
|
15196
|
-
var
|
15197
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
15220
|
+
var y, _, p, m, E, T, k, A;
|
15221
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15198
15222
|
}), u = ref(!1);
|
15199
15223
|
async function d() {
|
15200
|
-
var
|
15224
|
+
var y, _;
|
15201
15225
|
if (!(e.onKgClick && await e.onKgClick())) {
|
15202
15226
|
if (!i.value) {
|
15203
15227
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -15215,7 +15239,7 @@ const KgButtonCreate = defineComponent({
|
|
15215
15239
|
}, {
|
15216
15240
|
joinParamsToUrl: !0,
|
15217
15241
|
isTransformResponse: !1
|
15218
|
-
}), m = (
|
15242
|
+
}), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
15219
15243
|
KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
15220
15244
|
} catch (p) {
|
15221
15245
|
throw p;
|
@@ -15235,14 +15259,14 @@ const KgButtonCreate = defineComponent({
|
|
15235
15259
|
return e.kgText ? e.kgText : t.t("kg.export");
|
15236
15260
|
}
|
15237
15261
|
return () => {
|
15238
|
-
var
|
15262
|
+
var y, _, p, m;
|
15239
15263
|
return createVNode(Button, {
|
15240
15264
|
type: "primary",
|
15241
15265
|
disabled: c.value,
|
15242
15266
|
ghost: !e.kgPrimary && !c.value,
|
15243
15267
|
loading: u.value,
|
15244
15268
|
onClick: d,
|
15245
|
-
"kg-id": (
|
15269
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
15246
15270
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
15247
15271
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
15248
15272
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
@@ -15266,17 +15290,17 @@ const KgButtonCreate = defineComponent({
|
|
15266
15290
|
var p, m;
|
15267
15291
|
return (m = (p = o.value) == null ? void 0 : p.cmd_method) != null ? m : "POST";
|
15268
15292
|
}), u = computed(() => {
|
15269
|
-
var m,
|
15293
|
+
var m, E, T;
|
15270
15294
|
let p = {
|
15271
15295
|
...(m = s.model.value) != null ? m : {}
|
15272
15296
|
};
|
15273
15297
|
return o.value && (p = {
|
15274
15298
|
...p,
|
15275
|
-
...KgVarUtil.parseCommandParameter((T = (
|
15299
|
+
...KgVarUtil.parseCommandParameter((T = (E = o.value) == null ? void 0 : E.cmd_prm) != null ? T : "")
|
15276
15300
|
}), p;
|
15277
15301
|
}), d = computed(() => {
|
15278
|
-
var p, m,
|
15279
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((
|
15302
|
+
var p, m, E, T, k, A, C, M;
|
15303
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((p = o.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (m = i.selectedRows.value) == null ? void 0 : m.length) != null ? E : 0) === 0 || ((T = o.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((C = o.value) == null ? void 0 : C.permission_type) === 2 && !a.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15280
15304
|
}), g = ref(!1);
|
15281
15305
|
async function b(p) {
|
15282
15306
|
if (!l.value)
|
@@ -15287,7 +15311,7 @@ const KgButtonCreate = defineComponent({
|
|
15287
15311
|
try {
|
15288
15312
|
const m = new FormData();
|
15289
15313
|
m.append("file", p);
|
15290
|
-
const
|
15314
|
+
const E = await httpClient().axiosInstance.request({
|
15291
15315
|
method: c.value,
|
15292
15316
|
baseURL: window._CONFIG.domianURL,
|
15293
15317
|
url: l.value,
|
@@ -15308,7 +15332,7 @@ const KgButtonCreate = defineComponent({
|
|
15308
15332
|
}
|
15309
15333
|
return !1;
|
15310
15334
|
}
|
15311
|
-
function
|
15335
|
+
function y() {
|
15312
15336
|
return g.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
15313
15337
|
class: "anticon"
|
15314
15338
|
}, [createVNode(Icon, {
|
@@ -15325,7 +15349,7 @@ const KgButtonCreate = defineComponent({
|
|
15325
15349
|
disabled: g.value
|
15326
15350
|
}, {
|
15327
15351
|
default: () => {
|
15328
|
-
var p, m,
|
15352
|
+
var p, m, E, T;
|
15329
15353
|
return [createVNode(Button, {
|
15330
15354
|
class: r.class,
|
15331
15355
|
type: "primary",
|
@@ -15334,10 +15358,10 @@ const KgButtonCreate = defineComponent({
|
|
15334
15358
|
loading: g.value,
|
15335
15359
|
"kg-id": (p = o.value) == null ? void 0 : p.id,
|
15336
15360
|
"kg-frm_id": (m = o.value) == null ? void 0 : m.frm_id,
|
15337
|
-
"kg-var_nam": (
|
15361
|
+
"kg-var_nam": (E = o.value) == null ? void 0 : E.var_nam,
|
15338
15362
|
"kg-cmd": (T = o.value) == null ? void 0 : T.cmd
|
15339
15363
|
}, {
|
15340
|
-
default: () => [
|
15364
|
+
default: () => [y(), _()]
|
15341
15365
|
})];
|
15342
15366
|
}
|
15343
15367
|
});
|
@@ -15347,29 +15371,29 @@ const KgButtonCreate = defineComponent({
|
|
15347
15371
|
props: getProps$f(),
|
15348
15372
|
setup(e) {
|
15349
15373
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), s = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
15350
|
-
var
|
15351
|
-
return s.value ? (_ = (
|
15374
|
+
var y, _;
|
15375
|
+
return s.value ? (_ = (y = s.value) == null ? void 0 : y.cmd) != null ? _ : "" : null;
|
15352
15376
|
}), o = computed(() => {
|
15353
|
-
var
|
15354
|
-
return (_ = (
|
15377
|
+
var y, _;
|
15378
|
+
return (_ = (y = s.value) == null ? void 0 : y.cmd_method) != null ? _ : "GET";
|
15355
15379
|
}), l = computed(() => {
|
15356
|
-
var _, p, m,
|
15357
|
-
let
|
15380
|
+
var _, p, m, E, T;
|
15381
|
+
let y = {
|
15358
15382
|
...(_ = a.model.value) != null ? _ : {}
|
15359
15383
|
};
|
15360
|
-
return s.value && (
|
15361
|
-
...
|
15384
|
+
return s.value && (y = {
|
15385
|
+
...y,
|
15362
15386
|
...KgVarUtil.parseCommandParameter((m = (p = s.value) == null ? void 0 : p.cmd_prm) != null ? m : "")
|
15363
|
-
}), (
|
15364
|
-
...
|
15387
|
+
}), (E = r.varGridConfig.value) != null && E.cmd_prm && (y = {
|
15388
|
+
...y,
|
15365
15389
|
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
15366
|
-
}),
|
15390
|
+
}), y;
|
15367
15391
|
}), c = computed(() => {
|
15368
|
-
var
|
15369
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
15392
|
+
var y, _, p, m, E, T, k, A;
|
15393
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((p = (_ = n.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) === 0 || ((m = s.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((T = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? T : 0) > 1 || ((k = s.value) == null ? void 0 : k.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15370
15394
|
}), u = ref(!1);
|
15371
15395
|
async function d() {
|
15372
|
-
var
|
15396
|
+
var y, _;
|
15373
15397
|
if (!i.value) {
|
15374
15398
|
KgLogger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
15375
15399
|
VarButton: s.value
|
@@ -15386,7 +15410,7 @@ const KgButtonCreate = defineComponent({
|
|
15386
15410
|
}, {
|
15387
15411
|
joinParamsToUrl: !0,
|
15388
15412
|
isTransformResponse: !1
|
15389
|
-
}), m = (
|
15413
|
+
}), m = (y = s.value) == null ? void 0 : y.export_excel_filename;
|
15390
15414
|
KgUtil.downloadFile(p, `${m ? r.t(m).value : t.t("kg.importTemplate")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
15391
15415
|
} catch (p) {
|
15392
15416
|
throw p;
|
@@ -15405,14 +15429,14 @@ const KgButtonCreate = defineComponent({
|
|
15405
15429
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
15406
15430
|
}
|
15407
15431
|
return () => {
|
15408
|
-
var
|
15432
|
+
var y, _, p, m;
|
15409
15433
|
return createVNode(Button, {
|
15410
15434
|
type: "primary",
|
15411
15435
|
disabled: c.value,
|
15412
15436
|
ghost: !e.kgPrimary && !c.value,
|
15413
15437
|
loading: u.value,
|
15414
15438
|
onClick: d,
|
15415
|
-
"kg-id": (
|
15439
|
+
"kg-id": (y = s.value) == null ? void 0 : y.id,
|
15416
15440
|
"kg-frm_id": (_ = s.value) == null ? void 0 : _.frm_id,
|
15417
15441
|
"kg-var_nam": (p = s.value) == null ? void 0 : p.var_nam,
|
15418
15442
|
"kg-cmd": (m = s.value) == null ? void 0 : m.cmd
|
@@ -15426,14 +15450,14 @@ const KgButtonCreate = defineComponent({
|
|
15426
15450
|
props: getProps$f(),
|
15427
15451
|
setup(e) {
|
15428
15452
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), i = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
15429
|
-
var d, g, b,
|
15430
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((b = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0 || ((
|
15453
|
+
var d, g, b, y, _, p, m, E;
|
15454
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((b = (g = s.selectedRows.value) == null ? void 0 : g.length) != null ? b : 0) === 0 || ((y = i.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((p = (_ = s.selectedRows.value) == null ? void 0 : _.length) != null ? p : 0) > 1 || ((m = i.value) == null ? void 0 : m.permission_type) === 2 && !t.p((E = i.value) == null ? void 0 : E.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
15431
15455
|
});
|
15432
15456
|
async function l() {
|
15433
|
-
var
|
15457
|
+
var y, _, p;
|
15434
15458
|
if (e.onKgClick && await e.onKgClick())
|
15435
15459
|
return;
|
15436
|
-
const d = (
|
15460
|
+
const d = (y = e.kgButton) == null ? void 0 : y.cmd;
|
15437
15461
|
if (!d) {
|
15438
15462
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
15439
15463
|
VarButton: e.kgButton
|
@@ -15442,12 +15466,12 @@ const KgButtonCreate = defineComponent({
|
|
15442
15466
|
}
|
15443
15467
|
let g = null;
|
15444
15468
|
const b = async () => {
|
15445
|
-
var
|
15469
|
+
var E, T, k, A, C, M;
|
15446
15470
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
15447
15471
|
const m = s.selectedRows.value;
|
15448
15472
|
try {
|
15449
15473
|
const w = await httpClient().request({
|
15450
|
-
method: (T = (
|
15474
|
+
method: (T = (E = e.kgButton) == null ? void 0 : E.cmd_method) != null ? T : "POST",
|
15451
15475
|
url: d,
|
15452
15476
|
params: KgVarUtil.parseCommandParameter((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
|
15453
15477
|
data: m != null ? m : []
|
@@ -15456,7 +15480,7 @@ const KgButtonCreate = defineComponent({
|
|
15456
15480
|
if (((M = e.kgButton) == null ? void 0 : M.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
15457
15481
|
datas: R
|
15458
15482
|
}) => {
|
15459
|
-
const
|
15483
|
+
const N = R.value, O = intersectionWith$1(N, m != null ? m : [], (F, $) => (F == null ? void 0 : F[s.id.value]) === ($ == null ? void 0 : $[s.id.value]));
|
15460
15484
|
return O.length > 0 && s.store.setSelectedRows(r.formID, O), !1;
|
15461
15485
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15462
15486
|
button: e.kgButton,
|
@@ -15497,7 +15521,7 @@ const KgButtonCreate = defineComponent({
|
|
15497
15521
|
return e.kgText ? e.kgText : t.t("kg.button");
|
15498
15522
|
}
|
15499
15523
|
return () => {
|
15500
|
-
var d, g, b,
|
15524
|
+
var d, g, b, y;
|
15501
15525
|
return createVNode(Button, {
|
15502
15526
|
type: "primary",
|
15503
15527
|
disabled: o.value,
|
@@ -15507,7 +15531,7 @@ const KgButtonCreate = defineComponent({
|
|
15507
15531
|
"kg-id": (d = i.value) == null ? void 0 : d.id,
|
15508
15532
|
"kg-frm_id": (g = i.value) == null ? void 0 : g.frm_id,
|
15509
15533
|
"kg-var_nam": (b = i.value) == null ? void 0 : b.var_nam,
|
15510
|
-
"kg-cmd": (
|
15534
|
+
"kg-cmd": (y = i.value) == null ? void 0 : y.cmd
|
15511
15535
|
}, {
|
15512
15536
|
default: () => [c(), u()]
|
15513
15537
|
});
|
@@ -15584,7 +15608,7 @@ const KgButtonCreate = defineComponent({
|
|
15584
15608
|
function b() {
|
15585
15609
|
o.store.emit(s.formID, "submitSave", {});
|
15586
15610
|
}
|
15587
|
-
function
|
15611
|
+
function y() {
|
15588
15612
|
o.store.emit(s.formID, "submitCancel", {});
|
15589
15613
|
}
|
15590
15614
|
function _() {
|
@@ -15613,7 +15637,7 @@ const KgButtonCreate = defineComponent({
|
|
15613
15637
|
default: () => [_(), p()]
|
15614
15638
|
});
|
15615
15639
|
}
|
15616
|
-
function
|
15640
|
+
function E() {
|
15617
15641
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
15618
15642
|
type: "primary",
|
15619
15643
|
onClick: b,
|
@@ -15624,12 +15648,12 @@ const KgButtonCreate = defineComponent({
|
|
15624
15648
|
type: "primary",
|
15625
15649
|
ghost: !d.value,
|
15626
15650
|
disabled: d.value,
|
15627
|
-
onClick:
|
15651
|
+
onClick: y
|
15628
15652
|
}, {
|
15629
15653
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
15630
15654
|
})]);
|
15631
15655
|
}
|
15632
|
-
return () => createVNode(Fragment, null, [m(),
|
15656
|
+
return () => createVNode(Fragment, null, [m(), E()]);
|
15633
15657
|
}
|
15634
15658
|
}), KgButton_Item = "";
|
15635
15659
|
function _isSlot$4(e) {
|
@@ -15703,8 +15727,8 @@ const getProps$e = () => ({
|
|
15703
15727
|
}
|
15704
15728
|
function l(_) {
|
15705
15729
|
return computed(() => {
|
15706
|
-
var m,
|
15707
|
-
const p = ((
|
15730
|
+
var m, E;
|
15731
|
+
const p = ((E = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : E.kgDisabled) || e.kgDisabled;
|
15708
15732
|
if (p) {
|
15709
15733
|
const T = p(_);
|
15710
15734
|
if (!isNil(T))
|
@@ -15732,7 +15756,7 @@ const getProps$e = () => ({
|
|
15732
15756
|
return null;
|
15733
15757
|
switch ((p = n.varGridConfig.value) == null ? void 0 : p.button_display_type) {
|
15734
15758
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
15735
|
-
return
|
15759
|
+
return y();
|
15736
15760
|
default:
|
15737
15761
|
return b();
|
15738
15762
|
}
|
@@ -15754,7 +15778,7 @@ const getProps$e = () => ({
|
|
15754
15778
|
var _;
|
15755
15779
|
return (_ = n.varButtons.value) == null ? void 0 : _.filter((p) => p.typ !== KG_BUTTON_TYPE.SEARCH).map((p) => g(p));
|
15756
15780
|
}
|
15757
|
-
function
|
15781
|
+
function y() {
|
15758
15782
|
return createVNode(Dropdown, {
|
15759
15783
|
trigger: "click",
|
15760
15784
|
overlayClassName: "kg-button-dropdown"
|
@@ -15768,9 +15792,9 @@ const getProps$e = () => ({
|
|
15768
15792
|
default: () => {
|
15769
15793
|
var _, p;
|
15770
15794
|
return [(p = (_ = n.varButtons.value) == null ? void 0 : _.filter((m) => m.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : p.filter((m) => !(m.permission_type !== 2 && !a.p(m.permission_code))).map((m) => {
|
15771
|
-
let
|
15772
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
15773
|
-
default: () => [
|
15795
|
+
let E;
|
15796
|
+
return createVNode(Menu.Item, null, _isSlot$3(E = g(m)) ? E : {
|
15797
|
+
default: () => [E]
|
15774
15798
|
});
|
15775
15799
|
})];
|
15776
15800
|
}
|
@@ -16264,11 +16288,11 @@ function _useDragRow(e, t, r) {
|
|
16264
16288
|
g.setAttribute("id", "__kg_search_config_fields_drag_image__");
|
16265
16289
|
const {
|
16266
16290
|
width: b,
|
16267
|
-
height:
|
16291
|
+
height: y
|
16268
16292
|
} = u.parentElement.getBoundingClientRect();
|
16269
|
-
b &&
|
16293
|
+
b && y && (g.style.width = `${b + 2}px`, g.style.height = `${y + 2}px`), (p = d.dataTransfer) == null || p.setDragImage(g, -10, (y + 2) / 2);
|
16270
16294
|
const _ = await toCanvas(u.parentElement);
|
16271
|
-
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (
|
16295
|
+
g.appendChild(_), document.body.appendChild(g), (m = d.dataTransfer) == null || m.setDragImage(g, -10, (y + 2) / 2);
|
16272
16296
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
16273
16297
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
16274
16298
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -16292,8 +16316,8 @@ function _useDragRow(e, t, r) {
|
|
16292
16316
|
d.preventDefault(), KgUtil.showLoading();
|
16293
16317
|
const g = document.querySelector("#__kg_search_config_fields_drag_image__");
|
16294
16318
|
g && document.body.removeChild(g), u.classList.remove("dragover", "dragover-right", "dragover-left");
|
16295
|
-
const b = s == null ? void 0 : s.getAttribute("kg-var_nam"),
|
16296
|
-
b !==
|
16319
|
+
const b = s == null ? void 0 : s.getAttribute("kg-var_nam"), y = u.getAttribute("kg-var_nam");
|
16320
|
+
b !== y && l(b, y);
|
16297
16321
|
}, u.addEventListener("drop", u.__kg__drop__);
|
16298
16322
|
}
|
16299
16323
|
function o() {
|
@@ -16315,9 +16339,9 @@ function _useDragRow(e, t, r) {
|
|
16315
16339
|
const g = t.value.findIndex((p) => p.var_nam === u), b = t.value.findIndex((p) => p.var_nam === d);
|
16316
16340
|
if (g === -1 || b === -1)
|
16317
16341
|
return;
|
16318
|
-
const
|
16342
|
+
const y = t.value.find((p) => p.var_nam === u), _ = [];
|
16319
16343
|
t.value.forEach((p, m) => {
|
16320
|
-
g > b ? m < b ? _.push(p) : m === b ? (_.push(
|
16344
|
+
g > b ? m < b ? _.push(p) : m === b ? (_.push(y), _.push(p)) : m > b && m !== g && _.push(p) : g < b && (m < g ? _.push(p) : m === g || (m === b ? (_.push(p), _.push(y)) : _.push(p)));
|
16321
16345
|
}), _.forEach((p, m) => {
|
16322
16346
|
p.srtseq = m + 1;
|
16323
16347
|
}), t.value = _, nextTick().finally(() => {
|
@@ -16351,7 +16375,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16351
16375
|
isCreating: _,
|
16352
16376
|
isUpdating: p,
|
16353
16377
|
isCopying: m,
|
16354
|
-
row:
|
16378
|
+
row: E,
|
16355
16379
|
model: T
|
16356
16380
|
}) => {
|
16357
16381
|
var A, C, M, w, I;
|
@@ -16363,12 +16387,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16363
16387
|
}
|
16364
16388
|
case p:
|
16365
16389
|
case m: {
|
16366
|
-
if (
|
16390
|
+
if (E != null && E.id)
|
16367
16391
|
try {
|
16368
16392
|
o.store.setIsLoading(a.formID, !0);
|
16369
16393
|
const R = await QueryByID({
|
16370
16394
|
params: {
|
16371
|
-
id:
|
16395
|
+
id: E.id
|
16372
16396
|
}
|
16373
16397
|
});
|
16374
16398
|
l.value = l.value.map((O) => {
|
@@ -16380,8 +16404,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16380
16404
|
id: O.id
|
16381
16405
|
} : O;
|
16382
16406
|
});
|
16383
|
-
const
|
16384
|
-
c.value = l.value.filter((O) =>
|
16407
|
+
const N = (C = (A = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : A.map((O) => O.var_nam)) != null ? C : [];
|
16408
|
+
c.value = l.value.filter((O) => N.includes(O.var_nam)).map((O) => O.id);
|
16385
16409
|
} catch (R) {
|
16386
16410
|
throw R;
|
16387
16411
|
} finally {
|
@@ -16402,9 +16426,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16402
16426
|
}), o.onBeforeOk(async ({
|
16403
16427
|
model: _
|
16404
16428
|
}) => {
|
16405
|
-
var m,
|
16429
|
+
var m, E;
|
16406
16430
|
const p = _.value;
|
16407
|
-
return p.frm_id = r.formID, p.varProfileDetails = (
|
16431
|
+
return p.frm_id = r.formID, p.varProfileDetails = (E = (m = l.value) == null ? void 0 : m.filter((T) => c.value.includes(T.id))) != null ? E : [], !1;
|
16408
16432
|
}), o.onOk(async () => (r.store.retrieve(r.formID), !1)), i.onUpdateBeforeClick(({
|
16409
16433
|
row: _
|
16410
16434
|
}) => (_ == null ? void 0 : _.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((p) => {
|
@@ -16460,14 +16484,14 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16460
16484
|
direction: _,
|
16461
16485
|
filteredItems: p,
|
16462
16486
|
selectedKeys: m,
|
16463
|
-
disabled:
|
16487
|
+
disabled: E,
|
16464
16488
|
onItemSelectAll: T,
|
16465
16489
|
onItemSelect: k
|
16466
16490
|
}) => {
|
16467
16491
|
var C, M;
|
16468
16492
|
const A = p.sort((w, I) => {
|
16469
|
-
var R,
|
16470
|
-
return ((R = w.srtseq) != null ? R : 0) - ((
|
16493
|
+
var R, N;
|
16494
|
+
return ((R = w.srtseq) != null ? R : 0) - ((N = I.srtseq) != null ? N : 0);
|
16471
16495
|
});
|
16472
16496
|
return u.value = A, createVNode(Table, {
|
16473
16497
|
pagination: !1,
|
@@ -16482,12 +16506,12 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16482
16506
|
dataSource: A,
|
16483
16507
|
customRow: (w) => {
|
16484
16508
|
let I = {
|
16485
|
-
onClick: (R) =>
|
16509
|
+
onClick: (R) => y(R, w, _, m)
|
16486
16510
|
};
|
16487
16511
|
return _ === "right" && (I["kg-host-frm_id"] = r.formID, I["kg-var_nam"] = w.var_nam), I;
|
16488
16512
|
},
|
16489
16513
|
rowSelection: b({
|
16490
|
-
disabled:
|
16514
|
+
disabled: E,
|
16491
16515
|
selectedKeys: m,
|
16492
16516
|
onItemSelectAll: T,
|
16493
16517
|
onItemSelect: k
|
@@ -16501,7 +16525,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16501
16525
|
disabled: _,
|
16502
16526
|
selectedKeys: p,
|
16503
16527
|
onItemSelectAll: m,
|
16504
|
-
onItemSelect:
|
16528
|
+
onItemSelect: E
|
16505
16529
|
}) => ({
|
16506
16530
|
getCheckboxProps: (T) => ({
|
16507
16531
|
disabled: _ || T.disabled
|
@@ -16515,16 +16539,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
16515
16539
|
onSelect({
|
16516
16540
|
key: T
|
16517
16541
|
}, k) {
|
16518
|
-
|
16542
|
+
E(T, k);
|
16519
16543
|
},
|
16520
16544
|
selectedRowKeys: p,
|
16521
16545
|
columnWidth: 32
|
16522
16546
|
});
|
16523
|
-
function
|
16547
|
+
function y(_, p, m, E) {
|
16524
16548
|
if (!KgDomUtil.isNotClickable(_.target, ["ant-input"]))
|
16525
|
-
switch (
|
16549
|
+
switch (E.length = 0, _.detail) {
|
16526
16550
|
case 1:
|
16527
|
-
|
16551
|
+
E[0] = p.id;
|
16528
16552
|
break;
|
16529
16553
|
case 2:
|
16530
16554
|
switch (m) {
|
@@ -16633,11 +16657,11 @@ function _useLayoutHeaderResizeObserver() {
|
|
16633
16657
|
}
|
16634
16658
|
function _useCommon() {
|
16635
16659
|
const e = inject(DI_KG_VAR__KG_PROPS, null), t = useKgVar(), r = computed(() => t.store.getVarProfileConfig(t.formID)), a = computed(() => t.store.getFormLevel(t.formID)), n = ref(!0), s = computed(() => {
|
16636
|
-
var g, b,
|
16660
|
+
var g, b, y;
|
16637
16661
|
if (!n.value || a.value > 0)
|
16638
16662
|
return !1;
|
16639
16663
|
const d = (b = (g = e == null ? void 0 : e.value) == null ? void 0 : g.KgSearch) == null ? void 0 : b.kgHeaderTeleport;
|
16640
|
-
return d !== void 0 ? d : ((
|
16664
|
+
return d !== void 0 ? d : ((y = r.value) == null ? void 0 : y.header_teleport_flg) !== 0;
|
16641
16665
|
}), i = computed(() => {
|
16642
16666
|
var d;
|
16643
16667
|
return ((d = r.value) == null ? void 0 : d.vis_flg) === 1;
|
@@ -16668,16 +16692,16 @@ function _useFormModel(e, t, r) {
|
|
16668
16692
|
const u = ref({}), d = ref({});
|
16669
16693
|
async function g() {
|
16670
16694
|
var b;
|
16671
|
-
((b = n.currentVarProfileDetails.value) != null ? b : []).forEach((
|
16672
|
-
var p, m,
|
16673
|
-
const _ = (p =
|
16674
|
-
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m =
|
16675
|
-
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (
|
16676
|
-
|
16695
|
+
((b = n.currentVarProfileDetails.value) != null ? b : []).forEach((y) => {
|
16696
|
+
var p, m, E;
|
16697
|
+
const _ = (p = y.var_nam) != null ? p : "";
|
16698
|
+
u.value[_] = KgVarUtil.transformFormItemValue(n.formID, _, a, (m = y.dft_val) != null ? m : void 0, "R"), d.value[_] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, _, (E = y.dft_dyn_op) != null ? E : void 0);
|
16699
|
+
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (y) => {
|
16700
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
16677
16701
|
}, {
|
16678
16702
|
immediate: !0
|
16679
|
-
})) : (l == null || l(), l = watch(e, async (
|
16680
|
-
|
16703
|
+
})) : (l == null || l(), l = watch(e, async (y) => {
|
16704
|
+
y && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
16681
16705
|
}, {
|
16682
16706
|
immediate: !0
|
16683
16707
|
}));
|
@@ -16714,28 +16738,28 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16714
16738
|
defaultHeight: u,
|
16715
16739
|
maxHeight: d,
|
16716
16740
|
minHeight: g
|
16717
|
-
} = _useCommon(), b = ref(null),
|
16741
|
+
} = _useCommon(), b = ref(null), y = ref(null), _ = ref({
|
16718
16742
|
kgHeight: g.value
|
16719
16743
|
});
|
16720
16744
|
_useLayoutHeaderResizeObserver();
|
16721
|
-
const p = _useFormModel(b,
|
16722
|
-
var
|
16723
|
-
if (!isNil((x = (
|
16724
|
-
return (q = (
|
16745
|
+
const p = _useFormModel(b, y, _), m = computed(() => {
|
16746
|
+
var K, x, W, q;
|
16747
|
+
if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
|
16748
|
+
return (q = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : q.kgDisabled;
|
16725
16749
|
if (!isNil(e.kgDisabled))
|
16726
16750
|
return e.kgDisabled;
|
16727
|
-
}),
|
16728
|
-
var
|
16729
|
-
return !!(m.value || i.isRetrieving.value || ((
|
16751
|
+
}), E = computed(() => {
|
16752
|
+
var K, x;
|
16753
|
+
return !!(m.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
16730
16754
|
}), T = computed(() => !!(m.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(m.value || i.isRetrieving.value)), A = ref({
|
16731
16755
|
visible: !1
|
16732
16756
|
}), C = computed(() => _.value.kgHeight === g.value), M = computed(() => {
|
16733
|
-
var
|
16734
|
-
if (n.t((
|
16735
|
-
return n.t((
|
16757
|
+
var K, x, W;
|
16758
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
16759
|
+
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
16736
16760
|
}), w = computed(() => {
|
16737
|
-
var
|
16738
|
-
switch ((
|
16761
|
+
var K;
|
16762
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
16739
16763
|
case 1:
|
16740
16764
|
return !0;
|
16741
16765
|
case 0:
|
@@ -16743,17 +16767,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16743
16767
|
default:
|
16744
16768
|
return !0;
|
16745
16769
|
}
|
16746
|
-
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), R = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value),
|
16747
|
-
let
|
16748
|
-
return o.value && (
|
16770
|
+
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), R = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), N = computed(() => {
|
16771
|
+
let K = "kg-search";
|
16772
|
+
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
16749
16773
|
});
|
16750
|
-
async function O(
|
16751
|
-
var x,
|
16774
|
+
async function O(K = {}) {
|
16775
|
+
var x, W;
|
16752
16776
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6267\u884C\u5F00\u59CB.`), i.isRetrieving.value) {
|
16753
16777
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
16754
16778
|
return;
|
16755
16779
|
}
|
16756
|
-
if (((x = n.varButtonSearch.value) == null ? void 0 : x.permission_type) === 2 && !a.p((
|
16780
|
+
if (((x = n.varButtonSearch.value) == null ? void 0 : x.permission_type) === 2 && !a.p((W = n.varButtonSearch.value) == null ? void 0 : W.permission_code)) {
|
16757
16781
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6CA1\u6709\u6743\u9650.`);
|
16758
16782
|
return;
|
16759
16783
|
}
|
@@ -16761,21 +16785,21 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16761
16785
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u521B\u5EFA/\u66F4\u65B0/\u590D\u5236/\u5220\u9664.`);
|
16762
16786
|
return;
|
16763
16787
|
}
|
16764
|
-
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`),
|
16765
|
-
await s.store.emit(n.formID, "search",
|
16788
|
+
o.value ? (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u663E\u793A\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), y.value && y.value.validate().then(async () => {
|
16789
|
+
await s.store.emit(n.formID, "search", K);
|
16766
16790
|
}).catch((q) => {
|
16767
16791
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
16768
16792
|
e: q
|
16769
16793
|
});
|
16770
|
-
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search",
|
16794
|
+
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", K));
|
16771
16795
|
}
|
16772
16796
|
s.store.setSearchFn(n.formID, O);
|
16773
16797
|
async function F() {
|
16774
|
-
p.initFormModel(), o.value ?
|
16798
|
+
p.initFormModel(), o.value ? y.value && y.value.validate().then(async () => {
|
16775
16799
|
await s.store.emit(n.formID, "reset", {});
|
16776
|
-
}).catch((
|
16800
|
+
}).catch((K) => {
|
16777
16801
|
KgLogger.debug(`${n.formID} | KgSearch | onReset() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
16778
|
-
e:
|
16802
|
+
e: K
|
16779
16803
|
});
|
16780
16804
|
}) : await s.store.emit(n.formID, "reset", {});
|
16781
16805
|
}
|
@@ -16786,11 +16810,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16786
16810
|
}), Promise.resolve(!0);
|
16787
16811
|
}
|
16788
16812
|
function D() {
|
16789
|
-
var
|
16813
|
+
var K;
|
16790
16814
|
return createVNode("div", {
|
16791
16815
|
class: "title",
|
16792
|
-
onClick:
|
16793
|
-
}, [((
|
16816
|
+
onClick: Y
|
16817
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
16794
16818
|
class: "kg-search-title-left",
|
16795
16819
|
onClick: (x) => {
|
16796
16820
|
x.stopPropagation(), x.preventDefault();
|
@@ -16798,16 +16822,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16798
16822
|
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
16799
16823
|
}
|
16800
16824
|
function V() {
|
16801
|
-
var
|
16802
|
-
return ((
|
16825
|
+
var K, x, W, q;
|
16826
|
+
return ((W = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
16803
16827
|
value: (q = n.currentVarProfileMasterID.value) != null ? q : void 0,
|
16804
|
-
"onUpdate:value": (
|
16828
|
+
"onUpdate:value": (J) => n.store.setCurrentVarProfileMasterID(n.formID, J),
|
16805
16829
|
disabled: T.value,
|
16806
16830
|
class: "kg-search-profile-master-select"
|
16807
16831
|
}, {
|
16808
16832
|
default: () => {
|
16809
|
-
var
|
16810
|
-
return (
|
16833
|
+
var J, Z;
|
16834
|
+
return (Z = (J = n.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : Z.map((te) => createVNode(Select.Option, {
|
16811
16835
|
value: te.id
|
16812
16836
|
}, {
|
16813
16837
|
default: () => [n.t(te == null ? void 0 : te.prf_var_nam).value]
|
@@ -16826,26 +16850,26 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16826
16850
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
16827
16851
|
}), createVNode(KgSearchConfigModal, {
|
16828
16852
|
visible: A.value.visible,
|
16829
|
-
"onUpdate:visible": (
|
16853
|
+
"onUpdate:visible": (J) => A.value.visible = J,
|
16830
16854
|
hostFormID: n.formID
|
16831
16855
|
}, null)]);
|
16832
16856
|
}
|
16833
|
-
function
|
16834
|
-
var
|
16835
|
-
return createVNode(Fragment, null, [V(), !(((
|
16857
|
+
function P() {
|
16858
|
+
var K, x, W, q, J;
|
16859
|
+
return createVNode(Fragment, null, [V(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
16836
16860
|
type: "primary",
|
16837
|
-
ghost: !
|
16838
|
-
disabled:
|
16861
|
+
ghost: !E.value,
|
16862
|
+
disabled: E.value,
|
16839
16863
|
onClick: F,
|
16840
16864
|
class: "kg-search-btn-reset"
|
16841
16865
|
}, {
|
16842
16866
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
16843
16867
|
}), createVNode(KgButton.Item, {
|
16844
16868
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
16845
|
-
kgVarName: (
|
16869
|
+
kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
|
16846
16870
|
kgIcon: (q = n.varButtonSearch.value) == null ? void 0 : q.icon,
|
16847
16871
|
kgText: M.value,
|
16848
|
-
kgColor: (
|
16872
|
+
kgColor: (J = n.varButtonSearch.value) == null ? void 0 : J.color,
|
16849
16873
|
kgPrimary: w.value,
|
16850
16874
|
kgLoading: k.value,
|
16851
16875
|
onKgClick: $
|
@@ -16856,19 +16880,19 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16856
16880
|
spinning: R.value
|
16857
16881
|
}, {
|
16858
16882
|
default: () => {
|
16859
|
-
var
|
16883
|
+
var K;
|
16860
16884
|
return [createVNode(KgForm, {
|
16861
|
-
ref:
|
16862
|
-
model: (
|
16885
|
+
ref: y,
|
16886
|
+
model: (K = s.model.value) != null ? K : {}
|
16863
16887
|
}, {
|
16864
16888
|
default: () => [createVNode(Row, {
|
16865
16889
|
gutter: 6
|
16866
16890
|
}, {
|
16867
16891
|
default: () => {
|
16868
16892
|
var x;
|
16869
|
-
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((
|
16870
|
-
key:
|
16871
|
-
kgVarName:
|
16893
|
+
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((W) => createVNode(KgForm.Item, {
|
16894
|
+
key: W.var_nam,
|
16895
|
+
kgVarName: W.var_nam,
|
16872
16896
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
16873
16897
|
onKgSubmit: () => O({
|
16874
16898
|
isSearchFirstPage: !0
|
@@ -16880,17 +16904,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16880
16904
|
}
|
16881
16905
|
});
|
16882
16906
|
}
|
16883
|
-
function
|
16907
|
+
function Y() {
|
16884
16908
|
C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
|
16885
16909
|
}
|
16886
16910
|
return () => createVNode(KgResizable, {
|
16887
16911
|
ref: b,
|
16888
16912
|
kgHeight: _.value.kgHeight,
|
16889
|
-
"onUpdate:kgHeight": (
|
16913
|
+
"onUpdate:kgHeight": (K) => _.value.kgHeight = K,
|
16890
16914
|
kgMinHeight: g.value,
|
16891
16915
|
kgMaxHeight: d.value,
|
16892
16916
|
kgDisabled: !l.value,
|
16893
|
-
kgClass:
|
16917
|
+
kgClass: N.value,
|
16894
16918
|
"kg-frm_id": n.formID
|
16895
16919
|
}, {
|
16896
16920
|
default: () => [o.value && createVNode("div", {
|
@@ -16908,7 +16932,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
16908
16932
|
}, {
|
16909
16933
|
default: () => [D(), createVNode("div", {
|
16910
16934
|
class: "ant-collapse-extra"
|
16911
|
-
}, [
|
16935
|
+
}, [P()])]
|
16912
16936
|
})])]
|
16913
16937
|
}), createVNode("div", {
|
16914
16938
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -16979,8 +17003,8 @@ function useMagicKeys(e = {}) {
|
|
16979
17003
|
d(_, !1);
|
16980
17004
|
}
|
16981
17005
|
function b(_, p) {
|
16982
|
-
var m,
|
16983
|
-
const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (
|
17006
|
+
var m, E;
|
17007
|
+
const T = (m = _.key) == null ? void 0 : m.toLowerCase(), k = (E = _.code) == null ? void 0 : E.toLowerCase(), A = [k, T].filter(Boolean);
|
16984
17008
|
k && (p ? i.add(_.code) : i.delete(_.code));
|
16985
17009
|
for (const C of A)
|
16986
17010
|
u.add(C), d(C, p);
|
@@ -16989,21 +17013,21 @@ function useMagicKeys(e = {}) {
|
|
16989
17013
|
}), c.clear()) : typeof _.getModifierState == "function" && _.getModifierState("Meta") && p && [...i, ...A].forEach((C) => c.add(C));
|
16990
17014
|
}
|
16991
17015
|
r && (useEventListener(r, "keydown", (_) => (b(_, !0), s(_)), { passive: n }), useEventListener(r, "keyup", (_) => (b(_, !1), s(_)), { passive: n }), useEventListener("blur", g, { passive: !0 }), useEventListener("focus", g, { passive: !0 }));
|
16992
|
-
const
|
17016
|
+
const y = new Proxy(l, {
|
16993
17017
|
get(_, p, m) {
|
16994
17018
|
if (typeof p != "string")
|
16995
17019
|
return Reflect.get(_, p, m);
|
16996
17020
|
if (p = p.toLowerCase(), p in a && (p = a[p]), !(p in l))
|
16997
17021
|
if (/[+_-]/.test(p)) {
|
16998
17022
|
const T = p.split(/[+_-]/g).map((k) => k.trim());
|
16999
|
-
l[p] = computed(() => T.every((k) => unref(
|
17023
|
+
l[p] = computed(() => T.every((k) => unref(y[k])));
|
17000
17024
|
} else
|
17001
17025
|
l[p] = ref(!1);
|
17002
|
-
const
|
17003
|
-
return t ? unref(
|
17026
|
+
const E = Reflect.get(_, p, m);
|
17027
|
+
return t ? unref(E) : E;
|
17004
17028
|
}
|
17005
17029
|
});
|
17006
|
-
return
|
17030
|
+
return y;
|
17007
17031
|
}
|
17008
17032
|
var SwipeDirection;
|
17009
17033
|
(function(e) {
|
@@ -17388,19 +17412,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17388
17412
|
onSelect: (O) => M(O)
|
17389
17413
|
}), b = ref({
|
17390
17414
|
visible: !1
|
17391
|
-
}),
|
17415
|
+
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), _ = computed(() => {
|
17392
17416
|
var O;
|
17393
17417
|
return !!u.value || ((O = a.getSelectedVarCatalog) == null ? void 0 : O.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
17394
17418
|
}), p = computed(() => !!(!unref(u) || unref(n) || unref(s))), m = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
17395
17419
|
watch(() => a.getSelectedVar, (O) => {
|
17396
|
-
O ?
|
17420
|
+
O ? E() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
17397
17421
|
}, {
|
17398
17422
|
immediate: !0
|
17399
17423
|
}), watch(() => a.getSelectedVarCatalog, async (O) => {
|
17400
17424
|
var F, $;
|
17401
17425
|
l.value.var_text = (F = O == null ? void 0 : O.var_text) != null ? F : "", ($ = o.value) == null || $.clearValidate();
|
17402
17426
|
});
|
17403
|
-
async function
|
17427
|
+
async function E(O = !1) {
|
17404
17428
|
var F, $, D;
|
17405
17429
|
n.value = !0;
|
17406
17430
|
try {
|
@@ -17417,11 +17441,11 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17417
17441
|
}
|
17418
17442
|
});
|
17419
17443
|
if (u.value = null, c.value = V != null ? V : [], O) {
|
17420
|
-
const
|
17421
|
-
var
|
17422
|
-
return B.id === ((
|
17444
|
+
const P = c.value.find((B) => {
|
17445
|
+
var Y;
|
17446
|
+
return B.id === ((Y = a.getSelectedVarCatalog) == null ? void 0 : Y.id);
|
17423
17447
|
});
|
17424
|
-
a.setSelectedVarCatalog(
|
17448
|
+
a.setSelectedVarCatalog(P != null ? P : null), d.value = P != null && P.id ? [P.id] : [];
|
17425
17449
|
} else
|
17426
17450
|
a.setSelectedVarCatalog(($ = c.value[0]) != null ? $ : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
|
17427
17451
|
} catch (V) {
|
@@ -17444,19 +17468,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17444
17468
|
successMessageMode: "none"
|
17445
17469
|
}), message.success({
|
17446
17470
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17447
|
-
}), await
|
17471
|
+
}), await E()) : (await Edit({
|
17448
17472
|
data: D
|
17449
17473
|
}, {
|
17450
17474
|
successMessageMode: "none"
|
17451
17475
|
}), message.success({
|
17452
17476
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
17453
|
-
}), await
|
17477
|
+
}), await E(!0)) : (await Add({
|
17454
17478
|
data: D
|
17455
17479
|
}, {
|
17456
17480
|
successMessageMode: "none"
|
17457
17481
|
}), message.success({
|
17458
17482
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17459
|
-
}), await
|
17483
|
+
}), await E()), r.retrieve(e == null ? void 0 : e.value);
|
17460
17484
|
} catch (D) {
|
17461
17485
|
KgUtil.throwIfNotFormError(D);
|
17462
17486
|
} finally {
|
@@ -17497,7 +17521,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17497
17521
|
joinParamsToUrl: !0
|
17498
17522
|
}), message.success({
|
17499
17523
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
17500
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
17524
|
+
}), r.retrieve(e == null ? void 0 : e.value), await E();
|
17501
17525
|
}
|
17502
17526
|
});
|
17503
17527
|
}
|
@@ -17518,7 +17542,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17518
17542
|
class: "buttons"
|
17519
17543
|
}, [createVNode(Button, {
|
17520
17544
|
onClick: w,
|
17521
|
-
disabled:
|
17545
|
+
disabled: y.value,
|
17522
17546
|
type: "primary"
|
17523
17547
|
}, {
|
17524
17548
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
@@ -17572,7 +17596,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17572
17596
|
default: () => [F]
|
17573
17597
|
})])]);
|
17574
17598
|
}
|
17575
|
-
function
|
17599
|
+
function N(O) {
|
17576
17600
|
var $;
|
17577
17601
|
let F = "";
|
17578
17602
|
return O.id || (F += " ant-table-row-create"), O.id === (($ = a.getSelectedVarCatalog) == null ? void 0 : $.id) && (F += " ant-table-row-selected "), F;
|
@@ -17591,7 +17615,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
17591
17615
|
rowKey: "id",
|
17592
17616
|
dataSource: c.value,
|
17593
17617
|
loading: n.value,
|
17594
|
-
rowClassName:
|
17618
|
+
rowClassName: N,
|
17595
17619
|
rowSelection: g.value,
|
17596
17620
|
customRow: (O) => ({
|
17597
17621
|
onClick: () => M(O)
|
@@ -17932,15 +17956,15 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17932
17956
|
var A;
|
17933
17957
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
17934
17958
|
return u.value.filter((C) => {
|
17935
|
-
var M, w, I, R,
|
17936
|
-
return ((w = (M = C.whDsc) == null ? void 0 : M.toUpperCase()) == null ? void 0 : w.includes(k)) || ((R = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : R.includes(k)) || ((O = (
|
17959
|
+
var M, w, I, R, N, O;
|
17960
|
+
return ((w = (M = C.whDsc) == null ? void 0 : M.toUpperCase()) == null ? void 0 : w.includes(k)) || ((R = (I = C.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : R.includes(k)) || ((O = (N = C.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : O.includes(k));
|
17937
17961
|
});
|
17938
17962
|
}), g = computed(() => {
|
17939
17963
|
var k;
|
17940
17964
|
return ((k = r.option.value.KgWarehouse) == null ? void 0 : k.on) !== !1;
|
17941
17965
|
});
|
17942
17966
|
watch(a.visible, (k) => {
|
17943
|
-
!g.value || (k ?
|
17967
|
+
!g.value || (k ? y() : _());
|
17944
17968
|
}, {
|
17945
17969
|
immediate: !0
|
17946
17970
|
}), onMounted(() => {
|
@@ -17949,7 +17973,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17949
17973
|
function b() {
|
17950
17974
|
!g.value || a.store.setVisible(!0);
|
17951
17975
|
}
|
17952
|
-
function
|
17976
|
+
function y() {
|
17953
17977
|
o.value = a.warehouse.value, m();
|
17954
17978
|
}
|
17955
17979
|
function _() {
|
@@ -17987,7 +18011,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
17987
18011
|
l.value = !1;
|
17988
18012
|
}
|
17989
18013
|
}
|
17990
|
-
function
|
18014
|
+
function E(k, A) {
|
17991
18015
|
var C;
|
17992
18016
|
switch (k.detail) {
|
17993
18017
|
case 1:
|
@@ -18050,7 +18074,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
18050
18074
|
var A;
|
18051
18075
|
return {
|
18052
18076
|
class: k.id === ((A = o.value) == null ? void 0 : A.id) ? "selected" : "",
|
18053
|
-
onClick: (C) =>
|
18077
|
+
onClick: (C) => E(C, k)
|
18054
18078
|
};
|
18055
18079
|
}
|
18056
18080
|
}, null)]
|
@@ -18170,6 +18194,7 @@ export {
|
|
18170
18194
|
VarVariableConfig,
|
18171
18195
|
VarVariableInput,
|
18172
18196
|
WhDTO,
|
18197
|
+
__KG__RESPONSE__,
|
18173
18198
|
createKgWarehouseGuard,
|
18174
18199
|
httpClient,
|
18175
18200
|
keys$1 as keys,
|