@kengic/vue 0.25.2-beta.2 → 0.25.2
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 Ae = (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) => (Ae(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 = "";
|
@@ -1826,8 +1826,8 @@ function sendQuery(e, t, a, r) {
|
|
1826
1826
|
if (e.random) {
|
1827
1827
|
let R = e.resources.slice(0);
|
1828
1828
|
for (s = []; R.length > 1; ) {
|
1829
|
-
const
|
1830
|
-
s.push(R[
|
1829
|
+
const O = Math.floor(Math.random() * R.length);
|
1830
|
+
s.push(R[O]), R = R.slice(0, O).concat(R.slice(O + 1));
|
1831
1831
|
}
|
1832
1832
|
s = s.concat(R);
|
1833
1833
|
} else
|
@@ -1843,8 +1843,8 @@ function sendQuery(e, t, a, r) {
|
|
1843
1843
|
R.status === "pending" && (R.status = "aborted");
|
1844
1844
|
}), d = [];
|
1845
1845
|
}
|
1846
|
-
function p(R,
|
1847
|
-
|
1846
|
+
function p(R, O) {
|
1847
|
+
O && (v = []), typeof R == "function" && v.push(R);
|
1848
1848
|
}
|
1849
1849
|
function T() {
|
1850
1850
|
return {
|
@@ -1867,8 +1867,8 @@ function sendQuery(e, t, a, r) {
|
|
1867
1867
|
R.status === "pending" && (R.status = "aborted");
|
1868
1868
|
}), d = [];
|
1869
1869
|
}
|
1870
|
-
function N(R,
|
1871
|
-
const y =
|
1870
|
+
function N(R, O, V) {
|
1871
|
+
const y = O !== "success";
|
1872
1872
|
switch (d = d.filter((C) => C !== R), o) {
|
1873
1873
|
case "pending":
|
1874
1874
|
break;
|
@@ -1879,12 +1879,12 @@ function sendQuery(e, t, a, r) {
|
|
1879
1879
|
default:
|
1880
1880
|
return;
|
1881
1881
|
}
|
1882
|
-
if (
|
1882
|
+
if (O === "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 ? A() : E());
|
1888
1888
|
return;
|
1889
1889
|
}
|
1890
1890
|
if (g(), k(), !e.random) {
|
@@ -1895,7 +1895,7 @@ function sendQuery(e, t, a, r) {
|
|
1895
1895
|
C(V);
|
1896
1896
|
});
|
1897
1897
|
}
|
1898
|
-
function
|
1898
|
+
function A() {
|
1899
1899
|
if (o !== "pending")
|
1900
1900
|
return;
|
1901
1901
|
g();
|
@@ -1910,16 +1910,16 @@ function sendQuery(e, t, a, r) {
|
|
1910
1910
|
E();
|
1911
1911
|
return;
|
1912
1912
|
}
|
1913
|
-
const
|
1913
|
+
const O = {
|
1914
1914
|
status: "pending",
|
1915
1915
|
resource: R,
|
1916
1916
|
callback: (V, y) => {
|
1917
|
-
N(
|
1917
|
+
N(O, V, y);
|
1918
1918
|
}
|
1919
1919
|
};
|
1920
|
-
d.push(
|
1920
|
+
d.push(O), u++, _ = setTimeout(A, e.rotate), a(R, t, O.callback);
|
1921
1921
|
}
|
1922
|
-
return setTimeout(
|
1922
|
+
return setTimeout(A), 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.2
|
2440
|
+
}), version = "0.25.2";
|
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, A = t.constructor;
|
3645
|
+
N != A && "constructor" in e && "constructor" in t && !(typeof N == "function" && N instanceof N && typeof A == "function" && A instanceof A) && (m = !1);
|
3646
3646
|
}
|
3647
3647
|
return i.delete(e), i.delete(t), m;
|
3648
3648
|
}
|
@@ -3813,19 +3813,19 @@ function debounce(e, t, a) {
|
|
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
3815
|
function v(R) {
|
3816
|
-
var
|
3817
|
-
return r = n = void 0, u = R, s = e.apply(V,
|
3816
|
+
var O = r, V = n;
|
3817
|
+
return r = n = void 0, u = R, s = e.apply(V, O), s;
|
3818
3818
|
}
|
3819
3819
|
function g(R) {
|
3820
3820
|
return u = R, l = setTimeout(T, t), c ? v(R) : s;
|
3821
3821
|
}
|
3822
3822
|
function m(R) {
|
3823
|
-
var
|
3823
|
+
var O = R - o, V = R - u, y = t - O;
|
3824
3824
|
return _ ? nativeMin$2(y, i - V) : y;
|
3825
3825
|
}
|
3826
3826
|
function p(R) {
|
3827
|
-
var
|
3828
|
-
return o === void 0 ||
|
3827
|
+
var O = R - o, V = R - u;
|
3828
|
+
return o === void 0 || O >= t || O < 0 || _ && V >= i;
|
3829
3829
|
}
|
3830
3830
|
function T() {
|
3831
3831
|
var R = now$1();
|
@@ -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 R = now$1(),
|
3847
|
-
if (r = arguments, n = this, o = R,
|
3845
|
+
function A() {
|
3846
|
+
var R = now$1(), O = p(R);
|
3847
|
+
if (r = arguments, n = this, o = R, O) {
|
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 A.cancel = k, A.flush = N, A;
|
3856
3856
|
}
|
3857
3857
|
function isArrayLikeObject(e) {
|
3858
3858
|
return isObjectLike(e) && isArrayLike(e);
|
@@ -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, A, R, O, V, y, C, F, B, I, D, P, M, L, 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: (A = (N = a.option.value.appTitle) == null ? void 0 : N[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
|
4838
4838
|
sortNo: 2,
|
4839
|
-
title: (
|
4839
|
+
title: (O = (R = a.option.value.appTitle) == null ? void 0 : R[KG_APP.WMS_BUSINESS_MANAGER]) != null ? O : "\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
|
@@ -5007,14 +5007,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
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
|
-
R[
|
5012
|
-
var
|
5013
|
-
return D instanceof B || !(!D || !D[
|
5010
|
+
} }, A = "en", R = {};
|
5011
|
+
R[A] = E;
|
5012
|
+
var O = "$isDayjsObject", V = function(D) {
|
5013
|
+
return D instanceof B || !(!D || !D[O]);
|
5014
5014
|
}, y = function D(P, M, L) {
|
5015
5015
|
var w;
|
5016
5016
|
if (!P)
|
5017
|
-
return
|
5017
|
+
return A;
|
5018
5018
|
if (typeof P == "string") {
|
5019
5019
|
var x = P.toLowerCase();
|
5020
5020
|
R[x] && (w = x), M && (R[x] = M, w = x);
|
@@ -5025,7 +5025,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5025
5025
|
var U = P.name;
|
5026
5026
|
R[U] = P, w = U;
|
5027
5027
|
}
|
5028
|
-
return !L && w && (
|
5028
|
+
return !L && w && (A = w), w || !L && A;
|
5029
5029
|
}, C = function(D, P) {
|
5030
5030
|
if (V(D))
|
5031
5031
|
return D.clone();
|
@@ -5037,7 +5037,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5037
5037
|
};
|
5038
5038
|
var B = 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[O] = !0;
|
5041
5041
|
}
|
5042
5042
|
var P = D.prototype;
|
5043
5043
|
return P.parse = function(M) {
|
@@ -5269,7 +5269,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5269
5269
|
return D.$i || (D(P, B, C), D.$i = !0), C;
|
5270
5270
|
}, C.locale = y, C.isDayjs = V, C.unix = function(D) {
|
5271
5271
|
return C(1e3 * D);
|
5272
|
-
}, C.en = R[
|
5272
|
+
}, C.en = R[A], C.Ls = R, C.p = {}, C;
|
5273
5273
|
});
|
5274
5274
|
})(dayjs_min);
|
5275
5275
|
const dayjs = dayjs_min.exports;
|
@@ -5314,9 +5314,9 @@ 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, A = 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 R = r === 10 ? 1e3 : 1024,
|
5319
|
+
const R = r === 10 ? 1e3 : 1024, O = 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)
|
@@ -5324,21 +5324,21 @@ function filesize(e, {
|
|
5324
5324
|
if (V && (E = -E), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(E) / Math.log(R)), 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, A = k[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
5328
5328
|
else {
|
5329
5329
|
N = E / (r === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (N = N * 8, N >= R && T < 8 && (N = N / R, T++));
|
5330
5330
|
const C = Math.pow(10, T > 0 ? n : 0);
|
5331
|
-
k[0] = y(N * C) / C, k[0] === R && T < 8 && g === -1 && (k[0] = 1, T++),
|
5331
|
+
k[0] = y(N * C) / C, k[0] === R && T < 8 && g === -1 && (k[0] = 1, T++), A = 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
5334
|
const C = l || PERIOD, F = k[0].toString().split(C), B = F[1] || EMPTY, I = B.length, D = n - I;
|
5335
5335
|
k[0] = `${F[0]}${C}${B.padEnd(I + D, ZERO)}`;
|
5336
5336
|
}
|
5337
|
-
return
|
5337
|
+
return O && (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: A
|
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((A) => Number(A));
|
5811
|
+
if (N.some((A) => 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, A, R;
|
6007
6007
|
const {
|
6008
6008
|
params: a,
|
6009
6009
|
kgSearchFormID: r,
|
@@ -6025,20 +6025,20 @@ 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((
|
6028
|
+
Object.keys(l).sort().forEach((O) => {
|
6029
6029
|
var B, I, D, P, M, L;
|
6030
|
-
if (o.includes(
|
6030
|
+
if (o.includes(O) || O.endsWith("_obj"))
|
6031
6031
|
return;
|
6032
|
-
const V = r ? (B = _ == null ? void 0 : _.store) == null ? void 0 : B.getVarProfileDetail(r,
|
6033
|
-
let y =
|
6034
|
-
const C = l[
|
6035
|
-
let F = d == null ? void 0 : d[
|
6036
|
-
switch ((((D = (I = u.option.value.KgSearch) == null ? void 0 : I.dynamicQuery) == null ? void 0 : D.on) !== !0 || r && ((L = (M = (P = _ == null ? void 0 : _.kgSearch) == null ? void 0 : P.currentVarProfileMaster) == null ? void 0 : M.value) == null ? void 0 : L.dyn_flg) !== 1) && (F = KG_DYNAMIC_QUERY_OPERATOR.EQ), r && (V == null ? void 0 : V.use_underscore_when_dynamic_query_flag) !== 0 && (y =
|
6032
|
+
const V = r ? (B = _ == null ? void 0 : _.store) == null ? void 0 : B.getVarProfileDetail(r, O) : null;
|
6033
|
+
let y = O;
|
6034
|
+
const C = l[O];
|
6035
|
+
let F = d == null ? void 0 : d[O];
|
6036
|
+
switch ((((D = (I = u.option.value.KgSearch) == null ? void 0 : I.dynamicQuery) == null ? void 0 : D.on) !== !0 || r && ((L = (M = (P = _ == null ? void 0 : _.kgSearch) == null ? void 0 : P.currentVarProfileMaster) == null ? void 0 : M.value) == null ? void 0 : L.dyn_flg) !== 1) && (F = KG_DYNAMIC_QUERY_OPERATOR.EQ), r && (V == null ? void 0 : V.use_underscore_when_dynamic_query_flag) !== 0 && (y = O.split(".").map((w) => KgUtil.snakeCase(w)).join(".")), !0) {
|
6037
6037
|
case (!!s && s.isDayjs(C)): {
|
6038
6038
|
const w = C;
|
6039
6039
|
let x = r ? KgUtil.parseParamFromDayjs({
|
6040
6040
|
formID: r,
|
6041
|
-
key:
|
6041
|
+
key: O,
|
6042
6042
|
value: w
|
6043
6043
|
}) : w.format("YYYY-MM-DD HH:mm:ss");
|
6044
6044
|
switch (F) {
|
@@ -6166,14 +6166,14 @@ class KgVarUtil {
|
|
6166
6166
|
break;
|
6167
6167
|
}
|
6168
6168
|
}
|
6169
|
-
v[
|
6169
|
+
v[O] = x;
|
6170
6170
|
break;
|
6171
6171
|
}
|
6172
6172
|
case (!!s && isArray$1(C) && C.length === 2 && s.isDayjs(C[0]) && s.isDayjs(C[1])): {
|
6173
6173
|
const w = C[0], x = C[1];
|
6174
6174
|
let K = "", U = KgUtil.parseParamFromDayjs({
|
6175
6175
|
formID: r,
|
6176
|
-
key:
|
6176
|
+
key: O,
|
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: O,
|
6185
6185
|
value: x
|
6186
6186
|
});
|
6187
6187
|
break;
|
@@ -6199,16 +6199,16 @@ 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[O] = K;
|
6203
6203
|
break;
|
6204
6204
|
}
|
6205
6205
|
case Array.isArray(C): {
|
6206
6206
|
if (C.length === 0) {
|
6207
|
-
v[
|
6207
|
+
v[O] = void 0;
|
6208
6208
|
break;
|
6209
6209
|
}
|
6210
6210
|
const w = C.map((x) => `N'${String(x)}'`).join(", ");
|
6211
|
-
v[
|
6211
|
+
v[O] = ` AND (${y} IN (${w}))`;
|
6212
6212
|
break;
|
6213
6213
|
}
|
6214
6214
|
case isObjectLike(C):
|
@@ -6217,7 +6217,7 @@ class KgVarUtil {
|
|
6217
6217
|
}), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
6218
6218
|
case typeof C == "string": {
|
6219
6219
|
if (C.trim() === "") {
|
6220
|
-
v[
|
6220
|
+
v[O] = void 0;
|
6221
6221
|
break;
|
6222
6222
|
}
|
6223
6223
|
let w = KgUtil.parseParamFromString(C);
|
@@ -6244,7 +6244,7 @@ class KgVarUtil {
|
|
6244
6244
|
break;
|
6245
6245
|
}
|
6246
6246
|
}
|
6247
|
-
v[
|
6247
|
+
v[O] = w;
|
6248
6248
|
break;
|
6249
6249
|
}
|
6250
6250
|
case typeof C == "number": {
|
@@ -6276,7 +6276,7 @@ class KgVarUtil {
|
|
6276
6276
|
break;
|
6277
6277
|
}
|
6278
6278
|
}
|
6279
|
-
v[
|
6279
|
+
v[O] = w;
|
6280
6280
|
break;
|
6281
6281
|
}
|
6282
6282
|
case typeof C == "boolean": {
|
@@ -6292,19 +6292,19 @@ class KgVarUtil {
|
|
6292
6292
|
break;
|
6293
6293
|
}
|
6294
6294
|
}
|
6295
|
-
v[
|
6295
|
+
v[O] = w;
|
6296
6296
|
break;
|
6297
6297
|
}
|
6298
6298
|
default: {
|
6299
|
-
v[
|
6299
|
+
v[O] = C;
|
6300
6300
|
break;
|
6301
6301
|
}
|
6302
6302
|
}
|
6303
6303
|
});
|
6304
|
-
let m = `WHERE (1 = 1)${reduce(v, (
|
6304
|
+
let m = `WHERE (1 = 1)${reduce(v, (O, V, y) => {
|
6305
6305
|
var F, B, I, D;
|
6306
6306
|
const C = r ? (F = _ == null ? void 0 : _.store) == null ? void 0 : F.getVarProfileDetail(r, y) : null;
|
6307
|
-
return (C == null ? void 0 : C.exclude_from_where_sql_flag) === 1 || !C && Object.keys(KgVarUtil.parseRequestParamsToJSON((D = (I = (B = c == null ? void 0 : c.varGridConfig) == null ? void 0 : B.value) == null ? void 0 : I.cmd_prm) != null ? D : "")).includes(y) || !V ?
|
6307
|
+
return (C == null ? void 0 : C.exclude_from_where_sql_flag) === 1 || !C && Object.keys(KgVarUtil.parseRequestParamsToJSON((D = (I = (B = c == null ? void 0 : c.varGridConfig) == null ? void 0 : B.value) == null ? void 0 : I.cmd_prm) != null ? D : "")).includes(y) || !V ? O : O + V;
|
6308
6308
|
}, "")}`;
|
6309
6309
|
m = encodeURIComponent(m);
|
6310
6310
|
let p = "";
|
@@ -6367,22 +6367,22 @@ class KgVarUtil {
|
|
6367
6367
|
l.column = "modify_time", l.order = "desc";
|
6368
6368
|
break;
|
6369
6369
|
default:
|
6370
|
-
l.column = (
|
6370
|
+
l.column = (A = (N = _ == null ? void 0 : _.kgTable) == null ? void 0 : N.id) == null ? void 0 : A.value;
|
6371
6371
|
break;
|
6372
6372
|
}
|
6373
6373
|
}
|
6374
|
-
let
|
6375
|
-
((R = c == null ? void 0 : c.varGridConfig.value) == null ? void 0 : R.convert_sort_field_to_under_score_flg) === 1 && (
|
6374
|
+
let O = l.column;
|
6375
|
+
((R = c == null ? void 0 : c.varGridConfig.value) == null ? void 0 : R.convert_sort_field_to_under_score_flg) === 1 && (O = l.column.split(".").map((V) => KgUtil.snakeCase(V)).join(".")), O && (p = `ORDER BY ${O}`, 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 O = Number.parseInt(l.pageNo);
|
6380
|
+
if (Number.isNaN(O) || O <= 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 ${(O - 1) * V} ROWS FETCH NEXT ${V} ROWS ONLY`;
|
6386
6386
|
}
|
6387
6387
|
return {
|
6388
6388
|
offsetSql: T,
|
@@ -6545,7 +6545,7 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6545
6545
|
getters: {},
|
6546
6546
|
state: [],
|
6547
6547
|
hotState: m
|
6548
|
-
}),
|
6548
|
+
}), A = {
|
6549
6549
|
_p: r,
|
6550
6550
|
$id: e,
|
6551
6551
|
$onAction: addSubscription.bind(null, d),
|
@@ -6567,21 +6567,21 @@ function createSetupStore(e, t, a = {}, r, n) {
|
|
6567
6567
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6568
6568
|
_hmrPayload: N
|
6569
6569
|
} : {},
|
6570
|
-
|
6570
|
+
A
|
6571
6571
|
));
|
6572
6572
|
r._s.set(e, R);
|
6573
|
-
const
|
6574
|
-
for (const V in
|
6575
|
-
const y =
|
6573
|
+
const O = r._e.run(() => (i = effectScope(), i.run(() => t())));
|
6574
|
+
for (const V in O) {
|
6575
|
+
const y = O[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(O, 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
6579
|
const C = process.env.NODE_ENV !== "production" && n ? y : k(V, y);
|
6580
|
-
|
6580
|
+
O[V] = C, 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 && (O._getters || (O._getters = markRaw([]))).push(V));
|
6583
6583
|
}
|
6584
|
-
if (assign$1(R,
|
6584
|
+
if (assign$1(R, O), assign$1(toRaw(R), O), Object.defineProperty(R, "$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)
|
@@ -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(), A = [N, k].filter(Boolean);
|
7344
7344
|
N && (p ? s.add(m.code) : s.delete(m.code));
|
7345
|
-
for (const R of
|
7345
|
+
for (const R of A)
|
7346
7346
|
c.add(R), _(R, p);
|
7347
7347
|
k === "meta" && !p ? (u.forEach((R) => {
|
7348
7348
|
s.delete(R), _(R, !1);
|
7349
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...s, ...
|
7349
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && p && [...s, ...A].forEach((R) => u.add(R));
|
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, {
|
@@ -7422,7 +7422,7 @@ function useDragToMove(e) {
|
|
7422
7422
|
function N() {
|
7423
7423
|
T.remove(), E.remove();
|
7424
7424
|
}
|
7425
|
-
function
|
7425
|
+
function A(B) {
|
7426
7426
|
const {
|
7427
7427
|
event: I
|
7428
7428
|
} = B != null ? B : {};
|
@@ -7434,17 +7434,17 @@ function useDragToMove(e) {
|
|
7434
7434
|
l.value.style.left = `${M}px`, l.value.style.top = `${L}px`;
|
7435
7435
|
}
|
7436
7436
|
function R(B) {
|
7437
|
-
!B || !s.value || !l.value || !o.value || (document.body.classList.add("kg-modal-dragging"), v = B.clientX, g = B.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) =>
|
7437
|
+
!B || !s.value || !l.value || !o.value || (document.body.classList.add("kg-modal-dragging"), v = B.clientX, g = B.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) => O({
|
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 O(B) {
|
7444
|
+
A(B);
|
7445
7445
|
}
|
7446
7446
|
function V(B) {
|
7447
|
-
|
7447
|
+
A(B), N(), document.body.classList.remove("kg-modal-dragging");
|
7448
7448
|
}
|
7449
7449
|
onUnmounted(() => {
|
7450
7450
|
N();
|
@@ -7482,7 +7482,7 @@ function useDragToResize(e) {
|
|
7482
7482
|
const M = (L = a.value.kgMaxHeight) != null ? L : 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, A = {
|
7486
7486
|
remove: () => {
|
7487
7487
|
}
|
7488
7488
|
}, R = {
|
@@ -7492,10 +7492,10 @@ function useDragToResize(e) {
|
|
7492
7492
|
watch(() => t.width, (M) => {
|
7493
7493
|
M !== void 0 && (d.value = M);
|
7494
7494
|
});
|
7495
|
-
const
|
7495
|
+
const O = watch([u], ([M]) => {
|
7496
7496
|
if (M) {
|
7497
7497
|
const L = M.querySelector("div.ant-modal-content");
|
7498
|
-
L ? (
|
7498
|
+
L ? (O(), o = new ResizeObserver(() => {
|
7499
7499
|
p.value = L.offsetHeight;
|
7500
7500
|
}), o.observe(L)) : o == null || o.disconnect();
|
7501
7501
|
}
|
@@ -7513,7 +7513,7 @@ function useDragToResize(e) {
|
|
7513
7513
|
};
|
7514
7514
|
}
|
7515
7515
|
function y() {
|
7516
|
-
|
7516
|
+
A.remove(), R.remove();
|
7517
7517
|
}
|
7518
7518
|
function C(M) {
|
7519
7519
|
if (!u.value) {
|
@@ -7590,7 +7590,7 @@ function useDragToResize(e) {
|
|
7590
7590
|
____ERROR____("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7591
7591
|
return;
|
7592
7592
|
}
|
7593
|
-
k = L.pageX, N = L.pageY, T = u.value.offsetWidth, E = u.value.offsetHeight, Number(getComputedStyle(u.value).top.replace(/px/g, "")),
|
7593
|
+
k = L.pageX, N = L.pageY, T = u.value.offsetWidth, E = u.value.offsetHeight, Number(getComputedStyle(u.value).top.replace(/px/g, "")), A = V(document.documentElement, "mousemove", (x) => D({
|
7594
7594
|
event: x,
|
7595
7595
|
handleType: w
|
7596
7596
|
})), R = V(document.documentElement, "mouseup", (x) => P({
|
@@ -7882,76 +7882,76 @@ const getProps$H = () => ({
|
|
7882
7882
|
};
|
7883
7883
|
}
|
7884
7884
|
}), v = computed(() => {
|
7885
|
-
let
|
7886
|
-
switch (e.kgClass && (
|
7885
|
+
let O = "";
|
7886
|
+
switch (e.kgClass && (O += `${e.kgClass} `), O += "kg-resizable", e.kgDisabled && (O += " kg-resizable--disabled"), e.kgType) {
|
7887
7887
|
case "left":
|
7888
|
-
|
7888
|
+
O += " kg-resizable--left";
|
7889
7889
|
break;
|
7890
7890
|
case "right":
|
7891
|
-
|
7891
|
+
O += " kg-resizable--right";
|
7892
7892
|
break;
|
7893
7893
|
case "top":
|
7894
|
-
|
7894
|
+
O += " kg-resizable--top";
|
7895
7895
|
break;
|
7896
7896
|
case "bottom":
|
7897
|
-
|
7897
|
+
O += " kg-resizable--bottom";
|
7898
7898
|
break;
|
7899
7899
|
}
|
7900
|
-
return
|
7900
|
+
return O;
|
7901
7901
|
}), g = computed(() => {
|
7902
|
-
var
|
7902
|
+
var O, 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, (O = e.kgMaxHeight) != null ? O : 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 O;
|
7913
|
+
return Math.min(g.value, (O = e.kgMinHeight) != null ? O : 0);
|
7914
7914
|
});
|
7915
7915
|
function p() {
|
7916
7916
|
c.remove(), _.remove();
|
7917
7917
|
}
|
7918
|
-
const T = (
|
7918
|
+
const T = (O) => {
|
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 - (O.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 + (O.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 - (O.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 + (O.pageX - o))));
|
7931
7931
|
break;
|
7932
7932
|
}
|
7933
7933
|
};
|
7934
|
-
function E(
|
7935
|
-
T(
|
7934
|
+
function E(O) {
|
7935
|
+
T(O);
|
7936
7936
|
}
|
7937
|
-
function k(
|
7938
|
-
T(
|
7937
|
+
function k(O) {
|
7938
|
+
T(O), p();
|
7939
7939
|
}
|
7940
|
-
function N(
|
7941
|
-
|
7940
|
+
function N(O) {
|
7941
|
+
O.stopPropagation(), O.preventDefault(), p(), !(O instanceof MouseEvent && O.which !== 1) && (o = O.pageX, u = O.pageY, s = e.kgHeight, l = e.kgHeight, c = A(document.documentElement, "mouseup", k), _ = A(document.documentElement, "mousemove", E));
|
7942
7942
|
}
|
7943
|
-
function O
|
7944
|
-
return
|
7945
|
-
remove: () =>
|
7943
|
+
function A(O, V, y) {
|
7944
|
+
return O.addEventListener(V, y), {
|
7945
|
+
remove: () => O.removeEventListener(V, y)
|
7946
7946
|
};
|
7947
7947
|
}
|
7948
|
-
function R(
|
7949
|
-
|
7948
|
+
function R(O) {
|
7949
|
+
O.stopPropagation(), O.preventDefault();
|
7950
7950
|
}
|
7951
7951
|
return onUnmounted(() => {
|
7952
7952
|
p();
|
7953
7953
|
}), () => {
|
7954
|
-
var
|
7954
|
+
var O;
|
7955
7955
|
return createVNode("div", {
|
7956
7956
|
ref: r,
|
7957
7957
|
class: v.value,
|
@@ -7962,7 +7962,7 @@ const getProps$H = () => ({
|
|
7962
7962
|
onMousedown: N
|
7963
7963
|
}, [createVNode("div", {
|
7964
7964
|
class: "kg-resizable-handle-line"
|
7965
|
-
}, null)]), (
|
7965
|
+
}, null)]), (O = a.default) == null ? void 0 : O.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, A, R;
|
8077
8077
|
if (_.value) {
|
8078
|
-
const
|
8078
|
+
const O = (T = (p = u.kgTable.selectedRows) == null ? void 0 : p.value) != null ? T : [], V = (E = O.map((C) => C[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: O,
|
8083
8083
|
values: V,
|
8084
8084
|
var_nam: n
|
8085
8085
|
}))
|
@@ -8088,16 +8088,16 @@ const getProps$H = () => ({
|
|
8088
8088
|
context: s,
|
8089
8089
|
isMultiple: !0,
|
8090
8090
|
model: l,
|
8091
|
-
rows:
|
8091
|
+
rows: O,
|
8092
8092
|
values: V,
|
8093
8093
|
var_nam: n
|
8094
8094
|
}), a("update:visible", !1);
|
8095
8095
|
} else {
|
8096
|
-
const
|
8096
|
+
const O = (A = (N = (k = u.kgTable.selectedRows) == null ? void 0 : k.value) == null ? void 0 : N[0]) != null ? A : null, V = (R = O == null ? void 0 : O[d.value]) != null ? R : "", y = O ? [O] : [], C = [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: O,
|
8101
8101
|
rows: y,
|
8102
8102
|
value: V,
|
8103
8103
|
values: C,
|
@@ -8108,7 +8108,7 @@ const getProps$H = () => ({
|
|
8108
8108
|
context: s,
|
8109
8109
|
isMultiple: !1,
|
8110
8110
|
model: l,
|
8111
|
-
row:
|
8111
|
+
row: O,
|
8112
8112
|
rows: y,
|
8113
8113
|
value: V,
|
8114
8114
|
values: C,
|
@@ -8203,31 +8203,31 @@ 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
|
8206
|
+
var A, R;
|
8207
8207
|
return (R = a.kgSubmit.getVarSubmitDetails({
|
8208
|
-
buttonVarName: (
|
8208
|
+
buttonVarName: (A = a.kgButton.currentButton.value) == null ? void 0 : A.var_nam,
|
8209
8209
|
varName: e.kgVarName
|
8210
8210
|
})[0]) != null ? R : null;
|
8211
8211
|
}), s = ref([]), l = computed(() => {
|
8212
|
-
var
|
8212
|
+
var A, R;
|
8213
8213
|
return [
|
8214
8214
|
...s.value,
|
8215
|
-
...(
|
8215
|
+
...(A = e.kgRules) != null ? A : [],
|
8216
8216
|
...(R = a.kgSubmit.formRules.value[e.kgVarName]) != null ? R : []
|
8217
8217
|
];
|
8218
8218
|
}), o = ref(!1);
|
8219
|
-
watch(l, (
|
8220
|
-
isEqual(
|
8219
|
+
watch(l, (A, R) => {
|
8220
|
+
isEqual(A, R) || (o.value = !0, nextTick().then(() => {
|
8221
8221
|
o.value = !1;
|
8222
8222
|
}));
|
8223
|
-
}, {}), watch([r, i, n], async ([
|
8223
|
+
}, {}), watch([r, i, n], async ([A, R, O]) => {
|
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 ((A == null ? void 0 : A.vis_flg) === 0)
|
8231
8231
|
return y;
|
8232
8232
|
break;
|
8233
8233
|
case KG_FORM_CONTEXT.SUBMIT:
|
@@ -8237,7 +8237,7 @@ function _useFormRules(e) {
|
|
8237
8237
|
}
|
8238
8238
|
switch (e.kgContext) {
|
8239
8239
|
case KG_FORM_CONTEXT.SEARCH:
|
8240
|
-
(
|
8240
|
+
(A == null ? void 0 : A.rqr_flg) === 1 && y.push({
|
8241
8241
|
required: !0,
|
8242
8242
|
message: t.t("kg.required")
|
8243
8243
|
});
|
@@ -8249,9 +8249,9 @@ function _useFormRules(e) {
|
|
8249
8249
|
});
|
8250
8250
|
break;
|
8251
8251
|
}
|
8252
|
-
switch (
|
8252
|
+
switch (O == null ? void 0 : O.validation_type) {
|
8253
8253
|
case OPTIONS: {
|
8254
|
-
switch (
|
8254
|
+
switch (O == null ? void 0 : O.data_type) {
|
8255
8255
|
case ANY: {
|
8256
8256
|
y.push({
|
8257
8257
|
validator: E
|
@@ -8333,25 +8333,25 @@ function _useFormRules(e) {
|
|
8333
8333
|
deep: !0,
|
8334
8334
|
immediate: !0
|
8335
8335
|
});
|
8336
|
-
function u(
|
8337
|
-
return
|
8336
|
+
function u(A) {
|
8337
|
+
return A == null || A === "" || typeof A == "string" && A.trim() === "";
|
8338
8338
|
}
|
8339
|
-
function c(
|
8339
|
+
function c(A, R) {
|
8340
8340
|
return u(R) || /^-?\d+$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidInteger"));
|
8341
8341
|
}
|
8342
|
-
function _(
|
8342
|
+
function _(A, R) {
|
8343
8343
|
return u(R) || /^-?\d+(\.\d+)?$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidFloat"));
|
8344
8344
|
}
|
8345
|
-
function d(
|
8345
|
+
function d(A, R) {
|
8346
8346
|
return u(R) || /^[A-Za-z]*$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLetter"));
|
8347
8347
|
}
|
8348
|
-
function v(
|
8348
|
+
function v(A, R) {
|
8349
8349
|
return u(R) || /^[A-Z]*$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidUpperLetter"));
|
8350
8350
|
}
|
8351
|
-
function g(
|
8351
|
+
function g(A, R) {
|
8352
8352
|
return u(R) || /^[a-z]*$/.test(R) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLowerLetter"));
|
8353
8353
|
}
|
8354
|
-
function m(
|
8354
|
+
function m(A, R) {
|
8355
8355
|
if (u(R))
|
8356
8356
|
return Promise.resolve();
|
8357
8357
|
try {
|
@@ -8361,34 +8361,34 @@ function _useFormRules(e) {
|
|
8361
8361
|
}
|
8362
8362
|
return Promise.resolve();
|
8363
8363
|
}
|
8364
|
-
function p(
|
8364
|
+
function p(A, R) {
|
8365
8365
|
var V, y, C, F, B, I, D, P;
|
8366
8366
|
if (u(R))
|
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 O = Number(R);
|
8369
|
+
return !isNil((V = n.value) == null ? void 0 : V.min) && ((y = n.value) == null ? void 0 : y.min_include_flg) === 1 && O < ((C = n.value) == null ? void 0 : C.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGTE", [(F = n.value) == null ? void 0 : F.min])) : !isNil((B = n.value) == null ? void 0 : B.min) && ((I = n.value) == null ? void 0 : I.min_include_flg) !== 1 && O <= ((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(
|
8371
|
+
function T(A, R) {
|
8372
8372
|
var V, y, C, F, B, I, D, P;
|
8373
8373
|
if (u(R))
|
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 O = Number(R);
|
8376
|
+
return !isNil((V = n.value) == null ? void 0 : V.max) && ((y = n.value) == null ? void 0 : y.max_include_flg) === 1 && O > ((C = n.value) == null ? void 0 : C.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLTE", [(F = n.value) == null ? void 0 : F.max])) : !isNil((B = n.value) == null ? void 0 : B.max) && ((I = n.value) == null ? void 0 : I.max_include_flg) !== 1 && O >= ((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(
|
8378
|
+
function E(A, R) {
|
8379
8379
|
var V, y, C;
|
8380
|
-
const
|
8381
|
-
return !isNil((V = n.value) == null ? void 0 : V.min_length) &&
|
8380
|
+
const O = String(R);
|
8381
|
+
return !isNil((V = n.value) == null ? void 0 : V.min_length) && O.length < ((y = n.value) == null ? void 0 : y.min_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMinLength", [(C = n.value) == null ? void 0 : C.min_length])) : Promise.resolve();
|
8382
8382
|
}
|
8383
|
-
function k(
|
8383
|
+
function k(A, R) {
|
8384
8384
|
var V, y, C;
|
8385
|
-
const
|
8386
|
-
return !isNil((V = n.value) == null ? void 0 : V.max_length) &&
|
8385
|
+
const O = String(R);
|
8386
|
+
return !isNil((V = n.value) == null ? void 0 : V.max_length) && O.length > ((y = n.value) == null ? void 0 : y.max_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMaxLength", [(C = n.value) == null ? void 0 : C.max_length])) : Promise.resolve();
|
8387
8387
|
}
|
8388
|
-
function N(
|
8388
|
+
function N(A, R) {
|
8389
8389
|
var C;
|
8390
|
-
const
|
8391
|
-
return V ? new RegExp(V).test(
|
8390
|
+
const O = String(R), V = String((C = n.value) == null ? void 0 : C.regular_expression);
|
8391
|
+
return V ? new RegExp(V).test(O) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForRegularExpression", [V])) : Promise.resolve();
|
8392
8392
|
}
|
8393
8393
|
return {
|
8394
8394
|
formRules: l,
|
@@ -8452,23 +8452,23 @@ 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, A;
|
8456
8456
|
let k = E;
|
8457
8457
|
if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
|
8458
|
-
let R = E.slice(1, -1),
|
8458
|
+
let R = E.slice(1, -1), O = "";
|
8459
8459
|
if (R.includes(".")) {
|
8460
8460
|
const V = R.split(".");
|
8461
|
-
R = V[0],
|
8461
|
+
R = V[0], O = V[1];
|
8462
8462
|
}
|
8463
|
-
n.value && R in n.value && (
|
8463
|
+
n.value && R in n.value && (O ? k = (A = (N = n.value[`${R}_obj`]) == null ? void 0 : N[O]) != null ? A : void 0 : k = n.value[R], 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 A, R, O, V, y, C, F, B, I, D, P, M, L;
|
8470
8470
|
let p = ref([]);
|
8471
|
-
const T = (
|
8471
|
+
const T = (A = s.value) == null ? void 0 : A.data_source_type, E = (O = (R = s.value) == null ? void 0 : R.val_clm) != null ? O : "", 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);
|
@@ -8550,10 +8550,10 @@ function useKgFormItemSelect(e) {
|
|
8550
8550
|
}
|
8551
8551
|
}
|
8552
8552
|
function m(p) {
|
8553
|
-
var k, N,
|
8553
|
+
var k, N, A, R, O;
|
8554
8554
|
if (!p)
|
8555
8555
|
return [];
|
8556
|
-
const T = (N = (k = s.value) == null ? void 0 : k.val_clm) != null ? N : "", E = (R = (
|
8556
|
+
const T = (N = (k = s.value) == null ? void 0 : k.val_clm) != null ? N : "", E = (R = (A = s.value) == null ? void 0 : A.val_data_type) != null ? R : 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,7 +8585,7 @@ 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 ((O = V.value) != null && O.excludeValues)
|
8589
8589
|
return p.filter((y) => {
|
8590
8590
|
var C;
|
8591
8591
|
return !((C = V.value.excludeValues) != null && C.includes(y[T]));
|
@@ -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((A) => A[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((A) => A[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;
|
@@ -8675,36 +8675,37 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8675
8675
|
});
|
8676
8676
|
}
|
8677
8677
|
return () => {
|
8678
|
+
var k;
|
8678
8679
|
let T, E;
|
8679
8680
|
return createVNode("div", {
|
8680
8681
|
class: "kg-form-item--checkbox-group"
|
8681
|
-
}, [createVNode(Form.ItemRest, null, {
|
8682
|
+
}, [((k = s.value) == null ? void 0 : k.isShowSelectAll) !== !1 && createVNode(Fragment, null, [createVNode(Form.ItemRest, null, {
|
8682
8683
|
default: () => [createVNode(Checkbox, {
|
8683
8684
|
checked: d.value,
|
8684
|
-
"onUpdate:checked": (
|
8685
|
+
"onUpdate:checked": (N) => d.value = N,
|
8685
8686
|
indeterminate: v.value,
|
8686
8687
|
onChange: m
|
8687
8688
|
}, _isSlot$e(T = r.t("kg.selectAll")) ? T : {
|
8688
8689
|
default: () => [T]
|
8689
8690
|
})]
|
8690
|
-
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
8691
|
+
}), createVNode(Divider, null, null)]), createVNode(Checkbox.Group, {
|
8691
8692
|
value: e.value,
|
8692
8693
|
"onUpdate:value": p
|
8693
8694
|
}, {
|
8694
8695
|
default: () => [createVNode(Row, {
|
8695
8696
|
gutter: 12
|
8696
|
-
}, _isSlot$e(E = c.value.map((
|
8697
|
-
var
|
8697
|
+
}, _isSlot$e(E = c.value.map((N) => {
|
8698
|
+
var A, R;
|
8698
8699
|
return createVNode(Col, {
|
8699
|
-
span: (
|
8700
|
+
span: (R = (A = s.value) == null ? void 0 : A.span) != null ? R : 24
|
8700
8701
|
}, {
|
8701
8702
|
default: () => [createVNode(Checkbox, {
|
8702
|
-
"kg-value":
|
8703
|
-
value:
|
8703
|
+
"kg-value": N[u.value],
|
8704
|
+
value: N[u.value]
|
8704
8705
|
}, {
|
8705
8706
|
default: () => {
|
8706
|
-
var
|
8707
|
-
return [
|
8707
|
+
var O, V;
|
8708
|
+
return [N[(V = (O = l.value) == null ? void 0 : O.lbl_clm) != null ? V : ""]];
|
8708
8709
|
}
|
8709
8710
|
})]
|
8710
8711
|
});
|
@@ -9052,7 +9053,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9052
9053
|
switch (await d(), a("kgSelectDatasChange", _.value), e.kgMode) {
|
9053
9054
|
case "multiple": {
|
9054
9055
|
if (Array.isArray(e.value)) {
|
9055
|
-
const k = e.value.filter((N) => _.value.find((
|
9056
|
+
const k = e.value.filter((N) => _.value.find((A) => A[o.value] === N));
|
9056
9057
|
k.length > 0 ? a("update:value", k) : a("update:value", []);
|
9057
9058
|
}
|
9058
9059
|
break;
|
@@ -9063,7 +9064,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9063
9064
|
}
|
9064
9065
|
}
|
9065
9066
|
async function p(E) {
|
9066
|
-
var k, N,
|
9067
|
+
var k, N, A, R, O, V;
|
9067
9068
|
switch (e.kgMode) {
|
9068
9069
|
case "multiple": {
|
9069
9070
|
if (Array.isArray(E)) {
|
@@ -9079,7 +9080,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9079
9080
|
model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
9080
9081
|
rows: y,
|
9081
9082
|
values: E,
|
9082
|
-
var_nam: (
|
9083
|
+
var_nam: (A = e.kgVarName) != null ? A : ""
|
9083
9084
|
}), r.value[`${e.kgVarName}_obj`] = y;
|
9084
9085
|
}
|
9085
9086
|
break;
|
@@ -9087,7 +9088,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9087
9088
|
default: {
|
9088
9089
|
const y = (R = toRaw(_.value.find((C) => C[o.value] === E))) != null ? R : null;
|
9089
9090
|
a("kgSelectChange", y), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
9090
|
-
context: (
|
9091
|
+
context: (O = e.kgContext) != null ? O : KG_FORM_CONTEXT.SUBMIT,
|
9091
9092
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
9092
9093
|
isCopying: i.isCopying.value,
|
9093
9094
|
isCreating: i.isCreating.value,
|
@@ -9104,7 +9105,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9104
9105
|
}
|
9105
9106
|
}
|
9106
9107
|
function T(E) {
|
9107
|
-
var k, N,
|
9108
|
+
var k, N, A;
|
9108
9109
|
a("update:value", E), i.kgForm.store.emit(i.kgForm.formID, "change", {
|
9109
9110
|
context: (k = e.kgContext) != null ? k : KG_FORM_CONTEXT.SUBMIT,
|
9110
9111
|
isCopying: i.isCopying.value,
|
@@ -9113,7 +9114,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9113
9114
|
isUpdating: i.isUpdating.value,
|
9114
9115
|
value: E,
|
9115
9116
|
varName: (N = e.kgVarName) != null ? N : "",
|
9116
|
-
variableName: (
|
9117
|
+
variableName: (A = e.kgVarName) != null ? A : ""
|
9117
9118
|
});
|
9118
9119
|
}
|
9119
9120
|
return () => {
|
@@ -9379,11 +9380,11 @@ const KgFormItem = defineComponent({
|
|
9379
9380
|
return I = Number(I), I;
|
9380
9381
|
}), T = computed(() => {
|
9381
9382
|
var M, L;
|
9382
|
-
const I = get(
|
9383
|
+
const I = get(O.value, "$el.parentElement");
|
9383
9384
|
if (I && !((M = I.classList) != null && M.contains("ant-row")))
|
9384
9385
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9385
9386
|
let D = {};
|
9386
|
-
const P = Math.abs(Number.parseInt((L = get(
|
9387
|
+
const P = Math.abs(Number.parseInt((L = get(O.value, "$el.parentElement.style.marginLeft")) != null ? L : "0px"));
|
9387
9388
|
return Number.isNaN(P) || (D = {
|
9388
9389
|
paddingLeft: `${P}px !important`,
|
9389
9390
|
paddingRight: `${P}px !important`
|
@@ -9463,7 +9464,7 @@ const KgFormItem = defineComponent({
|
|
9463
9464
|
}
|
9464
9465
|
}
|
9465
9466
|
return !0;
|
9466
|
-
}),
|
9467
|
+
}), A = computed(() => {
|
9467
9468
|
var I, D, P;
|
9468
9469
|
if (!((I = i.value) != null && I.tip))
|
9469
9470
|
return !1;
|
@@ -9481,7 +9482,7 @@ const KgFormItem = defineComponent({
|
|
9481
9482
|
}
|
9482
9483
|
}
|
9483
9484
|
return !1;
|
9484
|
-
}), R = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)),
|
9485
|
+
}), R = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), O = ref(null);
|
9485
9486
|
function V() {
|
9486
9487
|
return _.value ? null : createVNode(Form.Item, {
|
9487
9488
|
name: e.kgVarName,
|
@@ -9561,7 +9562,7 @@ const KgFormItem = defineComponent({
|
|
9561
9562
|
innerHTML: (M = (P = i.value) == null ? void 0 : P.tip) != null ? M : ""
|
9562
9563
|
}, null);
|
9563
9564
|
}
|
9564
|
-
})]),
|
9565
|
+
})]), A.value && createVNode("div", {
|
9565
9566
|
class: "tip",
|
9566
9567
|
innerHTML: (D = (I = i.value) == null ? void 0 : I.tip) != null ? D : ""
|
9567
9568
|
}, null)]) : null;
|
@@ -9595,7 +9596,7 @@ const KgFormItem = defineComponent({
|
|
9595
9596
|
"kg-var_name": e.kgVarName,
|
9596
9597
|
"kg-lkp_id": (D = s.value) == null ? void 0 : D.lkp_id,
|
9597
9598
|
"kg-ret_fld": (P = s.value) == null ? void 0 : P.ret_fld,
|
9598
|
-
ref:
|
9599
|
+
ref: O,
|
9599
9600
|
class: E.value,
|
9600
9601
|
span: m.value,
|
9601
9602
|
style: T.value
|
@@ -10023,11 +10024,11 @@ const getProps$B = () => ({
|
|
10023
10024
|
_useResizeObserver$1(T);
|
10024
10025
|
const {
|
10025
10026
|
title: E
|
10026
|
-
} = _useTitle(), k = computed(() => s.value ? SUBMIT_DEFAULT_MIN_WIDTH :
|
10027
|
-
getClass:
|
10027
|
+
} = _useTitle(), k = computed(() => s.value ? SUBMIT_DEFAULT_MIN_WIDTH : O.value), N = computed(() => k.value !== 0), {
|
10028
|
+
getClass: A,
|
10028
10029
|
getWrapClass: R
|
10029
10030
|
} = _useClass(e), {
|
10030
|
-
getDefaultWidth:
|
10031
|
+
getDefaultWidth: O
|
10031
10032
|
} = _useDefaultWidth(), V = computed(() => {
|
10032
10033
|
var q, H, G;
|
10033
10034
|
switch (i.kgSubmit.currentVarSubmitConfig$Layout.value) {
|
@@ -10522,7 +10523,7 @@ const getProps$B = () => ({
|
|
10522
10523
|
keyboard: !1,
|
10523
10524
|
destroyOnClose: !0,
|
10524
10525
|
width: k.value,
|
10525
|
-
class:
|
10526
|
+
class: A.value,
|
10526
10527
|
wrapClassName: R.value,
|
10527
10528
|
kgFullHeight: !1,
|
10528
10529
|
kgMinWidth: d.value,
|
@@ -13338,7 +13339,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13338
13339
|
}), !1)), n.kgTable.onBeforeSetDatas(async ({
|
13339
13340
|
datas: p
|
13340
13341
|
}) => (transformVarGridMasters(p.value), !1)), n.kgSubmit.onOpen(async () => {
|
13341
|
-
var T, E, k, N,
|
13342
|
+
var T, E, k, N, A, R, O;
|
13342
13343
|
const p = r.store.getSystemVarGridDetails(r.formID);
|
13343
13344
|
switch (i.value = p ? cloneDeep(toRaw(p)) : [], !0) {
|
13344
13345
|
case n.isCreating.value: {
|
@@ -13378,7 +13379,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13378
13379
|
}
|
13379
13380
|
switch (!0) {
|
13380
13381
|
case n.isCopying.value: {
|
13381
|
-
n.kgSubmit.formModel.value.grd_var_nam = ((
|
13382
|
+
n.kgSubmit.formModel.value.grd_var_nam = ((A = n.kgSubmit.formModel.value.grd_var_nam) != null ? A : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((O = (R = n.kgSubmit.formModel.value.grd_var_nam_dsc) != null ? R : n.kgSubmit.formModel.value.grd_var_nam) != null ? O : "") + "_COPY";
|
13382
13383
|
break;
|
13383
13384
|
}
|
13384
13385
|
}
|
@@ -13454,11 +13455,11 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13454
13455
|
selectedKeys: E,
|
13455
13456
|
disabled: k,
|
13456
13457
|
onItemSelectAll: N,
|
13457
|
-
onItemSelect:
|
13458
|
+
onItemSelect: A
|
13458
13459
|
}) => {
|
13459
|
-
const R = T.sort((
|
13460
|
+
const R = T.sort((O, V) => {
|
13460
13461
|
var y, C;
|
13461
|
-
return ((y =
|
13462
|
+
return ((y = O.srtseq) != null ? y : 0) - ((C = V.srtseq) != null ? C : 0);
|
13462
13463
|
});
|
13463
13464
|
return l.value = R, createVNode(Table, {
|
13464
13465
|
pagination: !1,
|
@@ -13471,17 +13472,17 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13471
13472
|
columns: p === "left" ? o() : u(),
|
13472
13473
|
rowKey: "id",
|
13473
13474
|
dataSource: R,
|
13474
|
-
customRow: (
|
13475
|
+
customRow: (O) => {
|
13475
13476
|
let V = {
|
13476
|
-
onClick: (y) => v(y,
|
13477
|
+
onClick: (y) => v(y, O, p, E)
|
13477
13478
|
};
|
13478
|
-
return p === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] =
|
13479
|
+
return p === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] = O.var_nam), V;
|
13479
13480
|
},
|
13480
13481
|
rowSelection: d({
|
13481
13482
|
disabled: k,
|
13482
13483
|
selectedKeys: E,
|
13483
13484
|
onItemSelectAll: N,
|
13484
|
-
onItemSelect:
|
13485
|
+
onItemSelect: A
|
13485
13486
|
})
|
13486
13487
|
}, null);
|
13487
13488
|
}
|
@@ -13497,16 +13498,16 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
13497
13498
|
getCheckboxProps: (N) => ({
|
13498
13499
|
disabled: p || N.disabled
|
13499
13500
|
}),
|
13500
|
-
onSelectAll(N,
|
13501
|
-
const R =
|
13502
|
-
key:
|
13503
|
-
}) =>
|
13501
|
+
onSelectAll(N, A) {
|
13502
|
+
const R = A.filter((O) => !O.disabled).map(({
|
13503
|
+
key: O
|
13504
|
+
}) => O);
|
13504
13505
|
E(R, N);
|
13505
13506
|
},
|
13506
13507
|
onSelect({
|
13507
13508
|
key: N
|
13508
|
-
},
|
13509
|
-
k(N,
|
13509
|
+
}, A) {
|
13510
|
+
k(N, A);
|
13510
13511
|
},
|
13511
13512
|
selectedRowKeys: T,
|
13512
13513
|
columnWidth: 32
|
@@ -13725,7 +13726,7 @@ const getProps$w = () => ({
|
|
13725
13726
|
slots: t,
|
13726
13727
|
emit: a
|
13727
13728
|
}) {
|
13728
|
-
var
|
13729
|
+
var O, V, y, C, F;
|
13729
13730
|
const r = useKg(), n = useKgVar(), {
|
13730
13731
|
filterVarGridDetailByKey: i
|
13731
13732
|
} = _useServices(), s = ref([]), l = computed(() => s.value.includes("1")), o = ref(""), u = computed(() => n.kgTable.store.getRowHeight(n.formID)), c = ref({
|
@@ -13733,7 +13734,7 @@ const getProps$w = () => ({
|
|
13733
13734
|
}), _ = ref({
|
13734
13735
|
visible: !1
|
13735
13736
|
}), d = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled), v = ref(null);
|
13736
|
-
_useObserveMenuItemColumns(l), ((F = (C = (y = (V = (
|
13737
|
+
_useObserveMenuItemColumns(l), ((F = (C = (y = (V = (O = r.option.value) == null ? void 0 : O.KgTable) == null ? void 0 : V.Setting) == null ? void 0 : y.columns) == null ? void 0 : C.dragToSort) == null ? void 0 : F.isOn) === !0 && _useDragToSortRow$1({
|
13737
13738
|
columnsRef: v
|
13738
13739
|
}), watch(l, (B) => {
|
13739
13740
|
B || (o.value = "");
|
@@ -13891,7 +13892,7 @@ const getProps$w = () => ({
|
|
13891
13892
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13892
13893
|
});
|
13893
13894
|
}
|
13894
|
-
function
|
13895
|
+
function A() {
|
13895
13896
|
return createVNode(Menu.SubMenu, {
|
13896
13897
|
key: "other",
|
13897
13898
|
title: r.t("kg.KgTable.other"),
|
@@ -13942,7 +13943,7 @@ const getProps$w = () => ({
|
|
13942
13943
|
"onUpdate:openKeys": (B) => s.value = B,
|
13943
13944
|
selectable: !1
|
13944
13945
|
}, {
|
13945
|
-
default: () => [E(), N(), k(),
|
13946
|
+
default: () => [E(), N(), k(), A(), R()]
|
13946
13947
|
})
|
13947
13948
|
}), c.value.visible && createVNode(KgTableSettingConfigModal, {
|
13948
13949
|
visible: c.value.visible,
|
@@ -14158,7 +14159,7 @@ const getProps$v = () => ({
|
|
14158
14159
|
popupClassName: "kg-table--header-cell--context-menu--align--submenu-popup"
|
14159
14160
|
}, {
|
14160
14161
|
default: () => {
|
14161
|
-
var k, N,
|
14162
|
+
var k, N, A;
|
14162
14163
|
let p, T, E;
|
14163
14164
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
14164
14165
|
key: "L",
|
@@ -14188,7 +14189,7 @@ const getProps$v = () => ({
|
|
14188
14189
|
default: () => [T]
|
14189
14190
|
}), createVNode(Menu.Item, {
|
14190
14191
|
key: "H",
|
14191
|
-
class: ((
|
14192
|
+
class: ((A = n.value) == null ? void 0 : A.align) === KG__VAR_GRID_DETAIL__ALIGN.RIGHT ? "selected" : "",
|
14192
14193
|
onClick: () => {
|
14193
14194
|
a.kgTable.patchVarGridDetail({
|
14194
14195
|
varName: r.value,
|
@@ -14675,12 +14676,12 @@ function _useColumns(e) {
|
|
14675
14676
|
}) => k + 1
|
14676
14677
|
}, ...(E = g == null ? void 0 : g.map((k, N) => {
|
14677
14678
|
var D, P, M;
|
14678
|
-
const
|
14679
|
+
const A = k.var_nam;
|
14679
14680
|
function R() {
|
14680
14681
|
return k.width === "auto" ? "auto" : Number(k.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
14681
14682
|
}
|
14682
|
-
function
|
14683
|
-
return a.t(
|
14683
|
+
function O() {
|
14684
|
+
return a.t(A).value;
|
14684
14685
|
}
|
14685
14686
|
function V() {
|
14686
14687
|
if (k.fix_left_flg === 1)
|
@@ -14698,21 +14699,21 @@ function _useColumns(e) {
|
|
14698
14699
|
return uniqBy(_.map((X) => {
|
14699
14700
|
var te;
|
14700
14701
|
return {
|
14701
|
-
value: (te = X == null ? void 0 : X[
|
14702
|
+
value: (te = X == null ? void 0 : X[A]) != null ? te : "",
|
14702
14703
|
text: r({
|
14703
14704
|
column: {
|
14704
|
-
dataIndex:
|
14705
|
+
dataIndex: A
|
14705
14706
|
},
|
14706
14707
|
index: N,
|
14707
14708
|
record: X,
|
14708
|
-
value: X == null ? void 0 : X[
|
14709
|
+
value: X == null ? void 0 : X[A]
|
14709
14710
|
}, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
|
14710
14711
|
};
|
14711
14712
|
}), "value");
|
14712
14713
|
}
|
14713
14714
|
function F() {
|
14714
14715
|
var L, w, x;
|
14715
|
-
return ((w = (L = c.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : w.on) !== !0 ? null : ((x = n.value) == null ? void 0 : x[
|
14716
|
+
return ((w = (L = c.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : w.on) !== !0 ? null : ((x = n.value) == null ? void 0 : x[A]) || null;
|
14716
14717
|
}
|
14717
14718
|
function B() {
|
14718
14719
|
return ["left", "center", "right"].includes(k.align || "") ? k.align : "left";
|
@@ -14721,21 +14722,21 @@ function _useColumns(e) {
|
|
14721
14722
|
switch (k.ord) {
|
14722
14723
|
case 0:
|
14723
14724
|
(!i.value.field || !i.value.order) && (i.value = {
|
14724
|
-
field:
|
14725
|
+
field: A,
|
14725
14726
|
order: "ascend"
|
14726
14727
|
});
|
14727
14728
|
break;
|
14728
14729
|
case 1:
|
14729
14730
|
(!i.value.field || !i.value.order) && (i.value = {
|
14730
|
-
field:
|
14731
|
+
field: A,
|
14731
14732
|
order: "descend"
|
14732
14733
|
});
|
14733
14734
|
break;
|
14734
14735
|
}
|
14735
14736
|
return {
|
14736
|
-
key:
|
14737
|
-
dataIndex:
|
14738
|
-
title:
|
14737
|
+
key: A,
|
14738
|
+
dataIndex: A,
|
14739
|
+
title: O(),
|
14739
14740
|
width: I,
|
14740
14741
|
resizable: typeof I == "number",
|
14741
14742
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
@@ -14743,24 +14744,24 @@ function _useColumns(e) {
|
|
14743
14744
|
align: B(),
|
14744
14745
|
fixed: V(),
|
14745
14746
|
sorter: y(),
|
14746
|
-
sortOrder: ((D = i.value) == null ? void 0 : D.field) ===
|
14747
|
+
sortOrder: ((D = i.value) == null ? void 0 : D.field) === A && (M = (P = i.value) == null ? void 0 : P.order) != null ? M : null,
|
14747
14748
|
filteredValue: F(),
|
14748
14749
|
filters: C(),
|
14749
|
-
onFilter: (L, w) => L === "" ? isNil(w == null ? void 0 : w[
|
14750
|
+
onFilter: (L, w) => L === "" ? isNil(w == null ? void 0 : w[A]) || (w == null ? void 0 : w[A]) === "" : (w == null ? void 0 : w[A]) === L,
|
14750
14751
|
customHeaderCell: () => ({
|
14751
14752
|
"kg-form_id": a.formID,
|
14752
|
-
"kg-var_name":
|
14753
|
+
"kg-var_name": A,
|
14753
14754
|
draggable: !0
|
14754
14755
|
}),
|
14755
14756
|
customCell: (L) => {
|
14756
14757
|
var W, X, te;
|
14757
14758
|
const w = L[a.kgTable.idKey.value], x = (W = a.kgTable.selectedRow.value) == null ? void 0 : W[a.kgTable.idKey.value], K = a.kgSubmit.currentVarSubmitConfig$DisplayType.value, U = (te = a.kgSubmit.getVarSubmitDetails({
|
14758
14759
|
buttonVarName: (X = a.kgButton.currentButton.value) == null ? void 0 : X.var_nam,
|
14759
|
-
varName:
|
14760
|
+
varName: A
|
14760
14761
|
})[0]) != null ? te : null;
|
14761
14762
|
return {
|
14762
14763
|
"kg-form_id": a.formID,
|
14763
|
-
"kg-var_name":
|
14764
|
+
"kg-var_name": A,
|
14764
14765
|
class: K === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE && w === x && !!U ? "submitting" : ""
|
14765
14766
|
};
|
14766
14767
|
}
|
@@ -15046,13 +15047,13 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15046
15047
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgTable) == null ? void 0 : Q.kgDisabled;
|
15047
15048
|
if (!isNil(e.kgDisabled))
|
15048
15049
|
return e.kgDisabled;
|
15049
|
-
}),
|
15050
|
+
}), A = computed(() => {
|
15050
15051
|
var G, $, Y, Q;
|
15051
15052
|
if (!isNil(($ = (G = r == null ? void 0 : r.value) == null ? void 0 : G.KgTable) == null ? void 0 : $.kgCheckboxDisabled))
|
15052
15053
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgTable) == null ? void 0 : Q.kgCheckboxDisabled;
|
15053
15054
|
if (!isNil(e.kgCheckboxDisabled))
|
15054
15055
|
return e.kgCheckboxDisabled;
|
15055
|
-
}), R = computed(() => !!N.value || d.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value),
|
15056
|
+
}), R = computed(() => !!N.value || d.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), O = computed(() => !!N.value || d.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || D.total === 0), V = computed(() => {
|
15056
15057
|
var G;
|
15057
15058
|
return !!((G = a == null ? void 0 : a.KgTable) != null && G.expandedRowRender);
|
15058
15059
|
}), y = computed(() => {
|
@@ -15069,7 +15070,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15069
15070
|
getCheckboxProps: (G) => {
|
15070
15071
|
var $;
|
15071
15072
|
return {
|
15072
|
-
disabled: !!N.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || !!(($ =
|
15073
|
+
disabled: !!N.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || !!(($ = A.value) != null && $.call(A, G))
|
15073
15074
|
};
|
15074
15075
|
},
|
15075
15076
|
onSelect: (G) => X(G),
|
@@ -15507,7 +15508,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
15507
15508
|
showSizeChanger: !0,
|
15508
15509
|
showQuickJumper: !1,
|
15509
15510
|
hideOnSinglePage: !1,
|
15510
|
-
disabled:
|
15511
|
+
disabled: O.value,
|
15511
15512
|
locale: {
|
15512
15513
|
page: ""
|
15513
15514
|
},
|
@@ -17700,24 +17701,24 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17700
17701
|
if ((m = n.kgTable.selectedRow.value) != null && m.id)
|
17701
17702
|
try {
|
17702
17703
|
n.kgSubmit.store.setIsLoading(n.formID, !0);
|
17703
|
-
const
|
17704
|
+
const A = await QueryByID({
|
17704
17705
|
params: {
|
17705
17706
|
id: n.kgTable.selectedRow.value.id
|
17706
17707
|
}
|
17707
17708
|
});
|
17708
|
-
i.value = i.value.map((
|
17709
|
+
i.value = i.value.map((O) => {
|
17709
17710
|
var y;
|
17710
|
-
const V = (y =
|
17711
|
+
const V = (y = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : y.find((C) => C.var_nam === O.var_nam);
|
17711
17712
|
return V ? {
|
17712
|
-
...
|
17713
|
+
...O,
|
17713
17714
|
...V,
|
17714
|
-
id:
|
17715
|
-
} :
|
17715
|
+
id: O.id
|
17716
|
+
} : O;
|
17716
17717
|
});
|
17717
|
-
const R = (T = (p =
|
17718
|
-
s.value = i.value.filter((
|
17719
|
-
} catch (
|
17720
|
-
throw
|
17718
|
+
const R = (T = (p = A == null ? void 0 : A.varProfileDetails) == null ? void 0 : p.map((O) => O.var_nam)) != null ? T : [];
|
17719
|
+
s.value = i.value.filter((O) => R.includes(O.var_nam)).map((O) => O.id);
|
17720
|
+
} catch (A) {
|
17721
|
+
throw A;
|
17721
17722
|
} finally {
|
17722
17723
|
n.kgSubmit.store.setIsLoading(n.formID, !1);
|
17723
17724
|
}
|
@@ -17802,27 +17803,27 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17802
17803
|
onItemSelectAll: E,
|
17803
17804
|
onItemSelect: k
|
17804
17805
|
}) => {
|
17805
|
-
var
|
17806
|
-
const N = m.sort((
|
17806
|
+
var A, R;
|
17807
|
+
const N = m.sort((O, V) => {
|
17807
17808
|
var y, C;
|
17808
|
-
return ((y =
|
17809
|
+
return ((y = O.srtseq) != null ? y : 0) - ((C = V.srtseq) != null ? C : 0);
|
17809
17810
|
});
|
17810
17811
|
return g === "right" && (l.value = N), createVNode(Table, {
|
17811
17812
|
pagination: !1,
|
17812
17813
|
class: "kg-flex-table",
|
17813
17814
|
size: "small",
|
17814
17815
|
scroll: {
|
17815
|
-
x: g === "left" ? "370px" : `${(((R = (
|
17816
|
+
x: g === "left" ? "370px" : `${(((R = (A = a.option.value.KgSearch) == null ? void 0 : A.dynamicQuery) == null ? void 0 : R.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
|
17816
17817
|
y: "auto"
|
17817
17818
|
},
|
17818
17819
|
columns: g === "left" ? leftVarProfileDetailColumns(t) : rightVarProfileDetailColumns(t),
|
17819
17820
|
rowKey: "id",
|
17820
17821
|
dataSource: N,
|
17821
|
-
customRow: (
|
17822
|
+
customRow: (O) => {
|
17822
17823
|
let V = {
|
17823
|
-
onClick: (y) => _(y,
|
17824
|
+
onClick: (y) => _(y, O, g, p)
|
17824
17825
|
};
|
17825
|
-
return g === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] =
|
17826
|
+
return g === "right" && (V["kg-host-frm_id"] = r.formID, V["kg-var_name"] = O.var_nam), V;
|
17826
17827
|
},
|
17827
17828
|
rowSelection: c({
|
17828
17829
|
disabled: T,
|
@@ -17845,9 +17846,9 @@ const getProps$l = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17845
17846
|
disabled: g || E.disabled
|
17846
17847
|
}),
|
17847
17848
|
onSelectAll(E, k) {
|
17848
|
-
const N = k.filter((
|
17849
|
-
key:
|
17850
|
-
}) =>
|
17849
|
+
const N = k.filter((A) => !A.disabled).map(({
|
17850
|
+
key: A
|
17851
|
+
}) => A);
|
17851
17852
|
p(N, E);
|
17852
17853
|
},
|
17853
17854
|
onSelect({
|
@@ -19224,10 +19225,10 @@ const LOCALE = {
|
|
19224
19225
|
params: {
|
19225
19226
|
frm_id: u
|
19226
19227
|
}
|
19227
|
-
}), N = (g = (v = ((c = k.varGridMasters) == null ? void 0 : c.find((
|
19228
|
-
i.value = uniq(compact((E = (T = (p = (m = k.varGridMasters) == null ? void 0 : m.find((
|
19228
|
+
}), N = (g = (v = ((c = k.varGridMasters) == null ? void 0 : c.find((A) => A.def_flg === 1)) || ((_ = k.varGridMasters) == null ? void 0 : _.find((A) => A.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((d = k.varGridMasters) == null ? void 0 : d.find(() => !0))) == null ? void 0 : v.id) != null ? g : null;
|
19229
|
+
i.value = uniq(compact((E = (T = (p = (m = k.varGridMasters) == null ? void 0 : m.find((A) => A.id === N)) == null ? void 0 : p.varGridDetails) == null ? void 0 : T.map((A) => {
|
19229
19230
|
var R;
|
19230
|
-
return (R =
|
19231
|
+
return (R = A.var_nam) != null ? R : "";
|
19231
19232
|
})) != null ? E : [])), r.store.patchVarPossibilityCommandParameter(r.formID, "ret_fld", {
|
19232
19233
|
__KG__TIMESTAMP__: Date.now()
|
19233
19234
|
});
|
@@ -20378,18 +20379,18 @@ const KgVarConfig$1 = "", KgVarConfig = defineComponent({
|
|
20378
20379
|
varConfigLookups: E,
|
20379
20380
|
varConfigPossibilities: k,
|
20380
20381
|
varConfigTips: N,
|
20381
|
-
varProfileConfig:
|
20382
|
+
varProfileConfig: A,
|
20382
20383
|
varProfileMasters: R,
|
20383
|
-
varGridConfig:
|
20384
|
+
varGridConfig: O,
|
20384
20385
|
varGridMasters: V,
|
20385
20386
|
varSubmitConfigs: y,
|
20386
20387
|
varSubmitDetails: C,
|
20387
20388
|
varVariables: F
|
20388
20389
|
} = await GetAll({ params: { frm_id: e } });
|
20389
|
-
this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e, F != null ? F : []), 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(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
20390
|
+
this.varDdaMap.set(e, _ != null ? _ : null), this.varVariableMap.set(e, F != null ? F : []), 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(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A)), this.varProfileMasterMap.set(e, {
|
20390
20391
|
varProfileMasters: transformVarProfileMasters(R),
|
20391
20392
|
currentVarProfileMasterID: (i = (n = (R == null ? void 0 : R.find((I) => I.id === this.getCurrentVarProfileMasterID(e))) || (R == null ? void 0 : R.find((I) => I.def_flg === 1)) || (R == null ? void 0 : R.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (R == null ? void 0 : R.find(() => !0))) == null ? void 0 : n.id) != null ? i : null
|
20392
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
20393
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(O)), this.varGridMasterMap.set(e, {
|
20393
20394
|
varGridMasters: transformVarGridMasters(V),
|
20394
20395
|
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
|
20395
20396
|
}), this.varChildDetailMap.set(e, transformVarChildDetails(g)), await Promise.all([
|
@@ -20748,8 +20749,8 @@ const KgVar = defineComponent({
|
|
20748
20749
|
}
|
20749
20750
|
});
|
20750
20751
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), l = computed(() => {
|
20751
|
-
var p, T, E, k, N,
|
20752
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = s.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((
|
20752
|
+
var p, T, E, k, N, A, R, O;
|
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 && ((A = (N = i.kgTable.selectedRows.value) == null ? void 0 : N.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((R = s.value) == null ? void 0 : R.permission_code) === 2 && !n.p((O = s.value) == null ? void 0 : O.permission_code)) : e.kgDisabled;
|
20753
20754
|
}), o = computed(() => !!i.isCreatingRequesting.value);
|
20754
20755
|
async function u() {
|
20755
20756
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -20791,13 +20792,13 @@ const KgVar = defineComponent({
|
|
20791
20792
|
return e.kgText ? e.kgText : n.t("kg.create");
|
20792
20793
|
}
|
20793
20794
|
function g() {
|
20794
|
-
var p, T, E, k, N,
|
20795
|
+
var p, T, E, k, N, A;
|
20795
20796
|
return createVNode(Button, {
|
20796
20797
|
"kg-id": (p = s.value) == null ? void 0 : p.id,
|
20797
20798
|
"kg-form_id": (T = s.value) == null ? void 0 : T.frm_id,
|
20798
20799
|
"kg-var_name": (E = s.value) == null ? void 0 : E.var_nam,
|
20799
20800
|
"kg-cmd": (k = s.value) == null ? void 0 : k.cmd,
|
20800
|
-
"kg-permission": (
|
20801
|
+
"kg-permission": (A = (N = s.value) == null ? void 0 : N.permission_code) != null ? A : "",
|
20801
20802
|
type: "primary",
|
20802
20803
|
disabled: l.value,
|
20803
20804
|
danger: e.kgColor === KG__VAR_BUTTON__COLOR.RED,
|
@@ -21041,8 +21042,8 @@ const KgVar = defineComponent({
|
|
21041
21042
|
...KgVarUtil.parseRequestParamsToJSON((T = (p = i.value) == null ? void 0 : p.cmd_prm) != null ? T : "")
|
21042
21043
|
}), g;
|
21043
21044
|
}), u = computed(() => {
|
21044
|
-
var g, m, p, T, E, k, N,
|
21045
|
-
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((
|
21045
|
+
var g, m, p, T, E, k, N, A;
|
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((A = i.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
|
21046
21047
|
}), c = ref(!1);
|
21047
21048
|
async function _(g) {
|
21048
21049
|
var m, p;
|
@@ -21262,7 +21263,7 @@ const KgVar = defineComponent({
|
|
21262
21263
|
}
|
21263
21264
|
let u = null;
|
21264
21265
|
const c = async () => {
|
21265
|
-
var m, p, T, E, k, N,
|
21266
|
+
var m, p, T, E, k, N, A, R, O;
|
21266
21267
|
u == null || u.showLoading(), a.store.setIsOtherRequesting(a.formID, !0);
|
21267
21268
|
const g = a.kgTable.selectedRows.value;
|
21268
21269
|
try {
|
@@ -21276,14 +21277,14 @@ const KgVar = defineComponent({
|
|
21276
21277
|
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (N = (k = e.kgButton) == null ? void 0 : k.var_nam) != null ? N : ""
|
21277
21278
|
}
|
21278
21279
|
});
|
21279
|
-
if (((
|
21280
|
+
if (((A = e.kgButton) == null ? void 0 : A.reload_all_after_done_flg) === 1) {
|
21280
21281
|
let F = !0;
|
21281
21282
|
((R = e.kgButton) == null ? void 0 : R.re_select_after_reload_flg) !== 0 && (F = !1, a.kgTable.onAfterRequest(async ({
|
21282
21283
|
datas: B
|
21283
21284
|
}) => {
|
21284
21285
|
const I = B.value, D = intersectionWith$1(I, g != null ? g : [], (P, M) => (P == null ? void 0 : P[a.kgTable.idKey.value]) === (M == null ? void 0 : M[a.kgTable.idKey.value]));
|
21285
21286
|
return D.length > 0 && a.kgTable.store.setSelectedRows(a.formID, D), !1;
|
21286
|
-
}, !0)), ((
|
21287
|
+
}, !0)), ((O = e.kgButton) == null ? void 0 : O.show_success_message_flg) !== 0 && message.success(t.t("kg.executeSuccess")), a.kgSearch.search({
|
21287
21288
|
isSearchFirstPage: F
|
21288
21289
|
});
|
21289
21290
|
}
|
@@ -21415,8 +21416,8 @@ const KgVar = defineComponent({
|
|
21415
21416
|
}
|
21416
21417
|
});
|
21417
21418
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), l = computed(() => {
|
21418
|
-
var p, T, E, k, N,
|
21419
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((p = s.value) == null ? void 0 : p.dis_no_select_flg) === 1 && ((E = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? E : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((
|
21419
|
+
var p, T, E, k, N, A, R, O;
|
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 && ((A = (N = i.kgTable.selectedRows.value) == null ? void 0 : N.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((R = s.value) == null ? void 0 : R.permission_code) === 2 && !n.p((O = s.value) == null ? void 0 : O.permission_code)) : e.kgDisabled;
|
21420
21421
|
}), o = computed(() => !!i.isUpdatingRequesting.value);
|
21421
21422
|
async function u() {
|
21422
21423
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -21458,13 +21459,13 @@ const KgVar = defineComponent({
|
|
21458
21459
|
return e.kgText ? e.kgText : n.t("kg.update");
|
21459
21460
|
}
|
21460
21461
|
function g() {
|
21461
|
-
var p, T, E, k, N,
|
21462
|
+
var p, T, E, k, N, A;
|
21462
21463
|
return createVNode(Button, {
|
21463
21464
|
"kg-id": (p = s.value) == null ? void 0 : p.id,
|
21464
21465
|
"kg-form_id": (T = s.value) == null ? void 0 : T.frm_id,
|
21465
21466
|
"kg-var_name": (E = s.value) == null ? void 0 : E.var_nam,
|
21466
21467
|
"kg-cmd": (k = s.value) == null ? void 0 : k.cmd,
|
21467
|
-
"kg-permission": (
|
21468
|
+
"kg-permission": (A = (N = s.value) == null ? void 0 : N.permission_code) != null ? A : "",
|
21468
21469
|
type: "primary",
|
21469
21470
|
disabled: l.value,
|
21470
21471
|
ghost: !e.kgPrimary && !l.value,
|
@@ -22184,7 +22185,7 @@ const getProps$a = () => ({
|
|
22184
22185
|
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);
|
22185
22186
|
}), 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({
|
22186
22187
|
visible: !1
|
22187
|
-
}), N = computed(() => v.value.kgHeight === d.value),
|
22188
|
+
}), N = computed(() => v.value.kgHeight === d.value), A = computed(() => {
|
22188
22189
|
var W;
|
22189
22190
|
if (!n.kgButton.searchButton.value)
|
22190
22191
|
return;
|
@@ -22201,7 +22202,7 @@ const getProps$a = () => ({
|
|
22201
22202
|
default:
|
22202
22203
|
return !0;
|
22203
22204
|
}
|
22204
|
-
}),
|
22205
|
+
}), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value)), V = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), y = computed(() => {
|
22205
22206
|
let K = "kg-search";
|
22206
22207
|
return i.value && (K += " kg-search--visible"), K;
|
22207
22208
|
}), C = computed(() => {
|
@@ -22336,7 +22337,7 @@ const getProps$a = () => ({
|
|
22336
22337
|
kgType: KG__VAR_BUTTON__TYPE.SEARCH,
|
22337
22338
|
kgVarName: (K = n.kgButton.searchButton.value) == null ? void 0 : K.var_nam,
|
22338
22339
|
kgIcon: (U = n.kgButton.searchButton.value) == null ? void 0 : U.icon,
|
22339
|
-
kgText:
|
22340
|
+
kgText: A.value,
|
22340
22341
|
kgColor: (W = n.kgButton.searchButton.value) == null ? void 0 : W.color,
|
22341
22342
|
kgPrimary: R.value,
|
22342
22343
|
kgDisabled: p.value,
|
@@ -22396,7 +22397,7 @@ const getProps$a = () => ({
|
|
22396
22397
|
}, [createVNode("div", {
|
22397
22398
|
class: "ant-collapse-header"
|
22398
22399
|
}, [createVNode(Spin, {
|
22399
|
-
spinning:
|
22400
|
+
spinning: O.value
|
22400
22401
|
}, {
|
22401
22402
|
default: () => [P(), createVNode("div", {
|
22402
22403
|
class: "ant-collapse-extra"
|
@@ -23342,25 +23343,25 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23342
23343
|
customRender: ({
|
23343
23344
|
record: N
|
23344
23345
|
}) => {
|
23345
|
-
var R,
|
23346
|
-
const
|
23347
|
-
return createVNode("div", null, [createVNode("div", null, [(R =
|
23346
|
+
var R, O, V;
|
23347
|
+
const A = N;
|
23348
|
+
return createVNode("div", null, [createVNode("div", null, [(R = A.whDsc) != null ? R : " ", createTextVNode(" - "), (O = A.whId) != null ? O : " "]), createVNode("div", {
|
23348
23349
|
class: "address"
|
23349
|
-
}, [(V =
|
23350
|
+
}, [(V = A.adrnam) != null ? V : " "])]);
|
23350
23351
|
}
|
23351
23352
|
}]), u = ref([]), c = computed(() => {
|
23352
|
-
var
|
23353
|
-
const N = (
|
23353
|
+
var A;
|
23354
|
+
const N = (A = i.value) == null ? void 0 : A.toUpperCase();
|
23354
23355
|
return u.value.filter((R) => {
|
23355
|
-
var
|
23356
|
-
return ((V = (
|
23356
|
+
var O, V, y, C, F, B;
|
23357
|
+
return ((V = (O = R.whDsc) == null ? void 0 : O.toUpperCase()) == null ? void 0 : V.includes(N)) || ((C = (y = R.whId) == null ? void 0 : y.toUpperCase()) == null ? void 0 : C.includes(N)) || ((B = (F = R.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : B.includes(N));
|
23357
23358
|
});
|
23358
23359
|
}), _ = computed(() => {
|
23359
23360
|
var N;
|
23360
23361
|
return ((N = a.option.value.KgWarehouse) == null ? void 0 : N.on) !== !1;
|
23361
23362
|
}), d = computed(() => {
|
23362
|
-
var N,
|
23363
|
-
return (
|
23363
|
+
var N, A, R, O;
|
23364
|
+
return (O = (R = (A = (N = a.store).getUseUserStore) == null ? void 0 : A.call(N)) == null ? void 0 : R.getUserWarehouses) != null ? O : [];
|
23364
23365
|
});
|
23365
23366
|
watch(r.visible, (N) => {
|
23366
23367
|
!_.value || (N ? g() : m());
|
@@ -23403,9 +23404,9 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23403
23404
|
pageSize: 999
|
23404
23405
|
}
|
23405
23406
|
});
|
23406
|
-
u.value = (N != null ? N : []).filter((
|
23407
|
+
u.value = (N != null ? N : []).filter((A) => {
|
23407
23408
|
var R;
|
23408
|
-
return KgAuthUtil.isAdminUser() ? !0 : (R = d.value) == null ? void 0 : R.find((
|
23409
|
+
return KgAuthUtil.isAdminUser() ? !0 : (R = d.value) == null ? void 0 : R.find((O) => O.wh_id === A.whId);
|
23409
23410
|
});
|
23410
23411
|
} catch (N) {
|
23411
23412
|
console.error(N);
|
@@ -23413,14 +23414,14 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23413
23414
|
l.value = !1;
|
23414
23415
|
}
|
23415
23416
|
}
|
23416
|
-
function E(N,
|
23417
|
+
function E(N, A) {
|
23417
23418
|
var R;
|
23418
23419
|
switch (N.detail) {
|
23419
23420
|
case 1:
|
23420
|
-
((R = s.value) == null ? void 0 : R.whId) ===
|
23421
|
+
((R = s.value) == null ? void 0 : R.whId) === A.whId ? s.value = null : s.value = A;
|
23421
23422
|
break;
|
23422
23423
|
case 2:
|
23423
|
-
s.value =
|
23424
|
+
s.value = A, p();
|
23424
23425
|
break;
|
23425
23426
|
}
|
23426
23427
|
}
|
@@ -23430,8 +23431,8 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23430
23431
|
placement: "bottomRight"
|
23431
23432
|
}, {
|
23432
23433
|
default: () => {
|
23433
|
-
var N,
|
23434
|
-
return [((N = r.warehouse.value) == null ? void 0 : N.whDsc) || ((
|
23434
|
+
var N, A;
|
23435
|
+
return [((N = r.warehouse.value) == null ? void 0 : N.whDsc) || ((A = r.warehouse.value) == null ? void 0 : A.whId) || a.t("kg.KgWarehouse.selectWarehouse")];
|
23435
23436
|
}
|
23436
23437
|
}), createVNode(KgModal, {
|
23437
23438
|
visible: r.visible.value,
|
@@ -23473,9 +23474,9 @@ const KgWarehouse$1 = "", getProps$9 = () => ({
|
|
23473
23474
|
columns: o,
|
23474
23475
|
class: "kg-flex-table",
|
23475
23476
|
customRow: (N) => {
|
23476
|
-
var
|
23477
|
+
var A;
|
23477
23478
|
return {
|
23478
|
-
class: N.whId === ((
|
23479
|
+
class: N.whId === ((A = s.value) == null ? void 0 : A.whId) ? "selected" : "",
|
23479
23480
|
onClick: (R) => E(R, N)
|
23480
23481
|
};
|
23481
23482
|
}
|
@@ -23546,7 +23547,7 @@ function httpClient() {
|
|
23546
23547
|
throw new Error("\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
|
23547
23548
|
let T = {};
|
23548
23549
|
n.method === "GET" || n.method === "POST" && !n.data && n.params ? T = n.params : n.method === "POST" && n.data && (T = n.data);
|
23549
|
-
const { sql: E, whereSql: k, orderBySql: N, offsetSql:
|
23550
|
+
const { sql: E, whereSql: k, orderBySql: N, offsetSql: A, operatorJSON: R } = KgVarUtil.getQueryHeaders({
|
23550
23551
|
$dayjs: i == null ? void 0 : i.dayjs,
|
23551
23552
|
dynamicQueryOperatorModel: i == null ? void 0 : i.dynamicQueryOperatorModel,
|
23552
23553
|
formID: null,
|
@@ -23556,7 +23557,7 @@ function httpClient() {
|
|
23556
23557
|
n.headers = {
|
23557
23558
|
...(v = n.headers) != null ? v : {},
|
23558
23559
|
[l]: !0,
|
23559
|
-
[c]:
|
23560
|
+
[c]: A,
|
23560
23561
|
[d]: R,
|
23561
23562
|
[u]: N,
|
23562
23563
|
[_]: E,
|
@@ -24265,7 +24266,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24265
24266
|
grp_nam: "WMS"
|
24266
24267
|
}));
|
24267
24268
|
}
|
24268
|
-
function
|
24269
|
+
function A(C) {
|
24269
24270
|
n.value.varSubmitDetails = C.map((F) => ({
|
24270
24271
|
...F,
|
24271
24272
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
@@ -24279,7 +24280,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24279
24280
|
var F, B, I;
|
24280
24281
|
return C && (I = (B = (F = n.value.varConfigDescriptions) == null ? void 0 : F.find((D) => D.var_nam === C)) == null ? void 0 : B.var_text) != null ? I : "";
|
24281
24282
|
}
|
24282
|
-
function
|
24283
|
+
function O() {
|
24283
24284
|
var C;
|
24284
24285
|
n.value = {
|
24285
24286
|
frmId: "",
|
@@ -24383,7 +24384,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24383
24384
|
});
|
24384
24385
|
t.value = C != null ? C : [], V();
|
24385
24386
|
}
|
24386
|
-
return
|
24387
|
+
return O(), y(), {
|
24387
24388
|
createVarButton: m,
|
24388
24389
|
updateVarConfigDescription: E,
|
24389
24390
|
createVarDdaQuery: n,
|
@@ -24394,7 +24395,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24394
24395
|
getResultSetMetadataColumns: s,
|
24395
24396
|
getVarButtons: u,
|
24396
24397
|
getVarText: R,
|
24397
|
-
initCreateVarDdaQuery:
|
24398
|
+
initCreateVarDdaQuery: O,
|
24398
24399
|
isLoading: a,
|
24399
24400
|
patchSysPermission: v,
|
24400
24401
|
patchVarButton: p,
|
@@ -24404,7 +24405,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
24404
24405
|
setResultSetMetadataColumns: _,
|
24405
24406
|
setVarGridDetails: N,
|
24406
24407
|
setVarProfileDetails: k,
|
24407
|
-
setVarSubmitDetails:
|
24408
|
+
setVarSubmitDetails: A,
|
24408
24409
|
updateVarDda: g
|
24409
24410
|
};
|
24410
24411
|
});
|
@@ -25163,9 +25164,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25163
25164
|
disabled: g || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
25164
25165
|
}),
|
25165
25166
|
onSelectAll(E, k) {
|
25166
|
-
const N = k.filter((
|
25167
|
-
key:
|
25168
|
-
}) =>
|
25167
|
+
const N = k.filter((A) => !A.disabled).map(({
|
25168
|
+
key: A
|
25169
|
+
}) => A);
|
25169
25170
|
p(N, E);
|
25170
25171
|
},
|
25171
25172
|
onSelect(E, k) {
|
@@ -25232,11 +25233,11 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25232
25233
|
onItemSelectAll: E,
|
25233
25234
|
onItemSelect: k
|
25234
25235
|
}) => {
|
25235
|
-
const N = m.sort((
|
25236
|
-
var
|
25237
|
-
return ((
|
25236
|
+
const N = m.sort((A, R) => {
|
25237
|
+
var O, V;
|
25238
|
+
return ((O = A.srtseq) != null ? O : 0) - ((V = R.srtseq) != null ? V : 0);
|
25238
25239
|
});
|
25239
|
-
return g === "right" && (s.value = N, N.find((
|
25240
|
+
return g === "right" && (s.value = N, N.find((A) => A.id === __KG__CREATE_ROW_ID__) || N.push({
|
25240
25241
|
id: __KG__CREATE_ROW_ID__,
|
25241
25242
|
direction: "right",
|
25242
25243
|
disabled: !0
|
@@ -25251,8 +25252,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25251
25252
|
columns: g === "left" ? l() : o(),
|
25252
25253
|
rowKey: "id",
|
25253
25254
|
dataSource: N,
|
25254
|
-
customRow: (
|
25255
|
-
onClick: (
|
25255
|
+
customRow: (A) => ({
|
25256
|
+
onClick: (O) => d(O, A, g, p)
|
25256
25257
|
}),
|
25257
25258
|
rowSelection: _({
|
25258
25259
|
disabled: T,
|
@@ -25406,9 +25407,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25406
25407
|
disabled: g || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
25407
25408
|
}),
|
25408
25409
|
onSelectAll(E, k) {
|
25409
|
-
const N = k.filter((
|
25410
|
-
key:
|
25411
|
-
}) =>
|
25410
|
+
const N = k.filter((A) => !A.disabled).map(({
|
25411
|
+
key: A
|
25412
|
+
}) => A);
|
25412
25413
|
p(N, E);
|
25413
25414
|
},
|
25414
25415
|
onSelect(E, k) {
|
@@ -25474,11 +25475,11 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25474
25475
|
onItemSelectAll: E,
|
25475
25476
|
onItemSelect: k
|
25476
25477
|
}) => {
|
25477
|
-
const N = m.sort((
|
25478
|
-
var
|
25479
|
-
return ((
|
25478
|
+
const N = m.sort((A, R) => {
|
25479
|
+
var O, V;
|
25480
|
+
return ((O = A.srtseq) != null ? O : 0) - ((V = R.srtseq) != null ? V : 0);
|
25480
25481
|
});
|
25481
|
-
return g === "right" && (s.value = N, N.find((
|
25482
|
+
return g === "right" && (s.value = N, N.find((A) => A.id === __KG__CREATE_ROW_ID__) || N.push({
|
25482
25483
|
id: __KG__CREATE_ROW_ID__,
|
25483
25484
|
direction: "right",
|
25484
25485
|
disabled: !0
|
@@ -25493,8 +25494,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25493
25494
|
columns: g === "left" ? l() : o(),
|
25494
25495
|
rowKey: "id",
|
25495
25496
|
dataSource: N,
|
25496
|
-
customRow: (
|
25497
|
-
onClick: (
|
25497
|
+
customRow: (A) => ({
|
25498
|
+
onClick: (O) => d(O, A, g, p)
|
25498
25499
|
}),
|
25499
25500
|
rowSelection: _({
|
25500
25501
|
disabled: T,
|
@@ -25647,9 +25648,9 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25647
25648
|
disabled: g || E.disabled || typeof E.id == "string" && E.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
25648
25649
|
}),
|
25649
25650
|
onSelectAll(E, k) {
|
25650
|
-
const N = k.filter((
|
25651
|
-
key:
|
25652
|
-
}) =>
|
25651
|
+
const N = k.filter((A) => !A.disabled).map(({
|
25652
|
+
key: A
|
25653
|
+
}) => A);
|
25653
25654
|
p(N, E);
|
25654
25655
|
},
|
25655
25656
|
onSelect(E, k) {
|
@@ -25715,11 +25716,11 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25715
25716
|
onItemSelectAll: E,
|
25716
25717
|
onItemSelect: k
|
25717
25718
|
}) => {
|
25718
|
-
const N = m.sort((
|
25719
|
-
var
|
25720
|
-
return ((
|
25719
|
+
const N = m.sort((A, R) => {
|
25720
|
+
var O, V;
|
25721
|
+
return ((O = A.srtseq) != null ? O : 0) - ((V = R.srtseq) != null ? V : 0);
|
25721
25722
|
});
|
25722
|
-
return g === "right" && (s.value = N, N.find((
|
25723
|
+
return g === "right" && (s.value = N, N.find((A) => A.id === __KG__CREATE_ROW_ID__) || N.push({
|
25723
25724
|
id: __KG__CREATE_ROW_ID__,
|
25724
25725
|
direction: "right",
|
25725
25726
|
disabled: !0
|
@@ -25734,8 +25735,8 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25734
25735
|
columns: g === "left" ? l() : o(),
|
25735
25736
|
rowKey: "id",
|
25736
25737
|
dataSource: N,
|
25737
|
-
customRow: (
|
25738
|
-
onClick: (
|
25738
|
+
customRow: (A) => ({
|
25739
|
+
onClick: (O) => d(O, A, g, p)
|
25739
25740
|
}),
|
25740
25741
|
rowSelection: _({
|
25741
25742
|
disabled: T,
|
@@ -25766,7 +25767,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25766
25767
|
n.value !== 1 && (n.value -= 1);
|
25767
25768
|
}
|
25768
25769
|
async function T() {
|
25769
|
-
var N,
|
25770
|
+
var N, A, R, O, V;
|
25770
25771
|
switch (n.value) {
|
25771
25772
|
case 1:
|
25772
25773
|
try {
|
@@ -25776,7 +25777,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25776
25777
|
break;
|
25777
25778
|
case 2:
|
25778
25779
|
try {
|
25779
|
-
await ((
|
25780
|
+
await ((A = _.value) == null ? void 0 : A.onSubmit()), n.value += 1;
|
25780
25781
|
} catch {
|
25781
25782
|
}
|
25782
25783
|
break;
|
@@ -25788,7 +25789,7 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25788
25789
|
break;
|
25789
25790
|
case 4:
|
25790
25791
|
try {
|
25791
|
-
await ((
|
25792
|
+
await ((O = v.value) == null ? void 0 : O.onSubmit()), n.value += 1;
|
25792
25793
|
} catch {
|
25793
25794
|
}
|
25794
25795
|
break;
|
@@ -25804,35 +25805,35 @@ const getProps$7 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
25804
25805
|
var N;
|
25805
25806
|
try {
|
25806
25807
|
await ((N = m.value) == null ? void 0 : N.onSubmit());
|
25807
|
-
const
|
25808
|
-
|
25809
|
-
frm_id:
|
25810
|
-
var_nam:
|
25808
|
+
const A = cloneDeep(toRaw(r.getCreateVarDdaQuery)), R = uniq(compact([...A.varButtons.map((O) => O.var_nam), ...A.varGridDetails.map((O) => O.var_nam), ...A.varProfileDetails.map((O) => O.var_nam), ...A.varSubmitDetails.map((O) => O.var_nam), A.varGridMaster.grd_var_nam, A.varProfileMaster.prf_var_nam]));
|
25809
|
+
A.varVariables = R.map((O) => new VarVariable({
|
25810
|
+
frm_id: A.frmId,
|
25811
|
+
var_nam: O,
|
25811
25812
|
grp_nam: "WMS"
|
25812
|
-
})),
|
25813
|
+
})), A.varConfigDescriptions = toRaw(A.varConfigDescriptions.filter((O) => R.includes(O.var_nam))), A.varButtons.forEach((O, V) => {
|
25813
25814
|
var y, C, F;
|
25814
|
-
delete
|
25815
|
+
delete O.id, A.sysPermissions.push({
|
25815
25816
|
app: "WEB",
|
25816
25817
|
delFlag: 0,
|
25817
25818
|
leaf: !0,
|
25818
25819
|
menuType: 2,
|
25819
|
-
name: (C = (y =
|
25820
|
+
name: (C = (y = A.varConfigDescriptions.find((B) => B.var_nam === O.var_nam)) == null ? void 0 : y.var_text) != null ? C : "",
|
25820
25821
|
parentId: "",
|
25821
|
-
perms: (F =
|
25822
|
+
perms: (F = O.permission_code) != null ? F : "",
|
25822
25823
|
permsType: "0",
|
25823
25824
|
route: !1,
|
25824
25825
|
sortNo: V + 1,
|
25825
25826
|
status: "1"
|
25826
|
-
}),
|
25827
|
-
button_var_name:
|
25827
|
+
}), O.typ !== KG__VAR_BUTTON__TYPE.SEARCH && (A.varSubmitConfigs.push({
|
25828
|
+
button_var_name: O.var_nam,
|
25828
25829
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
25829
|
-
frm_id:
|
25830
|
-
}),
|
25830
|
+
frm_id: A.frmId
|
25831
|
+
}), O.typ !== KG__VAR_BUTTON__TYPE.DELETE && A.varSubmitDetails.push(...A.varSubmitDetails.filter((B) => !B.button_var_name).map((B) => ({
|
25831
25832
|
...B,
|
25832
|
-
button_var_name:
|
25833
|
+
button_var_name: O.var_nam
|
25833
25834
|
}))));
|
25834
|
-
}),
|
25835
|
-
data:
|
25835
|
+
}), A.varSubmitDetails = A.varSubmitDetails.filter((O) => !!O.button_var_name), await Create({
|
25836
|
+
data: A
|
25836
25837
|
}), message.success(a.t("\u521B\u5EFA\u6210\u529F.")), t("update:kgVisible", !1), t("kgOk"), r.initCreateVarDdaQuery();
|
25837
25838
|
} catch {
|
25838
25839
|
}
|