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