super-page-runtime 2.2.91-sti9 → 2.2.92-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/event-util.js +109 -108
- package/dist/es/components/runtime/utils/events/print-label.js +53 -40
- package/dist/es/components/runtime/utils/events/standard-event.js +125 -114
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +63 -60
- package/dist/es/components/runtime/utils/page-init-util.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +38 -39
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +172 -168
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +94 -90
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +49 -41
- package/package.json +2 -2
|
@@ -26,20 +26,20 @@ const j = { save: function(e2) {
|
|
|
26
26
|
const t2 = e2.pageContext.code + "_";
|
|
27
27
|
C.$emit(t2 + "export-pdf-report", e2);
|
|
28
28
|
}, submit: function(e2) {
|
|
29
|
-
return
|
|
29
|
+
return K(e2, false, "submit", "/dsc/commons/submits");
|
|
30
30
|
}, submitList: function(e2) {
|
|
31
|
-
return
|
|
31
|
+
return K(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
32
32
|
}, agree: function(e2) {
|
|
33
|
-
return
|
|
33
|
+
return K(e2, false, "agree", "/dsc/commons/approves");
|
|
34
34
|
}, agreeList: function(e2) {
|
|
35
|
-
return
|
|
35
|
+
return K(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
36
36
|
}, disagree: function(e2) {
|
|
37
|
-
return
|
|
37
|
+
return K(e2, false, "disagree", "/dsc/commons/refuses");
|
|
38
38
|
}, disagreeList: function(e2) {
|
|
39
|
-
return
|
|
39
|
+
return K(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
40
40
|
}, back: function(e2) {
|
|
41
41
|
const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
42
|
-
|
|
42
|
+
J(t2, e2.configureObj, s2, n2);
|
|
43
43
|
}, delete: function(e2) {
|
|
44
44
|
return function(e3) {
|
|
45
45
|
return new Promise((s2, i2) => {
|
|
@@ -126,11 +126,11 @@ const j = { save: function(e2) {
|
|
|
126
126
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
127
127
|
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
128
128
|
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
129
|
-
const m2 =
|
|
129
|
+
const m2 = Z(e3);
|
|
130
130
|
let f2;
|
|
131
131
|
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
|
|
132
132
|
let n2 = true;
|
|
133
|
-
s3 && (n2 =
|
|
133
|
+
s3 && (n2 = ee(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
134
134
|
}).catch((e4) => {
|
|
135
135
|
s2(e4);
|
|
136
136
|
});
|
|
@@ -142,29 +142,29 @@ const j = { save: function(e2) {
|
|
|
142
142
|
const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
143
143
|
let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
144
144
|
if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
145
|
-
const d2 =
|
|
145
|
+
const d2 = Z(e3), m2 = c.post(p2, d2);
|
|
146
146
|
m2 && m2.then((s3) => {
|
|
147
147
|
let n2 = true;
|
|
148
|
-
s3 && (n2 =
|
|
148
|
+
s3 && (n2 = ee(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
149
149
|
}).catch((e4) => {
|
|
150
150
|
s2(e4);
|
|
151
151
|
});
|
|
152
152
|
});
|
|
153
153
|
}(e2);
|
|
154
154
|
}, submitTask: function(e2) {
|
|
155
|
-
return
|
|
155
|
+
return te(e2, "SUBMIT");
|
|
156
156
|
}, approve: function(e2) {
|
|
157
|
-
return
|
|
157
|
+
return te(e2, "APPROVE");
|
|
158
158
|
}, refuse: function(e2) {
|
|
159
|
-
return
|
|
159
|
+
return te(e2, "REFUSE");
|
|
160
160
|
}, readed: function(e2) {
|
|
161
|
-
return
|
|
161
|
+
return te(e2, "READED");
|
|
162
162
|
}, agreement: function(e2) {
|
|
163
|
-
return
|
|
163
|
+
return te(e2, "AGREEMENT");
|
|
164
164
|
}, oppose: function(e2) {
|
|
165
|
-
return
|
|
165
|
+
return te(e2, "OPPOSE");
|
|
166
166
|
}, kiken: function(e2) {
|
|
167
|
-
return
|
|
167
|
+
return te(e2, "KIKEN");
|
|
168
168
|
}, assign: function(e2) {
|
|
169
169
|
return function(e3) {
|
|
170
170
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
@@ -182,23 +182,23 @@ const j = { save: function(e2) {
|
|
|
182
182
|
}(e2);
|
|
183
183
|
}, drawTask: function(e2) {
|
|
184
184
|
return function(e3) {
|
|
185
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 =
|
|
186
|
-
return
|
|
185
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = Z(e3);
|
|
186
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
187
187
|
}(e2);
|
|
188
188
|
}, abandonReceive: function(e2) {
|
|
189
189
|
return function(e3) {
|
|
190
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 =
|
|
191
|
-
return
|
|
190
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = Z(e3);
|
|
191
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
192
192
|
}(e2);
|
|
193
193
|
}, returnToPreviousTask: function(e2) {
|
|
194
194
|
return function(e3) {
|
|
195
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 =
|
|
196
|
-
return
|
|
195
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = Z(e3);
|
|
196
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
197
197
|
}(e2);
|
|
198
198
|
}, endInstance: function(e2) {
|
|
199
199
|
return function(e3) {
|
|
200
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 =
|
|
201
|
-
return
|
|
200
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = Z(e3);
|
|
201
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
202
202
|
}(e2);
|
|
203
203
|
}, returnTaskTo: function(e2) {
|
|
204
204
|
return function(e3) {
|
|
@@ -212,8 +212,8 @@ const j = { save: function(e2) {
|
|
|
212
212
|
}(e2);
|
|
213
213
|
}, retrieveTask: function(e2) {
|
|
214
214
|
return function(e3) {
|
|
215
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 =
|
|
216
|
-
return
|
|
215
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = Z(e3);
|
|
216
|
+
return re(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
217
217
|
}(e2);
|
|
218
218
|
}, viewDetail: function(e2) {
|
|
219
219
|
}, lineEditCreate: function(e2) {
|
|
@@ -235,7 +235,7 @@ const j = { save: function(e2) {
|
|
|
235
235
|
}, resetCharts: function(t2) {
|
|
236
236
|
var _a, _b;
|
|
237
237
|
const s2 = t2.pageContext;
|
|
238
|
-
s2.entity.data
|
|
238
|
+
Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, D(t2);
|
|
239
239
|
}, exportCharts: function(e2) {
|
|
240
240
|
!function(e3) {
|
|
241
241
|
const t2 = e3.pageContext, s2 = t2.allChartUuids;
|
|
@@ -289,7 +289,7 @@ function L(e2, s2, o2, i2) {
|
|
|
289
289
|
var _a;
|
|
290
290
|
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = E.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: k(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
291
291
|
u2 && (C2.logSettingText = u2.join(""));
|
|
292
|
-
const y2 =
|
|
292
|
+
const y2 = oe(e2);
|
|
293
293
|
let h2;
|
|
294
294
|
C2.additionalParamMap = y2, h2 = i2 ? function(e3, t2, s3, o3) {
|
|
295
295
|
return new Promise((i3, a3) => {
|
|
@@ -350,13 +350,13 @@ function V(e2, n2, o2, i2, a2, r2, c2) {
|
|
|
350
350
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
351
351
|
const g2 = n2.props.base.conversionCodes;
|
|
352
352
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
353
|
-
const b2 =
|
|
353
|
+
const b2 = be(n2);
|
|
354
354
|
b2 && (f2.autoSetValueData = b2);
|
|
355
355
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
356
356
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
357
357
|
const T2 = e2.beanName;
|
|
358
358
|
T2 && (f2.beanName = T2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
359
|
-
const y2 =
|
|
359
|
+
const y2 = oe(e2);
|
|
360
360
|
return f2.additionalParamMap = y2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
361
361
|
}
|
|
362
362
|
function F(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
@@ -373,7 +373,7 @@ function $(e2, t2, s2, n2, o2, i2) {
|
|
|
373
373
|
}
|
|
374
374
|
function q(t2, s2, n2, o2, i2) {
|
|
375
375
|
const a2 = H(t2, s2, i2);
|
|
376
|
-
a2 && "list" === a2
|
|
376
|
+
if (a2 && "list" === a2) !function(t3, s3, n3, o3) {
|
|
377
377
|
let i3 = s3.props.base.successOperation;
|
|
378
378
|
const a3 = s3.props.base.isNeedValueMapping, r2 = h(t3, s3);
|
|
379
379
|
i3 || (i3 = "refresh");
|
|
@@ -384,29 +384,40 @@ function q(t2, s2, n2, o2, i2) {
|
|
|
384
384
|
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
385
385
|
const o4 = e(t3.entity.page);
|
|
386
386
|
let i4 = n3;
|
|
387
|
-
i4 || (i4 = {}), Object.assign(o4, i4),
|
|
387
|
+
i4 || (i4 = {}), Object.assign(o4, i4), J(t3, s3, o4, a3);
|
|
388
388
|
}
|
|
389
389
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
390
|
-
}(t2, s2, n2, o2), t2.canClick = true
|
|
390
|
+
}(t2, s2, n2, o2), t2.canClick = true;
|
|
391
|
+
else if (a2 && "form" === a2) !function(e2, t3, s3, n3) {
|
|
391
392
|
if (s3) {
|
|
392
393
|
const n4 = s3;
|
|
393
394
|
let o3;
|
|
394
395
|
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}
|
|
401
|
-
}
|
|
396
|
+
G(e2, t3, { ...o3, ...e2.entity.page });
|
|
397
|
+
} else {
|
|
398
|
+
const s4 = t3.props.base.successOperation;
|
|
399
|
+
if (s4 && null !== s4) {
|
|
400
|
+
G(e2, t3, { ...e2.entity.page });
|
|
401
|
+
} else e2.canClick = true;
|
|
402
|
+
}
|
|
402
403
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
403
|
-
}(t2, s2, n2, o2)
|
|
404
|
+
}(t2, s2, n2, o2);
|
|
405
|
+
else {
|
|
406
|
+
const e2 = s2.props.base.successOperation;
|
|
407
|
+
e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
|
|
408
|
+
}
|
|
404
409
|
}
|
|
405
410
|
function H(e2, t2, s2) {
|
|
406
411
|
let n2;
|
|
407
412
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
408
413
|
}
|
|
409
|
-
function G(e2, t2, s2
|
|
414
|
+
function G(e2, t2, s2) {
|
|
415
|
+
const n2 = t2.props.base.successOperation;
|
|
416
|
+
if (!n2 || null === n2) return;
|
|
417
|
+
const o2 = t2.props.base.isNeedValueMapping;
|
|
418
|
+
"noOperation" === n2 ? (s2 && (e2.entity.data = s2), e2.canClick = true) : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? me(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (J(e2, t2, s2, o2), e2.canClick = true);
|
|
419
|
+
}
|
|
420
|
+
function J(e2, t2, s2, n2) {
|
|
410
421
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
411
422
|
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
412
423
|
else {
|
|
@@ -414,7 +425,7 @@ function G(e2, t2, s2, n2) {
|
|
|
414
425
|
C.$emit(r2 + "close-dialog", { isNeedValueMapping: a2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: i2, jumpMode: o2 });
|
|
415
426
|
}
|
|
416
427
|
}
|
|
417
|
-
function
|
|
428
|
+
function Y(e2, t2, s2, n2, o2) {
|
|
418
429
|
var _a;
|
|
419
430
|
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
420
431
|
const i2 = e2.tableName;
|
|
@@ -430,7 +441,7 @@ function J(e2, t2, s2, n2, o2) {
|
|
|
430
441
|
}
|
|
431
442
|
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
|
|
432
443
|
}
|
|
433
|
-
function
|
|
444
|
+
function z(e2, t2, s2, n2) {
|
|
434
445
|
var _a;
|
|
435
446
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
436
447
|
let o2 = n2;
|
|
@@ -444,11 +455,11 @@ function Y(e2, t2, s2, n2) {
|
|
|
444
455
|
}
|
|
445
456
|
} else if (i2 && "form" === i2) {
|
|
446
457
|
const t3 = e2.entity.data;
|
|
447
|
-
|
|
458
|
+
me(e2, t3.ID ? t3.ID : t3.id);
|
|
448
459
|
}
|
|
449
460
|
}
|
|
450
461
|
}
|
|
451
|
-
function
|
|
462
|
+
function K(e2, t2, s2, i2) {
|
|
452
463
|
return new Promise((r2, l2) => {
|
|
453
464
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
454
465
|
let T2 = false;
|
|
@@ -482,7 +493,7 @@ function z(e2, t2, s2, i2) {
|
|
|
482
493
|
}) : l2("request不存在");
|
|
483
494
|
});
|
|
484
495
|
}
|
|
485
|
-
function
|
|
496
|
+
function Q(e2, s2) {
|
|
486
497
|
var _a;
|
|
487
498
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = A(i2, d2), f2 = new FormData();
|
|
488
499
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -490,7 +501,7 @@ function K(e2, s2) {
|
|
|
490
501
|
g2 && f2.append("importDuplicateRule", g2);
|
|
491
502
|
const b2 = i2.judgeHeavyList;
|
|
492
503
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
493
|
-
const C2 =
|
|
504
|
+
const C2 = be(a2);
|
|
494
505
|
C2 && f2.append("autoSetValueData", C2);
|
|
495
506
|
const T2 = i2.formNoRuleCode;
|
|
496
507
|
T2 && f2.append("formNoRuleCode", T2);
|
|
@@ -502,7 +513,7 @@ function K(e2, s2) {
|
|
|
502
513
|
null != w2 && f2.append("isWorkflowEntity", w2 + "");
|
|
503
514
|
const R2 = k(a2, i2);
|
|
504
515
|
R2 && f2.append("functionCode", R2);
|
|
505
|
-
const N2 =
|
|
516
|
+
const N2 = oe(i2);
|
|
506
517
|
f2.append("additionalParamMapStr", JSON.stringify(N2));
|
|
507
518
|
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
508
519
|
f2.append("isPermission", M2 + "");
|
|
@@ -519,7 +530,7 @@ function K(e2, s2) {
|
|
|
519
530
|
}).catch((e3) => {
|
|
520
531
|
});
|
|
521
532
|
}
|
|
522
|
-
function
|
|
533
|
+
function X(e2, t2) {
|
|
523
534
|
const s2 = e2.props.base;
|
|
524
535
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
525
536
|
if ("one" === s2.conditionsForExecution) {
|
|
@@ -528,7 +539,7 @@ function Q(e2, t2) {
|
|
|
528
539
|
}
|
|
529
540
|
return true;
|
|
530
541
|
}
|
|
531
|
-
function
|
|
542
|
+
function Z(e2) {
|
|
532
543
|
var _a;
|
|
533
544
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
534
545
|
let r2 = k(n2, t2);
|
|
@@ -537,21 +548,21 @@ function X(e2) {
|
|
|
537
548
|
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);
|
|
538
549
|
const u2 = n2.props.base.conversionCodes;
|
|
539
550
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
540
|
-
const l2 =
|
|
551
|
+
const l2 = be(n2);
|
|
541
552
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
542
553
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
543
554
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
544
|
-
const d2 =
|
|
555
|
+
const d2 = oe(t2);
|
|
545
556
|
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]));
|
|
546
557
|
const m2 = n2.props.base.successOperation;
|
|
547
558
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
548
559
|
}
|
|
549
|
-
function
|
|
560
|
+
function ee(e2, t2, s2, n2, o2) {
|
|
550
561
|
const i2 = s2.code, a2 = s2.version;
|
|
551
562
|
let r2;
|
|
552
563
|
if (e2) {
|
|
553
564
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
554
|
-
const s3 =
|
|
565
|
+
const s3 = oe(t3);
|
|
555
566
|
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
556
567
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
557
568
|
const o3 = e2.completeTaskResult;
|
|
@@ -570,7 +581,7 @@ function Z(e2, t2, s2, n2, o2) {
|
|
|
570
581
|
}
|
|
571
582
|
return n2 && (n2.operationResult = o2), t2 || q(s2, n2.configureObj, e2, null, false), true;
|
|
572
583
|
}
|
|
573
|
-
async function
|
|
584
|
+
async function te(e2, t2) {
|
|
574
585
|
const s2 = await function(e3) {
|
|
575
586
|
return new Promise((t3, s3) => {
|
|
576
587
|
var _a, _b, _c, _d;
|
|
@@ -595,30 +606,30 @@ async function ee(e2, t2) {
|
|
|
595
606
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
596
607
|
let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
597
608
|
if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
598
|
-
const g2 =
|
|
609
|
+
const g2 = Z(e2);
|
|
599
610
|
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
600
611
|
c.post(f2, g2).then((s3) => {
|
|
601
612
|
let n2 = true;
|
|
602
|
-
s3 && (n2 =
|
|
613
|
+
s3 && (n2 = ee(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
603
614
|
}).catch((e3) => {
|
|
604
615
|
a2(e3);
|
|
605
616
|
});
|
|
606
617
|
} else i2(true);
|
|
607
618
|
});
|
|
608
619
|
}
|
|
609
|
-
function
|
|
620
|
+
function se(e2, t2) {
|
|
610
621
|
if (t2) {
|
|
611
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 =
|
|
612
|
-
c2.assigneeId = r2,
|
|
622
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = Z(e2);
|
|
623
|
+
c2.assigneeId = r2, re(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
613
624
|
P(s2, o2);
|
|
614
625
|
});
|
|
615
626
|
}
|
|
616
627
|
}
|
|
617
|
-
function
|
|
618
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 =
|
|
628
|
+
function ne(e2) {
|
|
629
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, i2 = oe(t2), a2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: a2, entity: s2, additionalParamMap: i2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
619
630
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
620
631
|
}
|
|
621
|
-
function
|
|
632
|
+
function oe(t2) {
|
|
622
633
|
if (t2.entity) {
|
|
623
634
|
let s2 = e(t2.entity.page);
|
|
624
635
|
s2 || (s2 = {});
|
|
@@ -626,12 +637,12 @@ function ne(t2) {
|
|
|
626
637
|
return n2 && Object.assign(s2, n2), s2;
|
|
627
638
|
}
|
|
628
639
|
}
|
|
629
|
-
function
|
|
640
|
+
function ie(e2, t2) {
|
|
630
641
|
if (t2) {
|
|
631
642
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
632
643
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
633
644
|
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
634
|
-
const d2 =
|
|
645
|
+
const d2 = ne(e2);
|
|
635
646
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
636
647
|
const m2 = c.post(p2, d2);
|
|
637
648
|
m2 && m2.then((e3) => {
|
|
@@ -639,7 +650,7 @@ function oe(e2, t2) {
|
|
|
639
650
|
});
|
|
640
651
|
}
|
|
641
652
|
}
|
|
642
|
-
async function
|
|
653
|
+
async function ae(e2, t2) {
|
|
643
654
|
if (t2) {
|
|
644
655
|
const s2 = await function(e3) {
|
|
645
656
|
return new Promise((t3, s3) => {
|
|
@@ -663,7 +674,7 @@ async function ie(e2, t2) {
|
|
|
663
674
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
664
675
|
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons/copies";
|
|
665
676
|
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
666
|
-
const m2 =
|
|
677
|
+
const m2 = ne(e2);
|
|
667
678
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
668
679
|
const f2 = c.post(d2, m2);
|
|
669
680
|
f2 && f2.then((e3) => {
|
|
@@ -672,45 +683,45 @@ async function ie(e2, t2) {
|
|
|
672
683
|
}
|
|
673
684
|
}
|
|
674
685
|
}
|
|
675
|
-
function
|
|
686
|
+
function re(e2, t2, s2, n2) {
|
|
676
687
|
return new Promise((i2, a2) => {
|
|
677
688
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
678
689
|
if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
679
690
|
const m2 = c.post(s2, t2);
|
|
680
691
|
m2 && m2.then((t3) => {
|
|
681
692
|
let s3 = true;
|
|
682
|
-
t3 && (s3 =
|
|
693
|
+
t3 && (s3 = ee(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
683
694
|
}).catch((e3) => {
|
|
684
695
|
a2(e3);
|
|
685
696
|
});
|
|
686
697
|
});
|
|
687
698
|
}
|
|
688
|
-
function
|
|
699
|
+
function ce(e2) {
|
|
689
700
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
|
|
690
701
|
let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
691
702
|
if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
692
|
-
const p2 = t2.code, d2 =
|
|
703
|
+
const p2 = t2.code, d2 = oe(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
693
704
|
return c.post(r2, m2);
|
|
694
705
|
}
|
|
695
|
-
function
|
|
696
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 =
|
|
697
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
706
|
+
function ue(e2, t2) {
|
|
707
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = Z(e2);
|
|
708
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), re(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
698
709
|
P(s2, o2);
|
|
699
710
|
});
|
|
700
711
|
}
|
|
701
|
-
function
|
|
712
|
+
function le(e2) {
|
|
702
713
|
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
|
|
703
714
|
let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
704
|
-
const r2 =
|
|
715
|
+
const r2 = Z(e2);
|
|
705
716
|
if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
|
|
706
717
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
707
718
|
}
|
|
708
|
-
function
|
|
719
|
+
function pe(e2, t2) {
|
|
709
720
|
if (t2) {
|
|
710
721
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
711
722
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
712
723
|
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
713
|
-
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 =
|
|
724
|
+
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = Z(e2);
|
|
714
725
|
m2.ids = d2;
|
|
715
726
|
const f2 = c.post(p2, m2);
|
|
716
727
|
f2 && f2.then((e3) => {
|
|
@@ -718,7 +729,7 @@ function le(e2, t2) {
|
|
|
718
729
|
});
|
|
719
730
|
}
|
|
720
731
|
}
|
|
721
|
-
function
|
|
732
|
+
function de(e2, t2, s2) {
|
|
722
733
|
let n2 = false;
|
|
723
734
|
return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
|
|
724
735
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -780,18 +791,18 @@ function pe(e2, t2, s2) {
|
|
|
780
791
|
return false;
|
|
781
792
|
}(t2))), n2;
|
|
782
793
|
}
|
|
783
|
-
function
|
|
784
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
794
|
+
function me(e2, t2) {
|
|
795
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, fe(e2, t2).then((t3) => {
|
|
785
796
|
e2.isRefresh = true;
|
|
786
797
|
});
|
|
787
798
|
}
|
|
788
|
-
function
|
|
799
|
+
function fe(e2, s2, o2) {
|
|
789
800
|
const i2 = e2.pageType;
|
|
790
801
|
if (i2 && "form" === i2) {
|
|
791
802
|
e2.canClick = false;
|
|
792
803
|
return t(e2) ? function(e3, t2, s3) {
|
|
793
804
|
return new Promise((o3, i3) => {
|
|
794
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
805
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = oe(e3);
|
|
795
806
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
796
807
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
797
808
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
@@ -802,10 +813,10 @@ function me(e2, s2, o2) {
|
|
|
802
813
|
t3[s4] = s4;
|
|
803
814
|
}), C2.listCodesMap = t3;
|
|
804
815
|
}
|
|
805
|
-
f2 && (C2.ids =
|
|
816
|
+
f2 && (C2.ids = ge(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
806
817
|
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = _();
|
|
807
818
|
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
808
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap,
|
|
819
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, ee(t3, true, e3), e3.workflowRules = O(e3);
|
|
809
820
|
const s4 = e3.pageType;
|
|
810
821
|
s4 && "form" === s4 && function(e4) {
|
|
811
822
|
(function(e5) {
|
|
@@ -844,11 +855,11 @@ function me(e2, s2, o2) {
|
|
|
844
855
|
});
|
|
845
856
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
846
857
|
return new Promise((o3, i3) => {
|
|
847
|
-
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
858
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = oe(e3);
|
|
848
859
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
849
860
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
850
861
|
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
851
|
-
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids =
|
|
862
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = ge(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
852
863
|
const t3 = {};
|
|
853
864
|
e3.tableUuids.forEach((e4) => {
|
|
854
865
|
const s4 = r(u2, l2, e4);
|
|
@@ -871,10 +882,10 @@ function me(e2, s2, o2) {
|
|
|
871
882
|
e3(true);
|
|
872
883
|
});
|
|
873
884
|
}
|
|
874
|
-
function
|
|
885
|
+
function ge(e2) {
|
|
875
886
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
876
887
|
}
|
|
877
|
-
function
|
|
888
|
+
function be(e2) {
|
|
878
889
|
const t2 = e2.props.setValueList;
|
|
879
890
|
if (t2) {
|
|
880
891
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -882,41 +893,41 @@ function ge(e2) {
|
|
|
882
893
|
}
|
|
883
894
|
return null;
|
|
884
895
|
}
|
|
885
|
-
function
|
|
896
|
+
function Ce(e2, t2) {
|
|
886
897
|
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";
|
|
887
898
|
return c.post(i2, o2);
|
|
888
899
|
}
|
|
889
|
-
function
|
|
900
|
+
function Te(e2) {
|
|
890
901
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
891
902
|
return c.get(s2);
|
|
892
903
|
}
|
|
893
|
-
function
|
|
904
|
+
function ye(e2) {
|
|
894
905
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
895
906
|
return c.delete(t2);
|
|
896
907
|
}
|
|
897
908
|
export {
|
|
898
909
|
q as dealAfterOperate,
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
910
|
+
ee as dealCompleteTaskParam,
|
|
911
|
+
ye as deleteChartCondition,
|
|
912
|
+
ie as doAddSigner,
|
|
913
|
+
se as doAssign,
|
|
914
|
+
ae as doCreateCopyTask,
|
|
915
|
+
Q as doImportFinally,
|
|
916
|
+
pe as doRemoveSigners,
|
|
917
|
+
ue as doReturnTaskTo,
|
|
907
918
|
L as exportFormReport,
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
919
|
+
oe as getAdditionalParamMap,
|
|
920
|
+
fe as getFormData,
|
|
921
|
+
le as getRemoveSigner,
|
|
911
922
|
$ as getSaveFormRequest,
|
|
912
923
|
F as getSaveFormRequestWithRow,
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
924
|
+
ce as getTaskInformitions,
|
|
925
|
+
de as isVisibleWorkflowButton,
|
|
926
|
+
X as judgeDataNumber,
|
|
927
|
+
Te as listChartConditions,
|
|
928
|
+
z as refreshFormOrListPage,
|
|
929
|
+
me as refreshPage,
|
|
930
|
+
Ce as saveChartConditionBase,
|
|
920
931
|
j as standardEvents,
|
|
921
|
-
|
|
932
|
+
Y as updateValuesWhenCloseDialog
|
|
922
933
|
};
|
|
@@ -161,3 +161,4 @@ export declare function isPromise(p: any): boolean;
|
|
|
161
161
|
export declare function decomposeVariable(variable: string): string[];
|
|
162
162
|
export declare function getModelFieldFromPageContext(fields: string[], pageContext: PageContext): any;
|
|
163
163
|
export declare function isNumberDataType(dataType: string): boolean;
|
|
164
|
+
export declare function isDateDataType(dataType: string): boolean;
|