@kengic/vue 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/kengic-vue.js +1052 -990
- package/dist/src/src/components/KgVar/index.store.d.ts +20 -4
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var _ = (e, t, r) => (
|
1
|
+
var we = Object.defineProperty;
|
2
|
+
var Oe = (e, t, r) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var _ = (e, t, r) => (Oe(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, Fragment, isVNode, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, createTextVNode, provide, onMounted, mergeProps, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Modal, Select, Spin, Tooltip, 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 = "";
|
@@ -3359,9 +3359,9 @@ function sendQuery(e, t, r, a) {
|
|
3359
3359
|
k.status === "pending" && (k.status = "aborted");
|
3360
3360
|
}), m = [];
|
3361
3361
|
}
|
3362
|
-
function T(k, V,
|
3362
|
+
function T(k, V, O) {
|
3363
3363
|
const I = V !== "success";
|
3364
|
-
switch (m = m.filter((
|
3364
|
+
switch (m = m.filter((M) => M !== k), i) {
|
3365
3365
|
case "pending":
|
3366
3366
|
break;
|
3367
3367
|
case "failed":
|
@@ -3372,22 +3372,22 @@ function sendQuery(e, t, r, a) {
|
|
3372
3372
|
return;
|
3373
3373
|
}
|
3374
3374
|
if (V === "abort") {
|
3375
|
-
u =
|
3375
|
+
u = O, E();
|
3376
3376
|
return;
|
3377
3377
|
}
|
3378
3378
|
if (I) {
|
3379
|
-
u =
|
3379
|
+
u = O, m.length || (l.length ? A() : E());
|
3380
3380
|
return;
|
3381
3381
|
}
|
3382
3382
|
if (y(), C(), !e.random) {
|
3383
|
-
const
|
3384
|
-
|
3383
|
+
const M = e.resources.indexOf(k.resource);
|
3384
|
+
M !== -1 && M !== e.index && (e.index = M);
|
3385
3385
|
}
|
3386
|
-
i = "completed", v.forEach((
|
3387
|
-
|
3386
|
+
i = "completed", v.forEach((M) => {
|
3387
|
+
M(O);
|
3388
3388
|
});
|
3389
3389
|
}
|
3390
|
-
function
|
3390
|
+
function A() {
|
3391
3391
|
if (i !== "pending")
|
3392
3392
|
return;
|
3393
3393
|
y();
|
@@ -3405,13 +3405,13 @@ function sendQuery(e, t, r, a) {
|
|
3405
3405
|
const V = {
|
3406
3406
|
status: "pending",
|
3407
3407
|
resource: k,
|
3408
|
-
callback: (
|
3409
|
-
T(V,
|
3408
|
+
callback: (O, I) => {
|
3409
|
+
T(V, O, I);
|
3410
3410
|
}
|
3411
3411
|
};
|
3412
|
-
m.push(V), c++, d = setTimeout(
|
3412
|
+
m.push(V), c++, d = setTimeout(A, e.rotate), r(k, t, V.callback);
|
3413
3413
|
}
|
3414
|
-
return setTimeout(
|
3414
|
+
return setTimeout(A), b;
|
3415
3415
|
}
|
3416
3416
|
function initRedundancy(e) {
|
3417
3417
|
const t = {
|
@@ -3929,7 +3929,7 @@ const emptyIcon = {
|
|
3929
3929
|
...t.data
|
3930
3930
|
}, r);
|
3931
3931
|
}
|
3932
|
-
}), name = "@kengic/vue", version = "0.10.
|
3932
|
+
}), name = "@kengic/vue", version = "0.10.3";
|
3933
3933
|
class KgDomUtil {
|
3934
3934
|
static isNotClickable(t, r = []) {
|
3935
3935
|
return !t || [...r, "kg-not-clickable"].some((a) => t.classList.contains(a)) ? !0 : t.parentElement && t.parentElement.tagName !== "BODY" ? KgDomUtil.isNotClickable(t.parentElement) : !1;
|
@@ -3941,230 +3941,230 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3941
3941
|
e.exports = a();
|
3942
3942
|
})(commonjsGlobal, function() {
|
3943
3943
|
var r = 1e3, a = 6e4, n = 36e5, s = "millisecond", l = "second", o = "minute", i = "hour", c = "day", u = "week", d = "month", m = "quarter", v = "year", y = "date", p = "Invalid Date", g = /^(\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, E = { 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(D) {
|
3944
|
-
var
|
3945
|
-
return "[" + D + (
|
3946
|
-
} }, C = function(D,
|
3947
|
-
var
|
3948
|
-
return !
|
3944
|
+
var w = ["th", "st", "nd", "rd"], R = D % 100;
|
3945
|
+
return "[" + D + (w[(R - 20) % 10] || w[R] || w[0]) + "]";
|
3946
|
+
} }, C = function(D, w, R) {
|
3947
|
+
var F = String(D);
|
3948
|
+
return !F || F.length >= w ? D : "" + Array(w + 1 - F.length).join(R) + D;
|
3949
3949
|
}, T = { s: C, z: function(D) {
|
3950
|
-
var
|
3951
|
-
return (
|
3952
|
-
}, m: function D(
|
3953
|
-
if (
|
3954
|
-
return -D(R,
|
3955
|
-
var
|
3956
|
-
return +(-(
|
3950
|
+
var w = -D.utcOffset(), R = Math.abs(w), F = Math.floor(R / 60), L = R % 60;
|
3951
|
+
return (w <= 0 ? "+" : "-") + C(F, 2, "0") + ":" + C(L, 2, "0");
|
3952
|
+
}, m: function D(w, R) {
|
3953
|
+
if (w.date() < R.date())
|
3954
|
+
return -D(R, w);
|
3955
|
+
var F = 12 * (R.year() - w.year()) + (R.month() - w.month()), L = w.clone().add(F, d), K = R - L < 0, x = w.clone().add(F + (K ? -1 : 1), d);
|
3956
|
+
return +(-(F + (R - L) / (K ? L - x : x - L)) || 0);
|
3957
3957
|
}, a: function(D) {
|
3958
3958
|
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
3959
3959
|
}, p: function(D) {
|
3960
3960
|
return { M: d, y: v, w: u, d: c, D: y, h: i, m: o, s: l, ms: s, Q: m }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
3961
3961
|
}, u: function(D) {
|
3962
3962
|
return D === void 0;
|
3963
|
-
} },
|
3964
|
-
k[
|
3965
|
-
var V = "$isDayjsObject",
|
3966
|
-
return D instanceof
|
3967
|
-
}, I = function D(
|
3968
|
-
var
|
3969
|
-
if (!
|
3970
|
-
return
|
3971
|
-
if (typeof
|
3972
|
-
var K =
|
3973
|
-
k[K] && (
|
3974
|
-
var x =
|
3975
|
-
if (!
|
3963
|
+
} }, A = "en", k = {};
|
3964
|
+
k[A] = E;
|
3965
|
+
var V = "$isDayjsObject", O = function(D) {
|
3966
|
+
return D instanceof P || !(!D || !D[V]);
|
3967
|
+
}, I = function D(w, R, F) {
|
3968
|
+
var L;
|
3969
|
+
if (!w)
|
3970
|
+
return A;
|
3971
|
+
if (typeof w == "string") {
|
3972
|
+
var K = w.toLowerCase();
|
3973
|
+
k[K] && (L = K), R && (k[K] = R, L = K);
|
3974
|
+
var x = w.split("-");
|
3975
|
+
if (!L && x.length > 1)
|
3976
3976
|
return D(x[0]);
|
3977
3977
|
} else {
|
3978
|
-
var
|
3979
|
-
k[
|
3978
|
+
var Y = w.name;
|
3979
|
+
k[Y] = w, L = Y;
|
3980
3980
|
}
|
3981
|
-
return !
|
3982
|
-
},
|
3983
|
-
if (
|
3981
|
+
return !F && L && (A = L), L || !F && A;
|
3982
|
+
}, M = function(D, w) {
|
3983
|
+
if (O(D))
|
3984
3984
|
return D.clone();
|
3985
|
-
var R = typeof
|
3986
|
-
return R.date = D, R.args = arguments, new
|
3987
|
-
},
|
3988
|
-
|
3989
|
-
return
|
3985
|
+
var R = typeof w == "object" ? w : {};
|
3986
|
+
return R.date = D, R.args = arguments, new P(R);
|
3987
|
+
}, $ = T;
|
3988
|
+
$.l = I, $.i = O, $.w = function(D, w) {
|
3989
|
+
return M(D, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
|
3990
3990
|
};
|
3991
|
-
var
|
3991
|
+
var P = function() {
|
3992
3992
|
function D(R) {
|
3993
3993
|
this.$L = I(R.locale, null, !0), this.parse(R), this.$x = this.$x || R.x || {}, this[V] = !0;
|
3994
3994
|
}
|
3995
|
-
var
|
3996
|
-
return
|
3997
|
-
this.$d = function(
|
3998
|
-
var
|
3999
|
-
if (
|
3995
|
+
var w = D.prototype;
|
3996
|
+
return w.parse = function(R) {
|
3997
|
+
this.$d = function(F) {
|
3998
|
+
var L = F.date, K = F.utc;
|
3999
|
+
if (L === null)
|
4000
4000
|
return new Date(NaN);
|
4001
|
-
if (
|
4001
|
+
if ($.u(L))
|
4002
4002
|
return new Date();
|
4003
|
-
if (
|
4004
|
-
return new Date(
|
4005
|
-
if (typeof
|
4006
|
-
var x =
|
4003
|
+
if (L instanceof Date)
|
4004
|
+
return new Date(L);
|
4005
|
+
if (typeof L == "string" && !/Z$/i.test(L)) {
|
4006
|
+
var x = L.match(g);
|
4007
4007
|
if (x) {
|
4008
|
-
var
|
4009
|
-
return K ? new Date(Date.UTC(x[1],
|
4008
|
+
var Y = x[2] - 1 || 0, Q = (x[7] || "0").substring(0, 3);
|
4009
|
+
return K ? new Date(Date.UTC(x[1], Y, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Q)) : new Date(x[1], Y, x[3] || 1, x[4] || 0, x[5] || 0, x[6] || 0, Q);
|
4010
4010
|
}
|
4011
4011
|
}
|
4012
|
-
return new Date(
|
4012
|
+
return new Date(L);
|
4013
4013
|
}(R), this.init();
|
4014
|
-
},
|
4014
|
+
}, w.init = function() {
|
4015
4015
|
var R = this.$d;
|
4016
4016
|
this.$y = R.getFullYear(), this.$M = R.getMonth(), this.$D = R.getDate(), this.$W = R.getDay(), this.$H = R.getHours(), this.$m = R.getMinutes(), this.$s = R.getSeconds(), this.$ms = R.getMilliseconds();
|
4017
|
-
},
|
4018
|
-
return
|
4019
|
-
},
|
4017
|
+
}, w.$utils = function() {
|
4018
|
+
return $;
|
4019
|
+
}, w.isValid = function() {
|
4020
4020
|
return this.$d.toString() !== p;
|
4021
|
-
},
|
4022
|
-
var
|
4023
|
-
return this.startOf(
|
4024
|
-
},
|
4025
|
-
return
|
4026
|
-
},
|
4027
|
-
return this.endOf(
|
4028
|
-
},
|
4029
|
-
return
|
4030
|
-
},
|
4021
|
+
}, w.isSame = function(R, F) {
|
4022
|
+
var L = M(R);
|
4023
|
+
return this.startOf(F) <= L && L <= this.endOf(F);
|
4024
|
+
}, w.isAfter = function(R, F) {
|
4025
|
+
return M(R) < this.startOf(F);
|
4026
|
+
}, w.isBefore = function(R, F) {
|
4027
|
+
return this.endOf(F) < M(R);
|
4028
|
+
}, w.$g = function(R, F, L) {
|
4029
|
+
return $.u(R) ? this[F] : this.set(L, R);
|
4030
|
+
}, w.unix = function() {
|
4031
4031
|
return Math.floor(this.valueOf() / 1e3);
|
4032
|
-
},
|
4032
|
+
}, w.valueOf = function() {
|
4033
4033
|
return this.$d.getTime();
|
4034
|
-
},
|
4035
|
-
var
|
4036
|
-
var
|
4037
|
-
return K ?
|
4038
|
-
},
|
4039
|
-
return
|
4040
|
-
}, z = this.$W,
|
4034
|
+
}, w.startOf = function(R, F) {
|
4035
|
+
var L = this, K = !!$.u(F) || F, x = $.p(R), Y = function(ge, se) {
|
4036
|
+
var fe = $.w(L.$u ? Date.UTC(L.$y, se, ge) : new Date(L.$y, se, ge), L);
|
4037
|
+
return K ? fe : fe.endOf(c);
|
4038
|
+
}, Q = function(ge, se) {
|
4039
|
+
return $.w(L.toDate()[ge].apply(L.toDate("s"), (K ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(se)), L);
|
4040
|
+
}, z = this.$W, Z = this.$M, re = this.$D, ue = "set" + (this.$u ? "UTC" : "");
|
4041
4041
|
switch (x) {
|
4042
4042
|
case v:
|
4043
|
-
return K ?
|
4043
|
+
return K ? Y(1, 0) : Y(31, 11);
|
4044
4044
|
case d:
|
4045
|
-
return K ?
|
4045
|
+
return K ? Y(1, Z) : Y(0, Z + 1);
|
4046
4046
|
case u:
|
4047
|
-
var
|
4048
|
-
return
|
4047
|
+
var _e = this.$locale().weekStart || 0, he = (z < _e ? z + 7 : z) - _e;
|
4048
|
+
return Y(K ? re - he : re + (6 - he), Z);
|
4049
4049
|
case c:
|
4050
4050
|
case y:
|
4051
|
-
return
|
4051
|
+
return Q(ue + "Hours", 0);
|
4052
4052
|
case i:
|
4053
|
-
return
|
4053
|
+
return Q(ue + "Minutes", 1);
|
4054
4054
|
case o:
|
4055
|
-
return
|
4055
|
+
return Q(ue + "Seconds", 2);
|
4056
4056
|
case l:
|
4057
|
-
return
|
4057
|
+
return Q(ue + "Milliseconds", 3);
|
4058
4058
|
default:
|
4059
4059
|
return this.clone();
|
4060
4060
|
}
|
4061
|
-
},
|
4061
|
+
}, w.endOf = function(R) {
|
4062
4062
|
return this.startOf(R, !1);
|
4063
|
-
},
|
4064
|
-
var
|
4063
|
+
}, w.$set = function(R, F) {
|
4064
|
+
var L, K = $.p(R), x = "set" + (this.$u ? "UTC" : ""), Y = (L = {}, L[c] = x + "Date", L[y] = x + "Date", L[d] = x + "Month", L[v] = x + "FullYear", L[i] = x + "Hours", L[o] = x + "Minutes", L[l] = x + "Seconds", L[s] = x + "Milliseconds", L)[K], Q = K === c ? this.$D + (F - this.$W) : F;
|
4065
4065
|
if (K === d || K === v) {
|
4066
4066
|
var z = this.clone().set(y, 1);
|
4067
|
-
z.$d[
|
4067
|
+
z.$d[Y](Q), z.init(), this.$d = z.set(y, Math.min(this.$D, z.daysInMonth())).$d;
|
4068
4068
|
} else
|
4069
|
-
|
4069
|
+
Y && this.$d[Y](Q);
|
4070
4070
|
return this.init(), this;
|
4071
|
-
},
|
4072
|
-
return this.clone().$set(R,
|
4073
|
-
},
|
4074
|
-
return this[
|
4075
|
-
},
|
4076
|
-
var
|
4071
|
+
}, w.set = function(R, F) {
|
4072
|
+
return this.clone().$set(R, F);
|
4073
|
+
}, w.get = function(R) {
|
4074
|
+
return this[$.p(R)]();
|
4075
|
+
}, w.add = function(R, F) {
|
4076
|
+
var L, K = this;
|
4077
4077
|
R = Number(R);
|
4078
|
-
var x =
|
4079
|
-
var re =
|
4080
|
-
return
|
4078
|
+
var x = $.p(F), Y = function(Z) {
|
4079
|
+
var re = M(K);
|
4080
|
+
return $.w(re.date(re.date() + Math.round(Z * R)), K);
|
4081
4081
|
};
|
4082
4082
|
if (x === d)
|
4083
4083
|
return this.set(d, this.$M + R);
|
4084
4084
|
if (x === v)
|
4085
4085
|
return this.set(v, this.$y + R);
|
4086
4086
|
if (x === c)
|
4087
|
-
return
|
4087
|
+
return Y(1);
|
4088
4088
|
if (x === u)
|
4089
|
-
return
|
4090
|
-
var
|
4091
|
-
return
|
4092
|
-
},
|
4093
|
-
return this.add(-1 * R,
|
4094
|
-
},
|
4095
|
-
var
|
4089
|
+
return Y(7);
|
4090
|
+
var Q = (L = {}, L[o] = a, L[i] = n, L[l] = r, L)[x] || 1, z = this.$d.getTime() + R * Q;
|
4091
|
+
return $.w(z, this);
|
4092
|
+
}, w.subtract = function(R, F) {
|
4093
|
+
return this.add(-1 * R, F);
|
4094
|
+
}, w.format = function(R) {
|
4095
|
+
var F = this, L = this.$locale();
|
4096
4096
|
if (!this.isValid())
|
4097
|
-
return
|
4098
|
-
var K = R || "YYYY-MM-DDTHH:mm:ssZ", x =
|
4099
|
-
return
|
4100
|
-
},
|
4101
|
-
return
|
4102
|
-
},
|
4103
|
-
var
|
4104
|
-
return
|
4097
|
+
return L.invalidDate || p;
|
4098
|
+
var K = R || "YYYY-MM-DDTHH:mm:ssZ", x = $.z(this), Y = this.$H, Q = this.$m, z = this.$M, Z = L.weekdays, re = L.months, ue = L.meridiem, _e = function(se, fe, ve, be) {
|
4099
|
+
return se && (se[fe] || se(F, K)) || ve[fe].slice(0, be);
|
4100
|
+
}, he = function(se) {
|
4101
|
+
return $.s(Y % 12 || 12, se, "0");
|
4102
|
+
}, ge = ue || function(se, fe, ve) {
|
4103
|
+
var be = se < 12 ? "AM" : "PM";
|
4104
|
+
return ve ? be.toLowerCase() : be;
|
4105
4105
|
};
|
4106
|
-
return K.replace(b, function(
|
4107
|
-
return
|
4108
|
-
switch (
|
4106
|
+
return K.replace(b, function(se, fe) {
|
4107
|
+
return fe || function(ve) {
|
4108
|
+
switch (ve) {
|
4109
4109
|
case "YY":
|
4110
|
-
return String(
|
4110
|
+
return String(F.$y).slice(-2);
|
4111
4111
|
case "YYYY":
|
4112
|
-
return
|
4112
|
+
return $.s(F.$y, 4, "0");
|
4113
4113
|
case "M":
|
4114
4114
|
return z + 1;
|
4115
4115
|
case "MM":
|
4116
|
-
return
|
4116
|
+
return $.s(z + 1, 2, "0");
|
4117
4117
|
case "MMM":
|
4118
|
-
return
|
4118
|
+
return _e(L.monthsShort, z, re, 3);
|
4119
4119
|
case "MMMM":
|
4120
|
-
return
|
4120
|
+
return _e(re, z);
|
4121
4121
|
case "D":
|
4122
|
-
return
|
4122
|
+
return F.$D;
|
4123
4123
|
case "DD":
|
4124
|
-
return
|
4124
|
+
return $.s(F.$D, 2, "0");
|
4125
4125
|
case "d":
|
4126
|
-
return String(
|
4126
|
+
return String(F.$W);
|
4127
4127
|
case "dd":
|
4128
|
-
return
|
4128
|
+
return _e(L.weekdaysMin, F.$W, Z, 2);
|
4129
4129
|
case "ddd":
|
4130
|
-
return
|
4130
|
+
return _e(L.weekdaysShort, F.$W, Z, 3);
|
4131
4131
|
case "dddd":
|
4132
|
-
return
|
4132
|
+
return Z[F.$W];
|
4133
4133
|
case "H":
|
4134
|
-
return String(
|
4134
|
+
return String(Y);
|
4135
4135
|
case "HH":
|
4136
|
-
return
|
4136
|
+
return $.s(Y, 2, "0");
|
4137
4137
|
case "h":
|
4138
|
-
return
|
4138
|
+
return he(1);
|
4139
4139
|
case "hh":
|
4140
|
-
return
|
4140
|
+
return he(2);
|
4141
4141
|
case "a":
|
4142
|
-
return
|
4142
|
+
return ge(Y, Q, !0);
|
4143
4143
|
case "A":
|
4144
|
-
return
|
4144
|
+
return ge(Y, Q, !1);
|
4145
4145
|
case "m":
|
4146
|
-
return String(
|
4146
|
+
return String(Q);
|
4147
4147
|
case "mm":
|
4148
|
-
return
|
4148
|
+
return $.s(Q, 2, "0");
|
4149
4149
|
case "s":
|
4150
|
-
return String(
|
4150
|
+
return String(F.$s);
|
4151
4151
|
case "ss":
|
4152
|
-
return
|
4152
|
+
return $.s(F.$s, 2, "0");
|
4153
4153
|
case "SSS":
|
4154
|
-
return
|
4154
|
+
return $.s(F.$ms, 3, "0");
|
4155
4155
|
case "Z":
|
4156
4156
|
return x;
|
4157
4157
|
}
|
4158
4158
|
return null;
|
4159
|
-
}(
|
4159
|
+
}(se) || x.replace(":", "");
|
4160
4160
|
});
|
4161
|
-
},
|
4161
|
+
}, w.utcOffset = function() {
|
4162
4162
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4163
|
-
},
|
4164
|
-
var K, x = this,
|
4165
|
-
return
|
4163
|
+
}, w.diff = function(R, F, L) {
|
4164
|
+
var K, x = this, Y = $.p(F), Q = M(R), z = (Q.utcOffset() - this.utcOffset()) * a, Z = this - Q, re = function() {
|
4165
|
+
return $.m(x, Q);
|
4166
4166
|
};
|
4167
|
-
switch (
|
4167
|
+
switch (Y) {
|
4168
4168
|
case v:
|
4169
4169
|
K = re() / 12;
|
4170
4170
|
break;
|
@@ -4175,54 +4175,54 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4175
4175
|
K = re() / 3;
|
4176
4176
|
break;
|
4177
4177
|
case u:
|
4178
|
-
K = (
|
4178
|
+
K = (Z - z) / 6048e5;
|
4179
4179
|
break;
|
4180
4180
|
case c:
|
4181
|
-
K = (
|
4181
|
+
K = (Z - z) / 864e5;
|
4182
4182
|
break;
|
4183
4183
|
case i:
|
4184
|
-
K =
|
4184
|
+
K = Z / n;
|
4185
4185
|
break;
|
4186
4186
|
case o:
|
4187
|
-
K =
|
4187
|
+
K = Z / a;
|
4188
4188
|
break;
|
4189
4189
|
case l:
|
4190
|
-
K =
|
4190
|
+
K = Z / r;
|
4191
4191
|
break;
|
4192
4192
|
default:
|
4193
|
-
K =
|
4193
|
+
K = Z;
|
4194
4194
|
}
|
4195
|
-
return
|
4196
|
-
},
|
4195
|
+
return L ? K : $.a(K);
|
4196
|
+
}, w.daysInMonth = function() {
|
4197
4197
|
return this.endOf(d).$D;
|
4198
|
-
},
|
4198
|
+
}, w.$locale = function() {
|
4199
4199
|
return k[this.$L];
|
4200
|
-
},
|
4200
|
+
}, w.locale = function(R, F) {
|
4201
4201
|
if (!R)
|
4202
4202
|
return this.$L;
|
4203
|
-
var
|
4204
|
-
return K && (
|
4205
|
-
},
|
4206
|
-
return
|
4207
|
-
},
|
4203
|
+
var L = this.clone(), K = I(R, F, !0);
|
4204
|
+
return K && (L.$L = K), L;
|
4205
|
+
}, w.clone = function() {
|
4206
|
+
return $.w(this.$d, this);
|
4207
|
+
}, w.toDate = function() {
|
4208
4208
|
return new Date(this.valueOf());
|
4209
|
-
},
|
4209
|
+
}, w.toJSON = function() {
|
4210
4210
|
return this.isValid() ? this.toISOString() : null;
|
4211
|
-
},
|
4211
|
+
}, w.toISOString = function() {
|
4212
4212
|
return this.$d.toISOString();
|
4213
|
-
},
|
4213
|
+
}, w.toString = function() {
|
4214
4214
|
return this.$d.toUTCString();
|
4215
4215
|
}, D;
|
4216
|
-
}(), U =
|
4217
|
-
return
|
4218
|
-
U[D[1]] = function(
|
4219
|
-
return this.$g(
|
4216
|
+
}(), U = P.prototype;
|
4217
|
+
return M.prototype = U, [["$ms", s], ["$s", l], ["$m", o], ["$H", i], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(D) {
|
4218
|
+
U[D[1]] = function(w) {
|
4219
|
+
return this.$g(w, D[0], D[1]);
|
4220
4220
|
};
|
4221
|
-
}),
|
4222
|
-
return D.$i || (D(
|
4223
|
-
},
|
4224
|
-
return
|
4225
|
-
},
|
4221
|
+
}), M.extend = function(D, w) {
|
4222
|
+
return D.$i || (D(w, P, M), D.$i = !0), M;
|
4223
|
+
}, M.locale = I, M.isDayjs = O, M.unix = function(D) {
|
4224
|
+
return M(1e3 * D);
|
4225
|
+
}, M.en = k[A], M.Ls = k, M.p = {}, M;
|
4226
4226
|
});
|
4227
4227
|
})(dayjs_min);
|
4228
4228
|
const dayjs = dayjs_min.exports;
|
@@ -4267,31 +4267,31 @@ function filesize(e, {
|
|
4267
4267
|
roundingMethod: p = ROUND,
|
4268
4268
|
precision: g = 0
|
4269
4269
|
} = {}) {
|
4270
|
-
let b = y, E = Number(e), C = [], T = 0,
|
4270
|
+
let b = y, E = Number(e), C = [], T = 0, A = EMPTY;
|
4271
4271
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4272
|
-
const k = a === 10 ? 1e3 : 1024, V = m === !0,
|
4272
|
+
const k = a === 10 ? 1e3 : 1024, V = m === !0, O = E < 0, I = Math[p];
|
4273
4273
|
if (typeof e != "bigint" && isNaN(e))
|
4274
4274
|
throw new TypeError(INVALID_NUMBER);
|
4275
4275
|
if (typeof I !== FUNCTION)
|
4276
4276
|
throw new TypeError(INVALID_ROUND);
|
4277
|
-
if (
|
4277
|
+
if (O && (E = -E), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(E) / Math.log(k)), b < 0 && (b = 0)), b > 8 && (g > 0 && (g += 8 - b), b = 8), d === EXPONENT)
|
4278
4278
|
return b;
|
4279
4279
|
if (E === 0)
|
4280
|
-
C[0] = 0,
|
4280
|
+
C[0] = 0, A = C[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4281
4281
|
else {
|
4282
4282
|
T = E / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (T = T * 8, T >= k && b < 8 && (T = T / k, b++));
|
4283
|
-
const
|
4284
|
-
C[0] = I(T *
|
4283
|
+
const M = Math.pow(10, b > 0 ? n : 0);
|
4284
|
+
C[0] = I(T * M) / M, C[0] === k && b < 8 && y === -1 && (C[0] = 1, b++), A = C[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4285
4285
|
}
|
4286
|
-
if (
|
4287
|
-
const
|
4288
|
-
C[0] = `${
|
4286
|
+
if (O && (C[0] = -C[0]), g > 0 && (C[0] = C[0].toPrecision(g)), C[1] = c[C[1]] || C[1], s === !0 ? C[0] = C[0].toLocaleString() : s.length > 0 ? C[0] = C[0].toLocaleString(s, l) : o.length > 0 && (C[0] = C[0].toString().replace(PERIOD, o)), r && Number.isInteger(C[0]) === !1 && n > 0) {
|
4287
|
+
const M = o || PERIOD, $ = C[0].toString().split(M), P = $[1] || EMPTY, U = P.length, D = n - U;
|
4288
|
+
C[0] = `${$[0]}${M}${P.padEnd(U + D, ZERO)}`;
|
4289
4289
|
}
|
4290
4290
|
return V && (C[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), d === ARRAY ? C : d === OBJECT ? {
|
4291
4291
|
value: C[0],
|
4292
4292
|
symbol: C[1],
|
4293
4293
|
exponent: b,
|
4294
|
-
unit:
|
4294
|
+
unit: A
|
4295
4295
|
} : C.join(i);
|
4296
4296
|
}
|
4297
4297
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
@@ -5482,8 +5482,8 @@ function equalObjects(e, t, r, a, n, s) {
|
|
5482
5482
|
g || (g = m == "constructor");
|
5483
5483
|
}
|
5484
5484
|
if (p && !g) {
|
5485
|
-
var T = e.constructor,
|
5486
|
-
T !=
|
5485
|
+
var T = e.constructor, A = t.constructor;
|
5486
|
+
T != A && "constructor" in e && "constructor" in t && !(typeof T == "function" && T instanceof T && typeof A == "function" && A instanceof A) && (p = !1);
|
5487
5487
|
}
|
5488
5488
|
return s.delete(e), s.delete(t), p;
|
5489
5489
|
}
|
@@ -5636,19 +5636,19 @@ function debounce(e, t, r) {
|
|
5636
5636
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5637
5637
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, m = "trailing" in r ? !!r.trailing : m);
|
5638
5638
|
function v(k) {
|
5639
|
-
var V = a,
|
5640
|
-
return a = n = void 0, c = k, l = e.apply(
|
5639
|
+
var V = a, O = n;
|
5640
|
+
return a = n = void 0, c = k, l = e.apply(O, V), l;
|
5641
5641
|
}
|
5642
5642
|
function y(k) {
|
5643
5643
|
return c = k, o = setTimeout(b, t), u ? v(k) : l;
|
5644
5644
|
}
|
5645
5645
|
function p(k) {
|
5646
|
-
var V = k - i,
|
5647
|
-
return d ? nativeMin$1(I, s -
|
5646
|
+
var V = k - i, O = k - c, I = t - V;
|
5647
|
+
return d ? nativeMin$1(I, s - O) : I;
|
5648
5648
|
}
|
5649
5649
|
function g(k) {
|
5650
|
-
var V = k - i,
|
5651
|
-
return i === void 0 || V >= t || V < 0 || d &&
|
5650
|
+
var V = k - i, O = k - c;
|
5651
|
+
return i === void 0 || V >= t || V < 0 || d && O >= s;
|
5652
5652
|
}
|
5653
5653
|
function b() {
|
5654
5654
|
var k = now$1();
|
@@ -5665,7 +5665,7 @@ function debounce(e, t, r) {
|
|
5665
5665
|
function T() {
|
5666
5666
|
return o === void 0 ? l : E(now$1());
|
5667
5667
|
}
|
5668
|
-
function
|
5668
|
+
function A() {
|
5669
5669
|
var k = now$1(), V = g(k);
|
5670
5670
|
if (a = arguments, n = this, i = k, V) {
|
5671
5671
|
if (o === void 0)
|
@@ -5675,7 +5675,7 @@ function debounce(e, t, r) {
|
|
5675
5675
|
}
|
5676
5676
|
return o === void 0 && (o = setTimeout(b, t)), l;
|
5677
5677
|
}
|
5678
|
-
return
|
5678
|
+
return A.cancel = C, A.flush = T, A;
|
5679
5679
|
}
|
5680
5680
|
function isArrayLikeObject(e) {
|
5681
5681
|
return isObjectLike(e) && isArrayLike(e);
|
@@ -7175,22 +7175,22 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7175
7175
|
const i = {
|
7176
7176
|
deep: !0
|
7177
7177
|
};
|
7178
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (
|
7179
|
-
c ? v =
|
7178
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (i.onTrigger = (O) => {
|
7179
|
+
c ? v = O : c == !1 && !k._hotUpdating && (Array.isArray(v) ? v.push(O) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
7180
7180
|
});
|
7181
7181
|
let c, u, d = markRaw([]), m = markRaw([]), v;
|
7182
7182
|
const y = a.state.value[e];
|
7183
7183
|
!l && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
7184
7184
|
const p = ref({});
|
7185
|
-
function g(
|
7185
|
+
function g(O) {
|
7186
7186
|
let I;
|
7187
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
7187
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof O == "function" ? (O(a.state.value[e]), I = {
|
7188
7188
|
type: MutationType.patchFunction,
|
7189
7189
|
storeId: e,
|
7190
7190
|
events: v
|
7191
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
7191
|
+
}) : (mergeReactiveObjects(a.state.value[e], O), I = {
|
7192
7192
|
type: MutationType.patchObject,
|
7193
|
-
payload:
|
7193
|
+
payload: O,
|
7194
7194
|
storeId: e,
|
7195
7195
|
events: v
|
7196
7196
|
}), nextTick().then(() => {
|
@@ -7203,30 +7203,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7203
7203
|
function E() {
|
7204
7204
|
s.stop(), d = [], m = [], a._s.delete(e);
|
7205
7205
|
}
|
7206
|
-
function C(
|
7206
|
+
function C(O, I) {
|
7207
7207
|
return function() {
|
7208
7208
|
setActivePinia(a);
|
7209
|
-
const
|
7209
|
+
const M = Array.from(arguments), $ = [], P = [];
|
7210
7210
|
function U(R) {
|
7211
|
-
|
7211
|
+
$.push(R);
|
7212
7212
|
}
|
7213
7213
|
function D(R) {
|
7214
|
-
|
7214
|
+
P.push(R);
|
7215
7215
|
}
|
7216
7216
|
triggerSubscriptions(m, {
|
7217
|
-
args:
|
7218
|
-
name:
|
7217
|
+
args: M,
|
7218
|
+
name: O,
|
7219
7219
|
store: k,
|
7220
7220
|
after: U,
|
7221
7221
|
onError: D
|
7222
7222
|
});
|
7223
|
-
let
|
7223
|
+
let w;
|
7224
7224
|
try {
|
7225
|
-
|
7225
|
+
w = I.apply(this && this.$id === e ? this : k, M);
|
7226
7226
|
} catch (R) {
|
7227
|
-
throw triggerSubscriptions(
|
7227
|
+
throw triggerSubscriptions(P, R), R;
|
7228
7228
|
}
|
7229
|
-
return
|
7229
|
+
return w instanceof Promise ? w.then((R) => (triggerSubscriptions($, R), R)).catch((R) => (triggerSubscriptions(P, R), Promise.reject(R))) : (triggerSubscriptions($, w), w);
|
7230
7230
|
};
|
7231
7231
|
}
|
7232
7232
|
const T = /* @__PURE__ */ markRaw({
|
@@ -7234,21 +7234,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7234
7234
|
getters: {},
|
7235
7235
|
state: [],
|
7236
7236
|
hotState: p
|
7237
|
-
}),
|
7237
|
+
}), A = {
|
7238
7238
|
_p: a,
|
7239
7239
|
$id: e,
|
7240
7240
|
$onAction: addSubscription.bind(null, m),
|
7241
7241
|
$patch: g,
|
7242
7242
|
$reset: b,
|
7243
|
-
$subscribe(
|
7244
|
-
const
|
7245
|
-
(I.flush === "sync" ? u : c) &&
|
7243
|
+
$subscribe(O, I = {}) {
|
7244
|
+
const M = addSubscription(d, O, I.detached, () => $()), $ = s.run(() => watch(() => a.state.value[e], (P) => {
|
7245
|
+
(I.flush === "sync" ? u : c) && O({
|
7246
7246
|
storeId: e,
|
7247
7247
|
type: MutationType.direct,
|
7248
7248
|
events: v
|
7249
|
-
},
|
7249
|
+
}, P);
|
7250
7250
|
}, assign$1({}, i, I)));
|
7251
|
-
return
|
7251
|
+
return M;
|
7252
7252
|
},
|
7253
7253
|
$dispose: E
|
7254
7254
|
}, k = reactive(assign$1(
|
@@ -7256,57 +7256,57 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7256
7256
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
7257
7257
|
_hmrPayload: T
|
7258
7258
|
} : {},
|
7259
|
-
|
7259
|
+
A
|
7260
7260
|
));
|
7261
7261
|
a._s.set(e, k);
|
7262
7262
|
const V = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
7263
|
-
for (const
|
7264
|
-
const I = V[
|
7263
|
+
for (const O in V) {
|
7264
|
+
const I = V[O];
|
7265
7265
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
7266
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value,
|
7266
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, O, toRef(V, O)) : l || (y && shouldHydrate(I) && (isRef(I) ? I.value = y[O] : mergeReactiveObjects(I, y[O])), a.state.value[e][O] = I), process.env.NODE_ENV !== "production" && T.state.push(O);
|
7267
7267
|
else if (typeof I == "function") {
|
7268
|
-
const
|
7269
|
-
V[
|
7268
|
+
const M = process.env.NODE_ENV !== "production" && n ? I : C(O, I);
|
7269
|
+
V[O] = M, process.env.NODE_ENV !== "production" && (T.actions[O] = I), o.actions[O] = I;
|
7270
7270
|
} else
|
7271
|
-
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[
|
7271
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (T.getters[O] = l ? r.getters[O] : I, IS_CLIENT && (V._getters || (V._getters = markRaw([]))).push(O));
|
7272
7272
|
}
|
7273
7273
|
if (assign$1(k, V), assign$1(toRaw(k), V), Object.defineProperty(k, "$state", {
|
7274
7274
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
7275
|
-
set: (
|
7275
|
+
set: (O) => {
|
7276
7276
|
if (process.env.NODE_ENV !== "production" && n)
|
7277
7277
|
throw new Error("cannot set hotState");
|
7278
7278
|
g((I) => {
|
7279
|
-
assign$1(I,
|
7279
|
+
assign$1(I, O);
|
7280
7280
|
});
|
7281
7281
|
}
|
7282
7282
|
}), process.env.NODE_ENV !== "production") {
|
7283
7283
|
k._hotUpdate = markRaw((I) => {
|
7284
|
-
k._hotUpdating = !0, I._hmrPayload.state.forEach((
|
7285
|
-
if (
|
7286
|
-
const
|
7287
|
-
typeof
|
7284
|
+
k._hotUpdating = !0, I._hmrPayload.state.forEach((M) => {
|
7285
|
+
if (M in k.$state) {
|
7286
|
+
const $ = I.$state[M], P = k.$state[M];
|
7287
|
+
typeof $ == "object" && isPlainObject($) && isPlainObject(P) ? patchObject($, P) : I.$state[M] = P;
|
7288
7288
|
}
|
7289
|
-
set(k,
|
7290
|
-
}), Object.keys(k.$state).forEach((
|
7291
|
-
|
7289
|
+
set(k, M, toRef(I.$state, M));
|
7290
|
+
}), Object.keys(k.$state).forEach((M) => {
|
7291
|
+
M in I.$state || del(k, M);
|
7292
7292
|
}), c = !1, u = !1, a.state.value[e] = toRef(I._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
7293
7293
|
c = !0;
|
7294
7294
|
});
|
7295
|
-
for (const
|
7296
|
-
const
|
7297
|
-
set(k,
|
7295
|
+
for (const M in I._hmrPayload.actions) {
|
7296
|
+
const $ = I[M];
|
7297
|
+
set(k, M, C(M, $));
|
7298
7298
|
}
|
7299
|
-
for (const
|
7300
|
-
const
|
7301
|
-
set(k,
|
7299
|
+
for (const M in I._hmrPayload.getters) {
|
7300
|
+
const $ = I._hmrPayload.getters[M], P = l ? computed(() => (setActivePinia(a), $.call(k, k))) : $;
|
7301
|
+
set(k, M, P);
|
7302
7302
|
}
|
7303
|
-
Object.keys(k._hmrPayload.getters).forEach((
|
7304
|
-
|
7305
|
-
}), Object.keys(k._hmrPayload.actions).forEach((
|
7306
|
-
|
7303
|
+
Object.keys(k._hmrPayload.getters).forEach((M) => {
|
7304
|
+
M in I._hmrPayload.getters || del(k, M);
|
7305
|
+
}), Object.keys(k._hmrPayload.actions).forEach((M) => {
|
7306
|
+
M in I._hmrPayload.actions || del(k, M);
|
7307
7307
|
}), k._hmrPayload = I._hmrPayload, k._getters = I._getters, k._hotUpdating = !1;
|
7308
7308
|
});
|
7309
|
-
const
|
7309
|
+
const O = {
|
7310
7310
|
writable: !0,
|
7311
7311
|
configurable: !0,
|
7312
7312
|
enumerable: !1
|
@@ -7314,21 +7314,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
7314
7314
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((I) => {
|
7315
7315
|
Object.defineProperty(k, I, {
|
7316
7316
|
value: k[I],
|
7317
|
-
...
|
7317
|
+
...O
|
7318
7318
|
});
|
7319
7319
|
});
|
7320
7320
|
}
|
7321
|
-
return a._p.forEach((
|
7321
|
+
return a._p.forEach((O) => {
|
7322
7322
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
7323
|
-
const I = s.run(() =>
|
7323
|
+
const I = s.run(() => O({
|
7324
7324
|
store: k,
|
7325
7325
|
app: a._a,
|
7326
7326
|
pinia: a,
|
7327
7327
|
options: o
|
7328
7328
|
}));
|
7329
|
-
Object.keys(I || {}).forEach((
|
7329
|
+
Object.keys(I || {}).forEach((M) => k._customProperties.add(M)), assign$1(k, I);
|
7330
7330
|
} else
|
7331
|
-
assign$1(k, s.run(() =>
|
7331
|
+
assign$1(k, s.run(() => O({
|
7332
7332
|
store: k,
|
7333
7333
|
app: a._a,
|
7334
7334
|
pinia: a,
|
@@ -8849,6 +8849,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8849
8849
|
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.crt_flg === 1 && n.key_flg !== 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8850
8850
|
};
|
8851
8851
|
},
|
8852
|
+
getVarSubmitFieldsForCreateKeyVisible(e) {
|
8853
|
+
return (t) => {
|
8854
|
+
var r, a;
|
8855
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.crt_flg === 1 && n.key_flg === 1 && n.crt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8856
|
+
};
|
8857
|
+
},
|
8858
|
+
getVarSubmitFieldsForCreateNotKeyVisible(e) {
|
8859
|
+
return (t) => {
|
8860
|
+
var r, a;
|
8861
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.crt_flg === 1 && n.key_flg !== 1 && n.crt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8862
|
+
};
|
8863
|
+
},
|
8852
8864
|
getVarSubmitFieldsForUpdate(e) {
|
8853
8865
|
return (t) => {
|
8854
8866
|
var r, a;
|
@@ -8867,6 +8879,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8867
8879
|
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.upt_flg === 1 && n.key_flg !== 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8868
8880
|
};
|
8869
8881
|
},
|
8882
|
+
getVarSubmitFieldsForUpdateKeyVisible(e) {
|
8883
|
+
return (t) => {
|
8884
|
+
var r, a;
|
8885
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.upt_flg === 1 && n.key_flg === 1 && n.upt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8886
|
+
};
|
8887
|
+
},
|
8888
|
+
getVarSubmitFieldsForUpdateNotKeyVisible(e) {
|
8889
|
+
return (t) => {
|
8890
|
+
var r, a;
|
8891
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.upt_flg === 1 && n.key_flg !== 1 && n.upt_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8892
|
+
};
|
8893
|
+
},
|
8870
8894
|
getVarSubmitFieldsForCopy(e) {
|
8871
8895
|
return (t) => {
|
8872
8896
|
var r, a;
|
@@ -8885,6 +8909,18 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8885
8909
|
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.cpy_flg === 1 && n.key_flg !== 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8886
8910
|
};
|
8887
8911
|
},
|
8912
|
+
getVarSubmitFieldsForCopyKeyVisible(e) {
|
8913
|
+
return (t) => {
|
8914
|
+
var r, a;
|
8915
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.cpy_flg === 1 && n.key_flg === 1 && n.cpy_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8916
|
+
};
|
8917
|
+
},
|
8918
|
+
getVarSubmitFieldsForCopyNotKeyVisible(e) {
|
8919
|
+
return (t) => {
|
8920
|
+
var r, a;
|
8921
|
+
return t ? (a = (r = e.varSubmitFieldMap.get(t)) == null ? void 0 : r.filter((n) => n.cpy_flg === 1 && n.key_flg !== 1 && n.cpy_vis_flg === 1)) != null ? a : null : (KgLogger.error("frm_id \u4E3A\u7A7A."), null);
|
8922
|
+
};
|
8923
|
+
},
|
8888
8924
|
getVarSubmitFieldsForDelete(e) {
|
8889
8925
|
return (t) => {
|
8890
8926
|
var r, a;
|
@@ -9164,16 +9200,16 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
9164
9200
|
varSubmitConfig: E,
|
9165
9201
|
varSubmitFields: C,
|
9166
9202
|
varProfile: T,
|
9167
|
-
varProfileConfig:
|
9203
|
+
varProfileConfig: A,
|
9168
9204
|
varGrid: k,
|
9169
9205
|
varGridConfig: V
|
9170
9206
|
} = await GetAll({ params: { frm_id: e } });
|
9171
|
-
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), 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(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
9207
|
+
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, m != null ? m : []), 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(g)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(E)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(C)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
|
9172
9208
|
varProfile: T != null ? T : null,
|
9173
|
-
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((
|
9209
|
+
currentVarProfileMasterID: (s = (n = ((t = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : t.find((O) => O.def_flg === 1)) || ((r = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : r.find((O) => O.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = T == null ? void 0 : T.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
9174
9210
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(V != null ? V : null)), this.varGridMap.set(e, {
|
9175
9211
|
varGrid: transformVarGridDTO(k),
|
9176
|
-
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((
|
9212
|
+
currentVarGridMasterID: (u = (c = ((l = k == null ? void 0 : k.varGridMasters) == null ? void 0 : l.find((O) => O.def_flg === 1)) || ((o = k == null ? void 0 : k.varGridMasters) == null ? void 0 : o.find((O) => O.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((i = k == null ? void 0 : k.varGridMasters) == null ? void 0 : i.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
9177
9213
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
9178
9214
|
} catch (d) {
|
9179
9215
|
throw d;
|
@@ -9380,10 +9416,10 @@ function useKgVar(e, t, r = 0) {
|
|
9380
9416
|
}), onUnmounted(() => {
|
9381
9417
|
u.dispose(c);
|
9382
9418
|
}));
|
9383
|
-
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)),
|
9384
|
-
var z,
|
9385
|
-
return (
|
9386
|
-
}),
|
9419
|
+
const d = (z) => computed(() => u.t(c, z)), m = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), g = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), E = computed(() => u.isUpdatingRequesting(c)), C = computed(() => u.isCopying(c)), T = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), k = computed(() => u.isDeletingRequesting(c)), V = computed(() => u.isOtherRequesting(c)), O = computed(() => u.getVarButtons(c)), I = computed(() => u.getVarButtonSearch(c)), M = computed(() => u.getVarButtonCreate(c)), $ = computed(() => u.getVarButtonUpdate(c)), P = computed(() => u.getVarButtonCopy(c)), U = computed(() => u.getVarButtonDelete(c)), D = computed(() => u.getVarProfileMasters(c)), w = computed(() => u.getCurrentVarProfileMaster(c)), R = computed(() => u.getCurrentVarProfileMasterID(c)), F = computed(() => {
|
9420
|
+
var z, Z;
|
9421
|
+
return (Z = (z = w.value) == null ? void 0 : z.varProfileDetails) != null ? Z : null;
|
9422
|
+
}), L = computed(() => u.getVarGridConfig(c)), K = computed(() => u.getVarGridMasters(c)), x = computed(() => u.getCurrentVarGridMaster(c)), Y = computed(() => u.getSystemVarGridDetails(c)), Q = computed(() => u.getCurrentVarGridDetails(c));
|
9387
9423
|
return {
|
9388
9424
|
formID: c,
|
9389
9425
|
store: u,
|
@@ -9396,24 +9432,24 @@ function useKgVar(e, t, r = 0) {
|
|
9396
9432
|
isUpdatingRequesting: E,
|
9397
9433
|
isCopying: C,
|
9398
9434
|
isCopyingRequesting: T,
|
9399
|
-
isDeleting:
|
9435
|
+
isDeleting: A,
|
9400
9436
|
isDeletingRequesting: k,
|
9401
9437
|
isOtherRequesting: V,
|
9402
|
-
varButtons:
|
9438
|
+
varButtons: O,
|
9403
9439
|
varButtonSearch: I,
|
9404
|
-
varButtonCreate:
|
9405
|
-
varButtonUpdate:
|
9406
|
-
varButtonCopy:
|
9440
|
+
varButtonCreate: M,
|
9441
|
+
varButtonUpdate: $,
|
9442
|
+
varButtonCopy: P,
|
9407
9443
|
varButtonDelete: U,
|
9408
9444
|
varProfileMasters: D,
|
9409
|
-
currentVarProfileMaster:
|
9445
|
+
currentVarProfileMaster: w,
|
9410
9446
|
currentVarProfileMasterID: R,
|
9411
|
-
currentVarProfileDetails:
|
9412
|
-
varGridConfig:
|
9447
|
+
currentVarProfileDetails: F,
|
9448
|
+
varGridConfig: L,
|
9413
9449
|
varGridMasters: K,
|
9414
9450
|
currentVarGridMaster: x,
|
9415
|
-
systemVarGridDetails:
|
9416
|
-
currentVarGridDetails:
|
9451
|
+
systemVarGridDetails: Y,
|
9452
|
+
currentVarGridDetails: Q,
|
9417
9453
|
setIsCreating: s,
|
9418
9454
|
setIsUpdating: l,
|
9419
9455
|
setIsCopying: o,
|
@@ -9498,33 +9534,33 @@ const DI_KG_VAR__KG_SLOTS = Symbol("DI_KG_VAR__KG_SLOTS"), DI_KG_VAR__KG_PROPS =
|
|
9498
9534
|
r("update:visible", !1);
|
9499
9535
|
}
|
9500
9536
|
async function p() {
|
9501
|
-
var g, b, E, C, T,
|
9537
|
+
var g, b, E, C, T, A, k;
|
9502
9538
|
if (m.value) {
|
9503
|
-
const V = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [],
|
9539
|
+
const V = (b = (g = u.selectedRows) == null ? void 0 : g.value) != null ? b : [], O = (E = V.map((M) => M[v.value])) != null ? E : [];
|
9504
9540
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9505
9541
|
var_nam: l,
|
9506
9542
|
isMultiple: !0,
|
9507
|
-
values:
|
9543
|
+
values: O,
|
9508
9544
|
rows: V
|
9509
9545
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9510
9546
|
var_nam: l,
|
9511
9547
|
model: i,
|
9512
9548
|
isMultiple: !0,
|
9513
|
-
values:
|
9549
|
+
values: O,
|
9514
9550
|
rows: V
|
9515
9551
|
}), r("update:visible", !1));
|
9516
9552
|
} else {
|
9517
|
-
const V = (
|
9553
|
+
const V = (A = (T = (C = u.selectedRows) == null ? void 0 : C.value) == null ? void 0 : T[0]) != null ? A : null, O = (k = V == null ? void 0 : V[v.value]) != null ? k : "";
|
9518
9554
|
await s.store.emit(s.formID, "lookupBeforeOk", {
|
9519
9555
|
var_nam: l,
|
9520
9556
|
isMultiple: !1,
|
9521
|
-
value:
|
9557
|
+
value: O,
|
9522
9558
|
row: V
|
9523
9559
|
}) || (s.store.emit(s.formID, "lookupOk", {
|
9524
9560
|
var_nam: l,
|
9525
9561
|
model: i,
|
9526
9562
|
isMultiple: !1,
|
9527
|
-
value:
|
9563
|
+
value: O,
|
9528
9564
|
row: V
|
9529
9565
|
}), r("update:visible", !1));
|
9530
9566
|
}
|
@@ -9677,15 +9713,15 @@ function _useRules(e) {
|
|
9677
9713
|
{
|
9678
9714
|
const E = (y = n.value) == null ? void 0 : y.min;
|
9679
9715
|
isNil(E) || (((p = n.value) == null ? void 0 : p.min_include_flg) === 1 ? o.push({
|
9680
|
-
validator: (T,
|
9716
|
+
validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) < E ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [E])) : Promise.resolve()
|
9681
9717
|
}) : o.push({
|
9682
|
-
validator: (T,
|
9718
|
+
validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) <= E ? Promise.reject(t.t("kg.KgFormItem.mustGT", [E])) : Promise.resolve()
|
9683
9719
|
}));
|
9684
9720
|
const C = (g = n.value) == null ? void 0 : g.max;
|
9685
9721
|
isNil(C) || (((b = n.value) == null ? void 0 : b.max_include_flg) === 1 ? o.push({
|
9686
|
-
validator: (T,
|
9722
|
+
validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) > C ? Promise.reject(t.t("kg.KgFormItem.mustLTE", [C])) : Promise.resolve()
|
9687
9723
|
}) : o.push({
|
9688
|
-
validator: (T,
|
9724
|
+
validator: (T, A) => A == null || A === "" || typeof A == "string" && A.trim() === "" ? Promise.resolve() : Number(A) >= C ? Promise.reject(t.t("kg.KgFormItem.mustLT", [C])) : Promise.resolve()
|
9689
9725
|
}));
|
9690
9726
|
}
|
9691
9727
|
break;
|
@@ -9764,8 +9800,8 @@ function useKgFormItemSelect() {
|
|
9764
9800
|
if (typeof p == "string" && p.startsWith("{") && p.endsWith("}")) {
|
9765
9801
|
let C = p.slice(1, -1), T = "";
|
9766
9802
|
if (C.includes(".")) {
|
9767
|
-
const
|
9768
|
-
C =
|
9803
|
+
const A = C.split(".");
|
9804
|
+
C = A[0], T = A[1];
|
9769
9805
|
}
|
9770
9806
|
t.value && C in t.value && (T ? g = (E = (b = t.value[`${C}_obj`]) == null ? void 0 : b[T]) != null ? E : void 0 : g = t.value[C], g || (g = "__kg__form_item_select__pid"));
|
9771
9807
|
}
|
@@ -9773,9 +9809,9 @@ function useKgFormItemSelect() {
|
|
9773
9809
|
}), v;
|
9774
9810
|
});
|
9775
9811
|
async function d() {
|
9776
|
-
var C, T,
|
9812
|
+
var C, T, A, k, V, O, I, M;
|
9777
9813
|
let v = [];
|
9778
|
-
const y = (C = a.value) == null ? void 0 : C.cmd, p = (
|
9814
|
+
const y = (C = a.value) == null ? void 0 : C.cmd, p = (A = (T = a.value) == null ? void 0 : T.cmd_method) != null ? A : "GET", g = (V = (k = a.value) == null ? void 0 : k.val_clm) != null ? V : "", b = (I = (O = a.value) == null ? void 0 : O.lbl_clm) != null ? I : "";
|
9779
9815
|
if (!y || !g || !b) {
|
9780
9816
|
KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
9781
9817
|
frm_id: r.formID,
|
@@ -9788,7 +9824,7 @@ function useKgFormItemSelect() {
|
|
9788
9824
|
}
|
9789
9825
|
let E = null;
|
9790
9826
|
try {
|
9791
|
-
l.value = !0, E = await ((
|
9827
|
+
l.value = !0, E = await ((M = httpClient()) == null ? void 0 : M.request({
|
9792
9828
|
url: y,
|
9793
9829
|
method: p,
|
9794
9830
|
params: u.value
|
@@ -9809,14 +9845,14 @@ function useKgFormItemSelect() {
|
|
9809
9845
|
break;
|
9810
9846
|
}
|
9811
9847
|
if (v.length > 0) {
|
9812
|
-
const
|
9813
|
-
(!(g in
|
9848
|
+
const $ = v[0];
|
9849
|
+
(!(g in $) || !(b in $)) && KgLogger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
9814
9850
|
frm_id: r.formID,
|
9815
9851
|
var_nam: e,
|
9816
9852
|
cmd: y,
|
9817
9853
|
val_clm: g,
|
9818
9854
|
lbl_clm: b,
|
9819
|
-
\u6240\u6709\u5217: Object.keys(
|
9855
|
+
\u6240\u6709\u5217: Object.keys($)
|
9820
9856
|
});
|
9821
9857
|
}
|
9822
9858
|
o.value = v;
|
@@ -9828,39 +9864,39 @@ function useKgFormItemSelect() {
|
|
9828
9864
|
const y = (b = (g = a.value) == null ? void 0 : g.val_clm) != null ? b : "", p = (C = (E = a.value) == null ? void 0 : E.val_data_type) != null ? C : "string";
|
9829
9865
|
switch (p) {
|
9830
9866
|
case KG_POSSIBILITY_DATA_TYPE.STRING:
|
9831
|
-
v.forEach((
|
9832
|
-
|
9867
|
+
v.forEach((A) => {
|
9868
|
+
A[y] = String(A[y]);
|
9833
9869
|
});
|
9834
9870
|
break;
|
9835
9871
|
case KG_POSSIBILITY_DATA_TYPE.NUMBER:
|
9836
|
-
v.forEach((
|
9837
|
-
let k = Number(
|
9838
|
-
Number.isNaN(k) && (k =
|
9872
|
+
v.forEach((A) => {
|
9873
|
+
let k = Number(A[y]);
|
9874
|
+
Number.isNaN(k) && (k = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
9839
9875
|
frm_id: r.formID,
|
9840
9876
|
var_nam: e,
|
9841
9877
|
VarPossibility: a.value
|
9842
|
-
})),
|
9878
|
+
})), A[y] = k;
|
9843
9879
|
});
|
9844
9880
|
break;
|
9845
9881
|
case KG_POSSIBILITY_DATA_TYPE.BOOLEAN:
|
9846
|
-
v.forEach((
|
9882
|
+
v.forEach((A) => {
|
9847
9883
|
let k;
|
9848
|
-
String(
|
9884
|
+
String(A[y]).toLowerCase() === "true" ? k = !0 : String(A[y]).toLowerCase() === "false" ? k = !1 : (k = A[y], KgLogger.error(`| \u6570\u636E\u6709\u8BEF | \u65E0\u6CD5\u5C06 ${A[y]} \u8F6C\u6362\u4E3A ${p} \u7C7B\u578B`, {
|
9849
9885
|
frm_id: r.formID,
|
9850
9886
|
var_nam: e,
|
9851
9887
|
VarPossibility: a.value
|
9852
|
-
})),
|
9888
|
+
})), A[y] = k;
|
9853
9889
|
});
|
9854
9890
|
break;
|
9855
9891
|
}
|
9856
9892
|
switch (n.value) {
|
9857
9893
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
9858
9894
|
{
|
9859
|
-
const
|
9860
|
-
if ((T =
|
9895
|
+
const A = s;
|
9896
|
+
if ((T = A.value) != null && T.excludeValues)
|
9861
9897
|
return v.filter((k) => {
|
9862
9898
|
var V;
|
9863
|
-
return !((V =
|
9899
|
+
return !((V = A.value.excludeValues) != null && V.includes(k[y]));
|
9864
9900
|
});
|
9865
9901
|
}
|
9866
9902
|
break;
|
@@ -9963,8 +9999,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
9963
9999
|
"kg-value": E[i.value]
|
9964
10000
|
}, {
|
9965
10001
|
default: () => {
|
9966
|
-
var
|
9967
|
-
return [E[(k = (
|
10002
|
+
var A, k;
|
10003
|
+
return [E[(k = (A = l.value) == null ? void 0 : A.lbl_clm) != null ? k : ""]];
|
9968
10004
|
}
|
9969
10005
|
})]
|
9970
10006
|
});
|
@@ -10301,16 +10337,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10301
10337
|
useKg();
|
10302
10338
|
const s = useKgVar(), l = useKgForm(s.formID), o = useKgSearch(s.formID);
|
10303
10339
|
l.onLookupOk(async ({
|
10304
|
-
var_nam:
|
10305
|
-
model:
|
10306
|
-
isMultiple:
|
10340
|
+
var_nam: M,
|
10341
|
+
model: $,
|
10342
|
+
isMultiple: P,
|
10307
10343
|
value: U,
|
10308
10344
|
values: D
|
10309
10345
|
}) => {
|
10310
|
-
var
|
10311
|
-
switch (
|
10346
|
+
var w;
|
10347
|
+
switch (M) {
|
10312
10348
|
case e.kgVarName:
|
10313
|
-
|
10349
|
+
$.value && (P ? $.value[e.kgVarName] = D : $.value[e.kgVarName] = U), (w = n.value) == null || w.validate([e.kgVarName]);
|
10314
10350
|
break;
|
10315
10351
|
}
|
10316
10352
|
return !1;
|
@@ -10320,117 +10356,117 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10320
10356
|
} = _useRules(e), {
|
10321
10357
|
controlType: v
|
10322
10358
|
} = useKgFormItem(e), y = computed(() => {
|
10323
|
-
var P,
|
10359
|
+
var $, P, U, D, w;
|
10324
10360
|
if (s.isRetrieving.value)
|
10325
10361
|
return !0;
|
10326
|
-
let
|
10362
|
+
let M = !1;
|
10327
10363
|
if (e.kgDisabled !== void 0)
|
10328
|
-
|
10364
|
+
M = e.kgDisabled;
|
10329
10365
|
else
|
10330
10366
|
switch (e.kgContext) {
|
10331
10367
|
case KG_FORM_CONTEXT.SEARCH:
|
10332
|
-
|
10368
|
+
M = (($ = u.value) == null ? void 0 : $.ena_flg) === 0;
|
10333
10369
|
break;
|
10334
10370
|
case KG_FORM_CONTEXT.SUBMIT:
|
10335
10371
|
switch (!0) {
|
10336
10372
|
case s.isCreating.value:
|
10337
|
-
|
10373
|
+
M = ((P = d.value) == null ? void 0 : P.crt_ena_flg) === 0;
|
10338
10374
|
break;
|
10339
10375
|
case s.isUpdating.value:
|
10340
|
-
|
10376
|
+
M = ((U = d.value) == null ? void 0 : U.upt_ena_flg) === 0;
|
10341
10377
|
break;
|
10342
10378
|
case s.isCopying.value:
|
10343
|
-
|
10379
|
+
M = ((D = d.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
10344
10380
|
break;
|
10345
10381
|
case s.isDeleting.value:
|
10346
|
-
|
10382
|
+
M = ((w = d.value) == null ? void 0 : w.del_ena_flg) === 0;
|
10347
10383
|
break;
|
10348
10384
|
}
|
10349
10385
|
break;
|
10350
10386
|
}
|
10351
|
-
return
|
10387
|
+
return M;
|
10352
10388
|
}), p = computed(() => {
|
10353
|
-
var P,
|
10354
|
-
let
|
10389
|
+
var $, P, U, D;
|
10390
|
+
let M = " ";
|
10355
10391
|
if (e.kgPlaceholder)
|
10356
|
-
|
10392
|
+
M = e.kgPlaceholder;
|
10357
10393
|
else
|
10358
10394
|
switch (e.kgContext) {
|
10359
10395
|
case KG_FORM_CONTEXT.SEARCH:
|
10360
|
-
|
10396
|
+
M = s.t((P = ($ = u.value) == null ? void 0 : $.placeholder) != null ? P : " ").value;
|
10361
10397
|
break;
|
10362
10398
|
case KG_FORM_CONTEXT.SUBMIT:
|
10363
|
-
|
10399
|
+
M = s.t((D = (U = d.value) == null ? void 0 : U.placeholder) != null ? D : " ").value;
|
10364
10400
|
break;
|
10365
10401
|
}
|
10366
|
-
return
|
10402
|
+
return M;
|
10367
10403
|
}), g = computed(() => {
|
10368
|
-
var P,
|
10369
|
-
let
|
10404
|
+
var $, P, U, D, w, R, F, L, K, x;
|
10405
|
+
let M = 6;
|
10370
10406
|
if (e.kgSpan !== void 0)
|
10371
|
-
|
10407
|
+
M = e.kgSpan;
|
10372
10408
|
else
|
10373
10409
|
switch (e.kgContext) {
|
10374
10410
|
case KG_FORM_CONTEXT.SEARCH:
|
10375
|
-
|
10411
|
+
M = (P = ($ = u.value) == null ? void 0 : $.width) != null ? P : 6;
|
10376
10412
|
break;
|
10377
10413
|
case KG_FORM_CONTEXT.SUBMIT:
|
10378
10414
|
switch (!0) {
|
10379
10415
|
case s.isCreating.value:
|
10380
|
-
|
10416
|
+
M = (D = (U = d.value) == null ? void 0 : U.crt_width) != null ? D : 6;
|
10381
10417
|
break;
|
10382
10418
|
case s.isUpdating.value:
|
10383
|
-
|
10419
|
+
M = (R = (w = d.value) == null ? void 0 : w.upt_width) != null ? R : 6;
|
10384
10420
|
break;
|
10385
10421
|
case s.isCopying.value:
|
10386
|
-
|
10422
|
+
M = (L = (F = d.value) == null ? void 0 : F.cpy_width) != null ? L : 6;
|
10387
10423
|
break;
|
10388
10424
|
case s.isDeleting.value:
|
10389
|
-
|
10425
|
+
M = (x = (K = d.value) == null ? void 0 : K.del_width) != null ? x : 6;
|
10390
10426
|
break;
|
10391
10427
|
}
|
10392
10428
|
}
|
10393
|
-
return Math.min(24, Math.max(1,
|
10429
|
+
return Math.min(24, Math.max(1, M));
|
10394
10430
|
}), b = computed(() => {
|
10395
10431
|
var U, D;
|
10396
|
-
const
|
10397
|
-
if (
|
10432
|
+
const M = get(A.value, "$el.parentElement");
|
10433
|
+
if (M && !((U = M.classList) != null && U.contains("ant-row")))
|
10398
10434
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
10399
|
-
let
|
10400
|
-
const
|
10401
|
-
return Number.isNaN(
|
10402
|
-
paddingLeft: `${
|
10403
|
-
paddingRight: `${
|
10404
|
-
}),
|
10435
|
+
let $ = {};
|
10436
|
+
const P = Math.abs(Number.parseInt((D = get(A.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
10437
|
+
return Number.isNaN(P) || ($ = {
|
10438
|
+
paddingLeft: `${P}px !important`,
|
10439
|
+
paddingRight: `${P}px !important`
|
10440
|
+
}), $;
|
10405
10441
|
}), E = computed(() => {
|
10406
|
-
var P,
|
10407
|
-
let
|
10408
|
-
switch (i.value && (
|
10442
|
+
var $, P, U, D;
|
10443
|
+
let M = "kg-form-item";
|
10444
|
+
switch (i.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
10409
10445
|
case KG_FORM_CONTEXT.SEARCH:
|
10410
10446
|
switch (!0) {
|
10411
|
-
case ((
|
10412
|
-
|
10447
|
+
case (($ = u.value) == null ? void 0 : $.vis_flg) === 0:
|
10448
|
+
M += " kg-form-item--invisible";
|
10413
10449
|
break;
|
10414
10450
|
}
|
10415
10451
|
break;
|
10416
10452
|
case KG_FORM_CONTEXT.SUBMIT:
|
10417
10453
|
switch (!0) {
|
10418
|
-
case (s.isCreating.value && ((
|
10454
|
+
case (s.isCreating.value && ((P = d.value) == null ? void 0 : P.crt_vis_flg) === 0):
|
10419
10455
|
case (s.isUpdating.value && ((U = d.value) == null ? void 0 : U.upt_vis_flg) === 0):
|
10420
10456
|
case (s.isCopying.value && ((D = d.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
10421
|
-
|
10457
|
+
M += " kg-form-item--invisible";
|
10422
10458
|
break;
|
10423
10459
|
}
|
10424
10460
|
break;
|
10425
10461
|
}
|
10426
|
-
return
|
10462
|
+
return M;
|
10427
10463
|
}), C = computed(() => {
|
10428
|
-
var
|
10429
|
-
const
|
10464
|
+
var $;
|
10465
|
+
const M = {
|
10430
10466
|
...e,
|
10431
|
-
value: (
|
10432
|
-
"onUpdate:value": (
|
10433
|
-
a.value && (a.value[e.kgVarName] =
|
10467
|
+
value: ($ = a.value) == null ? void 0 : $[e.kgVarName],
|
10468
|
+
"onUpdate:value": (P) => {
|
10469
|
+
a.value && (a.value[e.kgVarName] = P);
|
10434
10470
|
},
|
10435
10471
|
kgPlaceholder: p.value,
|
10436
10472
|
kgDisabled: y.value,
|
@@ -10442,34 +10478,34 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10442
10478
|
case KG_FORM_ITEM_TYPE.SELECT:
|
10443
10479
|
break;
|
10444
10480
|
case KG_FORM_ITEM_TYPE.SELECT_MULTIPLE:
|
10445
|
-
|
10481
|
+
M.kgMode = "multiple";
|
10446
10482
|
break;
|
10447
10483
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10448
10484
|
break;
|
10449
10485
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10450
|
-
|
10486
|
+
M.kgShowTime = !1;
|
10451
10487
|
break;
|
10452
10488
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10453
|
-
|
10489
|
+
M.kgShowTime = !1;
|
10454
10490
|
break;
|
10455
10491
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10456
|
-
|
10492
|
+
M.kgPicker = "time";
|
10457
10493
|
break;
|
10458
10494
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10459
|
-
|
10495
|
+
M.kgPicker = "time";
|
10460
10496
|
break;
|
10461
10497
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10462
|
-
|
10498
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10463
10499
|
break;
|
10464
10500
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10465
|
-
|
10501
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10466
10502
|
break;
|
10467
10503
|
}
|
10468
|
-
return
|
10469
|
-
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)),
|
10504
|
+
return M;
|
10505
|
+
}), T = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), A = ref(null);
|
10470
10506
|
function k() {
|
10471
10507
|
if (t.control) {
|
10472
|
-
const
|
10508
|
+
const M = {
|
10473
10509
|
frm_id: s.formID,
|
10474
10510
|
varName: e.kgVarName,
|
10475
10511
|
props: C,
|
@@ -10478,7 +10514,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10478
10514
|
varProfileDetail: u,
|
10479
10515
|
varSubmitField: d
|
10480
10516
|
};
|
10481
|
-
return t.control(
|
10517
|
+
return t.control(M);
|
10482
10518
|
}
|
10483
10519
|
switch (v.value) {
|
10484
10520
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10514,15 +10550,15 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10514
10550
|
}
|
10515
10551
|
}
|
10516
10552
|
function V() {
|
10517
|
-
var
|
10518
|
-
return ((
|
10553
|
+
var M;
|
10554
|
+
return ((M = s.currentVarProfileMaster.value) == null ? void 0 : M.dyn_flg) !== 1 ? null : createVNode(Form.ItemRest, null, {
|
10519
10555
|
default: () => {
|
10520
|
-
var
|
10556
|
+
var $;
|
10521
10557
|
return [createVNode(Select, {
|
10522
|
-
value: (
|
10523
|
-
"onUpdate:value": (
|
10558
|
+
value: ($ = o.operatorModel.value) == null ? void 0 : $[e.kgVarName],
|
10559
|
+
"onUpdate:value": (P) => {
|
10524
10560
|
o.store.patchOperatorModel(s.formID, {
|
10525
|
-
[e.kgVarName]:
|
10561
|
+
[e.kgVarName]: P
|
10526
10562
|
});
|
10527
10563
|
},
|
10528
10564
|
disabled: y.value,
|
@@ -10530,8 +10566,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10530
10566
|
dropdownClassName: "kg-form-item-operator-select-dropdown"
|
10531
10567
|
}, {
|
10532
10568
|
default: () => {
|
10533
|
-
var
|
10534
|
-
return KgVarUtil.getDynamicQueryOperatorSelectOptions((
|
10569
|
+
var P;
|
10570
|
+
return KgVarUtil.getDynamicQueryOperatorSelectOptions((P = v.value) != null ? P : "");
|
10535
10571
|
},
|
10536
10572
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
10537
10573
|
class: "ant-select-suffix"
|
@@ -10540,14 +10576,14 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10540
10576
|
}
|
10541
10577
|
});
|
10542
10578
|
}
|
10543
|
-
function
|
10579
|
+
function O() {
|
10544
10580
|
return e.kgShowLabel ? createVNode("span", {
|
10545
10581
|
title: s.t(e.kgVarName).value
|
10546
10582
|
}, [s.t(e.kgVarName).value]) : null;
|
10547
10583
|
}
|
10548
10584
|
function I() {
|
10549
|
-
var
|
10550
|
-
return !i.value || !((
|
10585
|
+
var M;
|
10586
|
+
return !i.value || !((M = i.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10551
10587
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
10552
10588
|
kgDisabled: y.value,
|
10553
10589
|
kgLookupID: i.value.lkp_id
|
@@ -10555,16 +10591,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10555
10591
|
});
|
10556
10592
|
}
|
10557
10593
|
return () => {
|
10558
|
-
var
|
10594
|
+
var M, $;
|
10559
10595
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10560
|
-
ref:
|
10596
|
+
ref: A,
|
10561
10597
|
span: g.value,
|
10562
10598
|
class: E.value,
|
10563
10599
|
style: b.value,
|
10564
10600
|
"kg-frm_id": s.formID,
|
10565
10601
|
"kg-var_nam": e.kgVarName,
|
10566
|
-
"kg-lkp_id": (
|
10567
|
-
"kg-ret_fld": (
|
10602
|
+
"kg-lkp_id": (M = i.value) == null ? void 0 : M.lkp_id,
|
10603
|
+
"kg-ret_fld": ($ = i.value) == null ? void 0 : $.ret_fld
|
10568
10604
|
}, {
|
10569
10605
|
default: () => [createVNode(Form.Item, {
|
10570
10606
|
name: e.kgVarName,
|
@@ -10573,7 +10609,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10573
10609
|
htmlFor: T.value
|
10574
10610
|
}, {
|
10575
10611
|
default: () => createVNode(Fragment, null, [V(), k(), I()]),
|
10576
|
-
label: () =>
|
10612
|
+
label: () => O()
|
10577
10613
|
})]
|
10578
10614
|
});
|
10579
10615
|
};
|
@@ -11010,8 +11046,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
11010
11046
|
}) => {
|
11011
11047
|
const u = s.store.getVarSubmitConfig(s.formID);
|
11012
11048
|
return o = watch(c, (d) => {
|
11013
|
-
var m, v, y, p, g, b, E, C, T,
|
11014
|
-
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : 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 = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (
|
11049
|
+
var m, v, y, p, g, b, E, C, T, A, k, V;
|
11050
|
+
d && (d.id = (m = u == null ? void 0 : u.id) != null ? m : 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 = (g = u == null ? void 0 : u.responsive_flg) != null ? g : 1, d.max_width = (b = u == null ? void 0 : u.max_width) != null ? b : DEFAULT_MAX_WIDTH, d.min_width = (E = u == null ? void 0 : u.min_width) != null ? E : DEFAULT_MIN_WIDTH, d.dft_width = (C = u == null ? void 0 : u.dft_width) != null ? C : DEFAULT_WIDTH, d.layout = (T = u == null ? void 0 : u.layout) != null ? T : KG_VAR_SUBMIT__LAYOUT.VERTICAL, d.label_col = (A = u == null ? void 0 : u.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, d.label_col_unit = (k = u == null ? void 0 : u.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, d.display_type = (V = u == null ? void 0 : u.display_type) != null ? V : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
11015
11051
|
}, {
|
11016
11052
|
immediate: !0
|
11017
11053
|
}), KgUtil.hideLoading(), !1;
|
@@ -11114,7 +11150,7 @@ function _useFormModel$1() {
|
|
11114
11150
|
}
|
11115
11151
|
const d = r.selectedRow.value;
|
11116
11152
|
u.forEach((m) => {
|
11117
|
-
var y, p, g, b, E, C, T,
|
11153
|
+
var y, p, g, b, E, C, T, A;
|
11118
11154
|
const v = (y = m.var_nam) != null ? y : "";
|
11119
11155
|
switch (c.value[v] = void 0, !0) {
|
11120
11156
|
case t.isCreating.value:
|
@@ -11127,7 +11163,7 @@ function _useFormModel$1() {
|
|
11127
11163
|
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (C = (E = m.cpy_dft_val) != null ? E : d == null ? void 0 : d[v]) != null ? C : void 0, "CP");
|
11128
11164
|
break;
|
11129
11165
|
case t.isDeleting.value:
|
11130
|
-
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (
|
11166
|
+
c.value.id = d == null ? void 0 : d.id, c.value[v] = KgVarUtil.transformFormItemValue(t.formID, v, e, (A = (T = m.del_dft_val) != null ? T : d == null ? void 0 : d[v]) != null ? A : void 0, "D");
|
11131
11167
|
break;
|
11132
11168
|
}
|
11133
11169
|
}), a.store.setModel(t.formID, c.value);
|
@@ -11275,81 +11311,107 @@ const getProps$p = () => ({
|
|
11275
11311
|
const r = inject("$dayjs", dayjs), a = inject(DI_KG_VAR__KG_SLOTS, null);
|
11276
11312
|
inject(DI_KG_VAR__KG_PROPS, null);
|
11277
11313
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = useKgSearch();
|
11278
|
-
l.onSubmitSave(async () => (await
|
11279
|
-
const u = computed(() => s.isDeleting.value &&
|
11280
|
-
var
|
11314
|
+
l.onSubmitSave(async () => (await B(), !1)), l.onSubmitCancel(async () => (await N(), !1)), _useFormModel$1();
|
11315
|
+
const u = computed(() => s.isDeleting.value && M.value.length === 0 && P.value.length === 0), d = computed(() => i.store.isLoading(s.formID)), m = 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)), g = computed(() => s.store.getVarSubmitFieldsForUpdateNotKey(s.formID)), b = computed(() => s.store.getVarSubmitFieldsForCopyKey(s.formID)), E = computed(() => s.store.getVarSubmitFieldsForCopyNotKey(s.formID)), C = computed(() => s.store.getVarSubmitFieldsForCreateKeyVisible(s.formID)), T = computed(() => s.store.getVarSubmitFieldsForCreateNotKeyVisible(s.formID)), A = computed(() => s.store.getVarSubmitFieldsForUpdateKeyVisible(s.formID)), k = computed(() => s.store.getVarSubmitFieldsForUpdateNotKeyVisible(s.formID)), V = computed(() => s.store.getVarSubmitFieldsForCopyKeyVisible(s.formID)), O = computed(() => s.store.getVarSubmitFieldsForCopyNotKeyVisible(s.formID)), I = computed(() => s.store.getVarSubmitFieldsForDelete(s.formID)), M = computed(() => {
|
11316
|
+
var G, W, X;
|
11281
11317
|
switch (!0) {
|
11282
11318
|
case s.isCreating.value:
|
11283
|
-
return (
|
11319
|
+
return (G = v.value) != null ? G : [];
|
11284
11320
|
case s.isUpdating.value:
|
11285
|
-
return (
|
11321
|
+
return (W = p.value) != null ? W : [];
|
11286
11322
|
case s.isCopying.value:
|
11287
|
-
return (
|
11323
|
+
return (X = b.value) != null ? X : [];
|
11288
11324
|
case s.isDeleting.value:
|
11289
11325
|
return [];
|
11290
11326
|
}
|
11291
11327
|
return [];
|
11292
|
-
}),
|
11293
|
-
var
|
11328
|
+
}), $ = computed(() => {
|
11329
|
+
var G, W, X;
|
11294
11330
|
switch (!0) {
|
11295
11331
|
case s.isCreating.value:
|
11296
|
-
return (
|
11332
|
+
return (G = C.value) != null ? G : [];
|
11297
11333
|
case s.isUpdating.value:
|
11298
|
-
return (
|
11334
|
+
return (W = A.value) != null ? W : [];
|
11299
11335
|
case s.isCopying.value:
|
11300
|
-
return (
|
11336
|
+
return (X = V.value) != null ? X : [];
|
11301
11337
|
case s.isDeleting.value:
|
11302
|
-
return
|
11338
|
+
return [];
|
11303
11339
|
}
|
11304
11340
|
return [];
|
11305
|
-
}), k = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), V = computed(() => k.value || d.value), w = computed(() => d.value), I = ref({
|
11306
|
-
kgWidth: 0
|
11307
|
-
}), A = computed(() => {
|
11308
|
-
var $;
|
11309
|
-
return !!(u.value || F.isFullscreen || (($ = m.value) == null ? void 0 : $.resizable_flg) === 0);
|
11310
11341
|
}), P = computed(() => {
|
11311
|
-
var
|
11312
|
-
|
11313
|
-
|
11314
|
-
|
11315
|
-
|
11316
|
-
|
11317
|
-
|
11318
|
-
|
11342
|
+
var G, W, X, te;
|
11343
|
+
switch (!0) {
|
11344
|
+
case s.isCreating.value:
|
11345
|
+
return (G = y.value) != null ? G : [];
|
11346
|
+
case s.isUpdating.value:
|
11347
|
+
return (W = g.value) != null ? W : [];
|
11348
|
+
case s.isCopying.value:
|
11349
|
+
return (X = E.value) != null ? X : [];
|
11350
|
+
case s.isDeleting.value:
|
11351
|
+
return (te = I.value) != null ? te : [];
|
11352
|
+
}
|
11353
|
+
return [];
|
11354
|
+
}), U = computed(() => {
|
11355
|
+
var G, W, X, te;
|
11356
|
+
switch (!0) {
|
11357
|
+
case s.isCreating.value:
|
11358
|
+
return (G = T.value) != null ? G : [];
|
11359
|
+
case s.isUpdating.value:
|
11360
|
+
return (W = k.value) != null ? W : [];
|
11361
|
+
case s.isCopying.value:
|
11362
|
+
return (X = O.value) != null ? X : [];
|
11363
|
+
case s.isDeleting.value:
|
11364
|
+
return (te = I.value) != null ? te : [];
|
11365
|
+
}
|
11366
|
+
return [];
|
11367
|
+
}), D = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), w = computed(() => D.value || d.value), R = computed(() => d.value), F = ref({
|
11368
|
+
kgWidth: 0
|
11369
|
+
}), L = computed(() => {
|
11370
|
+
var G;
|
11371
|
+
return !!(u.value || ue.isFullscreen || ((G = m.value) == null ? void 0 : G.resizable_flg) === 0);
|
11372
|
+
}), K = computed(() => {
|
11373
|
+
var G, W;
|
11374
|
+
return u.value ? 398 : (W = (G = m.value) == null ? void 0 : G.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
11375
|
+
}), x = computed(() => {
|
11376
|
+
var G, W;
|
11377
|
+
return u.value ? 398 : (W = (G = m.value) == null ? void 0 : G.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
11378
|
+
}), Y = computed(() => u.value ? 398 : F.value.kgWidth), Q = ref(null);
|
11379
|
+
_useResizeObserver$1(Q);
|
11380
|
+
const z = _useTitle(), Z = computed(() => u.value ? 400 : F.value.kgWidth && F.value.kgWidth > 0 ? "auto" : 0), re = computed(() => Z.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), ue = reactive({
|
11319
11381
|
isFullscreen: !1
|
11320
11382
|
}), {
|
11321
|
-
getClass:
|
11322
|
-
} = _useClass(e,
|
11323
|
-
getLayout:
|
11383
|
+
getClass: _e
|
11384
|
+
} = _useClass(e, ue), {
|
11385
|
+
getLayout: he
|
11324
11386
|
} = _useLayout(), {
|
11325
|
-
getDefaultWidth:
|
11326
|
-
} = _useDefaultWidth(),
|
11327
|
-
var
|
11328
|
-
switch (
|
11387
|
+
getDefaultWidth: ge
|
11388
|
+
} = _useDefaultWidth(), se = computed(() => {
|
11389
|
+
var G, W, X;
|
11390
|
+
switch (he.value) {
|
11329
11391
|
case "horizontal":
|
11330
|
-
switch ((
|
11392
|
+
switch ((G = m.value) == null ? void 0 : G.label_col_unit) {
|
11331
11393
|
case KG_WIDTH_UNIT.SPAN:
|
11332
11394
|
return {
|
11333
|
-
span: (
|
11395
|
+
span: (W = m.value) == null ? void 0 : W.label_col
|
11334
11396
|
};
|
11335
11397
|
default:
|
11336
11398
|
return {
|
11337
11399
|
style: {
|
11338
|
-
width: `${(
|
11400
|
+
width: `${(X = m.value) == null ? void 0 : X.label_col}px`
|
11339
11401
|
}
|
11340
11402
|
};
|
11341
11403
|
}
|
11342
11404
|
default:
|
11343
11405
|
return;
|
11344
11406
|
}
|
11345
|
-
}),
|
11346
|
-
var
|
11347
|
-
switch (
|
11407
|
+
}), fe = computed(() => {
|
11408
|
+
var G, W;
|
11409
|
+
switch (he.value) {
|
11348
11410
|
case "horizontal":
|
11349
|
-
switch ((
|
11411
|
+
switch ((G = m.value) == null ? void 0 : G.label_col_unit) {
|
11350
11412
|
case KG_WIDTH_UNIT.SPAN:
|
11351
11413
|
return {
|
11352
|
-
span: 24 - ((
|
11414
|
+
span: 24 - ((W = m.value) == null ? void 0 : W.label_col)
|
11353
11415
|
};
|
11354
11416
|
default:
|
11355
11417
|
return;
|
@@ -11358,16 +11420,16 @@ const getProps$p = () => ({
|
|
11358
11420
|
return;
|
11359
11421
|
}
|
11360
11422
|
});
|
11361
|
-
watch(
|
11362
|
-
|
11423
|
+
watch(re, (G, W) => {
|
11424
|
+
G === !0 && ve(), W === !0 && G === !1 && be();
|
11363
11425
|
}, {
|
11364
11426
|
immediate: !0
|
11365
|
-
}), watch(
|
11366
|
-
|
11427
|
+
}), watch(ge, (G) => {
|
11428
|
+
G && (F.value.kgWidth = G);
|
11367
11429
|
}, {
|
11368
11430
|
immediate: !0
|
11369
11431
|
});
|
11370
|
-
async function
|
11432
|
+
async function ve() {
|
11371
11433
|
if (!await i.store.emit(s.formID, "beforeOpen", {
|
11372
11434
|
isCreating: s.isCreating.value,
|
11373
11435
|
isUpdating: s.isUpdating.value,
|
@@ -11375,27 +11437,27 @@ const getProps$p = () => ({
|
|
11375
11437
|
isDeleting: s.isDeleting.value,
|
11376
11438
|
row: o.selectedRow.value
|
11377
11439
|
}))
|
11378
|
-
return new Promise((
|
11379
|
-
var
|
11380
|
-
const
|
11381
|
-
|
11440
|
+
return new Promise((W, X) => {
|
11441
|
+
var ie;
|
11442
|
+
const te = watch(i.model, async (le) => {
|
11443
|
+
le && Object.keys(le).length > 0 && (setTimeout(() => te()), await i.store.emit(s.formID, "open", {
|
11382
11444
|
isCreating: s.isCreating.value,
|
11383
11445
|
isUpdating: s.isUpdating.value,
|
11384
11446
|
isCopying: s.isCopying.value,
|
11385
11447
|
isDeleting: s.isDeleting.value,
|
11386
11448
|
row: o.selectedRow.value,
|
11387
11449
|
model: i.model
|
11388
|
-
}),
|
11450
|
+
}), W());
|
11389
11451
|
}, {
|
11390
11452
|
immediate: !0
|
11391
11453
|
});
|
11392
|
-
((
|
11454
|
+
((ie = m.value) == null ? void 0 : ie.dft_fullscreen_flg) === 1 && !u.value && (ue.isFullscreen = !0);
|
11393
11455
|
});
|
11394
11456
|
}
|
11395
|
-
async function
|
11396
|
-
|
11457
|
+
async function be() {
|
11458
|
+
F.value.kgWidth = ge.value, ue.isFullscreen = !1, await i.store.emit(s.formID, "close", null);
|
11397
11459
|
}
|
11398
|
-
function
|
11460
|
+
function N() {
|
11399
11461
|
switch (!0) {
|
11400
11462
|
case s.isCreating.value:
|
11401
11463
|
s.store.setIsCreating(s.formID, !1);
|
@@ -11411,8 +11473,8 @@ const getProps$p = () => ({
|
|
11411
11473
|
break;
|
11412
11474
|
}
|
11413
11475
|
}
|
11414
|
-
async function
|
11415
|
-
var
|
11476
|
+
async function B() {
|
11477
|
+
var G, W;
|
11416
11478
|
try {
|
11417
11479
|
if (await i.store.emit(s.formID, "beforeOk", {
|
11418
11480
|
isCreating: s.isCreating.value,
|
@@ -11425,11 +11487,11 @@ const getProps$p = () => ({
|
|
11425
11487
|
}))
|
11426
11488
|
return;
|
11427
11489
|
try {
|
11428
|
-
await ((
|
11429
|
-
} catch (
|
11430
|
-
KgUtil.throwIfNotFormError(
|
11490
|
+
await ((G = i.formRef.value) == null ? void 0 : G.validate());
|
11491
|
+
} catch (ie) {
|
11492
|
+
KgUtil.throwIfNotFormError(ie);
|
11431
11493
|
}
|
11432
|
-
if (await ((
|
11494
|
+
if (await ((W = i.formRef.value) == null ? void 0 : W.validate()), await i.store.emit(s.formID, "afterValidate", {
|
11433
11495
|
isCreating: s.isCreating.value,
|
11434
11496
|
isUpdating: s.isUpdating.value,
|
11435
11497
|
isCopying: s.isCopying.value,
|
@@ -11441,26 +11503,26 @@ const getProps$p = () => ({
|
|
11441
11503
|
return;
|
11442
11504
|
switch (!0) {
|
11443
11505
|
case s.isCreating.value:
|
11444
|
-
await
|
11506
|
+
await q();
|
11445
11507
|
break;
|
11446
11508
|
case s.isUpdating.value:
|
11447
|
-
await
|
11509
|
+
await H();
|
11448
11510
|
break;
|
11449
11511
|
case s.isCopying.value:
|
11450
|
-
await
|
11512
|
+
await J();
|
11451
11513
|
break;
|
11452
11514
|
case s.isDeleting.value:
|
11453
|
-
await
|
11515
|
+
await ee();
|
11454
11516
|
break;
|
11455
11517
|
}
|
11456
|
-
} catch (
|
11457
|
-
KgUtil.throwIfNotFormError(
|
11518
|
+
} catch (X) {
|
11519
|
+
KgUtil.throwIfNotFormError(X);
|
11458
11520
|
}
|
11459
11521
|
}
|
11460
|
-
async function
|
11461
|
-
var
|
11462
|
-
const
|
11463
|
-
if (
|
11522
|
+
async function q() {
|
11523
|
+
var W, X, te, ie, le, ce;
|
11524
|
+
const G = (W = s.varButtonCreate.value) == null ? void 0 : W.cmd;
|
11525
|
+
if (!G) {
|
11464
11526
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11465
11527
|
VarButton: s.varButtonCreate.value
|
11466
11528
|
});
|
@@ -11468,7 +11530,7 @@ const getProps$p = () => ({
|
|
11468
11530
|
}
|
11469
11531
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
11470
11532
|
try {
|
11471
|
-
let
|
11533
|
+
let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonCreate.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), de = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11472
11534
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11473
11535
|
isCreating: s.isCreating.value,
|
11474
11536
|
isUpdating: s.isUpdating.value,
|
@@ -11477,16 +11539,16 @@ const getProps$p = () => ({
|
|
11477
11539
|
row: o.selectedFirstRow.value,
|
11478
11540
|
rows: o.selectedRows.value,
|
11479
11541
|
model: i.model,
|
11480
|
-
params:
|
11481
|
-
data:
|
11542
|
+
params: ne,
|
11543
|
+
data: de
|
11482
11544
|
}))
|
11483
11545
|
return;
|
11484
11546
|
await httpClient().request({
|
11485
|
-
method: (
|
11486
|
-
url:
|
11487
|
-
params:
|
11488
|
-
data:
|
11489
|
-
}), ((
|
11547
|
+
method: (le = (ie = s.varButtonCreate.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
|
11548
|
+
url: G,
|
11549
|
+
params: ne.value,
|
11550
|
+
data: de.value
|
11551
|
+
}), ((ce = s.varButtonCreate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(z.title.value + n.t("kg.succeed")), await i.store.emit(s.formID, "ok", {
|
11490
11552
|
isCreating: s.isCreating.value,
|
11491
11553
|
isUpdating: s.isUpdating.value,
|
11492
11554
|
isCopying: s.isCopying.value,
|
@@ -11494,16 +11556,16 @@ const getProps$p = () => ({
|
|
11494
11556
|
row: o.selectedFirstRow.value,
|
11495
11557
|
model: i.model
|
11496
11558
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
11497
|
-
} catch (
|
11498
|
-
console.error(
|
11559
|
+
} catch (ne) {
|
11560
|
+
console.error(ne), i.store.emit(s.formID, "error", ne);
|
11499
11561
|
} finally {
|
11500
11562
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
11501
11563
|
}
|
11502
11564
|
}
|
11503
|
-
async function
|
11504
|
-
var
|
11505
|
-
const
|
11506
|
-
if (
|
11565
|
+
async function H() {
|
11566
|
+
var W, X, te, ie, le, ce;
|
11567
|
+
const G = (W = s.varButtonUpdate.value) == null ? void 0 : W.cmd;
|
11568
|
+
if (!G) {
|
11507
11569
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11508
11570
|
VarButton: s.varButtonUpdate.value
|
11509
11571
|
});
|
@@ -11511,7 +11573,7 @@ const getProps$p = () => ({
|
|
11511
11573
|
}
|
11512
11574
|
try {
|
11513
11575
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
11514
|
-
let
|
11576
|
+
let ne = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonUpdate.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), de = ref(KgUtil.parseParams(toRaw(i.model.value), s.formID, r));
|
11515
11577
|
if (await i.store.emit(s.formID, "beforeRequest", {
|
11516
11578
|
isCreating: s.isCreating.value,
|
11517
11579
|
isUpdating: s.isUpdating.value,
|
@@ -11520,16 +11582,16 @@ const getProps$p = () => ({
|
|
11520
11582
|
row: o.selectedRow.value,
|
11521
11583
|
rows: o.selectedRows.value,
|
11522
11584
|
model: i.model,
|
11523
|
-
params:
|
11524
|
-
data:
|
11585
|
+
params: ne,
|
11586
|
+
data: de
|
11525
11587
|
}))
|
11526
11588
|
return;
|
11527
11589
|
await httpClient().request({
|
11528
|
-
method: (
|
11529
|
-
url:
|
11530
|
-
params:
|
11531
|
-
data:
|
11532
|
-
}), ((
|
11590
|
+
method: (le = (ie = s.varButtonUpdate.value) == null ? void 0 : ie.cmd_method) != null ? le : "POST",
|
11591
|
+
url: G,
|
11592
|
+
params: ne.value,
|
11593
|
+
data: de.value
|
11594
|
+
}), ((ce = s.varButtonUpdate.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await i.store.emit(s.formID, "ok", {
|
11533
11595
|
isCreating: s.isCreating.value,
|
11534
11596
|
isUpdating: s.isUpdating.value,
|
11535
11597
|
isCopying: s.isCopying.value,
|
@@ -11537,16 +11599,16 @@ const getProps$p = () => ({
|
|
11537
11599
|
row: o.selectedFirstRow.value,
|
11538
11600
|
model: i.model
|
11539
11601
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
11540
|
-
} catch (
|
11541
|
-
console.error(
|
11602
|
+
} catch (ne) {
|
11603
|
+
console.error(ne), i.store.emit(s.formID, "error", ne);
|
11542
11604
|
} finally {
|
11543
11605
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11544
11606
|
}
|
11545
11607
|
}
|
11546
|
-
async function
|
11547
|
-
var
|
11548
|
-
const
|
11549
|
-
if (
|
11608
|
+
async function J() {
|
11609
|
+
var W, X, te, ie, le, ce, ne, de;
|
11610
|
+
const G = (W = s.varButtonCopy.value) == null ? void 0 : W.cmd;
|
11611
|
+
if (!G) {
|
11550
11612
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11551
11613
|
VarButton: s.varButtonCopy.value
|
11552
11614
|
});
|
@@ -11554,11 +11616,11 @@ const getProps$p = () => ({
|
|
11554
11616
|
}
|
11555
11617
|
try {
|
11556
11618
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11557
|
-
let
|
11558
|
-
...(
|
11619
|
+
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonCopy.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), ye = ref(KgUtil.parseParams({
|
11620
|
+
...(ie = o.selectedFirstRow.value) != null ? ie : {},
|
11559
11621
|
...toRaw(i.model.value)
|
11560
11622
|
}, s.formID, r));
|
11561
|
-
if (((
|
11623
|
+
if (((le = m.value) == null ? void 0 : le.cpy_clear_id_flg) !== 0 && delete ye.value.id, await i.store.emit(s.formID, "beforeRequest", {
|
11562
11624
|
isCreating: s.isCreating.value,
|
11563
11625
|
isUpdating: s.isUpdating.value,
|
11564
11626
|
isCopying: s.isCopying.value,
|
@@ -11566,16 +11628,16 @@ const getProps$p = () => ({
|
|
11566
11628
|
row: o.selectedRow.value,
|
11567
11629
|
rows: o.selectedRows.value,
|
11568
11630
|
model: i.model,
|
11569
|
-
params:
|
11570
|
-
data:
|
11631
|
+
params: me,
|
11632
|
+
data: ye
|
11571
11633
|
}))
|
11572
11634
|
return;
|
11573
11635
|
await httpClient().request({
|
11574
|
-
method: (
|
11575
|
-
url:
|
11576
|
-
params:
|
11577
|
-
data:
|
11578
|
-
}), ((
|
11636
|
+
method: (ne = (ce = s.varButtonCopy.value) == null ? void 0 : ce.cmd_method) != null ? ne : "POST",
|
11637
|
+
url: G,
|
11638
|
+
params: me.value,
|
11639
|
+
data: ye.value
|
11640
|
+
}), ((de = s.varButtonCopy.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await i.store.emit(s.formID, "ok", {
|
11579
11641
|
isCreating: s.isCreating.value,
|
11580
11642
|
isUpdating: s.isUpdating.value,
|
11581
11643
|
isCopying: s.isCopying.value,
|
@@ -11583,16 +11645,16 @@ const getProps$p = () => ({
|
|
11583
11645
|
row: o.selectedFirstRow.value,
|
11584
11646
|
model: i.model
|
11585
11647
|
}), s.store.setIsCopying(s.formID, !1), c.search(!0);
|
11586
|
-
} catch (
|
11587
|
-
console.error(
|
11648
|
+
} catch (me) {
|
11649
|
+
console.error(me), i.store.emit(s.formID, "error", me);
|
11588
11650
|
} finally {
|
11589
11651
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11590
11652
|
}
|
11591
11653
|
}
|
11592
|
-
async function
|
11593
|
-
var
|
11594
|
-
const
|
11595
|
-
if (
|
11654
|
+
async function ee() {
|
11655
|
+
var W, X, te, ie, le, ce, ne, de, me, ye;
|
11656
|
+
const G = (W = s.varButtonDelete.value) == null ? void 0 : W.cmd;
|
11657
|
+
if (!G) {
|
11596
11658
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
11597
11659
|
VarButton: s.varButtonDelete.value
|
11598
11660
|
});
|
@@ -11600,13 +11662,13 @@ const getProps$p = () => ({
|
|
11600
11662
|
}
|
11601
11663
|
try {
|
11602
11664
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11603
|
-
let
|
11604
|
-
if (((
|
11605
|
-
ids: (
|
11606
|
-
var
|
11607
|
-
return (
|
11608
|
-
})) != null ?
|
11609
|
-
}),
|
11665
|
+
let Ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((te = (X = s.varButtonDelete.value) == null ? void 0 : X.cmd_prm) != null ? te : ""), s.formID, r)), Te = ref((ie = o.selectedRows.value) != null ? ie : []);
|
11666
|
+
if (((le = s.varButtonDelete.value) == null ? void 0 : le.del_param_clm) !== "__kg__new_delete_param" && (Ee = ref({
|
11667
|
+
ids: (ne = (ce = o.selectedRows.value) == null ? void 0 : ce.map((Ie) => {
|
11668
|
+
var ke, Ae, Me;
|
11669
|
+
return (Me = Ie[(Ae = (ke = s.varButtonDelete.value) == null ? void 0 : ke.del_param_clm) != null ? Ae : "id"]) != null ? Me : "";
|
11670
|
+
})) != null ? ne : []
|
11671
|
+
}), Te = ref({})), await i.store.emit(s.formID, "beforeRequest", {
|
11610
11672
|
isCreating: s.isCreating.value,
|
11611
11673
|
isUpdating: s.isUpdating.value,
|
11612
11674
|
isCopying: s.isCopying.value,
|
@@ -11614,18 +11676,18 @@ const getProps$p = () => ({
|
|
11614
11676
|
row: o.selectedFirstRow.value,
|
11615
11677
|
rows: o.selectedRows.value,
|
11616
11678
|
model: i.model,
|
11617
|
-
params:
|
11618
|
-
data:
|
11679
|
+
params: Ee,
|
11680
|
+
data: Te
|
11619
11681
|
}))
|
11620
11682
|
return;
|
11621
11683
|
await httpClient().request({
|
11622
|
-
method: (
|
11623
|
-
url:
|
11624
|
-
params:
|
11625
|
-
data:
|
11684
|
+
method: (me = (de = s.varButtonDelete.value) == null ? void 0 : de.cmd_method) != null ? me : "DELETE",
|
11685
|
+
url: G,
|
11686
|
+
params: Ee.value,
|
11687
|
+
data: Te.value
|
11626
11688
|
}, {
|
11627
11689
|
joinParamsToUrl: !0
|
11628
|
-
}), ((
|
11690
|
+
}), ((ye = s.varButtonDelete.value) == null ? void 0 : ye.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await l.store.emit(s.formID, "deleteOk", {
|
11629
11691
|
button: s.varButtonDelete.value,
|
11630
11692
|
rows: o.selectedRows.value
|
11631
11693
|
}), await i.store.emit(s.formID, "ok", {
|
@@ -11636,54 +11698,54 @@ const getProps$p = () => ({
|
|
11636
11698
|
row: o.selectedFirstRow.value,
|
11637
11699
|
model: i.model
|
11638
11700
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
11639
|
-
} catch (
|
11640
|
-
console.error(
|
11701
|
+
} catch (Ee) {
|
11702
|
+
console.error(Ee), i.store.emit(s.formID, "error", Ee);
|
11641
11703
|
} finally {
|
11642
11704
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11643
11705
|
}
|
11644
11706
|
}
|
11645
|
-
function
|
11646
|
-
var
|
11647
|
-
const
|
11648
|
-
return isFunction$2(
|
11649
|
-
kgVarName:
|
11707
|
+
function oe(G) {
|
11708
|
+
var X, te;
|
11709
|
+
const W = (te = (X = a == null ? void 0 : a.KgSubmit) == null ? void 0 : X["KgForm.Item"]) == null ? void 0 : te[G.var_nam];
|
11710
|
+
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
11711
|
+
kgVarName: G.var_nam,
|
11650
11712
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11651
|
-
kgRules: i.rules.value[
|
11652
|
-
onKgSubmit:
|
11713
|
+
kgRules: i.rules.value[G.var_nam],
|
11714
|
+
onKgSubmit: B
|
11653
11715
|
}, {
|
11654
11716
|
control: ({
|
11655
|
-
frm_id:
|
11656
|
-
varName:
|
11657
|
-
props:
|
11658
|
-
model:
|
11659
|
-
varVariableConfig:
|
11660
|
-
varProfileDetail:
|
11661
|
-
varSubmitField:
|
11662
|
-
}) =>
|
11663
|
-
frm_id:
|
11664
|
-
varName:
|
11665
|
-
props:
|
11666
|
-
model:
|
11667
|
-
varVariableConfig:
|
11668
|
-
varProfileDetail:
|
11669
|
-
varSubmitField:
|
11717
|
+
frm_id: ie,
|
11718
|
+
varName: le,
|
11719
|
+
props: ce,
|
11720
|
+
model: ne,
|
11721
|
+
varVariableConfig: de,
|
11722
|
+
varProfileDetail: me,
|
11723
|
+
varSubmitField: ye
|
11724
|
+
}) => W({
|
11725
|
+
frm_id: ie,
|
11726
|
+
varName: le,
|
11727
|
+
props: ce,
|
11728
|
+
model: ne,
|
11729
|
+
varVariableConfig: de,
|
11730
|
+
varProfileDetail: me,
|
11731
|
+
varSubmitField: ye
|
11670
11732
|
})
|
11671
11733
|
}) : createVNode(KgForm.Item, {
|
11672
|
-
kgVarName:
|
11734
|
+
kgVarName: G.var_nam,
|
11673
11735
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
11674
|
-
kgRules: i.rules.value[
|
11675
|
-
onKgSubmit:
|
11736
|
+
kgRules: i.rules.value[G.var_nam],
|
11737
|
+
onKgSubmit: B
|
11676
11738
|
}, null);
|
11677
11739
|
}
|
11678
|
-
function
|
11679
|
-
let
|
11740
|
+
function ae() {
|
11741
|
+
let G, W;
|
11680
11742
|
return createVNode(KgResizable, {
|
11681
11743
|
kgType: i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11682
|
-
kgMinWidth:
|
11683
|
-
kgMaxWidth:
|
11684
|
-
kgWidth:
|
11685
|
-
kgDisabled:
|
11686
|
-
"onUpdate:kgWidth": (
|
11744
|
+
kgMinWidth: K.value,
|
11745
|
+
kgMaxWidth: x.value,
|
11746
|
+
kgWidth: Y.value,
|
11747
|
+
kgDisabled: L.value,
|
11748
|
+
"onUpdate:kgWidth": (X) => F.value.kgWidth = X
|
11687
11749
|
}, {
|
11688
11750
|
default: () => [createVNode(Spin, {
|
11689
11751
|
spinning: d.value
|
@@ -11691,20 +11753,20 @@ const getProps$p = () => ({
|
|
11691
11753
|
default: () => [createVNode(KgForm, {
|
11692
11754
|
ref: i.formRef,
|
11693
11755
|
model: i.model.value,
|
11694
|
-
layout:
|
11695
|
-
labelCol:
|
11696
|
-
wrapperCol:
|
11756
|
+
layout: he.value,
|
11757
|
+
labelCol: se.value,
|
11758
|
+
wrapperCol: fe.value
|
11697
11759
|
}, {
|
11698
11760
|
default: () => [createVNode("div", {
|
11699
|
-
ref:
|
11700
|
-
}, [
|
11761
|
+
ref: Q
|
11762
|
+
}, [M.value.length > 0 && createVNode(Row, {
|
11701
11763
|
gutter: 12
|
11702
|
-
}, _isSlot$8(
|
11703
|
-
default: () => [
|
11704
|
-
}),
|
11764
|
+
}, _isSlot$8(G = M.value.map(oe)) ? G : {
|
11765
|
+
default: () => [G]
|
11766
|
+
}), $.value.length > 0 && U.value.length > 0 && createVNode(Divider, null, null), P.value.length > 0 && createVNode(Row, {
|
11705
11767
|
gutter: 12
|
11706
|
-
}, _isSlot$8(
|
11707
|
-
default: () => [
|
11768
|
+
}, _isSlot$8(W = P.value.map(oe)) ? W : {
|
11769
|
+
default: () => [W]
|
11708
11770
|
}), u.value && createVNode("div", {
|
11709
11771
|
style: "text-align: center; padding: 6px 0 12px;"
|
11710
11772
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -11712,54 +11774,54 @@ const getProps$p = () => ({
|
|
11712
11774
|
})]
|
11713
11775
|
});
|
11714
11776
|
}
|
11715
|
-
function
|
11716
|
-
let
|
11777
|
+
function pe() {
|
11778
|
+
let G, W;
|
11717
11779
|
return createVNode("div", null, [createVNode(Button, {
|
11718
11780
|
type: "primary",
|
11719
|
-
ghost: !
|
11720
|
-
disabled:
|
11721
|
-
onClick:
|
11722
|
-
}, _isSlot$8(
|
11723
|
-
default: () => [
|
11781
|
+
ghost: !w.value,
|
11782
|
+
disabled: w.value,
|
11783
|
+
onClick: N
|
11784
|
+
}, _isSlot$8(G = n.t("kg.cancel")) ? G : {
|
11785
|
+
default: () => [G]
|
11724
11786
|
}), createVNode(Button, {
|
11725
11787
|
type: "primary",
|
11726
|
-
disabled:
|
11727
|
-
loading:
|
11788
|
+
disabled: R.value,
|
11789
|
+
loading: D.value,
|
11728
11790
|
danger: !!s.isDeleting.value,
|
11729
|
-
onClick:
|
11730
|
-
}, _isSlot$8(
|
11731
|
-
default: () => [
|
11791
|
+
onClick: B
|
11792
|
+
}, _isSlot$8(W = n.t(s.isDeleting.value ? "kg.delete" : "kg.save")) ? W : {
|
11793
|
+
default: () => [W]
|
11732
11794
|
})]);
|
11733
11795
|
}
|
11734
|
-
function
|
11796
|
+
function Se() {
|
11735
11797
|
return createVNode("div", {
|
11736
|
-
title:
|
11737
|
-
}, [
|
11798
|
+
title: z.title.value
|
11799
|
+
}, [z.title.value]);
|
11738
11800
|
}
|
11739
|
-
function
|
11801
|
+
function Ce() {
|
11740
11802
|
return createVNode(KgSubmitHeader, {
|
11741
|
-
isFullscreen:
|
11742
|
-
"onUpdate:isFullscreen": (
|
11803
|
+
isFullscreen: ue.isFullscreen,
|
11804
|
+
"onUpdate:isFullscreen": (G) => ue.isFullscreen = G,
|
11743
11805
|
kgShowFullscreenButton: !u.value,
|
11744
11806
|
kgShowConfigButton: !u.value && e.kgShowConfigButton,
|
11745
|
-
onKgCancel:
|
11807
|
+
onKgCancel: N
|
11746
11808
|
}, null);
|
11747
11809
|
}
|
11748
11810
|
return () => createVNode(Drawer, {
|
11749
|
-
visible:
|
11811
|
+
visible: re.value,
|
11750
11812
|
placement: "right",
|
11751
11813
|
closable: !1,
|
11752
11814
|
maskClosable: !1,
|
11753
11815
|
keyboard: !1,
|
11754
11816
|
destroyOnClose: !0,
|
11755
|
-
width:
|
11756
|
-
class:
|
11817
|
+
width: Z.value,
|
11818
|
+
class: _e.value,
|
11757
11819
|
"kg-frm_id": s.formID
|
11758
11820
|
}, {
|
11759
|
-
title:
|
11760
|
-
extra:
|
11761
|
-
default:
|
11762
|
-
footer:
|
11821
|
+
title: Se,
|
11822
|
+
extra: Ce,
|
11823
|
+
default: ae,
|
11824
|
+
footer: pe
|
11763
11825
|
});
|
11764
11826
|
}
|
11765
11827
|
}), KgYesOrNo$1 = "", getProps$o = () => ({
|
@@ -12078,31 +12140,31 @@ const getProps$n = () => ({
|
|
12078
12140
|
var T;
|
12079
12141
|
try {
|
12080
12142
|
await ((T = y.value) == null ? void 0 : T.validate());
|
12081
|
-
} catch (
|
12082
|
-
KgUtil.throwIfNotFormError(
|
12143
|
+
} catch (A) {
|
12144
|
+
KgUtil.throwIfNotFormError(A);
|
12083
12145
|
}
|
12084
12146
|
return !1;
|
12085
12147
|
});
|
12086
12148
|
const i = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
12087
|
-
var T,
|
12088
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((
|
12149
|
+
var T, A, k, V, O, I;
|
12150
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((k = c.value) == null ? void 0 : k.crt_flg) === 1 || !!n.isUpdating.value && ((V = c.value) == null ? void 0 : V.upt_flg) === 1 || !!n.isCopying.value && ((O = c.value) == null ? void 0 : O.cpy_flg) === 1 || !!n.isDeleting.value && ((I = c.value) == null ? void 0 : I.del_flg) === 1);
|
12089
12151
|
}), d = computed(() => {
|
12090
|
-
var T,
|
12091
|
-
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[o.id.value]) === ((
|
12152
|
+
var T, A;
|
12153
|
+
return l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((T = e.kgRow) == null ? void 0 : T[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);
|
12092
12154
|
}), m = computed(() => {
|
12093
|
-
var
|
12155
|
+
var A, k;
|
12094
12156
|
let T = "kg-table-td";
|
12095
|
-
return ((
|
12157
|
+
return ((A = i.value) == null ? void 0 : A.align) === "center" ? T += " kg-table-td--center" : ((k = i.value) == null ? void 0 : k.align) === "right" && (T += " kg-table-td--right"), u.value && (T += " kg-table-td--submitting"), T;
|
12096
12158
|
}), v = computed(() => {
|
12097
|
-
var
|
12159
|
+
var A, k, V, O, I;
|
12098
12160
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
12099
12161
|
return "";
|
12100
12162
|
let T = e.kgValue;
|
12101
|
-
switch ((
|
12163
|
+
switch ((A = i.value) == null ? void 0 : A.display_type) {
|
12102
12164
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
12103
12165
|
{
|
12104
|
-
const
|
12105
|
-
|
12166
|
+
const M = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12167
|
+
M.dscFieldName ? T = ((V = e.kgRow) == null ? void 0 : V[M.dscFieldName]) || e.kgValue : T = ((O = e.kgRow) == null ? void 0 : O[`${e.kgVarName}_dsc`]) || ((I = e.kgRow) == null ? void 0 : I[`${e.kgVarName}Dsc`]) || e.kgValue;
|
12106
12168
|
}
|
12107
12169
|
break;
|
12108
12170
|
}
|
@@ -12110,18 +12172,18 @@ const getProps$n = () => ({
|
|
12110
12172
|
`)), T;
|
12111
12173
|
}), y = ref(null);
|
12112
12174
|
function p(T) {
|
12113
|
-
var
|
12175
|
+
var A, k, V;
|
12114
12176
|
if (T.detail === 1 && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value))
|
12115
|
-
switch ((
|
12177
|
+
switch ((A = i.value) == null ? void 0 : A.display_type) {
|
12116
12178
|
case KG_TABLE_CELL_DISPLAY_TYPE.UPDATE_LINK:
|
12117
12179
|
T.stopPropagation(), T.preventDefault(), r("kgUpdateLinkClick");
|
12118
12180
|
break;
|
12119
12181
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
12120
12182
|
{
|
12121
12183
|
T.stopPropagation(), T.preventDefault();
|
12122
|
-
const
|
12184
|
+
const O = KgUtil.tryParseJSON((k = i.value) == null ? void 0 : k.display_type_properties);
|
12123
12185
|
(V = a.router.value) == null || V.push({
|
12124
|
-
path:
|
12186
|
+
path: O.path,
|
12125
12187
|
query: e.kgRow
|
12126
12188
|
});
|
12127
12189
|
}
|
@@ -12152,23 +12214,23 @@ const getProps$n = () => ({
|
|
12152
12214
|
});
|
12153
12215
|
}
|
12154
12216
|
function E() {
|
12155
|
-
var T,
|
12217
|
+
var T, A, k, V, O, I, M, $, P, U;
|
12156
12218
|
if (u.value)
|
12157
12219
|
return b();
|
12158
12220
|
switch ((T = i.value) == null ? void 0 : T.display_type) {
|
12159
12221
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
12160
|
-
const D = KgUtil.tryParseJSON((
|
12222
|
+
const D = KgUtil.tryParseJSON((A = i.value) == null ? void 0 : A.display_type_properties);
|
12161
12223
|
return createVNode(KgYesOrNo, {
|
12162
12224
|
kgValue: isNil(e.kgValue) ? void 0 : e.kgValue === ((k = D.yValue) != null ? k : 1),
|
12163
12225
|
kgNilAsFalse: D.nilAsFalse
|
12164
12226
|
}, null);
|
12165
12227
|
}
|
12166
12228
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
12167
|
-
const D = KgUtil.tryParseJSON((V = i.value) == null ? void 0 : V.display_type_properties),
|
12168
|
-
if (
|
12169
|
-
const R = n.t(
|
12229
|
+
const D = KgUtil.tryParseJSON((V = i.value) == null ? void 0 : V.display_type_properties), w = isArrayLike(D) && D.find((R) => R.value === e.kgValue);
|
12230
|
+
if (w) {
|
12231
|
+
const R = n.t(w.varName).value;
|
12170
12232
|
return R ? createVNode(Tag, {
|
12171
|
-
color: (
|
12233
|
+
color: (O = w.color) != null ? O : "default"
|
12172
12234
|
}, _isSlot$7(R) ? R : {
|
12173
12235
|
default: () => [R]
|
12174
12236
|
}) : C();
|
@@ -12178,9 +12240,9 @@ const getProps$n = () => ({
|
|
12178
12240
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC: {
|
12179
12241
|
const D = KgUtil.tryParseJSON((I = i.value) == null ? void 0 : I.display_type_properties);
|
12180
12242
|
if (D.isTag && isArrayLike(D.tagColors)) {
|
12181
|
-
const
|
12243
|
+
const w = D.tagColors.find((R) => R.value === e.kgValue);
|
12182
12244
|
return v.value ? createVNode(Tag, {
|
12183
|
-
color: (
|
12245
|
+
color: (M = w == null ? void 0 : w.color) != null ? M : "default"
|
12184
12246
|
}, {
|
12185
12247
|
default: () => [v.value]
|
12186
12248
|
}) : C();
|
@@ -12188,10 +12250,10 @@ const getProps$n = () => ({
|
|
12188
12250
|
return C();
|
12189
12251
|
}
|
12190
12252
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
12191
|
-
const D = KgUtil.tryParseJSON((
|
12253
|
+
const D = KgUtil.tryParseJSON(($ = i.value) == null ? void 0 : $.display_type_properties);
|
12192
12254
|
return createVNode(KgProgressA, {
|
12193
12255
|
kgTextWidth: D.textWidth,
|
12194
|
-
kgLeft: (
|
12256
|
+
kgLeft: (P = e.kgRow) == null ? void 0 : P[D.leftColumn],
|
12195
12257
|
kgRight: (U = e.kgRow) == null ? void 0 : U[D.rightColumn]
|
12196
12258
|
}, null);
|
12197
12259
|
}
|
@@ -12206,10 +12268,10 @@ const getProps$n = () => ({
|
|
12206
12268
|
}
|
12207
12269
|
}
|
12208
12270
|
function C(T = !1) {
|
12209
|
-
let
|
12210
|
-
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (
|
12271
|
+
let A = "";
|
12272
|
+
return T && !(n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value) && (A += "kg-table-td-update-link"), createVNode("pre", {
|
12211
12273
|
innerHTML: v.value,
|
12212
|
-
class:
|
12274
|
+
class: A,
|
12213
12275
|
onClick: p
|
12214
12276
|
}, null);
|
12215
12277
|
}
|
@@ -12306,8 +12368,8 @@ const getProps$m = () => ({
|
|
12306
12368
|
}) => {
|
12307
12369
|
const c = a == null ? void 0 : a.store.getVarGridConfig(a.formID);
|
12308
12370
|
return l = watch(i, (u) => {
|
12309
|
-
var d, m, v, y, p, g, b, E, C, T,
|
12310
|
-
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (
|
12371
|
+
var d, m, v, y, p, g, b, E, C, T, A;
|
12372
|
+
u && (u.id = (d = c == null ? void 0 : c.id) != null ? d : null, u.frm_id = a == null ? void 0 : a.formID, u.aut_load_flg = (m = c == null ? void 0 : c.aut_load_flg) != null ? m : 0, u.mult_flg = (v = c == null ? void 0 : c.mult_flg) != null ? v : 0, u.show_check_column_flg = (y = c == null ? void 0 : c.show_check_column_flg) != null ? y : 0, u.show_bottom_left_flg = (p = c == null ? void 0 : c.show_bottom_left_flg) != null ? p : 1, u.show_bottom_right_flg = (g = c == null ? void 0 : c.show_bottom_right_flg) != null ? g : 1, u.convert_sort_field_to_under_score_flg = (b = c == null ? void 0 : c.convert_sort_field_to_under_score_flg) != null ? b : 0, u.pg_size_opts = (E = c == null ? void 0 : c.pg_size_opts) != null ? E : "[10, 20, 50, 100]", u.pg_size_opt = (C = c == null ? void 0 : c.pg_size_opt) != null ? C : 10, u.cmd_prm = (T = c == null ? void 0 : c.cmd_prm) != null ? T : void 0, u.button_display_type = (A = c == null ? void 0 : c.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
12311
12373
|
}, {
|
12312
12374
|
immediate: !0
|
12313
12375
|
}), KgUtil.hideLoading(), !1;
|
@@ -12602,8 +12664,8 @@ const getProps$h = () => ({
|
|
12602
12664
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
12603
12665
|
}, [(C = n.currentVarGridDetails.value) == null ? void 0 : C.map((T) => createVNode("li", {
|
12604
12666
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
12605
|
-
onClick: (
|
12606
|
-
|
12667
|
+
onClick: (A) => {
|
12668
|
+
A.preventDefault(), A.stopPropagation(), v(T);
|
12607
12669
|
},
|
12608
12670
|
style: {
|
12609
12671
|
display: l(T, o.value) ? "flex" : "none"
|
@@ -12615,8 +12677,8 @@ const getProps$h = () => ({
|
|
12615
12677
|
}, {
|
12616
12678
|
default: () => [createVNode("pre", null, [n.t(T.var_nam).value])]
|
12617
12679
|
}), createVNode(HolderOutlined$1, {
|
12618
|
-
onClick: (
|
12619
|
-
|
12680
|
+
onClick: (A) => {
|
12681
|
+
A.preventDefault(), A.stopPropagation();
|
12620
12682
|
}
|
12621
12683
|
}, null)]))])]);
|
12622
12684
|
},
|
@@ -12630,9 +12692,9 @@ const getProps$h = () => ({
|
|
12630
12692
|
popupClassName: "kg-table-setting-submenu-popup-masters"
|
12631
12693
|
}, {
|
12632
12694
|
default: () => {
|
12633
|
-
var
|
12695
|
+
var A;
|
12634
12696
|
let C, T;
|
12635
|
-
return createVNode(Fragment, null, [(
|
12697
|
+
return createVNode(Fragment, null, [(A = n.varGridMasters.value) == null ? void 0 : A.map((k) => {
|
12636
12698
|
var V;
|
12637
12699
|
return createVNode(Menu.Item, {
|
12638
12700
|
key: k.id,
|
@@ -13168,9 +13230,9 @@ function _useColumns(e) {
|
|
13168
13230
|
if (p.fix_right_flg === 1)
|
13169
13231
|
return "right";
|
13170
13232
|
}
|
13171
|
-
function
|
13172
|
-
var
|
13173
|
-
return !((I = (
|
13233
|
+
function A() {
|
13234
|
+
var O, I, M, $;
|
13235
|
+
return !((I = (O = t == null ? void 0 : t.value) == null ? void 0 : O.KgTable) != null && I.kgDisabled || isNil(($ = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) == null ? void 0 : $.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
13174
13236
|
}
|
13175
13237
|
function k() {
|
13176
13238
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
@@ -13184,7 +13246,7 @@ function _useColumns(e) {
|
|
13184
13246
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
13185
13247
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
13186
13248
|
fixed: T(),
|
13187
|
-
sorter:
|
13249
|
+
sorter: A(),
|
13188
13250
|
align: k(),
|
13189
13251
|
defaultSortOrder: C(),
|
13190
13252
|
customHeaderCell: () => ({
|
@@ -13192,13 +13254,13 @@ function _useColumns(e) {
|
|
13192
13254
|
"kg-var_nam": g,
|
13193
13255
|
draggable: !0
|
13194
13256
|
}),
|
13195
|
-
customCell: (
|
13196
|
-
var
|
13257
|
+
customCell: (O) => {
|
13258
|
+
var M;
|
13197
13259
|
const I = r.store.getVarSubmitField(r.formID, g);
|
13198
13260
|
return {
|
13199
13261
|
"kg-frm_id": r.formID,
|
13200
13262
|
"kg-var_nam": g,
|
13201
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
13263
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && O[n.id.value] === ((M = n.selectedRow.value) == null ? void 0 : M[n.id.value]) && (!!r.isCreating.value && (I == null ? void 0 : I.crt_flg) === 1 || !!r.isUpdating.value && (I == null ? void 0 : I.upt_flg) === 1 || !!r.isCopying.value && (I == null ? void 0 : I.cpy_flg) === 1 || !!r.isDeleting.value && (I == null ? void 0 : I.del_flg) === 1) ? "submitting" : ""
|
13202
13264
|
};
|
13203
13265
|
}
|
13204
13266
|
};
|
@@ -13312,30 +13374,30 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13312
13374
|
slots: t,
|
13313
13375
|
emit: r
|
13314
13376
|
}) {
|
13315
|
-
var
|
13377
|
+
var be;
|
13316
13378
|
const a = inject("$dayjs", dayjs), n = inject(DI_KG_VAR__KG_SLOTS, null), s = inject(DI_KG_VAR__KG_PROPS, null), l = useKg(), o = useKgVar(), i = useKgSearch(), c = useKgButton(), u = useKgTable(), d = useKgSubmit();
|
13317
13379
|
i.onSearch(async ({
|
13318
|
-
resetPageIndex:
|
13319
|
-
}) => (
|
13320
|
-
name:
|
13321
|
-
args:
|
13380
|
+
resetPageIndex: N
|
13381
|
+
}) => (Y(N), !1)), i.onReset(async () => (Y(!0), !1)), u.store.$onAction(async ({
|
13382
|
+
name: N,
|
13383
|
+
args: B
|
13322
13384
|
}) => {
|
13323
|
-
switch (
|
13385
|
+
switch (N) {
|
13324
13386
|
case "setRowSelect":
|
13325
|
-
if (
|
13326
|
-
const q =
|
13387
|
+
if (B[0] === o.formID) {
|
13388
|
+
const q = B[1], H = B[2], J = q[u.id.value];
|
13327
13389
|
switch (!0) {
|
13328
|
-
case (
|
13329
|
-
|
13390
|
+
case (H && !D.value.includes(J)):
|
13391
|
+
Q([...D.value, J]);
|
13330
13392
|
break;
|
13331
|
-
case (
|
13332
|
-
|
13393
|
+
case (!H && D.value.includes(J)):
|
13394
|
+
Q(without$1(D.value, J));
|
13333
13395
|
break;
|
13334
13396
|
}
|
13335
13397
|
}
|
13336
13398
|
break;
|
13337
13399
|
case "clearDatas":
|
13338
|
-
|
13400
|
+
B[0] === o.formID && (u.store.setDatas(o.formID, []), w.total = 0, x(), v.value = []);
|
13339
13401
|
break;
|
13340
13402
|
}
|
13341
13403
|
});
|
@@ -13347,42 +13409,42 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13347
13409
|
} = _useLoading(), b = ref(null);
|
13348
13410
|
_useResizeObserver(b), _useDragColumn(b, y);
|
13349
13411
|
const E = computed(() => {
|
13350
|
-
var
|
13351
|
-
return (
|
13412
|
+
var N, B;
|
13413
|
+
return (B = (N = o.varButtonSearch.value) == null ? void 0 : N.cmd) != null ? B : null;
|
13352
13414
|
}), C = computed(() => {
|
13353
|
-
var
|
13354
|
-
let
|
13355
|
-
pageNo:
|
13356
|
-
pageSize:
|
13415
|
+
var B, q, H, J, ee, oe, ae;
|
13416
|
+
let N = {
|
13417
|
+
pageNo: w.pageIndex,
|
13418
|
+
pageSize: w.pageSize,
|
13357
13419
|
...R,
|
13358
|
-
...(q = (
|
13420
|
+
...(q = (B = i.model) == null ? void 0 : B.value) != null ? q : {}
|
13359
13421
|
};
|
13360
|
-
return o.varButtonSearch.value && (
|
13361
|
-
...
|
13362
|
-
...KgVarUtil.parseCommandParameter((
|
13363
|
-
}), (
|
13364
|
-
...
|
13365
|
-
...KgVarUtil.parseCommandParameter((
|
13366
|
-
}), ((
|
13422
|
+
return o.varButtonSearch.value && (N = {
|
13423
|
+
...N,
|
13424
|
+
...KgVarUtil.parseCommandParameter((J = (H = o.varButtonSearch.value) == null ? void 0 : H.cmd_prm) != null ? J : "")
|
13425
|
+
}), (ee = o.varGridConfig.value) != null && ee.cmd_prm && (N = {
|
13426
|
+
...N,
|
13427
|
+
...KgVarUtil.parseCommandParameter((oe = o.varGridConfig.value.cmd_prm) != null ? oe : "")
|
13428
|
+
}), ((ae = o.varGridConfig.value) == null ? void 0 : ae.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
13367
13429
|
}), T = computed(() => {
|
13368
|
-
var
|
13369
|
-
if (!isNil((
|
13370
|
-
return (
|
13430
|
+
var N, B, q, H;
|
13431
|
+
if (!isNil((B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgDisabled))
|
13432
|
+
return (H = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgDisabled;
|
13371
13433
|
if (!isNil(e.kgDisabled))
|
13372
13434
|
return e.kgDisabled;
|
13373
|
-
}),
|
13374
|
-
var
|
13375
|
-
if (!isNil((
|
13376
|
-
return (
|
13435
|
+
}), A = computed(() => {
|
13436
|
+
var N, B, q, H;
|
13437
|
+
if (!isNil((B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgCheckboxDisabled))
|
13438
|
+
return (H = (q = s == null ? void 0 : s.value) == null ? void 0 : q.KgTable) == null ? void 0 : H.kgCheckboxDisabled;
|
13377
13439
|
if (!isNil(e.kgCheckboxDisabled))
|
13378
13440
|
return e.kgCheckboxDisabled;
|
13379
|
-
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), V = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value ||
|
13380
|
-
var
|
13381
|
-
return !!((
|
13441
|
+
}), k = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), V = computed(() => !!T.value || g.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || w.total === 0), O = computed(() => {
|
13442
|
+
var N;
|
13443
|
+
return !!((N = n == null ? void 0 : n.KgTable) != null && N.expandedRowRender);
|
13382
13444
|
}), I = computed(() => {
|
13383
|
-
var
|
13384
|
-
return ((
|
13385
|
-
}),
|
13445
|
+
var N;
|
13446
|
+
return ((N = o.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1;
|
13447
|
+
}), M = computed(() => {
|
13386
13448
|
if (!!I.value)
|
13387
13449
|
return {
|
13388
13450
|
fixed: "left",
|
@@ -13390,244 +13452,244 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13390
13452
|
hideSelectAll: !u.isMultiSelect.value,
|
13391
13453
|
selectedRowKeys: D,
|
13392
13454
|
preserveSelectedRowKeys: !1,
|
13393
|
-
getCheckboxProps: (
|
13394
|
-
var
|
13455
|
+
getCheckboxProps: (N) => {
|
13456
|
+
var B;
|
13395
13457
|
return {
|
13396
|
-
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((
|
13458
|
+
disabled: !!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || !!((B = A.value) != null && B.call(A, N))
|
13397
13459
|
};
|
13398
13460
|
},
|
13399
|
-
onSelect: (
|
13400
|
-
onChange: (
|
13461
|
+
onSelect: (N) => z(N),
|
13462
|
+
onChange: (N) => u.isMultiSelect.value && Q(N)
|
13401
13463
|
};
|
13464
|
+
}), $ = computed(() => {
|
13465
|
+
var B;
|
13466
|
+
let N = "kg-table";
|
13467
|
+
return ((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (N += " 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) && (N += " kg-table--submitting"), N;
|
13402
13468
|
}), P = computed(() => {
|
13403
|
-
var
|
13404
|
-
let
|
13405
|
-
return ((
|
13406
|
-
}),
|
13407
|
-
var H;
|
13408
|
-
let L = "kg-table-bottom";
|
13409
|
-
return ((H = o.varGridConfig.value) == null ? void 0 : H.show_bottom_border_flg) === 1 && (L += " kg-table-bottom--border"), L;
|
13410
|
-
}), U = computed(() => u.store.getDatas(o.formID)), D = (fe = u.store.getSelectedRowKeys(o.formID)) != null ? fe : ref([]), O = reactive({
|
13469
|
+
var B;
|
13470
|
+
let N = "kg-table-bottom";
|
13471
|
+
return ((B = o.varGridConfig.value) == null ? void 0 : B.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
|
13472
|
+
}), U = computed(() => u.store.getDatas(o.formID)), D = (be = u.store.getSelectedRowKeys(o.formID)) != null ? be : ref([]), w = reactive({
|
13411
13473
|
pageIndex: 1,
|
13412
13474
|
pageSize: 10,
|
13413
13475
|
total: 0
|
13414
13476
|
}), R = reactive({
|
13415
13477
|
column: void 0,
|
13416
13478
|
order: void 0
|
13417
|
-
}),
|
13418
|
-
|
13479
|
+
}), F = watch(u.pageSizeOption, (N) => {
|
13480
|
+
N && (setTimeout(() => F()), w.pageSize = N, m.value = !0, KgLogger.debug(`${o.formID} | KgTable | isReadReady: ${m.value}`));
|
13419
13481
|
}, {
|
13420
13482
|
immediate: !0
|
13421
13483
|
});
|
13422
|
-
watch(u.pageSizeOptions, (
|
13423
|
-
|
13424
|
-
}), watch([E, u.isReadAutomatically, i.isReady], ([
|
13425
|
-
|
13484
|
+
watch(u.pageSizeOptions, (N) => {
|
13485
|
+
N.length > 0 && !N.includes(w.pageSize) && (w.pageSize = u.pageSizeOption.value);
|
13486
|
+
}), watch([E, u.isReadAutomatically, i.isReady], ([N, B, q]) => {
|
13487
|
+
N && B && q && !u.store.getIsRetrieved(o.formID) && Y(!0);
|
13426
13488
|
}, {
|
13427
13489
|
immediate: !0
|
13428
|
-
}), watch(o.isCreating, (
|
13429
|
-
|
13490
|
+
}), watch(o.isCreating, (N, B) => {
|
13491
|
+
N === !0 ? L() : N === !1 && B === !0 && K();
|
13430
13492
|
}), onUnmounted(() => {
|
13431
13493
|
u.store.dispose(o.formID);
|
13432
13494
|
});
|
13433
|
-
function
|
13495
|
+
function L() {
|
13434
13496
|
if (d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE) {
|
13435
|
-
const
|
13497
|
+
const N = {
|
13436
13498
|
[u.id.value]: KG_TABLE_TEMP_ID
|
13437
13499
|
};
|
13438
|
-
u.store.setDatas(o.formID, [
|
13500
|
+
u.store.setDatas(o.formID, [N, ...U.value]), u.store.setSelectedRows(o.formID, [N]);
|
13439
13501
|
}
|
13440
13502
|
}
|
13441
13503
|
function K() {
|
13442
|
-
const
|
13443
|
-
|
13504
|
+
const N = U.value.find((B) => B[u.id.value] === KG_TABLE_TEMP_ID);
|
13505
|
+
N && (u.store.setDatas(o.formID, without$1(U.value, N)), u.store.setSelectedRows(o.formID, []));
|
13444
13506
|
}
|
13445
|
-
function x(
|
13507
|
+
function x(N, B) {
|
13446
13508
|
var q;
|
13447
|
-
if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
13448
|
-
if (!
|
13509
|
+
if (!(!!T.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!M.value) {
|
13510
|
+
if (!B) {
|
13449
13511
|
u.store.setSelectedRows(o.formID, []);
|
13450
13512
|
return;
|
13451
13513
|
}
|
13452
|
-
switch (
|
13514
|
+
switch (N == null ? void 0 : N.detail) {
|
13453
13515
|
case 1:
|
13454
13516
|
switch ((q = o.varGridConfig.value) == null ? void 0 : q.operation_on_row_click) {
|
13455
13517
|
case 0:
|
13456
13518
|
break;
|
13457
13519
|
case 1:
|
13458
|
-
u.store.setSelectedRows(o.formID, [
|
13520
|
+
u.store.setSelectedRows(o.formID, [B]);
|
13459
13521
|
break;
|
13460
13522
|
}
|
13461
13523
|
break;
|
13462
13524
|
case 2:
|
13463
13525
|
u.store.emit(o.formID, "rowDoubleClick", {
|
13464
|
-
row:
|
13526
|
+
row: B
|
13465
13527
|
});
|
13466
13528
|
break;
|
13467
13529
|
}
|
13468
13530
|
}
|
13469
13531
|
}
|
13470
|
-
function
|
13532
|
+
function Y(N = !1) {
|
13471
13533
|
KgLogger.debug(`${o.formID} | KgTable | retrieve() | \u8FDB\u5165\u65B9\u6CD5.`);
|
13472
|
-
const
|
13473
|
-
|
13534
|
+
const B = watch(m, (H) => {
|
13535
|
+
H && (setTimeout(() => B()), q());
|
13474
13536
|
}, {
|
13475
13537
|
immediate: !0
|
13476
13538
|
});
|
13477
13539
|
async function q() {
|
13478
|
-
var
|
13540
|
+
var H, J, ee;
|
13479
13541
|
if (KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u8FDB\u5165\u65B9\u6CD5.`), !E.value) {
|
13480
13542
|
KgLogger.error("[KgTable] '\u67E5\u8BE2\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
13481
13543
|
VarButton: o.varButtonSearch.value
|
13482
13544
|
});
|
13483
13545
|
return;
|
13484
13546
|
}
|
13485
|
-
|
13547
|
+
N && (w.pageIndex = 1), u.store.setIsRetrieving(o.formID, !0);
|
13486
13548
|
try {
|
13487
|
-
const
|
13549
|
+
const oe = KgUtil.parseParams(C.value, u.profileFormID.value, a), ae = ref({});
|
13488
13550
|
await u.store.emit(o.formID, "beforeRetrieve", {
|
13489
|
-
params:
|
13490
|
-
response:
|
13491
|
-
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (
|
13551
|
+
params: oe,
|
13552
|
+
response: ae
|
13553
|
+
}) ? KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u89E6\u53D1 beforeRetrieve \u4E8B\u4EF6.`) : (ae.value = await httpClient().request({
|
13492
13554
|
method: "GET",
|
13493
13555
|
url: E.value,
|
13494
|
-
params:
|
13556
|
+
params: oe
|
13495
13557
|
}, {
|
13496
13558
|
successMessageMode: "none"
|
13497
13559
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | retrieveDatas() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
13498
|
-
let
|
13560
|
+
let pe = ref([]), Se = ref(0);
|
13499
13561
|
switch (!0) {
|
13500
|
-
case !
|
13501
|
-
|
13562
|
+
case !ae.value:
|
13563
|
+
pe.value = [], Se.value = 0;
|
13502
13564
|
break;
|
13503
|
-
case isArrayLike(
|
13504
|
-
|
13565
|
+
case isArrayLike(ae.value):
|
13566
|
+
pe.value = ae.value, Se.value = ae.value.length;
|
13505
13567
|
break;
|
13506
|
-
case ("total" in
|
13507
|
-
|
13568
|
+
case ("total" in ae.value && "records" in ae.value):
|
13569
|
+
pe.value = (H = ae.value.records) != null ? H : [], Se.value = (J = ae.value.total) != null ? J : 0;
|
13508
13570
|
break;
|
13509
13571
|
}
|
13510
13572
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
13511
|
-
datas:
|
13512
|
-
total:
|
13513
|
-
setDatas(
|
13514
|
-
u.store.setDatas(o.formID,
|
13573
|
+
datas: pe,
|
13574
|
+
total: Se,
|
13575
|
+
setDatas(Ce) {
|
13576
|
+
u.store.setDatas(o.formID, Ce);
|
13515
13577
|
}
|
13516
|
-
}), u.store.setDatas(o.formID,
|
13517
|
-
page:
|
13518
|
-
datas:
|
13519
|
-
setDatas(
|
13520
|
-
u.store.setDatas(o.formID,
|
13578
|
+
}), u.store.setDatas(o.formID, pe.value), w.total = Se.value, x(), v.value = [], await nextTick(), ((ee = o.varGridConfig.value) == null ? void 0 : ee.check_first_row_after_retrieve) === 1 && pe.value.length > 0 && u.store.setSelectedRows(o.formID, [pe.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
13579
|
+
page: ae.value,
|
13580
|
+
datas: pe,
|
13581
|
+
setDatas(Ce) {
|
13582
|
+
u.store.setDatas(o.formID, Ce);
|
13521
13583
|
}
|
13522
13584
|
}), u.store.setIsRetrieved(o.formID, !0);
|
13523
|
-
} catch (
|
13524
|
-
throw
|
13585
|
+
} catch (oe) {
|
13586
|
+
throw oe;
|
13525
13587
|
} finally {
|
13526
13588
|
u.store.setIsRetrieving(o.formID, !1);
|
13527
13589
|
}
|
13528
13590
|
}
|
13529
13591
|
}
|
13530
|
-
function
|
13531
|
-
u.store.setSelectedRows(o.formID,
|
13592
|
+
function Q(N) {
|
13593
|
+
u.store.setSelectedRows(o.formID, N.map((B) => {
|
13532
13594
|
var q;
|
13533
|
-
return (q = U.value) == null ? void 0 : q.find((
|
13534
|
-
}).filter((
|
13595
|
+
return (q = U.value) == null ? void 0 : q.find((H) => H[u.id.value] === B);
|
13596
|
+
}).filter((B) => !!B));
|
13535
13597
|
}
|
13536
|
-
function z(
|
13537
|
-
var
|
13598
|
+
function z(N) {
|
13599
|
+
var B, q;
|
13538
13600
|
switch (u.isMultiSelect.value) {
|
13539
13601
|
case !0:
|
13540
13602
|
{
|
13541
|
-
const
|
13542
|
-
D.value.includes(
|
13603
|
+
const H = N[u.id.value];
|
13604
|
+
D.value.includes(H) ? D.value = without$1(D.value, H) : D.value = [...(B = D.value) != null ? B : [], H];
|
13543
13605
|
}
|
13544
13606
|
break;
|
13545
13607
|
case !1:
|
13546
13608
|
{
|
13547
|
-
const
|
13548
|
-
(q = D.value) != null && q.includes(
|
13609
|
+
const H = N[u.id.value];
|
13610
|
+
(q = D.value) != null && q.includes(H) ? D.value = [] : D.value = [H];
|
13549
13611
|
}
|
13550
13612
|
break;
|
13551
13613
|
}
|
13552
|
-
u.store.setSelectedRows(o.formID, D.value.map((
|
13553
|
-
var
|
13554
|
-
return (
|
13555
|
-
}).filter((
|
13614
|
+
u.store.setSelectedRows(o.formID, D.value.map((H) => {
|
13615
|
+
var J;
|
13616
|
+
return (J = U.value) == null ? void 0 : J.find((ee) => ee[u.id.value] === H);
|
13617
|
+
}).filter((H) => !!H));
|
13556
13618
|
}
|
13557
|
-
function
|
13558
|
-
|
13619
|
+
function Z(N, B) {
|
13620
|
+
B.width = N, o.store.setVarGridDetailWidth(o.formID, B.dataIndex, N);
|
13559
13621
|
}
|
13560
|
-
async function re(
|
13561
|
-
var
|
13562
|
-
switch (
|
13622
|
+
async function re(N, B, q, H) {
|
13623
|
+
var J;
|
13624
|
+
switch (H.action) {
|
13563
13625
|
case "sort":
|
13564
13626
|
{
|
13565
13627
|
await nextTick();
|
13566
|
-
let
|
13567
|
-
|
13628
|
+
let ee = q;
|
13629
|
+
ee.order ? (R.column = (J = ee.field) != null ? J : void 0, R.order = ee.order === "ascend" ? "asc" : ee.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), Y(!0);
|
13568
13630
|
}
|
13569
13631
|
break;
|
13570
13632
|
}
|
13571
13633
|
}
|
13572
|
-
function
|
13573
|
-
var
|
13574
|
-
const q =
|
13575
|
-
switch ((
|
13634
|
+
function ue(N, B) {
|
13635
|
+
var H;
|
13636
|
+
const q = B[u.id.value];
|
13637
|
+
switch ((H = o.varGridConfig.value) == null ? void 0 : H.expand_accordion_flg) {
|
13576
13638
|
case 0:
|
13577
|
-
|
13639
|
+
N ? v.value = uniq([...v.value, q]) : v.value = without$1(v.value, q);
|
13578
13640
|
break;
|
13579
13641
|
default:
|
13580
|
-
|
13642
|
+
N ? v.value = [q] : v.value = [];
|
13581
13643
|
break;
|
13582
13644
|
}
|
13583
13645
|
}
|
13584
|
-
function
|
13585
|
-
|
13646
|
+
function _e(N, B) {
|
13647
|
+
B !== w.pageSize ? (w.pageIndex = 1, w.pageSize = B) : w.pageIndex = N, Y();
|
13586
13648
|
}
|
13587
|
-
function
|
13588
|
-
u.store.setSelectedRows(o.formID, [
|
13649
|
+
function he(N) {
|
13650
|
+
u.store.setSelectedRows(o.formID, [N].map((B) => {
|
13589
13651
|
var q;
|
13590
|
-
return (q = U.value) == null ? void 0 : q.find((
|
13591
|
-
}).filter((
|
13652
|
+
return (q = U.value) == null ? void 0 : q.find((H) => H[u.id.value] === B[u.id.value]);
|
13653
|
+
}).filter((B) => !!B)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
13592
13654
|
}
|
13593
|
-
function
|
13594
|
-
title:
|
13595
|
-
column:
|
13655
|
+
function ge({
|
13656
|
+
title: N,
|
13657
|
+
column: B
|
13596
13658
|
}) {
|
13597
|
-
switch (
|
13659
|
+
switch (B.dataIndex) {
|
13598
13660
|
case "index":
|
13599
13661
|
return createVNode(KgTableSetting, {
|
13600
13662
|
kgDisabled: T.value
|
13601
13663
|
}, null);
|
13602
13664
|
default:
|
13603
13665
|
return createVNode("pre", {
|
13604
|
-
title:
|
13605
|
-
}, [
|
13666
|
+
title: N
|
13667
|
+
}, [N]);
|
13606
13668
|
}
|
13607
13669
|
}
|
13608
|
-
function
|
13609
|
-
var
|
13610
|
-
return (
|
13670
|
+
function se() {
|
13671
|
+
var N;
|
13672
|
+
return (N = n == null ? void 0 : n.KgTable) != null && N["summary.bodyCell"] ? createVNode(TableSummary, {
|
13611
13673
|
fixed: "bottom"
|
13612
13674
|
}, {
|
13613
13675
|
default: () => [createVNode(TableSummary.Row, null, {
|
13614
|
-
default: () => [
|
13676
|
+
default: () => [O.value && createVNode(TableSummary.Cell, {
|
13615
13677
|
index: 0
|
13616
13678
|
}, null), I.value && createVNode(TableSummary.Cell, {
|
13617
|
-
index:
|
13618
|
-
}, null), y.value.map((
|
13619
|
-
const
|
13620
|
-
let
|
13621
|
-
return
|
13622
|
-
index:
|
13623
|
-
align:
|
13679
|
+
index: O.value ? 1 : 0
|
13680
|
+
}, null), y.value.map((B, q) => {
|
13681
|
+
const H = o.store.getVarGridDetail(o.formID, B.dataIndex), J = (() => ["left", "center", "right"].includes((H == null ? void 0 : H.align) || "") ? H == null ? void 0 : H.align : "left")();
|
13682
|
+
let ee = q;
|
13683
|
+
return O.value && I.value ? ee += 2 : (O.value || I.value) && (ee += 1), createVNode(TableSummary.Cell, {
|
13684
|
+
index: ee,
|
13685
|
+
align: J
|
13624
13686
|
}, {
|
13625
13687
|
default: () => {
|
13626
|
-
var
|
13627
|
-
return [(
|
13628
|
-
column:
|
13629
|
-
index:
|
13630
|
-
varGridDetail:
|
13688
|
+
var oe, ae;
|
13689
|
+
return [(ae = (oe = n == null ? void 0 : n.KgTable) == null ? void 0 : oe["summary.bodyCell"]) == null ? void 0 : ae.call(oe, {
|
13690
|
+
column: B,
|
13691
|
+
index: ee,
|
13692
|
+
varGridDetail: H
|
13631
13693
|
})];
|
13632
13694
|
}
|
13633
13695
|
});
|
@@ -13635,51 +13697,51 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13635
13697
|
})]
|
13636
13698
|
}) : null;
|
13637
13699
|
}
|
13638
|
-
function
|
13639
|
-
column:
|
13640
|
-
index:
|
13700
|
+
function fe({
|
13701
|
+
column: N,
|
13702
|
+
index: B,
|
13641
13703
|
record: q,
|
13642
|
-
text:
|
13643
|
-
value:
|
13704
|
+
text: H,
|
13705
|
+
value: J
|
13644
13706
|
}) {
|
13645
|
-
var
|
13646
|
-
let
|
13647
|
-
|
13648
|
-
index:
|
13707
|
+
var ae;
|
13708
|
+
let ee = "";
|
13709
|
+
N.customRender ? ee = N.customRender({
|
13710
|
+
index: B,
|
13649
13711
|
record: q,
|
13650
|
-
column:
|
13651
|
-
text:
|
13652
|
-
value:
|
13653
|
-
renderIndex:
|
13654
|
-
}) :
|
13655
|
-
const
|
13712
|
+
column: N,
|
13713
|
+
text: H,
|
13714
|
+
value: J,
|
13715
|
+
renderIndex: B
|
13716
|
+
}) : ee = J;
|
13717
|
+
const oe = createVNode(KgTableCell, {
|
13656
13718
|
kgRow: q,
|
13657
|
-
kgValue:
|
13658
|
-
kgVarName:
|
13659
|
-
onKgUpdateLinkClick: () =>
|
13719
|
+
kgValue: ee,
|
13720
|
+
kgVarName: N.dataIndex,
|
13721
|
+
onKgUpdateLinkClick: () => he(q)
|
13660
13722
|
}, null);
|
13661
|
-
if ((
|
13662
|
-
const
|
13723
|
+
if ((ae = n == null ? void 0 : n.KgTable) != null && ae.bodyCell) {
|
13724
|
+
const pe = N.dataIndex ? o.store.getVarGridDetail(o.formID, N.dataIndex) : null;
|
13663
13725
|
return n.KgTable.bodyCell({
|
13664
|
-
column:
|
13665
|
-
index:
|
13726
|
+
column: N,
|
13727
|
+
index: B,
|
13666
13728
|
record: q,
|
13667
|
-
text:
|
13668
|
-
value:
|
13729
|
+
text: H,
|
13730
|
+
value: J,
|
13669
13731
|
row: q,
|
13670
|
-
varGridDetail:
|
13671
|
-
defaultRender:
|
13732
|
+
varGridDetail: pe,
|
13733
|
+
defaultRender: oe
|
13672
13734
|
});
|
13673
13735
|
} else
|
13674
|
-
return
|
13736
|
+
return oe;
|
13675
13737
|
}
|
13676
|
-
function
|
13738
|
+
function ve() {
|
13677
13739
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? l.t("kg.KgTable.emptyText") : l.t("kg.emptyText");
|
13678
13740
|
}
|
13679
13741
|
return () => {
|
13680
|
-
var
|
13742
|
+
var N, B, q;
|
13681
13743
|
return createVNode("div", {
|
13682
|
-
class:
|
13744
|
+
class: $.value,
|
13683
13745
|
"kg-frm_id": o.formID,
|
13684
13746
|
ref: b
|
13685
13747
|
}, [createVNode(Table, {
|
@@ -13695,29 +13757,29 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13695
13757
|
dataSource: U.value,
|
13696
13758
|
loading: g.value,
|
13697
13759
|
rowKey: u.id.value,
|
13698
|
-
rowClassName: (
|
13760
|
+
rowClassName: (B = (N = s == null ? void 0 : s.value) == null ? void 0 : N.KgTable) == null ? void 0 : B.kgRowClassName,
|
13699
13761
|
expandColumnWidth: 28,
|
13700
13762
|
expandedRowKeys: v.value,
|
13701
|
-
rowSelection:
|
13702
|
-
customRow: (
|
13703
|
-
onClick: (
|
13763
|
+
rowSelection: M.value,
|
13764
|
+
customRow: (H) => ({
|
13765
|
+
onClick: (J) => x(J, H)
|
13704
13766
|
}),
|
13705
|
-
onResizeColumn:
|
13767
|
+
onResizeColumn: Z,
|
13706
13768
|
onChange: re,
|
13707
|
-
onExpand:
|
13769
|
+
onExpand: ue
|
13708
13770
|
}, {
|
13709
|
-
headerCell:
|
13710
|
-
bodyCell:
|
13711
|
-
emptyText:
|
13771
|
+
headerCell: ge,
|
13772
|
+
bodyCell: fe,
|
13773
|
+
emptyText: ve,
|
13712
13774
|
expandedRowRender: (q = n == null ? void 0 : n.KgTable) == null ? void 0 : q.expandedRowRender,
|
13713
|
-
summary:
|
13775
|
+
summary: se
|
13714
13776
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
13715
|
-
class:
|
13777
|
+
class: P.value
|
13716
13778
|
}, [createVNode("div", {
|
13717
13779
|
class: "left"
|
13718
13780
|
}, [u.isShowBottomLeft.value && createVNode(KgTableInfo, {
|
13719
13781
|
kgShowClearCheck: D.value.length > 0,
|
13720
|
-
kgShowClearTable:
|
13782
|
+
kgShowClearTable: w.total > 0,
|
13721
13783
|
kgShowLocate: D.value.length === 1,
|
13722
13784
|
kgTotal: D.value.length,
|
13723
13785
|
kgDisabled: k.value
|
@@ -13725,10 +13787,10 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13725
13787
|
class: "right"
|
13726
13788
|
}, [u.isShowBottomRight.value && createVNode(Pagination, {
|
13727
13789
|
size: "default",
|
13728
|
-
current:
|
13729
|
-
pageSize:
|
13730
|
-
pageSizeOptions: u.pageSizeOptions.value.map((
|
13731
|
-
total:
|
13790
|
+
current: w.pageIndex,
|
13791
|
+
pageSize: w.pageSize,
|
13792
|
+
pageSizeOptions: u.pageSizeOptions.value.map((H) => String(H)),
|
13793
|
+
total: w.total,
|
13732
13794
|
showSizeChanger: !0,
|
13733
13795
|
showQuickJumper: !1,
|
13734
13796
|
hideOnSinglePage: !1,
|
@@ -13736,12 +13798,12 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13736
13798
|
locale: {
|
13737
13799
|
page: ""
|
13738
13800
|
},
|
13739
|
-
showTotal: (
|
13740
|
-
from:
|
13741
|
-
to:
|
13742
|
-
total:
|
13801
|
+
showTotal: (H, J) => l.t("kg.KgTable.totalText", {
|
13802
|
+
from: J[0],
|
13803
|
+
to: J[1],
|
13804
|
+
total: H
|
13743
13805
|
}),
|
13744
|
-
onChange: (
|
13806
|
+
onChange: (H, J) => _e(H, J)
|
13745
13807
|
}, null)])])]);
|
13746
13808
|
};
|
13747
13809
|
}
|
@@ -13966,8 +14028,8 @@ const KgButtonCreate = defineComponent({
|
|
13966
14028
|
attrs: a
|
13967
14029
|
}) {
|
13968
14030
|
const n = useKg(), s = useKgVar(), l = useKgButton(), o = useKgTable(), i = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13969
|
-
var C, T,
|
13970
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
14031
|
+
var C, T, A, k, V, O, I, M;
|
14032
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = o.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (V = o.selectedRows.value) == null ? void 0 : V.length) != null ? O : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13971
14033
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13972
14034
|
async function m() {
|
13973
14035
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -13989,7 +14051,7 @@ const KgButtonCreate = defineComponent({
|
|
13989
14051
|
return e.kgText ? e.kgText : n.t("kg.create");
|
13990
14052
|
}
|
13991
14053
|
function b() {
|
13992
|
-
var C, T,
|
14054
|
+
var C, T, A, k;
|
13993
14055
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isCreating.value ? null : createVNode(Button, {
|
13994
14056
|
type: "primary",
|
13995
14057
|
disabled: u.value,
|
@@ -13997,7 +14059,7 @@ const KgButtonCreate = defineComponent({
|
|
13997
14059
|
class: a.class,
|
13998
14060
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
13999
14061
|
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
14000
|
-
"kg-var_nam": (
|
14062
|
+
"kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
|
14001
14063
|
"kg-cmd": (k = c.value) == null ? void 0 : k.cmd
|
14002
14064
|
}, {
|
14003
14065
|
default: () => [p(), g()]
|
@@ -14084,8 +14146,8 @@ const KgButtonCreate = defineComponent({
|
|
14084
14146
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14085
14147
|
}), ((T = r.varGridConfig.value) == null ? void 0 : T.convert_sort_field_to_under_score_flg) === 1 && y.column && (y.column = snakeCase$1(y.column)), y;
|
14086
14148
|
}), c = computed(() => {
|
14087
|
-
var y, p, g, b, E, C, T,
|
14088
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((
|
14149
|
+
var y, p, g, b, E, C, T, A;
|
14150
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14089
14151
|
}), u = ref(!1);
|
14090
14152
|
async function d() {
|
14091
14153
|
var y, p;
|
@@ -14166,8 +14228,8 @@ const KgButtonCreate = defineComponent({
|
|
14166
14228
|
...KgVarUtil.parseCommandParameter((C = (E = o.value) == null ? void 0 : E.cmd_prm) != null ? C : "")
|
14167
14229
|
}), g;
|
14168
14230
|
}), d = computed(() => {
|
14169
|
-
var g, b, E, C, T,
|
14170
|
-
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((
|
14231
|
+
var g, b, E, C, T, A, k, V;
|
14232
|
+
return n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value || l.isRetrieving.value || ((g = o.value) == null ? void 0 : g.dis_no_select_flg) === 1 && ((E = (b = l.selectedRows.value) == null ? void 0 : b.length) != null ? E : 0) === 0 || ((C = o.value) == null ? void 0 : C.dis_mult_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) > 1 || ((k = o.value) == null ? void 0 : k.permission_type) === 2 && !a.p((V = o.value) == null ? void 0 : V.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14171
14233
|
}), m = ref(!1);
|
14172
14234
|
async function v(g) {
|
14173
14235
|
if (!i.value)
|
@@ -14254,8 +14316,8 @@ const KgButtonCreate = defineComponent({
|
|
14254
14316
|
...KgVarUtil.parseCommandParameter((C = r.varGridConfig.value.cmd_prm) != null ? C : "")
|
14255
14317
|
}), y;
|
14256
14318
|
}), c = computed(() => {
|
14257
|
-
var y, p, g, b, E, C, T,
|
14258
|
-
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((
|
14319
|
+
var y, p, g, b, E, C, T, A;
|
14320
|
+
return r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value || n.isRetrieving.value || ((y = s.value) == null ? void 0 : y.dis_no_select_flg) === 1 && ((g = (p = n.selectedRows.value) == null ? void 0 : p.length) != null ? g : 0) === 0 || ((b = s.value) == null ? void 0 : b.dis_mult_select_flg) === 1 && ((C = (E = n.selectedRows.value) == null ? void 0 : E.length) != null ? C : 0) > 1 || ((T = s.value) == null ? void 0 : T.permission_type) === 2 && !t.p((A = s.value) == null ? void 0 : A.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14259
14321
|
}), u = ref(!1);
|
14260
14322
|
async function d() {
|
14261
14323
|
var y, p;
|
@@ -14331,35 +14393,35 @@ const KgButtonCreate = defineComponent({
|
|
14331
14393
|
}
|
14332
14394
|
let m = null;
|
14333
14395
|
const v = async () => {
|
14334
|
-
var E, C, T,
|
14396
|
+
var E, C, T, A, k, V;
|
14335
14397
|
m == null || m.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
14336
14398
|
const b = s.selectedRows.value;
|
14337
14399
|
try {
|
14338
|
-
const
|
14400
|
+
const O = await httpClient().request({
|
14339
14401
|
method: (C = (E = e.kgButton) == null ? void 0 : E.cmd_method) != null ? C : "POST",
|
14340
14402
|
url: d,
|
14341
|
-
params: KgVarUtil.parseCommandParameter((
|
14403
|
+
params: KgVarUtil.parseCommandParameter((A = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? A : ""),
|
14342
14404
|
data: b != null ? b : []
|
14343
14405
|
});
|
14344
14406
|
if (((k = e.kgButton) == null ? void 0 : k.reload_all_after_done_flg) === 1) {
|
14345
14407
|
if (((V = e.kgButton) == null ? void 0 : V.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
14346
|
-
datas:
|
14408
|
+
datas: M
|
14347
14409
|
}) => {
|
14348
|
-
const
|
14349
|
-
return
|
14410
|
+
const $ = M.value, P = intersectionWith$1($, b != null ? b : [], (U, D) => (U == null ? void 0 : U[s.id.value]) === (D == null ? void 0 : D[s.id.value]));
|
14411
|
+
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
14350
14412
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
14351
14413
|
button: e.kgButton,
|
14352
|
-
data:
|
14414
|
+
data: O
|
14353
14415
|
}))
|
14354
14416
|
return;
|
14355
14417
|
a.search(!0);
|
14356
14418
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
14357
14419
|
button: e.kgButton,
|
14358
|
-
data:
|
14420
|
+
data: O
|
14359
14421
|
}))
|
14360
14422
|
return;
|
14361
|
-
} catch (
|
14362
|
-
console.error(
|
14423
|
+
} catch (O) {
|
14424
|
+
console.error(O);
|
14363
14425
|
} finally {
|
14364
14426
|
r.store.setIsOtherRequesting(r.formID, !1), m == null || m.hideLoading();
|
14365
14427
|
}
|
@@ -14459,8 +14521,8 @@ const KgButtonCreate = defineComponent({
|
|
14459
14521
|
}
|
14460
14522
|
});
|
14461
14523
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
14462
|
-
var C, T,
|
14463
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((
|
14524
|
+
var C, T, A, k, V, O, I, M;
|
14525
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || l.isRetrieving.value || ((C = c.value) == null ? void 0 : C.dis_no_select_flg) === 1 && ((A = (T = l.selectedRows.value) == null ? void 0 : T.length) != null ? A : 0) === 0 || ((k = c.value) == null ? void 0 : k.dis_mult_select_flg) === 1 && ((O = (V = l.selectedRows.value) == null ? void 0 : V.length) != null ? O : 0) > 1 || ((I = c.value) == null ? void 0 : I.permission_type) === 2 && !n.p((M = c.value) == null ? void 0 : M.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
14464
14526
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
14465
14527
|
async function m() {
|
14466
14528
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14485,7 +14547,7 @@ const KgButtonCreate = defineComponent({
|
|
14485
14547
|
return e.kgText ? e.kgText : n.t("kg.update");
|
14486
14548
|
}
|
14487
14549
|
function b() {
|
14488
|
-
var C, T,
|
14550
|
+
var C, T, A, k;
|
14489
14551
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && s.isUpdating.value ? null : createVNode(Button, {
|
14490
14552
|
type: "primary",
|
14491
14553
|
disabled: u.value,
|
@@ -14494,7 +14556,7 @@ const KgButtonCreate = defineComponent({
|
|
14494
14556
|
class: a.class,
|
14495
14557
|
"kg-id": (C = c.value) == null ? void 0 : C.id,
|
14496
14558
|
"kg-frm_id": (T = c.value) == null ? void 0 : T.frm_id,
|
14497
|
-
"kg-var_nam": (
|
14559
|
+
"kg-var_nam": (A = c.value) == null ? void 0 : A.var_nam,
|
14498
14560
|
"kg-cmd": (k = c.value) == null ? void 0 : k.cmd
|
14499
14561
|
}, {
|
14500
14562
|
default: () => [p(), g()]
|
@@ -15226,9 +15288,9 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15226
15288
|
row: C,
|
15227
15289
|
model: T
|
15228
15290
|
}) => {
|
15229
|
-
var k, V,
|
15230
|
-
const
|
15231
|
-
switch (i.value =
|
15291
|
+
var k, V, O;
|
15292
|
+
const A = o.store.getSystemVarProfileDetails(o.formID);
|
15293
|
+
switch (i.value = A ? cloneDeep(unref(toRaw(A))) : [], !0) {
|
15232
15294
|
case g: {
|
15233
15295
|
c.value = [];
|
15234
15296
|
break;
|
@@ -15243,17 +15305,17 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15243
15305
|
id: C.id
|
15244
15306
|
}
|
15245
15307
|
});
|
15246
|
-
i.value = i.value.map((
|
15308
|
+
i.value = i.value.map(($) => {
|
15247
15309
|
var U;
|
15248
|
-
const
|
15249
|
-
return
|
15310
|
+
const P = (U = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : U.find((D) => D.var_nam === $.var_nam);
|
15311
|
+
return P ? {
|
15312
|
+
...$,
|
15250
15313
|
...P,
|
15251
|
-
|
15252
|
-
|
15253
|
-
} : P;
|
15314
|
+
id: $.id
|
15315
|
+
} : $;
|
15254
15316
|
});
|
15255
|
-
const
|
15256
|
-
c.value = i.value.filter((
|
15317
|
+
const M = (V = (k = I == null ? void 0 : I.varProfileDetails) == null ? void 0 : k.map(($) => $.var_nam)) != null ? V : [];
|
15318
|
+
c.value = i.value.filter(($) => M.includes($.var_nam)).map(($) => $.id);
|
15257
15319
|
} catch (I) {
|
15258
15320
|
throw I;
|
15259
15321
|
} finally {
|
@@ -15266,7 +15328,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15266
15328
|
}
|
15267
15329
|
switch (!0) {
|
15268
15330
|
case E: {
|
15269
|
-
T.value.prf_var_nam = ((
|
15331
|
+
T.value.prf_var_nam = ((O = T.value.prf_var_nam) != null ? O : "") + "_COPY";
|
15270
15332
|
break;
|
15271
15333
|
}
|
15272
15334
|
}
|
@@ -15334,11 +15396,11 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15334
15396
|
selectedKeys: E,
|
15335
15397
|
disabled: C,
|
15336
15398
|
onItemSelectAll: T,
|
15337
|
-
onItemSelect:
|
15399
|
+
onItemSelect: A
|
15338
15400
|
}) => {
|
15339
|
-
const k = b.sort((V,
|
15340
|
-
var I,
|
15341
|
-
return ((I = V.srtseq) != null ? I : 0) - ((
|
15401
|
+
const k = b.sort((V, O) => {
|
15402
|
+
var I, M;
|
15403
|
+
return ((I = V.srtseq) != null ? I : 0) - ((M = O.srtseq) != null ? M : 0);
|
15342
15404
|
});
|
15343
15405
|
return u.value = k, createVNode(Table, {
|
15344
15406
|
pagination: !1,
|
@@ -15352,16 +15414,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15352
15414
|
rowKey: "id",
|
15353
15415
|
dataSource: k,
|
15354
15416
|
customRow: (V) => {
|
15355
|
-
let
|
15417
|
+
let O = {
|
15356
15418
|
onClick: (I) => p(I, V, g, E)
|
15357
15419
|
};
|
15358
|
-
return g === "right" && (
|
15420
|
+
return g === "right" && (O["kg-host-frm_id"] = o.formID, O["kg-var_nam"] = V.var_nam), O;
|
15359
15421
|
},
|
15360
15422
|
rowSelection: v({
|
15361
15423
|
disabled: C,
|
15362
15424
|
selectedKeys: E,
|
15363
15425
|
onItemSelectAll: T,
|
15364
|
-
onItemSelect:
|
15426
|
+
onItemSelect: A
|
15365
15427
|
})
|
15366
15428
|
}, null);
|
15367
15429
|
}
|
@@ -15381,16 +15443,16 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
15381
15443
|
getCheckboxProps: (T) => ({
|
15382
15444
|
disabled: g || T.disabled
|
15383
15445
|
}),
|
15384
|
-
onSelectAll(T,
|
15385
|
-
const k =
|
15446
|
+
onSelectAll(T, A) {
|
15447
|
+
const k = A.filter((V) => !V.disabled).map(({
|
15386
15448
|
key: V
|
15387
15449
|
}) => V);
|
15388
15450
|
E(k, T);
|
15389
15451
|
},
|
15390
15452
|
onSelect({
|
15391
15453
|
key: T
|
15392
|
-
},
|
15393
|
-
C(T,
|
15454
|
+
}, A) {
|
15455
|
+
C(T, A);
|
15394
15456
|
},
|
15395
15457
|
selectedRowKeys: b,
|
15396
15458
|
columnWidth: 32
|
@@ -15599,9 +15661,9 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15599
15661
|
});
|
15600
15662
|
_useLayoutHeaderResizeObserver();
|
15601
15663
|
const p = _useFormModel(v, y), g = computed(() => {
|
15602
|
-
var K, x,
|
15664
|
+
var K, x, Y, Q;
|
15603
15665
|
if (!isNil((x = (K = r == null ? void 0 : r.value) == null ? void 0 : K.KgSearch) == null ? void 0 : x.kgDisabled))
|
15604
|
-
return (
|
15666
|
+
return (Q = (Y = r == null ? void 0 : r.value) == null ? void 0 : Y.KgSearch) == null ? void 0 : Q.kgDisabled;
|
15605
15667
|
if (!isNil(e.kgDisabled))
|
15606
15668
|
return e.kgDisabled;
|
15607
15669
|
}), b = computed(() => {
|
@@ -15609,10 +15671,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15609
15671
|
return !!(g.value || l.isRetrieving.value || ((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) === 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15610
15672
|
}), E = computed(() => !!(g.value || l.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), C = computed(() => !!(g.value || l.isRetrieving.value)), T = ref({
|
15611
15673
|
visible: !1
|
15612
|
-
}),
|
15613
|
-
var K, x,
|
15674
|
+
}), A = computed(() => y.value.kgHeight === m.value), k = computed(() => {
|
15675
|
+
var K, x, Y;
|
15614
15676
|
if (n.t((K = n.varButtonSearch.value) == null ? void 0 : K.var_nam).value !== ((x = n.varButtonSearch.value) == null ? void 0 : x.var_nam))
|
15615
|
-
return n.t((
|
15677
|
+
return n.t((Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam).value;
|
15616
15678
|
}), V = computed(() => {
|
15617
15679
|
var K;
|
15618
15680
|
switch ((K = n.varButtonSearch.value) == null ? void 0 : K.primary_flg) {
|
@@ -15623,11 +15685,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15623
15685
|
default:
|
15624
15686
|
return !0;
|
15625
15687
|
}
|
15626
|
-
}),
|
15688
|
+
}), O = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), I = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), M = computed(() => {
|
15627
15689
|
let K = "kg-search";
|
15628
15690
|
return o.value && (K += " kg-search--visible"), c.value && (K += " kg-search--teleport"), K;
|
15629
15691
|
});
|
15630
|
-
async function
|
15692
|
+
async function $(K = !1) {
|
15631
15693
|
if (KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8FDB\u5165\u65B9\u6CD5.`), b.value) {
|
15632
15694
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
|
15633
15695
|
return;
|
@@ -15644,8 +15706,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15644
15706
|
resetPageIndex: K
|
15645
15707
|
});
|
15646
15708
|
}
|
15647
|
-
s.store.setSearchFn(n.formID,
|
15648
|
-
async function
|
15709
|
+
s.store.setSearchFn(n.formID, $);
|
15710
|
+
async function P() {
|
15649
15711
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15650
15712
|
await s.store.emit(n.formID, "reset", {});
|
15651
15713
|
}).catch((K) => {
|
@@ -15654,33 +15716,33 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15654
15716
|
});
|
15655
15717
|
}) : await s.store.emit(n.formID, "reset", {});
|
15656
15718
|
}
|
15657
|
-
s.store.setResetFn(n.formID,
|
15719
|
+
s.store.setResetFn(n.formID, P);
|
15658
15720
|
function U() {
|
15659
|
-
return
|
15721
|
+
return $(!0), Promise.resolve(!0);
|
15660
15722
|
}
|
15661
15723
|
function D() {
|
15662
15724
|
var K;
|
15663
15725
|
return createVNode("div", {
|
15664
15726
|
class: "title",
|
15665
|
-
onClick:
|
15727
|
+
onClick: L
|
15666
15728
|
}, [((K = t == null ? void 0 : t.KgSearch) == null ? void 0 : K.left) && createVNode("div", {
|
15667
15729
|
class: "kg-search-title-left",
|
15668
15730
|
onClick: (x) => {
|
15669
15731
|
x.stopPropagation(), x.preventDefault();
|
15670
15732
|
}
|
15671
|
-
}, [t.KgSearch.left()]),
|
15733
|
+
}, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15672
15734
|
}
|
15673
|
-
function
|
15674
|
-
var K, x,
|
15675
|
-
return ((
|
15676
|
-
value: (
|
15735
|
+
function w() {
|
15736
|
+
var K, x, Y, Q;
|
15737
|
+
return ((Y = (x = (K = n.varProfileMasters) == null ? void 0 : K.value) == null ? void 0 : x.length) != null ? Y : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15738
|
+
value: (Q = n.currentVarProfileMasterID.value) != null ? Q : void 0,
|
15677
15739
|
"onUpdate:value": (z) => n.store.setCurrentVarProfileMasterID(n.formID, z),
|
15678
15740
|
disabled: E.value,
|
15679
15741
|
class: "kg-search-profile-master-select"
|
15680
15742
|
}, {
|
15681
15743
|
default: () => {
|
15682
|
-
var z,
|
15683
|
-
return (
|
15744
|
+
var z, Z;
|
15745
|
+
return (Z = (z = n.varProfileMasters) == null ? void 0 : z.value) == null ? void 0 : Z.map((re) => createVNode(Select.Option, {
|
15684
15746
|
value: re.id
|
15685
15747
|
}, {
|
15686
15748
|
default: () => [n.t(re == null ? void 0 : re.prf_var_nam).value]
|
@@ -15704,19 +15766,19 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15704
15766
|
}, null)]);
|
15705
15767
|
}
|
15706
15768
|
function R() {
|
15707
|
-
var K, x,
|
15708
|
-
return createVNode(Fragment, null, [
|
15769
|
+
var K, x, Y, Q, z;
|
15770
|
+
return createVNode(Fragment, null, [w(), !(((K = n.varButtonSearch.value) == null ? void 0 : K.permission_type) !== 2 && !a.p((x = n.varButtonSearch.value) == null ? void 0 : x.permission_code)) && createVNode(Button, {
|
15709
15771
|
type: "primary",
|
15710
15772
|
ghost: !b.value,
|
15711
15773
|
disabled: b.value,
|
15712
|
-
onClick:
|
15774
|
+
onClick: P,
|
15713
15775
|
class: "kg-search-btn-reset"
|
15714
15776
|
}, {
|
15715
15777
|
default: () => [createVNode(ReloadOutlined$1, null, null), a.t("kg.reset")]
|
15716
15778
|
}), createVNode(KgButton.Item, {
|
15717
15779
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
15718
|
-
kgVarName: (
|
15719
|
-
kgIcon: (
|
15780
|
+
kgVarName: (Y = n.varButtonSearch.value) == null ? void 0 : Y.var_nam,
|
15781
|
+
kgIcon: (Q = n.varButtonSearch.value) == null ? void 0 : Q.icon,
|
15720
15782
|
kgText: k.value,
|
15721
15783
|
kgColor: (z = n.varButtonSearch.value) == null ? void 0 : z.color,
|
15722
15784
|
kgPrimary: V.value,
|
@@ -15724,7 +15786,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15724
15786
|
onKgClick: U
|
15725
15787
|
}, null)]);
|
15726
15788
|
}
|
15727
|
-
function
|
15789
|
+
function F() {
|
15728
15790
|
return createVNode(Spin, {
|
15729
15791
|
spinning: I.value
|
15730
15792
|
}, {
|
@@ -15739,11 +15801,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15739
15801
|
}, {
|
15740
15802
|
default: () => {
|
15741
15803
|
var x;
|
15742
|
-
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((
|
15743
|
-
key:
|
15744
|
-
kgVarName:
|
15804
|
+
return [(x = n.currentVarProfileDetails.value) == null ? void 0 : x.map((Y) => createVNode(KgForm.Item, {
|
15805
|
+
key: Y.var_nam,
|
15806
|
+
kgVarName: Y.var_nam,
|
15745
15807
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15746
|
-
onKgSubmit: () =>
|
15808
|
+
onKgSubmit: () => $(!0)
|
15747
15809
|
}, null))];
|
15748
15810
|
}
|
15749
15811
|
})]
|
@@ -15751,8 +15813,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15751
15813
|
}
|
15752
15814
|
});
|
15753
15815
|
}
|
15754
|
-
function
|
15755
|
-
|
15816
|
+
function L() {
|
15817
|
+
A.value ? y.value.kgHeight = u.value : y.value.kgHeight = m.value;
|
15756
15818
|
}
|
15757
15819
|
return () => createVNode(KgResizable, {
|
15758
15820
|
kgHeight: y.value.kgHeight,
|
@@ -15760,7 +15822,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15760
15822
|
kgMinHeight: m.value,
|
15761
15823
|
kgMaxHeight: d.value,
|
15762
15824
|
kgDisabled: !i.value,
|
15763
|
-
kgClass:
|
15825
|
+
kgClass: M.value,
|
15764
15826
|
"kg-frm_id": n.formID
|
15765
15827
|
}, {
|
15766
15828
|
default: () => [o.value && createVNode("div", {
|
@@ -15774,7 +15836,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15774
15836
|
default: () => [createVNode("div", {
|
15775
15837
|
class: "ant-collapse-header"
|
15776
15838
|
}, [createVNode(Spin, {
|
15777
|
-
spinning:
|
15839
|
+
spinning: O.value
|
15778
15840
|
}, {
|
15779
15841
|
default: () => [D(), createVNode("div", {
|
15780
15842
|
class: "ant-collapse-extra"
|
@@ -15784,7 +15846,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15784
15846
|
class: "ant-collapse-content ant-collapse-content-active"
|
15785
15847
|
}, [createVNode("div", {
|
15786
15848
|
class: "ant-collapse-content-box"
|
15787
|
-
}, [
|
15849
|
+
}, [F()])])])])]
|
15788
15850
|
});
|
15789
15851
|
}
|
15790
15852
|
});
|
@@ -15850,13 +15912,13 @@ function useMagicKeys(e = {}) {
|
|
15850
15912
|
}
|
15851
15913
|
function v(p, g) {
|
15852
15914
|
var b, E;
|
15853
|
-
const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(),
|
15915
|
+
const C = (b = p.key) == null ? void 0 : b.toLowerCase(), T = (E = p.code) == null ? void 0 : E.toLowerCase(), A = [T, C].filter(Boolean);
|
15854
15916
|
T && (g ? l.add(p.code) : l.delete(p.code));
|
15855
|
-
for (const k of
|
15917
|
+
for (const k of A)
|
15856
15918
|
u.add(k), d(k, g);
|
15857
15919
|
C === "meta" && !g ? (c.forEach((k) => {
|
15858
15920
|
l.delete(k), d(k, !1);
|
15859
|
-
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...
|
15921
|
+
}), c.clear()) : typeof p.getModifierState == "function" && p.getModifierState("Meta") && g && [...l, ...A].forEach((k) => c.add(k));
|
15860
15922
|
}
|
15861
15923
|
r && (useEventListener(r, "keydown", (p) => (v(p, !0), s(p)), { passive: n }), useEventListener(r, "keyup", (p) => (v(p, !1), s(p)), { passive: n }), useEventListener("blur", m, { passive: !0 }), useEventListener("focus", m, { passive: !0 }));
|
15862
15924
|
const y = new Proxy(i, {
|
@@ -16255,23 +16317,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16255
16317
|
columnWidth: 32,
|
16256
16318
|
hideSelectAll: !0,
|
16257
16319
|
selectedRowKeys: d,
|
16258
|
-
onSelect: (
|
16320
|
+
onSelect: (P) => V(P)
|
16259
16321
|
}), v = ref({
|
16260
16322
|
visible: !1
|
16261
16323
|
}), y = computed(() => !!(unref(u) || unref(n) || unref(s) || unref(l))), p = computed(() => {
|
16262
|
-
var
|
16263
|
-
return !!u.value || ((
|
16324
|
+
var P;
|
16325
|
+
return !!u.value || ((P = a.getSelectedVarCatalog) == null ? void 0 : P.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
16264
16326
|
}), g = computed(() => !!(!unref(u) || unref(n) || unref(s))), b = computed(() => !!(!unref(a.getSelectedVarCatalog) || unref(n)));
|
16265
|
-
watch(() => a.getSelectedVar, (
|
16266
|
-
|
16327
|
+
watch(() => a.getSelectedVar, (P) => {
|
16328
|
+
P ? E() : (u.value = null, c.value = [], a.setSelectedVarCatalog(null));
|
16267
16329
|
}, {
|
16268
16330
|
immediate: !0
|
16269
|
-
}), watch(() => a.getSelectedVarCatalog, async (
|
16331
|
+
}), watch(() => a.getSelectedVarCatalog, async (P) => {
|
16270
16332
|
var U, D;
|
16271
|
-
i.value.var_text = (U =
|
16333
|
+
i.value.var_text = (U = P == null ? void 0 : P.var_text) != null ? U : "", (D = o.value) == null || D.clearValidate();
|
16272
16334
|
});
|
16273
|
-
async function E(
|
16274
|
-
var U, D,
|
16335
|
+
async function E(P = !1) {
|
16336
|
+
var U, D, w;
|
16275
16337
|
n.value = !0;
|
16276
16338
|
try {
|
16277
16339
|
const {
|
@@ -16286,14 +16348,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16286
16348
|
order: "asc"
|
16287
16349
|
}
|
16288
16350
|
});
|
16289
|
-
if (u.value = null, c.value = R != null ? R : [],
|
16290
|
-
const
|
16351
|
+
if (u.value = null, c.value = R != null ? R : [], P) {
|
16352
|
+
const F = c.value.find((L) => {
|
16291
16353
|
var K;
|
16292
|
-
return
|
16354
|
+
return L.id === ((K = a.getSelectedVarCatalog) == null ? void 0 : K.id);
|
16293
16355
|
});
|
16294
|
-
a.setSelectedVarCatalog(
|
16356
|
+
a.setSelectedVarCatalog(F != null ? F : null), d.value = F != null && F.id ? [F.id] : [];
|
16295
16357
|
} else
|
16296
|
-
a.setSelectedVarCatalog((D = c.value[0]) != null ? D : null), d.value = (
|
16358
|
+
a.setSelectedVarCatalog((D = c.value[0]) != null ? D : null), d.value = (w = c.value[0]) != null && w.id ? [c.value[0].id] : [];
|
16297
16359
|
} catch (R) {
|
16298
16360
|
KgLogger.debug(R == null ? void 0 : R.message);
|
16299
16361
|
} finally {
|
@@ -16301,66 +16363,66 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16301
16363
|
}
|
16302
16364
|
}
|
16303
16365
|
async function C() {
|
16304
|
-
var
|
16366
|
+
var P, U, D;
|
16305
16367
|
try {
|
16306
|
-
s.value = !0, await ((
|
16307
|
-
const
|
16368
|
+
s.value = !0, await ((P = o.value) == null ? void 0 : P.validate());
|
16369
|
+
const w = new VarCatalog({
|
16308
16370
|
...(U = a.getSelectedVarCatalog) != null ? U : {},
|
16309
16371
|
var_text: (D = i.value) == null ? void 0 : D.var_text
|
16310
16372
|
});
|
16311
|
-
|
16312
|
-
data:
|
16373
|
+
w.id ? w.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (w.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(w, "id"), await Add({
|
16374
|
+
data: w
|
16313
16375
|
}, {
|
16314
16376
|
successMessageMode: "none"
|
16315
16377
|
}), message.success({
|
16316
16378
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16317
16379
|
}), await E()) : (await Edit({
|
16318
|
-
data:
|
16380
|
+
data: w
|
16319
16381
|
}, {
|
16320
16382
|
successMessageMode: "none"
|
16321
16383
|
}), message.success({
|
16322
16384
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
16323
16385
|
}), await E(!0)) : (await Add({
|
16324
|
-
data:
|
16386
|
+
data: w
|
16325
16387
|
}, {
|
16326
16388
|
successMessageMode: "none"
|
16327
16389
|
}), message.success({
|
16328
16390
|
content: t.t("kg.KgVarConfig.createSuccess")
|
16329
16391
|
}), await E()), r.retrieve(e == null ? void 0 : e.value);
|
16330
|
-
} catch (
|
16331
|
-
KgUtil.throwIfNotFormError(
|
16392
|
+
} catch (w) {
|
16393
|
+
KgUtil.throwIfNotFormError(w);
|
16332
16394
|
} finally {
|
16333
16395
|
s.value = !1;
|
16334
16396
|
}
|
16335
16397
|
}
|
16336
16398
|
function T({
|
16337
|
-
isAllForm:
|
16399
|
+
isAllForm: P,
|
16338
16400
|
isAllLanguage: U
|
16339
16401
|
}) {
|
16340
|
-
var D,
|
16402
|
+
var D, w, R;
|
16341
16403
|
u.value = new VarCatalog({
|
16342
16404
|
id: "",
|
16343
16405
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
16344
16406
|
grp_nam: (D = a.getSelectedVar) == null ? void 0 : D.grp_nam,
|
16345
|
-
var_nam: (
|
16346
|
-
frm_id:
|
16407
|
+
var_nam: (w = a.getSelectedVar) == null ? void 0 : w.var_nam,
|
16408
|
+
frm_id: P || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
16347
16409
|
locale_id: U ? "ALL" : (R = t.locale) == null ? void 0 : R.value,
|
16348
16410
|
var_text: ""
|
16349
16411
|
}), c.value = [...c.value, u.value], a.setSelectedVarCatalog(unref(u)), d.value = [""];
|
16350
16412
|
}
|
16351
|
-
function
|
16413
|
+
function A() {
|
16352
16414
|
var U;
|
16353
16415
|
c.value = without$1(c.value, u.value), u.value = null;
|
16354
|
-
const
|
16355
|
-
a.setSelectedVarCatalog(
|
16416
|
+
const P = (U = c.value[0]) != null ? U : null;
|
16417
|
+
a.setSelectedVarCatalog(P), d.value = P ? [P.id] : [];
|
16356
16418
|
}
|
16357
16419
|
function k() {
|
16358
16420
|
KgUtil.confirm({
|
16359
16421
|
onOk: async () => {
|
16360
|
-
var
|
16422
|
+
var P;
|
16361
16423
|
await Delete({
|
16362
16424
|
params: {
|
16363
|
-
id: (
|
16425
|
+
id: (P = a.getSelectedVarCatalog) == null ? void 0 : P.id
|
16364
16426
|
}
|
16365
16427
|
}, {
|
16366
16428
|
successMessageMode: "none",
|
@@ -16371,23 +16433,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16371
16433
|
}
|
16372
16434
|
});
|
16373
16435
|
}
|
16374
|
-
function V(
|
16436
|
+
function V(P) {
|
16375
16437
|
var U;
|
16376
|
-
((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !==
|
16438
|
+
((U = a.getSelectedVarCatalog) == null ? void 0 : U.id) !== P.id && (unref(u) ? KgUtil.confirm({
|
16377
16439
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
16378
16440
|
onOk: () => {
|
16379
|
-
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(
|
16441
|
+
c.value = without$1(c.value, u.value), u.value = null, a.setSelectedVarCatalog(unref(P)), d.value = [P.id];
|
16380
16442
|
}
|
16381
|
-
}) : (a.setSelectedVarCatalog(unref(
|
16443
|
+
}) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
|
16382
16444
|
}
|
16383
|
-
function
|
16445
|
+
function O() {
|
16384
16446
|
v.value.visible = !0;
|
16385
16447
|
}
|
16386
16448
|
function I() {
|
16387
16449
|
return createVNode("div", {
|
16388
16450
|
class: "buttons"
|
16389
16451
|
}, [createVNode(Button, {
|
16390
|
-
onClick:
|
16452
|
+
onClick: O,
|
16391
16453
|
disabled: y.value,
|
16392
16454
|
type: "primary"
|
16393
16455
|
}, {
|
@@ -16402,8 +16464,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16402
16464
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
16403
16465
|
})]);
|
16404
16466
|
}
|
16405
|
-
function
|
16406
|
-
let
|
16467
|
+
function M() {
|
16468
|
+
let P, U;
|
16407
16469
|
return createVNode("div", {
|
16408
16470
|
class: "form"
|
16409
16471
|
}, [createVNode(Form, {
|
@@ -16430,9 +16492,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16430
16492
|
class: "buttons"
|
16431
16493
|
}, [createVNode(Button, {
|
16432
16494
|
disabled: g.value,
|
16433
|
-
onClick:
|
16434
|
-
}, _isSlot(
|
16435
|
-
default: () => [
|
16495
|
+
onClick: A
|
16496
|
+
}, _isSlot(P = t.t("common.cancelText")) ? P : {
|
16497
|
+
default: () => [P]
|
16436
16498
|
}), createVNode(Button, {
|
16437
16499
|
loading: s.value,
|
16438
16500
|
disabled: b.value,
|
@@ -16442,10 +16504,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16442
16504
|
default: () => [U]
|
16443
16505
|
})])]);
|
16444
16506
|
}
|
16445
|
-
function P
|
16507
|
+
function $(P) {
|
16446
16508
|
var D;
|
16447
16509
|
let U = "";
|
16448
|
-
return
|
16510
|
+
return P.id || (U += " ant-table-row-create"), P.id === ((D = a.getSelectedVarCatalog) == null ? void 0 : D.id) && (U += " ant-table-row-selected "), U;
|
16449
16511
|
}
|
16450
16512
|
return () => createVNode("div", {
|
16451
16513
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -16461,14 +16523,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
16461
16523
|
rowKey: "id",
|
16462
16524
|
dataSource: c.value,
|
16463
16525
|
loading: n.value,
|
16464
|
-
rowClassName:
|
16526
|
+
rowClassName: $,
|
16465
16527
|
rowSelection: m.value,
|
16466
|
-
customRow: (
|
16467
|
-
onClick: () => V(
|
16528
|
+
customRow: (P) => ({
|
16529
|
+
onClick: () => V(P)
|
16468
16530
|
})
|
16469
|
-
}, null),
|
16531
|
+
}, null), M(), createVNode(KgVarConfigModalVarCreateModal, {
|
16470
16532
|
visible: v.value.visible,
|
16471
|
-
"onUpdate:visible": (
|
16533
|
+
"onUpdate:visible": (P) => v.value.visible = P,
|
16472
16534
|
onKgOk: T
|
16473
16535
|
}, null)]);
|
16474
16536
|
}
|
@@ -16792,22 +16854,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16792
16854
|
customRender: ({
|
16793
16855
|
record: T
|
16794
16856
|
}) => {
|
16795
|
-
var k, V,
|
16796
|
-
const
|
16797
|
-
return createVNode("div", null, [createVNode("div", null, [(k =
|
16857
|
+
var k, V, O;
|
16858
|
+
const A = T;
|
16859
|
+
return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (V = A.whId) != null ? V : " "]), createVNode("div", {
|
16798
16860
|
class: "address"
|
16799
|
-
}, [(
|
16861
|
+
}, [(O = A.adrId) != null ? O : " "])]);
|
16800
16862
|
}
|
16801
16863
|
}]), u = ref([]), d = computed(() => {
|
16802
|
-
var
|
16803
|
-
const T = (
|
16864
|
+
var A;
|
16865
|
+
const T = (A = s.value) == null ? void 0 : A.toUpperCase();
|
16804
16866
|
return u.value.filter((k) => {
|
16805
|
-
var V,
|
16806
|
-
return ((
|
16867
|
+
var V, O, I, M, $, P;
|
16868
|
+
return ((O = (V = k.whDsc) == null ? void 0 : V.toUpperCase()) == null ? void 0 : O.includes(T)) || ((M = (I = k.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : M.includes(T)) || ((P = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : P.includes(T));
|
16807
16869
|
});
|
16808
16870
|
}), m = computed(() => {
|
16809
|
-
var T,
|
16810
|
-
return ((
|
16871
|
+
var T, A;
|
16872
|
+
return ((A = (T = r.option.value) == null ? void 0 : T.KgWarehouse) == null ? void 0 : A.enable) !== !1;
|
16811
16873
|
});
|
16812
16874
|
watch(a.visible, (T) => {
|
16813
16875
|
!m.value || (T ? y() : p());
|
@@ -16857,14 +16919,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16857
16919
|
i.value = !1;
|
16858
16920
|
}
|
16859
16921
|
}
|
16860
|
-
function E(T,
|
16922
|
+
function E(T, A) {
|
16861
16923
|
var k;
|
16862
16924
|
switch (T.detail) {
|
16863
16925
|
case 1:
|
16864
|
-
((k = o.value) == null ? void 0 : k.id) ===
|
16926
|
+
((k = o.value) == null ? void 0 : k.id) === A.id ? o.value = null : o.value = A;
|
16865
16927
|
break;
|
16866
16928
|
case 2:
|
16867
|
-
o.value =
|
16929
|
+
o.value = A, g();
|
16868
16930
|
break;
|
16869
16931
|
}
|
16870
16932
|
}
|
@@ -16874,8 +16936,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16874
16936
|
placement: "bottomRight"
|
16875
16937
|
}, {
|
16876
16938
|
default: () => {
|
16877
|
-
var T,
|
16878
|
-
return [((T = l.value) == null ? void 0 : T.whDsc) || ((
|
16939
|
+
var T, A;
|
16940
|
+
return [((T = l.value) == null ? void 0 : T.whDsc) || ((A = l.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
16879
16941
|
}
|
16880
16942
|
}), createVNode(KgModal, {
|
16881
16943
|
visible: a.visible.value,
|
@@ -16917,9 +16979,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16917
16979
|
columns: c,
|
16918
16980
|
class: "kg-flex-table",
|
16919
16981
|
customRow: (T) => {
|
16920
|
-
var
|
16982
|
+
var A;
|
16921
16983
|
return {
|
16922
|
-
class: T.id === ((
|
16984
|
+
class: T.id === ((A = o.value) == null ? void 0 : A.id) ? "selected" : "",
|
16923
16985
|
onClick: (k) => E(k, T)
|
16924
16986
|
};
|
16925
16987
|
}
|