super-page-runtime 2.2.89 → 2.2.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/events/print-label.js +34 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +256 -245
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +12 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -25
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +60 -52
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -2,44 +2,44 @@ import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, ge
|
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import { getI18n as u } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage as l, ElMessageBox as p } from "element-plus";
|
|
5
|
-
import { getToken as d, getSessionCache as m,
|
|
6
|
-
import { getComponentRef as
|
|
7
|
-
import
|
|
8
|
-
import "axios";
|
|
9
|
-
import { handleEvent as
|
|
10
|
-
import { setStoreInfo as
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import { updateChartDatasources as
|
|
13
|
-
import
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
15
|
-
import { getWorkflowRules as
|
|
16
|
-
import { functions as
|
|
17
|
-
import { usePageContextStore as
|
|
18
|
-
const
|
|
19
|
-
return
|
|
5
|
+
import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
|
|
6
|
+
import { getComponentRef as b } from "../global-refs.js";
|
|
7
|
+
import C from "../eventBus.js";
|
|
8
|
+
import T from "axios";
|
|
9
|
+
import { handleEvent as y, getTableUuid as h, doAfterClickEvent as P } from "./event-util.js";
|
|
10
|
+
import { setStoreInfo as w } from "../store-util.js";
|
|
11
|
+
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as N } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as M, caculateShowCondition as v, getVariableValue as S, setVariableValue as I } from "../page-helper-util.js";
|
|
13
|
+
import x from "./print-label.js";
|
|
14
|
+
import { getTableNameByTableUuid as A } from "../table-utils.js";
|
|
15
|
+
import { getWorkflowRules as U, packageCustomRules as O } from "./validator-util.js";
|
|
16
|
+
import { functions as E } from "../api/page-expose-util.js";
|
|
17
|
+
import { usePageContextStore as _ } from "../page-store.js";
|
|
18
|
+
const j = { save: function(e2) {
|
|
19
|
+
return W(e2, false);
|
|
20
20
|
}, saveList: function(e2) {
|
|
21
|
-
return
|
|
21
|
+
return W(e2, true);
|
|
22
22
|
}, exportForm: function(e2) {
|
|
23
23
|
const t2 = e2.pageContext.code + "_";
|
|
24
|
-
|
|
24
|
+
C.$emit(t2 + "export-form-report", e2);
|
|
25
25
|
}, exportPDF: function(e2) {
|
|
26
26
|
const t2 = e2.pageContext.code + "_";
|
|
27
|
-
|
|
27
|
+
C.$emit(t2 + "export-pdf-report", e2);
|
|
28
28
|
}, submit: function(e2) {
|
|
29
|
-
return
|
|
29
|
+
return z(e2, false, "submit", "/dsc/commons/submits");
|
|
30
30
|
}, submitList: function(e2) {
|
|
31
|
-
return
|
|
31
|
+
return z(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
32
32
|
}, agree: function(e2) {
|
|
33
|
-
return
|
|
33
|
+
return z(e2, false, "agree", "/dsc/commons/approves");
|
|
34
34
|
}, agreeList: function(e2) {
|
|
35
|
-
return
|
|
35
|
+
return z(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
36
36
|
}, disagree: function(e2) {
|
|
37
|
-
return
|
|
37
|
+
return z(e2, false, "disagree", "/dsc/commons/refuses");
|
|
38
38
|
}, disagreeList: function(e2) {
|
|
39
|
-
return
|
|
39
|
+
return z(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
40
40
|
}, back: function(e2) {
|
|
41
41
|
const t2 = e2.pageContext;
|
|
42
|
-
|
|
42
|
+
G(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
|
|
43
43
|
}, delete: function(e2) {
|
|
44
44
|
return function(e3) {
|
|
45
45
|
return new Promise((s2, i2) => {
|
|
@@ -47,19 +47,19 @@ const E = { save: function(e2) {
|
|
|
47
47
|
if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
48
48
|
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
49
|
var _a;
|
|
50
|
-
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 =
|
|
54
|
-
r2.beanName && (
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
50
|
+
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = A(r2, m2);
|
|
51
|
+
let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
|
+
g2 = o(g2, p2, d2, r2.isTest);
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = k(u2, r2), h2 = { ids: a2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
|
+
r2.beanName && (h2.beanName = r2.beanName);
|
|
55
|
+
const P2 = u2.props.deleteLogicSetting;
|
|
56
|
+
P2 && ("object" == typeof P2 ? h2.deleteLogicSetting = JSON.stringify(P2) : "string" == typeof P2 && (h2.deleteLogicSetting = P2));
|
|
57
|
+
const w2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
+
w2 && (h2.logSettingText = w2.join(""));
|
|
59
59
|
const R2 = u2.props.base.isSafeDelete;
|
|
60
|
-
R2 && (
|
|
61
|
-
const t2 =
|
|
62
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()),
|
|
60
|
+
R2 && (h2.isSafeDelete = R2), c.delete(g2, { data: h2 }).then((e4) => {
|
|
61
|
+
const t2 = b(r2, m2);
|
|
62
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), q(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
63
63
|
}).catch((e4) => {
|
|
64
64
|
i2(e4);
|
|
65
65
|
});
|
|
@@ -83,24 +83,24 @@ const E = { save: function(e2) {
|
|
|
83
83
|
const b2 = e3.listCode;
|
|
84
84
|
b2 && (f2 += "&listCode=" + b2);
|
|
85
85
|
t2.beanName && (f2 += "&beanName=" + t2.beanName);
|
|
86
|
-
const C2 =
|
|
86
|
+
const C2 = k(s2, t2);
|
|
87
87
|
C2 && (f2 += "&functionCode=" + C2);
|
|
88
88
|
t2.tableName && (f2 += "&tableName=" + t2.tableName);
|
|
89
89
|
t2.code && (f2 += "&pageCode=" + t2.code);
|
|
90
90
|
t2.version && (f2 += "&pageVersion=" + t2.version);
|
|
91
91
|
const T2 = d();
|
|
92
92
|
T2 && (f2 += "&JWT=" + T2);
|
|
93
|
-
const y2 = "_RUN_CURRENT_ROLE",
|
|
94
|
-
|
|
93
|
+
const y2 = "_RUN_CURRENT_ROLE", h2 = m(y2);
|
|
94
|
+
h2 && (f2 += "&" + y2 + "=" + h2);
|
|
95
95
|
if (o2) {
|
|
96
96
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
window.open(
|
|
98
|
+
const P2 = n(l2, t2.isTest);
|
|
99
|
+
window.open(P2 + "/dsc/commons/download-files" + f2);
|
|
100
100
|
}(e2);
|
|
101
101
|
}, import: function(e2) {
|
|
102
102
|
const t2 = e2.pageContext.code + "_";
|
|
103
|
-
|
|
103
|
+
C.$emit(t2 + "import-file", e2);
|
|
104
104
|
}, export: function(e2) {
|
|
105
105
|
return function(e3) {
|
|
106
106
|
return new Promise((t2, s2) => {
|
|
@@ -110,116 +110,116 @@ const E = { save: function(e2) {
|
|
|
110
110
|
c2 || (c2 = n2.code);
|
|
111
111
|
let u2 = false;
|
|
112
112
|
u2 = void 0 !== o2.isAsync && null !== o2.isAsync && o2.isAsync;
|
|
113
|
-
const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 =
|
|
113
|
+
const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 = k(e3.configureObj, n2), d2 = c2, m2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
114
114
|
window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, i2, p2, null, m2, u2, n2.code, l2);
|
|
115
115
|
});
|
|
116
116
|
}(e2);
|
|
117
117
|
}, search: function(e2) {
|
|
118
118
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
119
|
-
|
|
119
|
+
b(t2, s2).refresh();
|
|
120
120
|
}, showSearch: function(e2) {
|
|
121
121
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
122
|
-
|
|
122
|
+
b(t2, s2).showMobileSearch();
|
|
123
123
|
}, workflowSave: function(e2) {
|
|
124
|
-
return
|
|
124
|
+
return C.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
125
125
|
return new Promise((t2, s2) => {
|
|
126
126
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
127
127
|
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
128
128
|
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
129
|
-
const m2 =
|
|
129
|
+
const m2 = X(e3);
|
|
130
130
|
let f2;
|
|
131
131
|
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
|
|
132
132
|
let n2 = true;
|
|
133
|
-
s3 && (n2 =
|
|
133
|
+
s3 && (n2 = Z(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
134
134
|
}).catch((e4) => {
|
|
135
135
|
s2(e4);
|
|
136
136
|
});
|
|
137
137
|
});
|
|
138
138
|
}(e2);
|
|
139
139
|
}, submitProcess: function(e2) {
|
|
140
|
-
return
|
|
140
|
+
return C.$emit("clearTableAllStartEditing"), function(e3) {
|
|
141
141
|
return new Promise((t2, s2) => {
|
|
142
142
|
const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
143
143
|
let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
144
144
|
if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
145
|
-
const d2 =
|
|
145
|
+
const d2 = X(e3), m2 = c.post(p2, d2);
|
|
146
146
|
m2 && m2.then((s3) => {
|
|
147
147
|
let n2 = true;
|
|
148
|
-
s3 && (n2 =
|
|
148
|
+
s3 && (n2 = Z(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
149
149
|
}).catch((e4) => {
|
|
150
150
|
s2(e4);
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}(e2);
|
|
154
154
|
}, submitTask: function(e2) {
|
|
155
|
-
return
|
|
155
|
+
return ee(e2, "SUBMIT");
|
|
156
156
|
}, approve: function(e2) {
|
|
157
|
-
return
|
|
157
|
+
return ee(e2, "APPROVE");
|
|
158
158
|
}, refuse: function(e2) {
|
|
159
|
-
return
|
|
159
|
+
return ee(e2, "REFUSE");
|
|
160
160
|
}, readed: function(e2) {
|
|
161
|
-
return
|
|
161
|
+
return ee(e2, "READED");
|
|
162
162
|
}, agreement: function(e2) {
|
|
163
|
-
return
|
|
163
|
+
return ee(e2, "AGREEMENT");
|
|
164
164
|
}, oppose: function(e2) {
|
|
165
|
-
return
|
|
165
|
+
return ee(e2, "OPPOSE");
|
|
166
166
|
}, kiken: function(e2) {
|
|
167
|
-
return
|
|
167
|
+
return ee(e2, "KIKEN");
|
|
168
168
|
}, assign: function(e2) {
|
|
169
169
|
return function(e3) {
|
|
170
170
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
171
|
-
|
|
171
|
+
C.$emit(s2 + "assign-task", e3);
|
|
172
172
|
}(e2);
|
|
173
173
|
}, copyTask: function(e2) {
|
|
174
174
|
return function(e3) {
|
|
175
175
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
176
|
-
|
|
176
|
+
C.$emit(s2 + "copy-task", e3);
|
|
177
177
|
}(e2);
|
|
178
178
|
}, addSigner: function(e2) {
|
|
179
179
|
return function(e3) {
|
|
180
180
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
181
|
-
|
|
181
|
+
C.$emit(s2 + "add-signer", e3);
|
|
182
182
|
}(e2);
|
|
183
183
|
}, drawTask: function(e2) {
|
|
184
184
|
return function(e3) {
|
|
185
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 =
|
|
186
|
-
return
|
|
185
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = X(e3);
|
|
186
|
+
return ae(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
187
187
|
}(e2);
|
|
188
188
|
}, abandonReceive: function(e2) {
|
|
189
189
|
return function(e3) {
|
|
190
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 =
|
|
191
|
-
return
|
|
190
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = X(e3);
|
|
191
|
+
return ae(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
192
192
|
}(e2);
|
|
193
193
|
}, returnToPreviousTask: function(e2) {
|
|
194
194
|
return function(e3) {
|
|
195
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 =
|
|
196
|
-
return
|
|
195
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = X(e3);
|
|
196
|
+
return ae(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
197
197
|
}(e2);
|
|
198
198
|
}, endInstance: function(e2) {
|
|
199
199
|
return function(e3) {
|
|
200
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 =
|
|
201
|
-
return
|
|
200
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = X(e3);
|
|
201
|
+
return ae(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
202
202
|
}(e2);
|
|
203
203
|
}, returnTaskTo: function(e2) {
|
|
204
204
|
return function(e3) {
|
|
205
205
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
206
|
-
|
|
206
|
+
C.$emit(s2 + "choose-return-node", e3);
|
|
207
207
|
}(e2);
|
|
208
208
|
}, removeSigner: function(e2) {
|
|
209
209
|
return function(e3) {
|
|
210
210
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
211
|
-
|
|
211
|
+
C.$emit(s2 + "remove-signer", e3);
|
|
212
212
|
}(e2);
|
|
213
213
|
}, retrieveTask: function(e2) {
|
|
214
214
|
return function(e3) {
|
|
215
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 =
|
|
216
|
-
return
|
|
215
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = X(e3);
|
|
216
|
+
return ae(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
217
217
|
}(e2);
|
|
218
218
|
}, viewDetail: function(e2) {
|
|
219
219
|
}, lineEditCreate: function(e2) {
|
|
220
220
|
return function(e3) {
|
|
221
|
-
const t2 = e3.pageContext, s2 = e3.tableUuid, n2 =
|
|
222
|
-
n2 && (e3.getDefaultValueFunc =
|
|
221
|
+
const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
|
|
222
|
+
n2 && (e3.getDefaultValueFunc = R, n2.createRow(e3.listCode, {}, e3));
|
|
223
223
|
}(e2);
|
|
224
224
|
}, printLabel: function(e2) {
|
|
225
225
|
return function(e3) {
|
|
@@ -228,14 +228,14 @@ const E = { save: function(e2) {
|
|
|
228
228
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
229
229
|
} catch (e4) {
|
|
230
230
|
}
|
|
231
|
-
|
|
231
|
+
x.printLabel(e3, t2);
|
|
232
232
|
}(e2);
|
|
233
233
|
}, queryCharts: function(e2) {
|
|
234
|
-
|
|
234
|
+
D(e2);
|
|
235
235
|
}, resetCharts: function(t2) {
|
|
236
236
|
var _a, _b;
|
|
237
237
|
const s2 = t2.pageContext;
|
|
238
|
-
s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true,
|
|
238
|
+
s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true, D(t2);
|
|
239
239
|
}, exportCharts: function(e2) {
|
|
240
240
|
!function(e3) {
|
|
241
241
|
const t2 = e3.pageContext, s2 = t2.allChartUuids;
|
|
@@ -247,20 +247,21 @@ const E = { save: function(e2) {
|
|
|
247
247
|
i2 && (i2.state = "disabled");
|
|
248
248
|
const r2 = [];
|
|
249
249
|
for (let e4 = 0; e4 < s2.length; e4++) {
|
|
250
|
-
const n2 = s2[e4], o3 =
|
|
250
|
+
const n2 = s2[e4], o3 = b(t2, n2);
|
|
251
251
|
if (o3) {
|
|
252
252
|
const e5 = o3.getConfigure();
|
|
253
253
|
e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
if (!r2 || 0 == r2.length) return;
|
|
257
|
-
let
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
|
|
257
|
+
let c2, u2 = t2.label;
|
|
258
|
+
u2 || (u2 = t2.code);
|
|
259
|
+
c2 = u2;
|
|
260
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl, d2 = n(p2, t2.isTest) + "/dsc/commons/exportChart";
|
|
261
|
+
B();
|
|
262
|
+
T.post(d2, l2, { responseType: "blob" }).then((e4) => {
|
|
262
263
|
const t3 = document.createElement("a");
|
|
263
|
-
t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download",
|
|
264
|
+
t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
|
|
264
265
|
}).finally(() => {
|
|
265
266
|
i2 && (i2.state = a2);
|
|
266
267
|
});
|
|
@@ -268,42 +269,44 @@ const E = { save: function(e2) {
|
|
|
268
269
|
}, saveQueryCharts: function(e2) {
|
|
269
270
|
!function(e3) {
|
|
270
271
|
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
271
|
-
|
|
272
|
+
C.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
272
273
|
}(e2);
|
|
273
274
|
} };
|
|
274
|
-
function
|
|
275
|
+
function D(e2) {
|
|
275
276
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
276
277
|
if (!s2 || 0 == s2.length) return;
|
|
277
278
|
const n2 = e2.configureObj;
|
|
278
279
|
let o2 = null;
|
|
279
280
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
280
281
|
const i2 = o2 ? o2.state : void 0;
|
|
281
|
-
o2 && (o2.state = "disabled"),
|
|
282
|
+
o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
282
283
|
o2 && (o2.state = i2);
|
|
283
284
|
}).catch(() => {
|
|
284
285
|
o2 && (o2.state = i2);
|
|
285
286
|
});
|
|
286
287
|
}
|
|
287
|
-
function
|
|
288
|
+
function L(e2, s2, o2, i2) {
|
|
288
289
|
var _a;
|
|
289
|
-
const a2 = o2.templateUuid, r2 = o2.templateName,
|
|
290
|
-
|
|
291
|
-
const
|
|
292
|
-
let
|
|
293
|
-
|
|
290
|
+
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = E.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: k(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
291
|
+
u2 && (C2.logSettingText = u2.join(""));
|
|
292
|
+
const y2 = ne(e2);
|
|
293
|
+
let h2;
|
|
294
|
+
C2.additionalParamMap = y2, h2 = i2 ? function(e3, t2, s3, o3) {
|
|
294
295
|
return new Promise((i3, a3) => {
|
|
295
296
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
296
|
-
|
|
297
|
+
B();
|
|
298
|
+
T.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
297
299
|
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
298
300
|
n2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n2.style.display = "none", n2.target = "_blank", n2.href = URL.createObjectURL(s4), document.body.appendChild(n2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2), i3(true);
|
|
299
301
|
}).catch((e4) => {
|
|
300
302
|
a3(e4);
|
|
301
303
|
});
|
|
302
304
|
});
|
|
303
|
-
}(r2,
|
|
305
|
+
}(r2, f2, C2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
304
306
|
return new Promise((i3, a3) => {
|
|
305
307
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
306
|
-
|
|
308
|
+
B();
|
|
309
|
+
T.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
307
310
|
const s4 = new Blob([t3.data]);
|
|
308
311
|
let n2 = "报告.xlsx";
|
|
309
312
|
e3 && (n2 = e3);
|
|
@@ -313,43 +316,51 @@ function j(e2, s2, o2, i2) {
|
|
|
313
316
|
a3(e4);
|
|
314
317
|
});
|
|
315
318
|
});
|
|
316
|
-
}(r2,
|
|
317
|
-
|
|
319
|
+
}(r2, f2, C2, e2.isTest), h2 && h2.then(() => {
|
|
320
|
+
P(e2, s2);
|
|
318
321
|
});
|
|
319
322
|
}
|
|
320
|
-
function
|
|
323
|
+
function B() {
|
|
324
|
+
T.defaults.headers.common.Authorization = d();
|
|
325
|
+
const e2 = f();
|
|
326
|
+
if (e2) {
|
|
327
|
+
const t2 = "_RUN_CURRENT_ROLE";
|
|
328
|
+
T.defaults.headers.common[t2] = e2;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function W(e2, t2) {
|
|
321
332
|
return new Promise((s2, n2) => {
|
|
322
333
|
const o2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
|
|
323
334
|
let u2 = false;
|
|
324
335
|
c2 && "noOperation" === c2 && (u2 = true);
|
|
325
|
-
const l2 =
|
|
336
|
+
const l2 = $(o2, i2, "/dsc/commons", u2, a2, r2);
|
|
326
337
|
l2 ? l2.then((e3) => {
|
|
327
|
-
|
|
338
|
+
q(o2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
328
339
|
}).catch((e3) => {
|
|
329
340
|
n2(e3);
|
|
330
341
|
}) : n2("保存时request不存在");
|
|
331
342
|
});
|
|
332
343
|
}
|
|
333
|
-
function
|
|
344
|
+
function V(e2, n2, o2, i2, a2, r2, c2) {
|
|
334
345
|
var _a;
|
|
335
|
-
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 =
|
|
346
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = k(n2, e2);
|
|
336
347
|
let m2 = c2;
|
|
337
348
|
m2 || (m2 = e2.entity.data);
|
|
338
349
|
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: u2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
339
350
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
340
351
|
const g2 = n2.props.base.conversionCodes;
|
|
341
352
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
342
|
-
const b2 =
|
|
353
|
+
const b2 = ge(n2);
|
|
343
354
|
b2 && (f2.autoSetValueData = b2);
|
|
344
355
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
345
356
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
346
357
|
const T2 = e2.beanName;
|
|
347
358
|
T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
348
|
-
const y2 =
|
|
359
|
+
const y2 = ne(e2);
|
|
349
360
|
return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
350
361
|
}
|
|
351
|
-
function
|
|
352
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 =
|
|
362
|
+
function F(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
363
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, i2, a2, r2, null, u2);
|
|
353
364
|
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, i3, a3, r3) {
|
|
354
365
|
const u3 = n(t3, r3);
|
|
355
366
|
let l3, p3 = u3 + i3;
|
|
@@ -357,23 +368,23 @@ function B(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
|
357
368
|
return l3;
|
|
358
369
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
359
370
|
}
|
|
360
|
-
function
|
|
361
|
-
return
|
|
371
|
+
function $(e2, t2, s2, n2, o2, i2) {
|
|
372
|
+
return F(e2, t2, s2, n2, o2, i2, null, null);
|
|
362
373
|
}
|
|
363
|
-
function
|
|
364
|
-
const a2 =
|
|
374
|
+
function q(t2, s2, n2, o2, i2) {
|
|
375
|
+
const a2 = H(t2, s2, i2);
|
|
365
376
|
a2 && "list" === a2 ? (!function(t3, s3, n3, o3) {
|
|
366
377
|
let i3 = s3.props.base.successOperation;
|
|
367
|
-
const a3 = s3.props.base.isNeedValueMapping, r2 =
|
|
378
|
+
const a3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
368
379
|
i3 || (i3 = "refresh");
|
|
369
380
|
if ("refresh" === i3) {
|
|
370
381
|
if (r2) {
|
|
371
|
-
|
|
382
|
+
b(t3, r2).refresh();
|
|
372
383
|
}
|
|
373
384
|
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
374
385
|
const s4 = e(t3.entity.page);
|
|
375
386
|
let o4 = n3;
|
|
376
|
-
o4 || (o4 = {}), Object.assign(s4, o4),
|
|
387
|
+
o4 || (o4 = {}), Object.assign(s4, o4), G(t3, s4, a3);
|
|
377
388
|
}
|
|
378
389
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
379
390
|
}(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
|
|
@@ -385,25 +396,25 @@ function V(t2, s2, n2, o2, i2) {
|
|
|
385
396
|
const n5 = t4.props.base.successOperation;
|
|
386
397
|
if (!n5 || null === n5) return;
|
|
387
398
|
const o4 = t4.props.base.isNeedValueMapping;
|
|
388
|
-
"noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ?
|
|
399
|
+
"noOperation" === n5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === n5 ? s4 && (s4.id || s4.ID) ? de(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== n5 && "closeWindowAndRefresh" !== n5 || (G(e3, s4, o4), e3.canClick = true);
|
|
389
400
|
}(e2, t3, { ...o3, ...e2.entity.page });
|
|
390
401
|
} else e2.canClick = true;
|
|
391
402
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
392
403
|
}(t2, s2, n2, o2) : t2.canClick = true;
|
|
393
404
|
}
|
|
394
|
-
function
|
|
405
|
+
function H(e2, t2, s2) {
|
|
395
406
|
let n2;
|
|
396
407
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
397
408
|
}
|
|
398
|
-
function
|
|
409
|
+
function G(e2, t2, s2) {
|
|
399
410
|
const n2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
400
411
|
if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
|
|
401
412
|
else {
|
|
402
413
|
const o2 = e2.tableName, i2 = void 0 !== s2 && true === s2 && t2 && void 0 !== t2, a2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
|
|
403
|
-
|
|
414
|
+
C.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
|
|
404
415
|
}
|
|
405
416
|
}
|
|
406
|
-
function
|
|
417
|
+
function J(e2, t2, s2, n2, o2) {
|
|
407
418
|
var _a;
|
|
408
419
|
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
409
420
|
const i2 = e2.tableName;
|
|
@@ -413,31 +424,31 @@ function q(e2, t2, s2, n2, o2) {
|
|
|
413
424
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
414
425
|
const t4 = e4.source;
|
|
415
426
|
if (!t4) return;
|
|
416
|
-
const o3 = t4.split("."), i3 =
|
|
417
|
-
|
|
427
|
+
const o3 = t4.split("."), i3 = S(n3, o3), a2 = e4.target, r2 = N(null, a2);
|
|
428
|
+
I(s3.entity, r2, i3);
|
|
418
429
|
});
|
|
419
430
|
}
|
|
420
|
-
}(s2, o2, e2),
|
|
431
|
+
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
|
|
421
432
|
}
|
|
422
|
-
function
|
|
433
|
+
function Y(e2, t2, s2, n2) {
|
|
423
434
|
var _a;
|
|
424
435
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
425
436
|
let o2 = n2;
|
|
426
437
|
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
427
|
-
const i2 =
|
|
438
|
+
const i2 = H(e2, t2);
|
|
428
439
|
if (i2 && "list" === i2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
429
440
|
if (i2 && "list" === i2) {
|
|
430
|
-
const s3 =
|
|
441
|
+
const s3 = h(e2, t2);
|
|
431
442
|
if (s3) {
|
|
432
|
-
|
|
443
|
+
b(e2, s3).refresh();
|
|
433
444
|
}
|
|
434
445
|
} else if (i2 && "form" === i2) {
|
|
435
446
|
const t3 = e2.entity.data;
|
|
436
|
-
|
|
447
|
+
de(e2, t3.ID ? t3.ID : t3.id);
|
|
437
448
|
}
|
|
438
449
|
}
|
|
439
450
|
}
|
|
440
|
-
function
|
|
451
|
+
function z(e2, t2, s2, i2) {
|
|
441
452
|
return new Promise((r2, l2) => {
|
|
442
453
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
443
454
|
let T2 = false;
|
|
@@ -445,13 +456,13 @@ function G(e2, t2, s2, i2) {
|
|
|
445
456
|
let y2 = d2.tableName;
|
|
446
457
|
if (t2) {
|
|
447
458
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
448
|
-
y2 =
|
|
459
|
+
y2 = A(d2, t3);
|
|
449
460
|
}
|
|
450
|
-
const
|
|
461
|
+
const h2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
|
|
451
462
|
return new Promise((g3, b3) => {
|
|
452
463
|
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
453
464
|
p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
454
|
-
const a2 = e3.systemCode, u2 = e3.backendUrl, p2 =
|
|
465
|
+
const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, i3, r3, l3, m3, null);
|
|
455
466
|
p2.tableName = f3;
|
|
456
467
|
let d4 = n(u2, e3.isTest) + s3;
|
|
457
468
|
d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
@@ -464,51 +475,51 @@ function G(e2, t2, s2, i2) {
|
|
|
464
475
|
});
|
|
465
476
|
});
|
|
466
477
|
}(d2, m2, i2, T2, f2, g2, s2, b2, y2);
|
|
467
|
-
|
|
468
|
-
|
|
478
|
+
h2 ? h2.then((e3) => {
|
|
479
|
+
q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
469
480
|
}).catch((e3) => {
|
|
470
481
|
l2(e3);
|
|
471
482
|
}) : l2("request不存在");
|
|
472
483
|
});
|
|
473
484
|
}
|
|
474
|
-
function
|
|
485
|
+
function K(e2, s2) {
|
|
475
486
|
var _a;
|
|
476
|
-
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
487
|
+
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = A(i2, d2), f2 = new FormData();
|
|
477
488
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
478
489
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
479
490
|
g2 && f2.append("importDuplicateRule", g2);
|
|
480
491
|
const b2 = i2.judgeHeavyList;
|
|
481
492
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
482
|
-
const C2 =
|
|
493
|
+
const C2 = ge(a2);
|
|
483
494
|
C2 && f2.append("autoSetValueData", C2);
|
|
484
495
|
const T2 = i2.formNoRuleCode;
|
|
485
496
|
T2 && f2.append("formNoRuleCode", T2);
|
|
486
|
-
const
|
|
487
|
-
|
|
488
|
-
let
|
|
489
|
-
|
|
490
|
-
const
|
|
491
|
-
null !=
|
|
492
|
-
const R2 =
|
|
497
|
+
const y2 = e2.listCode;
|
|
498
|
+
y2 && f2.append("listCode", y2);
|
|
499
|
+
let h2 = false;
|
|
500
|
+
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
|
|
501
|
+
const w2 = t(i2);
|
|
502
|
+
null != w2 && f2.append("isWorkflowEntity", w2 + "");
|
|
503
|
+
const R2 = k(a2, i2);
|
|
493
504
|
R2 && f2.append("functionCode", R2);
|
|
494
|
-
const
|
|
495
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
496
|
-
const
|
|
497
|
-
f2.append("isPermission",
|
|
505
|
+
const N2 = ne(i2);
|
|
506
|
+
f2.append("additionalParamMapStr", JSON.stringify(N2));
|
|
507
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
508
|
+
f2.append("isPermission", M2 + "");
|
|
498
509
|
const v2 = i2.systemCode;
|
|
499
510
|
v2 && f2.append("systemCode", v2);
|
|
500
511
|
const S2 = i2.backendUrl;
|
|
501
|
-
let
|
|
502
|
-
|
|
503
|
-
if (
|
|
512
|
+
let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
|
|
513
|
+
I2 = o(I2, v2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
|
|
514
|
+
if (h2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
504
515
|
else {
|
|
505
516
|
let t2 = false;
|
|
506
|
-
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true),
|
|
517
|
+
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), q(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
|
|
507
518
|
}
|
|
508
519
|
}).catch((e3) => {
|
|
509
520
|
});
|
|
510
521
|
}
|
|
511
|
-
function
|
|
522
|
+
function Q(e2, t2) {
|
|
512
523
|
const s2 = e2.props.base;
|
|
513
524
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
514
525
|
if ("one" === s2.conditionsForExecution) {
|
|
@@ -517,31 +528,31 @@ function Y(e2, t2) {
|
|
|
517
528
|
}
|
|
518
529
|
return true;
|
|
519
530
|
}
|
|
520
|
-
function
|
|
531
|
+
function X(e2) {
|
|
521
532
|
var _a;
|
|
522
533
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
523
|
-
let r2 =
|
|
534
|
+
let r2 = k(n2, t2);
|
|
524
535
|
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
525
536
|
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
526
537
|
t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
|
|
527
538
|
const u2 = n2.props.base.conversionCodes;
|
|
528
539
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
529
|
-
const l2 =
|
|
540
|
+
const l2 = ge(n2);
|
|
530
541
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
531
542
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
532
543
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
533
|
-
const d2 =
|
|
544
|
+
const d2 = ne(t2);
|
|
534
545
|
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids && (c2.ids = [d2.ids]));
|
|
535
546
|
const m2 = n2.props.base.successOperation;
|
|
536
547
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
537
548
|
}
|
|
538
|
-
function
|
|
549
|
+
function Z(e2, t2, s2, n2, o2) {
|
|
539
550
|
const i2 = s2.code, a2 = s2.version;
|
|
540
551
|
let r2;
|
|
541
552
|
if (e2) {
|
|
542
553
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
543
|
-
const s3 =
|
|
544
|
-
e3 && s3 &&
|
|
554
|
+
const s3 = ne(t3);
|
|
555
|
+
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
545
556
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
546
557
|
const o3 = e2.completeTaskResult;
|
|
547
558
|
if (o3) {
|
|
@@ -553,13 +564,13 @@ function K(e2, t2, s2, n2, o2) {
|
|
|
553
564
|
}
|
|
554
565
|
if (e2.completeTaskParam) {
|
|
555
566
|
const t3 = e2.completeTaskParam;
|
|
556
|
-
r2 = t3.taskId, n2 && (n2.taskId = r2),
|
|
567
|
+
r2 = t3.taskId, n2 && (n2.taskId = r2), w(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
|
|
557
568
|
}
|
|
558
|
-
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap,
|
|
569
|
+
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, w(i2, a2, "_currentActivityName", e2.taskName);
|
|
559
570
|
}
|
|
560
|
-
return n2 && (n2.operationResult = o2), t2 ||
|
|
571
|
+
return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
|
|
561
572
|
}
|
|
562
|
-
async function
|
|
573
|
+
async function ee(e2, t2) {
|
|
563
574
|
const s2 = await function(e3) {
|
|
564
575
|
return new Promise((t3, s3) => {
|
|
565
576
|
var _a, _b, _c, _d;
|
|
@@ -568,7 +579,7 @@ async function Q(e2, t2) {
|
|
|
568
579
|
let s4 = false;
|
|
569
580
|
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
570
581
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
571
|
-
s4 =
|
|
582
|
+
s4 = v(t4, n2, o2);
|
|
572
583
|
}
|
|
573
584
|
true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
|
|
574
585
|
t3(e4);
|
|
@@ -584,30 +595,30 @@ async function Q(e2, t2) {
|
|
|
584
595
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
585
596
|
let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
586
597
|
if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
587
|
-
const g2 =
|
|
598
|
+
const g2 = X(e2);
|
|
588
599
|
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
589
600
|
c.post(f2, g2).then((s3) => {
|
|
590
601
|
let n2 = true;
|
|
591
|
-
s3 && (n2 =
|
|
602
|
+
s3 && (n2 = Z(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
592
603
|
}).catch((e3) => {
|
|
593
604
|
a2(e3);
|
|
594
605
|
});
|
|
595
606
|
} else i2(true);
|
|
596
607
|
});
|
|
597
608
|
}
|
|
598
|
-
function
|
|
609
|
+
function te(e2, t2) {
|
|
599
610
|
if (t2) {
|
|
600
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 =
|
|
601
|
-
c2.assigneeId = r2,
|
|
602
|
-
|
|
611
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = X(e2);
|
|
612
|
+
c2.assigneeId = r2, ae(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
613
|
+
P(s2, o2);
|
|
603
614
|
});
|
|
604
615
|
}
|
|
605
616
|
}
|
|
606
|
-
function
|
|
607
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 =
|
|
617
|
+
function se(e2) {
|
|
618
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = ne(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
608
619
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
609
620
|
}
|
|
610
|
-
function
|
|
621
|
+
function ne(t2) {
|
|
611
622
|
if (t2.entity) {
|
|
612
623
|
let s2 = e(t2.entity.page);
|
|
613
624
|
s2 || (s2 = {});
|
|
@@ -615,20 +626,20 @@ function ee(t2) {
|
|
|
615
626
|
return n2 && Object.assign(s2, n2), s2;
|
|
616
627
|
}
|
|
617
628
|
}
|
|
618
|
-
function
|
|
629
|
+
function oe(e2, t2) {
|
|
619
630
|
if (t2) {
|
|
620
631
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
621
632
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
622
633
|
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
623
|
-
const d2 =
|
|
634
|
+
const d2 = se(e2);
|
|
624
635
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
625
636
|
const m2 = c.post(p2, d2);
|
|
626
637
|
m2 && m2.then((e3) => {
|
|
627
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
638
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && q(s2, i2, e3, null, false), P(s2, i2);
|
|
628
639
|
});
|
|
629
640
|
}
|
|
630
641
|
}
|
|
631
|
-
async function
|
|
642
|
+
async function ie(e2, t2) {
|
|
632
643
|
if (t2) {
|
|
633
644
|
const s2 = await function(e3) {
|
|
634
645
|
return new Promise((t3, s3) => {
|
|
@@ -638,7 +649,7 @@ async function se(e2, t2) {
|
|
|
638
649
|
let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
639
650
|
if (true === s4) {
|
|
640
651
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
641
|
-
s4 =
|
|
652
|
+
s4 = v(t4, n2, o2);
|
|
642
653
|
}
|
|
643
654
|
true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputRemark"), u().t("superPageRuntimeMessage.remark"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
644
655
|
t3(e4);
|
|
@@ -652,62 +663,62 @@ async function se(e2, t2) {
|
|
|
652
663
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
653
664
|
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons/copies";
|
|
654
665
|
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
655
|
-
const m2 =
|
|
666
|
+
const m2 = se(e2);
|
|
656
667
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
657
668
|
const f2 = c.post(d2, m2);
|
|
658
669
|
f2 && f2.then((e3) => {
|
|
659
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }),
|
|
670
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), P(i2, a2);
|
|
660
671
|
});
|
|
661
672
|
}
|
|
662
673
|
}
|
|
663
674
|
}
|
|
664
|
-
function
|
|
675
|
+
function ae(e2, t2, s2, n2) {
|
|
665
676
|
return new Promise((i2, a2) => {
|
|
666
677
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
667
678
|
if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
668
679
|
const m2 = c.post(s2, t2);
|
|
669
680
|
m2 && m2.then((t3) => {
|
|
670
681
|
let s3 = true;
|
|
671
|
-
t3 && (s3 =
|
|
682
|
+
t3 && (s3 = Z(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
672
683
|
}).catch((e3) => {
|
|
673
684
|
a2(e3);
|
|
674
685
|
});
|
|
675
686
|
});
|
|
676
687
|
}
|
|
677
|
-
function
|
|
688
|
+
function re(e2) {
|
|
678
689
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
|
|
679
690
|
let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
680
691
|
if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
681
|
-
const p2 = t2.code, d2 =
|
|
692
|
+
const p2 = t2.code, d2 = ne(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
682
693
|
return c.post(r2, m2);
|
|
683
694
|
}
|
|
684
|
-
function
|
|
685
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 =
|
|
686
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
687
|
-
|
|
695
|
+
function ce(e2, t2) {
|
|
696
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = X(e2);
|
|
697
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ae(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
698
|
+
P(s2, o2);
|
|
688
699
|
});
|
|
689
700
|
}
|
|
690
|
-
function
|
|
701
|
+
function ue(e2) {
|
|
691
702
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
|
|
692
703
|
let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
693
|
-
const r2 =
|
|
704
|
+
const r2 = X(e2);
|
|
694
705
|
if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
|
|
695
706
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
696
707
|
}
|
|
697
|
-
function
|
|
708
|
+
function le(e2, t2) {
|
|
698
709
|
if (t2) {
|
|
699
710
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
700
711
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
701
712
|
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
702
|
-
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 =
|
|
713
|
+
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = X(e2);
|
|
703
714
|
m2.ids = d2;
|
|
704
715
|
const f2 = c.post(p2, m2);
|
|
705
716
|
f2 && f2.then((e3) => {
|
|
706
|
-
|
|
717
|
+
q(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, i2);
|
|
707
718
|
});
|
|
708
719
|
}
|
|
709
720
|
}
|
|
710
|
-
function
|
|
721
|
+
function pe(e2, t2, s2) {
|
|
711
722
|
let n2 = false;
|
|
712
723
|
return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
|
|
713
724
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -769,32 +780,32 @@ function ce(e2, t2, s2) {
|
|
|
769
780
|
return false;
|
|
770
781
|
}(t2))), n2;
|
|
771
782
|
}
|
|
772
|
-
function
|
|
773
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
783
|
+
function de(e2, t2) {
|
|
784
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, me(e2, t2).then((t3) => {
|
|
774
785
|
e2.isRefresh = true;
|
|
775
786
|
});
|
|
776
787
|
}
|
|
777
|
-
function
|
|
788
|
+
function me(e2, s2, o2) {
|
|
778
789
|
const i2 = e2.pageType;
|
|
779
790
|
if (i2 && "form" === i2) {
|
|
780
791
|
e2.canClick = false;
|
|
781
792
|
return t(e2) ? function(e3, t2, s3) {
|
|
782
793
|
return new Promise((o3, i3) => {
|
|
783
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
794
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ne(e3);
|
|
784
795
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
785
796
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
786
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2,
|
|
797
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
787
798
|
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
788
799
|
const t3 = {};
|
|
789
800
|
e3.tableUuids.forEach((e4) => {
|
|
790
801
|
const s4 = r(u2, l2, e4);
|
|
791
802
|
t3[s4] = s4;
|
|
792
|
-
}),
|
|
803
|
+
}), C2.listCodesMap = t3;
|
|
793
804
|
}
|
|
794
|
-
f2 && (
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap,
|
|
805
|
+
f2 && (C2.ids = fe(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
806
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = _();
|
|
807
|
+
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
808
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Z(t3, true, e3), e3.workflowRules = U(e3);
|
|
798
809
|
const s4 = e3.pageType;
|
|
799
810
|
s4 && "form" === s4 && function(e4) {
|
|
800
811
|
(function(e5) {
|
|
@@ -826,30 +837,30 @@ function le(e2, s2, o2) {
|
|
|
826
837
|
}
|
|
827
838
|
e5.actionPermissionMap = s5;
|
|
828
839
|
}(e4);
|
|
829
|
-
}(e3), e3.canClick = true,
|
|
840
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
830
841
|
}).catch((t3) => {
|
|
831
842
|
e3.canClick = true, i3(t3);
|
|
832
843
|
});
|
|
833
844
|
});
|
|
834
845
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
835
846
|
return new Promise((o3, i3) => {
|
|
836
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
847
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ne(e3);
|
|
837
848
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
838
849
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
839
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2,
|
|
840
|
-
if (!
|
|
850
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
851
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = fe(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
841
852
|
const t3 = {};
|
|
842
853
|
e3.tableUuids.forEach((e4) => {
|
|
843
854
|
const s4 = r(u2, l2, e4);
|
|
844
855
|
t3[s4] = s4;
|
|
845
|
-
}),
|
|
856
|
+
}), T2.listCodesMap = t3;
|
|
846
857
|
}
|
|
847
|
-
e3.refercePropMap && (
|
|
848
|
-
const
|
|
849
|
-
|
|
858
|
+
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
859
|
+
const h2 = C2 + "/dsc/commons/gets", P2 = _();
|
|
860
|
+
P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(h2, T2).then((t3) => {
|
|
850
861
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
851
|
-
const s4 = e3.customRules, n2 = e3.rules, i4 =
|
|
852
|
-
e3.rules = i4, e3.canClick = true,
|
|
862
|
+
const s4 = e3.customRules, n2 = e3.rules, i4 = O(s4, n2);
|
|
863
|
+
e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
|
|
853
864
|
}).catch((t3) => {
|
|
854
865
|
e3.canClick = true, i3(t3);
|
|
855
866
|
});
|
|
@@ -860,10 +871,10 @@ function le(e2, s2, o2) {
|
|
|
860
871
|
e3(true);
|
|
861
872
|
});
|
|
862
873
|
}
|
|
863
|
-
function
|
|
874
|
+
function fe(e2) {
|
|
864
875
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
865
876
|
}
|
|
866
|
-
function
|
|
877
|
+
function ge(e2) {
|
|
867
878
|
const t2 = e2.props.setValueList;
|
|
868
879
|
if (t2) {
|
|
869
880
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -871,41 +882,41 @@ function de(e2) {
|
|
|
871
882
|
}
|
|
872
883
|
return null;
|
|
873
884
|
}
|
|
874
|
-
function
|
|
885
|
+
function be(e2, t2) {
|
|
875
886
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
876
887
|
return c.post(i2, o2);
|
|
877
888
|
}
|
|
878
|
-
function
|
|
889
|
+
function Ce(e2) {
|
|
879
890
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
880
891
|
return c.get(s2);
|
|
881
892
|
}
|
|
882
|
-
function
|
|
893
|
+
function Te(e2) {
|
|
883
894
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
884
895
|
return c.delete(t2);
|
|
885
896
|
}
|
|
886
897
|
export {
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
898
|
+
q as dealAfterOperate,
|
|
899
|
+
Z as dealCompleteTaskParam,
|
|
900
|
+
Te as deleteChartCondition,
|
|
901
|
+
oe as doAddSigner,
|
|
902
|
+
te as doAssign,
|
|
903
|
+
ie as doCreateCopyTask,
|
|
904
|
+
K as doImportFinally,
|
|
905
|
+
le as doRemoveSigners,
|
|
906
|
+
ce as doReturnTaskTo,
|
|
907
|
+
L as exportFormReport,
|
|
908
|
+
ne as getAdditionalParamMap,
|
|
909
|
+
me as getFormData,
|
|
910
|
+
ue as getRemoveSigner,
|
|
911
|
+
$ as getSaveFormRequest,
|
|
912
|
+
F as getSaveFormRequestWithRow,
|
|
913
|
+
re as getTaskInformitions,
|
|
914
|
+
pe as isVisibleWorkflowButton,
|
|
915
|
+
Q as judgeDataNumber,
|
|
916
|
+
Ce as listChartConditions,
|
|
917
|
+
Y as refreshFormOrListPage,
|
|
918
|
+
de as refreshPage,
|
|
919
|
+
be as saveChartConditionBase,
|
|
920
|
+
j as standardEvents,
|
|
921
|
+
J as updateValuesWhenCloseDialog
|
|
911
922
|
};
|