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