@kengic/vue 0.25.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/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
var Ce = Object.defineProperty;
|
2
|
-
var
|
3
|
-
var b = (e, t, a) => (
|
2
|
+
var Oe = (e, t, a) => t in e ? Ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
3
|
+
var b = (e, t, a) => (Oe(e, typeof t != "symbol" ? t + "" : t, a), a);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, toRaw, unref, Fragment, createTextVNode, inject, isVNode, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, onMounted, onBeforeUnmount, onBeforeMount, getCurrentScope, onScopeDispose, mergeProps, provide, onActivated, onDeactivated } from "vue";
|
5
5
|
import { Modal, message, Select, Spin, Tooltip, SelectOption, Image as Image$1, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, Menu, Transfer, Table, Tabs, Dropdown, Tag, Pagination, TableSummary, TabPane, Upload, ConfigProvider, TreeSelect, Steps } from "ant-design-vue";
|
6
6
|
const index$b = "";
|
@@ -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
|
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
|
-
|
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(
|
1871
|
-
const y =
|
1872
|
-
switch (d = d.filter((
|
1870
|
+
function N(C, A, V) {
|
1871
|
+
const y = A !== "success";
|
1872
|
+
switch (d = d.filter((R) => R !== C), o) {
|
1873
1873
|
case "pending":
|
1874
1874
|
break;
|
1875
1875
|
case "failed":
|
@@ -1879,28 +1879,28 @@ function sendQuery(e, t, a, r) {
|
|
1879
1879
|
default:
|
1880
1880
|
return;
|
1881
1881
|
}
|
1882
|
-
if (
|
1882
|
+
if (A === "abort") {
|
1883
1883
|
c = V, E();
|
1884
1884
|
return;
|
1885
1885
|
}
|
1886
1886
|
if (y) {
|
1887
|
-
c = V, d.length || (s.length ?
|
1887
|
+
c = V, d.length || (s.length ? O() : E());
|
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
|
-
function
|
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());
|
@@ -1910,16 +1910,16 @@ function sendQuery(e, t, a, r) {
|
|
1910
1910
|
E();
|
1911
1911
|
return;
|
1912
1912
|
}
|
1913
|
-
const
|
1913
|
+
const A = {
|
1914
1914
|
status: "pending",
|
1915
|
-
resource:
|
1915
|
+
resource: C,
|
1916
1916
|
callback: (V, y) => {
|
1917
|
-
N(
|
1917
|
+
N(A, V, y);
|
1918
1918
|
}
|
1919
1919
|
};
|
1920
|
-
d.push(
|
1920
|
+
d.push(A), u++, _ = setTimeout(O, e.rotate), a(C, t, A.callback);
|
1921
1921
|
}
|
1922
|
-
return setTimeout(
|
1922
|
+
return setTimeout(O), T;
|
1923
1923
|
}
|
1924
1924
|
function initRedundancy(e) {
|
1925
1925
|
const t = {
|
@@ -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")();
|
@@ -3641,8 +3641,8 @@ function equalObjects(e, t, a, r, n, i) {
|
|
3641
3641
|
p || (p = d == "constructor");
|
3642
3642
|
}
|
3643
3643
|
if (m && !p) {
|
3644
|
-
var N = e.constructor,
|
3645
|
-
N !=
|
3644
|
+
var N = e.constructor, O = t.constructor;
|
3645
|
+
N != O && "constructor" in e && "constructor" in t && !(typeof N == "function" && N instanceof N && typeof O == "function" && O instanceof O) && (m = !1);
|
3646
3646
|
}
|
3647
3647
|
return i.delete(e), i.delete(t), m;
|
3648
3648
|
}
|
@@ -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(
|
3816
|
-
var
|
3817
|
-
return r = n = void 0, u =
|
3815
|
+
function v(C) {
|
3816
|
+
var A = r, V = n;
|
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
|
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
|
3828
|
-
return o === void 0 ||
|
3826
|
+
function p(C) {
|
3827
|
+
var A = C - o, V = C - u;
|
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;
|
@@ -3842,9 +3842,9 @@ function debounce(e, t, a) {
|
|
3842
3842
|
function N() {
|
3843
3843
|
return l === void 0 ? s : E(now$1());
|
3844
3844
|
}
|
3845
|
-
function
|
3846
|
-
var
|
3847
|
-
if (r = arguments, n = this, o =
|
3845
|
+
function 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 (_)
|
@@ -3852,7 +3852,7 @@ function debounce(e, t, a) {
|
|
3852
3852
|
}
|
3853
3853
|
return l === void 0 && (l = setTimeout(T, t)), s;
|
3854
3854
|
}
|
3855
|
-
return
|
3855
|
+
return O.cancel = k, O.flush = N, O;
|
3856
3856
|
}
|
3857
3857
|
function isArrayLikeObject(e) {
|
3858
3858
|
return isObjectLike(e) && isArrayLike(e);
|
@@ -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,
|
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) => {
|
@@ -4834,9 +4834,9 @@ class KgRouteUtil {
|
|
4834
4834
|
id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
4835
4835
|
key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
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
|
-
slotTitle: (
|
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: (
|
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
|
-
} },
|
5011
|
-
|
5012
|
-
var
|
5013
|
-
return D instanceof
|
5014
|
-
}, y = function D(P, M,
|
5010
|
+
} }, O = "en", C = {};
|
5011
|
+
C[O] = E;
|
5012
|
+
var A = "$isDayjsObject", V = function(D) {
|
5013
|
+
return D instanceof F || !(!D || !D[A]);
|
5014
|
+
}, y = function D(P, M, B) {
|
5015
5015
|
var w;
|
5016
5016
|
if (!P)
|
5017
|
-
return
|
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
|
-
this.$L = y(M.locale, null, !0), this.parse(M), this.$x = this.$x || M.x || {}, this[
|
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;
|
@@ -5314,31 +5314,31 @@ function filesize(e, {
|
|
5314
5314
|
roundingMethod: m = ROUND,
|
5315
5315
|
precision: p = 0
|
5316
5316
|
} = {}) {
|
5317
|
-
let T = g, E = Number(e), k = [], N = 0,
|
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
|
-
k[0] = 0,
|
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
|
-
return
|
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],
|
5339
5339
|
symbol: k[1],
|
5340
5340
|
exponent: T,
|
5341
|
-
unit:
|
5341
|
+
unit: O
|
5342
5342
|
} : k.join(o);
|
5343
5343
|
}
|
5344
5344
|
class KgUtil {
|
@@ -5807,8 +5807,8 @@ class KgVarUtil {
|
|
5807
5807
|
const k = o.store.getVarConfigPossibility(a, r);
|
5808
5808
|
switch (k == null ? void 0 : k.val_data_type) {
|
5809
5809
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.NUMBER: {
|
5810
|
-
const N = E.map((
|
5811
|
-
if (N.some((
|
5810
|
+
const N = E.map((O) => Number(O));
|
5811
|
+
if (N.some((O) => Number.isNaN(N))) {
|
5812
5812
|
____ERROR____(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
5813
5813
|
formID: a,
|
5814
5814
|
varName: r,
|
@@ -6003,7 +6003,7 @@ class KgVarUtil {
|
|
6003
6003
|
})]);
|
6004
6004
|
}
|
6005
6005
|
static getQueryHeaders(t) {
|
6006
|
-
var E, k, N,
|
6006
|
+
var E, k, N, O, C;
|
6007
6007
|
const {
|
6008
6008
|
params: a,
|
6009
6009
|
kgSearchFormID: r,
|
@@ -6025,23 +6025,23 @@ class KgVarUtil {
|
|
6025
6025
|
whereSql: ""
|
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
|
-
Object.keys(l).sort().forEach((
|
6029
|
-
var
|
6030
|
-
if (o.includes(
|
6028
|
+
Object.keys(l).sort().forEach((A) => {
|
6029
|
+
var F, I, D, P, M, B;
|
6030
|
+
if (o.includes(A) || A.endsWith("_obj"))
|
6031
6031
|
return;
|
6032
|
-
const V = r ? (
|
6033
|
-
let y =
|
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 =
|
6032
|
+
const V = r ? (F = _ == null ? void 0 : _.store) == null ? void 0 : F.getVarProfileDetail(r, A) : null;
|
6033
|
+
let y = A;
|
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
|
-
key:
|
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) {
|
@@ -6166,14 +6166,14 @@ class KgVarUtil {
|
|
6166
6166
|
break;
|
6167
6167
|
}
|
6168
6168
|
}
|
6169
|
-
v[
|
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
|
-
key:
|
6176
|
+
key: A,
|
6177
6177
|
value: w
|
6178
6178
|
}), W = "";
|
6179
6179
|
switch (!0) {
|
@@ -6181,7 +6181,7 @@ class KgVarUtil {
|
|
6181
6181
|
W = KgUtil.parseParamFromDayjs({
|
6182
6182
|
formID: r,
|
6183
6183
|
isPad: !0,
|
6184
|
-
key:
|
6184
|
+
key: A,
|
6185
6185
|
value: x
|
6186
6186
|
});
|
6187
6187
|
break;
|
@@ -6199,29 +6199,29 @@ class KgVarUtil {
|
|
6199
6199
|
break;
|
6200
6200
|
}
|
6201
6201
|
}
|
6202
|
-
U && (K += ` AND (${y} >= N'${U}')`), W && (K += ` AND (${y} < N'${W}')`), v[
|
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 (
|
6207
|
-
v[
|
6205
|
+
case Array.isArray(R): {
|
6206
|
+
if (R.length === 0) {
|
6207
|
+
v[A] = void 0;
|
6208
6208
|
break;
|
6209
6209
|
}
|
6210
|
-
const w =
|
6211
|
-
v[
|
6210
|
+
const w = R.map((x) => `N'${String(x)}'`).join(", ");
|
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 (
|
6220
|
-
v[
|
6218
|
+
case typeof R == "string": {
|
6219
|
+
if (R.trim() === "") {
|
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;
|
@@ -6244,145 +6244,145 @@ class KgVarUtil {
|
|
6244
6244
|
break;
|
6245
6245
|
}
|
6246
6246
|
}
|
6247
|
-
v[
|
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
|
-
v[
|
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
|
}
|
6295
|
-
v[
|
6295
|
+
v[A] = w;
|
6296
6296
|
break;
|
6297
6297
|
}
|
6298
6298
|
default: {
|
6299
|
-
v[
|
6299
|
+
v[A] = R;
|
6300
6300
|
break;
|
6301
6301
|
}
|
6302
6302
|
}
|
6303
6303
|
});
|
6304
|
-
let m = `WHERE (1 = 1)${reduce(v, (
|
6305
|
-
var
|
6306
|
-
const
|
6307
|
-
return (
|
6304
|
+
let m = `WHERE (1 = 1)${reduce(v, (A, V, y) => {
|
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 = (
|
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
|
-
let
|
6375
|
-
((
|
6374
|
+
let A = l.column;
|
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)) {
|
6379
|
-
const
|
6380
|
-
if (Number.isNaN(
|
6379
|
+
const A = Number.parseInt(l.pageNo);
|
6380
|
+
if (Number.isNaN(A) || A <= 0)
|
6381
6381
|
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
6382
6382
|
const V = Number.parseInt(l.pageSize);
|
6383
6383
|
if (Number.isNaN(V) || V <= 0)
|
6384
6384
|
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
6385
|
-
T = ` OFFSET ${(
|
6385
|
+
T = ` OFFSET ${(A - 1) * V} ROWS FETCH NEXT ${V} ROWS ONLY`;
|
6386
6386
|
}
|
6387
6387
|
return {
|
6388
6388
|
offsetSql: T,
|
@@ -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({
|
@@ -6545,43 +6545,43 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6545
6545
|
getters: {},
|
6546
6546
|
state: [],
|
6547
6547
|
hotState: m
|
6548
|
-
}),
|
6548
|
+
}), O = {
|
6549
6549
|
_p: r,
|
6550
6550
|
$id: e,
|
6551
6551
|
$onAction: addSubscription.bind(null, d),
|
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,
|
6573
|
-
const
|
6574
|
-
for (const V in
|
6575
|
-
const y =
|
6572
|
+
r._s.set(e, C);
|
6573
|
+
const A = r._e.run(() => (i = effectScope(), i.run(() => t())));
|
6574
|
+
for (const V in A) {
|
6575
|
+
const y = A[V];
|
6576
6576
|
if (isRef(y) && !isComputed(y) || isReactive(y))
|
6577
|
-
process.env.NODE_ENV !== "production" && n ? set(m.value, V, toRef(
|
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
|
-
|
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
|
-
process.env.NODE_ENV !== "production" && isComputed(y) && (N.getters[V] = s ? a.getters[V] : y, IS_CLIENT && (
|
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;
|
@@ -7340,13 +7340,13 @@ function useMagicKeys(e = {}) {
|
|
7340
7340
|
}
|
7341
7341
|
function v(m, p) {
|
7342
7342
|
var T, E;
|
7343
|
-
const k = (T = m.key) == null ? void 0 : T.toLowerCase(), N = (E = m.code) == null ? void 0 : E.toLowerCase(),
|
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, ...
|
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
|
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
|
7444
|
-
|
7443
|
+
function A(F) {
|
7444
|
+
O(F);
|
7445
7445
|
}
|
7446
|
-
function V(
|
7447
|
-
|
7446
|
+
function V(F) {
|
7447
|
+
O(F), N(), document.body.classList.remove("kg-modal-dragging");
|
7448
7448
|
}
|
7449
7449
|
onUnmounted(() => {
|
7450
7450
|
N();
|
@@ -7460,98 +7460,98 @@ 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
|
-
let T = 0, E = 0, k = 0, N = 0,
|
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
|
};
|
7492
7492
|
watch(() => t.width, (M) => {
|
7493
7493
|
M !== void 0 && (d.value = M);
|
7494
7494
|
});
|
7495
|
-
const
|
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
|
-
|
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();
|
@@ -7882,87 +7882,87 @@ const getProps$H = () => ({
|
|
7882
7882
|
};
|
7883
7883
|
}
|
7884
7884
|
}), v = computed(() => {
|
7885
|
-
let
|
7886
|
-
switch (e.kgClass && (
|
7885
|
+
let A = "";
|
7886
|
+
switch (e.kgClass && (A += `${e.kgClass} `), A += "kg-resizable", e.kgDisabled && (A += " kg-resizable--disabled"), e.kgType) {
|
7887
7887
|
case "left":
|
7888
|
-
|
7888
|
+
A += " kg-resizable--left";
|
7889
7889
|
break;
|
7890
7890
|
case "right":
|
7891
|
-
|
7891
|
+
A += " kg-resizable--right";
|
7892
7892
|
break;
|
7893
7893
|
case "top":
|
7894
|
-
|
7894
|
+
A += " kg-resizable--top";
|
7895
7895
|
break;
|
7896
7896
|
case "bottom":
|
7897
|
-
|
7897
|
+
A += " kg-resizable--bottom";
|
7898
7898
|
break;
|
7899
7899
|
}
|
7900
|
-
return
|
7900
|
+
return A;
|
7901
7901
|
}), g = computed(() => {
|
7902
|
-
var
|
7902
|
+
var A, V;
|
7903
7903
|
switch (e.kgType) {
|
7904
7904
|
case "top":
|
7905
7905
|
case "bottom":
|
7906
|
-
return Math.min(i.value, (
|
7906
|
+
return Math.min(i.value, (A = e.kgMaxHeight) != null ? A : Number.MAX_VALUE);
|
7907
7907
|
case "left":
|
7908
7908
|
case "right":
|
7909
7909
|
return Math.min(n.value, (V = e.kgMaxHeight) != null ? V : Number.MAX_VALUE);
|
7910
7910
|
}
|
7911
7911
|
}), m = computed(() => {
|
7912
|
-
var
|
7913
|
-
return Math.min(g.value, (
|
7912
|
+
var A;
|
7913
|
+
return Math.min(g.value, (A = e.kgMinHeight) != null ? A : 0);
|
7914
7914
|
});
|
7915
7915
|
function p() {
|
7916
7916
|
c.remove(), _.remove();
|
7917
7917
|
}
|
7918
|
-
const T = (
|
7918
|
+
const T = (A) => {
|
7919
7919
|
switch (e.kgType) {
|
7920
7920
|
case "top":
|
7921
|
-
t("update:kgHeight", Math.min(g.value, Math.max(m.value, l - (
|
7921
|
+
t("update:kgHeight", Math.min(g.value, Math.max(m.value, l - (A.pageY - u))));
|
7922
7922
|
break;
|
7923
7923
|
case "bottom":
|
7924
|
-
t("update:kgHeight", Math.min(g.value, Math.max(m.value, l + (
|
7924
|
+
t("update:kgHeight", Math.min(g.value, Math.max(m.value, l + (A.pageY - u))));
|
7925
7925
|
break;
|
7926
7926
|
case "left":
|
7927
|
-
t("update:kgHeight", Math.min(g.value, Math.max(m.value, s - (
|
7927
|
+
t("update:kgHeight", Math.min(g.value, Math.max(m.value, s - (A.pageX - o))));
|
7928
7928
|
break;
|
7929
7929
|
case "right":
|
7930
|
-
t("update:kgHeight", Math.min(g.value, Math.max(m.value, s + (
|
7930
|
+
t("update:kgHeight", Math.min(g.value, Math.max(m.value, s + (A.pageX - o))));
|
7931
7931
|
break;
|
7932
7932
|
}
|
7933
7933
|
};
|
7934
|
-
function E(
|
7935
|
-
T(
|
7934
|
+
function E(A) {
|
7935
|
+
T(A);
|
7936
7936
|
}
|
7937
|
-
function k(
|
7938
|
-
T(
|
7937
|
+
function k(A) {
|
7938
|
+
T(A), p();
|
7939
7939
|
}
|
7940
|
-
function N(
|
7941
|
-
|
7940
|
+
function N(A) {
|
7941
|
+
A.stopPropagation(), A.preventDefault(), p(), !(A instanceof MouseEvent && A.which !== 1) && (o = A.pageX, u = A.pageY, s = e.kgHeight, l = e.kgHeight, c = O(document.documentElement, "mouseup", k), _ = O(document.documentElement, "mousemove", E));
|
7942
7942
|
}
|
7943
|
-
function A
|
7944
|
-
return
|
7945
|
-
remove: () =>
|
7943
|
+
function O(A, V, y) {
|
7944
|
+
return A.addEventListener(V, y), {
|
7945
|
+
remove: () => A.removeEventListener(V, y)
|
7946
7946
|
};
|
7947
7947
|
}
|
7948
|
-
function
|
7949
|
-
|
7948
|
+
function C(A) {
|
7949
|
+
A.stopPropagation(), A.preventDefault();
|
7950
7950
|
}
|
7951
7951
|
return onUnmounted(() => {
|
7952
7952
|
p();
|
7953
7953
|
}), () => {
|
7954
|
-
var
|
7954
|
+
var A;
|
7955
7955
|
return createVNode("div", {
|
7956
7956
|
ref: r,
|
7957
7957
|
class: v.value,
|
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"
|
7965
|
-
}, null)]), (
|
7965
|
+
}, null)]), (A = a.default) == null ? void 0 : A.call(a)]);
|
7966
7966
|
};
|
7967
7967
|
}
|
7968
7968
|
}), KG__DI__KG_FORM___FORM_MODEL = Symbol("KG__DI__KG_FORM___FORM_MODEL"), KG__DI__KG_FORM___FORM_REF = Symbol("KG__DI__KG_FORM___FORM_REF"), getProps$G = () => ({
|
@@ -8073,13 +8073,13 @@ const getProps$H = () => ({
|
|
8073
8073
|
a("update:visible", !1);
|
8074
8074
|
}
|
8075
8075
|
async function g() {
|
8076
|
-
var p, T, E, k, N,
|
8076
|
+
var p, T, E, k, N, O, C;
|
8077
8077
|
if (_.value) {
|
8078
|
-
const
|
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,
|
8082
|
-
rows:
|
8082
|
+
rows: A,
|
8083
8083
|
values: V,
|
8084
8084
|
var_nam: n
|
8085
8085
|
}))
|
@@ -8088,19 +8088,19 @@ const getProps$H = () => ({
|
|
8088
8088
|
context: s,
|
8089
8089
|
isMultiple: !0,
|
8090
8090
|
model: l,
|
8091
|
-
rows:
|
8091
|
+
rows: A,
|
8092
8092
|
values: V,
|
8093
8093
|
var_nam: n
|
8094
8094
|
}), a("update:visible", !1);
|
8095
8095
|
} else {
|
8096
|
-
const
|
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
|
-
row:
|
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;
|
@@ -8108,10 +8108,10 @@ const getProps$H = () => ({
|
|
8108
8108
|
context: s,
|
8109
8109
|
isMultiple: !1,
|
8110
8110
|
model: l,
|
8111
|
-
row:
|
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,55 +8203,55 @@ 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
|
8207
|
-
return (
|
8208
|
-
buttonVarName: (
|
8206
|
+
var O, C;
|
8207
|
+
return (C = a.kgSubmit.getVarSubmitDetails({
|
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
|
8212
|
+
var O, C;
|
8213
8213
|
return [
|
8214
8214
|
...s.value,
|
8215
|
-
...(
|
8216
|
-
...(
|
8215
|
+
...(O = e.kgRules) != null ? O : [],
|
8216
|
+
...(C = a.kgSubmit.formRules.value[e.kgVarName]) != null ? C : []
|
8217
8217
|
];
|
8218
8218
|
}), o = ref(!1);
|
8219
|
-
watch(l, (
|
8220
|
-
isEqual(
|
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 ([
|
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 = (() => {
|
8227
8227
|
let y = [];
|
8228
8228
|
switch (e.kgContext) {
|
8229
8229
|
case KG_FORM_CONTEXT.SEARCH:
|
8230
|
-
if ((
|
8230
|
+
if ((O == null ? void 0 : O.vis_flg) === 0)
|
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
|
}
|
8238
8238
|
switch (e.kgContext) {
|
8239
8239
|
case KG_FORM_CONTEXT.SEARCH:
|
8240
|
-
(
|
8240
|
+
(O == null ? void 0 : O.rqr_flg) === 1 && y.push({
|
8241
8241
|
required: !0,
|
8242
8242
|
message: t.t("kg.required")
|
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
|
});
|
8250
8250
|
break;
|
8251
8251
|
}
|
8252
|
-
switch (
|
8252
|
+
switch (A == null ? void 0 : A.validation_type) {
|
8253
8253
|
case OPTIONS: {
|
8254
|
-
switch (
|
8254
|
+
switch (A == null ? void 0 : A.data_type) {
|
8255
8255
|
case ANY: {
|
8256
8256
|
y.push({
|
8257
8257
|
validator: E
|
@@ -8333,62 +8333,62 @@ function _useFormRules(e) {
|
|
8333
8333
|
deep: !0,
|
8334
8334
|
immediate: !0
|
8335
8335
|
});
|
8336
|
-
function u(
|
8337
|
-
return
|
8336
|
+
function u(O) {
|
8337
|
+
return O == null || O === "" || typeof O == "string" && O.trim() === "";
|
8338
8338
|
}
|
8339
|
-
function c(
|
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 _(
|
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(
|
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(
|
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(
|
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(
|
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(
|
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
|
8369
|
-
return !isNil((V = n.value) == null ? void 0 : V.min) && ((y = n.value) == null ? void 0 : y.min_include_flg) === 1 &&
|
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(
|
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
|
8376
|
-
return !isNil((V = n.value) == null ? void 0 : V.max) && ((y = n.value) == null ? void 0 : y.max_include_flg) === 1 &&
|
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
8377
|
}
|
8378
|
-
function E(
|
8379
|
-
var V, y,
|
8380
|
-
const
|
8381
|
-
return !isNil((V = n.value) == null ? void 0 : V.min_length) &&
|
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
8382
|
}
|
8383
|
-
function k(
|
8384
|
-
var V, y,
|
8385
|
-
const
|
8386
|
-
return !isNil((V = n.value) == null ? void 0 : V.max_length) &&
|
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
8387
|
}
|
8388
|
-
function N(
|
8389
|
-
var
|
8390
|
-
const
|
8391
|
-
return V ? new RegExp(V).test(
|
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
|
+
return V ? new RegExp(V).test(A) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForRegularExpression", [V])) : Promise.resolve();
|
8392
8392
|
}
|
8393
8393
|
return {
|
8394
8394
|
formRules: l,
|
@@ -8452,35 +8452,35 @@ function useKgFormItemSelect(e) {
|
|
8452
8452
|
var T;
|
8453
8453
|
let p = KgVarUtil.parseRequestParamsToJSON((T = s.value) == null ? void 0 : T.cmd_prm);
|
8454
8454
|
return p = mapValues(p, (E) => {
|
8455
|
-
var N,
|
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
|
8469
|
+
var O, C, A, V, y, R, L, F, I, D, P, M, B;
|
8470
8470
|
let p = ref([]);
|
8471
|
-
const T = (
|
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,
|
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) => {
|
@@ -8585,10 +8585,10 @@ function useKgFormItemSelect(e) {
|
|
8585
8585
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX_GROUP:
|
8586
8586
|
{
|
8587
8587
|
const V = o;
|
8588
|
-
if ((
|
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;
|
@@ -8633,7 +8633,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8633
8633
|
}), watch([() => e.value, c], ([T, E]) => {
|
8634
8634
|
const k = get(T, "length", 0);
|
8635
8635
|
if (k > 0 && E.length > 0) {
|
8636
|
-
const N = intersection$1(T, E == null ? void 0 : E.map((
|
8636
|
+
const N = intersection$1(T, E == null ? void 0 : E.map((O) => O[u.value]));
|
8637
8637
|
if (N.length < k) {
|
8638
8638
|
a("update:value", N);
|
8639
8639
|
return;
|
@@ -8659,7 +8659,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8659
8659
|
}
|
8660
8660
|
function m(T) {
|
8661
8661
|
var E, k, N;
|
8662
|
-
T.target.checked ? p((k = (E = c.value) == null ? void 0 : E.map((
|
8662
|
+
T.target.checked ? p((k = (E = c.value) == null ? void 0 : E.map((O) => O[u.value])) != null ? k : []) : p([]), v.value = !1, (N = i.value) == null || N.validate(e.kgVarName);
|
8663
8663
|
}
|
8664
8664
|
function p(T) {
|
8665
8665
|
var E, k, N;
|
@@ -8695,17 +8695,17 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8695
8695
|
default: () => [createVNode(Row, {
|
8696
8696
|
gutter: 12
|
8697
8697
|
}, _isSlot$e(E = c.value.map((N) => {
|
8698
|
-
var
|
8698
|
+
var O, C;
|
8699
8699
|
return createVNode(Col, {
|
8700
|
-
span: (
|
8700
|
+
span: (C = (O = s.value) == null ? void 0 : O.span) != null ? C : 24
|
8701
8701
|
}, {
|
8702
8702
|
default: () => [createVNode(Checkbox, {
|
8703
8703
|
"kg-value": N[u.value],
|
8704
8704
|
value: N[u.value]
|
8705
8705
|
}, {
|
8706
8706
|
default: () => {
|
8707
|
-
var
|
8708
|
-
return [N[(V = (
|
8707
|
+
var A, V;
|
8708
|
+
return [N[(V = (A = l.value) == null ? void 0 : A.lbl_clm) != null ? V : ""]];
|
8709
8709
|
}
|
8710
8710
|
})]
|
8711
8711
|
});
|
@@ -9053,7 +9053,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9053
9053
|
switch (await d(), a("kgSelectDatasChange", _.value), e.kgMode) {
|
9054
9054
|
case "multiple": {
|
9055
9055
|
if (Array.isArray(e.value)) {
|
9056
|
-
const k = e.value.filter((N) => _.value.find((
|
9056
|
+
const k = e.value.filter((N) => _.value.find((O) => O[o.value] === N));
|
9057
9057
|
k.length > 0 ? a("update:value", k) : a("update:value", []);
|
9058
9058
|
}
|
9059
9059
|
break;
|
@@ -9064,11 +9064,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9064
9064
|
}
|
9065
9065
|
}
|
9066
9066
|
async function p(E) {
|
9067
|
-
var k, N,
|
9067
|
+
var k, N, O, C, A, V;
|
9068
9068
|
switch (e.kgMode) {
|
9069
9069
|
case "multiple": {
|
9070
9070
|
if (Array.isArray(E)) {
|
9071
|
-
const y = (k = toRaw(_.value.filter((
|
9071
|
+
const y = (k = toRaw(_.value.filter((R) => E.includes(R[o.value])))) != null ? k : null;
|
9072
9072
|
a("kgSelectChange", y), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
9073
9073
|
context: (N = e.kgContext) != null ? N : KG_FORM_CONTEXT.SUBMIT,
|
9074
9074
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
@@ -9080,15 +9080,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9080
9080
|
model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
9081
9081
|
rows: y,
|
9082
9082
|
values: E,
|
9083
|
-
var_nam: (
|
9083
|
+
var_nam: (O = e.kgVarName) != null ? O : ""
|
9084
9084
|
}), r.value[`${e.kgVarName}_obj`] = y;
|
9085
9085
|
}
|
9086
9086
|
break;
|
9087
9087
|
}
|
9088
9088
|
default: {
|
9089
|
-
const y = (
|
9089
|
+
const y = (C = toRaw(_.value.find((R) => R[o.value] === E))) != null ? C : null;
|
9090
9090
|
a("kgSelectChange", y), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
9091
|
-
context: (
|
9091
|
+
context: (A = e.kgContext) != null ? A : KG_FORM_CONTEXT.SUBMIT,
|
9092
9092
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
9093
9093
|
isCopying: i.isCopying.value,
|
9094
9094
|
isCreating: i.isCreating.value,
|
@@ -9105,7 +9105,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9105
9105
|
}
|
9106
9106
|
}
|
9107
9107
|
function T(E) {
|
9108
|
-
var k, N,
|
9108
|
+
var k, N, O;
|
9109
9109
|
a("update:value", E), i.kgForm.store.emit(i.kgForm.formID, "change", {
|
9110
9110
|
context: (k = e.kgContext) != null ? k : KG_FORM_CONTEXT.SUBMIT,
|
9111
9111
|
isCopying: i.isCopying.value,
|
@@ -9114,7 +9114,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9114
9114
|
isUpdating: i.isUpdating.value,
|
9115
9115
|
value: E,
|
9116
9116
|
varName: (N = e.kgVarName) != null ? N : "",
|
9117
|
-
variableName: (
|
9117
|
+
variableName: (O = e.kgVarName) != null ? O : ""
|
9118
9118
|
});
|
9119
9119
|
}
|
9120
9120
|
return () => {
|
@@ -9249,12 +9249,12 @@ const KgFormItem = defineComponent({
|
|
9249
9249
|
isMultiple: P,
|
9250
9250
|
values: M
|
9251
9251
|
}) => {
|
9252
|
-
var
|
9252
|
+
var B, w, x, K, U;
|
9253
9253
|
switch (I) {
|
9254
9254
|
case e.kgVarName: {
|
9255
9255
|
if (D.value) {
|
9256
9256
|
let W;
|
9257
|
-
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", {
|
9258
9258
|
context: (w = e.kgContext) != null ? w : KG_FORM_CONTEXT.SUBMIT,
|
9259
9259
|
isCopying: n.isCopying.value,
|
9260
9260
|
isCreating: n.isCreating.value,
|
@@ -9328,7 +9328,7 @@ const KgFormItem = defineComponent({
|
|
9328
9328
|
}
|
9329
9329
|
return I;
|
9330
9330
|
}), g = computed(() => {
|
9331
|
-
var D, P, M,
|
9331
|
+
var D, P, M, B;
|
9332
9332
|
let I = " ";
|
9333
9333
|
if (e.kgPlaceholder)
|
9334
9334
|
I = e.kgPlaceholder;
|
@@ -9339,12 +9339,12 @@ const KgFormItem = defineComponent({
|
|
9339
9339
|
break;
|
9340
9340
|
case KG_FORM_CONTEXT.SUBMIT:
|
9341
9341
|
case KG_FORM_CONTEXT.TABLE:
|
9342
|
-
I = n.t((
|
9342
|
+
I = n.t((B = (M = u.value) == null ? void 0 : M.placeholder) != null ? B : " ").value;
|
9343
9343
|
break;
|
9344
9344
|
}
|
9345
9345
|
return I;
|
9346
9346
|
}), m = computed(() => {
|
9347
|
-
var D, P, M,
|
9347
|
+
var D, P, M, B;
|
9348
9348
|
let I = KG__SPAN._12;
|
9349
9349
|
if (e.kgSpan !== void 0)
|
9350
9350
|
I = e.kgSpan;
|
@@ -9354,14 +9354,14 @@ const KgFormItem = defineComponent({
|
|
9354
9354
|
I = (P = (D = o.value) == null ? void 0 : D.width) != null ? P : KG__SPAN._12;
|
9355
9355
|
break;
|
9356
9356
|
case KG_FORM_CONTEXT.SUBMIT:
|
9357
|
-
I = (
|
9357
|
+
I = (B = (M = u.value) == null ? void 0 : M.width) != null ? B : KG__SPAN._12;
|
9358
9358
|
break;
|
9359
9359
|
case KG_FORM_CONTEXT.TABLE:
|
9360
9360
|
break;
|
9361
9361
|
}
|
9362
9362
|
return I = Number(I), I;
|
9363
9363
|
}), p = computed(() => {
|
9364
|
-
var D, P, M,
|
9364
|
+
var D, P, M, B;
|
9365
9365
|
let I = null;
|
9366
9366
|
if (e.kgSpan !== void 0)
|
9367
9367
|
I = e.kgSpan;
|
@@ -9371,7 +9371,7 @@ const KgFormItem = defineComponent({
|
|
9371
9371
|
I = (P = (D = o.value) == null ? void 0 : D.width) != null ? P : null;
|
9372
9372
|
break;
|
9373
9373
|
case KG_FORM_CONTEXT.SUBMIT:
|
9374
|
-
I = (
|
9374
|
+
I = (B = (M = u.value) == null ? void 0 : M.width) != null ? B : null;
|
9375
9375
|
break;
|
9376
9376
|
case KG_FORM_CONTEXT.TABLE:
|
9377
9377
|
I = null;
|
@@ -9379,12 +9379,12 @@ const KgFormItem = defineComponent({
|
|
9379
9379
|
}
|
9380
9380
|
return I = Number(I), I;
|
9381
9381
|
}), T = computed(() => {
|
9382
|
-
var M,
|
9383
|
-
const I = get(
|
9382
|
+
var M, B;
|
9383
|
+
const I = get(A.value, "$el.parentElement");
|
9384
9384
|
if (I && !((M = I.classList) != null && M.contains("ant-row")))
|
9385
9385
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9386
9386
|
let D = {};
|
9387
|
-
const P = Math.abs(Number.parseInt((
|
9387
|
+
const P = Math.abs(Number.parseInt((B = get(A.value, "$el.parentElement.style.marginLeft")) != null ? B : "0px"));
|
9388
9388
|
return Number.isNaN(P) || (D = {
|
9389
9389
|
paddingLeft: `${P}px !important`,
|
9390
9390
|
paddingRight: `${P}px !important`
|
@@ -9414,7 +9414,7 @@ const KgFormItem = defineComponent({
|
|
9414
9414
|
},
|
9415
9415
|
kgPlaceholder: g.value,
|
9416
9416
|
kgDisabled: v.value,
|
9417
|
-
id:
|
9417
|
+
id: C.value
|
9418
9418
|
};
|
9419
9419
|
switch (d.value) {
|
9420
9420
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_NUMBER:
|
@@ -9464,7 +9464,7 @@ const KgFormItem = defineComponent({
|
|
9464
9464
|
}
|
9465
9465
|
}
|
9466
9466
|
return !0;
|
9467
|
-
}),
|
9467
|
+
}), O = computed(() => {
|
9468
9468
|
var I, D, P;
|
9469
9469
|
if (!((I = i.value) != null && I.tip))
|
9470
9470
|
return !1;
|
@@ -9482,7 +9482,7 @@ const KgFormItem = defineComponent({
|
|
9482
9482
|
}
|
9483
9483
|
}
|
9484
9484
|
return !1;
|
9485
|
-
}),
|
9485
|
+
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), A = ref(null);
|
9486
9486
|
function V() {
|
9487
9487
|
return _.value ? null : createVNode(Form.Item, {
|
9488
9488
|
name: e.kgVarName,
|
@@ -9492,8 +9492,8 @@ const KgFormItem = defineComponent({
|
|
9492
9492
|
default: () => createVNode(Fragment, null, [createVNode(KgFormItemAddonDynamicQueryOperator, {
|
9493
9493
|
kgDisabled: v.value,
|
9494
9494
|
kgControlType: d.value
|
9495
|
-
}, null), y(),
|
9496
|
-
label: () =>
|
9495
|
+
}, null), y(), L(), F()]),
|
9496
|
+
label: () => R()
|
9497
9497
|
});
|
9498
9498
|
}
|
9499
9499
|
function y() {
|
@@ -9545,12 +9545,12 @@ const KgFormItem = defineComponent({
|
|
9545
9545
|
return createVNode(KgFormItemInput, k.value, null);
|
9546
9546
|
}
|
9547
9547
|
}
|
9548
|
-
function
|
9548
|
+
function R() {
|
9549
9549
|
var I, D;
|
9550
9550
|
return e.kgShowLabel ? createVNode("div", null, [createVNode("div", null, [createVNode("label", {
|
9551
9551
|
class: "title",
|
9552
9552
|
title: n.t(e.kgVarName).value,
|
9553
|
-
for:
|
9553
|
+
for: C.value
|
9554
9554
|
}, [n.t(e.kgVarName).value]), N.value && createVNode(Tooltip, {
|
9555
9555
|
placement: "top",
|
9556
9556
|
overlayClassName: "kg-form-item--tip--tooltip"
|
@@ -9562,12 +9562,12 @@ const KgFormItem = defineComponent({
|
|
9562
9562
|
innerHTML: (M = (P = i.value) == null ? void 0 : P.tip) != null ? M : ""
|
9563
9563
|
}, null);
|
9564
9564
|
}
|
9565
|
-
})]),
|
9565
|
+
})]), O.value && createVNode("div", {
|
9566
9566
|
class: "tip",
|
9567
9567
|
innerHTML: (D = (I = i.value) == null ? void 0 : I.tip) != null ? D : ""
|
9568
9568
|
}, null)]) : null;
|
9569
9569
|
}
|
9570
|
-
function
|
9570
|
+
function L() {
|
9571
9571
|
var I;
|
9572
9572
|
return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9573
9573
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -9576,7 +9576,7 @@ const KgFormItem = defineComponent({
|
|
9576
9576
|
}, null)]
|
9577
9577
|
});
|
9578
9578
|
}
|
9579
|
-
function
|
9579
|
+
function F() {
|
9580
9580
|
return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
|
9581
9581
|
formID: n.formID,
|
9582
9582
|
frm_id: n.formID,
|
@@ -9596,7 +9596,7 @@ const KgFormItem = defineComponent({
|
|
9596
9596
|
"kg-var_name": e.kgVarName,
|
9597
9597
|
"kg-lkp_id": (D = s.value) == null ? void 0 : D.lkp_id,
|
9598
9598
|
"kg-ret_fld": (P = s.value) == null ? void 0 : P.ret_fld,
|
9599
|
-
ref:
|
9599
|
+
ref: A,
|
9600
9600
|
class: E.value,
|
9601
9601
|
span: m.value,
|
9602
9602
|
style: T.value
|
@@ -10024,11 +10024,11 @@ const getProps$B = () => ({
|
|
10024
10024
|
_useResizeObserver$1(T);
|
10025
10025
|
const {
|
10026
10026
|
title: E
|
10027
|
-
} = _useTitle(), k = computed(() => s.value ? SUBMIT_DEFAULT_MIN_WIDTH :
|
10028
|
-
getClass:
|
10029
|
-
getWrapClass:
|
10027
|
+
} = _useTitle(), k = computed(() => s.value ? SUBMIT_DEFAULT_MIN_WIDTH : A.value), N = computed(() => k.value !== 0), {
|
10028
|
+
getClass: O,
|
10029
|
+
getWrapClass: C
|
10030
10030
|
} = _useClass(e), {
|
10031
|
-
getDefaultWidth:
|
10031
|
+
getDefaultWidth: A
|
10032
10032
|
} = _useDefaultWidth(), V = computed(() => {
|
10033
10033
|
var q, H, G;
|
10034
10034
|
switch (i.kgSubmit.currentVarSubmitConfig$Layout.value) {
|
@@ -10064,16 +10064,16 @@ const getProps$B = () => ({
|
|
10064
10064
|
default:
|
10065
10065
|
return;
|
10066
10066
|
}
|
10067
|
-
}),
|
10067
|
+
}), R = computed(() => {
|
10068
10068
|
var q, H;
|
10069
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");
|
10070
|
-
}),
|
10070
|
+
}), L = ref([(oe = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value[0]) != null ? oe : ""]);
|
10071
10071
|
watch(N, (q, H) => {
|
10072
|
-
q === !0 &&
|
10072
|
+
q === !0 && F(), H === !0 && q === !1 && I();
|
10073
10073
|
}, {
|
10074
10074
|
immediate: !0
|
10075
10075
|
});
|
10076
|
-
async function
|
10076
|
+
async function F() {
|
10077
10077
|
if (!await i.kgSubmit.store.emit(i.formID, "beforeOpen", {
|
10078
10078
|
isCopying: i.isCopying.value,
|
10079
10079
|
isCreating: i.isCreating.value,
|
@@ -10136,7 +10136,7 @@ const getProps$B = () => ({
|
|
10136
10136
|
await M();
|
10137
10137
|
break;
|
10138
10138
|
case i.isUpdating.value:
|
10139
|
-
await
|
10139
|
+
await B();
|
10140
10140
|
break;
|
10141
10141
|
case i.isCopying.value:
|
10142
10142
|
await w();
|
@@ -10204,7 +10204,7 @@ const getProps$B = () => ({
|
|
10204
10204
|
i.store.setIsCreatingRequesting(i.formID, !1);
|
10205
10205
|
}
|
10206
10206
|
}
|
10207
|
-
async function
|
10207
|
+
async function B() {
|
10208
10208
|
var q, H, G, $, Y, Q, z, ae, J, Z;
|
10209
10209
|
try {
|
10210
10210
|
i.store.setIsUpdatingRequesting(i.formID, !0);
|
@@ -10446,7 +10446,7 @@ const getProps$B = () => ({
|
|
10446
10446
|
class: "section"
|
10447
10447
|
}, [createVNode(Menu, {
|
10448
10448
|
mode: "inline",
|
10449
|
-
selectedKeys:
|
10449
|
+
selectedKeys: L.value,
|
10450
10450
|
onSelect: ce
|
10451
10451
|
}, _isSlot$b(q = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value.map((H) => createVNode(Menu.Item, {
|
10452
10452
|
key: H
|
@@ -10501,7 +10501,7 @@ const getProps$B = () => ({
|
|
10501
10501
|
danger: !!i.isDeleting.value,
|
10502
10502
|
onClick: P
|
10503
10503
|
}, {
|
10504
|
-
default: () => [
|
10504
|
+
default: () => [R.value]
|
10505
10505
|
})]);
|
10506
10506
|
}
|
10507
10507
|
function ue() {
|
@@ -10511,7 +10511,7 @@ const getProps$B = () => ({
|
|
10511
10511
|
}, null);
|
10512
10512
|
}
|
10513
10513
|
function ce(q) {
|
10514
|
-
|
10514
|
+
L.value = q.selectedKeys;
|
10515
10515
|
}
|
10516
10516
|
return onUnmounted(async () => {
|
10517
10517
|
i.kgSubmit.store.dispose(i.formID), await I();
|
@@ -10523,8 +10523,8 @@ const getProps$B = () => ({
|
|
10523
10523
|
keyboard: !1,
|
10524
10524
|
destroyOnClose: !0,
|
10525
10525
|
width: k.value,
|
10526
|
-
class:
|
10527
|
-
wrapClassName:
|
10526
|
+
class: O.value,
|
10527
|
+
wrapClassName: C.value,
|
10528
10528
|
kgFullHeight: !1,
|
10529
10529
|
kgMinWidth: d.value,
|
10530
10530
|
kgMaxWidth: v.value,
|
@@ -13339,9 +13339,26 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13339
13339
|
}), !1)), n.kgTable.onBeforeSetDatas(async ({
|
13340
13340
|
datas: p
|
13341
13341
|
}) => (transformVarGridMasters(p.value), !1)), n.kgSubmit.onOpen(async () => {
|
13342
|
-
var T, E, k, N,
|
13343
|
-
|
13344
|
-
|
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) {
|
13345
13362
|
case n.isCreating.value: {
|
13346
13363
|
s.value = [];
|
13347
13364
|
break;
|
@@ -13356,17 +13373,17 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13356
13373
|
id: (E = n.kgTable.selectedRow.value) == null ? void 0 : E.id
|
13357
13374
|
}
|
13358
13375
|
});
|
13359
|
-
i.value = i.value.map((
|
13360
|
-
var
|
13361
|
-
const
|
13362
|
-
return
|
13363
|
-
...
|
13364
|
-
...
|
13365
|
-
id:
|
13366
|
-
} :
|
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;
|
13367
13384
|
});
|
13368
|
-
const y = (N = (k = V == null ? void 0 : V.varGridDetails) == null ? void 0 : k.map((
|
13369
|
-
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);
|
13370
13387
|
} catch (V) {
|
13371
13388
|
throw V;
|
13372
13389
|
} finally {
|
@@ -13379,7 +13396,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13379
13396
|
}
|
13380
13397
|
switch (!0) {
|
13381
13398
|
case n.isCopying.value: {
|
13382
|
-
n.kgSubmit.formModel.value.grd_var_nam = ((
|
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";
|
13383
13400
|
break;
|
13384
13401
|
}
|
13385
13402
|
}
|
@@ -13455,13 +13472,13 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13455
13472
|
selectedKeys: E,
|
13456
13473
|
disabled: k,
|
13457
13474
|
onItemSelectAll: N,
|
13458
|
-
onItemSelect:
|
13475
|
+
onItemSelect: O
|
13459
13476
|
}) => {
|
13460
|
-
const
|
13461
|
-
var y,
|
13462
|
-
return ((y =
|
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);
|
13463
13480
|
});
|
13464
|
-
return l.value =
|
13481
|
+
return l.value = C, createVNode(Table, {
|
13465
13482
|
pagination: !1,
|
13466
13483
|
class: "kg-flex-table",
|
13467
13484
|
size: "small",
|
@@ -13471,18 +13488,18 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13471
13488
|
},
|
13472
13489
|
columns: p === "left" ? o() : u(),
|
13473
13490
|
rowKey: "id",
|
13474
|
-
dataSource:
|
13475
|
-
customRow: (
|
13491
|
+
dataSource: C,
|
13492
|
+
customRow: (A) => {
|
13476
13493
|
let V = {
|
13477
|
-
onClick: (y) => v(y,
|
13494
|
+
onClick: (y) => v(y, A, p, E)
|
13478
13495
|
};
|
13479
|
-
return p === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] =
|
13496
|
+
return p === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] = A.var_nam), V;
|
13480
13497
|
},
|
13481
13498
|
rowSelection: d({
|
13482
13499
|
disabled: k,
|
13483
13500
|
selectedKeys: E,
|
13484
13501
|
onItemSelectAll: N,
|
13485
|
-
onItemSelect:
|
13502
|
+
onItemSelect: O
|
13486
13503
|
})
|
13487
13504
|
}, null);
|
13488
13505
|
}
|
@@ -13498,16 +13515,16 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13498
13515
|
getCheckboxProps: (N) => ({
|
13499
13516
|
disabled: p || N.disabled
|
13500
13517
|
}),
|
13501
|
-
onSelectAll(N,
|
13502
|
-
const
|
13503
|
-
key:
|
13504
|
-
}) =>
|
13505
|
-
E(
|
13518
|
+
onSelectAll(N, O) {
|
13519
|
+
const C = O.filter((A) => !A.disabled).map(({
|
13520
|
+
key: A
|
13521
|
+
}) => A);
|
13522
|
+
E(C, N);
|
13506
13523
|
},
|
13507
13524
|
onSelect({
|
13508
13525
|
key: N
|
13509
|
-
},
|
13510
|
-
k(N,
|
13526
|
+
}, O) {
|
13527
|
+
k(N, O);
|
13511
13528
|
},
|
13512
13529
|
selectedRowKeys: T,
|
13513
13530
|
columnWidth: 32
|
@@ -13726,7 +13743,7 @@ const getProps$w = () => ({
|
|
13726
13743
|
slots: t,
|
13727
13744
|
emit: a
|
13728
13745
|
}) {
|
13729
|
-
var
|
13746
|
+
var A, V, y, R, L;
|
13730
13747
|
const r = useKg(), n = useKgVar(), {
|
13731
13748
|
filterVarGridDetailByKey: i
|
13732
13749
|
} = _useServices(), s = ref([]), l = computed(() => s.value.includes("1")), o = ref(""), u = computed(() => n.kgTable.store.getRowHeight(n.formID)), c = ref({
|
@@ -13734,27 +13751,27 @@ const getProps$w = () => ({
|
|
13734
13751
|
}), _ = ref({
|
13735
13752
|
visible: !1
|
13736
13753
|
}), d = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled), v = ref(null);
|
13737
|
-
_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({
|
13738
13755
|
columnsRef: v
|
13739
|
-
}), watch(l, (
|
13740
|
-
|
13756
|
+
}), watch(l, (F) => {
|
13757
|
+
F || (o.value = "");
|
13741
13758
|
}, {
|
13742
13759
|
immediate: !0
|
13743
13760
|
});
|
13744
|
-
function g(
|
13761
|
+
function g(F) {
|
13745
13762
|
n.kgTable.patchVarGridDetail({
|
13746
|
-
varName:
|
13763
|
+
varName: F.var_nam,
|
13747
13764
|
properties: {
|
13748
|
-
vis_flg:
|
13765
|
+
vis_flg: F.vis_flg === 1 ? 0 : 1
|
13749
13766
|
}
|
13750
13767
|
});
|
13751
13768
|
}
|
13752
|
-
function m(
|
13753
|
-
n.store.setCurrentVarGridMasterID(n.formID,
|
13769
|
+
function m(F) {
|
13770
|
+
n.store.setCurrentVarGridMasterID(n.formID, F.id);
|
13754
13771
|
}
|
13755
13772
|
async function p() {
|
13756
|
-
var
|
13757
|
-
if (((
|
13773
|
+
var F;
|
13774
|
+
if (((F = n.currentVarGridMaster.value) == null ? void 0 : F.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
13758
13775
|
KgUtil.confirm({
|
13759
13776
|
content: r.t("kg.KgVarConfig.canNotUpdateSystemVarGridMaster"),
|
13760
13777
|
okButtonProps: {
|
@@ -13782,7 +13799,7 @@ const getProps$w = () => ({
|
|
13782
13799
|
popupClassName: "kg-table--setting--submenu-popup--columns"
|
13783
13800
|
}, {
|
13784
13801
|
default: () => {
|
13785
|
-
var
|
13802
|
+
var F;
|
13786
13803
|
return createVNode("div", {
|
13787
13804
|
class: "columns"
|
13788
13805
|
}, [createVNode(Input, {
|
@@ -13792,7 +13809,7 @@ const getProps$w = () => ({
|
|
13792
13809
|
}, null), createVNode("ul", {
|
13793
13810
|
ref: v,
|
13794
13811
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
13795
|
-
}, [(
|
13812
|
+
}, [(F = n.currentVarGridDetails.value) == null ? void 0 : F.map((I, D) => createVNode("li", {
|
13796
13813
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
13797
13814
|
onClick: (P) => {
|
13798
13815
|
P.preventDefault(), P.stopPropagation(), g(I);
|
@@ -13825,7 +13842,7 @@ const getProps$w = () => ({
|
|
13825
13842
|
}, {
|
13826
13843
|
default: () => {
|
13827
13844
|
var D;
|
13828
|
-
let
|
13845
|
+
let F, I;
|
13829
13846
|
return createVNode(Fragment, null, [(D = n.varGridMasters.value) == null ? void 0 : D.map((P) => {
|
13830
13847
|
var M;
|
13831
13848
|
return createVNode(Menu.Item, {
|
@@ -13842,8 +13859,8 @@ const getProps$w = () => ({
|
|
13842
13859
|
icon: createVNode(Icon, {
|
13843
13860
|
icon: "material-symbols:save-outline-rounded"
|
13844
13861
|
}, null)
|
13845
|
-
}, _isSlot$9(
|
13846
|
-
default: () => [
|
13862
|
+
}, _isSlot$9(F = r.t("kg.KgTable.saveVarGridMaster")) ? F : {
|
13863
|
+
default: () => [F]
|
13847
13864
|
}), createVNode(Menu.Item, {
|
13848
13865
|
key: "save-grid-view-as",
|
13849
13866
|
onClick: T,
|
@@ -13861,14 +13878,14 @@ const getProps$w = () => ({
|
|
13861
13878
|
});
|
13862
13879
|
}
|
13863
13880
|
function N() {
|
13864
|
-
var
|
13865
|
-
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, {
|
13866
13883
|
key: "row-height",
|
13867
13884
|
title: r.t("kg.KgTable.rowHeight"),
|
13868
13885
|
popupClassName: "kg-table--setting--submenu-popup--row-height"
|
13869
13886
|
}, {
|
13870
13887
|
default: () => {
|
13871
|
-
let P, M,
|
13888
|
+
let P, M, B;
|
13872
13889
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13873
13890
|
key: "L",
|
13874
13891
|
class: u.value === "L" ? "selected" : "",
|
@@ -13885,14 +13902,14 @@ const getProps$w = () => ({
|
|
13885
13902
|
key: "H",
|
13886
13903
|
class: u.value === "H" ? "selected" : "",
|
13887
13904
|
onClick: () => n.kgTable.store.setRowHeight(n.formID, "H")
|
13888
|
-
}, _isSlot$9(
|
13889
|
-
default: () => [
|
13905
|
+
}, _isSlot$9(B = r.t("kg.KgTable.rowHeightH")) ? B : {
|
13906
|
+
default: () => [B]
|
13890
13907
|
})]);
|
13891
13908
|
},
|
13892
13909
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13893
13910
|
});
|
13894
13911
|
}
|
13895
|
-
function
|
13912
|
+
function O() {
|
13896
13913
|
return createVNode(Menu.SubMenu, {
|
13897
13914
|
key: "other",
|
13898
13915
|
title: r.t("kg.KgTable.other"),
|
@@ -13903,14 +13920,14 @@ const getProps$w = () => ({
|
|
13903
13920
|
}, {
|
13904
13921
|
default: () => [createVNode(Checkbox, {
|
13905
13922
|
checked: n.kgTable.isShowDescription.value,
|
13906
|
-
"onUpdate:checked": (
|
13907
|
-
onClick: (
|
13908
|
-
|
13923
|
+
"onUpdate:checked": (F) => n.kgTable.setIsShowDescription(F),
|
13924
|
+
onClick: (F) => {
|
13925
|
+
F.stopPropagation();
|
13909
13926
|
}
|
13910
13927
|
}, {
|
13911
13928
|
default: () => [createVNode("div", {
|
13912
|
-
onClick: (
|
13913
|
-
|
13929
|
+
onClick: (F) => {
|
13930
|
+
F.stopPropagation();
|
13914
13931
|
}
|
13915
13932
|
}, [r.t("kg.KgTable.isShowDescription")])]
|
13916
13933
|
})]
|
@@ -13918,16 +13935,16 @@ const getProps$w = () => ({
|
|
13918
13935
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13919
13936
|
});
|
13920
13937
|
}
|
13921
|
-
function
|
13938
|
+
function C() {
|
13922
13939
|
var I;
|
13923
|
-
let
|
13940
|
+
let F;
|
13924
13941
|
return (I = n.formID) != null && I.startsWith("KgVarConfig.") ? null : createVNode(Menu.Item, {
|
13925
13942
|
key: "config-var-grid-master",
|
13926
13943
|
onClick: () => {
|
13927
13944
|
c.value.visible = !0;
|
13928
13945
|
}
|
13929
|
-
}, _isSlot$9(
|
13930
|
-
default: () => [
|
13946
|
+
}, _isSlot$9(F = r.t("kg.KgTable.config")) ? F : {
|
13947
|
+
default: () => [F]
|
13931
13948
|
});
|
13932
13949
|
}
|
13933
13950
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -13940,14 +13957,14 @@ const getProps$w = () => ({
|
|
13940
13957
|
overlay: () => createVNode(Menu, {
|
13941
13958
|
triggerSubMenuAction: "click",
|
13942
13959
|
openKeys: s.value,
|
13943
|
-
"onUpdate:openKeys": (
|
13960
|
+
"onUpdate:openKeys": (F) => s.value = F,
|
13944
13961
|
selectable: !1
|
13945
13962
|
}, {
|
13946
|
-
default: () => [E(), N(), k(),
|
13963
|
+
default: () => [E(), N(), k(), O(), C()]
|
13947
13964
|
})
|
13948
13965
|
}), c.value.visible && createVNode(KgTableSettingConfigModal, {
|
13949
13966
|
visible: c.value.visible,
|
13950
|
-
"onUpdate:visible": (
|
13967
|
+
"onUpdate:visible": (F) => c.value.visible = F
|
13951
13968
|
}, null), _.value.visible && createVNode(KgTableSettingVarGridMasterSaveAs, {
|
13952
13969
|
onKgClose: () => {
|
13953
13970
|
_.value.visible = !1;
|
@@ -14159,7 +14176,7 @@ const getProps$v = () => ({
|
|
14159
14176
|
popupClassName: "kg-table--header-cell--context-menu--align--submenu-popup"
|
14160
14177
|
}, {
|
14161
14178
|
default: () => {
|
14162
|
-
var k, N,
|
14179
|
+
var k, N, O;
|
14163
14180
|
let p, T, E;
|
14164
14181
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
14165
14182
|
key: "L",
|
@@ -14189,7 +14206,7 @@ const getProps$v = () => ({
|
|
14189
14206
|
default: () => [T]
|
14190
14207
|
}), createVNode(Menu.Item, {
|
14191
14208
|
key: "H",
|
14192
|
-
class: ((
|
14209
|
+
class: ((O = n.value) == null ? void 0 : O.align) === KG__VAR_GRID_DETAIL__ALIGN.RIGHT ? "selected" : "",
|
14193
14210
|
onClick: () => {
|
14194
14211
|
a.kgTable.patchVarGridDetail({
|
14195
14212
|
varName: r.value,
|
@@ -14676,12 +14693,12 @@ function _useColumns(e) {
|
|
14676
14693
|
}) => k + 1
|
14677
14694
|
}, ...(E = g == null ? void 0 : g.map((k, N) => {
|
14678
14695
|
var D, P, M;
|
14679
|
-
const
|
14680
|
-
function
|
14696
|
+
const O = k.var_nam;
|
14697
|
+
function C() {
|
14681
14698
|
return k.width === "auto" ? "auto" : Number(k.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
14682
14699
|
}
|
14683
|
-
function
|
14684
|
-
return a.t(
|
14700
|
+
function A() {
|
14701
|
+
return a.t(O).value;
|
14685
14702
|
}
|
14686
14703
|
function V() {
|
14687
14704
|
if (k.fix_left_flg === 1)
|
@@ -14690,78 +14707,78 @@ function _useColumns(e) {
|
|
14690
14707
|
return "right";
|
14691
14708
|
}
|
14692
14709
|
function y() {
|
14693
|
-
var
|
14694
|
-
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);
|
14695
14712
|
}
|
14696
|
-
function
|
14697
|
-
var
|
14698
|
-
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))
|
14699
14716
|
return uniqBy(_.map((X) => {
|
14700
14717
|
var te;
|
14701
14718
|
return {
|
14702
|
-
value: (te = X == null ? void 0 : X[
|
14719
|
+
value: (te = X == null ? void 0 : X[O]) != null ? te : "",
|
14703
14720
|
text: r({
|
14704
14721
|
column: {
|
14705
|
-
dataIndex:
|
14722
|
+
dataIndex: O
|
14706
14723
|
},
|
14707
14724
|
index: N,
|
14708
14725
|
record: X,
|
14709
|
-
value: X == null ? void 0 : X[
|
14726
|
+
value: X == null ? void 0 : X[O]
|
14710
14727
|
}, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
|
14711
14728
|
};
|
14712
14729
|
}), "value");
|
14713
14730
|
}
|
14714
|
-
function
|
14715
|
-
var
|
14716
|
-
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;
|
14717
14734
|
}
|
14718
|
-
function
|
14735
|
+
function F() {
|
14719
14736
|
return ["left", "center", "right"].includes(k.align || "") ? k.align : "left";
|
14720
14737
|
}
|
14721
|
-
const I =
|
14738
|
+
const I = C();
|
14722
14739
|
switch (k.ord) {
|
14723
14740
|
case 0:
|
14724
14741
|
(!i.value.field || !i.value.order) && (i.value = {
|
14725
|
-
field:
|
14742
|
+
field: O,
|
14726
14743
|
order: "ascend"
|
14727
14744
|
});
|
14728
14745
|
break;
|
14729
14746
|
case 1:
|
14730
14747
|
(!i.value.field || !i.value.order) && (i.value = {
|
14731
|
-
field:
|
14748
|
+
field: O,
|
14732
14749
|
order: "descend"
|
14733
14750
|
});
|
14734
14751
|
break;
|
14735
14752
|
}
|
14736
14753
|
return {
|
14737
|
-
key:
|
14738
|
-
dataIndex:
|
14739
|
-
title:
|
14754
|
+
key: O,
|
14755
|
+
dataIndex: O,
|
14756
|
+
title: A(),
|
14740
14757
|
width: I,
|
14741
14758
|
resizable: typeof I == "number",
|
14742
14759
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
14743
14760
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
14744
|
-
align:
|
14761
|
+
align: F(),
|
14745
14762
|
fixed: V(),
|
14746
14763
|
sorter: y(),
|
14747
|
-
sortOrder: ((D = i.value) == null ? void 0 : D.field) ===
|
14748
|
-
filteredValue:
|
14749
|
-
filters:
|
14750
|
-
onFilter: (
|
14764
|
+
sortOrder: ((D = i.value) == null ? void 0 : D.field) === O && (M = (P = i.value) == null ? void 0 : P.order) != null ? M : null,
|
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,
|
14751
14768
|
customHeaderCell: () => ({
|
14752
14769
|
"kg-form_id": a.formID,
|
14753
|
-
"kg-var_name":
|
14770
|
+
"kg-var_name": O,
|
14754
14771
|
draggable: !0
|
14755
14772
|
}),
|
14756
|
-
customCell: (
|
14773
|
+
customCell: (B) => {
|
14757
14774
|
var W, X, te;
|
14758
|
-
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({
|
14759
14776
|
buttonVarName: (X = a.kgButton.currentButton.value) == null ? void 0 : X.var_nam,
|
14760
|
-
varName:
|
14777
|
+
varName: O
|
14761
14778
|
})[0]) != null ? te : null;
|
14762
14779
|
return {
|
14763
14780
|
"kg-form_id": a.formID,
|
14764
|
-
"kg-var_name":
|
14781
|
+
"kg-var_name": O,
|
14765
14782
|
class: K === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE && w === x && !!U ? "submitting" : ""
|
14766
14783
|
};
|
14767
14784
|
}
|
@@ -15047,19 +15064,19 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15047
15064
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgTable) == null ? void 0 : Q.kgDisabled;
|
15048
15065
|
if (!isNil(e.kgDisabled))
|
15049
15066
|
return e.kgDisabled;
|
15050
|
-
}),
|
15067
|
+
}), O = computed(() => {
|
15051
15068
|
var G, $, Y, Q;
|
15052
15069
|
if (!isNil(($ = (G = r == null ? void 0 : r.value) == null ? void 0 : G.KgTable) == null ? void 0 : $.kgCheckboxDisabled))
|
15053
15070
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgTable) == null ? void 0 : Q.kgCheckboxDisabled;
|
15054
15071
|
if (!isNil(e.kgCheckboxDisabled))
|
15055
15072
|
return e.kgCheckboxDisabled;
|
15056
|
-
}),
|
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(() => {
|
15057
15074
|
var G;
|
15058
15075
|
return !!((G = a == null ? void 0 : a.KgTable) != null && G.expandedRowRender);
|
15059
15076
|
}), y = computed(() => {
|
15060
15077
|
var G;
|
15061
15078
|
return ((G = i.varGridConfig.value) == null ? void 0 : G.show_check_column_flg) === 1;
|
15062
|
-
}),
|
15079
|
+
}), R = computed(() => {
|
15063
15080
|
if (!!y.value)
|
15064
15081
|
return {
|
15065
15082
|
fixed: "left",
|
@@ -15070,13 +15087,13 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15070
15087
|
getCheckboxProps: (G) => {
|
15071
15088
|
var $;
|
15072
15089
|
return {
|
15073
|
-
disabled: !!N.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || !!(($ =
|
15090
|
+
disabled: !!N.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || !!(($ = O.value) != null && $.call(O, G))
|
15074
15091
|
};
|
15075
15092
|
},
|
15076
15093
|
onSelect: (G) => X(G),
|
15077
15094
|
onChange: (G) => i.kgTable.isMultiSelect.value && W(G)
|
15078
15095
|
};
|
15079
|
-
}),
|
15096
|
+
}), L = computed(() => {
|
15080
15097
|
var $;
|
15081
15098
|
let G = "kg-table";
|
15082
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)) {
|
@@ -15091,7 +15108,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15091
15108
|
break;
|
15092
15109
|
}
|
15093
15110
|
return s.value && (G += " kg-table--is-shift-keydown"), G;
|
15094
|
-
}),
|
15111
|
+
}), F = computed(() => {
|
15095
15112
|
var $;
|
15096
15113
|
let G = "kg-table-bottom";
|
15097
15114
|
return (($ = i.varGridConfig.value) == null ? void 0 : $.show_bottom_border_flg) === 1 && (G += " kg-table-bottom--border"), G;
|
@@ -15128,7 +15145,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15128
15145
|
function M(G) {
|
15129
15146
|
G.shiftKey && (s.value = !0);
|
15130
15147
|
}
|
15131
|
-
function
|
15148
|
+
function B(G) {
|
15132
15149
|
G.shiftKey || (s.value = !1);
|
15133
15150
|
}
|
15134
15151
|
function w() {
|
@@ -15176,7 +15193,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15176
15193
|
});
|
15177
15194
|
return;
|
15178
15195
|
}
|
15179
|
-
if (!
|
15196
|
+
if (!R.value) {
|
15180
15197
|
____DEBUG____("KgTable | onRowClick() | \u4E0D\u652F\u6301\u884C\u52FE\u9009.");
|
15181
15198
|
return;
|
15182
15199
|
}
|
@@ -15446,14 +15463,14 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15446
15463
|
return !i.kgTable.isAutoRequest.value && !i.kgTable.store.getIsRequested(i.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
15447
15464
|
}
|
15448
15465
|
return onMounted(() => {
|
15449
|
-
window.addEventListener("keydown", M), window.addEventListener("keyup",
|
15466
|
+
window.addEventListener("keydown", M), window.addEventListener("keyup", B);
|
15450
15467
|
}), onUnmounted(() => {
|
15451
|
-
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);
|
15452
15469
|
}), () => {
|
15453
15470
|
var G, $, Y;
|
15454
15471
|
return createVNode("div", {
|
15455
15472
|
"kg-form_id": i.formID,
|
15456
|
-
class:
|
15473
|
+
class: L.value,
|
15457
15474
|
ref: v
|
15458
15475
|
}, [createVNode(Table, {
|
15459
15476
|
class: "kg-flex-table",
|
@@ -15471,7 +15488,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15471
15488
|
rowClassName: ($ = (G = r == null ? void 0 : r.value) == null ? void 0 : G.KgTable) == null ? void 0 : $.kgRowClassName,
|
15472
15489
|
expandColumnWidth: 28,
|
15473
15490
|
expandedRowKeys: l.value,
|
15474
|
-
rowSelection:
|
15491
|
+
rowSelection: R.value,
|
15475
15492
|
customRow: (Q) => ({
|
15476
15493
|
onClick: (z) => K({
|
15477
15494
|
event: z,
|
@@ -15488,7 +15505,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15488
15505
|
expandedRowRender: (Y = a == null ? void 0 : a.KgTable) == null ? void 0 : Y.expandedRowRender,
|
15489
15506
|
summary: oe
|
15490
15507
|
}), (i.kgTable.isShowBottomLeft.value || i.kgTable.isShowBottomRight.value) && createVNode("div", {
|
15491
|
-
class:
|
15508
|
+
class: F.value
|
15492
15509
|
}, [createVNode("div", {
|
15493
15510
|
class: "left"
|
15494
15511
|
}, [i.kgTable.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
@@ -15496,7 +15513,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15496
15513
|
kgShowClearTable: D.total > 0,
|
15497
15514
|
kgShowLocate: I.value.length > 0,
|
15498
15515
|
kgTotal: I.value.length,
|
15499
|
-
kgDisabled:
|
15516
|
+
kgDisabled: C.value
|
15500
15517
|
}, null)]), createVNode("div", {
|
15501
15518
|
class: "right"
|
15502
15519
|
}, [i.kgTable.isShowBottomRight.value && createVNode(Pagination, {
|
@@ -15508,7 +15525,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15508
15525
|
showSizeChanger: !0,
|
15509
15526
|
showQuickJumper: !1,
|
15510
15527
|
hideOnSinglePage: !1,
|
15511
|
-
disabled:
|
15528
|
+
disabled: A.value,
|
15512
15529
|
locale: {
|
15513
15530
|
page: ""
|
15514
15531
|
},
|
@@ -17689,9 +17706,26 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17689
17706
|
}), !1)), n.kgTable.onBeforeSetDatas(async ({
|
17690
17707
|
datas: g
|
17691
17708
|
}) => (transformVarProfileMasters(g.value), !1)), n.kgSubmit.onOpen(async () => {
|
17692
|
-
var m, p, T, E, k, N;
|
17693
|
-
|
17694
|
-
|
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) {
|
17695
17729
|
case n.isCreating.value: {
|
17696
17730
|
s.value = [];
|
17697
17731
|
break;
|
@@ -17701,24 +17735,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17701
17735
|
if ((m = n.kgTable.selectedRow.value) != null && m.id)
|
17702
17736
|
try {
|
17703
17737
|
n.kgSubmit.store.setIsLoading(n.formID, !0);
|
17704
|
-
const
|
17738
|
+
const O = await QueryByID({
|
17705
17739
|
params: {
|
17706
17740
|
id: n.kgTable.selectedRow.value.id
|
17707
17741
|
}
|
17708
17742
|
});
|
17709
|
-
i.value = i.value.map((
|
17743
|
+
i.value = i.value.map((A) => {
|
17710
17744
|
var y;
|
17711
|
-
const V = (y =
|
17745
|
+
const V = (y = O == null ? void 0 : O.varProfileDetails) == null ? void 0 : y.find((R) => R.var_nam === A.var_nam);
|
17712
17746
|
return V ? {
|
17713
|
-
...
|
17747
|
+
...A,
|
17714
17748
|
...V,
|
17715
|
-
id:
|
17716
|
-
} :
|
17749
|
+
id: V.var_nam
|
17750
|
+
} : A;
|
17717
17751
|
});
|
17718
|
-
const
|
17719
|
-
s.value = i.value.filter((
|
17720
|
-
} catch (
|
17721
|
-
throw
|
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);
|
17754
|
+
} catch (O) {
|
17755
|
+
throw O;
|
17722
17756
|
} finally {
|
17723
17757
|
n.kgSubmit.store.setIsLoading(n.formID, !1);
|
17724
17758
|
}
|
@@ -17803,27 +17837,27 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17803
17837
|
onItemSelectAll: E,
|
17804
17838
|
onItemSelect: k
|
17805
17839
|
}) => {
|
17806
|
-
var
|
17807
|
-
const N = m.sort((
|
17808
|
-
var y,
|
17809
|
-
return ((y =
|
17840
|
+
var O, C;
|
17841
|
+
const N = m.sort((A, V) => {
|
17842
|
+
var y, R;
|
17843
|
+
return ((y = A.srtseq) != null ? y : 0) - ((R = V.srtseq) != null ? R : 0);
|
17810
17844
|
});
|
17811
17845
|
return g === "right" && (l.value = N), createVNode(Table, {
|
17812
17846
|
pagination: !1,
|
17813
17847
|
class: "kg-flex-table",
|
17814
17848
|
size: "small",
|
17815
17849
|
scroll: {
|
17816
|
-
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`,
|
17817
17851
|
y: "auto"
|
17818
17852
|
},
|
17819
17853
|
columns: g === "left" ? leftVarProfileDetailColumns(t) : rightVarProfileDetailColumns(t),
|
17820
17854
|
rowKey: "id",
|
17821
17855
|
dataSource: N,
|
17822
|
-
customRow: (
|
17856
|
+
customRow: (A) => {
|
17823
17857
|
let V = {
|
17824
|
-
onClick: (y) => _(y,
|
17858
|
+
onClick: (y) => _(y, A, g, p)
|
17825
17859
|
};
|
17826
|
-
return g === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] =
|
17860
|
+
return g === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] = A.var_nam), V;
|
17827
17861
|
},
|
17828
17862
|
rowSelection: c({
|
17829
17863
|
disabled: T,
|
@@ -17846,9 +17880,9 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17846
17880
|
disabled: g || E.disabled
|
17847
17881
|
}),
|
17848
17882
|
onSelectAll(E, k) {
|
17849
|
-
const N = k.filter((
|
17850
|
-
key:
|
17851
|
-
}) =>
|
17883
|
+
const N = k.filter((O) => !O.disabled).map(({
|
17884
|
+
key: O
|
17885
|
+
}) => O);
|
17852
17886
|
p(N, E);
|
17853
17887
|
},
|
17854
17888
|
onSelect({
|
@@ -19225,10 +19259,10 @@ const LOCALE = {
|
|
19225
19259
|
params: {
|
19226
19260
|
frm_id: u
|
19227
19261
|
}
|
19228
|
-
}), N = (g = (v = ((c = k.varGridMasters) == null ? void 0 : c.find((
|
19229
|
-
i.value = uniq(compact((E = (T = (p = (m = k.varGridMasters) == null ? void 0 : m.find((
|
19230
|
-
var
|
19231
|
-
return (
|
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;
|
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) => {
|
19264
|
+
var C;
|
19265
|
+
return (C = O.var_nam) != null ? C : "";
|
19232
19266
|
})) != null ? E : [])), r.store.patchVarPossibilityCommandParameter(r.formID, "ret_fld", {
|
19233
19267
|
__KG__TIMESTAMP__: Date.now()
|
19234
19268
|
});
|
@@ -19985,18 +20019,6 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
19985
20019
|
return t ? useKgVar(t.frm_id) : null;
|
19986
20020
|
};
|
19987
20021
|
},
|
19988
|
-
getSystemVarGridDetails() {
|
19989
|
-
return (e) => {
|
19990
|
-
var t, a, r, n, i;
|
19991
|
-
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);
|
19992
|
-
};
|
19993
|
-
},
|
19994
|
-
getSystemVarProfileDetails() {
|
19995
|
-
return (e) => {
|
19996
|
-
var t, a, r, n, i;
|
19997
|
-
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);
|
19998
|
-
};
|
19999
|
-
},
|
20000
20022
|
getVarButton() {
|
20001
20023
|
return (e, t) => {
|
20002
20024
|
var r;
|
@@ -20379,32 +20401,32 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
20379
20401
|
varConfigLookups: E,
|
20380
20402
|
varConfigPossibilities: k,
|
20381
20403
|
varConfigTips: N,
|
20382
|
-
varProfileConfig:
|
20383
|
-
varProfileMasters:
|
20384
|
-
varGridConfig:
|
20404
|
+
varProfileConfig: O,
|
20405
|
+
varProfileMasters: C,
|
20406
|
+
varGridConfig: A,
|
20385
20407
|
varGridMasters: V,
|
20386
20408
|
varSubmitConfigs: y,
|
20387
|
-
varSubmitDetails:
|
20388
|
-
varVariables:
|
20409
|
+
varSubmitDetails: R,
|
20410
|
+
varVariables: L
|
20389
20411
|
} = await GetAll({ params: { frm_id: e } });
|
20390
|
-
this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e,
|
20391
|
-
varProfileMasters: transformVarProfileMasters(
|
20392
|
-
currentVarProfileMasterID: (i = (n = (
|
20393
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
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
|
20415
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(A)), this.varGridMasterMap.set(e, {
|
20394
20416
|
varGridMasters: transformVarGridMasters(V),
|
20395
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
20418
|
}), this.varChildDetailMap.set(e, transformVarChildDetails(g)), await Promise.all([
|
20397
20419
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
20398
20420
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
20399
20421
|
]);
|
20400
|
-
const
|
20422
|
+
const F = uniq(
|
20401
20423
|
(c = (u = (o = this.getCurrentVarGridDetails(e)) == null ? void 0 : o.map((I) => {
|
20402
|
-
var P, M,
|
20424
|
+
var P, M, B;
|
20403
20425
|
const D = KgUtil.tryParseJSON(I.display_type_properties);
|
20404
|
-
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;
|
20405
20427
|
})) == null ? void 0 : u.filter((I) => !!I)) != null ? c : []
|
20406
20428
|
);
|
20407
|
-
for (let I of
|
20429
|
+
for (let I of F)
|
20408
20430
|
r.store.requestDescriptions({ codeName: I });
|
20409
20431
|
this.isRequestedMap.set(e, !0), this.emit(e, "retrieve");
|
20410
20432
|
}
|
@@ -20543,7 +20565,6 @@ function useKgVar(e, t, a = 0) {
|
|
20543
20565
|
return s.requestAll(i, m);
|
20544
20566
|
},
|
20545
20567
|
store: s,
|
20546
|
-
systemVarGridDetails: computed(() => s.getSystemVarGridDetails(i)),
|
20547
20568
|
t(m) {
|
20548
20569
|
return computed(() => s.t(i, m));
|
20549
20570
|
},
|
@@ -20749,8 +20770,8 @@ const KgVar = defineComponent({
|
|
20749
20770
|
}
|
20750
20771
|
});
|
20751
20772
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), l = computed(() => {
|
20752
|
-
var p, T, E, k, N,
|
20753
|
-
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 && ((
|
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;
|
20754
20775
|
}), o = computed(() => !!i.isCreatingRequesting.value);
|
20755
20776
|
async function u() {
|
20756
20777
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -20792,13 +20813,13 @@ const KgVar = defineComponent({
|
|
20792
20813
|
return e.kgText ? e.kgText : n.t("kg.create");
|
20793
20814
|
}
|
20794
20815
|
function g() {
|
20795
|
-
var p, T, E, k, N,
|
20816
|
+
var p, T, E, k, N, O;
|
20796
20817
|
return createVNode(Button, {
|
20797
20818
|
"kg-id": (p = s.value) == null ? void 0 : p.id,
|
20798
20819
|
"kg-form_id": (T = s.value) == null ? void 0 : T.frm_id,
|
20799
20820
|
"kg-var_name": (E = s.value) == null ? void 0 : E.var_nam,
|
20800
20821
|
"kg-cmd": (k = s.value) == null ? void 0 : k.cmd,
|
20801
|
-
"kg-permission": (
|
20822
|
+
"kg-permission": (O = (N = s.value) == null ? void 0 : N.permission_code) != null ? O : "",
|
20802
20823
|
type: "primary",
|
20803
20824
|
disabled: l.value,
|
20804
20825
|
danger: e.kgColor === KG__VAR_BUTTON__COLOR.RED,
|
@@ -21042,8 +21063,8 @@ const KgVar = defineComponent({
|
|
21042
21063
|
...KgVarUtil.parseRequestParamsToJSON((T = (p = i.value) == null ? void 0 : p.cmd_prm) != null ? T : "")
|
21043
21064
|
}), g;
|
21044
21065
|
}), u = computed(() => {
|
21045
|
-
var g, m, p, T, E, k, N,
|
21046
|
-
return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || n.kgTable.isRetrieving.value || ((g = i.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((p = (m = n.kgTable.selectedRows.value) == null ? void 0 : m.length) != null ? p : 0) === 0 || ((T = i.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((k = (E = n.kgTable.selectedRows.value) == null ? void 0 : E.length) != null ? k : 0) > 1 || KgAuthUtil.getPermissionType((N = i.value) == null ? void 0 : N.permission_code) === 2 && !r.p((
|
21066
|
+
var g, m, p, T, E, k, N, O;
|
21067
|
+
return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || n.kgTable.isRetrieving.value || ((g = i.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((p = (m = n.kgTable.selectedRows.value) == null ? void 0 : m.length) != null ? p : 0) === 0 || ((T = i.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((k = (E = n.kgTable.selectedRows.value) == null ? void 0 : E.length) != null ? k : 0) > 1 || KgAuthUtil.getPermissionType((N = i.value) == null ? void 0 : N.permission_code) === 2 && !r.p((O = i.value) == null ? void 0 : O.permission_code)) : e.kgDisabled;
|
21047
21068
|
}), c = ref(!1);
|
21048
21069
|
async function _(g) {
|
21049
21070
|
var m, p;
|
@@ -21263,11 +21284,11 @@ const KgVar = defineComponent({
|
|
21263
21284
|
}
|
21264
21285
|
let u = null;
|
21265
21286
|
const c = async () => {
|
21266
|
-
var m, p, T, E, k, N,
|
21287
|
+
var m, p, T, E, k, N, O, C, A;
|
21267
21288
|
u == null || u.showLoading(), a.store.setIsOtherRequesting(a.formID, !0);
|
21268
21289
|
const g = a.kgTable.selectedRows.value;
|
21269
21290
|
try {
|
21270
|
-
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({
|
21271
21292
|
url: o,
|
21272
21293
|
method: y,
|
21273
21294
|
params: V,
|
@@ -21277,15 +21298,15 @@ const KgVar = defineComponent({
|
|
21277
21298
|
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (N = (k = e.kgButton) == null ? void 0 : k.var_nam) != null ? N : ""
|
21278
21299
|
}
|
21279
21300
|
});
|
21280
|
-
if (((
|
21281
|
-
let
|
21282
|
-
((
|
21283
|
-
datas:
|
21301
|
+
if (((O = e.kgButton) == null ? void 0 : O.reload_all_after_done_flg) === 1) {
|
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
|
21284
21305
|
}) => {
|
21285
|
-
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]));
|
21286
21307
|
return D.length > 0 && a.kgTable.store.setSelectedRows(a.formID, D), !1;
|
21287
|
-
}, !0)), ((
|
21288
|
-
isSearchFirstPage:
|
21308
|
+
}, !0)), ((A = e.kgButton) == null ? void 0 : A.show_success_message_flg) !== 0 && message.success(t.t("kg.executeSuccess")), a.kgSearch.search({
|
21309
|
+
isSearchFirstPage: L
|
21289
21310
|
});
|
21290
21311
|
}
|
21291
21312
|
} catch (V) {
|
@@ -21416,8 +21437,8 @@ const KgVar = defineComponent({
|
|
21416
21437
|
}
|
21417
21438
|
});
|
21418
21439
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), l = computed(() => {
|
21419
|
-
var p, T, E, k, N,
|
21420
|
-
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 && ((
|
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;
|
21421
21442
|
}), o = computed(() => !!i.isUpdatingRequesting.value);
|
21422
21443
|
async function u() {
|
21423
21444
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -21459,13 +21480,13 @@ const KgVar = defineComponent({
|
|
21459
21480
|
return e.kgText ? e.kgText : n.t("kg.update");
|
21460
21481
|
}
|
21461
21482
|
function g() {
|
21462
|
-
var p, T, E, k, N,
|
21483
|
+
var p, T, E, k, N, O;
|
21463
21484
|
return createVNode(Button, {
|
21464
21485
|
"kg-id": (p = s.value) == null ? void 0 : p.id,
|
21465
21486
|
"kg-form_id": (T = s.value) == null ? void 0 : T.frm_id,
|
21466
21487
|
"kg-var_name": (E = s.value) == null ? void 0 : E.var_nam,
|
21467
21488
|
"kg-cmd": (k = s.value) == null ? void 0 : k.cmd,
|
21468
|
-
"kg-permission": (
|
21489
|
+
"kg-permission": (O = (N = s.value) == null ? void 0 : N.permission_code) != null ? O : "",
|
21469
21490
|
type: "primary",
|
21470
21491
|
disabled: l.value,
|
21471
21492
|
ghost: !e.kgPrimary && !l.value,
|
@@ -22185,14 +22206,14 @@ const getProps$a = () => ({
|
|
22185
22206
|
return !!(g.value || n.kgTable.isRetrieving.value || KgAuthUtil.getPermissionType((K = n.kgButton.searchButton.value) == null ? void 0 : K.permission_code) === 2 && !r.p((U = n.kgButton.searchButton.value) == null ? void 0 : U.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
22186
22207
|
}), T = computed(() => !!(g.value || n.kgTable.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!n.kgTable.isRetrieving.value), k = ref({
|
22187
22208
|
visible: !1
|
22188
|
-
}), N = computed(() => v.value.kgHeight === d.value),
|
22209
|
+
}), N = computed(() => v.value.kgHeight === d.value), O = computed(() => {
|
22189
22210
|
var W;
|
22190
22211
|
if (!n.kgButton.searchButton.value)
|
22191
22212
|
return;
|
22192
22213
|
const K = (W = n.kgButton.searchButton.value) == null ? void 0 : W.var_nam, U = n.t(K).value;
|
22193
22214
|
if (!!U && !!K && U !== K)
|
22194
22215
|
return U;
|
22195
|
-
}),
|
22216
|
+
}), C = computed(() => {
|
22196
22217
|
var K;
|
22197
22218
|
switch ((K = n.kgButton.searchButton.value) == null ? void 0 : K.primary_flg) {
|
22198
22219
|
case 1:
|
@@ -22202,10 +22223,10 @@ const getProps$a = () => ({
|
|
22202
22223
|
default:
|
22203
22224
|
return !0;
|
22204
22225
|
}
|
22205
|
-
}),
|
22226
|
+
}), A = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value)), V = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), y = computed(() => {
|
22206
22227
|
let K = "kg-search";
|
22207
22228
|
return i.value && (K += " kg-search--visible"), K;
|
22208
|
-
}),
|
22229
|
+
}), R = computed(() => {
|
22209
22230
|
switch (n.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
22210
22231
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
22211
22232
|
switch (n.kgSubmit.searchVarSubmitConfig$LabelColumnUnit.value) {
|
@@ -22224,7 +22245,7 @@ const getProps$a = () => ({
|
|
22224
22245
|
default:
|
22225
22246
|
return;
|
22226
22247
|
}
|
22227
|
-
}),
|
22248
|
+
}), L = computed(() => {
|
22228
22249
|
switch (n.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
22229
22250
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
22230
22251
|
switch (n.kgSubmit.searchVarSubmitConfig$LabelColumnUnit.value) {
|
@@ -22244,7 +22265,7 @@ const getProps$a = () => ({
|
|
22244
22265
|
}, {
|
22245
22266
|
immediate: !0
|
22246
22267
|
});
|
22247
|
-
async function
|
22268
|
+
async function F(K = {}) {
|
22248
22269
|
var U, W;
|
22249
22270
|
if (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), n.kgTable.isRetrieving.value) {
|
22250
22271
|
____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u6B63\u5728\u67E5\u8BE2.`);
|
@@ -22266,7 +22287,7 @@ const getProps$a = () => ({
|
|
22266
22287
|
});
|
22267
22288
|
})) : (____DEBUG____(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await n.kgSearch.store.emit(n.formID, "search", K));
|
22268
22289
|
}
|
22269
|
-
n.kgSearch.store.setSearchFn(n.formID,
|
22290
|
+
n.kgSearch.store.setSearchFn(n.formID, F);
|
22270
22291
|
async function I() {
|
22271
22292
|
u(), i.value ? o.value && o.value.validate().then(async () => {
|
22272
22293
|
await n.kgSearch.store.emit(n.formID, "reset", {});
|
@@ -22278,7 +22299,7 @@ const getProps$a = () => ({
|
|
22278
22299
|
}
|
22279
22300
|
n.kgSearch.store.setResetFn(n.formID, I);
|
22280
22301
|
function D() {
|
22281
|
-
return
|
22302
|
+
return F({
|
22282
22303
|
isSearchFirstPage: !0
|
22283
22304
|
}), Promise.resolve(!0);
|
22284
22305
|
}
|
@@ -22323,7 +22344,7 @@ const getProps$a = () => ({
|
|
22323
22344
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
22324
22345
|
})]);
|
22325
22346
|
}
|
22326
|
-
function
|
22347
|
+
function B() {
|
22327
22348
|
var K, U, W;
|
22328
22349
|
return createVNode(Fragment, null, [M(), createVNode(Button, {
|
22329
22350
|
type: "primary",
|
@@ -22337,9 +22358,9 @@ const getProps$a = () => ({
|
|
22337
22358
|
kgType: KG__VAR_BUTTON__TYPE.SEARCH,
|
22338
22359
|
kgVarName: (K = n.kgButton.searchButton.value) == null ? void 0 : K.var_nam,
|
22339
22360
|
kgIcon: (U = n.kgButton.searchButton.value) == null ? void 0 : U.icon,
|
22340
|
-
kgText:
|
22361
|
+
kgText: O.value,
|
22341
22362
|
kgColor: (W = n.kgButton.searchButton.value) == null ? void 0 : W.color,
|
22342
|
-
kgPrimary:
|
22363
|
+
kgPrimary: C.value,
|
22343
22364
|
kgDisabled: p.value,
|
22344
22365
|
kgLoading: E.value,
|
22345
22366
|
onKgClick: D
|
@@ -22356,8 +22377,8 @@ const getProps$a = () => ({
|
|
22356
22377
|
ref: o,
|
22357
22378
|
model: (U = n.kgSearch.formModel.value) != null ? U : {},
|
22358
22379
|
layout: n.kgSubmit.searchVarSubmitConfig$Layout.value,
|
22359
|
-
labelCol:
|
22360
|
-
wrapperCol:
|
22380
|
+
labelCol: R.value,
|
22381
|
+
wrapperCol: L.value
|
22361
22382
|
}, {
|
22362
22383
|
default: () => [createVNode(Row, {
|
22363
22384
|
gutter: 6
|
@@ -22365,7 +22386,7 @@ const getProps$a = () => ({
|
|
22365
22386
|
key: W.var_nam,
|
22366
22387
|
kgVarName: W.var_nam,
|
22367
22388
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
22368
|
-
onKgSubmit: () =>
|
22389
|
+
onKgSubmit: () => F({
|
22369
22390
|
isSearchFirstPage: !0
|
22370
22391
|
})
|
22371
22392
|
}, null))) ? K : {
|
@@ -22397,11 +22418,11 @@ const getProps$a = () => ({
|
|
22397
22418
|
}, [createVNode("div", {
|
22398
22419
|
class: "ant-collapse-header"
|
22399
22420
|
}, [createVNode(Spin, {
|
22400
|
-
spinning:
|
22421
|
+
spinning: A.value
|
22401
22422
|
}, {
|
22402
22423
|
default: () => [P(), createVNode("div", {
|
22403
22424
|
class: "ant-collapse-extra"
|
22404
|
-
}, [
|
22425
|
+
}, [B()])]
|
22405
22426
|
})]), createVNode("div", {
|
22406
22427
|
class: "ant-collapse-content ant-collapse-content-active"
|
22407
22428
|
}, [createVNode("div", {
|
@@ -23332,8 +23353,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23332
23353
|
customRender: ({
|
23333
23354
|
record: N
|
23334
23355
|
}) => {
|
23335
|
-
var
|
23336
|
-
return N.whId === ((
|
23356
|
+
var C;
|
23357
|
+
return N.whId === ((C = s.value) == null ? void 0 : C.whId) ? createVNode("img", {
|
23337
23358
|
src: WAREHOUSE_1890ff
|
23338
23359
|
}, null) : createVNode("img", {
|
23339
23360
|
src: WAREHOUSE_000000
|
@@ -23343,25 +23364,25 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23343
23364
|
customRender: ({
|
23344
23365
|
record: N
|
23345
23366
|
}) => {
|
23346
|
-
var
|
23347
|
-
const
|
23348
|
-
return createVNode("div", null, [createVNode("div", null, [(
|
23367
|
+
var C, A, V;
|
23368
|
+
const O = N;
|
23369
|
+
return createVNode("div", null, [createVNode("div", null, [(C = O.whDsc) != null ? C : " ", createTextVNode(" - "), (A = O.whId) != null ? A : " "]), createVNode("div", {
|
23349
23370
|
class: "address"
|
23350
|
-
}, [(V =
|
23371
|
+
}, [(V = O.adrnam) != null ? V : " "])]);
|
23351
23372
|
}
|
23352
23373
|
}]), u = ref([]), c = computed(() => {
|
23353
|
-
var
|
23354
|
-
const N = (
|
23355
|
-
return u.value.filter((
|
23356
|
-
var
|
23357
|
-
return ((V = (
|
23374
|
+
var O;
|
23375
|
+
const N = (O = i.value) == null ? void 0 : O.toUpperCase();
|
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));
|
23358
23379
|
});
|
23359
23380
|
}), _ = computed(() => {
|
23360
23381
|
var N;
|
23361
23382
|
return ((N = a.option.value.KgWarehouse) == null ? void 0 : N.on) !== !1;
|
23362
23383
|
}), d = computed(() => {
|
23363
|
-
var N,
|
23364
|
-
return (
|
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 : [];
|
23365
23386
|
});
|
23366
23387
|
watch(r.visible, (N) => {
|
23367
23388
|
!_.value || (N ? g() : m());
|
@@ -23404,9 +23425,9 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23404
23425
|
pageSize: 999
|
23405
23426
|
}
|
23406
23427
|
});
|
23407
|
-
u.value = (N != null ? N : []).filter((
|
23408
|
-
var
|
23409
|
-
return KgAuthUtil.isAdminUser() ? !0 : (
|
23428
|
+
u.value = (N != null ? N : []).filter((O) => {
|
23429
|
+
var C;
|
23430
|
+
return KgAuthUtil.isAdminUser() ? !0 : (C = d.value) == null ? void 0 : C.find((A) => A.wh_id === O.whId);
|
23410
23431
|
});
|
23411
23432
|
} catch (N) {
|
23412
23433
|
console.error(N);
|
@@ -23414,14 +23435,14 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23414
23435
|
l.value = !1;
|
23415
23436
|
}
|
23416
23437
|
}
|
23417
|
-
function E(N,
|
23418
|
-
var
|
23438
|
+
function E(N, O) {
|
23439
|
+
var C;
|
23419
23440
|
switch (N.detail) {
|
23420
23441
|
case 1:
|
23421
|
-
((
|
23442
|
+
((C = s.value) == null ? void 0 : C.whId) === O.whId ? s.value = null : s.value = O;
|
23422
23443
|
break;
|
23423
23444
|
case 2:
|
23424
|
-
s.value =
|
23445
|
+
s.value = O, p();
|
23425
23446
|
break;
|
23426
23447
|
}
|
23427
23448
|
}
|
@@ -23431,8 +23452,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23431
23452
|
placement: "bottomRight"
|
23432
23453
|
}, {
|
23433
23454
|
default: () => {
|
23434
|
-
var N,
|
23435
|
-
return [((N = r.warehouse.value) == null ? void 0 : N.whDsc) || ((
|
23455
|
+
var N, O;
|
23456
|
+
return [((N = r.warehouse.value) == null ? void 0 : N.whDsc) || ((O = r.warehouse.value) == null ? void 0 : O.whId) || a.t("kg.KgWarehouse.selectWarehouse")];
|
23436
23457
|
}
|
23437
23458
|
}), createVNode(KgModal, {
|
23438
23459
|
visible: r.visible.value,
|
@@ -23474,10 +23495,10 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23474
23495
|
columns: o,
|
23475
23496
|
class: "kg-flex-table",
|
23476
23497
|
customRow: (N) => {
|
23477
|
-
var
|
23498
|
+
var O;
|
23478
23499
|
return {
|
23479
|
-
class: N.whId === ((
|
23480
|
-
onClick: (
|
23500
|
+
class: N.whId === ((O = s.value) == null ? void 0 : O.whId) ? "selected" : "",
|
23501
|
+
onClick: (C) => E(C, N)
|
23481
23502
|
};
|
23482
23503
|
}
|
23483
23504
|
}, null)]
|
@@ -23547,7 +23568,7 @@ function httpClient() {
|
|
23547
23568
|
throw new Error("\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
|
23548
23569
|
let T = {};
|
23549
23570
|
n.method === "GET" || n.method === "POST" && !n.data && n.params ? T = n.params : n.method === "POST" && n.data && (T = n.data);
|
23550
|
-
const { sql: E, whereSql: k, orderBySql: N, offsetSql:
|
23571
|
+
const { sql: E, whereSql: k, orderBySql: N, offsetSql: O, operatorJSON: C } = KgVarUtil.getQueryHeaders({
|
23551
23572
|
$dayjs: i == null ? void 0 : i.dayjs,
|
23552
23573
|
dynamicQueryOperatorModel: i == null ? void 0 : i.dynamicQueryOperatorModel,
|
23553
23574
|
formID: null,
|
@@ -23557,8 +23578,8 @@ function httpClient() {
|
|
23557
23578
|
n.headers = {
|
23558
23579
|
...(v = n.headers) != null ? v : {},
|
23559
23580
|
[l]: !0,
|
23560
|
-
[c]:
|
23561
|
-
[d]:
|
23581
|
+
[c]: O,
|
23582
|
+
[d]: C,
|
23562
23583
|
[u]: N,
|
23563
23584
|
[_]: E,
|
23564
23585
|
[o]: k
|
@@ -24166,33 +24187,33 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24166
24187
|
}
|
24167
24188
|
}), useKgPageDdaCreateStore = defineStore("KgPageDdaCreate", () => {
|
24168
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);
|
24169
|
-
function c(
|
24170
|
-
a.value =
|
24190
|
+
function c(R) {
|
24191
|
+
a.value = R != null ? R : !1;
|
24171
24192
|
}
|
24172
|
-
function _(
|
24173
|
-
r.value =
|
24193
|
+
function _(R) {
|
24194
|
+
r.value = R != null ? R : [];
|
24174
24195
|
}
|
24175
|
-
function d(
|
24176
|
-
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);
|
24177
24198
|
}
|
24178
|
-
function v(
|
24179
|
-
const { properties:
|
24180
|
-
Object.entries(
|
24181
|
-
|
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);
|
24182
24203
|
});
|
24183
24204
|
}
|
24184
|
-
function g(
|
24185
|
-
const { formID:
|
24186
|
-
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;
|
24187
24208
|
}
|
24188
|
-
function m(
|
24209
|
+
function m(R) {
|
24189
24210
|
n.value.varButtons = [
|
24190
24211
|
...toRaw(n.value.varButtons),
|
24191
24212
|
{
|
24192
|
-
...
|
24213
|
+
...R,
|
24193
24214
|
available_flag: 1,
|
24194
24215
|
cmd: (() => {
|
24195
|
-
switch (
|
24216
|
+
switch (R.typ) {
|
24196
24217
|
case KG__VAR_BUTTON__TYPE.CREATE:
|
24197
24218
|
return "/var/VarPage/create";
|
24198
24219
|
case KG__VAR_BUTTON__TYPE.UPDATE:
|
@@ -24211,33 +24232,33 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24211
24232
|
}
|
24212
24233
|
], V();
|
24213
24234
|
}
|
24214
|
-
function p(
|
24215
|
-
const { varName:
|
24235
|
+
function p(R) {
|
24236
|
+
const { varName: L, properties: F = {} } = R, I = n.value.varButtons.find((M) => M.var_nam === L);
|
24216
24237
|
if (!I)
|
24217
24238
|
return;
|
24218
24239
|
let D = !1;
|
24219
|
-
if (Object.entries(
|
24220
|
-
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);
|
24221
24242
|
}), !D)
|
24222
24243
|
return;
|
24223
24244
|
const P = [...n.value.varButtons];
|
24224
24245
|
P.splice(n.value.varButtons.indexOf(I), 1, { ...I }), n.value.varButtons = toRaw(P);
|
24225
24246
|
}
|
24226
|
-
function T(
|
24227
|
-
const { varName:
|
24228
|
-
if (!
|
24247
|
+
function T(R) {
|
24248
|
+
const { varName: L } = R, F = n.value.varButtons.find((D) => D.var_nam === L);
|
24249
|
+
if (!F)
|
24229
24250
|
return;
|
24230
24251
|
const I = [...n.value.varButtons];
|
24231
|
-
I.splice(n.value.varButtons.indexOf(
|
24252
|
+
I.splice(n.value.varButtons.indexOf(F), 1), n.value.varButtons = toRaw(I);
|
24232
24253
|
}
|
24233
|
-
function E(
|
24254
|
+
function E(R) {
|
24234
24255
|
var D;
|
24235
|
-
const { varName:
|
24236
|
-
if (!
|
24256
|
+
const { varName: L, varText: F } = R;
|
24257
|
+
if (!L)
|
24237
24258
|
return;
|
24238
|
-
const I = n.value.varConfigDescriptions.find((P) => P.var_nam ===
|
24259
|
+
const I = n.value.varConfigDescriptions.find((P) => P.var_nam === L);
|
24239
24260
|
if (I) {
|
24240
|
-
I.var_text =
|
24261
|
+
I.var_text = F || L;
|
24241
24262
|
return;
|
24242
24263
|
}
|
24243
24264
|
n.value.varConfigDescriptions = [
|
@@ -24247,28 +24268,28 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24247
24268
|
frm_id: o.value,
|
24248
24269
|
grp_nam: "WMS",
|
24249
24270
|
locale_id: (D = e.locale) == null ? void 0 : D.value,
|
24250
|
-
var_nam:
|
24251
|
-
var_text:
|
24271
|
+
var_nam: L,
|
24272
|
+
var_text: F || L
|
24252
24273
|
}
|
24253
24274
|
];
|
24254
24275
|
}
|
24255
|
-
function k(
|
24256
|
-
n.value.varProfileDetails =
|
24257
|
-
...
|
24276
|
+
function k(R) {
|
24277
|
+
n.value.varProfileDetails = R.map((L) => ({
|
24278
|
+
...L,
|
24258
24279
|
frm_id: o.value,
|
24259
24280
|
grp_nam: "WMS"
|
24260
24281
|
}));
|
24261
24282
|
}
|
24262
|
-
function N(
|
24263
|
-
n.value.varGridDetails =
|
24264
|
-
...
|
24283
|
+
function N(R) {
|
24284
|
+
n.value.varGridDetails = R.map((L) => ({
|
24285
|
+
...L,
|
24265
24286
|
frm_id: o.value,
|
24266
24287
|
grp_nam: "WMS"
|
24267
24288
|
}));
|
24268
24289
|
}
|
24269
|
-
function
|
24270
|
-
n.value.varSubmitDetails =
|
24271
|
-
...
|
24290
|
+
function O(R) {
|
24291
|
+
n.value.varSubmitDetails = R.map((L) => ({
|
24292
|
+
...L,
|
24272
24293
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
24273
24294
|
enable_flag: 1,
|
24274
24295
|
frm_id: o.value,
|
@@ -24276,12 +24297,12 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24276
24297
|
visible_flag: 1
|
24277
24298
|
}));
|
24278
24299
|
}
|
24279
|
-
function R
|
24280
|
-
var
|
24281
|
-
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 : "";
|
24282
24303
|
}
|
24283
|
-
function
|
24284
|
-
var
|
24304
|
+
function A() {
|
24305
|
+
var R;
|
24285
24306
|
n.value = {
|
24286
24307
|
frmId: "",
|
24287
24308
|
sysPermissions: [
|
@@ -24324,7 +24345,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24324
24345
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
24325
24346
|
frm_id: "",
|
24326
24347
|
grp_nam: "WMS",
|
24327
|
-
locale_id: (
|
24348
|
+
locale_id: (R = e.locale) == null ? void 0 : R.value,
|
24328
24349
|
var_nam: KG__VAR_BUTTON__TYPE.SEARCH,
|
24329
24350
|
var_text: e.t("kg.query")
|
24330
24351
|
}
|
@@ -24366,25 +24387,25 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24366
24387
|
}, V();
|
24367
24388
|
}
|
24368
24389
|
function V() {
|
24369
|
-
var
|
24370
|
-
(
|
24371
|
-
var
|
24372
|
-
|
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 : "";
|
24373
24394
|
});
|
24374
24395
|
}
|
24375
24396
|
async function y() {
|
24376
|
-
var
|
24377
|
-
const { records:
|
24397
|
+
var L;
|
24398
|
+
const { records: R } = await List$1({
|
24378
24399
|
params: {
|
24379
|
-
localeId: (
|
24400
|
+
localeId: (L = e.locale) == null ? void 0 : L.value,
|
24380
24401
|
codnam: "var_button_type",
|
24381
24402
|
pageNo: 1,
|
24382
24403
|
pageSize: 999
|
24383
24404
|
}
|
24384
24405
|
});
|
24385
|
-
t.value =
|
24406
|
+
t.value = R != null ? R : [], V();
|
24386
24407
|
}
|
24387
|
-
return
|
24408
|
+
return A(), y(), {
|
24388
24409
|
createVarButton: m,
|
24389
24410
|
updateVarConfigDescription: E,
|
24390
24411
|
createVarDdaQuery: n,
|
@@ -24394,8 +24415,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24394
24415
|
getIsLoading: i,
|
24395
24416
|
getResultSetMetadataColumns: s,
|
24396
24417
|
getVarButtons: u,
|
24397
|
-
getVarText:
|
24398
|
-
initCreateVarDdaQuery:
|
24418
|
+
getVarText: C,
|
24419
|
+
initCreateVarDdaQuery: A,
|
24399
24420
|
isLoading: a,
|
24400
24421
|
patchSysPermission: v,
|
24401
24422
|
patchVarButton: p,
|
@@ -24405,7 +24426,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24405
24426
|
setResultSetMetadataColumns: _,
|
24406
24427
|
setVarGridDetails: N,
|
24407
24428
|
setVarProfileDetails: k,
|
24408
|
-
setVarSubmitDetails:
|
24429
|
+
setVarSubmitDetails: O,
|
24409
24430
|
updateVarDda: g
|
24410
24431
|
};
|
24411
24432
|
});
|
@@ -25164,9 +25185,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25164
25185
|
disabled: g || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
25165
25186
|
}),
|
25166
25187
|
onSelectAll(E, k) {
|
25167
|
-
const N = k.filter((
|
25168
|
-
key:
|
25169
|
-
}) =>
|
25188
|
+
const N = k.filter((O) => !O.disabled).map(({
|
25189
|
+
key: O
|
25190
|
+
}) => O);
|
25170
25191
|
p(N, E);
|
25171
25192
|
},
|
25172
25193
|
onSelect(E, k) {
|
@@ -25233,11 +25254,11 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25233
25254
|
onItemSelectAll: E,
|
25234
25255
|
onItemSelect: k
|
25235
25256
|
}) => {
|
25236
|
-
const N = m.sort((
|
25237
|
-
var
|
25238
|
-
return ((
|
25257
|
+
const N = m.sort((O, C) => {
|
25258
|
+
var A, V;
|
25259
|
+
return ((A = O.srtseq) != null ? A : 0) - ((V = C.srtseq) != null ? V : 0);
|
25239
25260
|
});
|
25240
|
-
return g === "right" && (s.value = N, N.find((
|
25261
|
+
return g === "right" && (s.value = N, N.find((O) => O.id === __KG__CREATE_ROW_ID__) || N.push({
|
25241
25262
|
id: __KG__CREATE_ROW_ID__,
|
25242
25263
|
direction: "right",
|
25243
25264
|
disabled: !0
|
@@ -25252,8 +25273,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25252
25273
|
columns: g === "left" ? l() : o(),
|
25253
25274
|
rowKey: "id",
|
25254
25275
|
dataSource: N,
|
25255
|
-
customRow: (
|
25256
|
-
onClick: (
|
25276
|
+
customRow: (O) => ({
|
25277
|
+
onClick: (A) => d(A, O, g, p)
|
25257
25278
|
}),
|
25258
25279
|
rowSelection: _({
|
25259
25280
|
disabled: T,
|
@@ -25407,9 +25428,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25407
25428
|
disabled: g || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
25408
25429
|
}),
|
25409
25430
|
onSelectAll(E, k) {
|
25410
|
-
const N = k.filter((
|
25411
|
-
key:
|
25412
|
-
}) =>
|
25431
|
+
const N = k.filter((O) => !O.disabled).map(({
|
25432
|
+
key: O
|
25433
|
+
}) => O);
|
25413
25434
|
p(N, E);
|
25414
25435
|
},
|
25415
25436
|
onSelect(E, k) {
|
@@ -25475,11 +25496,11 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25475
25496
|
onItemSelectAll: E,
|
25476
25497
|
onItemSelect: k
|
25477
25498
|
}) => {
|
25478
|
-
const N = m.sort((
|
25479
|
-
var
|
25480
|
-
return ((
|
25499
|
+
const N = m.sort((O, C) => {
|
25500
|
+
var A, V;
|
25501
|
+
return ((A = O.srtseq) != null ? A : 0) - ((V = C.srtseq) != null ? V : 0);
|
25481
25502
|
});
|
25482
|
-
return g === "right" && (s.value = N, N.find((
|
25503
|
+
return g === "right" && (s.value = N, N.find((O) => O.id === __KG__CREATE_ROW_ID__) || N.push({
|
25483
25504
|
id: __KG__CREATE_ROW_ID__,
|
25484
25505
|
direction: "right",
|
25485
25506
|
disabled: !0
|
@@ -25494,8 +25515,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25494
25515
|
columns: g === "left" ? l() : o(),
|
25495
25516
|
rowKey: "id",
|
25496
25517
|
dataSource: N,
|
25497
|
-
customRow: (
|
25498
|
-
onClick: (
|
25518
|
+
customRow: (O) => ({
|
25519
|
+
onClick: (A) => d(A, O, g, p)
|
25499
25520
|
}),
|
25500
25521
|
rowSelection: _({
|
25501
25522
|
disabled: T,
|
@@ -25648,9 +25669,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25648
25669
|
disabled: g || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
25649
25670
|
}),
|
25650
25671
|
onSelectAll(E, k) {
|
25651
|
-
const N = k.filter((
|
25652
|
-
key:
|
25653
|
-
}) =>
|
25672
|
+
const N = k.filter((O) => !O.disabled).map(({
|
25673
|
+
key: O
|
25674
|
+
}) => O);
|
25654
25675
|
p(N, E);
|
25655
25676
|
},
|
25656
25677
|
onSelect(E, k) {
|
@@ -25716,11 +25737,11 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25716
25737
|
onItemSelectAll: E,
|
25717
25738
|
onItemSelect: k
|
25718
25739
|
}) => {
|
25719
|
-
const N = m.sort((
|
25720
|
-
var
|
25721
|
-
return ((
|
25740
|
+
const N = m.sort((O, C) => {
|
25741
|
+
var A, V;
|
25742
|
+
return ((A = O.srtseq) != null ? A : 0) - ((V = C.srtseq) != null ? V : 0);
|
25722
25743
|
});
|
25723
|
-
return g === "right" && (s.value = N, N.find((
|
25744
|
+
return g === "right" && (s.value = N, N.find((O) => O.id === __KG__CREATE_ROW_ID__) || N.push({
|
25724
25745
|
id: __KG__CREATE_ROW_ID__,
|
25725
25746
|
direction: "right",
|
25726
25747
|
disabled: !0
|
@@ -25735,8 +25756,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25735
25756
|
columns: g === "left" ? l() : o(),
|
25736
25757
|
rowKey: "id",
|
25737
25758
|
dataSource: N,
|
25738
|
-
customRow: (
|
25739
|
-
onClick: (
|
25759
|
+
customRow: (O) => ({
|
25760
|
+
onClick: (A) => d(A, O, g, p)
|
25740
25761
|
}),
|
25741
25762
|
rowSelection: _({
|
25742
25763
|
disabled: T,
|
@@ -25767,7 +25788,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25767
25788
|
n.value !== 1 && (n.value -= 1);
|
25768
25789
|
}
|
25769
25790
|
async function T() {
|
25770
|
-
var N,
|
25791
|
+
var N, O, C, A, V;
|
25771
25792
|
switch (n.value) {
|
25772
25793
|
case 1:
|
25773
25794
|
try {
|
@@ -25777,19 +25798,19 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25777
25798
|
break;
|
25778
25799
|
case 2:
|
25779
25800
|
try {
|
25780
|
-
await ((
|
25801
|
+
await ((O = _.value) == null ? void 0 : O.onSubmit()), n.value += 1;
|
25781
25802
|
} catch {
|
25782
25803
|
}
|
25783
25804
|
break;
|
25784
25805
|
case 3:
|
25785
25806
|
try {
|
25786
|
-
await ((
|
25807
|
+
await ((C = d.value) == null ? void 0 : C.onSubmit()), n.value += 1;
|
25787
25808
|
} catch {
|
25788
25809
|
}
|
25789
25810
|
break;
|
25790
25811
|
case 4:
|
25791
25812
|
try {
|
25792
|
-
await ((
|
25813
|
+
await ((A = v.value) == null ? void 0 : A.onSubmit()), n.value += 1;
|
25793
25814
|
} catch {
|
25794
25815
|
}
|
25795
25816
|
break;
|
@@ -25805,35 +25826,35 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25805
25826
|
var N;
|
25806
25827
|
try {
|
25807
25828
|
await ((N = m.value) == null ? void 0 : N.onSubmit());
|
25808
|
-
const
|
25809
|
-
|
25810
|
-
frm_id:
|
25811
|
-
var_nam:
|
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({
|
25831
|
+
frm_id: O.frmId,
|
25832
|
+
var_nam: A,
|
25812
25833
|
grp_nam: "WMS"
|
25813
|
-
})),
|
25814
|
-
var y,
|
25815
|
-
delete
|
25834
|
+
})), O.varConfigDescriptions = toRaw(O.varConfigDescriptions.filter((A) => C.includes(A.var_nam))), O.varButtons.forEach((A, V) => {
|
25835
|
+
var y, R, L;
|
25836
|
+
delete A.id, O.sysPermissions.push({
|
25816
25837
|
app: "WEB",
|
25817
25838
|
delFlag: 0,
|
25818
25839
|
leaf: !0,
|
25819
25840
|
menuType: 2,
|
25820
|
-
name: (
|
25841
|
+
name: (R = (y = O.varConfigDescriptions.find((F) => F.var_nam === A.var_nam)) == null ? void 0 : y.var_text) != null ? R : "",
|
25821
25842
|
parentId: "",
|
25822
|
-
perms: (
|
25843
|
+
perms: (L = A.permission_code) != null ? L : "",
|
25823
25844
|
permsType: "0",
|
25824
25845
|
route: !1,
|
25825
25846
|
sortNo: V + 1,
|
25826
25847
|
status: "1"
|
25827
|
-
}),
|
25828
|
-
button_var_name:
|
25848
|
+
}), A.typ !== KG__VAR_BUTTON__TYPE.SEARCH && (O.varSubmitConfigs.push({
|
25849
|
+
button_var_name: A.var_nam,
|
25829
25850
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
25830
|
-
frm_id:
|
25831
|
-
}),
|
25832
|
-
...
|
25833
|
-
button_var_name:
|
25851
|
+
frm_id: O.frmId
|
25852
|
+
}), A.typ !== KG__VAR_BUTTON__TYPE.DELETE && O.varSubmitDetails.push(...O.varSubmitDetails.filter((F) => !F.button_var_name).map((F) => ({
|
25853
|
+
...F,
|
25854
|
+
button_var_name: A.var_nam
|
25834
25855
|
}))));
|
25835
|
-
}),
|
25836
|
-
data:
|
25856
|
+
}), O.varSubmitDetails = O.varSubmitDetails.filter((A) => !!A.button_var_name), await Create({
|
25857
|
+
data: O
|
25837
25858
|
}), message.success(a.t("\u521B\u5EFA\u6210\u529F.")), t("update:kgVisible", !1), t("kgOk"), r.initCreateVarDdaQuery();
|
25838
25859
|
} catch {
|
25839
25860
|
}
|