@kengic/vue 0.5.19 → 0.5.20
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 +770 -725
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +13 -5
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Date.d.ts +6 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Input.d.ts +6 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.InputNumber.d.ts +6 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Select.d.ts +10 -3
- package/dist/src/components/KgForm.Item/components/KgForm.Item.Switch.d.ts +6 -2
- package/dist/src/components/KgForm.Item/index.vm.d.ts +9 -4
- package/dist/src/components/KgSearch/index.store.d.ts +10 -10
- package/dist/src/components/KgVar/index.hooks.d.ts +7 -1
- package/dist/src/components/KgVar/index.store.d.ts +42 -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 ye = Object.defineProperty;
|
2
|
+
var Se = (e, t, r) => t in e ? ye(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var d = (e, t, r) => (Se(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, mergeProps, onMounted, isVNode, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Button, Modal, Progress, Spin, DatePicker, Input, InputNumber, Select, Switch, Col, Form, Drawer, Row, Divider, message, Tag, Tabs, Dropdown, Menu, Checkbox, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
|
6
6
|
const index$7 = "";
|
@@ -2528,8 +2528,8 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2528
2528
|
v || (v = p == "constructor");
|
2529
2529
|
}
|
2530
2530
|
if (m && !v) {
|
2531
|
-
var k = e.constructor,
|
2532
|
-
k !=
|
2531
|
+
var k = e.constructor, V = t.constructor;
|
2532
|
+
k != V && "constructor" in e && "constructor" in t && !(typeof k == "function" && k instanceof k && typeof V == "function" && V instanceof V) && (m = !1);
|
2533
2533
|
}
|
2534
2534
|
return o.delete(e), o.delete(t), m;
|
2535
2535
|
}
|
@@ -4579,184 +4579,184 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4579
4579
|
var O = ["th", "st", "nd", "rd"], M = w % 100;
|
4580
4580
|
return "[" + w + (O[(M - 20) % 10] || O[M] || O[0]) + "]";
|
4581
4581
|
} }, E = function(w, O, M) {
|
4582
|
-
var
|
4583
|
-
return !
|
4582
|
+
var N = String(w);
|
4583
|
+
return !N || N.length >= O ? w : "" + Array(O + 1 - N.length).join(M) + w;
|
4584
4584
|
}, k = { s: E, z: function(w) {
|
4585
|
-
var O = -w.utcOffset(), M = Math.abs(O),
|
4586
|
-
return (O <= 0 ? "+" : "-") + E(
|
4585
|
+
var O = -w.utcOffset(), M = Math.abs(O), N = Math.floor(M / 60), L = M % 60;
|
4586
|
+
return (O <= 0 ? "+" : "-") + E(N, 2, "0") + ":" + E(L, 2, "0");
|
4587
4587
|
}, m: function w(O, M) {
|
4588
4588
|
if (O.date() < M.date())
|
4589
4589
|
return -w(M, O);
|
4590
|
-
var
|
4591
|
-
return +(-(
|
4590
|
+
var N = 12 * (M.year() - O.year()) + (M.month() - O.month()), L = O.clone().add(N, g), G = M - L < 0, P = O.clone().add(N + (G ? -1 : 1), g);
|
4591
|
+
return +(-(N + (M - L) / (G ? L - P : P - L)) || 0);
|
4592
4592
|
}, a: function(w) {
|
4593
4593
|
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4594
4594
|
}, p: function(w) {
|
4595
4595
|
return { M: g, y: _, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
4596
4596
|
}, u: function(w) {
|
4597
4597
|
return w === void 0;
|
4598
|
-
} },
|
4599
|
-
T[
|
4600
|
-
var
|
4601
|
-
return w instanceof
|
4602
|
-
}, F = function w(O, M,
|
4603
|
-
var
|
4598
|
+
} }, V = "en", T = {};
|
4599
|
+
T[V] = y;
|
4600
|
+
var K = function(w) {
|
4601
|
+
return w instanceof B;
|
4602
|
+
}, F = function w(O, M, N) {
|
4603
|
+
var L;
|
4604
4604
|
if (!O)
|
4605
|
-
return
|
4605
|
+
return V;
|
4606
4606
|
if (typeof O == "string") {
|
4607
4607
|
var G = O.toLowerCase();
|
4608
|
-
T[G] && (
|
4608
|
+
T[G] && (L = G), M && (T[G] = M, L = G);
|
4609
4609
|
var P = O.split("-");
|
4610
|
-
if (!
|
4610
|
+
if (!L && P.length > 1)
|
4611
4611
|
return w(P[0]);
|
4612
4612
|
} else {
|
4613
|
-
var
|
4614
|
-
T[
|
4613
|
+
var U = O.name;
|
4614
|
+
T[U] = O, L = U;
|
4615
4615
|
}
|
4616
|
-
return !
|
4616
|
+
return !N && L && (V = L), L || !N && V;
|
4617
4617
|
}, I = function(w, O) {
|
4618
|
-
if (
|
4618
|
+
if (K(w))
|
4619
4619
|
return w.clone();
|
4620
4620
|
var M = typeof O == "object" ? O : {};
|
4621
|
-
return M.date = w, M.args = arguments, new
|
4622
|
-
},
|
4623
|
-
|
4621
|
+
return M.date = w, M.args = arguments, new B(M);
|
4622
|
+
}, $ = k;
|
4623
|
+
$.l = F, $.i = K, $.w = function(w, O) {
|
4624
4624
|
return I(w, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
4625
4625
|
};
|
4626
|
-
var
|
4626
|
+
var B = function() {
|
4627
4627
|
function w(M) {
|
4628
4628
|
this.$L = F(M.locale, null, !0), this.parse(M);
|
4629
4629
|
}
|
4630
4630
|
var O = w.prototype;
|
4631
4631
|
return O.parse = function(M) {
|
4632
|
-
this.$d = function(
|
4633
|
-
var
|
4634
|
-
if (
|
4632
|
+
this.$d = function(N) {
|
4633
|
+
var L = N.date, G = N.utc;
|
4634
|
+
if (L === null)
|
4635
4635
|
return new Date(NaN);
|
4636
|
-
if (
|
4636
|
+
if ($.u(L))
|
4637
4637
|
return new Date();
|
4638
|
-
if (
|
4639
|
-
return new Date(
|
4640
|
-
if (typeof
|
4641
|
-
var P =
|
4638
|
+
if (L instanceof Date)
|
4639
|
+
return new Date(L);
|
4640
|
+
if (typeof L == "string" && !/Z$/i.test(L)) {
|
4641
|
+
var P = L.match(v);
|
4642
4642
|
if (P) {
|
4643
|
-
var
|
4644
|
-
return G ? new Date(Date.UTC(P[1],
|
4643
|
+
var U = P[2] - 1 || 0, z = (P[7] || "0").substring(0, 3);
|
4644
|
+
return G ? new Date(Date.UTC(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z)) : new Date(P[1], U, P[3] || 1, P[4] || 0, P[5] || 0, P[6] || 0, z);
|
4645
4645
|
}
|
4646
4646
|
}
|
4647
|
-
return new Date(
|
4647
|
+
return new Date(L);
|
4648
4648
|
}(M), this.$x = M.x || {}, this.init();
|
4649
4649
|
}, O.init = function() {
|
4650
4650
|
var M = this.$d;
|
4651
4651
|
this.$y = M.getFullYear(), this.$M = M.getMonth(), this.$D = M.getDate(), this.$W = M.getDay(), this.$H = M.getHours(), this.$m = M.getMinutes(), this.$s = M.getSeconds(), this.$ms = M.getMilliseconds();
|
4652
4652
|
}, O.$utils = function() {
|
4653
|
-
return
|
4653
|
+
return $;
|
4654
4654
|
}, O.isValid = function() {
|
4655
4655
|
return this.$d.toString() !== m;
|
4656
|
-
}, O.isSame = function(M,
|
4657
|
-
var
|
4658
|
-
return this.startOf(
|
4659
|
-
}, O.isAfter = function(M,
|
4660
|
-
return I(M) < this.startOf(
|
4661
|
-
}, O.isBefore = function(M,
|
4662
|
-
return this.endOf(
|
4663
|
-
}, O.$g = function(M,
|
4664
|
-
return
|
4656
|
+
}, O.isSame = function(M, N) {
|
4657
|
+
var L = I(M);
|
4658
|
+
return this.startOf(N) <= L && L <= this.endOf(N);
|
4659
|
+
}, O.isAfter = function(M, N) {
|
4660
|
+
return I(M) < this.startOf(N);
|
4661
|
+
}, O.isBefore = function(M, N) {
|
4662
|
+
return this.endOf(N) < I(M);
|
4663
|
+
}, O.$g = function(M, N, L) {
|
4664
|
+
return $.u(M) ? this[N] : this.set(L, M);
|
4665
4665
|
}, O.unix = function() {
|
4666
4666
|
return Math.floor(this.valueOf() / 1e3);
|
4667
4667
|
}, O.valueOf = function() {
|
4668
4668
|
return this.$d.getTime();
|
4669
|
-
}, O.startOf = function(M,
|
4670
|
-
var
|
4671
|
-
var te =
|
4669
|
+
}, O.startOf = function(M, N) {
|
4670
|
+
var L = this, G = !!$.u(N) || N, P = $.p(M), U = function(ee, q) {
|
4671
|
+
var te = $.w(L.$u ? Date.UTC(L.$y, q, ee) : new Date(L.$y, q, ee), L);
|
4672
4672
|
return G ? te : te.endOf(u);
|
4673
|
-
},
|
4674
|
-
return
|
4675
|
-
}, Y = this.$W, J = this.$M,
|
4673
|
+
}, z = function(ee, q) {
|
4674
|
+
return $.w(L.toDate()[ee].apply(L.toDate("s"), (G ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), L);
|
4675
|
+
}, Y = this.$W, J = this.$M, D = this.$D, x = "set" + (this.$u ? "UTC" : "");
|
4676
4676
|
switch (P) {
|
4677
4677
|
case _:
|
4678
|
-
return G ?
|
4678
|
+
return G ? U(1, 0) : U(31, 11);
|
4679
4679
|
case g:
|
4680
|
-
return G ?
|
4680
|
+
return G ? U(1, J) : U(0, J + 1);
|
4681
4681
|
case c:
|
4682
|
-
var X = this.$locale().weekStart || 0,
|
4683
|
-
return
|
4682
|
+
var X = this.$locale().weekStart || 0, W = (Y < X ? Y + 7 : Y) - X;
|
4683
|
+
return U(G ? D - W : D + (6 - W), J);
|
4684
4684
|
case u:
|
4685
4685
|
case b:
|
4686
|
-
return
|
4686
|
+
return z(x + "Hours", 0);
|
4687
4687
|
case l:
|
4688
|
-
return
|
4688
|
+
return z(x + "Minutes", 1);
|
4689
4689
|
case i:
|
4690
|
-
return
|
4690
|
+
return z(x + "Seconds", 2);
|
4691
4691
|
case s:
|
4692
|
-
return
|
4692
|
+
return z(x + "Milliseconds", 3);
|
4693
4693
|
default:
|
4694
4694
|
return this.clone();
|
4695
4695
|
}
|
4696
4696
|
}, O.endOf = function(M) {
|
4697
4697
|
return this.startOf(M, !1);
|
4698
|
-
}, O.$set = function(M,
|
4699
|
-
var
|
4698
|
+
}, O.$set = function(M, N) {
|
4699
|
+
var L, G = $.p(M), P = "set" + (this.$u ? "UTC" : ""), U = (L = {}, L[u] = P + "Date", L[b] = P + "Date", L[g] = P + "Month", L[_] = P + "FullYear", L[l] = P + "Hours", L[i] = P + "Minutes", L[s] = P + "Seconds", L[o] = P + "Milliseconds", L)[G], z = G === u ? this.$D + (N - this.$W) : N;
|
4700
4700
|
if (G === g || G === _) {
|
4701
4701
|
var Y = this.clone().set(b, 1);
|
4702
|
-
Y.$d[
|
4702
|
+
Y.$d[U](z), Y.init(), this.$d = Y.set(b, Math.min(this.$D, Y.daysInMonth())).$d;
|
4703
4703
|
} else
|
4704
|
-
|
4704
|
+
U && this.$d[U](z);
|
4705
4705
|
return this.init(), this;
|
4706
|
-
}, O.set = function(M,
|
4707
|
-
return this.clone().$set(M,
|
4706
|
+
}, O.set = function(M, N) {
|
4707
|
+
return this.clone().$set(M, N);
|
4708
4708
|
}, O.get = function(M) {
|
4709
|
-
return this[
|
4710
|
-
}, O.add = function(M,
|
4711
|
-
var
|
4709
|
+
return this[$.p(M)]();
|
4710
|
+
}, O.add = function(M, N) {
|
4711
|
+
var L, G = this;
|
4712
4712
|
M = Number(M);
|
4713
|
-
var P =
|
4714
|
-
var
|
4715
|
-
return
|
4713
|
+
var P = $.p(N), U = function(J) {
|
4714
|
+
var D = I(G);
|
4715
|
+
return $.w(D.date(D.date() + Math.round(J * M)), G);
|
4716
4716
|
};
|
4717
4717
|
if (P === g)
|
4718
4718
|
return this.set(g, this.$M + M);
|
4719
4719
|
if (P === _)
|
4720
4720
|
return this.set(_, this.$y + M);
|
4721
4721
|
if (P === u)
|
4722
|
-
return
|
4722
|
+
return U(1);
|
4723
4723
|
if (P === c)
|
4724
|
-
return
|
4725
|
-
var
|
4726
|
-
return
|
4727
|
-
}, O.subtract = function(M,
|
4728
|
-
return this.add(-1 * M,
|
4724
|
+
return U(7);
|
4725
|
+
var z = (L = {}, L[i] = n, L[l] = a, L[s] = r, L)[P] || 1, Y = this.$d.getTime() + M * z;
|
4726
|
+
return $.w(Y, this);
|
4727
|
+
}, O.subtract = function(M, N) {
|
4728
|
+
return this.add(-1 * M, N);
|
4729
4729
|
}, O.format = function(M) {
|
4730
|
-
var
|
4730
|
+
var N = this, L = this.$locale();
|
4731
4731
|
if (!this.isValid())
|
4732
|
-
return
|
4733
|
-
var G = M || "YYYY-MM-DDTHH:mm:ssZ", P =
|
4734
|
-
return
|
4735
|
-
}, X = function(
|
4736
|
-
return
|
4737
|
-
},
|
4738
|
-
var le =
|
4732
|
+
return L.invalidDate || m;
|
4733
|
+
var G = M || "YYYY-MM-DDTHH:mm:ssZ", P = $.z(this), U = this.$H, z = this.$m, Y = this.$M, J = L.weekdays, D = L.months, x = function(q, te, ie, le) {
|
4734
|
+
return q && (q[te] || q(N, G)) || ie[te].slice(0, le);
|
4735
|
+
}, X = function(q) {
|
4736
|
+
return $.s(U % 12 || 12, q, "0");
|
4737
|
+
}, W = L.meridiem || function(q, te, ie) {
|
4738
|
+
var le = q < 12 ? "AM" : "PM";
|
4739
4739
|
return ie ? le.toLowerCase() : le;
|
4740
|
-
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM:
|
4741
|
-
return G.replace(C, function(
|
4742
|
-
return te || ee[
|
4740
|
+
}, ee = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: Y + 1, MM: $.s(Y + 1, 2, "0"), MMM: x(L.monthsShort, Y, D, 3), MMMM: x(D, Y), D: this.$D, DD: $.s(this.$D, 2, "0"), d: String(this.$W), dd: x(L.weekdaysMin, this.$W, J, 2), ddd: x(L.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(U), HH: $.s(U, 2, "0"), h: X(1), hh: X(2), a: W(U, z, !0), A: W(U, z, !1), m: String(z), mm: $.s(z, 2, "0"), s: String(this.$s), ss: $.s(this.$s, 2, "0"), SSS: $.s(this.$ms, 3, "0"), Z: P };
|
4741
|
+
return G.replace(C, function(q, te) {
|
4742
|
+
return te || ee[q] || P.replace(":", "");
|
4743
4743
|
});
|
4744
4744
|
}, O.utcOffset = function() {
|
4745
4745
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4746
|
-
}, O.diff = function(M,
|
4747
|
-
var G, P =
|
4748
|
-
return J = (G = {}, G[_] = J / 12, G[g] = J, G[p] = J / 3, G[c] = (Y -
|
4746
|
+
}, O.diff = function(M, N, L) {
|
4747
|
+
var G, P = $.p(N), U = I(M), z = (U.utcOffset() - this.utcOffset()) * n, Y = this - U, J = $.m(this, U);
|
4748
|
+
return J = (G = {}, G[_] = J / 12, G[g] = J, G[p] = J / 3, G[c] = (Y - z) / 6048e5, G[u] = (Y - z) / 864e5, G[l] = Y / a, G[i] = Y / n, G[s] = Y / r, G)[P] || Y, L ? J : $.a(J);
|
4749
4749
|
}, O.daysInMonth = function() {
|
4750
4750
|
return this.endOf(g).$D;
|
4751
4751
|
}, O.$locale = function() {
|
4752
4752
|
return T[this.$L];
|
4753
|
-
}, O.locale = function(M,
|
4753
|
+
}, O.locale = function(M, N) {
|
4754
4754
|
if (!M)
|
4755
4755
|
return this.$L;
|
4756
|
-
var
|
4757
|
-
return G && (
|
4756
|
+
var L = this.clone(), G = F(M, N, !0);
|
4757
|
+
return G && (L.$L = G), L;
|
4758
4758
|
}, O.clone = function() {
|
4759
|
-
return
|
4759
|
+
return $.w(this.$d, this);
|
4760
4760
|
}, O.toDate = function() {
|
4761
4761
|
return new Date(this.valueOf());
|
4762
4762
|
}, O.toJSON = function() {
|
@@ -4766,16 +4766,16 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4766
4766
|
}, O.toString = function() {
|
4767
4767
|
return this.$d.toUTCString();
|
4768
4768
|
}, w;
|
4769
|
-
}(),
|
4770
|
-
return I.prototype =
|
4771
|
-
|
4769
|
+
}(), A = B.prototype;
|
4770
|
+
return I.prototype = A, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", _], ["$D", b]].forEach(function(w) {
|
4771
|
+
A[w[1]] = function(O) {
|
4772
4772
|
return this.$g(O, w[0], w[1]);
|
4773
4773
|
};
|
4774
4774
|
}), I.extend = function(w, O) {
|
4775
|
-
return w.$i || (w(O,
|
4776
|
-
}, I.locale = F, I.isDayjs =
|
4775
|
+
return w.$i || (w(O, B, I), w.$i = !0), I;
|
4776
|
+
}, I.locale = F, I.isDayjs = K, I.unix = function(w) {
|
4777
4777
|
return I(1e3 * w);
|
4778
|
-
}, I.en = T[
|
4778
|
+
}, I.en = T[V], I.Ls = T, I.p = {}, I;
|
4779
4779
|
});
|
4780
4780
|
})(dayjs_min);
|
4781
4781
|
const dayjs = dayjs_min.exports;
|
@@ -4820,9 +4820,9 @@ function filesize(e, {
|
|
4820
4820
|
roundingMethod: m = ROUND,
|
4821
4821
|
precision: v = 0
|
4822
4822
|
} = {}) {
|
4823
|
-
let C = b, y = Number(e), E = [], k = 0,
|
4823
|
+
let C = b, y = Number(e), E = [], k = 0, V = EMPTY;
|
4824
4824
|
n === -1 && c.length === 0 ? (n = 10, c = JEDEC) : n === -1 && c.length > 0 ? (c = c === IEC ? IEC : JEDEC, n = c === IEC ? 2 : 10) : (n = n === 2 ? 2 : 10, c = n === 10 || c === JEDEC ? JEDEC : IEC);
|
4825
|
-
const T = n === 10 ? 1e3 : 1024,
|
4825
|
+
const T = n === 10 ? 1e3 : 1024, K = p === !0, F = y < 0, I = Math[m];
|
4826
4826
|
if (typeof e != "bigint" && isNaN(e))
|
4827
4827
|
throw new TypeError(INVALID_NUMBER);
|
4828
4828
|
if (typeof I !== FUNCTION)
|
@@ -4830,21 +4830,21 @@ function filesize(e, {
|
|
4830
4830
|
if (F && (y = -y), (C === -1 || isNaN(C)) && (C = Math.floor(Math.log(y) / Math.log(T)), C < 0 && (C = 0)), C > 8 && (v > 0 && (v += 8 - C), C = 8), g === EXPONENT)
|
4831
4831
|
return C;
|
4832
4832
|
if (y === 0)
|
4833
|
-
E[0] = 0,
|
4833
|
+
E[0] = 0, V = E[1] = STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4834
4834
|
else {
|
4835
4835
|
k = y / (n === 2 ? Math.pow(2, C * 10) : Math.pow(1e3, C)), t && (k = k * 8, k >= T && C < 8 && (k = k / T, C++));
|
4836
|
-
const
|
4837
|
-
E[0] = I(k *
|
4836
|
+
const $ = Math.pow(10, C > 0 ? a : 0);
|
4837
|
+
E[0] = I(k * $) / $, E[0] === T && C < 8 && b === -1 && (E[0] = 1, C++), V = E[1] = n === 10 && C === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][C];
|
4838
4838
|
}
|
4839
4839
|
if (F && (E[0] = -E[0]), v > 0 && (E[0] = E[0].toPrecision(v)), E[1] = u[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) {
|
4840
|
-
const
|
4841
|
-
E[0] = `${
|
4840
|
+
const $ = i || PERIOD, B = E[0].toString().split($), A = B[1] || EMPTY, w = A.length, O = a - w;
|
4841
|
+
E[0] = `${B[0]}${$}${A.padEnd(w + O, ZERO)}`;
|
4842
4842
|
}
|
4843
|
-
return
|
4843
|
+
return K && (E[1] = _[C] ? _[C] : STRINGS.fullform[c][C] + (t ? BIT : BYTE) + (E[0] === 1 ? EMPTY : S)), g === ARRAY ? E : g === OBJECT ? {
|
4844
4844
|
value: E[0],
|
4845
4845
|
symbol: E[1],
|
4846
4846
|
exponent: C,
|
4847
|
-
unit:
|
4847
|
+
unit: V
|
4848
4848
|
} : E.join(l);
|
4849
4849
|
}
|
4850
4850
|
const data$5 = {
|
@@ -5430,8 +5430,8 @@ function sendQuery(e, t, r, n) {
|
|
5430
5430
|
if (e.random) {
|
5431
5431
|
let T = e.resources.slice(0);
|
5432
5432
|
for (s = []; T.length > 1; ) {
|
5433
|
-
const
|
5434
|
-
s.push(T[
|
5433
|
+
const K = Math.floor(Math.random() * T.length);
|
5434
|
+
s.push(T[K]), T = T.slice(0, K).concat(T.slice(K + 1));
|
5435
5435
|
}
|
5436
5436
|
s = s.concat(T);
|
5437
5437
|
} else
|
@@ -5447,8 +5447,8 @@ function sendQuery(e, t, r, n) {
|
|
5447
5447
|
T.status === "pending" && (T.status = "aborted");
|
5448
5448
|
}), p = [];
|
5449
5449
|
}
|
5450
|
-
function v(T,
|
5451
|
-
|
5450
|
+
function v(T, K) {
|
5451
|
+
K && (_ = []), typeof T == "function" && _.push(T);
|
5452
5452
|
}
|
5453
5453
|
function C() {
|
5454
5454
|
return {
|
@@ -5471,9 +5471,9 @@ function sendQuery(e, t, r, n) {
|
|
5471
5471
|
T.status === "pending" && (T.status = "aborted");
|
5472
5472
|
}), p = [];
|
5473
5473
|
}
|
5474
|
-
function k(T,
|
5475
|
-
const I =
|
5476
|
-
switch (p = p.filter((
|
5474
|
+
function k(T, K, F) {
|
5475
|
+
const I = K !== "success";
|
5476
|
+
switch (p = p.filter(($) => $ !== T), l) {
|
5477
5477
|
case "pending":
|
5478
5478
|
break;
|
5479
5479
|
case "failed":
|
@@ -5483,23 +5483,23 @@ function sendQuery(e, t, r, n) {
|
|
5483
5483
|
default:
|
5484
5484
|
return;
|
5485
5485
|
}
|
5486
|
-
if (
|
5486
|
+
if (K === "abort") {
|
5487
5487
|
c = F, y();
|
5488
5488
|
return;
|
5489
5489
|
}
|
5490
5490
|
if (I) {
|
5491
|
-
c = F, p.length || (s.length ?
|
5491
|
+
c = F, p.length || (s.length ? V() : y());
|
5492
5492
|
return;
|
5493
5493
|
}
|
5494
5494
|
if (b(), E(), !e.random) {
|
5495
|
-
const
|
5496
|
-
|
5495
|
+
const $ = e.resources.indexOf(T.resource);
|
5496
|
+
$ !== -1 && $ !== e.index && (e.index = $);
|
5497
5497
|
}
|
5498
|
-
l = "completed", _.forEach((
|
5499
|
-
|
5498
|
+
l = "completed", _.forEach(($) => {
|
5499
|
+
$(F);
|
5500
5500
|
});
|
5501
5501
|
}
|
5502
|
-
function
|
5502
|
+
function V() {
|
5503
5503
|
if (l !== "pending")
|
5504
5504
|
return;
|
5505
5505
|
b();
|
@@ -5514,16 +5514,16 @@ function sendQuery(e, t, r, n) {
|
|
5514
5514
|
y();
|
5515
5515
|
return;
|
5516
5516
|
}
|
5517
|
-
const
|
5517
|
+
const K = {
|
5518
5518
|
status: "pending",
|
5519
5519
|
resource: T,
|
5520
5520
|
callback: (F, I) => {
|
5521
|
-
k(
|
5521
|
+
k(K, F, I);
|
5522
5522
|
}
|
5523
5523
|
};
|
5524
|
-
p.push(
|
5524
|
+
p.push(K), u++, g = setTimeout(V, e.rotate), r(T, t, K.callback);
|
5525
5525
|
}
|
5526
|
-
return setTimeout(
|
5526
|
+
return setTimeout(V), C;
|
5527
5527
|
}
|
5528
5528
|
function initRedundancy(e) {
|
5529
5529
|
const t = {
|
@@ -6166,15 +6166,15 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6166
6166
|
function E(F, I) {
|
6167
6167
|
return function() {
|
6168
6168
|
setActivePinia(n);
|
6169
|
-
const
|
6170
|
-
function w(
|
6171
|
-
|
6169
|
+
const $ = Array.from(arguments), B = [], A = [];
|
6170
|
+
function w(N) {
|
6171
|
+
B.push(N);
|
6172
6172
|
}
|
6173
|
-
function O(
|
6174
|
-
|
6173
|
+
function O(N) {
|
6174
|
+
A.push(N);
|
6175
6175
|
}
|
6176
6176
|
triggerSubscriptions(p, {
|
6177
|
-
args:
|
6177
|
+
args: $,
|
6178
6178
|
name: F,
|
6179
6179
|
store: T,
|
6180
6180
|
after: w,
|
@@ -6182,11 +6182,11 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6182
6182
|
});
|
6183
6183
|
let M;
|
6184
6184
|
try {
|
6185
|
-
M = I.apply(this && this.$id === e ? this : T,
|
6186
|
-
} catch (
|
6187
|
-
throw triggerSubscriptions(
|
6185
|
+
M = I.apply(this && this.$id === e ? this : T, $);
|
6186
|
+
} catch (N) {
|
6187
|
+
throw triggerSubscriptions(A, N), N;
|
6188
6188
|
}
|
6189
|
-
return M instanceof Promise ? M.then((
|
6189
|
+
return M instanceof Promise ? M.then((N) => (triggerSubscriptions(B, N), N)).catch((N) => (triggerSubscriptions(A, N), Promise.reject(N))) : (triggerSubscriptions(B, M), M);
|
6190
6190
|
};
|
6191
6191
|
}
|
6192
6192
|
const k = /* @__PURE__ */ markRaw({
|
@@ -6194,21 +6194,21 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6194
6194
|
getters: {},
|
6195
6195
|
state: [],
|
6196
6196
|
hotState: m
|
6197
|
-
}),
|
6197
|
+
}), V = {
|
6198
6198
|
_p: n,
|
6199
6199
|
$id: e,
|
6200
6200
|
$onAction: addSubscription.bind(null, p),
|
6201
6201
|
$patch: v,
|
6202
6202
|
$reset: C,
|
6203
6203
|
$subscribe(F, I = {}) {
|
6204
|
-
const
|
6204
|
+
const $ = addSubscription(g, F, I.detached, () => B()), B = o.run(() => watch(() => n.state.value[e], (A) => {
|
6205
6205
|
(I.flush === "sync" ? c : u) && F({
|
6206
6206
|
storeId: e,
|
6207
6207
|
type: MutationType.direct,
|
6208
6208
|
events: _
|
6209
|
-
},
|
6209
|
+
}, A);
|
6210
6210
|
}, assign$1({}, l, I)));
|
6211
|
-
return
|
6211
|
+
return $;
|
6212
6212
|
},
|
6213
6213
|
$dispose: y
|
6214
6214
|
}, T = reactive(assign$1(
|
@@ -6216,21 +6216,21 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6216
6216
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6217
6217
|
_hmrPayload: k
|
6218
6218
|
} : {},
|
6219
|
-
|
6219
|
+
V
|
6220
6220
|
));
|
6221
6221
|
n._s.set(e, T);
|
6222
|
-
const
|
6223
|
-
for (const F in
|
6224
|
-
const I =
|
6222
|
+
const K = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6223
|
+
for (const F in K) {
|
6224
|
+
const I = K[F];
|
6225
6225
|
if (isRef(I) && !isComputed(I) || isReactive(I))
|
6226
|
-
process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(
|
6226
|
+
process.env.NODE_ENV !== "production" && a ? set(m.value, F, toRef(K, F)) : s || (b && shouldHydrate(I) && (isRef(I) ? I.value = b[F] : mergeReactiveObjects(I, b[F])), n.state.value[e][F] = I), process.env.NODE_ENV !== "production" && k.state.push(F);
|
6227
6227
|
else if (typeof I == "function") {
|
6228
|
-
const
|
6229
|
-
|
6228
|
+
const $ = process.env.NODE_ENV !== "production" && a ? I : E(F, I);
|
6229
|
+
K[F] = $, process.env.NODE_ENV !== "production" && (k.actions[F] = I), i.actions[F] = I;
|
6230
6230
|
} else
|
6231
|
-
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[F] = s ? r.getters[F] : I, IS_CLIENT && (
|
6231
|
+
process.env.NODE_ENV !== "production" && isComputed(I) && (k.getters[F] = s ? r.getters[F] : I, IS_CLIENT && (K._getters || (K._getters = markRaw([]))).push(F));
|
6232
6232
|
}
|
6233
|
-
if (assign$1(T,
|
6233
|
+
if (assign$1(T, K), assign$1(toRaw(T), K), Object.defineProperty(T, "$state", {
|
6234
6234
|
get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
|
6235
6235
|
set: (F) => {
|
6236
6236
|
if (process.env.NODE_ENV !== "production" && a)
|
@@ -6241,29 +6241,29 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6241
6241
|
}
|
6242
6242
|
}), process.env.NODE_ENV !== "production") {
|
6243
6243
|
T._hotUpdate = markRaw((I) => {
|
6244
|
-
T._hotUpdating = !0, I._hmrPayload.state.forEach((
|
6245
|
-
if (
|
6246
|
-
const
|
6247
|
-
typeof
|
6244
|
+
T._hotUpdating = !0, I._hmrPayload.state.forEach(($) => {
|
6245
|
+
if ($ in T.$state) {
|
6246
|
+
const B = I.$state[$], A = T.$state[$];
|
6247
|
+
typeof B == "object" && isPlainObject(B) && isPlainObject(A) ? patchObject(B, A) : I.$state[$] = A;
|
6248
6248
|
}
|
6249
|
-
set(T,
|
6250
|
-
}), Object.keys(T.$state).forEach((
|
6251
|
-
|
6249
|
+
set(T, $, toRef(I.$state, $));
|
6250
|
+
}), Object.keys(T.$state).forEach(($) => {
|
6251
|
+
$ in I.$state || del(T, $);
|
6252
6252
|
}), u = !1, c = !1, n.state.value[e] = toRef(I._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6253
6253
|
u = !0;
|
6254
6254
|
});
|
6255
|
-
for (const
|
6256
|
-
const
|
6257
|
-
set(T,
|
6258
|
-
}
|
6259
|
-
for (const
|
6260
|
-
const
|
6261
|
-
set(T, A
|
6262
|
-
}
|
6263
|
-
Object.keys(T._hmrPayload.getters).forEach((
|
6264
|
-
|
6265
|
-
}), Object.keys(T._hmrPayload.actions).forEach((
|
6266
|
-
|
6255
|
+
for (const $ in I._hmrPayload.actions) {
|
6256
|
+
const B = I[$];
|
6257
|
+
set(T, $, E($, B));
|
6258
|
+
}
|
6259
|
+
for (const $ in I._hmrPayload.getters) {
|
6260
|
+
const B = I._hmrPayload.getters[$], A = s ? computed(() => (setActivePinia(n), B.call(T, T))) : B;
|
6261
|
+
set(T, $, A);
|
6262
|
+
}
|
6263
|
+
Object.keys(T._hmrPayload.getters).forEach(($) => {
|
6264
|
+
$ in I._hmrPayload.getters || del(T, $);
|
6265
|
+
}), Object.keys(T._hmrPayload.actions).forEach(($) => {
|
6266
|
+
$ in I._hmrPayload.actions || del(T, $);
|
6267
6267
|
}), T._hmrPayload = I._hmrPayload, T._getters = I._getters, T._hotUpdating = !1;
|
6268
6268
|
});
|
6269
6269
|
const F = {
|
@@ -6286,7 +6286,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6286
6286
|
pinia: n,
|
6287
6287
|
options: i
|
6288
6288
|
}));
|
6289
|
-
Object.keys(I || {}).forEach((
|
6289
|
+
Object.keys(I || {}).forEach(($) => T._customProperties.add($)), assign$1(T, I);
|
6290
6290
|
} else
|
6291
6291
|
assign$1(T, o.run(() => F({
|
6292
6292
|
store: T,
|
@@ -6838,13 +6838,15 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6838
6838
|
default: void 0
|
6839
6839
|
},
|
6840
6840
|
kgRules: Array,
|
6841
|
-
|
6841
|
+
onKgLookupBeforeOk: Function,
|
6842
6842
|
value: [String, Number, Array, Object],
|
6843
6843
|
"onUpdate:value": Function,
|
6844
6844
|
onKgSubmit: Function,
|
6845
6845
|
onKgChange: Function,
|
6846
|
+
onKgSelectChange: Function,
|
6847
|
+
onKgLookupChange: Function,
|
6846
6848
|
onKgSelectDatasChange: Function
|
6847
|
-
}),
|
6849
|
+
}), DI_ON_KG_LOOKUP_BEFORE_OK = Symbol("DI_ON_KG_LOOKUP_BEFORE_OK"), KgForm_Item_Addon_Lookup_Modal = "", getProps$t = () => ({
|
6848
6850
|
visible: Boolean,
|
6849
6851
|
"onUpdate:visible": Function,
|
6850
6852
|
onKgOk: Function
|
@@ -6856,7 +6858,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6856
6858
|
slots: t,
|
6857
6859
|
emit: r
|
6858
6860
|
}) {
|
6859
|
-
const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), i = inject(
|
6861
|
+
const n = inject(KG_DI_HOST_FORM_ID, ""), a = useKgVar(n), o = inject(KG_DI_VAR_NAME, ""), s = inject(KG_DI_LOOKUP_ID, ""), i = inject(DI_ON_KG_LOOKUP_BEFORE_OK, null);
|
6860
6862
|
useKgVar(s, !0, a.store.getFormLevel(a.formID) + 1);
|
6861
6863
|
const l = useKgTable(s), u = computed(() => a.store.getVarLookup(n, o)), c = computed(() => {
|
6862
6864
|
var b;
|
@@ -6872,11 +6874,11 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6872
6874
|
function _() {
|
6873
6875
|
var b, m, v, C, y, E, k;
|
6874
6876
|
if (c.value) {
|
6875
|
-
const
|
6876
|
-
(!i || i(T,
|
6877
|
+
const V = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], T = (v = V.map((K) => K[g.value])) != null ? v : [];
|
6878
|
+
(!i || i(T, V)) && (r("kgOk", T, V), r("update:visible", !1));
|
6877
6879
|
} else {
|
6878
|
-
const
|
6879
|
-
(!i || i(T,
|
6880
|
+
const V = (E = (y = (C = l.selectedRows) == null ? void 0 : C.value) == null ? void 0 : y[0]) != null ? E : null, T = (k = V == null ? void 0 : V[g.value]) != null ? k : "";
|
6881
|
+
(!i || i(T, V)) && (r("kgOk", T, V), r("update:visible", !1));
|
6880
6882
|
}
|
6881
6883
|
}
|
6882
6884
|
return () => {
|
@@ -6942,21 +6944,17 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6942
6944
|
attrs: n
|
6943
6945
|
}) {
|
6944
6946
|
const a = inject("$dayjs", dayjs);
|
6945
|
-
|
6946
|
-
|
6947
|
-
r("
|
6948
|
-
}
|
6949
|
-
function s(i) {
|
6950
|
-
r("update:value", i ? a(i) : void 0);
|
6947
|
+
function o(s) {
|
6948
|
+
const i = s ? a(s) : void 0;
|
6949
|
+
r("update:value", i), r("kgChange", i);
|
6951
6950
|
}
|
6952
6951
|
return () => createVNode(DatePicker, {
|
6953
6952
|
value: e.value,
|
6954
|
-
"onUpdate:value":
|
6953
|
+
"onUpdate:value": o,
|
6955
6954
|
id: n.id,
|
6956
6955
|
disabled: e.kgDisabled,
|
6957
6956
|
placeholder: e.kgPlaceholder,
|
6958
6957
|
showTime: e.kgShowTime,
|
6959
|
-
onChange: o,
|
6960
6958
|
style: "width: 100%"
|
6961
6959
|
}, null);
|
6962
6960
|
}
|
@@ -6968,14 +6966,10 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6968
6966
|
attrs: t,
|
6969
6967
|
emit: r
|
6970
6968
|
}) {
|
6971
|
-
|
6972
|
-
|
6973
|
-
r("update:value", s);
|
6974
|
-
}
|
6975
|
-
function a(s) {
|
6976
|
-
r("kgChange", s);
|
6969
|
+
function n(o) {
|
6970
|
+
r("update:value", o), r("kgChange", o);
|
6977
6971
|
}
|
6978
|
-
function
|
6972
|
+
function a() {
|
6979
6973
|
r("kgSubmit");
|
6980
6974
|
}
|
6981
6975
|
return () => createVNode(Input, {
|
@@ -6985,8 +6979,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6985
6979
|
placeholder: e.kgPlaceholder,
|
6986
6980
|
disabled: e.kgDisabled,
|
6987
6981
|
allowClear: !0,
|
6988
|
-
onPressEnter:
|
6989
|
-
onChange: a
|
6982
|
+
onPressEnter: a
|
6990
6983
|
}, null);
|
6991
6984
|
}
|
6992
6985
|
}), KgFormItemInputNumber = defineComponent({
|
@@ -6997,14 +6990,10 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
6997
6990
|
attrs: t,
|
6998
6991
|
emit: r
|
6999
6992
|
}) {
|
7000
|
-
|
7001
|
-
|
7002
|
-
r("update:value", s);
|
7003
|
-
}
|
7004
|
-
function a(s) {
|
7005
|
-
r("kgChange", s);
|
6993
|
+
function n(o) {
|
6994
|
+
r("update:value", o), r("kgChange", o);
|
7006
6995
|
}
|
7007
|
-
function
|
6996
|
+
function a() {
|
7008
6997
|
r("kgSubmit");
|
7009
6998
|
}
|
7010
6999
|
return () => createVNode(InputNumber, {
|
@@ -7013,8 +7002,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7013
7002
|
id: t.id,
|
7014
7003
|
placeholder: e.kgPlaceholder,
|
7015
7004
|
disabled: e.kgDisabled,
|
7016
|
-
onPressEnter:
|
7017
|
-
onChange: a,
|
7005
|
+
onPressEnter: a,
|
7018
7006
|
class: "kg-form-item-input-number"
|
7019
7007
|
}, null);
|
7020
7008
|
}
|
@@ -7062,7 +7050,7 @@ function _useServices$1(e) {
|
|
7062
7050
|
const KgFormItemSelect = defineComponent({
|
7063
7051
|
name: "KgFormItemSelect",
|
7064
7052
|
props: getProps$u(),
|
7065
|
-
emits: ["update:value", "kgSubmit", "kgChange", "kgSelectDatasChange"],
|
7053
|
+
emits: ["update:value", "kgSubmit", "kgChange", "kgSelectChange", "kgSelectDatasChange"],
|
7066
7054
|
setup(e, {
|
7067
7055
|
attrs: t,
|
7068
7056
|
emit: r
|
@@ -7088,8 +7076,8 @@ const KgFormItemSelect = defineComponent({
|
|
7088
7076
|
immediate: !0
|
7089
7077
|
});
|
7090
7078
|
async function u() {
|
7091
|
-
var C, y, E, k,
|
7092
|
-
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (E = (y = i.value) == null ? void 0 : y.cmd_method) != null ? E : "GET", b = (
|
7079
|
+
var C, y, E, k, V, T, K, F;
|
7080
|
+
const p = (C = i.value) == null ? void 0 : C.cmd, _ = (E = (y = i.value) == null ? void 0 : y.cmd_method) != null ? E : "GET", b = (V = (k = i.value) == null ? void 0 : k.val_clm) != null ? V : "", m = (K = (T = i.value) == null ? void 0 : T.lbl_clm) != null ? K : "";
|
7093
7081
|
if (!p || !b || !m) {
|
7094
7082
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7095
7083
|
formID: n.formID,
|
@@ -7139,10 +7127,10 @@ const KgFormItemSelect = defineComponent({
|
|
7139
7127
|
var v, C;
|
7140
7128
|
return m[(C = (v = i.value) == null ? void 0 : v.val_clm) != null ? C : ""] === p;
|
7141
7129
|
});
|
7142
|
-
r("
|
7130
|
+
r("kgSelectChange", (b = toRaw(_)) != null ? b : null);
|
7143
7131
|
}
|
7144
7132
|
function g(p) {
|
7145
|
-
r("update:value", p);
|
7133
|
+
r("update:value", p), r("kgChange", p);
|
7146
7134
|
}
|
7147
7135
|
return () => {
|
7148
7136
|
var p, _, b;
|
@@ -7168,8 +7156,8 @@ const KgFormItemSelect = defineComponent({
|
|
7168
7156
|
value: m[(E = (y = i.value) == null ? void 0 : y.val_clm) != null ? E : ""]
|
7169
7157
|
}, {
|
7170
7158
|
default: () => {
|
7171
|
-
var k,
|
7172
|
-
return [m[(
|
7159
|
+
var k, V;
|
7160
|
+
return [m[(V = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? V : ""]];
|
7173
7161
|
}
|
7174
7162
|
});
|
7175
7163
|
}),
|
@@ -7185,11 +7173,8 @@ const KgFormItemSelect = defineComponent({
|
|
7185
7173
|
attrs: t,
|
7186
7174
|
emit: r
|
7187
7175
|
}) {
|
7188
|
-
function n(
|
7189
|
-
r("update:value",
|
7190
|
-
}
|
7191
|
-
function a(o, s) {
|
7192
|
-
r("kgChange", o, s);
|
7176
|
+
function n(a) {
|
7177
|
+
r("update:value", a), r("kgChange", a);
|
7193
7178
|
}
|
7194
7179
|
return () => createVNode(Switch, {
|
7195
7180
|
checked: e.value,
|
@@ -7197,8 +7182,7 @@ const KgFormItemSelect = defineComponent({
|
|
7197
7182
|
id: t.id,
|
7198
7183
|
checkedValue: 1,
|
7199
7184
|
unCheckedValue: 0,
|
7200
|
-
disabled: e.kgDisabled
|
7201
|
-
onChange: a
|
7185
|
+
disabled: e.kgDisabled
|
7202
7186
|
}, null);
|
7203
7187
|
}
|
7204
7188
|
});
|
@@ -7261,105 +7245,105 @@ function _useRules(e) {
|
|
7261
7245
|
const KgFormItem = defineComponent({
|
7262
7246
|
name: "KgFormItem",
|
7263
7247
|
props: getProps$u(),
|
7264
|
-
emits: ["kgSubmit", "kgChange"],
|
7248
|
+
emits: ["kgSubmit", "kgChange", "kgSelectChange", "kgLookupChange"],
|
7265
7249
|
setup(e, {
|
7266
7250
|
slots: t,
|
7267
7251
|
emit: r
|
7268
7252
|
}) {
|
7269
|
-
provide(KG_DI_VAR_NAME, e.kgVarName), provide(
|
7253
|
+
provide(KG_DI_VAR_NAME, e.kgVarName), provide(DI_ON_KG_LOOKUP_BEFORE_OK, e.onKgLookupBeforeOk);
|
7270
7254
|
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)), u = computed(() => a.store.isCopying(a.formID)), c = 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)), _ = computed(() => a.store.getVarSubmitField(a.formID, e.kgVarName)), {
|
7271
7255
|
rules: b
|
7272
7256
|
} = _useRules(e), m = computed(() => {
|
7273
|
-
var w, O, M,
|
7257
|
+
var w, O, M, N, L;
|
7274
7258
|
if (a.isRetrievingVar.value)
|
7275
7259
|
return !0;
|
7276
|
-
let
|
7260
|
+
let A = !1;
|
7277
7261
|
if (e.kgDisabled !== void 0)
|
7278
|
-
|
7262
|
+
A = e.kgDisabled;
|
7279
7263
|
else
|
7280
7264
|
switch (e.kgContext) {
|
7281
7265
|
case KG_FORM_CONTEXT.SEARCH:
|
7282
|
-
|
7266
|
+
A = ((w = p.value) == null ? void 0 : w.ena_flg) === 0;
|
7283
7267
|
break;
|
7284
7268
|
case KG_FORM_CONTEXT.SUBMIT:
|
7285
7269
|
switch (!0) {
|
7286
7270
|
case a.isCreating.value:
|
7287
|
-
|
7271
|
+
A = ((O = _.value) == null ? void 0 : O.crt_ena_flg) === 0;
|
7288
7272
|
break;
|
7289
7273
|
case a.isUpdating.value:
|
7290
|
-
|
7274
|
+
A = ((M = _.value) == null ? void 0 : M.upt_ena_flg) === 0;
|
7291
7275
|
break;
|
7292
7276
|
case a.isCopying.value:
|
7293
|
-
|
7277
|
+
A = ((N = _.value) == null ? void 0 : N.cpy_ena_flg) === 0;
|
7294
7278
|
break;
|
7295
7279
|
case a.isDeleting.value:
|
7296
|
-
|
7280
|
+
A = ((L = _.value) == null ? void 0 : L.del_ena_flg) === 0;
|
7297
7281
|
break;
|
7298
7282
|
}
|
7299
7283
|
break;
|
7300
7284
|
}
|
7301
|
-
return
|
7285
|
+
return A;
|
7302
7286
|
}), v = computed(() => {
|
7303
|
-
var w, O, M,
|
7304
|
-
let
|
7287
|
+
var w, O, M, N;
|
7288
|
+
let A = " ";
|
7305
7289
|
if (e.kgPlaceholder)
|
7306
|
-
|
7290
|
+
A = e.kgPlaceholder;
|
7307
7291
|
else
|
7308
7292
|
switch (e.kgContext) {
|
7309
7293
|
case KG_FORM_CONTEXT.SEARCH:
|
7310
|
-
|
7294
|
+
A = n.t((O = (w = p.value) == null ? void 0 : w.placeholder) != null ? O : " ");
|
7311
7295
|
break;
|
7312
7296
|
case KG_FORM_CONTEXT.SUBMIT:
|
7313
|
-
|
7297
|
+
A = n.t((N = (M = _.value) == null ? void 0 : M.placeholder) != null ? N : " ");
|
7314
7298
|
break;
|
7315
7299
|
}
|
7316
|
-
return
|
7300
|
+
return A;
|
7317
7301
|
}), C = computed(() => {
|
7318
|
-
var w, O, M,
|
7319
|
-
let
|
7302
|
+
var w, O, M, N, L, G, P, U, z, Y;
|
7303
|
+
let A = 6;
|
7320
7304
|
if (e.kgSpan !== void 0)
|
7321
|
-
|
7305
|
+
A = e.kgSpan;
|
7322
7306
|
else
|
7323
7307
|
switch (e.kgContext) {
|
7324
7308
|
case KG_FORM_CONTEXT.SEARCH:
|
7325
|
-
|
7309
|
+
A = (O = (w = p.value) == null ? void 0 : w.width) != null ? O : 6;
|
7326
7310
|
break;
|
7327
7311
|
case KG_FORM_CONTEXT.SUBMIT:
|
7328
7312
|
switch (!0) {
|
7329
7313
|
case a.isCreating.value:
|
7330
|
-
|
7314
|
+
A = (N = (M = _.value) == null ? void 0 : M.crt_width) != null ? N : 6;
|
7331
7315
|
break;
|
7332
7316
|
case a.isUpdating.value:
|
7333
|
-
|
7317
|
+
A = (G = (L = _.value) == null ? void 0 : L.upt_width) != null ? G : 6;
|
7334
7318
|
break;
|
7335
7319
|
case a.isCopying.value:
|
7336
|
-
|
7320
|
+
A = (U = (P = _.value) == null ? void 0 : P.cpy_width) != null ? U : 6;
|
7337
7321
|
break;
|
7338
7322
|
case a.isDeleting.value:
|
7339
|
-
|
7323
|
+
A = (Y = (z = _.value) == null ? void 0 : z.del_width) != null ? Y : 6;
|
7340
7324
|
break;
|
7341
7325
|
}
|
7342
7326
|
}
|
7343
|
-
return Math.min(24, Math.max(1,
|
7327
|
+
return Math.min(24, Math.max(1, A));
|
7344
7328
|
}), y = computed(() => {
|
7345
|
-
var M,
|
7346
|
-
const
|
7347
|
-
if (
|
7329
|
+
var M, N;
|
7330
|
+
const A = get(K.value, "$el.parentElement");
|
7331
|
+
if (A && !((M = A.classList) != null && M.contains("ant-row")))
|
7348
7332
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7349
7333
|
let w = {};
|
7350
|
-
const O = Math.abs(Number.parseInt((
|
7334
|
+
const O = Math.abs(Number.parseInt((N = get(K.value, "$el.parentElement.style.marginLeft")) != null ? N : "0px"));
|
7351
7335
|
return Number.isNaN(O) || (w = {
|
7352
7336
|
paddingLeft: `${O}px !important`,
|
7353
7337
|
paddingRight: `${O}px !important`
|
7354
7338
|
}), w;
|
7355
7339
|
}), E = computed(() => {
|
7356
|
-
var w, O, M,
|
7357
|
-
let
|
7358
|
-
switch (c.value && (
|
7340
|
+
var w, O, M, N;
|
7341
|
+
let A = "kg-form-item";
|
7342
|
+
switch (c.value && (A += " kg-form-item-lookup"), e.kgContext) {
|
7359
7343
|
case KG_FORM_CONTEXT.SEARCH:
|
7360
7344
|
switch (!0) {
|
7361
7345
|
case ((w = p.value) == null ? void 0 : w.vis_flg) === 0:
|
7362
|
-
|
7346
|
+
A += " kg-form-item--invisible";
|
7363
7347
|
break;
|
7364
7348
|
}
|
7365
7349
|
break;
|
@@ -7367,16 +7351,16 @@ const KgFormItem = defineComponent({
|
|
7367
7351
|
switch (!0) {
|
7368
7352
|
case (i.value && ((O = _.value) == null ? void 0 : O.crt_vis_flg) === 0):
|
7369
7353
|
case (l.value && ((M = _.value) == null ? void 0 : M.upt_vis_flg) === 0):
|
7370
|
-
case (u.value && ((
|
7371
|
-
|
7354
|
+
case (u.value && ((N = _.value) == null ? void 0 : N.cpy_vis_flg) === 0):
|
7355
|
+
A += " kg-form-item--invisible";
|
7372
7356
|
break;
|
7373
7357
|
}
|
7374
7358
|
break;
|
7375
7359
|
}
|
7376
|
-
return
|
7360
|
+
return A;
|
7377
7361
|
}), k = computed(() => {
|
7378
7362
|
var w;
|
7379
|
-
const
|
7363
|
+
const A = {
|
7380
7364
|
...e,
|
7381
7365
|
value: (w = o.value) == null ? void 0 : w[e.kgVarName],
|
7382
7366
|
"onUpdate:value": (O) => {
|
@@ -7386,7 +7370,7 @@ const KgFormItem = defineComponent({
|
|
7386
7370
|
kgDisabled: m.value,
|
7387
7371
|
id: T.value
|
7388
7372
|
};
|
7389
|
-
switch (
|
7373
|
+
switch (V.value) {
|
7390
7374
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7391
7375
|
break;
|
7392
7376
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7394,20 +7378,20 @@ const KgFormItem = defineComponent({
|
|
7394
7378
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7395
7379
|
break;
|
7396
7380
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7397
|
-
|
7381
|
+
A.kgShowTime = !1;
|
7398
7382
|
break;
|
7399
7383
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7400
|
-
|
7384
|
+
A.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7401
7385
|
break;
|
7402
7386
|
}
|
7403
|
-
return
|
7404
|
-
}),
|
7405
|
-
var
|
7406
|
-
return e.kgType || ((
|
7407
|
-
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)),
|
7408
|
-
function F(
|
7387
|
+
return A;
|
7388
|
+
}), V = computed(() => {
|
7389
|
+
var A;
|
7390
|
+
return e.kgType || ((A = g.value) == null ? void 0 : A.ctrl_typ);
|
7391
|
+
}), T = computed(() => encodeURIComponent(a.formID + e.kgVarName + e.kgContext)), K = ref(null);
|
7392
|
+
function F(A, w) {
|
7409
7393
|
var O;
|
7410
|
-
o.value && (o.value[e.kgVarName] =
|
7394
|
+
o.value && (o.value[e.kgVarName] = A), r("kgLookupChange", w), (O = s.value) == null || O.validate([e.kgVarName]);
|
7411
7395
|
}
|
7412
7396
|
function I() {
|
7413
7397
|
if (t.control)
|
@@ -7419,7 +7403,7 @@ const KgFormItem = defineComponent({
|
|
7419
7403
|
varProfileDetail: p,
|
7420
7404
|
varSubmitField: _
|
7421
7405
|
});
|
7422
|
-
switch (
|
7406
|
+
switch (V.value) {
|
7423
7407
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7424
7408
|
return createVNode(KgFormItemInputNumber, k.value, null);
|
7425
7409
|
case KG_FORM_ITEM_TYPE.SELECT:
|
@@ -7434,14 +7418,14 @@ const KgFormItem = defineComponent({
|
|
7434
7418
|
return createVNode(KgFormItemInput, k.value, null);
|
7435
7419
|
}
|
7436
7420
|
}
|
7437
|
-
function
|
7421
|
+
function $() {
|
7438
7422
|
return e.kgShowLabel ? createVNode("span", {
|
7439
7423
|
title: a.t(e.kgVarName).value
|
7440
7424
|
}, [a.t(e.kgVarName).value]) : null;
|
7441
7425
|
}
|
7442
|
-
function
|
7443
|
-
var
|
7444
|
-
return !c.value || !((
|
7426
|
+
function B() {
|
7427
|
+
var A;
|
7428
|
+
return !c.value || !((A = c.value) != null && A.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7445
7429
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7446
7430
|
kgDisabled: m.value,
|
7447
7431
|
onKgOk: F,
|
@@ -7449,23 +7433,28 @@ const KgFormItem = defineComponent({
|
|
7449
7433
|
}, null)]
|
7450
7434
|
});
|
7451
7435
|
}
|
7452
|
-
return () =>
|
7453
|
-
|
7454
|
-
|
7455
|
-
|
7456
|
-
|
7457
|
-
|
7458
|
-
|
7459
|
-
|
7460
|
-
|
7461
|
-
|
7462
|
-
|
7463
|
-
htmlFor: T.value
|
7436
|
+
return () => {
|
7437
|
+
var A, w;
|
7438
|
+
return createVNode(Col, {
|
7439
|
+
ref: K,
|
7440
|
+
"kg-frm-id": a.formID,
|
7441
|
+
"kg-var-nam": e.kgVarName,
|
7442
|
+
"kg-lkp-id": (A = c.value) == null ? void 0 : A.lkp_id,
|
7443
|
+
"kg-lkp-ret-fld": (w = c.value) == null ? void 0 : w.ret_fld,
|
7444
|
+
span: C.value,
|
7445
|
+
class: E.value,
|
7446
|
+
style: y.value
|
7464
7447
|
}, {
|
7465
|
-
default: () => createVNode(
|
7466
|
-
|
7467
|
-
|
7468
|
-
|
7448
|
+
default: () => [createVNode(Form.Item, {
|
7449
|
+
name: e.kgVarName,
|
7450
|
+
rules: b.value,
|
7451
|
+
htmlFor: T.value
|
7452
|
+
}, {
|
7453
|
+
default: () => createVNode(Fragment, null, [I(), B()]),
|
7454
|
+
label: () => $()
|
7455
|
+
})]
|
7456
|
+
});
|
7457
|
+
};
|
7469
7458
|
}
|
7470
7459
|
}), KgForm$1 = "", KgForm = defineComponent({
|
7471
7460
|
name: "KgForm",
|
@@ -8164,7 +8153,8 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8164
8153
|
varProfileConfigMap: /* @__PURE__ */ new Map(),
|
8165
8154
|
varProfileMap: /* @__PURE__ */ new Map(),
|
8166
8155
|
varGridConfigMap: /* @__PURE__ */ new Map(),
|
8167
|
-
varGridMap: /* @__PURE__ */ new Map()
|
8156
|
+
varGridMap: /* @__PURE__ */ new Map(),
|
8157
|
+
onReadyListenersMap: /* @__PURE__ */ new Map()
|
8168
8158
|
}),
|
8169
8159
|
getters: {
|
8170
8160
|
getTopFormIDs() {
|
@@ -8552,6 +8542,37 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8552
8542
|
}
|
8553
8543
|
},
|
8554
8544
|
actions: {
|
8545
|
+
addEventListener(e, t, r) {
|
8546
|
+
switch (t) {
|
8547
|
+
case "ready":
|
8548
|
+
{
|
8549
|
+
const n = this.onReadyListenersMap.get(e);
|
8550
|
+
this.onReadyListenersMap.set(e, [...n != null ? n : [], r]);
|
8551
|
+
}
|
8552
|
+
break;
|
8553
|
+
}
|
8554
|
+
},
|
8555
|
+
removeEventListener(e, t, r) {
|
8556
|
+
switch (t) {
|
8557
|
+
case "ready":
|
8558
|
+
if (r) {
|
8559
|
+
const n = this.onReadyListenersMap.get(e);
|
8560
|
+
this.onReadyListenersMap.set(e, without$1(n, r));
|
8561
|
+
} else
|
8562
|
+
this.onReadyListenersMap.set(e, []);
|
8563
|
+
break;
|
8564
|
+
}
|
8565
|
+
},
|
8566
|
+
emit(e, t, r) {
|
8567
|
+
switch (t) {
|
8568
|
+
case "ready":
|
8569
|
+
{
|
8570
|
+
const n = this.onReadyListenersMap.get(e);
|
8571
|
+
n && n.forEach((a) => a());
|
8572
|
+
}
|
8573
|
+
break;
|
8574
|
+
}
|
8575
|
+
},
|
8555
8576
|
setIsCreating(e, t) {
|
8556
8577
|
this.isCreatingMap.set(e, unref(t)), unref(t) && (this.isUpdatingMap.set(e, !1), this.isCopyingMap.set(e, !1), this.isDeletingMap.set(e, !1)), this.isCreatingRequestingMap.set(e, !1), this.isUpdatingRequestingMap.set(e, !1), this.isCopyingRequestingMap.set(e, !1), this.isDeletingRequestingMap.set(e, !1);
|
8557
8578
|
},
|
@@ -8626,7 +8647,7 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8626
8647
|
}), this.varGridConfigMap.set(e, transformVarGridConfig(y != null ? y : null)), this.varGridMap.set(e, {
|
8627
8648
|
varGrid: transformVarGridDTO(C),
|
8628
8649
|
currentVarGridMasterID: (s = (o = (a = C == null ? void 0 : C.varGridMasters) == null ? void 0 : a.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : o.id) != null ? s : null
|
8629
|
-
});
|
8650
|
+
}), this.emit(e, "ready");
|
8630
8651
|
} catch (i) {
|
8631
8652
|
throw i;
|
8632
8653
|
} finally {
|
@@ -8657,6 +8678,17 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8657
8678
|
}
|
8658
8679
|
}
|
8659
8680
|
},
|
8681
|
+
setVarProfileDetailEnable(e, t, r) {
|
8682
|
+
if (!e || !t)
|
8683
|
+
return;
|
8684
|
+
const n = watch(
|
8685
|
+
() => this.getVarProfileDetail(e, t),
|
8686
|
+
(a) => {
|
8687
|
+
a && (setTimeout(() => n(), 0), a.ena_flg = r);
|
8688
|
+
},
|
8689
|
+
{ immediate: !0 }
|
8690
|
+
);
|
8691
|
+
},
|
8660
8692
|
async setCurrentVarGridMasterID(e, t) {
|
8661
8693
|
var a, o, s, i;
|
8662
8694
|
if (!e)
|
@@ -8721,44 +8753,48 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
8721
8753
|
function useKgVar(e, t, r = 0) {
|
8722
8754
|
var n, a;
|
8723
8755
|
try {
|
8724
|
-
let o =
|
8725
|
-
|
8756
|
+
let o = function(B) {
|
8757
|
+
return isFunction$2(B) ? (i.addEventListener(s, "ready", B), getCurrentInstance() && onUnmounted(() => i.removeEventListener(s, "ready", B)), () => i.removeEventListener(s, "ready", B)) : () => {
|
8758
|
+
};
|
8759
|
+
}, s = e || inject(KG_DI_FORM_ID, "");
|
8760
|
+
if (!s)
|
8726
8761
|
throw new Error("useKgVar() \u65B9\u6CD5\u5FC5\u987B\u4F20\u5165 formID \u53C2\u6570.");
|
8727
|
-
const
|
8728
|
-
t && getCurrentInstance() && (provide(KG_DI_FORM_ID,
|
8729
|
-
|
8762
|
+
const i = useKgVarStore()();
|
8763
|
+
t && getCurrentInstance() && (provide(KG_DI_FORM_ID, s), onMounted(() => {
|
8764
|
+
i.enter({ formID: s, level: r });
|
8730
8765
|
}), onUnmounted(() => {
|
8731
|
-
|
8766
|
+
i.leave(s);
|
8732
8767
|
}));
|
8733
|
-
const
|
8734
|
-
var
|
8735
|
-
return (
|
8736
|
-
}),
|
8737
|
-
var
|
8738
|
-
return (
|
8739
|
-
}),
|
8768
|
+
const l = (B) => computed(() => {
|
8769
|
+
var A, w, O;
|
8770
|
+
return (O = (w = (A = i.getVarCatalog(s, B)) == null ? void 0 : A.var_text) != null ? w : B) != null ? O : "";
|
8771
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), _ = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), v = computed(() => i.isOtherRequesting(s)), C = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), E = computed(() => i.getCurrentVarProfileMaster(s)), k = computed(() => i.getCurrentVarProfileMasterID(s)), V = computed(() => {
|
8772
|
+
var B, A;
|
8773
|
+
return (A = (B = E.value) == null ? void 0 : B.varProfileDetails) != null ? A : null;
|
8774
|
+
}), T = computed(() => i.getVarGridConfig(s)), K = computed(() => i.getVarGridMasters(s)), F = computed(() => i.getCurrentVarGridMaster(s)), I = computed(() => i.getSystemVarGridDetails(s)), $ = computed(() => i.getCurrentVarGridDetails(s));
|
8740
8775
|
return {
|
8741
|
-
formID:
|
8742
|
-
store:
|
8743
|
-
isRetrievingVar:
|
8744
|
-
isRetrievingVarProfileMaster:
|
8745
|
-
isRetrievingVarGridMaster:
|
8746
|
-
isCreating:
|
8747
|
-
isUpdating:
|
8748
|
-
isCopying:
|
8749
|
-
isDeleting:
|
8750
|
-
isOtherRequesting:
|
8751
|
-
varButtons:
|
8752
|
-
varProfileMasters:
|
8753
|
-
currentVarProfileMaster:
|
8754
|
-
currentVarProfileMasterID:
|
8755
|
-
currentVarProfileDetails:
|
8756
|
-
varGridConfig:
|
8757
|
-
varGridMasters:
|
8758
|
-
currentVarGridMaster:
|
8759
|
-
systemVarGridDetails:
|
8760
|
-
currentVarGridDetails:
|
8761
|
-
t:
|
8776
|
+
formID: s,
|
8777
|
+
store: i,
|
8778
|
+
isRetrievingVar: u,
|
8779
|
+
isRetrievingVarProfileMaster: c,
|
8780
|
+
isRetrievingVarGridMaster: g,
|
8781
|
+
isCreating: p,
|
8782
|
+
isUpdating: _,
|
8783
|
+
isCopying: b,
|
8784
|
+
isDeleting: m,
|
8785
|
+
isOtherRequesting: v,
|
8786
|
+
varButtons: C,
|
8787
|
+
varProfileMasters: y,
|
8788
|
+
currentVarProfileMaster: E,
|
8789
|
+
currentVarProfileMasterID: k,
|
8790
|
+
currentVarProfileDetails: V,
|
8791
|
+
varGridConfig: T,
|
8792
|
+
varGridMasters: K,
|
8793
|
+
currentVarGridMaster: F,
|
8794
|
+
systemVarGridDetails: I,
|
8795
|
+
currentVarGridDetails: $,
|
8796
|
+
t: l,
|
8797
|
+
onReady: o
|
8762
8798
|
};
|
8763
8799
|
} catch (o) {
|
8764
8800
|
throw (a = (n = o == null ? void 0 : o.message) == null ? void 0 : n.includes) != null && a.call(n, "getActivePinia was called with no active Pinia.") && (o.message = "\u5728\u7EC4\u4EF6\u5916\u8C03\u7528 useVar() \u65F6, \u9700\u8981\u5728\u51FD\u6570\u5185\u90E8\u8C03\u7528."), o;
|
@@ -8949,8 +8985,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
8949
8985
|
}) => {
|
8950
8986
|
const c = o.store.getVarSubmitConfig(o.formID);
|
8951
8987
|
return i = watch(u, (g) => {
|
8952
|
-
var p, _, b, m, v, C, y, E, k,
|
8953
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (k = c == null ? void 0 : c.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (
|
8988
|
+
var p, _, b, m, v, C, y, E, k, V, T, K;
|
8989
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (_ = c == null ? void 0 : c.resizable_flg) != null ? _ : 1, g.fullscreen_flg = (b = c == null ? void 0 : c.fullscreen_flg) != null ? b : 1, g.dft_fullscreen_flg = (m = c == null ? void 0 : c.dft_fullscreen_flg) != null ? m : 0, g.responsive_flg = (v = c == null ? void 0 : c.responsive_flg) != null ? v : 1, g.max_width = (C = c == null ? void 0 : c.max_width) != null ? C : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (E = c == null ? void 0 : c.dft_width) != null ? E : DEFAULT_WIDTH, g.layout = (k = c == null ? void 0 : c.layout) != null ? k : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (V = c == null ? void 0 : c.label_col) != null ? V : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (T = c == null ? void 0 : c.label_col_unit) != null ? T : KG_WIDTH_UNIT.SPAN, g.display_type = (K = c == null ? void 0 : c.display_type) != null ? K : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
8954
8990
|
}, {
|
8955
8991
|
immediate: !0
|
8956
8992
|
}), !1;
|
@@ -9146,50 +9182,56 @@ const getProps$p = () => ({
|
|
9146
9182
|
}) {
|
9147
9183
|
const r = useKg(), n = useKgVar(), a = useKgTable(), o = useKgSubmit(), s = useKgSearch(), i = inject(DI_KG_SLOTS, null);
|
9148
9184
|
_useFormModel();
|
9149
|
-
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)), g = computed(() => n.store.isDeleting(n.formID)), p = computed(() => g.value &&
|
9150
|
-
var
|
9185
|
+
const l = computed(() => n.store.isCreating(n.formID)), u = computed(() => n.store.isUpdating(n.formID)), c = computed(() => n.store.isCopying(n.formID)), g = computed(() => n.store.isDeleting(n.formID)), p = computed(() => g.value && $.value.length === 0 && B.value.length === 0), _ = computed(() => n.store.getVarButtonCreate(n.formID)), b = computed(() => n.store.getVarButtonUpdate(n.formID)), m = computed(() => n.store.getVarButtonCopy(n.formID)), v = computed(() => n.store.getVarButtonDelete(n.formID)), C = computed(() => o.store.isLoading(n.formID)), y = computed(() => n.store.getVarSubmitConfig(n.formID)), E = computed(() => n.store.getVarSubmitFieldsForCreateKey(n.formID)), k = computed(() => n.store.getVarSubmitFieldsForCreateNotKey(n.formID)), V = computed(() => n.store.getVarSubmitFieldsForUpdateKey(n.formID)), T = computed(() => n.store.getVarSubmitFieldsForUpdateNotKey(n.formID)), K = computed(() => n.store.getVarSubmitFieldsForCopyKey(n.formID)), F = computed(() => n.store.getVarSubmitFieldsForCopyNotKey(n.formID)), I = computed(() => n.store.getVarSubmitFieldsForDelete(n.formID)), $ = computed(() => {
|
9186
|
+
var R, H, Q;
|
9151
9187
|
switch (!0) {
|
9152
9188
|
case l.value:
|
9153
|
-
return (
|
9189
|
+
return (R = E.value) != null ? R : [];
|
9154
9190
|
case u.value:
|
9155
|
-
return (
|
9191
|
+
return (H = V.value) != null ? H : [];
|
9156
9192
|
case c.value:
|
9157
|
-
return (Q =
|
9193
|
+
return (Q = K.value) != null ? Q : [];
|
9158
9194
|
case g.value:
|
9159
9195
|
return [];
|
9160
9196
|
}
|
9161
9197
|
return [];
|
9162
|
-
}),
|
9163
|
-
var
|
9198
|
+
}), B = computed(() => {
|
9199
|
+
var R, H, Q, Z;
|
9164
9200
|
switch (!0) {
|
9165
9201
|
case l.value:
|
9166
|
-
return (
|
9202
|
+
return (R = k.value) != null ? R : [];
|
9167
9203
|
case u.value:
|
9168
|
-
return (
|
9204
|
+
return (H = T.value) != null ? H : [];
|
9169
9205
|
case c.value:
|
9170
9206
|
return (Q = F.value) != null ? Q : [];
|
9171
9207
|
case g.value:
|
9172
9208
|
return (Z = I.value) != null ? Z : [];
|
9173
9209
|
}
|
9174
9210
|
return [];
|
9175
|
-
}),
|
9211
|
+
}), A = computed(() => !!n.store.isCreatingRequesting(n.formID) || !!n.store.isUpdatingRequesting(n.formID) || !!n.store.isCopyingRequesting(n.formID) || !!n.store.isDeletingRequesting(n.formID)), w = computed(() => A.value || C.value), O = computed(() => C.value), M = ref({
|
9176
9212
|
kgWidth: 0
|
9213
|
+
}), N = computed(() => {
|
9214
|
+
var R;
|
9215
|
+
return !!(p.value || W.isFullscreen || ((R = y.value) == null ? void 0 : R.resizable_flg) === 0);
|
9177
9216
|
}), L = computed(() => {
|
9178
|
-
var
|
9179
|
-
return
|
9180
|
-
}),
|
9181
|
-
|
9182
|
-
|
9183
|
-
|
9184
|
-
|
9185
|
-
|
9186
|
-
|
9217
|
+
var R, H;
|
9218
|
+
return p.value ? 398 : (H = (R = y.value) == null ? void 0 : R.min_width) != null ? H : DEFAULT_MIN_WIDTH;
|
9219
|
+
}), G = computed(() => {
|
9220
|
+
var R, H;
|
9221
|
+
return p.value ? 398 : (H = (R = y.value) == null ? void 0 : R.max_width) != null ? H : DEFAULT_MAX_WIDTH;
|
9222
|
+
}), P = computed(() => p.value ? 398 : M.value.kgWidth), U = ref(null), z = ref({}), Y = ref(null);
|
9223
|
+
_useResizeObserver$1(Y);
|
9224
|
+
const J = _useTitle(), D = computed(() => p.value ? 400 : M.value.kgWidth && M.value.kgWidth > 0 ? M.value.kgWidth + 2 : 0), x = computed(() => D.value === 0 ? !1 : !!(l.value || u.value || c.value || g.value)), X = computed(() => {
|
9225
|
+
var H, Q;
|
9226
|
+
let R = "kg-submit";
|
9227
|
+
return W.isFullscreen && (R += " kg-submit--fullscreen"), ((H = y.value) == null ? void 0 : H.responsive_flg) !== 0 && (R += " kg-submit--responsive"), (((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL || g.value) && (R += " kg-submit--modal"), e.kgClass && (R += ` ${e.kgClass}`), R;
|
9228
|
+
}), W = reactive({
|
9187
9229
|
isFullscreen: !1
|
9188
|
-
}),
|
9189
|
-
var
|
9190
|
-
switch ((
|
9230
|
+
}), ee = computed(() => {
|
9231
|
+
var R, H, Q, Z;
|
9232
|
+
switch ((R = y.value) == null ? void 0 : R.layout) {
|
9191
9233
|
case "horizontal":
|
9192
|
-
switch ((
|
9234
|
+
switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
|
9193
9235
|
case KG_WIDTH_UNIT.SPAN:
|
9194
9236
|
return {
|
9195
9237
|
span: (Q = y.value) == null ? void 0 : Q.label_col
|
@@ -9204,11 +9246,11 @@ const getProps$p = () => ({
|
|
9204
9246
|
default:
|
9205
9247
|
return;
|
9206
9248
|
}
|
9207
|
-
}),
|
9208
|
-
var
|
9209
|
-
switch ((
|
9249
|
+
}), q = computed(() => {
|
9250
|
+
var R, H, Q;
|
9251
|
+
switch ((R = y.value) == null ? void 0 : R.layout) {
|
9210
9252
|
case "horizontal":
|
9211
|
-
switch ((
|
9253
|
+
switch ((H = y.value) == null ? void 0 : H.label_col_unit) {
|
9212
9254
|
case KG_WIDTH_UNIT.SPAN:
|
9213
9255
|
return {
|
9214
9256
|
span: 24 - ((Q = y.value) == null ? void 0 : Q.label_col)
|
@@ -9220,17 +9262,17 @@ const getProps$p = () => ({
|
|
9220
9262
|
return;
|
9221
9263
|
}
|
9222
9264
|
});
|
9223
|
-
watch(
|
9224
|
-
|
9265
|
+
watch(x, (R, H) => {
|
9266
|
+
R === !0 && te(), H === !0 && R === !1 && ie();
|
9225
9267
|
}, {
|
9226
9268
|
immediate: !0
|
9227
|
-
}), watch(y, (
|
9228
|
-
|
9269
|
+
}), watch(y, (R) => {
|
9270
|
+
R != null && R.dft_width && (M.value.kgWidth = R.dft_width);
|
9229
9271
|
}, {
|
9230
9272
|
immediate: !0
|
9231
9273
|
});
|
9232
|
-
function
|
9233
|
-
var
|
9274
|
+
function te() {
|
9275
|
+
var R;
|
9234
9276
|
o.store.emit(n.formID, "open", {
|
9235
9277
|
isCreating: l.value,
|
9236
9278
|
isUpdating: u.value,
|
@@ -9238,13 +9280,13 @@ const getProps$p = () => ({
|
|
9238
9280
|
isDeleting: g.value,
|
9239
9281
|
row: a.selectedRow.value,
|
9240
9282
|
model: o.model
|
9241
|
-
}), ((
|
9283
|
+
}), ((R = y.value) == null ? void 0 : R.dft_fullscreen_flg) === 1 && !p.value && (W.isFullscreen = !0);
|
9242
9284
|
}
|
9243
|
-
function
|
9244
|
-
var
|
9245
|
-
M.value.kgWidth = ((
|
9285
|
+
function ie() {
|
9286
|
+
var R;
|
9287
|
+
M.value.kgWidth = ((R = y.value) == null ? void 0 : R.dft_width) || DEFAULT_WIDTH, W.isFullscreen = !1, o.store.emit(n.formID, "close");
|
9246
9288
|
}
|
9247
|
-
function
|
9289
|
+
function le() {
|
9248
9290
|
switch (!0) {
|
9249
9291
|
case l.value:
|
9250
9292
|
n.store.setIsCreating(n.formID, !1);
|
@@ -9260,41 +9302,41 @@ const getProps$p = () => ({
|
|
9260
9302
|
break;
|
9261
9303
|
}
|
9262
9304
|
}
|
9263
|
-
async function
|
9264
|
-
var
|
9305
|
+
async function ce() {
|
9306
|
+
var R, H;
|
9265
9307
|
try {
|
9266
9308
|
if (await o.store.emit(n.formID, "beforeOk", {
|
9267
|
-
rules:
|
9309
|
+
rules: z,
|
9268
9310
|
model: o.model
|
9269
9311
|
}))
|
9270
9312
|
return;
|
9271
9313
|
try {
|
9272
|
-
await ((
|
9314
|
+
await ((R = U.value) == null ? void 0 : R.validate());
|
9273
9315
|
} catch (Z) {
|
9274
9316
|
KgUtil.throwIfNotFormError(Z);
|
9275
9317
|
}
|
9276
|
-
switch (await ((
|
9318
|
+
switch (await ((H = U.value) == null ? void 0 : H.validate()), !0) {
|
9277
9319
|
case l.value:
|
9278
|
-
await
|
9320
|
+
await fe();
|
9279
9321
|
break;
|
9280
9322
|
case u.value:
|
9281
|
-
await
|
9323
|
+
await ge();
|
9282
9324
|
break;
|
9283
9325
|
case c.value:
|
9284
|
-
await
|
9326
|
+
await pe();
|
9285
9327
|
break;
|
9286
9328
|
case g.value:
|
9287
|
-
await
|
9329
|
+
await me();
|
9288
9330
|
break;
|
9289
9331
|
}
|
9290
9332
|
} catch (Q) {
|
9291
9333
|
KgUtil.throwIfNotFormError(Q);
|
9292
9334
|
}
|
9293
9335
|
}
|
9294
|
-
async function
|
9295
|
-
var
|
9296
|
-
const
|
9297
|
-
if (!
|
9336
|
+
async function fe() {
|
9337
|
+
var H, Q, Z, re, ne, ae, oe;
|
9338
|
+
const R = (H = _.value) == null ? void 0 : H.cmd;
|
9339
|
+
if (!R) {
|
9298
9340
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9299
9341
|
button: _.value
|
9300
9342
|
});
|
@@ -9304,20 +9346,20 @@ const getProps$p = () => ({
|
|
9304
9346
|
try {
|
9305
9347
|
await httpClient().request({
|
9306
9348
|
method: (Z = (Q = _.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9307
|
-
url:
|
9308
|
-
params: KgVarUtil.parseCommandParameter((
|
9349
|
+
url: R,
|
9350
|
+
params: KgVarUtil.parseCommandParameter((ne = (re = _.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
|
9309
9351
|
data: toRaw(o.model.value)
|
9310
|
-
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (
|
9352
|
+
}), message.success(r.t("kg.createSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCreating(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae, !0);
|
9311
9353
|
} catch (se) {
|
9312
9354
|
console.error(se);
|
9313
9355
|
} finally {
|
9314
9356
|
n.store.setIsCreatingRequesting(n.formID, !1);
|
9315
9357
|
}
|
9316
9358
|
}
|
9317
|
-
async function
|
9318
|
-
var
|
9319
|
-
const
|
9320
|
-
if (!
|
9359
|
+
async function ge() {
|
9360
|
+
var H, Q, Z, re, ne, ae, oe;
|
9361
|
+
const R = (H = b.value) == null ? void 0 : H.cmd;
|
9362
|
+
if (!R) {
|
9321
9363
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9322
9364
|
button: b.value
|
9323
9365
|
});
|
@@ -9326,20 +9368,20 @@ const getProps$p = () => ({
|
|
9326
9368
|
try {
|
9327
9369
|
n.store.setIsUpdatingRequesting(n.formID, !0), await httpClient().request({
|
9328
9370
|
method: (Z = (Q = b.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9329
|
-
url:
|
9330
|
-
params: KgVarUtil.parseCommandParameter((
|
9371
|
+
url: R,
|
9372
|
+
params: KgVarUtil.parseCommandParameter((ne = (re = b.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
|
9331
9373
|
data: toRaw(o.model.value)
|
9332
|
-
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (
|
9374
|
+
}), message.success(r.t("kg.updateSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsUpdating(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae);
|
9333
9375
|
} catch (se) {
|
9334
9376
|
console.error(se);
|
9335
9377
|
} finally {
|
9336
9378
|
n.store.setIsUpdatingRequesting(n.formID, !1);
|
9337
9379
|
}
|
9338
9380
|
}
|
9339
|
-
async function
|
9340
|
-
var
|
9341
|
-
const
|
9342
|
-
if (!
|
9381
|
+
async function pe() {
|
9382
|
+
var H, Q, Z, re, ne, ae, oe;
|
9383
|
+
const R = (H = m.value) == null ? void 0 : H.cmd;
|
9384
|
+
if (!R) {
|
9343
9385
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9344
9386
|
button: m.value
|
9345
9387
|
});
|
@@ -9350,20 +9392,20 @@ const getProps$p = () => ({
|
|
9350
9392
|
const se = toRaw(o.model.value);
|
9351
9393
|
delete se.id, await httpClient().request({
|
9352
9394
|
method: (Z = (Q = m.value) == null ? void 0 : Q.cmd_method) != null ? Z : "POST",
|
9353
|
-
url:
|
9354
|
-
params: KgVarUtil.parseCommandParameter((
|
9395
|
+
url: R,
|
9396
|
+
params: KgVarUtil.parseCommandParameter((ne = (re = m.value) == null ? void 0 : re.cmd_prm) != null ? ne : ""),
|
9355
9397
|
data: toRaw(o.model.value)
|
9356
|
-
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (
|
9398
|
+
}), message.success(r.t("kg.copySuccess")), o.store.emit(n.formID, "ok"), n.store.setIsCopying(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae, !0);
|
9357
9399
|
} catch (se) {
|
9358
9400
|
console.error(se);
|
9359
9401
|
} finally {
|
9360
9402
|
n.store.setIsCopyingRequesting(n.formID, !1);
|
9361
9403
|
}
|
9362
9404
|
}
|
9363
|
-
async function
|
9364
|
-
var
|
9365
|
-
const
|
9366
|
-
if (!
|
9405
|
+
async function me() {
|
9406
|
+
var H, Q, Z, re, ne, ae, oe;
|
9407
|
+
const R = (H = v.value) == null ? void 0 : H.cmd;
|
9408
|
+
if (!R) {
|
9367
9409
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
9368
9410
|
button: v.value
|
9369
9411
|
});
|
@@ -9372,86 +9414,86 @@ const getProps$p = () => ({
|
|
9372
9414
|
try {
|
9373
9415
|
n.store.setIsDeletingRequesting(n.formID, !0), await httpClient().request({
|
9374
9416
|
method: (Z = (Q = v.value) == null ? void 0 : Q.cmd_method) != null ? Z : "DELETE",
|
9375
|
-
url:
|
9417
|
+
url: R,
|
9376
9418
|
params: {
|
9377
|
-
ids: (
|
9419
|
+
ids: (ne = (re = a.selectedRows.value) == null ? void 0 : re.map((se) => {
|
9378
9420
|
var ue;
|
9379
9421
|
return (ue = se.id) != null ? ue : "";
|
9380
|
-
})) != null ?
|
9422
|
+
})) != null ? ne : []
|
9381
9423
|
}
|
9382
9424
|
}, {
|
9383
9425
|
joinParamsToUrl: !0
|
9384
|
-
}), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (
|
9426
|
+
}), message.success(r.t("kg.deleteSuccess")), o.store.emit(n.formID, "ok"), n.store.setIsDeleting(n.formID, !1), (oe = (ae = s.search).value) == null || oe.call(ae, !0);
|
9385
9427
|
} catch (se) {
|
9386
9428
|
console.error(se);
|
9387
9429
|
} finally {
|
9388
9430
|
n.store.setIsDeletingRequesting(n.formID, !1);
|
9389
9431
|
}
|
9390
9432
|
}
|
9391
|
-
function
|
9433
|
+
function de(R) {
|
9392
9434
|
var Q, Z;
|
9393
|
-
const
|
9394
|
-
return isFunction$2(
|
9395
|
-
kgVarName:
|
9435
|
+
const H = (Z = (Q = i == null ? void 0 : i.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : Z[R.var_nam];
|
9436
|
+
return isFunction$2(H) ? createVNode(KgForm.Item, {
|
9437
|
+
kgVarName: R.var_nam,
|
9396
9438
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9397
|
-
kgRules:
|
9398
|
-
onKgSubmit:
|
9439
|
+
kgRules: z.value[R.var_nam],
|
9440
|
+
onKgSubmit: ce
|
9399
9441
|
}, {
|
9400
9442
|
control: ({
|
9401
|
-
varName:
|
9402
|
-
props:
|
9403
|
-
model:
|
9404
|
-
varConfig:
|
9443
|
+
varName: re,
|
9444
|
+
props: ne,
|
9445
|
+
model: ae,
|
9446
|
+
varConfig: oe,
|
9405
9447
|
varProfileDetail: se,
|
9406
9448
|
varSubmitField: ue
|
9407
|
-
}) =>
|
9408
|
-
varName:
|
9409
|
-
props:
|
9410
|
-
model:
|
9411
|
-
varConfig:
|
9449
|
+
}) => H({
|
9450
|
+
varName: re,
|
9451
|
+
props: ne,
|
9452
|
+
model: ae,
|
9453
|
+
varConfig: oe,
|
9412
9454
|
varProfileDetail: se,
|
9413
9455
|
varSubmitField: ue
|
9414
9456
|
})
|
9415
9457
|
}) : createVNode(KgForm.Item, {
|
9416
|
-
kgVarName:
|
9458
|
+
kgVarName: R.var_nam,
|
9417
9459
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
9418
|
-
kgRules:
|
9419
|
-
onKgSubmit:
|
9460
|
+
kgRules: z.value[R.var_nam],
|
9461
|
+
onKgSubmit: ce
|
9420
9462
|
}, null);
|
9421
9463
|
}
|
9422
|
-
function
|
9423
|
-
var Q
|
9424
|
-
let
|
9464
|
+
function he() {
|
9465
|
+
var Q;
|
9466
|
+
let R, H;
|
9425
9467
|
return createVNode(KgResizable, {
|
9426
9468
|
kgType: ((Q = y.value) == null ? void 0 : Q.display_type) === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
9427
|
-
kgMinWidth:
|
9428
|
-
kgMaxWidth:
|
9429
|
-
|
9430
|
-
|
9431
|
-
"onUpdate:kgWidth": (
|
9469
|
+
kgMinWidth: L.value,
|
9470
|
+
kgMaxWidth: G.value,
|
9471
|
+
kgWidth: P.value,
|
9472
|
+
kgDisabled: N.value,
|
9473
|
+
"onUpdate:kgWidth": (Z) => M.value.kgWidth = Z
|
9432
9474
|
}, {
|
9433
9475
|
default: () => [createVNode(Spin, {
|
9434
9476
|
spinning: C.value
|
9435
9477
|
}, {
|
9436
9478
|
default: () => {
|
9437
|
-
var
|
9479
|
+
var Z, re;
|
9438
9480
|
return [createVNode(KgForm, {
|
9439
|
-
ref:
|
9481
|
+
ref: U,
|
9440
9482
|
model: o.model.value,
|
9441
|
-
layout: (
|
9442
|
-
labelCol:
|
9443
|
-
wrapperCol:
|
9483
|
+
layout: (re = (Z = y.value) == null ? void 0 : Z.layout) != null ? re : "vertical",
|
9484
|
+
labelCol: ee.value,
|
9485
|
+
wrapperCol: q.value
|
9444
9486
|
}, {
|
9445
9487
|
default: () => [createVNode("div", {
|
9446
|
-
ref:
|
9447
|
-
}, [
|
9488
|
+
ref: Y
|
9489
|
+
}, [$.value.length > 0 && createVNode(Row, {
|
9448
9490
|
gutter: 12
|
9449
|
-
}, _isSlot$7(
|
9450
|
-
default: () => [
|
9451
|
-
}),
|
9491
|
+
}, _isSlot$7(R = $.value.map(de)) ? R : {
|
9492
|
+
default: () => [R]
|
9493
|
+
}), $.value.length > 0 && B.value.length > 0 && createVNode(Divider, null, null), B.value.length > 0 && createVNode(Row, {
|
9452
9494
|
gutter: 12
|
9453
|
-
}, _isSlot$7(
|
9454
|
-
default: () => [
|
9495
|
+
}, _isSlot$7(H = B.value.map(de)) ? H : {
|
9496
|
+
default: () => [H]
|
9455
9497
|
}), p.value && createVNode("div", {
|
9456
9498
|
style: "text-align: center; padding: 6px 0 12px;"
|
9457
9499
|
}, [r.t("kg.confirmDelete")])])]
|
@@ -9460,56 +9502,56 @@ const getProps$p = () => ({
|
|
9460
9502
|
})]
|
9461
9503
|
});
|
9462
9504
|
}
|
9463
|
-
function
|
9464
|
-
let
|
9505
|
+
function _e() {
|
9506
|
+
let R, H;
|
9465
9507
|
return createVNode("div", null, [createVNode(Button, {
|
9466
9508
|
type: "primary",
|
9467
9509
|
ghost: !w.value,
|
9468
9510
|
disabled: w.value,
|
9469
|
-
onClick:
|
9470
|
-
}, _isSlot$7(
|
9471
|
-
default: () => [
|
9511
|
+
onClick: le
|
9512
|
+
}, _isSlot$7(R = r.t("kg.cancel")) ? R : {
|
9513
|
+
default: () => [R]
|
9472
9514
|
}), createVNode(Button, {
|
9473
9515
|
type: "primary",
|
9474
9516
|
disabled: O.value,
|
9475
|
-
loading:
|
9517
|
+
loading: A.value,
|
9476
9518
|
danger: !!g.value,
|
9477
|
-
onClick:
|
9478
|
-
}, _isSlot$7(
|
9479
|
-
default: () => [
|
9519
|
+
onClick: ce
|
9520
|
+
}, _isSlot$7(H = r.t(g.value ? "kg.delete" : "kg.save")) ? H : {
|
9521
|
+
default: () => [H]
|
9480
9522
|
})]);
|
9481
9523
|
}
|
9482
|
-
function
|
9524
|
+
function ve() {
|
9483
9525
|
return createVNode("div", {
|
9484
|
-
title:
|
9485
|
-
}, [
|
9526
|
+
title: J.title.value
|
9527
|
+
}, [J.title.value]);
|
9486
9528
|
}
|
9487
|
-
function
|
9529
|
+
function be() {
|
9488
9530
|
return createVNode(KgSubmitHeader, {
|
9489
|
-
isFullscreen:
|
9490
|
-
"onUpdate:isFullscreen": (
|
9531
|
+
isFullscreen: W.isFullscreen,
|
9532
|
+
"onUpdate:isFullscreen": (R) => W.isFullscreen = R,
|
9491
9533
|
kgShowFullscreenButton: !p.value,
|
9492
9534
|
kgShowConfigButton: !p.value && e.kgShowConfigButton,
|
9493
|
-
onKgCancel:
|
9535
|
+
onKgCancel: le
|
9494
9536
|
}, null);
|
9495
9537
|
}
|
9496
9538
|
return onUnmounted(() => {
|
9497
9539
|
o.store.dispose(n.formID);
|
9498
9540
|
}), () => createVNode(Drawer, {
|
9499
|
-
visible:
|
9541
|
+
visible: x.value,
|
9500
9542
|
placement: "right",
|
9501
9543
|
closable: !1,
|
9502
9544
|
maskClosable: !1,
|
9503
9545
|
keyboard: !1,
|
9504
9546
|
destroyOnClose: !0,
|
9505
|
-
width:
|
9506
|
-
class:
|
9547
|
+
width: D.value,
|
9548
|
+
class: X.value,
|
9507
9549
|
"kg-frm-id": n.formID
|
9508
9550
|
}, {
|
9509
|
-
title:
|
9510
|
-
extra:
|
9511
|
-
default:
|
9512
|
-
footer:
|
9551
|
+
title: ve,
|
9552
|
+
extra: be,
|
9553
|
+
default: he,
|
9554
|
+
footer: _e
|
9513
9555
|
});
|
9514
9556
|
}
|
9515
9557
|
}), KgVar$1 = "", getProps$o = () => ({
|
@@ -9728,8 +9770,8 @@ const getProps$l = () => ({
|
|
9728
9770
|
}) => {
|
9729
9771
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
9730
9772
|
return s = watch(l, (c) => {
|
9731
|
-
var g, p, _, b, m, v, C, y, E, k,
|
9732
|
-
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (k = u == null ? void 0 : u.cmd_prm) != null ? k : void 0, c.button_display_type = (
|
9773
|
+
var g, p, _, b, m, v, C, y, E, k, V;
|
9774
|
+
c && (c.id = (g = u == null ? void 0 : u.id) != null ? g : null, c.frm_id = n == null ? void 0 : n.formID, c.aut_load_flg = (p = u == null ? void 0 : u.aut_load_flg) != null ? p : 0, c.mult_flg = (_ = u == null ? void 0 : u.mult_flg) != null ? _ : 0, c.show_check_column_flg = (b = u == null ? void 0 : u.show_check_column_flg) != null ? b : 0, c.show_bottom_left_flg = (m = u == null ? void 0 : u.show_bottom_left_flg) != null ? m : 1, c.show_bottom_right_flg = (v = u == null ? void 0 : u.show_bottom_right_flg) != null ? v : 1, c.convert_sort_field_to_under_score_flg = (C = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? C : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (E = u == null ? void 0 : u.pg_size_opt) != null ? E : 10, c.cmd_prm = (k = u == null ? void 0 : u.cmd_prm) != null ? k : void 0, c.button_display_type = (V = u == null ? void 0 : u.button_display_type) != null ? V : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
9733
9775
|
}, {
|
9734
9776
|
immediate: !0
|
9735
9777
|
}), !1;
|
@@ -10001,10 +10043,10 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10001
10043
|
var E;
|
10002
10044
|
let C, y;
|
10003
10045
|
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((k) => {
|
10004
|
-
var
|
10046
|
+
var V;
|
10005
10047
|
return createVNode(Menu.Item, {
|
10006
10048
|
key: k.id,
|
10007
|
-
class: k.id === ((
|
10049
|
+
class: k.id === ((V = a.currentVarGridMaster.value) == null ? void 0 : V.id) ? "selected" : "",
|
10008
10050
|
"kg-var-nam": k.grd_var_nam,
|
10009
10051
|
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, k.id)
|
10010
10052
|
}, {
|
@@ -10291,8 +10333,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10291
10333
|
emit: r
|
10292
10334
|
}) {
|
10293
10335
|
const n = useKg(), a = useKgVar(), o = useKgSearch(), s = useKgButton(), i = useKgTable();
|
10294
|
-
o.onSearch((
|
10295
|
-
O(
|
10336
|
+
o.onSearch((D) => {
|
10337
|
+
O(D);
|
10296
10338
|
}), o.onReset(() => {
|
10297
10339
|
O(!0);
|
10298
10340
|
});
|
@@ -10304,212 +10346,212 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10304
10346
|
} = _useLoading(), p = ref(null);
|
10305
10347
|
_useResizeObserver(p);
|
10306
10348
|
const _ = computed(() => a.store.getVarButtonSearch(a.formID)), b = computed(() => {
|
10307
|
-
var
|
10308
|
-
return ((
|
10349
|
+
var D;
|
10350
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.mult_flg) === 1;
|
10309
10351
|
}), m = computed(() => {
|
10310
|
-
var
|
10311
|
-
return ((
|
10352
|
+
var D;
|
10353
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.aut_load_flg) === 1;
|
10312
10354
|
}), v = computed(() => {
|
10313
|
-
var
|
10314
|
-
return ((
|
10355
|
+
var D;
|
10356
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_left_flg) !== 0;
|
10315
10357
|
}), C = computed(() => {
|
10316
|
-
var
|
10317
|
-
return ((
|
10358
|
+
var D;
|
10359
|
+
return ((D = a.varGridConfig.value) == null ? void 0 : D.show_bottom_right_flg) !== 0;
|
10318
10360
|
}), y = computed(() => {
|
10319
|
-
var
|
10320
|
-
return JSON.parse((
|
10361
|
+
var D, x;
|
10362
|
+
return JSON.parse((x = (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opts) != null ? x : "[]");
|
10321
10363
|
}), E = computed(() => {
|
10322
|
-
var
|
10323
|
-
return (
|
10364
|
+
var D;
|
10365
|
+
return (D = a.varGridConfig.value) == null ? void 0 : D.pg_size_opt;
|
10324
10366
|
}), k = computed(() => {
|
10325
|
-
var
|
10326
|
-
return (
|
10327
|
-
}),
|
10328
|
-
var
|
10329
|
-
let
|
10330
|
-
pageNo:
|
10331
|
-
pageSize:
|
10332
|
-
...
|
10333
|
-
...(X = (
|
10367
|
+
var D, x;
|
10368
|
+
return (x = (D = _.value) == null ? void 0 : D.cmd) != null ? x : null;
|
10369
|
+
}), V = computed(() => {
|
10370
|
+
var x, X, W, ee, q, te, ie;
|
10371
|
+
let D = {
|
10372
|
+
pageNo: $.pageIndex,
|
10373
|
+
pageSize: $.pageSize,
|
10374
|
+
...B,
|
10375
|
+
...(X = (x = o.model) == null ? void 0 : x.value) != null ? X : {}
|
10334
10376
|
};
|
10335
|
-
return _.value && (
|
10336
|
-
...
|
10337
|
-
...KgVarUtil.parseCommandParameter((ee = (
|
10338
|
-
}), (
|
10339
|
-
...
|
10377
|
+
return _.value && (D = {
|
10378
|
+
...D,
|
10379
|
+
...KgVarUtil.parseCommandParameter((ee = (W = _.value) == null ? void 0 : W.cmd_prm) != null ? ee : "")
|
10380
|
+
}), (q = a.varGridConfig.value) != null && q.cmd_prm && (D = {
|
10381
|
+
...D,
|
10340
10382
|
...KgVarUtil.parseCommandParameter((te = a.varGridConfig.value.cmd_prm) != null ? te : "")
|
10341
|
-
}), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 &&
|
10383
|
+
}), ((ie = a.varGridConfig.value) == null ? void 0 : ie.convert_sort_field_to_under_score_flg) === 1 && D.column && (D.column = snakeCase$1(D.column)), D;
|
10342
10384
|
}), T = computed(() => {
|
10343
|
-
var
|
10344
|
-
if (((
|
10385
|
+
var D;
|
10386
|
+
if (((D = a.varGridConfig.value) == null ? void 0 : D.show_check_column_flg) === 1)
|
10345
10387
|
return {
|
10346
10388
|
fixed: "left",
|
10347
10389
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
10348
10390
|
hideSelectAll: !b.value,
|
10349
10391
|
selectedRowKeys: I,
|
10350
10392
|
preserveSelectedRowKeys: !1,
|
10351
|
-
onSelect: (
|
10352
|
-
onChange: (
|
10393
|
+
onSelect: (x) => N(x),
|
10394
|
+
onChange: (x) => b.value && M(x)
|
10353
10395
|
};
|
10354
|
-
}),
|
10355
|
-
let
|
10356
|
-
return !v.value && !C.value && (
|
10357
|
-
}), F = ref([]), I = ref([]),
|
10396
|
+
}), K = computed(() => {
|
10397
|
+
let D = "kg-table";
|
10398
|
+
return !v.value && !C.value && (D += " kg-table--no-bottom"), D;
|
10399
|
+
}), F = ref([]), I = ref([]), $ = reactive({
|
10358
10400
|
pageIndex: 1,
|
10359
10401
|
pageSize: 10,
|
10360
10402
|
total: 0
|
10361
|
-
}),
|
10403
|
+
}), B = reactive({
|
10362
10404
|
column: void 0,
|
10363
10405
|
order: void 0
|
10364
|
-
}),
|
10365
|
-
|
10406
|
+
}), A = watch(E, (D) => {
|
10407
|
+
D && (setTimeout(() => A()), $.pageSize = D), l.value = !0;
|
10366
10408
|
});
|
10367
|
-
watch(y, (
|
10368
|
-
|
10369
|
-
}), watch([k, m,
|
10370
|
-
|
10409
|
+
watch(y, (D) => {
|
10410
|
+
D.length > 0 && !D.includes($.pageSize) && ($.pageSize = E.value);
|
10411
|
+
}), watch([k, m, o.isReady], ([D, x, X]) => {
|
10412
|
+
D && x && X && !i.store.getIsRetrieved(a.formID) && O(!0);
|
10371
10413
|
}, {
|
10372
10414
|
immediate: !0
|
10373
10415
|
}), onUnmounted(() => {
|
10374
10416
|
i.store.dispose(a.formID);
|
10375
10417
|
});
|
10376
|
-
function w(
|
10418
|
+
function w(D, x) {
|
10377
10419
|
if (!!T.value) {
|
10378
|
-
if (!
|
10420
|
+
if (!x) {
|
10379
10421
|
I.value = [], i.store.setSelectedRows(a.formID, []);
|
10380
10422
|
return;
|
10381
10423
|
}
|
10382
|
-
switch (
|
10424
|
+
switch (D == null ? void 0 : D.detail) {
|
10383
10425
|
case 1:
|
10384
|
-
I.value = [
|
10385
|
-
var
|
10386
|
-
return (
|
10426
|
+
I.value = [x.id], i.store.setSelectedRows(a.formID, I.value.map((X) => {
|
10427
|
+
var W;
|
10428
|
+
return (W = F.value) == null ? void 0 : W.find((ee) => ee.id === X);
|
10387
10429
|
}).filter((X) => !!X));
|
10388
10430
|
break;
|
10389
10431
|
case 2:
|
10390
|
-
i.store.emit(a.formID, "rowDoubleClick",
|
10432
|
+
i.store.emit(a.formID, "rowDoubleClick", x);
|
10391
10433
|
break;
|
10392
10434
|
}
|
10393
10435
|
}
|
10394
10436
|
}
|
10395
|
-
function O(
|
10396
|
-
const
|
10397
|
-
|
10437
|
+
function O(D = !1) {
|
10438
|
+
const x = watch(l, (W) => {
|
10439
|
+
W && (setTimeout(() => x()), X());
|
10398
10440
|
}, {
|
10399
10441
|
immediate: !0
|
10400
10442
|
});
|
10401
10443
|
async function X() {
|
10402
|
-
var
|
10444
|
+
var W, ee;
|
10403
10445
|
if (!k.value) {
|
10404
10446
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10405
10447
|
button: _.value
|
10406
10448
|
});
|
10407
10449
|
return;
|
10408
10450
|
}
|
10409
|
-
|
10451
|
+
D && ($.pageIndex = 1), i.store.setIsRetrieving(a.formID, !0);
|
10410
10452
|
try {
|
10411
|
-
const
|
10453
|
+
const q = await httpClient().request({
|
10412
10454
|
method: "GET",
|
10413
10455
|
url: k.value,
|
10414
|
-
params:
|
10456
|
+
params: V.value
|
10415
10457
|
});
|
10416
|
-
|
10417
|
-
} catch (
|
10418
|
-
throw
|
10458
|
+
q ? isArrayLike(q) ? (F.value = q, $.total = q.length) : "total" in q && "records" in q && (F.value = (W = q.records) != null ? W : [], $.total = (ee = q.total) != null ? ee : 0) : (F.value = [], $.total = 0), i.store.emit(a.formID, "retrieve", q), w(), await nextTick(), i.store.setIsRetrieved(a.formID, !0);
|
10459
|
+
} catch (q) {
|
10460
|
+
throw q;
|
10419
10461
|
} finally {
|
10420
10462
|
i.store.setIsRetrieving(a.formID, !1);
|
10421
10463
|
}
|
10422
10464
|
}
|
10423
10465
|
}
|
10424
|
-
function M(
|
10425
|
-
I.value =
|
10466
|
+
function M(D) {
|
10467
|
+
I.value = D, i.store.setSelectedRows(a.formID, I.value.map((x) => {
|
10426
10468
|
var X;
|
10427
|
-
return (X = F.value) == null ? void 0 : X.find((
|
10428
|
-
}).filter((
|
10469
|
+
return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
|
10470
|
+
}).filter((x) => !!x));
|
10429
10471
|
}
|
10430
|
-
function
|
10431
|
-
var
|
10472
|
+
function N(D) {
|
10473
|
+
var x, X;
|
10432
10474
|
switch (b.value) {
|
10433
10475
|
case !0:
|
10434
10476
|
{
|
10435
|
-
const
|
10436
|
-
I.value.includes(
|
10477
|
+
const W = D.id;
|
10478
|
+
I.value.includes(W) ? I.value = without$1(I.value, W) : I.value = [...(x = I.value) != null ? x : [], W];
|
10437
10479
|
}
|
10438
10480
|
break;
|
10439
10481
|
case !1:
|
10440
10482
|
{
|
10441
|
-
const
|
10442
|
-
(X = I.value) != null && X.includes(
|
10483
|
+
const W = D.id;
|
10484
|
+
(X = I.value) != null && X.includes(W) ? I.value = [] : I.value = [W];
|
10443
10485
|
}
|
10444
10486
|
break;
|
10445
10487
|
}
|
10446
|
-
i.store.setSelectedRows(a.formID, I.value.map((
|
10488
|
+
i.store.setSelectedRows(a.formID, I.value.map((W) => {
|
10447
10489
|
var ee;
|
10448
|
-
return (ee = F.value) == null ? void 0 : ee.find((
|
10449
|
-
}).filter((
|
10490
|
+
return (ee = F.value) == null ? void 0 : ee.find((q) => q.id === W);
|
10491
|
+
}).filter((W) => !!W));
|
10450
10492
|
}
|
10451
|
-
function
|
10452
|
-
|
10493
|
+
function L(D, x) {
|
10494
|
+
x.width = D, a.store.setVarGridDetailWidth(a.formID, x.dataIndex, D);
|
10453
10495
|
}
|
10454
|
-
async function G(
|
10496
|
+
async function G(D, x, X, W) {
|
10455
10497
|
var ee;
|
10456
|
-
switch (
|
10498
|
+
switch (W.action) {
|
10457
10499
|
case "sort":
|
10458
10500
|
{
|
10459
10501
|
await nextTick();
|
10460
|
-
let
|
10461
|
-
|
10502
|
+
let q = X;
|
10503
|
+
q.order ? (B.column = (ee = q.field) != null ? ee : void 0, B.order = q.order === "ascend" ? "asc" : q.order === "descend" ? "desc" : void 0) : (B.column = void 0, B.order = void 0), O(!0);
|
10462
10504
|
}
|
10463
10505
|
break;
|
10464
10506
|
}
|
10465
10507
|
}
|
10466
|
-
function P(
|
10467
|
-
|
10508
|
+
function P(D, x) {
|
10509
|
+
x !== $.pageSize ? ($.pageIndex = 1, $.pageSize = x) : $.pageIndex = D, O();
|
10468
10510
|
}
|
10469
|
-
function
|
10470
|
-
I.value = [
|
10511
|
+
function U(D) {
|
10512
|
+
I.value = [D.id], i.store.setSelectedRows(a.formID, I.value.map((x) => {
|
10471
10513
|
var X;
|
10472
|
-
return (X = F.value) == null ? void 0 : X.find((
|
10473
|
-
}).filter((
|
10514
|
+
return (X = F.value) == null ? void 0 : X.find((W) => W.id === x);
|
10515
|
+
}).filter((x) => !!x)), s.click(a.formID, KG_BUTTON_TYPE.UPDATE);
|
10474
10516
|
}
|
10475
|
-
function
|
10476
|
-
title:
|
10477
|
-
column:
|
10517
|
+
function z({
|
10518
|
+
title: D,
|
10519
|
+
column: x
|
10478
10520
|
}) {
|
10479
|
-
switch (
|
10521
|
+
switch (x.dataIndex) {
|
10480
10522
|
case "index":
|
10481
10523
|
return createVNode(KgTableSetting, null, null);
|
10482
10524
|
default:
|
10483
|
-
return createVNode("pre", null, [
|
10525
|
+
return createVNode("pre", null, [D]);
|
10484
10526
|
}
|
10485
10527
|
}
|
10486
10528
|
function Y({
|
10487
|
-
column:
|
10488
|
-
index:
|
10529
|
+
column: D,
|
10530
|
+
index: x,
|
10489
10531
|
record: X,
|
10490
|
-
value:
|
10532
|
+
value: W,
|
10491
10533
|
text: ee
|
10492
10534
|
}) {
|
10493
|
-
let
|
10494
|
-
|
10495
|
-
index:
|
10535
|
+
let q = "";
|
10536
|
+
D.customRender ? q = D.customRender({
|
10537
|
+
index: x,
|
10496
10538
|
record: X,
|
10497
|
-
column:
|
10539
|
+
column: D,
|
10498
10540
|
text: ee,
|
10499
|
-
value:
|
10500
|
-
renderIndex:
|
10501
|
-
}) :
|
10541
|
+
value: W,
|
10542
|
+
renderIndex: x
|
10543
|
+
}) : q = W;
|
10502
10544
|
const te = createVNode(KgTableCell, {
|
10503
10545
|
kgRow: X,
|
10504
|
-
kgValue:
|
10505
|
-
kgVarName:
|
10506
|
-
onKgUpdateLinkClick: () =>
|
10546
|
+
kgValue: q,
|
10547
|
+
kgVarName: D.dataIndex,
|
10548
|
+
onKgUpdateLinkClick: () => U(X)
|
10507
10549
|
}, null);
|
10508
10550
|
return t.bodyCell ? t.bodyCell({
|
10509
|
-
value:
|
10551
|
+
value: W,
|
10510
10552
|
record: X,
|
10511
|
-
index:
|
10512
|
-
column:
|
10553
|
+
index: x,
|
10554
|
+
column: D,
|
10513
10555
|
defaultRender: te
|
10514
10556
|
}) : te;
|
10515
10557
|
}
|
@@ -10517,7 +10559,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10517
10559
|
return !m.value && !i.store.getIsRetrieved(a.formID) ? n.t("kg.KgTable.emptyText") : n.t("kg.emptyText");
|
10518
10560
|
}
|
10519
10561
|
return () => createVNode("div", {
|
10520
|
-
class:
|
10562
|
+
class: K.value,
|
10521
10563
|
"kg-frm-id": a.formID,
|
10522
10564
|
ref: p
|
10523
10565
|
}, [createVNode(Table, {
|
@@ -10534,13 +10576,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10534
10576
|
loading: g.value,
|
10535
10577
|
rowKey: "id",
|
10536
10578
|
rowSelection: T.value,
|
10537
|
-
customRow: (
|
10538
|
-
onClick: (
|
10579
|
+
customRow: (D) => ({
|
10580
|
+
onClick: (x) => w(x, D)
|
10539
10581
|
}),
|
10540
|
-
onResizeColumn:
|
10582
|
+
onResizeColumn: L,
|
10541
10583
|
onChange: G
|
10542
10584
|
}, {
|
10543
|
-
headerCell:
|
10585
|
+
headerCell: z,
|
10544
10586
|
bodyCell: Y,
|
10545
10587
|
emptyText: J
|
10546
10588
|
}), (v.value || C.value) && createVNode("div", {
|
@@ -10549,7 +10591,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10549
10591
|
class: "left"
|
10550
10592
|
}, [v.value && createVNode(KgTableInfo, {
|
10551
10593
|
kgShowClearCheck: I.value.length > 0,
|
10552
|
-
kgShowClearTable:
|
10594
|
+
kgShowClearTable: $.total > 0,
|
10553
10595
|
kgShowLocate: I.value.length === 1,
|
10554
10596
|
kgTotal: I.value.length,
|
10555
10597
|
kgDisabled: g.value
|
@@ -10557,23 +10599,23 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10557
10599
|
class: "right"
|
10558
10600
|
}, [C.value && createVNode(Pagination, {
|
10559
10601
|
size: "default",
|
10560
|
-
current:
|
10561
|
-
pageSize:
|
10562
|
-
pageSizeOptions: y.value.map((
|
10563
|
-
total:
|
10602
|
+
current: $.pageIndex,
|
10603
|
+
pageSize: $.pageSize,
|
10604
|
+
pageSizeOptions: y.value.map((D) => String(D)),
|
10605
|
+
total: $.total,
|
10564
10606
|
showSizeChanger: !0,
|
10565
10607
|
showQuickJumper: !1,
|
10566
10608
|
hideOnSinglePage: !1,
|
10567
|
-
disabled: g.value ||
|
10609
|
+
disabled: g.value || $.total === 0,
|
10568
10610
|
locale: {
|
10569
10611
|
page: ""
|
10570
10612
|
},
|
10571
|
-
showTotal: (
|
10572
|
-
from:
|
10573
|
-
to:
|
10574
|
-
total:
|
10613
|
+
showTotal: (D, x) => n.t("kg.KgTable.totalText", {
|
10614
|
+
from: x[0],
|
10615
|
+
to: x[1],
|
10616
|
+
total: D
|
10575
10617
|
}),
|
10576
|
-
onChange: (
|
10618
|
+
onChange: (D, x) => P(D, x)
|
10577
10619
|
}, null)])])]);
|
10578
10620
|
}
|
10579
10621
|
}), getProps$f = () => ({
|
@@ -10910,8 +10952,8 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
10910
10952
|
params: KgVarUtil.parseCommandParameter((E = (y = e.kgButton) == null ? void 0 : y.cmd_prm) != null ? E : ""),
|
10911
10953
|
data: _ ? b != null ? b : [] : (k = b == null ? void 0 : b[0]) != null ? k : {}
|
10912
10954
|
});
|
10913
|
-
} catch (
|
10914
|
-
console.error(
|
10955
|
+
} catch (V) {
|
10956
|
+
console.error(V);
|
10915
10957
|
} finally {
|
10916
10958
|
r.store.setIsOtherRequesting(r.formID, !1), l == null || l.hideLoading();
|
10917
10959
|
}
|
@@ -11415,7 +11457,7 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11415
11457
|
{
|
11416
11458
|
const s = [], i = this.onReadyListenersMap.get(o);
|
11417
11459
|
i && i.forEach((l) => {
|
11418
|
-
l.once
|
11460
|
+
l.once && !l.invoked && (l.invoked = !0, s.push(l)), l();
|
11419
11461
|
}), s.forEach((l) => this.removeEventListener(o, "ready", l));
|
11420
11462
|
}
|
11421
11463
|
break;
|
@@ -11437,10 +11479,13 @@ const useKgSearchStore = () => (store$2 || (store$2 = defineStore("KgSearch", {
|
|
11437
11479
|
patchModel(e, t) {
|
11438
11480
|
if (!e || !t)
|
11439
11481
|
return;
|
11440
|
-
const r =
|
11441
|
-
|
11442
|
-
|
11443
|
-
|
11482
|
+
const r = watch(
|
11483
|
+
() => this.modelMap.get(e),
|
11484
|
+
(n) => {
|
11485
|
+
n && (setTimeout(() => r(), 0), Object.entries(t).forEach(([a, o]) => n[a] = o));
|
11486
|
+
},
|
11487
|
+
{ immediate: !0 }
|
11488
|
+
);
|
11444
11489
|
},
|
11445
11490
|
setSearchFn(e, t) {
|
11446
11491
|
if (!!e) {
|
@@ -11683,7 +11728,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11683
11728
|
row: C,
|
11684
11729
|
model: y
|
11685
11730
|
}) => {
|
11686
|
-
var k,
|
11731
|
+
var k, V, T;
|
11687
11732
|
const E = i.store.getSystemVarProfileDetails(i.formID);
|
11688
11733
|
switch (l.value = E ? cloneDeep(unref(toRaw(E))) : [], !0) {
|
11689
11734
|
case b:
|
@@ -11694,24 +11739,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11694
11739
|
if (C != null && C.id)
|
11695
11740
|
try {
|
11696
11741
|
s.store.setIsLoading(n.formID, !0);
|
11697
|
-
const
|
11742
|
+
const K = await QueryByID({
|
11698
11743
|
params: {
|
11699
11744
|
id: C.id
|
11700
11745
|
}
|
11701
11746
|
});
|
11702
11747
|
l.value = l.value.map((I) => {
|
11703
|
-
var
|
11704
|
-
const
|
11705
|
-
return
|
11748
|
+
var B;
|
11749
|
+
const $ = (B = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : B.find((A) => A.var_nam === I.var_nam);
|
11750
|
+
return $ ? {
|
11706
11751
|
...I,
|
11707
|
-
|
11752
|
+
...$,
|
11708
11753
|
id: I.id
|
11709
11754
|
} : I;
|
11710
11755
|
});
|
11711
|
-
const F = (
|
11756
|
+
const F = (V = (k = K == null ? void 0 : K.varProfileDetails) == null ? void 0 : k.map((I) => I.var_nam)) != null ? V : [];
|
11712
11757
|
u.value = l.value.filter((I) => F.includes(I.var_nam)).map((I) => I.id);
|
11713
|
-
} catch (
|
11714
|
-
throw
|
11758
|
+
} catch (K) {
|
11759
|
+
throw K;
|
11715
11760
|
} finally {
|
11716
11761
|
s.store.setIsLoading(n.formID, !1);
|
11717
11762
|
}
|
@@ -11765,16 +11810,16 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11765
11810
|
showSearch: !0,
|
11766
11811
|
showSelectAll: !1,
|
11767
11812
|
searchPlaceholder: " ",
|
11768
|
-
filterOption: (k,
|
11813
|
+
filterOption: (k, V) => {
|
11769
11814
|
var T;
|
11770
|
-
return !!((T =
|
11815
|
+
return !!((T = V.var_nam) != null && T.includes(k));
|
11771
11816
|
}
|
11772
11817
|
}, {
|
11773
11818
|
children: ({
|
11774
11819
|
direction: k,
|
11775
|
-
filteredItems:
|
11820
|
+
filteredItems: V,
|
11776
11821
|
selectedKeys: T,
|
11777
|
-
disabled:
|
11822
|
+
disabled: K,
|
11778
11823
|
onItemSelectAll: F,
|
11779
11824
|
onItemSelect: I
|
11780
11825
|
}) => createVNode(Table, {
|
@@ -11787,12 +11832,12 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11787
11832
|
},
|
11788
11833
|
columns: k === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
11789
11834
|
rowKey: "id",
|
11790
|
-
dataSource:
|
11791
|
-
customRow: (
|
11792
|
-
onClick: (
|
11835
|
+
dataSource: V,
|
11836
|
+
customRow: ($) => ({
|
11837
|
+
onClick: (B) => _(B, $, k, T)
|
11793
11838
|
}),
|
11794
11839
|
rowSelection: g({
|
11795
|
-
disabled:
|
11840
|
+
disabled: K,
|
11796
11841
|
selectedKeys: T,
|
11797
11842
|
onItemSelectAll: F,
|
11798
11843
|
onItemSelect: I
|
@@ -11815,9 +11860,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
11815
11860
|
disabled: b || y.disabled
|
11816
11861
|
}),
|
11817
11862
|
onSelectAll(y, E) {
|
11818
|
-
const k = E.filter((
|
11819
|
-
key:
|
11820
|
-
}) =>
|
11863
|
+
const k = E.filter((V) => !V.disabled).map(({
|
11864
|
+
key: V
|
11865
|
+
}) => V);
|
11821
11866
|
v(k, y);
|
11822
11867
|
},
|
11823
11868
|
onSelect({
|
@@ -11959,8 +12004,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11959
12004
|
var P;
|
11960
12005
|
return o.value > 0 ? !1 : ((P = s.value) == null ? void 0 : P.header_teleport_flg) !== 0;
|
11961
12006
|
}), l = computed(() => getDefaultHeight(r.currentVarProfileDetails.value, i.value)), u = computed(() => getMaxHeight(r.currentVarProfileDetails.value, i.value)), c = computed(() => i.value ? 1 : HEADER_HEIGHT), g = computed(() => {
|
11962
|
-
var P,
|
11963
|
-
return !!(a.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !t.p((
|
12007
|
+
var P, U;
|
12008
|
+
return !!(a.isRetrieving.value || ((P = E.value) == null ? void 0 : P.permission_type) === 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code));
|
11964
12009
|
}), p = computed(() => !!a.isRetrieving.value), _ = computed(() => !!a.isRetrieving.value), b = ref(null), m = ref({
|
11965
12010
|
kgHeight: c.value
|
11966
12011
|
}), v = ref({
|
@@ -11968,10 +12013,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11968
12013
|
});
|
11969
12014
|
let C;
|
11970
12015
|
const y = computed(() => m.value.kgHeight === c.value), E = computed(() => r.store.getVarButtonSearch(r.formID)), k = computed(() => {
|
11971
|
-
var P,
|
11972
|
-
if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((
|
11973
|
-
return r.t((
|
11974
|
-
}),
|
12016
|
+
var P, U, z;
|
12017
|
+
if (r.t((P = E.value) == null ? void 0 : P.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
|
12018
|
+
return r.t((z = E.value) == null ? void 0 : z.var_nam).value;
|
12019
|
+
}), V = computed(() => {
|
11975
12020
|
var P;
|
11976
12021
|
switch ((P = E.value) == null ? void 0 : P.primary_flg) {
|
11977
12022
|
case 1:
|
@@ -11984,17 +12029,17 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
11984
12029
|
}), T = computed(() => {
|
11985
12030
|
var P;
|
11986
12031
|
return ((P = s.value) == null ? void 0 : P.vis_flg) === 1;
|
11987
|
-
}),
|
12032
|
+
}), K = computed(() => !!(r.isRetrievingVar.value || r.isRetrievingVarProfileMaster.value || i.value && !!r.isOtherRequesting.value)), F = computed(() => !!r.isRetrievingVar.value || !!r.isRetrievingVarProfileMaster.value), I = computed(() => {
|
11988
12033
|
let P = "kg-search";
|
11989
12034
|
return T.value && (P += " kg-search--visible"), i.value && (P += " kg-search--teleport"), P;
|
11990
12035
|
});
|
11991
12036
|
watch(r.currentVarProfileDetails, (P) => {
|
11992
12037
|
if (P) {
|
11993
|
-
const
|
11994
|
-
P.forEach((
|
11995
|
-
|
11996
|
-
}), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(
|
11997
|
-
|
12038
|
+
const U = {};
|
12039
|
+
P.forEach((z) => {
|
12040
|
+
U[z.var_nam] = "";
|
12041
|
+
}), m.value.kgHeight = l.value, n.store.setModel(r.formID, reactive(U)), T.value ? (C == null || C(), C = watch(b, (z) => {
|
12042
|
+
z && (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
11998
12043
|
}, {
|
11999
12044
|
immediate: !0
|
12000
12045
|
})) : (n.store.emit(r.formID, "ready"), n.store.setIsReady(r.formID, !0));
|
@@ -12004,33 +12049,33 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12004
12049
|
}), onUnmounted(() => {
|
12005
12050
|
n.store.dispose(r.formID);
|
12006
12051
|
});
|
12007
|
-
function
|
12052
|
+
function $(P = !1) {
|
12008
12053
|
T.value ? b.value && b.value.validate().then(() => {
|
12009
12054
|
n.store.emit(r.formID, "search", {
|
12010
12055
|
resetPageIndex: P
|
12011
12056
|
});
|
12012
|
-
}).catch((
|
12057
|
+
}).catch((U) => {
|
12013
12058
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12014
|
-
e:
|
12059
|
+
e: U
|
12015
12060
|
});
|
12016
12061
|
}) : n.store.emit(r.formID, "search", {
|
12017
12062
|
resetPageIndex: P
|
12018
12063
|
});
|
12019
12064
|
}
|
12020
|
-
n.store.setSearchFn(r.formID,
|
12021
|
-
function
|
12065
|
+
n.store.setSearchFn(r.formID, $);
|
12066
|
+
function B() {
|
12022
12067
|
var P;
|
12023
12068
|
(P = b.value) == null || P.resetFields(), T.value ? b.value && b.value.validate().then(() => {
|
12024
12069
|
n.store.emit(r.formID, "reset");
|
12025
|
-
}).catch((
|
12070
|
+
}).catch((U) => {
|
12026
12071
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12027
|
-
e:
|
12072
|
+
e: U
|
12028
12073
|
});
|
12029
12074
|
}) : n.store.emit(r.formID, "reset");
|
12030
12075
|
}
|
12031
|
-
n.store.setResetFn(r.formID,
|
12032
|
-
function
|
12033
|
-
return
|
12076
|
+
n.store.setResetFn(r.formID, B);
|
12077
|
+
function A() {
|
12078
|
+
return $(!0), Promise.resolve(!0);
|
12034
12079
|
}
|
12035
12080
|
function w() {
|
12036
12081
|
return createVNode("div", {
|
@@ -12039,20 +12084,20 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12039
12084
|
}, [y.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [t.t("kg.KgSearch.title")])]);
|
12040
12085
|
}
|
12041
12086
|
function O() {
|
12042
|
-
var P,
|
12043
|
-
return ((
|
12087
|
+
var P, U, z, Y;
|
12088
|
+
return ((z = (U = (P = r.varProfileMasters) == null ? void 0 : P.value) == null ? void 0 : U.length) != null ? z : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12044
12089
|
value: (Y = r.currentVarProfileMasterID.value) != null ? Y : void 0,
|
12045
12090
|
"onUpdate:value": (J) => r.store.setCurrentVarProfileMasterID(r.formID, J),
|
12046
12091
|
disabled: p.value,
|
12047
|
-
onChange:
|
12092
|
+
onChange: L,
|
12048
12093
|
class: "kg-search-profile-master-select"
|
12049
12094
|
}, {
|
12050
12095
|
default: () => {
|
12051
|
-
var J,
|
12052
|
-
return (
|
12053
|
-
value:
|
12096
|
+
var J, D;
|
12097
|
+
return (D = (J = r.varProfileMasters) == null ? void 0 : J.value) == null ? void 0 : D.map((x) => createVNode(Select.Option, {
|
12098
|
+
value: x.id
|
12054
12099
|
}, {
|
12055
|
-
default: () => [r.t(
|
12100
|
+
default: () => [r.t(x == null ? void 0 : x.prf_var_nam).value]
|
12056
12101
|
}));
|
12057
12102
|
},
|
12058
12103
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
@@ -12071,27 +12116,27 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12071
12116
|
}, null)]);
|
12072
12117
|
}
|
12073
12118
|
function M() {
|
12074
|
-
var P,
|
12075
|
-
return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((
|
12119
|
+
var P, U, z, Y, J;
|
12120
|
+
return createVNode(Fragment, null, [O(), !(((P = E.value) == null ? void 0 : P.permission_type) !== 2 && !t.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
|
12076
12121
|
type: "primary",
|
12077
12122
|
ghost: !g.value,
|
12078
12123
|
disabled: g.value,
|
12079
|
-
onClick:
|
12124
|
+
onClick: B,
|
12080
12125
|
class: "kg-search-btn-reset"
|
12081
12126
|
}, {
|
12082
12127
|
default: () => [createVNode(ReloadOutlined$1, null, null), t.t("kg.reset")]
|
12083
12128
|
}), createVNode(KgButton.Item, {
|
12084
12129
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12085
|
-
kgVarName: (
|
12130
|
+
kgVarName: (z = E.value) == null ? void 0 : z.var_nam,
|
12086
12131
|
kgIcon: (Y = E.value) == null ? void 0 : Y.icon,
|
12087
12132
|
kgText: k.value,
|
12088
12133
|
kgColor: (J = E.value) == null ? void 0 : J.color,
|
12089
|
-
kgPrimary:
|
12134
|
+
kgPrimary: V.value,
|
12090
12135
|
kgLoading: _.value,
|
12091
|
-
onKgClick:
|
12136
|
+
onKgClick: A
|
12092
12137
|
}, null)]);
|
12093
12138
|
}
|
12094
|
-
function
|
12139
|
+
function N() {
|
12095
12140
|
return createVNode(Spin, {
|
12096
12141
|
spinning: F.value
|
12097
12142
|
}, {
|
@@ -12103,11 +12148,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12103
12148
|
}, {
|
12104
12149
|
default: () => [createVNode(Row, null, {
|
12105
12150
|
default: () => {
|
12106
|
-
var
|
12107
|
-
return [(
|
12108
|
-
kgVarName:
|
12151
|
+
var U;
|
12152
|
+
return [(U = r.currentVarProfileDetails.value) == null ? void 0 : U.map((z) => createVNode(KgForm.Item, {
|
12153
|
+
kgVarName: z.var_nam,
|
12109
12154
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
12110
|
-
onKgSubmit: () =>
|
12155
|
+
onKgSubmit: () => $(!0)
|
12111
12156
|
}, null))];
|
12112
12157
|
}
|
12113
12158
|
})]
|
@@ -12115,7 +12160,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12115
12160
|
}
|
12116
12161
|
});
|
12117
12162
|
}
|
12118
|
-
function
|
12163
|
+
function L(P) {
|
12119
12164
|
console.log("333:value", P);
|
12120
12165
|
}
|
12121
12166
|
function G() {
|
@@ -12140,7 +12185,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12140
12185
|
default: () => [createVNode("div", {
|
12141
12186
|
class: "ant-collapse-header"
|
12142
12187
|
}, [createVNode(Spin, {
|
12143
|
-
spinning:
|
12188
|
+
spinning: K.value
|
12144
12189
|
}, {
|
12145
12190
|
default: () => [w(), createVNode("div", {
|
12146
12191
|
class: "ant-collapse-extra"
|
@@ -12150,7 +12195,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12150
12195
|
class: "ant-collapse-content ant-collapse-content-active"
|
12151
12196
|
}, [createVNode("div", {
|
12152
12197
|
class: "ant-collapse-content-box"
|
12153
|
-
}, [
|
12198
|
+
}, [N()])])])])]
|
12154
12199
|
});
|
12155
12200
|
}
|
12156
12201
|
});
|
@@ -12216,13 +12261,13 @@ function useMagicKeys(e = {}) {
|
|
12216
12261
|
}
|
12217
12262
|
function _(m, v) {
|
12218
12263
|
var C, y;
|
12219
|
-
const E = (C = m.key) == null ? void 0 : C.toLowerCase(), k = (y = m.code) == null ? void 0 : y.toLowerCase(),
|
12264
|
+
const E = (C = m.key) == null ? void 0 : C.toLowerCase(), k = (y = m.code) == null ? void 0 : y.toLowerCase(), V = [k, E].filter(Boolean);
|
12220
12265
|
k && (v ? s.add(m.code) : s.delete(m.code));
|
12221
|
-
for (const T of
|
12266
|
+
for (const T of V)
|
12222
12267
|
c.add(T), g(T, v);
|
12223
12268
|
E === "meta" && !v ? (u.forEach((T) => {
|
12224
12269
|
s.delete(T), g(T, !1);
|
12225
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...
|
12270
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && v && [...s, ...V].forEach((T) => u.add(T));
|
12226
12271
|
}
|
12227
12272
|
r && (useEventListener(r, "keydown", (m) => (_(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (_(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
12228
12273
|
const b = new Proxy(l, {
|
@@ -12621,27 +12666,27 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12621
12666
|
columnWidth: 32,
|
12622
12667
|
hideSelectAll: !0,
|
12623
12668
|
selectedRowKeys: g,
|
12624
|
-
onSelect: (
|
12669
|
+
onSelect: (A) => K(A)
|
12625
12670
|
}), _ = ref({
|
12626
12671
|
visible: !1
|
12627
12672
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
12628
|
-
var
|
12629
|
-
return !!c.value || ((
|
12673
|
+
var A;
|
12674
|
+
return !!c.value || ((A = n.getSelectedVarCatalog) == null ? void 0 : A.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
12630
12675
|
}), v = computed(() => !!(!unref(c) || unref(a) || unref(o))), C = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
12631
|
-
watch(() => n.getSelectedVar, (
|
12632
|
-
|
12676
|
+
watch(() => n.getSelectedVar, (A) => {
|
12677
|
+
A ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
12633
12678
|
}, {
|
12634
12679
|
immediate: !0
|
12635
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
12680
|
+
}), watch(() => n.getSelectedVarCatalog, async (A) => {
|
12636
12681
|
var w, O;
|
12637
|
-
l.value.var_text = (w =
|
12682
|
+
l.value.var_text = (w = A == null ? void 0 : A.var_text) != null ? w : "", (O = i.value) == null || O.clearValidate();
|
12638
12683
|
});
|
12639
|
-
async function y(
|
12684
|
+
async function y(A = !1) {
|
12640
12685
|
var w, O, M;
|
12641
12686
|
a.value = !0;
|
12642
12687
|
try {
|
12643
12688
|
const {
|
12644
|
-
records:
|
12689
|
+
records: N
|
12645
12690
|
} = await List({
|
12646
12691
|
params: {
|
12647
12692
|
pageNo: 1,
|
@@ -12652,24 +12697,24 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12652
12697
|
order: "asc"
|
12653
12698
|
}
|
12654
12699
|
});
|
12655
|
-
if (c.value = null, u.value =
|
12656
|
-
const
|
12700
|
+
if (c.value = null, u.value = N != null ? N : [], A) {
|
12701
|
+
const L = u.value.find((G) => {
|
12657
12702
|
var P;
|
12658
12703
|
return G.id === ((P = n.getSelectedVarCatalog) == null ? void 0 : P.id);
|
12659
12704
|
});
|
12660
|
-
n.setSelectedVarCatalog(
|
12705
|
+
n.setSelectedVarCatalog(L != null ? L : null), g.value = L != null && L.id ? [L.id] : [];
|
12661
12706
|
} else
|
12662
12707
|
n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
|
12663
|
-
} catch (
|
12664
|
-
Logger.debug(
|
12708
|
+
} catch (N) {
|
12709
|
+
Logger.debug(N == null ? void 0 : N.message);
|
12665
12710
|
} finally {
|
12666
12711
|
a.value = !1;
|
12667
12712
|
}
|
12668
12713
|
}
|
12669
12714
|
async function E() {
|
12670
|
-
var
|
12715
|
+
var A, w, O;
|
12671
12716
|
try {
|
12672
|
-
o.value = !0, await ((
|
12717
|
+
o.value = !0, await ((A = i.value) == null ? void 0 : A.validate());
|
12673
12718
|
const M = new VarCatalog({
|
12674
12719
|
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
12675
12720
|
var_text: (O = l.value) == null ? void 0 : O.var_text
|
@@ -12700,33 +12745,33 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12700
12745
|
}
|
12701
12746
|
}
|
12702
12747
|
function k({
|
12703
|
-
isAllForm:
|
12748
|
+
isAllForm: A,
|
12704
12749
|
isAllLanguage: w
|
12705
12750
|
}) {
|
12706
|
-
var O, M,
|
12751
|
+
var O, M, N;
|
12707
12752
|
c.value = new VarCatalog({
|
12708
12753
|
id: "",
|
12709
12754
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
12710
12755
|
grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
|
12711
12756
|
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
12712
|
-
frm_id:
|
12713
|
-
locale_id: w ? "ALL" : (
|
12757
|
+
frm_id: A || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
12758
|
+
locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
|
12714
12759
|
var_text: ""
|
12715
12760
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
12716
12761
|
}
|
12717
|
-
function
|
12762
|
+
function V() {
|
12718
12763
|
var w;
|
12719
12764
|
u.value = without$1(u.value, c.value), c.value = null;
|
12720
|
-
const
|
12721
|
-
n.setSelectedVarCatalog(
|
12765
|
+
const A = (w = u.value[0]) != null ? w : null;
|
12766
|
+
n.setSelectedVarCatalog(A), g.value = A ? [A.id] : [];
|
12722
12767
|
}
|
12723
12768
|
function T() {
|
12724
12769
|
KgUtil.confirm({
|
12725
12770
|
onOk: async () => {
|
12726
|
-
var
|
12771
|
+
var A;
|
12727
12772
|
await Delete({
|
12728
12773
|
params: {
|
12729
|
-
id: (
|
12774
|
+
id: (A = n.getSelectedVarCatalog) == null ? void 0 : A.id
|
12730
12775
|
}
|
12731
12776
|
}, {
|
12732
12777
|
successMessageMode: "none",
|
@@ -12737,14 +12782,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12737
12782
|
}
|
12738
12783
|
});
|
12739
12784
|
}
|
12740
|
-
function
|
12785
|
+
function K(A) {
|
12741
12786
|
var w;
|
12742
|
-
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !==
|
12787
|
+
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== A.id && (unref(c) ? KgUtil.confirm({
|
12743
12788
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
12744
12789
|
onOk: () => {
|
12745
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
12790
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(A)), g.value = [A.id];
|
12746
12791
|
}
|
12747
|
-
}) : (n.setSelectedVarCatalog(unref(
|
12792
|
+
}) : (n.setSelectedVarCatalog(unref(A)), g.value = [A.id]));
|
12748
12793
|
}
|
12749
12794
|
function F() {
|
12750
12795
|
_.value.visible = !0;
|
@@ -12768,8 +12813,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12768
12813
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
12769
12814
|
})]);
|
12770
12815
|
}
|
12771
|
-
function
|
12772
|
-
let
|
12816
|
+
function $() {
|
12817
|
+
let A, w;
|
12773
12818
|
return createVNode("div", {
|
12774
12819
|
class: "form"
|
12775
12820
|
}, [createVNode(Form, {
|
@@ -12796,9 +12841,9 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12796
12841
|
class: "buttons"
|
12797
12842
|
}, [createVNode(Button, {
|
12798
12843
|
disabled: v.value,
|
12799
|
-
onClick:
|
12800
|
-
}, _isSlot(
|
12801
|
-
default: () => [
|
12844
|
+
onClick: V
|
12845
|
+
}, _isSlot(A = t.t("common.cancelText")) ? A : {
|
12846
|
+
default: () => [A]
|
12802
12847
|
}), createVNode(Button, {
|
12803
12848
|
loading: o.value,
|
12804
12849
|
disabled: C.value,
|
@@ -12808,10 +12853,10 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12808
12853
|
default: () => [w]
|
12809
12854
|
})])]);
|
12810
12855
|
}
|
12811
|
-
function
|
12856
|
+
function B(A) {
|
12812
12857
|
var O;
|
12813
12858
|
let w = "";
|
12814
|
-
return
|
12859
|
+
return A.id || (w += " ant-table-row-create"), A.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (w += " ant-table-row-selected "), w;
|
12815
12860
|
}
|
12816
12861
|
return () => createVNode("div", {
|
12817
12862
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -12827,14 +12872,14 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
12827
12872
|
rowKey: "id",
|
12828
12873
|
dataSource: u.value,
|
12829
12874
|
loading: a.value,
|
12830
|
-
rowClassName:
|
12875
|
+
rowClassName: B,
|
12831
12876
|
rowSelection: p.value,
|
12832
|
-
customRow: (
|
12833
|
-
onClick: () =>
|
12877
|
+
customRow: (A) => ({
|
12878
|
+
onClick: () => K(A)
|
12834
12879
|
})
|
12835
|
-
}, null),
|
12880
|
+
}, null), $(), createVNode(KgVarConfigModalVarCreateModal, {
|
12836
12881
|
visible: _.value.visible,
|
12837
|
-
"onUpdate:visible": (
|
12882
|
+
"onUpdate:visible": (A) => _.value.visible = A,
|
12838
12883
|
onKgOk: k
|
12839
12884
|
}, null)]);
|
12840
12885
|
}
|
@@ -13122,7 +13167,7 @@ const useKgWarehouseStore = (e) => (store || (store = defineStore("KgWarehouse",
|
|
13122
13167
|
function useKgWarehouse(e) {
|
13123
13168
|
const t = useKgWarehouseStore(e)();
|
13124
13169
|
function r(o) {
|
13125
|
-
return isFunction$2(o) ? (t.addEventListener("mounted", o), onUnmounted(() => t.removeEventListener("mounted", o)), () => t.removeEventListener("mounted", o)) : () => {
|
13170
|
+
return isFunction$2(o) ? (t.addEventListener("mounted", o), getCurrentInstance() && onUnmounted(() => t.removeEventListener("mounted", o)), () => t.removeEventListener("mounted", o)) : () => {
|
13126
13171
|
};
|
13127
13172
|
}
|
13128
13173
|
const n = computed(() => t.getVisible), a = computed(() => t.getWarehouse);
|
@@ -13163,22 +13208,22 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13163
13208
|
customRender: ({
|
13164
13209
|
record: k
|
13165
13210
|
}) => {
|
13166
|
-
var T,
|
13167
|
-
const
|
13168
|
-
return createVNode("div", null, [createVNode("div", null, [(T =
|
13211
|
+
var T, K, F;
|
13212
|
+
const V = k;
|
13213
|
+
return createVNode("div", null, [createVNode("div", null, [(T = V.whDsc) != null ? T : " ", createTextVNode(" - "), (K = V.whId) != null ? K : " "]), createVNode("div", {
|
13169
13214
|
class: "address"
|
13170
|
-
}, [(F =
|
13215
|
+
}, [(F = V.adrId) != null ? F : " "])]);
|
13171
13216
|
}
|
13172
13217
|
}]), c = ref([]), g = computed(() => {
|
13173
|
-
var
|
13174
|
-
const k = (
|
13218
|
+
var V;
|
13219
|
+
const k = (V = o.value) == null ? void 0 : V.toUpperCase();
|
13175
13220
|
return c.value.filter((T) => {
|
13176
|
-
var
|
13177
|
-
return ((F = (
|
13221
|
+
var K, F, I, $, B, A;
|
13222
|
+
return ((F = (K = T.whDsc) == null ? void 0 : K.toUpperCase()) == null ? void 0 : F.includes(k)) || (($ = (I = T.whId) == null ? void 0 : I.toUpperCase()) == null ? void 0 : $.includes(k)) || ((A = (B = T.adrId) == null ? void 0 : B.toUpperCase()) == null ? void 0 : A.includes(k));
|
13178
13223
|
});
|
13179
13224
|
}), p = computed(() => {
|
13180
|
-
var k,
|
13181
|
-
return ((
|
13225
|
+
var k, V;
|
13226
|
+
return ((V = (k = r.option.value) == null ? void 0 : k.KgWarehouse) == null ? void 0 : V.enable) !== !1;
|
13182
13227
|
});
|
13183
13228
|
watch(n.visible, (k) => {
|
13184
13229
|
!p.value || (k ? b() : m());
|
@@ -13228,14 +13273,14 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13228
13273
|
l.value = !1;
|
13229
13274
|
}
|
13230
13275
|
}
|
13231
|
-
function y(k,
|
13276
|
+
function y(k, V) {
|
13232
13277
|
var T;
|
13233
13278
|
switch (k.detail) {
|
13234
13279
|
case 1:
|
13235
|
-
((T = i.value) == null ? void 0 : T.id) ===
|
13280
|
+
((T = i.value) == null ? void 0 : T.id) === V.id ? i.value = null : i.value = V;
|
13236
13281
|
break;
|
13237
13282
|
case 2:
|
13238
|
-
i.value =
|
13283
|
+
i.value = V, v();
|
13239
13284
|
break;
|
13240
13285
|
}
|
13241
13286
|
}
|
@@ -13245,8 +13290,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13245
13290
|
placement: "bottomRight"
|
13246
13291
|
}, {
|
13247
13292
|
default: () => {
|
13248
|
-
var k,
|
13249
|
-
return [((k = s.value) == null ? void 0 : k.whDsc) || ((
|
13293
|
+
var k, V;
|
13294
|
+
return [((k = s.value) == null ? void 0 : k.whDsc) || ((V = s.value) == null ? void 0 : V.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
13250
13295
|
}
|
13251
13296
|
}), createVNode(KgModal, {
|
13252
13297
|
visible: n.visible.value,
|
@@ -13288,9 +13333,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
13288
13333
|
columns: u,
|
13289
13334
|
class: "kg-flex-table",
|
13290
13335
|
customRow: (k) => {
|
13291
|
-
var
|
13336
|
+
var V;
|
13292
13337
|
return {
|
13293
|
-
class: k.id === ((
|
13338
|
+
class: k.id === ((V = i.value) == null ? void 0 : V.id) ? "selected" : "",
|
13294
13339
|
onClick: (T) => y(T, k)
|
13295
13340
|
};
|
13296
13341
|
}
|