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