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