@kengic/vue 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +741 -734
- package/dist/src/consts/index.d.ts +4 -2
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1824,8 +1824,8 @@ function generate$1(e) {
|
|
1824
1824
|
r.push(c);
|
1825
1825
|
}
|
1826
1826
|
return t.theme === "dark" ? darkColorMap.map(function(u) {
|
1827
|
-
var d = u.index, m = u.opacity,
|
1828
|
-
return
|
1827
|
+
var d = u.index, m = u.opacity, v = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[d]), m * 100));
|
1828
|
+
return v;
|
1829
1829
|
}) : r;
|
1830
1830
|
}
|
1831
1831
|
var presetPrimaryColors = {
|
@@ -2181,25 +2181,25 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
2181
2181
|
}
|
2182
2182
|
setTwoToneColor("#1890ff");
|
2183
2183
|
var Icon$1 = function(t, r) {
|
2184
|
-
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, l = n.icon, s = n.spin, i = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded),
|
2184
|
+
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, l = n.icon, s = n.spin, i = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded), v = (a = {
|
2185
2185
|
anticon: !0
|
2186
2186
|
}, _defineProperty$k(a, "anticon-".concat(l.name), Boolean(l.name)), _defineProperty$k(a, o, o), a), C = s === "" || !!s || l.name === "loading" ? "anticon-spin" : "", g = c;
|
2187
2187
|
g === void 0 && d && (g = -1, m.tabindex = g);
|
2188
2188
|
var _ = i ? {
|
2189
2189
|
msTransform: "rotate(".concat(i, "deg)"),
|
2190
2190
|
transform: "rotate(".concat(i, "deg)")
|
2191
|
-
} : void 0, y = normalizeTwoToneColors(u),
|
2191
|
+
} : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), T = b[0], k = b[1];
|
2192
2192
|
return createVNode("span", _objectSpread$k({
|
2193
2193
|
role: "img",
|
2194
2194
|
"aria-label": l.name
|
2195
2195
|
}, m, {
|
2196
2196
|
onClick: d,
|
2197
|
-
class:
|
2197
|
+
class: v
|
2198
2198
|
}), [createVNode(VueIcon, {
|
2199
2199
|
class: C,
|
2200
2200
|
icon: l,
|
2201
|
-
primaryColor:
|
2202
|
-
secondaryColor:
|
2201
|
+
primaryColor: T,
|
2202
|
+
secondaryColor: k,
|
2203
2203
|
style: _
|
2204
2204
|
}, null)]);
|
2205
2205
|
};
|
@@ -3002,17 +3002,17 @@ function iconToSVG(e, t) {
|
|
3002
3002
|
let o = r.body;
|
3003
3003
|
[r, a].forEach((C) => {
|
3004
3004
|
const g = [], _ = C.hFlip, y = C.vFlip;
|
3005
|
-
let
|
3006
|
-
_ ? y ?
|
3005
|
+
let b = C.rotate;
|
3006
|
+
_ ? y ? b += 2 : (g.push(
|
3007
3007
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3008
3008
|
), g.push("scale(-1 1)"), n.top = n.left = 0) : y && (g.push(
|
3009
3009
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3010
3010
|
), g.push("scale(1 -1)"), n.top = n.left = 0);
|
3011
|
-
let
|
3012
|
-
switch (
|
3011
|
+
let T;
|
3012
|
+
switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
|
3013
3013
|
case 1:
|
3014
|
-
|
3015
|
-
"rotate(90 " +
|
3014
|
+
T = n.height / 2 + n.top, g.unshift(
|
3015
|
+
"rotate(90 " + T.toString() + " " + T.toString() + ")"
|
3016
3016
|
);
|
3017
3017
|
break;
|
3018
3018
|
case 2:
|
@@ -3021,20 +3021,20 @@ function iconToSVG(e, t) {
|
|
3021
3021
|
);
|
3022
3022
|
break;
|
3023
3023
|
case 3:
|
3024
|
-
|
3025
|
-
"rotate(-90 " +
|
3024
|
+
T = n.width / 2 + n.left, g.unshift(
|
3025
|
+
"rotate(-90 " + T.toString() + " " + T.toString() + ")"
|
3026
3026
|
);
|
3027
3027
|
break;
|
3028
3028
|
}
|
3029
|
-
|
3029
|
+
b % 2 === 1 && (n.left !== n.top && (T = n.left, n.left = n.top, n.top = T), n.width !== n.height && (T = n.width, n.width = n.height, n.height = T)), g.length && (o = '<g transform="' + g.join(" ") + '">' + o + "</g>");
|
3030
3030
|
});
|
3031
3031
|
const l = a.width, s = a.height, i = n.width, c = n.height;
|
3032
3032
|
let u, d;
|
3033
3033
|
l === null ? (d = s === null ? "1em" : s === "auto" ? c : s, u = calculateSize(d, i / c)) : (u = l === "auto" ? i : l, d = s === null ? calculateSize(u, c / i) : s === "auto" ? c : s);
|
3034
|
-
const m = {},
|
3034
|
+
const m = {}, v = (C, g) => {
|
3035
3035
|
isUnsetKeyword(g) || (m[C] = g.toString());
|
3036
3036
|
};
|
3037
|
-
return
|
3037
|
+
return v("width", u), v("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + i.toString() + " " + c.toString(), {
|
3038
3038
|
attributes: m,
|
3039
3039
|
body: o
|
3040
3040
|
};
|
@@ -3315,8 +3315,8 @@ function sendQuery(e, t, r, a) {
|
|
3315
3315
|
} else
|
3316
3316
|
l = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3317
3317
|
const s = Date.now();
|
3318
|
-
let i = "pending", c = 0, u, d = null, m = [],
|
3319
|
-
typeof a == "function" &&
|
3318
|
+
let i = "pending", c = 0, u, d = null, m = [], v = [];
|
3319
|
+
typeof a == "function" && v.push(a);
|
3320
3320
|
function C() {
|
3321
3321
|
d && (clearTimeout(d), d = null);
|
3322
3322
|
}
|
@@ -3326,7 +3326,7 @@ function sendQuery(e, t, r, a) {
|
|
3326
3326
|
}), m = [];
|
3327
3327
|
}
|
3328
3328
|
function _(E, P) {
|
3329
|
-
P && (
|
3329
|
+
P && (v = []), typeof E == "function" && v.push(E);
|
3330
3330
|
}
|
3331
3331
|
function y() {
|
3332
3332
|
return {
|
@@ -3339,17 +3339,17 @@ function sendQuery(e, t, r, a) {
|
|
3339
3339
|
abort: g
|
3340
3340
|
};
|
3341
3341
|
}
|
3342
|
-
function
|
3343
|
-
i = "failed",
|
3342
|
+
function b() {
|
3343
|
+
i = "failed", v.forEach((E) => {
|
3344
3344
|
E(void 0, u);
|
3345
3345
|
});
|
3346
3346
|
}
|
3347
|
-
function
|
3347
|
+
function T() {
|
3348
3348
|
m.forEach((E) => {
|
3349
3349
|
E.status === "pending" && (E.status = "aborted");
|
3350
3350
|
}), m = [];
|
3351
3351
|
}
|
3352
|
-
function
|
3352
|
+
function k(E, P, M) {
|
3353
3353
|
const A = P !== "success";
|
3354
3354
|
switch (m = m.filter((w) => w !== E), i) {
|
3355
3355
|
case "pending":
|
@@ -3362,22 +3362,22 @@ function sendQuery(e, t, r, a) {
|
|
3362
3362
|
return;
|
3363
3363
|
}
|
3364
3364
|
if (P === "abort") {
|
3365
|
-
u =
|
3365
|
+
u = M, b();
|
3366
3366
|
return;
|
3367
3367
|
}
|
3368
3368
|
if (A) {
|
3369
|
-
u =
|
3369
|
+
u = M, m.length || (l.length ? I() : b());
|
3370
3370
|
return;
|
3371
3371
|
}
|
3372
|
-
if (C(),
|
3372
|
+
if (C(), T(), !e.random) {
|
3373
3373
|
const w = e.resources.indexOf(E.resource);
|
3374
3374
|
w !== -1 && w !== e.index && (e.index = w);
|
3375
3375
|
}
|
3376
|
-
i = "completed",
|
3377
|
-
w(
|
3376
|
+
i = "completed", v.forEach((w) => {
|
3377
|
+
w(M);
|
3378
3378
|
});
|
3379
3379
|
}
|
3380
|
-
function
|
3380
|
+
function I() {
|
3381
3381
|
if (i !== "pending")
|
3382
3382
|
return;
|
3383
3383
|
C();
|
@@ -3385,23 +3385,23 @@ function sendQuery(e, t, r, a) {
|
|
3385
3385
|
if (E === void 0) {
|
3386
3386
|
if (m.length) {
|
3387
3387
|
d = setTimeout(() => {
|
3388
|
-
C(), i === "pending" && (
|
3388
|
+
C(), i === "pending" && (T(), b());
|
3389
3389
|
}, e.timeout);
|
3390
3390
|
return;
|
3391
3391
|
}
|
3392
|
-
|
3392
|
+
b();
|
3393
3393
|
return;
|
3394
3394
|
}
|
3395
3395
|
const P = {
|
3396
3396
|
status: "pending",
|
3397
3397
|
resource: E,
|
3398
|
-
callback: (
|
3399
|
-
|
3398
|
+
callback: (M, A) => {
|
3399
|
+
k(P, M, A);
|
3400
3400
|
}
|
3401
3401
|
};
|
3402
|
-
m.push(P), c++, d = setTimeout(
|
3402
|
+
m.push(P), c++, d = setTimeout(I, e.rotate), r(E, t, P.callback);
|
3403
3403
|
}
|
3404
|
-
return setTimeout(
|
3404
|
+
return setTimeout(I), y;
|
3405
3405
|
}
|
3406
3406
|
function initRedundancy(e) {
|
3407
3407
|
const t = {
|
@@ -3666,8 +3666,8 @@ const loadIcons = (e, t) => {
|
|
3666
3666
|
const d = n[c] || (n[c] = /* @__PURE__ */ Object.create(null));
|
3667
3667
|
d[u] || (d[u] = []);
|
3668
3668
|
}), a.pending.forEach((i) => {
|
3669
|
-
const { provider: c, prefix: u, name: d } = i, m = getStorage(c, u),
|
3670
|
-
|
3669
|
+
const { provider: c, prefix: u, name: d } = i, m = getStorage(c, u), v = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
3670
|
+
v.has(d) || (v.add(d), n[c][u].push(d));
|
3671
3671
|
}), o.forEach((i) => {
|
3672
3672
|
const { provider: c, prefix: u } = i;
|
3673
3673
|
n[c][u].length && loadNewIcons(i, n[c][u]);
|
@@ -3817,7 +3817,7 @@ const render = (e, t) => {
|
|
3817
3817
|
let g = 0, _ = t.id;
|
3818
3818
|
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(i.body, _ ? () => _ + "ID" + g++ : "iconifyVue"), h("svg", a);
|
3819
3819
|
}
|
3820
|
-
const { body: u, width: d, height: m } = e,
|
3820
|
+
const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), C = iconToHTML(u, {
|
3821
3821
|
...c,
|
3822
3822
|
width: d + "",
|
3823
3823
|
height: m + ""
|
@@ -3828,7 +3828,7 @@ const render = (e, t) => {
|
|
3828
3828
|
width: fixSize(c.width),
|
3829
3829
|
height: fixSize(c.height),
|
3830
3830
|
...commonProps,
|
3831
|
-
...
|
3831
|
+
...v ? monotoneProps : coloredProps,
|
3832
3832
|
...s
|
3833
3833
|
}, h("span", a);
|
3834
3834
|
};
|
@@ -3930,15 +3930,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3930
3930
|
(function(r, a) {
|
3931
3931
|
e.exports = a();
|
3932
3932
|
})(commonjsGlobal, function() {
|
3933
|
-
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", l = "second", s = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter",
|
3933
|
+
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", l = "second", s = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", C = "date", g = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
|
3934
3934
|
var O = ["th", "st", "nd", "rd"], D = V % 100;
|
3935
3935
|
return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
|
3936
|
-
} },
|
3936
|
+
} }, T = function(V, O, D) {
|
3937
3937
|
var N = String(V);
|
3938
3938
|
return !N || N.length >= O ? V : "" + Array(O + 1 - N.length).join(D) + V;
|
3939
|
-
},
|
3939
|
+
}, k = { s: T, z: function(V) {
|
3940
3940
|
var O = -V.utcOffset(), D = Math.abs(O), N = Math.floor(D / 60), K = D % 60;
|
3941
|
-
return (O <= 0 ? "+" : "-") +
|
3941
|
+
return (O <= 0 ? "+" : "-") + T(N, 2, "0") + ":" + T(K, 2, "0");
|
3942
3942
|
}, m: function V(O, D) {
|
3943
3943
|
if (O.date() < D.date())
|
3944
3944
|
return -V(D, O);
|
@@ -3947,17 +3947,17 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3947
3947
|
}, a: function(V) {
|
3948
3948
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3949
3949
|
}, p: function(V) {
|
3950
|
-
return { M: d, y:
|
3950
|
+
return { M: d, y: v, w: u, d: c, D: C, h: i, m: s, s: l, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
3951
3951
|
}, u: function(V) {
|
3952
3952
|
return V === void 0;
|
3953
|
-
} },
|
3954
|
-
E[
|
3953
|
+
} }, I = "en", E = {};
|
3954
|
+
E[I] = b;
|
3955
3955
|
var P = function(V) {
|
3956
3956
|
return V instanceof U;
|
3957
|
-
},
|
3957
|
+
}, M = function V(O, D, N) {
|
3958
3958
|
var K;
|
3959
3959
|
if (!O)
|
3960
|
-
return
|
3960
|
+
return I;
|
3961
3961
|
if (typeof O == "string") {
|
3962
3962
|
var H = O.toLowerCase();
|
3963
3963
|
E[H] && (K = H), D && (E[H] = D, K = H);
|
@@ -3968,19 +3968,19 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3968
3968
|
var G = O.name;
|
3969
3969
|
E[G] = O, K = G;
|
3970
3970
|
}
|
3971
|
-
return !N && K && (
|
3971
|
+
return !N && K && (I = K), K || !N && I;
|
3972
3972
|
}, A = function(V, O) {
|
3973
3973
|
if (P(V))
|
3974
3974
|
return V.clone();
|
3975
3975
|
var D = typeof O == "object" ? O : {};
|
3976
3976
|
return D.date = V, D.args = arguments, new U(D);
|
3977
|
-
}, w =
|
3978
|
-
w.l =
|
3977
|
+
}, w = k;
|
3978
|
+
w.l = M, w.i = P, w.w = function(V, O) {
|
3979
3979
|
return A(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3980
3980
|
};
|
3981
3981
|
var U = function() {
|
3982
3982
|
function V(D) {
|
3983
|
-
this.$L =
|
3983
|
+
this.$L = M(D.locale, null, !0), this.parse(D);
|
3984
3984
|
}
|
3985
3985
|
var O = V.prototype;
|
3986
3986
|
return O.parse = function(D) {
|
@@ -4029,7 +4029,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4029
4029
|
return w.w(K.toDate()[ce].apply(K.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), K);
|
4030
4030
|
}, Q = this.$W, q = this.$M, te = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
4031
4031
|
switch (L) {
|
4032
|
-
case
|
4032
|
+
case v:
|
4033
4033
|
return H ? G(1, 0) : G(31, 11);
|
4034
4034
|
case d:
|
4035
4035
|
return H ? G(1, q) : G(0, q + 1);
|
@@ -4051,8 +4051,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4051
4051
|
}, O.endOf = function(D) {
|
4052
4052
|
return this.startOf(D, !1);
|
4053
4053
|
}, O.$set = function(D, N) {
|
4054
|
-
var K, H = w.p(D), L = "set" + (this.$u ? "UTC" : ""), G = (K = {}, K[c] = L + "Date", K[C] = L + "Date", K[d] = L + "Month", K[
|
4055
|
-
if (H === d || H ===
|
4054
|
+
var K, H = w.p(D), L = "set" + (this.$u ? "UTC" : ""), G = (K = {}, K[c] = L + "Date", K[C] = L + "Date", K[d] = L + "Month", K[v] = L + "FullYear", K[i] = L + "Hours", K[s] = L + "Minutes", K[l] = L + "Seconds", K[o] = L + "Milliseconds", K)[H], Y = H === c ? this.$D + (N - this.$W) : N;
|
4055
|
+
if (H === d || H === v) {
|
4056
4056
|
var Q = this.clone().set(C, 1);
|
4057
4057
|
Q.$d[G](Y), Q.init(), this.$d = Q.set(C, Math.min(this.$D, Q.daysInMonth())).$d;
|
4058
4058
|
} else
|
@@ -4071,8 +4071,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4071
4071
|
};
|
4072
4072
|
if (L === d)
|
4073
4073
|
return this.set(d, this.$M + D);
|
4074
|
-
if (L ===
|
4075
|
-
return this.set(
|
4074
|
+
if (L === v)
|
4075
|
+
return this.set(v, this.$y + D);
|
4076
4076
|
if (L === c)
|
4077
4077
|
return G(1);
|
4078
4078
|
if (L === u)
|
@@ -4100,7 +4100,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4100
4100
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4101
4101
|
}, O.diff = function(D, N, K) {
|
4102
4102
|
var H, L = w.p(N), G = A(D), Y = (G.utcOffset() - this.utcOffset()) * a, Q = this - G, q = w.m(this, G);
|
4103
|
-
return q = (H = {}, H[
|
4103
|
+
return q = (H = {}, H[v] = q / 12, H[d] = q, H[m] = q / 3, H[u] = (Q - Y) / 6048e5, H[c] = (Q - Y) / 864e5, H[i] = Q / n, H[s] = Q / a, H[l] = Q / r, H)[L] || Q, K ? q : w.a(q);
|
4104
4104
|
}, O.daysInMonth = function() {
|
4105
4105
|
return this.endOf(d).$D;
|
4106
4106
|
}, O.$locale = function() {
|
@@ -4108,7 +4108,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4108
4108
|
}, O.locale = function(D, N) {
|
4109
4109
|
if (!D)
|
4110
4110
|
return this.$L;
|
4111
|
-
var K = this.clone(), H =
|
4111
|
+
var K = this.clone(), H = M(D, N, !0);
|
4112
4112
|
return H && (K.$L = H), K;
|
4113
4113
|
}, O.clone = function() {
|
4114
4114
|
return w.w(this.$d, this);
|
@@ -4122,15 +4122,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4122
4122
|
return this.$d.toUTCString();
|
4123
4123
|
}, V;
|
4124
4124
|
}(), $ = U.prototype;
|
4125
|
-
return A.prototype = $, [["$ms", o], ["$s", l], ["$m", s], ["$H", i], ["$W", c], ["$M", d], ["$y",
|
4125
|
+
return A.prototype = $, [["$ms", o], ["$s", l], ["$m", s], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", C]].forEach(function(V) {
|
4126
4126
|
$[V[1]] = function(O) {
|
4127
4127
|
return this.$g(O, V[0], V[1]);
|
4128
4128
|
};
|
4129
4129
|
}), A.extend = function(V, O) {
|
4130
4130
|
return V.$i || (V(O, U, A), V.$i = !0), A;
|
4131
|
-
}, A.locale =
|
4131
|
+
}, A.locale = M, A.isDayjs = P, A.unix = function(V) {
|
4132
4132
|
return A(1e3 * V);
|
4133
|
-
}, A.en = E[
|
4133
|
+
}, A.en = E[I], A.Ls = E, A.p = {}, A;
|
4134
4134
|
});
|
4135
4135
|
})(dayjs_min);
|
4136
4136
|
const dayjs = dayjs_min.exports;
|
@@ -4170,37 +4170,37 @@ function filesize(e, {
|
|
4170
4170
|
standard: u = EMPTY,
|
4171
4171
|
output: d = STRING,
|
4172
4172
|
fullform: m = !1,
|
4173
|
-
fullforms:
|
4173
|
+
fullforms: v = [],
|
4174
4174
|
exponent: C = -1,
|
4175
4175
|
roundingMethod: g = ROUND,
|
4176
4176
|
precision: _ = 0
|
4177
4177
|
} = {}) {
|
4178
|
-
let y = C,
|
4178
|
+
let y = C, b = Number(e), T = [], k = 0, I = EMPTY;
|
4179
4179
|
a === -1 && u.length === 0 ? (a = 10, u = JEDEC) : a === -1 && u.length > 0 ? (u = u === IEC ? IEC : JEDEC, a = u === IEC ? 2 : 10) : (a = a === 2 ? 2 : 10, u = a === 10 || u === JEDEC ? JEDEC : IEC);
|
4180
|
-
const E = a === 10 ? 1e3 : 1024, P = m === !0,
|
4180
|
+
const E = a === 10 ? 1e3 : 1024, P = m === !0, M = b < 0, A = Math[g];
|
4181
4181
|
if (typeof e != "bigint" && isNaN(e))
|
4182
4182
|
throw new TypeError(INVALID_NUMBER);
|
4183
4183
|
if (typeof A !== FUNCTION)
|
4184
4184
|
throw new TypeError(INVALID_ROUND);
|
4185
|
-
if (
|
4185
|
+
if (M && (b = -b), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(b) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
|
4186
4186
|
return y;
|
4187
|
-
if (
|
4188
|
-
|
4187
|
+
if (b === 0)
|
4188
|
+
T[0] = 0, I = T[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4189
4189
|
else {
|
4190
|
-
|
4190
|
+
k = b / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (k = k * 8, k >= E && y < 8 && (k = k / E, y++));
|
4191
4191
|
const w = Math.pow(10, y > 0 ? n : 0);
|
4192
|
-
|
4192
|
+
T[0] = A(k * w) / w, T[0] === E && y < 8 && C === -1 && (T[0] = 1, y++), I = T[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4193
4193
|
}
|
4194
|
-
if (
|
4195
|
-
const w = s || PERIOD, U =
|
4196
|
-
|
4194
|
+
if (M && (T[0] = -T[0]), _ > 0 && (T[0] = T[0].toPrecision(_)), T[1] = c[T[1]] || T[1], o === !0 ? T[0] = T[0].toLocaleString() : o.length > 0 ? T[0] = T[0].toLocaleString(o, l) : s.length > 0 && (T[0] = T[0].toString().replace(PERIOD, s)), r && Number.isInteger(T[0]) === !1 && n > 0) {
|
4195
|
+
const w = s || PERIOD, U = T[0].toString().split(w), $ = U[1] || EMPTY, V = $.length, O = n - V;
|
4196
|
+
T[0] = `${U[0]}${w}${$.padEnd(V + O, ZERO)}`;
|
4197
4197
|
}
|
4198
|
-
return P && (
|
4199
|
-
value:
|
4200
|
-
symbol:
|
4198
|
+
return P && (T[1] = v[y] ? v[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (T[0] === 1 ? EMPTY : S)), d === ARRAY ? T : d === OBJECT ? {
|
4199
|
+
value: T[0],
|
4200
|
+
symbol: T[1],
|
4201
4201
|
exponent: y,
|
4202
|
-
unit:
|
4203
|
-
} :
|
4202
|
+
unit: I
|
4203
|
+
} : T.join(i);
|
4204
4204
|
}
|
4205
4205
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
4206
4206
|
const freeGlobal$1 = freeGlobal;
|
@@ -5241,9 +5241,9 @@ function baseClone(e, t, r, a, n, o) {
|
|
5241
5241
|
}
|
5242
5242
|
}
|
5243
5243
|
o || (o = new Stack());
|
5244
|
-
var
|
5245
|
-
if (
|
5246
|
-
return
|
5244
|
+
var v = o.get(e);
|
5245
|
+
if (v)
|
5246
|
+
return v;
|
5247
5247
|
o.set(e, l), isSet$1(e) ? e.forEach(function(_) {
|
5248
5248
|
l.add(baseClone(_, t, r, _, e, o));
|
5249
5249
|
}) : isMap$1(e) && e.forEach(function(_, y) {
|
@@ -5289,7 +5289,7 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5289
5289
|
var c = o.get(e), u = o.get(t);
|
5290
5290
|
if (c && u)
|
5291
5291
|
return c == t && u == e;
|
5292
|
-
var d = -1, m = !0,
|
5292
|
+
var d = -1, m = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5293
5293
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
5294
5294
|
var C = e[d], g = t[d];
|
5295
5295
|
if (a)
|
@@ -5300,10 +5300,10 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5300
5300
|
m = !1;
|
5301
5301
|
break;
|
5302
5302
|
}
|
5303
|
-
if (
|
5304
|
-
if (!arraySome(t, function(y,
|
5305
|
-
if (!cacheHas(
|
5306
|
-
return
|
5303
|
+
if (v) {
|
5304
|
+
if (!arraySome(t, function(y, b) {
|
5305
|
+
if (!cacheHas(v, b) && (C === y || n(C, y, r, a, o)))
|
5306
|
+
return v.push(b);
|
5307
5307
|
})) {
|
5308
5308
|
m = !1;
|
5309
5309
|
break;
|
@@ -5373,25 +5373,25 @@ function equalObjects(e, t, r, a, n, o) {
|
|
5373
5373
|
if (!(l ? m in t : hasOwnProperty$1.call(t, m)))
|
5374
5374
|
return !1;
|
5375
5375
|
}
|
5376
|
-
var
|
5377
|
-
if (
|
5378
|
-
return
|
5376
|
+
var v = o.get(e), C = o.get(t);
|
5377
|
+
if (v && C)
|
5378
|
+
return v == t && C == e;
|
5379
5379
|
var g = !0;
|
5380
5380
|
o.set(e, t), o.set(t, e);
|
5381
5381
|
for (var _ = l; ++d < i; ) {
|
5382
5382
|
m = s[d];
|
5383
|
-
var y = e[m],
|
5383
|
+
var y = e[m], b = t[m];
|
5384
5384
|
if (a)
|
5385
|
-
var
|
5386
|
-
if (!(
|
5385
|
+
var T = l ? a(b, y, m, t, e, o) : a(y, b, m, e, t, o);
|
5386
|
+
if (!(T === void 0 ? y === b || n(y, b, r, a, o) : T)) {
|
5387
5387
|
g = !1;
|
5388
5388
|
break;
|
5389
5389
|
}
|
5390
5390
|
_ || (_ = m == "constructor");
|
5391
5391
|
}
|
5392
5392
|
if (g && !_) {
|
5393
|
-
var
|
5394
|
-
|
5393
|
+
var k = e.constructor, I = t.constructor;
|
5394
|
+
k != I && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof I == "function" && I instanceof I) && (g = !1);
|
5395
5395
|
}
|
5396
5396
|
return o.delete(e), o.delete(t), g;
|
5397
5397
|
}
|
@@ -5408,9 +5408,9 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
|
|
5408
5408
|
if (m && !u)
|
5409
5409
|
return o || (o = new Stack()), l || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, i, r, a, n, o);
|
5410
5410
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5411
|
-
var
|
5412
|
-
if (
|
5413
|
-
var g =
|
5411
|
+
var v = u && hasOwnProperty.call(e, "__wrapped__"), C = d && hasOwnProperty.call(t, "__wrapped__");
|
5412
|
+
if (v || C) {
|
5413
|
+
var g = v ? e.value() : e, _ = C ? t.value() : t;
|
5414
5414
|
return o || (o = new Stack()), n(g, _, r, a, o);
|
5415
5415
|
}
|
5416
5416
|
}
|
@@ -5618,14 +5618,14 @@ function baseIntersection(e, t, r) {
|
|
5618
5618
|
var d = -1, m = s[0];
|
5619
5619
|
e:
|
5620
5620
|
for (; ++d < n && c.length < i; ) {
|
5621
|
-
var
|
5622
|
-
if (
|
5621
|
+
var v = u[d], C = t ? t(v) : v;
|
5622
|
+
if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m, C) : a(c, C, r))) {
|
5623
5623
|
for (l = o; --l; ) {
|
5624
5624
|
var g = s[l];
|
5625
5625
|
if (!(g ? cacheHas(g, C) : a(e[l], C, r)))
|
5626
5626
|
continue e;
|
5627
5627
|
}
|
5628
|
-
m && m.push(C), c.push(
|
5628
|
+
m && m.push(C), c.push(v);
|
5629
5629
|
}
|
5630
5630
|
}
|
5631
5631
|
return c;
|
@@ -6060,7 +6060,7 @@ var KG_APP = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "data-manager", e.WMS
|
|
6060
6060
|
const KG_APPS = ["data-manager", "business-manager", "wcs", "sys"];
|
6061
6061
|
var KG_APP_PREFIX = /* @__PURE__ */ ((e) => (e.WMS_DATA_MANAGER = "/wms/data-manager", e.WMS_BUSINESS_MANAGER = "/wms/business-manager", e.WCS = "/wcs", e.SYS = "/sys", e))(KG_APP_PREFIX || {});
|
6062
6062
|
const KG_APP_PREFIXS = ["/wms/data-manager", "/wms/business-manager", "/wcs", "/sys"];
|
6063
|
-
var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_TIME = "DATE_TIME", e.
|
6063
|
+
var KG_FORM_ITEM_TYPE = /* @__PURE__ */ ((e) => (e.INPUT = "INPUT", e.INPUT_PASSWORD = "INPUT_PASSWORD", e.INPUT_NUMBER = "INPUT_NUMBER", e.TEXT_AREA = "TEXT_AREA", e.CHECKBOX = "CHECKBOX", e.CHECKBOX_GROUP = "CHECKBOX_GROUP", e.RADIO_GROUP = "RADIO_GROUP", e.SWITCH = "SWITCH", e.SELECT = "SELECT", e.SELECT_MULTIPLE = "SELECT_MULTIPLE", e.DATE_DATE = "DATE_DATE", e.DATE_DATE_RANGE = "DATE_DATE_RANGE", e.DATE_TIME = "DATE_TIME", e.DATE_TIME_RANGE = "DATE_TIME_RANGE", e.DATE_DATETIME = "DATE_DATETIME", e.DATE_DATETIME_RANGE = "DATE_DATETIME_RANGE", e.DATE_WEEK = "DATE_WEEK", e.DATE_MONTH = "DATE_MONTH", e.DATE_YEAR = "DATE_YEAR", e.UOM = "UOM", e.BUTTON_UPLOAD = "BUTTON_UPLOAD", e))(KG_FORM_ITEM_TYPE || {}), KG_FORM_CONTEXT = /* @__PURE__ */ ((e) => (e.SEARCH = "SEARCH", e.SUBMIT = "SUBMIT", e.TABLE = "TABLE", e))(KG_FORM_CONTEXT || {}), KG_TABLE_CELL_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.YN = "YN", e.ENUM = "ENUM", e.PROGRESS = "PROGRESS", e.FILE_SIZE = "FILE_SIZE", e.UPDATE_LINK = "UPDATE_LINK", e.ROUTE_LINK = "ROUTE_LINK", e.DESC = "DESC", e))(KG_TABLE_CELL_DISPLAY_TYPE || {}), KG_BUTTON_TYPE = /* @__PURE__ */ ((e) => (e.CREATE = "CREATE", e.UPDATE = "UPDATE", e.COPY = "COPY", e.DELETE = "DELETE", e.IMPORT = "IMPORT", e.IMPORT_TEMPLATE = "IMPORT_TEMPLATE", e.EXPORT = "EXPORT", e.SEARCH = "SEARCH", e.REFRESH = "REFRESH", e.OTHER = "OTHER", e))(KG_BUTTON_TYPE || {}), KG_BUTTON_COLOR = /* @__PURE__ */ ((e) => (e.DANGER = "DANGER", e.WARN = "WARN", e))(KG_BUTTON_COLOR || {}), KG_BUTTON_DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.DEFAULT = "DEFAULT", e.SELECT = "SELECT", e))(KG_BUTTON_DISPLAY_TYPE || {}), KG_VAR_SUBMIT__DISPLAY_TYPE = /* @__PURE__ */ ((e) => (e.MODAL = "MODAL", e.DRAWER = "DRAWER", e.TABLE = "TABLE", e))(KG_VAR_SUBMIT__DISPLAY_TYPE || {}), KG_VAR_SUBMIT__LAYOUT = /* @__PURE__ */ ((e) => (e.VERTICAL = "vertical", e.HORIZONTAL = "horizontal", e))(KG_VAR_SUBMIT__LAYOUT || {}), KG_VAR_INPUT__DATA_TYPE = /* @__PURE__ */ ((e) => (e.NUMBER = "NUMBER", e))(KG_VAR_INPUT__DATA_TYPE || {}), KG_CUSTOM_LEVEL = /* @__PURE__ */ ((e) => (e[e.L0 = 0] = "L0", e[e.L10 = 10] = "L10", e))(KG_CUSTOM_LEVEL || {}), KG_POSSIBILITY_DATA_TYPE = /* @__PURE__ */ ((e) => (e.STRING = "string", e.NUMBER = "number", e.BOOLEAN = "boolean", e))(KG_POSSIBILITY_DATA_TYPE || {}), KG_WIDTH_UNIT = /* @__PURE__ */ ((e) => (e.SPAN = "SPAN", e.PX = "PX", e))(KG_WIDTH_UNIT || {}), KG_EXCEL_SUFFIX = /* @__PURE__ */ ((e) => (e.XLS = "xls", e.XLSX = "xlsx", e))(KG_EXCEL_SUFFIX || {}), KG_DESCRIPTION_CODE_NAME = /* @__PURE__ */ ((e) => (e.YN = "yn", e.VAR_SUBMIT_LAYOUT = "var_submit_layout", e.VAR_SPAN = "var_span", e.VAR_BUTTON_DISPLAY_TYPE = "var_button_display_type", e.VAR_WIDTH_UNIT = "var_width_unit", e))(KG_DESCRIPTION_CODE_NAME || {});
|
6064
6064
|
class KgLogger {
|
6065
6065
|
static error(t, r = {}, a = !0) {
|
6066
6066
|
KgLogger.log("error", t, r, a);
|
@@ -6188,7 +6188,7 @@ class KgUtil {
|
|
6188
6188
|
if (!l)
|
6189
6189
|
return r;
|
6190
6190
|
switch ((() => {
|
6191
|
-
const i = l.ctrl_typ, c = l.prf_ctrl_typ, u = l.crt_ctrl_typ, d = l.upt_ctrl_typ, m = l.cpy_ctrl_typ,
|
6191
|
+
const i = l.ctrl_typ, c = l.prf_ctrl_typ, u = l.crt_ctrl_typ, d = l.upt_ctrl_typ, m = l.cpy_ctrl_typ, v = l.del_ctrl_typ;
|
6192
6192
|
switch (!0) {
|
6193
6193
|
case o.isRetrieving.value:
|
6194
6194
|
return c || i;
|
@@ -6199,18 +6199,20 @@ class KgUtil {
|
|
6199
6199
|
case n.isCopying.value:
|
6200
6200
|
return m || i;
|
6201
6201
|
case n.isDeleting.value:
|
6202
|
-
return
|
6202
|
+
return v || i;
|
6203
6203
|
}
|
6204
6204
|
return i;
|
6205
6205
|
})()) {
|
6206
6206
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
6207
6207
|
return r.format("YYYY-MM-DD");
|
6208
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
6209
|
+
return r.format("YYYY-MM-DD");
|
6208
6210
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
6209
6211
|
return r.format("HH:mm:ss");
|
6212
|
+
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
6213
|
+
return r.format("HH:mm:ss");
|
6210
6214
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
6211
6215
|
return r.format("YYYY-MM-DD HH:mm:ss");
|
6212
|
-
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
6213
|
-
return r.format("YYYY-MM-DD");
|
6214
6216
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
6215
6217
|
return r.format("YYYY-MM-DD HH:mm:ss");
|
6216
6218
|
}
|
@@ -6384,7 +6386,7 @@ class KgVarUtil {
|
|
6384
6386
|
return r;
|
6385
6387
|
}
|
6386
6388
|
static transformValueByControlType(t, r, a, n, o) {
|
6387
|
-
var m,
|
6389
|
+
var m, v, C;
|
6388
6390
|
const l = useKg(), s = useKgVar(t);
|
6389
6391
|
let i = n;
|
6390
6392
|
const c = /(.*)?({(.*)?})(.*)?/.exec(i);
|
@@ -6395,7 +6397,7 @@ class KgVarUtil {
|
|
6395
6397
|
i = i.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
6396
6398
|
break;
|
6397
6399
|
case "{USER.username}":
|
6398
|
-
i = i.replace("{USER.username}", (C = (
|
6400
|
+
i = i.replace("{USER.username}", (C = (v = (m = l.store).getUseUserStore) == null ? void 0 : v.call(m).userInfo) == null ? void 0 : C.username);
|
6399
6401
|
break;
|
6400
6402
|
}
|
6401
6403
|
}
|
@@ -6403,18 +6405,18 @@ class KgVarUtil {
|
|
6403
6405
|
if (!u)
|
6404
6406
|
return i;
|
6405
6407
|
switch ((() => {
|
6406
|
-
const g = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ,
|
6408
|
+
const g = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, T = u.cpy_ctrl_typ, k = u.del_ctrl_typ;
|
6407
6409
|
switch (o) {
|
6408
6410
|
case "R":
|
6409
6411
|
return _ || g;
|
6410
6412
|
case "C":
|
6411
6413
|
return y || g;
|
6412
6414
|
case "U":
|
6413
|
-
return
|
6415
|
+
return b || g;
|
6414
6416
|
case "CP":
|
6415
|
-
return k || g;
|
6416
|
-
case "D":
|
6417
6417
|
return T || g;
|
6418
|
+
case "D":
|
6419
|
+
return k || g;
|
6418
6420
|
}
|
6419
6421
|
return g;
|
6420
6422
|
})()) {
|
@@ -6505,8 +6507,8 @@ class KgVarUtil {
|
|
6505
6507
|
const _ = s.store.getVarPossibility(t, r);
|
6506
6508
|
switch (_ == null ? void 0 : _.val_data_type) {
|
6507
6509
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6508
|
-
const y = g.map((
|
6509
|
-
if (y.some((
|
6510
|
+
const y = g.map((b) => Number(b));
|
6511
|
+
if (y.some((b) => Number.isNaN(y))) {
|
6510
6512
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6511
6513
|
frm_id: t,
|
6512
6514
|
var_nam: r,
|
@@ -6638,8 +6640,8 @@ function createOptionsStore(e, t, r, a) {
|
|
6638
6640
|
const u = process.env.NODE_ENV !== "production" && a ? toRefs(ref(n ? n() : {}).value) : toRefs(r.state.value[e]);
|
6639
6641
|
return assign$1(u, o, Object.keys(l || {}).reduce((d, m) => (d[m] = markRaw(computed(() => {
|
6640
6642
|
setActivePinia(r);
|
6641
|
-
const
|
6642
|
-
return l[m].call(
|
6643
|
+
const v = r._s.get(e);
|
6644
|
+
return l[m].call(v, v);
|
6643
6645
|
})), d), {}));
|
6644
6646
|
}
|
6645
6647
|
return i = createSetupStore(e, c, t, r, a), i.$reset = function() {
|
@@ -6657,24 +6659,24 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6657
6659
|
const i = {
|
6658
6660
|
deep: !0
|
6659
6661
|
};
|
6660
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (
|
6661
|
-
c ?
|
6662
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (M) => {
|
6663
|
+
c ? v = M : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6662
6664
|
});
|
6663
|
-
let c, u, d = markRaw([]), m = markRaw([]),
|
6665
|
+
let c, u, d = markRaw([]), m = markRaw([]), v;
|
6664
6666
|
const C = a.state.value[e];
|
6665
6667
|
!l && !C && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6666
6668
|
const g = ref({});
|
6667
|
-
function _(
|
6669
|
+
function _(M) {
|
6668
6670
|
let A;
|
6669
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (
|
6671
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof M == "function" ? (M(a.state.value[e]), A = {
|
6670
6672
|
type: MutationType.patchFunction,
|
6671
6673
|
storeId: e,
|
6672
|
-
events:
|
6673
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
6674
|
+
events: v
|
6675
|
+
}) : (mergeReactiveObjects(a.state.value[e], M), A = {
|
6674
6676
|
type: MutationType.patchObject,
|
6675
|
-
payload:
|
6677
|
+
payload: M,
|
6676
6678
|
storeId: e,
|
6677
|
-
events:
|
6679
|
+
events: v
|
6678
6680
|
}), nextTick().then(() => {
|
6679
6681
|
c = !0;
|
6680
6682
|
}), u = !0, triggerSubscriptions(d, A, a.state.value[e]);
|
@@ -6682,10 +6684,10 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6682
6684
|
const y = process.env.NODE_ENV !== "production" ? () => {
|
6683
6685
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6684
6686
|
} : noop$1;
|
6685
|
-
function
|
6687
|
+
function b() {
|
6686
6688
|
o.stop(), d = [], m = [], a._s.delete(e);
|
6687
6689
|
}
|
6688
|
-
function
|
6690
|
+
function T(M, A) {
|
6689
6691
|
return function() {
|
6690
6692
|
setActivePinia(a);
|
6691
6693
|
const w = Array.from(arguments), U = [], $ = [];
|
@@ -6697,7 +6699,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6697
6699
|
}
|
6698
6700
|
triggerSubscriptions(m, {
|
6699
6701
|
args: w,
|
6700
|
-
name:
|
6702
|
+
name: M,
|
6701
6703
|
store: E,
|
6702
6704
|
after: V,
|
6703
6705
|
onError: O
|
@@ -6711,54 +6713,54 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6711
6713
|
return D instanceof Promise ? D.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions($, N), Promise.reject(N))) : (triggerSubscriptions(U, D), D);
|
6712
6714
|
};
|
6713
6715
|
}
|
6714
|
-
const
|
6716
|
+
const k = /* @__PURE__ */ markRaw({
|
6715
6717
|
actions: {},
|
6716
6718
|
getters: {},
|
6717
6719
|
state: [],
|
6718
6720
|
hotState: g
|
6719
|
-
}),
|
6721
|
+
}), I = {
|
6720
6722
|
_p: a,
|
6721
6723
|
$id: e,
|
6722
6724
|
$onAction: addSubscription.bind(null, m),
|
6723
6725
|
$patch: _,
|
6724
6726
|
$reset: y,
|
6725
|
-
$subscribe(
|
6726
|
-
const w = addSubscription(d,
|
6727
|
-
(A.flush === "sync" ? u : c) &&
|
6727
|
+
$subscribe(M, A = {}) {
|
6728
|
+
const w = addSubscription(d, M, A.detached, () => U()), U = o.run(() => watch(() => a.state.value[e], ($) => {
|
6729
|
+
(A.flush === "sync" ? u : c) && M({
|
6728
6730
|
storeId: e,
|
6729
6731
|
type: MutationType.direct,
|
6730
|
-
events:
|
6732
|
+
events: v
|
6731
6733
|
}, $);
|
6732
6734
|
}, assign$1({}, i, A)));
|
6733
6735
|
return w;
|
6734
6736
|
},
|
6735
|
-
$dispose:
|
6737
|
+
$dispose: b
|
6736
6738
|
}, E = reactive(assign$1(
|
6737
6739
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6738
6740
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6739
|
-
_hmrPayload:
|
6741
|
+
_hmrPayload: k
|
6740
6742
|
} : {},
|
6741
|
-
|
6743
|
+
I
|
6742
6744
|
));
|
6743
6745
|
a._s.set(e, E);
|
6744
6746
|
const P = a._e.run(() => (o = effectScope(), o.run(() => t())));
|
6745
|
-
for (const
|
6746
|
-
const A = P[
|
6747
|
+
for (const M in P) {
|
6748
|
+
const A = P[M];
|
6747
6749
|
if (isRef(A) && !isComputed(A) || isReactive(A))
|
6748
|
-
process.env.NODE_ENV !== "production" && n ? set(g.value,
|
6750
|
+
process.env.NODE_ENV !== "production" && n ? set(g.value, M, toRef(P, M)) : l || (C && shouldHydrate(A) && (isRef(A) ? A.value = C[M] : mergeReactiveObjects(A, C[M])), a.state.value[e][M] = A), process.env.NODE_ENV !== "production" && k.state.push(M);
|
6749
6751
|
else if (typeof A == "function") {
|
6750
|
-
const w = process.env.NODE_ENV !== "production" && n ? A :
|
6751
|
-
P[
|
6752
|
+
const w = process.env.NODE_ENV !== "production" && n ? A : T(M, A);
|
6753
|
+
P[M] = w, process.env.NODE_ENV !== "production" && (k.actions[M] = A), s.actions[M] = A;
|
6752
6754
|
} else
|
6753
|
-
process.env.NODE_ENV !== "production" && isComputed(A) && (
|
6755
|
+
process.env.NODE_ENV !== "production" && isComputed(A) && (k.getters[M] = l ? r.getters[M] : A, IS_CLIENT && (P._getters || (P._getters = markRaw([]))).push(M));
|
6754
6756
|
}
|
6755
6757
|
if (assign$1(E, P), assign$1(toRaw(E), P), Object.defineProperty(E, "$state", {
|
6756
6758
|
get: () => process.env.NODE_ENV !== "production" && n ? g.value : a.state.value[e],
|
6757
|
-
set: (
|
6759
|
+
set: (M) => {
|
6758
6760
|
if (process.env.NODE_ENV !== "production" && n)
|
6759
6761
|
throw new Error("cannot set hotState");
|
6760
6762
|
_((A) => {
|
6761
|
-
assign$1(A,
|
6763
|
+
assign$1(A, M);
|
6762
6764
|
});
|
6763
6765
|
}
|
6764
6766
|
}), process.env.NODE_ENV !== "production") {
|
@@ -6776,7 +6778,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6776
6778
|
});
|
6777
6779
|
for (const w in A._hmrPayload.actions) {
|
6778
6780
|
const U = A[w];
|
6779
|
-
set(E, w,
|
6781
|
+
set(E, w, T(w, U));
|
6780
6782
|
}
|
6781
6783
|
for (const w in A._hmrPayload.getters) {
|
6782
6784
|
const U = A._hmrPayload.getters[w], $ = l ? computed(() => (setActivePinia(a), U.call(E, E))) : U;
|
@@ -6788,7 +6790,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6788
6790
|
w in A._hmrPayload.actions || del(E, w);
|
6789
6791
|
}), E._hmrPayload = A._hmrPayload, E._getters = A._getters, E._hotUpdating = !1;
|
6790
6792
|
});
|
6791
|
-
const
|
6793
|
+
const M = {
|
6792
6794
|
writable: !0,
|
6793
6795
|
configurable: !0,
|
6794
6796
|
enumerable: !1
|
@@ -6796,13 +6798,13 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6796
6798
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((A) => {
|
6797
6799
|
Object.defineProperty(E, A, {
|
6798
6800
|
value: E[A],
|
6799
|
-
...
|
6801
|
+
...M
|
6800
6802
|
});
|
6801
6803
|
});
|
6802
6804
|
}
|
6803
|
-
return a._p.forEach((
|
6805
|
+
return a._p.forEach((M) => {
|
6804
6806
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6805
|
-
const A = o.run(() =>
|
6807
|
+
const A = o.run(() => M({
|
6806
6808
|
store: E,
|
6807
6809
|
app: a._a,
|
6808
6810
|
pinia: a,
|
@@ -6810,7 +6812,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6810
6812
|
}));
|
6811
6813
|
Object.keys(A || {}).forEach((w) => E._customProperties.add(w)), assign$1(E, A);
|
6812
6814
|
} else
|
6813
|
-
assign$1(E, o.run(() =>
|
6815
|
+
assign$1(E, o.run(() => M({
|
6814
6816
|
store: E,
|
6815
6817
|
app: a._a,
|
6816
6818
|
pinia: a,
|
@@ -7349,18 +7351,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7349
7351
|
slots: r
|
7350
7352
|
}) {
|
7351
7353
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
7352
|
-
const
|
7353
|
-
throw KgLogger.error(
|
7354
|
+
const b = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
7355
|
+
throw KgLogger.error(b, {
|
7354
7356
|
kgMaxHeight: e.kgMaxHeight,
|
7355
7357
|
kgMinHeight: e.kgMinHeight
|
7356
|
-
}), new Error(
|
7358
|
+
}), new Error(b);
|
7357
7359
|
}
|
7358
7360
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
7359
|
-
const
|
7360
|
-
throw KgLogger.error(
|
7361
|
+
const b = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
7362
|
+
throw KgLogger.error(b, {
|
7361
7363
|
kgMaxWidth: e.kgMaxWidth,
|
7362
7364
|
kgMinWidth: e.kgMinWidth
|
7363
|
-
}), new Error(
|
7365
|
+
}), new Error(b);
|
7364
7366
|
}
|
7365
7367
|
let a = 0, n = 0, o = 0, l = 0, s = {
|
7366
7368
|
remove: () => {
|
@@ -7383,22 +7385,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7383
7385
|
};
|
7384
7386
|
}
|
7385
7387
|
}), u = computed(() => {
|
7386
|
-
let
|
7387
|
-
switch (e.kgClass && (
|
7388
|
+
let b = "";
|
7389
|
+
switch (e.kgClass && (b += `${e.kgClass} `), b += "kg-resizable", e.kgDisabled && (b += " kg-resizable--disabled"), e.kgType) {
|
7388
7390
|
case "left":
|
7389
|
-
|
7391
|
+
b += " kg-resizable--left";
|
7390
7392
|
break;
|
7391
7393
|
case "right":
|
7392
|
-
|
7394
|
+
b += " kg-resizable--right";
|
7393
7395
|
break;
|
7394
7396
|
case "top":
|
7395
|
-
|
7397
|
+
b += " kg-resizable--top";
|
7396
7398
|
break;
|
7397
7399
|
case "bottom":
|
7398
|
-
|
7400
|
+
b += " kg-resizable--bottom";
|
7399
7401
|
break;
|
7400
7402
|
}
|
7401
|
-
return
|
7403
|
+
return b;
|
7402
7404
|
});
|
7403
7405
|
function d() {
|
7404
7406
|
s.remove(), i.remove();
|
@@ -7406,41 +7408,41 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7406
7408
|
onUnmounted(() => {
|
7407
7409
|
d();
|
7408
7410
|
});
|
7409
|
-
const m = (
|
7411
|
+
const m = (b) => {
|
7410
7412
|
switch (e.kgType) {
|
7411
7413
|
case "top":
|
7412
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
7414
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (b.pageY - l))));
|
7413
7415
|
break;
|
7414
7416
|
case "bottom":
|
7415
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
7417
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (b.pageY - l))));
|
7416
7418
|
break;
|
7417
7419
|
case "left":
|
7418
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
7420
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (b.pageX - o))));
|
7419
7421
|
break;
|
7420
7422
|
case "right":
|
7421
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
7423
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (b.pageX - o))));
|
7422
7424
|
break;
|
7423
7425
|
}
|
7424
7426
|
};
|
7425
|
-
function b
|
7426
|
-
m(
|
7427
|
+
function v(b) {
|
7428
|
+
m(b);
|
7427
7429
|
}
|
7428
|
-
function C(
|
7429
|
-
m(
|
7430
|
+
function C(b) {
|
7431
|
+
m(b), d();
|
7430
7432
|
}
|
7431
|
-
function g(
|
7432
|
-
|
7433
|
+
function g(b) {
|
7434
|
+
b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (o = b.pageX, l = b.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", v), i = _(document.documentElement, "mouseup", C));
|
7433
7435
|
}
|
7434
|
-
function _(
|
7435
|
-
return
|
7436
|
-
remove: () =>
|
7436
|
+
function _(b, T, k) {
|
7437
|
+
return b.addEventListener(T, k), {
|
7438
|
+
remove: () => b.removeEventListener(T, k)
|
7437
7439
|
};
|
7438
7440
|
}
|
7439
|
-
function y(
|
7440
|
-
|
7441
|
+
function y(b) {
|
7442
|
+
b.stopPropagation(), b.preventDefault();
|
7441
7443
|
}
|
7442
7444
|
return () => {
|
7443
|
-
var
|
7445
|
+
var b;
|
7444
7446
|
return createVNode("div", {
|
7445
7447
|
class: u.value,
|
7446
7448
|
style: c.value
|
@@ -7450,7 +7452,7 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7450
7452
|
onMousedown: g
|
7451
7453
|
}, [createVNode("div", {
|
7452
7454
|
class: "kg-resizable-handle-line"
|
7453
|
-
}, null)]), (
|
7455
|
+
}, null)]), (b = r.default) == null ? void 0 : b.call(r)]);
|
7454
7456
|
};
|
7455
7457
|
}
|
7456
7458
|
}), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
|
@@ -7602,15 +7604,15 @@ function createStore(e, t, r) {
|
|
7602
7604
|
_assignPluginFnProp: function(i, c) {
|
7603
7605
|
var u = this[c];
|
7604
7606
|
this[c] = function() {
|
7605
|
-
var m = slice(arguments, 0),
|
7607
|
+
var m = slice(arguments, 0), v = this;
|
7606
7608
|
function C() {
|
7607
7609
|
if (!!u)
|
7608
7610
|
return each$6(arguments, function(_, y) {
|
7609
7611
|
m[y] = _;
|
7610
|
-
}), u.apply(
|
7612
|
+
}), u.apply(v, m);
|
7611
7613
|
}
|
7612
7614
|
var g = [C].concat(m);
|
7613
|
-
return i.apply(
|
7615
|
+
return i.apply(v, g);
|
7614
7616
|
};
|
7615
7617
|
},
|
7616
7618
|
_serialize: function(i) {
|
@@ -7647,10 +7649,10 @@ function createStore(e, t, r) {
|
|
7647
7649
|
var d = i.call(this);
|
7648
7650
|
if (!isObject(d))
|
7649
7651
|
throw new Error("Plugins must return an object of function properties");
|
7650
|
-
each$6(d, function(m,
|
7652
|
+
each$6(d, function(m, v) {
|
7651
7653
|
if (!isFunction(m))
|
7652
|
-
throw new Error("Bad plugin property: " +
|
7653
|
-
c._assignPluginFnProp(m,
|
7654
|
+
throw new Error("Bad plugin property: " + v + " from plugin " + i.name + ". Plugins should only return functions.");
|
7655
|
+
c._assignPluginFnProp(m, v);
|
7654
7656
|
});
|
7655
7657
|
}
|
7656
7658
|
},
|
@@ -8611,34 +8613,34 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8611
8613
|
this.formIDs = this.formIDs.filter((t) => t.formID !== e), this.isRetrievingMap.delete(e), this.isRetrievingVarProfileMasterMap.delete(e), this.isCreatingMap.delete(e), this.isCreatingRequestingMap.delete(e), this.isUpdatingMap.delete(e), this.isUpdatingRequestingMap.delete(e), this.isCopyingMap.delete(e), this.isCopyingRequestingMap.delete(e), this.isDeletingMap.delete(e), this.isDeletingRequestingMap.delete(e), this.isOtherRequestingMap.delete(e), this.varCatalogMap.delete(e), this.varLookupMap.delete(e), this.varPossibilityMap.delete(e), this.varVariableConfigMap.delete(e), this.varButtonMap.delete(e), this.varSubmitConfigMap.delete(e), this.varSubmitFieldMap.delete(e), this.varProfileConfigMap.delete(e), this.varProfileMap.delete(e), this.varGridConfigMap.delete(e), this.varGridMap.delete(e), store_legacy.set("KgVar.formIDs", this.formIDs);
|
8612
8614
|
},
|
8613
8615
|
async retrieve(e) {
|
8614
|
-
var t, r, a, n, o, l, s, i;
|
8616
|
+
var t, r, a, n, o, l, s, i, c, u;
|
8615
8617
|
if (!!e) {
|
8616
8618
|
this.isRetrievingMap.set(e, !0);
|
8617
8619
|
try {
|
8618
8620
|
const {
|
8619
|
-
varCatalogs:
|
8620
|
-
varLookups:
|
8621
|
-
varConfigs:
|
8622
|
-
varVariableInputs:
|
8623
|
-
varPossibilities:
|
8624
|
-
varButtons:
|
8625
|
-
varButtonConfig:
|
8626
|
-
varSubmitConfig:
|
8627
|
-
varSubmitFields:
|
8628
|
-
varProfile:
|
8629
|
-
varProfileConfig:
|
8630
|
-
varGrid:
|
8631
|
-
varGridConfig:
|
8621
|
+
varCatalogs: d,
|
8622
|
+
varLookups: m,
|
8623
|
+
varConfigs: v,
|
8624
|
+
varVariableInputs: C,
|
8625
|
+
varPossibilities: g,
|
8626
|
+
varButtons: _,
|
8627
|
+
varButtonConfig: y,
|
8628
|
+
varSubmitConfig: b,
|
8629
|
+
varSubmitFields: T,
|
8630
|
+
varProfile: k,
|
8631
|
+
varProfileConfig: I,
|
8632
|
+
varGrid: E,
|
8633
|
+
varGridConfig: P
|
8632
8634
|
} = await GetAll({ params: { frm_id: e } });
|
8633
|
-
this.varCatalogMap.set(e,
|
8634
|
-
varProfile:
|
8635
|
-
currentVarProfileMasterID: (
|
8636
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
8637
|
-
varGrid: transformVarGridDTO(
|
8638
|
-
currentVarGridMasterID: (
|
8635
|
+
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, C != null ? C : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(y != null ? y : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(T)), this.varProfileConfigMap.set(e, transformVarProfileConfig(I != null ? I : null)), this.varProfileMap.set(e, {
|
8636
|
+
varProfile: k != null ? k : null,
|
8637
|
+
currentVarProfileMasterID: (o = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((M) => M.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? o : null
|
8638
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(P != null ? P : null)), this.varGridMap.set(e, {
|
8639
|
+
varGrid: transformVarGridDTO(E),
|
8640
|
+
currentVarGridMasterID: (u = (c = ((l = E == null ? void 0 : E.varGridMasters) == null ? void 0 : l.find((M) => M.def_flg === 1)) || ((s = E == null ? void 0 : E.varGridMasters) == null ? void 0 : s.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = E == null ? void 0 : E.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
8639
8641
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
8640
|
-
} catch (
|
8641
|
-
throw
|
8642
|
+
} catch (d) {
|
8643
|
+
throw d;
|
8642
8644
|
} finally {
|
8643
8645
|
this.isRetrievingMap.set(e, !1);
|
8644
8646
|
}
|
@@ -8829,7 +8831,7 @@ function useKgVar(e, t, r = 0) {
|
|
8829
8831
|
const d = (q) => computed(() => {
|
8830
8832
|
var te, re, oe;
|
8831
8833
|
return (oe = (re = (te = u.getVarCatalog(c, q)) == null ? void 0 : te.var_text) != null ? re : q) != null ? oe : "";
|
8832
|
-
}), m = computed(() => u.isRetrieving(c)),
|
8834
|
+
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), T = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), I = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), M = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), U = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), V = computed(() => u.getVarButtonDelete(c)), O = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), N = computed(() => u.getCurrentVarProfileMasterID(c)), K = computed(() => {
|
8833
8835
|
var q, te;
|
8834
8836
|
return (te = (q = D.value) == null ? void 0 : q.varProfileDetails) != null ? te : null;
|
8835
8837
|
}), H = computed(() => u.getVarGridConfig(c)), L = computed(() => u.getVarGridMasters(c)), G = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -8837,18 +8839,18 @@ function useKgVar(e, t, r = 0) {
|
|
8837
8839
|
formID: c,
|
8838
8840
|
store: u,
|
8839
8841
|
isRetrieving: m,
|
8840
|
-
isRetrievingVarProfileMaster:
|
8842
|
+
isRetrievingVarProfileMaster: v,
|
8841
8843
|
isRetrievingVarGridMaster: C,
|
8842
8844
|
isCreating: g,
|
8843
8845
|
isCreatingRequesting: _,
|
8844
8846
|
isUpdating: y,
|
8845
|
-
isUpdatingRequesting:
|
8846
|
-
isCopying:
|
8847
|
-
isCopyingRequesting:
|
8848
|
-
isDeleting:
|
8847
|
+
isUpdatingRequesting: b,
|
8848
|
+
isCopying: T,
|
8849
|
+
isCopyingRequesting: k,
|
8850
|
+
isDeleting: I,
|
8849
8851
|
isDeletingRequesting: E,
|
8850
8852
|
isOtherRequesting: P,
|
8851
|
-
varButtons:
|
8853
|
+
varButtons: M,
|
8852
8854
|
varButtonSearch: A,
|
8853
8855
|
varButtonCreate: w,
|
8854
8856
|
varButtonUpdate: U,
|
@@ -8886,12 +8888,12 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8886
8888
|
}) {
|
8887
8889
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
8888
8890
|
const r = useKgVar(), a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), l = computed(() => {
|
8889
|
-
var m,
|
8891
|
+
var m, v, C, g;
|
8890
8892
|
switch (!0) {
|
8891
8893
|
case r.isCreating.value:
|
8892
8894
|
return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
|
8893
8895
|
case r.isUpdating.value:
|
8894
|
-
return ((
|
8896
|
+
return ((v = a.value) == null ? void 0 : v.upt_flg) !== 0;
|
8895
8897
|
case r.isCopying.value:
|
8896
8898
|
return ((C = a.value) == null ? void 0 : C.cpy_flg) !== 0;
|
8897
8899
|
case r.isDeleting.value:
|
@@ -8913,8 +8915,8 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8913
8915
|
spinning: c.value
|
8914
8916
|
}, {
|
8915
8917
|
default: () => {
|
8916
|
-
var m,
|
8917
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [i.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (
|
8918
|
+
var m, v;
|
8919
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [i.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (v = (m = e.kgSlots) == null ? void 0 : m.afterKgTable) == null ? void 0 : v.call(m), l.value && createVNode(KgSubmit, null, null)])];
|
8918
8920
|
}
|
8919
8921
|
});
|
8920
8922
|
}
|
@@ -8943,11 +8945,11 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8943
8945
|
return (_ = (g = u == null ? void 0 : u.value) == null ? void 0 : g.ret_fld) != null ? _ : "";
|
8944
8946
|
});
|
8945
8947
|
c.onRowDoubleClick(async () => (await C(), !1));
|
8946
|
-
function
|
8948
|
+
function v() {
|
8947
8949
|
r("update:visible", !1);
|
8948
8950
|
}
|
8949
8951
|
async function C() {
|
8950
|
-
var g, _, y,
|
8952
|
+
var g, _, y, b, T, k, I;
|
8951
8953
|
if (d.value) {
|
8952
8954
|
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (y = E.map((A) => A[m.value])) != null ? y : [];
|
8953
8955
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
@@ -8963,7 +8965,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8963
8965
|
rows: E
|
8964
8966
|
}), r("update:visible", !1));
|
8965
8967
|
} else {
|
8966
|
-
const E = (
|
8968
|
+
const E = (k = (T = (b = c.selectedRows) == null ? void 0 : b.value) == null ? void 0 : T[0]) != null ? k : null, P = (I = E == null ? void 0 : E[m.value]) != null ? I : "";
|
8967
8969
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8968
8970
|
var_nam: l,
|
8969
8971
|
isMultiple: !1,
|
@@ -8988,7 +8990,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8988
8990
|
disabled: ((_ = (g = c.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0
|
8989
8991
|
},
|
8990
8992
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
8991
|
-
onCancel:
|
8993
|
+
onCancel: v,
|
8992
8994
|
onOk: C
|
8993
8995
|
}, {
|
8994
8996
|
default: () => [createVNode(KgVar, null, null)]
|
@@ -9079,7 +9081,7 @@ function _useRules(e) {
|
|
9079
9081
|
const t = useKg(), r = useKgVar(), a = computed(() => r.store.getVarProfileDetail(r.formID, e.kgVarName)), n = computed(() => r.store.getVarVariableInput(r.formID, e.kgVarName)), o = computed(() => r.store.getVarSubmitField(r.formID, e.kgVarName));
|
9080
9082
|
return {
|
9081
9083
|
rules: computed(() => {
|
9082
|
-
var i, c, u, d, m,
|
9084
|
+
var i, c, u, d, m, v, C, g;
|
9083
9085
|
let s = [];
|
9084
9086
|
switch (e.kgContext) {
|
9085
9087
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9117,13 +9119,13 @@ function _useRules(e) {
|
|
9117
9119
|
}
|
9118
9120
|
break;
|
9119
9121
|
}
|
9120
|
-
switch ((
|
9122
|
+
switch ((v = n.value) == null ? void 0 : v.data_type) {
|
9121
9123
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9122
9124
|
const _ = (C = n.value) == null ? void 0 : C.min;
|
9123
9125
|
isNil(_) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? s.push({
|
9124
|
-
validator: (y,
|
9126
|
+
validator: (y, b) => b == null || b === "" || typeof b == "string" && b.trim() === "" ? Promise.resolve() : Number(b) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
9125
9127
|
}) : s.push({
|
9126
|
-
validator: (y,
|
9128
|
+
validator: (y, b) => b == null || b === "" || typeof b == "string" && b.trim() === "" ? Promise.resolve() : Number(b) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
9127
9129
|
}));
|
9128
9130
|
break;
|
9129
9131
|
}
|
@@ -9133,8 +9135,8 @@ function _useRules(e) {
|
|
9133
9135
|
}
|
9134
9136
|
function useKgFormItem(e) {
|
9135
9137
|
const t = inject(KG_DI_VAR_NAME, e == null ? void 0 : e.kgVarName), r = inject(DI_KG_CONTEXT, e == null ? void 0 : e.kgContext), a = useKgVar(), n = computed(() => a.store.getVarVariableConfig(a.formID, t)), o = computed(() => {
|
9136
|
-
var
|
9137
|
-
const s = (
|
9138
|
+
var v, C, g, _, y, b;
|
9139
|
+
const s = (v = n.value) == null ? void 0 : v.ctrl_typ, i = (C = n.value) == null ? void 0 : C.prf_ctrl_typ, c = (g = n.value) == null ? void 0 : g.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
|
9138
9140
|
switch (r) {
|
9139
9141
|
case KG_FORM_CONTEXT.SEARCH:
|
9140
9142
|
return i || s;
|
@@ -9152,9 +9154,9 @@ function useKgFormItem(e) {
|
|
9152
9154
|
}
|
9153
9155
|
return s;
|
9154
9156
|
}), l = computed(() => {
|
9155
|
-
var C, g, _, y,
|
9157
|
+
var C, g, _, y, b, T;
|
9156
9158
|
let s;
|
9157
|
-
const i = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (
|
9159
|
+
const i = (C = n.value) == null ? void 0 : C.ctrl_prop, c = (g = n.value) == null ? void 0 : g.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (b = n.value) == null ? void 0 : b.cpy_ctrl_prop, v = (T = n.value) == null ? void 0 : T.del_ctrl_prop;
|
9158
9160
|
switch (r) {
|
9159
9161
|
case KG_FORM_CONTEXT.SEARCH:
|
9160
9162
|
s = c || i;
|
@@ -9171,7 +9173,7 @@ function useKgFormItem(e) {
|
|
9171
9173
|
s = m || i;
|
9172
9174
|
break;
|
9173
9175
|
case a.isDeleting.value:
|
9174
|
-
s =
|
9176
|
+
s = v || i;
|
9175
9177
|
break;
|
9176
9178
|
}
|
9177
9179
|
}
|
@@ -9192,24 +9194,24 @@ function useKgFormItemSelect() {
|
|
9192
9194
|
}), i = computed(() => {
|
9193
9195
|
var m;
|
9194
9196
|
let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
|
9195
|
-
return d = mapValues(d, (
|
9197
|
+
return d = mapValues(d, (v) => {
|
9196
9198
|
var g, _;
|
9197
|
-
let C =
|
9198
|
-
if (typeof
|
9199
|
-
let y =
|
9199
|
+
let C = v;
|
9200
|
+
if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
|
9201
|
+
let y = v.slice(1, -1), b = "";
|
9200
9202
|
if (y.includes(".")) {
|
9201
|
-
const
|
9202
|
-
y =
|
9203
|
+
const T = y.split(".");
|
9204
|
+
y = T[0], b = T[1];
|
9203
9205
|
}
|
9204
|
-
t.value && y in t.value && (
|
9206
|
+
t.value && y in t.value && (b ? C = (_ = (g = t.value[`${y}_obj`]) == null ? void 0 : g[b]) != null ? _ : void 0 : C = t.value[y], C || (C = "__KG__FORM_ITEM_SELECT__PID"));
|
9205
9207
|
}
|
9206
9208
|
return C;
|
9207
9209
|
}), d;
|
9208
9210
|
});
|
9209
9211
|
async function c() {
|
9210
|
-
var y,
|
9212
|
+
var y, b, T, k, I, E, P, M;
|
9211
9213
|
let d = [];
|
9212
|
-
const m = (y = a.value) == null ? void 0 : y.cmd,
|
9214
|
+
const m = (y = a.value) == null ? void 0 : y.cmd, v = (T = (b = a.value) == null ? void 0 : b.cmd_method) != null ? T : "GET", C = (I = (k = a.value) == null ? void 0 : k.val_clm) != null ? I : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
|
9213
9215
|
if (!m || !C || !g) {
|
9214
9216
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9215
9217
|
frm_id: r.formID,
|
@@ -9222,9 +9224,9 @@ function useKgFormItemSelect() {
|
|
9222
9224
|
}
|
9223
9225
|
let _ = null;
|
9224
9226
|
try {
|
9225
|
-
_ = await ((
|
9227
|
+
_ = await ((M = httpClient()) == null ? void 0 : M.request({
|
9226
9228
|
url: m,
|
9227
|
-
method:
|
9229
|
+
method: v,
|
9228
9230
|
params: i.value
|
9229
9231
|
}));
|
9230
9232
|
} catch {
|
@@ -9254,45 +9256,45 @@ function useKgFormItemSelect() {
|
|
9254
9256
|
l.value = d;
|
9255
9257
|
}
|
9256
9258
|
function u(d) {
|
9257
|
-
var C, g, _, y,
|
9259
|
+
var C, g, _, y, b;
|
9258
9260
|
if (!d)
|
9259
9261
|
return [];
|
9260
|
-
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "",
|
9261
|
-
switch (
|
9262
|
+
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", v = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
|
9263
|
+
switch (v) {
|
9262
9264
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9263
|
-
d.forEach((
|
9264
|
-
|
9265
|
+
d.forEach((T) => {
|
9266
|
+
T[m] = String(T[m]);
|
9265
9267
|
});
|
9266
9268
|
break;
|
9267
9269
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9268
|
-
d.forEach((
|
9269
|
-
let
|
9270
|
-
Number.isNaN(
|
9270
|
+
d.forEach((T) => {
|
9271
|
+
let k = Number(T[m]);
|
9272
|
+
Number.isNaN(k) && (k = T[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${T[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
|
9271
9273
|
frm_id: r.formID,
|
9272
9274
|
var_nam: e,
|
9273
9275
|
VarPossibility: a.value
|
9274
|
-
})),
|
9276
|
+
})), T[m] = k;
|
9275
9277
|
});
|
9276
9278
|
break;
|
9277
9279
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9278
|
-
d.forEach((
|
9279
|
-
let
|
9280
|
-
String(
|
9280
|
+
d.forEach((T) => {
|
9281
|
+
let k;
|
9282
|
+
String(T[m]).toLowerCase() === "true" ? k = !0 : String(T[m]).toLowerCase() === "false" ? k = !1 : (k = T[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${T[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
|
9281
9283
|
frm_id: r.formID,
|
9282
9284
|
var_nam: e,
|
9283
9285
|
VarPossibility: a.value
|
9284
|
-
})),
|
9286
|
+
})), T[m] = k;
|
9285
9287
|
});
|
9286
9288
|
break;
|
9287
9289
|
}
|
9288
9290
|
switch (n.value) {
|
9289
9291
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9290
9292
|
{
|
9291
|
-
const
|
9292
|
-
if ((
|
9293
|
-
return d.filter((
|
9294
|
-
var
|
9295
|
-
return !((
|
9293
|
+
const T = o;
|
9294
|
+
if ((b = T.value) != null && b.excludeValues)
|
9295
|
+
return d.filter((k) => {
|
9296
|
+
var I;
|
9297
|
+
return !((I = T.value.excludeValues) != null && I.includes(k[m]));
|
9296
9298
|
});
|
9297
9299
|
}
|
9298
9300
|
break;
|
@@ -9328,22 +9330,22 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9328
9330
|
datas: c,
|
9329
9331
|
readDatas: u
|
9330
9332
|
} = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
|
9331
|
-
watch(s, () =>
|
9333
|
+
watch(s, () => v(), {
|
9332
9334
|
immediate: !0
|
9333
9335
|
}), watch([() => e.value, c], ([_, y]) => {
|
9334
|
-
const
|
9335
|
-
if (
|
9336
|
-
const
|
9337
|
-
if (
|
9338
|
-
r("update:value",
|
9336
|
+
const b = get(_, "length", 0);
|
9337
|
+
if (b > 0 && y.length > 0) {
|
9338
|
+
const T = intersection$1(_, y == null ? void 0 : y.map((k) => k[i.value]));
|
9339
|
+
if (T.length < b) {
|
9340
|
+
r("update:value", T);
|
9339
9341
|
return;
|
9340
9342
|
}
|
9341
9343
|
}
|
9342
9344
|
switch (!0) {
|
9343
|
-
case (
|
9345
|
+
case (b > 0 && b === y.length):
|
9344
9346
|
d.value = !0, m.value = !1;
|
9345
9347
|
break;
|
9346
|
-
case (
|
9348
|
+
case (b > 0 && b !== y.length):
|
9347
9349
|
d.value = !1, m.value = !0;
|
9348
9350
|
break;
|
9349
9351
|
default:
|
@@ -9353,13 +9355,13 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9353
9355
|
}, {
|
9354
9356
|
immediate: !0
|
9355
9357
|
});
|
9356
|
-
async function
|
9358
|
+
async function v() {
|
9357
9359
|
var _, y;
|
9358
|
-
!((_ = l.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((
|
9360
|
+
!((_ = l.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((b) => b[i.value]), e.value)));
|
9359
9361
|
}
|
9360
9362
|
function C(_) {
|
9361
|
-
var y,
|
9362
|
-
_.target.checked ? g((
|
9363
|
+
var y, b, T;
|
9364
|
+
_.target.checked ? g((b = (y = c.value) == null ? void 0 : y.map((k) => k[i.value])) != null ? b : []) : g([]), m.value = !1, (T = n.value) == null || T.validate(e.kgVarName);
|
9363
9365
|
}
|
9364
9366
|
function g(_) {
|
9365
9367
|
r("update:value", _), r("kgChange", _);
|
@@ -9371,7 +9373,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9371
9373
|
}, [createVNode(Form.ItemRest, null, {
|
9372
9374
|
default: () => [createVNode(Checkbox, {
|
9373
9375
|
checked: d.value,
|
9374
|
-
"onUpdate:checked": (
|
9376
|
+
"onUpdate:checked": (b) => d.value = b,
|
9375
9377
|
indeterminate: m.value,
|
9376
9378
|
onChange: C
|
9377
9379
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
@@ -9383,18 +9385,18 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9383
9385
|
}, {
|
9384
9386
|
default: () => [createVNode(Row, {
|
9385
9387
|
gutter: 12
|
9386
|
-
}, _isSlot$a(y = c.value.map((
|
9387
|
-
var
|
9388
|
+
}, _isSlot$a(y = c.value.map((b) => {
|
9389
|
+
var T, k;
|
9388
9390
|
return createVNode(Col, {
|
9389
|
-
span: (
|
9391
|
+
span: (k = (T = o.value) == null ? void 0 : T.span) != null ? k : 24
|
9390
9392
|
}, {
|
9391
9393
|
default: () => [createVNode(Checkbox, {
|
9392
|
-
value:
|
9393
|
-
"kg-value":
|
9394
|
+
value: b[i.value],
|
9395
|
+
"kg-value": b[i.value]
|
9394
9396
|
}, {
|
9395
9397
|
default: () => {
|
9396
|
-
var
|
9397
|
-
return [
|
9398
|
+
var I, E;
|
9399
|
+
return [b[(E = (I = l.value) == null ? void 0 : I.lbl_clm) != null ? E : ""]];
|
9398
9400
|
}
|
9399
9401
|
})]
|
9400
9402
|
});
|
@@ -9471,7 +9473,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9471
9473
|
emit: r
|
9472
9474
|
}) {
|
9473
9475
|
function a(o) {
|
9474
|
-
r("update:value", o), r("kgChange", o);
|
9476
|
+
r("update:value", o || null), r("kgChange", o || null);
|
9475
9477
|
}
|
9476
9478
|
function n() {
|
9477
9479
|
r("kgSubmit");
|
@@ -9552,9 +9554,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9552
9554
|
default: () => [createVNode(Row, {
|
9553
9555
|
gutter: 12
|
9554
9556
|
}, _isSlot$9(d = s.value.map((m) => {
|
9555
|
-
var
|
9557
|
+
var v, C;
|
9556
9558
|
return createVNode(Col, {
|
9557
|
-
span: (C = (
|
9559
|
+
span: (C = (v = a.value) == null ? void 0 : v.span) != null ? C : 24
|
9558
9560
|
}, {
|
9559
9561
|
default: () => [createVNode(Radio, {
|
9560
9562
|
value: m[l.value],
|
@@ -9592,18 +9594,18 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9592
9594
|
});
|
9593
9595
|
async function c() {
|
9594
9596
|
var m;
|
9595
|
-
!((m = n.value) != null && m.id) || (await i(), r("kgSelectDatasChange", s.value), s.value.find((
|
9597
|
+
!((m = n.value) != null && m.id) || (await i(), r("kgSelectDatasChange", s.value), s.value.find((v) => v[l.value] === e.value) || r("update:value", void 0));
|
9596
9598
|
}
|
9597
9599
|
function u(m) {
|
9598
9600
|
var C;
|
9599
|
-
const
|
9600
|
-
r("kgSelectChange",
|
9601
|
+
const v = (C = toRaw(s.value.find((g) => g[l.value] === m))) != null ? C : null;
|
9602
|
+
r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
|
9601
9603
|
}
|
9602
9604
|
function d(m) {
|
9603
9605
|
r("update:value", m), r("kgChange", m);
|
9604
9606
|
}
|
9605
9607
|
return () => {
|
9606
|
-
var m,
|
9608
|
+
var m, v;
|
9607
9609
|
return createVNode(Select, {
|
9608
9610
|
value: e.value,
|
9609
9611
|
"onUpdate:value": d,
|
@@ -9617,7 +9619,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9617
9619
|
style: "width: 100%",
|
9618
9620
|
"kg-cmd": (m = n.value) == null ? void 0 : m.cmd,
|
9619
9621
|
"kg-val-clm": l.value,
|
9620
|
-
"kg-lbl-clm": (
|
9622
|
+
"kg-lbl-clm": (v = n.value) == null ? void 0 : v.lbl_clm
|
9621
9623
|
}, {
|
9622
9624
|
default: () => s.value.map((C) => createVNode(Select.Option, {
|
9623
9625
|
"kg-value": C[l.value],
|
@@ -9690,14 +9692,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9690
9692
|
useKg();
|
9691
9693
|
const o = useKgVar();
|
9692
9694
|
useKgForm(o.formID).onLookupOk(async ({
|
9693
|
-
var_nam:
|
9695
|
+
var_nam: M,
|
9694
9696
|
model: A,
|
9695
9697
|
isMultiple: w,
|
9696
9698
|
value: U,
|
9697
9699
|
values: $
|
9698
9700
|
}) => {
|
9699
9701
|
var V;
|
9700
|
-
switch (
|
9702
|
+
switch (M) {
|
9701
9703
|
case e.kgVarName:
|
9702
9704
|
A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = U), (V = n.value) == null || V.validate([e.kgVarName]);
|
9703
9705
|
break;
|
@@ -9708,97 +9710,97 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9708
9710
|
rules: d
|
9709
9711
|
} = _useRules(e), {
|
9710
9712
|
controlType: m
|
9711
|
-
} = useKgFormItem(e),
|
9713
|
+
} = useKgFormItem(e), v = computed(() => {
|
9712
9714
|
var A, w, U, $, V;
|
9713
9715
|
if (o.isRetrieving.value)
|
9714
9716
|
return !0;
|
9715
|
-
let
|
9717
|
+
let M = !1;
|
9716
9718
|
if (e.kgDisabled !== void 0)
|
9717
|
-
|
9719
|
+
M = e.kgDisabled;
|
9718
9720
|
else
|
9719
9721
|
switch (e.kgContext) {
|
9720
9722
|
case KG_FORM_CONTEXT.SEARCH:
|
9721
|
-
|
9723
|
+
M = ((A = c.value) == null ? void 0 : A.ena_flg) === 0;
|
9722
9724
|
break;
|
9723
9725
|
case KG_FORM_CONTEXT.SUBMIT:
|
9724
9726
|
switch (!0) {
|
9725
9727
|
case o.isCreating.value:
|
9726
|
-
|
9728
|
+
M = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
9727
9729
|
break;
|
9728
9730
|
case o.isUpdating.value:
|
9729
|
-
|
9731
|
+
M = ((U = u.value) == null ? void 0 : U.upt_ena_flg) === 0;
|
9730
9732
|
break;
|
9731
9733
|
case o.isCopying.value:
|
9732
|
-
|
9734
|
+
M = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
|
9733
9735
|
break;
|
9734
9736
|
case o.isDeleting.value:
|
9735
|
-
|
9737
|
+
M = ((V = u.value) == null ? void 0 : V.del_ena_flg) === 0;
|
9736
9738
|
break;
|
9737
9739
|
}
|
9738
9740
|
break;
|
9739
9741
|
}
|
9740
|
-
return
|
9742
|
+
return M;
|
9741
9743
|
}), C = computed(() => {
|
9742
9744
|
var A, w, U, $;
|
9743
|
-
let
|
9745
|
+
let M = " ";
|
9744
9746
|
if (e.kgPlaceholder)
|
9745
|
-
|
9747
|
+
M = e.kgPlaceholder;
|
9746
9748
|
else
|
9747
9749
|
switch (e.kgContext) {
|
9748
9750
|
case KG_FORM_CONTEXT.SEARCH:
|
9749
|
-
|
9751
|
+
M = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
|
9750
9752
|
break;
|
9751
9753
|
case KG_FORM_CONTEXT.SUBMIT:
|
9752
|
-
|
9754
|
+
M = o.t(($ = (U = u.value) == null ? void 0 : U.placeholder) != null ? $ : " ").value;
|
9753
9755
|
break;
|
9754
9756
|
}
|
9755
|
-
return
|
9757
|
+
return M;
|
9756
9758
|
}), g = computed(() => {
|
9757
9759
|
var A, w, U, $, V, O, D, N, K, H;
|
9758
|
-
let
|
9760
|
+
let M = 6;
|
9759
9761
|
if (e.kgSpan !== void 0)
|
9760
|
-
|
9762
|
+
M = e.kgSpan;
|
9761
9763
|
else
|
9762
9764
|
switch (e.kgContext) {
|
9763
9765
|
case KG_FORM_CONTEXT.SEARCH:
|
9764
|
-
|
9766
|
+
M = (w = (A = c.value) == null ? void 0 : A.width) != null ? w : 6;
|
9765
9767
|
break;
|
9766
9768
|
case KG_FORM_CONTEXT.SUBMIT:
|
9767
9769
|
switch (!0) {
|
9768
9770
|
case o.isCreating.value:
|
9769
|
-
|
9771
|
+
M = ($ = (U = u.value) == null ? void 0 : U.crt_width) != null ? $ : 6;
|
9770
9772
|
break;
|
9771
9773
|
case o.isUpdating.value:
|
9772
|
-
|
9774
|
+
M = (O = (V = u.value) == null ? void 0 : V.upt_width) != null ? O : 6;
|
9773
9775
|
break;
|
9774
9776
|
case o.isCopying.value:
|
9775
|
-
|
9777
|
+
M = (N = (D = u.value) == null ? void 0 : D.cpy_width) != null ? N : 6;
|
9776
9778
|
break;
|
9777
9779
|
case o.isDeleting.value:
|
9778
|
-
|
9780
|
+
M = (H = (K = u.value) == null ? void 0 : K.del_width) != null ? H : 6;
|
9779
9781
|
break;
|
9780
9782
|
}
|
9781
9783
|
}
|
9782
|
-
return Math.min(24, Math.max(1,
|
9784
|
+
return Math.min(24, Math.max(1, M));
|
9783
9785
|
}), _ = computed(() => {
|
9784
9786
|
var U, $;
|
9785
|
-
const
|
9786
|
-
if (
|
9787
|
+
const M = get(k.value, "$el.parentElement");
|
9788
|
+
if (M && !((U = M.classList) != null && U.contains("ant-row")))
|
9787
9789
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9788
9790
|
let A = {};
|
9789
|
-
const w = Math.abs(Number.parseInt(($ = get(
|
9791
|
+
const w = Math.abs(Number.parseInt(($ = get(k.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
|
9790
9792
|
return Number.isNaN(w) || (A = {
|
9791
9793
|
paddingLeft: `${w}px !important`,
|
9792
9794
|
paddingRight: `${w}px !important`
|
9793
9795
|
}), A;
|
9794
9796
|
}), y = computed(() => {
|
9795
9797
|
var A, w, U, $;
|
9796
|
-
let
|
9797
|
-
switch (s.value && (
|
9798
|
+
let M = "kg-form-item";
|
9799
|
+
switch (s.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9798
9800
|
case KG_FORM_CONTEXT.SEARCH:
|
9799
9801
|
switch (!0) {
|
9800
9802
|
case ((A = c.value) == null ? void 0 : A.vis_flg) === 0:
|
9801
|
-
|
9803
|
+
M += " kg-form-item--invisible";
|
9802
9804
|
break;
|
9803
9805
|
}
|
9804
9806
|
break;
|
@@ -9807,23 +9809,23 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9807
9809
|
case (o.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
9808
9810
|
case (o.isUpdating.value && ((U = u.value) == null ? void 0 : U.upt_vis_flg) === 0):
|
9809
9811
|
case (o.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
|
9810
|
-
|
9812
|
+
M += " kg-form-item--invisible";
|
9811
9813
|
break;
|
9812
9814
|
}
|
9813
9815
|
break;
|
9814
9816
|
}
|
9815
|
-
return
|
9816
|
-
}),
|
9817
|
+
return M;
|
9818
|
+
}), b = computed(() => {
|
9817
9819
|
var A;
|
9818
|
-
const
|
9820
|
+
const M = {
|
9819
9821
|
...e,
|
9820
9822
|
value: (A = a.value) == null ? void 0 : A[e.kgVarName],
|
9821
9823
|
"onUpdate:value": (w) => {
|
9822
9824
|
a.value && (a.value[e.kgVarName] = w);
|
9823
9825
|
},
|
9824
9826
|
kgPlaceholder: C.value,
|
9825
|
-
kgDisabled:
|
9826
|
-
id:
|
9827
|
+
kgDisabled: v.value,
|
9828
|
+
id: T.value
|
9827
9829
|
};
|
9828
9830
|
switch (m.value) {
|
9829
9831
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -9833,62 +9835,67 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9833
9835
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
9834
9836
|
break;
|
9835
9837
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
9836
|
-
|
9838
|
+
M.kgShowTime = !1;
|
9839
|
+
break;
|
9840
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
9841
|
+
M.kgShowTime = !1;
|
9837
9842
|
break;
|
9838
9843
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
9839
|
-
|
9844
|
+
M.kgPicker = "time";
|
9840
9845
|
break;
|
9841
|
-
case KG_FORM_ITEM_TYPE.
|
9842
|
-
|
9846
|
+
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
9847
|
+
M.kgPicker = "time";
|
9843
9848
|
break;
|
9844
|
-
case KG_FORM_ITEM_TYPE.
|
9845
|
-
|
9849
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
9850
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
9846
9851
|
break;
|
9847
9852
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
9848
|
-
|
9853
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
9849
9854
|
break;
|
9850
9855
|
}
|
9851
|
-
return
|
9852
|
-
}),
|
9853
|
-
function
|
9856
|
+
return M;
|
9857
|
+
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), k = ref(null);
|
9858
|
+
function I() {
|
9854
9859
|
if (t.control) {
|
9855
|
-
const
|
9860
|
+
const M = {
|
9856
9861
|
varName: e.kgVarName,
|
9857
|
-
props:
|
9862
|
+
props: b,
|
9858
9863
|
model: a,
|
9859
9864
|
varVariableConfig: i,
|
9860
9865
|
varProfileDetail: c,
|
9861
9866
|
varSubmitField: u
|
9862
9867
|
};
|
9863
|
-
return t.control(
|
9868
|
+
return t.control(M);
|
9864
9869
|
}
|
9865
9870
|
switch (m.value) {
|
9866
9871
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
9867
|
-
return createVNode(KgFormItemInputNumber,
|
9872
|
+
return createVNode(KgFormItemInputNumber, b.value, null);
|
9868
9873
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
9869
|
-
return createVNode(KgFormItemTextArea,
|
9874
|
+
return createVNode(KgFormItemTextArea, b.value, null);
|
9870
9875
|
case KG_FORM_ITEM_TYPE.SELECT:
|
9871
|
-
return createVNode(KgFormItemSelect,
|
9876
|
+
return createVNode(KgFormItemSelect, b.value, null);
|
9872
9877
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
9873
|
-
return createVNode(KgFormItemSwitch,
|
9878
|
+
return createVNode(KgFormItemSwitch, b.value, null);
|
9874
9879
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
9875
|
-
return createVNode(KgFormItemCheckbox,
|
9880
|
+
return createVNode(KgFormItemCheckbox, b.value, null);
|
9876
9881
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9877
|
-
return createVNode(KgFormItemCheckboxGroup,
|
9882
|
+
return createVNode(KgFormItemCheckboxGroup, b.value, null);
|
9878
9883
|
case KG_FORM_ITEM_TYPE.RADIO_GROUP:
|
9879
|
-
return createVNode(KgFormItemRadioGroup,
|
9884
|
+
return createVNode(KgFormItemRadioGroup, b.value, null);
|
9880
9885
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
9881
|
-
return createVNode(KgFormItemDate,
|
9886
|
+
return createVNode(KgFormItemDate, b.value, null);
|
9887
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
9888
|
+
return createVNode(KgFormItemDateRange, b.value, null);
|
9882
9889
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
9883
|
-
return createVNode(KgFormItemDate,
|
9890
|
+
return createVNode(KgFormItemDate, b.value, null);
|
9891
|
+
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
9892
|
+
return createVNode(KgFormItemDateRange, b.value, null);
|
9884
9893
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
9885
|
-
return createVNode(KgFormItemDate,
|
9886
|
-
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
9887
|
-
return createVNode(KgFormItemDateRange, v.value, null);
|
9894
|
+
return createVNode(KgFormItemDate, b.value, null);
|
9888
9895
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
9889
|
-
return createVNode(KgFormItemDateRange,
|
9896
|
+
return createVNode(KgFormItemDateRange, b.value, null);
|
9890
9897
|
default:
|
9891
|
-
return createVNode(KgFormItemInput,
|
9898
|
+
return createVNode(KgFormItemInput, b.value, null);
|
9892
9899
|
}
|
9893
9900
|
}
|
9894
9901
|
function E() {
|
@@ -9897,33 +9904,33 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9897
9904
|
}, [o.t(e.kgVarName).value]) : null;
|
9898
9905
|
}
|
9899
9906
|
function P() {
|
9900
|
-
var
|
9901
|
-
return !s.value || !((
|
9907
|
+
var M;
|
9908
|
+
return !s.value || !((M = s.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9902
9909
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
9903
|
-
kgDisabled:
|
9910
|
+
kgDisabled: v.value,
|
9904
9911
|
kgLookupID: s.value.lkp_id
|
9905
9912
|
}, null)]
|
9906
9913
|
});
|
9907
9914
|
}
|
9908
9915
|
return () => {
|
9909
|
-
var
|
9916
|
+
var M, A;
|
9910
9917
|
return o.isRetrieving.value ? null : createVNode(Col, {
|
9911
|
-
ref:
|
9918
|
+
ref: k,
|
9912
9919
|
span: g.value,
|
9913
9920
|
class: y.value,
|
9914
9921
|
style: _.value,
|
9915
9922
|
"kg-frm_id": o.formID,
|
9916
9923
|
"kg-var_nam": e.kgVarName,
|
9917
|
-
"kg-lkp_id": (
|
9924
|
+
"kg-lkp_id": (M = s.value) == null ? void 0 : M.lkp_id,
|
9918
9925
|
"kg-ret_fld": (A = s.value) == null ? void 0 : A.ret_fld
|
9919
9926
|
}, {
|
9920
9927
|
default: () => [createVNode(Form.Item, {
|
9921
9928
|
name: e.kgVarName,
|
9922
9929
|
rules: d.value,
|
9923
9930
|
validateFirst: !0,
|
9924
|
-
htmlFor:
|
9931
|
+
htmlFor: T.value
|
9925
9932
|
}, {
|
9926
|
-
default: () => createVNode(Fragment, null, [
|
9933
|
+
default: () => createVNode(Fragment, null, [I(), P()]),
|
9927
9934
|
label: () => E()
|
9928
9935
|
})]
|
9929
9936
|
});
|
@@ -10246,14 +10253,14 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10246
10253
|
}).bind(null, pinia())), store$5);
|
10247
10254
|
function useKgSubmit(e) {
|
10248
10255
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
10249
|
-
var _, y,
|
10256
|
+
var _, y, b, T, k;
|
10250
10257
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
10251
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type,
|
10258
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type, C = (T = a.value) == null ? void 0 : T.cpy_display_type, g = (k = a.value) == null ? void 0 : k.del_display_type;
|
10252
10259
|
switch (!0) {
|
10253
10260
|
case (t.isCreating.value && (m === c || !m && d === c)):
|
10254
10261
|
i = c;
|
10255
10262
|
break;
|
10256
|
-
case (t.isUpdating.value && (
|
10263
|
+
case (t.isUpdating.value && (v === c || !v && d === c)):
|
10257
10264
|
i = c;
|
10258
10265
|
break;
|
10259
10266
|
case (t.isCopying.value && (C === c || !C && d === c)):
|
@@ -10267,7 +10274,7 @@ function useKgSubmit(e) {
|
|
10267
10274
|
case (t.isCreating.value && (m === u || !m && d === u)):
|
10268
10275
|
i = u;
|
10269
10276
|
break;
|
10270
|
-
case (t.isUpdating.value && (
|
10277
|
+
case (t.isUpdating.value && (v === u || !v && d === u)):
|
10271
10278
|
i = u;
|
10272
10279
|
break;
|
10273
10280
|
case (t.isCopying.value && (C === u || !C && d === u)):
|
@@ -10320,8 +10327,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10320
10327
|
}) => {
|
10321
10328
|
const u = o.store.getVarSubmitConfig(o.formID);
|
10322
10329
|
return s = watch(c, (d) => {
|
10323
|
-
var m,
|
10324
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (
|
10330
|
+
var m, v, C, g, _, y, b, T, k, I, E, P;
|
10331
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (C = u == null ? void 0 : u.fullscreen_flg) != null ? C : 1, d.dft_fullscreen_flg = (g = u == null ? void 0 : u.dft_fullscreen_flg) != null ? g : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (T = u == null ? void 0 : u.dft_width) != null ? T : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (I = u == null ? void 0 : u.label_col) != null ? I : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (E = u == null ? void 0 : u.label_col_unit) != null ? E : KG_WIDTH_UNIT.SPAN, d.display_type = (P = u == null ? void 0 : u.display_type) != null ? P : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10325
10332
|
}, {
|
10326
10333
|
immediate: !0
|
10327
10334
|
}), KgUtil.hideLoading(), !1;
|
@@ -10367,7 +10374,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10367
10374
|
function m() {
|
10368
10375
|
u.value = !0;
|
10369
10376
|
}
|
10370
|
-
function
|
10377
|
+
function v() {
|
10371
10378
|
r("kgCancel");
|
10372
10379
|
}
|
10373
10380
|
function C() {
|
@@ -10394,7 +10401,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10394
10401
|
return createVNode(Button, {
|
10395
10402
|
disabled: c.value || i.value,
|
10396
10403
|
class: "kg-submit--btn-close",
|
10397
|
-
onClick:
|
10404
|
+
onClick: v
|
10398
10405
|
}, {
|
10399
10406
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
10400
10407
|
});
|
@@ -10404,7 +10411,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10404
10411
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
10405
10412
|
function _useFormModel$1() {
|
10406
10413
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), a = useKgSubmit(), n = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), o = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), s = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), i = computed(() => {
|
10407
|
-
var u, d, m,
|
10414
|
+
var u, d, m, v;
|
10408
10415
|
switch (!0) {
|
10409
10416
|
case t.isCreating.value:
|
10410
10417
|
return (u = n.value) != null ? u : [];
|
@@ -10413,7 +10420,7 @@ function _useFormModel$1() {
|
|
10413
10420
|
case t.isCopying.value:
|
10414
10421
|
return (m = l.value) != null ? m : [];
|
10415
10422
|
case t.isDeleting.value:
|
10416
|
-
return (
|
10423
|
+
return (v = s.value) != null ? v : [];
|
10417
10424
|
}
|
10418
10425
|
return [];
|
10419
10426
|
}), c = ref({});
|
@@ -10424,20 +10431,20 @@ function _useFormModel$1() {
|
|
10424
10431
|
}
|
10425
10432
|
const d = r.selectedRow.value;
|
10426
10433
|
u.forEach((m) => {
|
10427
|
-
var C, g, _, y,
|
10428
|
-
const
|
10429
|
-
switch (c.value[
|
10434
|
+
var C, g, _, y, b, T, k, I;
|
10435
|
+
const v = (C = m.var_nam) != null ? C : "";
|
10436
|
+
switch (c.value[v] = void 0, !0) {
|
10430
10437
|
case t.isCreating.value:
|
10431
|
-
c.value[
|
10438
|
+
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
10432
10439
|
break;
|
10433
10440
|
case t.isUpdating.value:
|
10434
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
10441
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (y = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? y : void 0, "U");
|
10435
10442
|
break;
|
10436
10443
|
case t.isCopying.value:
|
10437
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
10444
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (T = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? T : void 0, "CP");
|
10438
10445
|
break;
|
10439
10446
|
case t.isDeleting.value:
|
10440
|
-
c.value.id = d == null ? void 0 : d.id, c.value[
|
10447
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (I = (k = m.del_dft_val) != null ? k : d == null ? void 0 : d[v]) != null ? I : void 0, "D");
|
10441
10448
|
break;
|
10442
10449
|
}
|
10443
10450
|
}), a.store.setModel(t.formID, c.value);
|
@@ -10508,9 +10515,9 @@ function _useClass(e, t) {
|
|
10508
10515
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), o = computed(() => a.store.getVarSubmitConfig(a.formID)), l = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
10509
10516
|
return {
|
10510
10517
|
getClass: computed(() => {
|
10511
|
-
var c, u, d, m,
|
10518
|
+
var c, u, d, m, v, C, g;
|
10512
10519
|
let i = "kg-submit";
|
10513
|
-
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (
|
10520
|
+
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), a.isDeleting.value && ((d = (u = l.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (i += " kg-submit--delete-message"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? i += ` ${(g = (C = r == null ? void 0 : r.value) == null ? void 0 : C.KgSubmit) == null ? void 0 : g.kgClass}` : e.kgClass && (i += ` ${e.kgClass}`), i;
|
10514
10521
|
})
|
10515
10522
|
};
|
10516
10523
|
}
|
@@ -10518,9 +10525,9 @@ function _useLayout() {
|
|
10518
10525
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
10519
10526
|
return {
|
10520
10527
|
getLayout: computed(() => {
|
10521
|
-
var c, u, d, m,
|
10528
|
+
var c, u, d, m, v;
|
10522
10529
|
let a = "vertical";
|
10523
|
-
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, l = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, i = (
|
10530
|
+
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, l = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, i = (v = t.value) == null ? void 0 : v.del_layout;
|
10524
10531
|
switch (!0) {
|
10525
10532
|
case (e.isCreating.value && (o === "horizontal" || !o && n === "horizontal")):
|
10526
10533
|
a = "horizontal";
|
@@ -10543,10 +10550,10 @@ function _useDefaultWidth() {
|
|
10543
10550
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
10544
10551
|
return {
|
10545
10552
|
getDefaultWidth: computed(() => {
|
10546
|
-
var c, u, d, m,
|
10553
|
+
var c, u, d, m, v;
|
10547
10554
|
if (!t.value)
|
10548
10555
|
return 0;
|
10549
|
-
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, o = (d = t.value) == null ? void 0 : d.upt_dft_width, l = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (
|
10556
|
+
const a = (c = t.value) == null ? void 0 : c.dft_width, n = (u = t.value) == null ? void 0 : u.crt_dft_width, o = (d = t.value) == null ? void 0 : d.upt_dft_width, l = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (v = t.value) == null ? void 0 : v.del_dft_width;
|
10550
10557
|
let i = a || DEFAULT_WIDTH;
|
10551
10558
|
switch (!0) {
|
10552
10559
|
case (e.isCreating.value && !!n):
|
@@ -10586,11 +10593,11 @@ const getProps$p = () => ({
|
|
10586
10593
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10587
10594
|
const n = useKg(), o = useKgVar(), l = useKgButton(), s = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
10588
10595
|
l.onSubmitSave(async () => (await le(), !1)), l.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
|
10589
|
-
const u = computed(() => o.isDeleting.value &&
|
10596
|
+
const u = computed(() => o.isDeleting.value && k.value.length === 0 && I.value.length === 0), d = computed(() => i.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), g = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), T = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), k = computed(() => {
|
10590
10597
|
var F, x, W;
|
10591
10598
|
switch (!0) {
|
10592
10599
|
case o.isCreating.value:
|
10593
|
-
return (F =
|
10600
|
+
return (F = v.value) != null ? F : [];
|
10594
10601
|
case o.isUpdating.value:
|
10595
10602
|
return (x = g.value) != null ? x : [];
|
10596
10603
|
case o.isCopying.value:
|
@@ -10599,7 +10606,7 @@ const getProps$p = () => ({
|
|
10599
10606
|
return [];
|
10600
10607
|
}
|
10601
10608
|
return [];
|
10602
|
-
}),
|
10609
|
+
}), I = computed(() => {
|
10603
10610
|
var F, x, W, J;
|
10604
10611
|
switch (!0) {
|
10605
10612
|
case o.isCreating.value:
|
@@ -10607,12 +10614,12 @@ const getProps$p = () => ({
|
|
10607
10614
|
case o.isUpdating.value:
|
10608
10615
|
return (x = _.value) != null ? x : [];
|
10609
10616
|
case o.isCopying.value:
|
10610
|
-
return (W =
|
10617
|
+
return (W = b.value) != null ? W : [];
|
10611
10618
|
case o.isDeleting.value:
|
10612
|
-
return (J =
|
10619
|
+
return (J = T.value) != null ? J : [];
|
10613
10620
|
}
|
10614
10621
|
return [];
|
10615
|
-
}), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), P = computed(() => E.value || d.value),
|
10622
|
+
}), E = computed(() => !!o.store.isCreatingRequesting(o.formID) || !!o.store.isUpdatingRequesting(o.formID) || !!o.store.isCopyingRequesting(o.formID) || !!o.store.isDeletingRequesting(o.formID)), P = computed(() => E.value || d.value), M = computed(() => d.value), A = ref({
|
10616
10623
|
kgWidth: 0
|
10617
10624
|
}), w = computed(() => {
|
10618
10625
|
var F;
|
@@ -10993,13 +11000,13 @@ const getProps$p = () => ({
|
|
10993
11000
|
}, {
|
10994
11001
|
default: () => [createVNode("div", {
|
10995
11002
|
ref: O
|
10996
|
-
}, [
|
11003
|
+
}, [k.value.length > 0 && createVNode(Row, {
|
10997
11004
|
gutter: 12
|
10998
|
-
}, _isSlot$8(F =
|
11005
|
+
}, _isSlot$8(F = k.value.map(de)) ? F : {
|
10999
11006
|
default: () => [F]
|
11000
|
-
}),
|
11007
|
+
}), k.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
|
11001
11008
|
gutter: 12
|
11002
|
-
}, _isSlot$8(x =
|
11009
|
+
}, _isSlot$8(x = I.value.map(de)) ? x : {
|
11003
11010
|
default: () => [x]
|
11004
11011
|
}), u.value && createVNode("div", {
|
11005
11012
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -11019,7 +11026,7 @@ const getProps$p = () => ({
|
|
11019
11026
|
default: () => [F]
|
11020
11027
|
}), createVNode(Button, {
|
11021
11028
|
type: "primary",
|
11022
|
-
disabled:
|
11029
|
+
disabled: M.value,
|
11023
11030
|
loading: E.value,
|
11024
11031
|
danger: !!o.isDeleting.value,
|
11025
11032
|
onClick: le
|
@@ -11277,7 +11284,7 @@ function useKgTable(e) {
|
|
11277
11284
|
}), m = computed(() => {
|
11278
11285
|
var g, _;
|
11279
11286
|
return JSON.parse((_ = (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opts) != null ? _ : "[]");
|
11280
|
-
}),
|
11287
|
+
}), v = computed(() => {
|
11281
11288
|
var g;
|
11282
11289
|
return (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opt;
|
11283
11290
|
}), C = computed(() => {
|
@@ -11297,7 +11304,7 @@ function useKgTable(e) {
|
|
11297
11304
|
isShowBottomRight: u,
|
11298
11305
|
id: d,
|
11299
11306
|
pageSizeOptions: m,
|
11300
|
-
pageSizeOption:
|
11307
|
+
pageSizeOption: v,
|
11301
11308
|
profileFormID: C,
|
11302
11309
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
11303
11310
|
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
|
@@ -11324,53 +11331,53 @@ const getProps$n = () => ({
|
|
11324
11331
|
}) {
|
11325
11332
|
const a = useKg(), n = useKgVar(), o = useKgButton(), l = useKgSubmit(), s = useKgTable();
|
11326
11333
|
o.onSubmitSave(async () => {
|
11327
|
-
var
|
11334
|
+
var k;
|
11328
11335
|
try {
|
11329
|
-
await ((
|
11330
|
-
} catch (
|
11331
|
-
KgUtil.throwIfNotFormError(
|
11336
|
+
await ((k = C.value) == null ? void 0 : k.validate());
|
11337
|
+
} catch (I) {
|
11338
|
+
KgUtil.throwIfNotFormError(I);
|
11332
11339
|
}
|
11333
11340
|
return !1;
|
11334
11341
|
});
|
11335
11342
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11336
|
-
var
|
11337
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((
|
11343
|
+
var k, I, E, P, M, A;
|
11344
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((P = c.value) == null ? void 0 : P.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
|
11338
11345
|
}), d = computed(() => {
|
11339
|
-
var
|
11340
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((
|
11346
|
+
var k, I;
|
11347
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[s.id.value]) === ((I = s.selectedRow.value) == null ? void 0 : I[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
11341
11348
|
}), m = computed(() => {
|
11342
|
-
var
|
11343
|
-
let
|
11344
|
-
return ((
|
11345
|
-
}),
|
11346
|
-
var
|
11349
|
+
var I, E;
|
11350
|
+
let k = "kg-table-td";
|
11351
|
+
return ((I = i.value) == null ? void 0 : I.align) === "center" ? k += " kg-table-td--center" : ((E = i.value) == null ? void 0 : E.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
11352
|
+
}), v = computed(() => {
|
11353
|
+
var I, E, P, M;
|
11347
11354
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11348
11355
|
return "";
|
11349
|
-
let
|
11350
|
-
switch ((
|
11356
|
+
let k = e.kgValue;
|
11357
|
+
switch ((I = i.value) == null ? void 0 : I.display_type) {
|
11351
11358
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11352
11359
|
{
|
11353
11360
|
const A = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
|
11354
|
-
|
11361
|
+
k = (M = (P = e.kgRow) == null ? void 0 : P[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? M : e.kgValue;
|
11355
11362
|
}
|
11356
11363
|
break;
|
11357
11364
|
}
|
11358
|
-
return isString$1(
|
11359
|
-
`)),
|
11365
|
+
return isString$1(k) && (k = k.replaceAll("\\n", `
|
11366
|
+
`)), k;
|
11360
11367
|
}), C = ref(null);
|
11361
|
-
function g(
|
11362
|
-
var
|
11363
|
-
if (
|
11364
|
-
switch ((
|
11368
|
+
function g(k) {
|
11369
|
+
var I, E, P;
|
11370
|
+
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11371
|
+
switch ((I = i.value) == null ? void 0 : I.display_type) {
|
11365
11372
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11366
|
-
|
11373
|
+
k.stopPropagation(), k.preventDefault(), r("kgUpdateLinkClick");
|
11367
11374
|
break;
|
11368
11375
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11369
11376
|
{
|
11370
|
-
|
11371
|
-
const
|
11377
|
+
k.stopPropagation(), k.preventDefault();
|
11378
|
+
const M = KgUtil.tryParseJSON((E = i.value) == null ? void 0 : E.display_type_properties);
|
11372
11379
|
(P = a.router.value) == null || P.push({
|
11373
|
-
path:
|
11380
|
+
path: M.path,
|
11374
11381
|
query: e.kgRow
|
11375
11382
|
});
|
11376
11383
|
}
|
@@ -11400,13 +11407,13 @@ const getProps$n = () => ({
|
|
11400
11407
|
})]
|
11401
11408
|
});
|
11402
11409
|
}
|
11403
|
-
function
|
11404
|
-
var
|
11410
|
+
function b() {
|
11411
|
+
var k, I, E, P, M, A, w, U, $, V;
|
11405
11412
|
if (u.value)
|
11406
11413
|
return y();
|
11407
|
-
switch ((
|
11414
|
+
switch ((k = i.value) == null ? void 0 : k.display_type) {
|
11408
11415
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11409
|
-
const O = KgUtil.tryParseJSON((
|
11416
|
+
const O = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
11410
11417
|
return createVNode(KgYesOrNo, {
|
11411
11418
|
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((E = O.yValue) != null ? E : 1),
|
11412
11419
|
kgNilAsFalse: O.nilAsFalse
|
@@ -11417,24 +11424,24 @@ const getProps$n = () => ({
|
|
11417
11424
|
if (D) {
|
11418
11425
|
const N = n.t(D.varName).value;
|
11419
11426
|
return N ? createVNode(Tag, {
|
11420
|
-
color: (
|
11427
|
+
color: (M = D.color) != null ? M : "default"
|
11421
11428
|
}, _isSlot$7(N) ? N : {
|
11422
11429
|
default: () => [N]
|
11423
|
-
}) :
|
11430
|
+
}) : T();
|
11424
11431
|
} else
|
11425
|
-
return
|
11432
|
+
return T();
|
11426
11433
|
}
|
11427
11434
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11428
11435
|
const O = KgUtil.tryParseJSON((A = i.value) == null ? void 0 : A.display_type_properties);
|
11429
11436
|
if (O.isTag && isArrayLike(O.tagColors)) {
|
11430
11437
|
const D = O.tagColors.find((N) => N.value === e.kgValue);
|
11431
|
-
return
|
11438
|
+
return v.value ? createVNode(Tag, {
|
11432
11439
|
color: (w = D == null ? void 0 : D.color) != null ? w : "default"
|
11433
11440
|
}, {
|
11434
|
-
default: () => [
|
11435
|
-
}) :
|
11441
|
+
default: () => [v.value]
|
11442
|
+
}) : T();
|
11436
11443
|
} else
|
11437
|
-
return
|
11444
|
+
return T();
|
11438
11445
|
}
|
11439
11446
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11440
11447
|
const O = KgUtil.tryParseJSON((U = i.value) == null ? void 0 : U.display_type_properties);
|
@@ -11447,25 +11454,25 @@ const getProps$n = () => ({
|
|
11447
11454
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
11448
11455
|
return KgUtil.getFileSize(e.kgValue);
|
11449
11456
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11450
|
-
return
|
11457
|
+
return T(!0);
|
11451
11458
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11452
|
-
return
|
11459
|
+
return T(!0);
|
11453
11460
|
default:
|
11454
|
-
return
|
11461
|
+
return T();
|
11455
11462
|
}
|
11456
11463
|
}
|
11457
|
-
function k
|
11458
|
-
let
|
11459
|
-
return
|
11460
|
-
innerHTML:
|
11461
|
-
class:
|
11464
|
+
function T(k = !1) {
|
11465
|
+
let I = "";
|
11466
|
+
return k && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (I += "kg-table-td-update-link"), createVNode("pre", {
|
11467
|
+
innerHTML: v.value,
|
11468
|
+
class: I,
|
11462
11469
|
onClick: g
|
11463
11470
|
}, null);
|
11464
11471
|
}
|
11465
11472
|
return () => createVNode("div", {
|
11466
11473
|
class: m.value,
|
11467
|
-
title:
|
11468
|
-
}, [
|
11474
|
+
title: v.value
|
11475
|
+
}, [b()]);
|
11469
11476
|
}
|
11470
11477
|
}), KgTable_Info = "";
|
11471
11478
|
function _isSlot$6(e) {
|
@@ -11554,8 +11561,8 @@ const getProps$m = () => ({
|
|
11554
11561
|
}) => {
|
11555
11562
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11556
11563
|
return l = watch(i, (u) => {
|
11557
|
-
var d, m,
|
11558
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (
|
11564
|
+
var d, m, v, C, g, _, y, b, T, k, I;
|
11565
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (C = c == null ? void 0 : c.show_check_column_flg) != null ? C : 0, u.show_bottom_left_flg = (g = c == null ? void 0 : c.show_bottom_left_flg) != null ? g : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (T = c == null ? void 0 : c.pg_size_opt) != null ? T : 10, u.cmd_prm = (k = c == null ? void 0 : c.cmd_prm) != null ? k : void 0, u.button_display_type = (I = c == null ? void 0 : c.button_display_type) != null ? I : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11559
11566
|
}, {
|
11560
11567
|
immediate: !0
|
11561
11568
|
}), KgUtil.hideLoading(), !1;
|
@@ -11746,8 +11753,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11746
11753
|
return o.onOpen(async ({
|
11747
11754
|
model: l
|
11748
11755
|
}) => {
|
11749
|
-
var s, i, c, u, d, m,
|
11750
|
-
return l.value.grd_var_nam = `${(i = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? i : ""}_COPY`, l.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", l.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", l.value.grp_nam = (C = (
|
11756
|
+
var s, i, c, u, d, m, v, C, g, _;
|
11757
|
+
return l.value.grd_var_nam = `${(i = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? i : ""}_COPY`, l.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", l.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", l.value.grp_nam = (C = (v = n.currentVarGridMaster.value) == null ? void 0 : v.grp_nam) != null ? C : "", l.value.varGridDetails = (_ = (g = n.currentVarGridMaster.value) == null ? void 0 : g.varGridDetails) != null ? _ : [], KgUtil.hideLoading(), !1;
|
11751
11758
|
}), o.onBeforeOk(async ({
|
11752
11759
|
model: l
|
11753
11760
|
}) => (l.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
@@ -11775,19 +11782,19 @@ const getProps$h = () => ({
|
|
11775
11782
|
} = _useServices(), s = ref(""), i = ref([]), c = computed(() => i.value.includes("1")), u = reactive({
|
11776
11783
|
visible: !1
|
11777
11784
|
}), d = computed(() => isNil(e.kgDisabled) ? !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value || !!n.isCreating.value : e.kgDisabled), m = ref(!1);
|
11778
|
-
_useObserveMenuItemColumns(c), watch(c, (
|
11779
|
-
|
11785
|
+
_useObserveMenuItemColumns(c), watch(c, (T) => {
|
11786
|
+
T || (s.value = "");
|
11780
11787
|
}, {
|
11781
11788
|
immediate: !0
|
11782
11789
|
});
|
11783
|
-
function
|
11784
|
-
n.store.patchVarGridDetail(n.formID,
|
11785
|
-
vis_flg:
|
11790
|
+
function v(T) {
|
11791
|
+
n.store.patchVarGridDetail(n.formID, T.var_nam, {
|
11792
|
+
vis_flg: T.vis_flg === 1 ? 0 : 1
|
11786
11793
|
});
|
11787
11794
|
}
|
11788
11795
|
async function C() {
|
11789
|
-
var
|
11790
|
-
if (((
|
11796
|
+
var T;
|
11797
|
+
if (((T = n.currentVarGridMaster.value) == null ? void 0 : T.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
11791
11798
|
KgUtil.confirm({
|
11792
11799
|
content: a.t("kg.KgTable.canNotUpdateSystemVarGridMaster"),
|
11793
11800
|
okButtonProps: {
|
@@ -11815,32 +11822,32 @@ const getProps$h = () => ({
|
|
11815
11822
|
popupClassName: "kg-table-setting-submenu-popup-columns"
|
11816
11823
|
}, {
|
11817
11824
|
default: () => {
|
11818
|
-
var
|
11825
|
+
var T;
|
11819
11826
|
return createVNode("div", {
|
11820
11827
|
class: "columns"
|
11821
11828
|
}, [createVNode(Input, {
|
11822
11829
|
value: s.value,
|
11823
|
-
"onUpdate:value": (
|
11830
|
+
"onUpdate:value": (k) => s.value = k,
|
11824
11831
|
allowClear: !0
|
11825
11832
|
}, null), createVNode("ul", {
|
11826
11833
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
11827
|
-
}, [(
|
11834
|
+
}, [(T = n.currentVarGridDetails.value) == null ? void 0 : T.map((k) => createVNode("li", {
|
11828
11835
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11829
|
-
onClick: (
|
11830
|
-
|
11836
|
+
onClick: (I) => {
|
11837
|
+
I.preventDefault(), I.stopPropagation(), v(k);
|
11831
11838
|
},
|
11832
11839
|
style: {
|
11833
|
-
display: l(
|
11840
|
+
display: l(k, s.value) ? "flex" : "none"
|
11834
11841
|
},
|
11835
|
-
"kg-var_nam":
|
11842
|
+
"kg-var_nam": k.var_nam
|
11836
11843
|
}, [createVNode(Checkbox, {
|
11837
|
-
checked:
|
11844
|
+
checked: k.vis_flg === 1,
|
11838
11845
|
disabled: !0
|
11839
11846
|
}, {
|
11840
|
-
default: () => [createVNode("pre", null, [n.t(
|
11847
|
+
default: () => [createVNode("pre", null, [n.t(k.var_nam).value])]
|
11841
11848
|
}), createVNode(HolderOutlined$1, {
|
11842
|
-
onClick: (
|
11843
|
-
|
11849
|
+
onClick: (I) => {
|
11850
|
+
I.preventDefault(), I.stopPropagation();
|
11844
11851
|
}
|
11845
11852
|
}, null)]))])]);
|
11846
11853
|
},
|
@@ -11854,9 +11861,9 @@ const getProps$h = () => ({
|
|
11854
11861
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
11855
11862
|
}, {
|
11856
11863
|
default: () => {
|
11857
|
-
var
|
11858
|
-
let
|
11859
|
-
return createVNode(Fragment, null, [(
|
11864
|
+
var I;
|
11865
|
+
let T, k;
|
11866
|
+
return createVNode(Fragment, null, [(I = n.varGridMasters.value) == null ? void 0 : I.map((E) => {
|
11860
11867
|
var P;
|
11861
11868
|
return createVNode(Menu.Item, {
|
11862
11869
|
key: E.id,
|
@@ -11869,27 +11876,27 @@ const getProps$h = () => ({
|
|
11869
11876
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
11870
11877
|
key: "save-grid-view",
|
11871
11878
|
onClick: C
|
11872
|
-
}, _isSlot$5(
|
11873
|
-
default: () => [
|
11879
|
+
}, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMaster")) ? T : {
|
11880
|
+
default: () => [T]
|
11874
11881
|
}), createVNode(Menu.Item, {
|
11875
11882
|
key: "save-grid-view-as",
|
11876
11883
|
onClick: g
|
11877
|
-
}, _isSlot$5(
|
11878
|
-
default: () => [
|
11884
|
+
}, _isSlot$5(k = a.t("kg.KgTable.saveVarGridMasterAs")) ? k : {
|
11885
|
+
default: () => [k]
|
11879
11886
|
})]);
|
11880
11887
|
},
|
11881
11888
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
11882
11889
|
});
|
11883
11890
|
}
|
11884
|
-
function
|
11885
|
-
let
|
11891
|
+
function b() {
|
11892
|
+
let T;
|
11886
11893
|
return createVNode(Menu.Item, {
|
11887
11894
|
key: "config-var-grid-master",
|
11888
11895
|
onClick: () => {
|
11889
11896
|
u.visible = !0;
|
11890
11897
|
}
|
11891
|
-
}, _isSlot$5(
|
11892
|
-
default: () => [
|
11898
|
+
}, _isSlot$5(T = a.t("kg.KgTable.config")) ? T : {
|
11899
|
+
default: () => [T]
|
11893
11900
|
});
|
11894
11901
|
}
|
11895
11902
|
return () => createVNode(Fragment, null, [createVNode(Dropdown, {
|
@@ -11902,14 +11909,14 @@ const getProps$h = () => ({
|
|
11902
11909
|
overlay: () => createVNode(Menu, {
|
11903
11910
|
triggerSubMenuAction: "click",
|
11904
11911
|
openKeys: i.value,
|
11905
|
-
"onUpdate:openKeys": (
|
11912
|
+
"onUpdate:openKeys": (T) => i.value = T,
|
11906
11913
|
selectable: !1
|
11907
11914
|
}, {
|
11908
|
-
default: () => [_(), y(),
|
11915
|
+
default: () => [_(), y(), b()]
|
11909
11916
|
})
|
11910
11917
|
}), u.visible && createVNode(KgTableSettingConfigModal, {
|
11911
11918
|
visible: u.visible,
|
11912
|
-
"onUpdate:visible": (
|
11919
|
+
"onUpdate:visible": (T) => u.visible = T,
|
11913
11920
|
hostFormID: n.formID
|
11914
11921
|
}, null), m.value && createVNode(KgTableSettingVarGridMasterSaveAs, null, null)]);
|
11915
11922
|
}
|
@@ -11919,8 +11926,8 @@ function _useColumns(e) {
|
|
11919
11926
|
var i;
|
11920
11927
|
return ((i = r.store.getVarGridConfig(r.formID)) == null ? void 0 : i.show_check_column_flg) === 1;
|
11921
11928
|
}), l = computed(() => {
|
11922
|
-
var m,
|
11923
|
-
const i = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (
|
11929
|
+
var m, v, C;
|
11930
|
+
const i = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (v = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? v : 0, u = r.store.getCurrentVisibleVarGridDetails(r.formID), d = [{
|
11924
11931
|
dataIndex: "index",
|
11925
11932
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
11926
11933
|
fixed: "left",
|
@@ -11934,21 +11941,21 @@ function _useColumns(e) {
|
|
11934
11941
|
function y() {
|
11935
11942
|
return g.width === "auto" ? "auto" : Number(g.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
11936
11943
|
}
|
11937
|
-
function
|
11944
|
+
function b() {
|
11938
11945
|
return r.t(_).value;
|
11939
11946
|
}
|
11940
|
-
function
|
11947
|
+
function T() {
|
11941
11948
|
return g.ord === -1 ? null : g.ord === 0 ? "ascend" : g.ord === 1 ? "descend" : null;
|
11942
11949
|
}
|
11943
|
-
function
|
11950
|
+
function k() {
|
11944
11951
|
if (g.fix_left_flg === 1)
|
11945
11952
|
return "left";
|
11946
11953
|
if (g.fix_right_flg === 1)
|
11947
11954
|
return "right";
|
11948
11955
|
}
|
11949
|
-
function
|
11950
|
-
var
|
11951
|
-
return !((A = (
|
11956
|
+
function I() {
|
11957
|
+
var M, A, w, U;
|
11958
|
+
return !((A = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) != null && A.kgDisabled || isNil((U = (w = t == null ? void 0 : t.value) == null ? void 0 : w.KgTable) == null ? void 0 : U.kgDisabled) && e.kgDisabled || g.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
11952
11959
|
}
|
11953
11960
|
function E() {
|
11954
11961
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
@@ -11956,27 +11963,27 @@ function _useColumns(e) {
|
|
11956
11963
|
const P = y();
|
11957
11964
|
return {
|
11958
11965
|
dataIndex: _,
|
11959
|
-
title:
|
11966
|
+
title: b(),
|
11960
11967
|
width: P,
|
11961
11968
|
resizable: typeof P == "number",
|
11962
11969
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11963
11970
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11964
|
-
fixed:
|
11965
|
-
sorter:
|
11971
|
+
fixed: k(),
|
11972
|
+
sorter: I(),
|
11966
11973
|
align: E(),
|
11967
|
-
defaultSortOrder:
|
11974
|
+
defaultSortOrder: T(),
|
11968
11975
|
customHeaderCell: () => ({
|
11969
11976
|
"kg-frm_id": r.formID,
|
11970
11977
|
"kg-var_nam": _,
|
11971
11978
|
draggable: !0
|
11972
11979
|
}),
|
11973
|
-
customCell: (
|
11980
|
+
customCell: (M) => {
|
11974
11981
|
var w;
|
11975
11982
|
const A = r.store.getVarSubmitField(r.formID, _);
|
11976
11983
|
return {
|
11977
11984
|
"kg-frm_id": r.formID,
|
11978
11985
|
"kg-var_nam": _,
|
11979
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
11986
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && M[n.id.value] === ((w = n.selectedRow.value) == null ? void 0 : w[n.id.value]) && (!!r.isCreating.value && (A == null ? void 0 : A.crt_flg) === 1 || !!r.isUpdating.value && (A == null ? void 0 : A.upt_flg) === 1 || !!r.isCopying.value && (A == null ? void 0 : A.cpy_flg) === 1 || !!r.isDeleting.value && (A == null ? void 0 : A.del_flg) === 1) ? "submitting" : ""
|
11980
11987
|
};
|
11981
11988
|
}
|
11982
11989
|
};
|
@@ -12025,22 +12032,22 @@ function _useDragColumn(e, t) {
|
|
12025
12032
|
if (a = filter((s = e.value) == null ? void 0 : s.querySelectorAll("div.ant-table-header > table > thead > tr >th"), (i) => i.hasAttribute("kg-var_nam")), a)
|
12026
12033
|
for (let i of a)
|
12027
12034
|
i.__kg__dragstart__ = (c) => {
|
12028
|
-
var
|
12035
|
+
var v;
|
12029
12036
|
n = i, i.classList.add("dragging"), i.parentElement.classList.add("dragging");
|
12030
12037
|
const u = document.createElement("span");
|
12031
|
-
u.setAttribute("id", "
|
12038
|
+
u.setAttribute("id", "__kg_table_header_drag_image__"), u.classList.add("__kg_table_header_drag_image__"), u.style.textAlign = i.style.textAlign || "left";
|
12032
12039
|
const {
|
12033
12040
|
width: d,
|
12034
12041
|
height: m
|
12035
12042
|
} = i.getBoundingClientRect();
|
12036
|
-
d && m && (u.style.width = `${d}px`, u.style.height = `${m}px`), u.appendChild(i.querySelector("pre").cloneNode(!0)), document.body.appendChild(u), (
|
12043
|
+
d && m && (u.style.width = `${d}px`, u.style.height = `${m}px`), u.appendChild(i.querySelector("pre").cloneNode(!0)), document.body.appendChild(u), (v = c.dataTransfer) == null || v.setDragImage(u, -10, -10);
|
12037
12044
|
}, i.addEventListener("dragstart", i.__kg__dragstart__), i.__kg__dragend__ = (c) => {
|
12038
12045
|
i.classList.remove("dragging"), i.parentElement.classList.remove("dragging");
|
12039
|
-
const u = document.querySelector("#
|
12046
|
+
const u = document.querySelector("#__kg_table_header_drag_image__");
|
12040
12047
|
u && document.body.removeChild(u);
|
12041
12048
|
}, i.addEventListener("dragend", i.__kg__dragend__), a.__kg__drag__ = (c) => {
|
12042
12049
|
c.preventDefault();
|
12043
|
-
const u = document.querySelector("#
|
12050
|
+
const u = document.querySelector("#__kg_table_header_drag_image__");
|
12044
12051
|
u && (u.style.left = `${c.clientX + 10}px`, u.style.top = `${c.clientY + 10}px`);
|
12045
12052
|
}, i.addEventListener("drag", a.__kg__drag__, !1), a.__kg__dragover__ = (c) => {
|
12046
12053
|
var u, d;
|
@@ -12054,8 +12061,8 @@ function _useDragColumn(e, t) {
|
|
12054
12061
|
c.preventDefault(), i.classList.remove("dragover", "dragover-right", "dragover-left");
|
12055
12062
|
const u = n == null ? void 0 : n.getAttribute("kg-frm_id"), d = i.getAttribute("kg-frm_id");
|
12056
12063
|
if (u === d) {
|
12057
|
-
const m = n == null ? void 0 : n.getAttribute("kg-var_nam"),
|
12058
|
-
m !==
|
12064
|
+
const m = n == null ? void 0 : n.getAttribute("kg-var_nam"), v = i.getAttribute("kg-var_nam");
|
12065
|
+
m !== v && r.store.dragSortCurrentVarGridDetails(r.formID, m, v);
|
12059
12066
|
}
|
12060
12067
|
}, i.addEventListener("drop", i.__kg__drop__);
|
12061
12068
|
}
|
@@ -12108,21 +12115,21 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12108
12115
|
}
|
12109
12116
|
break;
|
12110
12117
|
case "clearDatas":
|
12111
|
-
B[0] === s.formID && ($.value = [], O.total = 0, L(),
|
12118
|
+
B[0] === s.formID && ($.value = [], O.total = 0, L(), v.value = []);
|
12112
12119
|
break;
|
12113
12120
|
}
|
12114
12121
|
});
|
12115
|
-
const m = ref(!1),
|
12122
|
+
const m = ref(!1), v = ref([]), {
|
12116
12123
|
columns: C,
|
12117
12124
|
scrollX: g
|
12118
12125
|
} = _useColumns(e), {
|
12119
12126
|
isLoading: _
|
12120
12127
|
} = _useLoading(), y = ref(null);
|
12121
12128
|
_useResizeObserver(y), _useDragColumn(y, C);
|
12122
|
-
const
|
12129
|
+
const b = computed(() => {
|
12123
12130
|
var R, B;
|
12124
12131
|
return (B = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? B : null;
|
12125
|
-
}),
|
12132
|
+
}), T = computed(() => {
|
12126
12133
|
var B, z, X, F, x, W, J;
|
12127
12134
|
let R = {
|
12128
12135
|
pageNo: O.pageIndex,
|
@@ -12137,20 +12144,20 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12137
12144
|
...R,
|
12138
12145
|
...KgVarUtil.parseCommandParameter((W = s.varGridConfig.value.cmd_prm) != null ? W : "")
|
12139
12146
|
}), ((J = s.varGridConfig.value) == null ? void 0 : J.convert_sort_field_to_under_score_flg) === 1 && R.column && (R.column = snakeCase$1(R.column)), R;
|
12140
|
-
}),
|
12147
|
+
}), k = computed(() => {
|
12141
12148
|
var R, B, z, X;
|
12142
12149
|
if (!isNil((B = (R = o == null ? void 0 : o.value) == null ? void 0 : R.KgTable) == null ? void 0 : B.kgDisabled))
|
12143
12150
|
return (X = (z = o == null ? void 0 : o.value) == null ? void 0 : z.KgTable) == null ? void 0 : X.kgDisabled;
|
12144
12151
|
if (!isNil(e.kgDisabled))
|
12145
12152
|
return e.kgDisabled;
|
12146
|
-
}),
|
12153
|
+
}), I = computed(() => !!k.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => !!k.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), P = computed(() => {
|
12147
12154
|
var R;
|
12148
12155
|
return !!((R = n == null ? void 0 : n.KgTable) != null && R.expandedRowRender);
|
12149
|
-
}),
|
12156
|
+
}), M = computed(() => {
|
12150
12157
|
var R;
|
12151
12158
|
return ((R = s.varGridConfig.value) == null ? void 0 : R.show_check_column_flg) === 1;
|
12152
12159
|
}), A = computed(() => {
|
12153
|
-
if (!!
|
12160
|
+
if (!!M.value)
|
12154
12161
|
return {
|
12155
12162
|
fixed: "left",
|
12156
12163
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
@@ -12158,7 +12165,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12158
12165
|
selectedRowKeys: V,
|
12159
12166
|
preserveSelectedRowKeys: !1,
|
12160
12167
|
getCheckboxProps: (R) => ({
|
12161
|
-
disabled: !!
|
12168
|
+
disabled: !!k.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
|
12162
12169
|
}),
|
12163
12170
|
onSelect: (R) => Q(R),
|
12164
12171
|
onChange: (R) => u.isMultiSelect.value && Y(R)
|
@@ -12185,7 +12192,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12185
12192
|
});
|
12186
12193
|
watch(u.pageSizeOptions, (R) => {
|
12187
12194
|
R.length > 0 && !R.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
12188
|
-
}), watch([
|
12195
|
+
}), watch([b, u.isReadAutomatically, i.isReady], ([R, B, z]) => {
|
12189
12196
|
R && B && z && !u.store.getIsRetrieved(s.formID) && G(!0);
|
12190
12197
|
}, {
|
12191
12198
|
immediate: !0
|
@@ -12208,7 +12215,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12208
12215
|
}
|
12209
12216
|
function L(R, B) {
|
12210
12217
|
var z;
|
12211
|
-
if (!(!!
|
12218
|
+
if (!(!!k.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!A.value) {
|
12212
12219
|
if (!B) {
|
12213
12220
|
u.store.setSelectedRows(s.formID, []);
|
12214
12221
|
return;
|
@@ -12240,7 +12247,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12240
12247
|
});
|
12241
12248
|
async function z() {
|
12242
12249
|
var X, F, x;
|
12243
|
-
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !
|
12250
|
+
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !b.value) {
|
12244
12251
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12245
12252
|
VarButton: s.varButtonSearch.value
|
12246
12253
|
});
|
@@ -12248,13 +12255,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12248
12255
|
}
|
12249
12256
|
R && (O.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
12250
12257
|
try {
|
12251
|
-
const W = KgUtil.parseParams(
|
12258
|
+
const W = KgUtil.parseParams(T.value, u.profileFormID.value, a), J = ref({});
|
12252
12259
|
await u.store.emit(s.formID, "beforeRetrieve", {
|
12253
12260
|
params: W,
|
12254
12261
|
response: J
|
12255
12262
|
}) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : J.value = await httpClient().request({
|
12256
12263
|
method: "GET",
|
12257
|
-
url:
|
12264
|
+
url: b.value,
|
12258
12265
|
params: W
|
12259
12266
|
}, {
|
12260
12267
|
successMessageMode: "none"
|
@@ -12274,7 +12281,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12274
12281
|
await u.store.emit(s.formID, "beforeSetDatas", {
|
12275
12282
|
datas: Z,
|
12276
12283
|
total: ae
|
12277
|
-
}), $.value = Z.value, O.total = ae.value, L(),
|
12284
|
+
}), $.value = Z.value, O.total = ae.value, L(), v.value = [], await nextTick(), ((x = s.varGridConfig.value) == null ? void 0 : x.check_first_row_after_retrieve) === 1 && $.value.length > 0 && u.store.setSelectedRows(s.formID, [$.value[0]]), await u.store.emit(s.formID, "retrieve", {
|
12278
12285
|
page: J.value,
|
12279
12286
|
datas: $
|
12280
12287
|
}), u.store.setIsRetrieved(s.formID, !0);
|
@@ -12332,10 +12339,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12332
12339
|
const z = B[u.id.value];
|
12333
12340
|
switch ((X = s.varGridConfig.value) == null ? void 0 : X.expand_accordion_flg) {
|
12334
12341
|
case 0:
|
12335
|
-
R ?
|
12342
|
+
R ? v.value = uniq([...v.value, z]) : v.value = without$1(v.value, z);
|
12336
12343
|
break;
|
12337
12344
|
default:
|
12338
|
-
R ?
|
12345
|
+
R ? v.value = [z] : v.value = [];
|
12339
12346
|
break;
|
12340
12347
|
}
|
12341
12348
|
}
|
@@ -12355,7 +12362,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12355
12362
|
switch (B.dataIndex) {
|
12356
12363
|
case "index":
|
12357
12364
|
return createVNode(KgTableSetting, {
|
12358
|
-
kgDisabled:
|
12365
|
+
kgDisabled: k.value
|
12359
12366
|
}, null);
|
12360
12367
|
default:
|
12361
12368
|
return createVNode("pre", {
|
@@ -12371,12 +12378,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12371
12378
|
default: () => [createVNode(TableSummary.Row, null, {
|
12372
12379
|
default: () => [P.value && createVNode(TableSummary.Cell, {
|
12373
12380
|
index: 0
|
12374
|
-
}, null),
|
12381
|
+
}, null), M.value && createVNode(TableSummary.Cell, {
|
12375
12382
|
index: P.value ? 1 : 0
|
12376
12383
|
}, null), C.value.map((B, z) => {
|
12377
12384
|
const X = s.store.getVarGridDetail(s.formID, B.dataIndex);
|
12378
12385
|
let F = z;
|
12379
|
-
return P.value &&
|
12386
|
+
return P.value && M.value ? F += 2 : (P.value || M.value) && (F += 1), createVNode(TableSummary.Cell, {
|
12380
12387
|
index: F
|
12381
12388
|
}, {
|
12382
12389
|
default: () => {
|
@@ -12453,7 +12460,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12453
12460
|
loading: _.value,
|
12454
12461
|
rowKey: u.id.value,
|
12455
12462
|
expandColumnWidth: 28,
|
12456
|
-
expandedRowKeys:
|
12463
|
+
expandedRowKeys: v.value,
|
12457
12464
|
rowSelection: A.value,
|
12458
12465
|
customRow: (B) => ({
|
12459
12466
|
onClick: (z) => L(z, B)
|
@@ -12476,7 +12483,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12476
12483
|
kgShowClearTable: O.total > 0,
|
12477
12484
|
kgShowLocate: V.value.length === 1,
|
12478
12485
|
kgTotal: V.value.length,
|
12479
|
-
kgDisabled:
|
12486
|
+
kgDisabled: I.value
|
12480
12487
|
}, null)]), createVNode("div", {
|
12481
12488
|
class: "right"
|
12482
12489
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
@@ -12523,8 +12530,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12523
12530
|
attrs: t
|
12524
12531
|
}) {
|
12525
12532
|
const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), l = computed(() => {
|
12526
|
-
var u, d, m,
|
12527
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((
|
12533
|
+
var u, d, m, v, C, g, _, y;
|
12534
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !r.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12528
12535
|
});
|
12529
12536
|
async function s() {
|
12530
12537
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -12540,7 +12547,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12540
12547
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
12541
12548
|
}
|
12542
12549
|
return () => {
|
12543
|
-
var u, d, m,
|
12550
|
+
var u, d, m, v;
|
12544
12551
|
return createVNode(Button, {
|
12545
12552
|
type: "primary",
|
12546
12553
|
disabled: l.value,
|
@@ -12550,7 +12557,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12550
12557
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
12551
12558
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
12552
12559
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
12553
|
-
"kg-cmd": (
|
12560
|
+
"kg-cmd": (v = o.value) == null ? void 0 : v.cmd
|
12554
12561
|
}, {
|
12555
12562
|
default: () => [i(), c()]
|
12556
12563
|
});
|
@@ -12699,13 +12706,13 @@ const KgButtonCreate = defineComponent({
|
|
12699
12706
|
attrs: a
|
12700
12707
|
}) {
|
12701
12708
|
const n = useKg(), o = useKgVar(), l = useKgButton(), s = useKgTable(), i = useKgSubmit(), c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
12702
|
-
var
|
12703
|
-
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((
|
12709
|
+
var T, k, I, E, P, M, A, w;
|
12710
|
+
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = s.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (P = s.selectedRows.value) == null ? void 0 : P.length) != null ? M : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12704
12711
|
}), d = computed(() => !!o.isCreatingRequesting.value);
|
12705
12712
|
async function m() {
|
12706
12713
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
12707
12714
|
}
|
12708
|
-
function
|
12715
|
+
function v() {
|
12709
12716
|
l.store.emit(o.formID, "submitSave");
|
12710
12717
|
}
|
12711
12718
|
function C() {
|
@@ -12722,24 +12729,24 @@ const KgButtonCreate = defineComponent({
|
|
12722
12729
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12723
12730
|
}
|
12724
12731
|
function y() {
|
12725
|
-
var
|
12732
|
+
var T, k, I, E;
|
12726
12733
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
|
12727
12734
|
type: "primary",
|
12728
12735
|
disabled: u.value,
|
12729
12736
|
onClick: m,
|
12730
12737
|
class: a.class,
|
12731
|
-
"kg-id": (
|
12732
|
-
"kg-frm_id": (
|
12733
|
-
"kg-var_nam": (
|
12738
|
+
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
12739
|
+
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
12740
|
+
"kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
|
12734
12741
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
12735
12742
|
}, {
|
12736
12743
|
default: () => [g(), _()]
|
12737
12744
|
});
|
12738
12745
|
}
|
12739
|
-
function
|
12746
|
+
function b() {
|
12740
12747
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12741
12748
|
type: "primary",
|
12742
|
-
onClick:
|
12749
|
+
onClick: v,
|
12743
12750
|
disabled: !!o.isCreatingRequesting.value
|
12744
12751
|
}, {
|
12745
12752
|
default: () => [o.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -12752,15 +12759,15 @@ const KgButtonCreate = defineComponent({
|
|
12752
12759
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
12753
12760
|
})]);
|
12754
12761
|
}
|
12755
|
-
return () => createVNode(Fragment, null, [y(),
|
12762
|
+
return () => createVNode(Fragment, null, [y(), b()]);
|
12756
12763
|
}
|
12757
12764
|
}), KgButtonDelete = defineComponent({
|
12758
12765
|
name: "KgButtonDelete",
|
12759
12766
|
props: getProps$f(),
|
12760
12767
|
setup(e) {
|
12761
12768
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
12762
|
-
var c, u, d, m,
|
12763
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((C = (
|
12769
|
+
var c, u, d, m, v, C, g, _;
|
12770
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || a.isRetrieving.value || ((c = n.value) == null ? void 0 : c.dis_no_select_flg) === 1 && ((d = (u = a.selectedRows.value) == null ? void 0 : u.length) != null ? d : 0) === 0 || ((m = n.value) == null ? void 0 : m.dis_mult_select_flg) === 1 && ((C = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? C : 0) > 1 || ((g = n.value) == null ? void 0 : g.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12764
12771
|
});
|
12765
12772
|
async function l() {
|
12766
12773
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -12803,7 +12810,7 @@ const KgButtonCreate = defineComponent({
|
|
12803
12810
|
var C, g;
|
12804
12811
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
12805
12812
|
}), i = computed(() => {
|
12806
|
-
var g, _, y,
|
12813
|
+
var g, _, y, b, T, k;
|
12807
12814
|
let C = {
|
12808
12815
|
pageNo: 1,
|
12809
12816
|
pageSize: 9999999,
|
@@ -12812,13 +12819,13 @@ const KgButtonCreate = defineComponent({
|
|
12812
12819
|
return o.value && (C = {
|
12813
12820
|
...C,
|
12814
12821
|
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
12815
|
-
}), (
|
12822
|
+
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (C = {
|
12816
12823
|
...C,
|
12817
|
-
...KgVarUtil.parseCommandParameter((
|
12818
|
-
}), ((
|
12824
|
+
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
12825
|
+
}), ((k = r.varGridConfig.value) == null ? void 0 : k.convert_sort_field_to_under_score_flg) === 1 && C.column && (C.column = snakeCase$1(C.column)), C;
|
12819
12826
|
}), c = computed(() => {
|
12820
|
-
var C, g, _, y,
|
12821
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((
|
12827
|
+
var C, g, _, y, b, T, k, I;
|
12828
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12822
12829
|
}), u = ref(!1);
|
12823
12830
|
async function d() {
|
12824
12831
|
var C, g;
|
@@ -12855,7 +12862,7 @@ const KgButtonCreate = defineComponent({
|
|
12855
12862
|
icon: e.kgIcon
|
12856
12863
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
12857
12864
|
}
|
12858
|
-
function
|
12865
|
+
function v() {
|
12859
12866
|
return e.kgText ? e.kgText : t.t("kg.export");
|
12860
12867
|
}
|
12861
12868
|
return () => {
|
@@ -12871,7 +12878,7 @@ const KgButtonCreate = defineComponent({
|
|
12871
12878
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
12872
12879
|
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
12873
12880
|
}, {
|
12874
|
-
default: () => [m(),
|
12881
|
+
default: () => [m(), v()]
|
12875
12882
|
});
|
12876
12883
|
};
|
12877
12884
|
}
|
@@ -12890,19 +12897,19 @@ const KgButtonCreate = defineComponent({
|
|
12890
12897
|
var _, y;
|
12891
12898
|
return (y = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? y : "POST";
|
12892
12899
|
}), u = computed(() => {
|
12893
|
-
var y,
|
12900
|
+
var y, b, T;
|
12894
12901
|
let _ = {
|
12895
12902
|
...(y = o.model.value) != null ? y : {}
|
12896
12903
|
};
|
12897
12904
|
return s.value && (_ = {
|
12898
12905
|
..._,
|
12899
|
-
...KgVarUtil.parseCommandParameter((
|
12906
|
+
...KgVarUtil.parseCommandParameter((T = (b = s.value) == null ? void 0 : b.cmd_prm) != null ? T : "")
|
12900
12907
|
}), _;
|
12901
12908
|
}), d = computed(() => {
|
12902
|
-
var _, y,
|
12903
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((
|
12909
|
+
var _, y, b, T, k, I, E, P;
|
12910
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((b = (y = l.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((T = s.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) > 1 || ((E = s.value) == null ? void 0 : E.permission_type) === 2 && !a.p((P = s.value) == null ? void 0 : P.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12904
12911
|
}), m = ref(!1);
|
12905
|
-
async function
|
12912
|
+
async function v(_) {
|
12906
12913
|
if (!i.value)
|
12907
12914
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12908
12915
|
VarButton: s.value
|
@@ -12911,7 +12918,7 @@ const KgButtonCreate = defineComponent({
|
|
12911
12918
|
try {
|
12912
12919
|
const y = new FormData();
|
12913
12920
|
y.append("file", _);
|
12914
|
-
const
|
12921
|
+
const b = await httpClient().axiosInstance.request({
|
12915
12922
|
method: c.value,
|
12916
12923
|
baseURL: window._CONFIG.domianURL,
|
12917
12924
|
url: i.value,
|
@@ -12943,11 +12950,11 @@ const KgButtonCreate = defineComponent({
|
|
12943
12950
|
return () => createVNode(Upload, {
|
12944
12951
|
name: "file",
|
12945
12952
|
showUploadList: !1,
|
12946
|
-
beforeUpload:
|
12953
|
+
beforeUpload: v,
|
12947
12954
|
disabled: m.value
|
12948
12955
|
}, {
|
12949
12956
|
default: () => {
|
12950
|
-
var _, y,
|
12957
|
+
var _, y, b, T;
|
12951
12958
|
return [createVNode(Button, {
|
12952
12959
|
class: r.class,
|
12953
12960
|
type: "primary",
|
@@ -12956,8 +12963,8 @@ const KgButtonCreate = defineComponent({
|
|
12956
12963
|
loading: m.value,
|
12957
12964
|
"kg-id": (_ = s.value) == null ? void 0 : _.id,
|
12958
12965
|
"kg-frm_id": (y = s.value) == null ? void 0 : y.frm_id,
|
12959
|
-
"kg-var_nam": (
|
12960
|
-
"kg-cmd": (
|
12966
|
+
"kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
|
12967
|
+
"kg-cmd": (T = s.value) == null ? void 0 : T.cmd
|
12961
12968
|
}, {
|
12962
12969
|
default: () => [C(), g()]
|
12963
12970
|
})];
|
@@ -12975,20 +12982,20 @@ const KgButtonCreate = defineComponent({
|
|
12975
12982
|
var C, g;
|
12976
12983
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
12977
12984
|
}), i = computed(() => {
|
12978
|
-
var g, _, y,
|
12985
|
+
var g, _, y, b, T;
|
12979
12986
|
let C = {
|
12980
12987
|
...(g = a.model.value) != null ? g : {}
|
12981
12988
|
};
|
12982
12989
|
return o.value && (C = {
|
12983
12990
|
...C,
|
12984
12991
|
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
12985
|
-
}), (
|
12992
|
+
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (C = {
|
12986
12993
|
...C,
|
12987
|
-
...KgVarUtil.parseCommandParameter((
|
12994
|
+
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
12988
12995
|
}), C;
|
12989
12996
|
}), c = computed(() => {
|
12990
|
-
var C, g, _, y,
|
12991
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((
|
12997
|
+
var C, g, _, y, b, T, k, I;
|
12998
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((C = o.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((_ = (g = n.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((T = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? T : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !t.p((I = o.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12992
12999
|
}), u = ref(!1);
|
12993
13000
|
async function d() {
|
12994
13001
|
var C, g;
|
@@ -13023,7 +13030,7 @@ const KgButtonCreate = defineComponent({
|
|
13023
13030
|
icon: e.kgIcon
|
13024
13031
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
13025
13032
|
}
|
13026
|
-
function
|
13033
|
+
function v() {
|
13027
13034
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
13028
13035
|
}
|
13029
13036
|
return () => {
|
@@ -13039,7 +13046,7 @@ const KgButtonCreate = defineComponent({
|
|
13039
13046
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
13040
13047
|
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
13041
13048
|
}, {
|
13042
|
-
default: () => [m(),
|
13049
|
+
default: () => [m(), v()]
|
13043
13050
|
});
|
13044
13051
|
};
|
13045
13052
|
}
|
@@ -13048,14 +13055,14 @@ const KgButtonCreate = defineComponent({
|
|
13048
13055
|
props: getProps$f(),
|
13049
13056
|
setup(e) {
|
13050
13057
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), l = computed(() => {
|
13051
|
-
var u, d, m,
|
13052
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((
|
13058
|
+
var u, d, m, v, C, g, _, y;
|
13059
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((g = (C = n.selectedRows.value) == null ? void 0 : C.length) != null ? g : 0) > 1 || ((_ = o.value) == null ? void 0 : _.permission_type) === 2 && !t.p((y = o.value) == null ? void 0 : y.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13053
13060
|
});
|
13054
13061
|
async function s() {
|
13055
|
-
var
|
13062
|
+
var v, C, g;
|
13056
13063
|
if (e.onKgClick && await e.onKgClick())
|
13057
13064
|
return;
|
13058
|
-
const u = (
|
13065
|
+
const u = (v = e.kgButton) == null ? void 0 : v.cmd;
|
13059
13066
|
if (!u) {
|
13060
13067
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
13061
13068
|
VarButton: e.kgButton
|
@@ -13064,19 +13071,19 @@ const KgButtonCreate = defineComponent({
|
|
13064
13071
|
}
|
13065
13072
|
let d = null;
|
13066
13073
|
const m = async () => {
|
13067
|
-
var y,
|
13074
|
+
var y, b, T, k, I, E;
|
13068
13075
|
d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13069
13076
|
const _ = n.selectedRows.value;
|
13070
13077
|
try {
|
13071
13078
|
await httpClient().request({
|
13072
|
-
method: (
|
13079
|
+
method: (b = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? b : "POST",
|
13073
13080
|
url: u,
|
13074
|
-
params: KgVarUtil.parseCommandParameter((
|
13081
|
+
params: KgVarUtil.parseCommandParameter((k = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? k : ""),
|
13075
13082
|
data: _ != null ? _ : []
|
13076
|
-
}), ((
|
13083
|
+
}), ((I = e.kgButton) == null ? void 0 : I.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
|
13077
13084
|
datas: P
|
13078
13085
|
}) => {
|
13079
|
-
const
|
13086
|
+
const M = P.value, A = intersectionWith$1(M, _ != null ? _ : [], (w, U) => (w == null ? void 0 : w[n.id.value]) === (U == null ? void 0 : U[n.id.value]));
|
13080
13087
|
return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
|
13081
13088
|
}, !0), a.search(!0));
|
13082
13089
|
} catch (P) {
|
@@ -13105,7 +13112,7 @@ const KgButtonCreate = defineComponent({
|
|
13105
13112
|
return e.kgText ? e.kgText : t.t("kg.button");
|
13106
13113
|
}
|
13107
13114
|
return () => {
|
13108
|
-
var u, d, m,
|
13115
|
+
var u, d, m, v;
|
13109
13116
|
return createVNode(Button, {
|
13110
13117
|
type: "primary",
|
13111
13118
|
disabled: l.value,
|
@@ -13115,7 +13122,7 @@ const KgButtonCreate = defineComponent({
|
|
13115
13122
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
13116
13123
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
13117
13124
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
13118
|
-
"kg-cmd": (
|
13125
|
+
"kg-cmd": (v = o.value) == null ? void 0 : v.cmd
|
13119
13126
|
}, {
|
13120
13127
|
default: () => [i(), c()]
|
13121
13128
|
});
|
@@ -13170,18 +13177,18 @@ const KgButtonCreate = defineComponent({
|
|
13170
13177
|
}) {
|
13171
13178
|
const n = useKg(), o = useKgVar(), l = useKgTable(), s = useKgButton(), i = useKgSubmit();
|
13172
13179
|
s.store.$onAction(async ({
|
13173
|
-
name:
|
13174
|
-
args:
|
13180
|
+
name: T,
|
13181
|
+
args: k
|
13175
13182
|
}) => {
|
13176
|
-
switch (
|
13183
|
+
switch (T) {
|
13177
13184
|
case "click":
|
13178
|
-
|
13185
|
+
k[0] === o.formID && await m();
|
13179
13186
|
break;
|
13180
13187
|
}
|
13181
13188
|
});
|
13182
13189
|
const c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
13183
|
-
var
|
13184
|
-
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || l.isRetrieving.value || ((
|
13190
|
+
var T, k, I, E, P, M, A, w;
|
13191
|
+
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || l.isRetrieving.value || ((T = c.value) == null ? void 0 : T.dis_no_select_flg) === 1 && ((I = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? I : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((M = (P = l.selectedRows.value) == null ? void 0 : P.length) != null ? M : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13185
13192
|
}), d = computed(() => !!o.isUpdatingRequesting.value);
|
13186
13193
|
async function m() {
|
13187
13194
|
e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
|
@@ -13189,7 +13196,7 @@ const KgButtonCreate = defineComponent({
|
|
13189
13196
|
row: l.selectedRow.value
|
13190
13197
|
}) || o.store.setIsUpdating(o.formID, !0);
|
13191
13198
|
}
|
13192
|
-
function
|
13199
|
+
function v() {
|
13193
13200
|
s.store.emit(o.formID, "submitSave");
|
13194
13201
|
}
|
13195
13202
|
function C() {
|
@@ -13206,25 +13213,25 @@ const KgButtonCreate = defineComponent({
|
|
13206
13213
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13207
13214
|
}
|
13208
13215
|
function y() {
|
13209
|
-
var
|
13216
|
+
var T, k, I, E;
|
13210
13217
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
|
13211
13218
|
type: "primary",
|
13212
13219
|
disabled: u.value,
|
13213
13220
|
ghost: !e.kgPrimary && !u.value,
|
13214
13221
|
onClick: m,
|
13215
13222
|
class: a.class,
|
13216
|
-
"kg-id": (
|
13217
|
-
"kg-frm_id": (
|
13218
|
-
"kg-var_nam": (
|
13223
|
+
"kg-id": (T = c.value) == null ? void 0 : T.id,
|
13224
|
+
"kg-frm_id": (k = c.value) == null ? void 0 : k.frm_id,
|
13225
|
+
"kg-var_nam": (I = c.value) == null ? void 0 : I.var_nam,
|
13219
13226
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
13220
13227
|
}, {
|
13221
13228
|
default: () => [g(), _()]
|
13222
13229
|
});
|
13223
13230
|
}
|
13224
|
-
function
|
13231
|
+
function b() {
|
13225
13232
|
return i.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
13226
13233
|
type: "primary",
|
13227
|
-
onClick:
|
13234
|
+
onClick: v,
|
13228
13235
|
disabled: !!o.isUpdatingRequesting.value
|
13229
13236
|
}, {
|
13230
13237
|
default: () => [o.isUpdatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -13237,7 +13244,7 @@ const KgButtonCreate = defineComponent({
|
|
13237
13244
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
13238
13245
|
})]);
|
13239
13246
|
}
|
13240
|
-
return () => createVNode(Fragment, null, [y(),
|
13247
|
+
return () => createVNode(Fragment, null, [y(), b()]);
|
13241
13248
|
}
|
13242
13249
|
}), KgButton_Item = "";
|
13243
13250
|
function _isSlot$4(e) {
|
@@ -13311,12 +13318,12 @@ const getProps$e = () => ({
|
|
13311
13318
|
}
|
13312
13319
|
function i(g) {
|
13313
13320
|
return computed(() => {
|
13314
|
-
var y,
|
13315
|
-
const _ = ((
|
13321
|
+
var y, b;
|
13322
|
+
const _ = ((b = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : b.kgDisabled) || e.kgDisabled;
|
13316
13323
|
if (_) {
|
13317
|
-
const
|
13318
|
-
if (!isNil(
|
13319
|
-
return
|
13324
|
+
const T = _(g);
|
13325
|
+
if (!isNil(T))
|
13326
|
+
return T;
|
13320
13327
|
}
|
13321
13328
|
});
|
13322
13329
|
}
|
@@ -13342,7 +13349,7 @@ const getProps$e = () => ({
|
|
13342
13349
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
13343
13350
|
return C();
|
13344
13351
|
default:
|
13345
|
-
return
|
13352
|
+
return v();
|
13346
13353
|
}
|
13347
13354
|
}
|
13348
13355
|
function m(g) {
|
@@ -13358,7 +13365,7 @@ const getProps$e = () => ({
|
|
13358
13365
|
onKgClick: () => s(g)
|
13359
13366
|
}, null);
|
13360
13367
|
}
|
13361
|
-
function
|
13368
|
+
function v() {
|
13362
13369
|
var g;
|
13363
13370
|
return (g = n.varButtons.value) == null ? void 0 : g.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
|
13364
13371
|
}
|
@@ -13376,9 +13383,9 @@ const getProps$e = () => ({
|
|
13376
13383
|
default: () => {
|
13377
13384
|
var g, _;
|
13378
13385
|
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((y) => y.typ !== KG_BUTTON_TYPE.SEARCH)) == null ? void 0 : _.filter((y) => !(y.permission_type !== 2 && !a.p(y.permission_code))).map((y) => {
|
13379
|
-
let
|
13380
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
13381
|
-
default: () => [
|
13386
|
+
let b;
|
13387
|
+
return createVNode(Menu.Item, null, _isSlot$3(b = m(y)) ? b : {
|
13388
|
+
default: () => [b]
|
13382
13389
|
});
|
13383
13390
|
})];
|
13384
13391
|
}
|
@@ -13803,38 +13810,38 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13803
13810
|
isCreating: g,
|
13804
13811
|
isUpdating: _,
|
13805
13812
|
isCopying: y,
|
13806
|
-
row:
|
13807
|
-
model:
|
13813
|
+
row: b,
|
13814
|
+
model: T
|
13808
13815
|
}) => {
|
13809
|
-
var
|
13810
|
-
const
|
13811
|
-
switch (i.value =
|
13816
|
+
var I, E, P;
|
13817
|
+
const k = s.store.getSystemVarProfileDetails(s.formID);
|
13818
|
+
switch (i.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
13812
13819
|
case g:
|
13813
13820
|
c.value = [];
|
13814
13821
|
break;
|
13815
13822
|
case _:
|
13816
13823
|
case y:
|
13817
|
-
if (
|
13824
|
+
if (b != null && b.id)
|
13818
13825
|
try {
|
13819
13826
|
l.store.setIsLoading(a.formID, !0);
|
13820
|
-
const
|
13827
|
+
const M = await QueryByID({
|
13821
13828
|
params: {
|
13822
|
-
id:
|
13829
|
+
id: b.id
|
13823
13830
|
}
|
13824
13831
|
});
|
13825
13832
|
i.value = i.value.map((w) => {
|
13826
13833
|
var $;
|
13827
|
-
const U = ($ =
|
13834
|
+
const U = ($ = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === w.var_nam);
|
13828
13835
|
return U ? {
|
13829
13836
|
...w,
|
13830
13837
|
...U,
|
13831
13838
|
id: w.id
|
13832
13839
|
} : w;
|
13833
13840
|
});
|
13834
|
-
const A = (E = (
|
13841
|
+
const A = (E = (I = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : I.map((w) => w.var_nam)) != null ? E : [];
|
13835
13842
|
c.value = i.value.filter((w) => A.includes(w.var_nam)).map((w) => w.id);
|
13836
|
-
} catch (
|
13837
|
-
throw
|
13843
|
+
} catch (M) {
|
13844
|
+
throw M;
|
13838
13845
|
} finally {
|
13839
13846
|
l.store.setIsLoading(a.formID, !1);
|
13840
13847
|
}
|
@@ -13844,16 +13851,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13844
13851
|
}
|
13845
13852
|
switch (!0) {
|
13846
13853
|
case y:
|
13847
|
-
|
13854
|
+
T.value.prf_var_nam = ((P = T.value.prf_var_nam) != null ? P : "") + "_COPY";
|
13848
13855
|
break;
|
13849
13856
|
}
|
13850
13857
|
return !1;
|
13851
13858
|
}), l.onBeforeOk(async ({
|
13852
13859
|
model: g
|
13853
13860
|
}) => {
|
13854
|
-
var y,
|
13861
|
+
var y, b;
|
13855
13862
|
const _ = g.value;
|
13856
|
-
return _.frm_id = s.formID, _.varProfileDetails = (
|
13863
|
+
return _.frm_id = s.formID, _.varProfileDetails = (b = (y = i.value) == null ? void 0 : y.filter((T) => c.value.includes(T.id))) != null ? b : [], !1;
|
13857
13864
|
}), l.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
|
13858
13865
|
row: g
|
13859
13866
|
}) => (g == null ? void 0 : g.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
@@ -13881,27 +13888,27 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13881
13888
|
varName: g,
|
13882
13889
|
props: _,
|
13883
13890
|
model: y,
|
13884
|
-
varVariableConfig:
|
13885
|
-
varProfileDetail:
|
13886
|
-
varSubmitField:
|
13891
|
+
varVariableConfig: b,
|
13892
|
+
varProfileDetail: T,
|
13893
|
+
varSubmitField: k
|
13887
13894
|
}) => createVNode(Transfer, {
|
13888
13895
|
dataSource: i.value,
|
13889
13896
|
targetKeys: c.value,
|
13890
|
-
"onUpdate:targetKeys": (
|
13891
|
-
rowKey: (
|
13897
|
+
"onUpdate:targetKeys": (I) => c.value = I,
|
13898
|
+
rowKey: (I) => I.id,
|
13892
13899
|
showSearch: !0,
|
13893
13900
|
showSelectAll: !1,
|
13894
13901
|
searchPlaceholder: " ",
|
13895
|
-
filterOption: (
|
13902
|
+
filterOption: (I, E) => {
|
13896
13903
|
var P;
|
13897
|
-
return !!((P = E.var_nam) != null && P.includes(
|
13904
|
+
return !!((P = E.var_nam) != null && P.includes(I));
|
13898
13905
|
}
|
13899
13906
|
}, {
|
13900
13907
|
children: ({
|
13901
|
-
direction:
|
13908
|
+
direction: I,
|
13902
13909
|
filteredItems: E,
|
13903
13910
|
selectedKeys: P,
|
13904
|
-
disabled:
|
13911
|
+
disabled: M,
|
13905
13912
|
onItemSelectAll: A,
|
13906
13913
|
onItemSelect: w
|
13907
13914
|
}) => createVNode(Table, {
|
@@ -13909,17 +13916,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13909
13916
|
class: "kg-flex-table",
|
13910
13917
|
size: "small",
|
13911
13918
|
scroll: {
|
13912
|
-
x:
|
13919
|
+
x: I === "left" ? "370px" : "1244px",
|
13913
13920
|
y: "auto"
|
13914
13921
|
},
|
13915
|
-
columns:
|
13922
|
+
columns: I === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
13916
13923
|
rowKey: "id",
|
13917
13924
|
dataSource: E,
|
13918
13925
|
customRow: (U) => ({
|
13919
|
-
onClick: ($) => C($, U,
|
13926
|
+
onClick: ($) => C($, U, I, P)
|
13920
13927
|
}),
|
13921
13928
|
rowSelection: m({
|
13922
|
-
disabled:
|
13929
|
+
disabled: M,
|
13923
13930
|
selectedKeys: P,
|
13924
13931
|
onItemSelectAll: A,
|
13925
13932
|
onItemSelect: w
|
@@ -13930,32 +13937,32 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13930
13937
|
}
|
13931
13938
|
});
|
13932
13939
|
onMounted(() => {
|
13933
|
-
|
13940
|
+
v();
|
13934
13941
|
});
|
13935
13942
|
const m = ({
|
13936
13943
|
disabled: g,
|
13937
13944
|
selectedKeys: _,
|
13938
13945
|
onItemSelectAll: y,
|
13939
|
-
onItemSelect:
|
13946
|
+
onItemSelect: b
|
13940
13947
|
}) => ({
|
13941
|
-
getCheckboxProps: (
|
13942
|
-
disabled: g ||
|
13948
|
+
getCheckboxProps: (T) => ({
|
13949
|
+
disabled: g || T.disabled
|
13943
13950
|
}),
|
13944
|
-
onSelectAll(
|
13945
|
-
const
|
13951
|
+
onSelectAll(T, k) {
|
13952
|
+
const I = k.filter((E) => !E.disabled).map(({
|
13946
13953
|
key: E
|
13947
13954
|
}) => E);
|
13948
|
-
y(
|
13955
|
+
y(I, T);
|
13949
13956
|
},
|
13950
13957
|
onSelect({
|
13951
|
-
key:
|
13952
|
-
},
|
13953
|
-
|
13958
|
+
key: T
|
13959
|
+
}, k) {
|
13960
|
+
b(T, k);
|
13954
13961
|
},
|
13955
13962
|
selectedRowKeys: _,
|
13956
13963
|
columnWidth: 32
|
13957
13964
|
});
|
13958
|
-
async function
|
13965
|
+
async function v() {
|
13959
13966
|
const g = watch(n.isReady, async (_) => {
|
13960
13967
|
_ && n.model.value && (setTimeout(() => g(), 0), await n.store.patchModel(a.formID, {
|
13961
13968
|
frm_id: e.hostFormID
|
@@ -13964,11 +13971,11 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13964
13971
|
immediate: !0
|
13965
13972
|
});
|
13966
13973
|
}
|
13967
|
-
function C(g, _, y,
|
13974
|
+
function C(g, _, y, b) {
|
13968
13975
|
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]))
|
13969
|
-
switch (
|
13976
|
+
switch (b.length = 0, g.detail) {
|
13970
13977
|
case 1:
|
13971
|
-
|
13978
|
+
b[0] = _.id;
|
13972
13979
|
break;
|
13973
13980
|
case 2:
|
13974
13981
|
switch (y) {
|
@@ -14077,10 +14084,10 @@ function _useLayoutHeaderResizeObserver() {
|
|
14077
14084
|
}
|
14078
14085
|
function _useCommon() {
|
14079
14086
|
const e = inject(DI_KG_VAR__KG_PROPS, null), t = useKgVar(), r = computed(() => t.store.getVarProfileConfig(t.formID)), a = computed(() => t.store.getFormLevel(t.formID)), n = ref(!0), o = computed(() => {
|
14080
|
-
var m,
|
14087
|
+
var m, v, C;
|
14081
14088
|
if (!n.value || a.value > 0)
|
14082
14089
|
return !1;
|
14083
|
-
const d = (
|
14090
|
+
const d = (v = (m = e == null ? void 0 : e.value) == null ? void 0 : m.KgSearch) == null ? void 0 : v.kgHeaderTeleport;
|
14084
14091
|
return d !== void 0 ? d : ((C = r.value) == null ? void 0 : C.header_teleport_flg) !== 0;
|
14085
14092
|
}), l = computed(() => {
|
14086
14093
|
var d;
|
@@ -14113,8 +14120,8 @@ function _useFormModel(e, t) {
|
|
14113
14120
|
async function c() {
|
14114
14121
|
var u;
|
14115
14122
|
((u = a.currentVarProfileDetails.value) != null ? u : []).forEach((d) => {
|
14116
|
-
var
|
14117
|
-
const m = (
|
14123
|
+
var v, C;
|
14124
|
+
const m = (v = d.var_nam) != null ? v : "";
|
14118
14125
|
i.value[m] = KgVarUtil.transformValueByControlType(a.formID, m, r, (C = d.dft_val) != null ? C : void 0, "R");
|
14119
14126
|
}), t.value.kgHeight = l.value, n.store.setModel(a.formID, i.value), o.value ? (s == null || s(), s = watch(e, async (d) => {
|
14120
14127
|
d && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
|
@@ -14154,11 +14161,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14154
14161
|
defaultHeight: u,
|
14155
14162
|
maxHeight: d,
|
14156
14163
|
minHeight: m
|
14157
|
-
} = _useCommon(),
|
14164
|
+
} = _useCommon(), v = ref(null), C = ref({
|
14158
14165
|
kgHeight: m.value
|
14159
14166
|
});
|
14160
14167
|
_useLayoutHeaderResizeObserver();
|
14161
|
-
const g = _useFormModel(
|
14168
|
+
const g = _useFormModel(v, C), _ = computed(() => {
|
14162
14169
|
var L, G, Y, Q;
|
14163
14170
|
if (!isNil((G = (L = r == null ? void 0 : r.value) == null ? void 0 : L.KgSearch) == null ? void 0 : G.kgDisabled))
|
14164
14171
|
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
|
@@ -14167,9 +14174,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14167
14174
|
}), y = computed(() => {
|
14168
14175
|
var L, G;
|
14169
14176
|
return !!(_.value || l.isRetrieving.value || ((L = n.varButtonSearch.value) == null ? void 0 : L.permission_type) === 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
14170
|
-
}),
|
14177
|
+
}), b = computed(() => !!(_.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), T = computed(() => !!(_.value || l.isRetrieving.value)), k = ref({
|
14171
14178
|
visible: !1
|
14172
|
-
}),
|
14179
|
+
}), I = computed(() => C.value.kgHeight === m.value), E = computed(() => {
|
14173
14180
|
var L, G, Y;
|
14174
14181
|
if (n.t((L = n.varButtonSearch.value) == null ? void 0 : L.var_nam).value !== ((G = n.varButtonSearch.value) == null ? void 0 : G.var_nam))
|
14175
14182
|
return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
|
@@ -14183,7 +14190,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14183
14190
|
default:
|
14184
14191
|
return !0;
|
14185
14192
|
}
|
14186
|
-
}),
|
14193
|
+
}), M = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), A = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
|
14187
14194
|
let L = "kg-search";
|
14188
14195
|
return s.value && (L += " kg-search--visible"), c.value && (L += " kg-search--teleport"), L;
|
14189
14196
|
});
|
@@ -14191,7 +14198,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14191
14198
|
o.store.dispose(n.formID);
|
14192
14199
|
});
|
14193
14200
|
async function U(L = !1) {
|
14194
|
-
y.value || (s.value ?
|
14201
|
+
y.value || (s.value ? v.value && v.value.validate().then(async () => {
|
14195
14202
|
await o.store.emit(n.formID, "search", {
|
14196
14203
|
resetPageIndex: L
|
14197
14204
|
});
|
@@ -14205,7 +14212,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14205
14212
|
}
|
14206
14213
|
o.store.setSearchFn(n.formID, U);
|
14207
14214
|
async function $() {
|
14208
|
-
g.initFormModel(), s.value ?
|
14215
|
+
g.initFormModel(), s.value ? v.value && v.value.validate().then(async () => {
|
14209
14216
|
await o.store.emit(n.formID, "reset", {});
|
14210
14217
|
}).catch((L) => {
|
14211
14218
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
@@ -14227,14 +14234,14 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14227
14234
|
onClick: (G) => {
|
14228
14235
|
G.stopPropagation(), G.preventDefault();
|
14229
14236
|
}
|
14230
|
-
}, [t.KgSearch.left()]),
|
14237
|
+
}, [t.KgSearch.left()]), I.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
14231
14238
|
}
|
14232
14239
|
function D() {
|
14233
14240
|
var L, G, Y, Q;
|
14234
14241
|
return ((Y = (G = (L = n.varProfileMasters) == null ? void 0 : L.value) == null ? void 0 : G.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
14235
14242
|
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
14236
14243
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
14237
|
-
disabled:
|
14244
|
+
disabled: b.value,
|
14238
14245
|
class: "kg-search-profile-master-select"
|
14239
14246
|
}, {
|
14240
14247
|
default: () => {
|
@@ -14247,16 +14254,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14247
14254
|
},
|
14248
14255
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
14249
14256
|
}), createVNode(Button, {
|
14250
|
-
disabled:
|
14257
|
+
disabled: b.value,
|
14251
14258
|
onClick: () => {
|
14252
|
-
|
14259
|
+
k.value.visible = !0;
|
14253
14260
|
},
|
14254
14261
|
class: "kg-search-profile-master-btn"
|
14255
14262
|
}, {
|
14256
14263
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
14257
14264
|
}), createVNode(KgSearchConfigModal, {
|
14258
|
-
visible:
|
14259
|
-
"onUpdate:visible": (q) =>
|
14265
|
+
visible: k.value.visible,
|
14266
|
+
"onUpdate:visible": (q) => k.value.visible = q,
|
14260
14267
|
hostFormID: n.formID
|
14261
14268
|
}, null)]);
|
14262
14269
|
}
|
@@ -14277,7 +14284,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14277
14284
|
kgText: E.value,
|
14278
14285
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
14279
14286
|
kgPrimary: P.value,
|
14280
|
-
kgLoading:
|
14287
|
+
kgLoading: T.value,
|
14281
14288
|
onKgClick: V
|
14282
14289
|
}, null)]);
|
14283
14290
|
}
|
@@ -14288,7 +14295,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14288
14295
|
default: () => {
|
14289
14296
|
var L;
|
14290
14297
|
return [createVNode(KgForm, {
|
14291
|
-
ref:
|
14298
|
+
ref: v,
|
14292
14299
|
model: (L = o.model.value) != null ? L : {}
|
14293
14300
|
}, {
|
14294
14301
|
default: () => [createVNode(Row, {
|
@@ -14308,7 +14315,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14308
14315
|
});
|
14309
14316
|
}
|
14310
14317
|
function H() {
|
14311
|
-
|
14318
|
+
I.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
|
14312
14319
|
}
|
14313
14320
|
return () => createVNode(KgResizable, {
|
14314
14321
|
kgHeight: C.value.kgHeight,
|
@@ -14330,7 +14337,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14330
14337
|
default: () => [createVNode("div", {
|
14331
14338
|
class: "ant-collapse-header"
|
14332
14339
|
}, [createVNode(Spin, {
|
14333
|
-
spinning:
|
14340
|
+
spinning: M.value
|
14334
14341
|
}, {
|
14335
14342
|
default: () => [O(), createVNode("div", {
|
14336
14343
|
class: "ant-collapse-extra"
|
@@ -14404,29 +14411,29 @@ function useMagicKeys(e = {}) {
|
|
14404
14411
|
for (const g of u)
|
14405
14412
|
d(g, !1);
|
14406
14413
|
}
|
14407
|
-
function
|
14408
|
-
var y,
|
14409
|
-
const
|
14410
|
-
|
14411
|
-
for (const E of
|
14414
|
+
function v(g, _) {
|
14415
|
+
var y, b;
|
14416
|
+
const T = (y = g.key) == null ? void 0 : y.toLowerCase(), k = (b = g.code) == null ? void 0 : b.toLowerCase(), I = [k, T].filter(Boolean);
|
14417
|
+
k && (_ ? l.add(g.code) : l.delete(g.code));
|
14418
|
+
for (const E of I)
|
14412
14419
|
u.add(E), d(E, _);
|
14413
|
-
|
14420
|
+
T === "meta" && !_ ? (c.forEach((E) => {
|
14414
14421
|
l.delete(E), d(E, !1);
|
14415
|
-
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...
|
14422
|
+
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...l, ...I].forEach((E) => c.add(E));
|
14416
14423
|
}
|
14417
|
-
r && (useEventListener(r, "keydown", (g) => (
|
14424
|
+
r && (useEventListener(r, "keydown", (g) => (v(g, !0), o(g)), { passive: n }), useEventListener(r, "keyup", (g) => (v(g, !1), o(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
14418
14425
|
const C = new Proxy(i, {
|
14419
14426
|
get(g, _, y) {
|
14420
14427
|
if (typeof _ != "string")
|
14421
14428
|
return Reflect.get(g, _, y);
|
14422
14429
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in i))
|
14423
14430
|
if (/[+_-]/.test(_)) {
|
14424
|
-
const
|
14425
|
-
i[_] = computed(() =>
|
14431
|
+
const T = _.split(/[+_-]/g).map((k) => k.trim());
|
14432
|
+
i[_] = computed(() => T.every((k) => unref(C[k])));
|
14426
14433
|
} else
|
14427
14434
|
i[_] = ref(!1);
|
14428
|
-
const
|
14429
|
-
return t ? unref(
|
14435
|
+
const b = Reflect.get(g, _, y);
|
14436
|
+
return t ? unref(b) : b;
|
14430
14437
|
}
|
14431
14438
|
});
|
14432
14439
|
return C;
|
@@ -14812,21 +14819,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14812
14819
|
hideSelectAll: !0,
|
14813
14820
|
selectedRowKeys: d,
|
14814
14821
|
onSelect: ($) => P($)
|
14815
|
-
}),
|
14822
|
+
}), v = ref({
|
14816
14823
|
visible: !1
|
14817
14824
|
}), C = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(l))), g = computed(() => {
|
14818
14825
|
var $;
|
14819
14826
|
return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14820
14827
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
14821
14828
|
watch(() => a.getSelectedVar, ($) => {
|
14822
|
-
$ ?
|
14829
|
+
$ ? b() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
14823
14830
|
}, {
|
14824
14831
|
immediate: !0
|
14825
14832
|
}), watch(() => a.getSelectedVarCatalog, async ($) => {
|
14826
14833
|
var V, O;
|
14827
14834
|
i.value.var_text = (V = $ == null ? void 0 : $.var_text) != null ? V : "", (O = s.value) == null || O.clearValidate();
|
14828
14835
|
});
|
14829
|
-
async function
|
14836
|
+
async function b($ = !1) {
|
14830
14837
|
var V, O, D;
|
14831
14838
|
n.value = !0;
|
14832
14839
|
try {
|
@@ -14856,7 +14863,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14856
14863
|
n.value = !1;
|
14857
14864
|
}
|
14858
14865
|
}
|
14859
|
-
async function
|
14866
|
+
async function T() {
|
14860
14867
|
var $, V, O;
|
14861
14868
|
try {
|
14862
14869
|
o.value = !0, await (($ = s.value) == null ? void 0 : $.validate());
|
@@ -14870,26 +14877,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14870
14877
|
successMessageMode: "none"
|
14871
14878
|
}), message.success({
|
14872
14879
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14873
|
-
}), await
|
14880
|
+
}), await b()) : (await Edit({
|
14874
14881
|
data: D
|
14875
14882
|
}, {
|
14876
14883
|
successMessageMode: "none"
|
14877
14884
|
}), message.success({
|
14878
14885
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
14879
|
-
}), await
|
14886
|
+
}), await b(!0)) : (await Add({
|
14880
14887
|
data: D
|
14881
14888
|
}, {
|
14882
14889
|
successMessageMode: "none"
|
14883
14890
|
}), message.success({
|
14884
14891
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14885
|
-
}), await
|
14892
|
+
}), await b()), r.retrieve(e == null ? void 0 : e.value);
|
14886
14893
|
} catch (D) {
|
14887
14894
|
KgUtil.throwIfNotFormError(D);
|
14888
14895
|
} finally {
|
14889
14896
|
o.value = !1;
|
14890
14897
|
}
|
14891
14898
|
}
|
14892
|
-
function
|
14899
|
+
function k({
|
14893
14900
|
isAllForm: $,
|
14894
14901
|
isAllLanguage: V
|
14895
14902
|
}) {
|
@@ -14904,7 +14911,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14904
14911
|
var_text: ""
|
14905
14912
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
14906
14913
|
}
|
14907
|
-
function
|
14914
|
+
function I() {
|
14908
14915
|
var V;
|
14909
14916
|
c.value = without$1(c.value, u.value), u.value = null;
|
14910
14917
|
const $ = (V = c.value[0]) != null ? V : null;
|
@@ -14923,7 +14930,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14923
14930
|
joinParamsToUrl: !0
|
14924
14931
|
}), message.success({
|
14925
14932
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
14926
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
14933
|
+
}), r.retrieve(e == null ? void 0 : e.value), await b();
|
14927
14934
|
}
|
14928
14935
|
});
|
14929
14936
|
}
|
@@ -14936,14 +14943,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14936
14943
|
}
|
14937
14944
|
}) : (a.setSelectedVarCatalog(unref($)), d.value = [$.id]));
|
14938
14945
|
}
|
14939
|
-
function
|
14940
|
-
|
14946
|
+
function M() {
|
14947
|
+
v.value.visible = !0;
|
14941
14948
|
}
|
14942
14949
|
function A() {
|
14943
14950
|
return createVNode("div", {
|
14944
14951
|
class: "buttons"
|
14945
14952
|
}, [createVNode(Button, {
|
14946
|
-
onClick:
|
14953
|
+
onClick: M,
|
14947
14954
|
disabled: C.value,
|
14948
14955
|
type: "primary"
|
14949
14956
|
}, {
|
@@ -14965,7 +14972,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14965
14972
|
}, [createVNode(Form, {
|
14966
14973
|
ref: s,
|
14967
14974
|
model: i.value,
|
14968
|
-
onSubmit:
|
14975
|
+
onSubmit: T
|
14969
14976
|
}, {
|
14970
14977
|
default: () => [createVNode(Form.Item, {
|
14971
14978
|
name: "var_text",
|
@@ -14986,13 +14993,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14986
14993
|
class: "buttons"
|
14987
14994
|
}, [createVNode(Button, {
|
14988
14995
|
disabled: _.value,
|
14989
|
-
onClick:
|
14996
|
+
onClick: I
|
14990
14997
|
}, _isSlot($ = t.t("common.cancelText")) ? $ : {
|
14991
14998
|
default: () => [$]
|
14992
14999
|
}), createVNode(Button, {
|
14993
15000
|
loading: o.value,
|
14994
15001
|
disabled: y.value,
|
14995
|
-
onClick:
|
15002
|
+
onClick: T,
|
14996
15003
|
type: "primary"
|
14997
15004
|
}, _isSlot(V = t.t("common.save")) ? V : {
|
14998
15005
|
default: () => [V]
|
@@ -15023,9 +15030,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15023
15030
|
onClick: () => P($)
|
15024
15031
|
})
|
15025
15032
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
15026
|
-
visible:
|
15027
|
-
"onUpdate:visible": ($) =>
|
15028
|
-
onKgOk:
|
15033
|
+
visible: v.value.visible,
|
15034
|
+
"onUpdate:visible": ($) => v.value.visible = $,
|
15035
|
+
onKgOk: k
|
15029
15036
|
}, null)]);
|
15030
15037
|
}
|
15031
15038
|
}), columns = () => [{
|
@@ -15329,16 +15336,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15329
15336
|
emit: t
|
15330
15337
|
}) {
|
15331
15338
|
const r = useKg(), a = useKgWarehouse(), n = computed(() => {
|
15332
|
-
let
|
15333
|
-
return (!m.value || e.kgInvisible) && (
|
15339
|
+
let k = "jeecg-layout-header-action__item kg-warehouse";
|
15340
|
+
return (!m.value || e.kgInvisible) && (k += " kg-warehouse--invisible"), k;
|
15334
15341
|
}), o = ref(""), l = a.warehouse, s = ref(null), i = ref(!1), c = reactive([{
|
15335
15342
|
width: 80,
|
15336
15343
|
align: "center",
|
15337
15344
|
customRender: ({
|
15338
|
-
record:
|
15345
|
+
record: k
|
15339
15346
|
}) => {
|
15340
15347
|
var E;
|
15341
|
-
return
|
15348
|
+
return k.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
|
15342
15349
|
src: WAREHOUSE_1890ff
|
15343
15350
|
}, null) : createVNode("img", {
|
15344
15351
|
src: WAREHOUSE_000000
|
@@ -15346,33 +15353,33 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15346
15353
|
}
|
15347
15354
|
}, {
|
15348
15355
|
customRender: ({
|
15349
|
-
record:
|
15356
|
+
record: k
|
15350
15357
|
}) => {
|
15351
|
-
var E, P,
|
15352
|
-
const
|
15353
|
-
return createVNode("div", null, [createVNode("div", null, [(E =
|
15358
|
+
var E, P, M;
|
15359
|
+
const I = k;
|
15360
|
+
return createVNode("div", null, [createVNode("div", null, [(E = I.whDsc) != null ? E : " ", createTextVNode(" - "), (P = I.whId) != null ? P : " "]), createVNode("div", {
|
15354
15361
|
class: "address"
|
15355
|
-
}, [(
|
15362
|
+
}, [(M = I.adrId) != null ? M : " "])]);
|
15356
15363
|
}
|
15357
15364
|
}]), u = ref([]), d = computed(() => {
|
15358
|
-
var
|
15359
|
-
const
|
15365
|
+
var I;
|
15366
|
+
const k = (I = o.value) == null ? void 0 : I.toUpperCase();
|
15360
15367
|
return u.value.filter((E) => {
|
15361
|
-
var P,
|
15362
|
-
return ((
|
15368
|
+
var P, M, A, w, U, $;
|
15369
|
+
return ((M = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : M.includes(k)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(k)) || (($ = (U = E.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : $.includes(k));
|
15363
15370
|
});
|
15364
15371
|
}), m = computed(() => {
|
15365
|
-
var
|
15366
|
-
return ((
|
15372
|
+
var k, I;
|
15373
|
+
return ((I = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : I.enable) !== !1;
|
15367
15374
|
});
|
15368
|
-
watch(a.visible, (
|
15369
|
-
!m.value || (
|
15375
|
+
watch(a.visible, (k) => {
|
15376
|
+
!m.value || (k ? C() : g());
|
15370
15377
|
}, {
|
15371
15378
|
immediate: !0
|
15372
15379
|
}), onMounted(() => {
|
15373
15380
|
a.store.emit("mounted");
|
15374
15381
|
});
|
15375
|
-
function
|
15382
|
+
function v() {
|
15376
15383
|
!m.value || a.store.setVisible(!0);
|
15377
15384
|
}
|
15378
15385
|
function C() {
|
@@ -15382,8 +15389,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15382
15389
|
o.value = "", u.value = [], s.value = null;
|
15383
15390
|
}
|
15384
15391
|
function _() {
|
15385
|
-
var
|
15386
|
-
!s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((
|
15392
|
+
var k;
|
15393
|
+
!s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((k = a.warehouse.value) == null ? void 0 : k.id) && (a.store.setWarehouse(s.value), KgUtil.confirm({
|
15387
15394
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
15388
15395
|
kgHideCancelButton: !0,
|
15389
15396
|
okButtonProps: {
|
@@ -15399,43 +15406,43 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15399
15406
|
i.value = !0;
|
15400
15407
|
try {
|
15401
15408
|
const {
|
15402
|
-
records:
|
15409
|
+
records: k
|
15403
15410
|
} = await ListVO({
|
15404
15411
|
params: {
|
15405
15412
|
pageNo: 1,
|
15406
15413
|
pageSize: 999
|
15407
15414
|
}
|
15408
15415
|
});
|
15409
|
-
u.value =
|
15410
|
-
} catch (
|
15411
|
-
console.error(
|
15416
|
+
u.value = k != null ? k : [];
|
15417
|
+
} catch (k) {
|
15418
|
+
console.error(k);
|
15412
15419
|
} finally {
|
15413
15420
|
i.value = !1;
|
15414
15421
|
}
|
15415
15422
|
}
|
15416
|
-
function
|
15423
|
+
function b(k, I) {
|
15417
15424
|
var E;
|
15418
|
-
switch (
|
15425
|
+
switch (k.detail) {
|
15419
15426
|
case 1:
|
15420
|
-
((E = s.value) == null ? void 0 : E.id) ===
|
15427
|
+
((E = s.value) == null ? void 0 : E.id) === I.id ? s.value = null : s.value = I;
|
15421
15428
|
break;
|
15422
15429
|
case 2:
|
15423
|
-
s.value =
|
15430
|
+
s.value = I, _();
|
15424
15431
|
break;
|
15425
15432
|
}
|
15426
15433
|
}
|
15427
|
-
function
|
15434
|
+
function T() {
|
15428
15435
|
return m.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
15429
15436
|
title: r.t("kg.KgWarehouse.warehouse"),
|
15430
15437
|
placement: "bottomRight"
|
15431
15438
|
}, {
|
15432
15439
|
default: () => {
|
15433
|
-
var
|
15434
|
-
return [((
|
15440
|
+
var k, I;
|
15441
|
+
return [((k = l.value) == null ? void 0 : k.whDsc) || ((I = l.value) == null ? void 0 : I.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
15435
15442
|
}
|
15436
15443
|
}), createVNode(KgModal, {
|
15437
15444
|
visible: a.visible.value,
|
15438
|
-
"onUpdate:visible": (
|
15445
|
+
"onUpdate:visible": (k) => a.store.setVisible(k),
|
15439
15446
|
title: r.t("kg.KgWarehouse.title"),
|
15440
15447
|
width: "500px",
|
15441
15448
|
kgFullHeight: !1,
|
@@ -15452,7 +15459,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15452
15459
|
}, {
|
15453
15460
|
default: () => [createVNode(Input, {
|
15454
15461
|
value: o.value,
|
15455
|
-
"onUpdate:value": (
|
15462
|
+
"onUpdate:value": (k) => o.value = k,
|
15456
15463
|
allowClear: !0,
|
15457
15464
|
disabled: i.value,
|
15458
15465
|
placeholder: r.t("kg.search")
|
@@ -15472,11 +15479,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15472
15479
|
dataSource: d.value,
|
15473
15480
|
columns: c,
|
15474
15481
|
class: "kg-flex-table",
|
15475
|
-
customRow: (
|
15476
|
-
var
|
15482
|
+
customRow: (k) => {
|
15483
|
+
var I;
|
15477
15484
|
return {
|
15478
|
-
class:
|
15479
|
-
onClick: (E) =>
|
15485
|
+
class: k.id === ((I = s.value) == null ? void 0 : I.id) ? "selected" : "",
|
15486
|
+
onClick: (E) => b(E, k)
|
15480
15487
|
};
|
15481
15488
|
}
|
15482
15489
|
}, null)]
|
@@ -15484,8 +15491,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15484
15491
|
}
|
15485
15492
|
return () => createVNode("div", {
|
15486
15493
|
class: n.value,
|
15487
|
-
onClick:
|
15488
|
-
}, [
|
15494
|
+
onClick: v
|
15495
|
+
}, [T()]);
|
15489
15496
|
}
|
15490
15497
|
});
|
15491
15498
|
function createKgWarehouseGuard(e, t) {
|