@kengic/vue 0.5.26 → 0.5.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kengic-vue.js +295 -292
- package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +0 -2
- package/dist/src/apis/WMS/Controllers/VarContextController/List.d.ts +0 -2
- package/dist/src/apis/WMS/Controllers/WhController/ListVO.d.ts +1 -1
- package/dist/src/apis/WMS/models.d.ts +4 -4
- package/dist/src/components/KgButton/index.store.d.ts +2 -2
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +3 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Checkbox.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.CheckboxGroup.d.ts +10 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +0 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +2 -6
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +0 -2
- package/dist/src/components/KgForm.Item/index.vm.d.ts +2 -7
- package/dist/src/components/KgSearch/index.store.d.ts +3 -3
- package/dist/src/components/KgSubmit/index.store.d.ts +8 -8
- package/dist/src/components/KgVar/index.vm.d.ts +2 -2
- package/dist/src/components/KgWarehouse/index.hooks.d.ts +2 -2
- package/dist/src/components/KgWarehouse/index.store.d.ts +4 -4
- package/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
var
|
2
|
-
var
|
3
|
-
var d = (e, t, r) => (
|
1
|
+
var Ie = Object.defineProperty;
|
2
|
+
var Ae = (e, t, r) => t in e ? Ie(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var d = (e, t, r) => (Ae(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, isVNode, mergeProps, onMounted, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Button, Modal, Progress, Spin, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Select, Switch, Drawer, message, Tag, Tabs, Dropdown, Menu, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
|
6
6
|
const index$7 = "";
|
@@ -126,6 +126,7 @@ class VarButton {
|
|
126
126
|
d(this, "primary_flg");
|
127
127
|
d(this, "reload_all_after_done_flg");
|
128
128
|
d(this, "show_modal_flg");
|
129
|
+
d(this, "show_success_message_flg");
|
129
130
|
d(this, "srtseq");
|
130
131
|
d(this, "typ");
|
131
132
|
d(this, "var_nam");
|
@@ -150,6 +151,7 @@ class VarButton {
|
|
150
151
|
case "primary_flg":
|
151
152
|
case "reload_all_after_done_flg":
|
152
153
|
case "show_modal_flg":
|
154
|
+
case "show_success_message_flg":
|
153
155
|
case "srtseq":
|
154
156
|
case "typ":
|
155
157
|
case "var_nam":
|
@@ -186,14 +188,12 @@ class VarCatalog {
|
|
186
188
|
class VarContext {
|
187
189
|
constructor(t) {
|
188
190
|
d(this, "frm_id");
|
189
|
-
d(this, "frm_nam");
|
190
191
|
d(this, "grp_nam");
|
191
192
|
d(this, "id");
|
192
193
|
d(this, "var_nam");
|
193
194
|
keys$1(t != null ? t : {}).forEach((r) => {
|
194
195
|
switch (r) {
|
195
196
|
case "frm_id":
|
196
|
-
case "frm_nam":
|
197
197
|
case "grp_nam":
|
198
198
|
case "id":
|
199
199
|
case "var_nam":
|
@@ -741,7 +741,7 @@ class VarVariableInput {
|
|
741
741
|
});
|
742
742
|
}
|
743
743
|
}
|
744
|
-
class
|
744
|
+
class WhDTO {
|
745
745
|
constructor(t) {
|
746
746
|
d(this, "activeFlg");
|
747
747
|
d(this, "adrId");
|
@@ -887,14 +887,12 @@ Edit$1.url = "/var/VarContext/edit";
|
|
887
887
|
class ExportXlsQuery$1 {
|
888
888
|
constructor(t) {
|
889
889
|
d(this, "frm_id");
|
890
|
-
d(this, "frm_nam");
|
891
890
|
d(this, "grp_nam");
|
892
891
|
d(this, "id");
|
893
892
|
d(this, "var_nam");
|
894
893
|
keys$1(t != null ? t : {}).forEach((r) => {
|
895
894
|
switch (r) {
|
896
895
|
case "frm_id":
|
897
|
-
case "frm_nam":
|
898
896
|
case "grp_nam":
|
899
897
|
case "id":
|
900
898
|
case "var_nam":
|
@@ -933,7 +931,6 @@ ImportExcel$1.url = "/var/VarContext/importExcel";
|
|
933
931
|
class ListQuery$1 {
|
934
932
|
constructor(t) {
|
935
933
|
d(this, "frm_id");
|
936
|
-
d(this, "frm_nam");
|
937
934
|
d(this, "grp_nam");
|
938
935
|
d(this, "var_nam");
|
939
936
|
d(this, "column");
|
@@ -943,7 +940,6 @@ class ListQuery$1 {
|
|
943
940
|
keys$1(t != null ? t : {}).forEach((r) => {
|
944
941
|
switch (r) {
|
945
942
|
case "frm_id":
|
946
|
-
case "frm_nam":
|
947
943
|
case "grp_nam":
|
948
944
|
case "var_nam":
|
949
945
|
case "column":
|
@@ -4636,18 +4632,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4636
4632
|
e.exports = n();
|
4637
4633
|
})(commonjsGlobal, function() {
|
4638
4634
|
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", c = "day", u = "week", g = "month", p = "quarter", m = "year", b = "date", _ = "Invalid Date", v = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, C = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(M) {
|
4639
|
-
var
|
4640
|
-
return "[" + M + (
|
4641
|
-
} }, E = function(M,
|
4635
|
+
var A = ["th", "st", "nd", "rd"], $ = M % 100;
|
4636
|
+
return "[" + M + (A[($ - 20) % 10] || A[$] || A[0]) + "]";
|
4637
|
+
} }, E = function(M, A, $) {
|
4642
4638
|
var D = String(M);
|
4643
|
-
return !D || D.length >=
|
4639
|
+
return !D || D.length >= A ? M : "" + Array(A + 1 - D.length).join($) + M;
|
4644
4640
|
}, T = { s: E, z: function(M) {
|
4645
|
-
var
|
4646
|
-
return (
|
4647
|
-
}, m: function M(
|
4648
|
-
if (
|
4649
|
-
return -M($,
|
4650
|
-
var D = 12 * ($.year() -
|
4641
|
+
var A = -M.utcOffset(), $ = Math.abs(A), D = Math.floor($ / 60), R = $ % 60;
|
4642
|
+
return (A <= 0 ? "+" : "-") + E(D, 2, "0") + ":" + E(R, 2, "0");
|
4643
|
+
}, m: function M(A, $) {
|
4644
|
+
if (A.date() < $.date())
|
4645
|
+
return -M($, A);
|
4646
|
+
var D = 12 * ($.year() - A.year()) + ($.month() - A.month()), R = A.clone().add(D, g), G = $ - R < 0, N = A.clone().add(D + (G ? -1 : 1), g);
|
4651
4647
|
return +(-(D + ($ - R) / (G ? R - N : N - R)) || 0);
|
4652
4648
|
}, a: function(M) {
|
4653
4649
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
@@ -4659,36 +4655,36 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4659
4655
|
k[O] = y;
|
4660
4656
|
var F = function(M) {
|
4661
4657
|
return M instanceof U;
|
4662
|
-
}, L = function M(
|
4658
|
+
}, L = function M(A, $, D) {
|
4663
4659
|
var R;
|
4664
|
-
if (!
|
4660
|
+
if (!A)
|
4665
4661
|
return O;
|
4666
|
-
if (typeof
|
4667
|
-
var G =
|
4662
|
+
if (typeof A == "string") {
|
4663
|
+
var G = A.toLowerCase();
|
4668
4664
|
k[G] && (R = G), $ && (k[G] = $, R = G);
|
4669
|
-
var N =
|
4665
|
+
var N = A.split("-");
|
4670
4666
|
if (!R && N.length > 1)
|
4671
4667
|
return M(N[0]);
|
4672
4668
|
} else {
|
4673
|
-
var B =
|
4674
|
-
k[B] =
|
4669
|
+
var B = A.name;
|
4670
|
+
k[B] = A, R = B;
|
4675
4671
|
}
|
4676
4672
|
return !D && R && (O = R), R || !D && O;
|
4677
|
-
}, V = function(M,
|
4673
|
+
}, V = function(M, A) {
|
4678
4674
|
if (F(M))
|
4679
4675
|
return M.clone();
|
4680
|
-
var $ = typeof
|
4676
|
+
var $ = typeof A == "object" ? A : {};
|
4681
4677
|
return $.date = M, $.args = arguments, new U($);
|
4682
4678
|
}, w = T;
|
4683
|
-
w.l = L, w.i = F, w.w = function(M,
|
4684
|
-
return V(M, { locale:
|
4679
|
+
w.l = L, w.i = F, w.w = function(M, A) {
|
4680
|
+
return V(M, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
4685
4681
|
};
|
4686
4682
|
var U = function() {
|
4687
4683
|
function M($) {
|
4688
4684
|
this.$L = L($.locale, null, !0), this.parse($);
|
4689
4685
|
}
|
4690
|
-
var
|
4691
|
-
return
|
4686
|
+
var A = M.prototype;
|
4687
|
+
return A.parse = function($) {
|
4692
4688
|
this.$d = function(D) {
|
4693
4689
|
var R = D.date, G = D.utc;
|
4694
4690
|
if (R === null)
|
@@ -4706,27 +4702,27 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4706
4702
|
}
|
4707
4703
|
return new Date(R);
|
4708
4704
|
}($), this.$x = $.x || {}, this.init();
|
4709
|
-
},
|
4705
|
+
}, A.init = function() {
|
4710
4706
|
var $ = this.$d;
|
4711
4707
|
this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
|
4712
|
-
},
|
4708
|
+
}, A.$utils = function() {
|
4713
4709
|
return w;
|
4714
|
-
},
|
4710
|
+
}, A.isValid = function() {
|
4715
4711
|
return this.$d.toString() !== _;
|
4716
|
-
},
|
4712
|
+
}, A.isSame = function($, D) {
|
4717
4713
|
var R = V($);
|
4718
4714
|
return this.startOf(D) <= R && R <= this.endOf(D);
|
4719
|
-
},
|
4715
|
+
}, A.isAfter = function($, D) {
|
4720
4716
|
return V($) < this.startOf(D);
|
4721
|
-
},
|
4717
|
+
}, A.isBefore = function($, D) {
|
4722
4718
|
return this.endOf(D) < V($);
|
4723
|
-
},
|
4719
|
+
}, A.$g = function($, D, R) {
|
4724
4720
|
return w.u($) ? this[D] : this.set(R, $);
|
4725
|
-
},
|
4721
|
+
}, A.unix = function() {
|
4726
4722
|
return Math.floor(this.valueOf() / 1e3);
|
4727
|
-
},
|
4723
|
+
}, A.valueOf = function() {
|
4728
4724
|
return this.$d.getTime();
|
4729
|
-
},
|
4725
|
+
}, A.startOf = function($, D) {
|
4730
4726
|
var R = this, G = !!w.u(D) || D, N = w.p($), B = function(oe, P) {
|
4731
4727
|
var x = w.w(R.$u ? Date.UTC(R.$y, P, oe) : new Date(R.$y, P, oe), R);
|
4732
4728
|
return G ? x : x.endOf(c);
|
@@ -4739,8 +4735,8 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4739
4735
|
case g:
|
4740
4736
|
return G ? B(1, X) : B(0, X + 1);
|
4741
4737
|
case u:
|
4742
|
-
var ce = this.$locale().weekStart || 0,
|
4743
|
-
return B(G ? ae -
|
4738
|
+
var ce = this.$locale().weekStart || 0, fe = (Y < ce ? Y + 7 : Y) - ce;
|
4739
|
+
return B(G ? ae - fe : ae + (6 - fe), X);
|
4744
4740
|
case c:
|
4745
4741
|
case b:
|
4746
4742
|
return W(te + "Hours", 0);
|
@@ -4753,9 +4749,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4753
4749
|
default:
|
4754
4750
|
return this.clone();
|
4755
4751
|
}
|
4756
|
-
},
|
4752
|
+
}, A.endOf = function($) {
|
4757
4753
|
return this.startOf($, !1);
|
4758
|
-
},
|
4754
|
+
}, A.$set = function($, D) {
|
4759
4755
|
var R, G = w.p($), N = "set" + (this.$u ? "UTC" : ""), B = (R = {}, R[c] = N + "Date", R[b] = N + "Date", R[g] = N + "Month", R[m] = N + "FullYear", R[l] = N + "Hours", R[i] = N + "Minutes", R[s] = N + "Seconds", R[o] = N + "Milliseconds", R)[G], W = G === c ? this.$D + (D - this.$W) : D;
|
4760
4756
|
if (G === g || G === m) {
|
4761
4757
|
var Y = this.clone().set(b, 1);
|
@@ -4763,11 +4759,11 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4763
4759
|
} else
|
4764
4760
|
B && this.$d[B](W);
|
4765
4761
|
return this.init(), this;
|
4766
|
-
},
|
4762
|
+
}, A.set = function($, D) {
|
4767
4763
|
return this.clone().$set($, D);
|
4768
|
-
},
|
4764
|
+
}, A.get = function($) {
|
4769
4765
|
return this[w.p($)]();
|
4770
|
-
},
|
4766
|
+
}, A.add = function($, D) {
|
4771
4767
|
var R, G = this;
|
4772
4768
|
$ = Number($);
|
4773
4769
|
var N = w.p(D), B = function(X) {
|
@@ -4784,9 +4780,9 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4784
4780
|
return B(7);
|
4785
4781
|
var W = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[N] || 1, Y = this.$d.getTime() + $ * W;
|
4786
4782
|
return w.w(Y, this);
|
4787
|
-
},
|
4783
|
+
}, A.subtract = function($, D) {
|
4788
4784
|
return this.add(-1 * $, D);
|
4789
|
-
},
|
4785
|
+
}, A.format = function($) {
|
4790
4786
|
var D = this, R = this.$locale();
|
4791
4787
|
if (!this.isValid())
|
4792
4788
|
return R.invalidDate || _;
|
@@ -4794,45 +4790,45 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4794
4790
|
return P && (P[x] || P(D, G)) || H[x].slice(0, q);
|
4795
4791
|
}, ce = function(P) {
|
4796
4792
|
return w.s(B % 12 || 12, P, "0");
|
4797
|
-
},
|
4793
|
+
}, fe = R.meridiem || function(P, x, H) {
|
4798
4794
|
var q = P < 12 ? "AM" : "PM";
|
4799
4795
|
return H ? q.toLowerCase() : q;
|
4800
|
-
}, oe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: w.s(Y + 1, 2, "0"), MMM: te(R.monthsShort, Y, ae, 3), MMMM: te(ae, Y), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: te(R.weekdaysMin, this.$W, X, 2), ddd: te(R.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: w.s(B, 2, "0"), h: ce(1), hh: ce(2), a:
|
4796
|
+
}, oe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: w.s(Y + 1, 2, "0"), MMM: te(R.monthsShort, Y, ae, 3), MMMM: te(ae, Y), D: this.$D, DD: w.s(this.$D, 2, "0"), d: String(this.$W), dd: te(R.weekdaysMin, this.$W, X, 2), ddd: te(R.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(B), HH: w.s(B, 2, "0"), h: ce(1), hh: ce(2), a: fe(B, W, !0), A: fe(B, W, !1), m: String(W), mm: w.s(W, 2, "0"), s: String(this.$s), ss: w.s(this.$s, 2, "0"), SSS: w.s(this.$ms, 3, "0"), Z: N };
|
4801
4797
|
return G.replace(C, function(P, x) {
|
4802
4798
|
return x || oe[P] || N.replace(":", "");
|
4803
4799
|
});
|
4804
|
-
},
|
4800
|
+
}, A.utcOffset = function() {
|
4805
4801
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4806
|
-
},
|
4802
|
+
}, A.diff = function($, D, R) {
|
4807
4803
|
var G, N = w.p(D), B = V($), W = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = w.m(this, B);
|
4808
4804
|
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[u] = (Y - W) / 6048e5, G[c] = (Y - W) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[N] || Y, R ? X : w.a(X);
|
4809
|
-
},
|
4805
|
+
}, A.daysInMonth = function() {
|
4810
4806
|
return this.endOf(g).$D;
|
4811
|
-
},
|
4807
|
+
}, A.$locale = function() {
|
4812
4808
|
return k[this.$L];
|
4813
|
-
},
|
4809
|
+
}, A.locale = function($, D) {
|
4814
4810
|
if (!$)
|
4815
4811
|
return this.$L;
|
4816
4812
|
var R = this.clone(), G = L($, D, !0);
|
4817
4813
|
return G && (R.$L = G), R;
|
4818
|
-
},
|
4814
|
+
}, A.clone = function() {
|
4819
4815
|
return w.w(this.$d, this);
|
4820
|
-
},
|
4816
|
+
}, A.toDate = function() {
|
4821
4817
|
return new Date(this.valueOf());
|
4822
|
-
},
|
4818
|
+
}, A.toJSON = function() {
|
4823
4819
|
return this.isValid() ? this.toISOString() : null;
|
4824
|
-
},
|
4820
|
+
}, A.toISOString = function() {
|
4825
4821
|
return this.$d.toISOString();
|
4826
|
-
},
|
4822
|
+
}, A.toString = function() {
|
4827
4823
|
return this.$d.toUTCString();
|
4828
4824
|
}, M;
|
4829
|
-
}(),
|
4830
|
-
return V.prototype =
|
4831
|
-
|
4832
|
-
return this.$g(
|
4825
|
+
}(), I = U.prototype;
|
4826
|
+
return V.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", c], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
|
4827
|
+
I[M[1]] = function(A) {
|
4828
|
+
return this.$g(A, M[0], M[1]);
|
4833
4829
|
};
|
4834
|
-
}), V.extend = function(M,
|
4835
|
-
return M.$i || (M(
|
4830
|
+
}), V.extend = function(M, A) {
|
4831
|
+
return M.$i || (M(A, U, V), M.$i = !0), V;
|
4836
4832
|
}, V.locale = L, V.isDayjs = F, V.unix = function(M) {
|
4837
4833
|
return V(1e3 * M);
|
4838
4834
|
}, V.en = k[O], V.Ls = k, V.p = {}, V;
|
@@ -4897,8 +4893,8 @@ function filesize(e, {
|
|
4897
4893
|
E[0] = V(T * w) / w, E[0] === k && C < 8 && b === -1 && (E[0] = 1, C++), O = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[u][t ? BITS : BYTES][C];
|
4898
4894
|
}
|
4899
4895
|
if (L && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = c[E[1]] || E[1], o === !0 ? E[0] = E[0].toLocaleString() : o.length > 0 ? E[0] = E[0].toLocaleString(o, s) : i.length > 0 && (E[0] = E[0].toString().replace(PERIOD, i)), r && Number.isInteger(E[0]) === !1 && a > 0) {
|
4900
|
-
const w = i || PERIOD, U = E[0].toString().split(w),
|
4901
|
-
E[0] = `${U[0]}${w}${
|
4896
|
+
const w = i || PERIOD, U = E[0].toString().split(w), I = U[1] || EMPTY, M = I.length, A = a - M;
|
4897
|
+
E[0] = `${U[0]}${w}${I.padEnd(M + A, ZERO)}`;
|
4902
4898
|
}
|
4903
4899
|
return F && (E[1] = m[C] ? m[C] : STRINGS.fullform[u][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
4904
4900
|
value: E[0],
|
@@ -6230,27 +6226,27 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6230
6226
|
function E(L, V) {
|
6231
6227
|
return function() {
|
6232
6228
|
setActivePinia(n);
|
6233
|
-
const w = Array.from(arguments), U = [],
|
6229
|
+
const w = Array.from(arguments), U = [], I = [];
|
6234
6230
|
function M(D) {
|
6235
6231
|
U.push(D);
|
6236
6232
|
}
|
6237
|
-
function
|
6238
|
-
|
6233
|
+
function A(D) {
|
6234
|
+
I.push(D);
|
6239
6235
|
}
|
6240
6236
|
triggerSubscriptions(p, {
|
6241
6237
|
args: w,
|
6242
6238
|
name: L,
|
6243
6239
|
store: k,
|
6244
6240
|
after: M,
|
6245
|
-
onError:
|
6241
|
+
onError: A
|
6246
6242
|
});
|
6247
6243
|
let $;
|
6248
6244
|
try {
|
6249
6245
|
$ = V.apply(this && this.$id === e ? this : k, w);
|
6250
6246
|
} catch (D) {
|
6251
|
-
throw triggerSubscriptions(
|
6247
|
+
throw triggerSubscriptions(I, D), D;
|
6252
6248
|
}
|
6253
|
-
return $ instanceof Promise ? $.then((D) => (triggerSubscriptions(U, D), D)).catch((D) => (triggerSubscriptions(
|
6249
|
+
return $ instanceof Promise ? $.then((D) => (triggerSubscriptions(U, D), D)).catch((D) => (triggerSubscriptions(I, D), Promise.reject(D))) : (triggerSubscriptions(U, $), $);
|
6254
6250
|
};
|
6255
6251
|
}
|
6256
6252
|
const T = /* @__PURE__ */ markRaw({
|
@@ -6265,12 +6261,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6265
6261
|
$patch: v,
|
6266
6262
|
$reset: C,
|
6267
6263
|
$subscribe(L, V = {}) {
|
6268
|
-
const w = addSubscription(g, L, V.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (
|
6264
|
+
const w = addSubscription(g, L, V.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (I) => {
|
6269
6265
|
(V.flush === "sync" ? u : c) && L({
|
6270
6266
|
storeId: e,
|
6271
6267
|
type: MutationType.direct,
|
6272
6268
|
events: m
|
6273
|
-
},
|
6269
|
+
}, I);
|
6274
6270
|
}, assign$1({}, l, V)));
|
6275
6271
|
return w;
|
6276
6272
|
},
|
@@ -6307,8 +6303,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6307
6303
|
k._hotUpdate = markRaw((V) => {
|
6308
6304
|
k._hotUpdating = !0, V._hmrPayload.state.forEach((w) => {
|
6309
6305
|
if (w in k.$state) {
|
6310
|
-
const U = V.$state[w],
|
6311
|
-
typeof U == "object" && isPlainObject(U) && isPlainObject(
|
6306
|
+
const U = V.$state[w], I = k.$state[w];
|
6307
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject(I) ? patchObject(U, I) : V.$state[w] = I;
|
6312
6308
|
}
|
6313
6309
|
set(k, w, toRef(V.$state, w));
|
6314
6310
|
}), Object.keys(k.$state).forEach((w) => {
|
@@ -6321,8 +6317,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6321
6317
|
set(k, w, E(w, U));
|
6322
6318
|
}
|
6323
6319
|
for (const w in V._hmrPayload.getters) {
|
6324
|
-
const U = V._hmrPayload.getters[w],
|
6325
|
-
set(k, w,
|
6320
|
+
const U = V._hmrPayload.getters[w], I = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
|
6321
|
+
set(k, w, I);
|
6326
6322
|
}
|
6327
6323
|
Object.keys(k._hmrPayload.getters).forEach((w) => {
|
6328
6324
|
w in V._hmrPayload.getters || del(k, w);
|
@@ -7027,7 +7023,6 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7027
7023
|
type: Boolean,
|
7028
7024
|
default: !0
|
7029
7025
|
},
|
7030
|
-
kgType: String,
|
7031
7026
|
kgShowTime: {
|
7032
7027
|
type: [Boolean, Object],
|
7033
7028
|
default: void 0
|
@@ -7245,8 +7240,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7245
7240
|
immediate: !0
|
7246
7241
|
});
|
7247
7242
|
async function _() {
|
7248
|
-
var F, L, V, w, U,
|
7249
|
-
const y = (F = g.value) == null ? void 0 : F.cmd, E = (V = (L = g.value) == null ? void 0 : L.cmd_method) != null ? V : "GET", T = (U = (w = g.value) == null ? void 0 : w.val_clm) != null ? U : "", O = (M = (
|
7243
|
+
var F, L, V, w, U, I, M, A, $;
|
7244
|
+
const y = (F = g.value) == null ? void 0 : F.cmd, E = (V = (L = g.value) == null ? void 0 : L.cmd_method) != null ? V : "GET", T = (U = (w = g.value) == null ? void 0 : w.val_clm) != null ? U : "", O = (M = (I = g.value) == null ? void 0 : I.lbl_clm) != null ? M : "";
|
7250
7245
|
if (!y || !T || !O) {
|
7251
7246
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7252
7247
|
frm_id: a.formID,
|
@@ -7259,7 +7254,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7259
7254
|
}
|
7260
7255
|
let k = null;
|
7261
7256
|
try {
|
7262
|
-
k = await ((
|
7257
|
+
k = await ((A = httpClient()) == null ? void 0 : A.request({
|
7263
7258
|
url: y,
|
7264
7259
|
method: E,
|
7265
7260
|
params: m.value,
|
@@ -7668,117 +7663,117 @@ const KgFormItem = defineComponent({
|
|
7668
7663
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_MODEL, computed(() => ({}))), s = inject(DI_FORM_REF, ref(null)), i = computed(() => a.store.isCreating(a.formID)), l = computed(() => a.store.isUpdating(a.formID)), c = computed(() => a.store.isCopying(a.formID)), u = computed(() => a.store.getVarLookup(a.formID, e.kgVarName)), g = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), p = computed(() => a.store.getVarProfileDetail(a.formID, e.kgVarName)), m = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7669
7664
|
rules: b
|
7670
7665
|
} = _useRules(e), _ = computed(() => {
|
7671
|
-
var M,
|
7666
|
+
var M, A, $, D, R;
|
7672
7667
|
if (a.isRetrievingVar.value)
|
7673
7668
|
return !0;
|
7674
|
-
let
|
7669
|
+
let I = !1;
|
7675
7670
|
if (e.kgDisabled !== void 0)
|
7676
|
-
|
7671
|
+
I = e.kgDisabled;
|
7677
7672
|
else
|
7678
7673
|
switch (e.kgContext) {
|
7679
7674
|
case KG_FORM_CONTEXT.SEARCH:
|
7680
|
-
|
7675
|
+
I = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
|
7681
7676
|
break;
|
7682
7677
|
case KG_FORM_CONTEXT.SUBMIT:
|
7683
7678
|
switch (!0) {
|
7684
7679
|
case a.isCreating.value:
|
7685
|
-
|
7680
|
+
I = ((A = m.value) == null ? void 0 : A.crt_ena_flg) === 0;
|
7686
7681
|
break;
|
7687
7682
|
case a.isUpdating.value:
|
7688
|
-
|
7683
|
+
I = (($ = m.value) == null ? void 0 : $.upt_ena_flg) === 0;
|
7689
7684
|
break;
|
7690
7685
|
case a.isCopying.value:
|
7691
|
-
|
7686
|
+
I = ((D = m.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
7692
7687
|
break;
|
7693
7688
|
case a.isDeleting.value:
|
7694
|
-
|
7689
|
+
I = ((R = m.value) == null ? void 0 : R.del_ena_flg) === 0;
|
7695
7690
|
break;
|
7696
7691
|
}
|
7697
7692
|
break;
|
7698
7693
|
}
|
7699
|
-
return
|
7694
|
+
return I;
|
7700
7695
|
}), v = computed(() => {
|
7701
|
-
var M,
|
7702
|
-
let
|
7696
|
+
var M, A, $, D;
|
7697
|
+
let I = " ";
|
7703
7698
|
if (e.kgPlaceholder)
|
7704
|
-
|
7699
|
+
I = e.kgPlaceholder;
|
7705
7700
|
else
|
7706
7701
|
switch (e.kgContext) {
|
7707
7702
|
case KG_FORM_CONTEXT.SEARCH:
|
7708
|
-
|
7703
|
+
I = n.t((A = (M = p.value) == null ? void 0 : M.placeholder) != null ? A : " ");
|
7709
7704
|
break;
|
7710
7705
|
case KG_FORM_CONTEXT.SUBMIT:
|
7711
|
-
|
7706
|
+
I = n.t((D = ($ = m.value) == null ? void 0 : $.placeholder) != null ? D : " ");
|
7712
7707
|
break;
|
7713
7708
|
}
|
7714
|
-
return
|
7709
|
+
return I;
|
7715
7710
|
}), C = computed(() => {
|
7716
|
-
var M,
|
7717
|
-
let
|
7711
|
+
var M, A, $, D, R, G, N, B, W, Y;
|
7712
|
+
let I = 6;
|
7718
7713
|
if (e.kgSpan !== void 0)
|
7719
|
-
|
7714
|
+
I = e.kgSpan;
|
7720
7715
|
else
|
7721
7716
|
switch (e.kgContext) {
|
7722
7717
|
case KG_FORM_CONTEXT.SEARCH:
|
7723
|
-
|
7718
|
+
I = (A = (M = p.value) == null ? void 0 : M.width) != null ? A : 6;
|
7724
7719
|
break;
|
7725
7720
|
case KG_FORM_CONTEXT.SUBMIT:
|
7726
7721
|
switch (!0) {
|
7727
7722
|
case a.isCreating.value:
|
7728
|
-
|
7723
|
+
I = (D = ($ = m.value) == null ? void 0 : $.crt_width) != null ? D : 6;
|
7729
7724
|
break;
|
7730
7725
|
case a.isUpdating.value:
|
7731
|
-
|
7726
|
+
I = (G = (R = m.value) == null ? void 0 : R.upt_width) != null ? G : 6;
|
7732
7727
|
break;
|
7733
7728
|
case a.isCopying.value:
|
7734
|
-
|
7729
|
+
I = (B = (N = m.value) == null ? void 0 : N.cpy_width) != null ? B : 6;
|
7735
7730
|
break;
|
7736
7731
|
case a.isDeleting.value:
|
7737
|
-
|
7732
|
+
I = (Y = (W = m.value) == null ? void 0 : W.del_width) != null ? Y : 6;
|
7738
7733
|
break;
|
7739
7734
|
}
|
7740
7735
|
}
|
7741
|
-
return Math.min(24, Math.max(1,
|
7736
|
+
return Math.min(24, Math.max(1, I));
|
7742
7737
|
}), y = computed(() => {
|
7743
7738
|
var $, D;
|
7744
|
-
const
|
7745
|
-
if (
|
7739
|
+
const I = get(F.value, "$el.parentElement");
|
7740
|
+
if (I && !(($ = I.classList) != null && $.contains("ant-row")))
|
7746
7741
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7747
7742
|
let M = {};
|
7748
|
-
const
|
7749
|
-
return Number.isNaN(
|
7750
|
-
paddingLeft: `${
|
7751
|
-
paddingRight: `${
|
7743
|
+
const A = Math.abs(Number.parseInt((D = get(F.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
7744
|
+
return Number.isNaN(A) || (M = {
|
7745
|
+
paddingLeft: `${A}px !important`,
|
7746
|
+
paddingRight: `${A}px !important`
|
7752
7747
|
}), M;
|
7753
7748
|
}), E = computed(() => {
|
7754
|
-
var M,
|
7755
|
-
let
|
7756
|
-
switch (u.value && (
|
7749
|
+
var M, A, $, D;
|
7750
|
+
let I = "kg-form-item";
|
7751
|
+
switch (u.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
7757
7752
|
case KG_FORM_CONTEXT.SEARCH:
|
7758
7753
|
switch (!0) {
|
7759
7754
|
case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
|
7760
|
-
|
7755
|
+
I += " kg-form-item--invisible";
|
7761
7756
|
break;
|
7762
7757
|
}
|
7763
7758
|
break;
|
7764
7759
|
case KG_FORM_CONTEXT.SUBMIT:
|
7765
7760
|
switch (!0) {
|
7766
|
-
case (i.value && ((
|
7761
|
+
case (i.value && ((A = m.value) == null ? void 0 : A.crt_vis_flg) === 0):
|
7767
7762
|
case (l.value && (($ = m.value) == null ? void 0 : $.upt_vis_flg) === 0):
|
7768
7763
|
case (c.value && ((D = m.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
7769
|
-
|
7764
|
+
I += " kg-form-item--invisible";
|
7770
7765
|
break;
|
7771
7766
|
}
|
7772
7767
|
break;
|
7773
7768
|
}
|
7774
|
-
return
|
7769
|
+
return I;
|
7775
7770
|
}), T = computed(() => {
|
7776
7771
|
var M;
|
7777
|
-
const
|
7772
|
+
const I = {
|
7778
7773
|
...e,
|
7779
7774
|
value: (M = o.value) == null ? void 0 : M[e.kgVarName],
|
7780
|
-
"onUpdate:value": (
|
7781
|
-
o.value && (o.value[e.kgVarName] =
|
7775
|
+
"onUpdate:value": (A) => {
|
7776
|
+
o.value && (o.value[e.kgVarName] = A);
|
7782
7777
|
},
|
7783
7778
|
kgPlaceholder: v.value,
|
7784
7779
|
kgDisabled: _.value,
|
@@ -7792,49 +7787,57 @@ const KgFormItem = defineComponent({
|
|
7792
7787
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7793
7788
|
break;
|
7794
7789
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7795
|
-
|
7790
|
+
I.kgShowTime = !1;
|
7796
7791
|
break;
|
7797
7792
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7798
|
-
|
7793
|
+
I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7799
7794
|
break;
|
7800
7795
|
}
|
7801
|
-
return
|
7796
|
+
return I;
|
7802
7797
|
}), O = computed(() => {
|
7803
|
-
var A;
|
7804
|
-
return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
|
7805
|
-
}), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
|
7806
|
-
function L(A, M) {
|
7807
7798
|
var I;
|
7808
|
-
|
7799
|
+
return (I = g.value) == null ? void 0 : I.ctrl_typ;
|
7800
|
+
}), k = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), F = ref(null);
|
7801
|
+
function L(I, M) {
|
7802
|
+
var A;
|
7803
|
+
o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", M), (A = s.value) == null || A.validate([e.kgVarName]);
|
7809
7804
|
}
|
7810
7805
|
function V() {
|
7811
|
-
if (t.control)
|
7812
|
-
|
7806
|
+
if (t.control) {
|
7807
|
+
const I = {
|
7813
7808
|
varName: e.kgVarName,
|
7814
7809
|
props: T,
|
7815
7810
|
model: o,
|
7816
7811
|
varConfig: g,
|
7817
7812
|
varProfileDetail: p,
|
7818
7813
|
varSubmitField: m
|
7819
|
-
}
|
7820
|
-
|
7821
|
-
|
7822
|
-
|
7823
|
-
|
7824
|
-
|
7825
|
-
|
7826
|
-
|
7827
|
-
|
7828
|
-
|
7829
|
-
|
7830
|
-
|
7831
|
-
|
7832
|
-
|
7833
|
-
|
7834
|
-
|
7835
|
-
|
7836
|
-
|
7837
|
-
|
7814
|
+
};
|
7815
|
+
return t.control(I);
|
7816
|
+
} else
|
7817
|
+
switch (O.value) {
|
7818
|
+
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7819
|
+
return createVNode(KgFormItemInputNumber, T.value, null);
|
7820
|
+
case KG_FORM_ITEM_TYPE.SELECT:
|
7821
|
+
return createVNode(KgFormItemSelect, T.value, null);
|
7822
|
+
case KG_FORM_ITEM_TYPE.SWITCH:
|
7823
|
+
switch (e.kgContext) {
|
7824
|
+
case KG_FORM_CONTEXT.SEARCH:
|
7825
|
+
return createVNode(KgFormItemSelect, T.value, null);
|
7826
|
+
case KG_FORM_CONTEXT.SUBMIT:
|
7827
|
+
default:
|
7828
|
+
return createVNode(KgFormItemSwitch, T.value, null);
|
7829
|
+
}
|
7830
|
+
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
7831
|
+
return createVNode(KgFormItemCheckbox, T.value, null);
|
7832
|
+
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
7833
|
+
return createVNode(KgFormItemCheckboxGroup, T.value, null);
|
7834
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7835
|
+
return createVNode(KgFormItemDate, T.value, null);
|
7836
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7837
|
+
return createVNode(KgFormItemDate, T.value, null);
|
7838
|
+
default:
|
7839
|
+
return createVNode(KgFormItemInput, T.value, null);
|
7840
|
+
}
|
7838
7841
|
}
|
7839
7842
|
function w() {
|
7840
7843
|
return e.kgShowLabel ? createVNode("span", {
|
@@ -7842,8 +7845,8 @@ const KgFormItem = defineComponent({
|
|
7842
7845
|
}, [a.t(e.kgVarName).value]) : null;
|
7843
7846
|
}
|
7844
7847
|
function U() {
|
7845
|
-
var
|
7846
|
-
return !u.value || !((
|
7848
|
+
var I;
|
7849
|
+
return !u.value || !((I = u.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7847
7850
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7848
7851
|
kgDisabled: _.value,
|
7849
7852
|
onKgOk: L,
|
@@ -7852,12 +7855,12 @@ const KgFormItem = defineComponent({
|
|
7852
7855
|
});
|
7853
7856
|
}
|
7854
7857
|
return () => {
|
7855
|
-
var
|
7858
|
+
var I, M;
|
7856
7859
|
return createVNode(Col, {
|
7857
7860
|
ref: F,
|
7858
7861
|
"kg-frm-id": a.formID,
|
7859
7862
|
"kg-var-nam": e.kgVarName,
|
7860
|
-
"kg-lkp-id": (
|
7863
|
+
"kg-lkp-id": (I = u.value) == null ? void 0 : I.lkp_id,
|
7861
7864
|
"kg-lkp-ret-fld": (M = u.value) == null ? void 0 : M.ret_fld,
|
7862
7865
|
span: C.value,
|
7863
7866
|
class: E.value,
|
@@ -9195,11 +9198,11 @@ function useKgVar(e, t, r = 0) {
|
|
9195
9198
|
i.leave(s);
|
9196
9199
|
}));
|
9197
9200
|
const l = (U) => computed(() => {
|
9198
|
-
var
|
9199
|
-
return (
|
9201
|
+
var I, M, A;
|
9202
|
+
return (A = (M = (I = i.getVarCatalog(s, U)) == null ? void 0 : I.var_text) != null ? M : U) != null ? A : "";
|
9200
9203
|
}), c = computed(() => i.isRetrievingVar(s)), u = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), m = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), _ = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), E = computed(() => i.getCurrentVarProfileMaster(s)), T = computed(() => i.getCurrentVarProfileMasterID(s)), O = computed(() => {
|
9201
|
-
var U,
|
9202
|
-
return (
|
9204
|
+
var U, I;
|
9205
|
+
return (I = (U = E.value) == null ? void 0 : U.varProfileDetails) != null ? I : null;
|
9203
9206
|
}), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), V = computed(() => i.getSystemVarGridDetails(s)), w = computed(() => i.getCurrentVarGridDetails(s));
|
9204
9207
|
return {
|
9205
9208
|
formID: s,
|
@@ -9655,7 +9658,7 @@ const getProps$p = () => ({
|
|
9655
9658
|
}) {
|
9656
9659
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9657
9660
|
_useFormModel();
|
9658
|
-
const c = computed(() => a.store.isCreating(a.formID)), u = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 &&
|
9661
|
+
const c = computed(() => a.store.isCreating(a.formID)), u = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), m = computed(() => p.value && U.value.length === 0 && I.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), _ = computed(() => a.store.getVarButtonUpdate(a.formID)), v = computed(() => a.store.getVarButtonCopy(a.formID)), C = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), E = computed(() => a.store.getVarSubmitConfig(a.formID)), T = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), V = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), w = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), U = computed(() => {
|
9659
9662
|
var K, z, Q;
|
9660
9663
|
switch (!0) {
|
9661
9664
|
case c.value:
|
@@ -9668,7 +9671,7 @@ const getProps$p = () => ({
|
|
9668
9671
|
return [];
|
9669
9672
|
}
|
9670
9673
|
return [];
|
9671
|
-
}),
|
9674
|
+
}), I = computed(() => {
|
9672
9675
|
var K, z, Q, Z;
|
9673
9676
|
switch (!0) {
|
9674
9677
|
case c.value:
|
@@ -9681,7 +9684,7 @@ const getProps$p = () => ({
|
|
9681
9684
|
return (Z = w.value) != null ? Z : [];
|
9682
9685
|
}
|
9683
9686
|
return [];
|
9684
|
-
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)),
|
9687
|
+
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), A = computed(() => M.value || y.value), $ = computed(() => y.value), D = ref({
|
9685
9688
|
kgWidth: 0
|
9686
9689
|
}), R = computed(() => {
|
9687
9690
|
var K;
|
@@ -9694,7 +9697,7 @@ const getProps$p = () => ({
|
|
9694
9697
|
return m.value ? 398 : (z = (K = E.value) == null ? void 0 : K.max_width) != null ? z : DEFAULT_MAX_WIDTH;
|
9695
9698
|
}), B = computed(() => m.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
|
9696
9699
|
_useResizeObserver$1(X);
|
9697
|
-
const ae = _useTitle(), te = computed(() => m.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), ce = computed(() => te.value === 0 ? !1 : !!(c.value || u.value || g.value || p.value)),
|
9700
|
+
const ae = _useTitle(), te = computed(() => m.value ? 400 : D.value.kgWidth && D.value.kgWidth > 0 ? D.value.kgWidth + 2 : 0), ce = computed(() => te.value === 0 ? !1 : !!(c.value || u.value || g.value || p.value)), fe = computed(() => {
|
9698
9701
|
var z, Q;
|
9699
9702
|
let K = "kg-submit";
|
9700
9703
|
return oe.isFullscreen && (K += " kg-submit--fullscreen"), ((z = E.value) == null ? void 0 : z.responsive_flg) !== 0 && (K += " kg-submit--responsive"), (((Q = E.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || p.value) && (K += " kg-submit--modal"), e.kgClass && (K += ` ${e.kgClass}`), K;
|
@@ -9794,24 +9797,24 @@ const getProps$p = () => ({
|
|
9794
9797
|
return;
|
9795
9798
|
switch (!0) {
|
9796
9799
|
case c.value:
|
9797
|
-
await
|
9800
|
+
await ge();
|
9798
9801
|
break;
|
9799
9802
|
case u.value:
|
9800
|
-
await
|
9803
|
+
await pe();
|
9801
9804
|
break;
|
9802
9805
|
case g.value:
|
9803
|
-
await
|
9806
|
+
await ye();
|
9804
9807
|
break;
|
9805
9808
|
case p.value:
|
9806
|
-
await
|
9809
|
+
await Se();
|
9807
9810
|
break;
|
9808
9811
|
}
|
9809
9812
|
} catch (Q) {
|
9810
9813
|
KgUtil.throwIfNotFormError(Q);
|
9811
9814
|
}
|
9812
9815
|
}
|
9813
|
-
async function
|
9814
|
-
var z, Q, Z, ne, se, ie, le;
|
9816
|
+
async function ge() {
|
9817
|
+
var z, Q, Z, ne, se, ie, le, ue;
|
9815
9818
|
const K = (z = b.value) == null ? void 0 : z.cmd;
|
9816
9819
|
if (!K) {
|
9817
9820
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9821,26 +9824,26 @@ const getProps$p = () => ({
|
|
9821
9824
|
}
|
9822
9825
|
a.store.setIsCreatingRequesting(a.formID, !0);
|
9823
9826
|
try {
|
9824
|
-
const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((Z = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? Z : ""), a.formID, r),
|
9827
|
+
const ee = KgUtil.parseParams(KgVarUtil.parseCommandParameter((Z = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? Z : ""), a.formID, r), de = KgUtil.parseParams(toRaw(s.model.value), a.formID, r);
|
9825
9828
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
9826
9829
|
params: ee,
|
9827
|
-
data:
|
9830
|
+
data: de
|
9828
9831
|
}))
|
9829
9832
|
return;
|
9830
9833
|
await httpClient().request({
|
9831
9834
|
method: (se = (ne = b.value) == null ? void 0 : ne.cmd_method) != null ? se : "POST",
|
9832
9835
|
url: K,
|
9833
9836
|
params: ee,
|
9834
|
-
data:
|
9835
|
-
}), message.success(ae.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (
|
9837
|
+
data: de
|
9838
|
+
}), ((ie = b.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(ae.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !0);
|
9836
9839
|
} catch (ee) {
|
9837
9840
|
console.error(ee);
|
9838
9841
|
} finally {
|
9839
9842
|
a.store.setIsCreatingRequesting(a.formID, !1);
|
9840
9843
|
}
|
9841
9844
|
}
|
9842
|
-
async function
|
9843
|
-
var z, Q, Z, ne, se, ie, le;
|
9845
|
+
async function pe() {
|
9846
|
+
var z, Q, Z, ne, se, ie, le, ue;
|
9844
9847
|
const K = (z = _.value) == null ? void 0 : z.cmd;
|
9845
9848
|
if (!K) {
|
9846
9849
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9850,26 +9853,26 @@ const getProps$p = () => ({
|
|
9850
9853
|
}
|
9851
9854
|
try {
|
9852
9855
|
a.store.setIsUpdatingRequesting(a.formID, !0);
|
9853
|
-
const ee = KgVarUtil.parseCommandParameter((Z = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? Z : ""),
|
9856
|
+
const ee = KgVarUtil.parseCommandParameter((Z = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? Z : ""), de = toRaw(s.model.value);
|
9854
9857
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
9855
9858
|
params: ee,
|
9856
|
-
data:
|
9859
|
+
data: de
|
9857
9860
|
}))
|
9858
9861
|
return;
|
9859
9862
|
await httpClient().request({
|
9860
9863
|
method: (se = (ne = _.value) == null ? void 0 : ne.cmd_method) != null ? se : "POST",
|
9861
9864
|
url: K,
|
9862
9865
|
params: ee,
|
9863
|
-
data:
|
9864
|
-
}), message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (
|
9866
|
+
data: de
|
9867
|
+
}), ((ie = _.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le);
|
9865
9868
|
} catch (ee) {
|
9866
9869
|
console.error(ee);
|
9867
9870
|
} finally {
|
9868
9871
|
a.store.setIsUpdatingRequesting(a.formID, !1);
|
9869
9872
|
}
|
9870
9873
|
}
|
9871
|
-
async function
|
9872
|
-
var z, Q, Z, ne, se, ie, le;
|
9874
|
+
async function ye() {
|
9875
|
+
var z, Q, Z, ne, se, ie, le, ue;
|
9873
9876
|
const K = (z = v.value) == null ? void 0 : z.cmd;
|
9874
9877
|
if (!K) {
|
9875
9878
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9879,26 +9882,26 @@ const getProps$p = () => ({
|
|
9879
9882
|
}
|
9880
9883
|
try {
|
9881
9884
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
9882
|
-
const ee = KgVarUtil.parseCommandParameter((Z = (Q = v.value) == null ? void 0 : Q.cmd_prm) != null ? Z : ""),
|
9883
|
-
if (delete
|
9885
|
+
const ee = KgVarUtil.parseCommandParameter((Z = (Q = v.value) == null ? void 0 : Q.cmd_prm) != null ? Z : ""), de = toRaw(s.model.value);
|
9886
|
+
if (delete de.id, await s.store.emit(a.formID, "beforeRequest", {
|
9884
9887
|
params: ee,
|
9885
|
-
data:
|
9888
|
+
data: de
|
9886
9889
|
}))
|
9887
9890
|
return;
|
9888
9891
|
await httpClient().request({
|
9889
9892
|
method: (se = (ne = v.value) == null ? void 0 : ne.cmd_method) != null ? se : "POST",
|
9890
9893
|
url: K,
|
9891
9894
|
params: ee,
|
9892
|
-
data:
|
9893
|
-
}), message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (
|
9895
|
+
data: de
|
9896
|
+
}), ((ie = v.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !0);
|
9894
9897
|
} catch (ee) {
|
9895
9898
|
console.error(ee);
|
9896
9899
|
} finally {
|
9897
9900
|
a.store.setIsCopyingRequesting(a.formID, !1);
|
9898
9901
|
}
|
9899
9902
|
}
|
9900
|
-
async function
|
9901
|
-
var z, Q, Z, ne, se, ie, le;
|
9903
|
+
async function Se() {
|
9904
|
+
var z, Q, Z, ne, se, ie, le, ue;
|
9902
9905
|
const K = (z = C.value) == null ? void 0 : z.cmd;
|
9903
9906
|
if (!K) {
|
9904
9907
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -9909,9 +9912,9 @@ const getProps$p = () => ({
|
|
9909
9912
|
try {
|
9910
9913
|
a.store.setIsDeletingRequesting(a.formID, !0);
|
9911
9914
|
const ee = {
|
9912
|
-
ids: (Z = (Q = o.selectedRows.value) == null ? void 0 : Q.map((
|
9913
|
-
var
|
9914
|
-
return (
|
9915
|
+
ids: (Z = (Q = o.selectedRows.value) == null ? void 0 : Q.map((me) => {
|
9916
|
+
var _e, ve, be;
|
9917
|
+
return (be = me[(ve = (_e = C.value) == null ? void 0 : _e.del_param_clm) != null ? ve : "id"]) != null ? be : "";
|
9915
9918
|
})) != null ? Z : []
|
9916
9919
|
};
|
9917
9920
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
@@ -9925,14 +9928,14 @@ const getProps$p = () => ({
|
|
9925
9928
|
params: ee
|
9926
9929
|
}, {
|
9927
9930
|
joinParamsToUrl: !0
|
9928
|
-
}), message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (
|
9931
|
+
}), ((ie = C.value) == null ? void 0 : ie.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (ue = (le = i.search).value) == null || ue.call(le, !0);
|
9929
9932
|
} catch (ee) {
|
9930
9933
|
console.error(ee);
|
9931
9934
|
} finally {
|
9932
9935
|
a.store.setIsDeletingRequesting(a.formID, !1);
|
9933
9936
|
}
|
9934
9937
|
}
|
9935
|
-
function
|
9938
|
+
function he(K) {
|
9936
9939
|
var Q, Z;
|
9937
9940
|
const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9938
9941
|
return isFunction$2(z) ? createVNode(KgForm.Item, {
|
@@ -9946,15 +9949,15 @@ const getProps$p = () => ({
|
|
9946
9949
|
props: se,
|
9947
9950
|
model: ie,
|
9948
9951
|
varConfig: le,
|
9949
|
-
varProfileDetail:
|
9950
|
-
varSubmitField:
|
9952
|
+
varProfileDetail: ue,
|
9953
|
+
varSubmitField: ee
|
9951
9954
|
}) => z({
|
9952
9955
|
varName: ne,
|
9953
9956
|
props: se,
|
9954
9957
|
model: ie,
|
9955
9958
|
varConfig: le,
|
9956
|
-
varProfileDetail:
|
9957
|
-
varSubmitField:
|
9959
|
+
varProfileDetail: ue,
|
9960
|
+
varSubmitField: ee
|
9958
9961
|
})
|
9959
9962
|
}) : createVNode(KgForm.Item, {
|
9960
9963
|
kgVarName: K.var_nam,
|
@@ -9963,7 +9966,7 @@ const getProps$p = () => ({
|
|
9963
9966
|
onKgSubmit: J
|
9964
9967
|
}, null);
|
9965
9968
|
}
|
9966
|
-
function
|
9969
|
+
function Ce() {
|
9967
9970
|
var Q;
|
9968
9971
|
let K, z;
|
9969
9972
|
return createVNode(KgResizable, {
|
@@ -9990,11 +9993,11 @@ const getProps$p = () => ({
|
|
9990
9993
|
ref: X
|
9991
9994
|
}, [U.value.length > 0 && createVNode(Row, {
|
9992
9995
|
gutter: 12
|
9993
|
-
}, _isSlot$7(K = U.value.map(
|
9996
|
+
}, _isSlot$7(K = U.value.map(he)) ? K : {
|
9994
9997
|
default: () => [K]
|
9995
|
-
}), U.value.length > 0 &&
|
9998
|
+
}), U.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
|
9996
9999
|
gutter: 12
|
9997
|
-
}, _isSlot$7(z =
|
10000
|
+
}, _isSlot$7(z = I.value.map(he)) ? z : {
|
9998
10001
|
default: () => [z]
|
9999
10002
|
}), m.value && createVNode("div", {
|
10000
10003
|
style: "text-align: center; padding: 6px 0 12px;"
|
@@ -10004,12 +10007,12 @@ const getProps$p = () => ({
|
|
10004
10007
|
})]
|
10005
10008
|
});
|
10006
10009
|
}
|
10007
|
-
function
|
10010
|
+
function Te() {
|
10008
10011
|
let K, z;
|
10009
10012
|
return createVNode("div", null, [createVNode(Button, {
|
10010
10013
|
type: "primary",
|
10011
|
-
ghost: !
|
10012
|
-
disabled:
|
10014
|
+
ghost: !A.value,
|
10015
|
+
disabled: A.value,
|
10013
10016
|
onClick: re
|
10014
10017
|
}, _isSlot$7(K = n.t("kg.cancel")) ? K : {
|
10015
10018
|
default: () => [K]
|
@@ -10023,12 +10026,12 @@ const getProps$p = () => ({
|
|
10023
10026
|
default: () => [z]
|
10024
10027
|
})]);
|
10025
10028
|
}
|
10026
|
-
function
|
10029
|
+
function Ee() {
|
10027
10030
|
return createVNode("div", {
|
10028
10031
|
title: ae.title.value
|
10029
10032
|
}, [ae.title.value]);
|
10030
10033
|
}
|
10031
|
-
function
|
10034
|
+
function ke() {
|
10032
10035
|
return createVNode(KgSubmitHeader, {
|
10033
10036
|
isFullscreen: oe.isFullscreen,
|
10034
10037
|
"onUpdate:isFullscreen": (K) => oe.isFullscreen = K,
|
@@ -10047,13 +10050,13 @@ const getProps$p = () => ({
|
|
10047
10050
|
keyboard: !1,
|
10048
10051
|
destroyOnClose: !0,
|
10049
10052
|
width: te.value,
|
10050
|
-
class:
|
10053
|
+
class: fe.value,
|
10051
10054
|
"kg-frm-id": a.formID
|
10052
10055
|
}, {
|
10053
|
-
title:
|
10054
|
-
extra:
|
10055
|
-
default:
|
10056
|
-
footer:
|
10056
|
+
title: Ee,
|
10057
|
+
extra: ke,
|
10058
|
+
default: Ce,
|
10059
|
+
footer: Te
|
10057
10060
|
});
|
10058
10061
|
}
|
10059
10062
|
}), KgVar$1 = "", getProps$o = () => ({
|
@@ -10910,10 +10913,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10910
10913
|
var P, x;
|
10911
10914
|
return (x = (P = v.value) == null ? void 0 : P.cmd) != null ? x : null;
|
10912
10915
|
}), V = computed(() => {
|
10913
|
-
var x, H, q, re, J,
|
10916
|
+
var x, H, q, re, J, ge, pe;
|
10914
10917
|
let P = {
|
10915
|
-
pageNo:
|
10916
|
-
pageSize:
|
10918
|
+
pageNo: A.pageIndex,
|
10919
|
+
pageSize: A.pageSize,
|
10917
10920
|
...$,
|
10918
10921
|
...(H = (x = i.model) == null ? void 0 : x.value) != null ? H : {}
|
10919
10922
|
};
|
@@ -10922,8 +10925,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10922
10925
|
...KgVarUtil.parseCommandParameter((re = (q = v.value) == null ? void 0 : q.cmd_prm) != null ? re : "")
|
10923
10926
|
}), (J = s.varGridConfig.value) != null && J.cmd_prm && (P = {
|
10924
10927
|
...P,
|
10925
|
-
...KgVarUtil.parseCommandParameter((
|
10926
|
-
}), ((
|
10928
|
+
...KgVarUtil.parseCommandParameter((ge = s.varGridConfig.value.cmd_prm) != null ? ge : "")
|
10929
|
+
}), ((pe = s.varGridConfig.value) == null ? void 0 : pe.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
|
10927
10930
|
}), w = computed(() => {
|
10928
10931
|
var P;
|
10929
10932
|
if (((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1)
|
@@ -10939,7 +10942,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10939
10942
|
}), U = computed(() => {
|
10940
10943
|
let P = "kg-table";
|
10941
10944
|
return !E.value && !T.value && (P += " kg-table--no-bottom"), P;
|
10942
|
-
}),
|
10945
|
+
}), I = ref([]), M = ref([]), A = reactive({
|
10943
10946
|
pageIndex: 1,
|
10944
10947
|
pageSize: 10,
|
10945
10948
|
total: 0
|
@@ -10947,10 +10950,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10947
10950
|
column: void 0,
|
10948
10951
|
order: void 0
|
10949
10952
|
}), D = watch(F, (P) => {
|
10950
|
-
P && (setTimeout(() => D()),
|
10953
|
+
P && (setTimeout(() => D()), A.pageSize = P), u.value = !0;
|
10951
10954
|
});
|
10952
10955
|
watch(k, (P) => {
|
10953
|
-
P.length > 0 && !P.includes(
|
10956
|
+
P.length > 0 && !P.includes(A.pageSize) && (A.pageSize = F.value);
|
10954
10957
|
}), watch([L, y, i.isReady], ([P, x, H]) => {
|
10955
10958
|
P && x && H && !c.store.getIsRetrieved(s.formID) && G(!0);
|
10956
10959
|
}, {
|
@@ -10968,7 +10971,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10968
10971
|
case 1:
|
10969
10972
|
M.value = [x[O.value]], c.store.setSelectedRows(s.formID, M.value.map((H) => {
|
10970
10973
|
var q;
|
10971
|
-
return (q =
|
10974
|
+
return (q = I.value) == null ? void 0 : q.find((re) => re[O.value] === H);
|
10972
10975
|
}).filter((H) => !!H));
|
10973
10976
|
break;
|
10974
10977
|
case 2:
|
@@ -10991,7 +10994,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10991
10994
|
});
|
10992
10995
|
return;
|
10993
10996
|
}
|
10994
|
-
P && (
|
10997
|
+
P && (A.pageIndex = 1), c.store.setIsRetrieving(s.formID, !0);
|
10995
10998
|
try {
|
10996
10999
|
const J = await httpClient().request({
|
10997
11000
|
method: "GET",
|
@@ -11002,18 +11005,18 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11002
11005
|
});
|
11003
11006
|
switch (!0) {
|
11004
11007
|
case !J:
|
11005
|
-
|
11008
|
+
I.value = [], A.total = 0;
|
11006
11009
|
break;
|
11007
11010
|
case isArrayLike(J):
|
11008
|
-
|
11011
|
+
I.value = J, A.total = J.length;
|
11009
11012
|
break;
|
11010
11013
|
case ("total" in J && "records" in J):
|
11011
|
-
|
11014
|
+
I.value = (q = J.records) != null ? q : [], A.total = (re = J.total) != null ? re : 0;
|
11012
11015
|
break;
|
11013
11016
|
}
|
11014
11017
|
c.store.emit(s.formID, "retrieve", {
|
11015
11018
|
page: J,
|
11016
|
-
datas:
|
11019
|
+
datas: I
|
11017
11020
|
}), R(), g.value = [], await nextTick(), c.store.setIsRetrieved(s.formID, !0);
|
11018
11021
|
} catch (J) {
|
11019
11022
|
throw J;
|
@@ -11025,7 +11028,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11025
11028
|
function N(P) {
|
11026
11029
|
M.value = P, c.store.setSelectedRows(s.formID, M.value.map((x) => {
|
11027
11030
|
var H;
|
11028
|
-
return (H =
|
11031
|
+
return (H = I.value) == null ? void 0 : H.find((q) => q[O.value] === x);
|
11029
11032
|
}).filter((x) => !!x));
|
11030
11033
|
}
|
11031
11034
|
function B(P) {
|
@@ -11046,7 +11049,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11046
11049
|
}
|
11047
11050
|
c.store.setSelectedRows(s.formID, M.value.map((q) => {
|
11048
11051
|
var re;
|
11049
|
-
return (re =
|
11052
|
+
return (re = I.value) == null ? void 0 : re.find((J) => J[O.value] === q);
|
11050
11053
|
}).filter((q) => !!q));
|
11051
11054
|
}
|
11052
11055
|
function W(P, x) {
|
@@ -11077,12 +11080,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11077
11080
|
}
|
11078
11081
|
}
|
11079
11082
|
function ae(P, x) {
|
11080
|
-
x !==
|
11083
|
+
x !== A.pageSize ? (A.pageIndex = 1, A.pageSize = x) : A.pageIndex = P, G();
|
11081
11084
|
}
|
11082
11085
|
function te(P) {
|
11083
11086
|
M.value = [P[O.value]], c.store.setSelectedRows(s.formID, M.value.map((x) => {
|
11084
11087
|
var H;
|
11085
|
-
return (H =
|
11088
|
+
return (H = I.value) == null ? void 0 : H.find((q) => q[O.value] === x);
|
11086
11089
|
}).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11087
11090
|
}
|
11088
11091
|
function ce({
|
@@ -11096,7 +11099,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11096
11099
|
return createVNode("pre", null, [P]);
|
11097
11100
|
}
|
11098
11101
|
}
|
11099
|
-
function
|
11102
|
+
function fe({
|
11100
11103
|
column: P,
|
11101
11104
|
index: x,
|
11102
11105
|
record: H,
|
@@ -11112,7 +11115,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11112
11115
|
value: q,
|
11113
11116
|
renderIndex: x
|
11114
11117
|
}) : J = q;
|
11115
|
-
const
|
11118
|
+
const ge = createVNode(KgTableCell, {
|
11116
11119
|
kgRow: H,
|
11117
11120
|
kgValue: J,
|
11118
11121
|
kgVarName: P.dataIndex,
|
@@ -11123,8 +11126,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11123
11126
|
record: H,
|
11124
11127
|
index: x,
|
11125
11128
|
column: P,
|
11126
|
-
defaultRender:
|
11127
|
-
}) :
|
11129
|
+
defaultRender: ge
|
11130
|
+
}) : ge;
|
11128
11131
|
}
|
11129
11132
|
function oe() {
|
11130
11133
|
return !y.value && !c.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
@@ -11145,7 +11148,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11145
11148
|
pagination: !1,
|
11146
11149
|
showSorterTooltip: !1,
|
11147
11150
|
columns: p.value,
|
11148
|
-
dataSource:
|
11151
|
+
dataSource: I.value,
|
11149
11152
|
loading: b.value,
|
11150
11153
|
rowKey: O.value,
|
11151
11154
|
rowSelection: w.value,
|
@@ -11159,7 +11162,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11159
11162
|
onExpand: X
|
11160
11163
|
}, {
|
11161
11164
|
headerCell: ce,
|
11162
|
-
bodyCell:
|
11165
|
+
bodyCell: fe,
|
11163
11166
|
emptyText: oe,
|
11164
11167
|
expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
|
11165
11168
|
}), (E.value || T.value) && createVNode("div", {
|
@@ -11168,7 +11171,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11168
11171
|
class: "left"
|
11169
11172
|
}, [E.value && createVNode(KgTableInfo, {
|
11170
11173
|
kgShowClearCheck: M.value.length > 0,
|
11171
|
-
kgShowClearTable:
|
11174
|
+
kgShowClearTable: A.total > 0,
|
11172
11175
|
kgShowLocate: M.value.length === 1,
|
11173
11176
|
kgTotal: M.value.length,
|
11174
11177
|
kgDisabled: b.value
|
@@ -11176,14 +11179,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11176
11179
|
class: "right"
|
11177
11180
|
}, [T.value && createVNode(Pagination, {
|
11178
11181
|
size: "default",
|
11179
|
-
current:
|
11180
|
-
pageSize:
|
11182
|
+
current: A.pageIndex,
|
11183
|
+
pageSize: A.pageSize,
|
11181
11184
|
pageSizeOptions: k.value.map((x) => String(x)),
|
11182
|
-
total:
|
11185
|
+
total: A.total,
|
11183
11186
|
showSizeChanger: !0,
|
11184
11187
|
showQuickJumper: !1,
|
11185
11188
|
hideOnSinglePage: !1,
|
11186
|
-
disabled: b.value ||
|
11189
|
+
disabled: b.value || A.total === 0,
|
11187
11190
|
locale: {
|
11188
11191
|
page: ""
|
11189
11192
|
},
|
@@ -12324,7 +12327,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12324
12327
|
});
|
12325
12328
|
l.value = l.value.map((V) => {
|
12326
12329
|
var U;
|
12327
|
-
const w = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((
|
12330
|
+
const w = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((I) => I.var_nam === V.var_nam);
|
12328
12331
|
return w ? {
|
12329
12332
|
...V,
|
12330
12333
|
...w,
|
@@ -12641,7 +12644,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12641
12644
|
});
|
12642
12645
|
}
|
12643
12646
|
a.store.setSearchFn(n.formID, U);
|
12644
|
-
function
|
12647
|
+
function I() {
|
12645
12648
|
var N;
|
12646
12649
|
(N = _.value) == null || N.resetFields(), F.value ? _.value && _.value.validate().then(() => {
|
12647
12650
|
a.store.emit(n.formID, "reset");
|
@@ -12651,11 +12654,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12651
12654
|
});
|
12652
12655
|
}) : a.store.emit(n.formID, "reset");
|
12653
12656
|
}
|
12654
|
-
a.store.setResetFn(n.formID,
|
12657
|
+
a.store.setResetFn(n.formID, I);
|
12655
12658
|
function M() {
|
12656
12659
|
return U(!0), Promise.resolve(!0);
|
12657
12660
|
}
|
12658
|
-
function
|
12661
|
+
function A() {
|
12659
12662
|
var N;
|
12660
12663
|
return createVNode("div", {
|
12661
12664
|
class: "title",
|
@@ -12704,7 +12707,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12704
12707
|
type: "primary",
|
12705
12708
|
ghost: !p.value,
|
12706
12709
|
disabled: p.value,
|
12707
|
-
onClick:
|
12710
|
+
onClick: I,
|
12708
12711
|
class: "kg-search-btn-reset"
|
12709
12712
|
}, {
|
12710
12713
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
@@ -12769,7 +12772,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12769
12772
|
}, [createVNode(Spin, {
|
12770
12773
|
spinning: L.value
|
12771
12774
|
}, {
|
12772
|
-
default: () => [
|
12775
|
+
default: () => [A(), createVNode("div", {
|
12773
12776
|
class: "ant-collapse-extra"
|
12774
12777
|
}, [D()])]
|
12775
12778
|
})])]
|
@@ -13248,23 +13251,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13248
13251
|
columnWidth: 32,
|
13249
13252
|
hideSelectAll: !0,
|
13250
13253
|
selectedRowKeys: g,
|
13251
|
-
onSelect: (
|
13254
|
+
onSelect: (I) => F(I)
|
13252
13255
|
}), m = ref({
|
13253
13256
|
visible: !1
|
13254
13257
|
}), b = computed(() => !!(unref(u) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
13255
|
-
var
|
13256
|
-
return !!u.value || ((
|
13258
|
+
var I;
|
13259
|
+
return !!u.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13257
13260
|
}), v = computed(() => !!(!unref(u) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13258
|
-
watch(() => n.getSelectedVar, (
|
13259
|
-
|
13261
|
+
watch(() => n.getSelectedVar, (I) => {
|
13262
|
+
I ? y() : (u.value = null, c.value = [], n.setSelectedVarCatalog(null));
|
13260
13263
|
}, {
|
13261
13264
|
immediate: !0
|
13262
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
13263
|
-
var M,
|
13264
|
-
l.value.var_text = (M =
|
13265
|
+
}), watch(() => n.getSelectedVarCatalog, async (I) => {
|
13266
|
+
var M, A;
|
13267
|
+
l.value.var_text = (M = I == null ? void 0 : I.var_text) != null ? M : "", (A = i.value) == null || A.clearValidate();
|
13265
13268
|
});
|
13266
|
-
async function y(
|
13267
|
-
var M,
|
13269
|
+
async function y(I = !1) {
|
13270
|
+
var M, A, $;
|
13268
13271
|
a.value = !0;
|
13269
13272
|
try {
|
13270
13273
|
const {
|
@@ -13279,14 +13282,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13279
13282
|
order: "asc"
|
13280
13283
|
}
|
13281
13284
|
});
|
13282
|
-
if (u.value = null, c.value = D != null ? D : [],
|
13285
|
+
if (u.value = null, c.value = D != null ? D : [], I) {
|
13283
13286
|
const R = c.value.find((G) => {
|
13284
13287
|
var N;
|
13285
13288
|
return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
|
13286
13289
|
});
|
13287
13290
|
n.setSelectedVarCatalog(R != null ? R : null), g.value = R != null && R.id ? [R.id] : [];
|
13288
13291
|
} else
|
13289
|
-
n.setSelectedVarCatalog((
|
13292
|
+
n.setSelectedVarCatalog((A = c.value[0]) != null ? A : null), g.value = ($ = c.value[0]) != null && $.id ? [c.value[0].id] : [];
|
13290
13293
|
} catch (D) {
|
13291
13294
|
Logger.debug(D == null ? void 0 : D.message);
|
13292
13295
|
} finally {
|
@@ -13294,12 +13297,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13294
13297
|
}
|
13295
13298
|
}
|
13296
13299
|
async function E() {
|
13297
|
-
var
|
13300
|
+
var I, M, A;
|
13298
13301
|
try {
|
13299
|
-
o.value = !0, await ((
|
13302
|
+
o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
|
13300
13303
|
const $ = new VarCatalog({
|
13301
13304
|
...(M = n.getSelectedVarCatalog) != null ? M : {},
|
13302
|
-
var_text: (
|
13305
|
+
var_text: (A = l.value) == null ? void 0 : A.var_text
|
13303
13306
|
});
|
13304
13307
|
$.id ? $.cust_lvl === KG_CUSTOM_LEVEL.L0 ? ($.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty($, "id"), await Add({
|
13305
13308
|
data: $
|
@@ -13327,16 +13330,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13327
13330
|
}
|
13328
13331
|
}
|
13329
13332
|
function T({
|
13330
|
-
isAllForm:
|
13333
|
+
isAllForm: I,
|
13331
13334
|
isAllLanguage: M
|
13332
13335
|
}) {
|
13333
|
-
var
|
13336
|
+
var A, $, D;
|
13334
13337
|
u.value = new VarCatalog({
|
13335
13338
|
id: "",
|
13336
13339
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
13337
|
-
grp_nam: (
|
13340
|
+
grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
|
13338
13341
|
var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
|
13339
|
-
frm_id:
|
13342
|
+
frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
13340
13343
|
locale_id: M ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
|
13341
13344
|
var_text: ""
|
13342
13345
|
}), c.value = [...c.value, u.value], n.setSelectedVarCatalog(unref(u)), g.value = [""];
|
@@ -13344,16 +13347,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13344
13347
|
function O() {
|
13345
13348
|
var M;
|
13346
13349
|
c.value = without$1(c.value, u.value), u.value = null;
|
13347
|
-
const
|
13348
|
-
n.setSelectedVarCatalog(
|
13350
|
+
const I = (M = c.value[0]) != null ? M : null;
|
13351
|
+
n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
|
13349
13352
|
}
|
13350
13353
|
function k() {
|
13351
13354
|
KgUtil.confirm({
|
13352
13355
|
onOk: async () => {
|
13353
|
-
var
|
13356
|
+
var I;
|
13354
13357
|
await Delete({
|
13355
13358
|
params: {
|
13356
|
-
id: (
|
13359
|
+
id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
|
13357
13360
|
}
|
13358
13361
|
}, {
|
13359
13362
|
successMessageMode: "none",
|
@@ -13364,14 +13367,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13364
13367
|
}
|
13365
13368
|
});
|
13366
13369
|
}
|
13367
|
-
function F(
|
13370
|
+
function F(I) {
|
13368
13371
|
var M;
|
13369
|
-
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !==
|
13372
|
+
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== I.id && (unref(u) ? KgUtil.confirm({
|
13370
13373
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
13371
13374
|
onOk: () => {
|
13372
|
-
c.value = without$1(c.value, u.value), u.value = null, n.setSelectedVarCatalog(unref(
|
13375
|
+
c.value = without$1(c.value, u.value), u.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
|
13373
13376
|
}
|
13374
|
-
}) : (n.setSelectedVarCatalog(unref(
|
13377
|
+
}) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
|
13375
13378
|
}
|
13376
13379
|
function L() {
|
13377
13380
|
m.value.visible = !0;
|
@@ -13396,7 +13399,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13396
13399
|
})]);
|
13397
13400
|
}
|
13398
13401
|
function w() {
|
13399
|
-
let
|
13402
|
+
let I, M;
|
13400
13403
|
return createVNode("div", {
|
13401
13404
|
class: "form"
|
13402
13405
|
}, [createVNode(Form, {
|
@@ -13413,7 +13416,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13413
13416
|
}, {
|
13414
13417
|
default: () => [createVNode(Textarea, {
|
13415
13418
|
value: l.value.var_text,
|
13416
|
-
"onUpdate:value": (
|
13419
|
+
"onUpdate:value": (A) => l.value.var_text = A,
|
13417
13420
|
disabled: !n.getSelectedVarCatalog
|
13418
13421
|
}, null), createVNode("button", {
|
13419
13422
|
hidden: !0
|
@@ -13424,8 +13427,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13424
13427
|
}, [createVNode(Button, {
|
13425
13428
|
disabled: v.value,
|
13426
13429
|
onClick: O
|
13427
|
-
}, _isSlot(
|
13428
|
-
default: () => [
|
13430
|
+
}, _isSlot(I = t.t("common.cancelText")) ? I : {
|
13431
|
+
default: () => [I]
|
13429
13432
|
}), createVNode(Button, {
|
13430
13433
|
loading: o.value,
|
13431
13434
|
disabled: C.value,
|
@@ -13435,10 +13438,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13435
13438
|
default: () => [M]
|
13436
13439
|
})])]);
|
13437
13440
|
}
|
13438
|
-
function U(
|
13439
|
-
var
|
13441
|
+
function U(I) {
|
13442
|
+
var A;
|
13440
13443
|
let M = "";
|
13441
|
-
return
|
13444
|
+
return I.id || (M += " ant-table-row-create"), I.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && (M += " ant-table-row-selected "), M;
|
13442
13445
|
}
|
13443
13446
|
return () => createVNode("div", {
|
13444
13447
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -13456,12 +13459,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13456
13459
|
loading: a.value,
|
13457
13460
|
rowClassName: U,
|
13458
13461
|
rowSelection: p.value,
|
13459
|
-
customRow: (
|
13460
|
-
onClick: () => F(
|
13462
|
+
customRow: (I) => ({
|
13463
|
+
onClick: () => F(I)
|
13461
13464
|
})
|
13462
13465
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
13463
13466
|
visible: m.value.visible,
|
13464
|
-
"onUpdate:visible": (
|
13467
|
+
"onUpdate:visible": (I) => m.value.visible = I,
|
13465
13468
|
onKgOk: T
|
13466
13469
|
}, null)]);
|
13467
13470
|
}
|
@@ -13800,8 +13803,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13800
13803
|
var O;
|
13801
13804
|
const T = (O = o.value) == null ? void 0 : O.toUpperCase();
|
13802
13805
|
return u.value.filter((k) => {
|
13803
|
-
var F, L, V, w, U,
|
13804
|
-
return ((L = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : L.includes(T)) || ((w = (V = k.whId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(T)) || ((
|
13806
|
+
var F, L, V, w, U, I;
|
13807
|
+
return ((L = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : L.includes(T)) || ((w = (V = k.whId) == null ? void 0 : V.toUpperCase()) == null ? void 0 : w.includes(T)) || ((I = (U = k.adrId) == null ? void 0 : U.toUpperCase()) == null ? void 0 : I.includes(T));
|
13805
13808
|
});
|
13806
13809
|
}), p = computed(() => {
|
13807
13810
|
var T, O;
|
@@ -14030,7 +14033,7 @@ export {
|
|
14030
14033
|
VarSubmitField,
|
14031
14034
|
VarVariableConfig,
|
14032
14035
|
VarVariableInput,
|
14033
|
-
|
14036
|
+
WhDTO,
|
14034
14037
|
createKgWarehouseGuard,
|
14035
14038
|
getAppByPath,
|
14036
14039
|
getAppIndexPath,
|