super-page-runtime 2.3.4 → 2.3.5
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/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
- package/dist/es/components/runtime/utils/events/event-util.js +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +0 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +463 -475
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +44 -47
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +30 -30
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +19 -21
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +35 -37
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +57 -58
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +17 -17
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +30 -27
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -15
- package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +138 -140
- package/dist/es/style.css +76 -76
- package/dist/es.zip +0 -0
- package/package.json +2 -2
|
@@ -1,234 +1,228 @@
|
|
|
1
|
-
import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as
|
|
1
|
+
import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, getRealRestApiPath 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
|
-
import { getI18n as
|
|
4
|
-
import { ElMessage as
|
|
5
|
-
import { getToken as d, getSessionCache as m, getRunCurrentRole as
|
|
3
|
+
import { getI18n as u } from "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { ElMessage as l, ElMessageBox as p } from "element-plus";
|
|
5
|
+
import { getToken as d, getSessionCache as m, getRunCurrentRole as f, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import C from "../eventBus.js";
|
|
8
8
|
import T from "axios";
|
|
9
|
-
import { handleEvent as y, getTableUuid as
|
|
9
|
+
import { handleEvent as y, getTableUuid as h, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as w } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as
|
|
12
|
-
import { updateChartDatasources as
|
|
11
|
+
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as M } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as N, caculateShowCondition as v, getVariableValue as S, setVariableValue as I } from "../page-helper-util.js";
|
|
13
13
|
import x from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as E } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as _ } from "../page-store.js";
|
|
18
18
|
const j = { save: function(e2) {
|
|
19
|
-
return
|
|
19
|
+
return W(e2, false);
|
|
20
20
|
}, saveList: function(e2) {
|
|
21
|
-
return
|
|
21
|
+
return W(e2, true);
|
|
22
22
|
}, exportForm: function(e2) {
|
|
23
|
-
console.log("表单标准事件导出报告exportForm--params=", e2);
|
|
24
23
|
const t2 = e2.pageContext.code + "_";
|
|
25
24
|
C.$emit(t2 + "export-form-report", e2);
|
|
26
25
|
}, exportPDF: function(e2) {
|
|
27
|
-
console.log("表单标准事件导出报告exportPDF--params=", e2);
|
|
28
26
|
const t2 = e2.pageContext.code + "_";
|
|
29
27
|
C.$emit(t2 + "export-pdf-report", e2);
|
|
30
28
|
}, submit: function(e2) {
|
|
31
|
-
return
|
|
29
|
+
return Q(e2, false, "submit", "/dsc/commons/submits");
|
|
32
30
|
}, submitList: function(e2) {
|
|
33
|
-
return
|
|
31
|
+
return Q(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
34
32
|
}, agree: function(e2) {
|
|
35
|
-
return
|
|
33
|
+
return Q(e2, false, "agree", "/dsc/commons/approves");
|
|
36
34
|
}, agreeList: function(e2) {
|
|
37
|
-
return
|
|
35
|
+
return Q(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
38
36
|
}, disagree: function(e2) {
|
|
39
|
-
return
|
|
37
|
+
return Q(e2, false, "disagree", "/dsc/commons/refuses");
|
|
40
38
|
}, disagreeList: function(e2) {
|
|
41
|
-
return
|
|
39
|
+
return Q(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
42
40
|
}, back: function(e2) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
J(t2, e2.configureObj, s2, o2);
|
|
41
|
+
const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
42
|
+
J(t2, e2.configureObj, s2, n2);
|
|
46
43
|
}, delete: function(e2) {
|
|
47
|
-
return
|
|
48
|
-
return new Promise((s2,
|
|
49
|
-
const
|
|
50
|
-
if (!
|
|
51
|
-
p.confirm(
|
|
44
|
+
return function(e3) {
|
|
45
|
+
return new Promise((s2, i2) => {
|
|
46
|
+
const a2 = e3.ids;
|
|
47
|
+
if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
48
|
+
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
52
49
|
var _a;
|
|
53
|
-
const r2 = e3.pageContext,
|
|
54
|
-
let
|
|
55
|
-
|
|
56
|
-
const C2 = void 0 ===
|
|
57
|
-
r2.beanName && (
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
const w2 = (_a =
|
|
61
|
-
w2 && (
|
|
62
|
-
const R2 =
|
|
63
|
-
R2 && (
|
|
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 = A(r2, m2);
|
|
51
|
+
let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
|
+
g2 = o(g2, p2, d2, r2.isTest);
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), y2 = k(u2, r2), h2 = { ids: a2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
|
+
r2.beanName && (h2.beanName = r2.beanName);
|
|
55
|
+
const P2 = u2.props.deleteLogicSetting;
|
|
56
|
+
P2 && ("object" == typeof P2 ? h2.deleteLogicSetting = JSON.stringify(P2) : "string" == typeof P2 && (h2.deleteLogicSetting = P2));
|
|
57
|
+
const w2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
+
w2 && (h2.logSettingText = w2.join(""));
|
|
59
|
+
const R2 = u2.props.base.isSafeDelete;
|
|
60
|
+
R2 && (h2.isSafeDelete = R2), c.delete(g2, { data: h2 }).then((e4) => {
|
|
64
61
|
const t2 = b(r2, m2);
|
|
65
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()),
|
|
62
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), q(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
66
63
|
}).catch((e4) => {
|
|
67
|
-
|
|
64
|
+
i2(e4);
|
|
68
65
|
});
|
|
69
66
|
}).catch(() => {
|
|
70
|
-
|
|
67
|
+
i2();
|
|
71
68
|
});
|
|
72
69
|
});
|
|
73
70
|
}(e2);
|
|
74
71
|
}, downloadTemplate: function(e2) {
|
|
75
|
-
|
|
72
|
+
!function(e3) {
|
|
76
73
|
var _a;
|
|
77
|
-
const t2 = e3.pageContext, s2 = e3.configureObj,
|
|
74
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, a2 = i(o2.templateFiles);
|
|
78
75
|
let r2, c2;
|
|
79
|
-
|
|
80
|
-
const
|
|
81
|
-
let
|
|
82
|
-
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ?
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
|
|
76
|
+
a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
|
|
77
|
+
const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
|
|
78
|
+
let f2 = "?1=1";
|
|
79
|
+
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? f2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? f2 += "&showName=" + encodeURI(p2) : t2.label && (f2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
|
|
80
|
+
const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
|
|
81
|
+
g2 && (f2 += "&logSettingText=" + g2.join(""));
|
|
82
|
+
u2 && (f2 += "&systemCode=" + u2);
|
|
86
83
|
const b2 = e3.listCode;
|
|
87
|
-
b2 && (
|
|
88
|
-
t2.beanName && (
|
|
84
|
+
b2 && (f2 += "&listCode=" + b2);
|
|
85
|
+
t2.beanName && (f2 += "&beanName=" + t2.beanName);
|
|
89
86
|
const C2 = k(s2, t2);
|
|
90
|
-
C2 && (
|
|
91
|
-
t2.tableName && (
|
|
92
|
-
t2.code && (
|
|
93
|
-
t2.version && (
|
|
87
|
+
C2 && (f2 += "&functionCode=" + C2);
|
|
88
|
+
t2.tableName && (f2 += "&tableName=" + t2.tableName);
|
|
89
|
+
t2.code && (f2 += "&pageCode=" + t2.code);
|
|
90
|
+
t2.version && (f2 += "&pageVersion=" + t2.version);
|
|
94
91
|
const T2 = d();
|
|
95
|
-
T2 && (
|
|
96
|
-
const y2 = "_RUN_CURRENT_ROLE",
|
|
97
|
-
|
|
98
|
-
if (
|
|
99
|
-
|
|
92
|
+
T2 && (f2 += "&JWT=" + T2);
|
|
93
|
+
const y2 = "_RUN_CURRENT_ROLE", h2 = m(y2);
|
|
94
|
+
h2 && (f2 += "&" + y2 + "=" + h2);
|
|
95
|
+
if (o2) {
|
|
96
|
+
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
100
97
|
}
|
|
101
|
-
const
|
|
102
|
-
window.open(
|
|
98
|
+
const P2 = n(l2, t2.isTest);
|
|
99
|
+
window.open(P2 + "/dsc/commons/download-files" + f2);
|
|
103
100
|
}(e2);
|
|
104
101
|
}, import: function(e2) {
|
|
105
|
-
console.log("列表标准事件 导入import--params=", e2);
|
|
106
102
|
const t2 = e2.pageContext.code + "_";
|
|
107
103
|
C.$emit(t2 + "import-file", e2);
|
|
108
104
|
}, export: function(e2) {
|
|
109
|
-
return
|
|
105
|
+
return function(e3) {
|
|
110
106
|
return new Promise((t2, s2) => {
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
let c2 =
|
|
114
|
-
c2 || (c2 =
|
|
115
|
-
let
|
|
116
|
-
|
|
117
|
-
const
|
|
118
|
-
|
|
107
|
+
const n2 = e3.pageContext, o2 = e3.configureObj.props.base, i2 = e3.listCode, a2 = e3.selections, r2 = {};
|
|
108
|
+
a2 && a2.length > 0 && (r2.data = a2);
|
|
109
|
+
let c2 = n2.label;
|
|
110
|
+
c2 || (c2 = n2.code);
|
|
111
|
+
let u2 = false;
|
|
112
|
+
u2 = void 0 !== o2.isAsync && null !== o2.isAsync && o2.isAsync;
|
|
113
|
+
const l2 = void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission, p2 = k(e3.configureObj, n2), d2 = c2, m2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
114
|
+
window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, i2, p2, null, m2, u2, n2.code, l2);
|
|
119
115
|
});
|
|
120
116
|
}(e2);
|
|
121
117
|
}, search: function(e2) {
|
|
122
|
-
console.log("列表标准事件 刷新列表 search--params=", e2);
|
|
123
118
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
124
119
|
b(t2, s2).refresh();
|
|
125
120
|
}, showSearch: function(e2) {
|
|
126
|
-
console.log("列表标准事件 显示查询区域 showSearch--params=", e2);
|
|
127
121
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
128
122
|
b(t2, s2).showMobileSearch();
|
|
129
123
|
}, workflowSave: function(e2) {
|
|
130
|
-
return C.$emit("clearTableAllStartEditing"),
|
|
124
|
+
return C.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
131
125
|
return new Promise((t2, s2) => {
|
|
132
|
-
const
|
|
133
|
-
let d2 =
|
|
134
|
-
if (d2 =
|
|
126
|
+
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
127
|
+
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
128
|
+
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
135
129
|
const m2 = ee(e3);
|
|
136
|
-
let
|
|
137
|
-
|
|
138
|
-
let
|
|
139
|
-
s3 && (
|
|
130
|
+
let f2;
|
|
131
|
+
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
|
|
132
|
+
let n2 = true;
|
|
133
|
+
s3 && (n2 = te(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
140
134
|
}).catch((e4) => {
|
|
141
135
|
s2(e4);
|
|
142
136
|
});
|
|
143
137
|
});
|
|
144
138
|
}(e2);
|
|
145
139
|
}, submitProcess: function(e2) {
|
|
146
|
-
return C.$emit("clearTableAllStartEditing"),
|
|
140
|
+
return C.$emit("clearTableAllStartEditing"), function(e3) {
|
|
147
141
|
return new Promise((t2, s2) => {
|
|
148
|
-
const
|
|
149
|
-
let p2 =
|
|
150
|
-
if (p2 =
|
|
142
|
+
const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
143
|
+
let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
144
|
+
if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
151
145
|
const d2 = ee(e3), m2 = c.post(p2, d2);
|
|
152
146
|
m2 && m2.then((s3) => {
|
|
153
|
-
let
|
|
154
|
-
s3 && (
|
|
147
|
+
let n2 = true;
|
|
148
|
+
s3 && (n2 = te(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
155
149
|
}).catch((e4) => {
|
|
156
150
|
s2(e4);
|
|
157
151
|
});
|
|
158
152
|
});
|
|
159
153
|
}(e2);
|
|
160
154
|
}, submitTask: function(e2) {
|
|
161
|
-
return
|
|
155
|
+
return se(e2, "SUBMIT");
|
|
162
156
|
}, approve: function(e2) {
|
|
163
|
-
return
|
|
157
|
+
return se(e2, "APPROVE");
|
|
164
158
|
}, refuse: function(e2) {
|
|
165
|
-
return
|
|
159
|
+
return se(e2, "REFUSE");
|
|
166
160
|
}, readed: function(e2) {
|
|
167
|
-
return
|
|
161
|
+
return se(e2, "READED");
|
|
168
162
|
}, agreement: function(e2) {
|
|
169
|
-
return
|
|
163
|
+
return se(e2, "AGREEMENT");
|
|
170
164
|
}, oppose: function(e2) {
|
|
171
|
-
return
|
|
165
|
+
return se(e2, "OPPOSE");
|
|
172
166
|
}, kiken: function(e2) {
|
|
173
|
-
return
|
|
167
|
+
return se(e2, "KIKEN");
|
|
174
168
|
}, assign: function(e2) {
|
|
175
|
-
return
|
|
169
|
+
return function(e3) {
|
|
176
170
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
177
171
|
C.$emit(s2 + "assign-task", e3);
|
|
178
172
|
}(e2);
|
|
179
173
|
}, copyTask: function(e2) {
|
|
180
|
-
return
|
|
174
|
+
return function(e3) {
|
|
181
175
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
182
176
|
C.$emit(s2 + "copy-task", e3);
|
|
183
177
|
}(e2);
|
|
184
178
|
}, addSigner: function(e2) {
|
|
185
|
-
return
|
|
179
|
+
return function(e3) {
|
|
186
180
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
187
181
|
C.$emit(s2 + "add-signer", e3);
|
|
188
182
|
}(e2);
|
|
189
183
|
}, drawTask: function(e2) {
|
|
190
|
-
return
|
|
191
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
192
|
-
return ce(e3,
|
|
184
|
+
return function(e3) {
|
|
185
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = ee(e3);
|
|
186
|
+
return ce(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
193
187
|
}(e2);
|
|
194
188
|
}, abandonReceive: function(e2) {
|
|
195
|
-
return
|
|
196
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
197
|
-
return ce(e3,
|
|
189
|
+
return function(e3) {
|
|
190
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = ee(e3);
|
|
191
|
+
return ce(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
198
192
|
}(e2);
|
|
199
193
|
}, returnToPreviousTask: function(e2) {
|
|
200
|
-
return
|
|
201
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
202
|
-
return ce(e3,
|
|
194
|
+
return function(e3) {
|
|
195
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = ee(e3);
|
|
196
|
+
return ce(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
203
197
|
}(e2);
|
|
204
198
|
}, endInstance: function(e2) {
|
|
205
|
-
return
|
|
206
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
207
|
-
return ce(e3,
|
|
199
|
+
return function(e3) {
|
|
200
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = ee(e3);
|
|
201
|
+
return ce(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
208
202
|
}(e2);
|
|
209
203
|
}, returnTaskTo: function(e2) {
|
|
210
|
-
return
|
|
204
|
+
return function(e3) {
|
|
211
205
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
212
206
|
C.$emit(s2 + "choose-return-node", e3);
|
|
213
207
|
}(e2);
|
|
214
208
|
}, removeSigner: function(e2) {
|
|
215
|
-
return
|
|
209
|
+
return function(e3) {
|
|
216
210
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
217
211
|
C.$emit(s2 + "remove-signer", e3);
|
|
218
212
|
}(e2);
|
|
219
213
|
}, retrieveTask: function(e2) {
|
|
220
|
-
return
|
|
221
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
222
|
-
return ce(e3,
|
|
214
|
+
return function(e3) {
|
|
215
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = ee(e3);
|
|
216
|
+
return ce(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
223
217
|
}(e2);
|
|
224
218
|
}, viewDetail: function(e2) {
|
|
225
219
|
}, lineEditCreate: function(e2) {
|
|
226
|
-
return
|
|
227
|
-
const t2 = e3.pageContext, s2 = e3.tableUuid,
|
|
228
|
-
|
|
220
|
+
return function(e3) {
|
|
221
|
+
const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
|
|
222
|
+
n2 && (e3.getDefaultValueFunc = R, n2.createRow(e3.listCode, {}, e3));
|
|
229
223
|
}(e2);
|
|
230
224
|
}, printLabel: function(e2) {
|
|
231
|
-
return
|
|
225
|
+
return function(e3) {
|
|
232
226
|
let t2 = null;
|
|
233
227
|
try {
|
|
234
228
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
@@ -238,240 +232,237 @@ const j = { save: function(e2) {
|
|
|
238
232
|
x.printLabel(e3, t2);
|
|
239
233
|
}(e2);
|
|
240
234
|
}, queryCharts: function(e2) {
|
|
241
|
-
|
|
235
|
+
D(e2);
|
|
242
236
|
}, resetCharts: function(t2) {
|
|
243
237
|
var _a, _b;
|
|
244
|
-
console.log("重置统计图--params=", t2);
|
|
245
238
|
const s2 = t2.pageContext;
|
|
246
239
|
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, D(t2);
|
|
247
240
|
}, exportCharts: function(e2) {
|
|
248
|
-
|
|
241
|
+
!function(e3) {
|
|
249
242
|
const t2 = e3.pageContext, s2 = t2.allChartUuids;
|
|
250
|
-
if (!s2 || 0 == s2.length) return
|
|
251
|
-
const
|
|
252
|
-
let
|
|
253
|
-
|
|
254
|
-
const
|
|
255
|
-
|
|
243
|
+
if (!s2 || 0 == s2.length) return;
|
|
244
|
+
const o2 = e3.configureObj;
|
|
245
|
+
let i2 = null;
|
|
246
|
+
o2 && o2.runtime && (i2 = o2.runtime.props);
|
|
247
|
+
const a2 = i2 ? i2.state : void 0;
|
|
248
|
+
i2 && (i2.state = "disabled");
|
|
256
249
|
const r2 = [];
|
|
257
250
|
for (let e4 = 0; e4 < s2.length; e4++) {
|
|
258
|
-
const
|
|
259
|
-
if (
|
|
260
|
-
const e5 =
|
|
261
|
-
e5 && e5.exportable && e5._dynamicShowFlag &&
|
|
251
|
+
const n2 = s2[e4], o3 = b(t2, n2);
|
|
252
|
+
if (o3) {
|
|
253
|
+
const e5 = o3.getConfigure();
|
|
254
|
+
e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
|
|
262
255
|
}
|
|
263
256
|
}
|
|
264
|
-
if (!r2 || 0 == r2.length) return
|
|
265
|
-
let c2,
|
|
266
|
-
|
|
267
|
-
c2 =
|
|
268
|
-
const
|
|
257
|
+
if (!r2 || 0 == r2.length) return;
|
|
258
|
+
let c2, u2 = t2.label;
|
|
259
|
+
u2 || (u2 = t2.code);
|
|
260
|
+
c2 = u2;
|
|
261
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl, d2 = n(p2, t2.isTest) + "/dsc/commons/exportChart";
|
|
269
262
|
B();
|
|
270
|
-
T.post(d2,
|
|
263
|
+
T.post(d2, l2, { responseType: "blob" }).then((e4) => {
|
|
271
264
|
const t3 = document.createElement("a");
|
|
272
265
|
t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
|
|
273
266
|
}).finally(() => {
|
|
274
|
-
|
|
267
|
+
i2 && (i2.state = a2);
|
|
275
268
|
});
|
|
276
269
|
}(e2);
|
|
277
270
|
}, saveQueryCharts: function(e2) {
|
|
278
|
-
|
|
279
|
-
const t2 = e3.pageContext, s2 = e3.configureObj,
|
|
280
|
-
C.$emit(
|
|
271
|
+
!function(e3) {
|
|
272
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
273
|
+
C.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
281
274
|
}(e2);
|
|
282
275
|
} };
|
|
283
276
|
function D(e2) {
|
|
284
277
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
285
|
-
if (!s2 || 0 == s2.length) return
|
|
286
|
-
const
|
|
287
|
-
let
|
|
288
|
-
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
|
|
278
|
+
if (!s2 || 0 == s2.length) return;
|
|
279
|
+
const n2 = e2.configureObj;
|
|
280
|
+
let o2 = null;
|
|
281
|
+
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
282
|
+
const i2 = o2 ? o2.state : void 0;
|
|
283
|
+
o2 && (o2.state = "disabled"), N(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
284
|
+
o2 && (o2.state = i2);
|
|
292
285
|
}).catch(() => {
|
|
293
|
-
|
|
286
|
+
o2 && (o2.state = i2);
|
|
294
287
|
});
|
|
295
288
|
}
|
|
296
|
-
function L(e2, s2,
|
|
289
|
+
function L(e2, s2, o2, i2) {
|
|
297
290
|
var _a;
|
|
298
|
-
const
|
|
299
|
-
|
|
300
|
-
const
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
return new Promise((a3, i3) => {
|
|
306
|
-
const r3 = o(t2, n3) + "/dsc/commons/export-pdf";
|
|
291
|
+
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = E.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: k(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
292
|
+
u2 && (C2.logSettingText = u2.join(""));
|
|
293
|
+
const y2 = ie(e2);
|
|
294
|
+
let h2;
|
|
295
|
+
C2.additionalParamMap = y2, h2 = i2 ? function(e3, t2, s3, o3) {
|
|
296
|
+
return new Promise((i3, a3) => {
|
|
297
|
+
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
307
298
|
B();
|
|
308
299
|
T.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
309
|
-
const s4 = new Blob([t3.data]),
|
|
310
|
-
|
|
300
|
+
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
301
|
+
n2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", n2.style.display = "none", n2.target = "_blank", n2.href = URL.createObjectURL(s4), document.body.appendChild(n2), n2.click(), URL.revokeObjectURL(n2.href), document.body.removeChild(n2), i3(true);
|
|
311
302
|
}).catch((e4) => {
|
|
312
|
-
|
|
303
|
+
a3(e4);
|
|
313
304
|
});
|
|
314
305
|
});
|
|
315
|
-
}(r2,
|
|
316
|
-
return new Promise((
|
|
317
|
-
const r3 =
|
|
306
|
+
}(r2, f2, C2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
307
|
+
return new Promise((i3, a3) => {
|
|
308
|
+
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
318
309
|
B();
|
|
319
310
|
T.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
320
311
|
const s4 = new Blob([t3.data]);
|
|
321
|
-
let
|
|
322
|
-
e3 && (
|
|
323
|
-
const
|
|
324
|
-
|
|
312
|
+
let n2 = "报告.xlsx";
|
|
313
|
+
e3 && (n2 = e3);
|
|
314
|
+
const o4 = document.createElement("a");
|
|
315
|
+
o4.download = n2, 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);
|
|
325
316
|
}).catch((e4) => {
|
|
326
|
-
|
|
317
|
+
a3(e4);
|
|
327
318
|
});
|
|
328
319
|
});
|
|
329
|
-
}(r2,
|
|
330
|
-
|
|
320
|
+
}(r2, f2, C2, e2.isTest), h2 && h2.then(() => {
|
|
321
|
+
P(e2, s2);
|
|
331
322
|
});
|
|
332
323
|
}
|
|
333
324
|
function B() {
|
|
334
325
|
T.defaults.headers.common.Authorization = d();
|
|
335
|
-
const e2 =
|
|
326
|
+
const e2 = f();
|
|
336
327
|
if (e2) {
|
|
337
328
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
338
329
|
T.defaults.headers.common[t2] = e2;
|
|
339
330
|
}
|
|
340
331
|
}
|
|
341
332
|
function W(e2, t2) {
|
|
342
|
-
return new Promise((s2,
|
|
343
|
-
const
|
|
344
|
-
let
|
|
345
|
-
c2 && "noOperation" === c2 && (
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
|
|
333
|
+
return new Promise((s2, n2) => {
|
|
334
|
+
const o2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
|
|
335
|
+
let u2 = false;
|
|
336
|
+
c2 && "noOperation" === c2 && (u2 = true);
|
|
337
|
+
const l2 = $(o2, i2, "/dsc/commons", u2, a2, r2);
|
|
338
|
+
l2 ? l2.then((e3) => {
|
|
339
|
+
q(o2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
349
340
|
}).catch((e3) => {
|
|
350
|
-
|
|
351
|
-
}) :
|
|
341
|
+
n2(e3);
|
|
342
|
+
}) : n2("保存时request不存在");
|
|
352
343
|
});
|
|
353
344
|
}
|
|
354
|
-
function V(e2, o2,
|
|
345
|
+
function V(e2, n2, o2, i2, a2, r2, c2) {
|
|
355
346
|
var _a;
|
|
356
|
-
const
|
|
347
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = k(n2, e2);
|
|
357
348
|
let m2 = c2;
|
|
358
349
|
m2 || (m2 = e2.entity.data);
|
|
359
|
-
const
|
|
360
|
-
r2 && (
|
|
361
|
-
const
|
|
362
|
-
|
|
363
|
-
const b2 = Ce(
|
|
364
|
-
b2 && (
|
|
365
|
-
const C2 = (_a =
|
|
366
|
-
C2 && (
|
|
350
|
+
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 };
|
|
351
|
+
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
352
|
+
const g2 = n2.props.base.conversionCodes;
|
|
353
|
+
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
354
|
+
const b2 = Ce(n2);
|
|
355
|
+
b2 && (f2.autoSetValueData = b2);
|
|
356
|
+
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
357
|
+
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
367
358
|
const T2 = e2.beanName;
|
|
368
|
-
T2 && (
|
|
369
|
-
const y2 =
|
|
370
|
-
return
|
|
371
|
-
}
|
|
372
|
-
function F(e2, t2, s2,
|
|
373
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2,
|
|
374
|
-
return
|
|
375
|
-
const
|
|
376
|
-
let
|
|
377
|
-
p3 =
|
|
378
|
-
return
|
|
359
|
+
T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
360
|
+
const y2 = ie(e2);
|
|
361
|
+
return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
362
|
+
}
|
|
363
|
+
function F(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
364
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, i2, a2, r2, null, u2);
|
|
365
|
+
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, i3, a3, r3) {
|
|
366
|
+
const u3 = n(t3, r3);
|
|
367
|
+
let l3, p3 = u3 + i3;
|
|
368
|
+
p3 = o(p3, e3, t3, r3), l3 = a3 && (a3.id || a3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
369
|
+
return l3;
|
|
379
370
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
380
371
|
}
|
|
381
|
-
function
|
|
382
|
-
return F(e2, t2, s2,
|
|
372
|
+
function $(e2, t2, s2, n2, o2, i2) {
|
|
373
|
+
return F(e2, t2, s2, n2, o2, i2, null, null);
|
|
383
374
|
}
|
|
384
|
-
function
|
|
385
|
-
const
|
|
386
|
-
if (
|
|
387
|
-
let
|
|
388
|
-
const
|
|
389
|
-
|
|
390
|
-
if ("refresh" ===
|
|
375
|
+
function q(t2, s2, n2, o2, i2) {
|
|
376
|
+
const a2 = H(t2, s2, i2);
|
|
377
|
+
if (a2 && "list" === a2) !function(t3, s3, n3, o3) {
|
|
378
|
+
let i3 = s3.props.base.successOperation;
|
|
379
|
+
const a3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
380
|
+
i3 || z.includes(s3.name) || (i3 = "refresh");
|
|
381
|
+
if ("refresh" === i3) if (r2) {
|
|
391
382
|
b(t3, r2).refresh();
|
|
392
383
|
} else console.error("tableUuid is empty");
|
|
393
|
-
else if ("closeWindow" ===
|
|
394
|
-
const
|
|
395
|
-
let
|
|
396
|
-
|
|
384
|
+
else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
385
|
+
const o4 = e(t3.entity.page);
|
|
386
|
+
let i4 = n3;
|
|
387
|
+
i4 || (i4 = {}), Object.assign(o4, i4), J(t3, s3, o4, a3);
|
|
397
388
|
}
|
|
398
|
-
|
|
399
|
-
}(t2, s2,
|
|
400
|
-
else if (
|
|
389
|
+
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
390
|
+
}(t2, s2, n2, o2), t2.canClick = true;
|
|
391
|
+
else if (a2 && "form" === a2) !function(e2, t3, s3, n3) {
|
|
401
392
|
if (s3) {
|
|
402
|
-
const
|
|
403
|
-
let
|
|
404
|
-
|
|
405
|
-
G(e2, t3, { ...
|
|
393
|
+
const n4 = s3;
|
|
394
|
+
let o3;
|
|
395
|
+
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
396
|
+
G(e2, t3, { ...o3, ...e2.entity.page });
|
|
406
397
|
} else {
|
|
407
398
|
const s4 = t3.props.base.successOperation;
|
|
408
399
|
if (s4 && null !== s4) {
|
|
409
400
|
G(e2, t3, { ...e2.entity.page });
|
|
410
401
|
} else e2.canClick = true;
|
|
411
402
|
}
|
|
412
|
-
|
|
413
|
-
}(t2, s2,
|
|
403
|
+
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
404
|
+
}(t2, s2, n2, o2);
|
|
414
405
|
else {
|
|
415
406
|
const e2 = s2.props.base.successOperation;
|
|
416
407
|
e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
|
|
417
408
|
}
|
|
418
409
|
}
|
|
419
410
|
function H(e2, t2, s2) {
|
|
420
|
-
let
|
|
421
|
-
return void 0 === s2 ?
|
|
411
|
+
let n2;
|
|
412
|
+
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
422
413
|
}
|
|
423
414
|
function G(e2, t2, s2) {
|
|
424
|
-
const
|
|
425
|
-
if (!
|
|
426
|
-
const
|
|
427
|
-
"noOperation" ===
|
|
428
|
-
}
|
|
429
|
-
function J(e2, t2, s2,
|
|
430
|
-
const
|
|
431
|
-
if ("openWindow" ===
|
|
415
|
+
const n2 = t2.props.base.successOperation;
|
|
416
|
+
if (!n2 || null === n2) return;
|
|
417
|
+
const o2 = t2.props.base.isNeedValueMapping;
|
|
418
|
+
"noOperation" === n2 ? (s2 && (e2.entity.data = s2), e2.canClick = true) : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? fe(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
|
|
419
|
+
}
|
|
420
|
+
function J(e2, t2, s2, n2) {
|
|
421
|
+
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
422
|
+
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
432
423
|
else {
|
|
433
|
-
const
|
|
434
|
-
C.$emit(r2 + "close-dialog", { isNeedValueMapping:
|
|
424
|
+
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) + "_";
|
|
425
|
+
C.$emit(r2 + "close-dialog", { isNeedValueMapping: a2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: i2, jumpMode: o2 });
|
|
435
426
|
}
|
|
436
427
|
}
|
|
437
|
-
function Y(e2, t2, s2,
|
|
428
|
+
function Y(e2, t2, s2, n2, o2) {
|
|
438
429
|
var _a;
|
|
439
|
-
|
|
440
|
-
const
|
|
441
|
-
|
|
430
|
+
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);
|
|
431
|
+
const i2 = e2.tableName;
|
|
432
|
+
!function(e3, t3, s3) {
|
|
442
433
|
if (e3 && null !== e3 && t3) {
|
|
443
|
-
let
|
|
444
|
-
Array.isArray(e3) && e3.length > 0 && (
|
|
434
|
+
let n3 = e3;
|
|
435
|
+
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
445
436
|
const t4 = e4.source;
|
|
446
437
|
if (!t4) return;
|
|
447
|
-
const
|
|
448
|
-
I(s3.entity, r2,
|
|
438
|
+
const o3 = t4.split("."), i3 = S(n3, o3), a2 = e4.target, r2 = M(null, a2);
|
|
439
|
+
I(s3.entity, r2, i3);
|
|
449
440
|
});
|
|
450
441
|
}
|
|
451
|
-
}(s2,
|
|
442
|
+
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
|
|
452
443
|
}
|
|
453
444
|
const z = ["dropdown"];
|
|
454
|
-
function K(e2, t2, s2,
|
|
445
|
+
function K(e2, t2, s2, n2) {
|
|
455
446
|
var _a;
|
|
456
447
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
457
|
-
let
|
|
458
|
-
|
|
459
|
-
const
|
|
460
|
-
if (
|
|
461
|
-
if (
|
|
462
|
-
const s3 =
|
|
448
|
+
let o2 = n2;
|
|
449
|
+
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
450
|
+
const i2 = H(e2, t2);
|
|
451
|
+
if (i2 && "list" === i2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
452
|
+
if (i2 && "list" === i2) {
|
|
453
|
+
const s3 = h(e2, t2);
|
|
463
454
|
if (s3) {
|
|
464
455
|
b(e2, s3).refresh();
|
|
465
456
|
} else console.error("tableUuid is empty");
|
|
466
|
-
} else if (
|
|
457
|
+
} else if (i2 && "form" === i2) {
|
|
467
458
|
const t3 = e2.entity.data;
|
|
468
|
-
|
|
459
|
+
fe(e2, t3.ID ? t3.ID : t3.id);
|
|
469
460
|
}
|
|
470
461
|
}
|
|
471
462
|
}
|
|
472
|
-
function Q(e2, t2, s2,
|
|
473
|
-
return new Promise((r2,
|
|
474
|
-
const d2 = e2.pageContext, m2 = e2.configureObj,
|
|
463
|
+
function Q(e2, t2, s2, i2) {
|
|
464
|
+
return new Promise((r2, l2) => {
|
|
465
|
+
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
475
466
|
let T2 = false;
|
|
476
467
|
C2 && "noOperation" === C2 && (T2 = true);
|
|
477
468
|
let y2 = d2.tableName;
|
|
@@ -479,15 +470,15 @@ function Q(e2, t2, s2, a2) {
|
|
|
479
470
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
480
471
|
y2 = A(d2, t3);
|
|
481
472
|
}
|
|
482
|
-
const
|
|
483
|
-
return new Promise((
|
|
484
|
-
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" +
|
|
485
|
-
p.confirm(
|
|
486
|
-
const
|
|
487
|
-
p2.tableName =
|
|
488
|
-
let d4 =
|
|
489
|
-
d4 =
|
|
490
|
-
|
|
473
|
+
const h2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
|
|
474
|
+
return new Promise((g3, b3) => {
|
|
475
|
+
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
476
|
+
p.confirm(u().t(T3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
477
|
+
const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, i3, r3, l3, m3, null);
|
|
478
|
+
p2.tableName = f3;
|
|
479
|
+
let d4 = n(u2, e3.isTest) + s3;
|
|
480
|
+
d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
481
|
+
g3(e4);
|
|
491
482
|
}).catch((e4) => {
|
|
492
483
|
b3(e4);
|
|
493
484
|
});
|
|
@@ -495,115 +486,114 @@ function Q(e2, t2, s2, a2) {
|
|
|
495
486
|
b3("点击了取消按钮");
|
|
496
487
|
});
|
|
497
488
|
});
|
|
498
|
-
}(d2, m2,
|
|
499
|
-
|
|
500
|
-
|
|
489
|
+
}(d2, m2, i2, T2, f2, g2, s2, b2, y2);
|
|
490
|
+
h2 ? h2.then((e3) => {
|
|
491
|
+
q(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
501
492
|
}).catch((e3) => {
|
|
502
|
-
|
|
503
|
-
}) :
|
|
493
|
+
l2(e3);
|
|
494
|
+
}) : l2("request不存在");
|
|
504
495
|
});
|
|
505
496
|
}
|
|
506
497
|
function X(e2, s2) {
|
|
507
498
|
var _a;
|
|
508
|
-
const
|
|
509
|
-
|
|
510
|
-
const
|
|
511
|
-
|
|
512
|
-
const b2 =
|
|
513
|
-
b2 &&
|
|
514
|
-
const C2 = Ce(
|
|
515
|
-
C2 &&
|
|
516
|
-
const T2 =
|
|
517
|
-
T2 &&
|
|
499
|
+
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();
|
|
500
|
+
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
501
|
+
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
502
|
+
g2 && f2.append("importDuplicateRule", g2);
|
|
503
|
+
const b2 = i2.judgeHeavyList;
|
|
504
|
+
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
505
|
+
const C2 = Ce(a2);
|
|
506
|
+
C2 && f2.append("autoSetValueData", C2);
|
|
507
|
+
const T2 = i2.formNoRuleCode;
|
|
508
|
+
T2 && f2.append("formNoRuleCode", T2);
|
|
518
509
|
const y2 = e2.listCode;
|
|
519
|
-
y2 &&
|
|
520
|
-
let
|
|
521
|
-
|
|
522
|
-
const w2 = t(
|
|
523
|
-
null != w2 &&
|
|
524
|
-
const R2 = k(
|
|
525
|
-
R2 &&
|
|
526
|
-
const
|
|
527
|
-
|
|
528
|
-
const
|
|
529
|
-
|
|
530
|
-
const
|
|
531
|
-
|
|
532
|
-
const S2 =
|
|
533
|
-
let I2 =
|
|
534
|
-
I2 =
|
|
535
|
-
if (
|
|
510
|
+
y2 && f2.append("listCode", y2);
|
|
511
|
+
let h2 = false;
|
|
512
|
+
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
|
|
513
|
+
const w2 = t(i2);
|
|
514
|
+
null != w2 && f2.append("isWorkflowEntity", w2 + "");
|
|
515
|
+
const R2 = k(a2, i2);
|
|
516
|
+
R2 && f2.append("functionCode", R2);
|
|
517
|
+
const M2 = ie(i2);
|
|
518
|
+
f2.append("additionalParamMapStr", JSON.stringify(M2));
|
|
519
|
+
const N2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
520
|
+
f2.append("isPermission", N2 + "");
|
|
521
|
+
const v2 = i2.systemCode;
|
|
522
|
+
v2 && f2.append("systemCode", v2);
|
|
523
|
+
const S2 = i2.backendUrl;
|
|
524
|
+
let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
|
|
525
|
+
I2 = o(I2, v2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
|
|
526
|
+
if (h2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
536
527
|
else {
|
|
537
528
|
let t2 = false;
|
|
538
|
-
e3 ? (t2 = false,
|
|
529
|
+
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), q(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
|
|
539
530
|
}
|
|
540
531
|
}).catch((e3) => {
|
|
541
|
-
console.log("error==", e3);
|
|
542
532
|
});
|
|
543
533
|
}
|
|
544
534
|
function Z(e2, t2) {
|
|
545
535
|
const s2 = e2.props.base;
|
|
546
536
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
547
537
|
if ("one" === s2.conditionsForExecution) {
|
|
548
|
-
if (!t2 || 1 !== t2.length) return
|
|
549
|
-
} else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return
|
|
538
|
+
if (!t2 || 1 !== t2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
|
|
539
|
+
} else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
|
|
550
540
|
}
|
|
551
541
|
return true;
|
|
552
542
|
}
|
|
553
543
|
function ee(e2) {
|
|
554
544
|
var _a;
|
|
555
|
-
const t2 = e2.pageContext,
|
|
556
|
-
let r2 = k(
|
|
557
|
-
r2 || (r2 =
|
|
558
|
-
const c2 = { entity:
|
|
545
|
+
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
546
|
+
let r2 = k(n2, t2);
|
|
547
|
+
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
548
|
+
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
559
549
|
t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (s(t2.judgeHeavyList) ? c2.judgeHeavyList = JSON.stringify(t2.judgeHeavyList) : c2.judgeHeavyList = t2.judgeHeavyList);
|
|
560
|
-
const
|
|
561
|
-
|
|
562
|
-
const
|
|
563
|
-
|
|
564
|
-
const p2 = (_a =
|
|
565
|
-
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode =
|
|
566
|
-
const d2 =
|
|
550
|
+
const u2 = n2.props.base.conversionCodes;
|
|
551
|
+
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
552
|
+
const l2 = Ce(n2);
|
|
553
|
+
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
554
|
+
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
555
|
+
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
556
|
+
const d2 = ie(t2);
|
|
567
557
|
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids ? c2.ids = [d2.ids] : console.error("ids参数类型错误"));
|
|
568
|
-
const m2 =
|
|
558
|
+
const m2 = n2.props.base.successOperation;
|
|
569
559
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
570
560
|
}
|
|
571
|
-
function te(e2, t2, s2,
|
|
572
|
-
const
|
|
561
|
+
function te(e2, t2, s2, n2, o2) {
|
|
562
|
+
const i2 = s2.code, a2 = s2.version;
|
|
573
563
|
let r2;
|
|
574
564
|
if (e2) {
|
|
575
565
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
576
|
-
const s3 =
|
|
577
|
-
e3 && s3 &&
|
|
566
|
+
const s3 = ie(t3);
|
|
567
|
+
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
578
568
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
579
|
-
const
|
|
580
|
-
if (
|
|
581
|
-
const e3 =
|
|
569
|
+
const o3 = e2.completeTaskResult;
|
|
570
|
+
if (o3) {
|
|
571
|
+
const e3 = o3.completeTaskTipType;
|
|
582
572
|
if (e3 && "MESSAGE" === e3) {
|
|
583
|
-
const e4 =
|
|
584
|
-
return
|
|
573
|
+
const e4 = o3.content;
|
|
574
|
+
return l({ showClose: true, type: "warning", message: e4 }), false;
|
|
585
575
|
}
|
|
586
576
|
}
|
|
587
577
|
if (e2.completeTaskParam) {
|
|
588
578
|
const t3 = e2.completeTaskParam;
|
|
589
|
-
r2 = t3.taskId,
|
|
579
|
+
r2 = t3.taskId, n2 && (n2.taskId = r2), w(i2, a2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
|
|
590
580
|
}
|
|
591
|
-
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, w(
|
|
581
|
+
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, w(i2, a2, "_currentActivityName", e2.taskName);
|
|
592
582
|
}
|
|
593
|
-
return
|
|
583
|
+
return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
|
|
594
584
|
}
|
|
595
585
|
async function se(e2, t2) {
|
|
596
586
|
const s2 = await function(e3) {
|
|
597
587
|
return new Promise((t3, s3) => {
|
|
598
588
|
var _a, _b, _c, _d;
|
|
599
|
-
const
|
|
600
|
-
if (
|
|
589
|
+
const n2 = e3.configureObj;
|
|
590
|
+
if (n2) {
|
|
601
591
|
let s4 = false;
|
|
602
|
-
if (((_b = (_a =
|
|
603
|
-
const t4 = e3.pageContext,
|
|
604
|
-
s4 =
|
|
592
|
+
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
593
|
+
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
594
|
+
s4 = v(t4, n2, o2);
|
|
605
595
|
}
|
|
606
|
-
true === s4 ? p.prompt(
|
|
596
|
+
true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
|
|
607
597
|
t3(e4);
|
|
608
598
|
}).catch(() => {
|
|
609
599
|
t3(false);
|
|
@@ -611,53 +601,53 @@ async function se(e2, t2) {
|
|
|
611
601
|
} else t3(true);
|
|
612
602
|
});
|
|
613
603
|
}(e2);
|
|
614
|
-
return new Promise((
|
|
604
|
+
return new Promise((i2, a2) => {
|
|
615
605
|
var _a;
|
|
616
606
|
if (s2) {
|
|
617
607
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
618
|
-
let
|
|
619
|
-
if (
|
|
620
|
-
const
|
|
621
|
-
|
|
622
|
-
c.post(
|
|
623
|
-
let
|
|
624
|
-
s3 && (
|
|
608
|
+
let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
609
|
+
if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
610
|
+
const g2 = ee(e2);
|
|
611
|
+
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
612
|
+
c.post(f2, g2).then((s3) => {
|
|
613
|
+
let n2 = true;
|
|
614
|
+
s3 && (n2 = te(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
625
615
|
}).catch((e3) => {
|
|
626
|
-
|
|
616
|
+
a2(e3);
|
|
627
617
|
});
|
|
628
|
-
} else
|
|
618
|
+
} else i2(true);
|
|
629
619
|
});
|
|
630
620
|
}
|
|
631
|
-
function
|
|
621
|
+
function ne(e2, t2) {
|
|
632
622
|
if (t2) {
|
|
633
|
-
const s2 = e2.pageContext,
|
|
634
|
-
c2.assigneeId = r2, ce(e2, c2,
|
|
635
|
-
|
|
623
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = ee(e2);
|
|
624
|
+
c2.assigneeId = r2, ce(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
625
|
+
P(s2, o2);
|
|
636
626
|
});
|
|
637
627
|
}
|
|
638
628
|
}
|
|
639
|
-
function
|
|
640
|
-
const t2 = e2.pageContext, s2 = t2.entity.data,
|
|
641
|
-
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode:
|
|
629
|
+
function oe(e2) {
|
|
630
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = ie(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
631
|
+
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
642
632
|
}
|
|
643
|
-
function
|
|
633
|
+
function ie(t2) {
|
|
644
634
|
if (t2.entity) {
|
|
645
635
|
let s2 = e(t2.entity.page);
|
|
646
636
|
s2 || (s2 = {});
|
|
647
|
-
const
|
|
648
|
-
return
|
|
637
|
+
const n2 = t2.entity.request;
|
|
638
|
+
return n2 && Object.assign(s2, n2), s2;
|
|
649
639
|
}
|
|
650
640
|
}
|
|
651
|
-
function
|
|
641
|
+
function ae(e2, t2) {
|
|
652
642
|
if (t2) {
|
|
653
|
-
const s2 = e2.pageContext,
|
|
654
|
-
let p2 =
|
|
655
|
-
if (p2 =
|
|
656
|
-
const d2 =
|
|
643
|
+
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
644
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
645
|
+
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
646
|
+
const d2 = oe(e2);
|
|
657
647
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
658
648
|
const m2 = c.post(p2, d2);
|
|
659
649
|
m2 && m2.then((e3) => {
|
|
660
|
-
|
|
650
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && q(s2, i2, e3, null, false), P(s2, i2);
|
|
661
651
|
});
|
|
662
652
|
}
|
|
663
653
|
}
|
|
@@ -666,14 +656,14 @@ async function re(e2, t2) {
|
|
|
666
656
|
const s2 = await function(e3) {
|
|
667
657
|
return new Promise((t3, s3) => {
|
|
668
658
|
var _a, _b, _c, _d;
|
|
669
|
-
const
|
|
670
|
-
if (
|
|
671
|
-
let s4 = (_b = (_a =
|
|
659
|
+
const n2 = e3.configureObj;
|
|
660
|
+
if (n2) {
|
|
661
|
+
let s4 = (_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
672
662
|
if (true === s4) {
|
|
673
|
-
const t4 = e3.pageContext,
|
|
674
|
-
s4 =
|
|
663
|
+
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
664
|
+
s4 = v(t4, n2, o2);
|
|
675
665
|
}
|
|
676
|
-
true === s4 ? p.prompt(
|
|
666
|
+
true === s4 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputRemark"), u().t("superPageRuntimeMessage.remark"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || u().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
677
667
|
t3(e4);
|
|
678
668
|
}).catch(() => {
|
|
679
669
|
t3(false);
|
|
@@ -682,101 +672,101 @@ async function re(e2, t2) {
|
|
|
682
672
|
});
|
|
683
673
|
}(e2);
|
|
684
674
|
if (s2) {
|
|
685
|
-
const
|
|
686
|
-
let d2 =
|
|
687
|
-
if (d2 =
|
|
688
|
-
const m2 =
|
|
675
|
+
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
676
|
+
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons/copies";
|
|
677
|
+
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
678
|
+
const m2 = oe(e2);
|
|
689
679
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
|
|
680
|
+
const f2 = c.post(d2, m2);
|
|
681
|
+
f2 && f2.then((e3) => {
|
|
682
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), P(i2, a2);
|
|
693
683
|
});
|
|
694
684
|
}
|
|
695
685
|
}
|
|
696
686
|
}
|
|
697
|
-
function ce(e2, t2, s2,
|
|
698
|
-
return new Promise((
|
|
687
|
+
function ce(e2, t2, s2, n2) {
|
|
688
|
+
return new Promise((i2, a2) => {
|
|
699
689
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
700
|
-
if (!(s2 =
|
|
690
|
+
if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
701
691
|
const m2 = c.post(s2, t2);
|
|
702
692
|
m2 && m2.then((t3) => {
|
|
703
693
|
let s3 = true;
|
|
704
|
-
t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 &&
|
|
694
|
+
t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
705
695
|
}).catch((e3) => {
|
|
706
|
-
|
|
696
|
+
a2(e3);
|
|
707
697
|
});
|
|
708
698
|
});
|
|
709
699
|
}
|
|
710
|
-
function
|
|
711
|
-
const t2 = e2.pageContext, s2 = t2.systemCode,
|
|
712
|
-
let r2 =
|
|
713
|
-
if (r2 =
|
|
714
|
-
const p2 = t2.code, d2 =
|
|
700
|
+
function ue(e2) {
|
|
701
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
|
|
702
|
+
let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
703
|
+
if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
704
|
+
const p2 = t2.code, d2 = ie(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
715
705
|
return c.post(r2, m2);
|
|
716
706
|
}
|
|
717
|
-
function
|
|
718
|
-
const s2 = e2.pageContext,
|
|
719
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2,
|
|
720
|
-
|
|
707
|
+
function le(e2, t2) {
|
|
708
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
|
|
709
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
710
|
+
P(s2, o2);
|
|
721
711
|
});
|
|
722
712
|
}
|
|
723
713
|
function pe(e2) {
|
|
724
|
-
const t2 = e2.pageContext, s2 = t2.systemCode,
|
|
725
|
-
let
|
|
714
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
|
|
715
|
+
let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
726
716
|
const r2 = ee(e2);
|
|
727
|
-
if (
|
|
728
|
-
|
|
717
|
+
if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
|
|
718
|
+
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
729
719
|
}
|
|
730
720
|
function de(e2, t2) {
|
|
731
721
|
if (t2) {
|
|
732
|
-
const s2 = e2.pageContext,
|
|
733
|
-
let p2 =
|
|
734
|
-
if (p2 =
|
|
722
|
+
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
723
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
724
|
+
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
735
725
|
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = ee(e2);
|
|
736
726
|
m2.ids = d2;
|
|
737
|
-
const
|
|
738
|
-
|
|
739
|
-
|
|
727
|
+
const f2 = c.post(p2, m2);
|
|
728
|
+
f2 && f2.then((e3) => {
|
|
729
|
+
q(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, i2);
|
|
740
730
|
});
|
|
741
731
|
}
|
|
742
732
|
}
|
|
743
733
|
function me(e2, t2, s2) {
|
|
744
|
-
let
|
|
745
|
-
return e2 && t2 && ("workflowSave" === e2 ?
|
|
734
|
+
let n2 = false;
|
|
735
|
+
return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
|
|
746
736
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
747
737
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
748
738
|
return false;
|
|
749
|
-
}(t2) : "submitProcess" === e2 ?
|
|
739
|
+
}(t2) : "submitProcess" === e2 ? n2 = function(e3) {
|
|
750
740
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
751
741
|
return false;
|
|
752
|
-
}(t2) : "submitTask" === e2 ?
|
|
742
|
+
}(t2) : "submitTask" === e2 ? n2 = function(e3) {
|
|
753
743
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
754
744
|
return false;
|
|
755
|
-
}(t2) : "drawTask" === e2 ?
|
|
745
|
+
}(t2) : "drawTask" === e2 ? n2 = function(e3) {
|
|
756
746
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
757
747
|
return false;
|
|
758
|
-
}(t2) : "abandonReceive" === e2 ?
|
|
748
|
+
}(t2) : "abandonReceive" === e2 ? n2 = function(e3) {
|
|
759
749
|
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
|
|
760
750
|
return false;
|
|
761
|
-
}(t2) : "approve" === e2 || "refuse" === e2 ?
|
|
751
|
+
}(t2) : "approve" === e2 || "refuse" === e2 ? n2 = function(e3) {
|
|
762
752
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
|
|
763
753
|
return false;
|
|
764
|
-
}(t2) : "readed" === e2 ?
|
|
754
|
+
}(t2) : "readed" === e2 ? n2 = function(e3) {
|
|
765
755
|
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
|
|
766
756
|
return false;
|
|
767
|
-
}(t2) : "assign" === e2 ?
|
|
757
|
+
}(t2) : "assign" === e2 ? n2 = function(e3) {
|
|
768
758
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
769
759
|
return false;
|
|
770
|
-
}(t2) : "copyTask" === e2 ?
|
|
760
|
+
}(t2) : "copyTask" === e2 ? n2 = function(e3) {
|
|
771
761
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy) return true;
|
|
772
762
|
return false;
|
|
773
|
-
}(t2) : "addSigner" === e2 ?
|
|
763
|
+
}(t2) : "addSigner" === e2 ? n2 = function(e3) {
|
|
774
764
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
775
765
|
return false;
|
|
776
|
-
}(t2) : "removeSigner" === e2 ?
|
|
766
|
+
}(t2) : "removeSigner" === e2 ? n2 = function(e3) {
|
|
777
767
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
778
768
|
return false;
|
|
779
|
-
}(t2) : "retrieveTask" === e2 ?
|
|
769
|
+
}(t2) : "retrieveTask" === e2 ? n2 = function(e3) {
|
|
780
770
|
if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
|
|
781
771
|
if ("COMPLETED" !== e4.active) return false;
|
|
782
772
|
if ("TYPE_READ" === e4.processingMode) return false;
|
|
@@ -784,10 +774,10 @@ function me(e2, t2, s2) {
|
|
|
784
774
|
return true;
|
|
785
775
|
}(e3)) return true;
|
|
786
776
|
return false;
|
|
787
|
-
}(t2) : "agreement" === e2 || "oppose" === e2 ?
|
|
777
|
+
}(t2) : "agreement" === e2 || "oppose" === e2 ? n2 = function(e3) {
|
|
788
778
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
|
|
789
779
|
return false;
|
|
790
|
-
}(t2) : "kiken" === e2 ?
|
|
780
|
+
}(t2) : "kiken" === e2 ? n2 = function(e3) {
|
|
791
781
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
792
782
|
return false;
|
|
793
783
|
}(t2) : function(e3, t3) {
|
|
@@ -797,99 +787,97 @@ function me(e2, t2, s2) {
|
|
|
797
787
|
t4 && (s3 = t4.taskComplete);
|
|
798
788
|
return s3;
|
|
799
789
|
}(t3);
|
|
800
|
-
}(t2, s2) && (
|
|
790
|
+
}(t2, s2) && (n2 = "returnToPreviousTask" !== e2 || function(e3) {
|
|
801
791
|
if (e3.rebuttable) return true;
|
|
802
792
|
return false;
|
|
803
|
-
}(t2))),
|
|
793
|
+
}(t2))), n2;
|
|
804
794
|
}
|
|
805
|
-
function
|
|
806
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
795
|
+
function fe(e2, t2) {
|
|
796
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ge(e2, t2).then((t3) => {
|
|
807
797
|
e2.isRefresh = true;
|
|
808
798
|
});
|
|
809
799
|
}
|
|
810
|
-
function
|
|
811
|
-
const
|
|
812
|
-
if (
|
|
813
|
-
|
|
800
|
+
function ge(e2, s2, o2) {
|
|
801
|
+
const i2 = e2.pageType;
|
|
802
|
+
if (i2 && "form" === i2) {
|
|
803
|
+
e2.canClick = false;
|
|
814
804
|
return t(e2) ? function(e3, t2, s3) {
|
|
815
|
-
return new Promise((
|
|
816
|
-
const
|
|
817
|
-
let d2 = t2 || null,
|
|
818
|
-
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null),
|
|
819
|
-
const
|
|
820
|
-
if (
|
|
805
|
+
return new Promise((o3, i3) => {
|
|
806
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
|
|
807
|
+
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
808
|
+
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
809
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
810
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
821
811
|
const t3 = {};
|
|
822
812
|
e3.tableUuids.forEach((e4) => {
|
|
823
|
-
const s4 = r(
|
|
813
|
+
const s4 = r(u2, l2, e4);
|
|
824
814
|
t3[s4] = s4;
|
|
825
815
|
}), C2.listCodesMap = t3;
|
|
826
816
|
}
|
|
827
|
-
|
|
828
|
-
const T2 =
|
|
829
|
-
|
|
817
|
+
f2 && (C2.ids = be(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
818
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = _();
|
|
819
|
+
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
830
820
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
|
|
831
821
|
const s4 = e3.pageType;
|
|
832
822
|
s4 && "form" === s4 && function(e4) {
|
|
833
823
|
(function(e5) {
|
|
834
824
|
const t4 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
|
|
835
825
|
if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
|
|
836
|
-
const
|
|
837
|
-
if (
|
|
838
|
-
const
|
|
839
|
-
if (
|
|
826
|
+
const n2 = s5[e6].name;
|
|
827
|
+
if (n2) if (0 === n2.indexOf("$") && n2.indexOf(".") > 0) {
|
|
828
|
+
const o4 = s5[e6], i4 = JSON.parse(JSON.stringify(o4)), a3 = n2.substring(1, n2.indexOf(".")), r2 = n2.substring(n2.indexOf(".") + 1);
|
|
829
|
+
if (i4.name = r2, i4 && "all_fields" === i4.name) false === i4.canEdit ? i4.rowIndexes ? t4.set(a3, [{ name: "all_fields", canEdit: false, rowIndexes: i4.rowIndexes }]) : t4.set(a3, [{ name: "all_fields", canEdit: false }]) : i4.rowIndexes ? t4.set(a3, [{ name: "all_fields", canEdit: true, rowIndexes: i4.rowIndexes }]) : t4.set(a3, [{ name: "all_fields", canEdit: true }]);
|
|
840
830
|
else {
|
|
841
|
-
let e7 = t4.get(
|
|
842
|
-
e7 || (e7 = []), e7.push(
|
|
831
|
+
let e7 = t4.get(a3);
|
|
832
|
+
e7 || (e7 = []), e7.push(i4), t4.set(a3, e7);
|
|
843
833
|
}
|
|
844
|
-
} else t4.set(
|
|
834
|
+
} else t4.set(n2, s5[e6]);
|
|
845
835
|
}
|
|
846
836
|
e5.fieldPermissionMap = t4;
|
|
847
837
|
})(e4), function(e5) {
|
|
848
|
-
const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(),
|
|
849
|
-
if (null !=
|
|
850
|
-
Object.keys(
|
|
851
|
-
const
|
|
852
|
-
if (
|
|
838
|
+
const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n2 = e5.actionPermissions;
|
|
839
|
+
if (null != n2) {
|
|
840
|
+
Object.keys(n2).forEach((e6) => {
|
|
841
|
+
const o4 = n2[e6], i4 = t4.get(e6);
|
|
842
|
+
if (i4 && i4.length > 0 && "all_fields" === i4[0].name && false === i4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
|
|
853
843
|
else {
|
|
854
|
-
const s6 =
|
|
855
|
-
void 0 !== s6 && false === s6 && null !=
|
|
844
|
+
const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
|
|
845
|
+
void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
|
|
856
846
|
}
|
|
857
|
-
s5.set(e6,
|
|
847
|
+
s5.set(e6, o4);
|
|
858
848
|
});
|
|
859
849
|
}
|
|
860
850
|
e5.actionPermissionMap = s5;
|
|
861
851
|
}(e4);
|
|
862
|
-
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"),
|
|
852
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
863
853
|
}).catch((t3) => {
|
|
864
|
-
e3.canClick = true,
|
|
854
|
+
e3.canClick = true, i3(t3);
|
|
865
855
|
});
|
|
866
856
|
});
|
|
867
|
-
}(e2, s2,
|
|
868
|
-
return new Promise((
|
|
869
|
-
const
|
|
870
|
-
let d2 = t2 || null,
|
|
871
|
-
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null),
|
|
872
|
-
const
|
|
873
|
-
|
|
874
|
-
const C2 = o(e3.backendUrl, e3.isTest), T2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
875
|
-
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), g2 && (T2.ids = be(g2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), f2 && (T2.taskId = f2), console.log("getCommonFormData---listCodesMap=", e3.listCodesMap), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
857
|
+
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
858
|
+
return new Promise((o3, i3) => {
|
|
859
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ie(e3);
|
|
860
|
+
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
861
|
+
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
862
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
863
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = be(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
876
864
|
const t3 = {};
|
|
877
865
|
e3.tableUuids.forEach((e4) => {
|
|
878
|
-
const s4 = r(
|
|
866
|
+
const s4 = r(u2, l2, e4);
|
|
879
867
|
t3[s4] = s4;
|
|
880
868
|
}), T2.listCodesMap = t3;
|
|
881
869
|
}
|
|
882
870
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
883
|
-
const
|
|
884
|
-
|
|
871
|
+
const h2 = C2 + "/dsc/commons/gets", P2 = _();
|
|
872
|
+
P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(h2, T2).then((t3) => {
|
|
885
873
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
886
|
-
const s4 = e3.customRules,
|
|
887
|
-
e3.rules =
|
|
874
|
+
const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
|
|
875
|
+
e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
|
|
888
876
|
}).catch((t3) => {
|
|
889
|
-
e3.canClick = true,
|
|
877
|
+
e3.canClick = true, i3(t3);
|
|
890
878
|
});
|
|
891
879
|
});
|
|
892
|
-
}(e2, s2,
|
|
880
|
+
}(e2, s2, o2);
|
|
893
881
|
}
|
|
894
882
|
return new Promise((e3, t2) => {
|
|
895
883
|
e3(true);
|
|
@@ -907,39 +895,39 @@ function Ce(e2) {
|
|
|
907
895
|
return null;
|
|
908
896
|
}
|
|
909
897
|
function Te(e2, t2) {
|
|
910
|
-
const s2 = e2.entity ? e2.entity : {},
|
|
911
|
-
return c.post(
|
|
898
|
+
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";
|
|
899
|
+
return c.post(i2, o2);
|
|
912
900
|
}
|
|
913
901
|
function ye(e2) {
|
|
914
902
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
915
903
|
return c.get(s2);
|
|
916
904
|
}
|
|
917
|
-
function
|
|
905
|
+
function he(e2) {
|
|
918
906
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
919
907
|
return c.delete(t2);
|
|
920
908
|
}
|
|
921
909
|
export {
|
|
922
|
-
|
|
910
|
+
q as dealAfterOperate,
|
|
923
911
|
te as dealCompleteTaskParam,
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
912
|
+
he as deleteChartCondition,
|
|
913
|
+
ae as doAddSigner,
|
|
914
|
+
ne as doAssign,
|
|
927
915
|
re as doCreateCopyTask,
|
|
928
916
|
X as doImportFinally,
|
|
929
917
|
de as doRemoveSigners,
|
|
930
|
-
|
|
918
|
+
le as doReturnTaskTo,
|
|
931
919
|
L as exportFormReport,
|
|
932
|
-
|
|
933
|
-
|
|
920
|
+
ie as getAdditionalParamMap,
|
|
921
|
+
ge as getFormData,
|
|
934
922
|
pe as getRemoveSigner,
|
|
935
|
-
|
|
923
|
+
$ as getSaveFormRequest,
|
|
936
924
|
F as getSaveFormRequestWithRow,
|
|
937
|
-
|
|
925
|
+
ue as getTaskInformitions,
|
|
938
926
|
me as isVisibleWorkflowButton,
|
|
939
927
|
Z as judgeDataNumber,
|
|
940
928
|
ye as listChartConditions,
|
|
941
929
|
K as refreshFormOrListPage,
|
|
942
|
-
|
|
930
|
+
fe as refreshPage,
|
|
943
931
|
Te as saveChartConditionBase,
|
|
944
932
|
j as standardEvents,
|
|
945
933
|
Y as updateValuesWhenCloseDialog
|