super-page-runtime 2.3.18 → 2.3.19-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/assets/chart-themes/bar-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/bar-theme.js +4 -0
- package/dist/es/assets/chart-themes/gauge-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/gauge-theme.js +4 -0
- package/dist/es/assets/chart-themes/pie-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/pie-theme.js +4 -0
- package/dist/es/assets/chart-themes/radar-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/radar-theme.js +4 -0
- package/dist/es/assets/chart-themes/scatter-theme.d.ts +6 -0
- package/dist/es/assets/chart-themes/scatter-theme.js +4 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -70
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +129 -119
- package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +577 -512
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
- package/dist/es/components/runtime/utils/page-init-util.js +87 -68
- 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 +148 -145
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
- 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/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +37 -25
- 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 +194 -194
- 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 +55 -54
- 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 +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +43 -27
- 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 +11 -13
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
- 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 +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +180 -168
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +134 -86
- package/package.json +2 -2
- package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme1.js +0 -4
- package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme2.js +0 -4
- package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
- package/dist/es/assets/chart-themes/theme3.js +0 -4
|
@@ -1,65 +1,69 @@
|
|
|
1
|
-
import { deepCopy as e,
|
|
1
|
+
import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as s, isWorkflowPage as n, isArrayFn as o, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import { getI18n as u } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage as l, ElMessageBox as p } from "element-plus";
|
|
5
|
-
import { getCurrentUser as d, getToken as m, getSessionCache as f,
|
|
5
|
+
import { getCurrentUser as d, getToken as m, getSessionCache as f, setSessionCache as g, getRunCurrentRole as C } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { handleEvent as
|
|
7
|
+
import w from "../eventBus.js";
|
|
8
|
+
import T from "axios";
|
|
9
|
+
import { handleEvent as y, getTableUuid as k, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
15
|
-
import { getWorkflowRules as
|
|
11
|
+
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as v } from "../page-init-util.js";
|
|
12
|
+
import { caculateShowCondition as M, updateChartDatasources as I, getVariableValue as N, setVariableValue as x } from "../page-helper-util.js";
|
|
13
|
+
import O from "./print-label.js";
|
|
14
|
+
import { getTableNameByTableUuid as A } from "../table-utils.js";
|
|
15
|
+
import { getWorkflowRules as E, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as _ } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as j } from "../page-store.js";
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
import { isMobileBrowser as D } from "agilebuilder-ui/src/utils/common-util";
|
|
19
|
+
import { cacheBackfillData as W, removeCacheFillData as L, hasBackfillData as B, getRealFillData as F, removeCacheFillDataById as V } from "./data-backfill-util.js";
|
|
20
|
+
const $ = { save: function(e2) {
|
|
21
|
+
return J(e2, false);
|
|
20
22
|
}, saveList: function(e2) {
|
|
21
|
-
return
|
|
23
|
+
return J(e2, true);
|
|
22
24
|
}, exportForm: function(e2) {
|
|
23
25
|
const t2 = e2.pageContext.code + "_";
|
|
24
|
-
|
|
26
|
+
w.$emit(t2 + "export-form-report", e2);
|
|
25
27
|
}, exportPDF: function(e2) {
|
|
26
28
|
const t2 = e2.pageContext.code + "_";
|
|
27
|
-
|
|
29
|
+
w.$emit(t2 + "export-pdf-report", e2);
|
|
28
30
|
}, submit: function(e2) {
|
|
29
|
-
return
|
|
31
|
+
return oe(e2, false, "submit", "/dsc/commons/submits");
|
|
30
32
|
}, submitList: function(e2) {
|
|
31
|
-
return
|
|
33
|
+
return oe(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
32
34
|
}, agree: function(e2) {
|
|
33
|
-
return
|
|
35
|
+
return oe(e2, false, "agree", "/dsc/commons/approves");
|
|
34
36
|
}, agreeList: function(e2) {
|
|
35
|
-
return
|
|
37
|
+
return oe(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
36
38
|
}, disagree: function(e2) {
|
|
37
|
-
return
|
|
39
|
+
return oe(e2, false, "disagree", "/dsc/commons/refuses");
|
|
38
40
|
}, disagreeList: function(e2) {
|
|
39
|
-
return
|
|
41
|
+
return oe(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
40
42
|
}, back: function(e2) {
|
|
41
43
|
const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
42
|
-
|
|
44
|
+
ee(t2, e2.configureObj, s2, n2);
|
|
43
45
|
}, delete: function(e2) {
|
|
44
46
|
return function(e3) {
|
|
45
|
-
return new Promise((
|
|
47
|
+
return new Promise((o2, a2) => {
|
|
46
48
|
const i2 = e3.ids;
|
|
47
|
-
if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void
|
|
49
|
+
if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void o2(true);
|
|
48
50
|
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
|
-
var _a;
|
|
50
|
-
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
51
|
-
let g2 =
|
|
52
|
-
g2 =
|
|
53
|
-
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission,
|
|
54
|
-
r2.beanName && (
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
51
|
+
var _a, _b, _c;
|
|
52
|
+
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = A(r2, m2);
|
|
53
|
+
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
54
|
+
g2 = s(g2, p2, d2, r2.isTest);
|
|
55
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, w2 = n(r2), T2 = S(u2, r2), y2 = { ids: i2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
56
|
+
r2.beanName && (y2.beanName = r2.beanName);
|
|
57
|
+
const k2 = u2.props.deleteLogicSetting;
|
|
58
|
+
k2 && ("object" == typeof k2 ? y2.deleteLogicSetting = JSON.stringify(k2) : "string" == typeof k2 && (y2.deleteLogicSetting = k2));
|
|
59
|
+
const h2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
60
|
+
h2 && (y2.logSettingText = h2.join(""));
|
|
59
61
|
const P2 = u2.props.base.isSafeDelete;
|
|
60
|
-
P2 && (
|
|
62
|
+
P2 && (y2.isSafeDelete = P2);
|
|
63
|
+
const R2 = (_c = (_b = u2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
64
|
+
R2 && (y2.currentOperation = R2), y2.isMobile = D(), c.delete(g2, { data: y2 }).then((e4) => {
|
|
61
65
|
const t2 = b(r2, m2);
|
|
62
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()),
|
|
66
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), X(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), o2(true);
|
|
63
67
|
}).catch((e4) => {
|
|
64
68
|
a2(e4);
|
|
65
69
|
});
|
|
@@ -70,49 +74,52 @@ const D = { save: function(e2) {
|
|
|
70
74
|
}(e2);
|
|
71
75
|
}, downloadTemplate: function(e2) {
|
|
72
76
|
!function(e3) {
|
|
73
|
-
var _a;
|
|
74
|
-
const
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
const s2 = e3.pageContext, n2 = e3.configureObj, o2 = n2.props.base, i2 = a(o2.templateFiles, s2, n2);
|
|
75
79
|
let r2, c2;
|
|
76
80
|
i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
|
|
77
|
-
const u2 =
|
|
81
|
+
const u2 = s2.systemCode, l2 = s2.backendUrl, p2 = c2;
|
|
78
82
|
let d2 = "?1=1";
|
|
79
|
-
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) :
|
|
80
|
-
const g2 = (_a =
|
|
83
|
+
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : s2.label && (d2 += "&showName=" + encodeURI(s2.label) + ".xlsx");
|
|
84
|
+
const g2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
81
85
|
g2 && (d2 += "&logSettingText=" + g2.join(""));
|
|
82
86
|
u2 && (d2 += "&systemCode=" + u2);
|
|
83
87
|
const C2 = e3.listCode;
|
|
84
88
|
C2 && (d2 += "&listCode=" + C2);
|
|
85
|
-
|
|
86
|
-
const b2 =
|
|
89
|
+
s2.beanName && (d2 += "&beanName=" + s2.beanName);
|
|
90
|
+
const b2 = S(n2, s2);
|
|
87
91
|
b2 && (d2 += "&functionCode=" + b2);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
|
|
92
|
+
s2.tableName && (d2 += "&tableName=" + s2.tableName);
|
|
93
|
+
s2.code && (d2 += "&pageCode=" + s2.code);
|
|
94
|
+
s2.version && (d2 += "&pageVersion=" + s2.version);
|
|
95
|
+
const w2 = m();
|
|
96
|
+
w2 && (d2 += "&JWT=" + w2);
|
|
97
|
+
const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
98
|
+
T2 && (d2 += "¤tOperation=" + encodeURI(T2));
|
|
99
|
+
d2 += "&isMobile=" + D();
|
|
100
|
+
const y2 = "_RUN_CURRENT_ROLE", k2 = f(y2);
|
|
101
|
+
k2 && (d2 += "&" + y2 + "=" + k2);
|
|
95
102
|
if (o2) {
|
|
96
103
|
d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
104
|
}
|
|
98
|
-
const h2 =
|
|
105
|
+
const h2 = t(l2, s2.isTest);
|
|
99
106
|
window.open(h2 + "/dsc/commons/download-files" + d2);
|
|
100
107
|
}(e2);
|
|
101
108
|
}, import: function(e2) {
|
|
102
109
|
const t2 = e2.pageContext.code + "_";
|
|
103
|
-
|
|
110
|
+
w.$emit(t2 + "import-file", e2);
|
|
104
111
|
}, export: function(e2) {
|
|
105
112
|
return function(e3) {
|
|
106
113
|
return new Promise((t2, s2) => {
|
|
107
|
-
var _a, _b, _c, _d,
|
|
114
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
108
115
|
const n2 = e3.pageContext, o2 = e3.configureObj, a2 = o2.props.base, i2 = e3.listCode, r2 = e3.selections, c2 = {};
|
|
109
116
|
r2 && r2.length > 0 && (c2.data = r2);
|
|
110
117
|
let u2 = n2.label;
|
|
111
118
|
u2 || (u2 = n2.code);
|
|
112
119
|
let l2 = false;
|
|
113
120
|
l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
|
|
114
|
-
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 =
|
|
115
|
-
f2.isShowWatermark = void 0 === ((
|
|
121
|
+
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = S(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 }, g2 = (_b = (_a = o2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
122
|
+
g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = o2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = o2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
|
|
116
123
|
});
|
|
117
124
|
}(e2);
|
|
118
125
|
}, search: function(e2) {
|
|
@@ -122,203 +129,199 @@ const D = { save: function(e2) {
|
|
|
122
129
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
123
130
|
b(t2, s2).showMobileSearch();
|
|
124
131
|
}, workflowSave: function(e2) {
|
|
125
|
-
return
|
|
126
|
-
return new Promise((
|
|
132
|
+
return w.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
133
|
+
return new Promise((n2, o2) => {
|
|
127
134
|
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
128
|
-
let d2 =
|
|
129
|
-
if (d2 =
|
|
130
|
-
const m2 =
|
|
135
|
+
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons";
|
|
136
|
+
if (d2 = s(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
137
|
+
const m2 = re(e3);
|
|
131
138
|
let f2;
|
|
132
|
-
f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((
|
|
133
|
-
let
|
|
134
|
-
|
|
139
|
+
f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), W(a2.code, i2), f2.then((t2) => {
|
|
140
|
+
let s2 = true;
|
|
141
|
+
t2 && (s2 = ce(t2, false, a2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), w.$emit("clearTableAllEndEditing"), n2(true);
|
|
135
142
|
}).catch((e4) => {
|
|
136
|
-
|
|
143
|
+
o2(e4);
|
|
144
|
+
}).finally(() => {
|
|
145
|
+
L(a2.code, i2);
|
|
137
146
|
});
|
|
138
147
|
});
|
|
139
148
|
}(e2);
|
|
140
149
|
}, workflowStart: function(e2) {
|
|
141
|
-
return
|
|
142
|
-
return new Promise((
|
|
150
|
+
return w.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
151
|
+
return new Promise((n2, o2) => {
|
|
143
152
|
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
144
|
-
let d2 =
|
|
145
|
-
if (d2 =
|
|
146
|
-
const m2 =
|
|
153
|
+
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
154
|
+
if (d2 = s(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
155
|
+
const m2 = re(e3);
|
|
147
156
|
let f2;
|
|
148
|
-
i2.workflow_id || i2.WORKFLOW_ID ? (d2 =
|
|
149
|
-
let
|
|
150
|
-
|
|
157
|
+
i2.workflow_id || i2.WORKFLOW_ID ? (d2 = t(p2, a2.isTest) + "/dsc/workflow-commons", d2 = s(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), W(a2.code, i2), f2.then((t2) => {
|
|
158
|
+
let s2 = true;
|
|
159
|
+
t2 && (s2 = ce(t2, false, a2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), w.$emit("clearTableAllEndEditing"), n2(true);
|
|
151
160
|
}).catch((e4) => {
|
|
152
|
-
|
|
161
|
+
o2(e4);
|
|
162
|
+
}).finally(() => {
|
|
163
|
+
L(a2.code, i2);
|
|
153
164
|
});
|
|
154
165
|
});
|
|
155
166
|
}(e2);
|
|
156
167
|
}, submitProcess: function(e2) {
|
|
157
|
-
return
|
|
158
|
-
return new Promise((
|
|
168
|
+
return w.$emit("clearTableAllStartEditing"), function(e3) {
|
|
169
|
+
return new Promise((n2, o2) => {
|
|
159
170
|
const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
160
|
-
let p2 =
|
|
161
|
-
if (p2 =
|
|
162
|
-
const d2 =
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
171
|
+
let p2 = t(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
172
|
+
if (p2 = s(p2, i2, r2, a2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
173
|
+
const d2 = re(e3);
|
|
174
|
+
W(a2.code, a2.entity.data);
|
|
175
|
+
const m2 = c.post(p2, d2);
|
|
176
|
+
m2 ? m2.then((t2) => {
|
|
177
|
+
let s2 = true;
|
|
178
|
+
t2 && (s2 = ce(t2, false, a2, e3, null)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), w.$emit("clearTableAllEndEditing"), n2(true);
|
|
166
179
|
}).catch((e4) => {
|
|
167
|
-
|
|
168
|
-
})
|
|
180
|
+
o2(e4);
|
|
181
|
+
}).finally(() => {
|
|
182
|
+
L(a2.code, a2.entity.data);
|
|
183
|
+
}) : L(a2.code, a2.entity.data);
|
|
169
184
|
});
|
|
170
185
|
}(e2);
|
|
171
186
|
}, submitTask: function(e2) {
|
|
172
|
-
return
|
|
187
|
+
return ue(e2, "SUBMIT");
|
|
173
188
|
}, approve: function(e2) {
|
|
174
|
-
return
|
|
189
|
+
return ue(e2, "APPROVE");
|
|
175
190
|
}, refuse: function(e2) {
|
|
176
|
-
return
|
|
191
|
+
return ue(e2, "REFUSE");
|
|
177
192
|
}, readed: function(e2) {
|
|
178
|
-
return
|
|
193
|
+
return ue(e2, "READED");
|
|
179
194
|
}, agreement: function(e2) {
|
|
180
|
-
return
|
|
195
|
+
return ue(e2, "AGREEMENT");
|
|
181
196
|
}, oppose: function(e2) {
|
|
182
|
-
return
|
|
197
|
+
return ue(e2, "OPPOSE");
|
|
183
198
|
}, kiken: function(e2) {
|
|
184
|
-
return
|
|
199
|
+
return ue(e2, "KIKEN");
|
|
185
200
|
}, assign: function(e2) {
|
|
186
201
|
return function(e3) {
|
|
187
202
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
188
|
-
|
|
203
|
+
w.$emit(s2 + "assign-task", e3);
|
|
189
204
|
}(e2);
|
|
190
205
|
}, copyTask: function(e2) {
|
|
191
206
|
return function(e3) {
|
|
192
207
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
193
|
-
|
|
208
|
+
w.$emit(s2 + "copy-task", e3);
|
|
194
209
|
}(e2);
|
|
195
210
|
}, addSigner: function(e2) {
|
|
196
211
|
return function(e3) {
|
|
197
212
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
198
|
-
|
|
213
|
+
w.$emit(s2 + "add-signer", e3);
|
|
199
214
|
}(e2);
|
|
200
215
|
}, drawTask: function(e2) {
|
|
201
216
|
return function(e3) {
|
|
202
|
-
const
|
|
203
|
-
return
|
|
217
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = re(e3);
|
|
218
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
204
219
|
}(e2);
|
|
205
220
|
}, abandonReceive: function(e2) {
|
|
206
221
|
return function(e3) {
|
|
207
|
-
const
|
|
208
|
-
return
|
|
222
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = re(e3);
|
|
223
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
209
224
|
}(e2);
|
|
210
225
|
}, returnToPreviousTask: function(e2) {
|
|
211
226
|
return function(e3) {
|
|
212
|
-
const
|
|
213
|
-
return
|
|
227
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = re(e3);
|
|
228
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
214
229
|
}(e2);
|
|
215
230
|
}, endInstance: function(e2) {
|
|
216
231
|
return function(e3) {
|
|
217
|
-
const
|
|
218
|
-
return
|
|
232
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/end-instance", a2 = re(e3);
|
|
233
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
219
234
|
}(e2);
|
|
220
235
|
}, returnTaskTo: function(e2) {
|
|
221
236
|
return function(e3) {
|
|
222
237
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
223
|
-
|
|
238
|
+
w.$emit(s2 + "choose-return-node", e3);
|
|
224
239
|
}(e2);
|
|
225
240
|
}, removeSigner: function(e2) {
|
|
226
241
|
return function(e3) {
|
|
227
242
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
228
|
-
|
|
243
|
+
w.$emit(s2 + "remove-signer", e3);
|
|
229
244
|
}(e2);
|
|
230
245
|
}, retrieveTask: function(e2) {
|
|
231
246
|
return function(e3) {
|
|
232
|
-
const
|
|
233
|
-
return
|
|
247
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/retrieves", a2 = re(e3);
|
|
248
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
234
249
|
}(e2);
|
|
235
250
|
}, extractWorkflow: function(e2) {
|
|
251
|
+
return Re(e2);
|
|
252
|
+
}, extractWorkflowEvent: function(e2) {
|
|
236
253
|
return function(e3) {
|
|
237
|
-
const t2 = e3.pageContext
|
|
238
|
-
|
|
239
|
-
const i2 = te(e3);
|
|
240
|
-
if (t2.completeTaskParam) {
|
|
241
|
-
const s3 = [];
|
|
242
|
-
e3._value.loginName && s3.push(e3._value.loginName), i2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: s3, customTaskTitle: re(e3) };
|
|
243
|
-
}
|
|
244
|
-
return new Promise((t3, s3) => {
|
|
245
|
-
const n2 = e3.pageContext, r2 = n2.systemCode, p2 = n2.backendUrl;
|
|
246
|
-
if (a2 = o(a2, r2, p2, n2.isTest), !a2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
247
|
-
const d2 = c.post(a2, i2);
|
|
248
|
-
d2 && d2.then((s4) => {
|
|
249
|
-
let o2 = true;
|
|
250
|
-
s4 && (o2 = se(s4, false, n2, e3, null)), true === o2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulInitiateExtract") }), t3(true);
|
|
251
|
-
}).catch((e4) => {
|
|
252
|
-
s3(e4);
|
|
253
|
-
});
|
|
254
|
-
});
|
|
254
|
+
const t2 = e3.pageContext;
|
|
255
|
+
w.$emit(t2.code + "_event-call-component", { componentName: "extract-workflow-dialog", componentProps: { pageContext: e3.pageContext, configure: e3.configureObj } });
|
|
255
256
|
}(e2);
|
|
256
257
|
}, cancelExtractWorkflow: function(e2) {
|
|
257
258
|
return function(e3) {
|
|
258
|
-
const
|
|
259
|
-
return
|
|
259
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = re(e3);
|
|
260
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
260
261
|
}(e2);
|
|
261
262
|
}, approveExtractWorkflow: function(e2) {
|
|
262
263
|
return function(e3) {
|
|
263
|
-
const
|
|
264
|
-
return
|
|
264
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = re(e3);
|
|
265
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
265
266
|
}(e2);
|
|
266
267
|
}, refuseExtractWorkflow: function(e2) {
|
|
267
268
|
return function(e3) {
|
|
268
|
-
const
|
|
269
|
-
return
|
|
269
|
+
const s2 = e3.pageContext, n2 = s2.backendUrl, o2 = t(n2, s2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = re(e3);
|
|
270
|
+
return we(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
270
271
|
}(e2);
|
|
271
272
|
}, viewDetail: function(e2) {
|
|
272
273
|
}, lineEditCreate: function(e2) {
|
|
273
274
|
return function(e3) {
|
|
274
275
|
const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
|
|
275
|
-
n2 && (e3.getDefaultValueFunc =
|
|
276
|
+
n2 && (e3.getDefaultValueFunc = R, n2.createRow(e3.listCode, {}, e3));
|
|
276
277
|
}(e2);
|
|
277
278
|
}, printLabel: function(e2) {
|
|
278
279
|
return function(e3) {
|
|
279
280
|
let t2 = null;
|
|
280
281
|
try {
|
|
281
282
|
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);
|
|
283
|
+
} catch (e4) {
|
|
284
284
|
}
|
|
285
|
-
|
|
285
|
+
O.printLabel(e3, t2);
|
|
286
286
|
}(e2);
|
|
287
287
|
}, queryCharts: function(e2) {
|
|
288
|
-
|
|
288
|
+
q(e2);
|
|
289
289
|
}, resetCharts: function(t2) {
|
|
290
290
|
var _a, _b;
|
|
291
291
|
const s2 = t2.pageContext;
|
|
292
|
-
Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true,
|
|
292
|
+
Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, q(t2);
|
|
293
293
|
}, exportCharts: function(e2) {
|
|
294
294
|
!function(e3) {
|
|
295
|
-
var _a, _b, _c, _d,
|
|
296
|
-
const
|
|
297
|
-
if (!
|
|
295
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
296
|
+
const s2 = e3.pageContext, n2 = s2.allChartUuids;
|
|
297
|
+
if (!n2 || 0 == n2.length) return;
|
|
298
298
|
const o2 = e3.configureObj;
|
|
299
299
|
let a2 = null;
|
|
300
300
|
o2 && o2.runtime && (a2 = o2.runtime.props);
|
|
301
301
|
const i2 = a2 ? a2.state : void 0;
|
|
302
302
|
a2 && (a2.state = "disabled");
|
|
303
303
|
const r2 = [];
|
|
304
|
-
for (let e4 = 0; e4 <
|
|
305
|
-
const
|
|
304
|
+
for (let e4 = 0; e4 < n2.length; e4++) {
|
|
305
|
+
const t2 = n2[e4], o3 = b(s2, t2);
|
|
306
306
|
if (o3) {
|
|
307
307
|
const e5 = o3.getConfigure();
|
|
308
308
|
e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
if (!r2 || 0 == r2.length) return;
|
|
312
|
-
let c2, u2 =
|
|
313
|
-
u2 || (u2 =
|
|
312
|
+
let c2, u2 = s2.label;
|
|
313
|
+
u2 || (u2 = s2.code);
|
|
314
314
|
c2 = u2;
|
|
315
|
-
const l2 = { reportDataList: r2, beanName:
|
|
316
|
-
l2.additionalParamMap = p2
|
|
317
|
-
const d2 =
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
315
|
+
const l2 = { reportDataList: r2, beanName: s2.beanName, systemCode: s2.systemCode, pageCode: s2.code }, p2 = fe(s2);
|
|
316
|
+
l2.additionalParamMap = p2;
|
|
317
|
+
const d2 = (_b = (_a = o2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
318
|
+
d2 && (l2.currentOperation = d2);
|
|
319
|
+
l2.isMobile = D(), l2.isShowWatermark = void 0 === ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = o2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", l2.watermark = ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = o2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
|
|
320
|
+
const m2 = s2.backendUrl, f2 = t(m2, s2.isTest) + "/dsc/commons/exportChart";
|
|
321
|
+
G();
|
|
322
|
+
T.post(f2, l2, { responseType: "blob" }).then((e4) => {
|
|
323
|
+
const t2 = document.createElement("a");
|
|
324
|
+
t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
|
|
322
325
|
}).finally(() => {
|
|
323
326
|
a2 && (a2.state = i2);
|
|
324
327
|
});
|
|
@@ -326,135 +329,142 @@ const D = { save: function(e2) {
|
|
|
326
329
|
}, saveQueryCharts: function(e2) {
|
|
327
330
|
!function(e3) {
|
|
328
331
|
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
329
|
-
|
|
332
|
+
w.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
330
333
|
}(e2);
|
|
331
334
|
}, addTransactor: function(e2) {
|
|
332
335
|
return function(e3) {
|
|
333
336
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
334
|
-
|
|
337
|
+
w.$emit(s2 + "add-transactor", e3);
|
|
335
338
|
}(e2);
|
|
336
339
|
}, removeTransactor: function(e2) {
|
|
337
340
|
return function(e3) {
|
|
338
341
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
339
|
-
|
|
342
|
+
w.$emit(s2 + "remove-transactor", e3);
|
|
340
343
|
}(e2);
|
|
341
344
|
} };
|
|
342
|
-
function
|
|
345
|
+
function q(e2) {
|
|
343
346
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
344
347
|
if (!s2 || 0 == s2.length) return;
|
|
345
348
|
const n2 = e2.configureObj;
|
|
346
349
|
let o2 = null;
|
|
347
350
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
348
351
|
const a2 = o2 ? o2.state : void 0;
|
|
349
|
-
o2 && (o2.state = "disabled"),
|
|
352
|
+
o2 && (o2.state = "disabled"), I(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
350
353
|
o2 && (o2.state = a2);
|
|
351
354
|
}).catch(() => {
|
|
352
355
|
o2 && (o2.state = a2);
|
|
353
356
|
});
|
|
354
357
|
}
|
|
355
|
-
function
|
|
356
|
-
var _a, _b, _c, _d,
|
|
358
|
+
function H(e2, s2, o2, a2) {
|
|
359
|
+
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
357
360
|
e2.clickUuid = s2.uuid, e2.canClick = false;
|
|
358
|
-
const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 =
|
|
361
|
+
const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = n(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: S(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
359
362
|
u2 && (b2.logSettingText = u2.join(""));
|
|
360
|
-
const
|
|
363
|
+
const w2 = (_c = (_b = s2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
364
|
+
w2 && (b2.currentOperation = w2), b2.isMobile = D();
|
|
365
|
+
const y2 = fe(e2);
|
|
361
366
|
let k2;
|
|
362
|
-
b2.additionalParamMap =
|
|
367
|
+
b2.additionalParamMap = y2, b2.isShowWatermark = void 0 === ((_e2 = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", b2.watermark = ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = s2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", k2 = a2 ? function(e3, s3, n2, o3) {
|
|
363
368
|
return new Promise((a3, i3) => {
|
|
364
|
-
const r3 =
|
|
365
|
-
|
|
366
|
-
const c3 =
|
|
367
|
-
window.$message.info("正在导出中..."), c3.then((
|
|
368
|
-
const s4 = new Blob([
|
|
369
|
-
|
|
369
|
+
const r3 = t(s3, o3) + "/dsc/commons/export-pdf";
|
|
370
|
+
G();
|
|
371
|
+
const c3 = T.post(r3, n2, { headers: { "content-type": "application/json" }, responseType: "blob" });
|
|
372
|
+
window.$message.info("正在导出中..."), c3.then((t2) => {
|
|
373
|
+
const s4 = new Blob([t2.data]), n3 = document.createElement("a");
|
|
374
|
+
n3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n3.style.display = "none", n3.target = "_blank", n3.href = URL.createObjectURL(s4), document.body.appendChild(n3), n3.click(), URL.revokeObjectURL(n3.href), document.body.removeChild(n3), a3(true);
|
|
370
375
|
}).catch((e4) => {
|
|
371
376
|
i3(e4);
|
|
372
377
|
});
|
|
373
378
|
});
|
|
374
|
-
}(r2, f2, b2, e2.isTest) : function(e3,
|
|
379
|
+
}(r2, f2, b2, e2.isTest) : function(e3, s3, n2, o3) {
|
|
375
380
|
return new Promise((a3, i3) => {
|
|
376
|
-
const r3 =
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
const s4 = new Blob([
|
|
380
|
-
let
|
|
381
|
-
e3 && (
|
|
381
|
+
const r3 = t(s3, o3) + "/dsc/commons/export-reports";
|
|
382
|
+
G();
|
|
383
|
+
T.post(r3, n2, { responseType: "blob" }).then((t2) => {
|
|
384
|
+
const s4 = new Blob([t2.data]);
|
|
385
|
+
let n3 = "报告.xlsx";
|
|
386
|
+
e3 && (n3 = e3);
|
|
382
387
|
const o4 = document.createElement("a");
|
|
383
|
-
o4.download =
|
|
388
|
+
o4.download = n3, o4.style.display = "none", o4.target = "_blank", o4.href = URL.createObjectURL(s4), document.body.appendChild(o4), o4.click(), URL.revokeObjectURL(o4.href), document.body.removeChild(o4), a3(true);
|
|
384
389
|
}).catch((e4) => {
|
|
385
390
|
i3(e4);
|
|
386
391
|
});
|
|
387
392
|
});
|
|
388
393
|
}(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
|
|
389
|
-
|
|
394
|
+
h(e2, s2);
|
|
390
395
|
}).catch((t2) => {
|
|
391
|
-
window.$message.error("导出失败..."),
|
|
396
|
+
window.$message.error("导出失败..."), h(e2, s2);
|
|
392
397
|
});
|
|
393
398
|
}
|
|
394
|
-
function
|
|
395
|
-
|
|
396
|
-
const e2 =
|
|
399
|
+
function G() {
|
|
400
|
+
T.defaults.headers.common.Authorization = m();
|
|
401
|
+
const e2 = C();
|
|
397
402
|
if (e2) {
|
|
398
403
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
399
|
-
|
|
404
|
+
T.defaults.headers.common[t2] = e2;
|
|
400
405
|
}
|
|
401
406
|
}
|
|
402
|
-
function
|
|
407
|
+
function J(e2, t2) {
|
|
403
408
|
return new Promise((s2, n2) => {
|
|
404
409
|
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
405
410
|
let u2 = false;
|
|
406
|
-
c2 && "noOperation" === c2 && (u2 = true);
|
|
407
|
-
const l2 =
|
|
411
|
+
c2 && "noOperation" === c2 && (u2 = true), W(o2.code, o2.entity.data);
|
|
412
|
+
const l2 = K(o2, a2, "/dsc/commons", u2, i2, r2);
|
|
408
413
|
l2 ? l2.then((e3) => {
|
|
409
|
-
|
|
414
|
+
X(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
410
415
|
}).catch((e3) => {
|
|
411
416
|
n2(e3);
|
|
412
|
-
})
|
|
417
|
+
}).finally(() => {
|
|
418
|
+
L(o2.code, o2.entity.data);
|
|
419
|
+
}) : (L(o2.code, o2.entity.data), n2("保存时request不存在"));
|
|
413
420
|
});
|
|
414
421
|
}
|
|
415
|
-
function
|
|
416
|
-
var _a;
|
|
417
|
-
const u2 =
|
|
422
|
+
function Y(e2, t2, s2, a2, i2, r2, c2) {
|
|
423
|
+
var _a, _b, _c;
|
|
424
|
+
const u2 = n(e2), l2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = S(t2, e2);
|
|
418
425
|
let m2 = c2;
|
|
419
426
|
m2 || (m2 = e2.entity.data);
|
|
420
427
|
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 };
|
|
421
|
-
r2 && (f2.ids = r2), e2.judgeHeavyList && (
|
|
422
|
-
const g2 =
|
|
423
|
-
g2 && (
|
|
424
|
-
const C2 =
|
|
428
|
+
r2 && (f2.ids = r2), e2.judgeHeavyList && (o(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
429
|
+
const g2 = t2.props.base.conversionCodes;
|
|
430
|
+
g2 && (o(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
431
|
+
const C2 = Ae(t2);
|
|
425
432
|
C2 && (f2.autoSetValueData = C2);
|
|
426
|
-
const b2 = (_a =
|
|
433
|
+
const b2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
|
|
427
434
|
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
428
|
-
const
|
|
429
|
-
|
|
430
|
-
const
|
|
431
|
-
|
|
435
|
+
const w2 = e2.beanName;
|
|
436
|
+
w2 && (f2.beanName = w2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
437
|
+
const T2 = fe(e2);
|
|
438
|
+
f2.additionalParamMap = T2, void 0 !== s2 && (f2.unControlVersion = s2);
|
|
439
|
+
const y2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
440
|
+
return y2 && (f2.currentOperation = y2), f2.isMobile = D(), f2;
|
|
432
441
|
}
|
|
433
|
-
function
|
|
434
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 =
|
|
435
|
-
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3,
|
|
436
|
-
const u3 =
|
|
442
|
+
function z(e2, n2, o2, a2, i2, r2, u2, l2) {
|
|
443
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Y(e2, n2, a2, i2, r2, null, u2);
|
|
444
|
+
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, n3, o3, a3, i3, r3) {
|
|
445
|
+
const u3 = t(n3, r3);
|
|
437
446
|
let l3, p3 = u3 + a3;
|
|
438
|
-
p3 =
|
|
447
|
+
p3 = s(p3, e3, n3, r3), l3 = i3 && (i3.id || i3.ID) ? c.put(p3, o3) : c.post(p3, o3);
|
|
439
448
|
return l3;
|
|
440
|
-
}(p2, d2, m2,
|
|
449
|
+
}(p2, d2, m2, o2, e2.entity.data, e2.isTest);
|
|
441
450
|
}
|
|
442
|
-
function
|
|
443
|
-
return
|
|
451
|
+
function K(e2, t2, s2, n2, o2, a2) {
|
|
452
|
+
return z(e2, t2, s2, n2, o2, a2, null, null);
|
|
444
453
|
}
|
|
445
|
-
function
|
|
446
|
-
const i2 =
|
|
454
|
+
function X(t2, s2, n2, o2, a2) {
|
|
455
|
+
const i2 = Q(t2, s2, a2);
|
|
447
456
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
448
457
|
let a3 = s3.props.base.successOperation;
|
|
449
|
-
const i3 = s3.props.base.isNeedValueMapping, r2 =
|
|
450
|
-
a3 ||
|
|
451
|
-
if ("refresh" === a3)
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
458
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = k(t3, s3);
|
|
459
|
+
a3 || se.includes(s3.name) || (a3 = "refresh");
|
|
460
|
+
if ("refresh" === a3) {
|
|
461
|
+
if (r2) {
|
|
462
|
+
b(t3, r2).refresh();
|
|
463
|
+
}
|
|
464
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
455
465
|
const o4 = e(t3.entity.page);
|
|
456
466
|
let a4 = n3;
|
|
457
|
-
a4 || (a4 = {}), Object.assign(o4, a4),
|
|
467
|
+
a4 || (a4 = {}), Object.assign(o4, a4), ee(t3, s3, o4, i3);
|
|
458
468
|
}
|
|
459
469
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
460
470
|
}(t2, s2, n2, o2), t2.canClick = true;
|
|
@@ -463,39 +473,39 @@ function H(t2, s2, n2, o2, a2) {
|
|
|
463
473
|
const n4 = s3;
|
|
464
474
|
let o3;
|
|
465
475
|
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
466
|
-
|
|
476
|
+
Z(e2, t3, { ...o3, ...e2.entity.page });
|
|
467
477
|
} else {
|
|
468
478
|
const s4 = t3.props.base.successOperation;
|
|
469
479
|
if (s4 && null !== s4) {
|
|
470
|
-
|
|
480
|
+
Z(e2, t3, { ...e2.entity.page });
|
|
471
481
|
} else e2.canClick = true;
|
|
472
482
|
}
|
|
473
483
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
474
484
|
}(t2, s2, n2, o2);
|
|
475
485
|
else {
|
|
476
486
|
const e2 = s2.props.base.successOperation;
|
|
477
|
-
e2 && null !== e2 ?
|
|
487
|
+
e2 && null !== e2 ? Z(t2, s2, null) : t2.canClick = true;
|
|
478
488
|
}
|
|
479
489
|
}
|
|
480
|
-
function
|
|
490
|
+
function Q(e2, t2, s2) {
|
|
481
491
|
let n2;
|
|
482
492
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
483
493
|
}
|
|
484
|
-
function
|
|
494
|
+
function Z(e2, t2, s2) {
|
|
485
495
|
const n2 = t2.props.base.successOperation;
|
|
486
496
|
if (!n2 || null === n2) return;
|
|
487
497
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
488
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
498
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? Ie(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (ee(e2, t2, s2, o2), e2.canClick = true);
|
|
489
499
|
}
|
|
490
|
-
function
|
|
500
|
+
function ee(e2, t2, s2, n2) {
|
|
491
501
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
492
502
|
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
493
503
|
else {
|
|
494
504
|
const a2 = e2.tableName, i2 = void 0 !== n2 && true === n2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
|
|
495
|
-
|
|
505
|
+
w.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
|
|
496
506
|
}
|
|
497
507
|
}
|
|
498
|
-
function
|
|
508
|
+
function te(e2, t2, s2, n2, o2) {
|
|
499
509
|
var _a;
|
|
500
510
|
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
501
511
|
const a2 = e2.tableName;
|
|
@@ -509,45 +519,45 @@ function z(e2, t2, s2, n2, o2) {
|
|
|
509
519
|
x(s3.entity, r2, a3);
|
|
510
520
|
});
|
|
511
521
|
}
|
|
512
|
-
}(s2, o2, e2),
|
|
522
|
+
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
|
|
513
523
|
}
|
|
514
|
-
const
|
|
515
|
-
function
|
|
524
|
+
const se = ["dropdown"];
|
|
525
|
+
function ne(e2, t2, s2, n2) {
|
|
516
526
|
var _a;
|
|
517
527
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
518
528
|
let o2 = n2;
|
|
519
529
|
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
520
|
-
const a2 =
|
|
530
|
+
const a2 = Q(e2, t2);
|
|
521
531
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
522
532
|
if (a2 && "list" === a2) {
|
|
523
|
-
const s3 =
|
|
533
|
+
const s3 = k(e2, t2);
|
|
524
534
|
if (s3) {
|
|
525
535
|
b(e2, s3).refresh();
|
|
526
|
-
}
|
|
536
|
+
}
|
|
527
537
|
} else if (a2 && "form" === a2) {
|
|
528
538
|
const t3 = e2.entity.data;
|
|
529
|
-
|
|
539
|
+
Ie(e2, t3.ID ? t3.ID : t3.id);
|
|
530
540
|
}
|
|
531
541
|
}
|
|
532
542
|
}
|
|
533
|
-
function
|
|
543
|
+
function oe(e2, n2, o2, a2) {
|
|
534
544
|
return new Promise((r2, l2) => {
|
|
535
545
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
|
|
536
|
-
let
|
|
537
|
-
b2 && "noOperation" === b2 && (
|
|
538
|
-
let
|
|
539
|
-
if (
|
|
540
|
-
const
|
|
541
|
-
|
|
542
|
-
}
|
|
543
|
-
const
|
|
546
|
+
let w2 = false;
|
|
547
|
+
b2 && "noOperation" === b2 && (w2 = true);
|
|
548
|
+
let T2 = d2.tableName;
|
|
549
|
+
if (n2) {
|
|
550
|
+
const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
551
|
+
T2 = A(d2, t2);
|
|
552
|
+
} else W(d2.code, d2.entity.data);
|
|
553
|
+
const y2 = function(e3, n3, o3, a3, r3, l3, d3, m3, f3) {
|
|
544
554
|
return new Promise((g3, C3) => {
|
|
545
|
-
const b3 =
|
|
546
|
-
p.confirm(u().t(
|
|
547
|
-
const i2 = e3.systemCode, u2 = e3.backendUrl, p2 =
|
|
555
|
+
const b3 = n3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
556
|
+
p.confirm(u().t(w3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
557
|
+
const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = Y(e3, n3, a3, r3, l3, m3, null);
|
|
548
558
|
p2.tableName = f3;
|
|
549
|
-
let d4 =
|
|
550
|
-
d4 =
|
|
559
|
+
let d4 = t(u2, e3.isTest) + o3;
|
|
560
|
+
d4 = s(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
551
561
|
g3(e4);
|
|
552
562
|
}).catch((e4) => {
|
|
553
563
|
C3(e4);
|
|
@@ -556,52 +566,56 @@ function Q(e2, t2, s2, a2) {
|
|
|
556
566
|
C3("点击了取消按钮");
|
|
557
567
|
});
|
|
558
568
|
});
|
|
559
|
-
}(d2, m2, a2,
|
|
560
|
-
|
|
561
|
-
|
|
569
|
+
}(d2, m2, a2, w2, f2, g2, o2, C2, T2);
|
|
570
|
+
y2 ? y2.then((e3) => {
|
|
571
|
+
X(d2, m2, e3, "superPageRuntimeMessage.successfulSave", n2), r2(e3);
|
|
562
572
|
}).catch((e3) => {
|
|
563
573
|
l2(e3);
|
|
564
|
-
})
|
|
574
|
+
}).finally(() => {
|
|
575
|
+
n2 || L(d2.code, d2.entity.data);
|
|
576
|
+
}) : (n2 || L(d2.code, d2.entity.data), l2("request不存在"));
|
|
565
577
|
});
|
|
566
578
|
}
|
|
567
|
-
function
|
|
568
|
-
var _a;
|
|
569
|
-
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 =
|
|
570
|
-
f2.append("multipartFile",
|
|
571
|
-
const g2 = (_a =
|
|
572
|
-
g2 && f2.append("
|
|
573
|
-
const C2 =
|
|
574
|
-
C2 && f2.append("
|
|
575
|
-
const b2 =
|
|
576
|
-
b2 && f2.append("
|
|
579
|
+
function ae(e2, o2) {
|
|
580
|
+
var _a, _b, _c;
|
|
581
|
+
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 = A(a2, d2), f2 = new FormData();
|
|
582
|
+
f2.append("multipartFile", o2), m2 && f2.append("tableName", m2);
|
|
583
|
+
const g2 = (_b = (_a = i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
584
|
+
g2 && f2.append("currentOperation", g2), f2.append("isMobile", D()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
585
|
+
const C2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
|
|
586
|
+
C2 && f2.append("importDuplicateRule", C2);
|
|
587
|
+
const b2 = a2.judgeHeavyList;
|
|
588
|
+
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
589
|
+
const w2 = Ae(i2);
|
|
590
|
+
w2 && f2.append("autoSetValueData", w2);
|
|
577
591
|
const T2 = a2.formNoRuleCode;
|
|
578
592
|
T2 && f2.append("formNoRuleCode", T2);
|
|
579
|
-
const
|
|
580
|
-
|
|
593
|
+
const y2 = e2.listCode;
|
|
594
|
+
y2 && f2.append("listCode", y2);
|
|
581
595
|
let k2 = false;
|
|
582
596
|
k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
|
|
583
|
-
const
|
|
584
|
-
null !=
|
|
585
|
-
const
|
|
586
|
-
|
|
587
|
-
const
|
|
588
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
589
|
-
const
|
|
590
|
-
f2.append("isPermission",
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
const
|
|
594
|
-
let
|
|
595
|
-
|
|
597
|
+
const P2 = n(a2);
|
|
598
|
+
null != P2 && f2.append("isWorkflowEntity", P2 + "");
|
|
599
|
+
const R2 = S(i2, a2);
|
|
600
|
+
R2 && f2.append("functionCode", R2);
|
|
601
|
+
const v2 = fe(a2);
|
|
602
|
+
f2.append("additionalParamMapStr", JSON.stringify(v2));
|
|
603
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
604
|
+
f2.append("isPermission", M2 + "");
|
|
605
|
+
const I2 = a2.systemCode;
|
|
606
|
+
I2 && f2.append("systemCode", I2);
|
|
607
|
+
const N2 = a2.backendUrl;
|
|
608
|
+
let x2 = t(N2, a2.isTest) + "/dsc/commons/import-data";
|
|
609
|
+
x2 = s(x2, I2, N2, a2.isTest), c.post(x2, f2).then((e3) => {
|
|
596
610
|
if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
597
611
|
else {
|
|
598
612
|
let t2 = false;
|
|
599
|
-
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true),
|
|
613
|
+
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), X(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
|
|
600
614
|
}
|
|
601
615
|
}).catch((e3) => {
|
|
602
616
|
});
|
|
603
617
|
}
|
|
604
|
-
function
|
|
618
|
+
function ie(e2, t2) {
|
|
605
619
|
const s2 = e2.props.base;
|
|
606
620
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
607
621
|
if ("one" === s2.conditionsForExecution) {
|
|
@@ -610,31 +624,33 @@ function ee(e2, t2) {
|
|
|
610
624
|
}
|
|
611
625
|
return true;
|
|
612
626
|
}
|
|
613
|
-
function
|
|
614
|
-
var _a;
|
|
615
|
-
const t2 = e2.pageContext,
|
|
616
|
-
let r2 =
|
|
617
|
-
r2 || (r2 = i2 + ".xxx"),
|
|
618
|
-
const c2 = { entity:
|
|
619
|
-
t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (
|
|
620
|
-
const u2 =
|
|
621
|
-
u2 && (
|
|
622
|
-
const l2 =
|
|
627
|
+
function re(e2) {
|
|
628
|
+
var _a, _b, _c;
|
|
629
|
+
const t2 = e2.pageContext, s2 = e2.configureObj, n2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
630
|
+
let r2 = S(s2, t2);
|
|
631
|
+
r2 || (r2 = i2 + ".xxx"), n2.id || n2.ID || (n2.PAGE_CODE = t2.code, n2.PAGE_VERSION = t2.version);
|
|
632
|
+
const c2 = { entity: n2, 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 };
|
|
633
|
+
t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (o(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
|
|
634
|
+
const u2 = s2.props.base.conversionCodes;
|
|
635
|
+
u2 && (o(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
636
|
+
const l2 = Ae(s2);
|
|
623
637
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
624
|
-
const p2 = (_a =
|
|
638
|
+
const p2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
|
|
625
639
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
626
|
-
const d2 =
|
|
627
|
-
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
|
|
628
|
-
const m2 =
|
|
629
|
-
|
|
640
|
+
const d2 = fe(t2);
|
|
641
|
+
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]));
|
|
642
|
+
const m2 = s2.props.base.successOperation;
|
|
643
|
+
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
644
|
+
const f2 = (_c = (_b = s2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
645
|
+
return f2 && (c2.currentOperation = f2), c2.isMobile = D(), c2;
|
|
630
646
|
}
|
|
631
|
-
function
|
|
647
|
+
function ce(e2, t2, s2, n2, o2) {
|
|
632
648
|
const a2 = s2.code, i2 = s2.version;
|
|
633
649
|
let r2;
|
|
634
650
|
if (e2) {
|
|
635
651
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
636
|
-
const s3 =
|
|
637
|
-
e3 && s3 &&
|
|
652
|
+
const s3 = fe(t3);
|
|
653
|
+
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
638
654
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
639
655
|
const o3 = e2.completeTaskResult;
|
|
640
656
|
if (o3) {
|
|
@@ -650,58 +666,61 @@ function se(e2, t2, s2, n2, o2) {
|
|
|
650
666
|
}
|
|
651
667
|
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(a2, i2, "_currentActivityName", e2.taskName);
|
|
652
668
|
}
|
|
653
|
-
return n2 && (n2.operationResult = o2), t2 ||
|
|
669
|
+
return n2 && (n2.operationResult = o2), t2 || X(s2, n2.configureObj, e2, null, false), true;
|
|
654
670
|
}
|
|
655
|
-
async function
|
|
656
|
-
const
|
|
671
|
+
async function ue(e2, n2) {
|
|
672
|
+
const o2 = await le(e2);
|
|
657
673
|
return new Promise((a2, i2) => {
|
|
658
674
|
var _a;
|
|
659
|
-
if (
|
|
660
|
-
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true ===
|
|
661
|
-
let f2 =
|
|
662
|
-
if (f2 =
|
|
663
|
-
const g2 =
|
|
664
|
-
g2.completeTaskParam = { operationResult:
|
|
665
|
-
c.post(f2, g2)
|
|
666
|
-
|
|
667
|
-
|
|
675
|
+
if (o2) {
|
|
676
|
+
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === o2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : o2;
|
|
677
|
+
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
678
|
+
if (f2 = s(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
679
|
+
const g2 = re(e2);
|
|
680
|
+
g2.completeTaskParam = { operationResult: n2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
681
|
+
const C2 = c.post(f2, g2);
|
|
682
|
+
W(r2.code, r2.entity.data), C2.then((t2) => {
|
|
683
|
+
let s2 = true;
|
|
684
|
+
t2 && (s2 = ce(t2, false, r2, e2, n2)), true === s2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
|
|
668
685
|
}).catch((e3) => {
|
|
669
686
|
i2(e3);
|
|
687
|
+
}).finally(() => {
|
|
688
|
+
L(r2.code, r2.entity.data);
|
|
670
689
|
});
|
|
671
690
|
} else a2(true);
|
|
672
691
|
});
|
|
673
692
|
}
|
|
674
|
-
function
|
|
693
|
+
function le(e2) {
|
|
675
694
|
return new Promise((t2, s2) => {
|
|
676
|
-
var _a, _b, _c, _d;
|
|
695
|
+
var _a, _b, _c, _d, _e2;
|
|
677
696
|
const n2 = e2.configureObj;
|
|
678
697
|
if (n2) {
|
|
698
|
+
if ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.opinion) return void t2(e2.pageContext.workflowOpinion.opinion);
|
|
679
699
|
let s3 = false;
|
|
680
|
-
if (((
|
|
681
|
-
const t3 = e2.pageContext, o2 = (
|
|
682
|
-
s3 =
|
|
700
|
+
if (((_c = (_b = n2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (s3 = true), true === s3) {
|
|
701
|
+
const t3 = e2.pageContext, o2 = (_e2 = (_d = n2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
702
|
+
s3 = M(t3, o2);
|
|
683
703
|
}
|
|
684
|
-
true === s3 ?
|
|
685
|
-
t2(e3);
|
|
686
|
-
}).catch(() => {
|
|
687
|
-
t2(false);
|
|
688
|
-
}) : t2(true);
|
|
704
|
+
true === s3 ? (l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
689
705
|
} else t2(true);
|
|
690
706
|
});
|
|
691
707
|
}
|
|
692
|
-
function
|
|
693
|
-
if (
|
|
694
|
-
const
|
|
695
|
-
c2.assigneeId = r2,
|
|
696
|
-
|
|
708
|
+
function pe(e2, s2) {
|
|
709
|
+
if (s2) {
|
|
710
|
+
const n2 = e2.pageContext, o2 = e2.configureObj, a2 = n2.backendUrl, i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/assigns", r2 = s2.id ? s2.id : s2.ID ? s2.ID : null, c2 = re(e2);
|
|
711
|
+
c2.assigneeId = r2, we(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
712
|
+
h(n2, o2);
|
|
697
713
|
});
|
|
698
714
|
}
|
|
699
715
|
}
|
|
700
|
-
function
|
|
701
|
-
|
|
702
|
-
|
|
716
|
+
function de(e2) {
|
|
717
|
+
var _a, _b;
|
|
718
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = e2.configureObj, i2 = fe(t2), r2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, c2 = { beanName: t2.beanName, id: r2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
719
|
+
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, c2.completeTaskParam.customTaskTitle = me(e2);
|
|
720
|
+
const u2 = (_b = (_a = a2 == null ? void 0 : a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
721
|
+
return u2 && (c2.currentOperation = u2), c2.isMobile = D(), c2;
|
|
703
722
|
}
|
|
704
|
-
function
|
|
723
|
+
function me(e2) {
|
|
705
724
|
var _a, _b, _c;
|
|
706
725
|
let t2 = null;
|
|
707
726
|
if (((_b = (_a = e2.configureObj.props.task) == null ? void 0 : _a.title) == null ? void 0 : _b.length) > 0) for (let s2 = 0; s2 < e2.configureObj.props.task.title.length; s2++) {
|
|
@@ -711,7 +730,7 @@ function re(e2) {
|
|
|
711
730
|
t2 = n2.config;
|
|
712
731
|
break;
|
|
713
732
|
}
|
|
714
|
-
if (
|
|
733
|
+
if (M(e2.pageContext, n2.conditions)) {
|
|
715
734
|
t2 = n2.config;
|
|
716
735
|
break;
|
|
717
736
|
}
|
|
@@ -719,7 +738,7 @@ function re(e2) {
|
|
|
719
738
|
}
|
|
720
739
|
return t2;
|
|
721
740
|
}
|
|
722
|
-
function
|
|
741
|
+
function fe(t2) {
|
|
723
742
|
if (t2.entity) {
|
|
724
743
|
let s2 = e(t2.entity.page);
|
|
725
744
|
s2 || (s2 = {});
|
|
@@ -727,68 +746,68 @@ function ce(t2) {
|
|
|
727
746
|
return n2 && Object.assign(s2, n2), s2;
|
|
728
747
|
}
|
|
729
748
|
}
|
|
730
|
-
function
|
|
731
|
-
if (
|
|
732
|
-
const
|
|
733
|
-
let p2 =
|
|
734
|
-
if (p2 =
|
|
735
|
-
const d2 =
|
|
736
|
-
d2.completeTaskParam.transactors =
|
|
749
|
+
function ge(e2, n2) {
|
|
750
|
+
if (n2) {
|
|
751
|
+
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
|
|
752
|
+
let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
753
|
+
if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
754
|
+
const d2 = de(e2);
|
|
755
|
+
d2.completeTaskParam.transactors = n2.loginNames.join(",").split(",");
|
|
737
756
|
const m2 = c.post(p2, d2);
|
|
738
757
|
m2 && m2.then((e3) => {
|
|
739
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
758
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && X(o2, a2, e3, null, false), h(o2, a2);
|
|
740
759
|
});
|
|
741
760
|
}
|
|
742
761
|
}
|
|
743
|
-
function
|
|
744
|
-
if (
|
|
745
|
-
const
|
|
746
|
-
let p2 =
|
|
747
|
-
if (p2 =
|
|
748
|
-
const d2 =
|
|
749
|
-
d2.completeTaskParam.transactors =
|
|
762
|
+
function Ce(e2, n2) {
|
|
763
|
+
if (n2) {
|
|
764
|
+
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
|
|
765
|
+
let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
766
|
+
if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
767
|
+
const d2 = de(e2);
|
|
768
|
+
d2.completeTaskParam.transactors = n2.loginNames.join(",").split(",");
|
|
750
769
|
const m2 = c.post(p2, d2);
|
|
751
770
|
m2 && m2.then((e3) => {
|
|
752
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
771
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && X(o2, a2, e3, null, false), h(o2, a2);
|
|
753
772
|
});
|
|
754
773
|
}
|
|
755
774
|
}
|
|
756
|
-
async function
|
|
757
|
-
if (
|
|
758
|
-
const
|
|
759
|
-
return new Promise((
|
|
775
|
+
async function be(e2, n2) {
|
|
776
|
+
if (n2) {
|
|
777
|
+
const o2 = await function(e3) {
|
|
778
|
+
return new Promise((t2, s2) => {
|
|
760
779
|
var _a, _b, _c, _d;
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
763
|
-
let
|
|
764
|
-
if (void 0 ===
|
|
765
|
-
|
|
766
|
-
const
|
|
767
|
-
|
|
780
|
+
const n3 = e3.configureObj;
|
|
781
|
+
if (n3) {
|
|
782
|
+
let s3 = (_b = (_a = n3.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
783
|
+
if (void 0 === s3 || true === s3) {
|
|
784
|
+
s3 = true;
|
|
785
|
+
const t3 = e3.pageContext, o3 = (_d = (_c = n3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
786
|
+
s3 = M(t3, o3);
|
|
768
787
|
}
|
|
769
|
-
true ===
|
|
770
|
-
|
|
788
|
+
true === s3 ? 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 }) => {
|
|
789
|
+
t2(e4);
|
|
771
790
|
}).catch(() => {
|
|
772
|
-
|
|
773
|
-
}) :
|
|
774
|
-
} else
|
|
791
|
+
t2(false);
|
|
792
|
+
}) : t2(true);
|
|
793
|
+
} else t2(true);
|
|
775
794
|
});
|
|
776
795
|
}(e2);
|
|
777
|
-
if (
|
|
796
|
+
if (o2) {
|
|
778
797
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
779
|
-
let d2 =
|
|
780
|
-
if (d2 =
|
|
781
|
-
const m2 =
|
|
782
|
-
m2.completeTaskParam.transactors =
|
|
798
|
+
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
799
|
+
if (d2 = s(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
800
|
+
const m2 = de(e2);
|
|
801
|
+
m2.completeTaskParam.transactors = n2.loginNames.join(",").split(","), true !== o2 && (m2.completeTaskParam.remark = o2);
|
|
783
802
|
const f2 = c.post(d2, m2);
|
|
784
803
|
f2 && f2.then((e3) => {
|
|
785
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }),
|
|
804
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), h(a2, i2);
|
|
786
805
|
});
|
|
787
806
|
}
|
|
788
807
|
}
|
|
789
808
|
}
|
|
790
|
-
async function
|
|
791
|
-
const a2 = await
|
|
809
|
+
async function we(e2, t2, n2, o2) {
|
|
810
|
+
const a2 = await le(e2);
|
|
792
811
|
return new Promise((i2, r2) => {
|
|
793
812
|
var _a;
|
|
794
813
|
if (a2) {
|
|
@@ -797,239 +816,277 @@ async function de(e2, t2, s2, n2) {
|
|
|
797
816
|
const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
|
|
798
817
|
t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
|
|
799
818
|
}
|
|
800
|
-
if (!(
|
|
801
|
-
const f2 = c.post(
|
|
819
|
+
if (!(n2 = s(n2, d2, m2, p2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
820
|
+
const f2 = c.post(n2, t2);
|
|
802
821
|
f2 && f2.then((t3) => {
|
|
803
|
-
let
|
|
804
|
-
t3 && (
|
|
822
|
+
let s2 = true;
|
|
823
|
+
t3 && (s2 = ce(t3, false, p2, e2, null)), true === s2 && l({ showClose: true, type: "success", message: u().t(o2) }), i2(true);
|
|
805
824
|
}).catch((e3) => {
|
|
806
825
|
r2(e3);
|
|
807
826
|
});
|
|
808
827
|
} else i2(true);
|
|
809
828
|
});
|
|
810
829
|
}
|
|
811
|
-
function
|
|
812
|
-
const
|
|
813
|
-
let r2 =
|
|
814
|
-
if (r2 =
|
|
815
|
-
const p2 =
|
|
830
|
+
function Te(e2) {
|
|
831
|
+
const n2 = e2.pageContext, o2 = n2.systemCode, a2 = n2.backendUrl, i2 = n2.completeTaskParam;
|
|
832
|
+
let r2 = t(a2, n2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
833
|
+
if (r2 = s(r2, o2, a2, n2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
834
|
+
const p2 = n2.code, d2 = fe(n2), m2 = { beanName: n2.beanName, additionalParamMap: d2, tableName: n2.tableName, functionCode: p2 + ".xxx", pageCode: n2.code };
|
|
816
835
|
return c.post(r2, m2);
|
|
817
836
|
}
|
|
818
|
-
function
|
|
819
|
-
const
|
|
820
|
-
|
|
821
|
-
|
|
837
|
+
function ye(e2, s2) {
|
|
838
|
+
const n2 = e2.pageContext, o2 = e2.configureObj, a2 = n2.backendUrl, i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = re(e2);
|
|
839
|
+
s2.nodeName && (r2.returnToNodeName = s2.nodeName), s2.nodeId && (r2.returnToNodeId = s2.nodeId), we(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
840
|
+
h(n2, o2);
|
|
822
841
|
});
|
|
823
842
|
}
|
|
824
|
-
function
|
|
825
|
-
const
|
|
826
|
-
let i2 =
|
|
827
|
-
const r2 =
|
|
828
|
-
if (i2 =
|
|
843
|
+
function ke(e2) {
|
|
844
|
+
const n2 = e2.pageContext, o2 = n2.systemCode, a2 = n2.backendUrl;
|
|
845
|
+
let i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
846
|
+
const r2 = re(e2);
|
|
847
|
+
if (i2 = s(i2, o2, a2, n2.isTest), i2) return c.post(i2, r2);
|
|
829
848
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
830
849
|
}
|
|
831
|
-
function
|
|
832
|
-
if (
|
|
833
|
-
const
|
|
834
|
-
let p2 =
|
|
835
|
-
if (p2 =
|
|
836
|
-
const d2 =
|
|
850
|
+
function he(e2, n2) {
|
|
851
|
+
if (n2) {
|
|
852
|
+
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
|
|
853
|
+
let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
854
|
+
if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
855
|
+
const d2 = n2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = re(e2);
|
|
837
856
|
m2.ids = d2;
|
|
838
857
|
const f2 = c.post(p2, m2);
|
|
839
858
|
f2 && f2.then((e3) => {
|
|
840
|
-
|
|
859
|
+
X(o2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(o2, a2);
|
|
841
860
|
});
|
|
842
861
|
}
|
|
843
862
|
}
|
|
844
|
-
function
|
|
845
|
-
const
|
|
846
|
-
let i2 =
|
|
847
|
-
const r2 =
|
|
848
|
-
if (i2 =
|
|
863
|
+
function Pe(e2) {
|
|
864
|
+
const n2 = e2.pageContext, o2 = n2.systemCode, a2 = n2.backendUrl;
|
|
865
|
+
let i2 = t(a2, n2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
866
|
+
const r2 = re(e2);
|
|
867
|
+
if (i2 = s(i2, o2, a2, n2.isTest), i2) return c.post(i2, r2);
|
|
849
868
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
850
869
|
}
|
|
851
|
-
function
|
|
852
|
-
if (
|
|
853
|
-
const
|
|
854
|
-
let p2 =
|
|
855
|
-
if (p2 =
|
|
856
|
-
const d2 =
|
|
870
|
+
function Se(e2, n2) {
|
|
871
|
+
if (n2) {
|
|
872
|
+
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = o2.systemCode, r2 = o2.backendUrl;
|
|
873
|
+
let p2 = t(r2, o2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
874
|
+
if (p2 = s(p2, i2, r2, o2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
875
|
+
const d2 = n2.map((e3) => e3.taskId), m2 = re(e2);
|
|
857
876
|
m2.ids = d2;
|
|
858
877
|
const f2 = c.post(p2, m2);
|
|
859
878
|
f2 && f2.then((e3) => {
|
|
860
|
-
|
|
879
|
+
X(o2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(o2, a2);
|
|
861
880
|
});
|
|
862
881
|
}
|
|
863
882
|
}
|
|
864
|
-
function
|
|
865
|
-
|
|
866
|
-
|
|
883
|
+
function Re(e2) {
|
|
884
|
+
const n2 = e2.pageContext, o2 = n2.backendUrl;
|
|
885
|
+
let a2 = t(o2, n2.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
886
|
+
const i2 = re(e2);
|
|
887
|
+
if (n2.completeTaskParam) {
|
|
888
|
+
const t2 = [];
|
|
889
|
+
e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: n2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: me(e2) };
|
|
890
|
+
}
|
|
891
|
+
return new Promise((t2, n3) => {
|
|
892
|
+
const o3 = e2.pageContext, r2 = o3.systemCode, p2 = o3.backendUrl;
|
|
893
|
+
if (a2 = s(a2, r2, p2, o3.isTest), !a2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
894
|
+
const d2 = c.post(a2, i2);
|
|
895
|
+
d2 && d2.then((s2) => {
|
|
896
|
+
let n4 = true;
|
|
897
|
+
s2 && (n4 = ce(s2, false, o3, e2, null)), true === n4 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
|
|
898
|
+
}).catch((e3) => {
|
|
899
|
+
n3(e3);
|
|
900
|
+
});
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
function ve(e2, t2, s2, n2, o2, a2) {
|
|
904
|
+
var _a, _b, _c, _d;
|
|
905
|
+
let i2 = false;
|
|
906
|
+
if (n2 && n2.archival) return i2;
|
|
907
|
+
t2 && s2 && ("workflowSave" === t2 ? i2 = function(e3) {
|
|
867
908
|
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;
|
|
868
909
|
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;
|
|
869
910
|
return false;
|
|
870
|
-
}(
|
|
911
|
+
}(s2) : "workflowStart" === t2 ? i2 = function(e3, t3) {
|
|
871
912
|
if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
|
|
872
913
|
return false;
|
|
873
|
-
}(
|
|
914
|
+
}(s2, a2) : "submitProcess" === t2 ? i2 = function(e3) {
|
|
874
915
|
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;
|
|
875
916
|
return false;
|
|
876
|
-
}(
|
|
917
|
+
}(s2) : "submitTask" === t2 ? i2 = function(e3) {
|
|
877
918
|
if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
878
919
|
return false;
|
|
879
|
-
}(
|
|
920
|
+
}(s2) : "drawTask" === t2 ? i2 = function(e3) {
|
|
880
921
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
881
922
|
return false;
|
|
882
|
-
}(
|
|
923
|
+
}(s2) : "abandonReceive" === t2 ? i2 = function(e3) {
|
|
883
924
|
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
|
|
884
925
|
return false;
|
|
885
|
-
}(
|
|
926
|
+
}(s2) : "approve" === t2 || "refuse" === t2 ? i2 = function(e3) {
|
|
886
927
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
|
|
887
928
|
return false;
|
|
888
|
-
}(
|
|
929
|
+
}(s2) : "readed" === t2 ? i2 = function(e3) {
|
|
889
930
|
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
|
|
890
931
|
return false;
|
|
891
|
-
}(
|
|
932
|
+
}(s2) : "assign" === t2 ? i2 = function(e3) {
|
|
892
933
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
893
934
|
return false;
|
|
894
|
-
}(
|
|
935
|
+
}(s2) : "copyTask" === t2 ? i2 = function(e3, t3) {
|
|
895
936
|
let s3 = false;
|
|
896
937
|
e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (s3 = true);
|
|
897
938
|
t3 && (t3.props.base.state = s3 ? "" : "hidden");
|
|
898
939
|
return true;
|
|
899
|
-
}(
|
|
940
|
+
}(s2, o2) : "addSigner" === t2 ? i2 = function(e3) {
|
|
900
941
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
901
942
|
return false;
|
|
902
|
-
}(
|
|
943
|
+
}(s2) : "removeSigner" === t2 ? i2 = function(e3) {
|
|
903
944
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
904
945
|
return false;
|
|
905
|
-
}(
|
|
906
|
-
if (e3.processState && "SUBMIT" === e3.processState && true === e3.showButtonGetBack && function(e4) {
|
|
946
|
+
}(s2) : "retrieveTask" === t2 ? i2 = function(e3) {
|
|
947
|
+
if (e3.processState && "END" !== e3.processState && "SUBMIT" === e3.processState && true === e3.showButtonGetBack && function(e4) {
|
|
907
948
|
if ("COMPLETED" !== e4.active) return false;
|
|
908
949
|
if ("TYPE_READ" === e4.processingMode) return false;
|
|
909
950
|
if (!e4.showButtonGetBack) return false;
|
|
910
951
|
return true;
|
|
911
952
|
}(e3)) return true;
|
|
912
953
|
return false;
|
|
913
|
-
}(
|
|
954
|
+
}(s2) : "agreement" === t2 || "oppose" === t2 ? i2 = function(e3) {
|
|
914
955
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
|
|
915
956
|
return false;
|
|
916
|
-
}(
|
|
957
|
+
}(s2) : "kiken" === t2 ? i2 = function(e3) {
|
|
917
958
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
918
959
|
return false;
|
|
919
|
-
}(
|
|
920
|
-
var
|
|
960
|
+
}(s2) : "extractWorkflow" === t2 ? i2 = function(e3, t3, s3) {
|
|
961
|
+
var _a2;
|
|
921
962
|
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
922
963
|
if (e3 == null ? void 0 : e3.processState) {
|
|
923
|
-
if (((
|
|
964
|
+
if (((_a2 = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a2.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
|
|
924
965
|
if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && "MANUAL_END" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
925
966
|
}
|
|
926
967
|
return false;
|
|
927
|
-
}(
|
|
968
|
+
}(s2, n2, a2) : "cancelExtractWorkflow" === t2 ? i2 = function(e3, t3, s3) {
|
|
928
969
|
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
929
970
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
930
971
|
return false;
|
|
931
|
-
}(
|
|
972
|
+
}(s2, 0, a2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? i2 = Me(s2) : "addTransactor" === t2 || "removeTransactor" === t2 ? i2 = function(e3) {
|
|
932
973
|
if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
933
974
|
return false;
|
|
934
|
-
}(
|
|
975
|
+
}(s2) : function(e3, t3) {
|
|
935
976
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
936
977
|
const t4 = e4;
|
|
937
978
|
let s3 = true;
|
|
938
979
|
t4 && (s3 = t4.taskComplete);
|
|
939
980
|
return s3;
|
|
940
981
|
}(t3);
|
|
941
|
-
}(
|
|
982
|
+
}(s2, n2) && (i2 = "returnToPreviousTask" !== t2 || function(e3) {
|
|
942
983
|
if (e3.rebuttable) return true;
|
|
943
984
|
return false;
|
|
944
|
-
}(
|
|
985
|
+
}(s2)));
|
|
986
|
+
if (-1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask"].indexOf(t2) && i2 && e2) {
|
|
987
|
+
e2.workflowOpinion ? e2.workflowOpinion.showOpinionBox = true : e2.workflowOpinion = { showOpinionBox: true };
|
|
988
|
+
let t3 = false;
|
|
989
|
+
if ((_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) {
|
|
990
|
+
if (t3 = true, true === t3) {
|
|
991
|
+
const s3 = (_d = (_c = o2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
992
|
+
t3 = M(e2, s3);
|
|
993
|
+
}
|
|
994
|
+
e2.workflowOpinion.isRequired = t3;
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
return i2;
|
|
945
998
|
}
|
|
946
|
-
function
|
|
999
|
+
function Me(e2, t2, s2) {
|
|
947
1000
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
948
1001
|
}
|
|
949
|
-
function
|
|
950
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
1002
|
+
function Ie(e2, t2) {
|
|
1003
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Ne(e2, t2).then((t3) => {
|
|
951
1004
|
e2.isRefresh = true;
|
|
952
1005
|
});
|
|
953
1006
|
}
|
|
954
|
-
function
|
|
1007
|
+
function Ne(e2, s2, o2) {
|
|
955
1008
|
const a2 = e2.pageType;
|
|
956
1009
|
if (a2 && "form" === a2) {
|
|
957
1010
|
e2.canClick = false;
|
|
958
|
-
return
|
|
1011
|
+
return n(e2) ? function(e3, s3, n2) {
|
|
959
1012
|
return new Promise((o3, a3) => {
|
|
960
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
961
|
-
let d2 =
|
|
962
|
-
void 0 ===
|
|
1013
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = fe(e3);
|
|
1014
|
+
let d2 = s3 || null, m2 = s3 ? [s3] : null;
|
|
1015
|
+
void 0 === n2 || n2 ? (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);
|
|
963
1016
|
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 };
|
|
964
|
-
if (
|
|
965
|
-
const
|
|
1017
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1018
|
+
const t2 = {};
|
|
966
1019
|
e3.tableUuids.forEach((e4) => {
|
|
967
1020
|
const s4 = r(u2, l2, e4);
|
|
968
|
-
|
|
969
|
-
}), b2.listCodesMap =
|
|
1021
|
+
t2[s4] = s4;
|
|
1022
|
+
}), b2.listCodesMap = t2;
|
|
970
1023
|
}
|
|
971
|
-
m2 && (b2.ids =
|
|
972
|
-
const
|
|
973
|
-
|
|
974
|
-
|
|
1024
|
+
m2 && (b2.ids = Oe(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);
|
|
1025
|
+
const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = j();
|
|
1026
|
+
T2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
|
|
1027
|
+
const k2 = B(e3.code, b2.id);
|
|
1028
|
+
c.post(w2, b2).then(async (t2) => {
|
|
1029
|
+
k2 && await xe(e3, b2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, ce(t2, true, e3), e3.workflowRules = E(e3);
|
|
975
1030
|
const s4 = e3.pageType;
|
|
976
1031
|
s4 && "form" === s4 && function(e4) {
|
|
977
1032
|
(function(e5) {
|
|
978
|
-
const
|
|
1033
|
+
const t3 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
|
|
979
1034
|
if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
|
|
980
|
-
const
|
|
981
|
-
if (
|
|
982
|
-
const o4 = s5[e6], a4 = JSON.parse(JSON.stringify(o4)), i3 =
|
|
983
|
-
if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ?
|
|
1035
|
+
const n3 = s5[e6].name;
|
|
1036
|
+
if (n3) if (0 === n3.indexOf("$") && n3.indexOf(".") > 0) {
|
|
1037
|
+
const o4 = s5[e6], a4 = JSON.parse(JSON.stringify(o4)), i3 = n3.substring(1, n3.indexOf(".")), r2 = n3.substring(n3.indexOf(".") + 1);
|
|
1038
|
+
if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: true }]);
|
|
984
1039
|
else {
|
|
985
|
-
let e7 =
|
|
986
|
-
e7 || (e7 = []), e7.push(a4),
|
|
1040
|
+
let e7 = t3.get(i3);
|
|
1041
|
+
e7 || (e7 = []), e7.push(a4), t3.set(i3, e7);
|
|
987
1042
|
}
|
|
988
|
-
} else
|
|
1043
|
+
} else t3.set(n3, s5[e6]);
|
|
989
1044
|
}
|
|
990
|
-
e5.fieldPermissionMap =
|
|
1045
|
+
e5.fieldPermissionMap = t3;
|
|
991
1046
|
})(e4), function(e5) {
|
|
992
|
-
const
|
|
993
|
-
if (null !=
|
|
994
|
-
Object.keys(
|
|
995
|
-
const o4 =
|
|
1047
|
+
const t3 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n3 = e5.actionPermissions;
|
|
1048
|
+
if (null != n3) {
|
|
1049
|
+
Object.keys(n3).forEach((e6) => {
|
|
1050
|
+
const o4 = n3[e6], a4 = t3.get(e6);
|
|
996
1051
|
if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
|
|
997
1052
|
else {
|
|
998
1053
|
o4 && 0 !== Object.keys(o4.deleteCondition).length || (o4.deleteCondition = null), o4 && 0 !== Object.keys(o4.updateCondition).length || (o4.updateCondition = null);
|
|
999
|
-
const s6 = o4.canUpdate,
|
|
1000
|
-
void 0 !== s6 && false === s6 && null !=
|
|
1054
|
+
const s6 = o4.canUpdate, n4 = o4.updateRowIndexes;
|
|
1055
|
+
void 0 !== s6 && false === s6 && null != n4 && n4.length > 0 && t3.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n4 }]);
|
|
1001
1056
|
}
|
|
1002
1057
|
s5.set(e6, o4);
|
|
1003
1058
|
});
|
|
1004
1059
|
}
|
|
1005
1060
|
e5.actionPermissionMap = s5;
|
|
1006
1061
|
}(e4);
|
|
1007
|
-
}(e3), e3.canClick = true,
|
|
1008
|
-
}).catch((
|
|
1009
|
-
e3.canClick = true, a3(
|
|
1062
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), o3(t2);
|
|
1063
|
+
}).catch((t2) => {
|
|
1064
|
+
e3.canClick = true, a3(t2);
|
|
1010
1065
|
});
|
|
1011
1066
|
});
|
|
1012
|
-
}(e2, s2, o2) : function(e3,
|
|
1067
|
+
}(e2, s2, o2) : function(e3, s3, n2) {
|
|
1013
1068
|
return new Promise((o3, a3) => {
|
|
1014
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
1015
|
-
let d2 =
|
|
1016
|
-
void 0 ===
|
|
1017
|
-
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 =
|
|
1018
|
-
if (!
|
|
1019
|
-
const
|
|
1069
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = fe(e3);
|
|
1070
|
+
let d2 = s3 || null, m2 = s3 ? [s3] : null;
|
|
1071
|
+
void 0 === n2 || n2 ? (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);
|
|
1072
|
+
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1073
|
+
if (!w2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (w2.id = f(p2._t_ + "_id")), m2 && (w2.ids = Oe(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), g2 && (w2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1074
|
+
const t2 = {};
|
|
1020
1075
|
e3.tableUuids.forEach((e4) => {
|
|
1021
1076
|
const s4 = r(u2, l2, e4);
|
|
1022
|
-
|
|
1023
|
-
}),
|
|
1077
|
+
t2[s4] = s4;
|
|
1078
|
+
}), w2.listCodesMap = t2;
|
|
1024
1079
|
}
|
|
1025
|
-
e3.refercePropMap && (
|
|
1026
|
-
const
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
e3.canClick = true,
|
|
1080
|
+
e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
|
|
1081
|
+
const T2 = b2 + "/dsc/commons/gets", k2 = j();
|
|
1082
|
+
k2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
|
|
1083
|
+
const h2 = B(e3.code, w2.id);
|
|
1084
|
+
c.post(T2, w2).then(async (t2) => {
|
|
1085
|
+
t2 && (h2 && await xe(e3, w2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
|
|
1086
|
+
const s4 = e3.customRules, n3 = e3.rules, a4 = U(e3, s4, n3);
|
|
1087
|
+
e3.rules = a4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), o3(t2);
|
|
1088
|
+
}).catch((t2) => {
|
|
1089
|
+
e3.canClick = true, a3(t2);
|
|
1033
1090
|
});
|
|
1034
1091
|
});
|
|
1035
1092
|
}(e2, s2, o2);
|
|
@@ -1038,55 +1095,63 @@ function ye(e2, s2, o2) {
|
|
|
1038
1095
|
e3(true);
|
|
1039
1096
|
});
|
|
1040
1097
|
}
|
|
1041
|
-
function
|
|
1098
|
+
async function xe(e2, t2, s2) {
|
|
1099
|
+
try {
|
|
1100
|
+
await p.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), s2.entity = F(e2.code, t2, s2.entity);
|
|
1101
|
+
} catch (e3) {
|
|
1102
|
+
}
|
|
1103
|
+
V(e2.code, t2);
|
|
1104
|
+
}
|
|
1105
|
+
function Oe(e2) {
|
|
1042
1106
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
1043
1107
|
}
|
|
1044
|
-
function
|
|
1108
|
+
function Ae(e2) {
|
|
1045
1109
|
const t2 = e2.props.setValueList;
|
|
1046
1110
|
if (t2) {
|
|
1047
|
-
if (
|
|
1111
|
+
if (o(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
1048
1112
|
if ("string" == typeof t2 && "[]" !== t2) return t2;
|
|
1049
1113
|
}
|
|
1050
1114
|
return null;
|
|
1051
1115
|
}
|
|
1052
|
-
function
|
|
1116
|
+
function Ee(e2, t2) {
|
|
1053
1117
|
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";
|
|
1054
1118
|
return c.post(a2, o2);
|
|
1055
1119
|
}
|
|
1056
|
-
function
|
|
1120
|
+
function Ue(e2) {
|
|
1057
1121
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
1058
1122
|
return c.get(s2);
|
|
1059
1123
|
}
|
|
1060
|
-
function
|
|
1124
|
+
function _e(e2) {
|
|
1061
1125
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
1062
1126
|
return c.delete(t2);
|
|
1063
1127
|
}
|
|
1064
1128
|
export {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1129
|
+
X as dealAfterOperate,
|
|
1130
|
+
ce as dealCompleteTaskParam,
|
|
1131
|
+
_e as deleteChartCondition,
|
|
1132
|
+
ge as doAddSigner,
|
|
1133
|
+
Ce as doAddTransactor,
|
|
1134
|
+
pe as doAssign,
|
|
1135
|
+
be as doCreateCopyTask,
|
|
1136
|
+
ae as doImportFinally,
|
|
1137
|
+
he as doRemoveSigners,
|
|
1138
|
+
Se as doRemoveTransactors,
|
|
1139
|
+
ye as doReturnTaskTo,
|
|
1140
|
+
H as exportFormReport,
|
|
1141
|
+
Re as extractWorkflowFunc,
|
|
1142
|
+
fe as getAdditionalParamMap,
|
|
1143
|
+
Ne as getFormData,
|
|
1144
|
+
ke as getRemoveSigner,
|
|
1145
|
+
Pe as getRemoveTransactor,
|
|
1146
|
+
K as getSaveFormRequest,
|
|
1147
|
+
z as getSaveFormRequestWithRow,
|
|
1148
|
+
Te as getTaskInformitions,
|
|
1149
|
+
ve as isVisibleWorkflowButton,
|
|
1150
|
+
ie as judgeDataNumber,
|
|
1151
|
+
Ue as listChartConditions,
|
|
1152
|
+
ne as refreshFormOrListPage,
|
|
1153
|
+
Ie as refreshPage,
|
|
1154
|
+
Ee as saveChartConditionBase,
|
|
1155
|
+
$ as standardEvents,
|
|
1156
|
+
te as updateValuesWhenCloseDialog
|
|
1092
1157
|
};
|