@baosight/er4j 0.0.68 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/er4j-dist/ErAdvanceFilter-ByFv7lkj.js +1663 -0
- package/er4j-dist/ErAdvanceFilter-ByFv7lkj.js.map +1 -0
- package/er4j-dist/{ErLayoutDesign-DFZZkx9P.js → ErLayoutDesign-C_XUd93K.js} +2 -2
- package/er4j-dist/{ErLayoutDesign-DFZZkx9P.js.map → ErLayoutDesign-C_XUd93K.js.map} +1 -1
- package/er4j-dist/ErPopFree-BpCe_t4q.js +5 -0
- package/er4j-dist/ErPopFree-BpCe_t4q.js.map +1 -0
- package/er4j-dist/ErPopQuery-D6GNMo_R.js +5 -0
- package/er4j-dist/ErPopQuery-D6GNMo_R.js.map +1 -0
- package/er4j-dist/ErPopRichEditor-Bk7UGbWg.js +5 -0
- package/er4j-dist/ErPopRichEditor-Bk7UGbWg.js.map +1 -0
- package/er4j-dist/ErPopTree-FgmWr3Jx.js +5 -0
- package/er4j-dist/ErPopTree-FgmWr3Jx.js.map +1 -0
- package/er4j-dist/er4j.css +1 -1
- package/er4j-dist/er4j.es.js +10 -10
- package/er4j-dist/er4j.umd.js +53 -53
- package/er4j-dist/er4j.umd.js.map +1 -1
- package/er4j-dist/{index-ofQiDhL3.js → index-B5cf3vBZ.js} +17060 -16462
- package/er4j-dist/index-B5cf3vBZ.js.map +1 -0
- package/er4j-dist/types/components/ErAdvanceFilter/ErAdvanceFilter.vue.d.ts +18627 -0
- package/er4j-dist/types/components/ErAdvanceFilter/GridToolbar.vue.d.ts +1109 -0
- package/er4j-dist/types/components/ErCheckboxGroup/ErCheckboxGroup.vue.d.ts +181 -181
- package/er4j-dist/types/components/ErDialog/DialogBase.vue.d.ts +6 -6
- package/er4j-dist/types/components/ErDialog/ErDialog.vue.d.ts +15 -15
- package/er4j-dist/types/components/ErFormToolbar/ErFormToolbar.vue.d.ts +241 -241
- package/er4j-dist/types/components/ErGrid/ErGrid.vue.d.ts +6045 -0
- package/er4j-dist/types/components/ErGridCellEditor/ButtonEditor.vue.d.ts +314 -314
- package/er4j-dist/types/components/ErGridCellEditor/ColorEditor.vue.d.ts +1 -1
- package/er4j-dist/types/components/ErGridCellEditor/DatetimeEditor.vue.d.ts +374 -374
- package/er4j-dist/types/components/ErGridCellEditor/DropdownEditor.vue.d.ts +254 -254
- package/er4j-dist/types/components/ErGridCellEditor/LargeTextEditor.vue.d.ts +185 -185
- package/er4j-dist/types/components/ErGridCellEditor/NumberEditor.vue.d.ts +322 -322
- package/er4j-dist/types/components/ErGridCellEditor/TextEditor.vue.d.ts +256 -256
- package/er4j-dist/types/components/ErGridCellRender/ButtonGroup.vue.d.ts +1889 -0
- package/er4j-dist/types/components/ErGridCellRender/CardRender.vue.d.ts +2942 -0
- package/er4j-dist/types/components/ErGridCellRender/DefaultRender.vue.d.ts +214 -214
- package/er4j-dist/types/components/ErGridCellRender/ImagePreview.vue.d.ts +241 -241
- package/er4j-dist/types/components/ErGridCellRender/SwitchRender.vue.d.ts +1563 -0
- package/er4j-dist/types/components/ErGridStatusBar/InformationPanel.vue.d.ts +58 -58
- package/er4j-dist/types/components/ErGridStatusBar/PaginationPanel.vue.d.ts +1342 -16
- package/er4j-dist/types/components/ErGridStatusBar/ToolbarPanel.vue.d.ts +1889 -0
- package/er4j-dist/types/components/ErLayout/ErLayout.vue.d.ts +16362 -0
- package/er4j-dist/types/components/ErLayoutDesign/ErLayoutDesign.vue.d.ts +3040 -0
- package/er4j-dist/types/components/ErMemoEditor/ErMemoEditor.vue.d.ts +385 -385
- package/er4j-dist/types/components/ErMenuDevPlat/CustomCellRenderer.vue.d.ts +1873 -0
- package/er4j-dist/types/components/ErMenuDevPlat/ErMenuDevPlat.vue.d.ts +11006 -0
- package/er4j-dist/types/components/ErPanel/ErPanel.vue.d.ts +1827 -0
- package/er4j-dist/types/components/ErPopFree/ErPopFree.vue.d.ts +43 -43
- package/er4j-dist/types/components/ErPopQuery/ErPopQuery.vue.d.ts +3186 -0
- package/er4j-dist/types/components/ErPopRichEditor/ErPopRichEditor.vue.d.ts +798 -798
- package/er4j-dist/types/components/ErPopTree/ErPopTree.vue.d.ts +2877 -0
- package/er4j-dist/types/components/ErRadioGroup/ErRadioGroup.vue.d.ts +178 -178
- package/er4j-dist/types/components/ErSelect/ErSelect.vue.d.ts +606 -606
- package/er4j-dist/types/components/ErTree/ErTree.vue.d.ts +203 -203
- package/er4j-dist/types/locales/erLocale/locale.ar.d.ts +1 -0
- package/er4j-dist/types/locales/erLocale/locale.en.d.ts +1 -0
- package/er4j-dist/types/locales/erLocale/locale.id.d.ts +1 -0
- package/er4j-dist/types/locales/erLocale/locale.zh_Hans.d.ts +1 -0
- package/er4j-dist/types/locales/erLocale/locale.zh_Hant.d.ts +1 -0
- package/er4j-dist/types/utils/er.d.ts +135 -4
- package/er4j-dist/types/utils/i18n.d.ts +2 -2
- package/package.json +1 -1
- package/src/views/JA/ER/JAER02.vue +1 -2
- package/er4j-dist/ErPopFree-BUnRYMy4.js +0 -5
- package/er4j-dist/ErPopFree-BUnRYMy4.js.map +0 -1
- package/er4j-dist/ErPopQuery-BOnM155Y.js +0 -5
- package/er4j-dist/ErPopQuery-BOnM155Y.js.map +0 -1
- package/er4j-dist/ErPopRichEditor-CTN8uO-e.js +0 -5
- package/er4j-dist/ErPopRichEditor-CTN8uO-e.js.map +0 -1
- package/er4j-dist/ErPopTree-KMcjQqPw.js +0 -5
- package/er4j-dist/ErPopTree-KMcjQqPw.js.map +0 -1
- package/er4j-dist/index-ofQiDhL3.js.map +0 -1
|
@@ -0,0 +1,1663 @@
|
|
|
1
|
+
import { defineComponent as Ae, ref as y, onMounted as Ft, resolveComponent as q, createElementBlock as gt, openBlock as w, createVNode as F, withCtx as D, Fragment as Zt, renderList as er, createBlock as G, createTextVNode as ce, toDisplayString as re, h as oe, computed as Be, nextTick as W, unref as f, createElementVNode as Ee, createCommentVNode as Ce } from "vue";
|
|
2
|
+
import { g as tr, a as he, E as e, i as ue, D as rr, j as z, L as Ge, N as ht, k as At, T as vt, l as yt, b as Xe, m as Fe } from "./index-B5cf3vBZ.js";
|
|
3
|
+
import { ConfigProvider as or, Tooltip as lr, Button as ar } from "ant-design-vue";
|
|
4
|
+
import { PlusOutlined as ir, InsertRowAboveOutlined as nr, CopyOutlined as xe, CloseOutlined as Ve, CheckOutlined as ke, DeleteOutlined as sr } from "@ant-design/icons-vue";
|
|
5
|
+
import { Splitpanes as Nt, Pane as He } from "splitpanes";
|
|
6
|
+
import H from "dayjs";
|
|
7
|
+
import { EiInfo as Rt, EiBlock as It } from "@eplat/ei";
|
|
8
|
+
const dr = { style: { display: "inline-block" } }, Er = Ae({
|
|
9
|
+
name: "GridToolbar",
|
|
10
|
+
components: {
|
|
11
|
+
"a-button": ar,
|
|
12
|
+
"a-tooltip": lr,
|
|
13
|
+
"a-config-providver": or
|
|
14
|
+
}
|
|
15
|
+
}), Cr = /* @__PURE__ */ Ae({
|
|
16
|
+
...Er,
|
|
17
|
+
props: {
|
|
18
|
+
params: {
|
|
19
|
+
type: Object,
|
|
20
|
+
default: () => {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(ve) {
|
|
25
|
+
var le;
|
|
26
|
+
const l = ve, ye = y(tr()), Y = y(he());
|
|
27
|
+
window.$wujie && ((le = window.$wujie.bus) == null || le.$on("changeThemeEmit", ($) => {
|
|
28
|
+
Y.value = he();
|
|
29
|
+
}));
|
|
30
|
+
const X = () => {
|
|
31
|
+
const $ = [
|
|
32
|
+
{ name: "addrow", caption: e.Core.$t("ERX.ErGridStatusBar.ToolbarPanel.AddRow") || "新增行", icon: oe(ir), type: "primary" },
|
|
33
|
+
{ name: "insertrow", caption: e.Core.$t("ERX.ErGridStatusBar.ToolbarPanel.InsertRow") || "插入行", icon: oe(nr), type: "primary" },
|
|
34
|
+
{ name: "copyrow", caption: e.Core.$t("ERX.ErGridStatusBar.ToolbarPanel.CopyRow") || "复制行", icon: oe(xe), type: "primary" },
|
|
35
|
+
{ name: "delete", caption: e.Core.$t("ERX.ErGridStatusBar.ToolbarPanel.Delete") || "删除行", icon: oe(Ve), type: "primary" },
|
|
36
|
+
{ name: "save", caption: e.Core.$t("ERX.ErGridStatusBar.ToolbarPanel.Save") || "保存", icon: oe(ke), type: "primary" }
|
|
37
|
+
], p = [];
|
|
38
|
+
return l.params.defaultButtons && $.forEach((h) => {
|
|
39
|
+
l.params.defaultButtons.includes(h.name) && p.push(h);
|
|
40
|
+
}), l.params.customButtons && l.params.customButtons.forEach((h) => {
|
|
41
|
+
var S, A;
|
|
42
|
+
((S = h.name) == null ? void 0 : S.trim().length) > 0 && ((A = h.caption) == null ? void 0 : A.trim().length) > 0 && p.push(h);
|
|
43
|
+
}), p;
|
|
44
|
+
}, pe = async ($) => {
|
|
45
|
+
var h, S, A, N, K, j, R;
|
|
46
|
+
let p;
|
|
47
|
+
switch ((h = l.params.api) != null && h.getBindingTable && (p = l.params.api.getBindingTable()), $.name) {
|
|
48
|
+
case "addrow": {
|
|
49
|
+
(S = l.params.defaultFunction) != null && S.addRow && l.params.defaultFunction.addRow instanceof Function ? l.params.defaultFunction.addRow(l.params) : p == null || p.add();
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
case "insertrow": {
|
|
53
|
+
if ((A = l.params.defaultFunction) != null && A.insertRow && l.params.defaultFunction.insertRow instanceof Function)
|
|
54
|
+
l.params.defaultFunction.insertRow(l.params);
|
|
55
|
+
else if (p != null && p.Current) {
|
|
56
|
+
const Q = p.indexOf(p.Current);
|
|
57
|
+
p.insert(Q, {});
|
|
58
|
+
} else
|
|
59
|
+
p == null || p.insert(0, {});
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case "copyrow": {
|
|
63
|
+
if ((N = l.params.defaultFunction) != null && N.copyRow && l.params.defaultFunction.copyRow instanceof Function)
|
|
64
|
+
l.params.defaultFunction.copyRow(l.params);
|
|
65
|
+
else if (p != null && p.Current) {
|
|
66
|
+
const Q = p.indexOf(p.Current);
|
|
67
|
+
p.insert(Q + 1, p.Current.toJSON());
|
|
68
|
+
} else
|
|
69
|
+
p == null || p.add();
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
case "delete": {
|
|
73
|
+
(K = l.params.defaultFunction) != null && K.deleteRow && l.params.defaultFunction.deleteRow instanceof Function ? l.params.defaultFunction.deleteRow(l.params) : p != null && p.Current && p.remove(p.Current);
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
case "save": {
|
|
77
|
+
(j = l.params.defaultFunction) != null && j.save && l.params.defaultFunction.save instanceof Function && l.params.defaultFunction.save(l.params);
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
default:
|
|
81
|
+
(R = l.params.defaultFunction) != null && R[$.name] && l.params.defaultFunction[$.name] instanceof Function && l.params.defaultFunction[$.name](l.params);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
return Ft(() => {
|
|
85
|
+
}), ($, p) => {
|
|
86
|
+
const h = q("a-button"), S = q("a-tooltip"), A = q("a-config-providver");
|
|
87
|
+
return w(), gt("div", dr, [
|
|
88
|
+
F(A, {
|
|
89
|
+
theme: Y.value,
|
|
90
|
+
locale: ye.value,
|
|
91
|
+
componentSize: "small"
|
|
92
|
+
}, {
|
|
93
|
+
default: D(() => [
|
|
94
|
+
(w(!0), gt(Zt, null, er(X(), (N) => (w(), G(S, {
|
|
95
|
+
key: N.name + "tooltip",
|
|
96
|
+
title: N.caption
|
|
97
|
+
}, {
|
|
98
|
+
default: D(() => {
|
|
99
|
+
var K;
|
|
100
|
+
return [
|
|
101
|
+
(w(), G(h, {
|
|
102
|
+
key: N.name,
|
|
103
|
+
id: N.name,
|
|
104
|
+
icon: ((K = l.params) == null ? void 0 : K.showIco) !== !1 ? N.icon : void 0,
|
|
105
|
+
type: N.type || "primary",
|
|
106
|
+
onClick: (j) => pe(N),
|
|
107
|
+
style: { height: "20px", padding: "0px 5px", margin: "1px", "font-size": "13px" }
|
|
108
|
+
}, {
|
|
109
|
+
default: D(() => {
|
|
110
|
+
var j;
|
|
111
|
+
return [
|
|
112
|
+
ce(re((j = l.params) != null && j.showText ? N.caption : ""), 1)
|
|
113
|
+
];
|
|
114
|
+
}),
|
|
115
|
+
_: 2
|
|
116
|
+
}, 1032, ["id", "icon", "type", "onClick"]))
|
|
117
|
+
];
|
|
118
|
+
}),
|
|
119
|
+
_: 2
|
|
120
|
+
}, 1032, ["title"]))), 128))
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["theme", "locale"])
|
|
124
|
+
]);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
}), ur = { style: { display: "flex", height: "100%", "flex-direction": "column" } }, cr = { style: { flex: "1" } }, pr = { style: { display: "flex", height: "100%", "flex-direction": "column" } }, _r = { style: { display: "flex", "justify-content": "flex-start", "align-items": "center" } }, fr = Ae({
|
|
128
|
+
name: "ErAdvanceFilter",
|
|
129
|
+
components: {
|
|
130
|
+
ErDialog: yt,
|
|
131
|
+
ErPanel: Xe,
|
|
132
|
+
GridToolbar: Cr,
|
|
133
|
+
DropdownEditor: z,
|
|
134
|
+
NumberEditor: ht,
|
|
135
|
+
TextEditor: vt,
|
|
136
|
+
LargeTextEditor: Ge,
|
|
137
|
+
DatetimeEditor: At,
|
|
138
|
+
CheckOutlined: ke,
|
|
139
|
+
CloseOutlined: Ve,
|
|
140
|
+
CopyOutlined: xe,
|
|
141
|
+
DeleteOutlined: sr
|
|
142
|
+
}
|
|
143
|
+
}), Rr = /* @__PURE__ */ Ae({
|
|
144
|
+
...fr,
|
|
145
|
+
props: {
|
|
146
|
+
popAdvanceFilterHelperProps: {
|
|
147
|
+
type: e.PopAdvanceFilterHelper,
|
|
148
|
+
default: null,
|
|
149
|
+
require: !0
|
|
150
|
+
},
|
|
151
|
+
options: {
|
|
152
|
+
type: Object,
|
|
153
|
+
default: {},
|
|
154
|
+
require: !1
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
setup(ve) {
|
|
158
|
+
var Je, Ze, et, tt, rt, ot, lt, at;
|
|
159
|
+
const l = ve, ye = y(he());
|
|
160
|
+
window.$wujie && ((Je = window.$wujie.bus) == null || Je.$on("changeThemeEmit", (r) => {
|
|
161
|
+
ye.value = he();
|
|
162
|
+
}));
|
|
163
|
+
const Y = y(null), X = y(null), pe = y(null), le = y(null), $ = y(!0), p = y("filter"), h = l.popAdvanceFilterHelperProps.Options.devMode ? y(0) : y(35), S = y(l.popAdvanceFilterHelperProps.Options.devMode ? "SystemDefault" : ""), A = y(!1), N = y(!1), K = [];
|
|
164
|
+
let j = 35, R = "", Q = e.SysInfo.UserId, We = !1, b = "";
|
|
165
|
+
const M = (Ze = l.popAdvanceFilterHelperProps.FilterDataStructure) == null ? void 0 : Ze.clone(), x = (et = l.popAdvanceFilterHelperProps.FilterDataStructure) == null ? void 0 : et.clone(), v = (tt = l.popAdvanceFilterHelperProps.FilterDataStructure) == null ? void 0 : tt.clone(), P = (rt = l.popAdvanceFilterHelperProps.FilterDataStructure) == null ? void 0 : rt.clone(), ie = (ot = l.popAdvanceFilterHelperProps.FilterDataStructure) == null ? void 0 : ot.clone(), Me = {
|
|
166
|
+
resizable: !0,
|
|
167
|
+
sortable: !1,
|
|
168
|
+
filter: !1,
|
|
169
|
+
cellStyle: {
|
|
170
|
+
display: "flex",
|
|
171
|
+
alignItems: "center",
|
|
172
|
+
justifyContent: "center"
|
|
173
|
+
},
|
|
174
|
+
suppressMenu: !0
|
|
175
|
+
}, Mt = [{
|
|
176
|
+
CODE: "",
|
|
177
|
+
CODE_DESC_1_CONTENT: ""
|
|
178
|
+
}, {
|
|
179
|
+
CODE: "Equal",
|
|
180
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterEqual") || "等于"
|
|
181
|
+
}, {
|
|
182
|
+
CODE: "NotEqual",
|
|
183
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotEqual") || "不等于"
|
|
184
|
+
}, {
|
|
185
|
+
CODE: "GreaterThan",
|
|
186
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterGreaterThan") || "大于"
|
|
187
|
+
}, {
|
|
188
|
+
CODE: "GreaterThanOrEqual",
|
|
189
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterGreaterThanOrEqual") || "大于等于"
|
|
190
|
+
}, {
|
|
191
|
+
CODE: "LessThan",
|
|
192
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLessThan") || "小于"
|
|
193
|
+
}, {
|
|
194
|
+
CODE: "LessThanOrEqual",
|
|
195
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLessThanOrEqual") || "小于等于"
|
|
196
|
+
}, {
|
|
197
|
+
CODE: "IsNull",
|
|
198
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsNull") || "为空"
|
|
199
|
+
}, {
|
|
200
|
+
CODE: "IsNotNull",
|
|
201
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsNotNull") || "不为空"
|
|
202
|
+
}, {
|
|
203
|
+
CODE: "IsZero",
|
|
204
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsZero") || "为零"
|
|
205
|
+
}, {
|
|
206
|
+
CODE: "IsNotZero",
|
|
207
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsNotZero") || "不为零"
|
|
208
|
+
}, {
|
|
209
|
+
CODE: "IsTrue",
|
|
210
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsTrue") || "为真"
|
|
211
|
+
}, {
|
|
212
|
+
CODE: "IsFalse",
|
|
213
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsFalse") || "为假"
|
|
214
|
+
}, {
|
|
215
|
+
CODE: "BeginWith",
|
|
216
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterBeginWith") || "开始于"
|
|
217
|
+
}, {
|
|
218
|
+
CODE: "NotBeginWith",
|
|
219
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotBeginWith") || "不开始于"
|
|
220
|
+
}, {
|
|
221
|
+
CODE: "EndWith",
|
|
222
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterEndWith") || "结束于"
|
|
223
|
+
}, {
|
|
224
|
+
CODE: "NotEndWith",
|
|
225
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotEndWith") || "不结束于"
|
|
226
|
+
}, {
|
|
227
|
+
CODE: "Contains",
|
|
228
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterContains") || "包含"
|
|
229
|
+
}, {
|
|
230
|
+
CODE: "NotContains",
|
|
231
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotContains") || "不包含"
|
|
232
|
+
}, {
|
|
233
|
+
CODE: "In",
|
|
234
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIn") || "在"
|
|
235
|
+
}, {
|
|
236
|
+
CODE: "NotIn",
|
|
237
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotIn") || "不在"
|
|
238
|
+
}, {
|
|
239
|
+
CODE: "Today",
|
|
240
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterToday") || "今天"
|
|
241
|
+
}, {
|
|
242
|
+
CODE: "Yesterday",
|
|
243
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterYesterday") || "昨天"
|
|
244
|
+
}, {
|
|
245
|
+
CODE: "CurrentMonth",
|
|
246
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterCurrentMonth") || "本月"
|
|
247
|
+
}, {
|
|
248
|
+
CODE: "LastMonth",
|
|
249
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLastMonth") || "上月"
|
|
250
|
+
}, {
|
|
251
|
+
CODE: "CurrentYear",
|
|
252
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterCurrentYear") || "本年"
|
|
253
|
+
}, {
|
|
254
|
+
CODE: "LastYear",
|
|
255
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLastYear") || "去年"
|
|
256
|
+
}, {
|
|
257
|
+
CODE: "RecentWeek",
|
|
258
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentWeek") || "最近一周"
|
|
259
|
+
}, {
|
|
260
|
+
CODE: "RecentMonth",
|
|
261
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentMonth") || "最近一个月"
|
|
262
|
+
}, {
|
|
263
|
+
CODE: "RecentQuarter",
|
|
264
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentQuarter") || "最近三个月"
|
|
265
|
+
}, {
|
|
266
|
+
CODE: "RecentHalfYear",
|
|
267
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentHalfYear") || "最近半年"
|
|
268
|
+
}, {
|
|
269
|
+
CODE: "RecentYear",
|
|
270
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentYear") || "最近一年"
|
|
271
|
+
}], ze = {};
|
|
272
|
+
Mt.forEach((r) => {
|
|
273
|
+
ze[r.CODE] = r.CODE_DESC_1_CONTENT;
|
|
274
|
+
});
|
|
275
|
+
const Pe = {
|
|
276
|
+
colId: e.SysInfo.GridCheckColumnFieldName,
|
|
277
|
+
pinned: ue() ? "right" : "left",
|
|
278
|
+
rowDrag: !0,
|
|
279
|
+
checkboxSelection: !1,
|
|
280
|
+
headerName: "",
|
|
281
|
+
width: 60,
|
|
282
|
+
minWidth: 40,
|
|
283
|
+
suppressColumnsToolPanel: !0,
|
|
284
|
+
suppressSizeToFit: !0,
|
|
285
|
+
suppressMenu: !0,
|
|
286
|
+
resizable: !0,
|
|
287
|
+
sortable: !1,
|
|
288
|
+
suppressMovable: !0,
|
|
289
|
+
floatingFilter: !1,
|
|
290
|
+
lockPosition: ue() ? "right" : "left",
|
|
291
|
+
headerCheckboxSelection: !1,
|
|
292
|
+
headerCheckboxSelectionFilteredOnly: !1,
|
|
293
|
+
headerCheckboxSelectionCurrentPageOnly: !1,
|
|
294
|
+
valueFormatter: (r) => {
|
|
295
|
+
var t;
|
|
296
|
+
return r.node.rowPinned || r.node.footer || r.node.group ? "" : ((t = r.node) == null ? void 0 : t.childIndex) + 1;
|
|
297
|
+
}
|
|
298
|
+
}, qe = (r) => {
|
|
299
|
+
var t, o, a, i, s, C, c, E;
|
|
300
|
+
if ((t = r.data) != null && t.OPERATOR_NOTE && ["Today", "Yesterday", "CurrentMonth", "LastMonth", "CurrentYear", "LastYear", "RecentWeek", "RecentMonth", "RecentQuarter", "RecentHalfYear", "RecentYear"].includes(r.data.OPERATOR_NOTE))
|
|
301
|
+
return "";
|
|
302
|
+
if (r.value !== void 0 && r.value !== null && r.value !== "") {
|
|
303
|
+
const n = (a = (o = l.popAdvanceFilterHelperProps) == null ? void 0 : o.GridColumnMap[r.data.ITEM_CODE]) == null ? void 0 : a.colDef;
|
|
304
|
+
if (((i = n == null ? void 0 : n.cellEditor) == null ? void 0 : i.name) === "DatetimeEditor" && H(r.value).isValid()) {
|
|
305
|
+
const u = ((c = (C = (s = n.context) == null ? void 0 : s.columnConfig) == null ? void 0 : C.DATE_TIME_FORMAT) == null ? void 0 : c.trim()) || "YYYYMMDD";
|
|
306
|
+
return u.includes("HHmmss") ? H(r.value).format("YYYY-MM-DD HH:mm:ss") : u.includes("HHmm") ? H(r.value).format("YYYY-MM-DD HH:mm") : u.includes("HH") ? H(r.value).format("YYYY-MM-DD HH") : H(r.value).format("YYYY-MM-DD");
|
|
307
|
+
} else if (((E = n == null ? void 0 : n.cellEditor) == null ? void 0 : E.name) === "DropdownEditor" && n.refData) {
|
|
308
|
+
const u = r.value.trim().split(",");
|
|
309
|
+
let O = "";
|
|
310
|
+
return u.map((d) => {
|
|
311
|
+
const m = e.Core.toString(n.refData[d] || d);
|
|
312
|
+
O = O.length === 0 ? m : O + "," + m;
|
|
313
|
+
}), O;
|
|
314
|
+
} else
|
|
315
|
+
return r.value;
|
|
316
|
+
} else
|
|
317
|
+
return "";
|
|
318
|
+
}, Pt = [
|
|
319
|
+
// {
|
|
320
|
+
// colId: ER.SysInfo.GridCheckColumnFieldName,
|
|
321
|
+
// pinned: isRTL() ? 'right' : 'left',
|
|
322
|
+
// rowDrag: false,
|
|
323
|
+
// checkboxSelection: true,
|
|
324
|
+
// headerName: '',
|
|
325
|
+
// width: 30,
|
|
326
|
+
// suppressColumnsToolPanel: true,
|
|
327
|
+
// suppressSizeToFit: true,
|
|
328
|
+
// suppressMenu: true,
|
|
329
|
+
// resizable: false,
|
|
330
|
+
// sortable: false,
|
|
331
|
+
// suppressMovable: true,
|
|
332
|
+
// floatingFilter: false,
|
|
333
|
+
// lockPosition: isRTL()? 'right' : 'left'
|
|
334
|
+
// },
|
|
335
|
+
{
|
|
336
|
+
colId: "CDESC",
|
|
337
|
+
field: "CDESC",
|
|
338
|
+
headerName: e.Core.$t("ERX.TemplateName") || "方案名称",
|
|
339
|
+
width: 150,
|
|
340
|
+
sortable: !1,
|
|
341
|
+
editable: !1,
|
|
342
|
+
resizable: !0,
|
|
343
|
+
filter: "agTextColumnFilter",
|
|
344
|
+
suppressMenu: !0,
|
|
345
|
+
tooltipField: void 0,
|
|
346
|
+
cellStyle: {
|
|
347
|
+
display: "flex",
|
|
348
|
+
alignItems: "center",
|
|
349
|
+
justifyContent: "flex-start"
|
|
350
|
+
},
|
|
351
|
+
tooltipValueGetter: (r) => r.value,
|
|
352
|
+
cellRenderer: (r) => {
|
|
353
|
+
if (r.value) {
|
|
354
|
+
let t = "", o = "#1296db", a = "", i = "#FF951C", s = !0;
|
|
355
|
+
return r.node.data.DEFAULT_FLAG === "1" || r.node.data.DEFAULT_FLAG === !0 ? t = "default" : r.node.data.MATCH_FLAG === "0" ? (t = "public", o = "#00a88b", r.node.data.USER_ID !== e.SysInfo.UserId && (a = r.node.data.USER_ID, s = !0)) : (t = "private", o = "#FF951C"), e.Core.createVNodeElement(F(rr, {
|
|
356
|
+
params: {
|
|
357
|
+
...r,
|
|
358
|
+
fontIcon: t,
|
|
359
|
+
displayText: r.value,
|
|
360
|
+
justifyContent: "flex-start",
|
|
361
|
+
// textStyle: { fontWeight: 'bold' },
|
|
362
|
+
fontColor: o,
|
|
363
|
+
tagText: a,
|
|
364
|
+
tagColor: i,
|
|
365
|
+
tagAfterText: s
|
|
366
|
+
}
|
|
367
|
+
}));
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
], Lt = [
|
|
372
|
+
{
|
|
373
|
+
...Pe
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
colId: "LEFT_BRACKETS",
|
|
377
|
+
field: "LEFT_BRACKETS",
|
|
378
|
+
headerName: "(",
|
|
379
|
+
width: 30,
|
|
380
|
+
sortable: !1,
|
|
381
|
+
resizable: !0,
|
|
382
|
+
editable: (r) => !r.node.rowPinned,
|
|
383
|
+
cellEditorPopup: !0,
|
|
384
|
+
cellEditor: z,
|
|
385
|
+
cellEditorParams: {
|
|
386
|
+
readonly: !1,
|
|
387
|
+
multiple: !1,
|
|
388
|
+
dataSource: [{
|
|
389
|
+
CODE: "",
|
|
390
|
+
CODE_DESC_1_CONTENT: ""
|
|
391
|
+
}, {
|
|
392
|
+
CODE: "(",
|
|
393
|
+
CODE_DESC_1_CONTENT: "("
|
|
394
|
+
}, {
|
|
395
|
+
CODE: "((",
|
|
396
|
+
CODE_DESC_1_CONTENT: "(("
|
|
397
|
+
}, {
|
|
398
|
+
CODE: "(((",
|
|
399
|
+
CODE_DESC_1_CONTENT: "((("
|
|
400
|
+
}, {
|
|
401
|
+
CODE: "((((",
|
|
402
|
+
CODE_DESC_1_CONTENT: "(((("
|
|
403
|
+
}],
|
|
404
|
+
displayColumns: [{
|
|
405
|
+
colId: "CODE_DESC_1_CONTENT",
|
|
406
|
+
field: "CODE_DESC_1_CONTENT",
|
|
407
|
+
headerName: "描述",
|
|
408
|
+
width: 150,
|
|
409
|
+
sortable: !0
|
|
410
|
+
}]
|
|
411
|
+
},
|
|
412
|
+
suppressMenu: !0
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
colId: "ITEM_CODE",
|
|
416
|
+
field: "ITEM_CODE",
|
|
417
|
+
headerName: e.Core.$t("ERX.Field") || "字段",
|
|
418
|
+
headerClass: "er-grid-header-red-star",
|
|
419
|
+
width: 140,
|
|
420
|
+
sortable: !1,
|
|
421
|
+
resizable: !0,
|
|
422
|
+
editable: (r) => !r.node.rowPinned,
|
|
423
|
+
cellEditor: z,
|
|
424
|
+
cellEditorParams: {
|
|
425
|
+
readonly: !1,
|
|
426
|
+
multiple: !1,
|
|
427
|
+
dataSource: (lt = l.popAdvanceFilterHelperProps) == null ? void 0 : lt.GridColumnFieldList,
|
|
428
|
+
displayColumns: [{
|
|
429
|
+
colId: "CODE_DESC_1_CONTENT",
|
|
430
|
+
field: "CODE_DESC_1_CONTENT",
|
|
431
|
+
headerName: e.Core.$t("ERX.Field") || "字段",
|
|
432
|
+
width: 150,
|
|
433
|
+
sortable: !0
|
|
434
|
+
}]
|
|
435
|
+
},
|
|
436
|
+
cellStyle: {
|
|
437
|
+
display: "flex",
|
|
438
|
+
alignItems: "center",
|
|
439
|
+
justifyContent: "flex-start"
|
|
440
|
+
},
|
|
441
|
+
cellRenderer: (r) => {
|
|
442
|
+
var t, o, a, i;
|
|
443
|
+
return ((t = r.data.ITEM_CODE) == null ? void 0 : t.trim().length) > 0 ? ((i = (a = (o = l.popAdvanceFilterHelperProps) == null ? void 0 : o.GridColumnMap[r.data.ITEM_CODE]) == null ? void 0 : a.colDef) == null ? void 0 : i.headerName.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", "")) || r.data.ITEM_CODE : "";
|
|
444
|
+
},
|
|
445
|
+
suppressMenu: !0
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
colId: "OPERATOR_NOTE",
|
|
449
|
+
field: "OPERATOR_NOTE",
|
|
450
|
+
headerName: e.Core.$t("ERX.FilterOperator") || "比较",
|
|
451
|
+
headerClass: "er-grid-header-red-star",
|
|
452
|
+
width: 80,
|
|
453
|
+
sortable: !1,
|
|
454
|
+
resizable: !0,
|
|
455
|
+
editable: (r) => {
|
|
456
|
+
var t;
|
|
457
|
+
return ((t = r.data.ITEM_CODE) == null ? void 0 : t.trim().length) > 0 && !r.node.rowPinned;
|
|
458
|
+
},
|
|
459
|
+
cellEditorSelector: (r) => {
|
|
460
|
+
var a, i, s, C, c, E, n, u, O, d;
|
|
461
|
+
const t = (i = (a = l.popAdvanceFilterHelperProps) == null ? void 0 : a.GridColumnMap[r.data.ITEM_CODE]) == null ? void 0 : i.colDef, o = [];
|
|
462
|
+
return (s = t == null ? void 0 : t.cellEditor) != null && s.name ? (o.push({
|
|
463
|
+
CODE: "Equal",
|
|
464
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterEqual") || "等于"
|
|
465
|
+
}, {
|
|
466
|
+
CODE: "NotEqual",
|
|
467
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotEqual") || "不等于"
|
|
468
|
+
}, {
|
|
469
|
+
CODE: "GreaterThan",
|
|
470
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterGreaterThan") || "大于"
|
|
471
|
+
}, {
|
|
472
|
+
CODE: "GreaterThanOrEqual",
|
|
473
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterGreaterThanOrEqual") || "大于等于"
|
|
474
|
+
}, {
|
|
475
|
+
CODE: "LessThan",
|
|
476
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLessThan") || "小于"
|
|
477
|
+
}, {
|
|
478
|
+
CODE: "LessThanOrEqual",
|
|
479
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLessThanOrEqual") || "小于等于"
|
|
480
|
+
}), ((C = t == null ? void 0 : t.cellEditor) == null ? void 0 : C.name) === "NumberEditor" ? o.push({
|
|
481
|
+
CODE: "IsZero",
|
|
482
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsZero") || "为零"
|
|
483
|
+
}, {
|
|
484
|
+
CODE: "IsNotZero",
|
|
485
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsNotZero") || "不为零"
|
|
486
|
+
}) : o.push({
|
|
487
|
+
CODE: "IsNull",
|
|
488
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsNull") || "为空"
|
|
489
|
+
}, {
|
|
490
|
+
CODE: "IsNotNull",
|
|
491
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsNotNull") || "不为空"
|
|
492
|
+
})) : (t == null ? void 0 : t.cellEditor) === "agCheckboxCellEditor" && o.push({
|
|
493
|
+
CODE: "IsTrue",
|
|
494
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsTrue") || "为真"
|
|
495
|
+
}, {
|
|
496
|
+
CODE: "IsFalse",
|
|
497
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIsFalse") || "为假"
|
|
498
|
+
}), (((c = t == null ? void 0 : t.cellEditor) == null ? void 0 : c.name) === "DropdownEditor" || ((E = t == null ? void 0 : t.cellEditor) == null ? void 0 : E.name) === "TextEditor" || ((n = t == null ? void 0 : t.cellEditor) == null ? void 0 : n.name) === "LargeTextEditor") && o.push({
|
|
499
|
+
CODE: "In",
|
|
500
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterIn") || "在"
|
|
501
|
+
}, {
|
|
502
|
+
CODE: "NotIn",
|
|
503
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotIn") || "不在"
|
|
504
|
+
}), (((u = t == null ? void 0 : t.cellEditor) == null ? void 0 : u.name) === "TextEditor" || ((O = t == null ? void 0 : t.cellEditor) == null ? void 0 : O.name) === "LargeTextEditor") && o.push(
|
|
505
|
+
{
|
|
506
|
+
CODE: "BeginWith",
|
|
507
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterBeginWith") || "开始于"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
CODE: "NotBeginWith",
|
|
511
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotBeginWith") || "不开始于"
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
CODE: "EndWith",
|
|
515
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterEndWith") || "结束于"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
CODE: "NotEndWith",
|
|
519
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotEndWith") || "不结束于"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
CODE: "Contains",
|
|
523
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterContains") || "包含"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
CODE: "NotContains",
|
|
527
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterNotContains") || "不包含"
|
|
528
|
+
}
|
|
529
|
+
), ((d = t == null ? void 0 : t.cellEditor) == null ? void 0 : d.name) === "DatetimeEditor" && o.push({
|
|
530
|
+
CODE: "Today",
|
|
531
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterToday") || "今天"
|
|
532
|
+
}, {
|
|
533
|
+
CODE: "Yesterday",
|
|
534
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterYesterday") || "昨天"
|
|
535
|
+
}, {
|
|
536
|
+
CODE: "CurrentMonth",
|
|
537
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterCurrentMonth") || "本月"
|
|
538
|
+
}, {
|
|
539
|
+
CODE: "LastMonth",
|
|
540
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLastMonth") || "上月"
|
|
541
|
+
}, {
|
|
542
|
+
CODE: "CurrentYear",
|
|
543
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterCurrentYear") || "本年"
|
|
544
|
+
}, {
|
|
545
|
+
CODE: "LastYear",
|
|
546
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterLastYear") || "去年"
|
|
547
|
+
}, {
|
|
548
|
+
CODE: "RecentWeek",
|
|
549
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentWeek") || "最近一周"
|
|
550
|
+
}, {
|
|
551
|
+
CODE: "RecentMonth",
|
|
552
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentMonth") || "最近一个月"
|
|
553
|
+
}, {
|
|
554
|
+
CODE: "RecentQuarter",
|
|
555
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentQuarter") || "最近三个月"
|
|
556
|
+
}, {
|
|
557
|
+
CODE: "RecentHalfYear",
|
|
558
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentHalfYear") || "最近半年"
|
|
559
|
+
}, {
|
|
560
|
+
CODE: "RecentYear",
|
|
561
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterRecentYear") || "最近一年"
|
|
562
|
+
}), {
|
|
563
|
+
component: z,
|
|
564
|
+
params: {
|
|
565
|
+
readonly: !1,
|
|
566
|
+
multiple: !1,
|
|
567
|
+
dataSource: o,
|
|
568
|
+
displayColumns: [{
|
|
569
|
+
colId: "CODE_DESC_1_CONTENT",
|
|
570
|
+
field: "CODE_DESC_1_CONTENT",
|
|
571
|
+
headerName: e.Core.$t("ERX.FilterOperator") || "比较",
|
|
572
|
+
width: 180,
|
|
573
|
+
sortable: !0
|
|
574
|
+
}]
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
},
|
|
578
|
+
cellRenderer: (r) => ze[r.data.OPERATOR_NOTE] || "",
|
|
579
|
+
suppressMenu: !0
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
colId: "OP_VALUE",
|
|
583
|
+
field: "OP_VALUE",
|
|
584
|
+
headerName: e.Core.$t("ERX.FilterValue") || "过滤值",
|
|
585
|
+
width: 140,
|
|
586
|
+
sortable: !1,
|
|
587
|
+
resizable: !0,
|
|
588
|
+
editable: (r) => {
|
|
589
|
+
var t;
|
|
590
|
+
return !r.node.rowPinned && ((t = r.data.ITEM_CODE) == null ? void 0 : t.trim().length) > 0 && r.data.OPERATOR_NOTE && !["IsNull", "IsNotNull", "IsZero", "IsNotZero", "IsTrue", "IsFalse", "Today", "Yesterday", "CurrentMonth", "LastMonth", "RecentWeek", "RecentMonth", "RecentQuarter", "RecentHalfYear", "RecentYear", "CurrentYear", "LastYear"].includes(r.data.OPERATOR_NOTE);
|
|
591
|
+
},
|
|
592
|
+
valueFormatter: (r) => r.value,
|
|
593
|
+
valueParser: (r) => r.value,
|
|
594
|
+
cellEditorSelector: (r) => {
|
|
595
|
+
var o, a, i, s, C, c, E, n, u, O, d, m;
|
|
596
|
+
const t = (a = (o = l.popAdvanceFilterHelperProps) == null ? void 0 : o.GridColumnMap[r.data.ITEM_CODE]) == null ? void 0 : a.colDef;
|
|
597
|
+
if (((i = t == null ? void 0 : t.cellEditor) == null ? void 0 : i.name) === "DropdownEditor") {
|
|
598
|
+
const g = t == null ? void 0 : t.cellEditorParams.formHelper.DropDownBindSource[t == null ? void 0 : t.cellEditorParams.configId][t.colId];
|
|
599
|
+
return {
|
|
600
|
+
component: z,
|
|
601
|
+
params: {
|
|
602
|
+
readonly: !1,
|
|
603
|
+
multiple: r.data.OPERATOR_NOTE === "In" || r.data.OPERATOR_NOTE === "NotIn",
|
|
604
|
+
displayColumns: g.columns,
|
|
605
|
+
dataSource: g.dataSource,
|
|
606
|
+
displayFormat: g.displayFormat,
|
|
607
|
+
valueField: g.dataValueField,
|
|
608
|
+
textField: g.dataTextField
|
|
609
|
+
}
|
|
610
|
+
};
|
|
611
|
+
} else {
|
|
612
|
+
if (((s = t == null ? void 0 : t.cellEditor) == null ? void 0 : s.name) === "NumberEditor")
|
|
613
|
+
return {
|
|
614
|
+
component: ht,
|
|
615
|
+
params: {
|
|
616
|
+
zeroDisplayEmpty: !1,
|
|
617
|
+
readonly: !1
|
|
618
|
+
}
|
|
619
|
+
};
|
|
620
|
+
if (((C = t == null ? void 0 : t.cellEditor) == null ? void 0 : C.name) === "LargeTextEditor")
|
|
621
|
+
return {
|
|
622
|
+
component: Ge,
|
|
623
|
+
popup: !0,
|
|
624
|
+
params: {
|
|
625
|
+
readonly: !1,
|
|
626
|
+
rows: 10,
|
|
627
|
+
cols: 50
|
|
628
|
+
}
|
|
629
|
+
};
|
|
630
|
+
if (((c = t == null ? void 0 : t.cellEditor) == null ? void 0 : c.name) === "DatetimeEditor") {
|
|
631
|
+
const g = ((u = (n = (E = t.context) == null ? void 0 : E.columnConfig) == null ? void 0 : n.FORMAT_STRING) == null ? void 0 : u.trim()) || "YYYY-MM-DD HH:mm:ss", I = ((m = (d = (O = t.context) == null ? void 0 : O.columnConfig) == null ? void 0 : d.DATE_TIME_FORMAT) == null ? void 0 : m.trim()) || "YYYYMMDD";
|
|
632
|
+
return {
|
|
633
|
+
component: At,
|
|
634
|
+
params: {
|
|
635
|
+
readonly: !1,
|
|
636
|
+
type: "datetime",
|
|
637
|
+
// ['HH:mm:ss','HH:mm', 'HH'].includes(formatString) ? 'time' : 'datetime',
|
|
638
|
+
showTime: I.includes("HH"),
|
|
639
|
+
format: g.replaceAll("y", "Y").replaceAll("d", "D").replaceAll("/", "-"),
|
|
640
|
+
picker: ["YYYY-MM", "YYYY/MM"].includes(g.toUpperCase()) ? "month" : g.toUpperCase() === "YYYY" ? "year" : void 0
|
|
641
|
+
}
|
|
642
|
+
};
|
|
643
|
+
} else
|
|
644
|
+
return {
|
|
645
|
+
component: vt,
|
|
646
|
+
params: {
|
|
647
|
+
readonly: !1
|
|
648
|
+
}
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
},
|
|
652
|
+
cellRenderer: qe,
|
|
653
|
+
tooltipField: void 0,
|
|
654
|
+
tooltipValueGetter: qe,
|
|
655
|
+
filter: "agTextColumnFilter",
|
|
656
|
+
suppressMenu: !0
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
colId: "RIGHT_BRACKETS",
|
|
660
|
+
field: "RIGHT_BRACKETS",
|
|
661
|
+
headerName: ")",
|
|
662
|
+
width: 30,
|
|
663
|
+
sortable: !1,
|
|
664
|
+
resizable: !0,
|
|
665
|
+
editable: (r) => !r.node.rowPinned,
|
|
666
|
+
cellEditorPopup: !0,
|
|
667
|
+
cellEditor: z,
|
|
668
|
+
cellEditorParams: {
|
|
669
|
+
readonly: !1,
|
|
670
|
+
multiple: !1,
|
|
671
|
+
dataSource: [{
|
|
672
|
+
CODE: "",
|
|
673
|
+
CODE_DESC_1_CONTENT: ""
|
|
674
|
+
}, {
|
|
675
|
+
CODE: ")",
|
|
676
|
+
CODE_DESC_1_CONTENT: ")"
|
|
677
|
+
}, {
|
|
678
|
+
CODE: "))",
|
|
679
|
+
CODE_DESC_1_CONTENT: "))"
|
|
680
|
+
}, {
|
|
681
|
+
CODE: ")))",
|
|
682
|
+
CODE_DESC_1_CONTENT: ")))"
|
|
683
|
+
}, {
|
|
684
|
+
CODE: "))))",
|
|
685
|
+
CODE_DESC_1_CONTENT: "))))"
|
|
686
|
+
}],
|
|
687
|
+
displayColumns: [{
|
|
688
|
+
colId: "CODE_DESC_1_CONTENT",
|
|
689
|
+
field: "CODE_DESC_1_CONTENT",
|
|
690
|
+
headerName: "描述",
|
|
691
|
+
width: 150,
|
|
692
|
+
sortable: !0
|
|
693
|
+
}]
|
|
694
|
+
},
|
|
695
|
+
suppressMenu: !0
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
colId: "LOGIC",
|
|
699
|
+
field: "LOGIC",
|
|
700
|
+
headerName: e.Core.$t("ERX.FilterAndOrCaption") || "并且/或者",
|
|
701
|
+
width: 75,
|
|
702
|
+
sortable: !1,
|
|
703
|
+
resizable: !0,
|
|
704
|
+
editable: (r) => !r.node.rowPinned,
|
|
705
|
+
cellEditorPopup: !0,
|
|
706
|
+
cellEditor: z,
|
|
707
|
+
cellEditorParams: {
|
|
708
|
+
readonly: !1,
|
|
709
|
+
multiple: !1,
|
|
710
|
+
dataSource: [{
|
|
711
|
+
CODE: "AND",
|
|
712
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterAnd") || "并且"
|
|
713
|
+
}, {
|
|
714
|
+
CODE: "OR",
|
|
715
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.FilterOr") || "或者"
|
|
716
|
+
}],
|
|
717
|
+
displayColumns: [{
|
|
718
|
+
colId: "CODE_DESC_1_CONTENT",
|
|
719
|
+
field: "CODE_DESC_1_CONTENT",
|
|
720
|
+
headerName: e.Core.$t("ERX.FilterAndOrCaption") || "并且/或者",
|
|
721
|
+
width: 100,
|
|
722
|
+
sortable: !0
|
|
723
|
+
}]
|
|
724
|
+
},
|
|
725
|
+
cellRenderer: (r) => r.data.LOGIC === "AND" ? e.Core.$t("ERX.FilterAnd") || "并且" : r.data.LOGIC === "OR" ? e.Core.$t("ERX.FilterOr") || "或者" : "",
|
|
726
|
+
suppressMenu: !0
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
colId: "IS_VISIBLE",
|
|
730
|
+
field: "IS_VISIBLE",
|
|
731
|
+
headerName: e.Core.$t("ERX.Valid") || "生效",
|
|
732
|
+
width: 50,
|
|
733
|
+
sortable: !1,
|
|
734
|
+
resizable: !0,
|
|
735
|
+
editable: (r) => !r.node.rowPinned,
|
|
736
|
+
cellEditor: "agCheckboxCellEditor",
|
|
737
|
+
cellDataType: "boolean",
|
|
738
|
+
suppressMenu: !0
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
colId: "RESERVE1",
|
|
742
|
+
field: "RESERVE1",
|
|
743
|
+
headerName: e.Core.$t("ERX.Default") || "默认",
|
|
744
|
+
width: 150,
|
|
745
|
+
sortable: !1,
|
|
746
|
+
resizable: !0,
|
|
747
|
+
editable: (r) => !r.node.rowPinned,
|
|
748
|
+
suppressMenu: !0,
|
|
749
|
+
cellEditor: Ge,
|
|
750
|
+
cellEditorPopup: !0,
|
|
751
|
+
cellEditorParams: {
|
|
752
|
+
readonly: !1,
|
|
753
|
+
maxLength: 100,
|
|
754
|
+
rows: 5,
|
|
755
|
+
cols: 30
|
|
756
|
+
},
|
|
757
|
+
cellStyle: {
|
|
758
|
+
display: "flex",
|
|
759
|
+
alignItems: "center",
|
|
760
|
+
justifyContent: "flex-start"
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
], wt = [
|
|
764
|
+
{
|
|
765
|
+
...Pe
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
colId: "ITEM_CODE",
|
|
769
|
+
field: "ITEM_CODE",
|
|
770
|
+
headerName: e.Core.$t("ERX.Field") || "字段",
|
|
771
|
+
width: 250,
|
|
772
|
+
sortable: !1,
|
|
773
|
+
resizable: !0,
|
|
774
|
+
editable: !0,
|
|
775
|
+
cellEditor: z,
|
|
776
|
+
cellEditorParams: {
|
|
777
|
+
readonly: !1,
|
|
778
|
+
multiple: !1,
|
|
779
|
+
dataSource: (at = l.popAdvanceFilterHelperProps) == null ? void 0 : at.GridColumnFieldList,
|
|
780
|
+
displayColumns: [{
|
|
781
|
+
colId: "CODE_DESC_1_CONTENT",
|
|
782
|
+
field: "CODE_DESC_1_CONTENT",
|
|
783
|
+
headerName: e.Core.$t("ERX.Field") || "字段",
|
|
784
|
+
width: 150,
|
|
785
|
+
sortable: !0,
|
|
786
|
+
filter: "agTextColumnFilter"
|
|
787
|
+
}]
|
|
788
|
+
},
|
|
789
|
+
cellRenderer: (r) => {
|
|
790
|
+
var t, o, a, i;
|
|
791
|
+
return ((t = r.data.ITEM_CODE) == null ? void 0 : t.trim().length) > 0 ? ((i = (a = (o = l.popAdvanceFilterHelperProps) == null ? void 0 : o.GridColumnMap[r.data.ITEM_CODE]) == null ? void 0 : a.colDef) == null ? void 0 : i.headerName.replaceAll("<br>", "").replaceAll("</br>", "").replaceAll("<br/>", "")) || r.data.ITEM_CODE : "";
|
|
792
|
+
},
|
|
793
|
+
cellStyle: {
|
|
794
|
+
display: "flex",
|
|
795
|
+
alignItems: "center",
|
|
796
|
+
justifyContent: "flex-start"
|
|
797
|
+
},
|
|
798
|
+
suppressMenu: !0
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
colId: "GROUP_SORT_TYPE",
|
|
802
|
+
field: "GROUP_SORT_TYPE",
|
|
803
|
+
headerName: e.Core.$t("ERX.Sort") || "排序",
|
|
804
|
+
width: 80,
|
|
805
|
+
sortable: !1,
|
|
806
|
+
resizable: !0,
|
|
807
|
+
editable: !0,
|
|
808
|
+
cellEditor: z,
|
|
809
|
+
cellEditorParams: {
|
|
810
|
+
readonly: !1,
|
|
811
|
+
multiple: !1,
|
|
812
|
+
dataSource: [{
|
|
813
|
+
CODE: "1",
|
|
814
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.SortAsc") || "升序"
|
|
815
|
+
}, {
|
|
816
|
+
CODE: "2",
|
|
817
|
+
CODE_DESC_1_CONTENT: e.Core.$t("ERX.SortDesc") || "降序"
|
|
818
|
+
}],
|
|
819
|
+
displayColumns: [{
|
|
820
|
+
colId: "CODE_DESC_1_CONTENT",
|
|
821
|
+
field: "CODE_DESC_1_CONTENT",
|
|
822
|
+
headerName: e.Core.$t("ERX.Sort") || "排序",
|
|
823
|
+
width: 150,
|
|
824
|
+
sortable: !0
|
|
825
|
+
}]
|
|
826
|
+
},
|
|
827
|
+
cellRenderer: (r) => r.data.GROUP_SORT_TYPE === "1" ? e.Core.$t("ERX.SortAsc") || "升序" : r.data.GROUP_SORT_TYPE === "2" ? e.Core.$t("ERX.SortDesc") || "降序" : "",
|
|
828
|
+
suppressMenu: !0
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
colId: "IS_VISIBLE",
|
|
832
|
+
field: "IS_VISIBLE",
|
|
833
|
+
headerName: e.Core.$t("ERX.Valid") || "生效",
|
|
834
|
+
width: 80,
|
|
835
|
+
sortable: !1,
|
|
836
|
+
resizable: !0,
|
|
837
|
+
editable: !0,
|
|
838
|
+
cellEditor: "agCheckboxCellEditor",
|
|
839
|
+
cellDataType: "boolean",
|
|
840
|
+
suppressMenu: !0
|
|
841
|
+
}
|
|
842
|
+
], Yt = [
|
|
843
|
+
{
|
|
844
|
+
...Pe
|
|
845
|
+
},
|
|
846
|
+
{
|
|
847
|
+
colId: "COL_CAPTION",
|
|
848
|
+
field: "COL_CAPTION",
|
|
849
|
+
tooltipField: e.Core.$t("ERX.Field") || "字段",
|
|
850
|
+
headerName: e.Core.$t("ERX.Field") || "字段",
|
|
851
|
+
width: 260,
|
|
852
|
+
sortable: !1,
|
|
853
|
+
resizable: !0,
|
|
854
|
+
filter: "agTextColumnFilter",
|
|
855
|
+
floatingFilter: !0,
|
|
856
|
+
suppressMenu: !0,
|
|
857
|
+
cellStyle: {
|
|
858
|
+
display: "flex",
|
|
859
|
+
alignItems: "center",
|
|
860
|
+
justifyContent: "flex-start"
|
|
861
|
+
}
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
colId: "IS_VISIBLE",
|
|
865
|
+
field: "IS_VISIBLE",
|
|
866
|
+
headerName: e.Core.$t("ERX.Visible") || "显示",
|
|
867
|
+
width: 80,
|
|
868
|
+
sortable: !1,
|
|
869
|
+
resizable: !0,
|
|
870
|
+
editable: !0,
|
|
871
|
+
cellEditor: "agCheckboxCellEditor",
|
|
872
|
+
cellDataType: "boolean",
|
|
873
|
+
suppressMenu: !0
|
|
874
|
+
}
|
|
875
|
+
// {
|
|
876
|
+
// colId: 'IS_AGGREGATE',
|
|
877
|
+
// field: 'IS_AGGREGATE',
|
|
878
|
+
// headerName: ER.Core.$t('ERX.CaptionName') || '聚合',
|
|
879
|
+
// width: 60,
|
|
880
|
+
// sortable: true,
|
|
881
|
+
// resizable: true,
|
|
882
|
+
// editable: true,
|
|
883
|
+
// cellDataType: 'boolean',
|
|
884
|
+
// cellEditor: 'agCheckboxCellEditor',
|
|
885
|
+
// filter: 'agTextColumnFilter',
|
|
886
|
+
// suppressMenu: true
|
|
887
|
+
// }
|
|
888
|
+
], $t = (r) => {
|
|
889
|
+
x == null || x.setBindingInfo(null, "", "Grid", pe.value), r.api.setRowData([]);
|
|
890
|
+
}, bt = (r) => {
|
|
891
|
+
r.api.addEventListener("rowDragEnd", (t) => {
|
|
892
|
+
var a, i;
|
|
893
|
+
const o = [];
|
|
894
|
+
if (t.nodes.length > 0) {
|
|
895
|
+
for (let s = 0; s < t.nodes.length; s++)
|
|
896
|
+
o.includes(t.nodes[s].data.ITEM_CODE) || o.push(t.nodes[s].data.ITEM_CODE);
|
|
897
|
+
(i = (a = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : a.gridOptions) == null || i.columnApi.moveColumns(o, t.nodes[0].rowIndex + 1);
|
|
898
|
+
}
|
|
899
|
+
}), r.api.addEventListener("cellValueChanged", (t) => {
|
|
900
|
+
var o, a;
|
|
901
|
+
t.colDef.colId === "IS_VISIBLE" && ((a = (o = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : o.gridOptions) == null || a.columnApi.applyColumnState({
|
|
902
|
+
state: [{
|
|
903
|
+
colId: t.node.data.ITEM_CODE,
|
|
904
|
+
hide: t.node.data.IS_VISIBLE === "0" || t.node.data.IS_VISIBLE === !1
|
|
905
|
+
}]
|
|
906
|
+
})), t.data.dirty = !0, t.data.dirtyFields[t.colDef.field] = !0;
|
|
907
|
+
}), v == null || v.setBindingInfo(null, "", "Grid", le.value), r.api.setRowData([]);
|
|
908
|
+
}, Le = (r) => {
|
|
909
|
+
var o;
|
|
910
|
+
let t = 1;
|
|
911
|
+
r.api.forEachNodeAfterFilterAndSort((a) => {
|
|
912
|
+
a.data.set("C_SEQ_ID", String(t).padStart(3, "0")), t++;
|
|
913
|
+
}), (o = r.api) == null || o.refreshCells({ columns: [e.SysInfo.GridCheckColumnFieldName] });
|
|
914
|
+
}, Ut = (r) => {
|
|
915
|
+
var t;
|
|
916
|
+
(t = r.api) == null || t.redrawRows({ force: !0 });
|
|
917
|
+
}, Bt = (r) => {
|
|
918
|
+
P == null || P.setBindingInfo(null, "", "Grid", Y.value), r.api.addEventListener("selectionChanged", async (t) => {
|
|
919
|
+
const o = t.api.getSelectedRows();
|
|
920
|
+
if (o.length > 0) {
|
|
921
|
+
b = o[0].BILL_NO;
|
|
922
|
+
const a = o[0].USER_ID;
|
|
923
|
+
S.value = o[0].CDESC, A.value = o[0].DEFAULT_FLAG === "1", N.value = o[0].MATCH_FLAG === "0", $e(a, b);
|
|
924
|
+
} else
|
|
925
|
+
b = "";
|
|
926
|
+
}), r.api.sizeColumnsToFit(), r.api.setRowData([]);
|
|
927
|
+
}, Ht = (r) => {
|
|
928
|
+
M == null || M.setBindingInfo(null, "", "Grid", X.value), r.api.addEventListener("cellValueChanged", async (t) => {
|
|
929
|
+
(t.colDef.colId === "ITEM_CODE" || t.colDef.colId === "OPERATOR_NOTE" && ["Today", "Yesterday", "CurrentMonth", "LastMonth", "CurrentYear", "LastYear", "RecentWeek", "RecentMonth", "RecentQuarter", "RecentHalfYear", "RecentYear"].includes(t.node.data.OPERATOR_NOTE)) && t.node.setDataValue("OP_VALUE", null);
|
|
930
|
+
}), r.api.setRowData([]);
|
|
931
|
+
}, Gt = Be(() => {
|
|
932
|
+
const r = [];
|
|
933
|
+
return r.push({
|
|
934
|
+
statusPanel: "GridToolbar",
|
|
935
|
+
statusPanelParams: {
|
|
936
|
+
showText: !0,
|
|
937
|
+
defaultButtons: [],
|
|
938
|
+
customButtons: [
|
|
939
|
+
{
|
|
940
|
+
name: "deleteTemplate",
|
|
941
|
+
icon: e.Core.createErIconVNode("delete", { color: "#FF595A" }),
|
|
942
|
+
caption: e.Core.$t("ERX.DeleteTemplate") || "删除方案"
|
|
943
|
+
},
|
|
944
|
+
{
|
|
945
|
+
name: "shareTemplate",
|
|
946
|
+
icon: e.Core.createErIconVNode("share", { color: "#09BB07" }),
|
|
947
|
+
caption: e.Core.$t("ERX.ShareTemplate") || "分享方案"
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
defaultFunction: {
|
|
951
|
+
deleteTemplate: async (t) => {
|
|
952
|
+
const o = t.api.getSelectedRows();
|
|
953
|
+
if (o.length > 0) {
|
|
954
|
+
if (o[0].USER_ID !== e.SysInfo.UserId) {
|
|
955
|
+
e.Core.messageError(e.Core.$t("TemplateNotAllowOperateOtherPersonMessage") || "不允许操作其他人的方案");
|
|
956
|
+
return;
|
|
957
|
+
}
|
|
958
|
+
if (!await e.Core.messageConfirm(e.Core.$t("TemplateDeleteConfirmMessage") || "确定删除方案吗?"))
|
|
959
|
+
return;
|
|
960
|
+
const a = e.Core.buildEiInfo(o[0].toJSON(), "TSI00FORMVALUES_DELETE"), i = await e.Core.callService(e.SysInfo.saveDevConfigService, a);
|
|
961
|
+
i.getStatus() < 0 ? e.Core.messageError((e.Core.$t("TemplateDeleteFailedMessage") || "方案删除失败") + ":" + i.getMsg()) : (e.Core.messageInfo(e.Core.$t("TemplateDeleteSuccessMessage") || "方案删除成功"), Ye(e.SysInfo.UserId), l.popAdvanceFilterHelperProps.doEvent("templateChanged", o[0].toJSON()));
|
|
962
|
+
}
|
|
963
|
+
},
|
|
964
|
+
shareTemplate: async (t) => {
|
|
965
|
+
var a, i;
|
|
966
|
+
const o = t.api.getSelectedRows();
|
|
967
|
+
if (o.length > 0) {
|
|
968
|
+
if (o[0].USER_ID !== e.SysInfo.UserId) {
|
|
969
|
+
e.Core.messageError(e.Core.$t("TemplateNotAllowOperateOtherPersonMessage") || "不允许操作其他人的方案");
|
|
970
|
+
return;
|
|
971
|
+
}
|
|
972
|
+
const s = e.Core.buildEiInfo({
|
|
973
|
+
QUERY_TYPE: "system_user"
|
|
974
|
+
}), C = await e.Core.callService(e.SysInfo.queryDevConfigService, s);
|
|
975
|
+
if (C.getStatus() < 0) {
|
|
976
|
+
e.Core.messageError((e.Core.$t("TemplateShareFailedMessage") || "方案分享失败") + ":" + C.getMsg());
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
const c = ((i = (a = C.getBlockByIndex(0)) == null ? void 0 : a.getMappedRows()) == null ? void 0 : i[0]) || {};
|
|
980
|
+
if (!c || c.length === 0)
|
|
981
|
+
return;
|
|
982
|
+
const E = new e.PopRichEditor({
|
|
983
|
+
title: e.Core.$t("ERX.ShareTemplate") || "分享方案",
|
|
984
|
+
extension: "dropdown",
|
|
985
|
+
placeholder: e.Core.$t("ERX.SelectUserMessage") || "请选择用户",
|
|
986
|
+
dropdownDataSource: c,
|
|
987
|
+
dropdownColumns: [{ title: "ID", field: "ENAME" }, { title: "Name", field: "CNAME" }],
|
|
988
|
+
dropdownOptions: { valueField: "ENAME", textField: "CNAME", multiple: !0 },
|
|
989
|
+
width: 300,
|
|
990
|
+
height: 150
|
|
991
|
+
});
|
|
992
|
+
E.BordStyle = "Fixed", E.setEvent("ok", async () => {
|
|
993
|
+
var n;
|
|
994
|
+
if (((n = E.Content) == null ? void 0 : n.length) > 0) {
|
|
995
|
+
const u = E.Content;
|
|
996
|
+
let O = 0;
|
|
997
|
+
for (let d = 0; d < u.length; d++) {
|
|
998
|
+
if (u[d].trim().length === 0 || u[d].trim() === e.SysInfo.UserId)
|
|
999
|
+
continue;
|
|
1000
|
+
const m = b.trim().length > 0 ? b : H().format("YYYYMMDDHHmmss") + e.Core.guid().substring(0, 6).toUpperCase(), g = o[0].CDESC + "[" + e.SysInfo.UserId + "|" + e.SysInfo.UserName + "]", I = _e(m, g, u[d].trim());
|
|
1001
|
+
if (I === !1)
|
|
1002
|
+
return;
|
|
1003
|
+
const J = we(m, g, u[d].trim());
|
|
1004
|
+
if (J === !1)
|
|
1005
|
+
return;
|
|
1006
|
+
const Z = je(m, g, u[d].trim());
|
|
1007
|
+
if (Z === !1)
|
|
1008
|
+
return;
|
|
1009
|
+
const ee = [...I, ...J, ...Z];
|
|
1010
|
+
if (ee.length === 0) {
|
|
1011
|
+
e.Core.messageInfo(e.Core.$t("TemplateEmptyMessage") || "方案明细为空");
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
1014
|
+
const ae = e.Core.buildEiInfo(ee, "TSI00FORMVALUES_ADD"), te = await e.Core.callService(e.SysInfo.saveDevConfigService, ae);
|
|
1015
|
+
if (te.getStatus() < 0) {
|
|
1016
|
+
e.Core.messageError((e.Core.$t("TemplateShareFailedMessage") || "方案分享失败") + ":" + te.getMsg());
|
|
1017
|
+
break;
|
|
1018
|
+
}
|
|
1019
|
+
O++;
|
|
1020
|
+
}
|
|
1021
|
+
O > 0 && e.Core.messageInfo((e.Core.$t("TemplateShareSuccessMessage") || "方案分享成功") + "[" + O + "]");
|
|
1022
|
+
} else
|
|
1023
|
+
return e.Core.messageInfo(e.Core.$t("ERX.SelectUserMessage") || "请选择用户"), !1;
|
|
1024
|
+
}), E.show(null, "");
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
},
|
|
1029
|
+
key: "GridToolbar",
|
|
1030
|
+
align: "left"
|
|
1031
|
+
}), r.push({
|
|
1032
|
+
statusPanel: "agTotalAndFilteredRowCountComponent",
|
|
1033
|
+
align: "right"
|
|
1034
|
+
}), { statusPanels: r };
|
|
1035
|
+
}), Ke = Be(() => {
|
|
1036
|
+
const r = [
|
|
1037
|
+
{
|
|
1038
|
+
statusPanel: "GridToolbar",
|
|
1039
|
+
statusPanelParams: {
|
|
1040
|
+
showText: !0,
|
|
1041
|
+
defaultButtons: ["addrow", "insertrow", "copyrow", "delete"]
|
|
1042
|
+
},
|
|
1043
|
+
key: "GridToolbar",
|
|
1044
|
+
align: "left"
|
|
1045
|
+
}
|
|
1046
|
+
];
|
|
1047
|
+
return r.push({
|
|
1048
|
+
statusPanel: "agTotalAndFilteredRowCountComponent",
|
|
1049
|
+
align: "right"
|
|
1050
|
+
}), { statusPanels: r };
|
|
1051
|
+
}), Xt = Be(() => {
|
|
1052
|
+
const r = [
|
|
1053
|
+
{
|
|
1054
|
+
statusPanel: "GridToolbar",
|
|
1055
|
+
statusPanelParams: {
|
|
1056
|
+
showText: !0,
|
|
1057
|
+
defaultButtons: [],
|
|
1058
|
+
customButtons: [
|
|
1059
|
+
{
|
|
1060
|
+
name: "default",
|
|
1061
|
+
caption: e.Core.$t("ERX.Default") || "原始设置"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
name: "clear",
|
|
1065
|
+
caption: e.Core.$t("ERX.Clear") || "清空设置"
|
|
1066
|
+
}
|
|
1067
|
+
],
|
|
1068
|
+
defaultFunction: {
|
|
1069
|
+
default: (t) => {
|
|
1070
|
+
v == null || v.merge(K);
|
|
1071
|
+
},
|
|
1072
|
+
clear: (t) => {
|
|
1073
|
+
v == null || v.clear();
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
},
|
|
1077
|
+
key: "GridToolbar",
|
|
1078
|
+
align: "left"
|
|
1079
|
+
}
|
|
1080
|
+
];
|
|
1081
|
+
return r.push({
|
|
1082
|
+
statusPanel: "agTotalAndFilteredRowCountComponent",
|
|
1083
|
+
align: "right"
|
|
1084
|
+
}), { statusPanels: r };
|
|
1085
|
+
}), _e = (r, t, o) => {
|
|
1086
|
+
var u, O;
|
|
1087
|
+
const a = (O = (u = X.value) == null ? void 0 : u.gridOptions) == null ? void 0 : O.api, i = [], s = ["ITEM_CODE", "OPERATOR_NOTE"];
|
|
1088
|
+
let C = !1, c = 0, E = 0, n = 0;
|
|
1089
|
+
return a.forEachNodeAfterFilterAndSort((d) => {
|
|
1090
|
+
var m, g, I, J, Z, ee, ae, te, fe, Oe, Te, me, De, Se, ge, Ne, Re, Ie;
|
|
1091
|
+
if (d.data && !C) {
|
|
1092
|
+
for (const _ of s)
|
|
1093
|
+
if (((m = d.data[_]) == null ? void 0 : m.trim().length) === 0) {
|
|
1094
|
+
p.value = "filter", C = !0, W(() => {
|
|
1095
|
+
a.ensureNodeVisible(d, "top"), a.ensureColumnVisible(_, "auto"), a.startEditingCell({ rowIndex: d.rowIndex || 0, colKey: _ }), W(() => {
|
|
1096
|
+
a.getCellEditorInstances({
|
|
1097
|
+
columns: [_],
|
|
1098
|
+
// 列的field
|
|
1099
|
+
rowNodes: [d]
|
|
1100
|
+
// 行节点
|
|
1101
|
+
}).forEach((L) => {
|
|
1102
|
+
L.editorType === "DropdownEditor" || L.setBorder ? L.setBorder("2px solid red") : L.setInvalid && L.setInvalid();
|
|
1103
|
+
});
|
|
1104
|
+
});
|
|
1105
|
+
});
|
|
1106
|
+
break;
|
|
1107
|
+
}
|
|
1108
|
+
if (!C) {
|
|
1109
|
+
c === 0 && ((g = d.data.LOGIC) == null ? void 0 : g.trim()) === "OR" && ((I = d.data.LEFT_BRACKETS) == null ? void 0 : I.trim().length) === 0 && (p.value = "filter", C = !0, W(() => {
|
|
1110
|
+
a.ensureNodeVisible(d, "top"), a.ensureColumnVisible("LEFT_BRACKETS", "auto"), a.startEditingCell({ rowIndex: d.rowIndex || 0, colKey: "LEFT_BRACKETS" }), W(() => {
|
|
1111
|
+
a.getCellEditorInstances({
|
|
1112
|
+
columns: ["LEFT_BRACKETS"],
|
|
1113
|
+
rowNodes: [d]
|
|
1114
|
+
}).forEach((k) => {
|
|
1115
|
+
k.editorType === "DropdownEditor" || k.setBorder ? k.setBorder("2px solid red") : k.setInvalid && k.setInvalid();
|
|
1116
|
+
});
|
|
1117
|
+
});
|
|
1118
|
+
})), ((J = d.data.LEFT_BRACKETS) == null ? void 0 : J.trim()) === "(" ? E++ : ((Z = d.data.LEFT_BRACKETS) == null ? void 0 : Z.trim()) === "((" ? E += 2 : ((ee = d.data.LEFT_BRACKETS) == null ? void 0 : ee.trim()) === "(((" ? E += 3 : ((ae = d.data.LEFT_BRACKETS) == null ? void 0 : ae.trim()) === "((((" ? E += 4 : ((te = d.data.RIGHT_BRACKETS) == null ? void 0 : te.trim()) === ")" ? n++ : ((fe = d.data.RIGHT_BRACKETS) == null ? void 0 : fe.trim()) === "))" ? n += 2 : ((Oe = d.data.RIGHT_BRACKETS) == null ? void 0 : Oe.trim()) === ")))" ? n += 3 : ((Te = d.data.RIGHT_BRACKETS) == null ? void 0 : Te.trim()) === "))))" && (n += 4), d.data.C_SEQ_ID = String(d.rowIndex + 1).padStart(3, "0");
|
|
1119
|
+
const _ = d.data.toJSON(), U = (De = (me = l.popAdvanceFilterHelperProps) == null ? void 0 : me.GridColumnMap[_.ITEM_CODE]) == null ? void 0 : De.colDef, L = ((Ne = (ge = (Se = U == null ? void 0 : U.context) == null ? void 0 : Se.columnConfig) == null ? void 0 : ge.DATE_TIME_FORMAT) == null ? void 0 : Ne.trim()) || "YYYYMMDD", V = ((Ie = (Re = U == null ? void 0 : U.context) == null ? void 0 : Re.columnConfig) == null ? void 0 : Ie.MAX_LENGTH) || 0;
|
|
1120
|
+
["Today", "Yesterday", "CurrentMonth", "LastMonth", "CurrentYear", "LastYear", "RecentWeek", "RecentMonth", "RecentQuarter", "RecentHalfYear", "RecentYear"].includes(_.OPERATOR_NOTE) ? (_.OP_VALUE = "YYYYMMDDHHmmss", V > 0 && V < 14 && (_.OP_VALUE = _.OP_VALUE.substring(0, V))) : H.isDayjs(d.data.OP_VALUE) && (_.OP_VALUE = d.data.OP_VALUE.format("YYYYMMDDHHmmss"), V > 0 && V <= 8 ? _.OP_VALUE = _.OP_VALUE.substring(0, V) : L.toUpperCase() === "YYYYMMDD" ? _.OPERATOR_NOTE === "GreaterThanOrEqual" || _.OPERATOR_NOTE === "GreaterThan" ? _.OP_VALUE = _.OP_VALUE.substring(0, 8) + "000000" : (_.OPERATOR_NOTE === "LessThanOrEqual" || _.OPERATOR_NOTE === "LessThan") && (_.OP_VALUE = _.OP_VALUE.substring(0, 8) + "235959") : _.OP_VALUE = _.OP_VALUE.substring(0, L.length)), _.FORM_NAME = l.popAdvanceFilterHelperProps.FormName, _.FUNCTION_ID = l.popAdvanceFilterHelperProps.GridConfigId, _.COMPANY_CODE = e.SysInfo.CompanyCode, _.TYPE_CODE = "Advance-Filter", _.USER_ID = o || e.SysInfo.UserId, _.ROW_GUID = e.Core.guid(), _.CDESC = t, _.BILL_NO = r, _.DEFAULT_FLAG = A.value ? "1" : "0", _.MATCH_FLAG = N.value ? "0" : "1", o && o.trim().length > 0 && o !== e.SysInfo.UserId && (_.DEFAULT_FLAG = "0", _.MATCH_FLAG = "1"), i.push(_), c++;
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1123
|
+
}), !C && E !== n && (C = !0, e.Core.messageError(e.Core.$t("BracketNotMatch") || "括号不匹配")), C ? !1 : i;
|
|
1124
|
+
}, we = (r, t, o) => {
|
|
1125
|
+
var E, n;
|
|
1126
|
+
const a = (n = (E = pe.value) == null ? void 0 : E.gridOptions) == null ? void 0 : n.api, i = [], s = ["ITEM_CODE", "GROUP_SORT_TYPE"], C = {};
|
|
1127
|
+
let c = !1;
|
|
1128
|
+
return a.forEachNodeAfterFilterAndSort((u) => {
|
|
1129
|
+
var O;
|
|
1130
|
+
if (u.data && !c) {
|
|
1131
|
+
for (const m of s)
|
|
1132
|
+
if (((O = u.data[m]) == null ? void 0 : O.trim().length) === 0) {
|
|
1133
|
+
p.value = "sort", c = !0, W(() => {
|
|
1134
|
+
a.ensureNodeVisible(u, "top"), a.ensureColumnVisible(m, "auto"), a.startEditingCell({ rowIndex: u.rowIndex || 0, colKey: m }), W(() => {
|
|
1135
|
+
a.getCellEditorInstances({
|
|
1136
|
+
columns: [m],
|
|
1137
|
+
// 列的field
|
|
1138
|
+
rowNodes: [u]
|
|
1139
|
+
// 行节点
|
|
1140
|
+
}).forEach((I) => {
|
|
1141
|
+
I.editorType === "DropdownEditor" || I.setBorder ? I.setBorder("2px solid red") : I.setInvalid && I.setInvalid();
|
|
1142
|
+
});
|
|
1143
|
+
});
|
|
1144
|
+
});
|
|
1145
|
+
break;
|
|
1146
|
+
}
|
|
1147
|
+
!c && C[u.data.ITEM_CODE] && (p.value = "sort", c = !0, e.Core.messageError(e.Core.$t("FieldDuplicated") || "字段重复")), c || (C[u.data.ITEM_CODE] = u.data.GROUP_SORT_TYPE, u.data.C_SEQ_ID = String(u.rowIndex + 1).padStart(3, "0"));
|
|
1148
|
+
const d = u.data.toJSON();
|
|
1149
|
+
d.FORM_NAME = l.popAdvanceFilterHelperProps.FormName, d.FUNCTION_ID = l.popAdvanceFilterHelperProps.GridConfigId, d.COMPANY_CODE = e.SysInfo.CompanyCode, d.TYPE_CODE = "Advance-Sort", d.USER_ID = o || e.SysInfo.UserId, d.ROW_GUID = e.Core.guid(), d.CDESC = t, d.BILL_NO = r, d.DEFAULT_FLAG = A.value ? "1" : "0", d.MATCH_FLAG = N.value ? "0" : "1", o && o.trim().length > 0 && o !== e.SysInfo.UserId && (d.DEFAULT_FLAG = "0", d.MATCH_FLAG = "1"), i.push(d);
|
|
1150
|
+
}
|
|
1151
|
+
}), c ? !1 : i;
|
|
1152
|
+
}, je = (r, t, o) => {
|
|
1153
|
+
var s, C;
|
|
1154
|
+
const a = (C = (s = le.value) == null ? void 0 : s.gridOptions) == null ? void 0 : C.api, i = [];
|
|
1155
|
+
return a.forEachNodeAfterFilterAndSort((c) => {
|
|
1156
|
+
const E = c.data.toJSON();
|
|
1157
|
+
E.C_SEQ_ID = String(c.rowIndex + 1).padStart(3, "0"), E.FORM_NAME = l.popAdvanceFilterHelperProps.FormName, E.FUNCTION_ID = l.popAdvanceFilterHelperProps.GridConfigId, E.COMPANY_CODE = e.SysInfo.CompanyCode, E.TYPE_CODE = "Advance-Column", E.USER_ID = o || e.SysInfo.UserId, E.ROW_GUID = e.Core.guid(), E.CDESC = t, E.BILL_NO = r, E.DEFAULT_FLAG = A.value ? "1" : "0", E.MATCH_FLAG = N.value ? "0" : "1", o && o.trim().length > 0 && o !== e.SysInfo.UserId && (E.DEFAULT_FLAG = "0", E.MATCH_FLAG = "1"), i.push(E);
|
|
1158
|
+
}), i;
|
|
1159
|
+
}, xt = async () => {
|
|
1160
|
+
if (R.trim().length > 0 && Q !== e.SysInfo.UserId) {
|
|
1161
|
+
e.Core.messageError(e.Core.$t("TemplateNotAllowOperateOtherPersonMessage") || "不允许操作其他人的方案");
|
|
1162
|
+
return;
|
|
1163
|
+
}
|
|
1164
|
+
const r = R.trim().length > 0 ? "modify" : "add", t = R.trim().length > 0 ? R : H().format("YYYYMMDDHHmmss") + e.Core.guid().substring(0, 6).toUpperCase();
|
|
1165
|
+
let o = "";
|
|
1166
|
+
if (r == "add" && S.value.trim().length === 0)
|
|
1167
|
+
o = t.substring(0, 8);
|
|
1168
|
+
else if (S.value.trim().length === 0) {
|
|
1169
|
+
e.Core.messageInfo(e.Core.$t("TemplateNameEmptyMessage") || "请输入方案名称");
|
|
1170
|
+
return;
|
|
1171
|
+
} else
|
|
1172
|
+
o = S.value.trim();
|
|
1173
|
+
const a = _e(t, o);
|
|
1174
|
+
if (a === !1)
|
|
1175
|
+
return;
|
|
1176
|
+
const i = we(t, o);
|
|
1177
|
+
if (i === !1)
|
|
1178
|
+
return;
|
|
1179
|
+
const s = je(t, o);
|
|
1180
|
+
if (s === !1)
|
|
1181
|
+
return;
|
|
1182
|
+
const C = [...a, ...i, ...s];
|
|
1183
|
+
if (C.length === 0) {
|
|
1184
|
+
e.Core.messageInfo(e.Core.$t("TemplateEmptyMessage") || "方案明细为空");
|
|
1185
|
+
return;
|
|
1186
|
+
}
|
|
1187
|
+
if (r !== "add" && C[0].USER_ID !== e.SysInfo.UserId) {
|
|
1188
|
+
e.Core.messageError(e.Core.$t("TemplateNotAllowOperateOtherPersonMessage") || "不允许操作其他人的方案");
|
|
1189
|
+
return;
|
|
1190
|
+
}
|
|
1191
|
+
const c = e.Core.buildEiInfo(C, r == "add" ? "TSI00FORMVALUES_ADD" : "TSI00FORMVALUES_MODIFY"), E = await e.Core.callService(e.SysInfo.saveDevConfigService, c);
|
|
1192
|
+
E.getStatus() < 0 ? e.Core.messageError((e.Core.$t("TemplateSaveFailedMessage") || "方案保存失败") + ":" + E.getMsg()) : (R = t, e.Core.messageInfo(e.Core.$t("TemplateSaveSuccessMessage") || "方案保存成功"), Ye(e.SysInfo.UserId), l.popAdvanceFilterHelperProps.doEvent("templateChanged", C));
|
|
1193
|
+
}, Vt = () => {
|
|
1194
|
+
var t, o, a, i;
|
|
1195
|
+
const r = [];
|
|
1196
|
+
(o = (t = le.value) == null ? void 0 : t.gridOptions) == null || o.api.forEachNodeAfterFilterAndSort((s) => {
|
|
1197
|
+
var c, E, n, u, O;
|
|
1198
|
+
const C = (E = (c = l.popAdvanceFilterHelperProps) == null ? void 0 : c.GridColumnMap[s.data.ITEM_CODE]) == null ? void 0 : E.colDef;
|
|
1199
|
+
C && !C.suppressColumnsToolPanel && ((O = (u = (n = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : n.gridOptions) == null ? void 0 : u.columnApi) == null || O.moveColumn(s.data.ITEM_CODE, s.rowIndex + 1), r.push({
|
|
1200
|
+
colId: s.data.ITEM_CODE,
|
|
1201
|
+
hide: s.data.IS_VISIBLE === "0" || s.data.IS_VISIBLE === !1
|
|
1202
|
+
}));
|
|
1203
|
+
}), r.length > 0 && ((i = (a = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : a.gridOptions) == null || i.columnApi.applyColumnState({
|
|
1204
|
+
state: r
|
|
1205
|
+
}));
|
|
1206
|
+
}, Ye = async (r) => {
|
|
1207
|
+
var a;
|
|
1208
|
+
const t = e.Core.buildEiInfo({
|
|
1209
|
+
QUERY_TYPE: "tsi00formvalues_list",
|
|
1210
|
+
FORM_NAME: l.popAdvanceFilterHelperProps.FormName,
|
|
1211
|
+
FUNCTION_ID: l.popAdvanceFilterHelperProps.GridConfigId,
|
|
1212
|
+
COMPANY_CODE: e.SysInfo.CompanyCode,
|
|
1213
|
+
USER_ID: r
|
|
1214
|
+
}), o = await e.Core.callService(e.SysInfo.queryDevConfigService, t);
|
|
1215
|
+
if (o.getStatus() < 0)
|
|
1216
|
+
e.Core.messageError(o.getMsg());
|
|
1217
|
+
else if (P == null || P.merge(((a = o.getBlockByIndex(0)) == null ? void 0 : a.getMappedRows()) || []), P != null && P.rowCount) {
|
|
1218
|
+
let i = !1, s;
|
|
1219
|
+
W(() => {
|
|
1220
|
+
var C, c, E, n;
|
|
1221
|
+
(c = (C = Y.value.gridOptions) == null ? void 0 : C.api) == null || c.clearFocusedCell(), (n = (E = Y.value.gridOptions) == null ? void 0 : E.api) == null || n.forEachNodeAfterFilterAndSort((u) => {
|
|
1222
|
+
s || (s = u);
|
|
1223
|
+
const O = u.data.toJSON();
|
|
1224
|
+
i || (R.trim().length > 0 ? O.BILL_NO === R && (u.setSelected(!0), i = !0) : O.DEFAULT_FLAG === "1" && (u.setSelected(!0), i = !0));
|
|
1225
|
+
}), s && !i && s.setSelected(!0);
|
|
1226
|
+
});
|
|
1227
|
+
}
|
|
1228
|
+
}, $e = async (r, t) => {
|
|
1229
|
+
var i, s, C, c, E;
|
|
1230
|
+
let o = new Rt();
|
|
1231
|
+
const a = e.Core.buildEiInfo({
|
|
1232
|
+
QUERY_TYPE: "tsi00formvalues_detail",
|
|
1233
|
+
FORM_NAME: l.popAdvanceFilterHelperProps.FormName,
|
|
1234
|
+
FUNCTION_ID: l.popAdvanceFilterHelperProps.GridConfigId,
|
|
1235
|
+
COMPANY_CODE: e.SysInfo.CompanyCode,
|
|
1236
|
+
USER_ID: r,
|
|
1237
|
+
BILL_NO: t
|
|
1238
|
+
});
|
|
1239
|
+
if (o = await e.Core.callService(e.SysInfo.queryDevConfigService, a), o.getStatus() < 0)
|
|
1240
|
+
e.Core.messageError(o.getMsg());
|
|
1241
|
+
else {
|
|
1242
|
+
t.trim().length > 0 && t.trim() !== "~Default~" && (R = t, Q = r), M == null || M.merge(o.getBlock("TSI00FORMVALUES_FILTER").getMappedRows() || []), x == null || x.merge(o.getBlock("TSI00FORMVALUES_SORT").getMappedRows() || []), v == null || v.merge(o.getBlock("TSI00FORMVALUES_COLUMN").getMappedRows() || []), We = ((s = (i = o.getBlock("TSI00FORMVALUES_COLUMN")) == null ? void 0 : i.getMappedRows()) == null ? void 0 : s.length) > 0;
|
|
1243
|
+
const n = ((C = o.getBlock("TSI00FORMVALUES_DEFAULT")) == null ? void 0 : C.getMappedRows()) || [];
|
|
1244
|
+
if (n.length > 0) {
|
|
1245
|
+
for (const u of n) {
|
|
1246
|
+
const O = Qe(u);
|
|
1247
|
+
O && (u.OP_VALUE = O);
|
|
1248
|
+
}
|
|
1249
|
+
ie == null || ie.merge(n), (E = (c = X.value.gridOptions) == null ? void 0 : c.api) == null || E.setPinnedTopRowData(ie == null ? void 0 : ie.getRows("all"));
|
|
1250
|
+
}
|
|
1251
|
+
W(() => {
|
|
1252
|
+
var u, O;
|
|
1253
|
+
(O = (u = X.value.gridOptions) == null ? void 0 : u.api) == null || O.forEachNodeAfterFilterAndSort((d) => {
|
|
1254
|
+
const m = Qe(d.data);
|
|
1255
|
+
m && d.setDataValue("OP_VALUE", m);
|
|
1256
|
+
});
|
|
1257
|
+
});
|
|
1258
|
+
}
|
|
1259
|
+
}, Qe = (r) => {
|
|
1260
|
+
var o, a, i, s;
|
|
1261
|
+
let t;
|
|
1262
|
+
if (r.RESERVE1) {
|
|
1263
|
+
const C = (a = (o = l.popAdvanceFilterHelperProps) == null ? void 0 : o.GridColumnMap[r.ITEM_CODE]) == null ? void 0 : a.colDef;
|
|
1264
|
+
if (((i = C == null ? void 0 : C.cellEditor) == null ? void 0 : i.name) === "DatetimeEditor") {
|
|
1265
|
+
const c = e.Core.getDateTimeByString(r.RESERVE1);
|
|
1266
|
+
c && H.isDayjs(c) && (t = c.format("YYYYMMDDHHmmss"));
|
|
1267
|
+
} else ((s = C == null ? void 0 : C.cellEditor) == null ? void 0 : s.name) !== "NumberEditor" && r.RESERVE1.startsWith("{") && r.RESERVE1.endsWith("}") && (t = e.Core.getSystemFormatString(r.RESERVE1));
|
|
1268
|
+
}
|
|
1269
|
+
return t;
|
|
1270
|
+
}, kt = () => {
|
|
1271
|
+
R = "", Q = e.SysInfo.UserId, M == null || M.clear(), x == null || x.clear(), v == null || v.clear();
|
|
1272
|
+
}, Wt = () => {
|
|
1273
|
+
R.trim().length > 0 && (R = "", Q = e.SysInfo.UserId, S.value = S.value + "_1");
|
|
1274
|
+
}, zt = async (r) => {
|
|
1275
|
+
if (l.popAdvanceFilterHelperProps.Options.devMode) {
|
|
1276
|
+
if (M != null && M.hasChanges()) {
|
|
1277
|
+
const t = _e("SystemDefault", "SystemDefault", "SystemDefault");
|
|
1278
|
+
if (t === !1)
|
|
1279
|
+
return;
|
|
1280
|
+
if (t.length > 0) {
|
|
1281
|
+
const o = e.Core.buildEiInfo(t, "TSI00FORMVALUES_MODIFY"), a = await e.Core.callService(e.SysInfo.saveDevConfigService, o);
|
|
1282
|
+
a.getStatus() < 0 && e.Core.messageError(a.getMsg());
|
|
1283
|
+
} else {
|
|
1284
|
+
const o = e.Core.buildEiInfo({
|
|
1285
|
+
FORM_NAME: l.popAdvanceFilterHelperProps.FormName,
|
|
1286
|
+
FUNCTION_ID: l.popAdvanceFilterHelperProps.GridConfigId,
|
|
1287
|
+
COMPANY_CODE: e.SysInfo.CompanyCode,
|
|
1288
|
+
USER_ID: "SystemDefault",
|
|
1289
|
+
BILL_NO: "SystemDefault"
|
|
1290
|
+
}, "TSI00FORMVALUES_DELETE"), a = await e.Core.callService(e.SysInfo.saveDevConfigService, o);
|
|
1291
|
+
a.getStatus() < 0 ? e.Core.messageError((e.Core.$t("TemplateDeleteFailedMessage") || "方案删除失败") + ":" + a.getMsg()) : e.Core.messageInfo(e.Core.$t("TemplateDeleteSuccessMessage") || "方案删除成功");
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
} else
|
|
1295
|
+
xt();
|
|
1296
|
+
}, qt = async (r) => {
|
|
1297
|
+
var t, o, a;
|
|
1298
|
+
b !== l.popAdvanceFilterHelperProps.Options.billNo && ((t = l.popAdvanceFilterHelperProps.Options.billNo) == null ? void 0 : t.trim().length) > 0 && (b = l.popAdvanceFilterHelperProps.Options.billNo, (a = (o = Y.value.gridOptions) == null ? void 0 : o.api) == null || a.forEachNodeAfterFilterAndSort((i) => {
|
|
1299
|
+
i.data.toJSON().BILL_NO === b && i.setSelected(!0);
|
|
1300
|
+
}));
|
|
1301
|
+
}, Kt = async () => {
|
|
1302
|
+
var n, u, O, d, m, g, I, J, Z, ee, ae, te, fe, Oe, Te, me, De, Se, ge, Ne, Re, Ie, _, U, L, V, be, k, it, nt, st, dt, Et, Ct, ut, ct, pt, _t, ft, Ot, Tt;
|
|
1303
|
+
let r = [], t = new It("ADVANCE_FILTER"), o = new It("ADVANCE_SORT");
|
|
1304
|
+
if ((n = l.popAdvanceFilterHelperProps.Options) != null && n.devMode) {
|
|
1305
|
+
const B = _e(R, S.value);
|
|
1306
|
+
B && B.length > 0 && (t = e.Core.buildEiBlock(B, "ADVANCE_FILTER"));
|
|
1307
|
+
} else {
|
|
1308
|
+
const B = [], mt = ((O = (u = X.value.gridOptions) == null ? void 0 : u.api) == null ? void 0 : O.getPinnedTopRowCount()) || 0;
|
|
1309
|
+
if (mt > 0)
|
|
1310
|
+
for (let ne = 0; ne < mt; ne++) {
|
|
1311
|
+
const Ue = (m = (d = X.value.gridOptions) == null ? void 0 : d.api) == null ? void 0 : m.getPinnedTopRow(ne), T = Ue.data.toJSON(), se = (I = (g = l.popAdvanceFilterHelperProps) == null ? void 0 : g.GridColumnMap[T.ITEM_CODE]) == null ? void 0 : I.colDef, St = ((ee = (Z = (J = se == null ? void 0 : se.context) == null ? void 0 : J.columnConfig) == null ? void 0 : Z.DATE_TIME_FORMAT) == null ? void 0 : ee.trim()) || "YYYYMMDD", de = ((te = (ae = se == null ? void 0 : se.context) == null ? void 0 : ae.columnConfig) == null ? void 0 : te.MAX_LENGTH) || 0;
|
|
1312
|
+
["Today", "Yesterday", "CurrentMonth", "LastMonth", "CurrentYear", "LastYear", "RecentWeek", "RecentMonth", "RecentQuarter", "RecentHalfYear", "RecentYear"].includes(T.OPERATOR_NOTE) ? (T.OP_VALUE = "YYYYMMDDHHmmss", de > 0 && de < 14 && (T.OP_VALUE = T.OP_VALUE.substring(0, de))) : H.isDayjs(Ue.data.OP_VALUE) && (T.OP_VALUE = Ue.data.OP_VALUE.format("YYYYMMDDHHmmss"), de > 0 && de <= 8 ? T.OP_VALUE = T.OP_VALUE.substring(0, de) : St.toUpperCase() === "YYYYMMDD" ? T.OPERATOR_NOTE === "GreaterThanOrEqual" || T.OPERATOR_NOTE === "GreaterThan" ? T.OP_VALUE = T.OP_VALUE.substring(0, 8) + "000000" : (T.OPERATOR_NOTE === "LessThanOrEqual" || T.OPERATOR_NOTE === "LessThan") && (T.OP_VALUE = T.OP_VALUE.substring(0, 8) + "235959") : T.OP_VALUE = T.OP_VALUE.substring(0, St.length)), T.FORM_NAME = l.popAdvanceFilterHelperProps.FormName, T.FUNCTION_ID = l.popAdvanceFilterHelperProps.GridConfigId, T.COMPANY_CODE = e.SysInfo.CompanyCode, T.TYPE_CODE = "Advance-Filter", T.USER_ID = e.SysInfo.UserId, T.ROW_GUID = e.Core.guid(), T.BILL_NO = R, T.CDESC = S.value, T.DEFAULT_FLAG = A.value ? "1" : "0", T.MATCH_FLAG = N.value ? "0" : "1", B.push(T);
|
|
1313
|
+
}
|
|
1314
|
+
const Dt = _e(R, S.value);
|
|
1315
|
+
if (Dt === !1)
|
|
1316
|
+
return;
|
|
1317
|
+
const Jt = (fe = we(R, S.value)) == null ? void 0 : fe.map((ne) => ({ SORT_FIELD: ne.ITEM_CODE, SORT_TYPE: ne.GROUP_SORT_TYPE === "2" ? "desc" : "asc" }));
|
|
1318
|
+
r = [...B, ...Dt], t = e.Core.buildEiBlock(r, "ADVANCE_FILTER"), o = e.Core.buildEiBlock(Jt, "ADVANCE_SORT");
|
|
1319
|
+
}
|
|
1320
|
+
if (((Oe = t.getMappedRows()) == null ? void 0 : Oe.length) === 0) {
|
|
1321
|
+
e.Core.messageError(e.Core.$t("FilterEmptyMessage") || "高级过滤条件为空");
|
|
1322
|
+
return;
|
|
1323
|
+
}
|
|
1324
|
+
const a = (me = (Te = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : Te.gridOptions) == null ? void 0 : me.context, i = a.bindTableName, s = ((De = a == null ? void 0 : a.options) == null ? void 0 : De.advanceFilterService) || ((ge = (Se = a == null ? void 0 : a.options) == null ? void 0 : Se.advanceFilter) == null ? void 0 : ge.service) || "", C = ((Ne = a == null ? void 0 : a.options) == null ? void 0 : Ne.advanceFilterSource) || ((Ie = (Re = a == null ? void 0 : a.options) == null ? void 0 : Re.advanceFilter) == null ? void 0 : Ie.source) || ((_ = a == null ? void 0 : a.viewConfig) == null ? void 0 : _.SVC_NAME) || "";
|
|
1325
|
+
if ((s == null ? void 0 : s.trim().length) === 0) {
|
|
1326
|
+
e.Core.messageError(e.Core.$t("NoServiceConfig") || "未配置服务");
|
|
1327
|
+
return;
|
|
1328
|
+
}
|
|
1329
|
+
const c = new Rt();
|
|
1330
|
+
C.trim().length > 0 ? c.addBlock(e.Core.buildEiBlock({
|
|
1331
|
+
FUNCTION_ID: C,
|
|
1332
|
+
COMPANY_CODE: e.SysInfo.CompanyCode
|
|
1333
|
+
}, "DATA_SOURCE")) : c.addBlock(e.Core.buildEiBlock({
|
|
1334
|
+
QUERY_TYPE: i,
|
|
1335
|
+
TABLE_NAME: i,
|
|
1336
|
+
ADVANCE_FILTER: "1",
|
|
1337
|
+
...((U = l.options) == null ? void 0 : U.advanceFilterParams) || ((V = (L = l.options) == null ? void 0 : L.advanceFilter) == null ? void 0 : V.params)
|
|
1338
|
+
})), c.addBlock(t), ((be = o.getMappedRows()) == null ? void 0 : be.length) > 0 && c.addBlock(o), We && Vt();
|
|
1339
|
+
const E = await e.Core.callService(e.SysInfo.saveDevConfigService, c);
|
|
1340
|
+
if (E.getStatus() < 0)
|
|
1341
|
+
e.Core.messageError(E.getMsg());
|
|
1342
|
+
else {
|
|
1343
|
+
const B = (nt = (it = (k = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : k.gridOptions) == null ? void 0 : it.context) == null ? void 0 : nt.bindingSource;
|
|
1344
|
+
B ? (B.merge(((st = E.getBlock(i)) == null ? void 0 : st.getMappedRows()) || ((dt = E.getBlockByIndex(0)) == null ? void 0 : dt.getMappedRows()) || []), e.Core.messageInfo(e.Core.$t("ERX.QueryResultWithRecords", [B.rowCount])), (((ct = (ut = (Ct = (Et = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : Et.gridOptions) == null ? void 0 : Ct.context) == null ? void 0 : ut.options) == null ? void 0 : ct.advanceFilterAutoClose) === !0 || ((Tt = (Ot = (ft = (_t = (pt = l.popAdvanceFilterHelperProps.ErGrid) == null ? void 0 : pt.gridOptions) == null ? void 0 : _t.context) == null ? void 0 : ft.options) == null ? void 0 : Ot.advanceFilter) == null ? void 0 : Tt.autoClose) === !0) && l.popAdvanceFilterHelperProps.close(), l.popAdvanceFilterHelperProps.doEvent("afterQuery", { templateBillNo: R, filterInfo: c })) : console.warn("BindingSource of grid is undefined");
|
|
1345
|
+
}
|
|
1346
|
+
}, jt = () => {
|
|
1347
|
+
l.popAdvanceFilterHelperProps.close();
|
|
1348
|
+
}, Qt = () => {
|
|
1349
|
+
};
|
|
1350
|
+
return Ft(async () => {
|
|
1351
|
+
if (l.popAdvanceFilterHelperProps.GridColumnDisplayList.forEach((r) => {
|
|
1352
|
+
K.push({
|
|
1353
|
+
ITEM_CODE: r.ITEM_CODE,
|
|
1354
|
+
IS_VISIBLE: r.IS_VISIBLE === "1",
|
|
1355
|
+
COL_CAPTION: r.COL_CAPTION,
|
|
1356
|
+
COL_WIDTH: r.COL_WIDTH
|
|
1357
|
+
});
|
|
1358
|
+
}), l.popAdvanceFilterHelperProps.Options.devMode)
|
|
1359
|
+
await $e("SystemDefault", "SystemDefault");
|
|
1360
|
+
else if (await Ye(e.SysInfo.UserId), P != null && P.rowCount) {
|
|
1361
|
+
let r = !1;
|
|
1362
|
+
W(() => {
|
|
1363
|
+
var t, o, a, i;
|
|
1364
|
+
b.trim().length > 0 ? (o = (t = Y.value.gridOptions) == null ? void 0 : t.api) == null || o.forEachNodeAfterFilterAndSort((s) => {
|
|
1365
|
+
s.data.toJSON().BILL_NO === b && (s.setSelected(!0), r = !0);
|
|
1366
|
+
}) : (i = (a = Y.value.gridOptions) == null ? void 0 : a.api) == null || i.forEachNodeAfterFilterAndSort((s) => {
|
|
1367
|
+
const C = s.data.toJSON();
|
|
1368
|
+
!r && C.DEFAULT_FLAG === "1" && (s.setSelected(!0), r = !0);
|
|
1369
|
+
});
|
|
1370
|
+
});
|
|
1371
|
+
} else
|
|
1372
|
+
$e(e.SysInfo.UserId, "~Default~");
|
|
1373
|
+
}), (r, t) => {
|
|
1374
|
+
var E;
|
|
1375
|
+
const o = q("ag-grid-vue"), a = q("a-input"), i = q("a-checkbox"), s = q("a-button"), C = q("a-tab-pane"), c = q("a-tabs");
|
|
1376
|
+
return w(), G(yt, {
|
|
1377
|
+
ref: "modalRef",
|
|
1378
|
+
visible: l.popAdvanceFilterHelperProps.WindowOpened.value,
|
|
1379
|
+
"onUpdate:visible": t[5] || (t[5] = (n) => l.popAdvanceFilterHelperProps.WindowOpened.value = n),
|
|
1380
|
+
title: f(e).Core.$t("ERX.AdvanceFilter") || "高级过滤",
|
|
1381
|
+
"default-footer": !0,
|
|
1382
|
+
"show-confirm": !1,
|
|
1383
|
+
"show-cancel": !1,
|
|
1384
|
+
height: l.options.height || "630px",
|
|
1385
|
+
width: l.options.width || ((E = l.popAdvanceFilterHelperProps.Options) != null && E.devMode ? "630px" : "960px"),
|
|
1386
|
+
"destroy-on-close": l.popAdvanceFilterHelperProps.UnMountWhenCloseDialog,
|
|
1387
|
+
onOpen: qt,
|
|
1388
|
+
onClickCloseIcon: Qt
|
|
1389
|
+
}, {
|
|
1390
|
+
"footer-left": D(() => [
|
|
1391
|
+
Ee("button", {
|
|
1392
|
+
class: "er-button",
|
|
1393
|
+
onClick: Kt
|
|
1394
|
+
}, re(f(e).Core.$t("ERX.Filter") || "过滤"), 1),
|
|
1395
|
+
Ee("button", {
|
|
1396
|
+
class: "er-button",
|
|
1397
|
+
onClick: jt
|
|
1398
|
+
}, re(f(e).Core.$t("ERX.Close") || "关闭"), 1)
|
|
1399
|
+
]),
|
|
1400
|
+
default: D(() => [
|
|
1401
|
+
Ee("div", ur, [
|
|
1402
|
+
Ee("div", cr, [
|
|
1403
|
+
F(f(Nt), {
|
|
1404
|
+
horizontal: !$.value,
|
|
1405
|
+
onResize: t[4] || (t[4] = (n) => h.value = n[0].size)
|
|
1406
|
+
}, {
|
|
1407
|
+
default: D(() => [
|
|
1408
|
+
F(f(He), { size: f(h) }, {
|
|
1409
|
+
default: D(() => [
|
|
1410
|
+
F(Xe, {
|
|
1411
|
+
title: f(e).Core.$t("ERX.TemplateList") || "方案列表",
|
|
1412
|
+
"open-header-show": !1,
|
|
1413
|
+
style: { height: "100%" }
|
|
1414
|
+
}, {
|
|
1415
|
+
contentSlot: D(() => [
|
|
1416
|
+
F(f(Nt), { horizontal: !0 }, {
|
|
1417
|
+
default: D(() => [
|
|
1418
|
+
F(f(He), { size: f(j) }, {
|
|
1419
|
+
default: D(() => {
|
|
1420
|
+
var n;
|
|
1421
|
+
return [
|
|
1422
|
+
F(o, {
|
|
1423
|
+
ref_key: "agGridVueTemplateMainRef",
|
|
1424
|
+
ref: Y,
|
|
1425
|
+
id: ((n = r.$attrs) == null ? void 0 : n.id) + "_group_template_main_grid",
|
|
1426
|
+
class: "ag-theme-balham er-grid",
|
|
1427
|
+
style: { height: "100%", width: "100%" },
|
|
1428
|
+
rowSelection: "single",
|
|
1429
|
+
rowHeight: 30,
|
|
1430
|
+
headerHeight: 0,
|
|
1431
|
+
enableRtl: f(ue)(),
|
|
1432
|
+
localeText: f(Fe)(),
|
|
1433
|
+
stopEditingWhenCellsLoseFocus: !0,
|
|
1434
|
+
enableBrowserTooltips: !1,
|
|
1435
|
+
tooltipInteraction: !0,
|
|
1436
|
+
columnDefs: Pt,
|
|
1437
|
+
statusBar: Gt.value,
|
|
1438
|
+
onGridReady: Bt
|
|
1439
|
+
}, null, 8, ["id", "enableRtl", "localeText", "statusBar"])
|
|
1440
|
+
];
|
|
1441
|
+
}),
|
|
1442
|
+
_: 1
|
|
1443
|
+
}, 8, ["size"])
|
|
1444
|
+
]),
|
|
1445
|
+
_: 1
|
|
1446
|
+
})
|
|
1447
|
+
]),
|
|
1448
|
+
_: 1
|
|
1449
|
+
}, 8, ["title"])
|
|
1450
|
+
]),
|
|
1451
|
+
_: 1
|
|
1452
|
+
}, 8, ["size"]),
|
|
1453
|
+
F(f(He), {
|
|
1454
|
+
size: 100 - f(h),
|
|
1455
|
+
style: { "padding-bottom": "5px" }
|
|
1456
|
+
}, {
|
|
1457
|
+
default: D(() => [
|
|
1458
|
+
Ee("div", pr, [
|
|
1459
|
+
F(Xe, {
|
|
1460
|
+
title: f(e).Core.$t("ERX.TemplateDetail") || "方案明细",
|
|
1461
|
+
"open-header-show": !1,
|
|
1462
|
+
style: { height: "75px" }
|
|
1463
|
+
}, {
|
|
1464
|
+
contentSlot: D(() => [
|
|
1465
|
+
Ee("div", _r, [
|
|
1466
|
+
F(a, {
|
|
1467
|
+
disabled: l.popAdvanceFilterHelperProps.Options.devMode,
|
|
1468
|
+
style: { width: "200px", height: "25px" },
|
|
1469
|
+
value: S.value,
|
|
1470
|
+
"onUpdate:value": t[0] || (t[0] = (n) => S.value = n),
|
|
1471
|
+
placeholder: f(e).Core.$t("ERX.TemplateNameEmptyMessage") || "请输入方案名称"
|
|
1472
|
+
}, null, 8, ["disabled", "value", "placeholder"]),
|
|
1473
|
+
l.popAdvanceFilterHelperProps.Options.devMode ? Ce("", !0) : (w(), G(i, {
|
|
1474
|
+
key: 0,
|
|
1475
|
+
style: { "margin-left": "10px" },
|
|
1476
|
+
checked: A.value,
|
|
1477
|
+
"onUpdate:checked": t[1] || (t[1] = (n) => A.value = n)
|
|
1478
|
+
}, {
|
|
1479
|
+
default: D(() => [
|
|
1480
|
+
ce(re(f(e).Core.$t("ERX.Default") || "默认"), 1)
|
|
1481
|
+
]),
|
|
1482
|
+
_: 1
|
|
1483
|
+
}, 8, ["checked"])),
|
|
1484
|
+
l.popAdvanceFilterHelperProps.Options.devMode ? Ce("", !0) : (w(), G(i, {
|
|
1485
|
+
key: 1,
|
|
1486
|
+
style: { "margin-left": "2px" },
|
|
1487
|
+
checked: N.value,
|
|
1488
|
+
"onUpdate:checked": t[2] || (t[2] = (n) => N.value = n)
|
|
1489
|
+
}, {
|
|
1490
|
+
default: D(() => [
|
|
1491
|
+
ce(re(f(e).Core.$t("ERX.Public") || "公共"), 1)
|
|
1492
|
+
]),
|
|
1493
|
+
_: 1
|
|
1494
|
+
}, 8, ["checked"])),
|
|
1495
|
+
F(s, {
|
|
1496
|
+
icon: oe(f(ke)),
|
|
1497
|
+
class: "er-button",
|
|
1498
|
+
style: { "margin-left": "5px" },
|
|
1499
|
+
onClick: zt
|
|
1500
|
+
}, {
|
|
1501
|
+
default: D(() => [
|
|
1502
|
+
ce(re(f(e).Core.$t("ERX.Save") || "保存"), 1)
|
|
1503
|
+
]),
|
|
1504
|
+
_: 1
|
|
1505
|
+
}, 8, ["icon"]),
|
|
1506
|
+
l.popAdvanceFilterHelperProps.Options.devMode ? Ce("", !0) : (w(), G(s, {
|
|
1507
|
+
key: 2,
|
|
1508
|
+
icon: oe(f(Ve)),
|
|
1509
|
+
class: "xr-ef-button",
|
|
1510
|
+
style: { "margin-left": "2px" },
|
|
1511
|
+
onClick: kt
|
|
1512
|
+
}, {
|
|
1513
|
+
default: D(() => [
|
|
1514
|
+
ce(re(f(e).Core.$t("ERX.Reset") || "重置"), 1)
|
|
1515
|
+
]),
|
|
1516
|
+
_: 1
|
|
1517
|
+
}, 8, ["icon"])),
|
|
1518
|
+
l.popAdvanceFilterHelperProps.Options.devMode ? Ce("", !0) : (w(), G(s, {
|
|
1519
|
+
key: 3,
|
|
1520
|
+
icon: oe(f(xe)),
|
|
1521
|
+
class: "xr-ef-button",
|
|
1522
|
+
style: { "margin-left": "2px" },
|
|
1523
|
+
onClick: Wt
|
|
1524
|
+
}, {
|
|
1525
|
+
default: D(() => [
|
|
1526
|
+
ce(re(f(e).Core.$t("ERX.Copy") || "复制"), 1)
|
|
1527
|
+
]),
|
|
1528
|
+
_: 1
|
|
1529
|
+
}, 8, ["icon"]))
|
|
1530
|
+
])
|
|
1531
|
+
]),
|
|
1532
|
+
_: 1
|
|
1533
|
+
}, 8, ["title"]),
|
|
1534
|
+
F(c, {
|
|
1535
|
+
style: { height: "calc(100% - 75px)" },
|
|
1536
|
+
type: "card",
|
|
1537
|
+
activeKey: p.value,
|
|
1538
|
+
"onUpdate:activeKey": t[3] || (t[3] = (n) => p.value = n)
|
|
1539
|
+
}, {
|
|
1540
|
+
default: D(() => [
|
|
1541
|
+
(w(), G(C, {
|
|
1542
|
+
"force-render": "",
|
|
1543
|
+
key: "filter",
|
|
1544
|
+
tab: f(e).Core.$t("ERX.Filter") || "条件",
|
|
1545
|
+
style: { height: "100%" }
|
|
1546
|
+
}, {
|
|
1547
|
+
default: D(() => {
|
|
1548
|
+
var n;
|
|
1549
|
+
return [
|
|
1550
|
+
F(o, {
|
|
1551
|
+
ref_key: "agGridVueTemplateFilterRef",
|
|
1552
|
+
ref: X,
|
|
1553
|
+
id: ((n = r.$attrs) == null ? void 0 : n.id) + "_group_template_filter_grid",
|
|
1554
|
+
class: "ag-theme-balham er-grid",
|
|
1555
|
+
style: { height: "100%", width: "100%" },
|
|
1556
|
+
rowSelection: "multiple",
|
|
1557
|
+
rowDragManaged: !0,
|
|
1558
|
+
"grid-id": f(e).Core.guid(),
|
|
1559
|
+
enableRtl: f(ue)(),
|
|
1560
|
+
localeText: f(Fe)(),
|
|
1561
|
+
singleClickEdit: !0,
|
|
1562
|
+
stopEditingWhenCellsLoseFocus: !0,
|
|
1563
|
+
enableBrowserTooltips: !1,
|
|
1564
|
+
tooltipInteraction: !0,
|
|
1565
|
+
defaultColDef: Me,
|
|
1566
|
+
columnDefs: Lt,
|
|
1567
|
+
statusBar: Ke.value,
|
|
1568
|
+
onGridReady: Ht,
|
|
1569
|
+
onRowDragEnd: Le
|
|
1570
|
+
}, null, 8, ["id", "grid-id", "enableRtl", "localeText", "statusBar"])
|
|
1571
|
+
];
|
|
1572
|
+
}),
|
|
1573
|
+
_: 1
|
|
1574
|
+
}, 8, ["tab"])),
|
|
1575
|
+
l.popAdvanceFilterHelperProps.Options.devMode ? Ce("", !0) : (w(), G(C, {
|
|
1576
|
+
"force-render": "",
|
|
1577
|
+
key: "sort",
|
|
1578
|
+
tab: f(e).Core.$t("ERX.Sort") || "排序",
|
|
1579
|
+
style: { height: "100%" }
|
|
1580
|
+
}, {
|
|
1581
|
+
default: D(() => {
|
|
1582
|
+
var n;
|
|
1583
|
+
return [
|
|
1584
|
+
F(o, {
|
|
1585
|
+
ref_key: "agGridVueTemplateSortRef",
|
|
1586
|
+
ref: pe,
|
|
1587
|
+
id: ((n = r.$attrs) == null ? void 0 : n.id) + "_group_template_sort_grid",
|
|
1588
|
+
class: "ag-theme-balham er-grid",
|
|
1589
|
+
style: { height: "100%", width: "100%" },
|
|
1590
|
+
rowSelection: "multiple",
|
|
1591
|
+
rowDragManaged: !0,
|
|
1592
|
+
"grid-id": f(e).Core.guid(),
|
|
1593
|
+
enableRtl: f(ue)(),
|
|
1594
|
+
localeText: f(Fe)(),
|
|
1595
|
+
singleClickEdit: !0,
|
|
1596
|
+
stopEditingWhenCellsLoseFocus: !0,
|
|
1597
|
+
enableBrowserTooltips: !0,
|
|
1598
|
+
defaultColDef: Me,
|
|
1599
|
+
columnDefs: wt,
|
|
1600
|
+
statusBar: Ke.value,
|
|
1601
|
+
onGridReady: $t,
|
|
1602
|
+
onRowDragEnd: Le
|
|
1603
|
+
}, null, 8, ["id", "grid-id", "enableRtl", "localeText", "statusBar"])
|
|
1604
|
+
];
|
|
1605
|
+
}),
|
|
1606
|
+
_: 1
|
|
1607
|
+
}, 8, ["tab"])),
|
|
1608
|
+
l.popAdvanceFilterHelperProps.Options.devMode ? Ce("", !0) : (w(), G(C, {
|
|
1609
|
+
"force-render": "",
|
|
1610
|
+
key: "display",
|
|
1611
|
+
tab: f(e).Core.$t("ERX.Display") || "显示",
|
|
1612
|
+
style: { height: "100%" }
|
|
1613
|
+
}, {
|
|
1614
|
+
default: D(() => {
|
|
1615
|
+
var n;
|
|
1616
|
+
return [
|
|
1617
|
+
F(o, {
|
|
1618
|
+
ref_key: "agGridVueTemplateDisplayRef",
|
|
1619
|
+
ref: le,
|
|
1620
|
+
id: ((n = r.$attrs) == null ? void 0 : n.id) + "_group_template_display_grid",
|
|
1621
|
+
class: "ag-theme-balham er-grid",
|
|
1622
|
+
style: { height: "100%", width: "100%" },
|
|
1623
|
+
rowSelection: "multiple",
|
|
1624
|
+
rowDragManaged: !0,
|
|
1625
|
+
rowDragMultiRow: !0,
|
|
1626
|
+
"grid-id": f(e).Core.guid(),
|
|
1627
|
+
enableRtl: f(ue)(),
|
|
1628
|
+
localeText: f(Fe)(),
|
|
1629
|
+
stopEditingWhenCellsLoseFocus: !0,
|
|
1630
|
+
enableBrowserTooltips: !0,
|
|
1631
|
+
defaultColDef: Me,
|
|
1632
|
+
columnDefs: Yt,
|
|
1633
|
+
statusBar: Xt.value,
|
|
1634
|
+
onFilterChanged: Ut,
|
|
1635
|
+
onRowDragEnd: Le,
|
|
1636
|
+
onGridReady: bt
|
|
1637
|
+
}, null, 8, ["id", "grid-id", "enableRtl", "localeText", "statusBar"])
|
|
1638
|
+
];
|
|
1639
|
+
}),
|
|
1640
|
+
_: 1
|
|
1641
|
+
}, 8, ["tab"]))
|
|
1642
|
+
]),
|
|
1643
|
+
_: 1
|
|
1644
|
+
}, 8, ["activeKey"])
|
|
1645
|
+
])
|
|
1646
|
+
]),
|
|
1647
|
+
_: 1
|
|
1648
|
+
}, 8, ["size"])
|
|
1649
|
+
]),
|
|
1650
|
+
_: 1
|
|
1651
|
+
}, 8, ["horizontal"])
|
|
1652
|
+
])
|
|
1653
|
+
])
|
|
1654
|
+
]),
|
|
1655
|
+
_: 1
|
|
1656
|
+
}, 8, ["visible", "title", "height", "width", "destroy-on-close"]);
|
|
1657
|
+
};
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
export {
|
|
1661
|
+
Rr as default
|
|
1662
|
+
};
|
|
1663
|
+
//# sourceMappingURL=ErAdvanceFilter-ByFv7lkj.js.map
|