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