@baosight/er4j 0.0.21 → 0.0.22
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 +76 -72
- package/er4j-dist/er4j.es.js.map +1 -1
- package/er4j-dist/er4j.umd.js +7 -7
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/package.json +1 -1
package/er4j-dist/er4j.es.js
CHANGED
|
@@ -4462,17 +4462,17 @@ const Wl = /* @__PURE__ */ no($l, [["render", Yl]]), zl = Ot({
|
|
|
4462
4462
|
if (Ge && Ge.DropDownBindSource[l.params.configId] && Ge.DropDownBindSource[l.params.configId][l.params.colDef.colId]) {
|
|
4463
4463
|
const we = Ge.DropDownBindSource[l.params.configId][l.params.colDef.colId], qe = (Me = l.params.colDef.context) == null ? void 0 : Me.columnConfig;
|
|
4464
4464
|
X = we.dataValueField || "CODE", Z = we.dataTextField || "CODE_DESC_1_CONTENT", J = we.dataSource;
|
|
4465
|
-
const he = ((Xe = qe == null ? void 0 : qe.FATHER_FIELD) == null ? void 0 : Xe.trim()) || "", ht = ((We = qe == null ? void 0 : qe.FORM_FILTER) == null ? void 0 : We.trim()) || "",
|
|
4465
|
+
const he = ((Xe = qe == null ? void 0 : qe.FATHER_FIELD) == null ? void 0 : Xe.trim()) || "", ht = ((We = qe == null ? void 0 : qe.FORM_FILTER) == null ? void 0 : We.trim()) || "", yt = ((Ie = qe == null ? void 0 : qe.LAYOUT_ID) == null ? void 0 : Ie.trim()) || l.params.configId;
|
|
4466
4466
|
if (he.length > 0 && ht.length > 0)
|
|
4467
|
-
if (
|
|
4467
|
+
if (yt === l.params.configId && l.params.data)
|
|
4468
4468
|
J = Ge.filterDropDownCascaderDataSource(we.dataSource, ht, l.params.data[he] || "");
|
|
4469
4469
|
else {
|
|
4470
|
-
const Ve = Ge.getGrid(
|
|
4470
|
+
const Ve = Ge.getGrid(yt);
|
|
4471
4471
|
if (Ve) {
|
|
4472
4472
|
const e = Ge.getGridCurrentRow(Ve, !0);
|
|
4473
4473
|
e && (J = Ge.filterDropDownCascaderDataSource(we.dataSource, ht, e[he] || ""));
|
|
4474
4474
|
} else {
|
|
4475
|
-
const e = Ge.getLayoutBindModel(
|
|
4475
|
+
const e = Ge.getLayoutBindModel(yt);
|
|
4476
4476
|
e && (J = Ge.filterDropDownCascaderDataSource(we.dataSource, ht, e[he] || ""));
|
|
4477
4477
|
}
|
|
4478
4478
|
}
|
|
@@ -4526,9 +4526,9 @@ const Wl = /* @__PURE__ */ no($l, [["render", Yl]]), zl = Ot({
|
|
|
4526
4526
|
};
|
|
4527
4527
|
j && (he.cellRenderer = (ht) => {
|
|
4528
4528
|
var Ve, e, t;
|
|
4529
|
-
const
|
|
4529
|
+
const yt = g.Core.toString(ht.value).replace(/</g, "<");
|
|
4530
4530
|
if (((Ve = ht.value) == null ? void 0 : Ve.length) > 0)
|
|
4531
|
-
return (e = j[ht.value]) != null && e.trim().startsWith("IconFont:") || (t = j[ht.value]) != null && t.startsWith("ImgUrl:") ? de(j[ht.value],
|
|
4531
|
+
return (e = j[ht.value]) != null && e.trim().startsWith("IconFont:") || (t = j[ht.value]) != null && t.startsWith("ImgUrl:") ? de(j[ht.value], yt) : yt;
|
|
4532
4532
|
}), H.push(he), H.push({
|
|
4533
4533
|
colId: "CODE_DESC_1_CONTENT",
|
|
4534
4534
|
field: "CODE_DESC_1_CONTENT",
|
|
@@ -4572,19 +4572,19 @@ const Wl = /* @__PURE__ */ no($l, [["render", Yl]]), zl = Ot({
|
|
|
4572
4572
|
}), C.value.gridOptions.api.addEventListener("firstDataRendered", (he) => {
|
|
4573
4573
|
if (g.Core.toString(f.value, !0).trim().length > 0) {
|
|
4574
4574
|
const ht = g.Core.toString(f.value, !0).split(",");
|
|
4575
|
-
let
|
|
4575
|
+
let yt = !1;
|
|
4576
4576
|
he.api.forEachNodeAfterFilterAndSort((Ve) => {
|
|
4577
|
-
ht.includes(Ve.data[X]) && (Ve.setSelected(!0), he.api.setFocusedCell(Ve.rowIndex, Z),
|
|
4577
|
+
ht.includes(Ve.data[X]) && (Ve.setSelected(!0), he.api.setFocusedCell(Ve.rowIndex, Z), yt || he.api.ensureIndexVisible(Ve.rowIndex, "top"), yt = !0);
|
|
4578
4578
|
});
|
|
4579
4579
|
}
|
|
4580
4580
|
}), to(() => {
|
|
4581
4581
|
g.Core.jQuery(C.value).focus(), new ResizeObserver(g.Core.debounce((ht) => {
|
|
4582
4582
|
var Ve, e, t, o;
|
|
4583
4583
|
(t = (e = (Ve = C == null ? void 0 : C.value) == null ? void 0 : Ve.gridOptions) == null ? void 0 : e.api) == null || t.sizeColumnsToFit();
|
|
4584
|
-
let
|
|
4584
|
+
let yt = 0;
|
|
4585
4585
|
(o = C == null ? void 0 : C.value) == null || o.gridOptions.api.columnModel.gridColumns.forEach((i) => {
|
|
4586
|
-
|
|
4587
|
-
}),
|
|
4586
|
+
yt += i.actualWidth;
|
|
4587
|
+
}), yt > 0 && (l.params.colDef.context.popWidth = yt);
|
|
4588
4588
|
})).observe(document.querySelector("#dropdownEditorDiv"));
|
|
4589
4589
|
});
|
|
4590
4590
|
}
|
|
@@ -12619,9 +12619,9 @@ var g;
|
|
|
12619
12619
|
template: `${this.getGridHeaderTemplate(ve)}`
|
|
12620
12620
|
},
|
|
12621
12621
|
headerClass: (ge) => {
|
|
12622
|
-
var st, ct, Mt, Pt, zt,
|
|
12622
|
+
var st, ct, Mt, Pt, zt, St, Xt, Et, ao, Kt, oo, Rt, Zt, Ht, io, Fo;
|
|
12623
12623
|
let ye = "er-grid-header-align-center";
|
|
12624
|
-
return ((Mt = (ct = (st = ge.colDef) == null ? void 0 : st.context) == null ? void 0 : ct.columnConfig) == null ? void 0 : Mt.HEAD_HALIGNMENT) === "Near" ? ye = "er-grid-header-align-left" : ((
|
|
12624
|
+
return ((Mt = (ct = (st = ge.colDef) == null ? void 0 : st.context) == null ? void 0 : ct.columnConfig) == null ? void 0 : Mt.HEAD_HALIGNMENT) === "Near" ? ye = "er-grid-header-align-left" : ((St = (zt = (Pt = ge.colDef) == null ? void 0 : Pt.context) == null ? void 0 : zt.columnConfig) == null ? void 0 : St.HEAD_HALIGNMENT) === "Far" && (ye = "er-grid-header-align-right"), ((ao = (Et = (Xt = ge.colDef) == null ? void 0 : Xt.context) == null ? void 0 : Et.columnConfig) == null ? void 0 : ao.ITEM_MUST_FLAG) === "1" && ((Zt = (Rt = (oo = (Kt = ge.colDef) == null ? void 0 : Kt.context) == null ? void 0 : oo.columnConfig) == null ? void 0 : Rt.MUST_INPUT_CONDITION) == null ? void 0 : Zt.trim().length) > 0 ? ye = ye + " er-grid-header-maroon-star" : ((Fo = (io = (Ht = ge.colDef) == null ? void 0 : Ht.context) == null ? void 0 : io.columnConfig) == null ? void 0 : Fo.ITEM_MUST_FLAG) === "1" && (ye = ye + " er-grid-header-red-star"), ye;
|
|
12625
12625
|
},
|
|
12626
12626
|
autoHeight: T,
|
|
12627
12627
|
suppressMovable: S.ALLOW_MOVE === "0",
|
|
@@ -12632,13 +12632,13 @@ var g;
|
|
|
12632
12632
|
lockVisible: S.ALLOW_SHOWHIDE === "0" || (i == null ? void 0 : i.groupDisplayType) === "multipleColumns" && (ut === "1" || ut === "2"),
|
|
12633
12633
|
width: r.toNumber(S.CUS_COL_WIDTH) > 0 ? r.toNumber(S.CUS_COL_WIDTH) : r.toNumber(S.COL_WIDTH_WEB) > 0 ? r.toNumber(S.COL_WIDTH_WEB) : r.toNumber(S.COL_WIDTH) > 0 ? r.toNumber(S.COL_WIDTH) : 100,
|
|
12634
12634
|
editable: (ge) => {
|
|
12635
|
-
var ye, st, ct, Mt, Pt, zt,
|
|
12635
|
+
var ye, st, ct, Mt, Pt, zt, St, Xt, Et, ao, Kt, oo, Rt, Zt, Ht;
|
|
12636
12636
|
if (ge.node.rowPinned || !((ye = ge.context) != null && ye.editable))
|
|
12637
12637
|
return !1;
|
|
12638
12638
|
if (((st = ge.column.context) == null ? void 0 : st.editable) !== void 0 && ((ct = ge.column.context) == null ? void 0 : ct.editable) instanceof Function)
|
|
12639
12639
|
return (Mt = ge.column.context) == null ? void 0 : Mt.editable(ge);
|
|
12640
12640
|
if (((Pt = ge.column.context) == null ? void 0 : Pt.editable) !== void 0 && ((zt = ge.column.context) == null ? void 0 : zt.editable) !== "default")
|
|
12641
|
-
return (
|
|
12641
|
+
return (St = ge.column.context) == null ? void 0 : St.editable;
|
|
12642
12642
|
if (nt !== !1) {
|
|
12643
12643
|
if (((Xt = i == null ? void 0 : i.keyFields) == null ? void 0 : Xt.trim().length) > 0) {
|
|
12644
12644
|
if ((Et = i == null ? void 0 : i.keyFields) != null && Et.includes(ge.colDef.colId))
|
|
@@ -12723,9 +12723,9 @@ var g;
|
|
|
12723
12723
|
const ye = { ...ge.colDef.context.cellStyles };
|
|
12724
12724
|
if (ge.data && !((st = ge.node) != null && st.rowPinned) && (Pe == null ? void 0 : Pe.length) > 0)
|
|
12725
12725
|
for (let zt = 0; zt < Pe.length; zt++) {
|
|
12726
|
-
const
|
|
12727
|
-
if ((((ct =
|
|
12728
|
-
switch (
|
|
12726
|
+
const St = Pe[zt];
|
|
12727
|
+
if ((((ct = St.condition) == null ? void 0 : ct.trim().length) === 0 || St.condition.trim().replaceAll(" ", "") === "1=1" || r.checkExpressionValid(ge.data, l.Core.getSystemFormatString(St.condition))) && (St.type === "Foreground" || St.type === "W_Fore" ? ye.color = r.toHexColor(St.fillColor) : (St.type === "Background" || St.type === "W_Back") && (ye.background = r.toHexColor(St.fillColor)), St.fontStyle && St.fontStyle.trim().length > 0))
|
|
12728
|
+
switch (St.fontStyle) {
|
|
12729
12729
|
case "Bold":
|
|
12730
12730
|
ye.fontWeight = "bold";
|
|
12731
12731
|
break;
|
|
@@ -12765,9 +12765,9 @@ var g;
|
|
|
12765
12765
|
antTooltip: !0,
|
|
12766
12766
|
callFormLink: !0,
|
|
12767
12767
|
click: (Mt) => {
|
|
12768
|
-
var
|
|
12768
|
+
var St;
|
|
12769
12769
|
let Pt = S.CALL_FORM;
|
|
12770
|
-
const zt = (
|
|
12770
|
+
const zt = (St = Mt.node) == null ? void 0 : St.data.toJSON();
|
|
12771
12771
|
Pt.endsWith("??") ? (Pt = Pt.replace("??", ""), encodeURIComponent(encodeURIComponent(JSON.stringify(zt)))) : Pt.endsWith("?") && (Pt = Pt.replace("?", ""), encodeURIComponent(JSON.stringify(zt))), this.setLocalStorage(Pt, { senderType: "gridCell", value: Mt.value, data: zt, formNameFrom: this.FormName });
|
|
12772
12772
|
}
|
|
12773
12773
|
}
|
|
@@ -12794,10 +12794,10 @@ var g;
|
|
|
12794
12794
|
formHelper: this,
|
|
12795
12795
|
configId: e
|
|
12796
12796
|
}, ((A = S.POP_FORM) != null && A.trim().startsWith("MenuForm:") || (z = S.POP_FORM) != null && z.trim().startsWith("PopFormINQ:")) && ((w = S.AUTOFILL_COLS) == null ? void 0 : w.trim().length) > 0 && (D.cellEditorParams.event = (ye) => {
|
|
12797
|
-
var zt,
|
|
12797
|
+
var zt, St, Xt, Et;
|
|
12798
12798
|
const st = S.AUTOFILL_COLS;
|
|
12799
12799
|
let ct = "", Mt = !0;
|
|
12800
|
-
(zt = S.POP_FORM) != null && zt.trim().startsWith("MenuForm:") ? ct = (
|
|
12800
|
+
(zt = S.POP_FORM) != null && zt.trim().startsWith("MenuForm:") ? ct = (St = S.POP_FORM) == null ? void 0 : St.trim().substring(9) : (Xt = S.POP_FORM) != null && Xt.trim().startsWith("PopFormINQ:") && (ct = (Et = S.POP_FORM) == null ? void 0 : Et.trim().substring(11), Mt = !1);
|
|
12801
12801
|
const Pt = (ao) => {
|
|
12802
12802
|
st.length > 0 && st.split(";").forEach((oo) => {
|
|
12803
12803
|
if (oo.trim().length > 0) {
|
|
@@ -13578,7 +13578,7 @@ var g;
|
|
|
13578
13578
|
}, this;
|
|
13579
13579
|
}
|
|
13580
13580
|
getGridMenuItems(e) {
|
|
13581
|
-
var d, u, c, p, h, _, F, O, v, D, b, ie, B, V, A, z, w, _e, Te, q, R, S, oe, ae, ue, xe, dt, lt, nt, T, ve, ut, rt, Pe, ot, ge, ye, st, ct, Mt, Pt, zt,
|
|
13581
|
+
var d, u, c, p, h, _, F, O, v, D, b, ie, B, V, A, z, w, _e, Te, q, R, S, oe, ae, ue, xe, dt, lt, nt, T, ve, ut, rt, Pe, ot, ge, ye, st, ct, Mt, Pt, zt, St, Xt, Et, ao, Kt, oo, Rt, Zt, Ht, io, Fo, $o, Xo, E, k, fe, $e, tt, gt, Ze, vt, Ft, y, M, m, W, Oe, ne, K, Ne, Be, re, Qe, Ke, ft, It, n, Nt, Ut, so, ho, uo, ei, To, Bo, ti;
|
|
13582
13582
|
const t = (u = (d = e.column) == null ? void 0 : d.gridOptionsService) == null ? void 0 : u.gridOptions, o = (c = e == null ? void 0 : e.context) == null ? void 0 : c.options, i = (p = t == null ? void 0 : t.context) == null ? void 0 : p.configId, a = e.defaultItems;
|
|
13583
13583
|
a.length = 0, a.push("pinSubMenu", "separator", "autoSizeThis", "autoSizeAll", "separator");
|
|
13584
13584
|
const s = (mt = !1) => {
|
|
@@ -13999,7 +13999,7 @@ var g;
|
|
|
13999
13999
|
},
|
|
14000
14000
|
{
|
|
14001
14001
|
name: "ClickRow",
|
|
14002
|
-
disabled: ((
|
|
14002
|
+
disabled: ((St = (zt = t.context) == null ? void 0 : zt.viewConfig) == null ? void 0 : St.AUTO_SELECT_MODE) === "4",
|
|
14003
14003
|
action: () => {
|
|
14004
14004
|
this.uploadGridViewProps(i, "AUTO_SELECT_MODE", "4").then(() => {
|
|
14005
14005
|
t.context.viewConfig.AUTO_SELECT_MODE = "4", this.setGridOptions(i, "autoSelectMode", "4", !0);
|
|
@@ -18036,7 +18036,7 @@ const So = /* @__PURE__ */ no(Kn, [["render", ns]]), ss = Ot({
|
|
|
18036
18036
|
});
|
|
18037
18037
|
}, de = () => {
|
|
18038
18038
|
var e, t, o;
|
|
18039
|
-
(e = U.value) == null || e.removeEventListener("mousedown", Ge), (t = r.value) == null || t.removeEventListener("mousedown", he), (o = r.value) == null || o.removeEventListener("mousemove", ht), document == null || document.removeEventListener("mousemove", ht), document == null || document.removeEventListener("mouseup",
|
|
18039
|
+
(e = U.value) == null || e.removeEventListener("mousedown", Ge), (t = r.value) == null || t.removeEventListener("mousedown", he), (o = r.value) == null || o.removeEventListener("mousemove", ht), document == null || document.removeEventListener("mousemove", ht), document == null || document.removeEventListener("mouseup", yt);
|
|
18040
18040
|
}, x = () => {
|
|
18041
18041
|
it(), r.value && He.unobserve(r.value), l.sameApp ? (de(), J.value = !1) : (l.parentFormRef && window.addEventListener(
|
|
18042
18042
|
"keydown",
|
|
@@ -18103,7 +18103,7 @@ const So = /* @__PURE__ */ no(Kn, [["render", ns]]), ss = Ot({
|
|
|
18103
18103
|
G.value = !1, Z.value && (Z.value.style.pointerEvents = "auto");
|
|
18104
18104
|
}, he = (e) => {
|
|
18105
18105
|
let t = Ve(e);
|
|
18106
|
-
t !== "" && (Q.value = !0, j.value = t, H.value.startX = e.clientX, H.value.startY = e.clientY, H.value.width = r.value.offsetWidth, H.value.height = r.value.offsetHeight, H.value.left = r.value.offsetLeft, H.value.top = r.value.offsetTop), Q.value && (document.body.style.userSelect = "none"), document.addEventListener("mousemove", ht), document.addEventListener("mouseup",
|
|
18106
|
+
t !== "" && (Q.value = !0, j.value = t, H.value.startX = e.clientX, H.value.startY = e.clientY, H.value.width = r.value.offsetWidth, H.value.height = r.value.offsetHeight, H.value.left = r.value.offsetLeft, H.value.top = r.value.offsetTop), Q.value && (document.body.style.userSelect = "none"), document.addEventListener("mousemove", ht), document.addEventListener("mouseup", yt);
|
|
18107
18107
|
}, ht = (e) => {
|
|
18108
18108
|
const t = Ve(e);
|
|
18109
18109
|
let o;
|
|
@@ -18125,7 +18125,7 @@ const So = /* @__PURE__ */ no(Kn, [["render", ns]]), ss = Ot({
|
|
|
18125
18125
|
r.value.style.height = H.value.height + i + "px", r.value.style.top = H.value.top + "px";
|
|
18126
18126
|
}
|
|
18127
18127
|
}
|
|
18128
|
-
},
|
|
18128
|
+
}, yt = () => {
|
|
18129
18129
|
Z.value && (Z.value.style.pointerEvents = "auto"), Q.value = !1, Q.value || (document.body.style.userSelect = "auto");
|
|
18130
18130
|
}, Ve = (e) => {
|
|
18131
18131
|
var o, i, a;
|
|
@@ -18507,7 +18507,7 @@ const Zo = /* @__PURE__ */ no(hs, [["render", Cs], ["__scopeId", "data-v-9d9eb98
|
|
|
18507
18507
|
let j = !1, J = Q.action, X = !1;
|
|
18508
18508
|
const Z = {};
|
|
18509
18509
|
l.params[Q.name] ? (J = l.params[Q.name].action, j = l.params[Q.name].preventDefault, X = l.params[Q.name].messageConfirm) : J || (J = G(Q.name, "action"), j = G(Q.name, "preventDefault"), X = G(Q.name, "messageConfirm")), (Ce = (le = l.params) == null ? void 0 : le.formHelper) == null || Ce.stopGridEditing((De = l.params) == null ? void 0 : De.configId, async () => {
|
|
18510
|
-
var ke, Se, He, N, Re, it, Ue, pe, de, x, Y, se, Me, Xe, We, Ie, Le, Ge, we, qe, he, ht,
|
|
18510
|
+
var ke, Se, He, N, Re, it, Ue, pe, de, x, Y, se, Me, Xe, We, Ie, Le, Ge, we, qe, he, ht, yt, Ve, e, t, o, i, a, s, d, u, c, p, h, _, F, O;
|
|
18511
18511
|
if (j !== !0)
|
|
18512
18512
|
switch (Q.name) {
|
|
18513
18513
|
case "refresh":
|
|
@@ -18537,7 +18537,7 @@ const Zo = /* @__PURE__ */ no(hs, [["render", Cs], ["__scopeId", "data-v-9d9eb98
|
|
|
18537
18537
|
break;
|
|
18538
18538
|
}
|
|
18539
18539
|
case "excel": {
|
|
18540
|
-
const v = (
|
|
18540
|
+
const v = (yt = l.params) == null ? void 0 : yt.formHelper.FormName, D = (Ve = l.params) == null ? void 0 : Ve.formHelper.FormCaption, b = (t = l.params) == null ? void 0 : t.formHelper.getGrid((e = l.params) == null ? void 0 : e.configId), ie = {
|
|
18541
18541
|
fileName: `${(o = l.params) == null ? void 0 : o.formHelper.FormName}-${g.Core.getDateTimeFormatString(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH-mm-ss")}`,
|
|
18542
18542
|
exportData: (a = (i = b == null ? void 0 : b.gridOptions) == null ? void 0 : i.context) == null ? void 0 : a.bindingSource,
|
|
18543
18543
|
header: {
|
|
@@ -19094,8 +19094,8 @@ const Jr = /* @__PURE__ */ no(id, [["render", dd]]), ud = {
|
|
|
19094
19094
|
r.toolbarOptions,
|
|
19095
19095
|
r.pageOptions
|
|
19096
19096
|
);
|
|
19097
|
-
const
|
|
19098
|
-
|
|
19097
|
+
const yt = (Me = x.api) == null ? void 0 : Me.getStatusPanel("ToolbarPanel");
|
|
19098
|
+
yt && yt.setToolbarStyle(((Xe = r.toolbarOptions) == null ? void 0 : Xe.style) ?? ((We = r.options) == null ? void 0 : We.toolbarStyle) ?? "both");
|
|
19099
19099
|
const Ve = r.erFormHelperProp.getSingleViewConfigInfo(r.configId);
|
|
19100
19100
|
(Ie = r.erFormHelperProp) == null || Ie.setGridToolbarVisible(r.configId, {
|
|
19101
19101
|
refresh: r.erFormHelperProp.getGridToolbarVisible(r.configId, "refresh") ?? Ve.SHOW_REFRESH === "1",
|
|
@@ -19201,16 +19201,16 @@ const Jr = /* @__PURE__ */ no(id, [["render", dd]]), ud = {
|
|
|
19201
19201
|
if (we.data._children_data)
|
|
19202
19202
|
we.successCallback(we.data._children_data);
|
|
19203
19203
|
else {
|
|
19204
|
-
const
|
|
19204
|
+
const yt = {};
|
|
19205
19205
|
if ((he = (qe = r.erFormHelperProp) == null ? void 0 : qe.FormDataSet.relations[Ie.RELATION_NAME.trim()]) == null || he.forEach((Ve) => {
|
|
19206
|
-
|
|
19207
|
-
}), Object.keys(
|
|
19206
|
+
yt[Ve.ChildColumn] = we.data[Ve.ParentColumn];
|
|
19207
|
+
}), Object.keys(yt).length === 0)
|
|
19208
19208
|
r.erFormHelperProp.messageError(
|
|
19209
19209
|
"The master-detail relation information was not found!"
|
|
19210
19210
|
), we.data._children_data = [], we.successCallback(we.data._children_data);
|
|
19211
19211
|
else {
|
|
19212
|
-
((ht = r.detailOptions.service) == null ? void 0 : ht.trim().length) > 0 ?
|
|
19213
|
-
const Ve = g.Core.buildEiInfo(
|
|
19212
|
+
((ht = r.detailOptions.service) == null ? void 0 : ht.trim().length) > 0 ? yt.QUERY_TYPE = Ie.TABLE_NAME : yt.TABLE_NAME = Ie.TABLE_NAME;
|
|
19213
|
+
const Ve = g.Core.buildEiInfo(yt, "DETAIL_TABLE"), e = await r.erFormHelperProp.callService(
|
|
19214
19214
|
r.detailOptions.service || "si00_dyn_inq",
|
|
19215
19215
|
Ve
|
|
19216
19216
|
);
|
|
@@ -19493,7 +19493,7 @@ const Qi = /* @__PURE__ */ no(pd, [["render", fd]]), gd = { style: { "padding-le
|
|
|
19493
19493
|
}
|
|
19494
19494
|
});
|
|
19495
19495
|
}, we = () => {
|
|
19496
|
-
var q, R, S, oe, ae, ue, xe, dt, lt, nt, T, ve, ut, rt, Pe, ot, ge, ye, st, ct, Mt, Pt, zt,
|
|
19496
|
+
var q, R, S, oe, ae, ue, xe, dt, lt, nt, T, ve, ut, rt, Pe, ot, ge, ye, st, ct, Mt, Pt, zt, St, Xt, Et, ao, Kt, oo, Rt, Zt, Ht, io, Fo, $o, Xo, E, k;
|
|
19497
19497
|
if (pe) {
|
|
19498
19498
|
if (f.multiple) {
|
|
19499
19499
|
const Ze = pe.getColumnDef(g.SysInfo.GridCheckColumnFieldName);
|
|
@@ -19515,7 +19515,7 @@ const Qi = /* @__PURE__ */ no(pd, [["render", fd]]), gd = { style: { "padding-le
|
|
|
19515
19515
|
Ft
|
|
19516
19516
|
)), fe = y, Ue = !0;
|
|
19517
19517
|
}
|
|
19518
|
-
} else (Xt = (zt = f.options) == null ? void 0 : zt.erFormHelper) != null && Xt.DropDownRefreshKey[(
|
|
19518
|
+
} else (Xt = (zt = f.options) == null ? void 0 : zt.erFormHelper) != null && Xt.DropDownRefreshKey[(St = f.options) == null ? void 0 : St.configId] && ((Kt = (Et = f.options) == null ? void 0 : Et.erFormHelper) != null && Kt.DropDownBindSource[(ao = f.options) == null ? void 0 : ao.configId]) && ((oo = f.options) != null && oo.itemCode) ? fe = ((Fo = (io = (Rt = f.options) == null ? void 0 : Rt.erFormHelper) == null ? void 0 : io.DropDownBindSource[(Zt = f.options) == null ? void 0 : Zt.configId][(Ht = f.options) == null ? void 0 : Ht.itemCode]) == null ? void 0 : Fo.dataSource) || [] : f.dataSource && (fe = f.dataSource);
|
|
19519
19519
|
fe.length === 0 ? N = 3 : fe.length < 15 ? N = fe.length + 1 : N = 15, N < 5 && ((Xo = ($o = f.options) == null ? void 0 : $o.groupFields) != null && Xo.length || De) && (N = 5), it = N * 24 + 10, ((E = f.columns) == null ? void 0 : E.length) > 1 ? (Re = 0, Z.forEach((Ze) => {
|
|
19520
19520
|
Re += Ze.width;
|
|
19521
19521
|
}), J.value = Re + 20, le.value = {
|
|
@@ -19553,7 +19553,7 @@ const Qi = /* @__PURE__ */ no(pd, [["render", fd]]), gd = { style: { "padding-le
|
|
|
19553
19553
|
}, he = (q) => {
|
|
19554
19554
|
}, ht = (q) => {
|
|
19555
19555
|
Q.value = !1;
|
|
19556
|
-
},
|
|
19556
|
+
}, yt = (q) => {
|
|
19557
19557
|
f.readonly !== !0 && to(() => {
|
|
19558
19558
|
pe == null || pe.setQuickFilter(q);
|
|
19559
19559
|
});
|
|
@@ -19643,7 +19643,7 @@ const Qi = /* @__PURE__ */ no(pd, [["render", fd]]), gd = { style: { "padding-le
|
|
|
19643
19643
|
});
|
|
19644
19644
|
} else
|
|
19645
19645
|
R.forEach((Pe, ot) => {
|
|
19646
|
-
var ye, st, ct, Mt, Pt, zt,
|
|
19646
|
+
var ye, st, ct, Mt, Pt, zt, St, Xt;
|
|
19647
19647
|
const ge = {
|
|
19648
19648
|
...Pe,
|
|
19649
19649
|
tooltipField: Pe.field,
|
|
@@ -19656,7 +19656,7 @@ const Qi = /* @__PURE__ */ no(pd, [["render", fd]]), gd = { style: { "padding-le
|
|
|
19656
19656
|
enableRowGroup: Pe.enableRowGroup !== void 0 ? Pe.enableRowGroup : !0,
|
|
19657
19657
|
rowGroup: (st = (ye = f.options) == null ? void 0 : ye.groupFields) == null ? void 0 : st.includes(Pe.field),
|
|
19658
19658
|
hide: ((Mt = (ct = f.options) == null ? void 0 : ct.groupFields) == null ? void 0 : Mt.includes(Pe.field)) ?? !1,
|
|
19659
|
-
floatingFilter: ((Pt = f.options) == null ? void 0 : Pt.floatingFilter) === !0 || ((zt = f.options) == null ? void 0 : zt.floatingFilter) !== !1 && R.length > 2 && ((
|
|
19659
|
+
floatingFilter: ((Pt = f.options) == null ? void 0 : Pt.floatingFilter) === !0 || ((zt = f.options) == null ? void 0 : zt.floatingFilter) !== !1 && R.length > 2 && ((St = f.dataSource) == null ? void 0 : St.length) > 30
|
|
19660
19660
|
};
|
|
19661
19661
|
(ge.field.endsWith("@IMG") || ge.field.endsWith("@IMAGE")) && (ge.field = ge.field.replace("@IMG", "").replace("@IMAGE", ""), ge.sortable = !1, ge.filter = !1, ge.autoHeight = !0, ge.wrapText = !0, ge.suppressMenu = !0, ge.floatingFilter = !1, ge.cellRenderer = zi, ge.cellRendererParams = (Et) => (Et.src = Et.data[Et.colDef.field], Et.width = ge.width || 150, Et.height = 100, Et)), ot === 0 && ((Xt = f.options) != null && Xt.imageCombo) && (ge.cellRenderer = (Et) => {
|
|
19662
19662
|
const ao = g.Core.toString(Et.value).replace(/</g, "<"), Kt = Et.data[Ce] || ao, oo = j[Kt] || "";
|
|
@@ -19749,7 +19749,7 @@ const Qi = /* @__PURE__ */ no(pd, [["render", fd]]), gd = { style: { "padding-le
|
|
|
19749
19749
|
onInputKeyDown: Ie,
|
|
19750
19750
|
onDropdownVisibleChange: Le,
|
|
19751
19751
|
onChange: ht,
|
|
19752
|
-
onSearch:
|
|
19752
|
+
onSearch: yt,
|
|
19753
19753
|
onFocus: Ve,
|
|
19754
19754
|
onBlur: e
|
|
19755
19755
|
}), eo({
|
|
@@ -20444,7 +20444,7 @@ const Yd = Ot({
|
|
|
20444
20444
|
],
|
|
20445
20445
|
setup(l, { emit: C }) {
|
|
20446
20446
|
const r = l, f = C, U = P(!1), te = P(null), G = P(""), H = P(!1), Q = P("swap"), j = po({}), J = P(!1), X = P([]), Z = P(null), le = [], De = [], Ce = P(""), ke = P(!1), Se = P(0), He = P(!1), N = P(new g.Model()), Re = P([]), it = P(-603), Ue = P(!1), pe = P(""), de = po({}), x = [], Y = [], se = P(r.options || {}), Me = po({});
|
|
20447
|
-
let Xe = 5, We = 5, Ie = 4, Le = "F", Ge = 0, we = !1, qe = {}, he = [], ht = -1,
|
|
20447
|
+
let Xe = 5, We = 5, Ie = 4, Le = "F", Ge = 0, we = !1, qe = {}, he = [], ht = -1, yt = "1fr", Ve = {}, e = !0, t = !1, o;
|
|
20448
20448
|
const i = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: pi }), a = P(Do()), s = P(Gt()), d = kr.useForm(
|
|
20449
20449
|
N,
|
|
20450
20450
|
de
|
|
@@ -20791,7 +20791,7 @@ const Yd = Ot({
|
|
|
20791
20791
|
display: "grid",
|
|
20792
20792
|
direction: (gt = r.erFormHelperProp) != null && gt.IsRtl ? "rtl" : "ltr",
|
|
20793
20793
|
position: "relative",
|
|
20794
|
-
gridTemplateColumns: `repeat(${Ie}, minmax(${
|
|
20794
|
+
gridTemplateColumns: `repeat(${Ie}, minmax(${yt}, 1fr))`,
|
|
20795
20795
|
gridTemplateRows: k,
|
|
20796
20796
|
overflowY: "auto",
|
|
20797
20797
|
//'hidden', // actDisplayRows.value > 0 && !displayAll.value ? 'scroll' : 'hidden',
|
|
@@ -20893,7 +20893,7 @@ const Yd = Ot({
|
|
|
20893
20893
|
k && k.text(E.displayAll ? "隐藏更多" : "显示更多"), f("DisplayAllClick", { ...E, erFormHelper: r.erFormHelperProp, data: N.value, configId: r.configId });
|
|
20894
20894
|
}, zt = (E) => {
|
|
20895
20895
|
f("groupButtonClick", { ...E, erFormHelper: r.erFormHelperProp, data: N.value, configId: r.configId, expanded: E });
|
|
20896
|
-
},
|
|
20896
|
+
}, St = (E) => {
|
|
20897
20897
|
var fe, $e;
|
|
20898
20898
|
const k = { item_code: E.ITEM_CODE };
|
|
20899
20899
|
if (E.WIDGET_TYPE === "antInputNumber")
|
|
@@ -20970,7 +20970,7 @@ const Yd = Ot({
|
|
|
20970
20970
|
const wt = (mt + Dt).toString() + "," + (At + Je).toString();
|
|
20971
20971
|
To.indexOf(wt) >= 0 || To.push(wt);
|
|
20972
20972
|
}
|
|
20973
|
-
ee.ROW_START = mt + 1, ee.ROW_END = mt + 1 + yo, ee.COL_START = At + 1, ee.COL_END = At + 1 + Co, ee.Props =
|
|
20973
|
+
ee.ROW_START = mt + 1, ee.ROW_END = mt + 1 + yo, ee.COL_START = At + 1, ee.COL_END = At + 1 + Co, ee.Props = St(ee), r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, ee.Props), se.value[ee.ITEM_CODE] = { ...(It = se.value) == null ? void 0 : It[ee.ITEM_CODE], ...ee.extendOptions };
|
|
20974
20974
|
const fo = { ...$e, ...(n = se.value) == null ? void 0 : n[ee.ITEM_CODE] };
|
|
20975
20975
|
r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, fo), r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { field: ee.FIELD_NAME }), r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { controlType: ee.WIDGET_TYPE }), r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { visible: ee.IS_VISIBLE }), r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { placeholder: ee.TOOL_TIP }), r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { labelText: Ao }), r.autoBind ? (r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { readOnly: !0 }), ee.COLUMN_EDIT === "1" && r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { buttonEnable: !1 })) : (r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { readOnly: ee.READ_ONLY === "1" }), ee.COLUMN_EDIT === "1" && r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { buttonEnable: ee.ALLOW_EDIT === "1" })), bt.Props = ee.Props, r.erFormHelperProp.setLayoutItemOption(r.configId, ee.ITEM_CODE, { rows: (Nt = bt.Props) == null ? void 0 : Nt.rows });
|
|
20976
20976
|
const jo = g.Core.toHexColor(ee.HEAD_TEXTCOLOR), me = g.Core.toHexColor(ee.HEAD_BACKCOLOR), _t = g.Core.toHexColor(ee.CELL_TEXTCOLOR), ro = g.Core.toHexColor(ee.CELL_BACKCOLOR);
|
|
@@ -21086,7 +21086,7 @@ const Yd = Ot({
|
|
|
21086
21086
|
qe = { ...K.TSI00GRIDVIEW[0] }, Le = ((k = qe.FUNCTION_TYPE) == null ? void 0 : k.trim()) || "F";
|
|
21087
21087
|
let Ne = {}, Be = {};
|
|
21088
21088
|
const re = r.erFormHelperProp.getFormSysInfo("LayoutDefaultOptions");
|
|
21089
|
-
(re == null ? void 0 : re.trim().length) > 0 && (Ne = JSON.parse(re)), ((fe = qe.EXT_OPTIONS) == null ? void 0 : fe.trim().length) > 0 && (Be = JSON.parse(qe.EXT_OPTIONS)), se.value = { ...Ne, ...Be, ...se.value }, e = se.value.hasFeedback !== "false", Ce.value = qe.TABLE_NAME, r.configCaption === void 0 || r.configCaption.length === 0 ? pe.value = qe.FUNCNAME : pe.value = r.configCaption, it.value = qe.ROWHIGH || -1, ke.value = Le === "F" && qe.BESTFIT === "1", g.Core.toNumber(qe.FORM_WIDTH) > 0 && (
|
|
21089
|
+
(re == null ? void 0 : re.trim().length) > 0 && (Ne = JSON.parse(re)), ((fe = qe.EXT_OPTIONS) == null ? void 0 : fe.trim().length) > 0 && (Be = JSON.parse(qe.EXT_OPTIONS)), se.value = { ...Ne, ...Be, ...se.value }, e = se.value.hasFeedback !== "false", Ce.value = qe.TABLE_NAME, r.configCaption === void 0 || r.configCaption.length === 0 ? pe.value = qe.FUNCNAME : pe.value = r.configCaption, it.value = qe.ROWHIGH || -1, ke.value = Le === "F" && qe.BESTFIT === "1", g.Core.toNumber(qe.FORM_WIDTH) > 0 && (yt = qe.FORM_WIDTH + "px"), Le !== "F" ? (Ie = g.Core.toNumber(qe.EDIT_COLS_COUNT), Ie = Ie > 0 ? Ie : 3) : (Ie = g.Core.toNumber(qe.DISPLAY_WIDTH), Ie = Ie > 0 ? Ie : 4), Xe = g.Core.toNumber(($e = se.value) == null ? void 0 : $e.gridGap), Xe = Xe > 0 ? Xe : g.Core.toNumber(r.erFormHelperProp.getFormSysInfo("LAYOUTPADDING")), Xe = Xe > 0 ? Xe : 5;
|
|
21090
21090
|
const Qe = Le !== "F" ? r.erFormHelperProp.getBindingTable(r.configId) : void 0;
|
|
21091
21091
|
Qe ? he = (gt = (tt = K.TSI00GRIDCOLUMN) == null ? void 0 : tt.filter((Ke) => {
|
|
21092
21092
|
var ft, It;
|
|
@@ -22715,7 +22715,7 @@ const Yd = Ot({
|
|
|
22715
22715
|
}), r.popFreeHelperProp.doEvent("open");
|
|
22716
22716
|
}, 360);
|
|
22717
22717
|
}, N = async (pe) => {
|
|
22718
|
-
var se, Me, Xe, We, Ie, Le, Ge, we, qe, he, ht,
|
|
22718
|
+
var se, Me, Xe, We, Ie, Le, Ge, we, qe, he, ht, yt, Ve, e, t, o, i, a;
|
|
22719
22719
|
const de = {
|
|
22720
22720
|
sender: H,
|
|
22721
22721
|
dialogResult: "ok",
|
|
@@ -22732,7 +22732,7 @@ const Yd = Ot({
|
|
|
22732
22732
|
return;
|
|
22733
22733
|
if (((Ie = r.popFreeHelperProp) == null ? void 0 : Ie.OkButtonService.trim().length) > 0) {
|
|
22734
22734
|
var x = new Tt(), Y = U.convertModelAsBlock(r.popFreeHelperProp.DataModel, r.popFreeHelperProp.ExtendJsonData);
|
|
22735
|
-
if (((Le = r.popFreeHelperProp) == null ? void 0 : Le.EditType) === "Modify" ? (Ge = r.popFreeHelperProp) != null && Ge.TableName && ((we = r.popFreeHelperProp) == null ? void 0 : we.TableName.trim().length) > 0 ? Y.rename(((qe = r.popFreeHelperProp) == null ? void 0 : qe.TableName.trim()) + "_MODIFY") : te && te.TABLE_NAME && te.TABLE_NAME.trim().length > 0 && Y.rename(te.TABLE_NAME.trim() + "_MODIFY") : ((ht = (he = r.popFreeHelperProp) == null ? void 0 : he.TableName) == null ? void 0 : ht.trim().length) > 0 ? Y.rename(((
|
|
22735
|
+
if (((Le = r.popFreeHelperProp) == null ? void 0 : Le.EditType) === "Modify" ? (Ge = r.popFreeHelperProp) != null && Ge.TableName && ((we = r.popFreeHelperProp) == null ? void 0 : we.TableName.trim().length) > 0 ? Y.rename(((qe = r.popFreeHelperProp) == null ? void 0 : qe.TableName.trim()) + "_MODIFY") : te && te.TABLE_NAME && te.TABLE_NAME.trim().length > 0 && Y.rename(te.TABLE_NAME.trim() + "_MODIFY") : ((ht = (he = r.popFreeHelperProp) == null ? void 0 : he.TableName) == null ? void 0 : ht.trim().length) > 0 ? Y.rename(((yt = r.popFreeHelperProp) == null ? void 0 : yt.TableName.trim()) + "_ADD") : ((Ve = te.TABLE_NAME) == null ? void 0 : Ve.trim().length) > 0 && Y.rename(te.TABLE_NAME.trim() + "_ADD"), x.addBlock(Y), (e = r.popFreeHelperProp) != null && e.BeforeCallService && (x = r.popFreeHelperProp.BeforeCallService(x)), !await U.messageConfirm(""))
|
|
22736
22736
|
return;
|
|
22737
22737
|
const s = await U.callService((t = r.popFreeHelperProp) == null ? void 0 : t.OkButtonService.trim(), x);
|
|
22738
22738
|
if (s.getStatus() < 0) {
|
|
@@ -23041,8 +23041,8 @@ const Yd = Ot({
|
|
|
23041
23041
|
var ht = `select * from ${He} where ${Ge}`;
|
|
23042
23042
|
qe = await U.querySql("", ht);
|
|
23043
23043
|
}
|
|
23044
|
-
var
|
|
23045
|
-
|
|
23044
|
+
var yt = qe.getBlock(He);
|
|
23045
|
+
yt || (yt = qe.getBlockByIndex(0)), U.mergeEiBlockToGrid(yt, r.popQueryHelperProp.DetailViewConfigId), U.getGridDataCount(r.popQueryHelperProp.DetailViewConfigId) === 0 && r.popQueryHelperProp.ShowQueryNoDetailInfoMsg === !0 && U.messageWarning("未查到明细数据!");
|
|
23046
23046
|
} else
|
|
23047
23047
|
U.clearGridData(r.popQueryHelperProp.DetailViewConfigId);
|
|
23048
23048
|
const Ve = r.popQueryHelperProp.getEvent("mainViewFocusChanged");
|
|
@@ -23059,7 +23059,7 @@ const Yd = Ot({
|
|
|
23059
23059
|
return;
|
|
23060
23060
|
await U.checkRequiredInput(r.popQueryHelperProp.LayoutGroupFilterId) && r.popQueryHelperProp.queryMainGridInfo();
|
|
23061
23061
|
}, se = () => {
|
|
23062
|
-
var ht,
|
|
23062
|
+
var ht, yt;
|
|
23063
23063
|
let Le = {
|
|
23064
23064
|
sender: void 0,
|
|
23065
23065
|
formHelper: r.popQueryHelperProp,
|
|
@@ -23085,7 +23085,7 @@ const Yd = Ot({
|
|
|
23085
23085
|
for (let s = 0; s < i.length; s++)
|
|
23086
23086
|
if (qe.getColumn(i[s]) && qe.getMappedRows()[a][i[s]] !== qe.getMappedRows()[0][i[s]]) {
|
|
23087
23087
|
const d = U.getGridColumn(J.value, i[s]).title;
|
|
23088
|
-
U.messageWarning("所选记录中[" + d + "]->[" + ((ht = qe.getMappedRows()[a][i[s]]) == null ? void 0 : ht.toString()) + "]与[" + ((
|
|
23088
|
+
U.messageWarning("所选记录中[" + d + "]->[" + ((ht = qe.getMappedRows()[a][i[s]]) == null ? void 0 : ht.toString()) + "]与[" + ((yt = qe.getMappedRows()[0][i[s]]) == null ? void 0 : yt.toString()) + "]不相同!");
|
|
23089
23089
|
return;
|
|
23090
23090
|
}
|
|
23091
23091
|
}
|
|
@@ -23491,7 +23491,7 @@ const Yd = Ot({
|
|
|
23491
23491
|
Xe.value = Gt();
|
|
23492
23492
|
}));
|
|
23493
23493
|
const We = window.lang ?? { list: [] }, Ie = P([]), Le = P({}), Ge = P(""), we = P("zh_Hans"), qe = P(!0), he = P("");
|
|
23494
|
-
let ht = "",
|
|
23494
|
+
let ht = "", yt = "", Ve = "";
|
|
23495
23495
|
const e = "JAER01/queryDevConfig", t = "JAER01/saveDevConfig", o = new g.FormHelper(), i = P(0);
|
|
23496
23496
|
let a = [], s, d, u, c = "JAER01/query", p, h, _, F, O, v, D, b, ie, B, V;
|
|
23497
23497
|
const A = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: pi }), z = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "Form Config List", nodeRenderer: pi });
|
|
@@ -23508,11 +23508,15 @@ const Yd = Ot({
|
|
|
23508
23508
|
x = !0, Re.value = !1;
|
|
23509
23509
|
else if (it.value.trim().length > 0) {
|
|
23510
23510
|
if (x && (se = -1, Y = a.filter((M) => (M.MODULE_TYPE === s.MODULE_TYPE || s.CURRENT_NODE_CODE === "DEVTREE_ROOT") && M.CURRENT_NODE_DESC.indexOf(it.value.trim()) > -1)), (Y == null ? void 0 : Y.length) > 0) {
|
|
23511
|
-
|
|
23512
|
-
|
|
23513
|
-
|
|
23514
|
-
|
|
23515
|
-
|
|
23511
|
+
if (o.hasDataChange() && !await g.Core.messageConfirm("The data has been changed, unsaved data will be lost if you continue?"))
|
|
23512
|
+
return;
|
|
23513
|
+
{
|
|
23514
|
+
const M = Y[++se];
|
|
23515
|
+
Ue.value = `${se + 1}/${Y.length}`, w == null || w.setRowNodeSelected(M.uid), u = M, St(u), se === Y.length - 1 && (se = -1), setTimeout(() => {
|
|
23516
|
+
var m;
|
|
23517
|
+
(m = g.Core.jQuery(te.value)) == null || m.focus();
|
|
23518
|
+
}, 500);
|
|
23519
|
+
}
|
|
23516
23520
|
} else
|
|
23517
23521
|
Ue.value = "No match found";
|
|
23518
23522
|
x = !1;
|
|
@@ -23523,7 +23527,7 @@ const Yd = Ot({
|
|
|
23523
23527
|
if (m.source === "api")
|
|
23524
23528
|
return;
|
|
23525
23529
|
const W = m.api.getSelectedNodes();
|
|
23526
|
-
(W == null ? void 0 : W.length) > 0 ? o.hasDataChange() && !await g.Core.messageConfirm("The data has been changed, unsaved data will be lost if you continue?") ? (W[0].setSelected(!1), d == null || d.setSelected(!0), m.api.setFocusedCell(d.rowIndex, "CURRENT_NODE_DESC")) : (d = W[0], u = W[0].data,
|
|
23530
|
+
(W == null ? void 0 : W.length) > 0 ? o.hasDataChange() && !await g.Core.messageConfirm("The data has been changed, unsaved data will be lost if you continue?") ? (W[0].setSelected(!1), d == null || d.setSelected(!0), m.api.setFocusedCell(d.rowIndex, "CURRENT_NODE_DESC")) : (d = W[0], u = W[0].data, St(u)) : zt();
|
|
23527
23531
|
});
|
|
23528
23532
|
}, oe = (y) => {
|
|
23529
23533
|
const { orgHierarchy: M, ...m } = y.node.data, W = [];
|
|
@@ -23599,7 +23603,7 @@ const Yd = Ot({
|
|
|
23599
23603
|
}), W.push({
|
|
23600
23604
|
name: g.Core.$t("ERX.ErMenuDevPlat.AddDataRelation") || "Add DataRelations",
|
|
23601
23605
|
action: async () => {
|
|
23602
|
-
Xt(m.DATASET_NAME), b.Context.IsChanged &&
|
|
23606
|
+
Xt(m.DATASET_NAME), b.Context.IsChanged && St(u);
|
|
23603
23607
|
},
|
|
23604
23608
|
icon: g.Core.createErSvgElement("add-relation"),
|
|
23605
23609
|
disabled: !1
|
|
@@ -23760,7 +23764,7 @@ const Yd = Ot({
|
|
|
23760
23764
|
g.Core.messageError(ne.SysInfo.Msg);
|
|
23761
23765
|
return;
|
|
23762
23766
|
}
|
|
23763
|
-
|
|
23767
|
+
St(u);
|
|
23764
23768
|
});
|
|
23765
23769
|
},
|
|
23766
23770
|
icon: g.Core.createErSvgElement("reset"),
|
|
@@ -23859,11 +23863,11 @@ const Yd = Ot({
|
|
|
23859
23863
|
_ = new g.PopFreeHelper(E(), m.FORM_NAME, m.FUNCTION_ID, Ve);
|
|
23860
23864
|
const Oe = () => {
|
|
23861
23865
|
var ne;
|
|
23862
|
-
(ne = _.Context) != null && ne.configUpdate &&
|
|
23866
|
+
(ne = _.Context) != null && ne.configUpdate && St(u);
|
|
23863
23867
|
};
|
|
23864
23868
|
_.setEvent("close", Oe), _.ShowOkButton = !1, _.ShowCancelButton = !1, _.show(null, Oe, Oe);
|
|
23865
23869
|
} else ((m == null ? void 0 : m.FUNC_TYPE) === "G" || (m == null ? void 0 : m.FUNC_TYPE) === "P") && (F = new g.PopQueryHelper(E(), m.FORM_NAME, m.FUNCTION_ID, Ve), F.MainViewConfigId = m.FUNCTION_ID, F.DetailViewConfigId = "", F.setEvent("close", () => {
|
|
23866
|
-
|
|
23870
|
+
St(u);
|
|
23867
23871
|
}), F.ShowOkButton = !1, F.ShowCancelButton = !1, F.ShowQueryButton = !1, F.show(null));
|
|
23868
23872
|
},
|
|
23869
23873
|
icon: g.Core.createErSvgElement("preview"),
|
|
@@ -23896,7 +23900,7 @@ const Yd = Ot({
|
|
|
23896
23900
|
suffixIcon: g.Core.createErSvgVNode(y.PARTITION_TYPE === "R" ? "red-light" : y.PARTITION_TYPE === "P" ? "yellow-light" : "green-light")
|
|
23897
23901
|
};
|
|
23898
23902
|
}, nt = (y) => {
|
|
23899
|
-
u &&
|
|
23903
|
+
u && St(u);
|
|
23900
23904
|
}, T = (y, M, m) => ({
|
|
23901
23905
|
name: "Translate",
|
|
23902
23906
|
icon: g.Core.createErIconElement(ze(Xa)),
|
|
@@ -23977,7 +23981,7 @@ const Yd = Ot({
|
|
|
23977
23981
|
Qe.dirty && re.push(Qe.toJSON());
|
|
23978
23982
|
}), re.length > 0) {
|
|
23979
23983
|
const Qe = g.Core.buildEiInfo(re, "TSI00GRIDCOLUMN_MODIFY"), Ke = await g.Core.callService(t, Qe);
|
|
23980
|
-
Ke.getStatus() < 0 ? g.Core.messageError(Ke.getMsg()) : (K.queryMainGridInfo(!1), g.Core.messageInfo("Batch Edit Properties Success"),
|
|
23984
|
+
Ke.getStatus() < 0 ? g.Core.messageError(Ke.getMsg()) : (K.queryMainGridInfo(!1), g.Core.messageInfo("Batch Edit Properties Success"), St(u));
|
|
23981
23985
|
} else
|
|
23982
23986
|
g.Core.messageInfo("No properties changed in checked rows");
|
|
23983
23987
|
}
|
|
@@ -24056,7 +24060,7 @@ const Yd = Ot({
|
|
|
24056
24060
|
icon: g.Core.createErSvgElement("relation"),
|
|
24057
24061
|
action: async (Oe) => {
|
|
24058
24062
|
const ne = y.node.childrenAfterFilter[0].data.DATASET_NAME, K = y.node.childrenAfterFilter[0].data.RELATION_NAME;
|
|
24059
|
-
ne && K && (Xt(ne, K), await b.show(null), b.Context.IsChanged &&
|
|
24063
|
+
ne && K && (Xt(ne, K), await b.show(null), b.Context.IsChanged && St(u));
|
|
24060
24064
|
}
|
|
24061
24065
|
},
|
|
24062
24066
|
{
|
|
@@ -24070,7 +24074,7 @@ const Yd = Ot({
|
|
|
24070
24074
|
g.Core.messageError(Be.getMsg());
|
|
24071
24075
|
return;
|
|
24072
24076
|
}
|
|
24073
|
-
|
|
24077
|
+
St(u);
|
|
24074
24078
|
});
|
|
24075
24079
|
}
|
|
24076
24080
|
}
|
|
@@ -24102,7 +24106,7 @@ const Yd = Ot({
|
|
|
24102
24106
|
}) && (y.FORMAT_STRING = "#,##0.###")) : y.DATA_TYPE === "3" && (y.FORMAT_TYPE = "DateTime", (K = y.COL_CAPTION) != null && K.includes("日期") ? y.FORMAT_STRING = "yyyy-MM-dd" : ((Ne = y.COL_CAPTION) != null && Ne.includes("时间") || (Be = y.COL_CAPTION) != null && Be.includes("时刻")) && (y.FORMAT_STRING = "yyyy-MM-dd HH:mm:ss"))), y;
|
|
24103
24107
|
}, zt = () => {
|
|
24104
24108
|
le.value = !1, Z.value = !1, De.value = !1, Ce.value = !1, J.value = !1, j.value = !1, X.value = !1, N.value = "Excute Result", Q.value = !0, o.clearGridData("gridView0");
|
|
24105
|
-
},
|
|
24109
|
+
}, St = (y) => {
|
|
24106
24110
|
var W, Oe;
|
|
24107
24111
|
let { orgHierarchy: M, ...m } = y;
|
|
24108
24112
|
(W = m.NODE_TYPE) != null && W.endsWith("_ROOT") || (Oe = m.NODE_TYPE) != null && Oe.endsWith("_MODULE") ? (le.value = !1, Z.value = !1, De.value = !1, Ce.value = !1, J.value = !1, j.value = !1, X.value = !1, N.value = "Excute Result", Q.value = !0, m = { ...m, CULTURE: we.value, QUERY_TYPE: "tsi00trace", FUNCTION_ID: "DevOps" }) : m.NODE_TYPE === "SI0112_DATASOURCE" ? (Z.value = !1, Q.value = !1, le.value = !1, De.value = !1, Ce.value = !1, j.value = !1, X.value = !1, J.value = !0, m = { ...m, CULTURE: we.value, QUERY_TYPE: "si0112_details", COMPANY_CODE: "BS" }) : m.NODE_TYPE === "SI0114_DATASET" || m.NODE_TYPE === "SI0114_DATATABLE" ? (Z.value = !1, Q.value = !1, le.value = !1, De.value = !1, Ce.value = !1, J.value = !1, X.value = !1, N.value = "Excute Result", j.value = !0, Zt("gridView7", m), m = { ...m, CULTURE: we.value, QUERY_TYPE: "si0114_details", COMPANY_CODE: "BS" }) : m.NODE_TYPE === "SI0115_FORM" ? (o.reloadDropDownDataSource("gridView3", "BUTTON_NAME", () => {
|
|
@@ -24785,7 +24789,7 @@ const Yd = Ot({
|
|
|
24785
24789
|
}, $e = async () => {
|
|
24786
24790
|
const y = await o.Initialize(
|
|
24787
24791
|
ht,
|
|
24788
|
-
|
|
24792
|
+
yt,
|
|
24789
24793
|
"",
|
|
24790
24794
|
Ve
|
|
24791
24795
|
);
|
|
@@ -24844,7 +24848,7 @@ const Yd = Ot({
|
|
|
24844
24848
|
};
|
|
24845
24849
|
Wt(async () => {
|
|
24846
24850
|
var M;
|
|
24847
|
-
if (
|
|
24851
|
+
if (yt = "SI00AllDevConfig", Ve = "JAER01/getFormConfig", new ResizeObserver((m) => {
|
|
24848
24852
|
var Oe;
|
|
24849
24853
|
const W = m[0].contentRect.width;
|
|
24850
24854
|
H.value = m[0].contentRect.height - ((Oe = r.options) != null && Oe.isDevPlat ? 50 : 150), vt(W, 350);
|
|
@@ -24919,7 +24923,7 @@ const Yd = Ot({
|
|
|
24919
24923
|
let Oe = "";
|
|
24920
24924
|
(u == null ? void 0 : u.NODE_TYPE) === "SI0115_FORM" && (Oe = (K = o.getGridCurrentRow("gridView4")) == null ? void 0 : K.CODE_CLASS);
|
|
24921
24925
|
const ne = await g.Core.callService(t, W, void 0, { messageError: !0 });
|
|
24922
|
-
ne.getStatus() >= 0 ? (
|
|
24926
|
+
ne.getStatus() >= 0 ? (St(u), Oe && o.setGridIndicator("gridView4", { CODE_CLASS: Oe })) : g.Core.messageError(ne.getMsg());
|
|
24923
24927
|
};
|
|
24924
24928
|
(u == null ? void 0 : u.NODE_TYPE) === "SI0114_DATATABLE" ? y("gridView7") : (u == null ? void 0 : u.NODE_TYPE) === "SI0115_FORM" ? y("gridView3,gridView4,gridView5,gridView19") : (u == null ? void 0 : u.NODE_TYPE) === "SI0115_VIEW" ? y(`${Se.value},gridView2,treeList1,gridView11`) : (u == null ? void 0 : u.NODE_TYPE) === "SI0116_BASICCODE" && y("LayoutGroupCodeClass,gridView12");
|
|
24925
24929
|
}, vt = (y, M) => {
|