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