@kengic/vue 0.9.3 → 0.9.5
Sign up to get free protection for your applications and to get access to all the features.
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var m = (e, t, r) => (
|
1
|
+
var Se = Object.defineProperty;
|
2
|
+
var Ce = (e, t, r) => t in e ? Se(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var m = (e, t, r) => (Ce(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, toRaw, unref, inject, getCurrentInstance, markRaw, ref, watch, reactive, effectScope, isRef, isReactive, toRef, computed, onUnmounted, toRefs, Fragment, isVNode, createTextVNode, provide, onMounted, mergeProps, onBeforeUnmount, onActivated, onDeactivated, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Modal, Spin, Tooltip, Select, SelectOption, Button, Progress, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Radio, Switch, Textarea, message, Drawer, Tag, Tabs, Dropdown, Menu, Table, Pagination, TableSummary, Upload, ConfigProvider, Transfer, Card, TabPane } from "ant-design-vue";
|
6
6
|
const index$7 = "";
|
@@ -2713,7 +2713,11 @@ var UploadOutlined = function(t, r) {
|
|
2713
2713
|
};
|
2714
2714
|
UploadOutlined.displayName = "UploadOutlined";
|
2715
2715
|
UploadOutlined.inheritAttrs = !1;
|
2716
|
-
const UploadOutlined$1 = UploadOutlined, data$
|
2716
|
+
const UploadOutlined$1 = UploadOutlined, data$a = {
|
2717
|
+
width: 1024,
|
2718
|
+
height: 1024,
|
2719
|
+
body: '<path fill="currentColor" d="M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244s244 109.2 244 244s-109.2 244-244 244z"/><path fill="currentColor" d="M512 392c-32.1 0-62.1 12.4-84.8 35.2c-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8C574.1 404.4 544.1 392 512 392z"/>'
|
2720
|
+
}, data$9 = {
|
2717
2721
|
width: 1024,
|
2718
2722
|
height: 1024,
|
2719
2723
|
body: '<path fill="currentColor" d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4c0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50s-22.4 50-50 50s-50-22.4-50-50zm180 266H566v-60h260v60z"/>'
|
@@ -2736,15 +2740,15 @@ const UploadOutlined$1 = UploadOutlined, data$9 = {
|
|
2736
2740
|
}, data$4 = {
|
2737
2741
|
width: 1024,
|
2738
2742
|
height: 1024,
|
2739
|
-
body: '<path fill="currentColor" d="
|
2743
|
+
body: '<path fill="currentColor" d="M688 312v-48c0-4.4-3.6-8-8-8H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8zm-392 88c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm376 116c-119.3 0-216 96.7-216 216s96.7 216 216 216s216-96.7 216-216s-96.7-216-216-216zm107.5 323.5C750.8 868.2 712.6 884 672 884s-78.8-15.8-107.5-44.5C535.8 810.8 520 772.6 520 732s15.8-78.8 44.5-107.5C593.2 595.8 631.4 580 672 580s78.8 15.8 107.5 44.5C808.2 653.2 824 691.4 824 732s-15.8 78.8-44.5 107.5zM640 812a32 32 0 1 0 64 0a32 32 0 1 0-64 0zm12-64h40c4.4 0 8-3.6 8-8V628c0-4.4-3.6-8-8-8h-40c-4.4 0-8 3.6-8 8v112c0 4.4 3.6 8 8 8zM440 852H208V148h560v344c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h272c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"/>'
|
2740
2744
|
}, data$3 = {
|
2741
2745
|
width: 1024,
|
2742
2746
|
height: 1024,
|
2743
|
-
body: '<path fill="currentColor" d="
|
2747
|
+
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372z"/><path fill="currentColor" d="M464 336a48 48 0 1 0 96 0a48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"/>'
|
2744
2748
|
}, data$2 = {
|
2745
2749
|
width: 1024,
|
2746
2750
|
height: 1024,
|
2747
|
-
body: '<path fill="currentColor" d="
|
2751
|
+
body: '<path fill="currentColor" d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"/><path fill="currentColor" d="M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8Z"/>'
|
2748
2752
|
}, data$1 = {
|
2749
2753
|
width: 1024,
|
2750
2754
|
height: 1024,
|
@@ -2752,7 +2756,7 @@ const UploadOutlined$1 = UploadOutlined, data$9 = {
|
|
2752
2756
|
}, data = {
|
2753
2757
|
width: 1024,
|
2754
2758
|
height: 1024,
|
2755
|
-
body: '<path fill="currentColor" d="
|
2759
|
+
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372c0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z"/>'
|
2756
2760
|
}, matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/, stringToIcon = (e, t, r, a = "") => {
|
2757
2761
|
const n = e.split(":");
|
2758
2762
|
if (e.slice(0, 1) === "@") {
|
@@ -3353,9 +3357,9 @@ function sendQuery(e, t, r, a) {
|
|
3353
3357
|
T.status === "pending" && (T.status = "aborted");
|
3354
3358
|
}), g = [];
|
3355
3359
|
}
|
3356
|
-
function k(T, $,
|
3360
|
+
function k(T, $, M) {
|
3357
3361
|
const w = $ !== "success";
|
3358
|
-
switch (g = g.filter((
|
3362
|
+
switch (g = g.filter((I) => I !== T), l) {
|
3359
3363
|
case "pending":
|
3360
3364
|
break;
|
3361
3365
|
case "failed":
|
@@ -3366,19 +3370,19 @@ function sendQuery(e, t, r, a) {
|
|
3366
3370
|
return;
|
3367
3371
|
}
|
3368
3372
|
if ($ === "abort") {
|
3369
|
-
u =
|
3373
|
+
u = M, C();
|
3370
3374
|
return;
|
3371
3375
|
}
|
3372
3376
|
if (w) {
|
3373
|
-
u =
|
3377
|
+
u = M, g.length || (i.length ? A() : C());
|
3374
3378
|
return;
|
3375
3379
|
}
|
3376
3380
|
if (y(), E(), !e.random) {
|
3377
|
-
const
|
3378
|
-
|
3381
|
+
const I = e.resources.indexOf(T.resource);
|
3382
|
+
I !== -1 && I !== e.index && (e.index = I);
|
3379
3383
|
}
|
3380
|
-
l = "completed", v.forEach((
|
3381
|
-
M
|
3384
|
+
l = "completed", v.forEach((I) => {
|
3385
|
+
I(M);
|
3382
3386
|
});
|
3383
3387
|
}
|
3384
3388
|
function A() {
|
@@ -3399,8 +3403,8 @@ function sendQuery(e, t, r, a) {
|
|
3399
3403
|
const $ = {
|
3400
3404
|
status: "pending",
|
3401
3405
|
resource: T,
|
3402
|
-
callback: (
|
3403
|
-
k($,
|
3406
|
+
callback: (M, w) => {
|
3407
|
+
k($, M, w);
|
3404
3408
|
}
|
3405
3409
|
};
|
3406
3410
|
g.push($), c++, d = setTimeout(A, e.rotate), r(T, t, $.callback);
|
@@ -3946,8 +3950,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3946
3950
|
}, m: function V(O, D) {
|
3947
3951
|
if (O.date() < D.date())
|
3948
3952
|
return -V(D, O);
|
3949
|
-
var U = 12 * (D.year() - O.year()) + (D.month() - O.month()), F = O.clone().add(U, d),
|
3950
|
-
return +(-(U + (D - F) / (
|
3953
|
+
var U = 12 * (D.year() - O.year()) + (D.month() - O.month()), F = O.clone().add(U, d), N = D - F < 0, B = O.clone().add(U + (N ? -1 : 1), d);
|
3954
|
+
return +(-(U + (D - F) / (N ? F - B : B - F)) || 0);
|
3951
3955
|
}, a: function(V) {
|
3952
3956
|
return V < 0 ? Math.ceil(V) || 0 : Math.floor(V);
|
3953
3957
|
}, p: function(V) {
|
@@ -3956,15 +3960,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3956
3960
|
return V === void 0;
|
3957
3961
|
} }, A = "en", T = {};
|
3958
3962
|
T[A] = C;
|
3959
|
-
var $ = "$isDayjsObject",
|
3963
|
+
var $ = "$isDayjsObject", M = function(V) {
|
3960
3964
|
return V instanceof P || !(!V || !V[$]);
|
3961
3965
|
}, w = function V(O, D, U) {
|
3962
3966
|
var F;
|
3963
3967
|
if (!O)
|
3964
3968
|
return A;
|
3965
3969
|
if (typeof O == "string") {
|
3966
|
-
var
|
3967
|
-
T[
|
3970
|
+
var N = O.toLowerCase();
|
3971
|
+
T[N] && (F = N), D && (T[N] = D, F = N);
|
3968
3972
|
var B = O.split("-");
|
3969
3973
|
if (!F && B.length > 1)
|
3970
3974
|
return V(B[0]);
|
@@ -3973,14 +3977,14 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3973
3977
|
T[W] = O, F = W;
|
3974
3978
|
}
|
3975
3979
|
return !U && F && (A = F), F || !U && A;
|
3976
|
-
},
|
3977
|
-
if (
|
3980
|
+
}, I = function(V, O) {
|
3981
|
+
if (M(V))
|
3978
3982
|
return V.clone();
|
3979
3983
|
var D = typeof O == "object" ? O : {};
|
3980
3984
|
return D.date = V, D.args = arguments, new P(D);
|
3981
|
-
},
|
3982
|
-
|
3983
|
-
return
|
3985
|
+
}, K = k;
|
3986
|
+
K.l = w, K.i = M, K.w = function(V, O) {
|
3987
|
+
return I(V, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
3984
3988
|
};
|
3985
3989
|
var P = function() {
|
3986
3990
|
function V(D) {
|
@@ -3989,10 +3993,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
3989
3993
|
var O = V.prototype;
|
3990
3994
|
return O.parse = function(D) {
|
3991
3995
|
this.$d = function(U) {
|
3992
|
-
var F = U.date,
|
3996
|
+
var F = U.date, N = U.utc;
|
3993
3997
|
if (F === null)
|
3994
3998
|
return new Date(NaN);
|
3995
|
-
if (
|
3999
|
+
if (K.u(F))
|
3996
4000
|
return new Date();
|
3997
4001
|
if (F instanceof Date)
|
3998
4002
|
return new Date(F);
|
@@ -4000,7 +4004,7 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4000
4004
|
var B = F.match(_);
|
4001
4005
|
if (B) {
|
4002
4006
|
var W = B[2] - 1 || 0, X = (B[7] || "0").substring(0, 3);
|
4003
|
-
return
|
4007
|
+
return N ? new Date(Date.UTC(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X)) : new Date(B[1], W, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, X);
|
4004
4008
|
}
|
4005
4009
|
}
|
4006
4010
|
return new Date(F);
|
@@ -4009,37 +4013,37 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4009
4013
|
var D = this.$d;
|
4010
4014
|
this.$y = D.getFullYear(), this.$M = D.getMonth(), this.$D = D.getDate(), this.$W = D.getDay(), this.$H = D.getHours(), this.$m = D.getMinutes(), this.$s = D.getSeconds(), this.$ms = D.getMilliseconds();
|
4011
4015
|
}, O.$utils = function() {
|
4012
|
-
return
|
4016
|
+
return K;
|
4013
4017
|
}, O.isValid = function() {
|
4014
4018
|
return this.$d.toString() !== p;
|
4015
4019
|
}, O.isSame = function(D, U) {
|
4016
|
-
var F =
|
4020
|
+
var F = I(D);
|
4017
4021
|
return this.startOf(U) <= F && F <= this.endOf(U);
|
4018
4022
|
}, O.isAfter = function(D, U) {
|
4019
|
-
return
|
4023
|
+
return I(D) < this.startOf(U);
|
4020
4024
|
}, O.isBefore = function(D, U) {
|
4021
|
-
return this.endOf(U) <
|
4025
|
+
return this.endOf(U) < I(D);
|
4022
4026
|
}, O.$g = function(D, U, F) {
|
4023
|
-
return
|
4027
|
+
return K.u(D) ? this[U] : this.set(F, D);
|
4024
4028
|
}, O.unix = function() {
|
4025
4029
|
return Math.floor(this.valueOf() / 1e3);
|
4026
4030
|
}, O.valueOf = function() {
|
4027
4031
|
return this.$d.getTime();
|
4028
4032
|
}, O.startOf = function(D, U) {
|
4029
|
-
var F = this,
|
4030
|
-
var le =
|
4031
|
-
return
|
4032
|
-
}, X = function(
|
4033
|
-
return
|
4034
|
-
}, q = this.$W, Z = this.$M,
|
4033
|
+
var F = this, N = !!K.u(U) || U, B = K.p(D), W = function(ce, ne) {
|
4034
|
+
var le = K.w(F.$u ? Date.UTC(F.$y, ne, ce) : new Date(F.$y, ne, ce), F);
|
4035
|
+
return N ? le : le.endOf(c);
|
4036
|
+
}, X = function(ce, ne) {
|
4037
|
+
return K.w(F.toDate()[ce].apply(F.toDate("s"), (N ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ne)), F);
|
4038
|
+
}, q = this.$W, Z = this.$M, ee = this.$D, se = "set" + (this.$u ? "UTC" : "");
|
4035
4039
|
switch (B) {
|
4036
4040
|
case v:
|
4037
|
-
return
|
4041
|
+
return N ? W(1, 0) : W(31, 11);
|
4038
4042
|
case d:
|
4039
|
-
return
|
4043
|
+
return N ? W(1, Z) : W(0, Z + 1);
|
4040
4044
|
case u:
|
4041
4045
|
var oe = this.$locale().weekStart || 0, ge = (q < oe ? q + 7 : q) - oe;
|
4042
|
-
return W(
|
4046
|
+
return W(N ? ee - ge : ee + (6 - ge), Z);
|
4043
4047
|
case c:
|
4044
4048
|
case y:
|
4045
4049
|
return X(se + "Hours", 0);
|
@@ -4055,8 +4059,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4055
4059
|
}, O.endOf = function(D) {
|
4056
4060
|
return this.startOf(D, !1);
|
4057
4061
|
}, O.$set = function(D, U) {
|
4058
|
-
var F,
|
4059
|
-
if (
|
4062
|
+
var F, N = K.p(D), B = "set" + (this.$u ? "UTC" : ""), W = (F = {}, F[c] = B + "Date", F[y] = B + "Date", F[d] = B + "Month", F[v] = B + "FullYear", F[l] = B + "Hours", F[o] = B + "Minutes", F[i] = B + "Seconds", F[s] = B + "Milliseconds", F)[N], X = N === c ? this.$D + (U - this.$W) : U;
|
4063
|
+
if (N === d || N === v) {
|
4060
4064
|
var q = this.clone().set(y, 1);
|
4061
4065
|
q.$d[W](X), q.init(), this.$d = q.set(y, Math.min(this.$D, q.daysInMonth())).$d;
|
4062
4066
|
} else
|
@@ -4065,13 +4069,13 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4065
4069
|
}, O.set = function(D, U) {
|
4066
4070
|
return this.clone().$set(D, U);
|
4067
4071
|
}, O.get = function(D) {
|
4068
|
-
return this[
|
4072
|
+
return this[K.p(D)]();
|
4069
4073
|
}, O.add = function(D, U) {
|
4070
|
-
var F,
|
4074
|
+
var F, N = this;
|
4071
4075
|
D = Number(D);
|
4072
|
-
var B =
|
4073
|
-
var
|
4074
|
-
return
|
4076
|
+
var B = K.p(U), W = function(Z) {
|
4077
|
+
var ee = I(N);
|
4078
|
+
return K.w(ee.date(ee.date() + Math.round(Z * D)), N);
|
4075
4079
|
};
|
4076
4080
|
if (B === d)
|
4077
4081
|
return this.set(d, this.$M + D);
|
@@ -4082,40 +4086,40 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4082
4086
|
if (B === u)
|
4083
4087
|
return W(7);
|
4084
4088
|
var X = (F = {}, F[o] = a, F[l] = n, F[i] = r, F)[B] || 1, q = this.$d.getTime() + D * X;
|
4085
|
-
return
|
4089
|
+
return K.w(q, this);
|
4086
4090
|
}, O.subtract = function(D, U) {
|
4087
4091
|
return this.add(-1 * D, U);
|
4088
4092
|
}, O.format = function(D) {
|
4089
4093
|
var U = this, F = this.$locale();
|
4090
4094
|
if (!this.isValid())
|
4091
4095
|
return F.invalidDate || p;
|
4092
|
-
var
|
4093
|
-
return ne && (ne[le] || ne(U,
|
4096
|
+
var N = D || "YYYY-MM-DDTHH:mm:ssZ", B = K.z(this), W = this.$H, X = this.$m, q = this.$M, Z = F.weekdays, ee = F.months, se = F.meridiem, oe = function(ne, le, de, fe) {
|
4097
|
+
return ne && (ne[le] || ne(U, N)) || de[le].slice(0, fe);
|
4094
4098
|
}, ge = function(ne) {
|
4095
|
-
return
|
4096
|
-
},
|
4099
|
+
return K.s(W % 12 || 12, ne, "0");
|
4100
|
+
}, ce = se || function(ne, le, de) {
|
4097
4101
|
var fe = ne < 12 ? "AM" : "PM";
|
4098
|
-
return
|
4102
|
+
return de ? fe.toLowerCase() : fe;
|
4099
4103
|
};
|
4100
|
-
return
|
4101
|
-
return le || function(
|
4102
|
-
switch (
|
4104
|
+
return N.replace(b, function(ne, le) {
|
4105
|
+
return le || function(de) {
|
4106
|
+
switch (de) {
|
4103
4107
|
case "YY":
|
4104
4108
|
return String(U.$y).slice(-2);
|
4105
4109
|
case "YYYY":
|
4106
|
-
return
|
4110
|
+
return K.s(U.$y, 4, "0");
|
4107
4111
|
case "M":
|
4108
4112
|
return q + 1;
|
4109
4113
|
case "MM":
|
4110
|
-
return
|
4114
|
+
return K.s(q + 1, 2, "0");
|
4111
4115
|
case "MMM":
|
4112
|
-
return oe(F.monthsShort, q,
|
4116
|
+
return oe(F.monthsShort, q, ee, 3);
|
4113
4117
|
case "MMMM":
|
4114
|
-
return oe(
|
4118
|
+
return oe(ee, q);
|
4115
4119
|
case "D":
|
4116
4120
|
return U.$D;
|
4117
4121
|
case "DD":
|
4118
|
-
return
|
4122
|
+
return K.s(U.$D, 2, "0");
|
4119
4123
|
case "d":
|
4120
4124
|
return String(U.$W);
|
4121
4125
|
case "dd":
|
@@ -4127,25 +4131,25 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4127
4131
|
case "H":
|
4128
4132
|
return String(W);
|
4129
4133
|
case "HH":
|
4130
|
-
return
|
4134
|
+
return K.s(W, 2, "0");
|
4131
4135
|
case "h":
|
4132
4136
|
return ge(1);
|
4133
4137
|
case "hh":
|
4134
4138
|
return ge(2);
|
4135
4139
|
case "a":
|
4136
|
-
return
|
4140
|
+
return ce(W, X, !0);
|
4137
4141
|
case "A":
|
4138
|
-
return
|
4142
|
+
return ce(W, X, !1);
|
4139
4143
|
case "m":
|
4140
4144
|
return String(X);
|
4141
4145
|
case "mm":
|
4142
|
-
return
|
4146
|
+
return K.s(X, 2, "0");
|
4143
4147
|
case "s":
|
4144
4148
|
return String(U.$s);
|
4145
4149
|
case "ss":
|
4146
|
-
return
|
4150
|
+
return K.s(U.$s, 2, "0");
|
4147
4151
|
case "SSS":
|
4148
|
-
return
|
4152
|
+
return K.s(U.$ms, 3, "0");
|
4149
4153
|
case "Z":
|
4150
4154
|
return B;
|
4151
4155
|
}
|
@@ -4155,38 +4159,38 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4155
4159
|
}, O.utcOffset = function() {
|
4156
4160
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4157
4161
|
}, O.diff = function(D, U, F) {
|
4158
|
-
var
|
4159
|
-
return
|
4162
|
+
var N, B = this, W = K.p(U), X = I(D), q = (X.utcOffset() - this.utcOffset()) * a, Z = this - X, ee = function() {
|
4163
|
+
return K.m(B, X);
|
4160
4164
|
};
|
4161
4165
|
switch (W) {
|
4162
4166
|
case v:
|
4163
|
-
|
4167
|
+
N = ee() / 12;
|
4164
4168
|
break;
|
4165
4169
|
case d:
|
4166
|
-
|
4170
|
+
N = ee();
|
4167
4171
|
break;
|
4168
4172
|
case g:
|
4169
|
-
|
4173
|
+
N = ee() / 3;
|
4170
4174
|
break;
|
4171
4175
|
case u:
|
4172
|
-
|
4176
|
+
N = (Z - q) / 6048e5;
|
4173
4177
|
break;
|
4174
4178
|
case c:
|
4175
|
-
|
4179
|
+
N = (Z - q) / 864e5;
|
4176
4180
|
break;
|
4177
4181
|
case l:
|
4178
|
-
|
4182
|
+
N = Z / n;
|
4179
4183
|
break;
|
4180
4184
|
case o:
|
4181
|
-
|
4185
|
+
N = Z / a;
|
4182
4186
|
break;
|
4183
4187
|
case i:
|
4184
|
-
|
4188
|
+
N = Z / r;
|
4185
4189
|
break;
|
4186
4190
|
default:
|
4187
|
-
|
4191
|
+
N = Z;
|
4188
4192
|
}
|
4189
|
-
return F ?
|
4193
|
+
return F ? N : K.a(N);
|
4190
4194
|
}, O.daysInMonth = function() {
|
4191
4195
|
return this.endOf(d).$D;
|
4192
4196
|
}, O.$locale = function() {
|
@@ -4194,10 +4198,10 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4194
4198
|
}, O.locale = function(D, U) {
|
4195
4199
|
if (!D)
|
4196
4200
|
return this.$L;
|
4197
|
-
var F = this.clone(),
|
4198
|
-
return
|
4201
|
+
var F = this.clone(), N = w(D, U, !0);
|
4202
|
+
return N && (F.$L = N), F;
|
4199
4203
|
}, O.clone = function() {
|
4200
|
-
return
|
4204
|
+
return K.w(this.$d, this);
|
4201
4205
|
}, O.toDate = function() {
|
4202
4206
|
return new Date(this.valueOf());
|
4203
4207
|
}, O.toJSON = function() {
|
@@ -4208,15 +4212,15 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4208
4212
|
return this.$d.toUTCString();
|
4209
4213
|
}, V;
|
4210
4214
|
}(), H = P.prototype;
|
4211
|
-
return
|
4215
|
+
return I.prototype = H, [["$ms", s], ["$s", i], ["$m", o], ["$H", l], ["$W", c], ["$M", d], ["$y", v], ["$D", y]].forEach(function(V) {
|
4212
4216
|
H[V[1]] = function(O) {
|
4213
4217
|
return this.$g(O, V[0], V[1]);
|
4214
4218
|
};
|
4215
|
-
}),
|
4216
|
-
return V.$i || (V(O, P,
|
4217
|
-
},
|
4218
|
-
return
|
4219
|
-
},
|
4219
|
+
}), I.extend = function(V, O) {
|
4220
|
+
return V.$i || (V(O, P, I), V.$i = !0), I;
|
4221
|
+
}, I.locale = w, I.isDayjs = M, I.unix = function(V) {
|
4222
|
+
return I(1e3 * V);
|
4223
|
+
}, I.en = T[A], I.Ls = T, I.p = {}, I;
|
4220
4224
|
});
|
4221
4225
|
})(dayjs_min);
|
4222
4226
|
const dayjs = dayjs_min.exports;
|
@@ -4263,23 +4267,23 @@ function filesize(e, {
|
|
4263
4267
|
} = {}) {
|
4264
4268
|
let b = y, C = Number(e), E = [], k = 0, A = EMPTY;
|
4265
4269
|
u === SI ? (a = 10, u = JEDEC) : u === IEC || u === JEDEC ? a = 2 : a === 2 ? u = IEC : (a = 10, u = JEDEC);
|
4266
|
-
const T = a === 10 ? 1e3 : 1024, $ = g === !0,
|
4270
|
+
const T = a === 10 ? 1e3 : 1024, $ = g === !0, M = C < 0, w = Math[p];
|
4267
4271
|
if (typeof e != "bigint" && isNaN(e))
|
4268
4272
|
throw new TypeError(INVALID_NUMBER);
|
4269
4273
|
if (typeof w !== FUNCTION)
|
4270
4274
|
throw new TypeError(INVALID_ROUND);
|
4271
|
-
if (
|
4275
|
+
if (M && (C = -C), (b === -1 || isNaN(b)) && (b = Math.floor(Math.log(C) / Math.log(T)), b < 0 && (b = 0)), b > 8 && (_ > 0 && (_ += 8 - b), b = 8), d === EXPONENT)
|
4272
4276
|
return b;
|
4273
4277
|
if (C === 0)
|
4274
4278
|
E[0] = 0, A = E[1] = STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4275
4279
|
else {
|
4276
4280
|
k = C / (a === 2 ? Math.pow(2, b * 10) : Math.pow(1e3, b)), t && (k = k * 8, k >= T && b < 8 && (k = k / T, b++));
|
4277
|
-
const
|
4278
|
-
E[0] = w(k *
|
4281
|
+
const I = Math.pow(10, b > 0 ? n : 0);
|
4282
|
+
E[0] = w(k * I) / I, E[0] === T && b < 8 && y === -1 && (E[0] = 1, b++), A = E[1] = a === 10 && b === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][b];
|
4279
4283
|
}
|
4280
|
-
if (
|
4281
|
-
const
|
4282
|
-
E[0] = `${
|
4284
|
+
if (M && (E[0] = -E[0]), _ > 0 && (E[0] = E[0].toPrecision(_)), E[1] = c[E[1]] || E[1], s === !0 ? E[0] = E[0].toLocaleString() : s.length > 0 ? E[0] = E[0].toLocaleString(s, i) : o.length > 0 && (E[0] = E[0].toString().replace(PERIOD, o)), r && Number.isInteger(E[0]) === !1 && n > 0) {
|
4285
|
+
const I = o || PERIOD, K = E[0].toString().split(I), P = K[1] || EMPTY, H = P.length, V = n - H;
|
4286
|
+
E[0] = `${K[0]}${I}${P.padEnd(H + V, ZERO)}`;
|
4283
4287
|
}
|
4284
4288
|
return $ && (E[1] = v[b] ? v[b] : STRINGS.fullform[u][b] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), d === ARRAY ? E : d === OBJECT ? {
|
4285
4289
|
value: E[0],
|
@@ -5630,19 +5634,19 @@ function debounce(e, t, r) {
|
|
5630
5634
|
throw new TypeError(FUNC_ERROR_TEXT);
|
5631
5635
|
t = toNumber(t) || 0, isObject$2(r) && (u = !!r.leading, d = "maxWait" in r, s = d ? nativeMax$1(toNumber(r.maxWait) || 0, t) : s, g = "trailing" in r ? !!r.trailing : g);
|
5632
5636
|
function v(T) {
|
5633
|
-
var $ = a,
|
5634
|
-
return a = n = void 0, c = T, i = e.apply(
|
5637
|
+
var $ = a, M = n;
|
5638
|
+
return a = n = void 0, c = T, i = e.apply(M, $), i;
|
5635
5639
|
}
|
5636
5640
|
function y(T) {
|
5637
5641
|
return c = T, o = setTimeout(b, t), u ? v(T) : i;
|
5638
5642
|
}
|
5639
5643
|
function p(T) {
|
5640
|
-
var $ = T - l,
|
5641
|
-
return d ? nativeMin$1(w, s -
|
5644
|
+
var $ = T - l, M = T - c, w = t - $;
|
5645
|
+
return d ? nativeMin$1(w, s - M) : w;
|
5642
5646
|
}
|
5643
5647
|
function _(T) {
|
5644
|
-
var $ = T - l,
|
5645
|
-
return l === void 0 || $ >= t || $ < 0 || d &&
|
5648
|
+
var $ = T - l, M = T - c;
|
5649
|
+
return l === void 0 || $ >= t || $ < 0 || d && M >= s;
|
5646
5650
|
}
|
5647
5651
|
function b() {
|
5648
5652
|
var T = now$1();
|
@@ -6803,22 +6807,22 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6803
6807
|
const l = {
|
6804
6808
|
deep: !0
|
6805
6809
|
};
|
6806
|
-
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (
|
6807
|
-
c ? v =
|
6810
|
+
process.env.NODE_ENV !== "production" && !isVue2 && (l.onTrigger = (M) => {
|
6811
|
+
c ? v = M : c == !1 && !T._hotUpdating && (Array.isArray(v) ? v.push(M) : console.error("\u{1F34D} debuggerEvents should be an array. This is most likely an internal Pinia bug."));
|
6808
6812
|
});
|
6809
6813
|
let c, u, d = markRaw([]), g = markRaw([]), v;
|
6810
6814
|
const y = a.state.value[e];
|
6811
6815
|
!i && !y && (process.env.NODE_ENV === "production" || !n) && (a.state.value[e] = {});
|
6812
6816
|
const p = ref({});
|
6813
|
-
function _(
|
6817
|
+
function _(M) {
|
6814
6818
|
let w;
|
6815
|
-
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof
|
6819
|
+
c = u = !1, process.env.NODE_ENV !== "production" && (v = []), typeof M == "function" ? (M(a.state.value[e]), w = {
|
6816
6820
|
type: MutationType.patchFunction,
|
6817
6821
|
storeId: e,
|
6818
6822
|
events: v
|
6819
|
-
}) : (mergeReactiveObjects(a.state.value[e],
|
6823
|
+
}) : (mergeReactiveObjects(a.state.value[e], M), w = {
|
6820
6824
|
type: MutationType.patchObject,
|
6821
|
-
payload:
|
6825
|
+
payload: M,
|
6822
6826
|
storeId: e,
|
6823
6827
|
events: v
|
6824
6828
|
}), nextTick().then(() => {
|
@@ -6831,30 +6835,30 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6831
6835
|
function C() {
|
6832
6836
|
s.stop(), d = [], g = [], a._s.delete(e);
|
6833
6837
|
}
|
6834
|
-
function E(
|
6838
|
+
function E(M, w) {
|
6835
6839
|
return function() {
|
6836
6840
|
setActivePinia(a);
|
6837
|
-
const
|
6841
|
+
const I = Array.from(arguments), K = [], P = [];
|
6838
6842
|
function H(D) {
|
6839
|
-
|
6843
|
+
K.push(D);
|
6840
6844
|
}
|
6841
6845
|
function V(D) {
|
6842
6846
|
P.push(D);
|
6843
6847
|
}
|
6844
6848
|
triggerSubscriptions(g, {
|
6845
|
-
args:
|
6846
|
-
name:
|
6849
|
+
args: I,
|
6850
|
+
name: M,
|
6847
6851
|
store: T,
|
6848
6852
|
after: H,
|
6849
6853
|
onError: V
|
6850
6854
|
});
|
6851
6855
|
let O;
|
6852
6856
|
try {
|
6853
|
-
O = w.apply(this && this.$id === e ? this : T,
|
6857
|
+
O = w.apply(this && this.$id === e ? this : T, I);
|
6854
6858
|
} catch (D) {
|
6855
6859
|
throw triggerSubscriptions(P, D), D;
|
6856
6860
|
}
|
6857
|
-
return O instanceof Promise ? O.then((D) => (triggerSubscriptions(
|
6861
|
+
return O instanceof Promise ? O.then((D) => (triggerSubscriptions(K, D), D)).catch((D) => (triggerSubscriptions(P, D), Promise.reject(D))) : (triggerSubscriptions(K, O), O);
|
6858
6862
|
};
|
6859
6863
|
}
|
6860
6864
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6868,15 +6872,15 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6868
6872
|
$onAction: addSubscription.bind(null, g),
|
6869
6873
|
$patch: _,
|
6870
6874
|
$reset: b,
|
6871
|
-
$subscribe(
|
6872
|
-
const
|
6873
|
-
(w.flush === "sync" ? u : c) &&
|
6875
|
+
$subscribe(M, w = {}) {
|
6876
|
+
const I = addSubscription(d, M, w.detached, () => K()), K = s.run(() => watch(() => a.state.value[e], (P) => {
|
6877
|
+
(w.flush === "sync" ? u : c) && M({
|
6874
6878
|
storeId: e,
|
6875
6879
|
type: MutationType.direct,
|
6876
6880
|
events: v
|
6877
6881
|
}, P);
|
6878
6882
|
}, assign$1({}, l, w)));
|
6879
|
-
return
|
6883
|
+
return I;
|
6880
6884
|
},
|
6881
6885
|
$dispose: C
|
6882
6886
|
}, T = reactive(assign$1(
|
@@ -6888,53 +6892,53 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6888
6892
|
));
|
6889
6893
|
a._s.set(e, T);
|
6890
6894
|
const $ = a._e.run(() => (s = effectScope(), s.run(() => t())));
|
6891
|
-
for (const
|
6892
|
-
const w = $[
|
6895
|
+
for (const M in $) {
|
6896
|
+
const w = $[M];
|
6893
6897
|
if (isRef(w) && !isComputed(w) || isReactive(w))
|
6894
|
-
process.env.NODE_ENV !== "production" && n ? set(p.value,
|
6898
|
+
process.env.NODE_ENV !== "production" && n ? set(p.value, M, toRef($, M)) : i || (y && shouldHydrate(w) && (isRef(w) ? w.value = y[M] : mergeReactiveObjects(w, y[M])), a.state.value[e][M] = w), process.env.NODE_ENV !== "production" && k.state.push(M);
|
6895
6899
|
else if (typeof w == "function") {
|
6896
|
-
const
|
6897
|
-
$[
|
6900
|
+
const I = process.env.NODE_ENV !== "production" && n ? w : E(M, w);
|
6901
|
+
$[M] = I, process.env.NODE_ENV !== "production" && (k.actions[M] = w), o.actions[M] = w;
|
6898
6902
|
} else
|
6899
|
-
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[
|
6903
|
+
process.env.NODE_ENV !== "production" && isComputed(w) && (k.getters[M] = i ? r.getters[M] : w, IS_CLIENT && ($._getters || ($._getters = markRaw([]))).push(M));
|
6900
6904
|
}
|
6901
6905
|
if (assign$1(T, $), assign$1(toRaw(T), $), Object.defineProperty(T, "$state", {
|
6902
6906
|
get: () => process.env.NODE_ENV !== "production" && n ? p.value : a.state.value[e],
|
6903
|
-
set: (
|
6907
|
+
set: (M) => {
|
6904
6908
|
if (process.env.NODE_ENV !== "production" && n)
|
6905
6909
|
throw new Error("cannot set hotState");
|
6906
6910
|
_((w) => {
|
6907
|
-
assign$1(w,
|
6911
|
+
assign$1(w, M);
|
6908
6912
|
});
|
6909
6913
|
}
|
6910
6914
|
}), process.env.NODE_ENV !== "production") {
|
6911
6915
|
T._hotUpdate = markRaw((w) => {
|
6912
|
-
T._hotUpdating = !0, w._hmrPayload.state.forEach((
|
6913
|
-
if (
|
6914
|
-
const
|
6915
|
-
typeof
|
6916
|
+
T._hotUpdating = !0, w._hmrPayload.state.forEach((I) => {
|
6917
|
+
if (I in T.$state) {
|
6918
|
+
const K = w.$state[I], P = T.$state[I];
|
6919
|
+
typeof K == "object" && isPlainObject(K) && isPlainObject(P) ? patchObject(K, P) : w.$state[I] = P;
|
6916
6920
|
}
|
6917
|
-
set(T,
|
6918
|
-
}), Object.keys(T.$state).forEach((
|
6919
|
-
|
6921
|
+
set(T, I, toRef(w.$state, I));
|
6922
|
+
}), Object.keys(T.$state).forEach((I) => {
|
6923
|
+
I in w.$state || del(T, I);
|
6920
6924
|
}), c = !1, u = !1, a.state.value[e] = toRef(w._hmrPayload, "hotState"), u = !0, nextTick().then(() => {
|
6921
6925
|
c = !0;
|
6922
6926
|
});
|
6923
|
-
for (const
|
6924
|
-
const
|
6925
|
-
set(T,
|
6927
|
+
for (const I in w._hmrPayload.actions) {
|
6928
|
+
const K = w[I];
|
6929
|
+
set(T, I, E(I, K));
|
6926
6930
|
}
|
6927
|
-
for (const
|
6928
|
-
const
|
6929
|
-
set(T,
|
6931
|
+
for (const I in w._hmrPayload.getters) {
|
6932
|
+
const K = w._hmrPayload.getters[I], P = i ? computed(() => (setActivePinia(a), K.call(T, T))) : K;
|
6933
|
+
set(T, I, P);
|
6930
6934
|
}
|
6931
|
-
Object.keys(T._hmrPayload.getters).forEach((
|
6932
|
-
|
6933
|
-
}), Object.keys(T._hmrPayload.actions).forEach((
|
6934
|
-
|
6935
|
+
Object.keys(T._hmrPayload.getters).forEach((I) => {
|
6936
|
+
I in w._hmrPayload.getters || del(T, I);
|
6937
|
+
}), Object.keys(T._hmrPayload.actions).forEach((I) => {
|
6938
|
+
I in w._hmrPayload.actions || del(T, I);
|
6935
6939
|
}), T._hmrPayload = w._hmrPayload, T._getters = w._getters, T._hotUpdating = !1;
|
6936
6940
|
});
|
6937
|
-
const
|
6941
|
+
const M = {
|
6938
6942
|
writable: !0,
|
6939
6943
|
configurable: !0,
|
6940
6944
|
enumerable: !1
|
@@ -6942,21 +6946,21 @@ function createSetupStore(e, t, r = {}, a, n) {
|
|
6942
6946
|
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((w) => {
|
6943
6947
|
Object.defineProperty(T, w, {
|
6944
6948
|
value: T[w],
|
6945
|
-
...
|
6949
|
+
...M
|
6946
6950
|
});
|
6947
6951
|
});
|
6948
6952
|
}
|
6949
|
-
return a._p.forEach((
|
6953
|
+
return a._p.forEach((M) => {
|
6950
6954
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6951
|
-
const w = s.run(() =>
|
6955
|
+
const w = s.run(() => M({
|
6952
6956
|
store: T,
|
6953
6957
|
app: a._a,
|
6954
6958
|
pinia: a,
|
6955
6959
|
options: o
|
6956
6960
|
}));
|
6957
|
-
Object.keys(w || {}).forEach((
|
6961
|
+
Object.keys(w || {}).forEach((I) => T._customProperties.add(I)), assign$1(T, w);
|
6958
6962
|
} else
|
6959
|
-
assign$1(T, s.run(() =>
|
6963
|
+
assign$1(T, s.run(() => M({
|
6960
6964
|
store: T,
|
6961
6965
|
app: a._a,
|
6962
6966
|
pinia: a,
|
@@ -7075,16 +7079,17 @@ function pinia() {
|
|
7075
7079
|
throw new Error("[@kengic/vue] pinia \u4E3A\u7A7A.");
|
7076
7080
|
return _pinia;
|
7077
7081
|
}
|
7078
|
-
addIcon("ant-design:plus-outlined", data$
|
7082
|
+
addIcon("ant-design:plus-outlined", data$2);
|
7079
7083
|
addIcon("ant-design:edit-outlined", data$5);
|
7080
7084
|
addIcon("ant-design:delete-outlined", data$7);
|
7081
|
-
addIcon("ant-design:stop-outlined", data
|
7085
|
+
addIcon("ant-design:stop-outlined", data);
|
7082
7086
|
addIcon("ant-design:audit-outlined", data$9);
|
7087
|
+
addIcon("ant-design:exception-outlined", data$4);
|
7083
7088
|
addIcon("ant-design:check-outlined", data$8);
|
7084
7089
|
addIcon("ant-design:download-outlined", data$6);
|
7085
|
-
addIcon("ant-design:info-circle-outlined", data$
|
7090
|
+
addIcon("ant-design:info-circle-outlined", data$3);
|
7086
7091
|
addIcon("ant-design:printer-outlined", data$1);
|
7087
|
-
addIcon("ant-design:aim-outlined", data);
|
7092
|
+
addIcon("ant-design:aim-outlined", data$a);
|
7088
7093
|
function setup(e) {
|
7089
7094
|
var r;
|
7090
7095
|
if (!(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
@@ -8781,10 +8786,10 @@ const useKgVarStore = () => (store$7 || (store$7 = defineStore("KgVar", {
|
|
8781
8786
|
} = await GetAll({ params: { frm_id: e } });
|
8782
8787
|
this.varCatalogMap.set(e, d != null ? d : []), this.varLookupMap.set(e, g != null ? g : []), this.varPossibilityMap.set(e, p != null ? p : []), this.varVariableConfigMap.set(e, v != null ? v : []), this.varVariableInputMap.set(e, y != null ? y : []), this.varButtonMap.set(e, transformVarButtons(_)), this.varButtonConfigMap.set(e, transformVarButtonConfig(b != null ? b : null)), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(C)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(E)), this.varProfileConfigMap.set(e, transformVarProfileConfig(A != null ? A : null)), this.varProfileMap.set(e, {
|
8783
8788
|
varProfile: k != null ? k : null,
|
8784
|
-
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((
|
8789
|
+
currentVarProfileMasterID: (s = (n = ((t = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : t.find((M) => M.def_flg === 1)) || ((r = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : r.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((a = k == null ? void 0 : k.varProfileMasters) == null ? void 0 : a.find(() => !0))) == null ? void 0 : n.id) != null ? s : null
|
8785
8790
|
}), this.varGridConfigMap.set(e, transformVarGridConfig($ != null ? $ : null)), this.varGridMap.set(e, {
|
8786
8791
|
varGrid: transformVarGridDTO(T),
|
8787
|
-
currentVarGridMasterID: (u = (c = ((i = T == null ? void 0 : T.varGridMasters) == null ? void 0 : i.find((
|
8792
|
+
currentVarGridMasterID: (u = (c = ((i = T == null ? void 0 : T.varGridMasters) == null ? void 0 : i.find((M) => M.def_flg === 1)) || ((o = T == null ? void 0 : T.varGridMasters) == null ? void 0 : o.find((M) => M.cust_lvl === KG_CUSTOM_LEVEL.L0)) || ((l = T == null ? void 0 : T.varGridMasters) == null ? void 0 : l.find(() => !0))) == null ? void 0 : c.id) != null ? u : null
|
8788
8793
|
}), this.isRetrievedMap.set(e, !0), this.emit(e, "retrieve");
|
8789
8794
|
} catch (d) {
|
8790
8795
|
throw d;
|
@@ -8992,12 +8997,12 @@ function useKgVar(e, t, r = 0) {
|
|
8992
8997
|
u.leave(c);
|
8993
8998
|
}));
|
8994
8999
|
const d = (q) => computed(() => {
|
8995
|
-
var Z,
|
8996
|
-
return (se = (
|
8997
|
-
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), $ = computed(() => u.isOtherRequesting(c)),
|
9000
|
+
var Z, ee, se;
|
9001
|
+
return (se = (ee = (Z = u.getVarCatalog(c, q)) == null ? void 0 : Z.var_text) != null ? ee : q) != null ? se : "";
|
9002
|
+
}), g = computed(() => u.isRetrieving(c)), v = computed(() => u.isRetrievingVarProfileMaster(c)), y = computed(() => u.isRetrievingVarGridMaster(c)), p = computed(() => u.isCreating(c)), _ = computed(() => u.isCreatingRequesting(c)), b = computed(() => u.isUpdating(c)), C = computed(() => u.isUpdatingRequesting(c)), E = computed(() => u.isCopying(c)), k = computed(() => u.isCopyingRequesting(c)), A = computed(() => u.isDeleting(c)), T = computed(() => u.isDeletingRequesting(c)), $ = computed(() => u.isOtherRequesting(c)), M = computed(() => u.getVarButtons(c)), w = computed(() => u.getVarButtonSearch(c)), I = computed(() => u.getVarButtonCreate(c)), K = computed(() => u.getVarButtonUpdate(c)), P = computed(() => u.getVarButtonCopy(c)), H = computed(() => u.getVarButtonDelete(c)), V = computed(() => u.getVarProfileMasters(c)), O = computed(() => u.getCurrentVarProfileMaster(c)), D = computed(() => u.getCurrentVarProfileMasterID(c)), U = computed(() => {
|
8998
9003
|
var q, Z;
|
8999
9004
|
return (Z = (q = O.value) == null ? void 0 : q.varProfileDetails) != null ? Z : null;
|
9000
|
-
}), F = computed(() => u.getVarGridConfig(c)),
|
9005
|
+
}), F = computed(() => u.getVarGridConfig(c)), N = computed(() => u.getVarGridMasters(c)), B = computed(() => u.getCurrentVarGridMaster(c)), W = computed(() => u.getSystemVarGridDetails(c)), X = computed(() => u.getCurrentVarGridDetails(c));
|
9001
9006
|
return {
|
9002
9007
|
formID: c,
|
9003
9008
|
store: u,
|
@@ -9013,10 +9018,10 @@ function useKgVar(e, t, r = 0) {
|
|
9013
9018
|
isDeleting: A,
|
9014
9019
|
isDeletingRequesting: T,
|
9015
9020
|
isOtherRequesting: $,
|
9016
|
-
varButtons:
|
9021
|
+
varButtons: M,
|
9017
9022
|
varButtonSearch: w,
|
9018
|
-
varButtonCreate:
|
9019
|
-
varButtonUpdate:
|
9023
|
+
varButtonCreate: I,
|
9024
|
+
varButtonUpdate: K,
|
9020
9025
|
varButtonCopy: P,
|
9021
9026
|
varButtonDelete: H,
|
9022
9027
|
varProfileMasters: V,
|
@@ -9024,7 +9029,7 @@ function useKgVar(e, t, r = 0) {
|
|
9024
9029
|
currentVarProfileMasterID: D,
|
9025
9030
|
currentVarProfileDetails: U,
|
9026
9031
|
varGridConfig: F,
|
9027
|
-
varGridMasters:
|
9032
|
+
varGridMasters: N,
|
9028
9033
|
currentVarGridMaster: B,
|
9029
9034
|
systemVarGridDetails: W,
|
9030
9035
|
currentVarGridDetails: X,
|
@@ -9380,7 +9385,7 @@ function useKgFormItemSelect() {
|
|
9380
9385
|
}), d;
|
9381
9386
|
});
|
9382
9387
|
async function c() {
|
9383
|
-
var b, C, E, k, A, T, $,
|
9388
|
+
var b, C, E, k, A, T, $, M;
|
9384
9389
|
let d = [];
|
9385
9390
|
const g = (b = a.value) == null ? void 0 : b.cmd, v = (E = (C = a.value) == null ? void 0 : C.cmd_method) != null ? E : "GET", y = (A = (k = a.value) == null ? void 0 : k.val_clm) != null ? A : "", p = ($ = (T = a.value) == null ? void 0 : T.lbl_clm) != null ? $ : "";
|
9386
9391
|
if (!g || !y || !p) {
|
@@ -9395,7 +9400,7 @@ function useKgFormItemSelect() {
|
|
9395
9400
|
}
|
9396
9401
|
let _ = null;
|
9397
9402
|
try {
|
9398
|
-
_ = await ((
|
9403
|
+
_ = await ((M = httpClient()) == null ? void 0 : M.request({
|
9399
9404
|
url: g,
|
9400
9405
|
method: v,
|
9401
9406
|
params: l.value
|
@@ -9864,16 +9869,16 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9864
9869
|
useKg();
|
9865
9870
|
const s = useKgVar();
|
9866
9871
|
useKgForm(s.formID).onLookupOk(async ({
|
9867
|
-
var_nam:
|
9872
|
+
var_nam: M,
|
9868
9873
|
model: w,
|
9869
|
-
isMultiple:
|
9870
|
-
value:
|
9874
|
+
isMultiple: I,
|
9875
|
+
value: K,
|
9871
9876
|
values: P
|
9872
9877
|
}) => {
|
9873
9878
|
var H;
|
9874
|
-
switch (
|
9879
|
+
switch (M) {
|
9875
9880
|
case e.kgVarName:
|
9876
|
-
w.value && (
|
9881
|
+
w.value && (I ? w.value[e.kgVarName] = P : w.value[e.kgVarName] = K), (H = n.value) == null || H.validate([e.kgVarName]);
|
9877
9882
|
break;
|
9878
9883
|
}
|
9879
9884
|
return !1;
|
@@ -9883,117 +9888,117 @@ const KgFormItemRadioGroup = defineComponent({
|
|
9883
9888
|
} = _useRules(e), {
|
9884
9889
|
controlType: g
|
9885
9890
|
} = useKgFormItem(e), v = computed(() => {
|
9886
|
-
var w,
|
9891
|
+
var w, I, K, P, H;
|
9887
9892
|
if (s.isRetrieving.value)
|
9888
9893
|
return !0;
|
9889
|
-
let
|
9894
|
+
let M = !1;
|
9890
9895
|
if (e.kgDisabled !== void 0)
|
9891
|
-
|
9896
|
+
M = e.kgDisabled;
|
9892
9897
|
else
|
9893
9898
|
switch (e.kgContext) {
|
9894
9899
|
case KG_FORM_CONTEXT.SEARCH:
|
9895
|
-
|
9900
|
+
M = ((w = c.value) == null ? void 0 : w.ena_flg) === 0;
|
9896
9901
|
break;
|
9897
9902
|
case KG_FORM_CONTEXT.SUBMIT:
|
9898
9903
|
switch (!0) {
|
9899
9904
|
case s.isCreating.value:
|
9900
|
-
|
9905
|
+
M = ((I = u.value) == null ? void 0 : I.crt_ena_flg) === 0;
|
9901
9906
|
break;
|
9902
9907
|
case s.isUpdating.value:
|
9903
|
-
|
9908
|
+
M = ((K = u.value) == null ? void 0 : K.upt_ena_flg) === 0;
|
9904
9909
|
break;
|
9905
9910
|
case s.isCopying.value:
|
9906
|
-
|
9911
|
+
M = ((P = u.value) == null ? void 0 : P.cpy_ena_flg) === 0;
|
9907
9912
|
break;
|
9908
9913
|
case s.isDeleting.value:
|
9909
|
-
|
9914
|
+
M = ((H = u.value) == null ? void 0 : H.del_ena_flg) === 0;
|
9910
9915
|
break;
|
9911
9916
|
}
|
9912
9917
|
break;
|
9913
9918
|
}
|
9914
|
-
return
|
9919
|
+
return M;
|
9915
9920
|
}), y = computed(() => {
|
9916
|
-
var w,
|
9917
|
-
let
|
9921
|
+
var w, I, K, P;
|
9922
|
+
let M = " ";
|
9918
9923
|
if (e.kgPlaceholder)
|
9919
|
-
|
9924
|
+
M = e.kgPlaceholder;
|
9920
9925
|
else
|
9921
9926
|
switch (e.kgContext) {
|
9922
9927
|
case KG_FORM_CONTEXT.SEARCH:
|
9923
|
-
|
9928
|
+
M = s.t((I = (w = c.value) == null ? void 0 : w.placeholder) != null ? I : " ").value;
|
9924
9929
|
break;
|
9925
9930
|
case KG_FORM_CONTEXT.SUBMIT:
|
9926
|
-
|
9931
|
+
M = s.t((P = (K = u.value) == null ? void 0 : K.placeholder) != null ? P : " ").value;
|
9927
9932
|
break;
|
9928
9933
|
}
|
9929
|
-
return
|
9934
|
+
return M;
|
9930
9935
|
}), p = computed(() => {
|
9931
|
-
var w,
|
9932
|
-
let
|
9936
|
+
var w, I, K, P, H, V, O, D, U, F;
|
9937
|
+
let M = 6;
|
9933
9938
|
if (e.kgSpan !== void 0)
|
9934
|
-
|
9939
|
+
M = e.kgSpan;
|
9935
9940
|
else
|
9936
9941
|
switch (e.kgContext) {
|
9937
9942
|
case KG_FORM_CONTEXT.SEARCH:
|
9938
|
-
|
9943
|
+
M = (I = (w = c.value) == null ? void 0 : w.width) != null ? I : 6;
|
9939
9944
|
break;
|
9940
9945
|
case KG_FORM_CONTEXT.SUBMIT:
|
9941
9946
|
switch (!0) {
|
9942
9947
|
case s.isCreating.value:
|
9943
|
-
|
9948
|
+
M = (P = (K = u.value) == null ? void 0 : K.crt_width) != null ? P : 6;
|
9944
9949
|
break;
|
9945
9950
|
case s.isUpdating.value:
|
9946
|
-
|
9951
|
+
M = (V = (H = u.value) == null ? void 0 : H.upt_width) != null ? V : 6;
|
9947
9952
|
break;
|
9948
9953
|
case s.isCopying.value:
|
9949
|
-
|
9954
|
+
M = (D = (O = u.value) == null ? void 0 : O.cpy_width) != null ? D : 6;
|
9950
9955
|
break;
|
9951
9956
|
case s.isDeleting.value:
|
9952
|
-
|
9957
|
+
M = (F = (U = u.value) == null ? void 0 : U.del_width) != null ? F : 6;
|
9953
9958
|
break;
|
9954
9959
|
}
|
9955
9960
|
}
|
9956
|
-
return Math.min(24, Math.max(1,
|
9961
|
+
return Math.min(24, Math.max(1, M));
|
9957
9962
|
}), _ = computed(() => {
|
9958
|
-
var
|
9959
|
-
const
|
9960
|
-
if (
|
9963
|
+
var K, P;
|
9964
|
+
const M = get(k.value, "$el.parentElement");
|
9965
|
+
if (M && !((K = M.classList) != null && K.contains("ant-row")))
|
9961
9966
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
9962
9967
|
let w = {};
|
9963
|
-
const
|
9964
|
-
return Number.isNaN(
|
9965
|
-
paddingLeft: `${
|
9966
|
-
paddingRight: `${
|
9968
|
+
const I = Math.abs(Number.parseInt((P = get(k.value, "$el.parentElement.style.marginLeft")) != null ? P : "0px"));
|
9969
|
+
return Number.isNaN(I) || (w = {
|
9970
|
+
paddingLeft: `${I}px !important`,
|
9971
|
+
paddingRight: `${I}px !important`
|
9967
9972
|
}), w;
|
9968
9973
|
}), b = computed(() => {
|
9969
|
-
var w,
|
9970
|
-
let
|
9971
|
-
switch (o.value && (
|
9974
|
+
var w, I, K, P;
|
9975
|
+
let M = "kg-form-item";
|
9976
|
+
switch (o.value && (M += " kg-form-item-lookup"), e.kgContext) {
|
9972
9977
|
case KG_FORM_CONTEXT.SEARCH:
|
9973
9978
|
switch (!0) {
|
9974
9979
|
case ((w = c.value) == null ? void 0 : w.vis_flg) === 0:
|
9975
|
-
|
9980
|
+
M += " kg-form-item--invisible";
|
9976
9981
|
break;
|
9977
9982
|
}
|
9978
9983
|
break;
|
9979
9984
|
case KG_FORM_CONTEXT.SUBMIT:
|
9980
9985
|
switch (!0) {
|
9981
|
-
case (s.isCreating.value && ((
|
9982
|
-
case (s.isUpdating.value && ((
|
9986
|
+
case (s.isCreating.value && ((I = u.value) == null ? void 0 : I.crt_vis_flg) === 0):
|
9987
|
+
case (s.isUpdating.value && ((K = u.value) == null ? void 0 : K.upt_vis_flg) === 0):
|
9983
9988
|
case (s.isCopying.value && ((P = u.value) == null ? void 0 : P.cpy_vis_flg) === 0):
|
9984
|
-
|
9989
|
+
M += " kg-form-item--invisible";
|
9985
9990
|
break;
|
9986
9991
|
}
|
9987
9992
|
break;
|
9988
9993
|
}
|
9989
|
-
return
|
9994
|
+
return M;
|
9990
9995
|
}), C = computed(() => {
|
9991
9996
|
var w;
|
9992
|
-
const
|
9997
|
+
const M = {
|
9993
9998
|
...e,
|
9994
9999
|
value: (w = a.value) == null ? void 0 : w[e.kgVarName],
|
9995
|
-
"onUpdate:value": (
|
9996
|
-
a.value && (a.value[e.kgVarName] =
|
10000
|
+
"onUpdate:value": (I) => {
|
10001
|
+
a.value && (a.value[e.kgVarName] = I);
|
9997
10002
|
},
|
9998
10003
|
kgPlaceholder: y.value,
|
9999
10004
|
kgDisabled: v.value,
|
@@ -10007,29 +10012,29 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10007
10012
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
10008
10013
|
break;
|
10009
10014
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
10010
|
-
|
10015
|
+
M.kgShowTime = !1;
|
10011
10016
|
break;
|
10012
10017
|
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
10013
|
-
|
10018
|
+
M.kgShowTime = !1;
|
10014
10019
|
break;
|
10015
10020
|
case KG_FORM_ITEM_TYPE.DATE_TIME:
|
10016
|
-
|
10021
|
+
M.kgPicker = "time";
|
10017
10022
|
break;
|
10018
10023
|
case KG_FORM_ITEM_TYPE.DATE_TIME_RANGE:
|
10019
|
-
|
10024
|
+
M.kgPicker = "time";
|
10020
10025
|
break;
|
10021
10026
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
10022
|
-
|
10027
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10023
10028
|
break;
|
10024
10029
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
10025
|
-
|
10030
|
+
M.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
10026
10031
|
break;
|
10027
10032
|
}
|
10028
|
-
return
|
10033
|
+
return M;
|
10029
10034
|
}), E = computed(() => encodeURIComponent(`${e.kgContext}~${s.formID}~${e.kgVarName}`)), k = ref(null);
|
10030
10035
|
function A() {
|
10031
10036
|
if (t.control) {
|
10032
|
-
const
|
10037
|
+
const M = {
|
10033
10038
|
frm_id: s.formID,
|
10034
10039
|
varName: e.kgVarName,
|
10035
10040
|
props: C,
|
@@ -10038,7 +10043,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10038
10043
|
varProfileDetail: c,
|
10039
10044
|
varSubmitField: u
|
10040
10045
|
};
|
10041
|
-
return t.control(
|
10046
|
+
return t.control(M);
|
10042
10047
|
}
|
10043
10048
|
switch (g.value) {
|
10044
10049
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -10077,8 +10082,8 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10077
10082
|
}, [s.t(e.kgVarName).value]) : null;
|
10078
10083
|
}
|
10079
10084
|
function $() {
|
10080
|
-
var
|
10081
|
-
return !o.value || !((
|
10085
|
+
var M;
|
10086
|
+
return !o.value || !((M = o.value) != null && M.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
10082
10087
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
10083
10088
|
kgDisabled: v.value,
|
10084
10089
|
kgLookupID: o.value.lkp_id
|
@@ -10086,7 +10091,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10086
10091
|
});
|
10087
10092
|
}
|
10088
10093
|
return () => {
|
10089
|
-
var
|
10094
|
+
var M, w;
|
10090
10095
|
return s.isRetrieving.value ? null : createVNode(Col, {
|
10091
10096
|
ref: k,
|
10092
10097
|
span: p.value,
|
@@ -10094,7 +10099,7 @@ const KgFormItemRadioGroup = defineComponent({
|
|
10094
10099
|
style: _.value,
|
10095
10100
|
"kg-frm_id": s.formID,
|
10096
10101
|
"kg-var_nam": e.kgVarName,
|
10097
|
-
"kg-lkp_id": (
|
10102
|
+
"kg-lkp_id": (M = o.value) == null ? void 0 : M.lkp_id,
|
10098
10103
|
"kg-ret_fld": (w = o.value) == null ? void 0 : w.ret_fld
|
10099
10104
|
}, {
|
10100
10105
|
default: () => [createVNode(Form.Item, {
|
@@ -10257,7 +10262,7 @@ const useKgSubmitStore = () => (store$5 || (store$5 = defineStore("KgSubmit", {
|
|
10257
10262
|
dispose(e) {
|
10258
10263
|
if (!e)
|
10259
10264
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
10260
|
-
this.isLoadingMap.delete(e), this.modelMap.delete(e);
|
10265
|
+
this.openListenersMap.delete(e), this.beforeOkListenersMap.delete(e), this.afterValidateListenersMap.delete(e), this.beforeRequestListenersMap.delete(e), this.okListenersMap.delete(e), this.errorListenersMap.delete(e), this.closeListenersMap.delete(e), this.lookupOkListenersMap.delete(e), this.isLoadingMap.delete(e), this.modelMap.delete(e), this.formRefMap.delete(e), this.rulesMap.delete(e);
|
10261
10266
|
},
|
10262
10267
|
addEventListener(e, t, r) {
|
10263
10268
|
switch (t) {
|
@@ -10792,12 +10797,12 @@ const getProps$p = () => ({
|
|
10792
10797
|
return (J = E.value) != null ? J : [];
|
10793
10798
|
}
|
10794
10799
|
return [];
|
10795
|
-
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), $ = computed(() => T.value || d.value),
|
10800
|
+
}), T = computed(() => !!s.store.isCreatingRequesting(s.formID) || !!s.store.isUpdatingRequesting(s.formID) || !!s.store.isCopyingRequesting(s.formID) || !!s.store.isDeletingRequesting(s.formID)), $ = computed(() => T.value || d.value), M = computed(() => d.value), w = ref({
|
10796
10801
|
kgWidth: 0
|
10797
|
-
}),
|
10802
|
+
}), I = computed(() => {
|
10798
10803
|
var R;
|
10799
10804
|
return !!(u.value || F.isFullscreen || ((R = g.value) == null ? void 0 : R.resizable_flg) === 0);
|
10800
|
-
}),
|
10805
|
+
}), K = computed(() => {
|
10801
10806
|
var R, x;
|
10802
10807
|
return u.value ? 398 : (x = (R = g.value) == null ? void 0 : R.min_width) != null ? x : DEFAULT_MIN_WIDTH;
|
10803
10808
|
}), P = computed(() => {
|
@@ -10808,7 +10813,7 @@ const getProps$p = () => ({
|
|
10808
10813
|
const O = _useTitle(), D = computed(() => u.value ? 400 : w.value.kgWidth && w.value.kgWidth > 0 ? "auto" : 0), U = computed(() => D.value === 0 ? !1 : !!(s.isCreating.value || s.isUpdating.value || s.isCopying.value || s.isDeleting.value)), F = reactive({
|
10809
10814
|
isFullscreen: !1
|
10810
10815
|
}), {
|
10811
|
-
getClass:
|
10816
|
+
getClass: N
|
10812
10817
|
} = _useClass(e, F), {
|
10813
10818
|
getLayout: B
|
10814
10819
|
} = _useLayout(), {
|
@@ -10849,7 +10854,7 @@ const getProps$p = () => ({
|
|
10849
10854
|
}
|
10850
10855
|
});
|
10851
10856
|
watch(U, (R, x) => {
|
10852
|
-
R === !0 && Z(), x === !0 && R === !1 &&
|
10857
|
+
R === !0 && Z(), x === !0 && R === !1 && ee();
|
10853
10858
|
}, {
|
10854
10859
|
immediate: !0
|
10855
10860
|
}), watch(W, (R) => {
|
@@ -10873,7 +10878,7 @@ const getProps$p = () => ({
|
|
10873
10878
|
});
|
10874
10879
|
((x = g.value) == null ? void 0 : x.dft_fullscreen_flg) === 1 && !u.value && (F.isFullscreen = !0);
|
10875
10880
|
}
|
10876
|
-
async function
|
10881
|
+
async function ee() {
|
10877
10882
|
w.value.kgWidth = W.value, F.isFullscreen = !1, await l.store.emit(s.formID, "close", null);
|
10878
10883
|
}
|
10879
10884
|
function se() {
|
@@ -10925,7 +10930,7 @@ const getProps$p = () => ({
|
|
10925
10930
|
await ge();
|
10926
10931
|
break;
|
10927
10932
|
case s.isUpdating.value:
|
10928
|
-
await
|
10933
|
+
await ce();
|
10929
10934
|
break;
|
10930
10935
|
case s.isCopying.value:
|
10931
10936
|
await ne();
|
@@ -10939,7 +10944,7 @@ const getProps$p = () => ({
|
|
10939
10944
|
}
|
10940
10945
|
}
|
10941
10946
|
async function ge() {
|
10942
|
-
var x, z, J, Q,
|
10947
|
+
var x, z, J, Q, te, ae;
|
10943
10948
|
const R = (x = s.varButtonCreate.value) == null ? void 0 : x.cmd;
|
10944
10949
|
if (!R) {
|
10945
10950
|
KgLogger.error("[KgSubmit] '\u521B\u5EFA\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10949,7 +10954,7 @@ const getProps$p = () => ({
|
|
10949
10954
|
}
|
10950
10955
|
s.store.setIsCreatingRequesting(s.formID, !0);
|
10951
10956
|
try {
|
10952
|
-
let
|
10957
|
+
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCreate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
10953
10958
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
10954
10959
|
isCreating: s.isCreating.value,
|
10955
10960
|
isUpdating: s.isUpdating.value,
|
@@ -10958,14 +10963,14 @@ const getProps$p = () => ({
|
|
10958
10963
|
row: o.selectedFirstRow.value,
|
10959
10964
|
rows: o.selectedRows.value,
|
10960
10965
|
model: l.model,
|
10961
|
-
params:
|
10966
|
+
params: re,
|
10962
10967
|
data: ie
|
10963
10968
|
}))
|
10964
10969
|
return;
|
10965
10970
|
await httpClient().request({
|
10966
|
-
method: (
|
10971
|
+
method: (te = (Q = s.varButtonCreate.value) == null ? void 0 : Q.cmd_method) != null ? te : "POST",
|
10967
10972
|
url: R,
|
10968
|
-
params:
|
10973
|
+
params: re.value,
|
10969
10974
|
data: ie.value
|
10970
10975
|
}), ((ae = s.varButtonCreate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(O.title.value + n.t("kg.succeed")), await l.store.emit(s.formID, "ok", {
|
10971
10976
|
isCreating: s.isCreating.value,
|
@@ -10975,14 +10980,14 @@ const getProps$p = () => ({
|
|
10975
10980
|
row: o.selectedFirstRow.value,
|
10976
10981
|
model: l.model
|
10977
10982
|
}), s.store.setIsCreating(s.formID, !1), c.search(!0);
|
10978
|
-
} catch (
|
10979
|
-
console.error(
|
10983
|
+
} catch (re) {
|
10984
|
+
console.error(re), l.store.emit(s.formID, "error", re);
|
10980
10985
|
} finally {
|
10981
10986
|
s.store.setIsCreatingRequesting(s.formID, !1);
|
10982
10987
|
}
|
10983
10988
|
}
|
10984
|
-
async function
|
10985
|
-
var x, z, J, Q,
|
10989
|
+
async function ce() {
|
10990
|
+
var x, z, J, Q, te, ae;
|
10986
10991
|
const R = (x = s.varButtonUpdate.value) == null ? void 0 : x.cmd;
|
10987
10992
|
if (!R) {
|
10988
10993
|
KgLogger.error("[KgSubmit] '\u66F4\u65B0\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -10992,7 +10997,7 @@ const getProps$p = () => ({
|
|
10992
10997
|
}
|
10993
10998
|
try {
|
10994
10999
|
s.store.setIsUpdatingRequesting(s.formID, !0);
|
10995
|
-
let
|
11000
|
+
let re = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonUpdate.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), ie = ref(KgUtil.parseParams(toRaw(l.model.value), s.formID, r));
|
10996
11001
|
if (await l.store.emit(s.formID, "beforeRequest", {
|
10997
11002
|
isCreating: s.isCreating.value,
|
10998
11003
|
isUpdating: s.isUpdating.value,
|
@@ -11001,14 +11006,14 @@ const getProps$p = () => ({
|
|
11001
11006
|
row: o.selectedRow.value,
|
11002
11007
|
rows: o.selectedRows.value,
|
11003
11008
|
model: l.model,
|
11004
|
-
params:
|
11009
|
+
params: re,
|
11005
11010
|
data: ie
|
11006
11011
|
}))
|
11007
11012
|
return;
|
11008
11013
|
await httpClient().request({
|
11009
|
-
method: (
|
11014
|
+
method: (te = (Q = s.varButtonUpdate.value) == null ? void 0 : Q.cmd_method) != null ? te : "POST",
|
11010
11015
|
url: R,
|
11011
|
-
params:
|
11016
|
+
params: re.value,
|
11012
11017
|
data: ie.value
|
11013
11018
|
}), ((ae = s.varButtonUpdate.value) == null ? void 0 : ae.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), await l.store.emit(s.formID, "ok", {
|
11014
11019
|
isCreating: s.isCreating.value,
|
@@ -11018,14 +11023,14 @@ const getProps$p = () => ({
|
|
11018
11023
|
row: o.selectedFirstRow.value,
|
11019
11024
|
model: l.model
|
11020
11025
|
}), s.store.setIsUpdating(s.formID, !1), c.search();
|
11021
|
-
} catch (
|
11022
|
-
console.error(
|
11026
|
+
} catch (re) {
|
11027
|
+
console.error(re), l.store.emit(s.formID, "error", re);
|
11023
11028
|
} finally {
|
11024
11029
|
s.store.setIsUpdatingRequesting(s.formID, !1);
|
11025
11030
|
}
|
11026
11031
|
}
|
11027
11032
|
async function ne() {
|
11028
|
-
var x, z, J, Q,
|
11033
|
+
var x, z, J, Q, te, ae, re, ie;
|
11029
11034
|
const R = (x = s.varButtonCopy.value) == null ? void 0 : x.cmd;
|
11030
11035
|
if (!R) {
|
11031
11036
|
KgLogger.error("[KgSubmit] '\u590D\u5236\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11035,11 +11040,11 @@ const getProps$p = () => ({
|
|
11035
11040
|
}
|
11036
11041
|
try {
|
11037
11042
|
s.store.setIsCopyingRequesting(s.formID, !0);
|
11038
|
-
let
|
11043
|
+
let ue = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonCopy.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), pe = ref(KgUtil.parseParams({
|
11039
11044
|
...(Q = o.selectedFirstRow.value) != null ? Q : {},
|
11040
11045
|
...toRaw(l.model.value)
|
11041
11046
|
}, s.formID, r));
|
11042
|
-
if (((
|
11047
|
+
if (((te = g.value) == null ? void 0 : te.cpy_clear_id_flg) !== 0 && delete pe.value.id, await l.store.emit(s.formID, "beforeRequest", {
|
11043
11048
|
isCreating: s.isCreating.value,
|
11044
11049
|
isUpdating: s.isUpdating.value,
|
11045
11050
|
isCopying: s.isCopying.value,
|
@@ -11047,14 +11052,14 @@ const getProps$p = () => ({
|
|
11047
11052
|
row: o.selectedRow.value,
|
11048
11053
|
rows: o.selectedRows.value,
|
11049
11054
|
model: l.model,
|
11050
|
-
params:
|
11055
|
+
params: ue,
|
11051
11056
|
data: pe
|
11052
11057
|
}))
|
11053
11058
|
return;
|
11054
11059
|
await httpClient().request({
|
11055
|
-
method: (
|
11060
|
+
method: (re = (ae = s.varButtonCopy.value) == null ? void 0 : ae.cmd_method) != null ? re : "POST",
|
11056
11061
|
url: R,
|
11057
|
-
params:
|
11062
|
+
params: ue.value,
|
11058
11063
|
data: pe.value
|
11059
11064
|
}), ((ie = s.varButtonCopy.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), await l.store.emit(s.formID, "ok", {
|
11060
11065
|
isCreating: s.isCreating.value,
|
@@ -11064,14 +11069,14 @@ const getProps$p = () => ({
|
|
11064
11069
|
row: o.selectedFirstRow.value,
|
11065
11070
|
model: l.model
|
11066
11071
|
}), s.store.setIsCopying(s.formID, !1), c.search(!0);
|
11067
|
-
} catch (
|
11068
|
-
console.error(
|
11072
|
+
} catch (ue) {
|
11073
|
+
console.error(ue), l.store.emit(s.formID, "error", ue);
|
11069
11074
|
} finally {
|
11070
11075
|
s.store.setIsCopyingRequesting(s.formID, !1);
|
11071
11076
|
}
|
11072
11077
|
}
|
11073
11078
|
async function le() {
|
11074
|
-
var x, z, J, Q, re,
|
11079
|
+
var x, z, J, Q, te, ae, re, ie, ue, pe;
|
11075
11080
|
const R = (x = s.varButtonDelete.value) == null ? void 0 : x.cmd;
|
11076
11081
|
if (!R) {
|
11077
11082
|
KgLogger.error("[KgSubmit] '\u5220\u9664\u6309\u94AE'\u6CA1\u6709\u914D\u7F6E\u63A5\u53E3\u5730\u5740.", {
|
@@ -11081,13 +11086,13 @@ const getProps$p = () => ({
|
|
11081
11086
|
}
|
11082
11087
|
try {
|
11083
11088
|
s.store.setIsDeletingRequesting(s.formID, !0);
|
11084
|
-
let
|
11085
|
-
|
11086
|
-
|
11087
|
-
|
11088
|
-
|
11089
|
-
|
11090
|
-
|
11089
|
+
let me = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((J = (z = s.varButtonDelete.value) == null ? void 0 : z.cmd_prm) != null ? J : ""), s.formID, r)), _e = ref((Q = o.selectedRows.value) != null ? Q : []);
|
11090
|
+
if (((te = s.varButtonDelete.value) == null ? void 0 : te.del_param_clm) !== "__kg__new_delete_param" && (me = ref({
|
11091
|
+
ids: (re = (ae = o.selectedRows.value) == null ? void 0 : ae.map((ye) => {
|
11092
|
+
var he, ve, be;
|
11093
|
+
return (be = ye[(ve = (he = s.varButtonDelete.value) == null ? void 0 : he.del_param_clm) != null ? ve : "id"]) != null ? be : "";
|
11094
|
+
})) != null ? re : []
|
11095
|
+
}), _e = ref({})), await l.store.emit(s.formID, "beforeRequest", {
|
11091
11096
|
isCreating: s.isCreating.value,
|
11092
11097
|
isUpdating: s.isUpdating.value,
|
11093
11098
|
isCopying: s.isCopying.value,
|
@@ -11095,18 +11100,21 @@ const getProps$p = () => ({
|
|
11095
11100
|
row: o.selectedFirstRow.value,
|
11096
11101
|
rows: o.selectedRows.value,
|
11097
11102
|
model: l.model,
|
11098
|
-
params:
|
11099
|
-
data:
|
11103
|
+
params: me,
|
11104
|
+
data: _e
|
11100
11105
|
}))
|
11101
11106
|
return;
|
11102
11107
|
await httpClient().request({
|
11103
|
-
method: (
|
11108
|
+
method: (ue = (ie = s.varButtonDelete.value) == null ? void 0 : ie.cmd_method) != null ? ue : "DELETE",
|
11104
11109
|
url: R,
|
11105
|
-
params:
|
11106
|
-
data:
|
11110
|
+
params: me.value,
|
11111
|
+
data: _e.value
|
11107
11112
|
}, {
|
11108
11113
|
joinParamsToUrl: !0
|
11109
|
-
}), ((
|
11114
|
+
}), ((pe = s.varButtonDelete.value) == null ? void 0 : pe.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), await i.store.emit(s.formID, "deleteOk", {
|
11115
|
+
button: s.varButtonDelete.value,
|
11116
|
+
rows: o.selectedRows.value
|
11117
|
+
}), await l.store.emit(s.formID, "ok", {
|
11110
11118
|
isCreating: s.isCreating.value,
|
11111
11119
|
isUpdating: s.isUpdating.value,
|
11112
11120
|
isCopying: s.isCopying.value,
|
@@ -11114,13 +11122,13 @@ const getProps$p = () => ({
|
|
11114
11122
|
row: o.selectedFirstRow.value,
|
11115
11123
|
model: l.model
|
11116
11124
|
}), s.store.setIsDeleting(s.formID, !1), c.search(!0);
|
11117
|
-
} catch (
|
11118
|
-
console.error(
|
11125
|
+
} catch (me) {
|
11126
|
+
console.error(me), l.store.emit(s.formID, "error", me);
|
11119
11127
|
} finally {
|
11120
11128
|
s.store.setIsDeletingRequesting(s.formID, !1);
|
11121
11129
|
}
|
11122
11130
|
}
|
11123
|
-
function
|
11131
|
+
function de(R) {
|
11124
11132
|
var z, J;
|
11125
11133
|
const x = (J = (z = a == null ? void 0 : a.KgSubmit) == null ? void 0 : z["KgForm.Item"]) == null ? void 0 : J[R.var_nam];
|
11126
11134
|
return isFunction$2(x) ? createVNode(KgForm.Item, {
|
@@ -11131,19 +11139,19 @@ const getProps$p = () => ({
|
|
11131
11139
|
}, {
|
11132
11140
|
control: ({
|
11133
11141
|
frm_id: Q,
|
11134
|
-
varName:
|
11142
|
+
varName: te,
|
11135
11143
|
props: ae,
|
11136
|
-
model:
|
11144
|
+
model: re,
|
11137
11145
|
varVariableConfig: ie,
|
11138
|
-
varProfileDetail:
|
11146
|
+
varProfileDetail: ue,
|
11139
11147
|
varSubmitField: pe
|
11140
11148
|
}) => x({
|
11141
11149
|
frm_id: Q,
|
11142
|
-
varName:
|
11150
|
+
varName: te,
|
11143
11151
|
props: ae,
|
11144
|
-
model:
|
11152
|
+
model: re,
|
11145
11153
|
varVariableConfig: ie,
|
11146
|
-
varProfileDetail:
|
11154
|
+
varProfileDetail: ue,
|
11147
11155
|
varSubmitField: pe
|
11148
11156
|
})
|
11149
11157
|
}) : createVNode(KgForm.Item, {
|
@@ -11157,10 +11165,10 @@ const getProps$p = () => ({
|
|
11157
11165
|
let R, x;
|
11158
11166
|
return createVNode(KgResizable, {
|
11159
11167
|
kgType: l.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
11160
|
-
kgMinWidth:
|
11168
|
+
kgMinWidth: K.value,
|
11161
11169
|
kgMaxWidth: P.value,
|
11162
11170
|
kgWidth: H.value,
|
11163
|
-
kgDisabled:
|
11171
|
+
kgDisabled: I.value,
|
11164
11172
|
"onUpdate:kgWidth": (z) => w.value.kgWidth = z
|
11165
11173
|
}, {
|
11166
11174
|
default: () => [createVNode(Spin, {
|
@@ -11177,11 +11185,11 @@ const getProps$p = () => ({
|
|
11177
11185
|
ref: V
|
11178
11186
|
}, [k.value.length > 0 && createVNode(Row, {
|
11179
11187
|
gutter: 12
|
11180
|
-
}, _isSlot$8(R = k.value.map(
|
11188
|
+
}, _isSlot$8(R = k.value.map(de)) ? R : {
|
11181
11189
|
default: () => [R]
|
11182
11190
|
}), k.value.length > 0 && A.value.length > 0 && createVNode(Divider, null, null), A.value.length > 0 && createVNode(Row, {
|
11183
11191
|
gutter: 12
|
11184
|
-
}, _isSlot$8(x = A.value.map(
|
11192
|
+
}, _isSlot$8(x = A.value.map(de)) ? x : {
|
11185
11193
|
default: () => [x]
|
11186
11194
|
}), u.value && createVNode("div", {
|
11187
11195
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -11201,7 +11209,7 @@ const getProps$p = () => ({
|
|
11201
11209
|
default: () => [R]
|
11202
11210
|
}), createVNode(Button, {
|
11203
11211
|
type: "primary",
|
11204
|
-
disabled:
|
11212
|
+
disabled: M.value,
|
11205
11213
|
loading: T.value,
|
11206
11214
|
danger: !!s.isDeleting.value,
|
11207
11215
|
onClick: oe
|
@@ -11233,7 +11241,7 @@ const getProps$p = () => ({
|
|
11233
11241
|
keyboard: !1,
|
11234
11242
|
destroyOnClose: !0,
|
11235
11243
|
width: D.value,
|
11236
|
-
class:
|
11244
|
+
class: N.value,
|
11237
11245
|
"kg-frm_id": s.formID
|
11238
11246
|
}, {
|
11239
11247
|
title: G,
|
@@ -11337,7 +11345,7 @@ const useKgTableStore = () => (store$4 || (store$4 = defineStore("KgTable", {
|
|
11337
11345
|
dispose(e) {
|
11338
11346
|
if (!e)
|
11339
11347
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
11340
|
-
this.selectedRowsMap.delete(e), this.isRetrievedMap.delete(e);
|
11348
|
+
this.datasMap.delete(e), this.selectedRowKeysMap.delete(e), this.selectedRowsMap.delete(e), this.isRetrievedMap.delete(e), this.isRetrievingMap.delete(e), this.tableWidthMap.delete(e), this.rowDoubleClickListenersMap.delete(e), this.beforeRetrieveListenersMap.delete(e), this.beforeSetDatasListenersMap.delete(e), this.retrieveListenersMap.delete(e);
|
11341
11349
|
},
|
11342
11350
|
addEventListener(e, t, r) {
|
11343
11351
|
if (!e) {
|
@@ -11555,8 +11563,8 @@ const getProps$n = () => ({
|
|
11555
11563
|
return !1;
|
11556
11564
|
});
|
11557
11565
|
const l = computed(() => e.kgVarName ? n.store.getVarGridDetail(n.formID, e.kgVarName) : null), c = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), u = computed(() => {
|
11558
|
-
var k, A, T, $,
|
11559
|
-
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && (($ = c.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((
|
11566
|
+
var k, A, T, $, M, w;
|
11567
|
+
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && ((T = c.value) == null ? void 0 : T.crt_flg) === 1 || !!n.isUpdating.value && (($ = c.value) == null ? void 0 : $.upt_flg) === 1 || !!n.isCopying.value && ((M = c.value) == null ? void 0 : M.cpy_flg) === 1 || !!n.isDeleting.value && ((w = c.value) == null ? void 0 : w.del_flg) === 1);
|
11560
11568
|
}), d = computed(() => {
|
11561
11569
|
var k, A;
|
11562
11570
|
return i.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && ((k = e.kgRow) == null ? void 0 : k[o.id.value]) === ((A = o.selectedRow.value) == null ? void 0 : A[o.id.value]) && (!!n.isCreating.value && !!n.isCreatingRequesting.value || !!n.isUpdating.value && !!n.isUpdatingRequesting.value || !!n.isCopying.value && !!n.isCopyingRequesting.value || !!n.isDeleting.value && !!n.isDeletingRequesting.value);
|
@@ -11565,15 +11573,15 @@ const getProps$n = () => ({
|
|
11565
11573
|
let k = "kg-table-td";
|
11566
11574
|
return ((A = l.value) == null ? void 0 : A.align) === "center" ? k += " kg-table-td--center" : ((T = l.value) == null ? void 0 : T.align) === "right" && (k += " kg-table-td--right"), u.value && (k += " kg-table-td--submitting"), k;
|
11567
11575
|
}), v = computed(() => {
|
11568
|
-
var A, T, $,
|
11576
|
+
var A, T, $, M, w;
|
11569
11577
|
if (e.kgValue === KG_TABLE_TEMP_ID)
|
11570
11578
|
return "";
|
11571
11579
|
let k = e.kgValue;
|
11572
11580
|
switch ((A = l.value) == null ? void 0 : A.display_type) {
|
11573
11581
|
case KG_TABLE_CELL_DISPLAY_TYPE.DESC:
|
11574
11582
|
{
|
11575
|
-
const
|
11576
|
-
|
11583
|
+
const I = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11584
|
+
I.dscFieldName ? k = (($ = e.kgRow) == null ? void 0 : $[I.dscFieldName]) || e.kgValue : k = ((M = e.kgRow) == null ? void 0 : M[`${e.kgVarName}_dsc`]) || ((w = e.kgRow) == null ? void 0 : w[`${e.kgVarName}Dsc`]) || e.kgValue;
|
11577
11585
|
}
|
11578
11586
|
break;
|
11579
11587
|
}
|
@@ -11590,9 +11598,9 @@ const getProps$n = () => ({
|
|
11590
11598
|
case KG_TABLE_CELL_DISPLAY_TYPE.ROUTE_LINK:
|
11591
11599
|
{
|
11592
11600
|
k.stopPropagation(), k.preventDefault();
|
11593
|
-
const
|
11601
|
+
const M = KgUtil.tryParseJSON((T = l.value) == null ? void 0 : T.display_type_properties);
|
11594
11602
|
($ = a.router.value) == null || $.push({
|
11595
|
-
path:
|
11603
|
+
path: M.path,
|
11596
11604
|
query: e.kgRow
|
11597
11605
|
});
|
11598
11606
|
}
|
@@ -11623,7 +11631,7 @@ const getProps$n = () => ({
|
|
11623
11631
|
});
|
11624
11632
|
}
|
11625
11633
|
function C() {
|
11626
|
-
var k, A, T, $,
|
11634
|
+
var k, A, T, $, M, w, I, K, P, H;
|
11627
11635
|
if (u.value)
|
11628
11636
|
return b();
|
11629
11637
|
switch ((k = l.value) == null ? void 0 : k.display_type) {
|
@@ -11639,7 +11647,7 @@ const getProps$n = () => ({
|
|
11639
11647
|
if (O) {
|
11640
11648
|
const D = n.t(O.varName).value;
|
11641
11649
|
return D ? createVNode(Tag, {
|
11642
|
-
color: (
|
11650
|
+
color: (M = O.color) != null ? M : "default"
|
11643
11651
|
}, _isSlot$7(D) ? D : {
|
11644
11652
|
default: () => [D]
|
11645
11653
|
}) : E();
|
@@ -11651,7 +11659,7 @@ const getProps$n = () => ({
|
|
11651
11659
|
if (V.isTag && isArrayLike(V.tagColors)) {
|
11652
11660
|
const O = V.tagColors.find((D) => D.value === e.kgValue);
|
11653
11661
|
return v.value ? createVNode(Tag, {
|
11654
|
-
color: (
|
11662
|
+
color: (I = O == null ? void 0 : O.color) != null ? I : "default"
|
11655
11663
|
}, {
|
11656
11664
|
default: () => [v.value]
|
11657
11665
|
}) : E();
|
@@ -11659,7 +11667,7 @@ const getProps$n = () => ({
|
|
11659
11667
|
return E();
|
11660
11668
|
}
|
11661
11669
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
11662
|
-
const V = KgUtil.tryParseJSON((
|
11670
|
+
const V = KgUtil.tryParseJSON((K = l.value) == null ? void 0 : K.display_type_properties);
|
11663
11671
|
return createVNode(KgProgressA, {
|
11664
11672
|
kgTextWidth: V.textWidth,
|
11665
11673
|
kgLeft: (P = e.kgRow) == null ? void 0 : P[V.leftColumn],
|
@@ -11859,10 +11867,7 @@ const getProps$m = () => ({
|
|
11859
11867
|
}) => !1), i.onOk(async () => (r.store.retrieve(r.formID), !1)), i.onBeforeRequest(async ({
|
11860
11868
|
params: c,
|
11861
11869
|
data: u
|
11862
|
-
}) => {
|
11863
|
-
const d = o.selectedRows.value;
|
11864
|
-
return c.value = {}, u.value = d, !1;
|
11865
|
-
}), s.onUpdateBeforeClick(async ({
|
11870
|
+
}) => !1), s.onUpdateBeforeClick(async ({
|
11866
11871
|
row: c
|
11867
11872
|
}) => !1);
|
11868
11873
|
const l = computed(() => {
|
@@ -12643,8 +12648,8 @@ function _useColumns(e) {
|
|
12643
12648
|
return "right";
|
12644
12649
|
}
|
12645
12650
|
function A() {
|
12646
|
-
var
|
12647
|
-
return !((w = (
|
12651
|
+
var M, w, I, K;
|
12652
|
+
return !((w = (M = t == null ? void 0 : t.value) == null ? void 0 : M.KgTable) != null && w.kgDisabled || isNil((K = (I = t == null ? void 0 : t.value) == null ? void 0 : I.KgTable) == null ? void 0 : K.kgDisabled) && e.kgDisabled || p.ord_flg !== 1 || r.isCreating.value || r.isUpdating.value || r.isCopying.value || r.isDeleting.value);
|
12648
12653
|
}
|
12649
12654
|
function T() {
|
12650
12655
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
@@ -12666,13 +12671,13 @@ function _useColumns(e) {
|
|
12666
12671
|
"kg-var_nam": _,
|
12667
12672
|
draggable: !0
|
12668
12673
|
}),
|
12669
|
-
customCell: (
|
12670
|
-
var
|
12674
|
+
customCell: (M) => {
|
12675
|
+
var I;
|
12671
12676
|
const w = r.store.getVarSubmitField(r.formID, _);
|
12672
12677
|
return {
|
12673
12678
|
"kg-frm_id": r.formID,
|
12674
12679
|
"kg-var_nam": _,
|
12675
|
-
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE &&
|
12680
|
+
class: a.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && M[n.id.value] === ((I = n.selectedRow.value) == null ? void 0 : I[n.id.value]) && (!!r.isCreating.value && (w == null ? void 0 : w.crt_flg) === 1 || !!r.isUpdating.value && (w == null ? void 0 : w.upt_flg) === 1 || !!r.isCopying.value && (w == null ? void 0 : w.cpy_flg) === 1 || !!r.isDeleting.value && (w == null ? void 0 : w.del_flg) === 1) ? "submitting" : ""
|
12676
12681
|
};
|
12677
12682
|
}
|
12678
12683
|
};
|
@@ -12850,13 +12855,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12850
12855
|
return (R = (Y = s == null ? void 0 : s.value) == null ? void 0 : Y.KgTable) == null ? void 0 : R.kgCheckboxDisabled;
|
12851
12856
|
if (!isNil(e.kgCheckboxDisabled))
|
12852
12857
|
return e.kgCheckboxDisabled;
|
12853
|
-
}), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0),
|
12858
|
+
}), T = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value), $ = computed(() => !!k.value || _.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value || O.total === 0), M = computed(() => {
|
12854
12859
|
var L;
|
12855
12860
|
return !!((L = n == null ? void 0 : n.KgTable) != null && L.expandedRowRender);
|
12856
12861
|
}), w = computed(() => {
|
12857
12862
|
var L;
|
12858
12863
|
return ((L = o.varGridConfig.value) == null ? void 0 : L.show_check_column_flg) === 1;
|
12859
|
-
}),
|
12864
|
+
}), I = computed(() => {
|
12860
12865
|
if (!!w.value)
|
12861
12866
|
return {
|
12862
12867
|
fixed: "left",
|
@@ -12873,7 +12878,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12873
12878
|
onSelect: (L) => q(L),
|
12874
12879
|
onChange: (L) => u.isMultiSelect.value && X(L)
|
12875
12880
|
};
|
12876
|
-
}),
|
12881
|
+
}), K = computed(() => {
|
12877
12882
|
var G;
|
12878
12883
|
let L = "kg-table";
|
12879
12884
|
return ((G = o.varGridConfig.value) == null ? void 0 : G.show_bottom_border_flg) === 1 && (L += " kg-table--bottom-border"), !u.isShowBottomLeft.value && !u.isShowBottomRight.value && (L += " kg-table--no-bottom"), d.displayType.value === KG_VAR_SUBMIT__DISPLAY_TYPE.TABLE && (o.isCreating.value || o.isUpdating.value || o.isCopying.value || o.isDeleting.value) && (L += " kg-table--submitting"), L;
|
@@ -12900,7 +12905,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12900
12905
|
}, {
|
12901
12906
|
immediate: !0
|
12902
12907
|
}), watch(o.isCreating, (L, G) => {
|
12903
|
-
L === !0 ? F() : L === !1 && G === !0 &&
|
12908
|
+
L === !0 ? F() : L === !1 && G === !0 && N();
|
12904
12909
|
}), onUnmounted(() => {
|
12905
12910
|
u.store.dispose(o.formID);
|
12906
12911
|
});
|
@@ -12912,13 +12917,13 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12912
12917
|
u.store.setDatas(o.formID, [L, ...H.value]), u.store.setSelectedRows(o.formID, [L]);
|
12913
12918
|
}
|
12914
12919
|
}
|
12915
|
-
function
|
12920
|
+
function N() {
|
12916
12921
|
const L = H.value.find((G) => G[u.id.value] === KG_TABLE_TEMP_ID);
|
12917
12922
|
L && (u.store.setDatas(o.formID, without$1(H.value, L)), u.store.setSelectedRows(o.formID, []));
|
12918
12923
|
}
|
12919
12924
|
function B(L, G) {
|
12920
12925
|
var Y;
|
12921
|
-
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!
|
12926
|
+
if (!(!!k.value || !!o.isCreating.value || !!o.isUpdating.value || !!o.isCopying.value || !!o.isDeleting.value) && !!I.value) {
|
12922
12927
|
if (!G) {
|
12923
12928
|
u.store.setSelectedRows(o.formID, []);
|
12924
12929
|
return;
|
@@ -12969,29 +12974,29 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
12969
12974
|
}, {
|
12970
12975
|
successMessageMode: "none"
|
12971
12976
|
}), KgLogger.debug(`${o.formID} | KgTable | retrieve() | read() | \u67E5\u8BE2\u63A5\u53E3\u8C03\u7528\u6210\u529F.`));
|
12972
|
-
let
|
12977
|
+
let te = ref([]), ae = ref(0);
|
12973
12978
|
switch (!0) {
|
12974
12979
|
case !Q.value:
|
12975
|
-
|
12980
|
+
te.value = [], ae.value = 0;
|
12976
12981
|
break;
|
12977
12982
|
case isArrayLike(Q.value):
|
12978
|
-
|
12983
|
+
te.value = Q.value, ae.value = Q.value.length;
|
12979
12984
|
break;
|
12980
12985
|
case ("total" in Q.value && "records" in Q.value):
|
12981
|
-
|
12986
|
+
te.value = (R = Q.value.records) != null ? R : [], ae.value = (x = Q.value.total) != null ? x : 0;
|
12982
12987
|
break;
|
12983
12988
|
}
|
12984
12989
|
await u.store.emit(o.formID, "beforeSetDatas", {
|
12985
|
-
datas:
|
12990
|
+
datas: te,
|
12986
12991
|
total: ae,
|
12987
|
-
setDatas(
|
12988
|
-
u.store.setDatas(o.formID,
|
12992
|
+
setDatas(re) {
|
12993
|
+
u.store.setDatas(o.formID, re);
|
12989
12994
|
}
|
12990
|
-
}), u.store.setDatas(o.formID,
|
12995
|
+
}), u.store.setDatas(o.formID, te.value), O.total = ae.value, B(), v.value = [], await nextTick(), ((z = o.varGridConfig.value) == null ? void 0 : z.check_first_row_after_retrieve) === 1 && te.value.length > 0 && u.store.setSelectedRows(o.formID, [te.value[0]]), await u.store.emit(o.formID, "retrieve", {
|
12991
12996
|
page: Q.value,
|
12992
|
-
datas:
|
12993
|
-
setDatas(
|
12994
|
-
u.store.setDatas(o.formID,
|
12997
|
+
datas: te,
|
12998
|
+
setDatas(re) {
|
12999
|
+
u.store.setDatas(o.formID, re);
|
12995
13000
|
}
|
12996
13001
|
}), u.store.setIsRetrieved(o.formID, !0);
|
12997
13002
|
} catch (J) {
|
@@ -13031,7 +13036,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13031
13036
|
function Z(L, G) {
|
13032
13037
|
G.width = L, o.store.setVarGridDetailWidth(o.formID, G.dataIndex, L);
|
13033
13038
|
}
|
13034
|
-
async function
|
13039
|
+
async function ee(L, G, Y, R) {
|
13035
13040
|
var x;
|
13036
13041
|
switch (R.action) {
|
13037
13042
|
case "sort":
|
@@ -13064,7 +13069,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13064
13069
|
return (Y = H.value) == null ? void 0 : Y.find((R) => R[u.id.value] === G[u.id.value]);
|
13065
13070
|
}).filter((G) => !!G)), c.click(o.formID, KG_BUTTON_TYPE.UPDATE);
|
13066
13071
|
}
|
13067
|
-
function
|
13072
|
+
function ce({
|
13068
13073
|
title: L,
|
13069
13074
|
column: G
|
13070
13075
|
}) {
|
@@ -13085,14 +13090,14 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13085
13090
|
fixed: "bottom"
|
13086
13091
|
}, {
|
13087
13092
|
default: () => [createVNode(TableSummary.Row, null, {
|
13088
|
-
default: () => [
|
13093
|
+
default: () => [M.value && createVNode(TableSummary.Cell, {
|
13089
13094
|
index: 0
|
13090
13095
|
}, null), w.value && createVNode(TableSummary.Cell, {
|
13091
|
-
index:
|
13096
|
+
index: M.value ? 1 : 0
|
13092
13097
|
}, null), y.value.map((G, Y) => {
|
13093
13098
|
const R = o.store.getVarGridDetail(o.formID, G.dataIndex);
|
13094
13099
|
let x = Y;
|
13095
|
-
return
|
13100
|
+
return M.value && w.value ? x += 2 : (M.value || w.value) && (x += 1), createVNode(TableSummary.Cell, {
|
13096
13101
|
index: x
|
13097
13102
|
}, {
|
13098
13103
|
default: () => {
|
@@ -13132,7 +13137,7 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13132
13137
|
onKgUpdateLinkClick: () => ge(Y)
|
13133
13138
|
}, null);
|
13134
13139
|
if ((Q = n == null ? void 0 : n.KgTable) != null && Q.bodyCell) {
|
13135
|
-
const
|
13140
|
+
const te = L.dataIndex ? o.store.getVarGridDetail(o.formID, L.dataIndex) : null;
|
13136
13141
|
return n.KgTable.bodyCell({
|
13137
13142
|
column: L,
|
13138
13143
|
index: G,
|
@@ -13140,19 +13145,19 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13140
13145
|
text: R,
|
13141
13146
|
value: x,
|
13142
13147
|
row: Y,
|
13143
|
-
varGridDetail:
|
13148
|
+
varGridDetail: te,
|
13144
13149
|
defaultRender: J
|
13145
13150
|
});
|
13146
13151
|
} else
|
13147
13152
|
return J;
|
13148
13153
|
}
|
13149
|
-
function
|
13154
|
+
function de() {
|
13150
13155
|
return !u.isReadAutomatically.value && !u.store.getIsRetrieved(o.formID) ? i.t("kg.KgTable.emptyText") : i.t("kg.emptyText");
|
13151
13156
|
}
|
13152
13157
|
return () => {
|
13153
13158
|
var L, G, Y;
|
13154
13159
|
return createVNode("div", {
|
13155
|
-
class:
|
13160
|
+
class: K.value,
|
13156
13161
|
"kg-frm_id": o.formID,
|
13157
13162
|
ref: b
|
13158
13163
|
}, [createVNode(Table, {
|
@@ -13171,17 +13176,17 @@ const KgTable$1 = "", getProps$g = () => ({
|
|
13171
13176
|
rowClassName: (G = (L = s == null ? void 0 : s.value) == null ? void 0 : L.KgTable) == null ? void 0 : G.kgRowClassName,
|
13172
13177
|
expandColumnWidth: 28,
|
13173
13178
|
expandedRowKeys: v.value,
|
13174
|
-
rowSelection:
|
13179
|
+
rowSelection: I.value,
|
13175
13180
|
customRow: (R) => ({
|
13176
13181
|
onClick: (x) => B(x, R)
|
13177
13182
|
}),
|
13178
13183
|
onResizeColumn: Z,
|
13179
|
-
onChange:
|
13184
|
+
onChange: ee,
|
13180
13185
|
onExpand: se
|
13181
13186
|
}, {
|
13182
|
-
headerCell:
|
13187
|
+
headerCell: ce,
|
13183
13188
|
bodyCell: le,
|
13184
|
-
emptyText:
|
13189
|
+
emptyText: de,
|
13185
13190
|
expandedRowRender: (Y = n == null ? void 0 : n.KgTable) == null ? void 0 : Y.expandedRowRender,
|
13186
13191
|
summary: ne
|
13187
13192
|
}), (u.isShowBottomLeft.value || u.isShowBottomRight.value) && createVNode("div", {
|
@@ -13293,6 +13298,11 @@ const useKgButtonStore = () => (store$3 || (store$3 = defineStore("KgButton", {
|
|
13293
13298
|
}
|
13294
13299
|
},
|
13295
13300
|
actions: {
|
13301
|
+
dispose(e) {
|
13302
|
+
if (!e)
|
13303
|
+
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
13304
|
+
this.clickListenersMap.delete(e), this.updateBeforeClickListenersMap.delete(e), this.deleteOkListenersMap.delete(e), this.otherOkListenersMap.delete(e), this.submitSaveListenersMap.delete(e), this.submitCancelListenersMap.delete(e);
|
13305
|
+
},
|
13296
13306
|
addEventListener(e, t, r) {
|
13297
13307
|
switch (t) {
|
13298
13308
|
case "click":
|
@@ -13434,8 +13444,8 @@ const KgButtonCreate = defineComponent({
|
|
13434
13444
|
attrs: a
|
13435
13445
|
}) {
|
13436
13446
|
const n = useKg(), s = useKgVar(), i = useKgButton(), o = useKgTable(), l = useKgSubmit(), c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13437
|
-
var E, k, A, T, $,
|
13438
|
-
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((
|
13447
|
+
var E, k, A, T, $, M, w, I;
|
13448
|
+
return s.isUpdating.value || s.isCopying.value || s.isDeleting.value || o.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = o.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((M = ($ = o.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((I = c.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13439
13449
|
}), d = computed(() => !!s.isCreatingRequesting.value);
|
13440
13450
|
async function g() {
|
13441
13451
|
e.onKgClick && await e.onKgClick() || s.store.setIsCreating(s.formID, !0);
|
@@ -13803,7 +13813,7 @@ const KgButtonCreate = defineComponent({
|
|
13803
13813
|
g == null || g.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
13804
13814
|
const b = s.selectedRows.value;
|
13805
13815
|
try {
|
13806
|
-
const
|
13816
|
+
const M = await httpClient().request({
|
13807
13817
|
method: (E = (C = e.kgButton) == null ? void 0 : C.cmd_method) != null ? E : "POST",
|
13808
13818
|
url: d,
|
13809
13819
|
params: KgVarUtil.parseCommandParameter((A = (k = e.kgButton) == null ? void 0 : k.cmd_prm) != null ? A : ""),
|
@@ -13811,23 +13821,23 @@ const KgButtonCreate = defineComponent({
|
|
13811
13821
|
});
|
13812
13822
|
if (((T = e.kgButton) == null ? void 0 : T.reload_all_after_done_flg) === 1) {
|
13813
13823
|
if ((($ = e.kgButton) == null ? void 0 : $.re_select_after_reload_flg) !== 0 && s.onRetrieve(async ({
|
13814
|
-
datas:
|
13824
|
+
datas: I
|
13815
13825
|
}) => {
|
13816
|
-
const
|
13826
|
+
const K = I.value, P = intersectionWith$1(K, b != null ? b : [], (H, V) => (H == null ? void 0 : H[s.id.value]) === (V == null ? void 0 : V[s.id.value]));
|
13817
13827
|
return P.length > 0 && s.store.setSelectedRows(r.formID, P), !1;
|
13818
13828
|
}, !0), await n.store.emit(r.formID, "otherOk", {
|
13819
13829
|
button: e.kgButton,
|
13820
|
-
data:
|
13830
|
+
data: M
|
13821
13831
|
}))
|
13822
13832
|
return;
|
13823
13833
|
a.search(!0);
|
13824
13834
|
} else if (await n.store.emit(r.formID, "otherOk", {
|
13825
13835
|
button: e.kgButton,
|
13826
|
-
data:
|
13836
|
+
data: M
|
13827
13837
|
}))
|
13828
13838
|
return;
|
13829
|
-
} catch (
|
13830
|
-
console.error(
|
13839
|
+
} catch (M) {
|
13840
|
+
console.error(M);
|
13831
13841
|
} finally {
|
13832
13842
|
r.store.setIsOtherRequesting(r.formID, !1), g == null || g.hideLoading();
|
13833
13843
|
}
|
@@ -13927,8 +13937,8 @@ const KgButtonCreate = defineComponent({
|
|
13927
13937
|
}
|
13928
13938
|
});
|
13929
13939
|
const c = computed(() => s.store.getVarButton(s.formID, e.kgVarName)), u = computed(() => {
|
13930
|
-
var E, k, A, T, $,
|
13931
|
-
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((
|
13940
|
+
var E, k, A, T, $, M, w, I;
|
13941
|
+
return s.isCreating.value || s.isCopying.value || s.isDeleting.value || i.isRetrieving.value || ((E = c.value) == null ? void 0 : E.dis_no_select_flg) === 1 && ((A = (k = i.selectedRows.value) == null ? void 0 : k.length) != null ? A : 0) === 0 || ((T = c.value) == null ? void 0 : T.dis_mult_select_flg) === 1 && ((M = ($ = i.selectedRows.value) == null ? void 0 : $.length) != null ? M : 0) > 1 || ((w = c.value) == null ? void 0 : w.permission_type) === 2 && !n.p((I = c.value) == null ? void 0 : I.permission_code) ? !0 : isNil(e.kgDisabled) ? !1 : e.kgDisabled;
|
13932
13942
|
}), d = computed(() => !!s.isUpdatingRequesting.value);
|
13933
13943
|
async function g() {
|
13934
13944
|
e.onKgClick && await e.onKgClick() || await o.store.emit(s.formID, "updateBeforeClick", {
|
@@ -14132,7 +14142,9 @@ const getProps$e = () => ({
|
|
14132
14142
|
})
|
14133
14143
|
});
|
14134
14144
|
}
|
14135
|
-
return () =>
|
14145
|
+
return onUnmounted(() => {
|
14146
|
+
s.store.dispose(n.formID);
|
14147
|
+
}), () => createVNode("div", {
|
14136
14148
|
class: "kg-button",
|
14137
14149
|
"kg-frm_id": n.formID
|
14138
14150
|
}, [createVNode(Spin, {
|
@@ -14165,11 +14177,11 @@ const FORM_ID__VAR_PROFILE_CONFIG = "kg-search.VarProfileConfig", getProps$d = (
|
|
14165
14177
|
let store$2 = null;
|
14166
14178
|
const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
14167
14179
|
state: () => ({
|
14168
|
-
isReadyMap: /* @__PURE__ */ new Map(),
|
14169
|
-
modelMap: /* @__PURE__ */ new Map(),
|
14170
14180
|
onSearchListenersMap: /* @__PURE__ */ new Map(),
|
14171
14181
|
onResetListenersMap: /* @__PURE__ */ new Map(),
|
14172
14182
|
onReadyListenersMap: /* @__PURE__ */ new Map(),
|
14183
|
+
isReadyMap: /* @__PURE__ */ new Map(),
|
14184
|
+
modelMap: /* @__PURE__ */ new Map(),
|
14173
14185
|
searchFnMap: /* @__PURE__ */ new Map(),
|
14174
14186
|
resetFnMap: /* @__PURE__ */ new Map()
|
14175
14187
|
}),
|
@@ -14215,7 +14227,7 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
14215
14227
|
dispose(e) {
|
14216
14228
|
if (!e)
|
14217
14229
|
return KgLogger.error("formID \u4E3A\u7A7A."), null;
|
14218
|
-
this.isReadyMap.delete(e), this.modelMap.delete(e), this.searchFnMap.delete(e), this.resetFnMap.delete(e);
|
14230
|
+
this.onSearchListenersMap.delete(e), this.onResetListenersMap.delete(e), this.onReadyListenersMap.delete(e), this.isReadyMap.delete(e), this.modelMap.delete(e), this.searchFnMap.delete(e), this.resetFnMap.delete(e);
|
14219
14231
|
},
|
14220
14232
|
addEventListener(e, t, r) {
|
14221
14233
|
switch (t) {
|
@@ -14651,24 +14663,24 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14651
14663
|
if (C != null && C.id)
|
14652
14664
|
try {
|
14653
14665
|
s.store.setIsLoading(r.formID, !0);
|
14654
|
-
const
|
14666
|
+
const M = await QueryByID({
|
14655
14667
|
params: {
|
14656
14668
|
id: C.id
|
14657
14669
|
}
|
14658
14670
|
});
|
14659
|
-
o.value = o.value.map((
|
14671
|
+
o.value = o.value.map((I) => {
|
14660
14672
|
var P;
|
14661
|
-
const
|
14662
|
-
return
|
14663
|
-
...
|
14664
|
-
...
|
14665
|
-
id:
|
14666
|
-
} :
|
14673
|
+
const K = (P = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : P.find((H) => H.var_nam === I.var_nam);
|
14674
|
+
return K ? {
|
14675
|
+
...I,
|
14676
|
+
...K,
|
14677
|
+
id: I.id
|
14678
|
+
} : I;
|
14667
14679
|
});
|
14668
|
-
const w = (T = (A =
|
14669
|
-
l.value = o.value.filter((
|
14670
|
-
} catch (
|
14671
|
-
throw
|
14680
|
+
const w = (T = (A = M == null ? void 0 : M.varProfileDetails) == null ? void 0 : A.map((I) => I.var_nam)) != null ? T : [];
|
14681
|
+
l.value = o.value.filter((I) => w.includes(I.var_nam)).map((I) => I.id);
|
14682
|
+
} catch (M) {
|
14683
|
+
throw M;
|
14672
14684
|
} finally {
|
14673
14685
|
s.store.setIsLoading(r.formID, !1);
|
14674
14686
|
}
|
@@ -14703,7 +14715,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14703
14715
|
_(!0);
|
14704
14716
|
}
|
14705
14717
|
});
|
14706
|
-
}) : Promise.resolve(!1))
|
14718
|
+
}) : Promise.resolve(!1));
|
14707
14719
|
const o = ref([]), l = ref([]), c = ref([]);
|
14708
14720
|
_useDragRow(e.hostFormID, o, c);
|
14709
14721
|
const u = ref({
|
@@ -14735,8 +14747,8 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14735
14747
|
onItemSelect: k
|
14736
14748
|
}) => {
|
14737
14749
|
const A = _.sort((T, $) => {
|
14738
|
-
var
|
14739
|
-
return ((
|
14750
|
+
var M, w;
|
14751
|
+
return ((M = T.srtseq) != null ? M : 0) - ((w = $.srtseq) != null ? w : 0);
|
14740
14752
|
});
|
14741
14753
|
return c.value = A, createVNode(Table, {
|
14742
14754
|
pagination: !1,
|
@@ -14751,7 +14763,7 @@ const KgSearch_ConfigModal_VarProfileMaster = "", getProps$c = () => ({
|
|
14751
14763
|
dataSource: A,
|
14752
14764
|
customRow: (T) => {
|
14753
14765
|
let $ = {
|
14754
|
-
onClick: (
|
14766
|
+
onClick: (M) => y(M, T, p, b)
|
14755
14767
|
};
|
14756
14768
|
return p === "right" && ($["kg-host-frm_id"] = i.formID, $["kg-var_nam"] = T.var_nam), $;
|
14757
14769
|
},
|
@@ -14997,23 +15009,23 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
14997
15009
|
});
|
14998
15010
|
_useLayoutHeaderResizeObserver();
|
14999
15011
|
const p = _useFormModel(v, y), _ = computed(() => {
|
15000
|
-
var
|
15001
|
-
if (!isNil((B = (
|
15012
|
+
var N, B, W, X;
|
15013
|
+
if (!isNil((B = (N = r == null ? void 0 : r.value) == null ? void 0 : N.KgSearch) == null ? void 0 : B.kgDisabled))
|
15002
15014
|
return (X = (W = r == null ? void 0 : r.value) == null ? void 0 : W.KgSearch) == null ? void 0 : X.kgDisabled;
|
15003
15015
|
if (!isNil(e.kgDisabled))
|
15004
15016
|
return e.kgDisabled;
|
15005
15017
|
}), b = computed(() => {
|
15006
|
-
var
|
15007
|
-
return !!(_.value || i.isRetrieving.value || ((
|
15018
|
+
var N, B;
|
15019
|
+
return !!(_.value || i.isRetrieving.value || ((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) === 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code) || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value);
|
15008
15020
|
}), C = computed(() => !!(_.value || i.isRetrieving.value || n.isCreating.value || n.isUpdating.value || n.isCopying.value || n.isDeleting.value)), E = computed(() => !!(_.value || i.isRetrieving.value)), k = ref({
|
15009
15021
|
visible: !1
|
15010
15022
|
}), A = computed(() => y.value.kgHeight === g.value), T = computed(() => {
|
15011
|
-
var
|
15012
|
-
if (n.t((
|
15023
|
+
var N, B, W;
|
15024
|
+
if (n.t((N = n.varButtonSearch.value) == null ? void 0 : N.var_nam).value !== ((B = n.varButtonSearch.value) == null ? void 0 : B.var_nam))
|
15013
15025
|
return n.t((W = n.varButtonSearch.value) == null ? void 0 : W.var_nam).value;
|
15014
15026
|
}), $ = computed(() => {
|
15015
|
-
var
|
15016
|
-
switch ((
|
15027
|
+
var N;
|
15028
|
+
switch ((N = n.varButtonSearch.value) == null ? void 0 : N.primary_flg) {
|
15017
15029
|
case 1:
|
15018
15030
|
return !0;
|
15019
15031
|
case 0:
|
@@ -15021,50 +15033,50 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15021
15033
|
default:
|
15022
15034
|
return !0;
|
15023
15035
|
}
|
15024
|
-
}),
|
15025
|
-
let
|
15026
|
-
return o.value && (
|
15036
|
+
}), M = computed(() => !!(n.isRetrieving.value || n.isRetrievingVarProfileMaster.value || c.value && !!n.isOtherRequesting.value)), w = computed(() => !!n.isRetrieving.value || !!n.isRetrievingVarProfileMaster.value), I = computed(() => {
|
15037
|
+
let N = "kg-search";
|
15038
|
+
return o.value && (N += " kg-search--visible"), c.value && (N += " kg-search--teleport"), N;
|
15027
15039
|
});
|
15028
15040
|
onUnmounted(() => {
|
15029
15041
|
s.store.dispose(n.formID);
|
15030
15042
|
});
|
15031
|
-
async function N
|
15043
|
+
async function K(N = !1) {
|
15032
15044
|
if (b.value) {
|
15033
15045
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u91CD\u7F6E\u6309\u94AE\u7981\u7528.`);
|
15034
15046
|
return;
|
15035
15047
|
}
|
15036
15048
|
o.value ? v.value && v.value.validate().then(async () => {
|
15037
15049
|
await s.store.emit(n.formID, "search", {
|
15038
|
-
resetPageIndex:
|
15050
|
+
resetPageIndex: N
|
15039
15051
|
});
|
15040
15052
|
}).catch((B) => {
|
15041
15053
|
KgLogger.debug(`${n.formID} | KgSearch | onSearch() | \u8868\u5355\u9A8C\u8BC1\u5931\u8D25.`, {
|
15042
15054
|
e: B
|
15043
15055
|
});
|
15044
15056
|
}) : await s.store.emit(n.formID, "search", {
|
15045
|
-
resetPageIndex:
|
15057
|
+
resetPageIndex: N
|
15046
15058
|
});
|
15047
15059
|
}
|
15048
|
-
s.store.setSearchFn(n.formID,
|
15060
|
+
s.store.setSearchFn(n.formID, K);
|
15049
15061
|
async function P() {
|
15050
15062
|
p.initFormModel(), o.value ? v.value && v.value.validate().then(async () => {
|
15051
15063
|
await s.store.emit(n.formID, "reset", {});
|
15052
|
-
}).catch((
|
15064
|
+
}).catch((N) => {
|
15053
15065
|
KgLogger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
15054
|
-
e:
|
15066
|
+
e: N
|
15055
15067
|
});
|
15056
15068
|
}) : await s.store.emit(n.formID, "reset", {});
|
15057
15069
|
}
|
15058
15070
|
s.store.setResetFn(n.formID, P);
|
15059
15071
|
function H() {
|
15060
|
-
return
|
15072
|
+
return K(!0), Promise.resolve(!0);
|
15061
15073
|
}
|
15062
15074
|
function V() {
|
15063
|
-
var
|
15075
|
+
var N;
|
15064
15076
|
return createVNode("div", {
|
15065
15077
|
class: "title",
|
15066
15078
|
onClick: F
|
15067
|
-
}, [((
|
15079
|
+
}, [((N = t == null ? void 0 : t.KgSearch) == null ? void 0 : N.left) && createVNode("div", {
|
15068
15080
|
class: "kg-search-title-left",
|
15069
15081
|
onClick: (B) => {
|
15070
15082
|
B.stopPropagation(), B.preventDefault();
|
@@ -15072,8 +15084,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15072
15084
|
}, [t.KgSearch.left()]), A.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [a.t("kg.KgSearch.title")])]);
|
15073
15085
|
}
|
15074
15086
|
function O() {
|
15075
|
-
var
|
15076
|
-
return ((W = (B = (
|
15087
|
+
var N, B, W, X;
|
15088
|
+
return ((W = (B = (N = n.varProfileMasters) == null ? void 0 : N.value) == null ? void 0 : B.length) != null ? W : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
15077
15089
|
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
15078
15090
|
"onUpdate:value": (q) => n.store.setCurrentVarProfileMasterID(n.formID, q),
|
15079
15091
|
disabled: C.value,
|
@@ -15081,10 +15093,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15081
15093
|
}, {
|
15082
15094
|
default: () => {
|
15083
15095
|
var q, Z;
|
15084
|
-
return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((
|
15085
|
-
value:
|
15096
|
+
return (Z = (q = n.varProfileMasters) == null ? void 0 : q.value) == null ? void 0 : Z.map((ee) => createVNode(Select.Option, {
|
15097
|
+
value: ee.id
|
15086
15098
|
}, {
|
15087
|
-
default: () => [n.t(
|
15099
|
+
default: () => [n.t(ee == null ? void 0 : ee.prf_var_nam).value]
|
15088
15100
|
}));
|
15089
15101
|
},
|
15090
15102
|
suffixIcon: () => createVNode(CaretDownOutlined$1, {
|
@@ -15105,8 +15117,8 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15105
15117
|
}, null)]);
|
15106
15118
|
}
|
15107
15119
|
function D() {
|
15108
|
-
var
|
15109
|
-
return createVNode(Fragment, null, [O(), !(((
|
15120
|
+
var N, B, W, X, q;
|
15121
|
+
return createVNode(Fragment, null, [O(), !(((N = n.varButtonSearch.value) == null ? void 0 : N.permission_type) !== 2 && !a.p((B = n.varButtonSearch.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
15110
15122
|
type: "primary",
|
15111
15123
|
ghost: !b.value,
|
15112
15124
|
disabled: b.value,
|
@@ -15130,10 +15142,10 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15130
15142
|
spinning: w.value
|
15131
15143
|
}, {
|
15132
15144
|
default: () => {
|
15133
|
-
var
|
15145
|
+
var N;
|
15134
15146
|
return [createVNode(KgForm, {
|
15135
15147
|
ref: v,
|
15136
|
-
model: (
|
15148
|
+
model: (N = s.model.value) != null ? N : {}
|
15137
15149
|
}, {
|
15138
15150
|
default: () => [createVNode(Row, {
|
15139
15151
|
gutter: 6
|
@@ -15144,7 +15156,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15144
15156
|
key: W.var_nam,
|
15145
15157
|
kgVarName: W.var_nam,
|
15146
15158
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
15147
|
-
onKgSubmit: () =>
|
15159
|
+
onKgSubmit: () => K(!0)
|
15148
15160
|
}, null))];
|
15149
15161
|
}
|
15150
15162
|
})]
|
@@ -15157,11 +15169,11 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15157
15169
|
}
|
15158
15170
|
return () => createVNode(KgResizable, {
|
15159
15171
|
kgHeight: y.value.kgHeight,
|
15160
|
-
"onUpdate:kgHeight": (
|
15172
|
+
"onUpdate:kgHeight": (N) => y.value.kgHeight = N,
|
15161
15173
|
kgMinHeight: g.value,
|
15162
15174
|
kgMaxHeight: d.value,
|
15163
15175
|
kgDisabled: !l.value,
|
15164
|
-
kgClass:
|
15176
|
+
kgClass: I.value,
|
15165
15177
|
"kg-frm_id": n.formID
|
15166
15178
|
}, {
|
15167
15179
|
default: () => [o.value && createVNode("div", {
|
@@ -15175,7 +15187,7 @@ const KgSearch$1 = "", getProps$9 = () => ({
|
|
15175
15187
|
default: () => [createVNode("div", {
|
15176
15188
|
class: "ant-collapse-header"
|
15177
15189
|
}, [createVNode(Spin, {
|
15178
|
-
spinning:
|
15190
|
+
spinning: M.value
|
15179
15191
|
}, {
|
15180
15192
|
default: () => [V(), createVNode("div", {
|
15181
15193
|
class: "ant-collapse-extra"
|
@@ -15689,8 +15701,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15689
15701
|
});
|
15690
15702
|
if (u.value = null, c.value = D != null ? D : [], P) {
|
15691
15703
|
const U = c.value.find((F) => {
|
15692
|
-
var
|
15693
|
-
return F.id === ((
|
15704
|
+
var N;
|
15705
|
+
return F.id === ((N = a.getSelectedVarCatalog) == null ? void 0 : N.id);
|
15694
15706
|
});
|
15695
15707
|
a.setSelectedVarCatalog(U != null ? U : null), d.value = U != null && U.id ? [U.id] : [];
|
15696
15708
|
} else
|
@@ -15781,14 +15793,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15781
15793
|
}
|
15782
15794
|
}) : (a.setSelectedVarCatalog(unref(P)), d.value = [P.id]));
|
15783
15795
|
}
|
15784
|
-
function
|
15796
|
+
function M() {
|
15785
15797
|
v.value.visible = !0;
|
15786
15798
|
}
|
15787
15799
|
function w() {
|
15788
15800
|
return createVNode("div", {
|
15789
15801
|
class: "buttons"
|
15790
15802
|
}, [createVNode(Button, {
|
15791
|
-
onClick:
|
15803
|
+
onClick: M,
|
15792
15804
|
disabled: y.value,
|
15793
15805
|
type: "primary"
|
15794
15806
|
}, {
|
@@ -15803,7 +15815,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15803
15815
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
15804
15816
|
})]);
|
15805
15817
|
}
|
15806
|
-
function
|
15818
|
+
function I() {
|
15807
15819
|
let P, H;
|
15808
15820
|
return createVNode("div", {
|
15809
15821
|
class: "form"
|
@@ -15843,7 +15855,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15843
15855
|
default: () => [H]
|
15844
15856
|
})])]);
|
15845
15857
|
}
|
15846
|
-
function
|
15858
|
+
function K(P) {
|
15847
15859
|
var V;
|
15848
15860
|
let H = "";
|
15849
15861
|
return P.id || (H += " ant-table-row-create"), P.id === ((V = a.getSelectedVarCatalog) == null ? void 0 : V.id) && (H += " ant-table-row-selected "), H;
|
@@ -15862,12 +15874,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
15862
15874
|
rowKey: "id",
|
15863
15875
|
dataSource: c.value,
|
15864
15876
|
loading: n.value,
|
15865
|
-
rowClassName:
|
15877
|
+
rowClassName: K,
|
15866
15878
|
rowSelection: g.value,
|
15867
15879
|
customRow: (P) => ({
|
15868
15880
|
onClick: () => $(P)
|
15869
15881
|
})
|
15870
|
-
}, null),
|
15882
|
+
}, null), I(), createVNode(KgVarConfigModalVarCreateModal, {
|
15871
15883
|
visible: v.value.visible,
|
15872
15884
|
"onUpdate:visible": (P) => v.value.visible = P,
|
15873
15885
|
onKgOk: k
|
@@ -16193,18 +16205,18 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
16193
16205
|
customRender: ({
|
16194
16206
|
record: k
|
16195
16207
|
}) => {
|
16196
|
-
var T, $,
|
16208
|
+
var T, $, M;
|
16197
16209
|
const A = k;
|
16198
16210
|
return createVNode("div", null, [createVNode("div", null, [(T = A.whDsc) != null ? T : " ", createTextVNode(" - "), ($ = A.whId) != null ? $ : " "]), createVNode("div", {
|
16199
16211
|
class: "address"
|
16200
|
-
}, [(
|
16212
|
+
}, [(M = A.adrId) != null ? M : " "])]);
|
16201
16213
|
}
|
16202
16214
|
}]), u = ref([]), d = computed(() => {
|
16203
16215
|
var A;
|
16204
16216
|
const k = (A = s.value) == null ? void 0 : A.toUpperCase();
|
16205
16217
|
return u.value.filter((T) => {
|
16206
|
-
var $,
|
16207
|
-
return ((
|
16218
|
+
var $, M, w, I, K, P;
|
16219
|
+
return ((M = ($ = T.whDsc) == null ? void 0 : $.toUpperCase()) == null ? void 0 : M.includes(k)) || ((I = (w = T.whId) == null ? void 0 : w.toUpperCase()) == null ? void 0 : I.includes(k)) || ((P = (K = T.adrId) == null ? void 0 : K.toUpperCase()) == null ? void 0 : P.includes(k));
|
16208
16220
|
});
|
16209
16221
|
}), g = computed(() => {
|
16210
16222
|
var k, A;
|