@kengic/vue 0.19.2-beta.6 → 0.19.2-beta.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +960 -869
- package/dist/src/apis/WMS/Controllers/VarDdaController/ValidateVarButtonVarName.d.ts +16 -0
- package/dist/src/apis/WMS/Controllers/VarDdaController/index.d.ts +1 -0
- package/dist/src/apis/WMS/models.d.ts +6 -0
- package/dist/src/components/KgForm.Item/KgForm.Item.hooks.d.ts +4 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -0
- package/dist/src/components/KgForm.Item/index.vm.d.ts +4 -0
- package/dist/src/components/KgSubmit/index.hooks.d.ts +14 -1
- package/dist/src/components/KgSubmit/index.store.d.ts +16 -11
- package/dist/src/components/KgVar/index.hooks.d.ts +14 -17
- package/dist/src/components/KgVar/index.store.d.ts +0 -3
- package/dist/src/consts/i18n/en.d.ts +4 -0
- package/dist/src/consts/i18n/zh_CN.d.ts +4 -0
- package/dist/src/pages/KgPageDda/components/KgPageDda.Create.store.d.ts +3 -81
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -30,6 +30,10 @@ const index$a = "", en = {
|
|
30
30
|
sql: "SQL",
|
31
31
|
type: "Type"
|
32
32
|
},
|
33
|
+
KgPageDdaCreateButton: {
|
34
|
+
"button-var-name-reserved": "Reserved",
|
35
|
+
"button-var-name-used": "Duplicated"
|
36
|
+
},
|
33
37
|
KgPageDdaCreateMenu: {
|
34
38
|
"parent-menu": "Parent Menu"
|
35
39
|
},
|
@@ -259,6 +263,10 @@ const index$a = "", en = {
|
|
259
263
|
sql: "SQL",
|
260
264
|
type: "\u7C7B\u578B"
|
261
265
|
},
|
266
|
+
KgPageDdaCreateButton: {
|
267
|
+
"button-var-name-reserved": "\u6B64\u7F16\u7801\u4FDD\u7559\u7ED9\u6807\u51C6\u6309\u94AE\u4F7F\u7528, \u8BF7\u4F7F\u7528\u5176\u4ED6\u7684\u7F16\u7801",
|
268
|
+
"button-var-name-used": "\u5DF2\u88AB\u4F7F\u7528"
|
269
|
+
},
|
262
270
|
KgPageDdaCreateMenu: {
|
263
271
|
"parent-menu": "\u4E0A\u7EA7\u83DC\u5355"
|
264
272
|
},
|
@@ -1203,12 +1211,12 @@ setTwoToneColor("#1890ff");
|
|
1203
1211
|
var Icon$1 = function(t, r) {
|
1204
1212
|
var a, n = _objectSpread$l({}, t, r.attrs), s = n.class, i = n.icon, o = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, b = _objectWithoutProperties(n, _excluded), E = (a = {
|
1205
1213
|
anticon: !0
|
1206
|
-
}, _defineProperty$l(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$l(a, s, s), a), g = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "",
|
1207
|
-
|
1214
|
+
}, _defineProperty$l(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$l(a, s, s), a), g = o === "" || !!o || i.name === "loading" ? "anticon-spin" : "", v = c;
|
1215
|
+
v === void 0 && d && (v = -1, b.tabindex = v);
|
1208
1216
|
var _ = l ? {
|
1209
1217
|
msTransform: "rotate(".concat(l, "deg)"),
|
1210
1218
|
transform: "rotate(".concat(l, "deg)")
|
1211
|
-
} : void 0, y = normalizeTwoToneColors(u),
|
1219
|
+
} : void 0, y = normalizeTwoToneColors(u), m = _slicedToArray(y, 2), T = m[0], k = m[1];
|
1212
1220
|
return createVNode("span", _objectSpread$l({
|
1213
1221
|
role: "img",
|
1214
1222
|
"aria-label": i.name
|
@@ -2010,38 +2018,38 @@ function iconToSVG(e, t) {
|
|
2010
2018
|
};
|
2011
2019
|
let s = r.body;
|
2012
2020
|
[r, a].forEach((g) => {
|
2013
|
-
const
|
2014
|
-
let
|
2015
|
-
_ ? y ?
|
2021
|
+
const v = [], _ = g.hFlip, y = g.vFlip;
|
2022
|
+
let m = g.rotate;
|
2023
|
+
_ ? y ? m += 2 : (v.push(
|
2016
2024
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
2017
|
-
),
|
2025
|
+
), v.push("scale(-1 1)"), n.top = n.left = 0) : y && (v.push(
|
2018
2026
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
2019
|
-
),
|
2027
|
+
), v.push("scale(1 -1)"), n.top = n.left = 0);
|
2020
2028
|
let T;
|
2021
|
-
switch (
|
2029
|
+
switch (m < 0 && (m -= Math.floor(m / 4) * 4), m = m % 4, m) {
|
2022
2030
|
case 1:
|
2023
|
-
T = n.height / 2 + n.top,
|
2031
|
+
T = n.height / 2 + n.top, v.unshift(
|
2024
2032
|
"rotate(90 " + T.toString() + " " + T.toString() + ")"
|
2025
2033
|
);
|
2026
2034
|
break;
|
2027
2035
|
case 2:
|
2028
|
-
|
2036
|
+
v.unshift(
|
2029
2037
|
"rotate(180 " + (n.width / 2 + n.left).toString() + " " + (n.height / 2 + n.top).toString() + ")"
|
2030
2038
|
);
|
2031
2039
|
break;
|
2032
2040
|
case 3:
|
2033
|
-
T = n.width / 2 + n.left,
|
2041
|
+
T = n.width / 2 + n.left, v.unshift(
|
2034
2042
|
"rotate(-90 " + T.toString() + " " + T.toString() + ")"
|
2035
2043
|
);
|
2036
2044
|
break;
|
2037
2045
|
}
|
2038
|
-
|
2046
|
+
m % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), v.length && (s = '<g transform="' + v.join(" ") + '">' + s + "</g>");
|
2039
2047
|
});
|
2040
2048
|
const i = a.width, o = a.height, l = n.width, c = n.height;
|
2041
2049
|
let u, d;
|
2042
2050
|
i === null ? (d = o === null ? "1em" : o === "auto" ? c : o, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = o === null ? calculateSize(u, c / l) : o === "auto" ? c : o);
|
2043
|
-
const b = {}, E = (g,
|
2044
|
-
isUnsetKeyword(
|
2051
|
+
const b = {}, E = (g, v) => {
|
2052
|
+
isUnsetKeyword(v) || (b[g] = v.toString());
|
2045
2053
|
};
|
2046
2054
|
return E("width", u), E("height", d), b.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
2047
2055
|
attributes: b,
|
@@ -2329,7 +2337,7 @@ function sendQuery(e, t, r, a) {
|
|
2329
2337
|
function g() {
|
2330
2338
|
d && (clearTimeout(d), d = null);
|
2331
2339
|
}
|
2332
|
-
function
|
2340
|
+
function v() {
|
2333
2341
|
l === "pending" && (l = "aborted"), g(), b.forEach((C) => {
|
2334
2342
|
C.status === "pending" && (C.status = "aborted");
|
2335
2343
|
}), b = [];
|
@@ -2345,10 +2353,10 @@ function sendQuery(e, t, r, a) {
|
|
2345
2353
|
queriesSent: c,
|
2346
2354
|
queriesPending: b.length,
|
2347
2355
|
subscribe: _,
|
2348
|
-
abort:
|
2356
|
+
abort: v
|
2349
2357
|
};
|
2350
2358
|
}
|
2351
|
-
function
|
2359
|
+
function m() {
|
2352
2360
|
l = "failed", E.forEach((C) => {
|
2353
2361
|
C(void 0, u);
|
2354
2362
|
});
|
@@ -2371,11 +2379,11 @@ function sendQuery(e, t, r, a) {
|
|
2371
2379
|
return;
|
2372
2380
|
}
|
2373
2381
|
if (I === "abort") {
|
2374
|
-
u = D,
|
2382
|
+
u = D, m();
|
2375
2383
|
return;
|
2376
2384
|
}
|
2377
2385
|
if (R) {
|
2378
|
-
u = D, b.length || (i.length ? A() :
|
2386
|
+
u = D, b.length || (i.length ? A() : m());
|
2379
2387
|
return;
|
2380
2388
|
}
|
2381
2389
|
if (g(), T(), !e.random) {
|
@@ -2394,11 +2402,11 @@ function sendQuery(e, t, r, a) {
|
|
2394
2402
|
if (C === void 0) {
|
2395
2403
|
if (b.length) {
|
2396
2404
|
d = setTimeout(() => {
|
2397
|
-
g(), l === "pending" && (T(),
|
2405
|
+
g(), l === "pending" && (T(), m());
|
2398
2406
|
}, e.timeout);
|
2399
2407
|
return;
|
2400
2408
|
}
|
2401
|
-
|
2409
|
+
m();
|
2402
2410
|
return;
|
2403
2411
|
}
|
2404
2412
|
const I = {
|
@@ -2784,10 +2792,10 @@ function fixSize(e) {
|
|
2784
2792
|
}
|
2785
2793
|
const render = (e, t) => {
|
2786
2794
|
const r = mergeCustomisations(defaultExtendedIconCustomisations, t), a = { ...svgDefaults }, n = t.mode || "svg", s = {}, i = t.style, o = typeof i == "object" && !(i instanceof Array) ? i : {};
|
2787
|
-
for (let
|
2788
|
-
const _ = t[
|
2795
|
+
for (let v in t) {
|
2796
|
+
const _ = t[v];
|
2789
2797
|
if (_ !== void 0)
|
2790
|
-
switch (
|
2798
|
+
switch (v) {
|
2791
2799
|
case "icon":
|
2792
2800
|
case "style":
|
2793
2801
|
case "onLoad":
|
@@ -2796,7 +2804,7 @@ const render = (e, t) => {
|
|
2796
2804
|
case "inline":
|
2797
2805
|
case "hFlip":
|
2798
2806
|
case "vFlip":
|
2799
|
-
r[
|
2807
|
+
r[v] = _ === !0 || _ === "true" || _ === 1;
|
2800
2808
|
break;
|
2801
2809
|
case "flip":
|
2802
2810
|
typeof _ == "string" && flipFromString(r, _);
|
@@ -2805,15 +2813,15 @@ const render = (e, t) => {
|
|
2805
2813
|
s.color = _;
|
2806
2814
|
break;
|
2807
2815
|
case "rotate":
|
2808
|
-
typeof _ == "string" ? r[
|
2816
|
+
typeof _ == "string" ? r[v] = rotateFromString(_) : typeof _ == "number" && (r[v] = _);
|
2809
2817
|
break;
|
2810
2818
|
case "ariaHidden":
|
2811
2819
|
case "aria-hidden":
|
2812
2820
|
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
2813
2821
|
break;
|
2814
2822
|
default: {
|
2815
|
-
const y = customisationAliases[
|
2816
|
-
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[
|
2823
|
+
const y = customisationAliases[v];
|
2824
|
+
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[v] === void 0 && (a[v] = _);
|
2817
2825
|
}
|
2818
2826
|
}
|
2819
2827
|
}
|
@@ -2823,8 +2831,8 @@ const render = (e, t) => {
|
|
2823
2831
|
...s,
|
2824
2832
|
...o
|
2825
2833
|
}, Object.assign(a, c);
|
2826
|
-
let
|
2827
|
-
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" +
|
2834
|
+
let v = 0, _ = t.id;
|
2835
|
+
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + v++ : "iconifyVue"), h("svg", a);
|
2828
2836
|
}
|
2829
2837
|
const { body: u, width: d, height: b } = e, E = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), g = iconToHTML(u, {
|
2830
2838
|
...c,
|
@@ -2928,7 +2936,7 @@ const emptyIcon = {
|
|
2928
2936
|
...t.data
|
2929
2937
|
}, r);
|
2930
2938
|
}
|
2931
|
-
}), version = "0.19.2-beta.
|
2939
|
+
}), version = "0.19.2-beta.7";
|
2932
2940
|
var isVue2 = !1;
|
2933
2941
|
function set(e, t, r) {
|
2934
2942
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, r), r) : (e[t] = r, r);
|
@@ -2996,36 +3004,36 @@ function useMagicKeys(e = {}) {
|
|
2996
3004
|
} = e, i = reactive(/* @__PURE__ */ new Set()), o = { toJSON() {
|
2997
3005
|
return {};
|
2998
3006
|
}, current: i }, l = t ? reactive(o) : o, c = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set();
|
2999
|
-
function d(
|
3000
|
-
|
3007
|
+
function d(v, _) {
|
3008
|
+
v in l && (t ? l[v] = _ : l[v].value = _);
|
3001
3009
|
}
|
3002
3010
|
function b() {
|
3003
|
-
for (const
|
3004
|
-
d(
|
3011
|
+
for (const v of u)
|
3012
|
+
d(v, !1);
|
3005
3013
|
}
|
3006
|
-
function E(
|
3007
|
-
var y,
|
3008
|
-
const T = (y =
|
3009
|
-
k && (_ ? i.add(
|
3014
|
+
function E(v, _) {
|
3015
|
+
var y, m;
|
3016
|
+
const T = (y = v.key) == null ? void 0 : y.toLowerCase(), k = (m = v.code) == null ? void 0 : m.toLowerCase(), A = [k, T].filter(Boolean);
|
3017
|
+
k && (_ ? i.add(v.code) : i.delete(v.code));
|
3010
3018
|
for (const C of A)
|
3011
3019
|
u.add(C), d(C, _);
|
3012
3020
|
T === "meta" && !_ ? (c.forEach((C) => {
|
3013
3021
|
i.delete(C), d(C, !1);
|
3014
|
-
}), c.clear()) : typeof
|
3022
|
+
}), c.clear()) : typeof v.getModifierState == "function" && v.getModifierState("Meta") && _ && [...i, ...A].forEach((C) => c.add(C));
|
3015
3023
|
}
|
3016
|
-
r && (useEventListener(r, "keydown", (
|
3024
|
+
r && (useEventListener(r, "keydown", (v) => (E(v, !0), s(v)), { passive: n }), useEventListener(r, "keyup", (v) => (E(v, !1), s(v)), { passive: n }), useEventListener("blur", b, { passive: !0 }), useEventListener("focus", b, { passive: !0 }));
|
3017
3025
|
const g = new Proxy(l, {
|
3018
|
-
get(
|
3026
|
+
get(v, _, y) {
|
3019
3027
|
if (typeof _ != "string")
|
3020
|
-
return Reflect.get(
|
3028
|
+
return Reflect.get(v, _, y);
|
3021
3029
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
|
3022
3030
|
if (/[+_-]/.test(_)) {
|
3023
3031
|
const T = _.split(/[+_-]/g).map((k) => k.trim());
|
3024
3032
|
l[_] = computed(() => T.every((k) => unref(g[k])));
|
3025
3033
|
} else
|
3026
3034
|
l[_] = ref(!1);
|
3027
|
-
const
|
3028
|
-
return t ? unref(
|
3035
|
+
const m = Reflect.get(v, _, y);
|
3036
|
+
return t ? unref(m) : m;
|
3029
3037
|
}
|
3030
3038
|
});
|
3031
3039
|
return g;
|
@@ -3133,7 +3141,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3133
3141
|
let c, u, d = markRaw([]), b = markRaw([]), E;
|
3134
3142
|
const g = a.state.value[e];
|
3135
3143
|
!i && !g && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
3136
|
-
const
|
3144
|
+
const v = ref({});
|
3137
3145
|
function _(D) {
|
3138
3146
|
let R;
|
3139
3147
|
c = u = !1, process.env.NODE_ENV !== "production" && (E = []), typeof D == "function" ? (D(a.state.value[e]), R = {
|
@@ -3152,25 +3160,25 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3152
3160
|
const y = process.env.NODE_ENV !== "production" ? () => {
|
3153
3161
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
3154
3162
|
} : noop$1;
|
3155
|
-
function
|
3163
|
+
function m() {
|
3156
3164
|
s.stop(), d = [], b = [], a._s.delete(e);
|
3157
3165
|
}
|
3158
3166
|
function T(D, R) {
|
3159
3167
|
return function() {
|
3160
3168
|
setActivePinia(a);
|
3161
3169
|
const w = Array.from(arguments), N = [], O = [];
|
3162
|
-
function
|
3170
|
+
function V(K) {
|
3163
3171
|
N.push(K);
|
3164
3172
|
}
|
3165
|
-
function
|
3173
|
+
function P(K) {
|
3166
3174
|
O.push(K);
|
3167
3175
|
}
|
3168
3176
|
triggerSubscriptions(b, {
|
3169
3177
|
args: w,
|
3170
3178
|
name: D,
|
3171
3179
|
store: C,
|
3172
|
-
after:
|
3173
|
-
onError:
|
3180
|
+
after: V,
|
3181
|
+
onError: P
|
3174
3182
|
});
|
3175
3183
|
let M;
|
3176
3184
|
try {
|
@@ -3185,7 +3193,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3185
3193
|
actions: {},
|
3186
3194
|
getters: {},
|
3187
3195
|
state: [],
|
3188
|
-
hotState:
|
3196
|
+
hotState: v
|
3189
3197
|
}), A = {
|
3190
3198
|
_p: a,
|
3191
3199
|
$id: e,
|
@@ -3202,7 +3210,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3202
3210
|
}, assign$1({}, l, R)));
|
3203
3211
|
return w;
|
3204
3212
|
},
|
3205
|
-
$dispose:
|
3213
|
+
$dispose: m
|
3206
3214
|
}, C = reactive(assign$1(
|
3207
3215
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
3208
3216
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
@@ -3215,7 +3223,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3215
3223
|
for (const D in I) {
|
3216
3224
|
const R = I[D];
|
3217
3225
|
if (isRef(R) && !isComputed(R) || isReactive(R))
|
3218
|
-
process.env.NODE_ENV !== "production" && n ? set(
|
3226
|
+
process.env.NODE_ENV !== "production" && n ? set(v.value, D, toRef(I, D)) : i || (g && shouldHydrate(R) && (isRef(R) ? R.value = g[D] : mergeReactiveObjects(R, g[D])), a.state.value[e][D] = R), process.env.NODE_ENV !== "production" && k.state.push(D);
|
3219
3227
|
else if (typeof R == "function") {
|
3220
3228
|
const w = process.env.NODE_ENV !== "production" && n ? R : T(D, R);
|
3221
3229
|
I[D] = w, process.env.NODE_ENV !== "production" && (k.actions[D] = R), o.actions[D] = R;
|
@@ -3223,7 +3231,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
3223
3231
|
process.env.NODE_ENV !== "production" && isComputed(R) && (k.getters[D] = i ? r.getters[D] : R, IS_CLIENT && (I._getters || (I._getters = markRaw([]))).push(D));
|
3224
3232
|
}
|
3225
3233
|
if (assign$1(C, I), assign$1(toRaw(C), I), Object.defineProperty(C, "$state", {
|
3226
|
-
get: () => process.env.NODE_ENV !== "production" && n ?
|
3234
|
+
get: () => process.env.NODE_ENV !== "production" && n ? v.value : a.state.value[e],
|
3227
3235
|
set: (D) => {
|
3228
3236
|
if (process.env.NODE_ENV !== "production" && n)
|
3229
3237
|
throw new Error("cannot set hotState");
|
@@ -3405,11 +3413,11 @@ function useKgDragModal(e) {
|
|
3405
3413
|
if (!l)
|
3406
3414
|
return;
|
3407
3415
|
document.body.classList.add("kg-modal-dragging");
|
3408
|
-
const c = l.clientX, u = l.clientY, d = 1, b = o.offsetLeft, E = t.value - o.offsetLeft - i.offsetWidth - d * 2, g = o.offsetTop,
|
3409
|
-
let
|
3410
|
-
_.includes("%") ? (
|
3416
|
+
const c = l.clientX, u = l.clientY, d = 1, b = o.offsetLeft, E = t.value - o.offsetLeft - i.offsetWidth - d * 2, g = o.offsetTop, v = r.value - o.offsetTop - i.offsetHeight, _ = getComputedStyle(o).left, y = getComputedStyle(o).top;
|
3417
|
+
let m = +_, T = +y;
|
3418
|
+
_.includes("%") ? (m = +document.body.clientWidth * (+_.replace(/%/g, "") / 100), T = +document.body.clientHeight * (+y.replace(/%/g, "") / 100)) : (m = +_.replace(/px/g, ""), T = +y.replace(/px/g, "")), document.onmousemove = function(k) {
|
3411
3419
|
let A = k.clientX - c, C = k.clientY - u;
|
3412
|
-
-A > b ? A = -b : A > E && (A = E), -C > g ? C = -g : C >
|
3420
|
+
-A > b ? A = -b : A > E && (A = E), -C > g ? C = -g : C > v && (C = v), o.style.cssText += `;left:${A + m}px;top:${C + T}px;`;
|
3413
3421
|
}, document.onmouseup = () => {
|
3414
3422
|
document.body.classList.remove("kg-modal-dragging"), document.onmousemove = null, document.onmouseup = null;
|
3415
3423
|
};
|
@@ -4588,9 +4596,9 @@ function baseClone(e, t, r, a, n, s) {
|
|
4588
4596
|
}) : isMap$1(e) && e.forEach(function(_, y) {
|
4589
4597
|
i.set(y, baseClone(_, t, r, y, e, s));
|
4590
4598
|
});
|
4591
|
-
var g = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys$1,
|
4592
|
-
return arrayEach(
|
4593
|
-
|
4599
|
+
var g = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys$1, v = u ? void 0 : g(e);
|
4600
|
+
return arrayEach(v || e, function(_, y) {
|
4601
|
+
v && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, s));
|
4594
4602
|
}), i;
|
4595
4603
|
}
|
4596
4604
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -4637,9 +4645,9 @@ function equalArrays(e, t, r, a, n, s) {
|
|
4637
4645
|
return c == t && u == e;
|
4638
4646
|
var d = -1, b = !0, E = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
4639
4647
|
for (s.set(e, t), s.set(t, e); ++d < o; ) {
|
4640
|
-
var g = e[d],
|
4648
|
+
var g = e[d], v = t[d];
|
4641
4649
|
if (a)
|
4642
|
-
var _ = i ? a(
|
4650
|
+
var _ = i ? a(v, g, d, t, e, s) : a(g, v, d, e, t, s);
|
4643
4651
|
if (_ !== void 0) {
|
4644
4652
|
if (_)
|
4645
4653
|
continue;
|
@@ -4647,14 +4655,14 @@ function equalArrays(e, t, r, a, n, s) {
|
|
4647
4655
|
break;
|
4648
4656
|
}
|
4649
4657
|
if (E) {
|
4650
|
-
if (!arraySome(t, function(y,
|
4651
|
-
if (!cacheHas(E,
|
4652
|
-
return E.push(
|
4658
|
+
if (!arraySome(t, function(y, m) {
|
4659
|
+
if (!cacheHas(E, m) && (g === y || n(g, y, r, a, s)))
|
4660
|
+
return E.push(m);
|
4653
4661
|
})) {
|
4654
4662
|
b = !1;
|
4655
4663
|
break;
|
4656
4664
|
}
|
4657
|
-
} else if (!(g ===
|
4665
|
+
} else if (!(g === v || n(g, v, r, a, s))) {
|
4658
4666
|
b = !1;
|
4659
4667
|
break;
|
4660
4668
|
}
|
@@ -4722,24 +4730,24 @@ function equalObjects(e, t, r, a, n, s) {
|
|
4722
4730
|
var E = s.get(e), g = s.get(t);
|
4723
4731
|
if (E && g)
|
4724
4732
|
return E == t && g == e;
|
4725
|
-
var
|
4733
|
+
var v = !0;
|
4726
4734
|
s.set(e, t), s.set(t, e);
|
4727
4735
|
for (var _ = i; ++d < l; ) {
|
4728
4736
|
b = o[d];
|
4729
|
-
var y = e[b],
|
4737
|
+
var y = e[b], m = t[b];
|
4730
4738
|
if (a)
|
4731
|
-
var T = i ? a(
|
4732
|
-
if (!(T === void 0 ? y ===
|
4733
|
-
|
4739
|
+
var T = i ? a(m, y, b, t, e, s) : a(y, m, b, e, t, s);
|
4740
|
+
if (!(T === void 0 ? y === m || n(y, m, r, a, s) : T)) {
|
4741
|
+
v = !1;
|
4734
4742
|
break;
|
4735
4743
|
}
|
4736
4744
|
_ || (_ = b == "constructor");
|
4737
4745
|
}
|
4738
|
-
if (
|
4746
|
+
if (v && !_) {
|
4739
4747
|
var k = e.constructor, A = t.constructor;
|
4740
|
-
k != A && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof A == "function" && A instanceof A) && (
|
4748
|
+
k != A && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof A == "function" && A instanceof A) && (v = !1);
|
4741
4749
|
}
|
4742
|
-
return s.delete(e), s.delete(t),
|
4750
|
+
return s.delete(e), s.delete(t), v;
|
4743
4751
|
}
|
4744
4752
|
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
4745
4753
|
function baseIsEqualDeep(e, t, r, a, n, s) {
|
@@ -4756,8 +4764,8 @@ function baseIsEqualDeep(e, t, r, a, n, s) {
|
|
4756
4764
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
4757
4765
|
var E = u && hasOwnProperty.call(e, "__wrapped__"), g = d && hasOwnProperty.call(t, "__wrapped__");
|
4758
4766
|
if (E || g) {
|
4759
|
-
var
|
4760
|
-
return s || (s = new Stack()), n(
|
4767
|
+
var v = E ? e.value() : e, _ = g ? t.value() : t;
|
4768
|
+
return s || (s = new Stack()), n(v, _, r, a, s);
|
4761
4769
|
}
|
4762
4770
|
}
|
4763
4771
|
return b ? (s || (s = new Stack()), equalObjects(e, t, r, a, n, s)) : !1;
|
@@ -4896,7 +4904,7 @@ function debounce(e, t, r) {
|
|
4896
4904
|
function g(C) {
|
4897
4905
|
return c = C, o = setTimeout(y, t), u ? E(C) : i;
|
4898
4906
|
}
|
4899
|
-
function
|
4907
|
+
function v(C) {
|
4900
4908
|
var I = C - l, D = C - c, R = t - I;
|
4901
4909
|
return d ? nativeMin$2(R, s - D) : R;
|
4902
4910
|
}
|
@@ -4907,17 +4915,17 @@ function debounce(e, t, r) {
|
|
4907
4915
|
function y() {
|
4908
4916
|
var C = now$1();
|
4909
4917
|
if (_(C))
|
4910
|
-
return
|
4911
|
-
o = setTimeout(y,
|
4918
|
+
return m(C);
|
4919
|
+
o = setTimeout(y, v(C));
|
4912
4920
|
}
|
4913
|
-
function
|
4921
|
+
function m(C) {
|
4914
4922
|
return o = void 0, b && a ? E(C) : (a = n = void 0, i);
|
4915
4923
|
}
|
4916
4924
|
function T() {
|
4917
4925
|
o !== void 0 && clearTimeout(o), c = 0, a = l = n = o = void 0;
|
4918
4926
|
}
|
4919
4927
|
function k() {
|
4920
|
-
return o === void 0 ? i :
|
4928
|
+
return o === void 0 ? i : m(now$1());
|
4921
4929
|
}
|
4922
4930
|
function A() {
|
4923
4931
|
var C = now$1(), I = _(C);
|
@@ -5035,8 +5043,8 @@ function baseIntersection(e, t, r) {
|
|
5035
5043
|
var E = u[d], g = t ? t(E) : E;
|
5036
5044
|
if (E = r || E !== 0 ? E : 0, !(b ? cacheHas(b, g) : a(c, g, r))) {
|
5037
5045
|
for (i = s; --i; ) {
|
5038
|
-
var
|
5039
|
-
if (!(
|
5046
|
+
var v = o[i];
|
5047
|
+
if (!(v ? cacheHas(v, g) : a(e[i], g, r)))
|
5040
5048
|
continue e;
|
5041
5049
|
}
|
5042
5050
|
b && b.push(g), c.push(E);
|
@@ -5306,7 +5314,7 @@ class KgRouteUtil {
|
|
5306
5314
|
}), t;
|
5307
5315
|
}
|
5308
5316
|
static transformMenus(t) {
|
5309
|
-
var b, E, g,
|
5317
|
+
var b, E, g, v, _, y, m, T, k, A, C, I, D, R, w, N, O, V, P, M, K, L, B, U, F, x, q, Q, Z, ae, te, se, ue, le;
|
5310
5318
|
if (!t)
|
5311
5319
|
return [];
|
5312
5320
|
const r = useKg(), a = (X) => {
|
@@ -5345,7 +5353,7 @@ class KgRouteUtil {
|
|
5345
5353
|
id: KG_TMP_MENU_ID__DATA_MANAGER,
|
5346
5354
|
key: KG_TMP_MENU_ID__DATA_MANAGER,
|
5347
5355
|
name: (E = (b = r.option.value.appTitle) == null ? void 0 : b[KG_APP.WMS_DATA_MANAGER]) != null ? E : "\u6570\u636E\u7BA1\u7406",
|
5348
|
-
slotTitle: (
|
5356
|
+
slotTitle: (v = (g = r.option.value.appTitle) == null ? void 0 : g[KG_APP.WMS_DATA_MANAGER]) != null ? v : "\u6570\u636E\u7BA1\u7406",
|
5349
5357
|
sortNo: 1,
|
5350
5358
|
title: (y = (_ = r.option.value.appTitle) == null ? void 0 : _[KG_APP.WMS_DATA_MANAGER]) != null ? y : "\u6570\u636E\u7BA1\u7406",
|
5351
5359
|
...n,
|
@@ -5355,7 +5363,7 @@ class KgRouteUtil {
|
|
5355
5363
|
children: [],
|
5356
5364
|
id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
5357
5365
|
key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
5358
|
-
name: (T = (
|
5366
|
+
name: (T = (m = r.option.value.appTitle) == null ? void 0 : m[KG_APP.WMS_BUSINESS_MANAGER]) != null ? T : "\u4ED3\u5E93\u7BA1\u7406",
|
5359
5367
|
slotTitle: (A = (k = r.option.value.appTitle) == null ? void 0 : k[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
|
5360
5368
|
sortNo: 2,
|
5361
5369
|
title: (I = (C = r.option.value.appTitle) == null ? void 0 : C[KG_APP.WMS_BUSINESS_MANAGER]) != null ? I : "\u4ED3\u5E93\u7BA1\u7406",
|
@@ -5369,14 +5377,14 @@ class KgRouteUtil {
|
|
5369
5377
|
name: (R = (D = r.option.value.appTitle) == null ? void 0 : D[KG_APP.WCS]) != null ? R : "WCS",
|
5370
5378
|
slotTitle: (N = (w = r.option.value.appTitle) == null ? void 0 : w[KG_APP.WCS]) != null ? N : "WCS",
|
5371
5379
|
sortNo: 3,
|
5372
|
-
title: (
|
5380
|
+
title: (V = (O = r.option.value.appTitle) == null ? void 0 : O[KG_APP.WCS]) != null ? V : "WCS",
|
5373
5381
|
...n,
|
5374
5382
|
url: KG_APP_PREFIX.WCS,
|
5375
5383
|
value: KG_TMP_MENU_ID__WCS
|
5376
5384
|
}, l = {
|
5377
5385
|
id: KG_TMP_MENU_ID__SYS,
|
5378
5386
|
key: KG_TMP_MENU_ID__SYS,
|
5379
|
-
title: (M = (
|
5387
|
+
title: (M = (P = r.option.value.appTitle) == null ? void 0 : P[KG_APP.SYS]) != null ? M : "\u7CFB\u7EDF\u914D\u7F6E",
|
5380
5388
|
name: (L = (K = r.option.value.appTitle) == null ? void 0 : K[KG_APP.SYS]) != null ? L : "\u7CFB\u7EDF\u914D\u7F6E",
|
5381
5389
|
slotTitle: (U = (B = r.option.value.appTitle) == null ? void 0 : B[KG_APP.SYS]) != null ? U : "\u7CFB\u7EDF\u914D\u7F6E",
|
5382
5390
|
sortNo: 4,
|
@@ -5509,31 +5517,31 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5509
5517
|
(function(r, a) {
|
5510
5518
|
e.exports = a();
|
5511
5519
|
})(commonjsGlobal, function() {
|
5512
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date",
|
5513
|
-
var M = ["th", "st", "nd", "rd"], K =
|
5514
|
-
return "[" +
|
5515
|
-
} }, T = function(
|
5516
|
-
var L = String(
|
5517
|
-
return !L || L.length >= M ?
|
5518
|
-
}, k = { s: T, z: function(
|
5519
|
-
var M = -
|
5520
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", b = "quarter", E = "year", g = "date", v = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, m = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
|
5521
|
+
var M = ["th", "st", "nd", "rd"], K = P % 100;
|
5522
|
+
return "[" + P + (M[(K - 20) % 10] || M[K] || M[0]) + "]";
|
5523
|
+
} }, T = function(P, M, K) {
|
5524
|
+
var L = String(P);
|
5525
|
+
return !L || L.length >= M ? P : "" + Array(M + 1 - L.length).join(K) + P;
|
5526
|
+
}, k = { s: T, z: function(P) {
|
5527
|
+
var M = -P.utcOffset(), K = Math.abs(M), L = Math.floor(K / 60), B = K % 60;
|
5520
5528
|
return (M <= 0 ? "+" : "-") + T(L, 2, "0") + ":" + T(B, 2, "0");
|
5521
|
-
}, m: function
|
5529
|
+
}, m: function P(M, K) {
|
5522
5530
|
if (M.date() < K.date())
|
5523
|
-
return -
|
5531
|
+
return -P(K, M);
|
5524
5532
|
var L = 12 * (K.year() - M.year()) + (K.month() - M.month()), B = M.clone().add(L, d), U = K - B < 0, F = M.clone().add(L + (U ? -1 : 1), d);
|
5525
5533
|
return +(-(L + (K - B) / (U ? B - F : F - B)) || 0);
|
5526
|
-
}, a: function(
|
5527
|
-
return
|
5528
|
-
}, p: function(
|
5529
|
-
return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[
|
5530
|
-
}, u: function(
|
5531
|
-
return
|
5534
|
+
}, a: function(P) {
|
5535
|
+
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
5536
|
+
}, p: function(P) {
|
5537
|
+
return { M: d, y: E, w: u, d: c, D: g, h: l, m: o, s: i, ms: s, Q: b }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
5538
|
+
}, u: function(P) {
|
5539
|
+
return P === void 0;
|
5532
5540
|
} }, A = "en", C = {};
|
5533
|
-
C[A] =
|
5534
|
-
var I = "$isDayjsObject", D = function(
|
5535
|
-
return
|
5536
|
-
}, R = function
|
5541
|
+
C[A] = m;
|
5542
|
+
var I = "$isDayjsObject", D = function(P) {
|
5543
|
+
return P instanceof O || !(!P || !P[I]);
|
5544
|
+
}, R = function P(M, K, L) {
|
5537
5545
|
var B;
|
5538
5546
|
if (!M)
|
5539
5547
|
return A;
|
@@ -5542,26 +5550,26 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5542
5550
|
C[U] && (B = U), K && (C[U] = K, B = U);
|
5543
5551
|
var F = M.split("-");
|
5544
5552
|
if (!B && F.length > 1)
|
5545
|
-
return
|
5553
|
+
return P(F[0]);
|
5546
5554
|
} else {
|
5547
5555
|
var x = M.name;
|
5548
5556
|
C[x] = M, B = x;
|
5549
5557
|
}
|
5550
5558
|
return !L && B && (A = B), B || !L && A;
|
5551
|
-
}, w = function(
|
5552
|
-
if (D(
|
5553
|
-
return
|
5559
|
+
}, w = function(P, M) {
|
5560
|
+
if (D(P))
|
5561
|
+
return P.clone();
|
5554
5562
|
var K = typeof M == "object" ? M : {};
|
5555
|
-
return K.date =
|
5563
|
+
return K.date = P, K.args = arguments, new O(K);
|
5556
5564
|
}, N = k;
|
5557
|
-
N.l = R, N.i = D, N.w = function(
|
5558
|
-
return w(
|
5565
|
+
N.l = R, N.i = D, N.w = function(P, M) {
|
5566
|
+
return w(P, { locale: M.$L, utc: M.$u, x: M.$x, $offset: M.$offset });
|
5559
5567
|
};
|
5560
5568
|
var O = function() {
|
5561
|
-
function
|
5569
|
+
function P(K) {
|
5562
5570
|
this.$L = R(K.locale, null, !0), this.parse(K), this.$x = this.$x || K.x || {}, this[I] = !0;
|
5563
5571
|
}
|
5564
|
-
var M =
|
5572
|
+
var M = P.prototype;
|
5565
5573
|
return M.parse = function(K) {
|
5566
5574
|
this.$d = function(L) {
|
5567
5575
|
var B = L.date, U = L.utc;
|
@@ -5586,7 +5594,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5586
5594
|
}, M.$utils = function() {
|
5587
5595
|
return N;
|
5588
5596
|
}, M.isValid = function() {
|
5589
|
-
return this.$d.toString() !==
|
5597
|
+
return this.$d.toString() !== v;
|
5590
5598
|
}, M.isSame = function(K, L) {
|
5591
5599
|
var B = w(K);
|
5592
5600
|
return this.startOf(L) <= B && B <= this.endOf(L);
|
@@ -5663,7 +5671,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5663
5671
|
}, M.format = function(K) {
|
5664
5672
|
var L = this, B = this.$locale();
|
5665
5673
|
if (!this.isValid())
|
5666
|
-
return B.invalidDate ||
|
5674
|
+
return B.invalidDate || v;
|
5667
5675
|
var U = K || "YYYY-MM-DDTHH:mm:ssZ", F = N.z(this), x = this.$H, q = this.$m, Q = this.$M, Z = B.weekdays, ae = B.months, te = B.meridiem, se = function(X, $, G, z) {
|
5668
5676
|
return X && (X[$] || X(L, U)) || G[$].slice(0, z);
|
5669
5677
|
}, ue = function(X) {
|
@@ -5781,16 +5789,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5781
5789
|
return this.$d.toISOString();
|
5782
5790
|
}, M.toString = function() {
|
5783
5791
|
return this.$d.toUTCString();
|
5784
|
-
},
|
5785
|
-
}(),
|
5786
|
-
return w.prototype =
|
5787
|
-
P[
|
5788
|
-
return this.$g(M,
|
5792
|
+
}, P;
|
5793
|
+
}(), V = O.prototype;
|
5794
|
+
return w.prototype = V, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", E], ["$D", g]].forEach(function(P) {
|
5795
|
+
V[P[1]] = function(M) {
|
5796
|
+
return this.$g(M, P[0], P[1]);
|
5789
5797
|
};
|
5790
|
-
}), w.extend = function(
|
5791
|
-
return
|
5792
|
-
}, w.locale = R, w.isDayjs = D, w.unix = function(
|
5793
|
-
return w(1e3 *
|
5798
|
+
}), w.extend = function(P, M) {
|
5799
|
+
return P.$i || (P(M, O, w), P.$i = !0), w;
|
5800
|
+
}, w.locale = R, w.isDayjs = D, w.unix = function(P) {
|
5801
|
+
return w(1e3 * P);
|
5794
5802
|
}, w.en = C[A], w.Ls = C, w.p = {}, w;
|
5795
5803
|
});
|
5796
5804
|
})(dayjs_min);
|
@@ -5833,28 +5841,28 @@ function filesize(e, {
|
|
5833
5841
|
fullform: b = !1,
|
5834
5842
|
fullforms: E = [],
|
5835
5843
|
exponent: g = -1,
|
5836
|
-
roundingMethod:
|
5844
|
+
roundingMethod: v = ROUND,
|
5837
5845
|
precision: _ = 0
|
5838
5846
|
} = {}) {
|
5839
|
-
let y = g,
|
5847
|
+
let y = g, m = Number(e), T = [], k = 0, A = EMPTY;
|
5840
5848
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
5841
|
-
const C = a === 10 ? 1e3 : 1024, I = b === !0, D =
|
5849
|
+
const C = a === 10 ? 1e3 : 1024, I = b === !0, D = m < 0, R = Math[v];
|
5842
5850
|
if (typeof e != "bigint" && isNaN(e))
|
5843
5851
|
throw new TypeError(INVALID_NUMBER);
|
5844
5852
|
if (typeof R !== FUNCTION)
|
5845
5853
|
throw new TypeError(INVALID_ROUND);
|
5846
|
-
if (D && (
|
5854
|
+
if (D && (m = -m), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(m) / Math.log(C)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
|
5847
5855
|
return y;
|
5848
|
-
if (
|
5856
|
+
if (m === 0)
|
5849
5857
|
T[0] = 0, A = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
5850
5858
|
else {
|
5851
|
-
k =
|
5859
|
+
k = m / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (k = k * 8, k >= C && y < 8 && (k = k / C, y++));
|
5852
5860
|
const w = Math.pow(10, y > 0 ? n : 0);
|
5853
5861
|
T[0] = R(k * w) / w, T[0] === C && y < 8 && g === -1 && (T[0] = 1, y++), A = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
5854
5862
|
}
|
5855
5863
|
if (D && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], s === !0 ? T[0] = T[0].toLocaleString() : s.length > 0 ? T[0] = T[0].toLocaleString(s, i) : o.length > 0 && (T[0] = T[0].toString().replace(PERIOD, o)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
5856
|
-
const w = o || PERIOD, N = T[0].toString().split(w), O = N[1] || EMPTY,
|
5857
|
-
T[0] = `${N[0]}${w}${O.padEnd(
|
5864
|
+
const w = o || PERIOD, N = T[0].toString().split(w), O = N[1] || EMPTY, V = O.length, P = n - V;
|
5865
|
+
T[0] = `${N[0]}${w}${O.padEnd(V + P, ZERO)}`;
|
5858
5866
|
}
|
5859
5867
|
return I && (T[1] = E[y] ? E[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
5860
5868
|
value: T[0],
|
@@ -6292,18 +6300,18 @@ const KgModal_Close = "", getProps$L = () => ({
|
|
6292
6300
|
slots: r
|
6293
6301
|
}) {
|
6294
6302
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
6295
|
-
const
|
6296
|
-
throw KgLogger.error(
|
6303
|
+
const m = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
6304
|
+
throw KgLogger.error(m, {
|
6297
6305
|
kgMaxHeight: e.kgMaxHeight,
|
6298
6306
|
kgMinHeight: e.kgMinHeight
|
6299
|
-
}), new Error(
|
6307
|
+
}), new Error(m);
|
6300
6308
|
}
|
6301
6309
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
6302
|
-
const
|
6303
|
-
throw KgLogger.error(
|
6310
|
+
const m = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
6311
|
+
throw KgLogger.error(m, {
|
6304
6312
|
kgMaxWidth: e.kgMaxWidth,
|
6305
6313
|
kgMinWidth: e.kgMinWidth
|
6306
|
-
}), new Error(
|
6314
|
+
}), new Error(m);
|
6307
6315
|
}
|
6308
6316
|
let a = 0, n = 0, s = 0, i = 0, o = {
|
6309
6317
|
remove: () => {
|
@@ -6326,22 +6334,22 @@ const KgModal_Close = "", getProps$L = () => ({
|
|
6326
6334
|
};
|
6327
6335
|
}
|
6328
6336
|
}), u = computed(() => {
|
6329
|
-
let
|
6330
|
-
switch (e.kgClass && (
|
6337
|
+
let m = "";
|
6338
|
+
switch (e.kgClass && (m += `${e.kgClass} `), m += "kg-resizable", e.kgDisabled && (m += " kg-resizable--disabled"), e.kgType) {
|
6331
6339
|
case "left":
|
6332
|
-
|
6340
|
+
m += " kg-resizable--left";
|
6333
6341
|
break;
|
6334
6342
|
case "right":
|
6335
|
-
|
6343
|
+
m += " kg-resizable--right";
|
6336
6344
|
break;
|
6337
6345
|
case "top":
|
6338
|
-
|
6346
|
+
m += " kg-resizable--top";
|
6339
6347
|
break;
|
6340
6348
|
case "bottom":
|
6341
|
-
|
6349
|
+
m += " kg-resizable--bottom";
|
6342
6350
|
break;
|
6343
6351
|
}
|
6344
|
-
return
|
6352
|
+
return m;
|
6345
6353
|
});
|
6346
6354
|
function d() {
|
6347
6355
|
o.remove(), l.remove();
|
@@ -6349,51 +6357,51 @@ const KgModal_Close = "", getProps$L = () => ({
|
|
6349
6357
|
onUnmounted(() => {
|
6350
6358
|
d();
|
6351
6359
|
});
|
6352
|
-
const b = (
|
6360
|
+
const b = (m) => {
|
6353
6361
|
switch (e.kgType) {
|
6354
6362
|
case "top":
|
6355
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
6363
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (m.pageY - i))));
|
6356
6364
|
break;
|
6357
6365
|
case "bottom":
|
6358
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
6366
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (m.pageY - i))));
|
6359
6367
|
break;
|
6360
6368
|
case "left":
|
6361
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
6369
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (m.pageX - s))));
|
6362
6370
|
break;
|
6363
6371
|
case "right":
|
6364
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
6372
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (m.pageX - s))));
|
6365
6373
|
break;
|
6366
6374
|
}
|
6367
6375
|
};
|
6368
|
-
function E(
|
6369
|
-
b(
|
6376
|
+
function E(m) {
|
6377
|
+
b(m);
|
6370
6378
|
}
|
6371
|
-
function g(
|
6372
|
-
b(
|
6379
|
+
function g(m) {
|
6380
|
+
b(m), d();
|
6373
6381
|
}
|
6374
|
-
function m
|
6375
|
-
|
6382
|
+
function v(m) {
|
6383
|
+
m.stopPropagation(), m.preventDefault(), d(), !(m instanceof MouseEvent && m.which !== 1) && (s = m.pageX, i = m.pageY, a = e.kgWidth, n = e.kgHeight, o = _(document.documentElement, "mousemove", E), l = _(document.documentElement, "mouseup", g));
|
6376
6384
|
}
|
6377
|
-
function _(
|
6378
|
-
return
|
6379
|
-
remove: () =>
|
6385
|
+
function _(m, T, k) {
|
6386
|
+
return m.addEventListener(T, k), {
|
6387
|
+
remove: () => m.removeEventListener(T, k)
|
6380
6388
|
};
|
6381
6389
|
}
|
6382
|
-
function y(
|
6383
|
-
|
6390
|
+
function y(m) {
|
6391
|
+
m.stopPropagation(), m.preventDefault();
|
6384
6392
|
}
|
6385
6393
|
return () => {
|
6386
|
-
var
|
6394
|
+
var m;
|
6387
6395
|
return createVNode("div", {
|
6388
6396
|
class: u.value,
|
6389
6397
|
style: c.value
|
6390
6398
|
}, [createVNode("div", {
|
6391
6399
|
class: "kg-resizable-handle",
|
6392
6400
|
onClick: y,
|
6393
|
-
onMousedown:
|
6401
|
+
onMousedown: v
|
6394
6402
|
}, [createVNode("div", {
|
6395
6403
|
class: "kg-resizable-handle-line"
|
6396
|
-
}, null)]), (
|
6404
|
+
}, null)]), (m = r.default) == null ? void 0 : m.call(r)]);
|
6397
6405
|
};
|
6398
6406
|
}
|
6399
6407
|
}), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF"), KgForm_Item_Addon_Lookup = "";
|
@@ -6799,6 +6807,18 @@ class ValidateSqlQuery {
|
|
6799
6807
|
});
|
6800
6808
|
}
|
6801
6809
|
}
|
6810
|
+
class ValidateVarButtonVarNameQuery$1 {
|
6811
|
+
constructor(t) {
|
6812
|
+
p(this, "varName");
|
6813
|
+
keys(t != null ? t : {}).forEach((r) => {
|
6814
|
+
switch (r) {
|
6815
|
+
case "varName":
|
6816
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
6817
|
+
break;
|
6818
|
+
}
|
6819
|
+
});
|
6820
|
+
}
|
6821
|
+
}
|
6802
6822
|
class VarButton {
|
6803
6823
|
constructor(t) {
|
6804
6824
|
p(this, "available_flag");
|
@@ -7885,23 +7905,23 @@ function useKgTable(e) {
|
|
7885
7905
|
return ((y = t.varGridConfig.value) == null ? void 0 : y.aut_load_flg) === 1;
|
7886
7906
|
}), b = computed(
|
7887
7907
|
() => {
|
7888
|
-
var y,
|
7889
|
-
return !!((y = t.varGridConfig.value) != null && y.id) && ((
|
7908
|
+
var y, m;
|
7909
|
+
return !!((y = t.varGridConfig.value) != null && y.id) && ((m = t.varGridConfig.value) == null ? void 0 : m.show_bottom_left_flg) !== 0;
|
7890
7910
|
}
|
7891
7911
|
), E = computed(
|
7892
7912
|
() => {
|
7893
|
-
var y,
|
7894
|
-
return !!((y = t.varGridConfig.value) != null && y.id) && ((
|
7913
|
+
var y, m;
|
7914
|
+
return !!((y = t.varGridConfig.value) != null && y.id) && ((m = t.varGridConfig.value) == null ? void 0 : m.show_bottom_right_flg) !== 0;
|
7895
7915
|
}
|
7896
7916
|
);
|
7897
7917
|
computed(() => {
|
7898
|
-
var y,
|
7899
|
-
return (
|
7918
|
+
var y, m;
|
7919
|
+
return (m = (y = t.varGridConfig.value) == null ? void 0 : y.id_clm) != null ? m : "id";
|
7900
7920
|
});
|
7901
7921
|
const g = computed(() => {
|
7902
|
-
var y,
|
7903
|
-
return JSON.parse((
|
7904
|
-
}),
|
7922
|
+
var y, m;
|
7923
|
+
return JSON.parse((m = (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opts) != null ? m : "[]");
|
7924
|
+
}), v = computed(() => {
|
7905
7925
|
var y;
|
7906
7926
|
return (y = t.varGridConfig.value) == null ? void 0 : y.pg_size_opt;
|
7907
7927
|
}), _ = computed(() => {
|
@@ -7923,11 +7943,11 @@ function useKgTable(e) {
|
|
7923
7943
|
isShowBottomLeft: b,
|
7924
7944
|
isShowBottomRight: E,
|
7925
7945
|
id: computed(() => {
|
7926
|
-
var y,
|
7927
|
-
return (
|
7946
|
+
var y, m;
|
7947
|
+
return (m = (y = t.varGridConfig.value) == null ? void 0 : y.id_clm) != null ? m : "id";
|
7928
7948
|
}),
|
7929
7949
|
pageSizeOptions: g,
|
7930
|
-
pageSizeOption:
|
7950
|
+
pageSizeOption: v,
|
7931
7951
|
kgSearchFormID: _,
|
7932
7952
|
onReady: onEventFactory(
|
7933
7953
|
t.formID,
|
@@ -7982,8 +8002,8 @@ const KgTable_Setting = "", FORM_ID__VAR_GRID_CONFIG = "kg-table.VarGridConfig",
|
|
7982
8002
|
}) => (l.value = o.value ? [o.value] : [], !0), !0), n.onOpen(async ({
|
7983
8003
|
model: l
|
7984
8004
|
}) => (i = watch(l, (c) => {
|
7985
|
-
var u, d, b, E, g,
|
7986
|
-
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (
|
8005
|
+
var u, d, b, E, g, v, _, y, m, T, k, A, C, I, D, R, w, N, O, V, P, M;
|
8006
|
+
c && (c.id = (d = (u = o.value) == null ? void 0 : u.id) != null ? d : null, c.frm_id = r == null ? void 0 : r.formID, c.aut_load_flg = (E = (b = o.value) == null ? void 0 : b.aut_load_flg) != null ? E : 0, c.mult_flg = (v = (g = o.value) == null ? void 0 : g.mult_flg) != null ? v : 0, c.show_check_column_flg = (y = (_ = o.value) == null ? void 0 : _.show_check_column_flg) != null ? y : 0, c.show_bottom_left_flg = (T = (m = o.value) == null ? void 0 : m.show_bottom_left_flg) != null ? T : 1, c.show_bottom_right_flg = (A = (k = o.value) == null ? void 0 : k.show_bottom_right_flg) != null ? A : 1, c.convert_sort_field_to_under_score_flg = (I = (C = o.value) == null ? void 0 : C.convert_sort_field_to_under_score_flg) != null ? I : 0, c.pg_size_opts = (R = (D = o.value) == null ? void 0 : D.pg_size_opts) != null ? R : "[10, 20, 50, 100]", c.pg_size_opt = (N = (w = o.value) == null ? void 0 : w.pg_size_opt) != null ? N : 10, c.cmd_prm = (V = (O = o.value) == null ? void 0 : O.cmd_prm) != null ? V : void 0, c.button_display_type = (M = (P = o.value) == null ? void 0 : P.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
7987
8007
|
}, {
|
7988
8008
|
immediate: !0
|
7989
8009
|
}), KgUtil.hideLoading(), !1)), n.onClose(async () => (i == null || i(), !1)), n.onBeforeOk(async ({
|
@@ -8699,7 +8719,7 @@ function _useTransferColumns(e, t) {
|
|
8699
8719
|
class: "kg-not-clickable"
|
8700
8720
|
}, {
|
8701
8721
|
default: () => {
|
8702
|
-
let c, u, d, b, E, g,
|
8722
|
+
let c, u, d, b, E, g, v;
|
8703
8723
|
return createVNode(Fragment, null, [createVNode(Select.Option, {
|
8704
8724
|
value: "DESC"
|
8705
8725
|
}, _isSlot$e(c = r.t("kg.KgTableSettingConfigModalVarGridMaster.DESC")) ? c : {
|
@@ -8726,8 +8746,8 @@ function _useTransferColumns(e, t) {
|
|
8726
8746
|
default: () => [g]
|
8727
8747
|
}), createVNode(Select.Option, {
|
8728
8748
|
value: "ROUTE_LINK"
|
8729
|
-
}, _isSlot$e(
|
8730
|
-
default: () => [
|
8749
|
+
}, _isSlot$e(v = r.t("kg.KgTableSettingConfigModalVarGridMaster.ROUTE_LINK")) ? v : {
|
8750
|
+
default: () => [v]
|
8731
8751
|
})]);
|
8732
8752
|
},
|
8733
8753
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -8805,8 +8825,8 @@ function _useDragRow$1(e, t, r) {
|
|
8805
8825
|
height: g
|
8806
8826
|
} = u.parentElement.getBoundingClientRect();
|
8807
8827
|
E && g && (b.style.width = `${E + 2}px`, b.style.height = `${g + 2}px`), (_ = d.dataTransfer) == null || _.setDragImage(b, -10, (g + 2) / 2);
|
8808
|
-
const
|
8809
|
-
b.appendChild(
|
8828
|
+
const v = await toCanvas(u.parentElement);
|
8829
|
+
b.appendChild(v), document.body.appendChild(b), (y = d.dataTransfer) == null || y.setDragImage(b, -10, (g + 2) / 2);
|
8810
8830
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
8811
8831
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
8812
8832
|
const b = document.querySelector("#__kg_table_config_fields_drag_image__");
|
@@ -8853,12 +8873,12 @@ function _useDragRow$1(e, t, r) {
|
|
8853
8873
|
const b = t.value.findIndex((_) => _.var_nam === u), E = t.value.findIndex((_) => _.var_nam === d);
|
8854
8874
|
if (b === -1 || E === -1)
|
8855
8875
|
return;
|
8856
|
-
const g = t.value.find((_) => _.var_nam === u),
|
8876
|
+
const g = t.value.find((_) => _.var_nam === u), v = [];
|
8857
8877
|
t.value.forEach((_, y) => {
|
8858
|
-
b > E ? y < E ?
|
8859
|
-
}),
|
8878
|
+
b > E ? y < E ? v.push(_) : y === E ? (v.push(g), v.push(_)) : y > E && y !== b && v.push(_) : b < E && (y < b ? v.push(_) : y === b || (y === E ? (v.push(_), v.push(g)) : v.push(_)));
|
8879
|
+
}), v.forEach((_, y) => {
|
8860
8880
|
_.srtseq = y + 1;
|
8861
|
-
}), t.value =
|
8881
|
+
}), t.value = v, nextTick().finally(() => {
|
8862
8882
|
KgUtil.hideLoading();
|
8863
8883
|
});
|
8864
8884
|
});
|
@@ -8888,7 +8908,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8888
8908
|
s.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
8889
8909
|
dft_val: a.formID
|
8890
8910
|
}), !1)), o.onOpen(async ({
|
8891
|
-
isCreating:
|
8911
|
+
isCreating: m,
|
8892
8912
|
isUpdating: T,
|
8893
8913
|
isCopying: k,
|
8894
8914
|
row: A,
|
@@ -8897,7 +8917,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8897
8917
|
var D, R, w, N, O;
|
8898
8918
|
const I = a.store.getSystemVarGridDetails(a.formID);
|
8899
8919
|
switch (c.value = I ? cloneDeep(toRaw(unref(I))) : [], !0) {
|
8900
|
-
case
|
8920
|
+
case m: {
|
8901
8921
|
u.value = [];
|
8902
8922
|
break;
|
8903
8923
|
}
|
@@ -8906,24 +8926,24 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8906
8926
|
if (A != null && A.id)
|
8907
8927
|
try {
|
8908
8928
|
o.store.setIsLoading(n.formID, !0);
|
8909
|
-
const
|
8929
|
+
const V = await QueryByID$1({
|
8910
8930
|
params: {
|
8911
8931
|
id: A.id
|
8912
8932
|
}
|
8913
8933
|
});
|
8914
8934
|
c.value = c.value.map((M) => {
|
8915
8935
|
var L;
|
8916
|
-
const K = (L =
|
8936
|
+
const K = (L = V == null ? void 0 : V.varGridDetails) == null ? void 0 : L.find((B) => B.var_nam === M.var_nam);
|
8917
8937
|
return K ? {
|
8918
8938
|
...M,
|
8919
8939
|
...K,
|
8920
8940
|
id: M.id
|
8921
8941
|
} : M;
|
8922
8942
|
});
|
8923
|
-
const
|
8924
|
-
u.value = c.value.filter((M) =>
|
8925
|
-
} catch (
|
8926
|
-
throw
|
8943
|
+
const P = (R = (D = V == null ? void 0 : V.varGridDetails) == null ? void 0 : D.map((M) => M.var_nam)) != null ? R : [];
|
8944
|
+
u.value = c.value.filter((M) => P.includes(M.var_nam)).map((M) => M.id);
|
8945
|
+
} catch (V) {
|
8946
|
+
throw V;
|
8927
8947
|
} finally {
|
8928
8948
|
o.store.setIsLoading(n.formID, !1);
|
8929
8949
|
}
|
@@ -8940,14 +8960,14 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8940
8960
|
}
|
8941
8961
|
return !1;
|
8942
8962
|
}), o.onBeforeOk(async ({
|
8943
|
-
model:
|
8963
|
+
model: m
|
8944
8964
|
}) => {
|
8945
8965
|
var k, A;
|
8946
|
-
const T =
|
8966
|
+
const T = m.value;
|
8947
8967
|
return T.frm_id = a.formID, T.varGridDetails = (A = (k = c.value) == null ? void 0 : k.filter((C) => u.value.includes(C.id))) != null ? A : [], !1;
|
8948
8968
|
}), o.onOk(async () => (a.store.retrieve(a.formID), !1)), i.onUpdateBeforeClick(({
|
8949
|
-
row:
|
8950
|
-
}) => (
|
8969
|
+
row: m
|
8970
|
+
}) => (m == null ? void 0 : m.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((T) => {
|
8951
8971
|
KgUtil.confirm({
|
8952
8972
|
content: r.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
8953
8973
|
okButtonProps: {
|
@@ -8967,7 +8987,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8967
8987
|
} = _useTransferColumns(e.hostFormID, c);
|
8968
8988
|
_useDragRow$1(e.hostFormID, c, d);
|
8969
8989
|
const g = computed(() => {
|
8970
|
-
const
|
8990
|
+
const m = l.selectedRow.value;
|
8971
8991
|
return {
|
8972
8992
|
KgSubmit: {
|
8973
8993
|
kgClass: "kg-table-setting-config-modal--var-grid-master--kg-submit"
|
@@ -8976,31 +8996,31 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
8976
8996
|
kgDisabled: (T) => {
|
8977
8997
|
switch (T.var_nam) {
|
8978
8998
|
case "set-default":
|
8979
|
-
if ((
|
8999
|
+
if ((m == null ? void 0 : m.def_flg) === 1)
|
8980
9000
|
return !0;
|
8981
9001
|
break;
|
8982
9002
|
}
|
8983
9003
|
}
|
8984
9004
|
}
|
8985
9005
|
};
|
8986
|
-
}),
|
9006
|
+
}), v = ref({
|
8987
9007
|
KgSubmit: {
|
8988
9008
|
"KgForm.Item.control": {
|
8989
9009
|
varGridDetails: () => createVNode(Transfer, {
|
8990
9010
|
dataSource: c.value,
|
8991
9011
|
targetKeys: u.value,
|
8992
|
-
"onUpdate:targetKeys": (
|
8993
|
-
rowKey: (
|
9012
|
+
"onUpdate:targetKeys": (m) => u.value = m,
|
9013
|
+
rowKey: (m) => m.id,
|
8994
9014
|
showSearch: !0,
|
8995
9015
|
showSelectAll: !1,
|
8996
9016
|
searchPlaceholder: " ",
|
8997
|
-
filterOption: (
|
9017
|
+
filterOption: (m, T) => {
|
8998
9018
|
var k;
|
8999
|
-
return !!((k = T.var_nam) != null && k.includes(
|
9019
|
+
return !!((k = T.var_nam) != null && k.includes(m));
|
9000
9020
|
}
|
9001
9021
|
}, {
|
9002
9022
|
children: ({
|
9003
|
-
direction:
|
9023
|
+
direction: m,
|
9004
9024
|
filteredItems: T,
|
9005
9025
|
selectedKeys: k,
|
9006
9026
|
disabled: A,
|
@@ -9016,17 +9036,17 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
9016
9036
|
class: "kg-flex-table",
|
9017
9037
|
size: "small",
|
9018
9038
|
scroll: {
|
9019
|
-
x:
|
9039
|
+
x: m === "left" ? "370px" : `${1552 + 32}px`,
|
9020
9040
|
y: "auto"
|
9021
9041
|
},
|
9022
|
-
columns:
|
9042
|
+
columns: m === "left" ? b() : E(),
|
9023
9043
|
rowKey: "id",
|
9024
9044
|
dataSource: D,
|
9025
9045
|
customRow: (R) => {
|
9026
9046
|
let w = {
|
9027
|
-
onClick: (N) => y(N, R,
|
9047
|
+
onClick: (N) => y(N, R, m, k)
|
9028
9048
|
};
|
9029
|
-
return
|
9049
|
+
return m === "right" && (w["kg-host-frm_id"] = a.formID, w["kg-var_nam"] = R.var_nam), w;
|
9030
9050
|
},
|
9031
9051
|
rowSelection: _({
|
9032
9052
|
disabled: A,
|
@@ -9040,13 +9060,13 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
9040
9060
|
}
|
9041
9061
|
}
|
9042
9062
|
}), _ = ({
|
9043
|
-
disabled:
|
9063
|
+
disabled: m,
|
9044
9064
|
selectedKeys: T,
|
9045
9065
|
onItemSelectAll: k,
|
9046
9066
|
onItemSelect: A
|
9047
9067
|
}) => ({
|
9048
9068
|
getCheckboxProps: (C) => ({
|
9049
|
-
disabled:
|
9069
|
+
disabled: m || C.disabled
|
9050
9070
|
}),
|
9051
9071
|
onSelectAll(C, I) {
|
9052
9072
|
const D = I.filter((R) => !R.disabled).map(({
|
@@ -9062,9 +9082,9 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
9062
9082
|
selectedRowKeys: T,
|
9063
9083
|
columnWidth: 32
|
9064
9084
|
});
|
9065
|
-
function y(
|
9066
|
-
if (!KgDomUtil.isNotClickable(
|
9067
|
-
switch (A.length = 0,
|
9085
|
+
function y(m, T, k, A) {
|
9086
|
+
if (!KgDomUtil.isNotClickable(m.target, ["ant-input"]))
|
9087
|
+
switch (A.length = 0, m.detail) {
|
9068
9088
|
case 1:
|
9069
9089
|
A[0] = T.id;
|
9070
9090
|
break;
|
@@ -9083,7 +9103,7 @@ const KgTable_Setting_ConfigModal_VarGridMaster = "", getProps$G = () => ({
|
|
9083
9103
|
return () => createVNode(KgVar, {
|
9084
9104
|
class: "kg-table--config-modal--var-grid-master",
|
9085
9105
|
kgProps: g.value,
|
9086
|
-
kgSlots:
|
9106
|
+
kgSlots: v.value
|
9087
9107
|
}, null);
|
9088
9108
|
}
|
9089
9109
|
}), getProps$F = () => ({
|
@@ -9194,9 +9214,9 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
9194
9214
|
return o.onOpen(async ({
|
9195
9215
|
model: l
|
9196
9216
|
}) => {
|
9197
|
-
var u, d, b, E, g,
|
9217
|
+
var u, d, b, E, g, v, _;
|
9198
9218
|
const c = s.currentVarGridMaster.value;
|
9199
|
-
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(b = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? b : ""}_COPY`, l.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", l.value.usr_id = (g = c == null ? void 0 : c.usr_id) != null ? g : "", l.value.grp_nam = (
|
9219
|
+
return l.value.grd_var_nam = `${(u = c == null ? void 0 : c.grd_var_nam) != null ? u : ""}_COPY`, l.value.grd_var_nam_dsc = `${(b = (d = c == null ? void 0 : c.grd_var_nam_dsc) != null ? d : c == null ? void 0 : c.grd_var_nam) != null ? b : ""}_COPY`, l.value.frm_id = (E = c == null ? void 0 : c.frm_id) != null ? E : "", l.value.usr_id = (g = c == null ? void 0 : c.usr_id) != null ? g : "", l.value.grp_nam = (v = c == null ? void 0 : c.grp_nam) != null ? v : "", l.value.varGridDetails = (_ = c == null ? void 0 : c.varGridDetails) != null ? _ : [], KgUtil.hideLoading(), !1;
|
9200
9220
|
}), o.onBeforeOk(async ({
|
9201
9221
|
model: l
|
9202
9222
|
}) => (l.value, !1)), o.onOk(async () => (message.success(a.t("kg.KgTable.save-var-grid-master-as-success-message")), s.store.retrieve(s.formID), !1)), o.onClose(async () => (r("kgClose"), !1)), i.store.setIsCopying(i.formID, !0), () => createVNode(KgVar, null, null);
|
@@ -9234,7 +9254,7 @@ const getProps$D = () => ({
|
|
9234
9254
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
9235
9255
|
});
|
9236
9256
|
}
|
9237
|
-
function
|
9257
|
+
function v(C) {
|
9238
9258
|
n.store.setCurrentVarGridMasterID(n.formID, C.id);
|
9239
9259
|
}
|
9240
9260
|
async function _() {
|
@@ -9260,7 +9280,7 @@ const getProps$D = () => ({
|
|
9260
9280
|
async function y() {
|
9261
9281
|
b.value.visible = !0;
|
9262
9282
|
}
|
9263
|
-
function
|
9283
|
+
function m() {
|
9264
9284
|
return createVNode(Menu.SubMenu, {
|
9265
9285
|
key: "columns",
|
9266
9286
|
title: a.t("kg.KgTable.column"),
|
@@ -9314,7 +9334,7 @@ const getProps$D = () => ({
|
|
9314
9334
|
key: R.id,
|
9315
9335
|
class: R.id === ((w = n.currentVarGridMaster.value) == null ? void 0 : w.id) ? "selected" : "",
|
9316
9336
|
"kg-var_nam": R.grd_var_nam,
|
9317
|
-
onClick: () =>
|
9337
|
+
onClick: () => v(R)
|
9318
9338
|
}, {
|
9319
9339
|
default: () => [n.t(R.grd_var_nam).value]
|
9320
9340
|
});
|
@@ -9398,7 +9418,7 @@ const getProps$D = () => ({
|
|
9398
9418
|
"onUpdate:openKeys": (C) => o.value = C,
|
9399
9419
|
selectable: !1
|
9400
9420
|
}, {
|
9401
|
-
default: () => [
|
9421
|
+
default: () => [m(), k(), T(), A()]
|
9402
9422
|
})
|
9403
9423
|
}), d.value.visible && createVNode(KgTableSettingConfigModal, {
|
9404
9424
|
visible: d.value.visible,
|
@@ -9623,7 +9643,7 @@ const getProps$z = () => ({
|
|
9623
9643
|
return isString(k) && (k = k.replaceAll("\\n", `
|
9624
9644
|
`)), isNil(k) && (k = ""), k;
|
9625
9645
|
}), g = ref(null);
|
9626
|
-
function
|
9646
|
+
function v(k) {
|
9627
9647
|
var A, C, I;
|
9628
9648
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
9629
9649
|
switch (e.kgContext) {
|
@@ -9665,7 +9685,6 @@ const getProps$z = () => ({
|
|
9665
9685
|
default: () => [createVNode(KgForm.Item, {
|
9666
9686
|
kgVarName: e.kgVarName,
|
9667
9687
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9668
|
-
kgRules: i.rules.value[e.kgVarName],
|
9669
9688
|
kgSpan: 24,
|
9670
9689
|
kgDisabled: d.value ? !0 : void 0,
|
9671
9690
|
onKgSubmit: _
|
@@ -9673,8 +9692,8 @@ const getProps$z = () => ({
|
|
9673
9692
|
})]
|
9674
9693
|
});
|
9675
9694
|
}
|
9676
|
-
function
|
9677
|
-
var k, A, C, I, D, R, w, N, O,
|
9695
|
+
function m() {
|
9696
|
+
var k, A, C, I, D, R, w, N, O, V, P;
|
9678
9697
|
if (u.value)
|
9679
9698
|
return y();
|
9680
9699
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
@@ -9710,7 +9729,7 @@ const getProps$z = () => ({
|
|
9710
9729
|
return T();
|
9711
9730
|
}
|
9712
9731
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
9713
|
-
const M = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties), K = (
|
9732
|
+
const M = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties), K = (V = (O = e.kgRow) == null ? void 0 : O[M.leftColumn]) != null ? V : 0;
|
9714
9733
|
switch (e.kgContext) {
|
9715
9734
|
case KG_TABLE_CELL_CONTEXT.TABLE_FILTER:
|
9716
9735
|
return K;
|
@@ -9718,7 +9737,7 @@ const getProps$z = () => ({
|
|
9718
9737
|
return createVNode(KgProgressA, {
|
9719
9738
|
kgTextWidth: M.textWidth,
|
9720
9739
|
kgLeft: K,
|
9721
|
-
kgRight: (
|
9740
|
+
kgRight: (P = e.kgRow) == null ? void 0 : P[M.rightColumn]
|
9722
9741
|
}, null);
|
9723
9742
|
}
|
9724
9743
|
break;
|
@@ -9752,14 +9771,14 @@ const getProps$z = () => ({
|
|
9752
9771
|
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table--body-cell--update-link"), createVNode("pre", {
|
9753
9772
|
innerHTML: E.value,
|
9754
9773
|
class: A,
|
9755
|
-
onClick:
|
9774
|
+
onClick: v
|
9756
9775
|
}, null);
|
9757
9776
|
}
|
9758
9777
|
return () => createVNode("div", {
|
9759
9778
|
class: b.value,
|
9760
9779
|
title: E.value,
|
9761
9780
|
"kg-value": e.kgValue
|
9762
|
-
}, [
|
9781
|
+
}, [m()]);
|
9763
9782
|
}
|
9764
9783
|
});
|
9765
9784
|
function _useRenderBodyCell() {
|
@@ -9785,7 +9804,7 @@ function _useRenderBodyCell() {
|
|
9785
9804
|
value: b,
|
9786
9805
|
renderIndex: c
|
9787
9806
|
}) : g = b;
|
9788
|
-
const
|
9807
|
+
const v = createVNode(KgTableBodyCell, {
|
9789
9808
|
kgContext: o,
|
9790
9809
|
kgRow: u,
|
9791
9810
|
kgValue: g,
|
@@ -9793,7 +9812,7 @@ function _useRenderBodyCell() {
|
|
9793
9812
|
onKgUpdateLinkClick: () => n(u)
|
9794
9813
|
}, null);
|
9795
9814
|
if (!((y = e == null ? void 0 : e.KgTable) != null && y.bodyCell))
|
9796
|
-
return
|
9815
|
+
return v;
|
9797
9816
|
const _ = E ? t.store.getVarGridDetail(t.formID, E) : null;
|
9798
9817
|
return e.KgTable.bodyCell({
|
9799
9818
|
column: l,
|
@@ -9803,7 +9822,7 @@ function _useRenderBodyCell() {
|
|
9803
9822
|
value: b,
|
9804
9823
|
row: u,
|
9805
9824
|
varGridDetail: _,
|
9806
|
-
defaultRender:
|
9825
|
+
defaultRender: v
|
9807
9826
|
});
|
9808
9827
|
}
|
9809
9828
|
return {
|
@@ -9818,7 +9837,7 @@ function _useColumns(e) {
|
|
9818
9837
|
return ((E = r.store.getVarGridConfig(r.formID)) == null ? void 0 : E.show_check_column_flg) === 1;
|
9819
9838
|
}), u = computed(() => {
|
9820
9839
|
var T, k, A;
|
9821
|
-
const E = useKg(), g = s.store.getDatas(r.formID),
|
9840
|
+
const E = useKg(), g = s.store.getDatas(r.formID), v = (T = s.store.getTableWidth(r.formID)) != null ? T : 0, _ = (k = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? k : 0, y = r.store.getCurrentVisibleVarGridDetails(r.formID), m = [{
|
9822
9841
|
dataIndex: "index",
|
9823
9842
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
9824
9843
|
fixed: "left",
|
@@ -9846,7 +9865,7 @@ function _useColumns(e) {
|
|
9846
9865
|
var F, x, q, Q;
|
9847
9866
|
return !(C.ord_flg !== 1 || (x = (F = t == null ? void 0 : t.value) == null ? void 0 : F.KgTable) != null && x.kgDisabled || isNil((Q = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) == null ? void 0 : Q.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
|
9848
9867
|
}
|
9849
|
-
function
|
9868
|
+
function V() {
|
9850
9869
|
var F, x, q, Q, Z, ae;
|
9851
9870
|
if (((x = (F = E.option.value.KgTable) == null ? void 0 : F.filter) == null ? void 0 : x.on) === !0 && C.filter_flag === 1 && !((Q = (q = t == null ? void 0 : t.value) == null ? void 0 : q.KgTable) != null && Q.kgDisabled) && !(isNil((ae = (Z = t == null ? void 0 : t.value) == null ? void 0 : Z.KgTable) == null ? void 0 : ae.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
|
9852
9871
|
return uniqBy(g.map((te) => {
|
@@ -9864,7 +9883,7 @@ function _useColumns(e) {
|
|
9864
9883
|
};
|
9865
9884
|
}), "value");
|
9866
9885
|
}
|
9867
|
-
function
|
9886
|
+
function P() {
|
9868
9887
|
var F, x, q;
|
9869
9888
|
return ((x = (F = E.option.value.KgTable) == null ? void 0 : F.filter) == null ? void 0 : x.on) !== !0 ? null : ((q = o.value) == null ? void 0 : q[D]) || null;
|
9870
9889
|
}
|
@@ -9898,8 +9917,8 @@ function _useColumns(e) {
|
|
9898
9917
|
fixed: N(),
|
9899
9918
|
sorter: O(),
|
9900
9919
|
sortOrder: ((L = l.value) == null ? void 0 : L.field) === D && (U = (B = l.value) == null ? void 0 : B.order) != null ? U : null,
|
9901
|
-
filteredValue:
|
9902
|
-
filters:
|
9920
|
+
filteredValue: P(),
|
9921
|
+
filters: V(),
|
9903
9922
|
onFilter: (F, x) => F === "" ? isNil(x == null ? void 0 : x[D]) || (x == null ? void 0 : x[D]) === "" : (x == null ? void 0 : x[D]) === F,
|
9904
9923
|
customHeaderCell: () => ({
|
9905
9924
|
"kg-frm_id": r.formID,
|
@@ -9917,10 +9936,10 @@ function _useColumns(e) {
|
|
9917
9936
|
}
|
9918
9937
|
};
|
9919
9938
|
})) != null ? A : []];
|
9920
|
-
return (_ === 0 ||
|
9939
|
+
return (_ === 0 || v > _ && !(y != null && y.find((C) => C.width === "auto"))) && m.push({
|
9921
9940
|
width: "auto",
|
9922
9941
|
customRender: () => null
|
9923
|
-
}),
|
9942
|
+
}), m;
|
9924
9943
|
}), d = computed(() => {
|
9925
9944
|
var g;
|
9926
9945
|
let E = 0;
|
@@ -9981,8 +10000,8 @@ function _useDragColumn(e, t) {
|
|
9981
10000
|
height: b
|
9982
10001
|
} = l.getBoundingClientRect();
|
9983
10002
|
d && b && (u.style.width = `${d + 2}px`, u.style.height = `${b + 2}px`), (E = c.dataTransfer) == null || E.setDragImage(u, -10, (b + 2) / 2), toCanvas(l).then((g) => {
|
9984
|
-
var
|
9985
|
-
u.appendChild(g), document.body.appendChild(u), (
|
10003
|
+
var v;
|
10004
|
+
u.appendChild(g), document.body.appendChild(u), (v = c.dataTransfer) == null || v.setDragImage(u, -10, (b + 2) / 2);
|
9986
10005
|
});
|
9987
10006
|
}, l.addEventListener("dragstart", l.__kg__dragstart__), l.__kg__dragend__ = (c) => {
|
9988
10007
|
l.classList.remove("dragging"), l.parentElement.classList.remove("dragging");
|
@@ -10086,11 +10105,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10086
10105
|
if (G[0] === s.formID) {
|
10087
10106
|
const z = G[1], Y = G[2], ee = z[o.id.value];
|
10088
10107
|
switch (!0) {
|
10089
|
-
case (Y && !
|
10090
|
-
x([...
|
10108
|
+
case (Y && !P.value.includes(ee)):
|
10109
|
+
x([...P.value, ee]);
|
10091
10110
|
break;
|
10092
|
-
case (!Y &&
|
10093
|
-
x(without$1(
|
10111
|
+
case (!Y && P.value.includes(ee)):
|
10112
|
+
x(without$1(P.value, ee));
|
10094
10113
|
break;
|
10095
10114
|
}
|
10096
10115
|
}
|
@@ -10112,13 +10131,13 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10112
10131
|
scrollX: E
|
10113
10132
|
} = _useColumns(e), {
|
10114
10133
|
isLoading: g
|
10115
|
-
} = _useLoading(),
|
10134
|
+
} = _useLoading(), v = ref(null), {
|
10116
10135
|
renderBodyCell: _
|
10117
10136
|
} = _useRenderBodyCell();
|
10118
|
-
_useResizeObserver$1(
|
10137
|
+
_useResizeObserver$1(v), _useDragColumn(v, u);
|
10119
10138
|
const {
|
10120
10139
|
datas: y,
|
10121
|
-
transformDatas:
|
10140
|
+
transformDatas: m
|
10122
10141
|
} = _useDatas(), T = computed(() => {
|
10123
10142
|
var $, G;
|
10124
10143
|
return (G = ($ = s.varButtonSearch.value) == null ? void 0 : $.cmd) != null ? G : null;
|
@@ -10162,7 +10181,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10162
10181
|
fixed: "left",
|
10163
10182
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10164
10183
|
hideSelectAll: !o.isMultiSelect.value,
|
10165
|
-
selectedRowKeys:
|
10184
|
+
selectedRowKeys: P,
|
10166
10185
|
preserveSelectedRowKeys: !1,
|
10167
10186
|
getCheckboxProps: ($) => {
|
10168
10187
|
var G;
|
@@ -10188,11 +10207,11 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10188
10207
|
break;
|
10189
10208
|
}
|
10190
10209
|
return $;
|
10191
|
-
}),
|
10210
|
+
}), V = computed(() => {
|
10192
10211
|
var G;
|
10193
10212
|
let $ = "kg-table-bottom";
|
10194
10213
|
return ((G = s.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && ($ += " kg-table-bottom--border"), $;
|
10195
|
-
}),
|
10214
|
+
}), P = (X = o.store.getSelectedRowKeys(s.formID)) != null ? X : ref([]), M = reactive({
|
10196
10215
|
pageIndex: 1,
|
10197
10216
|
pageSize: 10,
|
10198
10217
|
total: 0
|
@@ -10344,9 +10363,9 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10344
10363
|
const {
|
10345
10364
|
datas: Ee,
|
10346
10365
|
total: Ae
|
10347
|
-
} =
|
10366
|
+
} = m(ye), Ie = await o.store.emit(s.formID, "beforeSetDatas", {
|
10348
10367
|
datas: Ee
|
10349
|
-
}), ke = cloneDeep(
|
10368
|
+
}), ke = cloneDeep(P.value);
|
10350
10369
|
o.store.setDatas({
|
10351
10370
|
frmId: s.formID,
|
10352
10371
|
datas: Ee.value,
|
@@ -10382,17 +10401,17 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10382
10401
|
case !0:
|
10383
10402
|
{
|
10384
10403
|
const Y = $[o.id.value];
|
10385
|
-
|
10404
|
+
P.value.includes(Y) ? P.value = without$1(P.value, Y) : P.value = [...(G = P.value) != null ? G : [], Y];
|
10386
10405
|
}
|
10387
10406
|
break;
|
10388
10407
|
case !1:
|
10389
10408
|
{
|
10390
10409
|
const Y = $[o.id.value];
|
10391
|
-
(z =
|
10410
|
+
(z = P.value) != null && z.includes(Y) ? P.value = [] : P.value = [Y];
|
10392
10411
|
}
|
10393
10412
|
break;
|
10394
10413
|
}
|
10395
|
-
o.store.setSelectedRows(s.formID,
|
10414
|
+
o.store.setSelectedRows(s.formID, P.value.map((Y) => {
|
10396
10415
|
var ee;
|
10397
10416
|
return (ee = y.value) == null ? void 0 : ee.find((ge) => ge[o.id.value] === Y);
|
10398
10417
|
}).filter((Y) => !!Y));
|
@@ -10474,7 +10493,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10474
10493
|
return createVNode("div", {
|
10475
10494
|
class: O.value,
|
10476
10495
|
"kg-frm_id": s.formID,
|
10477
|
-
ref:
|
10496
|
+
ref: v
|
10478
10497
|
}, [createVNode(Table, {
|
10479
10498
|
class: "kg-flex-table",
|
10480
10499
|
size: "small",
|
@@ -10508,14 +10527,14 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10508
10527
|
expandedRowRender: (z = r == null ? void 0 : r.KgTable) == null ? void 0 : z.expandedRowRender,
|
10509
10528
|
summary: ue
|
10510
10529
|
}), (o.isShowBottomLeft.value || o.isShowBottomRight.value) && createVNode("div", {
|
10511
|
-
class:
|
10530
|
+
class: V.value
|
10512
10531
|
}, [createVNode("div", {
|
10513
10532
|
class: "left"
|
10514
10533
|
}, [o.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
10515
|
-
kgShowClearCheck:
|
10534
|
+
kgShowClearCheck: P.value.length > 0,
|
10516
10535
|
kgShowClearTable: M.total > 0,
|
10517
|
-
kgShowLocate:
|
10518
|
-
kgTotal:
|
10536
|
+
kgShowLocate: P.value.length === 1,
|
10537
|
+
kgTotal: P.value.length,
|
10519
10538
|
kgDisabled: I.value
|
10520
10539
|
}, null)]), createVNode("div", {
|
10521
10540
|
class: "right"
|
@@ -10559,14 +10578,14 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10559
10578
|
var _, y;
|
10560
10579
|
return (y = (_ = d == null ? void 0 : d.value) == null ? void 0 : _.ret_fld) != null ? y : "";
|
10561
10580
|
});
|
10562
|
-
u.onRowDoubleClick(async () => (await
|
10581
|
+
u.onRowDoubleClick(async () => (await v(), !1));
|
10563
10582
|
function g() {
|
10564
10583
|
r("update:visible", !1);
|
10565
10584
|
}
|
10566
|
-
async function
|
10567
|
-
var _, y,
|
10585
|
+
async function v() {
|
10586
|
+
var _, y, m, T, k, A, C;
|
10568
10587
|
if (b.value) {
|
10569
|
-
const I = (y = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? y : [], D = (
|
10588
|
+
const I = (y = (_ = u.selectedRows) == null ? void 0 : _.value) != null ? y : [], D = (m = I.map((w) => w[E.value])) != null ? m : [];
|
10570
10589
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
10571
10590
|
var_nam: i,
|
10572
10591
|
isMultiple: !0,
|
@@ -10606,7 +10625,7 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10606
10625
|
},
|
10607
10626
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
10608
10627
|
onCancel: g,
|
10609
|
-
onOk:
|
10628
|
+
onOk: v
|
10610
10629
|
}, {
|
10611
10630
|
default: () => [createVNode(KgVar, null, null)]
|
10612
10631
|
});
|
@@ -10708,16 +10727,23 @@ const KgTable$1 = "", getProps$y = () => ({
|
|
10708
10727
|
}, null);
|
10709
10728
|
}
|
10710
10729
|
});
|
10711
|
-
function
|
10712
|
-
const t = useKg(), r = useKgVar(), a = useKgSubmit(), n = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), s = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), i = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName)), o = ref([]), l =
|
10713
|
-
|
10714
|
-
|
10715
|
-
|
10730
|
+
function _useFormRules(e) {
|
10731
|
+
const t = useKg(), r = useKgVar(), a = useKgSubmit(), n = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), s = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), i = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName)), o = ref([]), l = computed(() => {
|
10732
|
+
var u, d;
|
10733
|
+
return [
|
10734
|
+
...o.value,
|
10735
|
+
...(u = e.kgRules) != null ? u : [],
|
10736
|
+
...(d = a.rules.value[e.kgVarName]) != null ? d : []
|
10737
|
+
];
|
10738
|
+
}), c = ref(!1);
|
10739
|
+
return watch([n, i, s], async ([u, d, b]) => {
|
10740
|
+
var E;
|
10741
|
+
(E = a.formRef.value) == null || E.clearValidate(), c.value = !0, await nextTick(), setTimeout(() => {
|
10716
10742
|
o.value = (() => {
|
10717
|
-
let
|
10743
|
+
let g = [];
|
10718
10744
|
switch (e.kgContext) {
|
10719
10745
|
case KG_FORM_CONTEXT.SEARCH:
|
10720
|
-
(
|
10746
|
+
(u == null ? void 0 : u.rqr_flg) === 1 && g.push({
|
10721
10747
|
required: !0,
|
10722
10748
|
message: t.t("kg.required")
|
10723
10749
|
});
|
@@ -10725,25 +10751,25 @@ function _useRules(e) {
|
|
10725
10751
|
case KG_FORM_CONTEXT.SUBMIT:
|
10726
10752
|
switch (!0) {
|
10727
10753
|
case r.isCreating.value:
|
10728
|
-
(
|
10754
|
+
(d == null ? void 0 : d.crt_rqr_flg) === 1 && g.push({
|
10729
10755
|
required: !0,
|
10730
10756
|
message: t.t("kg.required")
|
10731
10757
|
});
|
10732
10758
|
break;
|
10733
10759
|
case r.isUpdating.value:
|
10734
|
-
(
|
10760
|
+
(d == null ? void 0 : d.upt_rqr_flg) === 1 && g.push({
|
10735
10761
|
required: !0,
|
10736
10762
|
message: t.t("kg.required")
|
10737
10763
|
});
|
10738
10764
|
break;
|
10739
10765
|
case r.isCopying.value:
|
10740
|
-
(
|
10766
|
+
(d == null ? void 0 : d.cpy_rqr_flg) === 1 && g.push({
|
10741
10767
|
required: !0,
|
10742
10768
|
message: t.t("kg.required")
|
10743
10769
|
});
|
10744
10770
|
break;
|
10745
10771
|
case r.isDeleting.value:
|
10746
|
-
(
|
10772
|
+
(d == null ? void 0 : d.del_rqr_flg) === 1 && g.push({
|
10747
10773
|
required: !0,
|
10748
10774
|
message: t.t("kg.required")
|
10749
10775
|
});
|
@@ -10751,39 +10777,39 @@ function _useRules(e) {
|
|
10751
10777
|
}
|
10752
10778
|
break;
|
10753
10779
|
}
|
10754
|
-
switch (
|
10780
|
+
switch (b == null ? void 0 : b.data_type) {
|
10755
10781
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
10756
10782
|
{
|
10757
|
-
const
|
10758
|
-
isNil(
|
10759
|
-
validator: (
|
10760
|
-
}) :
|
10761
|
-
validator: (
|
10783
|
+
const v = b == null ? void 0 : b.min;
|
10784
|
+
isNil(v) || ((b == null ? void 0 : b.min_include_flg) === 1 ? g.push({
|
10785
|
+
validator: (y, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) < v ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [v])) : Promise.resolve()
|
10786
|
+
}) : g.push({
|
10787
|
+
validator: (y, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) <= v ? Promise.reject(t.t("kg.KgFormItem.mustGT", [v])) : Promise.resolve()
|
10762
10788
|
}));
|
10763
|
-
const
|
10764
|
-
isNil(
|
10765
|
-
validator: (
|
10766
|
-
}) :
|
10767
|
-
validator: (
|
10789
|
+
const _ = b == null ? void 0 : b.max;
|
10790
|
+
isNil(_) || ((b == null ? void 0 : b.max_include_flg) === 1 ? g.push({
|
10791
|
+
validator: (y, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) > _ ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [_])) : Promise.resolve()
|
10792
|
+
}) : g.push({
|
10793
|
+
validator: (y, m) => m == null || m === "" || typeof m == "string" && m.trim() === "" ? Promise.resolve() : Number(m) >= _ ? Promise.reject(t.t("kg.KgFormItem.mustLT", [_])) : Promise.resolve()
|
10768
10794
|
}));
|
10769
10795
|
}
|
10770
10796
|
break;
|
10771
10797
|
}
|
10772
|
-
return
|
10773
|
-
})(),
|
10798
|
+
return g;
|
10799
|
+
})(), c.value = !1;
|
10774
10800
|
});
|
10775
10801
|
}, {
|
10776
10802
|
deep: !0,
|
10777
10803
|
immediate: !0
|
10778
10804
|
}), {
|
10779
|
-
|
10780
|
-
|
10805
|
+
formRules: l,
|
10806
|
+
isFormRulesLoading: c
|
10781
10807
|
};
|
10782
10808
|
}
|
10783
10809
|
function useKgFormItem(e) {
|
10784
10810
|
const t = (e == null ? void 0 : e.kgVarName) || inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = (e == null ? void 0 : e.kgContext) || inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), s = computed(() => {
|
10785
|
-
var E, g,
|
10786
|
-
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (g = n.value) == null ? void 0 : g.prf_ctrl_typ, c = (
|
10811
|
+
var E, g, v, _, y, m;
|
10812
|
+
const o = ((E = n.value) == null ? void 0 : E.ctrl_typ) || KG_FORM_ITEM_TYPE.INPUT, l = (g = n.value) == null ? void 0 : g.prf_ctrl_typ, c = (v = n.value) == null ? void 0 : v.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, b = (m = n.value) == null ? void 0 : m.del_ctrl_typ;
|
10787
10813
|
switch (r) {
|
10788
10814
|
case KG_FORM_CONTEXT.SEARCH:
|
10789
10815
|
return l || o;
|
@@ -10801,9 +10827,9 @@ function useKgFormItem(e) {
|
|
10801
10827
|
}
|
10802
10828
|
return o;
|
10803
10829
|
}), i = computed(() => {
|
10804
|
-
var g,
|
10830
|
+
var g, v, _, y, m, T;
|
10805
10831
|
let o;
|
10806
|
-
const l = (g = n.value) == null ? void 0 : g.ctrl_prop, c = (
|
10832
|
+
const l = (g = n.value) == null ? void 0 : g.ctrl_prop, c = (v = n.value) == null ? void 0 : v.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, b = (m = n.value) == null ? void 0 : m.cpy_ctrl_prop, E = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
10807
10833
|
switch (r) {
|
10808
10834
|
case KG_FORM_CONTEXT.SEARCH:
|
10809
10835
|
o = c || l;
|
@@ -10836,38 +10862,38 @@ function useKgFormItemSelect() {
|
|
10836
10862
|
controlType: i,
|
10837
10863
|
controlProperties: o
|
10838
10864
|
} = useKgFormItem(), l = ref(!1), c = ref([]), u = computed(() => {
|
10839
|
-
var
|
10840
|
-
return (_ = (
|
10865
|
+
var v, _;
|
10866
|
+
return (_ = (v = s.value) == null ? void 0 : v.val_clm) != null ? _ : "";
|
10841
10867
|
}), d = computed(() => {
|
10842
|
-
var
|
10843
|
-
return (_ = (
|
10868
|
+
var v, _;
|
10869
|
+
return (_ = (v = s.value) == null ? void 0 : v.lbl_clm) != null ? _ : "";
|
10844
10870
|
}), b = computed(() => {
|
10845
10871
|
var _;
|
10846
|
-
let
|
10847
|
-
return
|
10872
|
+
let v = KgVarUtil.parseRequestParamsToJSON((_ = s.value) == null ? void 0 : _.cmd_prm);
|
10873
|
+
return v = mapValues(v, (y) => {
|
10848
10874
|
var T, k;
|
10849
|
-
let
|
10875
|
+
let m = y;
|
10850
10876
|
if (typeof y == "string" && y.startsWith("{") && y.endsWith("}")) {
|
10851
10877
|
let A = y.slice(1, -1), C = "";
|
10852
10878
|
if (A.includes(".")) {
|
10853
10879
|
const I = A.split(".");
|
10854
10880
|
A = I[0], C = I[1];
|
10855
10881
|
}
|
10856
|
-
r.value && A in r.value && (C ?
|
10882
|
+
r.value && A in r.value && (C ? m = (k = (T = r.value[`${A}_obj`]) == null ? void 0 : T[C]) != null ? k : void 0 : m = r.value[A], m || (m = "__kg__form_item_select__pid"));
|
10857
10883
|
}
|
10858
|
-
return
|
10859
|
-
}),
|
10884
|
+
return m;
|
10885
|
+
}), v;
|
10860
10886
|
});
|
10861
10887
|
async function E() {
|
10862
10888
|
var A, C, I, D, R, w, N, O;
|
10863
|
-
let
|
10864
|
-
const _ = (A = s.value) == null ? void 0 : A.cmd, y = (I = (C = s.value) == null ? void 0 : C.cmd_method) != null ? I : "GET",
|
10865
|
-
if (!_ || !
|
10889
|
+
let v = ref([]);
|
10890
|
+
const _ = (A = s.value) == null ? void 0 : A.cmd, y = (I = (C = s.value) == null ? void 0 : C.cmd_method) != null ? I : "GET", m = (R = (D = s.value) == null ? void 0 : D.val_clm) != null ? R : "", T = (N = (w = s.value) == null ? void 0 : w.lbl_clm) != null ? N : "";
|
10891
|
+
if (!_ || !m || !T) {
|
10866
10892
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
10867
10893
|
frm_id: a.formID,
|
10868
10894
|
var_nam: t,
|
10869
10895
|
cmd: _,
|
10870
|
-
val_clm:
|
10896
|
+
val_clm: m,
|
10871
10897
|
lbl_clm: T
|
10872
10898
|
});
|
10873
10899
|
return;
|
@@ -10875,12 +10901,12 @@ function useKgFormItemSelect() {
|
|
10875
10901
|
let k = null;
|
10876
10902
|
try {
|
10877
10903
|
l.value = !0;
|
10878
|
-
const
|
10904
|
+
const V = KgUtil.parseParams(b.value, null, e);
|
10879
10905
|
k = await ((O = httpClient()) == null ? void 0 : O.request({
|
10880
10906
|
url: _,
|
10881
10907
|
method: y,
|
10882
|
-
params:
|
10883
|
-
data:
|
10908
|
+
params: V,
|
10909
|
+
data: V
|
10884
10910
|
}, {
|
10885
10911
|
dynamicQueryOperators: {},
|
10886
10912
|
dayjs: e
|
@@ -10890,25 +10916,25 @@ function useKgFormItemSelect() {
|
|
10890
10916
|
l.value = !1;
|
10891
10917
|
}
|
10892
10918
|
if (!isObjectLike(k))
|
10893
|
-
|
10919
|
+
v.value = [];
|
10894
10920
|
else
|
10895
10921
|
switch (!0) {
|
10896
10922
|
case isArrayLike(k):
|
10897
|
-
|
10923
|
+
v.value = g(k);
|
10898
10924
|
break;
|
10899
10925
|
case (k && "total" in k && "records" in k):
|
10900
|
-
|
10926
|
+
v.value = g(k.records);
|
10901
10927
|
break;
|
10902
10928
|
}
|
10903
|
-
if (
|
10904
|
-
const
|
10905
|
-
(!(
|
10929
|
+
if (v.value.length > 0) {
|
10930
|
+
const V = v.value[0];
|
10931
|
+
(!(m in V) || !(T in V)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
10906
10932
|
frm_id: a.formID,
|
10907
10933
|
var_nam: t,
|
10908
10934
|
cmd: _,
|
10909
|
-
val_clm:
|
10935
|
+
val_clm: m,
|
10910
10936
|
lbl_clm: T,
|
10911
|
-
\u6240\u6709\u5217: Object.keys(
|
10937
|
+
\u6240\u6709\u5217: Object.keys(V)
|
10912
10938
|
});
|
10913
10939
|
}
|
10914
10940
|
await n.store.emit(a.formID, "selectBeforeSetDatas", {
|
@@ -10917,22 +10943,22 @@ function useKgFormItemSelect() {
|
|
10917
10943
|
isUpdating: a.isUpdating.value,
|
10918
10944
|
isCopying: a.isCopying.value,
|
10919
10945
|
isDeleting: a.isDeleting.value,
|
10920
|
-
datas:
|
10921
|
-
}), c.value =
|
10946
|
+
datas: v
|
10947
|
+
}), c.value = v.value;
|
10922
10948
|
}
|
10923
|
-
function g(
|
10924
|
-
var
|
10925
|
-
if (!
|
10949
|
+
function g(v) {
|
10950
|
+
var m, T, k, A, C;
|
10951
|
+
if (!v)
|
10926
10952
|
return [];
|
10927
|
-
const _ = (T = (
|
10953
|
+
const _ = (T = (m = s.value) == null ? void 0 : m.val_clm) != null ? T : "", y = (A = (k = s.value) == null ? void 0 : k.val_data_type) != null ? A : "string";
|
10928
10954
|
switch (y) {
|
10929
10955
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
10930
|
-
|
10956
|
+
v.forEach((I) => {
|
10931
10957
|
I[_] = String(I[_]);
|
10932
10958
|
});
|
10933
10959
|
break;
|
10934
10960
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
10935
|
-
|
10961
|
+
v.forEach((I) => {
|
10936
10962
|
let D = Number(I[_]);
|
10937
10963
|
Number.isNaN(D) && (D = I[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${I[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
|
10938
10964
|
frm_id: a.formID,
|
@@ -10942,7 +10968,7 @@ function useKgFormItemSelect() {
|
|
10942
10968
|
});
|
10943
10969
|
break;
|
10944
10970
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
10945
|
-
|
10971
|
+
v.forEach((I) => {
|
10946
10972
|
let D;
|
10947
10973
|
String(I[_]).toLowerCase() === "true" ? D = !0 : String(I[_]).toLowerCase() === "false" ? D = !1 : (D = I[_], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${I[_]} \u8F6C\u6362\u4E3A ${y} \u7C7B\u578B`, {
|
10948
10974
|
frm_id: a.formID,
|
@@ -10957,14 +10983,14 @@ function useKgFormItemSelect() {
|
|
10957
10983
|
{
|
10958
10984
|
const I = o;
|
10959
10985
|
if ((C = I.value) != null && C.excludeValues)
|
10960
|
-
return
|
10986
|
+
return v.filter((D) => {
|
10961
10987
|
var R;
|
10962
10988
|
return !((R = I.value.excludeValues) != null && R.includes(D[_]));
|
10963
10989
|
});
|
10964
10990
|
}
|
10965
10991
|
break;
|
10966
10992
|
}
|
10967
|
-
return
|
10993
|
+
return v;
|
10968
10994
|
}
|
10969
10995
|
return {
|
10970
10996
|
varPossibility: s,
|
@@ -11000,19 +11026,19 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
11000
11026
|
watch(o, () => E(), {
|
11001
11027
|
immediate: !0
|
11002
11028
|
}), watch([() => e.value, c], ([_, y]) => {
|
11003
|
-
const
|
11004
|
-
if (
|
11029
|
+
const m = get(_, "length", 0);
|
11030
|
+
if (m > 0 && y.length > 0) {
|
11005
11031
|
const T = intersection$1(_, y == null ? void 0 : y.map((k) => k[l.value]));
|
11006
|
-
if (T.length <
|
11032
|
+
if (T.length < m) {
|
11007
11033
|
r("update:value", T);
|
11008
11034
|
return;
|
11009
11035
|
}
|
11010
11036
|
}
|
11011
11037
|
switch (!0) {
|
11012
|
-
case (
|
11038
|
+
case (m > 0 && m === y.length):
|
11013
11039
|
d.value = !0, b.value = !1;
|
11014
11040
|
break;
|
11015
|
-
case (
|
11041
|
+
case (m > 0 && m !== y.length):
|
11016
11042
|
d.value = !1, b.value = !0;
|
11017
11043
|
break;
|
11018
11044
|
default:
|
@@ -11024,13 +11050,13 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
11024
11050
|
});
|
11025
11051
|
async function E() {
|
11026
11052
|
var _, y;
|
11027
|
-
!((_ = i.value) != null && _.id) || (await u(), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((
|
11053
|
+
!((_ = i.value) != null && _.id) || (await u(), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((m) => m[l.value]), e.value)));
|
11028
11054
|
}
|
11029
11055
|
function g(_) {
|
11030
|
-
var y,
|
11031
|
-
_.target.checked ?
|
11056
|
+
var y, m, T;
|
11057
|
+
_.target.checked ? v((m = (y = c.value) == null ? void 0 : y.map((k) => k[l.value])) != null ? m : []) : v([]), b.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
11032
11058
|
}
|
11033
|
-
function
|
11059
|
+
function v(_) {
|
11034
11060
|
r("update:value", _), r("kgChange", _);
|
11035
11061
|
}
|
11036
11062
|
return () => {
|
@@ -11040,7 +11066,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
11040
11066
|
}, [createVNode(Form.ItemRest, null, {
|
11041
11067
|
default: () => [createVNode(Checkbox, {
|
11042
11068
|
checked: d.value,
|
11043
|
-
"onUpdate:checked": (
|
11069
|
+
"onUpdate:checked": (m) => d.value = m,
|
11044
11070
|
indeterminate: b.value,
|
11045
11071
|
onChange: g
|
11046
11072
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
@@ -11048,22 +11074,22 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
11048
11074
|
})]
|
11049
11075
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
11050
11076
|
value: e.value,
|
11051
|
-
"onUpdate:value":
|
11077
|
+
"onUpdate:value": v
|
11052
11078
|
}, {
|
11053
11079
|
default: () => [createVNode(Row, {
|
11054
11080
|
gutter: 12
|
11055
|
-
}, _isSlot$a(y = c.value.map((
|
11081
|
+
}, _isSlot$a(y = c.value.map((m) => {
|
11056
11082
|
var T, k;
|
11057
11083
|
return createVNode(Col, {
|
11058
11084
|
span: (k = (T = s.value) == null ? void 0 : T.span) != null ? k : 24
|
11059
11085
|
}, {
|
11060
11086
|
default: () => [createVNode(Checkbox, {
|
11061
|
-
value:
|
11062
|
-
"kg-value":
|
11087
|
+
value: m[l.value],
|
11088
|
+
"kg-value": m[l.value]
|
11063
11089
|
}, {
|
11064
11090
|
default: () => {
|
11065
11091
|
var A, C;
|
11066
|
-
return [
|
11092
|
+
return [m[(C = (A = i.value) == null ? void 0 : A.lbl_clm) != null ? C : ""]];
|
11067
11093
|
}
|
11068
11094
|
})]
|
11069
11095
|
});
|
@@ -11239,8 +11265,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
11239
11265
|
"kg-value": b[i.value]
|
11240
11266
|
}, {
|
11241
11267
|
default: () => {
|
11242
|
-
var
|
11243
|
-
return [b[(_ = (
|
11268
|
+
var v, _;
|
11269
|
+
return [b[(_ = (v = n.value) == null ? void 0 : v.lbl_clm) != null ? _ : ""]];
|
11244
11270
|
}
|
11245
11271
|
})]
|
11246
11272
|
});
|
@@ -11266,7 +11292,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
11266
11292
|
lbl_clm: b,
|
11267
11293
|
isDatasRequesting: E,
|
11268
11294
|
datas: g,
|
11269
|
-
requestDatas:
|
11295
|
+
requestDatas: v,
|
11270
11296
|
requestParams: _
|
11271
11297
|
} = useKgFormItemSelect(), y = computed(() => {
|
11272
11298
|
var C, I;
|
@@ -11274,14 +11300,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
11274
11300
|
return e.kgAllowClear !== void 0 ? A = e.kgAllowClear : isNil((C = c.value) == null ? void 0 : C.allowClear) || (A = (I = c.value) == null ? void 0 : I.allowClear), A;
|
11275
11301
|
});
|
11276
11302
|
watch(_, () => {
|
11277
|
-
|
11303
|
+
m();
|
11278
11304
|
}, {
|
11279
11305
|
immediate: !0
|
11280
11306
|
});
|
11281
|
-
async function
|
11307
|
+
async function m() {
|
11282
11308
|
var A;
|
11283
11309
|
if (!!((A = u.value) != null && A.id))
|
11284
|
-
switch (await
|
11310
|
+
switch (await v(), r("kgSelectDatasChange", g.value), e.kgMode) {
|
11285
11311
|
case "multiple": {
|
11286
11312
|
if (Array.isArray(e.value)) {
|
11287
11313
|
const C = e.value.filter((I) => g.value.find((D) => D[d.value] === I));
|
@@ -11454,10 +11480,10 @@ const KgFormItem = defineComponent({
|
|
11454
11480
|
return !1;
|
11455
11481
|
});
|
11456
11482
|
const c = computed(() => i.store.getVarLookup(i.formID, e.kgVarName)), u = computed(() => i.store.getVarVariableConfig(i.formID, e.kgVarName)), d = computed(() => i.store.getVarProfileDetail(i.formID, e.kgVarName)), b = computed(() => i.store.getVarSubmitField(i.formID, e.kgVarName)), {
|
11457
|
-
|
11458
|
-
|
11459
|
-
} =
|
11460
|
-
controlType:
|
11483
|
+
formRules: E,
|
11484
|
+
isFormRulesLoading: g
|
11485
|
+
} = _useFormRules(e), {
|
11486
|
+
controlType: v
|
11461
11487
|
} = useKgFormItem(e), _ = computed(() => {
|
11462
11488
|
var K, L, B, U, F;
|
11463
11489
|
if (i.isRetrieving.value)
|
@@ -11503,7 +11529,7 @@ const KgFormItem = defineComponent({
|
|
11503
11529
|
break;
|
11504
11530
|
}
|
11505
11531
|
return M;
|
11506
|
-
}),
|
11532
|
+
}), m = computed(() => {
|
11507
11533
|
var K, L, B, U, F, x, q, Q, Z, ae;
|
11508
11534
|
let M = 6;
|
11509
11535
|
if (e.kgSpan !== void 0)
|
@@ -11605,7 +11631,7 @@ const KgFormItem = defineComponent({
|
|
11605
11631
|
kgDisabled: _.value,
|
11606
11632
|
id: I.value
|
11607
11633
|
};
|
11608
|
-
switch (
|
11634
|
+
switch (v.value) {
|
11609
11635
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
11610
11636
|
break;
|
11611
11637
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -11643,7 +11669,7 @@ const KgFormItem = defineComponent({
|
|
11643
11669
|
validateFirst: !0,
|
11644
11670
|
htmlFor: I.value
|
11645
11671
|
}, {
|
11646
|
-
default: () => createVNode(Fragment, null, [N(), w(),
|
11672
|
+
default: () => createVNode(Fragment, null, [N(), w(), V(), P()]),
|
11647
11673
|
label: () => O()
|
11648
11674
|
});
|
11649
11675
|
}
|
@@ -11658,7 +11684,7 @@ const KgFormItem = defineComponent({
|
|
11658
11684
|
varProfileDetail: d,
|
11659
11685
|
varSubmitField: b
|
11660
11686
|
});
|
11661
|
-
switch (
|
11687
|
+
switch (v.value) {
|
11662
11688
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
11663
11689
|
return createVNode(KgFormItemInputNumber, C.value, null);
|
11664
11690
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
@@ -11709,7 +11735,7 @@ const KgFormItem = defineComponent({
|
|
11709
11735
|
}, {
|
11710
11736
|
default: () => {
|
11711
11737
|
var U;
|
11712
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((U =
|
11738
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((U = v.value) != null ? U : "");
|
11713
11739
|
},
|
11714
11740
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
11715
11741
|
class: "ant-select-suffix"
|
@@ -11723,7 +11749,7 @@ const KgFormItem = defineComponent({
|
|
11723
11749
|
title: i.t(e.kgVarName).value
|
11724
11750
|
}, [i.t(e.kgVarName).value]) : null;
|
11725
11751
|
}
|
11726
|
-
function
|
11752
|
+
function V() {
|
11727
11753
|
var M;
|
11728
11754
|
return !c.value || !((M = c.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
11729
11755
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -11732,7 +11758,7 @@ const KgFormItem = defineComponent({
|
|
11732
11758
|
}, null)]
|
11733
11759
|
});
|
11734
11760
|
}
|
11735
|
-
function
|
11761
|
+
function P() {
|
11736
11762
|
return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
|
11737
11763
|
frm_id: i.formID,
|
11738
11764
|
varName: e.kgVarName,
|
@@ -11748,7 +11774,7 @@ const KgFormItem = defineComponent({
|
|
11748
11774
|
let M;
|
11749
11775
|
return i.isRetrieving.value ? null : createVNode(Col, {
|
11750
11776
|
ref: D,
|
11751
|
-
span:
|
11777
|
+
span: m.value,
|
11752
11778
|
class: A.value,
|
11753
11779
|
style: k.value,
|
11754
11780
|
"kg-frm_id": i.formID,
|
@@ -12207,9 +12233,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
12207
12233
|
}).bind(null, getPinia())), store$5);
|
12208
12234
|
function useKgSubmit(e) {
|
12209
12235
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
12210
|
-
var _, y,
|
12236
|
+
var _, y, m, T, k;
|
12211
12237
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
12212
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, b = (y = a.value) == null ? void 0 : y.crt_display_type, E = (
|
12238
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, b = (y = a.value) == null ? void 0 : y.crt_display_type, E = (m = a.value) == null ? void 0 : m.upt_display_type, g = (T = a.value) == null ? void 0 : T.cpy_display_type, v = (k = a.value) == null ? void 0 : k.del_display_type;
|
12213
12239
|
switch (!0) {
|
12214
12240
|
case (t.isCreating.value && (b === c || !b && d === c)):
|
12215
12241
|
l = c;
|
@@ -12220,7 +12246,7 @@ function useKgSubmit(e) {
|
|
12220
12246
|
case (t.isCopying.value && (g === c || !g && d === c)):
|
12221
12247
|
l = c;
|
12222
12248
|
break;
|
12223
|
-
case (t.isDeleting.value && (
|
12249
|
+
case (t.isDeleting.value && (v === c || !v)):
|
12224
12250
|
l = c;
|
12225
12251
|
break;
|
12226
12252
|
}
|
@@ -12297,8 +12323,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
12297
12323
|
}) => {
|
12298
12324
|
const u = s.store.getVarSubmitConfig(s.formID);
|
12299
12325
|
return o = watch(c, (d) => {
|
12300
|
-
var b, E, g,
|
12301
|
-
d && (d.id = (b = u == null ? void 0 : u.id) != null ? b : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (g = u == null ? void 0 : u.fullscreen_flg) != null ? g : 1, d.dft_fullscreen_flg = (
|
12326
|
+
var b, E, g, v, _, y, m, T, k, A, C, I;
|
12327
|
+
d && (d.id = (b = u == null ? void 0 : u.id) != null ? b : null, d.frm_id = s.formID, d.resizable_flg = (E = u == null ? void 0 : u.resizable_flg) != null ? E : 1, d.fullscreen_flg = (g = u == null ? void 0 : u.fullscreen_flg) != null ? g : 1, d.dft_fullscreen_flg = (v = u == null ? void 0 : u.dft_fullscreen_flg) != null ? v : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (m = u == null ? void 0 : u.min_width) != null ? m : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (C = u == null ? void 0 : u.label_col_unit) != null ? C : KG_WIDTH_UNIT.SPAN, d.display_type = (I = u == null ? void 0 : u.display_type) != null ? I : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
12302
12328
|
}, {
|
12303
12329
|
immediate: !0
|
12304
12330
|
}), KgUtil.hideLoading(), !1;
|
@@ -12356,7 +12382,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
12356
12382
|
default: () => [e.isFullscreen ? createVNode(FullscreenExitOutlined$1, null, null) : createVNode(FullscreenOutlined$1, null, null)]
|
12357
12383
|
});
|
12358
12384
|
}
|
12359
|
-
function
|
12385
|
+
function v() {
|
12360
12386
|
return e.kgShowConfigButton ? createVNode(Fragment, null, [createVNode(Button, {
|
12361
12387
|
disabled: c.value || l.value,
|
12362
12388
|
onClick: b,
|
@@ -12376,7 +12402,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
12376
12402
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
12377
12403
|
});
|
12378
12404
|
}
|
12379
|
-
return () => createVNode(Fragment, null, [
|
12405
|
+
return () => createVNode(Fragment, null, [v(), g(), _()]);
|
12380
12406
|
}
|
12381
12407
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
12382
12408
|
function _isSlot$7(e) {
|
@@ -12398,7 +12424,7 @@ class KgVarUtil {
|
|
12398
12424
|
return r;
|
12399
12425
|
}
|
12400
12426
|
static transformFormItemValue(t, r, a, n, s) {
|
12401
|
-
var b, E, g,
|
12427
|
+
var b, E, g, v;
|
12402
12428
|
const i = useKg(), o = useKgVar(t);
|
12403
12429
|
let l = n;
|
12404
12430
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -12409,7 +12435,7 @@ class KgVarUtil {
|
|
12409
12435
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
12410
12436
|
break;
|
12411
12437
|
case "{USER.username}":
|
12412
|
-
l = l.replace("{USER.username}", (
|
12438
|
+
l = l.replace("{USER.username}", (v = (g = (E = (b = i.store).getUseUserStore) == null ? void 0 : E.call(b)) == null ? void 0 : g.userInfo) == null ? void 0 : v.username);
|
12413
12439
|
break;
|
12414
12440
|
}
|
12415
12441
|
}
|
@@ -12417,12 +12443,12 @@ class KgVarUtil {
|
|
12417
12443
|
if (!u)
|
12418
12444
|
return l;
|
12419
12445
|
const d = (() => {
|
12420
|
-
const _ = u.ctrl_typ, y = u.prf_ctrl_typ,
|
12446
|
+
const _ = u.ctrl_typ, y = u.prf_ctrl_typ, m = u.crt_ctrl_typ, T = u.upt_ctrl_typ, k = u.cpy_ctrl_typ, A = u.del_ctrl_typ;
|
12421
12447
|
switch (s) {
|
12422
12448
|
case "R":
|
12423
12449
|
return y || _;
|
12424
12450
|
case "C":
|
12425
|
-
return
|
12451
|
+
return m || _;
|
12426
12452
|
case "U":
|
12427
12453
|
return T || _;
|
12428
12454
|
case "CP":
|
@@ -12521,8 +12547,8 @@ class KgVarUtil {
|
|
12521
12547
|
const y = o.store.getVarPossibility(t, r);
|
12522
12548
|
switch (y == null ? void 0 : y.val_data_type) {
|
12523
12549
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
12524
|
-
const
|
12525
|
-
if (
|
12550
|
+
const m = _.map((T) => Number(T));
|
12551
|
+
if (m.some((T) => Number.isNaN(m))) {
|
12526
12552
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
12527
12553
|
frm_id: t,
|
12528
12554
|
var_nam: r,
|
@@ -12531,13 +12557,13 @@ class KgVarUtil {
|
|
12531
12557
|
});
|
12532
12558
|
return;
|
12533
12559
|
}
|
12534
|
-
return
|
12560
|
+
return m;
|
12535
12561
|
}
|
12536
12562
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
12537
|
-
return _.map((
|
12563
|
+
return _.map((m) => Boolean(m));
|
12538
12564
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
12539
12565
|
default:
|
12540
|
-
return _.map((
|
12566
|
+
return _.map((m) => String(m));
|
12541
12567
|
}
|
12542
12568
|
} catch {
|
12543
12569
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${d} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
@@ -12726,11 +12752,11 @@ function _useFormModel$1() {
|
|
12726
12752
|
}
|
12727
12753
|
const d = r.selectedRow.value;
|
12728
12754
|
u.forEach((b) => {
|
12729
|
-
var g,
|
12755
|
+
var g, v, _, y, m, T, k, A;
|
12730
12756
|
const E = (g = b.var_nam) != null ? g : "";
|
12731
12757
|
switch (c.value[E] = void 0, !0) {
|
12732
12758
|
case t.isCreating.value: {
|
12733
|
-
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (
|
12759
|
+
c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (v = b.crt_dft_val) != null ? v : void 0, "C");
|
12734
12760
|
break;
|
12735
12761
|
}
|
12736
12762
|
case t.isUpdating.value: {
|
@@ -12738,7 +12764,7 @@ function _useFormModel$1() {
|
|
12738
12764
|
break;
|
12739
12765
|
}
|
12740
12766
|
case t.isCopying.value: {
|
12741
|
-
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (
|
12767
|
+
c.value.id = d == null ? void 0 : d.id, c.value[E] = KgVarUtil.transformFormItemValue(t.formID, E, e, (T = (m = b.cpy_dft_val) != null ? m : d == null ? void 0 : d[E]) != null ? T : void 0, "CP");
|
12742
12768
|
break;
|
12743
12769
|
}
|
12744
12770
|
case t.isDeleting.value: {
|
@@ -12814,9 +12840,9 @@ function _useClass(e, t) {
|
|
12814
12840
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), s = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
12815
12841
|
return {
|
12816
12842
|
getClass: computed(() => {
|
12817
|
-
var c, u, d, b, E, g,
|
12843
|
+
var c, u, d, b, E, g, v;
|
12818
12844
|
let l = "kg-submit";
|
12819
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (E = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgSubmit) != null && E.kgClass ? l += ` ${(
|
12845
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = s.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (E = (b = r == null ? void 0 : r.value) == null ? void 0 : b.KgSubmit) != null && E.kgClass ? l += ` ${(v = (g = r == null ? void 0 : r.value) == null ? void 0 : g.KgSubmit) == null ? void 0 : v.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
12820
12846
|
})
|
12821
12847
|
};
|
12822
12848
|
}
|
@@ -12893,13 +12919,13 @@ const getProps$r = () => ({
|
|
12893
12919
|
inject(DI_KG_VAR__KG_PROPS, null);
|
12894
12920
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
12895
12921
|
i.onSubmitSave(async () => (await ce(), !1)), i.onSubmitCancel(async () => (await ge(), !1)), _useFormModel$1();
|
12896
|
-
const u = computed(() => s.isDeleting.value && w.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)),
|
12922
|
+
const u = computed(() => s.isDeleting.value && w.value.length === 0 && O.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), b = computed(() => s.store.getVarSubmitConfig(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), g = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), m = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), D = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), R = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), w = computed(() => {
|
12897
12923
|
var H, W, J;
|
12898
12924
|
switch (!0) {
|
12899
12925
|
case s.isCreating.value:
|
12900
12926
|
return (H = E.value) != null ? H : [];
|
12901
12927
|
case s.isUpdating.value:
|
12902
|
-
return (W =
|
12928
|
+
return (W = v.value) != null ? W : [];
|
12903
12929
|
case s.isCopying.value:
|
12904
12930
|
return (J = y.value) != null ? J : [];
|
12905
12931
|
case s.isDeleting.value:
|
@@ -12927,12 +12953,12 @@ const getProps$r = () => ({
|
|
12927
12953
|
case s.isUpdating.value:
|
12928
12954
|
return (W = _.value) != null ? W : [];
|
12929
12955
|
case s.isCopying.value:
|
12930
|
-
return (J =
|
12956
|
+
return (J = m.value) != null ? J : [];
|
12931
12957
|
case s.isDeleting.value:
|
12932
12958
|
return (re = R.value) != null ? re : [];
|
12933
12959
|
}
|
12934
12960
|
return [];
|
12935
|
-
}),
|
12961
|
+
}), V = computed(() => {
|
12936
12962
|
var H, W, J, re;
|
12937
12963
|
switch (!0) {
|
12938
12964
|
case s.isCreating.value:
|
@@ -12945,7 +12971,7 @@ const getProps$r = () => ({
|
|
12945
12971
|
return (re = R.value) != null ? re : [];
|
12946
12972
|
}
|
12947
12973
|
return [];
|
12948
|
-
}),
|
12974
|
+
}), P = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), M = computed(() => P.value || d.value), K = computed(() => d.value), L = ref({
|
12949
12975
|
kgWidth: 0
|
12950
12976
|
}), B = computed(() => {
|
12951
12977
|
var H;
|
@@ -13078,28 +13104,29 @@ const getProps$r = () => ({
|
|
13078
13104
|
var H, W;
|
13079
13105
|
try {
|
13080
13106
|
if (!l.formRef.value || await l.store.emit(s.formID, "beforeOk", {
|
13081
|
-
isCreating: s.isCreating.value,
|
13082
|
-
isUpdating: s.isUpdating.value,
|
13083
13107
|
isCopying: s.isCopying.value,
|
13108
|
+
isCreating: s.isCreating.value,
|
13084
13109
|
isDeleting: s.isDeleting.value,
|
13110
|
+
isUpdating: s.isUpdating.value,
|
13111
|
+
model: l.model,
|
13085
13112
|
row: o.selectedRow.value,
|
13086
|
-
rules: l.rules
|
13087
|
-
model: l.model
|
13113
|
+
rules: l.rules
|
13088
13114
|
}))
|
13089
13115
|
return;
|
13116
|
+
await nextTick();
|
13090
13117
|
try {
|
13091
13118
|
await ((H = l.formRef.value) == null ? void 0 : H.validate());
|
13092
13119
|
} catch (oe) {
|
13093
13120
|
KgUtil.throwIfNotFormError(oe);
|
13094
13121
|
}
|
13095
13122
|
if (await ((W = l.formRef.value) == null ? void 0 : W.validate()), await l.store.emit(s.formID, "afterValidate", {
|
13096
|
-
isCreating: s.isCreating.value,
|
13097
|
-
isUpdating: s.isUpdating.value,
|
13098
13123
|
isCopying: s.isCopying.value,
|
13124
|
+
isCreating: s.isCreating.value,
|
13099
13125
|
isDeleting: s.isDeleting.value,
|
13126
|
+
isUpdating: s.isUpdating.value,
|
13127
|
+
model: l.model,
|
13100
13128
|
row: o.selectedRow.value,
|
13101
|
-
rows: o.selectedRows.value
|
13102
|
-
model: l.model
|
13129
|
+
rows: o.selectedRows.value
|
13103
13130
|
}))
|
13104
13131
|
return;
|
13105
13132
|
switch (!0) {
|
@@ -13126,15 +13153,15 @@ const getProps$r = () => ({
|
|
13126
13153
|
try {
|
13127
13154
|
let ne = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonCreate.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), pe = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
13128
13155
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
13129
|
-
|
13130
|
-
isUpdating: s.isUpdating.value,
|
13156
|
+
data: pe,
|
13131
13157
|
isCopying: s.isCopying.value,
|
13158
|
+
isCreating: s.isCreating.value,
|
13132
13159
|
isDeleting: s.isDeleting.value,
|
13133
|
-
|
13134
|
-
rows: o.selectedRows.value,
|
13160
|
+
isUpdating: s.isUpdating.value,
|
13135
13161
|
model: l.model,
|
13136
13162
|
params: ne,
|
13137
|
-
|
13163
|
+
row: o.selectedFirstRow.value,
|
13164
|
+
rows: o.selectedRows.value
|
13138
13165
|
}))
|
13139
13166
|
return;
|
13140
13167
|
const _e = (J = s.varButtonCreate.value) == null ? void 0 : J.cmd;
|
@@ -13259,8 +13286,8 @@ const getProps$r = () => ({
|
|
13259
13286
|
let me = ref(KgUtil.parseParams(KgVarUtil.parseRequestParamsToJSON((W = (H = s.varButtonDelete.value) == null ? void 0 : H.cmd_prm) != null ? W : ""), s.formID, r)), Te = ref((J = o.selectedRows.value) != null ? J : []);
|
13260
13287
|
if (((re = s.varButtonDelete.value) == null ? void 0 : re.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
|
13261
13288
|
ids: (ie = (oe = o.selectedRows.value) == null ? void 0 : oe.map((Le) => {
|
13262
|
-
var Re, Ke,
|
13263
|
-
return (
|
13289
|
+
var Re, Ke, Ve;
|
13290
|
+
return (Ve = Le[(Ke = (Re = s.varButtonDelete.value) == null ? void 0 : Re.del_param_clm) != null ? Ke : "id"]) != null ? Ve : "";
|
13264
13291
|
})) != null ? ie : []
|
13265
13292
|
})), await l.store.emit(s.formID, "beforeRequest", {
|
13266
13293
|
isCreating: s.isCreating.value,
|
@@ -13277,9 +13304,9 @@ const getProps$r = () => ({
|
|
13277
13304
|
const Oe = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd;
|
13278
13305
|
if (!Oe)
|
13279
13306
|
throw message.error(n.t("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.")), new Error("\u300C\u5220\u9664\u6309\u94AE\u300D\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740");
|
13280
|
-
const
|
13307
|
+
const Pe = (pe = (ne = s.varButtonDelete.value) == null ? void 0 : ne.cmd_method) != null ? pe : "POST", Ne = await httpClient().request({
|
13281
13308
|
url: Oe,
|
13282
|
-
method:
|
13309
|
+
method: Pe,
|
13283
13310
|
params: me.value,
|
13284
13311
|
data: Te.value
|
13285
13312
|
}, {
|
@@ -13311,7 +13338,6 @@ const getProps$r = () => ({
|
|
13311
13338
|
return createVNode(KgForm.Item, {
|
13312
13339
|
kgVarName: H.var_nam,
|
13313
13340
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
13314
|
-
kgRules: l.rules.value[H.var_nam],
|
13315
13341
|
onKgSubmit: ce
|
13316
13342
|
}, {
|
13317
13343
|
control: isFunction$2(W) ? (ne) => W(ne) : void 0,
|
@@ -13346,7 +13372,7 @@ const getProps$r = () => ({
|
|
13346
13372
|
gutter: 12
|
13347
13373
|
}, _isSlot$6(H = w.value.map(ye)) ? H : {
|
13348
13374
|
default: () => [H]
|
13349
|
-
}), N.value.length > 0 &&
|
13375
|
+
}), N.value.length > 0 && V.value.length > 0 && createVNode(Divider, null, null), O.value.length > 0 && createVNode(Row, {
|
13350
13376
|
gutter: 12
|
13351
13377
|
}, _isSlot$6(W = O.value.map(ye)) ? W : {
|
13352
13378
|
default: () => [W]
|
@@ -13370,7 +13396,7 @@ const getProps$r = () => ({
|
|
13370
13396
|
}), createVNode(Button, {
|
13371
13397
|
type: "primary",
|
13372
13398
|
disabled: K.value,
|
13373
|
-
loading:
|
13399
|
+
loading: P.value,
|
13374
13400
|
danger: !!s.isDeleting.value,
|
13375
13401
|
onClick: ce
|
13376
13402
|
}, {
|
@@ -13566,8 +13592,8 @@ function createStore(e, t, r) {
|
|
13566
13592
|
b[y] = _;
|
13567
13593
|
}), u.apply(E, b);
|
13568
13594
|
}
|
13569
|
-
var
|
13570
|
-
return l.apply(E,
|
13595
|
+
var v = [g].concat(b);
|
13596
|
+
return l.apply(E, v);
|
13571
13597
|
};
|
13572
13598
|
},
|
13573
13599
|
_serialize: function(l) {
|
@@ -14183,7 +14209,7 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
|
|
14183
14209
|
return (t, r) => {
|
14184
14210
|
var s;
|
14185
14211
|
if (!t || !r)
|
14186
|
-
return KgLogger.warn("IKgVarStore.t() | frm_id \u6216
|
14212
|
+
return KgLogger.warn("IKgVarStore.t() | frm_id \u6216 varNam \u4E3A\u7A7A.", { frmId: t, varNam: r }), " ";
|
14187
14213
|
const a = e.varCatalogMap.get(t);
|
14188
14214
|
if (!a)
|
14189
14215
|
return " ";
|
@@ -14743,18 +14769,18 @@ const useKgVarStore = () => (store$4 || (store$4 = defineStore("KgVar", {
|
|
14743
14769
|
varSubmitConfig: b,
|
14744
14770
|
varSubmitFields: E,
|
14745
14771
|
varProfileMasters: g,
|
14746
|
-
varProfileConfig:
|
14772
|
+
varProfileConfig: v,
|
14747
14773
|
varGridMasters: _,
|
14748
14774
|
varGridConfig: y
|
14749
14775
|
} = await GetAll({ params: { frm_id: e } });
|
14750
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
14776
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, i != null ? i : []), this.varPossibilityMap.set(e, c != null ? c : []), this.varVariableConfigMap.set(e, o != null ? o : []), this.varVariableInputMap.set(e, l != null ? l : []), this.varButtonMap.set(e, transformVarButtons(d)), this.varButtonConfigMap.set(e, transformVarButtonConfig(u != null ? u : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(v != null ? v : null)), this.varProfileMasterMap.set(e, {
|
14751
14777
|
varProfileMasters: transformVarProfileMasterDTOs(g),
|
14752
14778
|
currentVarProfileMasterID: (r = (t = (g == null ? void 0 : g.find(
|
14753
|
-
(
|
14754
|
-
)) || (g == null ? void 0 : g.find((
|
14779
|
+
(m) => m.id === this.getCurrentVarProfileMasterID(e)
|
14780
|
+
)) || (g == null ? void 0 : g.find((m) => m.def_flg === 1)) || (g == null ? void 0 : g.find((m) => m.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (g == null ? void 0 : g.find(() => !0))) == null ? void 0 : t.id) != null ? r : null
|
14755
14781
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMasterMap.set(e, {
|
14756
14782
|
varGridMasters: transformVarGridMasterDTOs(_),
|
14757
|
-
currentVarGridMasterID: (n = (a = (_ == null ? void 0 : _.find((
|
14783
|
+
currentVarGridMasterID: (n = (a = (_ == null ? void 0 : _.find((m) => m.id === this.getCurrentVarGridMasterID(e))) || (_ == null ? void 0 : _.find((m) => m.def_flg === 1)) || (_ == null ? void 0 : _.find((m) => m.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (_ == null ? void 0 : _.find(() => !0))) == null ? void 0 : a.id) != null ? n : null
|
14758
14784
|
}), await Promise.all([
|
14759
14785
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
14760
14786
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
@@ -14970,10 +14996,10 @@ function useKgVar(e, t, r = 0) {
|
|
14970
14996
|
}), onUnmounted(() => {
|
14971
14997
|
i.dispose(s);
|
14972
14998
|
}));
|
14973
|
-
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)),
|
14999
|
+
const o = computed(() => i.isRetrieving(s)), l = computed(() => i.isRetrievingVarProfileMaster(s)), c = computed(() => i.isRetrievingVarGridMaster(s)), u = computed(() => i.isSearched(s)), d = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), E = computed(() => i.isUpdating(s)), g = computed(() => i.isUpdatingRequesting(s)), v = computed(() => i.isCopying(s)), _ = computed(() => i.isCopyingRequesting(s)), y = computed(() => i.isDeleting(s)), m = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), k = computed(() => i.getVarButtons(s)), A = computed(() => i.getVarButtonSearch(s)), C = computed(() => i.getVarButtonCreate(s)), I = computed(() => i.getVarButtonUpdate(s)), D = computed(() => i.getVarButtonCopy(s)), R = computed(() => i.getVarButtonDelete(s)), w = computed(() => i.getVarProfileMasters(s)), N = computed(() => i.getCurrentVarProfileMasterID(s)), O = computed(() => i.getCurrentVarProfileMaster(s)), V = computed(() => {
|
14974
15000
|
var x, q;
|
14975
15001
|
return (q = (x = O.value) == null ? void 0 : x.varProfileDetails) != null ? q : null;
|
14976
|
-
}),
|
15002
|
+
}), P = computed(() => i.getVarGridConfig(s)), M = computed(() => i.getVarGridMasters(s)), K = computed(() => i.getCurrentVarGridMasterID(s)), L = computed(() => i.getCurrentVarGridMaster(s)), B = computed(() => i.getSystemVarGridDetails(s)), U = computed(() => i.getCurrentVarGridDetails(s)), F = computed(() => i.getVarSubmitConfigProps(s));
|
14977
15003
|
return {
|
14978
15004
|
formID: s,
|
14979
15005
|
store: i,
|
@@ -14985,10 +15011,10 @@ function useKgVar(e, t, r = 0) {
|
|
14985
15011
|
isCreatingRequesting: b,
|
14986
15012
|
isUpdating: E,
|
14987
15013
|
isUpdatingRequesting: g,
|
14988
|
-
isCopying:
|
15014
|
+
isCopying: v,
|
14989
15015
|
isCopyingRequesting: _,
|
14990
15016
|
isDeleting: y,
|
14991
|
-
isDeletingRequesting:
|
15017
|
+
isDeletingRequesting: m,
|
14992
15018
|
isOtherRequesting: T,
|
14993
15019
|
varButtons: k,
|
14994
15020
|
varButtonSearch: A,
|
@@ -14999,8 +15025,8 @@ function useKgVar(e, t, r = 0) {
|
|
14999
15025
|
varProfileMasters: w,
|
15000
15026
|
currentVarProfileMasterID: N,
|
15001
15027
|
currentVarProfileMaster: O,
|
15002
|
-
currentVarProfileDetails:
|
15003
|
-
varGridConfig:
|
15028
|
+
currentVarProfileDetails: V,
|
15029
|
+
varGridConfig: P,
|
15004
15030
|
varGridMasters: M,
|
15005
15031
|
currentVarGridMasteID: K,
|
15006
15032
|
currentVarGridMaster: L,
|
@@ -15043,10 +15069,10 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
15043
15069
|
}) {
|
15044
15070
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
15045
15071
|
const r = useKgVar(), a = useKgSearch(r.formID), n = useKgButton(r.formID), s = useKgSubmit(r.formID), i = useKgTable(r.formID), o = computed(() => r.store.getVarProfileConfig(r.formID)), l = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => r.store.getVarGridConfig(r.formID)), u = computed(() => r.store.getVarSubmitConfig(r.formID)), d = computed(() => {
|
15046
|
-
var
|
15072
|
+
var m, T, k, A;
|
15047
15073
|
switch (!0) {
|
15048
15074
|
case r.isCreating.value:
|
15049
|
-
return ((
|
15075
|
+
return ((m = u.value) == null ? void 0 : m.crt_flg) !== 0;
|
15050
15076
|
case r.isUpdating.value:
|
15051
15077
|
return ((T = u.value) == null ? void 0 : T.upt_flg) !== 0;
|
15052
15078
|
case r.isCopying.value:
|
@@ -15056,25 +15082,25 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
15056
15082
|
}
|
15057
15083
|
return !1;
|
15058
15084
|
}), b = computed(() => {
|
15059
|
-
var
|
15060
|
-
return r.isSearched.value && ((
|
15085
|
+
var m;
|
15086
|
+
return r.isSearched.value && ((m = o.value) == null ? void 0 : m.available_flg) !== 0;
|
15061
15087
|
}), E = computed(() => {
|
15062
|
-
var
|
15063
|
-
return r.isSearched.value && ((
|
15088
|
+
var m;
|
15089
|
+
return r.isSearched.value && ((m = l.value) == null ? void 0 : m.available_flg) !== 0;
|
15064
15090
|
}), g = computed(() => {
|
15065
|
-
var
|
15066
|
-
return r.isSearched.value && ((
|
15067
|
-
}),
|
15068
|
-
let
|
15069
|
-
return e.KgBackgroundGray && (
|
15091
|
+
var m;
|
15092
|
+
return r.isSearched.value && ((m = c.value) == null ? void 0 : m.available_flg) !== 0;
|
15093
|
+
}), v = computed(() => !!r.isOtherRequesting.value), _ = computed(() => {
|
15094
|
+
let m = "kg-var";
|
15095
|
+
return e.KgBackgroundGray && (m += " kg-var--bg-gray"), !b.value && !E.value && !g.value && (m += " kg-var--empty"), m;
|
15070
15096
|
});
|
15071
15097
|
function y() {
|
15072
15098
|
return createVNode(Spin, {
|
15073
|
-
spinning:
|
15099
|
+
spinning: v.value
|
15074
15100
|
}, {
|
15075
15101
|
default: () => {
|
15076
|
-
var
|
15077
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [b.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null), g.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (
|
15102
|
+
var m, T;
|
15103
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [b.value && createVNode(KgSearch, null, null), E.value && createVNode(KgButton, null, null), g.value && createVNode(Fragment, null, [createVNode(KgTable, null, null), (T = (m = e.kgSlots) == null ? void 0 : m.afterKgTable) == null ? void 0 : T.call(m)]), d.value && createVNode(KgSubmit, null, null)])];
|
15078
15104
|
}
|
15079
15105
|
});
|
15080
15106
|
}
|
@@ -15323,8 +15349,8 @@ const getProps$p = () => ({
|
|
15323
15349
|
attrs: t
|
15324
15350
|
}) {
|
15325
15351
|
const r = useKg(), a = useKgVar(), n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
15326
|
-
var u, d, b, E, g,
|
15327
|
-
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((b = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? b : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((
|
15352
|
+
var u, d, b, E, g, v, _, y;
|
15353
|
+
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = s.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((b = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? b : 0) === 0 || ((E = s.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((v = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? v : 0) > 1 || KgAuthUtil.getPermissionType((_ = s.value) == null ? void 0 : _.permission_code) === 2 && !r.p((y = s.value) == null ? void 0 : y.permission_code)) : e.kgDisabled;
|
15328
15354
|
});
|
15329
15355
|
async function o() {
|
15330
15356
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -15340,7 +15366,7 @@ const getProps$p = () => ({
|
|
15340
15366
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
15341
15367
|
}
|
15342
15368
|
return () => {
|
15343
|
-
var u, d, b, E, g,
|
15369
|
+
var u, d, b, E, g, v;
|
15344
15370
|
return createVNode(Button, {
|
15345
15371
|
type: "primary",
|
15346
15372
|
disabled: i.value,
|
@@ -15350,7 +15376,7 @@ const getProps$p = () => ({
|
|
15350
15376
|
"kg-frm_id": (d = s.value) == null ? void 0 : d.frm_id,
|
15351
15377
|
"kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
|
15352
15378
|
"kg-cmd": (E = s.value) == null ? void 0 : E.cmd,
|
15353
|
-
"kg-permission": (
|
15379
|
+
"kg-permission": (v = (g = s.value) == null ? void 0 : g.permission_code) != null ? v : "",
|
15354
15380
|
class: t.class
|
15355
15381
|
}, {
|
15356
15382
|
default: () => [l(), c()]
|
@@ -15379,7 +15405,7 @@ const getProps$p = () => ({
|
|
15379
15405
|
function g() {
|
15380
15406
|
i.store.emit(s.formID, "submitCancel", {});
|
15381
15407
|
}
|
15382
|
-
function
|
15408
|
+
function v() {
|
15383
15409
|
return e.kgIcon ? createVNode("span", {
|
15384
15410
|
class: "anticon"
|
15385
15411
|
}, [createVNode(Icon, {
|
@@ -15402,10 +15428,10 @@ const getProps$p = () => ({
|
|
15402
15428
|
"kg-permission": (D = (I = c.value) == null ? void 0 : I.permission_code) != null ? D : "",
|
15403
15429
|
class: a.class
|
15404
15430
|
}, {
|
15405
|
-
default: () => [
|
15431
|
+
default: () => [v(), _()]
|
15406
15432
|
});
|
15407
15433
|
}
|
15408
|
-
function
|
15434
|
+
function m() {
|
15409
15435
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
15410
15436
|
type: "primary",
|
15411
15437
|
onClick: E,
|
@@ -15421,15 +15447,15 @@ const getProps$p = () => ({
|
|
15421
15447
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
15422
15448
|
})]);
|
15423
15449
|
}
|
15424
|
-
return () => createVNode(Fragment, null, [y(),
|
15450
|
+
return () => createVNode(Fragment, null, [y(), m()]);
|
15425
15451
|
}
|
15426
15452
|
}), KgButtonDelete = defineComponent({
|
15427
15453
|
name: "KgButtonDelete",
|
15428
15454
|
props: getProps$p(),
|
15429
15455
|
setup(e) {
|
15430
15456
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), s = computed(() => {
|
15431
|
-
var c, u, d, b, E, g,
|
15432
|
-
return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((b = n.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (E = a.selectedRows.value) == null ? void 0 : E.length) != null ? g : 0) > 1 || KgAuthUtil.getPermissionType((
|
15457
|
+
var c, u, d, b, E, g, v, _;
|
15458
|
+
return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((b = n.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((g = (E = a.selectedRows.value) == null ? void 0 : E.length) != null ? g : 0) > 1 || KgAuthUtil.getPermissionType((v = n.value) == null ? void 0 : v.permission_code) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code)) : e.kgDisabled;
|
15433
15459
|
});
|
15434
15460
|
async function i() {
|
15435
15461
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -15469,26 +15495,26 @@ const getProps$p = () => ({
|
|
15469
15495
|
const t = inject("$dayjs", dayjs), r = useKg(), a = useKgVar();
|
15470
15496
|
useKgSearch();
|
15471
15497
|
const n = useKgTable(), s = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
15472
|
-
var g,
|
15473
|
-
return s.value ? (
|
15498
|
+
var g, v;
|
15499
|
+
return s.value ? (v = (g = s.value) == null ? void 0 : g.cmd) != null ? v : "" : null;
|
15474
15500
|
}), o = computed(() => {
|
15475
|
-
var g,
|
15476
|
-
return (
|
15501
|
+
var g, v;
|
15502
|
+
return (v = (g = s.value) == null ? void 0 : g.cmd_method) != null ? v : "GET";
|
15477
15503
|
}), l = computed(() => {
|
15478
|
-
var
|
15504
|
+
var v, _;
|
15479
15505
|
let g = {
|
15480
15506
|
...n.requestParams.value
|
15481
15507
|
};
|
15482
15508
|
return s.value && (g = {
|
15483
15509
|
...g,
|
15484
|
-
...KgVarUtil.parseRequestParamsToJSON((_ = (
|
15510
|
+
...KgVarUtil.parseRequestParamsToJSON((_ = (v = s.value) == null ? void 0 : v.cmd_prm) != null ? _ : "")
|
15485
15511
|
}), g;
|
15486
15512
|
}), c = computed(() => {
|
15487
|
-
var g,
|
15488
|
-
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || n.isRetrieving.value || ((g = s.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((_ = (
|
15513
|
+
var g, v, _, y, m, T, k, A;
|
15514
|
+
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || n.isRetrieving.value || ((g = s.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((_ = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? _ : 0) === 0 || ((y = s.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (m = n.selectedRows.value) == null ? void 0 : m.length) != null ? T : 0) > 1 || KgAuthUtil.getPermissionType((k = s.value) == null ? void 0 : k.permission_code) === 2 && !r.p((A = s.value) == null ? void 0 : A.permission_code)) : e.kgDisabled;
|
15489
15515
|
}), u = ref(!1);
|
15490
15516
|
async function d() {
|
15491
|
-
var g,
|
15517
|
+
var g, v, _;
|
15492
15518
|
if (!(e.onKgClick && await e.onKgClick())) {
|
15493
15519
|
if (!i.value) {
|
15494
15520
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -15506,8 +15532,8 @@ const getProps$p = () => ({
|
|
15506
15532
|
responseType: "blob"
|
15507
15533
|
}, {
|
15508
15534
|
isTransformResponse: !1
|
15509
|
-
}),
|
15510
|
-
KgUtil.downloadFile(y, `${
|
15535
|
+
}), m = (v = s.value) == null ? void 0 : v.export_excel_filename;
|
15536
|
+
KgUtil.downloadFile(y, `${m ? a.t(m).value : r.t("kg.export")}.${(_ = s.value) == null ? void 0 : _.export_excel_suffix}`);
|
15511
15537
|
} catch (y) {
|
15512
15538
|
throw y;
|
15513
15539
|
} finally {
|
@@ -15526,7 +15552,7 @@ const getProps$p = () => ({
|
|
15526
15552
|
return e.kgText ? e.kgText : r.t("kg.export");
|
15527
15553
|
}
|
15528
15554
|
return () => {
|
15529
|
-
var g,
|
15555
|
+
var g, v, _, y, m, T;
|
15530
15556
|
return createVNode(Button, {
|
15531
15557
|
type: "primary",
|
15532
15558
|
disabled: c.value,
|
@@ -15534,10 +15560,10 @@ const getProps$p = () => ({
|
|
15534
15560
|
loading: u.value,
|
15535
15561
|
onClick: d,
|
15536
15562
|
"kg-id": (g = s.value) == null ? void 0 : g.id,
|
15537
|
-
"kg-frm_id": (
|
15563
|
+
"kg-frm_id": (v = s.value) == null ? void 0 : v.frm_id,
|
15538
15564
|
"kg-var_nam": (_ = s.value) == null ? void 0 : _.var_nam,
|
15539
15565
|
"kg-cmd": (y = s.value) == null ? void 0 : y.cmd,
|
15540
|
-
"kg-permission": (T = (
|
15566
|
+
"kg-permission": (T = (m = s.value) == null ? void 0 : m.permission_code) != null ? T : ""
|
15541
15567
|
}, {
|
15542
15568
|
default: () => [b(), E()]
|
15543
15569
|
});
|
@@ -15552,23 +15578,23 @@ const getProps$p = () => ({
|
|
15552
15578
|
attrs: r
|
15553
15579
|
}) {
|
15554
15580
|
const a = useKg(), n = useKgVar(), s = useKgSearch(), i = useKgButton(), o = useKgTable(), l = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), c = computed(() => {
|
15555
|
-
var y,
|
15556
|
-
return l.value ? (
|
15581
|
+
var y, m;
|
15582
|
+
return l.value ? (m = (y = l.value) == null ? void 0 : y.cmd) != null ? m : "" : null;
|
15557
15583
|
}), u = computed(() => {
|
15558
|
-
var y,
|
15559
|
-
return (
|
15584
|
+
var y, m;
|
15585
|
+
return (m = (y = l.value) == null ? void 0 : y.cmd_method) != null ? m : "POST";
|
15560
15586
|
}), d = computed(() => {
|
15561
|
-
var
|
15587
|
+
var m, T, k;
|
15562
15588
|
let y = {
|
15563
|
-
...(
|
15589
|
+
...(m = s.model.value) != null ? m : {}
|
15564
15590
|
};
|
15565
15591
|
return l.value && (y = {
|
15566
15592
|
...y,
|
15567
15593
|
...KgVarUtil.parseRequestParamsToJSON((k = (T = l.value) == null ? void 0 : T.cmd_prm) != null ? k : "")
|
15568
15594
|
}), y;
|
15569
15595
|
}), b = computed(() => {
|
15570
|
-
var y,
|
15571
|
-
return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((y = l.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((T = (
|
15596
|
+
var y, m, T, k, A, C, I, D;
|
15597
|
+
return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || o.isRetrieving.value || ((y = l.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((T = (m = o.selectedRows.value) == null ? void 0 : m.length) != null ? T : 0) === 0 || ((k = l.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((C = (A = o.selectedRows.value) == null ? void 0 : A.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((I = l.value) == null ? void 0 : I.permission_code) === 2 && !a.p((D = l.value) == null ? void 0 : D.permission_code)) : e.kgDisabled;
|
15572
15598
|
}), E = ref(!1);
|
15573
15599
|
async function g(y) {
|
15574
15600
|
if (!c.value)
|
@@ -15577,14 +15603,14 @@ const getProps$p = () => ({
|
|
15577
15603
|
}), !1;
|
15578
15604
|
E.value = !0;
|
15579
15605
|
try {
|
15580
|
-
const
|
15581
|
-
|
15606
|
+
const m = new FormData();
|
15607
|
+
m.append("file", y);
|
15582
15608
|
const T = await httpClient().axiosInstance.request({
|
15583
15609
|
method: u.value,
|
15584
15610
|
baseURL: window._CONFIG.domianURL,
|
15585
15611
|
url: c.value,
|
15586
15612
|
params: KgUtil.parseParams(d.value),
|
15587
|
-
data:
|
15613
|
+
data: m,
|
15588
15614
|
headers: {
|
15589
15615
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
15590
15616
|
ignoreCancelToken: !0
|
@@ -15597,14 +15623,14 @@ const getProps$p = () => ({
|
|
15597
15623
|
message.success(a.t("kg.importSuccess")), s.search({
|
15598
15624
|
isSearchFirstPage: !0
|
15599
15625
|
});
|
15600
|
-
} catch (
|
15601
|
-
throw
|
15626
|
+
} catch (m) {
|
15627
|
+
throw m;
|
15602
15628
|
} finally {
|
15603
15629
|
E.value = !1;
|
15604
15630
|
}
|
15605
15631
|
return !1;
|
15606
15632
|
}
|
15607
|
-
function
|
15633
|
+
function v() {
|
15608
15634
|
return E.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
15609
15635
|
class: "anticon"
|
15610
15636
|
}, [createVNode(Icon, {
|
@@ -15621,20 +15647,20 @@ const getProps$p = () => ({
|
|
15621
15647
|
disabled: E.value
|
15622
15648
|
}, {
|
15623
15649
|
default: () => {
|
15624
|
-
var y,
|
15650
|
+
var y, m, T, k, A, C;
|
15625
15651
|
return [createVNode(Button, {
|
15626
15652
|
type: "primary",
|
15627
15653
|
disabled: b.value,
|
15628
15654
|
ghost: !e.kgPrimary && !b.value,
|
15629
15655
|
loading: E.value,
|
15630
15656
|
"kg-id": (y = l.value) == null ? void 0 : y.id,
|
15631
|
-
"kg-frm_id": (
|
15657
|
+
"kg-frm_id": (m = l.value) == null ? void 0 : m.frm_id,
|
15632
15658
|
"kg-var_nam": (T = l.value) == null ? void 0 : T.var_nam,
|
15633
15659
|
"kg-cmd": (k = l.value) == null ? void 0 : k.cmd,
|
15634
15660
|
"kg-permission": (C = (A = l.value) == null ? void 0 : A.permission_code) != null ? C : "",
|
15635
15661
|
class: r.class
|
15636
15662
|
}, {
|
15637
|
-
default: () => [
|
15663
|
+
default: () => [v(), _()]
|
15638
15664
|
})];
|
15639
15665
|
}
|
15640
15666
|
});
|
@@ -15652,17 +15678,17 @@ const getProps$p = () => ({
|
|
15652
15678
|
var E, g;
|
15653
15679
|
return (g = (E = n.value) == null ? void 0 : E.cmd_method) != null ? g : "GET";
|
15654
15680
|
}), o = computed(() => {
|
15655
|
-
var g,
|
15681
|
+
var g, v;
|
15656
15682
|
let E = {
|
15657
15683
|
...a.requestParams.value
|
15658
15684
|
};
|
15659
15685
|
return n.value && (E = {
|
15660
15686
|
...E,
|
15661
|
-
...KgVarUtil.parseRequestParamsToJSON((
|
15687
|
+
...KgVarUtil.parseRequestParamsToJSON((v = (g = n.value) == null ? void 0 : g.cmd_prm) != null ? v : "")
|
15662
15688
|
}), E;
|
15663
15689
|
}), l = computed(() => {
|
15664
|
-
var E, g,
|
15665
|
-
return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((E = n.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((
|
15690
|
+
var E, g, v, _, y, m, T, k;
|
15691
|
+
return isNil(e.kgDisabled) ? !!(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((E = n.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((v = (g = a.selectedRows.value) == null ? void 0 : g.length) != null ? v : 0) === 0 || ((_ = n.value) == null ? void 0 : _.dis_mult_select_flg) === 1 && ((m = (y = a.selectedRows.value) == null ? void 0 : y.length) != null ? m : 0) > 1 || KgAuthUtil.getPermissionType((T = n.value) == null ? void 0 : T.permission_code) === 2 && !t.p((k = n.value) == null ? void 0 : k.permission_code)) : e.kgDisabled;
|
15666
15692
|
}), c = ref(!1);
|
15667
15693
|
async function u() {
|
15668
15694
|
var E, g;
|
@@ -15674,7 +15700,7 @@ const getProps$p = () => ({
|
|
15674
15700
|
}
|
15675
15701
|
c.value = !0;
|
15676
15702
|
try {
|
15677
|
-
const
|
15703
|
+
const v = await httpClient().request({
|
15678
15704
|
url: s.value,
|
15679
15705
|
method: i.value,
|
15680
15706
|
params: o.value,
|
@@ -15683,9 +15709,9 @@ const getProps$p = () => ({
|
|
15683
15709
|
joinParamsToUrl: !0,
|
15684
15710
|
isTransformResponse: !1
|
15685
15711
|
}), _ = (E = n.value) == null ? void 0 : E.export_excel_filename;
|
15686
|
-
KgUtil.downloadFile(
|
15687
|
-
} catch (
|
15688
|
-
throw
|
15712
|
+
KgUtil.downloadFile(v, `${_ ? r.t(_).value : t.t("kg.importTemplate")}.${(g = n.value) == null ? void 0 : g.export_excel_suffix}`);
|
15713
|
+
} catch (v) {
|
15714
|
+
throw v;
|
15689
15715
|
} finally {
|
15690
15716
|
c.value = !1;
|
15691
15717
|
}
|
@@ -15701,7 +15727,7 @@ const getProps$p = () => ({
|
|
15701
15727
|
return e.kgText ? e.kgText : t.t("kg.import-template");
|
15702
15728
|
}
|
15703
15729
|
return () => {
|
15704
|
-
var E, g,
|
15730
|
+
var E, g, v, _, y, m;
|
15705
15731
|
return createVNode(Button, {
|
15706
15732
|
type: "primary",
|
15707
15733
|
disabled: l.value,
|
@@ -15710,9 +15736,9 @@ const getProps$p = () => ({
|
|
15710
15736
|
onClick: u,
|
15711
15737
|
"kg-id": (E = n.value) == null ? void 0 : E.id,
|
15712
15738
|
"kg-frm_id": (g = n.value) == null ? void 0 : g.frm_id,
|
15713
|
-
"kg-var_nam": (
|
15739
|
+
"kg-var_nam": (v = n.value) == null ? void 0 : v.var_nam,
|
15714
15740
|
"kg-cmd": (_ = n.value) == null ? void 0 : _.cmd,
|
15715
|
-
"kg-permission": (
|
15741
|
+
"kg-permission": (m = (y = n.value) == null ? void 0 : y.permission_code) != null ? m : ""
|
15716
15742
|
}, {
|
15717
15743
|
default: () => [d(), b()]
|
15718
15744
|
});
|
@@ -15723,11 +15749,11 @@ const getProps$p = () => ({
|
|
15723
15749
|
props: getProps$p(),
|
15724
15750
|
setup(e) {
|
15725
15751
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgButton(), s = useKgTable(), i = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
15726
|
-
var d, b, E, g,
|
15727
|
-
return isNil(e.kgDisabled) ? !!(e.kgLoading || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (b = s.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((g = i.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((_ = (
|
15752
|
+
var d, b, E, g, v, _, y, m;
|
15753
|
+
return isNil(e.kgDisabled) ? !!(e.kgLoading || s.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((E = (b = s.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((g = i.value) == null ? void 0 : g.dis_mult_select_flg) === 1 && ((_ = (v = s.selectedRows.value) == null ? void 0 : v.length) != null ? _ : 0) > 1 || KgAuthUtil.getPermissionType((y = i.value) == null ? void 0 : y.permission_code) === 2 && !t.p((m = i.value) == null ? void 0 : m.permission_code) || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) : e.kgDisabled;
|
15728
15754
|
});
|
15729
15755
|
async function l() {
|
15730
|
-
var g,
|
15756
|
+
var g, v, _;
|
15731
15757
|
if (e.onKgClick && await e.onKgClick())
|
15732
15758
|
return;
|
15733
15759
|
const d = (g = e.kgButton) == null ? void 0 : g.cmd;
|
@@ -15739,13 +15765,13 @@ const getProps$p = () => ({
|
|
15739
15765
|
}
|
15740
15766
|
let b = null;
|
15741
15767
|
const E = async () => {
|
15742
|
-
var
|
15768
|
+
var m, T, k, A, C, I;
|
15743
15769
|
b == null || b.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
15744
15770
|
const y = s.selectedRows.value;
|
15745
15771
|
try {
|
15746
15772
|
const D = await httpClient().request({
|
15747
15773
|
url: d,
|
15748
|
-
method: (T = (
|
15774
|
+
method: (T = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? T : "POST",
|
15749
15775
|
params: KgVarUtil.parseRequestParamsToJSON((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
|
15750
15776
|
data: y != null ? y : []
|
15751
15777
|
});
|
@@ -15753,7 +15779,7 @@ const getProps$p = () => ({
|
|
15753
15779
|
if (((I = e.kgButton) == null ? void 0 : I.re_select_after_reload_flg) !== 0 && s.onAfterSearch(async ({
|
15754
15780
|
datas: w
|
15755
15781
|
}) => {
|
15756
|
-
const N = w.value, O = intersectionWith$1(N, y != null ? y : [], (
|
15782
|
+
const N = w.value, O = intersectionWith$1(N, y != null ? y : [], (V, P) => (V == null ? void 0 : V[s.id.value]) === (P == null ? void 0 : P[s.id.value]));
|
15757
15783
|
return O.length > 0 && s.store.setSelectedRows(r.formID, O), !1;
|
15758
15784
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
15759
15785
|
button: e.kgButton,
|
@@ -15774,7 +15800,7 @@ const getProps$p = () => ({
|
|
15774
15800
|
r.store.setIsOtherRequesting(r.formID, !1), b == null || b.hideLoading();
|
15775
15801
|
}
|
15776
15802
|
};
|
15777
|
-
if (((
|
15803
|
+
if (((v = e.kgButton) == null ? void 0 : v.show_modal_flg) === 1) {
|
15778
15804
|
const y = KgUtil.tryParseJSON((_ = e.kgButton) == null ? void 0 : _.modal_props);
|
15779
15805
|
typeof y.content == "string" && (y.content = r.t(y.content).value), b = KgUtil.confirm({
|
15780
15806
|
onOk: () => E(),
|
@@ -15791,10 +15817,10 @@ const getProps$p = () => ({
|
|
15791
15817
|
}, null)]) : null;
|
15792
15818
|
}
|
15793
15819
|
function u() {
|
15794
|
-
return e.kgText ? e.kgText :
|
15820
|
+
return e.kgText ? e.kgText : e.kgVarName;
|
15795
15821
|
}
|
15796
15822
|
return () => {
|
15797
|
-
var d, b, E, g,
|
15823
|
+
var d, b, E, g, v, _;
|
15798
15824
|
return createVNode(Button, {
|
15799
15825
|
type: "primary",
|
15800
15826
|
disabled: o.value,
|
@@ -15805,7 +15831,7 @@ const getProps$p = () => ({
|
|
15805
15831
|
"kg-frm_id": (b = i.value) == null ? void 0 : b.frm_id,
|
15806
15832
|
"kg-var_nam": (E = i.value) == null ? void 0 : E.var_nam,
|
15807
15833
|
"kg-cmd": (g = i.value) == null ? void 0 : g.cmd,
|
15808
|
-
"kg-permission": (_ = (
|
15834
|
+
"kg-permission": (_ = (v = i.value) == null ? void 0 : v.permission_code) != null ? _ : ""
|
15809
15835
|
}, {
|
15810
15836
|
default: () => [c(), u()]
|
15811
15837
|
});
|
@@ -15886,7 +15912,7 @@ const getProps$p = () => ({
|
|
15886
15912
|
function g() {
|
15887
15913
|
o.store.emit(s.formID, "submitCancel", {});
|
15888
15914
|
}
|
15889
|
-
function
|
15915
|
+
function v() {
|
15890
15916
|
return e.kgIcon ? createVNode("span", {
|
15891
15917
|
class: "anticon"
|
15892
15918
|
}, [createVNode(Icon, {
|
@@ -15910,10 +15936,10 @@ const getProps$p = () => ({
|
|
15910
15936
|
"kg-permission": (D = (I = c.value) == null ? void 0 : I.permission_code) != null ? D : "",
|
15911
15937
|
class: a.class
|
15912
15938
|
}, {
|
15913
|
-
default: () => [
|
15939
|
+
default: () => [v(), _()]
|
15914
15940
|
});
|
15915
15941
|
}
|
15916
|
-
function
|
15942
|
+
function m() {
|
15917
15943
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !s.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
15918
15944
|
type: "primary",
|
15919
15945
|
onClick: E,
|
@@ -15929,7 +15955,7 @@ const getProps$p = () => ({
|
|
15929
15955
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
15930
15956
|
})]);
|
15931
15957
|
}
|
15932
|
-
return () => createVNode(Fragment, null, [y(),
|
15958
|
+
return () => createVNode(Fragment, null, [y(), m()]);
|
15933
15959
|
}
|
15934
15960
|
}), KgButton_Item = "";
|
15935
15961
|
function _isSlot$5(e) {
|
@@ -16001,8 +16027,8 @@ const getProps$o = () => ({
|
|
16001
16027
|
}
|
16002
16028
|
function l(_) {
|
16003
16029
|
return computed(() => {
|
16004
|
-
var
|
16005
|
-
const y = ((T = (
|
16030
|
+
var m, T;
|
16031
|
+
const y = ((T = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : T.kgDisabled) || e.kgDisabled;
|
16006
16032
|
if (y) {
|
16007
16033
|
const k = y(_);
|
16008
16034
|
if (!isNil(k))
|
@@ -16015,8 +16041,8 @@ const getProps$o = () => ({
|
|
16015
16041
|
}
|
16016
16042
|
function c(_) {
|
16017
16043
|
return computed(() => {
|
16018
|
-
var
|
16019
|
-
const y = ((T = (
|
16044
|
+
var m, T;
|
16045
|
+
const y = ((T = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgButton) == null ? void 0 : T.KgLoading) || e.KgLoading;
|
16020
16046
|
if (y) {
|
16021
16047
|
const k = y(_);
|
16022
16048
|
if (!isNil(k))
|
@@ -16044,7 +16070,7 @@ const getProps$o = () => ({
|
|
16044
16070
|
return null;
|
16045
16071
|
switch ((y = n.varGridConfig.value) == null ? void 0 : y.button_display_type) {
|
16046
16072
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
16047
|
-
return
|
16073
|
+
return v();
|
16048
16074
|
default:
|
16049
16075
|
return g();
|
16050
16076
|
}
|
@@ -16064,10 +16090,10 @@ const getProps$o = () => ({
|
|
16064
16090
|
}, null);
|
16065
16091
|
}
|
16066
16092
|
function g() {
|
16067
|
-
var _, y,
|
16068
|
-
return (
|
16093
|
+
var _, y, m;
|
16094
|
+
return (m = (y = (_ = n.varButtons.value) == null ? void 0 : _.filter((T) => T.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : y.filter((T) => T.available_flag !== 0)) == null ? void 0 : m.filter((T) => !(KgAuthUtil.getPermissionType(T.permission_code) !== 2 && !a.p(T.permission_code))).map((T) => E(T));
|
16069
16095
|
}
|
16070
|
-
function
|
16096
|
+
function v() {
|
16071
16097
|
return createVNode(Dropdown, {
|
16072
16098
|
trigger: "click",
|
16073
16099
|
overlayClassName: "kg-button-dropdown"
|
@@ -16079,8 +16105,8 @@ const getProps$o = () => ({
|
|
16079
16105
|
}),
|
16080
16106
|
overlay: () => createVNode(Menu, null, {
|
16081
16107
|
default: () => {
|
16082
|
-
var _, y,
|
16083
|
-
return [(
|
16108
|
+
var _, y, m;
|
16109
|
+
return [(m = (y = (_ = n.varButtons.value) == null ? void 0 : _.filter((T) => T.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : y.filter((T) => T.available_flag !== 0)) == null ? void 0 : m.filter((T) => !(KgAuthUtil.getPermissionType(T.permission_code) !== 2 && !a.p(T.permission_code))).map((T) => {
|
16084
16110
|
let k;
|
16085
16111
|
return createVNode(Menu.Item, null, _isSlot$4(k = E(T)) ? k : {
|
16086
16112
|
default: () => [k]
|
@@ -16592,8 +16618,8 @@ function _useDragRow(e, t, r) {
|
|
16592
16618
|
height: g
|
16593
16619
|
} = u.parentElement.getBoundingClientRect();
|
16594
16620
|
E && g && (b.style.width = `${E + 2}px`, b.style.height = `${g + 2}px`), (_ = d.dataTransfer) == null || _.setDragImage(b, -10, (g + 2) / 2);
|
16595
|
-
const
|
16596
|
-
b.appendChild(
|
16621
|
+
const v = await toCanvas(u.parentElement);
|
16622
|
+
b.appendChild(v), document.body.appendChild(b), (y = d.dataTransfer) == null || y.setDragImage(b, -10, (g + 2) / 2);
|
16597
16623
|
}, u.addEventListener("dragstart", u.__kg__dragstart__), u.__kg__dragend__ = (d) => {
|
16598
16624
|
u.classList.remove("dragging"), u.parentElement.classList.remove("dragging");
|
16599
16625
|
const b = document.querySelector("#__kg_search_config_fields_drag_image__");
|
@@ -16640,12 +16666,12 @@ function _useDragRow(e, t, r) {
|
|
16640
16666
|
const b = t.value.findIndex((_) => _.var_nam === u), E = t.value.findIndex((_) => _.var_nam === d);
|
16641
16667
|
if (b === -1 || E === -1)
|
16642
16668
|
return;
|
16643
|
-
const g = t.value.find((_) => _.var_nam === u),
|
16669
|
+
const g = t.value.find((_) => _.var_nam === u), v = [];
|
16644
16670
|
t.value.forEach((_, y) => {
|
16645
|
-
b > E ? y < E ?
|
16646
|
-
}),
|
16671
|
+
b > E ? y < E ? v.push(_) : y === E ? (v.push(g), v.push(_)) : y > E && y !== b && v.push(_) : b < E && (y < b ? v.push(_) : y === b || (y === E ? (v.push(_), v.push(g)) : v.push(_)));
|
16672
|
+
}), v.forEach((_, y) => {
|
16647
16673
|
_.srtseq = y + 1;
|
16648
|
-
}), t.value =
|
16674
|
+
}), t.value = v, nextTick().finally(() => {
|
16649
16675
|
KgUtil.hideLoading();
|
16650
16676
|
});
|
16651
16677
|
});
|
@@ -16673,35 +16699,35 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16673
16699
|
n.onReady(async () => (await a.store.patchVarProfileDetail(a.formID, "frm_id", {
|
16674
16700
|
dft_val: r.formID
|
16675
16701
|
}), !1)), o.onOpen(async ({
|
16676
|
-
isCreating:
|
16702
|
+
isCreating: v,
|
16677
16703
|
isUpdating: _,
|
16678
16704
|
isCopying: y,
|
16679
|
-
row:
|
16705
|
+
row: m,
|
16680
16706
|
model: T
|
16681
16707
|
}) => {
|
16682
16708
|
var A, C, I, D, R;
|
16683
16709
|
const k = r.store.getSystemVarProfileDetails(r.formID);
|
16684
16710
|
switch (l.value = k ? cloneDeep(toRaw(unref(k))) : [], !0) {
|
16685
|
-
case
|
16711
|
+
case v: {
|
16686
16712
|
c.value = [];
|
16687
16713
|
break;
|
16688
16714
|
}
|
16689
16715
|
case _:
|
16690
16716
|
case y: {
|
16691
|
-
if (
|
16717
|
+
if (m != null && m.id)
|
16692
16718
|
try {
|
16693
16719
|
o.store.setIsLoading(a.formID, !0);
|
16694
16720
|
const w = await QueryByID({
|
16695
16721
|
params: {
|
16696
|
-
id:
|
16722
|
+
id: m.id
|
16697
16723
|
}
|
16698
16724
|
});
|
16699
16725
|
l.value = l.value.map((O) => {
|
16700
|
-
var
|
16701
|
-
const
|
16702
|
-
return
|
16726
|
+
var P;
|
16727
|
+
const V = (P = w == null ? void 0 : w.varProfileDetails) == null ? void 0 : P.find((M) => M.var_nam === O.var_nam);
|
16728
|
+
return V ? {
|
16703
16729
|
...O,
|
16704
|
-
...
|
16730
|
+
...V,
|
16705
16731
|
id: O.id
|
16706
16732
|
} : O;
|
16707
16733
|
});
|
@@ -16725,14 +16751,14 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16725
16751
|
}
|
16726
16752
|
return !1;
|
16727
16753
|
}), o.onBeforeOk(async ({
|
16728
|
-
model:
|
16754
|
+
model: v
|
16729
16755
|
}) => {
|
16730
|
-
var y,
|
16731
|
-
const _ =
|
16732
|
-
return _.frm_id = r.formID, _.varProfileDetails = (
|
16756
|
+
var y, m;
|
16757
|
+
const _ = v.value;
|
16758
|
+
return _.frm_id = r.formID, _.varProfileDetails = (m = (y = l.value) == null ? void 0 : y.filter((T) => c.value.includes(T.id))) != null ? m : [], !1;
|
16733
16759
|
}), o.onOk(async () => (r.store.retrieve(r.formID), !1)), i.onUpdateBeforeClick(({
|
16734
|
-
row:
|
16735
|
-
}) => (
|
16760
|
+
row: v
|
16761
|
+
}) => (v == null ? void 0 : v.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
16736
16762
|
KgUtil.confirm({
|
16737
16763
|
content: t.t("kg.KgSearchConfigModal.canNotUpdateSystemVarProfileMaster"),
|
16738
16764
|
okButtonProps: {
|
@@ -16749,7 +16775,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16749
16775
|
const l = ref([]), c = ref([]), u = ref([]);
|
16750
16776
|
_useDragRow(e.hostFormID, l, u);
|
16751
16777
|
const d = computed(() => {
|
16752
|
-
const
|
16778
|
+
const v = s.selectedRow.value;
|
16753
16779
|
return {
|
16754
16780
|
KgSubmit: {
|
16755
16781
|
kgClass: "search-config-modal--profile--kg-submit"
|
@@ -16758,7 +16784,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16758
16784
|
kgDisabled: (_) => {
|
16759
16785
|
switch (_.var_nam) {
|
16760
16786
|
case "set-default":
|
16761
|
-
if ((
|
16787
|
+
if ((v == null ? void 0 : v.def_flg) === 1)
|
16762
16788
|
return !0;
|
16763
16789
|
break;
|
16764
16790
|
}
|
@@ -16771,21 +16797,21 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16771
16797
|
varProfileDetails: () => createVNode(Transfer, {
|
16772
16798
|
dataSource: l.value,
|
16773
16799
|
targetKeys: c.value,
|
16774
|
-
"onUpdate:targetKeys": (
|
16775
|
-
rowKey: (
|
16800
|
+
"onUpdate:targetKeys": (v) => c.value = v,
|
16801
|
+
rowKey: (v) => v.id,
|
16776
16802
|
showSearch: !0,
|
16777
16803
|
showSelectAll: !1,
|
16778
16804
|
searchPlaceholder: " ",
|
16779
|
-
filterOption: (
|
16805
|
+
filterOption: (v, _) => {
|
16780
16806
|
var y;
|
16781
|
-
return !!((y = _.var_nam) != null && y.includes(
|
16807
|
+
return !!((y = _.var_nam) != null && y.includes(v));
|
16782
16808
|
}
|
16783
16809
|
}, {
|
16784
16810
|
children: ({
|
16785
|
-
direction:
|
16811
|
+
direction: v,
|
16786
16812
|
filteredItems: _,
|
16787
16813
|
selectedKeys: y,
|
16788
|
-
disabled:
|
16814
|
+
disabled: m,
|
16789
16815
|
onItemSelectAll: T,
|
16790
16816
|
onItemSelect: k
|
16791
16817
|
}) => {
|
@@ -16794,25 +16820,25 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16794
16820
|
var w, N;
|
16795
16821
|
return ((w = D.srtseq) != null ? w : 0) - ((N = R.srtseq) != null ? N : 0);
|
16796
16822
|
});
|
16797
|
-
return
|
16823
|
+
return v === "right" && (u.value = A), createVNode(Table, {
|
16798
16824
|
pagination: !1,
|
16799
16825
|
class: "kg-flex-table",
|
16800
16826
|
size: "small",
|
16801
16827
|
scroll: {
|
16802
|
-
x:
|
16828
|
+
x: v === "left" ? "370px" : `${(((I = (C = t.option.value.KgSearch) == null ? void 0 : C.dynamicQuery) == null ? void 0 : I.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
|
16803
16829
|
y: "auto"
|
16804
16830
|
},
|
16805
|
-
columns:
|
16831
|
+
columns: v === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
16806
16832
|
rowKey: "id",
|
16807
16833
|
dataSource: A,
|
16808
16834
|
customRow: (D) => {
|
16809
16835
|
let R = {
|
16810
|
-
onClick: (w) => g(w, D,
|
16836
|
+
onClick: (w) => g(w, D, v, y)
|
16811
16837
|
};
|
16812
|
-
return
|
16838
|
+
return v === "right" && (R["kg-host-frm_id"] = r.formID, R["kg-var_nam"] = D.var_nam), R;
|
16813
16839
|
},
|
16814
16840
|
rowSelection: E({
|
16815
|
-
disabled:
|
16841
|
+
disabled: m,
|
16816
16842
|
selectedKeys: y,
|
16817
16843
|
onItemSelectAll: T,
|
16818
16844
|
onItemSelect: k
|
@@ -16823,13 +16849,13 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16823
16849
|
}
|
16824
16850
|
}
|
16825
16851
|
}), E = ({
|
16826
|
-
disabled:
|
16852
|
+
disabled: v,
|
16827
16853
|
selectedKeys: _,
|
16828
16854
|
onItemSelectAll: y,
|
16829
|
-
onItemSelect:
|
16855
|
+
onItemSelect: m
|
16830
16856
|
}) => ({
|
16831
16857
|
getCheckboxProps: (T) => ({
|
16832
|
-
disabled:
|
16858
|
+
disabled: v || T.disabled
|
16833
16859
|
}),
|
16834
16860
|
onSelectAll(T, k) {
|
16835
16861
|
const A = k.filter((C) => !C.disabled).map(({
|
@@ -16840,16 +16866,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$m = () => ({
|
|
16840
16866
|
onSelect({
|
16841
16867
|
key: T
|
16842
16868
|
}, k) {
|
16843
|
-
|
16869
|
+
m(T, k);
|
16844
16870
|
},
|
16845
16871
|
selectedRowKeys: _,
|
16846
16872
|
columnWidth: 32
|
16847
16873
|
});
|
16848
|
-
function g(
|
16849
|
-
if (!KgDomUtil.isNotClickable(
|
16850
|
-
switch (
|
16874
|
+
function g(v, _, y, m) {
|
16875
|
+
if (!KgDomUtil.isNotClickable(v.target, ["ant-input"]))
|
16876
|
+
switch (m.length = 0, v.detail) {
|
16851
16877
|
case 1:
|
16852
|
-
|
16878
|
+
m[0] = _.id;
|
16853
16879
|
break;
|
16854
16880
|
case 2:
|
16855
16881
|
switch (y) {
|
@@ -16992,9 +17018,9 @@ function _useFormModel(e, t, r) {
|
|
16992
17018
|
async function b() {
|
16993
17019
|
var E;
|
16994
17020
|
((E = n.currentVarProfileDetails.value) != null ? E : []).forEach((g) => {
|
16995
|
-
var _, y,
|
16996
|
-
const
|
16997
|
-
u.value[
|
17021
|
+
var _, y, m;
|
17022
|
+
const v = (_ = g.var_nam) != null ? _ : "";
|
17023
|
+
u.value[v] = KgVarUtil.transformFormItemValue(n.formID, v, a, (y = g.dft_val) != null ? y : void 0, "R"), d.value[v] = KgVarUtil.transformFormItemDynamicQueryOperator(n.formID, v, (m = g.dft_dyn_op) != null ? m : void 0);
|
16998
17024
|
}), r.value.kgHeight = o.value, s.store.setModel(n.formID, u.value), s.store.setOperatorModel(n.formID, d.value), i.value ? (c == null || c(), c = watch(t, async (g) => {
|
16999
17025
|
g && (await s.store.emit(n.formID, "ready", {}), s.store.setIsReady(n.formID, !0));
|
17000
17026
|
}, {
|
@@ -17037,22 +17063,22 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17037
17063
|
defaultHeight: u,
|
17038
17064
|
maxHeight: d,
|
17039
17065
|
minHeight: b
|
17040
|
-
} = _useCommon(), E = ref(null), g = ref(null),
|
17066
|
+
} = _useCommon(), E = ref(null), g = ref(null), v = ref({
|
17041
17067
|
kgHeight: b.value
|
17042
17068
|
});
|
17043
17069
|
_useLayoutHeaderResizeObserver();
|
17044
|
-
const _ = _useFormModel(E, g,
|
17070
|
+
const _ = _useFormModel(E, g, v), y = computed(() => {
|
17045
17071
|
var F, x, q, Q;
|
17046
17072
|
if (!isNil((x = (F = r == null ? void 0 : r.value) == null ? void 0 : F.KgSearch) == null ? void 0 : x.kgDisabled))
|
17047
17073
|
return (Q = (q = r == null ? void 0 : r.value) == null ? void 0 : q.KgSearch) == null ? void 0 : Q.kgDisabled;
|
17048
17074
|
if (!isNil(e.kgDisabled))
|
17049
17075
|
return e.kgDisabled;
|
17050
|
-
}),
|
17076
|
+
}), m = computed(() => {
|
17051
17077
|
var F, x;
|
17052
17078
|
return !!(y.value || i.isRetrieving.value || KgAuthUtil.getPermissionType((F = n.varButtonSearch.value) == null ? void 0 : F.permission_code) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
17053
17079
|
}), T = computed(() => !!(y.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!i.isRetrieving.value), A = ref({
|
17054
17080
|
visible: !1
|
17055
|
-
}), C = computed(() =>
|
17081
|
+
}), C = computed(() => v.value.kgHeight === b.value), I = computed(() => {
|
17056
17082
|
var F, x, q;
|
17057
17083
|
if (n.t((F = n.varButtonSearch.value) == null ? void 0 : F.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
17058
17084
|
return n.t((q = n.varButtonSearch.value) == null ? void 0 : q.var_nam).value;
|
@@ -17093,7 +17119,7 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17093
17119
|
})) : (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u9690\u85CF\u67E5\u8BE2\u6761\u4EF6\u7EC4\u4EF6.`), await s.store.emit(n.formID, "search", F));
|
17094
17120
|
}
|
17095
17121
|
s.store.setSearchFn(n.formID, O);
|
17096
|
-
async function
|
17122
|
+
async function V() {
|
17097
17123
|
_.initFormModel(), o.value ? g.value && g.value.validate().then(async () => {
|
17098
17124
|
await s.store.emit(n.formID, "reset", {});
|
17099
17125
|
}).catch((F) => {
|
@@ -17102,8 +17128,8 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17102
17128
|
});
|
17103
17129
|
}) : await s.store.emit(n.formID, "reset", {});
|
17104
17130
|
}
|
17105
|
-
s.store.setResetFn(n.formID,
|
17106
|
-
function
|
17131
|
+
s.store.setResetFn(n.formID, V);
|
17132
|
+
function P() {
|
17107
17133
|
return O({
|
17108
17134
|
isSearchFirstPage: !0
|
17109
17135
|
}), Promise.resolve(!0);
|
@@ -17157,9 +17183,9 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17157
17183
|
var F, x, q;
|
17158
17184
|
return createVNode(Fragment, null, [K(), createVNode(Button, {
|
17159
17185
|
type: "primary",
|
17160
|
-
ghost: !
|
17161
|
-
disabled:
|
17162
|
-
onClick:
|
17186
|
+
ghost: !m.value,
|
17187
|
+
disabled: m.value,
|
17188
|
+
onClick: V,
|
17163
17189
|
class: "kg-search-btn-reset"
|
17164
17190
|
}, {
|
17165
17191
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
@@ -17170,9 +17196,9 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17170
17196
|
kgText: I.value,
|
17171
17197
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
17172
17198
|
kgPrimary: D.value,
|
17173
|
-
kgDisabled:
|
17199
|
+
kgDisabled: m.value,
|
17174
17200
|
kgLoading: k.value,
|
17175
|
-
onKgClick:
|
17201
|
+
onKgClick: P
|
17176
17202
|
}, null)]);
|
17177
17203
|
}
|
17178
17204
|
function B() {
|
@@ -17205,14 +17231,14 @@ const KgSearch$1 = "", getProps$j = () => ({
|
|
17205
17231
|
});
|
17206
17232
|
}
|
17207
17233
|
function U() {
|
17208
|
-
C.value ?
|
17234
|
+
C.value ? v.value.kgHeight = u.value : v.value.kgHeight = b.value;
|
17209
17235
|
}
|
17210
17236
|
return onUnmounted(async () => {
|
17211
17237
|
s.store.dispose(n.formID);
|
17212
17238
|
}), () => createVNode(KgResizable, {
|
17213
17239
|
ref: E,
|
17214
|
-
kgHeight:
|
17215
|
-
"onUpdate:kgHeight": (F) =>
|
17240
|
+
kgHeight: v.value.kgHeight,
|
17241
|
+
"onUpdate:kgHeight": (F) => v.value.kgHeight = F,
|
17216
17242
|
kgMinHeight: b.value,
|
17217
17243
|
kgMaxHeight: d.value,
|
17218
17244
|
kgDisabled: !l.value,
|
@@ -17622,20 +17648,20 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17622
17648
|
onSelect: (O) => I(O)
|
17623
17649
|
}), E = ref({
|
17624
17650
|
visible: !1
|
17625
|
-
}), g = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))),
|
17651
|
+
}), g = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), v = computed(() => {
|
17626
17652
|
var O;
|
17627
17653
|
return !!u.value || ((O = a.getSelectedVarCatalog) == null ? void 0 : O.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
17628
17654
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
17629
17655
|
watch(() => a.getSelectedVar, (O) => {
|
17630
|
-
O ?
|
17656
|
+
O ? m() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
17631
17657
|
}, {
|
17632
17658
|
immediate: !0
|
17633
17659
|
}), watch(() => a.getSelectedVarCatalog, async (O) => {
|
17634
|
-
var
|
17635
|
-
l.value.var_text = (
|
17660
|
+
var V, P;
|
17661
|
+
l.value.var_text = (V = O == null ? void 0 : O.var_text) != null ? V : "", (P = o.value) == null || P.clearValidate();
|
17636
17662
|
});
|
17637
|
-
async function
|
17638
|
-
var
|
17663
|
+
async function m(O = !1) {
|
17664
|
+
var V, P, M;
|
17639
17665
|
n.value = !0;
|
17640
17666
|
try {
|
17641
17667
|
const {
|
@@ -17645,7 +17671,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17645
17671
|
pageNo: 1,
|
17646
17672
|
pageSize: 999,
|
17647
17673
|
frm_id: e == null ? void 0 : e.value,
|
17648
|
-
var_nam: (
|
17674
|
+
var_nam: (V = a.getSelectedVar) == null ? void 0 : V.var_nam,
|
17649
17675
|
column: "frm_id,locale_id,cust_lvl",
|
17650
17676
|
order: "asc"
|
17651
17677
|
}
|
@@ -17657,7 +17683,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17657
17683
|
});
|
17658
17684
|
a.setSelectedVarCatalog(L != null ? L : null), d.value = L != null && L.id ? [L.id] : [];
|
17659
17685
|
} else
|
17660
|
-
a.setSelectedVarCatalog((
|
17686
|
+
a.setSelectedVarCatalog((P = c.value[0]) != null ? P : null), d.value = (M = c.value[0]) != null && M.id ? [c.value[0].id] : [];
|
17661
17687
|
} catch (K) {
|
17662
17688
|
KgLogger.debug(K == null ? void 0 : K.message);
|
17663
17689
|
} finally {
|
@@ -17665,12 +17691,12 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17665
17691
|
}
|
17666
17692
|
}
|
17667
17693
|
async function T() {
|
17668
|
-
var O,
|
17694
|
+
var O, V, P;
|
17669
17695
|
try {
|
17670
17696
|
s.value = !0, await ((O = o.value) == null ? void 0 : O.validate());
|
17671
17697
|
const M = new VarVariableCatalog({
|
17672
|
-
...(
|
17673
|
-
var_text: (
|
17698
|
+
...(V = a.getSelectedVarCatalog) != null ? V : {},
|
17699
|
+
var_text: (P = l.value) == null ? void 0 : P.var_text
|
17674
17700
|
});
|
17675
17701
|
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
17676
17702
|
data: M
|
@@ -17678,19 +17704,19 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17678
17704
|
successMessageMode: "none"
|
17679
17705
|
}), message.success({
|
17680
17706
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17681
|
-
}), await
|
17707
|
+
}), await m()) : (await Edit({
|
17682
17708
|
data: M
|
17683
17709
|
}, {
|
17684
17710
|
successMessageMode: "none"
|
17685
17711
|
}), message.success({
|
17686
17712
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
17687
|
-
}), await
|
17713
|
+
}), await m(!0)) : (await Add({
|
17688
17714
|
data: M
|
17689
17715
|
}, {
|
17690
17716
|
successMessageMode: "none"
|
17691
17717
|
}), message.success({
|
17692
17718
|
content: t.t("kg.KgVarConfig.createSuccess")
|
17693
|
-
}), await
|
17719
|
+
}), await m()), r.retrieve(e == null ? void 0 : e.value);
|
17694
17720
|
} catch (M) {
|
17695
17721
|
KgUtil.throwIfNotFormError(M);
|
17696
17722
|
} finally {
|
@@ -17699,23 +17725,23 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17699
17725
|
}
|
17700
17726
|
function k({
|
17701
17727
|
isAllForm: O,
|
17702
|
-
isAllLanguage:
|
17728
|
+
isAllLanguage: V
|
17703
17729
|
}) {
|
17704
|
-
var
|
17730
|
+
var P, M, K;
|
17705
17731
|
u.value = new VarVariableCatalog({
|
17706
17732
|
id: "",
|
17707
17733
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
17708
|
-
grp_nam: (
|
17734
|
+
grp_nam: (P = a.getSelectedVar) == null ? void 0 : P.grp_nam,
|
17709
17735
|
var_nam: (M = a.getSelectedVar) == null ? void 0 : M.var_nam,
|
17710
17736
|
frm_id: O || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
17711
|
-
locale_id:
|
17737
|
+
locale_id: V ? "ALL" : (K = t.locale) == null ? void 0 : K.value,
|
17712
17738
|
var_text: ""
|
17713
17739
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
17714
17740
|
}
|
17715
17741
|
function A() {
|
17716
|
-
var
|
17742
|
+
var V;
|
17717
17743
|
c.value = without$1(c.value, u.value), u.value = null;
|
17718
|
-
const O = (
|
17744
|
+
const O = (V = c.value[0]) != null ? V : null;
|
17719
17745
|
a.setSelectedVarCatalog(O), d.value = O ? [O.id] : [];
|
17720
17746
|
}
|
17721
17747
|
function C() {
|
@@ -17731,13 +17757,13 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17731
17757
|
joinParamsToUrl: !0
|
17732
17758
|
}), message.success({
|
17733
17759
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
17734
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
17760
|
+
}), r.retrieve(e == null ? void 0 : e.value), await m();
|
17735
17761
|
}
|
17736
17762
|
});
|
17737
17763
|
}
|
17738
17764
|
function I(O) {
|
17739
|
-
var
|
17740
|
-
((
|
17765
|
+
var V;
|
17766
|
+
((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) !== O.id && (unref(u) ? KgUtil.confirm({
|
17741
17767
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
17742
17768
|
onOk: () => {
|
17743
17769
|
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(O)), d.value = [O.id];
|
@@ -17758,8 +17784,8 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17758
17784
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
17759
17785
|
}), createVNode(Button, {
|
17760
17786
|
onClick: C,
|
17761
|
-
disabled:
|
17762
|
-
ghost: !
|
17787
|
+
disabled: v.value,
|
17788
|
+
ghost: !v.value,
|
17763
17789
|
type: "primary",
|
17764
17790
|
danger: !0
|
17765
17791
|
}, {
|
@@ -17767,7 +17793,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17767
17793
|
})]);
|
17768
17794
|
}
|
17769
17795
|
function w() {
|
17770
|
-
let O,
|
17796
|
+
let O, V;
|
17771
17797
|
return createVNode("div", {
|
17772
17798
|
class: "form"
|
17773
17799
|
}, [createVNode(Form, {
|
@@ -17784,7 +17810,7 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17784
17810
|
}, {
|
17785
17811
|
default: () => [createVNode(Textarea, {
|
17786
17812
|
value: l.value.var_text,
|
17787
|
-
"onUpdate:value": (
|
17813
|
+
"onUpdate:value": (P) => l.value.var_text = P,
|
17788
17814
|
disabled: !a.getSelectedVarCatalog
|
17789
17815
|
}, null), createVNode("button", {
|
17790
17816
|
hidden: !0
|
@@ -17802,14 +17828,14 @@ const KgVarConfigModalVarVarVariableCatalog = defineComponent({
|
|
17802
17828
|
disabled: y.value,
|
17803
17829
|
onClick: T,
|
17804
17830
|
type: "primary"
|
17805
|
-
}, _isSlot$1(
|
17806
|
-
default: () => [
|
17831
|
+
}, _isSlot$1(V = t.t("common.save")) ? V : {
|
17832
|
+
default: () => [V]
|
17807
17833
|
})])]);
|
17808
17834
|
}
|
17809
17835
|
function N(O) {
|
17810
|
-
var
|
17811
|
-
let
|
17812
|
-
return O.id || (
|
17836
|
+
var P;
|
17837
|
+
let V = "";
|
17838
|
+
return O.id || (V += " ant-table-row-create"), O.id === ((P = a.getSelectedVarCatalog) == null ? void 0 : P.id) && (V += " ant-table-row-selected "), V;
|
17813
17839
|
}
|
17814
17840
|
return () => createVNode("div", {
|
17815
17841
|
class: "kg-var-config-modal--var--var-variable-catalog"
|
@@ -18195,7 +18221,7 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18195
18221
|
return (I = (C = (A = (k = r.store).getUseUserStore) == null ? void 0 : A.call(k)) == null ? void 0 : C.getUserWarehouses) != null ? I : [];
|
18196
18222
|
});
|
18197
18223
|
watch(a.visible, (k) => {
|
18198
|
-
!d.value || (k ? g() :
|
18224
|
+
!d.value || (k ? g() : v());
|
18199
18225
|
}, {
|
18200
18226
|
immediate: !0
|
18201
18227
|
}), onMounted(() => {
|
@@ -18207,7 +18233,7 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18207
18233
|
function g() {
|
18208
18234
|
i.value = a.warehouse.value, y();
|
18209
18235
|
}
|
18210
|
-
function
|
18236
|
+
function v() {
|
18211
18237
|
s.value = "", c.value = [], i.value = null;
|
18212
18238
|
}
|
18213
18239
|
function _() {
|
@@ -18245,7 +18271,7 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18245
18271
|
o.value = !1;
|
18246
18272
|
}
|
18247
18273
|
}
|
18248
|
-
function
|
18274
|
+
function m(k, A) {
|
18249
18275
|
var C;
|
18250
18276
|
switch (k.detail) {
|
18251
18277
|
case 1:
|
@@ -18308,7 +18334,7 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
18308
18334
|
var A;
|
18309
18335
|
return {
|
18310
18336
|
class: k.whId === ((A = i.value) == null ? void 0 : A.whId) ? "selected" : "",
|
18311
|
-
onClick: (C) =>
|
18337
|
+
onClick: (C) => m(C, k)
|
18312
18338
|
};
|
18313
18339
|
}
|
18314
18340
|
}, null)]
|
@@ -18471,11 +18497,11 @@ class KgUtil {
|
|
18471
18497
|
u[g] = s[g];
|
18472
18498
|
return;
|
18473
18499
|
}
|
18474
|
-
const
|
18500
|
+
const v = r ? (T = l == null ? void 0 : l.store) == null ? void 0 : T.getVarProfileDetail(r, g) : null, _ = s[g];
|
18475
18501
|
let y = c == null ? void 0 : c[g];
|
18476
18502
|
(((A = (k = o.option.value.KgSearch) == null ? void 0 : k.dynamicQuery) == null ? void 0 : A.on) !== !0 || r && ((I = (C = l == null ? void 0 : l.currentVarProfileMaster) == null ? void 0 : C.value) == null ? void 0 : I.dyn_flg) !== 1) && (y = KG_DYNAMIC_QUERY_OPERATOR.EQ);
|
18477
|
-
let
|
18478
|
-
switch (r && (
|
18503
|
+
let m = g;
|
18504
|
+
switch (r && (v == null ? void 0 : v.use_underscore_when_dynamic_query_flag) !== 0 && (m = g.split(".").map((D) => snakeCase$1(D)).join(".")), !0) {
|
18479
18505
|
case g.endsWith("_obj"): {
|
18480
18506
|
u[g] = void 0, delete u[g];
|
18481
18507
|
break;
|
@@ -18502,7 +18528,7 @@ class KgUtil {
|
|
18502
18528
|
default:
|
18503
18529
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18504
18530
|
}
|
18505
|
-
R = ` AND (${
|
18531
|
+
R = ` AND (${m} < '${w}' OR ${m} >= '${N}')`;
|
18506
18532
|
break;
|
18507
18533
|
}
|
18508
18534
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
@@ -18521,7 +18547,7 @@ class KgUtil {
|
|
18521
18547
|
default:
|
18522
18548
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18523
18549
|
}
|
18524
|
-
R = ` AND (${
|
18550
|
+
R = ` AND (${m} < '${w}')`;
|
18525
18551
|
break;
|
18526
18552
|
}
|
18527
18553
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
@@ -18542,7 +18568,7 @@ class KgUtil {
|
|
18542
18568
|
default:
|
18543
18569
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18544
18570
|
}
|
18545
|
-
R = ` AND (${
|
18571
|
+
R = ` AND (${m} < '${N}')`;
|
18546
18572
|
break;
|
18547
18573
|
}
|
18548
18574
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
@@ -18563,7 +18589,7 @@ class KgUtil {
|
|
18563
18589
|
default:
|
18564
18590
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18565
18591
|
}
|
18566
|
-
R = ` AND (${
|
18592
|
+
R = ` AND (${m} >= '${N}')`;
|
18567
18593
|
break;
|
18568
18594
|
}
|
18569
18595
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
@@ -18582,7 +18608,7 @@ class KgUtil {
|
|
18582
18608
|
default:
|
18583
18609
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18584
18610
|
}
|
18585
|
-
R = ` AND (${
|
18611
|
+
R = ` AND (${m} >= '${w}')`;
|
18586
18612
|
break;
|
18587
18613
|
}
|
18588
18614
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
@@ -18604,7 +18630,7 @@ class KgUtil {
|
|
18604
18630
|
default:
|
18605
18631
|
throw new Error("KgUtil.parseParamsForDynamicQuery() | \u65E5\u671F\u683C\u5F0F\u6709\u8BEF.");
|
18606
18632
|
}
|
18607
|
-
R = ` AND (${
|
18633
|
+
R = ` AND (${m} >= '${w}' AND ${m} < '${N}')`;
|
18608
18634
|
break;
|
18609
18635
|
}
|
18610
18636
|
}
|
@@ -18632,7 +18658,7 @@ class KgUtil {
|
|
18632
18658
|
break;
|
18633
18659
|
}
|
18634
18660
|
}
|
18635
|
-
N && (w += ` AND (${
|
18661
|
+
N && (w += ` AND (${m} >= N'${N}')`), O && (w += ` AND (${m} < N'${O}')`), u[g] = w;
|
18636
18662
|
break;
|
18637
18663
|
}
|
18638
18664
|
case Array.isArray(_): {
|
@@ -18641,7 +18667,7 @@ class KgUtil {
|
|
18641
18667
|
break;
|
18642
18668
|
}
|
18643
18669
|
const D = _.map((R) => `N'${String(R)}'`).join(", ");
|
18644
|
-
u[g] = ` AND (${
|
18670
|
+
u[g] = ` AND (${m} IN (${D}))`;
|
18645
18671
|
break;
|
18646
18672
|
}
|
18647
18673
|
case isObjectLike(_):
|
@@ -18654,24 +18680,24 @@ class KgUtil {
|
|
18654
18680
|
let D = this.parseParamFromString(_);
|
18655
18681
|
switch (y) {
|
18656
18682
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
18657
|
-
D = ` AND (${
|
18683
|
+
D = ` AND (${m} <> N'${D}')`;
|
18658
18684
|
break;
|
18659
18685
|
}
|
18660
18686
|
case KG_DYNAMIC_QUERY_OPERATOR.START_WITH: {
|
18661
|
-
D = ` AND (${
|
18687
|
+
D = ` AND (${m} LIKE N'${D}%')`;
|
18662
18688
|
break;
|
18663
18689
|
}
|
18664
18690
|
case KG_DYNAMIC_QUERY_OPERATOR.END_WITH: {
|
18665
|
-
D = ` AND (${
|
18691
|
+
D = ` AND (${m} LIKE N'%${D}')`;
|
18666
18692
|
break;
|
18667
18693
|
}
|
18668
18694
|
case KG_DYNAMIC_QUERY_OPERATOR.CONTAIN: {
|
18669
|
-
D = ` AND (${
|
18695
|
+
D = ` AND (${m} LIKE N'%${D}%')`;
|
18670
18696
|
break;
|
18671
18697
|
}
|
18672
18698
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
18673
18699
|
default: {
|
18674
|
-
D = ` AND (${
|
18700
|
+
D = ` AND (${m} = N'${D}')`;
|
18675
18701
|
break;
|
18676
18702
|
}
|
18677
18703
|
}
|
@@ -18682,28 +18708,28 @@ class KgUtil {
|
|
18682
18708
|
let D = "";
|
18683
18709
|
switch (y) {
|
18684
18710
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
18685
|
-
D = ` AND (${
|
18711
|
+
D = ` AND (${m} <> ${_})`;
|
18686
18712
|
break;
|
18687
18713
|
}
|
18688
18714
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
18689
|
-
D = ` AND (${
|
18715
|
+
D = ` AND (${m} < ${_})`;
|
18690
18716
|
break;
|
18691
18717
|
}
|
18692
18718
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
18693
|
-
D = ` AND (${
|
18719
|
+
D = ` AND (${m} <= ${_})`;
|
18694
18720
|
break;
|
18695
18721
|
}
|
18696
18722
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
18697
|
-
D = ` AND (${
|
18723
|
+
D = ` AND (${m} > ${_})`;
|
18698
18724
|
break;
|
18699
18725
|
}
|
18700
18726
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
18701
|
-
D = ` AND (${
|
18727
|
+
D = ` AND (${m} >= ${_})`;
|
18702
18728
|
break;
|
18703
18729
|
}
|
18704
18730
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
18705
18731
|
default: {
|
18706
|
-
D = ` AND (${
|
18732
|
+
D = ` AND (${m} = ${_})`;
|
18707
18733
|
break;
|
18708
18734
|
}
|
18709
18735
|
}
|
@@ -18714,12 +18740,12 @@ class KgUtil {
|
|
18714
18740
|
let D = "";
|
18715
18741
|
switch (y) {
|
18716
18742
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
18717
|
-
D = ` AND (${
|
18743
|
+
D = ` AND (${m} <> ${_ ? 1 : 0})`;
|
18718
18744
|
break;
|
18719
18745
|
}
|
18720
18746
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
18721
18747
|
default: {
|
18722
|
-
D = ` AND (${
|
18748
|
+
D = ` AND (${m} = ${_ ? 1 : 0})`;
|
18723
18749
|
break;
|
18724
18750
|
}
|
18725
18751
|
}
|
@@ -18734,12 +18760,12 @@ class KgUtil {
|
|
18734
18760
|
});
|
18735
18761
|
let b = `WHERE (1 = 1)${reduce(
|
18736
18762
|
u,
|
18737
|
-
(g,
|
18738
|
-
var
|
18763
|
+
(g, v, _) => {
|
18764
|
+
var m;
|
18739
18765
|
if (i.includes(_))
|
18740
18766
|
return g;
|
18741
|
-
const y = r ? (
|
18742
|
-
return (y == null ? void 0 : y.exclude_from_where_sql_flag) === 1 || !
|
18767
|
+
const y = r ? (m = l == null ? void 0 : l.store) == null ? void 0 : m.getVarProfileDetail(r, _) : null;
|
18768
|
+
return (y == null ? void 0 : y.exclude_from_where_sql_flag) === 1 || !v ? g : g + v;
|
18743
18769
|
},
|
18744
18770
|
""
|
18745
18771
|
)}`;
|
@@ -18747,18 +18773,18 @@ class KgUtil {
|
|
18747
18773
|
let E = "";
|
18748
18774
|
if (s.column) {
|
18749
18775
|
const g = r && l ? l.store.getVarProfileDetail(r, s.column) : null;
|
18750
|
-
let
|
18751
|
-
g && (g == null ? void 0 : g.use_underscore_when_dynamic_query_flag) !== 0 && (
|
18776
|
+
let v = s.column;
|
18777
|
+
g && (g == null ? void 0 : g.use_underscore_when_dynamic_query_flag) !== 0 && (v = s.column.split(".").map((_) => snakeCase$1(_)).join(".")), E = `ORDER BY ${v}`, s.order === "asc" ? E += " ASC" : s.order === "desc" && (E += " DESC");
|
18752
18778
|
} else
|
18753
18779
|
E = "ORDER BY 1";
|
18754
18780
|
if (!isNil(s.pageNo)) {
|
18755
18781
|
const g = Number.parseInt(s.pageNo);
|
18756
18782
|
if (Number.isNaN(g) || g <= 0)
|
18757
18783
|
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
18758
|
-
const
|
18759
|
-
if (Number.isNaN(
|
18784
|
+
const v = Number.parseInt(s.pageSize);
|
18785
|
+
if (Number.isNaN(v) || v <= 0)
|
18760
18786
|
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
18761
|
-
E += ` OFFSET ${(g - 1) *
|
18787
|
+
E += ` OFFSET ${(g - 1) * v} ROWS FETCH NEXT ${v} ROWS ONLY`;
|
18762
18788
|
}
|
18763
18789
|
return E = encodeURIComponent(E.trim()), { sql: `${b} ${E}`.trim(), whereSql: b, orderBySql: E };
|
18764
18790
|
}
|
@@ -19404,6 +19430,20 @@ function ValidateUpdateSql(e, t) {
|
|
19404
19430
|
}
|
19405
19431
|
ValidateUpdateSql.method = "POST";
|
19406
19432
|
ValidateUpdateSql.url = "/var/VarDda/validateUpdateSql";
|
19433
|
+
class ValidateVarButtonVarNameQuery {
|
19434
|
+
}
|
19435
|
+
function ValidateVarButtonVarName(e, t) {
|
19436
|
+
return httpClient().request(
|
19437
|
+
{
|
19438
|
+
method: ValidateVarButtonVarName.method,
|
19439
|
+
url: `${t != null && t.mock ? "/mock" : ""}${ValidateVarButtonVarName.url}`,
|
19440
|
+
...e != null ? e : {}
|
19441
|
+
},
|
19442
|
+
t
|
19443
|
+
);
|
19444
|
+
}
|
19445
|
+
ValidateVarButtonVarName.method = "POST";
|
19446
|
+
ValidateVarButtonVarName.url = "/var/VarDda/validateVarButtonVarName";
|
19407
19447
|
const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
19408
19448
|
__proto__: null,
|
19409
19449
|
Create,
|
@@ -19421,7 +19461,9 @@ const index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19421
19461
|
ValidateSearchSql,
|
19422
19462
|
ValidateSearchSqlQuery,
|
19423
19463
|
ValidateUpdateSql,
|
19424
|
-
ValidateUpdateSqlQuery
|
19464
|
+
ValidateUpdateSqlQuery,
|
19465
|
+
ValidateVarButtonVarName,
|
19466
|
+
ValidateVarButtonVarNameQuery
|
19425
19467
|
}, Symbol.toStringTag, { value: "Module" }));
|
19426
19468
|
class QueryByIDQuery$1 {
|
19427
19469
|
constructor(t) {
|
@@ -19882,6 +19924,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19882
19924
|
varProfileMaster: {
|
19883
19925
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
19884
19926
|
def_flg: 1,
|
19927
|
+
dyn_flg: 1,
|
19885
19928
|
frm_id: "",
|
19886
19929
|
grp_nam: "WMS",
|
19887
19930
|
prf_var_nam: "defaultProfile",
|
@@ -19908,19 +19951,19 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19908
19951
|
a.value = O != null ? O : [];
|
19909
19952
|
}
|
19910
19953
|
function b(O) {
|
19911
|
-
n.value.frmId = O != null ? O : "", n.value.varButtons.forEach((
|
19954
|
+
n.value.frmId = O != null ? O : "", n.value.varButtons.forEach((V) => V.frm_id = O), n.value.varContexts.forEach((V) => V.frm_id = O), n.value.varDda.frm_id = O != null ? O : "", n.value.varGridConfig.frm_id = O != null ? O : "", n.value.varGridDetails.forEach((V) => V.frm_id = O), n.value.varGridMaster.frm_id = O != null ? O : "", n.value.varProfileConfig.frm_id = O != null ? O : "", n.value.varProfileDetails.forEach((V) => V.frm_id = O), n.value.varProfileMaster.frm_id = O != null ? O : "", n.value.varSubmitConfig.frm_id = O != null ? O : "", n.value.varSubmitFields.forEach((V) => V.frm_id = O), n.value.varVariableCatalogs.forEach((V) => V.frm_id = O), n.value.varVariableConfigs.forEach((V) => V.frm_id = O);
|
19912
19955
|
}
|
19913
19956
|
function E(O) {
|
19914
|
-
const { properties:
|
19915
|
-
Object.entries(
|
19916
|
-
|
19957
|
+
const { properties: V = {} } = O;
|
19958
|
+
Object.entries(V).forEach(([P, M]) => {
|
19959
|
+
P in n.value.sysPermission && n.value.sysPermission[P] !== M && (n.value.sysPermission[P] = M);
|
19917
19960
|
});
|
19918
19961
|
}
|
19919
19962
|
function g(O) {
|
19920
|
-
const { frmId:
|
19921
|
-
n.value.varDda.frm_id =
|
19963
|
+
const { frmId: V, frmNam: P } = O;
|
19964
|
+
n.value.varDda.frm_id = V, n.value.varDda.frm_nam = P;
|
19922
19965
|
}
|
19923
|
-
function
|
19966
|
+
function v(O) {
|
19924
19967
|
n.value.varButtons = [
|
19925
19968
|
...toRaw(n.value.varButtons),
|
19926
19969
|
{
|
@@ -19933,11 +19976,11 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19933
19976
|
], R(), w();
|
19934
19977
|
}
|
19935
19978
|
function _(O) {
|
19936
|
-
const { varNam:
|
19979
|
+
const { varNam: V, properties: P = {} } = O, M = n.value.varButtons.find((B) => B.var_nam === V);
|
19937
19980
|
if (!M)
|
19938
19981
|
return;
|
19939
19982
|
let K = !1;
|
19940
|
-
if (Object.entries(
|
19983
|
+
if (Object.entries(P).forEach(([B, U]) => {
|
19941
19984
|
B in M && M[B] !== U && (M[B] = U, K = !0);
|
19942
19985
|
}), !K)
|
19943
19986
|
return;
|
@@ -19945,17 +19988,17 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19945
19988
|
L.splice(n.value.varButtons.indexOf(M), 1, { ...M }), n.value.varButtons = toRaw(L);
|
19946
19989
|
}
|
19947
19990
|
function y(O) {
|
19948
|
-
const { varNam:
|
19949
|
-
if (!
|
19991
|
+
const { varNam: V } = O, P = n.value.varButtons.find((K) => K.var_nam === V);
|
19992
|
+
if (!P)
|
19950
19993
|
return;
|
19951
19994
|
const M = [...n.value.varButtons];
|
19952
|
-
M.splice(n.value.varButtons.indexOf(
|
19995
|
+
M.splice(n.value.varButtons.indexOf(P), 1), n.value.varButtons = toRaw(M), R();
|
19953
19996
|
}
|
19954
|
-
function
|
19955
|
-
const { varNam:
|
19956
|
-
if (!!
|
19957
|
-
if (n.value.varVariableCatalogs.find((M) => M.var_nam ===
|
19958
|
-
T({ varNam:
|
19997
|
+
function m(O) {
|
19998
|
+
const { varNam: V, varText: P } = O;
|
19999
|
+
if (!!V) {
|
20000
|
+
if (n.value.varVariableCatalogs.find((M) => M.var_nam === V)) {
|
20001
|
+
T({ varNam: V, varText: P });
|
19959
20002
|
return;
|
19960
20003
|
}
|
19961
20004
|
n.value.varVariableCatalogs = [
|
@@ -19965,36 +20008,39 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
19965
20008
|
frm_id: l.value,
|
19966
20009
|
grp_nam: "WMS",
|
19967
20010
|
locale_id: e.locale.value,
|
19968
|
-
var_nam:
|
19969
|
-
var_text:
|
20011
|
+
var_nam: V,
|
20012
|
+
var_text: P || V
|
19970
20013
|
}
|
19971
20014
|
], R();
|
19972
20015
|
}
|
19973
20016
|
}
|
19974
20017
|
function T(O) {
|
19975
|
-
const { varNam:
|
19976
|
-
if (!
|
20018
|
+
const { varNam: V, varText: P } = O;
|
20019
|
+
if (!V)
|
19977
20020
|
return;
|
19978
|
-
const M = n.value.varVariableCatalogs.find((K) => K.var_nam ===
|
19979
|
-
!M || (M.var_text =
|
20021
|
+
const M = n.value.varVariableCatalogs.find((K) => K.var_nam === V);
|
20022
|
+
!M || (M.var_text = P || V);
|
19980
20023
|
}
|
19981
20024
|
function k(O) {
|
19982
|
-
n.value.varProfileDetails = O.map((
|
19983
|
-
...
|
20025
|
+
n.value.varProfileDetails = O.map((V) => ({
|
20026
|
+
...V,
|
19984
20027
|
frm_id: l.value,
|
19985
20028
|
grp_nam: "WMS"
|
19986
20029
|
}));
|
19987
20030
|
}
|
19988
20031
|
function A(O) {
|
19989
|
-
n.value.varGridDetails = O.map((
|
19990
|
-
...
|
20032
|
+
n.value.varGridDetails = O.map((V) => ({
|
20033
|
+
...V,
|
19991
20034
|
frm_id: l.value,
|
19992
20035
|
grp_nam: "WMS"
|
19993
20036
|
}));
|
19994
20037
|
}
|
19995
20038
|
function C(O) {
|
19996
|
-
n.value.varSubmitFields = O.map((
|
19997
|
-
...
|
20039
|
+
n.value.varSubmitFields = O.map((V) => ({
|
20040
|
+
...V,
|
20041
|
+
cpy_ena_flg: 1,
|
20042
|
+
cpy_flg: 1,
|
20043
|
+
cpy_vis_flg: 1,
|
19998
20044
|
crt_ena_flg: 1,
|
19999
20045
|
crt_flg: 1,
|
20000
20046
|
crt_vis_flg: 1,
|
@@ -20006,8 +20052,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20006
20052
|
}));
|
20007
20053
|
}
|
20008
20054
|
function I(O) {
|
20009
|
-
n.value.varVariableConfigs = O.map((
|
20010
|
-
...
|
20055
|
+
n.value.varVariableConfigs = O.map((V) => ({
|
20056
|
+
...V,
|
20011
20057
|
ctrl_typ: KG_FORM_ITEM_TYPE.INPUT,
|
20012
20058
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
20013
20059
|
frm_id: l.value,
|
@@ -20016,31 +20062,31 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20016
20062
|
}));
|
20017
20063
|
}
|
20018
20064
|
function D(O) {
|
20019
|
-
var
|
20020
|
-
return O && (M = (
|
20065
|
+
var V, P, M;
|
20066
|
+
return O && (M = (P = (V = n.value.varVariableCatalogs) == null ? void 0 : V.find((K) => K.var_nam === O)) == null ? void 0 : P.var_text) != null ? M : "";
|
20021
20067
|
}
|
20022
20068
|
function R() {
|
20023
20069
|
const O = uniq(
|
20024
20070
|
compact([
|
20025
|
-
...n.value.varButtons.map((
|
20026
|
-
...n.value.varGridDetails.map((
|
20071
|
+
...n.value.varButtons.map((V) => V.var_nam),
|
20072
|
+
...n.value.varGridDetails.map((V) => V.var_nam),
|
20027
20073
|
n.value.varGridMaster.grd_var_nam,
|
20028
|
-
...n.value.varProfileDetails.map((
|
20074
|
+
...n.value.varProfileDetails.map((V) => V.var_nam),
|
20029
20075
|
n.value.varProfileMaster.prf_var_nam,
|
20030
|
-
...n.value.varSubmitFields.map((
|
20076
|
+
...n.value.varSubmitFields.map((V) => V.var_nam)
|
20031
20077
|
])
|
20032
20078
|
);
|
20033
20079
|
n.value.varContexts = O.map(
|
20034
|
-
(
|
20080
|
+
(V) => new VarContext({ frm_id: l.value, var_nam: V, grp_nam: "WMS" })
|
20035
20081
|
), n.value.varVariableCatalogs = toRaw(
|
20036
|
-
n.value.varVariableCatalogs.filter((
|
20082
|
+
n.value.varVariableCatalogs.filter((V) => O.includes(V.var_nam))
|
20037
20083
|
);
|
20038
20084
|
}
|
20039
20085
|
function w() {
|
20040
20086
|
var O;
|
20041
|
-
(O = n.value.varButtons) == null || O.forEach((
|
20042
|
-
var
|
20043
|
-
|
20087
|
+
(O = n.value.varButtons) == null || O.forEach((V) => {
|
20088
|
+
var P, M;
|
20089
|
+
V.typDsc = (M = (P = t.value.find((K) => K.codval === V.typ)) == null ? void 0 : P.shortDsc) != null ? M : "";
|
20044
20090
|
});
|
20045
20091
|
}
|
20046
20092
|
async function N() {
|
@@ -20068,13 +20114,13 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
20068
20114
|
setFrmId: b,
|
20069
20115
|
patchSysPermission: E,
|
20070
20116
|
updateVarDda: g,
|
20071
|
-
createVarButton:
|
20117
|
+
createVarButton: v,
|
20072
20118
|
patchVarButton: _,
|
20073
20119
|
deleteVarButton: y,
|
20074
20120
|
setVarProfileDetails: k,
|
20075
20121
|
setVarGridDetails: A,
|
20076
20122
|
setVarSubmitFields: C,
|
20077
|
-
createVarVariableCatalog:
|
20123
|
+
createVarVariableCatalog: m,
|
20078
20124
|
updateVarVariableCatalog: T,
|
20079
20125
|
setVarVariableConfigs: I,
|
20080
20126
|
getVarText: D
|
@@ -20112,8 +20158,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20112
20158
|
}, {
|
20113
20159
|
errorMessageMode: "none"
|
20114
20160
|
}), E();
|
20115
|
-
} catch (
|
20116
|
-
|
20161
|
+
} catch (v) {
|
20162
|
+
v != null && v.message ? g(v == null ? void 0 : v.message) : g(v);
|
20117
20163
|
} finally {
|
20118
20164
|
a.setIsLoading(!1);
|
20119
20165
|
}
|
@@ -20137,8 +20183,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20137
20183
|
}, {
|
20138
20184
|
errorMessageMode: "none"
|
20139
20185
|
}), E();
|
20140
|
-
} catch (
|
20141
|
-
|
20186
|
+
} catch (v) {
|
20187
|
+
v != null && v.message ? g(v == null ? void 0 : v.message) : g(v);
|
20142
20188
|
} finally {
|
20143
20189
|
a.setIsLoading(!1);
|
20144
20190
|
}
|
@@ -20275,16 +20321,16 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20275
20321
|
datas: o.getVarButtons
|
20276
20322
|
}), !0)), i.onSelectBeforeSetDatas(async ({
|
20277
20323
|
variableName: g,
|
20278
|
-
isCreating:
|
20324
|
+
isCreating: v,
|
20279
20325
|
isUpdating: _,
|
20280
20326
|
datas: y
|
20281
20327
|
}) => {
|
20282
20328
|
switch (g) {
|
20283
20329
|
case "typ": {
|
20284
20330
|
switch (!0) {
|
20285
|
-
case
|
20286
|
-
const
|
20287
|
-
y.value = y.value.filter((T) => T.codval === KG_BUTTON_TYPE.OTHER || !
|
20331
|
+
case v: {
|
20332
|
+
const m = n.store.getDatas(a.formID);
|
20333
|
+
y.value = y.value.filter((T) => T.codval === KG_BUTTON_TYPE.OTHER || !m.find((k) => k.typ === T.codval));
|
20288
20334
|
break;
|
20289
20335
|
}
|
20290
20336
|
}
|
@@ -20294,76 +20340,76 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20294
20340
|
return !1;
|
20295
20341
|
}), i.onSelectChange(async ({
|
20296
20342
|
var_nam: g,
|
20297
|
-
values:
|
20343
|
+
values: v,
|
20298
20344
|
isCreating: _,
|
20299
20345
|
isUpdating: y,
|
20300
|
-
model:
|
20346
|
+
model: m
|
20301
20347
|
}) => {
|
20302
20348
|
switch (g) {
|
20303
20349
|
case "typ": {
|
20304
20350
|
switch (!0) {
|
20305
20351
|
case _: {
|
20306
|
-
if (!(
|
20352
|
+
if (!(m != null && m.value))
|
20307
20353
|
break;
|
20308
|
-
const T =
|
20354
|
+
const T = v == null ? void 0 : v[0];
|
20309
20355
|
switch (T) {
|
20310
20356
|
case null:
|
20311
20357
|
case void 0:
|
20312
|
-
|
20358
|
+
m.value.var_nam = "", m.value.var_text = "", m.value.srtseq = 0, a.patchVarSubmitField("var_nam", {
|
20313
20359
|
crt_ena_flg: 1
|
20314
20360
|
});
|
20315
20361
|
break;
|
20316
20362
|
case KG_BUTTON_TYPE.CREATE:
|
20317
|
-
|
20363
|
+
m.value.var_nam = T, m.value.var_text = r.t("kg.create"), m.value.srtseq = 2, a.patchVarSubmitField("var_nam", {
|
20318
20364
|
crt_ena_flg: 0
|
20319
20365
|
}), a.patchVarSubmitField("sql", {
|
20320
20366
|
crt_rqr_flg: 1
|
20321
20367
|
});
|
20322
20368
|
break;
|
20323
20369
|
case KG_BUTTON_TYPE.UPDATE:
|
20324
|
-
|
20370
|
+
m.value.var_nam = T, m.value.var_text = r.t("kg.update"), m.value.srtseq = 3, m.value.dis_no_select_flg = 1, m.value.dis_mult_select_flg = 1, a.patchVarSubmitField("var_nam", {
|
20325
20371
|
crt_ena_flg: 0
|
20326
20372
|
}), a.patchVarSubmitField("sql", {
|
20327
20373
|
crt_rqr_flg: 1
|
20328
20374
|
});
|
20329
20375
|
break;
|
20330
20376
|
case KG_BUTTON_TYPE.COPY:
|
20331
|
-
|
20377
|
+
m.value.var_nam = T, m.value.var_text = r.t("kg.copy"), m.value.srtseq = 4, m.value.dis_no_select_flg = 1, m.value.dis_mult_select_flg = 1, a.patchVarSubmitField("var_nam", {
|
20332
20378
|
crt_ena_flg: 0
|
20333
20379
|
}), a.patchVarSubmitField("sql", {
|
20334
20380
|
crt_rqr_flg: 1
|
20335
20381
|
});
|
20336
20382
|
break;
|
20337
20383
|
case KG_BUTTON_TYPE.DELETE:
|
20338
|
-
|
20384
|
+
m.value.var_nam = T, m.value.var_text = r.t("kg.delete"), m.value.srtseq = 5, m.value.dis_no_select_flg = 1, m.value.dis_mult_select_flg = 1, a.patchVarSubmitField("var_nam", {
|
20339
20385
|
crt_ena_flg: 0
|
20340
20386
|
}), a.patchVarSubmitField("sql", {
|
20341
20387
|
crt_rqr_flg: 1
|
20342
20388
|
});
|
20343
20389
|
break;
|
20344
20390
|
case KG_BUTTON_TYPE.EXPORT:
|
20345
|
-
|
20391
|
+
m.value.var_nam = T, m.value.var_text = r.t("kg.export"), m.value.srtseq = 6, a.patchVarSubmitField("var_nam", {
|
20346
20392
|
crt_ena_flg: 0
|
20347
20393
|
}), a.patchVarSubmitField("sql", {
|
20348
20394
|
crt_rqr_flg: 1
|
20349
20395
|
});
|
20350
20396
|
break;
|
20351
20397
|
case KG_BUTTON_TYPE.IMPORT:
|
20352
|
-
|
20398
|
+
m.value.var_nam = T, m.value.var_text = r.t("kg.import"), m.value.srtseq = 7, a.patchVarSubmitField("var_nam", {
|
20353
20399
|
crt_ena_flg: 0
|
20354
20400
|
}), a.patchVarSubmitField("sql", {
|
20355
20401
|
crt_rqr_flg: 1
|
20356
20402
|
});
|
20357
20403
|
break;
|
20358
20404
|
case KG_BUTTON_TYPE.IMPORT_TEMPLATE:
|
20359
|
-
|
20405
|
+
m.value.var_nam = T, m.value.var_text = r.t("kg.import-template"), m.value.srtseq = 8, a.patchVarSubmitField("var_nam", {
|
20360
20406
|
crt_ena_flg: 0
|
20361
20407
|
}), a.patchVarSubmitField("sql", {
|
20362
20408
|
crt_rqr_flg: 1
|
20363
20409
|
});
|
20364
20410
|
break;
|
20365
20411
|
case KG_BUTTON_TYPE.OTHER:
|
20366
|
-
|
20412
|
+
m.value.var_nam = "", m.value.var_text = "", m.value.srtseq = 9, m.value.dis_no_select_flg = 1, m.value.dis_mult_select_flg = 1, a.patchVarSubmitField("var_nam", {
|
20367
20413
|
crt_ena_flg: 1
|
20368
20414
|
}), a.patchVarSubmitField("sql", {
|
20369
20415
|
crt_rqr_flg: 0
|
@@ -20379,12 +20425,12 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20379
20425
|
return !1;
|
20380
20426
|
}), s.onOpen(async ({
|
20381
20427
|
model: g,
|
20382
|
-
isCreating:
|
20428
|
+
isCreating: v,
|
20383
20429
|
isUpdating: _
|
20384
20430
|
}) => {
|
20385
20431
|
var y;
|
20386
20432
|
switch (!0) {
|
20387
|
-
case
|
20433
|
+
case v:
|
20388
20434
|
g.value.var_nam = "", g.value.var_text = "", g.value.srtseq = 0, g.value.dis_no_select_flg = 0, g.value.dis_mult_select_flg = 0, a.patchVarSubmitField("var_nam", {
|
20389
20435
|
crt_ena_flg: 1
|
20390
20436
|
});
|
@@ -20411,33 +20457,75 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20411
20457
|
break;
|
20412
20458
|
}
|
20413
20459
|
return !1;
|
20460
|
+
}), s.onBeforeOk(async ({
|
20461
|
+
isCreating: g,
|
20462
|
+
rules: v,
|
20463
|
+
model: _
|
20464
|
+
}) => {
|
20465
|
+
switch (!0) {
|
20466
|
+
case g: {
|
20467
|
+
v.value = {}, v.value.var_nam = [
|
20468
|
+
{
|
20469
|
+
trigger: "blur",
|
20470
|
+
validator: (y, m) => new Promise((T, k) => {
|
20471
|
+
var A;
|
20472
|
+
if (o.getVarButtons.find((C) => C.var_nam === m))
|
20473
|
+
return k(r.t("kg.KgPageDdaCreateButton.button-var-name-used"));
|
20474
|
+
if (((A = _.value) == null ? void 0 : A.typ) === KG_BUTTON_TYPE.OTHER && [KG_BUTTON_TYPE.SEARCH, KG_BUTTON_TYPE.CREATE, KG_BUTTON_TYPE.UPDATE, KG_BUTTON_TYPE.COPY, KG_BUTTON_TYPE.DELETE, KG_BUTTON_TYPE.IMPORT, KG_BUTTON_TYPE.IMPORT_TEMPLATE, KG_BUTTON_TYPE.EXPORT].includes(m))
|
20475
|
+
return k(r.t("kg.KgPageDdaCreateButton.button-var-name-reserved"));
|
20476
|
+
T();
|
20477
|
+
})
|
20478
|
+
},
|
20479
|
+
{
|
20480
|
+
trigger: "blur",
|
20481
|
+
validator: (y, m) => new Promise(async (T, k) => {
|
20482
|
+
try {
|
20483
|
+
o.setIsLoading(!0), await ValidateVarButtonVarName({
|
20484
|
+
data: {
|
20485
|
+
varName: m
|
20486
|
+
}
|
20487
|
+
}, {
|
20488
|
+
errorMessageMode: "none"
|
20489
|
+
}), T();
|
20490
|
+
} catch (A) {
|
20491
|
+
A != null && A.message ? k(A == null ? void 0 : A.message) : k(A);
|
20492
|
+
} finally {
|
20493
|
+
o.setIsLoading(!1);
|
20494
|
+
}
|
20495
|
+
})
|
20496
|
+
}
|
20497
|
+
];
|
20498
|
+
break;
|
20499
|
+
}
|
20500
|
+
}
|
20501
|
+
return !1;
|
20414
20502
|
}), s.onBeforeRequest(async ({
|
20415
20503
|
isCreating: g,
|
20416
|
-
isUpdating:
|
20504
|
+
isUpdating: v,
|
20417
20505
|
isDeleting: _,
|
20418
20506
|
data: y
|
20419
20507
|
}) => {
|
20420
|
-
var
|
20508
|
+
var m, T, k, A;
|
20421
20509
|
switch (!0) {
|
20422
20510
|
case g: {
|
20423
20511
|
const {
|
20424
20512
|
var_nam: C,
|
20425
20513
|
var_text: I
|
20426
|
-
} = (
|
20514
|
+
} = (m = y.value) != null ? m : {};
|
20427
20515
|
o.createVarButton(new VarButton(y.value)), o.createVarVariableCatalog({
|
20428
20516
|
varNam: C,
|
20429
20517
|
varText: I
|
20430
20518
|
}), a.setIsCreating(!1);
|
20431
20519
|
break;
|
20432
20520
|
}
|
20433
|
-
case
|
20521
|
+
case v: {
|
20434
20522
|
const {
|
20435
20523
|
var_nam: C,
|
20436
20524
|
var_text: I
|
20437
20525
|
} = (T = y.value) != null ? T : {};
|
20438
20526
|
o.patchVarButton({
|
20439
20527
|
varNam: C,
|
20440
|
-
properties:
|
20528
|
+
properties: (k = y.value) != null ? k : {}
|
20441
20529
|
}), o.updateVarVariableCatalog({
|
20442
20530
|
varNam: C,
|
20443
20531
|
varText: I
|
@@ -20461,8 +20549,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20461
20549
|
const g = n.selectedRow.value;
|
20462
20550
|
return {
|
20463
20551
|
KgButton: {
|
20464
|
-
kgDisabled(
|
20465
|
-
switch (
|
20552
|
+
kgDisabled(v) {
|
20553
|
+
switch (v.typ) {
|
20466
20554
|
case KG_BUTTON_TYPE.DELETE: {
|
20467
20555
|
if ((g == null ? void 0 : g.typ) === KG_BUTTON_TYPE.SEARCH)
|
20468
20556
|
return !0;
|
@@ -20479,11 +20567,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20479
20567
|
KgTable: {
|
20480
20568
|
bodyCell: ({
|
20481
20569
|
row: g,
|
20482
|
-
column:
|
20570
|
+
column: v,
|
20483
20571
|
defaultRender: _
|
20484
20572
|
}) => {
|
20485
20573
|
const y = g;
|
20486
|
-
switch (
|
20574
|
+
switch (v.dataIndex) {
|
20487
20575
|
case "var_text":
|
20488
20576
|
return o.getVarText(y.var_nam);
|
20489
20577
|
default:
|
@@ -20514,8 +20602,8 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20514
20602
|
});
|
20515
20603
|
});
|
20516
20604
|
function d() {
|
20517
|
-
var g,
|
20518
|
-
u.value.sql = (
|
20605
|
+
var g, v;
|
20606
|
+
u.value.sql = (v = (g = s.model.value) == null ? void 0 : g.sql) != null ? v : "", u.value.visible = !0;
|
20519
20607
|
}
|
20520
20608
|
function b({
|
20521
20609
|
sql: g
|
@@ -20703,18 +20791,18 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20703
20791
|
className: "ant-table-cell--index",
|
20704
20792
|
customRender: ({
|
20705
20793
|
index: g,
|
20706
|
-
record:
|
20794
|
+
record: v
|
20707
20795
|
}) => {
|
20708
20796
|
var _;
|
20709
|
-
return
|
20797
|
+
return v.id === __KG__CREATE_ROW_ID__ ? createVNode(Fragment, null, [createVNode(Button, {
|
20710
20798
|
class: "btn-insert-row",
|
20711
20799
|
onClick: c
|
20712
20800
|
}, {
|
20713
20801
|
default: () => [createVNode(PlusOutlined$1, null, null)]
|
20714
|
-
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ =
|
20802
|
+
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Fragment, null, [createVNode(Button, {
|
20715
20803
|
class: "btn-delete-custom-row",
|
20716
20804
|
danger: !0,
|
20717
|
-
onClick: () => u(
|
20805
|
+
onClick: () => u(v)
|
20718
20806
|
}, {
|
20719
20807
|
default: () => [createVNode(DeleteOutlined$1, null, null)]
|
20720
20808
|
}), createVNode("span", null, [g + 1])]) : g + 1;
|
@@ -20738,13 +20826,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20738
20826
|
className: "column-name",
|
20739
20827
|
customRender: ({
|
20740
20828
|
value: g,
|
20741
|
-
record:
|
20829
|
+
record: v
|
20742
20830
|
}) => {
|
20743
20831
|
var _, y;
|
20744
|
-
return (_ =
|
20745
|
-
value: (y =
|
20746
|
-
"onUpdate:value": (
|
20747
|
-
|
20832
|
+
return (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20833
|
+
value: (y = v.columnLabel) != null ? y : "",
|
20834
|
+
"onUpdate:value": (m) => {
|
20835
|
+
v.columnLabel = m;
|
20748
20836
|
}
|
20749
20837
|
}, null) : g;
|
20750
20838
|
}
|
@@ -20762,13 +20850,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20762
20850
|
className: "column-desc",
|
20763
20851
|
customRender: ({
|
20764
20852
|
value: g,
|
20765
|
-
record:
|
20853
|
+
record: v
|
20766
20854
|
}) => {
|
20767
20855
|
var _, y;
|
20768
|
-
return (_ =
|
20769
|
-
value: (y =
|
20770
|
-
"onUpdate:value": (
|
20771
|
-
|
20856
|
+
return (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
20857
|
+
value: (y = v.columnDesc) != null ? y : "",
|
20858
|
+
"onUpdate:value": (m) => {
|
20859
|
+
v.columnDesc = m;
|
20772
20860
|
}
|
20773
20861
|
}, null) : g;
|
20774
20862
|
}
|
@@ -20780,60 +20868,60 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20780
20868
|
}], s.value = [...s.value, g];
|
20781
20869
|
}
|
20782
20870
|
function u(g) {
|
20783
|
-
n.value = without$1(n.value, n.value.find((
|
20871
|
+
n.value = without$1(n.value, n.value.find((v) => v.id === g.id)), s.value = without$1(s.value, g.id);
|
20784
20872
|
}
|
20785
20873
|
const d = ({
|
20786
20874
|
disabled: g,
|
20787
|
-
selectedKeys:
|
20875
|
+
selectedKeys: v,
|
20788
20876
|
onItemSelectAll: _,
|
20789
20877
|
onItemSelect: y
|
20790
20878
|
}) => ({
|
20791
|
-
getCheckboxProps: (
|
20792
|
-
disabled: g ||
|
20879
|
+
getCheckboxProps: (m) => ({
|
20880
|
+
disabled: g || m.disabled || typeof m.id == "string" && m.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
20793
20881
|
}),
|
20794
|
-
onSelectAll(
|
20882
|
+
onSelectAll(m, T) {
|
20795
20883
|
const k = T.filter((A) => !A.disabled).map(({
|
20796
20884
|
key: A
|
20797
20885
|
}) => A);
|
20798
|
-
_(k,
|
20886
|
+
_(k, m);
|
20799
20887
|
},
|
20800
|
-
onSelect(
|
20801
|
-
y(
|
20888
|
+
onSelect(m, T) {
|
20889
|
+
y(m.key, T);
|
20802
20890
|
},
|
20803
|
-
selectedRowKeys:
|
20891
|
+
selectedRowKeys: v,
|
20804
20892
|
columnWidth: 32
|
20805
20893
|
});
|
20806
|
-
function b(g,
|
20807
|
-
var
|
20808
|
-
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) &&
|
20894
|
+
function b(g, v, _, y) {
|
20895
|
+
var m;
|
20896
|
+
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) && v.id !== __KG__CREATE_ROW_ID__ && !((m = v.id) != null && m.startsWith(__KG__CUSTOM_ROW_ID__)))
|
20809
20897
|
switch (y.length = 0, g.detail) {
|
20810
20898
|
case 1:
|
20811
|
-
y[0] =
|
20899
|
+
y[0] = v.id;
|
20812
20900
|
break;
|
20813
20901
|
case 2:
|
20814
20902
|
switch (_) {
|
20815
20903
|
case "left":
|
20816
|
-
s.value.push(
|
20904
|
+
s.value.push(v.id);
|
20817
20905
|
break;
|
20818
20906
|
case "right":
|
20819
|
-
s.value = without$1(s.value,
|
20907
|
+
s.value = without$1(s.value, v.id);
|
20820
20908
|
break;
|
20821
20909
|
}
|
20822
20910
|
break;
|
20823
20911
|
}
|
20824
20912
|
}
|
20825
20913
|
function E() {
|
20826
|
-
a.setVarProfileDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g,
|
20914
|
+
a.setVarProfileDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g, v) => new VarProfileDetail({
|
20827
20915
|
ena_flg: 1,
|
20828
20916
|
prf_var_nam: "defaultProfile",
|
20829
|
-
srtseq:
|
20917
|
+
srtseq: v + 1,
|
20830
20918
|
var_nam: g.columnLabel,
|
20831
20919
|
vis_flg: 1
|
20832
20920
|
}))), i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).forEach((g) => {
|
20833
|
-
var
|
20921
|
+
var v;
|
20834
20922
|
a.createVarVariableCatalog({
|
20835
20923
|
varNam: g.columnLabel,
|
20836
|
-
varText: (
|
20924
|
+
varText: (v = g.columnDesc) != null ? v : ""
|
20837
20925
|
});
|
20838
20926
|
});
|
20839
20927
|
}
|
@@ -20848,20 +20936,20 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20848
20936
|
showSelectAll: !1,
|
20849
20937
|
searchPlaceholder: " ",
|
20850
20938
|
titles: [r.t("kg.KgPageDdaCreateSearch.available"), r.t("kg.KgPageDdaCreateSearch.selected")],
|
20851
|
-
filterOption: (g,
|
20939
|
+
filterOption: (g, v) => {
|
20852
20940
|
var _;
|
20853
|
-
return !!((_ =
|
20941
|
+
return !!((_ = v.var_nam) != null && _.includes(g));
|
20854
20942
|
}
|
20855
20943
|
}, {
|
20856
20944
|
children: ({
|
20857
20945
|
direction: g,
|
20858
|
-
filteredItems:
|
20946
|
+
filteredItems: v,
|
20859
20947
|
selectedKeys: _,
|
20860
20948
|
disabled: y,
|
20861
|
-
onItemSelectAll:
|
20949
|
+
onItemSelectAll: m,
|
20862
20950
|
onItemSelect: T
|
20863
20951
|
}) => {
|
20864
|
-
const k =
|
20952
|
+
const k = v.sort((A, C) => {
|
20865
20953
|
var I, D;
|
20866
20954
|
return ((I = A.srtseq) != null ? I : 0) - ((D = C.srtseq) != null ? D : 0);
|
20867
20955
|
});
|
@@ -20886,7 +20974,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20886
20974
|
rowSelection: d({
|
20887
20975
|
disabled: y,
|
20888
20976
|
selectedKeys: _,
|
20889
|
-
onItemSelectAll:
|
20977
|
+
onItemSelectAll: m,
|
20890
20978
|
onItemSelect: T
|
20891
20979
|
})
|
20892
20980
|
}, null);
|
@@ -20945,18 +21033,18 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20945
21033
|
className: "ant-table-cell--index",
|
20946
21034
|
customRender: ({
|
20947
21035
|
index: g,
|
20948
|
-
record:
|
21036
|
+
record: v
|
20949
21037
|
}) => {
|
20950
21038
|
var _;
|
20951
|
-
return
|
21039
|
+
return v.id === __KG__CREATE_ROW_ID__ ? createVNode(Fragment, null, [createVNode(Button, {
|
20952
21040
|
class: "btn-insert-row",
|
20953
21041
|
onClick: c
|
20954
21042
|
}, {
|
20955
21043
|
default: () => [createVNode(PlusOutlined$1, null, null)]
|
20956
|
-
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ =
|
21044
|
+
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Fragment, null, [createVNode(Button, {
|
20957
21045
|
class: "btn-delete-custom-row",
|
20958
21046
|
danger: !0,
|
20959
|
-
onClick: () => u(
|
21047
|
+
onClick: () => u(v)
|
20960
21048
|
}, {
|
20961
21049
|
default: () => [createVNode(DeleteOutlined$1, null, null)]
|
20962
21050
|
}), createVNode("span", null, [g + 1])]) : g + 1;
|
@@ -20980,13 +21068,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
20980
21068
|
className: "column-name",
|
20981
21069
|
customRender: ({
|
20982
21070
|
value: g,
|
20983
|
-
record:
|
21071
|
+
record: v
|
20984
21072
|
}) => {
|
20985
21073
|
var _, y;
|
20986
|
-
return (_ =
|
20987
|
-
value: (y =
|
20988
|
-
"onUpdate:value": (
|
20989
|
-
|
21074
|
+
return (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
21075
|
+
value: (y = v.columnLabel) != null ? y : "",
|
21076
|
+
"onUpdate:value": (m) => {
|
21077
|
+
v.columnLabel = m;
|
20990
21078
|
}
|
20991
21079
|
}, null) : g;
|
20992
21080
|
}
|
@@ -21004,13 +21092,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21004
21092
|
className: "column-desc",
|
21005
21093
|
customRender: ({
|
21006
21094
|
value: g,
|
21007
|
-
record:
|
21095
|
+
record: v
|
21008
21096
|
}) => {
|
21009
21097
|
var _, y;
|
21010
|
-
return (_ =
|
21011
|
-
value: (y =
|
21012
|
-
"onUpdate:value": (
|
21013
|
-
|
21098
|
+
return (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
21099
|
+
value: (y = v.columnDesc) != null ? y : "",
|
21100
|
+
"onUpdate:value": (m) => {
|
21101
|
+
v.columnDesc = m;
|
21014
21102
|
}
|
21015
21103
|
}, null) : g;
|
21016
21104
|
}
|
@@ -21022,60 +21110,62 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21022
21110
|
}], s.value = [...s.value, g];
|
21023
21111
|
}
|
21024
21112
|
function u(g) {
|
21025
|
-
n.value = without$1(n.value, n.value.find((
|
21113
|
+
n.value = without$1(n.value, n.value.find((v) => v.id === g.id)), s.value = without$1(s.value, g.id);
|
21026
21114
|
}
|
21027
|
-
|
21115
|
+
function d({
|
21028
21116
|
disabled: g,
|
21029
|
-
selectedKeys:
|
21117
|
+
selectedKeys: v,
|
21030
21118
|
onItemSelectAll: _,
|
21031
21119
|
onItemSelect: y
|
21032
|
-
})
|
21033
|
-
|
21034
|
-
|
21035
|
-
|
21036
|
-
|
21037
|
-
|
21038
|
-
|
21039
|
-
|
21040
|
-
|
21041
|
-
|
21042
|
-
|
21043
|
-
|
21044
|
-
|
21045
|
-
|
21046
|
-
|
21047
|
-
|
21048
|
-
|
21049
|
-
|
21050
|
-
|
21120
|
+
}) {
|
21121
|
+
return {
|
21122
|
+
getCheckboxProps: (m) => ({
|
21123
|
+
disabled: g || m.disabled || typeof m.id == "string" && m.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
21124
|
+
}),
|
21125
|
+
onSelectAll(m, T) {
|
21126
|
+
const k = T.filter((A) => !A.disabled).map(({
|
21127
|
+
key: A
|
21128
|
+
}) => A);
|
21129
|
+
_(k, m);
|
21130
|
+
},
|
21131
|
+
onSelect(m, T) {
|
21132
|
+
y(m.key, T);
|
21133
|
+
},
|
21134
|
+
selectedRowKeys: v,
|
21135
|
+
columnWidth: 32
|
21136
|
+
};
|
21137
|
+
}
|
21138
|
+
function b(g, v, _, y) {
|
21139
|
+
var m;
|
21140
|
+
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) && v.id !== __KG__CREATE_ROW_ID__ && !((m = v.id) != null && m.startsWith(__KG__CUSTOM_ROW_ID__)))
|
21051
21141
|
switch (y.length = 0, g.detail) {
|
21052
21142
|
case 1:
|
21053
|
-
y[0] =
|
21143
|
+
y[0] = v.id;
|
21054
21144
|
break;
|
21055
21145
|
case 2:
|
21056
21146
|
switch (_) {
|
21057
21147
|
case "left":
|
21058
|
-
s.value.push(
|
21148
|
+
s.value.push(v.id);
|
21059
21149
|
break;
|
21060
21150
|
case "right":
|
21061
|
-
s.value = without$1(s.value,
|
21151
|
+
s.value = without$1(s.value, v.id);
|
21062
21152
|
break;
|
21063
21153
|
}
|
21064
21154
|
break;
|
21065
21155
|
}
|
21066
21156
|
}
|
21067
21157
|
function E() {
|
21068
|
-
const g = i.value.filter((
|
21069
|
-
a.setVarSubmitFields(g.map((
|
21158
|
+
const g = i.value.filter((v) => v.id !== __KG__CREATE_ROW_ID__);
|
21159
|
+
a.setVarSubmitFields(g.map((v, _) => new VarSubmitField({
|
21070
21160
|
srtseq: _ + 1,
|
21071
|
-
var_nam:
|
21072
|
-
}))), a.setVarVariableConfigs(g.map((
|
21073
|
-
var_nam:
|
21074
|
-
}))), g.forEach((
|
21161
|
+
var_nam: v.columnLabel
|
21162
|
+
}))), a.setVarVariableConfigs(g.map((v) => new VarVariableConfig({
|
21163
|
+
var_nam: v.columnLabel
|
21164
|
+
}))), g.forEach((v) => {
|
21075
21165
|
var _;
|
21076
21166
|
a.createVarVariableCatalog({
|
21077
|
-
varNam:
|
21078
|
-
varText: (_ =
|
21167
|
+
varNam: v.columnLabel,
|
21168
|
+
varText: (_ = v.columnDesc) != null ? _ : ""
|
21079
21169
|
});
|
21080
21170
|
});
|
21081
21171
|
}
|
@@ -21090,20 +21180,20 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21090
21180
|
showSelectAll: !1,
|
21091
21181
|
searchPlaceholder: " ",
|
21092
21182
|
titles: [r.t("kg.KgPageDdaCreateSubmit.available"), r.t("kg.KgPageDdaCreateSubmit.selected")],
|
21093
|
-
filterOption: (g,
|
21183
|
+
filterOption: (g, v) => {
|
21094
21184
|
var _;
|
21095
|
-
return !!((_ =
|
21185
|
+
return !!((_ = v.var_nam) != null && _.includes(g));
|
21096
21186
|
}
|
21097
21187
|
}, {
|
21098
21188
|
children: ({
|
21099
21189
|
direction: g,
|
21100
|
-
filteredItems:
|
21190
|
+
filteredItems: v,
|
21101
21191
|
selectedKeys: _,
|
21102
21192
|
disabled: y,
|
21103
|
-
onItemSelectAll:
|
21193
|
+
onItemSelectAll: m,
|
21104
21194
|
onItemSelect: T
|
21105
21195
|
}) => {
|
21106
|
-
const k =
|
21196
|
+
const k = v.sort((A, C) => {
|
21107
21197
|
var I, D;
|
21108
21198
|
return ((I = A.srtseq) != null ? I : 0) - ((D = C.srtseq) != null ? D : 0);
|
21109
21199
|
});
|
@@ -21128,7 +21218,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21128
21218
|
rowSelection: d({
|
21129
21219
|
disabled: y,
|
21130
21220
|
selectedKeys: _,
|
21131
|
-
onItemSelectAll:
|
21221
|
+
onItemSelectAll: m,
|
21132
21222
|
onItemSelect: T
|
21133
21223
|
})
|
21134
21224
|
}, null);
|
@@ -21187,18 +21277,18 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21187
21277
|
className: "ant-table-cell--index",
|
21188
21278
|
customRender: ({
|
21189
21279
|
index: g,
|
21190
|
-
record:
|
21280
|
+
record: v
|
21191
21281
|
}) => {
|
21192
21282
|
var _;
|
21193
|
-
return
|
21283
|
+
return v.id === __KG__CREATE_ROW_ID__ ? createVNode(Fragment, null, [createVNode(Button, {
|
21194
21284
|
class: "btn-insert-row",
|
21195
21285
|
onClick: c
|
21196
21286
|
}, {
|
21197
21287
|
default: () => [createVNode(PlusOutlined$1, null, null)]
|
21198
|
-
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ =
|
21288
|
+
}), createVNode("span", null, [createTextVNode("\xA0")])]) : (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Fragment, null, [createVNode(Button, {
|
21199
21289
|
class: "btn-delete-custom-row",
|
21200
21290
|
danger: !0,
|
21201
|
-
onClick: () => u(
|
21291
|
+
onClick: () => u(v)
|
21202
21292
|
}, {
|
21203
21293
|
default: () => [createVNode(DeleteOutlined$1, null, null)]
|
21204
21294
|
}), createVNode("span", null, [g + 1])]) : g + 1;
|
@@ -21222,13 +21312,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21222
21312
|
className: "column-name",
|
21223
21313
|
customRender: ({
|
21224
21314
|
value: g,
|
21225
|
-
record:
|
21315
|
+
record: v
|
21226
21316
|
}) => {
|
21227
21317
|
var _, y;
|
21228
|
-
return (_ =
|
21229
|
-
value: (y =
|
21230
|
-
"onUpdate:value": (
|
21231
|
-
|
21318
|
+
return (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
21319
|
+
value: (y = v.columnLabel) != null ? y : "",
|
21320
|
+
"onUpdate:value": (m) => {
|
21321
|
+
v.columnLabel = m;
|
21232
21322
|
}
|
21233
21323
|
}, null) : g;
|
21234
21324
|
}
|
@@ -21246,13 +21336,13 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21246
21336
|
className: "column-desc",
|
21247
21337
|
customRender: ({
|
21248
21338
|
value: g,
|
21249
|
-
record:
|
21339
|
+
record: v
|
21250
21340
|
}) => {
|
21251
21341
|
var _, y;
|
21252
|
-
return (_ =
|
21253
|
-
value: (y =
|
21254
|
-
"onUpdate:value": (
|
21255
|
-
|
21342
|
+
return (_ = v.id) != null && _.startsWith(__KG__CUSTOM_ROW_ID__) ? createVNode(Input, {
|
21343
|
+
value: (y = v.columnDesc) != null ? y : "",
|
21344
|
+
"onUpdate:value": (m) => {
|
21345
|
+
v.columnDesc = m;
|
21256
21346
|
}
|
21257
21347
|
}, null) : g;
|
21258
21348
|
}
|
@@ -21264,59 +21354,59 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21264
21354
|
}], s.value = [...s.value, g];
|
21265
21355
|
}
|
21266
21356
|
function u(g) {
|
21267
|
-
n.value = without$1(n.value, n.value.find((
|
21357
|
+
n.value = without$1(n.value, n.value.find((v) => v.id === g.id)), s.value = without$1(s.value, g.id);
|
21268
21358
|
}
|
21269
21359
|
const d = ({
|
21270
21360
|
disabled: g,
|
21271
|
-
selectedKeys:
|
21361
|
+
selectedKeys: v,
|
21272
21362
|
onItemSelectAll: _,
|
21273
21363
|
onItemSelect: y
|
21274
21364
|
}) => ({
|
21275
|
-
getCheckboxProps: (
|
21276
|
-
disabled: g ||
|
21365
|
+
getCheckboxProps: (m) => ({
|
21366
|
+
disabled: g || m.disabled || typeof m.id == "string" && m.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
21277
21367
|
}),
|
21278
|
-
onSelectAll(
|
21368
|
+
onSelectAll(m, T) {
|
21279
21369
|
const k = T.filter((A) => !A.disabled).map(({
|
21280
21370
|
key: A
|
21281
21371
|
}) => A);
|
21282
|
-
_(k,
|
21372
|
+
_(k, m);
|
21283
21373
|
},
|
21284
|
-
onSelect(
|
21285
|
-
y(
|
21374
|
+
onSelect(m, T) {
|
21375
|
+
y(m.key, T);
|
21286
21376
|
},
|
21287
|
-
selectedRowKeys:
|
21377
|
+
selectedRowKeys: v,
|
21288
21378
|
columnWidth: 32
|
21289
21379
|
});
|
21290
|
-
function b(g,
|
21291
|
-
var
|
21292
|
-
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) &&
|
21380
|
+
function b(g, v, _, y) {
|
21381
|
+
var m;
|
21382
|
+
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]) && v.id !== __KG__CREATE_ROW_ID__ && !((m = v.id) != null && m.startsWith(__KG__CUSTOM_ROW_ID__)))
|
21293
21383
|
switch (y.length = 0, g.detail) {
|
21294
21384
|
case 1:
|
21295
|
-
y[0] =
|
21385
|
+
y[0] = v.id;
|
21296
21386
|
break;
|
21297
21387
|
case 2:
|
21298
21388
|
switch (_) {
|
21299
21389
|
case "left":
|
21300
|
-
s.value.push(
|
21390
|
+
s.value.push(v.id);
|
21301
21391
|
break;
|
21302
21392
|
case "right":
|
21303
|
-
s.value = without$1(s.value,
|
21393
|
+
s.value = without$1(s.value, v.id);
|
21304
21394
|
break;
|
21305
21395
|
}
|
21306
21396
|
break;
|
21307
21397
|
}
|
21308
21398
|
}
|
21309
21399
|
function E() {
|
21310
|
-
a.setVarGridDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g,
|
21400
|
+
a.setVarGridDetails(i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).map((g, v) => new VarGridDetail({
|
21311
21401
|
grd_var_nam: "defaultGrid",
|
21312
|
-
srtseq:
|
21402
|
+
srtseq: v + 1,
|
21313
21403
|
var_nam: g.columnLabel,
|
21314
21404
|
vis_flg: 1
|
21315
21405
|
}))), i.value.filter((g) => g.id !== __KG__CREATE_ROW_ID__).forEach((g) => {
|
21316
|
-
var
|
21406
|
+
var v;
|
21317
21407
|
a.createVarVariableCatalog({
|
21318
21408
|
varNam: g.columnLabel,
|
21319
|
-
varText: (
|
21409
|
+
varText: (v = g.columnDesc) != null ? v : ""
|
21320
21410
|
});
|
21321
21411
|
});
|
21322
21412
|
}
|
@@ -21331,20 +21421,20 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21331
21421
|
showSelectAll: !1,
|
21332
21422
|
searchPlaceholder: " ",
|
21333
21423
|
titles: [r.t("kg.KgPageDdaCreateTable.available"), r.t("kg.KgPageDdaCreateTable.selected")],
|
21334
|
-
filterOption: (g,
|
21424
|
+
filterOption: (g, v) => {
|
21335
21425
|
var _;
|
21336
|
-
return !!((_ =
|
21426
|
+
return !!((_ = v.var_nam) != null && _.includes(g));
|
21337
21427
|
}
|
21338
21428
|
}, {
|
21339
21429
|
children: ({
|
21340
21430
|
direction: g,
|
21341
|
-
filteredItems:
|
21431
|
+
filteredItems: v,
|
21342
21432
|
selectedKeys: _,
|
21343
21433
|
disabled: y,
|
21344
|
-
onItemSelectAll:
|
21434
|
+
onItemSelectAll: m,
|
21345
21435
|
onItemSelect: T
|
21346
21436
|
}) => {
|
21347
|
-
const k =
|
21437
|
+
const k = v.sort((A, C) => {
|
21348
21438
|
var I, D;
|
21349
21439
|
return ((I = A.srtseq) != null ? I : 0) - ((D = C.srtseq) != null ? D : 0);
|
21350
21440
|
});
|
@@ -21369,7 +21459,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21369
21459
|
rowSelection: d({
|
21370
21460
|
disabled: y,
|
21371
21461
|
selectedKeys: _,
|
21372
|
-
onItemSelectAll:
|
21462
|
+
onItemSelectAll: m,
|
21373
21463
|
onItemSelect: T
|
21374
21464
|
})
|
21375
21465
|
}, null);
|
@@ -21390,11 +21480,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21390
21480
|
const r = useKg(), a = useKgPageDdaCreateStore(getPinia()), n = ref(1), s = computed(() => {
|
21391
21481
|
let A = "kg-page-dda-create";
|
21392
21482
|
return A += ` kg-page-dda-create--step-${n.value}`, A;
|
21393
|
-
}), i = computed(() => !!a.getIsLoading), o = computed(() => !!a.getIsLoading), l = computed(() => !!a.getIsLoading), c = computed(() => !1), u = ref(null), d = ref(null), b = ref(null), E = ref(null), g = ref(null),
|
21483
|
+
}), i = computed(() => !!a.getIsLoading), o = computed(() => !!a.getIsLoading), l = computed(() => !!a.getIsLoading), c = computed(() => !1), u = ref(null), d = ref(null), b = ref(null), E = ref(null), g = ref(null), v = ref(null), _ = ref(null);
|
21394
21484
|
function y() {
|
21395
21485
|
n.value !== 1 && (n.value -= 1);
|
21396
21486
|
}
|
21397
|
-
async function
|
21487
|
+
async function m() {
|
21398
21488
|
var A, C, I, D, R, w;
|
21399
21489
|
switch (n.value) {
|
21400
21490
|
case 1:
|
@@ -21429,7 +21519,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21429
21519
|
break;
|
21430
21520
|
case 6:
|
21431
21521
|
try {
|
21432
|
-
await ((w =
|
21522
|
+
await ((w = v.value) == null ? void 0 : w.onSubmit()), n.value += 1;
|
21433
21523
|
} catch {
|
21434
21524
|
}
|
21435
21525
|
break;
|
@@ -21502,7 +21592,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21502
21592
|
ref: g,
|
21503
21593
|
class: "kg-page-dda-create--button"
|
21504
21594
|
}, null), createVNode(KgPageDdaCreateChild, {
|
21505
|
-
ref:
|
21595
|
+
ref: v,
|
21506
21596
|
class: "kg-page-dda-create--child"
|
21507
21597
|
}, null), createVNode(KgPageDdaCreateMenu, {
|
21508
21598
|
ref: _,
|
@@ -21521,7 +21611,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
21521
21611
|
type: "primary",
|
21522
21612
|
ghost: !o.value,
|
21523
21613
|
disabled: o.value,
|
21524
|
-
onClick:
|
21614
|
+
onClick: m
|
21525
21615
|
}, {
|
21526
21616
|
default: () => [r.t("kg.KgPageDdaCreate.next-step"), createVNode(CaretRightOutlined$1, null, null)]
|
21527
21617
|
}), n.value === 7 && createVNode(Button, {
|
@@ -21651,6 +21741,7 @@ export {
|
|
21651
21741
|
UpdateVarGridMasterQuery,
|
21652
21742
|
ValidateFrmIdQuery$1 as ValidateFrmIdQuery,
|
21653
21743
|
ValidateSqlQuery,
|
21744
|
+
ValidateVarButtonVarNameQuery$1 as ValidateVarButtonVarNameQuery,
|
21654
21745
|
VarButton,
|
21655
21746
|
VarButtonConfig,
|
21656
21747
|
VarContext,
|