@kengic/vue 0.5.37-beta.0 → 0.5.38
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 +752 -739
- package/dist/src/apis/WMS/models.d.ts +2 -0
- package/dist/src/components/KgResizable/KgResizable.d.ts +6 -0
- package/dist/src/components/KgVar/KgVar.d.ts +4 -3
- package/dist/src/components/KgVar/index.vm.d.ts +5 -2
- package/package.json +9 -7
package/dist/kengic-vue.js
CHANGED
@@ -271,6 +271,7 @@ class VarGridConfig {
|
|
271
271
|
d(this, "pg_size_opt");
|
272
272
|
d(this, "pg_size_opts");
|
273
273
|
d(this, "prf_frm_id");
|
274
|
+
d(this, "show_bottom_border_flg");
|
274
275
|
d(this, "show_bottom_left_flg");
|
275
276
|
d(this, "show_bottom_right_flg");
|
276
277
|
d(this, "show_check_column_flg");
|
@@ -288,6 +289,7 @@ class VarGridConfig {
|
|
288
289
|
case "pg_size_opt":
|
289
290
|
case "pg_size_opts":
|
290
291
|
case "prf_frm_id":
|
292
|
+
case "show_bottom_border_flg":
|
291
293
|
case "show_bottom_left_flg":
|
292
294
|
case "show_bottom_right_flg":
|
293
295
|
case "show_check_column_flg":
|
@@ -4366,7 +4368,7 @@ const UploadOutlined$1 = UploadOutlined, KgModal_Close = "", getProps$z = () =>
|
|
4366
4368
|
}, [e.kgRight || 0])])
|
4367
4369
|
});
|
4368
4370
|
}
|
4369
|
-
}),
|
4371
|
+
}), en = {
|
4370
4372
|
kg: {
|
4371
4373
|
KgFormItem: {
|
4372
4374
|
mustGT: "Must > {0}",
|
@@ -4691,207 +4693,207 @@ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u"
|
|
4691
4693
|
(function(r, n) {
|
4692
4694
|
e.exports = n();
|
4693
4695
|
})(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+)?$/, 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(
|
4695
|
-
var
|
4696
|
-
return "[" +
|
4697
|
-
} }, C = function(
|
4698
|
-
var
|
4699
|
-
return !
|
4700
|
-
}, E = { s: C, z: function(
|
4701
|
-
var
|
4702
|
-
return (
|
4703
|
-
}, m: function
|
4704
|
-
if (
|
4705
|
-
return -
|
4706
|
-
var
|
4707
|
-
return +(-(
|
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
|
4696
|
+
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(D) {
|
4697
|
+
var O = ["th", "st", "nd", "rd"], I = D % 100;
|
4698
|
+
return "[" + D + (O[(I - 20) % 10] || O[I] || O[0]) + "]";
|
4699
|
+
} }, C = function(D, O, I) {
|
4700
|
+
var V = String(D);
|
4701
|
+
return !V || V.length >= O ? D : "" + Array(O + 1 - V.length).join(I) + D;
|
4702
|
+
}, E = { s: C, z: function(D) {
|
4703
|
+
var O = -D.utcOffset(), I = Math.abs(O), V = Math.floor(I / 60), R = I % 60;
|
4704
|
+
return (O <= 0 ? "+" : "-") + C(V, 2, "0") + ":" + C(R, 2, "0");
|
4705
|
+
}, m: function D(O, I) {
|
4706
|
+
if (O.date() < I.date())
|
4707
|
+
return -D(I, O);
|
4708
|
+
var V = 12 * (I.year() - O.year()) + (I.month() - O.month()), R = O.clone().add(V, g), H = I - R < 0, G = O.clone().add(V + (H ? -1 : 1), g);
|
4709
|
+
return +(-(V + (I - R) / (H ? R - G : G - R)) || 0);
|
4710
|
+
}, a: function(D) {
|
4711
|
+
return D < 0 ? Math.ceil(D) || 0 : Math.floor(D);
|
4712
|
+
}, p: function(D) {
|
4713
|
+
return { M: g, y: v, w: c, d: u, D: b, h: l, m: i, s, ms: o, Q: p }[D] || String(D || "").toLowerCase().replace(/s$/, "");
|
4714
|
+
}, u: function(D) {
|
4715
|
+
return D === void 0;
|
4714
4716
|
} }, A = "en", k = {};
|
4715
4717
|
k[A] = y;
|
4716
|
-
var
|
4717
|
-
return
|
4718
|
-
}, L = function
|
4719
|
-
var
|
4720
|
-
if (!
|
4718
|
+
var F = function(D) {
|
4719
|
+
return D instanceof $;
|
4720
|
+
}, L = function D(O, I, V) {
|
4721
|
+
var R;
|
4722
|
+
if (!O)
|
4721
4723
|
return A;
|
4722
|
-
if (typeof
|
4723
|
-
var H =
|
4724
|
-
k[H] && (
|
4725
|
-
var
|
4726
|
-
if (!
|
4727
|
-
return
|
4724
|
+
if (typeof O == "string") {
|
4725
|
+
var H = O.toLowerCase();
|
4726
|
+
k[H] && (R = H), I && (k[H] = I, R = H);
|
4727
|
+
var G = O.split("-");
|
4728
|
+
if (!R && G.length > 1)
|
4729
|
+
return D(G[0]);
|
4728
4730
|
} else {
|
4729
|
-
var x =
|
4730
|
-
k[x] =
|
4731
|
-
}
|
4732
|
-
return !
|
4733
|
-
},
|
4734
|
-
if (
|
4735
|
-
return
|
4736
|
-
var
|
4737
|
-
return
|
4738
|
-
},
|
4739
|
-
|
4740
|
-
return
|
4731
|
+
var x = O.name;
|
4732
|
+
k[x] = O, R = x;
|
4733
|
+
}
|
4734
|
+
return !V && R && (A = R), R || !V && A;
|
4735
|
+
}, M = function(D, O) {
|
4736
|
+
if (F(D))
|
4737
|
+
return D.clone();
|
4738
|
+
var I = typeof O == "object" ? O : {};
|
4739
|
+
return I.date = D, I.args = arguments, new $(I);
|
4740
|
+
}, P = E;
|
4741
|
+
P.l = L, P.i = F, P.w = function(D, O) {
|
4742
|
+
return M(D, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
4741
4743
|
};
|
4742
4744
|
var $ = function() {
|
4743
|
-
function
|
4744
|
-
this.$L = L(
|
4745
|
-
}
|
4746
|
-
var
|
4747
|
-
return
|
4748
|
-
this.$d = function(
|
4749
|
-
var
|
4750
|
-
if (
|
4745
|
+
function D(I) {
|
4746
|
+
this.$L = L(I.locale, null, !0), this.parse(I);
|
4747
|
+
}
|
4748
|
+
var O = D.prototype;
|
4749
|
+
return O.parse = function(I) {
|
4750
|
+
this.$d = function(V) {
|
4751
|
+
var R = V.date, H = V.utc;
|
4752
|
+
if (R === null)
|
4751
4753
|
return new Date(NaN);
|
4752
|
-
if (
|
4754
|
+
if (P.u(R))
|
4753
4755
|
return new Date();
|
4754
|
-
if (
|
4755
|
-
return new Date(
|
4756
|
-
if (typeof
|
4757
|
-
var
|
4758
|
-
if (
|
4759
|
-
var x =
|
4760
|
-
return H ? new Date(Date.UTC(
|
4756
|
+
if (R instanceof Date)
|
4757
|
+
return new Date(R);
|
4758
|
+
if (typeof R == "string" && !/Z$/i.test(R)) {
|
4759
|
+
var G = R.match(_);
|
4760
|
+
if (G) {
|
4761
|
+
var x = G[2] - 1 || 0, U = (G[7] || "0").substring(0, 3);
|
4762
|
+
return H ? new Date(Date.UTC(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, U)) : new Date(G[1], x, G[3] || 1, G[4] || 0, G[5] || 0, G[6] || 0, U);
|
4761
4763
|
}
|
4762
4764
|
}
|
4763
|
-
return new Date(
|
4764
|
-
}(
|
4765
|
-
},
|
4766
|
-
var
|
4767
|
-
this.$y =
|
4768
|
-
},
|
4769
|
-
return
|
4770
|
-
},
|
4765
|
+
return new Date(R);
|
4766
|
+
}(I), this.$x = I.x || {}, this.init();
|
4767
|
+
}, O.init = function() {
|
4768
|
+
var I = this.$d;
|
4769
|
+
this.$y = I.getFullYear(), this.$M = I.getMonth(), this.$D = I.getDate(), this.$W = I.getDay(), this.$H = I.getHours(), this.$m = I.getMinutes(), this.$s = I.getSeconds(), this.$ms = I.getMilliseconds();
|
4770
|
+
}, O.$utils = function() {
|
4771
|
+
return P;
|
4772
|
+
}, O.isValid = function() {
|
4771
4773
|
return this.$d.toString() !== m;
|
4772
|
-
},
|
4773
|
-
var
|
4774
|
-
return this.startOf(
|
4775
|
-
},
|
4776
|
-
return
|
4777
|
-
},
|
4778
|
-
return this.endOf(
|
4779
|
-
},
|
4780
|
-
return
|
4781
|
-
},
|
4774
|
+
}, O.isSame = function(I, V) {
|
4775
|
+
var R = M(I);
|
4776
|
+
return this.startOf(V) <= R && R <= this.endOf(V);
|
4777
|
+
}, O.isAfter = function(I, V) {
|
4778
|
+
return M(I) < this.startOf(V);
|
4779
|
+
}, O.isBefore = function(I, V) {
|
4780
|
+
return this.endOf(V) < M(I);
|
4781
|
+
}, O.$g = function(I, V, R) {
|
4782
|
+
return P.u(I) ? this[V] : this.set(R, I);
|
4783
|
+
}, O.unix = function() {
|
4782
4784
|
return Math.floor(this.valueOf() / 1e3);
|
4783
|
-
},
|
4785
|
+
}, O.valueOf = function() {
|
4784
4786
|
return this.$d.getTime();
|
4785
|
-
},
|
4786
|
-
var
|
4787
|
-
var
|
4788
|
-
return H ?
|
4789
|
-
},
|
4790
|
-
return
|
4791
|
-
}, q = this.$W,
|
4792
|
-
switch (
|
4787
|
+
}, O.startOf = function(I, V) {
|
4788
|
+
var R = this, H = !!P.u(V) || V, G = P.p(I), x = function(pe, te) {
|
4789
|
+
var le = P.w(R.$u ? Date.UTC(R.$y, te, pe) : new Date(R.$y, te, pe), R);
|
4790
|
+
return H ? le : le.endOf(u);
|
4791
|
+
}, U = function(pe, te) {
|
4792
|
+
return P.w(R.toDate()[pe].apply(R.toDate("s"), (H ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(te)), R);
|
4793
|
+
}, q = this.$W, J = this.$M, Z = this.$D, ne = "set" + (this.$u ? "UTC" : "");
|
4794
|
+
switch (G) {
|
4793
4795
|
case v:
|
4794
4796
|
return H ? x(1, 0) : x(31, 11);
|
4795
4797
|
case g:
|
4796
|
-
return H ? x(1,
|
4798
|
+
return H ? x(1, J) : x(0, J + 1);
|
4797
4799
|
case c:
|
4798
4800
|
var oe = this.$locale().weekStart || 0, ie = (q < oe ? q + 7 : q) - oe;
|
4799
|
-
return x(H ? Z - ie : Z + (6 - ie),
|
4801
|
+
return x(H ? Z - ie : Z + (6 - ie), J);
|
4800
4802
|
case u:
|
4801
4803
|
case b:
|
4802
|
-
return
|
4804
|
+
return U(ne + "Hours", 0);
|
4803
4805
|
case l:
|
4804
|
-
return
|
4806
|
+
return U(ne + "Minutes", 1);
|
4805
4807
|
case i:
|
4806
|
-
return
|
4808
|
+
return U(ne + "Seconds", 2);
|
4807
4809
|
case s:
|
4808
|
-
return
|
4810
|
+
return U(ne + "Milliseconds", 3);
|
4809
4811
|
default:
|
4810
4812
|
return this.clone();
|
4811
4813
|
}
|
4812
|
-
},
|
4813
|
-
return this.startOf(
|
4814
|
-
},
|
4815
|
-
var
|
4814
|
+
}, O.endOf = function(I) {
|
4815
|
+
return this.startOf(I, !1);
|
4816
|
+
}, O.$set = function(I, V) {
|
4817
|
+
var R, H = P.p(I), G = "set" + (this.$u ? "UTC" : ""), x = (R = {}, R[u] = G + "Date", R[b] = G + "Date", R[g] = G + "Month", R[v] = G + "FullYear", R[l] = G + "Hours", R[i] = G + "Minutes", R[s] = G + "Seconds", R[o] = G + "Milliseconds", R)[H], U = H === u ? this.$D + (V - this.$W) : V;
|
4816
4818
|
if (H === g || H === v) {
|
4817
4819
|
var q = this.clone().set(b, 1);
|
4818
|
-
q.$d[x](
|
4820
|
+
q.$d[x](U), q.init(), this.$d = q.set(b, Math.min(this.$D, q.daysInMonth())).$d;
|
4819
4821
|
} else
|
4820
|
-
x && this.$d[x](
|
4822
|
+
x && this.$d[x](U);
|
4821
4823
|
return this.init(), this;
|
4822
|
-
},
|
4823
|
-
return this.clone().$set(
|
4824
|
-
},
|
4825
|
-
return this[
|
4826
|
-
},
|
4827
|
-
var
|
4828
|
-
|
4829
|
-
var
|
4830
|
-
var Z =
|
4831
|
-
return
|
4824
|
+
}, O.set = function(I, V) {
|
4825
|
+
return this.clone().$set(I, V);
|
4826
|
+
}, O.get = function(I) {
|
4827
|
+
return this[P.p(I)]();
|
4828
|
+
}, O.add = function(I, V) {
|
4829
|
+
var R, H = this;
|
4830
|
+
I = Number(I);
|
4831
|
+
var G = P.p(V), x = function(J) {
|
4832
|
+
var Z = M(H);
|
4833
|
+
return P.w(Z.date(Z.date() + Math.round(J * I)), H);
|
4832
4834
|
};
|
4833
|
-
if (
|
4834
|
-
return this.set(g, this.$M +
|
4835
|
-
if (
|
4836
|
-
return this.set(v, this.$y +
|
4837
|
-
if (
|
4835
|
+
if (G === g)
|
4836
|
+
return this.set(g, this.$M + I);
|
4837
|
+
if (G === v)
|
4838
|
+
return this.set(v, this.$y + I);
|
4839
|
+
if (G === u)
|
4838
4840
|
return x(1);
|
4839
|
-
if (
|
4841
|
+
if (G === c)
|
4840
4842
|
return x(7);
|
4841
|
-
var
|
4842
|
-
return
|
4843
|
-
},
|
4844
|
-
return this.add(-1 *
|
4845
|
-
},
|
4846
|
-
var
|
4843
|
+
var U = (R = {}, R[i] = n, R[l] = a, R[s] = r, R)[G] || 1, q = this.$d.getTime() + I * U;
|
4844
|
+
return P.w(q, this);
|
4845
|
+
}, O.subtract = function(I, V) {
|
4846
|
+
return this.add(-1 * I, V);
|
4847
|
+
}, O.format = function(I) {
|
4848
|
+
var V = this, R = this.$locale();
|
4847
4849
|
if (!this.isValid())
|
4848
|
-
return
|
4849
|
-
var H =
|
4850
|
-
return te && (te[
|
4850
|
+
return R.invalidDate || m;
|
4851
|
+
var H = I || "YYYY-MM-DDTHH:mm:ssZ", G = P.z(this), x = this.$H, U = this.$m, q = this.$M, J = R.weekdays, Z = R.months, ne = function(te, le, N, K) {
|
4852
|
+
return te && (te[le] || te(V, H)) || N[le].slice(0, K);
|
4851
4853
|
}, oe = function(te) {
|
4852
|
-
return
|
4853
|
-
}, ie =
|
4854
|
-
var
|
4855
|
-
return
|
4856
|
-
},
|
4857
|
-
return H.replace(T, function(te,
|
4858
|
-
return
|
4854
|
+
return P.s(x % 12 || 12, te, "0");
|
4855
|
+
}, ie = R.meridiem || function(te, le, N) {
|
4856
|
+
var K = te < 12 ? "AM" : "PM";
|
4857
|
+
return N ? K.toLowerCase() : K;
|
4858
|
+
}, pe = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: q + 1, MM: P.s(q + 1, 2, "0"), MMM: ne(R.monthsShort, q, Z, 3), MMMM: ne(Z, q), D: this.$D, DD: P.s(this.$D, 2, "0"), d: String(this.$W), dd: ne(R.weekdaysMin, this.$W, J, 2), ddd: ne(R.weekdaysShort, this.$W, J, 3), dddd: J[this.$W], H: String(x), HH: P.s(x, 2, "0"), h: oe(1), hh: oe(2), a: ie(x, U, !0), A: ie(x, U, !1), m: String(U), mm: P.s(U, 2, "0"), s: String(this.$s), ss: P.s(this.$s, 2, "0"), SSS: P.s(this.$ms, 3, "0"), Z: G };
|
4859
|
+
return H.replace(T, function(te, le) {
|
4860
|
+
return le || pe[te] || G.replace(":", "");
|
4859
4861
|
});
|
4860
|
-
},
|
4862
|
+
}, O.utcOffset = function() {
|
4861
4863
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
4862
|
-
},
|
4863
|
-
var H,
|
4864
|
-
return
|
4865
|
-
},
|
4864
|
+
}, O.diff = function(I, V, R) {
|
4865
|
+
var H, G = P.p(V), x = M(I), U = (x.utcOffset() - this.utcOffset()) * n, q = this - x, J = P.m(this, x);
|
4866
|
+
return J = (H = {}, H[v] = J / 12, H[g] = J, H[p] = J / 3, H[c] = (q - U) / 6048e5, H[u] = (q - U) / 864e5, H[l] = q / a, H[i] = q / n, H[s] = q / r, H)[G] || q, R ? J : P.a(J);
|
4867
|
+
}, O.daysInMonth = function() {
|
4866
4868
|
return this.endOf(g).$D;
|
4867
|
-
},
|
4869
|
+
}, O.$locale = function() {
|
4868
4870
|
return k[this.$L];
|
4869
|
-
},
|
4870
|
-
if (!
|
4871
|
+
}, O.locale = function(I, V) {
|
4872
|
+
if (!I)
|
4871
4873
|
return this.$L;
|
4872
|
-
var
|
4873
|
-
return H && (
|
4874
|
-
},
|
4875
|
-
return
|
4876
|
-
},
|
4874
|
+
var R = this.clone(), H = L(I, V, !0);
|
4875
|
+
return H && (R.$L = H), R;
|
4876
|
+
}, O.clone = function() {
|
4877
|
+
return P.w(this.$d, this);
|
4878
|
+
}, O.toDate = function() {
|
4877
4879
|
return new Date(this.valueOf());
|
4878
|
-
},
|
4880
|
+
}, O.toJSON = function() {
|
4879
4881
|
return this.isValid() ? this.toISOString() : null;
|
4880
|
-
},
|
4882
|
+
}, O.toISOString = function() {
|
4881
4883
|
return this.$d.toISOString();
|
4882
|
-
},
|
4884
|
+
}, O.toString = function() {
|
4883
4885
|
return this.$d.toUTCString();
|
4884
|
-
},
|
4885
|
-
}(),
|
4886
|
-
return
|
4887
|
-
|
4888
|
-
return this.$g(
|
4886
|
+
}, D;
|
4887
|
+
}(), w = $.prototype;
|
4888
|
+
return M.prototype = w, [["$ms", o], ["$s", s], ["$m", i], ["$H", l], ["$W", u], ["$M", g], ["$y", v], ["$D", b]].forEach(function(D) {
|
4889
|
+
w[D[1]] = function(O) {
|
4890
|
+
return this.$g(O, D[0], D[1]);
|
4889
4891
|
};
|
4890
|
-
}),
|
4891
|
-
return
|
4892
|
-
},
|
4893
|
-
return
|
4894
|
-
},
|
4892
|
+
}), M.extend = function(D, O) {
|
4893
|
+
return D.$i || (D(O, $, M), D.$i = !0), M;
|
4894
|
+
}, M.locale = L, M.isDayjs = F, M.unix = function(D) {
|
4895
|
+
return M(1e3 * D);
|
4896
|
+
}, M.en = k[A], M.Ls = k, M.p = {}, M;
|
4895
4897
|
});
|
4896
4898
|
})(dayjs_min);
|
4897
4899
|
const dayjs = dayjs_min.exports;
|
@@ -4938,10 +4940,10 @@ function filesize(e, {
|
|
4938
4940
|
} = {}) {
|
4939
4941
|
let T = b, y = Number(e), C = [], E = 0, A = EMPTY;
|
4940
4942
|
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
|
-
const k = n === 10 ? 1e3 : 1024,
|
4943
|
+
const k = n === 10 ? 1e3 : 1024, F = p === !0, L = y < 0, M = Math[m];
|
4942
4944
|
if (typeof e != "bigint" && isNaN(e))
|
4943
4945
|
throw new TypeError(INVALID_NUMBER);
|
4944
|
-
if (typeof
|
4946
|
+
if (typeof M !== FUNCTION)
|
4945
4947
|
throw new TypeError(INVALID_ROUND);
|
4946
4948
|
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
4949
|
return T;
|
@@ -4949,48 +4951,52 @@ function filesize(e, {
|
|
4949
4951
|
C[0] = 0, A = C[1] = STRINGS.symbol[c][t ? BITS : BYTES][T];
|
4950
4952
|
else {
|
4951
4953
|
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
|
4953
|
-
C[0] =
|
4954
|
+
const P = Math.pow(10, T > 0 ? a : 0);
|
4955
|
+
C[0] = M(E * P) / P, 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
4956
|
}
|
4955
4957
|
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
|
4957
|
-
C[0] = `${$[0]}${
|
4958
|
+
const P = i || PERIOD, $ = C[0].toString().split(P), w = $[1] || EMPTY, D = w.length, O = a - D;
|
4959
|
+
C[0] = `${$[0]}${P}${w.padEnd(D + O, ZERO)}`;
|
4958
4960
|
}
|
4959
|
-
return
|
4961
|
+
return F && (C[1] = v[T] ? v[T] : STRINGS.fullform[c][T] + (t ? BIT : BYTE) + (C[0] === 1 ? EMPTY : S)), g === ARRAY ? C : g === OBJECT ? {
|
4960
4962
|
value: C[0],
|
4961
4963
|
symbol: C[1],
|
4962
4964
|
exponent: T,
|
4963
4965
|
unit: A
|
4964
4966
|
} : C.join(l);
|
4965
4967
|
}
|
4966
|
-
const data$
|
4968
|
+
const data$7 = {
|
4967
4969
|
width: 1024,
|
4968
4970
|
height: 1024,
|
4969
4971
|
body: '<path fill="currentColor" d="M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5L207 474a32 32 0 0 0-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"/>'
|
4970
|
-
}, data$
|
4972
|
+
}, data$6 = {
|
4971
4973
|
width: 1024,
|
4972
4974
|
height: 1024,
|
4973
4975
|
body: '<path fill="currentColor" d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"/>'
|
4974
|
-
}, data$
|
4976
|
+
}, data$5 = {
|
4975
4977
|
width: 1024,
|
4976
4978
|
height: 1024,
|
4977
4979
|
body: '<path fill="currentColor" d="M505.7 661a8 8 0 0 0 12.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"/>'
|
4978
|
-
}, data$
|
4980
|
+
}, data$4 = {
|
4979
4981
|
width: 1024,
|
4980
4982
|
height: 1024,
|
4981
4983
|
body: '<path fill="currentColor" d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 0 0 0-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 0 0 9.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3l-362.7 362.6l-88.9 15.7l15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"/>'
|
4982
|
-
}, data$
|
4984
|
+
}, data$3 = {
|
4983
4985
|
width: 1024,
|
4984
4986
|
height: 1024,
|
4985
4987
|
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372s372 166.6 372 372s-166.6 372-372 372z"/><path fill="currentColor" d="M464 336a48 48 0 1 0 96 0a48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"/>'
|
4986
|
-
}, data$
|
4988
|
+
}, data$2 = {
|
4987
4989
|
width: 1024,
|
4988
4990
|
height: 1024,
|
4989
4991
|
body: '<path fill="currentColor" d="M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8Z"/><path fill="currentColor" d="M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8Z"/>'
|
4990
|
-
}, data = {
|
4992
|
+
}, data$1 = {
|
4991
4993
|
width: 1024,
|
4992
4994
|
height: 1024,
|
4993
4995
|
body: '<path fill="currentColor" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372c0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372c0 89-31.3 170.8-83.5 234.8z"/>'
|
4996
|
+
}, data = {
|
4997
|
+
width: 1024,
|
4998
|
+
height: 1024,
|
4999
|
+
body: '<path fill="currentColor" d="M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4c0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50s-22.4 50-50 50s-50-22.4-50-50zm180 266H566v-60h260v60z"/>'
|
4994
5000
|
}, matchIconName = /^[a-z0-9]+(-[a-z0-9]+)*$/, stringToIcon = (e, t, r, n = "") => {
|
4995
5001
|
const a = e.split(":");
|
4996
5002
|
if (e.slice(0, 1) === "@") {
|
@@ -5550,8 +5556,8 @@ function sendQuery(e, t, r, n) {
|
|
5550
5556
|
if (e.random) {
|
5551
5557
|
let k = e.resources.slice(0);
|
5552
5558
|
for (s = []; k.length > 1; ) {
|
5553
|
-
const
|
5554
|
-
s.push(k[
|
5559
|
+
const F = Math.floor(Math.random() * k.length);
|
5560
|
+
s.push(k[F]), k = k.slice(0, F).concat(k.slice(F + 1));
|
5555
5561
|
}
|
5556
5562
|
s = s.concat(k);
|
5557
5563
|
} else
|
@@ -5567,8 +5573,8 @@ function sendQuery(e, t, r, n) {
|
|
5567
5573
|
k.status === "pending" && (k.status = "aborted");
|
5568
5574
|
}), p = [];
|
5569
5575
|
}
|
5570
|
-
function _(k,
|
5571
|
-
|
5576
|
+
function _(k, F) {
|
5577
|
+
F && (v = []), typeof k == "function" && v.push(k);
|
5572
5578
|
}
|
5573
5579
|
function T() {
|
5574
5580
|
return {
|
@@ -5591,32 +5597,32 @@ function sendQuery(e, t, r, n) {
|
|
5591
5597
|
k.status === "pending" && (k.status = "aborted");
|
5592
5598
|
}), p = [];
|
5593
5599
|
}
|
5594
|
-
function E(k,
|
5595
|
-
const
|
5596
|
-
switch (p = p.filter((
|
5600
|
+
function E(k, F, L) {
|
5601
|
+
const M = F !== "success";
|
5602
|
+
switch (p = p.filter((P) => P !== k), l) {
|
5597
5603
|
case "pending":
|
5598
5604
|
break;
|
5599
5605
|
case "failed":
|
5600
|
-
if (
|
5606
|
+
if (M || !e.dataAfterTimeout)
|
5601
5607
|
return;
|
5602
5608
|
break;
|
5603
5609
|
default:
|
5604
5610
|
return;
|
5605
5611
|
}
|
5606
|
-
if (
|
5612
|
+
if (F === "abort") {
|
5607
5613
|
c = L, y();
|
5608
5614
|
return;
|
5609
5615
|
}
|
5610
|
-
if (
|
5616
|
+
if (M) {
|
5611
5617
|
c = L, p.length || (s.length ? A() : y());
|
5612
5618
|
return;
|
5613
5619
|
}
|
5614
5620
|
if (b(), C(), !e.random) {
|
5615
|
-
const
|
5616
|
-
|
5621
|
+
const P = e.resources.indexOf(k.resource);
|
5622
|
+
P !== -1 && P !== e.index && (e.index = P);
|
5617
5623
|
}
|
5618
|
-
l = "completed", v.forEach((
|
5619
|
-
|
5624
|
+
l = "completed", v.forEach((P) => {
|
5625
|
+
P(L);
|
5620
5626
|
});
|
5621
5627
|
}
|
5622
5628
|
function A() {
|
@@ -5634,14 +5640,14 @@ function sendQuery(e, t, r, n) {
|
|
5634
5640
|
y();
|
5635
5641
|
return;
|
5636
5642
|
}
|
5637
|
-
const
|
5643
|
+
const F = {
|
5638
5644
|
status: "pending",
|
5639
5645
|
resource: k,
|
5640
|
-
callback: (L,
|
5641
|
-
E(
|
5646
|
+
callback: (L, M) => {
|
5647
|
+
E(F, L, M);
|
5642
5648
|
}
|
5643
5649
|
};
|
5644
|
-
p.push(
|
5650
|
+
p.push(F), u++, g = setTimeout(A, e.rotate), r(k, t, F.callback);
|
5645
5651
|
}
|
5646
5652
|
return setTimeout(A), T;
|
5647
5653
|
}
|
@@ -6263,19 +6269,19 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6263
6269
|
!s && !b && (process.env.NODE_ENV === "production" || !a) && (n.state.value[e] = {});
|
6264
6270
|
const m = ref({});
|
6265
6271
|
function _(L) {
|
6266
|
-
let
|
6267
|
-
u = c = !1, process.env.NODE_ENV !== "production" && (v = []), typeof L == "function" ? (L(n.state.value[e]),
|
6272
|
+
let M;
|
6273
|
+
u = c = !1, process.env.NODE_ENV !== "production" && (v = []), typeof L == "function" ? (L(n.state.value[e]), M = {
|
6268
6274
|
type: MutationType.patchFunction,
|
6269
6275
|
storeId: e,
|
6270
6276
|
events: v
|
6271
|
-
}) : (mergeReactiveObjects(n.state.value[e], L),
|
6277
|
+
}) : (mergeReactiveObjects(n.state.value[e], L), M = {
|
6272
6278
|
type: MutationType.patchObject,
|
6273
6279
|
payload: L,
|
6274
6280
|
storeId: e,
|
6275
6281
|
events: v
|
6276
6282
|
}), nextTick().then(() => {
|
6277
6283
|
u = !0;
|
6278
|
-
}), c = !0, triggerSubscriptions(g,
|
6284
|
+
}), c = !0, triggerSubscriptions(g, M, n.state.value[e]);
|
6279
6285
|
}
|
6280
6286
|
const T = process.env.NODE_ENV !== "production" ? () => {
|
6281
6287
|
throw new Error(`\u{1F34D}: Store "${e}" is build using the setup syntax and does not implement $reset().`);
|
@@ -6283,30 +6289,30 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6283
6289
|
function y() {
|
6284
6290
|
o.stop(), g = [], p = [], n._s.delete(e);
|
6285
6291
|
}
|
6286
|
-
function C(L,
|
6292
|
+
function C(L, M) {
|
6287
6293
|
return function() {
|
6288
6294
|
setActivePinia(n);
|
6289
|
-
const
|
6290
|
-
function
|
6291
|
-
$.push(
|
6295
|
+
const P = Array.from(arguments), $ = [], w = [];
|
6296
|
+
function D(V) {
|
6297
|
+
$.push(V);
|
6292
6298
|
}
|
6293
|
-
function
|
6294
|
-
|
6299
|
+
function O(V) {
|
6300
|
+
w.push(V);
|
6295
6301
|
}
|
6296
6302
|
triggerSubscriptions(p, {
|
6297
|
-
args:
|
6303
|
+
args: P,
|
6298
6304
|
name: L,
|
6299
6305
|
store: k,
|
6300
|
-
after:
|
6301
|
-
onError:
|
6306
|
+
after: D,
|
6307
|
+
onError: O
|
6302
6308
|
});
|
6303
|
-
let
|
6309
|
+
let I;
|
6304
6310
|
try {
|
6305
|
-
|
6306
|
-
} catch (
|
6307
|
-
throw triggerSubscriptions(
|
6311
|
+
I = M.apply(this && this.$id === e ? this : k, P);
|
6312
|
+
} catch (V) {
|
6313
|
+
throw triggerSubscriptions(w, V), V;
|
6308
6314
|
}
|
6309
|
-
return
|
6315
|
+
return I instanceof Promise ? I.then((V) => (triggerSubscriptions($, V), V)).catch((V) => (triggerSubscriptions(w, V), Promise.reject(V))) : (triggerSubscriptions($, I), I);
|
6310
6316
|
};
|
6311
6317
|
}
|
6312
6318
|
const E = /* @__PURE__ */ markRaw({
|
@@ -6320,15 +6326,15 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6320
6326
|
$onAction: addSubscription.bind(null, p),
|
6321
6327
|
$patch: _,
|
6322
6328
|
$reset: T,
|
6323
|
-
$subscribe(L,
|
6324
|
-
const
|
6325
|
-
(
|
6329
|
+
$subscribe(L, M = {}) {
|
6330
|
+
const P = addSubscription(g, L, M.detached, () => $()), $ = o.run(() => watch(() => n.state.value[e], (w) => {
|
6331
|
+
(M.flush === "sync" ? c : u) && L({
|
6326
6332
|
storeId: e,
|
6327
6333
|
type: MutationType.direct,
|
6328
6334
|
events: v
|
6329
|
-
},
|
6330
|
-
}, assign$1({}, l,
|
6331
|
-
return
|
6335
|
+
}, w);
|
6336
|
+
}, assign$1({}, l, M)));
|
6337
|
+
return P;
|
6332
6338
|
},
|
6333
6339
|
$dispose: y
|
6334
6340
|
}, k = reactive(assign$1(
|
@@ -6339,74 +6345,74 @@ function createSetupStore(e, t, r = {}, n, a) {
|
|
6339
6345
|
A
|
6340
6346
|
));
|
6341
6347
|
n._s.set(e, k);
|
6342
|
-
const
|
6343
|
-
for (const L in
|
6344
|
-
const
|
6345
|
-
if (isRef(
|
6346
|
-
process.env.NODE_ENV !== "production" && a ? set(m.value, L, toRef(
|
6347
|
-
else if (typeof
|
6348
|
-
const
|
6349
|
-
|
6348
|
+
const F = n._e.run(() => (o = effectScope(), o.run(() => t())));
|
6349
|
+
for (const L in F) {
|
6350
|
+
const M = F[L];
|
6351
|
+
if (isRef(M) && !isComputed(M) || isReactive(M))
|
6352
|
+
process.env.NODE_ENV !== "production" && a ? set(m.value, L, toRef(F, L)) : s || (b && shouldHydrate(M) && (isRef(M) ? M.value = b[L] : mergeReactiveObjects(M, b[L])), n.state.value[e][L] = M), process.env.NODE_ENV !== "production" && E.state.push(L);
|
6353
|
+
else if (typeof M == "function") {
|
6354
|
+
const P = process.env.NODE_ENV !== "production" && a ? M : C(L, M);
|
6355
|
+
F[L] = P, process.env.NODE_ENV !== "production" && (E.actions[L] = M), i.actions[L] = M;
|
6350
6356
|
} else
|
6351
|
-
process.env.NODE_ENV !== "production" && isComputed(
|
6357
|
+
process.env.NODE_ENV !== "production" && isComputed(M) && (E.getters[L] = s ? r.getters[L] : M, IS_CLIENT && (F._getters || (F._getters = markRaw([]))).push(L));
|
6352
6358
|
}
|
6353
|
-
if (assign$1(k,
|
6359
|
+
if (assign$1(k, F), assign$1(toRaw(k), F), Object.defineProperty(k, "$state", {
|
6354
6360
|
get: () => process.env.NODE_ENV !== "production" && a ? m.value : n.state.value[e],
|
6355
6361
|
set: (L) => {
|
6356
6362
|
if (process.env.NODE_ENV !== "production" && a)
|
6357
6363
|
throw new Error("cannot set hotState");
|
6358
|
-
_((
|
6359
|
-
assign$1(
|
6364
|
+
_((M) => {
|
6365
|
+
assign$1(M, L);
|
6360
6366
|
});
|
6361
6367
|
}
|
6362
6368
|
}), process.env.NODE_ENV !== "production") {
|
6363
|
-
k._hotUpdate = markRaw((
|
6364
|
-
k._hotUpdating = !0,
|
6365
|
-
if (
|
6366
|
-
const $ =
|
6367
|
-
typeof $ == "object" && isPlainObject($) && isPlainObject(
|
6369
|
+
k._hotUpdate = markRaw((M) => {
|
6370
|
+
k._hotUpdating = !0, M._hmrPayload.state.forEach((P) => {
|
6371
|
+
if (P in k.$state) {
|
6372
|
+
const $ = M.$state[P], w = k.$state[P];
|
6373
|
+
typeof $ == "object" && isPlainObject($) && isPlainObject(w) ? patchObject($, w) : M.$state[P] = w;
|
6368
6374
|
}
|
6369
|
-
set(k,
|
6370
|
-
}), Object.keys(k.$state).forEach((
|
6371
|
-
|
6372
|
-
}), u = !1, c = !1, n.state.value[e] = toRef(
|
6375
|
+
set(k, P, toRef(M.$state, P));
|
6376
|
+
}), Object.keys(k.$state).forEach((P) => {
|
6377
|
+
P in M.$state || del(k, P);
|
6378
|
+
}), u = !1, c = !1, n.state.value[e] = toRef(M._hmrPayload, "hotState"), c = !0, nextTick().then(() => {
|
6373
6379
|
u = !0;
|
6374
6380
|
});
|
6375
|
-
for (const
|
6376
|
-
const $ =
|
6377
|
-
set(k,
|
6381
|
+
for (const P in M._hmrPayload.actions) {
|
6382
|
+
const $ = M[P];
|
6383
|
+
set(k, P, C(P, $));
|
6378
6384
|
}
|
6379
|
-
for (const
|
6380
|
-
const $ =
|
6381
|
-
set(k,
|
6385
|
+
for (const P in M._hmrPayload.getters) {
|
6386
|
+
const $ = M._hmrPayload.getters[P], w = s ? computed(() => (setActivePinia(n), $.call(k, k))) : $;
|
6387
|
+
set(k, P, w);
|
6382
6388
|
}
|
6383
|
-
Object.keys(k._hmrPayload.getters).forEach((
|
6384
|
-
|
6385
|
-
}), Object.keys(k._hmrPayload.actions).forEach((
|
6386
|
-
|
6387
|
-
}), k._hmrPayload =
|
6389
|
+
Object.keys(k._hmrPayload.getters).forEach((P) => {
|
6390
|
+
P in M._hmrPayload.getters || del(k, P);
|
6391
|
+
}), Object.keys(k._hmrPayload.actions).forEach((P) => {
|
6392
|
+
P in M._hmrPayload.actions || del(k, P);
|
6393
|
+
}), k._hmrPayload = M._hmrPayload, k._getters = M._getters, k._hotUpdating = !1;
|
6388
6394
|
});
|
6389
6395
|
const L = {
|
6390
6396
|
writable: !0,
|
6391
6397
|
configurable: !0,
|
6392
6398
|
enumerable: !1
|
6393
6399
|
};
|
6394
|
-
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((
|
6395
|
-
Object.defineProperty(k,
|
6396
|
-
value: k[
|
6400
|
+
IS_CLIENT && ["_p", "_hmrPayload", "_getters", "_customProperties"].forEach((M) => {
|
6401
|
+
Object.defineProperty(k, M, {
|
6402
|
+
value: k[M],
|
6397
6403
|
...L
|
6398
6404
|
});
|
6399
6405
|
});
|
6400
6406
|
}
|
6401
6407
|
return n._p.forEach((L) => {
|
6402
6408
|
if (process.env.NODE_ENV !== "production" && IS_CLIENT) {
|
6403
|
-
const
|
6409
|
+
const M = o.run(() => L({
|
6404
6410
|
store: k,
|
6405
6411
|
app: n._a,
|
6406
6412
|
pinia: n,
|
6407
6413
|
options: i
|
6408
6414
|
}));
|
6409
|
-
Object.keys(
|
6415
|
+
Object.keys(M || {}).forEach((P) => k._customProperties.add(P)), assign$1(k, M);
|
6410
6416
|
} else
|
6411
6417
|
assign$1(k, o.run(() => L({
|
6412
6418
|
store: k,
|
@@ -6520,13 +6526,14 @@ function pinia() {
|
|
6520
6526
|
throw new Error("[@kengic/vue] pinia \u4E3A\u7A7A.");
|
6521
6527
|
return _pinia;
|
6522
6528
|
}
|
6523
|
-
addIcon("ant-design:plus-outlined", data$
|
6524
|
-
addIcon("ant-design:edit-outlined", data$
|
6525
|
-
addIcon("ant-design:delete-outlined", data$
|
6526
|
-
addIcon("ant-design:stop-outlined", data);
|
6527
|
-
addIcon("ant-design:
|
6528
|
-
addIcon("ant-design:
|
6529
|
-
addIcon("ant-design:
|
6529
|
+
addIcon("ant-design:plus-outlined", data$2);
|
6530
|
+
addIcon("ant-design:edit-outlined", data$4);
|
6531
|
+
addIcon("ant-design:delete-outlined", data$6);
|
6532
|
+
addIcon("ant-design:stop-outlined", data$1);
|
6533
|
+
addIcon("ant-design:audit-outlined", data);
|
6534
|
+
addIcon("ant-design:check-outlined", data$7);
|
6535
|
+
addIcon("ant-design:download-outlined", data$5);
|
6536
|
+
addIcon("ant-design:info-circle-outlined", data$3);
|
6530
6537
|
function setup(e) {
|
6531
6538
|
var r;
|
6532
6539
|
if (!(e != null && e.pinia) || !(e != null && e.locale) || !(e != null && e.i18n) || !e.pFunction)
|
@@ -6775,7 +6782,7 @@ class KgRouteUtil {
|
|
6775
6782
|
}), t;
|
6776
6783
|
}
|
6777
6784
|
}
|
6778
|
-
const getProps$w = () => ({
|
6785
|
+
const KgResizable$1 = "", getProps$w = () => ({
|
6779
6786
|
kgType: {
|
6780
6787
|
type: String,
|
6781
6788
|
default: "bottom"
|
@@ -6806,7 +6813,8 @@ const getProps$w = () => ({
|
|
6806
6813
|
kgMaxHeight: {
|
6807
6814
|
type: Number,
|
6808
6815
|
default: 999
|
6809
|
-
}
|
6816
|
+
},
|
6817
|
+
kgClass: String
|
6810
6818
|
}), KgResizable = defineComponent({
|
6811
6819
|
name: "KgResizable",
|
6812
6820
|
props: getProps$w(),
|
@@ -6850,8 +6858,8 @@ const getProps$w = () => ({
|
|
6850
6858
|
};
|
6851
6859
|
}
|
6852
6860
|
}), c = computed(() => {
|
6853
|
-
let y = "
|
6854
|
-
switch (e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
|
6861
|
+
let y = "";
|
6862
|
+
switch (e.kgClass && (y += `${e.kgClass} `), y += "kg-resizable", e.kgDisabled && (y += " kg-resizable--disabled"), e.kgType) {
|
6855
6863
|
case "left":
|
6856
6864
|
y += " kg-resizable--left";
|
6857
6865
|
break;
|
@@ -7141,7 +7149,7 @@ const getProps$v = () => ({ ...formProps() }), DI_FORM_MODEL = Symbol("DI_FORM_M
|
|
7141
7149
|
function v() {
|
7142
7150
|
var b, m, _, T, y, C, E;
|
7143
7151
|
if (c.value) {
|
7144
|
-
const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = A.map((
|
7152
|
+
const A = (m = (b = l.selectedRows) == null ? void 0 : b.value) != null ? m : [], k = (_ = A.map((F) => F[g.value])) != null ? _ : [];
|
7145
7153
|
(!i || i(k, A)) && (r("kgOk", k, A), r("update:visible", !1));
|
7146
7154
|
} else {
|
7147
7155
|
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 : "";
|
@@ -7295,7 +7303,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7295
7303
|
var A, k;
|
7296
7304
|
const E = get(y, "length", 0);
|
7297
7305
|
if (E > 0 && C.length > 0) {
|
7298
|
-
const
|
7306
|
+
const F = (k = (A = g.value) == null ? void 0 : A.val_clm) != null ? k : "", L = intersection$1(y, C == null ? void 0 : C.map((M) => M[F]));
|
7299
7307
|
if (L.length < E) {
|
7300
7308
|
r("update:value", L);
|
7301
7309
|
return;
|
@@ -7316,8 +7324,8 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7316
7324
|
immediate: !0
|
7317
7325
|
});
|
7318
7326
|
async function m() {
|
7319
|
-
var
|
7320
|
-
const y = (
|
7327
|
+
var F, L, M, P, $, w, D, O, I;
|
7328
|
+
const y = (F = g.value) == null ? void 0 : F.cmd, C = (M = (L = g.value) == null ? void 0 : L.cmd_method) != null ? M : "GET", E = ($ = (P = g.value) == null ? void 0 : P.val_clm) != null ? $ : "", A = (D = (w = g.value) == null ? void 0 : w.lbl_clm) != null ? D : "";
|
7321
7329
|
if (!y || !E || !A) {
|
7322
7330
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7323
7331
|
frm_id: a.formID,
|
@@ -7330,7 +7338,7 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7330
7338
|
}
|
7331
7339
|
let k = null;
|
7332
7340
|
try {
|
7333
|
-
k = await ((
|
7341
|
+
k = await ((O = httpClient()) == null ? void 0 : O.request({
|
7334
7342
|
url: y,
|
7335
7343
|
method: C,
|
7336
7344
|
params: v.value,
|
@@ -7350,23 +7358,23 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7350
7358
|
break;
|
7351
7359
|
}
|
7352
7360
|
if (c.value.length > 0) {
|
7353
|
-
const
|
7354
|
-
(!(E in
|
7361
|
+
const V = c.value[0];
|
7362
|
+
(!(E in V) || !(A in V)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7355
7363
|
frm_id: a.formID,
|
7356
7364
|
var_nam: e.kgVarName,
|
7357
7365
|
cmd: y,
|
7358
7366
|
val_clm: E,
|
7359
7367
|
lbl_clm: A,
|
7360
|
-
\u6240\u6709\u5217: Object.keys(
|
7368
|
+
\u6240\u6709\u5217: Object.keys(V)
|
7361
7369
|
});
|
7362
7370
|
}
|
7363
|
-
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((
|
7371
|
+
r("kgCheckboxGroupDatasChange", c.value), r("update:value", intersection$1((I = c.value) == null ? void 0 : I.map((V) => V[E]), e.value));
|
7364
7372
|
}
|
7365
7373
|
function _(y) {
|
7366
7374
|
var C, E, A;
|
7367
7375
|
y.target.checked ? T((E = (C = c.value) == null ? void 0 : C.map((k) => {
|
7368
|
-
var
|
7369
|
-
return k[(L = (
|
7376
|
+
var F, L;
|
7377
|
+
return k[(L = (F = g.value) == null ? void 0 : F.val_clm) != null ? L : ""];
|
7370
7378
|
})) != null ? E : []) : T([]), u.value = !1, (A = o.value) == null || A.validate(e.kgVarName);
|
7371
7379
|
}
|
7372
7380
|
function T(y) {
|
@@ -7397,14 +7405,14 @@ const KgFormItemCheckboxGroup = defineComponent({
|
|
7397
7405
|
span: (k = (A = b.value) == null ? void 0 : A.span) != null ? k : 24
|
7398
7406
|
}, {
|
7399
7407
|
default: () => {
|
7400
|
-
var
|
7408
|
+
var F, L, M, P;
|
7401
7409
|
return [createVNode(Checkbox, {
|
7402
|
-
value: E[(L = (
|
7403
|
-
"kg-value": E[(
|
7410
|
+
value: E[(L = (F = g.value) == null ? void 0 : F.val_clm) != null ? L : ""],
|
7411
|
+
"kg-value": E[(P = (M = g.value) == null ? void 0 : M.val_clm) != null ? P : ""]
|
7404
7412
|
}, {
|
7405
7413
|
default: () => {
|
7406
|
-
var $,
|
7407
|
-
return [E[(
|
7414
|
+
var $, w;
|
7415
|
+
return [E[(w = ($ = g.value) == null ? void 0 : $.lbl_clm) != null ? w : ""]];
|
7408
7416
|
}
|
7409
7417
|
})];
|
7410
7418
|
}
|
@@ -7594,8 +7602,8 @@ const KgFormItemSelect = defineComponent({
|
|
7594
7602
|
immediate: !0
|
7595
7603
|
});
|
7596
7604
|
async function u() {
|
7597
|
-
var T, y, C, E, A, k,
|
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 = (
|
7605
|
+
var T, y, C, E, A, k, F, L;
|
7606
|
+
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 = (F = (k = i.value) == null ? void 0 : k.lbl_clm) != null ? F : "";
|
7599
7607
|
if (!p || !b || !m) {
|
7600
7608
|
Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF.", {
|
7601
7609
|
frm_id: n.formID,
|
@@ -7627,17 +7635,17 @@ const KgFormItemSelect = defineComponent({
|
|
7627
7635
|
break;
|
7628
7636
|
}
|
7629
7637
|
if (s.value.length > 0) {
|
7630
|
-
const
|
7631
|
-
(!(b in
|
7638
|
+
const M = s.value[0];
|
7639
|
+
(!(b in M) || !(m in M)) && Logger.error("\u4E0B\u62C9\u5217\u8868\u914D\u7F6E\u6709\u8BEF, \u6570\u636E\u5217(val_clm)\u6216\u663E\u793A\u5217(lbl_clm)\u6709\u8BEF.", {
|
7632
7640
|
frm_id: n.formID,
|
7633
7641
|
var_nam: e.kgVarName,
|
7634
7642
|
cmd: p,
|
7635
7643
|
val_clm: b,
|
7636
7644
|
lbl_clm: m,
|
7637
|
-
\u6240\u6709\u5217: Object.keys(
|
7645
|
+
\u6240\u6709\u5217: Object.keys(M)
|
7638
7646
|
});
|
7639
7647
|
}
|
7640
|
-
r("kgSelectDatasChange", s.value), s.value.find((
|
7648
|
+
r("kgSelectDatasChange", s.value), s.value.find((M) => M[b] === e.value) || r("update:value", void 0);
|
7641
7649
|
}
|
7642
7650
|
function c(p) {
|
7643
7651
|
var b;
|
@@ -7772,7 +7780,7 @@ const KgFormItem = defineComponent({
|
|
7772
7780
|
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)), {
|
7773
7781
|
rules: v
|
7774
7782
|
} = _useRules(e), b = computed(() => {
|
7775
|
-
var
|
7783
|
+
var w, D, O, I, V;
|
7776
7784
|
if (n.isRetrievingVar.value)
|
7777
7785
|
return !0;
|
7778
7786
|
let $ = !1;
|
@@ -7781,95 +7789,95 @@ const KgFormItem = defineComponent({
|
|
7781
7789
|
else
|
7782
7790
|
switch (e.kgContext) {
|
7783
7791
|
case KG_FORM_CONTEXT.SEARCH:
|
7784
|
-
$ = ((
|
7792
|
+
$ = ((w = g.value) == null ? void 0 : w.ena_flg) === 0;
|
7785
7793
|
break;
|
7786
7794
|
case KG_FORM_CONTEXT.SUBMIT:
|
7787
7795
|
switch (!0) {
|
7788
7796
|
case n.isCreating.value:
|
7789
|
-
$ = ((
|
7797
|
+
$ = ((D = p.value) == null ? void 0 : D.crt_ena_flg) === 0;
|
7790
7798
|
break;
|
7791
7799
|
case n.isUpdating.value:
|
7792
|
-
$ = ((
|
7800
|
+
$ = ((O = p.value) == null ? void 0 : O.upt_ena_flg) === 0;
|
7793
7801
|
break;
|
7794
7802
|
case n.isCopying.value:
|
7795
|
-
$ = ((
|
7803
|
+
$ = ((I = p.value) == null ? void 0 : I.cpy_ena_flg) === 0;
|
7796
7804
|
break;
|
7797
7805
|
case n.isDeleting.value:
|
7798
|
-
$ = ((
|
7806
|
+
$ = ((V = p.value) == null ? void 0 : V.del_ena_flg) === 0;
|
7799
7807
|
break;
|
7800
7808
|
}
|
7801
7809
|
break;
|
7802
7810
|
}
|
7803
7811
|
return $;
|
7804
7812
|
}), m = computed(() => {
|
7805
|
-
var
|
7813
|
+
var w, D, O, I;
|
7806
7814
|
let $ = " ";
|
7807
7815
|
if (e.kgPlaceholder)
|
7808
7816
|
$ = e.kgPlaceholder;
|
7809
7817
|
else
|
7810
7818
|
switch (e.kgContext) {
|
7811
7819
|
case KG_FORM_CONTEXT.SEARCH:
|
7812
|
-
$ = n.t((
|
7820
|
+
$ = n.t((D = (w = g.value) == null ? void 0 : w.placeholder) != null ? D : " ").value;
|
7813
7821
|
break;
|
7814
7822
|
case KG_FORM_CONTEXT.SUBMIT:
|
7815
|
-
$ = n.t((
|
7823
|
+
$ = n.t((I = (O = p.value) == null ? void 0 : O.placeholder) != null ? I : " ").value;
|
7816
7824
|
break;
|
7817
7825
|
}
|
7818
7826
|
return $;
|
7819
7827
|
}), _ = computed(() => {
|
7820
|
-
var
|
7828
|
+
var w, D, O, I, V, R, H, G, x, U;
|
7821
7829
|
let $ = 6;
|
7822
7830
|
if (e.kgSpan !== void 0)
|
7823
7831
|
$ = e.kgSpan;
|
7824
7832
|
else
|
7825
7833
|
switch (e.kgContext) {
|
7826
7834
|
case KG_FORM_CONTEXT.SEARCH:
|
7827
|
-
$ = (
|
7835
|
+
$ = (D = (w = g.value) == null ? void 0 : w.width) != null ? D : 6;
|
7828
7836
|
break;
|
7829
7837
|
case KG_FORM_CONTEXT.SUBMIT:
|
7830
7838
|
switch (!0) {
|
7831
7839
|
case n.isCreating.value:
|
7832
|
-
$ = (
|
7840
|
+
$ = (I = (O = p.value) == null ? void 0 : O.crt_width) != null ? I : 6;
|
7833
7841
|
break;
|
7834
7842
|
case n.isUpdating.value:
|
7835
|
-
$ = (
|
7843
|
+
$ = (R = (V = p.value) == null ? void 0 : V.upt_width) != null ? R : 6;
|
7836
7844
|
break;
|
7837
7845
|
case n.isCopying.value:
|
7838
|
-
$ = (
|
7846
|
+
$ = (G = (H = p.value) == null ? void 0 : H.cpy_width) != null ? G : 6;
|
7839
7847
|
break;
|
7840
7848
|
case n.isDeleting.value:
|
7841
|
-
$ = (
|
7849
|
+
$ = (U = (x = p.value) == null ? void 0 : x.del_width) != null ? U : 6;
|
7842
7850
|
break;
|
7843
7851
|
}
|
7844
7852
|
}
|
7845
7853
|
return Math.min(24, Math.max(1, $));
|
7846
7854
|
}), T = computed(() => {
|
7847
|
-
var
|
7855
|
+
var O, I;
|
7848
7856
|
const $ = get(k.value, "$el.parentElement");
|
7849
|
-
if ($ && !((
|
7857
|
+
if ($ && !((O = $.classList) != null && O.contains("ant-row")))
|
7850
7858
|
throw new Error("<KgForm.Item> \u7684\u7236\u5143\u7D20\u5FC5\u987B\u662F <Row> \u6216\u8005 <a-row>.");
|
7851
|
-
let
|
7852
|
-
const
|
7853
|
-
return Number.isNaN(
|
7854
|
-
paddingLeft: `${
|
7855
|
-
paddingRight: `${
|
7856
|
-
}),
|
7859
|
+
let w = {};
|
7860
|
+
const D = Math.abs(Number.parseInt((I = get(k.value, "$el.parentElement.style.marginLeft")) != null ? I : "0px"));
|
7861
|
+
return Number.isNaN(D) || (w = {
|
7862
|
+
paddingLeft: `${D}px !important`,
|
7863
|
+
paddingRight: `${D}px !important`
|
7864
|
+
}), w;
|
7857
7865
|
}), y = computed(() => {
|
7858
|
-
var
|
7866
|
+
var w, D, O, I;
|
7859
7867
|
let $ = "kg-form-item";
|
7860
7868
|
switch (u.value && ($ += " kg-form-item-lookup"), e.kgContext) {
|
7861
7869
|
case KG_FORM_CONTEXT.SEARCH:
|
7862
7870
|
switch (!0) {
|
7863
|
-
case ((
|
7871
|
+
case ((w = g.value) == null ? void 0 : w.vis_flg) === 0:
|
7864
7872
|
$ += " kg-form-item--invisible";
|
7865
7873
|
break;
|
7866
7874
|
}
|
7867
7875
|
break;
|
7868
7876
|
case KG_FORM_CONTEXT.SUBMIT:
|
7869
7877
|
switch (!0) {
|
7870
|
-
case (s.value && ((
|
7871
|
-
case (i.value && ((
|
7872
|
-
case (l.value && ((
|
7878
|
+
case (s.value && ((D = p.value) == null ? void 0 : D.crt_vis_flg) === 0):
|
7879
|
+
case (i.value && ((O = p.value) == null ? void 0 : O.upt_vis_flg) === 0):
|
7880
|
+
case (l.value && ((I = p.value) == null ? void 0 : I.cpy_vis_flg) === 0):
|
7873
7881
|
$ += " kg-form-item--invisible";
|
7874
7882
|
break;
|
7875
7883
|
}
|
@@ -7877,12 +7885,12 @@ const KgFormItem = defineComponent({
|
|
7877
7885
|
}
|
7878
7886
|
return $;
|
7879
7887
|
}), C = computed(() => {
|
7880
|
-
var
|
7888
|
+
var w;
|
7881
7889
|
const $ = {
|
7882
7890
|
...e,
|
7883
|
-
value: (
|
7884
|
-
"onUpdate:value": (
|
7885
|
-
a.value && (a.value[e.kgVarName] =
|
7891
|
+
value: (w = a.value) == null ? void 0 : w[e.kgVarName],
|
7892
|
+
"onUpdate:value": (D) => {
|
7893
|
+
a.value && (a.value[e.kgVarName] = D);
|
7886
7894
|
},
|
7887
7895
|
kgPlaceholder: m.value,
|
7888
7896
|
kgDisabled: b.value,
|
@@ -7913,9 +7921,9 @@ const KgFormItem = defineComponent({
|
|
7913
7921
|
var $;
|
7914
7922
|
return ($ = c.value) == null ? void 0 : $.ctrl_typ;
|
7915
7923
|
}), A = computed(() => encodeURIComponent(`${e.kgContext}~${n.formID}~${e.kgVarName}`)), k = ref(null);
|
7916
|
-
function
|
7917
|
-
var
|
7918
|
-
a.value && (a.value[e.kgVarName] = $), r("kgLookupChange",
|
7924
|
+
function F($, w) {
|
7925
|
+
var D;
|
7926
|
+
a.value && (a.value[e.kgVarName] = $), r("kgLookupChange", w), (D = o.value) == null || D.validate([e.kgVarName]);
|
7919
7927
|
}
|
7920
7928
|
function L() {
|
7921
7929
|
if (t.control) {
|
@@ -7958,29 +7966,29 @@ const KgFormItem = defineComponent({
|
|
7958
7966
|
return createVNode(KgFormItemInput, C.value, null);
|
7959
7967
|
}
|
7960
7968
|
}
|
7961
|
-
function
|
7969
|
+
function M() {
|
7962
7970
|
return e.kgShowLabel ? createVNode("span", {
|
7963
7971
|
title: n.t(e.kgVarName).value
|
7964
7972
|
}, [n.t(e.kgVarName).value]) : null;
|
7965
7973
|
}
|
7966
|
-
function
|
7974
|
+
function P() {
|
7967
7975
|
var $;
|
7968
7976
|
return !u.value || !(($ = u.value) != null && $.lkp_id) ? null : createVNode(Form.ItemRest, null, {
|
7969
7977
|
default: () => [createVNode(KgFormItemAddonLookup, {
|
7970
7978
|
kgDisabled: b.value,
|
7971
|
-
onKgOk:
|
7979
|
+
onKgOk: F,
|
7972
7980
|
kgLookupID: u.value.lkp_id
|
7973
7981
|
}, null)]
|
7974
7982
|
});
|
7975
7983
|
}
|
7976
7984
|
return () => {
|
7977
|
-
var $,
|
7985
|
+
var $, w;
|
7978
7986
|
return createVNode(Col, {
|
7979
7987
|
ref: k,
|
7980
7988
|
"kg-frm-id": n.formID,
|
7981
7989
|
"kg-var-nam": e.kgVarName,
|
7982
7990
|
"kg-lkp-id": ($ = u.value) == null ? void 0 : $.lkp_id,
|
7983
|
-
"kg-lkp-ret-fld": (
|
7991
|
+
"kg-lkp-ret-fld": (w = u.value) == null ? void 0 : w.ret_fld,
|
7984
7992
|
span: _.value,
|
7985
7993
|
class: y.value,
|
7986
7994
|
style: T.value
|
@@ -7991,8 +7999,8 @@ const KgFormItem = defineComponent({
|
|
7991
7999
|
validateFirst: !0,
|
7992
8000
|
htmlFor: A.value
|
7993
8001
|
}, {
|
7994
|
-
default: () => createVNode(Fragment, null, [L(),
|
7995
|
-
label: () =>
|
8002
|
+
default: () => createVNode(Fragment, null, [L(), P()]),
|
8003
|
+
label: () => M()
|
7996
8004
|
})]
|
7997
8005
|
});
|
7998
8006
|
};
|
@@ -9348,12 +9356,12 @@ function useKgVar(e, t, r = 0) {
|
|
9348
9356
|
i.leave(s);
|
9349
9357
|
}));
|
9350
9358
|
const l = ($) => computed(() => {
|
9351
|
-
var
|
9352
|
-
return (
|
9359
|
+
var w, D, O;
|
9360
|
+
return (O = (D = (w = i.getVarCatalog(s, $)) == null ? void 0 : w.var_text) != null ? D : $) != null ? O : "";
|
9353
9361
|
}), 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(() => {
|
9354
|
-
var $,
|
9355
|
-
return (
|
9356
|
-
}), k = computed(() => i.getVarGridConfig(s)),
|
9362
|
+
var $, w;
|
9363
|
+
return (w = ($ = C.value) == null ? void 0 : $.varProfileDetails) != null ? w : null;
|
9364
|
+
}), k = computed(() => i.getVarGridConfig(s)), F = computed(() => i.getVarGridMasters(s)), L = computed(() => i.getCurrentVarGridMaster(s)), M = computed(() => i.getSystemVarGridDetails(s)), P = computed(() => i.getCurrentVarGridDetails(s));
|
9357
9365
|
return {
|
9358
9366
|
formID: s,
|
9359
9367
|
store: i,
|
@@ -9371,10 +9379,10 @@ function useKgVar(e, t, r = 0) {
|
|
9371
9379
|
currentVarProfileMasterID: E,
|
9372
9380
|
currentVarProfileDetails: A,
|
9373
9381
|
varGridConfig: k,
|
9374
|
-
varGridMasters:
|
9382
|
+
varGridMasters: F,
|
9375
9383
|
currentVarGridMaster: L,
|
9376
|
-
systemVarGridDetails:
|
9377
|
-
currentVarGridDetails:
|
9384
|
+
systemVarGridDetails: M,
|
9385
|
+
currentVarGridDetails: P,
|
9378
9386
|
t: l,
|
9379
9387
|
onReady: o
|
9380
9388
|
};
|
@@ -9611,8 +9619,8 @@ const KgSubmit_Header = "", FORM_ID__VAR_SUBMIT_CONFIG = "kg-submit.VarSubmitCon
|
|
9611
9619
|
}) => {
|
9612
9620
|
const c = o.store.getVarSubmitConfig(o.formID);
|
9613
9621
|
return i = watch(u, (g) => {
|
9614
|
-
var p, v, b, m, _, T, y, C, E, A, k,
|
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 = (
|
9622
|
+
var p, v, b, m, _, T, y, C, E, A, k, F;
|
9623
|
+
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 = (F = c == null ? void 0 : c.display_type) != null ? F : KG_VAR_SUBMIT__DISPLAY_TYPE.DRAWER);
|
9616
9624
|
}, {
|
9617
9625
|
immediate: !0
|
9618
9626
|
}), !1;
|
@@ -9712,7 +9720,7 @@ function _useFormModel() {
|
|
9712
9720
|
if (v.value = {}, b != null && b.length) {
|
9713
9721
|
const m = r.selectedRow.value;
|
9714
9722
|
b.forEach((_) => {
|
9715
|
-
var y, C, E, A, k,
|
9723
|
+
var y, C, E, A, k, F, L, M;
|
9716
9724
|
const T = (y = _.var_nam) != null ? y : "";
|
9717
9725
|
switch (v.value[T] = void 0, !0) {
|
9718
9726
|
case a.value:
|
@@ -9722,10 +9730,10 @@ function _useFormModel() {
|
|
9722
9730
|
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);
|
9723
9731
|
break;
|
9724
9732
|
case s.value:
|
9725
|
-
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (
|
9733
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (F = (k = _.cpy_dft_val) != null ? k : m == null ? void 0 : m[T]) != null ? F : void 0);
|
9726
9734
|
break;
|
9727
9735
|
case i.value:
|
9728
|
-
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (
|
9736
|
+
v.value.id = m == null ? void 0 : m.id, v.value[T] = KgVarUtil.transformValueByControlType(t.formID, T, e, (M = (L = _.del_dft_val) != null ? L : m == null ? void 0 : m[T]) != null ? M : void 0);
|
9729
9737
|
break;
|
9730
9738
|
}
|
9731
9739
|
});
|
@@ -9901,63 +9909,63 @@ const getProps$p = () => ({
|
|
9901
9909
|
}) {
|
9902
9910
|
const r = inject("$dayjs", dayjs), n = useKg(), a = useKgVar(), o = useKgTable(), s = useKgSubmit(), i = useKgSearch(), l = inject(DI_KG_SLOTS, null);
|
9903
9911
|
_useFormModel();
|
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 &&
|
9905
|
-
var B,
|
9912
|
+
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 && w.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)), F = computed(() => a.store.getVarSubmitFieldsForUpdateNotKey(a.formID)), L = computed(() => a.store.getVarSubmitFieldsForCopyKey(a.formID)), M = computed(() => a.store.getVarSubmitFieldsForCopyNotKey(a.formID)), P = computed(() => a.store.getVarSubmitFieldsForDelete(a.formID)), $ = computed(() => {
|
9913
|
+
var B, z, Q;
|
9906
9914
|
switch (!0) {
|
9907
9915
|
case u.value:
|
9908
9916
|
return (B = E.value) != null ? B : [];
|
9909
9917
|
case c.value:
|
9910
|
-
return (
|
9918
|
+
return (z = k.value) != null ? z : [];
|
9911
9919
|
case g.value:
|
9912
9920
|
return (Q = L.value) != null ? Q : [];
|
9913
9921
|
case p.value:
|
9914
9922
|
return [];
|
9915
9923
|
}
|
9916
9924
|
return [];
|
9917
|
-
}),
|
9918
|
-
var B,
|
9925
|
+
}), w = computed(() => {
|
9926
|
+
var B, z, Q, re;
|
9919
9927
|
switch (!0) {
|
9920
9928
|
case u.value:
|
9921
9929
|
return (B = A.value) != null ? B : [];
|
9922
9930
|
case c.value:
|
9923
|
-
return (
|
9931
|
+
return (z = F.value) != null ? z : [];
|
9924
9932
|
case g.value:
|
9925
|
-
return (Q =
|
9933
|
+
return (Q = M.value) != null ? Q : [];
|
9926
9934
|
case p.value:
|
9927
|
-
return (re =
|
9935
|
+
return (re = P.value) != null ? re : [];
|
9928
9936
|
}
|
9929
9937
|
return [];
|
9930
|
-
}),
|
9938
|
+
}), D = computed(() => !!a.store.isCreatingRequesting(a.formID) || !!a.store.isUpdatingRequesting(a.formID) || !!a.store.isCopyingRequesting(a.formID) || !!a.store.isDeletingRequesting(a.formID)), O = computed(() => D.value || y.value), I = computed(() => y.value), V = ref({
|
9931
9939
|
kgWidth: 0
|
9932
|
-
}),
|
9940
|
+
}), R = computed(() => {
|
9933
9941
|
var B;
|
9934
9942
|
return !!(v.value || ie.isFullscreen || ((B = C.value) == null ? void 0 : B.resizable_flg) === 0);
|
9935
9943
|
}), H = computed(() => {
|
9936
|
-
var B,
|
9937
|
-
return v.value ? 398 : (
|
9938
|
-
}),
|
9939
|
-
var B,
|
9940
|
-
return v.value ? 398 : (
|
9941
|
-
}), x = computed(() => v.value ? 398 :
|
9942
|
-
_useResizeObserver$1(
|
9943
|
-
const Z = _useTitle(), ne = computed(() => v.value ? 400 :
|
9944
|
+
var B, z;
|
9945
|
+
return v.value ? 398 : (z = (B = C.value) == null ? void 0 : B.min_width) != null ? z : DEFAULT_MIN_WIDTH;
|
9946
|
+
}), G = computed(() => {
|
9947
|
+
var B, z;
|
9948
|
+
return v.value ? 398 : (z = (B = C.value) == null ? void 0 : B.max_width) != null ? z : DEFAULT_MAX_WIDTH;
|
9949
|
+
}), x = computed(() => v.value ? 398 : V.value.kgWidth), U = ref(null), q = ref({}), J = ref(null);
|
9950
|
+
_useResizeObserver$1(J);
|
9951
|
+
const Z = _useTitle(), ne = computed(() => v.value ? 400 : V.value.kgWidth && V.value.kgWidth > 0 ? V.value.kgWidth + 2 : 0), oe = computed(() => ne.value === 0 ? !1 : !!(u.value || c.value || g.value || p.value)), ie = reactive({
|
9944
9952
|
isFullscreen: !1
|
9945
9953
|
}), {
|
9946
|
-
getDisplayType:
|
9954
|
+
getDisplayType: pe
|
9947
9955
|
} = _useDisplayType(), {
|
9948
9956
|
getClass: te
|
9949
9957
|
} = _useClass(e, ie), {
|
9950
|
-
getLayout:
|
9958
|
+
getLayout: le
|
9951
9959
|
} = _useLayout(), {
|
9952
|
-
getDefaultWidth:
|
9953
|
-
} = _useDefaultWidth(),
|
9954
|
-
var B,
|
9955
|
-
switch (
|
9960
|
+
getDefaultWidth: N
|
9961
|
+
} = _useDefaultWidth(), K = computed(() => {
|
9962
|
+
var B, z, Q;
|
9963
|
+
switch (le.value) {
|
9956
9964
|
case "horizontal":
|
9957
9965
|
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9958
9966
|
case KG_WIDTH_UNIT.SPAN:
|
9959
9967
|
return {
|
9960
|
-
span: (
|
9968
|
+
span: (z = C.value) == null ? void 0 : z.label_col
|
9961
9969
|
};
|
9962
9970
|
default:
|
9963
9971
|
return {
|
@@ -9969,14 +9977,14 @@ const getProps$p = () => ({
|
|
9969
9977
|
default:
|
9970
9978
|
return;
|
9971
9979
|
}
|
9972
|
-
}),
|
9973
|
-
var B,
|
9974
|
-
switch (
|
9980
|
+
}), W = computed(() => {
|
9981
|
+
var B, z;
|
9982
|
+
switch (le.value) {
|
9975
9983
|
case "horizontal":
|
9976
9984
|
switch ((B = C.value) == null ? void 0 : B.label_col_unit) {
|
9977
9985
|
case KG_WIDTH_UNIT.SPAN:
|
9978
9986
|
return {
|
9979
|
-
span: 24 - ((
|
9987
|
+
span: 24 - ((z = C.value) == null ? void 0 : z.label_col)
|
9980
9988
|
};
|
9981
9989
|
default:
|
9982
9990
|
return;
|
@@ -9985,17 +9993,17 @@ const getProps$p = () => ({
|
|
9985
9993
|
return;
|
9986
9994
|
}
|
9987
9995
|
});
|
9988
|
-
watch(oe, (B,
|
9989
|
-
B === !0 &&
|
9996
|
+
watch(oe, (B, z) => {
|
9997
|
+
B === !0 && Y(), z === !0 && B === !1 && ae();
|
9990
9998
|
}, {
|
9991
9999
|
immediate: !0
|
9992
|
-
}), watch(
|
9993
|
-
B && (
|
10000
|
+
}), watch(N, (B) => {
|
10001
|
+
B && (V.value.kgWidth = B);
|
9994
10002
|
}, {
|
9995
10003
|
immediate: !0
|
9996
10004
|
});
|
9997
|
-
function
|
9998
|
-
var
|
10005
|
+
function Y() {
|
10006
|
+
var z;
|
9999
10007
|
const B = watch(s.model, (Q) => {
|
10000
10008
|
Q && Object.keys(Q).length > 0 && (setTimeout(() => B()), s.store.emit(a.formID, "open", {
|
10001
10009
|
isCreating: u.value,
|
@@ -10008,12 +10016,12 @@ const getProps$p = () => ({
|
|
10008
10016
|
}, {
|
10009
10017
|
immediate: !0
|
10010
10018
|
});
|
10011
|
-
((
|
10019
|
+
((z = C.value) == null ? void 0 : z.dft_fullscreen_flg) === 1 && !v.value && (ie.isFullscreen = !0);
|
10012
10020
|
}
|
10013
|
-
function
|
10014
|
-
|
10021
|
+
function ae() {
|
10022
|
+
V.value.kgWidth = N.value, ie.isFullscreen = !1, s.store.emit(a.formID, "close");
|
10015
10023
|
}
|
10016
|
-
function
|
10024
|
+
function X() {
|
10017
10025
|
switch (!0) {
|
10018
10026
|
case u.value:
|
10019
10027
|
a.store.setIsCreating(a.formID, !1);
|
@@ -10029,8 +10037,8 @@ const getProps$p = () => ({
|
|
10029
10037
|
break;
|
10030
10038
|
}
|
10031
10039
|
}
|
10032
|
-
async function
|
10033
|
-
var B,
|
10040
|
+
async function me() {
|
10041
|
+
var B, z;
|
10034
10042
|
try {
|
10035
10043
|
if (await s.store.emit(a.formID, "beforeOk", {
|
10036
10044
|
isCreating: u.value,
|
@@ -10043,11 +10051,11 @@ const getProps$p = () => ({
|
|
10043
10051
|
}))
|
10044
10052
|
return;
|
10045
10053
|
try {
|
10046
|
-
await ((B =
|
10054
|
+
await ((B = U.value) == null ? void 0 : B.validate());
|
10047
10055
|
} catch (se) {
|
10048
10056
|
KgUtil.throwIfNotFormError(se);
|
10049
10057
|
}
|
10050
|
-
if (await ((
|
10058
|
+
if (await ((z = U.value) == null ? void 0 : z.validate()), await s.store.emit(a.formID, "afterValidate", {
|
10051
10059
|
isCreating: u.value,
|
10052
10060
|
isUpdating: c.value,
|
10053
10061
|
isCopying: g.value,
|
@@ -10059,7 +10067,7 @@ const getProps$p = () => ({
|
|
10059
10067
|
return;
|
10060
10068
|
switch (!0) {
|
10061
10069
|
case u.value:
|
10062
|
-
await
|
10070
|
+
await ve();
|
10063
10071
|
break;
|
10064
10072
|
case c.value:
|
10065
10073
|
await Te();
|
@@ -10075,9 +10083,9 @@ const getProps$p = () => ({
|
|
10075
10083
|
KgUtil.throwIfNotFormError(Q);
|
10076
10084
|
}
|
10077
10085
|
}
|
10078
|
-
async function
|
10079
|
-
var
|
10080
|
-
const B = (
|
10086
|
+
async function ve() {
|
10087
|
+
var z, Q, re, se, ue, ce, de, fe;
|
10088
|
+
const B = (z = b.value) == null ? void 0 : z.cmd;
|
10081
10089
|
if (!B) {
|
10082
10090
|
Logger.error("[KgSubmit] \u521B\u5EFA\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10083
10091
|
VarButton: b.value
|
@@ -10086,7 +10094,7 @@ const getProps$p = () => ({
|
|
10086
10094
|
}
|
10087
10095
|
a.store.setIsCreatingRequesting(a.formID, !0);
|
10088
10096
|
try {
|
10089
|
-
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), a.formID, r)),
|
10097
|
+
let ee = ref(KgUtil.parseParams(KgVarUtil.parseCommandParameter((re = (Q = b.value) == null ? void 0 : Q.cmd_prm) != null ? re : ""), a.formID, r)), ge = ref(KgUtil.parseParams(toRaw(s.model.value), a.formID, r));
|
10090
10098
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10091
10099
|
isCreating: u.value,
|
10092
10100
|
isUpdating: c.value,
|
@@ -10096,15 +10104,15 @@ const getProps$p = () => ({
|
|
10096
10104
|
rows: o.selectedRows.value,
|
10097
10105
|
model: s.model,
|
10098
10106
|
params: ee,
|
10099
|
-
data:
|
10107
|
+
data: ge
|
10100
10108
|
}))
|
10101
10109
|
return;
|
10102
10110
|
await httpClient().request({
|
10103
|
-
method: (
|
10111
|
+
method: (ue = (se = b.value) == null ? void 0 : se.cmd_method) != null ? ue : "POST",
|
10104
10112
|
url: B,
|
10105
10113
|
params: ee.value,
|
10106
|
-
data:
|
10107
|
-
}), ((
|
10114
|
+
data: ge.value
|
10115
|
+
}), ((ce = b.value) == null ? void 0 : ce.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), (fe = (de = i.search).value) == null || fe.call(de, !0);
|
10108
10116
|
} catch (ee) {
|
10109
10117
|
console.error(ee);
|
10110
10118
|
} finally {
|
@@ -10112,8 +10120,8 @@ const getProps$p = () => ({
|
|
10112
10120
|
}
|
10113
10121
|
}
|
10114
10122
|
async function Te() {
|
10115
|
-
var
|
10116
|
-
const B = (
|
10123
|
+
var z, Q, re, se, ue, ce, de, fe;
|
10124
|
+
const B = (z = m.value) == null ? void 0 : z.cmd;
|
10117
10125
|
if (!B) {
|
10118
10126
|
Logger.error("[KgSubmit] \u66F4\u65B0\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10119
10127
|
VarButton: m.value
|
@@ -10122,7 +10130,7 @@ const getProps$p = () => ({
|
|
10122
10130
|
}
|
10123
10131
|
try {
|
10124
10132
|
a.store.setIsUpdatingRequesting(a.formID, !0);
|
10125
|
-
let ee = ref(KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")),
|
10133
|
+
let ee = ref(KgVarUtil.parseCommandParameter((re = (Q = m.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), ge = ref(toRaw(s.model.value));
|
10126
10134
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10127
10135
|
isCreating: u.value,
|
10128
10136
|
isUpdating: c.value,
|
@@ -10132,15 +10140,15 @@ const getProps$p = () => ({
|
|
10132
10140
|
rows: o.selectedRows.value,
|
10133
10141
|
model: s.model,
|
10134
10142
|
params: ee,
|
10135
|
-
data:
|
10143
|
+
data: ge
|
10136
10144
|
}))
|
10137
10145
|
return;
|
10138
10146
|
await httpClient().request({
|
10139
|
-
method: (
|
10147
|
+
method: (ue = (se = m.value) == null ? void 0 : se.cmd_method) != null ? ue : "POST",
|
10140
10148
|
url: B,
|
10141
10149
|
params: ee.value,
|
10142
|
-
data:
|
10143
|
-
}), ((
|
10150
|
+
data: ge.value
|
10151
|
+
}), ((ce = m.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.updateSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsUpdating(a.formID, !1), (fe = (de = i.search).value) == null || fe.call(de);
|
10144
10152
|
} catch (ee) {
|
10145
10153
|
console.error(ee);
|
10146
10154
|
} finally {
|
@@ -10148,8 +10156,8 @@ const getProps$p = () => ({
|
|
10148
10156
|
}
|
10149
10157
|
}
|
10150
10158
|
async function Ee() {
|
10151
|
-
var
|
10152
|
-
const B = (
|
10159
|
+
var z, Q, re, se, ue, ce, de, fe, ee, ge;
|
10160
|
+
const B = (z = _.value) == null ? void 0 : z.cmd;
|
10153
10161
|
if (!B) {
|
10154
10162
|
Logger.error("[KgSubmit] \u590D\u5236\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10155
10163
|
VarButton: _.value
|
@@ -10158,11 +10166,11 @@ const getProps$p = () => ({
|
|
10158
10166
|
}
|
10159
10167
|
try {
|
10160
10168
|
a.store.setIsCopyingRequesting(a.formID, !0);
|
10161
|
-
let
|
10169
|
+
let he = ref(KgVarUtil.parseCommandParameter((re = (Q = _.value) == null ? void 0 : Q.cmd_prm) != null ? re : "")), _e = ref({
|
10162
10170
|
...(se = o.selectedRow.value) != null ? se : {},
|
10163
10171
|
...toRaw(s.model.value)
|
10164
10172
|
});
|
10165
|
-
if (((
|
10173
|
+
if (((ue = C.value) == null ? void 0 : ue.cpy_clear_id_flg) !== 0 && delete _e.value.id, await s.store.emit(a.formID, "beforeRequest", {
|
10166
10174
|
isCreating: u.value,
|
10167
10175
|
isUpdating: c.value,
|
10168
10176
|
isCopying: g.value,
|
@@ -10170,25 +10178,25 @@ const getProps$p = () => ({
|
|
10170
10178
|
row: o.selectedRow.value,
|
10171
10179
|
rows: o.selectedRows.value,
|
10172
10180
|
model: s.model,
|
10173
|
-
params:
|
10181
|
+
params: he,
|
10174
10182
|
data: _e
|
10175
10183
|
}))
|
10176
10184
|
return;
|
10177
10185
|
await httpClient().request({
|
10178
|
-
method: (
|
10186
|
+
method: (de = (ce = _.value) == null ? void 0 : ce.cmd_method) != null ? de : "POST",
|
10179
10187
|
url: B,
|
10180
|
-
params:
|
10188
|
+
params: he.value,
|
10181
10189
|
data: _e.value
|
10182
|
-
}), ((
|
10183
|
-
} catch (
|
10184
|
-
console.error(
|
10190
|
+
}), ((fe = _.value) == null ? void 0 : fe.show_success_message_flg) !== 0 && message.success(n.t("kg.copySuccess")), s.store.emit(a.formID, "ok"), a.store.setIsCopying(a.formID, !1), (ge = (ee = i.search).value) == null || ge.call(ee, !0);
|
10191
|
+
} catch (he) {
|
10192
|
+
console.error(he);
|
10185
10193
|
} finally {
|
10186
10194
|
a.store.setIsCopyingRequesting(a.formID, !1);
|
10187
10195
|
}
|
10188
10196
|
}
|
10189
10197
|
async function ke() {
|
10190
|
-
var
|
10191
|
-
const B = (
|
10198
|
+
var z, Q, re, se, ue, ce, de, fe;
|
10199
|
+
const B = (z = T.value) == null ? void 0 : z.cmd;
|
10192
10200
|
if (!B) {
|
10193
10201
|
Logger.error("[KgSubmit] \u5220\u9664\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
10194
10202
|
VarButton: T.value
|
@@ -10199,10 +10207,10 @@ const getProps$p = () => ({
|
|
10199
10207
|
a.store.setIsDeletingRequesting(a.formID, !0);
|
10200
10208
|
let ee = ref({
|
10201
10209
|
ids: (re = (Q = o.selectedRows.value) == null ? void 0 : Q.map((_e) => {
|
10202
|
-
var
|
10203
|
-
return (
|
10210
|
+
var be, Se, Ce;
|
10211
|
+
return (Ce = _e[(Se = (be = T.value) == null ? void 0 : be.del_param_clm) != null ? Se : "id"]) != null ? Ce : "";
|
10204
10212
|
})) != null ? re : []
|
10205
|
-
}),
|
10213
|
+
}), ge = ref({});
|
10206
10214
|
if (await s.store.emit(a.formID, "beforeRequest", {
|
10207
10215
|
isCreating: u.value,
|
10208
10216
|
isUpdating: c.value,
|
@@ -10212,84 +10220,84 @@ const getProps$p = () => ({
|
|
10212
10220
|
rows: o.selectedRows.value,
|
10213
10221
|
model: s.model,
|
10214
10222
|
params: ee,
|
10215
|
-
data:
|
10223
|
+
data: ge
|
10216
10224
|
}))
|
10217
10225
|
return;
|
10218
10226
|
await httpClient().request({
|
10219
|
-
method: (
|
10227
|
+
method: (ue = (se = T.value) == null ? void 0 : se.cmd_method) != null ? ue : "DELETE",
|
10220
10228
|
url: B,
|
10221
10229
|
params: ee.value,
|
10222
|
-
data:
|
10230
|
+
data: ge.value
|
10223
10231
|
}, {
|
10224
10232
|
joinParamsToUrl: !0
|
10225
|
-
}), ((
|
10233
|
+
}), ((ce = T.value) == null ? void 0 : ce.show_success_message_flg) !== 0 && message.success(n.t("kg.deleteSuccess")), s.store.emit(a.formID, "ok"), a.store.setIsDeleting(a.formID, !1), (fe = (de = i.search).value) == null || fe.call(de, !0);
|
10226
10234
|
} catch (ee) {
|
10227
10235
|
console.error(ee);
|
10228
10236
|
} finally {
|
10229
10237
|
a.store.setIsDeletingRequesting(a.formID, !1);
|
10230
10238
|
}
|
10231
10239
|
}
|
10232
|
-
function
|
10240
|
+
function ye(B) {
|
10233
10241
|
var Q, re;
|
10234
|
-
const
|
10235
|
-
return isFunction$2(
|
10242
|
+
const z = (re = (Q = l == null ? void 0 : l.KgSubmit) == null ? void 0 : Q["KgForm.Item"]) == null ? void 0 : re[B.var_nam];
|
10243
|
+
return isFunction$2(z) ? createVNode(KgForm.Item, {
|
10236
10244
|
kgVarName: B.var_nam,
|
10237
10245
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10238
10246
|
kgRules: q.value[B.var_nam],
|
10239
|
-
onKgSubmit:
|
10247
|
+
onKgSubmit: me
|
10240
10248
|
}, {
|
10241
10249
|
control: ({
|
10242
10250
|
varName: se,
|
10243
|
-
props:
|
10244
|
-
model:
|
10245
|
-
varConfig:
|
10246
|
-
varProfileDetail:
|
10251
|
+
props: ue,
|
10252
|
+
model: ce,
|
10253
|
+
varConfig: de,
|
10254
|
+
varProfileDetail: fe,
|
10247
10255
|
varSubmitField: ee
|
10248
|
-
}) =>
|
10256
|
+
}) => z({
|
10249
10257
|
varName: se,
|
10250
|
-
props:
|
10251
|
-
model:
|
10252
|
-
varConfig:
|
10253
|
-
varProfileDetail:
|
10258
|
+
props: ue,
|
10259
|
+
model: ce,
|
10260
|
+
varConfig: de,
|
10261
|
+
varProfileDetail: fe,
|
10254
10262
|
varSubmitField: ee
|
10255
10263
|
})
|
10256
10264
|
}) : createVNode(KgForm.Item, {
|
10257
10265
|
kgVarName: B.var_nam,
|
10258
10266
|
kgContext: KG_FORM_CONTEXT.SUBMIT,
|
10259
10267
|
kgRules: q.value[B.var_nam],
|
10260
|
-
onKgSubmit:
|
10268
|
+
onKgSubmit: me
|
10261
10269
|
}, null);
|
10262
10270
|
}
|
10263
10271
|
function Ie() {
|
10264
|
-
let B,
|
10272
|
+
let B, z;
|
10265
10273
|
return createVNode(KgResizable, {
|
10266
|
-
kgType:
|
10274
|
+
kgType: pe.value === KG_VAR_SUBMIT__DISPLAY_TYPE.MODAL ? "right" : "left",
|
10267
10275
|
kgMinWidth: H.value,
|
10268
|
-
kgMaxWidth:
|
10276
|
+
kgMaxWidth: G.value,
|
10269
10277
|
kgWidth: x.value,
|
10270
|
-
kgDisabled:
|
10271
|
-
"onUpdate:kgWidth": (Q) =>
|
10278
|
+
kgDisabled: R.value,
|
10279
|
+
"onUpdate:kgWidth": (Q) => V.value.kgWidth = Q
|
10272
10280
|
}, {
|
10273
10281
|
default: () => [createVNode(Spin, {
|
10274
10282
|
spinning: y.value
|
10275
10283
|
}, {
|
10276
10284
|
default: () => [createVNode(KgForm, {
|
10277
|
-
ref:
|
10285
|
+
ref: U,
|
10278
10286
|
model: s.model.value,
|
10279
|
-
layout:
|
10280
|
-
labelCol:
|
10281
|
-
wrapperCol:
|
10287
|
+
layout: le.value,
|
10288
|
+
labelCol: K.value,
|
10289
|
+
wrapperCol: W.value
|
10282
10290
|
}, {
|
10283
10291
|
default: () => [createVNode("div", {
|
10284
|
-
ref:
|
10292
|
+
ref: J
|
10285
10293
|
}, [$.value.length > 0 && createVNode(Row, {
|
10286
10294
|
gutter: 12
|
10287
|
-
}, _isSlot$7(B = $.value.map(
|
10295
|
+
}, _isSlot$7(B = $.value.map(ye)) ? B : {
|
10288
10296
|
default: () => [B]
|
10289
|
-
}), $.value.length > 0 &&
|
10297
|
+
}), $.value.length > 0 && w.value.length > 0 && createVNode(Divider, null, null), w.value.length > 0 && createVNode(Row, {
|
10290
10298
|
gutter: 12
|
10291
|
-
}, _isSlot$7(
|
10292
|
-
default: () => [
|
10299
|
+
}, _isSlot$7(z = w.value.map(ye)) ? z : {
|
10300
|
+
default: () => [z]
|
10293
10301
|
}), v.value && createVNode("div", {
|
10294
10302
|
style: "text-align: center; padding: 6px 0 12px;"
|
10295
10303
|
}, [n.t("kg.confirmDelete")])])]
|
@@ -10298,22 +10306,22 @@ const getProps$p = () => ({
|
|
10298
10306
|
});
|
10299
10307
|
}
|
10300
10308
|
function Ae() {
|
10301
|
-
let B,
|
10309
|
+
let B, z;
|
10302
10310
|
return createVNode("div", null, [createVNode(Button, {
|
10303
10311
|
type: "primary",
|
10304
|
-
ghost: !
|
10305
|
-
disabled:
|
10306
|
-
onClick:
|
10312
|
+
ghost: !O.value,
|
10313
|
+
disabled: O.value,
|
10314
|
+
onClick: X
|
10307
10315
|
}, _isSlot$7(B = n.t("kg.cancel")) ? B : {
|
10308
10316
|
default: () => [B]
|
10309
10317
|
}), createVNode(Button, {
|
10310
10318
|
type: "primary",
|
10311
|
-
disabled:
|
10312
|
-
loading:
|
10319
|
+
disabled: I.value,
|
10320
|
+
loading: D.value,
|
10313
10321
|
danger: !!p.value,
|
10314
|
-
onClick:
|
10315
|
-
}, _isSlot$7(
|
10316
|
-
default: () => [
|
10322
|
+
onClick: me
|
10323
|
+
}, _isSlot$7(z = n.t(p.value ? "kg.delete" : "kg.save")) ? z : {
|
10324
|
+
default: () => [z]
|
10317
10325
|
})]);
|
10318
10326
|
}
|
10319
10327
|
function Me() {
|
@@ -10327,7 +10335,7 @@ const getProps$p = () => ({
|
|
10327
10335
|
"onUpdate:isFullscreen": (B) => ie.isFullscreen = B,
|
10328
10336
|
kgShowFullscreenButton: !v.value,
|
10329
10337
|
kgShowConfigButton: !v.value && e.kgShowConfigButton,
|
10330
|
-
onKgCancel:
|
10338
|
+
onKgCancel: X
|
10331
10339
|
}, null);
|
10332
10340
|
}
|
10333
10341
|
return onUnmounted(() => {
|
@@ -10388,9 +10396,9 @@ const getProps$p = () => ({
|
|
10388
10396
|
spinning: v.value
|
10389
10397
|
}, {
|
10390
10398
|
default: () => {
|
10391
|
-
var _, T;
|
10392
|
-
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), (_ =
|
10393
|
-
kgClass: (
|
10399
|
+
var _, T, y;
|
10400
|
+
return [t.default ? t.default() : createVNode(Fragment, null, [p.value && createVNode(KgSearch, null, null), g.value && createVNode(KgButton, null, null), createVNode(KgTable, null, null), (T = (_ = e.kgSlots) == null ? void 0 : _.afterKgTable) == null ? void 0 : T.call(_), c.value && createVNode(KgSubmit, {
|
10401
|
+
kgClass: (y = e.kgSubmitClass) != null ? y : ""
|
10394
10402
|
}, null)])];
|
10395
10403
|
}
|
10396
10404
|
});
|
@@ -11177,24 +11185,24 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11177
11185
|
emit: r
|
11178
11186
|
}) {
|
11179
11187
|
const n = inject("$dayjs", dayjs), a = inject(DI_KG_SLOTS, null), o = useKg(), s = useKgVar(), i = useKgSearch(), l = useKgButton(), u = useKgTable();
|
11180
|
-
i.onSearch((
|
11181
|
-
|
11188
|
+
i.onSearch((N) => {
|
11189
|
+
x(N);
|
11182
11190
|
}), i.onReset(() => {
|
11183
|
-
|
11191
|
+
x(!0);
|
11184
11192
|
}), u.store.$onAction(async ({
|
11185
|
-
name:
|
11193
|
+
name: N,
|
11186
11194
|
args: K
|
11187
11195
|
}) => {
|
11188
|
-
switch (
|
11196
|
+
switch (N) {
|
11189
11197
|
case "setSelecte":
|
11190
11198
|
if (K[0] === s.formID) {
|
11191
|
-
const
|
11199
|
+
const W = K[1], Y = K[2];
|
11192
11200
|
switch (!0) {
|
11193
|
-
case (Y && !I.value.includes(
|
11194
|
-
|
11201
|
+
case (Y && !I.value.includes(W[A.value])):
|
11202
|
+
U([...I.value, W[A.value]]);
|
11195
11203
|
break;
|
11196
|
-
case (!Y && I.value.includes(
|
11197
|
-
|
11204
|
+
case (!Y && I.value.includes(W[A.value])):
|
11205
|
+
U(without$1(I.value, W[A.value]));
|
11198
11206
|
break;
|
11199
11207
|
}
|
11200
11208
|
}
|
@@ -11209,93 +11217,98 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11209
11217
|
} = _useLoading(), m = ref(null);
|
11210
11218
|
_useResizeObserver(m);
|
11211
11219
|
const _ = computed(() => s.store.getVarButtonSearch(s.formID)), T = computed(() => {
|
11212
|
-
var
|
11213
|
-
return ((
|
11220
|
+
var N;
|
11221
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.mult_flg) === 1;
|
11214
11222
|
}), y = computed(() => {
|
11215
|
-
var
|
11216
|
-
return ((
|
11223
|
+
var N;
|
11224
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.aut_load_flg) === 1;
|
11217
11225
|
}), C = computed(() => {
|
11218
|
-
var
|
11219
|
-
return ((
|
11226
|
+
var N;
|
11227
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_left_flg) !== 0;
|
11220
11228
|
}), E = computed(() => {
|
11221
|
-
var
|
11222
|
-
return ((
|
11229
|
+
var N;
|
11230
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.show_bottom_right_flg) !== 0;
|
11223
11231
|
}), A = computed(() => {
|
11224
|
-
var
|
11225
|
-
return (K = (
|
11232
|
+
var N, K;
|
11233
|
+
return (K = (N = s.varGridConfig.value) == null ? void 0 : N.id_clm) != null ? K : "id";
|
11226
11234
|
}), k = computed(() => {
|
11227
|
-
var
|
11228
|
-
return JSON.parse((K = (
|
11229
|
-
}),
|
11230
|
-
var
|
11231
|
-
return (
|
11235
|
+
var N, K;
|
11236
|
+
return JSON.parse((K = (N = s.varGridConfig.value) == null ? void 0 : N.pg_size_opts) != null ? K : "[]");
|
11237
|
+
}), F = computed(() => {
|
11238
|
+
var N;
|
11239
|
+
return (N = s.varGridConfig.value) == null ? void 0 : N.pg_size_opt;
|
11232
11240
|
}), L = computed(() => {
|
11233
|
-
var
|
11234
|
-
return ((
|
11235
|
-
}),
|
11236
|
-
var
|
11237
|
-
return (K = (
|
11238
|
-
}),
|
11239
|
-
var K,
|
11240
|
-
let
|
11241
|
-
pageNo:
|
11242
|
-
pageSize:
|
11243
|
-
...
|
11244
|
-
...(
|
11241
|
+
var N;
|
11242
|
+
return ((N = s.varGridConfig.value) == null ? void 0 : N.prf_frm_id) || s.formID;
|
11243
|
+
}), M = computed(() => {
|
11244
|
+
var N, K;
|
11245
|
+
return (K = (N = _.value) == null ? void 0 : N.cmd) != null ? K : null;
|
11246
|
+
}), P = computed(() => {
|
11247
|
+
var K, W, Y, ae, X, me, ve;
|
11248
|
+
let N = {
|
11249
|
+
pageNo: V.pageIndex,
|
11250
|
+
pageSize: V.pageSize,
|
11251
|
+
...R,
|
11252
|
+
...(W = (K = i.model) == null ? void 0 : K.value) != null ? W : {}
|
11245
11253
|
};
|
11246
|
-
return _.value && (
|
11247
|
-
...
|
11254
|
+
return _.value && (N = {
|
11255
|
+
...N,
|
11248
11256
|
...KgVarUtil.parseCommandParameter((ae = (Y = _.value) == null ? void 0 : Y.cmd_prm) != null ? ae : "")
|
11249
|
-
}), (
|
11250
|
-
...
|
11251
|
-
...KgVarUtil.parseCommandParameter((
|
11252
|
-
}), ((
|
11257
|
+
}), (X = s.varGridConfig.value) != null && X.cmd_prm && (N = {
|
11258
|
+
...N,
|
11259
|
+
...KgVarUtil.parseCommandParameter((me = s.varGridConfig.value.cmd_prm) != null ? me : "")
|
11260
|
+
}), ((ve = s.varGridConfig.value) == null ? void 0 : ve.convert_sort_field_to_under_score_flg) === 1 && N.column && (N.column = snakeCase$1(N.column)), N;
|
11253
11261
|
}), $ = computed(() => {
|
11254
|
-
var
|
11255
|
-
if (((
|
11262
|
+
var N;
|
11263
|
+
if (((N = s.varGridConfig.value) == null ? void 0 : N.show_check_column_flg) === 1)
|
11256
11264
|
return {
|
11257
11265
|
fixed: "left",
|
11258
11266
|
columnWidth: KG_TABLE_TD_CHECK_WIDTH,
|
11259
11267
|
hideSelectAll: !T.value,
|
11260
11268
|
selectedRowKeys: I,
|
11261
11269
|
preserveSelectedRowKeys: !1,
|
11262
|
-
onSelect: (K) =>
|
11263
|
-
onChange: (K) => T.value &&
|
11270
|
+
onSelect: (K) => q(K),
|
11271
|
+
onChange: (K) => T.value && U(K)
|
11264
11272
|
};
|
11265
|
-
}),
|
11266
|
-
|
11267
|
-
|
11268
|
-
|
11273
|
+
}), w = computed(() => {
|
11274
|
+
var K;
|
11275
|
+
let N = "kg-table";
|
11276
|
+
return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (N += " kg-table--bottom-border"), !C.value && !E.value && (N += " kg-table--no-bottom"), N;
|
11277
|
+
}), D = computed(() => {
|
11278
|
+
var K;
|
11279
|
+
let N = "kg-table-bottom";
|
11280
|
+
return ((K = s.varGridConfig.value) == null ? void 0 : K.show_bottom_border_flg) === 1 && (N += " kg-table-bottom--border"), N;
|
11281
|
+
}), O = ref([]), I = ref([]), V = reactive({
|
11269
11282
|
pageIndex: 1,
|
11270
11283
|
pageSize: 10,
|
11271
11284
|
total: 0
|
11272
|
-
}),
|
11285
|
+
}), R = reactive({
|
11273
11286
|
column: void 0,
|
11274
11287
|
order: void 0
|
11275
|
-
}),
|
11276
|
-
|
11288
|
+
}), H = watch(F, (N) => {
|
11289
|
+
N && (setTimeout(() => H()), V.pageSize = N), c.value = !0;
|
11277
11290
|
});
|
11278
|
-
watch(k, (
|
11279
|
-
|
11280
|
-
}), watch([
|
11281
|
-
|
11291
|
+
watch(k, (N) => {
|
11292
|
+
N.length > 0 && !N.includes(V.pageSize) && (V.pageSize = F.value);
|
11293
|
+
}), watch([M, y, i.isReady], ([N, K, W]) => {
|
11294
|
+
N && K && W && !u.store.getIsRetrieved(s.formID) && x(!0);
|
11282
11295
|
}, {
|
11283
11296
|
immediate: !0
|
11284
11297
|
}), onUnmounted(() => {
|
11285
11298
|
u.store.dispose(s.formID);
|
11286
11299
|
});
|
11287
|
-
function
|
11300
|
+
function G(N, K) {
|
11288
11301
|
if (!!$.value) {
|
11289
11302
|
if (!K) {
|
11290
11303
|
I.value = [], u.store.setSelectedRows(s.formID, []);
|
11291
11304
|
return;
|
11292
11305
|
}
|
11293
|
-
switch (
|
11306
|
+
switch (N == null ? void 0 : N.detail) {
|
11294
11307
|
case 1:
|
11295
|
-
I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((
|
11308
|
+
I.value = [K[A.value]], u.store.setSelectedRows(s.formID, I.value.map((W) => {
|
11296
11309
|
var Y;
|
11297
|
-
return (Y =
|
11298
|
-
}).filter((
|
11310
|
+
return (Y = O.value) == null ? void 0 : Y.find((ae) => ae[A.value] === W);
|
11311
|
+
}).filter((W) => !!W));
|
11299
11312
|
break;
|
11300
11313
|
case 2:
|
11301
11314
|
u.store.emit(s.formID, "rowDoubleClick", K);
|
@@ -11303,162 +11316,162 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11303
11316
|
}
|
11304
11317
|
}
|
11305
11318
|
}
|
11306
|
-
function
|
11319
|
+
function x(N = !1) {
|
11307
11320
|
const K = watch(c, (Y) => {
|
11308
|
-
Y && (setTimeout(() => K()),
|
11321
|
+
Y && (setTimeout(() => K()), W());
|
11309
11322
|
}, {
|
11310
11323
|
immediate: !0
|
11311
11324
|
});
|
11312
|
-
async function
|
11325
|
+
async function W() {
|
11313
11326
|
var Y, ae;
|
11314
|
-
if (!
|
11327
|
+
if (!M.value) {
|
11315
11328
|
Logger.error("[KgTable] \u67E5\u8BE2\u6309\u94AE\u7684\u63A5\u53E3\u5730\u5740\u4E3A\u7A7A.", {
|
11316
11329
|
VarButton: _.value
|
11317
11330
|
});
|
11318
11331
|
return;
|
11319
11332
|
}
|
11320
|
-
|
11333
|
+
N && (V.pageIndex = 1), u.store.setIsRetrieving(s.formID, !0);
|
11321
11334
|
try {
|
11322
|
-
const
|
11335
|
+
const X = await httpClient().request({
|
11323
11336
|
method: "GET",
|
11324
|
-
url:
|
11325
|
-
params: KgUtil.parseParams(
|
11337
|
+
url: M.value,
|
11338
|
+
params: KgUtil.parseParams(P.value, L.value, n)
|
11326
11339
|
}, {
|
11327
11340
|
successMessageMode: "none"
|
11328
11341
|
});
|
11329
11342
|
switch (!0) {
|
11330
|
-
case !
|
11331
|
-
|
11343
|
+
case !X:
|
11344
|
+
O.value = [], V.total = 0;
|
11332
11345
|
break;
|
11333
|
-
case isArrayLike(
|
11334
|
-
|
11346
|
+
case isArrayLike(X):
|
11347
|
+
O.value = X, V.total = X.length;
|
11335
11348
|
break;
|
11336
|
-
case ("total" in
|
11337
|
-
|
11349
|
+
case ("total" in X && "records" in X):
|
11350
|
+
O.value = (Y = X.records) != null ? Y : [], V.total = (ae = X.total) != null ? ae : 0;
|
11338
11351
|
break;
|
11339
11352
|
}
|
11340
11353
|
u.store.emit(s.formID, "retrieve", {
|
11341
|
-
page:
|
11342
|
-
datas:
|
11343
|
-
}),
|
11344
|
-
} catch (
|
11345
|
-
throw
|
11354
|
+
page: X,
|
11355
|
+
datas: O
|
11356
|
+
}), G(), g.value = [], await nextTick(), u.store.setIsRetrieved(s.formID, !0);
|
11357
|
+
} catch (X) {
|
11358
|
+
throw X;
|
11346
11359
|
} finally {
|
11347
11360
|
u.store.setIsRetrieving(s.formID, !1);
|
11348
11361
|
}
|
11349
11362
|
}
|
11350
11363
|
}
|
11351
|
-
function
|
11352
|
-
I.value =
|
11353
|
-
var
|
11354
|
-
return (
|
11364
|
+
function U(N) {
|
11365
|
+
I.value = N, u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11366
|
+
var W;
|
11367
|
+
return (W = O.value) == null ? void 0 : W.find((Y) => Y[A.value] === K);
|
11355
11368
|
}).filter((K) => !!K));
|
11356
11369
|
}
|
11357
|
-
function
|
11358
|
-
var K,
|
11370
|
+
function q(N) {
|
11371
|
+
var K, W;
|
11359
11372
|
switch (T.value) {
|
11360
11373
|
case !0:
|
11361
11374
|
{
|
11362
|
-
const Y =
|
11375
|
+
const Y = N[A.value];
|
11363
11376
|
I.value.includes(Y) ? I.value = without$1(I.value, Y) : I.value = [...(K = I.value) != null ? K : [], Y];
|
11364
11377
|
}
|
11365
11378
|
break;
|
11366
11379
|
case !1:
|
11367
11380
|
{
|
11368
|
-
const Y =
|
11369
|
-
(
|
11381
|
+
const Y = N[A.value];
|
11382
|
+
(W = I.value) != null && W.includes(Y) ? I.value = [] : I.value = [Y];
|
11370
11383
|
}
|
11371
11384
|
break;
|
11372
11385
|
}
|
11373
11386
|
u.store.setSelectedRows(s.formID, I.value.map((Y) => {
|
11374
11387
|
var ae;
|
11375
|
-
return (ae =
|
11388
|
+
return (ae = O.value) == null ? void 0 : ae.find((X) => X[A.value] === Y);
|
11376
11389
|
}).filter((Y) => !!Y));
|
11377
11390
|
}
|
11378
|
-
function
|
11379
|
-
K.width =
|
11391
|
+
function J(N, K) {
|
11392
|
+
K.width = N, s.store.setVarGridDetailWidth(s.formID, K.dataIndex, N);
|
11380
11393
|
}
|
11381
|
-
async function
|
11394
|
+
async function Z(N, K, W, Y) {
|
11382
11395
|
var ae;
|
11383
11396
|
switch (Y.action) {
|
11384
11397
|
case "sort":
|
11385
11398
|
{
|
11386
11399
|
await nextTick();
|
11387
|
-
let
|
11388
|
-
|
11400
|
+
let X = W;
|
11401
|
+
X.order ? (R.column = (ae = X.field) != null ? ae : void 0, R.order = X.order === "ascend" ? "asc" : X.order === "descend" ? "desc" : void 0) : (R.column = void 0, R.order = void 0), x(!0);
|
11389
11402
|
}
|
11390
11403
|
break;
|
11391
11404
|
}
|
11392
11405
|
}
|
11393
|
-
function
|
11406
|
+
function ne(N, K) {
|
11394
11407
|
var Y;
|
11395
|
-
const
|
11408
|
+
const W = K[A.value];
|
11396
11409
|
switch ((Y = s.varGridConfig.value) == null ? void 0 : Y.expand_accordion_flg) {
|
11397
11410
|
case 0:
|
11398
|
-
|
11411
|
+
N ? g.value = uniq([...g.value, W]) : g.value = without$1(g.value, W);
|
11399
11412
|
break;
|
11400
11413
|
default:
|
11401
|
-
|
11414
|
+
N ? g.value = [W] : g.value = [];
|
11402
11415
|
break;
|
11403
11416
|
}
|
11404
11417
|
}
|
11405
|
-
function
|
11406
|
-
K !==
|
11418
|
+
function oe(N, K) {
|
11419
|
+
K !== V.pageSize ? (V.pageIndex = 1, V.pageSize = K) : V.pageIndex = N, x();
|
11407
11420
|
}
|
11408
|
-
function
|
11409
|
-
I.value = [
|
11410
|
-
var
|
11411
|
-
return (
|
11421
|
+
function ie(N) {
|
11422
|
+
I.value = [N[A.value]], u.store.setSelectedRows(s.formID, I.value.map((K) => {
|
11423
|
+
var W;
|
11424
|
+
return (W = O.value) == null ? void 0 : W.find((Y) => Y[A.value] === K);
|
11412
11425
|
}).filter((K) => !!K)), l.click(s.formID, KG_BUTTON_TYPE.UPDATE);
|
11413
11426
|
}
|
11414
|
-
function
|
11415
|
-
title:
|
11427
|
+
function pe({
|
11428
|
+
title: N,
|
11416
11429
|
column: K
|
11417
11430
|
}) {
|
11418
11431
|
switch (K.dataIndex) {
|
11419
11432
|
case "index":
|
11420
11433
|
return createVNode(KgTableSetting, null, null);
|
11421
11434
|
default:
|
11422
|
-
return createVNode("pre", null, [
|
11435
|
+
return createVNode("pre", null, [N]);
|
11423
11436
|
}
|
11424
11437
|
}
|
11425
|
-
function
|
11426
|
-
column:
|
11438
|
+
function te({
|
11439
|
+
column: N,
|
11427
11440
|
index: K,
|
11428
|
-
record:
|
11441
|
+
record: W,
|
11429
11442
|
value: Y,
|
11430
11443
|
text: ae
|
11431
11444
|
}) {
|
11432
|
-
let
|
11433
|
-
|
11445
|
+
let X = "";
|
11446
|
+
N.customRender ? X = N.customRender({
|
11434
11447
|
index: K,
|
11435
|
-
record:
|
11436
|
-
column:
|
11448
|
+
record: W,
|
11449
|
+
column: N,
|
11437
11450
|
text: ae,
|
11438
11451
|
value: Y,
|
11439
11452
|
renderIndex: K
|
11440
|
-
}) :
|
11441
|
-
const
|
11442
|
-
kgRow:
|
11443
|
-
kgValue:
|
11444
|
-
kgVarName:
|
11445
|
-
onKgUpdateLinkClick: () =>
|
11453
|
+
}) : X = Y;
|
11454
|
+
const me = createVNode(KgTableCell, {
|
11455
|
+
kgRow: W,
|
11456
|
+
kgValue: X,
|
11457
|
+
kgVarName: N.dataIndex,
|
11458
|
+
onKgUpdateLinkClick: () => ie(W)
|
11446
11459
|
}, null);
|
11447
11460
|
return t.bodyCell ? t.bodyCell({
|
11448
11461
|
value: Y,
|
11449
|
-
record:
|
11462
|
+
record: W,
|
11450
11463
|
index: K,
|
11451
|
-
column:
|
11452
|
-
defaultRender:
|
11453
|
-
}) :
|
11464
|
+
column: N,
|
11465
|
+
defaultRender: me
|
11466
|
+
}) : me;
|
11454
11467
|
}
|
11455
|
-
function
|
11468
|
+
function le() {
|
11456
11469
|
return !y.value && !u.store.getIsRetrieved(s.formID) ? o.t("kg.KgTable.emptyText") : o.t("kg.emptyText");
|
11457
11470
|
}
|
11458
11471
|
return () => {
|
11459
|
-
var
|
11472
|
+
var N;
|
11460
11473
|
return createVNode("div", {
|
11461
|
-
class:
|
11474
|
+
class: w.value,
|
11462
11475
|
"kg-frm-id": s.formID,
|
11463
11476
|
ref: m
|
11464
11477
|
}, [createVNode(Table, {
|
@@ -11471,30 +11484,30 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11471
11484
|
pagination: !1,
|
11472
11485
|
showSorterTooltip: !1,
|
11473
11486
|
columns: p.value,
|
11474
|
-
dataSource:
|
11487
|
+
dataSource: O.value,
|
11475
11488
|
loading: b.value,
|
11476
11489
|
rowKey: A.value,
|
11477
11490
|
rowSelection: $.value,
|
11478
11491
|
expandColumnWidth: 28,
|
11479
11492
|
expandedRowKeys: g.value,
|
11480
11493
|
customRow: (K) => ({
|
11481
|
-
onClick: (
|
11494
|
+
onClick: (W) => G(W, K)
|
11482
11495
|
}),
|
11483
|
-
onResizeColumn:
|
11484
|
-
onChange:
|
11485
|
-
onExpand:
|
11496
|
+
onResizeColumn: J,
|
11497
|
+
onChange: Z,
|
11498
|
+
onExpand: ne
|
11486
11499
|
}, {
|
11487
|
-
headerCell:
|
11488
|
-
bodyCell:
|
11489
|
-
emptyText:
|
11490
|
-
expandedRowRender: (
|
11500
|
+
headerCell: pe,
|
11501
|
+
bodyCell: te,
|
11502
|
+
emptyText: le,
|
11503
|
+
expandedRowRender: (N = a == null ? void 0 : a.KgTable) == null ? void 0 : N.expandedRowRender
|
11491
11504
|
}), (C.value || E.value) && createVNode("div", {
|
11492
|
-
class:
|
11505
|
+
class: D.value
|
11493
11506
|
}, [createVNode("div", {
|
11494
11507
|
class: "left"
|
11495
11508
|
}, [C.value && createVNode(KgTableInfo, {
|
11496
11509
|
kgShowClearCheck: I.value.length > 0,
|
11497
|
-
kgShowClearTable:
|
11510
|
+
kgShowClearTable: V.total > 0,
|
11498
11511
|
kgShowLocate: I.value.length === 1,
|
11499
11512
|
kgTotal: I.value.length,
|
11500
11513
|
kgDisabled: b.value
|
@@ -11502,23 +11515,23 @@ const KgTable$1 = "", KgTable = defineComponent({
|
|
11502
11515
|
class: "right"
|
11503
11516
|
}, [E.value && createVNode(Pagination, {
|
11504
11517
|
size: "default",
|
11505
|
-
current:
|
11506
|
-
pageSize:
|
11518
|
+
current: V.pageIndex,
|
11519
|
+
pageSize: V.pageSize,
|
11507
11520
|
pageSizeOptions: k.value.map((K) => String(K)),
|
11508
|
-
total:
|
11521
|
+
total: V.total,
|
11509
11522
|
showSizeChanger: !0,
|
11510
11523
|
showQuickJumper: !1,
|
11511
11524
|
hideOnSinglePage: !1,
|
11512
|
-
disabled: b.value ||
|
11525
|
+
disabled: b.value || V.total === 0,
|
11513
11526
|
locale: {
|
11514
11527
|
page: ""
|
11515
11528
|
},
|
11516
|
-
showTotal: (K,
|
11517
|
-
from:
|
11518
|
-
to:
|
11529
|
+
showTotal: (K, W) => o.t("kg.KgTable.totalText", {
|
11530
|
+
from: W[0],
|
11531
|
+
to: W[1],
|
11519
11532
|
total: K
|
11520
11533
|
}),
|
11521
|
-
onChange: (K,
|
11534
|
+
onChange: (K, W) => oe(K, W)
|
11522
11535
|
}, null)])])]);
|
11523
11536
|
};
|
11524
11537
|
}
|
@@ -12655,24 +12668,24 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12655
12668
|
if (T != null && T.id)
|
12656
12669
|
try {
|
12657
12670
|
s.store.setIsLoading(n.formID, !0);
|
12658
|
-
const
|
12671
|
+
const F = await QueryByID({
|
12659
12672
|
params: {
|
12660
12673
|
id: T.id
|
12661
12674
|
}
|
12662
12675
|
});
|
12663
|
-
l.value = l.value.map((
|
12676
|
+
l.value = l.value.map((M) => {
|
12664
12677
|
var $;
|
12665
|
-
const
|
12666
|
-
return
|
12667
|
-
...
|
12668
|
-
...
|
12669
|
-
id:
|
12670
|
-
} :
|
12678
|
+
const P = ($ = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : $.find((w) => w.var_nam === M.var_nam);
|
12679
|
+
return P ? {
|
12680
|
+
...M,
|
12681
|
+
...P,
|
12682
|
+
id: M.id
|
12683
|
+
} : M;
|
12671
12684
|
});
|
12672
|
-
const L = (A = (E =
|
12673
|
-
u.value = l.value.filter((
|
12674
|
-
} catch (
|
12675
|
-
throw
|
12685
|
+
const L = (A = (E = F == null ? void 0 : F.varProfileDetails) == null ? void 0 : E.map((M) => M.var_nam)) != null ? A : [];
|
12686
|
+
u.value = l.value.filter((M) => L.includes(M.var_nam)).map((M) => M.id);
|
12687
|
+
} catch (F) {
|
12688
|
+
throw F;
|
12676
12689
|
} finally {
|
12677
12690
|
s.store.setIsLoading(n.formID, !1);
|
12678
12691
|
}
|
@@ -12735,9 +12748,9 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12735
12748
|
direction: E,
|
12736
12749
|
filteredItems: A,
|
12737
12750
|
selectedKeys: k,
|
12738
|
-
disabled:
|
12751
|
+
disabled: F,
|
12739
12752
|
onItemSelectAll: L,
|
12740
|
-
onItemSelect:
|
12753
|
+
onItemSelect: M
|
12741
12754
|
}) => createVNode(Table, {
|
12742
12755
|
pagination: !1,
|
12743
12756
|
class: "kg-flex-table",
|
@@ -12749,14 +12762,14 @@ const leftVarProfileDetailColumns = (e) => {
|
|
12749
12762
|
columns: E === "left" ? leftVarProfileDetailColumns(e.hostFormID) : rightVarProfileDetailColumns(e.hostFormID),
|
12750
12763
|
rowKey: "id",
|
12751
12764
|
dataSource: A,
|
12752
|
-
customRow: (
|
12753
|
-
onClick: ($) => v($,
|
12765
|
+
customRow: (P) => ({
|
12766
|
+
onClick: ($) => v($, P, E, k)
|
12754
12767
|
}),
|
12755
12768
|
rowSelection: g({
|
12756
|
-
disabled:
|
12769
|
+
disabled: F,
|
12757
12770
|
selectedKeys: k,
|
12758
12771
|
onItemSelectAll: L,
|
12759
|
-
onItemSelect:
|
12772
|
+
onItemSelect: M
|
12760
12773
|
})
|
12761
12774
|
}, null)
|
12762
12775
|
})
|
@@ -12920,8 +12933,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12920
12933
|
var x;
|
12921
12934
|
return s.value > 0 ? !1 : ((x = i.value) == null ? void 0 : x.header_teleport_flg) !== 0;
|
12922
12935
|
}), 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(() => {
|
12923
|
-
var x,
|
12924
|
-
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((
|
12936
|
+
var x, U;
|
12937
|
+
return !!(o.isRetrieving.value || ((x = E.value) == null ? void 0 : x.permission_type) === 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code));
|
12925
12938
|
}), v = computed(() => !!o.isRetrieving.value), b = computed(() => !!o.isRetrieving.value), m = ref(null), _ = ref({
|
12926
12939
|
kgHeight: g.value
|
12927
12940
|
}), T = ref({
|
@@ -12929,8 +12942,8 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12929
12942
|
});
|
12930
12943
|
let y;
|
12931
12944
|
const C = computed(() => _.value.kgHeight === g.value), E = computed(() => n.store.getVarButtonSearch(n.formID)), A = computed(() => {
|
12932
|
-
var x,
|
12933
|
-
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((
|
12945
|
+
var x, U, q;
|
12946
|
+
if (n.t((x = E.value) == null ? void 0 : x.var_nam).value !== ((U = E.value) == null ? void 0 : U.var_nam))
|
12934
12947
|
return n.t((q = E.value) == null ? void 0 : q.var_nam).value;
|
12935
12948
|
}), k = computed(() => {
|
12936
12949
|
var x;
|
@@ -12942,22 +12955,22 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12942
12955
|
default:
|
12943
12956
|
return !0;
|
12944
12957
|
}
|
12945
|
-
}),
|
12958
|
+
}), F = computed(() => {
|
12946
12959
|
var x;
|
12947
12960
|
return ((x = i.value) == null ? void 0 : x.vis_flg) === 1;
|
12948
12961
|
}), L = computed(() => {
|
12949
12962
|
var x;
|
12950
12963
|
return ((x = i.value) == null ? void 0 : x.resizable_flg) !== 0;
|
12951
|
-
}),
|
12964
|
+
}), M = computed(() => !!(n.isRetrievingVar.value || n.isRetrievingVarProfileMaster.value || l.value && !!n.isOtherRequesting.value)), P = computed(() => !!n.isRetrievingVar.value || !!n.isRetrievingVarProfileMaster.value), $ = computed(() => {
|
12952
12965
|
let x = "kg-search";
|
12953
|
-
return
|
12966
|
+
return F.value && (x += " kg-search--visible"), l.value && (x += " kg-search--teleport"), x;
|
12954
12967
|
});
|
12955
12968
|
watch(n.currentVarProfileDetails, (x) => {
|
12956
12969
|
if (x) {
|
12957
|
-
const
|
12970
|
+
const U = {};
|
12958
12971
|
x.forEach((q) => {
|
12959
|
-
|
12960
|
-
}), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(
|
12972
|
+
U[q.var_nam] = "";
|
12973
|
+
}), _.value.kgHeight = u.value, a.store.setModel(n.formID, reactive(U)), F.value ? (y == null || y(), y = watch(m, (q) => {
|
12961
12974
|
q && (a.store.emit(n.formID, "ready"), a.store.setIsReady(n.formID, !0));
|
12962
12975
|
}, {
|
12963
12976
|
immediate: !0
|
@@ -12968,50 +12981,50 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
12968
12981
|
}), onUnmounted(() => {
|
12969
12982
|
a.store.dispose(n.formID);
|
12970
12983
|
});
|
12971
|
-
function
|
12972
|
-
|
12984
|
+
function w(x = !1) {
|
12985
|
+
F.value ? m.value && m.value.validate().then(() => {
|
12973
12986
|
a.store.emit(n.formID, "search", {
|
12974
12987
|
resetPageIndex: x
|
12975
12988
|
});
|
12976
|
-
}).catch((
|
12989
|
+
}).catch((U) => {
|
12977
12990
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12978
|
-
e:
|
12991
|
+
e: U
|
12979
12992
|
});
|
12980
12993
|
}) : a.store.emit(n.formID, "search", {
|
12981
12994
|
resetPageIndex: x
|
12982
12995
|
});
|
12983
12996
|
}
|
12984
|
-
a.store.setSearchFn(n.formID,
|
12985
|
-
function
|
12997
|
+
a.store.setSearchFn(n.formID, w);
|
12998
|
+
function D() {
|
12986
12999
|
var x;
|
12987
|
-
(x = m.value) == null || x.resetFields(),
|
13000
|
+
(x = m.value) == null || x.resetFields(), F.value ? m.value && m.value.validate().then(() => {
|
12988
13001
|
a.store.emit(n.formID, "reset");
|
12989
|
-
}).catch((
|
13002
|
+
}).catch((U) => {
|
12990
13003
|
Logger.debug("[KgSearch] \u8868\u5355\u9A8C\u8BC1\u5931\u8D25", {
|
12991
|
-
e:
|
13004
|
+
e: U
|
12992
13005
|
});
|
12993
13006
|
}) : a.store.emit(n.formID, "reset");
|
12994
13007
|
}
|
12995
|
-
a.store.setResetFn(n.formID,
|
12996
|
-
function
|
12997
|
-
return
|
13008
|
+
a.store.setResetFn(n.formID, D);
|
13009
|
+
function O() {
|
13010
|
+
return w(!0), Promise.resolve(!0);
|
12998
13011
|
}
|
12999
|
-
function
|
13012
|
+
function I() {
|
13000
13013
|
var x;
|
13001
13014
|
return createVNode("div", {
|
13002
13015
|
class: "title",
|
13003
|
-
onClick:
|
13016
|
+
onClick: G
|
13004
13017
|
}, [((x = t == null ? void 0 : t.KgSearch) == null ? void 0 : x.left) && createVNode("div", {
|
13005
13018
|
class: "kg-search-title-left",
|
13006
|
-
onClick: (
|
13007
|
-
|
13019
|
+
onClick: (U) => {
|
13020
|
+
U.stopPropagation(), U.preventDefault();
|
13008
13021
|
}
|
13009
13022
|
}, [t.KgSearch.left()]), C.value ? createVNode(CaretUpOutlined$1, null, null) : createVNode(CaretDownOutlined$1, null, null), createVNode("span", null, [r.t("kg.KgSearch.title")])]);
|
13010
13023
|
}
|
13011
|
-
function
|
13012
|
-
var x,
|
13013
|
-
return ((q = (
|
13014
|
-
value: (
|
13024
|
+
function V() {
|
13025
|
+
var x, U, q, J;
|
13026
|
+
return ((q = (U = (x = n.varProfileMasters) == null ? void 0 : x.value) == null ? void 0 : U.length) != null ? q : 0) === 0 ? null : createVNode(Fragment, null, [createVNode(Select, {
|
13027
|
+
value: (J = n.currentVarProfileMasterID.value) != null ? J : void 0,
|
13015
13028
|
"onUpdate:value": (Z) => n.store.setCurrentVarProfileMasterID(n.formID, Z),
|
13016
13029
|
disabled: v.value,
|
13017
13030
|
class: "kg-search-profile-master-select"
|
@@ -13039,30 +13052,30 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13039
13052
|
hostFormID: n.formID
|
13040
13053
|
}, null)]);
|
13041
13054
|
}
|
13042
|
-
function
|
13043
|
-
var x,
|
13044
|
-
return createVNode(Fragment, null, [
|
13055
|
+
function R() {
|
13056
|
+
var x, U, q, J, Z;
|
13057
|
+
return createVNode(Fragment, null, [V(), !(((x = E.value) == null ? void 0 : x.permission_type) !== 2 && !r.p((U = E.value) == null ? void 0 : U.permission_code)) && createVNode(Button, {
|
13045
13058
|
type: "primary",
|
13046
13059
|
ghost: !p.value,
|
13047
13060
|
disabled: p.value,
|
13048
|
-
onClick:
|
13061
|
+
onClick: D,
|
13049
13062
|
class: "kg-search-btn-reset"
|
13050
13063
|
}, {
|
13051
13064
|
default: () => [createVNode(ReloadOutlined$1, null, null), r.t("kg.reset")]
|
13052
13065
|
}), createVNode(KgButton.Item, {
|
13053
13066
|
kgType: KG_BUTTON_TYPE.SEARCH,
|
13054
13067
|
kgVarName: (q = E.value) == null ? void 0 : q.var_nam,
|
13055
|
-
kgIcon: (
|
13068
|
+
kgIcon: (J = E.value) == null ? void 0 : J.icon,
|
13056
13069
|
kgText: A.value,
|
13057
13070
|
kgColor: (Z = E.value) == null ? void 0 : Z.color,
|
13058
13071
|
kgPrimary: k.value,
|
13059
13072
|
kgLoading: b.value,
|
13060
|
-
onKgClick:
|
13073
|
+
onKgClick: O
|
13061
13074
|
}, null)]);
|
13062
13075
|
}
|
13063
13076
|
function H() {
|
13064
13077
|
return createVNode(Spin, {
|
13065
|
-
spinning:
|
13078
|
+
spinning: P.value
|
13066
13079
|
}, {
|
13067
13080
|
default: () => {
|
13068
13081
|
var x;
|
@@ -13074,11 +13087,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13074
13087
|
gutter: 6
|
13075
13088
|
}, {
|
13076
13089
|
default: () => {
|
13077
|
-
var
|
13078
|
-
return [(
|
13090
|
+
var U;
|
13091
|
+
return [(U = n.currentVarProfileDetails.value) == null ? void 0 : U.map((q) => createVNode(KgForm.Item, {
|
13079
13092
|
kgVarName: q.var_nam,
|
13080
13093
|
kgContext: KG_FORM_CONTEXT.SEARCH,
|
13081
|
-
onKgSubmit: () =>
|
13094
|
+
onKgSubmit: () => w(!0)
|
13082
13095
|
}, null))];
|
13083
13096
|
}
|
13084
13097
|
})]
|
@@ -13086,7 +13099,7 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13086
13099
|
}
|
13087
13100
|
});
|
13088
13101
|
}
|
13089
|
-
function
|
13102
|
+
function G() {
|
13090
13103
|
C.value ? _.value.kgHeight = u.value : _.value.kgHeight = g.value;
|
13091
13104
|
}
|
13092
13105
|
return () => createVNode(KgResizable, {
|
@@ -13095,10 +13108,10 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13095
13108
|
kgMinHeight: g.value,
|
13096
13109
|
kgMaxHeight: c.value,
|
13097
13110
|
kgDisabled: !L.value,
|
13098
|
-
|
13111
|
+
kgClass: $.value,
|
13099
13112
|
"kg-frm-id": n.formID
|
13100
13113
|
}, {
|
13101
|
-
default: () => [
|
13114
|
+
default: () => [F.value && createVNode("div", {
|
13102
13115
|
class: "ant-collapse ant-collapse-icon-position-left"
|
13103
13116
|
}, [createVNode("div", {
|
13104
13117
|
class: "ant-collapse-item ant-collapse-item-active ant-collapse-no-arrow"
|
@@ -13109,11 +13122,11 @@ const KgSearch$1 = "", getProps$9 = () => ({}), KgSearch = defineComponent({
|
|
13109
13122
|
default: () => [createVNode("div", {
|
13110
13123
|
class: "ant-collapse-header"
|
13111
13124
|
}, [createVNode(Spin, {
|
13112
|
-
spinning:
|
13125
|
+
spinning: M.value
|
13113
13126
|
}, {
|
13114
|
-
default: () => [
|
13127
|
+
default: () => [I(), createVNode("div", {
|
13115
13128
|
class: "ant-collapse-extra"
|
13116
|
-
}, [
|
13129
|
+
}, [R()])]
|
13117
13130
|
})])]
|
13118
13131
|
}), createVNode("div", {
|
13119
13132
|
class: "ant-collapse-content ant-collapse-content-active"
|
@@ -13590,112 +13603,112 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13590
13603
|
columnWidth: 32,
|
13591
13604
|
hideSelectAll: !0,
|
13592
13605
|
selectedRowKeys: g,
|
13593
|
-
onSelect: (
|
13606
|
+
onSelect: (w) => F(w)
|
13594
13607
|
}), v = ref({
|
13595
13608
|
visible: !1
|
13596
13609
|
}), b = computed(() => !!(unref(c) || unref(a) || unref(o) || unref(s))), m = computed(() => {
|
13597
|
-
var
|
13598
|
-
return !!c.value || ((
|
13610
|
+
var w;
|
13611
|
+
return !!c.value || ((w = n.getSelectedVarCatalog) == null ? void 0 : w.cust_lvl) === KG_CUSTOM_LEVEL.L0;
|
13599
13612
|
}), _ = computed(() => !!(!unref(c) || unref(a) || unref(o))), T = computed(() => !!(!unref(n.getSelectedVarCatalog) || unref(a)));
|
13600
|
-
watch(() => n.getSelectedVar, (
|
13601
|
-
|
13613
|
+
watch(() => n.getSelectedVar, (w) => {
|
13614
|
+
w ? y() : (c.value = null, u.value = [], n.setSelectedVarCatalog(null));
|
13602
13615
|
}, {
|
13603
13616
|
immediate: !0
|
13604
|
-
}), watch(() => n.getSelectedVarCatalog, async (
|
13605
|
-
var
|
13606
|
-
l.value.var_text = (
|
13617
|
+
}), watch(() => n.getSelectedVarCatalog, async (w) => {
|
13618
|
+
var D, O;
|
13619
|
+
l.value.var_text = (D = w == null ? void 0 : w.var_text) != null ? D : "", (O = i.value) == null || O.clearValidate();
|
13607
13620
|
});
|
13608
|
-
async function y(
|
13609
|
-
var
|
13621
|
+
async function y(w = !1) {
|
13622
|
+
var D, O, I;
|
13610
13623
|
a.value = !0;
|
13611
13624
|
try {
|
13612
13625
|
const {
|
13613
|
-
records:
|
13626
|
+
records: V
|
13614
13627
|
} = await List({
|
13615
13628
|
params: {
|
13616
13629
|
pageNo: 1,
|
13617
13630
|
pageSize: 999,
|
13618
13631
|
frm_id: e == null ? void 0 : e.value,
|
13619
|
-
var_nam: (
|
13632
|
+
var_nam: (D = n.getSelectedVar) == null ? void 0 : D.var_nam,
|
13620
13633
|
column: "frm_id,locale_id,cust_lvl",
|
13621
13634
|
order: "asc"
|
13622
13635
|
}
|
13623
13636
|
});
|
13624
|
-
if (c.value = null, u.value =
|
13625
|
-
const
|
13626
|
-
var
|
13627
|
-
return H.id === ((
|
13637
|
+
if (c.value = null, u.value = V != null ? V : [], w) {
|
13638
|
+
const R = u.value.find((H) => {
|
13639
|
+
var G;
|
13640
|
+
return H.id === ((G = n.getSelectedVarCatalog) == null ? void 0 : G.id);
|
13628
13641
|
});
|
13629
|
-
n.setSelectedVarCatalog(
|
13642
|
+
n.setSelectedVarCatalog(R != null ? R : null), g.value = R != null && R.id ? [R.id] : [];
|
13630
13643
|
} else
|
13631
|
-
n.setSelectedVarCatalog((
|
13632
|
-
} catch (
|
13633
|
-
Logger.debug(
|
13644
|
+
n.setSelectedVarCatalog((O = u.value[0]) != null ? O : null), g.value = (I = u.value[0]) != null && I.id ? [u.value[0].id] : [];
|
13645
|
+
} catch (V) {
|
13646
|
+
Logger.debug(V == null ? void 0 : V.message);
|
13634
13647
|
} finally {
|
13635
13648
|
a.value = !1;
|
13636
13649
|
}
|
13637
13650
|
}
|
13638
13651
|
async function C() {
|
13639
|
-
var
|
13652
|
+
var w, D, O;
|
13640
13653
|
try {
|
13641
|
-
o.value = !0, await ((
|
13642
|
-
const
|
13643
|
-
...(
|
13644
|
-
var_text: (
|
13654
|
+
o.value = !0, await ((w = i.value) == null ? void 0 : w.validate());
|
13655
|
+
const I = new VarCatalog({
|
13656
|
+
...(D = n.getSelectedVarCatalog) != null ? D : {},
|
13657
|
+
var_text: (O = l.value) == null ? void 0 : O.var_text
|
13645
13658
|
});
|
13646
|
-
|
13647
|
-
data:
|
13659
|
+
I.id ? I.cust_lvl === KG_CUSTOM_LEVEL.L0 ? (I.cust_lvl = KG_CUSTOM_LEVEL.L10, Reflect.deleteProperty(I, "id"), await Add({
|
13660
|
+
data: I
|
13648
13661
|
}, {
|
13649
13662
|
successMessageMode: "none"
|
13650
13663
|
}), message.success({
|
13651
13664
|
content: t.t("kg.KgVarConfig.createSuccess")
|
13652
13665
|
}), await y()) : (await Edit({
|
13653
|
-
data:
|
13666
|
+
data: I
|
13654
13667
|
}, {
|
13655
13668
|
successMessageMode: "none"
|
13656
13669
|
}), message.success({
|
13657
13670
|
content: t.t("kg.KgVarConfig.saveSuccess")
|
13658
13671
|
}), await y(!0)) : (await Add({
|
13659
|
-
data:
|
13672
|
+
data: I
|
13660
13673
|
}, {
|
13661
13674
|
successMessageMode: "none"
|
13662
13675
|
}), message.success({
|
13663
13676
|
content: t.t("kg.KgVarConfig.createSuccess")
|
13664
13677
|
}), await y()), r.retrieve(e == null ? void 0 : e.value);
|
13665
|
-
} catch (
|
13666
|
-
KgUtil.throwIfNotFormError(
|
13678
|
+
} catch (I) {
|
13679
|
+
KgUtil.throwIfNotFormError(I);
|
13667
13680
|
} finally {
|
13668
13681
|
o.value = !1;
|
13669
13682
|
}
|
13670
13683
|
}
|
13671
13684
|
function E({
|
13672
|
-
isAllForm:
|
13673
|
-
isAllLanguage:
|
13685
|
+
isAllForm: w,
|
13686
|
+
isAllLanguage: D
|
13674
13687
|
}) {
|
13675
|
-
var
|
13688
|
+
var O, I, V;
|
13676
13689
|
c.value = new VarCatalog({
|
13677
13690
|
id: "",
|
13678
13691
|
cust_lvl: KG_CUSTOM_LEVEL.L10,
|
13679
|
-
grp_nam: (
|
13680
|
-
var_nam: (
|
13681
|
-
frm_id:
|
13682
|
-
locale_id:
|
13692
|
+
grp_nam: (O = n.getSelectedVar) == null ? void 0 : O.grp_nam,
|
13693
|
+
var_nam: (I = n.getSelectedVar) == null ? void 0 : I.var_nam,
|
13694
|
+
frm_id: w || !(e != null && e.value) ? "ALL" : e == null ? void 0 : e.value,
|
13695
|
+
locale_id: D ? "ALL" : (V = t.locale) == null ? void 0 : V.value,
|
13683
13696
|
var_text: ""
|
13684
13697
|
}), u.value = [...u.value, c.value], n.setSelectedVarCatalog(unref(c)), g.value = [""];
|
13685
13698
|
}
|
13686
13699
|
function A() {
|
13687
|
-
var
|
13700
|
+
var D;
|
13688
13701
|
u.value = without$1(u.value, c.value), c.value = null;
|
13689
|
-
const
|
13690
|
-
n.setSelectedVarCatalog(
|
13702
|
+
const w = (D = u.value[0]) != null ? D : null;
|
13703
|
+
n.setSelectedVarCatalog(w), g.value = w ? [w.id] : [];
|
13691
13704
|
}
|
13692
13705
|
function k() {
|
13693
13706
|
KgUtil.confirm({
|
13694
13707
|
onOk: async () => {
|
13695
|
-
var
|
13708
|
+
var w;
|
13696
13709
|
await Delete({
|
13697
13710
|
params: {
|
13698
|
-
id: (
|
13711
|
+
id: (w = n.getSelectedVarCatalog) == null ? void 0 : w.id
|
13699
13712
|
}
|
13700
13713
|
}, {
|
13701
13714
|
successMessageMode: "none",
|
@@ -13706,19 +13719,19 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13706
13719
|
}
|
13707
13720
|
});
|
13708
13721
|
}
|
13709
|
-
function
|
13710
|
-
var
|
13711
|
-
((
|
13722
|
+
function F(w) {
|
13723
|
+
var D;
|
13724
|
+
((D = n.getSelectedVarCatalog) == null ? void 0 : D.id) !== w.id && (unref(c) ? KgUtil.confirm({
|
13712
13725
|
content: t.t("kg.KgVarConfig.discardConfirmMessage"),
|
13713
13726
|
onOk: () => {
|
13714
|
-
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(
|
13727
|
+
u.value = without$1(u.value, c.value), c.value = null, n.setSelectedVarCatalog(unref(w)), g.value = [w.id];
|
13715
13728
|
}
|
13716
|
-
}) : (n.setSelectedVarCatalog(unref(
|
13729
|
+
}) : (n.setSelectedVarCatalog(unref(w)), g.value = [w.id]));
|
13717
13730
|
}
|
13718
13731
|
function L() {
|
13719
13732
|
v.value.visible = !0;
|
13720
13733
|
}
|
13721
|
-
function
|
13734
|
+
function M() {
|
13722
13735
|
return createVNode("div", {
|
13723
13736
|
class: "buttons"
|
13724
13737
|
}, [createVNode(Button, {
|
@@ -13737,8 +13750,8 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13737
13750
|
default: () => [createVNode(DeleteOutlined$1, null, null), t.t("common.delText")]
|
13738
13751
|
})]);
|
13739
13752
|
}
|
13740
|
-
function
|
13741
|
-
let
|
13753
|
+
function P() {
|
13754
|
+
let w, D;
|
13742
13755
|
return createVNode("div", {
|
13743
13756
|
class: "form"
|
13744
13757
|
}, [createVNode(Form, {
|
@@ -13755,7 +13768,7 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13755
13768
|
}, {
|
13756
13769
|
default: () => [createVNode(Textarea, {
|
13757
13770
|
value: l.value.var_text,
|
13758
|
-
"onUpdate:value": (
|
13771
|
+
"onUpdate:value": (O) => l.value.var_text = O,
|
13759
13772
|
disabled: !n.getSelectedVarCatalog
|
13760
13773
|
}, null), createVNode("button", {
|
13761
13774
|
hidden: !0
|
@@ -13766,25 +13779,25 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13766
13779
|
}, [createVNode(Button, {
|
13767
13780
|
disabled: _.value,
|
13768
13781
|
onClick: A
|
13769
|
-
}, _isSlot(
|
13770
|
-
default: () => [
|
13782
|
+
}, _isSlot(w = t.t("common.cancelText")) ? w : {
|
13783
|
+
default: () => [w]
|
13771
13784
|
}), createVNode(Button, {
|
13772
13785
|
loading: o.value,
|
13773
13786
|
disabled: T.value,
|
13774
13787
|
onClick: C,
|
13775
13788
|
type: "primary"
|
13776
|
-
}, _isSlot(
|
13777
|
-
default: () => [
|
13789
|
+
}, _isSlot(D = t.t("common.save")) ? D : {
|
13790
|
+
default: () => [D]
|
13778
13791
|
})])]);
|
13779
13792
|
}
|
13780
|
-
function $(
|
13781
|
-
var
|
13782
|
-
let
|
13783
|
-
return
|
13793
|
+
function $(w) {
|
13794
|
+
var O;
|
13795
|
+
let D = "";
|
13796
|
+
return w.id || (D += " ant-table-row-create"), w.id === ((O = n.getSelectedVarCatalog) == null ? void 0 : O.id) && (D += " ant-table-row-selected "), D;
|
13784
13797
|
}
|
13785
13798
|
return () => createVNode("div", {
|
13786
13799
|
class: "kg-var-config-modal-var-var-catalog"
|
13787
|
-
}, [
|
13800
|
+
}, [M(), createVNode(Table, {
|
13788
13801
|
pagination: !1,
|
13789
13802
|
class: "kg-flex-table",
|
13790
13803
|
size: "small",
|
@@ -13798,12 +13811,12 @@ const KgVarConfigModalVarVarCatalog = defineComponent({
|
|
13798
13811
|
loading: a.value,
|
13799
13812
|
rowClassName: $,
|
13800
13813
|
rowSelection: p.value,
|
13801
|
-
customRow: (
|
13802
|
-
onClick: () =>
|
13814
|
+
customRow: (w) => ({
|
13815
|
+
onClick: () => F(w)
|
13803
13816
|
})
|
13804
|
-
}, null),
|
13817
|
+
}, null), P(), createVNode(KgVarConfigModalVarCreateModal, {
|
13805
13818
|
visible: v.value.visible,
|
13806
|
-
"onUpdate:visible": (
|
13819
|
+
"onUpdate:visible": (w) => v.value.visible = w,
|
13807
13820
|
onKgOk: E
|
13808
13821
|
}, null)]);
|
13809
13822
|
}
|
@@ -14132,9 +14145,9 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14132
14145
|
customRender: ({
|
14133
14146
|
record: E
|
14134
14147
|
}) => {
|
14135
|
-
var k,
|
14148
|
+
var k, F, L;
|
14136
14149
|
const A = E;
|
14137
|
-
return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (
|
14150
|
+
return createVNode("div", null, [createVNode("div", null, [(k = A.whDsc) != null ? k : " ", createTextVNode(" - "), (F = A.whId) != null ? F : " "]), createVNode("div", {
|
14138
14151
|
class: "address"
|
14139
14152
|
}, [(L = A.adrId) != null ? L : " "])]);
|
14140
14153
|
}
|
@@ -14142,8 +14155,8 @@ const KgWarehouse$1 = "", getProps = () => ({
|
|
14142
14155
|
var A;
|
14143
14156
|
const E = (A = o.value) == null ? void 0 : A.toUpperCase();
|
14144
14157
|
return c.value.filter((k) => {
|
14145
|
-
var
|
14146
|
-
return ((L = (
|
14158
|
+
var F, L, M, P, $, w;
|
14159
|
+
return ((L = (F = k.whDsc) == null ? void 0 : F.toUpperCase()) == null ? void 0 : L.includes(E)) || ((P = (M = k.whId) == null ? void 0 : M.toUpperCase()) == null ? void 0 : P.includes(E)) || ((w = ($ = k.adrId) == null ? void 0 : $.toUpperCase()) == null ? void 0 : w.includes(E));
|
14147
14160
|
});
|
14148
14161
|
}), p = computed(() => {
|
14149
14162
|
var E, A;
|