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