@kengic/vue 0.25.2-beta.2 → 0.25.3-beta.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +673 -651
- package/dist/src/components/KgForm.Item/KgForm.Item.service.d.ts +4 -0
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +2 -0
- package/dist/src/components/KgVar/index.hooks.d.ts +0 -2
- package/dist/src/components/KgVar/index.store.d.ts +0 -8
- package/dist/src/consts/index.vm.d.ts +15 -5
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1824,12 +1824,12 @@ function sendQuery(e, t, a, r) {
|
|
1824
1824
|
const n = e.resources.length, i = e.random ? Math.floor(Math.random() * n) : e.index;
|
1825
1825
|
let s;
|
1826
1826
|
if (e.random) {
|
1827
|
-
let
|
1828
|
-
for (s = [];
|
1829
|
-
const A = Math.floor(Math.random() *
|
1830
|
-
s.push(
|
1827
|
+
let C = e.resources.slice(0);
|
1828
|
+
for (s = []; C.length > 1; ) {
|
1829
|
+
const A = Math.floor(Math.random() * C.length);
|
1830
|
+
s.push(C[A]), C = C.slice(0, A).concat(C.slice(A + 1));
|
1831
1831
|
}
|
1832
|
-
s = s.concat(
|
1832
|
+
s = s.concat(C);
|
1833
1833
|
} else
|
1834
1834
|
s = e.resources.slice(i).concat(e.resources.slice(0, i));
|
1835
1835
|
const l = Date.now();
|
@@ -1839,12 +1839,12 @@ function sendQuery(e, t, a, r) {
|
|
1839
1839
|
_ && (clearTimeout(_), _ = null);
|
1840
1840
|
}
|
1841
1841
|
function m() {
|
1842
|
-
o === "pending" && (o = "aborted"), g(), d.forEach((
|
1843
|
-
|
1842
|
+
o === "pending" && (o = "aborted"), g(), d.forEach((C) => {
|
1843
|
+
C.status === "pending" && (C.status = "aborted");
|
1844
1844
|
}), d = [];
|
1845
1845
|
}
|
1846
|
-
function p(
|
1847
|
-
A && (v = []), typeof
|
1846
|
+
function p(C, A) {
|
1847
|
+
A && (v = []), typeof C == "function" && v.push(C);
|
1848
1848
|
}
|
1849
1849
|
function T() {
|
1850
1850
|
return {
|
@@ -1858,18 +1858,18 @@ function sendQuery(e, t, a, r) {
|
|
1858
1858
|
};
|
1859
1859
|
}
|
1860
1860
|
function E() {
|
1861
|
-
o = "failed", v.forEach((
|
1862
|
-
|
1861
|
+
o = "failed", v.forEach((C) => {
|
1862
|
+
C(void 0, c);
|
1863
1863
|
});
|
1864
1864
|
}
|
1865
1865
|
function k() {
|
1866
|
-
d.forEach((
|
1867
|
-
|
1866
|
+
d.forEach((C) => {
|
1867
|
+
C.status === "pending" && (C.status = "aborted");
|
1868
1868
|
}), d = [];
|
1869
1869
|
}
|
1870
|
-
function N(
|
1870
|
+
function N(C, A, V) {
|
1871
1871
|
const y = A !== "success";
|
1872
|
-
switch (d = d.filter((
|
1872
|
+
switch (d = d.filter((R) => R !== C), o) {
|
1873
1873
|
case "pending":
|
1874
1874
|
break;
|
1875
1875
|
case "failed":
|
@@ -1888,19 +1888,19 @@ function sendQuery(e, t, a, r) {
|
|
1888
1888
|
return;
|
1889
1889
|
}
|
1890
1890
|
if (g(), k(), !e.random) {
|
1891
|
-
const
|
1892
|
-
|
1891
|
+
const R = e.resources.indexOf(C.resource);
|
1892
|
+
R !== -1 && R !== e.index && (e.index = R);
|
1893
1893
|
}
|
1894
|
-
o = "completed", v.forEach((
|
1895
|
-
|
1894
|
+
o = "completed", v.forEach((R) => {
|
1895
|
+
R(V);
|
1896
1896
|
});
|
1897
1897
|
}
|
1898
1898
|
function O() {
|
1899
1899
|
if (o !== "pending")
|
1900
1900
|
return;
|
1901
1901
|
g();
|
1902
|
-
const
|
1903
|
-
if (
|
1902
|
+
const C = s.shift();
|
1903
|
+
if (C === void 0) {
|
1904
1904
|
if (d.length) {
|
1905
1905
|
_ = setTimeout(() => {
|
1906
1906
|
g(), o === "pending" && (k(), E());
|
@@ -1912,12 +1912,12 @@ function sendQuery(e, t, a, r) {
|
|
1912
1912
|
}
|
1913
1913
|
const A = {
|
1914
1914
|
status: "pending",
|
1915
|
-
resource:
|
1915
|
+
resource: C,
|
1916
1916
|
callback: (V, y) => {
|
1917
1917
|
N(A, V, y);
|
1918
1918
|
}
|
1919
1919
|
};
|
1920
|
-
d.push(A), u++, _ = setTimeout(O, e.rotate), a(
|
1920
|
+
d.push(A), u++, _ = setTimeout(O, e.rotate), a(C, t, A.callback);
|
1921
1921
|
}
|
1922
1922
|
return setTimeout(O), T;
|
1923
1923
|
}
|
@@ -2437,7 +2437,7 @@ const emptyIcon = {
|
|
2437
2437
|
...t.data
|
2438
2438
|
}, a);
|
2439
2439
|
}
|
2440
|
-
}), version = "0.25.
|
2440
|
+
}), version = "0.25.3-beta.0";
|
2441
2441
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2442
2442
|
const freeGlobal$1 = freeGlobal;
|
2443
2443
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
@@ -3812,29 +3812,29 @@ function debounce(e, t, a) {
|
|
3812
3812
|
if (typeof e != "function")
|
3813
3813
|
throw new TypeError(FUNC_ERROR_TEXT);
|
3814
3814
|
t = toNumber(t) || 0, isObject$2(a) && (c = !!a.leading, _ = "maxWait" in a, i = _ ? nativeMax$3(toNumber(a.maxWait) || 0, t) : i, d = "trailing" in a ? !!a.trailing : d);
|
3815
|
-
function v(
|
3815
|
+
function v(C) {
|
3816
3816
|
var A = r, V = n;
|
3817
|
-
return r = n = void 0, u =
|
3817
|
+
return r = n = void 0, u = C, s = e.apply(V, A), s;
|
3818
3818
|
}
|
3819
|
-
function g(
|
3820
|
-
return u =
|
3819
|
+
function g(C) {
|
3820
|
+
return u = C, l = setTimeout(T, t), c ? v(C) : s;
|
3821
3821
|
}
|
3822
|
-
function m(
|
3823
|
-
var A =
|
3822
|
+
function m(C) {
|
3823
|
+
var A = C - o, V = C - u, y = t - A;
|
3824
3824
|
return _ ? nativeMin$2(y, i - V) : y;
|
3825
3825
|
}
|
3826
|
-
function p(
|
3827
|
-
var A =
|
3826
|
+
function p(C) {
|
3827
|
+
var A = C - o, V = C - u;
|
3828
3828
|
return o === void 0 || A >= t || A < 0 || _ && V >= i;
|
3829
3829
|
}
|
3830
3830
|
function T() {
|
3831
|
-
var
|
3832
|
-
if (p(
|
3833
|
-
return E(
|
3834
|
-
l = setTimeout(T, m(
|
3831
|
+
var C = now$1();
|
3832
|
+
if (p(C))
|
3833
|
+
return E(C);
|
3834
|
+
l = setTimeout(T, m(C));
|
3835
3835
|
}
|
3836
|
-
function E(
|
3837
|
-
return l = void 0, d && r ? v(
|
3836
|
+
function E(C) {
|
3837
|
+
return l = void 0, d && r ? v(C) : (r = n = void 0, s);
|
3838
3838
|
}
|
3839
3839
|
function k() {
|
3840
3840
|
l !== void 0 && clearTimeout(l), u = 0, r = o = n = l = void 0;
|
@@ -3843,8 +3843,8 @@ function debounce(e, t, a) {
|
|
3843
3843
|
return l === void 0 ? s : E(now$1());
|
3844
3844
|
}
|
3845
3845
|
function O() {
|
3846
|
-
var
|
3847
|
-
if (r = arguments, n = this, o =
|
3846
|
+
var C = now$1(), A = p(C);
|
3847
|
+
if (r = arguments, n = this, o = C, A) {
|
3848
3848
|
if (l === void 0)
|
3849
3849
|
return g(o);
|
3850
3850
|
if (_)
|
@@ -4399,7 +4399,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
4399
4399
|
YN: "YN",
|
4400
4400
|
center: "Center",
|
4401
4401
|
left: "Left",
|
4402
|
-
notSort: "
|
4402
|
+
notSort: "Default",
|
4403
4403
|
right: "Right"
|
4404
4404
|
},
|
4405
4405
|
KgVarConfigSelectFormIdModal: {
|
@@ -4662,7 +4662,7 @@ const ____DEBUG____ = KgLogger.debug, ____INFO_____ = KgLogger.info, ____WARN___
|
|
4662
4662
|
YN: "YN",
|
4663
4663
|
center: "\u4E2D",
|
4664
4664
|
left: "\u5DE6",
|
4665
|
-
notSort: "\
|
4665
|
+
notSort: "\u9ED8\u8BA4",
|
4666
4666
|
right: "\u53F3"
|
4667
4667
|
},
|
4668
4668
|
KgVarConfigSelectFormIdModal: {
|
@@ -4784,7 +4784,7 @@ class KgRouteUtil {
|
|
4784
4784
|
}), t;
|
4785
4785
|
}
|
4786
4786
|
static transformMenus(t) {
|
4787
|
-
var d, v, g, m, p, T, E, k, N, O,
|
4787
|
+
var d, v, g, m, p, T, E, k, N, O, C, A, V, y, R, L, F, I, D, P, M, B, w, x, K, U, W, X, te, se, le, ue, ce, oe;
|
4788
4788
|
if (!t)
|
4789
4789
|
return [];
|
4790
4790
|
const a = useKg(), r = (q) => {
|
@@ -4836,7 +4836,7 @@ class KgRouteUtil {
|
|
4836
4836
|
name: (k = (E = a.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_BUSINESS_MANAGER]) != null ? k : "\u4ED3\u5E93\u7BA1\u7406",
|
4837
4837
|
slotTitle: (O = (N = a.option.value.appTitle) == null ? void 0 : N[KG_APP.WMS_BUSINESS_MANAGER]) != null ? O : "\u4ED3\u5E93\u7BA1\u7406",
|
4838
4838
|
sortNo: 2,
|
4839
|
-
title: (A = (
|
4839
|
+
title: (A = (C = a.option.value.appTitle) == null ? void 0 : C[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
|
4840
4840
|
...n,
|
4841
4841
|
url: KG_APP_PREFIX.WMS_BUSINESS_MANAGER,
|
4842
4842
|
value: KG_TMP_MENU_ID__BUSINESS_MANAGER
|
@@ -4845,9 +4845,9 @@ class KgRouteUtil {
|
|
4845
4845
|
id: KG_TMP_MENU_ID__WCS,
|
4846
4846
|
key: KG_TMP_MENU_ID__WCS,
|
4847
4847
|
name: (y = (V = a.option.value.appTitle) == null ? void 0 : V[KG_APP.WCS]) != null ? y : "WCS",
|
4848
|
-
slotTitle: (
|
4848
|
+
slotTitle: (L = (R = a.option.value.appTitle) == null ? void 0 : R[KG_APP.WCS]) != null ? L : "WCS",
|
4849
4849
|
sortNo: 3,
|
4850
|
-
title: (I = (
|
4850
|
+
title: (I = (F = a.option.value.appTitle) == null ? void 0 : F[KG_APP.WCS]) != null ? I : "WCS",
|
4851
4851
|
...n,
|
4852
4852
|
url: KG_APP_PREFIX.WCS,
|
4853
4853
|
value: KG_TMP_MENU_ID__WCS
|
@@ -4855,7 +4855,7 @@ class KgRouteUtil {
|
|
4855
4855
|
id: KG_TMP_MENU_ID__SYS,
|
4856
4856
|
key: KG_TMP_MENU_ID__SYS,
|
4857
4857
|
title: (P = (D = a.option.value.appTitle) == null ? void 0 : D[KG_APP.SYS]) != null ? P : "\u7CFB\u7EDF\u914D\u7F6E",
|
4858
|
-
name: (
|
4858
|
+
name: (B = (M = a.option.value.appTitle) == null ? void 0 : M[KG_APP.SYS]) != null ? B : "\u7CFB\u7EDF\u914D\u7F6E",
|
4859
4859
|
slotTitle: (x = (w = a.option.value.appTitle) == null ? void 0 : w[KG_APP.SYS]) != null ? x : "\u7CFB\u7EDF\u914D\u7F6E",
|
4860
4860
|
sortNo: 4,
|
4861
4861
|
children: [],
|
@@ -4991,61 +4991,61 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4991
4991
|
var P = ["th", "st", "nd", "rd"], M = D % 100;
|
4992
4992
|
return "[" + D + (P[(M - 20) % 10] || P[M] || P[0]) + "]";
|
4993
4993
|
} }, k = function(D, P, M) {
|
4994
|
-
var
|
4995
|
-
return !
|
4994
|
+
var B = String(D);
|
4995
|
+
return !B || B.length >= P ? D : "" + Array(P + 1 - B.length).join(M) + D;
|
4996
4996
|
}, N = { s: k, z: function(D) {
|
4997
|
-
var P = -D.utcOffset(), M = Math.abs(P),
|
4998
|
-
return (P <= 0 ? "+" : "-") + k(
|
4997
|
+
var P = -D.utcOffset(), M = Math.abs(P), B = Math.floor(M / 60), w = M % 60;
|
4998
|
+
return (P <= 0 ? "+" : "-") + k(B, 2, "0") + ":" + k(w, 2, "0");
|
4999
4999
|
}, m: function D(P, M) {
|
5000
5000
|
if (P.date() < M.date())
|
5001
5001
|
return -D(M, P);
|
5002
|
-
var
|
5003
|
-
return +(-(
|
5002
|
+
var B = 12 * (M.year() - P.year()) + (M.month() - P.month()), w = P.clone().add(B, _), x = M - w < 0, K = P.clone().add(B + (x ? -1 : 1), _);
|
5003
|
+
return +(-(B + (M - w) / (x ? w - K : K - w)) || 0);
|
5004
5004
|
}, a: function(D) {
|
5005
5005
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
5006
5006
|
}, p: function(D) {
|
5007
5007
|
return { M: _, y: v, w: c, d: u, D: g, h: o, m: l, s, ms: i, Q: d }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
5008
5008
|
}, u: function(D) {
|
5009
5009
|
return D === void 0;
|
5010
|
-
} }, O = "en",
|
5011
|
-
|
5010
|
+
} }, O = "en", C = {};
|
5011
|
+
C[O] = E;
|
5012
5012
|
var A = "$isDayjsObject", V = function(D) {
|
5013
|
-
return D instanceof
|
5014
|
-
}, y = function D(P, M,
|
5013
|
+
return D instanceof F || !(!D || !D[A]);
|
5014
|
+
}, y = function D(P, M, B) {
|
5015
5015
|
var w;
|
5016
5016
|
if (!P)
|
5017
5017
|
return O;
|
5018
5018
|
if (typeof P == "string") {
|
5019
5019
|
var x = P.toLowerCase();
|
5020
|
-
|
5020
|
+
C[x] && (w = x), M && (C[x] = M, w = x);
|
5021
5021
|
var K = P.split("-");
|
5022
5022
|
if (!w && K.length > 1)
|
5023
5023
|
return D(K[0]);
|
5024
5024
|
} else {
|
5025
5025
|
var U = P.name;
|
5026
|
-
|
5026
|
+
C[U] = P, w = U;
|
5027
5027
|
}
|
5028
|
-
return !
|
5029
|
-
},
|
5028
|
+
return !B && w && (O = w), w || !B && O;
|
5029
|
+
}, R = function(D, P) {
|
5030
5030
|
if (V(D))
|
5031
5031
|
return D.clone();
|
5032
5032
|
var M = typeof P == "object" ? P : {};
|
5033
|
-
return M.date = D, M.args = arguments, new
|
5034
|
-
},
|
5035
|
-
|
5036
|
-
return
|
5033
|
+
return M.date = D, M.args = arguments, new F(M);
|
5034
|
+
}, L = N;
|
5035
|
+
L.l = y, L.i = V, L.w = function(D, P) {
|
5036
|
+
return R(D, { locale: P.$L, utc: P.$u, x: P.$x, $offset: P.$offset });
|
5037
5037
|
};
|
5038
|
-
var
|
5038
|
+
var F = function() {
|
5039
5039
|
function D(M) {
|
5040
5040
|
this.$L = y(M.locale, null, !0), this.parse(M), this.$x = this.$x || M.x || {}, this[A] = !0;
|
5041
5041
|
}
|
5042
5042
|
var P = D.prototype;
|
5043
5043
|
return P.parse = function(M) {
|
5044
|
-
this.$d = function(
|
5045
|
-
var w =
|
5044
|
+
this.$d = function(B) {
|
5045
|
+
var w = B.date, x = B.utc;
|
5046
5046
|
if (w === null)
|
5047
5047
|
return new Date(NaN);
|
5048
|
-
if (
|
5048
|
+
if (L.u(w))
|
5049
5049
|
return new Date();
|
5050
5050
|
if (w instanceof Date)
|
5051
5051
|
return new Date(w);
|
@@ -5062,28 +5062,28 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5062
5062
|
var M = this.$d;
|
5063
5063
|
this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
|
5064
5064
|
}, P.$utils = function() {
|
5065
|
-
return
|
5065
|
+
return L;
|
5066
5066
|
}, P.isValid = function() {
|
5067
5067
|
return this.$d.toString() !== m;
|
5068
|
-
}, P.isSame = function(M,
|
5069
|
-
var w =
|
5070
|
-
return this.startOf(
|
5071
|
-
}, P.isAfter = function(M,
|
5072
|
-
return
|
5073
|
-
}, P.isBefore = function(M,
|
5074
|
-
return this.endOf(
|
5075
|
-
}, P.$g = function(M,
|
5076
|
-
return
|
5068
|
+
}, P.isSame = function(M, B) {
|
5069
|
+
var w = R(M);
|
5070
|
+
return this.startOf(B) <= w && w <= this.endOf(B);
|
5071
|
+
}, P.isAfter = function(M, B) {
|
5072
|
+
return R(M) < this.startOf(B);
|
5073
|
+
}, P.isBefore = function(M, B) {
|
5074
|
+
return this.endOf(B) < R(M);
|
5075
|
+
}, P.$g = function(M, B, w) {
|
5076
|
+
return L.u(M) ? this[B] : this.set(w, M);
|
5077
5077
|
}, P.unix = function() {
|
5078
5078
|
return Math.floor(this.valueOf() / 1e3);
|
5079
5079
|
}, P.valueOf = function() {
|
5080
5080
|
return this.$d.getTime();
|
5081
|
-
}, P.startOf = function(M,
|
5082
|
-
var w = this, x = !!
|
5083
|
-
var H =
|
5081
|
+
}, P.startOf = function(M, B) {
|
5082
|
+
var w = this, x = !!L.u(B) || B, K = L.p(M), U = function(oe, q) {
|
5083
|
+
var H = L.w(w.$u ? Date.UTC(w.$y, q, oe) : new Date(w.$y, q, oe), w);
|
5084
5084
|
return x ? H : H.endOf(u);
|
5085
5085
|
}, W = function(oe, q) {
|
5086
|
-
return
|
5086
|
+
return L.w(w.toDate()[oe].apply(w.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), w);
|
5087
5087
|
}, X = this.$W, te = this.$M, se = this.$D, le = "set" + (this.$u ? "UTC" : "");
|
5088
5088
|
switch (K) {
|
5089
5089
|
case v:
|
@@ -5107,24 +5107,24 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5107
5107
|
}
|
5108
5108
|
}, P.endOf = function(M) {
|
5109
5109
|
return this.startOf(M, !1);
|
5110
|
-
}, P.$set = function(M,
|
5111
|
-
var w, x =
|
5110
|
+
}, P.$set = function(M, B) {
|
5111
|
+
var w, x = L.p(M), K = "set" + (this.$u ? "UTC" : ""), U = (w = {}, w[u] = K + "Date", w[g] = K + "Date", w[_] = K + "Month", w[v] = K + "FullYear", w[o] = K + "Hours", w[l] = K + "Minutes", w[s] = K + "Seconds", w[i] = K + "Milliseconds", w)[x], W = x === u ? this.$D + (B - this.$W) : B;
|
5112
5112
|
if (x === _ || x === v) {
|
5113
5113
|
var X = this.clone().set(g, 1);
|
5114
5114
|
X.$d[U](W), X.init(), this.$d = X.set(g, Math.min(this.$D, X.daysInMonth())).$d;
|
5115
5115
|
} else
|
5116
5116
|
U && this.$d[U](W);
|
5117
5117
|
return this.init(), this;
|
5118
|
-
}, P.set = function(M,
|
5119
|
-
return this.clone().$set(M,
|
5118
|
+
}, P.set = function(M, B) {
|
5119
|
+
return this.clone().$set(M, B);
|
5120
5120
|
}, P.get = function(M) {
|
5121
|
-
return this[
|
5122
|
-
}, P.add = function(M,
|
5121
|
+
return this[L.p(M)]();
|
5122
|
+
}, P.add = function(M, B) {
|
5123
5123
|
var w, x = this;
|
5124
5124
|
M = Number(M);
|
5125
|
-
var K =
|
5126
|
-
var se =
|
5127
|
-
return
|
5125
|
+
var K = L.p(B), U = function(te) {
|
5126
|
+
var se = R(x);
|
5127
|
+
return L.w(se.date(se.date() + Math.round(te * M)), x);
|
5128
5128
|
};
|
5129
5129
|
if (K === _)
|
5130
5130
|
return this.set(_, this.$M + M);
|
@@ -5135,17 +5135,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5135
5135
|
if (K === c)
|
5136
5136
|
return U(7);
|
5137
5137
|
var W = (w = {}, w[l] = r, w[o] = n, w[s] = a, w)[K] || 1, X = this.$d.getTime() + M * W;
|
5138
|
-
return
|
5139
|
-
}, P.subtract = function(M,
|
5140
|
-
return this.add(-1 * M,
|
5138
|
+
return L.w(X, this);
|
5139
|
+
}, P.subtract = function(M, B) {
|
5140
|
+
return this.add(-1 * M, B);
|
5141
5141
|
}, P.format = function(M) {
|
5142
|
-
var
|
5142
|
+
var B = this, w = this.$locale();
|
5143
5143
|
if (!this.isValid())
|
5144
5144
|
return w.invalidDate || m;
|
5145
|
-
var x = M || "YYYY-MM-DDTHH:mm:ssZ", K =
|
5146
|
-
return q && (q[H] || q(
|
5145
|
+
var x = M || "YYYY-MM-DDTHH:mm:ssZ", K = L.z(this), U = this.$H, W = this.$m, X = this.$M, te = w.weekdays, se = w.months, le = w.meridiem, ue = function(q, H, G, $) {
|
5146
|
+
return q && (q[H] || q(B, x)) || G[H].slice(0, $);
|
5147
5147
|
}, ce = function(q) {
|
5148
|
-
return
|
5148
|
+
return L.s(U % 12 || 12, q, "0");
|
5149
5149
|
}, oe = le || function(q, H, G) {
|
5150
5150
|
var $ = q < 12 ? "AM" : "PM";
|
5151
5151
|
return G ? $.toLowerCase() : $;
|
@@ -5154,33 +5154,33 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5154
5154
|
return H || function(G) {
|
5155
5155
|
switch (G) {
|
5156
5156
|
case "YY":
|
5157
|
-
return String(
|
5157
|
+
return String(B.$y).slice(-2);
|
5158
5158
|
case "YYYY":
|
5159
|
-
return
|
5159
|
+
return L.s(B.$y, 4, "0");
|
5160
5160
|
case "M":
|
5161
5161
|
return X + 1;
|
5162
5162
|
case "MM":
|
5163
|
-
return
|
5163
|
+
return L.s(X + 1, 2, "0");
|
5164
5164
|
case "MMM":
|
5165
5165
|
return ue(w.monthsShort, X, se, 3);
|
5166
5166
|
case "MMMM":
|
5167
5167
|
return ue(se, X);
|
5168
5168
|
case "D":
|
5169
|
-
return
|
5169
|
+
return B.$D;
|
5170
5170
|
case "DD":
|
5171
|
-
return
|
5171
|
+
return L.s(B.$D, 2, "0");
|
5172
5172
|
case "d":
|
5173
|
-
return String(
|
5173
|
+
return String(B.$W);
|
5174
5174
|
case "dd":
|
5175
|
-
return ue(w.weekdaysMin,
|
5175
|
+
return ue(w.weekdaysMin, B.$W, te, 2);
|
5176
5176
|
case "ddd":
|
5177
|
-
return ue(w.weekdaysShort,
|
5177
|
+
return ue(w.weekdaysShort, B.$W, te, 3);
|
5178
5178
|
case "dddd":
|
5179
|
-
return te[
|
5179
|
+
return te[B.$W];
|
5180
5180
|
case "H":
|
5181
5181
|
return String(U);
|
5182
5182
|
case "HH":
|
5183
|
-
return
|
5183
|
+
return L.s(U, 2, "0");
|
5184
5184
|
case "h":
|
5185
5185
|
return ce(1);
|
5186
5186
|
case "hh":
|
@@ -5192,13 +5192,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5192
5192
|
case "m":
|
5193
5193
|
return String(W);
|
5194
5194
|
case "mm":
|
5195
|
-
return
|
5195
|
+
return L.s(W, 2, "0");
|
5196
5196
|
case "s":
|
5197
|
-
return String(
|
5197
|
+
return String(B.$s);
|
5198
5198
|
case "ss":
|
5199
|
-
return
|
5199
|
+
return L.s(B.$s, 2, "0");
|
5200
5200
|
case "SSS":
|
5201
|
-
return
|
5201
|
+
return L.s(B.$ms, 3, "0");
|
5202
5202
|
case "Z":
|
5203
5203
|
return K;
|
5204
5204
|
}
|
@@ -5207,9 +5207,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5207
5207
|
});
|
5208
5208
|
}, P.utcOffset = function() {
|
5209
5209
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
5210
|
-
}, P.diff = function(M,
|
5211
|
-
var x, K = this, U =
|
5212
|
-
return
|
5210
|
+
}, P.diff = function(M, B, w) {
|
5211
|
+
var x, K = this, U = L.p(B), W = R(M), X = (W.utcOffset() - this.utcOffset()) * r, te = this - W, se = function() {
|
5212
|
+
return L.m(K, W);
|
5213
5213
|
};
|
5214
5214
|
switch (U) {
|
5215
5215
|
case v:
|
@@ -5239,18 +5239,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5239
5239
|
default:
|
5240
5240
|
x = te;
|
5241
5241
|
}
|
5242
|
-
return w ? x :
|
5242
|
+
return w ? x : L.a(x);
|
5243
5243
|
}, P.daysInMonth = function() {
|
5244
5244
|
return this.endOf(_).$D;
|
5245
5245
|
}, P.$locale = function() {
|
5246
|
-
return
|
5247
|
-
}, P.locale = function(M,
|
5246
|
+
return C[this.$L];
|
5247
|
+
}, P.locale = function(M, B) {
|
5248
5248
|
if (!M)
|
5249
5249
|
return this.$L;
|
5250
|
-
var w = this.clone(), x = y(M,
|
5250
|
+
var w = this.clone(), x = y(M, B, !0);
|
5251
5251
|
return x && (w.$L = x), w;
|
5252
5252
|
}, P.clone = function() {
|
5253
|
-
return
|
5253
|
+
return L.w(this.$d, this);
|
5254
5254
|
}, P.toDate = function() {
|
5255
5255
|
return new Date(this.valueOf());
|
5256
5256
|
}, P.toJSON = function() {
|
@@ -5260,16 +5260,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5260
5260
|
}, P.toString = function() {
|
5261
5261
|
return this.$d.toUTCString();
|
5262
5262
|
}, D;
|
5263
|
-
}(), I =
|
5264
|
-
return
|
5263
|
+
}(), I = F.prototype;
|
5264
|
+
return R.prototype = I, [["$ms", i], ["$s", s], ["$m", l], ["$H", o], ["$W", u], ["$M", _], ["$y", v], ["$D", g]].forEach(function(D) {
|
5265
5265
|
I[D[1]] = function(P) {
|
5266
5266
|
return this.$g(P, D[0], D[1]);
|
5267
5267
|
};
|
5268
|
-
}),
|
5269
|
-
return D.$i || (D(P,
|
5270
|
-
},
|
5271
|
-
return
|
5272
|
-
},
|
5268
|
+
}), R.extend = function(D, P) {
|
5269
|
+
return D.$i || (D(P, F, R), D.$i = !0), R;
|
5270
|
+
}, R.locale = y, R.isDayjs = V, R.unix = function(D) {
|
5271
|
+
return R(1e3 * D);
|
5272
|
+
}, R.en = C[O], R.Ls = C, R.p = {}, R;
|
5273
5273
|
});
|
5274
5274
|
})(dayjs_min);
|
5275
5275
|
const dayjs = dayjs_min.exports;
|
@@ -5316,23 +5316,23 @@ function filesize(e, {
|
|
5316
5316
|
} = {}) {
|
5317
5317
|
let T = g, E = Number(e), k = [], N = 0, O = EMPTY;
|
5318
5318
|
c === SI ? (r = 10, c = JEDEC) : c === IEC || c === JEDEC ? r = 2 : r === 2 ? c = IEC : (r = 10, c = JEDEC);
|
5319
|
-
const
|
5319
|
+
const C = r === 10 ? 1e3 : 1024, A = d === !0, V = E < 0, y = Math[m];
|
5320
5320
|
if (typeof e != "bigint" && isNaN(e))
|
5321
5321
|
throw new TypeError(INVALID_NUMBER);
|
5322
5322
|
if (typeof y !== FUNCTION)
|
5323
5323
|
throw new TypeError(INVALID_ROUND);
|
5324
|
-
if (V && (E = -E), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(E) / Math.log(
|
5324
|
+
if (V && (E = -E), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(E) / Math.log(C)), T < 0 && (T = 0)), T > 8 && (p > 0 && (p += 8 - T), T = 8), _ === EXPONENT)
|
5325
5325
|
return T;
|
5326
5326
|
if (E === 0)
|
5327
5327
|
k[0] = 0, O = k[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
5328
5328
|
else {
|
5329
|
-
N = E / (r === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (N = N * 8, N >=
|
5330
|
-
const
|
5331
|
-
k[0] = y(N *
|
5329
|
+
N = E / (r === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (N = N * 8, N >= C && T < 8 && (N = N / C, T++));
|
5330
|
+
const R = Math.pow(10, T > 0 ? n : 0);
|
5331
|
+
k[0] = y(N * R) / R, k[0] === C && T < 8 && g === -1 && (k[0] = 1, T++), O = k[1] = r === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
5332
5332
|
}
|
5333
5333
|
if (V && (k[0] = -k[0]), p > 0 && (k[0] = k[0].toPrecision(p)), k[1] = u[k[1]] || k[1], i === !0 ? k[0] = k[0].toLocaleString() : i.length > 0 ? k[0] = k[0].toLocaleString(i, s) : l.length > 0 && (k[0] = k[0].toString().replace(PERIOD, l)), a && Number.isInteger(k[0]) === !1 && n > 0) {
|
5334
|
-
const
|
5335
|
-
k[0] = `${
|
5334
|
+
const R = l || PERIOD, L = k[0].toString().split(R), F = L[1] || EMPTY, I = F.length, D = n - I;
|
5335
|
+
k[0] = `${L[0]}${R}${F.padEnd(I + D, ZERO)}`;
|
5336
5336
|
}
|
5337
5337
|
return A && (k[1] = v[T] ? v[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), _ === ARRAY ? k : _ === OBJECT ? {
|
5338
5338
|
value: k[0],
|
@@ -6003,7 +6003,7 @@ class KgVarUtil {
|
|
6003
6003
|
})]);
|
6004
6004
|
}
|
6005
6005
|
static getQueryHeaders(t) {
|
6006
|
-
var E, k, N, O,
|
6006
|
+
var E, k, N, O, C;
|
6007
6007
|
const {
|
6008
6008
|
params: a,
|
6009
6009
|
kgSearchFormID: r,
|
@@ -6026,22 +6026,22 @@ class KgVarUtil {
|
|
6026
6026
|
};
|
6027
6027
|
const o = ["pageNo", "pageSize", "column", "order"], u = useKg(), c = n ? useKgVar(n) : null, _ = r ? useKgVar(r) : null, d = r ? (E = _ == null ? void 0 : _.kgSearch) == null ? void 0 : E.dynamicQueryOperatorModel.value : i, v = {};
|
6028
6028
|
Object.keys(l).sort().forEach((A) => {
|
6029
|
-
var
|
6029
|
+
var F, I, D, P, M, B;
|
6030
6030
|
if (o.includes(A) || A.endsWith("_obj"))
|
6031
6031
|
return;
|
6032
|
-
const V = r ? (
|
6032
|
+
const V = r ? (F = _ == null ? void 0 : _.store) == null ? void 0 : F.getVarProfileDetail(r, A) : null;
|
6033
6033
|
let y = A;
|
6034
|
-
const
|
6035
|
-
let
|
6036
|
-
switch ((((D = (I = u.option.value.KgSearch) == null ? void 0 : I.dynamicQuery) == null ? void 0 : D.on) !== !0 || r && ((
|
6037
|
-
case (!!s && s.isDayjs(
|
6038
|
-
const w =
|
6034
|
+
const R = l[A];
|
6035
|
+
let L = d == null ? void 0 : d[A];
|
6036
|
+
switch ((((D = (I = u.option.value.KgSearch) == null ? void 0 : I.dynamicQuery) == null ? void 0 : D.on) !== !0 || r && ((B = (M = (P = _ == null ? void 0 : _.kgSearch) == null ? void 0 : P.currentVarProfileMaster) == null ? void 0 : M.value) == null ? void 0 : B.dyn_flg) !== 1) && (L = KG_DYNAMIC_QUERY_OPERATOR.EQ), r && (V == null ? void 0 : V.use_underscore_when_dynamic_query_flag) !== 0 && (y = A.split(".").map((w) => KgUtil.snakeCase(w)).join(".")), !0) {
|
6037
|
+
case (!!s && s.isDayjs(R)): {
|
6038
|
+
const w = R;
|
6039
6039
|
let x = r ? KgUtil.parseParamFromDayjs({
|
6040
6040
|
formID: r,
|
6041
6041
|
key: A,
|
6042
6042
|
value: w
|
6043
6043
|
}) : w.format("YYYY-MM-DD HH:mm:ss");
|
6044
|
-
switch (
|
6044
|
+
switch (L) {
|
6045
6045
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6046
6046
|
let K = x, U = "";
|
6047
6047
|
switch (!0) {
|
@@ -6169,8 +6169,8 @@ class KgVarUtil {
|
|
6169
6169
|
v[A] = x;
|
6170
6170
|
break;
|
6171
6171
|
}
|
6172
|
-
case (!!s && isArray$1(
|
6173
|
-
const w =
|
6172
|
+
case (!!s && isArray$1(R) && R.length === 2 && s.isDayjs(R[0]) && s.isDayjs(R[1])): {
|
6173
|
+
const w = R[0], x = R[1];
|
6174
6174
|
let K = "", U = KgUtil.parseParamFromDayjs({
|
6175
6175
|
formID: r,
|
6176
6176
|
key: A,
|
@@ -6202,26 +6202,26 @@ class KgVarUtil {
|
|
6202
6202
|
U && (K += ` AND (${y} >= N'${U}')`), W && (K += ` AND (${y} < N'${W}')`), v[A] = K;
|
6203
6203
|
break;
|
6204
6204
|
}
|
6205
|
-
case Array.isArray(
|
6206
|
-
if (
|
6205
|
+
case Array.isArray(R): {
|
6206
|
+
if (R.length === 0) {
|
6207
6207
|
v[A] = void 0;
|
6208
6208
|
break;
|
6209
6209
|
}
|
6210
|
-
const w =
|
6210
|
+
const w = R.map((x) => `N'${String(x)}'`).join(", ");
|
6211
6211
|
v[A] = ` AND (${y} IN (${w}))`;
|
6212
6212
|
break;
|
6213
6213
|
}
|
6214
|
-
case isObjectLike(
|
6214
|
+
case isObjectLike(R):
|
6215
6215
|
throw ____ERROR____("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", {
|
6216
|
-
value:
|
6216
|
+
value: R
|
6217
6217
|
}), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
6218
|
-
case typeof
|
6219
|
-
if (
|
6218
|
+
case typeof R == "string": {
|
6219
|
+
if (R.trim() === "") {
|
6220
6220
|
v[A] = void 0;
|
6221
6221
|
break;
|
6222
6222
|
}
|
6223
|
-
let w = KgUtil.parseParamFromString(
|
6224
|
-
switch (
|
6223
|
+
let w = KgUtil.parseParamFromString(R);
|
6224
|
+
switch (L) {
|
6225
6225
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6226
6226
|
w = ` AND (${y} <> N'${w}')`;
|
6227
6227
|
break;
|
@@ -6247,48 +6247,48 @@ class KgVarUtil {
|
|
6247
6247
|
v[A] = w;
|
6248
6248
|
break;
|
6249
6249
|
}
|
6250
|
-
case typeof
|
6250
|
+
case typeof R == "number": {
|
6251
6251
|
let w = "";
|
6252
|
-
switch (
|
6252
|
+
switch (L) {
|
6253
6253
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6254
|
-
w = ` AND (${y} <> ${
|
6254
|
+
w = ` AND (${y} <> ${R})`;
|
6255
6255
|
break;
|
6256
6256
|
}
|
6257
6257
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
6258
|
-
w = ` AND (${y} < ${
|
6258
|
+
w = ` AND (${y} < ${R})`;
|
6259
6259
|
break;
|
6260
6260
|
}
|
6261
6261
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
6262
|
-
w = ` AND (${y} <= ${
|
6262
|
+
w = ` AND (${y} <= ${R})`;
|
6263
6263
|
break;
|
6264
6264
|
}
|
6265
6265
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
6266
|
-
w = ` AND (${y} > ${
|
6266
|
+
w = ` AND (${y} > ${R})`;
|
6267
6267
|
break;
|
6268
6268
|
}
|
6269
6269
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
6270
|
-
w = ` AND (${y} >= ${
|
6270
|
+
w = ` AND (${y} >= ${R})`;
|
6271
6271
|
break;
|
6272
6272
|
}
|
6273
6273
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6274
6274
|
default: {
|
6275
|
-
w = ` AND (${y} = ${
|
6275
|
+
w = ` AND (${y} = ${R})`;
|
6276
6276
|
break;
|
6277
6277
|
}
|
6278
6278
|
}
|
6279
6279
|
v[A] = w;
|
6280
6280
|
break;
|
6281
6281
|
}
|
6282
|
-
case typeof
|
6282
|
+
case typeof R == "boolean": {
|
6283
6283
|
let w = "";
|
6284
|
-
switch (
|
6284
|
+
switch (L) {
|
6285
6285
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6286
|
-
w = ` AND (${y} <> ${
|
6286
|
+
w = ` AND (${y} <> ${R ? 1 : 0})`;
|
6287
6287
|
break;
|
6288
6288
|
}
|
6289
6289
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6290
6290
|
default: {
|
6291
|
-
w = ` AND (${y} = ${
|
6291
|
+
w = ` AND (${y} = ${R ? 1 : 0})`;
|
6292
6292
|
break;
|
6293
6293
|
}
|
6294
6294
|
}
|
@@ -6296,83 +6296,83 @@ class KgVarUtil {
|
|
6296
6296
|
break;
|
6297
6297
|
}
|
6298
6298
|
default: {
|
6299
|
-
v[A] =
|
6299
|
+
v[A] = R;
|
6300
6300
|
break;
|
6301
6301
|
}
|
6302
6302
|
}
|
6303
6303
|
});
|
6304
6304
|
let m = `WHERE (1 = 1)${reduce(v, (A, V, y) => {
|
6305
|
-
var
|
6306
|
-
const
|
6307
|
-
return (
|
6305
|
+
var L, F, I, D;
|
6306
|
+
const R = r ? (L = _ == null ? void 0 : _.store) == null ? void 0 : L.getVarProfileDetail(r, y) : null;
|
6307
|
+
return (R == null ? void 0 : R.exclude_from_where_sql_flag) === 1 || !R && Object.keys(KgVarUtil.parseRequestParamsToJSON((D = (I = (F = c == null ? void 0 : c.varGridConfig) == null ? void 0 : F.value) == null ? void 0 : I.cmd_prm) != null ? D : "")).includes(y) || !V ? A : A + V;
|
6308
6308
|
}, "")}`;
|
6309
6309
|
m = encodeURIComponent(m);
|
6310
6310
|
let p = "";
|
6311
6311
|
{
|
6312
6312
|
if (!l.column) {
|
6313
|
-
const V = (k =
|
6313
|
+
const V = (k = c == null ? void 0 : c.currentVarGridDetails) == null ? void 0 : k.value;
|
6314
6314
|
switch (!0) {
|
6315
6315
|
case !!(V != null && V.find((y) => {
|
6316
|
-
var
|
6317
|
-
return last(((
|
6316
|
+
var R;
|
6317
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "insDt";
|
6318
6318
|
})):
|
6319
6319
|
l.column = "insDt", l.order = "desc";
|
6320
6320
|
break;
|
6321
6321
|
case !!(V != null && V.find((y) => {
|
6322
|
-
var
|
6323
|
-
return last(((
|
6322
|
+
var R;
|
6323
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "ins_dt";
|
6324
6324
|
})):
|
6325
6325
|
l.column = "ins_dt", l.order = "desc";
|
6326
6326
|
break;
|
6327
6327
|
case !!(V != null && V.find((y) => {
|
6328
|
-
var
|
6329
|
-
return last(((
|
6328
|
+
var R;
|
6329
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "insdt";
|
6330
6330
|
})):
|
6331
6331
|
l.column = "insdt", l.order = "desc";
|
6332
6332
|
break;
|
6333
6333
|
case !!(V != null && V.find((y) => {
|
6334
|
-
var
|
6335
|
-
return last(((
|
6334
|
+
var R;
|
6335
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "adddte";
|
6336
6336
|
})):
|
6337
6337
|
l.column = "adddte", l.order = "desc";
|
6338
6338
|
break;
|
6339
6339
|
case !!(V != null && V.find((y) => {
|
6340
|
-
var
|
6341
|
-
return last(((
|
6340
|
+
var R;
|
6341
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "moddte";
|
6342
6342
|
})):
|
6343
6343
|
l.column = "moddte", l.order = "desc";
|
6344
6344
|
break;
|
6345
6345
|
case !!(V != null && V.find((y) => {
|
6346
|
-
var
|
6347
|
-
return last(((
|
6346
|
+
var R;
|
6347
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "createTime";
|
6348
6348
|
})):
|
6349
6349
|
l.column = "createTime", l.order = "desc";
|
6350
6350
|
break;
|
6351
6351
|
case !!(V != null && V.find((y) => {
|
6352
|
-
var
|
6353
|
-
return last(((
|
6352
|
+
var R;
|
6353
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "create_time";
|
6354
6354
|
})):
|
6355
6355
|
l.column = "create_time", l.order = "desc";
|
6356
6356
|
break;
|
6357
6357
|
case !!(V != null && V.find((y) => {
|
6358
|
-
var
|
6359
|
-
return last(((
|
6358
|
+
var R;
|
6359
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "modifyTime";
|
6360
6360
|
})):
|
6361
6361
|
l.column = "modifyTime", l.order = "desc";
|
6362
6362
|
break;
|
6363
6363
|
case !!(V != null && V.find((y) => {
|
6364
|
-
var
|
6365
|
-
return last(((
|
6364
|
+
var R;
|
6365
|
+
return last(((R = y.var_nam) != null ? R : "").split(".")) === "modify_time";
|
6366
6366
|
})):
|
6367
6367
|
l.column = "modify_time", l.order = "desc";
|
6368
6368
|
break;
|
6369
6369
|
default:
|
6370
|
-
l.column = (O = (N =
|
6370
|
+
l.column = (O = (N = c == null ? void 0 : c.kgTable) == null ? void 0 : N.id) == null ? void 0 : O.value;
|
6371
6371
|
break;
|
6372
6372
|
}
|
6373
6373
|
}
|
6374
6374
|
let A = l.column;
|
6375
|
-
((
|
6375
|
+
((C = c == null ? void 0 : c.varGridConfig.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) === 1 && (A = l.column.split(".").map((V) => KgUtil.snakeCase(V)).join(".")), A && (p = `ORDER BY ${A}`, l.order === "asc" ? p += " ASC" : l.order === "desc" && (p += " DESC"), p = encodeURIComponent(p.trim()));
|
6376
6376
|
}
|
6377
6377
|
let T = "";
|
6378
6378
|
if (!isNil(l.pageNo)) {
|
@@ -6487,7 +6487,7 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6487
6487
|
deep: !0
|
6488
6488
|
};
|
6489
6489
|
process.env.NODE_ENV !== "production" && !isVue2 && (o.onTrigger = (V) => {
|
6490
|
-
u ? v = V : u == !1 && !
|
6490
|
+
u ? v = V : u == !1 && !C._hotUpdating && (Array.isArray(v) ? v.push(V) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6491
6491
|
});
|
6492
6492
|
let u, c, _ = markRaw([]), d = markRaw([]), v;
|
6493
6493
|
const g = r.state.value[e];
|
@@ -6517,27 +6517,27 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6517
6517
|
function k(V, y) {
|
6518
6518
|
return function() {
|
6519
6519
|
setActivePinia(r);
|
6520
|
-
const
|
6520
|
+
const R = Array.from(arguments), L = [], F = [];
|
6521
6521
|
function I(M) {
|
6522
|
-
|
6522
|
+
L.push(M);
|
6523
6523
|
}
|
6524
6524
|
function D(M) {
|
6525
|
-
|
6525
|
+
F.push(M);
|
6526
6526
|
}
|
6527
6527
|
triggerSubscriptions(d, {
|
6528
|
-
args:
|
6528
|
+
args: R,
|
6529
6529
|
name: V,
|
6530
|
-
store:
|
6530
|
+
store: C,
|
6531
6531
|
after: I,
|
6532
6532
|
onError: D
|
6533
6533
|
});
|
6534
6534
|
let P;
|
6535
6535
|
try {
|
6536
|
-
P = y.apply(this && this.$id === e ? this :
|
6536
|
+
P = y.apply(this && this.$id === e ? this : C, R);
|
6537
6537
|
} catch (M) {
|
6538
|
-
throw triggerSubscriptions(
|
6538
|
+
throw triggerSubscriptions(F, M), M;
|
6539
6539
|
}
|
6540
|
-
return P instanceof Promise ? P.then((M) => (triggerSubscriptions(
|
6540
|
+
return P instanceof Promise ? P.then((M) => (triggerSubscriptions(L, M), M)).catch((M) => (triggerSubscriptions(F, M), Promise.reject(M))) : (triggerSubscriptions(L, P), P);
|
6541
6541
|
};
|
6542
6542
|
}
|
6543
6543
|
const N = /* @__PURE__ */ markRaw({
|
@@ -6552,36 +6552,36 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6552
6552
|
$patch: p,
|
6553
6553
|
$reset: T,
|
6554
6554
|
$subscribe(V, y = {}) {
|
6555
|
-
const
|
6555
|
+
const R = addSubscription(_, V, y.detached, () => L()), L = i.run(() => watch(() => r.state.value[e], (F) => {
|
6556
6556
|
(y.flush === "sync" ? c : u) && V({
|
6557
6557
|
storeId: e,
|
6558
6558
|
type: MutationType.direct,
|
6559
6559
|
events: v
|
6560
|
-
},
|
6560
|
+
}, F);
|
6561
6561
|
}, assign$1({}, o, y)));
|
6562
|
-
return
|
6562
|
+
return R;
|
6563
6563
|
},
|
6564
6564
|
$dispose: E
|
6565
|
-
},
|
6565
|
+
}, C = reactive(assign$1(
|
6566
6566
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6567
6567
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6568
6568
|
_hmrPayload: N
|
6569
6569
|
} : {},
|
6570
6570
|
O
|
6571
6571
|
));
|
6572
|
-
r._s.set(e,
|
6572
|
+
r._s.set(e, C);
|
6573
6573
|
const A = r._e.run(() => (i = effectScope(), i.run(() => t())));
|
6574
6574
|
for (const V in A) {
|
6575
6575
|
const y = A[V];
|
6576
6576
|
if (isRef(y) && !isComputed(y) || isReactive(y))
|
6577
6577
|
process.env.NODE_ENV !== "production" && n ? set(m.value, V, toRef(A, V)) : s || (g && shouldHydrate(y) && (isRef(y) ? y.value = g[V] : mergeReactiveObjects(y, g[V])), r.state.value[e][V] = y), process.env.NODE_ENV !== "production" && N.state.push(V);
|
6578
6578
|
else if (typeof y == "function") {
|
6579
|
-
const
|
6580
|
-
A[V] =
|
6579
|
+
const R = process.env.NODE_ENV !== "production" && n ? y : k(V, y);
|
6580
|
+
A[V] = R, process.env.NODE_ENV !== "production" && (N.actions[V] = y), l.actions[V] = y;
|
6581
6581
|
} else
|
6582
6582
|
process.env.NODE_ENV !== "production" && isComputed(y) && (N.getters[V] = s ? a.getters[V] : y, IS_CLIENT && (A._getters || (A._getters = markRaw([]))).push(V));
|
6583
6583
|
}
|
6584
|
-
if (assign$1(
|
6584
|
+
if (assign$1(C, A), assign$1(toRaw(C), A), Object.defineProperty(C, "$state", {
|
6585
6585
|
get: () => process.env.NODE_ENV !== "production" && n ? m.value : r.state.value[e],
|
6586
6586
|
set: (V) => {
|
6587
6587
|
if (process.env.NODE_ENV !== "production" && n)
|
@@ -6591,31 +6591,31 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6591
6591
|
});
|
6592
6592
|
}
|
6593
6593
|
}), process.env.NODE_ENV !== "production") {
|
6594
|
-
|
6595
|
-
|
6596
|
-
if (
|
6597
|
-
const
|
6598
|
-
typeof
|
6599
|
-
}
|
6600
|
-
set(
|
6601
|
-
}), Object.keys(
|
6602
|
-
|
6594
|
+
C._hotUpdate = markRaw((y) => {
|
6595
|
+
C._hotUpdating = !0, y._hmrPayload.state.forEach((R) => {
|
6596
|
+
if (R in C.$state) {
|
6597
|
+
const L = y.$state[R], F = C.$state[R];
|
6598
|
+
typeof L == "object" && isPlainObject(L) && isPlainObject(F) ? patchObject(L, F) : y.$state[R] = F;
|
6599
|
+
}
|
6600
|
+
set(C, R, toRef(y.$state, R));
|
6601
|
+
}), Object.keys(C.$state).forEach((R) => {
|
6602
|
+
R in y.$state || del(C, R);
|
6603
6603
|
}), u = !1, c = !1, r.state.value[e] = toRef(y._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6604
6604
|
u = !0;
|
6605
6605
|
});
|
6606
|
-
for (const
|
6607
|
-
const
|
6608
|
-
set(
|
6609
|
-
}
|
6610
|
-
for (const
|
6611
|
-
const
|
6612
|
-
set(
|
6613
|
-
}
|
6614
|
-
Object.keys(
|
6615
|
-
|
6616
|
-
}), Object.keys(
|
6617
|
-
|
6618
|
-
}),
|
6606
|
+
for (const R in y._hmrPayload.actions) {
|
6607
|
+
const L = y[R];
|
6608
|
+
set(C, R, k(R, L));
|
6609
|
+
}
|
6610
|
+
for (const R in y._hmrPayload.getters) {
|
6611
|
+
const L = y._hmrPayload.getters[R], F = s ? computed(() => (setActivePinia(r), L.call(C, C))) : L;
|
6612
|
+
set(C, R, F);
|
6613
|
+
}
|
6614
|
+
Object.keys(C._hmrPayload.getters).forEach((R) => {
|
6615
|
+
R in y._hmrPayload.getters || del(C, R);
|
6616
|
+
}), Object.keys(C._hmrPayload.actions).forEach((R) => {
|
6617
|
+
R in y._hmrPayload.actions || del(C, R);
|
6618
|
+
}), C._hmrPayload = y._hmrPayload, C._getters = y._getters, C._hotUpdating = !1;
|
6619
6619
|
});
|
6620
6620
|
const V = {
|
6621
6621
|
writable: !0,
|
@@ -6623,8 +6623,8 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6623
6623
|
enumerable: !1
|
6624
6624
|
};
|
6625
6625
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((y) => {
|
6626
|
-
Object.defineProperty(
|
6627
|
-
value:
|
6626
|
+
Object.defineProperty(C, y, {
|
6627
|
+
value: C[y],
|
6628
6628
|
...V
|
6629
6629
|
});
|
6630
6630
|
});
|
@@ -6632,22 +6632,22 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6632
6632
|
return r._p.forEach((V) => {
|
6633
6633
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6634
6634
|
const y = i.run(() => V({
|
6635
|
-
store:
|
6635
|
+
store: C,
|
6636
6636
|
app: r._a,
|
6637
6637
|
pinia: r,
|
6638
6638
|
options: l
|
6639
6639
|
}));
|
6640
|
-
Object.keys(y || {}).forEach((
|
6640
|
+
Object.keys(y || {}).forEach((R) => C._customProperties.add(R)), assign$1(C, y);
|
6641
6641
|
} else
|
6642
|
-
assign$1(
|
6643
|
-
store:
|
6642
|
+
assign$1(C, i.run(() => V({
|
6643
|
+
store: C,
|
6644
6644
|
app: r._a,
|
6645
6645
|
pinia: r,
|
6646
6646
|
options: l
|
6647
6647
|
})));
|
6648
|
-
}), process.env.NODE_ENV !== "production" &&
|
6648
|
+
}), 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
|
6649
6649
|
state: () => new MyClass()
|
6650
|
-
Found in store "${
|
6650
|
+
Found in store "${C.$id}".`), g && s && a.hydrate && a.hydrate(C.$state, g), u = !0, c = !0, C;
|
6651
6651
|
}
|
6652
6652
|
function defineStore(e, t, a) {
|
6653
6653
|
let r, n;
|
@@ -7342,11 +7342,11 @@ function useMagicKeys(e = {}) {
|
|
7342
7342
|
var T, E;
|
7343
7343
|
const k = (T = m.key) == null ? void 0 : T.toLowerCase(), N = (E = m.code) == null ? void 0 : E.toLowerCase(), O = [N, k].filter(Boolean);
|
7344
7344
|
N && (p ? s.add(m.code) : s.delete(m.code));
|
7345
|
-
for (const
|
7346
|
-
c.add(
|
7347
|
-
k === "meta" && !p ? (u.forEach((
|
7348
|
-
s.delete(
|
7349
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...s, ...O].forEach((
|
7345
|
+
for (const C of O)
|
7346
|
+
c.add(C), _(C, p);
|
7347
|
+
k === "meta" && !p ? (u.forEach((C) => {
|
7348
|
+
s.delete(C), _(C, !1);
|
7349
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...s, ...O].forEach((C) => u.add(C));
|
7350
7350
|
}
|
7351
7351
|
a && (useEventListener(a, "keydown", (m) => (v(m, !0), i(m)), { passive: n }), useEventListener(a, "keyup", (m) => (v(m, !1), i(m)), { passive: n }), useEventListener("blur", d, { passive: !0 }), useEventListener("focus", d, { passive: !0 }));
|
7352
7352
|
const g = new Proxy(o, {
|
@@ -7382,26 +7382,26 @@ function useWindowSize(e = {}) {
|
|
7382
7382
|
}
|
7383
7383
|
const KG_MODAL_BORDER_WIDTH = 1, KG_MODAL_SCROLL_WIDTH = 17;
|
7384
7384
|
function useDragToMove(e) {
|
7385
|
-
var y,
|
7385
|
+
var y, R, L;
|
7386
7386
|
const {
|
7387
7387
|
getProps: t,
|
7388
7388
|
domRef: a
|
7389
7389
|
} = e;
|
7390
|
-
if (((
|
7390
|
+
if (((L = (R = (y = useKg().option.value) == null ? void 0 : y.KgModal) == null ? void 0 : R.drag) == null ? void 0 : L.on) !== !0)
|
7391
7391
|
return;
|
7392
7392
|
const {
|
7393
7393
|
width: n,
|
7394
7394
|
height: i
|
7395
7395
|
} = useWindowSize();
|
7396
7396
|
let s = computed(() => {
|
7397
|
-
var
|
7398
|
-
return (M = (P = (D = (I = (
|
7397
|
+
var F, I, D, P, M;
|
7398
|
+
return (M = (P = (D = (I = (F = a.value) == null ? void 0 : F.parentElement) == null ? void 0 : I.parentElement) == null ? void 0 : D.parentElement) == null ? void 0 : P.parentElement) != null ? M : null;
|
7399
7399
|
}), l = computed(() => {
|
7400
|
-
var
|
7401
|
-
return (P = (D = (I = (
|
7400
|
+
var F, I, D, P;
|
7401
|
+
return (P = (D = (I = (F = a.value) == null ? void 0 : F.parentElement) == null ? void 0 : I.parentElement) == null ? void 0 : D.parentElement) != null ? P : null;
|
7402
7402
|
}), o = computed(() => {
|
7403
|
-
var
|
7404
|
-
return (I = (
|
7403
|
+
var F, I;
|
7404
|
+
return (I = (F = s.value) == null ? void 0 : F.querySelector(".ant-modal-header")) != null ? I : null;
|
7405
7405
|
}), u = 0, c = 0, _ = 0, d = 0, v = 0, g = 0, m = 0, p = 0, T = {
|
7406
7406
|
remove: () => {
|
7407
7407
|
}
|
@@ -7409,42 +7409,42 @@ function useDragToMove(e) {
|
|
7409
7409
|
remove: () => {
|
7410
7410
|
}
|
7411
7411
|
};
|
7412
|
-
watch([() => t.value.visible, () => t.value.kgIsDragToMove, s, l, o], ([
|
7413
|
-
!
|
7412
|
+
watch([() => t.value.visible, () => t.value.kgIsDragToMove, s, l, o], ([F, I, D, P, M]) => {
|
7413
|
+
!F || !I || !D || !P || !M || getComputedStyle(D).display === "none" || D.getAttribute("data-drag") !== null && !t.value.destroyOnClose || (D.setAttribute("data-drag", "true"), M.style.cursor = "move", M.onmousedown = C);
|
7414
7414
|
}, {
|
7415
7415
|
immediate: !0
|
7416
7416
|
});
|
7417
|
-
function k(
|
7418
|
-
return
|
7419
|
-
remove: () =>
|
7417
|
+
function k(F, I, D) {
|
7418
|
+
return F.addEventListener(I, D), {
|
7419
|
+
remove: () => F.removeEventListener(I, D)
|
7420
7420
|
};
|
7421
7421
|
}
|
7422
7422
|
function N() {
|
7423
7423
|
T.remove(), E.remove();
|
7424
7424
|
}
|
7425
|
-
function O(
|
7425
|
+
function O(F) {
|
7426
7426
|
const {
|
7427
7427
|
event: I
|
7428
|
-
} =
|
7428
|
+
} = F != null ? F : {};
|
7429
7429
|
if (!l.value)
|
7430
7430
|
return;
|
7431
7431
|
let D = I.clientX - v, P = I.clientY - g;
|
7432
7432
|
-D > u ? D = -u : D > c && (D = c), -P > _ ? P = -_ : P > d && (P = d);
|
7433
|
-
const M = m + D,
|
7434
|
-
l.value.style.left = `${M}px`, l.value.style.top = `${
|
7433
|
+
const M = m + D, B = p + P;
|
7434
|
+
l.value.style.left = `${M}px`, l.value.style.top = `${B}px`;
|
7435
7435
|
}
|
7436
|
-
function
|
7437
|
-
!
|
7436
|
+
function C(F) {
|
7437
|
+
!F || !s.value || !l.value || !o.value || (document.body.classList.add("kg-modal-dragging"), v = F.clientX, g = F.clientY, u = l.value.offsetLeft, c = n.value - l.value.offsetLeft - o.value.offsetWidth - KG_MODAL_BORDER_WIDTH * 2, _ = l.value.offsetTop, d = i.value - l.value.offsetTop - o.value.offsetHeight - KG_MODAL_BORDER_WIDTH, m = Number(getComputedStyle(l.value).left.replace(/px/g, "")), p = Number(getComputedStyle(l.value).top.replace(/px/g, "")), T = k(document.documentElement, "mousemove", (I) => A({
|
7438
7438
|
event: I
|
7439
7439
|
})), E = k(document.documentElement, "mouseup", (I) => V({
|
7440
7440
|
event: I
|
7441
7441
|
})));
|
7442
7442
|
}
|
7443
|
-
function A(
|
7444
|
-
O(
|
7443
|
+
function A(F) {
|
7444
|
+
O(F);
|
7445
7445
|
}
|
7446
|
-
function V(
|
7447
|
-
O(
|
7446
|
+
function V(F) {
|
7447
|
+
O(F), N(), document.body.classList.remove("kg-modal-dragging");
|
7448
7448
|
}
|
7449
7449
|
onUnmounted(() => {
|
7450
7450
|
N();
|
@@ -7460,32 +7460,32 @@ function useDragToResize(e) {
|
|
7460
7460
|
height: i
|
7461
7461
|
} = useWindowSize(), s = 48, l = 400;
|
7462
7462
|
let o = null, u = computed(() => {
|
7463
|
-
var M,
|
7464
|
-
return (x = (w = (
|
7463
|
+
var M, B, w, x;
|
7464
|
+
return (x = (w = (B = (M = r.value) == null ? void 0 : M.parentElement) == null ? void 0 : B.parentElement) == null ? void 0 : w.parentElement) != null ? x : null;
|
7465
7465
|
}), c = computed(() => {
|
7466
|
-
var M,
|
7467
|
-
return (
|
7466
|
+
var M, B;
|
7467
|
+
return (B = (M = u.value) == null ? void 0 : M.querySelector(".ant-modal-header")) != null ? B : null;
|
7468
7468
|
}), _ = computed(() => {
|
7469
|
-
var M,
|
7470
|
-
return (
|
7469
|
+
var M, B;
|
7470
|
+
return (B = (M = u.value) == null ? void 0 : M.querySelector(".ant-modal-footer")) != null ? B : null;
|
7471
7471
|
});
|
7472
7472
|
const d = ref(t.width !== void 0 ? t.width : "80%"), v = computed(() => {
|
7473
|
-
var
|
7474
|
-
const M = (
|
7473
|
+
var B;
|
7474
|
+
const M = (B = a.value.kgMinWidth) != null ? B : l;
|
7475
7475
|
return Math.min(M, n.value);
|
7476
7476
|
}), g = computed(() => {
|
7477
|
-
var
|
7478
|
-
const M = (
|
7477
|
+
var B;
|
7478
|
+
const M = (B = a.value.kgMaxWidth) != null ? B : n.value;
|
7479
7479
|
return Math.min(M, n.value);
|
7480
7480
|
}), m = computed(() => {
|
7481
|
-
var
|
7482
|
-
const M = (
|
7481
|
+
var B;
|
7482
|
+
const M = (B = a.value.kgMaxHeight) != null ? B : i.value;
|
7483
7483
|
return Math.min(M, i.value);
|
7484
7484
|
}), p = ref(0);
|
7485
7485
|
let T = 0, E = 0, k = 0, N = 0, O = {
|
7486
7486
|
remove: () => {
|
7487
7487
|
}
|
7488
|
-
},
|
7488
|
+
}, C = {
|
7489
7489
|
remove: () => {
|
7490
7490
|
}
|
7491
7491
|
};
|
@@ -7494,64 +7494,64 @@ function useDragToResize(e) {
|
|
7494
7494
|
});
|
7495
7495
|
const A = watch([u], ([M]) => {
|
7496
7496
|
if (M) {
|
7497
|
-
const
|
7498
|
-
|
7499
|
-
p.value =
|
7500
|
-
}), o.observe(
|
7497
|
+
const B = M.querySelector("div.ant-modal-content");
|
7498
|
+
B ? (A(), o = new ResizeObserver(() => {
|
7499
|
+
p.value = B.offsetHeight;
|
7500
|
+
}), o.observe(B)) : o == null || o.disconnect();
|
7501
7501
|
}
|
7502
7502
|
}, {
|
7503
7503
|
immediate: !0
|
7504
7504
|
});
|
7505
|
-
watch([u, m, p], ([M,
|
7506
|
-
M && w >
|
7505
|
+
watch([u, m, p], ([M, B, w]) => {
|
7506
|
+
M && w > B && (M.style.height = `${B}px`);
|
7507
7507
|
}, {
|
7508
7508
|
immediate: !0
|
7509
7509
|
});
|
7510
|
-
function V(M,
|
7511
|
-
return M.addEventListener(
|
7512
|
-
remove: () => M.removeEventListener(
|
7510
|
+
function V(M, B, w) {
|
7511
|
+
return M.addEventListener(B, w), {
|
7512
|
+
remove: () => M.removeEventListener(B, w)
|
7513
7513
|
};
|
7514
7514
|
}
|
7515
7515
|
function y() {
|
7516
|
-
O.remove(),
|
7516
|
+
O.remove(), C.remove();
|
7517
7517
|
}
|
7518
|
-
function
|
7518
|
+
function R(M) {
|
7519
7519
|
if (!u.value) {
|
7520
7520
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7521
7521
|
return;
|
7522
7522
|
}
|
7523
7523
|
const {
|
7524
|
-
event:
|
7525
|
-
} = M != null ? M : {}, w =
|
7524
|
+
event: B
|
7525
|
+
} = M != null ? M : {}, w = B.pageX;
|
7526
7526
|
let x = Math.min(g.value, Math.max(v.value, T + w - k));
|
7527
7527
|
u.value.offsetLeft + x > n.value && (x = n.value - u.value.offsetLeft);
|
7528
7528
|
const K = u.value.offsetWidth, W = Number(getComputedStyle(u.value).left.replace(/px/g, "")) + (x - K) / 2;
|
7529
7529
|
x !== K && (d.value = `${x}px`, u.value.style.width = `${x}px`, u.value.style.left = `${W}px`);
|
7530
7530
|
}
|
7531
|
-
function
|
7531
|
+
function L(M) {
|
7532
7532
|
var le, ue, ce, oe, q, H;
|
7533
7533
|
if (!u.value) {
|
7534
7534
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7535
7535
|
return;
|
7536
7536
|
}
|
7537
7537
|
const {
|
7538
|
-
event:
|
7539
|
-
} = M != null ? M : {}, w =
|
7538
|
+
event: B
|
7539
|
+
} = M != null ? M : {}, w = B.pageY, x = (ue = (le = c.value) == null ? void 0 : le.clientHeight) != null ? ue : s, K = (oe = (ce = _.value) == null ? void 0 : ce.clientHeight) != null ? oe : 0, U = Math.min((H = (q = a.value) == null ? void 0 : q.kgMinHeight) != null ? H : x + K + KG_MODAL_BORDER_WIDTH * 2, i.value);
|
7540
7540
|
let W = Math.min(m.value, Math.max(U, E + w - N));
|
7541
7541
|
u.value.offsetTop + W > i.value && (W = i.value - u.value.offsetTop);
|
7542
7542
|
const X = u.value.offsetHeight, se = Number(getComputedStyle(u.value).top.replace(/px/g, "")) + (W - X) / 2;
|
7543
7543
|
W !== X && (u.value.style.height = `${W}px`, u.value.style.top = `${se}px`);
|
7544
7544
|
}
|
7545
|
-
function
|
7545
|
+
function F(M) {
|
7546
7546
|
const {
|
7547
|
-
event:
|
7547
|
+
event: B,
|
7548
7548
|
handleType: w
|
7549
7549
|
} = M != null ? M : {};
|
7550
7550
|
if (!u.value) {
|
7551
7551
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7552
7552
|
return;
|
7553
7553
|
}
|
7554
|
-
switch (
|
7554
|
+
switch (B.pageX, B.pageY, w) {
|
7555
7555
|
case "top-left":
|
7556
7556
|
break;
|
7557
7557
|
case "top":
|
@@ -7559,22 +7559,22 @@ function useDragToResize(e) {
|
|
7559
7559
|
case "top-right":
|
7560
7560
|
break;
|
7561
7561
|
case "right": {
|
7562
|
-
|
7563
|
-
event:
|
7562
|
+
R({
|
7563
|
+
event: B
|
7564
7564
|
});
|
7565
7565
|
break;
|
7566
7566
|
}
|
7567
7567
|
case "bottom-right": {
|
7568
|
-
|
7569
|
-
event:
|
7570
|
-
}),
|
7571
|
-
event:
|
7568
|
+
R({
|
7569
|
+
event: B
|
7570
|
+
}), L({
|
7571
|
+
event: B
|
7572
7572
|
});
|
7573
7573
|
break;
|
7574
7574
|
}
|
7575
7575
|
case "bottom": {
|
7576
|
-
|
7577
|
-
event:
|
7576
|
+
L({
|
7577
|
+
event: B
|
7578
7578
|
});
|
7579
7579
|
break;
|
7580
7580
|
}
|
@@ -7582,28 +7582,28 @@ function useDragToResize(e) {
|
|
7582
7582
|
}
|
7583
7583
|
function I(M) {
|
7584
7584
|
const {
|
7585
|
-
event:
|
7585
|
+
event: B,
|
7586
7586
|
handleType: w
|
7587
7587
|
} = M != null ? M : {};
|
7588
|
-
if (
|
7588
|
+
if (B.stopPropagation(), B.preventDefault(), y(), !(B instanceof MouseEvent && B.which !== 1)) {
|
7589
7589
|
if (!u.value) {
|
7590
7590
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7591
7591
|
return;
|
7592
7592
|
}
|
7593
|
-
k =
|
7593
|
+
k = B.pageX, N = B.pageY, T = u.value.offsetWidth, E = u.value.offsetHeight, Number(getComputedStyle(u.value).top.replace(/px/g, "")), O = V(document.documentElement, "mousemove", (x) => D({
|
7594
7594
|
event: x,
|
7595
7595
|
handleType: w
|
7596
|
-
})),
|
7596
|
+
})), C = V(document.documentElement, "mouseup", (x) => P({
|
7597
7597
|
event: x,
|
7598
7598
|
handleType: w
|
7599
7599
|
}));
|
7600
7600
|
}
|
7601
7601
|
}
|
7602
7602
|
function D(M) {
|
7603
|
-
|
7603
|
+
F(M);
|
7604
7604
|
}
|
7605
7605
|
function P(M) {
|
7606
|
-
|
7606
|
+
F(M), y();
|
7607
7607
|
}
|
7608
7608
|
return onBeforeUnmount(() => {
|
7609
7609
|
o == null || o.disconnect();
|
@@ -7945,7 +7945,7 @@ const getProps$H = () => ({
|
|
7945
7945
|
remove: () => A.removeEventListener(V, y)
|
7946
7946
|
};
|
7947
7947
|
}
|
7948
|
-
function
|
7948
|
+
function C(A) {
|
7949
7949
|
A.stopPropagation(), A.preventDefault();
|
7950
7950
|
}
|
7951
7951
|
return onUnmounted(() => {
|
@@ -7958,7 +7958,7 @@ const getProps$H = () => ({
|
|
7958
7958
|
style: d.value
|
7959
7959
|
}, [createVNode("div", {
|
7960
7960
|
class: "kg-resizable-handle",
|
7961
|
-
onClick:
|
7961
|
+
onClick: C,
|
7962
7962
|
onMousedown: N
|
7963
7963
|
}, [createVNode("div", {
|
7964
7964
|
class: "kg-resizable-handle-line"
|
@@ -8073,9 +8073,9 @@ const getProps$H = () => ({
|
|
8073
8073
|
a("update:visible", !1);
|
8074
8074
|
}
|
8075
8075
|
async function g() {
|
8076
|
-
var p, T, E, k, N, O,
|
8076
|
+
var p, T, E, k, N, O, C;
|
8077
8077
|
if (_.value) {
|
8078
|
-
const A = (T = (p = u.kgTable.selectedRows) == null ? void 0 : p.value) != null ? T : [], V = (E = A.map((
|
8078
|
+
const A = (T = (p = u.kgTable.selectedRows) == null ? void 0 : p.value) != null ? T : [], V = (E = A.map((R) => R[d.value])) != null ? E : [];
|
8079
8079
|
if (await o.kgForm.store.emit(o.kgForm.formID, "lookupBeforeOk", {
|
8080
8080
|
context: s,
|
8081
8081
|
isMultiple: !0,
|
@@ -8093,14 +8093,14 @@ const getProps$H = () => ({
|
|
8093
8093
|
var_nam: n
|
8094
8094
|
}), a("update:visible", !1);
|
8095
8095
|
} else {
|
8096
|
-
const A = (O = (N = (k = u.kgTable.selectedRows) == null ? void 0 : k.value) == null ? void 0 : N[0]) != null ? O : null, V = (
|
8096
|
+
const A = (O = (N = (k = u.kgTable.selectedRows) == null ? void 0 : k.value) == null ? void 0 : N[0]) != null ? O : null, V = (C = A == null ? void 0 : A[d.value]) != null ? C : "", y = A ? [A] : [], R = [V];
|
8097
8097
|
if (await o.kgForm.store.emit(o.kgForm.formID, "lookupBeforeOk", {
|
8098
8098
|
context: s,
|
8099
8099
|
isMultiple: !1,
|
8100
8100
|
row: A,
|
8101
8101
|
rows: y,
|
8102
8102
|
value: V,
|
8103
|
-
values:
|
8103
|
+
values: R,
|
8104
8104
|
var_nam: n
|
8105
8105
|
}))
|
8106
8106
|
return;
|
@@ -8111,7 +8111,7 @@ const getProps$H = () => ({
|
|
8111
8111
|
row: A,
|
8112
8112
|
rows: y,
|
8113
8113
|
value: V,
|
8114
|
-
values:
|
8114
|
+
values: R,
|
8115
8115
|
var_nam: n
|
8116
8116
|
}), a("update:visible", !1);
|
8117
8117
|
}
|
@@ -8203,24 +8203,24 @@ const getProps$H = () => ({
|
|
8203
8203
|
}), OPTIONS = KG__VAR_CONFIG_INPUT__VALIDATION_TYPE.OPTIONS, REGULAR_EXPRESSION = KG__VAR_CONFIG_INPUT__VALIDATION_TYPE.REGULAR_EXPRESSION, ANY = KG__VAR_CONFIG_INPUT__DATA_TYPE.ANY, INTEGER = KG__VAR_CONFIG_INPUT__DATA_TYPE.INTEGER, FLOAT = KG__VAR_CONFIG_INPUT__DATA_TYPE.FLOAT, LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LETTER, UPPER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.UPPER_CASE_LETTER, LOWER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LOWER_CASE_LETTER, JSON$1 = KG__VAR_CONFIG_INPUT__DATA_TYPE.JSON;
|
8204
8204
|
function _useFormRules(e) {
|
8205
8205
|
const t = useKg(), a = useKgVar(), r = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), n = computed(() => a.store.getVarConfigInput(a.formID, e.kgVarName)), i = computed(() => {
|
8206
|
-
var O,
|
8207
|
-
return (
|
8206
|
+
var O, C;
|
8207
|
+
return (C = a.kgSubmit.getVarSubmitDetails({
|
8208
8208
|
buttonVarName: (O = a.kgButton.currentButton.value) == null ? void 0 : O.var_nam,
|
8209
8209
|
varName: e.kgVarName
|
8210
|
-
})[0]) != null ?
|
8210
|
+
})[0]) != null ? C : null;
|
8211
8211
|
}), s = ref([]), l = computed(() => {
|
8212
|
-
var O,
|
8212
|
+
var O, C;
|
8213
8213
|
return [
|
8214
8214
|
...s.value,
|
8215
8215
|
...(O = e.kgRules) != null ? O : [],
|
8216
|
-
...(
|
8216
|
+
...(C = a.kgSubmit.formRules.value[e.kgVarName]) != null ? C : []
|
8217
8217
|
];
|
8218
8218
|
}), o = ref(!1);
|
8219
|
-
watch(l, (O,
|
8220
|
-
isEqual(O,
|
8219
|
+
watch(l, (O, C) => {
|
8220
|
+
isEqual(O, C) || (o.value = !0, nextTick().then(() => {
|
8221
8221
|
o.value = !1;
|
8222
8222
|
}));
|
8223
|
-
}, {}), watch([r, i, n], async ([O,
|
8223
|
+
}, {}), watch([r, i, n], async ([O, C, A]) => {
|
8224
8224
|
var V;
|
8225
8225
|
(V = a.kgSubmit.formRef.value) == null || V.clearValidate(), await nextTick(), setTimeout(() => {
|
8226
8226
|
s.value = (() => {
|
@@ -8231,7 +8231,7 @@ function _useFormRules(e) {
|
|
8231
8231
|
return y;
|
8232
8232
|
break;
|
8233
8233
|
case KG_FORM_CONTEXT.SUBMIT:
|
8234
|
-
if ((
|
8234
|
+
if ((C == null ? void 0 : C.visible_flag) === 0)
|
8235
8235
|
return y;
|
8236
8236
|
break;
|
8237
8237
|
}
|
@@ -8243,7 +8243,7 @@ function _useFormRules(e) {
|
|
8243
8243
|
});
|
8244
8244
|
break;
|
8245
8245
|
case KG_FORM_CONTEXT.SUBMIT:
|
8246
|
-
(
|
8246
|
+
(C == null ? void 0 : C.required_flag) === 1 && y.push({
|
8247
8247
|
required: !0,
|
8248
8248
|
message: t.t("kg.required")
|
8249
8249
|
});
|
@@ -8336,58 +8336,58 @@ function _useFormRules(e) {
|
|
8336
8336
|
function u(O) {
|
8337
8337
|
return O == null || O === "" || typeof O == "string" && O.trim() === "";
|
8338
8338
|
}
|
8339
|
-
function c(O,
|
8340
|
-
return u(
|
8339
|
+
function c(O, C) {
|
8340
|
+
return u(C) || /^-?\d+$/.test(C) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidInteger"));
|
8341
8341
|
}
|
8342
|
-
function _(O,
|
8343
|
-
return u(
|
8342
|
+
function _(O, C) {
|
8343
|
+
return u(C) || /^-?\d+(\.\d+)?$/.test(C) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidFloat"));
|
8344
8344
|
}
|
8345
|
-
function d(O,
|
8346
|
-
return u(
|
8345
|
+
function d(O, C) {
|
8346
|
+
return u(C) || /^[A-Za-z]*$/.test(C) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLetter"));
|
8347
8347
|
}
|
8348
|
-
function v(O,
|
8349
|
-
return u(
|
8348
|
+
function v(O, C) {
|
8349
|
+
return u(C) || /^[A-Z]*$/.test(C) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidUpperLetter"));
|
8350
8350
|
}
|
8351
|
-
function g(O,
|
8352
|
-
return u(
|
8351
|
+
function g(O, C) {
|
8352
|
+
return u(C) || /^[a-z]*$/.test(C) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLowerLetter"));
|
8353
8353
|
}
|
8354
|
-
function m(O,
|
8355
|
-
if (u(
|
8354
|
+
function m(O, C) {
|
8355
|
+
if (u(C))
|
8356
8356
|
return Promise.resolve();
|
8357
8357
|
try {
|
8358
|
-
window.JSON.parse(String(
|
8358
|
+
window.JSON.parse(String(C));
|
8359
8359
|
} catch {
|
8360
8360
|
return Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidJSON"));
|
8361
8361
|
}
|
8362
8362
|
return Promise.resolve();
|
8363
8363
|
}
|
8364
|
-
function p(O,
|
8365
|
-
var V, y,
|
8366
|
-
if (u(
|
8364
|
+
function p(O, C) {
|
8365
|
+
var V, y, R, L, F, I, D, P;
|
8366
|
+
if (u(C))
|
8367
8367
|
return Promise.resolve();
|
8368
|
-
const A = Number(
|
8369
|
-
return !isNil((V = n.value) == null ? void 0 : V.min) && ((y = n.value) == null ? void 0 : y.min_include_flg) === 1 && A < ((
|
8368
|
+
const A = Number(C);
|
8369
|
+
return !isNil((V = n.value) == null ? void 0 : V.min) && ((y = n.value) == null ? void 0 : y.min_include_flg) === 1 && A < ((R = n.value) == null ? void 0 : R.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGTE", [(L = n.value) == null ? void 0 : L.min])) : !isNil((F = n.value) == null ? void 0 : F.min) && ((I = n.value) == null ? void 0 : I.min_include_flg) !== 1 && A <= ((D = n.value) == null ? void 0 : D.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGT", [(P = n.value) == null ? void 0 : P.min])) : Promise.resolve();
|
8370
8370
|
}
|
8371
|
-
function T(O,
|
8372
|
-
var V, y,
|
8373
|
-
if (u(
|
8371
|
+
function T(O, C) {
|
8372
|
+
var V, y, R, L, F, I, D, P;
|
8373
|
+
if (u(C))
|
8374
8374
|
return Promise.resolve();
|
8375
|
-
const A = Number(
|
8376
|
-
return !isNil((V = n.value) == null ? void 0 : V.max) && ((y = n.value) == null ? void 0 : y.max_include_flg) === 1 && A > ((
|
8377
|
-
}
|
8378
|
-
function E(O,
|
8379
|
-
var V, y,
|
8380
|
-
const A = String(
|
8381
|
-
return !isNil((V = n.value) == null ? void 0 : V.min_length) && A.length < ((y = n.value) == null ? void 0 : y.min_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMinLength", [(
|
8382
|
-
}
|
8383
|
-
function k(O,
|
8384
|
-
var V, y,
|
8385
|
-
const A = String(
|
8386
|
-
return !isNil((V = n.value) == null ? void 0 : V.max_length) && A.length > ((y = n.value) == null ? void 0 : y.max_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMaxLength", [(
|
8387
|
-
}
|
8388
|
-
function N(O,
|
8389
|
-
var
|
8390
|
-
const A = String(
|
8375
|
+
const A = Number(C);
|
8376
|
+
return !isNil((V = n.value) == null ? void 0 : V.max) && ((y = n.value) == null ? void 0 : y.max_include_flg) === 1 && A > ((R = n.value) == null ? void 0 : R.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLTE", [(L = n.value) == null ? void 0 : L.max])) : !isNil((F = n.value) == null ? void 0 : F.max) && ((I = n.value) == null ? void 0 : I.max_include_flg) !== 1 && A >= ((D = n.value) == null ? void 0 : D.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLT", [(P = n.value) == null ? void 0 : P.max])) : Promise.resolve();
|
8377
|
+
}
|
8378
|
+
function E(O, C) {
|
8379
|
+
var V, y, R;
|
8380
|
+
const A = String(C);
|
8381
|
+
return !isNil((V = n.value) == null ? void 0 : V.min_length) && A.length < ((y = n.value) == null ? void 0 : y.min_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMinLength", [(R = n.value) == null ? void 0 : R.min_length])) : Promise.resolve();
|
8382
|
+
}
|
8383
|
+
function k(O, C) {
|
8384
|
+
var V, y, R;
|
8385
|
+
const A = String(C);
|
8386
|
+
return !isNil((V = n.value) == null ? void 0 : V.max_length) && A.length > ((y = n.value) == null ? void 0 : y.max_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMaxLength", [(R = n.value) == null ? void 0 : R.max_length])) : Promise.resolve();
|
8387
|
+
}
|
8388
|
+
function N(O, C) {
|
8389
|
+
var R;
|
8390
|
+
const A = String(C), V = String((R = n.value) == null ? void 0 : R.regular_expression);
|
8391
8391
|
return V ? new RegExp(V).test(A) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForRegularExpression", [V])) : Promise.resolve();
|
8392
8392
|
}
|
8393
8393
|
return {
|
@@ -8455,32 +8455,32 @@ function useKgFormItemSelect(e) {
|
|
8455
8455
|
var N, O;
|
8456
8456
|
let k = E;
|
8457
8457
|
if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
|
8458
|
-
let
|
8459
|
-
if (
|
8460
|
-
const V =
|
8461
|
-
|
8458
|
+
let C = E.slice(1, -1), A = "";
|
8459
|
+
if (C.includes(".")) {
|
8460
|
+
const V = C.split(".");
|
8461
|
+
C = V[0], A = V[1];
|
8462
8462
|
}
|
8463
|
-
n.value &&
|
8463
|
+
n.value && C in n.value && (A ? k = (O = (N = n.value[`${C}_obj`]) == null ? void 0 : N[A]) != null ? O : void 0 : k = n.value[C], k || (k = "__KG__FORM_ITEM_SELECT__PID__"));
|
8464
8464
|
}
|
8465
8465
|
return k;
|
8466
8466
|
}), p;
|
8467
8467
|
});
|
8468
8468
|
async function g() {
|
8469
|
-
var O,
|
8469
|
+
var O, C, A, V, y, R, L, F, I, D, P, M, B;
|
8470
8470
|
let p = ref([]);
|
8471
|
-
const T = (O = s.value) == null ? void 0 : O.data_source_type, E = (A = (
|
8471
|
+
const T = (O = s.value) == null ? void 0 : O.data_source_type, E = (A = (C = s.value) == null ? void 0 : C.val_clm) != null ? A : "", k = (y = (V = s.value) == null ? void 0 : V.lbl_clm) != null ? y : "", N = ref({});
|
8472
8472
|
try {
|
8473
8473
|
u.value = !0;
|
8474
8474
|
const w = KgUtil.parseParams(v.value, null, a);
|
8475
8475
|
if (!await i.kgForm.store.emit(i.formID, "selectBeforeRequest", {
|
8476
|
-
context: (
|
8476
|
+
context: (R = t.kgContext) != null ? R : KG_FORM_CONTEXT.SUBMIT,
|
8477
8477
|
params: w,
|
8478
8478
|
response: N,
|
8479
8479
|
varName: r
|
8480
8480
|
}))
|
8481
8481
|
switch (T) {
|
8482
8482
|
case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.API: {
|
8483
|
-
const K = (
|
8483
|
+
const K = (L = s.value) == null ? void 0 : L.cmd, U = (I = (F = s.value) == null ? void 0 : F.cmd_method) != null ? I : "GET";
|
8484
8484
|
if (!K || !E || !k) {
|
8485
8485
|
____ERROR____("KgFormItemSelect.requestDatas() | \u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
8486
8486
|
cmd: K,
|
@@ -8533,7 +8533,7 @@ function useKgFormItemSelect(e) {
|
|
8533
8533
|
});
|
8534
8534
|
}
|
8535
8535
|
await i.kgForm.store.emit(i.formID, "selectBeforeSetDatas", {
|
8536
|
-
context: (
|
8536
|
+
context: (B = t.kgContext) != null ? B : KG_FORM_CONTEXT.SUBMIT,
|
8537
8537
|
datas: p,
|
8538
8538
|
isCopying: i.isCopying.value,
|
8539
8539
|
isCreating: i.isCreating.value,
|
@@ -8550,10 +8550,10 @@ function useKgFormItemSelect(e) {
|
|
8550
8550
|
}
|
8551
8551
|
}
|
8552
8552
|
function m(p) {
|
8553
|
-
var k, N, O,
|
8553
|
+
var k, N, O, C, A;
|
8554
8554
|
if (!p)
|
8555
8555
|
return [];
|
8556
|
-
const T = (N = (k = s.value) == null ? void 0 : k.val_clm) != null ? N : "", E = (
|
8556
|
+
const T = (N = (k = s.value) == null ? void 0 : k.val_clm) != null ? N : "", E = (C = (O = s.value) == null ? void 0 : O.val_data_type) != null ? C : KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT;
|
8557
8557
|
switch (E) {
|
8558
8558
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.STRING:
|
8559
8559
|
p.forEach((V) => {
|
@@ -8587,8 +8587,8 @@ function useKgFormItemSelect(e) {
|
|
8587
8587
|
const V = o;
|
8588
8588
|
if ((A = V.value) != null && A.excludeValues)
|
8589
8589
|
return p.filter((y) => {
|
8590
|
-
var
|
8591
|
-
return !((
|
8590
|
+
var R;
|
8591
|
+
return !((R = V.value.excludeValues) != null && R.includes(y[T]));
|
8592
8592
|
});
|
8593
8593
|
}
|
8594
8594
|
break;
|
@@ -8675,36 +8675,37 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8675
8675
|
});
|
8676
8676
|
}
|
8677
8677
|
return () => {
|
8678
|
+
var k;
|
8678
8679
|
let T, E;
|
8679
8680
|
return createVNode("div", {
|
8680
8681
|
class: "kg-form-item--checkbox-group"
|
8681
|
-
}, [createVNode(Form.ItemRest, null, {
|
8682
|
+
}, [((k = s.value) == null ? void 0 : k.isShowSelectAll) !== !1 && createVNode(Fragment, null, [createVNode(Form.ItemRest, null, {
|
8682
8683
|
default: () => [createVNode(Checkbox, {
|
8683
8684
|
checked: d.value,
|
8684
|
-
"onUpdate:checked": (
|
8685
|
+
"onUpdate:checked": (N) => d.value = N,
|
8685
8686
|
indeterminate: v.value,
|
8686
8687
|
onChange: m
|
8687
8688
|
}, _isSlot$e(T = r.t("kg.selectAll")) ? T : {
|
8688
8689
|
default: () => [T]
|
8689
8690
|
})]
|
8690
|
-
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
8691
|
+
}), createVNode(Divider, null, null)]), createVNode(Checkbox.Group, {
|
8691
8692
|
value: e.value,
|
8692
8693
|
"onUpdate:value": p
|
8693
8694
|
}, {
|
8694
8695
|
default: () => [createVNode(Row, {
|
8695
8696
|
gutter: 12
|
8696
|
-
}, _isSlot$e(E = c.value.map((
|
8697
|
-
var
|
8697
|
+
}, _isSlot$e(E = c.value.map((N) => {
|
8698
|
+
var O, C;
|
8698
8699
|
return createVNode(Col, {
|
8699
|
-
span: (
|
8700
|
+
span: (C = (O = s.value) == null ? void 0 : O.span) != null ? C : 24
|
8700
8701
|
}, {
|
8701
8702
|
default: () => [createVNode(Checkbox, {
|
8702
|
-
"kg-value":
|
8703
|
-
value:
|
8703
|
+
"kg-value": N[u.value],
|
8704
|
+
value: N[u.value]
|
8704
8705
|
}, {
|
8705
8706
|
default: () => {
|
8706
|
-
var
|
8707
|
-
return [
|
8707
|
+
var A, V;
|
8708
|
+
return [N[(V = (A = l.value) == null ? void 0 : A.lbl_clm) != null ? V : ""]];
|
8708
8709
|
}
|
8709
8710
|
})]
|
8710
8711
|
});
|
@@ -9063,11 +9064,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9063
9064
|
}
|
9064
9065
|
}
|
9065
9066
|
async function p(E) {
|
9066
|
-
var k, N, O,
|
9067
|
+
var k, N, O, C, A, V;
|
9067
9068
|
switch (e.kgMode) {
|
9068
9069
|
case "multiple": {
|
9069
9070
|
if (Array.isArray(E)) {
|
9070
|
-
const y = (k = toRaw(_.value.filter((
|
9071
|
+
const y = (k = toRaw(_.value.filter((R) => E.includes(R[o.value])))) != null ? k : null;
|
9071
9072
|
a("kgSelectChange", y), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
9072
9073
|
context: (N = e.kgContext) != null ? N : KG_FORM_CONTEXT.SUBMIT,
|
9073
9074
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
@@ -9085,7 +9086,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9085
9086
|
break;
|
9086
9087
|
}
|
9087
9088
|
default: {
|
9088
|
-
const y = (
|
9089
|
+
const y = (C = toRaw(_.value.find((R) => R[o.value] === E))) != null ? C : null;
|
9089
9090
|
a("kgSelectChange", y), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
9090
9091
|
context: (A = e.kgContext) != null ? A : KG_FORM_CONTEXT.SUBMIT,
|
9091
9092
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
@@ -9248,12 +9249,12 @@ const KgFormItem = defineComponent({
|
|
9248
9249
|
isMultiple: P,
|
9249
9250
|
values: M
|
9250
9251
|
}) => {
|
9251
|
-
var
|
9252
|
+
var B, w, x, K, U;
|
9252
9253
|
switch (I) {
|
9253
9254
|
case e.kgVarName: {
|
9254
9255
|
if (D.value) {
|
9255
9256
|
let W;
|
9256
|
-
P ? W = M : W = (
|
9257
|
+
P ? W = M : W = (B = M == null ? void 0 : M[0]) != null ? B : null, D.value[e.kgVarName] = W, n.kgForm.store.emit(n.kgForm.formID, "change", {
|
9257
9258
|
context: (w = e.kgContext) != null ? w : KG_FORM_CONTEXT.SUBMIT,
|
9258
9259
|
isCopying: n.isCopying.value,
|
9259
9260
|
isCreating: n.isCreating.value,
|
@@ -9327,7 +9328,7 @@ const KgFormItem = defineComponent({
|
|
9327
9328
|
}
|
9328
9329
|
return I;
|
9329
9330
|
}), g = computed(() => {
|
9330
|
-
var D, P, M,
|
9331
|
+
var D, P, M, B;
|
9331
9332
|
let I = " ";
|
9332
9333
|
if (e.kgPlaceholder)
|
9333
9334
|
I = e.kgPlaceholder;
|
@@ -9338,12 +9339,12 @@ const KgFormItem = defineComponent({
|
|
9338
9339
|
break;
|
9339
9340
|
case KG_FORM_CONTEXT.SUBMIT:
|
9340
9341
|
case KG_FORM_CONTEXT.TABLE:
|
9341
|
-
I = n.t((
|
9342
|
+
I = n.t((B = (M = u.value) == null ? void 0 : M.placeholder) != null ? B : " ").value;
|
9342
9343
|
break;
|
9343
9344
|
}
|
9344
9345
|
return I;
|
9345
9346
|
}), m = computed(() => {
|
9346
|
-
var D, P, M,
|
9347
|
+
var D, P, M, B;
|
9347
9348
|
let I = KG__SPAN._12;
|
9348
9349
|
if (e.kgSpan !== void 0)
|
9349
9350
|
I = e.kgSpan;
|
@@ -9353,14 +9354,14 @@ const KgFormItem = defineComponent({
|
|
9353
9354
|
I = (P = (D = o.value) == null ? void 0 : D.width) != null ? P : KG__SPAN._12;
|
9354
9355
|
break;
|
9355
9356
|
case KG_FORM_CONTEXT.SUBMIT:
|
9356
|
-
I = (
|
9357
|
+
I = (B = (M = u.value) == null ? void 0 : M.width) != null ? B : KG__SPAN._12;
|
9357
9358
|
break;
|
9358
9359
|
case KG_FORM_CONTEXT.TABLE:
|
9359
9360
|
break;
|
9360
9361
|
}
|
9361
9362
|
return I = Number(I), I;
|
9362
9363
|
}), p = computed(() => {
|
9363
|
-
var D, P, M,
|
9364
|
+
var D, P, M, B;
|
9364
9365
|
let I = null;
|
9365
9366
|
if (e.kgSpan !== void 0)
|
9366
9367
|
I = e.kgSpan;
|
@@ -9370,7 +9371,7 @@ const KgFormItem = defineComponent({
|
|
9370
9371
|
I = (P = (D = o.value) == null ? void 0 : D.width) != null ? P : null;
|
9371
9372
|
break;
|
9372
9373
|
case KG_FORM_CONTEXT.SUBMIT:
|
9373
|
-
I = (
|
9374
|
+
I = (B = (M = u.value) == null ? void 0 : M.width) != null ? B : null;
|
9374
9375
|
break;
|
9375
9376
|
case KG_FORM_CONTEXT.TABLE:
|
9376
9377
|
I = null;
|
@@ -9378,12 +9379,12 @@ const KgFormItem = defineComponent({
|
|
9378
9379
|
}
|
9379
9380
|
return I = Number(I), I;
|
9380
9381
|
}), T = computed(() => {
|
9381
|
-
var M,
|
9382
|
+
var M, B;
|
9382
9383
|
const I = get(A.value, "$el.parentElement");
|
9383
9384
|
if (I && !((M = I.classList) != null && M.contains("ant-row")))
|
9384
9385
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9385
9386
|
let D = {};
|
9386
|
-
const P = Math.abs(Number.parseInt((
|
9387
|
+
const P = Math.abs(Number.parseInt((B = get(A.value, "$el.parentElement.style.marginLeft")) != null ? B : "0px"));
|
9387
9388
|
return Number.isNaN(P) || (D = {
|
9388
9389
|
paddingLeft: `${P}px !important`,
|
9389
9390
|
paddingRight: `${P}px !important`
|
@@ -9413,7 +9414,7 @@ const KgFormItem = defineComponent({
|
|
9413
9414
|
},
|
9414
9415
|
kgPlaceholder: g.value,
|
9415
9416
|
kgDisabled: v.value,
|
9416
|
-
id:
|
9417
|
+
id: C.value
|
9417
9418
|
};
|
9418
9419
|
switch (d.value) {
|
9419
9420
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_NUMBER:
|
@@ -9481,7 +9482,7 @@ const KgFormItem = defineComponent({
|
|
9481
9482
|
}
|
9482
9483
|
}
|
9483
9484
|
return !1;
|
9484
|
-
}),
|
9485
|
+
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), A = ref(null);
|
9485
9486
|
function V() {
|
9486
9487
|
return _.value ? null : createVNode(Form.Item, {
|
9487
9488
|
name: e.kgVarName,
|
@@ -9491,8 +9492,8 @@ const KgFormItem = defineComponent({
|
|
9491
9492
|
default: () => createVNode(Fragment, null, [createVNode(KgFormItemAddonDynamicQueryOperator, {
|
9492
9493
|
kgDisabled: v.value,
|
9493
9494
|
kgControlType: d.value
|
9494
|
-
}, null), y(),
|
9495
|
-
label: () =>
|
9495
|
+
}, null), y(), L(), F()]),
|
9496
|
+
label: () => R()
|
9496
9497
|
});
|
9497
9498
|
}
|
9498
9499
|
function y() {
|
@@ -9544,12 +9545,12 @@ const KgFormItem = defineComponent({
|
|
9544
9545
|
return createVNode(KgFormItemInput, k.value, null);
|
9545
9546
|
}
|
9546
9547
|
}
|
9547
|
-
function
|
9548
|
+
function R() {
|
9548
9549
|
var I, D;
|
9549
9550
|
return e.kgShowLabel ? createVNode("div", null, [createVNode("div", null, [createVNode("label", {
|
9550
9551
|
class: "title",
|
9551
9552
|
title: n.t(e.kgVarName).value,
|
9552
|
-
for:
|
9553
|
+
for: C.value
|
9553
9554
|
}, [n.t(e.kgVarName).value]), N.value && createVNode(Tooltip, {
|
9554
9555
|
placement: "top",
|
9555
9556
|
overlayClassName: "kg-form-item--tip--tooltip"
|
@@ -9566,7 +9567,7 @@ const KgFormItem = defineComponent({
|
|
9566
9567
|
innerHTML: (D = (I = i.value) == null ? void 0 : I.tip) != null ? D : ""
|
9567
9568
|
}, null)]) : null;
|
9568
9569
|
}
|
9569
|
-
function
|
9570
|
+
function L() {
|
9570
9571
|
var I;
|
9571
9572
|
return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9572
9573
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -9575,7 +9576,7 @@ const KgFormItem = defineComponent({
|
|
9575
9576
|
}, null)]
|
9576
9577
|
});
|
9577
9578
|
}
|
9578
|
-
function
|
9579
|
+
function F() {
|
9579
9580
|
return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
|
9580
9581
|
formID: n.formID,
|
9581
9582
|
frm_id: n.formID,
|
@@ -10025,7 +10026,7 @@ const getProps$B = () => ({
|
|
10025
10026
|
title: E
|
10026
10027
|
} = _useTitle(), k = computed(() => s.value ? SUBMIT_DEFAULT_MIN_WIDTH : A.value), N = computed(() => k.value !== 0), {
|
10027
10028
|
getClass: O,
|
10028
|
-
getWrapClass:
|
10029
|
+
getWrapClass: C
|
10029
10030
|
} = _useClass(e), {
|
10030
10031
|
getDefaultWidth: A
|
10031
10032
|
} = _useDefaultWidth(), V = computed(() => {
|
@@ -10063,16 +10064,16 @@ const getProps$B = () => ({
|
|
10063
10064
|
default:
|
10064
10065
|
return;
|
10065
10066
|
}
|
10066
|
-
}),
|
10067
|
+
}), R = computed(() => {
|
10067
10068
|
var q, H;
|
10068
10069
|
return (q = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) != null && q.textVarName ? i.t((H = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) == null ? void 0 : H.textVarName).value : n.t("kg.ok");
|
10069
|
-
}),
|
10070
|
+
}), L = ref([(oe = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value[0]) != null ? oe : ""]);
|
10070
10071
|
watch(N, (q, H) => {
|
10071
|
-
q === !0 &&
|
10072
|
+
q === !0 && F(), H === !0 && q === !1 && I();
|
10072
10073
|
}, {
|
10073
10074
|
immediate: !0
|
10074
10075
|
});
|
10075
|
-
async function
|
10076
|
+
async function F() {
|
10076
10077
|
if (!await i.kgSubmit.store.emit(i.formID, "beforeOpen", {
|
10077
10078
|
isCopying: i.isCopying.value,
|
10078
10079
|
isCreating: i.isCreating.value,
|
@@ -10135,7 +10136,7 @@ const getProps$B = () => ({
|
|
10135
10136
|
await M();
|
10136
10137
|
break;
|
10137
10138
|
case i.isUpdating.value:
|
10138
|
-
await
|
10139
|
+
await B();
|
10139
10140
|
break;
|
10140
10141
|
case i.isCopying.value:
|
10141
10142
|
await w();
|
@@ -10203,7 +10204,7 @@ const getProps$B = () => ({
|
|
10203
10204
|
i.store.setIsCreatingRequesting(i.formID, !1);
|
10204
10205
|
}
|
10205
10206
|
}
|
10206
|
-
async function
|
10207
|
+
async function B() {
|
10207
10208
|
var q, H, G, $, Y, Q, z, ae, J, Z;
|
10208
10209
|
try {
|
10209
10210
|
i.store.setIsUpdatingRequesting(i.formID, !0);
|
@@ -10445,7 +10446,7 @@ const getProps$B = () => ({
|
|
10445
10446
|
class: "section"
|
10446
10447
|
}, [createVNode(Menu, {
|
10447
10448
|
mode: "inline",
|
10448
|
-
selectedKeys:
|
10449
|
+
selectedKeys: L.value,
|
10449
10450
|
onSelect: ce
|
10450
10451
|
}, _isSlot$b(q = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((H) => createVNode(Menu.Item, {
|
10451
10452
|
key: H
|
@@ -10500,7 +10501,7 @@ const getProps$B = () => ({
|
|
10500
10501
|
danger: !!i.isDeleting.value,
|
10501
10502
|
onClick: P
|
10502
10503
|
}, {
|
10503
|
-
default: () => [
|
10504
|
+
default: () => [R.value]
|
10504
10505
|
})]);
|
10505
10506
|
}
|
10506
10507
|
function ue() {
|
@@ -10510,7 +10511,7 @@ const getProps$B = () => ({
|
|
10510
10511
|
}, null);
|
10511
10512
|
}
|
10512
10513
|
function ce(q) {
|
10513
|
-
|
10514
|
+
L.value = q.selectedKeys;
|
10514
10515
|
}
|
10515
10516
|
return onUnmounted(async () => {
|
10516
10517
|
i.kgSubmit.store.dispose(i.formID), await I();
|
@@ -10523,7 +10524,7 @@ const getProps$B = () => ({
|
|
10523
10524
|
destroyOnClose: !0,
|
10524
10525
|
width: k.value,
|
10525
10526
|
class: O.value,
|
10526
|
-
wrapClassName:
|
10527
|
+
wrapClassName: C.value,
|
10527
10528
|
kgFullHeight: !1,
|
10528
10529
|
kgMinWidth: d.value,
|
10529
10530
|
kgMaxWidth: v.value,
|
@@ -13338,9 +13339,26 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13338
13339
|
}), !1)), n.kgTable.onBeforeSetDatas(async ({
|
13339
13340
|
datas: p
|
13340
13341
|
}) => (transformVarGridMasters(p.value), !1)), n.kgSubmit.onOpen(async () => {
|
13341
|
-
var T, E, k, N, O,
|
13342
|
-
|
13343
|
-
|
13342
|
+
var p, T, E, k, N, O, C, A;
|
13343
|
+
switch (i.value = cloneDeep(toRaw(((p = r.varVariables.value) != null ? p : []).filter((V) => {
|
13344
|
+
var y, R, L, F;
|
13345
|
+
return ![...(R = (y = r.varGridMasters.value) == null ? void 0 : y.map((I) => {
|
13346
|
+
var D;
|
13347
|
+
return (D = I.grd_var_nam) != null ? D : "";
|
13348
|
+
})) != null ? R : [], ...(F = (L = r.varProfileMasters.value) == null ? void 0 : L.map((I) => {
|
13349
|
+
var D;
|
13350
|
+
return (D = I.prf_var_nam) != null ? D : "";
|
13351
|
+
})) != null ? F : [], ...r.kgButton.varButtons.value.map((I) => {
|
13352
|
+
var D;
|
13353
|
+
return (D = I.var_nam) != null ? D : "";
|
13354
|
+
}), ...r.kgButton.varButtons.value.map((I) => {
|
13355
|
+
var D;
|
13356
|
+
return (D = I.export_excel_filename) != null ? D : "";
|
13357
|
+
}), KG__VAR_BUTTON__TYPE.SEARCH, KG__VAR_BUTTON__TYPE.CREATE, KG__VAR_BUTTON__TYPE.UPDATE, KG__VAR_BUTTON__TYPE.COPY, KG__VAR_BUTTON__TYPE.DELETE, KG__VAR_BUTTON__TYPE.IMPORT, KG__VAR_BUTTON__TYPE.IMPORT_TEMPLATE, KG__VAR_BUTTON__TYPE.EXPORT, KG__VAR_BUTTON__TYPE.OTHER].includes(V.var_nam);
|
13358
|
+
}).map((V) => ({
|
13359
|
+
id: V.var_nam,
|
13360
|
+
var_nam: V.var_nam
|
13361
|
+
})))), !0) {
|
13344
13362
|
case n.isCreating.value: {
|
13345
13363
|
s.value = [];
|
13346
13364
|
break;
|
@@ -13355,17 +13373,17 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13355
13373
|
id: (E = n.kgTable.selectedRow.value) == null ? void 0 : E.id
|
13356
13374
|
}
|
13357
13375
|
});
|
13358
|
-
i.value = i.value.map((
|
13359
|
-
var
|
13360
|
-
const
|
13361
|
-
return
|
13362
|
-
...
|
13363
|
-
...
|
13364
|
-
id:
|
13365
|
-
} :
|
13376
|
+
i.value = i.value.map((R) => {
|
13377
|
+
var F;
|
13378
|
+
const L = (F = V == null ? void 0 : V.varGridDetails) == null ? void 0 : F.find((I) => I.var_nam === R.var_nam);
|
13379
|
+
return L ? {
|
13380
|
+
...R,
|
13381
|
+
...L,
|
13382
|
+
id: L.var_nam
|
13383
|
+
} : R;
|
13366
13384
|
});
|
13367
|
-
const y = (N = (k = V == null ? void 0 : V.varGridDetails) == null ? void 0 : k.map((
|
13368
|
-
s.value = i.value.filter((
|
13385
|
+
const y = (N = (k = V == null ? void 0 : V.varGridDetails) == null ? void 0 : k.map((R) => R.var_nam)) != null ? N : [];
|
13386
|
+
s.value = i.value.filter((R) => y.includes(R.var_nam)).map((R) => R.id);
|
13369
13387
|
} catch (V) {
|
13370
13388
|
throw V;
|
13371
13389
|
} finally {
|
@@ -13378,7 +13396,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13378
13396
|
}
|
13379
13397
|
switch (!0) {
|
13380
13398
|
case n.isCopying.value: {
|
13381
|
-
n.kgSubmit.formModel.value.grd_var_nam = ((O = n.kgSubmit.formModel.value.grd_var_nam) != null ? O : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((A = (
|
13399
|
+
n.kgSubmit.formModel.value.grd_var_nam = ((O = n.kgSubmit.formModel.value.grd_var_nam) != null ? O : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((A = (C = n.kgSubmit.formModel.value.grd_var_nam_dsc) != null ? C : n.kgSubmit.formModel.value.grd_var_nam) != null ? A : "") + "_COPY";
|
13382
13400
|
break;
|
13383
13401
|
}
|
13384
13402
|
}
|
@@ -13456,11 +13474,11 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13456
13474
|
onItemSelectAll: N,
|
13457
13475
|
onItemSelect: O
|
13458
13476
|
}) => {
|
13459
|
-
const
|
13460
|
-
var y,
|
13461
|
-
return ((y = A.srtseq) != null ? y : 0) - ((
|
13477
|
+
const C = T.sort((A, V) => {
|
13478
|
+
var y, R;
|
13479
|
+
return ((y = A.srtseq) != null ? y : 0) - ((R = V.srtseq) != null ? R : 0);
|
13462
13480
|
});
|
13463
|
-
return l.value =
|
13481
|
+
return l.value = C, createVNode(Table, {
|
13464
13482
|
pagination: !1,
|
13465
13483
|
class: "kg-flex-table",
|
13466
13484
|
size: "small",
|
@@ -13470,7 +13488,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13470
13488
|
},
|
13471
13489
|
columns: p === "left" ? o() : u(),
|
13472
13490
|
rowKey: "id",
|
13473
|
-
dataSource:
|
13491
|
+
dataSource: C,
|
13474
13492
|
customRow: (A) => {
|
13475
13493
|
let V = {
|
13476
13494
|
onClick: (y) => v(y, A, p, E)
|
@@ -13498,10 +13516,10 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13498
13516
|
disabled: p || N.disabled
|
13499
13517
|
}),
|
13500
13518
|
onSelectAll(N, O) {
|
13501
|
-
const
|
13519
|
+
const C = O.filter((A) => !A.disabled).map(({
|
13502
13520
|
key: A
|
13503
13521
|
}) => A);
|
13504
|
-
E(
|
13522
|
+
E(C, N);
|
13505
13523
|
},
|
13506
13524
|
onSelect({
|
13507
13525
|
key: N
|
@@ -13725,7 +13743,7 @@ const getProps$w = () => ({
|
|
13725
13743
|
slots: t,
|
13726
13744
|
emit: a
|
13727
13745
|
}) {
|
13728
|
-
var A, V, y,
|
13746
|
+
var A, V, y, R, L;
|
13729
13747
|
const r = useKg(), n = useKgVar(), {
|
13730
13748
|
filterVarGridDetailByKey: i
|
13731
13749
|
} = _useServices(), s = ref([]), l = computed(() => s.value.includes("1")), o = ref(""), u = computed(() => n.kgTable.store.getRowHeight(n.formID)), c = ref({
|
@@ -13733,27 +13751,27 @@ const getProps$w = () => ({
|
|
13733
13751
|
}), _ = ref({
|
13734
13752
|
visible: !1
|
13735
13753
|
}), d = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled), v = ref(null);
|
13736
|
-
_useObserveMenuItemColumns(l), ((
|
13754
|
+
_useObserveMenuItemColumns(l), ((L = (R = (y = (V = (A = r.option.value) == null ? void 0 : A.KgTable) == null ? void 0 : V.Setting) == null ? void 0 : y.columns) == null ? void 0 : R.dragToSort) == null ? void 0 : L.isOn) === !0 && _useDragToSortRow$1({
|
13737
13755
|
columnsRef: v
|
13738
|
-
}), watch(l, (
|
13739
|
-
|
13756
|
+
}), watch(l, (F) => {
|
13757
|
+
F || (o.value = "");
|
13740
13758
|
}, {
|
13741
13759
|
immediate: !0
|
13742
13760
|
});
|
13743
|
-
function g(
|
13761
|
+
function g(F) {
|
13744
13762
|
n.kgTable.patchVarGridDetail({
|
13745
|
-
varName:
|
13763
|
+
varName: F.var_nam,
|
13746
13764
|
properties: {
|
13747
|
-
vis_flg:
|
13765
|
+
vis_flg: F.vis_flg === 1 ? 0 : 1
|
13748
13766
|
}
|
13749
13767
|
});
|
13750
13768
|
}
|
13751
|
-
function m(
|
13752
|
-
n.store.setCurrentVarGridMasterID(n.formID,
|
13769
|
+
function m(F) {
|
13770
|
+
n.store.setCurrentVarGridMasterID(n.formID, F.id);
|
13753
13771
|
}
|
13754
13772
|
async function p() {
|
13755
|
-
var
|
13756
|
-
if (((
|
13773
|
+
var F;
|
13774
|
+
if (((F = n.currentVarGridMaster.value) == null ? void 0 : F.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
13757
13775
|
KgUtil.confirm({
|
13758
13776
|
content: r.t("kg.KgVarConfig.canNotUpdateSystemVarGridMaster"),
|
13759
13777
|
okButtonProps: {
|
@@ -13781,7 +13799,7 @@ const getProps$w = () => ({
|
|
13781
13799
|
popupClassName: "kg-table--setting--submenu-popup--columns"
|
13782
13800
|
}, {
|
13783
13801
|
default: () => {
|
13784
|
-
var
|
13802
|
+
var F;
|
13785
13803
|
return createVNode("div", {
|
13786
13804
|
class: "columns"
|
13787
13805
|
}, [createVNode(Input, {
|
@@ -13791,7 +13809,7 @@ const getProps$w = () => ({
|
|
13791
13809
|
}, null), createVNode("ul", {
|
13792
13810
|
ref: v,
|
13793
13811
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
13794
|
-
}, [(
|
13812
|
+
}, [(F = n.currentVarGridDetails.value) == null ? void 0 : F.map((I, D) => createVNode("li", {
|
13795
13813
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
13796
13814
|
onClick: (P) => {
|
13797
13815
|
P.preventDefault(), P.stopPropagation(), g(I);
|
@@ -13824,7 +13842,7 @@ const getProps$w = () => ({
|
|
13824
13842
|
}, {
|
13825
13843
|
default: () => {
|
13826
13844
|
var D;
|
13827
|
-
let
|
13845
|
+
let F, I;
|
13828
13846
|
return createVNode(Fragment, null, [(D = n.varGridMasters.value) == null ? void 0 : D.map((P) => {
|
13829
13847
|
var M;
|
13830
13848
|
return createVNode(Menu.Item, {
|
@@ -13841,8 +13859,8 @@ const getProps$w = () => ({
|
|
13841
13859
|
icon: createVNode(Icon, {
|
13842
13860
|
icon: "material-symbols:save-outline-rounded"
|
13843
13861
|
}, null)
|
13844
|
-
}, _isSlot$9(
|
13845
|
-
default: () => [
|
13862
|
+
}, _isSlot$9(F = r.t("kg.KgTable.saveVarGridMaster")) ? F : {
|
13863
|
+
default: () => [F]
|
13846
13864
|
}), createVNode(Menu.Item, {
|
13847
13865
|
key: "save-grid-view-as",
|
13848
13866
|
onClick: T,
|
@@ -13860,14 +13878,14 @@ const getProps$w = () => ({
|
|
13860
13878
|
});
|
13861
13879
|
}
|
13862
13880
|
function N() {
|
13863
|
-
var
|
13864
|
-
return ((D = (I = (
|
13881
|
+
var F, I, D;
|
13882
|
+
return ((D = (I = (F = r.option.value.KgTable) == null ? void 0 : F.Setting) == null ? void 0 : I.rowHeight) == null ? void 0 : D.on) !== !0 ? null : createVNode(Menu.SubMenu, {
|
13865
13883
|
key: "row-height",
|
13866
13884
|
title: r.t("kg.KgTable.rowHeight"),
|
13867
13885
|
popupClassName: "kg-table--setting--submenu-popup--row-height"
|
13868
13886
|
}, {
|
13869
13887
|
default: () => {
|
13870
|
-
let P, M,
|
13888
|
+
let P, M, B;
|
13871
13889
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13872
13890
|
key: "L",
|
13873
13891
|
class: u.value === "L" ? "selected" : "",
|
@@ -13884,8 +13902,8 @@ const getProps$w = () => ({
|
|
13884
13902
|
key: "H",
|
13885
13903
|
class: u.value === "H" ? "selected" : "",
|
13886
13904
|
onClick: () => n.kgTable.store.setRowHeight(n.formID, "H")
|
13887
|
-
}, _isSlot$9(
|
13888
|
-
default: () => [
|
13905
|
+
}, _isSlot$9(B = r.t("kg.KgTable.rowHeightH")) ? B : {
|
13906
|
+
default: () => [B]
|
13889
13907
|
})]);
|
13890
13908
|
},
|
13891
13909
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
@@ -13902,14 +13920,14 @@ const getProps$w = () => ({
|
|
13902
13920
|
}, {
|
13903
13921
|
default: () => [createVNode(Checkbox, {
|
13904
13922
|
checked: n.kgTable.isShowDescription.value,
|
13905
|
-
"onUpdate:checked": (
|
13906
|
-
onClick: (
|
13907
|
-
|
13923
|
+
"onUpdate:checked": (F) => n.kgTable.setIsShowDescription(F),
|
13924
|
+
onClick: (F) => {
|
13925
|
+
F.stopPropagation();
|
13908
13926
|
}
|
13909
13927
|
}, {
|
13910
13928
|
default: () => [createVNode("div", {
|
13911
|
-
onClick: (
|
13912
|
-
|
13929
|
+
onClick: (F) => {
|
13930
|
+
F.stopPropagation();
|
13913
13931
|
}
|
13914
13932
|
}, [r.t("kg.KgTable.isShowDescription")])]
|
13915
13933
|
})]
|
@@ -13917,16 +13935,16 @@ const getProps$w = () => ({
|
|
13917
13935
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13918
13936
|
});
|
13919
13937
|
}
|
13920
|
-
function
|
13938
|
+
function C() {
|
13921
13939
|
var I;
|
13922
|
-
let
|
13940
|
+
let F;
|
13923
13941
|
return (I = n.formID) != null && I.startsWith("KgVarConfig.") ? null : createVNode(Menu.Item, {
|
13924
13942
|
key: "config-var-grid-master",
|
13925
13943
|
onClick: () => {
|
13926
13944
|
c.value.visible = !0;
|
13927
13945
|
}
|
13928
|
-
}, _isSlot$9(
|
13929
|
-
default: () => [
|
13946
|
+
}, _isSlot$9(F = r.t("kg.KgTable.config")) ? F : {
|
13947
|
+
default: () => [F]
|
13930
13948
|
});
|
13931
13949
|
}
|
13932
13950
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -13939,14 +13957,14 @@ const getProps$w = () => ({
|
|
13939
13957
|
overlay: () => createVNode(Menu, {
|
13940
13958
|
triggerSubMenuAction: "click",
|
13941
13959
|
openKeys: s.value,
|
13942
|
-
"onUpdate:openKeys": (
|
13960
|
+
"onUpdate:openKeys": (F) => s.value = F,
|
13943
13961
|
selectable: !1
|
13944
13962
|
}, {
|
13945
|
-
default: () => [E(), N(), k(), O(),
|
13963
|
+
default: () => [E(), N(), k(), O(), C()]
|
13946
13964
|
})
|
13947
13965
|
}), c.value.visible && createVNode(KgTableSettingConfigModal, {
|
13948
13966
|
visible: c.value.visible,
|
13949
|
-
"onUpdate:visible": (
|
13967
|
+
"onUpdate:visible": (F) => c.value.visible = F
|
13950
13968
|
}, null), _.value.visible && createVNode(KgTableSettingVarGridMasterSaveAs, {
|
13951
13969
|
onKgClose: () => {
|
13952
13970
|
_.value.visible = !1;
|
@@ -14676,7 +14694,7 @@ function _useColumns(e) {
|
|
14676
14694
|
}, ...(E = g == null ? void 0 : g.map((k, N) => {
|
14677
14695
|
var D, P, M;
|
14678
14696
|
const O = k.var_nam;
|
14679
|
-
function
|
14697
|
+
function C() {
|
14680
14698
|
return k.width === "auto" ? "auto" : Number(k.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
14681
14699
|
}
|
14682
14700
|
function A() {
|
@@ -14689,12 +14707,12 @@ function _useColumns(e) {
|
|
14689
14707
|
return "right";
|
14690
14708
|
}
|
14691
14709
|
function y() {
|
14692
|
-
var
|
14693
|
-
return !(k.ord_flg !== 1 || (w = (
|
14710
|
+
var B, w, x, K;
|
14711
|
+
return !(k.ord_flg !== 1 || (w = (B = t == null ? void 0 : t.value) == null ? void 0 : B.KgTable) != null && w.kgDisabled || isNil((K = (x = t == null ? void 0 : t.value) == null ? void 0 : x.KgTable) == null ? void 0 : K.kgDisabled) && e.kgDisabled || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || _.length <= 0);
|
14694
14712
|
}
|
14695
|
-
function
|
14696
|
-
var
|
14697
|
-
if (((w = (
|
14713
|
+
function R() {
|
14714
|
+
var B, w, x, K, U, W;
|
14715
|
+
if (((w = (B = c.option.value.KgTable) == null ? void 0 : B.filter) == null ? void 0 : w.on) === !0 && k.filter_flag === 1 && !((K = (x = t == null ? void 0 : t.value) == null ? void 0 : x.KgTable) != null && K.kgDisabled) && !(isNil((W = (U = t == null ? void 0 : t.value) == null ? void 0 : U.KgTable) == null ? void 0 : W.kgDisabled) && e.kgDisabled) && !(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value) && !(_.length <= 0))
|
14698
14716
|
return uniqBy(_.map((X) => {
|
14699
14717
|
var te;
|
14700
14718
|
return {
|
@@ -14710,14 +14728,14 @@ function _useColumns(e) {
|
|
14710
14728
|
};
|
14711
14729
|
}), "value");
|
14712
14730
|
}
|
14713
|
-
function
|
14714
|
-
var
|
14715
|
-
return ((w = (
|
14731
|
+
function L() {
|
14732
|
+
var B, w, x;
|
14733
|
+
return ((w = (B = c.option.value.KgTable) == null ? void 0 : B.filter) == null ? void 0 : w.on) !== !0 ? null : ((x = n.value) == null ? void 0 : x[O]) || null;
|
14716
14734
|
}
|
14717
|
-
function
|
14735
|
+
function F() {
|
14718
14736
|
return ["left", "center", "right"].includes(k.align || "") ? k.align : "left";
|
14719
14737
|
}
|
14720
|
-
const I =
|
14738
|
+
const I = C();
|
14721
14739
|
switch (k.ord) {
|
14722
14740
|
case 0:
|
14723
14741
|
(!i.value.field || !i.value.order) && (i.value = {
|
@@ -14740,21 +14758,21 @@ function _useColumns(e) {
|
|
14740
14758
|
resizable: typeof I == "number",
|
14741
14759
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
14742
14760
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
14743
|
-
align:
|
14761
|
+
align: F(),
|
14744
14762
|
fixed: V(),
|
14745
14763
|
sorter: y(),
|
14746
14764
|
sortOrder: ((D = i.value) == null ? void 0 : D.field) === O && (M = (P = i.value) == null ? void 0 : P.order) != null ? M : null,
|
14747
|
-
filteredValue:
|
14748
|
-
filters:
|
14749
|
-
onFilter: (
|
14765
|
+
filteredValue: L(),
|
14766
|
+
filters: R(),
|
14767
|
+
onFilter: (B, w) => B === "" ? isNil(w == null ? void 0 : w[O]) || (w == null ? void 0 : w[O]) === "" : (w == null ? void 0 : w[O]) === B,
|
14750
14768
|
customHeaderCell: () => ({
|
14751
14769
|
"kg-form_id": a.formID,
|
14752
14770
|
"kg-var_name": O,
|
14753
14771
|
draggable: !0
|
14754
14772
|
}),
|
14755
|
-
customCell: (
|
14773
|
+
customCell: (B) => {
|
14756
14774
|
var W, X, te;
|
14757
|
-
const w =
|
14775
|
+
const w = B[a.kgTable.idKey.value], x = (W = a.kgTable.selectedRow.value) == null ? void 0 : W[a.kgTable.idKey.value], K = a.kgSubmit.currentVarSubmitConfig$DisplayType.value, U = (te = a.kgSubmit.getVarSubmitDetails({
|
14758
14776
|
buttonVarName: (X = a.kgButton.currentButton.value) == null ? void 0 : X.var_nam,
|
14759
14777
|
varName: O
|
14760
14778
|
})[0]) != null ? te : null;
|
@@ -15052,13 +15070,13 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15052
15070
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgTable) == null ? void 0 : Q.kgCheckboxDisabled;
|
15053
15071
|
if (!isNil(e.kgCheckboxDisabled))
|
15054
15072
|
return e.kgCheckboxDisabled;
|
15055
|
-
}),
|
15073
|
+
}), C = computed(() => !!N.value || d.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), A = computed(() => !!N.value || d.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || D.total === 0), V = computed(() => {
|
15056
15074
|
var G;
|
15057
15075
|
return !!((G = a == null ? void 0 : a.KgTable) != null && G.expandedRowRender);
|
15058
15076
|
}), y = computed(() => {
|
15059
15077
|
var G;
|
15060
15078
|
return ((G = i.varGridConfig.value) == null ? void 0 : G.show_check_column_flg) === 1;
|
15061
|
-
}),
|
15079
|
+
}), R = computed(() => {
|
15062
15080
|
if (!!y.value)
|
15063
15081
|
return {
|
15064
15082
|
fixed: "left",
|
@@ -15075,7 +15093,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15075
15093
|
onSelect: (G) => X(G),
|
15076
15094
|
onChange: (G) => i.kgTable.isMultiSelect.value && W(G)
|
15077
15095
|
};
|
15078
|
-
}),
|
15096
|
+
}), L = computed(() => {
|
15079
15097
|
var $;
|
15080
15098
|
let G = "kg-table";
|
15081
15099
|
switch ((($ = i.varGridConfig.value) == null ? void 0 : $.show_bottom_border_flg) === 1 && (G += " kg-table--bottom-border"), !i.kgTable.isShowBottomLeft.value && !i.kgTable.isShowBottomRight.value && (G += " kg-table--no-bottom"), i.kgSubmit.currentVarSubmitConfig$DisplayType.value === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE && (G += " kg-table--submitting"), i.kgTable.store.getRowHeight(i.formID)) {
|
@@ -15090,7 +15108,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15090
15108
|
break;
|
15091
15109
|
}
|
15092
15110
|
return s.value && (G += " kg-table--is-shift-keydown"), G;
|
15093
|
-
}),
|
15111
|
+
}), F = computed(() => {
|
15094
15112
|
var $;
|
15095
15113
|
let G = "kg-table-bottom";
|
15096
15114
|
return (($ = i.varGridConfig.value) == null ? void 0 : $.show_bottom_border_flg) === 1 && (G += " kg-table-bottom--border"), G;
|
@@ -15127,7 +15145,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15127
15145
|
function M(G) {
|
15128
15146
|
G.shiftKey && (s.value = !0);
|
15129
15147
|
}
|
15130
|
-
function
|
15148
|
+
function B(G) {
|
15131
15149
|
G.shiftKey || (s.value = !1);
|
15132
15150
|
}
|
15133
15151
|
function w() {
|
@@ -15175,7 +15193,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15175
15193
|
});
|
15176
15194
|
return;
|
15177
15195
|
}
|
15178
|
-
if (!
|
15196
|
+
if (!R.value) {
|
15179
15197
|
____DEBUG____("KgTable | onRowClick() | \u4E0D\u652F\u6301\u884C\u52FE\u9009.");
|
15180
15198
|
return;
|
15181
15199
|
}
|
@@ -15445,14 +15463,14 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15445
15463
|
return !i.kgTable.isAutoRequest.value && !i.kgTable.store.getIsRequested(i.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
15446
15464
|
}
|
15447
15465
|
return onMounted(() => {
|
15448
|
-
window.addEventListener("keydown", M), window.addEventListener("keyup",
|
15466
|
+
window.addEventListener("keydown", M), window.addEventListener("keyup", B);
|
15449
15467
|
}), onUnmounted(() => {
|
15450
|
-
i.kgTable.store.dispose(i.formID), window.removeEventListener("keydown", M), window.removeEventListener("keyup",
|
15468
|
+
i.kgTable.store.dispose(i.formID), window.removeEventListener("keydown", M), window.removeEventListener("keyup", B);
|
15451
15469
|
}), () => {
|
15452
15470
|
var G, $, Y;
|
15453
15471
|
return createVNode("div", {
|
15454
15472
|
"kg-form_id": i.formID,
|
15455
|
-
class:
|
15473
|
+
class: L.value,
|
15456
15474
|
ref: v
|
15457
15475
|
}, [createVNode(Table, {
|
15458
15476
|
class: "kg-flex-table",
|
@@ -15470,7 +15488,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15470
15488
|
rowClassName: ($ = (G = r == null ? void 0 : r.value) == null ? void 0 : G.KgTable) == null ? void 0 : $.kgRowClassName,
|
15471
15489
|
expandColumnWidth: 28,
|
15472
15490
|
expandedRowKeys: l.value,
|
15473
|
-
rowSelection:
|
15491
|
+
rowSelection: R.value,
|
15474
15492
|
customRow: (Q) => ({
|
15475
15493
|
onClick: (z) => K({
|
15476
15494
|
event: z,
|
@@ -15487,7 +15505,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15487
15505
|
expandedRowRender: (Y = a == null ? void 0 : a.KgTable) == null ? void 0 : Y.expandedRowRender,
|
15488
15506
|
summary: oe
|
15489
15507
|
}), (i.kgTable.isShowBottomLeft.value || i.kgTable.isShowBottomRight.value) && createVNode("div", {
|
15490
|
-
class:
|
15508
|
+
class: F.value
|
15491
15509
|
}, [createVNode("div", {
|
15492
15510
|
class: "left"
|
15493
15511
|
}, [i.kgTable.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
@@ -15495,7 +15513,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15495
15513
|
kgShowClearTable: D.total > 0,
|
15496
15514
|
kgShowLocate: I.value.length > 0,
|
15497
15515
|
kgTotal: I.value.length,
|
15498
|
-
kgDisabled:
|
15516
|
+
kgDisabled: C.value
|
15499
15517
|
}, null)]), createVNode("div", {
|
15500
15518
|
class: "right"
|
15501
15519
|
}, [i.kgTable.isShowBottomRight.value && createVNode(Pagination, {
|
@@ -17688,9 +17706,26 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17688
17706
|
}), !1)), n.kgTable.onBeforeSetDatas(async ({
|
17689
17707
|
datas: g
|
17690
17708
|
}) => (transformVarProfileMasters(g.value), !1)), n.kgSubmit.onOpen(async () => {
|
17691
|
-
var m, p, T, E, k, N;
|
17692
|
-
|
17693
|
-
|
17709
|
+
var g, m, p, T, E, k, N;
|
17710
|
+
switch (i.value = cloneDeep(toRaw((g = r.varVariables.value) != null ? g : []).filter((O) => {
|
17711
|
+
var C, A, V, y;
|
17712
|
+
return ![...(A = (C = r.varGridMasters.value) == null ? void 0 : C.map((R) => {
|
17713
|
+
var L;
|
17714
|
+
return (L = R.grd_var_nam) != null ? L : "";
|
17715
|
+
})) != null ? A : [], ...(y = (V = r.varProfileMasters.value) == null ? void 0 : V.map((R) => {
|
17716
|
+
var L;
|
17717
|
+
return (L = R.prf_var_nam) != null ? L : "";
|
17718
|
+
})) != null ? y : [], ...r.kgButton.varButtons.value.map((R) => {
|
17719
|
+
var L;
|
17720
|
+
return (L = R.var_nam) != null ? L : "";
|
17721
|
+
}), ...r.kgButton.varButtons.value.map((R) => {
|
17722
|
+
var L;
|
17723
|
+
return (L = R.export_excel_filename) != null ? L : "";
|
17724
|
+
}), KG__VAR_BUTTON__TYPE.SEARCH, KG__VAR_BUTTON__TYPE.CREATE, KG__VAR_BUTTON__TYPE.UPDATE, KG__VAR_BUTTON__TYPE.COPY, KG__VAR_BUTTON__TYPE.DELETE, KG__VAR_BUTTON__TYPE.IMPORT, KG__VAR_BUTTON__TYPE.IMPORT_TEMPLATE, KG__VAR_BUTTON__TYPE.EXPORT, KG__VAR_BUTTON__TYPE.OTHER].includes(O.var_nam);
|
17725
|
+
}).map((O) => ({
|
17726
|
+
id: O.var_nam,
|
17727
|
+
var_nam: O.var_nam
|
17728
|
+
}))), !0) {
|
17694
17729
|
case n.isCreating.value: {
|
17695
17730
|
s.value = [];
|
17696
17731
|
break;
|
@@ -17707,15 +17742,15 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17707
17742
|
});
|
17708
17743
|
i.value = i.value.map((A) => {
|
17709
17744
|
var y;
|
17710
|
-
const V = (y = O == null ? void 0 : O.varProfileDetails) == null ? void 0 : y.find((
|
17745
|
+
const V = (y = O == null ? void 0 : O.varProfileDetails) == null ? void 0 : y.find((R) => R.var_nam === A.var_nam);
|
17711
17746
|
return V ? {
|
17712
17747
|
...A,
|
17713
17748
|
...V,
|
17714
|
-
id:
|
17749
|
+
id: V.var_nam
|
17715
17750
|
} : A;
|
17716
17751
|
});
|
17717
|
-
const
|
17718
|
-
s.value = i.value.filter((A) =>
|
17752
|
+
const C = (T = (p = O == null ? void 0 : O.varProfileDetails) == null ? void 0 : p.map((A) => A.var_nam)) != null ? T : [];
|
17753
|
+
s.value = i.value.filter((A) => C.includes(A.var_nam)).map((A) => A.id);
|
17719
17754
|
} catch (O) {
|
17720
17755
|
throw O;
|
17721
17756
|
} finally {
|
@@ -17802,17 +17837,17 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17802
17837
|
onItemSelectAll: E,
|
17803
17838
|
onItemSelect: k
|
17804
17839
|
}) => {
|
17805
|
-
var O,
|
17840
|
+
var O, C;
|
17806
17841
|
const N = m.sort((A, V) => {
|
17807
|
-
var y,
|
17808
|
-
return ((y = A.srtseq) != null ? y : 0) - ((
|
17842
|
+
var y, R;
|
17843
|
+
return ((y = A.srtseq) != null ? y : 0) - ((R = V.srtseq) != null ? R : 0);
|
17809
17844
|
});
|
17810
17845
|
return g === "right" && (l.value = N), createVNode(Table, {
|
17811
17846
|
pagination: !1,
|
17812
17847
|
class: "kg-flex-table",
|
17813
17848
|
size: "small",
|
17814
17849
|
scroll: {
|
17815
|
-
x: g === "left" ? "370px" : `${(((
|
17850
|
+
x: g === "left" ? "370px" : `${(((C = (O = a.option.value.KgSearch) == null ? void 0 : O.dynamicQuery) == null ? void 0 : C.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
|
17816
17851
|
y: "auto"
|
17817
17852
|
},
|
17818
17853
|
columns: g === "left" ? leftVarProfileDetailColumns(t) : rightVarProfileDetailColumns(t),
|
@@ -19226,8 +19261,8 @@ const LOCALE = {
|
|
19226
19261
|
}
|
19227
19262
|
}), N = (g = (v = ((c = k.varGridMasters) == null ? void 0 : c.find((O) => O.def_flg === 1)) || ((_ = k.varGridMasters) == null ? void 0 : _.find((O) => O.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((d = k.varGridMasters) == null ? void 0 : d.find(() => !0))) == null ? void 0 : v.id) != null ? g : null;
|
19228
19263
|
i.value = uniq(compact((E = (T = (p = (m = k.varGridMasters) == null ? void 0 : m.find((O) => O.id === N)) == null ? void 0 : p.varGridDetails) == null ? void 0 : T.map((O) => {
|
19229
|
-
var
|
19230
|
-
return (
|
19264
|
+
var C;
|
19265
|
+
return (C = O.var_nam) != null ? C : "";
|
19231
19266
|
})) != null ? E : [])), r.store.patchVarPossibilityCommandParameter(r.formID, "ret_fld", {
|
19232
19267
|
__KG__TIMESTAMP__: Date.now()
|
19233
19268
|
});
|
@@ -19984,18 +20019,6 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
19984
20019
|
return t ? useKgVar(t.frm_id) : null;
|
19985
20020
|
};
|
19986
20021
|
},
|
19987
|
-
getSystemVarGridDetails() {
|
19988
|
-
return (e) => {
|
19989
|
-
var t, a, r, n, i;
|
19990
|
-
return e ? (i = (n = (r = (a = (t = this.varGridMasterMap.get(e)) == null ? void 0 : t.varGridMasters) == null ? void 0 : a.find((s) => s.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.varGridDetails) == null ? void 0 : n.sort((s, l) => s.srtseq - l.srtseq)) != null ? i : null : (____ERROR____("formID \u4E3A\u7A7A."), null);
|
19991
|
-
};
|
19992
|
-
},
|
19993
|
-
getSystemVarProfileDetails() {
|
19994
|
-
return (e) => {
|
19995
|
-
var t, a, r, n, i;
|
19996
|
-
return e ? (i = (n = (r = (a = (t = this.varProfileMasterMap.get(e)) == null ? void 0 : t.varProfileMasters) == null ? void 0 : a.find((s) => s.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.varProfileDetails) == null ? void 0 : n.sort((s, l) => s.srtseq - l.srtseq)) != null ? i : null : (____ERROR____("formID \u4E3A\u7A7A."), null);
|
19997
|
-
};
|
19998
|
-
},
|
19999
20022
|
getVarButton() {
|
20000
20023
|
return (e, t) => {
|
20001
20024
|
var r;
|
@@ -20379,16 +20402,16 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
20379
20402
|
varConfigPossibilities: k,
|
20380
20403
|
varConfigTips: N,
|
20381
20404
|
varProfileConfig: O,
|
20382
|
-
varProfileMasters:
|
20405
|
+
varProfileMasters: C,
|
20383
20406
|
varGridConfig: A,
|
20384
20407
|
varGridMasters: V,
|
20385
20408
|
varSubmitConfigs: y,
|
20386
|
-
varSubmitDetails:
|
20387
|
-
varVariables:
|
20409
|
+
varSubmitDetails: R,
|
20410
|
+
varVariables: L
|
20388
20411
|
} = await GetAll({ params: { frm_id: e } });
|
20389
|
-
this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e,
|
20390
|
-
varProfileMasters: transformVarProfileMasters(
|
20391
|
-
currentVarProfileMasterID: (i = (n = (
|
20412
|
+
this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e, L != null ? L : []), this.varConfigControlMap.set(e, transformVarConfigControls(m)), this.varConfigDescriptionMap.set(e, p != null ? p : []), this.varConfigInputMap.set(e, transformVarConfigInputs(T)), this.varConfigLookupMap.set(e, transformVarConfigLookups(E)), this.varConfigPossibilityMap.set(e, transformVarConfigPossibilities(k)), this.varConfigTipMap.set(e, transformVarConfigTips(N)), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(v)), this.varSubmitConfigMap.set(e, transformVarSubmitConfigs(y)), this.varSubmitDetailMap.set(e, transformVarSubmitDetails(R)), this.varProfileConfigMap.set(e, transformVarProfileConfig(O)), this.varProfileMasterMap.set(e, {
|
20413
|
+
varProfileMasters: transformVarProfileMasters(C),
|
20414
|
+
currentVarProfileMasterID: (i = (n = (C == null ? void 0 : C.find((I) => I.id === this.getCurrentVarProfileMasterID(e))) || (C == null ? void 0 : C.find((I) => I.def_flg === 1)) || (C == null ? void 0 : C.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (C == null ? void 0 : C.find(() => !0))) == null ? void 0 : n.id) != null ? i : null
|
20392
20415
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(A)), this.varGridMasterMap.set(e, {
|
20393
20416
|
varGridMasters: transformVarGridMasters(V),
|
20394
20417
|
currentVarGridMasterID: (l = (s = (V == null ? void 0 : V.find((I) => I.id === this.getCurrentVarGridMasterID(e))) || (V == null ? void 0 : V.find((I) => I.def_flg === 1)) || (V == null ? void 0 : V.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (V == null ? void 0 : V.find(() => !0))) == null ? void 0 : s.id) != null ? l : null
|
@@ -20396,14 +20419,14 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
20396
20419
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
20397
20420
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
20398
20421
|
]);
|
20399
|
-
const
|
20422
|
+
const F = uniq(
|
20400
20423
|
(c = (u = (o = this.getCurrentVarGridDetails(e)) == null ? void 0 : o.map((I) => {
|
20401
|
-
var P, M,
|
20424
|
+
var P, M, B;
|
20402
20425
|
const D = KgUtil.tryParseJSON(I.display_type_properties);
|
20403
|
-
return !((P = D.description) != null && P.codeName) || ((M = D.description) == null ? void 0 : M.isDefer) === !0 ? null : (
|
20426
|
+
return !((P = D.description) != null && P.codeName) || ((M = D.description) == null ? void 0 : M.isDefer) === !0 ? null : (B = D.description) == null ? void 0 : B.codeName;
|
20404
20427
|
})) == null ? void 0 : u.filter((I) => !!I)) != null ? c : []
|
20405
20428
|
);
|
20406
|
-
for (let I of
|
20429
|
+
for (let I of F)
|
20407
20430
|
r.store.requestDescriptions({ codeName: I });
|
20408
20431
|
this.isRequestedMap.set(e, !0), this.emit(e, "retrieve");
|
20409
20432
|
}
|
@@ -20542,7 +20565,6 @@ function useKgVar(e, t, a = 0) {
|
|
20542
20565
|
return s.requestAll(i, m);
|
20543
20566
|
},
|
20544
20567
|
store: s,
|
20545
|
-
systemVarGridDetails: computed(() => s.getSystemVarGridDetails(i)),
|
20546
20568
|
t(m) {
|
20547
20569
|
return computed(() => s.t(i, m));
|
20548
20570
|
},
|
@@ -20748,8 +20770,8 @@ const KgVar = defineComponent({
|
|
20748
20770
|
}
|
20749
20771
|
});
|
20750
20772
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), l = computed(() => {
|
20751
|
-
var p, T, E, k, N, O,
|
20752
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = s.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (N = i.kgTable.selectedRows.value) == null ? void 0 : N.length) != null ? O : 0) > 1 || KgAuthUtil.getPermissionType((
|
20773
|
+
var p, T, E, k, N, O, C, A;
|
20774
|
+
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = s.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (N = i.kgTable.selectedRows.value) == null ? void 0 : N.length) != null ? O : 0) > 1 || KgAuthUtil.getPermissionType((C = s.value) == null ? void 0 : C.permission_code) === 2 && !n.p((A = s.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
|
20753
20775
|
}), o = computed(() => !!i.isCreatingRequesting.value);
|
20754
20776
|
async function u() {
|
20755
20777
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -21262,11 +21284,11 @@ const KgVar = defineComponent({
|
|
21262
21284
|
}
|
21263
21285
|
let u = null;
|
21264
21286
|
const c = async () => {
|
21265
|
-
var m, p, T, E, k, N, O,
|
21287
|
+
var m, p, T, E, k, N, O, C, A;
|
21266
21288
|
u == null || u.showLoading(), a.store.setIsOtherRequesting(a.formID, !0);
|
21267
21289
|
const g = a.kgTable.selectedRows.value;
|
21268
21290
|
try {
|
21269
|
-
const V = KgVarUtil.parseRequestParamsToJSON((p = (m = e.kgButton) == null ? void 0 : m.cmd_prm) != null ? p : ""), y = (E = (T = e.kgButton) == null ? void 0 : T.cmd_method) != null ? E : "POST",
|
21291
|
+
const V = KgVarUtil.parseRequestParamsToJSON((p = (m = e.kgButton) == null ? void 0 : m.cmd_prm) != null ? p : ""), y = (E = (T = e.kgButton) == null ? void 0 : T.cmd_method) != null ? E : "POST", R = await httpClient().request({
|
21270
21292
|
url: o,
|
21271
21293
|
method: y,
|
21272
21294
|
params: V,
|
@@ -21277,14 +21299,14 @@ const KgVar = defineComponent({
|
|
21277
21299
|
}
|
21278
21300
|
});
|
21279
21301
|
if (((O = e.kgButton) == null ? void 0 : O.reload_all_after_done_flg) === 1) {
|
21280
|
-
let
|
21281
|
-
((
|
21282
|
-
datas:
|
21302
|
+
let L = !0;
|
21303
|
+
((C = e.kgButton) == null ? void 0 : C.re_select_after_reload_flg) !== 0 && (L = !1, a.kgTable.onAfterRequest(async ({
|
21304
|
+
datas: F
|
21283
21305
|
}) => {
|
21284
|
-
const I =
|
21306
|
+
const I = F.value, D = intersectionWith$1(I, g != null ? g : [], (P, M) => (P == null ? void 0 : P[a.kgTable.idKey.value]) === (M == null ? void 0 : M[a.kgTable.idKey.value]));
|
21285
21307
|
return D.length > 0 && a.kgTable.store.setSelectedRows(a.formID, D), !1;
|
21286
21308
|
}, !0)), ((A = e.kgButton) == null ? void 0 : A.show_success_message_flg) !== 0 && message.success(t.t("kg.executeSuccess")), a.kgSearch.search({
|
21287
|
-
isSearchFirstPage:
|
21309
|
+
isSearchFirstPage: L
|
21288
21310
|
});
|
21289
21311
|
}
|
21290
21312
|
} catch (V) {
|
@@ -21415,8 +21437,8 @@ const KgVar = defineComponent({
|
|
21415
21437
|
}
|
21416
21438
|
});
|
21417
21439
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), l = computed(() => {
|
21418
|
-
var p, T, E, k, N, O,
|
21419
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = s.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (N = i.kgTable.selectedRows.value) == null ? void 0 : N.length) != null ? O : 0) > 1 || KgAuthUtil.getPermissionType((
|
21440
|
+
var p, T, E, k, N, O, C, A;
|
21441
|
+
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = s.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (N = i.kgTable.selectedRows.value) == null ? void 0 : N.length) != null ? O : 0) > 1 || KgAuthUtil.getPermissionType((C = s.value) == null ? void 0 : C.permission_code) === 2 && !n.p((A = s.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
|
21420
21442
|
}), o = computed(() => !!i.isUpdatingRequesting.value);
|
21421
21443
|
async function u() {
|
21422
21444
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -22191,7 +22213,7 @@ const getProps$a = () => ({
|
|
22191
22213
|
const K = (W = n.kgButton.searchButton.value) == null ? void 0 : W.var_nam, U = n.t(K).value;
|
22192
22214
|
if (!!U && !!K && U !== K)
|
22193
22215
|
return U;
|
22194
|
-
}),
|
22216
|
+
}), C = computed(() => {
|
22195
22217
|
var K;
|
22196
22218
|
switch ((K = n.kgButton.searchButton.value) == null ? void 0 : K.primary_flg) {
|
22197
22219
|
case 1:
|
@@ -22204,7 +22226,7 @@ const getProps$a = () => ({
|
|
22204
22226
|
}), A = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value)), V = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), y = computed(() => {
|
22205
22227
|
let K = "kg-search";
|
22206
22228
|
return i.value && (K += " kg-search--visible"), K;
|
22207
|
-
}),
|
22229
|
+
}), R = computed(() => {
|
22208
22230
|
switch (n.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
22209
22231
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
22210
22232
|
switch (n.kgSubmit.searchVarSubmitConfig$LabelColumnUnit.value) {
|
@@ -22223,7 +22245,7 @@ const getProps$a = () => ({
|
|
22223
22245
|
default:
|
22224
22246
|
return;
|
22225
22247
|
}
|
22226
|
-
}),
|
22248
|
+
}), L = computed(() => {
|
22227
22249
|
switch (n.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
22228
22250
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
22229
22251
|
switch (n.kgSubmit.searchVarSubmitConfig$LabelColumnUnit.value) {
|
@@ -22243,7 +22265,7 @@ const getProps$a = () => ({
|
|
22243
22265
|
}, {
|
22244
22266
|
immediate: !0
|
22245
22267
|
});
|
22246
|
-
async function
|
22268
|
+
async function F(K = {}) {
|
22247
22269
|
var U, W;
|
22248
22270
|
if (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), n.kgTable.isRetrieving.value) {
|
22249
22271
|
____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
@@ -22265,7 +22287,7 @@ const getProps$a = () => ({
|
|
22265
22287
|
});
|
22266
22288
|
})) : (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await n.kgSearch.store.emit(n.formID, "search", K));
|
22267
22289
|
}
|
22268
|
-
n.kgSearch.store.setSearchFn(n.formID,
|
22290
|
+
n.kgSearch.store.setSearchFn(n.formID, F);
|
22269
22291
|
async function I() {
|
22270
22292
|
u(), i.value ? o.value && o.value.validate().then(async () => {
|
22271
22293
|
await n.kgSearch.store.emit(n.formID, "reset", {});
|
@@ -22277,7 +22299,7 @@ const getProps$a = () => ({
|
|
22277
22299
|
}
|
22278
22300
|
n.kgSearch.store.setResetFn(n.formID, I);
|
22279
22301
|
function D() {
|
22280
|
-
return
|
22302
|
+
return F({
|
22281
22303
|
isSearchFirstPage: !0
|
22282
22304
|
}), Promise.resolve(!0);
|
22283
22305
|
}
|
@@ -22322,7 +22344,7 @@ const getProps$a = () => ({
|
|
22322
22344
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
22323
22345
|
})]);
|
22324
22346
|
}
|
22325
|
-
function
|
22347
|
+
function B() {
|
22326
22348
|
var K, U, W;
|
22327
22349
|
return createVNode(Fragment, null, [M(), createVNode(Button, {
|
22328
22350
|
type: "primary",
|
@@ -22338,7 +22360,7 @@ const getProps$a = () => ({
|
|
22338
22360
|
kgIcon: (U = n.kgButton.searchButton.value) == null ? void 0 : U.icon,
|
22339
22361
|
kgText: O.value,
|
22340
22362
|
kgColor: (W = n.kgButton.searchButton.value) == null ? void 0 : W.color,
|
22341
|
-
kgPrimary:
|
22363
|
+
kgPrimary: C.value,
|
22342
22364
|
kgDisabled: p.value,
|
22343
22365
|
kgLoading: E.value,
|
22344
22366
|
onKgClick: D
|
@@ -22355,8 +22377,8 @@ const getProps$a = () => ({
|
|
22355
22377
|
ref: o,
|
22356
22378
|
model: (U = n.kgSearch.formModel.value) != null ? U : {},
|
22357
22379
|
layout: n.kgSubmit.searchVarSubmitConfig$Layout.value,
|
22358
|
-
labelCol:
|
22359
|
-
wrapperCol:
|
22380
|
+
labelCol: R.value,
|
22381
|
+
wrapperCol: L.value
|
22360
22382
|
}, {
|
22361
22383
|
default: () => [createVNode(Row, {
|
22362
22384
|
gutter: 6
|
@@ -22364,7 +22386,7 @@ const getProps$a = () => ({
|
|
22364
22386
|
key: W.var_nam,
|
22365
22387
|
kgVarName: W.var_nam,
|
22366
22388
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
22367
|
-
onKgSubmit: () =>
|
22389
|
+
onKgSubmit: () => F({
|
22368
22390
|
isSearchFirstPage: !0
|
22369
22391
|
})
|
22370
22392
|
}, null))) ? K : {
|
@@ -22400,7 +22422,7 @@ const getProps$a = () => ({
|
|
22400
22422
|
}, {
|
22401
22423
|
default: () => [P(), createVNode("div", {
|
22402
22424
|
class: "ant-collapse-extra"
|
22403
|
-
}, [
|
22425
|
+
}, [B()])]
|
22404
22426
|
})]), createVNode("div", {
|
22405
22427
|
class: "ant-collapse-content ant-collapse-content-active"
|
22406
22428
|
}, [createVNode("div", {
|
@@ -23331,8 +23353,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23331
23353
|
customRender: ({
|
23332
23354
|
record: N
|
23333
23355
|
}) => {
|
23334
|
-
var
|
23335
|
-
return N.whId === ((
|
23356
|
+
var C;
|
23357
|
+
return N.whId === ((C = s.value) == null ? void 0 : C.whId) ? createVNode("img", {
|
23336
23358
|
src: WAREHOUSE_1890ff
|
23337
23359
|
}, null) : createVNode("img", {
|
23338
23360
|
src: WAREHOUSE_000000
|
@@ -23342,25 +23364,25 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23342
23364
|
customRender: ({
|
23343
23365
|
record: N
|
23344
23366
|
}) => {
|
23345
|
-
var
|
23367
|
+
var C, A, V;
|
23346
23368
|
const O = N;
|
23347
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
23369
|
+
return createVNode("div", null, [createVNode("div", null, [(C = O.whDsc) != null ? C : " ", createTextVNode(" - "), (A = O.whId) != null ? A : " "]), createVNode("div", {
|
23348
23370
|
class: "address"
|
23349
23371
|
}, [(V = O.adrnam) != null ? V : " "])]);
|
23350
23372
|
}
|
23351
23373
|
}]), u = ref([]), c = computed(() => {
|
23352
23374
|
var O;
|
23353
23375
|
const N = (O = i.value) == null ? void 0 : O.toUpperCase();
|
23354
|
-
return u.value.filter((
|
23355
|
-
var A, V, y,
|
23356
|
-
return ((V = (A =
|
23376
|
+
return u.value.filter((C) => {
|
23377
|
+
var A, V, y, R, L, F;
|
23378
|
+
return ((V = (A = C.whDsc) == null ? void 0 : A.toUpperCase()) == null ? void 0 : V.includes(N)) || ((R = (y = C.whId) == null ? void 0 : y.toUpperCase()) == null ? void 0 : R.includes(N)) || ((F = (L = C.adrId) == null ? void 0 : L.toUpperCase()) == null ? void 0 : F.includes(N));
|
23357
23379
|
});
|
23358
23380
|
}), _ = computed(() => {
|
23359
23381
|
var N;
|
23360
23382
|
return ((N = a.option.value.KgWarehouse) == null ? void 0 : N.on) !== !1;
|
23361
23383
|
}), d = computed(() => {
|
23362
|
-
var N, O,
|
23363
|
-
return (A = (
|
23384
|
+
var N, O, C, A;
|
23385
|
+
return (A = (C = (O = (N = a.store).getUseUserStore) == null ? void 0 : O.call(N)) == null ? void 0 : C.getUserWarehouses) != null ? A : [];
|
23364
23386
|
});
|
23365
23387
|
watch(r.visible, (N) => {
|
23366
23388
|
!_.value || (N ? g() : m());
|
@@ -23404,8 +23426,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23404
23426
|
}
|
23405
23427
|
});
|
23406
23428
|
u.value = (N != null ? N : []).filter((O) => {
|
23407
|
-
var
|
23408
|
-
return KgAuthUtil.isAdminUser() ? !0 : (
|
23429
|
+
var C;
|
23430
|
+
return KgAuthUtil.isAdminUser() ? !0 : (C = d.value) == null ? void 0 : C.find((A) => A.wh_id === O.whId);
|
23409
23431
|
});
|
23410
23432
|
} catch (N) {
|
23411
23433
|
console.error(N);
|
@@ -23414,10 +23436,10 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23414
23436
|
}
|
23415
23437
|
}
|
23416
23438
|
function E(N, O) {
|
23417
|
-
var
|
23439
|
+
var C;
|
23418
23440
|
switch (N.detail) {
|
23419
23441
|
case 1:
|
23420
|
-
((
|
23442
|
+
((C = s.value) == null ? void 0 : C.whId) === O.whId ? s.value = null : s.value = O;
|
23421
23443
|
break;
|
23422
23444
|
case 2:
|
23423
23445
|
s.value = O, p();
|
@@ -23476,7 +23498,7 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23476
23498
|
var O;
|
23477
23499
|
return {
|
23478
23500
|
class: N.whId === ((O = s.value) == null ? void 0 : O.whId) ? "selected" : "",
|
23479
|
-
onClick: (
|
23501
|
+
onClick: (C) => E(C, N)
|
23480
23502
|
};
|
23481
23503
|
}
|
23482
23504
|
}, null)]
|
@@ -23546,7 +23568,7 @@ function httpClient() {
|
|
23546
23568
|
throw new Error("\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
|
23547
23569
|
let T = {};
|
23548
23570
|
n.method === "GET" || n.method === "POST" && !n.data && n.params ? T = n.params : n.method === "POST" && n.data && (T = n.data);
|
23549
|
-
const { sql: E, whereSql: k, orderBySql: N, offsetSql: O, operatorJSON:
|
23571
|
+
const { sql: E, whereSql: k, orderBySql: N, offsetSql: O, operatorJSON: C } = KgVarUtil.getQueryHeaders({
|
23550
23572
|
$dayjs: i == null ? void 0 : i.dayjs,
|
23551
23573
|
dynamicQueryOperatorModel: i == null ? void 0 : i.dynamicQueryOperatorModel,
|
23552
23574
|
formID: null,
|
@@ -23557,7 +23579,7 @@ function httpClient() {
|
|
23557
23579
|
...(v = n.headers) != null ? v : {},
|
23558
23580
|
[l]: !0,
|
23559
23581
|
[c]: O,
|
23560
|
-
[d]:
|
23582
|
+
[d]: C,
|
23561
23583
|
[u]: N,
|
23562
23584
|
[_]: E,
|
23563
23585
|
[o]: k
|
@@ -24165,33 +24187,33 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24165
24187
|
}
|
24166
24188
|
}), useKgPageDdaCreateStore = defineStore("KgPageDdaCreate", () => {
|
24167
24189
|
const e = useKg(), t = ref([]), a = ref(!1), r = ref([]), n = ref({}), i = computed(() => a.value), s = computed(() => r.value), l = computed(() => n.value), o = computed(() => n.value.frmId), u = computed(() => n.value.varButtons);
|
24168
|
-
function c(
|
24169
|
-
a.value =
|
24190
|
+
function c(R) {
|
24191
|
+
a.value = R != null ? R : !1;
|
24170
24192
|
}
|
24171
|
-
function _(
|
24172
|
-
r.value =
|
24193
|
+
function _(R) {
|
24194
|
+
r.value = R != null ? R : [];
|
24173
24195
|
}
|
24174
|
-
function d(
|
24175
|
-
n.value.frmId =
|
24196
|
+
function d(R) {
|
24197
|
+
n.value.frmId = R != null ? R : "", n.value.varButtons.forEach((L) => L.frm_id = R), n.value.varVariables.forEach((L) => L.frm_id = R), n.value.varDda.frm_id = R != null ? R : "", n.value.varGridConfig.frm_id = R != null ? R : "", n.value.varGridDetails.forEach((L) => L.frm_id = R), n.value.varGridMaster.frm_id = R != null ? R : "", n.value.varProfileConfig.frm_id = R != null ? R : "", n.value.varProfileDetails.forEach((L) => L.frm_id = R), n.value.varProfileMaster.frm_id = R != null ? R : "", n.value.varSubmitConfigs.forEach((L) => L.frm_id = R), n.value.varSubmitDetails.forEach((L) => L.frm_id = R), n.value.varConfigDescriptions.forEach((L) => L.frm_id = R);
|
24176
24198
|
}
|
24177
|
-
function v(
|
24178
|
-
const { properties:
|
24179
|
-
Object.entries(
|
24180
|
-
|
24199
|
+
function v(R) {
|
24200
|
+
const { properties: L = {} } = R;
|
24201
|
+
Object.entries(L).forEach(([F, I]) => {
|
24202
|
+
F in n.value.sysPermissions[0] && n.value.sysPermissions[0][F] !== I && (n.value.sysPermissions[0][F] = I);
|
24181
24203
|
});
|
24182
24204
|
}
|
24183
|
-
function g(
|
24184
|
-
const { formID:
|
24185
|
-
n.value.varDda.frm_id =
|
24205
|
+
function g(R) {
|
24206
|
+
const { formID: L, frmNam: F } = R;
|
24207
|
+
n.value.varDda.frm_id = L, n.value.varDda.frm_nam = F;
|
24186
24208
|
}
|
24187
|
-
function m(
|
24209
|
+
function m(R) {
|
24188
24210
|
n.value.varButtons = [
|
24189
24211
|
...toRaw(n.value.varButtons),
|
24190
24212
|
{
|
24191
|
-
...
|
24213
|
+
...R,
|
24192
24214
|
available_flag: 1,
|
24193
24215
|
cmd: (() => {
|
24194
|
-
switch (
|
24216
|
+
switch (R.typ) {
|
24195
24217
|
case KG__VAR_BUTTON__TYPE.CREATE:
|
24196
24218
|
return "/var/VarPage/create";
|
24197
24219
|
case KG__VAR_BUTTON__TYPE.UPDATE:
|
@@ -24210,33 +24232,33 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24210
24232
|
}
|
24211
24233
|
], V();
|
24212
24234
|
}
|
24213
|
-
function p(
|
24214
|
-
const { varName:
|
24235
|
+
function p(R) {
|
24236
|
+
const { varName: L, properties: F = {} } = R, I = n.value.varButtons.find((M) => M.var_nam === L);
|
24215
24237
|
if (!I)
|
24216
24238
|
return;
|
24217
24239
|
let D = !1;
|
24218
|
-
if (Object.entries(
|
24219
|
-
M in I && I[M] !==
|
24240
|
+
if (Object.entries(F).forEach(([M, B]) => {
|
24241
|
+
M in I && I[M] !== B && (I[M] = B, D = !0);
|
24220
24242
|
}), !D)
|
24221
24243
|
return;
|
24222
24244
|
const P = [...n.value.varButtons];
|
24223
24245
|
P.splice(n.value.varButtons.indexOf(I), 1, { ...I }), n.value.varButtons = toRaw(P);
|
24224
24246
|
}
|
24225
|
-
function T(
|
24226
|
-
const { varName:
|
24227
|
-
if (!
|
24247
|
+
function T(R) {
|
24248
|
+
const { varName: L } = R, F = n.value.varButtons.find((D) => D.var_nam === L);
|
24249
|
+
if (!F)
|
24228
24250
|
return;
|
24229
24251
|
const I = [...n.value.varButtons];
|
24230
|
-
I.splice(n.value.varButtons.indexOf(
|
24252
|
+
I.splice(n.value.varButtons.indexOf(F), 1), n.value.varButtons = toRaw(I);
|
24231
24253
|
}
|
24232
|
-
function E(
|
24254
|
+
function E(R) {
|
24233
24255
|
var D;
|
24234
|
-
const { varName:
|
24235
|
-
if (!
|
24256
|
+
const { varName: L, varText: F } = R;
|
24257
|
+
if (!L)
|
24236
24258
|
return;
|
24237
|
-
const I = n.value.varConfigDescriptions.find((P) => P.var_nam ===
|
24259
|
+
const I = n.value.varConfigDescriptions.find((P) => P.var_nam === L);
|
24238
24260
|
if (I) {
|
24239
|
-
I.var_text =
|
24261
|
+
I.var_text = F || L;
|
24240
24262
|
return;
|
24241
24263
|
}
|
24242
24264
|
n.value.varConfigDescriptions = [
|
@@ -24246,28 +24268,28 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24246
24268
|
frm_id: o.value,
|
24247
24269
|
grp_nam: "WMS",
|
24248
24270
|
locale_id: (D = e.locale) == null ? void 0 : D.value,
|
24249
|
-
var_nam:
|
24250
|
-
var_text:
|
24271
|
+
var_nam: L,
|
24272
|
+
var_text: F || L
|
24251
24273
|
}
|
24252
24274
|
];
|
24253
24275
|
}
|
24254
|
-
function k(
|
24255
|
-
n.value.varProfileDetails =
|
24256
|
-
...
|
24276
|
+
function k(R) {
|
24277
|
+
n.value.varProfileDetails = R.map((L) => ({
|
24278
|
+
...L,
|
24257
24279
|
frm_id: o.value,
|
24258
24280
|
grp_nam: "WMS"
|
24259
24281
|
}));
|
24260
24282
|
}
|
24261
|
-
function N(
|
24262
|
-
n.value.varGridDetails =
|
24263
|
-
...
|
24283
|
+
function N(R) {
|
24284
|
+
n.value.varGridDetails = R.map((L) => ({
|
24285
|
+
...L,
|
24264
24286
|
frm_id: o.value,
|
24265
24287
|
grp_nam: "WMS"
|
24266
24288
|
}));
|
24267
24289
|
}
|
24268
|
-
function O(
|
24269
|
-
n.value.varSubmitDetails =
|
24270
|
-
...
|
24290
|
+
function O(R) {
|
24291
|
+
n.value.varSubmitDetails = R.map((L) => ({
|
24292
|
+
...L,
|
24271
24293
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
24272
24294
|
enable_flag: 1,
|
24273
24295
|
frm_id: o.value,
|
@@ -24275,12 +24297,12 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24275
24297
|
visible_flag: 1
|
24276
24298
|
}));
|
24277
24299
|
}
|
24278
|
-
function R
|
24279
|
-
var
|
24280
|
-
return
|
24300
|
+
function C(R) {
|
24301
|
+
var L, F, I;
|
24302
|
+
return R && (I = (F = (L = n.value.varConfigDescriptions) == null ? void 0 : L.find((D) => D.var_nam === R)) == null ? void 0 : F.var_text) != null ? I : "";
|
24281
24303
|
}
|
24282
24304
|
function A() {
|
24283
|
-
var
|
24305
|
+
var R;
|
24284
24306
|
n.value = {
|
24285
24307
|
frmId: "",
|
24286
24308
|
sysPermissions: [
|
@@ -24323,7 +24345,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24323
24345
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
24324
24346
|
frm_id: "",
|
24325
24347
|
grp_nam: "WMS",
|
24326
|
-
locale_id: (
|
24348
|
+
locale_id: (R = e.locale) == null ? void 0 : R.value,
|
24327
24349
|
var_nam: KG__VAR_BUTTON__TYPE.SEARCH,
|
24328
24350
|
var_text: e.t("kg.query")
|
24329
24351
|
}
|
@@ -24365,23 +24387,23 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24365
24387
|
}, V();
|
24366
24388
|
}
|
24367
24389
|
function V() {
|
24368
|
-
var
|
24369
|
-
(
|
24370
|
-
var
|
24371
|
-
|
24390
|
+
var R;
|
24391
|
+
(R = n.value.varButtons) == null || R.forEach((L) => {
|
24392
|
+
var F, I;
|
24393
|
+
L.typDsc = (I = (F = t.value.find((D) => D.codval === L.typ)) == null ? void 0 : F.shortDsc) != null ? I : "";
|
24372
24394
|
});
|
24373
24395
|
}
|
24374
24396
|
async function y() {
|
24375
|
-
var
|
24376
|
-
const { records:
|
24397
|
+
var L;
|
24398
|
+
const { records: R } = await List$1({
|
24377
24399
|
params: {
|
24378
|
-
localeId: (
|
24400
|
+
localeId: (L = e.locale) == null ? void 0 : L.value,
|
24379
24401
|
codnam: "var_button_type",
|
24380
24402
|
pageNo: 1,
|
24381
24403
|
pageSize: 999
|
24382
24404
|
}
|
24383
24405
|
});
|
24384
|
-
t.value =
|
24406
|
+
t.value = R != null ? R : [], V();
|
24385
24407
|
}
|
24386
24408
|
return A(), y(), {
|
24387
24409
|
createVarButton: m,
|
@@ -24393,7 +24415,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24393
24415
|
getIsLoading: i,
|
24394
24416
|
getResultSetMetadataColumns: s,
|
24395
24417
|
getVarButtons: u,
|
24396
|
-
getVarText:
|
24418
|
+
getVarText: C,
|
24397
24419
|
initCreateVarDdaQuery: A,
|
24398
24420
|
isLoading: a,
|
24399
24421
|
patchSysPermission: v,
|
@@ -25232,9 +25254,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25232
25254
|
onItemSelectAll: E,
|
25233
25255
|
onItemSelect: k
|
25234
25256
|
}) => {
|
25235
|
-
const N = m.sort((O,
|
25257
|
+
const N = m.sort((O, C) => {
|
25236
25258
|
var A, V;
|
25237
|
-
return ((A = O.srtseq) != null ? A : 0) - ((V =
|
25259
|
+
return ((A = O.srtseq) != null ? A : 0) - ((V = C.srtseq) != null ? V : 0);
|
25238
25260
|
});
|
25239
25261
|
return g === "right" && (s.value = N, N.find((O) => O.id === __KG__CREATE_ROW_ID__) || N.push({
|
25240
25262
|
id: __KG__CREATE_ROW_ID__,
|
@@ -25474,9 +25496,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25474
25496
|
onItemSelectAll: E,
|
25475
25497
|
onItemSelect: k
|
25476
25498
|
}) => {
|
25477
|
-
const N = m.sort((O,
|
25499
|
+
const N = m.sort((O, C) => {
|
25478
25500
|
var A, V;
|
25479
|
-
return ((A = O.srtseq) != null ? A : 0) - ((V =
|
25501
|
+
return ((A = O.srtseq) != null ? A : 0) - ((V = C.srtseq) != null ? V : 0);
|
25480
25502
|
});
|
25481
25503
|
return g === "right" && (s.value = N, N.find((O) => O.id === __KG__CREATE_ROW_ID__) || N.push({
|
25482
25504
|
id: __KG__CREATE_ROW_ID__,
|
@@ -25715,9 +25737,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25715
25737
|
onItemSelectAll: E,
|
25716
25738
|
onItemSelect: k
|
25717
25739
|
}) => {
|
25718
|
-
const N = m.sort((O,
|
25740
|
+
const N = m.sort((O, C) => {
|
25719
25741
|
var A, V;
|
25720
|
-
return ((A = O.srtseq) != null ? A : 0) - ((V =
|
25742
|
+
return ((A = O.srtseq) != null ? A : 0) - ((V = C.srtseq) != null ? V : 0);
|
25721
25743
|
});
|
25722
25744
|
return g === "right" && (s.value = N, N.find((O) => O.id === __KG__CREATE_ROW_ID__) || N.push({
|
25723
25745
|
id: __KG__CREATE_ROW_ID__,
|
@@ -25766,7 +25788,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25766
25788
|
n.value !== 1 && (n.value -= 1);
|
25767
25789
|
}
|
25768
25790
|
async function T() {
|
25769
|
-
var N, O,
|
25791
|
+
var N, O, C, A, V;
|
25770
25792
|
switch (n.value) {
|
25771
25793
|
case 1:
|
25772
25794
|
try {
|
@@ -25782,7 +25804,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25782
25804
|
break;
|
25783
25805
|
case 3:
|
25784
25806
|
try {
|
25785
|
-
await ((
|
25807
|
+
await ((C = d.value) == null ? void 0 : C.onSubmit()), n.value += 1;
|
25786
25808
|
} catch {
|
25787
25809
|
}
|
25788
25810
|
break;
|
@@ -25804,21 +25826,21 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25804
25826
|
var N;
|
25805
25827
|
try {
|
25806
25828
|
await ((N = m.value) == null ? void 0 : N.onSubmit());
|
25807
|
-
const O = cloneDeep(toRaw(r.getCreateVarDdaQuery)),
|
25808
|
-
O.varVariables =
|
25829
|
+
const O = cloneDeep(toRaw(r.getCreateVarDdaQuery)), C = uniq(compact([...O.varButtons.map((A) => A.var_nam), ...O.varGridDetails.map((A) => A.var_nam), ...O.varProfileDetails.map((A) => A.var_nam), ...O.varSubmitDetails.map((A) => A.var_nam), O.varGridMaster.grd_var_nam, O.varProfileMaster.prf_var_nam]));
|
25830
|
+
O.varVariables = C.map((A) => new VarVariable({
|
25809
25831
|
frm_id: O.frmId,
|
25810
25832
|
var_nam: A,
|
25811
25833
|
grp_nam: "WMS"
|
25812
|
-
})), O.varConfigDescriptions = toRaw(O.varConfigDescriptions.filter((A) =>
|
25813
|
-
var y,
|
25834
|
+
})), O.varConfigDescriptions = toRaw(O.varConfigDescriptions.filter((A) => C.includes(A.var_nam))), O.varButtons.forEach((A, V) => {
|
25835
|
+
var y, R, L;
|
25814
25836
|
delete A.id, O.sysPermissions.push({
|
25815
25837
|
app: "WEB",
|
25816
25838
|
delFlag: 0,
|
25817
25839
|
leaf: !0,
|
25818
25840
|
menuType: 2,
|
25819
|
-
name: (
|
25841
|
+
name: (R = (y = O.varConfigDescriptions.find((F) => F.var_nam === A.var_nam)) == null ? void 0 : y.var_text) != null ? R : "",
|
25820
25842
|
parentId: "",
|
25821
|
-
perms: (
|
25843
|
+
perms: (L = A.permission_code) != null ? L : "",
|
25822
25844
|
permsType: "0",
|
25823
25845
|
route: !1,
|
25824
25846
|
sortNo: V + 1,
|
@@ -25827,8 +25849,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25827
25849
|
button_var_name: A.var_nam,
|
25828
25850
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
25829
25851
|
frm_id: O.frmId
|
25830
|
-
}), A.typ !== KG__VAR_BUTTON__TYPE.DELETE && O.varSubmitDetails.push(...O.varSubmitDetails.filter((
|
25831
|
-
...
|
25852
|
+
}), A.typ !== KG__VAR_BUTTON__TYPE.DELETE && O.varSubmitDetails.push(...O.varSubmitDetails.filter((F) => !F.button_var_name).map((F) => ({
|
25853
|
+
...F,
|
25832
25854
|
button_var_name: A.var_nam
|
25833
25855
|
}))));
|
25834
25856
|
}), O.varSubmitDetails = O.varSubmitDetails.filter((A) => !!A.button_var_name), await Create({
|