@kengic/vue 0.23.6 → 0.23.7-beta.0
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -742,7 +742,7 @@ var Icon$1 = function(t, r) {
|
|
742
742
|
var v = l ? {
|
743
743
|
msTransform: "rotate(".concat(l, "deg)"),
|
744
744
|
transform: "rotate(".concat(l, "deg)")
|
745
|
-
} : void 0, T = normalizeTwoToneColors(c), C = _slicedToArray(T, 2), A = C[0],
|
745
|
+
} : void 0, T = normalizeTwoToneColors(c), C = _slicedToArray(T, 2), A = C[0], y = C[1];
|
746
746
|
return createVNode("span", _objectSpread$i({
|
747
747
|
role: "img",
|
748
748
|
"aria-label": s.name
|
@@ -753,7 +753,7 @@ var Icon$1 = function(t, r) {
|
|
753
753
|
class: d,
|
754
754
|
icon: s,
|
755
755
|
primaryColor: A,
|
756
|
-
secondaryColor:
|
756
|
+
secondaryColor: y,
|
757
757
|
style: v
|
758
758
|
}, null)]);
|
759
759
|
};
|
@@ -1776,8 +1776,8 @@ function sendQuery(e, t, r, a) {
|
|
1776
1776
|
if (e.random) {
|
1777
1777
|
let E = e.resources.slice(0);
|
1778
1778
|
for (s = []; E.length > 1; ) {
|
1779
|
-
const
|
1780
|
-
s.push(E[
|
1779
|
+
const O = Math.floor(Math.random() * E.length);
|
1780
|
+
s.push(E[O]), E = E.slice(0, O).concat(E.slice(O + 1));
|
1781
1781
|
}
|
1782
1782
|
s = s.concat(E);
|
1783
1783
|
} else
|
@@ -1793,8 +1793,8 @@ function sendQuery(e, t, r, a) {
|
|
1793
1793
|
E.status === "pending" && (E.status = "aborted");
|
1794
1794
|
}), _ = [];
|
1795
1795
|
}
|
1796
|
-
function v(E,
|
1797
|
-
|
1796
|
+
function v(E, O) {
|
1797
|
+
O && (b = []), typeof E == "function" && b.push(E);
|
1798
1798
|
}
|
1799
1799
|
function T() {
|
1800
1800
|
return {
|
@@ -1817,9 +1817,9 @@ function sendQuery(e, t, r, a) {
|
|
1817
1817
|
E.status === "pending" && (E.status = "aborted");
|
1818
1818
|
}), _ = [];
|
1819
1819
|
}
|
1820
|
-
function
|
1821
|
-
const N =
|
1822
|
-
switch (_ = _.filter((
|
1820
|
+
function y(E, O, k) {
|
1821
|
+
const N = O !== "success";
|
1822
|
+
switch (_ = _.filter((R) => R !== E), l) {
|
1823
1823
|
case "pending":
|
1824
1824
|
break;
|
1825
1825
|
case "failed":
|
@@ -1829,23 +1829,23 @@ function sendQuery(e, t, r, a) {
|
|
1829
1829
|
default:
|
1830
1830
|
return;
|
1831
1831
|
}
|
1832
|
-
if (
|
1832
|
+
if (O === "abort") {
|
1833
1833
|
c = k, C();
|
1834
1834
|
return;
|
1835
1835
|
}
|
1836
1836
|
if (N) {
|
1837
|
-
c = k, _.length || (s.length ?
|
1837
|
+
c = k, _.length || (s.length ? V() : C());
|
1838
1838
|
return;
|
1839
1839
|
}
|
1840
1840
|
if (d(), A(), !e.random) {
|
1841
|
-
const
|
1842
|
-
|
1841
|
+
const R = e.resources.indexOf(E.resource);
|
1842
|
+
R !== -1 && R !== e.index && (e.index = R);
|
1843
1843
|
}
|
1844
|
-
l = "completed", b.forEach((
|
1845
|
-
|
1844
|
+
l = "completed", b.forEach((R) => {
|
1845
|
+
R(k);
|
1846
1846
|
});
|
1847
1847
|
}
|
1848
|
-
function
|
1848
|
+
function V() {
|
1849
1849
|
if (l !== "pending")
|
1850
1850
|
return;
|
1851
1851
|
d();
|
@@ -1860,16 +1860,16 @@ function sendQuery(e, t, r, a) {
|
|
1860
1860
|
C();
|
1861
1861
|
return;
|
1862
1862
|
}
|
1863
|
-
const
|
1863
|
+
const O = {
|
1864
1864
|
status: "pending",
|
1865
1865
|
resource: E,
|
1866
1866
|
callback: (k, N) => {
|
1867
|
-
O
|
1867
|
+
y(O, k, N);
|
1868
1868
|
}
|
1869
1869
|
};
|
1870
|
-
_.push(
|
1870
|
+
_.push(O), u++, g = setTimeout(V, e.rotate), r(E, t, O.callback);
|
1871
1871
|
}
|
1872
|
-
return setTimeout(
|
1872
|
+
return setTimeout(V), T;
|
1873
1873
|
}
|
1874
1874
|
function initRedundancy(e) {
|
1875
1875
|
const t = {
|
@@ -2387,16 +2387,16 @@ const emptyIcon = {
|
|
2387
2387
|
...t.data
|
2388
2388
|
}, r);
|
2389
2389
|
}
|
2390
|
-
}), version = "0.23.
|
2390
|
+
}), version = "0.23.7-beta.0";
|
2391
2391
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
2392
2392
|
const freeGlobal$1 = freeGlobal;
|
2393
2393
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self, root = freeGlobal$1 || freeSelf || Function("return this")();
|
2394
2394
|
const root$1 = root;
|
2395
2395
|
var Symbol$1 = root$1.Symbol;
|
2396
2396
|
const Symbol$2 = Symbol$1;
|
2397
|
-
var objectProto$
|
2397
|
+
var objectProto$g = Object.prototype, hasOwnProperty$d = objectProto$g.hasOwnProperty, nativeObjectToString$1 = objectProto$g.toString, symToStringTag$1 = Symbol$2 ? Symbol$2.toStringTag : void 0;
|
2398
2398
|
function getRawTag(e) {
|
2399
|
-
var t = hasOwnProperty$
|
2399
|
+
var t = hasOwnProperty$d.call(e, symToStringTag$1), r = e[symToStringTag$1];
|
2400
2400
|
try {
|
2401
2401
|
e[symToStringTag$1] = void 0;
|
2402
2402
|
var a = !0;
|
@@ -2405,7 +2405,7 @@ function getRawTag(e) {
|
|
2405
2405
|
var n = nativeObjectToString$1.call(e);
|
2406
2406
|
return a && (t ? e[symToStringTag$1] = r : delete e[symToStringTag$1]), n;
|
2407
2407
|
}
|
2408
|
-
var objectProto$
|
2408
|
+
var objectProto$f = Object.prototype, nativeObjectToString = objectProto$f.toString;
|
2409
2409
|
function objectToString(e) {
|
2410
2410
|
return nativeObjectToString.call(e);
|
2411
2411
|
}
|
@@ -2515,8 +2515,8 @@ function toSource(e) {
|
|
2515
2515
|
}
|
2516
2516
|
return "";
|
2517
2517
|
}
|
2518
|
-
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto = Function.prototype, objectProto$
|
2519
|
-
"^" + funcToString.call(hasOwnProperty$
|
2518
|
+
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto = Function.prototype, objectProto$e = Object.prototype, funcToString = funcProto.toString, hasOwnProperty$c = objectProto$e.hasOwnProperty, reIsNative = RegExp(
|
2519
|
+
"^" + funcToString.call(hasOwnProperty$c).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
2520
2520
|
);
|
2521
2521
|
function baseIsNative(e) {
|
2522
2522
|
if (!isObject$2(e) || isMasked(e))
|
@@ -2648,10 +2648,10 @@ function baseAssignValue(e, t, r) {
|
|
2648
2648
|
function eq(e, t) {
|
2649
2649
|
return e === t || e !== e && t !== t;
|
2650
2650
|
}
|
2651
|
-
var objectProto$
|
2651
|
+
var objectProto$d = Object.prototype, hasOwnProperty$b = objectProto$d.hasOwnProperty;
|
2652
2652
|
function assignValue(e, t, r) {
|
2653
2653
|
var a = e[t];
|
2654
|
-
(!(hasOwnProperty$
|
2654
|
+
(!(hasOwnProperty$b.call(e, t) && eq(a, r)) || r === void 0 && !(t in e)) && baseAssignValue(e, t, r);
|
2655
2655
|
}
|
2656
2656
|
function copyObject(e, t, r, a) {
|
2657
2657
|
var n = !r;
|
@@ -2689,9 +2689,9 @@ function isIterateeCall(e, t, r) {
|
|
2689
2689
|
var a = typeof t;
|
2690
2690
|
return (a == "number" ? isArrayLike(r) && isIndex(t, r.length) : a == "string" && t in r) ? eq(r[t], e) : !1;
|
2691
2691
|
}
|
2692
|
-
var objectProto$
|
2692
|
+
var objectProto$c = Object.prototype;
|
2693
2693
|
function isPrototype(e) {
|
2694
|
-
var t = e && e.constructor, r = typeof t == "function" && t.prototype || objectProto$
|
2694
|
+
var t = e && e.constructor, r = typeof t == "function" && t.prototype || objectProto$c;
|
2695
2695
|
return e === r;
|
2696
2696
|
}
|
2697
2697
|
function baseTimes(e, t) {
|
@@ -2703,10 +2703,10 @@ var argsTag$3 = "[object Arguments]";
|
|
2703
2703
|
function baseIsArguments(e) {
|
2704
2704
|
return isObjectLike(e) && baseGetTag(e) == argsTag$3;
|
2705
2705
|
}
|
2706
|
-
var objectProto$
|
2706
|
+
var objectProto$b = Object.prototype, hasOwnProperty$a = objectProto$b.hasOwnProperty, propertyIsEnumerable$1 = objectProto$b.propertyIsEnumerable, isArguments = baseIsArguments(function() {
|
2707
2707
|
return arguments;
|
2708
2708
|
}()) ? baseIsArguments : function(e) {
|
2709
|
-
return isObjectLike(e) && hasOwnProperty$
|
2709
|
+
return isObjectLike(e) && hasOwnProperty$a.call(e, "callee") && !propertyIsEnumerable$1.call(e, "callee");
|
2710
2710
|
};
|
2711
2711
|
const isArguments$1 = isArguments;
|
2712
2712
|
function stubFalse() {
|
@@ -2714,9 +2714,9 @@ function stubFalse() {
|
|
2714
2714
|
}
|
2715
2715
|
var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports, freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module, moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2, Buffer$1 = moduleExports$2 ? root$1.Buffer : void 0, nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0, isBuffer = nativeIsBuffer || stubFalse;
|
2716
2716
|
const isBuffer$1 = isBuffer;
|
2717
|
-
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$
|
2717
|
+
var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$1 = "[object Function]", mapTag$7 = "[object Map]", numberTag$3 = "[object Number]", objectTag$3 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$4 = "[object String]", weakMapTag$2 = "[object WeakMap]", arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]", typedArrayTags = {};
|
2718
2718
|
typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = !0;
|
2719
|
-
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$
|
2719
|
+
typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$1] = typedArrayTags[mapTag$7] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$3] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$7] = typedArrayTags[stringTag$4] = typedArrayTags[weakMapTag$2] = !1;
|
2720
2720
|
function baseIsTypedArray(e) {
|
2721
2721
|
return isObjectLike(e) && isLength(e.length) && !!typedArrayTags[baseGetTag(e)];
|
2722
2722
|
}
|
@@ -2735,11 +2735,11 @@ var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType &
|
|
2735
2735
|
const nodeUtil$1 = nodeUtil;
|
2736
2736
|
var nodeIsTypedArray = nodeUtil$1 && nodeUtil$1.isTypedArray, isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
|
2737
2737
|
const isTypedArray$1 = isTypedArray;
|
2738
|
-
var objectProto$
|
2738
|
+
var objectProto$a = Object.prototype, hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
2739
2739
|
function arrayLikeKeys(e, t) {
|
2740
2740
|
var r = isArray$1(e), a = !r && isArguments$1(e), n = !r && !a && isBuffer$1(e), i = !r && !a && !n && isTypedArray$1(e), s = r || a || n || i, o = s ? baseTimes(e.length, String) : [], l = o.length;
|
2741
2741
|
for (var u in e)
|
2742
|
-
(t || hasOwnProperty$
|
2742
|
+
(t || hasOwnProperty$9.call(e, u)) && !(s && (u == "length" || n && (u == "offset" || u == "parent") || i && (u == "buffer" || u == "byteLength" || u == "byteOffset") || isIndex(u, l))) && o.push(u);
|
2743
2743
|
return o;
|
2744
2744
|
}
|
2745
2745
|
function overArg(e, t) {
|
@@ -2749,13 +2749,13 @@ function overArg(e, t) {
|
|
2749
2749
|
}
|
2750
2750
|
var nativeKeys = overArg(Object.keys, Object);
|
2751
2751
|
const nativeKeys$1 = nativeKeys;
|
2752
|
-
var objectProto$
|
2752
|
+
var objectProto$9 = Object.prototype, hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
2753
2753
|
function baseKeys(e) {
|
2754
2754
|
if (!isPrototype(e))
|
2755
2755
|
return nativeKeys$1(e);
|
2756
2756
|
var t = [];
|
2757
2757
|
for (var r in Object(e))
|
2758
|
-
hasOwnProperty$
|
2758
|
+
hasOwnProperty$8.call(e, r) && r != "constructor" && t.push(r);
|
2759
2759
|
return t;
|
2760
2760
|
}
|
2761
2761
|
function keys$1(e) {
|
@@ -2768,13 +2768,13 @@ function nativeKeysIn(e) {
|
|
2768
2768
|
t.push(r);
|
2769
2769
|
return t;
|
2770
2770
|
}
|
2771
|
-
var objectProto$
|
2771
|
+
var objectProto$8 = Object.prototype, hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
2772
2772
|
function baseKeysIn(e) {
|
2773
2773
|
if (!isObject$2(e))
|
2774
2774
|
return nativeKeysIn(e);
|
2775
2775
|
var t = isPrototype(e), r = [];
|
2776
2776
|
for (var a in e)
|
2777
|
-
a == "constructor" && (t || !hasOwnProperty$
|
2777
|
+
a == "constructor" && (t || !hasOwnProperty$7.call(e, a)) || r.push(a);
|
2778
2778
|
return r;
|
2779
2779
|
}
|
2780
2780
|
function keysIn(e) {
|
@@ -2796,19 +2796,19 @@ function hashDelete(e) {
|
|
2796
2796
|
var t = this.has(e) && delete this.__data__[e];
|
2797
2797
|
return this.size -= t ? 1 : 0, t;
|
2798
2798
|
}
|
2799
|
-
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__", objectProto$
|
2799
|
+
var HASH_UNDEFINED$2 = "__lodash_hash_undefined__", objectProto$7 = Object.prototype, hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
2800
2800
|
function hashGet(e) {
|
2801
2801
|
var t = this.__data__;
|
2802
2802
|
if (nativeCreate$1) {
|
2803
2803
|
var r = t[e];
|
2804
2804
|
return r === HASH_UNDEFINED$2 ? void 0 : r;
|
2805
2805
|
}
|
2806
|
-
return hasOwnProperty$
|
2806
|
+
return hasOwnProperty$6.call(t, e) ? t[e] : void 0;
|
2807
2807
|
}
|
2808
|
-
var objectProto$
|
2808
|
+
var objectProto$6 = Object.prototype, hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
2809
2809
|
function hashHas(e) {
|
2810
2810
|
var t = this.__data__;
|
2811
|
-
return nativeCreate$1 ? t[e] !== void 0 : hasOwnProperty$
|
2811
|
+
return nativeCreate$1 ? t[e] !== void 0 : hasOwnProperty$5.call(t, e);
|
2812
2812
|
}
|
2813
2813
|
var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
2814
2814
|
function hashSet(e, t) {
|
@@ -3274,7 +3274,7 @@ function arrayFilter(e, t) {
|
|
3274
3274
|
function stubArray() {
|
3275
3275
|
return [];
|
3276
3276
|
}
|
3277
|
-
var objectProto$
|
3277
|
+
var objectProto$5 = Object.prototype, propertyIsEnumerable = objectProto$5.propertyIsEnumerable, nativeGetSymbols$1 = Object.getOwnPropertySymbols, getSymbols = nativeGetSymbols$1 ? function(e) {
|
3278
3278
|
return e == null ? [] : (e = Object(e), arrayFilter(nativeGetSymbols$1(e), function(t) {
|
3279
3279
|
return propertyIsEnumerable.call(e, t);
|
3280
3280
|
}));
|
@@ -3308,29 +3308,29 @@ var Promise$1 = getNative(root$1, "Promise");
|
|
3308
3308
|
const Promise$2 = Promise$1;
|
3309
3309
|
var Set$1 = getNative(root$1, "Set");
|
3310
3310
|
const Set$2 = Set$1;
|
3311
|
-
var mapTag$
|
3312
|
-
(DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$2 && getTag(new Map$2()) != mapTag$
|
3311
|
+
var mapTag$6 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$6 = "[object Set]", weakMapTag$1 = "[object WeakMap]", dataViewTag$3 = "[object DataView]", dataViewCtorString = toSource(DataView$1), mapCtorString = toSource(Map$2), promiseCtorString = toSource(Promise$2), setCtorString = toSource(Set$2), weakMapCtorString = toSource(WeakMap$1), getTag = baseGetTag;
|
3312
|
+
(DataView$1 && getTag(new DataView$1(new ArrayBuffer(1))) != dataViewTag$3 || Map$2 && getTag(new Map$2()) != mapTag$6 || Promise$2 && getTag(Promise$2.resolve()) != promiseTag || Set$2 && getTag(new Set$2()) != setTag$6 || WeakMap$1 && getTag(new WeakMap$1()) != weakMapTag$1) && (getTag = function(e) {
|
3313
3313
|
var t = baseGetTag(e), r = t == objectTag$2 ? e.constructor : void 0, a = r ? toSource(r) : "";
|
3314
3314
|
if (a)
|
3315
3315
|
switch (a) {
|
3316
3316
|
case dataViewCtorString:
|
3317
3317
|
return dataViewTag$3;
|
3318
3318
|
case mapCtorString:
|
3319
|
-
return mapTag$
|
3319
|
+
return mapTag$6;
|
3320
3320
|
case promiseCtorString:
|
3321
3321
|
return promiseTag;
|
3322
3322
|
case setCtorString:
|
3323
|
-
return setTag$
|
3323
|
+
return setTag$6;
|
3324
3324
|
case weakMapCtorString:
|
3325
3325
|
return weakMapTag$1;
|
3326
3326
|
}
|
3327
3327
|
return t;
|
3328
3328
|
});
|
3329
3329
|
const getTag$1 = getTag;
|
3330
|
-
var objectProto$
|
3330
|
+
var objectProto$4 = Object.prototype, hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
3331
3331
|
function initCloneArray(e) {
|
3332
3332
|
var t = e.length, r = new e.constructor(t);
|
3333
|
-
return t && typeof e[0] == "string" && hasOwnProperty$
|
3333
|
+
return t && typeof e[0] == "string" && hasOwnProperty$4.call(e, "index") && (r.index = e.index, r.input = e.input), r;
|
3334
3334
|
}
|
3335
3335
|
var Uint8Array$1 = root$1.Uint8Array;
|
3336
3336
|
const Uint8Array$2 = Uint8Array$1;
|
@@ -3355,7 +3355,7 @@ function cloneTypedArray(e, t) {
|
|
3355
3355
|
var r = t ? cloneArrayBuffer(e.buffer) : e.buffer;
|
3356
3356
|
return new e.constructor(r, e.byteOffset, e.length);
|
3357
3357
|
}
|
3358
|
-
var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$
|
3358
|
+
var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", mapTag$5 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", symbolTag$2 = "[object Symbol]", arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$2 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
3359
3359
|
function initCloneByTag(e, t, r) {
|
3360
3360
|
var a = e.constructor;
|
3361
3361
|
switch (t) {
|
@@ -3376,14 +3376,14 @@ function initCloneByTag(e, t, r) {
|
|
3376
3376
|
case uint16Tag$1:
|
3377
3377
|
case uint32Tag$1:
|
3378
3378
|
return cloneTypedArray(e, r);
|
3379
|
-
case mapTag$
|
3379
|
+
case mapTag$5:
|
3380
3380
|
return new a();
|
3381
3381
|
case numberTag$2:
|
3382
3382
|
case stringTag$3:
|
3383
3383
|
return new a(e);
|
3384
3384
|
case regexpTag$2:
|
3385
3385
|
return cloneRegExp(e);
|
3386
|
-
case setTag$
|
3386
|
+
case setTag$5:
|
3387
3387
|
return new a();
|
3388
3388
|
case symbolTag$2:
|
3389
3389
|
return cloneSymbol(e);
|
@@ -3392,20 +3392,20 @@ function initCloneByTag(e, t, r) {
|
|
3392
3392
|
function initCloneObject(e) {
|
3393
3393
|
return typeof e.constructor == "function" && !isPrototype(e) ? baseCreate$1(getPrototype$1(e)) : {};
|
3394
3394
|
}
|
3395
|
-
var mapTag$
|
3395
|
+
var mapTag$4 = "[object Map]";
|
3396
3396
|
function baseIsMap(e) {
|
3397
|
-
return isObjectLike(e) && getTag$1(e) == mapTag$
|
3397
|
+
return isObjectLike(e) && getTag$1(e) == mapTag$4;
|
3398
3398
|
}
|
3399
3399
|
var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap, isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
|
3400
3400
|
const isMap$1 = isMap;
|
3401
|
-
var setTag$
|
3401
|
+
var setTag$4 = "[object Set]";
|
3402
3402
|
function baseIsSet(e) {
|
3403
|
-
return isObjectLike(e) && getTag$1(e) == setTag$
|
3403
|
+
return isObjectLike(e) && getTag$1(e) == setTag$4;
|
3404
3404
|
}
|
3405
3405
|
var nodeIsSet = nodeUtil$1 && nodeUtil$1.isSet, isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
3406
3406
|
const isSet$1 = isSet;
|
3407
|
-
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4, argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$
|
3408
|
-
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$
|
3407
|
+
var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4, argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", errorTag$1 = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag$3 = "[object Map]", numberTag$1 = "[object Number]", objectTag$1 = "[object Object]", regexpTag$1 = "[object RegExp]", setTag$3 = "[object Set]", stringTag$2 = "[object String]", symbolTag$1 = "[object Symbol]", weakMapTag = "[object WeakMap]", arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]", cloneableTags = {};
|
3408
|
+
cloneableTags[argsTag$1] = cloneableTags[arrayTag$1] = cloneableTags[arrayBufferTag$1] = cloneableTags[dataViewTag$1] = cloneableTags[boolTag$1] = cloneableTags[dateTag$1] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$3] = cloneableTags[numberTag$1] = cloneableTags[objectTag$1] = cloneableTags[regexpTag$1] = cloneableTags[setTag$3] = cloneableTags[stringTag$2] = cloneableTags[symbolTag$1] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = !0;
|
3409
3409
|
cloneableTags[errorTag$1] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = !1;
|
3410
3410
|
function baseClone(e, t, r, a, n, i) {
|
3411
3411
|
var s, o = t & CLONE_DEEP_FLAG$1, l = t & CLONE_FLAT_FLAG, u = t & CLONE_SYMBOLS_FLAG$1;
|
@@ -3524,7 +3524,7 @@ function setToArray(e) {
|
|
3524
3524
|
r[++t] = a;
|
3525
3525
|
}), r;
|
3526
3526
|
}
|
3527
|
-
var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$
|
3527
|
+
var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2, boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", mapTag$2 = "[object Map]", numberTag = "[object Number]", regexpTag = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag = "[object Symbol]", arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", symbolProto = Symbol$2 ? Symbol$2.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
3528
3528
|
function equalByTag(e, t, r, a, n, i, s) {
|
3529
3529
|
switch (r) {
|
3530
3530
|
case dataViewTag:
|
@@ -3542,9 +3542,9 @@ function equalByTag(e, t, r, a, n, i, s) {
|
|
3542
3542
|
case regexpTag:
|
3543
3543
|
case stringTag$1:
|
3544
3544
|
return e == t + "";
|
3545
|
-
case mapTag$
|
3545
|
+
case mapTag$2:
|
3546
3546
|
var o = mapToArray;
|
3547
|
-
case setTag$
|
3547
|
+
case setTag$2:
|
3548
3548
|
var l = a & COMPARE_PARTIAL_FLAG$4;
|
3549
3549
|
if (o || (o = setToArray), e.size != t.size && !l)
|
3550
3550
|
return !1;
|
@@ -3560,14 +3560,14 @@ function equalByTag(e, t, r, a, n, i, s) {
|
|
3560
3560
|
}
|
3561
3561
|
return !1;
|
3562
3562
|
}
|
3563
|
-
var COMPARE_PARTIAL_FLAG$3 = 1, objectProto$
|
3563
|
+
var COMPARE_PARTIAL_FLAG$3 = 1, objectProto$3 = Object.prototype, hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
3564
3564
|
function equalObjects(e, t, r, a, n, i) {
|
3565
3565
|
var s = r & COMPARE_PARTIAL_FLAG$3, o = getAllKeys(e), l = o.length, u = getAllKeys(t), c = u.length;
|
3566
3566
|
if (l != c && !s)
|
3567
3567
|
return !1;
|
3568
3568
|
for (var g = l; g--; ) {
|
3569
3569
|
var _ = o[g];
|
3570
|
-
if (!(s ? _ in t : hasOwnProperty$
|
3570
|
+
if (!(s ? _ in t : hasOwnProperty$3.call(t, _)))
|
3571
3571
|
return !1;
|
3572
3572
|
}
|
3573
3573
|
var b = i.get(e), d = i.get(t);
|
@@ -3587,12 +3587,12 @@ function equalObjects(e, t, r, a, n, i) {
|
|
3587
3587
|
v || (v = _ == "constructor");
|
3588
3588
|
}
|
3589
3589
|
if (m && !v) {
|
3590
|
-
var
|
3591
|
-
|
3590
|
+
var y = e.constructor, V = t.constructor;
|
3591
|
+
y != V && "constructor" in e && "constructor" in t && !(typeof y == "function" && y instanceof y && typeof V == "function" && V instanceof V) && (m = !1);
|
3592
3592
|
}
|
3593
3593
|
return i.delete(e), i.delete(t), m;
|
3594
3594
|
}
|
3595
|
-
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto$
|
3595
|
+
var COMPARE_PARTIAL_FLAG$2 = 1, argsTag = "[object Arguments]", arrayTag = "[object Array]", objectTag = "[object Object]", objectProto$2 = Object.prototype, hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
3596
3596
|
function baseIsEqualDeep(e, t, r, a, n, i) {
|
3597
3597
|
var s = isArray$1(e), o = isArray$1(t), l = s ? arrayTag : getTag$1(e), u = o ? arrayTag : getTag$1(t);
|
3598
3598
|
l = l == argsTag ? objectTag : l, u = u == argsTag ? objectTag : u;
|
@@ -3605,7 +3605,7 @@ function baseIsEqualDeep(e, t, r, a, n, i) {
|
|
3605
3605
|
if (_ && !c)
|
3606
3606
|
return i || (i = new Stack()), s || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, i) : equalByTag(e, t, l, r, a, n, i);
|
3607
3607
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
3608
|
-
var b = c && hasOwnProperty$
|
3608
|
+
var b = c && hasOwnProperty$2.call(e, "__wrapped__"), d = g && hasOwnProperty$2.call(t, "__wrapped__");
|
3609
3609
|
if (b || d) {
|
3610
3610
|
var m = b ? e.value() : e, v = d ? t.value() : t;
|
3611
3611
|
return i || (i = new Stack()), n(m, v, r, a, i);
|
@@ -3759,19 +3759,19 @@ function debounce(e, t, r) {
|
|
3759
3759
|
throw new TypeError(FUNC_ERROR_TEXT);
|
3760
3760
|
t = toNumber(t) || 0, isObject$2(r) && (c = !!r.leading, g = "maxWait" in r, i = g ? nativeMax$3(toNumber(r.maxWait) || 0, t) : i, _ = "trailing" in r ? !!r.trailing : _);
|
3761
3761
|
function b(E) {
|
3762
|
-
var
|
3763
|
-
return a = n = void 0, u = E, s = e.apply(k,
|
3762
|
+
var O = a, k = n;
|
3763
|
+
return a = n = void 0, u = E, s = e.apply(k, O), s;
|
3764
3764
|
}
|
3765
3765
|
function d(E) {
|
3766
3766
|
return u = E, o = setTimeout(T, t), c ? b(E) : s;
|
3767
3767
|
}
|
3768
3768
|
function m(E) {
|
3769
|
-
var
|
3769
|
+
var O = E - l, k = E - u, N = t - O;
|
3770
3770
|
return g ? nativeMin$2(N, i - k) : N;
|
3771
3771
|
}
|
3772
3772
|
function v(E) {
|
3773
|
-
var
|
3774
|
-
return l === void 0 ||
|
3773
|
+
var O = E - l, k = E - u;
|
3774
|
+
return l === void 0 || O >= t || O < 0 || g && k >= i;
|
3775
3775
|
}
|
3776
3776
|
function T() {
|
3777
3777
|
var E = now$1();
|
@@ -3785,12 +3785,12 @@ function debounce(e, t, r) {
|
|
3785
3785
|
function A() {
|
3786
3786
|
o !== void 0 && clearTimeout(o), u = 0, a = l = n = o = void 0;
|
3787
3787
|
}
|
3788
|
-
function
|
3788
|
+
function y() {
|
3789
3789
|
return o === void 0 ? s : C(now$1());
|
3790
3790
|
}
|
3791
|
-
function
|
3792
|
-
var E = now$1(),
|
3793
|
-
if (a = arguments, n = this, l = E,
|
3791
|
+
function V() {
|
3792
|
+
var E = now$1(), O = v(E);
|
3793
|
+
if (a = arguments, n = this, l = E, O) {
|
3794
3794
|
if (o === void 0)
|
3795
3795
|
return d(l);
|
3796
3796
|
if (g)
|
@@ -3798,7 +3798,7 @@ function debounce(e, t, r) {
|
|
3798
3798
|
}
|
3799
3799
|
return o === void 0 && (o = setTimeout(T, t)), s;
|
3800
3800
|
}
|
3801
|
-
return
|
3801
|
+
return V.cancel = A, V.flush = y, V;
|
3802
3802
|
}
|
3803
3803
|
function isArrayLikeObject(e) {
|
3804
3804
|
return isObjectLike(e) && isArrayLike(e);
|
@@ -3843,11 +3843,11 @@ function setToPairs(e) {
|
|
3843
3843
|
r[++t] = [a, a];
|
3844
3844
|
}), r;
|
3845
3845
|
}
|
3846
|
-
var mapTag = "[object Map]", setTag = "[object Set]";
|
3846
|
+
var mapTag$1 = "[object Map]", setTag$1 = "[object Set]";
|
3847
3847
|
function createToPairs(e) {
|
3848
3848
|
return function(t) {
|
3849
3849
|
var r = getTag$1(t);
|
3850
|
-
return r == mapTag ? mapToArray(t) : r == setTag ? setToPairs(t) : baseToPairs(t, e(t));
|
3850
|
+
return r == mapTag$1 ? mapToArray(t) : r == setTag$1 ? setToPairs(t) : baseToPairs(t, e(t));
|
3851
3851
|
};
|
3852
3852
|
}
|
3853
3853
|
var toPairs = createToPairs(keys$1);
|
@@ -3884,8 +3884,8 @@ function baseMap(e, t) {
|
|
3884
3884
|
a[++r] = t(n, i, s);
|
3885
3885
|
}), a;
|
3886
3886
|
}
|
3887
|
-
var objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty, groupBy = createAggregator(function(e, t, r) {
|
3888
|
-
hasOwnProperty.call(e, r) ? e[r].push(t) : baseAssignValue(e, r, [t]);
|
3887
|
+
var objectProto$1 = Object.prototype, hasOwnProperty$1 = objectProto$1.hasOwnProperty, groupBy = createAggregator(function(e, t, r) {
|
3888
|
+
hasOwnProperty$1.call(e, r) ? e[r].push(t) : baseAssignValue(e, r, [t]);
|
3889
3889
|
});
|
3890
3890
|
const groupBy$1 = groupBy;
|
3891
3891
|
function baseGt(e, t) {
|
@@ -3930,6 +3930,22 @@ var intersectionWith = baseRest(function(e) {
|
|
3930
3930
|
return t = typeof t == "function" ? t : void 0, t && r.pop(), r.length && r[0] === e[0] ? baseIntersection(r, void 0, t) : [];
|
3931
3931
|
});
|
3932
3932
|
const intersectionWith$1 = intersectionWith;
|
3933
|
+
var mapTag = "[object Map]", setTag = "[object Set]", objectProto = Object.prototype, hasOwnProperty = objectProto.hasOwnProperty;
|
3934
|
+
function isEmpty(e) {
|
3935
|
+
if (e == null)
|
3936
|
+
return !0;
|
3937
|
+
if (isArrayLike(e) && (isArray$1(e) || typeof e == "string" || typeof e.splice == "function" || isBuffer$1(e) || isTypedArray$1(e) || isArguments$1(e)))
|
3938
|
+
return !e.length;
|
3939
|
+
var t = getTag$1(e);
|
3940
|
+
if (t == mapTag || t == setTag)
|
3941
|
+
return !e.size;
|
3942
|
+
if (isPrototype(e))
|
3943
|
+
return !baseKeys(e).length;
|
3944
|
+
for (var r in e)
|
3945
|
+
if (hasOwnProperty.call(e, r))
|
3946
|
+
return !1;
|
3947
|
+
return !0;
|
3948
|
+
}
|
3933
3949
|
function isEqual(e, t) {
|
3934
3950
|
return baseIsEqual(e, t);
|
3935
3951
|
}
|
@@ -4677,7 +4693,7 @@ class KgRouteUtil {
|
|
4677
4693
|
}), t;
|
4678
4694
|
}
|
4679
4695
|
static transformMenus(t) {
|
4680
|
-
var _, b, d, m, v, T, C, A,
|
4696
|
+
var _, b, d, m, v, T, C, A, y, V, E, O, k, N, R, D, K, B, F, $, M, L, I, U, P, x, W, z, J, te, ie, le, Y, q;
|
4681
4697
|
if (!t)
|
4682
4698
|
return [];
|
4683
4699
|
const r = useKg(), a = (w) => {
|
@@ -4727,9 +4743,9 @@ class KgRouteUtil {
|
|
4727
4743
|
id: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
4728
4744
|
key: KG_TMP_MENU_ID__BUSINESS_MANAGER,
|
4729
4745
|
name: (A = (C = r.option.value.appTitle) == null ? void 0 : C[KG_APP.WMS_BUSINESS_MANAGER]) != null ? A : "\u4ED3\u5E93\u7BA1\u7406",
|
4730
|
-
slotTitle: (
|
4746
|
+
slotTitle: (V = (y = r.option.value.appTitle) == null ? void 0 : y[KG_APP.WMS_BUSINESS_MANAGER]) != null ? V : "\u4ED3\u5E93\u7BA1\u7406",
|
4731
4747
|
sortNo: 2,
|
4732
|
-
title: (
|
4748
|
+
title: (O = (E = r.option.value.appTitle) == null ? void 0 : E[KG_APP.WMS_BUSINESS_MANAGER]) != null ? O : "\u4ED3\u5E93\u7BA1\u7406",
|
4733
4749
|
...n,
|
4734
4750
|
url: KG_APP_PREFIX.WMS_BUSINESS_MANAGER,
|
4735
4751
|
value: KG_TMP_MENU_ID__BUSINESS_MANAGER
|
@@ -4738,7 +4754,7 @@ class KgRouteUtil {
|
|
4738
4754
|
id: KG_TMP_MENU_ID__WCS,
|
4739
4755
|
key: KG_TMP_MENU_ID__WCS,
|
4740
4756
|
name: (N = (k = r.option.value.appTitle) == null ? void 0 : k[KG_APP.WCS]) != null ? N : "WCS",
|
4741
|
-
slotTitle: (D = (
|
4757
|
+
slotTitle: (D = (R = r.option.value.appTitle) == null ? void 0 : R[KG_APP.WCS]) != null ? D : "WCS",
|
4742
4758
|
sortNo: 3,
|
4743
4759
|
title: (B = (K = r.option.value.appTitle) == null ? void 0 : K[KG_APP.WCS]) != null ? B : "WCS",
|
4744
4760
|
...n,
|
@@ -4886,7 +4902,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4886
4902
|
} }, A = function(F, $, M) {
|
4887
4903
|
var L = String(F);
|
4888
4904
|
return !L || L.length >= $ ? F : "" + Array($ + 1 - L.length).join(M) + F;
|
4889
|
-
},
|
4905
|
+
}, y = { s: A, z: function(F) {
|
4890
4906
|
var $ = -F.utcOffset(), M = Math.abs($), L = Math.floor(M / 60), I = M % 60;
|
4891
4907
|
return ($ <= 0 ? "+" : "-") + A(L, 2, "0") + ":" + A(I, 2, "0");
|
4892
4908
|
}, m: function F($, M) {
|
@@ -4900,14 +4916,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4900
4916
|
return { M: g, y: b, w: c, d: u, D: d, h: l, m: o, s, ms: i, Q: _ }[F] || String(F || "").toLowerCase().replace(/s$/, "");
|
4901
4917
|
}, u: function(F) {
|
4902
4918
|
return F === void 0;
|
4903
|
-
} },
|
4904
|
-
E[
|
4905
|
-
var
|
4906
|
-
return F instanceof K || !(!F || !F[
|
4919
|
+
} }, V = "en", E = {};
|
4920
|
+
E[V] = C;
|
4921
|
+
var O = "$isDayjsObject", k = function(F) {
|
4922
|
+
return F instanceof K || !(!F || !F[O]);
|
4907
4923
|
}, N = function F($, M, L) {
|
4908
4924
|
var I;
|
4909
4925
|
if (!$)
|
4910
|
-
return
|
4926
|
+
return V;
|
4911
4927
|
if (typeof $ == "string") {
|
4912
4928
|
var U = $.toLowerCase();
|
4913
4929
|
E[U] && (I = U), M && (E[U] = M, I = U);
|
@@ -4918,19 +4934,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4918
4934
|
var x = $.name;
|
4919
4935
|
E[x] = $, I = x;
|
4920
4936
|
}
|
4921
|
-
return !L && I && (
|
4922
|
-
},
|
4937
|
+
return !L && I && (V = I), I || !L && V;
|
4938
|
+
}, R = function(F, $) {
|
4923
4939
|
if (k(F))
|
4924
4940
|
return F.clone();
|
4925
4941
|
var M = typeof $ == "object" ? $ : {};
|
4926
4942
|
return M.date = F, M.args = arguments, new K(M);
|
4927
|
-
}, D =
|
4943
|
+
}, D = y;
|
4928
4944
|
D.l = N, D.i = k, D.w = function(F, $) {
|
4929
|
-
return
|
4945
|
+
return R(F, { locale: $.$L, utc: $.$u, x: $.$x, $offset: $.$offset });
|
4930
4946
|
};
|
4931
4947
|
var K = function() {
|
4932
4948
|
function F(M) {
|
4933
|
-
this.$L = N(M.locale, null, !0), this.parse(M), this.$x = this.$x || M.x || {}, this[
|
4949
|
+
this.$L = N(M.locale, null, !0), this.parse(M), this.$x = this.$x || M.x || {}, this[O] = !0;
|
4934
4950
|
}
|
4935
4951
|
var $ = F.prototype;
|
4936
4952
|
return $.parse = function(M) {
|
@@ -4959,12 +4975,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4959
4975
|
}, $.isValid = function() {
|
4960
4976
|
return this.$d.toString() !== m;
|
4961
4977
|
}, $.isSame = function(M, L) {
|
4962
|
-
var I =
|
4978
|
+
var I = R(M);
|
4963
4979
|
return this.startOf(L) <= I && I <= this.endOf(L);
|
4964
4980
|
}, $.isAfter = function(M, L) {
|
4965
|
-
return
|
4981
|
+
return R(M) < this.startOf(L);
|
4966
4982
|
}, $.isBefore = function(M, L) {
|
4967
|
-
return this.endOf(L) <
|
4983
|
+
return this.endOf(L) < R(M);
|
4968
4984
|
}, $.$g = function(M, L, I) {
|
4969
4985
|
return D.u(M) ? this[L] : this.set(I, M);
|
4970
4986
|
}, $.unix = function() {
|
@@ -5016,7 +5032,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5016
5032
|
var I, U = this;
|
5017
5033
|
M = Number(M);
|
5018
5034
|
var P = D.p(L), x = function(J) {
|
5019
|
-
var te =
|
5035
|
+
var te = R(U);
|
5020
5036
|
return D.w(te.date(te.date() + Math.round(J * M)), U);
|
5021
5037
|
};
|
5022
5038
|
if (P === g)
|
@@ -5101,7 +5117,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5101
5117
|
}, $.utcOffset = function() {
|
5102
5118
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
5103
5119
|
}, $.diff = function(M, L, I) {
|
5104
|
-
var U, P = this, x = D.p(L), W =
|
5120
|
+
var U, P = this, x = D.p(L), W = R(M), z = (W.utcOffset() - this.utcOffset()) * a, J = this - W, te = function() {
|
5105
5121
|
return D.m(P, W);
|
5106
5122
|
};
|
5107
5123
|
switch (x) {
|
@@ -5154,15 +5170,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
5154
5170
|
return this.$d.toUTCString();
|
5155
5171
|
}, F;
|
5156
5172
|
}(), B = K.prototype;
|
5157
|
-
return
|
5173
|
+
return R.prototype = B, [["$ms", i], ["$s", s], ["$m", o], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", d]].forEach(function(F) {
|
5158
5174
|
B[F[1]] = function($) {
|
5159
5175
|
return this.$g($, F[0], F[1]);
|
5160
5176
|
};
|
5161
|
-
}),
|
5162
|
-
return F.$i || (F($, K,
|
5163
|
-
},
|
5164
|
-
return
|
5165
|
-
},
|
5177
|
+
}), R.extend = function(F, $) {
|
5178
|
+
return F.$i || (F($, K, R), F.$i = !0), R;
|
5179
|
+
}, R.locale = N, R.isDayjs = k, R.unix = function(F) {
|
5180
|
+
return R(1e3 * F);
|
5181
|
+
}, R.en = E[V], R.Ls = E, R.p = {}, R;
|
5166
5182
|
});
|
5167
5183
|
})(dayjs_min);
|
5168
5184
|
const dayjs = dayjs_min.exports;
|
@@ -5207,9 +5223,9 @@ function filesize(e, {
|
|
5207
5223
|
roundingMethod: m = ROUND,
|
5208
5224
|
precision: v = 0
|
5209
5225
|
} = {}) {
|
5210
|
-
let T = d, C = Number(e), A = [],
|
5226
|
+
let T = d, C = Number(e), A = [], y = 0, V = EMPTY;
|
5211
5227
|
c === SI ? (a = 10, c = JEDEC) : c === IEC || c === JEDEC ? a = 2 : a === 2 ? c = IEC : (a = 10, c = JEDEC);
|
5212
|
-
const E = a === 10 ? 1e3 : 1024,
|
5228
|
+
const E = a === 10 ? 1e3 : 1024, O = _ === !0, k = C < 0, N = Math[m];
|
5213
5229
|
if (typeof e != "bigint" && isNaN(e))
|
5214
5230
|
throw new TypeError(INVALID_NUMBER);
|
5215
5231
|
if (typeof N !== FUNCTION)
|
@@ -5217,21 +5233,21 @@ function filesize(e, {
|
|
5217
5233
|
if (k && (C = -C), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(C) / Math.log(E)), T < 0 && (T = 0)), T > 8 && (v > 0 && (v += 8 - T), T = 8), g === EXPONENT)
|
5218
5234
|
return T;
|
5219
5235
|
if (C === 0)
|
5220
|
-
A[0] = 0,
|
5236
|
+
A[0] = 0, V = A[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
5221
5237
|
else {
|
5222
|
-
|
5223
|
-
const
|
5224
|
-
A[0] = N(
|
5238
|
+
y = C / (a === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (y = y * 8, y >= E && T < 8 && (y = y / E, T++));
|
5239
|
+
const R = Math.pow(10, T > 0 ? n : 0);
|
5240
|
+
A[0] = N(y * R) / R, A[0] === E && T < 8 && d === -1 && (A[0] = 1, T++), V = A[1] = a === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
5225
5241
|
}
|
5226
5242
|
if (k && (A[0] = -A[0]), v > 0 && (A[0] = A[0].toPrecision(v)), A[1] = u[A[1]] || A[1], i === !0 ? A[0] = A[0].toLocaleString() : i.length > 0 ? A[0] = A[0].toLocaleString(i, s) : o.length > 0 && (A[0] = A[0].toString().replace(PERIOD, o)), r && Number.isInteger(A[0]) === !1 && n > 0) {
|
5227
|
-
const
|
5228
|
-
A[0] = `${D[0]}${
|
5243
|
+
const R = o || PERIOD, D = A[0].toString().split(R), K = D[1] || EMPTY, B = K.length, F = n - B;
|
5244
|
+
A[0] = `${D[0]}${R}${K.padEnd(B + F, ZERO)}`;
|
5229
5245
|
}
|
5230
|
-
return
|
5246
|
+
return O && (A[1] = b[T] ? b[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (A[0] === 1 ? EMPTY : S)), g === ARRAY ? A : g === OBJECT ? {
|
5231
5247
|
value: A[0],
|
5232
5248
|
symbol: A[1],
|
5233
5249
|
exponent: T,
|
5234
|
-
unit:
|
5250
|
+
unit: V
|
5235
5251
|
} : A.join(l);
|
5236
5252
|
}
|
5237
5253
|
class KgUtil {
|
@@ -5694,8 +5710,8 @@ class KgVarUtil {
|
|
5694
5710
|
const C = l.store.getVarConfigPossibility(r, a);
|
5695
5711
|
switch (C == null ? void 0 : C.val_data_type) {
|
5696
5712
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.NUMBER: {
|
5697
|
-
const A = T.map((
|
5698
|
-
if (A.some((
|
5713
|
+
const A = T.map((y) => Number(y));
|
5714
|
+
if (A.some((y) => Number.isNaN(A))) {
|
5699
5715
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${_} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
5700
5716
|
formID: r,
|
5701
5717
|
varName: a,
|
@@ -5889,7 +5905,7 @@ class KgVarUtil {
|
|
5889
5905
|
})]);
|
5890
5906
|
}
|
5891
5907
|
static getQueryHeaders(t) {
|
5892
|
-
var C, A,
|
5908
|
+
var C, A, y, V, E;
|
5893
5909
|
const {
|
5894
5910
|
params: r,
|
5895
5911
|
kgSearchFormID: a,
|
@@ -5911,20 +5927,20 @@ class KgVarUtil {
|
|
5911
5927
|
whereSql: ""
|
5912
5928
|
};
|
5913
5929
|
const l = ["pageNo", "pageSize", "column", "order"], u = useKg(), c = n ? useKgVar(n) : null, g = a ? useKgVar(a) : null, _ = a ? (C = g == null ? void 0 : g.kgSearch) == null ? void 0 : C.dynamicQueryOperatorModel.value : i, b = {};
|
5914
|
-
Object.keys(o).sort().forEach((
|
5930
|
+
Object.keys(o).sort().forEach((O) => {
|
5915
5931
|
var K, B, F, $, M, L;
|
5916
|
-
if (l.includes(
|
5932
|
+
if (l.includes(O) || O.endsWith("_obj"))
|
5917
5933
|
return;
|
5918
|
-
const k = a ? (K = g == null ? void 0 : g.store) == null ? void 0 : K.getVarProfileDetail(a,
|
5919
|
-
let N =
|
5920
|
-
const
|
5921
|
-
let D = _ == null ? void 0 : _[
|
5922
|
-
switch ((((F = (B = u.option.value.KgSearch) == null ? void 0 : B.dynamicQuery) == null ? void 0 : F.on) !== !0 || a && ((L = (M = ($ = g == null ? void 0 : g.kgSearch) == null ? void 0 : $.currentVarProfileMaster) == null ? void 0 : M.value) == null ? void 0 : L.dyn_flg) !== 1) && (D = KG_DYNAMIC_QUERY_OPERATOR.EQ), a && (k == null ? void 0 : k.use_underscore_when_dynamic_query_flag) !== 0 && (N =
|
5923
|
-
case (!!s && s.isDayjs(
|
5924
|
-
const I =
|
5934
|
+
const k = a ? (K = g == null ? void 0 : g.store) == null ? void 0 : K.getVarProfileDetail(a, O) : null;
|
5935
|
+
let N = O;
|
5936
|
+
const R = o[O];
|
5937
|
+
let D = _ == null ? void 0 : _[O];
|
5938
|
+
switch ((((F = (B = u.option.value.KgSearch) == null ? void 0 : B.dynamicQuery) == null ? void 0 : F.on) !== !0 || a && ((L = (M = ($ = g == null ? void 0 : g.kgSearch) == null ? void 0 : $.currentVarProfileMaster) == null ? void 0 : M.value) == null ? void 0 : L.dyn_flg) !== 1) && (D = KG_DYNAMIC_QUERY_OPERATOR.EQ), a && (k == null ? void 0 : k.use_underscore_when_dynamic_query_flag) !== 0 && (N = O.split(".").map((I) => snakeCase$1(I)).join(".")), !0) {
|
5939
|
+
case (!!s && s.isDayjs(R)): {
|
5940
|
+
const I = R;
|
5925
5941
|
let U = a ? KgUtil.parseParamFromDayjs({
|
5926
5942
|
formID: a,
|
5927
|
-
key:
|
5943
|
+
key: O,
|
5928
5944
|
value: I
|
5929
5945
|
}) : I.format("YYYY-MM-DD HH:mm:ss");
|
5930
5946
|
switch (D) {
|
@@ -6052,14 +6068,14 @@ class KgVarUtil {
|
|
6052
6068
|
break;
|
6053
6069
|
}
|
6054
6070
|
}
|
6055
|
-
b[
|
6071
|
+
b[O] = U;
|
6056
6072
|
break;
|
6057
6073
|
}
|
6058
|
-
case (!!s && isArray$1(
|
6059
|
-
const I =
|
6074
|
+
case (!!s && isArray$1(R) && R.length === 2 && s.isDayjs(R[0]) && s.isDayjs(R[1])): {
|
6075
|
+
const I = R[0], U = R[1];
|
6060
6076
|
let P = "", x = KgUtil.parseParamFromDayjs({
|
6061
6077
|
formID: a,
|
6062
|
-
key:
|
6078
|
+
key: O,
|
6063
6079
|
value: I
|
6064
6080
|
}), W = "";
|
6065
6081
|
switch (!0) {
|
@@ -6067,7 +6083,7 @@ class KgVarUtil {
|
|
6067
6083
|
W = KgUtil.parseParamFromDayjs({
|
6068
6084
|
formID: a,
|
6069
6085
|
isPad: !0,
|
6070
|
-
key:
|
6086
|
+
key: O,
|
6071
6087
|
value: U
|
6072
6088
|
});
|
6073
6089
|
break;
|
@@ -6085,28 +6101,28 @@ class KgVarUtil {
|
|
6085
6101
|
break;
|
6086
6102
|
}
|
6087
6103
|
}
|
6088
|
-
x && (P += ` AND (${N} >= N'${x}')`), W && (P += ` AND (${N} < N'${W}')`), b[
|
6104
|
+
x && (P += ` AND (${N} >= N'${x}')`), W && (P += ` AND (${N} < N'${W}')`), b[O] = P;
|
6089
6105
|
break;
|
6090
6106
|
}
|
6091
|
-
case Array.isArray(
|
6092
|
-
if (
|
6093
|
-
b[
|
6107
|
+
case Array.isArray(R): {
|
6108
|
+
if (R.length === 0) {
|
6109
|
+
b[O] = void 0;
|
6094
6110
|
break;
|
6095
6111
|
}
|
6096
|
-
const I =
|
6097
|
-
b[
|
6112
|
+
const I = R.map((U) => `N'${String(U)}'`).join(", ");
|
6113
|
+
b[O] = ` AND (${N} IN (${I}))`;
|
6098
6114
|
break;
|
6099
6115
|
}
|
6100
|
-
case isObjectLike(
|
6116
|
+
case isObjectLike(R):
|
6101
6117
|
throw KgLogger.error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.", {
|
6102
|
-
value:
|
6118
|
+
value: R
|
6103
6119
|
}), new Error("\u4E0D\u652F\u6301\u7684\u53C2\u6570\u7C7B\u578B.");
|
6104
|
-
case typeof
|
6105
|
-
if (
|
6106
|
-
b[
|
6120
|
+
case typeof R == "string": {
|
6121
|
+
if (R.trim() === "") {
|
6122
|
+
b[O] = void 0;
|
6107
6123
|
break;
|
6108
6124
|
}
|
6109
|
-
let I = KgUtil.parseParamFromString(
|
6125
|
+
let I = KgUtil.parseParamFromString(R);
|
6110
6126
|
switch (D) {
|
6111
6127
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6112
6128
|
I = ` AND (${N} <> N'${I}')`;
|
@@ -6130,67 +6146,67 @@ class KgVarUtil {
|
|
6130
6146
|
break;
|
6131
6147
|
}
|
6132
6148
|
}
|
6133
|
-
b[
|
6149
|
+
b[O] = I;
|
6134
6150
|
break;
|
6135
6151
|
}
|
6136
|
-
case typeof
|
6152
|
+
case typeof R == "number": {
|
6137
6153
|
let I = "";
|
6138
6154
|
switch (D) {
|
6139
6155
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6140
|
-
I = ` AND (${N} <> ${
|
6156
|
+
I = ` AND (${N} <> ${R})`;
|
6141
6157
|
break;
|
6142
6158
|
}
|
6143
6159
|
case KG_DYNAMIC_QUERY_OPERATOR.LT: {
|
6144
|
-
I = ` AND (${N} < ${
|
6160
|
+
I = ` AND (${N} < ${R})`;
|
6145
6161
|
break;
|
6146
6162
|
}
|
6147
6163
|
case KG_DYNAMIC_QUERY_OPERATOR.LTE: {
|
6148
|
-
I = ` AND (${N} <= ${
|
6164
|
+
I = ` AND (${N} <= ${R})`;
|
6149
6165
|
break;
|
6150
6166
|
}
|
6151
6167
|
case KG_DYNAMIC_QUERY_OPERATOR.GT: {
|
6152
|
-
I = ` AND (${N} > ${
|
6168
|
+
I = ` AND (${N} > ${R})`;
|
6153
6169
|
break;
|
6154
6170
|
}
|
6155
6171
|
case KG_DYNAMIC_QUERY_OPERATOR.GTE: {
|
6156
|
-
I = ` AND (${N} >= ${
|
6172
|
+
I = ` AND (${N} >= ${R})`;
|
6157
6173
|
break;
|
6158
6174
|
}
|
6159
6175
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6160
6176
|
default: {
|
6161
|
-
I = ` AND (${N} = ${
|
6177
|
+
I = ` AND (${N} = ${R})`;
|
6162
6178
|
break;
|
6163
6179
|
}
|
6164
6180
|
}
|
6165
|
-
b[
|
6181
|
+
b[O] = I;
|
6166
6182
|
break;
|
6167
6183
|
}
|
6168
|
-
case typeof
|
6184
|
+
case typeof R == "boolean": {
|
6169
6185
|
let I = "";
|
6170
6186
|
switch (D) {
|
6171
6187
|
case KG_DYNAMIC_QUERY_OPERATOR.NE: {
|
6172
|
-
I = ` AND (${N} <> ${
|
6188
|
+
I = ` AND (${N} <> ${R ? 1 : 0})`;
|
6173
6189
|
break;
|
6174
6190
|
}
|
6175
6191
|
case KG_DYNAMIC_QUERY_OPERATOR.EQ:
|
6176
6192
|
default: {
|
6177
|
-
I = ` AND (${N} = ${
|
6193
|
+
I = ` AND (${N} = ${R ? 1 : 0})`;
|
6178
6194
|
break;
|
6179
6195
|
}
|
6180
6196
|
}
|
6181
|
-
b[
|
6197
|
+
b[O] = I;
|
6182
6198
|
break;
|
6183
6199
|
}
|
6184
6200
|
default: {
|
6185
|
-
b[
|
6201
|
+
b[O] = R;
|
6186
6202
|
break;
|
6187
6203
|
}
|
6188
6204
|
}
|
6189
6205
|
});
|
6190
|
-
let m = `WHERE (1 = 1)${reduce(b, (
|
6206
|
+
let m = `WHERE (1 = 1)${reduce(b, (O, k, N) => {
|
6191
6207
|
var D, K, B, F;
|
6192
|
-
const
|
6193
|
-
return (
|
6208
|
+
const R = a ? (D = g == null ? void 0 : g.store) == null ? void 0 : D.getVarProfileDetail(a, N) : null;
|
6209
|
+
return (R == null ? void 0 : R.exclude_from_where_sql_flag) === 1 || !R && Object.keys(KgVarUtil.parseRequestParamsToJSON((F = (B = (K = c == null ? void 0 : c.varGridConfig) == null ? void 0 : K.value) == null ? void 0 : B.cmd_prm) != null ? F : "")).includes(N) || !k ? O : O + k;
|
6194
6210
|
}, "")}`;
|
6195
6211
|
m = encodeURIComponent(m);
|
6196
6212
|
let v = "";
|
@@ -6199,76 +6215,76 @@ class KgVarUtil {
|
|
6199
6215
|
const k = (A = g == null ? void 0 : g.systemVarGridDetails) == null ? void 0 : A.value;
|
6200
6216
|
switch (!0) {
|
6201
6217
|
case !!(k != null && k.find((N) => {
|
6202
|
-
var
|
6203
|
-
return last(((
|
6218
|
+
var R;
|
6219
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "insDt";
|
6204
6220
|
})):
|
6205
6221
|
o.column = "insDt", o.order = "desc";
|
6206
6222
|
break;
|
6207
6223
|
case !!(k != null && k.find((N) => {
|
6208
|
-
var
|
6209
|
-
return last(((
|
6224
|
+
var R;
|
6225
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "ins_dt";
|
6210
6226
|
})):
|
6211
6227
|
o.column = "ins_dt", o.order = "desc";
|
6212
6228
|
break;
|
6213
6229
|
case !!(k != null && k.find((N) => {
|
6214
|
-
var
|
6215
|
-
return last(((
|
6230
|
+
var R;
|
6231
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "insdt";
|
6216
6232
|
})):
|
6217
6233
|
o.column = "insdt", o.order = "desc";
|
6218
6234
|
break;
|
6219
6235
|
case !!(k != null && k.find((N) => {
|
6220
|
-
var
|
6221
|
-
return last(((
|
6236
|
+
var R;
|
6237
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "adddte";
|
6222
6238
|
})):
|
6223
6239
|
o.column = "adddte", o.order = "desc";
|
6224
6240
|
break;
|
6225
6241
|
case !!(k != null && k.find((N) => {
|
6226
|
-
var
|
6227
|
-
return last(((
|
6242
|
+
var R;
|
6243
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "moddte";
|
6228
6244
|
})):
|
6229
6245
|
o.column = "moddte", o.order = "desc";
|
6230
6246
|
break;
|
6231
6247
|
case !!(k != null && k.find((N) => {
|
6232
|
-
var
|
6233
|
-
return last(((
|
6248
|
+
var R;
|
6249
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "createTime";
|
6234
6250
|
})):
|
6235
6251
|
o.column = "createTime", o.order = "desc";
|
6236
6252
|
break;
|
6237
6253
|
case !!(k != null && k.find((N) => {
|
6238
|
-
var
|
6239
|
-
return last(((
|
6254
|
+
var R;
|
6255
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "create_time";
|
6240
6256
|
})):
|
6241
6257
|
o.column = "create_time", o.order = "desc";
|
6242
6258
|
break;
|
6243
6259
|
case !!(k != null && k.find((N) => {
|
6244
|
-
var
|
6245
|
-
return last(((
|
6260
|
+
var R;
|
6261
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "modifyTime";
|
6246
6262
|
})):
|
6247
6263
|
o.column = "modifyTime", o.order = "desc";
|
6248
6264
|
break;
|
6249
6265
|
case !!(k != null && k.find((N) => {
|
6250
|
-
var
|
6251
|
-
return last(((
|
6266
|
+
var R;
|
6267
|
+
return last(((R = N.var_nam) != null ? R : "").split(".")) === "modify_time";
|
6252
6268
|
})):
|
6253
6269
|
o.column = "modify_time", o.order = "desc";
|
6254
6270
|
break;
|
6255
6271
|
default:
|
6256
|
-
o.column = (
|
6272
|
+
o.column = (V = (y = g == null ? void 0 : g.kgTable) == null ? void 0 : y.id) == null ? void 0 : V.value;
|
6257
6273
|
break;
|
6258
6274
|
}
|
6259
6275
|
}
|
6260
|
-
let
|
6261
|
-
((E = c == null ? void 0 : c.varGridConfig.value) == null ? void 0 : E.convert_sort_field_to_under_score_flg) === 1 && (
|
6276
|
+
let O = o.column;
|
6277
|
+
((E = c == null ? void 0 : c.varGridConfig.value) == null ? void 0 : E.convert_sort_field_to_under_score_flg) === 1 && (O = o.column.split(".").map((k) => snakeCase$1(k)).join(".")), O && (v = `ORDER BY ${O}`, o.order === "asc" ? v += " ASC" : o.order === "desc" && (v += " DESC"), v = encodeURIComponent(v.trim()));
|
6262
6278
|
}
|
6263
6279
|
let T = "";
|
6264
6280
|
if (!isNil(o.pageNo)) {
|
6265
|
-
const
|
6266
|
-
if (Number.isNaN(
|
6281
|
+
const O = Number.parseInt(o.pageNo);
|
6282
|
+
if (Number.isNaN(O) || O <= 0)
|
6267
6283
|
throw new Error("\u53C2\u6570 pageNo \u975E\u6CD5.");
|
6268
6284
|
const k = Number.parseInt(o.pageSize);
|
6269
6285
|
if (Number.isNaN(k) || k <= 0)
|
6270
6286
|
throw new Error("\u53C2\u6570 pageSize \u975E\u6CD5.");
|
6271
|
-
T = ` OFFSET ${(
|
6287
|
+
T = ` OFFSET ${(O - 1) * k} ROWS FETCH NEXT ${k} ROWS ONLY`;
|
6272
6288
|
}
|
6273
6289
|
return {
|
6274
6290
|
offsetSql: T,
|
@@ -6403,7 +6419,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6403
6419
|
function A(k, N) {
|
6404
6420
|
return function() {
|
6405
6421
|
setActivePinia(a);
|
6406
|
-
const
|
6422
|
+
const R = Array.from(arguments), D = [], K = [];
|
6407
6423
|
function B(M) {
|
6408
6424
|
D.push(M);
|
6409
6425
|
}
|
@@ -6411,7 +6427,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6411
6427
|
K.push(M);
|
6412
6428
|
}
|
6413
6429
|
triggerSubscriptions(_, {
|
6414
|
-
args:
|
6430
|
+
args: R,
|
6415
6431
|
name: k,
|
6416
6432
|
store: E,
|
6417
6433
|
after: B,
|
@@ -6419,55 +6435,55 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6419
6435
|
});
|
6420
6436
|
let $;
|
6421
6437
|
try {
|
6422
|
-
$ = N.apply(this && this.$id === e ? this : E,
|
6438
|
+
$ = N.apply(this && this.$id === e ? this : E, R);
|
6423
6439
|
} catch (M) {
|
6424
6440
|
throw triggerSubscriptions(K, M), M;
|
6425
6441
|
}
|
6426
6442
|
return $ instanceof Promise ? $.then((M) => (triggerSubscriptions(D, M), M)).catch((M) => (triggerSubscriptions(K, M), Promise.reject(M))) : (triggerSubscriptions(D, $), $);
|
6427
6443
|
};
|
6428
6444
|
}
|
6429
|
-
const
|
6445
|
+
const y = /* @__PURE__ */ markRaw({
|
6430
6446
|
actions: {},
|
6431
6447
|
getters: {},
|
6432
6448
|
state: [],
|
6433
6449
|
hotState: m
|
6434
|
-
}),
|
6450
|
+
}), V = {
|
6435
6451
|
_p: a,
|
6436
6452
|
$id: e,
|
6437
6453
|
$onAction: addSubscription.bind(null, _),
|
6438
6454
|
$patch: v,
|
6439
6455
|
$reset: T,
|
6440
6456
|
$subscribe(k, N = {}) {
|
6441
|
-
const
|
6457
|
+
const R = addSubscription(g, k, N.detached, () => D()), D = i.run(() => watch(() => a.state.value[e], (K) => {
|
6442
6458
|
(N.flush === "sync" ? c : u) && k({
|
6443
6459
|
storeId: e,
|
6444
6460
|
type: MutationType.direct,
|
6445
6461
|
events: b
|
6446
6462
|
}, K);
|
6447
6463
|
}, assign$1({}, l, N)));
|
6448
|
-
return
|
6464
|
+
return R;
|
6449
6465
|
},
|
6450
6466
|
$dispose: C
|
6451
6467
|
}, E = reactive(assign$1(
|
6452
6468
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6453
6469
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6454
|
-
_hmrPayload:
|
6470
|
+
_hmrPayload: y
|
6455
6471
|
} : {},
|
6456
|
-
|
6472
|
+
V
|
6457
6473
|
));
|
6458
6474
|
a._s.set(e, E);
|
6459
|
-
const
|
6460
|
-
for (const k in
|
6461
|
-
const N =
|
6475
|
+
const O = a._e.run(() => (i = effectScope(), i.run(() => t())));
|
6476
|
+
for (const k in O) {
|
6477
|
+
const N = O[k];
|
6462
6478
|
if (isRef(N) && !isComputed(N) || isReactive(N))
|
6463
|
-
process.env.NODE_ENV !== "production" && n ? set(m.value, k, toRef(
|
6479
|
+
process.env.NODE_ENV !== "production" && n ? set(m.value, k, toRef(O, k)) : s || (d && shouldHydrate(N) && (isRef(N) ? N.value = d[k] : mergeReactiveObjects(N, d[k])), a.state.value[e][k] = N), process.env.NODE_ENV !== "production" && y.state.push(k);
|
6464
6480
|
else if (typeof N == "function") {
|
6465
|
-
const
|
6466
|
-
|
6481
|
+
const R = process.env.NODE_ENV !== "production" && n ? N : A(k, N);
|
6482
|
+
O[k] = R, process.env.NODE_ENV !== "production" && (y.actions[k] = N), o.actions[k] = N;
|
6467
6483
|
} else
|
6468
|
-
process.env.NODE_ENV !== "production" && isComputed(N) && (
|
6484
|
+
process.env.NODE_ENV !== "production" && isComputed(N) && (y.getters[k] = s ? r.getters[k] : N, IS_CLIENT && (O._getters || (O._getters = markRaw([]))).push(k));
|
6469
6485
|
}
|
6470
|
-
if (assign$1(E,
|
6486
|
+
if (assign$1(E, O), assign$1(toRaw(E), O), Object.defineProperty(E, "$state", {
|
6471
6487
|
get: () => process.env.NODE_ENV !== "production" && n ? m.value : a.state.value[e],
|
6472
6488
|
set: (k) => {
|
6473
6489
|
if (process.env.NODE_ENV !== "production" && n)
|
@@ -6478,29 +6494,29 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6478
6494
|
}
|
6479
6495
|
}), process.env.NODE_ENV !== "production") {
|
6480
6496
|
E._hotUpdate = markRaw((N) => {
|
6481
|
-
E._hotUpdating = !0, N._hmrPayload.state.forEach((
|
6482
|
-
if (
|
6483
|
-
const D = N.$state[
|
6484
|
-
typeof D == "object" && isPlainObject(D) && isPlainObject(K) ? patchObject(D, K) : N.$state[
|
6497
|
+
E._hotUpdating = !0, N._hmrPayload.state.forEach((R) => {
|
6498
|
+
if (R in E.$state) {
|
6499
|
+
const D = N.$state[R], K = E.$state[R];
|
6500
|
+
typeof D == "object" && isPlainObject(D) && isPlainObject(K) ? patchObject(D, K) : N.$state[R] = K;
|
6485
6501
|
}
|
6486
|
-
set(E,
|
6487
|
-
}), Object.keys(E.$state).forEach((
|
6488
|
-
|
6502
|
+
set(E, R, toRef(N.$state, R));
|
6503
|
+
}), Object.keys(E.$state).forEach((R) => {
|
6504
|
+
R in N.$state || del(E, R);
|
6489
6505
|
}), u = !1, c = !1, a.state.value[e] = toRef(N._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6490
6506
|
u = !0;
|
6491
6507
|
});
|
6492
|
-
for (const
|
6493
|
-
const D = N[
|
6494
|
-
set(E,
|
6495
|
-
}
|
6496
|
-
for (const
|
6497
|
-
const D = N._hmrPayload.getters[
|
6498
|
-
set(E,
|
6499
|
-
}
|
6500
|
-
Object.keys(E._hmrPayload.getters).forEach((
|
6501
|
-
|
6502
|
-
}), Object.keys(E._hmrPayload.actions).forEach((
|
6503
|
-
|
6508
|
+
for (const R in N._hmrPayload.actions) {
|
6509
|
+
const D = N[R];
|
6510
|
+
set(E, R, A(R, D));
|
6511
|
+
}
|
6512
|
+
for (const R in N._hmrPayload.getters) {
|
6513
|
+
const D = N._hmrPayload.getters[R], K = s ? computed(() => (setActivePinia(a), D.call(E, E))) : D;
|
6514
|
+
set(E, R, K);
|
6515
|
+
}
|
6516
|
+
Object.keys(E._hmrPayload.getters).forEach((R) => {
|
6517
|
+
R in N._hmrPayload.getters || del(E, R);
|
6518
|
+
}), Object.keys(E._hmrPayload.actions).forEach((R) => {
|
6519
|
+
R in N._hmrPayload.actions || del(E, R);
|
6504
6520
|
}), E._hmrPayload = N._hmrPayload, E._getters = N._getters, E._hotUpdating = !1;
|
6505
6521
|
});
|
6506
6522
|
const k = {
|
@@ -6523,7 +6539,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6523
6539
|
pinia: a,
|
6524
6540
|
options: o
|
6525
6541
|
}));
|
6526
|
-
Object.keys(N || {}).forEach((
|
6542
|
+
Object.keys(N || {}).forEach((R) => E._customProperties.add(R)), assign$1(E, N);
|
6527
6543
|
} else
|
6528
6544
|
assign$1(E, i.run(() => k({
|
6529
6545
|
store: E,
|
@@ -7219,13 +7235,13 @@ function useMagicKeys(e = {}) {
|
|
7219
7235
|
}
|
7220
7236
|
function b(m, v) {
|
7221
7237
|
var T, C;
|
7222
|
-
const A = (T = m.key) == null ? void 0 : T.toLowerCase(),
|
7223
|
-
|
7224
|
-
for (const E of
|
7238
|
+
const A = (T = m.key) == null ? void 0 : T.toLowerCase(), y = (C = m.code) == null ? void 0 : C.toLowerCase(), V = [y, A].filter(Boolean);
|
7239
|
+
y && (v ? s.add(m.code) : s.delete(m.code));
|
7240
|
+
for (const E of V)
|
7225
7241
|
c.add(E), g(E, v);
|
7226
7242
|
A === "meta" && !v ? (u.forEach((E) => {
|
7227
7243
|
s.delete(E), g(E, !1);
|
7228
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...
|
7244
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((E) => u.add(E));
|
7229
7245
|
}
|
7230
7246
|
r && (useEventListener(r, "keydown", (m) => (b(m, !0), i(m)), { passive: n }), useEventListener(r, "keyup", (m) => (b(m, !1), i(m)), { passive: n }), useEventListener("blur", _, { passive: !0 }), useEventListener("focus", _, { passive: !0 }));
|
7231
7247
|
const d = new Proxy(l, {
|
@@ -7234,8 +7250,8 @@ function useMagicKeys(e = {}) {
|
|
7234
7250
|
return Reflect.get(m, v, T);
|
7235
7251
|
if (v = v.toLowerCase(), v in a && (v = a[v]), !(v in l))
|
7236
7252
|
if (/[+_-]/.test(v)) {
|
7237
|
-
const A = v.split(/[+_-]/g).map((
|
7238
|
-
l[v] = computed(() => A.every((
|
7253
|
+
const A = v.split(/[+_-]/g).map((y) => y.trim());
|
7254
|
+
l[v] = computed(() => A.every((y) => unref(d[y])));
|
7239
7255
|
} else
|
7240
7256
|
l[v] = ref(!1);
|
7241
7257
|
const C = Reflect.get(m, v, T);
|
@@ -7261,12 +7277,12 @@ function useWindowSize(e = {}) {
|
|
7261
7277
|
}
|
7262
7278
|
const KG_MODAL_BORDER_WIDTH = 1, KG_MODAL_SCROLL_WIDTH = 17;
|
7263
7279
|
function useDragToMove(e) {
|
7264
|
-
var N,
|
7280
|
+
var N, R, D;
|
7265
7281
|
const {
|
7266
7282
|
getProps: t,
|
7267
7283
|
domRef: r
|
7268
7284
|
} = e;
|
7269
|
-
if (((D = (
|
7285
|
+
if (((D = (R = (N = useKg().option.value) == null ? void 0 : N.KgModal) == null ? void 0 : R.drag) == null ? void 0 : D.on) !== !0)
|
7270
7286
|
return;
|
7271
7287
|
const {
|
7272
7288
|
width: n,
|
@@ -7298,10 +7314,10 @@ function useDragToMove(e) {
|
|
7298
7314
|
remove: () => K.removeEventListener(B, F)
|
7299
7315
|
};
|
7300
7316
|
}
|
7301
|
-
function
|
7317
|
+
function y() {
|
7302
7318
|
T.remove(), C.remove();
|
7303
7319
|
}
|
7304
|
-
function
|
7320
|
+
function V(K) {
|
7305
7321
|
const {
|
7306
7322
|
event: B
|
7307
7323
|
} = K != null ? K : {};
|
@@ -7313,20 +7329,20 @@ function useDragToMove(e) {
|
|
7313
7329
|
o.value.style.left = `${M}px`, o.value.style.top = `${L}px`;
|
7314
7330
|
}
|
7315
7331
|
function E(K) {
|
7316
|
-
!K || !s.value || !o.value || !l.value || (document.body.classList.add("kg-modal-dragging"), b = K.clientX, d = K.clientY, u = o.value.offsetLeft, c = n.value - o.value.offsetLeft - l.value.offsetWidth - KG_MODAL_BORDER_WIDTH * 2, g = o.value.offsetTop, _ = i.value - o.value.offsetTop - l.value.offsetHeight - KG_MODAL_BORDER_WIDTH, m = Number(getComputedStyle(o.value).left.replace(/px/g, "")), v = Number(getComputedStyle(o.value).top.replace(/px/g, "")), T = A(document.documentElement, "mousemove", (B) =>
|
7332
|
+
!K || !s.value || !o.value || !l.value || (document.body.classList.add("kg-modal-dragging"), b = K.clientX, d = K.clientY, u = o.value.offsetLeft, c = n.value - o.value.offsetLeft - l.value.offsetWidth - KG_MODAL_BORDER_WIDTH * 2, g = o.value.offsetTop, _ = i.value - o.value.offsetTop - l.value.offsetHeight - KG_MODAL_BORDER_WIDTH, m = Number(getComputedStyle(o.value).left.replace(/px/g, "")), v = Number(getComputedStyle(o.value).top.replace(/px/g, "")), T = A(document.documentElement, "mousemove", (B) => O({
|
7317
7333
|
event: B
|
7318
7334
|
})), C = A(document.documentElement, "mouseup", (B) => k({
|
7319
7335
|
event: B
|
7320
7336
|
})));
|
7321
7337
|
}
|
7322
|
-
function
|
7323
|
-
|
7338
|
+
function O(K) {
|
7339
|
+
V(K);
|
7324
7340
|
}
|
7325
7341
|
function k(K) {
|
7326
|
-
|
7342
|
+
V(K), y(), document.body.classList.remove("kg-modal-dragging");
|
7327
7343
|
}
|
7328
7344
|
onUnmounted(() => {
|
7329
|
-
|
7345
|
+
y();
|
7330
7346
|
});
|
7331
7347
|
}
|
7332
7348
|
function useDragToResize(e) {
|
@@ -7365,14 +7381,14 @@ function useDragToResize(e) {
|
|
7365
7381
|
let m = 0, v = 0, T = 0, C = 0, A = {
|
7366
7382
|
remove: () => {
|
7367
7383
|
}
|
7368
|
-
},
|
7384
|
+
}, y = {
|
7369
7385
|
remove: () => {
|
7370
7386
|
}
|
7371
7387
|
};
|
7372
|
-
const
|
7388
|
+
const V = watch([l], ([K]) => {
|
7373
7389
|
if (K) {
|
7374
7390
|
const B = K.querySelector("div.ant-modal-content");
|
7375
|
-
B ? (
|
7391
|
+
B ? (V(), o = new ResizeObserver(() => {
|
7376
7392
|
d.value = B.offsetHeight;
|
7377
7393
|
}), o.observe(B)) : o == null || o.disconnect();
|
7378
7394
|
}
|
@@ -7389,8 +7405,8 @@ function useDragToResize(e) {
|
|
7389
7405
|
remove: () => K.removeEventListener(B, F)
|
7390
7406
|
};
|
7391
7407
|
}
|
7392
|
-
function
|
7393
|
-
A.remove(),
|
7408
|
+
function O() {
|
7409
|
+
A.remove(), y.remove();
|
7394
7410
|
}
|
7395
7411
|
function k(K) {
|
7396
7412
|
var L, I, U, P, x, W, z, J, te, ie, le, Y;
|
@@ -7446,30 +7462,30 @@ function useDragToResize(e) {
|
|
7446
7462
|
event: B,
|
7447
7463
|
handleType: F
|
7448
7464
|
} = K != null ? K : {};
|
7449
|
-
if (B.stopPropagation(), B.preventDefault(),
|
7465
|
+
if (B.stopPropagation(), B.preventDefault(), O(), !(B instanceof MouseEvent && B.which !== 1)) {
|
7450
7466
|
if (!l.value) {
|
7451
7467
|
KgLogger.error("\u5F39\u7A97\u5143\u7D20\u4E3A\u7A7A.");
|
7452
7468
|
return;
|
7453
7469
|
}
|
7454
|
-
T = B.pageX, C = B.pageY, m = l.value.offsetWidth, v = l.value.offsetHeight, Number(getComputedStyle(l.value).top.replace(/px/g, "")), A = E(document.documentElement, "mousemove", ($) =>
|
7470
|
+
T = B.pageX, C = B.pageY, m = l.value.offsetWidth, v = l.value.offsetHeight, Number(getComputedStyle(l.value).top.replace(/px/g, "")), A = E(document.documentElement, "mousemove", ($) => R({
|
7455
7471
|
event: $,
|
7456
7472
|
handleType: F
|
7457
|
-
})),
|
7473
|
+
})), y = E(document.documentElement, "mouseup", ($) => D({
|
7458
7474
|
event: $,
|
7459
7475
|
handleType: F
|
7460
7476
|
}));
|
7461
7477
|
}
|
7462
7478
|
}
|
7463
|
-
function
|
7479
|
+
function R(K) {
|
7464
7480
|
k(K);
|
7465
7481
|
}
|
7466
7482
|
function D(K) {
|
7467
|
-
k(K),
|
7483
|
+
k(K), O();
|
7468
7484
|
}
|
7469
7485
|
return onBeforeUnmount(() => {
|
7470
7486
|
o == null || o.disconnect();
|
7471
7487
|
}), onUnmounted(() => {
|
7472
|
-
|
7488
|
+
O();
|
7473
7489
|
}), {
|
7474
7490
|
onMousedown: N
|
7475
7491
|
};
|
@@ -7739,76 +7755,76 @@ const getProps$G = () => ({
|
|
7739
7755
|
};
|
7740
7756
|
}
|
7741
7757
|
}), b = computed(() => {
|
7742
|
-
let
|
7743
|
-
switch (e.kgClass && (
|
7758
|
+
let O = "";
|
7759
|
+
switch (e.kgClass && (O += `${e.kgClass} `), O += "kg-resizable", e.kgDisabled && (O += " kg-resizable--disabled"), e.kgType) {
|
7744
7760
|
case "left":
|
7745
|
-
|
7761
|
+
O += " kg-resizable--left";
|
7746
7762
|
break;
|
7747
7763
|
case "right":
|
7748
|
-
|
7764
|
+
O += " kg-resizable--right";
|
7749
7765
|
break;
|
7750
7766
|
case "top":
|
7751
|
-
|
7767
|
+
O += " kg-resizable--top";
|
7752
7768
|
break;
|
7753
7769
|
case "bottom":
|
7754
|
-
|
7770
|
+
O += " kg-resizable--bottom";
|
7755
7771
|
break;
|
7756
7772
|
}
|
7757
|
-
return
|
7773
|
+
return O;
|
7758
7774
|
}), d = computed(() => {
|
7759
|
-
var
|
7775
|
+
var O, k;
|
7760
7776
|
switch (e.kgType) {
|
7761
7777
|
case "top":
|
7762
7778
|
case "bottom":
|
7763
|
-
return Math.min(i.value, (
|
7779
|
+
return Math.min(i.value, (O = e.kgMaxHeight) != null ? O : Number.MAX_VALUE);
|
7764
7780
|
case "left":
|
7765
7781
|
case "right":
|
7766
7782
|
return Math.min(n.value, (k = e.kgMaxHeight) != null ? k : Number.MAX_VALUE);
|
7767
7783
|
}
|
7768
7784
|
}), m = computed(() => {
|
7769
|
-
var
|
7770
|
-
return Math.min(d.value, (
|
7785
|
+
var O;
|
7786
|
+
return Math.min(d.value, (O = e.kgMinHeight) != null ? O : 0);
|
7771
7787
|
});
|
7772
7788
|
function v() {
|
7773
7789
|
c.remove(), g.remove();
|
7774
7790
|
}
|
7775
|
-
const T = (
|
7791
|
+
const T = (O) => {
|
7776
7792
|
switch (e.kgType) {
|
7777
7793
|
case "top":
|
7778
|
-
t("update:kgHeight", Math.min(d.value, Math.max(m.value, o - (
|
7794
|
+
t("update:kgHeight", Math.min(d.value, Math.max(m.value, o - (O.pageY - u))));
|
7779
7795
|
break;
|
7780
7796
|
case "bottom":
|
7781
|
-
t("update:kgHeight", Math.min(d.value, Math.max(m.value, o + (
|
7797
|
+
t("update:kgHeight", Math.min(d.value, Math.max(m.value, o + (O.pageY - u))));
|
7782
7798
|
break;
|
7783
7799
|
case "left":
|
7784
|
-
t("update:kgHeight", Math.min(d.value, Math.max(m.value, s - (
|
7800
|
+
t("update:kgHeight", Math.min(d.value, Math.max(m.value, s - (O.pageX - l))));
|
7785
7801
|
break;
|
7786
7802
|
case "right":
|
7787
|
-
t("update:kgHeight", Math.min(d.value, Math.max(m.value, s + (
|
7803
|
+
t("update:kgHeight", Math.min(d.value, Math.max(m.value, s + (O.pageX - l))));
|
7788
7804
|
break;
|
7789
7805
|
}
|
7790
7806
|
};
|
7791
|
-
function C(
|
7792
|
-
T(
|
7807
|
+
function C(O) {
|
7808
|
+
T(O);
|
7793
7809
|
}
|
7794
|
-
function A(
|
7795
|
-
T(
|
7810
|
+
function A(O) {
|
7811
|
+
T(O), v();
|
7796
7812
|
}
|
7797
|
-
function O
|
7798
|
-
|
7813
|
+
function y(O) {
|
7814
|
+
O.stopPropagation(), O.preventDefault(), v(), !(O instanceof MouseEvent && O.which !== 1) && (l = O.pageX, u = O.pageY, s = e.kgHeight, o = e.kgHeight, c = V(document.documentElement, "mouseup", A), g = V(document.documentElement, "mousemove", C));
|
7799
7815
|
}
|
7800
|
-
function
|
7801
|
-
return
|
7802
|
-
remove: () =>
|
7816
|
+
function V(O, k, N) {
|
7817
|
+
return O.addEventListener(k, N), {
|
7818
|
+
remove: () => O.removeEventListener(k, N)
|
7803
7819
|
};
|
7804
7820
|
}
|
7805
|
-
function E(
|
7806
|
-
|
7821
|
+
function E(O) {
|
7822
|
+
O.stopPropagation(), O.preventDefault();
|
7807
7823
|
}
|
7808
7824
|
return onUnmounted(() => {
|
7809
7825
|
v();
|
7810
7826
|
}), () => {
|
7811
|
-
var
|
7827
|
+
var O;
|
7812
7828
|
return createVNode("div", {
|
7813
7829
|
ref: a,
|
7814
7830
|
class: b.value,
|
@@ -7816,10 +7832,10 @@ const getProps$G = () => ({
|
|
7816
7832
|
}, [createVNode("div", {
|
7817
7833
|
class: "kg-resizable-handle",
|
7818
7834
|
onClick: E,
|
7819
|
-
onMousedown:
|
7835
|
+
onMousedown: y
|
7820
7836
|
}, [createVNode("div", {
|
7821
7837
|
class: "kg-resizable-handle-line"
|
7822
|
-
}, null)]), (
|
7838
|
+
}, null)]), (O = r.default) == null ? void 0 : O.call(r)]);
|
7823
7839
|
};
|
7824
7840
|
}
|
7825
7841
|
}), KG__DI__KG_FORM___FORM_MODEL = Symbol("KG__DI__KG_FORM___FORM_MODEL"), KG__DI__KG_FORM___FORM_REF = Symbol("KG__DI__KG_FORM___FORM_REF"), getProps$F = () => ({
|
@@ -7893,13 +7909,13 @@ const getProps$G = () => ({
|
|
7893
7909
|
r("update:visible", !1);
|
7894
7910
|
}
|
7895
7911
|
async function d() {
|
7896
|
-
var v, T, C, A,
|
7912
|
+
var v, T, C, A, y, V, E;
|
7897
7913
|
if (g.value) {
|
7898
|
-
const
|
7914
|
+
const O = (T = (v = u.kgTable.selectedRows) == null ? void 0 : v.value) != null ? T : [], k = (C = O.map((R) => R[_.value])) != null ? C : [];
|
7899
7915
|
if (await l.kgForm.store.emit(l.kgForm.formID, "lookupBeforeOk", {
|
7900
7916
|
context: s,
|
7901
7917
|
isMultiple: !0,
|
7902
|
-
rows:
|
7918
|
+
rows: O,
|
7903
7919
|
values: k,
|
7904
7920
|
var_nam: n
|
7905
7921
|
}))
|
@@ -7908,19 +7924,19 @@ const getProps$G = () => ({
|
|
7908
7924
|
context: s,
|
7909
7925
|
isMultiple: !0,
|
7910
7926
|
model: o,
|
7911
|
-
rows:
|
7927
|
+
rows: O,
|
7912
7928
|
values: k,
|
7913
7929
|
var_nam: n
|
7914
7930
|
}), r("update:visible", !1);
|
7915
7931
|
} else {
|
7916
|
-
const
|
7932
|
+
const O = (V = (y = (A = u.kgTable.selectedRows) == null ? void 0 : A.value) == null ? void 0 : y[0]) != null ? V : null, k = (E = O == null ? void 0 : O[_.value]) != null ? E : "", N = O ? [O] : [], R = [k];
|
7917
7933
|
if (await l.kgForm.store.emit(l.kgForm.formID, "lookupBeforeOk", {
|
7918
7934
|
context: s,
|
7919
7935
|
isMultiple: !1,
|
7920
|
-
row:
|
7936
|
+
row: O,
|
7921
7937
|
rows: N,
|
7922
7938
|
value: k,
|
7923
|
-
values:
|
7939
|
+
values: R,
|
7924
7940
|
var_nam: n
|
7925
7941
|
}))
|
7926
7942
|
return;
|
@@ -7928,10 +7944,10 @@ const getProps$G = () => ({
|
|
7928
7944
|
context: s,
|
7929
7945
|
isMultiple: !1,
|
7930
7946
|
model: o,
|
7931
|
-
row:
|
7947
|
+
row: O,
|
7932
7948
|
rows: N,
|
7933
7949
|
value: k,
|
7934
|
-
values:
|
7950
|
+
values: R,
|
7935
7951
|
var_nam: n
|
7936
7952
|
}), r("update:visible", !1);
|
7937
7953
|
}
|
@@ -8021,47 +8037,47 @@ KG__VAR_CONFIG_INPUT__VALIDATION_TYPE.REGULAR_EXPRESSION;
|
|
8021
8037
|
const ANY = KG__VAR_CONFIG_INPUT__DATA_TYPE.ANY, INTEGER = KG__VAR_CONFIG_INPUT__DATA_TYPE.INTEGER, FLOAT = KG__VAR_CONFIG_INPUT__DATA_TYPE.FLOAT, LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LETTER, UPPER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.UPPER_CASE_LETTER, LOWER_CASE_LETTER = KG__VAR_CONFIG_INPUT__DATA_TYPE.LOWER_CASE_LETTER, JSON$1 = KG__VAR_CONFIG_INPUT__DATA_TYPE.JSON;
|
8022
8038
|
function _useFormRules(e) {
|
8023
8039
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarConfigInput(r.formID, e.kgVarName)), i = computed(() => {
|
8024
|
-
var
|
8025
|
-
return (
|
8026
|
-
buttonVarName: (
|
8040
|
+
var y, V;
|
8041
|
+
return (V = r.kgSubmit.getVarSubmitDetails({
|
8042
|
+
buttonVarName: (y = r.kgButton.currentButton.value) == null ? void 0 : y.var_nam,
|
8027
8043
|
varName: e.kgVarName
|
8028
|
-
})[0]) != null ?
|
8044
|
+
})[0]) != null ? V : null;
|
8029
8045
|
}), s = ref([]), o = computed(() => {
|
8030
|
-
var
|
8046
|
+
var y, V;
|
8031
8047
|
return [
|
8032
8048
|
...s.value,
|
8033
|
-
...(
|
8034
|
-
...(
|
8049
|
+
...(y = e.kgRules) != null ? y : [],
|
8050
|
+
...(V = r.kgSubmit.formRules.value[e.kgVarName]) != null ? V : []
|
8035
8051
|
];
|
8036
8052
|
}), l = ref(!1);
|
8037
|
-
watch(o, (
|
8038
|
-
isEqual(
|
8053
|
+
watch(o, (y, V) => {
|
8054
|
+
isEqual(y, V) || (l.value = !0, nextTick().then(() => {
|
8039
8055
|
l.value = !1;
|
8040
8056
|
}));
|
8041
|
-
}, {}), watch([a, i, n], async ([
|
8042
|
-
var
|
8043
|
-
(
|
8057
|
+
}, {}), watch([a, i, n], async ([y, V, E]) => {
|
8058
|
+
var O;
|
8059
|
+
(O = r.kgSubmit.formRef.value) == null || O.clearValidate(), await nextTick(), setTimeout(() => {
|
8044
8060
|
s.value = (() => {
|
8045
8061
|
let k = [];
|
8046
8062
|
switch (e.kgContext) {
|
8047
8063
|
case KG_FORM_CONTEXT.SEARCH:
|
8048
|
-
if ((
|
8064
|
+
if ((y == null ? void 0 : y.vis_flg) === 0)
|
8049
8065
|
return k;
|
8050
8066
|
break;
|
8051
8067
|
case KG_FORM_CONTEXT.SUBMIT:
|
8052
|
-
if ((
|
8068
|
+
if ((V == null ? void 0 : V.visible_flag) === 0)
|
8053
8069
|
return k;
|
8054
8070
|
break;
|
8055
8071
|
}
|
8056
8072
|
switch (e.kgContext) {
|
8057
8073
|
case KG_FORM_CONTEXT.SEARCH:
|
8058
|
-
(
|
8074
|
+
(y == null ? void 0 : y.rqr_flg) === 1 && k.push({
|
8059
8075
|
required: !0,
|
8060
8076
|
message: t.t("kg.required")
|
8061
8077
|
});
|
8062
8078
|
break;
|
8063
8079
|
case KG_FORM_CONTEXT.SUBMIT:
|
8064
|
-
(
|
8080
|
+
(V == null ? void 0 : V.required_flag) === 1 && k.push({
|
8065
8081
|
required: !0,
|
8066
8082
|
message: t.t("kg.required")
|
8067
8083
|
});
|
@@ -8145,57 +8161,57 @@ function _useFormRules(e) {
|
|
8145
8161
|
deep: !0,
|
8146
8162
|
immediate: !0
|
8147
8163
|
});
|
8148
|
-
function u(
|
8149
|
-
return
|
8164
|
+
function u(y) {
|
8165
|
+
return y == null || y === "" || typeof y == "string" && y.trim() === "";
|
8150
8166
|
}
|
8151
|
-
function c(
|
8152
|
-
return u(
|
8167
|
+
function c(y, V) {
|
8168
|
+
return u(V) || /^-?\d+$/.test(V) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidInteger"));
|
8153
8169
|
}
|
8154
|
-
function g(
|
8155
|
-
return u(
|
8170
|
+
function g(y, V) {
|
8171
|
+
return u(V) || /^-?\d+(\.\d+)?$/.test(V) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidFloat"));
|
8156
8172
|
}
|
8157
|
-
function _(
|
8158
|
-
return u(
|
8173
|
+
function _(y, V) {
|
8174
|
+
return u(V) || /^[A-Za-z]*$/.test(V) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLetter"));
|
8159
8175
|
}
|
8160
|
-
function b(
|
8161
|
-
return u(
|
8176
|
+
function b(y, V) {
|
8177
|
+
return u(V) || /^[A-Z]*$/.test(V) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidUpperLetter"));
|
8162
8178
|
}
|
8163
|
-
function d(
|
8164
|
-
return u(
|
8179
|
+
function d(y, V) {
|
8180
|
+
return u(V) || /^[a-z]*$/.test(V) ? Promise.resolve() : Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidLowerLetter"));
|
8165
8181
|
}
|
8166
|
-
function m(
|
8167
|
-
if (u(
|
8182
|
+
function m(y, V) {
|
8183
|
+
if (u(V))
|
8168
8184
|
return Promise.resolve();
|
8169
8185
|
try {
|
8170
|
-
window.JSON.parse(String(
|
8186
|
+
window.JSON.parse(String(V));
|
8171
8187
|
} catch {
|
8172
8188
|
return Promise.reject(t.t("kg.KgFormItem.formValidationMessageForInvalidJSON"));
|
8173
8189
|
}
|
8174
8190
|
return Promise.resolve();
|
8175
8191
|
}
|
8176
|
-
function v(
|
8177
|
-
var
|
8178
|
-
if (u(
|
8192
|
+
function v(y, V) {
|
8193
|
+
var O, k, N, R, D, K, B, F;
|
8194
|
+
if (u(V))
|
8179
8195
|
return Promise.resolve();
|
8180
|
-
const E = Number(
|
8181
|
-
return !isNil((
|
8196
|
+
const E = Number(V);
|
8197
|
+
return !isNil((O = n.value) == null ? void 0 : O.min) && ((k = n.value) == null ? void 0 : k.min_include_flg) === 1 && E < ((N = n.value) == null ? void 0 : N.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGTE", [(R = n.value) == null ? void 0 : R.min])) : !isNil((D = n.value) == null ? void 0 : D.min) && ((K = n.value) == null ? void 0 : K.min_include_flg) !== 1 && E <= ((B = n.value) == null ? void 0 : B.min) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForGT", [(F = n.value) == null ? void 0 : F.min])) : Promise.resolve();
|
8182
8198
|
}
|
8183
|
-
function T(
|
8184
|
-
var
|
8185
|
-
if (u(
|
8199
|
+
function T(y, V) {
|
8200
|
+
var O, k, N, R, D, K, B, F;
|
8201
|
+
if (u(V))
|
8186
8202
|
return Promise.resolve();
|
8187
|
-
const E = Number(
|
8188
|
-
return !isNil((
|
8203
|
+
const E = Number(V);
|
8204
|
+
return !isNil((O = n.value) == null ? void 0 : O.max) && ((k = n.value) == null ? void 0 : k.max_include_flg) === 1 && E > ((N = n.value) == null ? void 0 : N.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLTE", [(R = n.value) == null ? void 0 : R.max])) : !isNil((D = n.value) == null ? void 0 : D.max) && ((K = n.value) == null ? void 0 : K.max_include_flg) !== 1 && E >= ((B = n.value) == null ? void 0 : B.max) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForLT", [(F = n.value) == null ? void 0 : F.max])) : Promise.resolve();
|
8189
8205
|
}
|
8190
|
-
function C(
|
8191
|
-
var
|
8192
|
-
const E = String(
|
8193
|
-
return !isNil((
|
8206
|
+
function C(y, V) {
|
8207
|
+
var O, k, N;
|
8208
|
+
const E = String(V);
|
8209
|
+
return !isNil((O = n.value) == null ? void 0 : O.min_length) && E.length < ((k = n.value) == null ? void 0 : k.min_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMinLength", [(N = n.value) == null ? void 0 : N.min_length])) : Promise.resolve();
|
8194
8210
|
}
|
8195
|
-
function A(
|
8196
|
-
var
|
8197
|
-
const E = String(
|
8198
|
-
return !isNil((
|
8211
|
+
function A(y, V) {
|
8212
|
+
var O, k, N;
|
8213
|
+
const E = String(V);
|
8214
|
+
return !isNil((O = n.value) == null ? void 0 : O.max_length) && E.length > ((k = n.value) == null ? void 0 : k.max_length) ? Promise.reject(t.t("kg.KgFormItem.formValidationMessageForMaxLength", [(N = n.value) == null ? void 0 : N.max_length])) : Promise.resolve();
|
8199
8215
|
}
|
8200
8216
|
return {
|
8201
8217
|
formRules: o,
|
@@ -8259,30 +8275,30 @@ function useKgFormItemSelect(e) {
|
|
8259
8275
|
var T;
|
8260
8276
|
let v = KgVarUtil.parseRequestParamsToJSON((T = s.value) == null ? void 0 : T.cmd_prm);
|
8261
8277
|
return v = mapValues(v, (C) => {
|
8262
|
-
var
|
8278
|
+
var y, V;
|
8263
8279
|
let A = C;
|
8264
8280
|
if (typeof C == "string" && C.startsWith("{") && C.endsWith("}")) {
|
8265
|
-
let E = C.slice(1, -1),
|
8281
|
+
let E = C.slice(1, -1), O = "";
|
8266
8282
|
if (E.includes(".")) {
|
8267
8283
|
const k = E.split(".");
|
8268
|
-
E = k[0],
|
8284
|
+
E = k[0], O = k[1];
|
8269
8285
|
}
|
8270
|
-
n.value && E in n.value && (
|
8286
|
+
n.value && E in n.value && (O ? A = (V = (y = n.value[`${E}_obj`]) == null ? void 0 : y[O]) != null ? V : void 0 : A = n.value[E], A || (A = "__KG__FORM_ITEM_SELECT__PID__"));
|
8271
8287
|
}
|
8272
8288
|
return A;
|
8273
8289
|
}), v;
|
8274
8290
|
});
|
8275
8291
|
async function d() {
|
8276
|
-
var
|
8292
|
+
var V, E, O, k, N, R, D, K, B, F, $, M, L;
|
8277
8293
|
let v = ref([]);
|
8278
|
-
const T = (
|
8294
|
+
const T = (V = s.value) == null ? void 0 : V.data_source_type, C = (O = (E = s.value) == null ? void 0 : E.val_clm) != null ? O : "", A = (N = (k = s.value) == null ? void 0 : k.lbl_clm) != null ? N : "", y = ref({});
|
8279
8295
|
try {
|
8280
8296
|
u.value = !0;
|
8281
8297
|
const I = KgUtil.parseParams(b.value, null, r);
|
8282
8298
|
if (!await i.kgForm.store.emit(i.formID, "selectBeforeRequest", {
|
8283
|
-
context: (
|
8299
|
+
context: (R = t.kgContext) != null ? R : KG_FORM_CONTEXT.SUBMIT,
|
8284
8300
|
params: I,
|
8285
|
-
response:
|
8301
|
+
response: y,
|
8286
8302
|
varName: a
|
8287
8303
|
}))
|
8288
8304
|
switch (T) {
|
@@ -8298,7 +8314,7 @@ function useKgFormItemSelect(e) {
|
|
8298
8314
|
});
|
8299
8315
|
return;
|
8300
8316
|
}
|
8301
|
-
|
8317
|
+
y.value = await ((F = httpClient()) == null ? void 0 : F.request({
|
8302
8318
|
url: P,
|
8303
8319
|
method: x,
|
8304
8320
|
params: I,
|
@@ -8310,7 +8326,7 @@ function useKgFormItemSelect(e) {
|
|
8310
8326
|
break;
|
8311
8327
|
}
|
8312
8328
|
case KG__VAR_CONFIG_POSSIBILITY__DATA_SOURCE_TYPE.SQL: {
|
8313
|
-
|
8329
|
+
y.value = await ExecuteQuery({
|
8314
8330
|
params: {
|
8315
8331
|
id: (M = ($ = s.value) == null ? void 0 : $.id) != null ? M : ""
|
8316
8332
|
}
|
@@ -8318,15 +8334,15 @@ function useKgFormItemSelect(e) {
|
|
8318
8334
|
break;
|
8319
8335
|
}
|
8320
8336
|
}
|
8321
|
-
if (!isObjectLike(
|
8337
|
+
if (!isObjectLike(y.value))
|
8322
8338
|
v.value = [];
|
8323
8339
|
else
|
8324
8340
|
switch (!0) {
|
8325
|
-
case isArrayLike(
|
8326
|
-
v.value = m(
|
8341
|
+
case isArrayLike(y.value):
|
8342
|
+
v.value = m(y.value);
|
8327
8343
|
break;
|
8328
|
-
case (
|
8329
|
-
v.value = m(
|
8344
|
+
case (y.value && "total" in y.value && "records" in y.value):
|
8345
|
+
v.value = m(y.value.records);
|
8330
8346
|
break;
|
8331
8347
|
}
|
8332
8348
|
if (v.value.length > 0) {
|
@@ -8347,17 +8363,20 @@ function useKgFormItemSelect(e) {
|
|
8347
8363
|
isDeleting: i.isDeleting.value,
|
8348
8364
|
isUpdating: i.isUpdating.value,
|
8349
8365
|
varName: a
|
8350
|
-
}), c.value = v.value
|
8366
|
+
}), c.value = v.value.map((P, x) => ({
|
8367
|
+
...P,
|
8368
|
+
id: String(P.id || Date.now() + x)
|
8369
|
+
}));
|
8351
8370
|
} catch {
|
8352
8371
|
} finally {
|
8353
8372
|
u.value = !1;
|
8354
8373
|
}
|
8355
8374
|
}
|
8356
8375
|
function m(v) {
|
8357
|
-
var A,
|
8376
|
+
var A, y, V, E, O;
|
8358
8377
|
if (!v)
|
8359
8378
|
return [];
|
8360
|
-
const T = (
|
8379
|
+
const T = (y = (A = s.value) == null ? void 0 : A.val_clm) != null ? y : "", C = (E = (V = s.value) == null ? void 0 : V.val_data_type) != null ? E : KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.DEFAULT;
|
8361
8380
|
switch (C) {
|
8362
8381
|
case KG__VAR_CONFIG_POSSIBILITY__VALUE_DATA_TYPE.STRING:
|
8363
8382
|
v.forEach((k) => {
|
@@ -8389,10 +8408,10 @@ function useKgFormItemSelect(e) {
|
|
8389
8408
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX_GROUP:
|
8390
8409
|
{
|
8391
8410
|
const k = l;
|
8392
|
-
if ((
|
8411
|
+
if ((O = k.value) != null && O.excludeValues)
|
8393
8412
|
return v.filter((N) => {
|
8394
|
-
var
|
8395
|
-
return !((
|
8413
|
+
var R;
|
8414
|
+
return !((R = k.value.excludeValues) != null && R.includes(N[T]));
|
8396
8415
|
});
|
8397
8416
|
}
|
8398
8417
|
break;
|
@@ -8437,9 +8456,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8437
8456
|
}), watch([() => e.value, c], ([T, C]) => {
|
8438
8457
|
const A = get(T, "length", 0);
|
8439
8458
|
if (A > 0 && C.length > 0) {
|
8440
|
-
const
|
8441
|
-
if (
|
8442
|
-
r("update:value",
|
8459
|
+
const y = intersection$1(T, C == null ? void 0 : C.map((V) => V[u.value]));
|
8460
|
+
if (y.length < A) {
|
8461
|
+
r("update:value", y);
|
8443
8462
|
return;
|
8444
8463
|
}
|
8445
8464
|
}
|
@@ -8462,8 +8481,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8462
8481
|
!((T = o.value) != null && T.id) || (await g(), r("update:value", intersection$1((C = c.value) == null ? void 0 : C.map((A) => A[u.value]), e.value)));
|
8463
8482
|
}
|
8464
8483
|
function m(T) {
|
8465
|
-
var C, A,
|
8466
|
-
T.target.checked ? v((A = (C = c.value) == null ? void 0 : C.map((
|
8484
|
+
var C, A, y;
|
8485
|
+
T.target.checked ? v((A = (C = c.value) == null ? void 0 : C.map((V) => V[u.value])) != null ? A : []) : v([]), b.value = !1, (y = i.value) == null || y.validate(e.kgVarName);
|
8467
8486
|
}
|
8468
8487
|
function v(T) {
|
8469
8488
|
var C, A;
|
@@ -8497,17 +8516,17 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
8497
8516
|
default: () => [createVNode(Row, {
|
8498
8517
|
gutter: 12
|
8499
8518
|
}, _isSlot$c(C = c.value.map((A) => {
|
8500
|
-
var
|
8519
|
+
var y, V;
|
8501
8520
|
return createVNode(Col, {
|
8502
|
-
span: (
|
8521
|
+
span: (V = (y = s.value) == null ? void 0 : y.span) != null ? V : 24
|
8503
8522
|
}, {
|
8504
8523
|
default: () => [createVNode(Checkbox, {
|
8505
8524
|
"kg-value": A[u.value],
|
8506
8525
|
value: A[u.value]
|
8507
8526
|
}, {
|
8508
8527
|
default: () => {
|
8509
|
-
var E,
|
8510
|
-
return [A[(
|
8528
|
+
var E, O;
|
8529
|
+
return [A[(O = (E = o.value) == null ? void 0 : E.lbl_clm) != null ? O : ""]];
|
8511
8530
|
}
|
8512
8531
|
})]
|
8513
8532
|
});
|
@@ -8787,9 +8806,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8787
8806
|
} = useKgFormItemSelect({
|
8788
8807
|
props: e
|
8789
8808
|
}), d = computed(() => {
|
8790
|
-
var A,
|
8809
|
+
var A, y;
|
8791
8810
|
let C = !0;
|
8792
|
-
return e.kgAllowClear !== void 0 ? C = e.kgAllowClear : isNil((A = s.value) == null ? void 0 : A.allowClear) || (C = (
|
8811
|
+
return e.kgAllowClear !== void 0 ? C = e.kgAllowClear : isNil((A = s.value) == null ? void 0 : A.allowClear) || (C = (y = s.value) == null ? void 0 : y.allowClear), C;
|
8793
8812
|
});
|
8794
8813
|
watch(b, () => {
|
8795
8814
|
m();
|
@@ -8802,7 +8821,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8802
8821
|
switch (await _(), r("kgSelectDatasChange", g.value), e.kgMode) {
|
8803
8822
|
case "multiple": {
|
8804
8823
|
if (Array.isArray(e.value)) {
|
8805
|
-
const A = e.value.filter((
|
8824
|
+
const A = e.value.filter((y) => g.value.find((V) => V[l.value] === y));
|
8806
8825
|
A.length > 0 ? r("update:value", A) : r("update:value", []);
|
8807
8826
|
}
|
8808
8827
|
break;
|
@@ -8813,13 +8832,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8813
8832
|
}
|
8814
8833
|
}
|
8815
8834
|
async function v(C) {
|
8816
|
-
var A,
|
8835
|
+
var A, y, V, E, O, k;
|
8817
8836
|
switch (e.kgMode) {
|
8818
8837
|
case "multiple": {
|
8819
8838
|
if (Array.isArray(C)) {
|
8820
|
-
const N = (A = toRaw(g.value.filter((
|
8839
|
+
const N = (A = toRaw(g.value.filter((R) => C.includes(R[l.value])))) != null ? A : null;
|
8821
8840
|
r("kgSelectChange", N), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
8822
|
-
context: (
|
8841
|
+
context: (y = e.kgContext) != null ? y : KG_FORM_CONTEXT.SUBMIT,
|
8823
8842
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
8824
8843
|
isCopying: i.isCopying.value,
|
8825
8844
|
isCreating: i.isCreating.value,
|
@@ -8829,15 +8848,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8829
8848
|
model: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
8830
8849
|
rows: N,
|
8831
8850
|
values: C,
|
8832
|
-
var_nam: (
|
8851
|
+
var_nam: (V = e.kgVarName) != null ? V : ""
|
8833
8852
|
}), a.value[`${e.kgVarName}_obj`] = N;
|
8834
8853
|
}
|
8835
8854
|
break;
|
8836
8855
|
}
|
8837
8856
|
default: {
|
8838
|
-
const N = (E = toRaw(g.value.find((
|
8857
|
+
const N = (E = toRaw(g.value.find((R) => R[l.value] === C))) != null ? E : null;
|
8839
8858
|
r("kgSelectChange", N), await i.kgForm.store.emit(i.kgForm.formID, "selectChange", {
|
8840
|
-
context: (
|
8859
|
+
context: (O = e.kgContext) != null ? O : KG_FORM_CONTEXT.SUBMIT,
|
8841
8860
|
formModel: e.kgContext === KG_FORM_CONTEXT.SEARCH ? i.kgSearch.formModel : i.kgSubmit.formModel,
|
8842
8861
|
isCopying: i.isCopying.value,
|
8843
8862
|
isCreating: i.isCreating.value,
|
@@ -8854,7 +8873,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8854
8873
|
}
|
8855
8874
|
}
|
8856
8875
|
function T(C) {
|
8857
|
-
var A,
|
8876
|
+
var A, y;
|
8858
8877
|
r("update:value", C), r("kgChange", C), i.kgForm.store.emit(i.kgForm.formID, "change", {
|
8859
8878
|
context: (A = e.kgContext) != null ? A : KG_FORM_CONTEXT.SUBMIT,
|
8860
8879
|
isCopying: i.isCopying.value,
|
@@ -8862,7 +8881,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8862
8881
|
isDeleting: i.isDeleting.value,
|
8863
8882
|
isUpdating: i.isUpdating.value,
|
8864
8883
|
value: C,
|
8865
|
-
variableName: (
|
8884
|
+
variableName: (y = e.kgVarName) != null ? y : ""
|
8866
8885
|
});
|
8867
8886
|
}
|
8868
8887
|
return () => {
|
@@ -8883,12 +8902,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
8883
8902
|
placeholder: e.kgPlaceholder,
|
8884
8903
|
showArrow: !0,
|
8885
8904
|
showSearch: !0,
|
8886
|
-
filterOption: (A,
|
8905
|
+
filterOption: (A, y) => (y == null ? void 0 : y.value) !== null && (y == null ? void 0 : y.value) !== void 0 && String(y.value).toLowerCase().includes(A.toLowerCase()) || (y == null ? void 0 : y.label) !== null && (y == null ? void 0 : y.label) !== void 0 && String(y.label).toLowerCase().includes(A.toLowerCase()),
|
8887
8906
|
dropdownClassName: e.kgMode === "multiple" ? "kg-form-item--select--dropdown kg-form-item--select-multi--dropdown" : "kg-form-item--select--dropdown",
|
8888
8907
|
onChange: v
|
8889
8908
|
}, {
|
8890
8909
|
default: () => g.value.map((A) => createVNode(Select.Option, {
|
8891
8910
|
"kg-value": A[l.value],
|
8911
|
+
key: A.id,
|
8892
8912
|
title: A[u.value],
|
8893
8913
|
value: A[l.value],
|
8894
8914
|
label: A[u.value]
|
@@ -9134,7 +9154,7 @@ const KgFormItem = defineComponent({
|
|
9134
9154
|
paddingLeft: `${I}px !important`,
|
9135
9155
|
paddingRight: `${I}px !important`
|
9136
9156
|
}), L;
|
9137
|
-
}),
|
9157
|
+
}), y = computed(() => {
|
9138
9158
|
var L, I;
|
9139
9159
|
let M = "kg-form-item";
|
9140
9160
|
switch (l.value && (M += " kg-form-item-lookup"), C.value && (M += " kg-form-item--col-fixed"), e.kgContext) {
|
@@ -9149,7 +9169,7 @@ const KgFormItem = defineComponent({
|
|
9149
9169
|
}
|
9150
9170
|
}
|
9151
9171
|
return M;
|
9152
|
-
}),
|
9172
|
+
}), V = computed(() => {
|
9153
9173
|
var L;
|
9154
9174
|
const M = {
|
9155
9175
|
...e,
|
@@ -9209,7 +9229,7 @@ const KgFormItem = defineComponent({
|
|
9209
9229
|
}
|
9210
9230
|
}
|
9211
9231
|
return !0;
|
9212
|
-
}),
|
9232
|
+
}), O = computed(() => {
|
9213
9233
|
var M, L, I;
|
9214
9234
|
if (!((M = o.value) != null && M.tip))
|
9215
9235
|
return !1;
|
@@ -9228,7 +9248,7 @@ const KgFormItem = defineComponent({
|
|
9228
9248
|
}
|
9229
9249
|
return !1;
|
9230
9250
|
}), k = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), N = ref(null);
|
9231
|
-
function
|
9251
|
+
function R() {
|
9232
9252
|
return b.value ? null : createVNode(Form.Item, {
|
9233
9253
|
name: e.kgVarName,
|
9234
9254
|
rules: _.value,
|
@@ -9244,7 +9264,7 @@ const KgFormItem = defineComponent({
|
|
9244
9264
|
return t.control({
|
9245
9265
|
frm_id: s.formID,
|
9246
9266
|
varName: e.kgVarName,
|
9247
|
-
props:
|
9267
|
+
props: V,
|
9248
9268
|
model: a,
|
9249
9269
|
varConfigControl: u,
|
9250
9270
|
varProfileDetail: c,
|
@@ -9252,37 +9272,37 @@ const KgFormItem = defineComponent({
|
|
9252
9272
|
});
|
9253
9273
|
switch (d.value) {
|
9254
9274
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.INPUT_NUMBER:
|
9255
|
-
return createVNode(KgFormItemInputNumber,
|
9275
|
+
return createVNode(KgFormItemInputNumber, V.value, null);
|
9256
9276
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.TEXT_AREA:
|
9257
|
-
return createVNode(KgFormItemTextArea,
|
9277
|
+
return createVNode(KgFormItemTextArea, V.value, null);
|
9258
9278
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT:
|
9259
|
-
return createVNode(KgFormItemSelect,
|
9279
|
+
return createVNode(KgFormItemSelect, V.value, null);
|
9260
9280
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SELECT_MULTIPLE:
|
9261
|
-
return createVNode(KgFormItemSelect,
|
9281
|
+
return createVNode(KgFormItemSelect, V.value, null);
|
9262
9282
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.SWITCH:
|
9263
|
-
return createVNode(KgFormItemSwitch,
|
9283
|
+
return createVNode(KgFormItemSwitch, V.value, null);
|
9264
9284
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX:
|
9265
|
-
return createVNode(KgFormItemCheckbox,
|
9285
|
+
return createVNode(KgFormItemCheckbox, V.value, null);
|
9266
9286
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.CHECKBOX_GROUP:
|
9267
|
-
return createVNode(KgFormItemCheckboxGroup,
|
9287
|
+
return createVNode(KgFormItemCheckboxGroup, V.value, null);
|
9268
9288
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.RADIO_GROUP:
|
9269
|
-
return createVNode(KgFormItemRadioGroup,
|
9289
|
+
return createVNode(KgFormItemRadioGroup, V.value, null);
|
9270
9290
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE:
|
9271
|
-
return createVNode(KgFormItemDate,
|
9291
|
+
return createVNode(KgFormItemDate, V.value, null);
|
9272
9292
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATE_RANGE:
|
9273
|
-
return createVNode(KgFormItemDateRange,
|
9293
|
+
return createVNode(KgFormItemDateRange, V.value, null);
|
9274
9294
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME:
|
9275
|
-
return createVNode(KgFormItemDate,
|
9295
|
+
return createVNode(KgFormItemDate, V.value, null);
|
9276
9296
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_TIME_RANGE:
|
9277
|
-
return createVNode(KgFormItemDateRange,
|
9297
|
+
return createVNode(KgFormItemDateRange, V.value, null);
|
9278
9298
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME:
|
9279
|
-
return createVNode(KgFormItemDate,
|
9299
|
+
return createVNode(KgFormItemDate, V.value, null);
|
9280
9300
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.DATE_DATETIME_RANGE:
|
9281
|
-
return createVNode(KgFormItemDateRange,
|
9301
|
+
return createVNode(KgFormItemDateRange, V.value, null);
|
9282
9302
|
case KG__VAR_CONFIG_CONTROL__CONTROL_TYPE.IMAGE:
|
9283
|
-
return createVNode(KgFormItemImage,
|
9303
|
+
return createVNode(KgFormItemImage, V.value, null);
|
9284
9304
|
default:
|
9285
|
-
return createVNode(KgFormItemInput,
|
9305
|
+
return createVNode(KgFormItemInput, V.value, null);
|
9286
9306
|
}
|
9287
9307
|
}
|
9288
9308
|
function K() {
|
@@ -9328,7 +9348,7 @@ const KgFormItem = defineComponent({
|
|
9328
9348
|
innerHTML: (U = (I = o.value) == null ? void 0 : I.tip) != null ? U : ""
|
9329
9349
|
}, null);
|
9330
9350
|
}
|
9331
|
-
})]),
|
9351
|
+
})]), O.value && createVNode("div", {
|
9332
9352
|
class: "tip",
|
9333
9353
|
innerHTML: (L = (M = o.value) == null ? void 0 : M.tip) != null ? L : ""
|
9334
9354
|
}, null)]) : null;
|
@@ -9346,7 +9366,7 @@ const KgFormItem = defineComponent({
|
|
9346
9366
|
return !t.controlRight || !isFunction$2(t.controlRight) ? null : t.controlRight({
|
9347
9367
|
frm_id: s.formID,
|
9348
9368
|
varName: e.kgVarName,
|
9349
|
-
props:
|
9369
|
+
props: V,
|
9350
9370
|
model: a,
|
9351
9371
|
varConfigControl: u,
|
9352
9372
|
varProfileDetail: c,
|
@@ -9362,10 +9382,10 @@ const KgFormItem = defineComponent({
|
|
9362
9382
|
"kg-lkp_id": (L = l.value) == null ? void 0 : L.lkp_id,
|
9363
9383
|
"kg-ret_fld": (I = l.value) == null ? void 0 : I.ret_fld,
|
9364
9384
|
ref: N,
|
9365
|
-
class:
|
9385
|
+
class: y.value,
|
9366
9386
|
span: T.value,
|
9367
9387
|
style: A.value
|
9368
|
-
}, _isSlot$a(M =
|
9388
|
+
}, _isSlot$a(M = R()) ? M : {
|
9369
9389
|
default: () => [M]
|
9370
9390
|
});
|
9371
9391
|
};
|
@@ -9772,11 +9792,11 @@ const getProps$B = () => ({
|
|
9772
9792
|
_useResizeObserver$1(T);
|
9773
9793
|
const {
|
9774
9794
|
title: C
|
9775
|
-
} = _useTitle(), A = computed(() => s.value ? SUBMIT_DEFAULT_MIN_WIDTH :
|
9776
|
-
getClass:
|
9795
|
+
} = _useTitle(), A = computed(() => s.value ? SUBMIT_DEFAULT_MIN_WIDTH : O.value), y = computed(() => A.value !== 0), {
|
9796
|
+
getClass: V,
|
9777
9797
|
getWrapClass: E
|
9778
9798
|
} = _useClass(e), {
|
9779
|
-
getDefaultWidth:
|
9799
|
+
getDefaultWidth: O
|
9780
9800
|
} = _useDefaultWidth(), k = computed(() => {
|
9781
9801
|
var w, G, H;
|
9782
9802
|
switch (i.kgSubmit.currentVarSubmitConfig$Layout.value) {
|
@@ -9812,11 +9832,11 @@ const getProps$B = () => ({
|
|
9812
9832
|
default:
|
9813
9833
|
return;
|
9814
9834
|
}
|
9815
|
-
}),
|
9835
|
+
}), R = computed(() => {
|
9816
9836
|
var w, G;
|
9817
9837
|
return (w = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) != null && w.textVarName ? i.t((G = i.kgSubmit.currentVarSubmitConfig$Props.value.okButton) == null ? void 0 : G.textVarName).value : n.t("kg.ok");
|
9818
9838
|
}), D = ref([(q = i.kgSubmit.currentVarSubmitDetailSectionsForVisible.value[0]) != null ? q : ""]);
|
9819
|
-
watch(
|
9839
|
+
watch(y, (w, G) => {
|
9820
9840
|
w === !0 && K(), G === !0 && w === !1 && B();
|
9821
9841
|
}, {
|
9822
9842
|
immediate: !0
|
@@ -10249,7 +10269,7 @@ const getProps$B = () => ({
|
|
10249
10269
|
danger: !!i.isDeleting.value,
|
10250
10270
|
onClick: $
|
10251
10271
|
}, {
|
10252
|
-
default: () => [
|
10272
|
+
default: () => [R.value]
|
10253
10273
|
})]);
|
10254
10274
|
}
|
10255
10275
|
function le() {
|
@@ -10265,13 +10285,13 @@ const getProps$B = () => ({
|
|
10265
10285
|
i.kgSubmit.store.dispose(i.formID), await B();
|
10266
10286
|
}), () => createVNode(KgModal, {
|
10267
10287
|
"kg-form_id": i.formID,
|
10268
|
-
visible:
|
10288
|
+
visible: y.value,
|
10269
10289
|
mask: i.kgSubmit.currentVarSubmitConfig$DisplayType.value !== KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE,
|
10270
10290
|
maskClosable: !1,
|
10271
10291
|
keyboard: !1,
|
10272
10292
|
destroyOnClose: !0,
|
10273
10293
|
width: A.value,
|
10274
|
-
class:
|
10294
|
+
class: V.value,
|
10275
10295
|
wrapClassName: E.value,
|
10276
10296
|
kgFullHeight: !1,
|
10277
10297
|
kgMinWidth: _.value,
|
@@ -12796,7 +12816,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12796
12816
|
n.kgSearch.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
12797
12817
|
dft_val: a.formID
|
12798
12818
|
}), !1)), n.kgSubmit.onOpen(async () => {
|
12799
|
-
var T, C, A,
|
12819
|
+
var T, C, A, y, V, E, O;
|
12800
12820
|
const v = a.store.getSystemVarGridDetails(a.formID);
|
12801
12821
|
switch (i.value = v ? cloneDeep(toRaw(v)) : [], !0) {
|
12802
12822
|
case n.isCreating.value: {
|
@@ -12813,17 +12833,17 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12813
12833
|
id: (C = n.kgTable.selectedRow.value) == null ? void 0 : C.id
|
12814
12834
|
}
|
12815
12835
|
});
|
12816
|
-
i.value = i.value.map((
|
12836
|
+
i.value = i.value.map((R) => {
|
12817
12837
|
var K;
|
12818
|
-
const D = (K = k == null ? void 0 : k.varGridDetails) == null ? void 0 : K.find((B) => B.var_nam ===
|
12838
|
+
const D = (K = k == null ? void 0 : k.varGridDetails) == null ? void 0 : K.find((B) => B.var_nam === R.var_nam);
|
12819
12839
|
return D ? {
|
12820
|
-
...
|
12840
|
+
...R,
|
12821
12841
|
...D,
|
12822
|
-
id:
|
12823
|
-
} :
|
12842
|
+
id: R.id
|
12843
|
+
} : R;
|
12824
12844
|
});
|
12825
|
-
const N = (
|
12826
|
-
s.value = i.value.filter((
|
12845
|
+
const N = (y = (A = k == null ? void 0 : k.varGridDetails) == null ? void 0 : A.map((R) => R.var_nam)) != null ? y : [];
|
12846
|
+
s.value = i.value.filter((R) => N.includes(R.var_nam)).map((R) => R.id);
|
12827
12847
|
} catch (k) {
|
12828
12848
|
throw k;
|
12829
12849
|
} finally {
|
@@ -12836,7 +12856,7 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12836
12856
|
}
|
12837
12857
|
switch (!0) {
|
12838
12858
|
case n.isCopying.value: {
|
12839
|
-
n.kgSubmit.formModel.value && (n.kgSubmit.formModel.value.grd_var_nam = ((
|
12859
|
+
n.kgSubmit.formModel.value && (n.kgSubmit.formModel.value.grd_var_nam = ((V = n.kgSubmit.formModel.value.grd_var_nam) != null ? V : "") + "_COPY", n.kgSubmit.formModel.value.grd_var_nam_dsc = ((O = (E = n.kgSubmit.formModel.value.grd_var_nam_dsc) != null ? E : n.kgSubmit.formModel.value.grd_var_nam) != null ? O : "") + "_COPY");
|
12840
12860
|
break;
|
12841
12861
|
}
|
12842
12862
|
}
|
@@ -12911,12 +12931,12 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12911
12931
|
filteredItems: T,
|
12912
12932
|
selectedKeys: C,
|
12913
12933
|
disabled: A,
|
12914
|
-
onItemSelectAll:
|
12915
|
-
onItemSelect:
|
12934
|
+
onItemSelectAll: y,
|
12935
|
+
onItemSelect: V
|
12916
12936
|
}) => {
|
12917
|
-
const E = T.sort((
|
12918
|
-
var N,
|
12919
|
-
return ((N =
|
12937
|
+
const E = T.sort((O, k) => {
|
12938
|
+
var N, R;
|
12939
|
+
return ((N = O.srtseq) != null ? N : 0) - ((R = k.srtseq) != null ? R : 0);
|
12920
12940
|
});
|
12921
12941
|
return o.value = E, createVNode(Table, {
|
12922
12942
|
pagination: !1,
|
@@ -12929,17 +12949,17 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12929
12949
|
columns: v === "left" ? l() : u(),
|
12930
12950
|
rowKey: "id",
|
12931
12951
|
dataSource: E,
|
12932
|
-
customRow: (
|
12952
|
+
customRow: (O) => {
|
12933
12953
|
let k = {
|
12934
|
-
onClick: (N) => b(N,
|
12954
|
+
onClick: (N) => b(N, O, v, C)
|
12935
12955
|
};
|
12936
|
-
return v === "right" && (k["kg-host-frm_id"] = a.formID, k["kg-var_name"] =
|
12956
|
+
return v === "right" && (k["kg-host-frm_id"] = a.formID, k["kg-var_name"] = O.var_nam), k;
|
12937
12957
|
},
|
12938
12958
|
rowSelection: _({
|
12939
12959
|
disabled: A,
|
12940
12960
|
selectedKeys: C,
|
12941
|
-
onItemSelectAll:
|
12942
|
-
onItemSelect:
|
12961
|
+
onItemSelectAll: y,
|
12962
|
+
onItemSelect: V
|
12943
12963
|
})
|
12944
12964
|
}, null);
|
12945
12965
|
}
|
@@ -12952,19 +12972,19 @@ const getProps$z = () => ({}), KgVarConfigModalTableVarGridMaster = defineCompon
|
|
12952
12972
|
onItemSelectAll: C,
|
12953
12973
|
onItemSelect: A
|
12954
12974
|
}) => ({
|
12955
|
-
getCheckboxProps: (
|
12956
|
-
disabled: v ||
|
12975
|
+
getCheckboxProps: (y) => ({
|
12976
|
+
disabled: v || y.disabled
|
12957
12977
|
}),
|
12958
|
-
onSelectAll(
|
12959
|
-
const E =
|
12960
|
-
key:
|
12961
|
-
}) =>
|
12962
|
-
C(E,
|
12978
|
+
onSelectAll(y, V) {
|
12979
|
+
const E = V.filter((O) => !O.disabled).map(({
|
12980
|
+
key: O
|
12981
|
+
}) => O);
|
12982
|
+
C(E, y);
|
12963
12983
|
},
|
12964
12984
|
onSelect({
|
12965
|
-
key:
|
12966
|
-
},
|
12967
|
-
A(
|
12985
|
+
key: y
|
12986
|
+
}, V) {
|
12987
|
+
A(y, V);
|
12968
12988
|
},
|
12969
12989
|
selectedRowKeys: T,
|
12970
12990
|
columnWidth: 32
|
@@ -13162,24 +13182,24 @@ const getProps$w = () => ({
|
|
13162
13182
|
class: "columns"
|
13163
13183
|
}, [createVNode(Input, {
|
13164
13184
|
value: l.value,
|
13165
|
-
"onUpdate:value": (
|
13185
|
+
"onUpdate:value": (O) => l.value = O,
|
13166
13186
|
allowClear: !0
|
13167
13187
|
}, null), createVNode("ul", {
|
13168
13188
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
13169
|
-
}, [(E = n.currentVarGridDetails.value) == null ? void 0 : E.map((
|
13189
|
+
}, [(E = n.currentVarGridDetails.value) == null ? void 0 : E.map((O) => createVNode("li", {
|
13170
13190
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
13171
13191
|
onClick: (k) => {
|
13172
|
-
k.preventDefault(), k.stopPropagation(), b(
|
13192
|
+
k.preventDefault(), k.stopPropagation(), b(O);
|
13173
13193
|
},
|
13174
13194
|
style: {
|
13175
|
-
display: i(
|
13195
|
+
display: i(O, l.value) ? "flex" : "none"
|
13176
13196
|
},
|
13177
|
-
"kg-var_name":
|
13197
|
+
"kg-var_name": O.var_nam
|
13178
13198
|
}, [createVNode(Checkbox, {
|
13179
|
-
checked:
|
13199
|
+
checked: O.vis_flg === 1,
|
13180
13200
|
disabled: !0
|
13181
13201
|
}, {
|
13182
|
-
default: () => [createVNode("pre", null, [n.t(
|
13202
|
+
default: () => [createVNode("pre", null, [n.t(O.var_nam).value])]
|
13183
13203
|
}), createVNode(HolderOutlined$1, {
|
13184
13204
|
onClick: (k) => {
|
13185
13205
|
k.preventDefault(), k.stopPropagation();
|
@@ -13197,12 +13217,12 @@ const getProps$w = () => ({
|
|
13197
13217
|
}, {
|
13198
13218
|
default: () => {
|
13199
13219
|
var k;
|
13200
|
-
let E,
|
13220
|
+
let E, O;
|
13201
13221
|
return createVNode(Fragment, null, [(k = n.varGridMasters.value) == null ? void 0 : k.map((N) => {
|
13202
|
-
var
|
13222
|
+
var R;
|
13203
13223
|
return createVNode(Menu.Item, {
|
13204
13224
|
key: N.id,
|
13205
|
-
class: N.id === ((
|
13225
|
+
class: N.id === ((R = n.currentVarGridMaster.value) == null ? void 0 : R.id) ? "selected" : "",
|
13206
13226
|
"kg-var_name": N.grd_var_nam,
|
13207
13227
|
onClick: () => d(N)
|
13208
13228
|
}, {
|
@@ -13225,22 +13245,22 @@ const getProps$w = () => ({
|
|
13225
13245
|
fontsize: "18px"
|
13226
13246
|
}
|
13227
13247
|
}, null)
|
13228
|
-
}, _isSlot$7(
|
13229
|
-
default: () => [
|
13248
|
+
}, _isSlot$7(O = a.t("kg.KgTable.saveVarGridMasterAs")) ? O : {
|
13249
|
+
default: () => [O]
|
13230
13250
|
})]);
|
13231
13251
|
},
|
13232
13252
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13233
13253
|
});
|
13234
13254
|
}
|
13235
13255
|
function A() {
|
13236
|
-
var E,
|
13237
|
-
return ((k = (
|
13256
|
+
var E, O, k;
|
13257
|
+
return ((k = (O = (E = a.option.value.KgTable) == null ? void 0 : E.Setting) == null ? void 0 : O.rowHeight) == null ? void 0 : k.on) !== !0 ? null : createVNode(Menu.SubMenu, {
|
13238
13258
|
key: "row-height",
|
13239
13259
|
title: a.t("kg.KgTable.rowHeight"),
|
13240
13260
|
popupClassName: "kg-table--setting--submenu-popup--row-height"
|
13241
13261
|
}, {
|
13242
13262
|
default: () => {
|
13243
|
-
let N,
|
13263
|
+
let N, R, D;
|
13244
13264
|
return createVNode(Fragment, null, [createVNode(Menu.Item, {
|
13245
13265
|
key: "L",
|
13246
13266
|
class: u.value === "L" ? "selected" : "",
|
@@ -13251,8 +13271,8 @@ const getProps$w = () => ({
|
|
13251
13271
|
key: "M",
|
13252
13272
|
class: u.value === "M" ? "selected" : "",
|
13253
13273
|
onClick: () => n.kgTable.store.setRowHeight(n.formID, "M")
|
13254
|
-
}, _isSlot$7(
|
13255
|
-
default: () => [
|
13274
|
+
}, _isSlot$7(R = a.t("kg.KgTable.rowHeightM")) ? R : {
|
13275
|
+
default: () => [R]
|
13256
13276
|
}), createVNode(Menu.Item, {
|
13257
13277
|
key: "H",
|
13258
13278
|
class: u.value === "H" ? "selected" : "",
|
@@ -13264,7 +13284,7 @@ const getProps$w = () => ({
|
|
13264
13284
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13265
13285
|
});
|
13266
13286
|
}
|
13267
|
-
function
|
13287
|
+
function y() {
|
13268
13288
|
return createVNode(Menu.SubMenu, {
|
13269
13289
|
key: "other",
|
13270
13290
|
title: a.t("kg.KgTable.other"),
|
@@ -13290,10 +13310,10 @@ const getProps$w = () => ({
|
|
13290
13310
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
13291
13311
|
});
|
13292
13312
|
}
|
13293
|
-
function
|
13294
|
-
var
|
13313
|
+
function V() {
|
13314
|
+
var O;
|
13295
13315
|
let E;
|
13296
|
-
return (
|
13316
|
+
return (O = n.formID) != null && O.startsWith("KgVarConfig.") ? null : createVNode(Menu.Item, {
|
13297
13317
|
key: "config-var-grid-master",
|
13298
13318
|
onClick: () => {
|
13299
13319
|
c.value.visible = !0;
|
@@ -13315,7 +13335,7 @@ const getProps$w = () => ({
|
|
13315
13335
|
"onUpdate:openKeys": (E) => s.value = E,
|
13316
13336
|
selectable: !1
|
13317
13337
|
}, {
|
13318
|
-
default: () => [T(), A(), C(),
|
13338
|
+
default: () => [T(), A(), C(), y(), V()]
|
13319
13339
|
})
|
13320
13340
|
}), c.value.visible && createVNode(KgTableSettingConfigModal, {
|
13321
13341
|
visible: c.value.visible,
|
@@ -13822,14 +13842,14 @@ function _useColumns(e) {
|
|
13822
13842
|
customRender: ({
|
13823
13843
|
index: A
|
13824
13844
|
}) => A + 1
|
13825
|
-
}, ...(C = d == null ? void 0 : d.map((A,
|
13845
|
+
}, ...(C = d == null ? void 0 : d.map((A, y) => {
|
13826
13846
|
var F, $, M;
|
13827
|
-
const
|
13847
|
+
const V = A.var_nam;
|
13828
13848
|
function E() {
|
13829
13849
|
return A.width === "auto" ? "auto" : Number(A.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
13830
13850
|
}
|
13831
|
-
function
|
13832
|
-
return r.t(
|
13851
|
+
function O() {
|
13852
|
+
return r.t(V).value;
|
13833
13853
|
}
|
13834
13854
|
function k() {
|
13835
13855
|
if (A.fix_left_flg === 1)
|
@@ -13841,27 +13861,27 @@ function _useColumns(e) {
|
|
13841
13861
|
var L, I, U, P;
|
13842
13862
|
return !(A.ord_flg !== 1 || (I = (L = t == null ? void 0 : t.value) == null ? void 0 : L.KgTable) != null && I.kgDisabled || isNil((P = (U = t == null ? void 0 : t.value) == null ? void 0 : U.KgTable) == null ? void 0 : P.kgDisabled) && e.kgDisabled || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || g.length <= 0);
|
13843
13863
|
}
|
13844
|
-
function
|
13864
|
+
function R() {
|
13845
13865
|
var L, I, U, P, x, W;
|
13846
13866
|
if (((I = (L = c.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : I.on) === !0 && A.filter_flag === 1 && !((P = (U = t == null ? void 0 : t.value) == null ? void 0 : U.KgTable) != null && P.kgDisabled) && !(isNil((W = (x = t == null ? void 0 : t.value) == null ? void 0 : x.KgTable) == null ? void 0 : W.kgDisabled) && e.kgDisabled) && !(r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value) && !(g.length <= 0))
|
13847
13867
|
return uniqBy(g.map((z) => {
|
13848
13868
|
var J;
|
13849
13869
|
return {
|
13850
|
-
value: (J = z == null ? void 0 : z[
|
13870
|
+
value: (J = z == null ? void 0 : z[V]) != null ? J : "",
|
13851
13871
|
text: a({
|
13852
13872
|
column: {
|
13853
|
-
dataIndex:
|
13873
|
+
dataIndex: V
|
13854
13874
|
},
|
13855
|
-
index:
|
13875
|
+
index: y,
|
13856
13876
|
record: z,
|
13857
|
-
value: z == null ? void 0 : z[
|
13877
|
+
value: z == null ? void 0 : z[V]
|
13858
13878
|
}, KG_TABLE_CELL_CONTEXT.TABLE_FILTER)
|
13859
13879
|
};
|
13860
13880
|
}), "value");
|
13861
13881
|
}
|
13862
13882
|
function D() {
|
13863
13883
|
var L, I, U;
|
13864
|
-
return ((I = (L = c.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : I.on) !== !0 ? null : ((U = n.value) == null ? void 0 : U[
|
13884
|
+
return ((I = (L = c.option.value.KgTable) == null ? void 0 : L.filter) == null ? void 0 : I.on) !== !0 ? null : ((U = n.value) == null ? void 0 : U[V]) || null;
|
13865
13885
|
}
|
13866
13886
|
function K() {
|
13867
13887
|
return ["left", "center", "right"].includes(A.align || "") ? A.align : "left";
|
@@ -13870,21 +13890,21 @@ function _useColumns(e) {
|
|
13870
13890
|
switch (A.ord) {
|
13871
13891
|
case 0:
|
13872
13892
|
(!i.value.field || !i.value.order) && (i.value = {
|
13873
|
-
field:
|
13893
|
+
field: V,
|
13874
13894
|
order: "ascend"
|
13875
13895
|
});
|
13876
13896
|
break;
|
13877
13897
|
case 1:
|
13878
13898
|
(!i.value.field || !i.value.order) && (i.value = {
|
13879
|
-
field:
|
13899
|
+
field: V,
|
13880
13900
|
order: "descend"
|
13881
13901
|
});
|
13882
13902
|
break;
|
13883
13903
|
}
|
13884
13904
|
return {
|
13885
|
-
key:
|
13886
|
-
dataIndex:
|
13887
|
-
title:
|
13905
|
+
key: V,
|
13906
|
+
dataIndex: V,
|
13907
|
+
title: O(),
|
13888
13908
|
width: B,
|
13889
13909
|
resizable: typeof B == "number",
|
13890
13910
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
@@ -13892,24 +13912,24 @@ function _useColumns(e) {
|
|
13892
13912
|
align: K(),
|
13893
13913
|
fixed: k(),
|
13894
13914
|
sorter: N(),
|
13895
|
-
sortOrder: ((F = i.value) == null ? void 0 : F.field) ===
|
13915
|
+
sortOrder: ((F = i.value) == null ? void 0 : F.field) === V && (M = ($ = i.value) == null ? void 0 : $.order) != null ? M : null,
|
13896
13916
|
filteredValue: D(),
|
13897
|
-
filters:
|
13898
|
-
onFilter: (L, I) => L === "" ? isNil(I == null ? void 0 : I[
|
13917
|
+
filters: R(),
|
13918
|
+
onFilter: (L, I) => L === "" ? isNil(I == null ? void 0 : I[V]) || (I == null ? void 0 : I[V]) === "" : (I == null ? void 0 : I[V]) === L,
|
13899
13919
|
customHeaderCell: () => ({
|
13900
13920
|
"kg-form_id": r.formID,
|
13901
|
-
"kg-var_name":
|
13921
|
+
"kg-var_name": V,
|
13902
13922
|
draggable: !0
|
13903
13923
|
}),
|
13904
13924
|
customCell: (L) => {
|
13905
13925
|
var W, z, J;
|
13906
13926
|
const I = L[r.kgTable.id.value], U = (W = r.kgTable.selectedRow.value) == null ? void 0 : W[r.kgTable.id.value], P = r.kgSubmit.currentVarSubmitConfig$DisplayType.value, x = (J = r.kgSubmit.getVarSubmitDetails({
|
13907
13927
|
buttonVarName: (z = r.kgButton.currentButton.value) == null ? void 0 : z.var_nam,
|
13908
|
-
varName:
|
13928
|
+
varName: V
|
13909
13929
|
})[0]) != null ? J : null;
|
13910
13930
|
return {
|
13911
13931
|
"kg-form_id": r.formID,
|
13912
|
-
"kg-var_name":
|
13932
|
+
"kg-var_name": V,
|
13913
13933
|
class: P === KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE && I === U && !!x ? "submitting" : ""
|
13914
13934
|
};
|
13915
13935
|
}
|
@@ -14187,14 +14207,14 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14187
14207
|
return (G = (w = a == null ? void 0 : a.value) == null ? void 0 : w.KgTable) == null ? void 0 : G.kgCheckboxDisabled;
|
14188
14208
|
if (!isNil(e.kgCheckboxDisabled))
|
14189
14209
|
return e.kgCheckboxDisabled;
|
14190
|
-
}),
|
14210
|
+
}), y = computed(() => !!C.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value), V = computed(() => !!C.value || g.value || !!i.isCreating.value || !!i.isUpdating.value || !!i.isCopying.value || !!i.isDeleting.value || K.total === 0), E = computed(() => {
|
14191
14211
|
var Y;
|
14192
14212
|
return !!((Y = r == null ? void 0 : r.KgTable) != null && Y.expandedRowRender);
|
14193
|
-
}),
|
14213
|
+
}), O = computed(() => {
|
14194
14214
|
var Y;
|
14195
14215
|
return ((Y = i.varGridConfig.value) == null ? void 0 : Y.show_check_column_flg) === 1;
|
14196
14216
|
}), k = computed(() => {
|
14197
|
-
if (!!
|
14217
|
+
if (!!O.value)
|
14198
14218
|
return {
|
14199
14219
|
fixed: "left",
|
14200
14220
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
@@ -14225,7 +14245,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14225
14245
|
break;
|
14226
14246
|
}
|
14227
14247
|
return Y;
|
14228
|
-
}),
|
14248
|
+
}), R = computed(() => {
|
14229
14249
|
var q;
|
14230
14250
|
let Y = "kg-table-bottom";
|
14231
14251
|
return ((q = i.varGridConfig.value) == null ? void 0 : q.show_bottom_border_flg) === 1 && (Y += " kg-table-bottom--border"), Y;
|
@@ -14497,12 +14517,12 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14497
14517
|
default: () => [createVNode(TableSummary.Row, null, {
|
14498
14518
|
default: () => [E.value && createVNode(TableSummary.Cell, {
|
14499
14519
|
index: 0
|
14500
|
-
}, null),
|
14520
|
+
}, null), O.value && createVNode(TableSummary.Cell, {
|
14501
14521
|
index: E.value ? 1 : 0
|
14502
14522
|
}, null), o.value.map((q, w) => {
|
14503
14523
|
const G = String(q.dataIndex), H = G ? i.store.getVarGridDetail(i.formID, G) : null, X = (() => ["left", "center", "right"].includes((H == null ? void 0 : H.align) || "") ? H == null ? void 0 : H.align : "left")();
|
14504
14524
|
let Q = w;
|
14505
|
-
return E.value &&
|
14525
|
+
return E.value && O.value ? Q += 2 : (E.value || O.value) && (Q += 1), createVNode(TableSummary.Cell, {
|
14506
14526
|
index: Q,
|
14507
14527
|
align: X
|
14508
14528
|
}, {
|
@@ -14561,7 +14581,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14561
14581
|
expandedRowRender: (w = r == null ? void 0 : r.KgTable) == null ? void 0 : w.expandedRowRender,
|
14562
14582
|
summary: te
|
14563
14583
|
}), (i.kgTable.isShowBottomLeft.value || i.kgTable.isShowBottomRight.value) && createVNode("div", {
|
14564
|
-
class:
|
14584
|
+
class: R.value
|
14565
14585
|
}, [createVNode("div", {
|
14566
14586
|
class: "left"
|
14567
14587
|
}, [i.kgTable.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
@@ -14569,7 +14589,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14569
14589
|
kgShowClearTable: K.total > 0,
|
14570
14590
|
kgShowLocate: D.value.length === 1,
|
14571
14591
|
kgTotal: D.value.length,
|
14572
|
-
kgDisabled:
|
14592
|
+
kgDisabled: y.value
|
14573
14593
|
}, null)]), createVNode("div", {
|
14574
14594
|
class: "right"
|
14575
14595
|
}, [i.kgTable.isShowBottomRight.value && createVNode(Pagination, {
|
@@ -14581,7 +14601,7 @@ const KgTable$1 = "", getProps$r = () => ({
|
|
14581
14601
|
showSizeChanger: !0,
|
14582
14602
|
showQuickJumper: !1,
|
14583
14603
|
hideOnSinglePage: !1,
|
14584
|
-
disabled:
|
14604
|
+
disabled: V.value,
|
14585
14605
|
locale: {
|
14586
14606
|
page: ""
|
14587
14607
|
},
|
@@ -15748,7 +15768,7 @@ const getProps$m = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
15748
15768
|
n.kgSearch.onReady(async () => (await n.store.patchVarProfileDetail(n.formID, "frm_id", {
|
15749
15769
|
dft_val: a.formID
|
15750
15770
|
}), !1)), n.kgSubmit.onOpen(async () => {
|
15751
|
-
var m, v, T, C, A,
|
15771
|
+
var m, v, T, C, A, y;
|
15752
15772
|
const d = a.store.getSystemVarProfileDetails(a.formID);
|
15753
15773
|
switch (i.value = d ? cloneDeep(toRaw(d)) : [], !0) {
|
15754
15774
|
case n.isCreating.value: {
|
@@ -15760,24 +15780,24 @@ const getProps$m = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
15760
15780
|
if ((m = n.kgTable.selectedRow.value) != null && m.id)
|
15761
15781
|
try {
|
15762
15782
|
n.kgSubmit.store.setIsLoading(n.formID, !0);
|
15763
|
-
const
|
15783
|
+
const V = await QueryByID({
|
15764
15784
|
params: {
|
15765
15785
|
id: n.kgTable.selectedRow.value.id
|
15766
15786
|
}
|
15767
15787
|
});
|
15768
|
-
i.value = i.value.map((
|
15788
|
+
i.value = i.value.map((O) => {
|
15769
15789
|
var N;
|
15770
|
-
const k = (N =
|
15790
|
+
const k = (N = V == null ? void 0 : V.varProfileDetails) == null ? void 0 : N.find((R) => R.var_nam === O.var_nam);
|
15771
15791
|
return k ? {
|
15772
|
-
...
|
15792
|
+
...O,
|
15773
15793
|
...k,
|
15774
|
-
id:
|
15775
|
-
} :
|
15794
|
+
id: O.id
|
15795
|
+
} : O;
|
15776
15796
|
});
|
15777
|
-
const E = (T = (v =
|
15778
|
-
s.value = i.value.filter((
|
15779
|
-
} catch (
|
15780
|
-
throw
|
15797
|
+
const E = (T = (v = V == null ? void 0 : V.varProfileDetails) == null ? void 0 : v.map((O) => O.var_nam)) != null ? T : [];
|
15798
|
+
s.value = i.value.filter((O) => E.includes(O.var_nam)).map((O) => O.id);
|
15799
|
+
} catch (V) {
|
15800
|
+
throw V;
|
15781
15801
|
} finally {
|
15782
15802
|
n.kgSubmit.store.setIsLoading(n.formID, !1);
|
15783
15803
|
}
|
@@ -15788,7 +15808,7 @@ const getProps$m = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
15788
15808
|
}
|
15789
15809
|
switch (!0) {
|
15790
15810
|
case n.isCopying.value: {
|
15791
|
-
n.kgSubmit.formModel.value && (n.kgSubmit.formModel.value.prf_var_nam = ((C = n.kgSubmit.formModel.value.prf_var_nam) != null ? C : "") + "_COPY", n.kgSubmit.formModel.value.prf_var_nam_dsc = ((
|
15811
|
+
n.kgSubmit.formModel.value && (n.kgSubmit.formModel.value.prf_var_nam = ((C = n.kgSubmit.formModel.value.prf_var_nam) != null ? C : "") + "_COPY", n.kgSubmit.formModel.value.prf_var_nam_dsc = ((y = (A = n.kgSubmit.formModel.value.prf_var_nam_dsc) != null ? A : n.kgSubmit.formModel.value.prf_var_nam) != null ? y : "") + "_COPY");
|
15792
15812
|
break;
|
15793
15813
|
}
|
15794
15814
|
}
|
@@ -15862,27 +15882,27 @@ const getProps$m = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
15862
15882
|
onItemSelectAll: C,
|
15863
15883
|
onItemSelect: A
|
15864
15884
|
}) => {
|
15865
|
-
var
|
15866
|
-
const
|
15867
|
-
var N,
|
15868
|
-
return ((N =
|
15885
|
+
var V, E;
|
15886
|
+
const y = m.sort((O, k) => {
|
15887
|
+
var N, R;
|
15888
|
+
return ((N = O.srtseq) != null ? N : 0) - ((R = k.srtseq) != null ? R : 0);
|
15869
15889
|
});
|
15870
|
-
return d === "right" && (o.value =
|
15890
|
+
return d === "right" && (o.value = y), createVNode(Table, {
|
15871
15891
|
pagination: !1,
|
15872
15892
|
class: "kg-flex-table",
|
15873
15893
|
size: "small",
|
15874
15894
|
scroll: {
|
15875
|
-
x: d === "left" ? "370px" : `${(((E = (
|
15895
|
+
x: d === "left" ? "370px" : `${(((E = (V = r.option.value.KgSearch) == null ? void 0 : V.dynamicQuery) == null ? void 0 : E.on) !== !0 ? 1192 - 150 : 1192) + 32}px`,
|
15876
15896
|
y: "auto"
|
15877
15897
|
},
|
15878
15898
|
columns: d === "left" ? leftVarProfileDetailColumns(t) : rightVarProfileDetailColumns(t),
|
15879
15899
|
rowKey: "id",
|
15880
|
-
dataSource:
|
15881
|
-
customRow: (
|
15900
|
+
dataSource: y,
|
15901
|
+
customRow: (O) => {
|
15882
15902
|
let k = {
|
15883
|
-
onClick: (N) => g(N,
|
15903
|
+
onClick: (N) => g(N, O, d, v)
|
15884
15904
|
};
|
15885
|
-
return d === "right" && (k["kg-host-frm_id"] = a.formID, k["kg-var_name"] =
|
15905
|
+
return d === "right" && (k["kg-host-frm_id"] = a.formID, k["kg-var_name"] = O.var_nam), k;
|
15886
15906
|
},
|
15887
15907
|
rowSelection: c({
|
15888
15908
|
disabled: T,
|
@@ -15905,10 +15925,10 @@ const getProps$m = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
15905
15925
|
disabled: d || C.disabled
|
15906
15926
|
}),
|
15907
15927
|
onSelectAll(C, A) {
|
15908
|
-
const
|
15909
|
-
key:
|
15910
|
-
}) =>
|
15911
|
-
v(
|
15928
|
+
const y = A.filter((V) => !V.disabled).map(({
|
15929
|
+
key: V
|
15930
|
+
}) => V);
|
15931
|
+
v(y, C);
|
15912
15932
|
},
|
15913
15933
|
onSelect({
|
15914
15934
|
key: C
|
@@ -17085,19 +17105,19 @@ const getProps$m = () => ({}), KgVarConfigModalSearchVarProfileMaster = defineCo
|
|
17085
17105
|
if (c) {
|
17086
17106
|
KgUtil.showLoading();
|
17087
17107
|
try {
|
17088
|
-
const
|
17108
|
+
const y = await GetAll({
|
17089
17109
|
params: {
|
17090
17110
|
frm_id: c
|
17091
17111
|
}
|
17092
|
-
}),
|
17093
|
-
s.value = uniq(compact((A = (C = (T = (v =
|
17094
|
-
var
|
17095
|
-
return (
|
17112
|
+
}), V = (m = (d = ((g = y.varGridMasters) == null ? void 0 : g.find((E) => E.def_flg === 1)) || ((_ = y.varGridMasters) == null ? void 0 : _.find((E) => E.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((b = y.varGridMasters) == null ? void 0 : b.find(() => !0))) == null ? void 0 : d.id) != null ? m : null;
|
17113
|
+
s.value = uniq(compact((A = (C = (T = (v = y.varGridMasters) == null ? void 0 : v.find((E) => E.id === V)) == null ? void 0 : T.varGridDetails) == null ? void 0 : C.map((E) => {
|
17114
|
+
var O;
|
17115
|
+
return (O = E.var_nam) != null ? O : "";
|
17096
17116
|
})) != null ? A : [])), a.store.patchVarPossibilityCommandParameter(a.formID, "ret_fld", {
|
17097
17117
|
__KG__TIMESTAMP__: Date.now()
|
17098
17118
|
});
|
17099
|
-
} catch (
|
17100
|
-
KgLogger.error(
|
17119
|
+
} catch (y) {
|
17120
|
+
KgLogger.error(y.message);
|
17101
17121
|
} finally {
|
17102
17122
|
KgUtil.hideLoading();
|
17103
17123
|
}
|
@@ -17775,32 +17795,34 @@ function transformVarGridConfig(e) {
|
|
17775
17795
|
if (!e)
|
17776
17796
|
return null;
|
17777
17797
|
let t = e.operation_on_row_click;
|
17778
|
-
isNil(t) ? e.operation_on_row_click = 1 : (t = Number(e.operation_on_row_click), [0, 1, 2].includes(t) || (
|
17798
|
+
isNil(t) ? e.operation_on_row_click = 1 : (t = Number(e.operation_on_row_click), [0, 1, 2].includes(t) || (KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_grid_config.min_width \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${1}. \u5408\u6CD5\u7684\u503C\u4E3A 0, 1, 2.`, {
|
17779
17799
|
VarGridConfig: e
|
17780
|
-
}))), e.pg_size_opts || (e.pg_size_opts = DEFAULT_PAGE_SIZES);
|
17800
|
+
}), e.operation_on_row_click = 1)), e.pg_size_opts || (e.pg_size_opts = DEFAULT_PAGE_SIZES);
|
17781
17801
|
try {
|
17782
17802
|
let r = JSON.parse(e.pg_size_opts);
|
17783
17803
|
switch (!0) {
|
17784
17804
|
case !isArray$1(r):
|
17785
17805
|
case r.length < 1:
|
17786
|
-
case r.some((a) => Number.isNaN(Number(a)) || Math.floor(Number(a)) <= 0):
|
17787
|
-
|
17806
|
+
case r.some((a) => Number.isNaN(Number(a)) || Math.floor(Number(a)) <= 0): {
|
17807
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_grid_config.pg_size_opts \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZES}.`, {
|
17788
17808
|
VarGridConfig: e
|
17789
|
-
});
|
17809
|
+
}), e.pg_size_opts = DEFAULT_PAGE_SIZES;
|
17790
17810
|
break;
|
17811
|
+
}
|
17791
17812
|
default:
|
17792
17813
|
switch (r = sortBy$1(uniq(r.map((a) => Math.floor(a)))), e.pg_size_opts = JSON.stringify(r), e.pg_size_opt || (e.pg_size_opt = r[0]), e.pg_size_opt = Number(e.pg_size_opt), !0) {
|
17793
17814
|
case Number.isNaN(e.pg_size_opt):
|
17794
|
-
case !r.includes(e.pg_size_opt):
|
17795
|
-
|
17815
|
+
case !r.includes(e.pg_size_opt): {
|
17816
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_grid_config.pg_size_opt \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZE}.`, { VarGridConfig: e }), e.pg_size_opt = DEFAULT_PAGE_SIZE;
|
17796
17817
|
break;
|
17818
|
+
}
|
17797
17819
|
}
|
17798
17820
|
break;
|
17799
17821
|
}
|
17800
17822
|
} catch {
|
17801
|
-
|
17823
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_grid_config.pg_size_opts \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${DEFAULT_PAGE_SIZES}.`, {
|
17802
17824
|
VarGridConfig: e
|
17803
|
-
});
|
17825
|
+
}), e.pg_size_opts = DEFAULT_PAGE_SIZES, e.pg_size_opt = DEFAULT_PAGE_SIZE;
|
17804
17826
|
}
|
17805
17827
|
return e;
|
17806
17828
|
}
|
@@ -17819,15 +17841,15 @@ function transformVarSubmitConfigs(e) {
|
|
17819
17841
|
break;
|
17820
17842
|
}
|
17821
17843
|
case Number.isNaN(r): {
|
17822
|
-
|
17844
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.min_width \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${SUBMIT_DEFAULT_MIN_WIDTH}.`, {
|
17823
17845
|
VarSubmitConfig: t
|
17824
|
-
});
|
17846
|
+
}), t.min_width = SUBMIT_DEFAULT_MIN_WIDTH;
|
17825
17847
|
break;
|
17826
17848
|
}
|
17827
17849
|
case r < SUBMIT_DEFAULT_MIN_WIDTH: {
|
17828
|
-
|
17850
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.min_width \u4E0D\u80FD\u5C0F\u4E8E ${SUBMIT_DEFAULT_MIN_WIDTH}, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${SUBMIT_DEFAULT_MIN_WIDTH}.`, {
|
17829
17851
|
VarSubmitConfig: t
|
17830
|
-
});
|
17852
|
+
}), t.min_width = SUBMIT_DEFAULT_MIN_WIDTH;
|
17831
17853
|
break;
|
17832
17854
|
}
|
17833
17855
|
}
|
@@ -17838,13 +17860,13 @@ function transformVarSubmitConfigs(e) {
|
|
17838
17860
|
break;
|
17839
17861
|
}
|
17840
17862
|
case Number.isNaN(a): {
|
17841
|
-
|
17863
|
+
KgLogger.error("| \u6570\u636E\u6709\u8BEF | var_submit_config.max_width \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C null.", { VarSubmitConfig: t }), t.max_width = null;
|
17842
17864
|
break;
|
17843
17865
|
}
|
17844
17866
|
case a < r: {
|
17845
|
-
|
17867
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.max_width \u5C0F\u4E8E ${r}, \u6539\u4E3A\u4F7F\u7528\u6700\u5C0F\u5BBD\u5EA6 ${r}.`, {
|
17846
17868
|
VarSubmitConfig: t
|
17847
|
-
});
|
17869
|
+
}), t.max_width = r;
|
17848
17870
|
break;
|
17849
17871
|
}
|
17850
17872
|
}
|
@@ -17855,29 +17877,31 @@ function transformVarSubmitConfigs(e) {
|
|
17855
17877
|
break;
|
17856
17878
|
}
|
17857
17879
|
case Number.isNaN(n): {
|
17858
|
-
|
17880
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.dft_width \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${SUBMIT_DEFAULT_WIDTH}.`, { VarSubmitConfig: t }), t.dft_width = SUBMIT_DEFAULT_WIDTH;
|
17859
17881
|
break;
|
17860
17882
|
}
|
17861
17883
|
case (n < t.min_width || !isNil(t.max_width) && n > t.max_width): {
|
17862
|
-
|
17884
|
+
KgLogger.error(
|
17863
17885
|
`| \u6570\u636E\u6709\u8BEF | var_submit_config.dft_width \u8D85\u51FA\u8303\u56F4 [${t.min_width}, ${t.max_width}], \u6539\u4E3A\u4F7F\u7528\u6700\u5C0F\u5BBD\u5EA6 ${t.min_width}.`,
|
17864
17886
|
{ VarSubmitConfig: t }
|
17865
|
-
);
|
17887
|
+
), t.dft_width = SUBMIT_DEFAULT_WIDTH;
|
17866
17888
|
break;
|
17867
17889
|
}
|
17868
17890
|
}
|
17869
17891
|
const i = KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL, s = KG__VAR_SUBMIT_CONFIG__LAYOUT.VERTICAL;
|
17870
|
-
switch (isNil(t.layout) ? t.layout = SUBMIT_DEFAULT_LAYOUT : [s, i, "inline"].includes(t.layout) || (
|
17892
|
+
switch (isNil(t.layout) ? t.layout = SUBMIT_DEFAULT_LAYOUT : [s, i, "inline"].includes(t.layout) || (KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.layout \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${SUBMIT_DEFAULT_LAYOUT}.`, {
|
17871
17893
|
VarSubmitConfig: t
|
17872
|
-
})), !0) {
|
17894
|
+
}), t.layout = SUBMIT_DEFAULT_LAYOUT), !0) {
|
17873
17895
|
case isNil(t.label_col_unit): {
|
17874
17896
|
t.label_col_unit = KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.SPAN;
|
17875
17897
|
break;
|
17876
17898
|
}
|
17877
|
-
case ![KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.SPAN, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.PX].includes(
|
17878
|
-
t.label_col_unit
|
17899
|
+
case ![KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.SPAN, KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.PX].includes(
|
17900
|
+
t.label_col_unit
|
17901
|
+
): {
|
17902
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.label_col_unit \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.SPAN}.`, {
|
17879
17903
|
VarSubmitConfig: t
|
17880
|
-
});
|
17904
|
+
}), t.label_col_unit = KG__VAR_SUBMIT_CONFIG__LABEL_COLUMN_UNIT.SPAN;
|
17881
17905
|
break;
|
17882
17906
|
}
|
17883
17907
|
}
|
@@ -17891,9 +17915,9 @@ function transformVarSubmitConfigs(e) {
|
|
17891
17915
|
break;
|
17892
17916
|
}
|
17893
17917
|
case (Number.isNaN(c) || c <= 0): {
|
17894
|
-
|
17918
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.label_col \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${SUBMIT_DEFAULT_LABEL_COL_FOR_PX}.`, {
|
17895
17919
|
VarSubmitConfig: t
|
17896
|
-
});
|
17920
|
+
}), t.label_col = SUBMIT_DEFAULT_LABEL_COL_FOR_PX;
|
17897
17921
|
break;
|
17898
17922
|
}
|
17899
17923
|
default:
|
@@ -17908,9 +17932,9 @@ function transformVarSubmitConfigs(e) {
|
|
17908
17932
|
break;
|
17909
17933
|
}
|
17910
17934
|
case (Number.isNaN(c) || c > 24 || c < 1): {
|
17911
|
-
|
17935
|
+
KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.label_col \u975E\u6CD5, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${SUBMIT_DEFAULT_LABEL_COL_FOR_SPAN}.`, {
|
17912
17936
|
VarSubmitConfig: t
|
17913
|
-
});
|
17937
|
+
}), t.label_col = SUBMIT_DEFAULT_LABEL_COL_FOR_SPAN;
|
17914
17938
|
break;
|
17915
17939
|
}
|
17916
17940
|
default:
|
@@ -17919,9 +17943,9 @@ function transformVarSubmitConfigs(e) {
|
|
17919
17943
|
}
|
17920
17944
|
}
|
17921
17945
|
const o = KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.DRAWER, l = KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.MODAL, u = KG__VAR_SUBMIT_CONFIG__DISPLAY_TYPE.TABLE;
|
17922
|
-
return isNil(t.display_type) ? t.display_type = o : [o, l, u].includes(t.display_type) || (
|
17946
|
+
return isNil(t.display_type) ? t.display_type = o : [o, l, u].includes(t.display_type) || (KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_submit_config.display_type \u975E\u6CD5, \u5408\u6CD5\u7684\u503C\u4E3A ${[o, l, u]}, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${o}.`, {
|
17923
17947
|
VarSubmitConfig: t
|
17924
|
-
})), t;
|
17948
|
+
}), t.display_type = o), t;
|
17925
17949
|
}) : [];
|
17926
17950
|
}
|
17927
17951
|
function transformVarSubmitDetails(e) {
|
@@ -17970,9 +17994,9 @@ function transformVarButtonConfig(e) {
|
|
17970
17994
|
if (!e)
|
17971
17995
|
return null;
|
17972
17996
|
const t = KG__VAR_BUTTON_CONFIG__DISPLAY_TYPE.DEFAULT, r = KG__VAR_BUTTON_CONFIG__DISPLAY_TYPE.SELECT;
|
17973
|
-
return isNil(e.display_type) ? e.display_type = t : [t, r].includes(e.display_type) || (
|
17997
|
+
return isNil(e.display_type) ? e.display_type = t : [t, r].includes(e.display_type) || (KgLogger.error(`| \u6570\u636E\u6709\u8BEF | var_button_config.display_type \u975E\u6CD5, \u5408\u6CD5\u7684\u503C\u4E3A ${[t, r]}, \u6539\u4E3A\u4F7F\u7528\u9ED8\u8BA4\u503C ${t}.`, {
|
17974
17998
|
VarButtonConfig: e
|
17975
|
-
})), e;
|
17999
|
+
}), e.display_type = t), e;
|
17976
18000
|
}
|
17977
18001
|
function transformVarGridDetails(e) {
|
17978
18002
|
if (!e)
|
@@ -18016,7 +18040,7 @@ function transformVarProfileDetails(e) {
|
|
18016
18040
|
break;
|
18017
18041
|
}
|
18018
18042
|
case !new Array(24).fill(0).map((n, i) => i + 1).includes(Number(a.width)): {
|
18019
|
-
|
18043
|
+
KgLogger.error("| \u6570\u636E\u6709\u8BEF | VarProfileDetail.width \u5FC5\u987B\u4E3A [1, 24] \u4E4B\u95F4\u7684\u6574\u6570.", { VarProfileDetail: a }), a.width = 6;
|
18020
18044
|
break;
|
18021
18045
|
}
|
18022
18046
|
}
|
@@ -18177,9 +18201,15 @@ const useKgVarStore = defineStore("KgVar", {
|
|
18177
18201
|
var l, u, c, g, _;
|
18178
18202
|
if (!e)
|
18179
18203
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
18204
|
+
if (!this.isRequested(e))
|
18205
|
+
return null;
|
18180
18206
|
const { buttonType: r, buttonVarName: a, varName: n } = t != null ? t : {}, i = useKgVar(e);
|
18181
18207
|
let s = a;
|
18182
|
-
r === void 0 && a === void 0
|
18208
|
+
if (r === void 0 && a === void 0) {
|
18209
|
+
if (!i.kgButton.currentButton.value)
|
18210
|
+
return KgLogger.warn(`${e} | KgVar.store.getVarConfigControl() | \u300C\u5F53\u524D\u6309\u94AE\u300D\u4E3A\u7A7A.`, { formID: e, param: t }), null;
|
18211
|
+
s = (l = i.kgButton.currentButton.value) == null ? void 0 : l.var_nam;
|
18212
|
+
}
|
18183
18213
|
const o = (u = this.varConfigControlMap.get(e)) != null ? u : [];
|
18184
18214
|
if (s !== void 0)
|
18185
18215
|
return (c = o.find((b) => b.button_var_name === s && b.var_nam === n)) != null ? c : null;
|
@@ -18338,7 +18368,7 @@ const useKgVarStore = defineStore("KgVar", {
|
|
18338
18368
|
return e ? (t = this.isRetrievingVarProfileMasterMap.get(e)) != null ? t : null : (KgLogger.error("formID \u4E3A\u7A7A."), null);
|
18339
18369
|
};
|
18340
18370
|
},
|
18341
|
-
|
18371
|
+
isRequested() {
|
18342
18372
|
return (e) => {
|
18343
18373
|
var t;
|
18344
18374
|
return e ? (t = this.isRequestedMap.get(e)) != null ? t : !1 : (KgLogger.error("formID \u4E3A\u7A7A."), !1);
|
@@ -18513,31 +18543,31 @@ const useKgVarStore = defineStore("KgVar", {
|
|
18513
18543
|
varButtonConfig: T,
|
18514
18544
|
varButtons: C,
|
18515
18545
|
varSubmitConfigs: A,
|
18516
|
-
varSubmitDetails:
|
18517
|
-
varProfileConfig:
|
18546
|
+
varSubmitDetails: y,
|
18547
|
+
varProfileConfig: V,
|
18518
18548
|
varProfileMasters: E,
|
18519
|
-
varGridConfig:
|
18549
|
+
varGridConfig: O,
|
18520
18550
|
varGridMasters: k,
|
18521
18551
|
varVariables: N
|
18522
18552
|
} = await GetAll({ params: { frm_id: e } });
|
18523
|
-
this.varVariableMap.set(e, N != null ? N : []), this.varConfigDescriptionMap.set(e, g != null ? g : []), this.varConfigControlMap.set(e, b != null ? b : []), this.varConfigInputMap.set(e, d != null ? d : []), this.varConfigPossibilityMap.set(e, transformVarConfigPossibilities(m != null ? m : [])), this.varConfigLookupMap.set(e, _ != null ? _ : []), this.varConfigTipMap.set(e, v != null ? v : []), this.varButtonMap.set(e, transformVarButtons(C)), this.varButtonConfigMap.set(e, transformVarButtonConfig(T != null ? T : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfigs(A)), this.varSubmitDetailMap.set(e, transformVarSubmitDetails(
|
18553
|
+
this.varVariableMap.set(e, N != null ? N : []), this.varConfigDescriptionMap.set(e, g != null ? g : []), this.varConfigControlMap.set(e, b != null ? b : []), this.varConfigInputMap.set(e, d != null ? d : []), this.varConfigPossibilityMap.set(e, transformVarConfigPossibilities(m != null ? m : [])), this.varConfigLookupMap.set(e, _ != null ? _ : []), this.varConfigTipMap.set(e, v != null ? v : []), this.varButtonMap.set(e, transformVarButtons(C)), this.varButtonConfigMap.set(e, transformVarButtonConfig(T != null ? T : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfigs(A)), this.varSubmitDetailMap.set(e, transformVarSubmitDetails(y)), this.varProfileConfigMap.set(e, transformVarProfileConfig(V != null ? V : null)), this.varProfileMasterMap.set(e, {
|
18524
18554
|
varProfileMasters: transformVarProfileMasterDTOs(E),
|
18525
18555
|
currentVarProfileMasterID: (i = (n = (E == null ? void 0 : E.find((D) => D.id === this.getCurrentVarProfileMasterID(e))) || (E == null ? void 0 : E.find((D) => D.def_flg === 1)) || (E == null ? void 0 : E.find((D) => D.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (E == null ? void 0 : E.find(() => !0))) == null ? void 0 : n.id) != null ? i : null
|
18526
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
18556
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(O != null ? O : null)), this.varGridMasterMap.set(e, {
|
18527
18557
|
varGridMasters: transformVarGridMasterDTOs(k),
|
18528
18558
|
currentVarGridMasterID: (o = (s = (k == null ? void 0 : k.find((D) => D.id === this.getCurrentVarGridMasterID(e))) || (k == null ? void 0 : k.find((D) => D.def_flg === 1)) || (k == null ? void 0 : k.find((D) => D.cust_lvl === KG_CUSTOM_LEVEL.L0)) || (k == null ? void 0 : k.find(() => !0))) == null ? void 0 : s.id) != null ? o : null
|
18529
18559
|
}), await Promise.all([
|
18530
18560
|
this.setCurrentVarGridMasterID(e, this.getCurrentVarGridMasterID(e)),
|
18531
18561
|
this.setCurrentVarProfileMasterID(e, this.getCurrentVarProfileMasterID(e))
|
18532
18562
|
]);
|
18533
|
-
const
|
18563
|
+
const R = uniq(
|
18534
18564
|
(c = (u = (l = this.getCurrentVarGridDetails(e)) == null ? void 0 : l.map((D) => {
|
18535
18565
|
var B, F, $;
|
18536
18566
|
const K = KgUtil.tryParseJSON(D.display_type_properties);
|
18537
18567
|
return !((B = K.description) != null && B.codeName) || ((F = K.description) == null ? void 0 : F.isDefer) === !0 ? null : ($ = K.description) == null ? void 0 : $.codeName;
|
18538
18568
|
})) == null ? void 0 : u.filter((D) => !!D)) != null ? c : []
|
18539
18569
|
);
|
18540
|
-
for (let D of
|
18570
|
+
for (let D of R)
|
18541
18571
|
a.store.requestDescriptions({ codeName: D });
|
18542
18572
|
this.isRequestedMap.set(e, !0), this.emit(e, "retrieve");
|
18543
18573
|
}
|
@@ -18669,7 +18699,7 @@ function useKgVar(e, t, r = 0) {
|
|
18669
18699
|
isRetrieving: computed(() => s.isRetrieving(i)),
|
18670
18700
|
isRetrievingVarGridMaster: computed(() => s.isRetrievingVarGridMaster(i)),
|
18671
18701
|
isRetrievingVarProfileMaster: computed(() => s.isRetrievingVarProfileMaster(i)),
|
18672
|
-
|
18702
|
+
isRequested: computed(() => s.isRequested(i)),
|
18673
18703
|
isUpdating: computed(() => o.isCurrentButton(i, { type: KG__VAR_BUTTON__TYPE.UPDATE })),
|
18674
18704
|
isUpdatingRequesting: computed(() => s.isUpdatingRequesting(i)),
|
18675
18705
|
kgButton: null,
|
@@ -18732,15 +18762,15 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
18732
18762
|
slots: t
|
18733
18763
|
}) {
|
18734
18764
|
provide(KG__DI__KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(KG__DI__KG_VAR__KG_SLOTS, e.kgSlots);
|
18735
|
-
const r = useKg(), a = useKgVar(), n = computed(() => a.store.getVarProfileConfig(a.formID)), i = computed(() => a.store.getVarGridConfig(a.formID)), s = computed(() => !a.
|
18765
|
+
const r = useKg(), a = useKgVar(), n = computed(() => a.store.getVarProfileConfig(a.formID)), i = computed(() => a.store.getVarGridConfig(a.formID)), s = computed(() => !a.isRequested.value || a.kgButton.isCurrentButtonClickIntercepted.value ? !1 : !!a.kgButton.currentButton.value && !!a.kgSubmit.currentVarSubmitConfig.value ? !0 : (!!a.kgButton.currentButton.value && !a.kgSubmit.currentVarSubmitConfig.value && (a.kgButton.setCurrentButton(null), message.error(r.t("kg.KgButton.noVarSubmitConfig"))), !1)), o = computed(() => {
|
18736
18766
|
var b;
|
18737
|
-
return !(!a.
|
18767
|
+
return !(!a.isRequested.value || ((b = n.value) == null ? void 0 : b.available_flg) === 0);
|
18738
18768
|
}), l = computed(() => {
|
18739
18769
|
var b;
|
18740
|
-
return !(!a.
|
18770
|
+
return !(!a.isRequested.value || ((b = a.kgButton.varButtonConfig.value) == null ? void 0 : b.available_flg) === 0);
|
18741
18771
|
}), u = computed(() => {
|
18742
18772
|
var b;
|
18743
|
-
return !(!a.
|
18773
|
+
return !(!a.isRequested.value || ((b = i.value) == null ? void 0 : b.available_flg) === 0);
|
18744
18774
|
}), c = computed(() => !!a.isOtherRequesting.value), g = computed(() => {
|
18745
18775
|
let b = "kg-var";
|
18746
18776
|
return e.KgBackgroundGray && (b += " kg-var--bg-gray"), !o.value && !l.value && !u.value && (b += " kg-var--empty"), b;
|
@@ -18871,8 +18901,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
18871
18901
|
}
|
18872
18902
|
});
|
18873
18903
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), o = computed(() => {
|
18874
|
-
var v, T, C, A,
|
18875
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((C = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? C : 0) === 0 || ((A = s.value) == null ? void 0 : A.dis_mult_select_flg) === 1 && ((
|
18904
|
+
var v, T, C, A, y, V, E, O;
|
18905
|
+
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((C = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? C : 0) === 0 || ((A = s.value) == null ? void 0 : A.dis_mult_select_flg) === 1 && ((V = (y = i.kgTable.selectedRows.value) == null ? void 0 : y.length) != null ? V : 0) > 1 || KgAuthUtil.getPermissionType((E = s.value) == null ? void 0 : E.permission_code) === 2 && !n.p((O = s.value) == null ? void 0 : O.permission_code)) : e.kgDisabled;
|
18876
18906
|
}), l = computed(() => !!i.isCreatingRequesting.value);
|
18877
18907
|
async function u() {
|
18878
18908
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -18914,13 +18944,13 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
18914
18944
|
return e.kgText ? e.kgText : n.t("kg.create");
|
18915
18945
|
}
|
18916
18946
|
function d() {
|
18917
|
-
var v, T, C, A,
|
18947
|
+
var v, T, C, A, y, V;
|
18918
18948
|
return createVNode(Button, {
|
18919
18949
|
"kg-id": (v = s.value) == null ? void 0 : v.id,
|
18920
18950
|
"kg-form_id": (T = s.value) == null ? void 0 : T.frm_id,
|
18921
18951
|
"kg-var_name": (C = s.value) == null ? void 0 : C.var_nam,
|
18922
18952
|
"kg-cmd": (A = s.value) == null ? void 0 : A.cmd,
|
18923
|
-
"kg-permission": (
|
18953
|
+
"kg-permission": (V = (y = s.value) == null ? void 0 : y.permission_code) != null ? V : "",
|
18924
18954
|
type: "primary",
|
18925
18955
|
disabled: o.value,
|
18926
18956
|
danger: e.kgColor === KG__VAR_BUTTON__COLOR.RED,
|
@@ -19050,8 +19080,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
19050
19080
|
...KgVarUtil.parseRequestParamsToJSON((m = (d = n.value) == null ? void 0 : d.cmd_prm) != null ? m : "")
|
19051
19081
|
}), b;
|
19052
19082
|
}), l = computed(() => {
|
19053
|
-
var b, d, m, v, T, C, A,
|
19054
|
-
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || a.kgTable.isRetrieving.value || ((b = n.value) == null ? void 0 : b.dis_no_select_flg) === 1 && ((m = (d = a.kgTable.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((C = (T = a.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((A = n.value) == null ? void 0 : A.permission_code) === 2 && !r.p((
|
19083
|
+
var b, d, m, v, T, C, A, y;
|
19084
|
+
return isNil(e.kgDisabled) ? !!(a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value || a.kgTable.isRetrieving.value || ((b = n.value) == null ? void 0 : b.dis_no_select_flg) === 1 && ((m = (d = a.kgTable.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = n.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((C = (T = a.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? C : 0) > 1 || KgAuthUtil.getPermissionType((A = n.value) == null ? void 0 : A.permission_code) === 2 && !r.p((y = n.value) == null ? void 0 : y.permission_code)) : e.kgDisabled;
|
19055
19085
|
}), u = ref(!1);
|
19056
19086
|
async function c() {
|
19057
19087
|
var b, d, m, v, T;
|
@@ -19083,9 +19113,9 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
19083
19113
|
isTransformResponse: !1
|
19084
19114
|
});
|
19085
19115
|
if (C instanceof Blob && C.type === "application/json") {
|
19086
|
-
const
|
19116
|
+
const y = await C.text();
|
19087
19117
|
message.error({
|
19088
|
-
content: (d = JSON.parse(
|
19118
|
+
content: (d = JSON.parse(y).message) != null ? d : ""
|
19089
19119
|
});
|
19090
19120
|
return;
|
19091
19121
|
}
|
@@ -19164,8 +19194,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
19164
19194
|
...KgVarUtil.parseRequestParamsToJSON((T = (v = i.value) == null ? void 0 : v.cmd_prm) != null ? T : "")
|
19165
19195
|
}), d;
|
19166
19196
|
}), u = computed(() => {
|
19167
|
-
var d, m, v, T, C, A,
|
19168
|
-
return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || n.kgTable.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (m = n.kgTable.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((T = i.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (C = n.kgTable.selectedRows.value) == null ? void 0 : C.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((
|
19197
|
+
var d, m, v, T, C, A, y, V;
|
19198
|
+
return isNil(e.kgDisabled) ? !!(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || n.kgTable.isRetrieving.value || ((d = i.value) == null ? void 0 : d.dis_no_select_flg) === 1 && ((v = (m = n.kgTable.selectedRows.value) == null ? void 0 : m.length) != null ? v : 0) === 0 || ((T = i.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((A = (C = n.kgTable.selectedRows.value) == null ? void 0 : C.length) != null ? A : 0) > 1 || KgAuthUtil.getPermissionType((y = i.value) == null ? void 0 : y.permission_code) === 2 && !a.p((V = i.value) == null ? void 0 : V.permission_code)) : e.kgDisabled;
|
19169
19199
|
}), c = ref(!1);
|
19170
19200
|
async function g(d) {
|
19171
19201
|
if (!s.value)
|
@@ -19373,33 +19403,33 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
19373
19403
|
}
|
19374
19404
|
let u = null;
|
19375
19405
|
const c = async () => {
|
19376
|
-
var m, v, T, C, A,
|
19406
|
+
var m, v, T, C, A, y, V, E;
|
19377
19407
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
19378
19408
|
const d = r.kgTable.selectedRows.value;
|
19379
19409
|
try {
|
19380
|
-
const
|
19410
|
+
const O = KgVarUtil.parseRequestParamsToJSON((v = (m = e.kgButton) == null ? void 0 : m.cmd_prm) != null ? v : ""), k = (C = (T = e.kgButton) == null ? void 0 : T.cmd_method) != null ? C : "POST", N = await httpClient().request({
|
19381
19411
|
url: l,
|
19382
19412
|
method: k,
|
19383
|
-
params:
|
19413
|
+
params: O,
|
19384
19414
|
data: d != null ? d : [],
|
19385
19415
|
headers: {
|
19386
19416
|
[KG_HTTP_HEADERS.KG_FORM_ID]: r.formID,
|
19387
|
-
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (
|
19417
|
+
[KG_HTTP_HEADERS.KG_BUTTON_VAR_NAME]: (y = (A = e.kgButton) == null ? void 0 : A.var_nam) != null ? y : ""
|
19388
19418
|
}
|
19389
19419
|
});
|
19390
|
-
if (((
|
19391
|
-
let
|
19392
|
-
((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && (
|
19420
|
+
if (((V = e.kgButton) == null ? void 0 : V.reload_all_after_done_flg) === 1) {
|
19421
|
+
let R = !0;
|
19422
|
+
((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && (R = !1, r.kgTable.onAfterSearch(async ({
|
19393
19423
|
datas: D
|
19394
19424
|
}) => {
|
19395
19425
|
const K = D.value, B = intersectionWith$1(K, d != null ? d : [], (F, $) => (F == null ? void 0 : F[r.kgTable.id.value]) === ($ == null ? void 0 : $[r.kgTable.id.value]));
|
19396
19426
|
return B.length > 0 && r.kgTable.store.setSelectedRows(r.formID, B), !1;
|
19397
19427
|
}, !0)), r.kgSearch.search({
|
19398
|
-
isSearchFirstPage:
|
19428
|
+
isSearchFirstPage: R
|
19399
19429
|
});
|
19400
19430
|
}
|
19401
|
-
} catch (
|
19402
|
-
console.error(
|
19431
|
+
} catch (O) {
|
19432
|
+
console.error(O);
|
19403
19433
|
} finally {
|
19404
19434
|
r.store.setIsOtherRequesting(r.formID, !1), u == null || u.hideLoading();
|
19405
19435
|
}
|
@@ -19526,8 +19556,8 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
19526
19556
|
}
|
19527
19557
|
});
|
19528
19558
|
const s = computed(() => i.store.getVarButton(i.formID, e.kgVarName)), o = computed(() => {
|
19529
|
-
var v, T, C, A,
|
19530
|
-
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((C = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? C : 0) === 0 || ((A = s.value) == null ? void 0 : A.dis_mult_select_flg) === 1 && ((
|
19559
|
+
var v, T, C, A, y, V, E, O;
|
19560
|
+
return isNil(e.kgDisabled) ? !!(i.isCreating.value || i.isUpdating.value || i.isCopying.value || i.isDeleting.value || i.kgTable.isRetrieving.value || ((v = s.value) == null ? void 0 : v.dis_no_select_flg) === 1 && ((C = (T = i.kgTable.selectedRows.value) == null ? void 0 : T.length) != null ? C : 0) === 0 || ((A = s.value) == null ? void 0 : A.dis_mult_select_flg) === 1 && ((V = (y = i.kgTable.selectedRows.value) == null ? void 0 : y.length) != null ? V : 0) > 1 || KgAuthUtil.getPermissionType((E = s.value) == null ? void 0 : E.permission_code) === 2 && !n.p((O = s.value) == null ? void 0 : O.permission_code)) : e.kgDisabled;
|
19531
19561
|
}), l = computed(() => !!i.isUpdatingRequesting.value);
|
19532
19562
|
async function u() {
|
19533
19563
|
if (e.onKgClick && await e.onKgClick()) {
|
@@ -19569,13 +19599,13 @@ const KG__DI__KG_VAR__KG_SLOTS = Symbol("KG__DI__KG_VAR__KG_SLOTS"), KG__DI__KG_
|
|
19569
19599
|
return e.kgText ? e.kgText : n.t("kg.update");
|
19570
19600
|
}
|
19571
19601
|
function d() {
|
19572
|
-
var v, T, C, A,
|
19602
|
+
var v, T, C, A, y, V;
|
19573
19603
|
return createVNode(Button, {
|
19574
19604
|
"kg-id": (v = s.value) == null ? void 0 : v.id,
|
19575
19605
|
"kg-form_id": (T = s.value) == null ? void 0 : T.frm_id,
|
19576
19606
|
"kg-var_name": (C = s.value) == null ? void 0 : C.var_nam,
|
19577
19607
|
"kg-cmd": (A = s.value) == null ? void 0 : A.cmd,
|
19578
|
-
"kg-permission": (
|
19608
|
+
"kg-permission": (V = (y = s.value) == null ? void 0 : y.permission_code) != null ? V : "",
|
19579
19609
|
type: "primary",
|
19580
19610
|
disabled: o.value,
|
19581
19611
|
ghost: !e.kgPrimary && !o.value,
|
@@ -20295,7 +20325,7 @@ const getProps$b = () => ({
|
|
20295
20325
|
return !!(d.value || n.kgTable.isRetrieving.value || KgAuthUtil.getPermissionType((P = n.kgButton.searchButton.value) == null ? void 0 : P.permission_code) === 2 && !a.p((x = n.kgButton.searchButton.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
20296
20326
|
}), T = computed(() => !!(d.value || n.kgTable.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), C = computed(() => !!n.kgTable.isRetrieving.value), A = ref({
|
20297
20327
|
visible: !1
|
20298
|
-
}),
|
20328
|
+
}), y = computed(() => b.value.kgHeight === _.value), V = computed(() => {
|
20299
20329
|
var W;
|
20300
20330
|
if (!n.kgButton.searchButton.value)
|
20301
20331
|
return;
|
@@ -20312,10 +20342,10 @@ const getProps$b = () => ({
|
|
20312
20342
|
default:
|
20313
20343
|
return !0;
|
20314
20344
|
}
|
20315
|
-
}),
|
20345
|
+
}), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value)), k = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), N = computed(() => {
|
20316
20346
|
let P = "kg-search";
|
20317
20347
|
return i.value && (P += " kg-search--visible"), P;
|
20318
|
-
}),
|
20348
|
+
}), R = computed(() => {
|
20319
20349
|
switch (n.kgSubmit.searchVarSubmitConfig$Layout.value) {
|
20320
20350
|
case KG__VAR_SUBMIT_CONFIG__LAYOUT.HORIZONTAL:
|
20321
20351
|
switch (n.kgSubmit.searchVarSubmitConfig$LabelColumnUnit.value) {
|
@@ -20402,7 +20432,7 @@ const getProps$b = () => ({
|
|
20402
20432
|
onClick: (x) => {
|
20403
20433
|
x.stopPropagation(), x.preventDefault();
|
20404
20434
|
}
|
20405
|
-
}, [t.KgSearch.left()]),
|
20435
|
+
}, [t.KgSearch.left()]), y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
20406
20436
|
}
|
20407
20437
|
function M() {
|
20408
20438
|
var P, x, W, z;
|
@@ -20447,7 +20477,7 @@ const getProps$b = () => ({
|
|
20447
20477
|
kgType: KG__VAR_BUTTON__TYPE.SEARCH,
|
20448
20478
|
kgVarName: (P = n.kgButton.searchButton.value) == null ? void 0 : P.var_nam,
|
20449
20479
|
kgIcon: (x = n.kgButton.searchButton.value) == null ? void 0 : x.icon,
|
20450
|
-
kgText:
|
20480
|
+
kgText: V.value,
|
20451
20481
|
kgColor: (W = n.kgButton.searchButton.value) == null ? void 0 : W.color,
|
20452
20482
|
kgPrimary: E.value,
|
20453
20483
|
kgDisabled: v.value,
|
@@ -20466,7 +20496,7 @@ const getProps$b = () => ({
|
|
20466
20496
|
ref: l,
|
20467
20497
|
model: (x = n.kgSearch.formModel.value) != null ? x : {},
|
20468
20498
|
layout: n.kgSubmit.searchVarSubmitConfig$Layout.value,
|
20469
|
-
labelCol:
|
20499
|
+
labelCol: R.value,
|
20470
20500
|
wrapperCol: D.value
|
20471
20501
|
}, {
|
20472
20502
|
default: () => [createVNode(Row, {
|
@@ -20486,7 +20516,7 @@ const getProps$b = () => ({
|
|
20486
20516
|
});
|
20487
20517
|
}
|
20488
20518
|
function U() {
|
20489
|
-
|
20519
|
+
y.value ? b.value.kgHeight = c.value : b.value.kgHeight = _.value;
|
20490
20520
|
}
|
20491
20521
|
return onUnmounted(async () => {
|
20492
20522
|
n.kgSearch.store.dispose(n.formID);
|
@@ -20507,7 +20537,7 @@ const getProps$b = () => ({
|
|
20507
20537
|
}, [createVNode("div", {
|
20508
20538
|
class: "ant-collapse-header"
|
20509
20539
|
}, [createVNode(Spin, {
|
20510
|
-
spinning:
|
20540
|
+
spinning: O.value
|
20511
20541
|
}, {
|
20512
20542
|
default: () => [$(), createVNode("div", {
|
20513
20543
|
class: "ant-collapse-extra"
|
@@ -20662,15 +20692,13 @@ const getProps$b = () => ({
|
|
20662
20692
|
return i;
|
20663
20693
|
},
|
20664
20694
|
patchModel(e, t) {
|
20665
|
-
return
|
20695
|
+
return !e || !t || isEmpty(t) ? Promise.resolve() : new Promise((r) => {
|
20666
20696
|
const a = watch(
|
20667
20697
|
() => this.formModel.get(e),
|
20668
20698
|
(n) => {
|
20669
|
-
n && setTimeout(() => {
|
20699
|
+
n && !isEmpty(n) && setTimeout(() => {
|
20670
20700
|
a(), Object.entries(t).forEach(([i, s]) => {
|
20671
|
-
|
20672
|
-
}), KgLogger.debugDDA(e, "KgSearchStore", "patchModel()", "\u6267\u884C\u6210\u529F", {
|
20673
|
-
model: n
|
20701
|
+
i in n && (n[i] = s);
|
20674
20702
|
}), r();
|
20675
20703
|
});
|
20676
20704
|
},
|
@@ -21436,16 +21464,16 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
21436
21464
|
emit: t
|
21437
21465
|
}) {
|
21438
21466
|
const r = useKg(), a = useKgWarehouse(), n = computed(() => {
|
21439
|
-
let
|
21440
|
-
return (!g.value || e.kgInvisible) && (
|
21467
|
+
let y = "jeecg-layout-header-action__item kg-warehouse";
|
21468
|
+
return (!g.value || e.kgInvisible) && (y += " kg-warehouse--invisible"), y;
|
21441
21469
|
}), i = ref(""), s = ref(null), o = ref(!1), l = reactive([{
|
21442
21470
|
width: 80,
|
21443
21471
|
align: "center",
|
21444
21472
|
customRender: ({
|
21445
|
-
record:
|
21473
|
+
record: y
|
21446
21474
|
}) => {
|
21447
21475
|
var E;
|
21448
|
-
return
|
21476
|
+
return y.whId === ((E = s.value) == null ? void 0 : E.whId) ? createVNode("img", {
|
21449
21477
|
src: WAREHOUSE_1890ff
|
21450
21478
|
}, null) : createVNode("img", {
|
21451
21479
|
src: WAREHOUSE_000000
|
@@ -21453,30 +21481,30 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
21453
21481
|
}
|
21454
21482
|
}, {
|
21455
21483
|
customRender: ({
|
21456
|
-
record:
|
21484
|
+
record: y
|
21457
21485
|
}) => {
|
21458
|
-
var E,
|
21459
|
-
const
|
21460
|
-
return createVNode("div", null, [createVNode("div", null, [(E =
|
21486
|
+
var E, O, k;
|
21487
|
+
const V = y;
|
21488
|
+
return createVNode("div", null, [createVNode("div", null, [(E = V.whDsc) != null ? E : " ", createTextVNode(" - "), (O = V.whId) != null ? O : " "]), createVNode("div", {
|
21461
21489
|
class: "address"
|
21462
|
-
}, [(k =
|
21490
|
+
}, [(k = V.adrnam) != null ? k : " "])]);
|
21463
21491
|
}
|
21464
21492
|
}]), u = ref([]), c = computed(() => {
|
21465
|
-
var
|
21466
|
-
const
|
21493
|
+
var V;
|
21494
|
+
const y = (V = i.value) == null ? void 0 : V.toUpperCase();
|
21467
21495
|
return u.value.filter((E) => {
|
21468
|
-
var
|
21469
|
-
return ((k = (
|
21496
|
+
var O, k, N, R, D, K;
|
21497
|
+
return ((k = (O = E.whDsc) == null ? void 0 : O.toUpperCase()) == null ? void 0 : k.includes(y)) || ((R = (N = E.whId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : R.includes(y)) || ((K = (D = E.adrId) == null ? void 0 : D.toUpperCase()) == null ? void 0 : K.includes(y));
|
21470
21498
|
});
|
21471
21499
|
}), g = computed(() => {
|
21472
|
-
var
|
21473
|
-
return ((
|
21500
|
+
var y;
|
21501
|
+
return ((y = r.option.value.KgWarehouse) == null ? void 0 : y.on) !== !1;
|
21474
21502
|
}), _ = computed(() => {
|
21475
|
-
var
|
21476
|
-
return (
|
21503
|
+
var y, V, E, O;
|
21504
|
+
return (O = (E = (V = (y = r.store).getUseUserStore) == null ? void 0 : V.call(y)) == null ? void 0 : E.getUserWarehouses) != null ? O : [];
|
21477
21505
|
});
|
21478
|
-
watch(a.visible, (
|
21479
|
-
!g.value || (
|
21506
|
+
watch(a.visible, (y) => {
|
21507
|
+
!g.value || (y ? d() : m());
|
21480
21508
|
}, {
|
21481
21509
|
immediate: !0
|
21482
21510
|
}), onMounted(() => {
|
@@ -21492,8 +21520,8 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
21492
21520
|
i.value = "", u.value = [], s.value = null;
|
21493
21521
|
}
|
21494
21522
|
function v() {
|
21495
|
-
var
|
21496
|
-
!s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.whId !== ((
|
21523
|
+
var y;
|
21524
|
+
!s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.whId !== ((y = a.warehouse.value) == null ? void 0 : y.whId) && (a.store.setWarehouse(s.value), KgUtil.confirm({
|
21497
21525
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
21498
21526
|
kgHideCancelButton: !0,
|
21499
21527
|
okButtonProps: {
|
@@ -21509,31 +21537,31 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
21509
21537
|
o.value = !0;
|
21510
21538
|
try {
|
21511
21539
|
const {
|
21512
|
-
records:
|
21540
|
+
records: y
|
21513
21541
|
} = await ListVO({
|
21514
21542
|
params: {
|
21515
21543
|
pageNo: 1,
|
21516
21544
|
pageSize: 999
|
21517
21545
|
}
|
21518
21546
|
});
|
21519
|
-
u.value = (
|
21547
|
+
u.value = (y != null ? y : []).filter((V) => {
|
21520
21548
|
var E;
|
21521
|
-
return KgAuthUtil.isAdminUser() ? !0 : (E = _.value) == null ? void 0 : E.find((
|
21549
|
+
return KgAuthUtil.isAdminUser() ? !0 : (E = _.value) == null ? void 0 : E.find((O) => O.wh_id === V.whId);
|
21522
21550
|
});
|
21523
|
-
} catch (
|
21524
|
-
console.error(
|
21551
|
+
} catch (y) {
|
21552
|
+
console.error(y);
|
21525
21553
|
} finally {
|
21526
21554
|
o.value = !1;
|
21527
21555
|
}
|
21528
21556
|
}
|
21529
|
-
function C(
|
21557
|
+
function C(y, V) {
|
21530
21558
|
var E;
|
21531
|
-
switch (
|
21559
|
+
switch (y.detail) {
|
21532
21560
|
case 1:
|
21533
|
-
((E = s.value) == null ? void 0 : E.whId) ===
|
21561
|
+
((E = s.value) == null ? void 0 : E.whId) === V.whId ? s.value = null : s.value = V;
|
21534
21562
|
break;
|
21535
21563
|
case 2:
|
21536
|
-
s.value =
|
21564
|
+
s.value = V, v();
|
21537
21565
|
break;
|
21538
21566
|
}
|
21539
21567
|
}
|
@@ -21543,12 +21571,12 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
21543
21571
|
placement: "bottomRight"
|
21544
21572
|
}, {
|
21545
21573
|
default: () => {
|
21546
|
-
var
|
21547
|
-
return [((
|
21574
|
+
var y, V;
|
21575
|
+
return [((y = a.warehouse.value) == null ? void 0 : y.whDsc) || ((V = a.warehouse.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
21548
21576
|
}
|
21549
21577
|
}), createVNode(KgModal, {
|
21550
21578
|
visible: a.visible.value,
|
21551
|
-
"onUpdate:visible": (
|
21579
|
+
"onUpdate:visible": (y) => a.store.setVisible(y),
|
21552
21580
|
title: r.t("kg.KgWarehouse.title"),
|
21553
21581
|
width: "500px",
|
21554
21582
|
kgFullHeight: !1,
|
@@ -21565,7 +21593,7 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
21565
21593
|
}, {
|
21566
21594
|
default: () => [createVNode(Input, {
|
21567
21595
|
value: i.value,
|
21568
|
-
"onUpdate:value": (
|
21596
|
+
"onUpdate:value": (y) => i.value = y,
|
21569
21597
|
allowClear: !0,
|
21570
21598
|
disabled: o.value,
|
21571
21599
|
placeholder: r.t("kg.search")
|
@@ -21585,11 +21613,11 @@ const KgWarehouse$1 = "", getProps$a = () => ({
|
|
21585
21613
|
dataSource: c.value,
|
21586
21614
|
columns: l,
|
21587
21615
|
class: "kg-flex-table",
|
21588
|
-
customRow: (
|
21589
|
-
var
|
21616
|
+
customRow: (y) => {
|
21617
|
+
var V;
|
21590
21618
|
return {
|
21591
|
-
class:
|
21592
|
-
onClick: (E) => C(E,
|
21619
|
+
class: y.whId === ((V = s.value) == null ? void 0 : V.whId) ? "selected" : "",
|
21620
|
+
onClick: (E) => C(E, y)
|
21593
21621
|
};
|
21594
21622
|
}
|
21595
21623
|
}, null)]
|
@@ -21659,7 +21687,7 @@ function httpClient() {
|
|
21659
21687
|
throw new Error("\u53C2\u6570 options.dynamicQueryOperators \u4E0D\u4E3A\u7A7A, \u6240\u4EE5\u53C2\u6570 options.dayjs \u4E5F\u4E0D\u80FD\u4E3A\u7A7A.");
|
21660
21688
|
let T = {};
|
21661
21689
|
n.method === "GET" || n.method === "POST" && !n.data && n.params ? T = n.params : n.method === "POST" && n.data && (T = n.data);
|
21662
|
-
const { sql: C, whereSql: A, orderBySql:
|
21690
|
+
const { sql: C, whereSql: A, orderBySql: y, offsetSql: V, operatorJSON: E } = KgVarUtil.getQueryHeaders({
|
21663
21691
|
$dayjs: i == null ? void 0 : i.dayjs,
|
21664
21692
|
dynamicQueryOperatorModel: i == null ? void 0 : i.dynamicQueryOperatorModel,
|
21665
21693
|
formID: null,
|
@@ -21669,9 +21697,9 @@ function httpClient() {
|
|
21669
21697
|
n.headers = {
|
21670
21698
|
...(b = n.headers) != null ? b : {},
|
21671
21699
|
[o]: !0,
|
21672
|
-
[c]:
|
21700
|
+
[c]: V,
|
21673
21701
|
[_]: E,
|
21674
|
-
[u]:
|
21702
|
+
[u]: y,
|
21675
21703
|
[g]: C,
|
21676
21704
|
[l]: A
|
21677
21705
|
};
|
@@ -22458,33 +22486,33 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22458
22486
|
}
|
22459
22487
|
}), useKgPageDdaCreateStore = defineStore("KgPageDdaCreate", () => {
|
22460
22488
|
const e = useKg(), t = ref([]), r = ref(!1), a = ref([]), n = ref({}), i = computed(() => r.value), s = computed(() => a.value), o = computed(() => n.value), l = computed(() => n.value.frmId), u = computed(() => n.value.varButtons);
|
22461
|
-
function c(
|
22462
|
-
r.value =
|
22489
|
+
function c(R) {
|
22490
|
+
r.value = R != null ? R : !1;
|
22463
22491
|
}
|
22464
|
-
function g(
|
22465
|
-
a.value =
|
22492
|
+
function g(R) {
|
22493
|
+
a.value = R != null ? R : [];
|
22466
22494
|
}
|
22467
|
-
function _(
|
22468
|
-
n.value.frmId =
|
22495
|
+
function _(R) {
|
22496
|
+
n.value.frmId = R != null ? R : "", n.value.varButtons.forEach((D) => D.frm_id = R), n.value.varVariables.forEach((D) => D.frm_id = R), n.value.varDda.frm_id = R != null ? R : "", n.value.varGridConfig.frm_id = R != null ? R : "", n.value.varGridDetails.forEach((D) => D.frm_id = R), n.value.varGridMaster.frm_id = R != null ? R : "", n.value.varProfileConfig.frm_id = R != null ? R : "", n.value.varProfileDetails.forEach((D) => D.frm_id = R), n.value.varProfileMaster.frm_id = R != null ? R : "", n.value.varSubmitConfigs.forEach((D) => D.frm_id = R), n.value.varSubmitDetails.forEach((D) => D.frm_id = R), n.value.varConfigDescriptions.forEach((D) => D.frm_id = R);
|
22469
22497
|
}
|
22470
|
-
function b(
|
22471
|
-
const { properties: D = {} } =
|
22498
|
+
function b(R) {
|
22499
|
+
const { properties: D = {} } = R;
|
22472
22500
|
Object.entries(D).forEach(([K, B]) => {
|
22473
22501
|
K in n.value.sysPermissions[0] && n.value.sysPermissions[0][K] !== B && (n.value.sysPermissions[0][K] = B);
|
22474
22502
|
});
|
22475
22503
|
}
|
22476
|
-
function d(
|
22477
|
-
const { formID: D, frmNam: K } =
|
22504
|
+
function d(R) {
|
22505
|
+
const { formID: D, frmNam: K } = R;
|
22478
22506
|
n.value.varDda.frm_id = D, n.value.varDda.frm_nam = K;
|
22479
22507
|
}
|
22480
|
-
function m(
|
22508
|
+
function m(R) {
|
22481
22509
|
n.value.varButtons = [
|
22482
22510
|
...toRaw(n.value.varButtons),
|
22483
22511
|
{
|
22484
|
-
...
|
22512
|
+
...R,
|
22485
22513
|
available_flag: 1,
|
22486
22514
|
cmd: (() => {
|
22487
|
-
switch (
|
22515
|
+
switch (R.typ) {
|
22488
22516
|
case KG__VAR_BUTTON__TYPE.CREATE:
|
22489
22517
|
return "/var/VarPage/create";
|
22490
22518
|
case KG__VAR_BUTTON__TYPE.UPDATE:
|
@@ -22503,8 +22531,8 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22503
22531
|
}
|
22504
22532
|
], k();
|
22505
22533
|
}
|
22506
|
-
function v(
|
22507
|
-
const { varName: D, properties: K = {} } =
|
22534
|
+
function v(R) {
|
22535
|
+
const { varName: D, properties: K = {} } = R, B = n.value.varButtons.find((M) => M.var_nam === D);
|
22508
22536
|
if (!B)
|
22509
22537
|
return;
|
22510
22538
|
let F = !1;
|
@@ -22515,16 +22543,16 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22515
22543
|
const $ = [...n.value.varButtons];
|
22516
22544
|
$.splice(n.value.varButtons.indexOf(B), 1, { ...B }), n.value.varButtons = toRaw($);
|
22517
22545
|
}
|
22518
|
-
function T(
|
22519
|
-
const { varName: D } =
|
22546
|
+
function T(R) {
|
22547
|
+
const { varName: D } = R, K = n.value.varButtons.find((F) => F.var_nam === D);
|
22520
22548
|
if (!K)
|
22521
22549
|
return;
|
22522
22550
|
const B = [...n.value.varButtons];
|
22523
22551
|
B.splice(n.value.varButtons.indexOf(K), 1), n.value.varButtons = toRaw(B);
|
22524
22552
|
}
|
22525
|
-
function C(
|
22553
|
+
function C(R) {
|
22526
22554
|
var F;
|
22527
|
-
const { varName: D, varText: K } =
|
22555
|
+
const { varName: D, varText: K } = R;
|
22528
22556
|
if (!D)
|
22529
22557
|
return;
|
22530
22558
|
const B = n.value.varConfigDescriptions.find(($) => $.var_nam === D);
|
@@ -22544,22 +22572,22 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22544
22572
|
}
|
22545
22573
|
];
|
22546
22574
|
}
|
22547
|
-
function A(
|
22548
|
-
n.value.varProfileDetails =
|
22575
|
+
function A(R) {
|
22576
|
+
n.value.varProfileDetails = R.map((D) => ({
|
22549
22577
|
...D,
|
22550
22578
|
frm_id: l.value,
|
22551
22579
|
grp_nam: "WMS"
|
22552
22580
|
}));
|
22553
22581
|
}
|
22554
|
-
function
|
22555
|
-
n.value.varGridDetails =
|
22582
|
+
function y(R) {
|
22583
|
+
n.value.varGridDetails = R.map((D) => ({
|
22556
22584
|
...D,
|
22557
22585
|
frm_id: l.value,
|
22558
22586
|
grp_nam: "WMS"
|
22559
22587
|
}));
|
22560
22588
|
}
|
22561
|
-
function R
|
22562
|
-
n.value.varSubmitDetails =
|
22589
|
+
function V(R) {
|
22590
|
+
n.value.varSubmitDetails = R.map((D) => ({
|
22563
22591
|
...D,
|
22564
22592
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
22565
22593
|
enable_flag: 1,
|
@@ -22568,12 +22596,12 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22568
22596
|
visible_flag: 1
|
22569
22597
|
}));
|
22570
22598
|
}
|
22571
|
-
function E(
|
22599
|
+
function E(R) {
|
22572
22600
|
var D, K, B;
|
22573
|
-
return
|
22601
|
+
return R && (B = (K = (D = n.value.varConfigDescriptions) == null ? void 0 : D.find((F) => F.var_nam === R)) == null ? void 0 : K.var_text) != null ? B : "";
|
22574
22602
|
}
|
22575
|
-
function
|
22576
|
-
var
|
22603
|
+
function O() {
|
22604
|
+
var R;
|
22577
22605
|
n.value = {
|
22578
22606
|
frmId: "",
|
22579
22607
|
sysPermissions: [
|
@@ -22616,7 +22644,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22616
22644
|
cust_lvl: KG_CUSTOM_LEVEL.L0,
|
22617
22645
|
frm_id: "",
|
22618
22646
|
grp_nam: "WMS",
|
22619
|
-
locale_id: (
|
22647
|
+
locale_id: (R = e.locale) == null ? void 0 : R.value,
|
22620
22648
|
var_nam: KG__VAR_BUTTON__TYPE.SEARCH,
|
22621
22649
|
var_text: e.t("kg.query")
|
22622
22650
|
}
|
@@ -22658,15 +22686,15 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22658
22686
|
}, k();
|
22659
22687
|
}
|
22660
22688
|
function k() {
|
22661
|
-
var
|
22662
|
-
(
|
22689
|
+
var R;
|
22690
|
+
(R = n.value.varButtons) == null || R.forEach((D) => {
|
22663
22691
|
var K, B;
|
22664
22692
|
D.typDsc = (B = (K = t.value.find((F) => F.codval === D.typ)) == null ? void 0 : K.shortDsc) != null ? B : "";
|
22665
22693
|
});
|
22666
22694
|
}
|
22667
22695
|
async function N() {
|
22668
22696
|
var D;
|
22669
|
-
const { records:
|
22697
|
+
const { records: R } = await List$2({
|
22670
22698
|
params: {
|
22671
22699
|
localeId: (D = e.locale) == null ? void 0 : D.value,
|
22672
22700
|
codnam: "var_button_type",
|
@@ -22674,9 +22702,9 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22674
22702
|
pageSize: 999
|
22675
22703
|
}
|
22676
22704
|
});
|
22677
|
-
t.value =
|
22705
|
+
t.value = R != null ? R : [], k();
|
22678
22706
|
}
|
22679
|
-
return
|
22707
|
+
return O(), N(), {
|
22680
22708
|
createVarButton: m,
|
22681
22709
|
updateVarConfigDescription: C,
|
22682
22710
|
createVarDdaQuery: n,
|
@@ -22687,7 +22715,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22687
22715
|
getResultSetMetadataColumns: s,
|
22688
22716
|
getVarButtons: u,
|
22689
22717
|
getVarText: E,
|
22690
|
-
initCreateVarDdaQuery:
|
22718
|
+
initCreateVarDdaQuery: O,
|
22691
22719
|
isLoading: r,
|
22692
22720
|
patchSysPermission: b,
|
22693
22721
|
patchVarButton: v,
|
@@ -22695,9 +22723,9 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
22695
22723
|
setFormID: _,
|
22696
22724
|
setIsLoading: c,
|
22697
22725
|
setResultSetMetadataColumns: g,
|
22698
|
-
setVarGridDetails:
|
22726
|
+
setVarGridDetails: y,
|
22699
22727
|
setVarProfileDetails: A,
|
22700
|
-
setVarSubmitDetails:
|
22728
|
+
setVarSubmitDetails: V,
|
22701
22729
|
updateVarDda: d
|
22702
22730
|
};
|
22703
22731
|
});
|
@@ -23089,25 +23117,25 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23089
23117
|
case g: {
|
23090
23118
|
const {
|
23091
23119
|
var_nam: A,
|
23092
|
-
var_text:
|
23120
|
+
var_text: y
|
23093
23121
|
} = (m = d.value) != null ? m : {};
|
23094
23122
|
n.createVarButton(new VarButton(d.value)), n.updateVarConfigDescription({
|
23095
23123
|
varName: A,
|
23096
|
-
varText:
|
23124
|
+
varText: y
|
23097
23125
|
}), a.kgButton.setCurrentButton(null);
|
23098
23126
|
break;
|
23099
23127
|
}
|
23100
23128
|
case _: {
|
23101
23129
|
const {
|
23102
23130
|
var_nam: A,
|
23103
|
-
var_text:
|
23131
|
+
var_text: y
|
23104
23132
|
} = (v = d.value) != null ? v : {};
|
23105
23133
|
n.patchVarButton({
|
23106
23134
|
varName: A,
|
23107
23135
|
properties: (T = d.value) != null ? T : {}
|
23108
23136
|
}), n.updateVarConfigDescription({
|
23109
23137
|
varName: A,
|
23110
|
-
varText:
|
23138
|
+
varText: y
|
23111
23139
|
}), a.kgButton.setCurrentButton(null);
|
23112
23140
|
break;
|
23113
23141
|
}
|
@@ -23467,10 +23495,10 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23467
23495
|
disabled: d || C.disabled || typeof C.id == "string" && C.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
23468
23496
|
}),
|
23469
23497
|
onSelectAll(C, A) {
|
23470
|
-
const
|
23471
|
-
key:
|
23472
|
-
}) =>
|
23473
|
-
v(
|
23498
|
+
const y = A.filter((V) => !V.disabled).map(({
|
23499
|
+
key: V
|
23500
|
+
}) => V);
|
23501
|
+
v(y, C);
|
23474
23502
|
},
|
23475
23503
|
onSelect(C, A) {
|
23476
23504
|
T(C.key, A);
|
@@ -23536,11 +23564,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23536
23564
|
onItemSelectAll: C,
|
23537
23565
|
onItemSelect: A
|
23538
23566
|
}) => {
|
23539
|
-
const
|
23540
|
-
var
|
23541
|
-
return ((
|
23567
|
+
const y = m.sort((V, E) => {
|
23568
|
+
var O, k;
|
23569
|
+
return ((O = V.srtseq) != null ? O : 0) - ((k = E.srtseq) != null ? k : 0);
|
23542
23570
|
});
|
23543
|
-
return d === "right" && (s.value =
|
23571
|
+
return d === "right" && (s.value = y, y.find((V) => V.id === __KG__CREATE_ROW_ID__) || y.push({
|
23544
23572
|
id: __KG__CREATE_ROW_ID__,
|
23545
23573
|
direction: "right",
|
23546
23574
|
disabled: !0
|
@@ -23554,9 +23582,9 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23554
23582
|
},
|
23555
23583
|
columns: d === "left" ? o() : l(),
|
23556
23584
|
rowKey: "id",
|
23557
|
-
dataSource:
|
23558
|
-
customRow: (
|
23559
|
-
onClick: (
|
23585
|
+
dataSource: y,
|
23586
|
+
customRow: (V) => ({
|
23587
|
+
onClick: (O) => _(O, V, d, v)
|
23560
23588
|
}),
|
23561
23589
|
rowSelection: g({
|
23562
23590
|
disabled: T,
|
@@ -23710,10 +23738,10 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23710
23738
|
disabled: d || C.disabled || typeof C.id == "string" && C.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
23711
23739
|
}),
|
23712
23740
|
onSelectAll(C, A) {
|
23713
|
-
const
|
23714
|
-
key:
|
23715
|
-
}) =>
|
23716
|
-
v(
|
23741
|
+
const y = A.filter((V) => !V.disabled).map(({
|
23742
|
+
key: V
|
23743
|
+
}) => V);
|
23744
|
+
v(y, C);
|
23717
23745
|
},
|
23718
23746
|
onSelect(C, A) {
|
23719
23747
|
T(C.key, A);
|
@@ -23778,11 +23806,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23778
23806
|
onItemSelectAll: C,
|
23779
23807
|
onItemSelect: A
|
23780
23808
|
}) => {
|
23781
|
-
const
|
23782
|
-
var
|
23783
|
-
return ((
|
23809
|
+
const y = m.sort((V, E) => {
|
23810
|
+
var O, k;
|
23811
|
+
return ((O = V.srtseq) != null ? O : 0) - ((k = E.srtseq) != null ? k : 0);
|
23784
23812
|
});
|
23785
|
-
return d === "right" && (s.value =
|
23813
|
+
return d === "right" && (s.value = y, y.find((V) => V.id === __KG__CREATE_ROW_ID__) || y.push({
|
23786
23814
|
id: __KG__CREATE_ROW_ID__,
|
23787
23815
|
direction: "right",
|
23788
23816
|
disabled: !0
|
@@ -23796,9 +23824,9 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23796
23824
|
},
|
23797
23825
|
columns: d === "left" ? o() : l(),
|
23798
23826
|
rowKey: "id",
|
23799
|
-
dataSource:
|
23800
|
-
customRow: (
|
23801
|
-
onClick: (
|
23827
|
+
dataSource: y,
|
23828
|
+
customRow: (V) => ({
|
23829
|
+
onClick: (O) => _(O, V, d, v)
|
23802
23830
|
}),
|
23803
23831
|
rowSelection: g({
|
23804
23832
|
disabled: T,
|
@@ -23951,10 +23979,10 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
23951
23979
|
disabled: d || C.disabled || typeof C.id == "string" && C.id.startsWith(__KG__CUSTOM_ROW_ID__)
|
23952
23980
|
}),
|
23953
23981
|
onSelectAll(C, A) {
|
23954
|
-
const
|
23955
|
-
key:
|
23956
|
-
}) =>
|
23957
|
-
v(
|
23982
|
+
const y = A.filter((V) => !V.disabled).map(({
|
23983
|
+
key: V
|
23984
|
+
}) => V);
|
23985
|
+
v(y, C);
|
23958
23986
|
},
|
23959
23987
|
onSelect(C, A) {
|
23960
23988
|
T(C.key, A);
|
@@ -24019,11 +24047,11 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
24019
24047
|
onItemSelectAll: C,
|
24020
24048
|
onItemSelect: A
|
24021
24049
|
}) => {
|
24022
|
-
const
|
24023
|
-
var
|
24024
|
-
return ((
|
24050
|
+
const y = m.sort((V, E) => {
|
24051
|
+
var O, k;
|
24052
|
+
return ((O = V.srtseq) != null ? O : 0) - ((k = E.srtseq) != null ? k : 0);
|
24025
24053
|
});
|
24026
|
-
return d === "right" && (s.value =
|
24054
|
+
return d === "right" && (s.value = y, y.find((V) => V.id === __KG__CREATE_ROW_ID__) || y.push({
|
24027
24055
|
id: __KG__CREATE_ROW_ID__,
|
24028
24056
|
direction: "right",
|
24029
24057
|
disabled: !0
|
@@ -24037,9 +24065,9 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
24037
24065
|
},
|
24038
24066
|
columns: d === "left" ? o() : l(),
|
24039
24067
|
rowKey: "id",
|
24040
|
-
dataSource:
|
24041
|
-
customRow: (
|
24042
|
-
onClick: (
|
24068
|
+
dataSource: y,
|
24069
|
+
customRow: (V) => ({
|
24070
|
+
onClick: (O) => _(O, V, d, v)
|
24043
24071
|
}),
|
24044
24072
|
rowSelection: g({
|
24045
24073
|
disabled: T,
|
@@ -24063,18 +24091,18 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
24063
24091
|
emit: t
|
24064
24092
|
}) {
|
24065
24093
|
const r = useKg(), a = useKgPageDdaCreateStore(getPinia()), n = ref(1), i = computed(() => {
|
24066
|
-
let
|
24067
|
-
return
|
24094
|
+
let V = "kg-page-dda-create";
|
24095
|
+
return V += ` kg-page-dda-create--step-${n.value}`, V;
|
24068
24096
|
}), s = computed(() => !!a.getIsLoading), o = computed(() => !!a.getIsLoading), l = computed(() => !!a.getIsLoading), u = computed(() => !1), c = ref(null), g = ref(null), _ = ref(null), b = ref(null), d = ref(null), m = ref(null), v = ref(null);
|
24069
24097
|
function T() {
|
24070
24098
|
n.value !== 1 && (n.value -= 1);
|
24071
24099
|
}
|
24072
24100
|
async function C() {
|
24073
|
-
var
|
24101
|
+
var V, E, O, k, N, R;
|
24074
24102
|
switch (n.value) {
|
24075
24103
|
case 1:
|
24076
24104
|
try {
|
24077
|
-
await ((
|
24105
|
+
await ((V = c.value) == null ? void 0 : V.onSubmit()), n.value += 1;
|
24078
24106
|
} catch {
|
24079
24107
|
}
|
24080
24108
|
break;
|
@@ -24086,7 +24114,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
24086
24114
|
break;
|
24087
24115
|
case 3:
|
24088
24116
|
try {
|
24089
|
-
await ((
|
24117
|
+
await ((O = _.value) == null ? void 0 : O.onSubmit()), n.value += 1;
|
24090
24118
|
} catch {
|
24091
24119
|
}
|
24092
24120
|
break;
|
@@ -24104,29 +24132,29 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
24104
24132
|
break;
|
24105
24133
|
case 6:
|
24106
24134
|
try {
|
24107
|
-
await ((
|
24135
|
+
await ((R = m.value) == null ? void 0 : R.onSubmit()), n.value += 1;
|
24108
24136
|
} catch {
|
24109
24137
|
}
|
24110
24138
|
break;
|
24111
24139
|
}
|
24112
24140
|
}
|
24113
24141
|
async function A() {
|
24114
|
-
var
|
24142
|
+
var V;
|
24115
24143
|
try {
|
24116
|
-
await ((
|
24117
|
-
const E = cloneDeep(toRaw(a.getCreateVarDdaQuery)),
|
24118
|
-
E.varVariables =
|
24144
|
+
await ((V = v.value) == null ? void 0 : V.onSubmit());
|
24145
|
+
const E = cloneDeep(toRaw(a.getCreateVarDdaQuery)), O = uniq(compact([...E.varButtons.map((k) => k.var_nam), ...E.varGridDetails.map((k) => k.var_nam), ...E.varProfileDetails.map((k) => k.var_nam), ...E.varSubmitDetails.map((k) => k.var_nam), E.varGridMaster.grd_var_nam, E.varProfileMaster.prf_var_nam]));
|
24146
|
+
E.varVariables = O.map((k) => new VarVariable({
|
24119
24147
|
frm_id: E.frmId,
|
24120
24148
|
var_nam: k,
|
24121
24149
|
grp_nam: "WMS"
|
24122
|
-
})), E.varConfigDescriptions = toRaw(E.varConfigDescriptions.filter((k) =>
|
24123
|
-
var
|
24150
|
+
})), E.varConfigDescriptions = toRaw(E.varConfigDescriptions.filter((k) => O.includes(k.var_nam))), E.varButtons.forEach((k, N) => {
|
24151
|
+
var R, D, K;
|
24124
24152
|
delete k.id, E.sysPermissions.push({
|
24125
24153
|
app: "WEB",
|
24126
24154
|
delFlag: 0,
|
24127
24155
|
leaf: !0,
|
24128
24156
|
menuType: 2,
|
24129
|
-
name: (D = (
|
24157
|
+
name: (D = (R = E.varConfigDescriptions.find((B) => B.var_nam === k.var_nam)) == null ? void 0 : R.var_text) != null ? D : "",
|
24130
24158
|
parentId: "",
|
24131
24159
|
perms: (K = k.permission_code) != null ? K : "",
|
24132
24160
|
permsType: "0",
|
@@ -24147,7 +24175,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
24147
24175
|
} catch {
|
24148
24176
|
}
|
24149
24177
|
}
|
24150
|
-
function
|
24178
|
+
function y() {
|
24151
24179
|
KgUtil.confirm({
|
24152
24180
|
content: r.t("kg.KgPageDdaCreate.confirm-cancel"),
|
24153
24181
|
onOk: () => {
|
@@ -24233,7 +24261,7 @@ const getProps$8 = () => ({}), KgPageDdaCreateBasic = defineComponent({
|
|
24233
24261
|
}), createVNode(Button, {
|
24234
24262
|
danger: !0,
|
24235
24263
|
disabled: u.value,
|
24236
|
-
onClick:
|
24264
|
+
onClick: y
|
24237
24265
|
}, {
|
24238
24266
|
default: () => [createVNode(StopOutlined$1, null, null), r.t("kg.cancel")]
|
24239
24267
|
})])]);
|