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