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