@kengic/vue 0.6.1-beta.3 → 0.6.1-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +141 -128
- package/dist/src/components/KgButton/index.hooks.d.ts +1 -1
- package/dist/src/components/KgSubmit/index.hooks.d.ts +1 -1
- package/dist/src/components/KgTable/index.hooks.d.ts +1 -1
- package/dist/src/components/KgVar/index.store.d.ts +4 -0
- package/dist/src/utils/kg.util.d.ts +1 -1
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -13,10 +13,13 @@ function httpClient() {
|
|
13
13
|
throw new Error("\u6CA1\u6709\u8BBE\u7F6E httpClient \u5B9E\u4F8B.");
|
14
14
|
return _httpClient;
|
15
15
|
}
|
16
|
+
console.log("111:");
|
17
|
+
console.log("444:");
|
16
18
|
const DEF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
17
19
|
__proto__: null,
|
18
20
|
WMS: models
|
19
21
|
}, Symbol.toStringTag, { value: "Module" }));
|
22
|
+
console.log("222:");
|
20
23
|
class CreateVarGridMasterQuery {
|
21
24
|
constructor(t) {
|
22
25
|
d(this, "def_flg");
|
@@ -1479,6 +1482,7 @@ const index$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
1479
1482
|
__proto__: null,
|
1480
1483
|
WMS: index
|
1481
1484
|
}, Symbol.toStringTag, { value: "Module" }));
|
1485
|
+
console.log("333:");
|
1482
1486
|
function bound01(e, t) {
|
1483
1487
|
isOnePointZero(e) && (e = "100%");
|
1484
1488
|
var r = isPercentage(e);
|
@@ -3978,7 +3982,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3978
3982
|
} }, I = "en", k = {};
|
3979
3983
|
k[I] = C;
|
3980
3984
|
var w = function(P) {
|
3981
|
-
return P instanceof
|
3985
|
+
return P instanceof B;
|
3982
3986
|
}, M = function P(D, V, R) {
|
3983
3987
|
var L;
|
3984
3988
|
if (!D)
|
@@ -3998,12 +4002,12 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3998
4002
|
if (w(P))
|
3999
4003
|
return P.clone();
|
4000
4004
|
var V = typeof D == "object" ? D : {};
|
4001
|
-
return V.date = P, V.args = arguments, new
|
4005
|
+
return V.date = P, V.args = arguments, new B(V);
|
4002
4006
|
}, O = T;
|
4003
4007
|
O.l = M, O.i = w, O.w = function(P, D) {
|
4004
4008
|
return A(P, { locale: D.$L, utc: D.$u, x: D.$x, $offset: D.$offset });
|
4005
4009
|
};
|
4006
|
-
var
|
4010
|
+
var B = function() {
|
4007
4011
|
function P(V) {
|
4008
4012
|
this.$L = M(V.locale, null, !0), this.parse(V);
|
4009
4013
|
}
|
@@ -4047,11 +4051,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4047
4051
|
}, D.valueOf = function() {
|
4048
4052
|
return this.$d.getTime();
|
4049
4053
|
}, D.startOf = function(V, R) {
|
4050
|
-
var L = this, H = !!O.u(R) || R, N = O.p(V), x = function(
|
4051
|
-
var z = O.w(L.$u ? Date.UTC(L.$y, U,
|
4054
|
+
var L = this, H = !!O.u(R) || R, N = O.p(V), x = function(K, U) {
|
4055
|
+
var z = O.w(L.$u ? Date.UTC(L.$y, U, K) : new Date(L.$y, U, K), L);
|
4052
4056
|
return H ? z : z.endOf(u);
|
4053
|
-
}, q = function(
|
4054
|
-
return O.w(L.toDate()[
|
4057
|
+
}, q = function(K, U) {
|
4058
|
+
return O.w(L.toDate()[K].apply(L.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(U)), L);
|
4055
4059
|
}, Y = this.$W, Q = this.$M, ne = this.$D, ee = "set" + (this.$u ? "UTC" : "");
|
4056
4060
|
switch (N) {
|
4057
4061
|
case b:
|
@@ -4117,9 +4121,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4117
4121
|
}, F = L.meridiem || function(U, z, Z) {
|
4118
4122
|
var X = U < 12 ? "AM" : "PM";
|
4119
4123
|
return Z ? X.toLowerCase() : X;
|
4120
|
-
},
|
4124
|
+
}, K = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: O.s(Y + 1, 2, "0"), MMM: ee(L.monthsShort, Y, ne, 3), MMMM: ee(ne, Y), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: ee(L.weekdaysMin, this.$W, Q, 2), ddd: ee(L.weekdaysShort, this.$W, Q, 3), dddd: Q[this.$W], H: String(x), HH: O.s(x, 2, "0"), h: ce(1), hh: ce(2), a: F(x, q, !0), A: F(x, q, !1), m: String(q), mm: O.s(q, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: N };
|
4121
4125
|
return H.replace(y, function(U, z) {
|
4122
|
-
return z ||
|
4126
|
+
return z || K[U] || N.replace(":", "");
|
4123
4127
|
});
|
4124
4128
|
}, D.utcOffset = function() {
|
4125
4129
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
@@ -4146,13 +4150,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4146
4150
|
}, D.toString = function() {
|
4147
4151
|
return this.$d.toUTCString();
|
4148
4152
|
}, P;
|
4149
|
-
}(), $ =
|
4153
|
+
}(), $ = B.prototype;
|
4150
4154
|
return A.prototype = $, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", b], ["$D", m]].forEach(function(P) {
|
4151
4155
|
$[P[1]] = function(D) {
|
4152
4156
|
return this.$g(D, P[0], P[1]);
|
4153
4157
|
};
|
4154
4158
|
}), A.extend = function(P, D) {
|
4155
|
-
return P.$i || (P(D,
|
4159
|
+
return P.$i || (P(D, B, A), P.$i = !0), A;
|
4156
4160
|
}, A.locale = M, A.isDayjs = w, A.unix = function(P) {
|
4157
4161
|
return A(1e3 * P);
|
4158
4162
|
}, A.en = k[I], A.Ls = k, A.p = {}, A;
|
@@ -4217,8 +4221,8 @@ function filesize(e, {
|
|
4217
4221
|
E[0] = A(T * O) / O, E[0] === k && y < 8 && m === -1 && (E[0] = 1, y++), I = E[1] = n === 10 && y === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][y];
|
4218
4222
|
}
|
4219
4223
|
if (M && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = u[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4220
|
-
const O = i || PERIOD,
|
4221
|
-
E[0] = `${
|
4224
|
+
const O = i || PERIOD, B = E[0].toString().split(O), $ = B[1] || EMPTY, P = $.length, D = a - P;
|
4225
|
+
E[0] = `${B[0]}${O}${$.padEnd(P + D, ZERO)}`;
|
4222
4226
|
}
|
4223
4227
|
return w && (E[1] = b[y] ? b[y] : STRINGS.fullform[c][y] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
4224
4228
|
value: E[0],
|
@@ -6033,7 +6037,7 @@ const without$1 = without, en = {
|
|
6033
6037
|
createSuccess: "\u521B\u5EFA\u6210\u529F.",
|
6034
6038
|
delete: "\u5220\u9664",
|
6035
6039
|
deleteSuccess: "\u5220\u9664\u6210\u529F.",
|
6036
|
-
downloadImportTemplate: "\u4E0B\u8F7D
|
6040
|
+
downloadImportTemplate: "\u6A21\u677F\u4E0B\u8F7D",
|
6037
6041
|
edit: "\u7F16\u8F91",
|
6038
6042
|
emptyText: "\u6682\u65E0\u6570\u636E",
|
6039
6043
|
export: "\u5BFC\u51FA",
|
@@ -6623,9 +6627,9 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6623
6627
|
function E(M, A) {
|
6624
6628
|
return function() {
|
6625
6629
|
setActivePinia(n);
|
6626
|
-
const O = Array.from(arguments),
|
6630
|
+
const O = Array.from(arguments), B = [], $ = [];
|
6627
6631
|
function P(R) {
|
6628
|
-
|
6632
|
+
B.push(R);
|
6629
6633
|
}
|
6630
6634
|
function D(R) {
|
6631
6635
|
$.push(R);
|
@@ -6643,7 +6647,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6643
6647
|
} catch (R) {
|
6644
6648
|
throw triggerSubscriptions($, R), R;
|
6645
6649
|
}
|
6646
|
-
return V instanceof Promise ? V.then((R) => (triggerSubscriptions(
|
6650
|
+
return V instanceof Promise ? V.then((R) => (triggerSubscriptions(B, R), R)).catch((R) => (triggerSubscriptions($, R), Promise.reject(R))) : (triggerSubscriptions(B, V), V);
|
6647
6651
|
};
|
6648
6652
|
}
|
6649
6653
|
const T = /* @__PURE__ */ markRaw({
|
@@ -6658,7 +6662,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6658
6662
|
$patch: _,
|
6659
6663
|
$reset: y,
|
6660
6664
|
$subscribe(M, A = {}) {
|
6661
|
-
const O = addSubscription(g, M, A.detached, () =>
|
6665
|
+
const O = addSubscription(g, M, A.detached, () => B()), B = o.run(() => watch(() => n.state.value[e], ($) => {
|
6662
6666
|
(A.flush === "sync" ? c : u) && M({
|
6663
6667
|
storeId: e,
|
6664
6668
|
type: MutationType.direct,
|
@@ -6700,8 +6704,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6700
6704
|
k._hotUpdate = markRaw((A) => {
|
6701
6705
|
k._hotUpdating = !0, A._hmrPayload.state.forEach((O) => {
|
6702
6706
|
if (O in k.$state) {
|
6703
|
-
const
|
6704
|
-
typeof
|
6707
|
+
const B = A.$state[O], $ = k.$state[O];
|
6708
|
+
typeof B == "object" && isPlainObject(B) && isPlainObject($) ? patchObject(B, $) : A.$state[O] = $;
|
6705
6709
|
}
|
6706
6710
|
set(k, O, toRef(A.$state, O));
|
6707
6711
|
}), Object.keys(k.$state).forEach((O) => {
|
@@ -6710,11 +6714,11 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6710
6714
|
u = !0;
|
6711
6715
|
});
|
6712
6716
|
for (const O in A._hmrPayload.actions) {
|
6713
|
-
const
|
6714
|
-
set(k, O, E(O,
|
6717
|
+
const B = A[O];
|
6718
|
+
set(k, O, E(O, B));
|
6715
6719
|
}
|
6716
6720
|
for (const O in A._hmrPayload.getters) {
|
6717
|
-
const
|
6721
|
+
const B = A._hmrPayload.getters[O], $ = s ? computed(() => (setActivePinia(n), B.call(k, k))) : B;
|
6718
6722
|
set(k, O, $);
|
6719
6723
|
}
|
6720
6724
|
Object.keys(k._hmrPayload.getters).forEach((O) => {
|
@@ -8266,6 +8270,18 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8266
8270
|
return t ? (n = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((a) => a.del_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8267
8271
|
};
|
8268
8272
|
},
|
8273
|
+
getVarSubmitFieldsForDeleteKey(e) {
|
8274
|
+
return (t) => {
|
8275
|
+
var r, n;
|
8276
|
+
return t ? (n = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((a) => a.del_flg === 1 && a.key_flg === 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8277
|
+
};
|
8278
|
+
},
|
8279
|
+
getVarSubmitFieldsForDeleteNotKey(e) {
|
8280
|
+
return (t) => {
|
8281
|
+
var r, n;
|
8282
|
+
return t ? (n = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((a) => a.del_flg === 1 && a.key_flg !== 1)) != null ? n : null : (Logger.error("formID \u4E3A\u7A7A."), null);
|
8283
|
+
};
|
8284
|
+
},
|
8269
8285
|
getVarSubmitField(e) {
|
8270
8286
|
return (t, r) => {
|
8271
8287
|
var n, a;
|
@@ -8699,7 +8715,7 @@ function useKgVar(e, t, r = 0) {
|
|
8699
8715
|
const l = (x) => computed(() => {
|
8700
8716
|
var q, Y, Q;
|
8701
8717
|
return (Q = (Y = (q = i.getVarCatalog(s, x)) == null ? void 0 : q.var_text) != null ? Y : x) != null ? Q : "";
|
8702
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), m = computed(() => i.isUpdating(s)), v = computed(() => i.isUpdatingRequesting(s)), _ = computed(() => i.isCopying(s)), y = computed(() => i.isCopyingRequesting(s)), C = computed(() => i.isDeleting(s)), E = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), I = computed(() => i.getVarButtons(s)), k = computed(() => i.getVarButtonSearch(s)), w = computed(() => i.getVarButtonCreate(s)), M = computed(() => i.getVarButtonUpdate(s)), A = computed(() => i.getVarButtonCopy(s)), O = computed(() => i.getVarButtonDelete(s)),
|
8718
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), b = computed(() => i.isCreatingRequesting(s)), m = computed(() => i.isUpdating(s)), v = computed(() => i.isUpdatingRequesting(s)), _ = computed(() => i.isCopying(s)), y = computed(() => i.isCopyingRequesting(s)), C = computed(() => i.isDeleting(s)), E = computed(() => i.isDeletingRequesting(s)), T = computed(() => i.isOtherRequesting(s)), I = computed(() => i.getVarButtons(s)), k = computed(() => i.getVarButtonSearch(s)), w = computed(() => i.getVarButtonCreate(s)), M = computed(() => i.getVarButtonUpdate(s)), A = computed(() => i.getVarButtonCopy(s)), O = computed(() => i.getVarButtonDelete(s)), B = computed(() => i.getVarProfileMasters(s)), $ = computed(() => i.getCurrentVarProfileMaster(s)), P = computed(() => i.getCurrentVarProfileMasterID(s)), D = computed(() => {
|
8703
8719
|
var x, q;
|
8704
8720
|
return (q = (x = $.value) == null ? void 0 : x.varProfileDetails) != null ? q : null;
|
8705
8721
|
}), V = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), H = computed(() => i.getSystemVarGridDetails(s)), N = computed(() => i.getCurrentVarGridDetails(s));
|
@@ -8724,7 +8740,7 @@ function useKgVar(e, t, r = 0) {
|
|
8724
8740
|
varButtonUpdate: M,
|
8725
8741
|
varButtonCopy: A,
|
8726
8742
|
varButtonDelete: O,
|
8727
|
-
varProfileMasters:
|
8743
|
+
varProfileMasters: B,
|
8728
8744
|
currentVarProfileMaster: $,
|
8729
8745
|
currentVarProfileMasterID: P,
|
8730
8746
|
currentVarProfileDetails: D,
|
@@ -9036,8 +9052,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9036
9052
|
immediate: !0
|
9037
9053
|
});
|
9038
9054
|
async function v() {
|
9039
|
-
var w, M, A, O,
|
9040
|
-
const C = (w = g.value) == null ? void 0 : w.cmd, E = (A = (M = g.value) == null ? void 0 : M.cmd_method) != null ? A : "GET", T = (
|
9055
|
+
var w, M, A, O, B, $, P, D, V;
|
9056
|
+
const C = (w = g.value) == null ? void 0 : w.cmd, E = (A = (M = g.value) == null ? void 0 : M.cmd_method) != null ? A : "GET", T = (B = (O = g.value) == null ? void 0 : O.val_clm) != null ? B : "", I = (P = ($ = g.value) == null ? void 0 : $.lbl_clm) != null ? P : "";
|
9041
9057
|
if (!C || !T || !I) {
|
9042
9058
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9043
9059
|
frm_id: a.formID,
|
@@ -9123,8 +9139,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9123
9139
|
"kg-value": T[(O = (A = g.value) == null ? void 0 : A.val_clm) != null ? O : ""]
|
9124
9140
|
}, {
|
9125
9141
|
default: () => {
|
9126
|
-
var
|
9127
|
-
return [T[($ = (
|
9142
|
+
var B, $;
|
9143
|
+
return [T[($ = (B = g.value) == null ? void 0 : B.lbl_clm) != null ? $ : ""]];
|
9128
9144
|
}
|
9129
9145
|
})];
|
9130
9146
|
}
|
@@ -9492,7 +9508,7 @@ const KgFormItem = defineComponent({
|
|
9492
9508
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), i = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), l = computed(() => n.store.getVarProfileDetail(n.formID, e.kgVarName)), u = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), {
|
9493
9509
|
rules: c
|
9494
9510
|
} = _useRules(e), g = computed(() => {
|
9495
|
-
var A, O,
|
9511
|
+
var A, O, B, $, P;
|
9496
9512
|
if (n.isRetrievingVar.value)
|
9497
9513
|
return !0;
|
9498
9514
|
let M = !1;
|
@@ -9509,7 +9525,7 @@ const KgFormItem = defineComponent({
|
|
9509
9525
|
M = ((O = u.value) == null ? void 0 : O.crt_ena_flg) === 0;
|
9510
9526
|
break;
|
9511
9527
|
case n.isUpdating.value:
|
9512
|
-
M = ((
|
9528
|
+
M = ((B = u.value) == null ? void 0 : B.upt_ena_flg) === 0;
|
9513
9529
|
break;
|
9514
9530
|
case n.isCopying.value:
|
9515
9531
|
M = (($ = u.value) == null ? void 0 : $.cpy_ena_flg) === 0;
|
@@ -9522,7 +9538,7 @@ const KgFormItem = defineComponent({
|
|
9522
9538
|
}
|
9523
9539
|
return M;
|
9524
9540
|
}), p = computed(() => {
|
9525
|
-
var A, O,
|
9541
|
+
var A, O, B, $;
|
9526
9542
|
let M = " ";
|
9527
9543
|
if (e.kgPlaceholder)
|
9528
9544
|
M = e.kgPlaceholder;
|
@@ -9532,12 +9548,12 @@ const KgFormItem = defineComponent({
|
|
9532
9548
|
M = n.t((O = (A = l.value) == null ? void 0 : A.placeholder) != null ? O : " ").value;
|
9533
9549
|
break;
|
9534
9550
|
case KG_FORM_CONTEXT.SUBMIT:
|
9535
|
-
M = n.t(($ = (
|
9551
|
+
M = n.t(($ = (B = u.value) == null ? void 0 : B.placeholder) != null ? $ : " ").value;
|
9536
9552
|
break;
|
9537
9553
|
}
|
9538
9554
|
return M;
|
9539
9555
|
}), b = computed(() => {
|
9540
|
-
var A, O,
|
9556
|
+
var A, O, B, $, P, D, V, R, L, H;
|
9541
9557
|
let M = 6;
|
9542
9558
|
if (e.kgSpan !== void 0)
|
9543
9559
|
M = e.kgSpan;
|
@@ -9549,7 +9565,7 @@ const KgFormItem = defineComponent({
|
|
9549
9565
|
case KG_FORM_CONTEXT.SUBMIT:
|
9550
9566
|
switch (!0) {
|
9551
9567
|
case n.isCreating.value:
|
9552
|
-
M = ($ = (
|
9568
|
+
M = ($ = (B = u.value) == null ? void 0 : B.crt_width) != null ? $ : 6;
|
9553
9569
|
break;
|
9554
9570
|
case n.isUpdating.value:
|
9555
9571
|
M = (D = (P = u.value) == null ? void 0 : P.upt_width) != null ? D : 6;
|
@@ -9564,9 +9580,9 @@ const KgFormItem = defineComponent({
|
|
9564
9580
|
}
|
9565
9581
|
return Math.min(24, Math.max(1, M));
|
9566
9582
|
}), m = computed(() => {
|
9567
|
-
var
|
9583
|
+
var B, $;
|
9568
9584
|
const M = get(E.value, "$el.parentElement");
|
9569
|
-
if (M && !((
|
9585
|
+
if (M && !((B = M.classList) != null && B.contains("ant-row")))
|
9570
9586
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9571
9587
|
let A = {};
|
9572
9588
|
const O = Math.abs(Number.parseInt(($ = get(E.value, "$el.parentElement.style.marginLeft")) != null ? $ : "0px"));
|
@@ -9575,7 +9591,7 @@ const KgFormItem = defineComponent({
|
|
9575
9591
|
paddingRight: `${O}px !important`
|
9576
9592
|
}), A;
|
9577
9593
|
}), v = computed(() => {
|
9578
|
-
var A, O,
|
9594
|
+
var A, O, B, $;
|
9579
9595
|
let M = "kg-form-item";
|
9580
9596
|
switch (s.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9581
9597
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9588,7 +9604,7 @@ const KgFormItem = defineComponent({
|
|
9588
9604
|
case KG_FORM_CONTEXT.SUBMIT:
|
9589
9605
|
switch (!0) {
|
9590
9606
|
case (n.isCreating.value && ((O = u.value) == null ? void 0 : O.crt_vis_flg) === 0):
|
9591
|
-
case (n.isUpdating.value && ((
|
9607
|
+
case (n.isUpdating.value && ((B = u.value) == null ? void 0 : B.upt_vis_flg) === 0):
|
9592
9608
|
case (n.isCopying.value && (($ = u.value) == null ? void 0 : $.cpy_vis_flg) === 0):
|
9593
9609
|
M += " kg-form-item--invisible";
|
9594
9610
|
break;
|
@@ -9986,9 +10002,6 @@ function useKgSubmit(e) {
|
|
9986
10002
|
case (t.isCopying.value && (T === _ || !T && y === _)):
|
9987
10003
|
m = _;
|
9988
10004
|
break;
|
9989
|
-
case (t.isDeleting.value && (I === _ || !I)):
|
9990
|
-
m = _;
|
9991
|
-
break;
|
9992
10005
|
}
|
9993
10006
|
return m;
|
9994
10007
|
}), g = computed(() => {
|
@@ -10217,12 +10230,12 @@ function _useTitle() {
|
|
10217
10230
|
};
|
10218
10231
|
}
|
10219
10232
|
function _useClass(e, t) {
|
10220
|
-
const r = useKgVar(), n = useKgSubmit(), a = computed(() => r.store.getVarSubmitConfig(r.formID));
|
10233
|
+
const r = useKgVar(), n = useKgSubmit(), a = computed(() => r.store.getVarSubmitConfig(r.formID)), o = computed(() => r.store.getVarSubmitFieldsForDeleteKey(r.formID));
|
10221
10234
|
return {
|
10222
10235
|
getClass: computed(() => {
|
10223
|
-
var
|
10224
|
-
let
|
10225
|
-
return t.isFullscreen && (
|
10236
|
+
var l, u, c;
|
10237
|
+
let i = "kg-submit";
|
10238
|
+
return t.isFullscreen && (i += " kg-submit--fullscreen"), ((l = a.value) == null ? void 0 : l.responsive_flg) !== 0 && (i += " kg-submit--responsive"), n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? i += " kg-submit--modal" : n.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (i += " kg-submit--table"), r.isDeleting.value && ((c = (u = o.value) == null ? void 0 : u.length) != null ? c : 0) === 0 && (i += " kg-submit--delete-message"), e.kgClass && (i += ` ${e.kgClass}`), i;
|
10226
10239
|
})
|
10227
10240
|
};
|
10228
10241
|
}
|
@@ -10324,7 +10337,7 @@ const getProps$n = () => ({
|
|
10324
10337
|
return (re = w.value) != null ? re : [];
|
10325
10338
|
}
|
10326
10339
|
return [];
|
10327
|
-
}), O = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)),
|
10340
|
+
}), O = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), B = computed(() => O.value || v.value), $ = computed(() => v.value), P = ref({
|
10328
10341
|
kgWidth: 0
|
10329
10342
|
}), D = computed(() => {
|
10330
10343
|
var G;
|
@@ -10381,7 +10394,7 @@ const getProps$n = () => ({
|
|
10381
10394
|
}
|
10382
10395
|
});
|
10383
10396
|
watch(q, (G, W) => {
|
10384
|
-
G === !0 &&
|
10397
|
+
G === !0 && K(), W === !0 && G === !1 && U();
|
10385
10398
|
}, {
|
10386
10399
|
immediate: !0
|
10387
10400
|
}), watch(ee, (G) => {
|
@@ -10389,7 +10402,7 @@ const getProps$n = () => ({
|
|
10389
10402
|
}, {
|
10390
10403
|
immediate: !0
|
10391
10404
|
});
|
10392
|
-
function
|
10405
|
+
function K() {
|
10393
10406
|
var W;
|
10394
10407
|
const G = watch(i.model, (J) => {
|
10395
10408
|
J && Object.keys(J).length > 0 && (setTimeout(() => G()), i.store.emit(a.formID, "open", {
|
@@ -10474,7 +10487,7 @@ const getProps$n = () => ({
|
|
10474
10487
|
var W, J, re, ae, oe, se, ie, le;
|
10475
10488
|
const G = (W = g.value) == null ? void 0 : W.cmd;
|
10476
10489
|
if (!G) {
|
10477
|
-
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\
|
10490
|
+
Logger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10478
10491
|
VarButton: g.value
|
10479
10492
|
});
|
10480
10493
|
return;
|
@@ -10510,7 +10523,7 @@ const getProps$n = () => ({
|
|
10510
10523
|
var W, J, re, ae, oe, se, ie, le;
|
10511
10524
|
const G = (W = p.value) == null ? void 0 : W.cmd;
|
10512
10525
|
if (!G) {
|
10513
|
-
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\
|
10526
|
+
Logger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10514
10527
|
VarButton: p.value
|
10515
10528
|
});
|
10516
10529
|
return;
|
@@ -10546,7 +10559,7 @@ const getProps$n = () => ({
|
|
10546
10559
|
var W, J, re, ae, oe, se, ie, le, te, ue;
|
10547
10560
|
const G = (W = b.value) == null ? void 0 : W.cmd;
|
10548
10561
|
if (!G) {
|
10549
|
-
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\
|
10562
|
+
Logger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10550
10563
|
VarButton: b.value
|
10551
10564
|
});
|
10552
10565
|
return;
|
@@ -10585,7 +10598,7 @@ const getProps$n = () => ({
|
|
10585
10598
|
var W, J, re, ae, oe, se, ie, le;
|
10586
10599
|
const G = (W = m.value) == null ? void 0 : W.cmd;
|
10587
10600
|
if (!G) {
|
10588
|
-
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\
|
10601
|
+
Logger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10589
10602
|
VarButton: m.value
|
10590
10603
|
});
|
10591
10604
|
return;
|
@@ -10696,8 +10709,8 @@ const getProps$n = () => ({
|
|
10696
10709
|
let G, W;
|
10697
10710
|
return createVNode("div", null, [createVNode(Button, {
|
10698
10711
|
type: "primary",
|
10699
|
-
ghost: !
|
10700
|
-
disabled:
|
10712
|
+
ghost: !B.value,
|
10713
|
+
disabled: B.value,
|
10701
10714
|
onClick: z
|
10702
10715
|
}, _isSlot$7(G = n.t("kg.cancel")) ? G : {
|
10703
10716
|
default: () => [G]
|
@@ -11026,7 +11039,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
11026
11039
|
});
|
11027
11040
|
}
|
11028
11041
|
function C() {
|
11029
|
-
var T, I, k, w, M, A, O,
|
11042
|
+
var T, I, k, w, M, A, O, B;
|
11030
11043
|
if (c.value)
|
11031
11044
|
return y();
|
11032
11045
|
switch ((T = l.value) == null ? void 0 : T.display_type) {
|
@@ -11050,7 +11063,7 @@ const KG_TABLE_TD_DEFAULT_WIDTH = 120, KG_TABLE_TD_MIN_WIDTH = 80, KG_TABLE_TD_M
|
|
11050
11063
|
return createVNode(KgProgressA, {
|
11051
11064
|
kgTextWidth: $.textWidth,
|
11052
11065
|
kgLeft: (O = e.kgRow) == null ? void 0 : O[$.leftColumn],
|
11053
|
-
kgRight: (
|
11066
|
+
kgRight: (B = e.kgRow) == null ? void 0 : B[$.rightColumn]
|
11054
11067
|
}, null);
|
11055
11068
|
}
|
11056
11069
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -11624,12 +11637,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11624
11637
|
R(!0);
|
11625
11638
|
}), u.store.$onAction(async ({
|
11626
11639
|
name: F,
|
11627
|
-
args:
|
11640
|
+
args: K
|
11628
11641
|
}) => {
|
11629
11642
|
switch (F) {
|
11630
11643
|
case "setSelecte":
|
11631
|
-
if (
|
11632
|
-
const U =
|
11644
|
+
if (K[0] === s.formID) {
|
11645
|
+
const U = K[1], z = K[2];
|
11633
11646
|
switch (!0) {
|
11634
11647
|
case (z && !A.value.includes(U[u.id.value])):
|
11635
11648
|
L([...A.value, U[u.id.value]]);
|
@@ -11650,15 +11663,15 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11650
11663
|
} = _useLoading(), _ = ref(null);
|
11651
11664
|
_useResizeObserver(_);
|
11652
11665
|
const y = computed(() => {
|
11653
|
-
var F,
|
11654
|
-
return (
|
11666
|
+
var F, K;
|
11667
|
+
return (K = (F = s.varButtonSearch.value) == null ? void 0 : F.cmd) != null ? K : null;
|
11655
11668
|
}), C = computed(() => {
|
11656
|
-
var
|
11669
|
+
var K, U, z, Z, X, de, pe;
|
11657
11670
|
let F = {
|
11658
11671
|
pageNo: O.pageIndex,
|
11659
11672
|
pageSize: O.pageSize,
|
11660
|
-
...
|
11661
|
-
...(U = (
|
11673
|
+
...B,
|
11674
|
+
...(U = (K = i.model) == null ? void 0 : K.value) != null ? U : {}
|
11662
11675
|
};
|
11663
11676
|
return s.varButtonSearch.value && (F = {
|
11664
11677
|
...F,
|
@@ -11676,25 +11689,25 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11676
11689
|
hideSelectAll: !u.isMultiSelect.value,
|
11677
11690
|
selectedRowKeys: A,
|
11678
11691
|
preserveSelectedRowKeys: !1,
|
11679
|
-
getCheckboxProps: (
|
11692
|
+
getCheckboxProps: (K) => ({
|
11680
11693
|
disabled: !!s.isCreating.value || !!s.isUpdating.value || !!s.isCopying.value || !!s.isDeleting.value
|
11681
11694
|
}),
|
11682
|
-
onSelect: (
|
11683
|
-
onChange: (
|
11695
|
+
onSelect: (K) => H(K),
|
11696
|
+
onChange: (K) => u.isMultiSelect.value && L(K)
|
11684
11697
|
};
|
11685
11698
|
}), k = computed(() => {
|
11686
|
-
var
|
11699
|
+
var K;
|
11687
11700
|
let F = "kg-table";
|
11688
|
-
return ((
|
11701
|
+
return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (F += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (F += " kg-table--no-bottom"), c.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value) && (F += " kg-table--submitting"), F;
|
11689
11702
|
}), w = computed(() => {
|
11690
|
-
var
|
11703
|
+
var K;
|
11691
11704
|
let F = "kg-table-bottom";
|
11692
|
-
return ((
|
11705
|
+
return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (F += " kg-table-bottom--border"), F;
|
11693
11706
|
}), M = ref([]), A = ref([]), O = reactive({
|
11694
11707
|
pageIndex: 1,
|
11695
11708
|
pageSize: 10,
|
11696
11709
|
total: 0
|
11697
|
-
}),
|
11710
|
+
}), B = reactive({
|
11698
11711
|
column: void 0,
|
11699
11712
|
order: void 0
|
11700
11713
|
}), $ = watch(u.pageSizeOption, (F) => {
|
@@ -11702,12 +11715,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11702
11715
|
});
|
11703
11716
|
watch(u.pageSizeOptions, (F) => {
|
11704
11717
|
F.length > 0 && !F.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
11705
|
-
}), watch([y, u.isReadAutomatically, i.isReady], ([F,
|
11706
|
-
F &&
|
11718
|
+
}), watch([y, u.isReadAutomatically, i.isReady], ([F, K, U]) => {
|
11719
|
+
F && K && U && !u.store.getIsRetrieved(s.formID) && R(!0);
|
11707
11720
|
}, {
|
11708
11721
|
immediate: !0
|
11709
|
-
}), watch(s.isCreating, (F,
|
11710
|
-
F === !0 ? P() : F === !1 &&
|
11722
|
+
}), watch(s.isCreating, (F, K) => {
|
11723
|
+
F === !0 ? P() : F === !1 && K === !0 && D();
|
11711
11724
|
}), onUnmounted(() => {
|
11712
11725
|
u.store.dispose(s.formID);
|
11713
11726
|
});
|
@@ -11720,38 +11733,38 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11720
11733
|
}
|
11721
11734
|
}
|
11722
11735
|
function D() {
|
11723
|
-
const F = M.value.find((
|
11736
|
+
const F = M.value.find((K) => K[u.id.value] === ID_CREATE);
|
11724
11737
|
F && (M.value = without$1(M.value, F), A.value = [], u.store.setSelectedRows(s.formID, []));
|
11725
11738
|
}
|
11726
|
-
function V(F,
|
11739
|
+
function V(F, K) {
|
11727
11740
|
if (!(!!s.isCreating.value || !!s.isCreating.value || !!s.isCreating.value || !!s.isCreating.value) && !!I.value) {
|
11728
|
-
if (!
|
11741
|
+
if (!K) {
|
11729
11742
|
A.value = [], u.store.setSelectedRows(s.formID, []);
|
11730
11743
|
return;
|
11731
11744
|
}
|
11732
11745
|
switch (F == null ? void 0 : F.detail) {
|
11733
11746
|
case 1:
|
11734
|
-
A.value = [
|
11747
|
+
A.value = [K[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((U) => {
|
11735
11748
|
var z;
|
11736
11749
|
return (z = M.value) == null ? void 0 : z.find((Z) => Z[u.id.value] === U);
|
11737
11750
|
}).filter((U) => !!U));
|
11738
11751
|
break;
|
11739
11752
|
case 2:
|
11740
|
-
u.store.emit(s.formID, "rowDoubleClick",
|
11753
|
+
u.store.emit(s.formID, "rowDoubleClick", K);
|
11741
11754
|
break;
|
11742
11755
|
}
|
11743
11756
|
}
|
11744
11757
|
}
|
11745
11758
|
function R(F = !1) {
|
11746
|
-
const
|
11747
|
-
z && (setTimeout(() =>
|
11759
|
+
const K = watch(g, (z) => {
|
11760
|
+
z && (setTimeout(() => K()), U());
|
11748
11761
|
}, {
|
11749
11762
|
immediate: !0
|
11750
11763
|
});
|
11751
11764
|
async function U() {
|
11752
11765
|
var z, Z;
|
11753
11766
|
if (!y.value) {
|
11754
|
-
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\
|
11767
|
+
Logger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11755
11768
|
VarButton: s.varButtonSearch.value
|
11756
11769
|
});
|
11757
11770
|
return;
|
@@ -11788,18 +11801,18 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11788
11801
|
}
|
11789
11802
|
}
|
11790
11803
|
function L(F) {
|
11791
|
-
A.value = F, u.store.setSelectedRows(s.formID, A.value.map((
|
11804
|
+
A.value = F, u.store.setSelectedRows(s.formID, A.value.map((K) => {
|
11792
11805
|
var U;
|
11793
|
-
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] ===
|
11794
|
-
}).filter((
|
11806
|
+
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === K);
|
11807
|
+
}).filter((K) => !!K));
|
11795
11808
|
}
|
11796
11809
|
function H(F) {
|
11797
|
-
var
|
11810
|
+
var K, U;
|
11798
11811
|
switch (u.isMultiSelect.value) {
|
11799
11812
|
case !0:
|
11800
11813
|
{
|
11801
11814
|
const z = F[u.id.value];
|
11802
|
-
A.value.includes(z) ? A.value = without$1(A.value, z) : A.value = [...(
|
11815
|
+
A.value.includes(z) ? A.value = without$1(A.value, z) : A.value = [...(K = A.value) != null ? K : [], z];
|
11803
11816
|
}
|
11804
11817
|
break;
|
11805
11818
|
case !1:
|
@@ -11814,24 +11827,24 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11814
11827
|
return (Z = M.value) == null ? void 0 : Z.find((X) => X[u.id.value] === z);
|
11815
11828
|
}).filter((z) => !!z));
|
11816
11829
|
}
|
11817
|
-
function N(F,
|
11818
|
-
|
11830
|
+
function N(F, K) {
|
11831
|
+
K.width = F, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, F);
|
11819
11832
|
}
|
11820
|
-
async function x(F,
|
11833
|
+
async function x(F, K, U, z) {
|
11821
11834
|
var Z;
|
11822
11835
|
switch (z.action) {
|
11823
11836
|
case "sort":
|
11824
11837
|
{
|
11825
11838
|
await nextTick();
|
11826
11839
|
let X = U;
|
11827
|
-
X.order ? (
|
11840
|
+
X.order ? (B.column = (Z = X.field) != null ? Z : void 0, B.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (B.column = void 0, B.order = void 0), R(!0);
|
11828
11841
|
}
|
11829
11842
|
break;
|
11830
11843
|
}
|
11831
11844
|
}
|
11832
|
-
function q(F,
|
11845
|
+
function q(F, K) {
|
11833
11846
|
var z;
|
11834
|
-
const U =
|
11847
|
+
const U = K[u.id.value];
|
11835
11848
|
switch ((z = s.varGridConfig.value) == null ? void 0 : z.expand_accordion_flg) {
|
11836
11849
|
case 0:
|
11837
11850
|
F ? p.value = uniq([...p.value, U]) : p.value = without$1(p.value, U);
|
@@ -11841,20 +11854,20 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11841
11854
|
break;
|
11842
11855
|
}
|
11843
11856
|
}
|
11844
|
-
function Y(F,
|
11845
|
-
|
11857
|
+
function Y(F, K) {
|
11858
|
+
K !== O.pageSize ? (O.pageIndex = 1, O.pageSize = K) : O.pageIndex = F, R();
|
11846
11859
|
}
|
11847
11860
|
function Q(F) {
|
11848
|
-
A.value = [F[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((
|
11861
|
+
A.value = [F[u.id.value]], u.store.setSelectedRows(s.formID, A.value.map((K) => {
|
11849
11862
|
var U;
|
11850
|
-
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] ===
|
11851
|
-
}).filter((
|
11863
|
+
return (U = M.value) == null ? void 0 : U.find((z) => z[u.id.value] === K);
|
11864
|
+
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11852
11865
|
}
|
11853
11866
|
function ne({
|
11854
11867
|
title: F,
|
11855
|
-
column:
|
11868
|
+
column: K
|
11856
11869
|
}) {
|
11857
|
-
switch (
|
11870
|
+
switch (K.dataIndex) {
|
11858
11871
|
case "index":
|
11859
11872
|
return createVNode(KgTableSetting, null, null);
|
11860
11873
|
default:
|
@@ -11863,19 +11876,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11863
11876
|
}
|
11864
11877
|
function ee({
|
11865
11878
|
column: F,
|
11866
|
-
index:
|
11879
|
+
index: K,
|
11867
11880
|
record: U,
|
11868
11881
|
value: z,
|
11869
11882
|
text: Z
|
11870
11883
|
}) {
|
11871
11884
|
let X = "";
|
11872
11885
|
F.customRender ? X = F.customRender({
|
11873
|
-
index:
|
11886
|
+
index: K,
|
11874
11887
|
record: U,
|
11875
11888
|
column: F,
|
11876
11889
|
text: Z,
|
11877
11890
|
value: z,
|
11878
|
-
renderIndex:
|
11891
|
+
renderIndex: K
|
11879
11892
|
}) : X = z;
|
11880
11893
|
const de = createVNode(KgTableCell, {
|
11881
11894
|
kgRow: U,
|
@@ -11886,7 +11899,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11886
11899
|
return t.bodyCell ? t.bodyCell({
|
11887
11900
|
value: z,
|
11888
11901
|
record: U,
|
11889
|
-
index:
|
11902
|
+
index: K,
|
11890
11903
|
column: F,
|
11891
11904
|
defaultRender: de
|
11892
11905
|
}) : de;
|
@@ -11916,8 +11929,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11916
11929
|
rowSelection: I.value,
|
11917
11930
|
expandColumnWidth: 28,
|
11918
11931
|
expandedRowKeys: p.value,
|
11919
|
-
customRow: (
|
11920
|
-
onClick: (U) => V(U,
|
11932
|
+
customRow: (K) => ({
|
11933
|
+
onClick: (U) => V(U, K)
|
11921
11934
|
}),
|
11922
11935
|
onResizeColumn: N,
|
11923
11936
|
onChange: x,
|
@@ -11943,7 +11956,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11943
11956
|
size: "default",
|
11944
11957
|
current: O.pageIndex,
|
11945
11958
|
pageSize: O.pageSize,
|
11946
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
11959
|
+
pageSizeOptions: u.pageSizeOptions.value.map((K) => String(K)),
|
11947
11960
|
total: O.total,
|
11948
11961
|
showSizeChanger: !0,
|
11949
11962
|
showQuickJumper: !1,
|
@@ -11952,12 +11965,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11952
11965
|
locale: {
|
11953
11966
|
page: ""
|
11954
11967
|
},
|
11955
|
-
showTotal: (
|
11968
|
+
showTotal: (K, U) => o.t("kg.KgTable.totalText", {
|
11956
11969
|
from: U[0],
|
11957
11970
|
to: U[1],
|
11958
|
-
total:
|
11971
|
+
total: K
|
11959
11972
|
}),
|
11960
|
-
onChange: (
|
11973
|
+
onChange: (K, U) => Y(K, U)
|
11961
11974
|
}, null)])])]);
|
11962
11975
|
};
|
11963
11976
|
}
|
@@ -12279,7 +12292,7 @@ const KgButtonCreate = defineComponent({
|
|
12279
12292
|
var m, v, _;
|
12280
12293
|
if (!(e.onKgClick && await e.onKgClick())) {
|
12281
12294
|
if (!s.value) {
|
12282
|
-
Logger.error("\u5BFC\u51FA\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12295
|
+
Logger.error("[KgButton] '\u5BFC\u51FA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12283
12296
|
VarButton: o.value
|
12284
12297
|
});
|
12285
12298
|
return;
|
@@ -12354,7 +12367,7 @@ const KgButtonCreate = defineComponent({
|
|
12354
12367
|
async function p(v) {
|
12355
12368
|
var _, y;
|
12356
12369
|
if (!l.value)
|
12357
|
-
return Logger.error("\u5BFC\u5165\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12370
|
+
return Logger.error("[KgButton] '\u5BFC\u5165\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12358
12371
|
VarButton: i.value
|
12359
12372
|
}), !1;
|
12360
12373
|
g.value = !0;
|
@@ -12421,7 +12434,7 @@ const KgButtonCreate = defineComponent({
|
|
12421
12434
|
async function u() {
|
12422
12435
|
var p;
|
12423
12436
|
if (!o.value) {
|
12424
|
-
Logger.error("\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12437
|
+
Logger.error("[KgButton] '\u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12425
12438
|
VarButton: a.value
|
12426
12439
|
});
|
12427
12440
|
return;
|
@@ -12480,7 +12493,7 @@ const KgButtonCreate = defineComponent({
|
|
12480
12493
|
return;
|
12481
12494
|
const c = (b = e.kgButton) == null ? void 0 : b.cmd;
|
12482
12495
|
if (!c) {
|
12483
|
-
Logger.error("[KgButton] \
|
12496
|
+
Logger.error("[KgButton] \u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12484
12497
|
VarButton: e.kgButton
|
12485
12498
|
});
|
12486
12499
|
return;
|
@@ -13213,8 +13226,8 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13213
13226
|
}
|
13214
13227
|
});
|
13215
13228
|
l.value = l.value.map((A) => {
|
13216
|
-
var
|
13217
|
-
const O = (
|
13229
|
+
var B;
|
13230
|
+
const O = (B = w == null ? void 0 : w.varProfileDetails) == null ? void 0 : B.find(($) => $.var_nam === A.var_nam);
|
13218
13231
|
return O ? {
|
13219
13232
|
...A,
|
13220
13233
|
...O,
|
@@ -13302,7 +13315,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
13302
13315
|
rowKey: "id",
|
13303
13316
|
dataSource: I,
|
13304
13317
|
customRow: (O) => ({
|
13305
|
-
onClick: (
|
13318
|
+
onClick: (B) => b(B, O, T, k)
|
13306
13319
|
}),
|
13307
13320
|
rowSelection: g({
|
13308
13321
|
disabled: w,
|
@@ -13520,7 +13533,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13520
13533
|
}), onUnmounted(() => {
|
13521
13534
|
a.store.dispose(n.formID);
|
13522
13535
|
});
|
13523
|
-
function
|
13536
|
+
function B(N = !1) {
|
13524
13537
|
p.value || (k.value ? v.value && v.value.validate().then(() => {
|
13525
13538
|
a.store.emit(n.formID, "search", {
|
13526
13539
|
resetPageIndex: N
|
@@ -13533,7 +13546,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13533
13546
|
resetPageIndex: N
|
13534
13547
|
}));
|
13535
13548
|
}
|
13536
|
-
a.store.setSearchFn(n.formID,
|
13549
|
+
a.store.setSearchFn(n.formID, B);
|
13537
13550
|
function $() {
|
13538
13551
|
var N;
|
13539
13552
|
(N = v.value) == null || N.resetFields(), k.value ? v.value && v.value.validate().then(() => {
|
@@ -13546,7 +13559,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13546
13559
|
}
|
13547
13560
|
a.store.setResetFn(n.formID, $);
|
13548
13561
|
function P() {
|
13549
|
-
return
|
13562
|
+
return B(!0), Promise.resolve(!0);
|
13550
13563
|
}
|
13551
13564
|
function D() {
|
13552
13565
|
var N;
|
@@ -13630,7 +13643,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13630
13643
|
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((q) => createVNode(KgForm.Item, {
|
13631
13644
|
kgVarName: q.var_nam,
|
13632
13645
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
13633
|
-
onKgSubmit: () =>
|
13646
|
+
onKgSubmit: () => B(!0)
|
13634
13647
|
}, null))];
|
13635
13648
|
}
|
13636
13649
|
})]
|
@@ -14329,7 +14342,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14329
14342
|
default: () => [P]
|
14330
14343
|
})])]);
|
14331
14344
|
}
|
14332
|
-
function
|
14345
|
+
function B($) {
|
14333
14346
|
var D;
|
14334
14347
|
let P = "";
|
14335
14348
|
return $.id || (P += " ant-table-row-create"), $.id === ((D = n.getSelectedVarCatalog) == null ? void 0 : D.id) && (P += " ant-table-row-selected "), P;
|
@@ -14348,7 +14361,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
14348
14361
|
rowKey: "id",
|
14349
14362
|
dataSource: u.value,
|
14350
14363
|
loading: a.value,
|
14351
|
-
rowClassName:
|
14364
|
+
rowClassName: B,
|
14352
14365
|
rowSelection: p.value,
|
14353
14366
|
customRow: ($) => ({
|
14354
14367
|
onClick: () => w($)
|
@@ -14694,8 +14707,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14694
14707
|
var I;
|
14695
14708
|
const T = (I = o.value) == null ? void 0 : I.toUpperCase();
|
14696
14709
|
return c.value.filter((k) => {
|
14697
|
-
var w, M, A, O,
|
14698
|
-
return ((M = (w = k.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (A = k.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : O.includes(T)) || (($ = (
|
14710
|
+
var w, M, A, O, B, $;
|
14711
|
+
return ((M = (w = k.whDsc) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(T)) || ((O = (A = k.whId) == null ? void 0 : A.toUpperCase()) == null ? void 0 : O.includes(T)) || (($ = (B = k.adrId) == null ? void 0 : B.toUpperCase()) == null ? void 0 : $.includes(T));
|
14699
14712
|
});
|
14700
14713
|
}), p = computed(() => {
|
14701
14714
|
var T, I;
|