super-page-runtime 2.3.45-sit1 → 2.3.46-sit1
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/standard-event.js +317 -316
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +13 -13
- package/dist/es/style.css +2 -2
- package/package.json +2 -2
|
@@ -3,69 +3,70 @@ import c from "agilebuilder-ui/src/utils/request";
|
|
|
3
3
|
import { getI18n as l } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-plus";
|
|
5
5
|
import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as C, getRunCurrentRole as b } from "agilebuilder-ui/src/utils/auth";
|
|
6
|
-
import { getComponentRef as w } from "../global-refs.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { handleEvent as
|
|
10
|
-
import { setStoreInfo as
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import { caculateShowCondition as
|
|
13
|
-
import
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
15
|
-
import { getWorkflowRules as
|
|
16
|
-
import { functions as
|
|
17
|
-
import { usePageContextStore as
|
|
18
|
-
import { isMobileBrowser as
|
|
19
|
-
import { h as
|
|
20
|
-
import
|
|
21
|
-
import { cacheBackfillData as
|
|
22
|
-
const
|
|
23
|
-
return
|
|
6
|
+
import { getComponentRef as w, getComponentRefByCode as T } from "../global-refs.js";
|
|
7
|
+
import k from "../eventBus.js";
|
|
8
|
+
import h from "axios";
|
|
9
|
+
import { handleEvent as y, getTableUuid as P, doAfterClickEvent as v } from "./event-util.js";
|
|
10
|
+
import { setStoreInfo as I } from "../store-util.js";
|
|
11
|
+
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
|
|
12
|
+
import { caculateShowCondition as x, updateChartDatasources as N, getVariableValue as O, setVariableValue as A } from "../page-helper-util.js";
|
|
13
|
+
import E from "./print-label.js";
|
|
14
|
+
import { getTableNameByTableUuid as U, getCurrentUserFileTasks as _, setFileTaskRead as j } from "../table-utils.js";
|
|
15
|
+
import { getWorkflowRules as D, packageCustomRules as W } from "./validator-util.js";
|
|
16
|
+
import { functions as L } from "../api/page-expose-util.js";
|
|
17
|
+
import { usePageContextStore as B } from "../page-store.js";
|
|
18
|
+
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
19
|
+
import { h as V } from "vue";
|
|
20
|
+
import $ from "../../views/assemblys/common/file-task-notice.vue.js";
|
|
21
|
+
import { cacheBackfillData as q, removeCacheFillData as H, hasBackfillData as G, getRealFillData as J, removeCacheFillDataById as Y } from "./data-backfill-util.js";
|
|
22
|
+
const z = { save: function(e2) {
|
|
23
|
+
return ee(e2, false);
|
|
24
24
|
}, saveList: function(e2) {
|
|
25
|
-
return
|
|
25
|
+
return ee(e2, true);
|
|
26
26
|
}, exportForm: function(e2) {
|
|
27
27
|
const t2 = e2.pageContext.code + "_";
|
|
28
|
-
|
|
28
|
+
k.$emit(t2 + "export-form-report", e2);
|
|
29
29
|
}, exportPDF: function(e2) {
|
|
30
30
|
const t2 = e2.pageContext.code + "_";
|
|
31
|
-
|
|
31
|
+
k.$emit(t2 + "export-pdf-report", e2);
|
|
32
32
|
}, submit: function(e2) {
|
|
33
|
-
return
|
|
33
|
+
return de(e2, false, "submit", "/dsc/commons/submits");
|
|
34
34
|
}, submitList: function(e2) {
|
|
35
|
-
return
|
|
35
|
+
return de(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
36
36
|
}, agree: function(e2) {
|
|
37
|
-
return
|
|
37
|
+
return de(e2, false, "agree", "/dsc/commons/approves");
|
|
38
38
|
}, agreeList: function(e2) {
|
|
39
|
-
return
|
|
39
|
+
return de(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
40
40
|
}, disagree: function(e2) {
|
|
41
|
-
return
|
|
41
|
+
return de(e2, false, "disagree", "/dsc/commons/refuses");
|
|
42
42
|
}, disagreeList: function(e2) {
|
|
43
|
-
return
|
|
43
|
+
return de(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
44
44
|
}, back: function(e2) {
|
|
45
45
|
const t2 = e2.pageContext, n2 = t2.entity ? t2.entity.data : {}, o2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
46
|
-
|
|
46
|
+
ce(t2, e2.configureObj, n2, o2);
|
|
47
47
|
}, delete: function(e2) {
|
|
48
48
|
return function(e3) {
|
|
49
49
|
return new Promise((s2, i2) => {
|
|
50
50
|
const a2 = e3.ids;
|
|
51
51
|
if (!a2 || 0 === a2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
52
52
|
p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
53
|
-
var _a, _b, _c;
|
|
54
|
-
const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
53
|
+
var _a, _b, _c, _d, _e2, _f;
|
|
54
|
+
const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = U(r2, m2);
|
|
55
55
|
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
56
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
|
-
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, b2 = o(r2),
|
|
58
|
-
r2.beanName && (
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
y2
|
|
57
|
+
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, b2 = o(r2), k2 = S(l2, r2), h2 = { ids: a2, functionCode: k2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: b2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
58
|
+
if (r2.beanName && (h2.beanName = r2.beanName), m2) {
|
|
59
|
+
const t2 = (_c = (_b = (_a = T(e3.pageContext, m2)) == null ? void 0 : _a.getConfigure()) == null ? void 0 : _b.props) == null ? void 0 : _c.deleteLogicSetting;
|
|
60
|
+
t2 && t2 && ("object" == typeof t2 ? h2.deleteLogicSetting = JSON.stringify(t2) : "string" == typeof t2 && (h2.deleteLogicSetting = t2));
|
|
61
|
+
}
|
|
62
|
+
const y2 = (_d = l2.props.base) == null ? void 0 : _d.logSetting;
|
|
63
|
+
y2 && (h2.logSettingText = y2.join(""));
|
|
63
64
|
const P2 = l2.props.base.isSafeDelete;
|
|
64
|
-
P2 && (
|
|
65
|
-
const v2 = (
|
|
66
|
-
v2 && (
|
|
65
|
+
P2 && (h2.isSafeDelete = P2);
|
|
66
|
+
const v2 = (_f = (_e2 = l2.runtime) == null ? void 0 : _e2.props) == null ? void 0 : _f.title;
|
|
67
|
+
v2 && (h2.currentOperation = v2), h2.isMobile = F(), c.delete(g2, { data: h2 }).then((e4) => {
|
|
67
68
|
const t2 = w(r2, m2);
|
|
68
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()),
|
|
69
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ie(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
69
70
|
}).catch((e4) => {
|
|
70
71
|
i2(e4);
|
|
71
72
|
});
|
|
@@ -89,7 +90,7 @@ const Y = { save: function(e2) {
|
|
|
89
90
|
const b2 = e3.listCode;
|
|
90
91
|
b2 && (m2 += "&listCode=" + b2);
|
|
91
92
|
n2.beanName && (m2 += "&beanName=" + n2.beanName);
|
|
92
|
-
const w2 =
|
|
93
|
+
const w2 = S(o2, n2);
|
|
93
94
|
w2 && (m2 += "&functionCode=" + w2);
|
|
94
95
|
n2.tableName && (m2 += "&tableName=" + n2.tableName);
|
|
95
96
|
n2.code && (m2 += "&pageCode=" + n2.code);
|
|
@@ -98,7 +99,7 @@ const Y = { save: function(e2) {
|
|
|
98
99
|
T2 && (m2 += "&JWT=" + T2);
|
|
99
100
|
const k2 = (_d = (_c = o2.runtime) == null ? void 0 : _c.props) == null ? void 0 : _d.title;
|
|
100
101
|
k2 && (m2 += "¤tOperation=" + encodeURI(k2));
|
|
101
|
-
m2 += "&isMobile=" +
|
|
102
|
+
m2 += "&isMobile=" + F();
|
|
102
103
|
const h2 = "_RUN_CURRENT_ROLE", y2 = g(h2);
|
|
103
104
|
y2 && (m2 += "&" + h2 + "=" + y2);
|
|
104
105
|
if (s2) {
|
|
@@ -112,7 +113,7 @@ const Y = { save: function(e2) {
|
|
|
112
113
|
}(e2);
|
|
113
114
|
}, import: function(e2) {
|
|
114
115
|
const t2 = e2.pageContext.code + "_";
|
|
115
|
-
|
|
116
|
+
k.$emit(t2 + "import-file", e2);
|
|
116
117
|
}, export: function(e2) {
|
|
117
118
|
return function(e3) {
|
|
118
119
|
return new Promise((t2, n2) => {
|
|
@@ -123,9 +124,9 @@ const Y = { save: function(e2) {
|
|
|
123
124
|
l2 || (l2 = o2.code);
|
|
124
125
|
let u2 = false;
|
|
125
126
|
u2 = void 0 !== i2.isAsync && null !== i2.isAsync && i2.isAsync;
|
|
126
|
-
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 =
|
|
127
|
+
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 = S(s2, o2), m2 = l2, f2 = { backendUrl: o2.backendUrl, pageContext: o2 }, g2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
127
128
|
g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, a2, d2, null, f2, u2, o2.code, p2), u2 && setTimeout(() => {
|
|
128
|
-
|
|
129
|
+
qe(o2);
|
|
129
130
|
}, 100);
|
|
130
131
|
});
|
|
131
132
|
}(e2);
|
|
@@ -136,150 +137,150 @@ const Y = { save: function(e2) {
|
|
|
136
137
|
const t2 = e2.pageContext, n2 = e2.tableUuid;
|
|
137
138
|
w(t2, n2).showMobileSearch();
|
|
138
139
|
}, workflowSave: function(e2) {
|
|
139
|
-
return
|
|
140
|
+
return k.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
140
141
|
return new Promise((o2, s2) => {
|
|
141
142
|
const i2 = e3.pageContext;
|
|
142
|
-
if (
|
|
143
|
+
if (Z(i2)) return void o2(false);
|
|
143
144
|
const a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
144
145
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
145
146
|
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
146
|
-
const m2 =
|
|
147
|
+
const m2 = ge(e3);
|
|
147
148
|
let f2;
|
|
148
|
-
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2),
|
|
149
|
+
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), q(i2.code, a2), f2.then((t2) => {
|
|
149
150
|
let n2 = true;
|
|
150
|
-
t2 && (
|
|
151
|
+
t2 && (H(i2.code, a2), n2 = Ce(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), k.$emit("clearTableAllEndEditing"), o2(true);
|
|
151
152
|
}).catch((e4) => {
|
|
152
153
|
s2(e4);
|
|
153
154
|
});
|
|
154
155
|
});
|
|
155
156
|
}(e2);
|
|
156
157
|
}, workflowStart: function(e2) {
|
|
157
|
-
return
|
|
158
|
+
return k.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
158
159
|
return new Promise((o2, s2) => {
|
|
159
160
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
160
|
-
if (
|
|
161
|
+
if (Z(i2)) return void o2(false);
|
|
161
162
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/start";
|
|
162
163
|
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
163
|
-
const m2 =
|
|
164
|
+
const m2 = ge(e3);
|
|
164
165
|
let f2;
|
|
165
|
-
a2.workflow_id || a2.WORKFLOW_ID ? (d2 = t(p2, i2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, i2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2),
|
|
166
|
+
a2.workflow_id || a2.WORKFLOW_ID ? (d2 = t(p2, i2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, i2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), q(i2.code, a2), f2.then((t2) => {
|
|
166
167
|
let n2 = true;
|
|
167
|
-
t2 && (
|
|
168
|
+
t2 && (H(i2.code, a2), n2 = Ce(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulStart") }), k.$emit("clearTableAllEndEditing"), o2(true);
|
|
168
169
|
}).catch((e4) => {
|
|
169
170
|
s2(e4);
|
|
170
171
|
});
|
|
171
172
|
});
|
|
172
173
|
}(e2);
|
|
173
174
|
}, submitProcess: function(e2) {
|
|
174
|
-
return
|
|
175
|
+
return k.$emit("clearTableAllStartEditing"), function(e3) {
|
|
175
176
|
return new Promise((o2, s2) => {
|
|
176
177
|
const i2 = e3.pageContext;
|
|
177
|
-
if (
|
|
178
|
+
if (Z(i2)) return void o2(false);
|
|
178
179
|
const a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
179
180
|
let p2 = t(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
180
181
|
if (p2 = n(p2, a2, r2, i2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
181
|
-
const d2 =
|
|
182
|
-
|
|
182
|
+
const d2 = ge(e3);
|
|
183
|
+
q(i2.code, i2.entity.data);
|
|
183
184
|
const m2 = c.post(p2, d2);
|
|
184
185
|
m2 ? m2.then((t2) => {
|
|
185
186
|
let n2 = true;
|
|
186
|
-
t2 && (
|
|
187
|
+
t2 && (H(i2.code, i2.entity.data), n2 = Ce(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), k.$emit("clearTableAllEndEditing"), o2(true);
|
|
187
188
|
}).catch((e4) => {
|
|
188
189
|
s2(e4);
|
|
189
|
-
}) :
|
|
190
|
+
}) : H(i2.code, i2.entity.data);
|
|
190
191
|
});
|
|
191
192
|
}(e2);
|
|
192
193
|
}, submitTask: function(e2) {
|
|
193
|
-
return
|
|
194
|
+
return be(e2, "SUBMIT");
|
|
194
195
|
}, approve: function(e2) {
|
|
195
|
-
return
|
|
196
|
+
return be(e2, "APPROVE");
|
|
196
197
|
}, refuse: function(e2) {
|
|
197
|
-
return
|
|
198
|
+
return be(e2, "REFUSE");
|
|
198
199
|
}, readed: function(e2) {
|
|
199
|
-
return
|
|
200
|
+
return be(e2, "READED");
|
|
200
201
|
}, agreement: function(e2) {
|
|
201
|
-
return
|
|
202
|
+
return be(e2, "AGREEMENT");
|
|
202
203
|
}, oppose: function(e2) {
|
|
203
|
-
return
|
|
204
|
+
return be(e2, "OPPOSE");
|
|
204
205
|
}, kiken: function(e2) {
|
|
205
|
-
return
|
|
206
|
+
return be(e2, "KIKEN");
|
|
206
207
|
}, assign: function(e2) {
|
|
207
208
|
return function(e3) {
|
|
208
209
|
const t2 = e3.pageContext, n2 = t2.code + "_";
|
|
209
|
-
|
|
210
|
+
k.$emit(n2 + "assign-task", e3);
|
|
210
211
|
}(e2);
|
|
211
212
|
}, copyTask: function(e2) {
|
|
212
213
|
return function(e3) {
|
|
213
214
|
const t2 = e3.pageContext, n2 = t2.code + "_";
|
|
214
|
-
|
|
215
|
+
k.$emit(n2 + "copy-task", e3);
|
|
215
216
|
}(e2);
|
|
216
217
|
}, addSigner: function(e2) {
|
|
217
218
|
return function(e3) {
|
|
218
219
|
const t2 = e3.pageContext, n2 = t2.code + "_";
|
|
219
|
-
|
|
220
|
+
k.$emit(n2 + "add-signer", e3);
|
|
220
221
|
}(e2);
|
|
221
222
|
}, drawTask: function(e2) {
|
|
222
223
|
return function(e3) {
|
|
223
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 =
|
|
224
|
-
return
|
|
224
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = ge(e3);
|
|
225
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulDrawTask");
|
|
225
226
|
}(e2);
|
|
226
227
|
}, abandonReceive: function(e2) {
|
|
227
228
|
return function(e3) {
|
|
228
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 =
|
|
229
|
-
return
|
|
229
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = ge(e3);
|
|
230
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
230
231
|
}(e2);
|
|
231
232
|
}, returnToPreviousTask: function(e2) {
|
|
232
233
|
return function(e3) {
|
|
233
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 =
|
|
234
|
-
return
|
|
234
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = ge(e3);
|
|
235
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
235
236
|
}(e2);
|
|
236
237
|
}, endInstance: function(e2) {
|
|
237
238
|
return function(e3) {
|
|
238
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance", i2 =
|
|
239
|
-
return
|
|
239
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance", i2 = ge(e3);
|
|
240
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulEndInstance");
|
|
240
241
|
}(e2);
|
|
241
242
|
}, returnTaskTo: function(e2) {
|
|
242
243
|
return function(e3) {
|
|
243
244
|
const t2 = e3.pageContext, n2 = t2.code + "_";
|
|
244
|
-
|
|
245
|
+
k.$emit(n2 + "choose-return-node", e3);
|
|
245
246
|
}(e2);
|
|
246
247
|
}, removeSigner: function(e2) {
|
|
247
248
|
return function(e3) {
|
|
248
249
|
const t2 = e3.pageContext, n2 = t2.code + "_";
|
|
249
|
-
|
|
250
|
+
k.$emit(n2 + "remove-signer", e3);
|
|
250
251
|
}(e2);
|
|
251
252
|
}, retrieveTask: function(e2) {
|
|
252
253
|
return function(e3) {
|
|
253
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves", i2 =
|
|
254
|
-
return
|
|
254
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves", i2 = ge(e3);
|
|
255
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulRetrieve");
|
|
255
256
|
}(e2);
|
|
256
257
|
}, extractWorkflow: function(e2) {
|
|
257
|
-
return
|
|
258
|
+
return Ee(e2);
|
|
258
259
|
}, extractWorkflowEvent: function(e2) {
|
|
259
260
|
return function(e3) {
|
|
260
261
|
const t2 = e3.pageContext;
|
|
261
|
-
|
|
262
|
+
k.$emit(t2.code + "_event-call-component", { componentName: "extract-workflow-dialog", componentProps: { pageContext: e3.pageContext, configure: e3.configureObj } });
|
|
262
263
|
}(e2);
|
|
263
264
|
}, cancelExtractWorkflow: function(e2) {
|
|
264
265
|
return function(e3) {
|
|
265
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract", i2 =
|
|
266
|
-
return
|
|
266
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract", i2 = ge(e3);
|
|
267
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
267
268
|
}(e2);
|
|
268
269
|
}, approveExtractWorkflow: function(e2) {
|
|
269
270
|
return function(e3) {
|
|
270
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract", i2 =
|
|
271
|
-
return
|
|
271
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract", i2 = ge(e3);
|
|
272
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulOperation");
|
|
272
273
|
}(e2);
|
|
273
274
|
}, refuseExtractWorkflow: function(e2) {
|
|
274
275
|
return function(e3) {
|
|
275
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract", i2 =
|
|
276
|
-
return
|
|
276
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract", i2 = ge(e3);
|
|
277
|
+
return Se(e3, i2, s2, "superPageRuntimeMessage.successfulOperation");
|
|
277
278
|
}(e2);
|
|
278
279
|
}, viewDetail: function(e2) {
|
|
279
280
|
}, lineEditCreate: function(e2) {
|
|
280
281
|
return function(e3) {
|
|
281
282
|
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = w(t2, n2);
|
|
282
|
-
o2 && (e3.getDefaultValueFunc =
|
|
283
|
+
o2 && (e3.getDefaultValueFunc = R, o2.createRow(e3.listCode, {}, e3));
|
|
283
284
|
}(e2);
|
|
284
285
|
}, printLabel: function(e2) {
|
|
285
286
|
return function(e3) {
|
|
@@ -288,14 +289,14 @@ const Y = { save: function(e2) {
|
|
|
288
289
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
289
290
|
} catch (e4) {
|
|
290
291
|
}
|
|
291
|
-
|
|
292
|
+
E.printLabel(e3, t2);
|
|
292
293
|
}(e2);
|
|
293
294
|
}, queryCharts: function(e2) {
|
|
294
|
-
|
|
295
|
+
K(e2);
|
|
295
296
|
}, resetCharts: function(t2) {
|
|
296
297
|
var _a, _b;
|
|
297
298
|
const n2 = t2.pageContext;
|
|
298
|
-
Object.assign(n2.entity.data, e((_a = n2.initChartData) == null ? void 0 : _a.data)), Object.assign(n2.entity.page, e((_b = n2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true,
|
|
299
|
+
Object.assign(n2.entity.data, e((_a = n2.initChartData) == null ? void 0 : _a.data)), Object.assign(n2.entity.page, e((_b = n2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, K(t2);
|
|
299
300
|
}, exportCharts: function(e2) {
|
|
300
301
|
!function(e3) {
|
|
301
302
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
@@ -318,14 +319,14 @@ const Y = { save: function(e2) {
|
|
|
318
319
|
let c2, l2 = n2.label;
|
|
319
320
|
l2 || (l2 = n2.code);
|
|
320
321
|
c2 = l2;
|
|
321
|
-
const u2 = { reportDataList: r2, beanName: n2.beanName, systemCode: n2.systemCode, pageCode: n2.code }, p2 =
|
|
322
|
+
const u2 = { reportDataList: r2, beanName: n2.beanName, systemCode: n2.systemCode, pageCode: n2.code }, p2 = ye(n2);
|
|
322
323
|
u2.additionalParamMap = p2;
|
|
323
324
|
const d2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
324
325
|
d2 && (u2.currentOperation = d2);
|
|
325
|
-
u2.isMobile =
|
|
326
|
+
u2.isMobile = F(), u2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", u2.watermark = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
|
|
326
327
|
const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
|
|
327
|
-
|
|
328
|
-
|
|
328
|
+
Q();
|
|
329
|
+
h.post(f2, u2, { responseType: "blob" }).then((e4) => {
|
|
329
330
|
const t2 = document.createElement("a");
|
|
330
331
|
t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
|
|
331
332
|
}).finally(() => {
|
|
@@ -335,36 +336,36 @@ const Y = { save: function(e2) {
|
|
|
335
336
|
}, saveQueryCharts: function(e2) {
|
|
336
337
|
!function(e3) {
|
|
337
338
|
const t2 = e3.pageContext, n2 = e3.configureObj, o2 = t2.code + "_";
|
|
338
|
-
|
|
339
|
+
k.$emit(o2 + "save-chart-condition", { pageContext: t2, configureObj: n2 });
|
|
339
340
|
}(e2);
|
|
340
341
|
}, addTransactor: function(e2) {
|
|
341
342
|
return function(e3) {
|
|
342
343
|
const t2 = e3.pageContext, n2 = t2.code + "_";
|
|
343
|
-
|
|
344
|
+
k.$emit(n2 + "add-transactor", e3);
|
|
344
345
|
}(e2);
|
|
345
346
|
}, removeTransactor: function(e2) {
|
|
346
347
|
return function(e3) {
|
|
347
348
|
const t2 = e3.pageContext, n2 = t2.code + "_";
|
|
348
|
-
|
|
349
|
+
k.$emit(n2 + "remove-transactor", e3);
|
|
349
350
|
}(e2);
|
|
350
351
|
} };
|
|
351
|
-
function
|
|
352
|
+
function K(e2) {
|
|
352
353
|
const t2 = e2.pageContext, n2 = t2.initChartServiceConfigs;
|
|
353
354
|
if (!n2 || 0 == n2.length) return;
|
|
354
355
|
const o2 = e2.configureObj;
|
|
355
356
|
let s2 = null;
|
|
356
357
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
357
358
|
const i2 = s2 ? s2.state : void 0;
|
|
358
|
-
s2 && (s2.state = "disabled"),
|
|
359
|
+
s2 && (s2.state = "disabled"), N(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
359
360
|
s2 && (s2.state = i2);
|
|
360
361
|
}).catch(() => {
|
|
361
362
|
s2 && (s2.state = i2);
|
|
362
363
|
});
|
|
363
364
|
}
|
|
364
|
-
function
|
|
365
|
+
function X(e2, n2, s2, i2) {
|
|
365
366
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
366
367
|
e2.clickUuid = n2.uuid, e2.canClick = false;
|
|
367
|
-
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 =
|
|
368
|
+
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = L.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: S(n2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
368
369
|
if (e2.tableUuids && e2.tableUuids.length > 0) {
|
|
369
370
|
const t2 = {};
|
|
370
371
|
e2.tableUuids.forEach((n3) => {
|
|
@@ -377,14 +378,14 @@ function K(e2, n2, s2, i2) {
|
|
|
377
378
|
}
|
|
378
379
|
l2 && (b2.logSettingText = l2.join(""));
|
|
379
380
|
const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
380
|
-
T2 && (b2.currentOperation = T2), b2.isMobile =
|
|
381
|
-
const
|
|
381
|
+
T2 && (b2.currentOperation = T2), b2.isMobile = F();
|
|
382
|
+
const k2 = ye(e2);
|
|
382
383
|
let y2;
|
|
383
|
-
b2.additionalParamMap =
|
|
384
|
+
b2.additionalParamMap = k2, b2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", b2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = i2 ? function(e3, n3, o2, s3) {
|
|
384
385
|
return new Promise((i3, a3) => {
|
|
385
386
|
const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
|
|
386
|
-
|
|
387
|
-
const c3 =
|
|
387
|
+
Q();
|
|
388
|
+
const c3 = h.post(r3, o2, { headers: { "content-type": "application/json" }, responseType: "blob" });
|
|
388
389
|
window.$message.info("正在导出中..."), c3.then((t2) => {
|
|
389
390
|
const n4 = new Blob([t2.data]), o3 = document.createElement("a");
|
|
390
391
|
o3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(n4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3), i3(true);
|
|
@@ -395,8 +396,8 @@ function K(e2, n2, s2, i2) {
|
|
|
395
396
|
}(r2, f2, b2, e2.isTest) : function(e3, n3, o2, s3) {
|
|
396
397
|
return new Promise((i3, a3) => {
|
|
397
398
|
const r3 = t(n3, s3) + "/dsc/commons/export-reports";
|
|
398
|
-
|
|
399
|
-
|
|
399
|
+
Q();
|
|
400
|
+
h.post(r3, o2, { responseType: "blob" }).then((t2) => {
|
|
400
401
|
const n4 = new Blob([t2.data]);
|
|
401
402
|
let o3 = "报告.xlsx";
|
|
402
403
|
e3 && (o3 = e3);
|
|
@@ -407,20 +408,20 @@ function K(e2, n2, s2, i2) {
|
|
|
407
408
|
});
|
|
408
409
|
});
|
|
409
410
|
}(r2, f2, b2, e2.isTest), y2 && y2.then(() => {
|
|
410
|
-
|
|
411
|
+
v(e2, n2);
|
|
411
412
|
}).catch((t2) => {
|
|
412
|
-
window.$message.error("导出失败..."),
|
|
413
|
+
window.$message.error("导出失败..."), v(e2, n2);
|
|
413
414
|
});
|
|
414
415
|
}
|
|
415
|
-
function
|
|
416
|
-
|
|
416
|
+
function Q() {
|
|
417
|
+
h.defaults.headers.common.Authorization = f();
|
|
417
418
|
const e2 = b();
|
|
418
419
|
if (e2) {
|
|
419
420
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
420
|
-
|
|
421
|
+
h.defaults.headers.common[t2] = e2;
|
|
421
422
|
}
|
|
422
423
|
}
|
|
423
|
-
function
|
|
424
|
+
function Z(e2) {
|
|
424
425
|
if (e2.fileuploadInfo && e2.fileuploadInfo.length > 0) {
|
|
425
426
|
const t2 = e2.fileuploadInfo[0];
|
|
426
427
|
let n2;
|
|
@@ -428,57 +429,57 @@ function Q(e2) {
|
|
|
428
429
|
}
|
|
429
430
|
return false;
|
|
430
431
|
}
|
|
431
|
-
function
|
|
432
|
+
function ee(e2, t2) {
|
|
432
433
|
return new Promise((n2, o2) => {
|
|
433
434
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
|
|
434
435
|
let l2 = false;
|
|
435
|
-
if (c2 && "noOperation" === c2 && (l2 = true),
|
|
436
|
-
|
|
437
|
-
const u2 =
|
|
436
|
+
if (c2 && "noOperation" === c2 && (l2 = true), Z(s2)) return void n2(false);
|
|
437
|
+
q(s2.code, s2.entity.data);
|
|
438
|
+
const u2 = oe(s2, i2, "/dsc/commons", l2, a2, r2);
|
|
438
439
|
u2 ? u2.then((e3) => {
|
|
439
|
-
e3 &&
|
|
440
|
+
e3 && H(s2.code, s2.entity.data), ie(s2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), n2(e3);
|
|
440
441
|
}).catch((e3) => {
|
|
441
442
|
o2(e3);
|
|
442
|
-
}) : (
|
|
443
|
+
}) : (H(s2.code, s2.entity.data), o2("保存时request不存在"));
|
|
443
444
|
});
|
|
444
445
|
}
|
|
445
|
-
function
|
|
446
|
+
function te(e2, t2, n2, i2, a2, r2, c2) {
|
|
446
447
|
var _a, _b, _c;
|
|
447
|
-
const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 =
|
|
448
|
+
const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = S(t2, e2);
|
|
448
449
|
let m2 = c2;
|
|
449
450
|
m2 || (m2 = e2.entity.data);
|
|
450
451
|
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: l2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
451
452
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
452
453
|
const g2 = t2.props.base.conversionCodes;
|
|
453
454
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
454
|
-
const C2 =
|
|
455
|
+
const C2 = Be(t2);
|
|
455
456
|
C2 && (f2.autoSetValueData = C2);
|
|
456
457
|
const b2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
|
|
457
458
|
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = u2);
|
|
458
459
|
const w2 = e2.beanName;
|
|
459
460
|
w2 && (f2.beanName = w2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
460
|
-
const T2 =
|
|
461
|
+
const T2 = ye(e2);
|
|
461
462
|
f2.additionalParamMap = T2, void 0 !== n2 && (f2.unControlVersion = n2);
|
|
462
463
|
const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
463
|
-
return k2 && (f2.currentOperation = k2), f2.isMobile =
|
|
464
|
+
return k2 && (f2.currentOperation = k2), f2.isMobile = F(), f2;
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
-
const l2 = e2.systemCode, u2 = e2.backendUrl, p2 =
|
|
467
|
-
return r2 && r2.tableName && (p2.tableName = r2.tableName), c2 && (p2.isWorkflowEntity = false), a2 || "form" !== e2.pageType ?
|
|
466
|
+
function ne(e2, t2, n2, o2, s2, i2, a2, r2, c2) {
|
|
467
|
+
const l2 = e2.systemCode, u2 = e2.backendUrl, p2 = te(e2, t2, o2, s2, i2, null, a2);
|
|
468
|
+
return r2 && r2.tableName && (p2.tableName = r2.tableName), c2 && (p2.isWorkflowEntity = false), a2 || "form" !== e2.pageType ? se(l2, u2, p2, n2, a2, e2.isTest) : se(l2, u2, p2, n2, e2.entity.data, e2.isTest);
|
|
468
469
|
}
|
|
469
|
-
function
|
|
470
|
-
return
|
|
470
|
+
function oe(e2, t2, n2, o2, s2, i2) {
|
|
471
|
+
return ne(e2, t2, n2, o2, s2, i2, null, null);
|
|
471
472
|
}
|
|
472
|
-
function
|
|
473
|
+
function se(e2, o2, s2, i2, a2, r2) {
|
|
473
474
|
let l2, u2 = t(o2, r2) + i2;
|
|
474
475
|
return u2 = n(u2, e2, o2, r2), l2 = a2 && (a2.id || a2.ID) ? c.put(u2, s2) : c.post(u2, s2), l2;
|
|
475
476
|
}
|
|
476
|
-
function
|
|
477
|
-
const a2 =
|
|
477
|
+
function ie(t2, n2, o2, s2, i2) {
|
|
478
|
+
const a2 = ae(t2, n2, i2);
|
|
478
479
|
if (a2 && "list" === a2) !function(t3, n3, o3, s3) {
|
|
479
480
|
let i3 = n3.props.base.successOperation;
|
|
480
|
-
const a3 = n3.props.base.isNeedValueMapping, r2 =
|
|
481
|
-
i3 ||
|
|
481
|
+
const a3 = n3.props.base.isNeedValueMapping, r2 = P(t3, n3);
|
|
482
|
+
i3 || ue.includes(n3.name) || (i3 = "refresh");
|
|
482
483
|
if ("refresh" === i3) {
|
|
483
484
|
if (r2) {
|
|
484
485
|
w(t3, r2).refresh();
|
|
@@ -486,7 +487,7 @@ function se(t2, n2, o2, s2, i2) {
|
|
|
486
487
|
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
487
488
|
const s4 = e(t3.entity.page);
|
|
488
489
|
let i4 = o3;
|
|
489
|
-
i4 || (i4 = {}), Object.assign(s4, i4),
|
|
490
|
+
i4 || (i4 = {}), Object.assign(s4, i4), ce(t3, n3, s4, a3);
|
|
490
491
|
}
|
|
491
492
|
s3 && u({ message: l().t(s3), type: "success", showClose: true });
|
|
492
493
|
}(t2, n2, o2, s2), t2.canClick = true;
|
|
@@ -495,39 +496,39 @@ function se(t2, n2, o2, s2, i2) {
|
|
|
495
496
|
const o4 = n3;
|
|
496
497
|
let s3;
|
|
497
498
|
s3 = o4.entity ? o4.entity : o4, o4.formNo && (e2.initFormNo = o4.formNo);
|
|
498
|
-
|
|
499
|
+
re(e2, t3, { ...s3, ...e2.entity.page });
|
|
499
500
|
} else {
|
|
500
501
|
const n4 = t3.props.base.successOperation;
|
|
501
502
|
if (n4 && null !== n4) {
|
|
502
|
-
|
|
503
|
+
re(e2, t3, { ...e2.entity.page });
|
|
503
504
|
} else e2.canClick = true;
|
|
504
505
|
}
|
|
505
506
|
o3 && u({ message: l().t(o3), type: "success", showClose: true });
|
|
506
507
|
}(t2, n2, o2, s2);
|
|
507
508
|
else {
|
|
508
509
|
const e2 = n2.props.base.successOperation;
|
|
509
|
-
e2 && null !== e2 ?
|
|
510
|
+
e2 && null !== e2 ? re(t2, n2, null) : t2.canClick = true;
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
|
-
function
|
|
513
|
+
function ae(e2, t2, n2) {
|
|
513
514
|
let o2;
|
|
514
515
|
return void 0 === n2 ? o2 = t2.props.base.tableUuid ? "list" : null : false === n2 && (o2 = "form"), o2 || (o2 = e2.pageType), o2;
|
|
515
516
|
}
|
|
516
|
-
function
|
|
517
|
+
function re(e2, t2, n2) {
|
|
517
518
|
const o2 = t2.props.base.successOperation;
|
|
518
519
|
if (!o2 || null === o2) return;
|
|
519
520
|
const s2 = t2.props.base.isNeedValueMapping;
|
|
520
|
-
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ?
|
|
521
|
+
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? je(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ce(e2, t2, n2, s2), e2.canClick = true);
|
|
521
522
|
}
|
|
522
|
-
function
|
|
523
|
+
function ce(e2, t2, n2, o2) {
|
|
523
524
|
const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
524
525
|
if ("openWindow" === s2 || "newTab" === s2) window.parent ? window.parent.close() : window.close();
|
|
525
526
|
else {
|
|
526
527
|
const i2 = e2.tableName, a2 = void 0 !== o2 && true === o2 && n2 && void 0 !== n2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_close-dialog";
|
|
527
|
-
|
|
528
|
+
k.$has(r2) ? k.$emit(r2, { isNeedValueMapping: a2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: i2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
|
|
528
529
|
}
|
|
529
530
|
}
|
|
530
|
-
function
|
|
531
|
+
function le({ parentPageContext: e2, parentEventParams: t2, parentConfigureObj: n2, sourceModel: o2, sourceTableName: s2, valueMappings: i2 }) {
|
|
531
532
|
var _a;
|
|
532
533
|
i2 || (i2 = n2.runtime && n2.runtime.linkPage && n2.runtime.linkPage.valueMappings ? n2.runtime.linkPage.valueMappings : null) || (i2 = (_a = n2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
533
534
|
const a2 = e2.tableName;
|
|
@@ -537,48 +538,48 @@ function ce({ parentPageContext: e2, parentEventParams: t2, parentConfigureObj:
|
|
|
537
538
|
Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
|
|
538
539
|
const t4 = e4.source;
|
|
539
540
|
if (!t4) return;
|
|
540
|
-
const s3 = t4.split("."), i3 =
|
|
541
|
-
|
|
541
|
+
const s3 = t4.split("."), i3 = O(o3, s3), a3 = e4.target, r2 = M(null, a3);
|
|
542
|
+
A(n3.entity, r2, i3);
|
|
542
543
|
});
|
|
543
544
|
}
|
|
544
|
-
}(o2, i2, e2),
|
|
545
|
+
}(o2, i2, e2), y(null, e2, n2, "setValue", { sourceModel: o2, sourceTableName: s2, entity: e2.entity.data, targetTableName: a2, eventParams: t2 });
|
|
545
546
|
}
|
|
546
|
-
const
|
|
547
|
-
function
|
|
547
|
+
const ue = ["dropdown"];
|
|
548
|
+
function pe(e2, t2, n2, o2) {
|
|
548
549
|
var _a;
|
|
549
550
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
550
551
|
let s2 = o2;
|
|
551
552
|
s2 || (s2 = n2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
552
|
-
const i2 =
|
|
553
|
+
const i2 = ae(e2, t2);
|
|
553
554
|
if (i2 && "list" === i2 && !s2 && (s2 = "refresh"), "refresh" === s2) {
|
|
554
555
|
if (i2 && "list" === i2) {
|
|
555
|
-
const n3 =
|
|
556
|
+
const n3 = P(e2, t2);
|
|
556
557
|
if (n3) {
|
|
557
558
|
w(e2, n3).refresh();
|
|
558
559
|
}
|
|
559
560
|
} else if (i2 && "form" === i2) {
|
|
560
561
|
const t3 = e2.entity.data;
|
|
561
|
-
|
|
562
|
+
je(e2, t3.ID ? t3.ID : t3.id);
|
|
562
563
|
}
|
|
563
564
|
}
|
|
564
565
|
}
|
|
565
|
-
function
|
|
566
|
+
function de(e2, o2, s2, i2) {
|
|
566
567
|
return new Promise((r2, u2) => {
|
|
567
568
|
const d2 = e2.pageContext, m2 = e2.configureObj;
|
|
568
|
-
if (
|
|
569
|
+
if (Z(d2)) return void r2(false);
|
|
569
570
|
const f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
|
|
570
571
|
let w2 = false;
|
|
571
572
|
b2 && "noOperation" === b2 && (w2 = true);
|
|
572
573
|
let T2 = d2.tableName;
|
|
573
574
|
if (o2) {
|
|
574
575
|
const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
575
|
-
T2 =
|
|
576
|
-
} else
|
|
576
|
+
T2 = U(d2, t2);
|
|
577
|
+
} else q(d2.code, d2.entity.data);
|
|
577
578
|
const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
|
|
578
579
|
return new Promise((g3, C3) => {
|
|
579
580
|
const b3 = o3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
580
581
|
p.confirm(l().t(w3, { name: b3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
581
|
-
const a2 = e3.systemCode, l2 = e3.backendUrl, p2 =
|
|
582
|
+
const a2 = e3.systemCode, l2 = e3.backendUrl, p2 = te(e3, o3, i3, r3, u3, m3, null);
|
|
582
583
|
p2.tableName = f3;
|
|
583
584
|
let d4 = t(l2, e3.isTest) + s3;
|
|
584
585
|
d4 = n(d4, a2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
@@ -592,23 +593,23 @@ function pe(e2, o2, s2, i2) {
|
|
|
592
593
|
});
|
|
593
594
|
}(d2, m2, i2, w2, f2, g2, s2, C2, T2);
|
|
594
595
|
k2 ? k2.then((e3) => {
|
|
595
|
-
!o2 && e3 &&
|
|
596
|
+
!o2 && e3 && H(d2.code, d2.entity.data), ie(d2, m2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
|
|
596
597
|
}).catch((e3) => {
|
|
597
598
|
u2(e3);
|
|
598
|
-
}) : (o2 ||
|
|
599
|
+
}) : (o2 || H(d2.code, d2.entity.data), u2("request不存在"));
|
|
599
600
|
});
|
|
600
601
|
}
|
|
601
|
-
function
|
|
602
|
+
function me(e2, s2) {
|
|
602
603
|
var _a, _b, _c, _d;
|
|
603
|
-
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 =
|
|
604
|
+
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 = U(i2, d2), f2 = new FormData();
|
|
604
605
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
605
606
|
const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
606
|
-
g2 && f2.append("currentOperation", g2), f2.append("isMobile",
|
|
607
|
+
g2 && f2.append("currentOperation", g2), f2.append("isMobile", F()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
607
608
|
const C2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
|
|
608
609
|
C2 && f2.append("importDuplicateRule", C2);
|
|
609
610
|
const b2 = i2.judgeHeavyList;
|
|
610
611
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
611
|
-
const w2 =
|
|
612
|
+
const w2 = Be(a2);
|
|
612
613
|
w2 && f2.append("autoSetValueData", w2);
|
|
613
614
|
const T2 = i2.formNoRuleCode;
|
|
614
615
|
T2 && f2.append("formNoRuleCode", T2);
|
|
@@ -618,10 +619,10 @@ function de(e2, s2) {
|
|
|
618
619
|
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
|
|
619
620
|
const y2 = o(i2);
|
|
620
621
|
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
const
|
|
624
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
622
|
+
const P2 = S(a2, i2);
|
|
623
|
+
P2 && f2.append("functionCode", P2);
|
|
624
|
+
const I2 = ye(i2);
|
|
625
|
+
f2.append("additionalParamMapStr", JSON.stringify(I2));
|
|
625
626
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
626
627
|
f2.append("isPermission", R2 + "");
|
|
627
628
|
const M2 = i2.systemCode;
|
|
@@ -631,15 +632,15 @@ function de(e2, s2) {
|
|
|
631
632
|
const N2 = i2.backendUrl;
|
|
632
633
|
let O2 = t(N2, i2.isTest) + "/dsc/commons/import-data";
|
|
633
634
|
O2 = n(O2, M2, N2, i2.isTest), c.post(O2, f2).then((e3) => {
|
|
634
|
-
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }),
|
|
635
|
+
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), qe(i2);
|
|
635
636
|
else {
|
|
636
637
|
let t2 = false;
|
|
637
|
-
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true),
|
|
638
|
+
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ie(i2, a2, e3, null, true), i2.result = t2, v(i2, a2);
|
|
638
639
|
}
|
|
639
640
|
}).catch((e3) => {
|
|
640
641
|
});
|
|
641
642
|
}
|
|
642
|
-
function
|
|
643
|
+
function fe(e2, t2) {
|
|
643
644
|
const n2 = e2.props.base;
|
|
644
645
|
if (n2.conditionsForExecution && "" !== n2.conditionsForExecution) {
|
|
645
646
|
if ("one" === n2.conditionsForExecution) {
|
|
@@ -648,32 +649,32 @@ function me(e2, t2) {
|
|
|
648
649
|
}
|
|
649
650
|
return true;
|
|
650
651
|
}
|
|
651
|
-
function
|
|
652
|
+
function ge(e2) {
|
|
652
653
|
var _a, _b, _c;
|
|
653
654
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
654
|
-
let r2 =
|
|
655
|
+
let r2 = S(n2, t2);
|
|
655
656
|
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
656
657
|
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, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
657
658
|
t2.dataTypeMaps && Object.keys(t2.dataTypeMaps).length > 0 && (c2.dataTypeMap = t2.dataTypeMaps), 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);
|
|
658
659
|
const l2 = n2.props.base.conversionCodes;
|
|
659
660
|
l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2));
|
|
660
|
-
const u2 =
|
|
661
|
+
const u2 = Be(n2);
|
|
661
662
|
u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
|
|
662
663
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
663
664
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
664
|
-
const d2 =
|
|
665
|
+
const d2 = ye(t2);
|
|
665
666
|
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]));
|
|
666
667
|
const m2 = n2.props.base.successOperation;
|
|
667
668
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
668
669
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
669
|
-
return f2 && (c2.currentOperation = f2), c2.isMobile =
|
|
670
|
+
return f2 && (c2.currentOperation = f2), c2.isMobile = F(), c2.taskParamMap = t2.entity.task, c2;
|
|
670
671
|
}
|
|
671
|
-
function
|
|
672
|
+
function Ce(e2, t2, n2, o2, s2) {
|
|
672
673
|
const i2 = n2.code, a2 = n2.version;
|
|
673
674
|
let r2;
|
|
674
675
|
if (e2) {
|
|
675
676
|
t2 && (n2.initFormNo = e2.formNo, n2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (n2.entity.data = e2.entity, function(e3, t3) {
|
|
676
|
-
const n3 =
|
|
677
|
+
const n3 = ye(t3);
|
|
677
678
|
e3 && n3 && C(n3._t_ + "_id", e3);
|
|
678
679
|
}(e2.entity.id || e2.entity.ID, n2));
|
|
679
680
|
const s3 = e2.completeTaskResult;
|
|
@@ -686,35 +687,35 @@ function ge(e2, t2, n2, o2, s2) {
|
|
|
686
687
|
}
|
|
687
688
|
if (e2.completeTaskParam) {
|
|
688
689
|
const t3 = e2.completeTaskParam;
|
|
689
|
-
r2 = t3.taskId, o2 && (o2.taskId = r2),
|
|
690
|
+
r2 = t3.taskId, o2 && (o2.taskId = r2), I(i2, a2, "_completeTaskParam", t3), n2.fieldPermissions = t3.fieldPermissions, n2.actionPermissions = t3.actionPermissions, n2.workflowButtonComponent = t3.buttonComponent, n2.completeTaskParam = t3, n2.completeTaskParam.opinion = null;
|
|
690
691
|
}
|
|
691
|
-
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap,
|
|
692
|
+
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap, I(i2, a2, "_currentActivityName", e2.taskName);
|
|
692
693
|
}
|
|
693
|
-
return o2 && (o2.operationResult = s2), t2 ||
|
|
694
|
+
return o2 && (o2.operationResult = s2), t2 || ie(n2, o2.configureObj, e2, null, false), true;
|
|
694
695
|
}
|
|
695
|
-
async function
|
|
696
|
-
const s2 = await
|
|
696
|
+
async function be(e2, o2) {
|
|
697
|
+
const s2 = await we(e2);
|
|
697
698
|
return new Promise((i2, a2) => {
|
|
698
699
|
var _a;
|
|
699
700
|
const r2 = e2.pageContext;
|
|
700
|
-
if (
|
|
701
|
+
if (Z(r2)) i2(false);
|
|
701
702
|
else if (s2) {
|
|
702
703
|
const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
703
704
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
704
705
|
if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
705
|
-
const g2 =
|
|
706
|
+
const g2 = ge(e2);
|
|
706
707
|
g2.completeTaskParam = { operationResult: o2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
707
708
|
const C2 = c.post(f2, g2);
|
|
708
|
-
|
|
709
|
+
q(r2.code, r2.entity.data), C2.then((t2) => {
|
|
709
710
|
let n2 = true;
|
|
710
|
-
t2 && (
|
|
711
|
+
t2 && (H(r2.code, r2.entity.data), n2 = Ce(t2, false, r2, e2, o2)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
711
712
|
}).catch((e3) => {
|
|
712
713
|
a2(e3);
|
|
713
714
|
});
|
|
714
715
|
} else i2(true);
|
|
715
716
|
});
|
|
716
717
|
}
|
|
717
|
-
function
|
|
718
|
+
function we(e2) {
|
|
718
719
|
return new Promise((t2, n2) => {
|
|
719
720
|
var _a, _b, _c, _d, _e2;
|
|
720
721
|
const o2 = e2.configureObj;
|
|
@@ -723,28 +724,28 @@ function be(e2) {
|
|
|
723
724
|
let n3 = false;
|
|
724
725
|
if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
|
|
725
726
|
const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
726
|
-
n3 =
|
|
727
|
+
n3 = x(t3, s2);
|
|
727
728
|
}
|
|
728
729
|
true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
729
730
|
} else t2(true);
|
|
730
731
|
});
|
|
731
732
|
}
|
|
732
|
-
function
|
|
733
|
+
function Te(e2, n2) {
|
|
733
734
|
if (n2) {
|
|
734
|
-
const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/assigns", r2 = n2.id ? n2.id : n2.ID ? n2.ID : null, c2 =
|
|
735
|
-
c2.assigneeId = r2,
|
|
736
|
-
|
|
735
|
+
const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/assigns", r2 = n2.id ? n2.id : n2.ID ? n2.ID : null, c2 = ge(e2);
|
|
736
|
+
c2.assigneeId = r2, Se(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
737
|
+
v(o2, s2);
|
|
737
738
|
});
|
|
738
739
|
}
|
|
739
740
|
}
|
|
740
|
-
function
|
|
741
|
+
function ke(e2) {
|
|
741
742
|
var _a, _b;
|
|
742
|
-
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, i2 = e2.configureObj, a2 =
|
|
743
|
-
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle =
|
|
743
|
+
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, i2 = e2.configureObj, a2 = ye(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: a2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
744
|
+
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = he(e2);
|
|
744
745
|
const l2 = (_b = (_a = i2 == null ? void 0 : i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
745
|
-
return l2 && (c2.currentOperation = l2), c2.isMobile =
|
|
746
|
+
return l2 && (c2.currentOperation = l2), c2.isMobile = F(), c2;
|
|
746
747
|
}
|
|
747
|
-
function
|
|
748
|
+
function he(e2) {
|
|
748
749
|
var _a, _b, _c;
|
|
749
750
|
let t2 = null;
|
|
750
751
|
if (((_b = (_a = e2.configureObj.props.task) == null ? void 0 : _a.title) == null ? void 0 : _b.length) > 0) for (let n2 = 0; n2 < e2.configureObj.props.task.title.length; n2++) {
|
|
@@ -754,7 +755,7 @@ function ke(e2) {
|
|
|
754
755
|
t2 = o2.config;
|
|
755
756
|
break;
|
|
756
757
|
}
|
|
757
|
-
if (
|
|
758
|
+
if (x(e2.pageContext, o2.conditions)) {
|
|
758
759
|
t2 = o2.config;
|
|
759
760
|
break;
|
|
760
761
|
}
|
|
@@ -762,7 +763,7 @@ function ke(e2) {
|
|
|
762
763
|
}
|
|
763
764
|
return t2;
|
|
764
765
|
}
|
|
765
|
-
function
|
|
766
|
+
function ye(t2) {
|
|
766
767
|
if (t2.entity) {
|
|
767
768
|
let n2 = e(t2.entity.page);
|
|
768
769
|
n2 || (n2 = {});
|
|
@@ -770,33 +771,33 @@ function he(t2) {
|
|
|
770
771
|
return o2 && Object.assign(n2, o2), n2;
|
|
771
772
|
}
|
|
772
773
|
}
|
|
773
|
-
function
|
|
774
|
+
function Pe(e2, o2) {
|
|
774
775
|
if (o2) {
|
|
775
776
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
776
777
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
777
778
|
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
778
|
-
const d2 =
|
|
779
|
+
const d2 = ke(e2);
|
|
779
780
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
780
781
|
const m2 = c.post(p2, d2);
|
|
781
782
|
m2 && m2.then((e3) => {
|
|
782
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
783
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ie(s2, i2, e3, null, false), v(s2, i2);
|
|
783
784
|
});
|
|
784
785
|
}
|
|
785
786
|
}
|
|
786
|
-
function
|
|
787
|
+
function ve(e2, o2) {
|
|
787
788
|
if (o2) {
|
|
788
789
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
789
790
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
790
791
|
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
791
|
-
const d2 =
|
|
792
|
+
const d2 = ke(e2);
|
|
792
793
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
793
794
|
const m2 = c.post(p2, d2);
|
|
794
795
|
m2 && m2.then((e3) => {
|
|
795
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
796
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ie(s2, i2, e3, null, false), v(s2, i2);
|
|
796
797
|
});
|
|
797
798
|
}
|
|
798
799
|
}
|
|
799
|
-
async function
|
|
800
|
+
async function Ie(e2, o2) {
|
|
800
801
|
if (o2) {
|
|
801
802
|
const s2 = await function(e3) {
|
|
802
803
|
return new Promise((t2, n2) => {
|
|
@@ -807,7 +808,7 @@ async function ve(e2, o2) {
|
|
|
807
808
|
if (void 0 === n3 || true === n3) {
|
|
808
809
|
n3 = true;
|
|
809
810
|
const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
810
|
-
n3 =
|
|
811
|
+
n3 = x(t3, s3);
|
|
811
812
|
}
|
|
812
813
|
true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
813
814
|
t2(e4);
|
|
@@ -821,18 +822,18 @@ async function ve(e2, o2) {
|
|
|
821
822
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
822
823
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/copies";
|
|
823
824
|
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
824
|
-
const m2 =
|
|
825
|
+
const m2 = ke(e2);
|
|
825
826
|
m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
826
827
|
const f2 = c.post(d2, m2);
|
|
827
828
|
f2 && f2.then((e3) => {
|
|
828
829
|
var _a;
|
|
829
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }),
|
|
830
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), ie(i2, a2, { entity: (_a = i2.entity) == null ? void 0 : _a.data }, null), v(i2, a2);
|
|
830
831
|
});
|
|
831
832
|
}
|
|
832
833
|
}
|
|
833
834
|
}
|
|
834
|
-
async function
|
|
835
|
-
const i2 = await
|
|
835
|
+
async function Se(e2, t2, o2, s2) {
|
|
836
|
+
const i2 = await we(e2);
|
|
836
837
|
return new Promise((a2, r2) => {
|
|
837
838
|
var _a;
|
|
838
839
|
if (i2) {
|
|
@@ -845,73 +846,73 @@ async function Ie(e2, t2, o2, s2) {
|
|
|
845
846
|
const f2 = c.post(o2, t2);
|
|
846
847
|
f2 && f2.then((t3) => {
|
|
847
848
|
let n2 = true;
|
|
848
|
-
t3 && (n2 =
|
|
849
|
+
t3 && (n2 = Ce(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(s2) }), a2(true);
|
|
849
850
|
}).catch((e3) => {
|
|
850
851
|
r2(e3);
|
|
851
852
|
});
|
|
852
853
|
} else a2(true);
|
|
853
854
|
});
|
|
854
855
|
}
|
|
855
|
-
function
|
|
856
|
+
function Re(e2) {
|
|
856
857
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl, a2 = o2.completeTaskParam;
|
|
857
858
|
let r2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
858
859
|
if (r2 = n(r2, s2, i2, o2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
859
|
-
const p2 = o2.code, d2 =
|
|
860
|
+
const p2 = o2.code, d2 = ye(o2), m2 = { beanName: o2.beanName, additionalParamMap: d2, tableName: o2.tableName, functionCode: p2 + ".xxx", pageCode: o2.code };
|
|
860
861
|
return c.post(r2, m2);
|
|
861
862
|
}
|
|
862
|
-
function
|
|
863
|
-
const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 =
|
|
864
|
-
n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId),
|
|
865
|
-
|
|
863
|
+
function Me(e2, n2) {
|
|
864
|
+
const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ge(e2);
|
|
865
|
+
n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), Se(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
866
|
+
v(o2, s2);
|
|
866
867
|
});
|
|
867
868
|
}
|
|
868
|
-
function
|
|
869
|
+
function xe(e2) {
|
|
869
870
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
870
871
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
871
|
-
const r2 =
|
|
872
|
+
const r2 = ge(e2);
|
|
872
873
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
873
874
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
+
function Ne(e2, o2) {
|
|
876
877
|
if (o2) {
|
|
877
878
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
878
879
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
879
880
|
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
880
|
-
const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 =
|
|
881
|
+
const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = ge(e2);
|
|
881
882
|
m2.ids = d2;
|
|
882
883
|
const f2 = c.post(p2, m2);
|
|
883
884
|
f2 && f2.then((e3) => {
|
|
884
|
-
|
|
885
|
+
ie(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), v(s2, i2);
|
|
885
886
|
});
|
|
886
887
|
}
|
|
887
888
|
}
|
|
888
|
-
function
|
|
889
|
+
function Oe(e2) {
|
|
889
890
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
890
891
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
891
|
-
const r2 =
|
|
892
|
+
const r2 = ge(e2);
|
|
892
893
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
893
894
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
894
895
|
}
|
|
895
|
-
function
|
|
896
|
+
function Ae(e2, o2) {
|
|
896
897
|
if (o2) {
|
|
897
898
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
898
899
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
899
900
|
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
900
|
-
const d2 = o2.map((e3) => e3.taskId), m2 =
|
|
901
|
+
const d2 = o2.map((e3) => e3.taskId), m2 = ge(e2);
|
|
901
902
|
m2.ids = d2;
|
|
902
903
|
const f2 = c.post(p2, m2);
|
|
903
904
|
f2 && f2.then((e3) => {
|
|
904
|
-
|
|
905
|
+
ie(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), v(s2, i2);
|
|
905
906
|
});
|
|
906
907
|
}
|
|
907
908
|
}
|
|
908
|
-
function
|
|
909
|
+
function Ee(e2) {
|
|
909
910
|
const o2 = e2.pageContext, s2 = o2.backendUrl;
|
|
910
911
|
let i2 = t(s2, o2.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
911
|
-
const a2 =
|
|
912
|
+
const a2 = ge(e2);
|
|
912
913
|
if (o2.completeTaskParam) {
|
|
913
914
|
const t2 = [];
|
|
914
|
-
e2._value.loginName && t2.push(e2._value.loginName), a2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle:
|
|
915
|
+
e2._value.loginName && t2.push(e2._value.loginName), a2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: he(e2) };
|
|
915
916
|
}
|
|
916
917
|
return new Promise((t2, o3) => {
|
|
917
918
|
const s3 = e2.pageContext, r2 = s3.systemCode, p2 = s3.backendUrl;
|
|
@@ -919,13 +920,13 @@ function Ae(e2) {
|
|
|
919
920
|
const d2 = c.post(i2, a2);
|
|
920
921
|
d2 && d2.then((n2) => {
|
|
921
922
|
let o4 = true;
|
|
922
|
-
n2 && (o4 =
|
|
923
|
+
n2 && (o4 = Ce(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
|
|
923
924
|
}).catch((e3) => {
|
|
924
925
|
o3(e3);
|
|
925
926
|
});
|
|
926
927
|
});
|
|
927
928
|
}
|
|
928
|
-
function
|
|
929
|
+
function Ue(e2, t2, n2, o2, s2, i2) {
|
|
929
930
|
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
930
931
|
let a2 = false;
|
|
931
932
|
if (o2 && o2.archival) return a2;
|
|
@@ -994,7 +995,7 @@ function Ee(e2, t2, n2, o2, s2, i2) {
|
|
|
994
995
|
const o3 = m(), s3 = o3 ? o3.loginName : null;
|
|
995
996
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
|
|
996
997
|
return false;
|
|
997
|
-
}(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 =
|
|
998
|
+
}(n2, 0, i2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? a2 = _e(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? a2 = function(e3) {
|
|
998
999
|
if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
999
1000
|
return false;
|
|
1000
1001
|
}(n2) : function(e3, t3) {
|
|
@@ -1012,35 +1013,35 @@ function Ee(e2, t2, n2, o2, s2, i2) {
|
|
|
1012
1013
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
1013
1014
|
e2.workflowOpinion.showOpinionBox = true;
|
|
1014
1015
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
1015
|
-
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox =
|
|
1016
|
+
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = x(e2, t4));
|
|
1016
1017
|
}
|
|
1017
1018
|
let t3 = false;
|
|
1018
1019
|
if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
|
|
1019
1020
|
if (t3 = true, true === t3) {
|
|
1020
1021
|
const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
|
|
1021
|
-
n3 && n3.length > 0 && (t3 =
|
|
1022
|
+
n3 && n3.length > 0 && (t3 = x(e2, n3));
|
|
1022
1023
|
}
|
|
1023
1024
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1024
1025
|
}
|
|
1025
1026
|
}
|
|
1026
1027
|
return a2;
|
|
1027
1028
|
}
|
|
1028
|
-
function
|
|
1029
|
+
function _e(e2, t2, n2) {
|
|
1029
1030
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
1030
1031
|
}
|
|
1031
|
-
function
|
|
1032
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
1032
|
+
function je(e2, t2) {
|
|
1033
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, De(e2, t2).then((t3) => {
|
|
1033
1034
|
e2.isRefresh = true;
|
|
1034
1035
|
});
|
|
1035
1036
|
}
|
|
1036
|
-
function
|
|
1037
|
+
function De(e2, n2, s2) {
|
|
1037
1038
|
const i2 = e2.pageType;
|
|
1038
1039
|
if (i2 && "form" === i2) {
|
|
1039
1040
|
e2.canClick = false;
|
|
1040
1041
|
return o(e2) ? function(e3, n3, o2) {
|
|
1041
1042
|
return new Promise((s3, i3) => {
|
|
1042
1043
|
var _a;
|
|
1043
|
-
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 =
|
|
1044
|
+
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ye(e3);
|
|
1044
1045
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1045
1046
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1046
1047
|
const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
@@ -1051,12 +1052,12 @@ function je(e2, n2, s2) {
|
|
|
1051
1052
|
t2[n4] = n4;
|
|
1052
1053
|
}), b2.listCodesMap = t2;
|
|
1053
1054
|
}
|
|
1054
|
-
m2 && (b2.ids =
|
|
1055
|
-
const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 =
|
|
1056
|
-
T2.restorePageLoadState(),
|
|
1057
|
-
const k2 =
|
|
1055
|
+
m2 && (b2.ids = Le(m2)), f2 ? b2.taskId = f2 : d2 ? b2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (b2.withDataPermission = true), b2.isMobile = F();
|
|
1056
|
+
const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = B();
|
|
1057
|
+
T2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
|
|
1058
|
+
const k2 = G(e3.code, b2.id);
|
|
1058
1059
|
c.post(w2, b2).then(async (t2) => {
|
|
1059
|
-
k2 && await
|
|
1060
|
+
k2 && await We(e3, b2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, Ce(t2, true, e3), e3.workflowRules = D(e3);
|
|
1060
1061
|
const n4 = e3.pageType;
|
|
1061
1062
|
n4 && "form" === n4 && function(e4) {
|
|
1062
1063
|
(function(e5) {
|
|
@@ -1089,7 +1090,7 @@ function je(e2, n2, s2) {
|
|
|
1089
1090
|
}
|
|
1090
1091
|
e5.actionPermissionMap = n5;
|
|
1091
1092
|
}(e4);
|
|
1092
|
-
}(e3), e3.canClick = true,
|
|
1093
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
|
|
1093
1094
|
}).catch((t2) => {
|
|
1094
1095
|
e3.canClick = true, i3(t2);
|
|
1095
1096
|
});
|
|
@@ -1097,25 +1098,25 @@ function je(e2, n2, s2) {
|
|
|
1097
1098
|
}(e2, n2, s2) : function(e3, n3, o2) {
|
|
1098
1099
|
return new Promise((s3, i3) => {
|
|
1099
1100
|
var _a;
|
|
1100
|
-
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 =
|
|
1101
|
+
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ye(e3);
|
|
1101
1102
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1102
1103
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1103
1104
|
const f2 = p2 ? p2.taskId : null, C2 = l2, b2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1104
|
-
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids =
|
|
1105
|
+
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = Le(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1105
1106
|
const t2 = {};
|
|
1106
1107
|
e3.tableUuids.forEach((e4) => {
|
|
1107
1108
|
const n4 = r(l2, u2, e4);
|
|
1108
1109
|
t2[n4] = n4;
|
|
1109
1110
|
}), w2.listCodesMap = t2;
|
|
1110
1111
|
}
|
|
1111
|
-
e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile =
|
|
1112
|
-
const T2 = b2 + "/dsc/commons/gets", k2 =
|
|
1113
|
-
k2.restorePageLoadState(),
|
|
1114
|
-
const
|
|
1112
|
+
e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = F();
|
|
1113
|
+
const T2 = b2 + "/dsc/commons/gets", k2 = B();
|
|
1114
|
+
k2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
|
|
1115
|
+
const h2 = G(e3.code, w2.id);
|
|
1115
1116
|
c.post(T2, w2).then(async (t2) => {
|
|
1116
|
-
t2 && (
|
|
1117
|
-
const n4 = e3.customRules, o3 = e3.rules, i4 =
|
|
1118
|
-
e3.rules = i4, e3.canClick = true,
|
|
1117
|
+
t2 && (h2 && await We(e3, w2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
|
|
1118
|
+
const n4 = e3.customRules, o3 = e3.rules, i4 = W(e3, n4, o3);
|
|
1119
|
+
e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
|
|
1119
1120
|
}).catch((t2) => {
|
|
1120
1121
|
e3.canClick = true, i3(t2);
|
|
1121
1122
|
});
|
|
@@ -1126,17 +1127,17 @@ function je(e2, n2, s2) {
|
|
|
1126
1127
|
e3(true);
|
|
1127
1128
|
});
|
|
1128
1129
|
}
|
|
1129
|
-
async function
|
|
1130
|
+
async function We(e2, t2, n2) {
|
|
1130
1131
|
try {
|
|
1131
|
-
await p.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), n2.entity =
|
|
1132
|
+
await p.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), n2.entity = J(e2.code, t2, n2.entity);
|
|
1132
1133
|
} catch (e3) {
|
|
1133
1134
|
}
|
|
1134
|
-
|
|
1135
|
+
Y(e2.code, t2);
|
|
1135
1136
|
}
|
|
1136
|
-
function
|
|
1137
|
+
function Le(e2) {
|
|
1137
1138
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
1138
1139
|
}
|
|
1139
|
-
function
|
|
1140
|
+
function Be(e2) {
|
|
1140
1141
|
const t2 = e2.props.setValueList;
|
|
1141
1142
|
if (t2) {
|
|
1142
1143
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -1144,82 +1145,82 @@ function Le(e2) {
|
|
|
1144
1145
|
}
|
|
1145
1146
|
return null;
|
|
1146
1147
|
}
|
|
1147
|
-
function
|
|
1148
|
+
function Fe(e2, t2) {
|
|
1148
1149
|
const n2 = e2.entity ? e2.entity : {}, o2 = { data: n2.data, page: n2.page }, s2 = { pageCode: e2.code, queryCondition: JSON.stringify(o2), name: t2 }, i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
1149
1150
|
return c.post(i2, s2);
|
|
1150
1151
|
}
|
|
1151
|
-
function
|
|
1152
|
+
function Ve(e2) {
|
|
1152
1153
|
const t2 = e2.code, n2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
1153
1154
|
return c.get(n2);
|
|
1154
1155
|
}
|
|
1155
|
-
function
|
|
1156
|
+
function $e(e2) {
|
|
1156
1157
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
1157
1158
|
return c.delete(t2);
|
|
1158
1159
|
}
|
|
1159
|
-
function
|
|
1160
|
-
e2.exportNoticeInfo && (e2.exportNoticeInfo.noticeInterval && clearInterval(e2.exportNoticeInfo.noticeInterval), e2.exportNoticeInfo.noticeComponent = null, e2.exportNoticeInfo.noticeInterval = null), e2.exportNoticeInfo = {},
|
|
1160
|
+
function qe(e2) {
|
|
1161
|
+
e2.exportNoticeInfo && (e2.exportNoticeInfo.noticeInterval && clearInterval(e2.exportNoticeInfo.noticeInterval), e2.exportNoticeInfo.noticeComponent = null, e2.exportNoticeInfo.noticeInterval = null), e2.exportNoticeInfo = {}, Ge(e2.exportNoticeInfo, e2.backendUrl, e2.code);
|
|
1161
1162
|
}
|
|
1162
|
-
function
|
|
1163
|
+
function He(e2, n2, o2) {
|
|
1163
1164
|
e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title: l().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
|
|
1164
|
-
"Success" === e2.lastFileTask.taskState || "Fail" === e2.lastFileTask.taskState || "PartSuccess" === e2.lastFileTask.taskState ?
|
|
1165
|
-
}, message:
|
|
1165
|
+
"Success" === e2.lastFileTask.taskState || "Fail" === e2.lastFileTask.taskState || "PartSuccess" === e2.lastFileTask.taskState ? Ye(n2, o2, e2.lastFileTask.id, e2) : (e2.noticeComponent = null, null == e2.noticeInterval && Ge(e2, n2, o2));
|
|
1166
|
+
}, message: V($, { isShow: true, backendUrl: n2, lastFileTask: e2.lastFileTask, onClickMsg(s2) {
|
|
1166
1167
|
s2.serverPath ? function(e3, n3, o3, s3, i2, a2) {
|
|
1167
|
-
|
|
1168
|
+
Ye(i2, a2, o3, s3);
|
|
1168
1169
|
const r2 = f(), c2 = t(i2), l2 = c2 + "/common/super-form/downloads?jwt=" + r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + n3;
|
|
1169
1170
|
window.open(l2);
|
|
1170
|
-
}(s2.fileName, s2.serverPath, s2.id, e2, n2, o2) :
|
|
1171
|
+
}(s2.fileName, s2.serverPath, s2.id, e2, n2, o2) : Ye(n2, o2, s2.id, e2), e2.noticeComponent.close(), e2.noticeComponent = null;
|
|
1171
1172
|
} }) }) : (null != e2.noticeComponent && (e2.noticeComponent.close(), e2.noticeComponent = null), e2.noticeInterval && (clearInterval(e2.noticeInterval), e2.noticeInterval = null));
|
|
1172
1173
|
}
|
|
1173
|
-
function
|
|
1174
|
+
function Ge(e2, t2, n2) {
|
|
1174
1175
|
e2.noticeInterval || (e2.noticeInterval = setInterval(() => {
|
|
1175
1176
|
e2.noticeComponent || function(e3, t3, n3) {
|
|
1176
|
-
|
|
1177
|
-
e3.lastFileTask = o2,
|
|
1177
|
+
Je(t3, n3).then((o2) => {
|
|
1178
|
+
e3.lastFileTask = o2, He(e3, t3, n3);
|
|
1178
1179
|
});
|
|
1179
1180
|
}(e2, t2, n2);
|
|
1180
1181
|
}, 3e3));
|
|
1181
1182
|
}
|
|
1182
|
-
function
|
|
1183
|
-
return
|
|
1183
|
+
function Je(e2, t2) {
|
|
1184
|
+
return _(e2, t2);
|
|
1184
1185
|
}
|
|
1185
|
-
function
|
|
1186
|
-
|
|
1186
|
+
function Ye(e2, t2, n2, o2) {
|
|
1187
|
+
j(e2, n2).then(() => {
|
|
1187
1188
|
!function(e3, t3, n3) {
|
|
1188
|
-
|
|
1189
|
-
e3.lastFileTask = o3,
|
|
1189
|
+
Je(t3, n3).then((o3) => {
|
|
1190
|
+
e3.lastFileTask = o3, He(e3, t3, n3);
|
|
1190
1191
|
});
|
|
1191
1192
|
}(o2, e2, t2);
|
|
1192
1193
|
});
|
|
1193
1194
|
}
|
|
1194
1195
|
export {
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1196
|
+
Z as checkAndTipFileUploading,
|
|
1197
|
+
ie as dealAfterOperate,
|
|
1198
|
+
Ce as dealCompleteTaskParam,
|
|
1199
|
+
$e as deleteChartCondition,
|
|
1200
|
+
Pe as doAddSigner,
|
|
1201
|
+
ve as doAddTransactor,
|
|
1202
|
+
Te as doAssign,
|
|
1203
|
+
Ie as doCreateCopyTask,
|
|
1204
|
+
qe as doFileTaskFunc,
|
|
1205
|
+
me as doImportFinally,
|
|
1206
|
+
Ne as doRemoveSigners,
|
|
1207
|
+
Ae as doRemoveTransactors,
|
|
1208
|
+
Me as doReturnTaskTo,
|
|
1209
|
+
X as exportFormReport,
|
|
1210
|
+
Ee as extractWorkflowFunc,
|
|
1211
|
+
ye as getAdditionalParamMap,
|
|
1212
|
+
De as getFormData,
|
|
1213
|
+
xe as getRemoveSigner,
|
|
1214
|
+
Oe as getRemoveTransactor,
|
|
1215
|
+
oe as getSaveFormRequest,
|
|
1216
|
+
ne as getSaveFormRequestWithRow,
|
|
1217
|
+
Re as getTaskInformitions,
|
|
1218
|
+
Ue as isVisibleWorkflowButton,
|
|
1219
|
+
fe as judgeDataNumber,
|
|
1220
|
+
Ve as listChartConditions,
|
|
1221
|
+
pe as refreshFormOrListPage,
|
|
1222
|
+
je as refreshPage,
|
|
1223
|
+
Fe as saveChartConditionBase,
|
|
1224
|
+
z as standardEvents,
|
|
1225
|
+
le as updateValuesWhenCloseDialog
|
|
1225
1226
|
};
|