@kengic/vue 0.9.2 → 0.9.4
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 +802 -794
- package/dist/src/components/KgButton/index.store.d.ts +7 -2
- package/dist/src/components/KgSubmit/index.hooks.d.ts +8 -0
- package/dist/src/components/KgTable/KgTable.d.ts +6 -0
- package/dist/src/components/KgVar/index.store.d.ts +4 -0
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var m = (e, t, r) => (
|
1
|
+
var Se = Object.defineProperty;
|
2
|
+
var Ce = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var m = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Modal, Spin, Tooltip, Select, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, message, Drawer, Tag, Tabs, Dropdown, Menu, Table, Pagination, TableSummary, Upload, ConfigProvider, Transfer, Card, TabPane } from "ant-design-vue";
|
6
6
|
const index$7 = "";
|
@@ -3312,8 +3312,8 @@ function sendQuery(e, t, r, a) {
|
|
3312
3312
|
if (e.random) {
|
3313
3313
|
let T = e.resources.slice(0);
|
3314
3314
|
for (i = []; T.length > 1; ) {
|
3315
|
-
const
|
3316
|
-
i.push(T[
|
3315
|
+
const $ = Math.floor(Math.random() * T.length);
|
3316
|
+
i.push(T[$]), T = T.slice(0, $).concat(T.slice($ + 1));
|
3317
3317
|
}
|
3318
3318
|
i = i.concat(T);
|
3319
3319
|
} else
|
@@ -3329,8 +3329,8 @@ function sendQuery(e, t, r, a) {
|
|
3329
3329
|
T.status === "pending" && (T.status = "aborted");
|
3330
3330
|
}), g = [];
|
3331
3331
|
}
|
3332
|
-
function _(T,
|
3333
|
-
|
3332
|
+
function _(T, $) {
|
3333
|
+
$ && (v = []), typeof T == "function" && v.push(T);
|
3334
3334
|
}
|
3335
3335
|
function b() {
|
3336
3336
|
return {
|
@@ -3353,8 +3353,8 @@ function sendQuery(e, t, r, a) {
|
|
3353
3353
|
T.status === "pending" && (T.status = "aborted");
|
3354
3354
|
}), g = [];
|
3355
3355
|
}
|
3356
|
-
function k(T,
|
3357
|
-
const w =
|
3356
|
+
function k(T, $, I) {
|
3357
|
+
const w = $ !== "success";
|
3358
3358
|
switch (g = g.filter((M) => M !== T), l) {
|
3359
3359
|
case "pending":
|
3360
3360
|
break;
|
@@ -3365,7 +3365,7 @@ function sendQuery(e, t, r, a) {
|
|
3365
3365
|
default:
|
3366
3366
|
return;
|
3367
3367
|
}
|
3368
|
-
if (
|
3368
|
+
if ($ === "abort") {
|
3369
3369
|
u = I, C();
|
3370
3370
|
return;
|
3371
3371
|
}
|
@@ -3396,14 +3396,14 @@ function sendQuery(e, t, r, a) {
|
|
3396
3396
|
C();
|
3397
3397
|
return;
|
3398
3398
|
}
|
3399
|
-
const
|
3399
|
+
const $ = {
|
3400
3400
|
status: "pending",
|
3401
3401
|
resource: T,
|
3402
3402
|
callback: (I, w) => {
|
3403
|
-
k(
|
3403
|
+
k($, I, w);
|
3404
3404
|
}
|
3405
3405
|
};
|
3406
|
-
g.push(
|
3406
|
+
g.push($), c++, d = setTimeout(A, e.rotate), r(T, t, $.callback);
|
3407
3407
|
}
|
3408
3408
|
return setTimeout(A), b;
|
3409
3409
|
}
|
@@ -3934,60 +3934,60 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3934
3934
|
(function(r, a) {
|
3935
3935
|
e.exports = a();
|
3936
3936
|
})(commonjsGlobal, function() {
|
3937
|
-
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", v = "year", y = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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, C = { 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(
|
3938
|
-
var
|
3939
|
-
return "[" +
|
3940
|
-
} }, E = function(
|
3941
|
-
var U = String(
|
3942
|
-
return !U || U.length >=
|
3943
|
-
}, k = { s: E, z: function(
|
3944
|
-
var
|
3945
|
-
return (
|
3946
|
-
}, m: function
|
3947
|
-
if (
|
3948
|
-
return
|
3949
|
-
var U = 12 * (
|
3950
|
-
return +(-(U + (
|
3951
|
-
}, a: function(
|
3952
|
-
return
|
3953
|
-
}, p: function(
|
3954
|
-
return { M: d, y: v, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[
|
3955
|
-
}, u: function(
|
3956
|
-
return
|
3937
|
+
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", i = "second", o = "minute", l = "hour", c = "day", u = "week", d = "month", g = "quarter", v = "year", y = "date", p = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, b = /\[([^\]]+)]|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, C = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(V) {
|
3938
|
+
var O = ["th", "st", "nd", "rd"], D = V % 100;
|
3939
|
+
return "[" + V + (O[(D - 20) % 10] || O[D] || O[0]) + "]";
|
3940
|
+
} }, E = function(V, O, D) {
|
3941
|
+
var U = String(V);
|
3942
|
+
return !U || U.length >= O ? V : "" + Array(O + 1 - U.length).join(D) + V;
|
3943
|
+
}, k = { s: E, z: function(V) {
|
3944
|
+
var O = -V.utcOffset(), D = Math.abs(O), U = Math.floor(D / 60), F = D % 60;
|
3945
|
+
return (O <= 0 ? "+" : "-") + E(U, 2, "0") + ":" + E(F, 2, "0");
|
3946
|
+
}, m: function V(O, D) {
|
3947
|
+
if (O.date() < D.date())
|
3948
|
+
return -V(D, O);
|
3949
|
+
var U = 12 * (D.year() - O.year()) + (D.month() - O.month()), F = O.clone().add(U, d), K = D - F < 0, B = O.clone().add(U + (K ? -1 : 1), d);
|
3950
|
+
return +(-(U + (D - F) / (K ? F - B : B - F)) || 0);
|
3951
|
+
}, a: function(V) {
|
3952
|
+
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3953
|
+
}, p: function(V) {
|
3954
|
+
return { M: d, y: v, w: u, d: c, D: y, h: l, m: o, s: i, ms: s, Q: g }[V] || String(V || "").toLowerCase().replace(/s$/, "");
|
3955
|
+
}, u: function(V) {
|
3956
|
+
return V === void 0;
|
3957
3957
|
} }, A = "en", T = {};
|
3958
3958
|
T[A] = C;
|
3959
|
-
var
|
3960
|
-
return
|
3961
|
-
}, w = function
|
3959
|
+
var $ = "$isDayjsObject", I = function(V) {
|
3960
|
+
return V instanceof P || !(!V || !V[$]);
|
3961
|
+
}, w = function V(O, D, U) {
|
3962
3962
|
var F;
|
3963
|
-
if (!
|
3963
|
+
if (!O)
|
3964
3964
|
return A;
|
3965
|
-
if (typeof
|
3966
|
-
var K =
|
3967
|
-
T[K] && (F = K),
|
3968
|
-
var
|
3969
|
-
if (!F &&
|
3970
|
-
return
|
3965
|
+
if (typeof O == "string") {
|
3966
|
+
var K = O.toLowerCase();
|
3967
|
+
T[K] && (F = K), D && (T[K] = D, F = K);
|
3968
|
+
var B = O.split("-");
|
3969
|
+
if (!F && B.length > 1)
|
3970
|
+
return V(B[0]);
|
3971
3971
|
} else {
|
3972
|
-
var
|
3973
|
-
T[
|
3972
|
+
var W = O.name;
|
3973
|
+
T[W] = O, F = W;
|
3974
3974
|
}
|
3975
3975
|
return !U && F && (A = F), F || !U && A;
|
3976
|
-
}, M = function(
|
3977
|
-
if (I(
|
3978
|
-
return
|
3979
|
-
var
|
3980
|
-
return
|
3976
|
+
}, M = function(V, O) {
|
3977
|
+
if (I(V))
|
3978
|
+
return V.clone();
|
3979
|
+
var D = typeof O == "object" ? O : {};
|
3980
|
+
return D.date = V, D.args = arguments, new P(D);
|
3981
3981
|
}, N = k;
|
3982
|
-
N.l = w, N.i = I, N.w = function(
|
3983
|
-
return M(
|
3982
|
+
N.l = w, N.i = I, N.w = function(V, O) {
|
3983
|
+
return M(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3984
3984
|
};
|
3985
|
-
var
|
3986
|
-
function
|
3987
|
-
this.$L = w(
|
3985
|
+
var P = function() {
|
3986
|
+
function V(D) {
|
3987
|
+
this.$L = w(D.locale, null, !0), this.parse(D), this.$x = this.$x || D.x || {}, this[$] = !0;
|
3988
3988
|
}
|
3989
|
-
var
|
3990
|
-
return
|
3989
|
+
var O = V.prototype;
|
3990
|
+
return O.parse = function(D) {
|
3991
3991
|
this.$d = function(U) {
|
3992
3992
|
var F = U.date, K = U.utc;
|
3993
3993
|
if (F === null)
|
@@ -3997,108 +3997,108 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3997
3997
|
if (F instanceof Date)
|
3998
3998
|
return new Date(F);
|
3999
3999
|
if (typeof F == "string" && !/Z$/i.test(F)) {
|
4000
|
-
var
|
4001
|
-
if (
|
4002
|
-
var
|
4003
|
-
return K ? new Date(Date.UTC(
|
4000
|
+
var B = F.match(_);
|
4001
|
+
if (B) {
|
4002
|
+
var W = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
|
4003
|
+
return K ? new Date(Date.UTC(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
|
4004
4004
|
}
|
4005
4005
|
}
|
4006
4006
|
return new Date(F);
|
4007
|
-
}(
|
4008
|
-
},
|
4009
|
-
var
|
4010
|
-
this.$y =
|
4011
|
-
},
|
4007
|
+
}(D), this.init();
|
4008
|
+
}, O.init = function() {
|
4009
|
+
var D = this.$d;
|
4010
|
+
this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
|
4011
|
+
}, O.$utils = function() {
|
4012
4012
|
return N;
|
4013
|
-
},
|
4013
|
+
}, O.isValid = function() {
|
4014
4014
|
return this.$d.toString() !== p;
|
4015
|
-
},
|
4016
|
-
var F = M(
|
4015
|
+
}, O.isSame = function(D, U) {
|
4016
|
+
var F = M(D);
|
4017
4017
|
return this.startOf(U) <= F && F <= this.endOf(U);
|
4018
|
-
},
|
4019
|
-
return M(
|
4020
|
-
},
|
4021
|
-
return this.endOf(U) < M(
|
4022
|
-
},
|
4023
|
-
return N.u(
|
4024
|
-
},
|
4018
|
+
}, O.isAfter = function(D, U) {
|
4019
|
+
return M(D) < this.startOf(U);
|
4020
|
+
}, O.isBefore = function(D, U) {
|
4021
|
+
return this.endOf(U) < M(D);
|
4022
|
+
}, O.$g = function(D, U, F) {
|
4023
|
+
return N.u(D) ? this[U] : this.set(F, D);
|
4024
|
+
}, O.unix = function() {
|
4025
4025
|
return Math.floor(this.valueOf() / 1e3);
|
4026
|
-
},
|
4026
|
+
}, O.valueOf = function() {
|
4027
4027
|
return this.$d.getTime();
|
4028
|
-
},
|
4029
|
-
var F = this, K = !!N.u(U) || U,
|
4030
|
-
var
|
4031
|
-
return K ?
|
4032
|
-
},
|
4028
|
+
}, O.startOf = function(D, U) {
|
4029
|
+
var F = this, K = !!N.u(U) || U, B = N.p(D), W = function(ce, ne) {
|
4030
|
+
var le = N.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
|
4031
|
+
return K ? le : le.endOf(c);
|
4032
|
+
}, X = function(ce, ne) {
|
4033
4033
|
return N.w(F.toDate()[ce].apply(F.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4034
|
-
}, q = this.$W, Z = this.$M,
|
4035
|
-
switch (
|
4034
|
+
}, q = this.$W, Z = this.$M, ee = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
4035
|
+
switch (B) {
|
4036
4036
|
case v:
|
4037
|
-
return K ?
|
4037
|
+
return K ? W(1, 0) : W(31, 11);
|
4038
4038
|
case d:
|
4039
|
-
return K ?
|
4039
|
+
return K ? W(1, Z) : W(0, Z + 1);
|
4040
4040
|
case u:
|
4041
|
-
var
|
4042
|
-
return
|
4041
|
+
var oe = this.$locale().weekStart || 0, ge = (q < oe ? q + 7 : q) - oe;
|
4042
|
+
return W(K ? ee - ge : ee + (6 - ge), Z);
|
4043
4043
|
case c:
|
4044
4044
|
case y:
|
4045
|
-
return
|
4045
|
+
return X(se + "Hours", 0);
|
4046
4046
|
case l:
|
4047
|
-
return
|
4047
|
+
return X(se + "Minutes", 1);
|
4048
4048
|
case o:
|
4049
|
-
return
|
4049
|
+
return X(se + "Seconds", 2);
|
4050
4050
|
case i:
|
4051
|
-
return
|
4051
|
+
return X(se + "Milliseconds", 3);
|
4052
4052
|
default:
|
4053
4053
|
return this.clone();
|
4054
4054
|
}
|
4055
|
-
},
|
4056
|
-
return this.startOf(
|
4057
|
-
},
|
4058
|
-
var F, K = N.p(
|
4055
|
+
}, O.endOf = function(D) {
|
4056
|
+
return this.startOf(D, !1);
|
4057
|
+
}, O.$set = function(D, U) {
|
4058
|
+
var F, K = N.p(D), B = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = B + "Date", F[y] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[l] = B + "Hours", F[o] = B + "Minutes", F[i] = B + "Seconds", F[s] = B + "Milliseconds", F)[K], X = K === c ? this.$D + (U - this.$W) : U;
|
4059
4059
|
if (K === d || K === v) {
|
4060
4060
|
var q = this.clone().set(y, 1);
|
4061
|
-
q.$d[
|
4061
|
+
q.$d[W](X), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
4062
4062
|
} else
|
4063
|
-
|
4063
|
+
W && this.$d[W](X);
|
4064
4064
|
return this.init(), this;
|
4065
|
-
},
|
4066
|
-
return this.clone().$set(
|
4067
|
-
},
|
4068
|
-
return this[N.p(
|
4069
|
-
},
|
4065
|
+
}, O.set = function(D, U) {
|
4066
|
+
return this.clone().$set(D, U);
|
4067
|
+
}, O.get = function(D) {
|
4068
|
+
return this[N.p(D)]();
|
4069
|
+
}, O.add = function(D, U) {
|
4070
4070
|
var F, K = this;
|
4071
|
-
|
4072
|
-
var
|
4073
|
-
var
|
4074
|
-
return N.w(
|
4071
|
+
D = Number(D);
|
4072
|
+
var B = N.p(U), W = function(Z) {
|
4073
|
+
var ee = M(K);
|
4074
|
+
return N.w(ee.date(ee.date() + Math.round(Z * D)), K);
|
4075
4075
|
};
|
4076
|
-
if (
|
4077
|
-
return this.set(d, this.$M +
|
4078
|
-
if (
|
4079
|
-
return this.set(v, this.$y +
|
4080
|
-
if (
|
4081
|
-
return
|
4082
|
-
if (
|
4083
|
-
return
|
4084
|
-
var
|
4076
|
+
if (B === d)
|
4077
|
+
return this.set(d, this.$M + D);
|
4078
|
+
if (B === v)
|
4079
|
+
return this.set(v, this.$y + D);
|
4080
|
+
if (B === c)
|
4081
|
+
return W(1);
|
4082
|
+
if (B === u)
|
4083
|
+
return W(7);
|
4084
|
+
var X = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[B] || 1, q = this.$d.getTime() + D * X;
|
4085
4085
|
return N.w(q, this);
|
4086
|
-
},
|
4087
|
-
return this.add(-1 *
|
4088
|
-
},
|
4086
|
+
}, O.subtract = function(D, U) {
|
4087
|
+
return this.add(-1 * D, U);
|
4088
|
+
}, O.format = function(D) {
|
4089
4089
|
var U = this, F = this.$locale();
|
4090
4090
|
if (!this.isValid())
|
4091
4091
|
return F.invalidDate || p;
|
4092
|
-
var K =
|
4093
|
-
return ne && (ne[
|
4094
|
-
},
|
4095
|
-
return N.s(
|
4096
|
-
}, ce =
|
4097
|
-
var
|
4098
|
-
return de ?
|
4092
|
+
var K = D || "YYYY-MM-DDTHH:mm:ssZ", B = N.z(this), W = this.$H, X = this.$m, q = this.$M, Z = F.weekdays, ee = F.months, se = F.meridiem, oe = function(ne, le, de, fe) {
|
4093
|
+
return ne && (ne[le] || ne(U, K)) || de[le].slice(0, fe);
|
4094
|
+
}, ge = function(ne) {
|
4095
|
+
return N.s(W % 12 || 12, ne, "0");
|
4096
|
+
}, ce = se || function(ne, le, de) {
|
4097
|
+
var fe = ne < 12 ? "AM" : "PM";
|
4098
|
+
return de ? fe.toLowerCase() : fe;
|
4099
4099
|
};
|
4100
|
-
return K.replace(b, function(ne,
|
4101
|
-
return
|
4100
|
+
return K.replace(b, function(ne, le) {
|
4101
|
+
return le || function(de) {
|
4102
4102
|
switch (de) {
|
4103
4103
|
case "YY":
|
4104
4104
|
return String(U.$y).slice(-2);
|
@@ -4109,9 +4109,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4109
4109
|
case "MM":
|
4110
4110
|
return N.s(q + 1, 2, "0");
|
4111
4111
|
case "MMM":
|
4112
|
-
return
|
4112
|
+
return oe(F.monthsShort, q, ee, 3);
|
4113
4113
|
case "MMMM":
|
4114
|
-
return
|
4114
|
+
return oe(ee, q);
|
4115
4115
|
case "D":
|
4116
4116
|
return U.$D;
|
4117
4117
|
case "DD":
|
@@ -4119,27 +4119,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4119
4119
|
case "d":
|
4120
4120
|
return String(U.$W);
|
4121
4121
|
case "dd":
|
4122
|
-
return
|
4122
|
+
return oe(F.weekdaysMin, U.$W, Z, 2);
|
4123
4123
|
case "ddd":
|
4124
|
-
return
|
4124
|
+
return oe(F.weekdaysShort, U.$W, Z, 3);
|
4125
4125
|
case "dddd":
|
4126
4126
|
return Z[U.$W];
|
4127
4127
|
case "H":
|
4128
|
-
return String(
|
4128
|
+
return String(W);
|
4129
4129
|
case "HH":
|
4130
|
-
return N.s(
|
4130
|
+
return N.s(W, 2, "0");
|
4131
4131
|
case "h":
|
4132
|
-
return
|
4132
|
+
return ge(1);
|
4133
4133
|
case "hh":
|
4134
|
-
return
|
4134
|
+
return ge(2);
|
4135
4135
|
case "a":
|
4136
|
-
return ce(
|
4136
|
+
return ce(W, X, !0);
|
4137
4137
|
case "A":
|
4138
|
-
return ce(
|
4138
|
+
return ce(W, X, !1);
|
4139
4139
|
case "m":
|
4140
|
-
return String(
|
4140
|
+
return String(X);
|
4141
4141
|
case "mm":
|
4142
|
-
return N.s(
|
4142
|
+
return N.s(X, 2, "0");
|
4143
4143
|
case "s":
|
4144
4144
|
return String(U.$s);
|
4145
4145
|
case "ss":
|
@@ -4147,26 +4147,26 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4147
4147
|
case "SSS":
|
4148
4148
|
return N.s(U.$ms, 3, "0");
|
4149
4149
|
case "Z":
|
4150
|
-
return
|
4150
|
+
return B;
|
4151
4151
|
}
|
4152
4152
|
return null;
|
4153
|
-
}(ne) ||
|
4153
|
+
}(ne) || B.replace(":", "");
|
4154
4154
|
});
|
4155
|
-
},
|
4155
|
+
}, O.utcOffset = function() {
|
4156
4156
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4157
|
-
},
|
4158
|
-
var K,
|
4159
|
-
return N.m(
|
4157
|
+
}, O.diff = function(D, U, F) {
|
4158
|
+
var K, B = this, W = N.p(U), X = M(D), q = (X.utcOffset() - this.utcOffset()) * a, Z = this - X, ee = function() {
|
4159
|
+
return N.m(B, X);
|
4160
4160
|
};
|
4161
|
-
switch (
|
4161
|
+
switch (W) {
|
4162
4162
|
case v:
|
4163
|
-
K =
|
4163
|
+
K = ee() / 12;
|
4164
4164
|
break;
|
4165
4165
|
case d:
|
4166
|
-
K =
|
4166
|
+
K = ee();
|
4167
4167
|
break;
|
4168
4168
|
case g:
|
4169
|
-
K =
|
4169
|
+
K = ee() / 3;
|
4170
4170
|
break;
|
4171
4171
|
case u:
|
4172
4172
|
K = (Z - q) / 6048e5;
|
@@ -4187,35 +4187,35 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4187
4187
|
K = Z;
|
4188
4188
|
}
|
4189
4189
|
return F ? K : N.a(K);
|
4190
|
-
},
|
4190
|
+
}, O.daysInMonth = function() {
|
4191
4191
|
return this.endOf(d).$D;
|
4192
|
-
},
|
4192
|
+
}, O.$locale = function() {
|
4193
4193
|
return T[this.$L];
|
4194
|
-
},
|
4195
|
-
if (!
|
4194
|
+
}, O.locale = function(D, U) {
|
4195
|
+
if (!D)
|
4196
4196
|
return this.$L;
|
4197
|
-
var F = this.clone(), K = w(
|
4197
|
+
var F = this.clone(), K = w(D, U, !0);
|
4198
4198
|
return K && (F.$L = K), F;
|
4199
|
-
},
|
4199
|
+
}, O.clone = function() {
|
4200
4200
|
return N.w(this.$d, this);
|
4201
|
-
},
|
4201
|
+
}, O.toDate = function() {
|
4202
4202
|
return new Date(this.valueOf());
|
4203
|
-
},
|
4203
|
+
}, O.toJSON = function() {
|
4204
4204
|
return this.isValid() ? this.toISOString() : null;
|
4205
|
-
},
|
4205
|
+
}, O.toISOString = function() {
|
4206
4206
|
return this.$d.toISOString();
|
4207
|
-
},
|
4207
|
+
}, O.toString = function() {
|
4208
4208
|
return this.$d.toUTCString();
|
4209
|
-
},
|
4210
|
-
}(),
|
4211
|
-
return M.prototype =
|
4212
|
-
|
4213
|
-
return this.$g(
|
4209
|
+
}, V;
|
4210
|
+
}(), H = P.prototype;
|
4211
|
+
return M.prototype = H, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(V) {
|
4212
|
+
H[V[1]] = function(O) {
|
4213
|
+
return this.$g(O, V[0], V[1]);
|
4214
4214
|
};
|
4215
|
-
}), M.extend = function(
|
4216
|
-
return
|
4217
|
-
}, M.locale = w, M.isDayjs = I, M.unix = function(
|
4218
|
-
return M(1e3 *
|
4215
|
+
}), M.extend = function(V, O) {
|
4216
|
+
return V.$i || (V(O, P, M), V.$i = !0), M;
|
4217
|
+
}, M.locale = w, M.isDayjs = I, M.unix = function(V) {
|
4218
|
+
return M(1e3 * V);
|
4219
4219
|
}, M.en = T[A], M.Ls = T, M.p = {}, M;
|
4220
4220
|
});
|
4221
4221
|
})(dayjs_min);
|
@@ -4263,7 +4263,7 @@ function filesize(e, {
|
|
4263
4263
|
} = {}) {
|
4264
4264
|
let b = y, C = Number(e), E = [], k = 0, A = EMPTY;
|
4265
4265
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4266
|
-
const T = a === 10 ? 1e3 : 1024,
|
4266
|
+
const T = a === 10 ? 1e3 : 1024, $ = g === !0, I = C < 0, w = Math[p];
|
4267
4267
|
if (typeof e != "bigint" && isNaN(e))
|
4268
4268
|
throw new TypeError(INVALID_NUMBER);
|
4269
4269
|
if (typeof w !== FUNCTION)
|
@@ -4278,10 +4278,10 @@ function filesize(e, {
|
|
4278
4278
|
E[0] = w(k * M) / M, E[0] === T && b < 8 && y === -1 && (E[0] = 1, b++), A = E[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4279
4279
|
}
|
4280
4280
|
if (I && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = c[E[1]] || E[1], s === !0 ? E[0] = E[0].toLocaleString() : s.length > 0 ? E[0] = E[0].toLocaleString(s, i) : o.length > 0 && (E[0] = E[0].toString().replace(PERIOD, o)), r && Number.isInteger(E[0]) === !1 && n > 0) {
|
4281
|
-
const M = o || PERIOD, N = E[0].toString().split(M),
|
4282
|
-
E[0] = `${N[0]}${M}${
|
4281
|
+
const M = o || PERIOD, N = E[0].toString().split(M), P = N[1] || EMPTY, H = P.length, V = n - H;
|
4282
|
+
E[0] = `${N[0]}${M}${P.padEnd(H + V, ZERO)}`;
|
4283
4283
|
}
|
4284
|
-
return
|
4284
|
+
return $ && (E[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
|
4285
4285
|
value: E[0],
|
4286
4286
|
symbol: E[1],
|
4287
4287
|
exponent: b,
|
@@ -5630,19 +5630,19 @@ function debounce(e, t, r) {
|
|
5630
5630
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5631
5631
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, g = "trailing" in r ? !!r.trailing : g);
|
5632
5632
|
function v(T) {
|
5633
|
-
var
|
5634
|
-
return a = n = void 0, c = T, i = e.apply(I,
|
5633
|
+
var $ = a, I = n;
|
5634
|
+
return a = n = void 0, c = T, i = e.apply(I, $), i;
|
5635
5635
|
}
|
5636
5636
|
function y(T) {
|
5637
5637
|
return c = T, o = setTimeout(b, t), u ? v(T) : i;
|
5638
5638
|
}
|
5639
5639
|
function p(T) {
|
5640
|
-
var
|
5640
|
+
var $ = T - l, I = T - c, w = t - $;
|
5641
5641
|
return d ? nativeMin$1(w, s - I) : w;
|
5642
5642
|
}
|
5643
5643
|
function _(T) {
|
5644
|
-
var
|
5645
|
-
return l === void 0 ||
|
5644
|
+
var $ = T - l, I = T - c;
|
5645
|
+
return l === void 0 || $ >= t || $ < 0 || d && I >= s;
|
5646
5646
|
}
|
5647
5647
|
function b() {
|
5648
5648
|
var T = now$1();
|
@@ -5660,8 +5660,8 @@ function debounce(e, t, r) {
|
|
5660
5660
|
return o === void 0 ? i : C(now$1());
|
5661
5661
|
}
|
5662
5662
|
function A() {
|
5663
|
-
var T = now$1(),
|
5664
|
-
if (a = arguments, n = this, l = T,
|
5663
|
+
var T = now$1(), $ = _(T);
|
5664
|
+
if (a = arguments, n = this, l = T, $) {
|
5665
5665
|
if (o === void 0)
|
5666
5666
|
return y(l);
|
5667
5667
|
if (d)
|
@@ -6834,27 +6834,27 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6834
6834
|
function E(I, w) {
|
6835
6835
|
return function() {
|
6836
6836
|
setActivePinia(a);
|
6837
|
-
const M = Array.from(arguments), N = [],
|
6838
|
-
function
|
6839
|
-
N.push(
|
6837
|
+
const M = Array.from(arguments), N = [], P = [];
|
6838
|
+
function H(D) {
|
6839
|
+
N.push(D);
|
6840
6840
|
}
|
6841
|
-
function
|
6842
|
-
|
6841
|
+
function V(D) {
|
6842
|
+
P.push(D);
|
6843
6843
|
}
|
6844
6844
|
triggerSubscriptions(g, {
|
6845
6845
|
args: M,
|
6846
6846
|
name: I,
|
6847
6847
|
store: T,
|
6848
|
-
after:
|
6849
|
-
onError:
|
6848
|
+
after: H,
|
6849
|
+
onError: V
|
6850
6850
|
});
|
6851
|
-
let
|
6851
|
+
let O;
|
6852
6852
|
try {
|
6853
|
-
|
6854
|
-
} catch (
|
6855
|
-
throw triggerSubscriptions(
|
6853
|
+
O = w.apply(this && this.$id === e ? this : T, M);
|
6854
|
+
} catch (D) {
|
6855
|
+
throw triggerSubscriptions(P, D), D;
|
6856
6856
|
}
|
6857
|
-
return
|
6857
|
+
return O instanceof Promise ? O.then((D) => (triggerSubscriptions(N, D), D)).catch((D) => (triggerSubscriptions(P, D), Promise.reject(D))) : (triggerSubscriptions(N, O), O);
|
6858
6858
|
};
|
6859
6859
|
}
|
6860
6860
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6869,12 +6869,12 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6869
6869
|
$patch: _,
|
6870
6870
|
$reset: b,
|
6871
6871
|
$subscribe(I, w = {}) {
|
6872
|
-
const M = addSubscription(d, I, w.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (
|
6872
|
+
const M = addSubscription(d, I, w.detached, () => N()), N = s.run(() => watch(() => a.state.value[e], (P) => {
|
6873
6873
|
(w.flush === "sync" ? u : c) && I({
|
6874
6874
|
storeId: e,
|
6875
6875
|
type: MutationType.direct,
|
6876
6876
|
events: v
|
6877
|
-
},
|
6877
|
+
}, P);
|
6878
6878
|
}, assign$1({}, l, w)));
|
6879
6879
|
return M;
|
6880
6880
|
},
|
@@ -6887,18 +6887,18 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6887
6887
|
A
|
6888
6888
|
));
|
6889
6889
|
a._s.set(e, T);
|
6890
|
-
const
|
6891
|
-
for (const I in
|
6892
|
-
const w =
|
6890
|
+
const $ = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
6891
|
+
for (const I in $) {
|
6892
|
+
const w = $[I];
|
6893
6893
|
if (isRef(w) && !isComputed(w) || isReactive(w))
|
6894
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef(
|
6894
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, I, toRef($, I)) : i || (y && shouldHydrate(w) && (isRef(w) ? w.value = y[I] : mergeReactiveObjects(w, y[I])), a.state.value[e][I] = w), process.env.NODE_ENV !== "production" && k.state.push(I);
|
6895
6895
|
else if (typeof w == "function") {
|
6896
6896
|
const M = process.env.NODE_ENV !== "production" && n ? w : E(I, w);
|
6897
|
-
|
6897
|
+
$[I] = M, process.env.NODE_ENV !== "production" && (k.actions[I] = w), o.actions[I] = w;
|
6898
6898
|
} else
|
6899
|
-
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[I] = i ? r.getters[I] : w, IS_CLIENT && (
|
6899
|
+
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[I] = i ? r.getters[I] : w, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(I));
|
6900
6900
|
}
|
6901
|
-
if (assign$1(T,
|
6901
|
+
if (assign$1(T, $), assign$1(toRaw(T), $), Object.defineProperty(T, "$state", {
|
6902
6902
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
6903
6903
|
set: (I) => {
|
6904
6904
|
if (process.env.NODE_ENV !== "production" && n)
|
@@ -6911,8 +6911,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6911
6911
|
T._hotUpdate = markRaw((w) => {
|
6912
6912
|
T._hotUpdating = !0, w._hmrPayload.state.forEach((M) => {
|
6913
6913
|
if (M in T.$state) {
|
6914
|
-
const N = w.$state[M],
|
6915
|
-
typeof N == "object" && isPlainObject(N) && isPlainObject(
|
6914
|
+
const N = w.$state[M], P = T.$state[M];
|
6915
|
+
typeof N == "object" && isPlainObject(N) && isPlainObject(P) ? patchObject(N, P) : w.$state[M] = P;
|
6916
6916
|
}
|
6917
6917
|
set(T, M, toRef(w.$state, M));
|
6918
6918
|
}), Object.keys(T.$state).forEach((M) => {
|
@@ -6925,8 +6925,8 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6925
6925
|
set(T, M, E(M, N));
|
6926
6926
|
}
|
6927
6927
|
for (const M in w._hmrPayload.getters) {
|
6928
|
-
const N = w._hmrPayload.getters[M],
|
6929
|
-
set(T, M,
|
6928
|
+
const N = w._hmrPayload.getters[M], P = i ? computed(() => (setActivePinia(a), N.call(T, T))) : N;
|
6929
|
+
set(T, M, P);
|
6930
6930
|
}
|
6931
6931
|
Object.keys(T._hmrPayload.getters).forEach((M) => {
|
6932
6932
|
M in w._hmrPayload.getters || del(T, M);
|
@@ -8777,12 +8777,12 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8777
8777
|
varProfile: k,
|
8778
8778
|
varProfileConfig: A,
|
8779
8779
|
varGrid: T,
|
8780
|
-
varGridConfig:
|
8780
|
+
varGridConfig: $
|
8781
8781
|
} = await GetAll({ params: { frm_id: e } });
|
8782
8782
|
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, g != null ? g : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
|
8783
8783
|
varProfile: k != null ? k : null,
|
8784
8784
|
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((I) => I.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
8785
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
8785
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig($ != null ? $ : null)), this.varGridMap.set(e, {
|
8786
8786
|
varGrid: transformVarGridDTO(T),
|
8787
8787
|
currentVarGridMasterID: (u = (c = ((i = T == null ? void 0 : T.varGridMasters) == null ? void 0 : i.find((I) => I.def_flg === 1)) || ((o = T == null ? void 0 : T.varGridMasters) == null ? void 0 : o.find((I) => I.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((l = T == null ? void 0 : T.varGridMasters) == null ? void 0 : l.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
8788
8788
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
@@ -8992,12 +8992,12 @@ function useKgVar(e, t, r = 0) {
|
|
8992
8992
|
u.leave(c);
|
8993
8993
|
}));
|
8994
8994
|
const d = (q) => computed(() => {
|
8995
|
-
var Z,
|
8996
|
-
return (
|
8997
|
-
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)),
|
8995
|
+
var Z, ee, se;
|
8996
|
+
return (se = (ee = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? ee : q) != null ? se : "";
|
8997
|
+
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), $ = computed(() => u.isOtherRequesting(c)), I = computed(() => u.getVarButtons(c)), w = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), N = computed(() => u.getVarButtonUpdate(c)), P = computed(() => u.getVarButtonCopy(c)), H = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), D = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
|
8998
8998
|
var q, Z;
|
8999
|
-
return (Z = (q =
|
9000
|
-
}), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)),
|
8999
|
+
return (Z = (q = O.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
|
9000
|
+
}), F = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
9001
9001
|
return {
|
9002
9002
|
formID: c,
|
9003
9003
|
store: u,
|
@@ -9012,22 +9012,22 @@ function useKgVar(e, t, r = 0) {
|
|
9012
9012
|
isCopyingRequesting: k,
|
9013
9013
|
isDeleting: A,
|
9014
9014
|
isDeletingRequesting: T,
|
9015
|
-
isOtherRequesting:
|
9015
|
+
isOtherRequesting: $,
|
9016
9016
|
varButtons: I,
|
9017
9017
|
varButtonSearch: w,
|
9018
9018
|
varButtonCreate: M,
|
9019
9019
|
varButtonUpdate: N,
|
9020
|
-
varButtonCopy:
|
9021
|
-
varButtonDelete:
|
9022
|
-
varProfileMasters:
|
9023
|
-
currentVarProfileMaster:
|
9024
|
-
currentVarProfileMasterID:
|
9020
|
+
varButtonCopy: P,
|
9021
|
+
varButtonDelete: H,
|
9022
|
+
varProfileMasters: V,
|
9023
|
+
currentVarProfileMaster: O,
|
9024
|
+
currentVarProfileMasterID: D,
|
9025
9025
|
currentVarProfileDetails: U,
|
9026
9026
|
varGridConfig: F,
|
9027
9027
|
varGridMasters: K,
|
9028
|
-
currentVarGridMaster:
|
9029
|
-
systemVarGridDetails:
|
9030
|
-
currentVarGridDetails:
|
9028
|
+
currentVarGridMaster: B,
|
9029
|
+
systemVarGridDetails: W,
|
9030
|
+
currentVarGridDetails: X,
|
9031
9031
|
setIsCreating: s,
|
9032
9032
|
setIsUpdating: i,
|
9033
9033
|
setIsCopying: o,
|
@@ -9114,31 +9114,31 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9114
9114
|
async function y() {
|
9115
9115
|
var p, _, b, C, E, k, A;
|
9116
9116
|
if (d.value) {
|
9117
|
-
const T = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [],
|
9117
|
+
const T = (_ = (p = c.selectedRows) == null ? void 0 : p.value) != null ? _ : [], $ = (b = T.map((w) => w[g.value])) != null ? b : [];
|
9118
9118
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9119
9119
|
var_nam: i,
|
9120
9120
|
isMultiple: !0,
|
9121
|
-
values:
|
9121
|
+
values: $,
|
9122
9122
|
rows: T
|
9123
9123
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9124
9124
|
var_nam: i,
|
9125
9125
|
model: l,
|
9126
9126
|
isMultiple: !0,
|
9127
|
-
values:
|
9127
|
+
values: $,
|
9128
9128
|
rows: T
|
9129
9129
|
}), r("update:visible", !1));
|
9130
9130
|
} else {
|
9131
|
-
const T = (k = (E = (C = c.selectedRows) == null ? void 0 : C.value) == null ? void 0 : E[0]) != null ? k : null,
|
9131
|
+
const T = (k = (E = (C = c.selectedRows) == null ? void 0 : C.value) == null ? void 0 : E[0]) != null ? k : null, $ = (A = T == null ? void 0 : T[g.value]) != null ? A : "";
|
9132
9132
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9133
9133
|
var_nam: i,
|
9134
9134
|
isMultiple: !1,
|
9135
|
-
value:
|
9135
|
+
value: $,
|
9136
9136
|
row: T
|
9137
9137
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9138
9138
|
var_nam: i,
|
9139
9139
|
model: l,
|
9140
9140
|
isMultiple: !1,
|
9141
|
-
value:
|
9141
|
+
value: $,
|
9142
9142
|
row: T
|
9143
9143
|
}), r("update:visible", !1));
|
9144
9144
|
}
|
@@ -9380,9 +9380,9 @@ function useKgFormItemSelect() {
|
|
9380
9380
|
}), d;
|
9381
9381
|
});
|
9382
9382
|
async function c() {
|
9383
|
-
var b, C, E, k, A, T,
|
9383
|
+
var b, C, E, k, A, T, $, I;
|
9384
9384
|
let d = [];
|
9385
|
-
const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = (
|
9385
|
+
const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = ($ = (T = a.value) == null ? void 0 : T.lbl_clm) != null ? $ : "";
|
9386
9386
|
if (!g || !y || !p) {
|
9387
9387
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9388
9388
|
frm_id: r.formID,
|
@@ -9868,12 +9868,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9868
9868
|
model: w,
|
9869
9869
|
isMultiple: M,
|
9870
9870
|
value: N,
|
9871
|
-
values:
|
9871
|
+
values: P
|
9872
9872
|
}) => {
|
9873
|
-
var
|
9873
|
+
var H;
|
9874
9874
|
switch (I) {
|
9875
9875
|
case e.kgVarName:
|
9876
|
-
w.value && (M ? w.value[e.kgVarName] =
|
9876
|
+
w.value && (M ? w.value[e.kgVarName] = P : w.value[e.kgVarName] = N), (H = n.value) == null || H.validate([e.kgVarName]);
|
9877
9877
|
break;
|
9878
9878
|
}
|
9879
9879
|
return !1;
|
@@ -9883,7 +9883,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9883
9883
|
} = _useRules(e), {
|
9884
9884
|
controlType: g
|
9885
9885
|
} = useKgFormItem(e), v = computed(() => {
|
9886
|
-
var w, M, N,
|
9886
|
+
var w, M, N, P, H;
|
9887
9887
|
if (s.isRetrieving.value)
|
9888
9888
|
return !0;
|
9889
9889
|
let I = !1;
|
@@ -9903,17 +9903,17 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9903
9903
|
I = ((N = u.value) == null ? void 0 : N.upt_ena_flg) === 0;
|
9904
9904
|
break;
|
9905
9905
|
case s.isCopying.value:
|
9906
|
-
I = ((
|
9906
|
+
I = ((P = u.value) == null ? void 0 : P.cpy_ena_flg) === 0;
|
9907
9907
|
break;
|
9908
9908
|
case s.isDeleting.value:
|
9909
|
-
I = ((
|
9909
|
+
I = ((H = u.value) == null ? void 0 : H.del_ena_flg) === 0;
|
9910
9910
|
break;
|
9911
9911
|
}
|
9912
9912
|
break;
|
9913
9913
|
}
|
9914
9914
|
return I;
|
9915
9915
|
}), y = computed(() => {
|
9916
|
-
var w, M, N,
|
9916
|
+
var w, M, N, P;
|
9917
9917
|
let I = " ";
|
9918
9918
|
if (e.kgPlaceholder)
|
9919
9919
|
I = e.kgPlaceholder;
|
@@ -9923,12 +9923,12 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9923
9923
|
I = s.t((M = (w = c.value) == null ? void 0 : w.placeholder) != null ? M : " ").value;
|
9924
9924
|
break;
|
9925
9925
|
case KG_FORM_CONTEXT.SUBMIT:
|
9926
|
-
I = s.t((
|
9926
|
+
I = s.t((P = (N = u.value) == null ? void 0 : N.placeholder) != null ? P : " ").value;
|
9927
9927
|
break;
|
9928
9928
|
}
|
9929
9929
|
return I;
|
9930
9930
|
}), p = computed(() => {
|
9931
|
-
var w, M, N,
|
9931
|
+
var w, M, N, P, H, V, O, D, U, F;
|
9932
9932
|
let I = 6;
|
9933
9933
|
if (e.kgSpan !== void 0)
|
9934
9934
|
I = e.kgSpan;
|
@@ -9940,13 +9940,13 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9940
9940
|
case KG_FORM_CONTEXT.SUBMIT:
|
9941
9941
|
switch (!0) {
|
9942
9942
|
case s.isCreating.value:
|
9943
|
-
I = (
|
9943
|
+
I = (P = (N = u.value) == null ? void 0 : N.crt_width) != null ? P : 6;
|
9944
9944
|
break;
|
9945
9945
|
case s.isUpdating.value:
|
9946
|
-
I = (
|
9946
|
+
I = (V = (H = u.value) == null ? void 0 : H.upt_width) != null ? V : 6;
|
9947
9947
|
break;
|
9948
9948
|
case s.isCopying.value:
|
9949
|
-
I = (
|
9949
|
+
I = (D = (O = u.value) == null ? void 0 : O.cpy_width) != null ? D : 6;
|
9950
9950
|
break;
|
9951
9951
|
case s.isDeleting.value:
|
9952
9952
|
I = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
|
@@ -9955,18 +9955,18 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9955
9955
|
}
|
9956
9956
|
return Math.min(24, Math.max(1, I));
|
9957
9957
|
}), _ = computed(() => {
|
9958
|
-
var N,
|
9958
|
+
var N, P;
|
9959
9959
|
const I = get(k.value, "$el.parentElement");
|
9960
9960
|
if (I && !((N = I.classList) != null && N.contains("ant-row")))
|
9961
9961
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9962
9962
|
let w = {};
|
9963
|
-
const M = Math.abs(Number.parseInt((
|
9963
|
+
const M = Math.abs(Number.parseInt((P = get(k.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
|
9964
9964
|
return Number.isNaN(M) || (w = {
|
9965
9965
|
paddingLeft: `${M}px !important`,
|
9966
9966
|
paddingRight: `${M}px !important`
|
9967
9967
|
}), w;
|
9968
9968
|
}), b = computed(() => {
|
9969
|
-
var w, M, N,
|
9969
|
+
var w, M, N, P;
|
9970
9970
|
let I = "kg-form-item";
|
9971
9971
|
switch (o.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
9972
9972
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -9980,7 +9980,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9980
9980
|
switch (!0) {
|
9981
9981
|
case (s.isCreating.value && ((M = u.value) == null ? void 0 : M.crt_vis_flg) === 0):
|
9982
9982
|
case (s.isUpdating.value && ((N = u.value) == null ? void 0 : N.upt_vis_flg) === 0):
|
9983
|
-
case (s.isCopying.value && ((
|
9983
|
+
case (s.isCopying.value && ((P = u.value) == null ? void 0 : P.cpy_vis_flg) === 0):
|
9984
9984
|
I += " kg-form-item--invisible";
|
9985
9985
|
break;
|
9986
9986
|
}
|
@@ -10076,7 +10076,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10076
10076
|
title: s.t(e.kgVarName).value
|
10077
10077
|
}, [s.t(e.kgVarName).value]) : null;
|
10078
10078
|
}
|
10079
|
-
function
|
10079
|
+
function $() {
|
10080
10080
|
var I;
|
10081
10081
|
return !o.value || !((I = o.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10082
10082
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
@@ -10103,7 +10103,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10103
10103
|
validateFirst: !0,
|
10104
10104
|
htmlFor: E.value
|
10105
10105
|
}, {
|
10106
|
-
default: () => createVNode(Fragment, null, [A(),
|
10106
|
+
default: () => createVNode(Fragment, null, [A(), $()]),
|
10107
10107
|
label: () => T()
|
10108
10108
|
})]
|
10109
10109
|
});
|
@@ -10500,8 +10500,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
10500
10500
|
}) => {
|
10501
10501
|
const u = s.store.getVarSubmitConfig(s.formID);
|
10502
10502
|
return o = watch(c, (d) => {
|
10503
|
-
var g, v, y, p, _, b, C, E, k, A, T,
|
10504
|
-
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 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 = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (C = u == null ? void 0 : u.min_width) != null ? C : DEFAULT_MIN_WIDTH, d.dft_width = (E = u == null ? void 0 : u.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = (
|
10503
|
+
var g, v, y, p, _, b, C, E, k, A, T, $;
|
10504
|
+
d && (d.id = (g = u == null ? void 0 : u.id) != null ? g : null, d.frm_id = s.formID, d.resizable_flg = (v = u == null ? void 0 : u.resizable_flg) != null ? v : 1, d.fullscreen_flg = (y = u == null ? void 0 : u.fullscreen_flg) != null ? y : 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 = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (C = u == null ? void 0 : u.min_width) != null ? C : DEFAULT_MIN_WIDTH, d.dft_width = (E = u == null ? void 0 : u.dft_width) != null ? E : DEFAULT_WIDTH, d.layout = (k = u == null ? void 0 : u.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (T = u == null ? void 0 : u.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, d.display_type = ($ = u == null ? void 0 : u.display_type) != null ? $ : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
10505
10505
|
}, {
|
10506
10506
|
immediate: !0
|
10507
10507
|
}), KgUtil.hideLoading(), !1;
|
@@ -10765,67 +10765,67 @@ const getProps$p = () => ({
|
|
10765
10765
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
10766
10766
|
inject(DI_KG_VAR__KG_PROPS, null);
|
10767
10767
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = useKgSearch();
|
10768
|
-
i.onSubmitSave(async () => (await
|
10768
|
+
i.onSubmitSave(async () => (await oe(), !1)), i.onSubmitCancel(async () => (await se(), !1)), _useFormModel$1();
|
10769
10769
|
const u = computed(() => s.isDeleting.value && k.value.length === 0 && A.value.length === 0), d = computed(() => l.store.isLoading(s.formID)), g = computed(() => s.store.getVarSubmitConfig(s.formID)), v = computed(() => s.store.getVarSubmitFieldsForCreateKey(s.formID)), y = computed(() => s.store.getVarSubmitFieldsForCreateNotKey(s.formID)), p = computed(() => s.store.getVarSubmitFieldsForUpdateKey(s.formID)), _ = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), k = computed(() => {
|
10770
|
-
var
|
10770
|
+
var R, x, z;
|
10771
10771
|
switch (!0) {
|
10772
10772
|
case s.isCreating.value:
|
10773
|
-
return (
|
10773
|
+
return (R = v.value) != null ? R : [];
|
10774
10774
|
case s.isUpdating.value:
|
10775
|
-
return (
|
10775
|
+
return (x = p.value) != null ? x : [];
|
10776
10776
|
case s.isCopying.value:
|
10777
|
-
return (
|
10777
|
+
return (z = b.value) != null ? z : [];
|
10778
10778
|
case s.isDeleting.value:
|
10779
10779
|
return [];
|
10780
10780
|
}
|
10781
10781
|
return [];
|
10782
10782
|
}), A = computed(() => {
|
10783
|
-
var
|
10783
|
+
var R, x, z, J;
|
10784
10784
|
switch (!0) {
|
10785
10785
|
case s.isCreating.value:
|
10786
|
-
return (
|
10786
|
+
return (R = y.value) != null ? R : [];
|
10787
10787
|
case s.isUpdating.value:
|
10788
|
-
return (
|
10788
|
+
return (x = _.value) != null ? x : [];
|
10789
10789
|
case s.isCopying.value:
|
10790
|
-
return (
|
10790
|
+
return (z = C.value) != null ? z : [];
|
10791
10791
|
case s.isDeleting.value:
|
10792
10792
|
return (J = E.value) != null ? J : [];
|
10793
10793
|
}
|
10794
10794
|
return [];
|
10795
|
-
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)),
|
10795
|
+
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), $ = computed(() => T.value || d.value), I = computed(() => d.value), w = ref({
|
10796
10796
|
kgWidth: 0
|
10797
10797
|
}), M = computed(() => {
|
10798
|
-
var
|
10799
|
-
return !!(u.value || F.isFullscreen || ((
|
10798
|
+
var R;
|
10799
|
+
return !!(u.value || F.isFullscreen || ((R = g.value) == null ? void 0 : R.resizable_flg) === 0);
|
10800
10800
|
}), N = computed(() => {
|
10801
|
-
var
|
10802
|
-
return u.value ? 398 : (
|
10803
|
-
}),
|
10804
|
-
var
|
10805
|
-
return u.value ? 398 : (
|
10806
|
-
}),
|
10807
|
-
_useResizeObserver$1(
|
10808
|
-
const
|
10801
|
+
var R, x;
|
10802
|
+
return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.min_width) != null ? x : DEFAULT_MIN_WIDTH;
|
10803
|
+
}), P = computed(() => {
|
10804
|
+
var R, x;
|
10805
|
+
return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.max_width) != null ? x : DEFAULT_MAX_WIDTH;
|
10806
|
+
}), H = computed(() => u.value ? 398 : w.value.kgWidth), V = ref(null);
|
10807
|
+
_useResizeObserver$1(V);
|
10808
|
+
const O = _useTitle(), D = computed(() => u.value ? 400 : w.value.kgWidth && w.value.kgWidth > 0 ? "auto" : 0), U = computed(() => D.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
|
10809
10809
|
isFullscreen: !1
|
10810
10810
|
}), {
|
10811
10811
|
getClass: K
|
10812
10812
|
} = _useClass(e, F), {
|
10813
|
-
getLayout:
|
10813
|
+
getLayout: B
|
10814
10814
|
} = _useLayout(), {
|
10815
|
-
getDefaultWidth:
|
10816
|
-
} = _useDefaultWidth(),
|
10817
|
-
var
|
10818
|
-
switch (
|
10815
|
+
getDefaultWidth: W
|
10816
|
+
} = _useDefaultWidth(), X = computed(() => {
|
10817
|
+
var R, x, z;
|
10818
|
+
switch (B.value) {
|
10819
10819
|
case "horizontal":
|
10820
|
-
switch ((
|
10820
|
+
switch ((R = g.value) == null ? void 0 : R.label_col_unit) {
|
10821
10821
|
case KG_WIDTH_UNIT.SPAN:
|
10822
10822
|
return {
|
10823
|
-
span: (
|
10823
|
+
span: (x = g.value) == null ? void 0 : x.label_col
|
10824
10824
|
};
|
10825
10825
|
default:
|
10826
10826
|
return {
|
10827
10827
|
style: {
|
10828
|
-
width: `${(
|
10828
|
+
width: `${(z = g.value) == null ? void 0 : z.label_col}px`
|
10829
10829
|
}
|
10830
10830
|
};
|
10831
10831
|
}
|
@@ -10833,13 +10833,13 @@ const getProps$p = () => ({
|
|
10833
10833
|
return;
|
10834
10834
|
}
|
10835
10835
|
}), q = computed(() => {
|
10836
|
-
var
|
10837
|
-
switch (
|
10836
|
+
var R, x;
|
10837
|
+
switch (B.value) {
|
10838
10838
|
case "horizontal":
|
10839
|
-
switch ((
|
10839
|
+
switch ((R = g.value) == null ? void 0 : R.label_col_unit) {
|
10840
10840
|
case KG_WIDTH_UNIT.SPAN:
|
10841
10841
|
return {
|
10842
|
-
span: 24 - ((
|
10842
|
+
span: 24 - ((x = g.value) == null ? void 0 : x.label_col)
|
10843
10843
|
};
|
10844
10844
|
default:
|
10845
10845
|
return;
|
@@ -10848,19 +10848,19 @@ const getProps$p = () => ({
|
|
10848
10848
|
return;
|
10849
10849
|
}
|
10850
10850
|
});
|
10851
|
-
watch(U, (
|
10852
|
-
|
10851
|
+
watch(U, (R, x) => {
|
10852
|
+
R === !0 && Z(), x === !0 && R === !1 && ee();
|
10853
10853
|
}, {
|
10854
10854
|
immediate: !0
|
10855
|
-
}), watch(
|
10856
|
-
|
10855
|
+
}), watch(W, (R) => {
|
10856
|
+
R && (w.value.kgWidth = R);
|
10857
10857
|
}, {
|
10858
10858
|
immediate: !0
|
10859
10859
|
});
|
10860
10860
|
function Z() {
|
10861
|
-
var
|
10862
|
-
const
|
10863
|
-
|
10861
|
+
var x;
|
10862
|
+
const R = watch(l.model, (z) => {
|
10863
|
+
z && Object.keys(z).length > 0 && (setTimeout(() => R()), l.store.emit(s.formID, "open", {
|
10864
10864
|
isCreating: s.isCreating.value,
|
10865
10865
|
isUpdating: s.isUpdating.value,
|
10866
10866
|
isCopying: s.isCopying.value,
|
@@ -10871,12 +10871,12 @@ const getProps$p = () => ({
|
|
10871
10871
|
}, {
|
10872
10872
|
immediate: !0
|
10873
10873
|
});
|
10874
|
-
((
|
10874
|
+
((x = g.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
10875
10875
|
}
|
10876
|
-
async function
|
10877
|
-
w.value.kgWidth =
|
10876
|
+
async function ee() {
|
10877
|
+
w.value.kgWidth = W.value, F.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
10878
10878
|
}
|
10879
|
-
function
|
10879
|
+
function se() {
|
10880
10880
|
switch (!0) {
|
10881
10881
|
case s.isCreating.value:
|
10882
10882
|
s.store.setIsCreating(s.formID, !1);
|
@@ -10892,8 +10892,8 @@ const getProps$p = () => ({
|
|
10892
10892
|
break;
|
10893
10893
|
}
|
10894
10894
|
}
|
10895
|
-
async function
|
10896
|
-
var
|
10895
|
+
async function oe() {
|
10896
|
+
var R, x;
|
10897
10897
|
try {
|
10898
10898
|
if (await l.store.emit(s.formID, "beforeOk", {
|
10899
10899
|
isCreating: s.isCreating.value,
|
@@ -10906,11 +10906,11 @@ const getProps$p = () => ({
|
|
10906
10906
|
}))
|
10907
10907
|
return;
|
10908
10908
|
try {
|
10909
|
-
await ((
|
10910
|
-
} catch (
|
10911
|
-
KgUtil.throwIfNotFormError(
|
10909
|
+
await ((R = l.formRef.value) == null ? void 0 : R.validate());
|
10910
|
+
} catch (Q) {
|
10911
|
+
KgUtil.throwIfNotFormError(Q);
|
10912
10912
|
}
|
10913
|
-
if (await ((
|
10913
|
+
if (await ((x = l.formRef.value) == null ? void 0 : x.validate()), await l.store.emit(s.formID, "afterValidate", {
|
10914
10914
|
isCreating: s.isCreating.value,
|
10915
10915
|
isUpdating: s.isUpdating.value,
|
10916
10916
|
isCopying: s.isCopying.value,
|
@@ -10922,7 +10922,7 @@ const getProps$p = () => ({
|
|
10922
10922
|
return;
|
10923
10923
|
switch (!0) {
|
10924
10924
|
case s.isCreating.value:
|
10925
|
-
await
|
10925
|
+
await ge();
|
10926
10926
|
break;
|
10927
10927
|
case s.isUpdating.value:
|
10928
10928
|
await ce();
|
@@ -10931,17 +10931,17 @@ const getProps$p = () => ({
|
|
10931
10931
|
await ne();
|
10932
10932
|
break;
|
10933
10933
|
case s.isDeleting.value:
|
10934
|
-
await
|
10934
|
+
await le();
|
10935
10935
|
break;
|
10936
10936
|
}
|
10937
|
-
} catch (
|
10938
|
-
KgUtil.throwIfNotFormError(
|
10937
|
+
} catch (z) {
|
10938
|
+
KgUtil.throwIfNotFormError(z);
|
10939
10939
|
}
|
10940
10940
|
}
|
10941
|
-
async function
|
10942
|
-
var
|
10943
|
-
const
|
10944
|
-
if (!
|
10941
|
+
async function ge() {
|
10942
|
+
var x, z, J, Q, te, ae;
|
10943
|
+
const R = (x = s.varButtonCreate.value) == null ? void 0 : x.cmd;
|
10944
|
+
if (!R) {
|
10945
10945
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10946
10946
|
VarButton: s.varButtonCreate.value
|
10947
10947
|
});
|
@@ -10949,7 +10949,7 @@ const getProps$p = () => ({
|
|
10949
10949
|
}
|
10950
10950
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
10951
10951
|
try {
|
10952
|
-
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10952
|
+
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
10953
10953
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
10954
10954
|
isCreating: s.isCreating.value,
|
10955
10955
|
isUpdating: s.isUpdating.value,
|
@@ -10959,15 +10959,15 @@ const getProps$p = () => ({
|
|
10959
10959
|
rows: o.selectedRows.value,
|
10960
10960
|
model: l.model,
|
10961
10961
|
params: re,
|
10962
|
-
data:
|
10962
|
+
data: ie
|
10963
10963
|
}))
|
10964
10964
|
return;
|
10965
10965
|
await httpClient().request({
|
10966
|
-
method: (
|
10967
|
-
url:
|
10966
|
+
method: (te = (Q = s.varButtonCreate.value) == null ? void 0 : Q.cmd_method) != null ? te : "POST",
|
10967
|
+
url: R,
|
10968
10968
|
params: re.value,
|
10969
|
-
data:
|
10970
|
-
}), ((
|
10969
|
+
data: ie.value
|
10970
|
+
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(O.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
|
10971
10971
|
isCreating: s.isCreating.value,
|
10972
10972
|
isUpdating: s.isUpdating.value,
|
10973
10973
|
isCopying: s.isCopying.value,
|
@@ -10982,9 +10982,9 @@ const getProps$p = () => ({
|
|
10982
10982
|
}
|
10983
10983
|
}
|
10984
10984
|
async function ce() {
|
10985
|
-
var
|
10986
|
-
const
|
10987
|
-
if (!
|
10985
|
+
var x, z, J, Q, te, ae;
|
10986
|
+
const R = (x = s.varButtonUpdate.value) == null ? void 0 : x.cmd;
|
10987
|
+
if (!R) {
|
10988
10988
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
10989
10989
|
VarButton: s.varButtonUpdate.value
|
10990
10990
|
});
|
@@ -10992,7 +10992,7 @@ const getProps$p = () => ({
|
|
10992
10992
|
}
|
10993
10993
|
try {
|
10994
10994
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
10995
|
-
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (
|
10995
|
+
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
10996
10996
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
10997
10997
|
isCreating: s.isCreating.value,
|
10998
10998
|
isUpdating: s.isUpdating.value,
|
@@ -11002,15 +11002,15 @@ const getProps$p = () => ({
|
|
11002
11002
|
rows: o.selectedRows.value,
|
11003
11003
|
model: l.model,
|
11004
11004
|
params: re,
|
11005
|
-
data:
|
11005
|
+
data: ie
|
11006
11006
|
}))
|
11007
11007
|
return;
|
11008
11008
|
await httpClient().request({
|
11009
|
-
method: (
|
11010
|
-
url:
|
11009
|
+
method: (te = (Q = s.varButtonUpdate.value) == null ? void 0 : Q.cmd_method) != null ? te : "POST",
|
11010
|
+
url: R,
|
11011
11011
|
params: re.value,
|
11012
|
-
data:
|
11013
|
-
}), ((
|
11012
|
+
data: ie.value
|
11013
|
+
}), ((ae = s.varButtonUpdate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
|
11014
11014
|
isCreating: s.isCreating.value,
|
11015
11015
|
isUpdating: s.isUpdating.value,
|
11016
11016
|
isCopying: s.isCopying.value,
|
@@ -11025,9 +11025,9 @@ const getProps$p = () => ({
|
|
11025
11025
|
}
|
11026
11026
|
}
|
11027
11027
|
async function ne() {
|
11028
|
-
var
|
11029
|
-
const
|
11030
|
-
if (!
|
11028
|
+
var x, z, J, Q, te, ae, re, ie;
|
11029
|
+
const R = (x = s.varButtonCopy.value) == null ? void 0 : x.cmd;
|
11030
|
+
if (!R) {
|
11031
11031
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11032
11032
|
VarButton: s.varButtonCopy.value
|
11033
11033
|
});
|
@@ -11035,11 +11035,11 @@ const getProps$p = () => ({
|
|
11035
11035
|
}
|
11036
11036
|
try {
|
11037
11037
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11038
|
-
let
|
11039
|
-
...(
|
11038
|
+
let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCopy.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
|
11039
|
+
...(Q = o.selectedFirstRow.value) != null ? Q : {},
|
11040
11040
|
...toRaw(l.model.value)
|
11041
11041
|
}, s.formID, r));
|
11042
|
-
if (((
|
11042
|
+
if (((te = g.value) == null ? void 0 : te.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(s.formID, "beforeRequest", {
|
11043
11043
|
isCreating: s.isCreating.value,
|
11044
11044
|
isUpdating: s.isUpdating.value,
|
11045
11045
|
isCopying: s.isCopying.value,
|
@@ -11047,16 +11047,16 @@ const getProps$p = () => ({
|
|
11047
11047
|
row: o.selectedRow.value,
|
11048
11048
|
rows: o.selectedRows.value,
|
11049
11049
|
model: l.model,
|
11050
|
-
params:
|
11050
|
+
params: ue,
|
11051
11051
|
data: pe
|
11052
11052
|
}))
|
11053
11053
|
return;
|
11054
11054
|
await httpClient().request({
|
11055
|
-
method: (re = (
|
11056
|
-
url:
|
11057
|
-
params:
|
11055
|
+
method: (re = (ae = s.varButtonCopy.value) == null ? void 0 : ae.cmd_method) != null ? re : "POST",
|
11056
|
+
url: R,
|
11057
|
+
params: ue.value,
|
11058
11058
|
data: pe.value
|
11059
|
-
}), ((
|
11059
|
+
}), ((ie = s.varButtonCopy.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
|
11060
11060
|
isCreating: s.isCreating.value,
|
11061
11061
|
isUpdating: s.isUpdating.value,
|
11062
11062
|
isCopying: s.isCopying.value,
|
@@ -11064,16 +11064,16 @@ const getProps$p = () => ({
|
|
11064
11064
|
row: o.selectedFirstRow.value,
|
11065
11065
|
model: l.model
|
11066
11066
|
}), s.store.setIsCopying(s.formID, !1), c.search(!0);
|
11067
|
-
} catch (
|
11068
|
-
console.error(
|
11067
|
+
} catch (ue) {
|
11068
|
+
console.error(ue), l.store.emit(s.formID, "error", ue);
|
11069
11069
|
} finally {
|
11070
11070
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11071
11071
|
}
|
11072
11072
|
}
|
11073
|
-
async function
|
11074
|
-
var
|
11075
|
-
const
|
11076
|
-
if (!
|
11073
|
+
async function le() {
|
11074
|
+
var x, z, J, Q, te, ae, re, ie, ue, pe;
|
11075
|
+
const R = (x = s.varButtonDelete.value) == null ? void 0 : x.cmd;
|
11076
|
+
if (!R) {
|
11077
11077
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11078
11078
|
VarButton: s.varButtonDelete.value
|
11079
11079
|
});
|
@@ -11081,13 +11081,13 @@ const getProps$p = () => ({
|
|
11081
11081
|
}
|
11082
11082
|
try {
|
11083
11083
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11084
|
-
let
|
11085
|
-
|
11086
|
-
|
11087
|
-
|
11088
|
-
|
11089
|
-
|
11090
|
-
|
11084
|
+
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonDelete.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((Q = o.selectedRows.value) != null ? Q : []);
|
11085
|
+
if (((te = s.varButtonDelete.value) == null ? void 0 : te.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
|
11086
|
+
ids: (re = (ae = o.selectedRows.value) == null ? void 0 : ae.map((ye) => {
|
11087
|
+
var he, ve, be;
|
11088
|
+
return (be = ye[(ve = (he = s.varButtonDelete.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
|
11089
|
+
})) != null ? re : []
|
11090
|
+
}), _e = ref({})), await l.store.emit(s.formID, "beforeRequest", {
|
11091
11091
|
isCreating: s.isCreating.value,
|
11092
11092
|
isUpdating: s.isUpdating.value,
|
11093
11093
|
isCopying: s.isCopying.value,
|
@@ -11095,18 +11095,21 @@ const getProps$p = () => ({
|
|
11095
11095
|
row: o.selectedFirstRow.value,
|
11096
11096
|
rows: o.selectedRows.value,
|
11097
11097
|
model: l.model,
|
11098
|
-
params:
|
11099
|
-
data:
|
11098
|
+
params: me,
|
11099
|
+
data: _e
|
11100
11100
|
}))
|
11101
11101
|
return;
|
11102
11102
|
await httpClient().request({
|
11103
|
-
method: (
|
11104
|
-
url:
|
11105
|
-
params:
|
11106
|
-
data:
|
11103
|
+
method: (ue = (ie = s.varButtonDelete.value) == null ? void 0 : ie.cmd_method) != null ? ue : "DELETE",
|
11104
|
+
url: R,
|
11105
|
+
params: me.value,
|
11106
|
+
data: _e.value
|
11107
11107
|
}, {
|
11108
11108
|
joinParamsToUrl: !0
|
11109
|
-
}), ((
|
11109
|
+
}), ((pe = s.varButtonDelete.value) == null ? void 0 : pe.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await i.store.emit(s.formID, "deleteOk", {
|
11110
|
+
button: s.varButtonDelete.value,
|
11111
|
+
rows: o.selectedRows.value
|
11112
|
+
}), await l.store.emit(s.formID, "ok", {
|
11110
11113
|
isCreating: s.isCreating.value,
|
11111
11114
|
isUpdating: s.isUpdating.value,
|
11112
11115
|
isCopying: s.isCopying.value,
|
@@ -11114,54 +11117,54 @@ const getProps$p = () => ({
|
|
11114
11117
|
row: o.selectedFirstRow.value,
|
11115
11118
|
model: l.model
|
11116
11119
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
11117
|
-
} catch (
|
11118
|
-
console.error(
|
11120
|
+
} catch (me) {
|
11121
|
+
console.error(me), l.store.emit(s.formID, "error", me);
|
11119
11122
|
} finally {
|
11120
11123
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11121
11124
|
}
|
11122
11125
|
}
|
11123
|
-
function de(
|
11124
|
-
var
|
11125
|
-
const
|
11126
|
-
return isFunction$2(
|
11127
|
-
kgVarName:
|
11126
|
+
function de(R) {
|
11127
|
+
var z, J;
|
11128
|
+
const x = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[R.var_nam];
|
11129
|
+
return isFunction$2(x) ? createVNode(KgForm.Item, {
|
11130
|
+
kgVarName: R.var_nam,
|
11128
11131
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11129
|
-
kgRules: l.rules.value[
|
11130
|
-
onKgSubmit:
|
11132
|
+
kgRules: l.rules.value[R.var_nam],
|
11133
|
+
onKgSubmit: oe
|
11131
11134
|
}, {
|
11132
11135
|
control: ({
|
11133
|
-
frm_id:
|
11134
|
-
varName:
|
11135
|
-
props:
|
11136
|
+
frm_id: Q,
|
11137
|
+
varName: te,
|
11138
|
+
props: ae,
|
11136
11139
|
model: re,
|
11137
|
-
varVariableConfig:
|
11138
|
-
varProfileDetail:
|
11140
|
+
varVariableConfig: ie,
|
11141
|
+
varProfileDetail: ue,
|
11139
11142
|
varSubmitField: pe
|
11140
|
-
}) =>
|
11141
|
-
frm_id:
|
11142
|
-
varName:
|
11143
|
-
props:
|
11143
|
+
}) => x({
|
11144
|
+
frm_id: Q,
|
11145
|
+
varName: te,
|
11146
|
+
props: ae,
|
11144
11147
|
model: re,
|
11145
|
-
varVariableConfig:
|
11146
|
-
varProfileDetail:
|
11148
|
+
varVariableConfig: ie,
|
11149
|
+
varProfileDetail: ue,
|
11147
11150
|
varSubmitField: pe
|
11148
11151
|
})
|
11149
11152
|
}) : createVNode(KgForm.Item, {
|
11150
|
-
kgVarName:
|
11153
|
+
kgVarName: R.var_nam,
|
11151
11154
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11152
|
-
kgRules: l.rules.value[
|
11153
|
-
onKgSubmit:
|
11155
|
+
kgRules: l.rules.value[R.var_nam],
|
11156
|
+
onKgSubmit: oe
|
11154
11157
|
}, null);
|
11155
11158
|
}
|
11156
|
-
function
|
11157
|
-
let
|
11159
|
+
function fe() {
|
11160
|
+
let R, x;
|
11158
11161
|
return createVNode(KgResizable, {
|
11159
11162
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11160
11163
|
kgMinWidth: N.value,
|
11161
|
-
kgMaxWidth:
|
11162
|
-
kgWidth:
|
11164
|
+
kgMaxWidth: P.value,
|
11165
|
+
kgWidth: H.value,
|
11163
11166
|
kgDisabled: M.value,
|
11164
|
-
"onUpdate:kgWidth": (
|
11167
|
+
"onUpdate:kgWidth": (z) => w.value.kgWidth = z
|
11165
11168
|
}, {
|
11166
11169
|
default: () => [createVNode(Spin, {
|
11167
11170
|
spinning: d.value
|
@@ -11169,20 +11172,20 @@ const getProps$p = () => ({
|
|
11169
11172
|
default: () => [createVNode(KgForm, {
|
11170
11173
|
ref: l.formRef,
|
11171
11174
|
model: l.model.value,
|
11172
|
-
layout:
|
11173
|
-
labelCol:
|
11175
|
+
layout: B.value,
|
11176
|
+
labelCol: X.value,
|
11174
11177
|
wrapperCol: q.value
|
11175
11178
|
}, {
|
11176
11179
|
default: () => [createVNode("div", {
|
11177
|
-
ref:
|
11180
|
+
ref: V
|
11178
11181
|
}, [k.value.length > 0 && createVNode(Row, {
|
11179
11182
|
gutter: 12
|
11180
|
-
}, _isSlot$8(
|
11181
|
-
default: () => [
|
11183
|
+
}, _isSlot$8(R = k.value.map(de)) ? R : {
|
11184
|
+
default: () => [R]
|
11182
11185
|
}), k.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
|
11183
11186
|
gutter: 12
|
11184
|
-
}, _isSlot$8(
|
11185
|
-
default: () => [
|
11187
|
+
}, _isSlot$8(x = A.value.map(de)) ? x : {
|
11188
|
+
default: () => [x]
|
11186
11189
|
}), u.value && createVNode("div", {
|
11187
11190
|
style: "text-align: center; padding: 6px 0 12px;"
|
11188
11191
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11190,37 +11193,37 @@ const getProps$p = () => ({
|
|
11190
11193
|
})]
|
11191
11194
|
});
|
11192
11195
|
}
|
11193
|
-
function
|
11194
|
-
let
|
11196
|
+
function L() {
|
11197
|
+
let R, x;
|
11195
11198
|
return createVNode("div", null, [createVNode(Button, {
|
11196
11199
|
type: "primary",
|
11197
|
-
ghost:
|
11198
|
-
disabled:
|
11199
|
-
onClick:
|
11200
|
-
}, _isSlot$8(
|
11201
|
-
default: () => [
|
11200
|
+
ghost: !$.value,
|
11201
|
+
disabled: $.value,
|
11202
|
+
onClick: se
|
11203
|
+
}, _isSlot$8(R = n.t("kg.cancel")) ? R : {
|
11204
|
+
default: () => [R]
|
11202
11205
|
}), createVNode(Button, {
|
11203
11206
|
type: "primary",
|
11204
11207
|
disabled: I.value,
|
11205
11208
|
loading: T.value,
|
11206
11209
|
danger: !!s.isDeleting.value,
|
11207
|
-
onClick:
|
11208
|
-
}, _isSlot$8(
|
11209
|
-
default: () => [
|
11210
|
+
onClick: oe
|
11211
|
+
}, _isSlot$8(x = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? x : {
|
11212
|
+
default: () => [x]
|
11210
11213
|
})]);
|
11211
11214
|
}
|
11212
|
-
function
|
11215
|
+
function G() {
|
11213
11216
|
return createVNode("div", {
|
11214
|
-
title:
|
11215
|
-
}, [
|
11217
|
+
title: O.title.value
|
11218
|
+
}, [O.title.value]);
|
11216
11219
|
}
|
11217
|
-
function
|
11220
|
+
function Y() {
|
11218
11221
|
return createVNode(KgSubmitHeader, {
|
11219
11222
|
isFullscreen: F.isFullscreen,
|
11220
|
-
"onUpdate:isFullscreen": (
|
11223
|
+
"onUpdate:isFullscreen": (R) => F.isFullscreen = R,
|
11221
11224
|
kgShowFullscreenButton: !u.value,
|
11222
11225
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11223
|
-
onKgCancel:
|
11226
|
+
onKgCancel: se
|
11224
11227
|
}, null);
|
11225
11228
|
}
|
11226
11229
|
return onUnmounted(() => {
|
@@ -11232,14 +11235,14 @@ const getProps$p = () => ({
|
|
11232
11235
|
maskClosable: !1,
|
11233
11236
|
keyboard: !1,
|
11234
11237
|
destroyOnClose: !0,
|
11235
|
-
width:
|
11238
|
+
width: D.value,
|
11236
11239
|
class: K.value,
|
11237
11240
|
"kg-frm_id": s.formID
|
11238
11241
|
}, {
|
11239
|
-
title:
|
11240
|
-
extra:
|
11241
|
-
default:
|
11242
|
-
footer:
|
11242
|
+
title: G,
|
11243
|
+
extra: Y,
|
11244
|
+
default: fe,
|
11245
|
+
footer: L
|
11243
11246
|
});
|
11244
11247
|
}
|
11245
11248
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -11555,8 +11558,8 @@ const getProps$n = () => ({
|
|
11555
11558
|
return !1;
|
11556
11559
|
});
|
11557
11560
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11558
|
-
var k, A, T,
|
11559
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && ((
|
11561
|
+
var k, A, T, $, I, w;
|
11562
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && (($ = c.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((I = c.value) == null ? void 0 : I.cpy_flg) === 1 || !!n.isDeleting.value && ((w = c.value) == null ? void 0 : w.del_flg) === 1);
|
11560
11563
|
}), d = computed(() => {
|
11561
11564
|
var k, A;
|
11562
11565
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.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);
|
@@ -11565,7 +11568,7 @@ const getProps$n = () => ({
|
|
11565
11568
|
let k = "kg-table-td";
|
11566
11569
|
return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((T = l.value) == null ? void 0 : T.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
11567
11570
|
}), v = computed(() => {
|
11568
|
-
var A, T,
|
11571
|
+
var A, T, $, I, w;
|
11569
11572
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11570
11573
|
return "";
|
11571
11574
|
let k = e.kgValue;
|
@@ -11573,7 +11576,7 @@ const getProps$n = () => ({
|
|
11573
11576
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11574
11577
|
{
|
11575
11578
|
const M = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11576
|
-
M.dscFieldName ? k = ((
|
11579
|
+
M.dscFieldName ? k = (($ = e.kgRow) == null ? void 0 : $[M.dscFieldName]) || e.kgValue : k = ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}_dsc`]) || ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}Dsc`]) || e.kgValue;
|
11577
11580
|
}
|
11578
11581
|
break;
|
11579
11582
|
}
|
@@ -11581,7 +11584,7 @@ const getProps$n = () => ({
|
|
11581
11584
|
`)), k;
|
11582
11585
|
}), y = ref(null);
|
11583
11586
|
function p(k) {
|
11584
|
-
var A, T,
|
11587
|
+
var A, T, $;
|
11585
11588
|
if (k.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
11586
11589
|
switch ((A = l.value) == null ? void 0 : A.display_type) {
|
11587
11590
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
@@ -11591,7 +11594,7 @@ const getProps$n = () => ({
|
|
11591
11594
|
{
|
11592
11595
|
k.stopPropagation(), k.preventDefault();
|
11593
11596
|
const I = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11594
|
-
(
|
11597
|
+
($ = a.router.value) == null || $.push({
|
11595
11598
|
path: I.path,
|
11596
11599
|
query: e.kgRow
|
11597
11600
|
});
|
@@ -11623,35 +11626,35 @@ const getProps$n = () => ({
|
|
11623
11626
|
});
|
11624
11627
|
}
|
11625
11628
|
function C() {
|
11626
|
-
var k, A, T,
|
11629
|
+
var k, A, T, $, I, w, M, N, P, H;
|
11627
11630
|
if (u.value)
|
11628
11631
|
return b();
|
11629
11632
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
11630
11633
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
11631
|
-
const
|
11634
|
+
const V = KgUtil.tryParseJSON((A = l.value) == null ? void 0 : A.display_type_properties);
|
11632
11635
|
return createVNode(KgYesOrNo, {
|
11633
|
-
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T =
|
11634
|
-
kgNilAsFalse:
|
11636
|
+
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((T = V.yValue) != null ? T : 1),
|
11637
|
+
kgNilAsFalse: V.nilAsFalse
|
11635
11638
|
}, null);
|
11636
11639
|
}
|
11637
11640
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
11638
|
-
const
|
11639
|
-
if (
|
11640
|
-
const
|
11641
|
-
return
|
11642
|
-
color: (I =
|
11643
|
-
}, _isSlot$7(
|
11644
|
-
default: () => [
|
11641
|
+
const V = KgUtil.tryParseJSON(($ = l.value) == null ? void 0 : $.display_type_properties), O = isArrayLike(V) && V.find((D) => D.value === e.kgValue);
|
11642
|
+
if (O) {
|
11643
|
+
const D = n.t(O.varName).value;
|
11644
|
+
return D ? createVNode(Tag, {
|
11645
|
+
color: (I = O.color) != null ? I : "default"
|
11646
|
+
}, _isSlot$7(D) ? D : {
|
11647
|
+
default: () => [D]
|
11645
11648
|
}) : E();
|
11646
11649
|
} else
|
11647
11650
|
return E();
|
11648
11651
|
}
|
11649
11652
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
11650
|
-
const
|
11651
|
-
if (
|
11652
|
-
const
|
11653
|
+
const V = KgUtil.tryParseJSON((w = l.value) == null ? void 0 : w.display_type_properties);
|
11654
|
+
if (V.isTag && isArrayLike(V.tagColors)) {
|
11655
|
+
const O = V.tagColors.find((D) => D.value === e.kgValue);
|
11653
11656
|
return v.value ? createVNode(Tag, {
|
11654
|
-
color: (M =
|
11657
|
+
color: (M = O == null ? void 0 : O.color) != null ? M : "default"
|
11655
11658
|
}, {
|
11656
11659
|
default: () => [v.value]
|
11657
11660
|
}) : E();
|
@@ -11659,11 +11662,11 @@ const getProps$n = () => ({
|
|
11659
11662
|
return E();
|
11660
11663
|
}
|
11661
11664
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11662
|
-
const
|
11665
|
+
const V = KgUtil.tryParseJSON((N = l.value) == null ? void 0 : N.display_type_properties);
|
11663
11666
|
return createVNode(KgProgressA, {
|
11664
|
-
kgTextWidth:
|
11665
|
-
kgLeft: (
|
11666
|
-
kgRight: (
|
11667
|
+
kgTextWidth: V.textWidth,
|
11668
|
+
kgLeft: (P = e.kgRow) == null ? void 0 : P[V.leftColumn],
|
11669
|
+
kgRight: (H = e.kgRow) == null ? void 0 : H[V.rightColumn]
|
11667
11670
|
}, null);
|
11668
11671
|
}
|
11669
11672
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -11859,10 +11862,7 @@ const getProps$m = () => ({
|
|
11859
11862
|
}) => !1), i.onOk(async () => (r.store.retrieve(r.formID), !1)), i.onBeforeRequest(async ({
|
11860
11863
|
params: c,
|
11861
11864
|
data: u
|
11862
|
-
}) => {
|
11863
|
-
const d = o.selectedRows.value;
|
11864
|
-
return c.value = {}, u.value = d, !1;
|
11865
|
-
}), s.onUpdateBeforeClick(async ({
|
11865
|
+
}) => !1), s.onUpdateBeforeClick(async ({
|
11866
11866
|
row: c
|
11867
11867
|
}) => !1);
|
11868
11868
|
const l = computed(() => {
|
@@ -11992,17 +11992,15 @@ const FORM_ID__VAR_GRID_MASTER__SAVE = "kg-table.VarGridMaster.Save", KgTableSet
|
|
11992
11992
|
emit: r
|
11993
11993
|
}) {
|
11994
11994
|
KgUtil.showLoading();
|
11995
|
-
const a = inject(KG_DI_FORM_ID, null), n = useKgVar(a);
|
11996
|
-
|
11997
|
-
|
11998
|
-
return s.onOpen(async ({
|
11999
|
-
model: i
|
11995
|
+
const a = inject(KG_DI_FORM_ID, null), n = useKgVar(a), s = useKgVar(FORM_ID__VAR_GRID_MASTER__SAVE, !0, n.store.getFormLevel(n.formID) + 1), i = useKgSubmit(s.formID);
|
11996
|
+
return i.onOpen(async ({
|
11997
|
+
model: o
|
12000
11998
|
}) => {
|
12001
|
-
var
|
12002
|
-
return
|
12003
|
-
}),
|
12004
|
-
model:
|
12005
|
-
}) => (
|
11999
|
+
var l, c, u, d, g, v, y, p, _, b;
|
12000
|
+
return o.value.grd_var_nam = `${(c = (l = n.currentVarGridMaster.value) == null ? void 0 : l.grd_var_nam) != null ? c : ""}_COPY`, o.value.frm_id = (d = (u = n.currentVarGridMaster.value) == null ? void 0 : u.frm_id) != null ? d : "", o.value.usr_id = (v = (g = n.currentVarGridMaster.value) == null ? void 0 : g.usr_id) != null ? v : "", o.value.grp_nam = (p = (y = n.currentVarGridMaster.value) == null ? void 0 : y.grp_nam) != null ? p : "", o.value.varGridDetails = (b = (_ = n.currentVarGridMaster.value) == null ? void 0 : _.varGridDetails) != null ? b : [], KgUtil.hideLoading(), !1;
|
12001
|
+
}), i.onBeforeOk(async ({
|
12002
|
+
model: o
|
12003
|
+
}) => (o.value, !1)), i.onOk(async () => (n.store.retrieve(n.formID), !1)), () => createVNode(KgSubmit, null, null);
|
12006
12004
|
}
|
12007
12005
|
});
|
12008
12006
|
function _isSlot$5(e) {
|
@@ -12109,10 +12107,10 @@ const getProps$h = () => ({
|
|
12109
12107
|
var A;
|
12110
12108
|
let E, k;
|
12111
12109
|
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((T) => {
|
12112
|
-
var
|
12110
|
+
var $;
|
12113
12111
|
return createVNode(Menu.Item, {
|
12114
12112
|
key: T.id,
|
12115
|
-
class: T.id === ((
|
12113
|
+
class: T.id === (($ = n.currentVarGridMaster.value) == null ? void 0 : $.id) ? "selected" : "",
|
12116
12114
|
"kg-var_nam": T.grd_var_nam,
|
12117
12115
|
onClick: () => n.store.setCurrentVarGridMasterID(n.formID, T.id)
|
12118
12116
|
}, {
|
@@ -12651,12 +12649,12 @@ function _useColumns(e) {
|
|
12651
12649
|
function T() {
|
12652
12650
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
12653
12651
|
}
|
12654
|
-
const
|
12652
|
+
const $ = b();
|
12655
12653
|
return {
|
12656
12654
|
dataIndex: _,
|
12657
12655
|
title: C(),
|
12658
|
-
width:
|
12659
|
-
resizable: typeof
|
12656
|
+
width: $,
|
12657
|
+
resizable: typeof $ == "number",
|
12660
12658
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
12661
12659
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
12662
12660
|
fixed: k(),
|
@@ -12779,6 +12777,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12779
12777
|
type: Boolean,
|
12780
12778
|
default: void 0
|
12781
12779
|
},
|
12780
|
+
kgCheckboxDisabled: Function,
|
12782
12781
|
kgRowClassName: Function
|
12783
12782
|
}), KgTable = defineComponent({
|
12784
12783
|
name: "KgTable",
|
@@ -12787,30 +12786,30 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12787
12786
|
slots: t,
|
12788
12787
|
emit: r
|
12789
12788
|
}) {
|
12790
|
-
var
|
12789
|
+
var fe;
|
12791
12790
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), i = useKg(), o = useKgVar(), l = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
12792
12791
|
l.onSearch(async ({
|
12793
|
-
resetPageIndex:
|
12794
|
-
}) => (
|
12795
|
-
name:
|
12796
|
-
args:
|
12792
|
+
resetPageIndex: L
|
12793
|
+
}) => (W(L), !1)), l.onReset(async () => (W(!0), !1)), u.store.$onAction(async ({
|
12794
|
+
name: L,
|
12795
|
+
args: G
|
12797
12796
|
}) => {
|
12798
|
-
switch (
|
12797
|
+
switch (L) {
|
12799
12798
|
case "setRowSelect":
|
12800
|
-
if (
|
12801
|
-
const
|
12799
|
+
if (G[0] === o.formID) {
|
12800
|
+
const Y = G[1], R = G[2], x = Y[u.id.value];
|
12802
12801
|
switch (!0) {
|
12803
|
-
case (
|
12804
|
-
|
12802
|
+
case (R && !V.value.includes(x)):
|
12803
|
+
X([...V.value, x]);
|
12805
12804
|
break;
|
12806
|
-
case (!
|
12807
|
-
|
12805
|
+
case (!R && V.value.includes(x)):
|
12806
|
+
X(without$1(V.value, x));
|
12808
12807
|
break;
|
12809
12808
|
}
|
12810
12809
|
}
|
12811
12810
|
break;
|
12812
12811
|
case "clearDatas":
|
12813
|
-
|
12812
|
+
G[0] === o.formID && (u.store.setDatas(o.formID, []), O.total = 0, B(), v.value = []);
|
12814
12813
|
break;
|
12815
12814
|
}
|
12816
12815
|
});
|
@@ -12822,277 +12821,286 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12822
12821
|
} = _useLoading(), b = ref(null);
|
12823
12822
|
_useResizeObserver(b), _useDragColumn(b, y);
|
12824
12823
|
const C = computed(() => {
|
12825
|
-
var
|
12826
|
-
return (
|
12824
|
+
var L, G;
|
12825
|
+
return (G = (L = o.varButtonSearch.value) == null ? void 0 : L.cmd) != null ? G : null;
|
12827
12826
|
}), E = computed(() => {
|
12828
|
-
var
|
12829
|
-
let
|
12830
|
-
pageNo:
|
12831
|
-
pageSize:
|
12832
|
-
...
|
12833
|
-
...(
|
12827
|
+
var G, Y, R, x, z, J, Q;
|
12828
|
+
let L = {
|
12829
|
+
pageNo: O.pageIndex,
|
12830
|
+
pageSize: O.pageSize,
|
12831
|
+
...D,
|
12832
|
+
...(Y = (G = l.model) == null ? void 0 : G.value) != null ? Y : {}
|
12834
12833
|
};
|
12835
|
-
return o.varButtonSearch.value && (
|
12836
|
-
...
|
12837
|
-
...KgVarUtil.parseCommandParameter((
|
12838
|
-
}), (
|
12839
|
-
...
|
12840
|
-
...KgVarUtil.parseCommandParameter((
|
12841
|
-
}), ((
|
12834
|
+
return o.varButtonSearch.value && (L = {
|
12835
|
+
...L,
|
12836
|
+
...KgVarUtil.parseCommandParameter((x = (R = o.varButtonSearch.value) == null ? void 0 : R.cmd_prm) != null ? x : "")
|
12837
|
+
}), (z = o.varGridConfig.value) != null && z.cmd_prm && (L = {
|
12838
|
+
...L,
|
12839
|
+
...KgVarUtil.parseCommandParameter((J = o.varGridConfig.value.cmd_prm) != null ? J : "")
|
12840
|
+
}), ((Q = o.varGridConfig.value) == null ? void 0 : Q.convert_sort_field_to_under_score_flg) === 1 && L.column && (L.column = snakeCase$1(L.column)), L;
|
12842
12841
|
}), k = computed(() => {
|
12843
|
-
var
|
12844
|
-
if (!isNil((
|
12845
|
-
return (
|
12842
|
+
var L, G, Y, R;
|
12843
|
+
if (!isNil((G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgDisabled))
|
12844
|
+
return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgDisabled;
|
12846
12845
|
if (!isNil(e.kgDisabled))
|
12847
12846
|
return e.kgDisabled;
|
12848
|
-
}), A = computed(() =>
|
12849
|
-
var
|
12850
|
-
|
12851
|
-
|
12852
|
-
|
12853
|
-
|
12847
|
+
}), A = computed(() => {
|
12848
|
+
var L, G, Y, R;
|
12849
|
+
if (!isNil((G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgCheckboxDisabled))
|
12850
|
+
return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgCheckboxDisabled;
|
12851
|
+
if (!isNil(e.kgCheckboxDisabled))
|
12852
|
+
return e.kgCheckboxDisabled;
|
12853
|
+
}), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), I = computed(() => {
|
12854
|
+
var L;
|
12855
|
+
return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
|
12854
12856
|
}), w = computed(() => {
|
12855
|
-
|
12857
|
+
var L;
|
12858
|
+
return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
12859
|
+
}), M = computed(() => {
|
12860
|
+
if (!!w.value)
|
12856
12861
|
return {
|
12857
12862
|
fixed: "left",
|
12858
12863
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
12859
12864
|
hideSelectAll: !u.isMultiSelect.value,
|
12860
|
-
selectedRowKeys:
|
12865
|
+
selectedRowKeys: V,
|
12861
12866
|
preserveSelectedRowKeys: !1,
|
12862
|
-
getCheckboxProps: (
|
12863
|
-
|
12864
|
-
|
12865
|
-
|
12866
|
-
|
12867
|
+
getCheckboxProps: (L) => {
|
12868
|
+
var G;
|
12869
|
+
return {
|
12870
|
+
disabled: !!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((G = A.value) != null && G.call(A, L))
|
12871
|
+
};
|
12872
|
+
},
|
12873
|
+
onSelect: (L) => q(L),
|
12874
|
+
onChange: (L) => u.isMultiSelect.value && X(L)
|
12867
12875
|
};
|
12868
|
-
}), M = computed(() => {
|
12869
|
-
var H;
|
12870
|
-
let P = "kg-table";
|
12871
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (P += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (P += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (P += " kg-table--submitting"), P;
|
12872
12876
|
}), N = computed(() => {
|
12873
|
-
var
|
12874
|
-
let
|
12875
|
-
return ((
|
12876
|
-
}),
|
12877
|
+
var G;
|
12878
|
+
let L = "kg-table";
|
12879
|
+
return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (L += " kg-table--submitting"), L;
|
12880
|
+
}), P = computed(() => {
|
12881
|
+
var G;
|
12882
|
+
let L = "kg-table-bottom";
|
12883
|
+
return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
12884
|
+
}), H = computed(() => u.store.getDatas(o.formID)), V = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), O = reactive({
|
12877
12885
|
pageIndex: 1,
|
12878
12886
|
pageSize: 10,
|
12879
12887
|
total: 0
|
12880
|
-
}),
|
12888
|
+
}), D = reactive({
|
12881
12889
|
column: void 0,
|
12882
12890
|
order: void 0
|
12883
|
-
}),
|
12884
|
-
|
12891
|
+
}), U = watch(u.pageSizeOption, (L) => {
|
12892
|
+
L && (setTimeout(() => U()), O.pageSize = L, g.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${g.value}`));
|
12885
12893
|
}, {
|
12886
12894
|
immediate: !0
|
12887
12895
|
});
|
12888
|
-
watch(u.pageSizeOptions, (
|
12889
|
-
|
12890
|
-
}), watch([C, u.isReadAutomatically, l.isReady], ([
|
12891
|
-
|
12896
|
+
watch(u.pageSizeOptions, (L) => {
|
12897
|
+
L.length > 0 && !L.includes(O.pageSize) && (O.pageSize = u.pageSizeOption.value);
|
12898
|
+
}), watch([C, u.isReadAutomatically, l.isReady], ([L, G, Y]) => {
|
12899
|
+
L && G && Y && !u.store.getIsRetrieved(o.formID) && W(!0);
|
12892
12900
|
}, {
|
12893
12901
|
immediate: !0
|
12894
|
-
}), watch(o.isCreating, (
|
12895
|
-
|
12902
|
+
}), watch(o.isCreating, (L, G) => {
|
12903
|
+
L === !0 ? F() : L === !1 && G === !0 && K();
|
12896
12904
|
}), onUnmounted(() => {
|
12897
12905
|
u.store.dispose(o.formID);
|
12898
12906
|
});
|
12899
|
-
function
|
12907
|
+
function F() {
|
12900
12908
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
12901
|
-
const
|
12909
|
+
const L = {
|
12902
12910
|
[u.id.value]: KG_TABLE_TEMP_ID
|
12903
12911
|
};
|
12904
|
-
u.store.setDatas(o.formID, [
|
12912
|
+
u.store.setDatas(o.formID, [L, ...H.value]), u.store.setSelectedRows(o.formID, [L]);
|
12905
12913
|
}
|
12906
12914
|
}
|
12907
|
-
function
|
12908
|
-
const
|
12909
|
-
|
12915
|
+
function K() {
|
12916
|
+
const L = H.value.find((G) => G[u.id.value] === KG_TABLE_TEMP_ID);
|
12917
|
+
L && (u.store.setDatas(o.formID, without$1(H.value, L)), u.store.setSelectedRows(o.formID, []));
|
12910
12918
|
}
|
12911
|
-
function
|
12912
|
-
var
|
12913
|
-
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
12914
|
-
if (!
|
12919
|
+
function B(L, G) {
|
12920
|
+
var Y;
|
12921
|
+
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!M.value) {
|
12922
|
+
if (!G) {
|
12915
12923
|
u.store.setSelectedRows(o.formID, []);
|
12916
12924
|
return;
|
12917
12925
|
}
|
12918
|
-
switch (
|
12926
|
+
switch (L == null ? void 0 : L.detail) {
|
12919
12927
|
case 1:
|
12920
|
-
switch ((
|
12928
|
+
switch ((Y = o.varGridConfig.value) == null ? void 0 : Y.operation_on_row_click) {
|
12921
12929
|
case 0:
|
12922
12930
|
break;
|
12923
12931
|
case 1:
|
12924
|
-
u.store.setSelectedRows(o.formID, [
|
12932
|
+
u.store.setSelectedRows(o.formID, [G]);
|
12925
12933
|
break;
|
12926
12934
|
}
|
12927
12935
|
break;
|
12928
12936
|
case 2:
|
12929
12937
|
u.store.emit(o.formID, "rowDoubleClick", {
|
12930
|
-
row:
|
12938
|
+
row: G
|
12931
12939
|
});
|
12932
12940
|
break;
|
12933
12941
|
}
|
12934
12942
|
}
|
12935
12943
|
}
|
12936
|
-
function
|
12944
|
+
function W(L = !1) {
|
12937
12945
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
12938
|
-
const
|
12939
|
-
|
12946
|
+
const G = watch(g, (R) => {
|
12947
|
+
R && (setTimeout(() => G()), Y());
|
12940
12948
|
}, {
|
12941
12949
|
immediate: !0
|
12942
12950
|
});
|
12943
|
-
async function
|
12944
|
-
var
|
12951
|
+
async function Y() {
|
12952
|
+
var R, x, z;
|
12945
12953
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u8FDB\u5165\u65B9\u6CD5.`), !C.value) {
|
12946
12954
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
12947
12955
|
VarButton: o.varButtonSearch.value
|
12948
12956
|
});
|
12949
12957
|
return;
|
12950
12958
|
}
|
12951
|
-
|
12959
|
+
L && (O.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
12952
12960
|
try {
|
12953
|
-
const
|
12961
|
+
const J = KgUtil.parseParams(E.value, u.profileFormID.value, a), Q = ref({});
|
12954
12962
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
12955
|
-
params:
|
12956
|
-
response:
|
12957
|
-
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (
|
12963
|
+
params: J,
|
12964
|
+
response: Q
|
12965
|
+
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (Q.value = await httpClient().request({
|
12958
12966
|
method: "GET",
|
12959
12967
|
url: C.value,
|
12960
|
-
params:
|
12968
|
+
params: J
|
12961
12969
|
}, {
|
12962
12970
|
successMessageMode: "none"
|
12963
12971
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
12964
|
-
let
|
12972
|
+
let te = ref([]), ae = ref(0);
|
12965
12973
|
switch (!0) {
|
12966
|
-
case !
|
12967
|
-
|
12974
|
+
case !Q.value:
|
12975
|
+
te.value = [], ae.value = 0;
|
12968
12976
|
break;
|
12969
|
-
case isArrayLike(
|
12970
|
-
|
12977
|
+
case isArrayLike(Q.value):
|
12978
|
+
te.value = Q.value, ae.value = Q.value.length;
|
12971
12979
|
break;
|
12972
|
-
case ("total" in
|
12973
|
-
|
12980
|
+
case ("total" in Q.value && "records" in Q.value):
|
12981
|
+
te.value = (R = Q.value.records) != null ? R : [], ae.value = (x = Q.value.total) != null ? x : 0;
|
12974
12982
|
break;
|
12975
12983
|
}
|
12976
12984
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
12977
|
-
datas:
|
12985
|
+
datas: te,
|
12978
12986
|
total: ae,
|
12979
|
-
setDatas(
|
12980
|
-
u.store.setDatas(o.formID,
|
12987
|
+
setDatas(re) {
|
12988
|
+
u.store.setDatas(o.formID, re);
|
12981
12989
|
}
|
12982
|
-
}), u.store.setDatas(o.formID,
|
12983
|
-
page:
|
12984
|
-
datas:
|
12985
|
-
setDatas(
|
12986
|
-
u.store.setDatas(o.formID,
|
12990
|
+
}), u.store.setDatas(o.formID, te.value), O.total = ae.value, B(), v.value = [], await nextTick(), ((z = o.varGridConfig.value) == null ? void 0 : z.check_first_row_after_retrieve) === 1 && te.value.length > 0 && u.store.setSelectedRows(o.formID, [te.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
12991
|
+
page: Q.value,
|
12992
|
+
datas: te,
|
12993
|
+
setDatas(re) {
|
12994
|
+
u.store.setDatas(o.formID, re);
|
12987
12995
|
}
|
12988
12996
|
}), u.store.setIsRetrieved(o.formID, !0);
|
12989
|
-
} catch (
|
12990
|
-
throw
|
12997
|
+
} catch (J) {
|
12998
|
+
throw J;
|
12991
12999
|
} finally {
|
12992
13000
|
u.store.setIsRetrieving(o.formID, !1);
|
12993
13001
|
}
|
12994
13002
|
}
|
12995
13003
|
}
|
12996
|
-
function
|
12997
|
-
u.store.setSelectedRows(o.formID,
|
12998
|
-
var
|
12999
|
-
return (
|
13000
|
-
}).filter((
|
13004
|
+
function X(L) {
|
13005
|
+
u.store.setSelectedRows(o.formID, L.map((G) => {
|
13006
|
+
var Y;
|
13007
|
+
return (Y = H.value) == null ? void 0 : Y.find((R) => R[u.id.value] === G);
|
13008
|
+
}).filter((G) => !!G));
|
13001
13009
|
}
|
13002
|
-
function
|
13003
|
-
var
|
13010
|
+
function q(L) {
|
13011
|
+
var G, Y;
|
13004
13012
|
switch (u.isMultiSelect.value) {
|
13005
13013
|
case !0:
|
13006
13014
|
{
|
13007
|
-
const
|
13008
|
-
|
13015
|
+
const R = L[u.id.value];
|
13016
|
+
V.value.includes(R) ? V.value = without$1(V.value, R) : V.value = [...(G = V.value) != null ? G : [], R];
|
13009
13017
|
}
|
13010
13018
|
break;
|
13011
13019
|
case !1:
|
13012
13020
|
{
|
13013
|
-
const
|
13014
|
-
(
|
13021
|
+
const R = L[u.id.value];
|
13022
|
+
(Y = V.value) != null && Y.includes(R) ? V.value = [] : V.value = [R];
|
13015
13023
|
}
|
13016
13024
|
break;
|
13017
13025
|
}
|
13018
|
-
u.store.setSelectedRows(o.formID,
|
13019
|
-
var
|
13020
|
-
return (
|
13021
|
-
}).filter((
|
13026
|
+
u.store.setSelectedRows(o.formID, V.value.map((R) => {
|
13027
|
+
var x;
|
13028
|
+
return (x = H.value) == null ? void 0 : x.find((z) => z[u.id.value] === R);
|
13029
|
+
}).filter((R) => !!R));
|
13022
13030
|
}
|
13023
|
-
function
|
13024
|
-
|
13031
|
+
function Z(L, G) {
|
13032
|
+
G.width = L, o.store.setVarGridDetailWidth(o.formID, G.dataIndex, L);
|
13025
13033
|
}
|
13026
|
-
async function
|
13027
|
-
var
|
13028
|
-
switch (
|
13034
|
+
async function ee(L, G, Y, R) {
|
13035
|
+
var x;
|
13036
|
+
switch (R.action) {
|
13029
13037
|
case "sort":
|
13030
13038
|
{
|
13031
13039
|
await nextTick();
|
13032
|
-
let
|
13033
|
-
|
13040
|
+
let z = Y;
|
13041
|
+
z.order ? (D.column = (x = z.field) != null ? x : void 0, D.order = z.order === "ascend" ? "asc" : z.order === "descend" ? "desc" : void 0) : (D.column = void 0, D.order = void 0), W(!0);
|
13034
13042
|
}
|
13035
13043
|
break;
|
13036
13044
|
}
|
13037
13045
|
}
|
13038
|
-
function
|
13039
|
-
var
|
13040
|
-
const
|
13041
|
-
switch ((
|
13046
|
+
function se(L, G) {
|
13047
|
+
var R;
|
13048
|
+
const Y = G[u.id.value];
|
13049
|
+
switch ((R = o.varGridConfig.value) == null ? void 0 : R.expand_accordion_flg) {
|
13042
13050
|
case 0:
|
13043
|
-
|
13051
|
+
L ? v.value = uniq([...v.value, Y]) : v.value = without$1(v.value, Y);
|
13044
13052
|
break;
|
13045
13053
|
default:
|
13046
|
-
|
13054
|
+
L ? v.value = [Y] : v.value = [];
|
13047
13055
|
break;
|
13048
13056
|
}
|
13049
13057
|
}
|
13050
|
-
function oe(
|
13051
|
-
|
13058
|
+
function oe(L, G) {
|
13059
|
+
G !== O.pageSize ? (O.pageIndex = 1, O.pageSize = G) : O.pageIndex = L, W();
|
13052
13060
|
}
|
13053
|
-
function
|
13054
|
-
u.store.setSelectedRows(o.formID, [
|
13055
|
-
var
|
13056
|
-
return (
|
13057
|
-
}).filter((
|
13061
|
+
function ge(L) {
|
13062
|
+
u.store.setSelectedRows(o.formID, [L].map((G) => {
|
13063
|
+
var Y;
|
13064
|
+
return (Y = H.value) == null ? void 0 : Y.find((R) => R[u.id.value] === G[u.id.value]);
|
13065
|
+
}).filter((G) => !!G)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
13058
13066
|
}
|
13059
|
-
function
|
13060
|
-
title:
|
13061
|
-
column:
|
13067
|
+
function ce({
|
13068
|
+
title: L,
|
13069
|
+
column: G
|
13062
13070
|
}) {
|
13063
|
-
switch (
|
13071
|
+
switch (G.dataIndex) {
|
13064
13072
|
case "index":
|
13065
13073
|
return createVNode(KgTableSetting, {
|
13066
13074
|
kgDisabled: k.value
|
13067
13075
|
}, null);
|
13068
13076
|
default:
|
13069
13077
|
return createVNode("pre", {
|
13070
|
-
title:
|
13071
|
-
}, [
|
13078
|
+
title: L
|
13079
|
+
}, [L]);
|
13072
13080
|
}
|
13073
13081
|
}
|
13074
|
-
function
|
13075
|
-
var
|
13076
|
-
return (
|
13082
|
+
function ne() {
|
13083
|
+
var L;
|
13084
|
+
return (L = n == null ? void 0 : n.KgTable) != null && L["summary.bodyCell"] ? createVNode(TableSummary, {
|
13077
13085
|
fixed: "bottom"
|
13078
13086
|
}, {
|
13079
13087
|
default: () => [createVNode(TableSummary.Row, null, {
|
13080
|
-
default: () => [
|
13088
|
+
default: () => [I.value && createVNode(TableSummary.Cell, {
|
13081
13089
|
index: 0
|
13082
|
-
}, null),
|
13083
|
-
index:
|
13084
|
-
}, null), y.value.map((
|
13085
|
-
const
|
13086
|
-
let
|
13087
|
-
return
|
13088
|
-
index:
|
13090
|
+
}, null), w.value && createVNode(TableSummary.Cell, {
|
13091
|
+
index: I.value ? 1 : 0
|
13092
|
+
}, null), y.value.map((G, Y) => {
|
13093
|
+
const R = o.store.getVarGridDetail(o.formID, G.dataIndex);
|
13094
|
+
let x = Y;
|
13095
|
+
return I.value && w.value ? x += 2 : (I.value || w.value) && (x += 1), createVNode(TableSummary.Cell, {
|
13096
|
+
index: x
|
13089
13097
|
}, {
|
13090
13098
|
default: () => {
|
13091
|
-
var
|
13092
|
-
return [(
|
13093
|
-
column:
|
13094
|
-
index:
|
13095
|
-
varGridDetail:
|
13099
|
+
var z, J;
|
13100
|
+
return [(J = (z = n == null ? void 0 : n.KgTable) == null ? void 0 : z["summary.bodyCell"]) == null ? void 0 : J.call(z, {
|
13101
|
+
column: G,
|
13102
|
+
index: x,
|
13103
|
+
varGridDetail: R
|
13096
13104
|
})];
|
13097
13105
|
}
|
13098
13106
|
});
|
@@ -13100,51 +13108,51 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13100
13108
|
})]
|
13101
13109
|
}) : null;
|
13102
13110
|
}
|
13103
|
-
function
|
13104
|
-
column:
|
13105
|
-
index:
|
13106
|
-
record:
|
13107
|
-
text:
|
13108
|
-
value:
|
13111
|
+
function le({
|
13112
|
+
column: L,
|
13113
|
+
index: G,
|
13114
|
+
record: Y,
|
13115
|
+
text: R,
|
13116
|
+
value: x
|
13109
13117
|
}) {
|
13110
|
-
var
|
13111
|
-
let
|
13112
|
-
|
13113
|
-
index:
|
13114
|
-
record:
|
13115
|
-
column:
|
13116
|
-
text:
|
13117
|
-
value:
|
13118
|
-
renderIndex:
|
13119
|
-
}) :
|
13120
|
-
const
|
13121
|
-
kgRow:
|
13122
|
-
kgValue:
|
13123
|
-
kgVarName:
|
13124
|
-
onKgUpdateLinkClick: () =>
|
13118
|
+
var Q;
|
13119
|
+
let z = "";
|
13120
|
+
L.customRender ? z = L.customRender({
|
13121
|
+
index: G,
|
13122
|
+
record: Y,
|
13123
|
+
column: L,
|
13124
|
+
text: R,
|
13125
|
+
value: x,
|
13126
|
+
renderIndex: G
|
13127
|
+
}) : z = x;
|
13128
|
+
const J = createVNode(KgTableCell, {
|
13129
|
+
kgRow: Y,
|
13130
|
+
kgValue: z,
|
13131
|
+
kgVarName: L.dataIndex,
|
13132
|
+
onKgUpdateLinkClick: () => ge(Y)
|
13125
13133
|
}, null);
|
13126
|
-
if ((
|
13127
|
-
const
|
13134
|
+
if ((Q = n == null ? void 0 : n.KgTable) != null && Q.bodyCell) {
|
13135
|
+
const te = L.dataIndex ? o.store.getVarGridDetail(o.formID, L.dataIndex) : null;
|
13128
13136
|
return n.KgTable.bodyCell({
|
13129
|
-
column:
|
13130
|
-
index:
|
13131
|
-
record:
|
13132
|
-
text:
|
13133
|
-
value:
|
13134
|
-
row:
|
13135
|
-
varGridDetail:
|
13136
|
-
defaultRender:
|
13137
|
+
column: L,
|
13138
|
+
index: G,
|
13139
|
+
record: Y,
|
13140
|
+
text: R,
|
13141
|
+
value: x,
|
13142
|
+
row: Y,
|
13143
|
+
varGridDetail: te,
|
13144
|
+
defaultRender: J
|
13137
13145
|
});
|
13138
13146
|
} else
|
13139
|
-
return
|
13147
|
+
return J;
|
13140
13148
|
}
|
13141
|
-
function
|
13149
|
+
function de() {
|
13142
13150
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? i.t("kg.KgTable.emptyText") : i.t("kg.emptyText");
|
13143
13151
|
}
|
13144
13152
|
return () => {
|
13145
|
-
var
|
13153
|
+
var L, G, Y;
|
13146
13154
|
return createVNode("div", {
|
13147
|
-
class:
|
13155
|
+
class: N.value,
|
13148
13156
|
"kg-frm_id": o.formID,
|
13149
13157
|
ref: b
|
13150
13158
|
}, [createVNode(Table, {
|
@@ -13157,56 +13165,56 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13157
13165
|
pagination: !1,
|
13158
13166
|
showSorterTooltip: !1,
|
13159
13167
|
columns: y.value,
|
13160
|
-
dataSource:
|
13168
|
+
dataSource: H.value,
|
13161
13169
|
loading: _.value,
|
13162
13170
|
rowKey: u.id.value,
|
13163
|
-
rowClassName: (
|
13171
|
+
rowClassName: (G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgRowClassName,
|
13164
13172
|
expandColumnWidth: 28,
|
13165
13173
|
expandedRowKeys: v.value,
|
13166
|
-
rowSelection:
|
13167
|
-
customRow: (
|
13168
|
-
onClick: (
|
13174
|
+
rowSelection: M.value,
|
13175
|
+
customRow: (R) => ({
|
13176
|
+
onClick: (x) => B(x, R)
|
13169
13177
|
}),
|
13170
|
-
onResizeColumn:
|
13171
|
-
onChange:
|
13172
|
-
onExpand:
|
13178
|
+
onResizeColumn: Z,
|
13179
|
+
onChange: ee,
|
13180
|
+
onExpand: se
|
13173
13181
|
}, {
|
13174
|
-
headerCell:
|
13175
|
-
bodyCell:
|
13176
|
-
emptyText:
|
13177
|
-
expandedRowRender: (
|
13178
|
-
summary:
|
13182
|
+
headerCell: ce,
|
13183
|
+
bodyCell: le,
|
13184
|
+
emptyText: de,
|
13185
|
+
expandedRowRender: (Y = n == null ? void 0 : n.KgTable) == null ? void 0 : Y.expandedRowRender,
|
13186
|
+
summary: ne
|
13179
13187
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
13180
|
-
class:
|
13188
|
+
class: P.value
|
13181
13189
|
}, [createVNode("div", {
|
13182
13190
|
class: "left"
|
13183
13191
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13184
|
-
kgShowClearCheck:
|
13185
|
-
kgShowClearTable:
|
13186
|
-
kgShowLocate:
|
13187
|
-
kgTotal:
|
13188
|
-
kgDisabled:
|
13192
|
+
kgShowClearCheck: V.value.length > 0,
|
13193
|
+
kgShowClearTable: O.total > 0,
|
13194
|
+
kgShowLocate: V.value.length === 1,
|
13195
|
+
kgTotal: V.value.length,
|
13196
|
+
kgDisabled: T.value
|
13189
13197
|
}, null)]), createVNode("div", {
|
13190
13198
|
class: "right"
|
13191
13199
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
13192
13200
|
size: "default",
|
13193
|
-
current:
|
13194
|
-
pageSize:
|
13195
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
13196
|
-
total:
|
13201
|
+
current: O.pageIndex,
|
13202
|
+
pageSize: O.pageSize,
|
13203
|
+
pageSizeOptions: u.pageSizeOptions.value.map((R) => String(R)),
|
13204
|
+
total: O.total,
|
13197
13205
|
showSizeChanger: !0,
|
13198
13206
|
showQuickJumper: !1,
|
13199
13207
|
hideOnSinglePage: !1,
|
13200
|
-
disabled:
|
13208
|
+
disabled: $.value,
|
13201
13209
|
locale: {
|
13202
13210
|
page: ""
|
13203
13211
|
},
|
13204
|
-
showTotal: (
|
13205
|
-
from:
|
13206
|
-
to:
|
13207
|
-
total:
|
13212
|
+
showTotal: (R, x) => i.t("kg.KgTable.totalText", {
|
13213
|
+
from: x[0],
|
13214
|
+
to: x[1],
|
13215
|
+
total: R
|
13208
13216
|
}),
|
13209
|
-
onChange: (
|
13217
|
+
onChange: (R, x) => oe(R, x)
|
13210
13218
|
}, null)])])]);
|
13211
13219
|
};
|
13212
13220
|
}
|
@@ -13426,8 +13434,8 @@ const KgButtonCreate = defineComponent({
|
|
13426
13434
|
attrs: a
|
13427
13435
|
}) {
|
13428
13436
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13429
|
-
var E, k, A, T,
|
13430
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (
|
13437
|
+
var E, k, A, T, $, I, w, M;
|
13438
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = ($ = o.selectedRows.value) == null ? void 0 : $.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13431
13439
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13432
13440
|
async function g() {
|
13433
13441
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -13626,8 +13634,8 @@ const KgButtonCreate = defineComponent({
|
|
13626
13634
|
...KgVarUtil.parseCommandParameter((E = (C = o.value) == null ? void 0 : C.cmd_prm) != null ? E : "")
|
13627
13635
|
}), _;
|
13628
13636
|
}), d = computed(() => {
|
13629
|
-
var _, b, C, E, k, A, T,
|
13630
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((C = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) === 0 || ((E = o.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p((
|
13637
|
+
var _, b, C, E, k, A, T, $;
|
13638
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || i.isRetrieving.value || ((_ = o.value) == null ? void 0 : _.dis_no_select_flg) === 1 && ((C = (b = i.selectedRows.value) == null ? void 0 : b.length) != null ? C : 0) === 0 || ((E = o.value) == null ? void 0 : E.dis_mult_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) > 1 || ((T = o.value) == null ? void 0 : T.permission_type) === 2 && !a.p(($ = o.value) == null ? void 0 : $.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13631
13639
|
}), g = ref(!1);
|
13632
13640
|
async function v(_) {
|
13633
13641
|
if (!l.value)
|
@@ -13791,7 +13799,7 @@ const KgButtonCreate = defineComponent({
|
|
13791
13799
|
}
|
13792
13800
|
let g = null;
|
13793
13801
|
const v = async () => {
|
13794
|
-
var C, E, k, A, T,
|
13802
|
+
var C, E, k, A, T, $;
|
13795
13803
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13796
13804
|
const b = s.selectedRows.value;
|
13797
13805
|
try {
|
@@ -13802,11 +13810,11 @@ const KgButtonCreate = defineComponent({
|
|
13802
13810
|
data: b != null ? b : []
|
13803
13811
|
});
|
13804
13812
|
if (((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1) {
|
13805
|
-
if (((
|
13813
|
+
if ((($ = e.kgButton) == null ? void 0 : $.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
13806
13814
|
datas: M
|
13807
13815
|
}) => {
|
13808
|
-
const N = M.value,
|
13809
|
-
return
|
13816
|
+
const N = M.value, P = intersectionWith$1(N, b != null ? b : [], (H, V) => (H == null ? void 0 : H[s.id.value]) === (V == null ? void 0 : V[s.id.value]));
|
13817
|
+
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
13810
13818
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
13811
13819
|
button: e.kgButton,
|
13812
13820
|
data: I
|
@@ -13919,8 +13927,8 @@ const KgButtonCreate = defineComponent({
|
|
13919
13927
|
}
|
13920
13928
|
});
|
13921
13929
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13922
|
-
var E, k, A, T,
|
13923
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = (
|
13930
|
+
var E, k, A, T, $, I, w, M;
|
13931
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((I = ($ = i.selectedRows.value) == null ? void 0 : $.length) != null ? I : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13924
13932
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
13925
13933
|
async function g() {
|
13926
13934
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14632,7 +14640,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14632
14640
|
row: C,
|
14633
14641
|
model: E
|
14634
14642
|
}) => {
|
14635
|
-
var A, T,
|
14643
|
+
var A, T, $;
|
14636
14644
|
const k = i.store.getSystemVarProfileDetails(i.formID);
|
14637
14645
|
switch (o.value = k ? cloneDeep(unref(toRaw(k))) : [], !0) {
|
14638
14646
|
case p:
|
@@ -14649,8 +14657,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14649
14657
|
}
|
14650
14658
|
});
|
14651
14659
|
o.value = o.value.map((M) => {
|
14652
|
-
var
|
14653
|
-
const N = (
|
14660
|
+
var P;
|
14661
|
+
const N = (P = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : P.find((H) => H.var_nam === M.var_nam);
|
14654
14662
|
return N ? {
|
14655
14663
|
...M,
|
14656
14664
|
...N,
|
@@ -14670,7 +14678,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14670
14678
|
}
|
14671
14679
|
switch (!0) {
|
14672
14680
|
case b:
|
14673
|
-
E.value.prf_var_nam = ((
|
14681
|
+
E.value.prf_var_nam = (($ = E.value.prf_var_nam) != null ? $ : "") + "_COPY";
|
14674
14682
|
break;
|
14675
14683
|
}
|
14676
14684
|
return !1;
|
@@ -14695,7 +14703,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14695
14703
|
_(!0);
|
14696
14704
|
}
|
14697
14705
|
});
|
14698
|
-
}) : Promise.resolve(!1))
|
14706
|
+
}) : Promise.resolve(!1));
|
14699
14707
|
const o = ref([]), l = ref([]), c = ref([]);
|
14700
14708
|
_useDragRow(e.hostFormID, o, c);
|
14701
14709
|
const u = ref({
|
@@ -14726,9 +14734,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14726
14734
|
onItemSelectAll: E,
|
14727
14735
|
onItemSelect: k
|
14728
14736
|
}) => {
|
14729
|
-
const A = _.sort((T,
|
14737
|
+
const A = _.sort((T, $) => {
|
14730
14738
|
var I, w;
|
14731
|
-
return ((I = T.srtseq) != null ? I : 0) - ((w =
|
14739
|
+
return ((I = T.srtseq) != null ? I : 0) - ((w = $.srtseq) != null ? w : 0);
|
14732
14740
|
});
|
14733
14741
|
return c.value = A, createVNode(Table, {
|
14734
14742
|
pagination: !1,
|
@@ -14742,10 +14750,10 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14742
14750
|
rowKey: "id",
|
14743
14751
|
dataSource: A,
|
14744
14752
|
customRow: (T) => {
|
14745
|
-
let
|
14753
|
+
let $ = {
|
14746
14754
|
onClick: (I) => y(I, T, p, b)
|
14747
14755
|
};
|
14748
|
-
return p === "right" && (
|
14756
|
+
return p === "right" && ($["kg-host-frm_id"] = i.formID, $["kg-var_nam"] = T.var_nam), $;
|
14749
14757
|
},
|
14750
14758
|
rowSelection: g({
|
14751
14759
|
disabled: C,
|
@@ -14989,21 +14997,21 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14989
14997
|
});
|
14990
14998
|
_useLayoutHeaderResizeObserver();
|
14991
14999
|
const p = _useFormModel(v, y), _ = computed(() => {
|
14992
|
-
var K,
|
14993
|
-
if (!isNil((
|
14994
|
-
return (
|
15000
|
+
var K, B, W, X;
|
15001
|
+
if (!isNil((B = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : B.kgDisabled))
|
15002
|
+
return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
|
14995
15003
|
if (!isNil(e.kgDisabled))
|
14996
15004
|
return e.kgDisabled;
|
14997
15005
|
}), b = computed(() => {
|
14998
|
-
var K,
|
14999
|
-
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((
|
15006
|
+
var K, B;
|
15007
|
+
return !!(_.value || i.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15000
15008
|
}), C = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!(_.value || i.isRetrieving.value)), k = ref({
|
15001
15009
|
visible: !1
|
15002
15010
|
}), A = computed(() => y.value.kgHeight === g.value), T = computed(() => {
|
15003
|
-
var K,
|
15004
|
-
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((
|
15005
|
-
return n.t((
|
15006
|
-
}),
|
15011
|
+
var K, B, W;
|
15012
|
+
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
|
15013
|
+
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
15014
|
+
}), $ = computed(() => {
|
15007
15015
|
var K;
|
15008
15016
|
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
15009
15017
|
case 1:
|
@@ -15029,16 +15037,16 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15029
15037
|
await s.store.emit(n.formID, "search", {
|
15030
15038
|
resetPageIndex: K
|
15031
15039
|
});
|
15032
|
-
}).catch((
|
15040
|
+
}).catch((B) => {
|
15033
15041
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
15034
|
-
e:
|
15042
|
+
e: B
|
15035
15043
|
});
|
15036
15044
|
}) : await s.store.emit(n.formID, "search", {
|
15037
15045
|
resetPageIndex: K
|
15038
15046
|
});
|
15039
15047
|
}
|
15040
15048
|
s.store.setSearchFn(n.formID, N);
|
15041
|
-
async function
|
15049
|
+
async function P() {
|
15042
15050
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15043
15051
|
await s.store.emit(n.formID, "reset", {});
|
15044
15052
|
}).catch((K) => {
|
@@ -15047,36 +15055,36 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15047
15055
|
});
|
15048
15056
|
}) : await s.store.emit(n.formID, "reset", {});
|
15049
15057
|
}
|
15050
|
-
s.store.setResetFn(n.formID,
|
15051
|
-
function
|
15058
|
+
s.store.setResetFn(n.formID, P);
|
15059
|
+
function H() {
|
15052
15060
|
return N(!0), Promise.resolve(!0);
|
15053
15061
|
}
|
15054
|
-
function
|
15062
|
+
function V() {
|
15055
15063
|
var K;
|
15056
15064
|
return createVNode("div", {
|
15057
15065
|
class: "title",
|
15058
15066
|
onClick: F
|
15059
15067
|
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
15060
15068
|
class: "kg-search-title-left",
|
15061
|
-
onClick: (
|
15062
|
-
|
15069
|
+
onClick: (B) => {
|
15070
|
+
B.stopPropagation(), B.preventDefault();
|
15063
15071
|
}
|
15064
15072
|
}, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15065
15073
|
}
|
15066
|
-
function
|
15067
|
-
var K,
|
15068
|
-
return ((
|
15069
|
-
value: (
|
15074
|
+
function O() {
|
15075
|
+
var K, B, W, X;
|
15076
|
+
return ((W = (B = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : B.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15077
|
+
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
15070
15078
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
15071
15079
|
disabled: C.value,
|
15072
15080
|
class: "kg-search-profile-master-select"
|
15073
15081
|
}, {
|
15074
15082
|
default: () => {
|
15075
15083
|
var q, Z;
|
15076
|
-
return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((
|
15077
|
-
value:
|
15084
|
+
return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((ee) => createVNode(Select.Option, {
|
15085
|
+
value: ee.id
|
15078
15086
|
}, {
|
15079
|
-
default: () => [n.t(
|
15087
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
15080
15088
|
}));
|
15081
15089
|
},
|
15082
15090
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -15096,25 +15104,25 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15096
15104
|
hostFormID: n.formID
|
15097
15105
|
}, null)]);
|
15098
15106
|
}
|
15099
|
-
function
|
15100
|
-
var K,
|
15101
|
-
return createVNode(Fragment, null, [
|
15107
|
+
function D() {
|
15108
|
+
var K, B, W, X, q;
|
15109
|
+
return createVNode(Fragment, null, [O(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
15102
15110
|
type: "primary",
|
15103
15111
|
ghost: !b.value,
|
15104
15112
|
disabled: b.value,
|
15105
|
-
onClick:
|
15113
|
+
onClick: P,
|
15106
15114
|
class: "kg-search-btn-reset"
|
15107
15115
|
}, {
|
15108
15116
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
15109
15117
|
}), createVNode(KgButton.Item, {
|
15110
15118
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
15111
|
-
kgVarName: (
|
15112
|
-
kgIcon: (
|
15119
|
+
kgVarName: (W = n.varButtonSearch.value) == null ? void 0 : W.var_nam,
|
15120
|
+
kgIcon: (X = n.varButtonSearch.value) == null ? void 0 : X.icon,
|
15113
15121
|
kgText: T.value,
|
15114
15122
|
kgColor: (q = n.varButtonSearch.value) == null ? void 0 : q.color,
|
15115
|
-
kgPrimary:
|
15123
|
+
kgPrimary: $.value,
|
15116
15124
|
kgLoading: E.value,
|
15117
|
-
onKgClick:
|
15125
|
+
onKgClick: H
|
15118
15126
|
}, null)]);
|
15119
15127
|
}
|
15120
15128
|
function U() {
|
@@ -15131,10 +15139,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15131
15139
|
gutter: 6
|
15132
15140
|
}, {
|
15133
15141
|
default: () => {
|
15134
|
-
var
|
15135
|
-
return [(
|
15136
|
-
key:
|
15137
|
-
kgVarName:
|
15142
|
+
var B;
|
15143
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((W) => createVNode(KgForm.Item, {
|
15144
|
+
key: W.var_nam,
|
15145
|
+
kgVarName: W.var_nam,
|
15138
15146
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15139
15147
|
onKgSubmit: () => N(!0)
|
15140
15148
|
}, null))];
|
@@ -15169,9 +15177,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15169
15177
|
}, [createVNode(Spin, {
|
15170
15178
|
spinning: I.value
|
15171
15179
|
}, {
|
15172
|
-
default: () => [
|
15180
|
+
default: () => [V(), createVNode("div", {
|
15173
15181
|
class: "ant-collapse-extra"
|
15174
|
-
}, [
|
15182
|
+
}, [D()])]
|
15175
15183
|
})])]
|
15176
15184
|
}), createVNode("div", {
|
15177
15185
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -15648,112 +15656,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15648
15656
|
columnWidth: 32,
|
15649
15657
|
hideSelectAll: !0,
|
15650
15658
|
selectedRowKeys: d,
|
15651
|
-
onSelect: (
|
15659
|
+
onSelect: (P) => $(P)
|
15652
15660
|
}), v = ref({
|
15653
15661
|
visible: !1
|
15654
15662
|
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(i))), p = computed(() => {
|
15655
|
-
var
|
15656
|
-
return !!u.value || ((
|
15663
|
+
var P;
|
15664
|
+
return !!u.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
15657
15665
|
}), _ = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
15658
|
-
watch(() => a.getSelectedVar, (
|
15659
|
-
|
15666
|
+
watch(() => a.getSelectedVar, (P) => {
|
15667
|
+
P ? C() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
15660
15668
|
}, {
|
15661
15669
|
immediate: !0
|
15662
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
15663
|
-
var
|
15664
|
-
l.value.var_text = (
|
15670
|
+
}), watch(() => a.getSelectedVarCatalog, async (P) => {
|
15671
|
+
var H, V;
|
15672
|
+
l.value.var_text = (H = P == null ? void 0 : P.var_text) != null ? H : "", (V = o.value) == null || V.clearValidate();
|
15665
15673
|
});
|
15666
|
-
async function C(
|
15667
|
-
var
|
15674
|
+
async function C(P = !1) {
|
15675
|
+
var H, V, O;
|
15668
15676
|
n.value = !0;
|
15669
15677
|
try {
|
15670
15678
|
const {
|
15671
|
-
records:
|
15679
|
+
records: D
|
15672
15680
|
} = await List({
|
15673
15681
|
params: {
|
15674
15682
|
pageNo: 1,
|
15675
15683
|
pageSize: 999,
|
15676
15684
|
frm_id: e == null ? void 0 : e.value,
|
15677
|
-
var_nam: (
|
15685
|
+
var_nam: (H = a.getSelectedVar) == null ? void 0 : H.var_nam,
|
15678
15686
|
column: "frm_id,locale_id,cust_lvl",
|
15679
15687
|
order: "asc"
|
15680
15688
|
}
|
15681
15689
|
});
|
15682
|
-
if (u.value = null, c.value =
|
15690
|
+
if (u.value = null, c.value = D != null ? D : [], P) {
|
15683
15691
|
const U = c.value.find((F) => {
|
15684
15692
|
var K;
|
15685
15693
|
return F.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
15686
15694
|
});
|
15687
15695
|
a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
|
15688
15696
|
} else
|
15689
|
-
a.setSelectedVarCatalog((
|
15690
|
-
} catch (
|
15691
|
-
KgLogger.debug(
|
15697
|
+
a.setSelectedVarCatalog((V = c.value[0]) != null ? V : null), d.value = (O = c.value[0]) != null && O.id ? [c.value[0].id] : [];
|
15698
|
+
} catch (D) {
|
15699
|
+
KgLogger.debug(D == null ? void 0 : D.message);
|
15692
15700
|
} finally {
|
15693
15701
|
n.value = !1;
|
15694
15702
|
}
|
15695
15703
|
}
|
15696
15704
|
async function E() {
|
15697
|
-
var
|
15705
|
+
var P, H, V;
|
15698
15706
|
try {
|
15699
|
-
s.value = !0, await ((
|
15700
|
-
const
|
15701
|
-
...(
|
15702
|
-
var_text: (
|
15707
|
+
s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
|
15708
|
+
const O = new VarCatalog({
|
15709
|
+
...(H = a.getSelectedVarCatalog) != null ? H : {},
|
15710
|
+
var_text: (V = l.value) == null ? void 0 : V.var_text
|
15703
15711
|
});
|
15704
|
-
|
15705
|
-
data:
|
15712
|
+
O.id ? O.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (O.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(O, "id"), await Add({
|
15713
|
+
data: O
|
15706
15714
|
}, {
|
15707
15715
|
successMessageMode: "none"
|
15708
15716
|
}), message.success({
|
15709
15717
|
content: t.t("kg.KgVarConfig.createSuccess")
|
15710
15718
|
}), await C()) : (await Edit({
|
15711
|
-
data:
|
15719
|
+
data: O
|
15712
15720
|
}, {
|
15713
15721
|
successMessageMode: "none"
|
15714
15722
|
}), message.success({
|
15715
15723
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
15716
15724
|
}), await C(!0)) : (await Add({
|
15717
|
-
data:
|
15725
|
+
data: O
|
15718
15726
|
}, {
|
15719
15727
|
successMessageMode: "none"
|
15720
15728
|
}), message.success({
|
15721
15729
|
content: t.t("kg.KgVarConfig.createSuccess")
|
15722
15730
|
}), await C()), r.retrieve(e == null ? void 0 : e.value);
|
15723
|
-
} catch (
|
15724
|
-
KgUtil.throwIfNotFormError(
|
15731
|
+
} catch (O) {
|
15732
|
+
KgUtil.throwIfNotFormError(O);
|
15725
15733
|
} finally {
|
15726
15734
|
s.value = !1;
|
15727
15735
|
}
|
15728
15736
|
}
|
15729
15737
|
function k({
|
15730
|
-
isAllForm:
|
15731
|
-
isAllLanguage:
|
15738
|
+
isAllForm: P,
|
15739
|
+
isAllLanguage: H
|
15732
15740
|
}) {
|
15733
|
-
var
|
15741
|
+
var V, O, D;
|
15734
15742
|
u.value = new VarCatalog({
|
15735
15743
|
id: "",
|
15736
15744
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
15737
|
-
grp_nam: (
|
15738
|
-
var_nam: (
|
15739
|
-
frm_id:
|
15740
|
-
locale_id:
|
15745
|
+
grp_nam: (V = a.getSelectedVar) == null ? void 0 : V.grp_nam,
|
15746
|
+
var_nam: (O = a.getSelectedVar) == null ? void 0 : O.var_nam,
|
15747
|
+
frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
15748
|
+
locale_id: H ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
|
15741
15749
|
var_text: ""
|
15742
15750
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
15743
15751
|
}
|
15744
15752
|
function A() {
|
15745
|
-
var
|
15753
|
+
var H;
|
15746
15754
|
c.value = without$1(c.value, u.value), u.value = null;
|
15747
|
-
const
|
15748
|
-
a.setSelectedVarCatalog(
|
15755
|
+
const P = (H = c.value[0]) != null ? H : null;
|
15756
|
+
a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
|
15749
15757
|
}
|
15750
15758
|
function T() {
|
15751
15759
|
KgUtil.confirm({
|
15752
15760
|
onOk: async () => {
|
15753
|
-
var
|
15761
|
+
var P;
|
15754
15762
|
await Delete({
|
15755
15763
|
params: {
|
15756
|
-
id: (
|
15764
|
+
id: (P = a.getSelectedVarCatalog) == null ? void 0 : P.id
|
15757
15765
|
}
|
15758
15766
|
}, {
|
15759
15767
|
successMessageMode: "none",
|
@@ -15764,14 +15772,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15764
15772
|
}
|
15765
15773
|
});
|
15766
15774
|
}
|
15767
|
-
function
|
15768
|
-
var
|
15769
|
-
((
|
15775
|
+
function $(P) {
|
15776
|
+
var H;
|
15777
|
+
((H = a.getSelectedVarCatalog) == null ? void 0 : H.id) !== P.id && (unref(u) ? KgUtil.confirm({
|
15770
15778
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
15771
15779
|
onOk: () => {
|
15772
|
-
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(
|
15780
|
+
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
|
15773
15781
|
}
|
15774
|
-
}) : (a.setSelectedVarCatalog(unref(
|
15782
|
+
}) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
|
15775
15783
|
}
|
15776
15784
|
function I() {
|
15777
15785
|
v.value.visible = !0;
|
@@ -15796,7 +15804,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15796
15804
|
})]);
|
15797
15805
|
}
|
15798
15806
|
function M() {
|
15799
|
-
let
|
15807
|
+
let P, H;
|
15800
15808
|
return createVNode("div", {
|
15801
15809
|
class: "form"
|
15802
15810
|
}, [createVNode(Form, {
|
@@ -15813,7 +15821,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15813
15821
|
}, {
|
15814
15822
|
default: () => [createVNode(Textarea, {
|
15815
15823
|
value: l.value.var_text,
|
15816
|
-
"onUpdate:value": (
|
15824
|
+
"onUpdate:value": (V) => l.value.var_text = V,
|
15817
15825
|
disabled: !a.getSelectedVarCatalog
|
15818
15826
|
}, null), createVNode("button", {
|
15819
15827
|
hidden: !0
|
@@ -15824,21 +15832,21 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15824
15832
|
}, [createVNode(Button, {
|
15825
15833
|
disabled: _.value,
|
15826
15834
|
onClick: A
|
15827
|
-
}, _isSlot(
|
15828
|
-
default: () => [
|
15835
|
+
}, _isSlot(P = t.t("common.cancelText")) ? P : {
|
15836
|
+
default: () => [P]
|
15829
15837
|
}), createVNode(Button, {
|
15830
15838
|
loading: s.value,
|
15831
15839
|
disabled: b.value,
|
15832
15840
|
onClick: E,
|
15833
15841
|
type: "primary"
|
15834
|
-
}, _isSlot(
|
15835
|
-
default: () => [
|
15842
|
+
}, _isSlot(H = t.t("common.save")) ? H : {
|
15843
|
+
default: () => [H]
|
15836
15844
|
})])]);
|
15837
15845
|
}
|
15838
|
-
function N(
|
15839
|
-
var
|
15840
|
-
let
|
15841
|
-
return
|
15846
|
+
function N(P) {
|
15847
|
+
var V;
|
15848
|
+
let H = "";
|
15849
|
+
return P.id || (H += " ant-table-row-create"), P.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (H += " ant-table-row-selected "), H;
|
15842
15850
|
}
|
15843
15851
|
return () => createVNode("div", {
|
15844
15852
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -15856,12 +15864,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15856
15864
|
loading: n.value,
|
15857
15865
|
rowClassName: N,
|
15858
15866
|
rowSelection: g.value,
|
15859
|
-
customRow: (
|
15860
|
-
onClick: () =>
|
15867
|
+
customRow: (P) => ({
|
15868
|
+
onClick: () => $(P)
|
15861
15869
|
})
|
15862
15870
|
}, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
|
15863
15871
|
visible: v.value.visible,
|
15864
|
-
"onUpdate:visible": (
|
15872
|
+
"onUpdate:visible": (P) => v.value.visible = P,
|
15865
15873
|
onKgOk: k
|
15866
15874
|
}, null)]);
|
15867
15875
|
}
|
@@ -16185,9 +16193,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16185
16193
|
customRender: ({
|
16186
16194
|
record: k
|
16187
16195
|
}) => {
|
16188
|
-
var T,
|
16196
|
+
var T, $, I;
|
16189
16197
|
const A = k;
|
16190
|
-
return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), (
|
16198
|
+
return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
|
16191
16199
|
class: "address"
|
16192
16200
|
}, [(I = A.adrId) != null ? I : " "])]);
|
16193
16201
|
}
|
@@ -16195,8 +16203,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16195
16203
|
var A;
|
16196
16204
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
16197
16205
|
return u.value.filter((T) => {
|
16198
|
-
var
|
16199
|
-
return ((I = (
|
16206
|
+
var $, I, w, M, N, P;
|
16207
|
+
return ((I = ($ = T.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : I.includes(k)) || ((M = (w = T.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : M.includes(k)) || ((P = (N = T.adrId) == null ? void 0 : N.toUpperCase()) == null ? void 0 : P.includes(k));
|
16200
16208
|
});
|
16201
16209
|
}), g = computed(() => {
|
16202
16210
|
var k, A;
|