@baosight/er4j 0.0.10 → 0.0.11
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/README.md +1 -1
- package/er4j-dist/ErPopFree-TQj3wzrS.js +5 -0
- package/er4j-dist/ErPopFree-TQj3wzrS.js.map +1 -0
- package/er4j-dist/ErPopQuery-BS0sgx_I.js +5 -0
- package/er4j-dist/ErPopQuery-BS0sgx_I.js.map +1 -0
- package/er4j-dist/{ErPopRichEditor-CxnCSrME.js → ErPopRichEditor-UIPFVkDP.js} +2 -2
- package/er4j-dist/{ErPopRichEditor-CxnCSrME.js.map → ErPopRichEditor-UIPFVkDP.js.map} +1 -1
- package/er4j-dist/{ErPopTree-TFDcNTQh.js → ErPopTree-DshpECo5.js} +2 -2
- package/er4j-dist/{ErPopTree-TFDcNTQh.js.map → ErPopTree-DshpECo5.js.map} +1 -1
- package/er4j-dist/er4j.es.js +1 -1
- package/er4j-dist/er4j.umd.js +11 -11
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/er4j-dist/{index-CLqXttWT.js → index-CMksYzVy.js} +665 -663
- package/er4j-dist/index-CMksYzVy.js.map +1 -0
- package/package.json +1 -1
- package/er4j-dist/ErPopFree-DyCZjm54.js +0 -5
- package/er4j-dist/ErPopFree-DyCZjm54.js.map +0 -1
- package/er4j-dist/ErPopQuery-DSqjmJgw.js +0 -5
- package/er4j-dist/ErPopQuery-DSqjmJgw.js.map +0 -1
- package/er4j-dist/index-CLqXttWT.js.map +0 -1
|
@@ -2456,13 +2456,13 @@ function cl() {
|
|
|
2456
2456
|
function h(G) {
|
|
2457
2457
|
return G && typeof G == "object" && "default" in G ? G : { default: G };
|
|
2458
2458
|
}
|
|
2459
|
-
var
|
|
2459
|
+
var U = h(a), ee = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(G, V) {
|
|
2460
2460
|
return V === "W" ? G + "周" : G + "日";
|
|
2461
2461
|
}, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(G, V) {
|
|
2462
2462
|
var W = 100 * G + V;
|
|
2463
2463
|
return W < 600 ? "凌晨" : W < 900 ? "早上" : W < 1100 ? "上午" : W < 1300 ? "中午" : W < 1800 ? "下午" : "晚上";
|
|
2464
2464
|
} };
|
|
2465
|
-
return
|
|
2465
|
+
return U.default.locale(ee, null, !0), ee;
|
|
2466
2466
|
});
|
|
2467
2467
|
}(pi)), pi.exports;
|
|
2468
2468
|
}
|
|
@@ -2476,13 +2476,13 @@ function fl() {
|
|
|
2476
2476
|
function h(G) {
|
|
2477
2477
|
return G && typeof G == "object" && "default" in G ? G : { default: G };
|
|
2478
2478
|
}
|
|
2479
|
-
var
|
|
2479
|
+
var U = h(a), ee = { name: "zh-hk", months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "週日_週一_週二_週三_週四_週五_週六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), ordinal: function(G, V) {
|
|
2480
2480
|
return V === "W" ? G + "週" : G + "日";
|
|
2481
2481
|
}, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日 HH:mm", LLLL: "YYYY年M月D日dddd HH:mm", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s內", past: "%s前", s: "幾秒", m: "一分鐘", mm: "%d 分鐘", h: "一小時", hh: "%d 小時", d: "一天", dd: "%d 天", M: "一個月", MM: "%d 個月", y: "一年", yy: "%d 年" }, meridiem: function(G, V) {
|
|
2482
2482
|
var W = 100 * G + V;
|
|
2483
2483
|
return W < 600 ? "凌晨" : W < 900 ? "早上" : W < 1100 ? "上午" : W < 1300 ? "中午" : W < 1800 ? "下午" : "晚上";
|
|
2484
2484
|
} };
|
|
2485
|
-
return
|
|
2485
|
+
return U.default.locale(ee, null, !0), ee;
|
|
2486
2486
|
});
|
|
2487
2487
|
}(fi)), fi.exports;
|
|
2488
2488
|
}
|
|
@@ -2494,8 +2494,8 @@ function hl() {
|
|
|
2494
2494
|
l.exports = h();
|
|
2495
2495
|
})(gl, function() {
|
|
2496
2496
|
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(a) {
|
|
2497
|
-
var h = ["th", "st", "nd", "rd"],
|
|
2498
|
-
return "[" + a + (h[(
|
|
2497
|
+
var h = ["th", "st", "nd", "rd"], U = a % 100;
|
|
2498
|
+
return "[" + a + (h[(U - 20) % 10] || h[U] || h[0]) + "]";
|
|
2499
2499
|
} };
|
|
2500
2500
|
});
|
|
2501
2501
|
}(gi)), gi.exports;
|
|
@@ -2510,7 +2510,7 @@ function El() {
|
|
|
2510
2510
|
function h(X) {
|
|
2511
2511
|
return X && typeof X == "object" && "default" in X ? X : { default: X };
|
|
2512
2512
|
}
|
|
2513
|
-
var
|
|
2513
|
+
var U = h(a), ee = "يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"), G = { 1: "١", 2: "٢", 3: "٣", 4: "٤", 5: "٥", 6: "٦", 7: "٧", 8: "٨", 9: "٩", 0: "٠" }, V = { "١": "1", "٢": "2", "٣": "3", "٤": "4", "٥": "5", "٦": "6", "٧": "7", "٨": "8", "٩": "9", "٠": "0" }, W = { name: "ar", weekdays: "الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"), weekdaysShort: "أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"), weekdaysMin: "ح_ن_ث_ر_خ_ج_س".split("_"), months: ee, monthsShort: ee, weekStart: 6, meridiem: function(X) {
|
|
2514
2514
|
return X > 12 ? "م" : "ص";
|
|
2515
2515
|
}, relativeTime: { future: "بعد %s", past: "منذ %s", s: "ثانية واحدة", m: "دقيقة واحدة", mm: "%d دقائق", h: "ساعة واحدة", hh: "%d ساعات", d: "يوم واحد", dd: "%d أيام", M: "شهر واحد", MM: "%d أشهر", y: "عام واحد", yy: "%d أعوام" }, preparse: function(X) {
|
|
2516
2516
|
return X.replace(/[١٢٣٤٥٦٧٨٩٠]/g, function(q) {
|
|
@@ -2523,7 +2523,7 @@ function El() {
|
|
|
2523
2523
|
}, ordinal: function(X) {
|
|
2524
2524
|
return X;
|
|
2525
2525
|
}, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "D/M/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" } };
|
|
2526
|
-
return
|
|
2526
|
+
return U.default.locale(W, null, !0), W;
|
|
2527
2527
|
});
|
|
2528
2528
|
}(hi)), hi.exports;
|
|
2529
2529
|
}
|
|
@@ -2537,10 +2537,10 @@ function _l() {
|
|
|
2537
2537
|
function h(G) {
|
|
2538
2538
|
return G && typeof G == "object" && "default" in G ? G : { default: G };
|
|
2539
2539
|
}
|
|
2540
|
-
var
|
|
2540
|
+
var U = h(a), ee = { name: "id", weekdays: "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"), months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"), weekdaysShort: "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"), monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"), weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"), weekStart: 1, formats: { LT: "HH.mm", LTS: "HH.mm.ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY [pukul] HH.mm", LLLL: "dddd, D MMMM YYYY [pukul] HH.mm" }, relativeTime: { future: "dalam %s", past: "%s yang lalu", s: "beberapa detik", m: "semenit", mm: "%d menit", h: "sejam", hh: "%d jam", d: "sehari", dd: "%d hari", M: "sebulan", MM: "%d bulan", y: "setahun", yy: "%d tahun" }, ordinal: function(G) {
|
|
2541
2541
|
return G + ".";
|
|
2542
2542
|
} };
|
|
2543
|
-
return
|
|
2543
|
+
return U.default.locale(ee, null, !0), ee;
|
|
2544
2544
|
});
|
|
2545
2545
|
}(mi)), mi.exports;
|
|
2546
2546
|
}
|
|
@@ -3657,9 +3657,9 @@ const Sl = (l) => {
|
|
|
3657
3657
|
}
|
|
3658
3658
|
}, bl = () => "default", Ut = (l) => (l = l || bl(), l === "ghostShark" ? Ml : Al), wl = (l, _) => {
|
|
3659
3659
|
var V;
|
|
3660
|
-
const a = window.__MICRO_APP_ENVIRONMENT__ ? "micro-app-body" : "html", h = "default",
|
|
3660
|
+
const a = window.__MICRO_APP_ENVIRONMENT__ ? "micro-app-body" : "html", h = "default", U = "xr-er-theme-dark", ee = "xr-er-theme-light";
|
|
3661
3661
|
l = l || h;
|
|
3662
|
-
const G = l === h ? ee :
|
|
3662
|
+
const G = l === h ? ee : U;
|
|
3663
3663
|
(V = document.querySelector(a)) == null || V.classList.add(G);
|
|
3664
3664
|
};
|
|
3665
3665
|
Bt.locale("zh-cn");
|
|
@@ -3682,7 +3682,7 @@ const Rl = Ot({
|
|
|
3682
3682
|
props: ["params"],
|
|
3683
3683
|
setup: (l) => {
|
|
3684
3684
|
var Pe;
|
|
3685
|
-
const _ = N(null), a = N(g.Core.toDateTime(l.params.value)), h = N(l.params.max),
|
|
3685
|
+
const _ = N(null), a = N(g.Core.toDateTime(l.params.value)), h = N(l.params.max), U = N(l.params.min), ee = N(l.params.showTime), G = N(l.params.format), V = N(l.params.picker), W = N(!0), X = N(!1), q = N(so()), le = N(Ut());
|
|
3686
3686
|
window.$wujie && ((Pe = window.$wujie.bus) == null || Pe.$on("changeThemeEmit", (Ke) => {
|
|
3687
3687
|
le.value = Ut();
|
|
3688
3688
|
}));
|
|
@@ -3709,7 +3709,7 @@ const Rl = Ot({
|
|
|
3709
3709
|
value: a,
|
|
3710
3710
|
dateInputRef: _,
|
|
3711
3711
|
max: h,
|
|
3712
|
-
min:
|
|
3712
|
+
min: U,
|
|
3713
3713
|
showTime: ee,
|
|
3714
3714
|
format: G,
|
|
3715
3715
|
picker: V,
|
|
@@ -3729,11 +3729,11 @@ const Rl = Ot({
|
|
|
3729
3729
|
}
|
|
3730
3730
|
}), Jt = (l, _) => {
|
|
3731
3731
|
const a = l.__vccOpts || l;
|
|
3732
|
-
for (const [h,
|
|
3733
|
-
a[h] =
|
|
3732
|
+
for (const [h, U] of _)
|
|
3733
|
+
a[h] = U;
|
|
3734
3734
|
return a;
|
|
3735
3735
|
};
|
|
3736
|
-
function Nl(l, _, a, h,
|
|
3736
|
+
function Nl(l, _, a, h, U, ee) {
|
|
3737
3737
|
const G = Xe("a-input"), V = Xe("a-tooltip"), W = Xe("a-date-picker"), X = Xe("a-config-providver"), q = ha("focus");
|
|
3738
3738
|
return B(), he(X, {
|
|
3739
3739
|
theme: l.antdTheme,
|
|
@@ -3803,7 +3803,7 @@ const ka = /* @__PURE__ */ Jt(Rl, [["render", Nl]]), Pl = Ot({
|
|
|
3803
3803
|
},
|
|
3804
3804
|
setup: (l) => {
|
|
3805
3805
|
var R, Le;
|
|
3806
|
-
const _ = N(null), a = N(l.params.multiple ? "multiple" : "single"), h = N(l.params.value),
|
|
3806
|
+
const _ = N(null), a = N(l.params.multiple ? "multiple" : "single"), h = N(l.params.value), U = N(""), ee = N(null), G = N(""), V = [], W = "DropdownEditor", X = (R = l.params.colDef.context) == null ? void 0 : R.iconUrlMap;
|
|
3807
3807
|
let q = [], le = l.params.valueField || "CODE", Fe = l.params.textField || "CODE_DESC_1_CONTENT";
|
|
3808
3808
|
const Te = N(Ut()), Ve = N(so());
|
|
3809
3809
|
window.$wujie && ((Le = window.$wujie.bus) == null || Le.$on("changeThemeEmit", (De) => {
|
|
@@ -3834,7 +3834,7 @@ const ka = /* @__PURE__ */ Jt(Rl, [["render", Nl]]), Pl = Ot({
|
|
|
3834
3834
|
De.startsWith("IconFont:") ? (De = De.replace("IconFont:", ""), _e = g.Core.createErSvgElement(De)) : De.startsWith("ImgUrl:") && (De = De.replace("ImgUrl:", ""), _e = g.Core.createRemoteImgElement(De)), _e && (_e.style.paddingTop = "1px", xe.appendChild(_e));
|
|
3835
3835
|
const ye = document.createElement("span");
|
|
3836
3836
|
return ye.innerHTML = $e, ye.style.paddingLeft = "3px", xe.appendChild(ye), xe;
|
|
3837
|
-
},
|
|
3837
|
+
}, x = (De) => {
|
|
3838
3838
|
var xe, _e, ye;
|
|
3839
3839
|
const $e = [];
|
|
3840
3840
|
return De.api.getDisplayedRowCount() > 0 && ($e.push("copy", "copyWithHeaders"), ((_e = (xe = De.columnApi) == null ? void 0 : xe.getRowGroupColumns()) == null ? void 0 : _e.length) > 0 && $e.push("separator", "expandAll", "contractAll")), (ye = De.api) != null && ye.isColumnFilterPresent() && ($e.push("separator"), $e.push({
|
|
@@ -3848,7 +3848,7 @@ const ka = /* @__PURE__ */ Jt(Rl, [["render", Nl]]), Pl = Ot({
|
|
|
3848
3848
|
return ma(() => {
|
|
3849
3849
|
var De, $e, xe, _e, ye;
|
|
3850
3850
|
if (l.params.readonly)
|
|
3851
|
-
|
|
3851
|
+
U.value = l.params.colDef.refData[l.params.value] || l.params.value;
|
|
3852
3852
|
else {
|
|
3853
3853
|
const Re = l.params.formHelper;
|
|
3854
3854
|
if (Re && Re.DropDownBindSource[l.params.configId] && Re.DropDownBindSource[l.params.configId][l.params.colDef.colId]) {
|
|
@@ -3988,7 +3988,7 @@ const ka = /* @__PURE__ */ Jt(Rl, [["render", Nl]]), Pl = Ot({
|
|
|
3988
3988
|
dropDownStyle: G,
|
|
3989
3989
|
props: l,
|
|
3990
3990
|
value: h,
|
|
3991
|
-
displayText:
|
|
3991
|
+
displayText: U,
|
|
3992
3992
|
statusBar: ee,
|
|
3993
3993
|
agGridVueDropdownRef: _,
|
|
3994
3994
|
rowSelection: a,
|
|
@@ -3997,7 +3997,7 @@ const ka = /* @__PURE__ */ Jt(Rl, [["render", Nl]]), Pl = Ot({
|
|
|
3997
3997
|
getAgLocaleText: si,
|
|
3998
3998
|
CheckCircleOutlined: Ei,
|
|
3999
3999
|
CloseCircleOutlined: Pi,
|
|
4000
|
-
getContextMenuItems:
|
|
4000
|
+
getContextMenuItems: x,
|
|
4001
4001
|
setBorder: qe,
|
|
4002
4002
|
confirmClick: je,
|
|
4003
4003
|
cancelClick: ce,
|
|
@@ -4013,7 +4013,7 @@ const ka = /* @__PURE__ */ Jt(Rl, [["render", Nl]]), Pl = Ot({
|
|
|
4013
4013
|
key: 0,
|
|
4014
4014
|
class: "gridDropDownEditorFooter"
|
|
4015
4015
|
};
|
|
4016
|
-
function xl(l, _, a, h,
|
|
4016
|
+
function xl(l, _, a, h, U, ee) {
|
|
4017
4017
|
var le, Fe, Te;
|
|
4018
4018
|
const G = Xe("a-input"), V = Xe("a-config-providver"), W = Xe("ag-grid-vue"), X = Xe("a-button"), q = ha("focus");
|
|
4019
4019
|
return l.props.params.readonly ? (B(), tt("div", kl, [
|
|
@@ -4103,7 +4103,7 @@ const La = /* @__PURE__ */ Jt(Pl, [["render", xl]]), Bl = Ot({
|
|
|
4103
4103
|
},
|
|
4104
4104
|
setup: (l) => {
|
|
4105
4105
|
var Fe;
|
|
4106
|
-
const _ = N(null), a = N(l.params.value), h = N(!1),
|
|
4106
|
+
const _ = N(null), a = N(l.params.value), h = N(!1), U = N(so()), ee = N(Ut());
|
|
4107
4107
|
window.$wujie && ((Fe = window.$wujie.bus) == null || Fe.$on("changeThemeEmit", (Te) => {
|
|
4108
4108
|
ee.value = Ut();
|
|
4109
4109
|
}));
|
|
@@ -4148,7 +4148,7 @@ const La = /* @__PURE__ */ Jt(Pl, [["render", xl]]), Bl = Ot({
|
|
|
4148
4148
|
props: l,
|
|
4149
4149
|
value: a,
|
|
4150
4150
|
inputRef: _,
|
|
4151
|
-
antdLocale:
|
|
4151
|
+
antdLocale: U,
|
|
4152
4152
|
antdTheme: ee,
|
|
4153
4153
|
EllipsisOutlined: vi,
|
|
4154
4154
|
ExclamationCircleOutlined: qo,
|
|
@@ -4162,7 +4162,7 @@ const La = /* @__PURE__ */ Jt(Pl, [["render", xl]]), Bl = Ot({
|
|
|
4162
4162
|
};
|
|
4163
4163
|
}
|
|
4164
4164
|
});
|
|
4165
|
-
function Gl(l, _, a, h,
|
|
4165
|
+
function Gl(l, _, a, h, U, ee) {
|
|
4166
4166
|
const G = Xe("a-tooltip"), V = Xe("a-input"), W = Xe("a-button"), X = Xe("a-input-group"), q = Xe("a-config-providver");
|
|
4167
4167
|
return B(), he(q, {
|
|
4168
4168
|
theme: l.antdTheme,
|
|
@@ -4226,7 +4226,7 @@ const xa = /* @__PURE__ */ Jt(Bl, [["render", Gl]]), Hl = Ot({
|
|
|
4226
4226
|
return W === "255,255,255,1" ? "" : W;
|
|
4227
4227
|
} else
|
|
4228
4228
|
return "";
|
|
4229
|
-
},
|
|
4229
|
+
}, U = () => !1, ee = () => !1, G = (V) => {
|
|
4230
4230
|
a.value = "#ffffff";
|
|
4231
4231
|
};
|
|
4232
4232
|
return ma(() => {
|
|
@@ -4243,12 +4243,12 @@ const xa = /* @__PURE__ */ Jt(Bl, [["render", Gl]]), Hl = Ot({
|
|
|
4243
4243
|
inputRef: _,
|
|
4244
4244
|
clearButtonClick: G,
|
|
4245
4245
|
getValue: h,
|
|
4246
|
-
isCancelBeforeStart:
|
|
4246
|
+
isCancelBeforeStart: U,
|
|
4247
4247
|
isCancelAfterEnd: ee
|
|
4248
4248
|
};
|
|
4249
4249
|
}
|
|
4250
4250
|
}), Ul = { class: "cell-color-editor-container" }, Vl = { class: "cell-color-editor-button-container" };
|
|
4251
|
-
function Yl(l, _, a, h,
|
|
4251
|
+
function Yl(l, _, a, h, U, ee) {
|
|
4252
4252
|
return B(), tt("div", Ul, [
|
|
4253
4253
|
Lt(we("input", {
|
|
4254
4254
|
"onUpdate:modelValue": _[0] || (_[0] = (G) => l.value = G),
|
|
@@ -4278,7 +4278,7 @@ const Ba = /* @__PURE__ */ Jt(Hl, [["render", Yl]]), $l = Ot({
|
|
|
4278
4278
|
},
|
|
4279
4279
|
setup: (l) => {
|
|
4280
4280
|
var le;
|
|
4281
|
-
const _ = N(null), a = N(l.params.value === 0 ? "" : l.params.value), h = N(!1),
|
|
4281
|
+
const _ = N(null), a = N(l.params.value === 0 ? "" : l.params.value), h = N(!1), U = N(so()), ee = N(Ut());
|
|
4282
4282
|
window.$wujie && ((le = window.$wujie.bus) == null || le.$on("changeThemeEmit", (Fe) => {
|
|
4283
4283
|
ee.value = Ut();
|
|
4284
4284
|
}));
|
|
@@ -4305,7 +4305,7 @@ const Ba = /* @__PURE__ */ Jt(Hl, [["render", Yl]]), $l = Ot({
|
|
|
4305
4305
|
props: l,
|
|
4306
4306
|
value: a,
|
|
4307
4307
|
inputRef: _,
|
|
4308
|
-
antdLocale:
|
|
4308
|
+
antdLocale: U,
|
|
4309
4309
|
antdTheme: ee,
|
|
4310
4310
|
ExclamationCircleOutlined: qo,
|
|
4311
4311
|
invalid: h,
|
|
@@ -4317,7 +4317,7 @@ const Ba = /* @__PURE__ */ Jt(Hl, [["render", Yl]]), $l = Ot({
|
|
|
4317
4317
|
};
|
|
4318
4318
|
}
|
|
4319
4319
|
});
|
|
4320
|
-
function Wl(l, _, a, h,
|
|
4320
|
+
function Wl(l, _, a, h, U, ee) {
|
|
4321
4321
|
const G = Xe("a-tooltip"), V = Xe("a-input"), W = Xe("a-config-providver");
|
|
4322
4322
|
return B(), he(W, {
|
|
4323
4323
|
theme: l.antdTheme,
|
|
@@ -4368,7 +4368,7 @@ const Ga = /* @__PURE__ */ Jt($l, [["render", Wl]]), Ql = Ot({
|
|
|
4368
4368
|
},
|
|
4369
4369
|
setup: (l) => {
|
|
4370
4370
|
var Te;
|
|
4371
|
-
const _ = N(null), a = N(l.params.value || ""), h = N(!1),
|
|
4371
|
+
const _ = N(null), a = N(l.params.value || ""), h = N(!1), U = N(so()), ee = N(Ut());
|
|
4372
4372
|
window.$wujie && ((Te = window.$wujie.bus) == null || Te.$on("changeThemeEmit", (Ve) => {
|
|
4373
4373
|
ee.value = Ut();
|
|
4374
4374
|
}));
|
|
@@ -4403,7 +4403,7 @@ const Ga = /* @__PURE__ */ Jt($l, [["render", Wl]]), Ql = Ot({
|
|
|
4403
4403
|
props: l,
|
|
4404
4404
|
value: a,
|
|
4405
4405
|
inputRef: _,
|
|
4406
|
-
antdLocale:
|
|
4406
|
+
antdLocale: U,
|
|
4407
4407
|
antdTheme: ee,
|
|
4408
4408
|
ExclamationCircleOutlined: qo,
|
|
4409
4409
|
invalid: h,
|
|
@@ -4416,7 +4416,7 @@ const Ga = /* @__PURE__ */ Jt($l, [["render", Wl]]), Ql = Ot({
|
|
|
4416
4416
|
};
|
|
4417
4417
|
}
|
|
4418
4418
|
});
|
|
4419
|
-
function zl(l, _, a, h,
|
|
4419
|
+
function zl(l, _, a, h, U, ee) {
|
|
4420
4420
|
const G = Xe("a-tooltip"), V = Xe("a-input"), W = Xe("a-config-providver");
|
|
4421
4421
|
return B(), he(W, {
|
|
4422
4422
|
theme: l.antdTheme,
|
|
@@ -4463,7 +4463,7 @@ const Ha = /* @__PURE__ */ Jt(Ql, [["render", zl]]), Xl = Ot({
|
|
|
4463
4463
|
},
|
|
4464
4464
|
setup: (l) => {
|
|
4465
4465
|
var at;
|
|
4466
|
-
const _ = N(null), a = N(l.params.value || ""), h = N(!1),
|
|
4466
|
+
const _ = N(null), a = N(l.params.value || ""), h = N(!1), U = N(so()), ee = N(Ut());
|
|
4467
4467
|
window.$wujie && ((at = window.$wujie.bus) == null || at.$on("changeThemeEmit", (qe) => {
|
|
4468
4468
|
ee.value = Ut();
|
|
4469
4469
|
}));
|
|
@@ -4503,7 +4503,7 @@ const Ha = /* @__PURE__ */ Jt(Ql, [["render", zl]]), Xl = Ot({
|
|
|
4503
4503
|
props: l,
|
|
4504
4504
|
value: a,
|
|
4505
4505
|
inputRef: _,
|
|
4506
|
-
antdLocale:
|
|
4506
|
+
antdLocale: U,
|
|
4507
4507
|
antdTheme: ee,
|
|
4508
4508
|
ExclamationCircleOutlined: qo,
|
|
4509
4509
|
invalid: h,
|
|
@@ -4518,7 +4518,7 @@ const Ha = /* @__PURE__ */ Jt(Ql, [["render", zl]]), Xl = Ot({
|
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
4520
|
});
|
|
4521
|
-
function ql(l, _, a, h,
|
|
4521
|
+
function ql(l, _, a, h, U, ee) {
|
|
4522
4522
|
const G = Xe("a-tooltip"), V = Xe("a-textarea"), W = Xe("a-config-providver");
|
|
4523
4523
|
return B(), he(W, {
|
|
4524
4524
|
theme: l.antdTheme,
|
|
@@ -4576,7 +4576,7 @@ const Ua = /* @__PURE__ */ Jt(Xl, [["render", ql]]), jl = Ot({
|
|
|
4576
4576
|
};
|
|
4577
4577
|
}
|
|
4578
4578
|
}), Jl = { style: { overflow: "hidden", textOverflow: "ellipsis" } };
|
|
4579
|
-
function Kl(l, _, a, h,
|
|
4579
|
+
function Kl(l, _, a, h, U, ee) {
|
|
4580
4580
|
return B(), tt("div", Jl, [
|
|
4581
4581
|
we("span", {
|
|
4582
4582
|
style: mt({ paddingRight: "5px", borderLeft: l.value.length > 0 ? "10px solid " + l.ER.Core.toHexColor(l.value) : "" })
|
|
@@ -4593,9 +4593,9 @@ const Zl = /* @__PURE__ */ Jt(jl, [["render", Kl]]), en = Ot({
|
|
|
4593
4593
|
},
|
|
4594
4594
|
props: ["params"],
|
|
4595
4595
|
setup: (l) => {
|
|
4596
|
-
var
|
|
4596
|
+
var U;
|
|
4597
4597
|
const _ = N(so()), a = N(Ut());
|
|
4598
|
-
window.$wujie && ((
|
|
4598
|
+
window.$wujie && ((U = window.$wujie.bus) == null || U.$on("changeThemeEmit", (ee) => {
|
|
4599
4599
|
a.value = Ut();
|
|
4600
4600
|
}));
|
|
4601
4601
|
const h = (ee) => {
|
|
@@ -4618,7 +4618,7 @@ const Zl = /* @__PURE__ */ Jt(jl, [["render", Kl]]), en = Ot({
|
|
|
4618
4618
|
key: 0,
|
|
4619
4619
|
style: { display: "flex" }
|
|
4620
4620
|
}, on = ["onClick"];
|
|
4621
|
-
function an(l, _, a, h,
|
|
4621
|
+
function an(l, _, a, h, U, ee) {
|
|
4622
4622
|
const G = Xe("a-tooltip"), V = Xe("a-config-providver");
|
|
4623
4623
|
return B(), he(V, {
|
|
4624
4624
|
theme: l.antdTheme,
|
|
@@ -4665,13 +4665,13 @@ const rn = /* @__PURE__ */ Jt(en, [["render", an]]), ln = Ot({
|
|
|
4665
4665
|
name: "ProgressBar",
|
|
4666
4666
|
props: ["params"],
|
|
4667
4667
|
setup: (l) => {
|
|
4668
|
-
const _ = N(l.params.value), a = N(l.params.maxValue), h = N(l.params.progressBarColor),
|
|
4668
|
+
const _ = N(l.params.value), a = N(l.params.maxValue), h = N(l.params.progressBarColor), U = () => !l.params.value || l.params.value <= 0 || l.params.maxValue <= 0 ? 0 : l.params.value / l.params.maxValue >= 1 ? "100%" : g.Core.toString(g.Core.toNumber(l.params.value) / g.Core.toNumber(l.params.maxValue) * 100) + "%", ee = () => l.params.value ? l.params.value <= 0 || l.params.maxValue <= 0 ? _ : g.Core.toString(g.Core.round(l.params.value / l.params.maxValue * 100, 2)) + "%" : "";
|
|
4669
4669
|
return $t(() => {
|
|
4670
4670
|
}), {
|
|
4671
4671
|
value: _,
|
|
4672
4672
|
maxValue: a,
|
|
4673
4673
|
progressBarColor: h,
|
|
4674
|
-
percent:
|
|
4674
|
+
percent: U,
|
|
4675
4675
|
labelText: ee,
|
|
4676
4676
|
props: l,
|
|
4677
4677
|
ER: g
|
|
@@ -4686,7 +4686,7 @@ const rn = /* @__PURE__ */ Jt(en, [["render", an]]), ln = Ot({
|
|
|
4686
4686
|
top: 0,
|
|
4687
4687
|
zIndex: 1
|
|
4688
4688
|
} };
|
|
4689
|
-
function sn(l, _, a, h,
|
|
4689
|
+
function sn(l, _, a, h, U, ee) {
|
|
4690
4690
|
return l.value ? (B(), tt("div", {
|
|
4691
4691
|
key: 0,
|
|
4692
4692
|
style: mt({
|
|
@@ -4727,8 +4727,8 @@ const dn = /* @__PURE__ */ Jt(ln, [["render", sn]]), un = Ot({
|
|
|
4727
4727
|
setup: (l) => {
|
|
4728
4728
|
const _ = l.params.click, a = N({});
|
|
4729
4729
|
l.params.color && (a.value.color = l.params.color), l.params.backgroundColor && (a.value.backgroundColor = l.params.backgroundColor), l.params.boderColor && (a.value.boxShadow = `0 0 0 1px ${l.params.boderColor} inset`);
|
|
4730
|
-
const h = (
|
|
4731
|
-
|
|
4730
|
+
const h = (U) => {
|
|
4731
|
+
U.preventDefault(), _ && _ instanceof Function && _(l.params);
|
|
4732
4732
|
};
|
|
4733
4733
|
return $t(() => {
|
|
4734
4734
|
}), {
|
|
@@ -4745,7 +4745,7 @@ const dn = /* @__PURE__ */ Jt(ln, [["render", sn]]), un = Ot({
|
|
|
4745
4745
|
key: 0,
|
|
4746
4746
|
class: "icon"
|
|
4747
4747
|
}, fn = ["xlink:href"], gn = ["src"], hn = ["href"], mn = { key: 5 };
|
|
4748
|
-
function En(l, _, a, h,
|
|
4748
|
+
function En(l, _, a, h, U, ee) {
|
|
4749
4749
|
var W, X, q;
|
|
4750
4750
|
const G = Xe("a-tag"), V = Xe("a-badge");
|
|
4751
4751
|
return B(), tt("div", {
|
|
@@ -4803,16 +4803,16 @@ const oi = /* @__PURE__ */ Jt(un, [["render", En]]), Cn = Ot({
|
|
|
4803
4803
|
},
|
|
4804
4804
|
setup: (l) => {
|
|
4805
4805
|
var ee;
|
|
4806
|
-
const _ = l.params.node.data || {}, a = N(null), h = N(so()),
|
|
4806
|
+
const _ = l.params.node.data || {}, a = N(null), h = N(so()), U = N(Ut());
|
|
4807
4807
|
return window.$wujie && ((ee = window.$wujie.bus) == null || ee.$on("changeThemeEmit", (G) => {
|
|
4808
|
-
|
|
4808
|
+
U.value = Ut();
|
|
4809
4809
|
})), $t(() => {
|
|
4810
4810
|
var G, V, W, X, q, le, Fe, Te, Ve, Ae, at, qe, z;
|
|
4811
4811
|
((G = _.NODE_TYPE) == null ? void 0 : G.toUpperCase()) === "DEVTREE_ROOT" ? a.value = Je(Yi) : ((V = _.NODE_TYPE) == null ? void 0 : V.toUpperCase()) === "SI0114_ROOT" ? a.value = Je($i) : (W = _.NODE_TYPE) != null && W.toUpperCase().endsWith("DATASET") ? a.value = Je(Wi) : (X = _.NODE_TYPE) != null && X.toUpperCase().endsWith("DATATABLE") ? a.value = Je(Qi, { style: { color: "#42b883" } }) : ((q = _.NODE_TYPE) == null ? void 0 : q.toUpperCase()) === "SI0112_ROOT" ? a.value = Je(zi) : (le = _.NODE_TYPE) != null && le.toUpperCase().endsWith("DATASOURCE") ? a.value = Je(Xi, { style: { color: "#42b883" } }) : ((Fe = _.NODE_TYPE) == null ? void 0 : Fe.toUpperCase()) === "SI0115_ROOT" ? a.value = Je(qi) : ((Te = _.NODE_TYPE) == null ? void 0 : Te.toUpperCase()) === "SI0116_ROOT" ? a.value = Je(ji) : (Ve = _.NODE_TYPE) != null && Ve.toUpperCase().endsWith("BASICCODE") ? a.value = Je(Ji, { style: { color: "#42b883" } }) : ((Ae = _.NODE_TYPE) == null ? void 0 : Ae.toUpperCase()) === "SI0117_ROOT" ? a.value = Je(Ki) : (at = _.NODE_TYPE) != null && at.toUpperCase().endsWith("SEQUENCE") ? a.value = Je(Zi, { style: { color: "#42b883" } }) : (qe = _.NODE_TYPE) != null && qe.toUpperCase().endsWith("FORM") ? _.FUNC_TYPE.toUpperCase() === "F" ? a.value = Je(ea, { style: { color: "#42b883" } }) : a.value = Je(ta) : (z = _.NODE_TYPE) != null && z.toUpperCase().endsWith("MODULE") && (l.params.node.expanded ? a.value = Je(Ci, { style: { color: "#f8b932" } }) : a.value = Je(_i, { style: { color: "#f8b932" } }));
|
|
4812
4812
|
}), {
|
|
4813
4813
|
h: Je,
|
|
4814
4814
|
antdLocale: h,
|
|
4815
|
-
antdTheme:
|
|
4815
|
+
antdTheme: U,
|
|
4816
4816
|
ER: g,
|
|
4817
4817
|
props: l,
|
|
4818
4818
|
data: _,
|
|
@@ -4835,7 +4835,7 @@ const oi = /* @__PURE__ */ Jt(un, [["render", En]]), Cn = Ot({
|
|
|
4835
4835
|
};
|
|
4836
4836
|
}
|
|
4837
4837
|
});
|
|
4838
|
-
function _n(l, _, a, h,
|
|
4838
|
+
function _n(l, _, a, h, U, ee) {
|
|
4839
4839
|
const G = Xe("a-badge"), V = Xe("a-config-providver");
|
|
4840
4840
|
return B(), he(V, {
|
|
4841
4841
|
theme: l.antdTheme,
|
|
@@ -4888,7 +4888,7 @@ var g;
|
|
|
4888
4888
|
}
|
|
4889
4889
|
}
|
|
4890
4890
|
ne = new WeakMap(), l.Class = _;
|
|
4891
|
-
const
|
|
4891
|
+
const x = class x {
|
|
4892
4892
|
// 保存 setTimeout 的 ID
|
|
4893
4893
|
/**
|
|
4894
4894
|
* 生成guid
|
|
@@ -5122,7 +5122,7 @@ var g;
|
|
|
5122
5122
|
*/
|
|
5123
5123
|
static getDateTimeFormatString(e, t) {
|
|
5124
5124
|
let o = "";
|
|
5125
|
-
if (t =
|
|
5125
|
+
if (t = x.toString(t, !0) || "YYYY-MM-DD HH:mm:ss", t = t.replaceAll("y", "Y").replaceAll("d", "D"), e == null)
|
|
5126
5126
|
return "";
|
|
5127
5127
|
if (typeof e == "string" && (e = this.getDateTimeByString(e)), e && Bt.isDayjs(e))
|
|
5128
5128
|
o = e.format(t);
|
|
@@ -5401,19 +5401,19 @@ var g;
|
|
|
5401
5401
|
var t, o, i, r, n;
|
|
5402
5402
|
if ((i = (o = (t = e == null ? void 0 : e.gridOptions) == null ? void 0 : t.api) == null ? void 0 : o.gridBodyCtrl) != null && i.scrollVisibleService && ((n = (r = e == null ? void 0 : e.gridOptions) == null ? void 0 : r.api) != null && n.gridBodyCtrl.eGridBody)) {
|
|
5403
5403
|
const s = (A) => {
|
|
5404
|
-
const { height: I, width: F, borderTopWidth: D, borderRightWidth: v, borderBottomWidth:
|
|
5404
|
+
const { height: I, width: F, borderTopWidth: D, borderRightWidth: v, borderBottomWidth: L, borderLeftWidth: w, paddingTop: K, paddingRight: P, paddingBottom: te, paddingLeft: H, marginTop: me, marginRight: ge, marginBottom: $, marginLeft: Y, boxSizing: b } = window.getComputedStyle(A);
|
|
5405
5405
|
return {
|
|
5406
5406
|
height: parseFloat(I),
|
|
5407
5407
|
width: parseFloat(F),
|
|
5408
5408
|
borderTopWidth: parseFloat(D),
|
|
5409
5409
|
borderRightWidth: parseFloat(v),
|
|
5410
|
-
borderBottomWidth: parseFloat(
|
|
5410
|
+
borderBottomWidth: parseFloat(L),
|
|
5411
5411
|
borderLeftWidth: parseFloat(w),
|
|
5412
5412
|
paddingTop: parseFloat(K),
|
|
5413
5413
|
paddingRight: parseFloat(P),
|
|
5414
5414
|
paddingBottom: parseFloat(te),
|
|
5415
|
-
paddingLeft: parseFloat(
|
|
5416
|
-
marginTop: parseFloat(
|
|
5415
|
+
paddingLeft: parseFloat(H),
|
|
5416
|
+
marginTop: parseFloat(me),
|
|
5417
5417
|
marginRight: parseFloat(ge),
|
|
5418
5418
|
marginBottom: parseFloat($),
|
|
5419
5419
|
marginLeft: parseFloat(Y),
|
|
@@ -5436,7 +5436,7 @@ var g;
|
|
|
5436
5436
|
static getGridColumn(e, t) {
|
|
5437
5437
|
var i, r, n, s;
|
|
5438
5438
|
let o;
|
|
5439
|
-
if (t =
|
|
5439
|
+
if (t = x.toString(t, !0), (i = e == null ? void 0 : e.gridOptions) != null && i.api && ((r = e == null ? void 0 : e.gridOptions) != null && r.columnApi))
|
|
5440
5440
|
if (t.length > 0) {
|
|
5441
5441
|
const u = (n = e == null ? void 0 : e.gridOptions) == null ? void 0 : n.columnApi.getColumns();
|
|
5442
5442
|
for (let c = 0; c < u.length; c++)
|
|
@@ -5651,7 +5651,7 @@ var g;
|
|
|
5651
5651
|
* @returns ObservableObject or Json array
|
|
5652
5652
|
*/
|
|
5653
5653
|
static getGridRows(e, t, o = !1, i = !1) {
|
|
5654
|
-
var n, s, u, c, p, m, S, A, I, F, D, v,
|
|
5654
|
+
var n, s, u, c, p, m, S, A, I, F, D, v, L, w, K, P, te, H, me, ge, $, Y, b;
|
|
5655
5655
|
let r = [];
|
|
5656
5656
|
if ((n = e == null ? void 0 : e.gridOptions) != null && n.api && t && t.toString().length > 0) {
|
|
5657
5657
|
const O = (s = e == null ? void 0 : e.gridOptions) == null ? void 0 : s.api, pe = (u = e == null ? void 0 : e.gridOptions) == null ? void 0 : u.columnApi;
|
|
@@ -5690,18 +5690,18 @@ var g;
|
|
|
5690
5690
|
break;
|
|
5691
5691
|
case "modify":
|
|
5692
5692
|
if ((v = (D = e == null ? void 0 : e.gridOptions) == null ? void 0 : D.context) != null && v.bindingSource) {
|
|
5693
|
-
const re = (w = (
|
|
5693
|
+
const re = (w = (L = e == null ? void 0 : e.gridOptions) == null ? void 0 : L.context) == null ? void 0 : w.bindingSource;
|
|
5694
5694
|
r = re == null ? void 0 : re.getRows("updated", o);
|
|
5695
5695
|
}
|
|
5696
5696
|
break;
|
|
5697
5697
|
case "add":
|
|
5698
5698
|
if ((P = (K = e == null ? void 0 : e.gridOptions) == null ? void 0 : K.context) != null && P.bindingSource) {
|
|
5699
|
-
const re = (
|
|
5699
|
+
const re = (H = (te = e == null ? void 0 : e.gridOptions) == null ? void 0 : te.context) == null ? void 0 : H.bindingSource;
|
|
5700
5700
|
r = re == null ? void 0 : re.getRows("created", o);
|
|
5701
5701
|
}
|
|
5702
5702
|
break;
|
|
5703
5703
|
case "all":
|
|
5704
|
-
if ((ge = (
|
|
5704
|
+
if ((ge = (me = e == null ? void 0 : e.gridOptions) == null ? void 0 : me.context) != null && ge.bindingSource) {
|
|
5705
5705
|
const re = (Y = ($ = e == null ? void 0 : e.gridOptions) == null ? void 0 : $.context) == null ? void 0 : Y.bindingSource;
|
|
5706
5706
|
r = re == null ? void 0 : re.getRows("all", o);
|
|
5707
5707
|
}
|
|
@@ -5738,19 +5738,19 @@ var g;
|
|
|
5738
5738
|
return v.type = D.type === "number" ? "N" : "C", v.name = D.name, v.descName = D.caption, v;
|
|
5739
5739
|
}, F = [];
|
|
5740
5740
|
o ? (m = (p = e == null ? void 0 : e.gridOptions) == null ? void 0 : p.columnApi.getAllGridColumns()) == null || m.forEach((D) => {
|
|
5741
|
-
var v,
|
|
5742
|
-
if ((
|
|
5743
|
-
const
|
|
5744
|
-
|
|
5741
|
+
var v, L, w, K, P, te;
|
|
5742
|
+
if ((L = A == null ? void 0 : A.options) != null && L.schema[(v = D.colDef) == null ? void 0 : v.field]) {
|
|
5743
|
+
const H = I((K = A == null ? void 0 : A.options) == null ? void 0 : K.schema[(w = D.colDef) == null ? void 0 : w.field]);
|
|
5744
|
+
H.descName = (te = (P = D.colDef) == null ? void 0 : P.headerName) == null ? void 0 : te.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", ""), r.addColumn(H), F.push({ name: H.name, type: H.type });
|
|
5745
5745
|
}
|
|
5746
5746
|
}) : Object.keys((S = A == null ? void 0 : A.options) == null ? void 0 : S.schema).forEach((D) => {
|
|
5747
|
-
var
|
|
5748
|
-
const v = I((
|
|
5747
|
+
var L;
|
|
5748
|
+
const v = I((L = A == null ? void 0 : A.options) == null ? void 0 : L.schema[D]);
|
|
5749
5749
|
r.addColumn(v), F.push({ name: v.name, type: v.type });
|
|
5750
5750
|
}), n.forEach((D) => {
|
|
5751
5751
|
const v = [];
|
|
5752
|
-
F.forEach((
|
|
5753
|
-
v.push(D[
|
|
5752
|
+
F.forEach((L) => {
|
|
5753
|
+
v.push(D[L.name]);
|
|
5754
5754
|
}), r.addRow(v);
|
|
5755
5755
|
});
|
|
5756
5756
|
}
|
|
@@ -5935,7 +5935,7 @@ var g;
|
|
|
5935
5935
|
break;
|
|
5936
5936
|
}
|
|
5937
5937
|
default: {
|
|
5938
|
-
n = n.replaceAll("-", "").replaceAll(":", "").replaceAll("MM31", "MM" + i.endOf("month").format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("MM/31", "MM/" + i.endOf("month").format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("MM-31", "MM-" + i.endOf("month").format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("yyyy", i.format("YYYYMMDDHHmmss").substring(0, 4)).replaceAll("MM", i.format("YYYYMMDDHHmmss").substring(4, 6)).replaceAll("T", "").replaceAll("dd", i.format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("HH", i.format("YYYYMMDDHHmmss").substring(8, 10)).replaceAll("hh", i.format("YYYYMMDDHHmmss").substring(8, 10)).replaceAll("mm", i.format("YYYYMMDDHHmmss").substring(10, 12)).replaceAll("ss", i.format("YYYYMMDDHHmmss").substring(12, 14)), o =
|
|
5938
|
+
n = n.replaceAll("-", "").replaceAll(":", "").replaceAll("MM31", "MM" + i.endOf("month").format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("MM/31", "MM/" + i.endOf("month").format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("MM-31", "MM-" + i.endOf("month").format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("yyyy", i.format("YYYYMMDDHHmmss").substring(0, 4)).replaceAll("MM", i.format("YYYYMMDDHHmmss").substring(4, 6)).replaceAll("T", "").replaceAll("dd", i.format("YYYYMMDDHHmmss").substring(6, 8)).replaceAll("HH", i.format("YYYYMMDDHHmmss").substring(8, 10)).replaceAll("hh", i.format("YYYYMMDDHHmmss").substring(8, 10)).replaceAll("mm", i.format("YYYYMMDDHHmmss").substring(10, 12)).replaceAll("ss", i.format("YYYYMMDDHHmmss").substring(12, 14)), o = x.toDateTime(n);
|
|
5939
5939
|
break;
|
|
5940
5940
|
}
|
|
5941
5941
|
}
|
|
@@ -5975,7 +5975,7 @@ var g;
|
|
|
5975
5975
|
if ((e == null ? void 0 : e.trim().length) > 0) {
|
|
5976
5976
|
(!t || t.trim().length === 0) && (t = l.SysInfo.CompanyCode), (!o || o.trim().length === 0) && (o = l.SysInfo.CompanyName);
|
|
5977
5977
|
const i = Bt().format("YYYYMMDDHHmmss"), r = {
|
|
5978
|
-
GUID:
|
|
5978
|
+
GUID: x.guid(),
|
|
5979
5979
|
TENANT: h.AppName,
|
|
5980
5980
|
BAOSIGHT: t,
|
|
5981
5981
|
CULTURE: h.Culture,
|
|
@@ -6021,32 +6021,32 @@ var g;
|
|
|
6021
6021
|
let D = "";
|
|
6022
6022
|
const v = t.match(/\{0:\s*([^}]+)\}/g);
|
|
6023
6023
|
if (v && v.length > 0 && (D = v[0], t = v[0].replaceAll("{0:", "").replaceAll("}", "")), t.trim().length === 0)
|
|
6024
|
-
i =
|
|
6024
|
+
i = x.toString(e);
|
|
6025
6025
|
else if (t.trim().toLowerCase() === "percent")
|
|
6026
6026
|
i = Intl.NumberFormat("en-US", { minimumFractionDigits: 0, maximumFractionDigits: 8, style: "percent" }).format(e);
|
|
6027
6027
|
else if (t.trim().toLowerCase() === "permille")
|
|
6028
6028
|
i = Intl.NumberFormat("en-US", { minimumFractionDigits: 0, maximumFractionDigits: 8, style: "percent" }).format(e * 10).replace("%", "‰");
|
|
6029
6029
|
else {
|
|
6030
6030
|
if (t.trim().startsWith("-1=?")) {
|
|
6031
|
-
const
|
|
6031
|
+
const L = t.trim().split("|");
|
|
6032
6032
|
if (e === "\uFEFF" || this.toNumber(e) === -1)
|
|
6033
6033
|
return i = "\uFEFF", i;
|
|
6034
|
-
if (
|
|
6035
|
-
t =
|
|
6034
|
+
if (L.length > 1 && L[1].trim().length > 0)
|
|
6035
|
+
t = L[1].trim();
|
|
6036
6036
|
else
|
|
6037
6037
|
return i = String(e), i;
|
|
6038
6038
|
} else if (t.trim().startsWith("0=?")) {
|
|
6039
|
-
const
|
|
6039
|
+
const L = t.trim().split("|");
|
|
6040
6040
|
if (e === "\uFEFF" || this.toNumber(e) === 0)
|
|
6041
6041
|
return i = "\uFEFF", i;
|
|
6042
|
-
if (
|
|
6043
|
-
t =
|
|
6042
|
+
if (L.length > 1 && L[1].trim().length > 0)
|
|
6043
|
+
t = L[1].trim();
|
|
6044
6044
|
else
|
|
6045
6045
|
return i = String(e), i;
|
|
6046
6046
|
}
|
|
6047
6047
|
var r = t.split("."), n = r.length > 1 ? r[1].length : 0;
|
|
6048
|
-
e =
|
|
6049
|
-
for (var s = e ?
|
|
6048
|
+
e = x.round(Number(e), n);
|
|
6049
|
+
for (var s = e ? x.toString(e).split(".") : ["0"], u = "", c = s[0], p = r[0], m = c.length - 1, S = !1, A = p.length - 1; A >= 0; A--)
|
|
6050
6050
|
switch (p.substr(A, 1)) {
|
|
6051
6051
|
case "#":
|
|
6052
6052
|
m >= 0 && (u = c.substr(m--, 1) + u);
|
|
@@ -6065,8 +6065,8 @@ var g;
|
|
|
6065
6065
|
else
|
|
6066
6066
|
u = c.substr(0, m + 1) + u;
|
|
6067
6067
|
u = u + ".", c = s.length > 1 ? s[1] : "", p = r.length > 1 ? r[1] : "", m = 0;
|
|
6068
|
-
for (let
|
|
6069
|
-
switch (p.substr(
|
|
6068
|
+
for (let L = 0; L < p.length; L++)
|
|
6069
|
+
switch (p.substr(L, 1)) {
|
|
6070
6070
|
case "#":
|
|
6071
6071
|
m < c.length && (u += c.substr(m++, 1));
|
|
6072
6072
|
break;
|
|
@@ -6109,7 +6109,7 @@ var g;
|
|
|
6109
6109
|
for (const F of p)
|
|
6110
6110
|
((r = u[F]) == null ? void 0 : r.type) === "boolean" && (i === "all" || i === "boolean") ? m.push(F) : ((n = u[F]) == null ? void 0 : n.type) === "datetime" && (i === "all" || i === "datetime") ? S.push(F) : ((s = u[F]) == null ? void 0 : s.type) === "number" && typeof c[0][F] != "number" && A.push(F);
|
|
6111
6111
|
o === "strongly" && Object.keys(u).forEach((F) => {
|
|
6112
|
-
c[0][F] === void 0 && (u[F].type === "datetime" ? I[F] = null : u[F].type === "boolean" ? I[F] = u[F].default ? u[F].default : !1 : u[F].type === "number" ? I[F] =
|
|
6112
|
+
c[0][F] === void 0 && (u[F].type === "datetime" ? I[F] = null : u[F].type === "boolean" ? I[F] = u[F].default ? u[F].default : !1 : u[F].type === "number" ? I[F] = x.toNumber(u[F].default) : I[F] = "");
|
|
6113
6113
|
});
|
|
6114
6114
|
for (let F = 0; F < c.length; F++) {
|
|
6115
6115
|
c[F] instanceof l.Model && (c[F] = c[F].toJSON());
|
|
@@ -6117,13 +6117,13 @@ var g;
|
|
|
6117
6117
|
if (o === "weakly")
|
|
6118
6118
|
c[F][D] = c[F][D] ? "1" : "0";
|
|
6119
6119
|
else {
|
|
6120
|
-
const v =
|
|
6120
|
+
const v = x.toString(c[F][D], !0, "toLower");
|
|
6121
6121
|
c[F][D] = v.length > 0 && v !== "0" && v !== "false";
|
|
6122
6122
|
}
|
|
6123
6123
|
for (const D of S)
|
|
6124
|
-
|
|
6124
|
+
x.toString(c[F][D], !0).length > 0 ? o === "weakly" ? (c[F][D] = x.getDateTimeFormatString(c[F][D], "yyyyMMddHHmmss"), (c[F][D].substring(0, 4) === "1901" || c[F][D].substring(0, 4) === "0001") && (c[F][D] = null)) : c[F][D] = x.toDateTime(c[F][D]) : c[F][D] = null;
|
|
6125
6125
|
for (const D of A)
|
|
6126
|
-
c[F][D] =
|
|
6126
|
+
c[F][D] = x.toNumber(c[F][D]);
|
|
6127
6127
|
o === "strongly" && I && (c[F] = { ...I, ...c[F] });
|
|
6128
6128
|
}
|
|
6129
6129
|
}
|
|
@@ -6193,7 +6193,7 @@ var g;
|
|
|
6193
6193
|
return new Promise((i, r) => {
|
|
6194
6194
|
let n = new ht();
|
|
6195
6195
|
if (t.trim().length > 0) {
|
|
6196
|
-
const s = new ht(), u =
|
|
6196
|
+
const s = new ht(), u = x.buildEiBlock([{ QUERY_SQL: t, TOP_ROWS: o }]);
|
|
6197
6197
|
s.addBlock(u), l.Core.callService(e, "si00_toprows_inq", s).then((c) => {
|
|
6198
6198
|
n = c, i(n);
|
|
6199
6199
|
});
|
|
@@ -6217,7 +6217,7 @@ var g;
|
|
|
6217
6217
|
if (t.length > 0) {
|
|
6218
6218
|
const s = new ht();
|
|
6219
6219
|
let u = new eo("QUERY_FILTER");
|
|
6220
|
-
if (o && o.queryFilter && o.queryFilter.length > 0 && (u =
|
|
6220
|
+
if (o && o.queryFilter && o.queryFilter.length > 0 && (u = x.buildEiBlock(o.queryFilter, "QUERY_FILTER")), o && o.customFilter && o.customFilter.trim().length > 0) {
|
|
6221
6221
|
const c = [
|
|
6222
6222
|
{
|
|
6223
6223
|
ITEM_CODE: "SQL",
|
|
@@ -6251,12 +6251,12 @@ var g;
|
|
|
6251
6251
|
const I = o || this.getGridRows(e, "select");
|
|
6252
6252
|
if ((I == null ? void 0 : I.length) > 0) {
|
|
6253
6253
|
let F = !0;
|
|
6254
|
-
if (t && (F = await
|
|
6254
|
+
if (t && (F = await x.messageConfirm(this.$t("ERX.RemoveConfirmMessage") || "是否确认删除?")), F) {
|
|
6255
6255
|
if ((r = e == null ? void 0 : e.gridOptions) != null && r.treeData) {
|
|
6256
6256
|
const D = [];
|
|
6257
6257
|
(s = (n = e == null ? void 0 : e.gridOptions) == null ? void 0 : n.api) == null || s.forEachNode((v) => {
|
|
6258
|
-
for (let
|
|
6259
|
-
I[
|
|
6258
|
+
for (let L = 0; L < I.length; L++)
|
|
6259
|
+
I[L][h.TreeHierarchyFieldName].every((w) => new Set(v.data[h.TreeHierarchyFieldName]).has(w)) && D.push(v.data);
|
|
6260
6260
|
}), (p = (c = (u = e == null ? void 0 : e.gridOptions) == null ? void 0 : u.context) == null ? void 0 : c.bindingSource) == null || p.remove(D);
|
|
6261
6261
|
} else
|
|
6262
6262
|
(A = (S = (m = e == null ? void 0 : e.gridOptions) == null ? void 0 : m.context) == null ? void 0 : S.bindingSource) == null || A.remove(I);
|
|
@@ -6537,7 +6537,7 @@ var g;
|
|
|
6537
6537
|
top: 0;
|
|
6538
6538
|
z-index: 1;
|
|
6539
6539
|
`;
|
|
6540
|
-
return
|
|
6540
|
+
return x.jQuery(`<div style="${s}">
|
|
6541
6541
|
<div style="${c}">${o}</div>
|
|
6542
6542
|
<div style="${u}"></div>
|
|
6543
6543
|
</div>`);
|
|
@@ -6573,7 +6573,7 @@ var g;
|
|
|
6573
6573
|
*/
|
|
6574
6574
|
static getLocalStorage(e, t = !0) {
|
|
6575
6575
|
let o;
|
|
6576
|
-
return (e == null ? void 0 : e.trim().length) > 0 && (o =
|
|
6576
|
+
return (e == null ? void 0 : e.trim().length) > 0 && (o = x.toString(localStorage.getItem(e)), t && localStorage.removeItem(e), o && o.trim().length > 0 && (o = JSON.parse(o))), o;
|
|
6577
6577
|
}
|
|
6578
6578
|
/**
|
|
6579
6579
|
* 获取画面传递参数
|
|
@@ -6637,12 +6637,12 @@ var g;
|
|
|
6637
6637
|
});
|
|
6638
6638
|
}
|
|
6639
6639
|
};
|
|
6640
|
-
T(
|
|
6641
|
-
T(
|
|
6642
|
-
T(
|
|
6643
|
-
T(
|
|
6644
|
-
T(
|
|
6645
|
-
let a =
|
|
6640
|
+
T(x, "spinId", "er-global-spin"), // 固定 ID
|
|
6641
|
+
T(x, "spinCurrentContainer", null), // 当前容器
|
|
6642
|
+
T(x, "spinVnode", null), // 当前 VNode
|
|
6643
|
+
T(x, "spinCurrentTarget", null), // 当前目标元素
|
|
6644
|
+
T(x, "spinTimeoutId", null);
|
|
6645
|
+
let a = x;
|
|
6646
6646
|
l.Core = a;
|
|
6647
6647
|
class h {
|
|
6648
6648
|
/**
|
|
@@ -6743,7 +6743,7 @@ var g;
|
|
|
6743
6743
|
}
|
|
6744
6744
|
}
|
|
6745
6745
|
l.SysInfo = h;
|
|
6746
|
-
class
|
|
6746
|
+
class U extends ht {
|
|
6747
6747
|
constructor(t) {
|
|
6748
6748
|
var o;
|
|
6749
6749
|
super();
|
|
@@ -6769,7 +6769,7 @@ var g;
|
|
|
6769
6769
|
return !!super.getBlock(t);
|
|
6770
6770
|
}
|
|
6771
6771
|
}
|
|
6772
|
-
l.EIInfo =
|
|
6772
|
+
l.EIInfo = U;
|
|
6773
6773
|
class ee extends _ {
|
|
6774
6774
|
constructor(t) {
|
|
6775
6775
|
super();
|
|
@@ -6936,9 +6936,9 @@ var g;
|
|
|
6936
6936
|
TotalCount: s,
|
|
6937
6937
|
FileSize: o.size
|
|
6938
6938
|
}
|
|
6939
|
-
},
|
|
6940
|
-
|
|
6941
|
-
const w = await Qo.post(this._uploadOptions.url || "",
|
|
6939
|
+
}, L = new FormData();
|
|
6940
|
+
L.append("command", "UploadChunk"), L.append("arguments", JSON.stringify(v)), L.append("chunk", D), L.append("rootDirectory", this._uploadOptions.rootDirectory || "");
|
|
6941
|
+
const w = await Qo.post(this._uploadOptions.url || "", L, {
|
|
6942
6942
|
headers: {
|
|
6943
6943
|
"Content-Type": "multipart/form-data"
|
|
6944
6944
|
}
|
|
@@ -7482,53 +7482,53 @@ var g;
|
|
|
7482
7482
|
var s, u, c, p, m;
|
|
7483
7483
|
const r = [], n = fe(this, R).length > 0;
|
|
7484
7484
|
if (o && (kt(this, R, []), kt(this, Le, []), kt(this, De, []), kt(this, $e, [])), t !== void 0 && t.length > 0 && ((s = this.options) != null && s.schema)) {
|
|
7485
|
-
const S = this.options.schema, A = Object.keys(t[0]), I = Object.keys(S), F = I.filter((P) => A.includes(P)), D = I.filter((P) => !A.includes(P)), v = /* @__PURE__ */ new Map(),
|
|
7485
|
+
const S = this.options.schema, A = Object.keys(t[0]), I = Object.keys(S), F = I.filter((P) => A.includes(P)), D = I.filter((P) => !A.includes(P)), v = /* @__PURE__ */ new Map(), L = a.toString((c = (u = fe(this, xe)) == null ? void 0 : u.hierarchy) == null ? void 0 : c.primaryField, !0), w = a.toString((m = (p = fe(this, xe)) == null ? void 0 : p.hierarchy) == null ? void 0 : m.parentField, !0), K = L.length > 0 && w.length > 0 && S[L] && S[w];
|
|
7486
7486
|
for (let P = 0; P < t.length; P++) {
|
|
7487
7487
|
const te = new X(void 0, void 0, this);
|
|
7488
|
-
te.setSchema(S, !1), F.forEach((
|
|
7489
|
-
switch (S[
|
|
7488
|
+
te.setSchema(S, !1), F.forEach((H) => {
|
|
7489
|
+
switch (S[H].type) {
|
|
7490
7490
|
case "datetime":
|
|
7491
|
-
te[
|
|
7491
|
+
te[H] = a.toDateTime(t[P][H], "Dayjs");
|
|
7492
7492
|
break;
|
|
7493
7493
|
case "boolean":
|
|
7494
|
-
te[
|
|
7494
|
+
te[H] = a.toBoolean(t[P][H]);
|
|
7495
7495
|
break;
|
|
7496
7496
|
case "number":
|
|
7497
|
-
te[
|
|
7497
|
+
te[H] = a.toNumber(t[P][H]);
|
|
7498
7498
|
break;
|
|
7499
7499
|
case "string":
|
|
7500
|
-
te[
|
|
7500
|
+
te[H] = a.toString(t[P][H], !0);
|
|
7501
7501
|
break;
|
|
7502
7502
|
default:
|
|
7503
|
-
te[
|
|
7503
|
+
te[H] = t[P][H];
|
|
7504
7504
|
break;
|
|
7505
7505
|
}
|
|
7506
|
-
}), D.forEach((
|
|
7507
|
-
switch (S[
|
|
7506
|
+
}), D.forEach((H) => {
|
|
7507
|
+
switch (S[H].type) {
|
|
7508
7508
|
case "datetime":
|
|
7509
|
-
te[
|
|
7509
|
+
te[H] = null;
|
|
7510
7510
|
break;
|
|
7511
7511
|
case "boolean":
|
|
7512
|
-
te[
|
|
7512
|
+
te[H] = !1;
|
|
7513
7513
|
break;
|
|
7514
7514
|
case "number":
|
|
7515
|
-
te[
|
|
7515
|
+
te[H] = 0;
|
|
7516
7516
|
break;
|
|
7517
7517
|
case "string":
|
|
7518
|
-
te[
|
|
7518
|
+
te[H] = "";
|
|
7519
7519
|
break;
|
|
7520
7520
|
default:
|
|
7521
|
-
te[
|
|
7521
|
+
te[H] = null;
|
|
7522
7522
|
break;
|
|
7523
7523
|
}
|
|
7524
|
-
}), te.isNew = i, r.push(te), fe(this, R).push(te), K && te[
|
|
7524
|
+
}), te.isNew = i, r.push(te), fe(this, R).push(te), K && te[L] && v.set(te[L], te);
|
|
7525
7525
|
}
|
|
7526
7526
|
if (K) {
|
|
7527
7527
|
const P = (te) => {
|
|
7528
|
-
const
|
|
7528
|
+
const H = [];
|
|
7529
7529
|
for (; te; )
|
|
7530
|
-
|
|
7531
|
-
return
|
|
7530
|
+
H.unshift(te[L]), te = v.get(te[w]);
|
|
7531
|
+
return H;
|
|
7532
7532
|
};
|
|
7533
7533
|
for (let te = 0; te < fe(this, R).length; te++)
|
|
7534
7534
|
fe(this, R)[te][h.TreeHierarchyFieldName] = P(fe(this, R)[te]);
|
|
@@ -7572,7 +7572,7 @@ var g;
|
|
|
7572
7572
|
R = new WeakMap(), Le = new WeakMap(), De = new WeakMap(), $e = new WeakMap(), xe = new WeakMap(), _e = new WeakMap(), ye = new WeakMap(), Re = new WeakMap(), se = new WeakMap(), Oe = new WeakMap(), Be = new WeakSet(), Do = function(t, o) {
|
|
7573
7573
|
var r;
|
|
7574
7574
|
(r = fe(this, se)) == null || r.forEach((n) => {
|
|
7575
|
-
var s, u, c, p, m, S, A, I, F, D, v,
|
|
7575
|
+
var s, u, c, p, m, S, A, I, F, D, v, L, w, K, P, te, H, me, ge, $, Y, b, O, pe, re, ve, lt, ke, E, gt;
|
|
7576
7576
|
if (n.formHelper && n.configId)
|
|
7577
7577
|
if (n.controlType === "Grid") {
|
|
7578
7578
|
const Ie = n.formHelper.getGrid(n.configId);
|
|
@@ -7583,7 +7583,7 @@ var g;
|
|
|
7583
7583
|
Object.keys(Ze).length === 0 && Ft.length === 0 && Ie.gridOptions.context.calculateRowSpan && Ie.gridOptions.context.calculateRowSpan instanceof Function && Ie.gridOptions.context.calculateRowSpan(!0), (c = (u = Ie.gridOptions) == null ? void 0 : u.api) == null || c.clearRangeSelection(), Ie.gridOptions.context.focusRowId = "", Ie.gridOptions.context.focusColId = "", Ie.gridOptions.context.dataMerged = !0, (m = (p = Ie.gridOptions) == null ? void 0 : p.api) == null || m.setRowData(fe(this, R));
|
|
7584
7584
|
let Ce = fe(this, R).length.toString().length * 7 + 20;
|
|
7585
7585
|
((A = (S = Ie.gridOptions.context) == null ? void 0 : S.viewConfig) == null ? void 0 : A.SHOW_SELECTION) === "1" && (Ce += 20), (I = Ie.gridOptions.context) != null && I.allowDragRow && (Ce += 21), ((D = (F = Ie.gridOptions.context) == null ? void 0 : F.options) == null ? void 0 : D.masterDetail) === !0 && (Ce += 22);
|
|
7586
|
-
const rt = (
|
|
7586
|
+
const rt = (L = (v = Ie.gridOptions.columnApi) == null ? void 0 : v.columnModel) == null ? void 0 : L.gridColumns, ut = rt == null ? void 0 : rt.find((Ue) => Ue.colId === h.GridCheckColumnFieldName);
|
|
7587
7587
|
ut && Ie.gridOptions.columnApi.setColumnWidth(ut, Ce);
|
|
7588
7588
|
break;
|
|
7589
7589
|
}
|
|
@@ -7593,14 +7593,14 @@ var g;
|
|
|
7593
7593
|
}
|
|
7594
7594
|
case "dataRemoved": {
|
|
7595
7595
|
if (Ie.gridOptions.api.applyTransaction({ remove: o.models }), ((te = (P = Ie.gridOptions.context) == null ? void 0 : P.options) == null ? void 0 : te.showRowNo) !== !1 && (Ie.gridOptions.api.refreshCells({ columns: [h.GridCheckColumnFieldName] }), Ie.gridOptions.context.focusRowId)) {
|
|
7596
|
-
const Ze = (
|
|
7596
|
+
const Ze = (H = Ie == null ? void 0 : Ie.gridOptions) == null ? void 0 : H.api.getRowNode(Ie.gridOptions.context.focusRowId);
|
|
7597
7597
|
Ze && (Ie.gridOptions.context.focusRowId = Ze.id, Ie.gridOptions.context.focusColId || (Ie.gridOptions.context.focusColId = l.SysInfo.GridCheckColumnFieldName), n.formHelper.setGridFocusedCell(Ie, Ze.rowIndex, Ie.gridOptions.context.focusColId));
|
|
7598
7598
|
}
|
|
7599
7599
|
break;
|
|
7600
7600
|
}
|
|
7601
7601
|
case "dataAdded": {
|
|
7602
7602
|
Ie.gridOptions.api.applyTransaction({ add: [o.current] }), Ie.gridOptions.api.refreshCells({ columns: [h.GridCheckColumnFieldName] });
|
|
7603
|
-
const Ze = (ge = (
|
|
7603
|
+
const Ze = (ge = (me = Ie.gridOptions.context) == null ? void 0 : me.viewConfig) == null ? void 0 : ge.AUTO_SELECT_MODE;
|
|
7604
7604
|
(Ze === "1" || Ze === "3") && (($ = n.formHelper) == null || $.checkGridRow(n.configId, o.current));
|
|
7605
7605
|
break;
|
|
7606
7606
|
}
|
|
@@ -8201,10 +8201,10 @@ var g;
|
|
|
8201
8201
|
}
|
|
8202
8202
|
l.Core.callService(this._serverPartition, this._serviceName, I).then(
|
|
8203
8203
|
(D) => {
|
|
8204
|
-
var v,
|
|
8204
|
+
var v, L, w;
|
|
8205
8205
|
D.getStatus() >= 0 ? (Object.keys(D.getBlocks()).forEach((K) => {
|
|
8206
8206
|
this._configInfo[K] = D.getBlock(K);
|
|
8207
|
-
}), ((w = (
|
|
8207
|
+
}), ((w = (L = (v = this._configInfo) == null ? void 0 : v.TSI00FORM) == null ? void 0 : L.getMappedRows()) == null ? void 0 : w.length) > 0 ? (this.InitializeWithData(), m({ flag: this._initializeFlag, msg: "success" })) : (this._initializeFlag = -1, m({ flag: this._initializeFlag, msg: `The configuration information for the form [${this._formName}] was not found!` }))) : (this._initializeFlag = -1, m({ flag: this._initializeFlag, msg: D.getMsg() ?? "unknown error" }));
|
|
8208
8208
|
},
|
|
8209
8209
|
(D) => {
|
|
8210
8210
|
m({ ...D, flag: -1, msg: "unknown error" });
|
|
@@ -8297,8 +8297,8 @@ var g;
|
|
|
8297
8297
|
const F = this.getSingleViewConfigInfo(I), D = a.toString(F.TABLE_NAME).trim();
|
|
8298
8298
|
if (F && D.length > 0 && !this._formDataSet.contains(D)) {
|
|
8299
8299
|
this._configInfo.TSI00DATATABLE.data.some((w) => w.TABLE_NAME === D) || m.getBlock("TSI00DATATABLE").getMappedRows().length > 0 && this._configInfo.TSI00DATATABLE.addRow(m.getBlock("TSI00DATATABLE").getRows());
|
|
8300
|
-
const
|
|
8301
|
-
F.FUNCTION_TYPE === "T" && ((v = F.CURRENT_NODE_DESC) == null ? void 0 : v.trim().length) > 0 && F.FATHER_NODE_DESC.trim().length > 0 && (
|
|
8300
|
+
const L = {};
|
|
8301
|
+
F.FUNCTION_TYPE === "T" && ((v = F.CURRENT_NODE_DESC) == null ? void 0 : v.trim().length) > 0 && F.FATHER_NODE_DESC.trim().length > 0 && (L.hierarchy = { primaryField: F.CURRENT_NODE_DESC.trim(), parentField: F.CURRENT_NODE_DESC }), this.createDataTable(D, L);
|
|
8302
8302
|
}
|
|
8303
8303
|
this.setDropDownBindSourceAndRequiredFields(F);
|
|
8304
8304
|
})), o({ flag: m.getStatus() >= 0 ? 1 : -1, msg: m.getMsg() ?? "unknown error" });
|
|
@@ -8802,22 +8802,22 @@ var g;
|
|
|
8802
8802
|
};
|
|
8803
8803
|
let v = [];
|
|
8804
8804
|
o && o instanceof Function && (o = o());
|
|
8805
|
-
const
|
|
8805
|
+
const L = o || this.getItemDropDownDataSource(t.FUNCTION_ID, t.ITEM_CODE) || [];
|
|
8806
8806
|
if (i.length > 0 && r.length > 0) {
|
|
8807
8807
|
const P = i.split(","), te = r.split(",");
|
|
8808
8808
|
if (P.length !== te.length)
|
|
8809
8809
|
this.messageError("[DisplayColumns] array length need same to [DisplayCaptions] array length!");
|
|
8810
8810
|
else {
|
|
8811
|
-
const
|
|
8812
|
-
for (let
|
|
8813
|
-
const ge = { field: P[
|
|
8814
|
-
ge.title.startsWith("$t(") && ge.title.endsWith(")") ? ge.title = this.$t(ge.title.substring(3, ge.title.length - 1)) : n && (ge.title = this.$t(ge.title)),
|
|
8811
|
+
const H = [];
|
|
8812
|
+
for (let me = 0; me < P.length; me++) {
|
|
8813
|
+
const ge = { field: P[me], title: te[me].trim(), width: 150 };
|
|
8814
|
+
ge.title.startsWith("$t(") && ge.title.endsWith(")") ? ge.title = this.$t(ge.title.substring(3, ge.title.length - 1)) : n && (ge.title = this.$t(ge.title)), H.push(ge), m.push(ge.field);
|
|
8815
8815
|
}
|
|
8816
|
-
s.trim().length > 0 && u.trim().length > 0 ? (I = s.trim(), F = u.trim()) : (c >= 0 && c < P.length ? I = P[c] : I = P[0], p >= 0 && c < P.length ? F = P[p] : P.length > 1 ? F = P[1] : F = P[0]), D.columns =
|
|
8816
|
+
s.trim().length > 0 && u.trim().length > 0 ? (I = s.trim(), F = u.trim()) : (c >= 0 && c < P.length ? I = P[c] : I = P[0], p >= 0 && c < P.length ? F = P[p] : P.length > 1 ? F = P[1] : F = P[0]), D.columns = H, D.dropDownWidth = H.length * 150, D.dataValueField = I, D.dataTextField = F;
|
|
8817
8817
|
}
|
|
8818
|
-
} else if (
|
|
8819
|
-
const P = Object.keys(
|
|
8820
|
-
(
|
|
8818
|
+
} else if (L.length > 0) {
|
|
8819
|
+
const P = Object.keys(L[0]);
|
|
8820
|
+
(L[0][I] === void 0 || L[0][F] === void 0) && (L[0][I] === void 0 && (I = P[0]), L[0][F] === void 0 && (P.length > 1 ? F = P[1] : F = P[0])), D.columns = t.VALUE_VISIBLE === "1" ? [
|
|
8821
8821
|
{ field: I, title: S, width: 150 },
|
|
8822
8822
|
{ field: F, title: A, width: 150 }
|
|
8823
8823
|
] : [{ field: F, title: A, width: 150 }], t.VALUE_VISIBLE === "1" && m.push(I);
|
|
@@ -8825,7 +8825,7 @@ var g;
|
|
|
8825
8825
|
{ field: I, title: S, width: 150 },
|
|
8826
8826
|
{ field: F, title: A, width: 150 }
|
|
8827
8827
|
] : [{ field: F, title: A, width: 150 }], t.VALUE_VISIBLE === "1" && m.push(I));
|
|
8828
|
-
return t.ADD_EMPTY_ITEM === "1" && (D.optionLabel = "—-—"), t.FORMAT_TYPE === "Custom" && ((w = t.FORMAT_STRING) == null ? void 0 : w.trim().length) > 0 ? D.displayFormat = (K = t.FORMAT_STRING) == null ? void 0 : K.trim() : t.DISPLAY_POSITION === t.VALUE_POSITION && a.toNumber(t.VALUE_POSITION) >= 0 || t.DISPLAY_MEMBER === t.VALUE_MEMBER && t.VALUE_MEMBER.trim().length > 0 ? D.displayFormat = "{0}" : t.VALUE_VISIBLE === "1" ? D.displayFormat = "{0}|{1}" : D.displayFormat = "{1}",
|
|
8828
|
+
return t.ADD_EMPTY_ITEM === "1" && (D.optionLabel = "—-—"), t.FORMAT_TYPE === "Custom" && ((w = t.FORMAT_STRING) == null ? void 0 : w.trim().length) > 0 ? D.displayFormat = (K = t.FORMAT_STRING) == null ? void 0 : K.trim() : t.DISPLAY_POSITION === t.VALUE_POSITION && a.toNumber(t.VALUE_POSITION) >= 0 || t.DISPLAY_MEMBER === t.VALUE_MEMBER && t.VALUE_MEMBER.trim().length > 0 ? D.displayFormat = "{0}" : t.VALUE_VISIBLE === "1" ? D.displayFormat = "{0}|{1}" : D.displayFormat = "{1}", L && L instanceof Array && (v = L.map((P) => ({ ...P, value: P[I], label: P[F] }))), m.push(F), D.autoWidth = !0, D.dataSource = v, D.dataValueField = I, D.dataTextField = F, D;
|
|
8829
8829
|
}
|
|
8830
8830
|
/**
|
|
8831
8831
|
* 设置下拉框及联筛选
|
|
@@ -8939,45 +8939,45 @@ var g;
|
|
|
8939
8939
|
if (i && ((r = o == null ? void 0 : o.data) != null && r.uid)) {
|
|
8940
8940
|
const F = (n = i.gridOptions.context) == null ? void 0 : n.configId, D = (u = (s = i.gridOptions.context) == null ? void 0 : s.viewConfig) == null ? void 0 : u.AUTO_SELECT_MODE, v = this.getGridColumn(e, t);
|
|
8941
8941
|
if ((p = (c = v == null ? void 0 : v.colDef) == null ? void 0 : c.context) != null && p.columnConfig) {
|
|
8942
|
-
const
|
|
8942
|
+
const L = (S = (m = v == null ? void 0 : v.colDef) == null ? void 0 : m.context) == null ? void 0 : S.columnConfig;
|
|
8943
8943
|
let w = [], K = {};
|
|
8944
|
-
if (
|
|
8945
|
-
const P =
|
|
8944
|
+
if (L && L.AUTOFILL_COLS && L.COLUMN_EDIT !== "3") {
|
|
8945
|
+
const P = L.AUTOFILL_COLS;
|
|
8946
8946
|
P.length > 0 && (w = P.split(";"), o.data[t] && (K = this.getDropDownSelectedData(F, t, o.data[t])), w.forEach((te) => {
|
|
8947
8947
|
if (te.trim().length > 0) {
|
|
8948
|
-
const
|
|
8949
|
-
let ge =
|
|
8950
|
-
if (
|
|
8948
|
+
const H = te.trim().split("="), me = H[0].toUpperCase().trim();
|
|
8949
|
+
let ge = H[0].toUpperCase().trim();
|
|
8950
|
+
if (H.length > 1 && (ge = H[1].toUpperCase().trim()), K && K instanceof Array) {
|
|
8951
8951
|
let $ = "";
|
|
8952
8952
|
K.forEach((Y) => {
|
|
8953
|
-
const b = l.Core.toString(Y[
|
|
8953
|
+
const b = l.Core.toString(Y[me]).trim();
|
|
8954
8954
|
b.length > 0 && ($ = $.length === 0 ? b : $ + "," + b);
|
|
8955
8955
|
}), o.data.set(ge, $);
|
|
8956
8956
|
} else
|
|
8957
|
-
o.data.set(ge, K[
|
|
8957
|
+
o.data.set(ge, K[me]);
|
|
8958
8958
|
i.gridOptions.api.refreshCells({ rowNodes: [o], columns: [ge, l.SysInfo.GridCheckColumnFieldName] });
|
|
8959
8959
|
}
|
|
8960
8960
|
}));
|
|
8961
8961
|
}
|
|
8962
|
-
if (o.isSelected() &&
|
|
8962
|
+
if (o.isSelected() && L.MULTI_ROW_EDIT === "1" && D !== "1" && D !== "3") {
|
|
8963
8963
|
const P = this.getGridOptions(F, "multiRowEdit");
|
|
8964
8964
|
if (P !== !1 && P !== "0")
|
|
8965
8965
|
if (((I = (A = i.gridOptions.context) == null ? void 0 : A.options) == null ? void 0 : I.multiRowEditType) === "all") {
|
|
8966
8966
|
const te = this.getGridSelectRows(i);
|
|
8967
|
-
(te == null ? void 0 : te.length) > 0 && te.forEach((
|
|
8968
|
-
o.data.uid !==
|
|
8969
|
-
if (
|
|
8970
|
-
const ge =
|
|
8967
|
+
(te == null ? void 0 : te.length) > 0 && te.forEach((H) => {
|
|
8968
|
+
o.data.uid !== H.uid && w.forEach((me) => {
|
|
8969
|
+
if (me.trim().length > 0) {
|
|
8970
|
+
const ge = me.trim().split("="), $ = ge[0].toUpperCase().trim();
|
|
8971
8971
|
let Y = ge[0].toUpperCase().trim();
|
|
8972
|
-
if (ge.length > 1 && (Y = ge[1].toUpperCase().trim()),
|
|
8972
|
+
if (ge.length > 1 && (Y = ge[1].toUpperCase().trim()), H) {
|
|
8973
8973
|
if (K && K instanceof Array) {
|
|
8974
8974
|
let b = "";
|
|
8975
8975
|
K.forEach((O) => {
|
|
8976
8976
|
const pe = l.Core.toString(O[$]).trim();
|
|
8977
8977
|
pe.length > 0 && (b = b.length === 0 ? pe : b + "," + pe);
|
|
8978
|
-
}),
|
|
8978
|
+
}), H.set(Y, b);
|
|
8979
8979
|
} else
|
|
8980
|
-
|
|
8980
|
+
H.set(Y, K[$]);
|
|
8981
8981
|
i.gridOptions.api.refreshCells({ rowNodes: [o], columns: [Y, l.SysInfo.GridCheckColumnFieldName] });
|
|
8982
8982
|
}
|
|
8983
8983
|
}
|
|
@@ -8985,21 +8985,22 @@ var g;
|
|
|
8985
8985
|
});
|
|
8986
8986
|
} else {
|
|
8987
8987
|
const te = [];
|
|
8988
|
-
i.gridOptions.api.forEachNodeAfterFilter((
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8988
|
+
i.gridOptions.api.forEachNodeAfterFilter((H) => {
|
|
8989
|
+
var me;
|
|
8990
|
+
H != null && H.selected && ((me = H.data) != null && me.uid) && H.data.uid !== o.data.uid && te.push(H);
|
|
8991
|
+
}), (te == null ? void 0 : te.length) > 0 && te.forEach((H) => {
|
|
8992
|
+
o.data.uid !== H.data.uid && w.forEach((me) => {
|
|
8993
|
+
if (me.trim().length > 0) {
|
|
8994
|
+
const ge = me.trim().split("="), $ = ge[0].toUpperCase().trim();
|
|
8994
8995
|
let Y = ge[0].toUpperCase().trim();
|
|
8995
8996
|
if (ge.length > 1 && (Y = ge[1].toUpperCase().trim()), K && K instanceof Array) {
|
|
8996
8997
|
let b = "";
|
|
8997
8998
|
K.forEach((O) => {
|
|
8998
8999
|
const pe = l.Core.toString(O[$]).trim();
|
|
8999
9000
|
pe.length > 0 && (b = b.length === 0 ? pe : b + "," + pe);
|
|
9000
|
-
}),
|
|
9001
|
+
}), H.data.set(Y, b);
|
|
9001
9002
|
} else
|
|
9002
|
-
|
|
9003
|
+
H.data.set(Y, K[$]);
|
|
9003
9004
|
i.gridOptions.api.refreshCells({ rowNodes: [o], columns: [Y, l.SysInfo.GridCheckColumnFieldName] });
|
|
9004
9005
|
}
|
|
9005
9006
|
});
|
|
@@ -10862,7 +10863,7 @@ var g;
|
|
|
10862
10863
|
((c = I == null ? void 0 : I.SVC_NAME) == null ? void 0 : c.trim().length) > 0 && (u = e, e = I.SVC_NAME.trim(), A = I.FILTER_STRING.trim(), s = !0);
|
|
10863
10864
|
const F = new ht();
|
|
10864
10865
|
if (t && t.filterConfigId && t.filterConfigId.trim().length > 0) {
|
|
10865
|
-
let
|
|
10866
|
+
let L = this.getAllControlValueAsEiBlock(
|
|
10866
10867
|
t.filterConfigId,
|
|
10867
10868
|
t.queryType
|
|
10868
10869
|
);
|
|
@@ -10870,14 +10871,14 @@ var g;
|
|
|
10870
10871
|
t.filterConfigId,
|
|
10871
10872
|
t.queryType
|
|
10872
10873
|
);
|
|
10873
|
-
if (
|
|
10874
|
-
const K =
|
|
10875
|
-
|
|
10874
|
+
if (L.getMappedRows().length > 0) {
|
|
10875
|
+
const K = L.getMappedRows()[0];
|
|
10876
|
+
L = a.buildEiBlock([K]);
|
|
10876
10877
|
}
|
|
10877
|
-
F.addBlock(
|
|
10878
|
+
F.addBlock(L), F.addBlock(w);
|
|
10878
10879
|
}
|
|
10879
10880
|
if (a.toString(t == null ? void 0 : t.customFilter, !0).length > 0 && (A.trim().length > 0 ? A = A + " and " + a.toString(t == null ? void 0 : t.customFilter, !0) : A = a.toString(t == null ? void 0 : t.customFilter, !0)), A.trim().length > 0) {
|
|
10880
|
-
const
|
|
10881
|
+
const L = [
|
|
10881
10882
|
{
|
|
10882
10883
|
ITEM_CODE: "SQL",
|
|
10883
10884
|
FIELD_NAME: "*",
|
|
@@ -10891,14 +10892,14 @@ var g;
|
|
|
10891
10892
|
}
|
|
10892
10893
|
];
|
|
10893
10894
|
if (F.getBlock("QUERY_FILTER"))
|
|
10894
|
-
a.addJsonToEiBlock(
|
|
10895
|
+
a.addJsonToEiBlock(L, F.getBlock("QUERY_FILTER"));
|
|
10895
10896
|
else {
|
|
10896
|
-
const w = a.buildEiBlock(
|
|
10897
|
+
const w = a.buildEiBlock(L, "QUERY_FILTER");
|
|
10897
10898
|
F.addBlock(w);
|
|
10898
10899
|
}
|
|
10899
10900
|
}
|
|
10900
|
-
const D = (S = (m = (p = this._configInfo) == null ? void 0 : p.TSI00DATASOURCE) == null ? void 0 : m.getMappedRows()) == null ? void 0 : S.find((
|
|
10901
|
-
this.callService(
|
|
10901
|
+
const D = (S = (m = (p = this._configInfo) == null ? void 0 : p.TSI00DATASOURCE) == null ? void 0 : m.getMappedRows()) == null ? void 0 : S.find((L) => L.FUNC_ID === e), v = (L) => {
|
|
10902
|
+
this.callService(L, F, { show: t == null ? void 0 : t.showLoading }).then((w) => {
|
|
10902
10903
|
var K, P, te;
|
|
10903
10904
|
n = w, l.Core.toNumber((K = n.SysInfo) == null ? void 0 : K.Flag) >= 0 && (t && t.dataTable ? t.dataTable instanceof q ? this.mergeDataToDataTable(n, t.dataTable, t.clearTable) : typeof t.dataTable == "string" && t.dataTable.trim().length > 0 && ((P = this._formDataSet) != null && P.contains(t.dataTable.trim())) && this.mergeDataToDataTable(n, (te = this._formDataSet) == null ? void 0 : te.getDataTable(t.dataTable.trim()), t.clearTable) : s === !0 && this.mergeDataToGrid(n, u, t == null ? void 0 : t.clearTable)), i(n);
|
|
10904
10905
|
});
|
|
@@ -10907,7 +10908,7 @@ var g;
|
|
|
10907
10908
|
if (D.ORIGIN_CODE === "SVC" && D.SVC_NAME.trim().length > 0)
|
|
10908
10909
|
v(D.SVC_NAME.trim());
|
|
10909
10910
|
else if (D.SQL_CONTENT.trim().length > 0) {
|
|
10910
|
-
const
|
|
10911
|
+
const L = a.buildEiBlock([{
|
|
10911
10912
|
OPERATE_TYPE: "sql_query",
|
|
10912
10913
|
FUNCTION_ID: D.FUNC_ID,
|
|
10913
10914
|
SQL: this.getQuerySqlFormat(D.SQL_CONTENT),
|
|
@@ -10915,14 +10916,14 @@ var g;
|
|
|
10915
10916
|
GROUP_COL: D.GROUP_KEY_VALUE,
|
|
10916
10917
|
SORT_COL: D.PRI_KEY_SQL
|
|
10917
10918
|
}], "DATA_SOURCE");
|
|
10918
|
-
F.addBlock(
|
|
10919
|
+
F.addBlock(L), a.toString(o).trim().length === 0 && D.SVC_NAME.trim().length > 0 && (o = D.SVC_NAME.trim()), a.toString(o).trim().length === 0 && (o = "JAER01/query"), v(o);
|
|
10919
10920
|
}
|
|
10920
10921
|
} else {
|
|
10921
|
-
const
|
|
10922
|
+
const L = a.buildEiBlock([{
|
|
10922
10923
|
FUNCTION_ID: e,
|
|
10923
10924
|
COMPANY_CODE: l.SysInfo.CompanyCode
|
|
10924
10925
|
}], "DATA_SOURCE");
|
|
10925
|
-
F.addBlock(
|
|
10926
|
+
F.addBlock(L), a.toString(o).trim().length === 0 && (o = "JAER01/query"), v(o);
|
|
10926
10927
|
}
|
|
10927
10928
|
} else
|
|
10928
10929
|
n.SysInfo.Flag = -603, n.SysInfo.Msg = "DataSoureId is null or empty!", i(n);
|
|
@@ -11101,8 +11102,8 @@ var g;
|
|
|
11101
11102
|
if ((n = t == null ? void 0 : t.gridOptions) != null && n.api && D.TSI00GRIDVIEW && D.TSI00GRIDVIEW.length > 0) {
|
|
11102
11103
|
const v = D.TSI00GRIDVIEW[0];
|
|
11103
11104
|
((s = o == null ? void 0 : o.cloneTableName) == null ? void 0 : s.trim().length) > 0 && this.cloneTableForLayoutOrGrid(((u = o == null ? void 0 : o.originTableName) == null ? void 0 : u.trim()) || v.TABLE_NAME.trim(), o.cloneTableName.trim(), e), t.gridOptions.context = { configId: e, configCaption: v.FUNCNAME_RES || v.FUNCNAME }, o = o || {}, ((c = v.CUS_EXT_OPTIONS) == null ? void 0 : c.trim().length) > 0 && (o = { ...JSON.parse(v.CUS_EXT_OPTIONS), ...o }), ((p = v.EXT_OPTIONS) == null ? void 0 : p.trim().length) > 0 && (o = { ...JSON.parse(v.EXT_OPTIONS), ...o });
|
|
11104
|
-
const
|
|
11105
|
-
|
|
11105
|
+
const L = this.getFormSysInfo("GridDefaultOptions");
|
|
11106
|
+
L.trim().length > 0 && (o = { ...JSON.parse(L), ...o }), ["rowDragManaged", "groupIncludeFooter", "groupIncludeTotalFooter", "suppressRowTransform", "suppressRowClickSelection", "rowMultiSelectWithClick", "singleClickEdit"].forEach((P) => {
|
|
11106
11107
|
o[P] = t.gridOptions[P] ?? o[P];
|
|
11107
11108
|
}), o.groupDisplayType = o.groupDisplayType || t.gridOptions.groupDisplayType || this.getFormSysInfo("GRIDGROUPDISPLAYTYPE") || "groupRows", o.rowHeight = o.rowHeight || t.gridOptions.rowHeight;
|
|
11108
11109
|
const K = this.getGridConfigOptions(e, o, i, r);
|
|
@@ -11116,12 +11117,12 @@ var g;
|
|
|
11116
11117
|
var ve;
|
|
11117
11118
|
(ve = re.data) != null && ve.uid && P.push(re.data);
|
|
11118
11119
|
});
|
|
11119
|
-
const
|
|
11120
|
+
const H = {}, me = ((Y = ($ = (ge = t.gridOptions.context) == null ? void 0 : ge.viewConfig) == null ? void 0 : $.MERGE_COLUMN) == null ? void 0 : Y.trim().length) > 0 ? (pe = (O = (b = t.gridOptions.context) == null ? void 0 : b.viewConfig) == null ? void 0 : O.MERGE_COLUMN) == null ? void 0 : pe.trim().split(",") : [];
|
|
11120
11121
|
return t.gridOptions.context.mergeColumns.forEach((re) => {
|
|
11121
|
-
|
|
11122
|
+
H[re] = {};
|
|
11122
11123
|
const ve = {};
|
|
11123
11124
|
let lt = 0;
|
|
11124
|
-
const ke = [...
|
|
11125
|
+
const ke = [...me, re];
|
|
11125
11126
|
for (let E = 0; E < P.length; E++) {
|
|
11126
11127
|
let gt = !0;
|
|
11127
11128
|
for (let Ie = 0; Ie < ke.length; Ie++) {
|
|
@@ -11135,7 +11136,7 @@ var g;
|
|
|
11135
11136
|
if (Object.keys(ve).length > 0)
|
|
11136
11137
|
for (let Ie = lt; Ie < E; Ie++) {
|
|
11137
11138
|
const Ze = P[Ie].uid;
|
|
11138
|
-
|
|
11139
|
+
H[re][Ze] = Ie === lt ? E - lt : 0;
|
|
11139
11140
|
}
|
|
11140
11141
|
ke.forEach((Ie) => {
|
|
11141
11142
|
ve[Ie] = P[E][Ie];
|
|
@@ -11144,10 +11145,10 @@ var g;
|
|
|
11144
11145
|
if (E === P.length - 1)
|
|
11145
11146
|
for (let Ie = lt; Ie <= E; Ie++) {
|
|
11146
11147
|
const Ze = P[Ie].uid;
|
|
11147
|
-
|
|
11148
|
+
H[re][Ze] = Ie === lt ? E - lt + 1 : 0;
|
|
11148
11149
|
}
|
|
11149
11150
|
}
|
|
11150
|
-
}), t.gridOptions.context.rowSpanMap =
|
|
11151
|
+
}), t.gridOptions.context.rowSpanMap = H, P[0];
|
|
11151
11152
|
};
|
|
11152
11153
|
}
|
|
11153
11154
|
if ((v == null ? void 0 : v.SHOW_FOOTER) === "1" && t.gridOptions.api.setPinnedBottomRowData([{ pinndeRowType: "ErGridSummaryFooter" }]), Yt(() => {
|
|
@@ -11158,15 +11159,15 @@ var g;
|
|
|
11158
11159
|
return (te = P.column) != null && te.colDef.valueFormatter ? P.column.colDef.valueFormatter(P) : P.value;
|
|
11159
11160
|
}, o.SORT_FIELD_NAME = ((S = o.SORT_FIELD_NAME) == null ? void 0 : S.trim()) || v.SORT_FIELD_NAME, ((A = o.SORT_FIELD_NAME) == null ? void 0 : A.trim().length) > 0) {
|
|
11160
11161
|
const P = o.SORT_FIELD_NAME.split(","), te = [];
|
|
11161
|
-
P.forEach((
|
|
11162
|
-
const $ =
|
|
11162
|
+
P.forEach((me, ge) => {
|
|
11163
|
+
const $ = me.trim().split(" ");
|
|
11163
11164
|
if ($.length > 0) {
|
|
11164
11165
|
const Y = { colId: $[0].trim().toUpperCase(), sort: "asc", sortIndex: ge };
|
|
11165
11166
|
$.length > 1 && $[1].trim().toLowerCase() === "desc" && (Y.sort = $[1].trim().toLowerCase()), te.push(Y);
|
|
11166
11167
|
}
|
|
11167
11168
|
}), t.gridOptions.columnApi.applyColumnState({ state: te });
|
|
11168
|
-
const
|
|
11169
|
-
|
|
11169
|
+
const H = (I = t.gridOptions.api) == null ? void 0 : I.getStatusPanel("InformationPanel");
|
|
11170
|
+
H && H.setInformation();
|
|
11170
11171
|
}
|
|
11171
11172
|
this.setGridMainMenuItems(t, o), this.setGridContextMenu(t, o), this.setGridRowStyle(t, o), this.setGridInitialEvent(t, o), this._gridInstanceInfo[e] = t;
|
|
11172
11173
|
}
|
|
@@ -11199,19 +11200,19 @@ var g;
|
|
|
11199
11200
|
checkbox: c === "multiple" && s.SHOW_SELECTION.toString() === "1",
|
|
11200
11201
|
suppressCount: t.aggDataInGroupRow === !0,
|
|
11201
11202
|
innerRenderer: (p) => {
|
|
11202
|
-
var m, S, A, I, F, D, v,
|
|
11203
|
+
var m, S, A, I, F, D, v, L, w;
|
|
11203
11204
|
if ((S = (m = p.node) == null ? void 0 : m.rowGroupColumn) != null && S.colDef) {
|
|
11204
11205
|
const K = (I = (A = p.node) == null ? void 0 : A.rowGroupColumn) == null ? void 0 : I.colDef;
|
|
11205
11206
|
let P = p.node.key;
|
|
11206
|
-
if (K.cellDataType === "number" ? P = a.formatNumberValue(p.value, (D = (F = K.context) == null ? void 0 : F.columnConfig) == null ? void 0 : D.FORMAT_STRING) : ((v = K.cellEditor) == null ? void 0 : v.name) === "DatetimeEditor" ? P = a.getDateTimeFormatString(p.value, (w = (
|
|
11207
|
-
let
|
|
11207
|
+
if (K.cellDataType === "number" ? P = a.formatNumberValue(p.value, (D = (F = K.context) == null ? void 0 : F.columnConfig) == null ? void 0 : D.FORMAT_STRING) : ((v = K.cellEditor) == null ? void 0 : v.name) === "DatetimeEditor" ? P = a.getDateTimeFormatString(p.value, (w = (L = K.context) == null ? void 0 : L.columnConfig) == null ? void 0 : w.FORMAT_STRING) : K.refData && (P = K.refData[p.value] || p.value), t.aggDataInGroupRow === !0) {
|
|
11208
|
+
let H = `
|
|
11208
11209
|
<div style="display: inline-block">
|
|
11209
11210
|
<span>${`${P}(${p.node.allChildrenCount})`}</span>`;
|
|
11210
|
-
return p.node.aggData && Object.keys(p.node.aggData).length > 0 && Object.keys(p.node.aggData).forEach((
|
|
11211
|
+
return p.node.aggData && Object.keys(p.node.aggData).length > 0 && Object.keys(p.node.aggData).forEach((me) => {
|
|
11211
11212
|
var O, pe, re, ve;
|
|
11212
|
-
const ge = (O = p.columnApi.getColumn(
|
|
11213
|
-
|
|
11214
|
-
}),
|
|
11213
|
+
const ge = (O = p.columnApi.getColumn(me)) == null ? void 0 : O.colDef, $ = ((pe = ge.headerName) == null ? void 0 : pe.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", "")) || me, Y = (ve = (re = ge.context) == null ? void 0 : re.columnConfig) == null ? void 0 : ve.FORMAT_STRING, b = p.node.aggData[me];
|
|
11214
|
+
H += `<span class="er-grid-group-row-col">${$}:</span>`, ko.isPlainObject(b) ? H += `<span class="er-grid-group-row-agg">${a.formatNumberValue(b.aggValueOfChecked, Y) + "/" + a.formatNumberValue(b.aggValue, Y)}</span>` : H += `<span class="er-grid-group-row-agg">${a.formatNumberValue(b, Y)}</span>`;
|
|
11215
|
+
}), H += "</div>", H;
|
|
11215
11216
|
} else
|
|
11216
11217
|
return P;
|
|
11217
11218
|
} else
|
|
@@ -11270,14 +11271,14 @@ var g;
|
|
|
11270
11271
|
var K;
|
|
11271
11272
|
if (w.trim().length > 0) {
|
|
11272
11273
|
let P = "";
|
|
11273
|
-
const te = (K = e.gridOptions.context.columnsConfig) == null ? void 0 : K.find((
|
|
11274
|
+
const te = (K = e.gridOptions.context.columnsConfig) == null ? void 0 : K.find((H) => H.FIELD_NAME === w.trim());
|
|
11274
11275
|
te && (P = te.COL_CAPTION.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", "")), v[w.trim()] = P;
|
|
11275
11276
|
}
|
|
11276
11277
|
});
|
|
11277
|
-
const
|
|
11278
|
-
|
|
11278
|
+
const L = Object.keys(v);
|
|
11279
|
+
L.length > 0 && (e.gridOptions.context.previewFieldMap = v, s.api.forEachNode((w) => {
|
|
11279
11280
|
const K = [];
|
|
11280
|
-
|
|
11281
|
+
L.forEach((P) => {
|
|
11281
11282
|
var te;
|
|
11282
11283
|
(te = w.data) != null && te[P] && K.push({
|
|
11283
11284
|
label: v[P],
|
|
@@ -11348,15 +11349,16 @@ var g;
|
|
|
11348
11349
|
let D = !1;
|
|
11349
11350
|
if ((t == null ? void 0 : t.multiRowEditType) === "all") {
|
|
11350
11351
|
const v = this.getGridSelectRows(e);
|
|
11351
|
-
(v == null ? void 0 : v.length) > 0 && v.forEach((
|
|
11352
|
-
s.data.uid !==
|
|
11352
|
+
(v == null ? void 0 : v.length) > 0 && v.forEach((L) => {
|
|
11353
|
+
s.data.uid !== L.uid && (L.set(s.colDef.field, s.data[s.colDef.field]), D = !0);
|
|
11353
11354
|
});
|
|
11354
11355
|
} else {
|
|
11355
11356
|
const v = [];
|
|
11356
|
-
e.gridOptions.api.forEachNodeAfterFilter((
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11357
|
+
e.gridOptions.api.forEachNodeAfterFilter((L) => {
|
|
11358
|
+
var w;
|
|
11359
|
+
L != null && L.selected && ((w = L.data) != null && w.uid) && L.data.uid !== s.data.uid && v.push(L);
|
|
11360
|
+
}), v.forEach((L) => {
|
|
11361
|
+
L.data.set(s.colDef.field, s.data[s.colDef.field]), D = !0;
|
|
11360
11362
|
});
|
|
11361
11363
|
}
|
|
11362
11364
|
D && s.api.refreshCells({ columns: [s.colDef.colId, l.SysInfo.GridCheckColumnFieldName] });
|
|
@@ -11395,7 +11397,7 @@ var g;
|
|
|
11395
11397
|
if (r.api.getDisplayedRowCount() > 0 && (n.push("copy", "copyWithHeaders"), t.showDetailForm !== !1 && (n.push("separator"), n.push({
|
|
11396
11398
|
name: this.$t("ERX.ErGrid.ShowDetailForm") || "查看明细",
|
|
11397
11399
|
action: () => {
|
|
11398
|
-
var p, m, S, A, I, F, D, v,
|
|
11400
|
+
var p, m, S, A, I, F, D, v, L, w, K, P, te, H, me, ge, $, Y, b, O, pe, re, ve, lt;
|
|
11399
11401
|
let c = e.gridOptions.context.detailFormHelper;
|
|
11400
11402
|
if (!c) {
|
|
11401
11403
|
(m = (p = r.context) == null ? void 0 : p.viewConfig) != null && m.EDIT_COLS_COUNT;
|
|
@@ -11403,12 +11405,12 @@ var g;
|
|
|
11403
11405
|
let E = Math.floor(ke / 3) * 30 + 120;
|
|
11404
11406
|
E < 200 ? E = 200 : E > 650 && (E = 650), c = new Ae(this._serverPartition, this._formName, (A = (S = e == null ? void 0 : e.gridOptions) == null ? void 0 : S.context) == null ? void 0 : A.configId, this._serviceName), c.setFormOptions({ height: E, title: `${e.gridOptions.context.configCaption || this.$t("ERX.ErGrid.ShowDetailForm") || "查看明细"}` }), c.BordStyle = "Sizable";
|
|
11405
11407
|
}
|
|
11406
|
-
e.gridOptions.context.detailFormHelper = c, (D = (F = (I = e.gridOptions) == null ? void 0 : I.context) == null ? void 0 : F.options) != null && D.detailItemValueChanged && ((w = (
|
|
11408
|
+
e.gridOptions.context.detailFormHelper = c, (D = (F = (I = e.gridOptions) == null ? void 0 : I.context) == null ? void 0 : F.options) != null && D.detailItemValueChanged && ((w = (L = (v = e.gridOptions) == null ? void 0 : v.context) == null ? void 0 : L.options) == null ? void 0 : w.detailItemValueChanged) instanceof Function ? c.setEvent("itemValueChanged", (te = (P = (K = e.gridOptions) == null ? void 0 : K.context) == null ? void 0 : P.options) == null ? void 0 : te.detailItemValueChanged) : c.setEvent("ok", (ke) => {
|
|
11407
11409
|
var E;
|
|
11408
11410
|
(E = ke.dataModel) != null && E.dirty && Object.keys(ke.dataModel.dirtyFields).forEach((gt) => {
|
|
11409
11411
|
r.node.setDataValue(gt, ke.dataModel[gt]);
|
|
11410
11412
|
});
|
|
11411
|
-
}), (ge = (
|
|
11413
|
+
}), (ge = (me = (H = e.gridOptions) == null ? void 0 : H.context) == null ? void 0 : me.options) != null && ge.detailItemButtonClick && ((b = (Y = ($ = e.gridOptions) == null ? void 0 : $.context) == null ? void 0 : Y.options) == null ? void 0 : b.detailItemButtonClick) instanceof Function && c.setEvent("itemButtonClick", (re = (pe = (O = e.gridOptions) == null ? void 0 : O.context) == null ? void 0 : pe.options) == null ? void 0 : re.detailItemButtonClick), c.ReceiveData(r.node.data), c.EditType = (lt = (ve = e.gridOptions) == null ? void 0 : ve.context) != null && lt.editable ? "Modify" : "Query", c.show(null);
|
|
11412
11414
|
},
|
|
11413
11415
|
icon: l.Core.createErSvgElement("show-detail")
|
|
11414
11416
|
})), ((u = (s = r.node) == null ? void 0 : s.childrenAfterFilter) == null ? void 0 : u.length) > 0 && n.push("separator", "expandAll", "contractAll")), r.api.isColumnFilterPresent() && (n.push("separator"), n.push({
|
|
@@ -11453,7 +11455,7 @@ var g;
|
|
|
11453
11455
|
let S = "";
|
|
11454
11456
|
const A = await m();
|
|
11455
11457
|
A.getStatus() >= 0 && (S = l.Core.toString((D = (F = (I = A.getBlockByIndex(0)) == null ? void 0 : I.getMappedRows()) == null ? void 0 : F[0]) == null ? void 0 : D.EXT_OPTIONS, !0)), u.CancelButtonCaption = l.Core.$t("ERX.Close") || "关闭", u.CloseDialogWhenOkClick = s, u.setEvent("ok", async () => {
|
|
11456
|
-
const v = u.Content,
|
|
11458
|
+
const v = u.Content, L = l.Core.buildEiInfo([{ ...p, EXT_OPTIONS: v }], p.QUERY_TYPE.toUpperCase()), w = await l.Core.callService(r || this._serverPartition, l.SysInfo.saveDevConfigService, L);
|
|
11457
11459
|
return w.getStatus() < 0 ? l.Core.messageError(w.getMsg()) : l.Core.messageSuccess(l.Core.$t("ERX.OperateSuccess") || "操作成功!"), w.getStatus() >= 0;
|
|
11458
11460
|
}), u.setOptions({
|
|
11459
11461
|
title: p.QUERY_TYPE === "tsi00formext" ? `Form Extend Options [${p.FORM_NAME}]` : p.QUERY_TYPE === "tsi00gridviewext" ? `View Extend Options [${p.FORM_NAME}.${p.FUNCTION_ID}]` : `Item Extend Options [${p.FORM_NAME}.${p.FUNCTION_ID}.${c}]`
|
|
@@ -11493,9 +11495,9 @@ var g;
|
|
|
11493
11495
|
const F = new l.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: ai });
|
|
11494
11496
|
F.BordStyle = "Fixed";
|
|
11495
11497
|
const D = async () => {
|
|
11496
|
-
var
|
|
11498
|
+
var L;
|
|
11497
11499
|
const v = await c.FormHelper.callService(l.SysInfo.queryDevConfigService, l.Core.buildEiInfo({ OPERATE_TYPE: "tsi00datasettree" }));
|
|
11498
|
-
return v.getStatus() < 0 ? (l.Core.messageError(v.getMsg()), []) : ((
|
|
11500
|
+
return v.getStatus() < 0 ? (l.Core.messageError(v.getMsg()), []) : ((L = v.getBlockByIndex(0)) == null ? void 0 : L.getMappedRows()) || [];
|
|
11499
11501
|
};
|
|
11500
11502
|
F.receiveData(D), F.BeforeOkButtonClick = (v) => (v == null ? void 0 : v.NODE_TYPE) !== "DataTable" ? !1 : v, F.show(null, (v) => {
|
|
11501
11503
|
v != null && v.data && (c.FormHelper.setControlValue("LayoutGroupMain", "DATASET_NAME", v.data.DATASET_NAME), c.FormHelper.setControlValue("LayoutGroupMain", "TABLE_NAME", v.data.DATATABLE_NAME));
|
|
@@ -11547,7 +11549,7 @@ var g;
|
|
|
11547
11549
|
* @returns ColumnDefs
|
|
11548
11550
|
*/
|
|
11549
11551
|
getGridColumnDefs(e, t, o, i) {
|
|
11550
|
-
var v,
|
|
11552
|
+
var v, L, w, K, P, te, H, me, ge, $, Y;
|
|
11551
11553
|
let r = [];
|
|
11552
11554
|
this._gridColumnsConfigInfo[e] = {}, this._gridColumnsInfo[e] = {}, this._gridOptions[e] = this._gridOptions[e] || {};
|
|
11553
11555
|
const n = t.TSI00GRIDVIEW[0], s = t.TSI00GRIDCOLUMN, u = t.TSI00GRIDVIEW[0].TABLE_NAME;
|
|
@@ -11576,7 +11578,7 @@ var g;
|
|
|
11576
11578
|
});
|
|
11577
11579
|
const m = this.getModelFields(c), S = [], A = {};
|
|
11578
11580
|
let I, F;
|
|
11579
|
-
(((
|
|
11581
|
+
(((L = i == null ? void 0 : i.viewType) == null ? void 0 : L.toLowerCase()) === "band" || ((w = i == null ? void 0 : i.viewType) == null ? void 0 : w.toLowerCase()) === "bandview" && t.TSI00GRIDBAND && t.TSI00GRIDBAND.length > 0) && this.createGridBandColumn(t.TSI00GRIDBAND, S, A, void 0, i), S.length > 0 && (r = S);
|
|
11580
11582
|
let D = {};
|
|
11581
11583
|
for (let b = 0; b < s.length; b++) {
|
|
11582
11584
|
const O = s[b];
|
|
@@ -11797,7 +11799,7 @@ var g;
|
|
|
11797
11799
|
maxLength: a.toNumber(O.MAX_LENGTH),
|
|
11798
11800
|
formHelper: this,
|
|
11799
11801
|
configId: e
|
|
11800
|
-
}, ((P = O.POP_FORM) != null && P.trim().startsWith("MenuForm:") || (te = O.POP_FORM) != null && te.trim().startsWith("PopFormINQ:")) && ((
|
|
11802
|
+
}, ((P = O.POP_FORM) != null && P.trim().startsWith("MenuForm:") || (te = O.POP_FORM) != null && te.trim().startsWith("PopFormINQ:")) && ((H = O.AUTOFILL_COLS) == null ? void 0 : H.trim().length) > 0 && (D.cellEditorParams.event = (de) => {
|
|
11801
11803
|
var Tt, Dt, pt, qt;
|
|
11802
11804
|
const ot = O.AUTOFILL_COLS;
|
|
11803
11805
|
let ct = "", yt = !0;
|
|
@@ -11855,7 +11857,7 @@ var g;
|
|
|
11855
11857
|
D.valueFormatter = (de) => {
|
|
11856
11858
|
if (de.value !== void 0)
|
|
11857
11859
|
return Ue(de);
|
|
11858
|
-
}, ((
|
|
11860
|
+
}, ((me = O.CALL_FORM) == null ? void 0 : me.trim().length) > 0 && (D.cellRenderer = (de) => {
|
|
11859
11861
|
var ot;
|
|
11860
11862
|
if (de.value !== void 0) {
|
|
11861
11863
|
const ct = Ue(de), yt = ((ot = de.node) == null ? void 0 : ot.data) instanceof l.Model;
|
|
@@ -12064,9 +12066,9 @@ var g;
|
|
|
12064
12066
|
if (o instanceof Function)
|
|
12065
12067
|
t.aggFunc = o;
|
|
12066
12068
|
else if ((o == null ? void 0 : o.trim().length) > 0) {
|
|
12067
|
-
const
|
|
12069
|
+
const L = (w, K) => {
|
|
12068
12070
|
w.childrenAfterFilter.forEach((P) => {
|
|
12069
|
-
P.group ?
|
|
12071
|
+
P.group ? L(P, K) : K.push(P);
|
|
12070
12072
|
});
|
|
12071
12073
|
};
|
|
12072
12074
|
switch (o) {
|
|
@@ -12087,13 +12089,13 @@ var g;
|
|
|
12087
12089
|
i.context.aggForChecked = !0, t.context.aggForChecked = !0, t.aggFunc = (w) => {
|
|
12088
12090
|
var K, P, te;
|
|
12089
12091
|
try {
|
|
12090
|
-
let
|
|
12091
|
-
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((
|
|
12092
|
+
let H = new wt(0);
|
|
12093
|
+
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((me) => {
|
|
12092
12094
|
var ge;
|
|
12093
|
-
|
|
12094
|
-
})),
|
|
12095
|
-
} catch (
|
|
12096
|
-
return console.error(
|
|
12095
|
+
me.group && me.aggData ? H = H.plus(new wt(me.aggData[w.colDef.field] || 0)) : (ge = me.data) != null && ge.uid && me.selected && (H = H.plus(new wt(me.data[w.colDef.field] || 0)));
|
|
12096
|
+
})), H.toNumber();
|
|
12097
|
+
} catch (H) {
|
|
12098
|
+
return console.error(H), 0;
|
|
12097
12099
|
}
|
|
12098
12100
|
};
|
|
12099
12101
|
break;
|
|
@@ -12101,23 +12103,23 @@ var g;
|
|
|
12101
12103
|
i.context.aggForChecked = !0, t.context.aggForChecked = !0, t.aggFunc = (w) => {
|
|
12102
12104
|
var K, P, te;
|
|
12103
12105
|
try {
|
|
12104
|
-
let
|
|
12106
|
+
let H = new wt(0), me = new wt(0);
|
|
12105
12107
|
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((ge) => {
|
|
12106
12108
|
var $;
|
|
12107
|
-
ge.group && ge.aggData ? (
|
|
12108
|
-
})), { aggValue:
|
|
12109
|
-
} catch (
|
|
12110
|
-
return console.error(
|
|
12109
|
+
ge.group && ge.aggData ? (H = H.plus(new wt(ge.aggData[w.colDef.field].aggValue || 0)), me = me.plus(new wt(ge.aggData[w.colDef.field].aggValueOfChecked || 0))) : ($ = ge.data) != null && $.uid && (ge.selected && (me = me.plus(new wt(ge.data[w.colDef.field] || 0))), H = H.plus(new wt(ge.data[w.colDef.field] || 0)));
|
|
12110
|
+
})), { aggValue: H.toNumber(), aggValueOfChecked: me.toNumber() };
|
|
12111
|
+
} catch (H) {
|
|
12112
|
+
return console.error(H), { aggValue: 0, aggValueOfChecked: 0 };
|
|
12111
12113
|
}
|
|
12112
12114
|
};
|
|
12113
12115
|
break;
|
|
12114
12116
|
case "SumForDistinct":
|
|
12115
12117
|
t.context.weightColumnField = ((n = r.WEIGHT_COLUMN) == null ? void 0 : n.trim()) || r.FIELD_NAME, t.context.weightColumnField = t.context.weightColumnField.split(","), t.aggFunc = (w) => {
|
|
12116
|
-
var K, P, te,
|
|
12118
|
+
var K, P, te, H, me, ge;
|
|
12117
12119
|
try {
|
|
12118
12120
|
let $ = new wt(0);
|
|
12119
12121
|
const Y = {};
|
|
12120
|
-
return ((te = (P = (K = w.colDef) == null ? void 0 : K.context) == null ? void 0 : P.weightColumnField) == null ? void 0 : te.length) > 0 && ((
|
|
12122
|
+
return ((te = (P = (K = w.colDef) == null ? void 0 : K.context) == null ? void 0 : P.weightColumnField) == null ? void 0 : te.length) > 0 && ((me = (H = w.rowNode) == null ? void 0 : H.childrenAfterFilter) == null ? void 0 : me.length) > 0 && ((ge = w.rowNode) == null || ge.childrenAfterFilter.forEach((b) => {
|
|
12121
12123
|
var O, pe, re;
|
|
12122
12124
|
if (b.group && b.aggData)
|
|
12123
12125
|
$ = $.plus(new wt(b.aggData[w.colDef.field] || 0));
|
|
@@ -12138,13 +12140,13 @@ var g;
|
|
|
12138
12140
|
i.context.aggForChecked = !0, t.context.aggForChecked = !0, t.aggFunc = (w) => {
|
|
12139
12141
|
var K, P, te;
|
|
12140
12142
|
try {
|
|
12141
|
-
let
|
|
12142
|
-
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((
|
|
12143
|
+
let H = 0;
|
|
12144
|
+
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((me) => {
|
|
12143
12145
|
var ge;
|
|
12144
|
-
|
|
12145
|
-
})),
|
|
12146
|
-
} catch (
|
|
12147
|
-
return console.error(
|
|
12146
|
+
me.group && me.aggData ? H = H + l.Core.toNumber(me.aggData[w.colDef.field]) : (ge = me.data) != null && ge.uid && me.selected && (H += 1);
|
|
12147
|
+
})), H;
|
|
12148
|
+
} catch (H) {
|
|
12149
|
+
return console.error(H), 0;
|
|
12148
12150
|
}
|
|
12149
12151
|
};
|
|
12150
12152
|
break;
|
|
@@ -12152,23 +12154,23 @@ var g;
|
|
|
12152
12154
|
i.context.aggForChecked = !0, t.context.aggForChecked = !0, t.aggFunc = (w) => {
|
|
12153
12155
|
var K, P, te;
|
|
12154
12156
|
try {
|
|
12155
|
-
let
|
|
12157
|
+
let H = new wt(0), me = new wt(0);
|
|
12156
12158
|
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((ge) => {
|
|
12157
12159
|
var $;
|
|
12158
|
-
ge.group && ge.aggData ? (
|
|
12159
|
-
})), { aggValue:
|
|
12160
|
-
} catch (
|
|
12161
|
-
return console.error(
|
|
12160
|
+
ge.group && ge.aggData ? (H = H.plus(new wt(ge.aggData[w.colDef.field].aggValue || 0)), me = me.plus(new wt(ge.aggData[w.colDef.field].aggValueOfChecked || 0))) : ($ = ge.data) != null && $.uid && (ge.selected && (me = me.plus(1)), H = H.plus(1));
|
|
12161
|
+
})), { aggValue: H.toNumber(), aggValueOfChecked: me.toNumber() };
|
|
12162
|
+
} catch (H) {
|
|
12163
|
+
return console.error(H), { aggValue: 0, aggValueOfChecked: 0 };
|
|
12162
12164
|
}
|
|
12163
12165
|
};
|
|
12164
12166
|
break;
|
|
12165
12167
|
case "CountForDistinct":
|
|
12166
12168
|
t.context.weightColumnField = ((s = r.WEIGHT_COLUMN) == null ? void 0 : s.trim()) || r.FIELD_NAME, t.context.weightColumnField = t.context.weightColumnField.split(","), t.aggFunc = (w) => {
|
|
12167
|
-
var K, P, te,
|
|
12169
|
+
var K, P, te, H, me, ge;
|
|
12168
12170
|
try {
|
|
12169
12171
|
let $ = new wt(0);
|
|
12170
12172
|
const Y = {};
|
|
12171
|
-
return ((te = (P = (K = w.colDef) == null ? void 0 : K.context) == null ? void 0 : P.weightColumnField) == null ? void 0 : te.length) > 0 && ((
|
|
12173
|
+
return ((te = (P = (K = w.colDef) == null ? void 0 : K.context) == null ? void 0 : P.weightColumnField) == null ? void 0 : te.length) > 0 && ((me = (H = w.rowNode) == null ? void 0 : H.childrenAfterFilter) == null ? void 0 : me.length) > 0 && ((ge = w.rowNode) == null || ge.childrenAfterFilter.forEach((b) => {
|
|
12172
12174
|
var O, pe, re;
|
|
12173
12175
|
if (b.group && b.aggData)
|
|
12174
12176
|
$ = $.plus(new wt(b.aggData[w.colDef.field] || 0));
|
|
@@ -12192,14 +12194,14 @@ var g;
|
|
|
12192
12194
|
const P = (c = r.WEIGHT_COLUMN) == null ? void 0 : c.trim().split("/");
|
|
12193
12195
|
P.length > 1 ? (w = P[0], K = P[1]) : (w = r.FIELD_NAME, K = P[0]), (A = (S = (m = (p = i.context) == null ? void 0 : p.bindingSource) == null ? void 0 : m.options) == null ? void 0 : S.schema) != null && A[w] && ((v = (D = (F = (I = i.context) == null ? void 0 : I.bindingSource) == null ? void 0 : F.options) == null ? void 0 : D.schema) != null && v[K]) && (t.context.weightColumnField = K, t.aggFunc = (te) => {
|
|
12194
12196
|
try {
|
|
12195
|
-
let
|
|
12197
|
+
let H = new wt(0), me = new wt(0);
|
|
12196
12198
|
const ge = [];
|
|
12197
|
-
return
|
|
12199
|
+
return L(te.rowNode, ge), ge.forEach(($) => {
|
|
12198
12200
|
const Y = new wt($.data[w] || 0), b = new wt($.data[K] || 0);
|
|
12199
|
-
o === "WeightedAverageEx" ?
|
|
12200
|
-
}),
|
|
12201
|
-
} catch (
|
|
12202
|
-
return console.error(
|
|
12201
|
+
o === "WeightedAverageEx" ? H = H.plus(Y) : H = H.plus(Y.times(b)), me = me.plus(b);
|
|
12202
|
+
}), me.toNumber() !== 0 ? H.dividedBy(me).toNumber() : 0;
|
|
12203
|
+
} catch (H) {
|
|
12204
|
+
return console.error(H), 0;
|
|
12203
12205
|
}
|
|
12204
12206
|
});
|
|
12205
12207
|
}
|
|
@@ -12208,13 +12210,13 @@ var g;
|
|
|
12208
12210
|
t.aggFunc = (w) => {
|
|
12209
12211
|
var K, P, te;
|
|
12210
12212
|
try {
|
|
12211
|
-
let
|
|
12212
|
-
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((
|
|
12213
|
+
let H = new wt(0);
|
|
12214
|
+
return ((P = (K = w.rowNode) == null ? void 0 : K.childrenAfterFilter) == null ? void 0 : P.length) > 0 && ((te = w.rowNode) == null || te.childrenAfterFilter.forEach((me) => {
|
|
12213
12215
|
var ge;
|
|
12214
|
-
|
|
12215
|
-
})),
|
|
12216
|
-
} catch (
|
|
12217
|
-
return console.error(
|
|
12216
|
+
me.group && me.aggData ? H = H.plus(new wt(me.aggData[w.colDef.field] || 0)) : (ge = me.data) != null && ge.uid && (H = H.plus(1));
|
|
12217
|
+
})), H.toNumber();
|
|
12218
|
+
} catch (H) {
|
|
12219
|
+
return console.error(H), 0;
|
|
12218
12220
|
}
|
|
12219
12221
|
};
|
|
12220
12222
|
break;
|
|
@@ -12223,8 +12225,8 @@ var g;
|
|
|
12223
12225
|
var K;
|
|
12224
12226
|
try {
|
|
12225
12227
|
let P = new wt(0), te = 0;
|
|
12226
|
-
return (K = w.values) == null || K.forEach((
|
|
12227
|
-
P = P.plus(new wt(
|
|
12228
|
+
return (K = w.values) == null || K.forEach((H) => {
|
|
12229
|
+
P = P.plus(new wt(H || 0)), te++;
|
|
12228
12230
|
}), te > 0 ? P.dividedBy(te).toNumber() : 0;
|
|
12229
12231
|
} catch (P) {
|
|
12230
12232
|
return console.error(P), 0;
|
|
@@ -12258,7 +12260,7 @@ var g;
|
|
|
12258
12260
|
* @returns this
|
|
12259
12261
|
*/
|
|
12260
12262
|
setGridColumnDropdown(e, t, o, i = "CODE", r, n = "default") {
|
|
12261
|
-
var p, m, S, A, I, F, D, v,
|
|
12263
|
+
var p, m, S, A, I, F, D, v, L, w, K, P, te, H, me, ge, $;
|
|
12262
12264
|
t.cellEditorPopup = ((m = (p = t.context) == null ? void 0 : p.columnConfig) == null ? void 0 : m.READ_ONLY) !== "1", t.cellEditor = La, t.cellEditorParams = {
|
|
12263
12265
|
readonly: ((A = (S = t.context) == null ? void 0 : S.columnConfig) == null ? void 0 : A.READ_ONLY) === "1",
|
|
12264
12266
|
formHelper: this,
|
|
@@ -12336,7 +12338,7 @@ var g;
|
|
|
12336
12338
|
}
|
|
12337
12339
|
},
|
|
12338
12340
|
caseSensitive: !0,
|
|
12339
|
-
buttons: ((w = (
|
|
12341
|
+
buttons: ((w = (L = t.context) == null ? void 0 : L.viewOptions) == null ? void 0 : w.showApplyFilterButton) !== !1 ? ["reset", "apply"] : void 0,
|
|
12340
12342
|
closeOnApply: (P = (K = t.context) == null ? void 0 : K.viewOptions) == null ? void 0 : P.closeOnApplyFilter
|
|
12341
12343
|
}
|
|
12342
12344
|
},
|
|
@@ -12344,8 +12346,8 @@ var g;
|
|
|
12344
12346
|
filter: "agSetColumnFilter",
|
|
12345
12347
|
filterParams: {
|
|
12346
12348
|
valueFormatter: (Y) => s[Y.value] || Y.value,
|
|
12347
|
-
buttons: ((
|
|
12348
|
-
closeOnApply: (ge = (
|
|
12349
|
+
buttons: ((H = (te = t.context) == null ? void 0 : te.viewOptions) == null ? void 0 : H.showApplyFilterButton) !== !1 ? ["reset", "apply"] : void 0,
|
|
12350
|
+
closeOnApply: (ge = (me = t.context) == null ? void 0 : me.viewOptions) == null ? void 0 : ge.closeOnApplyFilter
|
|
12349
12351
|
}
|
|
12350
12352
|
}
|
|
12351
12353
|
]
|
|
@@ -12369,14 +12371,14 @@ var g;
|
|
|
12369
12371
|
if (t.cellEditorParams.type = i.includes("HH") ? "datetime" : "date", t.cellEditorParams.showTime = i.includes("HH"), t.cellEditorParams.format = i.replaceAll("y", "Y").replaceAll("d", "D").replaceAll("/", "-"), t.cellEditorParams.picker = ["YYYY-MM", "YYYY/MM"].includes(i.toUpperCase()) ? "month" : i.toUpperCase() === "YYYY" ? "year" : void 0, t.context.columnConfig.ALLOW_FILTER === "0")
|
|
12370
12372
|
t.filter = !1;
|
|
12371
12373
|
else {
|
|
12372
|
-
const
|
|
12374
|
+
const L = ["DateSmart", "DateAlt", "Date"].includes(t.context.columnConfig.FILTER_POPMODE);
|
|
12373
12375
|
t.filter = "agMultiColumnFilter", t.filterParams = {
|
|
12374
12376
|
filters: [
|
|
12375
12377
|
{
|
|
12376
|
-
filter:
|
|
12378
|
+
filter: L ? "agDateColumnFilter" : "agTextColumnFilter",
|
|
12377
12379
|
filterParams: {
|
|
12378
|
-
inRangeInclusive:
|
|
12379
|
-
comparator:
|
|
12380
|
+
inRangeInclusive: L,
|
|
12381
|
+
comparator: L ? (w, K) => {
|
|
12380
12382
|
if (K == null)
|
|
12381
12383
|
return 0;
|
|
12382
12384
|
const P = Bt(K).toDate();
|
|
@@ -12398,35 +12400,35 @@ var g;
|
|
|
12398
12400
|
var K;
|
|
12399
12401
|
if ((K = w.data) != null && K[w.column.colDef.field])
|
|
12400
12402
|
return a.getDateTimeFormatString(w.data[w.column.colDef.field], i);
|
|
12401
|
-
}, t.context.columnConfig.AUTO_FILTER_CONDITION === "Contains" ? t.filterParams.defaultOption =
|
|
12403
|
+
}, t.context.columnConfig.AUTO_FILTER_CONDITION === "Contains" ? t.filterParams.defaultOption = L ? "inRange" : "contains" : t.context.columnConfig.AUTO_FILTER_CONDITION === "Like" || t.context.columnConfig.AUTO_FILTER_CONDITION === "StartsWith" ? t.filterParams.defaultOption = L ? "greaterThan" : "startsWith" : t.context.columnConfig.AUTO_FILTER_CONDITION === "EndsWith" ? t.filterParams.defaultOption = L ? "lessThan" : "endsWith" : t.filterParams.defaultOption = "equals";
|
|
12402
12404
|
}
|
|
12403
|
-
return t.valueFormatter = (
|
|
12404
|
-
var te,
|
|
12405
|
+
return t.valueFormatter = (L) => {
|
|
12406
|
+
var te, H, me, ge, $, Y, b, O, pe, re;
|
|
12405
12407
|
let w, K = i, P = "";
|
|
12406
|
-
return (
|
|
12408
|
+
return (H = (te = L.node) == null ? void 0 : te.rowGroupColumn) != null && H.colDef && L.value ? w = L.value : L.node.rowPinned || L.node.group ? (w = L.value, K = (L.node.rowPinned ? (Y = ($ = (ge = (me = L.column) == null ? void 0 : me.colDef) == null ? void 0 : ge.context) == null ? void 0 : $.columnConfig) == null ? void 0 : Y.SUMMARY_FORMAT_STRING : (re = (pe = (O = (b = L.column) == null ? void 0 : b.colDef) == null ? void 0 : O.context) == null ? void 0 : pe.columnConfig) == null ? void 0 : re.GROUP_FORMAT_STRING) || K) : L.value && (w = L.value), w !== void 0 && (typeof w == "string" || Bt.isDayjs(w) || w instanceof Date ? P = a.getDateTimeFormatString(w, K) : typeof w == "number" ? P = a.formatNumberValue(w, K) : ko.isPlainObject(w) && (P = `☑️ ${a.formatNumberValue(w.aggValueOfChecked, K)}
|
|
12407
12409
|
∑ ${a.formatNumberValue(w.aggValue, K)}`)), P;
|
|
12408
|
-
}, ((D = (F = t.context) == null ? void 0 : F.columnConfig) == null ? void 0 : D.CALL_FORM.trim().length) > 0 && (t.cellRenderer = (
|
|
12410
|
+
}, ((D = (F = t.context) == null ? void 0 : F.columnConfig) == null ? void 0 : D.CALL_FORM.trim().length) > 0 && (t.cellRenderer = (L) => {
|
|
12409
12411
|
var w, K, P;
|
|
12410
|
-
if (
|
|
12411
|
-
return t.valueFormatter(
|
|
12412
|
-
if (
|
|
12413
|
-
const te = t.valueFormatter(
|
|
12414
|
-
return ((w =
|
|
12412
|
+
if (L.node.rowPinned)
|
|
12413
|
+
return t.valueFormatter(L);
|
|
12414
|
+
if (L.value !== void 0) {
|
|
12415
|
+
const te = t.valueFormatter(L);
|
|
12416
|
+
return ((w = L.node) == null ? void 0 : w.data) instanceof l.Model && te ? a.createVNodeElement(Se(oi, {
|
|
12415
12417
|
params: {
|
|
12416
|
-
...
|
|
12418
|
+
...L,
|
|
12417
12419
|
callFormLink: !0,
|
|
12418
12420
|
displayText: te,
|
|
12419
12421
|
justifyContent: ((K = t.context.columnConfig) == null ? void 0 : K.HALIGNMENT) === "Near" ? "flex-start" : ((P = t.context.columnConfig) == null ? void 0 : P.HALIGNMENT) === "Far" ? "flex-end" : "center",
|
|
12420
|
-
click: (
|
|
12422
|
+
click: (H) => {
|
|
12421
12423
|
var $;
|
|
12422
|
-
let
|
|
12423
|
-
const ge = ($ =
|
|
12424
|
-
|
|
12424
|
+
let me = t.context.columnConfig.CALL_FORM;
|
|
12425
|
+
const ge = ($ = H.node) == null ? void 0 : $.data.toJSON();
|
|
12426
|
+
me.endsWith("??") ? (me = me.replace("??", ""), encodeURIComponent(encodeURIComponent(JSON.stringify(ge)))) : me.endsWith("?") && (me = me.replace("?", ""), encodeURIComponent(JSON.stringify(ge))), this.setLocalStorage(me, { senderType: "gridCell", value: H.value, data: ge, formNameFrom: this.FormName });
|
|
12425
12427
|
}
|
|
12426
12428
|
}
|
|
12427
12429
|
})) : te;
|
|
12428
12430
|
}
|
|
12429
|
-
}), t.tooltipField = void 0, t.tooltipValueGetter = (v = t.context.viewOptions) != null && v.enableCellTooltip ? (
|
|
12431
|
+
}), t.tooltipField = void 0, t.tooltipValueGetter = (v = t.context.viewOptions) != null && v.enableCellTooltip ? (L) => t.valueFormatter(L) : void 0, this;
|
|
12430
12432
|
}
|
|
12431
12433
|
/**
|
|
12432
12434
|
* 设置Grid的列数值型控件相关属性
|
|
@@ -12459,23 +12461,23 @@ var g;
|
|
|
12459
12461
|
}
|
|
12460
12462
|
]
|
|
12461
12463
|
}, t.context.columnConfig.AUTO_FILTER_CONDITION === "Contains" ? t.filterParams.defaultOption = "inRange" : t.context.columnConfig.AUTO_FILTER_CONDITION === "Like" || t.context.columnConfig.AUTO_FILTER_CONDITION === "StartsWith" ? t.filterParams.defaultOption = "greaterThan" : t.context.columnConfig.AUTO_FILTER_CONDITION === "EndsWith" ? t.filterParams.defaultOption = "lessThan" : t.filterParams.defaultOption = "equals"), t.valueFormatter = (v) => {
|
|
12462
|
-
var P, te,
|
|
12463
|
-
let
|
|
12464
|
-
return (
|
|
12465
|
-
∑ ${a.formatNumberValue(
|
|
12464
|
+
var P, te, H, me, ge, $, Y, b, O, pe;
|
|
12465
|
+
let L, w = (P = o == null ? void 0 : o.format) == null ? void 0 : P.trim(), K = "";
|
|
12466
|
+
return (H = (te = v.node) == null ? void 0 : te.rowGroupColumn) != null && H.colDef && v.value !== void 0 ? (L = v.value, w = ((ge = (me = t.context) == null ? void 0 : me.columnConfig) == null ? void 0 : ge.FORMAT_STRING) || w) : v.node.rowPinned || v.node.group ? (L = v.value, w = (v.node.rowPinned ? ($ = o == null ? void 0 : o.summaryFormat) == null ? void 0 : $.trim() : (Y = o == null ? void 0 : o.groupFormat) == null ? void 0 : Y.trim()) || ((b = o == null ? void 0 : o.format) == null ? void 0 : b.trim()) || "") : v.value !== void 0 && (L = v.value, w = ((pe = (O = t.context) == null ? void 0 : O.columnConfig) == null ? void 0 : pe.FORMAT_STRING) || w), L !== void 0 && (typeof L == "number" ? K = a.formatNumberValue(L, w) : ko.isPlainObject(L) ? K = `☑️ ${a.formatNumberValue(L.aggValueOfChecked, w)}
|
|
12467
|
+
∑ ${a.formatNumberValue(L.aggValue, w)}` : K = a.formatNumberValue(L, w)), K;
|
|
12466
12468
|
}, o.progressBar ? (t.cellRenderer = dn, t.cellRendererParams = (v) => {
|
|
12467
12469
|
var w;
|
|
12468
12470
|
v.displayText = a.formatNumberValue(v.value, (w = o == null ? void 0 : o.format) == null ? void 0 : w.trim()), v.maxValue = (o == null ? void 0 : o.max) > 0 ? o == null ? void 0 : o.max : 100, v.progressBarColor = "#299a8c";
|
|
12469
|
-
const
|
|
12470
|
-
if (
|
|
12471
|
-
const K =
|
|
12471
|
+
const L = this.getGridCustomEvent(e, "cellProgressBarColor");
|
|
12472
|
+
if (L && L instanceof Function) {
|
|
12473
|
+
const K = L(v);
|
|
12472
12474
|
K && (v.progressBarColor = K);
|
|
12473
12475
|
}
|
|
12474
12476
|
return v;
|
|
12475
12477
|
}) : ((F = (I = t.context) == null ? void 0 : I.columnConfig) == null ? void 0 : F.CALL_FORM.trim().length) > 0 && (t.cellRenderer = (v) => {
|
|
12476
|
-
var
|
|
12478
|
+
var L, w, K, P, te, H, me;
|
|
12477
12479
|
if (v.node.rowPinned)
|
|
12478
|
-
return (
|
|
12480
|
+
return (L = o == null ? void 0 : o.summaryFormat) != null && L.trim() || ((w = o == null ? void 0 : o.format) == null || w.trim()), t.valueFormatter(v);
|
|
12479
12481
|
if (v.value !== void 0) {
|
|
12480
12482
|
const ge = t.valueFormatter(v), $ = ((P = (K = t.context) == null ? void 0 : K.columnConfig) == null ? void 0 : P.CALL_FORM.trim().length) > 0 && ((te = v.node) == null ? void 0 : te.data) instanceof l.Model;
|
|
12481
12483
|
return $ && (ge == null ? void 0 : ge.length) > 0 ? a.createVNodeElement(Se(oi, {
|
|
@@ -12484,7 +12486,7 @@ var g;
|
|
|
12484
12486
|
callFormLink: $,
|
|
12485
12487
|
displayText: ge,
|
|
12486
12488
|
antTooltip: !0,
|
|
12487
|
-
justifyContent: ((
|
|
12489
|
+
justifyContent: ((H = t.context.columnConfig) == null ? void 0 : H.HALIGNMENT) === "Near" ? "flex-start" : ((me = t.context.columnConfig) == null ? void 0 : me.HALIGNMENT) === "Center" ? "center" : "flex-end",
|
|
12488
12490
|
click: $ ? (Y) => {
|
|
12489
12491
|
var pe;
|
|
12490
12492
|
let b = t.context.columnConfig.CALL_FORM;
|
|
@@ -12495,13 +12497,13 @@ var g;
|
|
|
12495
12497
|
})) : ge;
|
|
12496
12498
|
}
|
|
12497
12499
|
}), t.tooltipField = void 0, t.tooltipValueGetter = (D = t.context.viewOptions) != null && D.enableCellTooltip ? (v) => {
|
|
12498
|
-
var
|
|
12499
|
-
return v.node.rowPinned ? (
|
|
12500
|
+
var L, w, K;
|
|
12501
|
+
return v.node.rowPinned ? (L = o == null ? void 0 : o.summaryFormat) == null || L.trim() : v.node.group ? (w = o == null ? void 0 : o.groupFormat) == null || w.trim() : (K = o == null ? void 0 : o.format) == null || K.trim(), t.valueFormatter(v).replaceAll("<br>", `
|
|
12500
12502
|
`);
|
|
12501
12503
|
} : void 0, this;
|
|
12502
12504
|
}
|
|
12503
12505
|
getGridMenuItems(e) {
|
|
12504
|
-
var r, n, s, u, c, p, m, S, A, I, F, D, v,
|
|
12506
|
+
var r, n, s, u, c, p, m, S, A, I, F, D, v, L, w, K, P, te, H, me, ge, $, Y, b, O, pe, re;
|
|
12505
12507
|
const t = (n = (r = e.column) == null ? void 0 : r.gridOptionsService) == null ? void 0 : n.gridOptions, o = (s = t == null ? void 0 : t.context) == null ? void 0 : s.configId, i = e.defaultItems;
|
|
12506
12508
|
if (i.length = 0, i.length = 0, i.push("pinSubMenu", "separator", "autoSizeThis", "autoSizeAll", "separator"), e.api.getDisplayedRowCount() > 0 && ((c = (u = e.columnApi) == null ? void 0 : u.getRowGroupColumns()) == null ? void 0 : c.length) > 0 && i.push("expandAll", "contractAll", "separator"), this.getGridOptions(o, "ShowQuickFilter", !0) !== "2" && (this.getGridOptions(o, "ShowQuickFilter", !0) === "1" ? i.push({
|
|
12507
12509
|
name: this.$t("ERX.ErGrid.HideQuickFilter") || "隐藏快速搜索栏",
|
|
@@ -12680,7 +12682,7 @@ var g;
|
|
|
12680
12682
|
}
|
|
12681
12683
|
];
|
|
12682
12684
|
((v = (D = (F = t.context) == null ? void 0 : F.viewConfig) == null ? void 0 : D.SVC_NAME) == null ? void 0 : v.trim().length) > 0 && ve.push({
|
|
12683
|
-
name: "DataSource->" + ((K = (w = (
|
|
12685
|
+
name: "DataSource->" + ((K = (w = (L = t.context) == null ? void 0 : L.viewConfig) == null ? void 0 : w.SVC_NAME) == null ? void 0 : K.trim()),
|
|
12684
12686
|
action: () => {
|
|
12685
12687
|
var ke, E, gt;
|
|
12686
12688
|
l.Core.copyText((gt = (E = (ke = t.context) == null ? void 0 : ke.viewConfig) == null ? void 0 : E.SVC_NAME) == null ? void 0 : gt.trim());
|
|
@@ -12699,7 +12701,7 @@ var g;
|
|
|
12699
12701
|
},
|
|
12700
12702
|
{
|
|
12701
12703
|
name: "False",
|
|
12702
|
-
disabled: ((
|
|
12704
|
+
disabled: ((me = (H = t.context) == null ? void 0 : H.viewConfig) == null ? void 0 : me.SHOW_SELECTION) !== "1",
|
|
12703
12705
|
action: () => {
|
|
12704
12706
|
this.uploadGridViewProps(o, "SHOW_SELECTION", "0").then(() => {
|
|
12705
12707
|
t.context.viewConfig.SHOW_SELECTION = "0";
|
|
@@ -13315,8 +13317,8 @@ var g;
|
|
|
13315
13317
|
}
|
|
13316
13318
|
} else {
|
|
13317
13319
|
const F = this.getGridCreatedRows(e), D = this.getGridModifyRows(e), v = [...F, ...D];
|
|
13318
|
-
for (let
|
|
13319
|
-
const w = S.getModel().getRowNode(v[
|
|
13320
|
+
for (let L = 0; L < v.length; L++) {
|
|
13321
|
+
const w = S.getModel().getRowNode(v[L].uid);
|
|
13320
13322
|
if (w != null && w.data && (r = this.checkGridRowInput(S, w, I, o, i), !r))
|
|
13321
13323
|
return r;
|
|
13322
13324
|
}
|
|
@@ -13345,8 +13347,8 @@ var g;
|
|
|
13345
13347
|
w.editorType, w.setBorder ? w.setBorder("2px solid red") : w.setInvalid && w.setInvalid();
|
|
13346
13348
|
}), !1;
|
|
13347
13349
|
} else {
|
|
13348
|
-
let
|
|
13349
|
-
if (I.trim().length > 0 && ((u = this._formDataSet) != null && u.contains(I.trim())) && (
|
|
13350
|
+
let L = t == null ? void 0 : t.data;
|
|
13351
|
+
if (I.trim().length > 0 && ((u = this._formDataSet) != null && u.contains(I.trim())) && (L = (c = this._formDataSet) == null ? void 0 : c.getCurrentDataObject(I.trim())), a.checkExpressionValid(L, l.Core.getSystemFormatString(D)) && ((t == null ? void 0 : t.data[A]) === void 0 || (t == null ? void 0 : t.data[A]) === null || a.toString(t == null ? void 0 : t.data[A]).trim().length === 0 || ((p = v.context) == null ? void 0 : p.dataType) === "number" && (t == null ? void 0 : t.data[A]) === 0))
|
|
13350
13352
|
return r && (e.ensureNodeVisible(t, "top"), e.ensureColumnVisible(v.colId, "auto"), e.startEditingCell({ rowIndex: t.rowIndex || 0, colKey: v.colId }), a.messageWarning(l.Core.$t("ERX.InputEmptyMessage"))), !1;
|
|
13351
13353
|
}
|
|
13352
13354
|
}
|
|
@@ -14563,7 +14565,7 @@ var g;
|
|
|
14563
14565
|
return new Promise((i, r) => {
|
|
14564
14566
|
t && this.setEvent("ok", t), o && this.setEvent("cancel", o), this.app ? this.WindowOpened.value = !0 : this.Initialize().then(async (n) => {
|
|
14565
14567
|
var c, p;
|
|
14566
|
-
if (this._component || (this._component = e, this._component || (this._component = await import("./ErPopQuery-
|
|
14568
|
+
if (this._component || (this._component = e, this._component || (this._component = await import("./ErPopQuery-BS0sgx_I.js"), (c = this._component) != null && c.default && (this._component = this._component.default))), this.doEvent("initial", this), this.FormConfigQueryService.trim().length === 0) {
|
|
14567
14569
|
const m = this._formHelper.getFormButtonConfigInfo("btnQuery");
|
|
14568
14570
|
this.FormConfigQueryService = ((p = m == null ? void 0 : m.SVC_NAME) == null ? void 0 : p.trim()) || "";
|
|
14569
14571
|
}
|
|
@@ -14791,13 +14793,13 @@ var g;
|
|
|
14791
14793
|
this._serviceName,
|
|
14792
14794
|
this._sysConfiParas
|
|
14793
14795
|
).then((r) => {
|
|
14794
|
-
var n, s, u, c, p, m, S, A, I, F, D, v,
|
|
14796
|
+
var n, s, u, c, p, m, S, A, I, F, D, v, L, w, K, P, te, H, me, ge, $;
|
|
14795
14797
|
if (r.flag === 1) {
|
|
14796
14798
|
if (((c = (u = (s = (n = this._formHelper) == null ? void 0 : n.ConfigInfo) == null ? void 0 : s.TSI00FORM) == null ? void 0 : u.getMappedRows()) == null ? void 0 : c.length) > 0) {
|
|
14797
14799
|
const Y = (S = (m = (p = this._formHelper) == null ? void 0 : p.ConfigInfo) == null ? void 0 : m.TSI00FORM) == null ? void 0 : S.getMappedRows()[0];
|
|
14798
|
-
if (this._formOptions.value.title = this._formOptions.value.title ?? Y.FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? a.toNumber(Y.FORM_WIDTH), this._formOptions.value.height = this._formOptions.value.height ?? a.toNumber(Y.FORM_HEIGHT), this.BordStyle = this.BordStyle ?? (Y.FORM_STYLE === "3" ? "Fixed" : "Sizable"), ((D = (F = (I = (A = this._formHelper) == null ? void 0 : A.ConfigInfo) == null ? void 0 : I.TSI00FORMBUTTON) == null ? void 0 : F.getMappedRows()) == null ? void 0 : D.length) > 0 && this._formHelper.ConfigInfo.TSI00FORMBUTTON.getMappedRows().every((b) => b.BUTTON_NAME === "btnOk" ? (this.OkButtonService = b.SVC_NAME, !1) : !0), ((K = (w = (
|
|
14799
|
-
for (let b = 0; b < ((
|
|
14800
|
-
const O = ($ = (ge = (
|
|
14800
|
+
if (this._formOptions.value.title = this._formOptions.value.title ?? Y.FORM_FUNC_DESC, this._formOptions.value.width = this._formOptions.value.width ?? a.toNumber(Y.FORM_WIDTH), this._formOptions.value.height = this._formOptions.value.height ?? a.toNumber(Y.FORM_HEIGHT), this.BordStyle = this.BordStyle ?? (Y.FORM_STYLE === "3" ? "Fixed" : "Sizable"), ((D = (F = (I = (A = this._formHelper) == null ? void 0 : A.ConfigInfo) == null ? void 0 : I.TSI00FORMBUTTON) == null ? void 0 : F.getMappedRows()) == null ? void 0 : D.length) > 0 && this._formHelper.ConfigInfo.TSI00FORMBUTTON.getMappedRows().every((b) => b.BUTTON_NAME === "btnOk" ? (this.OkButtonService = b.SVC_NAME, !1) : !0), ((K = (w = (L = (v = this._formHelper) == null ? void 0 : v.ConfigInfo) == null ? void 0 : L.TSI00GRIDVIEW) == null ? void 0 : w.getMappedRows()) == null ? void 0 : K.length) > 0)
|
|
14801
|
+
for (let b = 0; b < ((H = (te = (P = this._formHelper) == null ? void 0 : P.ConfigInfo) == null ? void 0 : te.TSI00GRIDVIEW) == null ? void 0 : H.getMappedRows().length); b++) {
|
|
14802
|
+
const O = ($ = (ge = (me = this._formHelper) == null ? void 0 : me.ConfigInfo) == null ? void 0 : ge.TSI00GRIDVIEW) == null ? void 0 : $.getMappedRows()[b];
|
|
14801
14803
|
b == 0 && (this._mainLayoutId = O.FUNCTION_ID, this._tableName = this._formHelper.setBindingTableName(this._mainLayoutId), this._dataSet = this._formHelper.FormDataSet, this._dataTable = this._formHelper.getBindingTable(this._mainLayoutId)), this._layoutGroupIdArray.push(O.FUNCTION_ID), this._layoutGroupInfo[O.FUNCTION_ID] = O;
|
|
14802
14804
|
}
|
|
14803
14805
|
this._initializeFlag = 1;
|
|
@@ -14905,7 +14907,7 @@ var g;
|
|
|
14905
14907
|
};
|
|
14906
14908
|
t && this.setEvent("ok", t), o && this.setEvent("cancel", o), this.app ? n() : this.Initialize().then(async (s) => {
|
|
14907
14909
|
var p;
|
|
14908
|
-
this._component || (this._component = e, this._component || (this._component = await import("./ErPopFree-
|
|
14910
|
+
this._component || (this._component = e, this._component || (this._component = await import("./ErPopFree-TQj3wzrS.js"), (p = this._component) != null && p.default && (this._component = this._component.default))), this.doEvent("initial", this), this._initializeFlag = 1;
|
|
14909
14911
|
const u = Go(this._component, {
|
|
14910
14912
|
popFreeHelperProp: this,
|
|
14911
14913
|
formWidth: Number(this.getFormOption("width") ?? this.getFormOption("formWidth") ?? -1),
|
|
@@ -15459,7 +15461,7 @@ var g;
|
|
|
15459
15461
|
if (t && this.setEvent("ok", t), o && this.setEvent("cancel", o), this._app)
|
|
15460
15462
|
this._windowOpened.value = !0;
|
|
15461
15463
|
else {
|
|
15462
|
-
this._component || (this._component = e, this._component || (this._component = await import("./ErPopTree-
|
|
15464
|
+
this._component || (this._component = e, this._component || (this._component = await import("./ErPopTree-DshpECo5.js"), (n = this._component) != null && n.default && (this._component = this._component.default)));
|
|
15463
15465
|
const s = Go(this._component, {
|
|
15464
15466
|
popTreeHelperProp: this
|
|
15465
15467
|
});
|
|
@@ -15601,7 +15603,7 @@ var g;
|
|
|
15601
15603
|
if (this._app)
|
|
15602
15604
|
this._windowOpened.value = !0;
|
|
15603
15605
|
else {
|
|
15604
|
-
this._component || (this._component = e, this._component || (this._component = await import("./ErPopRichEditor-
|
|
15606
|
+
this._component || (this._component = e, this._component || (this._component = await import("./ErPopRichEditor-UIPFVkDP.js"), (n = this._component) != null && n.default && (this._component = this._component.default)));
|
|
15605
15607
|
const s = Go(this._component, {
|
|
15606
15608
|
popRichEditorProps: this,
|
|
15607
15609
|
options: this._options,
|
|
@@ -16023,12 +16025,12 @@ var g;
|
|
|
16023
16025
|
this._partition = e, this._instanceId = t, this._companyCode = o, this._bizBillNo = i, this._tableName = r, this._sysInfoFlag = 0, this._sysInfoMsg = "", n === void 0 && (n = {}), n.WF_REC_ID = t, n.BIZ_BILL_NO = i, n.COMPANY_CODE = o, n.TABLE_NAME = r;
|
|
16024
16026
|
const S = new ht(), A = a.buildEiBlock([n]);
|
|
16025
16027
|
S.addBlock(A), await a.callService(e, "si00wf_inq", S).then((I) => {
|
|
16026
|
-
var F, D, v,
|
|
16028
|
+
var F, D, v, L, w;
|
|
16027
16029
|
if (l.Core.toNumber((F = I == null ? void 0 : I.SysInfo) == null ? void 0 : F.Flag) !== 0)
|
|
16028
16030
|
this._sysInfoFlag = ((D = I == null ? void 0 : I.SysInfo) == null ? void 0 : D.Flag) || -1, this._sysInfoMsg = ((v = I == null ? void 0 : I.SysInfo) == null ? void 0 : v.Msg) || "", a.messageError(
|
|
16029
16031
|
"获取审批信息出错,业务单据号[" + i + "],流程实例[" + t + "],错误信息[" + this._sysInfoMsg + "]"
|
|
16030
16032
|
);
|
|
16031
|
-
else if (((
|
|
16033
|
+
else if (((L = I.getBlock("WORKFLOW")) == null ? void 0 : L.getMappedRows().length) > 0) {
|
|
16032
16034
|
let K = !1;
|
|
16033
16035
|
c = I.getBlock("WORKFLOW").getMappedRows(), c.forEach((P) => {
|
|
16034
16036
|
if (a.toString(P.EXEC_PERSON).length > 0)
|
|
@@ -16036,12 +16038,12 @@ var g;
|
|
|
16036
16038
|
else if (I.getBlock("EXCUTEUSERINFO") && !K) {
|
|
16037
16039
|
let te = I.getBlock("EXCUTEUSERINFO").getMappedRows().length;
|
|
16038
16040
|
te > 5 && (te = 5);
|
|
16039
|
-
let
|
|
16040
|
-
for (let
|
|
16041
|
-
let ge = a.toString(I.getBlock("EXCUTEUSERINFO").getMappedRows()[
|
|
16042
|
-
ge = ge.substring(ge.indexOf(":") + 1),
|
|
16041
|
+
let H = "";
|
|
16042
|
+
for (let me = 0; me < te; me++) {
|
|
16043
|
+
let ge = a.toString(I.getBlock("EXCUTEUSERINFO").getMappedRows()[me].USER_NAME);
|
|
16044
|
+
ge = ge.substring(ge.indexOf(":") + 1), H.length === 0 ? H = ge : H += "," + ge;
|
|
16043
16045
|
}
|
|
16044
|
-
P.EXEC_PERSON =
|
|
16046
|
+
P.EXEC_PERSON = H, K = !0;
|
|
16045
16047
|
} else
|
|
16046
16048
|
P.EXEC_PERSON = "";
|
|
16047
16049
|
if (a.toString(P.EXEC_DATETIME).length >= 14 && P.EXEC_DATETIME.substring(0, 4) !== "1901") {
|
|
@@ -16195,7 +16197,7 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16195
16197
|
emits: ["toolbarClick"],
|
|
16196
16198
|
setup(l, { emit: _ }) {
|
|
16197
16199
|
var X;
|
|
16198
|
-
const a = l, h = _,
|
|
16200
|
+
const a = l, h = _, U = N([]), ee = N([
|
|
16199
16201
|
{ name: "ToolbarFirst", caption: g.Core.$t("ERX.ErFormToolbar.First") || "第一页", icon: Je(fr), type: "primary", fontSize: "18px" },
|
|
16200
16202
|
{ name: "ToolbarPre", caption: g.Core.$t("ERX.ErFormToolbar.Pre") || "上一页", icon: Je(gr), type: "primary", fontSize: "18px" },
|
|
16201
16203
|
{ name: "ToolbarNext", caption: g.Core.$t("ERX.ErFormToolbar.Next") || "下一页", icon: Je(hr), type: "primary", fontSize: "18px" },
|
|
@@ -16214,12 +16216,12 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16214
16216
|
h("toolbarClick", { sender: q });
|
|
16215
16217
|
};
|
|
16216
16218
|
return $t(() => {
|
|
16217
|
-
a.showPageButton ||
|
|
16219
|
+
a.showPageButton || U.value.push(
|
|
16218
16220
|
"ToolbarFirst",
|
|
16219
16221
|
"ToolbarPre",
|
|
16220
16222
|
"ToolbarNext",
|
|
16221
16223
|
"ToolbarLast"
|
|
16222
|
-
), a.showPrintButton ||
|
|
16224
|
+
), a.showPrintButton || U.value.push("ToolbarPrint"), a.showRefreshButton || U.value.push("ToolbarRefresh"), a.showAddButton || U.value.push("ToolbarAdd"), a.showAddCopyButton || U.value.push("ToolbarAddCopy"), a.showDeleteButton || U.value.push("ToolbarDelete"), a.showSaveButton || U.value.push("ToolbarSave");
|
|
16223
16225
|
}), (q, le) => {
|
|
16224
16226
|
const Fe = Xe("a-button"), Te = Xe("a-tooltip"), Ve = Xe("a-config-providver");
|
|
16225
16227
|
return B(), tt("div", Tn, [
|
|
@@ -16242,7 +16244,7 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16242
16244
|
onClick: (at) => W(Ae),
|
|
16243
16245
|
style: { height: "22px", padding: "0px 5px", margin: "1px", "font-size": "14px" }
|
|
16244
16246
|
}, null, 8, ["id", "icon", "type", "onClick"])), [
|
|
16245
|
-
[zt,
|
|
16247
|
+
[zt, U.value.length > 0 ? !(U.value.findIndex((at) => at === Ae.name) >= 0) : !0]
|
|
16246
16248
|
])
|
|
16247
16249
|
]),
|
|
16248
16250
|
_: 2
|
|
@@ -16262,7 +16264,7 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16262
16264
|
"a-button": Lo
|
|
16263
16265
|
},
|
|
16264
16266
|
setup(l) {
|
|
16265
|
-
const _ = N(so()), a = N(Ut()), h = N("icon"),
|
|
16267
|
+
const _ = N(so()), a = N(Ut()), h = N("icon"), U = (W) => {
|
|
16266
16268
|
h.value = W;
|
|
16267
16269
|
}, ee = () => {
|
|
16268
16270
|
var q, le, Fe, Te, Ve, Ae;
|
|
@@ -16300,7 +16302,7 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16300
16302
|
let X = !1, q = W.action, le = !1;
|
|
16301
16303
|
const Fe = {};
|
|
16302
16304
|
l.params[W.name] ? (q = l.params[W.name].action, X = l.params[W.name].preventDefault, le = l.params[W.name].messageConfirm) : q || (q = G(W.name, "action"), X = G(W.name, "preventDefault"), le = G(W.name, "messageConfirm")), (Ae = (Te = l.params) == null ? void 0 : Te.formHelper) == null || Ae.stopGridEditing((Ve = l.params) == null ? void 0 : Ve.configId, async () => {
|
|
16303
|
-
var at, qe, z, Pe, Ke, st, je, ce, ne,
|
|
16305
|
+
var at, qe, z, Pe, Ke, st, je, ce, ne, x, R, Le, De, $e, xe, _e, ye, Re, se, Oe, Be, ft, _t, Ge, e, t, o, i, r, n, s, u, c, p, m, S, A;
|
|
16304
16306
|
if (X !== !0)
|
|
16305
16307
|
switch (W.name) {
|
|
16306
16308
|
case "refresh":
|
|
@@ -16313,7 +16315,7 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16313
16315
|
break;
|
|
16314
16316
|
}
|
|
16315
16317
|
case "addrow": {
|
|
16316
|
-
const I = (R = (ne = l.params) == null ? void 0 : ne.formHelper) == null ? void 0 : R.addRowToGrid((
|
|
16318
|
+
const I = (R = (ne = l.params) == null ? void 0 : ne.formHelper) == null ? void 0 : R.addRowToGrid((x = l.params) == null ? void 0 : x.configId);
|
|
16317
16319
|
I && (Fe.models = [I]);
|
|
16318
16320
|
break;
|
|
16319
16321
|
}
|
|
@@ -16330,14 +16332,14 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16330
16332
|
break;
|
|
16331
16333
|
}
|
|
16332
16334
|
case "excel": {
|
|
16333
|
-
const I = window.getCurrentFormInfo && window.getCurrentFormInfo(), F = (I == null ? void 0 : I.formName) || ((_t = l.params) == null ? void 0 : _t.formHelper.FormName), D = (I == null ? void 0 : I.formCaption) || ((Ge = l.params) == null ? void 0 : Ge.formHelper.FormCaption), v = (t = l.params) == null ? void 0 : t.formHelper.getGrid((e = l.params) == null ? void 0 : e.configId),
|
|
16335
|
+
const I = window.getCurrentFormInfo && window.getCurrentFormInfo(), F = (I == null ? void 0 : I.formName) || ((_t = l.params) == null ? void 0 : _t.formHelper.FormName), D = (I == null ? void 0 : I.formCaption) || ((Ge = l.params) == null ? void 0 : Ge.formHelper.FormCaption), v = (t = l.params) == null ? void 0 : t.formHelper.getGrid((e = l.params) == null ? void 0 : e.configId), L = {
|
|
16334
16336
|
fileName: `${(o = l.params) == null ? void 0 : o.formHelper.FormName}-${g.Core.getDateTimeFormatString(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH-mm-ss")}`,
|
|
16335
16337
|
exportData: (r = (i = v == null ? void 0 : v.gridOptions) == null ? void 0 : i.context) == null ? void 0 : r.bindingSource,
|
|
16336
16338
|
header: {
|
|
16337
16339
|
titleType: "both"
|
|
16338
16340
|
}
|
|
16339
16341
|
}, w = (s = l.params) == null ? void 0 : s.formHelper.getGridOptions((n = l.params) == null ? void 0 : n.configId, "excel");
|
|
16340
|
-
(w == null ? void 0 : w.fileName.trim().length) > 0 ?
|
|
16342
|
+
(w == null ? void 0 : w.fileName.trim().length) > 0 ? L.fileName = w == null ? void 0 : w.fileName.trim() : L.fileName = (c = (u = l.params) == null ? void 0 : u.formHelper) == null ? void 0 : c.getFormSysInfo("GRIDEXPORTFILENAME"), L.fileName = (L.fileName || "{formName}-{dateNow}").replace("{formName}", F).replace("{formCaption}", D).replace("{dateNow}", g.Core.getDateTimeFormatString(/* @__PURE__ */ new Date(), "yyyy-MM-dd HH-mm-ss")), (p = w == null ? void 0 : w.header) != null && p.titleType && (L.header.titleType = (m = w == null ? void 0 : w.header) == null ? void 0 : m.titleType);
|
|
16341
16343
|
break;
|
|
16342
16344
|
}
|
|
16343
16345
|
case "import": {
|
|
@@ -16349,11 +16351,11 @@ const Tn = { style: { display: "inline-block" } }, In = Ot({
|
|
|
16349
16351
|
});
|
|
16350
16352
|
},
|
|
16351
16353
|
toolbarStyle: h,
|
|
16352
|
-
setToolbarStyle:
|
|
16354
|
+
setToolbarStyle: U
|
|
16353
16355
|
};
|
|
16354
16356
|
}
|
|
16355
16357
|
}), Dn = { style: { display: "inline-block" } };
|
|
16356
|
-
function yn(l, _, a, h,
|
|
16358
|
+
function yn(l, _, a, h, U, ee) {
|
|
16357
16359
|
const G = Xe("a-button"), V = Xe("a-tooltip"), W = Xe("a-config-providver");
|
|
16358
16360
|
return B(), tt("div", Dn, [
|
|
16359
16361
|
Se(W, {
|
|
@@ -16396,54 +16398,54 @@ const Sn = /* @__PURE__ */ Jt(On, [["render", yn]]), vn = Ot({
|
|
|
16396
16398
|
props: ["params"],
|
|
16397
16399
|
setup(l) {
|
|
16398
16400
|
var Pe, Ke, st;
|
|
16399
|
-
const _ = N(((Pe = l.params.pageOptions) == null ? void 0 : Pe.pageSize) || 100), a = N(((st = (Ke = l.params.pageOptions) == null ? void 0 : Ke.pageSizes) == null ? void 0 : st.length) > 0 ? l.params.pageOptions.pageSizes : [10, 50, 100, 200, 500, 1e3]), h = N(0),
|
|
16400
|
-
V.value = ee.value === 1, W.value = ee.value === 1, X.value = ee.value ===
|
|
16401
|
+
const _ = N(((Pe = l.params.pageOptions) == null ? void 0 : Pe.pageSize) || 100), a = N(((st = (Ke = l.params.pageOptions) == null ? void 0 : Ke.pageSizes) == null ? void 0 : st.length) > 0 ? l.params.pageOptions.pageSizes : [10, 50, 100, 200, 500, 1e3]), h = N(0), U = N(1), ee = N(1), G = l.params.api, V = N(!0), W = N(!0), X = N(!0), q = N(!0), le = () => {
|
|
16402
|
+
V.value = ee.value === 1, W.value = ee.value === 1, X.value = ee.value === U.value, q.value = ee.value === U.value;
|
|
16401
16403
|
};
|
|
16402
16404
|
return {
|
|
16403
16405
|
gridApi: G,
|
|
16404
16406
|
ER: g,
|
|
16405
16407
|
pageSize: _,
|
|
16406
16408
|
pageSizes: a,
|
|
16407
|
-
totalPages:
|
|
16409
|
+
totalPages: U,
|
|
16408
16410
|
currentPage: ee,
|
|
16409
16411
|
totalCount: h,
|
|
16410
16412
|
onPageSizeChanged: () => {
|
|
16411
|
-
var je, ce, ne,
|
|
16413
|
+
var je, ce, ne, x, R, Le, De;
|
|
16412
16414
|
if (((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client")
|
|
16413
16415
|
G.paginationSetPageSize(_.value);
|
|
16414
|
-
else if (((R = (
|
|
16416
|
+
else if (((R = (x = l.params.pageOptions) == null ? void 0 : x.pagination) == null ? void 0 : R.toLowerCase()) === "server") {
|
|
16415
16417
|
const $e = l.params.formHelper.getGrid(l.params.configId);
|
|
16416
16418
|
(De = (Le = $e == null ? void 0 : $e.gridOptions) == null ? void 0 : Le.context) != null && De.pageOptions && ($e.gridOptions.context.pageOptions.pageSize = _.value, l.params.formHelper.excuteGridServerPaging(l.params.configId, 1));
|
|
16417
16419
|
}
|
|
16418
16420
|
},
|
|
16419
16421
|
onPageChanged: () => {
|
|
16420
|
-
var je, ce, ne,
|
|
16421
|
-
((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToPage(ee.value - 1) : ((R = (
|
|
16422
|
+
var je, ce, ne, x, R;
|
|
16423
|
+
((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToPage(ee.value - 1) : ((R = (x = l.params.pageOptions) == null ? void 0 : x.pagination) == null ? void 0 : R.toLowerCase()) === "server" && l.params.formHelper.excuteGridServerPaging(l.params.configId, ee.value);
|
|
16422
16424
|
},
|
|
16423
16425
|
toFirst: () => {
|
|
16424
|
-
var je, ce, ne,
|
|
16425
|
-
ee.value > 1 && (((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToFirstPage() : ((R = (
|
|
16426
|
+
var je, ce, ne, x, R;
|
|
16427
|
+
ee.value > 1 && (((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToFirstPage() : ((R = (x = l.params.pageOptions) == null ? void 0 : x.pagination) == null ? void 0 : R.toLowerCase()) === "server" && l.params.formHelper.excuteGridServerPaging(l.params.configId, 1));
|
|
16426
16428
|
},
|
|
16427
16429
|
toLast: () => {
|
|
16428
|
-
var je, ce, ne,
|
|
16429
|
-
ee.value <
|
|
16430
|
+
var je, ce, ne, x, R;
|
|
16431
|
+
ee.value < U.value && (((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToLastPage() : ((R = (x = l.params.pageOptions) == null ? void 0 : x.pagination) == null ? void 0 : R.toLowerCase()) === "server" && l.params.formHelper.excuteGridServerPaging(l.params.configId, U.value));
|
|
16430
16432
|
},
|
|
16431
16433
|
toPre: () => {
|
|
16432
|
-
var je, ce, ne,
|
|
16433
|
-
ee.value > 1 && (((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToPreviousPage() : ((R = (
|
|
16434
|
+
var je, ce, ne, x, R;
|
|
16435
|
+
ee.value > 1 && (((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToPreviousPage() : ((R = (x = l.params.pageOptions) == null ? void 0 : x.pagination) == null ? void 0 : R.toLowerCase()) === "server" && l.params.formHelper.excuteGridServerPaging(l.params.configId, ee.value - 1));
|
|
16434
16436
|
},
|
|
16435
16437
|
toNext: () => {
|
|
16436
|
-
var je, ce, ne,
|
|
16437
|
-
ee.value <
|
|
16438
|
+
var je, ce, ne, x, R;
|
|
16439
|
+
ee.value < U.value && (((je = l.params.pageOptions) == null ? void 0 : je.pagination) === !0 || ((ne = (ce = l.params.pageOptions) == null ? void 0 : ce.pagination) == null ? void 0 : ne.toLowerCase()) === "client" ? G.paginationGoToNextPage() : ((R = (x = l.params.pageOptions) == null ? void 0 : x.pagination) == null ? void 0 : R.toLowerCase()) === "server" && l.params.formHelper.excuteGridServerPaging(l.params.configId, ee.value + 1));
|
|
16438
16440
|
},
|
|
16439
16441
|
setPagination: (je) => {
|
|
16440
16442
|
var ce, ne;
|
|
16441
16443
|
if (((ce = l.params.pageOptions) == null ? void 0 : ce.pagination) === "server")
|
|
16442
|
-
h.value = (je == null ? void 0 : je.totalCount) || 0, _.value = (je == null ? void 0 : je.pageSize) || _.value,
|
|
16444
|
+
h.value = (je == null ? void 0 : je.totalCount) || 0, _.value = (je == null ? void 0 : je.pageSize) || _.value, U.value = Math.ceil(h.value / _.value) || 1, (je == null ? void 0 : je.currentPage) <= 0 ? ee.value = 1 : (je == null ? void 0 : je.currentPage) > U.value ? ee.value = U.value : ee.value = je == null ? void 0 : je.currentPage;
|
|
16443
16445
|
else {
|
|
16444
|
-
let
|
|
16446
|
+
let x = 0;
|
|
16445
16447
|
const R = (ne = l.params.formHelper) == null ? void 0 : ne.getBindingTable(l.params.configId);
|
|
16446
|
-
R && (
|
|
16448
|
+
R && (x = R.rowCount || 0), h.value = x, U.value = G.paginationGetTotalPages() || 1, ee.value = G.paginationGetCurrentPage() + 1, _.value = G.paginationGetPageSize();
|
|
16447
16449
|
}
|
|
16448
16450
|
le();
|
|
16449
16451
|
},
|
|
@@ -16454,7 +16456,7 @@ const Sn = /* @__PURE__ */ Jt(On, [["render", yn]]), vn = Ot({
|
|
|
16454
16456
|
};
|
|
16455
16457
|
}
|
|
16456
16458
|
}), Fn = { class: "ag-statusBar-pagination-panel" }, An = ["disabled"], Mn = ["disabled"], bn = ["value"], wn = ["disabled"], Rn = ["disabled"], Nn = { class: "ag-pagesize-box" }, Pn = ["value"], kn = { class: "ag-totalPages-box" }, Ln = { id: "totalPages" };
|
|
16457
|
-
function xn(l, _, a, h,
|
|
16459
|
+
function xn(l, _, a, h, U, ee) {
|
|
16458
16460
|
return B(), tt("div", Fn, [
|
|
16459
16461
|
we("div", {
|
|
16460
16462
|
class: Gt(["ag-button ag-paging-button", l.firstDisabled ? "ag-disabled" : ""]),
|
|
@@ -16531,7 +16533,7 @@ const Bn = /* @__PURE__ */ Jt(vn, [["render", xn], ["__scopeId", "data-v-e467677
|
|
|
16531
16533
|
setAggData: () => {
|
|
16532
16534
|
var le;
|
|
16533
16535
|
const h = (le = l.params.api) != null && le.rangeService ? l.params.api.rangeService.getCellRanges() : void 0;
|
|
16534
|
-
let
|
|
16536
|
+
let U = new wt(0), ee = 0, G = 0, V = 2, W = null, X = null;
|
|
16535
16537
|
const q = {};
|
|
16536
16538
|
h && h.length > 0 && h.forEach((Fe) => {
|
|
16537
16539
|
let Te = l.params.api.rangeService.getRangeStartRow(Fe);
|
|
@@ -16552,16 +16554,16 @@ const Bn = /* @__PURE__ */ Jt(vn, [["render", xn], ["__scopeId", "data-v-e467677
|
|
|
16552
16554
|
if (!z)
|
|
16553
16555
|
return;
|
|
16554
16556
|
let Pe = l.params.api.valueService.getValue(at, z);
|
|
16555
|
-
g.Core.isNullOrEmpty(Pe) || (ee++, !(typeof Pe == "object" && "value" in Pe && (Pe = Pe.value, Pe === "")) && (typeof Pe == "string" && (Pe = Number(Pe)), typeof Pe == "number" && !isNaN(Pe) && (new wt(Pe).decimalPlaces() > V && (V = new wt(Pe).decimalPlaces()),
|
|
16557
|
+
g.Core.isNullOrEmpty(Pe) || (ee++, !(typeof Pe == "object" && "value" in Pe && (Pe = Pe.value, Pe === "")) && (typeof Pe == "string" && (Pe = Number(Pe)), typeof Pe == "number" && !isNaN(Pe) && (new wt(Pe).decimalPlaces() > V && (V = new wt(Pe).decimalPlaces()), U = U.add(Pe), (X === null || Pe > X) && (X = Pe), (W === null || Pe < W) && (W = Pe), G++)));
|
|
16556
16558
|
}), Te = l.params.api.rangeService.cellNavigationService.getRowBelow(Te);
|
|
16557
16559
|
}), G > 1 ? (_.average = {
|
|
16558
16560
|
value: g.Core.formatNumberValue(
|
|
16559
|
-
|
|
16561
|
+
U.dividedBy(G).toDecimalPlaces(V).toNumber(),
|
|
16560
16562
|
"#,##0.######"
|
|
16561
16563
|
),
|
|
16562
16564
|
show: !0
|
|
16563
16565
|
}, _.sum = {
|
|
16564
|
-
value: g.Core.formatNumberValue(
|
|
16566
|
+
value: g.Core.formatNumberValue(U.toNumber(), "#,##0.######"),
|
|
16565
16567
|
show: !0
|
|
16566
16568
|
}, _.min = {
|
|
16567
16569
|
value: g.Core.formatNumberValue(W, "#,##0.######"),
|
|
@@ -16592,7 +16594,7 @@ const Bn = /* @__PURE__ */ Jt(vn, [["render", xn], ["__scopeId", "data-v-e467677
|
|
|
16592
16594
|
key: 4,
|
|
16593
16595
|
class: "ag-status-name-value"
|
|
16594
16596
|
}, jn = { class: "ag-status-name-value-value" };
|
|
16595
|
-
function Jn(l, _, a, h,
|
|
16597
|
+
function Jn(l, _, a, h, U, ee) {
|
|
16596
16598
|
var G, V, W, X, q, le, Fe, Te, Ve, Ae;
|
|
16597
16599
|
return B(), tt("div", Hn, [
|
|
16598
16600
|
(G = l.aggData.average) != null && G.show ? (B(), tt("div", Un, [
|
|
@@ -16654,7 +16656,7 @@ const Kn = /* @__PURE__ */ Jt(Gn, [["render", Jn], ["__scopeId", "data-v-73cdb63
|
|
|
16654
16656
|
key: 1,
|
|
16655
16657
|
style: { "padding-left": "5px" }
|
|
16656
16658
|
}, as = { style: { "white-space": "pre-line" } };
|
|
16657
|
-
function rs(l, _, a, h,
|
|
16659
|
+
function rs(l, _, a, h, U, ee) {
|
|
16658
16660
|
const G = Xe("a-tooltip");
|
|
16659
16661
|
return B(), tt("div", es, [
|
|
16660
16662
|
l.information.showFilterFlag ? (B(), tt("span", ts, [
|
|
@@ -16699,7 +16701,7 @@ const ls = /* @__PURE__ */ Jt(Zn, [["render", rs], ["__scopeId", "data-v-e727ce9
|
|
|
16699
16701
|
props: l
|
|
16700
16702
|
})
|
|
16701
16703
|
}), ss = { style: { "user-select": "text" } }, ds = ["id"], us = { style: { display: "flex", "flex-direction": "row" } }, cs = { style: { "font-weight": "bold" } }, ps = { style: { display: "block", "white-space": "pre-wrap" } };
|
|
16702
|
-
function fs(l, _, a, h,
|
|
16704
|
+
function fs(l, _, a, h, U, ee) {
|
|
16703
16705
|
var G;
|
|
16704
16706
|
return B(), tt("div", ss, [
|
|
16705
16707
|
(B(!0), tt(ro, null, yo((G = l.props.params.data) == null ? void 0 : G._preview_row_data, (V, W) => (B(), tt("div", {
|
|
@@ -16780,11 +16782,11 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16780
16782
|
},
|
|
16781
16783
|
emits: ["erGridReady", "click", "doubleClick", "focusChanged"],
|
|
16782
16784
|
setup(l, { emit: _ }) {
|
|
16783
|
-
const a = l, h = N(so()),
|
|
16785
|
+
const a = l, h = N(so()), U = N(Ut()), ee = _, G = Ii(), V = N(null), W = N(!1), X = N(void 0), q = N(void 0), le = N(void 0), Fe = N(void 0), Te = N(""), Ve = N(!1);
|
|
16784
16786
|
let Ae = null;
|
|
16785
16787
|
const at = vo(() => {
|
|
16786
16788
|
var R, Le;
|
|
16787
|
-
const
|
|
16789
|
+
const x = [
|
|
16788
16790
|
{
|
|
16789
16791
|
statusPanel: "ToolbarPanel",
|
|
16790
16792
|
statusPanelParams: {
|
|
@@ -16796,7 +16798,7 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16796
16798
|
align: "left"
|
|
16797
16799
|
}
|
|
16798
16800
|
];
|
|
16799
|
-
return ((R = a.options) == null ? void 0 : R.agAggregationComponent) !== !1 &&
|
|
16801
|
+
return ((R = a.options) == null ? void 0 : R.agAggregationComponent) !== !1 && x.push({
|
|
16800
16802
|
statusPanel: "AggregationPanel",
|
|
16801
16803
|
statusPanelParams: {
|
|
16802
16804
|
formHelper: a.erFormHelperProp,
|
|
@@ -16804,7 +16806,7 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16804
16806
|
},
|
|
16805
16807
|
key: "AggregationPanel",
|
|
16806
16808
|
align: "center"
|
|
16807
|
-
}),
|
|
16809
|
+
}), x.push({
|
|
16808
16810
|
statusPanel: "InformationPanel",
|
|
16809
16811
|
statusPanelParams: {
|
|
16810
16812
|
formHelper: a.erFormHelperProp,
|
|
@@ -16812,7 +16814,7 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16812
16814
|
},
|
|
16813
16815
|
key: "InformationPanel",
|
|
16814
16816
|
align: "right"
|
|
16815
|
-
}), (Le = a.pageOptions) != null && Le.pagination ?
|
|
16817
|
+
}), (Le = a.pageOptions) != null && Le.pagination ? x.push({
|
|
16816
16818
|
statusPanel: "PaginationPanel",
|
|
16817
16819
|
statusPanelParams: {
|
|
16818
16820
|
pageOptions: a.pageOptions,
|
|
@@ -16821,27 +16823,27 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16821
16823
|
},
|
|
16822
16824
|
key: "PaginationPanel",
|
|
16823
16825
|
align: "right"
|
|
16824
|
-
}) :
|
|
16826
|
+
}) : x.push({
|
|
16825
16827
|
statusPanel: "agTotalAndFilteredRowCountComponent",
|
|
16826
16828
|
align: "right"
|
|
16827
|
-
}), { statusPanels:
|
|
16828
|
-
}), qe = (
|
|
16829
|
+
}), { statusPanels: x };
|
|
16830
|
+
}), qe = (x) => {
|
|
16829
16831
|
var R, Le;
|
|
16830
16832
|
(Le = (R = V.value.gridOptions) == null ? void 0 : R.api) == null || Le.setQuickFilter(Te.value);
|
|
16831
|
-
}, z = (
|
|
16833
|
+
}, z = (x) => {
|
|
16832
16834
|
var R, Le;
|
|
16833
|
-
if (
|
|
16834
|
-
const De =
|
|
16835
|
+
if (x != null && x.api && (((R = a.pageOptions) == null ? void 0 : R.pagination) === !0 || ((Le = a.pageOptions) == null ? void 0 : Le.pagination) === "client")) {
|
|
16836
|
+
const De = x.api.getStatusPanel("PaginationPanel");
|
|
16835
16837
|
De && De.setPagination();
|
|
16836
16838
|
}
|
|
16837
|
-
}, Pe = (
|
|
16838
|
-
if (
|
|
16839
|
-
const R =
|
|
16839
|
+
}, Pe = (x) => {
|
|
16840
|
+
if (x != null && x.api) {
|
|
16841
|
+
const R = x.api.getStatusPanel("AggregationPanel");
|
|
16840
16842
|
R && R.setAggData();
|
|
16841
16843
|
}
|
|
16842
|
-
}, Ke = async (
|
|
16844
|
+
}, Ke = async (x) => {
|
|
16843
16845
|
var Le, De, $e, xe, _e, ye, Re, se, Oe, Be, ft;
|
|
16844
|
-
if (
|
|
16846
|
+
if (x.api.setPopupParent(document.querySelector("body")), a.erFormHelperProp && a.erFormHelperProp instanceof g.FormHelper && ((Le = a.configId) == null ? void 0 : Le.trim().length) > 0) {
|
|
16845
16847
|
await a.erFormHelperProp.loadGrid(
|
|
16846
16848
|
g.Core.toString(a.configId, !0),
|
|
16847
16849
|
V.value,
|
|
@@ -16849,7 +16851,7 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16849
16851
|
a.toolbarOptions,
|
|
16850
16852
|
a.pageOptions
|
|
16851
16853
|
);
|
|
16852
|
-
const _t = (De =
|
|
16854
|
+
const _t = (De = x.api) == null ? void 0 : De.getStatusPanel("ToolbarPanel");
|
|
16853
16855
|
_t && _t.setToolbarStyle((($e = a.toolbarOptions) == null ? void 0 : $e.style) ?? ((xe = a.options) == null ? void 0 : xe.toolbarStyle) ?? "both");
|
|
16854
16856
|
const Ge = a.erFormHelperProp.getSingleViewConfigInfo(a.configId);
|
|
16855
16857
|
(_e = a.erFormHelperProp) == null || _e.setGridToolbarVisible(a.configId, {
|
|
@@ -16910,33 +16912,33 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16910
16912
|
const F = Object.keys(e.context.previewFieldMap);
|
|
16911
16913
|
F.length > 0 && e.api.forEachNode((D) => {
|
|
16912
16914
|
const v = [];
|
|
16913
|
-
F.forEach((
|
|
16915
|
+
F.forEach((L) => {
|
|
16914
16916
|
var w;
|
|
16915
|
-
(w = D.data) != null && w[
|
|
16916
|
-
label: e.context.previewFieldMap[
|
|
16917
|
-
value: D.data[
|
|
16917
|
+
(w = D.data) != null && w[L] && v.push({
|
|
16918
|
+
label: e.context.previewFieldMap[L],
|
|
16919
|
+
value: D.data[L]
|
|
16918
16920
|
});
|
|
16919
16921
|
}), v.length > 0 && (D.data._preview_row_data = v, D.setExpanded(!0));
|
|
16920
16922
|
});
|
|
16921
16923
|
}
|
|
16922
|
-
((I = (A = e == null ? void 0 : e.context) == null ? void 0 : A.viewConfig) == null ? void 0 : I.AUTO_EXPAND_GROUP) === "1" &&
|
|
16924
|
+
((I = (A = e == null ? void 0 : e.context) == null ? void 0 : A.viewConfig) == null ? void 0 : I.AUTO_EXPAND_GROUP) === "1" && x.api.expandAll();
|
|
16923
16925
|
});
|
|
16924
16926
|
} else
|
|
16925
|
-
|
|
16926
|
-
((se = a.options) == null ? void 0 : se.sideBarClosed) !== !1 &&
|
|
16927
|
+
x.api.setColumnDefs([]), x.api.setRowData([]);
|
|
16928
|
+
((se = a.options) == null ? void 0 : se.sideBarClosed) !== !1 && x.api.closeToolPanel();
|
|
16927
16929
|
const R = (Oe = V.value.gridOptions.context) == null ? void 0 : Oe.options;
|
|
16928
|
-
(Be = a.options) != null && Be.masterDetail && ((ft = a.detailConfigId) == null ? void 0 : ft.trim().length) > 0 && (Fe.value = (R == null ? void 0 : R.detailRowHeight) ?? 300, le.value = R == null ? void 0 : R.detailRowAutoHeight), ee("erGridReady", { ...
|
|
16929
|
-
}, st = (
|
|
16930
|
-
ee("click", { ...
|
|
16931
|
-
}, je = (
|
|
16932
|
-
ee("doubleClick", { ...
|
|
16933
|
-
}, ce = (
|
|
16930
|
+
(Be = a.options) != null && Be.masterDetail && ((ft = a.detailConfigId) == null ? void 0 : ft.trim().length) > 0 && (Fe.value = (R == null ? void 0 : R.detailRowHeight) ?? 300, le.value = R == null ? void 0 : R.detailRowAutoHeight), ee("erGridReady", { ...x, configId: a.configId, erFormHelper: a.erFormHelperProp });
|
|
16931
|
+
}, st = (x) => {
|
|
16932
|
+
ee("click", { ...x, configId: a.configId, erFormHelper: a.erFormHelperProp });
|
|
16933
|
+
}, je = (x) => {
|
|
16934
|
+
ee("doubleClick", { ...x, configId: a.configId, erFormHelper: a.erFormHelperProp });
|
|
16935
|
+
}, ce = (x) => {
|
|
16934
16936
|
var R;
|
|
16935
|
-
return (R = a.erFormHelperProp) == null ? void 0 : R.getGridOptions(a.configId,
|
|
16937
|
+
return (R = a.erFormHelperProp) == null ? void 0 : R.getGridOptions(a.configId, x, !0);
|
|
16936
16938
|
};
|
|
16937
16939
|
return (() => {
|
|
16938
|
-
var
|
|
16939
|
-
if (a.erFormHelperProp && a.erFormHelperProp instanceof g.FormHelper && ((
|
|
16940
|
+
var x, R, Le, De, $e;
|
|
16941
|
+
if (a.erFormHelperProp && a.erFormHelperProp instanceof g.FormHelper && ((x = a.configId) == null ? void 0 : x.trim().length) > 0) {
|
|
16940
16942
|
const xe = a.erFormHelperProp.getSingleViewConfigInfo(a.configId);
|
|
16941
16943
|
if (Ve.value = ((R = a.toolbarOptions) == null ? void 0 : R.showToolbar) ?? xe.ENABLE_PAGEBAR !== "0", a.options && Object.keys(a.options).forEach((_e) => {
|
|
16942
16944
|
var ye;
|
|
@@ -16985,36 +16987,36 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
16985
16987
|
}
|
|
16986
16988
|
})(), $t(() => {
|
|
16987
16989
|
var R;
|
|
16988
|
-
const
|
|
16989
|
-
|
|
16990
|
+
const x = (R = a.erFormHelperProp) == null ? void 0 : R.getSystemGlobalOptions();
|
|
16991
|
+
x != null && x.GridFilterIconColor && a.erFormHelperProp.setGlobalStyleProperty(
|
|
16990
16992
|
"--er-grid-ag-icon-filter-color",
|
|
16991
|
-
|
|
16992
|
-
),
|
|
16993
|
+
x.GridFilterIconColor
|
|
16994
|
+
), x != null && x.GridSorterIconColor && a.erFormHelperProp.setGlobalStyleProperty(
|
|
16993
16995
|
"--er-grid-ag-icon-sorter-color",
|
|
16994
|
-
|
|
16995
|
-
),
|
|
16996
|
+
x.GridSorterIconColor
|
|
16997
|
+
), x != null && x.GridSorterIconFontSize && a.erFormHelperProp.setGlobalStyleProperty(
|
|
16996
16998
|
"--er-grid-ag-icon-sorter-font-size",
|
|
16997
|
-
|
|
16998
|
-
),
|
|
16999
|
+
x.GridSorterIconFontSize
|
|
17000
|
+
), x != null && x.GridFilterIconFontSize && a.erFormHelperProp.setGlobalStyleProperty(
|
|
16999
17001
|
"--er-grid-ag-icon-filter-font-size",
|
|
17000
|
-
|
|
17001
|
-
),
|
|
17002
|
+
x.GridFilterIconFontSize
|
|
17003
|
+
), x != null && x.GridMenuIconFontSize && a.erFormHelperProp.setGlobalStyleProperty(
|
|
17002
17004
|
"--er-grid-ag-icon-menu-font-size",
|
|
17003
|
-
|
|
17005
|
+
x.GridMenuIconFontSize
|
|
17004
17006
|
);
|
|
17005
17007
|
}), li(() => {
|
|
17006
17008
|
Ae == null || Ae.removeBindingInfo(a.erFormHelperProp, a.configId);
|
|
17007
|
-
const
|
|
17008
|
-
|
|
17009
|
+
const x = a.erFormHelperProp._gridInstanceInfo;
|
|
17010
|
+
x && delete x[a.configId];
|
|
17009
17011
|
}), ri(
|
|
17010
17012
|
() => a.erFormHelperProp.getGridOptions(a.configId, "RowSelection", !0),
|
|
17011
|
-
(
|
|
17012
|
-
|
|
17013
|
+
(x, R) => {
|
|
17014
|
+
x === "single" && a.erFormHelperProp.unCheckAllGridRow(a.configId), Yt(() => {
|
|
17013
17015
|
var Le, De;
|
|
17014
17016
|
(De = (Le = V.value.gridOptions) == null ? void 0 : Le.api) == null || De.refreshHeader();
|
|
17015
17017
|
});
|
|
17016
17018
|
}
|
|
17017
|
-
), (
|
|
17019
|
+
), (x, R) => {
|
|
17018
17020
|
var xe, _e, ye, Re, se, Oe, Be;
|
|
17019
17021
|
const Le = Xe("a-input"), De = Xe("a-config-providver"), $e = Xe("ag-grid-vue");
|
|
17020
17022
|
return B(), tt("div", {
|
|
@@ -17022,7 +17024,7 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
17022
17024
|
style: { height: "100%", width: "100%" }
|
|
17023
17025
|
}, [
|
|
17024
17026
|
Se(De, {
|
|
17025
|
-
theme:
|
|
17027
|
+
theme: U.value,
|
|
17026
17028
|
locale: h.value,
|
|
17027
17029
|
componentSize: "small"
|
|
17028
17030
|
}, {
|
|
@@ -17080,10 +17082,10 @@ const Ya = /* @__PURE__ */ Jt(ns, [["render", fs]]), gs = {
|
|
|
17080
17082
|
}
|
|
17081
17083
|
});
|
|
17082
17084
|
function $a() {
|
|
17083
|
-
var
|
|
17085
|
+
var U;
|
|
17084
17086
|
const l = ja();
|
|
17085
17087
|
let _ = l == null ? void 0 : l.appContext.config.globalProperties.$t;
|
|
17086
|
-
const a = l == null ? void 0 : l.appContext.config.globalProperties.hasOwnProperty("$t"), h = (
|
|
17088
|
+
const a = l == null ? void 0 : l.appContext.config.globalProperties.hasOwnProperty("$t"), h = (U = Xo == null ? void 0 : Xo.global) == null ? void 0 : U.hasOwnProperty("t");
|
|
17087
17089
|
if (!a && h && (_ = Xo.global.t), !a && !h) {
|
|
17088
17090
|
const ee = require("../../locales/erLocale/locale.zh_Hans.ts"), G = Object.keys(ee)[0];
|
|
17089
17091
|
_ = (V) => V.split(".").reduce((q, le) => q ? q[le] : void 0, ee[G].default);
|
|
@@ -17183,7 +17185,7 @@ const Is = Ot({
|
|
|
17183
17185
|
setup(l, { emit: _ }) {
|
|
17184
17186
|
const { $t: a } = $a(), h = N(
|
|
17185
17187
|
!(l.isCollapsed && l.openHeaderShow)
|
|
17186
|
-
),
|
|
17188
|
+
), U = () => {
|
|
17187
17189
|
_("queryClick");
|
|
17188
17190
|
}, ee = vo(() => `${l.id}_query`), G = N(
|
|
17189
17191
|
l.isCollapsed && l.openHeaderShow ? "flex: none" : typeof l.flex == "number" ? `flex: ${l.flex}; overflow: hidden` : `flex: ${l.flex}; overflow: auto`
|
|
@@ -17196,7 +17198,7 @@ const Is = Ot({
|
|
|
17196
17198
|
flexStyle: G,
|
|
17197
17199
|
heightStyle: V,
|
|
17198
17200
|
searchButtonId: ee,
|
|
17199
|
-
query:
|
|
17201
|
+
query: U,
|
|
17200
17202
|
openHeaderChange: () => {
|
|
17201
17203
|
h.value = !h.value, G.value = h.value ? `flex: ${l.flex}; overflow: hidden` : "flex: none", V.value = h.value ? `height: ${l.height}` : "height: auto", _("openHeaderChange", h.value);
|
|
17202
17204
|
}
|
|
@@ -17206,7 +17208,7 @@ const Is = Ot({
|
|
|
17206
17208
|
key: 0,
|
|
17207
17209
|
class: "card-header"
|
|
17208
17210
|
}, ys = { class: "header-title" }, Ss = { class: "header-right" }, vs = { class: "customBtn" }, Fs = ["id"], As = { class: "openHeader" }, Ms = { class: "body-content" };
|
|
17209
|
-
function bs(l, _, a, h,
|
|
17211
|
+
function bs(l, _, a, h, U, ee) {
|
|
17210
17212
|
const G = Xe("CaretDownOutlined"), V = Xe("CaretUpOutlined");
|
|
17211
17213
|
return B(), tt("div", {
|
|
17212
17214
|
class: "erpanel-root",
|
|
@@ -17277,8 +17279,8 @@ const uo = /* @__PURE__ */ Jt(Is, [["render", bs]]), ws = Ot({
|
|
|
17277
17279
|
if (l.params.data.imageBlobData)
|
|
17278
17280
|
a.value = l.params.data.imageBlobData;
|
|
17279
17281
|
else if (l.params.src && l.params.src.split("/").length > 1) {
|
|
17280
|
-
const
|
|
17281
|
-
|
|
17282
|
+
const U = await _.downloadFile({ key: l.params.src });
|
|
17283
|
+
U.flag && ((h = U.result) != null && h.data) && (a.value = URL.createObjectURL(new Blob([U.result.data])), l.params.data.imageBlobData = a.value);
|
|
17282
17284
|
}
|
|
17283
17285
|
}
|
|
17284
17286
|
}), li(() => {
|
|
@@ -17288,7 +17290,7 @@ const uo = /* @__PURE__ */ Jt(Is, [["render", bs]]), ws = Ot({
|
|
|
17288
17290
|
};
|
|
17289
17291
|
}
|
|
17290
17292
|
});
|
|
17291
|
-
function Rs(l, _, a, h,
|
|
17293
|
+
function Rs(l, _, a, h, U, ee) {
|
|
17292
17294
|
const G = Xe("a-image");
|
|
17293
17295
|
return B(), tt("div", null, [
|
|
17294
17296
|
Se(G, {
|
|
@@ -17313,7 +17315,7 @@ const Wa = /* @__PURE__ */ Jt(ws, [["render", Rs]]), Ns = Ot({
|
|
|
17313
17315
|
};
|
|
17314
17316
|
}
|
|
17315
17317
|
});
|
|
17316
|
-
function Ps(l, _, a, h,
|
|
17318
|
+
function Ps(l, _, a, h, U, ee) {
|
|
17317
17319
|
return B(), tt("div", null, [
|
|
17318
17320
|
(B(), he(Mo(l.nodeIconComponent))),
|
|
17319
17321
|
Ht(" " + et(l.props.params.value), 1)
|
|
@@ -17376,18 +17378,18 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17376
17378
|
},
|
|
17377
17379
|
emits: ["dropdownOpen", "update:modelValue", "change", "focus", "blur"],
|
|
17378
17380
|
setup(l, { expose: _, emit: a }) {
|
|
17379
|
-
var p, m, S, A, I, F, D, v,
|
|
17380
|
-
const h = l,
|
|
17381
|
+
var p, m, S, A, I, F, D, v, L, w, K, P, te, H, me, ge;
|
|
17382
|
+
const h = l, U = a, ee = Ii(), G = N(null), V = N([]), W = N(!1), X = {}, q = N(null), le = N(h.multiple ? "multiple" : "single"), Fe = [], Te = N(""), Ve = ((p = h.dataSource) == null ? void 0 : p.length) > 10, Ae = ((m = h.options) == null ? void 0 : m.valueField) || ((S = h.options) == null ? void 0 : S.dataValueField) || ((A = h.options) == null ? void 0 : A.valueMember) || "CODE", at = ((I = h.options) == null ? void 0 : I.textField) || ((F = h.options) == null ? void 0 : F.dataTextField) || ((D = h.options) == null ? void 0 : D.displayMember) || "CODE_DESC_1_CONTENT", qe = ((v = h.options) == null ? void 0 : v.parentField) || ((w = (L = h.options) == null ? void 0 : L.dropdownOptions) == null ? void 0 : w.parentField) || "PARENT_NODE", z = [];
|
|
17381
17383
|
let Pe = ((K = h.options) == null ? void 0 : K.displayRows) || 0, Ke = 500, st = 500, je = !0, ce, ne;
|
|
17382
|
-
const
|
|
17384
|
+
const x = vo({
|
|
17383
17385
|
get() {
|
|
17384
17386
|
return W.value = !1, h.multiple ? h.modelValue || [] : g.Core.toString(h.modelValue);
|
|
17385
17387
|
},
|
|
17386
17388
|
set($) {
|
|
17387
|
-
if (
|
|
17389
|
+
if (U("update:modelValue", $), h.modelValue !== $) {
|
|
17388
17390
|
const Y = {};
|
|
17389
17391
|
Y.preventDefault = () => {
|
|
17390
|
-
}, Y.newValue = $, Y.oldValue = h.modelValue,
|
|
17392
|
+
}, Y.newValue = $, Y.oldValue = h.modelValue, U("change", Y);
|
|
17391
17393
|
}
|
|
17392
17394
|
}
|
|
17393
17395
|
}), R = {
|
|
@@ -17400,7 +17402,7 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17400
17402
|
suppressCount: !0,
|
|
17401
17403
|
checkbox: h.multiple,
|
|
17402
17404
|
innerRenderer: ((P = h.options) == null ? void 0 : P.nodeRenderer) || xi,
|
|
17403
|
-
getNodeIconComponent: ((te = h.options) == null ? void 0 : te.getNodeIconComponent) || (((
|
|
17405
|
+
getNodeIconComponent: ((te = h.options) == null ? void 0 : te.getNodeIconComponent) || (((H = h.options) == null ? void 0 : H.defaultNodeIcon) !== !1 ? ($) => $.node.allChildrenCount ? $.node.expanded ? Je(Ci, { style: { color: "#f8b932" } }) : Je(_i, { style: { color: "#f8b932" } }) : Je(Aa) : void 0)
|
|
17404
17406
|
},
|
|
17405
17407
|
tooltipField: at
|
|
17406
17408
|
}, Le = ($) => $.orgHierarchy, De = ($) => $.data.uid, $e = ($) => {
|
|
@@ -17446,10 +17448,10 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17446
17448
|
se();
|
|
17447
17449
|
}
|
|
17448
17450
|
}, Re = () => {
|
|
17449
|
-
if (ce && (ce.deselectAll(),
|
|
17451
|
+
if (ce && (ce.deselectAll(), x.value))
|
|
17450
17452
|
if (h.multiple) {
|
|
17451
17453
|
let $ = [];
|
|
17452
|
-
if (typeof
|
|
17454
|
+
if (typeof x.value == "string" ? $ = [x.value] : x.value instanceof Array && ($ = x.value), $.length > 0) {
|
|
17453
17455
|
let Y;
|
|
17454
17456
|
ce.forEachLeafNode((b) => {
|
|
17455
17457
|
if ($.includes(b.data[Ae])) {
|
|
@@ -17462,7 +17464,7 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17462
17464
|
}
|
|
17463
17465
|
} else
|
|
17464
17466
|
ce.forEachLeafNode(($) => {
|
|
17465
|
-
if ($.data[Ae] ===
|
|
17467
|
+
if ($.data[Ae] === x.value) {
|
|
17466
17468
|
let Y = $.parent;
|
|
17467
17469
|
for (; Y; )
|
|
17468
17470
|
ce.setRowNodeExpanded(Y, !0), Y = Y.parent;
|
|
@@ -17504,7 +17506,7 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17504
17506
|
height: st + "px",
|
|
17505
17507
|
minWidth: Ke
|
|
17506
17508
|
}), je && (ce.setQuickFilter(), ce.setFilterModel(null), h.treeDropdown ? Oe(Ye) : ce.setRowData(Ye), je = !1), Yt(() => {
|
|
17507
|
-
G.value.focus(),
|
|
17509
|
+
G.value.focus(), U("dropdownOpen", {
|
|
17508
17510
|
gridApi: ce,
|
|
17509
17511
|
columnApi: ne,
|
|
17510
17512
|
dropDownColumns: Fe
|
|
@@ -17535,15 +17537,15 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17535
17537
|
ce == null || ce.setQuickFilter($);
|
|
17536
17538
|
});
|
|
17537
17539
|
}, Ge = ($) => {
|
|
17538
|
-
|
|
17540
|
+
U("focus", $);
|
|
17539
17541
|
}, e = ($) => {
|
|
17540
|
-
W.value = !1,
|
|
17542
|
+
W.value = !1, U("blur", $);
|
|
17541
17543
|
}, t = ($) => {
|
|
17542
17544
|
const Y = ce.getSelectedNodes(), b = [];
|
|
17543
17545
|
Y.forEach((O) => {
|
|
17544
17546
|
var pe, re;
|
|
17545
17547
|
(((re = (pe = h.options) == null ? void 0 : pe.dropdownOptions) == null ? void 0 : re.leafNodeSelect) === !1 || !O.allChildrenCount) && b.push(O.data[Ae]);
|
|
17546
|
-
}),
|
|
17548
|
+
}), x.value = b, W.value = !1;
|
|
17547
17549
|
}, o = ($) => {
|
|
17548
17550
|
W.value = !1;
|
|
17549
17551
|
}, i = ($) => {
|
|
@@ -17567,20 +17569,20 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17567
17569
|
if (!(h.treeDropdown && h.multiple)) {
|
|
17568
17570
|
if (!h.multiple) {
|
|
17569
17571
|
const rt = ce.getSelectedRows();
|
|
17570
|
-
rt.length === 1 && (
|
|
17572
|
+
rt.length === 1 && (x.value = rt[0][Ae]);
|
|
17571
17573
|
}
|
|
17572
17574
|
}
|
|
17573
17575
|
}), ce.addEventListener("cellClicked", (Ce) => {
|
|
17574
17576
|
if (Ce.data && !h.treeDropdown && !h.multiple) {
|
|
17575
17577
|
const rt = ce.getSelectedRows();
|
|
17576
|
-
rt.length === 1 && (
|
|
17578
|
+
rt.length === 1 && (x.value = rt[0][Ae]), W.value = !1;
|
|
17577
17579
|
}
|
|
17578
17580
|
}), ce.addEventListener("cellDoubleClicked", (Ce) => {
|
|
17579
17581
|
var rt, ut;
|
|
17580
|
-
Ce.data && h.treeDropdown && !h.multiple && (Ce.node.allChildrenCount && ((ut = (rt = h.options) == null ? void 0 : rt.dropdownOptions) == null ? void 0 : ut.leafNodeSelect) !== !1 || (
|
|
17582
|
+
Ce.data && h.treeDropdown && !h.multiple && (Ce.node.allChildrenCount && ((ut = (rt = h.options) == null ? void 0 : rt.dropdownOptions) == null ? void 0 : ut.leafNodeSelect) !== !1 || (x.value = Ce.data[Ae], W.value = !1));
|
|
17581
17583
|
}), ce.addEventListener("cellKeyDown", (Ce) => {
|
|
17582
17584
|
var rt, ut;
|
|
17583
|
-
((rt = Ce.event) == null ? void 0 : rt.key) === "Escape" ? W.value = !1 : ((ut = Ce.event) == null ? void 0 : ut.key) === "Enter" && Ce != null && Ce.data && (
|
|
17585
|
+
((rt = Ce.event) == null ? void 0 : rt.key) === "Escape" ? W.value = !1 : ((ut = Ce.event) == null ? void 0 : ut.key) === "Enter" && Ce != null && Ce.data && (x.value = Ce.data[Ae], W.value = !1);
|
|
17584
17586
|
}), ce.addEventListener("rowDataUpdated", (Ce) => {
|
|
17585
17587
|
setTimeout(() => {
|
|
17586
17588
|
Re();
|
|
@@ -17702,14 +17704,14 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17702
17704
|
}), _({
|
|
17703
17705
|
gridApi: ce,
|
|
17704
17706
|
antSelect: G.value,
|
|
17705
|
-
configId: (
|
|
17707
|
+
configId: (me = h.options) == null ? void 0 : me.configId,
|
|
17706
17708
|
itemCode: (ge = h.options) == null ? void 0 : ge.itemCode
|
|
17707
17709
|
}), ($, Y) => {
|
|
17708
17710
|
var lt, ke, E;
|
|
17709
17711
|
const b = Xe("a-select-option"), O = Xe("ag-grid-vue"), pe = Xe("a-button"), re = Xe("a-tag"), ve = Xe("a-select");
|
|
17710
17712
|
return B(), he(ve, io({
|
|
17711
|
-
value:
|
|
17712
|
-
"onUpdate:value": Y[0] || (Y[0] = (gt) =>
|
|
17713
|
+
value: x.value,
|
|
17714
|
+
"onUpdate:value": Y[0] || (Y[0] = (gt) => x.value = gt),
|
|
17713
17715
|
ref_key: "selectRef",
|
|
17714
17716
|
ref: G
|
|
17715
17717
|
}, Ne(ee), {
|
|
@@ -17871,7 +17873,7 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17871
17873
|
emits: ["update:modelValue", "change", "focus", "blur", "pressEnter"],
|
|
17872
17874
|
setup(l, { emit: _ }) {
|
|
17873
17875
|
var Pe;
|
|
17874
|
-
const a = l, h = _,
|
|
17876
|
+
const a = l, h = _, U = Ii(), ee = N(null), G = N(!1), V = N(""), W = N(250), X = N(null), q = N(Ut());
|
|
17875
17877
|
window.$wujie && ((Pe = window.$wujie.bus) == null || Pe.$on("changeThemeEmit", (Ke) => {
|
|
17876
17878
|
q.value = Ut();
|
|
17877
17879
|
}));
|
|
@@ -17905,13 +17907,13 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17905
17907
|
};
|
|
17906
17908
|
return $t(() => {
|
|
17907
17909
|
}), (Ke, st) => {
|
|
17908
|
-
const je = Xe("a-textarea"), ce = Xe("a-button"), ne = Xe("a-input"),
|
|
17910
|
+
const je = Xe("a-textarea"), ce = Xe("a-button"), ne = Xe("a-input"), x = Xe("a-popover"), R = Xe("a-config-providver");
|
|
17909
17911
|
return B(), he(R, {
|
|
17910
17912
|
theme: q.value,
|
|
17911
17913
|
locale: Ne(so)()
|
|
17912
17914
|
}, {
|
|
17913
17915
|
default: Q(() => [
|
|
17914
|
-
Se(
|
|
17916
|
+
Se(x, {
|
|
17915
17917
|
open: G.value,
|
|
17916
17918
|
"onUpdate:open": st[2] || (st[2] = (Le) => G.value = Le),
|
|
17917
17919
|
trigger: "click",
|
|
@@ -17926,13 +17928,13 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17926
17928
|
(B(), he(je, io({
|
|
17927
17929
|
value: V.value,
|
|
17928
17930
|
"onUpdate:value": st[0] || (st[0] = (_e) => V.value = _e)
|
|
17929
|
-
}, Ne(
|
|
17931
|
+
}, Ne(U), {
|
|
17930
17932
|
readonly: a.readonly,
|
|
17931
17933
|
disabled: a.disabled,
|
|
17932
|
-
rows: ((Le = Ne(
|
|
17933
|
-
id: ((De = Ne(
|
|
17934
|
-
name: (($e = Ne(
|
|
17935
|
-
key: ((xe = Ne(
|
|
17934
|
+
rows: ((Le = Ne(U)) == null ? void 0 : Le.rows) || 8,
|
|
17935
|
+
id: ((De = Ne(U)) == null ? void 0 : De.id) + "-PopoverTextarea",
|
|
17936
|
+
name: (($e = Ne(U)) == null ? void 0 : $e.id) + "-PopoverTextarea",
|
|
17937
|
+
key: ((xe = Ne(U)) == null ? void 0 : xe.id) + "-PopoverTextarea"
|
|
17936
17938
|
}), null, 16, ["value", "readonly", "disabled", "rows", "id", "name"])),
|
|
17937
17939
|
we("div", Gs, [
|
|
17938
17940
|
a.readonly !== !0 && a.disabled !== !0 ? (B(), he(ce, {
|
|
@@ -17966,7 +17968,7 @@ const xi = /* @__PURE__ */ Jt(Ns, [["render", Ps]]), ks = { style: { "padding-le
|
|
|
17966
17968
|
Se(ne, io({
|
|
17967
17969
|
value: le.value,
|
|
17968
17970
|
"onUpdate:value": st[1] || (st[1] = (Le) => le.value = Le)
|
|
17969
|
-
}, Ne(
|
|
17971
|
+
}, Ne(U), {
|
|
17970
17972
|
readOnly: a.readonly,
|
|
17971
17973
|
disabled: a.disabled,
|
|
17972
17974
|
ref_key: "inputRef",
|
|
@@ -18159,7 +18161,7 @@ const nd = Ot({
|
|
|
18159
18161
|
"blur"
|
|
18160
18162
|
],
|
|
18161
18163
|
setup(l, { emit: _ }) {
|
|
18162
|
-
const a = l, h = _,
|
|
18164
|
+
const a = l, h = _, U = N(!1), ee = N(null), G = N(""), V = N(!1), W = N("swap"), X = Zt({}), q = N(!1), le = N([]), Fe = N(null), Te = [], Ve = [], Ae = N(""), at = N(!1), qe = N(0), z = N(new g.Model()), Pe = N([]), Ke = N(-603), st = N(!1), je = N(""), ce = Zt({}), ne = [], x = [], R = N(a.options || {}), Le = Zt({}), De = N([]);
|
|
18163
18165
|
let $e = 5, xe = 5, _e = 4, ye = "F", Re = 0, se = {}, Oe = [], Be = -1, ft = "1fr", _t = {}, Ge = !0, e = !1, t;
|
|
18164
18166
|
const o = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: ai }), i = N(so()), r = N(Ut()), n = Da.useForm(
|
|
18165
18167
|
z,
|
|
@@ -18189,7 +18191,7 @@ const nd = Ot({
|
|
|
18189
18191
|
});
|
|
18190
18192
|
}, A = (C, k) => {
|
|
18191
18193
|
var oe;
|
|
18192
|
-
if (
|
|
18194
|
+
if (U.value) {
|
|
18193
18195
|
if (Oe.length > 0 && Oe[Oe.length - 1].ITEM_CODE === "erQueryButton" && Oe.pop(), S(), k.ITEM_CODE) {
|
|
18194
18196
|
(oe = a.erFormHelperProp.getLayoutLabelSpan(a.configId, k.ITEM_CODE)) == null || oe.addClass("layout-item-drag-move");
|
|
18195
18197
|
const We = document.getElementsByName(a.erFormHelperProp.FormId + a.configId + k.ITEM_CODE + "_empty");
|
|
@@ -18201,7 +18203,7 @@ const nd = Ot({
|
|
|
18201
18203
|
}
|
|
18202
18204
|
}, I = (C, k) => {
|
|
18203
18205
|
var oe;
|
|
18204
|
-
if (
|
|
18206
|
+
if (U.value && (m(), k.ITEM_CODE)) {
|
|
18205
18207
|
(oe = a.erFormHelperProp.getLayoutLabelSpan(a.configId, k.ITEM_CODE)) == null || oe.addClass("layout-item-drag-enter");
|
|
18206
18208
|
const We = document.getElementsByName(a.erFormHelperProp.FormId + a.configId + k.ITEM_CODE + "_empty");
|
|
18207
18209
|
We.length > 0 && We.forEach((Ye) => {
|
|
@@ -18209,7 +18211,7 @@ const nd = Ot({
|
|
|
18209
18211
|
});
|
|
18210
18212
|
}
|
|
18211
18213
|
}, F = (C, k) => {
|
|
18212
|
-
|
|
18214
|
+
U.value && (m(), S(), _t.ROW_GUID !== k.ROW_GUID && (W.value === "insert" ? p(_t.ROW_GUID, k.ROW_GUID) : c(_t.ROW_GUID, k.ROW_GUID), Pe.value = It(Oe), le.value = [], V.value = !0, Yt(() => {
|
|
18213
18215
|
qt();
|
|
18214
18216
|
})));
|
|
18215
18217
|
}, D = (C) => {
|
|
@@ -18220,7 +18222,7 @@ const nd = Ot({
|
|
|
18220
18222
|
CODE: We.MODULE_ENAME,
|
|
18221
18223
|
CODE_DESC_1_CONTENT: We.MODULE_CNAME
|
|
18222
18224
|
}));
|
|
18223
|
-
},
|
|
18225
|
+
}, L = async (C, k = !1) => {
|
|
18224
18226
|
let oe = {}, We = "";
|
|
18225
18227
|
const Ye = await v("15");
|
|
18226
18228
|
t = new g.PopFreeHelper(a.erFormHelperProp.ServerPartition, C, "LayoutGroupMain", a.erFormHelperProp.InitialService), t.setSavePartition(a.erFormHelperProp.ServerPartition), t.EditType = "Modify", t.OkButtonService = "si00_dev_save", t.OkButtonCaption = g.Core.$t("ERX.Save") || "Save", t.CancelButtonCaption = g.Core.$t("ERX.Close") || "Close", t.CloseDialogWhenOkClick = k, oe = (() => {
|
|
@@ -18269,11 +18271,11 @@ const nd = Ot({
|
|
|
18269
18271
|
}), t.show(null);
|
|
18270
18272
|
}, w = vo(() => {
|
|
18271
18273
|
const C = [];
|
|
18272
|
-
return a.erFormHelperProp.DevelopPermisson === "1" && !
|
|
18274
|
+
return a.erFormHelperProp.DevelopPermisson === "1" && !U.value && C.push({ key: "devMode", label: "Open Developer Mode", icon: () => Je(yr) }), C;
|
|
18273
18275
|
}), K = vo(() => {
|
|
18274
18276
|
var k, oe;
|
|
18275
18277
|
const C = [];
|
|
18276
|
-
return G.value.length > 0 && C.push({ key: "copySelection", label: "Copy Selection", icon: () => Je(Sr) }), z.value[ee.value.FIELD_NAME] && (C.push({ key: "copyContentText", label: "Copy Text", icon: () => Je(ki) }), ["antMultiSelect", "erMultiSelect", "erSelect"].includes(ee.value.WIDGET_TYPE) && ((oe = (k = ee.value) == null ? void 0 : k.Props) == null ? void 0 : oe.displayFormat) !== "{0}" && C.push({ key: "copyContentValue", label: "Copy Value", icon: () => Je(vr) })), C.push({ key: "copyLabel", label: "Copy Label", icon: () => Je(Fr) }),
|
|
18278
|
+
return G.value.length > 0 && C.push({ key: "copySelection", label: "Copy Selection", icon: () => Je(Sr) }), z.value[ee.value.FIELD_NAME] && (C.push({ key: "copyContentText", label: "Copy Text", icon: () => Je(ki) }), ["antMultiSelect", "erMultiSelect", "erSelect"].includes(ee.value.WIDGET_TYPE) && ((oe = (k = ee.value) == null ? void 0 : k.Props) == null ? void 0 : oe.displayFormat) !== "{0}" && C.push({ key: "copyContentValue", label: "Copy Value", icon: () => Je(vr) })), C.push({ key: "copyLabel", label: "Copy Label", icon: () => Je(Fr) }), U.value && (C.push({ key: "separator1", label: "separator", type: "divider" }), C.push({
|
|
18277
18279
|
key: "controlsPerRow",
|
|
18278
18280
|
label: "Number Of Layout Columns",
|
|
18279
18281
|
icon: () => Je(Ar),
|
|
@@ -18311,7 +18313,7 @@ const nd = Ot({
|
|
|
18311
18313
|
key: "controlConfig",
|
|
18312
18314
|
label: "Component Configuration",
|
|
18313
18315
|
icon: () => Je(kr),
|
|
18314
|
-
children:
|
|
18316
|
+
children: H(ee.value)
|
|
18315
18317
|
}), V.value && (C.push({ key: "separator2", label: "separator", type: "divider" }), C.push({ key: "cancelChanges", label: "Cancel Changes", icon: () => Je(Lr) }), C.push({ key: "saveLayout", label: "Save Changes", icon: () => Je(xr) })), C.push({ key: "separator3", label: "separator", type: "divider" }), C.push({ key: "devMode", label: "Close Developer Mode", icon: () => Je(Br) })), C;
|
|
18316
18318
|
}), P = () => {
|
|
18317
18319
|
const C = [];
|
|
@@ -18321,7 +18323,7 @@ const nd = Ot({
|
|
|
18321
18323
|
}, te = () => {
|
|
18322
18324
|
const C = [];
|
|
18323
18325
|
return C.push({ key: "displayFormName", label: "Form->" + se.FORM_NAME }), C.push({ key: "displayLayoutName", label: "Name->" + se.FUNCTION_ID }), C.push({ key: "displayLayoutCaption", label: "Caption->" + se.FUNCNAME }), C.push({ key: "displayAutoBind", label: `AutoBind->${a.autoBind ? "True" : "False"}` }), a.autoBind && (C.push({ key: "displayLayoutBindingDataSet", label: "DataSet->" + se.DATASET_NAME }), C.push({ key: "displayLayoutBindingDataTabel", label: "Table->" + se.TABLE_NAME })), C.push({ key: "layoutConfig", label: "More..." }), C;
|
|
18324
|
-
},
|
|
18326
|
+
}, H = (C) => {
|
|
18325
18327
|
const k = [];
|
|
18326
18328
|
return k.push({ key: "displayItemCode", label: "Name->" + C.ITEM_CODE }), k.push({ key: "displayItemLabel", label: "Label->" + C.COL_CAPTION }), k.push({ key: "displayItemComponent", label: "Component->" + C.WIDGET_TYPE }), ["erSelect", "erMultiSelect", "antRadioGroup", "antMultiSelect"].includes(C.WIDGET_TYPE) && k.push({ key: "displayItemDataSource", label: "DataSource->" + Y(C) }), k.push({ key: "separator21", label: "separator", type: "divider" }), k.push({
|
|
18327
18329
|
key: "controlGridSize",
|
|
@@ -18330,13 +18332,13 @@ const nd = Ot({
|
|
|
18330
18332
|
}), ["antTextarea", "antRadioGroup", "antMultiSelect"].includes(C.WIDGET_TYPE) && k.push({
|
|
18331
18333
|
key: "controlRowSize",
|
|
18332
18334
|
label: "Component's Row Span",
|
|
18333
|
-
children:
|
|
18335
|
+
children: me(C)
|
|
18334
18336
|
}), k.push({
|
|
18335
18337
|
key: "controlEmptySize",
|
|
18336
18338
|
label: "Empty Space After Component",
|
|
18337
18339
|
children: $(C)
|
|
18338
18340
|
}), k;
|
|
18339
|
-
},
|
|
18341
|
+
}, me = (C) => {
|
|
18340
18342
|
const k = [];
|
|
18341
18343
|
return ["1", "2", "3", "4", "5", "6", "7", "8", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20"].forEach((oe) => {
|
|
18342
18344
|
k.push({ key: `controlRowSize-${oe}`, label: oe, disabled: g.Core.toNumber(oe) === C.ROWHIGH });
|
|
@@ -18390,7 +18392,7 @@ const nd = Ot({
|
|
|
18390
18392
|
}
|
|
18391
18393
|
}, O = (C) => {
|
|
18392
18394
|
C.key === "devMode" && setTimeout(() => {
|
|
18393
|
-
|
|
18395
|
+
U.value = !U.value;
|
|
18394
18396
|
}, 250);
|
|
18395
18397
|
}, pe = (C, k) => {
|
|
18396
18398
|
var oe, We, Ye, Et, dt, Rt, St, Qt, At, y;
|
|
@@ -18404,10 +18406,10 @@ const nd = Ot({
|
|
|
18404
18406
|
g.Core.copyText(a.erFormHelperProp.getControlValue(a.configId, C.ITEM_CODE));
|
|
18405
18407
|
else if (k.key !== "paste") if (k.key === "devMode")
|
|
18406
18408
|
setTimeout(() => {
|
|
18407
|
-
|
|
18409
|
+
U.value = !U.value;
|
|
18408
18410
|
}, 250);
|
|
18409
18411
|
else if (k.key === "layoutConfig")
|
|
18410
|
-
|
|
18412
|
+
L("SI00LayoutEdit", !0);
|
|
18411
18413
|
else if ((oe = k.key) != null && oe.startsWith("controlsPerRow"))
|
|
18412
18414
|
_e = g.Core.toNumber(k.key.replace("controlsPerRow-", "")) || 4, se.DISPLAY_WIDTH = _e, Pe.value = It(Oe), V.value = !0;
|
|
18413
18415
|
else if ((We = k.key) != null && We.startsWith("display")) {
|
|
@@ -18498,7 +18500,7 @@ const nd = Ot({
|
|
|
18498
18500
|
justifyContent: "normal",
|
|
18499
18501
|
gridAutoColumns: "1fr",
|
|
18500
18502
|
gridGap: `${$e}px ${$e}px`,
|
|
18501
|
-
border:
|
|
18503
|
+
border: U.value ? "1px dotted red" : void 0,
|
|
18502
18504
|
padding: `${xe}px`
|
|
18503
18505
|
};
|
|
18504
18506
|
}), Ze = (C) => {
|
|
@@ -18549,7 +18551,7 @@ const nd = Ot({
|
|
|
18549
18551
|
}, Ue = (C) => {
|
|
18550
18552
|
h("QueryClick", { ...C, erFormHelper: a.erFormHelperProp, data: z.value, configId: a.configId });
|
|
18551
18553
|
}, de = async (C) => {
|
|
18552
|
-
var oe, We, Ye, Et, dt, Rt, St, Qt, At, y, M, f, j,
|
|
18554
|
+
var oe, We, Ye, Et, dt, Rt, St, Qt, At, y, M, f, j, Ee, ae;
|
|
18553
18555
|
let k = !1;
|
|
18554
18556
|
if (C.preventDefault = () => {
|
|
18555
18557
|
k = !0;
|
|
@@ -18557,7 +18559,7 @@ const nd = Ot({
|
|
|
18557
18559
|
const J = (St = C.itemConfig) == null ? void 0 : St.AUTOFILL_COLS;
|
|
18558
18560
|
Le[C.itemCode] = !0;
|
|
18559
18561
|
let be = "", He = !0;
|
|
18560
|
-
(At = (Qt = C.itemConfig) == null ? void 0 : Qt.POP_FORM) != null && At.trim().startsWith("MenuForm:") ? be = (M = (y = C.itemConfig) == null ? void 0 : y.POP_FORM) == null ? void 0 : M.trim().substring(9) : (j = (f = C.itemConfig) == null ? void 0 : f.POP_FORM) != null && j.trim().startsWith("PopFormINQ:") && (be = (ae = (
|
|
18562
|
+
(At = (Qt = C.itemConfig) == null ? void 0 : Qt.POP_FORM) != null && At.trim().startsWith("MenuForm:") ? be = (M = (y = C.itemConfig) == null ? void 0 : y.POP_FORM) == null ? void 0 : M.trim().substring(9) : (j = (f = C.itemConfig) == null ? void 0 : f.POP_FORM) != null && j.trim().startsWith("PopFormINQ:") && (be = (ae = (Ee = C.itemConfig) == null ? void 0 : Ee.POP_FORM) == null ? void 0 : ae.trim().substring(11), He = !1);
|
|
18561
18563
|
const ie = (Me) => {
|
|
18562
18564
|
J.length > 0 && J.split(";").forEach((d) => {
|
|
18563
18565
|
if (d.trim().length > 0) {
|
|
@@ -18617,9 +18619,9 @@ const nd = Ot({
|
|
|
18617
18619
|
} else
|
|
18618
18620
|
k.format = ["YYYY-MM-DD", "YYYYMMDD"];
|
|
18619
18621
|
else C.WIDGET_TYPE === "antTimePicker" ? C.FORMAT_STRING.trim() === "HH:mm" || C.FORMAT_STRING.trim() === "HH" ? k.format = C.FORMAT_STRING.trim() : k.format = "HH:mm:ss" : (C.WIDGET_TYPE === "antMultiSelect" || C.WIDGET_TYPE === "erMultiSelect") && ne.push(C.FIELD_NAME);
|
|
18620
|
-
return ["antMultiSelect", "erMultiSelect", "antTextarea", "antRadioGroup", "scriptEditor"].includes(C.WIDGET_TYPE) ? k.rows = C.ROWHIGH || 1 : ["erMemoEditor"].includes(C.WIDGET_TYPE) ? k.rows = C.ROWHIGH <= 1 ? 8 : C.ROWHIGH : (k.rows = 1, C.ROWHIGH = 1), C.WIDGET_TYPE === "erSelect" && (k.displayFormat = (We = (oe = a.erFormHelperProp.DropDownBindSource[a.configId.trim()]) == null ? void 0 : oe[C.ITEM_CODE]) == null ? void 0 : We.displayFormat),
|
|
18622
|
+
return ["antMultiSelect", "erMultiSelect", "antTextarea", "antRadioGroup", "scriptEditor"].includes(C.WIDGET_TYPE) ? k.rows = C.ROWHIGH || 1 : ["erMemoEditor"].includes(C.WIDGET_TYPE) ? k.rows = C.ROWHIGH <= 1 ? 8 : C.ROWHIGH : (k.rows = 1, C.ROWHIGH = 1), C.WIDGET_TYPE === "erSelect" && (k.displayFormat = (We = (oe = a.erFormHelperProp.DropDownBindSource[a.configId.trim()]) == null ? void 0 : oe[C.ITEM_CODE]) == null ? void 0 : We.displayFormat), x.push({ itemCode: C.ITEM_CODE, widgetType: C.WIDGET_TYPE, field: C.FIELD_NAME }), k;
|
|
18621
18623
|
}, It = (C) => {
|
|
18622
|
-
var Ye, Et, dt, Rt, St, Qt, At, y, M, f, j,
|
|
18624
|
+
var Ye, Et, dt, Rt, St, Qt, At, y, M, f, j, Ee, ae, J, be, He, ie;
|
|
18623
18625
|
const k = [], oe = ["addonAfter", "addonBefore", "controls", "prefix", "step", "size", "upIcon", "keyboard", "allowClear", "suffix", "showCount", "bordered", "clearIcon", "clearText", "dateInputReadOnly", "inputReadOnly", "disabledDate", "disabledTime", "validator", "hasFeedback"], We = {};
|
|
18624
18626
|
if (R.value && Object.keys(R.value).forEach((Me) => {
|
|
18625
18627
|
oe.includes(Me) && (We[Me] = R.value[Me]);
|
|
@@ -18667,7 +18669,7 @@ const nd = Ot({
|
|
|
18667
18669
|
}
|
|
18668
18670
|
Z.ROW_START = nt + 1, Z.ROW_END = nt + 1 + Ro, Z.COL_START = Pt + 1, Z.COL_END = Pt + 1 + co, Z.Props = yt(Z), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, Z.Props);
|
|
18669
18671
|
const Io = { ...We, ...(j = R.value) == null ? void 0 : j[Z.ITEM_CODE] };
|
|
18670
|
-
a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, Io), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { field: Z.FIELD_NAME }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { controlType: Z.WIDGET_TYPE }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { visible: Z.IS_VISIBLE }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { placeholder: Z.TOOL_TIP }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { labelText: Ho }), a.autoBind ? (a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { readOnly: !0 }), Z.COLUMN_EDIT === "1" && a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { buttonEnable: !1 })) : (a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { readOnly: Z.READ_ONLY === "1" }), Z.COLUMN_EDIT === "1" && a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { buttonEnable: Z.ALLOW_EDIT === "1" })), bt.Props = Z.Props, a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { rows: (
|
|
18672
|
+
a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, Io), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { field: Z.FIELD_NAME }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { controlType: Z.WIDGET_TYPE }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { visible: Z.IS_VISIBLE }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { placeholder: Z.TOOL_TIP }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { labelText: Ho }), a.autoBind ? (a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { readOnly: !0 }), Z.COLUMN_EDIT === "1" && a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { buttonEnable: !1 })) : (a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { readOnly: Z.READ_ONLY === "1" }), Z.COLUMN_EDIT === "1" && a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { buttonEnable: Z.ALLOW_EDIT === "1" })), bt.Props = Z.Props, a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { rows: (Ee = bt.Props) == null ? void 0 : Ee.rows });
|
|
18671
18673
|
const Vo = g.Core.toHexColor(Z.HEAD_TEXTCOLOR), Yo = g.Core.toHexColor(Z.HEAD_BACKCOLOR), $o = g.Core.toHexColor(Z.CELL_TEXTCOLOR), Wo = g.Core.toHexColor(Z.CELL_BACKCOLOR);
|
|
18672
18674
|
if (((ae = bt.UNBOUND_EXPRESSION) == null ? void 0 : ae.trim().length) === 0)
|
|
18673
18675
|
Z.LabelForeColor = Vo, Z.LabelBackColor = Yo, Z.TextForeColor = $o, Z.TextBackColor = Wo, a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { TextForeColor: Z.TextForeColor }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { TextBackColor: Z.TextBackColor }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { LabelForeColor: Z.LabelForeColor }), a.erFormHelperProp.setLayoutItemOption(a.configId, Z.ITEM_CODE, { LabelBackColor: Z.LabelBackColor });
|
|
@@ -18779,16 +18781,16 @@ const nd = Ot({
|
|
|
18779
18781
|
const y = a.erFormHelperProp.getConfigInfo(a.configId.trim());
|
|
18780
18782
|
if (((C = y == null ? void 0 : y.TSI00GRIDVIEW) == null ? void 0 : C.length) > 0) {
|
|
18781
18783
|
if (se = { ...y.TSI00GRIDVIEW[0] }, ye = ((k = se.FUNCTION_TYPE) == null ? void 0 : k.trim()) || "F", ((oe = se.EXT_OPTIONS) == null ? void 0 : oe.trim().length) > 0) {
|
|
18782
|
-
const
|
|
18783
|
-
R.value = { ...
|
|
18784
|
+
const Ee = JSON.parse(se.EXT_OPTIONS);
|
|
18785
|
+
R.value = { ...Ee, ...R.value };
|
|
18784
18786
|
}
|
|
18785
18787
|
const M = ((Ye = (We = a.erFormHelperProp.CurrentFormRegitInfo) == null ? void 0 : We.formButtons) == null ? void 0 : Ye[a.configId]) ?? [], f = R.value.customButtons ?? [];
|
|
18786
18788
|
De.value = [...M, ...f], Ae.value = se.TABLE_NAME, a.configCaption === void 0 || a.configCaption.length === 0 ? je.value = se.FUNCNAME : je.value = a.configCaption, Ke.value = se.ROWHIGH || -1, at.value = ye === "F" && se.BESTFIT === "1", g.Core.toNumber(se.FORM_WIDTH) > 0 && (ft = se.FORM_WIDTH + "px"), ye !== "F" ? (_e = g.Core.toNumber(se.EDIT_COLS_COUNT), _e = _e > 0 ? _e : 3) : (_e = g.Core.toNumber(se.DISPLAY_WIDTH), _e = _e > 0 ? _e : 4), $e = g.Core.toNumber((Et = R.value) == null ? void 0 : Et.gridGap), $e = $e > 0 ? $e : g.Core.toNumber(a.erFormHelperProp.getFormSysInfo("LAYOUTPADDING")), $e = $e > 0 ? $e : 5;
|
|
18787
18789
|
const j = ye !== "F" ? a.erFormHelperProp.getBindingTable(a.configId) : void 0;
|
|
18788
|
-
j ? Oe = (Rt = (dt = y.TSI00GRIDCOLUMN) == null ? void 0 : dt.filter((
|
|
18790
|
+
j ? Oe = (Rt = (dt = y.TSI00GRIDCOLUMN) == null ? void 0 : dt.filter((Ee) => {
|
|
18789
18791
|
var ae, J;
|
|
18790
|
-
return
|
|
18791
|
-
})) == null ? void 0 : Rt.map((
|
|
18792
|
+
return Ee.IS_VISIBLE === "1" && Ee.FIELD_NAME && ((J = (ae = j.options) == null ? void 0 : ae.schema) == null ? void 0 : J[Ee.FIELD_NAME]);
|
|
18793
|
+
})) == null ? void 0 : Rt.map((Ee) => ({ ...Ee })) : Oe = (Qt = (St = y.TSI00GRIDCOLUMN) == null ? void 0 : St.filter((Ee) => Ee.IS_VISIBLE === "1")) == null ? void 0 : Qt.map((Ee) => ({ ...Ee })), Pe.value = It(Oe), a.erFormHelperProp.setLayoutConfigRelationInfo(a.configId.trim(), a.layoutName.trim()), qe.value = g.Core.toNumber((At = R.value) == null ? void 0 : At.labelWidth), qe.value = qe.value > 0 ? qe.value : Re, a.displayRows > 0 && a.displayRows < Be ? Ke.value = a.displayRows : Ke.value = -1, ye === "F" && (st.value = a.labelAlignTop === !0 ? !0 : y.TSI00GRIDVIEW[0].SHOW_COLUMN_HEADER === "1"), a.autoBind && a.erFormHelperProp.setBindingTableName(a.configId.trim());
|
|
18792
18794
|
}
|
|
18793
18795
|
}
|
|
18794
18796
|
};
|
|
@@ -18856,7 +18858,7 @@ const nd = Ot({
|
|
|
18856
18858
|
var We;
|
|
18857
18859
|
Ge = a.erFormHelperProp.getFormSysInfo("LayoutItemHasFeedback").toLowerCase() !== "false", a.erFormHelperProp.setLayoutBindForm(a.configId, n);
|
|
18858
18860
|
const k = a.erFormHelperProp.getLayoutBindModel(a.configId), oe = a.erFormHelperProp.getBindingTable(a.configId);
|
|
18859
|
-
z.value = k, (We = z.value) == null || We.setBackup(), a.autoBind && !oe && console.warn("ER: AutoBind is true, but the binding table is not found."), a.configId && a.autoBind && oe ? oe.setBindingInfo(a.erFormHelperProp, a.configId, "Layout") : (
|
|
18861
|
+
z.value = k, (We = z.value) == null || We.setBackup(), a.autoBind && !oe && console.warn("ER: AutoBind is true, but the binding table is not found."), a.configId && a.autoBind && oe ? oe.setBindingInfo(a.erFormHelperProp, a.configId, "Layout") : (x.forEach((Ye) => {
|
|
18860
18862
|
z.value[Ye.field] === void 0 && (["erMultiSelect", "antMultiSelect"].includes(Ye.widgetType) ? z.value[Ye.field] = [] : ["antInputNumber"].includes(Ye.widgetType) ? z.value[Ye.field] = 0 : ["antCheckbox", "antSwitch"].includes(Ye.widgetType) ? z.value[Ye.field] = !1 : ["antDatePicker", "antDateTimePicker", "antMonthPicker", "antYearPicker"].includes(Ye.widgetType) ? z.value[Ye.field] = null : z.value[Ye.field] = "");
|
|
18861
18863
|
}), z.value.uid = g.Core.guid(), a.erFormHelperProp.setAllControlDefalutValue(a.configId), Yt(() => {
|
|
18862
18864
|
n.validate(), n.clearValidate();
|
|
@@ -18892,7 +18894,7 @@ const nd = Ot({
|
|
|
18892
18894
|
n.validate(), n.clearValidate(), !e && z.value.uid ? (a.erFormHelperProp.setAllControlReadOnly(a.configId, "default"), e = !0) : e && z.value.uid.length === 0 && (a.erFormHelperProp.setAllControlReadOnly(a.configId, !0), e = !1);
|
|
18893
18895
|
});
|
|
18894
18896
|
}), (C, k) => {
|
|
18895
|
-
const oe = Xe("a-button"), We = Xe("a-input"), Ye = Xe("a-input-group"), Et = Xe("a-tooltip"), dt = Xe("a-form-item"), Rt = Xe("a-radio-group"), St = Xe("a-tag"), Qt = Xe("a-select"), At = Xe("a-textarea"), y = Xe("a-checkbox"), M = Xe("a-switch"), f = Xe("a-input-number"), j = Xe("a-date-picker"),
|
|
18897
|
+
const oe = Xe("a-button"), We = Xe("a-input"), Ye = Xe("a-input-group"), Et = Xe("a-tooltip"), dt = Xe("a-form-item"), Rt = Xe("a-radio-group"), St = Xe("a-tag"), Qt = Xe("a-select"), At = Xe("a-textarea"), y = Xe("a-checkbox"), M = Xe("a-switch"), f = Xe("a-input-number"), j = Xe("a-date-picker"), Ee = Xe("a-time-picker"), ae = Xe("a-divider"), J = Xe("a-menu"), be = Xe("a-dropdown"), He = Xe("a-form"), ie = Xe("a-config-providver");
|
|
18896
18898
|
return B(), tt("div", null, [
|
|
18897
18899
|
Se(ie, {
|
|
18898
18900
|
theme: r.value,
|
|
@@ -18989,18 +18991,18 @@ const nd = Ot({
|
|
|
18989
18991
|
}, {
|
|
18990
18992
|
default: Q(() => [
|
|
18991
18993
|
(B(!0), tt(ro, null, yo(Pe.value, (d, nt) => (B(), tt("div", {
|
|
18992
|
-
draggable:
|
|
18994
|
+
draggable: U.value && d.WIDGET_TYPE !== "NA",
|
|
18993
18995
|
onDragstart: (Ct) => A(Ct, Pe.value[nt]),
|
|
18994
18996
|
onDragover: k[0] || (k[0] = Ea(() => {
|
|
18995
18997
|
}, ["prevent"])),
|
|
18996
18998
|
onDragenter: (Ct) => I(Ct, Pe.value[nt]),
|
|
18997
18999
|
onDrop: (Ct) => F(Ct, Pe.value[nt]),
|
|
18998
19000
|
key: nt,
|
|
18999
|
-
style: mt({ gridColumnStart: d.COL_START, gridColumnEnd: d.COL_END, gridRowStart: d.ROW_START, gridRowEnd: d.ROW_END, border:
|
|
19001
|
+
style: mt({ gridColumnStart: d.COL_START, gridColumnEnd: d.COL_END, gridRowStart: d.ROW_START, gridRowEnd: d.ROW_END, border: U.value ? "1px dotted red" : void 0 })
|
|
19000
19002
|
}, [
|
|
19001
19003
|
Se(be, {
|
|
19002
19004
|
trigger: ["contextmenu"],
|
|
19003
|
-
disabled: !
|
|
19005
|
+
disabled: !U.value,
|
|
19004
19006
|
onOpenChange: (Ct) => {
|
|
19005
19007
|
D({ opened: Ct, layoutItem: Pe.value[nt] });
|
|
19006
19008
|
}
|
|
@@ -19616,7 +19618,7 @@ const nd = Ot({
|
|
|
19616
19618
|
]),
|
|
19617
19619
|
_: 2
|
|
19618
19620
|
}, 1536)), [
|
|
19619
|
-
[zt, E(d.ITEM_CODE, "visible") && (d.ITEM_CODE !== "erQueryButton" ||
|
|
19621
|
+
[zt, E(d.ITEM_CODE, "visible") && (d.ITEM_CODE !== "erQueryButton" || U.value === !1)]
|
|
19620
19622
|
]) : d.WIDGET_TYPE === "antInputNumber" ? Lt((B(), he(dt, io({
|
|
19621
19623
|
key: 11,
|
|
19622
19624
|
id: ((Vo = a.erFormHelperProp) == null ? void 0 : Vo.FormId) + l.configId + d.ITEM_CODE + "_span",
|
|
@@ -19750,7 +19752,7 @@ const nd = Ot({
|
|
|
19750
19752
|
ref_for: !0
|
|
19751
19753
|
}, Ne(n).validateInfos[d.ITEM_CODE]), Xt({
|
|
19752
19754
|
default: Q(() => [
|
|
19753
|
-
(B(), he(
|
|
19755
|
+
(B(), he(Ee, {
|
|
19754
19756
|
value: z.value[d.FIELD_NAME],
|
|
19755
19757
|
"onUpdate:value": (ue) => z.value[d.FIELD_NAME] = ue,
|
|
19756
19758
|
valueModifiers: { lazy: !0 },
|
|
@@ -19799,7 +19801,7 @@ const nd = Ot({
|
|
|
19799
19801
|
id: ((Wo = a.erFormHelperProp) == null ? void 0 : Wo.FormId) + l.configId + d.ITEM_CODE + "_span",
|
|
19800
19802
|
"label-col": d.labelWidth ? { style: { width: `${d.labelWidth}px` } } : void 0,
|
|
19801
19803
|
style: mt({ textAlign: d.HALIGNMENT === "Near" ? "left" : d.HALIGNMENT === "Far" ? "right" : "center", color: E(d.ITEM_CODE, "LabelForeColor"), backgroundColor: E(d.ITEM_CODE, "LabelBackColor") })
|
|
19802
|
-
}, et(d.HEAD_TEXTVISIBLE === "1" ? E(d.ITEM_CODE, "labelText") :
|
|
19804
|
+
}, et(d.HEAD_TEXTVISIBLE === "1" ? E(d.ITEM_CODE, "labelText") : U.value ? E(d.ITEM_CODE, "labelText") + "(dev mode)" : ""), 13, od)), [
|
|
19803
19805
|
[zt, E(d.ITEM_CODE, "visible")]
|
|
19804
19806
|
]) : d.WIDGET_TYPE === "antDivider" ? Lt((B(), tt("div", {
|
|
19805
19807
|
key: 15,
|
|
@@ -19895,7 +19897,7 @@ const nd = Ot({
|
|
|
19895
19897
|
]),
|
|
19896
19898
|
_: 1
|
|
19897
19899
|
}, 8, ["model", "id", "label-wrap", "layout", "label-col", "style"])),
|
|
19898
|
-
a.erFormHelperProp.DevelopPermisson === "1" && Ne(ye) === "F" && !
|
|
19900
|
+
a.erFormHelperProp.DevelopPermisson === "1" && Ne(ye) === "F" && !U.value ? (B(), tt("div", ld, [
|
|
19899
19901
|
Se(be, null, {
|
|
19900
19902
|
overlay: Q(() => [
|
|
19901
19903
|
Se(J, {
|
|
@@ -20000,7 +20002,7 @@ const nd = Ot({
|
|
|
20000
20002
|
},
|
|
20001
20003
|
emits: ["clickClose", "formResize", "open"],
|
|
20002
20004
|
setup(l, { emit: _ }) {
|
|
20003
|
-
const a = N(), h = N(),
|
|
20005
|
+
const a = N(), h = N(), U = N(), ee = N({ x: 0, y: 0 });
|
|
20004
20006
|
N({ x: 0, y: 0 });
|
|
20005
20007
|
const G = N(!1), V = N({
|
|
20006
20008
|
startX: 0,
|
|
@@ -20049,12 +20051,12 @@ const nd = Ot({
|
|
|
20049
20051
|
!0
|
|
20050
20052
|
)), Yt(() => {
|
|
20051
20053
|
var e, t, o;
|
|
20052
|
-
l.draggable && ((e =
|
|
20054
|
+
l.draggable && ((e = U.value) == null || e.addEventListener("mousedown", Re)), l.resizable && ((t = a.value) == null || t.addEventListener("mousedown", Be), (o = a.value) == null || o.addEventListener("mousemove", ft));
|
|
20053
20055
|
});
|
|
20054
20056
|
}, ne = () => {
|
|
20055
20057
|
var e, t, o;
|
|
20056
|
-
(e =
|
|
20057
|
-
},
|
|
20058
|
+
(e = U.value) == null || e.removeEventListener("mousedown", Re), (t = a.value) == null || t.removeEventListener("mousedown", Be), (o = a.value) == null || o.removeEventListener("mousemove", ft), document == null || document.removeEventListener("mousemove", ft), document == null || document.removeEventListener("mouseup", _t);
|
|
20059
|
+
}, x = () => {
|
|
20058
20060
|
st(), a.value && z.unobserve(a.value), l.sameApp ? (ne(), q.value = !1) : (l.parentFormRef && window.addEventListener(
|
|
20059
20061
|
"keydown",
|
|
20060
20062
|
l.parentFormRef.value.handleKeyDown,
|
|
@@ -20067,7 +20069,7 @@ const nd = Ot({
|
|
|
20067
20069
|
}
|
|
20068
20070
|
));
|
|
20069
20071
|
}, R = () => {
|
|
20070
|
-
_("clickClose"),
|
|
20072
|
+
_("clickClose"), x();
|
|
20071
20073
|
}, Le = N(), De = async (e) => N("").value, $e = N({
|
|
20072
20074
|
zIndex: l.modalZIndex + 1,
|
|
20073
20075
|
width: "",
|
|
@@ -20163,10 +20165,10 @@ const nd = Ot({
|
|
|
20163
20165
|
erDialogBaseStyle: $e,
|
|
20164
20166
|
dialogVisible: q,
|
|
20165
20167
|
open: ce,
|
|
20166
|
-
close:
|
|
20168
|
+
close: x,
|
|
20167
20169
|
wujieAppUrl: le,
|
|
20168
20170
|
clickCloseIcon: R,
|
|
20169
|
-
dialogHeaderRef:
|
|
20171
|
+
dialogHeaderRef: U,
|
|
20170
20172
|
dialogContRef: a,
|
|
20171
20173
|
dialogRef: h,
|
|
20172
20174
|
isMaximine: xe,
|
|
@@ -20183,7 +20185,7 @@ const nd = Ot({
|
|
|
20183
20185
|
key: 1,
|
|
20184
20186
|
class: "er-dialog-form__content"
|
|
20185
20187
|
};
|
|
20186
|
-
function fd(l, _, a, h,
|
|
20188
|
+
function fd(l, _, a, h, U, ee) {
|
|
20187
20189
|
return Lt((B(), tt("div", {
|
|
20188
20190
|
ref: "dialogContRef",
|
|
20189
20191
|
style: mt(l.erDialogBaseStyle),
|
|
@@ -20322,7 +20324,7 @@ const gd = /* @__PURE__ */ Jt(sd, [["render", fd]]), hd = Ot({
|
|
|
20322
20324
|
"open"
|
|
20323
20325
|
],
|
|
20324
20326
|
setup(l, { emit: _ }) {
|
|
20325
|
-
const { $t: a } = $a(), h = N(!0),
|
|
20327
|
+
const { $t: a } = $a(), h = N(!0), U = N(900), ee = N(null), G = N(null), V = N(l.width), W = N(l.height), X = () => {
|
|
20326
20328
|
const z = document.querySelectorAll(
|
|
20327
20329
|
".xr-er-dialog__wrapper"
|
|
20328
20330
|
), Pe = document.querySelectorAll(
|
|
@@ -20336,7 +20338,7 @@ const gd = /* @__PURE__ */ Jt(sd, [["render", fd]]), hd = Ot({
|
|
|
20336
20338
|
}
|
|
20337
20339
|
), Math.max(...Ke) + 1;
|
|
20338
20340
|
} else
|
|
20339
|
-
return
|
|
20341
|
+
return U.value;
|
|
20340
20342
|
}, q = new IntersectionObserver((z) => {
|
|
20341
20343
|
z[0].intersectionRatio > 0 && l.parentFormRef && l.visible && setTimeout(() => {
|
|
20342
20344
|
window.removeEventListener(
|
|
@@ -20355,11 +20357,11 @@ const gd = /* @__PURE__ */ Jt(sd, [["render", fd]]), hd = Ot({
|
|
|
20355
20357
|
(z, Pe) => {
|
|
20356
20358
|
var Ke, st;
|
|
20357
20359
|
if (l.visible)
|
|
20358
|
-
|
|
20360
|
+
U.value = X(), le(), l.parentFormRef && window.removeEventListener(
|
|
20359
20361
|
"keydown",
|
|
20360
20362
|
l.parentFormRef.handleKeyDown,
|
|
20361
20363
|
!0
|
|
20362
|
-
), l.destroyOnClose ? (h.value = !0,
|
|
20364
|
+
), l.destroyOnClose ? (h.value = !0, U.value = X()) : ee.value.setEfDialogFormStyle(), Yt(() => {
|
|
20363
20365
|
var je;
|
|
20364
20366
|
(je = ee.value) == null || je.open();
|
|
20365
20367
|
});
|
|
@@ -20400,7 +20402,7 @@ const gd = /* @__PURE__ */ Jt(sd, [["render", fd]]), hd = Ot({
|
|
|
20400
20402
|
dialogBaseRef: ee,
|
|
20401
20403
|
xrEfDialogRef: G,
|
|
20402
20404
|
onClickClose: Ve,
|
|
20403
|
-
dialogZIndex:
|
|
20405
|
+
dialogZIndex: U,
|
|
20404
20406
|
confirmClick: Ae,
|
|
20405
20407
|
cancelClick: at,
|
|
20406
20408
|
dialogResize: qe,
|
|
@@ -20408,7 +20410,7 @@ const gd = /* @__PURE__ */ Jt(sd, [["render", fd]]), hd = Ot({
|
|
|
20408
20410
|
};
|
|
20409
20411
|
}
|
|
20410
20412
|
}), md = ["id"];
|
|
20411
|
-
function Ed(l, _, a, h,
|
|
20413
|
+
function Ed(l, _, a, h, U, ee) {
|
|
20412
20414
|
const G = Xe("dialog-base");
|
|
20413
20415
|
return l.isRender ? (B(), tt(ro, { key: 0 }, [
|
|
20414
20416
|
Lt(we("div", {
|
|
@@ -20503,7 +20505,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20503
20505
|
},
|
|
20504
20506
|
emits: ["OkClick", "CancelClick", "Closed"],
|
|
20505
20507
|
setup(l, { emit: _ }) {
|
|
20506
|
-
const a = l, h = _,
|
|
20508
|
+
const a = l, h = _, U = a.popFreeHelperProp.FormHelper;
|
|
20507
20509
|
let ee, G;
|
|
20508
20510
|
const V = N(null), W = N(!1), X = {}, q = {};
|
|
20509
20511
|
let le = [];
|
|
@@ -20529,8 +20531,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20529
20531
|
}, z = (ce) => {
|
|
20530
20532
|
const ne = a.popFreeHelperProp.FormHelper.getBindingTable(le[0]);
|
|
20531
20533
|
ne == null || ne.clear().add(a.popFreeHelperProp.ReceiveData()), setTimeout(() => {
|
|
20532
|
-
le.forEach((
|
|
20533
|
-
|
|
20534
|
+
le.forEach((x) => {
|
|
20535
|
+
U.setAllControlReadOnly(x, a.popFreeHelperProp.EditType !== "Query" ? "default" : !0), a.popFreeHelperProp.ReadOnlys && a.popFreeHelperProp.EditType !== "Query" && a.popFreeHelperProp.FormHelper.setControlReadOnlyEx(x, a.popFreeHelperProp.ReadOnlys);
|
|
20534
20536
|
}), a.popFreeHelperProp.doEvent("open");
|
|
20535
20537
|
}, 360);
|
|
20536
20538
|
}, Pe = async (ce) => {
|
|
@@ -20544,26 +20546,26 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20544
20546
|
};
|
|
20545
20547
|
if (!((De = a.popFreeHelperProp) != null && De.OkButtonPreventDefault)) {
|
|
20546
20548
|
if ((($e = a.popFreeHelperProp) == null ? void 0 : $e.OkButtonService.trim().length) > 0 && ((xe = a.popFreeHelperProp) == null ? void 0 : xe.EditType) === "Modify" && !a.popFreeHelperProp.DataTable.hasChanges()) {
|
|
20547
|
-
|
|
20549
|
+
U.messageInfo(U.$t("ERX.NoChangeMessage") || "数据未做任何修改,不需要保存操作!");
|
|
20548
20550
|
return;
|
|
20549
20551
|
}
|
|
20550
|
-
if (!await
|
|
20552
|
+
if (!await U.checkRequiredInput(le))
|
|
20551
20553
|
return;
|
|
20552
20554
|
if (((_e = a.popFreeHelperProp) == null ? void 0 : _e.OkButtonService.trim().length) > 0) {
|
|
20553
|
-
var
|
|
20554
|
-
if (((ye = a.popFreeHelperProp) == null ? void 0 : ye.EditType) === "Modify" ? (Re = a.popFreeHelperProp) != null && Re.TableName && ((se = a.popFreeHelperProp) == null ? void 0 : se.TableName.trim().length) > 0 ? R.rename(((Oe = a.popFreeHelperProp) == null ? void 0 : Oe.TableName.trim()) + "_MODIFY") : ee && ee.TABLE_NAME && ee.TABLE_NAME.trim().length > 0 && R.rename(ee.TABLE_NAME.trim() + "_MODIFY") : ((ft = (Be = a.popFreeHelperProp) == null ? void 0 : Be.TableName) == null ? void 0 : ft.trim().length) > 0 ? R.rename(((_t = a.popFreeHelperProp) == null ? void 0 : _t.TableName.trim()) + "_ADD") : ((Ge = ee.TABLE_NAME) == null ? void 0 : Ge.trim().length) > 0 && R.rename(ee.TABLE_NAME.trim() + "_ADD"),
|
|
20555
|
+
var x = new ht(), R = U.convertModelAsBlock(a.popFreeHelperProp.DataModel, a.popFreeHelperProp.ExtendJsonData);
|
|
20556
|
+
if (((ye = a.popFreeHelperProp) == null ? void 0 : ye.EditType) === "Modify" ? (Re = a.popFreeHelperProp) != null && Re.TableName && ((se = a.popFreeHelperProp) == null ? void 0 : se.TableName.trim().length) > 0 ? R.rename(((Oe = a.popFreeHelperProp) == null ? void 0 : Oe.TableName.trim()) + "_MODIFY") : ee && ee.TABLE_NAME && ee.TABLE_NAME.trim().length > 0 && R.rename(ee.TABLE_NAME.trim() + "_MODIFY") : ((ft = (Be = a.popFreeHelperProp) == null ? void 0 : Be.TableName) == null ? void 0 : ft.trim().length) > 0 ? R.rename(((_t = a.popFreeHelperProp) == null ? void 0 : _t.TableName.trim()) + "_ADD") : ((Ge = ee.TABLE_NAME) == null ? void 0 : Ge.trim().length) > 0 && R.rename(ee.TABLE_NAME.trim() + "_ADD"), x.addBlock(R), (e = a.popFreeHelperProp) != null && e.BeforeCallService && (x = a.popFreeHelperProp.BeforeCallService(x)), !await U.messageConfirm(""))
|
|
20555
20557
|
return;
|
|
20556
|
-
const n = await
|
|
20558
|
+
const n = await U.callService((t = a.popFreeHelperProp) == null ? void 0 : t.OkButtonService.trim(), x);
|
|
20557
20559
|
if (n.getStatus() < 0) {
|
|
20558
|
-
|
|
20560
|
+
U.messageError(n.getMsg());
|
|
20559
20561
|
return;
|
|
20560
20562
|
} else
|
|
20561
|
-
G = !0,
|
|
20563
|
+
G = !0, U.messageInfo(g.Core.$t("ERX.OperateSuccess") || "操作成功!");
|
|
20562
20564
|
}
|
|
20563
20565
|
}
|
|
20564
20566
|
ne.dataModel = (o = a.popFreeHelperProp) == null ? void 0 : o.DataModel, ne.isModified = ((i = ne.dataModel) == null ? void 0 : i.dirty) || G, (r = a.popFreeHelperProp) == null || r.setDialogReturnInfo(ne), a.popFreeHelperProp.doEvent("ok", ne), h("OkClick", ne), a.popFreeHelperProp.CloseDialogWhenOkClick && a.popFreeHelperProp.CloseDialog();
|
|
20565
20567
|
}, Ke = () => {
|
|
20566
|
-
var ne,
|
|
20568
|
+
var ne, x, R;
|
|
20567
20569
|
const ce = {
|
|
20568
20570
|
sender: V,
|
|
20569
20571
|
dialogResult: "cancel",
|
|
@@ -20571,9 +20573,9 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20571
20573
|
dataModel: (ne = a.popFreeHelperProp) == null ? void 0 : ne.DataModel,
|
|
20572
20574
|
formHelper: a.popFreeHelperProp
|
|
20573
20575
|
};
|
|
20574
|
-
(
|
|
20576
|
+
(x = a.popFreeHelperProp) == null || x.setDialogReturnInfo(ce), a.popFreeHelperProp.doEvent("cancel", ce), h("CancelClick", ce), (R = a.popFreeHelperProp) != null && R.CancelButtonPreventDefault || a.popFreeHelperProp.CloseDialog();
|
|
20575
20577
|
}, st = () => {
|
|
20576
|
-
var ne,
|
|
20578
|
+
var ne, x;
|
|
20577
20579
|
const ce = {
|
|
20578
20580
|
sender: V,
|
|
20579
20581
|
dialogResult: "none",
|
|
@@ -20581,7 +20583,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20581
20583
|
dataModel: (ne = a.popFreeHelperProp) == null ? void 0 : ne.DataModel,
|
|
20582
20584
|
formHelper: a.popFreeHelperProp
|
|
20583
20585
|
};
|
|
20584
|
-
(
|
|
20586
|
+
(x = a.popFreeHelperProp) == null || x.setDialogReturnInfo(ce), a.popFreeHelperProp.CloseDialog(), h("Closed", ce);
|
|
20585
20587
|
};
|
|
20586
20588
|
return (() => {
|
|
20587
20589
|
if (le = Object.keys(a.popFreeHelperProp.LayoutGroupInfo), (le == null ? void 0 : le.length) > 0) {
|
|
@@ -20598,7 +20600,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20598
20600
|
ref_key: "dialogRef",
|
|
20599
20601
|
ref: V,
|
|
20600
20602
|
visible: a.popFreeHelperProp.WindowOpened.value,
|
|
20601
|
-
"onUpdate:visible": ne[0] || (ne[0] = (
|
|
20603
|
+
"onUpdate:visible": ne[0] || (ne[0] = (x) => a.popFreeHelperProp.WindowOpened.value = x),
|
|
20602
20604
|
title: a.popFreeHelperProp.getFormOption("title"),
|
|
20603
20605
|
height: a.formHeight > 0 ? a.formHeight + "px" : void 0,
|
|
20604
20606
|
width: a.formWidth > 0 ? a.formWidth + "px" : void 0,
|
|
@@ -20626,12 +20628,12 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20626
20628
|
}, et(a.popFreeHelperProp.CancelButtonCaption || Ne(g).Core.$t("ERX.Cancel") || "取消"), 1)) : ze("", !0)
|
|
20627
20629
|
]),
|
|
20628
20630
|
default: Q(() => [
|
|
20629
|
-
Ne(
|
|
20630
|
-
X[
|
|
20631
|
+
Ne(U).InitializeFlag > 0 ? (B(!0), tt(ro, { key: 0 }, yo(Ne(le), (x, R) => (B(), tt("div", null, [
|
|
20632
|
+
X[x] ? (B(), tt("div", Cd, [
|
|
20631
20633
|
Se(yi, {
|
|
20632
|
-
"config-id":
|
|
20633
|
-
"config-caption": q[
|
|
20634
|
-
"er-form-helper-prop": Ne(
|
|
20634
|
+
"config-id": x,
|
|
20635
|
+
"config-caption": q[x],
|
|
20636
|
+
"er-form-helper-prop": Ne(U),
|
|
20635
20637
|
"auto-bind": !0,
|
|
20636
20638
|
"allow-collapse": W.value,
|
|
20637
20639
|
"show-group-border": a.popFreeHelperProp.getFormOption("showGroupBorder") || Ne(le).length > 1,
|
|
@@ -20678,7 +20680,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20678
20680
|
emits: ["OkClick", "CancelClick", "Closed"],
|
|
20679
20681
|
setup(l, { emit: _ }) {
|
|
20680
20682
|
const a = l, h = _;
|
|
20681
|
-
let
|
|
20683
|
+
let U;
|
|
20682
20684
|
const ee = N(0), G = N(!1), V = N(100);
|
|
20683
20685
|
let W = 100;
|
|
20684
20686
|
const X = N(a.popQueryHelperProp.LayoutGroupFilterId), q = N(a.popQueryHelperProp.MainViewConfigId), le = N(a.popQueryHelperProp.DetailViewConfigId), Fe = N(0), Te = N(1), Ve = N(0), Ae = N(g.Core.$t("ERX.List") || "列表信息"), at = N(g.Core.$t("ERX.Details") || "明细信息");
|
|
@@ -20694,31 +20696,31 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20694
20696
|
const Re = a.popQueryHelperProp.getEvent("filterItemButtonClick");
|
|
20695
20697
|
Re && typeof Re == "function" && (ye.erFormHelper = a.popQueryHelperProp.ErFormHelper, Re(ye));
|
|
20696
20698
|
}, ne = async (ye) => {
|
|
20697
|
-
if (ye && ye.rowChanged && Ve.value === 1 &&
|
|
20699
|
+
if (ye && ye.rowChanged && Ve.value === 1 && U.FormDataSet.hasRelation(qe) && !a.popQueryHelperProp.MasterDetailView) {
|
|
20698
20700
|
if (!a.popQueryHelperProp.ButtonPreventDefault.mainViewFocusChanged)
|
|
20699
20701
|
if (ye.data) {
|
|
20700
20702
|
const t = ye.data;
|
|
20701
20703
|
var Re = "", se = {}, Oe = new eo("Table0");
|
|
20702
|
-
|
|
20704
|
+
U.FormDataSet.relations[qe].forEach((r) => {
|
|
20703
20705
|
Re.trim().length > 0 && (Re += " and "), Re = Re + r.ChildColumn + " = '" + t[r.ParentColumn] + "'", se[r.ChildColumn] = t[r.ParentColumn];
|
|
20704
20706
|
}), se.QUERY_TYPE = z, g.Core.addJsonToEiBlock([se], Oe);
|
|
20705
20707
|
var Be = new ht();
|
|
20706
|
-
const o =
|
|
20708
|
+
const o = U.getFormButtonConfigInfo("btnQuery");
|
|
20707
20709
|
if (o.SVC_NAME && o.SVC_NAME.trim().length > 0) {
|
|
20708
20710
|
var ft = new ht();
|
|
20709
|
-
ft.addBlock(Oe), Be = await
|
|
20711
|
+
ft.addBlock(Oe), Be = await U.callService(o.SVC_NAME.trim(), ft);
|
|
20710
20712
|
} else {
|
|
20711
20713
|
var _t = `select * from ${z} where ${Re}`;
|
|
20712
|
-
Be = await
|
|
20714
|
+
Be = await U.querySql("", _t);
|
|
20713
20715
|
}
|
|
20714
20716
|
var Ge = Be.getBlock(z);
|
|
20715
|
-
Ge || (Ge = Be.getBlockByIndex(0)),
|
|
20717
|
+
Ge || (Ge = Be.getBlockByIndex(0)), U.mergeEiBlockToGrid(Ge, a.popQueryHelperProp.DetailViewConfigId), U.getGridDataCount(a.popQueryHelperProp.DetailViewConfigId) === 0 && a.popQueryHelperProp.ShowQueryNoDetailInfoMsg === !0 && U.messageWarning("未查到明细数据!");
|
|
20716
20718
|
} else
|
|
20717
|
-
|
|
20719
|
+
U.clearGridData(a.popQueryHelperProp.DetailViewConfigId);
|
|
20718
20720
|
const e = a.popQueryHelperProp.getEvent("mainViewFocusChanged");
|
|
20719
20721
|
e == null || e.call(e, ye);
|
|
20720
20722
|
}
|
|
20721
|
-
},
|
|
20723
|
+
}, x = (ye) => {
|
|
20722
20724
|
var Re, se;
|
|
20723
20725
|
a.popQueryHelperProp.AutoRefresh && (a.popQueryHelperProp.ErFormHelper.setAllControlDefalutValue(X.value), a.popQueryHelperProp.ErFormHelper.setControlValueEx(X.value, (Re = a.popQueryHelperProp.DefaultValues) == null ? void 0 : Re.values), a.popQueryHelperProp.ErFormHelper.setControlReadOnlyEx(X.value, (se = a.popQueryHelperProp.DefaultValues) == null ? void 0 : se.readonly), a.popQueryHelperProp.ErFormHelper.clearGridData(q.value, le.value), a.popQueryHelperProp.ShowCheckBoxColumn === !1 && a.popQueryHelperProp.ErFormHelper.showOrHideGridCheckColumn(q.value, "hide")), setTimeout(() => {
|
|
20724
20726
|
var Oe;
|
|
@@ -20727,7 +20729,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20727
20729
|
}, R = async () => {
|
|
20728
20730
|
if (a.popQueryHelperProp.doEvent("beforeQuery") === !1)
|
|
20729
20731
|
return;
|
|
20730
|
-
await
|
|
20732
|
+
await U.checkRequiredInput(a.popQueryHelperProp.LayoutGroupFilterId) && a.popQueryHelperProp.queryMainGridInfo();
|
|
20731
20733
|
}, Le = () => {
|
|
20732
20734
|
var ft, _t;
|
|
20733
20735
|
let ye = {
|
|
@@ -20738,24 +20740,24 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20738
20740
|
dialogResult: "ok"
|
|
20739
20741
|
};
|
|
20740
20742
|
if (!a.popQueryHelperProp.ButtonPreventDefault.ok) {
|
|
20741
|
-
const Ge =
|
|
20743
|
+
const Ge = U.getGridSelectRows(q.value);
|
|
20742
20744
|
if (Ge.length === 0) {
|
|
20743
|
-
|
|
20745
|
+
U.messageWarning(g.Core.$t("ERX.SelectRowsMessage") || "请选择记录!");
|
|
20744
20746
|
return;
|
|
20745
20747
|
} else if (a.popQueryHelperProp.SelectMode === "single" && Ge.length > 1) {
|
|
20746
|
-
|
|
20748
|
+
U.messageWarning(g.Core.$t("ERX.SelectSingleRowMessage") || "只能选择一条记录!");
|
|
20747
20749
|
return;
|
|
20748
20750
|
}
|
|
20749
|
-
var Re = "", se =
|
|
20751
|
+
var Re = "", se = U.getFormButtonConfigInfo("btnOk");
|
|
20750
20752
|
Object.keys(se).length > 0 && (Re = se.GROUP_KEY_VALUE.trim());
|
|
20751
|
-
var Oe =
|
|
20753
|
+
var Oe = U.getGridSelectRowsAsBlock(q.value);
|
|
20752
20754
|
if (Oe.getMappedRows().length > 1 && Re.length > 0) {
|
|
20753
20755
|
const i = Re.split(",");
|
|
20754
20756
|
for (let r = 1; r < Oe.getMappedRows().length; r++)
|
|
20755
20757
|
for (let n = 0; n < i.length; n++)
|
|
20756
20758
|
if (Oe.getColumn(i[n]) && Oe.getMappedRows()[r][i[n]] !== Oe.getMappedRows()[0][i[n]]) {
|
|
20757
|
-
const s =
|
|
20758
|
-
|
|
20759
|
+
const s = U.getGridColumn(q.value, i[n]).title;
|
|
20760
|
+
U.messageWarning("所选记录中[" + s + "]->[" + ((ft = Oe.getMappedRows()[r][i[n]]) == null ? void 0 : ft.toString()) + "]与[" + ((_t = Oe.getMappedRows()[0][i[n]]) == null ? void 0 : _t.toString()) + "]不相同!");
|
|
20759
20761
|
return;
|
|
20760
20762
|
}
|
|
20761
20763
|
}
|
|
@@ -20774,9 +20776,9 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20774
20776
|
checkedCodes: e,
|
|
20775
20777
|
checkedDescs: t
|
|
20776
20778
|
}, a.popQueryHelperProp.setDialogReturnInfo(ye);
|
|
20777
|
-
const o = g.SysGlobalVariables.getVariable(
|
|
20779
|
+
const o = g.SysGlobalVariables.getVariable(U.FormName, "ParentFormName");
|
|
20778
20780
|
if (g.Core.toString(o).length > 0) {
|
|
20779
|
-
const i =
|
|
20781
|
+
const i = U.getGridSelectRows(q.value, !0);
|
|
20780
20782
|
i && g.SysGlobalVariables.setVariable(o, "ReturnRow", i);
|
|
20781
20783
|
}
|
|
20782
20784
|
}
|
|
@@ -20802,10 +20804,10 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20802
20804
|
a.popQueryHelperProp.setDialogReturnInfo(ye), a.popQueryHelperProp.doEvent("close", ye), a.popQueryHelperProp.CloseDialog(), h("Closed", ye);
|
|
20803
20805
|
}, xe = () => {
|
|
20804
20806
|
if (a.popQueryHelperProp) {
|
|
20805
|
-
|
|
20806
|
-
const ye =
|
|
20807
|
+
U = a.popQueryHelperProp.ErFormHelper, U.containsConfig(a.popQueryHelperProp.LayoutGroupFilterId) && (Fe.value = 1);
|
|
20808
|
+
const ye = U.getSingleViewConfigInfo(a.popQueryHelperProp.MainViewConfigId);
|
|
20807
20809
|
ye && Object.keys(ye).length > 0 ? (Te.value = 1, ye.FUNCNAME.trim().length > 0 && (Ae.value = ye.FUNCNAME.trim())) : Te.value = 0;
|
|
20808
|
-
const Re =
|
|
20810
|
+
const Re = U.getSingleViewConfigInfo(a.popQueryHelperProp.DetailViewConfigId);
|
|
20809
20811
|
Re && Object.keys(Re).length > 0 ? (z = Re.TABLE_NAME, Re.FUNCNAME.trim().length > 0 && (at.value = Re.FUNCNAME.trim()), Re.RELATION_NAME.trim().length > 0 && (qe = Re.RELATION_NAME.trim()), Ve.value = 1, V.value = a.popQueryHelperProp.MasterDetailView ? 100 : 50, W = V.value) : Ve.value = 0, ee.value = 1;
|
|
20810
20812
|
}
|
|
20811
20813
|
}, _e = (ye) => {
|
|
@@ -20831,7 +20833,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20831
20833
|
"destroy-on-close": a.popQueryHelperProp.UnMountWhenCloseDialog,
|
|
20832
20834
|
resizable: a.popQueryHelperProp.BordStyle === "Sizable",
|
|
20833
20835
|
actions: a.popQueryHelperProp.BordStyle === "Fixed" ? ["close"] : void 0,
|
|
20834
|
-
onOpen:
|
|
20836
|
+
onOpen: x,
|
|
20835
20837
|
onCancel: De,
|
|
20836
20838
|
onConfirm: Le,
|
|
20837
20839
|
onClickCloseIcon: $e
|
|
@@ -20860,7 +20862,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20860
20862
|
ee.value === 1 ? (B(), tt("div", Od, [
|
|
20861
20863
|
Fe.value === 1 ? (B(), he(yi, {
|
|
20862
20864
|
key: 0,
|
|
20863
|
-
"er-form-helper-prop": Ne(
|
|
20865
|
+
"er-form-helper-prop": Ne(U),
|
|
20864
20866
|
"config-id": X.value,
|
|
20865
20867
|
"allow-collapse": !0,
|
|
20866
20868
|
options: (Oe = a.popQueryHelperProp) == null ? void 0 : Oe.LayoutFilterOptions,
|
|
@@ -20914,7 +20916,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20914
20916
|
"config-id": q.value,
|
|
20915
20917
|
"detail-config-id": le.value,
|
|
20916
20918
|
"detail-options": { service: a.popQueryHelperProp.FormConfigQueryService },
|
|
20917
|
-
"er-form-helper-prop": Ne(
|
|
20919
|
+
"er-form-helper-prop": Ne(U),
|
|
20918
20920
|
"page-options": Pe.value,
|
|
20919
20921
|
options: (Be = a.popQueryHelperProp) == null ? void 0 : Be.MainViewOptions,
|
|
20920
20922
|
onFocusChanged: ne,
|
|
@@ -20942,7 +20944,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
20942
20944
|
return [
|
|
20943
20945
|
Se(Kt, {
|
|
20944
20946
|
"config-id": le.value,
|
|
20945
|
-
"er-form-helper-prop": Ne(
|
|
20947
|
+
"er-form-helper-prop": Ne(U),
|
|
20946
20948
|
options: (Be = a.popQueryHelperProp) == null ? void 0 : Be.DetailViewOptions
|
|
20947
20949
|
}, null, 8, ["config-id", "er-form-helper-prop", "options"])
|
|
20948
20950
|
];
|
|
@@ -21025,7 +21027,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21025
21027
|
emits: ["erTreeReady", "click", "doubleClick", "focusChanged"],
|
|
21026
21028
|
setup(l, { emit: _ }) {
|
|
21027
21029
|
var ce;
|
|
21028
|
-
const a = l, h = N(so()),
|
|
21030
|
+
const a = l, h = N(so()), U = N(Ut()), ee = _, G = Ii(), V = N(null), W = N(""), X = N([{
|
|
21029
21031
|
field: a.displayField,
|
|
21030
21032
|
hide: !0
|
|
21031
21033
|
}]), q = N({
|
|
@@ -21043,8 +21045,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21043
21045
|
});
|
|
21044
21046
|
let le = "", Fe = "", Te = [];
|
|
21045
21047
|
const Ve = (ne) => {
|
|
21046
|
-
var
|
|
21047
|
-
(R = (
|
|
21048
|
+
var x, R;
|
|
21049
|
+
(R = (x = V.value.gridOptions) == null ? void 0 : x.api) == null || R.setQuickFilter(W.value);
|
|
21048
21050
|
}, Ae = (ne) => ne.data.uid, at = (ne) => a.getNodeStyle ? a.getNodeStyle instanceof Function ? a.getNodeStyle(ne) : a.getNodeHeight : { border: "none", background: "none" }, qe = (ne) => {
|
|
21049
21051
|
if (a.getNodeHeight) {
|
|
21050
21052
|
if (typeof a.getNodeHeight == "number")
|
|
@@ -21055,30 +21057,30 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21055
21057
|
return 25;
|
|
21056
21058
|
}, z = (ne) => ne.orgHierarchy, Pe = (ne) => {
|
|
21057
21059
|
var R, Le;
|
|
21058
|
-
const
|
|
21059
|
-
if (ne.api.getDisplayedRowCount() > 0 && (((R = a.options) == null ? void 0 : R.suppressDefaultContextMenu) !== !0 && ((Le = a.options) == null ? void 0 : Le.preventDefaultContextMenu) !== !0 &&
|
|
21060
|
+
const x = [];
|
|
21061
|
+
if (ne.api.getDisplayedRowCount() > 0 && (((R = a.options) == null ? void 0 : R.suppressDefaultContextMenu) !== !0 && ((Le = a.options) == null ? void 0 : Le.preventDefaultContextMenu) !== !0 && x.push("copy", "separator", "expandAll", "contractAll"), a.getContextMenu)) {
|
|
21060
21062
|
const De = a.getContextMenu(ne);
|
|
21061
|
-
De && (
|
|
21063
|
+
De && (x.length > 0 && x.push("separator"), x.push(...De));
|
|
21062
21064
|
}
|
|
21063
|
-
return
|
|
21065
|
+
return x;
|
|
21064
21066
|
}, Ke = async (ne) => {
|
|
21065
|
-
ne.api.setPopupParent(document.querySelector("body")), ne.api.addEventListener("cellFocused", (
|
|
21067
|
+
ne.api.setPopupParent(document.querySelector("body")), ne.api.addEventListener("cellFocused", (x) => {
|
|
21066
21068
|
var Le, De, $e, xe;
|
|
21067
|
-
const R =
|
|
21069
|
+
const R = x.api.getModel().getRow(x.rowIndex);
|
|
21068
21070
|
if (R) {
|
|
21069
|
-
const _e = { ...
|
|
21070
|
-
le = ($e = R == null ? void 0 : R.data) == null ? void 0 : $e.uid, Fe = (xe =
|
|
21071
|
+
const _e = { ...x, rowChanged: ((Le = R == null ? void 0 : R.data) == null ? void 0 : Le.uid) !== le, columnChanged: x.column.colId !== Fe, data: R.data, field: (De = x.column.colDef) == null ? void 0 : De.field };
|
|
21072
|
+
le = ($e = R == null ? void 0 : R.data) == null ? void 0 : $e.uid, Fe = (xe = x.column) == null ? void 0 : xe.colId, ee("focusChanged", _e);
|
|
21071
21073
|
}
|
|
21072
|
-
}), ne.api.addEventListener("rowDataUpdated", (
|
|
21074
|
+
}), ne.api.addEventListener("rowDataUpdated", (x) => {
|
|
21073
21075
|
var R;
|
|
21074
|
-
(R =
|
|
21075
|
-
}), ne.api.addEventListener("rowGroupOpened", (
|
|
21076
|
-
|
|
21077
|
-
}), ne.api.setTreeData = (
|
|
21078
|
-
|
|
21076
|
+
(R = x == null ? void 0 : x.api) == null || R.clearRangeSelection(), Te.length === 0 ? ee("focusChanged", { rowChanged: !0, columnChanged: !0, data: void 0 }) : (g.Core.setGridFocusedCell(V.value, 0), ee("focusChanged", { rowChanged: !0, columnChanged: !0, data: Te[0] }));
|
|
21077
|
+
}), ne.api.addEventListener("rowGroupOpened", (x) => {
|
|
21078
|
+
x.api.redrawRows({ rowNodes: [x.node] });
|
|
21079
|
+
}), ne.api.setTreeData = (x, R) => {
|
|
21080
|
+
x = x || [], Te = [];
|
|
21079
21081
|
const Le = {};
|
|
21080
21082
|
let De = "";
|
|
21081
|
-
|
|
21083
|
+
x.forEach((xe) => {
|
|
21082
21084
|
Le[xe[a.primaryField]] = { ...xe };
|
|
21083
21085
|
});
|
|
21084
21086
|
const $e = (xe, _e) => {
|
|
@@ -21087,15 +21089,15 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21087
21089
|
ye.unshift(_e[a.primaryField]), _e = xe[_e[a.parentField]];
|
|
21088
21090
|
return ye;
|
|
21089
21091
|
};
|
|
21090
|
-
return
|
|
21092
|
+
return x.forEach((xe) => {
|
|
21091
21093
|
const _e = { ...xe, orgHierarchy: $e(Le, xe), uid: g.Core.guid() };
|
|
21092
21094
|
R && xe[a.primaryField] === R && (De = _e.uid), Te.push(_e);
|
|
21093
21095
|
}), ne.api.setRowData(Te), De && ne.api.setRowNodeSelected(De), Te;
|
|
21094
|
-
}, ne.api.setRowNodeSelected = async (
|
|
21095
|
-
if (ne.api && (
|
|
21096
|
+
}, ne.api.setRowNodeSelected = async (x) => {
|
|
21097
|
+
if (ne.api && (x == null ? void 0 : x.trim().length) > 0) {
|
|
21096
21098
|
let R = null;
|
|
21097
21099
|
ne.api.forEachNode((Le) => {
|
|
21098
|
-
if (Le.data.uid ===
|
|
21100
|
+
if (Le.data.uid === x) {
|
|
21099
21101
|
R = Le, Le.setSelected(!0), ne.api.setFocusedCell(Le.rowIndex, a.displayField);
|
|
21100
21102
|
let De = Le.parent;
|
|
21101
21103
|
for (; De; )
|
|
@@ -21105,9 +21107,9 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21105
21107
|
ne.api.ensureNodeVisible(R);
|
|
21106
21108
|
}, 250);
|
|
21107
21109
|
}
|
|
21108
|
-
}, ne.api.setRowData([]), V.value.gridOptions.api.addEventListener("rowDataUpdated", (
|
|
21110
|
+
}, ne.api.setRowData([]), V.value.gridOptions.api.addEventListener("rowDataUpdated", (x) => {
|
|
21109
21111
|
var R;
|
|
21110
|
-
(R =
|
|
21112
|
+
(R = x == null ? void 0 : x.api) == null || R.clearRangeSelection();
|
|
21111
21113
|
}), ee("erTreeReady", ne);
|
|
21112
21114
|
}, st = (ne) => {
|
|
21113
21115
|
ee("click", ne);
|
|
@@ -21115,7 +21117,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21115
21117
|
ee("doubleClick", ne);
|
|
21116
21118
|
};
|
|
21117
21119
|
return $t(() => {
|
|
21118
|
-
}), (ne,
|
|
21120
|
+
}), (ne, x) => {
|
|
21119
21121
|
var $e, xe;
|
|
21120
21122
|
const R = Xe("a-input"), Le = Xe("a-config-providver"), De = Xe("ag-grid-vue");
|
|
21121
21123
|
return B(), tt("div", {
|
|
@@ -21123,7 +21125,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21123
21125
|
style: { height: "100%", width: "100%" }
|
|
21124
21126
|
}, [
|
|
21125
21127
|
Se(Le, {
|
|
21126
|
-
theme:
|
|
21128
|
+
theme: U.value,
|
|
21127
21129
|
locale: h.value,
|
|
21128
21130
|
componentSize: "small"
|
|
21129
21131
|
}, {
|
|
@@ -21133,7 +21135,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21133
21135
|
(_e = a.options) != null && _e.showFindPanel ? (B(), tt("div", vd, [
|
|
21134
21136
|
Se(R, {
|
|
21135
21137
|
value: W.value,
|
|
21136
|
-
"onUpdate:value":
|
|
21138
|
+
"onUpdate:value": x[0] || (x[0] = (ye) => W.value = ye),
|
|
21137
21139
|
valueModifiers: { lazy: !0 },
|
|
21138
21140
|
"allow-clear": !0,
|
|
21139
21141
|
onChange: Ve,
|
|
@@ -21206,8 +21208,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21206
21208
|
},
|
|
21207
21209
|
setup(l, { expose: _ }) {
|
|
21208
21210
|
var At;
|
|
21209
|
-
const a = l, h = N(null),
|
|
21210
|
-
let ce = null, ne = null,
|
|
21211
|
+
const a = l, h = N(null), U = N(null), ee = N(null), G = N(0), V = N(500), W = N(!0), X = N(!1), q = N(!1), le = N(!1), Fe = N(!1), Te = N(!1), Ve = N(!1), Ae = N(!1), at = N("GridColumns"), qe = N("gridView1_GridView"), z = N(null), Pe = N("Excute Result"), Ke = N(!1), st = N(""), je = N("");
|
|
21212
|
+
let ce = null, ne = null, x = !0, R = [], Le = -1;
|
|
21211
21213
|
const De = N(so()), $e = N(Ut());
|
|
21212
21214
|
window.$wujie && ((At = window.$wujie.bus) == null || At.$on("changeThemeEmit", (y) => {
|
|
21213
21215
|
$e.value = Ut();
|
|
@@ -21215,33 +21217,33 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21215
21217
|
const xe = window.lang ?? { list: [] }, _e = N([]), ye = N({}), Re = N(""), se = N("zh_Hans"), Oe = N(!0), Be = N("");
|
|
21216
21218
|
let ft = "", _t = "", Ge = "";
|
|
21217
21219
|
const e = "JAER01/queryDevConfig", t = "JAER01/saveDevConfig", o = new g.FormHelper(), i = N(0);
|
|
21218
|
-
let r = [], n, s, u, c = "JAER01/query", p, m, S, A, I, F, D, v,
|
|
21220
|
+
let r = [], n, s, u, c = "JAER01/query", p, m, S, A, I, F, D, v, L, w, K;
|
|
21219
21221
|
const P = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "DataSet Config List", nodeRenderer: ai }), te = new g.PopTreeHelper("CURRENT_NODE_CODE", "PARENT_NODE_CODE", "CURRENT_NODE_DESC", { title: "Form Config List", nodeRenderer: ai });
|
|
21220
|
-
let
|
|
21221
|
-
const
|
|
21222
|
+
let H;
|
|
21223
|
+
const me = () => {
|
|
21222
21224
|
let y = g.Core.getLangList();
|
|
21223
21225
|
return xe.list.length > 0 && (y = y.filter((M) => xe.list.includes(M.key))), y.map((M) => ({ CODE: M.key, CODE_DESC_1_CONTENT: M.value }));
|
|
21224
21226
|
}, ge = () => {
|
|
21225
|
-
R = [], Le = -1,
|
|
21227
|
+
R = [], Le = -1, x = !0;
|
|
21226
21228
|
}, $ = () => {
|
|
21227
21229
|
Y({ name: "Find" });
|
|
21228
21230
|
}, Y = async (y) => {
|
|
21229
21231
|
if ((y == null ? void 0 : y.name) === "Close")
|
|
21230
|
-
|
|
21232
|
+
x = !0, Ke.value = !1;
|
|
21231
21233
|
else if (st.value.trim().length > 0) {
|
|
21232
|
-
if (
|
|
21234
|
+
if (x && (Le = -1, R = r.filter((M) => (M.MODULE_TYPE === n.MODULE_TYPE || n.CURRENT_NODE_CODE === "DEVTREE_ROOT") && M.CURRENT_NODE_DESC.indexOf(st.value.trim()) > -1)), (R == null ? void 0 : R.length) > 0) {
|
|
21233
21235
|
const M = R[++Le];
|
|
21234
|
-
je.value = `${Le + 1}/${R.length}`,
|
|
21236
|
+
je.value = `${Le + 1}/${R.length}`, H == null || H.setRowNodeSelected(M.uid), u = M, Le === R.length - 1 && (Le = -1), setTimeout(() => {
|
|
21235
21237
|
var f;
|
|
21236
21238
|
(f = g.Core.jQuery(ee.value)) == null || f.focus();
|
|
21237
21239
|
}, 500);
|
|
21238
21240
|
} else
|
|
21239
21241
|
je.value = "No match found";
|
|
21240
|
-
|
|
21242
|
+
x = !1;
|
|
21241
21243
|
}
|
|
21242
21244
|
}, b = async (y) => {
|
|
21243
21245
|
var M;
|
|
21244
|
-
|
|
21246
|
+
H = y.api, (M = y.api) == null || M.addEventListener("selectionChanged", async (f) => {
|
|
21245
21247
|
if (f.source === "api")
|
|
21246
21248
|
return;
|
|
21247
21249
|
const j = f.api.getSelectedNodes();
|
|
@@ -21252,9 +21254,9 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21252
21254
|
return j.push({
|
|
21253
21255
|
name: g.Core.$t("ERX.ErMenuDevPlat.Search") || "Search",
|
|
21254
21256
|
action: () => {
|
|
21255
|
-
Ke.value = !0, n = y.node.data,
|
|
21256
|
-
var
|
|
21257
|
-
(
|
|
21257
|
+
Ke.value = !0, n = y.node.data, x = !0, je.value = "", setTimeout(() => {
|
|
21258
|
+
var Ee;
|
|
21259
|
+
(Ee = g.Core.jQuery(ee.value)) == null || Ee.focus();
|
|
21258
21260
|
}, 250);
|
|
21259
21261
|
},
|
|
21260
21262
|
icon: g.Core.createErSvgElement("search"),
|
|
@@ -21262,16 +21264,16 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21262
21264
|
}), j.push({
|
|
21263
21265
|
name: g.Core.$t("ERX.ErMenuDevPlat.ExpandAll") || "Expand All",
|
|
21264
21266
|
action: () => {
|
|
21265
|
-
|
|
21267
|
+
H.expandAll();
|
|
21266
21268
|
},
|
|
21267
21269
|
icon: g.Core.createErSvgElement("expand-all"),
|
|
21268
21270
|
disabled: !1
|
|
21269
21271
|
}), j.push({
|
|
21270
21272
|
name: g.Core.$t("ERX.ErMenuDevPlat.CollapseAll") || "Collapse All",
|
|
21271
21273
|
action: () => {
|
|
21272
|
-
|
|
21273
|
-
const
|
|
21274
|
-
|
|
21274
|
+
H.collapseAll();
|
|
21275
|
+
const Ee = H == null ? void 0 : H.getModel().getRow(0);
|
|
21276
|
+
Ee && (H == null || H.setRowNodeExpanded(Ee, !0));
|
|
21275
21277
|
},
|
|
21276
21278
|
icon: g.Core.createErSvgElement("collapse-all"),
|
|
21277
21279
|
disabled: !1
|
|
@@ -21285,8 +21287,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21285
21287
|
}), j.push({
|
|
21286
21288
|
name: g.Core.$t("ERX.ErMenuDevPlat.CopyText") || "Copy Text",
|
|
21287
21289
|
action: () => {
|
|
21288
|
-
var
|
|
21289
|
-
o.copyText((ae = (
|
|
21290
|
+
var Ee, ae;
|
|
21291
|
+
o.copyText((ae = (Ee = y.node) == null ? void 0 : Ee.data) == null ? void 0 : ae.CURRENT_NODE_DESC);
|
|
21290
21292
|
},
|
|
21291
21293
|
icon: g.Core.createErSvgElement("copy-text"),
|
|
21292
21294
|
disabled: !1
|
|
@@ -21328,8 +21330,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21328
21330
|
})) : f.NODE_TYPE === "SI0114_DATATABLE" ? j.push({
|
|
21329
21331
|
name: g.Core.$t("ERX.ErMenuDevPlat.ReferenceFromDatabase") || "Reference From Database",
|
|
21330
21332
|
action: () => {
|
|
21331
|
-
const
|
|
21332
|
-
I.setQueryPartition(oe()), I.AutoRefresh = !0, I.AutoQuery = !0, I.DefaultValues = { values: { TABLE_NAME: f.TABLE_NAME, DATABASE_OWNER:
|
|
21333
|
+
const Ee = g.Core.getLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + oe()) || "";
|
|
21334
|
+
I.setQueryPartition(oe()), I.AutoRefresh = !0, I.AutoQuery = !0, I.DefaultValues = { values: { TABLE_NAME: f.TABLE_NAME, DATABASE_OWNER: Ee } }, I.ShowCheckBoxColumn = !0, I.setEvent("beforeQuery", () => {
|
|
21333
21335
|
const ae = I.ErFormHelper.getControlValue(I.LayoutGroupFilterId, "DATABASE_OWNER");
|
|
21334
21336
|
ae && g.Core.setLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + oe(), ae);
|
|
21335
21337
|
}), I.setEvent("ok", (ae) => {
|
|
@@ -21423,16 +21425,16 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21423
21425
|
}), f.NODE_TYPE.endsWith("_ROOT") || (j.push({
|
|
21424
21426
|
name: g.Core.$t("ERX.ErMenuDevPlat.Modify") || "Modify",
|
|
21425
21427
|
action: () => {
|
|
21426
|
-
var
|
|
21427
|
-
(
|
|
21428
|
+
var Ee;
|
|
21429
|
+
(Ee = f == null ? void 0 : f.NODE_TYPE) != null && Ee.endsWith("_MODULE") ? pt("SI00ModuleEdit", "Modify", y.node, "editModule", !0) : (f == null ? void 0 : f.NODE_TYPE) === "SI0114_DATASET" ? pt("SI00DataSetEdit", "Modify", y.node, "editDataSet", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0114_DATATABLE" ? pt("SI00DataTableEdit", "Modify", y.node, "editDataTable", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0112_DATASOURCE" ? pt("SI00DataSourceEdit", "Modify", y.node, "editDataSource", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0115_FORM" ? pt("SI00FormEdit", "Modify", y.node, "editForm", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0115_VIEW" && (f == null ? void 0 : f.FUNC_TYPE) === "G" ? pt("SI00GridViewEdit", "Modify", y.node, "editGridView", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0115_VIEW" && (f == null ? void 0 : f.FUNC_TYPE) === "P" ? pt("SI00PivotViewEdit", "Modify", y.node, "editPivotView", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0115_VIEW" && (f == null ? void 0 : f.FUNC_TYPE) === "T" ? pt("SI00TreeListEdit", "Modify", y.node, "editTreeList", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0115_VIEW" && (f == null ? void 0 : f.FUNC_TYPE) === "F" ? pt("SI00LayoutEdit", "Modify", y.node, "editLayout", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0116_BASICCODE" ? pt("SI00CodeClassEdit", "Modify", y.node, "editBasicCode", !1) : (f == null ? void 0 : f.NODE_TYPE) === "SI0117_SEQUENCE" && pt("SI00SequenceEdit", "Modify", y.node, "editSequence", !1);
|
|
21428
21430
|
},
|
|
21429
21431
|
icon: g.Core.createErSvgElement("modify"),
|
|
21430
21432
|
disabled: !1
|
|
21431
21433
|
}), j.push({
|
|
21432
21434
|
name: g.Core.$t("ERX.ErMenuDevPlat.Delete") || "Delete",
|
|
21433
21435
|
action: () => {
|
|
21434
|
-
let
|
|
21435
|
-
|
|
21436
|
+
let Ee, ae;
|
|
21437
|
+
Ee = async () => {
|
|
21436
21438
|
var J;
|
|
21437
21439
|
if ((J = f == null ? void 0 : f.NODE_TYPE) != null && J.endsWith("_MODULE") ? ae = g.Core.buildEiInfo([f], "TSI00MODULE_DELETE") : (f == null ? void 0 : f.NODE_TYPE) == "SI0112_DATASOURCE" ? ae = g.Core.buildEiInfo([{ FUNC_ID: f.FUNCTION_ID }], "TSI00DATASOURCE_DELETE") : (f == null ? void 0 : f.NODE_TYPE) == "SI0114_DATASET" ? ae = g.Core.buildEiInfo([
|
|
21438
21440
|
{ TYPE: "DataSet", MODULE_NAME: f.MODULE_ENAME, DATASET_NAME: f.DATASET_NAME }
|
|
@@ -21455,13 +21457,13 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21455
21457
|
const He = [];
|
|
21456
21458
|
for (let ie = r.length - 1; ie >= 0; ie--)
|
|
21457
21459
|
y.node.data.orgHierarchy.every((Me) => new Set(r[ie].orgHierarchy).has(Me)) && (He.push(r[ie]), r.splice(ie, 1));
|
|
21458
|
-
|
|
21459
|
-
const ie =
|
|
21460
|
-
ie.rowIndex >= 0 &&
|
|
21460
|
+
H.applyTransaction({ remove: He }), setTimeout(() => {
|
|
21461
|
+
const ie = H.getFocusedCell();
|
|
21462
|
+
ie.rowIndex >= 0 && H.ensureIndexVisible(ie.rowIndex);
|
|
21461
21463
|
}, 250);
|
|
21462
21464
|
}
|
|
21463
21465
|
}
|
|
21464
|
-
},
|
|
21466
|
+
}, Ee && o.messageConfirm("Are you sure to delete?", Ee);
|
|
21465
21467
|
},
|
|
21466
21468
|
icon: g.Core.createErSvgElement("delete"),
|
|
21467
21469
|
disabled: !1
|
|
@@ -21477,7 +21479,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21477
21479
|
name: g.Core.$t("ERX.ErMenuDevPlat.ResetSequence") || "Reset Sequence",
|
|
21478
21480
|
action: () => {
|
|
21479
21481
|
o.messageConfirm("Are you sure you want to reset the sequence?", async () => {
|
|
21480
|
-
const
|
|
21482
|
+
const Ee = g.Core.buildEiInfo({ ...f, SEQ_CODE: f.FUNCTION_ID }, "TSI00SEQ01_RESET"), ae = await g.Core.callService(oe(), t, Ee);
|
|
21481
21483
|
if (ae.SysInfo && ae.SysInfo.Flag < 0) {
|
|
21482
21484
|
g.Core.messageError(ae.SysInfo.Msg);
|
|
21483
21485
|
return;
|
|
@@ -21516,12 +21518,12 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21516
21518
|
})), f.NODE_TYPE === "SI0115_VIEW" && (j.push("separator"), j.push({
|
|
21517
21519
|
name: g.Core.$t("ERX.ErMenuDevPlat.ReferenceFromDataSet") || "Reference From DataSet",
|
|
21518
21520
|
action: () => {
|
|
21519
|
-
F.setQueryPartition(oe()), F.AutoRefresh = !0, F.AutoQuery = !0, F.DefaultValues = { values: { DATASET_NAME: f.DATASET_NAME, TABLE_NAME: f.TABLE_NAME } }, F.ShowCheckBoxColumn = !0, F.setEvent("ok", (
|
|
21521
|
+
F.setQueryPartition(oe()), F.AutoRefresh = !0, F.AutoQuery = !0, F.DefaultValues = { values: { DATASET_NAME: f.DATASET_NAME, TABLE_NAME: f.TABLE_NAME } }, F.ShowCheckBoxColumn = !0, F.setEvent("ok", (Ee) => {
|
|
21520
21522
|
var He;
|
|
21521
21523
|
const ae = o.getGridAllRows(qe.value);
|
|
21522
21524
|
let J = (ae == null ? void 0 : ae.length) || 0;
|
|
21523
21525
|
const be = [];
|
|
21524
|
-
(He =
|
|
21526
|
+
(He = Ee.checkedItemArray) == null || He.forEach((ie) => {
|
|
21525
21527
|
ae.some((Me) => Me.ITEM_CODE === ie.COL_NAME) || be.push(yt({
|
|
21526
21528
|
COMPANY_CODE: o.DefaultConfigCompanyCode,
|
|
21527
21529
|
COMPANY_CNAME: o.DefaultConfigCompanyName,
|
|
@@ -21544,8 +21546,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21544
21546
|
}), j.push({
|
|
21545
21547
|
name: g.Core.$t("ERX.ErMenuDevPlat.ReferenceFromDatabase") || "Reference From Database",
|
|
21546
21548
|
action: () => {
|
|
21547
|
-
const
|
|
21548
|
-
I.setQueryPartition(oe()), I.AutoRefresh = !0, I.AutoQuery = !0, I.DefaultValues = { values: { TABLE_NAME: f.TABLE_NAME, DATABASE_OWNER:
|
|
21549
|
+
const Ee = g.Core.getLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + oe()) || "";
|
|
21550
|
+
I.setQueryPartition(oe()), I.AutoRefresh = !0, I.AutoQuery = !0, I.DefaultValues = { values: { TABLE_NAME: f.TABLE_NAME, DATABASE_OWNER: Ee } }, I.ShowCheckBoxColumn = !0, I.setEvent("beforeQuery", () => {
|
|
21549
21551
|
const ae = I.ErFormHelper.getControlValue(I.LayoutGroupFilterId, "DATABASE_OWNER");
|
|
21550
21552
|
ae && g.Core.setLocalStorage("ERX.ErMenuDevPlat.DataBaseOwner." + oe(), ae);
|
|
21551
21553
|
}), I.setEvent("ok", (ae) => {
|
|
@@ -21579,11 +21581,11 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21579
21581
|
action: () => {
|
|
21580
21582
|
if ((f == null ? void 0 : f.FUNC_TYPE) === "F") {
|
|
21581
21583
|
S = new g.PopFreeHelper(oe(), f.FORM_NAME, f.FUNCTION_ID, Ge);
|
|
21582
|
-
const
|
|
21584
|
+
const Ee = () => {
|
|
21583
21585
|
var ae;
|
|
21584
21586
|
(ae = S.Context) != null && ae.configUpdate && Tt(u);
|
|
21585
21587
|
};
|
|
21586
|
-
S.setEvent("close",
|
|
21588
|
+
S.setEvent("close", Ee), S.ShowOkButton = !1, S.ShowCancelButton = !1, S.show(null, Ee, Ee);
|
|
21587
21589
|
} else ((f == null ? void 0 : f.FUNC_TYPE) === "G" || (f == null ? void 0 : f.FUNC_TYPE) === "P") && (A = new g.PopQueryHelper(oe(), f.FORM_NAME, f.FUNCTION_ID, Ge), A.MainViewConfigId = f.FUNCTION_ID, A.DetailViewConfigId = "", A.setEvent("close", () => {
|
|
21588
21590
|
Tt(u);
|
|
21589
21591
|
}), A.ShowOkButton = !1, A.ShowCancelButton = !1, A.ShowQueryButton = !1, A.show(null));
|
|
@@ -21606,8 +21608,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21606
21608
|
g.Core.messageError(j.getMsg());
|
|
21607
21609
|
return;
|
|
21608
21610
|
}
|
|
21609
|
-
const
|
|
21610
|
-
g.Core.setGridData(ce,
|
|
21611
|
+
const Ee = j.getBlockByIndex(0);
|
|
21612
|
+
g.Core.setGridData(ce, Ee, !0, { showRowNo: !0 }), ne.autoSizeAllColumns(), Pe.value = `Excute Result -> [${((y = Ee.getMappedRows()) == null ? void 0 : y.length) || 0} records matched]`;
|
|
21611
21613
|
}
|
|
21612
21614
|
}, lt = async (y) => {
|
|
21613
21615
|
const M = _e.value.find((f) => f.CODE === Re.value);
|
|
@@ -21625,8 +21627,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21625
21627
|
action: () => {
|
|
21626
21628
|
if (se.value === "zh_Hans")
|
|
21627
21629
|
return;
|
|
21628
|
-
const j = new g.TranslateHelper({ ocpApimSubscriptionKey: o.getFormSysInfo("AzureTranslateKey") }),
|
|
21629
|
-
|
|
21630
|
+
const j = new g.TranslateHelper({ ocpApimSubscriptionKey: o.getFormSysInfo("AzureTranslateKey") }), Ee = o.getGridCheckedRows(y.context.configId), ae = [], J = [];
|
|
21631
|
+
Ee.forEach((be) => {
|
|
21630
21632
|
var He;
|
|
21631
21633
|
((He = be[M]) == null ? void 0 : He.trim().length) > 0 && g.Core.toString(be[f]).trim().length === 0 && (ae.push(be[M].trim()), J.push(be));
|
|
21632
21634
|
}), j.translate(ae, {
|
|
@@ -21642,8 +21644,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21642
21644
|
name: "Apply To",
|
|
21643
21645
|
icon: g.Core.createErSvgElement("apply-to"),
|
|
21644
21646
|
action: async () => {
|
|
21645
|
-
var f, j,
|
|
21646
|
-
let M = (
|
|
21647
|
+
var f, j, Ee;
|
|
21648
|
+
let M = (Ee = (j = (f = y.context) == null ? void 0 : f.viewConfig) == null ? void 0 : j.TABLE_NAME) == null ? void 0 : Ee.trim();
|
|
21647
21649
|
if (M.length > 0) {
|
|
21648
21650
|
const ae = async () => {
|
|
21649
21651
|
const J = await g.Core.callService(oe(), e, g.Core.buildEiInfo({ OPERATE_TYPE: "tsi00formtree" }), { show: !0, delay: 1e3 });
|
|
@@ -21675,18 +21677,18 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21675
21677
|
}
|
|
21676
21678
|
}), Ze = (y) => {
|
|
21677
21679
|
y.configId === "gridView1_Layout" && y.api.addEventListener("cellValueChanged", (M) => {
|
|
21678
|
-
var f, j,
|
|
21680
|
+
var f, j, Ee, ae, J, be, He, ie, Me, Qe;
|
|
21679
21681
|
if (M.column.colId === "OPERATOR") {
|
|
21680
21682
|
const d = {}, nt = g.Core.toString(M.value);
|
|
21681
|
-
nt.length > 0 && nt != "None" ? (((j = (f = M.data) == null ? void 0 : f.PARA_NAME) == null ? void 0 : j.trim().length) == 0 && (d.PARA_NAME = M.data.FIELD_NAME), (((ae = (
|
|
21683
|
+
nt.length > 0 && nt != "None" ? (((j = (f = M.data) == null ? void 0 : f.PARA_NAME) == null ? void 0 : j.trim().length) == 0 && (d.PARA_NAME = M.data.FIELD_NAME), (((ae = (Ee = M.data) == null ? void 0 : Ee.PARA_GROUP) == null ? void 0 : ae.trim().length) == 0 || ((J = M.data) == null ? void 0 : J.PARA_GROUP) === "0") && (d.PARA_GROUP = "1")) : (d.PARA_NAME = "", d.PARA_GROUP = "0"), ((be = M.data) == null ? void 0 : be.COLUMN_EDIT) == "5" && (((ie = (He = M.data) == null ? void 0 : He.DATE_TIME_FORMAT) == null ? void 0 : ie.trim().length) == 0 && (nt === ">" || nt === ">=") ? d.DATE_TIME_FORMAT = "yyyyMMdd000000" : ((Qe = (Me = M.data) == null ? void 0 : Me.DATE_TIME_FORMAT) == null ? void 0 : Qe.trim().length) == 0 && (nt === "<" || nt === "<=") ? d.DATE_TIME_FORMAT = "yyyyMMdd235959" : nt === "None" && (d.DATE_TIME_FORMAT = "")), y.erFormHelper.setGridRowData(y.configId, M.node.data.uid, d);
|
|
21682
21684
|
}
|
|
21683
21685
|
});
|
|
21684
21686
|
}, Ft = (y) => {
|
|
21685
21687
|
var f, j;
|
|
21686
21688
|
const M = [];
|
|
21687
21689
|
if ((f = y.context) != null && f.configId) {
|
|
21688
|
-
const
|
|
21689
|
-
(
|
|
21690
|
+
const Ee = o.getGridCheckedRows(y.context.configId);
|
|
21691
|
+
(Ee == null ? void 0 : Ee.length) > 0 && (M.push(Ie(y)), se.value !== "zh_Hans" && (M.push("separator"), M.push(gt(y, "COL_CAPTION", "COL_CAPTION_RES")))), o.DevelopPermisson === "1" && M.push({
|
|
21690
21692
|
name: `Batch Edit Propertis [${y.node.data.ITEM_CODE}]`,
|
|
21691
21693
|
icon: g.Core.createErSvgElement("product"),
|
|
21692
21694
|
action: async () => {
|
|
@@ -21705,7 +21707,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21705
21707
|
}
|
|
21706
21708
|
}), J.show(null);
|
|
21707
21709
|
};
|
|
21708
|
-
y.context.configId === "gridView1_GridView" ? ae(
|
|
21710
|
+
y.context.configId === "gridView1_GridView" ? ae(L) : y.context.configId === "gridView1_Layout" ? ae(w) : y.context.configId === "gridView1_TreeList" && ae(K);
|
|
21709
21711
|
}
|
|
21710
21712
|
}), ((j = y.context) == null ? void 0 : j.configId) === "gridView1_GridView" && M.push({
|
|
21711
21713
|
name: "Add Prefix To Field",
|
|
@@ -21776,7 +21778,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21776
21778
|
{
|
|
21777
21779
|
name: "Edit Relation",
|
|
21778
21780
|
icon: g.Core.createErSvgElement("relation"),
|
|
21779
|
-
action: async (
|
|
21781
|
+
action: async (Ee) => {
|
|
21780
21782
|
const ae = y.node.childrenAfterFilter[0].data.DATASET_NAME, J = y.node.childrenAfterFilter[0].data.RELATION_NAME;
|
|
21781
21783
|
ae && J && (Dt(ae, J), await v.show(null), v.Context.IsChanged && Tt(u));
|
|
21782
21784
|
}
|
|
@@ -21784,7 +21786,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21784
21786
|
{
|
|
21785
21787
|
name: "Delete Relation",
|
|
21786
21788
|
icon: g.Core.createErSvgElement("remove"),
|
|
21787
|
-
action: async (
|
|
21789
|
+
action: async (Ee) => {
|
|
21788
21790
|
const ae = y.node.childrenAfterFilter[0].data.DATASET_NAME, J = y.node.childrenAfterFilter[0].data.RELATION_NAME;
|
|
21789
21791
|
ae && J && o.messageConfirm("Are you sure to delete?", async () => {
|
|
21790
21792
|
const be = g.Core.buildEiInfo({ DATASET_NAME: ae, RELATION_NAME: J }, "TSI00DATARELATION_DELETE"), He = await g.Core.callService(oe(), t, be);
|
|
@@ -21814,8 +21816,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21814
21816
|
}
|
|
21815
21817
|
return M;
|
|
21816
21818
|
}, yt = (y, M) => {
|
|
21817
|
-
var f, j,
|
|
21818
|
-
return ((f = y.FIELD_NAME) == null ? void 0 : f.trim().length) === 0 || (M === "F" && (y.COLUMN_EDIT = ["NUMBER", "BIGINT", "DECIMAL", "DOUBLE", "INTEGER", "SMALLINT", "REAL", "DECFLOAT", "2"].includes(y.DATA_TYPE) ? "9" : y.DATA_TYPE === "3" || ((j = y.COL_CAPTION) != null && j.includes("日期") || (
|
|
21819
|
+
var f, j, Ee, ae, J, be, He;
|
|
21820
|
+
return ((f = y.FIELD_NAME) == null ? void 0 : f.trim().length) === 0 || (M === "F" && (y.COLUMN_EDIT = ["NUMBER", "BIGINT", "DECIMAL", "DOUBLE", "INTEGER", "SMALLINT", "REAL", "DECFLOAT", "2"].includes(y.DATA_TYPE) ? "9" : y.DATA_TYPE === "3" || ((j = y.COL_CAPTION) != null && j.includes("日期") || (Ee = y.COL_CAPTION) != null && Ee.includes("时间") || (ae = y.COL_CAPTION) != null && ae.includes("时刻")) && (g.Core.toNumber(y.MAX_LENGTH) === 8 || g.Core.toNumber(y.MAX_LENGTH) === 14 || g.Core.toNumber(y.MAX_LENGTH) === 20) ? "5" : "0"), y.DATA_TYPE === "2" ? (y.FORMAT_TYPE = "Numeric", ["金额", "税额", "发生额", "款"].some((ie) => {
|
|
21819
21821
|
var Me;
|
|
21820
21822
|
return (Me = y.COL_CAPTION) == null ? void 0 : Me.includes(ie);
|
|
21821
21823
|
}) ? y.FORMAT_STRING = "#,##0.00" : y.FORMAT_STRING = "#,##0", ["数量", "件数", "重量", "毛重", "净重"].some((ie) => {
|
|
@@ -21825,25 +21827,25 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21825
21827
|
}, It = () => {
|
|
21826
21828
|
Te.value = !1, Fe.value = !1, Ve.value = !1, Ae.value = !1, q.value = !1, X.value = !1, le.value = !1, Pe.value = "Excute Result", W.value = !0, o.clearGridData("gridView0");
|
|
21827
21829
|
}, Tt = (y) => {
|
|
21828
|
-
var j,
|
|
21830
|
+
var j, Ee;
|
|
21829
21831
|
let { orgHierarchy: M, ...f } = y;
|
|
21830
|
-
(j = f.NODE_TYPE) != null && j.endsWith("_ROOT") || (
|
|
21832
|
+
(j = f.NODE_TYPE) != null && j.endsWith("_ROOT") || (Ee = f.NODE_TYPE) != null && Ee.endsWith("_MODULE") ? (Te.value = !1, Fe.value = !1, Ve.value = !1, Ae.value = !1, q.value = !1, X.value = !1, le.value = !1, Pe.value = "Excute Result", W.value = !0, f = { ...f, CULTURE: se.value, QUERY_TYPE: "tsi00trace", FUNCTION_ID: "DevOps" }) : f.NODE_TYPE === "SI0112_DATASOURCE" ? (Fe.value = !1, W.value = !1, Te.value = !1, Ve.value = !1, Ae.value = !1, X.value = !1, le.value = !1, q.value = !0, f = { ...f, CULTURE: se.value, QUERY_TYPE: "si0112_details", COMPANY_CODE: "BS" }) : f.NODE_TYPE === "SI0114_DATASET" || f.NODE_TYPE === "SI0114_DATATABLE" ? (Fe.value = !1, W.value = !1, Te.value = !1, Ve.value = !1, Ae.value = !1, q.value = !1, le.value = !1, Pe.value = "Excute Result", X.value = !0, Nt("gridView7", f), f = { ...f, CULTURE: se.value, QUERY_TYPE: "si0114_details", COMPANY_CODE: "BS" }) : f.NODE_TYPE === "SI0115_FORM" ? (o.reloadDropDownDataSource("gridView3", "BUTTON_NAME", () => {
|
|
21831
21833
|
const ae = o.getItemDropDownDataSource("gridView3", "BUTTON_NAME");
|
|
21832
21834
|
return ae == null ? void 0 : ae.filter((J) => f.FUNC_TYPE === "M" ? J.CODE.startsWith("F") : J.CODE.startsWith("btn"));
|
|
21833
21835
|
}), Fe.value = !1, W.value = !1, Te.value = !1, Ve.value = !1, Ae.value = !1, X.value = !1, q.value = !1, le.value = !0, Nt("gridView3,gridView4,gridView19", f), f = { ...f, CULTURE: se.value, QUERY_TYPE: "si0115_form", COMPANY_CODE: "BS" }) : f.NODE_TYPE === "SI0115_VIEW" ? (W.value = !1, X.value = !1, Ve.value = !1, Ae.value = !1, q.value = !1, le.value = !1, Pe.value = "Excute Result", Fe.value = !0, f.FUNC_TYPE === "T" ? (at.value = "TreeColumns", qe.value = "gridView1_TreeList", Te.value = !1) : f.FUNC_TYPE === "F" ? (at.value = "LayoutItems", qe.value = "gridView1_Layout", Te.value = !1) : (at.value = "GridColumns", qe.value = "gridView1_GridView", Te.value = !0, Nt("gridView2", f)), Nt(`${qe.value},gridView11`, f), f = { ...f, CULTURE: se.value, QUERY_TYPE: "si0115_view", COMPANY_CODE: "BS" }) : f.NODE_TYPE === "SI0116_BASICCODE" ? (Fe.value = !1, W.value = !1, Te.value = !1, X.value = !1, Ae.value = !1, q.value = !1, le.value = !1, Pe.value = "Excute Result", Ve.value = !0, Nt("gridView12", f), f = { ...f, CULTURE: se.value, QUERY_TYPE: "tsi00code01_detail", COMPANY_CODE: "BS" }) : f.NODE_TYPE === "SI0117_SEQUENCE" && (Fe.value = !1, W.value = !1, Te.value = !1, X.value = !1, Ve.value = !1, q.value = !1, le.value = !1, Pe.value = "Excute Result", Ae.value = !0, f = { ...f, CULTURE: se.value, QUERY_TYPE: "tsi00seq_detail", COMPANY_CODE: "BS" }), f != null && f.QUERY_TYPE && Yt(() => {
|
|
21834
21836
|
Rt(f);
|
|
21835
21837
|
});
|
|
21836
21838
|
}, Dt = (y, M) => {
|
|
21837
|
-
const f = async (j,
|
|
21839
|
+
const f = async (j, Ee) => {
|
|
21838
21840
|
const ae = g.Core.buildEiInfo([{
|
|
21839
21841
|
QUERY_TYPE: "tsi00datatable",
|
|
21840
21842
|
DATASET_NAME: j,
|
|
21841
|
-
TABLE_NAME:
|
|
21843
|
+
TABLE_NAME: Ee
|
|
21842
21844
|
}]);
|
|
21843
21845
|
return (await g.Core.callService(oe(), e, ae, void 0, !0)).getBlock("TSI00DATATABLE");
|
|
21844
21846
|
};
|
|
21845
21847
|
v.setEvent("load", async (j) => {
|
|
21846
|
-
const
|
|
21848
|
+
const Ee = v.ErFormHelper.getGridApi(v.GridConfigId);
|
|
21847
21849
|
v.ErFormHelper.setLayoutItemValidateRules(
|
|
21848
21850
|
v.LayoutConfigId,
|
|
21849
21851
|
"RESERVE7",
|
|
@@ -21853,7 +21855,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21853
21855
|
return J && be === J ? (ae.message = "Child table cannot be the same as the parent table!", Promise.reject()) : Promise.resolve();
|
|
21854
21856
|
}
|
|
21855
21857
|
}]
|
|
21856
|
-
),
|
|
21858
|
+
), Ee == null || Ee.addEventListener("cellValueChanged", async (ae) => {
|
|
21857
21859
|
var J, be, He;
|
|
21858
21860
|
if (ae.data && (((J = ae.colDef) == null ? void 0 : J.field) === "RESERVE1" || ((be = ae.colDef) == null ? void 0 : be.field) === "RESERVE7")) {
|
|
21859
21861
|
const ie = g.Core.buildEiInfo([{
|
|
@@ -21868,11 +21870,11 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21868
21870
|
}
|
|
21869
21871
|
});
|
|
21870
21872
|
}), v.setEvent("query", async (j) => {
|
|
21871
|
-
const
|
|
21873
|
+
const Ee = g.Core.buildEiInfo([{
|
|
21872
21874
|
QUERY_TYPE: "tsi00datarelation",
|
|
21873
21875
|
DATASET_NAME: y,
|
|
21874
21876
|
RELATION_NAME: M || v.ErFormHelper.getControlValue(v.LayoutConfigId, "RELATION_NAME")
|
|
21875
|
-
}]), ae = await g.Core.callService(oe(), e,
|
|
21877
|
+
}]), ae = await g.Core.callService(oe(), e, Ee, void 0, !0);
|
|
21876
21878
|
if (ae.SysInfo && ae.SysInfo.Flag >= 0) {
|
|
21877
21879
|
const J = ae.getBlock("TSI00DATARELATION");
|
|
21878
21880
|
if (J.getMappedRows().length > 0) {
|
|
@@ -21886,11 +21888,11 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21886
21888
|
});
|
|
21887
21889
|
}
|
|
21888
21890
|
}), v.setEvent("open", async (j) => {
|
|
21889
|
-
const
|
|
21891
|
+
const Ee = g.Core.buildEiInfo([{
|
|
21890
21892
|
QUERY_TYPE: "tsi00dataset",
|
|
21891
21893
|
DATASET_NAME: y,
|
|
21892
21894
|
TABLE_NAME: "*"
|
|
21893
|
-
}]), ae = await g.Core.callService(oe(), e,
|
|
21895
|
+
}]), ae = await g.Core.callService(oe(), e, Ee, void 0, !0);
|
|
21894
21896
|
if (ae.SysInfo && ae.SysInfo.Flag >= 0) {
|
|
21895
21897
|
const J = ae.getBlock("TSI00DATASET");
|
|
21896
21898
|
J.getMappedRows().length > 0 && (v.ErFormHelper.reloadDropDownDataSource(v.LayoutConfigId, "RESERVE1", J.getMappedRows()), v.ErFormHelper.reloadDropDownDataSource(v.LayoutConfigId, "RESERVE7", J.getMappedRows()));
|
|
@@ -21903,19 +21905,19 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21903
21905
|
J.DATASET_NAME = y;
|
|
21904
21906
|
}
|
|
21905
21907
|
}), v.setEvent("save", async (j) => {
|
|
21906
|
-
const
|
|
21907
|
-
if (
|
|
21908
|
+
const Ee = v.ErFormHelper.getGridAllRowsAsBlock(v.GridConfigId);
|
|
21909
|
+
if (Ee.getMappedRows().length === 0) {
|
|
21908
21910
|
g.Core.messageError("No relation detail info!");
|
|
21909
21911
|
return;
|
|
21910
21912
|
}
|
|
21911
|
-
const ae =
|
|
21913
|
+
const ae = Ee.getMappedRows();
|
|
21912
21914
|
for (let He = 0; He < ae.length; He++)
|
|
21913
21915
|
ae[He].DATASET_NAME = y, ae[He].RELATION_NAME = v.ErFormHelper.getControlValue(v.LayoutConfigId, "RELATION_NAME"), ae[He].RESERVE1 = v.ErFormHelper.getControlValue(v.LayoutConfigId, "RESERVE1"), ae[He].RESERVE7 = v.ErFormHelper.getControlValue(v.LayoutConfigId, "RESERVE7"), ae[He].C_SEQ_ID = String(He + 1).padStart(3, "0");
|
|
21914
21916
|
const J = new g.EIInfo();
|
|
21915
|
-
|
|
21917
|
+
Ee.rename(v.EditType === "Modify" ? "TSI00DATARELATION_MODIFY" : "TSI00DATARELATION_ADD"), J.addBlock(Ee), (await g.Core.callService(oe(), t, J, void 0, !0)).getStatus() >= 0 && (v.EditType = "Modify", v.ErFormHelper.setControlReadOnly(v.LayoutConfigId, !0, "RESERVE1,RESERVE7"), v.doEvent("query"));
|
|
21916
21918
|
}), v.setEvent("itemValueChanged", async (j) => {
|
|
21917
21919
|
if (j.itemCode === "RESERVE1" || j.itemCode === "RESERVE7") {
|
|
21918
|
-
const
|
|
21920
|
+
const Ee = v.ErFormHelper.getControlValue(v.LayoutConfigId, j.itemCode), ae = await f(y, Ee);
|
|
21919
21921
|
ae && v.ErFormHelper.reloadDropDownDataSource(v.GridConfigId, j.itemCode === "RESERVE1" ? "RESERVE2" : "RESERVE8", ae.getMappedRows());
|
|
21920
21922
|
const J = v.ErFormHelper.getGridApi(v.GridConfigId);
|
|
21921
21923
|
J == null || J.forEachLeafNode((be) => {
|
|
@@ -21925,10 +21927,10 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
21925
21927
|
});
|
|
21926
21928
|
}
|
|
21927
21929
|
});
|
|
21928
|
-
}, pt = async (y, M, f, j,
|
|
21930
|
+
}, pt = async (y, M, f, j, Ee = !1) => {
|
|
21929
21931
|
let ae = {}, J = "";
|
|
21930
21932
|
const be = await Ye(f == null ? void 0 : f.data.MODULE_TYPE);
|
|
21931
|
-
if (m = new g.PopFreeHelper(ft, y, "LayoutGroupMain", Ge), m.setSavePartition(oe()), m.EditType = M, m.OkButtonService = t, m.OkButtonCaption = g.Core.$t("ERX.Save") || "Save", m.CancelButtonCaption = g.Core.$t("ERX.Close") || "Close", m.CloseDialogWhenOkClick =
|
|
21933
|
+
if (m = new g.PopFreeHelper(ft, y, "LayoutGroupMain", Ge), m.setSavePartition(oe()), m.EditType = M, m.OkButtonService = t, m.OkButtonCaption = g.Core.$t("ERX.Save") || "Save", m.CancelButtonCaption = g.Core.$t("ERX.Close") || "Close", m.CloseDialogWhenOkClick = Ee, ae = (() => {
|
|
21932
21934
|
var Me, Qe;
|
|
21933
21935
|
let ie = {};
|
|
21934
21936
|
switch (y) {
|
|
@@ -22205,8 +22207,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22205
22207
|
}
|
|
22206
22208
|
M.checkBlockName && g.Core.readFiles((f) => {
|
|
22207
22209
|
for (let j = 0; j < f.length; j++) {
|
|
22208
|
-
const
|
|
22209
|
-
|
|
22210
|
+
const Ee = new FileReader();
|
|
22211
|
+
Ee.onload = async (ae) => {
|
|
22210
22212
|
var He, ie;
|
|
22211
22213
|
const J = new g.EIInfo();
|
|
22212
22214
|
D = new g.PopQueryHelper(
|
|
@@ -22290,7 +22292,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22290
22292
|
const Qe = await g.Core.callService(oe(), t, Me);
|
|
22291
22293
|
Qe.SysInfo && Qe.SysInfo.Flag < 0 ? g.Core.messageError(Qe.getMsg()) : g.Core.messageSuccess(M.successInfo);
|
|
22292
22294
|
}
|
|
22293
|
-
},
|
|
22295
|
+
}, Ee.readAsText(f[j]);
|
|
22294
22296
|
}
|
|
22295
22297
|
});
|
|
22296
22298
|
}, Mt = (y) => {
|
|
@@ -22339,8 +22341,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22339
22341
|
if ((M = y.NODE_TYPE) != null && M.endsWith("_ROOT")) {
|
|
22340
22342
|
if (!await o.messageConfirm("Are you sure to export all configuration data?"))
|
|
22341
22343
|
return;
|
|
22342
|
-
(f = y.children) == null || f.forEach((
|
|
22343
|
-
Vt(Mt(
|
|
22344
|
+
(f = y.children) == null || f.forEach((Ee) => {
|
|
22345
|
+
Vt(Mt(Ee.data));
|
|
22344
22346
|
});
|
|
22345
22347
|
} else if ((j = y.NODE_TYPE) != null && j.startsWith("SI01")) {
|
|
22346
22348
|
if (!await o.messageConfirm("Are you sure to export configuration data?"))
|
|
@@ -22348,10 +22350,10 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22348
22350
|
Vt(Mt(y));
|
|
22349
22351
|
}
|
|
22350
22352
|
}, Vt = async (y) => {
|
|
22351
|
-
var M, f, j,
|
|
22353
|
+
var M, f, j, Ee;
|
|
22352
22354
|
if (y.QUERY_TYPE) {
|
|
22353
22355
|
const ae = g.Core.buildEiInfo([y]), J = await g.Core.callService(oe(), e, ae);
|
|
22354
|
-
(M = J.SysInfo) != null && M.Flag && ((f = J.SysInfo) == null ? void 0 : f.Flag) < 0 ? g.Core.messageError(J.getMsg()) : ((j = J.getBlockByIndex(0).getMappedRows()) == null ? void 0 : j.length) > 0 && g.Core.saveAsJsonFile(J, `ER_${y.CONFIG_TYPE}_${y.MODULE_NAME}_${((
|
|
22356
|
+
(M = J.SysInfo) != null && M.Flag && ((f = J.SysInfo) == null ? void 0 : f.Flag) < 0 ? g.Core.messageError(J.getMsg()) : ((j = J.getBlockByIndex(0).getMappedRows()) == null ? void 0 : j.length) > 0 && g.Core.saveAsJsonFile(J, `ER_${y.CONFIG_TYPE}_${y.MODULE_NAME}_${((Ee = y.FUNCTION_ID) == null ? void 0 : Ee.trim()) || "All"}_${g.Core.getDateTimeFormatString("Now")}`);
|
|
22355
22357
|
}
|
|
22356
22358
|
}, Nt = async (y, M) => {
|
|
22357
22359
|
const f = y.split(",");
|
|
@@ -22433,7 +22435,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22433
22435
|
});
|
|
22434
22436
|
});
|
|
22435
22437
|
}, no = (y) => {
|
|
22436
|
-
var M, f, j,
|
|
22438
|
+
var M, f, j, Ee, ae;
|
|
22437
22439
|
if (y.rowChanged) {
|
|
22438
22440
|
if (y.data) {
|
|
22439
22441
|
if (o.setGridColumnEditable("gridView4", y.data.isNew, "CODE_CLASS"), (p == null ? void 0 : p.length) > 0) {
|
|
@@ -22457,7 +22459,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22457
22459
|
visible: ((j = y.data) == null ? void 0 : j.isNew) === !1
|
|
22458
22460
|
},
|
|
22459
22461
|
save: {
|
|
22460
|
-
visible: ((
|
|
22462
|
+
visible: ((Ee = y.data) == null ? void 0 : Ee.isNew) === !1,
|
|
22461
22463
|
action: () => {
|
|
22462
22464
|
St();
|
|
22463
22465
|
}
|
|
@@ -22497,7 +22499,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22497
22499
|
ALLOW_SYSPARAS: "0",
|
|
22498
22500
|
ALLOW_TELE: "0"
|
|
22499
22501
|
}]), M = await g.Core.callService(oe(), e, y, { show: !0, delay: 1e3 }, !0);
|
|
22500
|
-
M.getStatus() >= 0 ? (r =
|
|
22502
|
+
M.getStatus() >= 0 ? (r = H == null ? void 0 : H.setTreeData(M.getBlockByIndex(0).getMappedRows(), u == null ? void 0 : u.CURRENT_NODE_CODE), g.Core.setLocalStorage("devTreeDefaultServer", Re.value)) : r = H == null ? void 0 : H.setTreeData([]);
|
|
22501
22503
|
}, Ye = async (y) => {
|
|
22502
22504
|
const M = g.Core.buildEiInfo([{ QUERY_TYPE: "TSI00MODULE", MODULE_TYPE: y }]), f = await g.Core.callService(oe(), e, M);
|
|
22503
22505
|
return f.SysInfo && f.SysInfo.Flag < 0 ? (g.Core.messageError(f.getMsg()), []) : f.getBlockByIndex(0).getMappedRows().map((j) => ({
|
|
@@ -22526,7 +22528,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22526
22528
|
M && _e.value.find((f) => f.CODE === M) ? Re.value = M : Re.value = _e.value[0].CODE, ke(Re.value), We();
|
|
22527
22529
|
}
|
|
22528
22530
|
}, Rt = async (y) => {
|
|
22529
|
-
var j,
|
|
22531
|
+
var j, Ee, ae;
|
|
22530
22532
|
o.FormDataSet.clear();
|
|
22531
22533
|
const M = g.Core.buildEiInfo([y]), f = await g.Core.callService(oe(), e, M);
|
|
22532
22534
|
if (f.getStatus() < 0) {
|
|
@@ -22539,7 +22541,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22539
22541
|
break;
|
|
22540
22542
|
}
|
|
22541
22543
|
case "si0114_details": {
|
|
22542
|
-
o.mergeEiInfoToGrid(f, "gridView7,gridView8,gridView9"), (j = o.getGridApi("gridView7")) == null || j.expandAll(), (
|
|
22544
|
+
o.mergeEiInfoToGrid(f, "gridView7,gridView8,gridView9"), (j = o.getGridApi("gridView7")) == null || j.expandAll(), (Ee = o.getGridApi("gridView8")) == null || Ee.expandAll();
|
|
22543
22545
|
break;
|
|
22544
22546
|
}
|
|
22545
22547
|
case "si0115_view": {
|
|
@@ -22567,9 +22569,9 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22567
22569
|
$t(async () => {
|
|
22568
22570
|
var M;
|
|
22569
22571
|
if (_t = "SI00AllDevConfig", Ge = "JAER01/getFormConfig", new ResizeObserver((f) => {
|
|
22570
|
-
var
|
|
22572
|
+
var Ee;
|
|
22571
22573
|
const j = f[0].contentRect.width;
|
|
22572
|
-
V.value = f[0].contentRect.height - ((
|
|
22574
|
+
V.value = f[0].contentRect.height - ((Ee = a.options) != null && Ee.isDevPlat ? 50 : 150), Qt(j, 350);
|
|
22573
22575
|
}).observe(h.value.container), (M = a.options) != null && M.isDevPlat)
|
|
22574
22576
|
Re.value = ft;
|
|
22575
22577
|
else {
|
|
@@ -22583,8 +22585,8 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22583
22585
|
g.Core.messageError("Authorized partition list not found!");
|
|
22584
22586
|
return;
|
|
22585
22587
|
} else {
|
|
22586
|
-
const
|
|
22587
|
-
_e.value =
|
|
22588
|
+
const Ee = j.getBlockByIndex(0).getMappedRows();
|
|
22589
|
+
_e.value = Ee.map((ae) => ({
|
|
22588
22590
|
...ae,
|
|
22589
22591
|
SYSTEM_DESC: `${ae.SYSTEM_CODE}-${ae.SYSTEM_NAME}`,
|
|
22590
22592
|
CODE: `${ae.SYSTEM_CODE}|${ae.PARTITION_CODE}`,
|
|
@@ -22638,10 +22640,10 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22638
22640
|
if (!await o.messageConfirm({ message: g.Core.$t("ERX.ConfirmMessage"), culture: !0 }))
|
|
22639
22641
|
return;
|
|
22640
22642
|
j.setContext({ culture: se.value });
|
|
22641
|
-
let
|
|
22642
|
-
(u == null ? void 0 : u.NODE_TYPE) === "SI0115_FORM" && (
|
|
22643
|
+
let Ee = "";
|
|
22644
|
+
(u == null ? void 0 : u.NODE_TYPE) === "SI0115_FORM" && (Ee = (J = o.getGridCurrentRow("gridView4")) == null ? void 0 : J.CODE_CLASS);
|
|
22643
22645
|
const ae = await g.Core.callService(oe(), t, j, void 0, !0);
|
|
22644
|
-
ae.getStatus() >= 0 ? (Tt(u),
|
|
22646
|
+
ae.getStatus() >= 0 ? (Tt(u), Ee && o.setGridIndicator("gridView4", { CODE_CLASS: Ee })) : g.Core.messageError(ae.getMsg());
|
|
22645
22647
|
};
|
|
22646
22648
|
(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(`${qe.value},gridView2,treeList1,gridView11`) : (u == null ? void 0 : u.NODE_TYPE) === "SI0116_BASICCODE" && y("LayoutGroupCodeClass,gridView12");
|
|
22647
22649
|
}, Qt = (y, M) => {
|
|
@@ -22651,7 +22653,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22651
22653
|
erFormHelper: o,
|
|
22652
22654
|
queryInfo: Rt
|
|
22653
22655
|
}), (y, M) => {
|
|
22654
|
-
const f = Xe("a-input"), j = Xe("a-button"),
|
|
22656
|
+
const f = Xe("a-input"), j = Xe("a-button"), Ee = Xe("a-tooltip"), ae = Xe("a-input-group"), J = Xe("a-popover"), be = Xe("v-splitter-pane"), He = Xe("a-tab-pane"), ie = Xe("v-splitter"), Me = Xe("a-tabs"), Qe = Xe("a-config-providver");
|
|
22655
22657
|
return B(), he(Qe, {
|
|
22656
22658
|
theme: $e.value,
|
|
22657
22659
|
locale: De.value,
|
|
@@ -22691,7 +22693,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22691
22693
|
onChange: E,
|
|
22692
22694
|
style: { width: "100%" },
|
|
22693
22695
|
readonly: !Oe.value,
|
|
22694
|
-
"data-source":
|
|
22696
|
+
"data-source": me()
|
|
22695
22697
|
}, null, 8, ["modelValue", "readonly", "data-source"])
|
|
22696
22698
|
])
|
|
22697
22699
|
]),
|
|
@@ -22724,7 +22726,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22724
22726
|
onChange: ge,
|
|
22725
22727
|
onPressEnter: $
|
|
22726
22728
|
}, null, 8, ["value"]),
|
|
22727
|
-
Se(
|
|
22729
|
+
Se(Ee, { title: "Find" }, {
|
|
22728
22730
|
default: Q(() => [
|
|
22729
22731
|
Se(j, {
|
|
22730
22732
|
style: { height: "24px !important", width: "25px", "box-shadow": "none !important" },
|
|
@@ -22738,7 +22740,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
22738
22740
|
]),
|
|
22739
22741
|
_: 1
|
|
22740
22742
|
}),
|
|
22741
|
-
Se(
|
|
22743
|
+
Se(Ee, { title: "Close" }, {
|
|
22742
22744
|
default: Q(() => [
|
|
22743
22745
|
Se(j, {
|
|
22744
22746
|
style: { height: "24px !important", width: "25px", "box-shadow": "none !important" },
|
|
@@ -23019,7 +23021,7 @@ const di = /* @__PURE__ */ Jt(hd, [["render", Ed], ["__scopeId", "data-v-9d9eb98
|
|
|
23019
23021
|
default: Q(() => [
|
|
23020
23022
|
Se(ie, {
|
|
23021
23023
|
ref_key: "splitterScriptRef",
|
|
23022
|
-
ref:
|
|
23024
|
+
ref: U,
|
|
23023
23025
|
horizontal: !0,
|
|
23024
23026
|
style: { height: "100%" }
|
|
23025
23027
|
}, {
|
|
@@ -23255,11 +23257,11 @@ function Jd() {
|
|
|
23255
23257
|
try {
|
|
23256
23258
|
const _ = require.context("@/locales", !1, /^[a-z]{2}(-[A-Z]{2})?\.ts$/, "eager");
|
|
23257
23259
|
Object.keys(_).forEach((a) => {
|
|
23258
|
-
const h = a.replace(/(.*\/)*([^.]+).*/gi, "$2"),
|
|
23260
|
+
const h = a.replace(/(.*\/)*([^.]+).*/gi, "$2"), U = _[a];
|
|
23259
23261
|
l[h] ? l[h] = {
|
|
23260
23262
|
...l[h],
|
|
23261
|
-
...
|
|
23262
|
-
} : l[h] =
|
|
23263
|
+
...U.default
|
|
23264
|
+
} : l[h] = U.default;
|
|
23263
23265
|
});
|
|
23264
23266
|
} catch (_) {
|
|
23265
23267
|
console.log(_);
|
|
@@ -23314,4 +23316,4 @@ export {
|
|
|
23314
23316
|
_u as i,
|
|
23315
23317
|
jd as j
|
|
23316
23318
|
};
|
|
23317
|
-
//# sourceMappingURL=index-
|
|
23319
|
+
//# sourceMappingURL=index-CMksYzVy.js.map
|