@kengic/vue 0.5.25 → 0.5.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +360 -324
- package/dist/src/apis/WMS/Controllers/VarContextController/ExportXls.d.ts +11 -0
- package/dist/src/apis/WMS/models.d.ts +2 -0
- 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/package.json +1 -1
package/dist/kengic-vue.js
CHANGED
@@ -243,6 +243,7 @@ class VarGridConfig {
|
|
243
243
|
d(this, "button_display_type");
|
244
244
|
d(this, "cmd_prm");
|
245
245
|
d(this, "convert_sort_field_to_under_score_flg");
|
246
|
+
d(this, "expand_accordion_flg");
|
246
247
|
d(this, "frm_id");
|
247
248
|
d(this, "id");
|
248
249
|
d(this, "id_clm");
|
@@ -259,6 +260,7 @@ class VarGridConfig {
|
|
259
260
|
case "button_display_type":
|
260
261
|
case "cmd_prm":
|
261
262
|
case "convert_sort_field_to_under_score_flg":
|
263
|
+
case "expand_accordion_flg":
|
262
264
|
case "frm_id":
|
263
265
|
case "id":
|
264
266
|
case "id_clm":
|
@@ -883,6 +885,24 @@ function Edit$1(e, t) {
|
|
883
885
|
Edit$1.method = "POST";
|
884
886
|
Edit$1.url = "/var/VarContext/edit";
|
885
887
|
class ExportXlsQuery$1 {
|
888
|
+
constructor(t) {
|
889
|
+
d(this, "frm_id");
|
890
|
+
d(this, "frm_nam");
|
891
|
+
d(this, "grp_nam");
|
892
|
+
d(this, "id");
|
893
|
+
d(this, "var_nam");
|
894
|
+
keys$1(t != null ? t : {}).forEach((r) => {
|
895
|
+
switch (r) {
|
896
|
+
case "frm_id":
|
897
|
+
case "frm_nam":
|
898
|
+
case "grp_nam":
|
899
|
+
case "id":
|
900
|
+
case "var_nam":
|
901
|
+
Reflect.set(this, r, Reflect.get(t != null ? t : {}, r));
|
902
|
+
break;
|
903
|
+
}
|
904
|
+
});
|
905
|
+
}
|
886
906
|
}
|
887
907
|
function ExportXls$1(e, t) {
|
888
908
|
return httpClient().request(
|
@@ -4616,18 +4636,18 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4616
4636
|
e.exports = n();
|
4617
4637
|
})(commonjsGlobal, function() {
|
4618
4638
|
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) {
|
4619
|
-
var
|
4620
|
-
return "[" + M + (
|
4621
|
-
} }, E = function(M,
|
4639
|
+
var A = ["th", "st", "nd", "rd"], $ = M % 100;
|
4640
|
+
return "[" + M + (A[($ - 20) % 10] || A[$] || A[0]) + "]";
|
4641
|
+
} }, E = function(M, A, $) {
|
4622
4642
|
var D = String(M);
|
4623
|
-
return !D || D.length >=
|
4643
|
+
return !D || D.length >= A ? M : "" + Array(A + 1 - D.length).join($) + M;
|
4624
4644
|
}, T = { s: E, z: function(M) {
|
4625
|
-
var
|
4626
|
-
return (
|
4627
|
-
}, m: function M(
|
4628
|
-
if (
|
4629
|
-
return -M($,
|
4630
|
-
var D = 12 * ($.year() -
|
4645
|
+
var A = -M.utcOffset(), $ = Math.abs(A), D = Math.floor($ / 60), R = $ % 60;
|
4646
|
+
return (A <= 0 ? "+" : "-") + E(D, 2, "0") + ":" + E(R, 2, "0");
|
4647
|
+
}, m: function M(A, $) {
|
4648
|
+
if (A.date() < $.date())
|
4649
|
+
return -M($, A);
|
4650
|
+
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);
|
4631
4651
|
return +(-(D + ($ - R) / (G ? R - N : N - R)) || 0);
|
4632
4652
|
}, a: function(M) {
|
4633
4653
|
return M < 0 ? Math.ceil(M) || 0 : Math.floor(M);
|
@@ -4639,36 +4659,36 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4639
4659
|
k[O] = y;
|
4640
4660
|
var F = function(M) {
|
4641
4661
|
return M instanceof U;
|
4642
|
-
}, L = function M(
|
4662
|
+
}, L = function M(A, $, D) {
|
4643
4663
|
var R;
|
4644
|
-
if (!
|
4664
|
+
if (!A)
|
4645
4665
|
return O;
|
4646
|
-
if (typeof
|
4647
|
-
var G =
|
4666
|
+
if (typeof A == "string") {
|
4667
|
+
var G = A.toLowerCase();
|
4648
4668
|
k[G] && (R = G), $ && (k[G] = $, R = G);
|
4649
|
-
var N =
|
4669
|
+
var N = A.split("-");
|
4650
4670
|
if (!R && N.length > 1)
|
4651
4671
|
return M(N[0]);
|
4652
4672
|
} else {
|
4653
|
-
var B =
|
4654
|
-
k[B] =
|
4673
|
+
var B = A.name;
|
4674
|
+
k[B] = A, R = B;
|
4655
4675
|
}
|
4656
4676
|
return !D && R && (O = R), R || !D && O;
|
4657
|
-
}, V = function(M,
|
4677
|
+
}, V = function(M, A) {
|
4658
4678
|
if (F(M))
|
4659
4679
|
return M.clone();
|
4660
|
-
var $ = typeof
|
4680
|
+
var $ = typeof A == "object" ? A : {};
|
4661
4681
|
return $.date = M, $.args = arguments, new U($);
|
4662
4682
|
}, w = T;
|
4663
|
-
w.l = L, w.i = F, w.w = function(M,
|
4664
|
-
return V(M, { locale:
|
4683
|
+
w.l = L, w.i = F, w.w = function(M, A) {
|
4684
|
+
return V(M, { locale: A.$L, utc: A.$u, x: A.$x, $offset: A.$offset });
|
4665
4685
|
};
|
4666
4686
|
var U = function() {
|
4667
4687
|
function M($) {
|
4668
4688
|
this.$L = L($.locale, null, !0), this.parse($);
|
4669
4689
|
}
|
4670
|
-
var
|
4671
|
-
return
|
4690
|
+
var A = M.prototype;
|
4691
|
+
return A.parse = function($) {
|
4672
4692
|
this.$d = function(D) {
|
4673
4693
|
var R = D.date, G = D.utc;
|
4674
4694
|
if (R === null)
|
@@ -4680,37 +4700,37 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4680
4700
|
if (typeof R == "string" && !/Z$/i.test(R)) {
|
4681
4701
|
var N = R.match(v);
|
4682
4702
|
if (N) {
|
4683
|
-
var B = N[2] - 1 || 0,
|
4684
|
-
return G ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0,
|
4703
|
+
var B = N[2] - 1 || 0, W = (N[7] || "0").substring(0, 3);
|
4704
|
+
return G ? new Date(Date.UTC(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W)) : new Date(N[1], B, N[3] || 1, N[4] || 0, N[5] || 0, N[6] || 0, W);
|
4685
4705
|
}
|
4686
4706
|
}
|
4687
4707
|
return new Date(R);
|
4688
4708
|
}($), this.$x = $.x || {}, this.init();
|
4689
|
-
},
|
4709
|
+
}, A.init = function() {
|
4690
4710
|
var $ = this.$d;
|
4691
4711
|
this.$y = $.getFullYear(), this.$M = $.getMonth(), this.$D = $.getDate(), this.$W = $.getDay(), this.$H = $.getHours(), this.$m = $.getMinutes(), this.$s = $.getSeconds(), this.$ms = $.getMilliseconds();
|
4692
|
-
},
|
4712
|
+
}, A.$utils = function() {
|
4693
4713
|
return w;
|
4694
|
-
},
|
4714
|
+
}, A.isValid = function() {
|
4695
4715
|
return this.$d.toString() !== _;
|
4696
|
-
},
|
4716
|
+
}, A.isSame = function($, D) {
|
4697
4717
|
var R = V($);
|
4698
4718
|
return this.startOf(D) <= R && R <= this.endOf(D);
|
4699
|
-
},
|
4719
|
+
}, A.isAfter = function($, D) {
|
4700
4720
|
return V($) < this.startOf(D);
|
4701
|
-
},
|
4721
|
+
}, A.isBefore = function($, D) {
|
4702
4722
|
return this.endOf(D) < V($);
|
4703
|
-
},
|
4723
|
+
}, A.$g = function($, D, R) {
|
4704
4724
|
return w.u($) ? this[D] : this.set(R, $);
|
4705
|
-
},
|
4725
|
+
}, A.unix = function() {
|
4706
4726
|
return Math.floor(this.valueOf() / 1e3);
|
4707
|
-
},
|
4727
|
+
}, A.valueOf = function() {
|
4708
4728
|
return this.$d.getTime();
|
4709
|
-
},
|
4729
|
+
}, A.startOf = function($, D) {
|
4710
4730
|
var R = this, G = !!w.u(D) || D, N = w.p($), B = function(oe, P) {
|
4711
4731
|
var x = w.w(R.$u ? Date.UTC(R.$y, P, oe) : new Date(R.$y, P, oe), R);
|
4712
4732
|
return G ? x : x.endOf(c);
|
4713
|
-
},
|
4733
|
+
}, W = function(oe, P) {
|
4714
4734
|
return w.w(R.toDate()[oe].apply(R.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(P)), R);
|
4715
4735
|
}, Y = this.$W, X = this.$M, ae = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
4716
4736
|
switch (N) {
|
@@ -4723,31 +4743,31 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4723
4743
|
return B(G ? ae - de : ae + (6 - de), X);
|
4724
4744
|
case c:
|
4725
4745
|
case b:
|
4726
|
-
return
|
4746
|
+
return W(te + "Hours", 0);
|
4727
4747
|
case l:
|
4728
|
-
return
|
4748
|
+
return W(te + "Minutes", 1);
|
4729
4749
|
case i:
|
4730
|
-
return
|
4750
|
+
return W(te + "Seconds", 2);
|
4731
4751
|
case s:
|
4732
|
-
return
|
4752
|
+
return W(te + "Milliseconds", 3);
|
4733
4753
|
default:
|
4734
4754
|
return this.clone();
|
4735
4755
|
}
|
4736
|
-
},
|
4756
|
+
}, A.endOf = function($) {
|
4737
4757
|
return this.startOf($, !1);
|
4738
|
-
},
|
4739
|
-
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],
|
4758
|
+
}, A.$set = function($, D) {
|
4759
|
+
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;
|
4740
4760
|
if (G === g || G === m) {
|
4741
4761
|
var Y = this.clone().set(b, 1);
|
4742
|
-
Y.$d[B](
|
4762
|
+
Y.$d[B](W), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4743
4763
|
} else
|
4744
|
-
B && this.$d[B](
|
4764
|
+
B && this.$d[B](W);
|
4745
4765
|
return this.init(), this;
|
4746
|
-
},
|
4766
|
+
}, A.set = function($, D) {
|
4747
4767
|
return this.clone().$set($, D);
|
4748
|
-
},
|
4768
|
+
}, A.get = function($) {
|
4749
4769
|
return this[w.p($)]();
|
4750
|
-
},
|
4770
|
+
}, A.add = function($, D) {
|
4751
4771
|
var R, G = this;
|
4752
4772
|
$ = Number($);
|
4753
4773
|
var N = w.p(D), B = function(X) {
|
@@ -4762,57 +4782,57 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4762
4782
|
return B(1);
|
4763
4783
|
if (N === u)
|
4764
4784
|
return B(7);
|
4765
|
-
var
|
4785
|
+
var W = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[N] || 1, Y = this.$d.getTime() + $ * W;
|
4766
4786
|
return w.w(Y, this);
|
4767
|
-
},
|
4787
|
+
}, A.subtract = function($, D) {
|
4768
4788
|
return this.add(-1 * $, D);
|
4769
|
-
},
|
4789
|
+
}, A.format = function($) {
|
4770
4790
|
var D = this, R = this.$locale();
|
4771
4791
|
if (!this.isValid())
|
4772
4792
|
return R.invalidDate || _;
|
4773
|
-
var G = $ || "YYYY-MM-DDTHH:mm:ssZ", N = w.z(this), B = this.$H,
|
4774
|
-
return P && (P[x] || P(D, G)) ||
|
4793
|
+
var G = $ || "YYYY-MM-DDTHH:mm:ssZ", N = w.z(this), B = this.$H, W = this.$m, Y = this.$M, X = R.weekdays, ae = R.months, te = function(P, x, H, q) {
|
4794
|
+
return P && (P[x] || P(D, G)) || H[x].slice(0, q);
|
4775
4795
|
}, ce = function(P) {
|
4776
4796
|
return w.s(B % 12 || 12, P, "0");
|
4777
|
-
}, de = R.meridiem || function(P, x,
|
4797
|
+
}, de = R.meridiem || function(P, x, H) {
|
4778
4798
|
var q = P < 12 ? "AM" : "PM";
|
4779
|
-
return
|
4780
|
-
}, 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: de(B,
|
4799
|
+
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: de(B, W, !0), A: de(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 };
|
4781
4801
|
return G.replace(C, function(P, x) {
|
4782
4802
|
return x || oe[P] || N.replace(":", "");
|
4783
4803
|
});
|
4784
|
-
},
|
4804
|
+
}, A.utcOffset = function() {
|
4785
4805
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4786
|
-
},
|
4787
|
-
var G, N = w.p(D), B = V($),
|
4788
|
-
return X = (G = {}, G[m] = X / 12, G[g] = X, G[p] = X / 3, G[u] = (Y -
|
4789
|
-
},
|
4806
|
+
}, A.diff = function($, D, R) {
|
4807
|
+
var G, N = w.p(D), B = V($), W = (B.utcOffset() - this.utcOffset()) * n, Y = this - B, X = w.m(this, B);
|
4808
|
+
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
|
+
}, A.daysInMonth = function() {
|
4790
4810
|
return this.endOf(g).$D;
|
4791
|
-
},
|
4811
|
+
}, A.$locale = function() {
|
4792
4812
|
return k[this.$L];
|
4793
|
-
},
|
4813
|
+
}, A.locale = function($, D) {
|
4794
4814
|
if (!$)
|
4795
4815
|
return this.$L;
|
4796
4816
|
var R = this.clone(), G = L($, D, !0);
|
4797
4817
|
return G && (R.$L = G), R;
|
4798
|
-
},
|
4818
|
+
}, A.clone = function() {
|
4799
4819
|
return w.w(this.$d, this);
|
4800
|
-
},
|
4820
|
+
}, A.toDate = function() {
|
4801
4821
|
return new Date(this.valueOf());
|
4802
|
-
},
|
4822
|
+
}, A.toJSON = function() {
|
4803
4823
|
return this.isValid() ? this.toISOString() : null;
|
4804
|
-
},
|
4824
|
+
}, A.toISOString = function() {
|
4805
4825
|
return this.$d.toISOString();
|
4806
|
-
},
|
4826
|
+
}, A.toString = function() {
|
4807
4827
|
return this.$d.toUTCString();
|
4808
4828
|
}, M;
|
4809
|
-
}(),
|
4810
|
-
return V.prototype =
|
4811
|
-
|
4812
|
-
return this.$g(
|
4829
|
+
}(), I = U.prototype;
|
4830
|
+
return V.prototype = I, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", c], ["$M", g], ["$y", m], ["$D", b]].forEach(function(M) {
|
4831
|
+
I[M[1]] = function(A) {
|
4832
|
+
return this.$g(A, M[0], M[1]);
|
4813
4833
|
};
|
4814
|
-
}), V.extend = function(M,
|
4815
|
-
return M.$i || (M(
|
4834
|
+
}), V.extend = function(M, A) {
|
4835
|
+
return M.$i || (M(A, U, V), M.$i = !0), V;
|
4816
4836
|
}, V.locale = L, V.isDayjs = F, V.unix = function(M) {
|
4817
4837
|
return V(1e3 * M);
|
4818
4838
|
}, V.en = k[O], V.Ls = k, V.p = {}, V;
|
@@ -4877,8 +4897,8 @@ function filesize(e, {
|
|
4877
4897
|
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];
|
4878
4898
|
}
|
4879
4899
|
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) {
|
4880
|
-
const w = i || PERIOD, U = E[0].toString().split(w),
|
4881
|
-
E[0] = `${U[0]}${w}${
|
4900
|
+
const w = i || PERIOD, U = E[0].toString().split(w), I = U[1] || EMPTY, M = I.length, A = a - M;
|
4901
|
+
E[0] = `${U[0]}${w}${I.padEnd(M + A, ZERO)}`;
|
4882
4902
|
}
|
4883
4903
|
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 ? {
|
4884
4904
|
value: E[0],
|
@@ -6210,27 +6230,27 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6210
6230
|
function E(L, V) {
|
6211
6231
|
return function() {
|
6212
6232
|
setActivePinia(n);
|
6213
|
-
const w = Array.from(arguments), U = [],
|
6233
|
+
const w = Array.from(arguments), U = [], I = [];
|
6214
6234
|
function M(D) {
|
6215
6235
|
U.push(D);
|
6216
6236
|
}
|
6217
|
-
function
|
6218
|
-
|
6237
|
+
function A(D) {
|
6238
|
+
I.push(D);
|
6219
6239
|
}
|
6220
6240
|
triggerSubscriptions(p, {
|
6221
6241
|
args: w,
|
6222
6242
|
name: L,
|
6223
6243
|
store: k,
|
6224
6244
|
after: M,
|
6225
|
-
onError:
|
6245
|
+
onError: A
|
6226
6246
|
});
|
6227
6247
|
let $;
|
6228
6248
|
try {
|
6229
6249
|
$ = V.apply(this && this.$id === e ? this : k, w);
|
6230
6250
|
} catch (D) {
|
6231
|
-
throw triggerSubscriptions(
|
6251
|
+
throw triggerSubscriptions(I, D), D;
|
6232
6252
|
}
|
6233
|
-
return $ instanceof Promise ? $.then((D) => (triggerSubscriptions(U, D), D)).catch((D) => (triggerSubscriptions(
|
6253
|
+
return $ instanceof Promise ? $.then((D) => (triggerSubscriptions(U, D), D)).catch((D) => (triggerSubscriptions(I, D), Promise.reject(D))) : (triggerSubscriptions(U, $), $);
|
6234
6254
|
};
|
6235
6255
|
}
|
6236
6256
|
const T = /* @__PURE__ */ markRaw({
|
@@ -6245,12 +6265,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6245
6265
|
$patch: v,
|
6246
6266
|
$reset: C,
|
6247
6267
|
$subscribe(L, V = {}) {
|
6248
|
-
const w = addSubscription(g, L, V.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (
|
6268
|
+
const w = addSubscription(g, L, V.detached, () => U()), U = o.run(() => watch(() => n.state.value[e], (I) => {
|
6249
6269
|
(V.flush === "sync" ? u : c) && L({
|
6250
6270
|
storeId: e,
|
6251
6271
|
type: MutationType.direct,
|
6252
6272
|
events: m
|
6253
|
-
},
|
6273
|
+
}, I);
|
6254
6274
|
}, assign$1({}, l, V)));
|
6255
6275
|
return w;
|
6256
6276
|
},
|
@@ -6287,8 +6307,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6287
6307
|
k._hotUpdate = markRaw((V) => {
|
6288
6308
|
k._hotUpdating = !0, V._hmrPayload.state.forEach((w) => {
|
6289
6309
|
if (w in k.$state) {
|
6290
|
-
const U = V.$state[w],
|
6291
|
-
typeof U == "object" && isPlainObject(U) && isPlainObject(
|
6310
|
+
const U = V.$state[w], I = k.$state[w];
|
6311
|
+
typeof U == "object" && isPlainObject(U) && isPlainObject(I) ? patchObject(U, I) : V.$state[w] = I;
|
6292
6312
|
}
|
6293
6313
|
set(k, w, toRef(V.$state, w));
|
6294
6314
|
}), Object.keys(k.$state).forEach((w) => {
|
@@ -6301,8 +6321,8 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6301
6321
|
set(k, w, E(w, U));
|
6302
6322
|
}
|
6303
6323
|
for (const w in V._hmrPayload.getters) {
|
6304
|
-
const U = V._hmrPayload.getters[w],
|
6305
|
-
set(k, w,
|
6324
|
+
const U = V._hmrPayload.getters[w], I = s ? computed(() => (setActivePinia(n), U.call(k, k))) : U;
|
6325
|
+
set(k, w, I);
|
6306
6326
|
}
|
6307
6327
|
Object.keys(k._hmrPayload.getters).forEach((w) => {
|
6308
6328
|
w in V._hmrPayload.getters || del(k, w);
|
@@ -7007,7 +7027,6 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7007
7027
|
type: Boolean,
|
7008
7028
|
default: !0
|
7009
7029
|
},
|
7010
|
-
kgType: String,
|
7011
7030
|
kgShowTime: {
|
7012
7031
|
type: [Boolean, Object],
|
7013
7032
|
default: void 0
|
@@ -7225,8 +7244,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7225
7244
|
immediate: !0
|
7226
7245
|
});
|
7227
7246
|
async function _() {
|
7228
|
-
var F, L, V, w, U,
|
7229
|
-
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 = (
|
7247
|
+
var F, L, V, w, U, I, M, A, $;
|
7248
|
+
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 : "";
|
7230
7249
|
if (!y || !T || !O) {
|
7231
7250
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7232
7251
|
frm_id: a.formID,
|
@@ -7239,7 +7258,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7239
7258
|
}
|
7240
7259
|
let k = null;
|
7241
7260
|
try {
|
7242
|
-
k = await ((
|
7261
|
+
k = await ((A = httpClient()) == null ? void 0 : A.request({
|
7243
7262
|
url: y,
|
7244
7263
|
method: E,
|
7245
7264
|
params: m.value,
|
@@ -7648,117 +7667,117 @@ const KgFormItem = defineComponent({
|
|
7648
7667
|
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)), {
|
7649
7668
|
rules: b
|
7650
7669
|
} = _useRules(e), _ = computed(() => {
|
7651
|
-
var M,
|
7670
|
+
var M, A, $, D, R;
|
7652
7671
|
if (a.isRetrievingVar.value)
|
7653
7672
|
return !0;
|
7654
|
-
let
|
7673
|
+
let I = !1;
|
7655
7674
|
if (e.kgDisabled !== void 0)
|
7656
|
-
|
7675
|
+
I = e.kgDisabled;
|
7657
7676
|
else
|
7658
7677
|
switch (e.kgContext) {
|
7659
7678
|
case KG_FORM_CONTEXT.SEARCH:
|
7660
|
-
|
7679
|
+
I = ((M = p.value) == null ? void 0 : M.ena_flg) === 0;
|
7661
7680
|
break;
|
7662
7681
|
case KG_FORM_CONTEXT.SUBMIT:
|
7663
7682
|
switch (!0) {
|
7664
7683
|
case a.isCreating.value:
|
7665
|
-
|
7684
|
+
I = ((A = m.value) == null ? void 0 : A.crt_ena_flg) === 0;
|
7666
7685
|
break;
|
7667
7686
|
case a.isUpdating.value:
|
7668
|
-
|
7687
|
+
I = (($ = m.value) == null ? void 0 : $.upt_ena_flg) === 0;
|
7669
7688
|
break;
|
7670
7689
|
case a.isCopying.value:
|
7671
|
-
|
7690
|
+
I = ((D = m.value) == null ? void 0 : D.cpy_ena_flg) === 0;
|
7672
7691
|
break;
|
7673
7692
|
case a.isDeleting.value:
|
7674
|
-
|
7693
|
+
I = ((R = m.value) == null ? void 0 : R.del_ena_flg) === 0;
|
7675
7694
|
break;
|
7676
7695
|
}
|
7677
7696
|
break;
|
7678
7697
|
}
|
7679
|
-
return
|
7698
|
+
return I;
|
7680
7699
|
}), v = computed(() => {
|
7681
|
-
var M,
|
7682
|
-
let
|
7700
|
+
var M, A, $, D;
|
7701
|
+
let I = " ";
|
7683
7702
|
if (e.kgPlaceholder)
|
7684
|
-
|
7703
|
+
I = e.kgPlaceholder;
|
7685
7704
|
else
|
7686
7705
|
switch (e.kgContext) {
|
7687
7706
|
case KG_FORM_CONTEXT.SEARCH:
|
7688
|
-
|
7707
|
+
I = n.t((A = (M = p.value) == null ? void 0 : M.placeholder) != null ? A : " ");
|
7689
7708
|
break;
|
7690
7709
|
case KG_FORM_CONTEXT.SUBMIT:
|
7691
|
-
|
7710
|
+
I = n.t((D = ($ = m.value) == null ? void 0 : $.placeholder) != null ? D : " ");
|
7692
7711
|
break;
|
7693
7712
|
}
|
7694
|
-
return
|
7713
|
+
return I;
|
7695
7714
|
}), C = computed(() => {
|
7696
|
-
var M,
|
7697
|
-
let
|
7715
|
+
var M, A, $, D, R, G, N, B, W, Y;
|
7716
|
+
let I = 6;
|
7698
7717
|
if (e.kgSpan !== void 0)
|
7699
|
-
|
7718
|
+
I = e.kgSpan;
|
7700
7719
|
else
|
7701
7720
|
switch (e.kgContext) {
|
7702
7721
|
case KG_FORM_CONTEXT.SEARCH:
|
7703
|
-
|
7722
|
+
I = (A = (M = p.value) == null ? void 0 : M.width) != null ? A : 6;
|
7704
7723
|
break;
|
7705
7724
|
case KG_FORM_CONTEXT.SUBMIT:
|
7706
7725
|
switch (!0) {
|
7707
7726
|
case a.isCreating.value:
|
7708
|
-
|
7727
|
+
I = (D = ($ = m.value) == null ? void 0 : $.crt_width) != null ? D : 6;
|
7709
7728
|
break;
|
7710
7729
|
case a.isUpdating.value:
|
7711
|
-
|
7730
|
+
I = (G = (R = m.value) == null ? void 0 : R.upt_width) != null ? G : 6;
|
7712
7731
|
break;
|
7713
7732
|
case a.isCopying.value:
|
7714
|
-
|
7733
|
+
I = (B = (N = m.value) == null ? void 0 : N.cpy_width) != null ? B : 6;
|
7715
7734
|
break;
|
7716
7735
|
case a.isDeleting.value:
|
7717
|
-
|
7736
|
+
I = (Y = (W = m.value) == null ? void 0 : W.del_width) != null ? Y : 6;
|
7718
7737
|
break;
|
7719
7738
|
}
|
7720
7739
|
}
|
7721
|
-
return Math.min(24, Math.max(1,
|
7740
|
+
return Math.min(24, Math.max(1, I));
|
7722
7741
|
}), y = computed(() => {
|
7723
7742
|
var $, D;
|
7724
|
-
const
|
7725
|
-
if (
|
7743
|
+
const I = get(F.value, "$el.parentElement");
|
7744
|
+
if (I && !(($ = I.classList) != null && $.contains("ant-row")))
|
7726
7745
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7727
7746
|
let M = {};
|
7728
|
-
const
|
7729
|
-
return Number.isNaN(
|
7730
|
-
paddingLeft: `${
|
7731
|
-
paddingRight: `${
|
7747
|
+
const A = Math.abs(Number.parseInt((D = get(F.value, "$el.parentElement.style.marginLeft")) != null ? D : "0px"));
|
7748
|
+
return Number.isNaN(A) || (M = {
|
7749
|
+
paddingLeft: `${A}px !important`,
|
7750
|
+
paddingRight: `${A}px !important`
|
7732
7751
|
}), M;
|
7733
7752
|
}), E = computed(() => {
|
7734
|
-
var M,
|
7735
|
-
let
|
7736
|
-
switch (u.value && (
|
7753
|
+
var M, A, $, D;
|
7754
|
+
let I = "kg-form-item";
|
7755
|
+
switch (u.value && (I += " kg-form-item-lookup"), e.kgContext) {
|
7737
7756
|
case KG_FORM_CONTEXT.SEARCH:
|
7738
7757
|
switch (!0) {
|
7739
7758
|
case ((M = p.value) == null ? void 0 : M.vis_flg) === 0:
|
7740
|
-
|
7759
|
+
I += " kg-form-item--invisible";
|
7741
7760
|
break;
|
7742
7761
|
}
|
7743
7762
|
break;
|
7744
7763
|
case KG_FORM_CONTEXT.SUBMIT:
|
7745
7764
|
switch (!0) {
|
7746
|
-
case (i.value && ((
|
7765
|
+
case (i.value && ((A = m.value) == null ? void 0 : A.crt_vis_flg) === 0):
|
7747
7766
|
case (l.value && (($ = m.value) == null ? void 0 : $.upt_vis_flg) === 0):
|
7748
7767
|
case (c.value && ((D = m.value) == null ? void 0 : D.cpy_vis_flg) === 0):
|
7749
|
-
|
7768
|
+
I += " kg-form-item--invisible";
|
7750
7769
|
break;
|
7751
7770
|
}
|
7752
7771
|
break;
|
7753
7772
|
}
|
7754
|
-
return
|
7773
|
+
return I;
|
7755
7774
|
}), T = computed(() => {
|
7756
7775
|
var M;
|
7757
|
-
const
|
7776
|
+
const I = {
|
7758
7777
|
...e,
|
7759
7778
|
value: (M = o.value) == null ? void 0 : M[e.kgVarName],
|
7760
|
-
"onUpdate:value": (
|
7761
|
-
o.value && (o.value[e.kgVarName] =
|
7779
|
+
"onUpdate:value": (A) => {
|
7780
|
+
o.value && (o.value[e.kgVarName] = A);
|
7762
7781
|
},
|
7763
7782
|
kgPlaceholder: v.value,
|
7764
7783
|
kgDisabled: _.value,
|
@@ -7772,49 +7791,57 @@ const KgFormItem = defineComponent({
|
|
7772
7791
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7773
7792
|
break;
|
7774
7793
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7775
|
-
|
7794
|
+
I.kgShowTime = !1;
|
7776
7795
|
break;
|
7777
7796
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7778
|
-
|
7797
|
+
I.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7779
7798
|
break;
|
7780
7799
|
}
|
7781
|
-
return
|
7800
|
+
return I;
|
7782
7801
|
}), O = computed(() => {
|
7783
|
-
var A;
|
7784
|
-
return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
|
7785
|
-
}), k = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), F = ref(null);
|
7786
|
-
function L(A, M) {
|
7787
7802
|
var I;
|
7788
|
-
|
7803
|
+
return (I = g.value) == null ? void 0 : I.ctrl_typ;
|
7804
|
+
}), k = computed(() => encodeURIComponent(`${e.kgContext}~${a.formID}~${e.kgVarName}`)), F = ref(null);
|
7805
|
+
function L(I, M) {
|
7806
|
+
var A;
|
7807
|
+
o.value && (o.value[e.kgVarName] = I), r("kgLookupChange", M), (A = s.value) == null || A.validate([e.kgVarName]);
|
7789
7808
|
}
|
7790
7809
|
function V() {
|
7791
|
-
if (t.control)
|
7792
|
-
|
7810
|
+
if (t.control) {
|
7811
|
+
const I = {
|
7793
7812
|
varName: e.kgVarName,
|
7794
7813
|
props: T,
|
7795
7814
|
model: o,
|
7796
7815
|
varConfig: g,
|
7797
7816
|
varProfileDetail: p,
|
7798
7817
|
varSubmitField: m
|
7799
|
-
}
|
7800
|
-
|
7801
|
-
|
7802
|
-
|
7803
|
-
|
7804
|
-
|
7805
|
-
|
7806
|
-
|
7807
|
-
|
7808
|
-
|
7809
|
-
|
7810
|
-
|
7811
|
-
|
7812
|
-
|
7813
|
-
|
7814
|
-
|
7815
|
-
|
7816
|
-
|
7817
|
-
|
7818
|
+
};
|
7819
|
+
return t.control(I);
|
7820
|
+
} else
|
7821
|
+
switch (O.value) {
|
7822
|
+
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7823
|
+
return createVNode(KgFormItemInputNumber, T.value, null);
|
7824
|
+
case KG_FORM_ITEM_TYPE.SELECT:
|
7825
|
+
return createVNode(KgFormItemSelect, T.value, null);
|
7826
|
+
case KG_FORM_ITEM_TYPE.SWITCH:
|
7827
|
+
switch (e.kgContext) {
|
7828
|
+
case KG_FORM_CONTEXT.SEARCH:
|
7829
|
+
return createVNode(KgFormItemSelect, T.value, null);
|
7830
|
+
case KG_FORM_CONTEXT.SUBMIT:
|
7831
|
+
default:
|
7832
|
+
return createVNode(KgFormItemSwitch, T.value, null);
|
7833
|
+
}
|
7834
|
+
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
7835
|
+
return createVNode(KgFormItemCheckbox, T.value, null);
|
7836
|
+
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
7837
|
+
return createVNode(KgFormItemCheckboxGroup, T.value, null);
|
7838
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7839
|
+
return createVNode(KgFormItemDate, T.value, null);
|
7840
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7841
|
+
return createVNode(KgFormItemDate, T.value, null);
|
7842
|
+
default:
|
7843
|
+
return createVNode(KgFormItemInput, T.value, null);
|
7844
|
+
}
|
7818
7845
|
}
|
7819
7846
|
function w() {
|
7820
7847
|
return e.kgShowLabel ? createVNode("span", {
|
@@ -7822,8 +7849,8 @@ const KgFormItem = defineComponent({
|
|
7822
7849
|
}, [a.t(e.kgVarName).value]) : null;
|
7823
7850
|
}
|
7824
7851
|
function U() {
|
7825
|
-
var
|
7826
|
-
return !u.value || !((
|
7852
|
+
var I;
|
7853
|
+
return !u.value || !((I = u.value) != null && I.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7827
7854
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7828
7855
|
kgDisabled: _.value,
|
7829
7856
|
onKgOk: L,
|
@@ -7832,12 +7859,12 @@ const KgFormItem = defineComponent({
|
|
7832
7859
|
});
|
7833
7860
|
}
|
7834
7861
|
return () => {
|
7835
|
-
var
|
7862
|
+
var I, M;
|
7836
7863
|
return createVNode(Col, {
|
7837
7864
|
ref: F,
|
7838
7865
|
"kg-frm-id": a.formID,
|
7839
7866
|
"kg-var-nam": e.kgVarName,
|
7840
|
-
"kg-lkp-id": (
|
7867
|
+
"kg-lkp-id": (I = u.value) == null ? void 0 : I.lkp_id,
|
7841
7868
|
"kg-lkp-ret-fld": (M = u.value) == null ? void 0 : M.ret_fld,
|
7842
7869
|
span: C.value,
|
7843
7870
|
class: E.value,
|
@@ -9175,11 +9202,11 @@ function useKgVar(e, t, r = 0) {
|
|
9175
9202
|
i.leave(s);
|
9176
9203
|
}));
|
9177
9204
|
const l = (U) => computed(() => {
|
9178
|
-
var
|
9179
|
-
return (
|
9205
|
+
var I, M, A;
|
9206
|
+
return (A = (M = (I = i.getVarCatalog(s, U)) == null ? void 0 : I.var_text) != null ? M : U) != null ? A : "";
|
9180
9207
|
}), 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(() => {
|
9181
|
-
var U,
|
9182
|
-
return (
|
9208
|
+
var U, I;
|
9209
|
+
return (I = (U = E.value) == null ? void 0 : U.varProfileDetails) != null ? I : null;
|
9183
9210
|
}), 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));
|
9184
9211
|
return {
|
9185
9212
|
formID: s,
|
@@ -9635,56 +9662,56 @@ const getProps$p = () => ({
|
|
9635
9662
|
}) {
|
9636
9663
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9637
9664
|
_useFormModel();
|
9638
|
-
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 &&
|
9639
|
-
var K,
|
9665
|
+
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(() => {
|
9666
|
+
var K, z, Q;
|
9640
9667
|
switch (!0) {
|
9641
9668
|
case c.value:
|
9642
9669
|
return (K = T.value) != null ? K : [];
|
9643
9670
|
case u.value:
|
9644
|
-
return (
|
9671
|
+
return (z = k.value) != null ? z : [];
|
9645
9672
|
case g.value:
|
9646
9673
|
return (Q = L.value) != null ? Q : [];
|
9647
9674
|
case p.value:
|
9648
9675
|
return [];
|
9649
9676
|
}
|
9650
9677
|
return [];
|
9651
|
-
}),
|
9652
|
-
var K,
|
9678
|
+
}), I = computed(() => {
|
9679
|
+
var K, z, Q, Z;
|
9653
9680
|
switch (!0) {
|
9654
9681
|
case c.value:
|
9655
9682
|
return (K = O.value) != null ? K : [];
|
9656
9683
|
case u.value:
|
9657
|
-
return (
|
9684
|
+
return (z = F.value) != null ? z : [];
|
9658
9685
|
case g.value:
|
9659
9686
|
return (Q = V.value) != null ? Q : [];
|
9660
9687
|
case p.value:
|
9661
9688
|
return (Z = w.value) != null ? Z : [];
|
9662
9689
|
}
|
9663
9690
|
return [];
|
9664
|
-
}), M = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)),
|
9691
|
+
}), 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({
|
9665
9692
|
kgWidth: 0
|
9666
9693
|
}), R = computed(() => {
|
9667
9694
|
var K;
|
9668
9695
|
return !!(m.value || oe.isFullscreen || ((K = E.value) == null ? void 0 : K.resizable_flg) === 0);
|
9669
9696
|
}), G = computed(() => {
|
9670
|
-
var K,
|
9671
|
-
return m.value ? 398 : (
|
9697
|
+
var K, z;
|
9698
|
+
return m.value ? 398 : (z = (K = E.value) == null ? void 0 : K.min_width) != null ? z : DEFAULT_MIN_WIDTH;
|
9672
9699
|
}), N = computed(() => {
|
9673
|
-
var K,
|
9674
|
-
return m.value ? 398 : (
|
9675
|
-
}), B = computed(() => m.value ? 398 : D.value.kgWidth),
|
9700
|
+
var K, z;
|
9701
|
+
return m.value ? 398 : (z = (K = E.value) == null ? void 0 : K.max_width) != null ? z : DEFAULT_MAX_WIDTH;
|
9702
|
+
}), B = computed(() => m.value ? 398 : D.value.kgWidth), W = ref(null), Y = ref({}), X = ref(null);
|
9676
9703
|
_useResizeObserver$1(X);
|
9677
9704
|
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)), de = computed(() => {
|
9678
|
-
var
|
9705
|
+
var z, Q;
|
9679
9706
|
let K = "kg-submit";
|
9680
|
-
return oe.isFullscreen && (K += " kg-submit--fullscreen"), ((
|
9707
|
+
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;
|
9681
9708
|
}), oe = reactive({
|
9682
9709
|
isFullscreen: !1
|
9683
9710
|
}), P = computed(() => {
|
9684
|
-
var K,
|
9711
|
+
var K, z, Q, Z;
|
9685
9712
|
switch ((K = E.value) == null ? void 0 : K.layout) {
|
9686
9713
|
case "horizontal":
|
9687
|
-
switch ((
|
9714
|
+
switch ((z = E.value) == null ? void 0 : z.label_col_unit) {
|
9688
9715
|
case KG_WIDTH_UNIT.SPAN:
|
9689
9716
|
return {
|
9690
9717
|
span: (Q = E.value) == null ? void 0 : Q.label_col
|
@@ -9700,10 +9727,10 @@ const getProps$p = () => ({
|
|
9700
9727
|
return;
|
9701
9728
|
}
|
9702
9729
|
}), x = computed(() => {
|
9703
|
-
var K,
|
9730
|
+
var K, z, Q;
|
9704
9731
|
switch ((K = E.value) == null ? void 0 : K.layout) {
|
9705
9732
|
case "horizontal":
|
9706
|
-
switch ((
|
9733
|
+
switch ((z = E.value) == null ? void 0 : z.label_col_unit) {
|
9707
9734
|
case KG_WIDTH_UNIT.SPAN:
|
9708
9735
|
return {
|
9709
9736
|
span: 24 - ((Q = E.value) == null ? void 0 : Q.label_col)
|
@@ -9715,8 +9742,8 @@ const getProps$p = () => ({
|
|
9715
9742
|
return;
|
9716
9743
|
}
|
9717
9744
|
});
|
9718
|
-
watch(ce, (K,
|
9719
|
-
K === !0 &&
|
9745
|
+
watch(ce, (K, z) => {
|
9746
|
+
K === !0 && H(), z === !0 && K === !1 && q();
|
9720
9747
|
}, {
|
9721
9748
|
immediate: !0
|
9722
9749
|
}), watch(E, (K) => {
|
@@ -9724,7 +9751,7 @@ const getProps$p = () => ({
|
|
9724
9751
|
}, {
|
9725
9752
|
immediate: !0
|
9726
9753
|
});
|
9727
|
-
function
|
9754
|
+
function H() {
|
9728
9755
|
var K;
|
9729
9756
|
s.store.emit(a.formID, "open", {
|
9730
9757
|
isCreating: c.value,
|
@@ -9756,7 +9783,7 @@ const getProps$p = () => ({
|
|
9756
9783
|
}
|
9757
9784
|
}
|
9758
9785
|
async function J() {
|
9759
|
-
var K,
|
9786
|
+
var K, z;
|
9760
9787
|
try {
|
9761
9788
|
if (await s.store.emit(a.formID, "beforeOk", {
|
9762
9789
|
rules: Y,
|
@@ -9764,11 +9791,11 @@ const getProps$p = () => ({
|
|
9764
9791
|
}))
|
9765
9792
|
return;
|
9766
9793
|
try {
|
9767
|
-
await ((K =
|
9794
|
+
await ((K = W.value) == null ? void 0 : K.validate());
|
9768
9795
|
} catch (ne) {
|
9769
9796
|
KgUtil.throwIfNotFormError(ne);
|
9770
9797
|
}
|
9771
|
-
if (await ((
|
9798
|
+
if (await ((z = W.value) == null ? void 0 : z.validate()), await s.store.emit(a.formID, "afterValidate", {
|
9772
9799
|
model: s.model
|
9773
9800
|
}))
|
9774
9801
|
return;
|
@@ -9791,8 +9818,8 @@ const getProps$p = () => ({
|
|
9791
9818
|
}
|
9792
9819
|
}
|
9793
9820
|
async function fe() {
|
9794
|
-
var
|
9795
|
-
const K = (
|
9821
|
+
var z, Q, Z, ne, se, ie, le;
|
9822
|
+
const K = (z = b.value) == null ? void 0 : z.cmd;
|
9796
9823
|
if (!K) {
|
9797
9824
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9798
9825
|
VarButton: b.value
|
@@ -9820,8 +9847,8 @@ const getProps$p = () => ({
|
|
9820
9847
|
}
|
9821
9848
|
}
|
9822
9849
|
async function ge() {
|
9823
|
-
var
|
9824
|
-
const K = (
|
9850
|
+
var z, Q, Z, ne, se, ie, le;
|
9851
|
+
const K = (z = _.value) == null ? void 0 : z.cmd;
|
9825
9852
|
if (!K) {
|
9826
9853
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9827
9854
|
VarButton: _.value
|
@@ -9849,8 +9876,8 @@ const getProps$p = () => ({
|
|
9849
9876
|
}
|
9850
9877
|
}
|
9851
9878
|
async function be() {
|
9852
|
-
var
|
9853
|
-
const K = (
|
9879
|
+
var z, Q, Z, ne, se, ie, le;
|
9880
|
+
const K = (z = v.value) == null ? void 0 : z.cmd;
|
9854
9881
|
if (!K) {
|
9855
9882
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9856
9883
|
VarButton: v.value
|
@@ -9878,8 +9905,8 @@ const getProps$p = () => ({
|
|
9878
9905
|
}
|
9879
9906
|
}
|
9880
9907
|
async function ye() {
|
9881
|
-
var
|
9882
|
-
const K = (
|
9908
|
+
var z, Q, Z, ne, se, ie, le;
|
9909
|
+
const K = (z = C.value) == null ? void 0 : z.cmd;
|
9883
9910
|
if (!K) {
|
9884
9911
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9885
9912
|
VarButton: C.value
|
@@ -9914,8 +9941,8 @@ const getProps$p = () => ({
|
|
9914
9941
|
}
|
9915
9942
|
function me(K) {
|
9916
9943
|
var Q, Z;
|
9917
|
-
const
|
9918
|
-
return isFunction$2(
|
9944
|
+
const z = (Z = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[K.var_nam];
|
9945
|
+
return isFunction$2(z) ? createVNode(KgForm.Item, {
|
9919
9946
|
kgVarName: K.var_nam,
|
9920
9947
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9921
9948
|
kgRules: Y.value[K.var_nam],
|
@@ -9928,7 +9955,7 @@ const getProps$p = () => ({
|
|
9928
9955
|
varConfig: le,
|
9929
9956
|
varProfileDetail: ee,
|
9930
9957
|
varSubmitField: ue
|
9931
|
-
}) =>
|
9958
|
+
}) => z({
|
9932
9959
|
varName: ne,
|
9933
9960
|
props: se,
|
9934
9961
|
model: ie,
|
@@ -9945,7 +9972,7 @@ const getProps$p = () => ({
|
|
9945
9972
|
}
|
9946
9973
|
function Se() {
|
9947
9974
|
var Q;
|
9948
|
-
let K,
|
9975
|
+
let K, z;
|
9949
9976
|
return createVNode(KgResizable, {
|
9950
9977
|
kgType: ((Q = E.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9951
9978
|
kgMinWidth: G.value,
|
@@ -9960,7 +9987,7 @@ const getProps$p = () => ({
|
|
9960
9987
|
default: () => {
|
9961
9988
|
var Z, ne;
|
9962
9989
|
return [createVNode(KgForm, {
|
9963
|
-
ref:
|
9990
|
+
ref: W,
|
9964
9991
|
model: s.model.value,
|
9965
9992
|
layout: (ne = (Z = E.value) == null ? void 0 : Z.layout) != null ? ne : "vertical",
|
9966
9993
|
labelCol: P.value,
|
@@ -9972,10 +9999,10 @@ const getProps$p = () => ({
|
|
9972
9999
|
gutter: 12
|
9973
10000
|
}, _isSlot$7(K = U.value.map(me)) ? K : {
|
9974
10001
|
default: () => [K]
|
9975
|
-
}), U.value.length > 0 &&
|
10002
|
+
}), U.value.length > 0 && I.value.length > 0 && createVNode(Divider, null, null), I.value.length > 0 && createVNode(Row, {
|
9976
10003
|
gutter: 12
|
9977
|
-
}, _isSlot$7(
|
9978
|
-
default: () => [
|
10004
|
+
}, _isSlot$7(z = I.value.map(me)) ? z : {
|
10005
|
+
default: () => [z]
|
9979
10006
|
}), m.value && createVNode("div", {
|
9980
10007
|
style: "text-align: center; padding: 6px 0 12px;"
|
9981
10008
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -9985,11 +10012,11 @@ const getProps$p = () => ({
|
|
9985
10012
|
});
|
9986
10013
|
}
|
9987
10014
|
function Ce() {
|
9988
|
-
let K,
|
10015
|
+
let K, z;
|
9989
10016
|
return createVNode("div", null, [createVNode(Button, {
|
9990
10017
|
type: "primary",
|
9991
|
-
ghost: !
|
9992
|
-
disabled:
|
10018
|
+
ghost: !A.value,
|
10019
|
+
disabled: A.value,
|
9993
10020
|
onClick: re
|
9994
10021
|
}, _isSlot$7(K = n.t("kg.cancel")) ? K : {
|
9995
10022
|
default: () => [K]
|
@@ -9999,8 +10026,8 @@ const getProps$p = () => ({
|
|
9999
10026
|
loading: M.value,
|
10000
10027
|
danger: !!p.value,
|
10001
10028
|
onClick: J
|
10002
|
-
}, _isSlot$7(
|
10003
|
-
default: () => [
|
10029
|
+
}, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
|
10030
|
+
default: () => [z]
|
10004
10031
|
})]);
|
10005
10032
|
}
|
10006
10033
|
function Te() {
|
@@ -10845,13 +10872,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10845
10872
|
switch (P) {
|
10846
10873
|
case "setSelecte":
|
10847
10874
|
if (x[0] === s.formID) {
|
10848
|
-
const
|
10875
|
+
const H = x[1], q = x[2];
|
10849
10876
|
switch (!0) {
|
10850
|
-
case (q && !M.value.includes(
|
10851
|
-
N([...M.value,
|
10877
|
+
case (q && !M.value.includes(H[O.value])):
|
10878
|
+
N([...M.value, H[O.value]]);
|
10852
10879
|
break;
|
10853
|
-
case (!q && M.value.includes(
|
10854
|
-
N(without$1(M.value,
|
10880
|
+
case (!q && M.value.includes(H[O.value])):
|
10881
|
+
N(without$1(M.value, H[O.value]));
|
10855
10882
|
break;
|
10856
10883
|
}
|
10857
10884
|
}
|
@@ -10890,12 +10917,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10890
10917
|
var P, x;
|
10891
10918
|
return (x = (P = v.value) == null ? void 0 : P.cmd) != null ? x : null;
|
10892
10919
|
}), V = computed(() => {
|
10893
|
-
var x,
|
10920
|
+
var x, H, q, re, J, fe, ge;
|
10894
10921
|
let P = {
|
10895
|
-
pageNo:
|
10896
|
-
pageSize:
|
10922
|
+
pageNo: A.pageIndex,
|
10923
|
+
pageSize: A.pageSize,
|
10897
10924
|
...$,
|
10898
|
-
...(
|
10925
|
+
...(H = (x = i.model) == null ? void 0 : x.value) != null ? H : {}
|
10899
10926
|
};
|
10900
10927
|
return v.value && (P = {
|
10901
10928
|
...P,
|
@@ -10919,7 +10946,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10919
10946
|
}), U = computed(() => {
|
10920
10947
|
let P = "kg-table";
|
10921
10948
|
return !E.value && !T.value && (P += " kg-table--no-bottom"), P;
|
10922
|
-
}),
|
10949
|
+
}), I = ref([]), M = ref([]), A = reactive({
|
10923
10950
|
pageIndex: 1,
|
10924
10951
|
pageSize: 10,
|
10925
10952
|
total: 0
|
@@ -10927,12 +10954,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10927
10954
|
column: void 0,
|
10928
10955
|
order: void 0
|
10929
10956
|
}), D = watch(F, (P) => {
|
10930
|
-
P && (setTimeout(() => D()),
|
10957
|
+
P && (setTimeout(() => D()), A.pageSize = P), u.value = !0;
|
10931
10958
|
});
|
10932
10959
|
watch(k, (P) => {
|
10933
|
-
P.length > 0 && !P.includes(
|
10934
|
-
}), watch([L, y, i.isReady], ([P, x,
|
10935
|
-
P && x &&
|
10960
|
+
P.length > 0 && !P.includes(A.pageSize) && (A.pageSize = F.value);
|
10961
|
+
}), watch([L, y, i.isReady], ([P, x, H]) => {
|
10962
|
+
P && x && H && !c.store.getIsRetrieved(s.formID) && G(!0);
|
10936
10963
|
}, {
|
10937
10964
|
immediate: !0
|
10938
10965
|
}), onUnmounted(() => {
|
@@ -10946,10 +10973,10 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10946
10973
|
}
|
10947
10974
|
switch (P == null ? void 0 : P.detail) {
|
10948
10975
|
case 1:
|
10949
|
-
M.value = [x[O.value]], c.store.setSelectedRows(s.formID, M.value.map((
|
10976
|
+
M.value = [x[O.value]], c.store.setSelectedRows(s.formID, M.value.map((H) => {
|
10950
10977
|
var q;
|
10951
|
-
return (q =
|
10952
|
-
}).filter((
|
10978
|
+
return (q = I.value) == null ? void 0 : q.find((re) => re[O.value] === H);
|
10979
|
+
}).filter((H) => !!H));
|
10953
10980
|
break;
|
10954
10981
|
case 2:
|
10955
10982
|
c.store.emit(s.formID, "rowDoubleClick", x);
|
@@ -10959,11 +10986,11 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10959
10986
|
}
|
10960
10987
|
function G(P = !1) {
|
10961
10988
|
const x = watch(u, (q) => {
|
10962
|
-
q && (setTimeout(() => x()),
|
10989
|
+
q && (setTimeout(() => x()), H());
|
10963
10990
|
}, {
|
10964
10991
|
immediate: !0
|
10965
10992
|
});
|
10966
|
-
async function
|
10993
|
+
async function H() {
|
10967
10994
|
var q, re;
|
10968
10995
|
if (!L.value) {
|
10969
10996
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10971,7 +10998,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10971
10998
|
});
|
10972
10999
|
return;
|
10973
11000
|
}
|
10974
|
-
P && (
|
11001
|
+
P && (A.pageIndex = 1), c.store.setIsRetrieving(s.formID, !0);
|
10975
11002
|
try {
|
10976
11003
|
const J = await httpClient().request({
|
10977
11004
|
method: "GET",
|
@@ -10982,18 +11009,18 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10982
11009
|
});
|
10983
11010
|
switch (!0) {
|
10984
11011
|
case !J:
|
10985
|
-
|
11012
|
+
I.value = [], A.total = 0;
|
10986
11013
|
break;
|
10987
11014
|
case isArrayLike(J):
|
10988
|
-
|
11015
|
+
I.value = J, A.total = J.length;
|
10989
11016
|
break;
|
10990
11017
|
case ("total" in J && "records" in J):
|
10991
|
-
|
11018
|
+
I.value = (q = J.records) != null ? q : [], A.total = (re = J.total) != null ? re : 0;
|
10992
11019
|
break;
|
10993
11020
|
}
|
10994
11021
|
c.store.emit(s.formID, "retrieve", {
|
10995
11022
|
page: J,
|
10996
|
-
datas:
|
11023
|
+
datas: I
|
10997
11024
|
}), R(), g.value = [], await nextTick(), c.store.setIsRetrieved(s.formID, !0);
|
10998
11025
|
} catch (J) {
|
10999
11026
|
throw J;
|
@@ -11004,12 +11031,12 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11004
11031
|
}
|
11005
11032
|
function N(P) {
|
11006
11033
|
M.value = P, c.store.setSelectedRows(s.formID, M.value.map((x) => {
|
11007
|
-
var
|
11008
|
-
return (
|
11034
|
+
var H;
|
11035
|
+
return (H = I.value) == null ? void 0 : H.find((q) => q[O.value] === x);
|
11009
11036
|
}).filter((x) => !!x));
|
11010
11037
|
}
|
11011
11038
|
function B(P) {
|
11012
|
-
var x,
|
11039
|
+
var x, H;
|
11013
11040
|
switch (C.value) {
|
11014
11041
|
case !0:
|
11015
11042
|
{
|
@@ -11020,40 +11047,49 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11020
11047
|
case !1:
|
11021
11048
|
{
|
11022
11049
|
const q = P[O.value];
|
11023
|
-
(
|
11050
|
+
(H = M.value) != null && H.includes(q) ? M.value = [] : M.value = [q];
|
11024
11051
|
}
|
11025
11052
|
break;
|
11026
11053
|
}
|
11027
11054
|
c.store.setSelectedRows(s.formID, M.value.map((q) => {
|
11028
11055
|
var re;
|
11029
|
-
return (re =
|
11056
|
+
return (re = I.value) == null ? void 0 : re.find((J) => J[O.value] === q);
|
11030
11057
|
}).filter((q) => !!q));
|
11031
11058
|
}
|
11032
|
-
function
|
11059
|
+
function W(P, x) {
|
11033
11060
|
x.width = P, s.store.setVarGridDetailWidth(s.formID, x.dataIndex, P);
|
11034
11061
|
}
|
11035
|
-
async function Y(P, x,
|
11062
|
+
async function Y(P, x, H, q) {
|
11036
11063
|
var re;
|
11037
11064
|
switch (q.action) {
|
11038
11065
|
case "sort":
|
11039
11066
|
{
|
11040
11067
|
await nextTick();
|
11041
|
-
let J =
|
11068
|
+
let J = H;
|
11042
11069
|
J.order ? ($.column = (re = J.field) != null ? re : void 0, $.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : ($.column = void 0, $.order = void 0), G(!0);
|
11043
11070
|
}
|
11044
11071
|
break;
|
11045
11072
|
}
|
11046
11073
|
}
|
11047
11074
|
function X(P, x) {
|
11048
|
-
|
11075
|
+
var q;
|
11076
|
+
const H = x[O.value];
|
11077
|
+
switch ((q = s.varGridConfig.value) == null ? void 0 : q.expand_accordion_flg) {
|
11078
|
+
case 0:
|
11079
|
+
P ? g.value = uniq([...g.value, H]) : g.value = without$1(g.value, H);
|
11080
|
+
break;
|
11081
|
+
default:
|
11082
|
+
P ? g.value = [H] : g.value = [];
|
11083
|
+
break;
|
11084
|
+
}
|
11049
11085
|
}
|
11050
11086
|
function ae(P, x) {
|
11051
|
-
x !==
|
11087
|
+
x !== A.pageSize ? (A.pageIndex = 1, A.pageSize = x) : A.pageIndex = P, G();
|
11052
11088
|
}
|
11053
11089
|
function te(P) {
|
11054
11090
|
M.value = [P[O.value]], c.store.setSelectedRows(s.formID, M.value.map((x) => {
|
11055
|
-
var
|
11056
|
-
return (
|
11091
|
+
var H;
|
11092
|
+
return (H = I.value) == null ? void 0 : H.find((q) => q[O.value] === x);
|
11057
11093
|
}).filter((x) => !!x)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11058
11094
|
}
|
11059
11095
|
function ce({
|
@@ -11070,28 +11106,28 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11070
11106
|
function de({
|
11071
11107
|
column: P,
|
11072
11108
|
index: x,
|
11073
|
-
record:
|
11109
|
+
record: H,
|
11074
11110
|
value: q,
|
11075
11111
|
text: re
|
11076
11112
|
}) {
|
11077
11113
|
let J = "";
|
11078
11114
|
P.customRender ? J = P.customRender({
|
11079
11115
|
index: x,
|
11080
|
-
record:
|
11116
|
+
record: H,
|
11081
11117
|
column: P,
|
11082
11118
|
text: re,
|
11083
11119
|
value: q,
|
11084
11120
|
renderIndex: x
|
11085
11121
|
}) : J = q;
|
11086
11122
|
const fe = createVNode(KgTableCell, {
|
11087
|
-
kgRow:
|
11123
|
+
kgRow: H,
|
11088
11124
|
kgValue: J,
|
11089
11125
|
kgVarName: P.dataIndex,
|
11090
|
-
onKgUpdateLinkClick: () => te(
|
11126
|
+
onKgUpdateLinkClick: () => te(H)
|
11091
11127
|
}, null);
|
11092
11128
|
return t.bodyCell ? t.bodyCell({
|
11093
11129
|
value: q,
|
11094
|
-
record:
|
11130
|
+
record: H,
|
11095
11131
|
index: x,
|
11096
11132
|
column: P,
|
11097
11133
|
defaultRender: fe
|
@@ -11116,16 +11152,16 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11116
11152
|
pagination: !1,
|
11117
11153
|
showSorterTooltip: !1,
|
11118
11154
|
columns: p.value,
|
11119
|
-
dataSource:
|
11155
|
+
dataSource: I.value,
|
11120
11156
|
loading: b.value,
|
11121
11157
|
rowKey: O.value,
|
11122
11158
|
rowSelection: w.value,
|
11123
11159
|
expandColumnWidth: 28,
|
11124
11160
|
expandedRowKeys: g.value,
|
11125
11161
|
customRow: (x) => ({
|
11126
|
-
onClick: (
|
11162
|
+
onClick: (H) => R(H, x)
|
11127
11163
|
}),
|
11128
|
-
onResizeColumn:
|
11164
|
+
onResizeColumn: W,
|
11129
11165
|
onChange: Y,
|
11130
11166
|
onExpand: X
|
11131
11167
|
}, {
|
@@ -11139,7 +11175,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11139
11175
|
class: "left"
|
11140
11176
|
}, [E.value && createVNode(KgTableInfo, {
|
11141
11177
|
kgShowClearCheck: M.value.length > 0,
|
11142
|
-
kgShowClearTable:
|
11178
|
+
kgShowClearTable: A.total > 0,
|
11143
11179
|
kgShowLocate: M.value.length === 1,
|
11144
11180
|
kgTotal: M.value.length,
|
11145
11181
|
kgDisabled: b.value
|
@@ -11147,23 +11183,23 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11147
11183
|
class: "right"
|
11148
11184
|
}, [T.value && createVNode(Pagination, {
|
11149
11185
|
size: "default",
|
11150
|
-
current:
|
11151
|
-
pageSize:
|
11186
|
+
current: A.pageIndex,
|
11187
|
+
pageSize: A.pageSize,
|
11152
11188
|
pageSizeOptions: k.value.map((x) => String(x)),
|
11153
|
-
total:
|
11189
|
+
total: A.total,
|
11154
11190
|
showSizeChanger: !0,
|
11155
11191
|
showQuickJumper: !1,
|
11156
11192
|
hideOnSinglePage: !1,
|
11157
|
-
disabled: b.value ||
|
11193
|
+
disabled: b.value || A.total === 0,
|
11158
11194
|
locale: {
|
11159
11195
|
page: ""
|
11160
11196
|
},
|
11161
|
-
showTotal: (x,
|
11162
|
-
from:
|
11163
|
-
to:
|
11197
|
+
showTotal: (x, H) => o.t("kg.KgTable.totalText", {
|
11198
|
+
from: H[0],
|
11199
|
+
to: H[1],
|
11164
11200
|
total: x
|
11165
11201
|
}),
|
11166
|
-
onChange: (x,
|
11202
|
+
onChange: (x, H) => ae(x, H)
|
11167
11203
|
}, null)])])]);
|
11168
11204
|
};
|
11169
11205
|
}
|
@@ -12295,7 +12331,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12295
12331
|
});
|
12296
12332
|
l.value = l.value.map((V) => {
|
12297
12333
|
var U;
|
12298
|
-
const w = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((
|
12334
|
+
const w = (U = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : U.find((I) => I.var_nam === V.var_nam);
|
12299
12335
|
return w ? {
|
12300
12336
|
...V,
|
12301
12337
|
...w,
|
@@ -12562,9 +12598,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12562
12598
|
});
|
12563
12599
|
let y;
|
12564
12600
|
const E = computed(() => v.value.kgHeight === g.value), T = computed(() => n.store.getVarButtonSearch(n.formID)), O = computed(() => {
|
12565
|
-
var N, B,
|
12601
|
+
var N, B, W;
|
12566
12602
|
if (n.t((N = T.value) == null ? void 0 : N.var_nam).value !== ((B = T.value) == null ? void 0 : B.var_nam))
|
12567
|
-
return n.t((
|
12603
|
+
return n.t((W = T.value) == null ? void 0 : W.var_nam).value;
|
12568
12604
|
}), k = computed(() => {
|
12569
12605
|
var N;
|
12570
12606
|
switch ((N = T.value) == null ? void 0 : N.primary_flg) {
|
@@ -12585,10 +12621,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12585
12621
|
watch(n.currentVarProfileDetails, (N) => {
|
12586
12622
|
if (N) {
|
12587
12623
|
const B = {};
|
12588
|
-
N.forEach((
|
12589
|
-
B[
|
12590
|
-
}), v.value.kgHeight = c.value, a.store.setModel(n.formID, reactive(B)), F.value ? (y == null || y(), y = watch(_, (
|
12591
|
-
|
12624
|
+
N.forEach((W) => {
|
12625
|
+
B[W.var_nam] = "";
|
12626
|
+
}), v.value.kgHeight = c.value, a.store.setModel(n.formID, reactive(B)), F.value ? (y == null || y(), y = watch(_, (W) => {
|
12627
|
+
W && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12592
12628
|
}, {
|
12593
12629
|
immediate: !0
|
12594
12630
|
})) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
@@ -12612,7 +12648,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12612
12648
|
});
|
12613
12649
|
}
|
12614
12650
|
a.store.setSearchFn(n.formID, U);
|
12615
|
-
function
|
12651
|
+
function I() {
|
12616
12652
|
var N;
|
12617
12653
|
(N = _.value) == null || N.resetFields(), F.value ? _.value && _.value.validate().then(() => {
|
12618
12654
|
a.store.emit(n.formID, "reset");
|
@@ -12622,11 +12658,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12622
12658
|
});
|
12623
12659
|
}) : a.store.emit(n.formID, "reset");
|
12624
12660
|
}
|
12625
|
-
a.store.setResetFn(n.formID,
|
12661
|
+
a.store.setResetFn(n.formID, I);
|
12626
12662
|
function M() {
|
12627
12663
|
return U(!0), Promise.resolve(!0);
|
12628
12664
|
}
|
12629
|
-
function
|
12665
|
+
function A() {
|
12630
12666
|
var N;
|
12631
12667
|
return createVNode("div", {
|
12632
12668
|
class: "title",
|
@@ -12639,8 +12675,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12639
12675
|
}, [t.KgSearch.left()]), E.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12640
12676
|
}
|
12641
12677
|
function $() {
|
12642
|
-
var N, B,
|
12643
|
-
return ((
|
12678
|
+
var N, B, W, Y;
|
12679
|
+
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, {
|
12644
12680
|
value: (Y = n.currentVarProfileMasterID.value) != null ? Y : void 0,
|
12645
12681
|
"onUpdate:value": (X) => n.store.setCurrentVarProfileMasterID(n.formID, X),
|
12646
12682
|
disabled: m.value,
|
@@ -12670,18 +12706,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12670
12706
|
}, null)]);
|
12671
12707
|
}
|
12672
12708
|
function D() {
|
12673
|
-
var N, B,
|
12709
|
+
var N, B, W, Y, X;
|
12674
12710
|
return createVNode(Fragment, null, [$(), !(((N = T.value) == null ? void 0 : N.permission_type) !== 2 && !r.p((B = T.value) == null ? void 0 : B.permission_code)) && createVNode(Button, {
|
12675
12711
|
type: "primary",
|
12676
12712
|
ghost: !p.value,
|
12677
12713
|
disabled: p.value,
|
12678
|
-
onClick:
|
12714
|
+
onClick: I,
|
12679
12715
|
class: "kg-search-btn-reset"
|
12680
12716
|
}, {
|
12681
12717
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
12682
12718
|
}), createVNode(KgButton.Item, {
|
12683
12719
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12684
|
-
kgVarName: (
|
12720
|
+
kgVarName: (W = T.value) == null ? void 0 : W.var_nam,
|
12685
12721
|
kgIcon: (Y = T.value) == null ? void 0 : Y.icon,
|
12686
12722
|
kgText: O.value,
|
12687
12723
|
kgColor: (X = T.value) == null ? void 0 : X.color,
|
@@ -12705,8 +12741,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12705
12741
|
}, {
|
12706
12742
|
default: () => {
|
12707
12743
|
var B;
|
12708
|
-
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((
|
12709
|
-
kgVarName:
|
12744
|
+
return [(B = n.currentVarProfileDetails.value) == null ? void 0 : B.map((W) => createVNode(KgForm.Item, {
|
12745
|
+
kgVarName: W.var_nam,
|
12710
12746
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
12711
12747
|
onKgSubmit: () => U(!0)
|
12712
12748
|
}, null))];
|
@@ -12740,7 +12776,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12740
12776
|
}, [createVNode(Spin, {
|
12741
12777
|
spinning: L.value
|
12742
12778
|
}, {
|
12743
|
-
default: () => [
|
12779
|
+
default: () => [A(), createVNode("div", {
|
12744
12780
|
class: "ant-collapse-extra"
|
12745
12781
|
}, [D()])]
|
12746
12782
|
})])]
|
@@ -13219,23 +13255,23 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13219
13255
|
columnWidth: 32,
|
13220
13256
|
hideSelectAll: !0,
|
13221
13257
|
selectedRowKeys: g,
|
13222
|
-
onSelect: (
|
13258
|
+
onSelect: (I) => F(I)
|
13223
13259
|
}), m = ref({
|
13224
13260
|
visible: !1
|
13225
13261
|
}), b = computed(() => !!(unref(u) || unref(a) || unref(o) || unref(s))), _ = computed(() => {
|
13226
|
-
var
|
13227
|
-
return !!u.value || ((
|
13262
|
+
var I;
|
13263
|
+
return !!u.value || ((I = n.getSelectedVarCatalog) == null ? void 0 : I.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13228
13264
|
}), v = computed(() => !!(!unref(u) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13229
|
-
watch(() => n.getSelectedVar, (
|
13230
|
-
|
13265
|
+
watch(() => n.getSelectedVar, (I) => {
|
13266
|
+
I ? y() : (u.value = null, c.value = [], n.setSelectedVarCatalog(null));
|
13231
13267
|
}, {
|
13232
13268
|
immediate: !0
|
13233
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
13234
|
-
var M,
|
13235
|
-
l.value.var_text = (M =
|
13269
|
+
}), watch(() => n.getSelectedVarCatalog, async (I) => {
|
13270
|
+
var M, A;
|
13271
|
+
l.value.var_text = (M = I == null ? void 0 : I.var_text) != null ? M : "", (A = i.value) == null || A.clearValidate();
|
13236
13272
|
});
|
13237
|
-
async function y(
|
13238
|
-
var M,
|
13273
|
+
async function y(I = !1) {
|
13274
|
+
var M, A, $;
|
13239
13275
|
a.value = !0;
|
13240
13276
|
try {
|
13241
13277
|
const {
|
@@ -13250,14 +13286,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13250
13286
|
order: "asc"
|
13251
13287
|
}
|
13252
13288
|
});
|
13253
|
-
if (u.value = null, c.value = D != null ? D : [],
|
13289
|
+
if (u.value = null, c.value = D != null ? D : [], I) {
|
13254
13290
|
const R = c.value.find((G) => {
|
13255
13291
|
var N;
|
13256
13292
|
return G.id === ((N = n.getSelectedVarCatalog) == null ? void 0 : N.id);
|
13257
13293
|
});
|
13258
13294
|
n.setSelectedVarCatalog(R != null ? R : null), g.value = R != null && R.id ? [R.id] : [];
|
13259
13295
|
} else
|
13260
|
-
n.setSelectedVarCatalog((
|
13296
|
+
n.setSelectedVarCatalog((A = c.value[0]) != null ? A : null), g.value = ($ = c.value[0]) != null && $.id ? [c.value[0].id] : [];
|
13261
13297
|
} catch (D) {
|
13262
13298
|
Logger.debug(D == null ? void 0 : D.message);
|
13263
13299
|
} finally {
|
@@ -13265,12 +13301,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13265
13301
|
}
|
13266
13302
|
}
|
13267
13303
|
async function E() {
|
13268
|
-
var
|
13304
|
+
var I, M, A;
|
13269
13305
|
try {
|
13270
|
-
o.value = !0, await ((
|
13306
|
+
o.value = !0, await ((I = i.value) == null ? void 0 : I.validate());
|
13271
13307
|
const $ = new VarCatalog({
|
13272
13308
|
...(M = n.getSelectedVarCatalog) != null ? M : {},
|
13273
|
-
var_text: (
|
13309
|
+
var_text: (A = l.value) == null ? void 0 : A.var_text
|
13274
13310
|
});
|
13275
13311
|
$.id ? $.cust_lvl === KG_CUSTOM_LEVEL.L0 ? ($.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty($, "id"), await Add({
|
13276
13312
|
data: $
|
@@ -13298,16 +13334,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13298
13334
|
}
|
13299
13335
|
}
|
13300
13336
|
function T({
|
13301
|
-
isAllForm:
|
13337
|
+
isAllForm: I,
|
13302
13338
|
isAllLanguage: M
|
13303
13339
|
}) {
|
13304
|
-
var
|
13340
|
+
var A, $, D;
|
13305
13341
|
u.value = new VarCatalog({
|
13306
13342
|
id: "",
|
13307
13343
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
13308
|
-
grp_nam: (
|
13344
|
+
grp_nam: (A = n.getSelectedVar) == null ? void 0 : A.grp_nam,
|
13309
13345
|
var_nam: ($ = n.getSelectedVar) == null ? void 0 : $.var_nam,
|
13310
|
-
frm_id:
|
13346
|
+
frm_id: I || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
13311
13347
|
locale_id: M ? "ALL" : (D = t.locale) == null ? void 0 : D.value,
|
13312
13348
|
var_text: ""
|
13313
13349
|
}), c.value = [...c.value, u.value], n.setSelectedVarCatalog(unref(u)), g.value = [""];
|
@@ -13315,16 +13351,16 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13315
13351
|
function O() {
|
13316
13352
|
var M;
|
13317
13353
|
c.value = without$1(c.value, u.value), u.value = null;
|
13318
|
-
const
|
13319
|
-
n.setSelectedVarCatalog(
|
13354
|
+
const I = (M = c.value[0]) != null ? M : null;
|
13355
|
+
n.setSelectedVarCatalog(I), g.value = I ? [I.id] : [];
|
13320
13356
|
}
|
13321
13357
|
function k() {
|
13322
13358
|
KgUtil.confirm({
|
13323
13359
|
onOk: async () => {
|
13324
|
-
var
|
13360
|
+
var I;
|
13325
13361
|
await Delete({
|
13326
13362
|
params: {
|
13327
|
-
id: (
|
13363
|
+
id: (I = n.getSelectedVarCatalog) == null ? void 0 : I.id
|
13328
13364
|
}
|
13329
13365
|
}, {
|
13330
13366
|
successMessageMode: "none",
|
@@ -13335,14 +13371,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13335
13371
|
}
|
13336
13372
|
});
|
13337
13373
|
}
|
13338
|
-
function F(
|
13374
|
+
function F(I) {
|
13339
13375
|
var M;
|
13340
|
-
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !==
|
13376
|
+
((M = n.getSelectedVarCatalog) == null ? void 0 : M.id) !== I.id && (unref(u) ? KgUtil.confirm({
|
13341
13377
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
13342
13378
|
onOk: () => {
|
13343
|
-
c.value = without$1(c.value, u.value), u.value = null, n.setSelectedVarCatalog(unref(
|
13379
|
+
c.value = without$1(c.value, u.value), u.value = null, n.setSelectedVarCatalog(unref(I)), g.value = [I.id];
|
13344
13380
|
}
|
13345
|
-
}) : (n.setSelectedVarCatalog(unref(
|
13381
|
+
}) : (n.setSelectedVarCatalog(unref(I)), g.value = [I.id]));
|
13346
13382
|
}
|
13347
13383
|
function L() {
|
13348
13384
|
m.value.visible = !0;
|
@@ -13367,7 +13403,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13367
13403
|
})]);
|
13368
13404
|
}
|
13369
13405
|
function w() {
|
13370
|
-
let
|
13406
|
+
let I, M;
|
13371
13407
|
return createVNode("div", {
|
13372
13408
|
class: "form"
|
13373
13409
|
}, [createVNode(Form, {
|
@@ -13384,7 +13420,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13384
13420
|
}, {
|
13385
13421
|
default: () => [createVNode(Textarea, {
|
13386
13422
|
value: l.value.var_text,
|
13387
|
-
"onUpdate:value": (
|
13423
|
+
"onUpdate:value": (A) => l.value.var_text = A,
|
13388
13424
|
disabled: !n.getSelectedVarCatalog
|
13389
13425
|
}, null), createVNode("button", {
|
13390
13426
|
hidden: !0
|
@@ -13395,8 +13431,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13395
13431
|
}, [createVNode(Button, {
|
13396
13432
|
disabled: v.value,
|
13397
13433
|
onClick: O
|
13398
|
-
}, _isSlot(
|
13399
|
-
default: () => [
|
13434
|
+
}, _isSlot(I = t.t("common.cancelText")) ? I : {
|
13435
|
+
default: () => [I]
|
13400
13436
|
}), createVNode(Button, {
|
13401
13437
|
loading: o.value,
|
13402
13438
|
disabled: C.value,
|
@@ -13406,10 +13442,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13406
13442
|
default: () => [M]
|
13407
13443
|
})])]);
|
13408
13444
|
}
|
13409
|
-
function U(
|
13410
|
-
var
|
13445
|
+
function U(I) {
|
13446
|
+
var A;
|
13411
13447
|
let M = "";
|
13412
|
-
return
|
13448
|
+
return I.id || (M += " ant-table-row-create"), I.id === ((A = n.getSelectedVarCatalog) == null ? void 0 : A.id) && (M += " ant-table-row-selected "), M;
|
13413
13449
|
}
|
13414
13450
|
return () => createVNode("div", {
|
13415
13451
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -13427,12 +13463,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13427
13463
|
loading: a.value,
|
13428
13464
|
rowClassName: U,
|
13429
13465
|
rowSelection: p.value,
|
13430
|
-
customRow: (
|
13431
|
-
onClick: () => F(
|
13466
|
+
customRow: (I) => ({
|
13467
|
+
onClick: () => F(I)
|
13432
13468
|
})
|
13433
13469
|
}, null), w(), createVNode(KgVarConfigModalVarCreateModal, {
|
13434
13470
|
visible: m.value.visible,
|
13435
|
-
"onUpdate:visible": (
|
13471
|
+
"onUpdate:visible": (I) => m.value.visible = I,
|
13436
13472
|
onKgOk: T
|
13437
13473
|
}, null)]);
|
13438
13474
|
}
|
@@ -13771,8 +13807,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13771
13807
|
var O;
|
13772
13808
|
const T = (O = o.value) == null ? void 0 : O.toUpperCase();
|
13773
13809
|
return u.value.filter((k) => {
|
13774
|
-
var F, L, V, w, U,
|
13775
|
-
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)) || ((
|
13810
|
+
var F, L, V, w, U, I;
|
13811
|
+
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));
|
13776
13812
|
});
|
13777
13813
|
}), p = computed(() => {
|
13778
13814
|
var T, O;
|