super-page-runtime 2.3.14-sit3 → 2.3.14
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 +50 -50
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +57 -57
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +89 -72
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +92 -109
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +18 -18
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +18 -19
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +42 -53
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +38 -37
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -3
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -17
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.d.ts +0 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +182 -185
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
- package/dist/es/components/runtime/utils/ai-chat-util.js +0 -16
|
@@ -200,22 +200,22 @@ const D = { save: function(e2) {
|
|
|
200
200
|
}, drawTask: function(e2) {
|
|
201
201
|
return function(e3) {
|
|
202
202
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = te(e3);
|
|
203
|
-
return
|
|
203
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
204
204
|
}(e2);
|
|
205
205
|
}, abandonReceive: function(e2) {
|
|
206
206
|
return function(e3) {
|
|
207
207
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = te(e3);
|
|
208
|
-
return
|
|
208
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
209
209
|
}(e2);
|
|
210
210
|
}, returnToPreviousTask: function(e2) {
|
|
211
211
|
return function(e3) {
|
|
212
212
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = te(e3);
|
|
213
|
-
return
|
|
213
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
214
214
|
}(e2);
|
|
215
215
|
}, endInstance: function(e2) {
|
|
216
216
|
return function(e3) {
|
|
217
217
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = te(e3);
|
|
218
|
-
return
|
|
218
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
219
219
|
}(e2);
|
|
220
220
|
}, returnTaskTo: function(e2) {
|
|
221
221
|
return function(e3) {
|
|
@@ -230,7 +230,7 @@ const D = { save: function(e2) {
|
|
|
230
230
|
}, retrieveTask: function(e2) {
|
|
231
231
|
return function(e3) {
|
|
232
232
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = te(e3);
|
|
233
|
-
return
|
|
233
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
234
234
|
}(e2);
|
|
235
235
|
}, extractWorkflow: function(e2) {
|
|
236
236
|
return function(e3) {
|
|
@@ -239,7 +239,7 @@ const D = { save: function(e2) {
|
|
|
239
239
|
const i2 = te(e3);
|
|
240
240
|
if (t2.completeTaskParam) {
|
|
241
241
|
const s3 = [];
|
|
242
|
-
e3._value.loginName && s3.push(e3._value.loginName), i2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: s3 };
|
|
242
|
+
e3._value.loginName && s3.push(e3._value.loginName), i2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: s3, customTaskTitle: re(e3) };
|
|
243
243
|
}
|
|
244
244
|
return new Promise((t3, s3) => {
|
|
245
245
|
const n2 = e3.pageContext, r2 = n2.systemCode, p2 = n2.backendUrl;
|
|
@@ -256,17 +256,17 @@ const D = { save: function(e2) {
|
|
|
256
256
|
}, cancelExtractWorkflow: function(e2) {
|
|
257
257
|
return function(e3) {
|
|
258
258
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = te(e3);
|
|
259
|
-
return
|
|
259
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
260
260
|
}(e2);
|
|
261
261
|
}, approveExtractWorkflow: function(e2) {
|
|
262
262
|
return function(e3) {
|
|
263
263
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = te(e3);
|
|
264
|
-
return
|
|
264
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
265
265
|
}(e2);
|
|
266
266
|
}, refuseExtractWorkflow: function(e2) {
|
|
267
267
|
return function(e3) {
|
|
268
268
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = te(e3);
|
|
269
|
-
return
|
|
269
|
+
return pe(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
270
270
|
}(e2);
|
|
271
271
|
}, viewDetail: function(e2) {
|
|
272
272
|
}, lineEditCreate: function(e2) {
|
|
@@ -279,7 +279,8 @@ const D = { save: function(e2) {
|
|
|
279
279
|
let t2 = null;
|
|
280
280
|
try {
|
|
281
281
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
282
|
-
} catch (
|
|
282
|
+
} catch (t3) {
|
|
283
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
283
284
|
}
|
|
284
285
|
A.printLabel(e3, t2);
|
|
285
286
|
}(e2);
|
|
@@ -311,7 +312,7 @@ const D = { save: function(e2) {
|
|
|
311
312
|
let c2, u2 = t2.label;
|
|
312
313
|
u2 || (u2 = t2.code);
|
|
313
314
|
c2 = u2;
|
|
314
|
-
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 =
|
|
315
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = ce(t2);
|
|
315
316
|
l2.additionalParamMap = p2, l2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", l2.watermark = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "";
|
|
316
317
|
const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
317
318
|
B();
|
|
@@ -346,7 +347,7 @@ function L(e2, s2, o2, a2) {
|
|
|
346
347
|
e2.clickUuid = s2.uuid;
|
|
347
348
|
const i2 = 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 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: S(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
348
349
|
u2 && (b2.logSettingText = u2.join(""));
|
|
349
|
-
const T2 =
|
|
350
|
+
const T2 = ce(e2);
|
|
350
351
|
let k2;
|
|
351
352
|
b2.additionalParamMap = T2, b2.isShowWatermark = void 0 === ((_c = (_b = s2.props) == null ? void 0 : _b.watermark) == null ? void 0 : _c.isShowWatermark) ? "true" : ((_e = (_d = s2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.isShowWatermark) + "", b2.watermark = ((_g = (_f = s2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content) && ((_i = (_h = s2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content.length) > 0 ? (_k = (_j = s2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.join("-~") : "", k2 = a2 ? function(e3, t2, s3, o3) {
|
|
352
353
|
return new Promise((a3, i3) => {
|
|
@@ -408,13 +409,13 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
|
408
409
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
409
410
|
const g2 = n2.props.base.conversionCodes;
|
|
410
411
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
411
|
-
const C2 =
|
|
412
|
+
const C2 = ye(n2);
|
|
412
413
|
C2 && (f2.autoSetValueData = C2);
|
|
413
414
|
const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
414
415
|
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
415
416
|
const T2 = e2.beanName;
|
|
416
417
|
T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
417
|
-
const w2 =
|
|
418
|
+
const w2 = ce(e2);
|
|
418
419
|
return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
419
420
|
}
|
|
420
421
|
function $(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
@@ -435,11 +436,10 @@ function H(t2, s2, n2, o2, a2) {
|
|
|
435
436
|
let a3 = s3.props.base.successOperation;
|
|
436
437
|
const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
|
|
437
438
|
a3 || K.includes(s3.name) || (a3 = "refresh");
|
|
438
|
-
if ("refresh" === a3) {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
439
|
+
if ("refresh" === a3) if (r2) {
|
|
440
|
+
b(t3, r2).refresh();
|
|
441
|
+
} else console.error("tableUuid is empty");
|
|
442
|
+
else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
443
443
|
const o4 = e(t3.entity.page);
|
|
444
444
|
let a4 = n3;
|
|
445
445
|
a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
|
|
@@ -473,7 +473,7 @@ function J(e2, t2, s2) {
|
|
|
473
473
|
const n2 = t2.props.base.successOperation;
|
|
474
474
|
if (!n2 || null === n2) return;
|
|
475
475
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
476
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
476
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? Te(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (Y(e2, t2, s2, o2), e2.canClick = true);
|
|
477
477
|
}
|
|
478
478
|
function Y(e2, t2, s2, n2) {
|
|
479
479
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -511,10 +511,10 @@ function X(e2, t2, s2, n2) {
|
|
|
511
511
|
const s3 = y(e2, t2);
|
|
512
512
|
if (s3) {
|
|
513
513
|
b(e2, s3).refresh();
|
|
514
|
-
}
|
|
514
|
+
} else console.error("tableUuid is empty");
|
|
515
515
|
} else if (a2 && "form" === a2) {
|
|
516
516
|
const t3 = e2.entity.data;
|
|
517
|
-
|
|
517
|
+
Te(e2, t3.ID ? t3.ID : t3.id);
|
|
518
518
|
}
|
|
519
519
|
}
|
|
520
520
|
}
|
|
@@ -560,7 +560,7 @@ function Z(e2, s2) {
|
|
|
560
560
|
g2 && f2.append("importDuplicateRule", g2);
|
|
561
561
|
const C2 = a2.judgeHeavyList;
|
|
562
562
|
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
563
|
-
const b2 =
|
|
563
|
+
const b2 = ye(i2);
|
|
564
564
|
b2 && f2.append("autoSetValueData", b2);
|
|
565
565
|
const T2 = a2.formNoRuleCode;
|
|
566
566
|
T2 && f2.append("formNoRuleCode", T2);
|
|
@@ -572,7 +572,7 @@ function Z(e2, s2) {
|
|
|
572
572
|
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
573
573
|
const P2 = S(i2, a2);
|
|
574
574
|
P2 && f2.append("functionCode", P2);
|
|
575
|
-
const R2 =
|
|
575
|
+
const R2 = ce(a2);
|
|
576
576
|
f2.append("additionalParamMapStr", JSON.stringify(R2));
|
|
577
577
|
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
578
578
|
f2.append("isPermission", M2 + "");
|
|
@@ -607,12 +607,12 @@ function te(e2) {
|
|
|
607
607
|
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);
|
|
608
608
|
const u2 = n2.props.base.conversionCodes;
|
|
609
609
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
610
|
-
const l2 =
|
|
610
|
+
const l2 = ye(n2);
|
|
611
611
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
612
612
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
613
613
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
614
|
-
const d2 =
|
|
615
|
-
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
|
|
614
|
+
const d2 = ce(t2);
|
|
615
|
+
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids ? c2.ids = [d2.ids] : console.error("ids参数类型错误"));
|
|
616
616
|
const m2 = n2.props.base.successOperation;
|
|
617
617
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
618
618
|
}
|
|
@@ -621,7 +621,7 @@ function se(e2, t2, s2, n2, o2) {
|
|
|
621
621
|
let r2;
|
|
622
622
|
if (e2) {
|
|
623
623
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
624
|
-
const s3 =
|
|
624
|
+
const s3 = ce(t3);
|
|
625
625
|
e3 && s3 && C(s3._t_ + "_id", e3);
|
|
626
626
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
627
627
|
const o3 = e2.completeTaskResult;
|
|
@@ -680,16 +680,34 @@ function oe(e2) {
|
|
|
680
680
|
function ae(e2, t2) {
|
|
681
681
|
if (t2) {
|
|
682
682
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = te(e2);
|
|
683
|
-
c2.assigneeId = r2,
|
|
683
|
+
c2.assigneeId = r2, pe(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
684
684
|
h(s2, o2);
|
|
685
685
|
});
|
|
686
686
|
}
|
|
687
687
|
}
|
|
688
688
|
function ie(e2) {
|
|
689
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 =
|
|
690
|
-
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
689
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = ce(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: o2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
690
|
+
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2.completeTaskParam.customTaskTitle = re(e2), r2;
|
|
691
|
+
}
|
|
692
|
+
function re(e2) {
|
|
693
|
+
var _a, _b, _c;
|
|
694
|
+
let t2 = null;
|
|
695
|
+
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++) {
|
|
696
|
+
const n2 = e2.configureObj.props.task.title[s2];
|
|
697
|
+
if (n2.config) {
|
|
698
|
+
if (!(((_c = n2.conditions) == null ? void 0 : _c.length) > 0)) {
|
|
699
|
+
t2 = n2.config;
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
if (I(e2.pageContext, n2.conditions)) {
|
|
703
|
+
t2 = n2.config;
|
|
704
|
+
break;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
return t2;
|
|
691
709
|
}
|
|
692
|
-
function
|
|
710
|
+
function ce(t2) {
|
|
693
711
|
if (t2.entity) {
|
|
694
712
|
let s2 = e(t2.entity.page);
|
|
695
713
|
s2 || (s2 = {});
|
|
@@ -697,7 +715,7 @@ function re(t2) {
|
|
|
697
715
|
return n2 && Object.assign(s2, n2), s2;
|
|
698
716
|
}
|
|
699
717
|
}
|
|
700
|
-
function
|
|
718
|
+
function ue(e2, t2) {
|
|
701
719
|
if (t2) {
|
|
702
720
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
703
721
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
@@ -710,7 +728,7 @@ function ce(e2, t2) {
|
|
|
710
728
|
});
|
|
711
729
|
}
|
|
712
730
|
}
|
|
713
|
-
async function
|
|
731
|
+
async function le(e2, t2) {
|
|
714
732
|
if (t2) {
|
|
715
733
|
const s2 = await function(e3) {
|
|
716
734
|
return new Promise((t3, s3) => {
|
|
@@ -744,7 +762,7 @@ async function ue(e2, t2) {
|
|
|
744
762
|
}
|
|
745
763
|
}
|
|
746
764
|
}
|
|
747
|
-
async function
|
|
765
|
+
async function pe(e2, t2, s2, n2) {
|
|
748
766
|
const a2 = await oe(e2);
|
|
749
767
|
return new Promise((i2, r2) => {
|
|
750
768
|
var _a;
|
|
@@ -765,27 +783,27 @@ async function le(e2, t2, s2, n2) {
|
|
|
765
783
|
} else i2(true);
|
|
766
784
|
});
|
|
767
785
|
}
|
|
768
|
-
function
|
|
786
|
+
function de(e2) {
|
|
769
787
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
770
788
|
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
771
789
|
if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
772
|
-
const p2 = t2.code, d2 =
|
|
790
|
+
const p2 = t2.code, d2 = ce(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
773
791
|
return c.post(r2, m2);
|
|
774
792
|
}
|
|
775
|
-
function
|
|
793
|
+
function me(e2, t2) {
|
|
776
794
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
|
|
777
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
795
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), pe(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
778
796
|
h(s2, o2);
|
|
779
797
|
});
|
|
780
798
|
}
|
|
781
|
-
function
|
|
799
|
+
function fe(e2) {
|
|
782
800
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
783
801
|
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
784
802
|
const r2 = te(e2);
|
|
785
803
|
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
786
804
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
787
805
|
}
|
|
788
|
-
function
|
|
806
|
+
function ge(e2, t2) {
|
|
789
807
|
if (t2) {
|
|
790
808
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
791
809
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -798,7 +816,7 @@ function fe(e2, t2) {
|
|
|
798
816
|
});
|
|
799
817
|
}
|
|
800
818
|
}
|
|
801
|
-
function
|
|
819
|
+
function Ce(e2, t2, s2, n2, o2) {
|
|
802
820
|
let a2 = false;
|
|
803
821
|
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
804
822
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -855,8 +873,7 @@ function ge(e2, t2, s2, n2, o2) {
|
|
|
855
873
|
return false;
|
|
856
874
|
}(t2) : "extractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
|
|
857
875
|
var _a;
|
|
858
|
-
const n3 = d();
|
|
859
|
-
const o3 = n3 ? n3.loginName : null;
|
|
876
|
+
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
860
877
|
if (e3 == null ? void 0 : e3.processState) {
|
|
861
878
|
if (((_a = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
|
|
862
879
|
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;
|
|
@@ -866,7 +883,7 @@ function ge(e2, t2, s2, n2, o2) {
|
|
|
866
883
|
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
867
884
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
868
885
|
return false;
|
|
869
|
-
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 =
|
|
886
|
+
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = be(t2) : function(e3, t3) {
|
|
870
887
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
871
888
|
const t4 = e4;
|
|
872
889
|
let s3 = true;
|
|
@@ -878,32 +895,32 @@ function ge(e2, t2, s2, n2, o2) {
|
|
|
878
895
|
return false;
|
|
879
896
|
}(t2))), a2;
|
|
880
897
|
}
|
|
881
|
-
function
|
|
898
|
+
function be(e2, t2, s2) {
|
|
882
899
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
883
900
|
}
|
|
884
|
-
function
|
|
885
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
901
|
+
function Te(e2, t2) {
|
|
902
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, we(e2, t2).then((t3) => {
|
|
886
903
|
e2.isRefresh = true;
|
|
887
904
|
});
|
|
888
905
|
}
|
|
889
|
-
function
|
|
906
|
+
function we(e2, s2, o2) {
|
|
890
907
|
const a2 = e2.pageType;
|
|
891
908
|
if (a2 && "form" === a2) {
|
|
892
909
|
e2.canClick = false;
|
|
893
910
|
return t(e2) ? function(e3, t2, s3) {
|
|
894
911
|
return new Promise((o3, a3) => {
|
|
895
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
912
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ce(e3);
|
|
896
913
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
897
914
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
898
915
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
899
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
916
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
900
917
|
const t3 = {};
|
|
901
918
|
e3.tableUuids.forEach((e4) => {
|
|
902
919
|
const s4 = r(u2, l2, e4);
|
|
903
920
|
t3[s4] = s4;
|
|
904
921
|
}), b2.listCodesMap = t3;
|
|
905
922
|
}
|
|
906
|
-
m2 && (b2.ids =
|
|
923
|
+
m2 && (b2.ids = ke(m2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (b2.id = f(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
|
|
907
924
|
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = j();
|
|
908
925
|
w2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(T2, b2).then((t3) => {
|
|
909
926
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, e3.dataTypeMaps = t3.dataTypeMap, se(t3, true, e3), e3.workflowRules = O(e3);
|
|
@@ -946,11 +963,11 @@ function Te(e2, s2, o2) {
|
|
|
946
963
|
});
|
|
947
964
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
948
965
|
return new Promise((o3, a3) => {
|
|
949
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
966
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ce(e3);
|
|
950
967
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
951
968
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
952
969
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
953
|
-
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids =
|
|
970
|
+
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = ke(m2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
954
971
|
const t3 = {};
|
|
955
972
|
e3.tableUuids.forEach((e4) => {
|
|
956
973
|
const s4 = r(u2, l2, e4);
|
|
@@ -973,10 +990,10 @@ function Te(e2, s2, o2) {
|
|
|
973
990
|
e3(true);
|
|
974
991
|
});
|
|
975
992
|
}
|
|
976
|
-
function
|
|
993
|
+
function ke(e2) {
|
|
977
994
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
978
995
|
}
|
|
979
|
-
function
|
|
996
|
+
function ye(e2) {
|
|
980
997
|
const t2 = e2.props.setValueList;
|
|
981
998
|
if (t2) {
|
|
982
999
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -984,41 +1001,41 @@ function ke(e2) {
|
|
|
984
1001
|
}
|
|
985
1002
|
return null;
|
|
986
1003
|
}
|
|
987
|
-
function
|
|
1004
|
+
function he(e2, t2) {
|
|
988
1005
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
989
1006
|
return c.post(a2, o2);
|
|
990
1007
|
}
|
|
991
|
-
function
|
|
1008
|
+
function Pe(e2) {
|
|
992
1009
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
993
1010
|
return c.get(s2);
|
|
994
1011
|
}
|
|
995
|
-
function
|
|
1012
|
+
function Se(e2) {
|
|
996
1013
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
997
1014
|
return c.delete(t2);
|
|
998
1015
|
}
|
|
999
1016
|
export {
|
|
1000
1017
|
H as dealAfterOperate,
|
|
1001
1018
|
se as dealCompleteTaskParam,
|
|
1002
|
-
|
|
1003
|
-
|
|
1019
|
+
Se as deleteChartCondition,
|
|
1020
|
+
ue as doAddSigner,
|
|
1004
1021
|
ae as doAssign,
|
|
1005
|
-
|
|
1022
|
+
le as doCreateCopyTask,
|
|
1006
1023
|
Z as doImportFinally,
|
|
1007
|
-
|
|
1008
|
-
|
|
1024
|
+
ge as doRemoveSigners,
|
|
1025
|
+
me as doReturnTaskTo,
|
|
1009
1026
|
L as exportFormReport,
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1027
|
+
ce as getAdditionalParamMap,
|
|
1028
|
+
we as getFormData,
|
|
1029
|
+
fe as getRemoveSigner,
|
|
1013
1030
|
q as getSaveFormRequest,
|
|
1014
1031
|
$ as getSaveFormRequestWithRow,
|
|
1015
|
-
|
|
1016
|
-
|
|
1032
|
+
de as getTaskInformitions,
|
|
1033
|
+
Ce as isVisibleWorkflowButton,
|
|
1017
1034
|
ee as judgeDataNumber,
|
|
1018
|
-
|
|
1035
|
+
Pe as listChartConditions,
|
|
1019
1036
|
X as refreshFormOrListPage,
|
|
1020
|
-
|
|
1021
|
-
|
|
1037
|
+
Te as refreshPage,
|
|
1038
|
+
he as saveChartConditionBase,
|
|
1022
1039
|
D as standardEvents,
|
|
1023
1040
|
z as updateValuesWhenCloseDialog
|
|
1024
1041
|
};
|
|
@@ -182,7 +182,7 @@ function h(e2, n2, r2) {
|
|
|
182
182
|
}), r3.includes(false) && e6(false), s2.length > 0 ? Promise.all(s2).then((t3) => {
|
|
183
183
|
t3.includes(false) ? e6(false) : e6(true);
|
|
184
184
|
}).catch((t3) => {
|
|
185
|
-
e6(false);
|
|
185
|
+
console.error(t3), e6(false);
|
|
186
186
|
}) : e6(true);
|
|
187
187
|
});
|
|
188
188
|
return null;
|