@kengic/vue 0.6.10-beta.5 → 0.6.10-beta.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +313 -308
- package/package.json +2 -1
package/dist/kengic-vue.js
CHANGED
@@ -2179,12 +2179,12 @@ setTwoToneColor("#1890ff");
|
|
2179
2179
|
var Icon$1 = function(t, r) {
|
2180
2180
|
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), v = (a = {
|
2181
2181
|
anticon: !0
|
2182
|
-
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a),
|
2182
|
+
}, _defineProperty$k(a, "anticon-".concat(i.name), Boolean(i.name)), _defineProperty$k(a, o, o), a), k = s === "" || !!s || i.name === "loading" ? "anticon-spin" : "", p = c;
|
2183
2183
|
p === void 0 && d && (p = -1, m.tabindex = p);
|
2184
2184
|
var _ = l ? {
|
2185
2185
|
msTransform: "rotate(".concat(l, "deg)"),
|
2186
2186
|
transform: "rotate(".concat(l, "deg)")
|
2187
|
-
} : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), C = b[0],
|
2187
|
+
} : void 0, y = normalizeTwoToneColors(u), b = _slicedToArray(y, 2), C = b[0], T = b[1];
|
2188
2188
|
return createVNode("span", _objectSpread$k({
|
2189
2189
|
role: "img",
|
2190
2190
|
"aria-label": i.name
|
@@ -2192,10 +2192,10 @@ var Icon$1 = function(t, r) {
|
|
2192
2192
|
onClick: d,
|
2193
2193
|
class: v
|
2194
2194
|
}), [createVNode(VueIcon, {
|
2195
|
-
class:
|
2195
|
+
class: k,
|
2196
2196
|
icon: i,
|
2197
2197
|
primaryColor: C,
|
2198
|
-
secondaryColor:
|
2198
|
+
secondaryColor: T,
|
2199
2199
|
style: _
|
2200
2200
|
}, null)]);
|
2201
2201
|
};
|
@@ -2996,9 +2996,9 @@ function iconToSVG(e, t) {
|
|
2996
2996
|
height: r.height
|
2997
2997
|
};
|
2998
2998
|
let o = r.body;
|
2999
|
-
[r, a].forEach((
|
3000
|
-
const p = [], _ =
|
3001
|
-
let b =
|
2999
|
+
[r, a].forEach((k) => {
|
3000
|
+
const p = [], _ = k.hFlip, y = k.vFlip;
|
3001
|
+
let b = k.rotate;
|
3002
3002
|
_ ? y ? b += 2 : (p.push(
|
3003
3003
|
"translate(" + (n.width + n.left).toString() + " " + (0 - n.top).toString() + ")"
|
3004
3004
|
), p.push("scale(-1 1)"), n.top = n.left = 0) : y && (p.push(
|
@@ -3027,8 +3027,8 @@ function iconToSVG(e, t) {
|
|
3027
3027
|
const i = a.width, s = a.height, l = n.width, c = n.height;
|
3028
3028
|
let u, d;
|
3029
3029
|
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);
|
3030
|
-
const m = {}, v = (
|
3031
|
-
isUnsetKeyword(p) || (m[
|
3030
|
+
const m = {}, v = (k, p) => {
|
3031
|
+
isUnsetKeyword(p) || (m[k] = p.toString());
|
3032
3032
|
};
|
3033
3033
|
return v("width", u), v("height", d), m.viewBox = n.left.toString() + " " + n.top.toString() + " " + l.toString() + " " + c.toString(), {
|
3034
3034
|
attributes: m,
|
@@ -3313,11 +3313,11 @@ function sendQuery(e, t, r, a) {
|
|
3313
3313
|
const s = Date.now();
|
3314
3314
|
let l = "pending", c = 0, u, d = null, m = [], v = [];
|
3315
3315
|
typeof a == "function" && v.push(a);
|
3316
|
-
function
|
3316
|
+
function k() {
|
3317
3317
|
d && (clearTimeout(d), d = null);
|
3318
3318
|
}
|
3319
3319
|
function p() {
|
3320
|
-
l === "pending" && (l = "aborted"),
|
3320
|
+
l === "pending" && (l = "aborted"), k(), m.forEach((E) => {
|
3321
3321
|
E.status === "pending" && (E.status = "aborted");
|
3322
3322
|
}), m = [];
|
3323
3323
|
}
|
@@ -3345,7 +3345,7 @@ function sendQuery(e, t, r, a) {
|
|
3345
3345
|
E.status === "pending" && (E.status = "aborted");
|
3346
3346
|
}), m = [];
|
3347
3347
|
}
|
3348
|
-
function
|
3348
|
+
function T(E, N, I) {
|
3349
3349
|
const A = N !== "success";
|
3350
3350
|
switch (m = m.filter((w) => w !== E), l) {
|
3351
3351
|
case "pending":
|
@@ -3365,7 +3365,7 @@ function sendQuery(e, t, r, a) {
|
|
3365
3365
|
u = I, m.length || (i.length ? M() : b());
|
3366
3366
|
return;
|
3367
3367
|
}
|
3368
|
-
if (
|
3368
|
+
if (k(), C(), !e.random) {
|
3369
3369
|
const w = e.resources.indexOf(E.resource);
|
3370
3370
|
w !== -1 && w !== e.index && (e.index = w);
|
3371
3371
|
}
|
@@ -3376,12 +3376,12 @@ function sendQuery(e, t, r, a) {
|
|
3376
3376
|
function M() {
|
3377
3377
|
if (l !== "pending")
|
3378
3378
|
return;
|
3379
|
-
|
3379
|
+
k();
|
3380
3380
|
const E = i.shift();
|
3381
3381
|
if (E === void 0) {
|
3382
3382
|
if (m.length) {
|
3383
3383
|
d = setTimeout(() => {
|
3384
|
-
|
3384
|
+
k(), l === "pending" && (C(), b());
|
3385
3385
|
}, e.timeout);
|
3386
3386
|
return;
|
3387
3387
|
}
|
@@ -3392,7 +3392,7 @@ function sendQuery(e, t, r, a) {
|
|
3392
3392
|
status: "pending",
|
3393
3393
|
resource: E,
|
3394
3394
|
callback: (I, A) => {
|
3395
|
-
|
3395
|
+
T(N, I, A);
|
3396
3396
|
}
|
3397
3397
|
};
|
3398
3398
|
m.push(N), c++, d = setTimeout(M, e.rotate), r(E, t, N.callback);
|
@@ -3813,14 +3813,14 @@ const render = (e, t) => {
|
|
3813
3813
|
let p = 0, _ = t.id;
|
3814
3814
|
return typeof _ == "string" && (_ = _.replace(/-/g, "_")), a.innerHTML = replaceIDs(l.body, _ ? () => _ + "ID" + p++ : "iconifyVue"), h("svg", a);
|
3815
3815
|
}
|
3816
|
-
const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1),
|
3816
|
+
const { body: u, width: d, height: m } = e, v = n === "mask" || (n === "bg" ? !1 : u.indexOf("currentColor") !== -1), k = iconToHTML(u, {
|
3817
3817
|
...c,
|
3818
3818
|
width: d + "",
|
3819
3819
|
height: m + ""
|
3820
3820
|
});
|
3821
3821
|
return a.style = {
|
3822
3822
|
...o,
|
3823
|
-
"--svg": svgToURL(
|
3823
|
+
"--svg": svgToURL(k),
|
3824
3824
|
width: fixSize(c.width),
|
3825
3825
|
height: fixSize(c.height),
|
3826
3826
|
...commonProps,
|
@@ -3926,13 +3926,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3926
3926
|
(function(r, a) {
|
3927
3927
|
e.exports = a();
|
3928
3928
|
})(commonjsGlobal, function() {
|
3929
|
-
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year",
|
3929
|
+
var r = 1e3, a = 6e4, n = 36e5, o = "millisecond", i = "second", s = "minute", l = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", k = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(P) {
|
3930
3930
|
var V = ["th", "st", "nd", "rd"], D = P % 100;
|
3931
3931
|
return "[" + P + (V[(D - 20) % 10] || V[D] || V[0]) + "]";
|
3932
3932
|
} }, C = function(P, V, D) {
|
3933
3933
|
var O = String(P);
|
3934
3934
|
return !O || O.length >= V ? P : "" + Array(V + 1 - O.length).join(D) + P;
|
3935
|
-
},
|
3935
|
+
}, T = { s: C, z: function(P) {
|
3936
3936
|
var V = -P.utcOffset(), D = Math.abs(V), O = Math.floor(D / 60), R = D % 60;
|
3937
3937
|
return (V <= 0 ? "+" : "-") + C(O, 2, "0") + ":" + C(R, 2, "0");
|
3938
3938
|
}, m: function P(V, D) {
|
@@ -3943,7 +3943,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3943
3943
|
}, a: function(P) {
|
3944
3944
|
return P < 0 ? Math.ceil(P) || 0 : Math.floor(P);
|
3945
3945
|
}, p: function(P) {
|
3946
|
-
return { M: d, y: v, w: u, d: c, D:
|
3946
|
+
return { M: d, y: v, w: u, d: c, D: k, h: l, m: s, s: i, ms: o, Q: m }[P] || String(P || "").toLowerCase().replace(/s$/, "");
|
3947
3947
|
}, u: function(P) {
|
3948
3948
|
return P === void 0;
|
3949
3949
|
} }, M = "en", E = {};
|
@@ -3970,7 +3970,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3970
3970
|
return P.clone();
|
3971
3971
|
var D = typeof V == "object" ? V : {};
|
3972
3972
|
return D.date = P, D.args = arguments, new F(D);
|
3973
|
-
}, w =
|
3973
|
+
}, w = T;
|
3974
3974
|
w.l = I, w.i = N, w.w = function(P, V) {
|
3975
3975
|
return A(P, { locale: V.$L, utc: V.$u, x: V.$x, $offset: V.$offset });
|
3976
3976
|
};
|
@@ -4033,7 +4033,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4033
4033
|
var oe = this.$locale().weekStart || 0, ue = (X < oe ? X + 7 : X) - oe;
|
4034
4034
|
return H(x ? te - ue : te + (6 - ue), Y);
|
4035
4035
|
case c:
|
4036
|
-
case
|
4036
|
+
case k:
|
4037
4037
|
return Q(ae + "Hours", 0);
|
4038
4038
|
case l:
|
4039
4039
|
return Q(ae + "Minutes", 1);
|
@@ -4047,10 +4047,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4047
4047
|
}, V.endOf = function(D) {
|
4048
4048
|
return this.startOf(D, !1);
|
4049
4049
|
}, V.$set = function(D, O) {
|
4050
|
-
var R, x = w.p(D), G = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[c] = G + "Date", R[
|
4050
|
+
var R, x = w.p(D), G = "set" + (this.$u ? "UTC" : ""), H = (R = {}, R[c] = G + "Date", R[k] = G + "Date", R[d] = G + "Month", R[v] = G + "FullYear", R[l] = G + "Hours", R[s] = G + "Minutes", R[i] = G + "Seconds", R[o] = G + "Milliseconds", R)[x], Q = x === c ? this.$D + (O - this.$W) : O;
|
4051
4051
|
if (x === d || x === v) {
|
4052
|
-
var X = this.clone().set(
|
4053
|
-
X.$d[H](Q), X.init(), this.$d = X.set(
|
4052
|
+
var X = this.clone().set(k, 1);
|
4053
|
+
X.$d[H](Q), X.init(), this.$d = X.set(k, Math.min(this.$D, X.daysInMonth())).$d;
|
4054
4054
|
} else
|
4055
4055
|
H && this.$d[H](Q);
|
4056
4056
|
return this.init(), this;
|
@@ -4118,7 +4118,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4118
4118
|
return this.$d.toUTCString();
|
4119
4119
|
}, P;
|
4120
4120
|
}(), $ = F.prototype;
|
4121
|
-
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D",
|
4121
|
+
return A.prototype = $, [["$ms", o], ["$s", i], ["$m", s], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", k]].forEach(function(P) {
|
4122
4122
|
$[P[1]] = function(V) {
|
4123
4123
|
return this.$g(V, P[0], P[1]);
|
4124
4124
|
};
|
@@ -4167,11 +4167,11 @@ function filesize(e, {
|
|
4167
4167
|
output: d = STRING,
|
4168
4168
|
fullform: m = !1,
|
4169
4169
|
fullforms: v = [],
|
4170
|
-
exponent:
|
4170
|
+
exponent: k = -1,
|
4171
4171
|
roundingMethod: p = ROUND,
|
4172
4172
|
precision: _ = 0
|
4173
4173
|
} = {}) {
|
4174
|
-
let y =
|
4174
|
+
let y = k, b = Number(e), C = [], T = 0, M = EMPTY;
|
4175
4175
|
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);
|
4176
4176
|
const E = a === 10 ? 1e3 : 1024, N = m === !0, I = b < 0, A = Math[p];
|
4177
4177
|
if (typeof e != "bigint" && isNaN(e))
|
@@ -4183,9 +4183,9 @@ function filesize(e, {
|
|
4183
4183
|
if (b === 0)
|
4184
4184
|
C[0] = 0, M = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4185
4185
|
else {
|
4186
|
-
|
4186
|
+
T = b / (a === 2 ? Math.pow(2, y * 10) : Math.pow(1e3, y)), t && (T = T * 8, T >= E && y < 8 && (T = T / E, y++));
|
4187
4187
|
const w = Math.pow(10, y > 0 ? n : 0);
|
4188
|
-
C[0] = A(
|
4188
|
+
C[0] = A(T * w) / w, C[0] === E && y < 8 && k === -1 && (C[0] = 1, y++), M = C[1] = a === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][y];
|
4189
4189
|
}
|
4190
4190
|
if (I && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = c[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, i) : s.length > 0 && (C[0] = C[0].toString().replace(PERIOD, s)), r && Number.isInteger(C[0]) === !1 && n > 0) {
|
4191
4191
|
const w = s || PERIOD, F = C[0].toString().split(w), $ = F[1] || EMPTY, P = $.length, V = n - P;
|
@@ -5245,7 +5245,7 @@ function baseClone(e, t, r, a, n, o) {
|
|
5245
5245
|
}) : isMap$1(e) && e.forEach(function(_, y) {
|
5246
5246
|
i.set(y, baseClone(_, t, r, y, e, o));
|
5247
5247
|
});
|
5248
|
-
var
|
5248
|
+
var k = c ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, p = u ? void 0 : k(e);
|
5249
5249
|
return arrayEach(p || e, function(_, y) {
|
5250
5250
|
p && (y = _, _ = e[y]), assignValue(i, y, baseClone(_, t, r, y, e, o));
|
5251
5251
|
}), i;
|
@@ -5287,9 +5287,9 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5287
5287
|
return c == t && u == e;
|
5288
5288
|
var d = -1, m = !0, v = r & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
5289
5289
|
for (o.set(e, t), o.set(t, e); ++d < s; ) {
|
5290
|
-
var
|
5290
|
+
var k = e[d], p = t[d];
|
5291
5291
|
if (a)
|
5292
|
-
var _ = i ? a(p,
|
5292
|
+
var _ = i ? a(p, k, d, t, e, o) : a(k, p, d, e, t, o);
|
5293
5293
|
if (_ !== void 0) {
|
5294
5294
|
if (_)
|
5295
5295
|
continue;
|
@@ -5298,13 +5298,13 @@ function equalArrays(e, t, r, a, n, o) {
|
|
5298
5298
|
}
|
5299
5299
|
if (v) {
|
5300
5300
|
if (!arraySome(t, function(y, b) {
|
5301
|
-
if (!cacheHas(v, b) && (
|
5301
|
+
if (!cacheHas(v, b) && (k === y || n(k, y, r, a, o)))
|
5302
5302
|
return v.push(b);
|
5303
5303
|
})) {
|
5304
5304
|
m = !1;
|
5305
5305
|
break;
|
5306
5306
|
}
|
5307
|
-
} else if (!(
|
5307
|
+
} else if (!(k === p || n(k, p, r, a, o))) {
|
5308
5308
|
m = !1;
|
5309
5309
|
break;
|
5310
5310
|
}
|
@@ -5369,9 +5369,9 @@ function equalObjects(e, t, r, a, n, o) {
|
|
5369
5369
|
if (!(i ? m in t : hasOwnProperty$1.call(t, m)))
|
5370
5370
|
return !1;
|
5371
5371
|
}
|
5372
|
-
var v = o.get(e),
|
5373
|
-
if (v &&
|
5374
|
-
return v == t &&
|
5372
|
+
var v = o.get(e), k = o.get(t);
|
5373
|
+
if (v && k)
|
5374
|
+
return v == t && k == e;
|
5375
5375
|
var p = !0;
|
5376
5376
|
o.set(e, t), o.set(t, e);
|
5377
5377
|
for (var _ = i; ++d < l; ) {
|
@@ -5386,8 +5386,8 @@ function equalObjects(e, t, r, a, n, o) {
|
|
5386
5386
|
_ || (_ = m == "constructor");
|
5387
5387
|
}
|
5388
5388
|
if (p && !_) {
|
5389
|
-
var
|
5390
|
-
|
5389
|
+
var T = e.constructor, M = t.constructor;
|
5390
|
+
T != M && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof M == "function" && M instanceof M) && (p = !1);
|
5391
5391
|
}
|
5392
5392
|
return o.delete(e), o.delete(t), p;
|
5393
5393
|
}
|
@@ -5404,9 +5404,9 @@ function baseIsEqualDeep(e, t, r, a, n, o) {
|
|
5404
5404
|
if (m && !u)
|
5405
5405
|
return o || (o = new Stack()), i || isTypedArray$1(e) ? equalArrays(e, t, r, a, n, o) : equalByTag(e, t, l, r, a, n, o);
|
5406
5406
|
if (!(r & COMPARE_PARTIAL_FLAG$2)) {
|
5407
|
-
var v = u && hasOwnProperty.call(e, "__wrapped__"),
|
5408
|
-
if (v ||
|
5409
|
-
var p = v ? e.value() : e, _ =
|
5407
|
+
var v = u && hasOwnProperty.call(e, "__wrapped__"), k = d && hasOwnProperty.call(t, "__wrapped__");
|
5408
|
+
if (v || k) {
|
5409
|
+
var p = v ? e.value() : e, _ = k ? t.value() : t;
|
5410
5410
|
return o || (o = new Stack()), n(p, _, r, a, o);
|
5411
5411
|
}
|
5412
5412
|
}
|
@@ -5604,14 +5604,14 @@ function baseIntersection(e, t, r) {
|
|
5604
5604
|
var d = -1, m = s[0];
|
5605
5605
|
e:
|
5606
5606
|
for (; ++d < n && c.length < l; ) {
|
5607
|
-
var v = u[d],
|
5608
|
-
if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m,
|
5607
|
+
var v = u[d], k = t ? t(v) : v;
|
5608
|
+
if (v = r || v !== 0 ? v : 0, !(m ? cacheHas(m, k) : a(c, k, r))) {
|
5609
5609
|
for (i = o; --i; ) {
|
5610
5610
|
var p = s[i];
|
5611
|
-
if (!(p ? cacheHas(p,
|
5611
|
+
if (!(p ? cacheHas(p, k) : a(e[i], k, r)))
|
5612
5612
|
continue e;
|
5613
5613
|
}
|
5614
|
-
m && m.push(
|
5614
|
+
m && m.push(k), c.push(v);
|
5615
5615
|
}
|
5616
5616
|
}
|
5617
5617
|
return c;
|
@@ -6364,7 +6364,7 @@ class KgVarUtil {
|
|
6364
6364
|
return r;
|
6365
6365
|
}
|
6366
6366
|
static transformValueByControlType(t, r, a, n, o) {
|
6367
|
-
var m, v,
|
6367
|
+
var m, v, k;
|
6368
6368
|
const i = useKg(), s = useKgVar(t);
|
6369
6369
|
let l = n;
|
6370
6370
|
const c = /(.*)?({(.*)?})(.*)?/.exec(l);
|
@@ -6375,7 +6375,7 @@ class KgVarUtil {
|
|
6375
6375
|
l = l.replace("{NOW}", a().format("YYYY-MM-DD HH:mm:ss"));
|
6376
6376
|
break;
|
6377
6377
|
case "{USER.username}":
|
6378
|
-
l = l.replace("{USER.username}", (
|
6378
|
+
l = l.replace("{USER.username}", (k = (v = (m = i.store).getUseUserStore) == null ? void 0 : v.call(m).userInfo) == null ? void 0 : k.username);
|
6379
6379
|
break;
|
6380
6380
|
}
|
6381
6381
|
}
|
@@ -6383,7 +6383,7 @@ class KgVarUtil {
|
|
6383
6383
|
if (!u)
|
6384
6384
|
return l;
|
6385
6385
|
switch ((() => {
|
6386
|
-
const p = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, C = u.cpy_ctrl_typ,
|
6386
|
+
const p = u.ctrl_typ, _ = u.prf_ctrl_typ, y = u.crt_ctrl_typ, b = u.upt_ctrl_typ, C = u.cpy_ctrl_typ, T = u.del_ctrl_typ;
|
6387
6387
|
switch (o) {
|
6388
6388
|
case "R":
|
6389
6389
|
return _ || p;
|
@@ -6394,7 +6394,7 @@ class KgVarUtil {
|
|
6394
6394
|
case "CP":
|
6395
6395
|
return C || p;
|
6396
6396
|
case "D":
|
6397
|
-
return
|
6397
|
+
return T || p;
|
6398
6398
|
}
|
6399
6399
|
return p;
|
6400
6400
|
})()) {
|
@@ -6641,8 +6641,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6641
6641
|
c ? v = I : c == !1 && !E._hotUpdating && (Array.isArray(v) ? v.push(I) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6642
6642
|
});
|
6643
6643
|
let c, u, d = markRaw([]), m = markRaw([]), v;
|
6644
|
-
const
|
6645
|
-
!i && !
|
6644
|
+
const k = a.state.value[e];
|
6645
|
+
!i && !k && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6646
6646
|
const p = ref({});
|
6647
6647
|
function _(I) {
|
6648
6648
|
let A;
|
@@ -6691,7 +6691,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6691
6691
|
return D instanceof Promise ? D.then((O) => (triggerSubscriptions(F, O), O)).catch((O) => (triggerSubscriptions($, O), Promise.reject(O))) : (triggerSubscriptions(F, D), D);
|
6692
6692
|
};
|
6693
6693
|
}
|
6694
|
-
const
|
6694
|
+
const T = /* @__PURE__ */ markRaw({
|
6695
6695
|
actions: {},
|
6696
6696
|
getters: {},
|
6697
6697
|
state: [],
|
@@ -6716,7 +6716,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6716
6716
|
}, E = reactive(assign$1(
|
6717
6717
|
process.env.NODE_ENV !== "production" && IS_CLIENT ? {
|
6718
6718
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6719
|
-
_hmrPayload:
|
6719
|
+
_hmrPayload: T
|
6720
6720
|
} : {},
|
6721
6721
|
M
|
6722
6722
|
));
|
@@ -6725,12 +6725,12 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6725
6725
|
for (const I in N) {
|
6726
6726
|
const A = N[I];
|
6727
6727
|
if (isRef(A) && !isComputed(A) || isReactive(A))
|
6728
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef(N, I)) : i || (
|
6728
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef(N, I)) : i || (k && shouldHydrate(A) && (isRef(A) ? A.value = k[I] : mergeReactiveObjects(A, k[I])), a.state.value[e][I] = A), process.env.NODE_ENV !== "production" && T.state.push(I);
|
6729
6729
|
else if (typeof A == "function") {
|
6730
6730
|
const w = process.env.NODE_ENV !== "production" && n ? A : C(I, A);
|
6731
|
-
N[I] = w, process.env.NODE_ENV !== "production" && (
|
6731
|
+
N[I] = w, process.env.NODE_ENV !== "production" && (T.actions[I] = A), s.actions[I] = A;
|
6732
6732
|
} else
|
6733
|
-
process.env.NODE_ENV !== "production" && isComputed(A) && (
|
6733
|
+
process.env.NODE_ENV !== "production" && isComputed(A) && (T.getters[I] = i ? r.getters[I] : A, IS_CLIENT && (N._getters || (N._getters = markRaw([]))).push(I));
|
6734
6734
|
}
|
6735
6735
|
if (assign$1(E, N), assign$1(toRaw(E), N), Object.defineProperty(E, "$state", {
|
6736
6736
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
@@ -6798,7 +6798,7 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6798
6798
|
})));
|
6799
6799
|
}), process.env.NODE_ENV !== "production" && E.$state && typeof E.$state == "object" && typeof E.$state.constructor == "function" && !E.$state.constructor.toString().includes("[native code]") && console.warn(`[\u{1F34D}]: The "state" must be a plain object. It cannot be
|
6800
6800
|
state: () => new MyClass()
|
6801
|
-
Found in store "${E.$id}".`),
|
6801
|
+
Found in store "${E.$id}".`), k && i && r.hydrate && r.hydrate(E.$state, k), c = !0, u = !0, E;
|
6802
6802
|
}
|
6803
6803
|
function defineStore(e, t, r) {
|
6804
6804
|
let a, n;
|
@@ -7408,15 +7408,15 @@ const KgModal_Close = "", getProps$A = () => ({
|
|
7408
7408
|
function v(b) {
|
7409
7409
|
m(b);
|
7410
7410
|
}
|
7411
|
-
function
|
7411
|
+
function k(b) {
|
7412
7412
|
m(b), d();
|
7413
7413
|
}
|
7414
7414
|
function p(b) {
|
7415
|
-
b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (o = b.pageX, i = b.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup",
|
7415
|
+
b.stopPropagation(), b.preventDefault(), d(), !(b instanceof MouseEvent && b.which !== 1) && (o = b.pageX, i = b.pageY, a = e.kgWidth, n = e.kgHeight, s = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", k));
|
7416
7416
|
}
|
7417
|
-
function _(b, C,
|
7418
|
-
return b.addEventListener(C,
|
7419
|
-
remove: () => b.removeEventListener(C,
|
7417
|
+
function _(b, C, T) {
|
7418
|
+
return b.addEventListener(C, T), {
|
7419
|
+
remove: () => b.removeEventListener(C, T)
|
7420
7420
|
};
|
7421
7421
|
}
|
7422
7422
|
function y(b) {
|
@@ -7586,13 +7586,13 @@ function createStore(e, t, r) {
|
|
7586
7586
|
var u = this[c];
|
7587
7587
|
this[c] = function() {
|
7588
7588
|
var m = slice(arguments, 0), v = this;
|
7589
|
-
function
|
7589
|
+
function k() {
|
7590
7590
|
if (!!u)
|
7591
7591
|
return each$6(arguments, function(_, y) {
|
7592
7592
|
m[y] = _;
|
7593
7593
|
}), u.apply(v, m);
|
7594
7594
|
}
|
7595
|
-
var p = [
|
7595
|
+
var p = [k].concat(m);
|
7596
7596
|
return l.apply(v, p);
|
7597
7597
|
};
|
7598
7598
|
},
|
@@ -8609,19 +8609,19 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8609
8609
|
varPossibilities: d,
|
8610
8610
|
varButtons: m,
|
8611
8611
|
varButtonConfig: v,
|
8612
|
-
varSubmitConfig:
|
8612
|
+
varSubmitConfig: k,
|
8613
8613
|
varSubmitFields: p,
|
8614
8614
|
varProfile: _,
|
8615
8615
|
varProfileConfig: y,
|
8616
8616
|
varGrid: b,
|
8617
8617
|
varGridConfig: C
|
8618
8618
|
} = await GetAll({ params: { frm_id: e } });
|
8619
|
-
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, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(
|
8619
|
+
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, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(k)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(p)), this.varProfileConfigMap.set(e, transformVarProfileConfig(y != null ? y : null)), this.varProfileMap.set(e, {
|
8620
8620
|
varProfile: _ != null ? _ : null,
|
8621
|
-
currentVarProfileMasterID: (a = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((
|
8621
|
+
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
|
8622
8622
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
|
8623
8623
|
varGrid: transformVarGridDTO(b),
|
8624
|
-
currentVarGridMasterID: (i = (o = (n = b == null ? void 0 : b.varGridMasters) == null ? void 0 : n.find((
|
8624
|
+
currentVarGridMasterID: (i = (o = (n = b == null ? void 0 : b.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
|
8625
8625
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
8626
8626
|
} catch (s) {
|
8627
8627
|
throw s;
|
@@ -8784,7 +8784,7 @@ function useKgVar(e, t, r = 0) {
|
|
8784
8784
|
const d = (Y) => computed(() => {
|
8785
8785
|
var te, ae, oe;
|
8786
8786
|
return (oe = (ae = (te = u.getVarCatalog(c, Y)) == null ? void 0 : te.var_text) != null ? ae : Y) != null ? oe : "";
|
8787
|
-
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)),
|
8787
|
+
}), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), k = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), y = computed(() => u.isUpdating(c)), b = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), M = computed(() => u.isDeleting(c)), E = computed(() => u.isDeletingRequesting(c)), N = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), A = computed(() => u.getVarButtonSearch(c)), w = computed(() => u.getVarButtonCreate(c)), F = computed(() => u.getVarButtonUpdate(c)), $ = computed(() => u.getVarButtonCopy(c)), P = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), D = computed(() => u.getCurrentVarProfileMaster(c)), O = computed(() => u.getCurrentVarProfileMasterID(c)), R = computed(() => {
|
8788
8788
|
var Y, te;
|
8789
8789
|
return (te = (Y = D.value) == null ? void 0 : Y.varProfileDetails) != null ? te : null;
|
8790
8790
|
}), x = computed(() => u.getVarGridConfig(c)), G = computed(() => u.getVarGridMasters(c)), H = computed(() => u.getCurrentVarGridMaster(c)), Q = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
@@ -8793,13 +8793,13 @@ function useKgVar(e, t, r = 0) {
|
|
8793
8793
|
store: u,
|
8794
8794
|
isRetrieving: m,
|
8795
8795
|
isRetrievingVarProfileMaster: v,
|
8796
|
-
isRetrievingVarGridMaster:
|
8796
|
+
isRetrievingVarGridMaster: k,
|
8797
8797
|
isCreating: p,
|
8798
8798
|
isCreatingRequesting: _,
|
8799
8799
|
isUpdating: y,
|
8800
8800
|
isUpdatingRequesting: b,
|
8801
8801
|
isCopying: C,
|
8802
|
-
isCopyingRequesting:
|
8802
|
+
isCopyingRequesting: T,
|
8803
8803
|
isDeleting: M,
|
8804
8804
|
isDeletingRequesting: E,
|
8805
8805
|
isOtherRequesting: N,
|
@@ -8841,14 +8841,14 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8841
8841
|
}) {
|
8842
8842
|
provide(DI_KG_VAR__KG_PROPS, computed(() => e.kgProps)), provide(DI_KG_VAR__KG_SLOTS, e.kgSlots);
|
8843
8843
|
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(() => {
|
8844
|
-
var m, v,
|
8844
|
+
var m, v, k, p;
|
8845
8845
|
switch (!0) {
|
8846
8846
|
case r.isCreating.value:
|
8847
8847
|
return ((m = a.value) == null ? void 0 : m.crt_flg) !== 0;
|
8848
8848
|
case r.isUpdating.value:
|
8849
8849
|
return ((v = a.value) == null ? void 0 : v.upt_flg) !== 0;
|
8850
8850
|
case r.isCopying.value:
|
8851
|
-
return ((
|
8851
|
+
return ((k = a.value) == null ? void 0 : k.cpy_flg) !== 0;
|
8852
8852
|
case r.isDeleting.value:
|
8853
8853
|
return ((p = a.value) == null ? void 0 : p.del_flg) !== 0;
|
8854
8854
|
}
|
@@ -8891,20 +8891,20 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8891
8891
|
const a = inject(KG_DI_HOST_FORM_ID, ""), n = useKgVar(a), o = useKgForm(n.formID), i = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, "");
|
8892
8892
|
useKgVar(s, !0, n.store.getFormLevel(n.formID) + 1);
|
8893
8893
|
const l = useKgTable(s), c = computed(() => n.store.getVarLookup(n.formID, i)), u = computed(() => {
|
8894
|
-
var
|
8895
|
-
return ((
|
8894
|
+
var k;
|
8895
|
+
return ((k = c == null ? void 0 : c.value) == null ? void 0 : k.mult_flg) === 1;
|
8896
8896
|
}), d = computed(() => {
|
8897
|
-
var
|
8898
|
-
return (p = (
|
8897
|
+
var k, p;
|
8898
|
+
return (p = (k = c == null ? void 0 : c.value) == null ? void 0 : k.ret_fld) != null ? p : "";
|
8899
8899
|
});
|
8900
8900
|
l.onRowDoubleClick(async () => (await v(), !1));
|
8901
8901
|
function m() {
|
8902
8902
|
r("update:visible", !1);
|
8903
8903
|
}
|
8904
8904
|
async function v() {
|
8905
|
-
var
|
8905
|
+
var k, p, _, y, b, C, T;
|
8906
8906
|
if (u.value) {
|
8907
|
-
const M = (p = (
|
8907
|
+
const M = (p = (k = l.selectedRows) == null ? void 0 : k.value) != null ? p : [], E = (_ = M.map((I) => I[d.value])) != null ? _ : [];
|
8908
8908
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8909
8909
|
var_nam: i,
|
8910
8910
|
isMultiple: !0,
|
@@ -8917,7 +8917,7 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8917
8917
|
rows: M
|
8918
8918
|
}), r("update:visible", !1));
|
8919
8919
|
} else {
|
8920
|
-
const M = (C = (b = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : b[0]) != null ? C : null, E = (
|
8920
|
+
const M = (C = (b = (y = l.selectedRows) == null ? void 0 : y.value) == null ? void 0 : b[0]) != null ? C : null, E = (T = M == null ? void 0 : M[d.value]) != null ? T : "";
|
8921
8921
|
await o.store.emit(o.formID, "lookupBeforeOk", {
|
8922
8922
|
var_nam: i,
|
8923
8923
|
isMultiple: !1,
|
@@ -8932,13 +8932,13 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
8932
8932
|
}
|
8933
8933
|
}
|
8934
8934
|
return () => {
|
8935
|
-
var
|
8935
|
+
var k, p;
|
8936
8936
|
return createVNode(KgModal, {
|
8937
8937
|
visible: e.visible,
|
8938
8938
|
title: n.t(i).value,
|
8939
8939
|
destroyOnClose: !0,
|
8940
8940
|
okButtonProps: {
|
8941
|
-
disabled: ((p = (
|
8941
|
+
disabled: ((p = (k = l.selectedRows.value) == null ? void 0 : k.length) != null ? p : 0) === 0
|
8942
8942
|
},
|
8943
8943
|
wrapClassName: "kg-form-item-addon-lookup-modal",
|
8944
8944
|
onCancel: m,
|
@@ -9032,7 +9032,7 @@ function _useRules(e) {
|
|
9032
9032
|
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));
|
9033
9033
|
return {
|
9034
9034
|
rules: computed(() => {
|
9035
|
-
var l, c, u, d, m, v,
|
9035
|
+
var l, c, u, d, m, v, k, p;
|
9036
9036
|
let s = [];
|
9037
9037
|
switch (e.kgContext) {
|
9038
9038
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9072,7 +9072,7 @@ function _useRules(e) {
|
|
9072
9072
|
}
|
9073
9073
|
switch ((v = n.value) == null ? void 0 : v.data_type) {
|
9074
9074
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
9075
|
-
const _ = (
|
9075
|
+
const _ = (k = n.value) == null ? void 0 : k.min;
|
9076
9076
|
isNil(_) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? s.push({
|
9077
9077
|
validator: (y, b) => Number(b) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
9078
9078
|
}) : s.push({
|
@@ -9086,8 +9086,8 @@ function _useRules(e) {
|
|
9086
9086
|
}
|
9087
9087
|
function useKgFormItem(e) {
|
9088
9088
|
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(() => {
|
9089
|
-
var v,
|
9090
|
-
const s = (v = n.value) == null ? void 0 : v.ctrl_typ, l = (
|
9089
|
+
var v, k, p, _, y, b;
|
9090
|
+
const s = (v = n.value) == null ? void 0 : v.ctrl_typ, l = (k = n.value) == null ? void 0 : k.prf_ctrl_typ, c = (p = n.value) == null ? void 0 : p.crt_ctrl_typ, u = (_ = n.value) == null ? void 0 : _.upt_ctrl_typ, d = (y = n.value) == null ? void 0 : y.cpy_ctrl_typ, m = (b = n.value) == null ? void 0 : b.del_ctrl_typ;
|
9091
9091
|
switch (r) {
|
9092
9092
|
case KG_FORM_CONTEXT.SEARCH:
|
9093
9093
|
return l || s;
|
@@ -9105,9 +9105,9 @@ function useKgFormItem(e) {
|
|
9105
9105
|
}
|
9106
9106
|
return s;
|
9107
9107
|
}), i = computed(() => {
|
9108
|
-
var
|
9108
|
+
var k, p, _, y, b, C;
|
9109
9109
|
let s;
|
9110
|
-
const l = (
|
9110
|
+
const l = (k = n.value) == null ? void 0 : k.ctrl_prop, c = (p = n.value) == null ? void 0 : p.prf_ctrl_prop, u = (_ = n.value) == null ? void 0 : _.crt_ctrl_prop, d = (y = n.value) == null ? void 0 : y.upt_ctrl_prop, m = (b = n.value) == null ? void 0 : b.cpy_ctrl_prop, v = (C = n.value) == null ? void 0 : C.del_ctrl_prop;
|
9111
9111
|
switch (r) {
|
9112
9112
|
case KG_FORM_CONTEXT.SEARCH:
|
9113
9113
|
s = c || l;
|
@@ -9147,28 +9147,28 @@ function useKgFormItemSelect() {
|
|
9147
9147
|
let d = KgVarUtil.parseCommandParameter((m = a.value) == null ? void 0 : m.cmd_prm);
|
9148
9148
|
return d = mapValues(d, (v) => {
|
9149
9149
|
var p, _;
|
9150
|
-
let
|
9150
|
+
let k = v;
|
9151
9151
|
if (typeof v == "string" && v.startsWith("{") && v.endsWith("}")) {
|
9152
9152
|
let y = v.slice(1, -1), b = "";
|
9153
9153
|
if (y.includes(".")) {
|
9154
9154
|
const C = y.split(".");
|
9155
9155
|
y = C[0], b = C[1];
|
9156
9156
|
}
|
9157
|
-
t.value && y in t.value && (b ?
|
9157
|
+
t.value && y in t.value && (b ? k = (_ = (p = t.value[`${y}_obj`]) == null ? void 0 : p[b]) != null ? _ : void 0 : k = t.value[y], k || (k = "__KG__FORM_ITEM_SELECT__PID"));
|
9158
9158
|
}
|
9159
|
-
return
|
9159
|
+
return k;
|
9160
9160
|
}), d;
|
9161
9161
|
});
|
9162
9162
|
async function c() {
|
9163
|
-
var y, b, C,
|
9163
|
+
var y, b, C, T, M, E, N, I;
|
9164
9164
|
let d = [];
|
9165
|
-
const m = (y = a.value) == null ? void 0 : y.cmd, v = (C = (b = a.value) == null ? void 0 : b.cmd_method) != null ? C : "GET",
|
9166
|
-
if (!m || !
|
9165
|
+
const m = (y = a.value) == null ? void 0 : y.cmd, v = (C = (b = a.value) == null ? void 0 : b.cmd_method) != null ? C : "GET", k = (M = (T = a.value) == null ? void 0 : T.val_clm) != null ? M : "", p = (N = (E = a.value) == null ? void 0 : E.lbl_clm) != null ? N : "";
|
9166
|
+
if (!m || !k || !p) {
|
9167
9167
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9168
9168
|
frm_id: r.formID,
|
9169
9169
|
var_nam: e,
|
9170
9170
|
cmd: m,
|
9171
|
-
val_clm:
|
9171
|
+
val_clm: k,
|
9172
9172
|
lbl_clm: p
|
9173
9173
|
});
|
9174
9174
|
return;
|
@@ -9195,11 +9195,11 @@ function useKgFormItemSelect() {
|
|
9195
9195
|
}
|
9196
9196
|
if (d.length > 0) {
|
9197
9197
|
const A = d[0];
|
9198
|
-
(!(
|
9198
|
+
(!(k in A) || !(p in A)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9199
9199
|
frm_id: r.formID,
|
9200
9200
|
var_nam: e,
|
9201
9201
|
cmd: m,
|
9202
|
-
val_clm:
|
9202
|
+
val_clm: k,
|
9203
9203
|
lbl_clm: p,
|
9204
9204
|
\u6240\u6709\u5217: Object.keys(A)
|
9205
9205
|
});
|
@@ -9207,10 +9207,10 @@ function useKgFormItemSelect() {
|
|
9207
9207
|
i.value = d;
|
9208
9208
|
}
|
9209
9209
|
function u(d) {
|
9210
|
-
var
|
9210
|
+
var k, p, _, y, b;
|
9211
9211
|
if (!d)
|
9212
9212
|
return [];
|
9213
|
-
const m = (p = (
|
9213
|
+
const m = (p = (k = a.value) == null ? void 0 : k.val_clm) != null ? p : "", v = (y = (_ = a.value) == null ? void 0 : _.val_data_type) != null ? y : "string";
|
9214
9214
|
switch (v) {
|
9215
9215
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9216
9216
|
d.forEach((C) => {
|
@@ -9219,22 +9219,22 @@ function useKgFormItemSelect() {
|
|
9219
9219
|
break;
|
9220
9220
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9221
9221
|
d.forEach((C) => {
|
9222
|
-
let
|
9223
|
-
Number.isNaN(
|
9222
|
+
let T = Number(C[m]);
|
9223
|
+
Number.isNaN(T) && (T = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
|
9224
9224
|
frm_id: r.formID,
|
9225
9225
|
var_nam: e,
|
9226
9226
|
VarPossibility: a.value
|
9227
|
-
})), C[m] =
|
9227
|
+
})), C[m] = T;
|
9228
9228
|
});
|
9229
9229
|
break;
|
9230
9230
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9231
9231
|
d.forEach((C) => {
|
9232
|
-
let
|
9233
|
-
String(C[m]).toLowerCase() === "true" ?
|
9232
|
+
let T;
|
9233
|
+
String(C[m]).toLowerCase() === "true" ? T = !0 : String(C[m]).toLowerCase() === "false" ? T = !1 : (T = C[m], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${C[m]} \u8F6C\u6362\u4E3A ${v} \u7C7B\u578B`, {
|
9234
9234
|
frm_id: r.formID,
|
9235
9235
|
var_nam: e,
|
9236
9236
|
VarPossibility: a.value
|
9237
|
-
})), C[m] =
|
9237
|
+
})), C[m] = T;
|
9238
9238
|
});
|
9239
9239
|
break;
|
9240
9240
|
}
|
@@ -9243,9 +9243,9 @@ function useKgFormItemSelect() {
|
|
9243
9243
|
{
|
9244
9244
|
const C = o;
|
9245
9245
|
if ((b = C.value) != null && b.excludeValues)
|
9246
|
-
return d.filter((
|
9246
|
+
return d.filter((T) => {
|
9247
9247
|
var M;
|
9248
|
-
return !((M = C.value.excludeValues) != null && M.includes(
|
9248
|
+
return !((M = C.value.excludeValues) != null && M.includes(T[m]));
|
9249
9249
|
});
|
9250
9250
|
}
|
9251
9251
|
break;
|
@@ -9286,7 +9286,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9286
9286
|
}), watch([() => e.value, c], ([_, y]) => {
|
9287
9287
|
const b = get(_, "length", 0);
|
9288
9288
|
if (b > 0 && y.length > 0) {
|
9289
|
-
const C = intersection$1(_, y == null ? void 0 : y.map((
|
9289
|
+
const C = intersection$1(_, y == null ? void 0 : y.map((T) => T[l.value]));
|
9290
9290
|
if (C.length < b) {
|
9291
9291
|
r("update:value", C);
|
9292
9292
|
return;
|
@@ -9310,9 +9310,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9310
9310
|
var _, y;
|
9311
9311
|
!((_ = i.value) != null && _.id) || (await u(), r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((y = c.value) == null ? void 0 : y.map((b) => b[l.value]), e.value)));
|
9312
9312
|
}
|
9313
|
-
function
|
9313
|
+
function k(_) {
|
9314
9314
|
var y, b, C;
|
9315
|
-
_.target.checked ? p((b = (y = c.value) == null ? void 0 : y.map((
|
9315
|
+
_.target.checked ? p((b = (y = c.value) == null ? void 0 : y.map((T) => T[l.value])) != null ? b : []) : p([]), m.value = !1, (C = n.value) == null || C.validate(e.kgVarName);
|
9316
9316
|
}
|
9317
9317
|
function p(_) {
|
9318
9318
|
r("update:value", _), r("kgChange", _);
|
@@ -9326,7 +9326,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9326
9326
|
checked: d.value,
|
9327
9327
|
"onUpdate:checked": (b) => d.value = b,
|
9328
9328
|
indeterminate: m.value,
|
9329
|
-
onChange:
|
9329
|
+
onChange: k
|
9330
9330
|
}, _isSlot$a(_ = a.t("kg.selectAll")) ? _ : {
|
9331
9331
|
default: () => [_]
|
9332
9332
|
})]
|
@@ -9337,9 +9337,9 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9337
9337
|
default: () => [createVNode(Row, {
|
9338
9338
|
gutter: 12
|
9339
9339
|
}, _isSlot$a(y = c.value.map((b) => {
|
9340
|
-
var C,
|
9340
|
+
var C, T;
|
9341
9341
|
return createVNode(Col, {
|
9342
|
-
span: (
|
9342
|
+
span: (T = (C = o.value) == null ? void 0 : C.span) != null ? T : 24
|
9343
9343
|
}, {
|
9344
9344
|
default: () => [createVNode(Checkbox, {
|
9345
9345
|
value: b[l.value],
|
@@ -9460,7 +9460,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9460
9460
|
placeholder: e.kgPlaceholder,
|
9461
9461
|
disabled: e.kgDisabled,
|
9462
9462
|
onPressEnter: n,
|
9463
|
-
class: "kg-form-item
|
9463
|
+
class: "kg-form-item--input-number"
|
9464
9464
|
}, null);
|
9465
9465
|
}
|
9466
9466
|
});
|
@@ -9505,9 +9505,9 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9505
9505
|
default: () => [createVNode(Row, {
|
9506
9506
|
gutter: 12
|
9507
9507
|
}, _isSlot$9(d = s.value.map((m) => {
|
9508
|
-
var v,
|
9508
|
+
var v, k;
|
9509
9509
|
return createVNode(Col, {
|
9510
|
-
span: (
|
9510
|
+
span: (k = (v = a.value) == null ? void 0 : v.span) != null ? k : 24
|
9511
9511
|
}, {
|
9512
9512
|
default: () => [createVNode(Radio, {
|
9513
9513
|
value: m[i.value],
|
@@ -9548,8 +9548,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9548
9548
|
!((m = n.value) != null && m.id) || (await l(), r("kgSelectDatasChange", s.value), s.value.find((v) => v[i.value] === e.value) || r("update:value", void 0));
|
9549
9549
|
}
|
9550
9550
|
function u(m) {
|
9551
|
-
var
|
9552
|
-
const v = (
|
9551
|
+
var k;
|
9552
|
+
const v = (k = toRaw(s.value.find((p) => p[i.value] === m))) != null ? k : null;
|
9553
9553
|
r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
|
9554
9554
|
}
|
9555
9555
|
function d(m) {
|
@@ -9572,13 +9572,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9572
9572
|
"kg-val-clm": i.value,
|
9573
9573
|
"kg-lbl-clm": (v = n.value) == null ? void 0 : v.lbl_clm
|
9574
9574
|
}, {
|
9575
|
-
default: () => s.value.map((
|
9576
|
-
"kg-value":
|
9577
|
-
value:
|
9575
|
+
default: () => s.value.map((k) => createVNode(Select.Option, {
|
9576
|
+
"kg-value": k[i.value],
|
9577
|
+
value: k[i.value]
|
9578
9578
|
}, {
|
9579
9579
|
default: () => {
|
9580
9580
|
var p, _;
|
9581
|
-
return [
|
9581
|
+
return [k[(_ = (p = n.value) == null ? void 0 : p.lbl_clm) != null ? _ : ""]];
|
9582
9582
|
}
|
9583
9583
|
})),
|
9584
9584
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -9626,7 +9626,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9626
9626
|
placeholder: e.kgPlaceholder,
|
9627
9627
|
disabled: e.kgDisabled,
|
9628
9628
|
allowClear: !0,
|
9629
|
-
onPressEnter: n
|
9629
|
+
onPressEnter: n,
|
9630
|
+
class: "kg-form-item--textarea"
|
9630
9631
|
}, null);
|
9631
9632
|
}
|
9632
9633
|
}), KgFormItem = defineComponent({
|
@@ -9689,7 +9690,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9689
9690
|
break;
|
9690
9691
|
}
|
9691
9692
|
return I;
|
9692
|
-
}),
|
9693
|
+
}), k = computed(() => {
|
9693
9694
|
var A, w, F, $;
|
9694
9695
|
let I = " ";
|
9695
9696
|
if (e.kgPlaceholder)
|
@@ -9733,11 +9734,11 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9733
9734
|
return Math.min(24, Math.max(1, I));
|
9734
9735
|
}), _ = computed(() => {
|
9735
9736
|
var F, $;
|
9736
|
-
const I = get(
|
9737
|
+
const I = get(T.value, "$el.parentElement");
|
9737
9738
|
if (I && !((F = I.classList) != null && F.contains("ant-row")))
|
9738
9739
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9739
9740
|
let A = {};
|
9740
|
-
const w = Math.abs(Number.parseInt(($ = get(
|
9741
|
+
const w = Math.abs(Number.parseInt(($ = get(T.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
|
9741
9742
|
return Number.isNaN(w) || (A = {
|
9742
9743
|
paddingLeft: `${w}px !important`,
|
9743
9744
|
paddingRight: `${w}px !important`
|
@@ -9772,7 +9773,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9772
9773
|
"onUpdate:value": (w) => {
|
9773
9774
|
a.value && (a.value[e.kgVarName] = w);
|
9774
9775
|
},
|
9775
|
-
kgPlaceholder:
|
9776
|
+
kgPlaceholder: k.value,
|
9776
9777
|
kgDisabled: v.value,
|
9777
9778
|
id: C.value
|
9778
9779
|
};
|
@@ -9800,7 +9801,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9800
9801
|
break;
|
9801
9802
|
}
|
9802
9803
|
return I;
|
9803
|
-
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)),
|
9804
|
+
}), C = computed(() => encodeURIComponent(`${e.kgContext}~${o.formID}~${e.kgVarName}`)), T = ref(null);
|
9804
9805
|
function M() {
|
9805
9806
|
if (t.control) {
|
9806
9807
|
const I = {
|
@@ -9865,7 +9866,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9865
9866
|
return () => {
|
9866
9867
|
var I, A;
|
9867
9868
|
return o.isRetrieving.value ? null : createVNode(Col, {
|
9868
|
-
ref:
|
9869
|
+
ref: T,
|
9869
9870
|
span: p.value,
|
9870
9871
|
class: y.value,
|
9871
9872
|
style: _.value,
|
@@ -10211,9 +10212,9 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10211
10212
|
}).bind(null, pinia())), store$5);
|
10212
10213
|
function useKgSubmit(e) {
|
10213
10214
|
const t = useKgVar(e), r = useKgSubmitStore()(), a = computed(() => t.store.getVarSubmitConfig(t.formID)), n = computed(() => {
|
10214
|
-
var _, y, b, C,
|
10215
|
+
var _, y, b, C, T;
|
10215
10216
|
let l = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
10216
|
-
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type,
|
10217
|
+
const c = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE, d = (_ = a.value) == null ? void 0 : _.display_type, m = (y = a.value) == null ? void 0 : y.crt_display_type, v = (b = a.value) == null ? void 0 : b.upt_display_type, k = (C = a.value) == null ? void 0 : C.cpy_display_type, p = (T = a.value) == null ? void 0 : T.del_display_type;
|
10217
10218
|
switch (!0) {
|
10218
10219
|
case (t.isCreating.value && (m === c || !m && d === c)):
|
10219
10220
|
l = c;
|
@@ -10221,7 +10222,7 @@ function useKgSubmit(e) {
|
|
10221
10222
|
case (t.isUpdating.value && (v === c || !v && d === c)):
|
10222
10223
|
l = c;
|
10223
10224
|
break;
|
10224
|
-
case (t.isCopying.value && (
|
10225
|
+
case (t.isCopying.value && (k === c || !k && d === c)):
|
10225
10226
|
l = c;
|
10226
10227
|
break;
|
10227
10228
|
case (t.isDeleting.value && (p === c || !p)):
|
@@ -10235,7 +10236,7 @@ function useKgSubmit(e) {
|
|
10235
10236
|
case (t.isUpdating.value && (v === u || !v && d === u)):
|
10236
10237
|
l = u;
|
10237
10238
|
break;
|
10238
|
-
case (t.isCopying.value && (
|
10239
|
+
case (t.isCopying.value && (k === u || !k && d === u)):
|
10239
10240
|
l = u;
|
10240
10241
|
break;
|
10241
10242
|
}
|
@@ -10284,8 +10285,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10284
10285
|
}) => {
|
10285
10286
|
const u = o.store.getVarSubmitConfig(o.formID);
|
10286
10287
|
return s = watch(c, (d) => {
|
10287
|
-
var m, v,
|
10288
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (
|
10288
|
+
var m, v, k, p, _, y, b, C, T, M, E, N;
|
10289
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : null, d.frm_id = o.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (k = u == null ? void 0 : u.fullscreen_flg) != null ? k : 1, d.dft_fullscreen_flg = (p = u == null ? void 0 : u.dft_fullscreen_flg) != null ? p : 0, d.responsive_flg = (_ = u == null ? void 0 : u.responsive_flg) != null ? _ : 1, d.max_width = (y = u == null ? void 0 : u.max_width) != null ? y : DEFAULT_MAX_WIDTH, d.min_width = (b = u == null ? void 0 : u.min_width) != null ? b : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : 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 = (N = u == null ? void 0 : u.display_type) != null ? N : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10289
10290
|
}, {
|
10290
10291
|
immediate: !0
|
10291
10292
|
}), !1;
|
@@ -10334,7 +10335,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10334
10335
|
function v() {
|
10335
10336
|
r("kgCancel");
|
10336
10337
|
}
|
10337
|
-
function
|
10338
|
+
function k() {
|
10338
10339
|
var y;
|
10339
10340
|
return e.kgShowFullscreenButton === !1 || ((y = s.value) == null ? void 0 : y.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
10340
10341
|
onClick: d,
|
@@ -10363,7 +10364,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10363
10364
|
default: () => [createVNode(CloseOutlined$1, null, null)]
|
10364
10365
|
});
|
10365
10366
|
}
|
10366
|
-
return () => createVNode(Fragment, null, [p(),
|
10367
|
+
return () => createVNode(Fragment, null, [p(), k(), _()]);
|
10367
10368
|
}
|
10368
10369
|
}), 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;
|
10369
10370
|
function _useFormModel$1() {
|
@@ -10385,8 +10386,8 @@ function _useFormModel$1() {
|
|
10385
10386
|
if (c.value = {}, u != null && u.length) {
|
10386
10387
|
const d = r.selectedRow.value;
|
10387
10388
|
u.forEach((m) => {
|
10388
|
-
var
|
10389
|
-
const v = (
|
10389
|
+
var k, p, _, y, b, C, T, M;
|
10390
|
+
const v = (k = m.var_nam) != null ? k : "";
|
10390
10391
|
switch (c.value[v] = void 0, !0) {
|
10391
10392
|
case t.isCreating.value:
|
10392
10393
|
c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (p = m.crt_dft_val) != null ? p : void 0, "C");
|
@@ -10398,7 +10399,7 @@ function _useFormModel$1() {
|
|
10398
10399
|
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (C = (b = m.cpy_dft_val) != null ? b : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
|
10399
10400
|
break;
|
10400
10401
|
case t.isDeleting.value:
|
10401
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformValueByControlType(t.formID, v, e, (M = (
|
10402
|
+
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");
|
10402
10403
|
break;
|
10403
10404
|
}
|
10404
10405
|
});
|
@@ -10471,9 +10472,9 @@ function _useClass(e, t) {
|
|
10471
10472
|
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));
|
10472
10473
|
return {
|
10473
10474
|
getClass: computed(() => {
|
10474
|
-
var c, u, d, m, v,
|
10475
|
+
var c, u, d, m, v, k, p;
|
10475
10476
|
let l = "kg-submit";
|
10476
|
-
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"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? l += ` ${(p = (
|
10477
|
+
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"), (v = (m = r == null ? void 0 : r.value) == null ? void 0 : m.KgSubmit) != null && v.kgClass ? l += ` ${(p = (k = r == null ? void 0 : r.value) == null ? void 0 : k.KgSubmit) == null ? void 0 : p.kgClass}` : e.kgClass && (l += ` ${e.kgClass}`), l;
|
10477
10478
|
})
|
10478
10479
|
};
|
10479
10480
|
}
|
@@ -10549,7 +10550,7 @@ const getProps$p = () => ({
|
|
10549
10550
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10550
10551
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
10551
10552
|
i.onSubmitSave(async () => (await ue(), !1)), i.onSubmitCancel(async () => (await oe(), !1)), _useFormModel$1();
|
10552
|
-
const u = computed(() => o.isDeleting.value &&
|
10553
|
+
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)), v = computed(() => o.store.getVarSubmitFieldsForCreateKey(o.formID)), k = computed(() => o.store.getVarSubmitFieldsForCreateNotKey(o.formID)), p = computed(() => o.store.getVarSubmitFieldsForUpdateKey(o.formID)), _ = computed(() => o.store.getVarSubmitFieldsForUpdateNotKey(o.formID)), y = computed(() => o.store.getVarSubmitFieldsForCopyKey(o.formID)), b = computed(() => o.store.getVarSubmitFieldsForCopyNotKey(o.formID)), C = computed(() => o.store.getVarSubmitFieldsForDelete(o.formID)), T = computed(() => {
|
10553
10554
|
var L, B, q;
|
10554
10555
|
switch (!0) {
|
10555
10556
|
case o.isCreating.value:
|
@@ -10566,7 +10567,7 @@ const getProps$p = () => ({
|
|
10566
10567
|
var L, B, q, ee;
|
10567
10568
|
switch (!0) {
|
10568
10569
|
case o.isCreating.value:
|
10569
|
-
return (L =
|
10570
|
+
return (L = k.value) != null ? L : [];
|
10570
10571
|
case o.isUpdating.value:
|
10571
10572
|
return (B = _.value) != null ? B : [];
|
10572
10573
|
case o.isCopying.value:
|
@@ -10956,11 +10957,11 @@ const getProps$p = () => ({
|
|
10956
10957
|
}, {
|
10957
10958
|
default: () => [createVNode("div", {
|
10958
10959
|
ref: V
|
10959
|
-
}, [
|
10960
|
+
}, [T.value.length > 0 && createVNode(Row, {
|
10960
10961
|
gutter: 12
|
10961
|
-
}, _isSlot$8(L =
|
10962
|
+
}, _isSlot$8(L = T.value.map(K)) ? L : {
|
10962
10963
|
default: () => [L]
|
10963
|
-
}),
|
10964
|
+
}), T.value.length > 0 && M.value.length > 0 && createVNode(Divider, null, null), M.value.length > 0 && createVNode(Row, {
|
10964
10965
|
gutter: 12
|
10965
10966
|
}, _isSlot$8(B = M.value.map(K)) ? B : {
|
10966
10967
|
default: () => [B]
|
@@ -11228,7 +11229,7 @@ function useKgTable(e) {
|
|
11228
11229
|
}), v = computed(() => {
|
11229
11230
|
var p;
|
11230
11231
|
return (p = t.varGridConfig.value) == null ? void 0 : p.pg_size_opt;
|
11231
|
-
}),
|
11232
|
+
}), k = computed(() => {
|
11232
11233
|
var p;
|
11233
11234
|
return ((p = t.varGridConfig.value) == null ? void 0 : p.prf_frm_id) || t.formID;
|
11234
11235
|
});
|
@@ -11246,7 +11247,7 @@ function useKgTable(e) {
|
|
11246
11247
|
id: d,
|
11247
11248
|
pageSizeOptions: m,
|
11248
11249
|
pageSizeOption: v,
|
11249
|
-
profileFormID:
|
11250
|
+
profileFormID: k,
|
11250
11251
|
onRowDoubleClick: onEventFactory(t.formID, r, "rowDoubleClick"),
|
11251
11252
|
onBeforeRetrieve: onEventFactory(t.formID, r, "beforeRetrieve"),
|
11252
11253
|
onRetrieve: onEventFactory(t.formID, r, "retrieve")
|
@@ -11271,50 +11272,50 @@ const getProps$n = () => ({
|
|
11271
11272
|
}) {
|
11272
11273
|
const a = useKg(), n = useKgVar(), o = useKgButton(), i = useKgSubmit(), s = useKgTable();
|
11273
11274
|
o.onSubmitSave(async () => {
|
11274
|
-
var
|
11275
|
+
var T;
|
11275
11276
|
try {
|
11276
|
-
await ((
|
11277
|
+
await ((T = k.value) == null ? void 0 : T.validate());
|
11277
11278
|
} catch (M) {
|
11278
11279
|
KgUtil.throwIfNotFormError(M);
|
11279
11280
|
}
|
11280
11281
|
return !1;
|
11281
11282
|
});
|
11282
11283
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11283
|
-
var
|
11284
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((
|
11284
|
+
var T, M, E, N, I, A;
|
11285
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && ((E = c.value) == null ? void 0 : E.crt_flg) === 1 || !!n.isUpdating.value && ((N = c.value) == null ? void 0 : N.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((A = c.value) == null ? void 0 : A.del_flg) === 1);
|
11285
11286
|
}), d = computed(() => {
|
11286
|
-
var
|
11287
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((
|
11287
|
+
var T, M;
|
11288
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[s.id.value]) === ((M = s.selectedRow.value) == null ? void 0 : M[s.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
11288
11289
|
}), m = computed(() => {
|
11289
11290
|
var M, E;
|
11290
|
-
let
|
11291
|
-
return ((M = l.value) == null ? void 0 : M.align) === "center" ?
|
11291
|
+
let T = "kg-table-td";
|
11292
|
+
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;
|
11292
11293
|
}), v = computed(() => {
|
11293
11294
|
var M, E, N, I;
|
11294
11295
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11295
11296
|
return "";
|
11296
|
-
let
|
11297
|
+
let T = e.kgValue;
|
11297
11298
|
switch ((M = l.value) == null ? void 0 : M.display_type) {
|
11298
11299
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11299
11300
|
{
|
11300
11301
|
const A = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
|
11301
|
-
|
11302
|
+
T = (I = (N = e.kgRow) == null ? void 0 : N[A.dscFieldName || `${e.kgVarName}_dsc`]) != null ? I : e.kgValue;
|
11302
11303
|
}
|
11303
11304
|
break;
|
11304
11305
|
}
|
11305
|
-
return isString$1(
|
11306
|
-
`)),
|
11307
|
-
}),
|
11308
|
-
function p(
|
11306
|
+
return isString$1(T) && (T = T.replaceAll("\\n", `
|
11307
|
+
`)), T;
|
11308
|
+
}), k = ref(null);
|
11309
|
+
function p(T) {
|
11309
11310
|
var M, E, N;
|
11310
|
-
if (
|
11311
|
+
if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11311
11312
|
switch ((M = l.value) == null ? void 0 : M.display_type) {
|
11312
11313
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
11313
|
-
|
11314
|
+
T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
|
11314
11315
|
break;
|
11315
11316
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11316
11317
|
{
|
11317
|
-
|
11318
|
+
T.stopPropagation(), T.preventDefault();
|
11318
11319
|
const I = KgUtil.tryParseJSON((E = l.value) == null ? void 0 : E.display_type_properties);
|
11319
11320
|
(N = a.router.value) == null || N.push({
|
11320
11321
|
path: I.path,
|
@@ -11328,7 +11329,7 @@ const getProps$n = () => ({
|
|
11328
11329
|
}
|
11329
11330
|
function y() {
|
11330
11331
|
return createVNode(KgForm, {
|
11331
|
-
ref:
|
11332
|
+
ref: k,
|
11332
11333
|
model: i.model.value,
|
11333
11334
|
layout: "vertical",
|
11334
11335
|
wrapperCol: {
|
@@ -11348,10 +11349,10 @@ const getProps$n = () => ({
|
|
11348
11349
|
});
|
11349
11350
|
}
|
11350
11351
|
function b() {
|
11351
|
-
var
|
11352
|
+
var T, M, E, N, I, A, w, F, $, P;
|
11352
11353
|
if (u.value)
|
11353
11354
|
return y();
|
11354
|
-
switch ((
|
11355
|
+
switch ((T = l.value) == null ? void 0 : T.display_type) {
|
11355
11356
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11356
11357
|
const V = KgUtil.tryParseJSON((M = l.value) == null ? void 0 : M.display_type_properties);
|
11357
11358
|
return createVNode(KgYesOrNo, {
|
@@ -11401,9 +11402,9 @@ const getProps$n = () => ({
|
|
11401
11402
|
return C();
|
11402
11403
|
}
|
11403
11404
|
}
|
11404
|
-
function C(
|
11405
|
+
function C(T = !1) {
|
11405
11406
|
let M = "";
|
11406
|
-
return
|
11407
|
+
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (M += "kg-table-td-update-link"), createVNode("pre", {
|
11407
11408
|
innerHTML: v.value,
|
11408
11409
|
class: M,
|
11409
11410
|
onClick: p
|
@@ -11499,8 +11500,8 @@ const getProps$m = () => ({
|
|
11499
11500
|
}) => {
|
11500
11501
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
11501
11502
|
return i = watch(l, (u) => {
|
11502
|
-
var d, m, v,
|
11503
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (
|
11503
|
+
var d, m, v, k, p, _, y, b, C, T, M;
|
11504
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (k = c == null ? void 0 : c.show_check_column_flg) != null ? k : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (_ = c == null ? void 0 : c.show_bottom_right_flg) != null ? _ : 1, u.convert_sort_field_to_under_score_flg = (y = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? y : 0, u.pg_size_opts = (b = c == null ? void 0 : c.pg_size_opts) != null ? b : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 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);
|
11504
11505
|
}, {
|
11505
11506
|
immediate: !0
|
11506
11507
|
}), !1;
|
@@ -11689,8 +11690,8 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11689
11690
|
return o.onOpen(async ({
|
11690
11691
|
model: i
|
11691
11692
|
}) => {
|
11692
|
-
var s, l, c, u, d, m, v,
|
11693
|
-
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 = (
|
11693
|
+
var s, l, c, u, d, m, v, k, p, _;
|
11694
|
+
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 = (k = (v = n.currentVarGridMaster.value) == null ? void 0 : v.grp_nam) != null ? k : "", i.value.varGridDetails = (_ = (p = n.currentVarGridMaster.value) == null ? void 0 : p.varGridDetails) != null ? _ : [], !1;
|
11694
11695
|
}), o.onBeforeOk(async ({
|
11695
11696
|
model: i
|
11696
11697
|
}) => (i.value, !1)), o.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
@@ -11728,7 +11729,7 @@ const getProps$h = () => ({
|
|
11728
11729
|
vis_flg: C.vis_flg === 1 ? 0 : 1
|
11729
11730
|
});
|
11730
11731
|
}
|
11731
|
-
async function
|
11732
|
+
async function k() {
|
11732
11733
|
var C;
|
11733
11734
|
if (((C = n.currentVarGridMaster.value) == null ? void 0 : C.cust_lvl) === KG_CUSTOM_LEVEL.L0) {
|
11734
11735
|
KgUtil.confirm({
|
@@ -11763,24 +11764,24 @@ const getProps$h = () => ({
|
|
11763
11764
|
class: "columns"
|
11764
11765
|
}, [createVNode(Input, {
|
11765
11766
|
value: s.value,
|
11766
|
-
"onUpdate:value": (
|
11767
|
+
"onUpdate:value": (T) => s.value = T,
|
11767
11768
|
allowClear: !0
|
11768
11769
|
}, null), createVNode("ul", {
|
11769
11770
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
11770
|
-
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((
|
11771
|
+
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((T) => createVNode("li", {
|
11771
11772
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
11772
11773
|
onClick: (M) => {
|
11773
|
-
M.preventDefault(), M.stopPropagation(), v(
|
11774
|
+
M.preventDefault(), M.stopPropagation(), v(T);
|
11774
11775
|
},
|
11775
11776
|
style: {
|
11776
|
-
display: i(
|
11777
|
+
display: i(T, s.value) ? "flex" : "none"
|
11777
11778
|
},
|
11778
|
-
"kg-var_nam":
|
11779
|
+
"kg-var_nam": T.var_nam
|
11779
11780
|
}, [createVNode(Checkbox, {
|
11780
|
-
checked:
|
11781
|
+
checked: T.vis_flg === 1,
|
11781
11782
|
disabled: !0
|
11782
11783
|
}, {
|
11783
|
-
default: () => [createVNode("pre", null, [n.t(
|
11784
|
+
default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
|
11784
11785
|
}), createVNode(HolderOutlined$1, {
|
11785
11786
|
onClick: (M) => {
|
11786
11787
|
M.preventDefault(), M.stopPropagation();
|
@@ -11798,7 +11799,7 @@ const getProps$h = () => ({
|
|
11798
11799
|
}, {
|
11799
11800
|
default: () => {
|
11800
11801
|
var M;
|
11801
|
-
let C,
|
11802
|
+
let C, T;
|
11802
11803
|
return createVNode(Fragment, null, [(M = n.varGridMasters.value) == null ? void 0 : M.map((E) => {
|
11803
11804
|
var N;
|
11804
11805
|
return createVNode(Menu.Item, {
|
@@ -11811,14 +11812,14 @@ const getProps$h = () => ({
|
|
11811
11812
|
});
|
11812
11813
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
11813
11814
|
key: "save-grid-view",
|
11814
|
-
onClick:
|
11815
|
+
onClick: k
|
11815
11816
|
}, _isSlot$5(C = a.t("kg.KgTable.saveVarGridMaster")) ? C : {
|
11816
11817
|
default: () => [C]
|
11817
11818
|
}), createVNode(Menu.Item, {
|
11818
11819
|
key: "save-grid-view-as",
|
11819
11820
|
onClick: p
|
11820
|
-
}, _isSlot$5(
|
11821
|
-
default: () => [
|
11821
|
+
}, _isSlot$5(T = a.t("kg.KgTable.saveVarGridMasterAs")) ? T : {
|
11822
|
+
default: () => [T]
|
11822
11823
|
})]);
|
11823
11824
|
},
|
11824
11825
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
@@ -11862,7 +11863,7 @@ function _useColumns(e) {
|
|
11862
11863
|
var l;
|
11863
11864
|
return ((l = r.store.getVarGridConfig(r.formID)) == null ? void 0 : l.show_check_column_flg) === 1;
|
11864
11865
|
}), i = computed(() => {
|
11865
|
-
var m, v,
|
11866
|
+
var m, v, k;
|
11866
11867
|
const l = (m = n.store.getTableWidth(r.formID)) != null ? m : 0, c = (v = r.store.getCurrentVisibleVarGridDetailsTotalWidth(r.formID)) != null ? v : 0, u = r.store.getCurrentVisibleVarGridDetails(r.formID), d = [{
|
11867
11868
|
dataIndex: "index",
|
11868
11869
|
width: KG_TABLE_TD_INDEX_WIDTH,
|
@@ -11872,7 +11873,7 @@ function _useColumns(e) {
|
|
11872
11873
|
customRender: ({
|
11873
11874
|
index: p
|
11874
11875
|
}) => p + 1
|
11875
|
-
}, ...(
|
11876
|
+
}, ...(k = u == null ? void 0 : u.map((p) => {
|
11876
11877
|
const _ = p.var_nam;
|
11877
11878
|
function y() {
|
11878
11879
|
return p.width === "auto" ? "auto" : Number(p.width) || KG_TABLE_TD_DEFAULT_WIDTH;
|
@@ -11883,7 +11884,7 @@ function _useColumns(e) {
|
|
11883
11884
|
function C() {
|
11884
11885
|
return p.ord === -1 ? null : p.ord === 0 ? "ascend" : p.ord === 1 ? "descend" : null;
|
11885
11886
|
}
|
11886
|
-
function
|
11887
|
+
function T() {
|
11887
11888
|
if (p.fix_left_flg === 1)
|
11888
11889
|
return "left";
|
11889
11890
|
if (p.fix_right_flg === 1)
|
@@ -11904,7 +11905,7 @@ function _useColumns(e) {
|
|
11904
11905
|
resizable: typeof N == "number",
|
11905
11906
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11906
11907
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11907
|
-
fixed:
|
11908
|
+
fixed: T(),
|
11908
11909
|
sorter: M(),
|
11909
11910
|
align: E(),
|
11910
11911
|
defaultSortOrder: C(),
|
@@ -11922,7 +11923,7 @@ function _useColumns(e) {
|
|
11922
11923
|
};
|
11923
11924
|
}
|
11924
11925
|
};
|
11925
|
-
})) != null ?
|
11926
|
+
})) != null ? k : []];
|
11926
11927
|
return (c === 0 || l > c && !(u != null && u.find((p) => p.width === "auto"))) && d.push({
|
11927
11928
|
width: "auto",
|
11928
11929
|
customRender: () => null
|
@@ -11997,7 +11998,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
11997
11998
|
}
|
11998
11999
|
});
|
11999
12000
|
const m = ref(!1), v = ref([]), {
|
12000
|
-
columns:
|
12001
|
+
columns: k,
|
12001
12002
|
scrollX: p
|
12002
12003
|
} = _useColumns(e), {
|
12003
12004
|
isLoading: _
|
@@ -12021,7 +12022,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12021
12022
|
...K,
|
12022
12023
|
...KgVarUtil.parseCommandParameter((B = s.varGridConfig.value.cmd_prm) != null ? B : "")
|
12023
12024
|
}), ((q = s.varGridConfig.value) == null ? void 0 : q.convert_sort_field_to_under_score_flg) === 1 && K.column && (K.column = snakeCase$1(K.column)), K;
|
12024
|
-
}),
|
12025
|
+
}), T = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value || P.total === 0), M = computed(() => _.value || !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value), E = computed(() => {
|
12025
12026
|
var K;
|
12026
12027
|
return !!((K = n == null ? void 0 : n.KgTable) != null && K.expandedRowRender);
|
12027
12028
|
}), N = computed(() => {
|
@@ -12057,7 +12058,9 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12057
12058
|
column: void 0,
|
12058
12059
|
order: void 0
|
12059
12060
|
}), D = watch(u.pageSizeOption, (K) => {
|
12060
|
-
K && (setTimeout(() => D()), P.pageSize = K
|
12061
|
+
K && (setTimeout(() => D()), P.pageSize = K, m.value = !0, KgLogger.debug(`${s.formID} | KgTable | isReadReady: ${m.value}`));
|
12062
|
+
}, {
|
12063
|
+
immediate: !0
|
12061
12064
|
});
|
12062
12065
|
watch(u.pageSizeOptions, (K) => {
|
12063
12066
|
K.length > 0 && !K.includes(P.pageSize) && (P.pageSize = u.pageSizeOption.value);
|
@@ -12209,7 +12212,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12209
12212
|
function oe(K) {
|
12210
12213
|
u.store.setSelectedRows(s.formID, [K].map((U) => {
|
12211
12214
|
var z;
|
12212
|
-
return (z = F.value) == null ? void 0 : z.find((W) => W[u.id.value] === U);
|
12215
|
+
return (z = F.value) == null ? void 0 : z.find((W) => W[u.id.value] === U[u.id.value]);
|
12213
12216
|
}).filter((U) => !!U)), c.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
12214
12217
|
}
|
12215
12218
|
function ue({
|
@@ -12243,7 +12246,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12243
12246
|
index: 0
|
12244
12247
|
}, null), N.value && createVNode(TableSummary.Cell, {
|
12245
12248
|
index: E.value ? 1 : 0
|
12246
|
-
}, null),
|
12249
|
+
}, null), k.value.map((U, z) => {
|
12247
12250
|
const W = s.store.getVarGridDetail(s.formID, U.dataIndex);
|
12248
12251
|
let J = z;
|
12249
12252
|
return E.value && N.value ? J += 2 : (E.value || N.value) && (J += 1), createVNode(TableSummary.Cell, {
|
@@ -12318,7 +12321,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12318
12321
|
},
|
12319
12322
|
pagination: !1,
|
12320
12323
|
showSorterTooltip: !1,
|
12321
|
-
columns:
|
12324
|
+
columns: k.value,
|
12322
12325
|
dataSource: F.value,
|
12323
12326
|
loading: _.value,
|
12324
12327
|
rowKey: u.id.value,
|
@@ -12358,7 +12361,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12358
12361
|
showSizeChanger: !0,
|
12359
12362
|
showQuickJumper: !1,
|
12360
12363
|
hideOnSinglePage: !1,
|
12361
|
-
disabled:
|
12364
|
+
disabled: T.value,
|
12362
12365
|
locale: {
|
12363
12366
|
page: ""
|
12364
12367
|
},
|
@@ -12393,8 +12396,8 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12393
12396
|
attrs: t
|
12394
12397
|
}) {
|
12395
12398
|
const r = useKg(), a = useKgVar(), n = useKgTable(), o = computed(() => a.store.getVarButton(a.formID, e.kgVarName)), i = computed(() => {
|
12396
|
-
var u, d, m, v,
|
12397
|
-
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (
|
12399
|
+
var u, d, m, v, k, p, _, y;
|
12400
|
+
return a.isCreating.value || a.isUpdating.value || a.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (k = n.selectedRows.value) == null ? void 0 : k.length) != null ? p : 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;
|
12398
12401
|
});
|
12399
12402
|
async function s() {
|
12400
12403
|
e.onKgClick && await e.onKgClick() || a.store.setIsCopying(a.formID, !0);
|
@@ -12572,8 +12575,8 @@ const KgButtonCreate = defineComponent({
|
|
12572
12575
|
attrs: a
|
12573
12576
|
}) {
|
12574
12577
|
const n = useKg(), o = useKgVar(), i = useKgButton(), s = useKgTable(), l = useKgSubmit(), c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
12575
|
-
var C,
|
12576
|
-
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (
|
12578
|
+
var C, T, M, E, N, I, A, w;
|
12579
|
+
return o.isUpdating.value || o.isCopying.value || o.isDeleting.value || s.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = s.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = s.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12577
12580
|
}), d = computed(() => !!o.isCreatingRequesting.value);
|
12578
12581
|
async function m() {
|
12579
12582
|
e.onKgClick && await e.onKgClick() || o.store.setIsCreating(o.formID, !0);
|
@@ -12581,7 +12584,7 @@ const KgButtonCreate = defineComponent({
|
|
12581
12584
|
function v() {
|
12582
12585
|
i.store.emit(o.formID, "submitSave");
|
12583
12586
|
}
|
12584
|
-
function
|
12587
|
+
function k() {
|
12585
12588
|
i.store.emit(o.formID, "submitCancel");
|
12586
12589
|
}
|
12587
12590
|
function p() {
|
@@ -12595,14 +12598,14 @@ const KgButtonCreate = defineComponent({
|
|
12595
12598
|
return e.kgText ? e.kgText : n.t("kg.create");
|
12596
12599
|
}
|
12597
12600
|
function y() {
|
12598
|
-
var C,
|
12601
|
+
var C, T, M, E;
|
12599
12602
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isCreating.value ? null : createVNode(Button, {
|
12600
12603
|
type: "primary",
|
12601
12604
|
disabled: u.value,
|
12602
12605
|
onClick: m,
|
12603
12606
|
class: a.class,
|
12604
12607
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
12605
|
-
"kg-frm_id": (
|
12608
|
+
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
12606
12609
|
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
12607
12610
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
12608
12611
|
}, {
|
@@ -12620,7 +12623,7 @@ const KgButtonCreate = defineComponent({
|
|
12620
12623
|
type: "primary",
|
12621
12624
|
ghost: !d.value,
|
12622
12625
|
disabled: d.value,
|
12623
|
-
onClick:
|
12626
|
+
onClick: k
|
12624
12627
|
}, {
|
12625
12628
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
12626
12629
|
})]);
|
@@ -12632,8 +12635,8 @@ const KgButtonCreate = defineComponent({
|
|
12632
12635
|
props: getProps$f(),
|
12633
12636
|
setup(e) {
|
12634
12637
|
const t = useKg(), r = useKgVar(), a = useKgTable(), n = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), o = computed(() => {
|
12635
|
-
var c, u, d, m, v,
|
12636
|
-
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 && ((
|
12638
|
+
var c, u, d, m, v, k, p, _;
|
12639
|
+
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 && ((k = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) > 1 || ((p = n.value) == null ? void 0 : p.permission_type) === 2 && !t.p((_ = n.value) == null ? void 0 : _.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12637
12640
|
});
|
12638
12641
|
async function i() {
|
12639
12642
|
e.onKgClick && await e.onKgClick() || r.store.setIsDeleting(r.formID, !0);
|
@@ -12670,29 +12673,29 @@ const KgButtonCreate = defineComponent({
|
|
12670
12673
|
props: getProps$f(),
|
12671
12674
|
setup(e) {
|
12672
12675
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
12673
|
-
var
|
12674
|
-
return o.value ? (p = (
|
12676
|
+
var k, p;
|
12677
|
+
return o.value ? (p = (k = o.value) == null ? void 0 : k.cmd) != null ? p : "" : null;
|
12675
12678
|
}), s = computed(() => {
|
12676
|
-
var
|
12677
|
-
return (p = (
|
12679
|
+
var k, p;
|
12680
|
+
return (p = (k = o.value) == null ? void 0 : k.cmd_method) != null ? p : "GET";
|
12678
12681
|
}), l = computed(() => {
|
12679
|
-
var p, _, y, b, C,
|
12680
|
-
let
|
12682
|
+
var p, _, y, b, C, T;
|
12683
|
+
let k = {
|
12681
12684
|
...(p = a.model.value) != null ? p : {}
|
12682
12685
|
};
|
12683
|
-
return o.value && (
|
12684
|
-
...
|
12686
|
+
return o.value && (k = {
|
12687
|
+
...k,
|
12685
12688
|
...KgVarUtil.parseCommandParameter((y = (_ = o.value) == null ? void 0 : _.cmd_prm) != null ? y : "")
|
12686
|
-
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (
|
12687
|
-
...
|
12689
|
+
}), (b = r.varGridConfig.value) != null && b.cmd_prm && (k = {
|
12690
|
+
...k,
|
12688
12691
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
12689
|
-
}), ((
|
12692
|
+
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && k.column && (k.column = snakeCase$1(k.column)), k;
|
12690
12693
|
}), c = computed(() => {
|
12691
|
-
var
|
12692
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((
|
12694
|
+
var k, p, _, y, b, C, T, M;
|
12695
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((k = o.value) == null ? void 0 : k.dis_no_select_flg) === 1 && ((_ = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? _ : 0) === 0 || ((y = o.value) == null ? void 0 : y.dis_mult_select_flg) === 1 && ((C = (b = n.selectedRows.value) == null ? void 0 : b.length) != null ? C : 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;
|
12693
12696
|
}), u = ref(!1);
|
12694
12697
|
async function d() {
|
12695
|
-
var
|
12698
|
+
var k, p, _;
|
12696
12699
|
if (!(e.onKgClick && await e.onKgClick())) {
|
12697
12700
|
if (!i.value) {
|
12698
12701
|
KgLogger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -12711,7 +12714,7 @@ const KgButtonCreate = defineComponent({
|
|
12711
12714
|
joinParamsToUrl: !0,
|
12712
12715
|
isTransformResponse: !1
|
12713
12716
|
});
|
12714
|
-
KgUtil.downloadFile(y, `${r.t((p = (
|
12717
|
+
KgUtil.downloadFile(y, `${r.t((p = (k = o.value) == null ? void 0 : k.export_excel_filename) != null ? p : "export").value}.${(_ = o.value) == null ? void 0 : _.export_excel_suffix}`);
|
12715
12718
|
} catch (y) {
|
12716
12719
|
throw y;
|
12717
12720
|
} finally {
|
@@ -12730,14 +12733,14 @@ const KgButtonCreate = defineComponent({
|
|
12730
12733
|
return e.kgText ? e.kgText : t.t("kg.export");
|
12731
12734
|
}
|
12732
12735
|
return () => {
|
12733
|
-
var
|
12736
|
+
var k, p, _, y;
|
12734
12737
|
return createVNode(Button, {
|
12735
12738
|
type: "primary",
|
12736
12739
|
disabled: c.value,
|
12737
12740
|
ghost: !e.kgPrimary && !c.value,
|
12738
12741
|
loading: u.value,
|
12739
12742
|
onClick: d,
|
12740
|
-
"kg-id": (
|
12743
|
+
"kg-id": (k = o.value) == null ? void 0 : k.id,
|
12741
12744
|
"kg-frm_id": (p = o.value) == null ? void 0 : p.frm_id,
|
12742
12745
|
"kg-var_nam": (_ = o.value) == null ? void 0 : _.var_nam,
|
12743
12746
|
"kg-cmd": (y = o.value) == null ? void 0 : y.cmd
|
@@ -12770,8 +12773,8 @@ const KgButtonCreate = defineComponent({
|
|
12770
12773
|
...KgVarUtil.parseCommandParameter((C = (b = s.value) == null ? void 0 : b.cmd_prm) != null ? C : "")
|
12771
12774
|
}), _;
|
12772
12775
|
}), d = computed(() => {
|
12773
|
-
var _, y, b, C,
|
12774
|
-
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 && ((b = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((C = s.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((M = (
|
12776
|
+
var _, y, b, C, T, M, E, N;
|
12777
|
+
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 && ((b = (y = i.selectedRows.value) == null ? void 0 : y.length) != null ? b : 0) === 0 || ((C = s.value) == null ? void 0 : C.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((N = s.value) == null ? void 0 : N.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12775
12778
|
}), m = ref(!1);
|
12776
12779
|
async function v(_) {
|
12777
12780
|
if (!l.value)
|
@@ -12781,7 +12784,8 @@ const KgButtonCreate = defineComponent({
|
|
12781
12784
|
m.value = !0;
|
12782
12785
|
try {
|
12783
12786
|
const y = new FormData();
|
12784
|
-
y.append("file", _)
|
12787
|
+
y.append("file", _);
|
12788
|
+
const b = await httpClient().axiosInstance.request({
|
12785
12789
|
method: c.value,
|
12786
12790
|
baseURL: window._CONFIG.domianURL,
|
12787
12791
|
url: l.value,
|
@@ -12791,7 +12795,8 @@ const KgButtonCreate = defineComponent({
|
|
12791
12795
|
"Content-Type": "multipart/form-data;charset=UTF-8",
|
12792
12796
|
ignoreCancelToken: !0
|
12793
12797
|
}
|
12794
|
-
})
|
12798
|
+
});
|
12799
|
+
message.success(a.t("kg.importSuccess")), o.search(!0);
|
12795
12800
|
} catch (y) {
|
12796
12801
|
throw y;
|
12797
12802
|
} finally {
|
@@ -12799,7 +12804,7 @@ const KgButtonCreate = defineComponent({
|
|
12799
12804
|
}
|
12800
12805
|
return !1;
|
12801
12806
|
}
|
12802
|
-
function
|
12807
|
+
function k() {
|
12803
12808
|
return m.value ? createVNode(LoadingOutlined$1, null, null) : e.kgIcon ? createVNode("span", {
|
12804
12809
|
class: "anticon"
|
12805
12810
|
}, [createVNode(Icon, {
|
@@ -12828,7 +12833,7 @@ const KgButtonCreate = defineComponent({
|
|
12828
12833
|
"kg-var_nam": (b = s.value) == null ? void 0 : b.var_nam,
|
12829
12834
|
"kg-cmd": (C = s.value) == null ? void 0 : C.cmd
|
12830
12835
|
}, {
|
12831
|
-
default: () => [
|
12836
|
+
default: () => [k(), p()]
|
12832
12837
|
})];
|
12833
12838
|
}
|
12834
12839
|
});
|
@@ -12844,8 +12849,8 @@ const KgButtonCreate = defineComponent({
|
|
12844
12849
|
var m, v;
|
12845
12850
|
return (v = (m = n.value) == null ? void 0 : m.cmd_method) != null ? v : "GET";
|
12846
12851
|
}), s = computed(() => {
|
12847
|
-
var m, v,
|
12848
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((
|
12852
|
+
var m, v, k, p, _, y, b, C;
|
12853
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || a.isRetrieving.value || ((m = n.value) == null ? void 0 : m.dis_no_select_flg) === 1 && ((k = (v = a.selectedRows.value) == null ? void 0 : v.length) != null ? k : 0) === 0 || ((p = n.value) == null ? void 0 : p.dis_mult_select_flg) === 1 && ((y = (_ = a.selectedRows.value) == null ? void 0 : _.length) != null ? y : 0) > 1 || ((b = n.value) == null ? void 0 : b.permission_type) === 2 && !t.p((C = n.value) == null ? void 0 : C.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
12849
12854
|
}), l = ref(!1);
|
12850
12855
|
async function c() {
|
12851
12856
|
var m;
|
@@ -12886,7 +12891,7 @@ const KgButtonCreate = defineComponent({
|
|
12886
12891
|
return e.kgText ? e.kgText : t.t("kg.downloadImportTemplate");
|
12887
12892
|
}
|
12888
12893
|
return () => {
|
12889
|
-
var m, v,
|
12894
|
+
var m, v, k, p;
|
12890
12895
|
return createVNode(Button, {
|
12891
12896
|
type: "primary",
|
12892
12897
|
disabled: s.value,
|
@@ -12895,7 +12900,7 @@ const KgButtonCreate = defineComponent({
|
|
12895
12900
|
onClick: c,
|
12896
12901
|
"kg-id": (m = n.value) == null ? void 0 : m.id,
|
12897
12902
|
"kg-frm_id": (v = n.value) == null ? void 0 : v.frm_id,
|
12898
|
-
"kg-var_nam": (
|
12903
|
+
"kg-var_nam": (k = n.value) == null ? void 0 : k.var_nam,
|
12899
12904
|
"kg-cmd": (p = n.value) == null ? void 0 : p.cmd
|
12900
12905
|
}, {
|
12901
12906
|
default: () => [u(), d()]
|
@@ -12907,11 +12912,11 @@ const KgButtonCreate = defineComponent({
|
|
12907
12912
|
props: getProps$f(),
|
12908
12913
|
setup(e) {
|
12909
12914
|
const t = useKg(), r = useKgVar(), a = useKgSearch(), n = useKgTable(), o = computed(() => r.store.getVarButton(r.formID, e.kgVarName)), i = computed(() => {
|
12910
|
-
var u, d, m, v,
|
12911
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (
|
12915
|
+
var u, d, m, v, k, p, _, y;
|
12916
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((u = o.value) == null ? void 0 : u.dis_no_select_flg) === 1 && ((m = (d = n.selectedRows.value) == null ? void 0 : d.length) != null ? m : 0) === 0 || ((v = o.value) == null ? void 0 : v.dis_mult_select_flg) === 1 && ((p = (k = n.selectedRows.value) == null ? void 0 : k.length) != null ? p : 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;
|
12912
12917
|
});
|
12913
12918
|
async function s() {
|
12914
|
-
var v,
|
12919
|
+
var v, k, p;
|
12915
12920
|
if (e.onKgClick && await e.onKgClick())
|
12916
12921
|
return;
|
12917
12922
|
const u = (v = e.kgButton) == null ? void 0 : v.cmd;
|
@@ -12923,14 +12928,14 @@ const KgButtonCreate = defineComponent({
|
|
12923
12928
|
}
|
12924
12929
|
let d = null;
|
12925
12930
|
const m = async () => {
|
12926
|
-
var y, b, C,
|
12931
|
+
var y, b, C, T, M, E;
|
12927
12932
|
d == null || d.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
12928
12933
|
const _ = n.selectedRows.value;
|
12929
12934
|
try {
|
12930
12935
|
await httpClient().request({
|
12931
12936
|
method: (b = (y = e.kgButton) == null ? void 0 : y.cmd_method) != null ? b : "POST",
|
12932
12937
|
url: u,
|
12933
|
-
params: KgVarUtil.parseCommandParameter((
|
12938
|
+
params: KgVarUtil.parseCommandParameter((T = (C = e.kgButton) == null ? void 0 : C.cmd_prm) != null ? T : ""),
|
12934
12939
|
data: _ != null ? _ : []
|
12935
12940
|
}), ((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 ({
|
12936
12941
|
datas: N
|
@@ -12944,7 +12949,7 @@ const KgButtonCreate = defineComponent({
|
|
12944
12949
|
r.store.setIsOtherRequesting(r.formID, !1), d == null || d.hideLoading();
|
12945
12950
|
}
|
12946
12951
|
};
|
12947
|
-
if (((
|
12952
|
+
if (((k = e.kgButton) == null ? void 0 : k.show_modal_flg) === 1) {
|
12948
12953
|
const _ = KgUtil.tryParseJSON((p = e.kgButton) == null ? void 0 : p.modal_props);
|
12949
12954
|
typeof _.content == "string" && (_.content = r.t(_.content).value), d = KgUtil.confirm({
|
12950
12955
|
onOk: () => m(),
|
@@ -13030,17 +13035,17 @@ const KgButtonCreate = defineComponent({
|
|
13030
13035
|
const n = useKg(), o = useKgVar(), i = useKgTable(), s = useKgButton(), l = useKgSubmit();
|
13031
13036
|
s.store.$onAction(async ({
|
13032
13037
|
name: C,
|
13033
|
-
args:
|
13038
|
+
args: T
|
13034
13039
|
}) => {
|
13035
13040
|
switch (C) {
|
13036
13041
|
case "click":
|
13037
|
-
|
13042
|
+
T[0] === o.formID && await m();
|
13038
13043
|
break;
|
13039
13044
|
}
|
13040
13045
|
});
|
13041
13046
|
const c = computed(() => o.store.getVarButton(o.formID, e.kgVarName)), u = computed(() => {
|
13042
|
-
var C,
|
13043
|
-
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (
|
13047
|
+
var C, T, M, E, N, I, A, w;
|
13048
|
+
return o.isCreating.value || o.isCopying.value || o.isDeleting.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((M = (T = i.selectedRows.value) == null ? void 0 : T.length) != null ? M : 0) === 0 || ((E = c.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((I = (N = i.selectedRows.value) == null ? void 0 : N.length) != null ? I : 0) > 1 || ((A = c.value) == null ? void 0 : A.permission_type) === 2 && !n.p((w = c.value) == null ? void 0 : w.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13044
13049
|
}), d = computed(() => !!o.isUpdatingRequesting.value);
|
13045
13050
|
async function m() {
|
13046
13051
|
e.onKgClick && await e.onKgClick() || await s.store.emit(o.formID, "updateBeforeClick", {
|
@@ -13051,7 +13056,7 @@ const KgButtonCreate = defineComponent({
|
|
13051
13056
|
function v() {
|
13052
13057
|
s.store.emit(o.formID, "submitSave");
|
13053
13058
|
}
|
13054
|
-
function
|
13059
|
+
function k() {
|
13055
13060
|
s.store.emit(o.formID, "submitCancel");
|
13056
13061
|
}
|
13057
13062
|
function p() {
|
@@ -13065,7 +13070,7 @@ const KgButtonCreate = defineComponent({
|
|
13065
13070
|
return e.kgText ? e.kgText : n.t("kg.update");
|
13066
13071
|
}
|
13067
13072
|
function y() {
|
13068
|
-
var C,
|
13073
|
+
var C, T, M, E;
|
13069
13074
|
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && o.isUpdating.value ? null : createVNode(Button, {
|
13070
13075
|
type: "primary",
|
13071
13076
|
disabled: u.value,
|
@@ -13073,7 +13078,7 @@ const KgButtonCreate = defineComponent({
|
|
13073
13078
|
onClick: m,
|
13074
13079
|
class: a.class,
|
13075
13080
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
13076
|
-
"kg-frm_id": (
|
13081
|
+
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
13077
13082
|
"kg-var_nam": (M = c.value) == null ? void 0 : M.var_nam,
|
13078
13083
|
"kg-cmd": (E = c.value) == null ? void 0 : E.cmd
|
13079
13084
|
}, {
|
@@ -13091,7 +13096,7 @@ const KgButtonCreate = defineComponent({
|
|
13091
13096
|
type: "primary",
|
13092
13097
|
ghost: !d.value,
|
13093
13098
|
disabled: d.value,
|
13094
|
-
onClick:
|
13099
|
+
onClick: k
|
13095
13100
|
}, {
|
13096
13101
|
default: () => [createVNode(StopOutlined$1, null, null), n.t("kg.cancel")]
|
13097
13102
|
})]);
|
@@ -13199,7 +13204,7 @@ const getProps$e = () => ({
|
|
13199
13204
|
return null;
|
13200
13205
|
switch ((_ = n.varGridConfig.value) == null ? void 0 : _.button_display_type) {
|
13201
13206
|
case KG_BUTTON_DISPLAY_TYPE.SELECT:
|
13202
|
-
return
|
13207
|
+
return k();
|
13203
13208
|
default:
|
13204
13209
|
return v();
|
13205
13210
|
}
|
@@ -13221,7 +13226,7 @@ const getProps$e = () => ({
|
|
13221
13226
|
var p;
|
13222
13227
|
return (p = n.varButtons.value) == null ? void 0 : p.filter((_) => _.typ !== KG_BUTTON_TYPE.SEARCH).map((_) => m(_));
|
13223
13228
|
}
|
13224
|
-
function
|
13229
|
+
function k() {
|
13225
13230
|
return createVNode(Dropdown, {
|
13226
13231
|
trigger: "click",
|
13227
13232
|
overlayClassName: "kg-button-dropdown"
|
@@ -13666,8 +13671,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13666
13671
|
model: C
|
13667
13672
|
}) => {
|
13668
13673
|
var M, E, N;
|
13669
|
-
const
|
13670
|
-
switch (l.value =
|
13674
|
+
const T = s.store.getSystemVarProfileDetails(s.formID);
|
13675
|
+
switch (l.value = T ? cloneDeep(unref(toRaw(T))) : [], !0) {
|
13671
13676
|
case p:
|
13672
13677
|
c.value = [];
|
13673
13678
|
break;
|
@@ -13742,7 +13747,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13742
13747
|
model: y,
|
13743
13748
|
varVariableConfig: b,
|
13744
13749
|
varProfileDetail: C,
|
13745
|
-
varSubmitField:
|
13750
|
+
varSubmitField: T
|
13746
13751
|
}) => createVNode(Transfer, {
|
13747
13752
|
dataSource: l.value,
|
13748
13753
|
targetKeys: c.value,
|
@@ -13775,7 +13780,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13775
13780
|
rowKey: "id",
|
13776
13781
|
dataSource: E,
|
13777
13782
|
customRow: (F) => ({
|
13778
|
-
onClick: ($) =>
|
13783
|
+
onClick: ($) => k($, F, M, N)
|
13779
13784
|
}),
|
13780
13785
|
rowSelection: m({
|
13781
13786
|
disabled: I,
|
@@ -13800,16 +13805,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13800
13805
|
getCheckboxProps: (C) => ({
|
13801
13806
|
disabled: p || C.disabled
|
13802
13807
|
}),
|
13803
|
-
onSelectAll(C,
|
13804
|
-
const M =
|
13808
|
+
onSelectAll(C, T) {
|
13809
|
+
const M = T.filter((E) => !E.disabled).map(({
|
13805
13810
|
key: E
|
13806
13811
|
}) => E);
|
13807
13812
|
y(M, C);
|
13808
13813
|
},
|
13809
13814
|
onSelect({
|
13810
13815
|
key: C
|
13811
|
-
},
|
13812
|
-
b(C,
|
13816
|
+
}, T) {
|
13817
|
+
b(C, T);
|
13813
13818
|
},
|
13814
13819
|
selectedRowKeys: _,
|
13815
13820
|
columnWidth: 32
|
@@ -13823,7 +13828,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13823
13828
|
immediate: !0
|
13824
13829
|
});
|
13825
13830
|
}
|
13826
|
-
function
|
13831
|
+
function k(p, _, y, b) {
|
13827
13832
|
if (!KgDomUtil.isNotClickable(p.target, ["ant-input"]))
|
13828
13833
|
switch (b.length = 0, p.detail) {
|
13829
13834
|
case 1:
|
@@ -13995,7 +14000,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13995
14000
|
kgHeight: d.value
|
13996
14001
|
});
|
13997
14002
|
_useLayoutHeaderResizeObserver(), _useFormModel(m, v);
|
13998
|
-
const
|
14003
|
+
const k = computed(() => {
|
13999
14004
|
var O, R;
|
14000
14005
|
return !!(o.isRetrieving.value || ((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) === 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code) || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value);
|
14001
14006
|
}), p = computed(() => !!(o.isRetrieving.value || a.isCreating.value || a.isUpdating.value || a.isCopying.value || a.isDeleting.value)), _ = computed(() => !!o.isRetrieving.value), y = ref({
|
@@ -14004,7 +14009,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14004
14009
|
var O, R, x;
|
14005
14010
|
if (a.t((O = a.varButtonSearch.value) == null ? void 0 : O.var_nam).value !== ((R = a.varButtonSearch.value) == null ? void 0 : R.var_nam))
|
14006
14011
|
return a.t((x = a.varButtonSearch.value) == null ? void 0 : x.var_nam).value;
|
14007
|
-
}),
|
14012
|
+
}), T = computed(() => {
|
14008
14013
|
var O;
|
14009
14014
|
switch ((O = a.varButtonSearch.value) == null ? void 0 : O.primary_flg) {
|
14010
14015
|
case 1:
|
@@ -14022,7 +14027,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14022
14027
|
n.store.dispose(a.formID);
|
14023
14028
|
});
|
14024
14029
|
function I(O = !1) {
|
14025
|
-
|
14030
|
+
k.value || (i.value ? m.value && m.value.validate().then(() => {
|
14026
14031
|
n.store.emit(a.formID, "search", {
|
14027
14032
|
resetPageIndex: O
|
14028
14033
|
});
|
@@ -14096,8 +14101,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14096
14101
|
var O, R, x, G, H;
|
14097
14102
|
return createVNode(Fragment, null, [$(), !(((O = a.varButtonSearch.value) == null ? void 0 : O.permission_type) !== 2 && !r.p((R = a.varButtonSearch.value) == null ? void 0 : R.permission_code)) && createVNode(Button, {
|
14098
14103
|
type: "primary",
|
14099
|
-
ghost: !
|
14100
|
-
disabled:
|
14104
|
+
ghost: !k.value,
|
14105
|
+
disabled: k.value,
|
14101
14106
|
onClick: A,
|
14102
14107
|
class: "kg-search-btn-reset"
|
14103
14108
|
}, {
|
@@ -14108,7 +14113,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
14108
14113
|
kgIcon: (G = a.varButtonSearch.value) == null ? void 0 : G.icon,
|
14109
14114
|
kgText: C.value,
|
14110
14115
|
kgColor: (H = a.varButtonSearch.value) == null ? void 0 : H.color,
|
14111
|
-
kgPrimary:
|
14116
|
+
kgPrimary: T.value,
|
14112
14117
|
kgLoading: _.value,
|
14113
14118
|
onKgClick: w
|
14114
14119
|
}, null)]);
|
@@ -14238,8 +14243,8 @@ function useMagicKeys(e = {}) {
|
|
14238
14243
|
}
|
14239
14244
|
function v(p, _) {
|
14240
14245
|
var y, b;
|
14241
|
-
const C = (y = p.key) == null ? void 0 : y.toLowerCase(),
|
14242
|
-
|
14246
|
+
const C = (y = p.key) == null ? void 0 : y.toLowerCase(), T = (b = p.code) == null ? void 0 : b.toLowerCase(), M = [T, C].filter(Boolean);
|
14247
|
+
T && (_ ? i.add(p.code) : i.delete(p.code));
|
14243
14248
|
for (const E of M)
|
14244
14249
|
u.add(E), d(E, _);
|
14245
14250
|
C === "meta" && !_ ? (c.forEach((E) => {
|
@@ -14247,21 +14252,21 @@ function useMagicKeys(e = {}) {
|
|
14247
14252
|
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && _ && [...i, ...M].forEach((E) => c.add(E));
|
14248
14253
|
}
|
14249
14254
|
r && (useEventListener(r, "keydown", (p) => (v(p, !0), o(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), o(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
14250
|
-
const
|
14255
|
+
const k = new Proxy(l, {
|
14251
14256
|
get(p, _, y) {
|
14252
14257
|
if (typeof _ != "string")
|
14253
14258
|
return Reflect.get(p, _, y);
|
14254
14259
|
if (_ = _.toLowerCase(), _ in a && (_ = a[_]), !(_ in l))
|
14255
14260
|
if (/[+_-]/.test(_)) {
|
14256
|
-
const C = _.split(/[+_-]/g).map((
|
14257
|
-
l[_] = computed(() => C.every((
|
14261
|
+
const C = _.split(/[+_-]/g).map((T) => T.trim());
|
14262
|
+
l[_] = computed(() => C.every((T) => unref(k[T])));
|
14258
14263
|
} else
|
14259
14264
|
l[_] = ref(!1);
|
14260
14265
|
const b = Reflect.get(p, _, y);
|
14261
14266
|
return t ? unref(b) : b;
|
14262
14267
|
}
|
14263
14268
|
});
|
14264
|
-
return
|
14269
|
+
return k;
|
14265
14270
|
}
|
14266
14271
|
var SwipeDirection;
|
14267
14272
|
(function(e) {
|
@@ -14646,7 +14651,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14646
14651
|
onSelect: ($) => N($)
|
14647
14652
|
}), v = ref({
|
14648
14653
|
visible: !1
|
14649
|
-
}),
|
14654
|
+
}), k = computed(() => !!(unref(u) || unref(n) || unref(o) || unref(i))), p = computed(() => {
|
14650
14655
|
var $;
|
14651
14656
|
return !!u.value || (($ = a.getSelectedVarCatalog) == null ? void 0 : $.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
14652
14657
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(o))), y = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
@@ -14721,7 +14726,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14721
14726
|
o.value = !1;
|
14722
14727
|
}
|
14723
14728
|
}
|
14724
|
-
function
|
14729
|
+
function T({
|
14725
14730
|
isAllForm: $,
|
14726
14731
|
isAllLanguage: P
|
14727
14732
|
}) {
|
@@ -14776,7 +14781,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14776
14781
|
class: "buttons"
|
14777
14782
|
}, [createVNode(Button, {
|
14778
14783
|
onClick: I,
|
14779
|
-
disabled:
|
14784
|
+
disabled: k.value,
|
14780
14785
|
type: "primary"
|
14781
14786
|
}, {
|
14782
14787
|
default: () => [createVNode(PlusOutlined$1, null, null), t.t("common.create")]
|
@@ -14857,7 +14862,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14857
14862
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
14858
14863
|
visible: v.value.visible,
|
14859
14864
|
"onUpdate:visible": ($) => v.value.visible = $,
|
14860
|
-
onKgOk:
|
14865
|
+
onKgOk: T
|
14861
14866
|
}, null)]);
|
14862
14867
|
}
|
14863
14868
|
}), columns = () => [{
|
@@ -15161,16 +15166,16 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15161
15166
|
emit: t
|
15162
15167
|
}) {
|
15163
15168
|
const r = useKg(), a = useKgWarehouse(), n = computed(() => {
|
15164
|
-
let
|
15165
|
-
return (!m.value || e.kgInvisible) && (
|
15169
|
+
let T = "jeecg-layout-header-action__item kg-warehouse";
|
15170
|
+
return (!m.value || e.kgInvisible) && (T += " kg-warehouse--invisible"), T;
|
15166
15171
|
}), o = ref(""), i = a.warehouse, s = ref(null), l = ref(!1), c = reactive([{
|
15167
15172
|
width: 80,
|
15168
15173
|
align: "center",
|
15169
15174
|
customRender: ({
|
15170
|
-
record:
|
15175
|
+
record: T
|
15171
15176
|
}) => {
|
15172
15177
|
var E;
|
15173
|
-
return
|
15178
|
+
return T.id === ((E = s.value) == null ? void 0 : E.id) ? createVNode("img", {
|
15174
15179
|
src: WAREHOUSE_1890ff
|
15175
15180
|
}, null) : createVNode("img", {
|
15176
15181
|
src: WAREHOUSE_000000
|
@@ -15178,27 +15183,27 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15178
15183
|
}
|
15179
15184
|
}, {
|
15180
15185
|
customRender: ({
|
15181
|
-
record:
|
15186
|
+
record: T
|
15182
15187
|
}) => {
|
15183
15188
|
var E, N, I;
|
15184
|
-
const M =
|
15189
|
+
const M = T;
|
15185
15190
|
return createVNode("div", null, [createVNode("div", null, [(E = M.whDsc) != null ? E : " ", createTextVNode(" - "), (N = M.whId) != null ? N : " "]), createVNode("div", {
|
15186
15191
|
class: "address"
|
15187
15192
|
}, [(I = M.adrId) != null ? I : " "])]);
|
15188
15193
|
}
|
15189
15194
|
}]), u = ref([]), d = computed(() => {
|
15190
15195
|
var M;
|
15191
|
-
const
|
15196
|
+
const T = (M = o.value) == null ? void 0 : M.toUpperCase();
|
15192
15197
|
return u.value.filter((E) => {
|
15193
15198
|
var N, I, A, w, F, $;
|
15194
|
-
return ((I = (N = E.whDsc) == null ? void 0 : N.toUpperCase()) == null ? void 0 : I.includes(
|
15199
|
+
return ((I = (N = E.whDsc) == null ? void 0 : N.toUpperCase()) == null ? void 0 : I.includes(T)) || ((w = (A = E.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : w.includes(T)) || (($ = (F = E.adrId) == null ? void 0 : F.toUpperCase()) == null ? void 0 : $.includes(T));
|
15195
15200
|
});
|
15196
15201
|
}), m = computed(() => {
|
15197
|
-
var
|
15198
|
-
return ((M = (
|
15202
|
+
var T, M;
|
15203
|
+
return ((M = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : M.enable) !== !1;
|
15199
15204
|
});
|
15200
|
-
watch(a.visible, (
|
15201
|
-
!m.value || (
|
15205
|
+
watch(a.visible, (T) => {
|
15206
|
+
!m.value || (T ? k() : p());
|
15202
15207
|
}, {
|
15203
15208
|
immediate: !0
|
15204
15209
|
}), onMounted(() => {
|
@@ -15207,15 +15212,15 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15207
15212
|
function v() {
|
15208
15213
|
!m.value || a.store.setVisible(!0);
|
15209
15214
|
}
|
15210
|
-
function
|
15215
|
+
function k() {
|
15211
15216
|
s.value = a.warehouse.value, y();
|
15212
15217
|
}
|
15213
15218
|
function p() {
|
15214
15219
|
o.value = "", u.value = [], s.value = null;
|
15215
15220
|
}
|
15216
15221
|
function _() {
|
15217
|
-
var
|
15218
|
-
!s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((
|
15222
|
+
var T;
|
15223
|
+
!s.value || (e.kgInvisible ? (a.store.setWarehouse(s.value), t("kgOk")) : s.value.id !== ((T = a.warehouse.value) == null ? void 0 : T.id) && (a.store.setWarehouse(s.value), KgUtil.confirm({
|
15219
15224
|
content: r.t("kg.KgWarehouse.reloadMessage"),
|
15220
15225
|
kgHideCancelButton: !0,
|
15221
15226
|
okButtonProps: {
|
@@ -15231,23 +15236,23 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15231
15236
|
l.value = !0;
|
15232
15237
|
try {
|
15233
15238
|
const {
|
15234
|
-
records:
|
15239
|
+
records: T
|
15235
15240
|
} = await ListVO({
|
15236
15241
|
params: {
|
15237
15242
|
pageNo: 1,
|
15238
15243
|
pageSize: 999
|
15239
15244
|
}
|
15240
15245
|
});
|
15241
|
-
u.value =
|
15242
|
-
} catch (
|
15243
|
-
console.error(
|
15246
|
+
u.value = T != null ? T : [];
|
15247
|
+
} catch (T) {
|
15248
|
+
console.error(T);
|
15244
15249
|
} finally {
|
15245
15250
|
l.value = !1;
|
15246
15251
|
}
|
15247
15252
|
}
|
15248
|
-
function b(
|
15253
|
+
function b(T, M) {
|
15249
15254
|
var E;
|
15250
|
-
switch (
|
15255
|
+
switch (T.detail) {
|
15251
15256
|
case 1:
|
15252
15257
|
((E = s.value) == null ? void 0 : E.id) === M.id ? s.value = null : s.value = M;
|
15253
15258
|
break;
|
@@ -15262,12 +15267,12 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15262
15267
|
placement: "bottomRight"
|
15263
15268
|
}, {
|
15264
15269
|
default: () => {
|
15265
|
-
var
|
15266
|
-
return [((
|
15270
|
+
var T, M;
|
15271
|
+
return [((T = i.value) == null ? void 0 : T.whDsc) || ((M = i.value) == null ? void 0 : M.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
15267
15272
|
}
|
15268
15273
|
}), createVNode(KgModal, {
|
15269
15274
|
visible: a.visible.value,
|
15270
|
-
"onUpdate:visible": (
|
15275
|
+
"onUpdate:visible": (T) => a.store.setVisible(T),
|
15271
15276
|
title: r.t("kg.KgWarehouse.title"),
|
15272
15277
|
width: "500px",
|
15273
15278
|
kgFullHeight: !1,
|
@@ -15284,7 +15289,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15284
15289
|
}, {
|
15285
15290
|
default: () => [createVNode(Input, {
|
15286
15291
|
value: o.value,
|
15287
|
-
"onUpdate:value": (
|
15292
|
+
"onUpdate:value": (T) => o.value = T,
|
15288
15293
|
allowClear: !0,
|
15289
15294
|
disabled: l.value,
|
15290
15295
|
placeholder: r.t("kg.search")
|
@@ -15304,11 +15309,11 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
15304
15309
|
dataSource: d.value,
|
15305
15310
|
columns: c,
|
15306
15311
|
class: "kg-flex-table",
|
15307
|
-
customRow: (
|
15312
|
+
customRow: (T) => {
|
15308
15313
|
var M;
|
15309
15314
|
return {
|
15310
|
-
class:
|
15311
|
-
onClick: (E) => b(E,
|
15315
|
+
class: T.id === ((M = s.value) == null ? void 0 : M.id) ? "selected" : "",
|
15316
|
+
onClick: (E) => b(E, T)
|
15312
15317
|
};
|
15313
15318
|
}
|
15314
15319
|
}, null)]
|