super-page-runtime 2.3.14 → 2.3.15-sit2
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/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +29 -29
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +163 -114
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +117 -88
- package/dist/es/components/runtime/utils/page-permission-util.js +1 -1
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- 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-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- 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/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +11 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +4 -0
- 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/fixed/YxAffix.vue2.js +0 -2
- 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/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +18 -18
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
- 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 +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +53 -42
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- 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 +4 -4
- 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 +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +61 -62
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +81 -58
- 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 +17 -17
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +200 -185
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +3 -2
|
@@ -6,10 +6,10 @@ import { getCurrentUser as d, getToken as m, getSessionCache as f, getRunCurrent
|
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import T from "../eventBus.js";
|
|
8
8
|
import w from "axios";
|
|
9
|
-
import { handleEvent as k, getTableUuid as
|
|
9
|
+
import { handleEvent as k, getTableUuid as h, doAfterClickEvent as y } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import { updateChartDatasources as
|
|
11
|
+
import { getPermissionCodes as R, getDefaultValue as S, getModelFields as v } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as M, caculateShowCondition as I, getVariableValue as N, setVariableValue as x } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as E } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
@@ -50,12 +50,12 @@ const D = { save: function(e2) {
|
|
|
50
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 = E(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), w2 =
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = R(u2, r2), k2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
54
|
r2.beanName && (k2.beanName = r2.beanName);
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
55
|
+
const h2 = u2.props.deleteLogicSetting;
|
|
56
|
+
h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
|
|
57
|
+
const y2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
+
y2 && (k2.logSettingText = y2.join(""));
|
|
59
59
|
const P2 = u2.props.base.isSafeDelete;
|
|
60
60
|
P2 && (k2.isSafeDelete = P2), c.delete(g2, { data: k2 }).then((e4) => {
|
|
61
61
|
const t2 = b(r2, m2);
|
|
@@ -83,7 +83,7 @@ const D = { save: function(e2) {
|
|
|
83
83
|
const C2 = e3.listCode;
|
|
84
84
|
C2 && (d2 += "&listCode=" + C2);
|
|
85
85
|
t2.beanName && (d2 += "&beanName=" + t2.beanName);
|
|
86
|
-
const b2 =
|
|
86
|
+
const b2 = R(s2, t2);
|
|
87
87
|
b2 && (d2 += "&functionCode=" + b2);
|
|
88
88
|
t2.tableName && (d2 += "&tableName=" + t2.tableName);
|
|
89
89
|
t2.code && (d2 += "&pageCode=" + t2.code);
|
|
@@ -95,8 +95,8 @@ const D = { save: function(e2) {
|
|
|
95
95
|
if (o2) {
|
|
96
96
|
d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
window.open(
|
|
98
|
+
const h2 = n(l2, t2.isTest);
|
|
99
|
+
window.open(h2 + "/dsc/commons/download-files" + d2);
|
|
100
100
|
}(e2);
|
|
101
101
|
}, import: function(e2) {
|
|
102
102
|
const t2 = e2.pageContext.code + "_";
|
|
@@ -111,7 +111,7 @@ const D = { 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 =
|
|
114
|
+
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = R(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
115
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);
|
|
116
116
|
});
|
|
117
117
|
}(e2);
|
|
@@ -200,22 +200,22 @@ const D = { save: function(e2) {
|
|
|
200
200
|
}, drawTask: function(e2) {
|
|
201
201
|
return function(e3) {
|
|
202
202
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = te(e3);
|
|
203
|
-
return
|
|
203
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
204
204
|
}(e2);
|
|
205
205
|
}, abandonReceive: function(e2) {
|
|
206
206
|
return function(e3) {
|
|
207
207
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = te(e3);
|
|
208
|
-
return
|
|
208
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
209
209
|
}(e2);
|
|
210
210
|
}, returnToPreviousTask: function(e2) {
|
|
211
211
|
return function(e3) {
|
|
212
212
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = te(e3);
|
|
213
|
-
return
|
|
213
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
214
214
|
}(e2);
|
|
215
215
|
}, endInstance: function(e2) {
|
|
216
216
|
return function(e3) {
|
|
217
217
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = te(e3);
|
|
218
|
-
return
|
|
218
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
219
219
|
}(e2);
|
|
220
220
|
}, returnTaskTo: function(e2) {
|
|
221
221
|
return function(e3) {
|
|
@@ -230,7 +230,7 @@ const D = { save: function(e2) {
|
|
|
230
230
|
}, retrieveTask: function(e2) {
|
|
231
231
|
return function(e3) {
|
|
232
232
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = te(e3);
|
|
233
|
-
return
|
|
233
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
234
234
|
}(e2);
|
|
235
235
|
}, extractWorkflow: function(e2) {
|
|
236
236
|
return function(e3) {
|
|
@@ -256,31 +256,30 @@ const D = { save: function(e2) {
|
|
|
256
256
|
}, cancelExtractWorkflow: function(e2) {
|
|
257
257
|
return function(e3) {
|
|
258
258
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = te(e3);
|
|
259
|
-
return
|
|
259
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
260
260
|
}(e2);
|
|
261
261
|
}, approveExtractWorkflow: function(e2) {
|
|
262
262
|
return function(e3) {
|
|
263
263
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = te(e3);
|
|
264
|
-
return
|
|
264
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
265
265
|
}(e2);
|
|
266
266
|
}, refuseExtractWorkflow: function(e2) {
|
|
267
267
|
return function(e3) {
|
|
268
268
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = te(e3);
|
|
269
|
-
return
|
|
269
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
270
270
|
}(e2);
|
|
271
271
|
}, viewDetail: function(e2) {
|
|
272
272
|
}, lineEditCreate: function(e2) {
|
|
273
273
|
return function(e3) {
|
|
274
274
|
const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
|
|
275
|
-
n2 && (e3.getDefaultValueFunc =
|
|
275
|
+
n2 && (e3.getDefaultValueFunc = S, n2.createRow(e3.listCode, {}, e3));
|
|
276
276
|
}(e2);
|
|
277
277
|
}, printLabel: function(e2) {
|
|
278
278
|
return function(e3) {
|
|
279
279
|
let t2 = null;
|
|
280
280
|
try {
|
|
281
281
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
282
|
-
} catch (
|
|
283
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
282
|
+
} catch (e4) {
|
|
284
283
|
}
|
|
285
284
|
A.printLabel(e3, t2);
|
|
286
285
|
}(e2);
|
|
@@ -328,6 +327,16 @@ const D = { save: function(e2) {
|
|
|
328
327
|
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
329
328
|
T.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
330
329
|
}(e2);
|
|
330
|
+
}, addTransactor: function(e2) {
|
|
331
|
+
return function(e3) {
|
|
332
|
+
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
333
|
+
T.$emit(s2 + "add-transactor", e3);
|
|
334
|
+
}(e2);
|
|
335
|
+
}, removeTransactor: function(e2) {
|
|
336
|
+
return function(e3) {
|
|
337
|
+
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
338
|
+
T.$emit(s2 + "remove-transactor", e3);
|
|
339
|
+
}(e2);
|
|
331
340
|
} };
|
|
332
341
|
function W(e2) {
|
|
333
342
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
@@ -336,7 +345,7 @@ function W(e2) {
|
|
|
336
345
|
let o2 = null;
|
|
337
346
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
338
347
|
const a2 = o2 ? o2.state : void 0;
|
|
339
|
-
o2 && (o2.state = "disabled"),
|
|
348
|
+
o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
340
349
|
o2 && (o2.state = a2);
|
|
341
350
|
}).catch(() => {
|
|
342
351
|
o2 && (o2.state = a2);
|
|
@@ -345,7 +354,7 @@ function W(e2) {
|
|
|
345
354
|
function L(e2, s2, o2, a2) {
|
|
346
355
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
347
356
|
e2.clickUuid = s2.uuid;
|
|
348
|
-
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 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode:
|
|
357
|
+
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 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: R(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
349
358
|
u2 && (b2.logSettingText = u2.join(""));
|
|
350
359
|
const T2 = ce(e2);
|
|
351
360
|
let k2;
|
|
@@ -375,7 +384,7 @@ function L(e2, s2, o2, a2) {
|
|
|
375
384
|
});
|
|
376
385
|
});
|
|
377
386
|
}(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
|
|
378
|
-
|
|
387
|
+
y(e2, s2);
|
|
379
388
|
}).catch((e3) => {
|
|
380
389
|
});
|
|
381
390
|
}
|
|
@@ -392,7 +401,7 @@ function F(e2, t2) {
|
|
|
392
401
|
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
393
402
|
let u2 = false;
|
|
394
403
|
c2 && "noOperation" === c2 && (u2 = true);
|
|
395
|
-
const l2 =
|
|
404
|
+
const l2 = $(o2, a2, "/dsc/commons", u2, i2, r2);
|
|
396
405
|
l2 ? l2.then((e3) => {
|
|
397
406
|
H(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
398
407
|
}).catch((e3) => {
|
|
@@ -402,14 +411,14 @@ function F(e2, t2) {
|
|
|
402
411
|
}
|
|
403
412
|
function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
404
413
|
var _a;
|
|
405
|
-
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 =
|
|
414
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = R(n2, e2);
|
|
406
415
|
let m2 = c2;
|
|
407
416
|
m2 || (m2 = e2.entity.data);
|
|
408
417
|
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: u2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
409
418
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
410
419
|
const g2 = n2.props.base.conversionCodes;
|
|
411
420
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
412
|
-
const C2 =
|
|
421
|
+
const C2 = Re(n2);
|
|
413
422
|
C2 && (f2.autoSetValueData = C2);
|
|
414
423
|
const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
415
424
|
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
@@ -418,7 +427,7 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
|
418
427
|
const w2 = ce(e2);
|
|
419
428
|
return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
420
429
|
}
|
|
421
|
-
function
|
|
430
|
+
function q(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
422
431
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
423
432
|
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
|
|
424
433
|
const u3 = n(t3, r3);
|
|
@@ -427,19 +436,20 @@ function $(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
|
427
436
|
return l3;
|
|
428
437
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
429
438
|
}
|
|
430
|
-
function
|
|
431
|
-
return
|
|
439
|
+
function $(e2, t2, s2, n2, o2, a2) {
|
|
440
|
+
return q(e2, t2, s2, n2, o2, a2, null, null);
|
|
432
441
|
}
|
|
433
442
|
function H(t2, s2, n2, o2, a2) {
|
|
434
|
-
const i2 =
|
|
443
|
+
const i2 = J(t2, s2, a2);
|
|
435
444
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
436
445
|
let a3 = s3.props.base.successOperation;
|
|
437
|
-
const i3 = s3.props.base.isNeedValueMapping, r2 =
|
|
446
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
438
447
|
a3 || K.includes(s3.name) || (a3 = "refresh");
|
|
439
|
-
if ("refresh" === a3)
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
448
|
+
if ("refresh" === a3) {
|
|
449
|
+
if (r2) {
|
|
450
|
+
b(t3, r2).refresh();
|
|
451
|
+
}
|
|
452
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
443
453
|
const o4 = e(t3.entity.page);
|
|
444
454
|
let a4 = n3;
|
|
445
455
|
a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
|
|
@@ -451,29 +461,29 @@ function H(t2, s2, n2, o2, a2) {
|
|
|
451
461
|
const n4 = s3;
|
|
452
462
|
let o3;
|
|
453
463
|
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
454
|
-
|
|
464
|
+
G(e2, t3, { ...o3, ...e2.entity.page });
|
|
455
465
|
} else {
|
|
456
466
|
const s4 = t3.props.base.successOperation;
|
|
457
467
|
if (s4 && null !== s4) {
|
|
458
|
-
|
|
468
|
+
G(e2, t3, { ...e2.entity.page });
|
|
459
469
|
} else e2.canClick = true;
|
|
460
470
|
}
|
|
461
471
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
462
472
|
}(t2, s2, n2, o2);
|
|
463
473
|
else {
|
|
464
474
|
const e2 = s2.props.base.successOperation;
|
|
465
|
-
e2 && null !== e2 ?
|
|
475
|
+
e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
|
|
466
476
|
}
|
|
467
477
|
}
|
|
468
|
-
function
|
|
478
|
+
function J(e2, t2, s2) {
|
|
469
479
|
let n2;
|
|
470
480
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
471
481
|
}
|
|
472
|
-
function
|
|
482
|
+
function G(e2, t2, s2) {
|
|
473
483
|
const n2 = t2.props.base.successOperation;
|
|
474
484
|
if (!n2 || null === n2) return;
|
|
475
485
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
476
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
486
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? he(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (Y(e2, t2, s2, o2), e2.canClick = true);
|
|
477
487
|
}
|
|
478
488
|
function Y(e2, t2, s2, n2) {
|
|
479
489
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -493,7 +503,7 @@ function z(e2, t2, s2, n2, o2) {
|
|
|
493
503
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
494
504
|
const t4 = e4.source;
|
|
495
505
|
if (!t4) return;
|
|
496
|
-
const o3 = t4.split("."), a3 =
|
|
506
|
+
const o3 = t4.split("."), a3 = N(n3, o3), i2 = e4.target, r2 = v(null, i2);
|
|
497
507
|
x(s3.entity, r2, a3);
|
|
498
508
|
});
|
|
499
509
|
}
|
|
@@ -505,16 +515,16 @@ function X(e2, t2, s2, n2) {
|
|
|
505
515
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
506
516
|
let o2 = n2;
|
|
507
517
|
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
508
|
-
const a2 =
|
|
518
|
+
const a2 = J(e2, t2);
|
|
509
519
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
510
520
|
if (a2 && "list" === a2) {
|
|
511
|
-
const s3 =
|
|
521
|
+
const s3 = h(e2, t2);
|
|
512
522
|
if (s3) {
|
|
513
523
|
b(e2, s3).refresh();
|
|
514
|
-
}
|
|
524
|
+
}
|
|
515
525
|
} else if (a2 && "form" === a2) {
|
|
516
526
|
const t3 = e2.entity.data;
|
|
517
|
-
|
|
527
|
+
he(e2, t3.ID ? t3.ID : t3.id);
|
|
518
528
|
}
|
|
519
529
|
}
|
|
520
530
|
}
|
|
@@ -560,7 +570,7 @@ function Z(e2, s2) {
|
|
|
560
570
|
g2 && f2.append("importDuplicateRule", g2);
|
|
561
571
|
const C2 = a2.judgeHeavyList;
|
|
562
572
|
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
563
|
-
const b2 =
|
|
573
|
+
const b2 = Re(i2);
|
|
564
574
|
b2 && f2.append("autoSetValueData", b2);
|
|
565
575
|
const T2 = a2.formNoRuleCode;
|
|
566
576
|
T2 && f2.append("formNoRuleCode", T2);
|
|
@@ -568,23 +578,23 @@ function Z(e2, s2) {
|
|
|
568
578
|
w2 && f2.append("listCode", w2);
|
|
569
579
|
let k2 = false;
|
|
570
580
|
k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
|
|
571
|
-
const
|
|
572
|
-
null !=
|
|
573
|
-
const P2 =
|
|
581
|
+
const h2 = t(a2);
|
|
582
|
+
null != h2 && f2.append("isWorkflowEntity", h2 + "");
|
|
583
|
+
const P2 = R(i2, a2);
|
|
574
584
|
P2 && f2.append("functionCode", P2);
|
|
575
|
-
const
|
|
576
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
577
|
-
const
|
|
578
|
-
f2.append("isPermission",
|
|
579
|
-
const
|
|
580
|
-
|
|
585
|
+
const S2 = ce(a2);
|
|
586
|
+
f2.append("additionalParamMapStr", JSON.stringify(S2));
|
|
587
|
+
const v2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
588
|
+
f2.append("isPermission", v2 + "");
|
|
589
|
+
const M2 = a2.systemCode;
|
|
590
|
+
M2 && f2.append("systemCode", M2);
|
|
581
591
|
const I2 = a2.backendUrl;
|
|
582
|
-
let
|
|
583
|
-
|
|
592
|
+
let N2 = n(I2, a2.isTest) + "/dsc/commons/import-data";
|
|
593
|
+
N2 = o(N2, M2, I2, a2.isTest), c.post(N2, f2).then((e3) => {
|
|
584
594
|
if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
585
595
|
else {
|
|
586
596
|
let t2 = false;
|
|
587
|
-
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), H(a2, i2, e3, null, true), a2.result = t2,
|
|
597
|
+
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), H(a2, i2, e3, null, true), a2.result = t2, y(a2, i2);
|
|
588
598
|
}
|
|
589
599
|
}).catch((e3) => {
|
|
590
600
|
});
|
|
@@ -601,18 +611,18 @@ function ee(e2, t2) {
|
|
|
601
611
|
function te(e2) {
|
|
602
612
|
var _a;
|
|
603
613
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
604
|
-
let r2 =
|
|
614
|
+
let r2 = R(n2, t2);
|
|
605
615
|
r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
606
616
|
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
607
617
|
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);
|
|
608
618
|
const u2 = n2.props.base.conversionCodes;
|
|
609
619
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
610
|
-
const l2 =
|
|
620
|
+
const l2 = Re(n2);
|
|
611
621
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
612
622
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
613
623
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
614
624
|
const d2 = ce(t2);
|
|
615
|
-
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
|
|
625
|
+
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]));
|
|
616
626
|
const m2 = n2.props.base.successOperation;
|
|
617
627
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
618
628
|
}
|
|
@@ -680,8 +690,8 @@ function oe(e2) {
|
|
|
680
690
|
function ae(e2, t2) {
|
|
681
691
|
if (t2) {
|
|
682
692
|
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 = te(e2);
|
|
683
|
-
c2.assigneeId = r2,
|
|
684
|
-
|
|
693
|
+
c2.assigneeId = r2, de(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
694
|
+
y(s2, o2);
|
|
685
695
|
});
|
|
686
696
|
}
|
|
687
697
|
}
|
|
@@ -724,11 +734,24 @@ function ue(e2, t2) {
|
|
|
724
734
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
725
735
|
const m2 = c.post(p2, d2);
|
|
726
736
|
m2 && m2.then((e3) => {
|
|
727
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false),
|
|
737
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), y(s2, a2);
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
function le(e2, t2) {
|
|
742
|
+
if (t2) {
|
|
743
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
744
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
745
|
+
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
746
|
+
const d2 = ie(e2);
|
|
747
|
+
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
748
|
+
const m2 = c.post(p2, d2);
|
|
749
|
+
m2 && m2.then((e3) => {
|
|
750
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), y(s2, a2);
|
|
728
751
|
});
|
|
729
752
|
}
|
|
730
753
|
}
|
|
731
|
-
async function
|
|
754
|
+
async function pe(e2, t2) {
|
|
732
755
|
if (t2) {
|
|
733
756
|
const s2 = await function(e3) {
|
|
734
757
|
return new Promise((t3, s3) => {
|
|
@@ -757,12 +780,12 @@ async function le(e2, t2) {
|
|
|
757
780
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
758
781
|
const f2 = c.post(d2, m2);
|
|
759
782
|
f2 && f2.then((e3) => {
|
|
760
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }),
|
|
783
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), y(a2, i2);
|
|
761
784
|
});
|
|
762
785
|
}
|
|
763
786
|
}
|
|
764
787
|
}
|
|
765
|
-
async function
|
|
788
|
+
async function de(e2, t2, s2, n2) {
|
|
766
789
|
const a2 = await oe(e2);
|
|
767
790
|
return new Promise((i2, r2) => {
|
|
768
791
|
var _a;
|
|
@@ -783,27 +806,27 @@ async function pe(e2, t2, s2, n2) {
|
|
|
783
806
|
} else i2(true);
|
|
784
807
|
});
|
|
785
808
|
}
|
|
786
|
-
function
|
|
809
|
+
function me(e2) {
|
|
787
810
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
788
811
|
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
789
812
|
if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
790
813
|
const p2 = t2.code, d2 = ce(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
791
814
|
return c.post(r2, m2);
|
|
792
815
|
}
|
|
793
|
-
function
|
|
816
|
+
function fe(e2, t2) {
|
|
794
817
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
|
|
795
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
796
|
-
|
|
818
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), de(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
819
|
+
y(s2, o2);
|
|
797
820
|
});
|
|
798
821
|
}
|
|
799
|
-
function
|
|
822
|
+
function ge(e2) {
|
|
800
823
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
801
824
|
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
802
825
|
const r2 = te(e2);
|
|
803
826
|
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
804
827
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
805
828
|
}
|
|
806
|
-
function
|
|
829
|
+
function Ce(e2, t2) {
|
|
807
830
|
if (t2) {
|
|
808
831
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
809
832
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -812,24 +835,44 @@ function ge(e2, t2) {
|
|
|
812
835
|
m2.ids = d2;
|
|
813
836
|
const f2 = c.post(p2, m2);
|
|
814
837
|
f2 && f2.then((e3) => {
|
|
815
|
-
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false),
|
|
838
|
+
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, a2);
|
|
816
839
|
});
|
|
817
840
|
}
|
|
818
841
|
}
|
|
819
|
-
function
|
|
842
|
+
function be(e2) {
|
|
843
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
844
|
+
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
845
|
+
const r2 = te(e2);
|
|
846
|
+
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
847
|
+
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
848
|
+
}
|
|
849
|
+
function Te(e2, t2) {
|
|
850
|
+
if (t2) {
|
|
851
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
852
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
853
|
+
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
854
|
+
const d2 = t2.map((e3) => e3.taskId), m2 = te(e2);
|
|
855
|
+
m2.ids = d2;
|
|
856
|
+
const f2 = c.post(p2, m2);
|
|
857
|
+
f2 && f2.then((e3) => {
|
|
858
|
+
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, a2);
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
function we(e2, t2, s2, n2, o2) {
|
|
820
863
|
let a2 = false;
|
|
821
864
|
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
822
|
-
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
823
|
-
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;
|
|
865
|
+
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
866
|
+
if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "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;
|
|
824
867
|
return false;
|
|
825
868
|
}(t2) : "workflowStart" === e2 ? a2 = function(e3, t3) {
|
|
826
869
|
if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
|
|
827
870
|
return false;
|
|
828
871
|
}(t2, o2) : "submitProcess" === e2 ? a2 = function(e3) {
|
|
829
|
-
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
872
|
+
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
830
873
|
return false;
|
|
831
874
|
}(t2) : "submitTask" === e2 ? a2 = function(e3) {
|
|
832
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
875
|
+
if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
833
876
|
return false;
|
|
834
877
|
}(t2) : "drawTask" === e2 ? a2 = function(e3) {
|
|
835
878
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
@@ -852,10 +895,10 @@ function Ce(e2, t2, s2, n2, o2) {
|
|
|
852
895
|
t3 && (t3.props.base.state = s3 ? "" : "hidden");
|
|
853
896
|
return true;
|
|
854
897
|
}(t2, n2) : "addSigner" === e2 ? a2 = function(e3) {
|
|
855
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active &&
|
|
898
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
856
899
|
return false;
|
|
857
900
|
}(t2) : "removeSigner" === e2 ? a2 = function(e3) {
|
|
858
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active &&
|
|
901
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
859
902
|
return false;
|
|
860
903
|
}(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
|
|
861
904
|
if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
|
|
@@ -883,7 +926,10 @@ function Ce(e2, t2, s2, n2, o2) {
|
|
|
883
926
|
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
884
927
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
885
928
|
return false;
|
|
886
|
-
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 =
|
|
929
|
+
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = ke(t2) : "addTransactor" === e2 || "removeTransactor" === e2 ? a2 = function(e3) {
|
|
930
|
+
if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
931
|
+
return false;
|
|
932
|
+
}(t2) : function(e3, t3) {
|
|
887
933
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
888
934
|
const t4 = e4;
|
|
889
935
|
let s3 = true;
|
|
@@ -895,15 +941,15 @@ function Ce(e2, t2, s2, n2, o2) {
|
|
|
895
941
|
return false;
|
|
896
942
|
}(t2))), a2;
|
|
897
943
|
}
|
|
898
|
-
function
|
|
944
|
+
function ke(e2, t2, s2) {
|
|
899
945
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
900
946
|
}
|
|
901
|
-
function
|
|
902
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
947
|
+
function he(e2, t2) {
|
|
948
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ye(e2, t2).then((t3) => {
|
|
903
949
|
e2.isRefresh = true;
|
|
904
950
|
});
|
|
905
951
|
}
|
|
906
|
-
function
|
|
952
|
+
function ye(e2, s2, o2) {
|
|
907
953
|
const a2 = e2.pageType;
|
|
908
954
|
if (a2 && "form" === a2) {
|
|
909
955
|
e2.canClick = false;
|
|
@@ -913,14 +959,14 @@ function we(e2, s2, o2) {
|
|
|
913
959
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
914
960
|
void 0 === s3 || s3 ? (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);
|
|
915
961
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
916
|
-
if (
|
|
962
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
917
963
|
const t3 = {};
|
|
918
964
|
e3.tableUuids.forEach((e4) => {
|
|
919
965
|
const s4 = r(u2, l2, e4);
|
|
920
966
|
t3[s4] = s4;
|
|
921
967
|
}), b2.listCodesMap = t3;
|
|
922
968
|
}
|
|
923
|
-
m2 && (b2.ids =
|
|
969
|
+
m2 && (b2.ids = Pe(m2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (b2.id = f(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);
|
|
924
970
|
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = j();
|
|
925
971
|
w2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(T2, b2).then((t3) => {
|
|
926
972
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, e3.dataTypeMaps = t3.dataTypeMap, se(t3, true, e3), e3.workflowRules = O(e3);
|
|
@@ -967,7 +1013,7 @@ function we(e2, s2, o2) {
|
|
|
967
1013
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
968
1014
|
void 0 === s3 || s3 ? (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);
|
|
969
1015
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
970
|
-
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids =
|
|
1016
|
+
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = Pe(m2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
971
1017
|
const t3 = {};
|
|
972
1018
|
e3.tableUuids.forEach((e4) => {
|
|
973
1019
|
const s4 = r(u2, l2, e4);
|
|
@@ -975,11 +1021,11 @@ function we(e2, s2, o2) {
|
|
|
975
1021
|
}), T2.listCodesMap = t3;
|
|
976
1022
|
}
|
|
977
1023
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
978
|
-
const w2 = b2 + "/dsc/commons/gets",
|
|
979
|
-
|
|
1024
|
+
const w2 = b2 + "/dsc/commons/gets", h2 = j();
|
|
1025
|
+
h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
|
|
980
1026
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
981
1027
|
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
982
|
-
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"),
|
|
1028
|
+
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
983
1029
|
}).catch((t3) => {
|
|
984
1030
|
e3.canClick = true, a3(t3);
|
|
985
1031
|
});
|
|
@@ -990,10 +1036,10 @@ function we(e2, s2, o2) {
|
|
|
990
1036
|
e3(true);
|
|
991
1037
|
});
|
|
992
1038
|
}
|
|
993
|
-
function
|
|
1039
|
+
function Pe(e2) {
|
|
994
1040
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
995
1041
|
}
|
|
996
|
-
function
|
|
1042
|
+
function Re(e2) {
|
|
997
1043
|
const t2 = e2.props.setValueList;
|
|
998
1044
|
if (t2) {
|
|
999
1045
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -1001,41 +1047,44 @@ function ye(e2) {
|
|
|
1001
1047
|
}
|
|
1002
1048
|
return null;
|
|
1003
1049
|
}
|
|
1004
|
-
function
|
|
1050
|
+
function Se(e2, t2) {
|
|
1005
1051
|
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";
|
|
1006
1052
|
return c.post(a2, o2);
|
|
1007
1053
|
}
|
|
1008
|
-
function
|
|
1054
|
+
function ve(e2) {
|
|
1009
1055
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
1010
1056
|
return c.get(s2);
|
|
1011
1057
|
}
|
|
1012
|
-
function
|
|
1058
|
+
function Me(e2) {
|
|
1013
1059
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
1014
1060
|
return c.delete(t2);
|
|
1015
1061
|
}
|
|
1016
1062
|
export {
|
|
1017
1063
|
H as dealAfterOperate,
|
|
1018
1064
|
se as dealCompleteTaskParam,
|
|
1019
|
-
|
|
1065
|
+
Me as deleteChartCondition,
|
|
1020
1066
|
ue as doAddSigner,
|
|
1067
|
+
le as doAddTransactor,
|
|
1021
1068
|
ae as doAssign,
|
|
1022
|
-
|
|
1069
|
+
pe as doCreateCopyTask,
|
|
1023
1070
|
Z as doImportFinally,
|
|
1024
|
-
|
|
1025
|
-
|
|
1071
|
+
Ce as doRemoveSigners,
|
|
1072
|
+
Te as doRemoveTransactors,
|
|
1073
|
+
fe as doReturnTaskTo,
|
|
1026
1074
|
L as exportFormReport,
|
|
1027
1075
|
ce as getAdditionalParamMap,
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
$ as
|
|
1032
|
-
|
|
1033
|
-
|
|
1076
|
+
ye as getFormData,
|
|
1077
|
+
ge as getRemoveSigner,
|
|
1078
|
+
be as getRemoveTransactor,
|
|
1079
|
+
$ as getSaveFormRequest,
|
|
1080
|
+
q as getSaveFormRequestWithRow,
|
|
1081
|
+
me as getTaskInformitions,
|
|
1082
|
+
we as isVisibleWorkflowButton,
|
|
1034
1083
|
ee as judgeDataNumber,
|
|
1035
|
-
|
|
1084
|
+
ve as listChartConditions,
|
|
1036
1085
|
X as refreshFormOrListPage,
|
|
1037
|
-
|
|
1038
|
-
|
|
1086
|
+
he as refreshPage,
|
|
1087
|
+
Se as saveChartConditionBase,
|
|
1039
1088
|
D as standardEvents,
|
|
1040
1089
|
z as updateValuesWhenCloseDialog
|
|
1041
1090
|
};
|