@kengic/vue 0.6.14 → 0.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/kengic-vue.js
CHANGED
@@ -1822,8 +1822,8 @@ function generate$1(e) {
|
|
1822
1822
|
r.push(c);
|
1823
1823
|
}
|
1824
1824
|
return t.theme === "dark" ? darkColorMap.map(function(u) {
|
1825
|
-
var d = u.index, m = u.opacity,
|
1826
|
-
return
|
1825
|
+
var d = u.index, m = u.opacity, b = toHex(mix(inputToRGB(t.backgroundColor || "#141414"), inputToRGB(r[d]), m * 100));
|
1826
|
+
return b;
|
1827
1827
|
}) : r;
|
1828
1828
|
}
|
1829
1829
|
var presetPrimaryColors = {
|
@@ -2179,20 +2179,20 @@ function _objectWithoutPropertiesLoose(e, t) {
|
|
2179
2179
|
}
|
2180
2180
|
setTwoToneColor("#1890ff");
|
2181
2181
|
var Icon$1 = function(t, r) {
|
2182
|
-
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded),
|
2182
|
+
var a, n = _objectSpread$k({}, t, r.attrs), o = n.class, i = n.icon, s = n.spin, l = n.rotate, c = n.tabindex, u = n.twoToneColor, d = n.onClick, m = _objectWithoutProperties(n, _excluded), b = (a = {
|
2183
2183
|
anticon: !0
|
2184
2184
|
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), C = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", g = c;
|
2185
2185
|
g === void 0 && d && (g = -1, m.tabindex = g);
|
2186
2186
|
var _ = l ? {
|
2187
2187
|
msTransform: "rotate(".concat(l, "deg)"),
|
2188
2188
|
transform: "rotate(".concat(l, "deg)")
|
2189
|
-
} : void 0,
|
2189
|
+
} : void 0, y = normalizeTwoToneColors(u), v = _slicedToArray(y, 2), k = v[0], T = v[1];
|
2190
2190
|
return createVNode("span", _objectSpread$k({
|
2191
2191
|
role: "img",
|
2192
2192
|
"aria-label": i.name
|
2193
2193
|
}, m, {
|
2194
2194
|
onClick: d,
|
2195
|
-
class:
|
2195
|
+
class: b
|
2196
2196
|
}), [createVNode(VueIcon, {
|
2197
2197
|
class: C,
|
2198
2198
|
icon: i,
|
@@ -2999,15 +2999,15 @@ function iconToSVG(e, t) {
|
|
2999
2999
|
};
|
3000
3000
|
let o = r.body;
|
3001
3001
|
[r, a].forEach((C) => {
|
3002
|
-
const g = [], _ = C.hFlip,
|
3003
|
-
let
|
3004
|
-
_ ?
|
3002
|
+
const g = [], _ = C.hFlip, y = C.vFlip;
|
3003
|
+
let v = C.rotate;
|
3004
|
+
_ ? y ? v += 2 : (g.push(
|
3005
3005
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3006
|
-
), g.push("scale(-1 1)"), n.top = n.left = 0) :
|
3006
|
+
), g.push("scale(-1 1)"), n.top = n.left = 0) : y && (g.push(
|
3007
3007
|
"translate(" + (0 - n.left).toString() + " " + (n.height + n.top).toString() + ")"
|
3008
3008
|
), g.push("scale(1 -1)"), n.top = n.left = 0);
|
3009
3009
|
let k;
|
3010
|
-
switch (
|
3010
|
+
switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
|
3011
3011
|
case 1:
|
3012
3012
|
k = n.height / 2 + n.top, g.unshift(
|
3013
3013
|
"rotate(90 " + k.toString() + " " + k.toString() + ")"
|
@@ -3024,15 +3024,15 @@ function iconToSVG(e, t) {
|
|
3024
3024
|
);
|
3025
3025
|
break;
|
3026
3026
|
}
|
3027
|
-
|
3027
|
+
v % 2 === 1 && (n.left !== n.top && (k = n.left, n.left = n.top, n.top = k), n.width !== n.height && (k = n.width, n.width = n.height, n.height = k)), g.length && (o = '<g transform="' + g.join(" ") + '">' + o + "</g>");
|
3028
3028
|
});
|
3029
3029
|
const i = a.width, s = a.height, l = n.width, c = n.height;
|
3030
3030
|
let u, d;
|
3031
3031
|
i === null ? (d = s === null ? "1em" : s === "auto" ? c : s, u = calculateSize(d, l / c)) : (u = i === "auto" ? l : i, d = s === null ? calculateSize(u, c / l) : s === "auto" ? c : s);
|
3032
|
-
const m = {},
|
3032
|
+
const m = {}, b = (C, g) => {
|
3033
3033
|
isUnsetKeyword(g) || (m[C] = g.toString());
|
3034
3034
|
};
|
3035
|
-
return
|
3035
|
+
return b("width", u), b("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
3036
3036
|
attributes: m,
|
3037
3037
|
body: o
|
3038
3038
|
};
|
@@ -3313,8 +3313,8 @@ function sendQuery(e, t, r, a) {
|
|
3313
3313
|
} else
|
3314
3314
|
i = e.resources.slice(o).concat(e.resources.slice(0, o));
|
3315
3315
|
const s = Date.now();
|
3316
|
-
let l = "pending", c = 0, u, d = null, m = [],
|
3317
|
-
typeof a == "function" &&
|
3316
|
+
let l = "pending", c = 0, u, d = null, m = [], b = [];
|
3317
|
+
typeof a == "function" && b.push(a);
|
3318
3318
|
function C() {
|
3319
3319
|
d && (clearTimeout(d), d = null);
|
3320
3320
|
}
|
@@ -3324,9 +3324,9 @@ function sendQuery(e, t, r, a) {
|
|
3324
3324
|
}), m = [];
|
3325
3325
|
}
|
3326
3326
|
function _(E, P) {
|
3327
|
-
P && (
|
3327
|
+
P && (b = []), typeof E == "function" && b.push(E);
|
3328
3328
|
}
|
3329
|
-
function
|
3329
|
+
function y() {
|
3330
3330
|
return {
|
3331
3331
|
startTime: s,
|
3332
3332
|
payload: t,
|
@@ -3337,8 +3337,8 @@ function sendQuery(e, t, r, a) {
|
|
3337
3337
|
abort: g
|
3338
3338
|
};
|
3339
3339
|
}
|
3340
|
-
function
|
3341
|
-
l = "failed",
|
3340
|
+
function v() {
|
3341
|
+
l = "failed", b.forEach((E) => {
|
3342
3342
|
E(void 0, u);
|
3343
3343
|
});
|
3344
3344
|
}
|
@@ -3360,18 +3360,18 @@ function sendQuery(e, t, r, a) {
|
|
3360
3360
|
return;
|
3361
3361
|
}
|
3362
3362
|
if (P === "abort") {
|
3363
|
-
u = I,
|
3363
|
+
u = I, v();
|
3364
3364
|
return;
|
3365
3365
|
}
|
3366
3366
|
if (A) {
|
3367
|
-
u = I, m.length || (i.length ? M() :
|
3367
|
+
u = I, m.length || (i.length ? M() : v());
|
3368
3368
|
return;
|
3369
3369
|
}
|
3370
3370
|
if (C(), k(), !e.random) {
|
3371
3371
|
const w = e.resources.indexOf(E.resource);
|
3372
3372
|
w !== -1 && w !== e.index && (e.index = w);
|
3373
3373
|
}
|
3374
|
-
l = "completed",
|
3374
|
+
l = "completed", b.forEach((w) => {
|
3375
3375
|
w(I);
|
3376
3376
|
});
|
3377
3377
|
}
|
@@ -3383,11 +3383,11 @@ function sendQuery(e, t, r, a) {
|
|
3383
3383
|
if (E === void 0) {
|
3384
3384
|
if (m.length) {
|
3385
3385
|
d = setTimeout(() => {
|
3386
|
-
C(), l === "pending" && (k(),
|
3386
|
+
C(), l === "pending" && (k(), v());
|
3387
3387
|
}, e.timeout);
|
3388
3388
|
return;
|
3389
3389
|
}
|
3390
|
-
|
3390
|
+
v();
|
3391
3391
|
return;
|
3392
3392
|
}
|
3393
3393
|
const P = {
|
@@ -3399,7 +3399,7 @@ function sendQuery(e, t, r, a) {
|
|
3399
3399
|
};
|
3400
3400
|
m.push(P), c++, d = setTimeout(M, e.rotate), r(E, t, P.callback);
|
3401
3401
|
}
|
3402
|
-
return setTimeout(M),
|
3402
|
+
return setTimeout(M), y;
|
3403
3403
|
}
|
3404
3404
|
function initRedundancy(e) {
|
3405
3405
|
const t = {
|
@@ -3664,8 +3664,8 @@ const loadIcons = (e, t) => {
|
|
3664
3664
|
const d = n[c] || (n[c] = /* @__PURE__ */ Object.create(null));
|
3665
3665
|
d[u] || (d[u] = []);
|
3666
3666
|
}), a.pending.forEach((l) => {
|
3667
|
-
const { provider: c, prefix: u, name: d } = l, m = getStorage(c, u),
|
3668
|
-
|
3667
|
+
const { provider: c, prefix: u, name: d } = l, m = getStorage(c, u), b = m.pendingIcons || (m.pendingIcons = /* @__PURE__ */ new Set());
|
3668
|
+
b.has(d) || (b.add(d), n[c][u].push(d));
|
3669
3669
|
}), o.forEach((l) => {
|
3670
3670
|
const { provider: c, prefix: u } = l;
|
3671
3671
|
n[c][u].length && loadNewIcons(l, n[c][u]);
|
@@ -3801,8 +3801,8 @@ const render = (e, t) => {
|
|
3801
3801
|
_ !== !0 && _ !== "true" && delete a["aria-hidden"];
|
3802
3802
|
break;
|
3803
3803
|
default: {
|
3804
|
-
const
|
3805
|
-
|
3804
|
+
const y = customisationAliases[g];
|
3805
|
+
y ? (_ === !0 || _ === "true" || _ === 1) && (r[y] = !0) : defaultExtendedIconCustomisations[g] === void 0 && (a[g] = _);
|
3806
3806
|
}
|
3807
3807
|
}
|
3808
3808
|
}
|
@@ -3815,7 +3815,7 @@ const render = (e, t) => {
|
|
3815
3815
|
let g = 0, _ = t.id;
|
3816
3816
|
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + g++ : "iconifyVue"), h("svg", a);
|
3817
3817
|
}
|
3818
|
-
const { body: u, width: d, height: m } = e,
|
3818
|
+
const { body: u, width: d, height: m } = e, b = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), C = iconToHTML(u, {
|
3819
3819
|
...c,
|
3820
3820
|
width: d + "",
|
3821
3821
|
height: m + ""
|
@@ -3826,7 +3826,7 @@ const render = (e, t) => {
|
|
3826
3826
|
width: fixSize(c.width),
|
3827
3827
|
height: fixSize(c.height),
|
3828
3828
|
...commonProps,
|
3829
|
-
...
|
3829
|
+
...b ? monotoneProps : coloredProps,
|
3830
3830
|
...s
|
3831
3831
|
}, h("span", a);
|
3832
3832
|
};
|
@@ -3928,62 +3928,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3928
3928
|
(function(r, a) {
|
3929
3929
|
e.exports = a();
|
3930
3930
|
})(commonjsGlobal, function() {
|
3931
|
-
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter",
|
3931
|
+
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", b = "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, v = { 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) {
|
3932
3932
|
var O = ["th", "st", "nd", "rd"], D = V % 100;
|
3933
3933
|
return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
|
3934
3934
|
} }, k = function(V, O, D) {
|
3935
|
-
var
|
3936
|
-
return !
|
3935
|
+
var N = String(V);
|
3936
|
+
return !N || N.length >= O ? V : "" + Array(O + 1 - N.length).join(D) + V;
|
3937
3937
|
}, T = { s: k, z: function(V) {
|
3938
|
-
var O = -V.utcOffset(), D = Math.abs(O),
|
3939
|
-
return (O <= 0 ? "+" : "-") + k(
|
3938
|
+
var O = -V.utcOffset(), D = Math.abs(O), N = Math.floor(D / 60), L = D % 60;
|
3939
|
+
return (O <= 0 ? "+" : "-") + k(N, 2, "0") + ":" + k(L, 2, "0");
|
3940
3940
|
}, m: function V(O, D) {
|
3941
3941
|
if (O.date() < D.date())
|
3942
3942
|
return -V(D, O);
|
3943
|
-
var
|
3944
|
-
return +(-(
|
3943
|
+
var N = 12 * (D.year() - O.year()) + (D.month() - O.month()), L = O.clone().add(N, d), H = D - L < 0, K = O.clone().add(N + (H ? -1 : 1), d);
|
3944
|
+
return +(-(N + (D - L) / (H ? L - K : K - L)) || 0);
|
3945
3945
|
}, a: function(V) {
|
3946
3946
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3947
3947
|
}, p: function(V) {
|
3948
|
-
return { M: d, y:
|
3948
|
+
return { M: d, y: b, w: u, d: c, D: C, h: l, m: s, s: i, ms: o, Q: m }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
3949
3949
|
}, u: function(V) {
|
3950
3950
|
return V === void 0;
|
3951
3951
|
} }, M = "en", E = {};
|
3952
|
-
E[M] =
|
3952
|
+
E[M] = v;
|
3953
3953
|
var P = function(V) {
|
3954
|
-
return V instanceof
|
3955
|
-
}, I = function V(O, D,
|
3954
|
+
return V instanceof U;
|
3955
|
+
}, I = function V(O, D, N) {
|
3956
3956
|
var L;
|
3957
3957
|
if (!O)
|
3958
3958
|
return M;
|
3959
3959
|
if (typeof O == "string") {
|
3960
|
-
var
|
3961
|
-
E[
|
3962
|
-
var
|
3963
|
-
if (!L &&
|
3964
|
-
return V(
|
3960
|
+
var H = O.toLowerCase();
|
3961
|
+
E[H] && (L = H), D && (E[H] = D, L = H);
|
3962
|
+
var K = O.split("-");
|
3963
|
+
if (!L && K.length > 1)
|
3964
|
+
return V(K[0]);
|
3965
3965
|
} else {
|
3966
|
-
var
|
3967
|
-
E[
|
3966
|
+
var G = O.name;
|
3967
|
+
E[G] = O, L = G;
|
3968
3968
|
}
|
3969
|
-
return !
|
3969
|
+
return !N && L && (M = L), L || !N && M;
|
3970
3970
|
}, A = function(V, O) {
|
3971
3971
|
if (P(V))
|
3972
3972
|
return V.clone();
|
3973
3973
|
var D = typeof O == "object" ? O : {};
|
3974
|
-
return D.date = V, D.args = arguments, new
|
3974
|
+
return D.date = V, D.args = arguments, new U(D);
|
3975
3975
|
}, w = T;
|
3976
3976
|
w.l = I, w.i = P, w.w = function(V, O) {
|
3977
3977
|
return A(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3978
3978
|
};
|
3979
|
-
var
|
3979
|
+
var U = function() {
|
3980
3980
|
function V(D) {
|
3981
3981
|
this.$L = I(D.locale, null, !0), this.parse(D);
|
3982
3982
|
}
|
3983
3983
|
var O = V.prototype;
|
3984
3984
|
return O.parse = function(D) {
|
3985
|
-
this.$d = function(
|
3986
|
-
var L =
|
3985
|
+
this.$d = function(N) {
|
3986
|
+
var L = N.date, H = N.utc;
|
3987
3987
|
if (L === null)
|
3988
3988
|
return new Date(NaN);
|
3989
3989
|
if (w.u(L))
|
@@ -3991,10 +3991,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3991
3991
|
if (L instanceof Date)
|
3992
3992
|
return new Date(L);
|
3993
3993
|
if (typeof L == "string" && !/Z$/i.test(L)) {
|
3994
|
-
var
|
3995
|
-
if (
|
3996
|
-
var
|
3997
|
-
return
|
3994
|
+
var K = L.match(_);
|
3995
|
+
if (K) {
|
3996
|
+
var G = K[2] - 1 || 0, Y = (K[7] || "0").substring(0, 3);
|
3997
|
+
return H ? new Date(Date.UTC(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y)) : new Date(K[1], G, K[3] || 1, K[4] || 0, K[5] || 0, K[6] || 0, Y);
|
3998
3998
|
}
|
3999
3999
|
}
|
4000
4000
|
return new Date(L);
|
@@ -4006,108 +4006,108 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4006
4006
|
return w;
|
4007
4007
|
}, O.isValid = function() {
|
4008
4008
|
return this.$d.toString() !== g;
|
4009
|
-
}, O.isSame = function(D,
|
4009
|
+
}, O.isSame = function(D, N) {
|
4010
4010
|
var L = A(D);
|
4011
|
-
return this.startOf(
|
4012
|
-
}, O.isAfter = function(D,
|
4013
|
-
return A(D) < this.startOf(
|
4014
|
-
}, O.isBefore = function(D,
|
4015
|
-
return this.endOf(
|
4016
|
-
}, O.$g = function(D,
|
4017
|
-
return w.u(D) ? this[
|
4011
|
+
return this.startOf(N) <= L && L <= this.endOf(N);
|
4012
|
+
}, O.isAfter = function(D, N) {
|
4013
|
+
return A(D) < this.startOf(N);
|
4014
|
+
}, O.isBefore = function(D, N) {
|
4015
|
+
return this.endOf(N) < A(D);
|
4016
|
+
}, O.$g = function(D, N, L) {
|
4017
|
+
return w.u(D) ? this[N] : this.set(L, D);
|
4018
4018
|
}, O.unix = function() {
|
4019
4019
|
return Math.floor(this.valueOf() / 1e3);
|
4020
4020
|
}, O.valueOf = function() {
|
4021
4021
|
return this.$d.getTime();
|
4022
|
-
}, O.startOf = function(D,
|
4023
|
-
var L = this,
|
4024
|
-
var ue = w.w(L.$u ? Date.UTC(L.$y,
|
4025
|
-
return
|
4026
|
-
}, Y = function(ce,
|
4027
|
-
return w.w(L.toDate()[ce].apply(L.toDate("s"), (
|
4028
|
-
},
|
4029
|
-
switch (
|
4030
|
-
case
|
4031
|
-
return
|
4022
|
+
}, O.startOf = function(D, N) {
|
4023
|
+
var L = this, H = !!w.u(N) || N, K = w.p(D), G = function(ce, ae) {
|
4024
|
+
var ue = w.w(L.$u ? Date.UTC(L.$y, ae, ce) : new Date(L.$y, ae, ce), L);
|
4025
|
+
return H ? ue : ue.endOf(c);
|
4026
|
+
}, Y = function(ce, ae) {
|
4027
|
+
return w.w(L.toDate()[ce].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ae)), L);
|
4028
|
+
}, Q = this.$W, q = this.$M, te = this.$D, re = "set" + (this.$u ? "UTC" : "");
|
4029
|
+
switch (K) {
|
4030
|
+
case b:
|
4031
|
+
return H ? G(1, 0) : G(31, 11);
|
4032
4032
|
case d:
|
4033
|
-
return
|
4033
|
+
return H ? G(1, q) : G(0, q + 1);
|
4034
4034
|
case u:
|
4035
|
-
var ne = this.$locale().weekStart || 0, le = (
|
4036
|
-
return H
|
4035
|
+
var ne = this.$locale().weekStart || 0, le = (Q < ne ? Q + 7 : Q) - ne;
|
4036
|
+
return G(H ? te - le : te + (6 - le), q);
|
4037
4037
|
case c:
|
4038
4038
|
case C:
|
4039
|
-
return Y(
|
4039
|
+
return Y(re + "Hours", 0);
|
4040
4040
|
case l:
|
4041
|
-
return Y(
|
4041
|
+
return Y(re + "Minutes", 1);
|
4042
4042
|
case s:
|
4043
|
-
return Y(
|
4043
|
+
return Y(re + "Seconds", 2);
|
4044
4044
|
case i:
|
4045
|
-
return Y(
|
4045
|
+
return Y(re + "Milliseconds", 3);
|
4046
4046
|
default:
|
4047
4047
|
return this.clone();
|
4048
4048
|
}
|
4049
4049
|
}, O.endOf = function(D) {
|
4050
4050
|
return this.startOf(D, !1);
|
4051
|
-
}, O.$set = function(D,
|
4052
|
-
var L,
|
4053
|
-
if (
|
4054
|
-
var
|
4055
|
-
|
4051
|
+
}, O.$set = function(D, N) {
|
4052
|
+
var L, H = w.p(D), K = "set" + (this.$u ? "UTC" : ""), G = (L = {}, L[c] = K + "Date", L[C] = K + "Date", L[d] = K + "Month", L[b] = K + "FullYear", L[l] = K + "Hours", L[s] = K + "Minutes", L[i] = K + "Seconds", L[o] = K + "Milliseconds", L)[H], Y = H === c ? this.$D + (N - this.$W) : N;
|
4053
|
+
if (H === d || H === b) {
|
4054
|
+
var Q = this.clone().set(C, 1);
|
4055
|
+
Q.$d[G](Y), Q.init(), this.$d = Q.set(C, Math.min(this.$D, Q.daysInMonth())).$d;
|
4056
4056
|
} else
|
4057
|
-
|
4057
|
+
G && this.$d[G](Y);
|
4058
4058
|
return this.init(), this;
|
4059
|
-
}, O.set = function(D,
|
4060
|
-
return this.clone().$set(D,
|
4059
|
+
}, O.set = function(D, N) {
|
4060
|
+
return this.clone().$set(D, N);
|
4061
4061
|
}, O.get = function(D) {
|
4062
4062
|
return this[w.p(D)]();
|
4063
|
-
}, O.add = function(D,
|
4064
|
-
var L,
|
4063
|
+
}, O.add = function(D, N) {
|
4064
|
+
var L, H = this;
|
4065
4065
|
D = Number(D);
|
4066
|
-
var
|
4067
|
-
var
|
4068
|
-
return w.w(
|
4066
|
+
var K = w.p(N), G = function(q) {
|
4067
|
+
var te = A(H);
|
4068
|
+
return w.w(te.date(te.date() + Math.round(q * D)), H);
|
4069
4069
|
};
|
4070
|
-
if (
|
4070
|
+
if (K === d)
|
4071
4071
|
return this.set(d, this.$M + D);
|
4072
|
-
if (
|
4073
|
-
return this.set(
|
4074
|
-
if (
|
4075
|
-
return
|
4076
|
-
if (
|
4077
|
-
return
|
4078
|
-
var Y = (L = {}, L[s] = a, L[l] = n, L[i] = r, L)[
|
4079
|
-
return w.w(
|
4080
|
-
}, O.subtract = function(D,
|
4081
|
-
return this.add(-1 * D,
|
4072
|
+
if (K === b)
|
4073
|
+
return this.set(b, this.$y + D);
|
4074
|
+
if (K === c)
|
4075
|
+
return G(1);
|
4076
|
+
if (K === u)
|
4077
|
+
return G(7);
|
4078
|
+
var Y = (L = {}, L[s] = a, L[l] = n, L[i] = r, L)[K] || 1, Q = this.$d.getTime() + D * Y;
|
4079
|
+
return w.w(Q, this);
|
4080
|
+
}, O.subtract = function(D, N) {
|
4081
|
+
return this.add(-1 * D, N);
|
4082
4082
|
}, O.format = function(D) {
|
4083
|
-
var
|
4083
|
+
var N = this, L = this.$locale();
|
4084
4084
|
if (!this.isValid())
|
4085
4085
|
return L.invalidDate || g;
|
4086
|
-
var
|
4087
|
-
return
|
4088
|
-
}, ne = function(
|
4089
|
-
return w.s(
|
4090
|
-
}, le = L.meridiem || function(
|
4091
|
-
var de =
|
4086
|
+
var H = D || "YYYY-MM-DDTHH:mm:ssZ", K = w.z(this), G = this.$H, Y = this.$m, Q = this.$M, q = L.weekdays, te = L.months, re = function(ae, ue, fe, de) {
|
4087
|
+
return ae && (ae[ue] || ae(N, H)) || fe[ue].slice(0, de);
|
4088
|
+
}, ne = function(ae) {
|
4089
|
+
return w.s(G % 12 || 12, ae, "0");
|
4090
|
+
}, le = L.meridiem || function(ae, ue, fe) {
|
4091
|
+
var de = ae < 12 ? "AM" : "PM";
|
4092
4092
|
return fe ? de.toLowerCase() : de;
|
4093
|
-
}, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M:
|
4094
|
-
return
|
4095
|
-
return ue || ce[
|
4093
|
+
}, ce = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Q + 1, MM: w.s(Q + 1, 2, "0"), MMM: re(L.monthsShort, Q, te, 3), MMMM: re(te, Q), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: re(L.weekdaysMin, this.$W, q, 2), ddd: re(L.weekdaysShort, this.$W, q, 3), dddd: q[this.$W], H: String(G), HH: w.s(G, 2, "0"), h: ne(1), hh: ne(2), a: le(G, Y, !0), A: le(G, Y, !1), m: String(Y), mm: w.s(Y, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: K };
|
4094
|
+
return H.replace(y, function(ae, ue) {
|
4095
|
+
return ue || ce[ae] || K.replace(":", "");
|
4096
4096
|
});
|
4097
4097
|
}, O.utcOffset = function() {
|
4098
4098
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4099
|
-
}, O.diff = function(D,
|
4100
|
-
var
|
4101
|
-
return
|
4099
|
+
}, O.diff = function(D, N, L) {
|
4100
|
+
var H, K = w.p(N), G = A(D), Y = (G.utcOffset() - this.utcOffset()) * a, Q = this - G, q = w.m(this, G);
|
4101
|
+
return q = (H = {}, H[b] = q / 12, H[d] = q, H[m] = q / 3, H[u] = (Q - Y) / 6048e5, H[c] = (Q - Y) / 864e5, H[l] = Q / n, H[s] = Q / a, H[i] = Q / r, H)[K] || Q, L ? q : w.a(q);
|
4102
4102
|
}, O.daysInMonth = function() {
|
4103
4103
|
return this.endOf(d).$D;
|
4104
4104
|
}, O.$locale = function() {
|
4105
4105
|
return E[this.$L];
|
4106
|
-
}, O.locale = function(D,
|
4106
|
+
}, O.locale = function(D, N) {
|
4107
4107
|
if (!D)
|
4108
4108
|
return this.$L;
|
4109
|
-
var L = this.clone(),
|
4110
|
-
return
|
4109
|
+
var L = this.clone(), H = I(D, N, !0);
|
4110
|
+
return H && (L.$L = H), L;
|
4111
4111
|
}, O.clone = function() {
|
4112
4112
|
return w.w(this.$d, this);
|
4113
4113
|
}, O.toDate = function() {
|
@@ -4119,13 +4119,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4119
4119
|
}, O.toString = function() {
|
4120
4120
|
return this.$d.toUTCString();
|
4121
4121
|
}, V;
|
4122
|
-
}(), $ =
|
4123
|
-
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y",
|
4122
|
+
}(), $ = U.prototype;
|
4123
|
+
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", b], ["$D", C]].forEach(function(V) {
|
4124
4124
|
$[V[1]] = function(O) {
|
4125
4125
|
return this.$g(O, V[0], V[1]);
|
4126
4126
|
};
|
4127
4127
|
}), A.extend = function(V, O) {
|
4128
|
-
return V.$i || (V(O,
|
4128
|
+
return V.$i || (V(O, U, A), V.$i = !0), A;
|
4129
4129
|
}, A.locale = I, A.isDayjs = P, A.unix = function(V) {
|
4130
4130
|
return A(1e3 * V);
|
4131
4131
|
}, A.en = E[M], A.Ls = E, A.p = {}, A;
|
@@ -4168,35 +4168,35 @@ function filesize(e, {
|
|
4168
4168
|
standard: u = EMPTY,
|
4169
4169
|
output: d = STRING,
|
4170
4170
|
fullform: m = !1,
|
4171
|
-
fullforms:
|
4171
|
+
fullforms: b = [],
|
4172
4172
|
exponent: C = -1,
|
4173
4173
|
roundingMethod: g = ROUND,
|
4174
4174
|
precision: _ = 0
|
4175
4175
|
} = {}) {
|
4176
|
-
let
|
4176
|
+
let y = C, v = Number(e), k = [], T = 0, M = EMPTY;
|
4177
4177
|
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);
|
4178
|
-
const E = a === 10 ? 1e3 : 1024, P = m === !0, I =
|
4178
|
+
const E = a === 10 ? 1e3 : 1024, P = m === !0, I = v < 0, A = Math[g];
|
4179
4179
|
if (typeof e != "bigint" && isNaN(e))
|
4180
4180
|
throw new TypeError(INVALID_NUMBER);
|
4181
4181
|
if (typeof A !== FUNCTION)
|
4182
4182
|
throw new TypeError(INVALID_ROUND);
|
4183
|
-
if (I && (
|
4184
|
-
return
|
4185
|
-
if (
|
4186
|
-
k[0] = 0, M = k[1] = STRINGS.symbol[u][t ? BITS : BYTES][
|
4183
|
+
if (I && (v = -v), (y === -1 || isNaN(y)) && (y = Math.floor(Math.log(v) / Math.log(E)), y < 0 && (y = 0)), y > 8 && (_ > 0 && (_ += 8 - y), y = 8), d === EXPONENT)
|
4184
|
+
return y;
|
4185
|
+
if (v === 0)
|
4186
|
+
k[0] = 0, M = k[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4187
4187
|
else {
|
4188
|
-
T =
|
4189
|
-
const w = Math.pow(10,
|
4190
|
-
k[0] = A(T * w) / w, k[0] === E &&
|
4188
|
+
T = v / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
|
4189
|
+
const w = Math.pow(10, y > 0 ? n : 0);
|
4190
|
+
k[0] = A(T * w) / w, k[0] === E && y < 8 && C === -1 && (k[0] = 1, y++), M = k[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4191
4191
|
}
|
4192
4192
|
if (I && (k[0] = -k[0]), _ > 0 && (k[0] = k[0].toPrecision(_)), k[1] = c[k[1]] || k[1], o === !0 ? k[0] = k[0].toLocaleString() : o.length > 0 ? k[0] = k[0].toLocaleString(o, i) : s.length > 0 && (k[0] = k[0].toString().replace(PERIOD, s)), r && Number.isInteger(k[0]) === !1 && n > 0) {
|
4193
|
-
const w = s || PERIOD,
|
4194
|
-
k[0] = `${
|
4193
|
+
const w = s || PERIOD, U = k[0].toString().split(w), $ = U[1] || EMPTY, V = $.length, O = n - V;
|
4194
|
+
k[0] = `${U[0]}${w}${$.padEnd(V + O, ZERO)}`;
|
4195
4195
|
}
|
4196
|
-
return P && (k[1] =
|
4196
|
+
return P && (k[1] = b[y] ? b[y] : STRINGS.fullform[u][y] + (t ? BIT : BYTE) + (k[0] === 1 ? EMPTY : S)), d === ARRAY ? k : d === OBJECT ? {
|
4197
4197
|
value: k[0],
|
4198
4198
|
symbol: k[1],
|
4199
|
-
exponent:
|
4199
|
+
exponent: y,
|
4200
4200
|
unit: M
|
4201
4201
|
} : k.join(l);
|
4202
4202
|
}
|
@@ -5239,17 +5239,17 @@ function baseClone(e, t, r, a, n, o) {
|
|
5239
5239
|
}
|
5240
5240
|
}
|
5241
5241
|
o || (o = new Stack());
|
5242
|
-
var
|
5243
|
-
if (
|
5244
|
-
return
|
5242
|
+
var b = o.get(e);
|
5243
|
+
if (b)
|
5244
|
+
return b;
|
5245
5245
|
o.set(e, i), isSet$1(e) ? e.forEach(function(_) {
|
5246
5246
|
i.add(baseClone(_, t, r, _, e, o));
|
5247
|
-
}) : isMap$1(e) && e.forEach(function(_,
|
5248
|
-
i.set(
|
5247
|
+
}) : isMap$1(e) && e.forEach(function(_, y) {
|
5248
|
+
i.set(y, baseClone(_, t, r, y, e, o));
|
5249
5249
|
});
|
5250
5250
|
var C = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, g = u ? void 0 : C(e);
|
5251
|
-
return arrayEach(g || e, function(_,
|
5252
|
-
g && (
|
5251
|
+
return arrayEach(g || e, function(_, y) {
|
5252
|
+
g && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, o));
|
5253
5253
|
}), i;
|
5254
5254
|
}
|
5255
5255
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -5287,7 +5287,7 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5287
5287
|
var c = o.get(e), u = o.get(t);
|
5288
5288
|
if (c && u)
|
5289
5289
|
return c == t && u == e;
|
5290
|
-
var d = -1, m = !0,
|
5290
|
+
var d = -1, m = !0, b = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5291
5291
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
5292
5292
|
var C = e[d], g = t[d];
|
5293
5293
|
if (a)
|
@@ -5298,10 +5298,10 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5298
5298
|
m = !1;
|
5299
5299
|
break;
|
5300
5300
|
}
|
5301
|
-
if (
|
5302
|
-
if (!arraySome(t, function(
|
5303
|
-
if (!cacheHas(
|
5304
|
-
return
|
5301
|
+
if (b) {
|
5302
|
+
if (!arraySome(t, function(y, v) {
|
5303
|
+
if (!cacheHas(b, v) && (C === y || n(C, y, r, a, o)))
|
5304
|
+
return b.push(v);
|
5305
5305
|
})) {
|
5306
5306
|
m = !1;
|
5307
5307
|
break;
|
@@ -5371,17 +5371,17 @@ function equalObjects(e, t, r, a, n, o) {
|
|
5371
5371
|
if (!(i ? m in t : hasOwnProperty$1.call(t, m)))
|
5372
5372
|
return !1;
|
5373
5373
|
}
|
5374
|
-
var
|
5375
|
-
if (
|
5376
|
-
return
|
5374
|
+
var b = o.get(e), C = o.get(t);
|
5375
|
+
if (b && C)
|
5376
|
+
return b == t && C == e;
|
5377
5377
|
var g = !0;
|
5378
5378
|
o.set(e, t), o.set(t, e);
|
5379
5379
|
for (var _ = i; ++d < l; ) {
|
5380
5380
|
m = s[d];
|
5381
|
-
var
|
5381
|
+
var y = e[m], v = t[m];
|
5382
5382
|
if (a)
|
5383
|
-
var k = i ? a(
|
5384
|
-
if (!(k === void 0 ?
|
5383
|
+
var k = i ? a(v, y, m, t, e, o) : a(y, v, m, e, t, o);
|
5384
|
+
if (!(k === void 0 ? y === v || n(y, v, r, a, o) : k)) {
|
5385
5385
|
g = !1;
|
5386
5386
|
break;
|
5387
5387
|
}
|
@@ -5406,9 +5406,9 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
|
|
5406
5406
|
if (m && !u)
|
5407
5407
|
return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, l, r, a, n, o);
|
5408
5408
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5409
|
-
var
|
5410
|
-
if (
|
5411
|
-
var g =
|
5409
|
+
var b = u && hasOwnProperty.call(e, "__wrapped__"), C = d && hasOwnProperty.call(t, "__wrapped__");
|
5410
|
+
if (b || C) {
|
5411
|
+
var g = b ? e.value() : e, _ = C ? t.value() : t;
|
5412
5412
|
return o || (o = new Stack()), n(g, _, r, a, o);
|
5413
5413
|
}
|
5414
5414
|
}
|
@@ -5606,14 +5606,14 @@ function baseIntersection(e, t, r) {
|
|
5606
5606
|
var d = -1, m = s[0];
|
5607
5607
|
e:
|
5608
5608
|
for (; ++d < n && c.length < l; ) {
|
5609
|
-
var
|
5610
|
-
if (
|
5609
|
+
var b = u[d], C = t ? t(b) : b;
|
5610
|
+
if (b = r || b !== 0 ? b : 0, !(m ? cacheHas(m, C) : a(c, C, r))) {
|
5611
5611
|
for (i = o; --i; ) {
|
5612
5612
|
var g = s[i];
|
5613
5613
|
if (!(g ? cacheHas(g, C) : a(e[i], C, r)))
|
5614
5614
|
continue e;
|
5615
5615
|
}
|
5616
|
-
m && m.push(C), c.push(
|
5616
|
+
m && m.push(C), c.push(b);
|
5617
5617
|
}
|
5618
5618
|
}
|
5619
5619
|
return c;
|
@@ -5910,7 +5910,7 @@ const without$1 = without, en = {
|
|
5910
5910
|
},
|
5911
5911
|
KgFormItem: {
|
5912
5912
|
mustGT: "\u5FC5\u987B\u5927\u4E8E {0}",
|
5913
|
-
mustGTE: "\u5FC5\u987B\u5927\u4E8E {0}"
|
5913
|
+
mustGTE: "\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E {0}"
|
5914
5914
|
},
|
5915
5915
|
KgSearch: {
|
5916
5916
|
title: "\u67E5\u8BE2\u6761\u4EF6"
|
@@ -6176,7 +6176,7 @@ class KgUtil {
|
|
6176
6176
|
if (!i)
|
6177
6177
|
return r;
|
6178
6178
|
switch ((() => {
|
6179
|
-
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, m = i.cpy_ctrl_typ,
|
6179
|
+
const l = i.ctrl_typ, c = i.prf_ctrl_typ, u = i.crt_ctrl_typ, d = i.upt_ctrl_typ, m = i.cpy_ctrl_typ, b = i.del_ctrl_typ;
|
6180
6180
|
switch (!0) {
|
6181
6181
|
case o.isRetrieving.value:
|
6182
6182
|
return c || l;
|
@@ -6187,7 +6187,7 @@ class KgUtil {
|
|
6187
6187
|
case n.isCopying.value:
|
6188
6188
|
return m || l;
|
6189
6189
|
case n.isDeleting.value:
|
6190
|
-
return
|
6190
|
+
return b || l;
|
6191
6191
|
}
|
6192
6192
|
return l;
|
6193
6193
|
})()) {
|
@@ -6368,7 +6368,7 @@ class KgVarUtil {
|
|
6368
6368
|
return r;
|
6369
6369
|
}
|
6370
6370
|
static transformValueByControlType(t, r, a, n, o) {
|
6371
|
-
var m,
|
6371
|
+
var m, b, C;
|
6372
6372
|
const i = useKg(), s = useKgVar(t);
|
6373
6373
|
let l = n;
|
6374
6374
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -6379,7 +6379,7 @@ class KgVarUtil {
|
|
6379
6379
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
6380
6380
|
break;
|
6381
6381
|
case "{USER.username}":
|
6382
|
-
l = l.replace("{USER.username}", (C = (
|
6382
|
+
l = l.replace("{USER.username}", (C = (b = (m = i.store).getUseUserStore) == null ? void 0 : b.call(m).userInfo) == null ? void 0 : C.username);
|
6383
6383
|
break;
|
6384
6384
|
}
|
6385
6385
|
}
|
@@ -6387,14 +6387,14 @@ class KgVarUtil {
|
|
6387
6387
|
if (!u)
|
6388
6388
|
return l;
|
6389
6389
|
switch ((() => {
|
6390
|
-
const g = u.ctrl_typ, _ = u.prf_ctrl_typ,
|
6390
|
+
const g = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, v = u.upt_ctrl_typ, k = u.cpy_ctrl_typ, T = u.del_ctrl_typ;
|
6391
6391
|
switch (o) {
|
6392
6392
|
case "R":
|
6393
6393
|
return _ || g;
|
6394
6394
|
case "C":
|
6395
|
-
return b || g;
|
6396
|
-
case "U":
|
6397
6395
|
return y || g;
|
6396
|
+
case "U":
|
6397
|
+
return v || g;
|
6398
6398
|
case "CP":
|
6399
6399
|
return k || g;
|
6400
6400
|
case "D":
|
@@ -6489,8 +6489,8 @@ class KgVarUtil {
|
|
6489
6489
|
const _ = s.store.getVarPossibility(t, r);
|
6490
6490
|
switch (_ == null ? void 0 : _.val_data_type) {
|
6491
6491
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER: {
|
6492
|
-
const
|
6493
|
-
if (
|
6492
|
+
const y = g.map((v) => Number(v));
|
6493
|
+
if (y.some((v) => Number.isNaN(y))) {
|
6494
6494
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A number \u6570\u7EC4\u7C7B\u578B.`, {
|
6495
6495
|
frm_id: t,
|
6496
6496
|
var_nam: r,
|
@@ -6499,13 +6499,13 @@ class KgVarUtil {
|
|
6499
6499
|
});
|
6500
6500
|
return;
|
6501
6501
|
}
|
6502
|
-
return
|
6502
|
+
return y;
|
6503
6503
|
}
|
6504
6504
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
6505
|
-
return g.map((
|
6505
|
+
return g.map((y) => Boolean(y));
|
6506
6506
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
6507
6507
|
default:
|
6508
|
-
return g.map((
|
6508
|
+
return g.map((y) => String(y));
|
6509
6509
|
}
|
6510
6510
|
} catch {
|
6511
6511
|
KgLogger.error(`| \u63A7\u4EF6\u7684\u503C\u975E\u6CD5 | ${u.ctrl_typ} \u63A7\u4EF6\u7684\u503C\u5FC5\u987B\u4E3A\u6570\u7EC4\u7C7B\u578B.`, {
|
@@ -6622,8 +6622,8 @@ function createOptionsStore(e, t, r, a) {
|
|
6622
6622
|
const u = process.env.NODE_ENV !== "production" && a ? toRefs(ref(n ? n() : {}).value) : toRefs(r.state.value[e]);
|
6623
6623
|
return assign$1(u, o, Object.keys(i || {}).reduce((d, m) => (d[m] = markRaw(computed(() => {
|
6624
6624
|
setActivePinia(r);
|
6625
|
-
const
|
6626
|
-
return i[m].call(
|
6625
|
+
const b = r._s.get(e);
|
6626
|
+
return i[m].call(b, b);
|
6627
6627
|
})), d), {}));
|
6628
6628
|
}
|
6629
6629
|
return l = createSetupStore(e, c, t, r, a), l.$reset = function() {
|
@@ -6642,42 +6642,42 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6642
6642
|
deep: !0
|
6643
6643
|
};
|
6644
6644
|
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (I) => {
|
6645
|
-
c ?
|
6645
|
+
c ? b = I : c == !1 && !E._hotUpdating && (Array.isArray(b) ? b.push(I) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6646
6646
|
});
|
6647
|
-
let c, u, d = markRaw([]), m = markRaw([]),
|
6647
|
+
let c, u, d = markRaw([]), m = markRaw([]), b;
|
6648
6648
|
const C = a.state.value[e];
|
6649
6649
|
!i && !C && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6650
6650
|
const g = ref({});
|
6651
6651
|
function _(I) {
|
6652
6652
|
let A;
|
6653
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (
|
6653
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (b = []), typeof I == "function" ? (I(a.state.value[e]), A = {
|
6654
6654
|
type: MutationType.patchFunction,
|
6655
6655
|
storeId: e,
|
6656
|
-
events:
|
6656
|
+
events: b
|
6657
6657
|
}) : (mergeReactiveObjects(a.state.value[e], I), A = {
|
6658
6658
|
type: MutationType.patchObject,
|
6659
6659
|
payload: I,
|
6660
6660
|
storeId: e,
|
6661
|
-
events:
|
6661
|
+
events: b
|
6662
6662
|
}), nextTick().then(() => {
|
6663
6663
|
c = !0;
|
6664
6664
|
}), u = !0, triggerSubscriptions(d, A, a.state.value[e]);
|
6665
6665
|
}
|
6666
|
-
const
|
6666
|
+
const y = process.env.NODE_ENV !== "production" ? () => {
|
6667
6667
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6668
6668
|
} : noop$1;
|
6669
|
-
function
|
6669
|
+
function v() {
|
6670
6670
|
o.stop(), d = [], m = [], a._s.delete(e);
|
6671
6671
|
}
|
6672
6672
|
function k(I, A) {
|
6673
6673
|
return function() {
|
6674
6674
|
setActivePinia(a);
|
6675
|
-
const w = Array.from(arguments),
|
6676
|
-
function V(
|
6677
|
-
|
6675
|
+
const w = Array.from(arguments), U = [], $ = [];
|
6676
|
+
function V(N) {
|
6677
|
+
U.push(N);
|
6678
6678
|
}
|
6679
|
-
function O(
|
6680
|
-
$.push(
|
6679
|
+
function O(N) {
|
6680
|
+
$.push(N);
|
6681
6681
|
}
|
6682
6682
|
triggerSubscriptions(m, {
|
6683
6683
|
args: w,
|
@@ -6689,10 +6689,10 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6689
6689
|
let D;
|
6690
6690
|
try {
|
6691
6691
|
D = A.apply(this && this.$id === e ? this : E, w);
|
6692
|
-
} catch (
|
6693
|
-
throw triggerSubscriptions($,
|
6692
|
+
} catch (N) {
|
6693
|
+
throw triggerSubscriptions($, N), N;
|
6694
6694
|
}
|
6695
|
-
return D instanceof Promise ? D.then((
|
6695
|
+
return D instanceof Promise ? D.then((N) => (triggerSubscriptions(U, N), N)).catch((N) => (triggerSubscriptions($, N), Promise.reject(N))) : (triggerSubscriptions(U, D), D);
|
6696
6696
|
};
|
6697
6697
|
}
|
6698
6698
|
const T = /* @__PURE__ */ markRaw({
|
@@ -6705,18 +6705,18 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6705
6705
|
$id: e,
|
6706
6706
|
$onAction: addSubscription.bind(null, m),
|
6707
6707
|
$patch: _,
|
6708
|
-
$reset:
|
6708
|
+
$reset: y,
|
6709
6709
|
$subscribe(I, A = {}) {
|
6710
|
-
const w = addSubscription(d, I, A.detached, () =>
|
6710
|
+
const w = addSubscription(d, I, A.detached, () => U()), U = o.run(() => watch(() => a.state.value[e], ($) => {
|
6711
6711
|
(A.flush === "sync" ? u : c) && I({
|
6712
6712
|
storeId: e,
|
6713
6713
|
type: MutationType.direct,
|
6714
|
-
events:
|
6714
|
+
events: b
|
6715
6715
|
}, $);
|
6716
6716
|
}, assign$1({}, l, A)));
|
6717
6717
|
return w;
|
6718
6718
|
},
|
6719
|
-
$dispose:
|
6719
|
+
$dispose: v
|
6720
6720
|
}, E = reactive(assign$1(
|
6721
6721
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6722
6722
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
@@ -6749,8 +6749,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6749
6749
|
E._hotUpdate = markRaw((A) => {
|
6750
6750
|
E._hotUpdating = !0, A._hmrPayload.state.forEach((w) => {
|
6751
6751
|
if (w in E.$state) {
|
6752
|
-
const
|
6753
|
-
typeof
|
6752
|
+
const U = A.$state[w], $ = E.$state[w];
|
6753
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject($) ? patchObject(U, $) : A.$state[w] = $;
|
6754
6754
|
}
|
6755
6755
|
set(E, w, toRef(A.$state, w));
|
6756
6756
|
}), Object.keys(E.$state).forEach((w) => {
|
@@ -6759,11 +6759,11 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6759
6759
|
c = !0;
|
6760
6760
|
});
|
6761
6761
|
for (const w in A._hmrPayload.actions) {
|
6762
|
-
const
|
6763
|
-
set(E, w, k(w,
|
6762
|
+
const U = A[w];
|
6763
|
+
set(E, w, k(w, U));
|
6764
6764
|
}
|
6765
6765
|
for (const w in A._hmrPayload.getters) {
|
6766
|
-
const
|
6766
|
+
const U = A._hmrPayload.getters[w], $ = i ? computed(() => (setActivePinia(a), U.call(E, E))) : U;
|
6767
6767
|
set(E, w, $);
|
6768
6768
|
}
|
6769
6769
|
Object.keys(E._hmrPayload.getters).forEach((w) => {
|
@@ -7016,7 +7016,7 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
|
|
7016
7016
|
this.currentApp = e;
|
7017
7017
|
let r = KgRouteUtil.getAppIndexPath(e);
|
7018
7018
|
const { path: a } = unref(t.router.value.currentRoute);
|
7019
|
-
r !== a && (await this.emit("gotoApp", e), await t.router.value.push(r));
|
7019
|
+
r !== a && (await this.emit("gotoApp", { app: e }), await t.router.value.push(r));
|
7020
7020
|
},
|
7021
7021
|
async gotoPath(e) {
|
7022
7022
|
const t = useKg();
|
@@ -7028,7 +7028,7 @@ const useKgAppSelectStore = () => (store$8 || (store$8 = defineStore("KgAppSelec
|
|
7028
7028
|
if (r !== this.currentApp) {
|
7029
7029
|
this.currentApp = r;
|
7030
7030
|
const a = unref(t.router.value.currentRoute).path;
|
7031
|
-
e !== a && (await this.emit("gotoPath", e), await t.router.value.push(e));
|
7031
|
+
e !== a && (await this.emit("gotoPath", { path: e }), await t.router.value.push(e));
|
7032
7032
|
} else {
|
7033
7033
|
const a = unref(t.router.value.currentRoute).path;
|
7034
7034
|
e !== a && await t.router.value.push(e);
|
@@ -7333,18 +7333,18 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7333
7333
|
slots: r
|
7334
7334
|
}) {
|
7335
7335
|
if (e.kgMaxHeight < e.kgMinHeight) {
|
7336
|
-
const
|
7337
|
-
throw KgLogger.error(
|
7336
|
+
const v = "[KgResizable] kgMaxHeight \u4E0D\u80FD\u5C0F\u4E8E kgMinHeight.";
|
7337
|
+
throw KgLogger.error(v, {
|
7338
7338
|
kgMaxHeight: e.kgMaxHeight,
|
7339
7339
|
kgMinHeight: e.kgMinHeight
|
7340
|
-
}), new Error(
|
7340
|
+
}), new Error(v);
|
7341
7341
|
}
|
7342
7342
|
if (e.kgMaxWidth < e.kgMinWidth) {
|
7343
|
-
const
|
7344
|
-
throw KgLogger.error(
|
7343
|
+
const v = "[KgResizable] kgMaxWidth \u4E0D\u80FD\u5C0F\u4E8E kgMinWidth.";
|
7344
|
+
throw KgLogger.error(v, {
|
7345
7345
|
kgMaxWidth: e.kgMaxWidth,
|
7346
7346
|
kgMinWidth: e.kgMinWidth
|
7347
|
-
}), new Error(
|
7347
|
+
}), new Error(v);
|
7348
7348
|
}
|
7349
7349
|
let a = 0, n = 0, o = 0, i = 0, s = {
|
7350
7350
|
remove: () => {
|
@@ -7367,22 +7367,22 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7367
7367
|
};
|
7368
7368
|
}
|
7369
7369
|
}), u = computed(() => {
|
7370
|
-
let
|
7371
|
-
switch (e.kgClass && (
|
7370
|
+
let v = "";
|
7371
|
+
switch (e.kgClass && (v += `${e.kgClass} `), v += "kg-resizable", e.kgDisabled && (v += " kg-resizable--disabled"), e.kgType) {
|
7372
7372
|
case "left":
|
7373
|
-
|
7373
|
+
v += " kg-resizable--left";
|
7374
7374
|
break;
|
7375
7375
|
case "right":
|
7376
|
-
|
7376
|
+
v += " kg-resizable--right";
|
7377
7377
|
break;
|
7378
7378
|
case "top":
|
7379
|
-
|
7379
|
+
v += " kg-resizable--top";
|
7380
7380
|
break;
|
7381
7381
|
case "bottom":
|
7382
|
-
|
7382
|
+
v += " kg-resizable--bottom";
|
7383
7383
|
break;
|
7384
7384
|
}
|
7385
|
-
return
|
7385
|
+
return v;
|
7386
7386
|
});
|
7387
7387
|
function d() {
|
7388
7388
|
s.remove(), l.remove();
|
@@ -7390,51 +7390,51 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7390
7390
|
onUnmounted(() => {
|
7391
7391
|
d();
|
7392
7392
|
});
|
7393
|
-
const m = (
|
7393
|
+
const m = (v) => {
|
7394
7394
|
switch (e.kgType) {
|
7395
7395
|
case "top":
|
7396
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (
|
7396
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n - (v.pageY - i))));
|
7397
7397
|
break;
|
7398
7398
|
case "bottom":
|
7399
|
-
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (
|
7399
|
+
t("update:kgHeight", Math.min(e.kgMaxHeight, Math.max(e.kgMinHeight, n + (v.pageY - i))));
|
7400
7400
|
break;
|
7401
7401
|
case "left":
|
7402
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (
|
7402
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a - (v.pageX - o))));
|
7403
7403
|
break;
|
7404
7404
|
case "right":
|
7405
|
-
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (
|
7405
|
+
t("update:kgWidth", Math.min(e.kgMaxWidth, Math.max(e.kgMinWidth, a + (v.pageX - o))));
|
7406
7406
|
break;
|
7407
7407
|
}
|
7408
7408
|
};
|
7409
|
-
function v
|
7410
|
-
m(
|
7409
|
+
function b(v) {
|
7410
|
+
m(v);
|
7411
7411
|
}
|
7412
|
-
function C(
|
7413
|
-
m(
|
7412
|
+
function C(v) {
|
7413
|
+
m(v), d();
|
7414
7414
|
}
|
7415
|
-
function g(
|
7416
|
-
|
7415
|
+
function g(v) {
|
7416
|
+
v.stopPropagation(), v.preventDefault(), d(), !(v instanceof MouseEvent && v.which !== 1) && (o = v.pageX, i = v.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", b), l = _(document.documentElement, "mouseup", C));
|
7417
7417
|
}
|
7418
|
-
function _(
|
7419
|
-
return
|
7420
|
-
remove: () =>
|
7418
|
+
function _(v, k, T) {
|
7419
|
+
return v.addEventListener(k, T), {
|
7420
|
+
remove: () => v.removeEventListener(k, T)
|
7421
7421
|
};
|
7422
7422
|
}
|
7423
|
-
function
|
7424
|
-
|
7423
|
+
function y(v) {
|
7424
|
+
v.stopPropagation(), v.preventDefault();
|
7425
7425
|
}
|
7426
7426
|
return () => {
|
7427
|
-
var
|
7427
|
+
var v;
|
7428
7428
|
return createVNode("div", {
|
7429
7429
|
class: u.value,
|
7430
7430
|
style: c.value
|
7431
7431
|
}, [createVNode("div", {
|
7432
7432
|
class: "kg-resizable-handle",
|
7433
|
-
onClick:
|
7433
|
+
onClick: y,
|
7434
7434
|
onMousedown: g
|
7435
7435
|
}, [createVNode("div", {
|
7436
7436
|
class: "kg-resizable-handle-line"
|
7437
|
-
}, null)]), (
|
7437
|
+
}, null)]), (v = r.default) == null ? void 0 : v.call(r)]);
|
7438
7438
|
};
|
7439
7439
|
}
|
7440
7440
|
}), getProps$w = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_MODEL"), DI_FORM_REF = Symbol("DI_FORM_REF");
|
@@ -7586,15 +7586,15 @@ function createStore(e, t, r) {
|
|
7586
7586
|
_assignPluginFnProp: function(l, c) {
|
7587
7587
|
var u = this[c];
|
7588
7588
|
this[c] = function() {
|
7589
|
-
var m = slice(arguments, 0),
|
7589
|
+
var m = slice(arguments, 0), b = this;
|
7590
7590
|
function C() {
|
7591
7591
|
if (!!u)
|
7592
|
-
return each$6(arguments, function(_,
|
7593
|
-
m[
|
7594
|
-
}), u.apply(
|
7592
|
+
return each$6(arguments, function(_, y) {
|
7593
|
+
m[y] = _;
|
7594
|
+
}), u.apply(b, m);
|
7595
7595
|
}
|
7596
7596
|
var g = [C].concat(m);
|
7597
|
-
return l.apply(
|
7597
|
+
return l.apply(b, g);
|
7598
7598
|
};
|
7599
7599
|
},
|
7600
7600
|
_serialize: function(l) {
|
@@ -7631,10 +7631,10 @@ function createStore(e, t, r) {
|
|
7631
7631
|
var d = l.call(this);
|
7632
7632
|
if (!isObject(d))
|
7633
7633
|
throw new Error("Plugins must return an object of function properties");
|
7634
|
-
each$6(d, function(m,
|
7634
|
+
each$6(d, function(m, b) {
|
7635
7635
|
if (!isFunction(m))
|
7636
|
-
throw new Error("Bad plugin property: " +
|
7637
|
-
c._assignPluginFnProp(m,
|
7636
|
+
throw new Error("Bad plugin property: " + b + " from plugin " + l.name + ". Plugins should only return functions.");
|
7637
|
+
c._assignPluginFnProp(m, b);
|
7638
7638
|
});
|
7639
7639
|
}
|
7640
7640
|
},
|
@@ -8610,20 +8610,20 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8610
8610
|
varVariableInputs: u,
|
8611
8611
|
varPossibilities: d,
|
8612
8612
|
varButtons: m,
|
8613
|
-
varButtonConfig:
|
8613
|
+
varButtonConfig: b,
|
8614
8614
|
varSubmitConfig: C,
|
8615
8615
|
varSubmitFields: g,
|
8616
8616
|
varProfile: _,
|
8617
|
-
varProfileConfig:
|
8618
|
-
varGrid:
|
8617
|
+
varProfileConfig: y,
|
8618
|
+
varGrid: v,
|
8619
8619
|
varGridConfig: k
|
8620
8620
|
} = await GetAll({ params: { frm_id: e } });
|
8621
|
-
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e,
|
8621
|
+
this.varCatalogMap.set(e, s != null ? s : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, d != null ? d : []), this.varVariableConfigMap.set(e, c != null ? c : []), this.varVariableInputMap.set(e, u != null ? u : []), this.varButtonMap.set(e, transformVarButtons(m)), this.varButtonConfigMap.set(e, b != null ? b : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(g)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
|
8622
8622
|
varProfile: _ != null ? _ : null,
|
8623
8623
|
currentVarProfileMasterID: (a = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? a : null
|
8624
8624
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(k != null ? k : null)), this.varGridMap.set(e, {
|
8625
|
-
varGrid: transformVarGridDTO(
|
8626
|
-
currentVarGridMasterID: (i = (o = (n =
|
8625
|
+
varGrid: transformVarGridDTO(v),
|
8626
|
+
currentVarGridMasterID: (i = (o = (n = v == null ? void 0 : v.varGridMasters) == null ? void 0 : n.find((T) => T.def_flg === 1 || T.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? i : null
|
8627
8627
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
8628
8628
|
} catch (s) {
|
8629
8629
|
throw s;
|
@@ -8696,25 +8696,40 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8696
8696
|
!a || (a.width = String(r));
|
8697
8697
|
},
|
8698
8698
|
patchVarGridDetail(e, t, r) {
|
8699
|
-
|
8700
|
-
|
8701
|
-
|
8702
|
-
|
8703
|
-
|
8704
|
-
|
8705
|
-
|
8706
|
-
|
8707
|
-
|
8708
|
-
|
8709
|
-
l in o && (o[l] = c);
|
8699
|
+
return !e || !t ? Promise.resolve() : new Promise((a) => {
|
8700
|
+
const n = watch(
|
8701
|
+
() => this.isRetrievedMap.get(e),
|
8702
|
+
(o) => {
|
8703
|
+
if (o) {
|
8704
|
+
const i = this.getVarGridDetail(e, t);
|
8705
|
+
i && setTimeout(() => {
|
8706
|
+
n(), Object.entries(r).forEach(([s, l]) => {
|
8707
|
+
s in i && (i[s] = l);
|
8708
|
+
}), a();
|
8710
8709
|
});
|
8711
|
-
|
8712
|
-
|
8713
|
-
|
8714
|
-
|
8715
|
-
|
8716
|
-
|
8717
|
-
|
8710
|
+
}
|
8711
|
+
},
|
8712
|
+
{ immediate: !0 }
|
8713
|
+
);
|
8714
|
+
});
|
8715
|
+
},
|
8716
|
+
patchVarProfileDetail(e, t, r) {
|
8717
|
+
return !e || !t ? Promise.resolve() : new Promise((a) => {
|
8718
|
+
const n = watch(
|
8719
|
+
() => this.isRetrievedMap.get(e),
|
8720
|
+
(o) => {
|
8721
|
+
if (o) {
|
8722
|
+
const i = this.getVarProfileDetail(e, t);
|
8723
|
+
i && setTimeout(() => {
|
8724
|
+
n(), Object.entries(r).forEach(([s, l]) => {
|
8725
|
+
s in i && (i[s] = l);
|
8726
|
+
}), a();
|
8727
|
+
});
|
8728
|
+
}
|
8729
|
+
},
|
8730
|
+
{ immediate: !0 }
|
8731
|
+
);
|
8732
|
+
});
|
8718
8733
|
},
|
8719
8734
|
setVarPossibility(e, t, r) {
|
8720
8735
|
if (!e || !t)
|
@@ -8766,14 +8781,14 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8766
8781
|
function useKgVar(e, t, r = 0) {
|
8767
8782
|
var a, n;
|
8768
8783
|
try {
|
8769
|
-
let o = function(
|
8770
|
-
u.setIsCreating(c,
|
8771
|
-
}, i = function(
|
8772
|
-
u.setIsUpdating(c,
|
8773
|
-
}, s = function(
|
8774
|
-
u.setIsCopying(c,
|
8775
|
-
}, l = function(
|
8776
|
-
u.setIsDeleting(c,
|
8784
|
+
let o = function(q) {
|
8785
|
+
u.setIsCreating(c, q);
|
8786
|
+
}, i = function(q) {
|
8787
|
+
u.setIsUpdating(c, q);
|
8788
|
+
}, s = function(q) {
|
8789
|
+
u.setIsCopying(c, q);
|
8790
|
+
}, l = function(q) {
|
8791
|
+
u.setIsDeleting(c, q);
|
8777
8792
|
}, c = e || inject(KG_DI_FORM_ID, "");
|
8778
8793
|
if (!c)
|
8779
8794
|
throw new Error("useKgVar() | \u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
|
@@ -8783,23 +8798,23 @@ function useKgVar(e, t, r = 0) {
|
|
8783
8798
|
}), onUnmounted(() => {
|
8784
8799
|
u.leave(c);
|
8785
8800
|
}));
|
8786
|
-
const d = (
|
8787
|
-
var
|
8788
|
-
return (ne = (
|
8789
|
-
}), m = computed(() => u.isRetrieving(c)),
|
8790
|
-
var
|
8791
|
-
return (
|
8792
|
-
}),
|
8801
|
+
const d = (q) => computed(() => {
|
8802
|
+
var te, re, ne;
|
8803
|
+
return (ne = (re = (te = u.getVarCatalog(c, q)) == null ? void 0 : te.var_text) != null ? re : q) != null ? ne : "";
|
8804
|
+
}), m = computed(() => u.isRetrieving(c)), b = computed(() => u.isRetrievingVarProfileMaster(c)), C = computed(() => u.isRetrievingVarGridMaster(c)), g = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), v = computed(() => u.isUpdatingRequesting(c)), k = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), P = computed(() => u.isOtherRequesting(c)), I = 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)), L = computed(() => {
|
8805
|
+
var q, te;
|
8806
|
+
return (te = (q = D.value) == null ? void 0 : q.varProfileDetails) != null ? te : null;
|
8807
|
+
}), H = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), G = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
8793
8808
|
return {
|
8794
8809
|
formID: c,
|
8795
8810
|
store: u,
|
8796
8811
|
isRetrieving: m,
|
8797
|
-
isRetrievingVarProfileMaster:
|
8812
|
+
isRetrievingVarProfileMaster: b,
|
8798
8813
|
isRetrievingVarGridMaster: C,
|
8799
8814
|
isCreating: g,
|
8800
8815
|
isCreatingRequesting: _,
|
8801
|
-
isUpdating:
|
8802
|
-
isUpdatingRequesting:
|
8816
|
+
isUpdating: y,
|
8817
|
+
isUpdatingRequesting: v,
|
8803
8818
|
isCopying: k,
|
8804
8819
|
isCopyingRequesting: T,
|
8805
8820
|
isDeleting: M,
|
@@ -8808,18 +8823,18 @@ function useKgVar(e, t, r = 0) {
|
|
8808
8823
|
varButtons: I,
|
8809
8824
|
varButtonSearch: A,
|
8810
8825
|
varButtonCreate: w,
|
8811
|
-
varButtonUpdate:
|
8826
|
+
varButtonUpdate: U,
|
8812
8827
|
varButtonCopy: $,
|
8813
8828
|
varButtonDelete: V,
|
8814
8829
|
varProfileMasters: O,
|
8815
8830
|
currentVarProfileMaster: D,
|
8816
|
-
currentVarProfileMasterID:
|
8831
|
+
currentVarProfileMasterID: N,
|
8817
8832
|
currentVarProfileDetails: L,
|
8818
|
-
varGridConfig:
|
8819
|
-
varGridMasters:
|
8820
|
-
currentVarGridMaster:
|
8833
|
+
varGridConfig: H,
|
8834
|
+
varGridMasters: K,
|
8835
|
+
currentVarGridMaster: G,
|
8821
8836
|
systemVarGridDetails: Y,
|
8822
|
-
currentVarGridDetails:
|
8837
|
+
currentVarGridDetails: Q,
|
8823
8838
|
setIsCreating: o,
|
8824
8839
|
setIsUpdating: i,
|
8825
8840
|
setIsCopying: s,
|
@@ -8843,12 +8858,12 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8843
8858
|
}) {
|
8844
8859
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
8845
8860
|
const r = useKgVar(), a = computed(() => r.store.getVarSubmitConfig(r.formID)), n = computed(() => r.store.getVarProfileConfig(r.formID)), o = computed(() => r.store.getVarButtonConfig(r.formID)), i = computed(() => {
|
8846
|
-
var m,
|
8861
|
+
var m, b, C, g;
|
8847
8862
|
switch (!0) {
|
8848
8863
|
case r.isCreating.value:
|
8849
8864
|
return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
|
8850
8865
|
case r.isUpdating.value:
|
8851
|
-
return ((
|
8866
|
+
return ((b = a.value) == null ? void 0 : b.upt_flg) !== 0;
|
8852
8867
|
case r.isCopying.value:
|
8853
8868
|
return ((C = a.value) == null ? void 0 : C.cpy_flg) !== 0;
|
8854
8869
|
case r.isDeleting.value:
|
@@ -8870,8 +8885,8 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8870
8885
|
spinning: c.value
|
8871
8886
|
}, {
|
8872
8887
|
default: () => {
|
8873
|
-
var m,
|
8874
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (
|
8888
|
+
var m, b;
|
8889
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [l.value && createVNode(KgSearch, null, null), s.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (b = (m = e.kgSlots) == null ? void 0 : m.afterKgTable) == null ? void 0 : b.call(m), i.value && createVNode(KgSubmit, null, null)])];
|
8875
8890
|
}
|
8876
8891
|
});
|
8877
8892
|
}
|
@@ -8900,13 +8915,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8900
8915
|
return (_ = (g = u == null ? void 0 : u.value) == null ? void 0 : g.ret_fld) != null ? _ : "";
|
8901
8916
|
});
|
8902
8917
|
c.onRowDoubleClick(async () => (await C(), !1));
|
8903
|
-
function
|
8918
|
+
function b() {
|
8904
8919
|
r("update:visible", !1);
|
8905
8920
|
}
|
8906
8921
|
async function C() {
|
8907
|
-
var g, _,
|
8922
|
+
var g, _, y, v, k, T, M;
|
8908
8923
|
if (d.value) {
|
8909
|
-
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (
|
8924
|
+
const E = (_ = (g = c.selectedRows) == null ? void 0 : g.value) != null ? _ : [], P = (y = E.map((A) => A[m.value])) != null ? y : [];
|
8910
8925
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8911
8926
|
var_nam: i,
|
8912
8927
|
isMultiple: !0,
|
@@ -8920,7 +8935,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8920
8935
|
rows: E
|
8921
8936
|
}), r("update:visible", !1));
|
8922
8937
|
} else {
|
8923
|
-
const E = (T = (k = (
|
8938
|
+
const E = (T = (k = (v = c.selectedRows) == null ? void 0 : v.value) == null ? void 0 : k[0]) != null ? T : null, P = (M = E == null ? void 0 : E[m.value]) != null ? M : "";
|
8924
8939
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8925
8940
|
var_nam: i,
|
8926
8941
|
isMultiple: !1,
|
@@ -8945,7 +8960,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8945
8960
|
disabled: ((_ = (g = c.selectedRows.value) == null ? void 0 : g.length) != null ? _ : 0) === 0
|
8946
8961
|
},
|
8947
8962
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
8948
|
-
onCancel:
|
8963
|
+
onCancel: b,
|
8949
8964
|
onOk: C
|
8950
8965
|
}, {
|
8951
8966
|
default: () => [createVNode(KgVar, null, null)]
|
@@ -9036,7 +9051,7 @@ function _useRules(e) {
|
|
9036
9051
|
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));
|
9037
9052
|
return {
|
9038
9053
|
rules: computed(() => {
|
9039
|
-
var l, c, u, d, m,
|
9054
|
+
var l, c, u, d, m, b, C, g;
|
9040
9055
|
let s = [];
|
9041
9056
|
switch (e.kgContext) {
|
9042
9057
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9074,13 +9089,13 @@ function _useRules(e) {
|
|
9074
9089
|
}
|
9075
9090
|
break;
|
9076
9091
|
}
|
9077
|
-
switch ((
|
9092
|
+
switch ((b = n.value) == null ? void 0 : b.data_type) {
|
9078
9093
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9079
9094
|
const _ = (C = n.value) == null ? void 0 : C.min;
|
9080
9095
|
isNil(_) || (((g = n.value) == null ? void 0 : g.min_include_flg) === 1 ? s.push({
|
9081
|
-
validator: (
|
9096
|
+
validator: (y, v) => v == null || v === "" || typeof v == "string" && v.trim() === "" ? Promise.resolve() : Number(v) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
9082
9097
|
}) : s.push({
|
9083
|
-
validator: (
|
9098
|
+
validator: (y, v) => v == null || v === "" || typeof v == "string" && v.trim() === "" ? Promise.resolve() : Number(v) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
9084
9099
|
}));
|
9085
9100
|
break;
|
9086
9101
|
}
|
@@ -9090,8 +9105,8 @@ function _useRules(e) {
|
|
9090
9105
|
}
|
9091
9106
|
function useKgFormItem(e) {
|
9092
9107
|
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(() => {
|
9093
|
-
var
|
9094
|
-
const s = (
|
9108
|
+
var b, C, g, _, y, v;
|
9109
|
+
const s = (b = n.value) == null ? void 0 : b.ctrl_typ, l = (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 = (v = n.value) == null ? void 0 : v.del_ctrl_typ;
|
9095
9110
|
switch (r) {
|
9096
9111
|
case KG_FORM_CONTEXT.SEARCH:
|
9097
9112
|
return l || s;
|
@@ -9109,9 +9124,9 @@ function useKgFormItem(e) {
|
|
9109
9124
|
}
|
9110
9125
|
return s;
|
9111
9126
|
}), i = computed(() => {
|
9112
|
-
var C, g, _,
|
9127
|
+
var C, g, _, y, v, k;
|
9113
9128
|
let s;
|
9114
|
-
const l = (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 = (
|
9129
|
+
const l = (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 = (v = n.value) == null ? void 0 : v.cpy_ctrl_prop, b = (k = n.value) == null ? void 0 : k.del_ctrl_prop;
|
9115
9130
|
switch (r) {
|
9116
9131
|
case KG_FORM_CONTEXT.SEARCH:
|
9117
9132
|
s = c || l;
|
@@ -9128,7 +9143,7 @@ function useKgFormItem(e) {
|
|
9128
9143
|
s = m || l;
|
9129
9144
|
break;
|
9130
9145
|
case a.isDeleting.value:
|
9131
|
-
s =
|
9146
|
+
s = b || l;
|
9132
9147
|
break;
|
9133
9148
|
}
|
9134
9149
|
}
|
@@ -9149,24 +9164,24 @@ function useKgFormItemSelect() {
|
|
9149
9164
|
}), l = computed(() => {
|
9150
9165
|
var m;
|
9151
9166
|
let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
|
9152
|
-
return d = mapValues(d, (
|
9167
|
+
return d = mapValues(d, (b) => {
|
9153
9168
|
var g, _;
|
9154
|
-
let C =
|
9155
|
-
if (typeof
|
9156
|
-
let
|
9157
|
-
if (
|
9158
|
-
const k =
|
9159
|
-
|
9169
|
+
let C = b;
|
9170
|
+
if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
|
9171
|
+
let y = b.slice(1, -1), v = "";
|
9172
|
+
if (y.includes(".")) {
|
9173
|
+
const k = y.split(".");
|
9174
|
+
y = k[0], v = k[1];
|
9160
9175
|
}
|
9161
|
-
t.value &&
|
9176
|
+
t.value && y in t.value && (v ? C = (_ = (g = t.value[`${y}_obj`]) == null ? void 0 : g[v]) != null ? _ : void 0 : C = t.value[y], C || (C = "__KG__FORM_ITEM_SELECT__PID"));
|
9162
9177
|
}
|
9163
9178
|
return C;
|
9164
9179
|
}), d;
|
9165
9180
|
});
|
9166
9181
|
async function c() {
|
9167
|
-
var
|
9182
|
+
var y, v, k, T, M, E, P, I;
|
9168
9183
|
let d = [];
|
9169
|
-
const m = (
|
9184
|
+
const m = (y = a.value) == null ? void 0 : y.cmd, b = (k = (v = a.value) == null ? void 0 : v.cmd_method) != null ? k : "GET", C = (M = (T = a.value) == null ? void 0 : T.val_clm) != null ? M : "", g = (P = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? P : "";
|
9170
9185
|
if (!m || !C || !g) {
|
9171
9186
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9172
9187
|
frm_id: r.formID,
|
@@ -9181,7 +9196,7 @@ function useKgFormItemSelect() {
|
|
9181
9196
|
try {
|
9182
9197
|
_ = await ((I = httpClient()) == null ? void 0 : I.request({
|
9183
9198
|
url: m,
|
9184
|
-
method:
|
9199
|
+
method: b,
|
9185
9200
|
params: l.value
|
9186
9201
|
}));
|
9187
9202
|
} catch {
|
@@ -9211,11 +9226,11 @@ function useKgFormItemSelect() {
|
|
9211
9226
|
i.value = d;
|
9212
9227
|
}
|
9213
9228
|
function u(d) {
|
9214
|
-
var C, g, _,
|
9229
|
+
var C, g, _, y, v;
|
9215
9230
|
if (!d)
|
9216
9231
|
return [];
|
9217
|
-
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "",
|
9218
|
-
switch (
|
9232
|
+
const m = (g = (C = a.value) == null ? void 0 : C.val_clm) != null ? g : "", b = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
|
9233
|
+
switch (b) {
|
9219
9234
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9220
9235
|
d.forEach((k) => {
|
9221
9236
|
k[m] = String(k[m]);
|
@@ -9224,7 +9239,7 @@ function useKgFormItemSelect() {
|
|
9224
9239
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9225
9240
|
d.forEach((k) => {
|
9226
9241
|
let T = Number(k[m]);
|
9227
|
-
Number.isNaN(T) && (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${
|
9242
|
+
Number.isNaN(T) && (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${b} \u7C7B\u578B`, {
|
9228
9243
|
frm_id: r.formID,
|
9229
9244
|
var_nam: e,
|
9230
9245
|
VarPossibility: a.value
|
@@ -9234,7 +9249,7 @@ function useKgFormItemSelect() {
|
|
9234
9249
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9235
9250
|
d.forEach((k) => {
|
9236
9251
|
let T;
|
9237
|
-
String(k[m]).toLowerCase() === "true" ? T = !0 : String(k[m]).toLowerCase() === "false" ? T = !1 : (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${
|
9252
|
+
String(k[m]).toLowerCase() === "true" ? T = !0 : String(k[m]).toLowerCase() === "false" ? T = !1 : (T = k[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${k[m]} \u8F6C\u6362\u4E3A ${b} \u7C7B\u578B`, {
|
9238
9253
|
frm_id: r.formID,
|
9239
9254
|
var_nam: e,
|
9240
9255
|
VarPossibility: a.value
|
@@ -9246,7 +9261,7 @@ function useKgFormItemSelect() {
|
|
9246
9261
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9247
9262
|
{
|
9248
9263
|
const k = o;
|
9249
|
-
if ((
|
9264
|
+
if ((v = k.value) != null && v.excludeValues)
|
9250
9265
|
return d.filter((T) => {
|
9251
9266
|
var M;
|
9252
9267
|
return !((M = k.value.excludeValues) != null && M.includes(T[m]));
|
@@ -9285,22 +9300,22 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9285
9300
|
datas: c,
|
9286
9301
|
readDatas: u
|
9287
9302
|
} = useKgFormItemSelect(), d = ref(!1), m = ref(!1);
|
9288
|
-
watch(s, () =>
|
9303
|
+
watch(s, () => b(), {
|
9289
9304
|
immediate: !0
|
9290
|
-
}), watch([() => e.value, c], ([_,
|
9291
|
-
const
|
9292
|
-
if (
|
9293
|
-
const k = intersection$1(_,
|
9294
|
-
if (k.length <
|
9305
|
+
}), watch([() => e.value, c], ([_, y]) => {
|
9306
|
+
const v = get(_, "length", 0);
|
9307
|
+
if (v > 0 && y.length > 0) {
|
9308
|
+
const k = intersection$1(_, y == null ? void 0 : y.map((T) => T[l.value]));
|
9309
|
+
if (k.length < v) {
|
9295
9310
|
r("update:value", k);
|
9296
9311
|
return;
|
9297
9312
|
}
|
9298
9313
|
}
|
9299
9314
|
switch (!0) {
|
9300
|
-
case (
|
9315
|
+
case (v > 0 && v === y.length):
|
9301
9316
|
d.value = !0, m.value = !1;
|
9302
9317
|
break;
|
9303
|
-
case (
|
9318
|
+
case (v > 0 && v !== y.length):
|
9304
9319
|
d.value = !1, m.value = !0;
|
9305
9320
|
break;
|
9306
9321
|
default:
|
@@ -9310,25 +9325,25 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9310
9325
|
}, {
|
9311
9326
|
immediate: !0
|
9312
9327
|
});
|
9313
|
-
async function
|
9314
|
-
var _,
|
9315
|
-
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
9328
|
+
async function b() {
|
9329
|
+
var _, y;
|
9330
|
+
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((v) => v[l.value]), e.value)));
|
9316
9331
|
}
|
9317
9332
|
function C(_) {
|
9318
|
-
var
|
9319
|
-
_.target.checked ? g((
|
9333
|
+
var y, v, k;
|
9334
|
+
_.target.checked ? g((v = (y = c.value) == null ? void 0 : y.map((T) => T[l.value])) != null ? v : []) : g([]), m.value = !1, (k = n.value) == null || k.validate(e.kgVarName);
|
9320
9335
|
}
|
9321
9336
|
function g(_) {
|
9322
9337
|
r("update:value", _), r("kgChange", _);
|
9323
9338
|
}
|
9324
9339
|
return () => {
|
9325
|
-
let _,
|
9340
|
+
let _, y;
|
9326
9341
|
return createVNode("div", {
|
9327
9342
|
class: "kg-form-item-checkbox-group"
|
9328
9343
|
}, [createVNode(Form.ItemRest, null, {
|
9329
9344
|
default: () => [createVNode(Checkbox, {
|
9330
9345
|
checked: d.value,
|
9331
|
-
"onUpdate:checked": (
|
9346
|
+
"onUpdate:checked": (v) => d.value = v,
|
9332
9347
|
indeterminate: m.value,
|
9333
9348
|
onChange: C
|
9334
9349
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
@@ -9340,23 +9355,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9340
9355
|
}, {
|
9341
9356
|
default: () => [createVNode(Row, {
|
9342
9357
|
gutter: 12
|
9343
|
-
}, _isSlot$a(
|
9358
|
+
}, _isSlot$a(y = c.value.map((v) => {
|
9344
9359
|
var k, T;
|
9345
9360
|
return createVNode(Col, {
|
9346
9361
|
span: (T = (k = o.value) == null ? void 0 : k.span) != null ? T : 24
|
9347
9362
|
}, {
|
9348
9363
|
default: () => [createVNode(Checkbox, {
|
9349
|
-
value:
|
9350
|
-
"kg-value":
|
9364
|
+
value: v[l.value],
|
9365
|
+
"kg-value": v[l.value]
|
9351
9366
|
}, {
|
9352
9367
|
default: () => {
|
9353
9368
|
var M, E;
|
9354
|
-
return [
|
9369
|
+
return [v[(E = (M = i.value) == null ? void 0 : M.lbl_clm) != null ? E : ""]];
|
9355
9370
|
}
|
9356
9371
|
})]
|
9357
9372
|
});
|
9358
|
-
})) ?
|
9359
|
-
default: () => [
|
9373
|
+
})) ? y : {
|
9374
|
+
default: () => [y]
|
9360
9375
|
})]
|
9361
9376
|
})]);
|
9362
9377
|
};
|
@@ -9509,9 +9524,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9509
9524
|
default: () => [createVNode(Row, {
|
9510
9525
|
gutter: 12
|
9511
9526
|
}, _isSlot$9(d = s.value.map((m) => {
|
9512
|
-
var
|
9527
|
+
var b, C;
|
9513
9528
|
return createVNode(Col, {
|
9514
|
-
span: (C = (
|
9529
|
+
span: (C = (b = a.value) == null ? void 0 : b.span) != null ? C : 24
|
9515
9530
|
}, {
|
9516
9531
|
default: () => [createVNode(Radio, {
|
9517
9532
|
value: m[i.value],
|
@@ -9549,18 +9564,18 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9549
9564
|
});
|
9550
9565
|
async function c() {
|
9551
9566
|
var m;
|
9552
|
-
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((
|
9567
|
+
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((b) => b[i.value] === e.value) || r("update:value", void 0));
|
9553
9568
|
}
|
9554
9569
|
function u(m) {
|
9555
9570
|
var C;
|
9556
|
-
const
|
9557
|
-
r("kgSelectChange",
|
9571
|
+
const b = (C = toRaw(s.value.find((g) => g[i.value] === m))) != null ? C : null;
|
9572
|
+
r("kgSelectChange", b), a.value[`${e.kgVarName}_obj`] = b;
|
9558
9573
|
}
|
9559
9574
|
function d(m) {
|
9560
9575
|
r("update:value", m), r("kgChange", m);
|
9561
9576
|
}
|
9562
9577
|
return () => {
|
9563
|
-
var m,
|
9578
|
+
var m, b;
|
9564
9579
|
return createVNode(Select, {
|
9565
9580
|
value: e.value,
|
9566
9581
|
"onUpdate:value": d,
|
@@ -9574,7 +9589,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9574
9589
|
style: "width: 100%",
|
9575
9590
|
"kg-cmd": (m = n.value) == null ? void 0 : m.cmd,
|
9576
9591
|
"kg-val-clm": i.value,
|
9577
|
-
"kg-lbl-clm": (
|
9592
|
+
"kg-lbl-clm": (b = n.value) == null ? void 0 : b.lbl_clm
|
9578
9593
|
}, {
|
9579
9594
|
default: () => s.value.map((C) => createVNode(Select.Option, {
|
9580
9595
|
"kg-value": C[i.value],
|
@@ -9650,13 +9665,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9650
9665
|
var_nam: I,
|
9651
9666
|
model: A,
|
9652
9667
|
isMultiple: w,
|
9653
|
-
value:
|
9668
|
+
value: U,
|
9654
9669
|
values: $
|
9655
9670
|
}) => {
|
9656
9671
|
var V;
|
9657
9672
|
switch (I) {
|
9658
9673
|
case e.kgVarName:
|
9659
|
-
A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] =
|
9674
|
+
A.value && (w ? A.value[e.kgVarName] = $ : A.value[e.kgVarName] = U), (V = n.value) == null || V.validate([e.kgVarName]);
|
9660
9675
|
break;
|
9661
9676
|
}
|
9662
9677
|
return !1;
|
@@ -9665,8 +9680,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9665
9680
|
rules: d
|
9666
9681
|
} = _useRules(e), {
|
9667
9682
|
controlType: m
|
9668
|
-
} = useKgFormItem(e),
|
9669
|
-
var A, w,
|
9683
|
+
} = useKgFormItem(e), b = computed(() => {
|
9684
|
+
var A, w, U, $, V;
|
9670
9685
|
if (o.isRetrieving.value)
|
9671
9686
|
return !0;
|
9672
9687
|
let I = !1;
|
@@ -9683,7 +9698,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9683
9698
|
I = ((w = u.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
9684
9699
|
break;
|
9685
9700
|
case o.isUpdating.value:
|
9686
|
-
I = ((
|
9701
|
+
I = ((U = u.value) == null ? void 0 : U.upt_ena_flg) === 0;
|
9687
9702
|
break;
|
9688
9703
|
case o.isCopying.value:
|
9689
9704
|
I = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
|
@@ -9696,7 +9711,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9696
9711
|
}
|
9697
9712
|
return I;
|
9698
9713
|
}), C = computed(() => {
|
9699
|
-
var A, w,
|
9714
|
+
var A, w, U, $;
|
9700
9715
|
let I = " ";
|
9701
9716
|
if (e.kgPlaceholder)
|
9702
9717
|
I = e.kgPlaceholder;
|
@@ -9706,12 +9721,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9706
9721
|
I = o.t((w = (A = c.value) == null ? void 0 : A.placeholder) != null ? w : " ").value;
|
9707
9722
|
break;
|
9708
9723
|
case KG_FORM_CONTEXT.SUBMIT:
|
9709
|
-
I = o.t(($ = (
|
9724
|
+
I = o.t(($ = (U = u.value) == null ? void 0 : U.placeholder) != null ? $ : " ").value;
|
9710
9725
|
break;
|
9711
9726
|
}
|
9712
9727
|
return I;
|
9713
9728
|
}), g = computed(() => {
|
9714
|
-
var A, w,
|
9729
|
+
var A, w, U, $, V, O, D, N, L, H;
|
9715
9730
|
let I = 6;
|
9716
9731
|
if (e.kgSpan !== void 0)
|
9717
9732
|
I = e.kgSpan;
|
@@ -9723,24 +9738,24 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9723
9738
|
case KG_FORM_CONTEXT.SUBMIT:
|
9724
9739
|
switch (!0) {
|
9725
9740
|
case o.isCreating.value:
|
9726
|
-
I = ($ = (
|
9741
|
+
I = ($ = (U = u.value) == null ? void 0 : U.crt_width) != null ? $ : 6;
|
9727
9742
|
break;
|
9728
9743
|
case o.isUpdating.value:
|
9729
9744
|
I = (O = (V = u.value) == null ? void 0 : V.upt_width) != null ? O : 6;
|
9730
9745
|
break;
|
9731
9746
|
case o.isCopying.value:
|
9732
|
-
I = (
|
9747
|
+
I = (N = (D = u.value) == null ? void 0 : D.cpy_width) != null ? N : 6;
|
9733
9748
|
break;
|
9734
9749
|
case o.isDeleting.value:
|
9735
|
-
I = (
|
9750
|
+
I = (H = (L = u.value) == null ? void 0 : L.del_width) != null ? H : 6;
|
9736
9751
|
break;
|
9737
9752
|
}
|
9738
9753
|
}
|
9739
9754
|
return Math.min(24, Math.max(1, I));
|
9740
9755
|
}), _ = computed(() => {
|
9741
|
-
var
|
9756
|
+
var U, $;
|
9742
9757
|
const I = get(T.value, "$el.parentElement");
|
9743
|
-
if (I && !((
|
9758
|
+
if (I && !((U = I.classList) != null && U.contains("ant-row")))
|
9744
9759
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9745
9760
|
let A = {};
|
9746
9761
|
const w = Math.abs(Number.parseInt(($ = get(T.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
|
@@ -9748,8 +9763,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9748
9763
|
paddingLeft: `${w}px !important`,
|
9749
9764
|
paddingRight: `${w}px !important`
|
9750
9765
|
}), A;
|
9751
|
-
}),
|
9752
|
-
var A, w,
|
9766
|
+
}), y = computed(() => {
|
9767
|
+
var A, w, U, $;
|
9753
9768
|
let I = "kg-form-item";
|
9754
9769
|
switch (s.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
9755
9770
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9762,7 +9777,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9762
9777
|
case KG_FORM_CONTEXT.SUBMIT:
|
9763
9778
|
switch (!0) {
|
9764
9779
|
case (o.isCreating.value && ((w = u.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
9765
|
-
case (o.isUpdating.value && ((
|
9780
|
+
case (o.isUpdating.value && ((U = u.value) == null ? void 0 : U.upt_vis_flg) === 0):
|
9766
9781
|
case (o.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
|
9767
9782
|
I += " kg-form-item--invisible";
|
9768
9783
|
break;
|
@@ -9770,7 +9785,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9770
9785
|
break;
|
9771
9786
|
}
|
9772
9787
|
return I;
|
9773
|
-
}),
|
9788
|
+
}), v = computed(() => {
|
9774
9789
|
var A;
|
9775
9790
|
const I = {
|
9776
9791
|
...e,
|
@@ -9779,7 +9794,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9779
9794
|
a.value && (a.value[e.kgVarName] = w);
|
9780
9795
|
},
|
9781
9796
|
kgPlaceholder: C.value,
|
9782
|
-
kgDisabled:
|
9797
|
+
kgDisabled: b.value,
|
9783
9798
|
id: k.value
|
9784
9799
|
};
|
9785
9800
|
switch (m.value) {
|
@@ -9811,7 +9826,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9811
9826
|
if (t.control) {
|
9812
9827
|
const I = {
|
9813
9828
|
varName: e.kgVarName,
|
9814
|
-
props:
|
9829
|
+
props: v,
|
9815
9830
|
model: a,
|
9816
9831
|
varVariableConfig: l,
|
9817
9832
|
varProfileDetail: c,
|
@@ -9821,31 +9836,31 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9821
9836
|
}
|
9822
9837
|
switch (m.value) {
|
9823
9838
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
9824
|
-
return createVNode(KgFormItemInputNumber,
|
9839
|
+
return createVNode(KgFormItemInputNumber, v.value, null);
|
9825
9840
|
case KG_FORM_ITEM_TYPE.TEXT_AREA:
|
9826
|
-
return createVNode(KgFormItemTextArea,
|
9841
|
+
return createVNode(KgFormItemTextArea, v.value, null);
|
9827
9842
|
case KG_FORM_ITEM_TYPE.SELECT:
|
9828
|
-
return createVNode(KgFormItemSelect,
|
9843
|
+
return createVNode(KgFormItemSelect, v.value, null);
|
9829
9844
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
9830
|
-
return createVNode(KgFormItemSwitch,
|
9845
|
+
return createVNode(KgFormItemSwitch, v.value, null);
|
9831
9846
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
9832
|
-
return createVNode(KgFormItemCheckbox,
|
9847
|
+
return createVNode(KgFormItemCheckbox, v.value, null);
|
9833
9848
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9834
|
-
return createVNode(KgFormItemCheckboxGroup,
|
9849
|
+
return createVNode(KgFormItemCheckboxGroup, v.value, null);
|
9835
9850
|
case KG_FORM_ITEM_TYPE.RADIO_GROUP:
|
9836
|
-
return createVNode(KgFormItemRadioGroup,
|
9851
|
+
return createVNode(KgFormItemRadioGroup, v.value, null);
|
9837
9852
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
9838
|
-
return createVNode(KgFormItemDate,
|
9853
|
+
return createVNode(KgFormItemDate, v.value, null);
|
9839
9854
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
9840
|
-
return createVNode(KgFormItemDate,
|
9855
|
+
return createVNode(KgFormItemDate, v.value, null);
|
9841
9856
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
9842
|
-
return createVNode(KgFormItemDate,
|
9857
|
+
return createVNode(KgFormItemDate, v.value, null);
|
9843
9858
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
9844
|
-
return createVNode(KgFormItemDateRange,
|
9859
|
+
return createVNode(KgFormItemDateRange, v.value, null);
|
9845
9860
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
9846
|
-
return createVNode(KgFormItemDateRange,
|
9861
|
+
return createVNode(KgFormItemDateRange, v.value, null);
|
9847
9862
|
default:
|
9848
|
-
return createVNode(KgFormItemInput,
|
9863
|
+
return createVNode(KgFormItemInput, v.value, null);
|
9849
9864
|
}
|
9850
9865
|
}
|
9851
9866
|
function E() {
|
@@ -9857,7 +9872,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9857
9872
|
var I;
|
9858
9873
|
return !s.value || !((I = s.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
9859
9874
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
9860
|
-
kgDisabled:
|
9875
|
+
kgDisabled: b.value,
|
9861
9876
|
kgLookupID: s.value.lkp_id
|
9862
9877
|
}, null)]
|
9863
9878
|
});
|
@@ -9867,7 +9882,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9867
9882
|
return o.isRetrieving.value ? null : createVNode(Col, {
|
9868
9883
|
ref: T,
|
9869
9884
|
span: g.value,
|
9870
|
-
class:
|
9885
|
+
class: y.value,
|
9871
9886
|
style: _.value,
|
9872
9887
|
"kg-frm_id": o.formID,
|
9873
9888
|
"kg-var_nam": e.kgVarName,
|
@@ -9900,10 +9915,6 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9900
9915
|
...e
|
9901
9916
|
}));
|
9902
9917
|
return provide(DI_FORM_MODEL, computed(() => e.model)), provide(DI_FORM_REF, n), r({
|
9903
|
-
resetFields(i) {
|
9904
|
-
var s;
|
9905
|
-
return (s = n.value) == null ? void 0 : s.resetFields(i);
|
9906
|
-
},
|
9907
9918
|
clearValidate(i) {
|
9908
9919
|
var s;
|
9909
9920
|
return (s = n.value) == null ? void 0 : s.clearValidate(i);
|
@@ -10207,14 +10218,14 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10207
10218
|
}).bind(null, pinia())), store$5);
|
10208
10219
|
function useKgSubmit(e) {
|
10209
10220
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
10210
|
-
var _,
|
10221
|
+
var _, y, v, k, T;
|
10211
10222
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
10212
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (
|
10223
|
+
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, b = (v = a.value) == null ? void 0 : v.upt_display_type, C = (k = a.value) == null ? void 0 : k.cpy_display_type, g = (T = a.value) == null ? void 0 : T.del_display_type;
|
10213
10224
|
switch (!0) {
|
10214
10225
|
case (t.isCreating.value && (m === c || !m && d === c)):
|
10215
10226
|
l = c;
|
10216
10227
|
break;
|
10217
|
-
case (t.isUpdating.value && (
|
10228
|
+
case (t.isUpdating.value && (b === c || !b && d === c)):
|
10218
10229
|
l = c;
|
10219
10230
|
break;
|
10220
10231
|
case (t.isCopying.value && (C === c || !C && d === c)):
|
@@ -10228,7 +10239,7 @@ function useKgSubmit(e) {
|
|
10228
10239
|
case (t.isCreating.value && (m === u || !m && d === u)):
|
10229
10240
|
l = u;
|
10230
10241
|
break;
|
10231
|
-
case (t.isUpdating.value && (
|
10242
|
+
case (t.isUpdating.value && (b === u || !b && d === u)):
|
10232
10243
|
l = u;
|
10233
10244
|
break;
|
10234
10245
|
case (t.isCopying.value && (C === u || !C && d === u)):
|
@@ -10280,8 +10291,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10280
10291
|
}) => {
|
10281
10292
|
const u = o.store.getVarSubmitConfig(o.formID);
|
10282
10293
|
return s = watch(c, (d) => {
|
10283
|
-
var m,
|
10284
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (
|
10294
|
+
var m, b, C, g, _, y, v, k, T, M, E, P;
|
10295
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (b = u == null ? void 0 : u.resizable_flg) != null ? b : 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 = (v = u == null ? void 0 : u.min_width) != null ? v : DEFAULT_MIN_WIDTH, d.dft_width = (k = u == null ? void 0 : u.dft_width) != null ? k : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (M = u == null ? void 0 : u.label_col) != null ? M : 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);
|
10285
10296
|
}, {
|
10286
10297
|
immediate: !0
|
10287
10298
|
}), !1;
|
@@ -10327,12 +10338,12 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10327
10338
|
function m() {
|
10328
10339
|
u.value = !0;
|
10329
10340
|
}
|
10330
|
-
function
|
10341
|
+
function b() {
|
10331
10342
|
r("kgCancel");
|
10332
10343
|
}
|
10333
10344
|
function C() {
|
10334
|
-
var
|
10335
|
-
return e.kgShowFullscreenButton === !1 || ((
|
10345
|
+
var y;
|
10346
|
+
return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
10336
10347
|
onClick: d,
|
10337
10348
|
class: "kg-submit--btn-fullscreen"
|
10338
10349
|
}, {
|
@@ -10354,7 +10365,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10354
10365
|
return createVNode(Button, {
|
10355
10366
|
disabled: c.value || l.value,
|
10356
10367
|
class: "kg-submit--btn-close",
|
10357
|
-
onClick:
|
10368
|
+
onClick: b
|
10358
10369
|
}, {
|
10359
10370
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
10360
10371
|
});
|
@@ -10364,7 +10375,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10364
10375
|
}), 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;
|
10365
10376
|
function _useFormModel$1() {
|
10366
10377
|
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)), i = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), s = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), l = computed(() => {
|
10367
|
-
var u, d, m,
|
10378
|
+
var u, d, m, b;
|
10368
10379
|
switch (!0) {
|
10369
10380
|
case t.isCreating.value:
|
10370
10381
|
return (u = n.value) != null ? u : [];
|
@@ -10373,33 +10384,34 @@ function _useFormModel$1() {
|
|
10373
10384
|
case t.isCopying.value:
|
10374
10385
|
return (m = i.value) != null ? m : [];
|
10375
10386
|
case t.isDeleting.value:
|
10376
|
-
return (
|
10387
|
+
return (b = s.value) != null ? b : [];
|
10377
10388
|
}
|
10378
10389
|
return [];
|
10379
10390
|
}), c = ref({});
|
10380
10391
|
return watch(l, (u) => {
|
10381
|
-
if (c.value = {}, u != null && u.length) {
|
10382
|
-
|
10383
|
-
|
10384
|
-
var C, g, _, b, y, k, T, M;
|
10385
|
-
const v = (C = m.var_nam) != null ? C : "";
|
10386
|
-
switch (c.value[v] = void 0, !0) {
|
10387
|
-
case t.isCreating.value:
|
10388
|
-
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
10389
|
-
break;
|
10390
|
-
case t.isUpdating.value:
|
10391
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (b = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[v]) != null ? b : void 0, "U");
|
10392
|
-
break;
|
10393
|
-
case t.isCopying.value:
|
10394
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (k = (y = m.cpy_dft_val) != null ? y : d == null ? void 0 : d[v]) != null ? k : void 0, "CP");
|
10395
|
-
break;
|
10396
|
-
case t.isDeleting.value:
|
10397
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? M : void 0, "D");
|
10398
|
-
break;
|
10399
|
-
}
|
10400
|
-
});
|
10392
|
+
if (c.value = {}, !(u != null && u.length)) {
|
10393
|
+
a.store.setModel(t.formID, c.value);
|
10394
|
+
return;
|
10401
10395
|
}
|
10402
|
-
|
10396
|
+
const d = r.selectedRow.value;
|
10397
|
+
u.forEach((m) => {
|
10398
|
+
var C, g, _, y, v, k, T, M;
|
10399
|
+
const b = (C = m.var_nam) != null ? C : "";
|
10400
|
+
switch (c.value[b] = void 0, !0) {
|
10401
|
+
case t.isCreating.value:
|
10402
|
+
c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (g = m.crt_dft_val) != null ? g : void 0, "C");
|
10403
|
+
break;
|
10404
|
+
case t.isUpdating.value:
|
10405
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (y = (_ = m.upt_dft_val) != null ? _ : d == null ? void 0 : d[b]) != null ? y : void 0, "U");
|
10406
|
+
break;
|
10407
|
+
case t.isCopying.value:
|
10408
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (k = (v = m.cpy_dft_val) != null ? v : d == null ? void 0 : d[b]) != null ? k : void 0, "CP");
|
10409
|
+
break;
|
10410
|
+
case t.isDeleting.value:
|
10411
|
+
c.value.id = d == null ? void 0 : d.id, c.value[b] = KgVarUtil.transformValueByControlType(t.formID, b, e, (M = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[b]) != null ? M : void 0, "D");
|
10412
|
+
break;
|
10413
|
+
}
|
10414
|
+
}), a.store.setModel(t.formID, c.value);
|
10403
10415
|
}, {
|
10404
10416
|
immediate: !0
|
10405
10417
|
}), {
|
@@ -10467,9 +10479,9 @@ function _useClass(e, t) {
|
|
10467
10479
|
const r = inject(DI_KG_VAR__KG_PROPS, null), a = useKgVar(), n = useKgSubmit(), o = computed(() => a.store.getVarSubmitConfig(a.formID)), i = computed(() => a.store.getVarSubmitFieldsForDeleteKey(a.formID));
|
10468
10480
|
return {
|
10469
10481
|
getClass: computed(() => {
|
10470
|
-
var c, u, d, m,
|
10482
|
+
var c, u, d, m, b, C, g;
|
10471
10483
|
let l = "kg-submit";
|
10472
|
-
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (
|
10484
|
+
return t.isFullscreen && (l += " kg-submit--fullscreen"), ((c = o.value) == null ? void 0 : c.responsive_flg) !== 0 && (l += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? l += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (l += " kg-submit--table"), a.isDeleting.value && ((d = (u = i.value) == null ? void 0 : u.length) != null ? d : 0) === 0 && (l += " kg-submit--delete-message"), (b = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && b.kgClass ? l += ` ${(g = (C = r == null ? void 0 : r.value) == null ? void 0 : C.KgSubmit) == null ? void 0 : g.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
10473
10485
|
})
|
10474
10486
|
};
|
10475
10487
|
}
|
@@ -10477,9 +10489,9 @@ function _useLayout() {
|
|
10477
10489
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
10478
10490
|
return {
|
10479
10491
|
getLayout: computed(() => {
|
10480
|
-
var c, u, d, m,
|
10492
|
+
var c, u, d, m, b;
|
10481
10493
|
let a = "vertical";
|
10482
|
-
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, l = (
|
10494
|
+
const n = (c = t.value) == null ? void 0 : c.layout, o = (u = t.value) == null ? void 0 : u.crt_layout, i = (d = t.value) == null ? void 0 : d.upt_layout, s = (m = t.value) == null ? void 0 : m.cpy_layout, l = (b = t.value) == null ? void 0 : b.del_layout;
|
10483
10495
|
switch (!0) {
|
10484
10496
|
case (e.isCreating.value && (o === "horizontal" || !o && n === "horizontal")):
|
10485
10497
|
a = "horizontal";
|
@@ -10502,10 +10514,10 @@ function _useDefaultWidth() {
|
|
10502
10514
|
const e = useKgVar(), t = computed(() => e.store.getVarSubmitConfig(e.formID));
|
10503
10515
|
return {
|
10504
10516
|
getDefaultWidth: computed(() => {
|
10505
|
-
var c, u, d, m,
|
10517
|
+
var c, u, d, m, b;
|
10506
10518
|
if (!t.value)
|
10507
10519
|
return 0;
|
10508
|
-
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, i = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (
|
10520
|
+
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, i = (m = t.value) == null ? void 0 : m.cpy_dft_width, s = (b = t.value) == null ? void 0 : b.del_dft_width;
|
10509
10521
|
let l = a || DEFAULT_WIDTH;
|
10510
10522
|
switch (!0) {
|
10511
10523
|
case (e.isCreating.value && !!n):
|
@@ -10545,28 +10557,28 @@ const getProps$p = () => ({
|
|
10545
10557
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10546
10558
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
10547
10559
|
i.onSubmitSave(async () => (await le(), !1)), i.onSubmitCancel(async () => (await ne(), !1)), _useFormModel$1();
|
10548
|
-
const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)),
|
10549
|
-
var F,
|
10560
|
+
const u = computed(() => o.isDeleting.value && T.value.length === 0 && M.value.length === 0), d = computed(() => l.store.isLoading(o.formID)), m = computed(() => o.store.getVarSubmitConfig(o.formID)), b = 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)), v = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), k = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), T = computed(() => {
|
10561
|
+
var F, B, z;
|
10550
10562
|
switch (!0) {
|
10551
10563
|
case o.isCreating.value:
|
10552
|
-
return (F =
|
10564
|
+
return (F = b.value) != null ? F : [];
|
10553
10565
|
case o.isUpdating.value:
|
10554
|
-
return (
|
10566
|
+
return (B = g.value) != null ? B : [];
|
10555
10567
|
case o.isCopying.value:
|
10556
|
-
return (z =
|
10568
|
+
return (z = y.value) != null ? z : [];
|
10557
10569
|
case o.isDeleting.value:
|
10558
10570
|
return [];
|
10559
10571
|
}
|
10560
10572
|
return [];
|
10561
10573
|
}), M = computed(() => {
|
10562
|
-
var F,
|
10574
|
+
var F, B, z, J;
|
10563
10575
|
switch (!0) {
|
10564
10576
|
case o.isCreating.value:
|
10565
10577
|
return (F = C.value) != null ? F : [];
|
10566
10578
|
case o.isUpdating.value:
|
10567
|
-
return (
|
10579
|
+
return (B = _.value) != null ? B : [];
|
10568
10580
|
case o.isCopying.value:
|
10569
|
-
return (z =
|
10581
|
+
return (z = v.value) != null ? z : [];
|
10570
10582
|
case o.isDeleting.value:
|
10571
10583
|
return (J = k.value) != null ? J : [];
|
10572
10584
|
}
|
@@ -10575,31 +10587,31 @@ const getProps$p = () => ({
|
|
10575
10587
|
kgWidth: 0
|
10576
10588
|
}), w = computed(() => {
|
10577
10589
|
var F;
|
10578
|
-
return !!(u.value ||
|
10579
|
-
}),
|
10580
|
-
var F,
|
10581
|
-
return u.value ? 398 : (
|
10590
|
+
return !!(u.value || H.isFullscreen || ((F = m.value) == null ? void 0 : F.resizable_flg) === 0);
|
10591
|
+
}), U = computed(() => {
|
10592
|
+
var F, B;
|
10593
|
+
return u.value ? 398 : (B = (F = m.value) == null ? void 0 : F.min_width) != null ? B : DEFAULT_MIN_WIDTH;
|
10582
10594
|
}), $ = computed(() => {
|
10583
|
-
var F,
|
10584
|
-
return u.value ? 398 : (
|
10595
|
+
var F, B;
|
10596
|
+
return u.value ? 398 : (B = (F = m.value) == null ? void 0 : F.max_width) != null ? B : DEFAULT_MAX_WIDTH;
|
10585
10597
|
}), V = computed(() => u.value ? 398 : A.value.kgWidth), O = ref(null);
|
10586
10598
|
_useResizeObserver$1(O);
|
10587
|
-
const D = _useTitle(),
|
10599
|
+
const D = _useTitle(), N = computed(() => u.value ? 400 : A.value.kgWidth && A.value.kgWidth > 0 ? "auto" : 0), L = computed(() => N.value === 0 ? !1 : !!(o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value)), H = reactive({
|
10588
10600
|
isFullscreen: !1
|
10589
10601
|
}), {
|
10590
|
-
getClass:
|
10591
|
-
} = _useClass(e,
|
10592
|
-
getLayout:
|
10602
|
+
getClass: K
|
10603
|
+
} = _useClass(e, H), {
|
10604
|
+
getLayout: G
|
10593
10605
|
} = _useLayout(), {
|
10594
10606
|
getDefaultWidth: Y
|
10595
|
-
} = _useDefaultWidth(),
|
10596
|
-
var F,
|
10597
|
-
switch (
|
10607
|
+
} = _useDefaultWidth(), Q = computed(() => {
|
10608
|
+
var F, B, z;
|
10609
|
+
switch (G.value) {
|
10598
10610
|
case "horizontal":
|
10599
10611
|
switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
|
10600
10612
|
case KG_WIDTH_UNIT.SPAN:
|
10601
10613
|
return {
|
10602
|
-
span: (
|
10614
|
+
span: (B = m.value) == null ? void 0 : B.label_col
|
10603
10615
|
};
|
10604
10616
|
default:
|
10605
10617
|
return {
|
@@ -10611,14 +10623,14 @@ const getProps$p = () => ({
|
|
10611
10623
|
default:
|
10612
10624
|
return;
|
10613
10625
|
}
|
10614
|
-
}),
|
10615
|
-
var F,
|
10616
|
-
switch (
|
10626
|
+
}), q = computed(() => {
|
10627
|
+
var F, B;
|
10628
|
+
switch (G.value) {
|
10617
10629
|
case "horizontal":
|
10618
10630
|
switch ((F = m.value) == null ? void 0 : F.label_col_unit) {
|
10619
10631
|
case KG_WIDTH_UNIT.SPAN:
|
10620
10632
|
return {
|
10621
|
-
span: 24 - ((
|
10633
|
+
span: 24 - ((B = m.value) == null ? void 0 : B.label_col)
|
10622
10634
|
};
|
10623
10635
|
default:
|
10624
10636
|
return;
|
@@ -10627,8 +10639,8 @@ const getProps$p = () => ({
|
|
10627
10639
|
return;
|
10628
10640
|
}
|
10629
10641
|
});
|
10630
|
-
watch(L, (F,
|
10631
|
-
F === !0 &&
|
10642
|
+
watch(L, (F, B) => {
|
10643
|
+
F === !0 && te(), B === !0 && F === !1 && re();
|
10632
10644
|
}, {
|
10633
10645
|
immediate: !0
|
10634
10646
|
}), watch(Y, (F) => {
|
@@ -10636,8 +10648,8 @@ const getProps$p = () => ({
|
|
10636
10648
|
}, {
|
10637
10649
|
immediate: !0
|
10638
10650
|
});
|
10639
|
-
function
|
10640
|
-
var
|
10651
|
+
function te() {
|
10652
|
+
var B;
|
10641
10653
|
const F = watch(l.model, (z) => {
|
10642
10654
|
z && Object.keys(z).length > 0 && (setTimeout(() => F()), l.store.emit(o.formID, "open", {
|
10643
10655
|
isCreating: o.isCreating.value,
|
@@ -10650,10 +10662,10 @@ const getProps$p = () => ({
|
|
10650
10662
|
}, {
|
10651
10663
|
immediate: !0
|
10652
10664
|
});
|
10653
|
-
((
|
10665
|
+
((B = m.value) == null ? void 0 : B.dft_fullscreen_flg) === 1 && !u.value && (H.isFullscreen = !0);
|
10654
10666
|
}
|
10655
|
-
async function
|
10656
|
-
A.value.kgWidth = Y.value,
|
10667
|
+
async function re() {
|
10668
|
+
A.value.kgWidth = Y.value, H.isFullscreen = !1, await l.store.emit(o.formID, "close", null);
|
10657
10669
|
}
|
10658
10670
|
function ne() {
|
10659
10671
|
switch (!0) {
|
@@ -10672,7 +10684,7 @@ const getProps$p = () => ({
|
|
10672
10684
|
}
|
10673
10685
|
}
|
10674
10686
|
async function le() {
|
10675
|
-
var F,
|
10687
|
+
var F, B;
|
10676
10688
|
try {
|
10677
10689
|
if (await l.store.emit(o.formID, "beforeOk", {
|
10678
10690
|
isCreating: o.isCreating.value,
|
@@ -10686,10 +10698,10 @@ const getProps$p = () => ({
|
|
10686
10698
|
return;
|
10687
10699
|
try {
|
10688
10700
|
await ((F = l.formRef.value) == null ? void 0 : F.validate());
|
10689
|
-
} catch (
|
10690
|
-
KgUtil.throwIfNotFormError(
|
10701
|
+
} catch (Z) {
|
10702
|
+
KgUtil.throwIfNotFormError(Z);
|
10691
10703
|
}
|
10692
|
-
if (await ((
|
10704
|
+
if (await ((B = l.formRef.value) == null ? void 0 : B.validate()), await l.store.emit(o.formID, "afterValidate", {
|
10693
10705
|
isCreating: o.isCreating.value,
|
10694
10706
|
isUpdating: o.isUpdating.value,
|
10695
10707
|
isCopying: o.isCopying.value,
|
@@ -10704,7 +10716,7 @@ const getProps$p = () => ({
|
|
10704
10716
|
await ce();
|
10705
10717
|
break;
|
10706
10718
|
case o.isUpdating.value:
|
10707
|
-
await
|
10719
|
+
await ae();
|
10708
10720
|
break;
|
10709
10721
|
case o.isCopying.value:
|
10710
10722
|
await ue();
|
@@ -10718,8 +10730,8 @@ const getProps$p = () => ({
|
|
10718
10730
|
}
|
10719
10731
|
}
|
10720
10732
|
async function ce() {
|
10721
|
-
var
|
10722
|
-
const F = (
|
10733
|
+
var B, z, J, Z, oe, se;
|
10734
|
+
const F = (B = o.varButtonCreate.value) == null ? void 0 : B.cmd;
|
10723
10735
|
if (!F) {
|
10724
10736
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10725
10737
|
VarButton: o.varButtonCreate.value
|
@@ -10728,7 +10740,7 @@ const getProps$p = () => ({
|
|
10728
10740
|
}
|
10729
10741
|
o.store.setIsCreatingRequesting(o.formID, !0);
|
10730
10742
|
try {
|
10731
|
-
let
|
10743
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
|
10732
10744
|
if (await l.store.emit(o.formID, "beforeRequest", {
|
10733
10745
|
isCreating: o.isCreating.value,
|
10734
10746
|
isUpdating: o.isUpdating.value,
|
@@ -10737,14 +10749,14 @@ const getProps$p = () => ({
|
|
10737
10749
|
row: s.selectedFirstRow.value,
|
10738
10750
|
rows: s.selectedRows.value,
|
10739
10751
|
model: l.model,
|
10740
|
-
params:
|
10752
|
+
params: ee,
|
10741
10753
|
data: ie
|
10742
10754
|
}))
|
10743
10755
|
return;
|
10744
10756
|
await httpClient().request({
|
10745
|
-
method: (oe = (
|
10757
|
+
method: (oe = (Z = o.varButtonCreate.value) == null ? void 0 : Z.cmd_method) != null ? oe : "POST",
|
10746
10758
|
url: F,
|
10747
|
-
params:
|
10759
|
+
params: ee.value,
|
10748
10760
|
data: ie.value
|
10749
10761
|
}), ((se = o.varButtonCreate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(D.title.value + n.t("kg.succeed")), await l.store.emit(o.formID, "ok", {
|
10750
10762
|
isCreating: o.isCreating.value,
|
@@ -10754,15 +10766,15 @@ const getProps$p = () => ({
|
|
10754
10766
|
row: s.selectedFirstRow.value,
|
10755
10767
|
model: l.model
|
10756
10768
|
}), o.store.setIsCreating(o.formID, !1), c.search(!0);
|
10757
|
-
} catch (
|
10758
|
-
console.error(
|
10769
|
+
} catch (ee) {
|
10770
|
+
console.error(ee), l.store.emit(o.formID, "error", ee);
|
10759
10771
|
} finally {
|
10760
10772
|
o.store.setIsCreatingRequesting(o.formID, !1);
|
10761
10773
|
}
|
10762
10774
|
}
|
10763
|
-
async function
|
10764
|
-
var
|
10765
|
-
const F = (
|
10775
|
+
async function ae() {
|
10776
|
+
var B, z, J, Z, oe, se;
|
10777
|
+
const F = (B = o.varButtonUpdate.value) == null ? void 0 : B.cmd;
|
10766
10778
|
if (!F) {
|
10767
10779
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10768
10780
|
VarButton: o.varButtonUpdate.value
|
@@ -10771,7 +10783,7 @@ const getProps$p = () => ({
|
|
10771
10783
|
}
|
10772
10784
|
try {
|
10773
10785
|
o.store.setIsUpdatingRequesting(o.formID, !0);
|
10774
|
-
let
|
10786
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), o.formID, r));
|
10775
10787
|
if (await l.store.emit(o.formID, "beforeRequest", {
|
10776
10788
|
isCreating: o.isCreating.value,
|
10777
10789
|
isUpdating: o.isUpdating.value,
|
@@ -10780,14 +10792,14 @@ const getProps$p = () => ({
|
|
10780
10792
|
row: s.selectedRow.value,
|
10781
10793
|
rows: s.selectedRows.value,
|
10782
10794
|
model: l.model,
|
10783
|
-
params:
|
10795
|
+
params: ee,
|
10784
10796
|
data: ie
|
10785
10797
|
}))
|
10786
10798
|
return;
|
10787
10799
|
await httpClient().request({
|
10788
|
-
method: (oe = (
|
10800
|
+
method: (oe = (Z = o.varButtonUpdate.value) == null ? void 0 : Z.cmd_method) != null ? oe : "POST",
|
10789
10801
|
url: F,
|
10790
|
-
params:
|
10802
|
+
params: ee.value,
|
10791
10803
|
data: ie.value
|
10792
10804
|
}), ((se = o.varButtonUpdate.value) == null ? void 0 : se.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(o.formID, "ok", {
|
10793
10805
|
isCreating: o.isCreating.value,
|
@@ -10797,15 +10809,15 @@ const getProps$p = () => ({
|
|
10797
10809
|
row: s.selectedFirstRow.value,
|
10798
10810
|
model: l.model
|
10799
10811
|
}), o.store.setIsUpdating(o.formID, !1), c.search();
|
10800
|
-
} catch (
|
10801
|
-
console.error(
|
10812
|
+
} catch (ee) {
|
10813
|
+
console.error(ee), l.store.emit(o.formID, "error", ee);
|
10802
10814
|
} finally {
|
10803
10815
|
o.store.setIsUpdatingRequesting(o.formID, !1);
|
10804
10816
|
}
|
10805
10817
|
}
|
10806
10818
|
async function ue() {
|
10807
|
-
var
|
10808
|
-
const F = (
|
10819
|
+
var B, z, J, Z, oe, se, ee, ie;
|
10820
|
+
const F = (B = o.varButtonCopy.value) == null ? void 0 : B.cmd;
|
10809
10821
|
if (!F) {
|
10810
10822
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10811
10823
|
VarButton: o.varButtonCopy.value
|
@@ -10815,7 +10827,7 @@ const getProps$p = () => ({
|
|
10815
10827
|
try {
|
10816
10828
|
o.store.setIsCopyingRequesting(o.formID, !0);
|
10817
10829
|
let ge = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = o.varButtonCopy.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), o.formID, r)), pe = ref(KgUtil.parseParams({
|
10818
|
-
...(
|
10830
|
+
...(Z = s.selectedFirstRow.value) != null ? Z : {},
|
10819
10831
|
...toRaw(l.model.value)
|
10820
10832
|
}, o.formID, r));
|
10821
10833
|
if (((oe = m.value) == null ? void 0 : oe.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(o.formID, "beforeRequest", {
|
@@ -10831,7 +10843,7 @@ const getProps$p = () => ({
|
|
10831
10843
|
}))
|
10832
10844
|
return;
|
10833
10845
|
await httpClient().request({
|
10834
|
-
method: (
|
10846
|
+
method: (ee = (se = o.varButtonCopy.value) == null ? void 0 : se.cmd_method) != null ? ee : "POST",
|
10835
10847
|
url: F,
|
10836
10848
|
params: ge.value,
|
10837
10849
|
data: pe.value
|
@@ -10850,8 +10862,8 @@ const getProps$p = () => ({
|
|
10850
10862
|
}
|
10851
10863
|
}
|
10852
10864
|
async function fe() {
|
10853
|
-
var
|
10854
|
-
const F = (
|
10865
|
+
var B, z, J, Z, oe, se;
|
10866
|
+
const F = (B = o.varButtonDelete.value) == null ? void 0 : B.cmd;
|
10855
10867
|
if (!F) {
|
10856
10868
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10857
10869
|
VarButton: o.varButtonDelete.value
|
@@ -10860,7 +10872,7 @@ const getProps$p = () => ({
|
|
10860
10872
|
}
|
10861
10873
|
try {
|
10862
10874
|
o.store.setIsDeletingRequesting(o.formID, !0);
|
10863
|
-
let
|
10875
|
+
let ee = ref({
|
10864
10876
|
ids: (J = (z = s.selectedRows.value) == null ? void 0 : z.map((pe) => {
|
10865
10877
|
var me, _e, he;
|
10866
10878
|
return (he = pe[(_e = (me = o.varButtonDelete.value) == null ? void 0 : me.del_param_clm) != null ? _e : "id"]) != null ? he : "";
|
@@ -10874,14 +10886,14 @@ const getProps$p = () => ({
|
|
10874
10886
|
row: s.selectedFirstRow.value,
|
10875
10887
|
rows: s.selectedRows.value,
|
10876
10888
|
model: l.model,
|
10877
|
-
params:
|
10889
|
+
params: ee,
|
10878
10890
|
data: ie
|
10879
10891
|
}))
|
10880
10892
|
return;
|
10881
10893
|
await httpClient().request({
|
10882
|
-
method: (oe = (
|
10894
|
+
method: (oe = (Z = o.varButtonDelete.value) == null ? void 0 : Z.cmd_method) != null ? oe : "DELETE",
|
10883
10895
|
url: F,
|
10884
|
-
params:
|
10896
|
+
params: ee.value,
|
10885
10897
|
data: ie.value
|
10886
10898
|
}, {
|
10887
10899
|
joinParamsToUrl: !0
|
@@ -10893,33 +10905,33 @@ const getProps$p = () => ({
|
|
10893
10905
|
row: s.selectedFirstRow.value,
|
10894
10906
|
model: l.model
|
10895
10907
|
}), o.store.setIsDeleting(o.formID, !1), c.search(!0);
|
10896
|
-
} catch (
|
10897
|
-
console.error(
|
10908
|
+
} catch (ee) {
|
10909
|
+
console.error(ee), l.store.emit(o.formID, "error", ee);
|
10898
10910
|
} finally {
|
10899
10911
|
o.store.setIsDeletingRequesting(o.formID, !1);
|
10900
10912
|
}
|
10901
10913
|
}
|
10902
10914
|
function de(F) {
|
10903
10915
|
var z, J;
|
10904
|
-
const
|
10905
|
-
return isFunction$2(
|
10916
|
+
const B = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[F.var_nam];
|
10917
|
+
return isFunction$2(B) ? createVNode(KgForm.Item, {
|
10906
10918
|
kgVarName: F.var_nam,
|
10907
10919
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10908
10920
|
kgRules: l.rules.value[F.var_nam],
|
10909
10921
|
onKgSubmit: le
|
10910
10922
|
}, {
|
10911
10923
|
control: ({
|
10912
|
-
varName:
|
10924
|
+
varName: Z,
|
10913
10925
|
props: oe,
|
10914
10926
|
model: se,
|
10915
|
-
varVariableConfig:
|
10927
|
+
varVariableConfig: ee,
|
10916
10928
|
varProfileDetail: ie,
|
10917
10929
|
varSubmitField: ge
|
10918
|
-
}) =>
|
10919
|
-
varName:
|
10930
|
+
}) => B({
|
10931
|
+
varName: Z,
|
10920
10932
|
props: oe,
|
10921
10933
|
model: se,
|
10922
|
-
varVariableConfig:
|
10934
|
+
varVariableConfig: ee,
|
10923
10935
|
varProfileDetail: ie,
|
10924
10936
|
varSubmitField: ge
|
10925
10937
|
})
|
@@ -10931,10 +10943,10 @@ const getProps$p = () => ({
|
|
10931
10943
|
}, null);
|
10932
10944
|
}
|
10933
10945
|
function R() {
|
10934
|
-
let F,
|
10946
|
+
let F, B;
|
10935
10947
|
return createVNode(KgResizable, {
|
10936
10948
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10937
|
-
kgMinWidth:
|
10949
|
+
kgMinWidth: U.value,
|
10938
10950
|
kgMaxWidth: $.value,
|
10939
10951
|
kgWidth: V.value,
|
10940
10952
|
kgDisabled: w.value,
|
@@ -10946,9 +10958,9 @@ const getProps$p = () => ({
|
|
10946
10958
|
default: () => [createVNode(KgForm, {
|
10947
10959
|
ref: l.formRef,
|
10948
10960
|
model: l.model.value,
|
10949
|
-
layout:
|
10950
|
-
labelCol:
|
10951
|
-
wrapperCol:
|
10961
|
+
layout: G.value,
|
10962
|
+
labelCol: Q.value,
|
10963
|
+
wrapperCol: q.value
|
10952
10964
|
}, {
|
10953
10965
|
default: () => [createVNode("div", {
|
10954
10966
|
ref: O
|
@@ -10958,8 +10970,8 @@ const getProps$p = () => ({
|
|
10958
10970
|
default: () => [F]
|
10959
10971
|
}), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
10960
10972
|
gutter: 12
|
10961
|
-
}, _isSlot$8(
|
10962
|
-
default: () => [
|
10973
|
+
}, _isSlot$8(B = M.value.map(de)) ? B : {
|
10974
|
+
default: () => [B]
|
10963
10975
|
}), u.value && createVNode("div", {
|
10964
10976
|
style: "text-align: center; padding: 6px 0 12px;"
|
10965
10977
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -10967,8 +10979,8 @@ const getProps$p = () => ({
|
|
10967
10979
|
})]
|
10968
10980
|
});
|
10969
10981
|
}
|
10970
|
-
function
|
10971
|
-
let F,
|
10982
|
+
function x() {
|
10983
|
+
let F, B;
|
10972
10984
|
return createVNode("div", null, [createVNode(Button, {
|
10973
10985
|
type: "primary",
|
10974
10986
|
ghost: !P.value,
|
@@ -10982,8 +10994,8 @@ const getProps$p = () => ({
|
|
10982
10994
|
loading: E.value,
|
10983
10995
|
danger: !!o.isDeleting.value,
|
10984
10996
|
onClick: le
|
10985
|
-
}, _isSlot$8(
|
10986
|
-
default: () => [
|
10997
|
+
}, _isSlot$8(B = n.t(o.isDeleting.value ? "kg.delete" : "kg.save")) ? B : {
|
10998
|
+
default: () => [B]
|
10987
10999
|
})]);
|
10988
11000
|
}
|
10989
11001
|
function W() {
|
@@ -10991,10 +11003,10 @@ const getProps$p = () => ({
|
|
10991
11003
|
title: D.title.value
|
10992
11004
|
}, [D.title.value]);
|
10993
11005
|
}
|
10994
|
-
function
|
11006
|
+
function X() {
|
10995
11007
|
return createVNode(KgSubmitHeader, {
|
10996
|
-
isFullscreen:
|
10997
|
-
"onUpdate:isFullscreen": (F) =>
|
11008
|
+
isFullscreen: H.isFullscreen,
|
11009
|
+
"onUpdate:isFullscreen": (F) => H.isFullscreen = F,
|
10998
11010
|
kgShowFullscreenButton: !u.value,
|
10999
11011
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11000
11012
|
onKgCancel: ne
|
@@ -11009,14 +11021,14 @@ const getProps$p = () => ({
|
|
11009
11021
|
maskClosable: !1,
|
11010
11022
|
keyboard: !1,
|
11011
11023
|
destroyOnClose: !0,
|
11012
|
-
width:
|
11013
|
-
class:
|
11024
|
+
width: N.value,
|
11025
|
+
class: K.value,
|
11014
11026
|
"kg-frm_id": o.formID
|
11015
11027
|
}, {
|
11016
11028
|
title: W,
|
11017
|
-
extra:
|
11029
|
+
extra: X,
|
11018
11030
|
default: R,
|
11019
|
-
footer:
|
11031
|
+
footer: x
|
11020
11032
|
});
|
11021
11033
|
}
|
11022
11034
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11236,7 +11248,7 @@ function useKgTable(e) {
|
|
11236
11248
|
}), m = computed(() => {
|
11237
11249
|
var g, _;
|
11238
11250
|
return JSON.parse((_ = (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opts) != null ? _ : "[]");
|
11239
|
-
}),
|
11251
|
+
}), b = computed(() => {
|
11240
11252
|
var g;
|
11241
11253
|
return (g = t.varGridConfig.value) == null ? void 0 : g.pg_size_opt;
|
11242
11254
|
}), C = computed(() => {
|
@@ -11256,7 +11268,7 @@ function useKgTable(e) {
|
|
11256
11268
|
isShowBottomRight: u,
|
11257
11269
|
id: d,
|
11258
11270
|
pageSizeOptions: m,
|
11259
|
-
pageSizeOption:
|
11271
|
+
pageSizeOption: b,
|
11260
11272
|
profileFormID: C,
|
11261
11273
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
11262
11274
|
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
|
@@ -11301,7 +11313,7 @@ const getProps$n = () => ({
|
|
11301
11313
|
var M, E;
|
11302
11314
|
let T = "kg-table-td";
|
11303
11315
|
return ((M = l.value) == null ? void 0 : M.align) === "center" ? T += " kg-table-td--center" : ((E = l.value) == null ? void 0 : E.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
|
11304
|
-
}),
|
11316
|
+
}), b = computed(() => {
|
11305
11317
|
var M, E, P, I;
|
11306
11318
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11307
11319
|
return "";
|
@@ -11338,7 +11350,7 @@ const getProps$n = () => ({
|
|
11338
11350
|
}
|
11339
11351
|
function _() {
|
11340
11352
|
}
|
11341
|
-
function
|
11353
|
+
function y() {
|
11342
11354
|
return createVNode(KgForm, {
|
11343
11355
|
ref: C,
|
11344
11356
|
model: i.model.value,
|
@@ -11359,10 +11371,10 @@ const getProps$n = () => ({
|
|
11359
11371
|
})]
|
11360
11372
|
});
|
11361
11373
|
}
|
11362
|
-
function
|
11363
|
-
var T, M, E, P, I, A, w,
|
11374
|
+
function v() {
|
11375
|
+
var T, M, E, P, I, A, w, U, $, V;
|
11364
11376
|
if (u.value)
|
11365
|
-
return
|
11377
|
+
return y();
|
11366
11378
|
switch ((T = l.value) == null ? void 0 : T.display_type) {
|
11367
11379
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11368
11380
|
const O = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
|
@@ -11372,13 +11384,13 @@ const getProps$n = () => ({
|
|
11372
11384
|
}, null);
|
11373
11385
|
}
|
11374
11386
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
11375
|
-
const O = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), D = isArrayLike(O) && O.find((
|
11387
|
+
const O = KgUtil.tryParseJSON((P = l.value) == null ? void 0 : P.display_type_properties), D = isArrayLike(O) && O.find((N) => N.value === e.kgValue);
|
11376
11388
|
if (D) {
|
11377
|
-
const
|
11378
|
-
return
|
11389
|
+
const N = n.t(D.varName).value;
|
11390
|
+
return N ? createVNode(Tag, {
|
11379
11391
|
color: (I = D.color) != null ? I : "default"
|
11380
|
-
}, _isSlot$7(
|
11381
|
-
default: () => [
|
11392
|
+
}, _isSlot$7(N) ? N : {
|
11393
|
+
default: () => [N]
|
11382
11394
|
}) : k();
|
11383
11395
|
} else
|
11384
11396
|
return k();
|
@@ -11386,17 +11398,17 @@ const getProps$n = () => ({
|
|
11386
11398
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11387
11399
|
const O = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
11388
11400
|
if (O.isTag && isArrayLike(O.tagColors)) {
|
11389
|
-
const D = O.tagColors.find((
|
11390
|
-
return
|
11401
|
+
const D = O.tagColors.find((N) => N.value === e.kgValue);
|
11402
|
+
return b.value ? createVNode(Tag, {
|
11391
11403
|
color: (w = D == null ? void 0 : D.color) != null ? w : "default"
|
11392
11404
|
}, {
|
11393
|
-
default: () => [
|
11405
|
+
default: () => [b.value]
|
11394
11406
|
}) : k();
|
11395
11407
|
} else
|
11396
11408
|
return k();
|
11397
11409
|
}
|
11398
11410
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11399
|
-
const O = KgUtil.tryParseJSON((
|
11411
|
+
const O = KgUtil.tryParseJSON((U = l.value) == null ? void 0 : U.display_type_properties);
|
11400
11412
|
return createVNode(KgProgressA, {
|
11401
11413
|
kgTextWidth: O.textWidth,
|
11402
11414
|
kgLeft: ($ = e.kgRow) == null ? void 0 : $[O.leftColumn],
|
@@ -11416,15 +11428,15 @@ const getProps$n = () => ({
|
|
11416
11428
|
function k(T = !1) {
|
11417
11429
|
let M = "";
|
11418
11430
|
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
11419
|
-
innerHTML:
|
11431
|
+
innerHTML: b.value,
|
11420
11432
|
class: M,
|
11421
11433
|
onClick: g
|
11422
11434
|
}, null);
|
11423
11435
|
}
|
11424
11436
|
return () => createVNode("div", {
|
11425
11437
|
class: m.value,
|
11426
|
-
title:
|
11427
|
-
}, [
|
11438
|
+
title: b.value
|
11439
|
+
}, [v()]);
|
11428
11440
|
}
|
11429
11441
|
}), KgTable_Info = "";
|
11430
11442
|
function _isSlot$6(e) {
|
@@ -11512,8 +11524,8 @@ const getProps$m = () => ({
|
|
11512
11524
|
}) => {
|
11513
11525
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11514
11526
|
return i = watch(l, (u) => {
|
11515
|
-
var d, m,
|
11516
|
-
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 = (
|
11527
|
+
var d, m, b, C, g, _, y, v, k, T, M;
|
11528
|
+
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 = (b = c == null ? void 0 : c.mult_flg) != null ? b : 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 = (v = c == null ? void 0 : c.pg_size_opts) != null ? v : "[10, 20, 50, 100]", u.pg_size_opt = (k = c == null ? void 0 : c.pg_size_opt) != null ? k : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (M = c == null ? void 0 : c.button_display_type) != null ? M : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
11517
11529
|
}, {
|
11518
11530
|
immediate: !0
|
11519
11531
|
}), !1;
|
@@ -11702,8 +11714,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11702
11714
|
return o.onOpen(async ({
|
11703
11715
|
model: i
|
11704
11716
|
}) => {
|
11705
|
-
var s, l, c, u, d, m,
|
11706
|
-
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (C = (
|
11717
|
+
var s, l, c, u, d, m, b, C, g, _;
|
11718
|
+
return i.value.grd_var_nam = `${(l = (s = n.currentVarGridMaster.value) == null ? void 0 : s.grd_var_nam) != null ? l : ""}_COPY`, i.value.frm_id = (u = (c = n.currentVarGridMaster.value) == null ? void 0 : c.frm_id) != null ? u : "", i.value.usr_id = (m = (d = n.currentVarGridMaster.value) == null ? void 0 : d.usr_id) != null ? m : "", i.value.grp_nam = (C = (b = n.currentVarGridMaster.value) == null ? void 0 : b.grp_nam) != null ? C : "", i.value.varGridDetails = (_ = (g = n.currentVarGridMaster.value) == null ? void 0 : g.varGridDetails) != null ? _ : [], !1;
|
11707
11719
|
}), o.onBeforeOk(async ({
|
11708
11720
|
model: i
|
11709
11721
|
}) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
@@ -11736,7 +11748,7 @@ const getProps$h = () => ({
|
|
11736
11748
|
}, {
|
11737
11749
|
immediate: !0
|
11738
11750
|
});
|
11739
|
-
function
|
11751
|
+
function b(k) {
|
11740
11752
|
n.store.patchVarGridDetail(n.formID, k.var_nam, {
|
11741
11753
|
vis_flg: k.vis_flg === 1 ? 0 : 1
|
11742
11754
|
});
|
@@ -11783,7 +11795,7 @@ const getProps$h = () => ({
|
|
11783
11795
|
}, [(k = n.currentVarGridDetails.value) == null ? void 0 : k.map((T) => createVNode("li", {
|
11784
11796
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11785
11797
|
onClick: (M) => {
|
11786
|
-
M.preventDefault(), M.stopPropagation(),
|
11798
|
+
M.preventDefault(), M.stopPropagation(), b(T);
|
11787
11799
|
},
|
11788
11800
|
style: {
|
11789
11801
|
display: i(T, s.value) ? "flex" : "none"
|
@@ -11803,7 +11815,7 @@ const getProps$h = () => ({
|
|
11803
11815
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
11804
11816
|
});
|
11805
11817
|
}
|
11806
|
-
function
|
11818
|
+
function y() {
|
11807
11819
|
return createVNode(Menu.SubMenu, {
|
11808
11820
|
key: "2",
|
11809
11821
|
title: a.t("kg.KgTable.varGridMasters"),
|
@@ -11837,7 +11849,7 @@ const getProps$h = () => ({
|
|
11837
11849
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
11838
11850
|
});
|
11839
11851
|
}
|
11840
|
-
function
|
11852
|
+
function v() {
|
11841
11853
|
let k;
|
11842
11854
|
return createVNode(Menu.Item, {
|
11843
11855
|
key: "config-var-grid-master",
|
@@ -11861,7 +11873,7 @@ const getProps$h = () => ({
|
|
11861
11873
|
"onUpdate:openKeys": (k) => l.value = k,
|
11862
11874
|
selectable: !1
|
11863
11875
|
}, {
|
11864
|
-
default: () => [_(),
|
11876
|
+
default: () => [_(), y(), v()]
|
11865
11877
|
})
|
11866
11878
|
}), u.visible && createVNode(KgTableSettingConfigModal, {
|
11867
11879
|
visible: u.visible,
|
@@ -11875,8 +11887,8 @@ function _useColumns(e) {
|
|
11875
11887
|
var l;
|
11876
11888
|
return ((l = r.store.getVarGridConfig(r.formID)) == null ? void 0 : l.show_check_column_flg) === 1;
|
11877
11889
|
}), i = computed(() => {
|
11878
|
-
var m,
|
11879
|
-
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (
|
11890
|
+
var m, b, C;
|
11891
|
+
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (b = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? b : 0, u = r.store.getCurrentVisibleVarGridDetails(r.formID), d = [{
|
11880
11892
|
dataIndex: "index",
|
11881
11893
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
11882
11894
|
fixed: "left",
|
@@ -11887,10 +11899,10 @@ function _useColumns(e) {
|
|
11887
11899
|
}) => g + 1
|
11888
11900
|
}, ...(C = u == null ? void 0 : u.map((g) => {
|
11889
11901
|
const _ = g.var_nam;
|
11890
|
-
function
|
11902
|
+
function y() {
|
11891
11903
|
return g.width === "auto" ? "auto" : Number(g.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
11892
11904
|
}
|
11893
|
-
function
|
11905
|
+
function v() {
|
11894
11906
|
return r.t(_).value;
|
11895
11907
|
}
|
11896
11908
|
function k() {
|
@@ -11903,16 +11915,16 @@ function _useColumns(e) {
|
|
11903
11915
|
return "right";
|
11904
11916
|
}
|
11905
11917
|
function M() {
|
11906
|
-
var I, A, w,
|
11907
|
-
return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) != null && A.kgDisabled || isNil((
|
11918
|
+
var I, A, w, U;
|
11919
|
+
return !((A = (I = t == null ? void 0 : t.value) == null ? void 0 : I.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);
|
11908
11920
|
}
|
11909
11921
|
function E() {
|
11910
11922
|
return ["left", "center", "right"].includes(g.align || "") ? g.align : "left";
|
11911
11923
|
}
|
11912
|
-
const P =
|
11924
|
+
const P = y();
|
11913
11925
|
return {
|
11914
11926
|
dataIndex: _,
|
11915
|
-
title:
|
11927
|
+
title: v(),
|
11916
11928
|
width: P,
|
11917
11929
|
resizable: typeof P == "number",
|
11918
11930
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
@@ -11987,58 +11999,58 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
11987
11999
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), o = inject(DI_KG_VAR__KG_PROPS, null), i = useKg(), s = useKgVar(), l = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
11988
12000
|
l.onSearch(async ({
|
11989
12001
|
resetPageIndex: R
|
11990
|
-
}) => (
|
12002
|
+
}) => (G(R), !1)), l.onReset(async () => (G(!0), !1)), u.store.$onAction(async ({
|
11991
12003
|
name: R,
|
11992
|
-
args:
|
12004
|
+
args: x
|
11993
12005
|
}) => {
|
11994
12006
|
switch (R) {
|
11995
12007
|
case "setRowSelect":
|
11996
|
-
if (
|
11997
|
-
const W =
|
12008
|
+
if (x[0] === s.formID) {
|
12009
|
+
const W = x[1], X = x[2], F = W[u.id.value];
|
11998
12010
|
switch (!0) {
|
11999
|
-
case (
|
12011
|
+
case (X && !V.value.includes(F)):
|
12000
12012
|
Y([...V.value, F]);
|
12001
12013
|
break;
|
12002
|
-
case (!
|
12014
|
+
case (!X && V.value.includes(F)):
|
12003
12015
|
Y(without$1(V.value, F));
|
12004
12016
|
break;
|
12005
12017
|
}
|
12006
12018
|
}
|
12007
12019
|
break;
|
12008
12020
|
case "clearDatas":
|
12009
|
-
|
12021
|
+
x[0] === s.formID && ($.value = [], O.total = 0, K(), b.value = []);
|
12010
12022
|
break;
|
12011
12023
|
}
|
12012
12024
|
});
|
12013
|
-
const m = ref(!1),
|
12025
|
+
const m = ref(!1), b = ref([]), {
|
12014
12026
|
columns: C,
|
12015
12027
|
scrollX: g
|
12016
12028
|
} = _useColumns(e), {
|
12017
12029
|
isLoading: _
|
12018
|
-
} = _useLoading(),
|
12019
|
-
_useResizeObserver(
|
12020
|
-
const
|
12021
|
-
var R,
|
12022
|
-
return (
|
12030
|
+
} = _useLoading(), y = ref(null);
|
12031
|
+
_useResizeObserver(y);
|
12032
|
+
const v = computed(() => {
|
12033
|
+
var R, x;
|
12034
|
+
return (x = (R = s.varButtonSearch.value) == null ? void 0 : R.cmd) != null ? x : null;
|
12023
12035
|
}), k = computed(() => {
|
12024
|
-
var
|
12036
|
+
var x, W, X, F, B, z, J;
|
12025
12037
|
let R = {
|
12026
12038
|
pageNo: O.pageIndex,
|
12027
12039
|
pageSize: O.pageSize,
|
12028
12040
|
...D,
|
12029
|
-
...(W = (
|
12041
|
+
...(W = (x = l.model) == null ? void 0 : x.value) != null ? W : {}
|
12030
12042
|
};
|
12031
12043
|
return s.varButtonSearch.value && (R = {
|
12032
12044
|
...R,
|
12033
|
-
...KgVarUtil.parseCommandParameter((F = (
|
12034
|
-
}), (
|
12045
|
+
...KgVarUtil.parseCommandParameter((F = (X = s.varButtonSearch.value) == null ? void 0 : X.cmd_prm) != null ? F : "")
|
12046
|
+
}), (B = s.varGridConfig.value) != null && B.cmd_prm && (R = {
|
12035
12047
|
...R,
|
12036
12048
|
...KgVarUtil.parseCommandParameter((z = s.varGridConfig.value.cmd_prm) != null ? z : "")
|
12037
12049
|
}), ((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;
|
12038
12050
|
}), T = computed(() => {
|
12039
|
-
var R,
|
12040
|
-
if (!isNil((
|
12041
|
-
return (
|
12051
|
+
var R, x, W, X;
|
12052
|
+
if (!isNil((x = (R = o == null ? void 0 : o.value) == null ? void 0 : R.KgTable) == null ? void 0 : x.kgDisabled))
|
12053
|
+
return (X = (W = o == null ? void 0 : o.value) == null ? void 0 : W.KgTable) == null ? void 0 : X.kgDisabled;
|
12042
12054
|
if (!isNil(e.kgDisabled))
|
12043
12055
|
return e.kgDisabled;
|
12044
12056
|
}), M = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => !!T.value || _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || O.total === 0), P = computed(() => {
|
@@ -12058,17 +12070,17 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12058
12070
|
getCheckboxProps: (R) => ({
|
12059
12071
|
disabled: !!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
|
12060
12072
|
}),
|
12061
|
-
onSelect: (R) =>
|
12073
|
+
onSelect: (R) => Q(R),
|
12062
12074
|
onChange: (R) => u.isMultiSelect.value && Y(R)
|
12063
12075
|
};
|
12064
12076
|
}), w = computed(() => {
|
12065
|
-
var
|
12077
|
+
var x;
|
12066
12078
|
let R = "kg-table";
|
12067
|
-
return ((
|
12068
|
-
}),
|
12069
|
-
var
|
12079
|
+
return ((x = s.varGridConfig.value) == null ? void 0 : x.show_bottom_border_flg) === 1 && (R += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (R += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (R += " kg-table--submitting"), R;
|
12080
|
+
}), U = computed(() => {
|
12081
|
+
var x;
|
12070
12082
|
let R = "kg-table-bottom";
|
12071
|
-
return ((
|
12083
|
+
return ((x = s.varGridConfig.value) == null ? void 0 : x.show_bottom_border_flg) === 1 && (R += " kg-table-bottom--border"), R;
|
12072
12084
|
}), $ = ref([]), V = (de = u.store.getSelectedRowKeys(s.formID)) != null ? de : ref([]), O = reactive({
|
12073
12085
|
pageIndex: 1,
|
12074
12086
|
pageSize: 10,
|
@@ -12076,19 +12088,19 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12076
12088
|
}), D = reactive({
|
12077
12089
|
column: void 0,
|
12078
12090
|
order: void 0
|
12079
|
-
}),
|
12080
|
-
R && (setTimeout(() =>
|
12091
|
+
}), N = watch(u.pageSizeOption, (R) => {
|
12092
|
+
R && (setTimeout(() => N()), O.pageSize = R, m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`));
|
12081
12093
|
}, {
|
12082
12094
|
immediate: !0
|
12083
12095
|
});
|
12084
12096
|
watch(u.pageSizeOptions, (R) => {
|
12085
12097
|
R.length > 0 && !R.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
12086
|
-
}), watch([
|
12087
|
-
R &&
|
12098
|
+
}), watch([v, u.isReadAutomatically, l.isReady], ([R, x, W]) => {
|
12099
|
+
R && x && W && !u.store.getIsRetrieved(s.formID) && G(!0);
|
12088
12100
|
}, {
|
12089
12101
|
immediate: !0
|
12090
|
-
}), watch(s.isCreating, (R,
|
12091
|
-
R === !0 ? L() : R === !1 &&
|
12102
|
+
}), watch(s.isCreating, (R, x) => {
|
12103
|
+
R === !0 ? L() : R === !1 && x === !0 && H();
|
12092
12104
|
}), onUnmounted(() => {
|
12093
12105
|
u.store.dispose(s.formID);
|
12094
12106
|
});
|
@@ -12100,14 +12112,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12100
12112
|
$.value = [R, ...$.value], u.store.setSelectedRows(s.formID, [R]);
|
12101
12113
|
}
|
12102
12114
|
}
|
12103
|
-
function
|
12104
|
-
const R = $.value.find((
|
12115
|
+
function H() {
|
12116
|
+
const R = $.value.find((x) => x[u.id.value] === KG_TABLE_TEMP_ID);
|
12105
12117
|
R && ($.value = without$1($.value, R), u.store.setSelectedRows(s.formID, []));
|
12106
12118
|
}
|
12107
|
-
function
|
12119
|
+
function K(R, x) {
|
12108
12120
|
var W;
|
12109
12121
|
if (!(!!T.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value) && !!A.value) {
|
12110
|
-
if (!
|
12122
|
+
if (!x) {
|
12111
12123
|
u.store.setSelectedRows(s.formID, []);
|
12112
12124
|
return;
|
12113
12125
|
}
|
@@ -12117,28 +12129,28 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12117
12129
|
case 0:
|
12118
12130
|
break;
|
12119
12131
|
case 1:
|
12120
|
-
u.store.setSelectedRows(s.formID, [
|
12132
|
+
u.store.setSelectedRows(s.formID, [x]);
|
12121
12133
|
break;
|
12122
12134
|
}
|
12123
12135
|
break;
|
12124
12136
|
case 2:
|
12125
12137
|
u.store.emit(s.formID, "rowDoubleClick", {
|
12126
|
-
row:
|
12138
|
+
row: x
|
12127
12139
|
});
|
12128
12140
|
break;
|
12129
12141
|
}
|
12130
12142
|
}
|
12131
12143
|
}
|
12132
|
-
function
|
12144
|
+
function G(R = !1) {
|
12133
12145
|
KgLogger.debug(`${s.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
12134
|
-
const
|
12135
|
-
|
12146
|
+
const x = watch(m, (X) => {
|
12147
|
+
X && (setTimeout(() => x()), W());
|
12136
12148
|
}, {
|
12137
12149
|
immediate: !0
|
12138
12150
|
});
|
12139
12151
|
async function W() {
|
12140
|
-
var
|
12141
|
-
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !
|
12152
|
+
var X, F;
|
12153
|
+
if (KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !v.value) {
|
12142
12154
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12143
12155
|
VarButton: s.varButtonSearch.value
|
12144
12156
|
});
|
@@ -12146,120 +12158,122 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12146
12158
|
}
|
12147
12159
|
R && (O.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
12148
12160
|
try {
|
12149
|
-
const
|
12161
|
+
const B = KgUtil.parseParams(k.value, u.profileFormID.value, a), z = ref({});
|
12150
12162
|
await u.store.emit(s.formID, "beforeRetrieve", {
|
12151
|
-
params:
|
12163
|
+
params: B,
|
12152
12164
|
response: z
|
12153
12165
|
}) ? KgLogger.debug(`${s.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : z.value = await httpClient().request({
|
12154
12166
|
method: "GET",
|
12155
|
-
url:
|
12156
|
-
params:
|
12167
|
+
url: v.value,
|
12168
|
+
params: B
|
12157
12169
|
}, {
|
12158
12170
|
successMessageMode: "none"
|
12159
12171
|
});
|
12160
|
-
let J = ref([]),
|
12172
|
+
let J = ref([]), Z = ref(0);
|
12161
12173
|
switch (!0) {
|
12162
12174
|
case !z.value:
|
12163
|
-
J.value = [],
|
12175
|
+
J.value = [], Z.value = 0;
|
12164
12176
|
break;
|
12165
12177
|
case isArrayLike(z.value):
|
12166
|
-
J.value = z.value,
|
12178
|
+
J.value = z.value, Z.value = z.value.length;
|
12167
12179
|
break;
|
12168
12180
|
case ("total" in z.value && "records" in z.value):
|
12169
|
-
J.value = (
|
12181
|
+
J.value = (X = z.value.records) != null ? X : [], Z.value = (F = z.value.total) != null ? F : 0;
|
12170
12182
|
break;
|
12171
12183
|
}
|
12172
12184
|
await u.store.emit(s.formID, "beforeSetDatas", {
|
12173
12185
|
datas: J,
|
12174
|
-
total:
|
12175
|
-
}), $.value = J.value, O.total =
|
12186
|
+
total: Z
|
12187
|
+
}), $.value = J.value, O.total = Z.value, K(), b.value = [], await nextTick(), await u.store.emit(s.formID, "retrieve", {
|
12176
12188
|
page: z.value,
|
12177
12189
|
datas: $
|
12178
12190
|
}), u.store.setIsRetrieved(s.formID, !0);
|
12179
|
-
} catch (
|
12180
|
-
throw
|
12191
|
+
} catch (B) {
|
12192
|
+
throw B;
|
12181
12193
|
} finally {
|
12182
12194
|
u.store.setIsRetrieving(s.formID, !1);
|
12183
12195
|
}
|
12184
12196
|
}
|
12185
12197
|
}
|
12186
12198
|
function Y(R) {
|
12187
|
-
u.store.setSelectedRows(s.formID, R.map((
|
12199
|
+
u.store.setSelectedRows(s.formID, R.map((x) => {
|
12188
12200
|
var W;
|
12189
|
-
return (W = $.value) == null ? void 0 : W.find((
|
12190
|
-
}).filter((
|
12201
|
+
return (W = $.value) == null ? void 0 : W.find((X) => X[u.id.value] === x);
|
12202
|
+
}).filter((x) => !!x));
|
12191
12203
|
}
|
12192
|
-
function
|
12193
|
-
var
|
12204
|
+
function Q(R) {
|
12205
|
+
var x, W;
|
12194
12206
|
switch (u.isMultiSelect.value) {
|
12195
12207
|
case !0:
|
12196
12208
|
{
|
12197
|
-
const
|
12198
|
-
V.value.includes(
|
12209
|
+
const X = R[u.id.value];
|
12210
|
+
V.value.includes(X) ? V.value = without$1(V.value, X) : V.value = [...(x = V.value) != null ? x : [], X];
|
12199
12211
|
}
|
12200
12212
|
break;
|
12201
12213
|
case !1:
|
12202
12214
|
{
|
12203
|
-
const
|
12204
|
-
(W = V.value) != null && W.includes(
|
12215
|
+
const X = R[u.id.value];
|
12216
|
+
(W = V.value) != null && W.includes(X) ? V.value = [] : V.value = [X];
|
12205
12217
|
}
|
12206
12218
|
break;
|
12207
12219
|
}
|
12208
|
-
u.store.setSelectedRows(s.formID, V.value.map((
|
12220
|
+
u.store.setSelectedRows(s.formID, V.value.map((X) => {
|
12209
12221
|
var F;
|
12210
|
-
return (F = $.value) == null ? void 0 : F.find((
|
12211
|
-
}).filter((
|
12222
|
+
return (F = $.value) == null ? void 0 : F.find((B) => B[u.id.value] === X);
|
12223
|
+
}).filter((X) => !!X));
|
12212
12224
|
}
|
12213
|
-
function
|
12214
|
-
|
12225
|
+
function q(R, x) {
|
12226
|
+
x.width = R, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, R);
|
12215
12227
|
}
|
12216
|
-
async function
|
12228
|
+
async function te(R, x, W, X) {
|
12217
12229
|
var F;
|
12218
|
-
switch (
|
12230
|
+
switch (X.action) {
|
12219
12231
|
case "sort":
|
12220
12232
|
{
|
12221
12233
|
await nextTick();
|
12222
|
-
let
|
12223
|
-
|
12234
|
+
let B = W;
|
12235
|
+
B.order ? (D.column = (F = B.field) != null ? F : void 0, D.order = B.order === "ascend" ? "asc" : B.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), G(!0);
|
12224
12236
|
}
|
12225
12237
|
break;
|
12226
12238
|
}
|
12227
12239
|
}
|
12228
|
-
function
|
12229
|
-
var
|
12230
|
-
const W =
|
12231
|
-
switch ((
|
12240
|
+
function re(R, x) {
|
12241
|
+
var X;
|
12242
|
+
const W = x[u.id.value];
|
12243
|
+
switch ((X = s.varGridConfig.value) == null ? void 0 : X.expand_accordion_flg) {
|
12232
12244
|
case 0:
|
12233
|
-
R ?
|
12245
|
+
R ? b.value = uniq([...b.value, W]) : b.value = without$1(b.value, W);
|
12234
12246
|
break;
|
12235
12247
|
default:
|
12236
|
-
R ?
|
12248
|
+
R ? b.value = [W] : b.value = [];
|
12237
12249
|
break;
|
12238
12250
|
}
|
12239
12251
|
}
|
12240
|
-
function ne(R,
|
12241
|
-
|
12252
|
+
function ne(R, x) {
|
12253
|
+
x !== O.pageSize ? (O.pageIndex = 1, O.pageSize = x) : O.pageIndex = R, G();
|
12242
12254
|
}
|
12243
12255
|
function le(R) {
|
12244
|
-
u.store.setSelectedRows(s.formID, [R].map((
|
12256
|
+
u.store.setSelectedRows(s.formID, [R].map((x) => {
|
12245
12257
|
var W;
|
12246
|
-
return (W = $.value) == null ? void 0 : W.find((
|
12247
|
-
}).filter((
|
12258
|
+
return (W = $.value) == null ? void 0 : W.find((X) => X[u.id.value] === x[u.id.value]);
|
12259
|
+
}).filter((x) => !!x)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
12248
12260
|
}
|
12249
12261
|
function ce({
|
12250
12262
|
title: R,
|
12251
|
-
column:
|
12263
|
+
column: x
|
12252
12264
|
}) {
|
12253
|
-
switch (
|
12265
|
+
switch (x.dataIndex) {
|
12254
12266
|
case "index":
|
12255
12267
|
return createVNode(KgTableSetting, {
|
12256
12268
|
kgDisabled: T.value
|
12257
12269
|
}, null);
|
12258
12270
|
default:
|
12259
|
-
return createVNode("pre",
|
12271
|
+
return createVNode("pre", {
|
12272
|
+
title: R
|
12273
|
+
}, [R]);
|
12260
12274
|
}
|
12261
12275
|
}
|
12262
|
-
function
|
12276
|
+
function ae() {
|
12263
12277
|
var R;
|
12264
12278
|
return (R = n == null ? void 0 : n.KgTable) != null && R["summary.bodyCell"] ? createVNode(TableSummary, {
|
12265
12279
|
fixed: "bottom"
|
@@ -12269,18 +12283,18 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12269
12283
|
index: 0
|
12270
12284
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
12271
12285
|
index: P.value ? 1 : 0
|
12272
|
-
}, null), C.value.map((
|
12273
|
-
const
|
12286
|
+
}, null), C.value.map((x, W) => {
|
12287
|
+
const X = s.store.getVarGridDetail(s.formID, x.dataIndex);
|
12274
12288
|
let F = W;
|
12275
12289
|
return P.value && I.value ? F += 2 : (P.value || I.value) && (F += 1), createVNode(TableSummary.Cell, {
|
12276
12290
|
index: F
|
12277
12291
|
}, {
|
12278
12292
|
default: () => {
|
12279
|
-
var
|
12280
|
-
return [(z = (
|
12281
|
-
column:
|
12293
|
+
var B, z;
|
12294
|
+
return [(z = (B = n == null ? void 0 : n.KgTable) == null ? void 0 : B["summary.bodyCell"]) == null ? void 0 : z.call(B, {
|
12295
|
+
column: x,
|
12282
12296
|
index: F,
|
12283
|
-
varGridDetail:
|
12297
|
+
varGridDetail: X
|
12284
12298
|
})];
|
12285
12299
|
}
|
12286
12300
|
});
|
@@ -12290,37 +12304,37 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12290
12304
|
}
|
12291
12305
|
function ue({
|
12292
12306
|
column: R,
|
12293
|
-
index:
|
12307
|
+
index: x,
|
12294
12308
|
record: W,
|
12295
|
-
text:
|
12309
|
+
text: X,
|
12296
12310
|
value: F
|
12297
12311
|
}) {
|
12298
12312
|
var J;
|
12299
|
-
let
|
12300
|
-
R.customRender ?
|
12301
|
-
index:
|
12313
|
+
let B = "";
|
12314
|
+
R.customRender ? B = R.customRender({
|
12315
|
+
index: x,
|
12302
12316
|
record: W,
|
12303
12317
|
column: R,
|
12304
|
-
text:
|
12318
|
+
text: X,
|
12305
12319
|
value: F,
|
12306
|
-
renderIndex:
|
12307
|
-
}) :
|
12320
|
+
renderIndex: x
|
12321
|
+
}) : B = F;
|
12308
12322
|
const z = createVNode(KgTableCell, {
|
12309
12323
|
kgRow: W,
|
12310
|
-
kgValue:
|
12324
|
+
kgValue: B,
|
12311
12325
|
kgVarName: R.dataIndex,
|
12312
12326
|
onKgUpdateLinkClick: () => le(W)
|
12313
12327
|
}, null);
|
12314
12328
|
if ((J = n == null ? void 0 : n.KgTable) != null && J.bodyCell) {
|
12315
|
-
const
|
12329
|
+
const Z = R.dataIndex ? s.store.getVarGridDetail(s.formID, R.dataIndex) : null;
|
12316
12330
|
return n.KgTable.bodyCell({
|
12317
12331
|
column: R,
|
12318
|
-
index:
|
12332
|
+
index: x,
|
12319
12333
|
record: W,
|
12320
|
-
text:
|
12334
|
+
text: X,
|
12321
12335
|
value: F,
|
12322
12336
|
row: W,
|
12323
|
-
varGridDetail:
|
12337
|
+
varGridDetail: Z,
|
12324
12338
|
defaultRender: z
|
12325
12339
|
});
|
12326
12340
|
} else
|
@@ -12334,7 +12348,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12334
12348
|
return createVNode("div", {
|
12335
12349
|
class: w.value,
|
12336
12350
|
"kg-frm_id": s.formID,
|
12337
|
-
ref:
|
12351
|
+
ref: y
|
12338
12352
|
}, [createVNode(Table, {
|
12339
12353
|
class: "kg-flex-table",
|
12340
12354
|
size: "small",
|
@@ -12349,22 +12363,22 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12349
12363
|
loading: _.value,
|
12350
12364
|
rowKey: u.id.value,
|
12351
12365
|
expandColumnWidth: 28,
|
12352
|
-
expandedRowKeys:
|
12366
|
+
expandedRowKeys: b.value,
|
12353
12367
|
rowSelection: A.value,
|
12354
|
-
customRow: (
|
12355
|
-
onClick: (W) =>
|
12368
|
+
customRow: (x) => ({
|
12369
|
+
onClick: (W) => K(W, x)
|
12356
12370
|
}),
|
12357
|
-
onResizeColumn:
|
12358
|
-
onChange:
|
12359
|
-
onExpand:
|
12371
|
+
onResizeColumn: q,
|
12372
|
+
onChange: te,
|
12373
|
+
onExpand: re
|
12360
12374
|
}, {
|
12361
12375
|
headerCell: ce,
|
12362
12376
|
bodyCell: ue,
|
12363
12377
|
emptyText: fe,
|
12364
12378
|
expandedRowRender: (R = n == null ? void 0 : n.KgTable) == null ? void 0 : R.expandedRowRender,
|
12365
|
-
summary:
|
12379
|
+
summary: ae
|
12366
12380
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
12367
|
-
class:
|
12381
|
+
class: U.value
|
12368
12382
|
}, [createVNode("div", {
|
12369
12383
|
class: "left"
|
12370
12384
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
@@ -12379,7 +12393,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12379
12393
|
size: "default",
|
12380
12394
|
current: O.pageIndex,
|
12381
12395
|
pageSize: O.pageSize,
|
12382
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
12396
|
+
pageSizeOptions: u.pageSizeOptions.value.map((x) => String(x)),
|
12383
12397
|
total: O.total,
|
12384
12398
|
showSizeChanger: !0,
|
12385
12399
|
showQuickJumper: !1,
|
@@ -12388,12 +12402,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12388
12402
|
locale: {
|
12389
12403
|
page: ""
|
12390
12404
|
},
|
12391
|
-
showTotal: (
|
12405
|
+
showTotal: (x, W) => i.t("kg.KgTable.totalText", {
|
12392
12406
|
from: W[0],
|
12393
12407
|
to: W[1],
|
12394
|
-
total:
|
12408
|
+
total: x
|
12395
12409
|
}),
|
12396
|
-
onChange: (
|
12410
|
+
onChange: (x, W) => ne(x, W)
|
12397
12411
|
}, null)])])]);
|
12398
12412
|
};
|
12399
12413
|
}
|
@@ -12419,8 +12433,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12419
12433
|
attrs: t
|
12420
12434
|
}) {
|
12421
12435
|
const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
12422
|
-
var u, d, m,
|
12423
|
-
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 || ((
|
12436
|
+
var u, d, m, b, C, g, _, y;
|
12437
|
+
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 || ((b = o.value) == null ? void 0 : b.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;
|
12424
12438
|
});
|
12425
12439
|
async function s() {
|
12426
12440
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -12436,7 +12450,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12436
12450
|
return e.kgText ? e.kgText : r.t("kg.copy");
|
12437
12451
|
}
|
12438
12452
|
return () => {
|
12439
|
-
var u, d, m,
|
12453
|
+
var u, d, m, b;
|
12440
12454
|
return createVNode(Button, {
|
12441
12455
|
type: "primary",
|
12442
12456
|
disabled: i.value,
|
@@ -12446,7 +12460,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12446
12460
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
12447
12461
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
12448
12462
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
12449
|
-
"kg-cmd": (
|
12463
|
+
"kg-cmd": (b = o.value) == null ? void 0 : b.cmd
|
12450
12464
|
}, {
|
12451
12465
|
default: () => [l(), c()]
|
12452
12466
|
});
|
@@ -12601,7 +12615,7 @@ const KgButtonCreate = defineComponent({
|
|
12601
12615
|
async function m() {
|
12602
12616
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
12603
12617
|
}
|
12604
|
-
function
|
12618
|
+
function b() {
|
12605
12619
|
i.store.emit(o.formID, "submitSave");
|
12606
12620
|
}
|
12607
12621
|
function C() {
|
@@ -12617,7 +12631,7 @@ const KgButtonCreate = defineComponent({
|
|
12617
12631
|
function _() {
|
12618
12632
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12619
12633
|
}
|
12620
|
-
function
|
12634
|
+
function y() {
|
12621
12635
|
var k, T, M, E;
|
12622
12636
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
|
12623
12637
|
type: "primary",
|
@@ -12632,10 +12646,10 @@ const KgButtonCreate = defineComponent({
|
|
12632
12646
|
default: () => [g(), _()]
|
12633
12647
|
});
|
12634
12648
|
}
|
12635
|
-
function
|
12649
|
+
function v() {
|
12636
12650
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isCreating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
12637
12651
|
type: "primary",
|
12638
|
-
onClick:
|
12652
|
+
onClick: b,
|
12639
12653
|
disabled: !!o.isCreatingRequesting.value
|
12640
12654
|
}, {
|
12641
12655
|
default: () => [o.isCreatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -12648,15 +12662,15 @@ const KgButtonCreate = defineComponent({
|
|
12648
12662
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
12649
12663
|
})]);
|
12650
12664
|
}
|
12651
|
-
return () => createVNode(Fragment, null, [
|
12665
|
+
return () => createVNode(Fragment, null, [y(), v()]);
|
12652
12666
|
}
|
12653
12667
|
}), KgButtonDelete = defineComponent({
|
12654
12668
|
name: "KgButtonDelete",
|
12655
12669
|
props: getProps$f(),
|
12656
12670
|
setup(e) {
|
12657
12671
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
12658
|
-
var c, u, d, m,
|
12659
|
-
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 = (
|
12672
|
+
var c, u, d, m, b, C, g, _;
|
12673
|
+
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 = (b = a.selectedRows.value) == null ? void 0 : b.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;
|
12660
12674
|
});
|
12661
12675
|
async function i() {
|
12662
12676
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -12699,7 +12713,7 @@ const KgButtonCreate = defineComponent({
|
|
12699
12713
|
var C, g;
|
12700
12714
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
12701
12715
|
}), l = computed(() => {
|
12702
|
-
var g, _,
|
12716
|
+
var g, _, y, v, k, T;
|
12703
12717
|
let C = {
|
12704
12718
|
pageNo: 1,
|
12705
12719
|
pageSize: 9999999,
|
@@ -12707,14 +12721,14 @@ const KgButtonCreate = defineComponent({
|
|
12707
12721
|
};
|
12708
12722
|
return o.value && (C = {
|
12709
12723
|
...C,
|
12710
|
-
...KgVarUtil.parseCommandParameter((
|
12711
|
-
}), (
|
12724
|
+
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
12725
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (C = {
|
12712
12726
|
...C,
|
12713
12727
|
...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
|
12714
12728
|
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && C.column && (C.column = snakeCase$1(C.column)), C;
|
12715
12729
|
}), c = computed(() => {
|
12716
|
-
var C, g, _,
|
12717
|
-
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 || ((
|
12730
|
+
var C, g, _, y, v, k, T, M;
|
12731
|
+
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 && ((k = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12718
12732
|
}), u = ref(!1);
|
12719
12733
|
async function d() {
|
12720
12734
|
var C, g;
|
@@ -12735,8 +12749,8 @@ const KgButtonCreate = defineComponent({
|
|
12735
12749
|
}, {
|
12736
12750
|
joinParamsToUrl: !0,
|
12737
12751
|
isTransformResponse: !1
|
12738
|
-
}),
|
12739
|
-
KgUtil.downloadFile(_, `${
|
12752
|
+
}), y = (C = o.value) == null ? void 0 : C.export_excel_filename;
|
12753
|
+
KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.export")}.${(g = o.value) == null ? void 0 : g.export_excel_suffix}`);
|
12740
12754
|
} catch (_) {
|
12741
12755
|
throw _;
|
12742
12756
|
} finally {
|
@@ -12751,11 +12765,11 @@ const KgButtonCreate = defineComponent({
|
|
12751
12765
|
icon: e.kgIcon
|
12752
12766
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
12753
12767
|
}
|
12754
|
-
function
|
12768
|
+
function b() {
|
12755
12769
|
return e.kgText ? e.kgText : t.t("kg.export");
|
12756
12770
|
}
|
12757
12771
|
return () => {
|
12758
|
-
var C, g, _,
|
12772
|
+
var C, g, _, y;
|
12759
12773
|
return createVNode(Button, {
|
12760
12774
|
type: "primary",
|
12761
12775
|
disabled: c.value,
|
@@ -12765,9 +12779,9 @@ const KgButtonCreate = defineComponent({
|
|
12765
12779
|
"kg-id": (C = o.value) == null ? void 0 : C.id,
|
12766
12780
|
"kg-frm_id": (g = o.value) == null ? void 0 : g.frm_id,
|
12767
12781
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
12768
|
-
"kg-cmd": (
|
12782
|
+
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
12769
12783
|
}, {
|
12770
|
-
default: () => [m(),
|
12784
|
+
default: () => [m(), b()]
|
12771
12785
|
});
|
12772
12786
|
};
|
12773
12787
|
}
|
@@ -12780,47 +12794,47 @@ const KgButtonCreate = defineComponent({
|
|
12780
12794
|
attrs: r
|
12781
12795
|
}) {
|
12782
12796
|
const a = useKg(), n = useKgVar(), o = useKgSearch(), i = useKgTable(), s = computed(() => n.store.getVarButton(n.formID, e.kgVarName)), l = computed(() => {
|
12783
|
-
var _,
|
12784
|
-
return s.value ? (
|
12797
|
+
var _, y;
|
12798
|
+
return s.value ? (y = (_ = s.value) == null ? void 0 : _.cmd) != null ? y : "" : null;
|
12785
12799
|
}), c = computed(() => {
|
12786
|
-
var _,
|
12787
|
-
return (
|
12800
|
+
var _, y;
|
12801
|
+
return (y = (_ = s.value) == null ? void 0 : _.cmd_method) != null ? y : "POST";
|
12788
12802
|
}), u = computed(() => {
|
12789
|
-
var
|
12803
|
+
var y, v, k;
|
12790
12804
|
let _ = {
|
12791
|
-
...(
|
12805
|
+
...(y = o.model.value) != null ? y : {}
|
12792
12806
|
};
|
12793
12807
|
return s.value && (_ = {
|
12794
12808
|
..._,
|
12795
|
-
...KgVarUtil.parseCommandParameter((k = (
|
12809
|
+
...KgVarUtil.parseCommandParameter((k = (v = s.value) == null ? void 0 : v.cmd_prm) != null ? k : "")
|
12796
12810
|
}), _;
|
12797
12811
|
}), d = computed(() => {
|
12798
|
-
var _,
|
12799
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((
|
12812
|
+
var _, y, v, k, T, M, E, P;
|
12813
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = s.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((v = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? v : 0) === 0 || ((k = s.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 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;
|
12800
12814
|
}), m = ref(!1);
|
12801
|
-
async function
|
12815
|
+
async function b(_) {
|
12802
12816
|
if (!l.value)
|
12803
12817
|
return KgLogger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12804
12818
|
VarButton: s.value
|
12805
12819
|
}), !1;
|
12806
12820
|
m.value = !0;
|
12807
12821
|
try {
|
12808
|
-
const
|
12809
|
-
|
12810
|
-
const
|
12822
|
+
const y = new FormData();
|
12823
|
+
y.append("file", _);
|
12824
|
+
const v = await httpClient().axiosInstance.request({
|
12811
12825
|
method: c.value,
|
12812
12826
|
baseURL: window._CONFIG.domianURL,
|
12813
12827
|
url: l.value,
|
12814
12828
|
params: KgUtil.parseParams(u.value),
|
12815
|
-
data:
|
12829
|
+
data: y,
|
12816
12830
|
headers: {
|
12817
12831
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
12818
12832
|
ignoreCancelToken: !0
|
12819
12833
|
}
|
12820
12834
|
});
|
12821
12835
|
message.success(a.t("kg.importSuccess")), o.search(!0);
|
12822
|
-
} catch (
|
12823
|
-
throw
|
12836
|
+
} catch (y) {
|
12837
|
+
throw y;
|
12824
12838
|
} finally {
|
12825
12839
|
m.value = !1;
|
12826
12840
|
}
|
@@ -12839,11 +12853,11 @@ const KgButtonCreate = defineComponent({
|
|
12839
12853
|
return () => createVNode(Upload, {
|
12840
12854
|
name: "file",
|
12841
12855
|
showUploadList: !1,
|
12842
|
-
beforeUpload:
|
12856
|
+
beforeUpload: b,
|
12843
12857
|
disabled: m.value
|
12844
12858
|
}, {
|
12845
12859
|
default: () => {
|
12846
|
-
var _,
|
12860
|
+
var _, y, v, k;
|
12847
12861
|
return [createVNode(Button, {
|
12848
12862
|
class: r.class,
|
12849
12863
|
type: "primary",
|
@@ -12851,8 +12865,8 @@ const KgButtonCreate = defineComponent({
|
|
12851
12865
|
ghost: !e.kgPrimary && !d.value,
|
12852
12866
|
loading: m.value,
|
12853
12867
|
"kg-id": (_ = s.value) == null ? void 0 : _.id,
|
12854
|
-
"kg-frm_id": (
|
12855
|
-
"kg-var_nam": (
|
12868
|
+
"kg-frm_id": (y = s.value) == null ? void 0 : y.frm_id,
|
12869
|
+
"kg-var_nam": (v = s.value) == null ? void 0 : v.var_nam,
|
12856
12870
|
"kg-cmd": (k = s.value) == null ? void 0 : k.cmd
|
12857
12871
|
}, {
|
12858
12872
|
default: () => [C(), g()]
|
@@ -12871,20 +12885,20 @@ const KgButtonCreate = defineComponent({
|
|
12871
12885
|
var C, g;
|
12872
12886
|
return (g = (C = o.value) == null ? void 0 : C.cmd_method) != null ? g : "GET";
|
12873
12887
|
}), l = computed(() => {
|
12874
|
-
var g, _,
|
12888
|
+
var g, _, y, v, k;
|
12875
12889
|
let C = {
|
12876
12890
|
...(g = a.model.value) != null ? g : {}
|
12877
12891
|
};
|
12878
12892
|
return o.value && (C = {
|
12879
12893
|
...C,
|
12880
|
-
...KgVarUtil.parseCommandParameter((
|
12881
|
-
}), (
|
12894
|
+
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
12895
|
+
}), (v = r.varGridConfig.value) != null && v.cmd_prm && (C = {
|
12882
12896
|
...C,
|
12883
12897
|
...KgVarUtil.parseCommandParameter((k = r.varGridConfig.value.cmd_prm) != null ? k : "")
|
12884
12898
|
}), C;
|
12885
12899
|
}), c = computed(() => {
|
12886
|
-
var C, g, _,
|
12887
|
-
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 || ((
|
12900
|
+
var C, g, _, y, v, k, T, M;
|
12901
|
+
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 && ((k = (v = n.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !t.p((M = o.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12888
12902
|
}), u = ref(!1);
|
12889
12903
|
async function d() {
|
12890
12904
|
var C, g;
|
@@ -12904,8 +12918,8 @@ const KgButtonCreate = defineComponent({
|
|
12904
12918
|
}, {
|
12905
12919
|
joinParamsToUrl: !0,
|
12906
12920
|
isTransformResponse: !1
|
12907
|
-
}),
|
12908
|
-
KgUtil.downloadFile(_, `${
|
12921
|
+
}), y = (C = o.value) == null ? void 0 : C.export_excel_filename;
|
12922
|
+
KgUtil.downloadFile(_, `${y ? r.t(y).value : t.t("kg.importTemplate")}.${(g = o.value) == null ? void 0 : g.export_excel_suffix}`);
|
12909
12923
|
} catch (_) {
|
12910
12924
|
throw _;
|
12911
12925
|
} finally {
|
@@ -12919,11 +12933,11 @@ const KgButtonCreate = defineComponent({
|
|
12919
12933
|
icon: e.kgIcon
|
12920
12934
|
}, null)]) : createVNode(UploadOutlined$1, null, null);
|
12921
12935
|
}
|
12922
|
-
function
|
12936
|
+
function b() {
|
12923
12937
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
12924
12938
|
}
|
12925
12939
|
return () => {
|
12926
|
-
var C, g, _,
|
12940
|
+
var C, g, _, y;
|
12927
12941
|
return createVNode(Button, {
|
12928
12942
|
type: "primary",
|
12929
12943
|
disabled: c.value,
|
@@ -12933,9 +12947,9 @@ const KgButtonCreate = defineComponent({
|
|
12933
12947
|
"kg-id": (C = o.value) == null ? void 0 : C.id,
|
12934
12948
|
"kg-frm_id": (g = o.value) == null ? void 0 : g.frm_id,
|
12935
12949
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
12936
|
-
"kg-cmd": (
|
12950
|
+
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
12937
12951
|
}, {
|
12938
|
-
default: () => [m(),
|
12952
|
+
default: () => [m(), b()]
|
12939
12953
|
});
|
12940
12954
|
};
|
12941
12955
|
}
|
@@ -12944,14 +12958,14 @@ const KgButtonCreate = defineComponent({
|
|
12944
12958
|
props: getProps$f(),
|
12945
12959
|
setup(e) {
|
12946
12960
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
12947
|
-
var u, d, m,
|
12948
|
-
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 || ((
|
12961
|
+
var u, d, m, b, C, g, _, y;
|
12962
|
+
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 || ((b = o.value) == null ? void 0 : b.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;
|
12949
12963
|
});
|
12950
12964
|
async function s() {
|
12951
|
-
var
|
12965
|
+
var b, C, g;
|
12952
12966
|
if (e.onKgClick && await e.onKgClick())
|
12953
12967
|
return;
|
12954
|
-
const u = (
|
12968
|
+
const u = (b = e.kgButton) == null ? void 0 : b.cmd;
|
12955
12969
|
if (!u) {
|
12956
12970
|
KgLogger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12957
12971
|
VarButton: e.kgButton
|
@@ -12960,19 +12974,19 @@ const KgButtonCreate = defineComponent({
|
|
12960
12974
|
}
|
12961
12975
|
let d = null;
|
12962
12976
|
const m = async () => {
|
12963
|
-
var
|
12977
|
+
var y, v, k, T, M, E;
|
12964
12978
|
d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
12965
12979
|
const _ = n.selectedRows.value;
|
12966
12980
|
try {
|
12967
12981
|
await httpClient().request({
|
12968
|
-
method: (
|
12982
|
+
method: (v = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? v : "POST",
|
12969
12983
|
url: u,
|
12970
12984
|
params: KgVarUtil.parseCommandParameter((T = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? T : ""),
|
12971
12985
|
data: _ != null ? _ : []
|
12972
12986
|
}), ((M = e.kgButton) == null ? void 0 : M.reload_all_after_done_flg) === 1 && (((E = e.kgButton) == null ? void 0 : E.re_select_after_reload_flg) !== 0 && n.onRetrieve(async ({
|
12973
12987
|
datas: P
|
12974
12988
|
}) => {
|
12975
|
-
const I = P.value, A = intersectionWith$1(I, _ != null ? _ : [], (w,
|
12989
|
+
const I = P.value, A = intersectionWith$1(I, _ != null ? _ : [], (w, U) => (w == null ? void 0 : w[n.id.value]) === (U == null ? void 0 : U[n.id.value]));
|
12976
12990
|
return A.length > 0 && n.store.setSelectedRows(r.formID, A), !1;
|
12977
12991
|
}, !0), a.search(!0));
|
12978
12992
|
} catch (P) {
|
@@ -13001,7 +13015,7 @@ const KgButtonCreate = defineComponent({
|
|
13001
13015
|
return e.kgText ? e.kgText : t.t("kg.button");
|
13002
13016
|
}
|
13003
13017
|
return () => {
|
13004
|
-
var u, d, m,
|
13018
|
+
var u, d, m, b;
|
13005
13019
|
return createVNode(Button, {
|
13006
13020
|
type: "primary",
|
13007
13021
|
disabled: i.value,
|
@@ -13011,7 +13025,7 @@ const KgButtonCreate = defineComponent({
|
|
13011
13025
|
"kg-id": (u = o.value) == null ? void 0 : u.id,
|
13012
13026
|
"kg-frm_id": (d = o.value) == null ? void 0 : d.frm_id,
|
13013
13027
|
"kg-var_nam": (m = o.value) == null ? void 0 : m.var_nam,
|
13014
|
-
"kg-cmd": (
|
13028
|
+
"kg-cmd": (b = o.value) == null ? void 0 : b.cmd
|
13015
13029
|
}, {
|
13016
13030
|
default: () => [l(), c()]
|
13017
13031
|
});
|
@@ -13085,7 +13099,7 @@ const KgButtonCreate = defineComponent({
|
|
13085
13099
|
row: i.selectedRow.value
|
13086
13100
|
}) || o.store.setIsUpdating(o.formID, !0);
|
13087
13101
|
}
|
13088
|
-
function
|
13102
|
+
function b() {
|
13089
13103
|
s.store.emit(o.formID, "submitSave");
|
13090
13104
|
}
|
13091
13105
|
function C() {
|
@@ -13101,7 +13115,7 @@ const KgButtonCreate = defineComponent({
|
|
13101
13115
|
function _() {
|
13102
13116
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13103
13117
|
}
|
13104
|
-
function
|
13118
|
+
function y() {
|
13105
13119
|
var k, T, M, E;
|
13106
13120
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
|
13107
13121
|
type: "primary",
|
@@ -13117,10 +13131,10 @@ const KgButtonCreate = defineComponent({
|
|
13117
13131
|
default: () => [g(), _()]
|
13118
13132
|
});
|
13119
13133
|
}
|
13120
|
-
function
|
13134
|
+
function v() {
|
13121
13135
|
return l.displayType.value !== KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE || !o.isUpdating.value ? null : createVNode(Fragment, null, [createVNode(Button, {
|
13122
13136
|
type: "primary",
|
13123
|
-
onClick:
|
13137
|
+
onClick: b,
|
13124
13138
|
disabled: !!o.isUpdatingRequesting.value
|
13125
13139
|
}, {
|
13126
13140
|
default: () => [o.isUpdatingRequesting.value ? createVNode(LoadingOutlined$1, null, null) : createVNode(CheckOutlined$1, null, null), n.t("kg.save")]
|
@@ -13133,7 +13147,7 @@ const KgButtonCreate = defineComponent({
|
|
13133
13147
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
13134
13148
|
})]);
|
13135
13149
|
}
|
13136
|
-
return () => createVNode(Fragment, null, [
|
13150
|
+
return () => createVNode(Fragment, null, [y(), v()]);
|
13137
13151
|
}
|
13138
13152
|
}), KgButton_Item = "";
|
13139
13153
|
function _isSlot$4(e) {
|
@@ -13207,8 +13221,8 @@ const getProps$e = () => ({
|
|
13207
13221
|
}
|
13208
13222
|
function l(g) {
|
13209
13223
|
return computed(() => {
|
13210
|
-
var
|
13211
|
-
const _ = ((
|
13224
|
+
var y, v;
|
13225
|
+
const _ = ((v = (y = r == null ? void 0 : r.value) == null ? void 0 : y.KgButton) == null ? void 0 : v.kgDisabled) || e.kgDisabled;
|
13212
13226
|
if (_) {
|
13213
13227
|
const k = _(g);
|
13214
13228
|
if (!isNil(k))
|
@@ -13238,7 +13252,7 @@ const getProps$e = () => ({
|
|
13238
13252
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
13239
13253
|
return C();
|
13240
13254
|
default:
|
13241
|
-
return
|
13255
|
+
return b();
|
13242
13256
|
}
|
13243
13257
|
}
|
13244
13258
|
function m(g) {
|
@@ -13254,7 +13268,7 @@ const getProps$e = () => ({
|
|
13254
13268
|
onKgClick: () => s(g)
|
13255
13269
|
}, null);
|
13256
13270
|
}
|
13257
|
-
function
|
13271
|
+
function b() {
|
13258
13272
|
var g;
|
13259
13273
|
return (g = n.varButtons.value) == null ? void 0 : g.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
|
13260
13274
|
}
|
@@ -13271,10 +13285,10 @@ const getProps$e = () => ({
|
|
13271
13285
|
overlay: () => createVNode(Menu, null, {
|
13272
13286
|
default: () => {
|
13273
13287
|
var g, _;
|
13274
|
-
return [(_ = (g = n.varButtons.value) == null ? void 0 : g.filter((
|
13275
|
-
let
|
13276
|
-
return createVNode(Menu.Item, null, _isSlot$3(
|
13277
|
-
default: () => [
|
13288
|
+
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) => {
|
13289
|
+
let v;
|
13290
|
+
return createVNode(Menu.Item, null, _isSlot$3(v = m(y)) ? v : {
|
13291
|
+
default: () => [v]
|
13278
13292
|
});
|
13279
13293
|
})];
|
13280
13294
|
}
|
@@ -13457,7 +13471,11 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
13457
13471
|
const a = watch(
|
13458
13472
|
() => this.modelMap.get(e),
|
13459
13473
|
(n) => {
|
13460
|
-
n &&
|
13474
|
+
n && setTimeout(() => {
|
13475
|
+
a(), Object.entries(t).forEach(([o, i]) => {
|
13476
|
+
o in n && (n[o] = i);
|
13477
|
+
}), r();
|
13478
|
+
});
|
13461
13479
|
},
|
13462
13480
|
{ immediate: !0 }
|
13463
13481
|
);
|
@@ -13693,8 +13711,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13693
13711
|
i.onOpen(async ({
|
13694
13712
|
isCreating: g,
|
13695
13713
|
isUpdating: _,
|
13696
|
-
isCopying:
|
13697
|
-
row:
|
13714
|
+
isCopying: y,
|
13715
|
+
row: v,
|
13698
13716
|
model: k
|
13699
13717
|
}) => {
|
13700
13718
|
var M, E, P;
|
@@ -13704,21 +13722,21 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13704
13722
|
c.value = [];
|
13705
13723
|
break;
|
13706
13724
|
case _:
|
13707
|
-
case
|
13708
|
-
if (
|
13725
|
+
case y:
|
13726
|
+
if (v != null && v.id)
|
13709
13727
|
try {
|
13710
13728
|
i.store.setIsLoading(a.formID, !0);
|
13711
13729
|
const I = await QueryByID({
|
13712
13730
|
params: {
|
13713
|
-
id:
|
13731
|
+
id: v.id
|
13714
13732
|
}
|
13715
13733
|
});
|
13716
13734
|
l.value = l.value.map((w) => {
|
13717
13735
|
var $;
|
13718
|
-
const
|
13719
|
-
return
|
13736
|
+
const U = ($ = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : $.find((V) => V.var_nam === w.var_nam);
|
13737
|
+
return U ? {
|
13720
13738
|
...w,
|
13721
|
-
...
|
13739
|
+
...U,
|
13722
13740
|
id: w.id
|
13723
13741
|
} : w;
|
13724
13742
|
});
|
@@ -13734,7 +13752,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13734
13752
|
break;
|
13735
13753
|
}
|
13736
13754
|
switch (!0) {
|
13737
|
-
case
|
13755
|
+
case y:
|
13738
13756
|
k.value.prf_var_nam = ((P = k.value.prf_var_nam) != null ? P : "") + "_COPY";
|
13739
13757
|
break;
|
13740
13758
|
}
|
@@ -13742,9 +13760,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13742
13760
|
}), i.onBeforeOk(async ({
|
13743
13761
|
model: g
|
13744
13762
|
}) => {
|
13745
|
-
var
|
13763
|
+
var y, v;
|
13746
13764
|
const _ = g.value;
|
13747
|
-
return _.frm_id = s.formID, _.varProfileDetails = (
|
13765
|
+
return _.frm_id = s.formID, _.varProfileDetails = (v = (y = l.value) == null ? void 0 : y.filter((k) => c.value.includes(k.id))) != null ? v : [], !1;
|
13748
13766
|
}), i.onOk(async () => (s.store.retrieve(s.formID), !1)), o.onUpdateBeforeClick(({
|
13749
13767
|
row: g
|
13750
13768
|
}) => (g == null ? void 0 : g.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((_) => {
|
@@ -13771,8 +13789,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13771
13789
|
varProfileDetails: ({
|
13772
13790
|
varName: g,
|
13773
13791
|
props: _,
|
13774
|
-
model:
|
13775
|
-
varVariableConfig:
|
13792
|
+
model: y,
|
13793
|
+
varVariableConfig: v,
|
13776
13794
|
varProfileDetail: k,
|
13777
13795
|
varSubmitField: T
|
13778
13796
|
}) => createVNode(Transfer, {
|
@@ -13806,8 +13824,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13806
13824
|
columns: M === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
13807
13825
|
rowKey: "id",
|
13808
13826
|
dataSource: E,
|
13809
|
-
customRow: (
|
13810
|
-
onClick: ($) => C($,
|
13827
|
+
customRow: (U) => ({
|
13828
|
+
onClick: ($) => C($, U, M, P)
|
13811
13829
|
}),
|
13812
13830
|
rowSelection: m({
|
13813
13831
|
disabled: I,
|
@@ -13821,13 +13839,13 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13821
13839
|
}
|
13822
13840
|
});
|
13823
13841
|
onMounted(() => {
|
13824
|
-
|
13842
|
+
b();
|
13825
13843
|
});
|
13826
13844
|
const m = ({
|
13827
13845
|
disabled: g,
|
13828
13846
|
selectedKeys: _,
|
13829
|
-
onItemSelectAll:
|
13830
|
-
onItemSelect:
|
13847
|
+
onItemSelectAll: y,
|
13848
|
+
onItemSelect: v
|
13831
13849
|
}) => ({
|
13832
13850
|
getCheckboxProps: (k) => ({
|
13833
13851
|
disabled: g || k.disabled
|
@@ -13836,17 +13854,17 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13836
13854
|
const M = T.filter((E) => !E.disabled).map(({
|
13837
13855
|
key: E
|
13838
13856
|
}) => E);
|
13839
|
-
|
13857
|
+
y(M, k);
|
13840
13858
|
},
|
13841
13859
|
onSelect({
|
13842
13860
|
key: k
|
13843
13861
|
}, T) {
|
13844
|
-
|
13862
|
+
v(k, T);
|
13845
13863
|
},
|
13846
13864
|
selectedRowKeys: _,
|
13847
13865
|
columnWidth: 32
|
13848
13866
|
});
|
13849
|
-
async function
|
13867
|
+
async function b() {
|
13850
13868
|
const g = watch(n.isReady, async (_) => {
|
13851
13869
|
_ && n.model.value && (setTimeout(() => g(), 0), await n.store.patchModel(a.formID, {
|
13852
13870
|
frm_id: e.hostFormID
|
@@ -13855,14 +13873,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13855
13873
|
immediate: !0
|
13856
13874
|
});
|
13857
13875
|
}
|
13858
|
-
function C(g, _,
|
13876
|
+
function C(g, _, y, v) {
|
13859
13877
|
if (!KgDomUtil.isNotClickable(g.target, ["ant-input"]))
|
13860
|
-
switch (
|
13878
|
+
switch (v.length = 0, g.detail) {
|
13861
13879
|
case 1:
|
13862
|
-
|
13880
|
+
v[0] = _.id;
|
13863
13881
|
break;
|
13864
13882
|
case 2:
|
13865
|
-
switch (
|
13883
|
+
switch (y) {
|
13866
13884
|
case "left":
|
13867
13885
|
c.value.push(_.id);
|
13868
13886
|
break;
|
@@ -13968,10 +13986,10 @@ function _useLayoutHeaderResizeObserver() {
|
|
13968
13986
|
}
|
13969
13987
|
function _useCommon() {
|
13970
13988
|
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(() => {
|
13971
|
-
var m,
|
13989
|
+
var m, b, C;
|
13972
13990
|
if (!n.value || a.value > 0)
|
13973
13991
|
return !1;
|
13974
|
-
const d = (
|
13992
|
+
const d = (b = (m = e == null ? void 0 : e.value) == null ? void 0 : m.KgSearch) == null ? void 0 : b.kgHeaderTeleport;
|
13975
13993
|
return d !== void 0 ? d : ((C = r.value) == null ? void 0 : C.header_teleport_flg) !== 0;
|
13976
13994
|
}), i = computed(() => {
|
13977
13995
|
var d;
|
@@ -14001,20 +14019,28 @@ function _useFormModel(e, t) {
|
|
14001
14019
|
} = _useCommon();
|
14002
14020
|
let s;
|
14003
14021
|
const l = ref({});
|
14004
|
-
|
14005
|
-
|
14006
|
-
|
14007
|
-
|
14008
|
-
|
14009
|
-
|
14010
|
-
|
14022
|
+
async function c() {
|
14023
|
+
var u;
|
14024
|
+
((u = a.currentVarProfileDetails.value) != null ? u : []).forEach((d) => {
|
14025
|
+
var b, C;
|
14026
|
+
const m = (b = d.var_nam) != null ? b : "";
|
14027
|
+
l.value[m] = KgVarUtil.transformValueByControlType(a.formID, m, r, (C = d.dft_val) != null ? C : void 0, "R");
|
14028
|
+
}), t.value.kgHeight = i.value, n.store.setModel(a.formID, l.value), o.value ? (s == null || s(), s = watch(e, async (d) => {
|
14029
|
+
d && (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
|
14011
14030
|
}, {
|
14012
14031
|
immediate: !0
|
14013
|
-
})) : (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0))
|
14032
|
+
})) : (await n.store.emit(a.formID, "ready", {}), n.store.setIsReady(a.formID, !0));
|
14033
|
+
}
|
14034
|
+
return watch(a.currentVarProfileDetails, async (u) => {
|
14035
|
+
if (l.value = {}, isNil(u)) {
|
14036
|
+
n.store.setModel(a.formID, l.value);
|
14037
|
+
return;
|
14038
|
+
}
|
14039
|
+
await c();
|
14014
14040
|
}, {
|
14015
14041
|
immediate: !0
|
14016
14042
|
}), {
|
14017
|
-
|
14043
|
+
initFormModel: c
|
14018
14044
|
};
|
14019
14045
|
}
|
14020
14046
|
const KgSearch$1 = "", getProps$9 = () => ({
|
@@ -14037,28 +14063,28 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14037
14063
|
defaultHeight: u,
|
14038
14064
|
maxHeight: d,
|
14039
14065
|
minHeight: m
|
14040
|
-
} = _useCommon(),
|
14066
|
+
} = _useCommon(), b = ref(null), C = ref({
|
14041
14067
|
kgHeight: m.value
|
14042
14068
|
});
|
14043
|
-
_useLayoutHeaderResizeObserver()
|
14044
|
-
const g = computed(() => {
|
14045
|
-
var
|
14046
|
-
if (!isNil((
|
14047
|
-
return (
|
14069
|
+
_useLayoutHeaderResizeObserver();
|
14070
|
+
const g = _useFormModel(b, C), _ = computed(() => {
|
14071
|
+
var K, G, Y, Q;
|
14072
|
+
if (!isNil((G = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : G.kgDisabled))
|
14073
|
+
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
|
14048
14074
|
if (!isNil(e.kgDisabled))
|
14049
14075
|
return e.kgDisabled;
|
14050
|
-
}),
|
14051
|
-
var
|
14052
|
-
return !!(
|
14053
|
-
}),
|
14076
|
+
}), y = computed(() => {
|
14077
|
+
var K, G;
|
14078
|
+
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.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);
|
14079
|
+
}), v = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), k = computed(() => !!(_.value || i.isRetrieving.value)), T = ref({
|
14054
14080
|
visible: !1
|
14055
|
-
}),
|
14056
|
-
var
|
14057
|
-
if (n.t((
|
14058
|
-
return n.t((
|
14059
|
-
}),
|
14060
|
-
var
|
14061
|
-
switch ((
|
14081
|
+
}), M = computed(() => C.value.kgHeight === m.value), E = computed(() => {
|
14082
|
+
var K, G, Y;
|
14083
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((G = n.varButtonSearch.value) == null ? void 0 : G.var_nam))
|
14084
|
+
return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
|
14085
|
+
}), P = computed(() => {
|
14086
|
+
var K;
|
14087
|
+
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
14062
14088
|
case 1:
|
14063
14089
|
return !0;
|
14064
14090
|
case 0:
|
@@ -14066,124 +14092,123 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14066
14092
|
default:
|
14067
14093
|
return !0;
|
14068
14094
|
}
|
14069
|
-
}),
|
14070
|
-
let
|
14071
|
-
return s.value && (
|
14095
|
+
}), I = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), A = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), w = computed(() => {
|
14096
|
+
let K = "kg-search";
|
14097
|
+
return s.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
14072
14098
|
});
|
14073
14099
|
onUnmounted(() => {
|
14074
14100
|
o.store.dispose(n.formID);
|
14075
14101
|
});
|
14076
|
-
async function
|
14077
|
-
|
14102
|
+
async function U(K = !1) {
|
14103
|
+
y.value || (s.value ? b.value && b.value.validate().then(async () => {
|
14078
14104
|
await o.store.emit(n.formID, "search", {
|
14079
|
-
resetPageIndex:
|
14105
|
+
resetPageIndex: K
|
14080
14106
|
});
|
14081
|
-
}).catch((
|
14107
|
+
}).catch((G) => {
|
14082
14108
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
14083
|
-
e:
|
14109
|
+
e: G
|
14084
14110
|
});
|
14085
14111
|
}) : await o.store.emit(n.formID, "search", {
|
14086
|
-
resetPageIndex:
|
14112
|
+
resetPageIndex: K
|
14087
14113
|
}));
|
14088
14114
|
}
|
14089
|
-
o.store.setSearchFn(n.formID,
|
14090
|
-
async function
|
14091
|
-
|
14092
|
-
(N = v.value) == null || N.resetFields(), s.value ? v.value && v.value.validate().then(async () => {
|
14115
|
+
o.store.setSearchFn(n.formID, U);
|
14116
|
+
async function $() {
|
14117
|
+
g.initFormModel(), s.value ? b.value && b.value.validate().then(async () => {
|
14093
14118
|
await o.store.emit(n.formID, "reset", {});
|
14094
|
-
}).catch((
|
14119
|
+
}).catch((K) => {
|
14095
14120
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
14096
|
-
e:
|
14121
|
+
e: K
|
14097
14122
|
});
|
14098
14123
|
}) : await o.store.emit(n.formID, "reset", {});
|
14099
14124
|
}
|
14100
|
-
o.store.setResetFn(n.formID,
|
14101
|
-
function $() {
|
14102
|
-
return w(!0), Promise.resolve(!0);
|
14103
|
-
}
|
14125
|
+
o.store.setResetFn(n.formID, $);
|
14104
14126
|
function V() {
|
14105
|
-
|
14127
|
+
return U(!0), Promise.resolve(!0);
|
14128
|
+
}
|
14129
|
+
function O() {
|
14130
|
+
var K;
|
14106
14131
|
return createVNode("div", {
|
14107
14132
|
class: "title",
|
14108
|
-
onClick:
|
14109
|
-
}, [((
|
14133
|
+
onClick: H
|
14134
|
+
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
14110
14135
|
class: "kg-search-title-left",
|
14111
|
-
onClick: (
|
14112
|
-
|
14136
|
+
onClick: (G) => {
|
14137
|
+
G.stopPropagation(), G.preventDefault();
|
14113
14138
|
}
|
14114
|
-
}, [t.KgSearch.left()]),
|
14139
|
+
}, [t.KgSearch.left()]), M.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
14115
14140
|
}
|
14116
|
-
function
|
14117
|
-
var
|
14118
|
-
return ((
|
14119
|
-
value: (
|
14120
|
-
"onUpdate:value": (
|
14121
|
-
disabled:
|
14141
|
+
function D() {
|
14142
|
+
var K, G, Y, Q;
|
14143
|
+
return ((Y = (G = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : G.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
14144
|
+
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
14145
|
+
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
14146
|
+
disabled: v.value,
|
14122
14147
|
class: "kg-search-profile-master-select"
|
14123
14148
|
}, {
|
14124
14149
|
default: () => {
|
14125
|
-
var
|
14126
|
-
return (
|
14127
|
-
value:
|
14150
|
+
var q, te;
|
14151
|
+
return (te = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : te.map((re) => createVNode(Select.Option, {
|
14152
|
+
value: re.id
|
14128
14153
|
}, {
|
14129
|
-
default: () => [n.t(
|
14154
|
+
default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
|
14130
14155
|
}));
|
14131
14156
|
},
|
14132
14157
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
14133
14158
|
}), createVNode(Button, {
|
14134
|
-
disabled:
|
14159
|
+
disabled: v.value,
|
14135
14160
|
onClick: () => {
|
14136
|
-
|
14161
|
+
T.value.visible = !0;
|
14137
14162
|
},
|
14138
14163
|
class: "kg-search-profile-master-btn"
|
14139
14164
|
}, {
|
14140
14165
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
14141
14166
|
}), createVNode(KgSearchConfigModal, {
|
14142
|
-
visible:
|
14143
|
-
"onUpdate:visible": (
|
14167
|
+
visible: T.value.visible,
|
14168
|
+
"onUpdate:visible": (q) => T.value.visible = q,
|
14144
14169
|
hostFormID: n.formID
|
14145
14170
|
}, null)]);
|
14146
14171
|
}
|
14147
|
-
function
|
14148
|
-
var
|
14149
|
-
return createVNode(Fragment, null, [
|
14172
|
+
function N() {
|
14173
|
+
var K, G, Y, Q, q;
|
14174
|
+
return createVNode(Fragment, null, [D(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((G = n.varButtonSearch.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
|
14150
14175
|
type: "primary",
|
14151
|
-
ghost: !
|
14152
|
-
disabled:
|
14153
|
-
onClick:
|
14176
|
+
ghost: !y.value,
|
14177
|
+
disabled: y.value,
|
14178
|
+
onClick: $,
|
14154
14179
|
class: "kg-search-btn-reset"
|
14155
14180
|
}, {
|
14156
14181
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
14157
14182
|
}), createVNode(KgButton.Item, {
|
14158
14183
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
14159
|
-
kgVarName: (
|
14160
|
-
kgIcon: (
|
14161
|
-
kgText:
|
14162
|
-
kgColor: (
|
14163
|
-
kgPrimary:
|
14164
|
-
kgLoading:
|
14165
|
-
onKgClick:
|
14184
|
+
kgVarName: (Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam,
|
14185
|
+
kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
|
14186
|
+
kgText: E.value,
|
14187
|
+
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
14188
|
+
kgPrimary: P.value,
|
14189
|
+
kgLoading: k.value,
|
14190
|
+
onKgClick: V
|
14166
14191
|
}, null)]);
|
14167
14192
|
}
|
14168
|
-
function
|
14193
|
+
function L() {
|
14169
14194
|
return createVNode(Spin, {
|
14170
|
-
spinning:
|
14195
|
+
spinning: A.value
|
14171
14196
|
}, {
|
14172
14197
|
default: () => {
|
14173
|
-
var
|
14198
|
+
var K;
|
14174
14199
|
return [createVNode(KgForm, {
|
14175
|
-
ref:
|
14176
|
-
model: (
|
14200
|
+
ref: b,
|
14201
|
+
model: (K = o.model.value) != null ? K : {}
|
14177
14202
|
}, {
|
14178
14203
|
default: () => [createVNode(Row, {
|
14179
14204
|
gutter: 6
|
14180
14205
|
}, {
|
14181
14206
|
default: () => {
|
14182
|
-
var
|
14183
|
-
return [(
|
14184
|
-
kgVarName:
|
14207
|
+
var G;
|
14208
|
+
return [(G = n.currentVarProfileDetails.value) == null ? void 0 : G.map((Y) => createVNode(KgForm.Item, {
|
14209
|
+
kgVarName: Y.var_nam,
|
14185
14210
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
14186
|
-
onKgSubmit: () =>
|
14211
|
+
onKgSubmit: () => U(!0)
|
14187
14212
|
}, null))];
|
14188
14213
|
}
|
14189
14214
|
})]
|
@@ -14191,16 +14216,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14191
14216
|
}
|
14192
14217
|
});
|
14193
14218
|
}
|
14194
|
-
function
|
14195
|
-
|
14219
|
+
function H() {
|
14220
|
+
M.value ? C.value.kgHeight = u.value : C.value.kgHeight = m.value;
|
14196
14221
|
}
|
14197
14222
|
return () => createVNode(KgResizable, {
|
14198
14223
|
kgHeight: C.value.kgHeight,
|
14199
|
-
"onUpdate:kgHeight": (
|
14224
|
+
"onUpdate:kgHeight": (K) => C.value.kgHeight = K,
|
14200
14225
|
kgMinHeight: m.value,
|
14201
14226
|
kgMaxHeight: d.value,
|
14202
14227
|
kgDisabled: !l.value,
|
14203
|
-
kgClass:
|
14228
|
+
kgClass: w.value,
|
14204
14229
|
"kg-frm_id": n.formID
|
14205
14230
|
}, {
|
14206
14231
|
default: () => [s.value && createVNode("div", {
|
@@ -14214,17 +14239,17 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14214
14239
|
default: () => [createVNode("div", {
|
14215
14240
|
class: "ant-collapse-header"
|
14216
14241
|
}, [createVNode(Spin, {
|
14217
|
-
spinning:
|
14242
|
+
spinning: I.value
|
14218
14243
|
}, {
|
14219
|
-
default: () => [
|
14244
|
+
default: () => [O(), createVNode("div", {
|
14220
14245
|
class: "ant-collapse-extra"
|
14221
|
-
}, [
|
14246
|
+
}, [N()])]
|
14222
14247
|
})])]
|
14223
14248
|
}), createVNode("div", {
|
14224
14249
|
class: "ant-collapse-content ant-collapse-content-active"
|
14225
14250
|
}, [createVNode("div", {
|
14226
14251
|
class: "ant-collapse-content-box"
|
14227
|
-
}, [
|
14252
|
+
}, [L()])])])])]
|
14228
14253
|
});
|
14229
14254
|
}
|
14230
14255
|
});
|
@@ -14288,9 +14313,9 @@ function useMagicKeys(e = {}) {
|
|
14288
14313
|
for (const g of u)
|
14289
14314
|
d(g, !1);
|
14290
14315
|
}
|
14291
|
-
function
|
14292
|
-
var
|
14293
|
-
const k = (
|
14316
|
+
function b(g, _) {
|
14317
|
+
var y, v;
|
14318
|
+
const k = (y = g.key) == null ? void 0 : y.toLowerCase(), T = (v = g.code) == null ? void 0 : v.toLowerCase(), M = [T, k].filter(Boolean);
|
14294
14319
|
T && (_ ? i.add(g.code) : i.delete(g.code));
|
14295
14320
|
for (const E of M)
|
14296
14321
|
u.add(E), d(E, _);
|
@@ -14298,19 +14323,19 @@ function useMagicKeys(e = {}) {
|
|
14298
14323
|
i.delete(E), d(E, !1);
|
14299
14324
|
}), c.clear()) : typeof g.getModifierState == "function" && g.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
|
14300
14325
|
}
|
14301
|
-
r && (useEventListener(r, "keydown", (g) => (
|
14326
|
+
r && (useEventListener(r, "keydown", (g) => (b(g, !0), o(g)), { passive: n }), useEventListener(r, "keyup", (g) => (b(g, !1), o(g)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
14302
14327
|
const C = new Proxy(l, {
|
14303
|
-
get(g, _,
|
14328
|
+
get(g, _, y) {
|
14304
14329
|
if (typeof _ != "string")
|
14305
|
-
return Reflect.get(g, _,
|
14330
|
+
return Reflect.get(g, _, y);
|
14306
14331
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
|
14307
14332
|
if (/[+_-]/.test(_)) {
|
14308
14333
|
const k = _.split(/[+_-]/g).map((T) => T.trim());
|
14309
14334
|
l[_] = computed(() => k.every((T) => unref(C[T])));
|
14310
14335
|
} else
|
14311
14336
|
l[_] = ref(!1);
|
14312
|
-
const
|
14313
|
-
return t ? unref(
|
14337
|
+
const v = Reflect.get(g, _, y);
|
14338
|
+
return t ? unref(v) : v;
|
14314
14339
|
}
|
14315
14340
|
});
|
14316
14341
|
return C;
|
@@ -14696,26 +14721,26 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14696
14721
|
hideSelectAll: !0,
|
14697
14722
|
selectedRowKeys: d,
|
14698
14723
|
onSelect: ($) => P($)
|
14699
|
-
}),
|
14724
|
+
}), b = ref({
|
14700
14725
|
visible: !1
|
14701
14726
|
}), C = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), g = computed(() => {
|
14702
14727
|
var $;
|
14703
14728
|
return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14704
|
-
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))),
|
14729
|
+
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
14705
14730
|
watch(() => a.getSelectedVar, ($) => {
|
14706
|
-
$ ?
|
14731
|
+
$ ? v() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
14707
14732
|
}, {
|
14708
14733
|
immediate: !0
|
14709
14734
|
}), watch(() => a.getSelectedVarCatalog, async ($) => {
|
14710
14735
|
var V, O;
|
14711
14736
|
l.value.var_text = (V = $ == null ? void 0 : $.var_text) != null ? V : "", (O = s.value) == null || O.clearValidate();
|
14712
14737
|
});
|
14713
|
-
async function
|
14738
|
+
async function v($ = !1) {
|
14714
14739
|
var V, O, D;
|
14715
14740
|
n.value = !0;
|
14716
14741
|
try {
|
14717
14742
|
const {
|
14718
|
-
records:
|
14743
|
+
records: N
|
14719
14744
|
} = await List({
|
14720
14745
|
params: {
|
14721
14746
|
pageNo: 1,
|
@@ -14726,16 +14751,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14726
14751
|
order: "asc"
|
14727
14752
|
}
|
14728
14753
|
});
|
14729
|
-
if (u.value = null, c.value =
|
14730
|
-
const L = c.value.find((
|
14731
|
-
var
|
14732
|
-
return
|
14754
|
+
if (u.value = null, c.value = N != null ? N : [], $) {
|
14755
|
+
const L = c.value.find((H) => {
|
14756
|
+
var K;
|
14757
|
+
return H.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
14733
14758
|
});
|
14734
14759
|
a.setSelectedVarCatalog(L != null ? L : null), d.value = L != null && L.id ? [L.id] : [];
|
14735
14760
|
} else
|
14736
14761
|
a.setSelectedVarCatalog((O = c.value[0]) != null ? O : null), d.value = (D = c.value[0]) != null && D.id ? [c.value[0].id] : [];
|
14737
|
-
} catch (
|
14738
|
-
KgLogger.debug(
|
14762
|
+
} catch (N) {
|
14763
|
+
KgLogger.debug(N == null ? void 0 : N.message);
|
14739
14764
|
} finally {
|
14740
14765
|
n.value = !1;
|
14741
14766
|
}
|
@@ -14754,19 +14779,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14754
14779
|
successMessageMode: "none"
|
14755
14780
|
}), message.success({
|
14756
14781
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14757
|
-
}), await
|
14782
|
+
}), await v()) : (await Edit({
|
14758
14783
|
data: D
|
14759
14784
|
}, {
|
14760
14785
|
successMessageMode: "none"
|
14761
14786
|
}), message.success({
|
14762
14787
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
14763
|
-
}), await
|
14788
|
+
}), await v(!0)) : (await Add({
|
14764
14789
|
data: D
|
14765
14790
|
}, {
|
14766
14791
|
successMessageMode: "none"
|
14767
14792
|
}), message.success({
|
14768
14793
|
content: t.t("kg.KgVarConfig.createSuccess")
|
14769
|
-
}), await
|
14794
|
+
}), await v()), r.retrieve(e == null ? void 0 : e.value);
|
14770
14795
|
} catch (D) {
|
14771
14796
|
KgUtil.throwIfNotFormError(D);
|
14772
14797
|
} finally {
|
@@ -14777,14 +14802,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14777
14802
|
isAllForm: $,
|
14778
14803
|
isAllLanguage: V
|
14779
14804
|
}) {
|
14780
|
-
var O, D,
|
14805
|
+
var O, D, N;
|
14781
14806
|
u.value = new VarCatalog({
|
14782
14807
|
id: "",
|
14783
14808
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
14784
14809
|
grp_nam: (O = a.getSelectedVar) == null ? void 0 : O.grp_nam,
|
14785
14810
|
var_nam: (D = a.getSelectedVar) == null ? void 0 : D.var_nam,
|
14786
14811
|
frm_id: $ || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
14787
|
-
locale_id: V ? "ALL" : (
|
14812
|
+
locale_id: V ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
|
14788
14813
|
var_text: ""
|
14789
14814
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
14790
14815
|
}
|
@@ -14807,7 +14832,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14807
14832
|
joinParamsToUrl: !0
|
14808
14833
|
}), message.success({
|
14809
14834
|
content: t.t("kg.KgVarConfig.deleteSuccess")
|
14810
|
-
}), r.retrieve(e == null ? void 0 : e.value), await
|
14835
|
+
}), r.retrieve(e == null ? void 0 : e.value), await v();
|
14811
14836
|
}
|
14812
14837
|
});
|
14813
14838
|
}
|
@@ -14821,7 +14846,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14821
14846
|
}) : (a.setSelectedVarCatalog(unref($)), d.value = [$.id]));
|
14822
14847
|
}
|
14823
14848
|
function I() {
|
14824
|
-
|
14849
|
+
b.value.visible = !0;
|
14825
14850
|
}
|
14826
14851
|
function A() {
|
14827
14852
|
return createVNode("div", {
|
@@ -14875,14 +14900,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14875
14900
|
default: () => [$]
|
14876
14901
|
}), createVNode(Button, {
|
14877
14902
|
loading: o.value,
|
14878
|
-
disabled:
|
14903
|
+
disabled: y.value,
|
14879
14904
|
onClick: k,
|
14880
14905
|
type: "primary"
|
14881
14906
|
}, _isSlot(V = t.t("common.save")) ? V : {
|
14882
14907
|
default: () => [V]
|
14883
14908
|
})])]);
|
14884
14909
|
}
|
14885
|
-
function
|
14910
|
+
function U($) {
|
14886
14911
|
var O;
|
14887
14912
|
let V = "";
|
14888
14913
|
return $.id || (V += " ant-table-row-create"), $.id === ((O = a.getSelectedVarCatalog) == null ? void 0 : O.id) && (V += " ant-table-row-selected "), V;
|
@@ -14901,14 +14926,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14901
14926
|
rowKey: "id",
|
14902
14927
|
dataSource: c.value,
|
14903
14928
|
loading: n.value,
|
14904
|
-
rowClassName:
|
14929
|
+
rowClassName: U,
|
14905
14930
|
rowSelection: m.value,
|
14906
14931
|
customRow: ($) => ({
|
14907
14932
|
onClick: () => P($)
|
14908
14933
|
})
|
14909
14934
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
14910
|
-
visible:
|
14911
|
-
"onUpdate:visible": ($) =>
|
14935
|
+
visible: b.value.visible,
|
14936
|
+
"onUpdate:visible": ($) => b.value.visible = $,
|
14912
14937
|
onKgOk: T
|
14913
14938
|
}, null)]);
|
14914
14939
|
}
|
@@ -15242,8 +15267,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15242
15267
|
var M;
|
15243
15268
|
const T = (M = o.value) == null ? void 0 : M.toUpperCase();
|
15244
15269
|
return u.value.filter((E) => {
|
15245
|
-
var P, I, A, w,
|
15246
|
-
return ((I = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (
|
15270
|
+
var P, I, A, w, U, $;
|
15271
|
+
return ((I = (P = E.whDsc) == null ? void 0 : P.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (U = E.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : $.includes(T));
|
15247
15272
|
});
|
15248
15273
|
}), m = computed(() => {
|
15249
15274
|
var T, M;
|
@@ -15256,11 +15281,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15256
15281
|
}), onMounted(() => {
|
15257
15282
|
a.store.emit("mounted");
|
15258
15283
|
});
|
15259
|
-
function
|
15284
|
+
function b() {
|
15260
15285
|
!m.value || a.store.setVisible(!0);
|
15261
15286
|
}
|
15262
15287
|
function C() {
|
15263
|
-
s.value = a.warehouse.value,
|
15288
|
+
s.value = a.warehouse.value, y();
|
15264
15289
|
}
|
15265
15290
|
function g() {
|
15266
15291
|
o.value = "", u.value = [], s.value = null;
|
@@ -15279,7 +15304,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15279
15304
|
}
|
15280
15305
|
})), a.store.setVisible(!1));
|
15281
15306
|
}
|
15282
|
-
async function
|
15307
|
+
async function y() {
|
15283
15308
|
l.value = !0;
|
15284
15309
|
try {
|
15285
15310
|
const {
|
@@ -15297,7 +15322,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15297
15322
|
l.value = !1;
|
15298
15323
|
}
|
15299
15324
|
}
|
15300
|
-
function
|
15325
|
+
function v(T, M) {
|
15301
15326
|
var E;
|
15302
15327
|
switch (T.detail) {
|
15303
15328
|
case 1:
|
@@ -15360,7 +15385,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15360
15385
|
var M;
|
15361
15386
|
return {
|
15362
15387
|
class: T.id === ((M = s.value) == null ? void 0 : M.id) ? "selected" : "",
|
15363
|
-
onClick: (E) =>
|
15388
|
+
onClick: (E) => v(E, T)
|
15364
15389
|
};
|
15365
15390
|
}
|
15366
15391
|
}, null)]
|
@@ -15368,7 +15393,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15368
15393
|
}
|
15369
15394
|
return () => createVNode("div", {
|
15370
15395
|
class: n.value,
|
15371
|
-
onClick:
|
15396
|
+
onClick: b
|
15372
15397
|
}, [k()]);
|
15373
15398
|
}
|
15374
15399
|
});
|