@kengic/vue 0.5.35 → 0.5.37-beta.0
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 +812 -754
- package/dist/src/components/KgForm.Item/KgForm.Item.d.ts +2 -2
- package/dist/src/components/KgForm.Item/components/KgForm.Item.DateRange.d.ts +97 -0
- package/dist/src/components/KgSubmit/index.store.d.ts +5 -2
- 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 we = Object.defineProperty;
|
2
|
+
var Ve = (e, t, r) => t in e ? we(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
3
|
+
var d = (e, t, r) => (Ve(e, typeof t != "symbol" ? t + "" : t, r), r);
|
4
4
|
import { h, nextTick, createVNode, defineComponent, ref, Fragment, computed, unref, createTextVNode, getCurrentInstance, inject, markRaw, watch, reactive, effectScope, isRef, isReactive, toRef, toRaw, onUnmounted, toRefs, provide, isVNode, mergeProps, onMounted, Teleport, getCurrentScope, onScopeDispose } from "vue";
|
5
5
|
import { Button, Modal, Progress, Spin, Form, Checkbox, Divider, Row, Col, DatePicker, Input, InputNumber, Select, Switch, Drawer, message, Tag, Tabs, Dropdown, Menu, Table, Pagination, Upload, ConfigProvider, Transfer, Radio, Textarea, Card, TabPane, Tooltip } from "ant-design-vue";
|
6
6
|
const index$7 = "";
|
@@ -2464,12 +2464,12 @@ function baseClone(e, t, r, n, a, o) {
|
|
2464
2464
|
return v;
|
2465
2465
|
o.set(e, s), isSet$1(e) ? e.forEach(function(_) {
|
2466
2466
|
s.add(baseClone(_, t, r, _, e, o));
|
2467
|
-
}) : isMap$1(e) && e.forEach(function(_,
|
2468
|
-
s.set(
|
2467
|
+
}) : isMap$1(e) && e.forEach(function(_, T) {
|
2468
|
+
s.set(T, baseClone(_, t, r, T, e, o));
|
2469
2469
|
});
|
2470
2470
|
var b = u ? l ? getAllKeysIn : getAllKeys : l ? keysIn : keys, m = c ? void 0 : b(e);
|
2471
|
-
return arrayEach(m || e, function(_,
|
2472
|
-
m && (
|
2471
|
+
return arrayEach(m || e, function(_, T) {
|
2472
|
+
m && (T = _, _ = e[T]), assignValue(s, T, baseClone(_, t, r, T, e, o));
|
2473
2473
|
}), s;
|
2474
2474
|
}
|
2475
2475
|
var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
@@ -2519,8 +2519,8 @@ function equalArrays(e, t, r, n, a, o) {
|
|
2519
2519
|
break;
|
2520
2520
|
}
|
2521
2521
|
if (v) {
|
2522
|
-
if (!arraySome(t, function(
|
2523
|
-
if (!cacheHas(v, y) && (b ===
|
2522
|
+
if (!arraySome(t, function(T, y) {
|
2523
|
+
if (!cacheHas(v, y) && (b === T || a(b, T, r, n, o)))
|
2524
2524
|
return v.push(y);
|
2525
2525
|
})) {
|
2526
2526
|
p = !1;
|
@@ -2598,18 +2598,18 @@ function equalObjects(e, t, r, n, a, o) {
|
|
2598
2598
|
o.set(e, t), o.set(t, e);
|
2599
2599
|
for (var _ = s; ++g < l; ) {
|
2600
2600
|
p = i[g];
|
2601
|
-
var
|
2601
|
+
var T = e[p], y = t[p];
|
2602
2602
|
if (n)
|
2603
|
-
var
|
2604
|
-
if (!(
|
2603
|
+
var C = s ? n(y, T, p, t, e, o) : n(T, y, p, e, t, o);
|
2604
|
+
if (!(C === void 0 ? T === y || a(T, y, r, n, o) : C)) {
|
2605
2605
|
m = !1;
|
2606
2606
|
break;
|
2607
2607
|
}
|
2608
2608
|
_ || (_ = p == "constructor");
|
2609
2609
|
}
|
2610
2610
|
if (m && !_) {
|
2611
|
-
var E = e.constructor,
|
2612
|
-
E !=
|
2611
|
+
var E = e.constructor, A = t.constructor;
|
2612
|
+
E != A && "constructor" in e && "constructor" in t && !(typeof E == "function" && E instanceof E && typeof A == "function" && A instanceof A) && (m = !1);
|
2613
2613
|
}
|
2614
2614
|
return o.delete(e), o.delete(t), m;
|
2615
2615
|
}
|
@@ -3718,7 +3718,7 @@ var Icon$1 = function(t, r) {
|
|
3718
3718
|
var _ = l ? {
|
3719
3719
|
msTransform: "rotate(".concat(l, "deg)"),
|
3720
3720
|
transform: "rotate(".concat(l, "deg)")
|
3721
|
-
} : void 0,
|
3721
|
+
} : void 0, T = normalizeTwoToneColors(c), y = _slicedToArray(T, 2), C = y[0], E = y[1];
|
3722
3722
|
return createVNode("span", _objectSpread$i({
|
3723
3723
|
role: "img",
|
3724
3724
|
"aria-label": s.name
|
@@ -3728,7 +3728,7 @@ var Icon$1 = function(t, r) {
|
|
3728
3728
|
}), [createVNode(VueIcon, {
|
3729
3729
|
class: b,
|
3730
3730
|
icon: s,
|
3731
|
-
primaryColor:
|
3731
|
+
primaryColor: C,
|
3732
3732
|
secondaryColor: E,
|
3733
3733
|
style: _
|
3734
3734
|
}, null)]);
|
@@ -4691,62 +4691,62 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4691
4691
|
(function(r, n) {
|
4692
4692
|
e.exports = n();
|
4693
4693
|
})(commonjsGlobal, function() {
|
4694
|
-
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", v = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,
|
4695
|
-
var
|
4696
|
-
return "[" +
|
4697
|
-
} },
|
4698
|
-
var N = String(
|
4699
|
-
return !N || N.length >=
|
4700
|
-
}, E = { s:
|
4701
|
-
var
|
4702
|
-
return (
|
4703
|
-
}, m: function
|
4704
|
-
if (
|
4705
|
-
return -
|
4706
|
-
var N = 12 * (
|
4707
|
-
return +(-(N + (
|
4708
|
-
}, a: function(
|
4709
|
-
return
|
4710
|
-
}, p: function(
|
4711
|
-
return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[
|
4712
|
-
}, u: function(
|
4713
|
-
return
|
4714
|
-
} },
|
4715
|
-
k[
|
4716
|
-
var R = function(
|
4717
|
-
return
|
4718
|
-
}, L = function
|
4694
|
+
var r = 1e3, n = 6e4, a = 36e5, o = "millisecond", s = "second", i = "minute", l = "hour", u = "day", c = "week", g = "month", p = "quarter", v = "year", b = "date", m = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, T = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
4695
|
+
var I = ["th", "st", "nd", "rd"], M = w % 100;
|
4696
|
+
return "[" + w + (I[(M - 20) % 10] || I[M] || I[0]) + "]";
|
4697
|
+
} }, C = function(w, I, M) {
|
4698
|
+
var N = String(w);
|
4699
|
+
return !N || N.length >= I ? w : "" + Array(I + 1 - N.length).join(M) + w;
|
4700
|
+
}, E = { s: C, z: function(w) {
|
4701
|
+
var I = -w.utcOffset(), M = Math.abs(I), N = Math.floor(M / 60), F = M % 60;
|
4702
|
+
return (I <= 0 ? "+" : "-") + C(N, 2, "0") + ":" + C(F, 2, "0");
|
4703
|
+
}, m: function w(I, M) {
|
4704
|
+
if (I.date() < M.date())
|
4705
|
+
return -w(M, I);
|
4706
|
+
var N = 12 * (M.year() - I.year()) + (M.month() - I.month()), F = I.clone().add(N, g), H = M - F < 0, U = I.clone().add(N + (H ? -1 : 1), g);
|
4707
|
+
return +(-(N + (M - F) / (H ? F - U : U - F)) || 0);
|
4708
|
+
}, a: function(w) {
|
4709
|
+
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
4710
|
+
}, p: function(w) {
|
4711
|
+
return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
4712
|
+
}, u: function(w) {
|
4713
|
+
return w === void 0;
|
4714
|
+
} }, A = "en", k = {};
|
4715
|
+
k[A] = y;
|
4716
|
+
var R = function(w) {
|
4717
|
+
return w instanceof $;
|
4718
|
+
}, L = function w(I, M, N) {
|
4719
4719
|
var F;
|
4720
|
-
if (!
|
4721
|
-
return
|
4722
|
-
if (typeof
|
4723
|
-
var
|
4724
|
-
k[
|
4725
|
-
var
|
4726
|
-
if (!F &&
|
4727
|
-
return
|
4720
|
+
if (!I)
|
4721
|
+
return A;
|
4722
|
+
if (typeof I == "string") {
|
4723
|
+
var H = I.toLowerCase();
|
4724
|
+
k[H] && (F = H), M && (k[H] = M, F = H);
|
4725
|
+
var U = I.split("-");
|
4726
|
+
if (!F && U.length > 1)
|
4727
|
+
return w(U[0]);
|
4728
4728
|
} else {
|
4729
|
-
var x =
|
4730
|
-
k[x] =
|
4731
|
-
}
|
4732
|
-
return !N && F && (
|
4733
|
-
}, O = function(
|
4734
|
-
if (R(
|
4735
|
-
return
|
4736
|
-
var
|
4737
|
-
return
|
4729
|
+
var x = I.name;
|
4730
|
+
k[x] = I, F = x;
|
4731
|
+
}
|
4732
|
+
return !N && F && (A = F), F || !N && A;
|
4733
|
+
}, O = function(w, I) {
|
4734
|
+
if (R(w))
|
4735
|
+
return w.clone();
|
4736
|
+
var M = typeof I == "object" ? I : {};
|
4737
|
+
return M.date = w, M.args = arguments, new $(M);
|
4738
4738
|
}, D = E;
|
4739
|
-
D.l = L, D.i = R, D.w = function(
|
4740
|
-
return O(
|
4739
|
+
D.l = L, D.i = R, D.w = function(w, I) {
|
4740
|
+
return O(w, { locale: I.$L, utc: I.$u, x: I.$x, $offset: I.$offset });
|
4741
4741
|
};
|
4742
4742
|
var $ = function() {
|
4743
|
-
function
|
4744
|
-
this.$L = L(
|
4743
|
+
function w(M) {
|
4744
|
+
this.$L = L(M.locale, null, !0), this.parse(M);
|
4745
4745
|
}
|
4746
|
-
var
|
4747
|
-
return
|
4746
|
+
var I = w.prototype;
|
4747
|
+
return I.parse = function(M) {
|
4748
4748
|
this.$d = function(N) {
|
4749
|
-
var F = N.date,
|
4749
|
+
var F = N.date, H = N.utc;
|
4750
4750
|
if (F === null)
|
4751
4751
|
return new Date(NaN);
|
4752
4752
|
if (D.u(F))
|
@@ -4754,144 +4754,144 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4754
4754
|
if (F instanceof Date)
|
4755
4755
|
return new Date(F);
|
4756
4756
|
if (typeof F == "string" && !/Z$/i.test(F)) {
|
4757
|
-
var
|
4758
|
-
if (
|
4759
|
-
var x =
|
4760
|
-
return
|
4757
|
+
var U = F.match(_);
|
4758
|
+
if (U) {
|
4759
|
+
var x = U[2] - 1 || 0, G = (U[7] || "0").substring(0, 3);
|
4760
|
+
return H ? new Date(Date.UTC(U[1], x, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G)) : new Date(U[1], x, U[3] || 1, U[4] || 0, U[5] || 0, U[6] || 0, G);
|
4761
4761
|
}
|
4762
4762
|
}
|
4763
4763
|
return new Date(F);
|
4764
|
-
}(
|
4765
|
-
},
|
4766
|
-
var
|
4767
|
-
this.$y =
|
4768
|
-
},
|
4764
|
+
}(M), this.$x = M.x || {}, this.init();
|
4765
|
+
}, I.init = function() {
|
4766
|
+
var M = this.$d;
|
4767
|
+
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();
|
4768
|
+
}, I.$utils = function() {
|
4769
4769
|
return D;
|
4770
|
-
},
|
4770
|
+
}, I.isValid = function() {
|
4771
4771
|
return this.$d.toString() !== m;
|
4772
|
-
},
|
4773
|
-
var F = O(
|
4772
|
+
}, I.isSame = function(M, N) {
|
4773
|
+
var F = O(M);
|
4774
4774
|
return this.startOf(N) <= F && F <= this.endOf(N);
|
4775
|
-
},
|
4776
|
-
return O(
|
4777
|
-
},
|
4778
|
-
return this.endOf(N) < O(
|
4779
|
-
},
|
4780
|
-
return D.u(
|
4781
|
-
},
|
4775
|
+
}, I.isAfter = function(M, N) {
|
4776
|
+
return O(M) < this.startOf(N);
|
4777
|
+
}, I.isBefore = function(M, N) {
|
4778
|
+
return this.endOf(N) < O(M);
|
4779
|
+
}, I.$g = function(M, N, F) {
|
4780
|
+
return D.u(M) ? this[N] : this.set(F, M);
|
4781
|
+
}, I.unix = function() {
|
4782
4782
|
return Math.floor(this.valueOf() / 1e3);
|
4783
|
-
},
|
4783
|
+
}, I.valueOf = function() {
|
4784
4784
|
return this.$d.getTime();
|
4785
|
-
},
|
4786
|
-
var F = this,
|
4787
|
-
var
|
4788
|
-
return
|
4789
|
-
},
|
4790
|
-
return D.w(F.toDate()[
|
4791
|
-
},
|
4792
|
-
switch (
|
4785
|
+
}, I.startOf = function(M, N) {
|
4786
|
+
var F = this, H = !!D.u(N) || N, U = D.p(M), x = function(ge, te) {
|
4787
|
+
var P = D.w(F.$u ? Date.UTC(F.$y, te, ge) : new Date(F.$y, te, ge), F);
|
4788
|
+
return H ? P : P.endOf(u);
|
4789
|
+
}, G = function(ge, te) {
|
4790
|
+
return D.w(F.toDate()[ge].apply(F.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), F);
|
4791
|
+
}, q = this.$W, X = this.$M, Z = this.$D, ne = "set" + (this.$u ? "UTC" : "");
|
4792
|
+
switch (U) {
|
4793
4793
|
case v:
|
4794
|
-
return
|
4794
|
+
return H ? x(1, 0) : x(31, 11);
|
4795
4795
|
case g:
|
4796
|
-
return
|
4796
|
+
return H ? x(1, X) : x(0, X + 1);
|
4797
4797
|
case c:
|
4798
|
-
var
|
4799
|
-
return x(
|
4798
|
+
var oe = this.$locale().weekStart || 0, ie = (q < oe ? q + 7 : q) - oe;
|
4799
|
+
return x(H ? Z - ie : Z + (6 - ie), X);
|
4800
4800
|
case u:
|
4801
4801
|
case b:
|
4802
|
-
return
|
4802
|
+
return G(ne + "Hours", 0);
|
4803
4803
|
case l:
|
4804
|
-
return
|
4804
|
+
return G(ne + "Minutes", 1);
|
4805
4805
|
case i:
|
4806
|
-
return
|
4806
|
+
return G(ne + "Seconds", 2);
|
4807
4807
|
case s:
|
4808
|
-
return
|
4808
|
+
return G(ne + "Milliseconds", 3);
|
4809
4809
|
default:
|
4810
4810
|
return this.clone();
|
4811
4811
|
}
|
4812
|
-
},
|
4813
|
-
return this.startOf(
|
4814
|
-
},
|
4815
|
-
var F,
|
4816
|
-
if (
|
4817
|
-
var
|
4818
|
-
|
4812
|
+
}, I.endOf = function(M) {
|
4813
|
+
return this.startOf(M, !1);
|
4814
|
+
}, I.$set = function(M, N) {
|
4815
|
+
var F, H = D.p(M), U = "set" + (this.$u ? "UTC" : ""), x = (F = {}, F[u] = U + "Date", F[b] = U + "Date", F[g] = U + "Month", F[v] = U + "FullYear", F[l] = U + "Hours", F[i] = U + "Minutes", F[s] = U + "Seconds", F[o] = U + "Milliseconds", F)[H], G = H === u ? this.$D + (N - this.$W) : N;
|
4816
|
+
if (H === g || H === v) {
|
4817
|
+
var q = this.clone().set(b, 1);
|
4818
|
+
q.$d[x](G), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
|
4819
4819
|
} else
|
4820
|
-
x && this.$d[x](
|
4820
|
+
x && this.$d[x](G);
|
4821
4821
|
return this.init(), this;
|
4822
|
-
},
|
4823
|
-
return this.clone().$set(
|
4824
|
-
},
|
4825
|
-
return this[D.p(
|
4826
|
-
},
|
4827
|
-
var F,
|
4828
|
-
|
4829
|
-
var
|
4830
|
-
var Z = O(
|
4831
|
-
return D.w(Z.date(Z.date() + Math.round(X *
|
4822
|
+
}, I.set = function(M, N) {
|
4823
|
+
return this.clone().$set(M, N);
|
4824
|
+
}, I.get = function(M) {
|
4825
|
+
return this[D.p(M)]();
|
4826
|
+
}, I.add = function(M, N) {
|
4827
|
+
var F, H = this;
|
4828
|
+
M = Number(M);
|
4829
|
+
var U = D.p(N), x = function(X) {
|
4830
|
+
var Z = O(H);
|
4831
|
+
return D.w(Z.date(Z.date() + Math.round(X * M)), H);
|
4832
4832
|
};
|
4833
|
-
if (
|
4834
|
-
return this.set(g, this.$M +
|
4835
|
-
if (
|
4836
|
-
return this.set(v, this.$y +
|
4837
|
-
if (
|
4833
|
+
if (U === g)
|
4834
|
+
return this.set(g, this.$M + M);
|
4835
|
+
if (U === v)
|
4836
|
+
return this.set(v, this.$y + M);
|
4837
|
+
if (U === u)
|
4838
4838
|
return x(1);
|
4839
|
-
if (
|
4839
|
+
if (U === c)
|
4840
4840
|
return x(7);
|
4841
|
-
var
|
4842
|
-
return D.w(
|
4843
|
-
},
|
4844
|
-
return this.add(-1 *
|
4845
|
-
},
|
4841
|
+
var G = (F = {}, F[i] = n, F[l] = a, F[s] = r, F)[U] || 1, q = this.$d.getTime() + M * G;
|
4842
|
+
return D.w(q, this);
|
4843
|
+
}, I.subtract = function(M, N) {
|
4844
|
+
return this.add(-1 * M, N);
|
4845
|
+
}, I.format = function(M) {
|
4846
4846
|
var N = this, F = this.$locale();
|
4847
4847
|
if (!this.isValid())
|
4848
4848
|
return F.invalidDate || m;
|
4849
|
-
var
|
4850
|
-
return
|
4851
|
-
},
|
4852
|
-
return D.s(x % 12 || 12,
|
4853
|
-
},
|
4854
|
-
var
|
4855
|
-
return
|
4856
|
-
},
|
4857
|
-
return
|
4858
|
-
return
|
4849
|
+
var H = M || "YYYY-MM-DDTHH:mm:ssZ", U = D.z(this), x = this.$H, G = this.$m, q = this.$M, X = F.weekdays, Z = F.months, ne = function(te, P, K, z) {
|
4850
|
+
return te && (te[P] || te(N, H)) || K[P].slice(0, z);
|
4851
|
+
}, oe = function(te) {
|
4852
|
+
return D.s(x % 12 || 12, te, "0");
|
4853
|
+
}, ie = F.meridiem || function(te, P, K) {
|
4854
|
+
var z = te < 12 ? "AM" : "PM";
|
4855
|
+
return K ? z.toLowerCase() : z;
|
4856
|
+
}, ge = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: D.s(q + 1, 2, "0"), MMM: ne(F.monthsShort, q, Z, 3), MMMM: ne(Z, q), D: this.$D, DD: D.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(F.weekdaysMin, this.$W, X, 2), ddd: ne(F.weekdaysShort, this.$W, X, 3), dddd: X[this.$W], H: String(x), HH: D.s(x, 2, "0"), h: oe(1), hh: oe(2), a: ie(x, G, !0), A: ie(x, G, !1), m: String(G), mm: D.s(G, 2, "0"), s: String(this.$s), ss: D.s(this.$s, 2, "0"), SSS: D.s(this.$ms, 3, "0"), Z: U };
|
4857
|
+
return H.replace(T, function(te, P) {
|
4858
|
+
return P || ge[te] || U.replace(":", "");
|
4859
4859
|
});
|
4860
|
-
},
|
4860
|
+
}, I.utcOffset = function() {
|
4861
4861
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4862
|
-
},
|
4863
|
-
var
|
4864
|
-
return X = (
|
4865
|
-
},
|
4862
|
+
}, I.diff = function(M, N, F) {
|
4863
|
+
var H, U = D.p(N), x = O(M), G = (x.utcOffset() - this.utcOffset()) * n, q = this - x, X = D.m(this, x);
|
4864
|
+
return X = (H = {}, H[v] = X / 12, H[g] = X, H[p] = X / 3, H[c] = (q - G) / 6048e5, H[u] = (q - G) / 864e5, H[l] = q / a, H[i] = q / n, H[s] = q / r, H)[U] || q, F ? X : D.a(X);
|
4865
|
+
}, I.daysInMonth = function() {
|
4866
4866
|
return this.endOf(g).$D;
|
4867
|
-
},
|
4867
|
+
}, I.$locale = function() {
|
4868
4868
|
return k[this.$L];
|
4869
|
-
},
|
4870
|
-
if (!
|
4869
|
+
}, I.locale = function(M, N) {
|
4870
|
+
if (!M)
|
4871
4871
|
return this.$L;
|
4872
|
-
var F = this.clone(),
|
4873
|
-
return
|
4874
|
-
},
|
4872
|
+
var F = this.clone(), H = L(M, N, !0);
|
4873
|
+
return H && (F.$L = H), F;
|
4874
|
+
}, I.clone = function() {
|
4875
4875
|
return D.w(this.$d, this);
|
4876
|
-
},
|
4876
|
+
}, I.toDate = function() {
|
4877
4877
|
return new Date(this.valueOf());
|
4878
|
-
},
|
4878
|
+
}, I.toJSON = function() {
|
4879
4879
|
return this.isValid() ? this.toISOString() : null;
|
4880
|
-
},
|
4880
|
+
}, I.toISOString = function() {
|
4881
4881
|
return this.$d.toISOString();
|
4882
|
-
},
|
4882
|
+
}, I.toString = function() {
|
4883
4883
|
return this.$d.toUTCString();
|
4884
|
-
},
|
4884
|
+
}, w;
|
4885
4885
|
}(), V = $.prototype;
|
4886
|
-
return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(
|
4887
|
-
V[
|
4888
|
-
return this.$g(
|
4886
|
+
return O.prototype = V, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(w) {
|
4887
|
+
V[w[1]] = function(I) {
|
4888
|
+
return this.$g(I, w[0], w[1]);
|
4889
4889
|
};
|
4890
|
-
}), O.extend = function(
|
4891
|
-
return
|
4892
|
-
}, O.locale = L, O.isDayjs = R, O.unix = function(
|
4893
|
-
return O(1e3 *
|
4894
|
-
}, O.en = k[
|
4890
|
+
}), O.extend = function(w, I) {
|
4891
|
+
return w.$i || (w(I, $, O), w.$i = !0), O;
|
4892
|
+
}, O.locale = L, O.isDayjs = R, O.unix = function(w) {
|
4893
|
+
return O(1e3 * w);
|
4894
|
+
}, O.en = k[A], O.Ls = k, O.p = {}, O;
|
4895
4895
|
});
|
4896
4896
|
})(dayjs_min);
|
4897
4897
|
const dayjs = dayjs_min.exports;
|
@@ -4936,32 +4936,32 @@ function filesize(e, {
|
|
4936
4936
|
roundingMethod: m = ROUND,
|
4937
4937
|
precision: _ = 0
|
4938
4938
|
} = {}) {
|
4939
|
-
let
|
4939
|
+
let T = b, y = Number(e), C = [], E = 0, A = EMPTY;
|
4940
4940
|
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);
|
4941
4941
|
const k = n === 10 ? 1e3 : 1024, R = p === !0, L = y < 0, O = Math[m];
|
4942
4942
|
if (typeof e != "bigint" && isNaN(e))
|
4943
4943
|
throw new TypeError(INVALID_NUMBER);
|
4944
4944
|
if (typeof O !== FUNCTION)
|
4945
4945
|
throw new TypeError(INVALID_ROUND);
|
4946
|
-
if (L && (y = -y), (
|
4947
|
-
return
|
4946
|
+
if (L && (y = -y), (T === -1 || isNaN(T)) && (T = Math.floor(Math.log(y) / Math.log(k)), T < 0 && (T = 0)), T > 8 && (_ > 0 && (_ += 8 - T), T = 8), g === EXPONENT)
|
4947
|
+
return T;
|
4948
4948
|
if (y === 0)
|
4949
|
-
|
4949
|
+
C[0] = 0, A = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4950
4950
|
else {
|
4951
|
-
E = y / (n === 2 ? Math.pow(2,
|
4952
|
-
const D = Math.pow(10,
|
4953
|
-
|
4951
|
+
E = y / (n === 2 ? Math.pow(2, T * 10) : Math.pow(1e3, T)), t && (E = E * 8, E >= k && T < 8 && (E = E / k, T++));
|
4952
|
+
const D = Math.pow(10, T > 0 ? a : 0);
|
4953
|
+
C[0] = O(E * D) / D, C[0] === k && T < 8 && b === -1 && (C[0] = 1, T++), A = C[1] = n === 10 && T === 1 ? t ? SI_KBIT : SI_KBYTE : STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4954
4954
|
}
|
4955
|
-
if (L && (
|
4956
|
-
const D = i || PERIOD, $ =
|
4957
|
-
|
4955
|
+
if (L && (C[0] = -C[0]), _ > 0 && (C[0] = C[0].toPrecision(_)), C[1] = u[C[1]] || C[1], o === !0 ? C[0] = C[0].toLocaleString() : o.length > 0 ? C[0] = C[0].toLocaleString(o, s) : i.length > 0 && (C[0] = C[0].toString().replace(PERIOD, i)), r && Number.isInteger(C[0]) === !1 && a > 0) {
|
4956
|
+
const D = i || PERIOD, $ = C[0].toString().split(D), V = $[1] || EMPTY, w = V.length, I = a - w;
|
4957
|
+
C[0] = `${$[0]}${D}${V.padEnd(w + I, ZERO)}`;
|
4958
4958
|
}
|
4959
|
-
return R && (
|
4960
|
-
value:
|
4961
|
-
symbol:
|
4962
|
-
exponent:
|
4963
|
-
unit:
|
4964
|
-
} :
|
4959
|
+
return R && (C[1] = v[T] ? v[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
|
4960
|
+
value: C[0],
|
4961
|
+
symbol: C[1],
|
4962
|
+
exponent: T,
|
4963
|
+
unit: A
|
4964
|
+
} : C.join(l);
|
4965
4965
|
}
|
4966
4966
|
const data$6 = {
|
4967
4967
|
width: 1024,
|
@@ -5243,18 +5243,18 @@ function iconToSVG(e, t) {
|
|
5243
5243
|
};
|
5244
5244
|
let o = r.body;
|
5245
5245
|
[r, n].forEach((b) => {
|
5246
|
-
const m = [], _ = b.hFlip,
|
5246
|
+
const m = [], _ = b.hFlip, T = b.vFlip;
|
5247
5247
|
let y = b.rotate;
|
5248
|
-
_ ?
|
5248
|
+
_ ? T ? y += 2 : (m.push(
|
5249
5249
|
"translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"
|
5250
|
-
), m.push("scale(-1 1)"), a.top = a.left = 0) :
|
5250
|
+
), m.push("scale(-1 1)"), a.top = a.left = 0) : T && (m.push(
|
5251
5251
|
"translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"
|
5252
5252
|
), m.push("scale(1 -1)"), a.top = a.left = 0);
|
5253
|
-
let
|
5253
|
+
let C;
|
5254
5254
|
switch (y < 0 && (y -= Math.floor(y / 4) * 4), y = y % 4, y) {
|
5255
5255
|
case 1:
|
5256
|
-
|
5257
|
-
"rotate(90 " +
|
5256
|
+
C = a.height / 2 + a.top, m.unshift(
|
5257
|
+
"rotate(90 " + C.toString() + " " + C.toString() + ")"
|
5258
5258
|
);
|
5259
5259
|
break;
|
5260
5260
|
case 2:
|
@@ -5263,12 +5263,12 @@ function iconToSVG(e, t) {
|
|
5263
5263
|
);
|
5264
5264
|
break;
|
5265
5265
|
case 3:
|
5266
|
-
|
5267
|
-
"rotate(-90 " +
|
5266
|
+
C = a.width / 2 + a.left, m.unshift(
|
5267
|
+
"rotate(-90 " + C.toString() + " " + C.toString() + ")"
|
5268
5268
|
);
|
5269
5269
|
break;
|
5270
5270
|
}
|
5271
|
-
y % 2 === 1 && (a.left !== a.top && (
|
5271
|
+
y % 2 === 1 && (a.left !== a.top && (C = a.left, a.left = a.top, a.top = C), a.width !== a.height && (C = a.width, a.width = a.height, a.height = C)), m.length && (o = '<g transform="' + m.join(" ") + '">' + o + "</g>");
|
5272
5272
|
});
|
5273
5273
|
const s = n.width, i = n.height, l = a.width, u = a.height;
|
5274
5274
|
let c, g;
|
@@ -5570,7 +5570,7 @@ function sendQuery(e, t, r, n) {
|
|
5570
5570
|
function _(k, R) {
|
5571
5571
|
R && (v = []), typeof k == "function" && v.push(k);
|
5572
5572
|
}
|
5573
|
-
function
|
5573
|
+
function T() {
|
5574
5574
|
return {
|
5575
5575
|
startTime: i,
|
5576
5576
|
payload: t,
|
@@ -5586,7 +5586,7 @@ function sendQuery(e, t, r, n) {
|
|
5586
5586
|
k(void 0, c);
|
5587
5587
|
});
|
5588
5588
|
}
|
5589
|
-
function
|
5589
|
+
function C() {
|
5590
5590
|
p.forEach((k) => {
|
5591
5591
|
k.status === "pending" && (k.status = "aborted");
|
5592
5592
|
}), p = [];
|
@@ -5608,10 +5608,10 @@ function sendQuery(e, t, r, n) {
|
|
5608
5608
|
return;
|
5609
5609
|
}
|
5610
5610
|
if (O) {
|
5611
|
-
c = L, p.length || (s.length ?
|
5611
|
+
c = L, p.length || (s.length ? A() : y());
|
5612
5612
|
return;
|
5613
5613
|
}
|
5614
|
-
if (b(),
|
5614
|
+
if (b(), C(), !e.random) {
|
5615
5615
|
const D = e.resources.indexOf(k.resource);
|
5616
5616
|
D !== -1 && D !== e.index && (e.index = D);
|
5617
5617
|
}
|
@@ -5619,7 +5619,7 @@ function sendQuery(e, t, r, n) {
|
|
5619
5619
|
D(L);
|
5620
5620
|
});
|
5621
5621
|
}
|
5622
|
-
function
|
5622
|
+
function A() {
|
5623
5623
|
if (l !== "pending")
|
5624
5624
|
return;
|
5625
5625
|
b();
|
@@ -5627,7 +5627,7 @@ function sendQuery(e, t, r, n) {
|
|
5627
5627
|
if (k === void 0) {
|
5628
5628
|
if (p.length) {
|
5629
5629
|
g = setTimeout(() => {
|
5630
|
-
b(), l === "pending" && (
|
5630
|
+
b(), l === "pending" && (C(), y());
|
5631
5631
|
}, e.timeout);
|
5632
5632
|
return;
|
5633
5633
|
}
|
@@ -5641,9 +5641,9 @@ function sendQuery(e, t, r, n) {
|
|
5641
5641
|
E(R, L, O);
|
5642
5642
|
}
|
5643
5643
|
};
|
5644
|
-
p.push(R), u++, g = setTimeout(
|
5644
|
+
p.push(R), u++, g = setTimeout(A, e.rotate), r(k, t, R.callback);
|
5645
5645
|
}
|
5646
|
-
return setTimeout(
|
5646
|
+
return setTimeout(A), T;
|
5647
5647
|
}
|
5648
5648
|
function initRedundancy(e) {
|
5649
5649
|
const t = {
|
@@ -6045,8 +6045,8 @@ const render = (e, t) => {
|
|
6045
6045
|
_ !== !0 && _ !== "true" && delete n["aria-hidden"];
|
6046
6046
|
break;
|
6047
6047
|
default: {
|
6048
|
-
const
|
6049
|
-
|
6048
|
+
const T = customisationAliases[m];
|
6049
|
+
T ? (_ === !0 || _ === "true" || _ === 1) && (r[T] = !0) : defaultExtendedIconCustomisations[m] === void 0 && (n[m] = _);
|
6050
6050
|
}
|
6051
6051
|
}
|
6052
6052
|
}
|
@@ -6277,36 +6277,36 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6277
6277
|
u = !0;
|
6278
6278
|
}), c = !0, triggerSubscriptions(g, O, n.state.value[e]);
|
6279
6279
|
}
|
6280
|
-
const
|
6280
|
+
const T = process.env.NODE_ENV !== "production" ? () => {
|
6281
6281
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
6282
6282
|
} : noop$1;
|
6283
6283
|
function y() {
|
6284
6284
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6285
6285
|
}
|
6286
|
-
function
|
6286
|
+
function C(L, O) {
|
6287
6287
|
return function() {
|
6288
6288
|
setActivePinia(n);
|
6289
6289
|
const D = Array.from(arguments), $ = [], V = [];
|
6290
|
-
function
|
6290
|
+
function w(N) {
|
6291
6291
|
$.push(N);
|
6292
6292
|
}
|
6293
|
-
function
|
6293
|
+
function I(N) {
|
6294
6294
|
V.push(N);
|
6295
6295
|
}
|
6296
6296
|
triggerSubscriptions(p, {
|
6297
6297
|
args: D,
|
6298
6298
|
name: L,
|
6299
6299
|
store: k,
|
6300
|
-
after:
|
6301
|
-
onError:
|
6300
|
+
after: w,
|
6301
|
+
onError: I
|
6302
6302
|
});
|
6303
|
-
let
|
6303
|
+
let M;
|
6304
6304
|
try {
|
6305
|
-
|
6305
|
+
M = O.apply(this && this.$id === e ? this : k, D);
|
6306
6306
|
} catch (N) {
|
6307
6307
|
throw triggerSubscriptions(V, N), N;
|
6308
6308
|
}
|
6309
|
-
return
|
6309
|
+
return M instanceof Promise ? M.then((N) => (triggerSubscriptions($, N), N)).catch((N) => (triggerSubscriptions(V, N), Promise.reject(N))) : (triggerSubscriptions($, M), M);
|
6310
6310
|
};
|
6311
6311
|
}
|
6312
6312
|
const E = /* @__PURE__ */ markRaw({
|
@@ -6314,12 +6314,12 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6314
6314
|
getters: {},
|
6315
6315
|
state: [],
|
6316
6316
|
hotState: m
|
6317
|
-
}),
|
6317
|
+
}), A = {
|
6318
6318
|
_p: n,
|
6319
6319
|
$id: e,
|
6320
6320
|
$onAction: addSubscription.bind(null, p),
|
6321
6321
|
$patch: _,
|
6322
|
-
$reset:
|
6322
|
+
$reset: T,
|
6323
6323
|
$subscribe(L, O = {}) {
|
6324
6324
|
const D = addSubscription(g, L, O.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (V) => {
|
6325
6325
|
(O.flush === "sync" ? c : u) && L({
|
@@ -6336,7 +6336,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6336
6336
|
_customProperties: markRaw(/* @__PURE__ */ new Set()),
|
6337
6337
|
_hmrPayload: E
|
6338
6338
|
} : {},
|
6339
|
-
|
6339
|
+
A
|
6340
6340
|
));
|
6341
6341
|
n._s.set(e, k);
|
6342
6342
|
const R = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
@@ -6345,7 +6345,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6345
6345
|
if (isRef(O) && !isComputed(O) || isReactive(O))
|
6346
6346
|
process.env.NODE_ENV !== "production" && a ? set(m.value, L, toRef(R, L)) : s || (b && shouldHydrate(O) && (isRef(O) ? O.value = b[L] : mergeReactiveObjects(O, b[L])), n.state.value[e][L] = O), process.env.NODE_ENV !== "production" && E.state.push(L);
|
6347
6347
|
else if (typeof O == "function") {
|
6348
|
-
const D = process.env.NODE_ENV !== "production" && a ? O :
|
6348
|
+
const D = process.env.NODE_ENV !== "production" && a ? O : C(L, O);
|
6349
6349
|
R[L] = D, process.env.NODE_ENV !== "production" && (E.actions[L] = O), i.actions[L] = O;
|
6350
6350
|
} else
|
6351
6351
|
process.env.NODE_ENV !== "production" && isComputed(O) && (E.getters[L] = s ? r.getters[L] : O, IS_CLIENT && (R._getters || (R._getters = markRaw([]))).push(L));
|
@@ -6374,7 +6374,7 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6374
6374
|
});
|
6375
6375
|
for (const D in O._hmrPayload.actions) {
|
6376
6376
|
const $ = O[D];
|
6377
|
-
set(k, D,
|
6377
|
+
set(k, D, C(D, $));
|
6378
6378
|
}
|
6379
6379
|
for (const D in O._hmrPayload.getters) {
|
6380
6380
|
const $ = O._hmrPayload.getters[D], V = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
|
@@ -6622,6 +6622,9 @@ class KgUtil {
|
|
6622
6622
|
case (!!r && !!n && n.isDayjs(s)):
|
6623
6623
|
a[o] = this.parseParamFromDayJS(o, s, r);
|
6624
6624
|
break;
|
6625
|
+
case (isArray$1(s) && s.length === 2 && !!r && !!n && n.isDayjs(s[0]) && n.isDayjs(s[1])):
|
6626
|
+
a[o] = void 0, a[`${o}_begin`] = this.parseParamFromDayJS(o, s[0], r), a[`${o}_end`] = this.parseParamFromDayJS(o, s[1], r);
|
6627
|
+
break;
|
6625
6628
|
case isObjectLike(s):
|
6626
6629
|
a[o] = this.parseParams(s);
|
6627
6630
|
break;
|
@@ -6658,6 +6661,10 @@ class KgUtil {
|
|
6658
6661
|
return r.format("YYYY-MM-DD");
|
6659
6662
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
6660
6663
|
return r.format("YYYY-MM-DD HH:mm:ss");
|
6664
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
6665
|
+
return r.format("YYYY-MM-DD");
|
6666
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
6667
|
+
return r.format("YYYY-MM-DD HH:mm:ss");
|
6661
6668
|
}
|
6662
6669
|
return r;
|
6663
6670
|
}
|
@@ -6891,12 +6898,12 @@ const getProps$w = () => ({
|
|
6891
6898
|
function m(y) {
|
6892
6899
|
y.stopPropagation(), y.preventDefault(), g(), !(y instanceof MouseEvent && y.which !== 1) && (o = y.pageX, s = y.pageY, n = e.kgWidth, a = e.kgHeight, i = _(document.documentElement, "mousemove", v), l = _(document.documentElement, "mouseup", b));
|
6893
6900
|
}
|
6894
|
-
function _(y,
|
6895
|
-
return y.addEventListener(
|
6896
|
-
remove: () => y.removeEventListener(
|
6901
|
+
function _(y, C, E) {
|
6902
|
+
return y.addEventListener(C, E), {
|
6903
|
+
remove: () => y.removeEventListener(C, E)
|
6897
6904
|
};
|
6898
6905
|
}
|
6899
|
-
function
|
6906
|
+
function T(y) {
|
6900
6907
|
y.stopPropagation(), y.preventDefault();
|
6901
6908
|
}
|
6902
6909
|
return () => {
|
@@ -6906,7 +6913,7 @@ const getProps$w = () => ({
|
|
6906
6913
|
style: u.value
|
6907
6914
|
}, [createVNode("div", {
|
6908
6915
|
class: "kg-resizable-handle",
|
6909
|
-
onClick:
|
6916
|
+
onClick: T,
|
6910
6917
|
onMousedown: m
|
6911
6918
|
}, [createVNode("div", {
|
6912
6919
|
class: "kg-resizable-handle-line"
|
@@ -7132,13 +7139,13 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7132
7139
|
r("update:visible", !1);
|
7133
7140
|
}
|
7134
7141
|
function v() {
|
7135
|
-
var b, m, _,
|
7142
|
+
var b, m, _, T, y, C, E;
|
7136
7143
|
if (c.value) {
|
7137
|
-
const
|
7138
|
-
(!i || i(k,
|
7144
|
+
const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = A.map((R) => R[g.value])) != null ? _ : [];
|
7145
|
+
(!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
|
7139
7146
|
} else {
|
7140
|
-
const
|
7141
|
-
(!i || i(k,
|
7147
|
+
const A = (C = (y = (T = l.selectedRows) == null ? void 0 : T.value) == null ? void 0 : y[0]) != null ? C : null, k = (E = A == null ? void 0 : A[g.value]) != null ? E : "";
|
7148
|
+
(!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
|
7142
7149
|
}
|
7143
7150
|
}
|
7144
7151
|
return () => {
|
@@ -7265,13 +7272,13 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7265
7272
|
const n = useKg(), a = useKgVar(), o = inject(DI_FORM_REF, ref(null)), s = inject(DI_FORM_MODEL, computed(() => ({}))), {
|
7266
7273
|
transformDatas: i
|
7267
7274
|
} = _useServices$2(e), l = ref(!1), u = ref(!1), c = ref([]), g = computed(() => a.store.getVarPossibility(a.formID, e.kgVarName)), p = computed(() => a.store.getVariableConfig(a.formID, e.kgVarName)), v = computed(() => {
|
7268
|
-
var
|
7269
|
-
let y = KgVarUtil.parseCommandParameter((
|
7275
|
+
var C;
|
7276
|
+
let y = KgVarUtil.parseCommandParameter((C = g.value) == null ? void 0 : C.cmd_prm);
|
7270
7277
|
return y = mapValues(y, (E) => {
|
7271
7278
|
if (typeof E == "string" && E.startsWith("{") && E.endsWith("}")) {
|
7272
|
-
const
|
7273
|
-
if (s.value &&
|
7274
|
-
return s.value[
|
7279
|
+
const A = E.slice(1, -1);
|
7280
|
+
if (s.value && A in s.value)
|
7281
|
+
return s.value[A];
|
7275
7282
|
}
|
7276
7283
|
return E;
|
7277
7284
|
}), y;
|
@@ -7284,21 +7291,21 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7284
7291
|
(y = g.value) != null && y.id && m();
|
7285
7292
|
}, {
|
7286
7293
|
immediate: !0
|
7287
|
-
}), watch([() => e.value, c], ([y,
|
7288
|
-
var
|
7294
|
+
}), watch([() => e.value, c], ([y, C]) => {
|
7295
|
+
var A, k;
|
7289
7296
|
const E = get(y, "length", 0);
|
7290
|
-
if (E > 0 &&
|
7291
|
-
const R = (k = (
|
7297
|
+
if (E > 0 && C.length > 0) {
|
7298
|
+
const R = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", L = intersection$1(y, C == null ? void 0 : C.map((O) => O[R]));
|
7292
7299
|
if (L.length < E) {
|
7293
7300
|
r("update:value", L);
|
7294
7301
|
return;
|
7295
7302
|
}
|
7296
7303
|
}
|
7297
7304
|
switch (!0) {
|
7298
|
-
case (E > 0 && E ===
|
7305
|
+
case (E > 0 && E === C.length):
|
7299
7306
|
l.value = !0, u.value = !1;
|
7300
7307
|
break;
|
7301
|
-
case (E > 0 && E !==
|
7308
|
+
case (E > 0 && E !== C.length):
|
7302
7309
|
l.value = !1, u.value = !0;
|
7303
7310
|
break;
|
7304
7311
|
default:
|
@@ -7309,23 +7316,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7309
7316
|
immediate: !0
|
7310
7317
|
});
|
7311
7318
|
async function m() {
|
7312
|
-
var R, L, O, D, $, V,
|
7313
|
-
const y = (R = g.value) == null ? void 0 : R.cmd,
|
7314
|
-
if (!y || !E || !
|
7319
|
+
var R, L, O, D, $, V, w, I, M;
|
7320
|
+
const y = (R = g.value) == null ? void 0 : R.cmd, C = (O = (L = g.value) == null ? void 0 : L.cmd_method) != null ? O : "GET", E = ($ = (D = g.value) == null ? void 0 : D.val_clm) != null ? $ : "", A = (w = (V = g.value) == null ? void 0 : V.lbl_clm) != null ? w : "";
|
7321
|
+
if (!y || !E || !A) {
|
7315
7322
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7316
7323
|
frm_id: a.formID,
|
7317
7324
|
var_nam: e.kgVarName,
|
7318
7325
|
cmd: y,
|
7319
7326
|
val_clm: E,
|
7320
|
-
lbl_clm:
|
7327
|
+
lbl_clm: A
|
7321
7328
|
});
|
7322
7329
|
return;
|
7323
7330
|
}
|
7324
7331
|
let k = null;
|
7325
7332
|
try {
|
7326
|
-
k = await ((
|
7333
|
+
k = await ((I = httpClient()) == null ? void 0 : I.request({
|
7327
7334
|
url: y,
|
7328
|
-
method:
|
7335
|
+
method: C,
|
7329
7336
|
params: v.value,
|
7330
7337
|
data: v.value
|
7331
7338
|
}));
|
@@ -7344,29 +7351,29 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7344
7351
|
}
|
7345
7352
|
if (c.value.length > 0) {
|
7346
7353
|
const N = c.value[0];
|
7347
|
-
(!(E in N) || !(
|
7354
|
+
(!(E in N) || !(A in N)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7348
7355
|
frm_id: a.formID,
|
7349
7356
|
var_nam: e.kgVarName,
|
7350
7357
|
cmd: y,
|
7351
7358
|
val_clm: E,
|
7352
|
-
lbl_clm:
|
7359
|
+
lbl_clm: A,
|
7353
7360
|
\u6240\u6709\u5217: Object.keys(N)
|
7354
7361
|
});
|
7355
7362
|
}
|
7356
|
-
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
7363
|
+
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((M = c.value) == null ? void 0 : M.map((N) => N[E]), e.value));
|
7357
7364
|
}
|
7358
7365
|
function _(y) {
|
7359
|
-
var
|
7360
|
-
y.target.checked ?
|
7366
|
+
var C, E, A;
|
7367
|
+
y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
|
7361
7368
|
var R, L;
|
7362
7369
|
return k[(L = (R = g.value) == null ? void 0 : R.val_clm) != null ? L : ""];
|
7363
|
-
})) != null ? E : []) :
|
7370
|
+
})) != null ? E : []) : T([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
|
7364
7371
|
}
|
7365
|
-
function
|
7372
|
+
function T(y) {
|
7366
7373
|
r("update:value", y), r("kgChange", y);
|
7367
7374
|
}
|
7368
7375
|
return () => {
|
7369
|
-
let y,
|
7376
|
+
let y, C;
|
7370
7377
|
return createVNode("div", {
|
7371
7378
|
class: "kg-form-item-checkbox-group"
|
7372
7379
|
}, [createVNode(Form.ItemRest, null, {
|
@@ -7380,14 +7387,14 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7380
7387
|
})]
|
7381
7388
|
}), createVNode(Divider, null, null), createVNode(Checkbox.Group, {
|
7382
7389
|
value: e.value,
|
7383
|
-
"onUpdate:value":
|
7390
|
+
"onUpdate:value": T
|
7384
7391
|
}, {
|
7385
7392
|
default: () => [createVNode(Row, {
|
7386
7393
|
gutter: 12
|
7387
|
-
}, _isSlot$8(
|
7388
|
-
var
|
7394
|
+
}, _isSlot$8(C = c.value.map((E) => {
|
7395
|
+
var A, k;
|
7389
7396
|
return createVNode(Col, {
|
7390
|
-
span: (k = (
|
7397
|
+
span: (k = (A = b.value) == null ? void 0 : A.span) != null ? k : 24
|
7391
7398
|
}, {
|
7392
7399
|
default: () => {
|
7393
7400
|
var R, L, O, D;
|
@@ -7402,8 +7409,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7402
7409
|
})];
|
7403
7410
|
}
|
7404
7411
|
});
|
7405
|
-
})) ?
|
7406
|
-
default: () => [
|
7412
|
+
})) ? C : {
|
7413
|
+
default: () => [C]
|
7407
7414
|
})]
|
7408
7415
|
})]);
|
7409
7416
|
};
|
@@ -7436,6 +7443,34 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7436
7443
|
style: "width: 100%"
|
7437
7444
|
}, null);
|
7438
7445
|
}
|
7446
|
+
}), KgFormItemDateRange = defineComponent({
|
7447
|
+
name: "KgFormItemDateRange",
|
7448
|
+
props: getProps$u(),
|
7449
|
+
emits: ["update:value", "kgSubmit", "kgChange"],
|
7450
|
+
setup(e, {
|
7451
|
+
slots: t,
|
7452
|
+
emit: r,
|
7453
|
+
attrs: n
|
7454
|
+
}) {
|
7455
|
+
const a = inject("$dayjs", dayjs), o = computed(() => {
|
7456
|
+
let i = e.value;
|
7457
|
+
if (!!i && !(!isArray$1(i) || i.length !== 2) && ((!a.isDayjs(i[0]) || !a.isDayjs(i[1])) && (i = [a(i[0]), a(i[1])]), !(!a.isDayjs(i[0]) || !a.isDayjs(i[1]))))
|
7458
|
+
return i;
|
7459
|
+
});
|
7460
|
+
function s(i) {
|
7461
|
+
const l = i ? [a(i[0]), a(i[1])] : void 0;
|
7462
|
+
r("update:value", l), r("kgChange", l);
|
7463
|
+
}
|
7464
|
+
return () => createVNode(DatePicker.RangePicker, {
|
7465
|
+
value: o.value,
|
7466
|
+
"onUpdate:value": s,
|
7467
|
+
id: n.id,
|
7468
|
+
disabled: e.kgDisabled,
|
7469
|
+
placeholder: [e.kgPlaceholder, e.kgPlaceholder],
|
7470
|
+
showTime: e.kgShowTime,
|
7471
|
+
style: "width: 100%"
|
7472
|
+
}, null);
|
7473
|
+
}
|
7439
7474
|
}), KgFormItemInput = defineComponent({
|
7440
7475
|
name: "KgFormItemInput",
|
7441
7476
|
props: getProps$u(),
|
@@ -7541,13 +7576,13 @@ const KgFormItemSelect = defineComponent({
|
|
7541
7576
|
return p = mapValues(p, (b) => {
|
7542
7577
|
var m, _;
|
7543
7578
|
if (typeof b == "string" && b.startsWith("{") && b.endsWith("}")) {
|
7544
|
-
let
|
7545
|
-
if (
|
7546
|
-
const
|
7547
|
-
|
7579
|
+
let T = b.slice(1, -1), y = "";
|
7580
|
+
if (T.includes(".")) {
|
7581
|
+
const C = T.split(".");
|
7582
|
+
T = C[0], y = C[1];
|
7548
7583
|
}
|
7549
|
-
if (a.value &&
|
7550
|
-
return y ? (_ = (m = a.value[`${
|
7584
|
+
if (a.value && T in a.value)
|
7585
|
+
return y ? (_ = (m = a.value[`${T}_obj`]) == null ? void 0 : m[y]) != null ? _ : void 0 : a.value[T];
|
7551
7586
|
}
|
7552
7587
|
return b;
|
7553
7588
|
}), p;
|
@@ -7559,8 +7594,8 @@ const KgFormItemSelect = defineComponent({
|
|
7559
7594
|
immediate: !0
|
7560
7595
|
});
|
7561
7596
|
async function u() {
|
7562
|
-
var
|
7563
|
-
const p = (
|
7597
|
+
var T, y, C, E, A, k, R, L;
|
7598
|
+
const p = (T = i.value) == null ? void 0 : T.cmd, v = (C = (y = i.value) == null ? void 0 : y.cmd_method) != null ? C : "GET", b = (A = (E = i.value) == null ? void 0 : E.val_clm) != null ? A : "", m = (R = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? R : "";
|
7564
7599
|
if (!p || !b || !m) {
|
7565
7600
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7566
7601
|
frm_id: n.formID,
|
@@ -7607,8 +7642,8 @@ const KgFormItemSelect = defineComponent({
|
|
7607
7642
|
function c(p) {
|
7608
7643
|
var b;
|
7609
7644
|
const v = (b = toRaw(s.value.find((m) => {
|
7610
|
-
var _,
|
7611
|
-
return m[(
|
7645
|
+
var _, T;
|
7646
|
+
return m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""] === p;
|
7612
7647
|
}))) != null ? b : null;
|
7613
7648
|
r("kgSelectChange", v), a.value[`${e.kgVarName}_obj`] = v;
|
7614
7649
|
}
|
@@ -7633,14 +7668,14 @@ const KgFormItemSelect = defineComponent({
|
|
7633
7668
|
"kg-lbl-clm": (b = i.value) == null ? void 0 : b.lbl_clm
|
7634
7669
|
}, {
|
7635
7670
|
default: () => s.value.map((m) => {
|
7636
|
-
var _,
|
7671
|
+
var _, T, y, C;
|
7637
7672
|
return createVNode(Select.Option, {
|
7638
|
-
"kg-value": m[(
|
7639
|
-
value: m[(
|
7673
|
+
"kg-value": m[(T = (_ = i.value) == null ? void 0 : _.val_clm) != null ? T : ""],
|
7674
|
+
value: m[(C = (y = i.value) == null ? void 0 : y.val_clm) != null ? C : ""]
|
7640
7675
|
}, {
|
7641
7676
|
default: () => {
|
7642
|
-
var E,
|
7643
|
-
return [m[(
|
7677
|
+
var E, A;
|
7678
|
+
return [m[(A = (E = i.value) == null ? void 0 : E.lbl_clm) != null ? A : ""]];
|
7644
7679
|
}
|
7645
7680
|
});
|
7646
7681
|
}),
|
@@ -7715,9 +7750,9 @@ function _useRules(e) {
|
|
7715
7750
|
case KG_VAR_INPUT__DATA_TYPE.NUMBER:
|
7716
7751
|
const _ = (b = a.value) == null ? void 0 : b.min;
|
7717
7752
|
isNil(_) || (((m = a.value) == null ? void 0 : m.min_include_flg) === 1 ? i.push({
|
7718
|
-
validator: (
|
7753
|
+
validator: (T, y) => Number(y) < _ ? Promise.reject(t.t("kg.KgFormItem.mustGTE", [_])) : Promise.resolve()
|
7719
7754
|
}) : i.push({
|
7720
|
-
validator: (
|
7755
|
+
validator: (T, y) => Number(y) <= _ ? Promise.reject(t.t("kg.KgFormItem.mustGT", [_])) : Promise.resolve()
|
7721
7756
|
}));
|
7722
7757
|
break;
|
7723
7758
|
}
|
@@ -7737,7 +7772,7 @@ const KgFormItem = defineComponent({
|
|
7737
7772
|
const n = useKgVar(), a = inject(DI_FORM_MODEL, computed(() => ({}))), o = inject(DI_FORM_REF, ref(null)), s = computed(() => n.store.isCreating(n.formID)), i = computed(() => n.store.isUpdating(n.formID)), l = computed(() => n.store.isCopying(n.formID)), u = computed(() => n.store.getVarLookup(n.formID, e.kgVarName)), c = computed(() => n.store.getVariableConfig(n.formID, e.kgVarName)), g = computed(() => n.store.getVarProfileDetail(n.formID, e.kgVarName)), p = computed(() => n.store.getVarSubmitField(n.formID, e.kgVarName)), {
|
7738
7773
|
rules: v
|
7739
7774
|
} = _useRules(e), b = computed(() => {
|
7740
|
-
var V,
|
7775
|
+
var V, w, I, M, N;
|
7741
7776
|
if (n.isRetrievingVar.value)
|
7742
7777
|
return !0;
|
7743
7778
|
let $ = !1;
|
@@ -7751,13 +7786,13 @@ const KgFormItem = defineComponent({
|
|
7751
7786
|
case KG_FORM_CONTEXT.SUBMIT:
|
7752
7787
|
switch (!0) {
|
7753
7788
|
case n.isCreating.value:
|
7754
|
-
$ = ((
|
7789
|
+
$ = ((w = p.value) == null ? void 0 : w.crt_ena_flg) === 0;
|
7755
7790
|
break;
|
7756
7791
|
case n.isUpdating.value:
|
7757
|
-
$ = ((
|
7792
|
+
$ = ((I = p.value) == null ? void 0 : I.upt_ena_flg) === 0;
|
7758
7793
|
break;
|
7759
7794
|
case n.isCopying.value:
|
7760
|
-
$ = ((
|
7795
|
+
$ = ((M = p.value) == null ? void 0 : M.cpy_ena_flg) === 0;
|
7761
7796
|
break;
|
7762
7797
|
case n.isDeleting.value:
|
7763
7798
|
$ = ((N = p.value) == null ? void 0 : N.del_ena_flg) === 0;
|
@@ -7767,60 +7802,60 @@ const KgFormItem = defineComponent({
|
|
7767
7802
|
}
|
7768
7803
|
return $;
|
7769
7804
|
}), m = computed(() => {
|
7770
|
-
var V,
|
7805
|
+
var V, w, I, M;
|
7771
7806
|
let $ = " ";
|
7772
7807
|
if (e.kgPlaceholder)
|
7773
7808
|
$ = e.kgPlaceholder;
|
7774
7809
|
else
|
7775
7810
|
switch (e.kgContext) {
|
7776
7811
|
case KG_FORM_CONTEXT.SEARCH:
|
7777
|
-
$ = n.t((
|
7812
|
+
$ = n.t((w = (V = g.value) == null ? void 0 : V.placeholder) != null ? w : " ").value;
|
7778
7813
|
break;
|
7779
7814
|
case KG_FORM_CONTEXT.SUBMIT:
|
7780
|
-
$ = n.t((
|
7815
|
+
$ = n.t((M = (I = p.value) == null ? void 0 : I.placeholder) != null ? M : " ").value;
|
7781
7816
|
break;
|
7782
7817
|
}
|
7783
7818
|
return $;
|
7784
7819
|
}), _ = computed(() => {
|
7785
|
-
var V,
|
7820
|
+
var V, w, I, M, N, F, H, U, x, G;
|
7786
7821
|
let $ = 6;
|
7787
7822
|
if (e.kgSpan !== void 0)
|
7788
7823
|
$ = e.kgSpan;
|
7789
7824
|
else
|
7790
7825
|
switch (e.kgContext) {
|
7791
7826
|
case KG_FORM_CONTEXT.SEARCH:
|
7792
|
-
$ = (
|
7827
|
+
$ = (w = (V = g.value) == null ? void 0 : V.width) != null ? w : 6;
|
7793
7828
|
break;
|
7794
7829
|
case KG_FORM_CONTEXT.SUBMIT:
|
7795
7830
|
switch (!0) {
|
7796
7831
|
case n.isCreating.value:
|
7797
|
-
$ = (
|
7832
|
+
$ = (M = (I = p.value) == null ? void 0 : I.crt_width) != null ? M : 6;
|
7798
7833
|
break;
|
7799
7834
|
case n.isUpdating.value:
|
7800
7835
|
$ = (F = (N = p.value) == null ? void 0 : N.upt_width) != null ? F : 6;
|
7801
7836
|
break;
|
7802
7837
|
case n.isCopying.value:
|
7803
|
-
$ = (
|
7838
|
+
$ = (U = (H = p.value) == null ? void 0 : H.cpy_width) != null ? U : 6;
|
7804
7839
|
break;
|
7805
7840
|
case n.isDeleting.value:
|
7806
|
-
$ = (
|
7841
|
+
$ = (G = (x = p.value) == null ? void 0 : x.del_width) != null ? G : 6;
|
7807
7842
|
break;
|
7808
7843
|
}
|
7809
7844
|
}
|
7810
7845
|
return Math.min(24, Math.max(1, $));
|
7811
|
-
}),
|
7812
|
-
var
|
7846
|
+
}), T = computed(() => {
|
7847
|
+
var I, M;
|
7813
7848
|
const $ = get(k.value, "$el.parentElement");
|
7814
|
-
if ($ && !((
|
7849
|
+
if ($ && !((I = $.classList) != null && I.contains("ant-row")))
|
7815
7850
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7816
7851
|
let V = {};
|
7817
|
-
const
|
7818
|
-
return Number.isNaN(
|
7819
|
-
paddingLeft: `${
|
7820
|
-
paddingRight: `${
|
7852
|
+
const w = Math.abs(Number.parseInt((M = get(k.value, "$el.parentElement.style.marginLeft")) != null ? M : "0px"));
|
7853
|
+
return Number.isNaN(w) || (V = {
|
7854
|
+
paddingLeft: `${w}px !important`,
|
7855
|
+
paddingRight: `${w}px !important`
|
7821
7856
|
}), V;
|
7822
7857
|
}), y = computed(() => {
|
7823
|
-
var V,
|
7858
|
+
var V, w, I, M;
|
7824
7859
|
let $ = "kg-form-item";
|
7825
7860
|
switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
|
7826
7861
|
case KG_FORM_CONTEXT.SEARCH:
|
@@ -7832,26 +7867,26 @@ const KgFormItem = defineComponent({
|
|
7832
7867
|
break;
|
7833
7868
|
case KG_FORM_CONTEXT.SUBMIT:
|
7834
7869
|
switch (!0) {
|
7835
|
-
case (s.value && ((
|
7836
|
-
case (i.value && ((
|
7837
|
-
case (l.value && ((
|
7870
|
+
case (s.value && ((w = p.value) == null ? void 0 : w.crt_vis_flg) === 0):
|
7871
|
+
case (i.value && ((I = p.value) == null ? void 0 : I.upt_vis_flg) === 0):
|
7872
|
+
case (l.value && ((M = p.value) == null ? void 0 : M.cpy_vis_flg) === 0):
|
7838
7873
|
$ += " kg-form-item--invisible";
|
7839
7874
|
break;
|
7840
7875
|
}
|
7841
7876
|
break;
|
7842
7877
|
}
|
7843
7878
|
return $;
|
7844
|
-
}),
|
7879
|
+
}), C = computed(() => {
|
7845
7880
|
var V;
|
7846
7881
|
const $ = {
|
7847
7882
|
...e,
|
7848
7883
|
value: (V = a.value) == null ? void 0 : V[e.kgVarName],
|
7849
|
-
"onUpdate:value": (
|
7850
|
-
a.value && (a.value[e.kgVarName] =
|
7884
|
+
"onUpdate:value": (w) => {
|
7885
|
+
a.value && (a.value[e.kgVarName] = w);
|
7851
7886
|
},
|
7852
7887
|
kgPlaceholder: m.value,
|
7853
7888
|
kgDisabled: b.value,
|
7854
|
-
id:
|
7889
|
+
id: A.value
|
7855
7890
|
};
|
7856
7891
|
switch (E.value) {
|
7857
7892
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
@@ -7866,21 +7901,27 @@ const KgFormItem = defineComponent({
|
|
7866
7901
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7867
7902
|
$.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7868
7903
|
break;
|
7904
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
7905
|
+
$.kgShowTime = !1;
|
7906
|
+
break;
|
7907
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
7908
|
+
$.kgShowTime = e.kgShowTime === void 0 ? !0 : e.kgShowTime;
|
7909
|
+
break;
|
7869
7910
|
}
|
7870
7911
|
return $;
|
7871
7912
|
}), E = computed(() => {
|
7872
7913
|
var $;
|
7873
7914
|
return ($ = c.value) == null ? void 0 : $.ctrl_typ;
|
7874
|
-
}),
|
7915
|
+
}), A = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
|
7875
7916
|
function R($, V) {
|
7876
|
-
var
|
7877
|
-
a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (
|
7917
|
+
var w;
|
7918
|
+
a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", V), (w = o.value) == null || w.validate([e.kgVarName]);
|
7878
7919
|
}
|
7879
7920
|
function L() {
|
7880
7921
|
if (t.control) {
|
7881
7922
|
const $ = {
|
7882
7923
|
varName: e.kgVarName,
|
7883
|
-
props:
|
7924
|
+
props: C,
|
7884
7925
|
model: a,
|
7885
7926
|
varConfig: c,
|
7886
7927
|
varProfileDetail: g,
|
@@ -7890,27 +7931,31 @@ const KgFormItem = defineComponent({
|
|
7890
7931
|
} else
|
7891
7932
|
switch (E.value) {
|
7892
7933
|
case KG_FORM_ITEM_TYPE.INPUT_NUMBER:
|
7893
|
-
return createVNode(KgFormItemInputNumber,
|
7934
|
+
return createVNode(KgFormItemInputNumber, C.value, null);
|
7894
7935
|
case KG_FORM_ITEM_TYPE.SELECT:
|
7895
|
-
return createVNode(KgFormItemSelect,
|
7936
|
+
return createVNode(KgFormItemSelect, C.value, null);
|
7896
7937
|
case KG_FORM_ITEM_TYPE.SWITCH:
|
7897
7938
|
switch (e.kgContext) {
|
7898
7939
|
case KG_FORM_CONTEXT.SEARCH:
|
7899
|
-
return createVNode(KgFormItemSelect,
|
7940
|
+
return createVNode(KgFormItemSelect, C.value, null);
|
7900
7941
|
case KG_FORM_CONTEXT.SUBMIT:
|
7901
7942
|
default:
|
7902
|
-
return createVNode(KgFormItemSwitch,
|
7943
|
+
return createVNode(KgFormItemSwitch, C.value, null);
|
7903
7944
|
}
|
7904
7945
|
case KG_FORM_ITEM_TYPE.CHECKBOX:
|
7905
|
-
return createVNode(KgFormItemCheckbox,
|
7946
|
+
return createVNode(KgFormItemCheckbox, C.value, null);
|
7906
7947
|
case KG_FORM_ITEM_TYPE.CHECKBOX_GROUP:
|
7907
|
-
return createVNode(KgFormItemCheckboxGroup,
|
7948
|
+
return createVNode(KgFormItemCheckboxGroup, C.value, null);
|
7908
7949
|
case KG_FORM_ITEM_TYPE.DATE_DATE:
|
7909
|
-
return createVNode(KgFormItemDate,
|
7950
|
+
return createVNode(KgFormItemDate, C.value, null);
|
7910
7951
|
case KG_FORM_ITEM_TYPE.DATE_DATETIME:
|
7911
|
-
return createVNode(KgFormItemDate,
|
7952
|
+
return createVNode(KgFormItemDate, C.value, null);
|
7953
|
+
case KG_FORM_ITEM_TYPE.DATE_DATE_RANGE:
|
7954
|
+
return createVNode(KgFormItemDateRange, C.value, null);
|
7955
|
+
case KG_FORM_ITEM_TYPE.DATE_DATETIME_RANGE:
|
7956
|
+
return createVNode(KgFormItemDateRange, C.value, null);
|
7912
7957
|
default:
|
7913
|
-
return createVNode(KgFormItemInput,
|
7958
|
+
return createVNode(KgFormItemInput, C.value, null);
|
7914
7959
|
}
|
7915
7960
|
}
|
7916
7961
|
function O() {
|
@@ -7938,13 +7983,13 @@ const KgFormItem = defineComponent({
|
|
7938
7983
|
"kg-lkp-ret-fld": (V = u.value) == null ? void 0 : V.ret_fld,
|
7939
7984
|
span: _.value,
|
7940
7985
|
class: y.value,
|
7941
|
-
style:
|
7986
|
+
style: T.value
|
7942
7987
|
}, {
|
7943
7988
|
default: () => [createVNode(Form.Item, {
|
7944
7989
|
name: e.kgVarName,
|
7945
7990
|
rules: v.value,
|
7946
7991
|
validateFirst: !0,
|
7947
|
-
htmlFor:
|
7992
|
+
htmlFor: A.value
|
7948
7993
|
}, {
|
7949
7994
|
default: () => createVNode(Fragment, null, [L(), D()]),
|
7950
7995
|
label: () => O()
|
@@ -8137,8 +8182,8 @@ function createStore(e, t, r) {
|
|
8137
8182
|
var p = slice(arguments, 0), v = this;
|
8138
8183
|
function b() {
|
8139
8184
|
if (!!c)
|
8140
|
-
return each$6(arguments, function(_,
|
8141
|
-
p[
|
8185
|
+
return each$6(arguments, function(_, T) {
|
8186
|
+
p[T] = _;
|
8142
8187
|
}), c.apply(v, p);
|
8143
8188
|
}
|
8144
8189
|
var m = [b].concat(p);
|
@@ -9145,14 +9190,14 @@ const useKgVarStore = () => (store$6 || (store$6 = defineStore("KgVar", {
|
|
9145
9190
|
varSubmitConfig: b,
|
9146
9191
|
varSubmitFields: m,
|
9147
9192
|
varProfile: _,
|
9148
|
-
varProfileConfig:
|
9193
|
+
varProfileConfig: T,
|
9149
9194
|
varGrid: y,
|
9150
|
-
varGridConfig:
|
9195
|
+
varGridConfig: C
|
9151
9196
|
} = await GetAll({ params: { frm_id: e } });
|
9152
|
-
this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(
|
9197
|
+
this.varCatalogMap.set(e, i != null ? i : []), this.varLookupMap.set(e, l != null ? l : []), this.varPossibilityMap.set(e, g != null ? g : []), this.varVariableConfigMap.set(e, u != null ? u : []), this.varVariableInputMap.set(e, c != null ? c : []), this.varButtonMap.set(e, transformVarButtons(p)), this.varButtonConfigMap.set(e, v != null ? v : null), this.varSubmitConfigMap.set(e, transformVarSubmitConfig(b)), this.varSubmitFieldMap.set(e, transformVarSubmitFields(m)), this.varProfileConfigMap.set(e, transformVarProfileConfig(T != null ? T : null)), this.varProfileMap.set(e, {
|
9153
9198
|
varProfile: _ != null ? _ : null,
|
9154
9199
|
currentVarProfileMasterID: (n = (r = (t = _ == null ? void 0 : _.varProfileMasters) == null ? void 0 : t.find((E) => E.def_flg === 1 || E.cust_lvl === KG_CUSTOM_LEVEL.L0)) == null ? void 0 : r.id) != null ? n : null
|
9155
|
-
}), this.varGridConfigMap.set(e, transformVarGridConfig(
|
9200
|
+
}), this.varGridConfigMap.set(e, transformVarGridConfig(C != null ? C : null)), this.varGridMap.set(e, {
|
9156
9201
|
varGrid: transformVarGridDTO(y),
|
9157
9202
|
currentVarGridMasterID: (s = (o = (a = y == null ? void 0 : y.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
|
9158
9203
|
}), this.emit(e, "ready");
|
@@ -9303,11 +9348,11 @@ function useKgVar(e, t, r = 0) {
|
|
9303
9348
|
i.leave(s);
|
9304
9349
|
}));
|
9305
9350
|
const l = ($) => computed(() => {
|
9306
|
-
var V,
|
9307
|
-
return (
|
9308
|
-
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), v = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), _ = computed(() => i.isOtherRequesting(s)),
|
9351
|
+
var V, w, I;
|
9352
|
+
return (I = (w = (V = i.getVarCatalog(s, $)) == null ? void 0 : V.var_text) != null ? w : $) != null ? I : "";
|
9353
|
+
}), u = computed(() => i.isRetrievingVar(s)), c = computed(() => i.isRetrievingVarProfileMaster(s)), g = computed(() => i.isRetrievingVarGridMaster(s)), p = computed(() => i.isCreating(s)), v = computed(() => i.isUpdating(s)), b = computed(() => i.isCopying(s)), m = computed(() => i.isDeleting(s)), _ = computed(() => i.isOtherRequesting(s)), T = computed(() => i.getVarButtons(s)), y = computed(() => i.getVarProfileMasters(s)), C = computed(() => i.getCurrentVarProfileMaster(s)), E = computed(() => i.getCurrentVarProfileMasterID(s)), A = computed(() => {
|
9309
9354
|
var $, V;
|
9310
|
-
return (V = ($ =
|
9355
|
+
return (V = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? V : null;
|
9311
9356
|
}), k = computed(() => i.getVarGridConfig(s)), R = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), O = computed(() => i.getSystemVarGridDetails(s)), D = computed(() => i.getCurrentVarGridDetails(s));
|
9312
9357
|
return {
|
9313
9358
|
formID: s,
|
@@ -9320,11 +9365,11 @@ function useKgVar(e, t, r = 0) {
|
|
9320
9365
|
isCopying: b,
|
9321
9366
|
isDeleting: m,
|
9322
9367
|
isOtherRequesting: _,
|
9323
|
-
varButtons:
|
9368
|
+
varButtons: T,
|
9324
9369
|
varProfileMasters: y,
|
9325
|
-
currentVarProfileMaster:
|
9370
|
+
currentVarProfileMaster: C,
|
9326
9371
|
currentVarProfileMasterID: E,
|
9327
|
-
currentVarProfileDetails:
|
9372
|
+
currentVarProfileDetails: A,
|
9328
9373
|
varGridConfig: k,
|
9329
9374
|
varGridMasters: R,
|
9330
9375
|
currentVarGridMaster: L,
|
@@ -9566,8 +9611,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9566
9611
|
}) => {
|
9567
9612
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9568
9613
|
return i = watch(u, (g) => {
|
9569
|
-
var p, v, b, m, _,
|
9570
|
-
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (v = c == null ? void 0 : c.resizable_flg) != null ? v : 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 = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (
|
9614
|
+
var p, v, b, m, _, T, y, C, E, A, k, R;
|
9615
|
+
g && (g.id = (p = c == null ? void 0 : c.id) != null ? p : null, g.frm_id = o.formID, g.resizable_flg = (v = c == null ? void 0 : c.resizable_flg) != null ? v : 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 = (_ = c == null ? void 0 : c.responsive_flg) != null ? _ : 1, g.max_width = (T = c == null ? void 0 : c.max_width) != null ? T : DEFAULT_MAX_WIDTH, g.min_width = (y = c == null ? void 0 : c.min_width) != null ? y : DEFAULT_MIN_WIDTH, g.dft_width = (C = c == null ? void 0 : c.dft_width) != null ? C : DEFAULT_WIDTH, g.layout = (E = c == null ? void 0 : c.layout) != null ? E : KG_VAR_SUBMIT__LAYOUT.VERTICAL, g.label_col = (A = c == null ? void 0 : c.label_col) != null ? A : DEFAULT_LABEL_COL_FOR_SPAN, g.label_col_unit = (k = c == null ? void 0 : c.label_col_unit) != null ? k : KG_WIDTH_UNIT.SPAN, g.display_type = (R = c == null ? void 0 : c.display_type) != null ? R : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9571
9616
|
}, {
|
9572
9617
|
immediate: !0
|
9573
9618
|
}), !1;
|
@@ -9617,8 +9662,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9617
9662
|
r("kgCancel");
|
9618
9663
|
}
|
9619
9664
|
function b() {
|
9620
|
-
var
|
9621
|
-
return e.kgShowFullscreenButton === !1 || ((
|
9665
|
+
var T;
|
9666
|
+
return e.kgShowFullscreenButton === !1 || ((T = i.value) == null ? void 0 : T.fullscreen_flg) === 0 ? null : createVNode(Button, {
|
9622
9667
|
onClick: g,
|
9623
9668
|
class: "kg-submit--btn-fullscreen"
|
9624
9669
|
}, {
|
@@ -9650,7 +9695,7 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9650
9695
|
}), DEFAULT_MIN_WIDTH = 300, DEFAULT_MAX_WIDTH = 1182, DEFAULT_WIDTH = 594, DEFAULT_LAYOUT = "vertical", DEFAULT_LABEL_COL_FOR_SPAN = 4, DEFAULT_LABEL_COL_FOR_PX = 100;
|
9651
9696
|
function _useFormModel() {
|
9652
9697
|
const e = inject("$dayjs", dayjs), t = useKgVar(), r = useKgTable(), n = useKgSubmit(), a = computed(() => t.store.isCreating(t.formID)), o = computed(() => t.store.isUpdating(t.formID)), s = computed(() => t.store.isCopying(t.formID)), i = computed(() => t.store.isDeleting(t.formID)), l = computed(() => t.store.getVarSubmitFieldsForCreate(t.formID)), u = computed(() => t.store.getVarSubmitFieldsForUpdate(t.formID)), c = computed(() => t.store.getVarSubmitFieldsForCopy(t.formID)), g = computed(() => t.store.getVarSubmitFieldsForDelete(t.formID)), p = computed(() => {
|
9653
|
-
var b, m, _,
|
9698
|
+
var b, m, _, T;
|
9654
9699
|
switch (!0) {
|
9655
9700
|
case a.value:
|
9656
9701
|
return (b = l.value) != null ? b : [];
|
@@ -9659,7 +9704,7 @@ function _useFormModel() {
|
|
9659
9704
|
case s.value:
|
9660
9705
|
return (_ = c.value) != null ? _ : [];
|
9661
9706
|
case i.value:
|
9662
|
-
return (
|
9707
|
+
return (T = g.value) != null ? T : [];
|
9663
9708
|
}
|
9664
9709
|
return [];
|
9665
9710
|
}), v = ref({});
|
@@ -9667,20 +9712,20 @@ function _useFormModel() {
|
|
9667
9712
|
if (v.value = {}, b != null && b.length) {
|
9668
9713
|
const m = r.selectedRow.value;
|
9669
9714
|
b.forEach((_) => {
|
9670
|
-
var y,
|
9671
|
-
const
|
9672
|
-
switch (v.value[
|
9715
|
+
var y, C, E, A, k, R, L, O;
|
9716
|
+
const T = (y = _.var_nam) != null ? y : "";
|
9717
|
+
switch (v.value[T] = void 0, !0) {
|
9673
9718
|
case a.value:
|
9674
|
-
v.value[
|
9719
|
+
v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (C = _.crt_dft_val) != null ? C : void 0);
|
9675
9720
|
break;
|
9676
9721
|
case o.value:
|
9677
|
-
v.value.id = m == null ? void 0 : m.id, v.value[
|
9722
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (A = (E = _.upt_dft_val) != null ? E : m == null ? void 0 : m[T]) != null ? A : void 0);
|
9678
9723
|
break;
|
9679
9724
|
case s.value:
|
9680
|
-
v.value.id = m == null ? void 0 : m.id, v.value[
|
9725
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (R = (k = _.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? R : void 0);
|
9681
9726
|
break;
|
9682
9727
|
case i.value:
|
9683
|
-
v.value.id = m == null ? void 0 : m.id, v.value[
|
9728
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (O = (L = _.del_dft_val) != null ? L : m == null ? void 0 : m[T]) != null ? O : void 0);
|
9684
9729
|
break;
|
9685
9730
|
}
|
9686
9731
|
});
|
@@ -9765,9 +9810,9 @@ function _useLayout() {
|
|
9765
9810
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9766
9811
|
return {
|
9767
9812
|
getLayout: computed(() => {
|
9768
|
-
var v, b, m, _,
|
9813
|
+
var v, b, m, _, T;
|
9769
9814
|
let i = "vertical";
|
9770
|
-
const l = (v = o.value) == null ? void 0 : v.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (_ = o.value) == null ? void 0 : _.cpy_layout, p = (
|
9815
|
+
const l = (v = o.value) == null ? void 0 : v.layout, u = (b = o.value) == null ? void 0 : b.crt_layout, c = (m = o.value) == null ? void 0 : m.upt_layout, g = (_ = o.value) == null ? void 0 : _.cpy_layout, p = (T = o.value) == null ? void 0 : T.del_layout;
|
9771
9816
|
switch (!0) {
|
9772
9817
|
case (t.value && (u === "horizontal" || !u && l === "horizontal")):
|
9773
9818
|
i = "horizontal";
|
@@ -9790,9 +9835,9 @@ function _useDisplayType() {
|
|
9790
9835
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9791
9836
|
return {
|
9792
9837
|
getDisplayType: computed(() => {
|
9793
|
-
var b, m, _,
|
9838
|
+
var b, m, _, T, y;
|
9794
9839
|
let i = KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER;
|
9795
|
-
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (_ = o.value) == null ? void 0 : _.upt_display_type, p = (
|
9840
|
+
const l = KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL, u = (b = o.value) == null ? void 0 : b.display_type, c = (m = o.value) == null ? void 0 : m.crt_display_type, g = (_ = o.value) == null ? void 0 : _.upt_display_type, p = (T = o.value) == null ? void 0 : T.cpy_display_type, v = (y = o.value) == null ? void 0 : y.del_display_type;
|
9796
9841
|
switch (!0) {
|
9797
9842
|
case (t.value && (c === l || !c && u === l)):
|
9798
9843
|
i = l;
|
@@ -9815,10 +9860,10 @@ function _useDefaultWidth() {
|
|
9815
9860
|
const e = useKgVar(), t = computed(() => e.store.isCreating(e.formID)), r = computed(() => e.store.isUpdating(e.formID)), n = computed(() => e.store.isCopying(e.formID)), a = computed(() => e.store.isDeleting(e.formID)), o = computed(() => e.store.getVarSubmitConfig(e.formID));
|
9816
9861
|
return {
|
9817
9862
|
getDefaultWidth: computed(() => {
|
9818
|
-
var v, b, m, _,
|
9863
|
+
var v, b, m, _, T;
|
9819
9864
|
if (!o.value)
|
9820
9865
|
return 0;
|
9821
|
-
const i = (v = o.value) == null ? void 0 : v.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (_ = o.value) == null ? void 0 : _.cpy_dft_width, g = (
|
9866
|
+
const i = (v = o.value) == null ? void 0 : v.dft_width, l = (b = o.value) == null ? void 0 : b.crt_dft_width, u = (m = o.value) == null ? void 0 : m.upt_dft_width, c = (_ = o.value) == null ? void 0 : _.cpy_dft_width, g = (T = o.value) == null ? void 0 : T.del_dft_width;
|
9822
9867
|
let p = i || DEFAULT_WIDTH;
|
9823
9868
|
switch (!0) {
|
9824
9869
|
case (t.value && !!l):
|
@@ -9856,7 +9901,7 @@ const getProps$p = () => ({
|
|
9856
9901
|
}) {
|
9857
9902
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9858
9903
|
_useFormModel();
|
9859
|
-
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), v = computed(() => p.value && $.value.length === 0 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)),
|
9904
|
+
const u = computed(() => a.store.isCreating(a.formID)), c = computed(() => a.store.isUpdating(a.formID)), g = computed(() => a.store.isCopying(a.formID)), p = computed(() => a.store.isDeleting(a.formID)), v = computed(() => p.value && $.value.length === 0 && V.value.length === 0), b = computed(() => a.store.getVarButtonCreate(a.formID)), m = computed(() => a.store.getVarButtonUpdate(a.formID)), _ = computed(() => a.store.getVarButtonCopy(a.formID)), T = computed(() => a.store.getVarButtonDelete(a.formID)), y = computed(() => s.store.isLoading(a.formID)), C = computed(() => a.store.getVarSubmitConfig(a.formID)), E = computed(() => a.store.getVarSubmitFieldsForCreateKey(a.formID)), A = computed(() => a.store.getVarSubmitFieldsForCreateNotKey(a.formID)), k = computed(() => a.store.getVarSubmitFieldsForUpdateKey(a.formID)), R = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), O = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), D = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
|
9860
9905
|
var B, W, Q;
|
9861
9906
|
switch (!0) {
|
9862
9907
|
case u.value:
|
@@ -9870,68 +9915,68 @@ const getProps$p = () => ({
|
|
9870
9915
|
}
|
9871
9916
|
return [];
|
9872
9917
|
}), V = computed(() => {
|
9873
|
-
var B, W, Q,
|
9918
|
+
var B, W, Q, re;
|
9874
9919
|
switch (!0) {
|
9875
9920
|
case u.value:
|
9876
|
-
return (B =
|
9921
|
+
return (B = A.value) != null ? B : [];
|
9877
9922
|
case c.value:
|
9878
9923
|
return (W = R.value) != null ? W : [];
|
9879
9924
|
case g.value:
|
9880
9925
|
return (Q = O.value) != null ? Q : [];
|
9881
9926
|
case p.value:
|
9882
|
-
return (
|
9927
|
+
return (re = D.value) != null ? re : [];
|
9883
9928
|
}
|
9884
9929
|
return [];
|
9885
|
-
}),
|
9930
|
+
}), w = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), I = computed(() => w.value || y.value), M = computed(() => y.value), N = ref({
|
9886
9931
|
kgWidth: 0
|
9887
9932
|
}), F = computed(() => {
|
9888
9933
|
var B;
|
9889
|
-
return !!(v.value ||
|
9890
|
-
}),
|
9934
|
+
return !!(v.value || ie.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
|
9935
|
+
}), H = computed(() => {
|
9891
9936
|
var B, W;
|
9892
|
-
return v.value ? 398 : (W = (B =
|
9893
|
-
}),
|
9937
|
+
return v.value ? 398 : (W = (B = C.value) == null ? void 0 : B.min_width) != null ? W : DEFAULT_MIN_WIDTH;
|
9938
|
+
}), U = computed(() => {
|
9894
9939
|
var B, W;
|
9895
|
-
return v.value ? 398 : (W = (B =
|
9896
|
-
}), x = computed(() => v.value ? 398 : N.value.kgWidth),
|
9940
|
+
return v.value ? 398 : (W = (B = C.value) == null ? void 0 : B.max_width) != null ? W : DEFAULT_MAX_WIDTH;
|
9941
|
+
}), x = computed(() => v.value ? 398 : N.value.kgWidth), G = ref(null), q = ref({}), X = ref(null);
|
9897
9942
|
_useResizeObserver$1(X);
|
9898
|
-
const Z = _useTitle(),
|
9943
|
+
const Z = _useTitle(), ne = computed(() => v.value ? 400 : N.value.kgWidth && N.value.kgWidth > 0 ? N.value.kgWidth + 2 : 0), oe = computed(() => ne.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ie = reactive({
|
9899
9944
|
isFullscreen: !1
|
9900
9945
|
}), {
|
9901
|
-
getDisplayType:
|
9946
|
+
getDisplayType: ge
|
9902
9947
|
} = _useDisplayType(), {
|
9903
|
-
getClass:
|
9904
|
-
} = _useClass(e,
|
9905
|
-
getLayout:
|
9948
|
+
getClass: te
|
9949
|
+
} = _useClass(e, ie), {
|
9950
|
+
getLayout: P
|
9906
9951
|
} = _useLayout(), {
|
9907
|
-
getDefaultWidth:
|
9908
|
-
} = _useDefaultWidth(),
|
9952
|
+
getDefaultWidth: K
|
9953
|
+
} = _useDefaultWidth(), z = computed(() => {
|
9909
9954
|
var B, W, Q;
|
9910
|
-
switch (
|
9955
|
+
switch (P.value) {
|
9911
9956
|
case "horizontal":
|
9912
|
-
switch ((B =
|
9957
|
+
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9913
9958
|
case KG_WIDTH_UNIT.SPAN:
|
9914
9959
|
return {
|
9915
|
-
span: (W =
|
9960
|
+
span: (W = C.value) == null ? void 0 : W.label_col
|
9916
9961
|
};
|
9917
9962
|
default:
|
9918
9963
|
return {
|
9919
9964
|
style: {
|
9920
|
-
width: `${(Q =
|
9965
|
+
width: `${(Q = C.value) == null ? void 0 : Q.label_col}px`
|
9921
9966
|
}
|
9922
9967
|
};
|
9923
9968
|
}
|
9924
9969
|
default:
|
9925
9970
|
return;
|
9926
9971
|
}
|
9927
|
-
}),
|
9972
|
+
}), Y = computed(() => {
|
9928
9973
|
var B, W;
|
9929
|
-
switch (
|
9974
|
+
switch (P.value) {
|
9930
9975
|
case "horizontal":
|
9931
|
-
switch ((B =
|
9976
|
+
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9932
9977
|
case KG_WIDTH_UNIT.SPAN:
|
9933
9978
|
return {
|
9934
|
-
span: 24 - ((W =
|
9979
|
+
span: 24 - ((W = C.value) == null ? void 0 : W.label_col)
|
9935
9980
|
};
|
9936
9981
|
default:
|
9937
9982
|
return;
|
@@ -9940,16 +9985,16 @@ const getProps$p = () => ({
|
|
9940
9985
|
return;
|
9941
9986
|
}
|
9942
9987
|
});
|
9943
|
-
watch(
|
9944
|
-
B === !0 &&
|
9988
|
+
watch(oe, (B, W) => {
|
9989
|
+
B === !0 && ae(), W === !0 && B === !1 && J();
|
9945
9990
|
}, {
|
9946
9991
|
immediate: !0
|
9947
|
-
}), watch(
|
9992
|
+
}), watch(K, (B) => {
|
9948
9993
|
B && (N.value.kgWidth = B);
|
9949
9994
|
}, {
|
9950
9995
|
immediate: !0
|
9951
9996
|
});
|
9952
|
-
function
|
9997
|
+
function ae() {
|
9953
9998
|
var W;
|
9954
9999
|
const B = watch(s.model, (Q) => {
|
9955
10000
|
Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
|
@@ -9963,12 +10008,12 @@ const getProps$p = () => ({
|
|
9963
10008
|
}, {
|
9964
10009
|
immediate: !0
|
9965
10010
|
});
|
9966
|
-
((W =
|
10011
|
+
((W = C.value) == null ? void 0 : W.dft_fullscreen_flg) === 1 && !v.value && (ie.isFullscreen = !0);
|
9967
10012
|
}
|
9968
|
-
function
|
9969
|
-
N.value.kgWidth =
|
10013
|
+
function J() {
|
10014
|
+
N.value.kgWidth = K.value, ie.isFullscreen = !1, s.store.emit(a.formID, "close");
|
9970
10015
|
}
|
9971
|
-
function
|
10016
|
+
function pe() {
|
9972
10017
|
switch (!0) {
|
9973
10018
|
case u.value:
|
9974
10019
|
a.store.setIsCreating(a.formID, !1);
|
@@ -9984,7 +10029,7 @@ const getProps$p = () => ({
|
|
9984
10029
|
break;
|
9985
10030
|
}
|
9986
10031
|
}
|
9987
|
-
async function
|
10032
|
+
async function he() {
|
9988
10033
|
var B, W;
|
9989
10034
|
try {
|
9990
10035
|
if (await s.store.emit(a.formID, "beforeOk", {
|
@@ -9993,44 +10038,45 @@ const getProps$p = () => ({
|
|
9993
10038
|
isCopying: g.value,
|
9994
10039
|
isDeleting: p.value,
|
9995
10040
|
row: o.selectedRow.value,
|
9996
|
-
rules:
|
10041
|
+
rules: q,
|
9997
10042
|
model: s.model
|
9998
10043
|
}))
|
9999
10044
|
return;
|
10000
10045
|
try {
|
10001
|
-
await ((B =
|
10002
|
-
} catch (
|
10003
|
-
KgUtil.throwIfNotFormError(
|
10046
|
+
await ((B = G.value) == null ? void 0 : B.validate());
|
10047
|
+
} catch (se) {
|
10048
|
+
KgUtil.throwIfNotFormError(se);
|
10004
10049
|
}
|
10005
|
-
if (await ((W =
|
10050
|
+
if (await ((W = G.value) == null ? void 0 : W.validate()), await s.store.emit(a.formID, "afterValidate", {
|
10006
10051
|
isCreating: u.value,
|
10007
10052
|
isUpdating: c.value,
|
10008
10053
|
isCopying: g.value,
|
10009
10054
|
isDeleting: p.value,
|
10010
10055
|
row: o.selectedRow.value,
|
10056
|
+
rows: o.selectedRows.value,
|
10011
10057
|
model: s.model
|
10012
10058
|
}))
|
10013
10059
|
return;
|
10014
10060
|
switch (!0) {
|
10015
10061
|
case u.value:
|
10016
|
-
await
|
10062
|
+
await Ce();
|
10017
10063
|
break;
|
10018
10064
|
case c.value:
|
10019
|
-
await
|
10065
|
+
await Te();
|
10020
10066
|
break;
|
10021
10067
|
case g.value:
|
10022
|
-
await
|
10068
|
+
await Ee();
|
10023
10069
|
break;
|
10024
10070
|
case p.value:
|
10025
|
-
await
|
10071
|
+
await ke();
|
10026
10072
|
break;
|
10027
10073
|
}
|
10028
10074
|
} catch (Q) {
|
10029
10075
|
KgUtil.throwIfNotFormError(Q);
|
10030
10076
|
}
|
10031
10077
|
}
|
10032
|
-
async function
|
10033
|
-
var W, Q,
|
10078
|
+
async function Ce() {
|
10079
|
+
var W, Q, re, se, le, ue, ce, de;
|
10034
10080
|
const B = (W = b.value) == null ? void 0 : W.cmd;
|
10035
10081
|
if (!B) {
|
10036
10082
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10040,31 +10086,33 @@ const getProps$p = () => ({
|
|
10040
10086
|
}
|
10041
10087
|
a.store.setIsCreatingRequesting(a.formID, !0);
|
10042
10088
|
try {
|
10043
|
-
|
10089
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), a.formID, r)), fe = ref(KgUtil.parseParams(toRaw(s.model.value), a.formID, r));
|
10044
10090
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10045
10091
|
isCreating: u.value,
|
10046
10092
|
isUpdating: c.value,
|
10047
10093
|
isCopying: g.value,
|
10048
10094
|
isDeleting: p.value,
|
10049
10095
|
row: o.selectedRow.value,
|
10096
|
+
rows: o.selectedRows.value,
|
10097
|
+
model: s.model,
|
10050
10098
|
params: ee,
|
10051
10099
|
data: fe
|
10052
10100
|
}))
|
10053
10101
|
return;
|
10054
10102
|
await httpClient().request({
|
10055
|
-
method: (
|
10103
|
+
method: (le = (se = b.value) == null ? void 0 : se.cmd_method) != null ? le : "POST",
|
10056
10104
|
url: B,
|
10057
|
-
params: ee,
|
10058
|
-
data: fe
|
10059
|
-
}), ((
|
10105
|
+
params: ee.value,
|
10106
|
+
data: fe.value
|
10107
|
+
}), ((ue = b.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(Z.title.value + n.t("kg.succeed")), s.store.emit(a.formID, "ok"), a.store.setIsCreating(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce, !0);
|
10060
10108
|
} catch (ee) {
|
10061
10109
|
console.error(ee);
|
10062
10110
|
} finally {
|
10063
10111
|
a.store.setIsCreatingRequesting(a.formID, !1);
|
10064
10112
|
}
|
10065
10113
|
}
|
10066
|
-
async function
|
10067
|
-
var W, Q,
|
10114
|
+
async function Te() {
|
10115
|
+
var W, Q, re, se, le, ue, ce, de;
|
10068
10116
|
const B = (W = m.value) == null ? void 0 : W.cmd;
|
10069
10117
|
if (!B) {
|
10070
10118
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10074,31 +10122,33 @@ const getProps$p = () => ({
|
|
10074
10122
|
}
|
10075
10123
|
try {
|
10076
10124
|
a.store.setIsUpdatingRequesting(a.formID, !0);
|
10077
|
-
|
10125
|
+
let ee = ref(KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), fe = ref(toRaw(s.model.value));
|
10078
10126
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10079
10127
|
isCreating: u.value,
|
10080
10128
|
isUpdating: c.value,
|
10081
10129
|
isCopying: g.value,
|
10082
10130
|
isDeleting: p.value,
|
10083
10131
|
row: o.selectedRow.value,
|
10132
|
+
rows: o.selectedRows.value,
|
10133
|
+
model: s.model,
|
10084
10134
|
params: ee,
|
10085
10135
|
data: fe
|
10086
10136
|
}))
|
10087
10137
|
return;
|
10088
10138
|
await httpClient().request({
|
10089
|
-
method: (
|
10139
|
+
method: (le = (se = m.value) == null ? void 0 : se.cmd_method) != null ? le : "POST",
|
10090
10140
|
url: B,
|
10091
|
-
params: ee,
|
10092
|
-
data: fe
|
10093
|
-
}), ((
|
10141
|
+
params: ee.value,
|
10142
|
+
data: fe.value
|
10143
|
+
}), ((ue = m.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce);
|
10094
10144
|
} catch (ee) {
|
10095
10145
|
console.error(ee);
|
10096
10146
|
} finally {
|
10097
10147
|
a.store.setIsUpdatingRequesting(a.formID, !1);
|
10098
10148
|
}
|
10099
10149
|
}
|
10100
|
-
async function
|
10101
|
-
var W, Q,
|
10150
|
+
async function Ee() {
|
10151
|
+
var W, Q, re, se, le, ue, ce, de, ee, fe;
|
10102
10152
|
const B = (W = _.value) == null ? void 0 : W.cmd;
|
10103
10153
|
if (!B) {
|
10104
10154
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
@@ -10108,66 +10158,71 @@ const getProps$p = () => ({
|
|
10108
10158
|
}
|
10109
10159
|
try {
|
10110
10160
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
10111
|
-
|
10112
|
-
...(
|
10161
|
+
let me = ref(KgVarUtil.parseCommandParameter((re = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), _e = ref({
|
10162
|
+
...(se = o.selectedRow.value) != null ? se : {},
|
10113
10163
|
...toRaw(s.model.value)
|
10114
|
-
};
|
10115
|
-
if (((
|
10164
|
+
});
|
10165
|
+
if (((le = C.value) == null ? void 0 : le.cpy_clear_id_flg) !== 0 && delete _e.value.id, await s.store.emit(a.formID, "beforeRequest", {
|
10116
10166
|
isCreating: u.value,
|
10117
10167
|
isUpdating: c.value,
|
10118
10168
|
isCopying: g.value,
|
10119
10169
|
isDeleting: p.value,
|
10120
10170
|
row: o.selectedRow.value,
|
10121
|
-
|
10122
|
-
|
10171
|
+
rows: o.selectedRows.value,
|
10172
|
+
model: s.model,
|
10173
|
+
params: me,
|
10174
|
+
data: _e
|
10123
10175
|
}))
|
10124
10176
|
return;
|
10125
10177
|
await httpClient().request({
|
10126
|
-
method: (
|
10178
|
+
method: (ce = (ue = _.value) == null ? void 0 : ue.cmd_method) != null ? ce : "POST",
|
10127
10179
|
url: B,
|
10128
|
-
params:
|
10129
|
-
data:
|
10130
|
-
}), ((
|
10131
|
-
} catch (
|
10132
|
-
console.error(
|
10180
|
+
params: me.value,
|
10181
|
+
data: _e.value
|
10182
|
+
}), ((de = _.value) == null ? void 0 : de.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (fe = (ee = i.search).value) == null || fe.call(ee, !0);
|
10183
|
+
} catch (me) {
|
10184
|
+
console.error(me);
|
10133
10185
|
} finally {
|
10134
10186
|
a.store.setIsCopyingRequesting(a.formID, !1);
|
10135
10187
|
}
|
10136
10188
|
}
|
10137
|
-
async function
|
10138
|
-
var W, Q,
|
10139
|
-
const B = (W =
|
10189
|
+
async function ke() {
|
10190
|
+
var W, Q, re, se, le, ue, ce, de;
|
10191
|
+
const B = (W = T.value) == null ? void 0 : W.cmd;
|
10140
10192
|
if (!B) {
|
10141
10193
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10142
|
-
VarButton:
|
10194
|
+
VarButton: T.value
|
10143
10195
|
});
|
10144
10196
|
return;
|
10145
10197
|
}
|
10146
10198
|
try {
|
10147
10199
|
a.store.setIsDeletingRequesting(a.formID, !0);
|
10148
|
-
|
10149
|
-
ids: (
|
10150
|
-
var
|
10151
|
-
return (
|
10152
|
-
})) != null ?
|
10153
|
-
};
|
10200
|
+
let ee = ref({
|
10201
|
+
ids: (re = (Q = o.selectedRows.value) == null ? void 0 : Q.map((_e) => {
|
10202
|
+
var ve, ye, Se;
|
10203
|
+
return (Se = _e[(ye = (ve = T.value) == null ? void 0 : ve.del_param_clm) != null ? ye : "id"]) != null ? Se : "";
|
10204
|
+
})) != null ? re : []
|
10205
|
+
}), fe = ref({});
|
10154
10206
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10155
10207
|
isCreating: u.value,
|
10156
10208
|
isUpdating: c.value,
|
10157
10209
|
isCopying: g.value,
|
10158
10210
|
isDeleting: p.value,
|
10159
10211
|
row: o.selectedRow.value,
|
10212
|
+
rows: o.selectedRows.value,
|
10213
|
+
model: s.model,
|
10160
10214
|
params: ee,
|
10161
|
-
data:
|
10215
|
+
data: fe
|
10162
10216
|
}))
|
10163
10217
|
return;
|
10164
10218
|
await httpClient().request({
|
10165
|
-
method: (
|
10219
|
+
method: (le = (se = T.value) == null ? void 0 : se.cmd_method) != null ? le : "DELETE",
|
10166
10220
|
url: B,
|
10167
|
-
params: ee
|
10221
|
+
params: ee.value,
|
10222
|
+
data: fe.value
|
10168
10223
|
}, {
|
10169
10224
|
joinParamsToUrl: !0
|
10170
|
-
}), ((
|
10225
|
+
}), ((ue = T.value) == null ? void 0 : ue.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (de = (ce = i.search).value) == null || de.call(ce, !0);
|
10171
10226
|
} catch (ee) {
|
10172
10227
|
console.error(ee);
|
10173
10228
|
} finally {
|
@@ -10175,42 +10230,42 @@ const getProps$p = () => ({
|
|
10175
10230
|
}
|
10176
10231
|
}
|
10177
10232
|
function be(B) {
|
10178
|
-
var Q,
|
10179
|
-
const W = (
|
10233
|
+
var Q, re;
|
10234
|
+
const W = (re = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
|
10180
10235
|
return isFunction$2(W) ? createVNode(KgForm.Item, {
|
10181
10236
|
kgVarName: B.var_nam,
|
10182
10237
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10183
|
-
kgRules:
|
10184
|
-
onKgSubmit:
|
10238
|
+
kgRules: q.value[B.var_nam],
|
10239
|
+
onKgSubmit: he
|
10185
10240
|
}, {
|
10186
10241
|
control: ({
|
10187
|
-
varName:
|
10188
|
-
props:
|
10189
|
-
model:
|
10190
|
-
varConfig:
|
10191
|
-
varProfileDetail:
|
10242
|
+
varName: se,
|
10243
|
+
props: le,
|
10244
|
+
model: ue,
|
10245
|
+
varConfig: ce,
|
10246
|
+
varProfileDetail: de,
|
10192
10247
|
varSubmitField: ee
|
10193
10248
|
}) => W({
|
10194
|
-
varName:
|
10195
|
-
props:
|
10196
|
-
model:
|
10197
|
-
varConfig:
|
10198
|
-
varProfileDetail:
|
10249
|
+
varName: se,
|
10250
|
+
props: le,
|
10251
|
+
model: ue,
|
10252
|
+
varConfig: ce,
|
10253
|
+
varProfileDetail: de,
|
10199
10254
|
varSubmitField: ee
|
10200
10255
|
})
|
10201
10256
|
}) : createVNode(KgForm.Item, {
|
10202
10257
|
kgVarName: B.var_nam,
|
10203
10258
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10204
|
-
kgRules:
|
10205
|
-
onKgSubmit:
|
10259
|
+
kgRules: q.value[B.var_nam],
|
10260
|
+
onKgSubmit: he
|
10206
10261
|
}, null);
|
10207
10262
|
}
|
10208
|
-
function
|
10263
|
+
function Ie() {
|
10209
10264
|
let B, W;
|
10210
10265
|
return createVNode(KgResizable, {
|
10211
|
-
kgType:
|
10212
|
-
kgMinWidth:
|
10213
|
-
kgMaxWidth:
|
10266
|
+
kgType: ge.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10267
|
+
kgMinWidth: H.value,
|
10268
|
+
kgMaxWidth: U.value,
|
10214
10269
|
kgWidth: x.value,
|
10215
10270
|
kgDisabled: F.value,
|
10216
10271
|
"onUpdate:kgWidth": (Q) => N.value.kgWidth = Q
|
@@ -10219,11 +10274,11 @@ const getProps$p = () => ({
|
|
10219
10274
|
spinning: y.value
|
10220
10275
|
}, {
|
10221
10276
|
default: () => [createVNode(KgForm, {
|
10222
|
-
ref:
|
10277
|
+
ref: G,
|
10223
10278
|
model: s.model.value,
|
10224
|
-
layout:
|
10225
|
-
labelCol:
|
10226
|
-
wrapperCol:
|
10279
|
+
layout: P.value,
|
10280
|
+
labelCol: z.value,
|
10281
|
+
wrapperCol: Y.value
|
10227
10282
|
}, {
|
10228
10283
|
default: () => [createVNode("div", {
|
10229
10284
|
ref: X
|
@@ -10242,56 +10297,56 @@ const getProps$p = () => ({
|
|
10242
10297
|
})]
|
10243
10298
|
});
|
10244
10299
|
}
|
10245
|
-
function
|
10300
|
+
function Ae() {
|
10246
10301
|
let B, W;
|
10247
10302
|
return createVNode("div", null, [createVNode(Button, {
|
10248
10303
|
type: "primary",
|
10249
|
-
ghost: !
|
10250
|
-
disabled:
|
10251
|
-
onClick:
|
10304
|
+
ghost: !I.value,
|
10305
|
+
disabled: I.value,
|
10306
|
+
onClick: pe
|
10252
10307
|
}, _isSlot$7(B = n.t("kg.cancel")) ? B : {
|
10253
10308
|
default: () => [B]
|
10254
10309
|
}), createVNode(Button, {
|
10255
10310
|
type: "primary",
|
10256
|
-
disabled:
|
10257
|
-
loading:
|
10311
|
+
disabled: M.value,
|
10312
|
+
loading: w.value,
|
10258
10313
|
danger: !!p.value,
|
10259
|
-
onClick:
|
10314
|
+
onClick: he
|
10260
10315
|
}, _isSlot$7(W = n.t(p.value ? "kg.delete" : "kg.save")) ? W : {
|
10261
10316
|
default: () => [W]
|
10262
10317
|
})]);
|
10263
10318
|
}
|
10264
|
-
function
|
10319
|
+
function Me() {
|
10265
10320
|
return createVNode("div", {
|
10266
10321
|
title: Z.title.value
|
10267
10322
|
}, [Z.title.value]);
|
10268
10323
|
}
|
10269
|
-
function
|
10324
|
+
function Oe() {
|
10270
10325
|
return createVNode(KgSubmitHeader, {
|
10271
|
-
isFullscreen:
|
10272
|
-
"onUpdate:isFullscreen": (B) =>
|
10326
|
+
isFullscreen: ie.isFullscreen,
|
10327
|
+
"onUpdate:isFullscreen": (B) => ie.isFullscreen = B,
|
10273
10328
|
kgShowFullscreenButton: !v.value,
|
10274
10329
|
kgShowConfigButton: !v.value && e.kgShowConfigButton,
|
10275
|
-
onKgCancel:
|
10330
|
+
onKgCancel: pe
|
10276
10331
|
}, null);
|
10277
10332
|
}
|
10278
10333
|
return onUnmounted(() => {
|
10279
10334
|
s.store.dispose(a.formID);
|
10280
10335
|
}), () => createVNode(Drawer, {
|
10281
|
-
visible:
|
10336
|
+
visible: oe.value,
|
10282
10337
|
placement: "right",
|
10283
10338
|
closable: !1,
|
10284
10339
|
maskClosable: !1,
|
10285
10340
|
keyboard: !1,
|
10286
10341
|
destroyOnClose: !0,
|
10287
|
-
width:
|
10288
|
-
class:
|
10342
|
+
width: ne.value,
|
10343
|
+
class: te.value,
|
10289
10344
|
"kg-frm-id": a.formID
|
10290
10345
|
}, {
|
10291
|
-
title:
|
10292
|
-
extra:
|
10293
|
-
default:
|
10294
|
-
footer:
|
10346
|
+
title: Me,
|
10347
|
+
extra: Oe,
|
10348
|
+
default: Ie,
|
10349
|
+
footer: Ae
|
10295
10350
|
});
|
10296
10351
|
}
|
10297
10352
|
}), KgVar$1 = "", getProps$o = () => ({
|
@@ -10306,16 +10361,16 @@ const getProps$p = () => ({
|
|
10306
10361
|
}) {
|
10307
10362
|
provide(DI_KG_SLOTS, e.kgSlots);
|
10308
10363
|
const r = useKgVar(), n = computed(() => r.store.isCreating(r.formID)), a = computed(() => r.store.isUpdating(r.formID)), o = computed(() => r.store.isCopying(r.formID)), s = computed(() => r.store.isDeleting(r.formID)), i = computed(() => r.store.getVarSubmitConfig(r.formID)), l = computed(() => r.store.getVarProfileConfig(r.formID)), u = computed(() => r.store.getVarButtonConfig(r.formID)), c = computed(() => {
|
10309
|
-
var _,
|
10364
|
+
var _, T, y, C;
|
10310
10365
|
switch (!0) {
|
10311
10366
|
case n.value:
|
10312
10367
|
return ((_ = i.value) == null ? void 0 : _.crt_flg) !== 0;
|
10313
10368
|
case a.value:
|
10314
|
-
return ((
|
10369
|
+
return ((T = i.value) == null ? void 0 : T.upt_flg) !== 0;
|
10315
10370
|
case o.value:
|
10316
10371
|
return ((y = i.value) == null ? void 0 : y.cpy_flg) !== 0;
|
10317
10372
|
case s.value:
|
10318
|
-
return ((
|
10373
|
+
return ((C = i.value) == null ? void 0 : C.del_flg) !== 0;
|
10319
10374
|
}
|
10320
10375
|
return !1;
|
10321
10376
|
}), g = computed(() => {
|
@@ -10333,9 +10388,9 @@ const getProps$p = () => ({
|
|
10333
10388
|
spinning: v.value
|
10334
10389
|
}, {
|
10335
10390
|
default: () => {
|
10336
|
-
var _,
|
10391
|
+
var _, T;
|
10337
10392
|
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (_ = t.beforeButton) == null ? void 0 : _.call(t), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), c.value && createVNode(KgSubmit, {
|
10338
|
-
kgClass: (
|
10393
|
+
kgClass: (T = e.kgSubmitClass) != null ? T : ""
|
10339
10394
|
}, null)])];
|
10340
10395
|
}
|
10341
10396
|
});
|
@@ -10403,16 +10458,16 @@ const getProps$p = () => ({
|
|
10403
10458
|
}
|
10404
10459
|
}
|
10405
10460
|
function u() {
|
10406
|
-
var g, p, v, b, m, _,
|
10461
|
+
var g, p, v, b, m, _, T, y;
|
10407
10462
|
switch ((g = o.value) == null ? void 0 : g.display_type) {
|
10408
10463
|
case KG_TABLE_CELL_DISPLAY_TYPE.YN: {
|
10409
|
-
const
|
10464
|
+
const C = KgUtil.tryParseJSON((p = o.value) == null ? void 0 : p.display_type_properties);
|
10410
10465
|
return createVNode(KgYesOrNo, {
|
10411
|
-
kgValue: e.kgValue === ((v =
|
10466
|
+
kgValue: e.kgValue === ((v = C.yValue) != null ? v : 1)
|
10412
10467
|
}, null);
|
10413
10468
|
}
|
10414
10469
|
case KG_TABLE_CELL_DISPLAY_TYPE.ENUM: {
|
10415
|
-
const
|
10470
|
+
const C = KgUtil.tryParseJSON((b = o.value) == null ? void 0 : b.display_type_properties), E = isArrayLike(C) && C.find((A) => A.value === e.kgValue);
|
10416
10471
|
return E ? createVNode(Tag, {
|
10417
10472
|
color: (m = E.color) != null ? m : "default"
|
10418
10473
|
}, {
|
@@ -10420,11 +10475,11 @@ const getProps$p = () => ({
|
|
10420
10475
|
}) : c();
|
10421
10476
|
}
|
10422
10477
|
case KG_TABLE_CELL_DISPLAY_TYPE.PROGRESS: {
|
10423
|
-
const
|
10478
|
+
const C = KgUtil.tryParseJSON((_ = o.value) == null ? void 0 : _.display_type_properties);
|
10424
10479
|
return createVNode(KgProgressA, {
|
10425
|
-
kgTextWidth:
|
10426
|
-
kgLeft: (
|
10427
|
-
kgRight: (y = e.kgRow) == null ? void 0 : y[
|
10480
|
+
kgTextWidth: C.textWidth,
|
10481
|
+
kgLeft: (T = e.kgRow) == null ? void 0 : T[C.leftColumn],
|
10482
|
+
kgRight: (y = e.kgRow) == null ? void 0 : y[C.rightColumn]
|
10428
10483
|
}, null);
|
10429
10484
|
}
|
10430
10485
|
case KG_TABLE_CELL_DISPLAY_TYPE.FILE_SIZE:
|
@@ -10535,8 +10590,8 @@ const getProps$l = () => ({
|
|
10535
10590
|
}) => {
|
10536
10591
|
const u = n == null ? void 0 : n.store.getVarGridConfig(n.formID);
|
10537
10592
|
return s = watch(l, (c) => {
|
10538
|
-
var g, p, v, b, m, _,
|
10539
|
-
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 = (v = u == null ? void 0 : u.mult_flg) != null ? v : 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 = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (
|
10593
|
+
var g, p, v, b, m, _, T, y, C, E, A;
|
10594
|
+
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 = (v = u == null ? void 0 : u.mult_flg) != null ? v : 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 = (_ = u == null ? void 0 : u.show_bottom_right_flg) != null ? _ : 1, c.convert_sort_field_to_under_score_flg = (T = u == null ? void 0 : u.convert_sort_field_to_under_score_flg) != null ? T : 0, c.pg_size_opts = (y = u == null ? void 0 : u.pg_size_opts) != null ? y : "[10, 20, 50, 100]", c.pg_size_opt = (C = u == null ? void 0 : u.pg_size_opt) != null ? C : 10, c.cmd_prm = (E = u == null ? void 0 : u.cmd_prm) != null ? E : void 0, c.button_display_type = (A = u == null ? void 0 : u.button_display_type) != null ? A : KG_BUTTON_DISPLAY_TYPE.DEFAULT);
|
10540
10595
|
}, {
|
10541
10596
|
immediate: !0
|
10542
10597
|
}), !1;
|
@@ -10792,24 +10847,24 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10792
10847
|
class: "columns"
|
10793
10848
|
}, [createVNode(Input, {
|
10794
10849
|
value: i.value,
|
10795
|
-
"onUpdate:value": (
|
10850
|
+
"onUpdate:value": (C) => i.value = C,
|
10796
10851
|
allowClear: !0
|
10797
10852
|
}, null), createVNode("ul", {
|
10798
10853
|
class: "ant-dropdown-menu ant-dropdown-menu-vertical"
|
10799
|
-
}, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((
|
10854
|
+
}, [(y = a.currentVarGridDetails.value) == null ? void 0 : y.map((C) => createVNode("li", {
|
10800
10855
|
class: "ant-dropdown-menu-item ant-dropdown-menu-item-only-child",
|
10801
10856
|
onClick: (E) => {
|
10802
|
-
E.preventDefault(), E.stopPropagation(), p(
|
10857
|
+
E.preventDefault(), E.stopPropagation(), p(C);
|
10803
10858
|
},
|
10804
10859
|
style: {
|
10805
|
-
display: s(
|
10860
|
+
display: s(C, i.value) ? "flex" : "none"
|
10806
10861
|
},
|
10807
|
-
"kg-var-nam":
|
10862
|
+
"kg-var-nam": C.var_nam
|
10808
10863
|
}, [createVNode(Checkbox, {
|
10809
|
-
checked:
|
10864
|
+
checked: C.vis_flg === 1,
|
10810
10865
|
disabled: !0
|
10811
10866
|
}, {
|
10812
|
-
default: () => [createVNode("pre", null, [a.t(
|
10867
|
+
default: () => [createVNode("pre", null, [a.t(C.var_nam).value])]
|
10813
10868
|
}), createVNode(HolderOutlined$1, {
|
10814
10869
|
onClick: (E) => {
|
10815
10870
|
E.preventDefault(), E.stopPropagation();
|
@@ -10827,16 +10882,16 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10827
10882
|
}, {
|
10828
10883
|
default: () => {
|
10829
10884
|
var E;
|
10830
|
-
let y,
|
10831
|
-
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((
|
10885
|
+
let y, C;
|
10886
|
+
return createVNode(Fragment, null, [(E = a.varGridMasters.value) == null ? void 0 : E.map((A) => {
|
10832
10887
|
var k;
|
10833
10888
|
return createVNode(Menu.Item, {
|
10834
|
-
key:
|
10835
|
-
class:
|
10836
|
-
"kg-var-nam":
|
10837
|
-
onClick: () => a.store.setCurrentVarGridMasterID(a.formID,
|
10889
|
+
key: A.id,
|
10890
|
+
class: A.id === ((k = a.currentVarGridMaster.value) == null ? void 0 : k.id) ? "selected" : "",
|
10891
|
+
"kg-var-nam": A.grd_var_nam,
|
10892
|
+
onClick: () => a.store.setCurrentVarGridMasterID(a.formID, A.id)
|
10838
10893
|
}, {
|
10839
|
-
default: () => [a.t(
|
10894
|
+
default: () => [a.t(A.grd_var_nam).value]
|
10840
10895
|
});
|
10841
10896
|
}), createVNode(Menu.Divider, null, null), createVNode(Menu.Item, {
|
10842
10897
|
key: "save-grid-view",
|
@@ -10846,14 +10901,14 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10846
10901
|
}), createVNode(Menu.Item, {
|
10847
10902
|
key: "save-grid-view-as",
|
10848
10903
|
onClick: b
|
10849
|
-
}, _isSlot$5(
|
10850
|
-
default: () => [
|
10904
|
+
}, _isSlot$5(C = n.t("kg.KgTable.saveVarGridMasterAs")) ? C : {
|
10905
|
+
default: () => [C]
|
10851
10906
|
})]);
|
10852
10907
|
},
|
10853
10908
|
expandIcon: () => createVNode(CaretRightOutlined$1, null, null)
|
10854
10909
|
});
|
10855
10910
|
}
|
10856
|
-
function
|
10911
|
+
function T() {
|
10857
10912
|
let y;
|
10858
10913
|
return createVNode(Menu.Item, {
|
10859
10914
|
key: "config-var-grid-master",
|
@@ -10876,7 +10931,7 @@ const getProps$g = () => ({}), KgTableSetting = defineComponent({
|
|
10876
10931
|
"onUpdate:openKeys": (y) => l.value = y,
|
10877
10932
|
selectable: !1
|
10878
10933
|
}, {
|
10879
|
-
default: () => [m(), _(),
|
10934
|
+
default: () => [m(), _(), T()]
|
10880
10935
|
})
|
10881
10936
|
}), c.visible && createVNode(KgTableSettingConfigModal, {
|
10882
10937
|
visible: c.visible,
|
@@ -11052,22 +11107,22 @@ function _useColumns() {
|
|
11052
11107
|
if (p.fix_right_flg === 1)
|
11053
11108
|
return "right";
|
11054
11109
|
}
|
11055
|
-
function
|
11110
|
+
function T() {
|
11056
11111
|
return p.ord_flg === 1;
|
11057
11112
|
}
|
11058
11113
|
function y() {
|
11059
11114
|
return ["left", "center", "right"].includes(p.align || "") ? p.align : "left";
|
11060
11115
|
}
|
11061
|
-
const
|
11116
|
+
const C = v();
|
11062
11117
|
return {
|
11063
11118
|
dataIndex: p.var_nam,
|
11064
11119
|
title: b(),
|
11065
|
-
width:
|
11066
|
-
resizable: typeof
|
11120
|
+
width: C,
|
11121
|
+
resizable: typeof C == "number",
|
11067
11122
|
minWidth: KG_TABLE_TD_MIN_WIDTH,
|
11068
11123
|
maxWidth: KG_TABLE_TD_MAX_WIDTH,
|
11069
11124
|
fixed: _(),
|
11070
|
-
sorter:
|
11125
|
+
sorter: T(),
|
11071
11126
|
align: y(),
|
11072
11127
|
defaultSortOrder: m(),
|
11073
11128
|
customHeaderCell: () => ({
|
@@ -11133,13 +11188,13 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11133
11188
|
switch (P) {
|
11134
11189
|
case "setSelecte":
|
11135
11190
|
if (K[0] === s.formID) {
|
11136
|
-
const z = K[1],
|
11191
|
+
const z = K[1], Y = K[2];
|
11137
11192
|
switch (!0) {
|
11138
|
-
case (
|
11139
|
-
|
11193
|
+
case (Y && !I.value.includes(z[A.value])):
|
11194
|
+
x([...I.value, z[A.value]]);
|
11140
11195
|
break;
|
11141
|
-
case (!
|
11142
|
-
|
11196
|
+
case (!Y && I.value.includes(z[A.value])):
|
11197
|
+
x(without$1(I.value, z[A.value]));
|
11143
11198
|
break;
|
11144
11199
|
}
|
11145
11200
|
}
|
@@ -11153,19 +11208,19 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11153
11208
|
isLoading: b
|
11154
11209
|
} = _useLoading(), m = ref(null);
|
11155
11210
|
_useResizeObserver(m);
|
11156
|
-
const _ = computed(() => s.store.getVarButtonSearch(s.formID)),
|
11211
|
+
const _ = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
|
11157
11212
|
var P;
|
11158
11213
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.mult_flg) === 1;
|
11159
11214
|
}), y = computed(() => {
|
11160
11215
|
var P;
|
11161
11216
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.aut_load_flg) === 1;
|
11162
|
-
}),
|
11217
|
+
}), C = computed(() => {
|
11163
11218
|
var P;
|
11164
11219
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_left_flg) !== 0;
|
11165
11220
|
}), E = computed(() => {
|
11166
11221
|
var P;
|
11167
11222
|
return ((P = s.varGridConfig.value) == null ? void 0 : P.show_bottom_right_flg) !== 0;
|
11168
|
-
}),
|
11223
|
+
}), A = computed(() => {
|
11169
11224
|
var P, K;
|
11170
11225
|
return (K = (P = s.varGridConfig.value) == null ? void 0 : P.id_clm) != null ? K : "id";
|
11171
11226
|
}), k = computed(() => {
|
@@ -11175,68 +11230,71 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11175
11230
|
var P;
|
11176
11231
|
return (P = s.varGridConfig.value) == null ? void 0 : P.pg_size_opt;
|
11177
11232
|
}), L = computed(() => {
|
11233
|
+
var P;
|
11234
|
+
return ((P = s.varGridConfig.value) == null ? void 0 : P.prf_frm_id) || s.formID;
|
11235
|
+
}), O = computed(() => {
|
11178
11236
|
var P, K;
|
11179
11237
|
return (K = (P = _.value) == null ? void 0 : P.cmd) != null ? K : null;
|
11180
|
-
}),
|
11181
|
-
var K, z,
|
11238
|
+
}), D = computed(() => {
|
11239
|
+
var K, z, Y, ae, J, pe, he;
|
11182
11240
|
let P = {
|
11183
11241
|
pageNo: M.pageIndex,
|
11184
11242
|
pageSize: M.pageSize,
|
11185
|
-
...
|
11243
|
+
...N,
|
11186
11244
|
...(z = (K = i.model) == null ? void 0 : K.value) != null ? z : {}
|
11187
11245
|
};
|
11188
11246
|
return _.value && (P = {
|
11189
11247
|
...P,
|
11190
|
-
...KgVarUtil.parseCommandParameter((
|
11248
|
+
...KgVarUtil.parseCommandParameter((ae = (Y = _.value) == null ? void 0 : Y.cmd_prm) != null ? ae : "")
|
11191
11249
|
}), (J = s.varGridConfig.value) != null && J.cmd_prm && (P = {
|
11192
11250
|
...P,
|
11193
11251
|
...KgVarUtil.parseCommandParameter((pe = s.varGridConfig.value.cmd_prm) != null ? pe : "")
|
11194
11252
|
}), ((he = s.varGridConfig.value) == null ? void 0 : he.convert_sort_field_to_under_score_flg) === 1 && P.column && (P.column = snakeCase$1(P.column)), P;
|
11195
|
-
}),
|
11253
|
+
}), $ = computed(() => {
|
11196
11254
|
var P;
|
11197
11255
|
if (((P = s.varGridConfig.value) == null ? void 0 : P.show_check_column_flg) === 1)
|
11198
11256
|
return {
|
11199
11257
|
fixed: "left",
|
11200
11258
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
11201
|
-
hideSelectAll: !
|
11202
|
-
selectedRowKeys:
|
11259
|
+
hideSelectAll: !T.value,
|
11260
|
+
selectedRowKeys: I,
|
11203
11261
|
preserveSelectedRowKeys: !1,
|
11204
|
-
onSelect: (K) =>
|
11205
|
-
onChange: (K) =>
|
11262
|
+
onSelect: (K) => G(K),
|
11263
|
+
onChange: (K) => T.value && x(K)
|
11206
11264
|
};
|
11207
|
-
}),
|
11265
|
+
}), V = computed(() => {
|
11208
11266
|
let P = "kg-table";
|
11209
|
-
return !
|
11210
|
-
}),
|
11267
|
+
return !C.value && !E.value && (P += " kg-table--no-bottom"), P;
|
11268
|
+
}), w = ref([]), I = ref([]), M = reactive({
|
11211
11269
|
pageIndex: 1,
|
11212
11270
|
pageSize: 10,
|
11213
11271
|
total: 0
|
11214
|
-
}),
|
11272
|
+
}), N = reactive({
|
11215
11273
|
column: void 0,
|
11216
11274
|
order: void 0
|
11217
|
-
}),
|
11218
|
-
P && (setTimeout(() =>
|
11275
|
+
}), F = watch(R, (P) => {
|
11276
|
+
P && (setTimeout(() => F()), M.pageSize = P), c.value = !0;
|
11219
11277
|
});
|
11220
11278
|
watch(k, (P) => {
|
11221
11279
|
P.length > 0 && !P.includes(M.pageSize) && (M.pageSize = R.value);
|
11222
|
-
}), watch([
|
11280
|
+
}), watch([O, y, i.isReady], ([P, K, z]) => {
|
11223
11281
|
P && K && z && !u.store.getIsRetrieved(s.formID) && U(!0);
|
11224
11282
|
}, {
|
11225
11283
|
immediate: !0
|
11226
11284
|
}), onUnmounted(() => {
|
11227
11285
|
u.store.dispose(s.formID);
|
11228
11286
|
});
|
11229
|
-
function
|
11230
|
-
if (
|
11287
|
+
function H(P, K) {
|
11288
|
+
if (!!$.value) {
|
11231
11289
|
if (!K) {
|
11232
|
-
|
11290
|
+
I.value = [], u.store.setSelectedRows(s.formID, []);
|
11233
11291
|
return;
|
11234
11292
|
}
|
11235
11293
|
switch (P == null ? void 0 : P.detail) {
|
11236
11294
|
case 1:
|
11237
|
-
|
11238
|
-
var
|
11239
|
-
return (
|
11295
|
+
I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((z) => {
|
11296
|
+
var Y;
|
11297
|
+
return (Y = w.value) == null ? void 0 : Y.find((ae) => ae[A.value] === z);
|
11240
11298
|
}).filter((z) => !!z));
|
11241
11299
|
break;
|
11242
11300
|
case 2:
|
@@ -11246,14 +11304,14 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11246
11304
|
}
|
11247
11305
|
}
|
11248
11306
|
function U(P = !1) {
|
11249
|
-
const K = watch(c, (
|
11250
|
-
|
11307
|
+
const K = watch(c, (Y) => {
|
11308
|
+
Y && (setTimeout(() => K()), z());
|
11251
11309
|
}, {
|
11252
11310
|
immediate: !0
|
11253
11311
|
});
|
11254
11312
|
async function z() {
|
11255
|
-
var
|
11256
|
-
if (!
|
11313
|
+
var Y, ae;
|
11314
|
+
if (!O.value) {
|
11257
11315
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
11258
11316
|
VarButton: _.value
|
11259
11317
|
});
|
@@ -11263,26 +11321,26 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11263
11321
|
try {
|
11264
11322
|
const J = await httpClient().request({
|
11265
11323
|
method: "GET",
|
11266
|
-
url:
|
11267
|
-
params: KgUtil.parseParams(
|
11324
|
+
url: O.value,
|
11325
|
+
params: KgUtil.parseParams(D.value, L.value, n)
|
11268
11326
|
}, {
|
11269
11327
|
successMessageMode: "none"
|
11270
11328
|
});
|
11271
11329
|
switch (!0) {
|
11272
11330
|
case !J:
|
11273
|
-
|
11331
|
+
w.value = [], M.total = 0;
|
11274
11332
|
break;
|
11275
11333
|
case isArrayLike(J):
|
11276
|
-
|
11334
|
+
w.value = J, M.total = J.length;
|
11277
11335
|
break;
|
11278
11336
|
case ("total" in J && "records" in J):
|
11279
|
-
|
11337
|
+
w.value = (Y = J.records) != null ? Y : [], M.total = (ae = J.total) != null ? ae : 0;
|
11280
11338
|
break;
|
11281
11339
|
}
|
11282
11340
|
u.store.emit(s.formID, "retrieve", {
|
11283
11341
|
page: J,
|
11284
|
-
datas:
|
11285
|
-
}),
|
11342
|
+
datas: w
|
11343
|
+
}), H(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
11286
11344
|
} catch (J) {
|
11287
11345
|
throw J;
|
11288
11346
|
} finally {
|
@@ -11290,52 +11348,52 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11290
11348
|
}
|
11291
11349
|
}
|
11292
11350
|
}
|
11293
|
-
function
|
11294
|
-
|
11351
|
+
function x(P) {
|
11352
|
+
I.value = P, u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11295
11353
|
var z;
|
11296
|
-
return (z =
|
11354
|
+
return (z = w.value) == null ? void 0 : z.find((Y) => Y[A.value] === K);
|
11297
11355
|
}).filter((K) => !!K));
|
11298
11356
|
}
|
11299
|
-
function
|
11357
|
+
function G(P) {
|
11300
11358
|
var K, z;
|
11301
|
-
switch (
|
11359
|
+
switch (T.value) {
|
11302
11360
|
case !0:
|
11303
11361
|
{
|
11304
|
-
const
|
11305
|
-
|
11362
|
+
const Y = P[A.value];
|
11363
|
+
I.value.includes(Y) ? I.value = without$1(I.value, Y) : I.value = [...(K = I.value) != null ? K : [], Y];
|
11306
11364
|
}
|
11307
11365
|
break;
|
11308
11366
|
case !1:
|
11309
11367
|
{
|
11310
|
-
const
|
11311
|
-
(z =
|
11368
|
+
const Y = P[A.value];
|
11369
|
+
(z = I.value) != null && z.includes(Y) ? I.value = [] : I.value = [Y];
|
11312
11370
|
}
|
11313
11371
|
break;
|
11314
11372
|
}
|
11315
|
-
u.store.setSelectedRows(s.formID,
|
11316
|
-
var
|
11317
|
-
return (
|
11318
|
-
}).filter((
|
11373
|
+
u.store.setSelectedRows(s.formID, I.value.map((Y) => {
|
11374
|
+
var ae;
|
11375
|
+
return (ae = w.value) == null ? void 0 : ae.find((J) => J[A.value] === Y);
|
11376
|
+
}).filter((Y) => !!Y));
|
11319
11377
|
}
|
11320
|
-
function
|
11378
|
+
function q(P, K) {
|
11321
11379
|
K.width = P, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, P);
|
11322
11380
|
}
|
11323
|
-
async function
|
11324
|
-
var
|
11325
|
-
switch (
|
11381
|
+
async function X(P, K, z, Y) {
|
11382
|
+
var ae;
|
11383
|
+
switch (Y.action) {
|
11326
11384
|
case "sort":
|
11327
11385
|
{
|
11328
11386
|
await nextTick();
|
11329
11387
|
let J = z;
|
11330
|
-
J.order ? (
|
11388
|
+
J.order ? (N.column = (ae = J.field) != null ? ae : void 0, N.order = J.order === "ascend" ? "asc" : J.order === "descend" ? "desc" : void 0) : (N.column = void 0, N.order = void 0), U(!0);
|
11331
11389
|
}
|
11332
11390
|
break;
|
11333
11391
|
}
|
11334
11392
|
}
|
11335
|
-
function
|
11336
|
-
var
|
11337
|
-
const z = K[
|
11338
|
-
switch ((
|
11393
|
+
function Z(P, K) {
|
11394
|
+
var Y;
|
11395
|
+
const z = K[A.value];
|
11396
|
+
switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
|
11339
11397
|
case 0:
|
11340
11398
|
P ? g.value = uniq([...g.value, z]) : g.value = without$1(g.value, z);
|
11341
11399
|
break;
|
@@ -11344,16 +11402,16 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11344
11402
|
break;
|
11345
11403
|
}
|
11346
11404
|
}
|
11347
|
-
function
|
11405
|
+
function ne(P, K) {
|
11348
11406
|
K !== M.pageSize ? (M.pageIndex = 1, M.pageSize = K) : M.pageIndex = P, U();
|
11349
11407
|
}
|
11350
|
-
function
|
11351
|
-
|
11408
|
+
function oe(P) {
|
11409
|
+
I.value = [P[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11352
11410
|
var z;
|
11353
|
-
return (z =
|
11411
|
+
return (z = w.value) == null ? void 0 : z.find((Y) => Y[A.value] === K);
|
11354
11412
|
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11355
11413
|
}
|
11356
|
-
function
|
11414
|
+
function ie({
|
11357
11415
|
title: P,
|
11358
11416
|
column: K
|
11359
11417
|
}) {
|
@@ -11364,43 +11422,43 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11364
11422
|
return createVNode("pre", null, [P]);
|
11365
11423
|
}
|
11366
11424
|
}
|
11367
|
-
function
|
11425
|
+
function ge({
|
11368
11426
|
column: P,
|
11369
11427
|
index: K,
|
11370
11428
|
record: z,
|
11371
|
-
value:
|
11372
|
-
text:
|
11429
|
+
value: Y,
|
11430
|
+
text: ae
|
11373
11431
|
}) {
|
11374
11432
|
let J = "";
|
11375
11433
|
P.customRender ? J = P.customRender({
|
11376
11434
|
index: K,
|
11377
11435
|
record: z,
|
11378
11436
|
column: P,
|
11379
|
-
text:
|
11380
|
-
value:
|
11437
|
+
text: ae,
|
11438
|
+
value: Y,
|
11381
11439
|
renderIndex: K
|
11382
|
-
}) : J =
|
11440
|
+
}) : J = Y;
|
11383
11441
|
const pe = createVNode(KgTableCell, {
|
11384
11442
|
kgRow: z,
|
11385
11443
|
kgValue: J,
|
11386
11444
|
kgVarName: P.dataIndex,
|
11387
|
-
onKgUpdateLinkClick: () =>
|
11445
|
+
onKgUpdateLinkClick: () => oe(z)
|
11388
11446
|
}, null);
|
11389
11447
|
return t.bodyCell ? t.bodyCell({
|
11390
|
-
value:
|
11448
|
+
value: Y,
|
11391
11449
|
record: z,
|
11392
11450
|
index: K,
|
11393
11451
|
column: P,
|
11394
11452
|
defaultRender: pe
|
11395
11453
|
}) : pe;
|
11396
11454
|
}
|
11397
|
-
function
|
11455
|
+
function te() {
|
11398
11456
|
return !y.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
11399
11457
|
}
|
11400
11458
|
return () => {
|
11401
11459
|
var P;
|
11402
11460
|
return createVNode("div", {
|
11403
|
-
class:
|
11461
|
+
class: V.value,
|
11404
11462
|
"kg-frm-id": s.formID,
|
11405
11463
|
ref: m
|
11406
11464
|
}, [createVNode(Table, {
|
@@ -11413,32 +11471,32 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11413
11471
|
pagination: !1,
|
11414
11472
|
showSorterTooltip: !1,
|
11415
11473
|
columns: p.value,
|
11416
|
-
dataSource:
|
11474
|
+
dataSource: w.value,
|
11417
11475
|
loading: b.value,
|
11418
|
-
rowKey:
|
11419
|
-
rowSelection:
|
11476
|
+
rowKey: A.value,
|
11477
|
+
rowSelection: $.value,
|
11420
11478
|
expandColumnWidth: 28,
|
11421
11479
|
expandedRowKeys: g.value,
|
11422
11480
|
customRow: (K) => ({
|
11423
|
-
onClick: (z) =>
|
11481
|
+
onClick: (z) => H(z, K)
|
11424
11482
|
}),
|
11425
|
-
onResizeColumn:
|
11426
|
-
onChange:
|
11427
|
-
onExpand:
|
11483
|
+
onResizeColumn: q,
|
11484
|
+
onChange: X,
|
11485
|
+
onExpand: Z
|
11428
11486
|
}, {
|
11429
|
-
headerCell:
|
11430
|
-
bodyCell:
|
11431
|
-
emptyText:
|
11487
|
+
headerCell: ie,
|
11488
|
+
bodyCell: ge,
|
11489
|
+
emptyText: te,
|
11432
11490
|
expandedRowRender: (P = a == null ? void 0 : a.KgTable) == null ? void 0 : P.expandedRowRender
|
11433
|
-
}), (
|
11491
|
+
}), (C.value || E.value) && createVNode("div", {
|
11434
11492
|
class: "kg-table-bottom"
|
11435
11493
|
}, [createVNode("div", {
|
11436
11494
|
class: "left"
|
11437
|
-
}, [
|
11438
|
-
kgShowClearCheck:
|
11495
|
+
}, [C.value && createVNode(KgTableInfo, {
|
11496
|
+
kgShowClearCheck: I.value.length > 0,
|
11439
11497
|
kgShowClearTable: M.total > 0,
|
11440
|
-
kgShowLocate:
|
11441
|
-
kgTotal:
|
11498
|
+
kgShowLocate: I.value.length === 1,
|
11499
|
+
kgTotal: I.value.length,
|
11442
11500
|
kgDisabled: b.value
|
11443
11501
|
}, null)]), createVNode("div", {
|
11444
11502
|
class: "right"
|
@@ -11460,7 +11518,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11460
11518
|
to: z[1],
|
11461
11519
|
total: K
|
11462
11520
|
}),
|
11463
|
-
onChange: (K, z) =>
|
11521
|
+
onChange: (K, z) => ne(K, z)
|
11464
11522
|
}, null)])])]);
|
11465
11523
|
};
|
11466
11524
|
}
|
@@ -11573,7 +11631,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11573
11631
|
var p, v;
|
11574
11632
|
return (v = (p = a.value) == null ? void 0 : p.cmd_method) != null ? v : "GET";
|
11575
11633
|
}), i = computed(() => {
|
11576
|
-
var v, b, m, _,
|
11634
|
+
var v, b, m, _, T, y;
|
11577
11635
|
let p = {
|
11578
11636
|
...(v = n.model.value) != null ? v : {}
|
11579
11637
|
};
|
@@ -11582,7 +11640,7 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11582
11640
|
...KgVarUtil.parseCommandParameter((m = (b = a.value) == null ? void 0 : b.cmd_prm) != null ? m : "")
|
11583
11641
|
}), (_ = r.varGridConfig.value) != null && _.cmd_prm && (p = {
|
11584
11642
|
...p,
|
11585
|
-
...KgVarUtil.parseCommandParameter((
|
11643
|
+
...KgVarUtil.parseCommandParameter((T = r.varGridConfig.value.cmd_prm) != null ? T : "")
|
11586
11644
|
}), ((y = r.varGridConfig.value) == null ? void 0 : y.convert_sort_field_to_under_score_flg) === 1 && p.column && (p.column = snakeCase$1(p.column)), p;
|
11587
11645
|
}), l = ref(!1);
|
11588
11646
|
async function u() {
|
@@ -11788,16 +11846,16 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11788
11846
|
}
|
11789
11847
|
let u = null;
|
11790
11848
|
const c = async () => {
|
11791
|
-
var m, _,
|
11849
|
+
var m, _, T, y, C, E, A;
|
11792
11850
|
u == null || u.showLoading(), r.store.setIsOtherRequesting(r.formID, !0);
|
11793
11851
|
const b = a.selectedRows.value;
|
11794
11852
|
try {
|
11795
11853
|
await httpClient().request({
|
11796
11854
|
method: (_ = (m = e.kgButton) == null ? void 0 : m.cmd_method) != null ? _ : "POST",
|
11797
11855
|
url: l,
|
11798
|
-
params: KgVarUtil.parseCommandParameter((y = (
|
11856
|
+
params: KgVarUtil.parseCommandParameter((y = (T = e.kgButton) == null ? void 0 : T.cmd_prm) != null ? y : ""),
|
11799
11857
|
data: b != null ? b : []
|
11800
|
-
}), ((
|
11858
|
+
}), ((C = e.kgButton) == null ? void 0 : C.reload_all_after_done_flg) === 1 && ((A = (E = n.search).value) == null || A.call(E, !0));
|
11801
11859
|
} catch (k) {
|
11802
11860
|
console.error(k);
|
11803
11861
|
} finally {
|
@@ -12583,23 +12641,23 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12583
12641
|
isCreating: b,
|
12584
12642
|
isUpdating: m,
|
12585
12643
|
isCopying: _,
|
12586
|
-
row:
|
12644
|
+
row: T,
|
12587
12645
|
model: y
|
12588
12646
|
}) => {
|
12589
|
-
var E,
|
12590
|
-
const
|
12591
|
-
switch (l.value =
|
12647
|
+
var E, A, k;
|
12648
|
+
const C = i.store.getSystemVarProfileDetails(i.formID);
|
12649
|
+
switch (l.value = C ? cloneDeep(unref(toRaw(C))) : [], !0) {
|
12592
12650
|
case b:
|
12593
12651
|
u.value = [];
|
12594
12652
|
break;
|
12595
12653
|
case m:
|
12596
12654
|
case _:
|
12597
|
-
if (
|
12655
|
+
if (T != null && T.id)
|
12598
12656
|
try {
|
12599
12657
|
s.store.setIsLoading(n.formID, !0);
|
12600
12658
|
const R = await QueryByID({
|
12601
12659
|
params: {
|
12602
|
-
id:
|
12660
|
+
id: T.id
|
12603
12661
|
}
|
12604
12662
|
});
|
12605
12663
|
l.value = l.value.map((O) => {
|
@@ -12611,7 +12669,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12611
12669
|
id: O.id
|
12612
12670
|
} : O;
|
12613
12671
|
});
|
12614
|
-
const L = (
|
12672
|
+
const L = (A = (E = R == null ? void 0 : R.varProfileDetails) == null ? void 0 : E.map((O) => O.var_nam)) != null ? A : [];
|
12615
12673
|
u.value = l.value.filter((O) => L.includes(O.var_nam)).map((O) => O.id);
|
12616
12674
|
} catch (R) {
|
12617
12675
|
throw R;
|
@@ -12631,9 +12689,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12631
12689
|
}), s.onBeforeOk(async ({
|
12632
12690
|
model: b
|
12633
12691
|
}) => {
|
12634
|
-
var _,
|
12692
|
+
var _, T;
|
12635
12693
|
const m = b.value;
|
12636
|
-
return m.frm_id = i.formID, m.varProfileDetails = (
|
12694
|
+
return m.frm_id = i.formID, m.varProfileDetails = (T = (_ = l.value) == null ? void 0 : _.filter((y) => u.value.includes(y.id))) != null ? T : [], !1;
|
12637
12695
|
}), s.onOk(async () => (i.store.retrieve(i.formID), !1)), o.onBeforeUpdate(({
|
12638
12696
|
row: b
|
12639
12697
|
}) => (b == null ? void 0 : b.cust_lvl) === KG_CUSTOM_LEVEL.L0 ? new Promise((m) => {
|
@@ -12657,9 +12715,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12657
12715
|
varName: b,
|
12658
12716
|
props: m,
|
12659
12717
|
model: _,
|
12660
|
-
varConfig:
|
12718
|
+
varConfig: T,
|
12661
12719
|
varProfileDetail: y,
|
12662
|
-
varSubmitField:
|
12720
|
+
varSubmitField: C
|
12663
12721
|
}) => createVNode(Transfer, {
|
12664
12722
|
dataSource: l.value,
|
12665
12723
|
targetKeys: u.value,
|
@@ -12668,14 +12726,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12668
12726
|
showSearch: !0,
|
12669
12727
|
showSelectAll: !1,
|
12670
12728
|
searchPlaceholder: " ",
|
12671
|
-
filterOption: (E,
|
12729
|
+
filterOption: (E, A) => {
|
12672
12730
|
var k;
|
12673
|
-
return !!((k =
|
12731
|
+
return !!((k = A.var_nam) != null && k.includes(E));
|
12674
12732
|
}
|
12675
12733
|
}, {
|
12676
12734
|
children: ({
|
12677
12735
|
direction: E,
|
12678
|
-
filteredItems:
|
12736
|
+
filteredItems: A,
|
12679
12737
|
selectedKeys: k,
|
12680
12738
|
disabled: R,
|
12681
12739
|
onItemSelectAll: L,
|
@@ -12690,7 +12748,7 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12690
12748
|
},
|
12691
12749
|
columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
12692
12750
|
rowKey: "id",
|
12693
|
-
dataSource:
|
12751
|
+
dataSource: A,
|
12694
12752
|
customRow: (D) => ({
|
12695
12753
|
onClick: ($) => v($, D, E, k)
|
12696
12754
|
}),
|
@@ -12712,40 +12770,40 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12712
12770
|
disabled: b,
|
12713
12771
|
selectedKeys: m,
|
12714
12772
|
onItemSelectAll: _,
|
12715
|
-
onItemSelect:
|
12773
|
+
onItemSelect: T
|
12716
12774
|
}) => ({
|
12717
12775
|
getCheckboxProps: (y) => ({
|
12718
12776
|
disabled: b || y.disabled
|
12719
12777
|
}),
|
12720
|
-
onSelectAll(y,
|
12721
|
-
const E =
|
12722
|
-
key:
|
12723
|
-
}) =>
|
12778
|
+
onSelectAll(y, C) {
|
12779
|
+
const E = C.filter((A) => !A.disabled).map(({
|
12780
|
+
key: A
|
12781
|
+
}) => A);
|
12724
12782
|
_(E, y);
|
12725
12783
|
},
|
12726
12784
|
onSelect({
|
12727
12785
|
key: y
|
12728
|
-
},
|
12729
|
-
|
12786
|
+
}, C) {
|
12787
|
+
T(y, C);
|
12730
12788
|
},
|
12731
12789
|
selectedRowKeys: m,
|
12732
12790
|
columnWidth: 32
|
12733
12791
|
});
|
12734
12792
|
async function p() {
|
12735
12793
|
const b = watch(a.isReady, async (m) => {
|
12736
|
-
var _,
|
12794
|
+
var _, T;
|
12737
12795
|
m && a.model.value && (setTimeout(() => b(), 0), a.store.patchModel(n.formID, {
|
12738
12796
|
frm_id: e.hostFormID
|
12739
|
-
}), (
|
12797
|
+
}), (T = (_ = a.search).value) == null || T.call(_));
|
12740
12798
|
}, {
|
12741
12799
|
immediate: !0
|
12742
12800
|
});
|
12743
12801
|
}
|
12744
|
-
function v(b, m, _,
|
12802
|
+
function v(b, m, _, T) {
|
12745
12803
|
if (!DomUtil.isNotClickable(b.target, ["ant-input"]))
|
12746
|
-
switch (
|
12804
|
+
switch (T.length = 0, b.detail) {
|
12747
12805
|
case 1:
|
12748
|
-
|
12806
|
+
T[0] = m.id;
|
12749
12807
|
break;
|
12750
12808
|
case 2:
|
12751
12809
|
switch (_) {
|
@@ -12862,18 +12920,18 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12862
12920
|
var x;
|
12863
12921
|
return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
|
12864
12922
|
}), u = computed(() => getDefaultHeight(n.currentVarProfileDetails.value, l.value)), c = computed(() => getMaxHeight(n.currentVarProfileDetails.value, l.value)), g = computed(() => l.value ? 1 : HEADER_HEIGHT), p = computed(() => {
|
12865
|
-
var x,
|
12866
|
-
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((
|
12923
|
+
var x, G;
|
12924
|
+
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((G = E.value) == null ? void 0 : G.permission_code));
|
12867
12925
|
}), v = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), _ = ref({
|
12868
12926
|
kgHeight: g.value
|
12869
|
-
}),
|
12927
|
+
}), T = ref({
|
12870
12928
|
visible: !1
|
12871
12929
|
});
|
12872
12930
|
let y;
|
12873
|
-
const
|
12874
|
-
var x,
|
12875
|
-
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((
|
12876
|
-
return n.t((
|
12931
|
+
const C = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
|
12932
|
+
var x, G, q;
|
12933
|
+
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((G = E.value) == null ? void 0 : G.var_nam))
|
12934
|
+
return n.t((q = E.value) == null ? void 0 : q.var_nam).value;
|
12877
12935
|
}), k = computed(() => {
|
12878
12936
|
var x;
|
12879
12937
|
switch ((x = E.value) == null ? void 0 : x.primary_flg) {
|
@@ -12896,11 +12954,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12896
12954
|
});
|
12897
12955
|
watch(n.currentVarProfileDetails, (x) => {
|
12898
12956
|
if (x) {
|
12899
|
-
const
|
12900
|
-
x.forEach((
|
12901
|
-
|
12902
|
-
}), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(
|
12903
|
-
|
12957
|
+
const G = {};
|
12958
|
+
x.forEach((q) => {
|
12959
|
+
G[q.var_nam] = "";
|
12960
|
+
}), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(G)), R.value ? (y == null || y(), y = watch(m, (q) => {
|
12961
|
+
q && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12904
12962
|
}, {
|
12905
12963
|
immediate: !0
|
12906
12964
|
})) : (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
@@ -12915,94 +12973,94 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12915
12973
|
a.store.emit(n.formID, "search", {
|
12916
12974
|
resetPageIndex: x
|
12917
12975
|
});
|
12918
|
-
}).catch((
|
12976
|
+
}).catch((G) => {
|
12919
12977
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12920
|
-
e:
|
12978
|
+
e: G
|
12921
12979
|
});
|
12922
12980
|
}) : a.store.emit(n.formID, "search", {
|
12923
12981
|
resetPageIndex: x
|
12924
12982
|
});
|
12925
12983
|
}
|
12926
12984
|
a.store.setSearchFn(n.formID, V);
|
12927
|
-
function
|
12985
|
+
function w() {
|
12928
12986
|
var x;
|
12929
12987
|
(x = m.value) == null || x.resetFields(), R.value ? m.value && m.value.validate().then(() => {
|
12930
12988
|
a.store.emit(n.formID, "reset");
|
12931
|
-
}).catch((
|
12989
|
+
}).catch((G) => {
|
12932
12990
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12933
|
-
e:
|
12991
|
+
e: G
|
12934
12992
|
});
|
12935
12993
|
}) : a.store.emit(n.formID, "reset");
|
12936
12994
|
}
|
12937
|
-
a.store.setResetFn(n.formID,
|
12938
|
-
function
|
12995
|
+
a.store.setResetFn(n.formID, w);
|
12996
|
+
function I() {
|
12939
12997
|
return V(!0), Promise.resolve(!0);
|
12940
12998
|
}
|
12941
|
-
function
|
12999
|
+
function M() {
|
12942
13000
|
var x;
|
12943
13001
|
return createVNode("div", {
|
12944
13002
|
class: "title",
|
12945
|
-
onClick:
|
13003
|
+
onClick: U
|
12946
13004
|
}, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
|
12947
13005
|
class: "kg-search-title-left",
|
12948
|
-
onClick: (
|
12949
|
-
|
13006
|
+
onClick: (G) => {
|
13007
|
+
G.stopPropagation(), G.preventDefault();
|
12950
13008
|
}
|
12951
|
-
}, [t.KgSearch.left()]),
|
13009
|
+
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
12952
13010
|
}
|
12953
13011
|
function N() {
|
12954
|
-
var x,
|
12955
|
-
return ((
|
13012
|
+
var x, G, q, X;
|
13013
|
+
return ((q = (G = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : G.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
12956
13014
|
value: (X = n.currentVarProfileMasterID.value) != null ? X : void 0,
|
12957
13015
|
"onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
|
12958
13016
|
disabled: v.value,
|
12959
13017
|
class: "kg-search-profile-master-select"
|
12960
13018
|
}, {
|
12961
13019
|
default: () => {
|
12962
|
-
var Z,
|
12963
|
-
return (
|
12964
|
-
value:
|
13020
|
+
var Z, ne;
|
13021
|
+
return (ne = (Z = n.varProfileMasters) == null ? void 0 : Z.value) == null ? void 0 : ne.map((oe) => createVNode(Select.Option, {
|
13022
|
+
value: oe.id
|
12965
13023
|
}, {
|
12966
|
-
default: () => [n.t(
|
13024
|
+
default: () => [n.t(oe == null ? void 0 : oe.prf_var_nam).value]
|
12967
13025
|
}));
|
12968
13026
|
},
|
12969
13027
|
suffixIcon: () => createVNode(CaretDownOutlined$1, null, null)
|
12970
13028
|
}), createVNode(Button, {
|
12971
13029
|
disabled: v.value,
|
12972
13030
|
onClick: () => {
|
12973
|
-
|
13031
|
+
T.value.visible = !0;
|
12974
13032
|
},
|
12975
13033
|
class: "kg-search-profile-master-btn"
|
12976
13034
|
}, {
|
12977
13035
|
default: () => [createVNode(SettingOutlined$1, null, null)]
|
12978
13036
|
}), createVNode(KgSearchConfigModal, {
|
12979
|
-
visible:
|
12980
|
-
"onUpdate:visible": (Z) =>
|
13037
|
+
visible: T.value.visible,
|
13038
|
+
"onUpdate:visible": (Z) => T.value.visible = Z,
|
12981
13039
|
hostFormID: n.formID
|
12982
13040
|
}, null)]);
|
12983
13041
|
}
|
12984
13042
|
function F() {
|
12985
|
-
var x,
|
12986
|
-
return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((
|
13043
|
+
var x, G, q, X, Z;
|
13044
|
+
return createVNode(Fragment, null, [N(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((G = E.value) == null ? void 0 : G.permission_code)) && createVNode(Button, {
|
12987
13045
|
type: "primary",
|
12988
13046
|
ghost: !p.value,
|
12989
13047
|
disabled: p.value,
|
12990
|
-
onClick:
|
13048
|
+
onClick: w,
|
12991
13049
|
class: "kg-search-btn-reset"
|
12992
13050
|
}, {
|
12993
13051
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
12994
13052
|
}), createVNode(KgButton.Item, {
|
12995
13053
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
12996
|
-
kgVarName: (
|
13054
|
+
kgVarName: (q = E.value) == null ? void 0 : q.var_nam,
|
12997
13055
|
kgIcon: (X = E.value) == null ? void 0 : X.icon,
|
12998
|
-
kgText:
|
13056
|
+
kgText: A.value,
|
12999
13057
|
kgColor: (Z = E.value) == null ? void 0 : Z.color,
|
13000
13058
|
kgPrimary: k.value,
|
13001
13059
|
kgLoading: b.value,
|
13002
|
-
onKgClick:
|
13060
|
+
onKgClick: I
|
13003
13061
|
}, null)]);
|
13004
13062
|
}
|
13005
|
-
function
|
13063
|
+
function H() {
|
13006
13064
|
return createVNode(Spin, {
|
13007
13065
|
spinning: D.value
|
13008
13066
|
}, {
|
@@ -13016,9 +13074,9 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13016
13074
|
gutter: 6
|
13017
13075
|
}, {
|
13018
13076
|
default: () => {
|
13019
|
-
var
|
13020
|
-
return [(
|
13021
|
-
kgVarName:
|
13077
|
+
var G;
|
13078
|
+
return [(G = n.currentVarProfileDetails.value) == null ? void 0 : G.map((q) => createVNode(KgForm.Item, {
|
13079
|
+
kgVarName: q.var_nam,
|
13022
13080
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
13023
13081
|
onKgSubmit: () => V(!0)
|
13024
13082
|
}, null))];
|
@@ -13028,8 +13086,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13028
13086
|
}
|
13029
13087
|
});
|
13030
13088
|
}
|
13031
|
-
function
|
13032
|
-
|
13089
|
+
function U() {
|
13090
|
+
C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
|
13033
13091
|
}
|
13034
13092
|
return () => createVNode(KgResizable, {
|
13035
13093
|
kgHeight: _.value.kgHeight,
|
@@ -13053,7 +13111,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13053
13111
|
}, [createVNode(Spin, {
|
13054
13112
|
spinning: O.value
|
13055
13113
|
}, {
|
13056
|
-
default: () => [
|
13114
|
+
default: () => [M(), createVNode("div", {
|
13057
13115
|
class: "ant-collapse-extra"
|
13058
13116
|
}, [F()])]
|
13059
13117
|
})])]
|
@@ -13061,7 +13119,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13061
13119
|
class: "ant-collapse-content ant-collapse-content-active"
|
13062
13120
|
}, [createVNode("div", {
|
13063
13121
|
class: "ant-collapse-content-box"
|
13064
|
-
}, [
|
13122
|
+
}, [H()])])])])]
|
13065
13123
|
});
|
13066
13124
|
}
|
13067
13125
|
});
|
@@ -13126,27 +13184,27 @@ function useMagicKeys(e = {}) {
|
|
13126
13184
|
g(m, !1);
|
13127
13185
|
}
|
13128
13186
|
function v(m, _) {
|
13129
|
-
var
|
13130
|
-
const
|
13187
|
+
var T, y;
|
13188
|
+
const C = (T = m.key) == null ? void 0 : T.toLowerCase(), E = (y = m.code) == null ? void 0 : y.toLowerCase(), A = [E, C].filter(Boolean);
|
13131
13189
|
E && (_ ? s.add(m.code) : s.delete(m.code));
|
13132
|
-
for (const k of
|
13190
|
+
for (const k of A)
|
13133
13191
|
c.add(k), g(k, _);
|
13134
|
-
|
13192
|
+
C === "meta" && !_ ? (u.forEach((k) => {
|
13135
13193
|
s.delete(k), g(k, !1);
|
13136
|
-
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...
|
13194
|
+
}), u.clear()) : typeof m.getModifierState == "function" && m.getModifierState("Meta") && _ && [...s, ...A].forEach((k) => u.add(k));
|
13137
13195
|
}
|
13138
13196
|
r && (useEventListener(r, "keydown", (m) => (v(m, !0), o(m)), { passive: a }), useEventListener(r, "keyup", (m) => (v(m, !1), o(m)), { passive: a }), useEventListener("blur", p, { passive: !0 }), useEventListener("focus", p, { passive: !0 }));
|
13139
13197
|
const b = new Proxy(l, {
|
13140
|
-
get(m, _,
|
13198
|
+
get(m, _, T) {
|
13141
13199
|
if (typeof _ != "string")
|
13142
|
-
return Reflect.get(m, _,
|
13200
|
+
return Reflect.get(m, _, T);
|
13143
13201
|
if (_ = _.toLowerCase(), _ in n && (_ = n[_]), !(_ in l))
|
13144
13202
|
if (/[+_-]/.test(_)) {
|
13145
|
-
const
|
13146
|
-
l[_] = computed(() =>
|
13203
|
+
const C = _.split(/[+_-]/g).map((E) => E.trim());
|
13204
|
+
l[_] = computed(() => C.every((E) => unref(b[E])));
|
13147
13205
|
} else
|
13148
13206
|
l[_] = ref(!1);
|
13149
|
-
const y = Reflect.get(m, _,
|
13207
|
+
const y = Reflect.get(m, _, T);
|
13150
13208
|
return t ? unref(y) : y;
|
13151
13209
|
}
|
13152
13210
|
});
|
@@ -13538,17 +13596,17 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13538
13596
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
13539
13597
|
var V;
|
13540
13598
|
return !!c.value || ((V = n.getSelectedVarCatalog) == null ? void 0 : V.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13541
|
-
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))),
|
13599
|
+
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13542
13600
|
watch(() => n.getSelectedVar, (V) => {
|
13543
13601
|
V ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
13544
13602
|
}, {
|
13545
13603
|
immediate: !0
|
13546
13604
|
}), watch(() => n.getSelectedVarCatalog, async (V) => {
|
13547
|
-
var
|
13548
|
-
l.value.var_text = (
|
13605
|
+
var w, I;
|
13606
|
+
l.value.var_text = (w = V == null ? void 0 : V.var_text) != null ? w : "", (I = i.value) == null || I.clearValidate();
|
13549
13607
|
});
|
13550
13608
|
async function y(V = !1) {
|
13551
|
-
var
|
13609
|
+
var w, I, M;
|
13552
13610
|
a.value = !0;
|
13553
13611
|
try {
|
13554
13612
|
const {
|
@@ -13558,77 +13616,77 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13558
13616
|
pageNo: 1,
|
13559
13617
|
pageSize: 999,
|
13560
13618
|
frm_id: e == null ? void 0 : e.value,
|
13561
|
-
var_nam: (
|
13619
|
+
var_nam: (w = n.getSelectedVar) == null ? void 0 : w.var_nam,
|
13562
13620
|
column: "frm_id,locale_id,cust_lvl",
|
13563
13621
|
order: "asc"
|
13564
13622
|
}
|
13565
13623
|
});
|
13566
13624
|
if (c.value = null, u.value = N != null ? N : [], V) {
|
13567
|
-
const F = u.value.find((
|
13568
|
-
var
|
13569
|
-
return
|
13625
|
+
const F = u.value.find((H) => {
|
13626
|
+
var U;
|
13627
|
+
return H.id === ((U = n.getSelectedVarCatalog) == null ? void 0 : U.id);
|
13570
13628
|
});
|
13571
13629
|
n.setSelectedVarCatalog(F != null ? F : null), g.value = F != null && F.id ? [F.id] : [];
|
13572
13630
|
} else
|
13573
|
-
n.setSelectedVarCatalog((
|
13631
|
+
n.setSelectedVarCatalog((I = u.value[0]) != null ? I : null), g.value = (M = u.value[0]) != null && M.id ? [u.value[0].id] : [];
|
13574
13632
|
} catch (N) {
|
13575
13633
|
Logger.debug(N == null ? void 0 : N.message);
|
13576
13634
|
} finally {
|
13577
13635
|
a.value = !1;
|
13578
13636
|
}
|
13579
13637
|
}
|
13580
|
-
async function
|
13581
|
-
var V,
|
13638
|
+
async function C() {
|
13639
|
+
var V, w, I;
|
13582
13640
|
try {
|
13583
13641
|
o.value = !0, await ((V = i.value) == null ? void 0 : V.validate());
|
13584
|
-
const
|
13585
|
-
...(
|
13586
|
-
var_text: (
|
13642
|
+
const M = new VarCatalog({
|
13643
|
+
...(w = n.getSelectedVarCatalog) != null ? w : {},
|
13644
|
+
var_text: (I = l.value) == null ? void 0 : I.var_text
|
13587
13645
|
});
|
13588
|
-
|
13589
|
-
data:
|
13646
|
+
M.id ? M.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (M.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(M, "id"), await Add({
|
13647
|
+
data: M
|
13590
13648
|
}, {
|
13591
13649
|
successMessageMode: "none"
|
13592
13650
|
}), message.success({
|
13593
13651
|
content: t.t("kg.KgVarConfig.createSuccess")
|
13594
13652
|
}), await y()) : (await Edit({
|
13595
|
-
data:
|
13653
|
+
data: M
|
13596
13654
|
}, {
|
13597
13655
|
successMessageMode: "none"
|
13598
13656
|
}), message.success({
|
13599
13657
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
13600
13658
|
}), await y(!0)) : (await Add({
|
13601
|
-
data:
|
13659
|
+
data: M
|
13602
13660
|
}, {
|
13603
13661
|
successMessageMode: "none"
|
13604
13662
|
}), message.success({
|
13605
13663
|
content: t.t("kg.KgVarConfig.createSuccess")
|
13606
13664
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
13607
|
-
} catch (
|
13608
|
-
KgUtil.throwIfNotFormError(
|
13665
|
+
} catch (M) {
|
13666
|
+
KgUtil.throwIfNotFormError(M);
|
13609
13667
|
} finally {
|
13610
13668
|
o.value = !1;
|
13611
13669
|
}
|
13612
13670
|
}
|
13613
13671
|
function E({
|
13614
13672
|
isAllForm: V,
|
13615
|
-
isAllLanguage:
|
13673
|
+
isAllLanguage: w
|
13616
13674
|
}) {
|
13617
|
-
var
|
13675
|
+
var I, M, N;
|
13618
13676
|
c.value = new VarCatalog({
|
13619
13677
|
id: "",
|
13620
13678
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
13621
|
-
grp_nam: (
|
13622
|
-
var_nam: (
|
13679
|
+
grp_nam: (I = n.getSelectedVar) == null ? void 0 : I.grp_nam,
|
13680
|
+
var_nam: (M = n.getSelectedVar) == null ? void 0 : M.var_nam,
|
13623
13681
|
frm_id: V || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
13624
|
-
locale_id:
|
13682
|
+
locale_id: w ? "ALL" : (N = t.locale) == null ? void 0 : N.value,
|
13625
13683
|
var_text: ""
|
13626
13684
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
13627
13685
|
}
|
13628
|
-
function
|
13629
|
-
var
|
13686
|
+
function A() {
|
13687
|
+
var w;
|
13630
13688
|
u.value = without$1(u.value, c.value), c.value = null;
|
13631
|
-
const V = (
|
13689
|
+
const V = (w = u.value[0]) != null ? w : null;
|
13632
13690
|
n.setSelectedVarCatalog(V), g.value = V ? [V.id] : [];
|
13633
13691
|
}
|
13634
13692
|
function k() {
|
@@ -13649,8 +13707,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13649
13707
|
});
|
13650
13708
|
}
|
13651
13709
|
function R(V) {
|
13652
|
-
var
|
13653
|
-
((
|
13710
|
+
var w;
|
13711
|
+
((w = n.getSelectedVarCatalog) == null ? void 0 : w.id) !== V.id && (unref(c) ? KgUtil.confirm({
|
13654
13712
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
13655
13713
|
onOk: () => {
|
13656
13714
|
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(V)), g.value = [V.id];
|
@@ -13680,13 +13738,13 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13680
13738
|
})]);
|
13681
13739
|
}
|
13682
13740
|
function D() {
|
13683
|
-
let V,
|
13741
|
+
let V, w;
|
13684
13742
|
return createVNode("div", {
|
13685
13743
|
class: "form"
|
13686
13744
|
}, [createVNode(Form, {
|
13687
13745
|
ref: i,
|
13688
13746
|
model: l.value,
|
13689
|
-
onSubmit:
|
13747
|
+
onSubmit: C
|
13690
13748
|
}, {
|
13691
13749
|
default: () => [createVNode(Form.Item, {
|
13692
13750
|
name: "var_text",
|
@@ -13697,7 +13755,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13697
13755
|
}, {
|
13698
13756
|
default: () => [createVNode(Textarea, {
|
13699
13757
|
value: l.value.var_text,
|
13700
|
-
"onUpdate:value": (
|
13758
|
+
"onUpdate:value": (I) => l.value.var_text = I,
|
13701
13759
|
disabled: !n.getSelectedVarCatalog
|
13702
13760
|
}, null), createVNode("button", {
|
13703
13761
|
hidden: !0
|
@@ -13707,22 +13765,22 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13707
13765
|
class: "buttons"
|
13708
13766
|
}, [createVNode(Button, {
|
13709
13767
|
disabled: _.value,
|
13710
|
-
onClick:
|
13768
|
+
onClick: A
|
13711
13769
|
}, _isSlot(V = t.t("common.cancelText")) ? V : {
|
13712
13770
|
default: () => [V]
|
13713
13771
|
}), createVNode(Button, {
|
13714
13772
|
loading: o.value,
|
13715
|
-
disabled:
|
13716
|
-
onClick:
|
13773
|
+
disabled: T.value,
|
13774
|
+
onClick: C,
|
13717
13775
|
type: "primary"
|
13718
|
-
}, _isSlot(
|
13719
|
-
default: () => [
|
13776
|
+
}, _isSlot(w = t.t("common.save")) ? w : {
|
13777
|
+
default: () => [w]
|
13720
13778
|
})])]);
|
13721
13779
|
}
|
13722
13780
|
function $(V) {
|
13723
|
-
var
|
13724
|
-
let
|
13725
|
-
return V.id || (
|
13781
|
+
var I;
|
13782
|
+
let w = "";
|
13783
|
+
return V.id || (w += " ant-table-row-create"), V.id === ((I = n.getSelectedVarCatalog) == null ? void 0 : I.id) && (w += " ant-table-row-selected "), w;
|
13726
13784
|
}
|
13727
13785
|
return () => createVNode("div", {
|
13728
13786
|
class: "kg-var-config-modal-var-var-catalog"
|
@@ -14075,21 +14133,21 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14075
14133
|
record: E
|
14076
14134
|
}) => {
|
14077
14135
|
var k, R, L;
|
14078
|
-
const
|
14079
|
-
return createVNode("div", null, [createVNode("div", null, [(k =
|
14136
|
+
const A = E;
|
14137
|
+
return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (R = A.whId) != null ? R : " "]), createVNode("div", {
|
14080
14138
|
class: "address"
|
14081
|
-
}, [(L =
|
14139
|
+
}, [(L = A.adrId) != null ? L : " "])]);
|
14082
14140
|
}
|
14083
14141
|
}]), c = ref([]), g = computed(() => {
|
14084
|
-
var
|
14085
|
-
const E = (
|
14142
|
+
var A;
|
14143
|
+
const E = (A = o.value) == null ? void 0 : A.toUpperCase();
|
14086
14144
|
return c.value.filter((k) => {
|
14087
14145
|
var R, L, O, D, $, V;
|
14088
14146
|
return ((L = (R = k.whDsc) == null ? void 0 : R.toUpperCase()) == null ? void 0 : L.includes(E)) || ((D = (O = k.whId) == null ? void 0 : O.toUpperCase()) == null ? void 0 : D.includes(E)) || ((V = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : V.includes(E));
|
14089
14147
|
});
|
14090
14148
|
}), p = computed(() => {
|
14091
|
-
var E,
|
14092
|
-
return ((
|
14149
|
+
var E, A;
|
14150
|
+
return ((A = (E = r.option.value) == null ? void 0 : E.KgWarehouse) == null ? void 0 : A.enable) !== !1;
|
14093
14151
|
});
|
14094
14152
|
watch(n.visible, (E) => {
|
14095
14153
|
!p.value || (E ? b() : m());
|
@@ -14102,7 +14160,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14102
14160
|
!p.value || n.store.setVisible(!0);
|
14103
14161
|
}
|
14104
14162
|
function b() {
|
14105
|
-
i.value = n.warehouse.value,
|
14163
|
+
i.value = n.warehouse.value, T();
|
14106
14164
|
}
|
14107
14165
|
function m() {
|
14108
14166
|
o.value = "", c.value = [], i.value = null;
|
@@ -14121,7 +14179,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14121
14179
|
}
|
14122
14180
|
})), n.store.setVisible(!1));
|
14123
14181
|
}
|
14124
|
-
async function
|
14182
|
+
async function T() {
|
14125
14183
|
l.value = !0;
|
14126
14184
|
try {
|
14127
14185
|
const {
|
@@ -14139,25 +14197,25 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14139
14197
|
l.value = !1;
|
14140
14198
|
}
|
14141
14199
|
}
|
14142
|
-
function y(E,
|
14200
|
+
function y(E, A) {
|
14143
14201
|
var k;
|
14144
14202
|
switch (E.detail) {
|
14145
14203
|
case 1:
|
14146
|
-
((k = i.value) == null ? void 0 : k.id) ===
|
14204
|
+
((k = i.value) == null ? void 0 : k.id) === A.id ? i.value = null : i.value = A;
|
14147
14205
|
break;
|
14148
14206
|
case 2:
|
14149
|
-
i.value =
|
14207
|
+
i.value = A, _();
|
14150
14208
|
break;
|
14151
14209
|
}
|
14152
14210
|
}
|
14153
|
-
function
|
14211
|
+
function C() {
|
14154
14212
|
return p.value ? createVNode(Fragment, null, [createVNode(Tooltip, {
|
14155
14213
|
title: r.t("kg.KgWarehouse.warehouse"),
|
14156
14214
|
placement: "bottomRight"
|
14157
14215
|
}, {
|
14158
14216
|
default: () => {
|
14159
|
-
var E,
|
14160
|
-
return [((E = s.value) == null ? void 0 : E.whDsc) || ((
|
14217
|
+
var E, A;
|
14218
|
+
return [((E = s.value) == null ? void 0 : E.whDsc) || ((A = s.value) == null ? void 0 : A.whId) || r.t("kg.KgWarehouse.selectWarehouse")];
|
14161
14219
|
}
|
14162
14220
|
}), createVNode(KgModal, {
|
14163
14221
|
visible: n.visible.value,
|
@@ -14199,9 +14257,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14199
14257
|
columns: u,
|
14200
14258
|
class: "kg-flex-table",
|
14201
14259
|
customRow: (E) => {
|
14202
|
-
var
|
14260
|
+
var A;
|
14203
14261
|
return {
|
14204
|
-
class: E.id === ((
|
14262
|
+
class: E.id === ((A = i.value) == null ? void 0 : A.id) ? "selected" : "",
|
14205
14263
|
onClick: (k) => y(k, E)
|
14206
14264
|
};
|
14207
14265
|
}
|
@@ -14211,7 +14269,7 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14211
14269
|
return () => createVNode("div", {
|
14212
14270
|
class: a.value,
|
14213
14271
|
onClick: v
|
14214
|
-
}, [
|
14272
|
+
}, [C()]);
|
14215
14273
|
}
|
14216
14274
|
});
|
14217
14275
|
function createKgWarehouseGuard(e, t) {
|