@baosight/er4j 0.0.48 → 0.0.49
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/er4j-dist/er4j.es.js +484 -484
- package/er4j-dist/er4j.es.js.map +1 -1
- package/er4j-dist/er4j.umd.js +14 -14
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/package.json +1 -1
package/er4j-dist/er4j.es.js
CHANGED
|
@@ -7427,7 +7427,7 @@ var Vh = /* @__PURE__ */ function() {
|
|
|
7427
7427
|
var X = re & 7, K = re >>> 3;
|
|
7428
7428
|
return (P[K] | (X <= 1 ? 0 : P[K + 1] << 8)) >>> X & 127;
|
|
7429
7429
|
}
|
|
7430
|
-
function
|
|
7430
|
+
function U(P, re, X) {
|
|
7431
7431
|
var K = re & 7, ae = re >>> 3, ne = (1 << X) - 1, Pe = P[ae] >>> K;
|
|
7432
7432
|
return X < 8 - K || (Pe |= P[ae + 1] << 8 - K, X < 16 - K) || (Pe |= P[ae + 2] << 16 - K, X < 24 - K) || (Pe |= P[ae + 3] << 24 - K), Pe & ne;
|
|
7433
7433
|
}
|
|
@@ -7612,7 +7612,7 @@ var Vh = /* @__PURE__ */ function() {
|
|
|
7612
7612
|
}
|
|
7613
7613
|
for (; ; ) {
|
|
7614
7614
|
!re && Pe < ne + 32767 && (ae = Se(ae, ne + 32767), Pe = ae.length);
|
|
7615
|
-
var Ge =
|
|
7615
|
+
var Ge = U(P, X, We), ct = K >>> 1 == 1 ? te[Ge] : V[Ge];
|
|
7616
7616
|
if (X += ct & 15, ct >>>= 4, (ct >>> 8 & 255) === 0) ae[ne++] = ct;
|
|
7617
7617
|
else {
|
|
7618
7618
|
if (ct == 256) break;
|
|
@@ -7620,9 +7620,9 @@ var Vh = /* @__PURE__ */ function() {
|
|
|
7620
7620
|
var k = ct < 8 ? 0 : ct - 4 >> 2;
|
|
7621
7621
|
k > 5 && (k = 0);
|
|
7622
7622
|
var ie = ne + n[ct];
|
|
7623
|
-
k > 0 && (ie +=
|
|
7623
|
+
k > 0 && (ie += U(P, X, k), X += k), Ge = U(P, X, Me), ct = K >>> 1 == 1 ? ze[Ge] : ye[Ge], X += ct & 15, ct >>>= 4;
|
|
7624
7624
|
var Ee = ct < 4 ? 0 : ct - 2 >> 1, Le = s[ct];
|
|
7625
|
-
for (Ee > 0 && (Le +=
|
|
7625
|
+
for (Ee > 0 && (Le += U(P, X, Ee), X += Ee), !re && Pe < ie && (ae = Se(ae, ie + 100), Pe = ae.length); ne < ie; )
|
|
7626
7626
|
ae[ne] = ae[ne - Le], ++ne;
|
|
7627
7627
|
}
|
|
7628
7628
|
}
|
|
@@ -7665,11 +7665,11 @@ var Vh = /* @__PURE__ */ function() {
|
|
|
7665
7665
|
);
|
|
7666
7666
|
X.l += ct + k + ie;
|
|
7667
7667
|
var Je = X.l;
|
|
7668
|
-
X.l = Ee + 4,
|
|
7668
|
+
X.l = Ee + 4, G(X, be, Ge, ne, Le), X.l = Je;
|
|
7669
7669
|
}
|
|
7670
7670
|
return ne;
|
|
7671
7671
|
}
|
|
7672
|
-
function
|
|
7672
|
+
function G(P, re, X, K, ae) {
|
|
7673
7673
|
P.l += 2;
|
|
7674
7674
|
var ne = P.read_shift(2), Pe = P.read_shift(2), We = d(P);
|
|
7675
7675
|
if (ne & 8257) throw new Error("Unsupported ZIP encryption");
|
|
@@ -11782,7 +11782,7 @@ var hn = /* @__PURE__ */ function() {
|
|
|
11782
11782
|
if (z[2] == 0 && (z[3] == 8 || z[3] == 9) && z.length >= 16 && z[14] == 5 && z[15] === 108)
|
|
11783
11783
|
throw new Error("Unsupported Works 3 for Mac file");
|
|
11784
11784
|
if (z[2] == 2)
|
|
11785
|
-
r.Enum = Ke, e(z, function(N,
|
|
11785
|
+
r.Enum = Ke, e(z, function(N, U, Y) {
|
|
11786
11786
|
switch (Y) {
|
|
11787
11787
|
case 0:
|
|
11788
11788
|
r.vers = N, N >= 4096 && (r.qpro = !0);
|
|
@@ -11820,7 +11820,7 @@ var hn = /* @__PURE__ */ function() {
|
|
|
11820
11820
|
}
|
|
11821
11821
|
}, r);
|
|
11822
11822
|
else if (z[2] == 26 || z[2] == 14)
|
|
11823
|
-
r.Enum = Ne, z[2] == 14 && (r.qpro = !0, z.l = 0), e(z, function(N,
|
|
11823
|
+
r.Enum = Ne, z[2] == 14 && (r.qpro = !0, z.l = 0), e(z, function(N, U, Y) {
|
|
11824
11824
|
switch (Y) {
|
|
11825
11825
|
case 204:
|
|
11826
11826
|
n = N;
|
|
@@ -11888,12 +11888,12 @@ var hn = /* @__PURE__ */ function() {
|
|
|
11888
11888
|
for (var p = Ar(h["!ref"]), E = Array.isArray(h), m = [], I = Math.min(p.e.r, 8191), F = p.s.r; F <= I; ++F)
|
|
11889
11889
|
for (var M = Kr(F), Z = p.s.c; Z <= p.e.c; ++Z) {
|
|
11890
11890
|
F === p.s.r && (m[Z] = $r(Z));
|
|
11891
|
-
var N = m[Z] + M,
|
|
11892
|
-
if (!(!
|
|
11893
|
-
if (
|
|
11894
|
-
Ga(i, 23, Q(F, Z, c,
|
|
11891
|
+
var N = m[Z] + M, U = E ? (h[F] || [])[Z] : h[N];
|
|
11892
|
+
if (!(!U || U.t == "z"))
|
|
11893
|
+
if (U.t == "n")
|
|
11894
|
+
Ga(i, 23, Q(F, Z, c, U.v));
|
|
11895
11895
|
else {
|
|
11896
|
-
var Y = oi(
|
|
11896
|
+
var Y = oi(U);
|
|
11897
11897
|
Ga(i, 22, W(F, Z, c, Y.slice(0, 239)));
|
|
11898
11898
|
}
|
|
11899
11899
|
}
|
|
@@ -17896,8 +17896,8 @@ function bo(e, a) {
|
|
|
17896
17896
|
var d = qr(t);
|
|
17897
17897
|
return d.type = "string", Tn.to_workbook(o, d);
|
|
17898
17898
|
}
|
|
17899
|
-
if (l.indexOf("<?xml") == -1 && ["html", "table", "head", "meta", "script", "style", "div"].forEach(function(
|
|
17900
|
-
l.indexOf("<" +
|
|
17899
|
+
if (l.indexOf("<?xml") == -1 && ["html", "table", "head", "meta", "script", "style", "div"].forEach(function(U) {
|
|
17900
|
+
l.indexOf("<" + U) >= 0 && (u = !0);
|
|
17901
17901
|
}), u) return yv(o, t);
|
|
17902
17902
|
mn = {
|
|
17903
17903
|
"General Number": "General",
|
|
@@ -19138,9 +19138,9 @@ function xv(e, a) {
|
|
|
19138
19138
|
break;
|
|
19139
19139
|
}
|
|
19140
19140
|
if (R = Wn(m.val, m.cell.ixfe, m.tt), R.XF = pe[R.ixfe], a.cellFormula) {
|
|
19141
|
-
var
|
|
19142
|
-
if (
|
|
19143
|
-
var Y =
|
|
19141
|
+
var U = m.formula;
|
|
19142
|
+
if (U && U[0] && U[0][0] && U[0][0][0] == "PtgExp") {
|
|
19143
|
+
var Y = U[0][0][1][0], j = U[0][0][1][1], Fe = Bt({ r: Y, c: j });
|
|
19144
19144
|
H[Fe] ? R.f = "" + ra(m.formula, d, m.cell, Ce, J) : R.F = ((a.dense ? (l[Y] || [])[j] : l[Fe]) || {}).F;
|
|
19145
19145
|
} else R.f = "" + ra(m.formula, d, m.cell, Ce, J);
|
|
19146
19146
|
}
|
|
@@ -27403,8 +27403,8 @@ var D;
|
|
|
27403
27403
|
const s = /* @__PURE__ */ new Date(), c = s.getFullYear().toString();
|
|
27404
27404
|
let h = (s.getMonth() + 1).toString(), p = s.getDate().toString(), E = s.getHours().toString(), m = s.getMinutes().toString(), I = s.getSeconds().toString();
|
|
27405
27405
|
h = h.length === 1 ? "0" + h : h, p = p.length === 1 ? "0" + p : p, E = E.length === 1 ? "0" + E : E, m = m.length === 1 ? "0" + m : m, I = I.length === 1 ? "0" + I : I, r = r.trim().replaceAll(" ", "").replaceAll("/", "").replaceAll("-", "").replaceAll(":", "").replaceAll("T", "").replaceAll("yyyy", c).replaceAll("MM", h).replaceAll("dd", p).replaceAll("HH", E).replaceAll("mm", m).replaceAll("ss", I);
|
|
27406
|
-
let F = 1, M = 1, Z = 1, N = 0,
|
|
27407
|
-
r.length >= 4 && (F = this.toNumber(r.substring(0, 4)) || 1), r.length >= 6 && (M = this.toNumber(r.substring(4, 6)) || 1), r.length >= 8 && (Z = this.toNumber(r.substring(6, 8)) || 1), r.length >= 10 && (N = this.toNumber(r.substring(8, 10))), r.length >= 12 && (
|
|
27406
|
+
let F = 1, M = 1, Z = 1, N = 0, U = 0, Y = 0;
|
|
27407
|
+
r.length >= 4 && (F = this.toNumber(r.substring(0, 4)) || 1), r.length >= 6 && (M = this.toNumber(r.substring(4, 6)) || 1), r.length >= 8 && (Z = this.toNumber(r.substring(6, 8)) || 1), r.length >= 10 && (N = this.toNumber(r.substring(8, 10))), r.length >= 12 && (U = this.toNumber(r.substring(10, 12))), r.length >= 14 && (Y = this.toNumber(r.substring(12, 14))), F !== 1 && F !== 1900 && (n = new Date(F, M - 1, Z, N, U, Y));
|
|
27408
27408
|
} else if (r instanceof Date)
|
|
27409
27409
|
n = r;
|
|
27410
27410
|
else if (tr.isDayjs(r)) {
|
|
@@ -27558,10 +27558,10 @@ var D;
|
|
|
27558
27558
|
}
|
|
27559
27559
|
},
|
|
27560
27560
|
(m) => {
|
|
27561
|
-
var M, Z, N,
|
|
27561
|
+
var M, Z, N, U;
|
|
27562
27562
|
let I;
|
|
27563
27563
|
(M = m.radios) != null && M.importSheet && p.Sheets[(Z = m.radios) == null ? void 0 : Z.importSheet] ? I = p.Sheets[(N = m.radios) == null ? void 0 : N.importSheet] : I = p.Sheets[p.SheetNames[0]];
|
|
27564
|
-
const F = ((
|
|
27564
|
+
const F = ((U = m.inputs) == null ? void 0 : U.headerRowsCount) || 1;
|
|
27565
27565
|
if (I) {
|
|
27566
27566
|
const Y = p1.sheet_to_json(I, { range: F - 1 });
|
|
27567
27567
|
r && r(Y);
|
|
@@ -27585,7 +27585,7 @@ var D;
|
|
|
27585
27585
|
((c = (s = r == null ? void 0 : r.gridOptions) == null ? void 0 : s.context) == null ? void 0 : c.bindingSource) instanceof T && this.readExcelFile((h) => {
|
|
27586
27586
|
var p, E, m;
|
|
27587
27587
|
if (h.length > 0) {
|
|
27588
|
-
const I = {}, F = {}, M = (p = r == null ? void 0 : r.gridOptions) == null ? void 0 : p.columnApi.getColumns(), Z = (m = (E = r == null ? void 0 : r.gridOptions) == null ? void 0 : E.context) == null ? void 0 : m.bindingSource, N = {},
|
|
27588
|
+
const I = {}, F = {}, M = (p = r == null ? void 0 : r.gridOptions) == null ? void 0 : p.columnApi.getColumns(), Z = (m = (E = r == null ? void 0 : r.gridOptions) == null ? void 0 : E.context) == null ? void 0 : m.bindingSource, N = {}, U = (j, Fe) => {
|
|
27589
27589
|
var me, Se, de;
|
|
27590
27590
|
if (j == null)
|
|
27591
27591
|
return "";
|
|
@@ -27626,7 +27626,7 @@ var D;
|
|
|
27626
27626
|
const Fe = {};
|
|
27627
27627
|
Object.keys(I).forEach((me) => {
|
|
27628
27628
|
var Se;
|
|
27629
|
-
j[I[me].dataKey] && (Fe[I[me].colDef.field] = j[I[me].dataKey], I[me].colDef.refData && ((Se = I[me].colDef.cellEditor) == null ? void 0 : Se.name) === "DropdownEditor" && (Fe[I[me].colDef.field] =
|
|
27629
|
+
j[I[me].dataKey] && (Fe[I[me].colDef.field] = j[I[me].dataKey], I[me].colDef.refData && ((Se = I[me].colDef.cellEditor) == null ? void 0 : Se.name) === "DropdownEditor" && (Fe[I[me].colDef.field] = U(Fe[I[me].colDef.field], I[me].colDef)));
|
|
27630
27630
|
}), i && i instanceof Function ? i(Fe) && Y.push(Fe) : Y.push(Fe);
|
|
27631
27631
|
}
|
|
27632
27632
|
}), n && n instanceof Function ? n(Y) : Z.import(Y);
|
|
@@ -27657,9 +27657,9 @@ var D;
|
|
|
27657
27657
|
},
|
|
27658
27658
|
shouldRowBeSkipped: (h) => !!(c != null && c.skipSummaryRows && h.node.footer === !0 && h.node.group === !0 && h.node.level >= 0 || c != null && c.skipFooterRows && h.node.footer === !0 && h.node.group === !0 && h.node.level < 0),
|
|
27659
27659
|
processCellCallback: (h) => {
|
|
27660
|
-
var m, I, F, M, Z, N,
|
|
27660
|
+
var m, I, F, M, Z, N, U, Y, j, Fe, me;
|
|
27661
27661
|
const p = e.Core.toString(h.value).includes("->") ? " -> " : "", E = e.Core.toString(h.value).replace(p, "").trimStart();
|
|
27662
|
-
return h.value && ya.isPlainObject(h.value) && h.formatValue instanceof Function ? h.formatValue(h.value) : h.node.group && h.node.footer !== !0 ? (m = h.column.colDef) != null && m.rowGroup && h.node.key ? ((I = h.column.colDef.refData) == null ? void 0 : I[h.node.key]) || h.node.key : ((M = (F = h.column.colDef) == null ? void 0 : F.context) == null ? void 0 : M.dataType) === "number" ? c != null && c.numberAsText ? h.formatValue(h.value) : h.value : p + (((
|
|
27662
|
+
return h.value && ya.isPlainObject(h.value) && h.formatValue instanceof Function ? h.formatValue(h.value) : h.node.group && h.node.footer !== !0 ? (m = h.column.colDef) != null && m.rowGroup && h.node.key ? ((I = h.column.colDef.refData) == null ? void 0 : I[h.node.key]) || h.node.key : ((M = (F = h.column.colDef) == null ? void 0 : F.context) == null ? void 0 : M.dataType) === "number" ? c != null && c.numberAsText ? h.formatValue(h.value) : h.value : p + (((U = (N = (Z = h.node.rowGroupColumn) == null ? void 0 : Z.colDef) == null ? void 0 : N.refData) == null ? void 0 : U[E]) || h.formatValue(E) || E) : ((j = (Y = h.column.colDef) == null ? void 0 : Y.context) == null ? void 0 : j.dataType) === "number" ? c != null && c.numberAsText ? h.formatValue(h.value) : h.value : ((me = (Fe = h.column.colDef) == null ? void 0 : Fe.context) == null ? void 0 : me.dataType) === "boolean" ? h.value ? "R" : "£" : h.formatValue(h.value) || h.value;
|
|
27663
27663
|
}
|
|
27664
27664
|
});
|
|
27665
27665
|
};
|
|
@@ -27788,7 +27788,7 @@ var D;
|
|
|
27788
27788
|
* @param onConfirm 用户点击“确认”后的回调,返回 { checkboxes, radios }
|
|
27789
27789
|
*/
|
|
27790
27790
|
static openSelectOptionsModal(r, i) {
|
|
27791
|
-
var N,
|
|
27791
|
+
var N, U, Y;
|
|
27792
27792
|
const {
|
|
27793
27793
|
checkboxOptions: n = [],
|
|
27794
27794
|
radioGroups: s = [],
|
|
@@ -27797,7 +27797,7 @@ var D;
|
|
|
27797
27797
|
width: p = 450,
|
|
27798
27798
|
okText: E = this.$t("ERX.OK") || "OK",
|
|
27799
27799
|
cancelText: m = this.$t("ERX.Cancel") || "Cancel"
|
|
27800
|
-
} = r, I = ge(((N = r.default) == null ? void 0 : N.checkboxOptions) || []), F = ge(((
|
|
27800
|
+
} = r, I = ge(((N = r.default) == null ? void 0 : N.checkboxOptions) || []), F = ge(((U = r.default) == null ? void 0 : U.radioGroups) || {}), M = ge(((Y = r.default) == null ? void 0 : Y.inputOptions) || {}), Z = () => gt("div", { style: r.style }, [
|
|
27801
27801
|
n.length > 0 && gt("div", { style: "margin-bottom: 24px;" }, [
|
|
27802
27802
|
gt(al.Group, {
|
|
27803
27803
|
options: n,
|
|
@@ -27966,10 +27966,10 @@ var D;
|
|
|
27966
27966
|
var i, n, s, c, h;
|
|
27967
27967
|
if ((s = (n = (i = r == null ? void 0 : r.gridOptions) == null ? void 0 : i.api) == null ? void 0 : n.gridBodyCtrl) != null && s.scrollVisibleService && ((h = (c = r == null ? void 0 : r.gridOptions) == null ? void 0 : c.api) != null && h.gridBodyCtrl.eGridBody)) {
|
|
27968
27968
|
const p = (Z) => {
|
|
27969
|
-
const { height: N, width:
|
|
27969
|
+
const { height: N, width: U, borderTopWidth: Y, borderRightWidth: j, borderBottomWidth: Fe, borderLeftWidth: me, paddingTop: Se, paddingRight: de, paddingBottom: _e, paddingLeft: te, marginTop: ze, marginRight: $e, marginBottom: st, marginLeft: oe, boxSizing: V } = window.getComputedStyle(Z);
|
|
27970
27970
|
return {
|
|
27971
27971
|
height: parseFloat(N),
|
|
27972
|
-
width: parseFloat(
|
|
27972
|
+
width: parseFloat(U),
|
|
27973
27973
|
borderTopWidth: parseFloat(Y),
|
|
27974
27974
|
borderRightWidth: parseFloat(j),
|
|
27975
27975
|
borderBottomWidth: parseFloat(Fe),
|
|
@@ -28232,7 +28232,7 @@ var D;
|
|
|
28232
28232
|
* @returns ObservableObject or Json array
|
|
28233
28233
|
*/
|
|
28234
28234
|
static getGridRows(r, i, n = !1, s = !1) {
|
|
28235
|
-
var h, p, E, m, I, F, M, Z, N,
|
|
28235
|
+
var h, p, E, m, I, F, M, Z, N, U, Y, j, Fe, me, Se, de, _e, te, ze, $e, st, oe, V;
|
|
28236
28236
|
let c = [];
|
|
28237
28237
|
if ((h = r == null ? void 0 : r.gridOptions) != null && h.api && i && i.toString().length > 0) {
|
|
28238
28238
|
const ye = (p = r == null ? void 0 : r.gridOptions) == null ? void 0 : p.api, De = (E = r == null ? void 0 : r.gridOptions) == null ? void 0 : E.columnApi;
|
|
@@ -28265,7 +28265,7 @@ var D;
|
|
|
28265
28265
|
break;
|
|
28266
28266
|
case "delete":
|
|
28267
28267
|
if ((Z = (M = r == null ? void 0 : r.gridOptions) == null ? void 0 : M.context) != null && Z.bindingSource) {
|
|
28268
|
-
const Ae = (
|
|
28268
|
+
const Ae = (U = (N = r == null ? void 0 : r.gridOptions) == null ? void 0 : N.context) == null ? void 0 : U.bindingSource;
|
|
28269
28269
|
c = Ae == null ? void 0 : Ae.getRows("removed", n);
|
|
28270
28270
|
}
|
|
28271
28271
|
break;
|
|
@@ -28313,21 +28313,21 @@ var D;
|
|
|
28313
28313
|
var m, I, F, M, Z, N;
|
|
28314
28314
|
const p = new ha(n || "Table0"), E = this.getGridRows(r, i, h || !0, c);
|
|
28315
28315
|
if (E && E.length > 0) {
|
|
28316
|
-
const
|
|
28317
|
-
if ((F =
|
|
28316
|
+
const U = (I = (m = r == null ? void 0 : r.gridOptions) == null ? void 0 : m.context) == null ? void 0 : I.bindingSource;
|
|
28317
|
+
if ((F = U == null ? void 0 : U.options) != null && F.schema) {
|
|
28318
28318
|
const Y = (Fe) => {
|
|
28319
28319
|
const me = new Nn(Fe.name);
|
|
28320
28320
|
return me.type = Fe.type === "number" ? "N" : "C", me.name = Fe.name, me.descName = Fe.caption, me;
|
|
28321
28321
|
}, j = [];
|
|
28322
28322
|
c ? (Z = (M = r == null ? void 0 : r.gridOptions) == null ? void 0 : M.columnApi.getAllGridColumns()) == null || Z.forEach((Fe) => {
|
|
28323
28323
|
var me, Se, de, _e, te, ze;
|
|
28324
|
-
if ((Se =
|
|
28325
|
-
const $e = Y((_e =
|
|
28324
|
+
if ((Se = U == null ? void 0 : U.options) != null && Se.schema[(me = Fe.colDef) == null ? void 0 : me.field]) {
|
|
28325
|
+
const $e = Y((_e = U == null ? void 0 : U.options) == null ? void 0 : _e.schema[(de = Fe.colDef) == null ? void 0 : de.field]);
|
|
28326
28326
|
$e.descName = (ze = (te = Fe.colDef) == null ? void 0 : te.headerName) == null ? void 0 : ze.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", ""), p.addColumn($e), j.push({ name: $e.name, type: $e.type });
|
|
28327
28327
|
}
|
|
28328
|
-
}) : Object.keys((N =
|
|
28328
|
+
}) : Object.keys((N = U == null ? void 0 : U.options) == null ? void 0 : N.schema).forEach((Fe) => {
|
|
28329
28329
|
var Se;
|
|
28330
|
-
const me = Y((Se =
|
|
28330
|
+
const me = Y((Se = U == null ? void 0 : U.options) == null ? void 0 : Se.schema[Fe]);
|
|
28331
28331
|
p.addColumn(me), j.push({ name: me.name, type: me.type });
|
|
28332
28332
|
}), E.forEach((Fe) => {
|
|
28333
28333
|
const me = [];
|
|
@@ -28337,8 +28337,8 @@ var D;
|
|
|
28337
28337
|
});
|
|
28338
28338
|
}
|
|
28339
28339
|
}
|
|
28340
|
-
return s && Object.keys(s).length > 0 && Object.keys(s).forEach((
|
|
28341
|
-
|
|
28340
|
+
return s && Object.keys(s).length > 0 && Object.keys(s).forEach((U) => {
|
|
28341
|
+
U.trim().length > 0 && !p.getColumn(U.trim()) && (s[U] && typeof s[U] == "number" ? p.addColumn(U.trim(), "N") : p.addColumn(U.trim(), "C"));
|
|
28342
28342
|
}), p;
|
|
28343
28343
|
}
|
|
28344
28344
|
/**
|
|
@@ -28601,7 +28601,7 @@ var D;
|
|
|
28601
28601
|
if (i = i || "", n === "toNumber")
|
|
28602
28602
|
i.trim().startsWith("-1=?") && r === "\uFEFF" ? s = -1 : i.trim().startsWith("0=?") && r === "\uFEFF" ? s = 0 : i.trim().toLowerCase() === "percent" ? s = this.toNumber(r) / 100 : i.trim().toLowerCase() === "permille" ? s = this.toNumber(r) / 1e3 : s = this.toNumber(r);
|
|
28603
28603
|
else {
|
|
28604
|
-
const
|
|
28604
|
+
const U = i;
|
|
28605
28605
|
let Y = "";
|
|
28606
28606
|
const j = i.match(/\{0:\s*([^}]+)\}/g);
|
|
28607
28607
|
if (j && j.length > 0 && (Y = j[0], i = j[0].replaceAll("{0:", "").replaceAll("}", "")), i.trim().length === 0)
|
|
@@ -28660,7 +28660,7 @@ var D;
|
|
|
28660
28660
|
}
|
|
28661
28661
|
s = E.replace(/^,+/, "").replace(/\.$/, ""), s.startsWith("-,") && (s = "-" + s.substring(2));
|
|
28662
28662
|
}
|
|
28663
|
-
Y.length > 0 && (s =
|
|
28663
|
+
Y.length > 0 && (s = U.replace(Y, s));
|
|
28664
28664
|
}
|
|
28665
28665
|
return s;
|
|
28666
28666
|
}
|
|
@@ -28727,25 +28727,25 @@ var D;
|
|
|
28727
28727
|
let m = [];
|
|
28728
28728
|
if (r instanceof ha ? m = r.getMappedRows() : r instanceof Array && r.length > 0 && (m = r), m && m.length > 0) {
|
|
28729
28729
|
const I = Object.keys(m[0]), F = [], M = [], Z = [], N = {};
|
|
28730
|
-
for (const
|
|
28731
|
-
((c = E[
|
|
28732
|
-
n === "strongly" && Object.keys(E).forEach((
|
|
28733
|
-
m[0][
|
|
28730
|
+
for (const U of I)
|
|
28731
|
+
((c = E[U]) == null ? void 0 : c.type) === "boolean" && (s === "all" || s === "boolean") ? F.push(U) : ((h = E[U]) == null ? void 0 : h.type) === "datetime" && (s === "all" || s === "datetime") ? M.push(U) : ((p = E[U]) == null ? void 0 : p.type) === "number" && typeof m[0][U] != "number" && Z.push(U);
|
|
28732
|
+
n === "strongly" && Object.keys(E).forEach((U) => {
|
|
28733
|
+
m[0][U] === void 0 && (E[U].type === "datetime" ? N[U] = null : E[U].type === "boolean" ? N[U] = E[U].default ? E[U].default : !1 : E[U].type === "number" ? N[U] = b.toNumber(E[U].default) : N[U] = "");
|
|
28734
28734
|
});
|
|
28735
|
-
for (let
|
|
28736
|
-
m[
|
|
28735
|
+
for (let U = 0; U < m.length; U++) {
|
|
28736
|
+
m[U] instanceof e.Model && (m[U] = m[U].toJSON());
|
|
28737
28737
|
for (const Y of F)
|
|
28738
28738
|
if (n === "weakly")
|
|
28739
|
-
m[
|
|
28739
|
+
m[U][Y] = m[U][Y] ? "1" : "0";
|
|
28740
28740
|
else {
|
|
28741
|
-
const j = b.toString(m[
|
|
28742
|
-
m[
|
|
28741
|
+
const j = b.toString(m[U][Y], !0, "toLower");
|
|
28742
|
+
m[U][Y] = j.length > 0 && j !== "0" && j !== "false";
|
|
28743
28743
|
}
|
|
28744
28744
|
for (const Y of M)
|
|
28745
|
-
b.toString(m[
|
|
28745
|
+
b.toString(m[U][Y], !0).length > 0 ? n === "weakly" ? (m[U][Y] = b.getDateTimeFormatString(m[U][Y], "yyyyMMddHHmmss"), (m[U][Y].substring(0, 4) === "1901" || m[U][Y].substring(0, 4) === "0001") && (m[U][Y] = null)) : m[U][Y] = b.toDateTime(m[U][Y]) : m[U][Y] = null;
|
|
28746
28746
|
for (const Y of Z)
|
|
28747
|
-
m[
|
|
28748
|
-
n === "strongly" && N && (m[
|
|
28747
|
+
m[U][Y] = b.toNumber(m[U][Y]);
|
|
28748
|
+
n === "strongly" && N && (m[U] = { ...N, ...m[U] });
|
|
28749
28749
|
}
|
|
28750
28750
|
}
|
|
28751
28751
|
return m;
|
|
@@ -28879,8 +28879,8 @@ var D;
|
|
|
28879
28879
|
if ((s = r == null ? void 0 : r.gridOptions) != null && s.api) {
|
|
28880
28880
|
const N = n || this.getGridRows(r, "select");
|
|
28881
28881
|
if ((N == null ? void 0 : N.length) > 0) {
|
|
28882
|
-
let
|
|
28883
|
-
if (i && (
|
|
28882
|
+
let U = !0;
|
|
28883
|
+
if (i && (U = await b.messageConfirm(this.$t("ERX.RemoveConfirmMessage") || "是否确认删除?")), U) {
|
|
28884
28884
|
if ((c = r == null ? void 0 : r.gridOptions) != null && c.treeData) {
|
|
28885
28885
|
const Y = [];
|
|
28886
28886
|
(p = (h = r == null ? void 0 : r.gridOptions) == null ? void 0 : h.api) == null || p.forEachNode((j) => {
|
|
@@ -29263,8 +29263,8 @@ var D;
|
|
|
29263
29263
|
E.length < 2 && (p.SysInfo.Flag = -603, p.SysInfo.Msg = "Service name error", s(p)), (m = n == null ? void 0 : n.loadingOptions) != null && m.show && this.loading(!0, n == null ? void 0 : n.loadingOptions), n != null && n.toCamelCase && Object.keys(i.getBlocks()).forEach((I) => {
|
|
29264
29264
|
const F = i.getBlock(I), M = F.getBlockMeta().getMetas(), Z = new Tf(F.getBlockId());
|
|
29265
29265
|
Object.keys(M).forEach((N) => {
|
|
29266
|
-
const
|
|
29267
|
-
|
|
29266
|
+
const U = new Nn(b.camelCase(N));
|
|
29267
|
+
U.descName = M[N].name, U.type = M[N].type, Z.addMeta(U);
|
|
29268
29268
|
}), F.setBlockMeta(Z);
|
|
29269
29269
|
}), vf.send(E[0], E[1], i, {
|
|
29270
29270
|
onSuccess: (I) => {
|
|
@@ -29566,13 +29566,13 @@ var D;
|
|
|
29566
29566
|
return;
|
|
29567
29567
|
}
|
|
29568
29568
|
const p = Math.ceil(n.size / (this._uploadOptions.maxBlobSize || this._maxBlobSize)), E = (/* @__PURE__ */ new Date()).valueOf();
|
|
29569
|
-
for (let
|
|
29570
|
-
const Y = n.slice(
|
|
29569
|
+
for (let U = 0; U < p; U++) {
|
|
29570
|
+
const Y = n.slice(U * (this._uploadOptions.maxBlobSize || this._maxBlobSize), (U + 1) * (this._uploadOptions.maxBlobSize || 2e5)), j = {
|
|
29571
29571
|
destinationPathInfo: [{ key: i, name: i }],
|
|
29572
29572
|
chunkMetadata: {
|
|
29573
29573
|
UploadId: E,
|
|
29574
29574
|
FileName: n.name,
|
|
29575
|
-
Index:
|
|
29575
|
+
Index: U,
|
|
29576
29576
|
TotalCount: p,
|
|
29577
29577
|
FileSize: n.size
|
|
29578
29578
|
}
|
|
@@ -29619,8 +29619,8 @@ var D;
|
|
|
29619
29619
|
"Content-Type": "text/plain;charset=UTF-8"
|
|
29620
29620
|
}
|
|
29621
29621
|
}).then((M) => {
|
|
29622
|
-
var Z, N,
|
|
29623
|
-
(Z = M.data) != null && Z.success ? c({ flag: !0, message: "删除文件成功" }) : (console.error("remove file failed," + ((N = M.data) == null ? void 0 : N.result)), c({ flag: !1, message: "删除文件失败:" + ((
|
|
29622
|
+
var Z, N, U;
|
|
29623
|
+
(Z = M.data) != null && Z.success ? c({ flag: !0, message: "删除文件成功" }) : (console.error("remove file failed," + ((N = M.data) == null ? void 0 : N.result)), c({ flag: !1, message: "删除文件失败:" + ((U = M.data) == null ? void 0 : U.result) }));
|
|
29624
29624
|
}).catch((M) => {
|
|
29625
29625
|
console.error("remove file failed", M), c({ flag: !1, message: "删除文件失败" });
|
|
29626
29626
|
});
|
|
@@ -30120,10 +30120,10 @@ var D;
|
|
|
30120
30120
|
var p, E, m, I, F;
|
|
30121
30121
|
const c = [], h = tt(this, Q).length > 0;
|
|
30122
30122
|
if (n && (sr(this, Q, []), sr(this, ce, []), sr(this, J, []), sr(this, ve, [])), i !== void 0 && i.length > 0 && ((p = this.options) != null && p.schema)) {
|
|
30123
|
-
const M = this.options.schema, Z = Object.keys(i[0]), N = Object.keys(M),
|
|
30123
|
+
const M = this.options.schema, Z = Object.keys(i[0]), N = Object.keys(M), U = N.filter((de) => Z.includes(de) || Z.includes(t.camelCase(de))), Y = N.filter((de) => !Z.includes(de) && !Z.includes(t.camelCase(de))), j = /* @__PURE__ */ new Map(), Fe = t.toString((m = (E = tt(this, Be)) == null ? void 0 : E.hierarchy) == null ? void 0 : m.primaryField, !0), me = t.toString((F = (I = tt(this, Be)) == null ? void 0 : I.hierarchy) == null ? void 0 : F.parentField, !0), Se = Fe.length > 0 && me.length > 0 && M[Fe] && M[me];
|
|
30124
30124
|
for (let de = 0; de < i.length; de++) {
|
|
30125
30125
|
const _e = new _(void 0, void 0, this);
|
|
30126
|
-
_e.setSchema(M, !1),
|
|
30126
|
+
_e.setSchema(M, !1), U.forEach((te) => {
|
|
30127
30127
|
switch (M[te].type) {
|
|
30128
30128
|
case "datetime":
|
|
30129
30129
|
_e[te] = t.toDateTime(i[de][te] ?? i[de][t.camelCase(te)], "Dayjs");
|
|
@@ -30210,7 +30210,7 @@ var D;
|
|
|
30210
30210
|
Q = new WeakMap(), ce = new WeakMap(), J = new WeakMap(), ve = new WeakMap(), Be = new WeakMap(), xe = new WeakMap(), Ye = new WeakMap(), Ie = new WeakMap(), Re = new WeakMap(), Ce = new WeakMap(), Ke = new WeakSet(), Ha = function(i, n) {
|
|
30211
30211
|
var c;
|
|
30212
30212
|
(c = tt(this, Re)) == null || c.forEach((h) => {
|
|
30213
|
-
var p, E, m, I, F, M, Z, N,
|
|
30213
|
+
var p, E, m, I, F, M, Z, N, U, Y, j, Fe, me, Se, de, _e, te, ze, $e, st, oe, V, ye, De, Ae, je, ut, Et, St, yt, _t, G, Ot, It, rt, Ze, Ue, pt, Ft, kt, Ut, qt, Mt, gr;
|
|
30214
30214
|
if (h.formHelper && h.configId)
|
|
30215
30215
|
if (h.controlType === "Grid") {
|
|
30216
30216
|
const ot = h.formHelper.getGrid(h.configId);
|
|
@@ -30220,7 +30220,7 @@ var D;
|
|
|
30220
30220
|
const Gt = ot.gridOptions.api.getFilterModel(), P = ot.gridOptions.columnApi.getColumnState().filter((ae) => ae.sort !== null);
|
|
30221
30221
|
Object.keys(Gt).length === 0 && P.length === 0 && ot.gridOptions.context.calculateRowSpan && ot.gridOptions.context.calculateRowSpan instanceof Function && ot.gridOptions.context.calculateRowSpan(!0), (m = (E = ot.gridOptions) == null ? void 0 : E.api) == null || m.clearRangeSelection(), ot.gridOptions.context.focusRowId = "", ot.gridOptions.context.focusColId = "", ot.gridOptions.context.dataMerged = !0, (F = (I = ot.gridOptions) == null ? void 0 : I.api) == null || F.setRowData(tt(this, Q)), tt(this, Q).length > 0 && Object.keys(Gt).length === 0 && P.length === 0 ? (sr(this, xe, void 0), this.setCurrent(tt(this, Q)[0])) : (Z = (M = ot.gridOptions) == null ? void 0 : M.api) == null || Z.setFocusedCell(0, o.GridCheckColumnFieldName);
|
|
30222
30222
|
let re = tt(this, Q).length.toString().length * 7 + 20;
|
|
30223
|
-
((
|
|
30223
|
+
((U = (N = ot.gridOptions.context) == null ? void 0 : N.viewConfig) == null ? void 0 : U.SHOW_SELECTION) === "1" && (re += 20), (Y = ot.gridOptions.context) != null && Y.allowDragRow && (re += 21), ((Fe = (j = ot.gridOptions.context) == null ? void 0 : j.options) == null ? void 0 : Fe.masterDetail) === !0 && (re += 22);
|
|
30224
30224
|
const X = (Se = (me = ot.gridOptions.columnApi) == null ? void 0 : me.columnModel) == null ? void 0 : Se.gridColumns, K = X == null ? void 0 : X.find((ae) => ae.colId === o.GridCheckColumnFieldName);
|
|
30225
30225
|
K && ot.gridOptions.columnApi.setColumnWidth(K, re);
|
|
30226
30226
|
break;
|
|
@@ -30241,7 +30241,7 @@ var D;
|
|
|
30241
30241
|
break;
|
|
30242
30242
|
}
|
|
30243
30243
|
case "dataInserted": {
|
|
30244
|
-
n.insertAt >= 0 ? ot.gridOptions.api.applyTransaction({ add: [n.current], addIndex: n.insertAt }) : ot.gridOptions.api.applyTransaction({ add: [n.current] }), ot.gridOptions.api.refreshCells({ columns: [o.GridCheckColumnFieldName] }), (((Et = (ut = ot.gridOptions.context) == null ? void 0 : ut.viewConfig) == null ? void 0 : Et.AUTO_SELECT_MODE) === "1" || ((yt = (St = ot.gridOptions.context) == null ? void 0 : St.viewConfig) == null ? void 0 : yt.AUTO_SELECT_MODE) === "3" || ((
|
|
30244
|
+
n.insertAt >= 0 ? ot.gridOptions.api.applyTransaction({ add: [n.current], addIndex: n.insertAt }) : ot.gridOptions.api.applyTransaction({ add: [n.current] }), ot.gridOptions.api.refreshCells({ columns: [o.GridCheckColumnFieldName] }), (((Et = (ut = ot.gridOptions.context) == null ? void 0 : ut.viewConfig) == null ? void 0 : Et.AUTO_SELECT_MODE) === "1" || ((yt = (St = ot.gridOptions.context) == null ? void 0 : St.viewConfig) == null ? void 0 : yt.AUTO_SELECT_MODE) === "3" || ((G = (_t = ot.gridOptions.context) == null ? void 0 : _t.options) == null ? void 0 : G.autoCheckNewRow) === !0) && h.formHelper.checkGridRow(h.configId, n.current);
|
|
30245
30245
|
break;
|
|
30246
30246
|
}
|
|
30247
30247
|
case "dataImported": {
|
|
@@ -30809,10 +30809,10 @@ var D;
|
|
|
30809
30809
|
this._erxGlobalConfig = await e.Core.getErxGlobalConfig(), (E = (p = this._erxGlobalConfig) == null ? void 0 : p.License) != null && E[e.SysInfo.CompanyCode] && (this._formConfigLicens = (I = (m = this._erxGlobalConfig) == null ? void 0 : m.License) == null ? void 0 : I[e.SysInfo.CompanyCode]);
|
|
30810
30810
|
const h = t.decryptData(this._formConfigLicens, e.SysInfo.GridCheckColumnFieldName, t.decryptData(this._privateEncryptKey, e.SysInfo.GridCheckColumnFieldName, e.SysInfo.GridCheckColumnFieldName));
|
|
30811
30811
|
return this._erxGlobalConfig && (!this._formConfigLicens || h !== o.CompanyName) && this.messageWarning(t.decryptData(this._formConfigLicensErrorMsg, e.SysInfo.GridCheckColumnFieldName, e.SysInfo.GridCheckColumnFieldName)), new Promise((F, M) => {
|
|
30812
|
-
var
|
|
30812
|
+
var U;
|
|
30813
30813
|
this._serverPartition = (r == null ? void 0 : r.trim()) || this._serverPartition, this._serviceName = (s == null ? void 0 : s.trim()) || this._serviceName, this._formName = (i == null ? void 0 : i.trim()) || this._formName, this._initialConfiParas = c || this._initialConfiParas || {}, this._layoutIds = n || this._layoutIds;
|
|
30814
30814
|
let Z = "";
|
|
30815
|
-
this._layoutIds && (typeof this._layoutIds == "string" ? Z = this._layoutIds : this._layoutIds instanceof Array && (Z = this._layoutIds.join(","))), this._dataSetName = ((
|
|
30815
|
+
this._layoutIds && (typeof this._layoutIds == "string" ? Z = this._layoutIds : this._layoutIds instanceof Array && (Z = this._layoutIds.join(","))), this._dataSetName = ((U = this._dataSetName) == null ? void 0 : U.trim()) || "#";
|
|
30816
30816
|
const N = new Rt();
|
|
30817
30817
|
if (N.addBlock(
|
|
30818
30818
|
t.buildEiBlock(
|
|
@@ -30930,13 +30930,13 @@ var D;
|
|
|
30930
30930
|
F.getBlock(N) && this._configInfo[N] && F.getBlock(N).getMappedRows().length > 0 && this._configInfo[N].addRow(F.getBlock(N).getRows());
|
|
30931
30931
|
}), m.split(",").forEach((N) => {
|
|
30932
30932
|
var j;
|
|
30933
|
-
const
|
|
30934
|
-
if (
|
|
30933
|
+
const U = this.getSingleViewConfigInfo(N), Y = t.toString(U.TABLE_NAME).trim();
|
|
30934
|
+
if (U && Y.length > 0 && !this._formDataSet.contains(Y)) {
|
|
30935
30935
|
this._configInfo.TSI00DATATABLE.data.some((me) => me.TABLE_NAME === Y) || F.getBlock("TSI00DATATABLE").getMappedRows().length > 0 && this._configInfo.TSI00DATATABLE.addRow(F.getBlock("TSI00DATATABLE").getRows());
|
|
30936
30936
|
const Fe = {};
|
|
30937
|
-
|
|
30937
|
+
U.FUNCTION_TYPE === "T" && ((j = U.CURRENT_NODE_DESC) == null ? void 0 : j.trim().length) > 0 && U.FATHER_NODE_DESC.trim().length > 0 && (Fe.hierarchy = { primaryField: U.CURRENT_NODE_DESC.trim(), parentField: U.CURRENT_NODE_DESC }), this.createDataTable(Y, Fe);
|
|
30938
30938
|
}
|
|
30939
|
-
this.setDropDownBindSourceAndRequiredFields(
|
|
30939
|
+
this.setDropDownBindSourceAndRequiredFields(U);
|
|
30940
30940
|
})), n({ flag: F.getStatus() >= 0 ? 1 : -1, msg: F.getMsg() ?? "unknown error" });
|
|
30941
30941
|
},
|
|
30942
30942
|
(F) => {
|
|
@@ -31256,9 +31256,9 @@ var D;
|
|
|
31256
31256
|
const n = this.getLayoutBindModel(r);
|
|
31257
31257
|
if (n && this._layoutConditionStyleInfo[r == null ? void 0 : r.trim()]) {
|
|
31258
31258
|
const s = (h) => {
|
|
31259
|
-
var E, m, I, F, M, Z, N,
|
|
31259
|
+
var E, m, I, F, M, Z, N, U;
|
|
31260
31260
|
const p = this._layoutConditionStyleInfo[r == null ? void 0 : r.trim()][h];
|
|
31261
|
-
p && (e.Core.checkExpressionValid(n, e.Core.getSystemFormatString(p.condition)) ? (((E = p.labelForeColor) == null ? void 0 : E.trim().length) > 0 && this.setLayoutItemCaptionForeColor(r, h, p.labelForeColor), ((m = p.labelBackgroundColor) == null ? void 0 : m.trim().length) > 0 && this.setLayoutItemCaptionBackColor(r, h, p.labelBackgroundColor), ((I = p.textForeColor) == null ? void 0 : I.trim().length) > 0 && this.setLayoutItemContentForeColor(r, h, p.textForeColor), ((F = p.textBackgroundColor) == null ? void 0 : F.trim().length) > 0 && this.setLayoutItemContentBackColor(r, h, p.textBackgroundColor)) : (((M = p.labelForeColor) == null ? void 0 : M.trim().length) > 0 && this.setLayoutItemCaptionForeColor(r, h, ""), ((Z = p.labelBackgroundColor) == null ? void 0 : Z.trim().length) > 0 && this.setLayoutItemCaptionBackColor(r, h, ""), ((N = p.textForeColor) == null ? void 0 : N.trim().length) > 0 && this.setLayoutItemContentForeColor(r, h, ""), ((
|
|
31261
|
+
p && (e.Core.checkExpressionValid(n, e.Core.getSystemFormatString(p.condition)) ? (((E = p.labelForeColor) == null ? void 0 : E.trim().length) > 0 && this.setLayoutItemCaptionForeColor(r, h, p.labelForeColor), ((m = p.labelBackgroundColor) == null ? void 0 : m.trim().length) > 0 && this.setLayoutItemCaptionBackColor(r, h, p.labelBackgroundColor), ((I = p.textForeColor) == null ? void 0 : I.trim().length) > 0 && this.setLayoutItemContentForeColor(r, h, p.textForeColor), ((F = p.textBackgroundColor) == null ? void 0 : F.trim().length) > 0 && this.setLayoutItemContentBackColor(r, h, p.textBackgroundColor)) : (((M = p.labelForeColor) == null ? void 0 : M.trim().length) > 0 && this.setLayoutItemCaptionForeColor(r, h, ""), ((Z = p.labelBackgroundColor) == null ? void 0 : Z.trim().length) > 0 && this.setLayoutItemCaptionBackColor(r, h, ""), ((N = p.textForeColor) == null ? void 0 : N.trim().length) > 0 && this.setLayoutItemContentForeColor(r, h, ""), ((U = p.textBackgroundColor) == null ? void 0 : U.trim().length) > 0 && this.setLayoutItemContentBackColor(r, h, "")));
|
|
31262
31262
|
};
|
|
31263
31263
|
let c;
|
|
31264
31264
|
i instanceof Array ? c = i : i && (i == null ? void 0 : i.trim().length) > 0 ? c = i.split(",") : c = Object.keys(this._layoutConditionStyleInfo[r]), (c == null ? void 0 : c.length) > 0 && c.forEach((h) => {
|
|
@@ -31438,8 +31438,8 @@ var D;
|
|
|
31438
31438
|
c.startsWith("$t(") && c.endsWith(")") && (c = c.substring(3, c.length - 1), h = !0);
|
|
31439
31439
|
let N = "CODE";
|
|
31440
31440
|
p.trim().length > 0 && (N = p.trim());
|
|
31441
|
-
let
|
|
31442
|
-
E.trim().length > 0 && (
|
|
31441
|
+
let U = "CODE_DESC_1_CONTENT";
|
|
31442
|
+
E.trim().length > 0 && (U = E.trim()), F.push(N, U);
|
|
31443
31443
|
const Y = {
|
|
31444
31444
|
dataValueField: "",
|
|
31445
31445
|
dataTextField: "",
|
|
@@ -31447,7 +31447,7 @@ var D;
|
|
|
31447
31447
|
filterFields: F,
|
|
31448
31448
|
columns: [
|
|
31449
31449
|
{ field: N, title: M, width: 150 },
|
|
31450
|
-
{ field:
|
|
31450
|
+
{ field: U, title: Z, width: 150 }
|
|
31451
31451
|
],
|
|
31452
31452
|
codeClass: i.SVC_NAME,
|
|
31453
31453
|
layoutType: r,
|
|
@@ -31466,19 +31466,19 @@ var D;
|
|
|
31466
31466
|
const $e = { field: de[ze], title: _e[ze].trim(), width: 150 };
|
|
31467
31467
|
$e.title.startsWith("$t(") && $e.title.endsWith(")") ? $e.title = this.$t($e.title.substring(3, $e.title.length - 1)) : h && ($e.title = this.$t($e.title)), te.push($e), F.push($e.field);
|
|
31468
31468
|
}
|
|
31469
|
-
p.trim().length > 0 && E.trim().length > 0 ? (N = p.trim(),
|
|
31469
|
+
p.trim().length > 0 && E.trim().length > 0 ? (N = p.trim(), U = E.trim()) : (m >= 0 && m < de.length ? N = de[m] : N = de[0], I >= 0 && m < de.length ? U = de[I] : de.length > 1 ? U = de[1] : U = de[0]), Y.columns = te, Y.dropDownWidth = te.length * 150, Y.dataValueField = N, Y.dataTextField = U;
|
|
31470
31470
|
}
|
|
31471
31471
|
} else if (Fe.length > 0) {
|
|
31472
31472
|
const de = Object.keys(Fe[0]);
|
|
31473
|
-
(Fe[0][N] === void 0 || Fe[0][
|
|
31473
|
+
(Fe[0][N] === void 0 || Fe[0][U] === void 0) && (Fe[0][N] === void 0 && (N = de[0]), Fe[0][U] === void 0 && (de.length > 1 ? U = de[1] : U = de[0])), Y.columns = i.VALUE_VISIBLE === "1" ? [
|
|
31474
31474
|
{ field: N, title: M, width: 150 },
|
|
31475
|
-
{ field:
|
|
31476
|
-
] : [{ field:
|
|
31477
|
-
} else p.trim().length > 0 && E.trim().length > 0 && (N = p.trim(),
|
|
31475
|
+
{ field: U, title: Z, width: 150 }
|
|
31476
|
+
] : [{ field: U, title: Z, width: 150 }], i.VALUE_VISIBLE === "1" && F.push(N);
|
|
31477
|
+
} else p.trim().length > 0 && E.trim().length > 0 && (N = p.trim(), U = E.trim(), Y.columns = i.VALUE_VISIBLE === "1" ? [
|
|
31478
31478
|
{ field: N, title: M, width: 150 },
|
|
31479
|
-
{ field:
|
|
31480
|
-
] : [{ field:
|
|
31481
|
-
return i.ADD_EMPTY_ITEM === "1" && (Y.optionLabel = "—-—"), i.FORMAT_TYPE === "Custom" && ((me = i.FORMAT_STRING) == null ? void 0 : me.trim().length) > 0 ? Y.displayFormat = (Se = i.FORMAT_STRING) == null ? void 0 : Se.trim() : i.DISPLAY_POSITION === i.VALUE_POSITION && t.toNumber(i.VALUE_POSITION) >= 0 || i.DISPLAY_MEMBER === i.VALUE_MEMBER && i.VALUE_MEMBER.trim().length > 0 ? Y.displayFormat = "{0}" : i.VALUE_VISIBLE === "1" ? Y.displayFormat = "{0}|{1}" : Y.displayFormat = "{1}", Fe && Fe instanceof Array && (j = Fe.map((de) => ({ ...de, value: de[N], label: de[
|
|
31479
|
+
{ field: U, title: Z, width: 150 }
|
|
31480
|
+
] : [{ field: U, title: Z, width: 150 }], i.VALUE_VISIBLE === "1" && F.push(N));
|
|
31481
|
+
return i.ADD_EMPTY_ITEM === "1" && (Y.optionLabel = "—-—"), i.FORMAT_TYPE === "Custom" && ((me = i.FORMAT_STRING) == null ? void 0 : me.trim().length) > 0 ? Y.displayFormat = (Se = i.FORMAT_STRING) == null ? void 0 : Se.trim() : i.DISPLAY_POSITION === i.VALUE_POSITION && t.toNumber(i.VALUE_POSITION) >= 0 || i.DISPLAY_MEMBER === i.VALUE_MEMBER && i.VALUE_MEMBER.trim().length > 0 ? Y.displayFormat = "{0}" : i.VALUE_VISIBLE === "1" ? Y.displayFormat = "{0}|{1}" : Y.displayFormat = "{1}", Fe && Fe instanceof Array && (j = Fe.map((de) => ({ ...de, value: de[N], label: de[U] }))), F.push(U), Y.autoWidth = !0, Y.dataSource = j, Y.dataValueField = N, Y.dataTextField = U, Y;
|
|
31482
31482
|
}
|
|
31483
31483
|
/**
|
|
31484
31484
|
* 设置下拉框及联筛选
|
|
@@ -31592,13 +31592,13 @@ var D;
|
|
|
31592
31592
|
var c, h, p, E, m, I, F, M, Z, N;
|
|
31593
31593
|
const s = this.getGrid(r);
|
|
31594
31594
|
if (s && ((c = n == null ? void 0 : n.data) != null && c.uid)) {
|
|
31595
|
-
const
|
|
31595
|
+
const U = (h = s.gridOptions.context) == null ? void 0 : h.configId, Y = (E = (p = s.gridOptions.context) == null ? void 0 : p.viewConfig) == null ? void 0 : E.AUTO_SELECT_MODE, j = this.getGridColumn(r, i);
|
|
31596
31596
|
if ((I = (m = j == null ? void 0 : j.colDef) == null ? void 0 : m.context) != null && I.columnConfig) {
|
|
31597
31597
|
const Fe = (M = (F = j == null ? void 0 : j.colDef) == null ? void 0 : F.context) == null ? void 0 : M.columnConfig;
|
|
31598
31598
|
let me = [], Se = {};
|
|
31599
31599
|
if (Fe && Fe.AUTOFILL_COLS && Fe.COLUMN_EDIT !== "3") {
|
|
31600
31600
|
const de = Fe.AUTOFILL_COLS;
|
|
31601
|
-
de.length > 0 && (me = de.split(";"), n.data[i] && (Se = this.getDropDownSelectedData(
|
|
31601
|
+
de.length > 0 && (me = de.split(";"), n.data[i] && (Se = this.getDropDownSelectedData(U, i, n.data[i])), me.forEach((_e) => {
|
|
31602
31602
|
if (_e.trim().length > 0) {
|
|
31603
31603
|
const te = _e.trim().split("="), ze = te[0].toUpperCase().trim();
|
|
31604
31604
|
let $e = te[0].toUpperCase().trim();
|
|
@@ -31615,7 +31615,7 @@ var D;
|
|
|
31615
31615
|
}));
|
|
31616
31616
|
}
|
|
31617
31617
|
if (n.isSelected() && Fe.MULTI_ROW_EDIT === "1" && Y !== "1" && Y !== "3") {
|
|
31618
|
-
const de = this.getGridOptions(
|
|
31618
|
+
const de = this.getGridOptions(U, "multiRowEdit");
|
|
31619
31619
|
if (de !== !1 && de !== "0")
|
|
31620
31620
|
if (((N = (Z = s.gridOptions.context) == null ? void 0 : Z.options) == null ? void 0 : N.multiRowEditType) === "all") {
|
|
31621
31621
|
const _e = this.getGridSelectRows(s);
|
|
@@ -31934,17 +31934,17 @@ var D;
|
|
|
31934
31934
|
n === "default" && (n = this.getGridOptions(r, "insertAtTop") || "default"), n === "default" && (n = ((I = (m = (E = h == null ? void 0 : h.gridOptions) == null ? void 0 : E.context) == null ? void 0 : m.options) == null ? void 0 : I.insertAtTop) || "default");
|
|
31935
31935
|
const N = this.getGridOptions(r, "autoGuidField");
|
|
31936
31936
|
(i === !0 || (i == null ? void 0 : i.setDefaultValue) === !0) && (Z = this.getGridConfigDefaultValues(r) || {}), this._customDefaultValues[r] && (Z = { ...Z, ...this._customDefaultValues[r] }), i != null && i.data && (Z = { ...Z, ...i.data });
|
|
31937
|
-
const
|
|
31937
|
+
const U = (F = h.gridOptions.context) == null ? void 0 : F.bindingSource;
|
|
31938
31938
|
if (n === !0 || n === "top")
|
|
31939
|
-
c =
|
|
31939
|
+
c = U.insert(0, Z, N);
|
|
31940
31940
|
else if (n === "afterCurrent" || n === "beforeCurrent") {
|
|
31941
31941
|
const Y = this.getGridCurrentRow(r);
|
|
31942
31942
|
if (Y) {
|
|
31943
|
-
let j =
|
|
31944
|
-
j >= 0 && j <
|
|
31943
|
+
let j = U.indexOf(Y);
|
|
31944
|
+
j >= 0 && j < U.rowCount && n === "afterCurrent" ? j = j + 1 : j > 0 && n === "beforeCurrent" && (j = j - 1), c = U.insert(j, Z, N);
|
|
31945
31945
|
} else
|
|
31946
|
-
c =
|
|
31947
|
-
} else typeof n == "number" && n >= 0 ? c =
|
|
31946
|
+
c = U.add(Z, N);
|
|
31947
|
+
} else typeof n == "number" && n >= 0 ? c = U.insert(n, Z, N) : c = U.add(Z, N);
|
|
31948
31948
|
c[o.IdFieldName] = t.guid(), (M = h == null ? void 0 : h.gridOptions) != null && M.treeData && (c[o.TreeHierarchyFieldName] = [c[o.IdFieldName]]);
|
|
31949
31949
|
}
|
|
31950
31950
|
return c;
|
|
@@ -32470,9 +32470,9 @@ var D;
|
|
|
32470
32470
|
c.addField(m), p.colId = p.colId || p.field, n.gridOptions.api.getColumnDef(p.colId) || (p.headerComponentParams = {
|
|
32471
32471
|
template: `${this.getGridHeaderTemplate({ color: p.headerTextColor, backColor: p.headerBackColor, fontSize: p.fontSize, title: p.headerName || p.title || p.caption })}`
|
|
32472
32472
|
}, p.headerClass = () => {
|
|
32473
|
-
var F, M, Z, N,
|
|
32473
|
+
var F, M, Z, N, U;
|
|
32474
32474
|
let I = "er-grid-header-align-center";
|
|
32475
|
-
return ((F = p.headerAlignment) == null ? void 0 : F.toLowerCase()) === "near" || ((M = p.headerAlignment) == null ? void 0 : M.toLowerCase()) === "left" ? I = "er-grid-header-align-left" : (((Z = p.headerAlignment) == null ? void 0 : Z.toLowerCase()) === "far" || ((N = p.headerAlignment) == null ? void 0 : N.toLowerCase()) === "right") && (I = "er-grid-header-align-right"), p.required && ((
|
|
32475
|
+
return ((F = p.headerAlignment) == null ? void 0 : F.toLowerCase()) === "near" || ((M = p.headerAlignment) == null ? void 0 : M.toLowerCase()) === "left" ? I = "er-grid-header-align-left" : (((Z = p.headerAlignment) == null ? void 0 : Z.toLowerCase()) === "far" || ((N = p.headerAlignment) == null ? void 0 : N.toLowerCase()) === "right") && (I = "er-grid-header-align-right"), p.required && ((U = p.requiredCondition) == null ? void 0 : U.trim().length) > 0 ? I = I + " er-grid-header-maroon-star" : p.required && (I = I + " er-grid-header-red-star"), I;
|
|
32476
32476
|
}, p.editable = p.editable === void 0 ? !0 : p.editable, p.autoHeaderHeight = p.autoHeaderHeight === void 0 ? !0 : p.autoHeaderHeight, p.enableRowGroup = p.enableRowGroup === void 0 ? !0 : p.enableRowGroup, typeof p.editable != "function" && (p.context = p.context || {}, p.context.editable = p.editable, p.headerTooltip = p.headerName || p.title || p.caption, p.editable = (I) => {
|
|
32477
32477
|
var F, M;
|
|
32478
32478
|
return ((F = I.context) == null ? void 0 : F.editable) && ((M = I.colDef.context) == null ? void 0 : M.editable) && !I.node.rowPinned;
|
|
@@ -32555,16 +32555,16 @@ var D;
|
|
|
32555
32555
|
setTimeout(() => {
|
|
32556
32556
|
var c, h, p, E, m, I, F;
|
|
32557
32557
|
if ((c = s == null ? void 0 : s.gridOptions) != null && c.api && ((p = (h = s == null ? void 0 : s.gridOptions) == null ? void 0 : h.context) != null && p.bindingSource)) {
|
|
32558
|
-
const M = (E = s == null ? void 0 : s.gridOptions) == null ? void 0 : E.api, N = ((I = (m = s == null ? void 0 : s.gridOptions) == null ? void 0 : m.context) == null ? void 0 : I.bindingSource).data().find((
|
|
32558
|
+
const M = (E = s == null ? void 0 : s.gridOptions) == null ? void 0 : E.api, N = ((I = (m = s == null ? void 0 : s.gridOptions) == null ? void 0 : m.context) == null ? void 0 : I.bindingSource).data().find((U) => {
|
|
32559
32559
|
for (const Y in i)
|
|
32560
|
-
if (
|
|
32560
|
+
if (U[Y] !== i[Y])
|
|
32561
32561
|
return !1;
|
|
32562
32562
|
return !0;
|
|
32563
32563
|
});
|
|
32564
32564
|
if (N != null && N.uid) {
|
|
32565
32565
|
M.clearFocusedCell();
|
|
32566
|
-
const
|
|
32567
|
-
|
|
32566
|
+
const U = (F = s == null ? void 0 : s.gridOptions) == null ? void 0 : F.api.getRowNode(N == null ? void 0 : N.uid);
|
|
32567
|
+
U && this.setGridFocusedCell(r, U.rowIndex, e.SysInfo.GridCheckColumnFieldName, n);
|
|
32568
32568
|
}
|
|
32569
32569
|
}
|
|
32570
32570
|
}, 250);
|
|
@@ -33217,8 +33217,8 @@ var D;
|
|
|
33217
33217
|
const Z = this.getLayoutItemOption(r.trim(), i, "controlType");
|
|
33218
33218
|
if (["antMultiSelect", "erMultiSelect", "erSelect", "erTreeSelect", "erMultiTreeSelect", "antRadioGroup", "erRadioGroup", "erCheckboxGroup"].includes(Z) && ["$FIRST_ROW$", "$LAST_ROW$", "$ALL_VALUES$"].includes(I) && this._dropDownBindSource[r] && this._dropDownBindSource[r][i]) {
|
|
33219
33219
|
const N = this._dropDownBindSource[r][i];
|
|
33220
|
-
((c = N.dataSource) == null ? void 0 : c.length) > 0 && N.dataValueField && (I === "$FIRST_ROW$" ? F = N.dataSource[0][N.dataValueField] : I === "$LAST_ROW$" ? F = N.dataSource[N.dataSource.length - 1][N.dataValueField] : ["antMultiSelect", "erMultiSelect"].includes(Z) && I === "$ALL_VALUES$" && (F = "", N.dataSource.forEach((
|
|
33221
|
-
F = F.length === 0 ?
|
|
33220
|
+
((c = N.dataSource) == null ? void 0 : c.length) > 0 && N.dataValueField && (I === "$FIRST_ROW$" ? F = N.dataSource[0][N.dataValueField] : I === "$LAST_ROW$" ? F = N.dataSource[N.dataSource.length - 1][N.dataValueField] : ["antMultiSelect", "erMultiSelect"].includes(Z) && I === "$ALL_VALUES$" && (F = "", N.dataSource.forEach((U) => {
|
|
33221
|
+
F = F.length === 0 ? U[N.dataValueField] : F + "," + U[N.dataValueField];
|
|
33222
33222
|
})));
|
|
33223
33223
|
}
|
|
33224
33224
|
["antDatePicker", "antDateTimePicker", "antMonthPicker", "antYearPicker"].includes(Z) ? M = t.getDateTimeByString(F) : Z === "antInputNumber" ? M = t.toNumber(F) : ["antMultiSelect", "erMultiSelect", "erCheckboxGroup"].includes(Z) ? M = F.split(",") : Z === "antCheckbox" || Z === "antSwitch" ? M = F === "1" || F.toLowerCase() === "true" : M = F, this.setControlValue(r, i, M);
|
|
@@ -33344,44 +33344,44 @@ var D;
|
|
|
33344
33344
|
M[Y] = i[Y];
|
|
33345
33345
|
}) : M.QUERY_TYPE = "", M.COMPANY_CODE = E.COMPANY_CODE, M.FORM_NAME = E.FORM_NAME, M.FUNCTION_ID = E.FUNCTION_ID, M.ITEM_CODE = t.toString(E.ITEM_CODE, !0, "toLower"), M.ORIGIN_CODE = E.ORIGIN_CODE, M.TABLE_NAME = E.TABLE_NAME, M.FIELD_NAME = t.toString(E.PARA_NAME, !0, "toLower"), M.OPERATOR = E.OPERATOR, M.PARA_GROUP = E.PARA_GROUP, M.SQL_CONTENT = E.SQL_CONTENT, M.OP_VALUE = null, M.DATA_TYPE = "String";
|
|
33346
33346
|
const Z = t.toString(M.PARA_GROUP, !0), N = t.toString(M.OPERATOR, !0);
|
|
33347
|
-
let
|
|
33347
|
+
let U = this.getControlValue(h, E.ITEM_CODE) || "";
|
|
33348
33348
|
if (N.length > 0)
|
|
33349
33349
|
switch (F) {
|
|
33350
33350
|
case "antRadioGroup":
|
|
33351
33351
|
case "erRadioGroup":
|
|
33352
33352
|
case "erSelect":
|
|
33353
33353
|
case "erTreeSelect": {
|
|
33354
|
-
M.OP_VALUE = e.Core.toString(
|
|
33354
|
+
M.OP_VALUE = e.Core.toString(U, !0), M.ORIGIN_CODE === "4" && E.SVC_NAME.trim().length > 0 && M.OP_VALUE.length > 0 && M.OPERATOR === "SQL" && (M.ORIGIN_CODE = "SIU", M.SQL_CONTENT = this.getFormCodeSetFilter(E.SVC_NAME, M.OP_VALUE)), (Z === "2" || M.OP_VALUE.length > 0) && s.push(M);
|
|
33355
33355
|
break;
|
|
33356
33356
|
}
|
|
33357
33357
|
case "antInputNumber": {
|
|
33358
|
-
M.DATA_TYPE = "Decimal", M.OP_VALUE =
|
|
33358
|
+
M.DATA_TYPE = "Decimal", M.OP_VALUE = U, M.OP_VALUE === null && (M.OP_VALUE = 0), (Z === "2" || t.toNumber(M.OP_VALUE) !== 0) && s.push(M);
|
|
33359
33359
|
break;
|
|
33360
33360
|
}
|
|
33361
33361
|
case "antCheckbox":
|
|
33362
33362
|
case "antSwitch": {
|
|
33363
|
-
M.OPERATOR = "=", M.OP_VALUE =
|
|
33363
|
+
M.OPERATOR = "=", M.OP_VALUE = U === !0 ? "1" : U === !1 ? "0" : "", (Z === "2" || ((m = M.OP_VALUE) == null ? void 0 : m.length) > 0) && s.push(M);
|
|
33364
33364
|
break;
|
|
33365
33365
|
}
|
|
33366
33366
|
case "antMultiSelect":
|
|
33367
33367
|
case "erMultiSelect":
|
|
33368
33368
|
case "erCheckboxGroup":
|
|
33369
33369
|
case "erMultiTreeSelect": {
|
|
33370
|
-
M.OPERATOR = "IN",
|
|
33370
|
+
M.OPERATOR = "IN", U && U instanceof Array && U.length > 0 ? U = "'" + U.join("','") + "'" : U = "", M.OP_VALUE = U, (Z === "2" || U.length > 0) && s.push(M);
|
|
33371
33371
|
break;
|
|
33372
33372
|
}
|
|
33373
33373
|
case "antYearPicker":
|
|
33374
33374
|
case "antMonthPicker":
|
|
33375
33375
|
case "antDatePicker":
|
|
33376
33376
|
case "antDateTimePicker": {
|
|
33377
|
-
if (
|
|
33377
|
+
if (U) {
|
|
33378
33378
|
const Y = t.toString(E.DATE_TIME_FORMAT, !0) || "yyyyMMddHHmmss";
|
|
33379
|
-
M.OP_VALUE = t.getDateTimeFormatString(
|
|
33379
|
+
M.OP_VALUE = t.getDateTimeFormatString(U, Y), M.OP_VALUE.length >= 4 && (M.OP_VALUE.substring(0, 4) === "0001" || M.OP_VALUE.substring(0, 4) === "1900") && (M.OP_VALUE = ""), (Z === "2" || ((I = M.OP_VALUE) == null ? void 0 : I.length) > 0) && s.push(M);
|
|
33380
33380
|
}
|
|
33381
33381
|
break;
|
|
33382
33382
|
}
|
|
33383
33383
|
default: {
|
|
33384
|
-
t.toString(
|
|
33384
|
+
t.toString(U, !0).length > 0 && N === "IN" && (U = "'" + U.split(/\n|\t|,|,/).join("','") + "'"), M.OP_VALUE = U, (Z === "2" || t.toString(U, !0).length > 0) && s.push(M);
|
|
33385
33385
|
break;
|
|
33386
33386
|
}
|
|
33387
33387
|
}
|
|
@@ -33460,13 +33460,13 @@ var D;
|
|
|
33460
33460
|
const E = this.getFormButtonConfigInfo(r);
|
|
33461
33461
|
if (E && E.SVC_NAME.trim().length > 0) {
|
|
33462
33462
|
const m = new Rt(), I = E.SVC_NAME, F = {};
|
|
33463
|
-
E.TYPE_DESC && E.TYPE_DESC.trim().length > 0 && (F[E.TYPE_DESC] = E.TYPE), s && Object.keys(s).length > 0 && Object.keys(s).forEach((
|
|
33464
|
-
F[
|
|
33463
|
+
E.TYPE_DESC && E.TYPE_DESC.trim().length > 0 && (F[E.TYPE_DESC] = E.TYPE), s && Object.keys(s).length > 0 && Object.keys(s).forEach((U) => {
|
|
33464
|
+
F[U] = s[U];
|
|
33465
33465
|
});
|
|
33466
33466
|
const M = this.getAllControlValueAsBlock(i, F), Z = this.getAllControlValueAsFilter(i, F);
|
|
33467
33467
|
let N = E.FILTER_STRING;
|
|
33468
|
-
n && n.trim().length > 0 && (N.trim().length > 0 ? N = N + " and " + n : N = n), N.trim().length > 0 && this.getQuerySqlFormat(N), m.addBlock(M), Z.getMappedRows().length > 0 && m.addBlock(Z), this.callService(I, m, { loadingOptions: { show: !0 } }).then((
|
|
33469
|
-
p =
|
|
33468
|
+
n && n.trim().length > 0 && (N.trim().length > 0 ? N = N + " and " + n : N = n), N.trim().length > 0 && this.getQuerySqlFormat(N), m.addBlock(M), Z.getMappedRows().length > 0 && m.addBlock(Z), this.callService(I, m, { loadingOptions: { show: !0 } }).then((U) => {
|
|
33469
|
+
p = U, c(p);
|
|
33470
33470
|
});
|
|
33471
33471
|
} else
|
|
33472
33472
|
p.SysInfo.Flag = -603, p.SysInfo.Msg = "未调用后台服务", c(p);
|
|
@@ -33544,8 +33544,8 @@ var D;
|
|
|
33544
33544
|
let h = new Rt(), p = !1, E = "";
|
|
33545
33545
|
if (r.trim().length > 0) {
|
|
33546
33546
|
let N = "";
|
|
33547
|
-
const
|
|
33548
|
-
((m =
|
|
33547
|
+
const U = this.getGridConfig(r);
|
|
33548
|
+
((m = U == null ? void 0 : U.SVC_NAME) == null ? void 0 : m.trim().length) > 0 && (E = r, r = U.SVC_NAME.trim(), N = U.FILTER_STRING.trim(), p = !0);
|
|
33549
33549
|
const Y = new Rt();
|
|
33550
33550
|
if (i && i.filterConfigId && ((I = i.filterConfigId) == null ? void 0 : I.trim().length) > 0) {
|
|
33551
33551
|
let me = this.getAllControlValueAsBlock(
|
|
@@ -33843,16 +33843,16 @@ var D;
|
|
|
33843
33843
|
if (!this.containsConfig(r) && (n == null ? void 0 : n.forceLoadConfig) !== !1 && await this.loadConfig(r), this.containsConfig(r)) {
|
|
33844
33844
|
if (this._gridInstanceInfo[r])
|
|
33845
33845
|
return console.error(`Grid instance ${r} already exists!`), !1;
|
|
33846
|
-
const
|
|
33846
|
+
const U = this.getSingleViewConfigInfo(r);
|
|
33847
33847
|
this.setGridToolbarVisible(r, {
|
|
33848
|
-
refresh:
|
|
33849
|
-
addrow:
|
|
33850
|
-
copyrow:
|
|
33851
|
-
delete:
|
|
33848
|
+
refresh: U.SHOW_REFRESH === "1",
|
|
33849
|
+
addrow: U.SHOW_ADD === "1",
|
|
33850
|
+
copyrow: U.SHOW_ADDCOPY === "1",
|
|
33851
|
+
delete: U.SHOW_DELETE === "1",
|
|
33852
33852
|
cancel: !1,
|
|
33853
33853
|
save: !1,
|
|
33854
|
-
excel:
|
|
33855
|
-
import:
|
|
33854
|
+
excel: U.SHOW_EXPORT === "1",
|
|
33855
|
+
import: U.ALLOW_IMPORT === "1"
|
|
33856
33856
|
}), this._gridColumnsConfigInfo[r] = {}, this._gridColumnsInfo[r] = {}, this._allowMergeColumnFields[r] = [], this._gridStyleInfo[r] = this._gridStyleInfo[r] || [], this._gridOptions[r] = this._gridOptions[r] || {};
|
|
33857
33857
|
const Y = this.getConfigInfo(r);
|
|
33858
33858
|
if ((h = i == null ? void 0 : i.gridOptions) != null && h.api && Y.TSI00GRIDVIEW && Y.TSI00GRIDVIEW.length > 0) {
|
|
@@ -33882,8 +33882,8 @@ var D;
|
|
|
33882
33882
|
for (let St = 0; St < de.length; St++) {
|
|
33883
33883
|
let yt = !0;
|
|
33884
33884
|
for (let _t = 0; _t < Et.length; _t++) {
|
|
33885
|
-
const
|
|
33886
|
-
if (de[St][
|
|
33885
|
+
const G = Et[_t];
|
|
33886
|
+
if (de[St][G] !== je[G]) {
|
|
33887
33887
|
yt = !1;
|
|
33888
33888
|
break;
|
|
33889
33889
|
}
|
|
@@ -33891,8 +33891,8 @@ var D;
|
|
|
33891
33891
|
if (!yt) {
|
|
33892
33892
|
if (Object.keys(je).length > 0)
|
|
33893
33893
|
for (let _t = ut; _t < St; _t++) {
|
|
33894
|
-
const
|
|
33895
|
-
te[Ae][
|
|
33894
|
+
const G = de[_t].uid;
|
|
33895
|
+
te[Ae][G] = _t === ut ? St - ut : 0;
|
|
33896
33896
|
}
|
|
33897
33897
|
Et.forEach((_t) => {
|
|
33898
33898
|
je[_t] = de[St][_t];
|
|
@@ -33900,8 +33900,8 @@ var D;
|
|
|
33900
33900
|
}
|
|
33901
33901
|
if (St === de.length - 1)
|
|
33902
33902
|
for (let _t = ut; _t <= St; _t++) {
|
|
33903
|
-
const
|
|
33904
|
-
te[Ae][
|
|
33903
|
+
const G = de[_t].uid;
|
|
33904
|
+
te[Ae][G] = _t === ut ? St - ut + 1 : 0;
|
|
33905
33905
|
}
|
|
33906
33906
|
}
|
|
33907
33907
|
}), i.gridOptions.context.rowSpanMap = te, de[0];
|
|
@@ -34022,11 +34022,11 @@ var D;
|
|
|
34022
34022
|
checkbox: m === "multiple" && p.SHOW_SELECTION.toString() === "1",
|
|
34023
34023
|
suppressCount: i.aggDataInGroupRow === !0,
|
|
34024
34024
|
innerRenderer: (I) => {
|
|
34025
|
-
var F, M, Z, N,
|
|
34025
|
+
var F, M, Z, N, U, Y, j, Fe, me;
|
|
34026
34026
|
if ((M = (F = I.node) == null ? void 0 : F.rowGroupColumn) != null && M.colDef) {
|
|
34027
34027
|
const Se = (N = (Z = I.node) == null ? void 0 : Z.rowGroupColumn) == null ? void 0 : N.colDef;
|
|
34028
34028
|
let de = I.node.key;
|
|
34029
|
-
if (Se.cellDataType === "number" ? de = t.formatNumberValue(I.value, (Y = (
|
|
34029
|
+
if (Se.cellDataType === "number" ? de = t.formatNumberValue(I.value, (Y = (U = Se.context) == null ? void 0 : U.columnConfig) == null ? void 0 : Y.FORMAT_STRING) : ((j = Se.cellEditor) == null ? void 0 : j.name) === "DatetimeEditor" ? de = t.getDateTimeFormatString(I.value, (me = (Fe = Se.context) == null ? void 0 : Fe.columnConfig) == null ? void 0 : me.FORMAT_STRING) : Se.refData && (de = Se.refData[I.value] || I.value), i.aggDataInGroupRow === !0) {
|
|
34030
34030
|
let te = `
|
|
34031
34031
|
<div style="display: inline-block">
|
|
34032
34032
|
<span>${`${de}(${I.node.allChildrenCount})`}</span>`;
|
|
@@ -34074,7 +34074,7 @@ var D;
|
|
|
34074
34074
|
if ((s = (n = r == null ? void 0 : r.gridOptions) == null ? void 0 : n.context) != null && s.configId) {
|
|
34075
34075
|
const c = r.gridOptions.context.configId, h = this.getConfigInfo(c);
|
|
34076
34076
|
r.gridOptions.api.addEventListener("firstDataRendered", (p) => {
|
|
34077
|
-
var F, M, Z, N,
|
|
34077
|
+
var F, M, Z, N, U;
|
|
34078
34078
|
h.TSI00GRIDVIEW[0].AUTO_EXPAND_GROUP === "1" && p.api.expandAll();
|
|
34079
34079
|
const E = r.gridOptions.api.getFilterModel(), m = r.gridOptions.columnApi.getColumnState().filter((Y) => Y.sort !== null);
|
|
34080
34080
|
if (Object.keys(E).length > 0 || m.length > 0)
|
|
@@ -34109,7 +34109,7 @@ var D;
|
|
|
34109
34109
|
}), Se.length > 0 && (me.data._preview_row_data = Se, me.setExpanded(!0));
|
|
34110
34110
|
}));
|
|
34111
34111
|
}
|
|
34112
|
-
const I = (
|
|
34112
|
+
const I = (U = p.api) == null ? void 0 : U.getStatusPanel("InformationPanel");
|
|
34113
34113
|
I && I.setInformation();
|
|
34114
34114
|
}), r.gridOptions.api.addEventListener("selectionChanged", (p) => {
|
|
34115
34115
|
var E, m, I, F;
|
|
@@ -34135,8 +34135,8 @@ var D;
|
|
|
34135
34135
|
var I, F, M, Z, N;
|
|
34136
34136
|
let E;
|
|
34137
34137
|
if (r.gridOptions.context.calculateRowSpan && r.gridOptions.context.calculateRowSpan instanceof Function && (E = r.gridOptions.context.calculateRowSpan(!1)), (i == null ? void 0 : i.showRowNo) !== !1 && ((I = p.api) == null || I.redrawRows()), E ? r.gridOptions.context.bindingSource.setCurrent(E) : t.setGridFocusedCell(r, 0), ((F = p == null ? void 0 : p.context) == null ? void 0 : F.viewConfig.SHOW_FOOTER) === "1") {
|
|
34138
|
-
const
|
|
34139
|
-
(Z = p.api) == null || Z.setPinnedBottomRowData([{ ...(M =
|
|
34138
|
+
const U = p.api.getModel();
|
|
34139
|
+
(Z = p.api) == null || Z.setPinnedBottomRowData([{ ...(M = U == null ? void 0 : U.rootNode) == null ? void 0 : M.aggData, pinndeRowType: "ErGridSummaryFooter" }]);
|
|
34140
34140
|
}
|
|
34141
34141
|
const m = (N = p.api) == null ? void 0 : N.getStatusPanel("InformationPanel");
|
|
34142
34142
|
m && m.setInformation();
|
|
@@ -34155,19 +34155,19 @@ var D;
|
|
|
34155
34155
|
}), r.gridOptions.api.addEventListener("cellValueChanged", (p) => {
|
|
34156
34156
|
var E, m, I, F, M, Z;
|
|
34157
34157
|
if (p.data && p.colDef && p.colDef.field) {
|
|
34158
|
-
p.data.dirty = !0, p.data.dirtyFields[p.colDef.field] = !0, this.setDropDownAutoFillFieldsForGrid(r, p.colDef.colId, p.node), this.DropDownCascader[c + p.colDef.colId] && this.DropDownCascader[c + p.colDef.colId].forEach((
|
|
34159
|
-
|
|
34158
|
+
p.data.dirty = !0, p.data.dirtyFields[p.colDef.field] = !0, this.setDropDownAutoFillFieldsForGrid(r, p.colDef.colId, p.node), this.DropDownCascader[c + p.colDef.colId] && this.DropDownCascader[c + p.colDef.colId].forEach((U) => {
|
|
34159
|
+
U.FUNCTION_TYPE && U.FUNCTION_ID && U.ITEM_CODE && (U.FUNCTION_TYPE === "F" ? this.setControlEmptyValue(U.FUNCTION_ID, U.ITEM_CODE) : U.FUNCTION_ID === c && (p.data[U.ITEM_CODE] = null));
|
|
34160
34160
|
});
|
|
34161
34161
|
let N = this.getGridOptions(c, "autoSelectMode");
|
|
34162
34162
|
if (N === void 0) {
|
|
34163
|
-
const
|
|
34164
|
-
N =
|
|
34163
|
+
const U = this.getSingleViewConfigInfo(c);
|
|
34164
|
+
N = U.AUTO_SELECT_MODE, this.setGridOptions(c, "autoSelectMode", U.AUTO_SELECT_MODE);
|
|
34165
34165
|
}
|
|
34166
34166
|
if (N === "2" || N === "3")
|
|
34167
34167
|
this.checkGridRow(c, p.data.uid);
|
|
34168
34168
|
else if (((I = (m = (E = p.colDef) == null ? void 0 : E.context) == null ? void 0 : m.columnConfig) == null ? void 0 : I.MULTI_ROW_EDIT) === "1" && ((F = p.node) != null && F.selected)) {
|
|
34169
|
-
const
|
|
34170
|
-
if (
|
|
34169
|
+
const U = this.getGridOptions(c, "multiRowEdit");
|
|
34170
|
+
if (U !== !1 && U !== "0") {
|
|
34171
34171
|
let Y = !1;
|
|
34172
34172
|
if ((i == null ? void 0 : i.multiRowEditType) === "all") {
|
|
34173
34173
|
const j = this.getGridSelectRows(r);
|
|
@@ -34187,8 +34187,8 @@ var D;
|
|
|
34187
34187
|
}
|
|
34188
34188
|
}
|
|
34189
34189
|
if (((M = p == null ? void 0 : p.context) == null ? void 0 : M.viewConfig.SHOW_FOOTER) === "1") {
|
|
34190
|
-
const
|
|
34191
|
-
p.api.setPinnedBottomRowData([{ ...(Z =
|
|
34190
|
+
const U = p.api.getModel();
|
|
34191
|
+
p.api.setPinnedBottomRowData([{ ...(Z = U == null ? void 0 : U.rootNode) == null ? void 0 : Z.aggData, pinndeRowType: "ErGridSummaryFooter" }]);
|
|
34192
34192
|
}
|
|
34193
34193
|
p.api.refreshCells({ rowNodes: [p.node], columns: [e.SysInfo.GridCheckColumnFieldName, p.colDef.colId] });
|
|
34194
34194
|
}
|
|
@@ -34213,7 +34213,7 @@ var D;
|
|
|
34213
34213
|
}
|
|
34214
34214
|
}
|
|
34215
34215
|
getGridContextMenuItems(r, i) {
|
|
34216
|
-
var s, c, h, p, E, m, I, F, M, Z, N,
|
|
34216
|
+
var s, c, h, p, E, m, I, F, M, Z, N, U, Y, j, Fe, me, Se;
|
|
34217
34217
|
const n = [];
|
|
34218
34218
|
if (r.api.getDisplayedRowCount() > 0) {
|
|
34219
34219
|
n.push("copy", "copyWithHeaders");
|
|
@@ -34261,7 +34261,7 @@ var D;
|
|
|
34261
34261
|
})), (i == null ? void 0 : i.showDetailForm) !== !1 && r.node && r.node.group !== !0 && r.node.rowPinned === void 0 && (n.push("separator"), n.push({
|
|
34262
34262
|
name: this.$t("ERX.ErGrid.ShowDetailForm") || "查看明细",
|
|
34263
34263
|
action: () => {
|
|
34264
|
-
var ze, $e, st, oe, V, ye, De, Ae, je, ut, Et, St, yt, _t,
|
|
34264
|
+
var ze, $e, st, oe, V, ye, De, Ae, je, ut, Et, St, yt, _t, G, Ot;
|
|
34265
34265
|
let te = r.context.detailFormHelper;
|
|
34266
34266
|
if (!te) {
|
|
34267
34267
|
($e = (ze = r.context) == null ? void 0 : ze.viewConfig) != null && $e.EDIT_COLS_COUNT;
|
|
@@ -34274,11 +34274,11 @@ var D;
|
|
|
34274
34274
|
(rt = It.dataModel) != null && rt.dirty && Object.keys(It.dataModel.dirtyFields).forEach((Ze) => {
|
|
34275
34275
|
r.node.setDataValue(Ze, It.dataModel[Ze]);
|
|
34276
34276
|
});
|
|
34277
|
-
}), (Et = (ut = r.context) == null ? void 0 : ut.options) != null && Et.detailItemButtonClick && ((yt = (St = r.context) == null ? void 0 : St.options) == null ? void 0 : yt.detailItemButtonClick) instanceof Function && te.setEvent("itemButtonClick", (
|
|
34277
|
+
}), (Et = (ut = r.context) == null ? void 0 : ut.options) != null && Et.detailItemButtonClick && ((yt = (St = r.context) == null ? void 0 : St.options) == null ? void 0 : yt.detailItemButtonClick) instanceof Function && te.setEvent("itemButtonClick", (G = (_t = r.context) == null ? void 0 : _t.options) == null ? void 0 : G.detailItemButtonClick), te.ReceiveData(r.node.data), te.EditType = (Ot = r.context) != null && Ot.editable ? "Modify" : "Query", te.show(null);
|
|
34278
34278
|
},
|
|
34279
34279
|
icon: e.Core.createErSvgElement("show-detail")
|
|
34280
34280
|
})), ((c = (s = r.node) == null ? void 0 : s.childrenAfterFilter) == null ? void 0 : c.length) > 0 && r.node.group === !0 && r.node.footer !== !0 && n.push("separator", "expandAll", "contractAll"), i != null && i.allowImageUpload && ((E = (p = (h = r.column) == null ? void 0 : h.colDef) == null ? void 0 : p.cellRenderer) == null ? void 0 : E.name) === "ImagePreview" && ((I = (m = r.node) == null ? void 0 : m.data) != null && I.uid) && !((M = (F = r.node) == null ? void 0 : F.data) != null && M.isNew) && ((N = (Z = r.column) == null ? void 0 : Z.colDef.context.columnConfig.EXT_OPTIONS) == null ? void 0 : N.trim().length) > 0) {
|
|
34281
|
-
const te = JSON.parse((
|
|
34281
|
+
const te = JSON.parse((U = r.column) == null ? void 0 : U.colDef.context.columnConfig.EXT_OPTIONS);
|
|
34282
34282
|
if (((Y = te == null ? void 0 : te.imageUploadDir) == null ? void 0 : Y.trim().length) > 0 && ((j = te.imageUploadKeyField) == null ? void 0 : j.trim().length) > 0) {
|
|
34283
34283
|
const ze = r.node.data[te.imageUploadKeyField];
|
|
34284
34284
|
if ((ze == null ? void 0 : ze.trim().length) > 0) {
|
|
@@ -34338,7 +34338,7 @@ var D;
|
|
|
34338
34338
|
* @param closeDialogWhenOkClick 是否关闭
|
|
34339
34339
|
*/
|
|
34340
34340
|
async showExtOptionsEdit(r, i, n, s, c, h, p = !1) {
|
|
34341
|
-
var N,
|
|
34341
|
+
var N, U, Y;
|
|
34342
34342
|
const E = new e.PopRichEditor({ width: 450, height: 550, extension: "json" });
|
|
34343
34343
|
let m = "";
|
|
34344
34344
|
if (s && s.trim().length > 0) {
|
|
@@ -34358,7 +34358,7 @@ var D;
|
|
|
34358
34358
|
};
|
|
34359
34359
|
let M = "";
|
|
34360
34360
|
const Z = await F();
|
|
34361
|
-
Z.getStatus() >= 0 && (M = e.Core.toString((Y = (
|
|
34361
|
+
Z.getStatus() >= 0 && (M = e.Core.toString((Y = (U = (N = Z.getBlockByIndex(0)) == null ? void 0 : N.getMappedRows()) == null ? void 0 : U[0]) == null ? void 0 : Y.EXT_OPTIONS, !0)), E.CancelButtonCaption = e.Core.$t("ERX.Close") || "关闭", E.CloseDialogWhenOkClick = p, E.setEvent("ok", async () => {
|
|
34362
34362
|
const j = E.Content, Fe = e.Core.buildEiInfo([{ ...I, EXT_OPTIONS: j }], I.QUERY_TYPE.toUpperCase()), me = await e.Core.callService(e.SysInfo.saveDevConfigService, Fe);
|
|
34363
34363
|
return me.getStatus() < 0 ? e.Core.messageError(me.getMsg()) : e.Core.messageSuccess(e.Core.$t("ERX.OperateSuccess") || "操作成功!"), me.getStatus() >= 0;
|
|
34364
34364
|
}), E.setOptions({
|
|
@@ -34396,14 +34396,14 @@ var D;
|
|
|
34396
34396
|
if (N.type === "clear")
|
|
34397
34397
|
m.FormHelper.setControlEmptyValue("LayoutGroupMain", "DATASET_NAME,TABLE_NAME");
|
|
34398
34398
|
else {
|
|
34399
|
-
const
|
|
34400
|
-
|
|
34399
|
+
const U = new e.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: ln });
|
|
34400
|
+
U.BordStyle = "Fixed";
|
|
34401
34401
|
const Y = async () => {
|
|
34402
34402
|
var Fe;
|
|
34403
34403
|
const j = await m.FormHelper.callService(e.SysInfo.queryDevConfigService, e.Core.buildEiInfo({ OPERATE_TYPE: "tsi00datasettree" }));
|
|
34404
34404
|
return j.getStatus() < 0 ? (e.Core.messageError(j.getMsg()), []) : ((Fe = j.getBlockByIndex(0)) == null ? void 0 : Fe.getMappedRows()) || [];
|
|
34405
34405
|
};
|
|
34406
|
-
|
|
34406
|
+
U.receiveData(Y), U.BeforeOkButtonClick = (j) => (j == null ? void 0 : j.NODE_TYPE) !== "DataTable" ? !1 : j, U.show(null, (j) => {
|
|
34407
34407
|
j != null && j.data && (m.FormHelper.setControlValue("LayoutGroupMain", "DATASET_NAME", j.data.DATASET_NAME), m.FormHelper.setControlValue("LayoutGroupMain", "TABLE_NAME", j.data.DATATABLE_NAME));
|
|
34408
34408
|
});
|
|
34409
34409
|
}
|
|
@@ -34417,7 +34417,7 @@ var D;
|
|
|
34417
34417
|
* @param options 自定义options
|
|
34418
34418
|
*/
|
|
34419
34419
|
async showFormOptionsEdit(r, i, n = !1, s) {
|
|
34420
|
-
var I, F, M, Z, N,
|
|
34420
|
+
var I, F, M, Z, N, U;
|
|
34421
34421
|
let c = {}, h = [], p = e.Core.buildEiInfo([{ QUERY_TYPE: "TSI00MODULE", MODULE_TYPE: "15" }]), E = await this.callService(e.SysInfo.queryDevConfigService, p);
|
|
34422
34422
|
if (E.getStatus() < 0) {
|
|
34423
34423
|
e.Core.messageError(E.getMsg());
|
|
@@ -34435,7 +34435,7 @@ var D;
|
|
|
34435
34435
|
e.Core.messageError("Data not found!");
|
|
34436
34436
|
return;
|
|
34437
34437
|
} else
|
|
34438
|
-
c = (
|
|
34438
|
+
c = (U = (N = E.getBlockByIndex(0)) == null ? void 0 : N.getMappedRows()) == null ? void 0 : U[0];
|
|
34439
34439
|
m.ReceiveData(c), m.setEvent("initial", () => {
|
|
34440
34440
|
m.FormHelper.reloadDropDownDataSource("LayoutGroupMain", "MODULE_TYPE", h);
|
|
34441
34441
|
}), m.setEvent("open", (Y) => {
|
|
@@ -34481,7 +34481,7 @@ var D;
|
|
|
34481
34481
|
}));
|
|
34482
34482
|
});
|
|
34483
34483
|
const F = this.getModelFields(m), M = [], Z = {};
|
|
34484
|
-
let N,
|
|
34484
|
+
let N, U;
|
|
34485
34485
|
(((Fe = s == null ? void 0 : s.viewType) == null ? void 0 : Fe.toLowerCase()) === "band" || ((me = s == null ? void 0 : s.viewType) == null ? void 0 : me.toLowerCase()) === "bandview" && i.TSI00GRIDBAND && i.TSI00GRIDBAND.length > 0) && this.createGridBandColumn(i.TSI00GRIDBAND, M, Z, void 0, s), M.length > 0 && (c = M);
|
|
34486
34486
|
let Y = {};
|
|
34487
34487
|
for (let oe = 0; oe < p.length; oe++) {
|
|
@@ -34522,7 +34522,7 @@ var D;
|
|
|
34522
34522
|
Y = s != null && s.columnOptions ? s.columnOptions[V.ITEM_CODE] : {};
|
|
34523
34523
|
let St = V.ALLOW_EDIT === "1";
|
|
34524
34524
|
ye === "boolean" && (St = V.ALLOW_EDIT === "1" && V.READ_ONLY !== "1"), s != null && s.columnOptions && s.columnOptions[V.ITEM_CODE] && s.columnOptions[V.ITEM_CODE].editable !== void 0 && (St = s.columnOptions[V.ITEM_CODE].editable);
|
|
34525
|
-
const yt = h.ALLOW_CELLMERGE !== "1" && ye !== "boolean" && ((s == null ? void 0 : s.wrapText) === !0 || e.Core.toString(s == null ? void 0 : s.wrapText).split(",").includes(V.ITEM_CODE)), _t = { simpleHeader: s == null ? void 0 : s.simpleHeader, fontSize: ut > 0 ? `${ut}px` : "unset", color: Et || Ae, backgroundColor: je, title: V.COL_CAPTION },
|
|
34525
|
+
const yt = h.ALLOW_CELLMERGE !== "1" && ye !== "boolean" && ((s == null ? void 0 : s.wrapText) === !0 || e.Core.toString(s == null ? void 0 : s.wrapText).split(",").includes(V.ITEM_CODE)), _t = { simpleHeader: s == null ? void 0 : s.simpleHeader, fontSize: ut > 0 ? `${ut}px` : "unset", color: Et || Ae, backgroundColor: je, title: V.COL_CAPTION }, G = V.CUS_GROUP_SORT_TYPE || V.GROUP_SORT_TYPE;
|
|
34526
34526
|
Y = {
|
|
34527
34527
|
...Y,
|
|
34528
34528
|
pinned: De,
|
|
@@ -34545,7 +34545,7 @@ var D;
|
|
|
34545
34545
|
resizable: V.ALLOW_SIZE === "1",
|
|
34546
34546
|
suppressSizeToFit: V.BESTFIT !== "1",
|
|
34547
34547
|
suppressColumnsToolPanel: (V.ALLOW_SHOWHIDE === "0" || this.DevelopPermisson !== "1") && V.IS_VISIBLE !== "1",
|
|
34548
|
-
lockVisible: V.ALLOW_SHOWHIDE === "0" || (s == null ? void 0 : s.groupDisplayType) === "multipleColumns" && (
|
|
34548
|
+
lockVisible: V.ALLOW_SHOWHIDE === "0" || (s == null ? void 0 : s.groupDisplayType) === "multipleColumns" && (G === "1" || G === "2"),
|
|
34549
34549
|
width: t.toNumber(V.CUS_COL_WIDTH) > 0 ? t.toNumber(V.CUS_COL_WIDTH) : t.toNumber(V.COL_WIDTH_WEB) > 0 ? t.toNumber(V.COL_WIDTH_WEB) : t.toNumber(V.COL_WIDTH) > 0 ? t.toNumber(V.COL_WIDTH) : 100,
|
|
34550
34550
|
editable: (Ze) => {
|
|
34551
34551
|
var Ue, pt, Ft, kt, Ut, qt, Mt, gr, ot, Gt, P, re, X, K, ae;
|
|
@@ -34577,12 +34577,12 @@ var D;
|
|
|
34577
34577
|
autoHeaderHeight: !0,
|
|
34578
34578
|
// suppressSpanHeaderHeight: true,
|
|
34579
34579
|
enableRowGroup: !n.treeData,
|
|
34580
|
-
rowGroup: n.treeData ? void 0 :
|
|
34581
|
-
sort:
|
|
34582
|
-
hide: V.IS_VISIBLE !== "1" || V.CUS_IS_VISIBLE !== "1" || (s == null ? void 0 : s.groupDisplayType) === "multipleColumns" && (
|
|
34580
|
+
rowGroup: n.treeData ? void 0 : G === "1" || G === "2",
|
|
34581
|
+
sort: G === "2" ? "desc" : G === "1" ? "asc" : void 0,
|
|
34582
|
+
hide: V.IS_VISIBLE !== "1" || V.CUS_IS_VISIBLE !== "1" || (s == null ? void 0 : s.groupDisplayType) === "multipleColumns" && (G === "1" || V.GROUP_SORT_TYPE === "2"),
|
|
34583
34583
|
// hide: columnConfig['CUS_IS_VISIBLE'] !== '1' || (groupSortType === '1' || groupSortType === '2'),
|
|
34584
34584
|
context: { viewOptions: s, viewConfig: h, columnConfig: V, editable: St, titleInfo: _t }
|
|
34585
|
-
}, (s == null ? void 0 : s.groupDisplayType) === "multipleColumns" && (
|
|
34585
|
+
}, (s == null ? void 0 : s.groupDisplayType) === "multipleColumns" && (G === "1" || V.GROUP_SORT_TYPE === "2") ? Y.hide = !0 : V.ALLOW_SHOWHIDE === "0" ? Y.hide = V.IS_VISIBLE === "0" : V.ALLOW_SHOWHIDE === "1" && (Y.hide = V.CUS_IS_VISIBLE === "0" || V.CUS_IS_VISIBLE === "" && V.IS_VISIBLE === "0"), Y.filter = "agMultiColumnFilter", Y.filterParams = {
|
|
34586
34586
|
filters: [
|
|
34587
34587
|
{
|
|
34588
34588
|
filter: "agTextColumnFilter",
|
|
@@ -34633,7 +34633,7 @@ var D;
|
|
|
34633
34633
|
break;
|
|
34634
34634
|
}
|
|
34635
34635
|
}
|
|
34636
|
-
N === void 0 && !Y.hide && (N = Y),
|
|
34636
|
+
N === void 0 && !Y.hide && (N = Y), U === void 0 && !Y.hide && ((this.IsRtl && Y.pinned) === "right" || !this.IsRtl && Y.pinned === "right") && (U = Y), Y.context.dataType = ye, Y.context.cellStyles = Ot;
|
|
34637
34637
|
const It = this._gridOptions[r].styleConfigInfo.cellStyle[V.ITEM_CODE];
|
|
34638
34638
|
if ((Object.keys(Ot).length > 0 || It) && (Y.cellStyle = (Ze) => {
|
|
34639
34639
|
var pt, Ft, kt, Ut;
|
|
@@ -34846,8 +34846,8 @@ var D;
|
|
|
34846
34846
|
var V;
|
|
34847
34847
|
if (!oe.node.footer && !oe.node.rowPinned && !oe.node.group)
|
|
34848
34848
|
return ((V = oe.node) == null ? void 0 : V.childIndex) + 1;
|
|
34849
|
-
} : void 0), n.treeData && (
|
|
34850
|
-
const oe =
|
|
34849
|
+
} : void 0), n.treeData && (U || N)) {
|
|
34850
|
+
const oe = U || N;
|
|
34851
34851
|
n.autoGroupColumnDef = {
|
|
34852
34852
|
colId: oe.colId,
|
|
34853
34853
|
headerName: oe.headerName,
|
|
@@ -34959,7 +34959,7 @@ var D;
|
|
|
34959
34959
|
* @returns colDef
|
|
34960
34960
|
*/
|
|
34961
34961
|
setGridColumnAggFunc(r, i, n, s, c) {
|
|
34962
|
-
var h, p, E, m, I, F, M, Z, N,
|
|
34962
|
+
var h, p, E, m, I, F, M, Z, N, U, Y, j;
|
|
34963
34963
|
if (n instanceof Function)
|
|
34964
34964
|
i.aggFunc = n;
|
|
34965
34965
|
else if ((n == null ? void 0 : n.trim().length) > 0) {
|
|
@@ -35089,7 +35089,7 @@ var D;
|
|
|
35089
35089
|
if (((E = c.WEIGHT_COLUMN) == null ? void 0 : E.trim().length) > 0) {
|
|
35090
35090
|
let me = "", Se = "";
|
|
35091
35091
|
const de = (m = c.WEIGHT_COLUMN) == null ? void 0 : m.trim().split("/");
|
|
35092
|
-
de.length > 1 ? (me = de[0], Se = de[1]) : (me = c.FIELD_NAME, Se = de[0]), (Z = (M = (F = (I = s.context) == null ? void 0 : I.bindingSource) == null ? void 0 : F.options) == null ? void 0 : M.schema) != null && Z[me] && ((j = (Y = (
|
|
35092
|
+
de.length > 1 ? (me = de[0], Se = de[1]) : (me = c.FIELD_NAME, Se = de[0]), (Z = (M = (F = (I = s.context) == null ? void 0 : I.bindingSource) == null ? void 0 : F.options) == null ? void 0 : M.schema) != null && Z[me] && ((j = (Y = (U = (N = s.context) == null ? void 0 : N.bindingSource) == null ? void 0 : U.options) == null ? void 0 : Y.schema) != null && j[Se]) && (i.context.weightColumnField = Se, i.aggFunc = (_e) => {
|
|
35093
35093
|
try {
|
|
35094
35094
|
let te = new er(0), ze = new er(0);
|
|
35095
35095
|
const $e = [];
|
|
@@ -35157,7 +35157,7 @@ var D;
|
|
|
35157
35157
|
* @returns this
|
|
35158
35158
|
*/
|
|
35159
35159
|
setGridColumnDropdown(r, i, n, s = "CODE", c, h = "default") {
|
|
35160
|
-
var I, F, M, Z, N,
|
|
35160
|
+
var I, F, M, Z, N, U, Y, j, Fe, me, Se, de, _e, te, ze, $e, st, oe, V;
|
|
35161
35161
|
i.cellEditorPopup = ((F = (I = i.context) == null ? void 0 : I.columnConfig) == null ? void 0 : F.READ_ONLY) !== "1", i.cellEditor = _0, i.cellEditorParams = {
|
|
35162
35162
|
readonly: ((Z = (M = i.context) == null ? void 0 : M.columnConfig) == null ? void 0 : Z.READ_ONLY) === "1",
|
|
35163
35163
|
formHelper: this,
|
|
@@ -35173,24 +35173,24 @@ var D;
|
|
|
35173
35173
|
var De, Ae;
|
|
35174
35174
|
p[ye[s]] = m(ye), ((De = i.context.columnConfig) == null ? void 0 : De.COLUMN_EDIT) === "P" && ((Ae = ye.IMAGE_URL) == null ? void 0 : Ae.trim().length) > 0 && (E[ye[s]] = ye.IMAGE_URL);
|
|
35175
35175
|
}), i.context.iconUrlMap = ((N = i.context.columnConfig) == null ? void 0 : N.COLUMN_EDIT) === "P" ? E : void 0, i.refData = p, i.valueFormatter = (ye) => {
|
|
35176
|
-
var Ae, je, ut, Et, St, yt, _t,
|
|
35176
|
+
var Ae, je, ut, Et, St, yt, _t, G, Ot;
|
|
35177
35177
|
let De = "";
|
|
35178
35178
|
if (ye.node.rowPinned || ye.node.group) {
|
|
35179
35179
|
const It = ye.value, rt = (ye.node.rowPinned ? (Et = (ut = (je = (Ae = ye.column) == null ? void 0 : Ae.colDef) == null ? void 0 : je.context) == null ? void 0 : ut.columnConfig) == null ? void 0 : Et.SUMMARY_FORMAT_STRING : (_t = (yt = (St = ye.column.colDef) == null ? void 0 : St.context) == null ? void 0 : yt.columnConfig) == null ? void 0 : _t.GROUP_FORMAT_STRING) || "";
|
|
35180
35180
|
typeof It == "string" ? De = t.toString(It) : typeof It == "number" ? De = t.formatNumberValue(It, rt) : ya.isPlainObject(It) && (De = `${t.formatNumberValue(It.aggValueOfChecked, rt)}<br>${t.formatNumberValue(It.aggValue, rt)}`);
|
|
35181
35181
|
} else {
|
|
35182
35182
|
let It = e.Core.toString(ye.value).trim();
|
|
35183
|
-
ye.data && ye.colDef && (It = e.Core.toString(ye.data[ye.colDef.field]).trim()), It.length > 0 && (((
|
|
35183
|
+
ye.data && ye.colDef && (It = e.Core.toString(ye.data[ye.colDef.field]).trim()), It.length > 0 && (((G = i.context) == null ? void 0 : G.cellEditType) === "checkGridLookUpEdit" && s !== c ? It.split(",").forEach((Ze) => {
|
|
35184
35184
|
var Ue, pt;
|
|
35185
35185
|
De = De.length === 0 ? p[Ze] || ((Ue = i.context) != null && Ue.viewOptions.nullSelectOptionTag ? `❓${It}` : It) : De + "," + (p[Ze] || ((pt = i.context) != null && pt.viewOptions.nullSelectOptionTag ? `❓${It}` : It));
|
|
35186
35186
|
}) : De = p[It] || ((Ot = i.context) != null && Ot.viewOptions.nullSelectOptionTag ? `❓${It}` : It));
|
|
35187
35187
|
}
|
|
35188
35188
|
return De;
|
|
35189
|
-
}, (((
|
|
35190
|
-
var Et, St, yt, _t,
|
|
35189
|
+
}, (((U = i.context.columnConfig) == null ? void 0 : U.COLUMN_EDIT) === "P" || ((j = (Y = i.context) == null ? void 0 : Y.columnConfig) == null ? void 0 : j.CALL_FORM.trim().length) > 0) && (i.cellRenderer = (ye) => {
|
|
35190
|
+
var Et, St, yt, _t, G, Ot, It, rt, Ze, Ue;
|
|
35191
35191
|
const De = i.valueFormatter(ye).replace(/</g, "<");
|
|
35192
35192
|
let Ae = "", je = "";
|
|
35193
|
-
(Et = ye.data) != null && Et.uid && ye.value && ((St = i.context.columnConfig) == null ? void 0 : St.COLUMN_EDIT) === "P" && ((yt = E[ye.value]) == null ? void 0 : yt.trim().length) > 0 && ((_t = E[ye.value]) != null && _t.trim().startsWith("IconFont:") ? Ae = "#icon-" + E[ye.value].replace("IconFont:", "") : (
|
|
35193
|
+
(Et = ye.data) != null && Et.uid && ye.value && ((St = i.context.columnConfig) == null ? void 0 : St.COLUMN_EDIT) === "P" && ((yt = E[ye.value]) == null ? void 0 : yt.trim().length) > 0 && ((_t = E[ye.value]) != null && _t.trim().startsWith("IconFont:") ? Ae = "#icon-" + E[ye.value].replace("IconFont:", "") : (G = E[ye.value]) != null && G.trim().startsWith("ImgUrl:") && (je = `${e.Core.getBaseUrl()}svg/${E[ye.value].replace("ImgUrl:", "")}`));
|
|
35194
35194
|
const ut = ((It = (Ot = i.context) == null ? void 0 : Ot.columnConfig) == null ? void 0 : It.CALL_FORM.trim().length) > 0 && ((rt = ye.node) == null ? void 0 : rt.data) instanceof e.Model;
|
|
35195
35195
|
return ut || Ae || je ? t.createVNodeElement(at(en, {
|
|
35196
35196
|
params: {
|
|
@@ -35271,7 +35271,7 @@ var D;
|
|
|
35271
35271
|
* @returns this
|
|
35272
35272
|
*/
|
|
35273
35273
|
setGridColumnDateTimePicker(r, i, n = "yyyy-MM-dd HH:mm:ss") {
|
|
35274
|
-
var c, h, p, E, m, I, F, M, Z, N,
|
|
35274
|
+
var c, h, p, E, m, I, F, M, Z, N, U, Y, j, Fe, me, Se, de;
|
|
35275
35275
|
i.enablePivot = !0, i.context.cellEditType = "dateEditor", i.cellDataType = !1, i.cellEditor = p0, i.cellEditorParams = {
|
|
35276
35276
|
readonly: ((h = (c = i.context) == null ? void 0 : c.columnConfig) == null ? void 0 : h.READ_ONLY) === "1",
|
|
35277
35277
|
formHelper: this,
|
|
@@ -35307,7 +35307,7 @@ var D;
|
|
|
35307
35307
|
} : void 0,
|
|
35308
35308
|
showTooltips: !0,
|
|
35309
35309
|
excelMode: ((N = (Z = i.context) == null ? void 0 : Z.viewOptions) == null ? void 0 : N.excelMode) === "mac" ? "mac" : "windows",
|
|
35310
|
-
buttons: ((Y = (
|
|
35310
|
+
buttons: ((Y = (U = i.context) == null ? void 0 : U.viewOptions) == null ? void 0 : Y.showApplyFilterButton) !== !1 ? ["reset", "apply"] : void 0,
|
|
35311
35311
|
closeOnApply: (Fe = (j = i.context) == null ? void 0 : j.viewOptions) == null ? void 0 : Fe.closeOnApplyFilter
|
|
35312
35312
|
}
|
|
35313
35313
|
}
|
|
@@ -35354,7 +35354,7 @@ var D;
|
|
|
35354
35354
|
* @returns this
|
|
35355
35355
|
*/
|
|
35356
35356
|
setGridColumnNumberEditor(r, i, n) {
|
|
35357
|
-
var E, m, I, F, M, Z, N,
|
|
35357
|
+
var E, m, I, F, M, Z, N, U, Y, j, Fe, me, Se, de, _e, te, ze, $e, st, oe, V, ye, De;
|
|
35358
35358
|
let s = {}, c = {};
|
|
35359
35359
|
const h = t.toString((m = (E = i.context) == null ? void 0 : E.viewConfig) == null ? void 0 : m.EXT_OPTIONS).trim(), p = t.toString((F = (I = i.context) == null ? void 0 : I.columnConfig) == null ? void 0 : F.EXT_OPTIONS).trim();
|
|
35360
35360
|
return h.length > 0 && (s = JSON.parse(h)), p.length > 0 && (c = JSON.parse(p)), i.context.cellEditType = "numberEditor", i.enableValue = !0, i.cellEditor = w0, i.cellDataType = "number", i.cellEditorParams = {
|
|
@@ -35362,7 +35362,7 @@ var D;
|
|
|
35362
35362
|
formHelper: this,
|
|
35363
35363
|
configId: r,
|
|
35364
35364
|
step: ((N = s == null ? void 0 : s[i.colId]) == null ? void 0 : N.step) || (c == null ? void 0 : c.step),
|
|
35365
|
-
showNumberControl: ((
|
|
35365
|
+
showNumberControl: ((U = i.context) == null ? void 0 : U.columnConfig.COLUMN_EDIT) !== "N"
|
|
35366
35366
|
}, (n == null ? void 0 : n.precision) > 0 && (i.cellEditorParams.precision = n.precision), i.cellEditorParams.max = n == null ? void 0 : n.max, i.cellEditorParams.min = n == null ? void 0 : n.min, i.context.columnConfig.ALLOW_FILTER === "0" ? i.filter = !1 : (i.filter = "agMultiColumnFilter", i.filterParams = {
|
|
35367
35367
|
filters: [
|
|
35368
35368
|
{
|
|
@@ -35391,9 +35391,9 @@ var D;
|
|
|
35391
35391
|
}
|
|
35392
35392
|
]
|
|
35393
35393
|
}, i.context.columnConfig.AUTO_FILTER_CONDITION === "Contains" ? i.filterParams.defaultOption = "inRange" : i.context.columnConfig.AUTO_FILTER_CONDITION === "Like" || i.context.columnConfig.AUTO_FILTER_CONDITION === "StartsWith" ? i.filterParams.defaultOption = "greaterThan" : i.context.columnConfig.AUTO_FILTER_CONDITION === "EndsWith" ? i.filterParams.defaultOption = "lessThan" : i.filterParams.defaultOption = "equals"), i.valueFormatter = (Ae) => {
|
|
35394
|
-
var St, yt, _t,
|
|
35394
|
+
var St, yt, _t, G, Ot, It, rt, Ze, Ue, pt;
|
|
35395
35395
|
let je, ut = (St = n == null ? void 0 : n.format) == null ? void 0 : St.trim(), Et = "";
|
|
35396
|
-
return (_t = (yt = Ae.node) == null ? void 0 : yt.rowGroupColumn) != null && _t.colDef && Ae.value !== void 0 ? (je = Ae.value, ut = ((Ot = (
|
|
35396
|
+
return (_t = (yt = Ae.node) == null ? void 0 : yt.rowGroupColumn) != null && _t.colDef && Ae.value !== void 0 ? (je = Ae.value, ut = ((Ot = (G = i.context) == null ? void 0 : G.columnConfig) == null ? void 0 : Ot.FORMAT_STRING) || ut) : Ae.node.rowPinned || Ae.node.group ? (je = Ae.value, ut = (Ae.node.rowPinned ? (It = n == null ? void 0 : n.summaryFormat) == null ? void 0 : It.trim() : (rt = n == null ? void 0 : n.groupFormat) == null ? void 0 : rt.trim()) || ((Ze = n == null ? void 0 : n.format) == null ? void 0 : Ze.trim()) || "") : Ae.value !== void 0 && (je = Ae.value, ut = ((pt = (Ue = i.context) == null ? void 0 : Ue.columnConfig) == null ? void 0 : pt.FORMAT_STRING) || ut), je !== void 0 && (typeof je == "number" ? Et = t.formatNumberValue(je, ut) : ya.isPlainObject(je) ? Et = `☑️ ${t.formatNumberValue(je.aggValueOfChecked, ut)}
|
|
35397
35397
|
∑ ${t.formatNumberValue(je.aggValue, ut)}` : Et = t.formatNumberValue(je, ut)), Et;
|
|
35398
35398
|
}, n.progressBar ? (i.cellRenderer = j0, i.cellRendererParams = (Ae) => {
|
|
35399
35399
|
var ut;
|
|
@@ -35405,7 +35405,7 @@ var D;
|
|
|
35405
35405
|
}
|
|
35406
35406
|
return Ae;
|
|
35407
35407
|
}) : ((ye = (V = i.context) == null ? void 0 : V.columnConfig) == null ? void 0 : ye.CALL_FORM.trim().length) > 0 && (i.cellRenderer = (Ae) => {
|
|
35408
|
-
var je, ut, Et, St, yt, _t,
|
|
35408
|
+
var je, ut, Et, St, yt, _t, G;
|
|
35409
35409
|
if (Ae.node.rowPinned)
|
|
35410
35410
|
return (je = n == null ? void 0 : n.summaryFormat) != null && je.trim() || ((ut = n == null ? void 0 : n.format) == null || ut.trim()), i.valueFormatter(Ae);
|
|
35411
35411
|
if (Ae.value !== void 0) {
|
|
@@ -35416,7 +35416,7 @@ var D;
|
|
|
35416
35416
|
callFormLink: It,
|
|
35417
35417
|
displayText: Ot,
|
|
35418
35418
|
antTooltip: !0,
|
|
35419
|
-
justifyContent: ((_t = i.context.columnConfig) == null ? void 0 : _t.HALIGNMENT) === "Near" ? "flex-start" : ((
|
|
35419
|
+
justifyContent: ((_t = i.context.columnConfig) == null ? void 0 : _t.HALIGNMENT) === "Near" ? "flex-start" : ((G = i.context.columnConfig) == null ? void 0 : G.HALIGNMENT) === "Center" ? "center" : "flex-end",
|
|
35420
35420
|
click: It ? (rt) => {
|
|
35421
35421
|
var pt;
|
|
35422
35422
|
let Ze = i.context.columnConfig.CALL_FORM;
|
|
@@ -35477,9 +35477,9 @@ var D;
|
|
|
35477
35477
|
antTooltip: !0,
|
|
35478
35478
|
click: Z ? (N) => {
|
|
35479
35479
|
var j;
|
|
35480
|
-
let
|
|
35480
|
+
let U = i.context.columnConfig.CALL_FORM;
|
|
35481
35481
|
const Y = (j = N.node) == null ? void 0 : j.data.toJSON();
|
|
35482
|
-
|
|
35482
|
+
U.endsWith("??") ? (U = U.replace("??", ""), encodeURIComponent(encodeURIComponent(JSON.stringify(Y)))) : U.endsWith("?") && (U = U.replace("?", ""), encodeURIComponent(JSON.stringify(Y))), this.setLocalStorage(U, { senderType: "gridCell", value: N.value, data: Y, formNameFrom: this.FormName });
|
|
35483
35483
|
} : void 0
|
|
35484
35484
|
}
|
|
35485
35485
|
})) : M;
|
|
@@ -35511,7 +35511,7 @@ var D;
|
|
|
35511
35511
|
}, this;
|
|
35512
35512
|
}
|
|
35513
35513
|
getGridMenuItems(r) {
|
|
35514
|
-
var p, E, m, I, F, M, Z, N,
|
|
35514
|
+
var p, E, m, I, F, M, Z, N, U, Y, j, Fe, me, Se, de, _e, te, ze, $e, st, oe, V, ye, De, Ae, je, ut, Et, St, yt, _t, G, Ot, It, rt, Ze, Ue, pt, Ft, kt, Ut, qt, Mt, gr, ot, Gt, P, re, X, K, ae, ne, Pe, We, Me, be, Ge, ct, k, ie, Ee, Le, Je, Tt, B, le, A, we, qe, He, Oe, et, ft, Ve, dt, vt, Dt, Nt, Wt, Ht, Xt, g, ir, Zt, La, ci, ui, di, fi;
|
|
35515
35515
|
const i = (E = (p = r.column) == null ? void 0 : p.gridOptionsService) == null ? void 0 : E.gridOptions, n = (m = r == null ? void 0 : r.context) == null ? void 0 : m.options, s = (I = i == null ? void 0 : i.context) == null ? void 0 : I.configId, c = r.defaultItems;
|
|
35516
35516
|
c.length = 0, c.push("pinSubMenu", "separator", "autoSizeThis", "autoSizeAll", "separator");
|
|
35517
35517
|
const h = ($t = !1) => {
|
|
@@ -35571,7 +35571,7 @@ var D;
|
|
|
35571
35571
|
}), console.info("ER: The grid custom configuration synchronization was successful!")) : this.messageError(this.$t("ERX.ErGrid.SaveUserConfigFailed") || "保存用户配置失败"));
|
|
35572
35572
|
}), lr.show(null);
|
|
35573
35573
|
};
|
|
35574
|
-
if (r.api.getDisplayedRowCount() > 0 && ((M = (F = r.columnApi) == null ? void 0 : F.getRowGroupColumns()) == null ? void 0 : M.length) > 0 && c.push("expandAll", "contractAll", "separator"), ((Z = r == null ? void 0 : r.context) == null ? void 0 : Z.isDetailGrid) !== !0 && ((n == null ? void 0 : n.allowAdvanceFilter) !== !1 && ((N = n == null ? void 0 : n.advanceFilter) == null ? void 0 : N.allow) !== !1 && (((
|
|
35574
|
+
if (r.api.getDisplayedRowCount() > 0 && ((M = (F = r.columnApi) == null ? void 0 : F.getRowGroupColumns()) == null ? void 0 : M.length) > 0 && c.push("expandAll", "contractAll", "separator"), ((Z = r == null ? void 0 : r.context) == null ? void 0 : Z.isDetailGrid) !== !0 && ((n == null ? void 0 : n.allowAdvanceFilter) !== !1 && ((N = n == null ? void 0 : n.advanceFilter) == null ? void 0 : N.allow) !== !1 && (((U = n == null ? void 0 : n.advanceFilterService) == null ? void 0 : U.length) > 0 || ((j = (Y = n == null ? void 0 : n.advanceFilter) == null ? void 0 : Y.service) == null ? void 0 : j.length) > 0), this.getGridOptions(s, "ShowQuickFilter", !0) !== "2" && (this.getGridOptions(s, "ShowQuickFilter", !0) === "1" ? c.push({
|
|
35575
35575
|
name: this.$t("ERX.ErGrid.HideQuickFilter") || "隐藏快速搜索栏",
|
|
35576
35576
|
action: () => {
|
|
35577
35577
|
this.setGridOptions(s, "ShowQuickFilter", "0", !0);
|
|
@@ -35867,7 +35867,7 @@ var D;
|
|
|
35867
35867
|
},
|
|
35868
35868
|
{
|
|
35869
35869
|
name: "MultiRow",
|
|
35870
|
-
disabled: ((
|
|
35870
|
+
disabled: ((G = (_t = i.context) == null ? void 0 : _t.viewConfig) == null ? void 0 : G.MULTI_SELECT_MODE) === "2",
|
|
35871
35871
|
action: () => {
|
|
35872
35872
|
this.uploadGridViewProps(s, "MULTI_SELECT_MODE", "2").then(() => {
|
|
35873
35873
|
i.context.viewConfig.MULTI_SELECT_MODE = "2", this.setGridOptions(s, "RowSelection", "multiple", !0), this.getGrid(s).gridOptions.enableRangeSelection = !1;
|
|
@@ -36593,8 +36593,8 @@ var D;
|
|
|
36593
36593
|
});
|
|
36594
36594
|
const N = t.buildEiBlock([F], "TSI00GRIDVIEWCUS_ADD");
|
|
36595
36595
|
I.addBlock(N);
|
|
36596
|
-
let
|
|
36597
|
-
n && (
|
|
36596
|
+
let U = !0;
|
|
36597
|
+
n && (U = await t.messageConfirm(this.$t("ERX.ErGrid.SaveUserConfig") || "是否确定同步个人配置?")), U ? t.callService(e.SysInfo.saveDevConfigService, I).then(
|
|
36598
36598
|
(Y) => {
|
|
36599
36599
|
h = Y, s(h);
|
|
36600
36600
|
}
|
|
@@ -36666,23 +36666,23 @@ var D;
|
|
|
36666
36666
|
if ((p = F == null ? void 0 : F.gridOptions) != null && p.api) {
|
|
36667
36667
|
(!i || i.trim().length === 0) && (i = "ChangedRows");
|
|
36668
36668
|
const M = F.gridOptions.api, Z = (m = (E = F.gridOptions) == null ? void 0 : E.context) == null ? void 0 : m.columnsConfig, N = [];
|
|
36669
|
-
if (Z == null || Z.forEach((
|
|
36670
|
-
|
|
36669
|
+
if (Z == null || Z.forEach((U) => {
|
|
36670
|
+
U.UNBOUND_TYPE === "0" && U.ITEM_MUST_FLAG === "1" && N.push(U);
|
|
36671
36671
|
}), N.length > 0)
|
|
36672
36672
|
if (M.setFilterModel(null), i === "CheckedRows") {
|
|
36673
|
-
const
|
|
36674
|
-
for (let Y = 0; Y <
|
|
36675
|
-
if (c = this.checkGridRowInput(M,
|
|
36673
|
+
const U = M.getSelectedNodes();
|
|
36674
|
+
for (let Y = 0; Y < U.length; Y++)
|
|
36675
|
+
if (c = this.checkGridRowInput(M, U[Y], N, n, s), !c)
|
|
36676
36676
|
return c;
|
|
36677
36677
|
} else if (i === "AllRows") {
|
|
36678
|
-
const
|
|
36679
|
-
for (let Y = 0; Y <
|
|
36678
|
+
const U = M.getModel().getRowCount();
|
|
36679
|
+
for (let Y = 0; Y < U; Y++) {
|
|
36680
36680
|
const j = M.getModel().getRow(Y);
|
|
36681
36681
|
if (j != null && j.data && (c = this.checkGridRowInput(M, j, N, n, s), !c))
|
|
36682
36682
|
return c;
|
|
36683
36683
|
}
|
|
36684
36684
|
} else {
|
|
36685
|
-
const
|
|
36685
|
+
const U = this.getGridCreatedRows(r), Y = this.getGridModifyRows(r), j = [...U, ...Y];
|
|
36686
36686
|
for (let Fe = 0; Fe < j.length; Fe++) {
|
|
36687
36687
|
const me = M.getModel().getRowNode(j[Fe].uid);
|
|
36688
36688
|
if (me != null && me.data && (c = this.checkGridRowInput(M, me, N, n, s), !c))
|
|
@@ -36698,9 +36698,9 @@ var D;
|
|
|
36698
36698
|
if (r && (i != null && i.data))
|
|
36699
36699
|
for (let F = 0; F < n.length; F++) {
|
|
36700
36700
|
const M = n[F].ITEM_CODE, Z = n[F].FIELD_NAME, N = n[F].CONDITION_TABLE;
|
|
36701
|
-
let
|
|
36702
|
-
t.toString(n[F].EXT_OPTIONS).trim().length > 0 && (
|
|
36703
|
-
const Y =
|
|
36701
|
+
let U = {};
|
|
36702
|
+
t.toString(n[F].EXT_OPTIONS).trim().length > 0 && (U = JSON.parse(t.toString(n[F].EXT_OPTIONS)));
|
|
36703
|
+
const Y = U.requireCondition || n[F].MUST_INPUT_CONDITION, j = r.getColumnDef(M);
|
|
36704
36704
|
if (j && (!j.visible || !s))
|
|
36705
36705
|
if (Y.trim().length === 0) {
|
|
36706
36706
|
if (i.rowIndex && (i == null ? void 0 : i.data[Z]) === void 0 || (i == null ? void 0 : i.data[Z]) === null || t.toString(i == null ? void 0 : i.data[Z]).trim().length === 0 || ((p = j.context) == null ? void 0 : p.dataType) === "number" && (i == null ? void 0 : i.data[Z]) === 0)
|
|
@@ -37146,14 +37146,14 @@ var D;
|
|
|
37146
37146
|
return Z.type = M.type === "number" ? "N" : "C", Z.name = M.name, Z.descName = M.caption, Z;
|
|
37147
37147
|
}, F = [];
|
|
37148
37148
|
i ? (E = (p = r == null ? void 0 : r.gridOptions) == null ? void 0 : p.columnApi.getAllGridColumns()) == null || E.forEach((M) => {
|
|
37149
|
-
var Z, N,
|
|
37150
|
-
if ((
|
|
37149
|
+
var Z, N, U, Y, j, Fe, me;
|
|
37150
|
+
if ((U = (Z = c == null ? void 0 : c.options) == null ? void 0 : Z.schema) != null && U[(N = M.colDef) == null ? void 0 : N.field]) {
|
|
37151
37151
|
const Se = I((j = c == null ? void 0 : c.options) == null ? void 0 : j.schema[(Y = M.colDef) == null ? void 0 : Y.field]);
|
|
37152
37152
|
Se.descName = (me = (Fe = M.colDef) == null ? void 0 : Fe.headerName) == null ? void 0 : me.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", ""), s.addColumn(Se), F.push({ name: Se.name, type: Se.type });
|
|
37153
37153
|
}
|
|
37154
37154
|
}) : Object.keys((m = c == null ? void 0 : c.options) == null ? void 0 : m.schema).forEach((M) => {
|
|
37155
|
-
var N,
|
|
37156
|
-
const Z = I((
|
|
37155
|
+
var N, U;
|
|
37156
|
+
const Z = I((U = (N = c == null ? void 0 : c.options) == null ? void 0 : N.schema) == null ? void 0 : U[M]);
|
|
37157
37157
|
s.addColumn(Z), F.push({ name: Z.name, type: Z.type });
|
|
37158
37158
|
});
|
|
37159
37159
|
}
|
|
@@ -37637,11 +37637,11 @@ var D;
|
|
|
37637
37637
|
});
|
|
37638
37638
|
const m = { flag: -1, msg: "", data: void 0, total: 0 }, F = (Z = (M = this.getGrid(r).gridOptions.context) == null ? void 0 : M.pageOptions) == null ? void 0 : Z.pageSize;
|
|
37639
37639
|
E.addBlock(e.Core.buildEiBlock([{ PAGE_NUM: c, PAGE_SIZE: F }], "PAGEINFO")), await this.callService(n.trim(), E, { messageError: !0 }).then((N) => {
|
|
37640
|
-
var
|
|
37640
|
+
var U;
|
|
37641
37641
|
if (N.getStatus() >= 0) {
|
|
37642
37642
|
m.flag = 0;
|
|
37643
|
-
const Y = N.getBlockByIndex(0);
|
|
37644
|
-
m.data = Y, m.total = ((
|
|
37643
|
+
const Y = N.getBlock("TSI00RESULT") ?? N.getBlock("result") ?? N.getBlockByIndex(0);
|
|
37644
|
+
m.data = Y, m.total = ((U = Y == null ? void 0 : Y.getMappedRows()) == null ? void 0 : U.length) || 0, N.containsBlock("PAGEINFO") && (m.total = N.getBlock("PAGEINFO").getMappedRows()[0].TOTAL_RECORD);
|
|
37645
37645
|
}
|
|
37646
37646
|
}), h(m);
|
|
37647
37647
|
}), s);
|
|
@@ -37658,16 +37658,16 @@ var D;
|
|
|
37658
37658
|
r && (n == null ? void 0 : n.trim().length) > 0 && (s == null ? void 0 : s.trim().length) > 0 && this.setGridServerPagingQuery(r, i, (h) => new Promise(async (p, E) => {
|
|
37659
37659
|
var Z, N;
|
|
37660
37660
|
const m = new Rt();
|
|
37661
|
-
Object.keys(i.getBlocks()).forEach((
|
|
37662
|
-
m.addBlock(i.getBlock(
|
|
37661
|
+
Object.keys(i.getBlocks()).forEach((U) => {
|
|
37662
|
+
m.addBlock(i.getBlock(U));
|
|
37663
37663
|
});
|
|
37664
37664
|
const I = { flag: -1, msg: "", data: void 0, total: 0 }, M = (N = (Z = this.getGrid(r).gridOptions.context) == null ? void 0 : Z.pageOptions) == null ? void 0 : N.pageSize;
|
|
37665
|
-
m.addBlock(e.Core.buildEiBlock([{ FUNCTION_ID: n }], "DATA_SOURCE")), m.addBlock(e.Core.buildEiBlock([{ PAGE_NUM: h, PAGE_SIZE: M }], "PAGEINFO")), await this.callService(s.trim(), m).then((
|
|
37665
|
+
m.addBlock(e.Core.buildEiBlock([{ FUNCTION_ID: n }], "DATA_SOURCE")), m.addBlock(e.Core.buildEiBlock([{ PAGE_NUM: h, PAGE_SIZE: M }], "PAGEINFO")), await this.callService(s.trim(), m).then((U) => {
|
|
37666
37666
|
var Y;
|
|
37667
|
-
if (
|
|
37667
|
+
if (U.getStatus() >= 0) {
|
|
37668
37668
|
I.flag = 0;
|
|
37669
|
-
const j =
|
|
37670
|
-
I.data = j, I.total = ((Y = j == null ? void 0 : j.getMappedRows()) == null ? void 0 : Y.length) || 0,
|
|
37669
|
+
const j = U.getBlock("TSI00RESULT") ?? U.getBlock("result") ?? U.getBlockByIndex(0);
|
|
37670
|
+
I.data = j, I.total = ((Y = j == null ? void 0 : j.getMappedRows()) == null ? void 0 : Y.length) || 0, U.containsBlock("PAGEINFO") && (I.total = U.getBlock("PAGEINFO").getMappedRows()[0].TOTAL_RECORD);
|
|
37671
37671
|
}
|
|
37672
37672
|
}), p(I);
|
|
37673
37673
|
}), c);
|
|
@@ -38236,11 +38236,11 @@ var D;
|
|
|
38236
38236
|
this._serviceName,
|
|
38237
38237
|
this._sysConfiParas
|
|
38238
38238
|
).then((c) => {
|
|
38239
|
-
var h, p, E, m, I, F, M, Z, N,
|
|
38239
|
+
var h, p, E, m, I, F, M, Z, N, U, Y, j, Fe, me, Se, de, _e, te, ze, $e, st;
|
|
38240
38240
|
if (c.flag === 1) {
|
|
38241
38241
|
if (((m = (E = (p = (h = this._formHelper) == null ? void 0 : h.ConfigInfo) == null ? void 0 : p.TSI00FORM) == null ? void 0 : E.getMappedRows()) == null ? void 0 : m.length) > 0) {
|
|
38242
38242
|
const oe = (M = (F = (I = this._formHelper) == null ? void 0 : I.ConfigInfo) == null ? void 0 : F.TSI00FORM) == null ? void 0 : M.getMappedRows()[0];
|
|
38243
|
-
if (this._formOptions.value.title = this._formOptions.value.title ?? oe.FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? t.toNumber(oe.FORM_WIDTH), this._formOptions.value.height = this._formOptions.value.height ?? t.toNumber(oe.FORM_HEIGHT), this.BordStyle = this.BordStyle ?? (oe.FORM_STYLE === "3" ? "Fixed" : "Sizable"), ((Y = (
|
|
38243
|
+
if (this._formOptions.value.title = this._formOptions.value.title ?? oe.FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? t.toNumber(oe.FORM_WIDTH), this._formOptions.value.height = this._formOptions.value.height ?? t.toNumber(oe.FORM_HEIGHT), this.BordStyle = this.BordStyle ?? (oe.FORM_STYLE === "3" ? "Fixed" : "Sizable"), ((Y = (U = (N = (Z = this._formHelper) == null ? void 0 : Z.ConfigInfo) == null ? void 0 : N.TSI00FORMBUTTON) == null ? void 0 : U.getMappedRows()) == null ? void 0 : Y.length) > 0 && this._formHelper.ConfigInfo.TSI00FORMBUTTON.getMappedRows().every((V) => V.BUTTON_NAME === "btnOk" ? (this.OkButtonService = V.SVC_NAME, !1) : !0), ((Se = (me = (Fe = (j = this._formHelper) == null ? void 0 : j.ConfigInfo) == null ? void 0 : Fe.TSI00GRIDVIEW) == null ? void 0 : me.getMappedRows()) == null ? void 0 : Se.length) > 0)
|
|
38244
38244
|
for (let V = 0; V < ((te = (_e = (de = this._formHelper) == null ? void 0 : de.ConfigInfo) == null ? void 0 : _e.TSI00GRIDVIEW) == null ? void 0 : te.getMappedRows().length); V++) {
|
|
38245
38245
|
const ye = (st = ($e = (ze = this._formHelper) == null ? void 0 : ze.ConfigInfo) == null ? void 0 : $e.TSI00GRIDVIEW) == null ? void 0 : st.getMappedRows()[V];
|
|
38246
38246
|
V == 0 && (this._mainLayoutId = ye.FUNCTION_ID, this._tableName = this._formHelper.setBindingTableName(this._mainLayoutId), this._dataSet = this._formHelper.FormDataSet, this._dataTable = this._formHelper.getBindingTable(this._mainLayoutId)), this._layoutGroupIdArray.push(ye.FUNCTION_ID), this._layoutGroupInfo[ye.FUNCTION_ID] = ye;
|
|
@@ -39476,8 +39476,8 @@ var D;
|
|
|
39476
39476
|
this._partition = r, this._instanceId = i, this._companyCode = n, this._bizBillNo = s, this._tableName = c, this._sysInfoFlag = 0, this._sysInfoMsg = "", h === void 0 && (h = {}), h.WF_REC_ID = i, h.BIZ_BILL_NO = s, h.COMPANY_CODE = n, h.TABLE_NAME = c;
|
|
39477
39477
|
const M = new Rt(), Z = t.buildEiBlock([h]);
|
|
39478
39478
|
M.addBlock(Z), await t.callService("si00wf_inq", M).then((N) => {
|
|
39479
|
-
var
|
|
39480
|
-
if (e.Core.toNumber((
|
|
39479
|
+
var U, Y, j, Fe, me;
|
|
39480
|
+
if (e.Core.toNumber((U = N == null ? void 0 : N.SysInfo) == null ? void 0 : U.Flag) !== 0)
|
|
39481
39481
|
this._sysInfoFlag = ((Y = N == null ? void 0 : N.SysInfo) == null ? void 0 : Y.Flag) || -1, this._sysInfoMsg = ((j = N == null ? void 0 : N.SysInfo) == null ? void 0 : j.Msg) || "", t.messageError(
|
|
39482
39482
|
"获取审批信息出错,业务单据号[" + s + "],流程实例[" + i + "],错误信息[" + this._sysInfoMsg + "]"
|
|
39483
39483
|
);
|
|
@@ -40539,7 +40539,7 @@ const si = /* @__PURE__ */ Ir(G1, [["render", V1], ["__scopeId", "data-v-d82869d
|
|
|
40539
40539
|
let x = !1, S = C.action, y = !1;
|
|
40540
40540
|
const O = {};
|
|
40541
40541
|
e.params[C.name] ? (S = e.params[C.name].action, x = e.params[C.name].preventDefault, y = e.params[C.name].messageConfirm) : S || (S = d(C.name, "action"), x = d(C.name, "preventDefault"), y = d(C.name, "messageConfirm")), (v = (_ = e.params) == null ? void 0 : _.formHelper) == null || v.stopGridEditing((T = e.params) == null ? void 0 : T.configId, async () => {
|
|
40542
|
-
var w, H, ee, R, L, pe, se, W, ue, b, Q, ce, J, ve, Be, xe, Ye, Ie, Re, Ce, Ke, Ne, z, he, r, i, n, s, c, h, p, E, m, I, F, M, Z, N,
|
|
40542
|
+
var w, H, ee, R, L, pe, se, W, ue, b, Q, ce, J, ve, Be, xe, Ye, Ie, Re, Ce, Ke, Ne, z, he, r, i, n, s, c, h, p, E, m, I, F, M, Z, N, U, Y, j, Fe;
|
|
40543
40543
|
if (x !== !0)
|
|
40544
40544
|
switch (C.name) {
|
|
40545
40545
|
case "refresh":
|
|
@@ -40579,7 +40579,7 @@ const si = /* @__PURE__ */ Ir(G1, [["render", V1], ["__scopeId", "data-v-d82869d
|
|
|
40579
40579
|
(te == null ? void 0 : te.fileName.trim().length) > 0 ? _e.fileName = te == null ? void 0 : te.fileName.trim() : _e.fileName = (m = (E = e.params) == null ? void 0 : E.formHelper) == null ? void 0 : m.getFormSysInfo("GRIDEXPORTFILENAME"), _e.fileName = (_e.fileName || "{formName}-{dateNow}").replace("{formName}", me).replace("{formCaption}", Se).replace("{dateNow}", D.Core.getDateTimeFormatString(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH-mm-ss")), (I = te == null ? void 0 : te.header) != null && I.titleType && (_e.header.titleType = (F = te == null ? void 0 : te.header) == null ? void 0 : F.titleType), D.Core.exportGridToExcel(e.params.api, e.params.columnApi, {
|
|
40580
40580
|
fileName: _e.fileName,
|
|
40581
40581
|
isBandView: ((Z = (M = de.gridOptions.context) == null ? void 0 : M.options) == null ? void 0 : Z.viewType) === "BandView",
|
|
40582
|
-
isShowFooter: ((
|
|
40582
|
+
isShowFooter: ((U = (N = de.gridOptions.context) == null ? void 0 : N.viewConfig) == null ? void 0 : U.SHOW_FOOTER) === "1",
|
|
40583
40583
|
isCheckedRows: ((Y = D.Core.getGridRows(de, "checkedAfterFilter")) == null ? void 0 : Y.length) > 0
|
|
40584
40584
|
});
|
|
40585
40585
|
break;
|
|
@@ -41118,7 +41118,7 @@ const _d = /* @__PURE__ */ Ir(Dx, [["render", Rx]]), Nx = {
|
|
|
41118
41118
|
F && n && (i.data = Or(i.data), F.setCurrent(i.data, t.configId));
|
|
41119
41119
|
}
|
|
41120
41120
|
const I = () => {
|
|
41121
|
-
var M, Z, N,
|
|
41121
|
+
var M, Z, N, U, Y, j;
|
|
41122
41122
|
const F = {
|
|
41123
41123
|
...r,
|
|
41124
41124
|
rowChanged: i.id !== n,
|
|
@@ -41128,12 +41128,12 @@ const _d = /* @__PURE__ */ Ir(Dx, [["render", Rx]]), Nx = {
|
|
|
41128
41128
|
configId: t.configId,
|
|
41129
41129
|
erFormHelper: t.erFormHelperProp
|
|
41130
41130
|
};
|
|
41131
|
-
F.colDefEditable = ((
|
|
41131
|
+
F.colDefEditable = ((U = (N = (Z = r.column) == null ? void 0 : Z.colDef) == null ? void 0 : N.context) == null ? void 0 : U.ALLOW_EDIT) === "1" && ((j = (Y = r.column) == null ? void 0 : Y.colDef) == null ? void 0 : j.context.READ_ONLY) !== "1" || !1, u("focusChanged", F), r.context.focusRowId = i.id, r.context.focusColId = r.column.colId;
|
|
41132
41132
|
};
|
|
41133
41133
|
((m = (E = f.value) == null ? void 0 : E.gridOptions) == null ? void 0 : m.rowSelection) === "single" ? setTimeout(I, 250) : I();
|
|
41134
41134
|
}
|
|
41135
41135
|
}), f.value.gridOptions.api.addEventListener("rowDataUpdated", (r) => {
|
|
41136
|
-
var i, n, s, c, h, p, E, m, I, F, M, Z, N,
|
|
41136
|
+
var i, n, s, c, h, p, E, m, I, F, M, Z, N, U, Y;
|
|
41137
41137
|
if (r.context.bindingSource.rowCount === 0)
|
|
41138
41138
|
(i = r == null ? void 0 : r.api) == null || i.clearFocusedCell(), (n = r == null ? void 0 : r.api) == null || n.clearRangeSelection(), r.context.focusRowId = "", r.context.focusColId = "", ((s = t.options) == null ? void 0 : s.suppressDefaultFocusedCell) !== !0 && u("focusChanged", {
|
|
41139
41139
|
rowChanged: !0,
|
|
@@ -41182,7 +41182,7 @@ const _d = /* @__PURE__ */ Ir(Dx, [["render", Rx]]), Nx = {
|
|
|
41182
41182
|
}), _e.length > 0 && (de.data._preview_row_data = _e, de.setExpanded(!0));
|
|
41183
41183
|
});
|
|
41184
41184
|
}
|
|
41185
|
-
((Y = (
|
|
41185
|
+
((Y = (U = r == null ? void 0 : r.context) == null ? void 0 : U.viewConfig) == null ? void 0 : Y.AUTO_EXPAND_GROUP) === "1" && b.api.expandAll();
|
|
41186
41186
|
}
|
|
41187
41187
|
});
|
|
41188
41188
|
} else
|
|
@@ -41422,8 +41422,8 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41422
41422
|
},
|
|
41423
41423
|
emits: ["dropdownOpen", "update:modelValue", "change", "focus", "blur"],
|
|
41424
41424
|
setup(e, { expose: a, emit: t }) {
|
|
41425
|
-
var F, M, Z, N,
|
|
41426
|
-
const o = e, l = t, u = ho(), d = ge(null), f = ge([]), C = ge(!1), _ = {}, T = ge(null), v = ge(o.multiple ? "multiple" : "single"), x = [], S = ge(""), y = ((F = o.dataSource) == null ? void 0 : F.length) > 10, O = ((M = o.options) == null ? void 0 : M.valueField) || ((Z = o.options) == null ? void 0 : Z.dataValueField) || ((N = o.options) == null ? void 0 : N.valueMember) || "CODE", w = ((
|
|
41425
|
+
var F, M, Z, N, U, Y, j, Fe, me, Se, de, _e, te, ze, $e, st;
|
|
41426
|
+
const o = e, l = t, u = ho(), d = ge(null), f = ge([]), C = ge(!1), _ = {}, T = ge(null), v = ge(o.multiple ? "multiple" : "single"), x = [], S = ge(""), y = ((F = o.dataSource) == null ? void 0 : F.length) > 10, O = ((M = o.options) == null ? void 0 : M.valueField) || ((Z = o.options) == null ? void 0 : Z.dataValueField) || ((N = o.options) == null ? void 0 : N.valueMember) || "CODE", w = ((U = o.options) == null ? void 0 : U.textField) || ((Y = o.options) == null ? void 0 : Y.dataTextField) || ((j = o.options) == null ? void 0 : j.displayMember) || "CODE_DESC_1_CONTENT", H = ((Fe = o.options) == null ? void 0 : Fe.parentField) || ((Se = (me = o.options) == null ? void 0 : me.dropdownOptions) == null ? void 0 : Se.parentField) || "PARENT_NODE", ee = [];
|
|
41427
41427
|
let R = ((de = o.options) == null ? void 0 : de.displayRows) || 0, L = 500, pe = 500, se = !0, W, ue;
|
|
41428
41428
|
const b = ka({
|
|
41429
41429
|
get() {
|
|
@@ -41532,14 +41532,14 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41532
41532
|
}
|
|
41533
41533
|
});
|
|
41534
41534
|
}, Ce = () => {
|
|
41535
|
-
var oe, V, ye, De, Ae, je, ut, Et, St, yt, _t,
|
|
41535
|
+
var oe, V, ye, De, Ae, je, ut, Et, St, yt, _t, G, Ot, It, rt, Ze, Ue, pt, Ft, kt, Ut, qt, Mt, gr, ot, Gt, P, re, X, K, ae, ne, Pe, We, Me, be, Ge, ct;
|
|
41536
41536
|
if (W) {
|
|
41537
41537
|
if (o.multiple) {
|
|
41538
41538
|
const Je = W.getColumnDef(D.SysInfo.GridCheckColumnFieldName);
|
|
41539
41539
|
Je && ue.setColumnVisible(Je.colId, !o.readonly);
|
|
41540
41540
|
}
|
|
41541
41541
|
let k = [];
|
|
41542
|
-
const ie = ((ye = (V = (oe = o.options) == null ? void 0 : oe.itemConfig) == null ? void 0 : V.FATHER_FIELD) == null ? void 0 : ye.trim()) || "", Ee = ((je = (Ae = (De = o.options) == null ? void 0 : De.itemConfig) == null ? void 0 : Ae.FORM_FILTER) == null ? void 0 : je.trim()) || "", Le = ((St = (Et = (ut = o.options) == null ? void 0 : ut.itemConfig) == null ? void 0 : Et.LAYOUT_ID) == null ? void 0 : St.trim()) || ((
|
|
41542
|
+
const ie = ((ye = (V = (oe = o.options) == null ? void 0 : oe.itemConfig) == null ? void 0 : V.FATHER_FIELD) == null ? void 0 : ye.trim()) || "", Ee = ((je = (Ae = (De = o.options) == null ? void 0 : De.itemConfig) == null ? void 0 : Ae.FORM_FILTER) == null ? void 0 : je.trim()) || "", Le = ((St = (Et = (ut = o.options) == null ? void 0 : ut.itemConfig) == null ? void 0 : Et.LAYOUT_ID) == null ? void 0 : St.trim()) || ((G = (_t = (yt = o.options) == null ? void 0 : yt.itemConfig) == null ? void 0 : _t.FUNCTION_ID) == null ? void 0 : G.trim());
|
|
41543
41543
|
if (o.readonly && ((Ot = o.dataSource) == null ? void 0 : Ot.length) > 0 && o.modelValue && o.modelValue instanceof Array && ((It = o.modelValue) == null ? void 0 : It.length) > 0)
|
|
41544
41544
|
k = o.dataSource.filter((Tt) => o.modelValue.includes(Tt[O])), se = !0;
|
|
41545
41545
|
else if (ie.length > 0 && Ee.length > 0) {
|
|
@@ -41624,7 +41624,7 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41624
41624
|
const Ae = document.createElement("span");
|
|
41625
41625
|
return Ae.innerHTML = V, Ae.style.paddingLeft = "3px", ye.appendChild(Ae), ye;
|
|
41626
41626
|
}, p = (oe) => {
|
|
41627
|
-
var De, Ae, je, ut, Et, St, yt, _t,
|
|
41627
|
+
var De, Ae, je, ut, Et, St, yt, _t, G, Ot, It;
|
|
41628
41628
|
W = oe.api, ue = oe.columnApi, W.addEventListener("selectionChanged", (rt) => {
|
|
41629
41629
|
if (!(o.treeDropdown && o.multiple)) {
|
|
41630
41630
|
if (!o.multiple) {
|
|
@@ -41720,7 +41720,7 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41720
41720
|
resizable: !0,
|
|
41721
41721
|
sortable: !1,
|
|
41722
41722
|
lockPosition: Ka() ? "right" : "left"
|
|
41723
|
-
}), ye += 50), W.selectionService.rowSelection = o.multiple ? "multiple" : "single", W.setColumnDefs(x), o.treeDropdown && (Q.width = ye, W.setAutoGroupColumnDef(Q)), (
|
|
41723
|
+
}), ye += 50), W.selectionService.rowSelection = o.multiple ? "multiple" : "single", W.setColumnDefs(x), o.treeDropdown && (Q.width = ye, W.setAutoGroupColumnDef(Q)), (G = o.options) != null && G.gridReady && typeof ((Ot = o.options) == null ? void 0 : Ot.gridReady) == "function" && ((It = o.options) == null || It.gridReady({ gridApi: W, columnApi: ue })), Ce();
|
|
41724
41724
|
}, E = (oe) => {
|
|
41725
41725
|
var ye, De, Ae;
|
|
41726
41726
|
const V = [];
|
|
@@ -41751,10 +41751,10 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41751
41751
|
let V = "{1}";
|
|
41752
41752
|
return (ye = o.options) != null && ye.displayFormat && (o.options.displayFormat instanceof Function ? V = o.options.displayFormat(oe) || "{1}" : typeof o.options.displayFormat == "string" && (V = o.options.displayFormat || "{1}")), V.replaceAll("{0}", oe[O]).replaceAll("{1}", oe[w]);
|
|
41753
41753
|
}, I = () => {
|
|
41754
|
-
var ye, De, Ae, je, ut, Et, St, yt, _t,
|
|
41754
|
+
var ye, De, Ae, je, ut, Et, St, yt, _t, G, Ot, It, rt;
|
|
41755
41755
|
const oe = [];
|
|
41756
41756
|
let V = o.dataSource;
|
|
41757
|
-
return (ye = o.options) != null && ye.configId && ((De = o.options) != null && De.itemCode) && ((ut = (Ae = o.options) == null ? void 0 : Ae.erFormHelper) != null && ut.DropDownBindSource[(je = o.options) == null ? void 0 : je.configId]) && ((_t = (Et = o.options) == null ? void 0 : Et.erFormHelper) != null && _t.DropDownBindSource[(St = o.options) == null ? void 0 : St.configId][(yt = o.options) == null ? void 0 : yt.itemCode]) && (V = (rt = (
|
|
41757
|
+
return (ye = o.options) != null && ye.configId && ((De = o.options) != null && De.itemCode) && ((ut = (Ae = o.options) == null ? void 0 : Ae.erFormHelper) != null && ut.DropDownBindSource[(je = o.options) == null ? void 0 : je.configId]) && ((_t = (Et = o.options) == null ? void 0 : Et.erFormHelper) != null && _t.DropDownBindSource[(St = o.options) == null ? void 0 : St.configId][(yt = o.options) == null ? void 0 : yt.itemCode]) && (V = (rt = (G = o.options) == null ? void 0 : G.erFormHelper) == null ? void 0 : rt.DropDownBindSource[(Ot = o.options) == null ? void 0 : Ot.configId][(It = o.options) == null ? void 0 : It.itemCode].dataSource), V = V || o.dataSource, (V == null ? void 0 : V.length) > 0 && Object.keys(V[0]).length > 0 && V.forEach((Ze) => {
|
|
41758
41758
|
var pt, Ft, kt;
|
|
41759
41759
|
const Ue = { ...Ze };
|
|
41760
41760
|
Ue.value = Ze[O], Ue.label = m(Ze), oe.push(Ue), (pt = o.options) != null && pt.imageCombo && ((Ft = Ze.IMAGE_URL) == null ? void 0 : Ft.trim().length) > 0 && (_[Ze[O]] = (kt = Ze.IMAGE_URL) == null ? void 0 : kt.trim());
|
|
@@ -41794,7 +41794,7 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41794
41794
|
onBlur: i
|
|
41795
41795
|
}), dr({
|
|
41796
41796
|
dropdownRender: Te(() => {
|
|
41797
|
-
var _t,
|
|
41797
|
+
var _t, G, Ot, It, rt, Ze, Ue;
|
|
41798
41798
|
return [
|
|
41799
41799
|
nt("div", {
|
|
41800
41800
|
style: wt(S.value)
|
|
@@ -41803,7 +41803,7 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41803
41803
|
id: ((_t = it(u)) == null ? void 0 : _t.id) + "_pop_grid",
|
|
41804
41804
|
class: "ag-theme-balham",
|
|
41805
41805
|
style: wt({ height: "100%", width: "100%", fontSize: o.componentSize === "large" ? "16px" : o.componentSize === "middle" ? "14px" : "12px" }),
|
|
41806
|
-
groupDisplayType: ((Ot = (
|
|
41806
|
+
groupDisplayType: ((Ot = (G = o.options) == null ? void 0 : G.groupFields) == null ? void 0 : Ot.length) > 0 && !o.treeDropdown ? "groupRows" : void 0,
|
|
41807
41807
|
groupDefaultExpanded: o.treeDropdown ? void 0 : -1,
|
|
41808
41808
|
enableRtl: it(Ka)(),
|
|
41809
41809
|
localeText: it(yn)(),
|
|
@@ -41867,14 +41867,14 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41867
41867
|
default: Te(() => {
|
|
41868
41868
|
var _t;
|
|
41869
41869
|
return [
|
|
41870
|
-
(_t = o.options) != null && _t.imageCombo ? (fe(!0), lt(or, { key: 0 }, Gr(f.value, (
|
|
41870
|
+
(_t = o.options) != null && _t.imageCombo ? (fe(!0), lt(or, { key: 0 }, Gr(f.value, (G) => (fe(), Qe(ye, {
|
|
41871
41871
|
"v-bind": { title: "" },
|
|
41872
|
-
value:
|
|
41873
|
-
label:
|
|
41872
|
+
value: G.value,
|
|
41873
|
+
label: G.label
|
|
41874
41874
|
}, {
|
|
41875
41875
|
default: Te(() => [
|
|
41876
|
-
(fe(), Qe(za(c(
|
|
41877
|
-
nt("span", Ux, xt(
|
|
41876
|
+
(fe(), Qe(za(c(G.value)), { style: { "vertical-align": "middle" } })),
|
|
41877
|
+
nt("span", Ux, xt(G.label), 1)
|
|
41878
41878
|
]),
|
|
41879
41879
|
_: 2
|
|
41880
41880
|
}, 1032, ["value", "label"]))), 256)) : ht("", !0)
|
|
@@ -41884,7 +41884,7 @@ const Rl = /* @__PURE__ */ Ir(Lx, [["render", Bx]]), Ux = { style: { "padding-le
|
|
|
41884
41884
|
}, [
|
|
41885
41885
|
o.readonly ? {
|
|
41886
41886
|
name: "tagRender",
|
|
41887
|
-
fn: Te(({ label: _t, closable:
|
|
41887
|
+
fn: Te(({ label: _t, closable: G, onClose: Ot }) => [
|
|
41888
41888
|
at(je, { closable: !1 }, {
|
|
41889
41889
|
default: Te(() => [
|
|
41890
41890
|
pr(xt(_t) + " ", 1)
|
|
@@ -42519,14 +42519,14 @@ const gS = Pt({
|
|
|
42519
42519
|
document.querySelectorAll(".layout-item-drag-enter").forEach((k) => {
|
|
42520
42520
|
k.classList.remove("layout-item-drag-enter");
|
|
42521
42521
|
});
|
|
42522
|
-
},
|
|
42522
|
+
}, U = () => {
|
|
42523
42523
|
document.querySelectorAll(".layout-item-drag-move").forEach((k) => {
|
|
42524
42524
|
k.classList.remove("layout-item-drag-move");
|
|
42525
42525
|
});
|
|
42526
42526
|
}, Y = (k, ie) => {
|
|
42527
42527
|
var Ee;
|
|
42528
42528
|
if (l.value) {
|
|
42529
|
-
if (z.length > 0 && z[z.length - 1].ITEM_CODE === "erQueryButton" && z.pop(),
|
|
42529
|
+
if (z.length > 0 && z[z.length - 1].ITEM_CODE === "erQueryButton" && z.pop(), U(), ie.ITEM_CODE) {
|
|
42530
42530
|
(Ee = t.erFormHelperProp.getLayoutLabelSpan(t.configId, ie.ITEM_CODE)) == null || Ee.addClass("layout-item-drag-move");
|
|
42531
42531
|
const Le = document.getElementsByName(t.erFormHelperProp.FormId + t.configId + ie.ITEM_CODE + "_empty");
|
|
42532
42532
|
Le.length > 0 && Le.forEach((Je) => {
|
|
@@ -42545,7 +42545,7 @@ const gS = Pt({
|
|
|
42545
42545
|
});
|
|
42546
42546
|
}
|
|
42547
42547
|
}, Fe = (k, ie) => {
|
|
42548
|
-
l.value && (N(),
|
|
42548
|
+
l.value && (N(), U(), i.ROW_GUID !== ie.ROW_GUID && (C.value === "insert" ? Z(i.ROW_GUID, ie.ROW_GUID) : M(i.ROW_GUID, ie.ROW_GUID), pe.value = P(z), v.value = [], f.value = !0, Tr(() => {
|
|
42549
42549
|
ae();
|
|
42550
42550
|
})));
|
|
42551
42551
|
}, me = (k) => {
|
|
@@ -42814,7 +42814,7 @@ const gS = Pt({
|
|
|
42814
42814
|
}, _t = (k) => {
|
|
42815
42815
|
let ie = "layout-item-label";
|
|
42816
42816
|
return k.ITEM_MUST_FLAG === "1" && k.MUST_INPUT_CONDITION.trim().length > 0 ? ie += " layout-item-require-condition" : k.ITEM_MUST_FLAG === "1" && (ie += " layout-item-require"), ie;
|
|
42817
|
-
},
|
|
42817
|
+
}, G = (k, ie) => {
|
|
42818
42818
|
const Ee = t.erFormHelperProp.getLayoutItemOption(t.configId, k, ie);
|
|
42819
42819
|
return ie === "hasFeedback" ? Ee !== void 0 ? Ee : n : ie === "placeholder" && D.Core.toString(Ee).trim().length === 0 ? void 0 : Ee;
|
|
42820
42820
|
}, Ot = () => {
|
|
@@ -43034,7 +43034,7 @@ const gS = Pt({
|
|
|
43034
43034
|
}), ["antDateTimePicker", "antDatePicker", "antMonthPicker", "antYearPicker", "antInput", "antInputNumber"].includes(ke.WIDGET_TYPE) && ((di = ke.TextForeColor) == null ? void 0 : di.trim().length) > 0 && y.push({
|
|
43035
43035
|
itemCode: ke.ITEM_CODE,
|
|
43036
43036
|
color: ke.TextForeColor,
|
|
43037
|
-
backgroundColor: ke.WIDGET_TYPE === "antInputNumber" &&
|
|
43037
|
+
backgroundColor: ke.WIDGET_TYPE === "antInputNumber" && G(ke.ITEM_CODE, "hasFeedback") !== !0 ? ke.TextBackColor : void 0
|
|
43038
43038
|
});
|
|
43039
43039
|
const Hr = [];
|
|
43040
43040
|
ke.ITEM_MUST_FLAG === "1" && Hr.push({
|
|
@@ -43050,17 +43050,17 @@ const gS = Pt({
|
|
|
43050
43050
|
return ke.CONDITION_TABLE.trim().length > 0 && ke.CONDITION_TABLE.trim().toUpperCase() !== O ? await Tr(() => {
|
|
43051
43051
|
var hi, Pl, Ll;
|
|
43052
43052
|
Fa = ((Pl = (hi = t.erFormHelperProp.FormDataSet) == null ? void 0 : hi.getCurrentDataObject(ke.CONDITION_TABLE.trim())) == null ? void 0 : Pl.toJSON()) || ((Ll = t.erFormHelperProp.getLayoutBindModel(ke.CONDITION_TABLE.trim())) == null ? void 0 : Ll.toJSON());
|
|
43053
|
-
}) : Fa = L.value.toJSON(), D.Core.checkExpressionValid(Fa, yr) ? (t.erFormHelperProp.setLayoutItemOption(t.configId, ke.FIELD_NAME, { validatorMsg: "[" +
|
|
43053
|
+
}) : Fa = L.value.toJSON(), D.Core.checkExpressionValid(Fa, yr) ? (t.erFormHelperProp.setLayoutItemOption(t.configId, ke.FIELD_NAME, { validatorMsg: "[" + G(ke.ITEM_CODE, "labelText") + "]为条件必填项" }), Promise.reject(new Error("required with condition"))) : Promise.resolve();
|
|
43054
43054
|
} else
|
|
43055
|
-
return t.erFormHelperProp.setLayoutItemOption(t.configId, ke.FIELD_NAME, { validatorMsg: "[" +
|
|
43055
|
+
return t.erFormHelperProp.setLayoutItemOption(t.configId, ke.FIELD_NAME, { validatorMsg: "[" + G(ke.ITEM_CODE, "labelText") + "]为必填项" }), Promise.reject(new Error("required"));
|
|
43056
43056
|
return t.erFormHelperProp.setLayoutItemOption(t.configId, ke.FIELD_NAME, { validatorMsg: void 0 }), Promise.resolve();
|
|
43057
43057
|
}
|
|
43058
43058
|
}), Cr != null && Cr.validator && (Cr == null ? void 0 : Cr.validator) instanceof Function ? Hr.push({
|
|
43059
43059
|
message: "",
|
|
43060
43060
|
trigger: "change",
|
|
43061
43061
|
itemCode: ke.FIELD_NAME,
|
|
43062
|
-
formatter:
|
|
43063
|
-
parser:
|
|
43062
|
+
formatter: G(ke.FIELD_NAME, "formatter"),
|
|
43063
|
+
parser: G(ke.FIELD_NAME, "parser"),
|
|
43064
43064
|
validator: (Ct, At) => Cr.validator(Ct, At) ? (t.erFormHelperProp.setLayoutItemOption(t.configId, Ct.itemCode, { validatorMsg: void 0, formatter: Ct.formatterr, parser: Ct.parser }), Promise.resolve()) : (t.erFormHelperProp.setLayoutItemOption(t.configId, Ct.itemCode, { formatter: void 0 }), Promise.reject(new Error("Invalid value")))
|
|
43065
43065
|
}) : ["antDateTimePicker", "antDatePicker", "antMonthPicker", "antYearPicker"].includes(ke.WIDGET_TYPE) && ((fi = ke.extendOptions) != null && fi.minValue || ($t = ke.extendOptions) != null && $t.maxValue) ? Hr.push({
|
|
43066
43066
|
message: "",
|
|
@@ -43091,8 +43091,8 @@ const gS = Pt({
|
|
|
43091
43091
|
min: ke.min,
|
|
43092
43092
|
itemCode: ke.FIELD_NAME,
|
|
43093
43093
|
decimals: ke.decimals,
|
|
43094
|
-
formatter:
|
|
43095
|
-
parser:
|
|
43094
|
+
formatter: G(ke.FIELD_NAME, "formatter"),
|
|
43095
|
+
parser: G(ke.FIELD_NAME, "parser"),
|
|
43096
43096
|
validator: (Ct, At) => {
|
|
43097
43097
|
if (At > Ct.max || At < Ct.min)
|
|
43098
43098
|
return Ct.message = D.Core.$t("ERX.InputValueOutOfRange") + `[${Ct.min} ~ ${Ct.max}]`, Promise.reject(new Error("Invalid value"));
|
|
@@ -43193,8 +43193,8 @@ const gS = Pt({
|
|
|
43193
43193
|
}, ne = (k) => {
|
|
43194
43194
|
var ie;
|
|
43195
43195
|
if (k.field && k.itemCode) {
|
|
43196
|
-
const Ee =
|
|
43197
|
-
if (
|
|
43196
|
+
const Ee = G(k.itemCode, "readOnly");
|
|
43197
|
+
if (G(k.itemCode, "allowEdit") === !1 || Ee === !0 && k.widgetType !== "antInputGroup") {
|
|
43198
43198
|
L.value[k.field] = L.value.getBackup()[k.field];
|
|
43199
43199
|
return;
|
|
43200
43200
|
}
|
|
@@ -43229,14 +43229,14 @@ const gS = Pt({
|
|
|
43229
43229
|
}, Me = (k) => {
|
|
43230
43230
|
_[k.itemCode] = !1, o("blur", { ...k, value: L.value[k.field], data: L.value, model: L.value, configId: t.configId, erFormHelper: t.erFormHelperProp });
|
|
43231
43231
|
}, be = (k) => {
|
|
43232
|
-
const ie =
|
|
43232
|
+
const ie = G(k.itemCode, "readOnly"), Ee = G(k.itemCode, "allowEdit");
|
|
43233
43233
|
ie === !0 || Ee === !1 || o("dropdownOpen", { ...k, value: L.value[k.field], data: L.value, model: L.value, configId: t.configId, erFormHelper: t.erFormHelperProp });
|
|
43234
43234
|
}, Ge = (k) => {
|
|
43235
43235
|
if (k) {
|
|
43236
|
-
const ie =
|
|
43236
|
+
const ie = G(k.itemCode, "readOnly"), Ee = G(k.itemCode, "allowEdit");
|
|
43237
43237
|
if (ie === !0 || Ee === !1)
|
|
43238
43238
|
return;
|
|
43239
|
-
_[k.itemCode] =
|
|
43239
|
+
_[k.itemCode] = G(k.itemCode, "readOnly") !== !0, k.opened && o("dropdownOpen", { ...k, value: L.value[k.field], data: L.value, model: L.value, configId: t.configId, erFormHelper: t.erFormHelperProp });
|
|
43240
43240
|
}
|
|
43241
43241
|
};
|
|
43242
43242
|
cr(() => {
|
|
@@ -43415,10 +43415,10 @@ const gS = Pt({
|
|
|
43415
43415
|
return [
|
|
43416
43416
|
g.WIDGET_TYPE === "antInputGroup" ? nr((fe(), Qe(B, Lr({
|
|
43417
43417
|
key: 0,
|
|
43418
|
-
"has-feedback":
|
|
43418
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
43419
43419
|
id: ((Zt = t.erFormHelperProp) == null ? void 0 : Zt.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43420
43420
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43421
|
-
tooltip:
|
|
43421
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43422
43422
|
ref_for: !0
|
|
43423
43423
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43424
43424
|
default: Te(() => [
|
|
@@ -43440,14 +43440,14 @@ const gS = Pt({
|
|
|
43440
43440
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43441
43441
|
ref_for: !0,
|
|
43442
43442
|
ref: rt,
|
|
43443
|
-
"allow-clear":
|
|
43444
|
-
disabled:
|
|
43445
|
-
readOnly:
|
|
43446
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
43447
|
-
style: wt({ width: "calc(100% - 24px)", color:
|
|
43443
|
+
"allow-clear": G(g.ITEM_CODE, "buttonEnable") && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
43444
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
43445
|
+
readOnly: G(g.ITEM_CODE, "readOnly") === !0,
|
|
43446
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
43447
|
+
style: wt({ width: "calc(100% - 24px)", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") + "!important" })
|
|
43448
43448
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onPressEnter", "onFocus", "onBlur", "name", "id", "allow-clear", "disabled", "readOnly", "placeholder", "style"])),
|
|
43449
43449
|
at(Ee, {
|
|
43450
|
-
disabled: !
|
|
43450
|
+
disabled: !G(g.ITEM_CODE, "buttonEnable"),
|
|
43451
43451
|
loading: ve[g.ITEM_CODE] === !0,
|
|
43452
43452
|
style: { height: "24px !important", width: "25px", "box-shadow": "none !important" },
|
|
43453
43453
|
onClick: (Xe) => Mt({ itemCode: g.ITEM_CODE, itemValue: L.value[g.ITEM_CODE], field: g.FIELD_NAME, value: L.value[g.ITEM_CODE], type: "select", data: L.value, itemConfig: g })
|
|
@@ -43472,10 +43472,10 @@ const gS = Pt({
|
|
|
43472
43472
|
default: Te(() => [
|
|
43473
43473
|
nt("span", {
|
|
43474
43474
|
class: zt(_t(g)),
|
|
43475
|
-
style: wt({ color:
|
|
43476
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43477
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43478
|
-
innerHTML:
|
|
43475
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43476
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43477
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43478
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43479
43479
|
}, null, 46, Qx)
|
|
43480
43480
|
]),
|
|
43481
43481
|
_: 2
|
|
@@ -43484,13 +43484,13 @@ const gS = Pt({
|
|
|
43484
43484
|
key: "0"
|
|
43485
43485
|
} : void 0
|
|
43486
43486
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
43487
|
-
[_r,
|
|
43487
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43488
43488
|
]) : g.WIDGET_TYPE === "erSelect" ? nr((fe(), Qe(B, Lr({
|
|
43489
43489
|
key: 1,
|
|
43490
|
-
"has-feedback":
|
|
43490
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
43491
43491
|
id: ((La = t.erFormHelperProp) == null ? void 0 : La.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43492
43492
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43493
|
-
tooltip:
|
|
43493
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43494
43494
|
ref_for: !0
|
|
43495
43495
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43496
43496
|
default: Te(() => {
|
|
@@ -43511,10 +43511,10 @@ const gS = Pt({
|
|
|
43511
43511
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43512
43512
|
ref_for: !0,
|
|
43513
43513
|
ref: rt,
|
|
43514
|
-
"allow-clear":
|
|
43515
|
-
readonly:
|
|
43516
|
-
disabled:
|
|
43517
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
43514
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
43515
|
+
readonly: G(g.ITEM_CODE, "readOnly") == !0,
|
|
43516
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
43517
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
43518
43518
|
"data-source": (Er = (Xe = t.erFormHelperProp.DropDownBindSource[t.configId.trim()]) == null ? void 0 : Xe[g.ITEM_CODE]) == null ? void 0 : Er.dataSource,
|
|
43519
43519
|
columns: (wr = (Cr = t.erFormHelperProp.DropDownBindSource[t.configId.trim()]) == null ? void 0 : Cr[g.ITEM_CODE]) == null ? void 0 : wr.columns,
|
|
43520
43520
|
options: {
|
|
@@ -43530,7 +43530,7 @@ const gS = Pt({
|
|
|
43530
43530
|
itemConfig: g,
|
|
43531
43531
|
erFormHelper: t.erFormHelperProp
|
|
43532
43532
|
},
|
|
43533
|
-
style: wt({ width: "100%", color:
|
|
43533
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor") })
|
|
43534
43534
|
}, null, 8, ["component-size", "modelValue", "onUpdate:modelValue", "onChange", "onFocus", "onBlur", "onDropdownOpen", "name", "id", "allow-clear", "readonly", "disabled", "placeholder", "data-source", "columns", "options", "style"]))
|
|
43535
43535
|
];
|
|
43536
43536
|
}),
|
|
@@ -43545,10 +43545,10 @@ const gS = Pt({
|
|
|
43545
43545
|
default: Te(() => [
|
|
43546
43546
|
nt("span", {
|
|
43547
43547
|
class: zt(_t(g)),
|
|
43548
|
-
style: wt({ color:
|
|
43549
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43550
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43551
|
-
innerHTML:
|
|
43548
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43549
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43550
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43551
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43552
43552
|
}, null, 46, jx)
|
|
43553
43553
|
]),
|
|
43554
43554
|
_: 2
|
|
@@ -43557,13 +43557,13 @@ const gS = Pt({
|
|
|
43557
43557
|
key: "0"
|
|
43558
43558
|
} : void 0
|
|
43559
43559
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
43560
|
-
[_r,
|
|
43560
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43561
43561
|
]) : g.WIDGET_TYPE === "erTreeSelect" || g.WIDGET_TYPE === "erMultiTreeSelect" ? nr((fe(), Qe(B, Lr({
|
|
43562
43562
|
key: 2,
|
|
43563
|
-
"has-feedback":
|
|
43563
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
43564
43564
|
id: ((ci = t.erFormHelperProp) == null ? void 0 : ci.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43565
43565
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43566
|
-
tooltip:
|
|
43566
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43567
43567
|
ref_for: !0
|
|
43568
43568
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43569
43569
|
default: Te(() => {
|
|
@@ -43584,10 +43584,10 @@ const gS = Pt({
|
|
|
43584
43584
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43585
43585
|
ref_for: !0,
|
|
43586
43586
|
ref: rt,
|
|
43587
|
-
"allow-clear":
|
|
43588
|
-
readonly:
|
|
43589
|
-
disabled:
|
|
43590
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
43587
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
43588
|
+
readonly: G(g.ITEM_CODE, "readOnly") == !0,
|
|
43589
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
43590
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
43591
43591
|
"tree-dropdown": !0,
|
|
43592
43592
|
multiple: g.WIDGET_TYPE === "erMultiTreeSelect",
|
|
43593
43593
|
"data-source": (Er = (Xe = t.erFormHelperProp.DropDownBindSource[t.configId.trim()]) == null ? void 0 : Xe[g.ITEM_CODE]) == null ? void 0 : Er.dataSource,
|
|
@@ -43605,7 +43605,7 @@ const gS = Pt({
|
|
|
43605
43605
|
itemConfig: g,
|
|
43606
43606
|
erFormHelper: t.erFormHelperProp
|
|
43607
43607
|
},
|
|
43608
|
-
style: wt({ width: "100%", color:
|
|
43608
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor") })
|
|
43609
43609
|
}, null, 8, ["component-size", "modelValue", "onUpdate:modelValue", "onChange", "onFocus", "onBlur", "onDropdownOpen", "name", "id", "allow-clear", "readonly", "disabled", "placeholder", "multiple", "data-source", "columns", "options", "style"]))
|
|
43610
43610
|
];
|
|
43611
43611
|
}),
|
|
@@ -43620,10 +43620,10 @@ const gS = Pt({
|
|
|
43620
43620
|
default: Te(() => [
|
|
43621
43621
|
nt("span", {
|
|
43622
43622
|
class: zt(_t(g)),
|
|
43623
|
-
style: wt({ color:
|
|
43624
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43625
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43626
|
-
innerHTML:
|
|
43623
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43624
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43625
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43626
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43627
43627
|
}, null, 46, qx)
|
|
43628
43628
|
]),
|
|
43629
43629
|
_: 2
|
|
@@ -43632,13 +43632,13 @@ const gS = Pt({
|
|
|
43632
43632
|
key: "0"
|
|
43633
43633
|
} : void 0
|
|
43634
43634
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
43635
|
-
[_r,
|
|
43635
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43636
43636
|
]) : g.WIDGET_TYPE === "erMultiSelect" ? nr((fe(), Qe(B, Lr({
|
|
43637
43637
|
key: 3,
|
|
43638
|
-
"has-feedback":
|
|
43638
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
43639
43639
|
id: ((ui = t.erFormHelperProp) == null ? void 0 : ui.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43640
43640
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43641
|
-
tooltip:
|
|
43641
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43642
43642
|
ref_for: !0
|
|
43643
43643
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43644
43644
|
default: Te(() => {
|
|
@@ -43659,10 +43659,10 @@ const gS = Pt({
|
|
|
43659
43659
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43660
43660
|
ref_for: !0,
|
|
43661
43661
|
ref: rt,
|
|
43662
|
-
"allow-clear":
|
|
43663
|
-
readonly:
|
|
43664
|
-
disabled:
|
|
43665
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
43662
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
43663
|
+
readonly: G(g.ITEM_CODE, "readOnly") == !0,
|
|
43664
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
43665
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
43666
43666
|
multiple: !0,
|
|
43667
43667
|
options: {
|
|
43668
43668
|
floatingFilter: J.value.floatingFilter,
|
|
@@ -43676,7 +43676,7 @@ const gS = Pt({
|
|
|
43676
43676
|
itemConfig: g,
|
|
43677
43677
|
erFormHelper: t.erFormHelperProp
|
|
43678
43678
|
},
|
|
43679
|
-
style: wt({ width: "100%", minHeight:
|
|
43679
|
+
style: wt({ width: "100%", minHeight: G(g.ITEM_CODE, "rows") > 1 ? (G(g.ITEM_CODE, "rows") * 24 + 5).toString() + "px" : void 0, color: G(g.ITEM_CODE, "TextForeColor") })
|
|
43680
43680
|
}, null, 8, ["component-size", "modelValue", "onUpdate:modelValue", "onChange", "onFocus", "onBlur", "onDropdownOpen", "name", "id", "allow-clear", "readonly", "disabled", "placeholder", "options", "style"]))
|
|
43681
43681
|
];
|
|
43682
43682
|
}),
|
|
@@ -43691,10 +43691,10 @@ const gS = Pt({
|
|
|
43691
43691
|
default: Te(() => [
|
|
43692
43692
|
nt("span", {
|
|
43693
43693
|
class: zt(_t(g)),
|
|
43694
|
-
style: wt({ color:
|
|
43695
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43696
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43697
|
-
}, xt(
|
|
43694
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43695
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43696
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME })
|
|
43697
|
+
}, xt(G(g.ITEM_CODE, "labelText")), 47, Kx)
|
|
43698
43698
|
]),
|
|
43699
43699
|
_: 2
|
|
43700
43700
|
}, 1032, ["title"])
|
|
@@ -43702,12 +43702,12 @@ const gS = Pt({
|
|
|
43702
43702
|
key: "0"
|
|
43703
43703
|
} : void 0
|
|
43704
43704
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
43705
|
-
[_r,
|
|
43705
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43706
43706
|
]) : g.WIDGET_TYPE === "antRadioGroup" ? nr((fe(), Qe(B, Lr({
|
|
43707
43707
|
key: 4,
|
|
43708
43708
|
id: ((di = t.erFormHelperProp) == null ? void 0 : di.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43709
43709
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43710
|
-
tooltip:
|
|
43710
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43711
43711
|
ref_for: !0
|
|
43712
43712
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43713
43713
|
default: Te(() => [
|
|
@@ -43715,7 +43715,7 @@ const gS = Pt({
|
|
|
43715
43715
|
value: L.value[g.FIELD_NAME],
|
|
43716
43716
|
"onUpdate:value": (Xe) => L.value[g.FIELD_NAME] = Xe,
|
|
43717
43717
|
onChange: (Xe) => ne({ itemCode: g.ITEM_CODE, field: g.FIELD_NAME, widgetType: "antRadioGroup" }),
|
|
43718
|
-
disabled:
|
|
43718
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1 || G(g.ITEM_CODE, "readOnly") == !0,
|
|
43719
43719
|
name: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43720
43720
|
id: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43721
43721
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
@@ -43723,7 +43723,7 @@ const gS = Pt({
|
|
|
43723
43723
|
ref: rt,
|
|
43724
43724
|
options: K(g.ITEM_CODE),
|
|
43725
43725
|
class: zt(`${R.value}-radio-group`),
|
|
43726
|
-
style: wt({ width: "100%", color:
|
|
43726
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
43727
43727
|
}, null, 8, ["value", "onUpdate:value", "onChange", "disabled", "name", "id", "options", "class", "style"]))
|
|
43728
43728
|
]),
|
|
43729
43729
|
_: 2
|
|
@@ -43733,22 +43733,22 @@ const gS = Pt({
|
|
|
43733
43733
|
fn: Te(() => [
|
|
43734
43734
|
nt("span", {
|
|
43735
43735
|
class: zt(_t(g)),
|
|
43736
|
-
style: wt({ color:
|
|
43737
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43738
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43739
|
-
innerHTML:
|
|
43736
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43737
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43738
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43739
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43740
43740
|
}, null, 46, Jx)
|
|
43741
43741
|
]),
|
|
43742
43742
|
key: "0"
|
|
43743
43743
|
} : void 0
|
|
43744
43744
|
]), 1040, ["id", "label-col", "tooltip"])), [
|
|
43745
|
-
[_r,
|
|
43745
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43746
43746
|
]) : g.WIDGET_TYPE === "antMultiSelect" ? nr((fe(), Qe(B, Lr({
|
|
43747
43747
|
key: 5,
|
|
43748
|
-
"has-feedback":
|
|
43748
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
43749
43749
|
id: ((fi = t.erFormHelperProp) == null ? void 0 : fi.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43750
43750
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43751
|
-
tooltip:
|
|
43751
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43752
43752
|
ref_for: !0
|
|
43753
43753
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43754
43754
|
default: Te(() => [
|
|
@@ -43763,20 +43763,20 @@ const gS = Pt({
|
|
|
43763
43763
|
Ge({ opened: Xe, itemCode: g.ITEM_CODE, field: g.FIELD_NAME, widgetType: "antMultiSelect" });
|
|
43764
43764
|
},
|
|
43765
43765
|
"show-search": !1,
|
|
43766
|
-
maxTagCount:
|
|
43766
|
+
maxTagCount: G(g.ITEM_CODE, "maxTagCount") || 5,
|
|
43767
43767
|
name: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43768
43768
|
id: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43769
43769
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43770
43770
|
ref_for: !0,
|
|
43771
43771
|
ref: rt,
|
|
43772
|
-
"allow-clear":
|
|
43773
|
-
disabled:
|
|
43774
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
43772
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
43773
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
43774
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
43775
43775
|
options: ct.value(g.ITEM_CODE),
|
|
43776
|
-
dropdownStyle: { pointerEvents:
|
|
43777
|
-
style: wt({ width: "100%", minHeight:
|
|
43776
|
+
dropdownStyle: { pointerEvents: G(g.ITEM_CODE, "readOnly") ? "none" : "auto" },
|
|
43777
|
+
style: wt({ width: "100%", minHeight: G(g.ITEM_CODE, "rows") > 1 ? (G(g.ITEM_CODE, "rows") * 24 + 5).toString() + "px" : void 0, color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
43778
43778
|
}, dr({ _: 2 }, [
|
|
43779
|
-
|
|
43779
|
+
G(g.ITEM_CODE, "readOnly") ? {
|
|
43780
43780
|
name: "tagRender",
|
|
43781
43781
|
fn: Te(({ label: Xe }) => [
|
|
43782
43782
|
at(A, { closable: !1 }, {
|
|
@@ -43801,10 +43801,10 @@ const gS = Pt({
|
|
|
43801
43801
|
default: Te(() => [
|
|
43802
43802
|
nt("span", {
|
|
43803
43803
|
class: zt(_t(g)),
|
|
43804
|
-
style: wt({ color:
|
|
43805
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43806
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43807
|
-
innerHTML:
|
|
43804
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43805
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43806
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43807
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43808
43808
|
}, null, 46, Zx)
|
|
43809
43809
|
]),
|
|
43810
43810
|
_: 2
|
|
@@ -43813,13 +43813,13 @@ const gS = Pt({
|
|
|
43813
43813
|
key: "0"
|
|
43814
43814
|
} : void 0
|
|
43815
43815
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
43816
|
-
[_r,
|
|
43816
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43817
43817
|
]) : g.WIDGET_TYPE === "erCheckboxGroup" ? nr((fe(), Qe(B, Lr({
|
|
43818
43818
|
key: 6,
|
|
43819
|
-
"has-feedback":
|
|
43819
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
43820
43820
|
id: (($t = t.erFormHelperProp) == null ? void 0 : $t.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43821
43821
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43822
|
-
tooltip:
|
|
43822
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43823
43823
|
ref_for: !0
|
|
43824
43824
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43825
43825
|
default: Te(() => {
|
|
@@ -43836,7 +43836,7 @@ const gS = Pt({
|
|
|
43836
43836
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43837
43837
|
ref_for: !0,
|
|
43838
43838
|
ref: rt,
|
|
43839
|
-
disabled:
|
|
43839
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1 || G(g.ITEM_CODE, "readOnly") == !0,
|
|
43840
43840
|
dataSource: K(g.ITEM_CODE),
|
|
43841
43841
|
valueField: (Er = (Xe = t.erFormHelperProp.DropDownBindSource[t.configId.trim()]) == null ? void 0 : Xe[g.ITEM_CODE]) == null ? void 0 : Er.dataValueField,
|
|
43842
43842
|
textField: (wr = (Cr = t.erFormHelperProp.DropDownBindSource[t.configId.trim()]) == null ? void 0 : Cr[g.ITEM_CODE]) == null ? void 0 : wr.dataTextField,
|
|
@@ -43851,7 +43851,7 @@ const gS = Pt({
|
|
|
43851
43851
|
itemConfig: g,
|
|
43852
43852
|
erFormHelper: t.erFormHelperProp
|
|
43853
43853
|
},
|
|
43854
|
-
style: wt({ width: "100%", minHeight:
|
|
43854
|
+
style: wt({ width: "100%", minHeight: G(g.ITEM_CODE, "rows") > 1 ? (G(g.ITEM_CODE, "rows") * 24 + 5).toString() + "px" : void 0, color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
43855
43855
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus", "onBlur", "name", "id", "disabled", "dataSource", "valueField", "textField", "options", "style"]))
|
|
43856
43856
|
];
|
|
43857
43857
|
}),
|
|
@@ -43866,10 +43866,10 @@ const gS = Pt({
|
|
|
43866
43866
|
default: Te(() => [
|
|
43867
43867
|
nt("span", {
|
|
43868
43868
|
class: zt(_t(g)),
|
|
43869
|
-
style: wt({ color:
|
|
43870
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43871
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43872
|
-
innerHTML:
|
|
43869
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43870
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43871
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43872
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43873
43873
|
}, null, 46, eS)
|
|
43874
43874
|
]),
|
|
43875
43875
|
_: 2
|
|
@@ -43878,13 +43878,13 @@ const gS = Pt({
|
|
|
43878
43878
|
key: "0"
|
|
43879
43879
|
} : void 0
|
|
43880
43880
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
43881
|
-
[_r,
|
|
43881
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43882
43882
|
]) : g.WIDGET_TYPE === "erRadioGroup" ? nr((fe(), Qe(B, Lr({
|
|
43883
43883
|
key: 7,
|
|
43884
|
-
"has-feedback":
|
|
43884
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
43885
43885
|
id: ((lr = t.erFormHelperProp) == null ? void 0 : lr.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43886
43886
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43887
|
-
tooltip:
|
|
43887
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43888
43888
|
ref_for: !0
|
|
43889
43889
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43890
43890
|
default: Te(() => {
|
|
@@ -43901,7 +43901,7 @@ const gS = Pt({
|
|
|
43901
43901
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43902
43902
|
ref_for: !0,
|
|
43903
43903
|
ref: rt,
|
|
43904
|
-
disabled:
|
|
43904
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1 || G(g.ITEM_CODE, "readOnly") == !0,
|
|
43905
43905
|
dataSource: K(g.ITEM_CODE),
|
|
43906
43906
|
valueField: (Er = (Xe = t.erFormHelperProp.DropDownBindSource[t.configId.trim()]) == null ? void 0 : Xe[g.ITEM_CODE]) == null ? void 0 : Er.dataValueField,
|
|
43907
43907
|
textField: (wr = (Cr = t.erFormHelperProp.DropDownBindSource[t.configId.trim()]) == null ? void 0 : Cr[g.ITEM_CODE]) == null ? void 0 : wr.dataTextField,
|
|
@@ -43916,7 +43916,7 @@ const gS = Pt({
|
|
|
43916
43916
|
itemConfig: g,
|
|
43917
43917
|
erFormHelper: t.erFormHelperProp
|
|
43918
43918
|
},
|
|
43919
|
-
style: wt({ width: "100%", minHeight:
|
|
43919
|
+
style: wt({ width: "100%", minHeight: G(g.ITEM_CODE, "rows") > 1 ? (G(g.ITEM_CODE, "rows") * 24 + 5).toString() + "px" : void 0, color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
43920
43920
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onFocus", "onBlur", "name", "id", "disabled", "dataSource", "valueField", "textField", "options", "style"]))
|
|
43921
43921
|
];
|
|
43922
43922
|
}),
|
|
@@ -43931,10 +43931,10 @@ const gS = Pt({
|
|
|
43931
43931
|
default: Te(() => [
|
|
43932
43932
|
nt("span", {
|
|
43933
43933
|
class: zt(_t(g)),
|
|
43934
|
-
style: wt({ color:
|
|
43935
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43936
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43937
|
-
innerHTML:
|
|
43934
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43935
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43936
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43937
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43938
43938
|
}, null, 46, tS)
|
|
43939
43939
|
]),
|
|
43940
43940
|
_: 2
|
|
@@ -43943,12 +43943,12 @@ const gS = Pt({
|
|
|
43943
43943
|
key: "0"
|
|
43944
43944
|
} : void 0
|
|
43945
43945
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
43946
|
-
[_r,
|
|
43946
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
43947
43947
|
]) : g.WIDGET_TYPE === "antTextarea" ? nr((fe(), Qe(B, Lr({
|
|
43948
43948
|
key: 8,
|
|
43949
43949
|
id: ((bt = t.erFormHelperProp) == null ? void 0 : bt.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
43950
43950
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
43951
|
-
tooltip:
|
|
43951
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
43952
43952
|
ref_for: !0
|
|
43953
43953
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
43954
43954
|
default: Te(() => [
|
|
@@ -43965,15 +43965,15 @@ const gS = Pt({
|
|
|
43965
43965
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
43966
43966
|
ref_for: !0,
|
|
43967
43967
|
ref: rt,
|
|
43968
|
-
readonly:
|
|
43969
|
-
disabled:
|
|
43970
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
43971
|
-
"allow-clear":
|
|
43972
|
-
mask:
|
|
43973
|
-
rows:
|
|
43974
|
-
"show-count":
|
|
43975
|
-
spellcheck:
|
|
43976
|
-
style: wt({ width: "100%", height:
|
|
43968
|
+
readonly: G(g.ITEM_CODE, "readOnly") === !0,
|
|
43969
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
43970
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
43971
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
43972
|
+
mask: G(g.ITEM_CODE, "mask"),
|
|
43973
|
+
rows: G(g.ITEM_CODE, "rows"),
|
|
43974
|
+
"show-count": G(g.ITEM_CODE, "showCount"),
|
|
43975
|
+
spellcheck: G(g.ITEM_CODE, "spellCheck") === !0,
|
|
43976
|
+
style: wt({ width: "100%", height: G(g.ITEM_CODE, "rows") > 1 ? (G(g.ITEM_CODE, "rows") * 24 + 5).toString() + "px" : void 0, color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
43977
43977
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onPressEnter", "onFocus", "onBlur", "name", "id", "readonly", "disabled", "placeholder", "allow-clear", "mask", "rows", "show-count", "spellcheck", "style"]))
|
|
43978
43978
|
]),
|
|
43979
43979
|
_: 2
|
|
@@ -43987,10 +43987,10 @@ const gS = Pt({
|
|
|
43987
43987
|
default: Te(() => [
|
|
43988
43988
|
nt("span", {
|
|
43989
43989
|
class: zt(_t(g)),
|
|
43990
|
-
style: wt({ color:
|
|
43991
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43992
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
43993
|
-
innerHTML:
|
|
43990
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
43991
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43992
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
43993
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
43994
43994
|
}, null, 46, rS)
|
|
43995
43995
|
]),
|
|
43996
43996
|
_: 2
|
|
@@ -43999,12 +43999,12 @@ const gS = Pt({
|
|
|
43999
43999
|
key: "0"
|
|
44000
44000
|
} : void 0
|
|
44001
44001
|
]), 1040, ["id", "label-col", "tooltip"])), [
|
|
44002
|
-
[_r,
|
|
44002
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44003
44003
|
]) : g.WIDGET_TYPE === "erMemoEditor" ? nr((fe(), Qe(B, Lr({
|
|
44004
44004
|
key: 9,
|
|
44005
44005
|
id: ((Yt = t.erFormHelperProp) == null ? void 0 : Yt.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44006
44006
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44007
|
-
tooltip:
|
|
44007
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
44008
44008
|
ref_for: !0
|
|
44009
44009
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
44010
44010
|
default: Te(() => [
|
|
@@ -44020,13 +44020,13 @@ const gS = Pt({
|
|
|
44020
44020
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
44021
44021
|
ref_for: !0,
|
|
44022
44022
|
ref: rt,
|
|
44023
|
-
readonly:
|
|
44024
|
-
disabled:
|
|
44025
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
44026
|
-
mask:
|
|
44027
|
-
spellcheck:
|
|
44028
|
-
rows:
|
|
44029
|
-
style: wt({ width: "100%", color:
|
|
44023
|
+
readonly: G(g.ITEM_CODE, "readOnly") === !0,
|
|
44024
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
44025
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
44026
|
+
mask: G(g.ITEM_CODE, "mask"),
|
|
44027
|
+
spellcheck: G(g.ITEM_CODE, "spellCheck") === !0,
|
|
44028
|
+
rows: G(g.ITEM_CODE, "rows"),
|
|
44029
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
44030
44030
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange", "onPressEnter", "onFocus", "onBlur", "name", "id", "readonly", "disabled", "placeholder", "mask", "spellcheck", "rows", "style"]))
|
|
44031
44031
|
]),
|
|
44032
44032
|
_: 2
|
|
@@ -44040,10 +44040,10 @@ const gS = Pt({
|
|
|
44040
44040
|
default: Te(() => [
|
|
44041
44041
|
nt("span", {
|
|
44042
44042
|
class: zt(_t(g)),
|
|
44043
|
-
style: wt({ color:
|
|
44044
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44045
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44046
|
-
innerHTML:
|
|
44043
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44044
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44045
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44046
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
44047
44047
|
}, null, 46, aS)
|
|
44048
44048
|
]),
|
|
44049
44049
|
_: 2
|
|
@@ -44052,12 +44052,12 @@ const gS = Pt({
|
|
|
44052
44052
|
key: "0"
|
|
44053
44053
|
} : void 0
|
|
44054
44054
|
]), 1040, ["id", "label-col", "tooltip"])), [
|
|
44055
|
-
[_r,
|
|
44055
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44056
44056
|
]) : g.WIDGET_TYPE === "scriptEditor" ? nr((fe(), Qe(B, Lr({
|
|
44057
44057
|
key: 10,
|
|
44058
44058
|
id: ((mr = t.erFormHelperProp) == null ? void 0 : mr.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44059
44059
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44060
|
-
tooltip:
|
|
44060
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
44061
44061
|
ref_for: !0
|
|
44062
44062
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
44063
44063
|
default: Te(() => [
|
|
@@ -44077,14 +44077,14 @@ const gS = Pt({
|
|
|
44077
44077
|
"indent-with-tab": !0,
|
|
44078
44078
|
tabSize: 2,
|
|
44079
44079
|
extensions: [it(nl)()],
|
|
44080
|
-
readonly:
|
|
44081
|
-
disabled:
|
|
44082
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
44083
|
-
mask:
|
|
44084
|
-
maxlength:
|
|
44085
|
-
"show-count":
|
|
44086
|
-
spellcheck:
|
|
44087
|
-
style: wt({ width: "100%", height:
|
|
44080
|
+
readonly: G(g.ITEM_CODE, "readOnly") === !0,
|
|
44081
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
44082
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
44083
|
+
mask: G(g.ITEM_CODE, "mask"),
|
|
44084
|
+
maxlength: G(g.ITEM_CODE, "maxlength"),
|
|
44085
|
+
"show-count": G(g.ITEM_CODE, "showCount"),
|
|
44086
|
+
spellcheck: G(g.ITEM_CODE, "spellCheck"),
|
|
44087
|
+
style: wt({ width: "100%", height: G(g.ITEM_CODE, "rows") > 1 ? (G(g.ITEM_CODE, "rows") * 24 + 5).toString() + "px" : "24px", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
44088
44088
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onReady", "onChange", "onPressEnter", "onFocus", "onBlur", "name", "id", "extensions", "readonly", "disabled", "placeholder", "mask", "maxlength", "show-count", "spellcheck", "style"]))
|
|
44089
44089
|
]),
|
|
44090
44090
|
_: 2
|
|
@@ -44094,21 +44094,21 @@ const gS = Pt({
|
|
|
44094
44094
|
fn: Te(() => [
|
|
44095
44095
|
nt("span", {
|
|
44096
44096
|
class: zt(_t(g)),
|
|
44097
|
-
style: wt({ color:
|
|
44098
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44099
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44100
|
-
innerHTML:
|
|
44097
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44098
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44099
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44100
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
44101
44101
|
}, null, 46, iS)
|
|
44102
44102
|
]),
|
|
44103
44103
|
key: "0"
|
|
44104
44104
|
} : void 0
|
|
44105
44105
|
]), 1040, ["id", "label-col", "tooltip"])), [
|
|
44106
|
-
[_r,
|
|
44106
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44107
44107
|
]) : g.WIDGET_TYPE === "antCheckbox" ? nr((fe(), Qe(B, {
|
|
44108
44108
|
key: 11,
|
|
44109
44109
|
id: ((Zr = t.erFormHelperProp) == null ? void 0 : Zr.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44110
44110
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44111
|
-
tooltip:
|
|
44111
|
+
tooltip: G(g.ITEM_CODE, "placeholder")
|
|
44112
44112
|
}, dr({
|
|
44113
44113
|
default: Te(() => [
|
|
44114
44114
|
(fe(), Qe(He, {
|
|
@@ -44120,7 +44120,7 @@ const gS = Pt({
|
|
|
44120
44120
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
44121
44121
|
ref_for: !0,
|
|
44122
44122
|
ref: rt,
|
|
44123
|
-
disabled:
|
|
44123
|
+
disabled: G(g.ITEM_CODE, "readOnly") === !0 || G(g.ITEM_CODE, "allowEdit") === !1
|
|
44124
44124
|
}, {
|
|
44125
44125
|
default: Te(() => [
|
|
44126
44126
|
pr(xt(g.HEAD_TEXTVISIBLE !== "1" ? g.COL_CAPTION : ""), 1)
|
|
@@ -44139,10 +44139,10 @@ const gS = Pt({
|
|
|
44139
44139
|
default: Te(() => [
|
|
44140
44140
|
nt("span", {
|
|
44141
44141
|
class: zt(_t(g)),
|
|
44142
|
-
style: wt({ color:
|
|
44143
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44144
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44145
|
-
innerHTML:
|
|
44142
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44143
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44144
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44145
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
44146
44146
|
}, null, 46, nS)
|
|
44147
44147
|
]),
|
|
44148
44148
|
_: 2
|
|
@@ -44151,12 +44151,12 @@ const gS = Pt({
|
|
|
44151
44151
|
key: "0"
|
|
44152
44152
|
} : void 0
|
|
44153
44153
|
]), 1032, ["id", "label-col", "tooltip"])), [
|
|
44154
|
-
[_r,
|
|
44154
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44155
44155
|
]) : g.WIDGET_TYPE === "antSwitch" ? nr((fe(), Qe(B, {
|
|
44156
44156
|
key: 12,
|
|
44157
44157
|
id: ((ur = t.erFormHelperProp) == null ? void 0 : ur.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44158
44158
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44159
|
-
tooltip:
|
|
44159
|
+
tooltip: G(g.ITEM_CODE, "placeholder")
|
|
44160
44160
|
}, dr({
|
|
44161
44161
|
default: Te(() => [
|
|
44162
44162
|
(fe(), Qe(Oe, {
|
|
@@ -44173,7 +44173,7 @@ const gS = Pt({
|
|
|
44173
44173
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
44174
44174
|
ref_for: !0,
|
|
44175
44175
|
ref: rt,
|
|
44176
|
-
disabled:
|
|
44176
|
+
disabled: G(g.ITEM_CODE, "readOnly") === !0 || G(g.ITEM_CODE, "allowEdit") === !1
|
|
44177
44177
|
}, {
|
|
44178
44178
|
default: Te(() => [
|
|
44179
44179
|
pr(xt(g.HEAD_TEXTVISIBLE !== "1" ? g.COL_CAPTION : ""), 1)
|
|
@@ -44192,10 +44192,10 @@ const gS = Pt({
|
|
|
44192
44192
|
default: Te(() => [
|
|
44193
44193
|
nt("span", {
|
|
44194
44194
|
class: zt(_t(g)),
|
|
44195
|
-
style: wt({ color:
|
|
44196
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44197
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44198
|
-
}, xt(
|
|
44195
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44196
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44197
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME })
|
|
44198
|
+
}, xt(G(g.ITEM_CODE, "labelText")), 47, oS)
|
|
44199
44199
|
]),
|
|
44200
44200
|
_: 2
|
|
44201
44201
|
}, 1032, ["title"])
|
|
@@ -44203,7 +44203,7 @@ const gS = Pt({
|
|
|
44203
44203
|
key: "0"
|
|
44204
44204
|
} : void 0
|
|
44205
44205
|
]), 1032, ["id", "label-col", "tooltip"])), [
|
|
44206
|
-
[_r,
|
|
44206
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44207
44207
|
]) : g.WIDGET_TYPE === "antButton" ? nr((fe(), Qe(B, { key: 13 }, {
|
|
44208
44208
|
default: Te(() => [
|
|
44209
44209
|
nt("div", {
|
|
@@ -44217,12 +44217,12 @@ const gS = Pt({
|
|
|
44217
44217
|
ref: rt,
|
|
44218
44218
|
icon: g.ITEM_CODE === "erQueryButton" ? gt(it(Lo)) : void 0,
|
|
44219
44219
|
type: g.ITEM_CODE === "erQueryButton" ? "primary" : "default",
|
|
44220
|
-
disabled:
|
|
44221
|
-
style: wt(g.ITEM_CODE === "erQueryButton" ? { width: "auto" } : { width: "100%", height: "24px !important", boxShadow: "none !important", color:
|
|
44220
|
+
disabled: G(g.ITEM_CODE, "readOnly") === !0 || G(g.ITEM_CODE, "allowEdit") === !1,
|
|
44221
|
+
style: wt(g.ITEM_CODE === "erQueryButton" ? { width: "auto" } : { width: "100%", height: "24px !important", boxShadow: "none !important", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") }),
|
|
44222
44222
|
onClick: (Xe) => Mt({ itemCode: g.ITEM_CODE, type: "normal", data: L.value, itemConfig: g })
|
|
44223
44223
|
}, {
|
|
44224
44224
|
default: Te(() => [
|
|
44225
|
-
pr(xt(
|
|
44225
|
+
pr(xt(G(g.ITEM_CODE, "labelText")), 1)
|
|
44226
44226
|
]),
|
|
44227
44227
|
_: 2
|
|
44228
44228
|
}, 1032, ["name", "id", "icon", "type", "disabled", "style", "onClick"]))
|
|
@@ -44230,13 +44230,13 @@ const gS = Pt({
|
|
|
44230
44230
|
]),
|
|
44231
44231
|
_: 2
|
|
44232
44232
|
}, 1536)), [
|
|
44233
|
-
[_r,
|
|
44233
|
+
[_r, G(g.ITEM_CODE, "visible") && (g.ITEM_CODE !== "erQueryButton" || l.value === !1)]
|
|
44234
44234
|
]) : g.WIDGET_TYPE === "antInputNumber" ? nr((fe(), Qe(B, Lr({
|
|
44235
44235
|
key: 14,
|
|
44236
44236
|
id: ((ga = t.erFormHelperProp) == null ? void 0 : ga.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44237
44237
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44238
|
-
"has-feedback":
|
|
44239
|
-
tooltip:
|
|
44238
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
44239
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
44240
44240
|
ref_for: !0
|
|
44241
44241
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
44242
44242
|
default: Te(() => [
|
|
@@ -44262,17 +44262,17 @@ const gS = Pt({
|
|
|
44262
44262
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
44263
44263
|
ref_for: !0,
|
|
44264
44264
|
ref: rt,
|
|
44265
|
-
readonly:
|
|
44266
|
-
disabled:
|
|
44267
|
-
controls:
|
|
44268
|
-
step:
|
|
44269
|
-
addonAfter:
|
|
44270
|
-
addonBefore:
|
|
44271
|
-
prefix:
|
|
44272
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
44273
|
-
formatter:
|
|
44274
|
-
parser:
|
|
44275
|
-
style: wt({ width: "100%", color:
|
|
44265
|
+
readonly: G(g.ITEM_CODE, "readOnly") === !0,
|
|
44266
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
44267
|
+
controls: G(g.ITEM_CODE, "controls"),
|
|
44268
|
+
step: G(g.ITEM_CODE, "step") || 1,
|
|
44269
|
+
addonAfter: G(g.ITEM_CODE, "addonAfter"),
|
|
44270
|
+
addonBefore: G(g.ITEM_CODE, "addonBefore"),
|
|
44271
|
+
prefix: G(g.ITEM_CODE, "prefix"),
|
|
44272
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
44273
|
+
formatter: G(g.ITEM_CODE, "formatter"),
|
|
44274
|
+
parser: G(g.ITEM_CODE, "parser"),
|
|
44275
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
44276
44276
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onPressEnter", "onFocus", "onBlur", "onInput", "onStep", "name", "id", "readonly", "disabled", "controls", "step", "addonAfter", "addonBefore", "prefix", "placeholder", "formatter", "parser", "style"]))
|
|
44277
44277
|
]),
|
|
44278
44278
|
_: 2
|
|
@@ -44286,10 +44286,10 @@ const gS = Pt({
|
|
|
44286
44286
|
default: Te(() => [
|
|
44287
44287
|
nt("span", {
|
|
44288
44288
|
class: zt(_t(g)),
|
|
44289
|
-
style: wt({ color:
|
|
44290
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44291
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44292
|
-
innerHTML:
|
|
44289
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44290
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44291
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44292
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
44293
44293
|
}, null, 46, lS)
|
|
44294
44294
|
]),
|
|
44295
44295
|
_: 2
|
|
@@ -44298,13 +44298,13 @@ const gS = Pt({
|
|
|
44298
44298
|
key: "0"
|
|
44299
44299
|
} : void 0
|
|
44300
44300
|
]), 1040, ["id", "label-col", "has-feedback", "tooltip"])), [
|
|
44301
|
-
[_r,
|
|
44301
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44302
44302
|
]) : ["antDateTimePicker", "antDatePicker", "antMonthPicker", "antYearPicker"].includes(g.WIDGET_TYPE) ? nr((fe(), Qe(B, Lr({
|
|
44303
44303
|
key: 15,
|
|
44304
|
-
"has-feedback":
|
|
44304
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
44305
44305
|
id: ((Nr = t.erFormHelperProp) == null ? void 0 : Nr.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44306
44306
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44307
|
-
tooltip:
|
|
44307
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
44308
44308
|
ref_for: !0
|
|
44309
44309
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
44310
44310
|
default: Te(() => [
|
|
@@ -44321,16 +44321,16 @@ const gS = Pt({
|
|
|
44321
44321
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
44322
44322
|
ref_for: !0,
|
|
44323
44323
|
ref: rt,
|
|
44324
|
-
"allow-clear":
|
|
44325
|
-
inputReadOnly:
|
|
44326
|
-
open:
|
|
44327
|
-
disabled:
|
|
44328
|
-
"disabled-date":
|
|
44329
|
-
"disabled-time":
|
|
44330
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
44331
|
-
"show-time":
|
|
44332
|
-
format:
|
|
44333
|
-
style: wt({ width: "100%", color:
|
|
44324
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
44325
|
+
inputReadOnly: G(g.ITEM_CODE, "readOnly") === !0 || G(g.ITEM_CODE, "inputReadOnly") === !0 || G(g.ITEM_CODE, "dateInputReadOnly") === !0,
|
|
44326
|
+
open: G(g.ITEM_CODE, "readOnly") === !0 ? !1 : void 0,
|
|
44327
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
44328
|
+
"disabled-date": G(g.ITEM_CODE, "disabledDate"),
|
|
44329
|
+
"disabled-time": G(g.ITEM_CODE, "disabledTime"),
|
|
44330
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
44331
|
+
"show-time": G(g.ITEM_CODE, "showTime"),
|
|
44332
|
+
format: G(g.ITEM_CODE, "format"),
|
|
44333
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
44334
44334
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onFocus", "onBlur", "picker", "name", "id", "allow-clear", "inputReadOnly", "open", "disabled", "disabled-date", "disabled-time", "placeholder", "show-time", "format", "style"]))
|
|
44335
44335
|
]),
|
|
44336
44336
|
_: 2
|
|
@@ -44339,15 +44339,15 @@ const gS = Pt({
|
|
|
44339
44339
|
name: "label",
|
|
44340
44340
|
fn: Te(() => [
|
|
44341
44341
|
at(Tt, {
|
|
44342
|
-
title: I(g, it(D).Core.getDateTimeFormatString(L.value[g.FIELD_NAME],
|
|
44342
|
+
title: I(g, it(D).Core.getDateTimeFormatString(L.value[g.FIELD_NAME], G(g.ITEM_CODE, "format")))
|
|
44343
44343
|
}, {
|
|
44344
44344
|
default: Te(() => [
|
|
44345
44345
|
nt("span", {
|
|
44346
44346
|
class: zt(_t(g)),
|
|
44347
|
-
style: wt({ color:
|
|
44348
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44349
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44350
|
-
innerHTML:
|
|
44347
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44348
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44349
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44350
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
44351
44351
|
}, null, 46, sS)
|
|
44352
44352
|
]),
|
|
44353
44353
|
_: 2
|
|
@@ -44356,13 +44356,13 @@ const gS = Pt({
|
|
|
44356
44356
|
key: "0"
|
|
44357
44357
|
} : void 0
|
|
44358
44358
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
44359
|
-
[_r,
|
|
44359
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44360
44360
|
]) : ["antTimePicker"].includes(g.WIDGET_TYPE) ? nr((fe(), Qe(B, Lr({
|
|
44361
44361
|
key: 16,
|
|
44362
|
-
"has-feedback":
|
|
44362
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
44363
44363
|
id: ((Sr = t.erFormHelperProp) == null ? void 0 : Sr.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44364
44364
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44365
|
-
tooltip:
|
|
44365
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
44366
44366
|
ref_for: !0
|
|
44367
44367
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
44368
44368
|
default: Te(() => [
|
|
@@ -44378,13 +44378,13 @@ const gS = Pt({
|
|
|
44378
44378
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
44379
44379
|
ref_for: !0,
|
|
44380
44380
|
ref: rt,
|
|
44381
|
-
"allow-clear":
|
|
44382
|
-
inputReadOnly:
|
|
44383
|
-
open:
|
|
44384
|
-
disabled:
|
|
44385
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
44386
|
-
format:
|
|
44387
|
-
style: wt({ width: "100%", color:
|
|
44381
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
44382
|
+
inputReadOnly: G(g.ITEM_CODE, "readOnly") === !0 || G(g.ITEM_CODE, "inputReadOnly") === !0 || G(g.ITEM_CODE, "dateInputReadOnly") === !0,
|
|
44383
|
+
open: G(g.ITEM_CODE, "readOnly") === !0 ? !1 : void 0,
|
|
44384
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
44385
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
44386
|
+
format: G(g.ITEM_CODE, "format"),
|
|
44387
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
44388
44388
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onFocus", "onBlur", "name", "id", "allow-clear", "inputReadOnly", "open", "disabled", "placeholder", "format", "style"]))
|
|
44389
44389
|
]),
|
|
44390
44390
|
_: 2
|
|
@@ -44393,15 +44393,15 @@ const gS = Pt({
|
|
|
44393
44393
|
name: "label",
|
|
44394
44394
|
fn: Te(() => [
|
|
44395
44395
|
at(Tt, {
|
|
44396
|
-
title: I(g, it(D).Core.getDateTimeFormatString(L.value[g.FIELD_NAME],
|
|
44396
|
+
title: I(g, it(D).Core.getDateTimeFormatString(L.value[g.FIELD_NAME], G(g.ITEM_CODE, "format")))
|
|
44397
44397
|
}, {
|
|
44398
44398
|
default: Te(() => [
|
|
44399
44399
|
nt("span", {
|
|
44400
44400
|
class: zt(_t(g)),
|
|
44401
|
-
style: wt({ color:
|
|
44402
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44403
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44404
|
-
innerHTML:
|
|
44401
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44402
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44403
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44404
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
44405
44405
|
}, null, 46, cS)
|
|
44406
44406
|
]),
|
|
44407
44407
|
_: 2
|
|
@@ -44410,29 +44410,29 @@ const gS = Pt({
|
|
|
44410
44410
|
key: "0"
|
|
44411
44411
|
} : void 0
|
|
44412
44412
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
44413
|
-
[_r,
|
|
44413
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44414
44414
|
]) : g.WIDGET_TYPE === "label" ? nr((fe(), lt("div", {
|
|
44415
44415
|
key: 17,
|
|
44416
44416
|
id: ((fr = t.erFormHelperProp) == null ? void 0 : fr.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44417
44417
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44418
|
-
style: wt({ textAlign: g.HALIGNMENT === "Near" ? "left" : g.HALIGNMENT === "Far" ? "right" : "center", color:
|
|
44419
|
-
}, xt(g.HEAD_TEXTVISIBLE === "1" ?
|
|
44420
|
-
[_r,
|
|
44418
|
+
style: wt({ textAlign: g.HALIGNMENT === "Near" ? "left" : g.HALIGNMENT === "Far" ? "right" : "center", color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") })
|
|
44419
|
+
}, xt(g.HEAD_TEXTVISIBLE === "1" ? G(g.ITEM_CODE, "labelText") : l.value ? G(g.ITEM_CODE, "labelText") + "(dev mode)" : ""), 13, uS)), [
|
|
44420
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44421
44421
|
]) : g.WIDGET_TYPE === "antDivider" ? nr((fe(), lt("div", {
|
|
44422
44422
|
key: 18,
|
|
44423
44423
|
id: ((ke = t.erFormHelperProp) == null ? void 0 : ke.FormId) + e.configId + g.ITEM_CODE + "_span"
|
|
44424
44424
|
}, [
|
|
44425
44425
|
at(dt, {
|
|
44426
44426
|
orientation: g.HALIGNMENT === "Near" ? "left" : g.HALIGNMENT === "Far" ? "right" : "center",
|
|
44427
|
-
style: wt({ width: "100%", color:
|
|
44427
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "LabelForeColor"), borderColor: G(g.ITEM_CODE, "LabelBackColor") })
|
|
44428
44428
|
}, {
|
|
44429
44429
|
default: Te(() => [
|
|
44430
|
-
pr(xt(g.HEAD_TEXTVISIBLE === "1" ?
|
|
44430
|
+
pr(xt(g.HEAD_TEXTVISIBLE === "1" ? G(g.ITEM_CODE, "labelText") : ""), 1)
|
|
44431
44431
|
]),
|
|
44432
44432
|
_: 2
|
|
44433
44433
|
}, 1032, ["orientation", "style"])
|
|
44434
44434
|
], 8, dS)), [
|
|
44435
|
-
[_r,
|
|
44435
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44436
44436
|
]) : g.WIDGET_TYPE === "NA" ? (fe(), lt("div", {
|
|
44437
44437
|
key: 19,
|
|
44438
44438
|
id: ((Ia = t.erFormHelperProp) == null ? void 0 : Ia.FormId) + e.configId + g.ITEM_CODE + g.FIELD_NAME,
|
|
@@ -44442,10 +44442,10 @@ const gS = Pt({
|
|
|
44442
44442
|
nt("span", null, null, -1)
|
|
44443
44443
|
]), 8, fS)) : nr((fe(), Qe(B, Lr({
|
|
44444
44444
|
key: 20,
|
|
44445
|
-
"has-feedback":
|
|
44445
|
+
"has-feedback": G(g.ITEM_CODE, "hasFeedback") !== !1,
|
|
44446
44446
|
id: ((Qt = t.erFormHelperProp) == null ? void 0 : Qt.FormId) + e.configId + g.ITEM_CODE + "_span",
|
|
44447
44447
|
"label-col": g.labelWidth ? { style: { width: `${g.labelWidth}px` } } : void 0,
|
|
44448
|
-
tooltip:
|
|
44448
|
+
tooltip: G(g.ITEM_CODE, "placeholder"),
|
|
44449
44449
|
ref_for: !0
|
|
44450
44450
|
}, it(m).validateInfos[g.ITEM_CODE]), dr({
|
|
44451
44451
|
default: Te(() => [
|
|
@@ -44468,16 +44468,16 @@ const gS = Pt({
|
|
|
44468
44468
|
key: t.erFormHelperProp.FormId + g.FUNCTION_ID + g.ITEM_CODE,
|
|
44469
44469
|
ref_for: !0,
|
|
44470
44470
|
ref: rt,
|
|
44471
|
-
readOnly:
|
|
44472
|
-
disabled:
|
|
44473
|
-
addonAfter:
|
|
44474
|
-
addonBefore:
|
|
44475
|
-
"allow-clear":
|
|
44476
|
-
prefix:
|
|
44477
|
-
suffix:
|
|
44478
|
-
placeholder: g.HEAD_TEXTVISIBLE === "0" ?
|
|
44479
|
-
spellcheck:
|
|
44480
|
-
style: wt({ width: "100%", color:
|
|
44471
|
+
readOnly: G(g.ITEM_CODE, "readOnly") === !0,
|
|
44472
|
+
disabled: G(g.ITEM_CODE, "allowEdit") === !1,
|
|
44473
|
+
addonAfter: G(g.ITEM_CODE, "addonAfter"),
|
|
44474
|
+
addonBefore: G(g.ITEM_CODE, "addonBefore"),
|
|
44475
|
+
"allow-clear": G(g.ITEM_CODE, "readOnly") !== !0 && G(g.ITEM_CODE, "allowClear") !== !1,
|
|
44476
|
+
prefix: G(g.ITEM_CODE, "prefix"),
|
|
44477
|
+
suffix: G(g.ITEM_CODE, "suffix"),
|
|
44478
|
+
placeholder: g.HEAD_TEXTVISIBLE === "0" ? G(g.ITEM_CODE, "placeholder") : void 0,
|
|
44479
|
+
spellcheck: G(g.ITEM_CODE, "spellcheck"),
|
|
44480
|
+
style: wt({ width: "100%", color: G(g.ITEM_CODE, "TextForeColor"), backgroundColor: G(g.ITEM_CODE, "TextBackColor") })
|
|
44481
44481
|
}, null, 8, ["value", "onUpdate:value", "onChange", "onPressEnter", "onFocus", "onBlur", "onInput", "name", "id", "readOnly", "disabled", "addonAfter", "addonBefore", "allow-clear", "prefix", "suffix", "placeholder", "spellcheck", "style"]))
|
|
44482
44482
|
]),
|
|
44483
44483
|
_: 2
|
|
@@ -44491,10 +44491,10 @@ const gS = Pt({
|
|
|
44491
44491
|
default: Te(() => [
|
|
44492
44492
|
nt("span", {
|
|
44493
44493
|
class: zt(_t(g)),
|
|
44494
|
-
style: wt({ color:
|
|
44495
|
-
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44496
|
-
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption:
|
|
44497
|
-
innerHTML:
|
|
44494
|
+
style: wt({ color: G(g.ITEM_CODE, "LabelForeColor"), backgroundColor: G(g.ITEM_CODE, "LabelBackColor") }),
|
|
44495
|
+
onClick: (Xe) => Ue({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44496
|
+
onDblclick: (Xe) => pt({ configId: g.FUNCTION_ID, itemCode: g.ITEM_CODE, itemCaption: G(g.ITEM_CODE, "labelText"), field: g.FIELD_NAME }),
|
|
44497
|
+
innerHTML: G(g.ITEM_CODE, "labelText")
|
|
44498
44498
|
}, null, 46, hS)
|
|
44499
44499
|
]),
|
|
44500
44500
|
_: 2
|
|
@@ -44503,7 +44503,7 @@ const gS = Pt({
|
|
|
44503
44503
|
key: "0"
|
|
44504
44504
|
} : void 0
|
|
44505
44505
|
]), 1040, ["has-feedback", "id", "label-col", "tooltip"])), [
|
|
44506
|
-
[_r,
|
|
44506
|
+
[_r, G(g.ITEM_CODE, "visible")]
|
|
44507
44507
|
])
|
|
44508
44508
|
];
|
|
44509
44509
|
}),
|
|
@@ -45658,7 +45658,7 @@ const gS = Pt({
|
|
|
45658
45658
|
const Be = window.lang ?? { list: [] }, xe = ge([]), Ye = ge({}), Ie = ge(""), Re = ge("zh_Hans"), Ce = ge(!0), Ke = ge("");
|
|
45659
45659
|
let Ne = "", z = "", he = "";
|
|
45660
45660
|
const r = "JAER01/queryDevConfig", i = "JAER01/saveDevConfig", n = new D.FormHelper(), s = ge(0);
|
|
45661
|
-
let c = [], h, p, E, m = "JAER01/query", I, F, M, Z, N,
|
|
45661
|
+
let c = [], h, p, E, m = "JAER01/query", I, F, M, Z, N, U, Y, j, Fe, me, Se;
|
|
45662
45662
|
const de = new D.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: ln }), _e = new D.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "Form Config List", nodeRenderer: ln });
|
|
45663
45663
|
let te;
|
|
45664
45664
|
const ze = () => {
|
|
@@ -45963,7 +45963,7 @@ const gS = Pt({
|
|
|
45963
45963
|
})), A.NODE_TYPE === "SI0115_VIEW" && (we.push("separator"), we.push({
|
|
45964
45964
|
name: D.Core.$t("ERX.ErMenuDevPlat.ReferenceFromDataSet") || "Reference From DataSet",
|
|
45965
45965
|
action: () => {
|
|
45966
|
-
|
|
45966
|
+
U.setQueryPartition(be()), U.AutoRefresh = !0, U.AutoQuery = !0, U.DefaultValues = { values: { DATASET_NAME: A.DATASET_NAME, TABLE_NAME: A.TABLE_NAME } }, U.ShowCheckBoxColumn = !0, U.setEvent("ok", (qe) => {
|
|
45967
45967
|
var ft;
|
|
45968
45968
|
const He = n.getGridAllRows(H.value);
|
|
45969
45969
|
let Oe = (He == null ? void 0 : He.length) || 0;
|
|
@@ -45984,7 +45984,7 @@ const gS = Pt({
|
|
|
45984
45984
|
C_SEQ_ID: String(Oe++).padStart(3, "0")
|
|
45985
45985
|
}, A.FUNC_TYPE));
|
|
45986
45986
|
}), et.length > 0 && n.importRowsToGrid(H.value, et);
|
|
45987
|
-
}),
|
|
45987
|
+
}), U.show(null);
|
|
45988
45988
|
},
|
|
45989
45989
|
icon: D.Core.createErSvgElement("from-dataset"),
|
|
45990
45990
|
disabled: !1
|
|
@@ -46120,7 +46120,7 @@ const gS = Pt({
|
|
|
46120
46120
|
});
|
|
46121
46121
|
}
|
|
46122
46122
|
}
|
|
46123
|
-
}),
|
|
46123
|
+
}), G = (B) => {
|
|
46124
46124
|
B.configId === "gridView1_Layout" && B.api.addEventListener("cellValueChanged", (le) => {
|
|
46125
46125
|
var A, we, qe, He, Oe, et, ft, Ve, dt, vt;
|
|
46126
46126
|
if (le.column.colId === "OPERATOR") {
|
|
@@ -46958,7 +46958,7 @@ const gS = Pt({
|
|
|
46958
46958
|
"",
|
|
46959
46959
|
he
|
|
46960
46960
|
);
|
|
46961
|
-
B.flag > 0 ? (s.value = 1, N = new D.PopQueryHelper(Ne, "SI00SysTabCols", "LayoutGroupFilter,gridView1", he),
|
|
46961
|
+
B.flag > 0 ? (s.value = 1, N = new D.PopQueryHelper(Ne, "SI00SysTabCols", "LayoutGroupFilter,gridView1", he), U = new D.PopQueryHelper(Ne, "SI00DataTableCols", "LayoutGroupFilter,gridView1", he), j = new D.PopFormHelper(Ne, "SI00DataRelationEdit", void 0, he), Fe = new D.PopQueryHelper(Ne, "SI00ColumnMultiEdit", "LayoutGroupFilter,gridView_GridView", he), Fe.MainViewConfigId = "gridView_GridView", me = new D.PopQueryHelper(Ne, "SI00ColumnMultiEdit", "LayoutGroupFilter,gridView_Layout", he), me.MainViewConfigId = "gridView_Layout", Se = new D.PopQueryHelper(Ne, "SI00ColumnMultiEdit", "LayoutGroupFilter,gridView_TreeList", he), Se.MainViewConfigId = "gridView_TreeList", await Tr(() => {
|
|
46962
46962
|
ie();
|
|
46963
46963
|
})) : n.messageError(
|
|
46964
46964
|
"ErFormHelper initialize faild, error msg is [" + B.msg + "]!"
|
|
@@ -47286,7 +47286,7 @@ const gS = Pt({
|
|
|
47286
47286
|
key: H.value,
|
|
47287
47287
|
"config-id": H.value,
|
|
47288
47288
|
options: { autoGuidField: "ROW_GUID", customContextMenu: Ot },
|
|
47289
|
-
onErGridReady:
|
|
47289
|
+
onErGridReady: G,
|
|
47290
47290
|
onRowDragEnd: We
|
|
47291
47291
|
}, null, 8, ["er-form-helper-prop", "config-id", "options"])) : ht("", !0)
|
|
47292
47292
|
]),
|