super-page-runtime 2.3.12 → 2.3.13-migrate2
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/event-util.js +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +182 -153
- package/dist/es/components/runtime/utils/events/validator-util.js +169 -146
- package/dist/es/components/runtime/utils/page-init-util.js +26 -24
- package/dist/es/components/runtime/utils/page-permission-util.js +14 -14
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +60 -59
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +35 -34
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +42 -41
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -6
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +16 -13
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +79 -79
- package/package.json +2 -2
|
@@ -6,12 +6,12 @@ import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSession
|
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import C from "../eventBus.js";
|
|
8
8
|
import T from "axios";
|
|
9
|
-
import { handleEvent as
|
|
9
|
+
import { handleEvent as w, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as k } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as P, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
|
|
12
|
-
import { updateChartDatasources as
|
|
13
|
-
import
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
12
|
+
import { updateChartDatasources as S, caculateShowCondition as N, getVariableValue as v, setVariableValue as I } from "../page-helper-util.js";
|
|
13
|
+
import A from "./print-label.js";
|
|
14
|
+
import { getTableNameByTableUuid as x } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as E } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as _ } from "../page-store.js";
|
|
@@ -47,17 +47,17 @@ const j = { save: function(e2) {
|
|
|
47
47
|
if (!i2 || 0 === i2.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 =
|
|
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 = x(r2, m2);
|
|
51
51
|
let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
52
|
g2 = o(g2, p2, d2, r2.isTest);
|
|
53
|
-
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2),
|
|
54
|
-
r2.beanName && (
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = P(u2, r2), y2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
|
+
r2.beanName && (y2.beanName = r2.beanName);
|
|
55
55
|
const h2 = u2.props.deleteLogicSetting;
|
|
56
|
-
h2 && ("object" == typeof h2 ?
|
|
56
|
+
h2 && ("object" == typeof h2 ? y2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (y2.deleteLogicSetting = h2));
|
|
57
57
|
const k2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
-
k2 && (
|
|
58
|
+
k2 && (y2.logSettingText = k2.join(""));
|
|
59
59
|
const R2 = u2.props.base.isSafeDelete;
|
|
60
|
-
R2 && (
|
|
60
|
+
R2 && (y2.isSafeDelete = R2), c.delete(g2, { data: y2 }).then((e4) => {
|
|
61
61
|
const t2 = b(r2, m2);
|
|
62
62
|
t2 && (t2.isDeleteChange(true), t2.clearSelections()), q(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
63
63
|
}).catch((e4) => {
|
|
@@ -90,8 +90,8 @@ const j = { save: function(e2) {
|
|
|
90
90
|
t2.version && (f2 += "&pageVersion=" + t2.version);
|
|
91
91
|
const T2 = d();
|
|
92
92
|
T2 && (f2 += "&JWT=" + T2);
|
|
93
|
-
const
|
|
94
|
-
|
|
93
|
+
const w2 = "_RUN_CURRENT_ROLE", y2 = m(w2);
|
|
94
|
+
y2 && (f2 += "&" + w2 + "=" + y2);
|
|
95
95
|
if (o2) {
|
|
96
96
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
@@ -111,8 +111,7 @@ const j = { save: function(e2) {
|
|
|
111
111
|
u2 || (u2 = n2.code);
|
|
112
112
|
let l2 = false;
|
|
113
113
|
l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
|
|
114
|
-
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = P(o2, n2), m2 = u2;
|
|
115
|
-
let f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
114
|
+
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = P(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
116
115
|
f2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", f2.watermarkContent = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
|
|
117
116
|
});
|
|
118
117
|
}(e2);
|
|
@@ -138,6 +137,22 @@ const j = { save: function(e2) {
|
|
|
138
137
|
});
|
|
139
138
|
});
|
|
140
139
|
}(e2);
|
|
140
|
+
}, workflowStart: function(e2) {
|
|
141
|
+
return C.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
142
|
+
return new Promise((t2, s2) => {
|
|
143
|
+
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
144
|
+
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
145
|
+
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
146
|
+
const m2 = ee(e3);
|
|
147
|
+
let f2;
|
|
148
|
+
i2.workflow_id || i2.WORKFLOW_ID ? (d2 = n(p2, a2.isTest) + "/dsc/workflow-commons", d2 = o(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), f2.then((s3) => {
|
|
149
|
+
let n2 = true;
|
|
150
|
+
s3 && (n2 = te(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
151
|
+
}).catch((e4) => {
|
|
152
|
+
s2(e4);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
}(e2);
|
|
141
156
|
}, submitProcess: function(e2) {
|
|
142
157
|
return C.$emit("clearTableAllStartEditing"), function(e3) {
|
|
143
158
|
return new Promise((t2, s2) => {
|
|
@@ -185,22 +200,22 @@ const j = { save: function(e2) {
|
|
|
185
200
|
}, drawTask: function(e2) {
|
|
186
201
|
return function(e3) {
|
|
187
202
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = ee(e3);
|
|
188
|
-
return
|
|
203
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
189
204
|
}(e2);
|
|
190
205
|
}, abandonReceive: function(e2) {
|
|
191
206
|
return function(e3) {
|
|
192
207
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = ee(e3);
|
|
193
|
-
return
|
|
208
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
194
209
|
}(e2);
|
|
195
210
|
}, returnToPreviousTask: function(e2) {
|
|
196
211
|
return function(e3) {
|
|
197
212
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = ee(e3);
|
|
198
|
-
return
|
|
213
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
199
214
|
}(e2);
|
|
200
215
|
}, endInstance: function(e2) {
|
|
201
216
|
return function(e3) {
|
|
202
217
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = ee(e3);
|
|
203
|
-
return
|
|
218
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
204
219
|
}(e2);
|
|
205
220
|
}, returnTaskTo: function(e2) {
|
|
206
221
|
return function(e3) {
|
|
@@ -215,7 +230,7 @@ const j = { save: function(e2) {
|
|
|
215
230
|
}, retrieveTask: function(e2) {
|
|
216
231
|
return function(e3) {
|
|
217
232
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = ee(e3);
|
|
218
|
-
return
|
|
233
|
+
return ue(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
219
234
|
}(e2);
|
|
220
235
|
}, viewDetail: function(e2) {
|
|
221
236
|
}, lineEditCreate: function(e2) {
|
|
@@ -231,7 +246,7 @@ const j = { save: function(e2) {
|
|
|
231
246
|
} catch (t3) {
|
|
232
247
|
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
233
248
|
}
|
|
234
|
-
|
|
249
|
+
A.printLabel(e3, t2);
|
|
235
250
|
}(e2);
|
|
236
251
|
}, queryCharts: function(e2) {
|
|
237
252
|
D(e2);
|
|
@@ -261,8 +276,7 @@ const j = { save: function(e2) {
|
|
|
261
276
|
let c2, u2 = t2.label;
|
|
262
277
|
u2 || (u2 = t2.code);
|
|
263
278
|
c2 = u2;
|
|
264
|
-
|
|
265
|
-
const p2 = ae(t2);
|
|
279
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ie(t2);
|
|
266
280
|
l2.additionalParamMap = p2, l2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", l2.watermark = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "";
|
|
267
281
|
const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
268
282
|
W();
|
|
@@ -286,7 +300,7 @@ function D(e2) {
|
|
|
286
300
|
let o2 = null;
|
|
287
301
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
288
302
|
const a2 = o2 ? o2.state : void 0;
|
|
289
|
-
o2 && (o2.state = "disabled"),
|
|
303
|
+
o2 && (o2.state = "disabled"), S(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
290
304
|
o2 && (o2.state = a2);
|
|
291
305
|
}).catch(() => {
|
|
292
306
|
o2 && (o2.state = a2);
|
|
@@ -297,9 +311,9 @@ function L(e2, s2, o2, a2) {
|
|
|
297
311
|
e2.clickUuid = s2.uuid;
|
|
298
312
|
const i2 = 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: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
299
313
|
u2 && (C2.logSettingText = u2.join(""));
|
|
300
|
-
const
|
|
301
|
-
let
|
|
302
|
-
C2.additionalParamMap =
|
|
314
|
+
const w2 = ie(e2);
|
|
315
|
+
let y2;
|
|
316
|
+
C2.additionalParamMap = w2, C2.isShowWatermark = void 0 === ((_c = (_b = s2.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.isShowWatermark) + "", C2.watermark = ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content) && ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content.length) > 0 ? (_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.join("-~") : "", y2 = a2 ? function(e3, t2, s3, o3) {
|
|
303
317
|
return new Promise((a3, i3) => {
|
|
304
318
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
305
319
|
W();
|
|
@@ -324,7 +338,7 @@ function L(e2, s2, o2, a2) {
|
|
|
324
338
|
i3(e4);
|
|
325
339
|
});
|
|
326
340
|
});
|
|
327
|
-
}(r2, f2, C2, e2.isTest),
|
|
341
|
+
}(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
|
|
328
342
|
h(e2, s2);
|
|
329
343
|
}).catch((e3) => {
|
|
330
344
|
});
|
|
@@ -359,14 +373,14 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
|
359
373
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
360
374
|
const g2 = n2.props.base.conversionCodes;
|
|
361
375
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
362
|
-
const b2 =
|
|
376
|
+
const b2 = Te(n2);
|
|
363
377
|
b2 && (f2.autoSetValueData = b2);
|
|
364
378
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
365
379
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
366
380
|
const T2 = e2.beanName;
|
|
367
381
|
T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
368
|
-
const
|
|
369
|
-
return f2.additionalParamMap =
|
|
382
|
+
const w2 = ie(e2);
|
|
383
|
+
return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
370
384
|
}
|
|
371
385
|
function F(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
372
386
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
@@ -384,7 +398,7 @@ function q(t2, s2, n2, o2, a2) {
|
|
|
384
398
|
const i2 = H(t2, s2, a2);
|
|
385
399
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
386
400
|
let a3 = s3.props.base.successOperation;
|
|
387
|
-
const i3 = s3.props.base.isNeedValueMapping, r2 =
|
|
401
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
|
|
388
402
|
a3 || z.includes(s3.name) || (a3 = "refresh");
|
|
389
403
|
if ("refresh" === a3) if (r2) {
|
|
390
404
|
b(t3, r2).refresh();
|
|
@@ -423,7 +437,7 @@ function G(e2, t2, s2) {
|
|
|
423
437
|
const n2 = t2.props.base.successOperation;
|
|
424
438
|
if (!n2 || null === n2) return;
|
|
425
439
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
426
|
-
"noOperation" === n2 ?
|
|
440
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? ge(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
|
|
427
441
|
}
|
|
428
442
|
function J(e2, t2, s2, n2) {
|
|
429
443
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -447,7 +461,7 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
447
461
|
I(s3.entity, r2, a3);
|
|
448
462
|
});
|
|
449
463
|
}
|
|
450
|
-
}(s2, o2, e2),
|
|
464
|
+
}(s2, o2, e2), w(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
|
|
451
465
|
}
|
|
452
466
|
const z = ["dropdown"];
|
|
453
467
|
function K(e2, t2, s2, n2) {
|
|
@@ -458,13 +472,13 @@ function K(e2, t2, s2, n2) {
|
|
|
458
472
|
const a2 = H(e2, t2);
|
|
459
473
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
460
474
|
if (a2 && "list" === a2) {
|
|
461
|
-
const s3 =
|
|
475
|
+
const s3 = y(e2, t2);
|
|
462
476
|
if (s3) {
|
|
463
477
|
b(e2, s3).refresh();
|
|
464
478
|
} else console.error("tableUuid is empty");
|
|
465
479
|
} else if (a2 && "form" === a2) {
|
|
466
480
|
const t3 = e2.entity.data;
|
|
467
|
-
|
|
481
|
+
ge(e2, t3.ID ? t3.ID : t3.id);
|
|
468
482
|
}
|
|
469
483
|
}
|
|
470
484
|
}
|
|
@@ -473,12 +487,12 @@ function Q(e2, t2, s2, a2) {
|
|
|
473
487
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
474
488
|
let T2 = false;
|
|
475
489
|
C2 && "noOperation" === C2 && (T2 = true);
|
|
476
|
-
let
|
|
490
|
+
let w2 = d2.tableName;
|
|
477
491
|
if (t2) {
|
|
478
492
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
479
|
-
|
|
493
|
+
w2 = x(d2, t3);
|
|
480
494
|
}
|
|
481
|
-
const
|
|
495
|
+
const y2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
|
|
482
496
|
return new Promise((g3, b3) => {
|
|
483
497
|
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
484
498
|
p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
@@ -494,8 +508,8 @@ function Q(e2, t2, s2, a2) {
|
|
|
494
508
|
b3("点击了取消按钮");
|
|
495
509
|
});
|
|
496
510
|
});
|
|
497
|
-
}(d2, m2, a2, T2, f2, g2, s2, b2,
|
|
498
|
-
|
|
511
|
+
}(d2, m2, a2, T2, f2, g2, s2, b2, w2);
|
|
512
|
+
y2 ? y2.then((e3) => {
|
|
499
513
|
q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
500
514
|
}).catch((e3) => {
|
|
501
515
|
l2(e3);
|
|
@@ -504,34 +518,34 @@ function Q(e2, t2, s2, a2) {
|
|
|
504
518
|
}
|
|
505
519
|
function X(e2, s2) {
|
|
506
520
|
var _a;
|
|
507
|
-
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
521
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = x(a2, d2), f2 = new FormData();
|
|
508
522
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
509
523
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
510
524
|
g2 && f2.append("importDuplicateRule", g2);
|
|
511
525
|
const b2 = a2.judgeHeavyList;
|
|
512
526
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
513
|
-
const C2 =
|
|
527
|
+
const C2 = Te(i2);
|
|
514
528
|
C2 && f2.append("autoSetValueData", C2);
|
|
515
529
|
const T2 = a2.formNoRuleCode;
|
|
516
530
|
T2 && f2.append("formNoRuleCode", T2);
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
let
|
|
520
|
-
|
|
531
|
+
const w2 = e2.listCode;
|
|
532
|
+
w2 && f2.append("listCode", w2);
|
|
533
|
+
let y2 = false;
|
|
534
|
+
y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", a2.code);
|
|
521
535
|
const k2 = t(a2);
|
|
522
536
|
null != k2 && f2.append("isWorkflowEntity", k2 + "");
|
|
523
537
|
const R2 = P(i2, a2);
|
|
524
538
|
R2 && f2.append("functionCode", R2);
|
|
525
|
-
const M2 =
|
|
539
|
+
const M2 = ie(a2);
|
|
526
540
|
f2.append("additionalParamMapStr", JSON.stringify(M2));
|
|
527
|
-
const
|
|
528
|
-
f2.append("isPermission",
|
|
529
|
-
const
|
|
530
|
-
|
|
541
|
+
const S2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
542
|
+
f2.append("isPermission", S2 + "");
|
|
543
|
+
const N2 = a2.systemCode;
|
|
544
|
+
N2 && f2.append("systemCode", N2);
|
|
531
545
|
const v2 = a2.backendUrl;
|
|
532
546
|
let I2 = n(v2, a2.isTest) + "/dsc/commons/import-data";
|
|
533
|
-
I2 = o(I2,
|
|
534
|
-
if (
|
|
547
|
+
I2 = o(I2, N2, v2, a2.isTest), c.post(I2, f2).then((e3) => {
|
|
548
|
+
if (y2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
535
549
|
else {
|
|
536
550
|
let t2 = false;
|
|
537
551
|
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(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
|
|
@@ -557,11 +571,11 @@ function ee(e2) {
|
|
|
557
571
|
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);
|
|
558
572
|
const u2 = n2.props.base.conversionCodes;
|
|
559
573
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
560
|
-
const l2 =
|
|
574
|
+
const l2 = Te(n2);
|
|
561
575
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
562
576
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
563
577
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
564
|
-
const d2 =
|
|
578
|
+
const d2 = ie(t2);
|
|
565
579
|
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] : console.error("ids参数类型错误"));
|
|
566
580
|
const m2 = n2.props.base.successOperation;
|
|
567
581
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
@@ -571,7 +585,7 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
571
585
|
let r2;
|
|
572
586
|
if (e2) {
|
|
573
587
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
574
|
-
const s3 =
|
|
588
|
+
const s3 = ie(t3);
|
|
575
589
|
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
576
590
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
577
591
|
const o3 = e2.completeTaskResult;
|
|
@@ -584,31 +598,14 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
584
598
|
}
|
|
585
599
|
if (e2.completeTaskParam) {
|
|
586
600
|
const t3 = e2.completeTaskParam;
|
|
587
|
-
r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
|
|
601
|
+
r2 = t3.taskId, n2 && (n2.taskId = r2), k(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3, s2.completeTaskParam.opinion = null;
|
|
588
602
|
}
|
|
589
603
|
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, k(a2, i2, "_currentActivityName", e2.taskName);
|
|
590
604
|
}
|
|
591
605
|
return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
|
|
592
606
|
}
|
|
593
607
|
async function se(e2, t2) {
|
|
594
|
-
const s2 = await
|
|
595
|
-
return new Promise((t3, s3) => {
|
|
596
|
-
var _a, _b, _c, _d;
|
|
597
|
-
const n2 = e3.configureObj;
|
|
598
|
-
if (n2) {
|
|
599
|
-
let s4 = false;
|
|
600
|
-
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
601
|
-
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
602
|
-
s4 = S(t4, n2, o2);
|
|
603
|
-
}
|
|
604
|
-
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 }) => {
|
|
605
|
-
t3(e4);
|
|
606
|
-
}).catch(() => {
|
|
607
|
-
t3(false);
|
|
608
|
-
}) : t3(true);
|
|
609
|
-
} else t3(true);
|
|
610
|
-
});
|
|
611
|
-
}(e2);
|
|
608
|
+
const s2 = await ne(e2);
|
|
612
609
|
return new Promise((a2, i2) => {
|
|
613
610
|
var _a;
|
|
614
611
|
if (s2) {
|
|
@@ -626,19 +623,37 @@ async function se(e2, t2) {
|
|
|
626
623
|
} else a2(true);
|
|
627
624
|
});
|
|
628
625
|
}
|
|
629
|
-
function ne(e2
|
|
626
|
+
function ne(e2) {
|
|
627
|
+
return new Promise((t2, s2) => {
|
|
628
|
+
var _a, _b, _c, _d;
|
|
629
|
+
const n2 = e2.configureObj;
|
|
630
|
+
if (n2) {
|
|
631
|
+
let s3 = false;
|
|
632
|
+
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
|
|
633
|
+
const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
634
|
+
s3 = N(t3, o2);
|
|
635
|
+
}
|
|
636
|
+
true === s3 ? 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: (e3) => !(!e3 || !e3.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e3 }) => {
|
|
637
|
+
t2(e3);
|
|
638
|
+
}).catch(() => {
|
|
639
|
+
t2(false);
|
|
640
|
+
}) : t2(true);
|
|
641
|
+
} else t2(true);
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
function oe(e2, t2) {
|
|
630
645
|
if (t2) {
|
|
631
646
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = ee(e2);
|
|
632
|
-
c2.assigneeId = r2,
|
|
647
|
+
c2.assigneeId = r2, ue(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
633
648
|
h(s2, o2);
|
|
634
649
|
});
|
|
635
650
|
}
|
|
636
651
|
}
|
|
637
|
-
function
|
|
638
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 =
|
|
652
|
+
function ae(e2) {
|
|
653
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ie(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
639
654
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
640
655
|
}
|
|
641
|
-
function
|
|
656
|
+
function ie(t2) {
|
|
642
657
|
if (t2.entity) {
|
|
643
658
|
let s2 = e(t2.entity.page);
|
|
644
659
|
s2 || (s2 = {});
|
|
@@ -646,12 +661,12 @@ function ae(t2) {
|
|
|
646
661
|
return n2 && Object.assign(s2, n2), s2;
|
|
647
662
|
}
|
|
648
663
|
}
|
|
649
|
-
function
|
|
664
|
+
function re(e2, t2) {
|
|
650
665
|
if (t2) {
|
|
651
666
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
652
667
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
653
668
|
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
654
|
-
const d2 =
|
|
669
|
+
const d2 = ae(e2);
|
|
655
670
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
656
671
|
const m2 = c.post(p2, d2);
|
|
657
672
|
m2 && m2.then((e3) => {
|
|
@@ -659,7 +674,7 @@ function ie(e2, t2) {
|
|
|
659
674
|
});
|
|
660
675
|
}
|
|
661
676
|
}
|
|
662
|
-
async function
|
|
677
|
+
async function ce(e2, t2) {
|
|
663
678
|
if (t2) {
|
|
664
679
|
const s2 = await function(e3) {
|
|
665
680
|
return new Promise((t3, s3) => {
|
|
@@ -667,9 +682,10 @@ async function re(e2, t2) {
|
|
|
667
682
|
const n2 = e3.configureObj;
|
|
668
683
|
if (n2) {
|
|
669
684
|
let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
670
|
-
if (true === s4) {
|
|
685
|
+
if (void 0 === s4 || true === s4) {
|
|
686
|
+
s4 = true;
|
|
671
687
|
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
672
|
-
s4 =
|
|
688
|
+
s4 = N(t4, o2);
|
|
673
689
|
}
|
|
674
690
|
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 }) => {
|
|
675
691
|
t3(e4);
|
|
@@ -683,7 +699,7 @@ async function re(e2, t2) {
|
|
|
683
699
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
684
700
|
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
685
701
|
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
686
|
-
const m2 =
|
|
702
|
+
const m2 = ae(e2);
|
|
687
703
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
688
704
|
const f2 = c.post(d2, m2);
|
|
689
705
|
f2 && f2.then((e3) => {
|
|
@@ -692,40 +708,48 @@ async function re(e2, t2) {
|
|
|
692
708
|
}
|
|
693
709
|
}
|
|
694
710
|
}
|
|
695
|
-
function
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
711
|
+
async function ue(e2, t2, s2, n2) {
|
|
712
|
+
const a2 = await ne(e2);
|
|
713
|
+
return new Promise((i2, r2) => {
|
|
714
|
+
var _a;
|
|
715
|
+
if (a2) {
|
|
716
|
+
const p2 = e2.pageContext, d2 = p2.systemCode, m2 = p2.backendUrl;
|
|
717
|
+
if (p2.completeTaskParam) {
|
|
718
|
+
const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
|
|
719
|
+
t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
|
|
720
|
+
}
|
|
721
|
+
if (!(s2 = o(s2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
722
|
+
const f2 = c.post(s2, t2);
|
|
723
|
+
f2 && f2.then((t3) => {
|
|
724
|
+
let s3 = true;
|
|
725
|
+
t3 && (s3 = te(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
726
|
+
}).catch((e3) => {
|
|
727
|
+
r2(e3);
|
|
728
|
+
});
|
|
729
|
+
} else i2(true);
|
|
706
730
|
});
|
|
707
731
|
}
|
|
708
|
-
function
|
|
732
|
+
function le(e2) {
|
|
709
733
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
710
734
|
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
711
735
|
if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
712
|
-
const p2 = t2.code, d2 =
|
|
736
|
+
const p2 = t2.code, d2 = ie(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
713
737
|
return c.post(r2, m2);
|
|
714
738
|
}
|
|
715
|
-
function
|
|
739
|
+
function pe(e2, t2) {
|
|
716
740
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
|
|
717
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
741
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ue(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
718
742
|
h(s2, o2);
|
|
719
743
|
});
|
|
720
744
|
}
|
|
721
|
-
function
|
|
745
|
+
function de(e2) {
|
|
722
746
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
723
747
|
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
724
748
|
const r2 = ee(e2);
|
|
725
749
|
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
726
750
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
727
751
|
}
|
|
728
|
-
function
|
|
752
|
+
function me(e2, t2) {
|
|
729
753
|
if (t2) {
|
|
730
754
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
731
755
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -738,43 +762,48 @@ function de(e2, t2) {
|
|
|
738
762
|
});
|
|
739
763
|
}
|
|
740
764
|
}
|
|
741
|
-
function
|
|
742
|
-
let
|
|
743
|
-
return e2 && t2 && ("workflowSave" === e2 ?
|
|
765
|
+
function fe(e2, t2, s2, n2, o2) {
|
|
766
|
+
let a2 = false;
|
|
767
|
+
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
744
768
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
745
769
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
746
770
|
return false;
|
|
747
|
-
}(t2) : "
|
|
771
|
+
}(t2) : "workflowStart" === e2 ? a2 = function(e3, t3) {
|
|
772
|
+
if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
|
|
773
|
+
return false;
|
|
774
|
+
}(t2, o2) : "submitProcess" === e2 ? a2 = function(e3) {
|
|
748
775
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
749
776
|
return false;
|
|
750
|
-
}(t2) : "submitTask" === e2 ?
|
|
777
|
+
}(t2) : "submitTask" === e2 ? a2 = function(e3) {
|
|
751
778
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
752
779
|
return false;
|
|
753
|
-
}(t2) : "drawTask" === e2 ?
|
|
780
|
+
}(t2) : "drawTask" === e2 ? a2 = function(e3) {
|
|
754
781
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
755
782
|
return false;
|
|
756
|
-
}(t2) : "abandonReceive" === e2 ?
|
|
783
|
+
}(t2) : "abandonReceive" === e2 ? a2 = function(e3) {
|
|
757
784
|
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
|
|
758
785
|
return false;
|
|
759
|
-
}(t2) : "approve" === e2 || "refuse" === e2 ?
|
|
786
|
+
}(t2) : "approve" === e2 || "refuse" === e2 ? a2 = function(e3) {
|
|
760
787
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
|
|
761
788
|
return false;
|
|
762
|
-
}(t2) : "readed" === e2 ?
|
|
789
|
+
}(t2) : "readed" === e2 ? a2 = function(e3) {
|
|
763
790
|
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
|
|
764
791
|
return false;
|
|
765
|
-
}(t2) : "assign" === e2 ?
|
|
792
|
+
}(t2) : "assign" === e2 ? a2 = function(e3) {
|
|
766
793
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
767
794
|
return false;
|
|
768
|
-
}(t2) : "copyTask" === e2 ?
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
795
|
+
}(t2) : "copyTask" === e2 ? a2 = function(e3, t3) {
|
|
796
|
+
let s3 = false;
|
|
797
|
+
e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (s3 = true);
|
|
798
|
+
t3 && (t3.props.base.state = s3 ? "" : "hidden");
|
|
799
|
+
return true;
|
|
800
|
+
}(t2, n2) : "addSigner" === e2 ? a2 = function(e3) {
|
|
772
801
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
773
802
|
return false;
|
|
774
|
-
}(t2) : "removeSigner" === e2 ?
|
|
803
|
+
}(t2) : "removeSigner" === e2 ? a2 = function(e3) {
|
|
775
804
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
776
805
|
return false;
|
|
777
|
-
}(t2) : "retrieveTask" === e2 ?
|
|
806
|
+
}(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
|
|
778
807
|
if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
|
|
779
808
|
if ("COMPLETED" !== e4.active) return false;
|
|
780
809
|
if ("TYPE_READ" === e4.processingMode) return false;
|
|
@@ -782,10 +811,10 @@ function me(e2, t2, s2) {
|
|
|
782
811
|
return true;
|
|
783
812
|
}(e3)) return true;
|
|
784
813
|
return false;
|
|
785
|
-
}(t2) : "agreement" === e2 || "oppose" === e2 ?
|
|
814
|
+
}(t2) : "agreement" === e2 || "oppose" === e2 ? a2 = function(e3) {
|
|
786
815
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
|
|
787
816
|
return false;
|
|
788
|
-
}(t2) : "kiken" === e2 ?
|
|
817
|
+
}(t2) : "kiken" === e2 ? a2 = function(e3) {
|
|
789
818
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
790
819
|
return false;
|
|
791
820
|
}(t2) : function(e3, t3) {
|
|
@@ -795,23 +824,23 @@ function me(e2, t2, s2) {
|
|
|
795
824
|
t4 && (s3 = t4.taskComplete);
|
|
796
825
|
return s3;
|
|
797
826
|
}(t3);
|
|
798
|
-
}(t2, s2) && (
|
|
827
|
+
}(t2, s2) && (a2 = "returnToPreviousTask" !== e2 || function(e3) {
|
|
799
828
|
if (e3.rebuttable) return true;
|
|
800
829
|
return false;
|
|
801
|
-
}(t2))),
|
|
830
|
+
}(t2))), a2;
|
|
802
831
|
}
|
|
803
|
-
function
|
|
804
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
832
|
+
function ge(e2, t2) {
|
|
833
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, be(e2, t2).then((t3) => {
|
|
805
834
|
e2.isRefresh = true;
|
|
806
835
|
});
|
|
807
836
|
}
|
|
808
|
-
function
|
|
837
|
+
function be(e2, s2, o2) {
|
|
809
838
|
const a2 = e2.pageType;
|
|
810
839
|
if (a2 && "form" === a2) {
|
|
811
840
|
e2.canClick = false;
|
|
812
841
|
return t(e2) ? function(e3, t2, s3) {
|
|
813
842
|
return new Promise((o3, a3) => {
|
|
814
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
843
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
|
|
815
844
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
816
845
|
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);
|
|
817
846
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
@@ -822,9 +851,9 @@ function ge(e2, s2, o2) {
|
|
|
822
851
|
t3[s4] = s4;
|
|
823
852
|
}), C2.listCodesMap = t3;
|
|
824
853
|
}
|
|
825
|
-
f2 && (C2.ids =
|
|
826
|
-
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets",
|
|
827
|
-
|
|
854
|
+
f2 && (C2.ids = Ce(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);
|
|
855
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", y2 = _();
|
|
856
|
+
y2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
828
857
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
|
|
829
858
|
const s4 = e3.pageType;
|
|
830
859
|
s4 && "form" === s4 && function(e4) {
|
|
@@ -857,18 +886,18 @@ function ge(e2, s2, o2) {
|
|
|
857
886
|
}
|
|
858
887
|
e5.actionPermissionMap = s5;
|
|
859
888
|
}(e4);
|
|
860
|
-
}(e3), e3.canClick = true,
|
|
889
|
+
}(e3), e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
|
|
861
890
|
}).catch((t3) => {
|
|
862
891
|
e3.canClick = true, a3(t3);
|
|
863
892
|
});
|
|
864
893
|
});
|
|
865
894
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
866
895
|
return new Promise((o3, a3) => {
|
|
867
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
896
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
|
|
868
897
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
869
898
|
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);
|
|
870
899
|
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: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
871
|
-
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids =
|
|
900
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = Ce(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, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
872
901
|
const t3 = {};
|
|
873
902
|
e3.tableUuids.forEach((e4) => {
|
|
874
903
|
const s4 = r(u2, l2, e4);
|
|
@@ -876,11 +905,11 @@ function ge(e2, s2, o2) {
|
|
|
876
905
|
}), T2.listCodesMap = t3;
|
|
877
906
|
}
|
|
878
907
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
879
|
-
const
|
|
880
|
-
h2.restorePageLoadState(),
|
|
908
|
+
const y2 = C2 + "/dsc/commons/gets", h2 = _();
|
|
909
|
+
h2.restorePageLoadState(), w(null, e3, e3, "beforeFormLoadData"), c.post(y2, T2).then((t3) => {
|
|
881
910
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
882
911
|
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
883
|
-
e3.rules = a4, e3.canClick = true,
|
|
912
|
+
e3.rules = a4, e3.canClick = true, w(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
884
913
|
}).catch((t3) => {
|
|
885
914
|
e3.canClick = true, a3(t3);
|
|
886
915
|
});
|
|
@@ -891,10 +920,10 @@ function ge(e2, s2, o2) {
|
|
|
891
920
|
e3(true);
|
|
892
921
|
});
|
|
893
922
|
}
|
|
894
|
-
function
|
|
923
|
+
function Ce(e2) {
|
|
895
924
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
896
925
|
}
|
|
897
|
-
function
|
|
926
|
+
function Te(e2) {
|
|
898
927
|
const t2 = e2.props.setValueList;
|
|
899
928
|
if (t2) {
|
|
900
929
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -902,7 +931,7 @@ function Ce(e2) {
|
|
|
902
931
|
}
|
|
903
932
|
return null;
|
|
904
933
|
}
|
|
905
|
-
function
|
|
934
|
+
function we(e2, t2) {
|
|
906
935
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
907
936
|
return c.post(a2, o2);
|
|
908
937
|
}
|
|
@@ -910,33 +939,33 @@ function ye(e2) {
|
|
|
910
939
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
911
940
|
return c.get(s2);
|
|
912
941
|
}
|
|
913
|
-
function
|
|
942
|
+
function he(e2) {
|
|
914
943
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
915
944
|
return c.delete(t2);
|
|
916
945
|
}
|
|
917
946
|
export {
|
|
918
947
|
q as dealAfterOperate,
|
|
919
948
|
te as dealCompleteTaskParam,
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
949
|
+
he as deleteChartCondition,
|
|
950
|
+
re as doAddSigner,
|
|
951
|
+
oe as doAssign,
|
|
952
|
+
ce as doCreateCopyTask,
|
|
924
953
|
X as doImportFinally,
|
|
925
|
-
|
|
926
|
-
|
|
954
|
+
me as doRemoveSigners,
|
|
955
|
+
pe as doReturnTaskTo,
|
|
927
956
|
L as exportFormReport,
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
957
|
+
ie as getAdditionalParamMap,
|
|
958
|
+
be as getFormData,
|
|
959
|
+
de as getRemoveSigner,
|
|
931
960
|
$ as getSaveFormRequest,
|
|
932
961
|
F as getSaveFormRequestWithRow,
|
|
933
|
-
|
|
934
|
-
|
|
962
|
+
le as getTaskInformitions,
|
|
963
|
+
fe as isVisibleWorkflowButton,
|
|
935
964
|
Z as judgeDataNumber,
|
|
936
965
|
ye as listChartConditions,
|
|
937
966
|
K as refreshFormOrListPage,
|
|
938
|
-
|
|
939
|
-
|
|
967
|
+
ge as refreshPage,
|
|
968
|
+
we as saveChartConditionBase,
|
|
940
969
|
j as standardEvents,
|
|
941
970
|
Y as updateValuesWhenCloseDialog
|
|
942
971
|
};
|