super-page-runtime 2.3.45-cdnTmp2 → 2.3.45-cdnTmp3
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/events/standard-event.mjs +328 -327
- package/dist/es/components/runtime/utils/page-helper-util.mjs +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +11 -9
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +132 -127
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +4 -2
- package/dist/es/style.css +1 -1
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +1 -1
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime2.vue.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime2.vue.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime2.vue.cjs +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { deepCopy as me, getBaseUrl as
|
|
2
|
-
import { getCurrentUser as
|
|
3
|
-
import { ElMessage as
|
|
4
|
-
import { getComponentRef as z } from "../global-refs.mjs";
|
|
1
|
+
import { deepCopy as me, getBaseUrl as P, getRealRestApiPath as F, isWorkflowPage as pe, isArrayFn as ce, packageTemplateFiles as He, upperFirstCase as Ge, getListCode as Re } from "../common-util.mjs";
|
|
2
|
+
import { getCurrentUser as Se, getI18n as b, http as U, isMobileBrowser as q, getToken as ke, getSessionCache as ie, setSessionCache as Je, getRunCurrentRole as Ye } from "agilebuilder-ui";
|
|
3
|
+
import { ElMessage as S, ElMessageBox as fe, ElNotification as ze } from "element-plus";
|
|
4
|
+
import { getComponentRef as z, getComponentRefByCode as Ke } from "../global-refs.mjs";
|
|
5
5
|
import j from "../eventBus.mjs";
|
|
6
6
|
import le from "axios";
|
|
7
7
|
import { handleEvent as re, getTableUuid as _e, doAfterClickEvent as H } from "./event-util.mjs";
|
|
8
|
-
import { setStoreInfo as
|
|
9
|
-
import { getPermissionCodes as Q, getDefaultValue as
|
|
10
|
-
import { caculateShowCondition as ue, updateChartDatasources as
|
|
11
|
-
import
|
|
12
|
-
import { getTableNameByTableUuid as he, getCurrentUserFileTasks as
|
|
13
|
-
import { getWorkflowRules as
|
|
14
|
-
import { functions as
|
|
8
|
+
import { setStoreInfo as Ie } from "../store-util.mjs";
|
|
9
|
+
import { getPermissionCodes as Q, getDefaultValue as Xe, getModelFields as Qe } from "../page-init-util.mjs";
|
|
10
|
+
import { caculateShowCondition as ue, updateChartDatasources as Ze, getVariableValue as et, setVariableValue as tt } from "../page-helper-util.mjs";
|
|
11
|
+
import st from "./print-label.mjs";
|
|
12
|
+
import { getTableNameByTableUuid as he, getCurrentUserFileTasks as ot, setFileTaskRead as nt } from "../table-utils.mjs";
|
|
13
|
+
import { getWorkflowRules as at, packageCustomRules as it } from "./validator-util.mjs";
|
|
14
|
+
import { functions as rt } from "../api/page-expose-util.mjs";
|
|
15
15
|
import { usePageContextStore as Me } from "../page-store.mjs";
|
|
16
|
-
import { h as
|
|
17
|
-
import
|
|
18
|
-
import { cacheBackfillData as te, removeCacheFillData as Y, hasBackfillData as xe, getRealFillData as
|
|
19
|
-
const
|
|
16
|
+
import { h as ct } from "vue";
|
|
17
|
+
import lt from "../../views/assemblys/common/file-task-notice.vue.mjs";
|
|
18
|
+
import { cacheBackfillData as te, removeCacheFillData as Y, hasBackfillData as xe, getRealFillData as ut, removeCacheFillDataById as pt } from "./data-backfill-util.mjs";
|
|
19
|
+
const Dt = { save: function(e) {
|
|
20
20
|
return Oe(e, !1);
|
|
21
21
|
}, saveList: function(e) {
|
|
22
22
|
return Oe(e, !0);
|
|
@@ -45,26 +45,27 @@ const _t = { save: function(e) {
|
|
|
45
45
|
return function(t) {
|
|
46
46
|
return new Promise((s, n) => {
|
|
47
47
|
const o = t.ids;
|
|
48
|
-
if (!o || o.length === 0) return
|
|
48
|
+
if (!o || o.length === 0) return S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s(!0);
|
|
49
49
|
fe.confirm(b().t("superPageRuntimeMessage.whetherToConfirmDeletion"), b().t("superPageRuntimeMessage.tips"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
50
|
-
var
|
|
50
|
+
var I, A, R, y, N, h;
|
|
51
51
|
const a = t.pageContext, r = t.configureObj, c = r.props.base, l = a.systemCode, m = a.backendUrl, u = r.props.base.tableUuid ? r.props.base.tableUuid : t.tableUuid, p = he(a, u);
|
|
52
|
-
let d =
|
|
52
|
+
let d = P(m, a.isTest) + "/dsc/commons/" + p;
|
|
53
53
|
d = F(d, l, m, a.isTest);
|
|
54
|
-
const
|
|
55
|
-
a.beanName && (f.beanName = a.beanName)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
54
|
+
const g = c.isPermission === void 0 || c.isPermission === "true" || c.isPermission, T = pe(a), i = Q(r, a), f = { ids: o, functionCode: i, isPermission: g + "", systemCode: l, isWorkflowEntity: T, listCodesMap: a.listCodesMap, pageCode: a.code, pageVersion: a.version };
|
|
55
|
+
if (a.beanName && (f.beanName = a.beanName), u) {
|
|
56
|
+
const k = (R = (A = (I = Ke(t.pageContext, u)) == null ? void 0 : I.getConfigure()) == null ? void 0 : A.props) == null ? void 0 : R.deleteLogicSetting;
|
|
57
|
+
k && k && (typeof k == "object" ? f.deleteLogicSetting = JSON.stringify(k) : typeof k == "string" && (f.deleteLogicSetting = k));
|
|
58
|
+
}
|
|
59
|
+
const C = (y = r.props.base) == null ? void 0 : y.logSetting;
|
|
60
|
+
C && (f.logSettingText = C.join(""));
|
|
61
|
+
const w = r.props.base.isSafeDelete;
|
|
62
|
+
w && (f.isSafeDelete = w);
|
|
63
|
+
const v = (h = (N = r.runtime) == null ? void 0 : N.props) == null ? void 0 : h.title;
|
|
64
|
+
v && (f.currentOperation = v), f.isMobile = q(), U.delete(d, { data: f }).then((k) => {
|
|
65
|
+
const x = z(a, u);
|
|
66
|
+
x && (x.isDeleteChange(!0), x.clearSelections()), J(a, r, k, "superPageRuntimeMessage.successfulDelete", !0), s(!0);
|
|
67
|
+
}).catch((k) => {
|
|
68
|
+
n(k);
|
|
68
69
|
});
|
|
69
70
|
}).catch(() => {
|
|
70
71
|
n();
|
|
@@ -73,29 +74,29 @@ const _t = { save: function(e) {
|
|
|
73
74
|
}(e);
|
|
74
75
|
}, downloadTemplate: function(e) {
|
|
75
76
|
(function(t) {
|
|
76
|
-
var I,
|
|
77
|
+
var I, A, R, y;
|
|
77
78
|
const s = t.pageContext, n = t.configureObj, o = n.props.base, a = He(o.templateFiles, s, n);
|
|
78
79
|
let r, c;
|
|
79
80
|
a && a.length > 0 && (r = a[0].templateUuid, c = a[0].templateName);
|
|
80
81
|
const l = s.systemCode, m = s.backendUrl;
|
|
81
82
|
let u = c, p = "?1=1";
|
|
82
83
|
r && u && r !== "undefined" && u !== "undefined" && r !== "null" && u !== "null" ? p += "&fileName=" + encodeURI(r) + "&showName=" + encodeURI(u) : u ? p += "&showName=" + encodeURI(u) : s.label && ((I = t.tableConfigure) != null && I.title ? (p += "&showName=" + encodeURI(b().t(t.tableConfigure.title)) + ".xlsx", u = b().t(t.tableConfigure.title) + ".xlsx") : (p += "&showName=" + encodeURI(s.label) + ".xlsx", u = s.label + ".xlsx"));
|
|
83
|
-
const d = (
|
|
84
|
+
const d = (A = n.props.base) == null ? void 0 : A.logSetting;
|
|
84
85
|
d && (p += "&logSettingText=" + d.join("")), l && (p += "&systemCode=" + l);
|
|
85
|
-
const
|
|
86
|
-
|
|
86
|
+
const g = t.listCode;
|
|
87
|
+
g && (p += "&listCode=" + g), s.beanName && (p += "&beanName=" + s.beanName);
|
|
87
88
|
const T = Q(n, s);
|
|
88
89
|
T && (p += "&functionCode=" + T), s.tableName && (p += "&tableName=" + s.tableName), s.code && (p += "&pageCode=" + s.code), s.version && (p += "&pageVersion=" + s.version);
|
|
89
90
|
const i = ke();
|
|
90
91
|
i && (p += "&JWT=" + i);
|
|
91
|
-
const f = (
|
|
92
|
+
const f = (y = (R = n.runtime) == null ? void 0 : R.props) == null ? void 0 : y.title;
|
|
92
93
|
f && (p += "¤tOperation=" + encodeURI(f)), p += "&isMobile=" + q();
|
|
93
|
-
const
|
|
94
|
-
w && (p += "&" +
|
|
95
|
-
const
|
|
96
|
-
window.$http({ url: encodeURI(
|
|
97
|
-
const
|
|
98
|
-
|
|
94
|
+
const C = "_RUN_CURRENT_ROLE", w = ie(C);
|
|
95
|
+
w && (p += "&" + C + "=" + w), o && (p += "&isPermission=" + (o.isPermission === void 0 || o.isPermission === "true" || o.isPermission));
|
|
96
|
+
const v = P(m, s.isTest);
|
|
97
|
+
window.$http({ url: encodeURI(v + "/dsc/commons/download-files" + p), method: "get", responseType: "blob" }).then((N) => {
|
|
98
|
+
const h = document.createElement("a"), k = new Blob([N], { type: "application/vnd.ms-excel;charset=UTF-8" });
|
|
99
|
+
h.style.display = "none", h.remove("download"), h.href = URL.createObjectURL(k), h.setAttribute("download", u || "template.xlsx"), document.body.appendChild(h), h.click(), document.body.removeChild(h);
|
|
99
100
|
});
|
|
100
101
|
})(e);
|
|
101
102
|
}, import: function(e) {
|
|
@@ -104,15 +105,15 @@ const _t = { save: function(e) {
|
|
|
104
105
|
}, export: function(e) {
|
|
105
106
|
return function(t) {
|
|
106
107
|
return new Promise((s, n) => {
|
|
107
|
-
var
|
|
108
|
+
var C, w, v, I, A, R, y, N, h, k, x, M;
|
|
108
109
|
const o = t.pageContext, a = t.configureObj, r = a.props.base, c = t.listCode, l = t.selections, m = {};
|
|
109
110
|
l && l.length > 0 && (m.data = l);
|
|
110
111
|
let u = o.label;
|
|
111
112
|
u || (u = o.code);
|
|
112
113
|
let p = !1;
|
|
113
114
|
p = r.isAsync !== void 0 && r.isAsync !== null && r.isAsync;
|
|
114
|
-
const d = r.isPermission === void 0 || r.isPermission === "true" || r.isPermission,
|
|
115
|
-
f && (i.currentOperation = f), i.isShowWatermark = ((I = (
|
|
115
|
+
const d = r.isPermission === void 0 || r.isPermission === "true" || r.isPermission, g = Q(a, o), T = u, i = { backendUrl: o.backendUrl, pageContext: o }, f = (w = (C = a.runtime) == null ? void 0 : C.props) == null ? void 0 : w.title;
|
|
116
|
+
f && (i.currentOperation = f), i.isShowWatermark = ((I = (v = a.props) == null ? void 0 : v.watermark) == null ? void 0 : I.isShowWatermark) === void 0 ? "true" : ((R = (A = a.props) == null ? void 0 : A.watermark) == null ? void 0 : R.isShowWatermark) + "", i.watermarkContent = (N = (y = a.props) == null ? void 0 : y.watermark) != null && N.content && ((k = (h = a.props) == null ? void 0 : h.watermark) == null ? void 0 : k.content.length) > 0 ? (M = (x = a.props) == null ? void 0 : x.watermark) == null ? void 0 : M.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(m, T, c, g, null, i, p, o.code, d), p && setTimeout(() => {
|
|
116
117
|
Le(o);
|
|
117
118
|
}, 100);
|
|
118
119
|
});
|
|
@@ -129,13 +130,13 @@ const _t = { save: function(e) {
|
|
|
129
130
|
const o = t.pageContext;
|
|
130
131
|
if (se(o)) return void s(!1);
|
|
131
132
|
const a = o.entity.data, r = o.systemCode, c = o.backendUrl;
|
|
132
|
-
let l =
|
|
133
|
-
if (l = F(l, r, c, o.isTest), !l) return void
|
|
133
|
+
let l = P(c, o.isTest) + "/dsc/workflow-commons";
|
|
134
|
+
if (l = F(l, r, c, o.isTest), !l) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
134
135
|
const m = W(t);
|
|
135
136
|
let u;
|
|
136
|
-
u = a.id || a.ID ?
|
|
137
|
+
u = a.id || a.ID ? U.put(l, m) : U.post(l, m), te(o.code, a), u.then((p) => {
|
|
137
138
|
let d = !0;
|
|
138
|
-
p && (Y(o.code, a), d = Z(p, !1, o, t, null)), d === !0 &&
|
|
139
|
+
p && (Y(o.code, a), d = Z(p, !1, o, t, null)), d === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSave") }), j.$emit("clearTableAllEndEditing"), s(!0);
|
|
139
140
|
}).catch((p) => {
|
|
140
141
|
n(p);
|
|
141
142
|
});
|
|
@@ -146,13 +147,13 @@ const _t = { save: function(e) {
|
|
|
146
147
|
return new Promise((s, n) => {
|
|
147
148
|
const o = t.pageContext, a = o.entity.data, r = o.systemCode, c = o.backendUrl;
|
|
148
149
|
if (se(o)) return void s(!1);
|
|
149
|
-
let l =
|
|
150
|
-
if (l = F(l, r, c, o.isTest), !l) return void
|
|
150
|
+
let l = P(c, o.isTest) + "/dsc/workflow-commons/start";
|
|
151
|
+
if (l = F(l, r, c, o.isTest), !l) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
151
152
|
const m = W(t);
|
|
152
153
|
let u;
|
|
153
|
-
a.workflow_id || a.WORKFLOW_ID ? (l =
|
|
154
|
+
a.workflow_id || a.WORKFLOW_ID ? (l = P(c, o.isTest) + "/dsc/workflow-commons", l = F(l, r, c, o.isTest), u = U.put(l, m)) : u = U.post(l, m), te(o.code, a), u.then((p) => {
|
|
154
155
|
let d = !0;
|
|
155
|
-
p && (Y(o.code, a), d = Z(p, !1, o, t, null)), d === !0 &&
|
|
156
|
+
p && (Y(o.code, a), d = Z(p, !1, o, t, null)), d === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulStart") }), j.$emit("clearTableAllEndEditing"), s(!0);
|
|
156
157
|
}).catch((p) => {
|
|
157
158
|
n(p);
|
|
158
159
|
});
|
|
@@ -164,14 +165,14 @@ const _t = { save: function(e) {
|
|
|
164
165
|
const o = t.pageContext;
|
|
165
166
|
if (se(o)) return void s(!1);
|
|
166
167
|
const a = o.systemCode, r = o.backendUrl;
|
|
167
|
-
let c =
|
|
168
|
-
if (c = F(c, a, r, o.isTest), !c) return void
|
|
168
|
+
let c = P(r, o.isTest) + "/dsc/workflow-commons/submit";
|
|
169
|
+
if (c = F(c, a, r, o.isTest), !c) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
169
170
|
const l = W(t);
|
|
170
171
|
te(o.code, o.entity.data);
|
|
171
|
-
const m =
|
|
172
|
+
const m = U.post(c, l);
|
|
172
173
|
m ? m.then((u) => {
|
|
173
174
|
let p = !0;
|
|
174
|
-
u && (Y(o.code, o.entity.data), p = Z(u, !1, o, t, null)), p === !0 &&
|
|
175
|
+
u && (Y(o.code, o.entity.data), p = Z(u, !1, o, t, null)), p === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulSubmit") }), j.$emit("clearTableAllEndEditing"), s(!0);
|
|
175
176
|
}).catch((u) => {
|
|
176
177
|
n(u);
|
|
177
178
|
}) : Y(o.code, o.entity.data);
|
|
@@ -208,22 +209,22 @@ const _t = { save: function(e) {
|
|
|
208
209
|
}(e);
|
|
209
210
|
}, drawTask: function(e) {
|
|
210
211
|
return function(t) {
|
|
211
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
212
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/draw-tasks", a = W(t);
|
|
212
213
|
return $(t, a, o, "superPageRuntimeMessage.successfulDrawTask");
|
|
213
214
|
}(e);
|
|
214
215
|
}, abandonReceive: function(e) {
|
|
215
216
|
return function(t) {
|
|
216
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
217
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/abandon-receives", a = W(t);
|
|
217
218
|
return $(t, a, o, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
218
219
|
}(e);
|
|
219
220
|
}, returnToPreviousTask: function(e) {
|
|
220
221
|
return function(t) {
|
|
221
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
222
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a = W(t);
|
|
222
223
|
return $(t, a, o, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
223
224
|
}(e);
|
|
224
225
|
}, endInstance: function(e) {
|
|
225
226
|
return function(t) {
|
|
226
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
227
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/end-instance", a = W(t);
|
|
227
228
|
return $(t, a, o, "superPageRuntimeMessage.successfulEndInstance");
|
|
228
229
|
}(e);
|
|
229
230
|
}, returnTaskTo: function(e) {
|
|
@@ -238,11 +239,11 @@ const _t = { save: function(e) {
|
|
|
238
239
|
}(e);
|
|
239
240
|
}, retrieveTask: function(e) {
|
|
240
241
|
return function(t) {
|
|
241
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
242
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/retrieves", a = W(t);
|
|
242
243
|
return $(t, a, o, "superPageRuntimeMessage.successfulRetrieve");
|
|
243
244
|
}(e);
|
|
244
245
|
}, extractWorkflow: function(e) {
|
|
245
|
-
return
|
|
246
|
+
return gt(e);
|
|
246
247
|
}, extractWorkflowEvent: function(e) {
|
|
247
248
|
return function(t) {
|
|
248
249
|
const s = t.pageContext;
|
|
@@ -250,24 +251,24 @@ const _t = { save: function(e) {
|
|
|
250
251
|
}(e);
|
|
251
252
|
}, cancelExtractWorkflow: function(e) {
|
|
252
253
|
return function(t) {
|
|
253
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
254
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/cancel-extract", a = W(t);
|
|
254
255
|
return $(t, a, o, "superPageRuntimeMessage.successfulCancelExtract");
|
|
255
256
|
}(e);
|
|
256
257
|
}, approveExtractWorkflow: function(e) {
|
|
257
258
|
return function(t) {
|
|
258
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
259
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/approve-extract", a = W(t);
|
|
259
260
|
return $(t, a, o, "superPageRuntimeMessage.successfulOperation");
|
|
260
261
|
}(e);
|
|
261
262
|
}, refuseExtractWorkflow: function(e) {
|
|
262
263
|
return function(t) {
|
|
263
|
-
const s = t.pageContext, n = s.backendUrl, o =
|
|
264
|
+
const s = t.pageContext, n = s.backendUrl, o = P(n, s.isTest) + "/dsc/workflow-commons/refuse-extract", a = W(t);
|
|
264
265
|
return $(t, a, o, "superPageRuntimeMessage.successfulOperation");
|
|
265
266
|
}(e);
|
|
266
267
|
}, viewDetail: function(e) {
|
|
267
268
|
}, lineEditCreate: function(e) {
|
|
268
269
|
return function(t) {
|
|
269
270
|
const s = t.pageContext, n = t.tableUuid, o = z(s, n);
|
|
270
|
-
o && (t.getDefaultValueFunc =
|
|
271
|
+
o && (t.getDefaultValueFunc = Xe, o.createRow(t.listCode, {}, t));
|
|
271
272
|
}(e);
|
|
272
273
|
}, printLabel: function(e) {
|
|
273
274
|
return function(t) {
|
|
@@ -277,7 +278,7 @@ const _t = { save: function(e) {
|
|
|
277
278
|
} catch (n) {
|
|
278
279
|
console.error("打印标签失败,未在配置中找到找到模板", n, t);
|
|
279
280
|
}
|
|
280
|
-
|
|
281
|
+
st.printLabel(t, s);
|
|
281
282
|
}(e);
|
|
282
283
|
}, queryCharts: function(e) {
|
|
283
284
|
Ne(e);
|
|
@@ -287,7 +288,7 @@ const _t = { save: function(e) {
|
|
|
287
288
|
Object.assign(t.entity.data, me((s = t.initChartData) == null ? void 0 : s.data)), Object.assign(t.entity.page, me((n = t.initChartData) == null ? void 0 : n.page)), e.isInitChart = !0, Ne(e);
|
|
288
289
|
}, exportCharts: function(e) {
|
|
289
290
|
(function(t) {
|
|
290
|
-
var i, f,
|
|
291
|
+
var i, f, C, w, v, I, A, R, y, N, h, k;
|
|
291
292
|
const s = t.pageContext, n = s.allChartUuids;
|
|
292
293
|
if (!n || n.length == 0) return;
|
|
293
294
|
const o = t.configureObj;
|
|
@@ -296,11 +297,11 @@ const _t = { save: function(e) {
|
|
|
296
297
|
const r = a ? a.state : void 0;
|
|
297
298
|
a && (a.state = "disabled");
|
|
298
299
|
const c = [];
|
|
299
|
-
for (let
|
|
300
|
-
const
|
|
301
|
-
if (
|
|
302
|
-
const E =
|
|
303
|
-
E && E.exportable && E._dynamicShowFlag &&
|
|
300
|
+
for (let x = 0; x < n.length; x++) {
|
|
301
|
+
const M = n[x], O = z(s, M);
|
|
302
|
+
if (O) {
|
|
303
|
+
const E = O.getConfigure();
|
|
304
|
+
E && E.exportable && E._dynamicShowFlag && O.exportChart && c.push(O.exportChart());
|
|
304
305
|
}
|
|
305
306
|
}
|
|
306
307
|
if (!c || c.length == 0) return;
|
|
@@ -309,11 +310,11 @@ const _t = { save: function(e) {
|
|
|
309
310
|
const u = { reportDataList: c, beanName: s.beanName, systemCode: s.systemCode, pageCode: s.code }, p = G(s);
|
|
310
311
|
u.additionalParamMap = p;
|
|
311
312
|
const d = (f = (i = o.runtime) == null ? void 0 : i.props) == null ? void 0 : f.title;
|
|
312
|
-
d && (u.currentOperation = d), u.isMobile = q(), u.isShowWatermark = ((w = (
|
|
313
|
-
const
|
|
314
|
-
Te(), le.post(T, u, { responseType: "blob" }).then((
|
|
315
|
-
const
|
|
316
|
-
|
|
313
|
+
d && (u.currentOperation = d), u.isMobile = q(), u.isShowWatermark = ((w = (C = o.props) == null ? void 0 : C.watermark) == null ? void 0 : w.isShowWatermark) === void 0 ? "true" : ((I = (v = o.props) == null ? void 0 : v.watermark) == null ? void 0 : I.isShowWatermark) + "", u.watermark = (R = (A = o.props) == null ? void 0 : A.watermark) != null && R.content && ((N = (y = o.props) == null ? void 0 : y.watermark) == null ? void 0 : N.content.length) > 0 ? (k = (h = o.props) == null ? void 0 : h.watermark) == null ? void 0 : k.content.join("-~") : "";
|
|
314
|
+
const g = s.backendUrl, T = P(g, s.isTest) + "/dsc/commons/exportChart";
|
|
315
|
+
Te(), le.post(T, u, { responseType: "blob" }).then((x) => {
|
|
316
|
+
const M = document.createElement("a");
|
|
317
|
+
M.style.display = "none", M.href = URL.createObjectURL(x.data), M.setAttribute("download", l + ".xlsx"), document.body.appendChild(M), M.click(), document.body.removeChild(M);
|
|
317
318
|
}).finally(() => {
|
|
318
319
|
a && (a.state = r);
|
|
319
320
|
});
|
|
@@ -341,16 +342,16 @@ function Ne(e) {
|
|
|
341
342
|
let o = null;
|
|
342
343
|
n && n.runtime && (o = n.runtime.props);
|
|
343
344
|
const a = o ? o.state : void 0;
|
|
344
|
-
o && (o.state = "disabled"),
|
|
345
|
+
o && (o.state = "disabled"), Ze(t, s, void 0, e.isInitChart).then(() => {
|
|
345
346
|
o && (o.state = a);
|
|
346
347
|
}).catch(() => {
|
|
347
348
|
o && (o.state = a);
|
|
348
349
|
});
|
|
349
350
|
}
|
|
350
|
-
function
|
|
351
|
-
var
|
|
351
|
+
function jt(e, t, s, n) {
|
|
352
|
+
var v, I, A, R, y, N, h, k, x, M, O, E, D;
|
|
352
353
|
e.clickUuid = t.uuid, e.canClick = !1;
|
|
353
|
-
const o = s.templateUuid, a = s.templateName, r = e.systemCode, c = (
|
|
354
|
+
const o = s.templateUuid, a = s.templateName, r = e.systemCode, c = (v = t.props.base) == null ? void 0 : v.logSetting, l = pe(e), m = e.beanName, u = t.props.base, p = t.tableName ? t.tableName : e.tableName, d = e.backendUrl, g = rt.getFormViewData(e), T = u.isPermission === void 0 || u.isPermission === "true" || u.isPermission, i = { entity: g, fileName: o, showName: a, beanName: m, isWorkflowForm: l, functionCode: Q(t, e), tableName: p, isPermission: T + "", systemCode: r, listCodesMap: e.listCodesMap, pageCode: e.code, pageVersion: e.version, listCodesInitSearchForm: e.listCodesInitSearchForm };
|
|
354
355
|
if (e.tableUuids && e.tableUuids.length > 0) {
|
|
355
356
|
const _ = {};
|
|
356
357
|
e.tableUuids.forEach((V) => {
|
|
@@ -362,13 +363,13 @@ function Dt(e, t, s, n) {
|
|
|
362
363
|
}), i.subTableColumns = _;
|
|
363
364
|
}
|
|
364
365
|
c && (i.logSettingText = c.join(""));
|
|
365
|
-
const f = (
|
|
366
|
+
const f = (A = (I = t.runtime) == null ? void 0 : I.props) == null ? void 0 : A.title;
|
|
366
367
|
f && (i.currentOperation = f), i.isMobile = q();
|
|
367
|
-
const
|
|
368
|
+
const C = G(e);
|
|
368
369
|
let w;
|
|
369
|
-
i.additionalParamMap =
|
|
370
|
+
i.additionalParamMap = C, i.isShowWatermark = ((y = (R = t.props) == null ? void 0 : R.watermark) == null ? void 0 : y.isShowWatermark) === void 0 ? "true" : ((h = (N = t.props) == null ? void 0 : N.watermark) == null ? void 0 : h.isShowWatermark) + "", i.watermark = (x = (k = t.props) == null ? void 0 : k.watermark) != null && x.content && ((O = (M = t.props) == null ? void 0 : M.watermark) == null ? void 0 : O.content.length) > 0 ? (D = (E = t.props) == null ? void 0 : E.watermark) == null ? void 0 : D.content.join("-~") : "", w = n ? function(_, V, L, oe) {
|
|
370
371
|
return new Promise((K, ge) => {
|
|
371
|
-
const Ce =
|
|
372
|
+
const Ce = P(V, oe) + "/dsc/commons/export-pdf";
|
|
372
373
|
Te();
|
|
373
374
|
const ne = le.post(Ce, L, { headers: { "content-type": "application/json" }, responseType: "blob" });
|
|
374
375
|
window.$message.info("正在导出中..."), ne.then((ae) => {
|
|
@@ -380,7 +381,7 @@ function Dt(e, t, s, n) {
|
|
|
380
381
|
});
|
|
381
382
|
}(a, d, i, e.isTest) : function(_, V, L, oe) {
|
|
382
383
|
return new Promise((K, ge) => {
|
|
383
|
-
const Ce =
|
|
384
|
+
const Ce = P(V, oe) + "/dsc/commons/export-reports";
|
|
384
385
|
Te(), le.post(Ce, L, { responseType: "blob" }).then((ne) => {
|
|
385
386
|
const ae = new Blob([ne.data]);
|
|
386
387
|
let de = "报告.xlsx";
|
|
@@ -409,7 +410,7 @@ function se(e) {
|
|
|
409
410
|
if (e.fileuploadInfo && e.fileuploadInfo.length > 0) {
|
|
410
411
|
const t = e.fileuploadInfo[0];
|
|
411
412
|
let s;
|
|
412
|
-
return s = t.isTable && t.tableTitle && t.rowIndex !== void 0 ? b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t.label, tableTitle: t.tableTitle, rowIndex: t.rowIndex + 1 }) : b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t.label }),
|
|
413
|
+
return s = t.isTable && t.tableTitle && t.rowIndex !== void 0 ? b().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t.label, tableTitle: t.tableTitle, rowIndex: t.rowIndex + 1 }) : b().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t.label }), S({ message: s, type: "warning", showClose: !0 }), !0;
|
|
413
414
|
}
|
|
414
415
|
return !1;
|
|
415
416
|
}
|
|
@@ -419,7 +420,7 @@ function Oe(e, t) {
|
|
|
419
420
|
let m = !1;
|
|
420
421
|
if (l && l === "noOperation" && (m = !0), se(o)) return void s(!1);
|
|
421
422
|
te(o.code, o.entity.data);
|
|
422
|
-
const u =
|
|
423
|
+
const u = mt(o, a, "/dsc/commons", m, r, c);
|
|
423
424
|
u ? u.then((p) => {
|
|
424
425
|
p && Y(o.code, o.entity.data), J(o, a, p, "superPageRuntimeMessage.successfulSave", t), s(p);
|
|
425
426
|
}).catch((p) => {
|
|
@@ -428,48 +429,48 @@ function Oe(e, t) {
|
|
|
428
429
|
});
|
|
429
430
|
}
|
|
430
431
|
function De(e, t, s, n, o, a, r) {
|
|
431
|
-
var
|
|
432
|
+
var v, I, A;
|
|
432
433
|
const c = pe(e), l = e.systemCode, m = t.props.base.isPermission === void 0 || t.props.base.isPermission === "true" || t.props.base.isPermission, u = Q(t, e);
|
|
433
434
|
let p = r;
|
|
434
435
|
p || (p = e.entity.data);
|
|
435
436
|
const d = { entity: p, tableName: e.tableName, formNoRuleCode: e.formNoRuleCode, isWorkflowEntity: c, functionCode: u, isPermission: m + "", listCodesMap: e.listCodesMap, pageCode: e.code, pageVersion: e.version, listCodesInitSearchForm: e.listCodesInitSearchForm };
|
|
436
437
|
a && (d.ids = a), e.judgeHeavyList && (ce(e.judgeHeavyList) ? d.judgeHeavyList = JSON.stringify(e.judgeHeavyList) : d.judgeHeavyList = e.judgeHeavyList);
|
|
437
|
-
const
|
|
438
|
-
|
|
438
|
+
const g = t.props.base.conversionCodes;
|
|
439
|
+
g && (ce(g) ? d.dataConversionRule = g.join(",") : typeof g == "string" && (d.dataConversionRule = g));
|
|
439
440
|
const T = ve(t);
|
|
440
441
|
T && (d.autoSetValueData = T);
|
|
441
|
-
const i = (
|
|
442
|
+
const i = (v = t.props.base) == null ? void 0 : v.logSetting;
|
|
442
443
|
i && (d.logSettingText = i.join("")), d.systemCode || (d.systemCode = l);
|
|
443
444
|
const f = e.beanName;
|
|
444
445
|
f && (d.beanName = f), o && (d.dynamicColumnInfo = o), n && (d.mainDefaultValueColumns = n);
|
|
445
|
-
const
|
|
446
|
-
d.additionalParamMap =
|
|
447
|
-
const w = (
|
|
446
|
+
const C = G(e);
|
|
447
|
+
d.additionalParamMap = C, s !== void 0 && (d.unControlVersion = s);
|
|
448
|
+
const w = (A = (I = t.runtime) == null ? void 0 : I.props) == null ? void 0 : A.title;
|
|
448
449
|
return w && (d.currentOperation = w), d.isMobile = q(), d;
|
|
449
450
|
}
|
|
450
|
-
function
|
|
451
|
+
function dt(e, t, s, n, o, a, r, c, l) {
|
|
451
452
|
const m = e.systemCode, u = e.backendUrl, p = De(e, t, n, o, a, null, r);
|
|
452
453
|
return c && c.tableName && (p.tableName = c.tableName), l && (p.isWorkflowEntity = !1), r || e.pageType !== "form" ? Ae(m, u, p, s, r, e.isTest) : Ae(m, u, p, s, e.entity.data, e.isTest);
|
|
453
454
|
}
|
|
454
|
-
function
|
|
455
|
-
return
|
|
455
|
+
function mt(e, t, s, n, o, a) {
|
|
456
|
+
return dt(e, t, s, n, o, a, null, null);
|
|
456
457
|
}
|
|
457
458
|
function Ae(e, t, s, n, o, a) {
|
|
458
|
-
let r, c =
|
|
459
|
-
return c = F(c, e, t, a), r = o && (o.id || o.ID) ?
|
|
459
|
+
let r, c = P(t, a) + n;
|
|
460
|
+
return c = F(c, e, t, a), r = o && (o.id || o.ID) ? U.put(c, s) : U.post(c, s), r;
|
|
460
461
|
}
|
|
461
462
|
function J(e, t, s, n, o) {
|
|
462
463
|
const a = je(e, t, o);
|
|
463
464
|
if (a && a === "list") (function(r, c, l, m) {
|
|
464
465
|
let u = c.props.base.successOperation;
|
|
465
466
|
const p = c.props.base.isNeedValueMapping, d = _e(r, c);
|
|
466
|
-
if (u ||
|
|
467
|
+
if (u || ft.includes(c.name) || (u = "refresh"), u === "refresh") d ? z(r, d).refresh() : console.error("tableUuid is empty");
|
|
467
468
|
else if (u === "closeWindow" || u === "closeWindowAndRefresh") {
|
|
468
|
-
const
|
|
469
|
+
const g = me(r.entity.page);
|
|
469
470
|
let T = l;
|
|
470
|
-
T || (T = {}), Object.assign(
|
|
471
|
+
T || (T = {}), Object.assign(g, T), ye(r, c, g, p);
|
|
471
472
|
}
|
|
472
|
-
m &&
|
|
473
|
+
m && S({ message: b().t(m), type: "success", showClose: !0 });
|
|
473
474
|
})(e, t, s, n), e.canClick = !0;
|
|
474
475
|
else if (a && a === "form") (function(r, c, l, m) {
|
|
475
476
|
if (l) {
|
|
@@ -480,7 +481,7 @@ function J(e, t, s, n, o) {
|
|
|
480
481
|
const u = c.props.base.successOperation;
|
|
481
482
|
u && u !== null ? be(r, c, { ...r.entity.page }) : r.canClick = !0;
|
|
482
483
|
}
|
|
483
|
-
m &&
|
|
484
|
+
m && S({ message: b().t(m), type: "success", showClose: !0 });
|
|
484
485
|
})(e, t, s, n);
|
|
485
486
|
else {
|
|
486
487
|
const r = t.props.base.successOperation;
|
|
@@ -505,7 +506,7 @@ function ye(e, t, s, n) {
|
|
|
505
506
|
j.$has(c) ? j.$emit(c, { isNeedValueMapping: r, dataModel: s, sourceConfigureObj: t, sourceTableName: a, jumpMode: o }) : o === "refresh" && window.history.back();
|
|
506
507
|
}
|
|
507
508
|
}
|
|
508
|
-
function
|
|
509
|
+
function Wt({ parentPageContext: e, parentEventParams: t, parentConfigureObj: s, sourceModel: n, sourceTableName: o, valueMappings: a }) {
|
|
509
510
|
var c;
|
|
510
511
|
a || (a = s.runtime && s.runtime.linkPage && s.runtime.linkPage.valueMappings ? s.runtime.linkPage.valueMappings : null) || (a = (c = s.props.linkPage) == null ? void 0 : c.valueMappings);
|
|
511
512
|
const r = e.tableName;
|
|
@@ -513,16 +514,16 @@ function jt({ parentPageContext: e, parentEventParams: t, parentConfigureObj: s,
|
|
|
513
514
|
if (l && l !== null && m) {
|
|
514
515
|
let p = l;
|
|
515
516
|
Array.isArray(l) && l.length > 0 && (p = l[0]), m.forEach((d) => {
|
|
516
|
-
const
|
|
517
|
-
if (!
|
|
518
|
-
const T =
|
|
519
|
-
|
|
517
|
+
const g = d.source;
|
|
518
|
+
if (!g) return;
|
|
519
|
+
const T = g.split("."), i = et(p, T), f = d.target, C = Qe(null, f);
|
|
520
|
+
tt(u.entity, C, i);
|
|
520
521
|
});
|
|
521
522
|
}
|
|
522
523
|
})(n, a, e), re(null, e, s, "setValue", { sourceModel: n, sourceTableName: o, entity: e.entity.data, targetTableName: r, eventParams: t });
|
|
523
524
|
}
|
|
524
|
-
const
|
|
525
|
-
function
|
|
525
|
+
const ft = ["dropdown"];
|
|
526
|
+
function Ft(e, t, s, n) {
|
|
526
527
|
var r;
|
|
527
528
|
t && !t.props.base && (t.props.base = {});
|
|
528
529
|
let o = n;
|
|
@@ -545,28 +546,28 @@ function ee(e, t, s, n) {
|
|
|
545
546
|
const l = e.mainDefaultValueColumns, m = e.dynamicColumnInfo, u = e.ids, p = c.props.base.successOperation;
|
|
546
547
|
let d = !1;
|
|
547
548
|
p && p === "noOperation" && (d = !0);
|
|
548
|
-
let
|
|
549
|
+
let g = r.tableName;
|
|
549
550
|
if (t) {
|
|
550
551
|
const i = c.props.base.tableUuid ? c.props.base.tableUuid : e.tableUuid;
|
|
551
|
-
|
|
552
|
+
g = he(r, i);
|
|
552
553
|
} else te(r.code, r.entity.data);
|
|
553
|
-
const T = function(i, f,
|
|
554
|
-
return new Promise((
|
|
555
|
-
const
|
|
556
|
-
fe.confirm(b().t(
|
|
557
|
-
const
|
|
558
|
-
E.tableName =
|
|
559
|
-
let D =
|
|
560
|
-
D = F(D,
|
|
561
|
-
|
|
554
|
+
const T = function(i, f, C, w, v, I, A, R, y) {
|
|
555
|
+
return new Promise((N, h) => {
|
|
556
|
+
const k = f.props.base.title, x = "superPageRuntimeMessage.whetherToConfirm" + Ge(A);
|
|
557
|
+
fe.confirm(b().t(x, { name: k }), b().t("superPageRuntimeMessage.tips"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
558
|
+
const M = i.systemCode, O = i.backendUrl, E = De(i, f, w, v, I, R, null);
|
|
559
|
+
E.tableName = y;
|
|
560
|
+
let D = P(O, i.isTest) + C;
|
|
561
|
+
D = F(D, M, O, i.isTest), U.post(D, E).then((_) => {
|
|
562
|
+
N(_);
|
|
562
563
|
}).catch((_) => {
|
|
563
|
-
|
|
564
|
+
h(_);
|
|
564
565
|
});
|
|
565
566
|
}).catch(() => {
|
|
566
|
-
|
|
567
|
+
h("点击了取消按钮");
|
|
567
568
|
});
|
|
568
569
|
});
|
|
569
|
-
}(r, c, n, d, l, m, s, u,
|
|
570
|
+
}(r, c, n, d, l, m, s, u, g);
|
|
570
571
|
T ? T.then((i) => {
|
|
571
572
|
!t && i && Y(r.code, r.entity.data), J(r, c, i, "superPageRuntimeMessage.successfulSave", t), o(i);
|
|
572
573
|
}).catch((i) => {
|
|
@@ -574,53 +575,53 @@ function ee(e, t, s, n) {
|
|
|
574
575
|
}) : (t || Y(r.code, r.entity.data), a("request不存在"));
|
|
575
576
|
});
|
|
576
577
|
}
|
|
577
|
-
function
|
|
578
|
-
var
|
|
578
|
+
function Bt(e, t) {
|
|
579
|
+
var N, h, k, x;
|
|
579
580
|
const s = e.pageContext, n = e.configureObj, o = e.tableConfigure, a = n.props.base, r = n.props.base.tableUuid ? n.props.base.tableUuid : e.tableUuid, c = he(s, r), l = new FormData();
|
|
580
581
|
l.append("multipartFile", t), c && l.append("tableName", c);
|
|
581
|
-
const m = (
|
|
582
|
+
const m = (h = (N = n.runtime) == null ? void 0 : N.props) == null ? void 0 : h.title;
|
|
582
583
|
m && l.append("currentOperation", m), l.append("isMobile", q()), s.importBeanName && l.append("importBeanName", s.importBeanName), s.beanName && l.append("beanName", s.beanName);
|
|
583
|
-
const u = (
|
|
584
|
+
const u = (k = o.props.importSetting) == null ? void 0 : k.listViewImportDuplicate;
|
|
584
585
|
u && l.append("importDuplicateRule", u);
|
|
585
586
|
const p = s.judgeHeavyList;
|
|
586
587
|
p && l.append("judgeHeavyList", JSON.stringify(p));
|
|
587
588
|
const d = ve(n);
|
|
588
589
|
d && l.append("autoSetValueData", d);
|
|
589
|
-
const
|
|
590
|
-
|
|
590
|
+
const g = s.formNoRuleCode;
|
|
591
|
+
g && l.append("formNoRuleCode", g);
|
|
591
592
|
const T = e.listCode;
|
|
592
593
|
T && l.append("listCode", T);
|
|
593
594
|
let i = !1;
|
|
594
595
|
i = a.isAsync !== void 0 && a.isAsync !== null && a.isAsync, l.append("isAsync", i + ""), l.append("pageCode", s.code);
|
|
595
596
|
const f = pe(s);
|
|
596
597
|
f != null && l.append("isWorkflowEntity", f + "");
|
|
597
|
-
const
|
|
598
|
-
|
|
598
|
+
const C = Q(n, s);
|
|
599
|
+
C && l.append("functionCode", C);
|
|
599
600
|
const w = G(s);
|
|
600
601
|
l.append("additionalParamMapStr", JSON.stringify(w));
|
|
601
|
-
const
|
|
602
|
-
l.append("isPermission",
|
|
602
|
+
const v = a.isPermission === void 0 || a.isPermission === "true" || a.isPermission;
|
|
603
|
+
l.append("isPermission", v + "");
|
|
603
604
|
const I = s.systemCode;
|
|
604
605
|
I && l.append("systemCode", I);
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
const
|
|
608
|
-
let
|
|
609
|
-
|
|
610
|
-
if (i)
|
|
606
|
+
const A = (x = n.props.base) == null ? void 0 : x.logSetting;
|
|
607
|
+
A && l.append("logSettingText", A.join(""));
|
|
608
|
+
const R = s.backendUrl;
|
|
609
|
+
let y = P(R, s.isTest) + "/dsc/commons/import-data";
|
|
610
|
+
y = F(y, I, R, s.isTest), U.post(y, l).then((M) => {
|
|
611
|
+
if (i) S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.asyncImport") }), Le(s);
|
|
611
612
|
else {
|
|
612
|
-
let
|
|
613
|
-
|
|
613
|
+
let O = !1;
|
|
614
|
+
M ? (O = !1, S({ dangerouslyUseHTMLString: !0, showClose: !0, type: "warning", message: M })) : (S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulImport") }), O = !0), J(s, n, M, null, !0), s.result = O, H(s, n);
|
|
614
615
|
}
|
|
615
|
-
}).catch((
|
|
616
|
+
}).catch((M) => {
|
|
616
617
|
});
|
|
617
618
|
}
|
|
618
|
-
function
|
|
619
|
+
function Lt(e, t) {
|
|
619
620
|
const s = e.props.base;
|
|
620
621
|
if (s.conditionsForExecution && s.conditionsForExecution !== "") {
|
|
621
622
|
if (s.conditionsForExecution === "one") {
|
|
622
|
-
if (!t || t.length !== 1) return
|
|
623
|
-
} else if (s.conditionsForExecution === "more" && (!t || t.length <= 0)) return
|
|
623
|
+
if (!t || t.length !== 1) return S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), !1;
|
|
624
|
+
} else if (s.conditionsForExecution === "more" && (!t || t.length <= 0)) return S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: b().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), !1;
|
|
624
625
|
}
|
|
625
626
|
return !0;
|
|
626
627
|
}
|
|
@@ -641,8 +642,8 @@ function W(e) {
|
|
|
641
642
|
c.additionalParamMap = p, p.ids && p.ids.length > 0 && (typeof p.ids == "string" ? c.ids = p.ids.split(",") : Array.isArray(p.ids) ? c.ids = p.ids : typeof ids == "number" ? c.ids = [p.ids] : console.error("ids参数类型错误"));
|
|
642
643
|
const d = s.props.base.successOperation;
|
|
643
644
|
d && d === "noOperation" && (c.unControlVersion = !0), c.isWorkflowEntity = !0;
|
|
644
|
-
const
|
|
645
|
-
return
|
|
645
|
+
const g = (f = (i = s.runtime) == null ? void 0 : i.props) == null ? void 0 : f.title;
|
|
646
|
+
return g && (c.currentOperation = g), c.isMobile = q(), c.taskParamMap = t.entity.task, c;
|
|
646
647
|
}
|
|
647
648
|
function Z(e, t, s, n, o) {
|
|
648
649
|
const a = s.code, r = s.version;
|
|
@@ -657,14 +658,14 @@ function Z(e, t, s, n, o) {
|
|
|
657
658
|
const m = l.completeTaskTipType;
|
|
658
659
|
if (m && m === "MESSAGE") {
|
|
659
660
|
const u = l.content;
|
|
660
|
-
return
|
|
661
|
+
return S({ showClose: !0, type: "warning", message: u }), !1;
|
|
661
662
|
}
|
|
662
663
|
}
|
|
663
664
|
if (e.completeTaskParam) {
|
|
664
665
|
const m = e.completeTaskParam;
|
|
665
|
-
c = m.taskId, n && (n.taskId = c),
|
|
666
|
+
c = m.taskId, n && (n.taskId = c), Ie(a, r, "_completeTaskParam", m), s.fieldPermissions = m.fieldPermissions, s.actionPermissions = m.actionPermissions, s.workflowButtonComponent = m.buttonComponent, s.completeTaskParam = m, s.completeTaskParam.opinion = null;
|
|
666
667
|
}
|
|
667
|
-
s.entity || (s.entity = {}), s.entity.task = e.taskParamMap,
|
|
668
|
+
s.entity || (s.entity = {}), s.entity.task = e.taskParamMap, Ie(a, r, "_currentActivityName", e.taskName);
|
|
668
669
|
}
|
|
669
670
|
return n && (n.operationResult = o), t || J(s, n.configureObj, e, null, !1), !0;
|
|
670
671
|
}
|
|
@@ -676,16 +677,16 @@ async function X(e, t) {
|
|
|
676
677
|
if (se(a)) n(!1);
|
|
677
678
|
else if (s) {
|
|
678
679
|
const c = a.systemCode, l = a.backendUrl, m = s === !0 ? (r = a.completeTaskParam) == null ? void 0 : r.opinion : s;
|
|
679
|
-
let u =
|
|
680
|
-
if (u = F(u, c, l, a.isTest), !u) return void
|
|
680
|
+
let u = P(l, a.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
681
|
+
if (u = F(u, c, l, a.isTest), !u) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
681
682
|
const p = W(e);
|
|
682
683
|
p.completeTaskParam = { operationResult: t, taskId: a.completeTaskParam ? a.completeTaskParam.taskId : null, opinion: m || null };
|
|
683
|
-
const d =
|
|
684
|
-
te(a.code, a.entity.data), d.then((
|
|
684
|
+
const d = U.post(u, p);
|
|
685
|
+
te(a.code, a.entity.data), d.then((g) => {
|
|
685
686
|
let T = !0;
|
|
686
|
-
|
|
687
|
-
}).catch((
|
|
688
|
-
o(
|
|
687
|
+
g && (Y(a.code, a.entity.data), T = Z(g, !1, a, e, t)), T === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulCompleteTask") }), n(!0);
|
|
688
|
+
}).catch((g) => {
|
|
689
|
+
o(g);
|
|
689
690
|
});
|
|
690
691
|
} else n(!0);
|
|
691
692
|
});
|
|
@@ -701,13 +702,13 @@ function We(e) {
|
|
|
701
702
|
const u = e.pageContext, p = (l = (c = n.props) == null ? void 0 : c.base) == null ? void 0 : l.mustOpinionConditions;
|
|
702
703
|
m = ue(u, p);
|
|
703
704
|
}
|
|
704
|
-
m === !0 ? (
|
|
705
|
+
m === !0 ? (S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.pleaseInputOpinion") }), e.pageContext.workflowOpinion.focusOpinionInput = !0, t(!1)) : t(!0);
|
|
705
706
|
} else t(!0);
|
|
706
707
|
});
|
|
707
708
|
}
|
|
708
|
-
function
|
|
709
|
+
function Vt(e, t) {
|
|
709
710
|
if (t) {
|
|
710
|
-
const s = e.pageContext, n = e.configureObj, o = s.backendUrl, a =
|
|
711
|
+
const s = e.pageContext, n = e.configureObj, o = s.backendUrl, a = P(o, s.isTest) + "/dsc/workflow-commons/assigns", r = t.id ? t.id : t.ID ? t.ID : null, c = W(e);
|
|
711
712
|
c.assigneeId = r, $(e, c, a, "superPageRuntimeMessage.successfulAssign").then((l) => {
|
|
712
713
|
H(s, n);
|
|
713
714
|
});
|
|
@@ -746,33 +747,33 @@ function G(e) {
|
|
|
746
747
|
return s && Object.assign(t, s), t;
|
|
747
748
|
}
|
|
748
749
|
}
|
|
749
|
-
function
|
|
750
|
+
function $t(e, t) {
|
|
750
751
|
if (t) {
|
|
751
752
|
const s = e.pageContext, n = e.configureObj, o = s.systemCode, a = s.backendUrl;
|
|
752
|
-
let r =
|
|
753
|
-
if (r = F(r, o, a, s.isTest), !r) return void
|
|
753
|
+
let r = P(a, s.isTest) + "/dsc/workflow-commons/add-signers";
|
|
754
|
+
if (r = F(r, o, a, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
754
755
|
const c = Pe(e);
|
|
755
756
|
c.completeTaskParam.transactors = t.loginNames.join(",").split(",");
|
|
756
|
-
const l =
|
|
757
|
+
const l = U.post(r, c);
|
|
757
758
|
l && l.then((m) => {
|
|
758
|
-
|
|
759
|
+
S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, n, m, null, !1), H(s, n);
|
|
759
760
|
});
|
|
760
761
|
}
|
|
761
762
|
}
|
|
762
|
-
function
|
|
763
|
+
function qt(e, t) {
|
|
763
764
|
if (t) {
|
|
764
765
|
const s = e.pageContext, n = e.configureObj, o = s.systemCode, a = s.backendUrl;
|
|
765
|
-
let r =
|
|
766
|
-
if (r = F(r, o, a, s.isTest), !r) return void
|
|
766
|
+
let r = P(a, s.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
767
|
+
if (r = F(r, o, a, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
767
768
|
const c = Pe(e);
|
|
768
769
|
c.completeTaskParam.transactors = t.loginNames.join(",").split(",");
|
|
769
|
-
const l =
|
|
770
|
+
const l = U.post(r, c);
|
|
770
771
|
l && l.then((m) => {
|
|
771
|
-
|
|
772
|
+
S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), m.entity && J(s, n, m, null, !1), H(s, n);
|
|
772
773
|
});
|
|
773
774
|
}
|
|
774
775
|
}
|
|
775
|
-
async function
|
|
776
|
+
async function Ht(e, t) {
|
|
776
777
|
if (t) {
|
|
777
778
|
const s = await function(n) {
|
|
778
779
|
return new Promise((o, a) => {
|
|
@@ -782,8 +783,8 @@ async function qt(e, t) {
|
|
|
782
783
|
let p = (l = (c = r.props) == null ? void 0 : c.base) == null ? void 0 : l.isMustRemark;
|
|
783
784
|
if (p === void 0 || p === !0) {
|
|
784
785
|
p = !0;
|
|
785
|
-
const d = n.pageContext,
|
|
786
|
-
p = ue(d,
|
|
786
|
+
const d = n.pageContext, g = (u = (m = r.props) == null ? void 0 : m.base) == null ? void 0 : u.mustRemarkConditions;
|
|
787
|
+
p = ue(d, g);
|
|
787
788
|
}
|
|
788
789
|
p === !0 ? fe.prompt(b().t("superPageRuntimeMessage.pleaseInputRemark"), b().t("superPageRuntimeMessage.remark"), { confirmButtonText: b().t("superPageRuntimeMessage.sure"), cancelButtonText: b().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: !1, inputValidator: (d) => !(!d || !d.trim()) || b().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: d }) => {
|
|
789
790
|
o(d);
|
|
@@ -795,14 +796,14 @@ async function qt(e, t) {
|
|
|
795
796
|
}(e);
|
|
796
797
|
if (s) {
|
|
797
798
|
const n = e.pageContext, o = e.configureObj, a = n.systemCode, r = n.backendUrl;
|
|
798
|
-
let c =
|
|
799
|
-
if (c = F(c, a, r, n.isTest), !c) return void
|
|
799
|
+
let c = P(r, n.isTest) + "/dsc/workflow-commons/copies";
|
|
800
|
+
if (c = F(c, a, r, n.isTest), !c) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
800
801
|
const l = Pe(e);
|
|
801
802
|
l.completeTaskParam.transactors = t.loginNames.join(",").split(","), s !== !0 && (l.completeTaskParam.remark = s);
|
|
802
|
-
const m =
|
|
803
|
+
const m = U.post(c, l);
|
|
803
804
|
m && m.then((u) => {
|
|
804
805
|
var p;
|
|
805
|
-
|
|
806
|
+
S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulOperation") }), J(n, o, { entity: (p = n.entity) == null ? void 0 : p.data }, null), H(n, o);
|
|
806
807
|
});
|
|
807
808
|
}
|
|
808
809
|
}
|
|
@@ -817,73 +818,73 @@ async function $(e, t, s, n) {
|
|
|
817
818
|
const d = o === !0 ? (c = l.completeTaskParam) == null ? void 0 : c.opinion : o;
|
|
818
819
|
t.completeTaskParam = { taskId: l.completeTaskParam.taskId, opinion: d };
|
|
819
820
|
}
|
|
820
|
-
if (!(s = F(s, m, u, l.isTest))) return void
|
|
821
|
-
const p =
|
|
821
|
+
if (!(s = F(s, m, u, l.isTest))) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
822
|
+
const p = U.post(s, t);
|
|
822
823
|
p && p.then((d) => {
|
|
823
|
-
let
|
|
824
|
-
d && (
|
|
824
|
+
let g = !0;
|
|
825
|
+
d && (g = Z(d, !1, l, e, null)), g === !0 && S({ showClose: !0, type: "success", message: b().t(n) }), a(!0);
|
|
825
826
|
}).catch((d) => {
|
|
826
827
|
r(d);
|
|
827
828
|
});
|
|
828
829
|
} else a(!0);
|
|
829
830
|
});
|
|
830
831
|
}
|
|
831
|
-
function
|
|
832
|
+
function Gt(e) {
|
|
832
833
|
const t = e.pageContext, s = t.systemCode, n = t.backendUrl, o = t.completeTaskParam;
|
|
833
|
-
let a =
|
|
834
|
-
if (a = F(a, s, n, t.isTest), !a) return void
|
|
834
|
+
let a = P(n, t.isTest) + "/dsc/workflow-commons/returnable-task/" + o.taskId;
|
|
835
|
+
if (a = F(a, s, n, t.isTest), !a) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
835
836
|
const r = t.code, c = G(t), l = { beanName: t.beanName, additionalParamMap: c, tableName: t.tableName, functionCode: r + ".xxx", pageCode: t.code };
|
|
836
|
-
return
|
|
837
|
+
return U.post(a, l);
|
|
837
838
|
}
|
|
838
|
-
function
|
|
839
|
-
const s = e.pageContext, n = e.configureObj, o = s.backendUrl, a =
|
|
839
|
+
function Jt(e, t) {
|
|
840
|
+
const s = e.pageContext, n = e.configureObj, o = s.backendUrl, a = P(o, s.isTest) + "/dsc/workflow-commons/returnTaskTo", r = W(e);
|
|
840
841
|
t.nodeName && (r.returnToNodeName = t.nodeName), t.nodeId && (r.returnToNodeId = t.nodeId), $(e, r, a, "superPageRuntimeMessage.successfulReturnTaskTo").then((c) => {
|
|
841
842
|
H(s, n);
|
|
842
843
|
});
|
|
843
844
|
}
|
|
844
|
-
function
|
|
845
|
+
function Yt(e) {
|
|
845
846
|
const t = e.pageContext, s = t.systemCode, n = t.backendUrl;
|
|
846
|
-
let o =
|
|
847
|
+
let o = P(n, t.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
847
848
|
const a = W(e);
|
|
848
|
-
if (o = F(o, s, n, t.isTest), o) return
|
|
849
|
-
|
|
849
|
+
if (o = F(o, s, n, t.isTest), o) return U.post(o, a);
|
|
850
|
+
S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
850
851
|
}
|
|
851
|
-
function
|
|
852
|
+
function zt(e, t) {
|
|
852
853
|
if (t) {
|
|
853
854
|
const s = e.pageContext, n = e.configureObj, o = s.systemCode, a = s.backendUrl;
|
|
854
|
-
let r =
|
|
855
|
-
if (r = F(r, o, a, s.isTest), !r) return void
|
|
855
|
+
let r = P(a, s.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
856
|
+
if (r = F(r, o, a, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
856
857
|
const c = t.map((u) => u.id ? u.id : u.ID ? u.ID : null), l = W(e);
|
|
857
858
|
l.ids = c;
|
|
858
|
-
const m =
|
|
859
|
+
const m = U.post(r, l);
|
|
859
860
|
m && m.then((u) => {
|
|
860
861
|
J(s, n, u, "superPageRuntimeMessage.successfulOperation", !1), H(s, n);
|
|
861
862
|
});
|
|
862
863
|
}
|
|
863
864
|
}
|
|
864
|
-
function
|
|
865
|
+
function Kt(e) {
|
|
865
866
|
const t = e.pageContext, s = t.systemCode, n = t.backendUrl;
|
|
866
|
-
let o =
|
|
867
|
+
let o = P(n, t.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
867
868
|
const a = W(e);
|
|
868
|
-
if (o = F(o, s, n, t.isTest), o) return
|
|
869
|
-
|
|
869
|
+
if (o = F(o, s, n, t.isTest), o) return U.post(o, a);
|
|
870
|
+
S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
870
871
|
}
|
|
871
|
-
function
|
|
872
|
+
function Xt(e, t) {
|
|
872
873
|
if (t) {
|
|
873
874
|
const s = e.pageContext, n = e.configureObj, o = s.systemCode, a = s.backendUrl;
|
|
874
|
-
let r =
|
|
875
|
-
if (r = F(r, o, a, s.isTest), !r) return void
|
|
875
|
+
let r = P(a, s.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
876
|
+
if (r = F(r, o, a, s.isTest), !r) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
876
877
|
const c = t.map((u) => u.taskId), l = W(e);
|
|
877
878
|
l.ids = c;
|
|
878
|
-
const m =
|
|
879
|
+
const m = U.post(r, l);
|
|
879
880
|
m && m.then((u) => {
|
|
880
881
|
J(s, n, u, "superPageRuntimeMessage.successfulOperation", !1), H(s, n);
|
|
881
882
|
});
|
|
882
883
|
}
|
|
883
884
|
}
|
|
884
|
-
function
|
|
885
|
+
function gt(e) {
|
|
885
886
|
const t = e.pageContext, s = t.backendUrl;
|
|
886
|
-
let n =
|
|
887
|
+
let n = P(s, t.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
887
888
|
const o = W(e);
|
|
888
889
|
if (t.completeTaskParam) {
|
|
889
890
|
const a = [];
|
|
@@ -891,18 +892,18 @@ function ft(e) {
|
|
|
891
892
|
}
|
|
892
893
|
return new Promise((a, r) => {
|
|
893
894
|
const c = e.pageContext, l = c.systemCode, m = c.backendUrl;
|
|
894
|
-
if (n = F(n, l, m, c.isTest), !n) return void
|
|
895
|
-
const u =
|
|
895
|
+
if (n = F(n, l, m, c.isTest), !n) return void S({ showClose: !0, type: "warning", message: b().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
896
|
+
const u = U.post(n, o);
|
|
896
897
|
u && u.then((p) => {
|
|
897
898
|
let d = !0;
|
|
898
|
-
p && (d = Z(p, !1, c, e, null)), d === !0 &&
|
|
899
|
+
p && (d = Z(p, !1, c, e, null)), d === !0 && S({ showClose: !0, type: "success", message: b().t("superPageRuntimeMessage.successfulInitiateExtract") }), a(!0);
|
|
899
900
|
}).catch((p) => {
|
|
900
901
|
r(p);
|
|
901
902
|
});
|
|
902
903
|
});
|
|
903
904
|
}
|
|
904
|
-
function
|
|
905
|
-
var c, l, m, u, p, d,
|
|
905
|
+
function Qt(e, t, s, n, o, a) {
|
|
906
|
+
var c, l, m, u, p, d, g, T;
|
|
906
907
|
let r = !1;
|
|
907
908
|
if (n && n.archival) return r;
|
|
908
909
|
if (t && s && (t === "workflowSave" ? r = function(i) {
|
|
@@ -924,8 +925,8 @@ function Xt(e, t, s, n, o, a) {
|
|
|
924
925
|
}(s) : t === "assign" ? r = function(i) {
|
|
925
926
|
return !!(i.processState && i.processState === "SUBMIT" && i.processingMode !== "TYPE_READ" && (i.active === "WAIT_TRANSACT" || i.active === "DRAW_WAIT"));
|
|
926
927
|
}(s) : t === "copyTask" ? r = function(i, f) {
|
|
927
|
-
let
|
|
928
|
-
return i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode !== "TYPE_READ" && i.showButtonCopy && (
|
|
928
|
+
let C = !1;
|
|
929
|
+
return i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode !== "TYPE_READ" && i.showButtonCopy && (C = !0), f && (f.props.base.state = C ? "" : "hidden"), !0;
|
|
929
930
|
}(s, o) : t === "addSigner" ? r = function(i) {
|
|
930
931
|
return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "COUNTERSIGN" && i.showButtonAddCounter);
|
|
931
932
|
}(s) : t === "removeSigner" ? r = function(i) {
|
|
@@ -938,24 +939,24 @@ function Xt(e, t, s, n, o, a) {
|
|
|
938
939
|
return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "VOTE");
|
|
939
940
|
}(s) : t === "kiken" ? r = function(i) {
|
|
940
941
|
return !!(i.processState && i.processState === "SUBMIT" && i.active === "WAIT_TRANSACT" && i.processingMode === "VOTE" && i.showButtonKiken);
|
|
941
|
-
}(s) : t === "extractWorkflow" ? r = function(i, f,
|
|
942
|
+
}(s) : t === "extractWorkflow" ? r = function(i, f, C) {
|
|
942
943
|
var I;
|
|
943
|
-
const w =
|
|
944
|
+
const w = Se(), v = w ? w.loginName : null;
|
|
944
945
|
if (i != null && i.processState) {
|
|
945
|
-
if (((I = f == null ? void 0 : f.firstNodeInfo) == null ? void 0 : I.nodeId) === (
|
|
946
|
-
if ((i == null ? void 0 : i.processState) !== "END" && (i == null ? void 0 : i.processState) !== "EXTRACT" && (i == null ? void 0 : i.processState) !== "MANUAL_END" &&
|
|
946
|
+
if (((I = f == null ? void 0 : f.firstNodeInfo) == null ? void 0 : I.nodeId) === (C == null ? void 0 : C.CURRENT_ACTIVITY_ID)) return !1;
|
|
947
|
+
if ((i == null ? void 0 : i.processState) !== "END" && (i == null ? void 0 : i.processState) !== "EXTRACT" && (i == null ? void 0 : i.processState) !== "MANUAL_END" && C && (C.creator === v || C.CREATOR === v)) return !0;
|
|
947
948
|
}
|
|
948
949
|
return !1;
|
|
949
|
-
}(s, n, a) : t === "cancelExtractWorkflow" ? r = function(i, f,
|
|
950
|
-
const w =
|
|
951
|
-
return !!((i == null ? void 0 : i.processState) === "EXTRACT" &&
|
|
952
|
-
}(s, 0, a) : t === "approveExtractWorkflow" || t === "refuseExtractWorkflow" ? r =
|
|
950
|
+
}(s, n, a) : t === "cancelExtractWorkflow" ? r = function(i, f, C) {
|
|
951
|
+
const w = Se(), v = w ? w.loginName : null;
|
|
952
|
+
return !!((i == null ? void 0 : i.processState) === "EXTRACT" && C && (C.creator === v || C.CREATOR === v));
|
|
953
|
+
}(s, 0, a) : t === "approveExtractWorkflow" || t === "refuseExtractWorkflow" ? r = Ct(s) : t === "addTransactor" || t === "removeTransactor" ? r = function(i) {
|
|
953
954
|
return !!(i.processState && i.processState === "SUBMIT" && (i.active === "WAIT_TRANSACT" || i.active === "DRAW_WAIT") && i.processingMode !== "COUNTERSIGN");
|
|
954
955
|
}(s) : function(i, f) {
|
|
955
|
-
return i.processState && i.processState === "SUBMIT" && i.processingMode !== "TYPE_READ" && !function(
|
|
956
|
-
const w =
|
|
957
|
-
let
|
|
958
|
-
return w && (
|
|
956
|
+
return i.processState && i.processState === "SUBMIT" && i.processingMode !== "TYPE_READ" && !function(C) {
|
|
957
|
+
const w = C;
|
|
958
|
+
let v = !0;
|
|
959
|
+
return w && (v = w.taskComplete), v;
|
|
959
960
|
}(f);
|
|
960
961
|
}(s, n) && (r = t !== "returnToPreviousTask" || function(i) {
|
|
961
962
|
return !!i.rebuttable;
|
|
@@ -968,7 +969,7 @@ function Xt(e, t, s, n, o, a) {
|
|
|
968
969
|
let i = !1;
|
|
969
970
|
if ((d = (p = o.props) == null ? void 0 : p.base) != null && d.isMustOpinion) {
|
|
970
971
|
if (i = !0, i === !0) {
|
|
971
|
-
const f = (T = (
|
|
972
|
+
const f = (T = (g = o.props) == null ? void 0 : g.base) == null ? void 0 : T.mustOpinionConditions;
|
|
972
973
|
f && f.length > 0 && (i = ue(e, f));
|
|
973
974
|
}
|
|
974
975
|
e.workflowOpinion.isRequired = i, i && (e.workflowOpinion.showOpinionBox = !0);
|
|
@@ -976,94 +977,94 @@ function Xt(e, t, s, n, o, a) {
|
|
|
976
977
|
}
|
|
977
978
|
return e.workflowOpinion, r;
|
|
978
979
|
}
|
|
979
|
-
function
|
|
980
|
+
function Ct(e, t, s) {
|
|
980
981
|
return !(!e.processState || e.processState !== "EXTRACT" || e.active !== "WAIT_TRANSACT");
|
|
981
982
|
}
|
|
982
983
|
function Be(e, t) {
|
|
983
|
-
e.entity.page || (e.entity.page = {}), e.entity.page._isRefresh = !0,
|
|
984
|
+
e.entity.page || (e.entity.page = {}), e.entity.page._isRefresh = !0, bt(e, t).then((s) => {
|
|
984
985
|
e.isRefresh = !0;
|
|
985
986
|
});
|
|
986
987
|
}
|
|
987
|
-
function
|
|
988
|
+
function bt(e, t, s) {
|
|
988
989
|
const n = e.pageType;
|
|
989
990
|
return n && n === "form" ? (e.canClick = !1, pe(e) ? function(o, a, r) {
|
|
990
991
|
return new Promise((c, l) => {
|
|
991
|
-
var
|
|
992
|
+
var A;
|
|
992
993
|
const m = o.systemCode, u = o.code, p = o.version, d = G(o);
|
|
993
|
-
let
|
|
994
|
-
r === void 0 || r ? (
|
|
995
|
-
const i = d ? d.taskId : null, f = u,
|
|
994
|
+
let g = a || null, T = a ? [a] : null;
|
|
995
|
+
r === void 0 || r ? (g || (g = d && d.id ? d.id : null), T || (T = d ? d.ids : null)) : (g = null, T = null, d._id = d.id, d.id = null);
|
|
996
|
+
const i = d ? d.taskId : null, f = u, C = { pageCode: u, pageVersion: p, tableName: o.tableName, formNoRuleCode: o.formNoRuleCode, isWorkflowEntity: !0, systemCode: m, functionCode: f + ".workflowGets", listCodesMap: o.listCodesMap, listCodesInitSearchForm: o.listCodesInitSearchForm };
|
|
996
997
|
if (o.listCodesMap, (!o.listCodesMap || Object.keys(o.listCodesMap).length === 0) && o.tableUuids) {
|
|
997
|
-
const
|
|
998
|
-
o.tableUuids.forEach((
|
|
999
|
-
const
|
|
1000
|
-
|
|
1001
|
-
}),
|
|
998
|
+
const R = {};
|
|
999
|
+
o.tableUuids.forEach((y) => {
|
|
1000
|
+
const N = Re(u, p, y);
|
|
1001
|
+
R[N] = N;
|
|
1002
|
+
}), C.listCodesMap = R;
|
|
1002
1003
|
}
|
|
1003
|
-
T && (
|
|
1004
|
-
const w =
|
|
1005
|
-
|
|
1006
|
-
const I = xe(o.code,
|
|
1007
|
-
|
|
1008
|
-
I && await Ue(o,
|
|
1009
|
-
const
|
|
1010
|
-
|
|
1011
|
-
(function(
|
|
1012
|
-
const
|
|
1013
|
-
if (
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1016
|
-
const E =
|
|
1017
|
-
if (D.name = V, D && D.name === "all_fields") D.canEdit === !1 ? D.rowIndexes ?
|
|
1004
|
+
T && (C.ids = Ee(T)), i ? C.taskId = i : g ? C.id = g : (d && d._t_ && ie(d._t_ + "_id") && (C.id = ie(d._t_ + "_id")), o.notIdInitializationList && (C.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList))), d && (C.additionalParamMap = d), o.beanName && (C.beanName = o.beanName), o.refercePropMap && (C.refercePropMap = o.refercePropMap), (A = o.props) != null && A.enableFormDataPermission && (C.withDataPermission = !0), C.isMobile = q();
|
|
1005
|
+
const w = P(o.backendUrl, o.isTest) + "/dsc/workflow-commons/gets", v = Me();
|
|
1006
|
+
v.restorePageLoadState(), re(null, o, o, "beforeFormLoadData");
|
|
1007
|
+
const I = xe(o.code, C.id);
|
|
1008
|
+
U.post(w, C).then(async (R) => {
|
|
1009
|
+
I && await Ue(o, C.id, R), o.workflowOpinion = { showOpinionBox: !1 }, o.definitionId = R.definitionId, o.entity.task = R.taskParamMap, o.dataTypeMaps = R.dataTypeMap, Z(R, !0, o), o.workflowRules = at(o);
|
|
1010
|
+
const y = o.pageType;
|
|
1011
|
+
y && y === "form" && function(N) {
|
|
1012
|
+
(function(h) {
|
|
1013
|
+
const k = /* @__PURE__ */ new Map(), x = h.fieldPermissions;
|
|
1014
|
+
if (x !== void 0) for (let M = 0; M < x.length; M++) {
|
|
1015
|
+
const O = x[M].name;
|
|
1016
|
+
if (O) if (O.indexOf("$") === 0 && O.indexOf(".") > 0) {
|
|
1017
|
+
const E = x[M], D = JSON.parse(JSON.stringify(E)), _ = O.substring(1, O.indexOf(".")), V = O.substring(O.indexOf(".") + 1);
|
|
1018
|
+
if (D.name = V, D && D.name === "all_fields") D.canEdit === !1 ? D.rowIndexes ? k.set(_, [{ name: "all_fields", canEdit: !1, rowIndexes: D.rowIndexes }]) : k.set(_, [{ name: "all_fields", canEdit: !1 }]) : D.rowIndexes ? k.set(_, [{ name: "all_fields", canEdit: !0, rowIndexes: D.rowIndexes }]) : k.set(_, [{ name: "all_fields", canEdit: !0 }]);
|
|
1018
1019
|
else {
|
|
1019
|
-
let L =
|
|
1020
|
-
L || (L = []), L.push(D),
|
|
1020
|
+
let L = k.get(_);
|
|
1021
|
+
L || (L = []), L.push(D), k.set(_, L);
|
|
1021
1022
|
}
|
|
1022
|
-
} else
|
|
1023
|
+
} else k.set(O, x[M]);
|
|
1023
1024
|
}
|
|
1024
|
-
|
|
1025
|
-
})(
|
|
1026
|
-
const
|
|
1027
|
-
|
|
1028
|
-
const E =
|
|
1025
|
+
h.fieldPermissionMap = k;
|
|
1026
|
+
})(N), function(h) {
|
|
1027
|
+
const k = h.fieldPermissionMap, x = /* @__PURE__ */ new Map(), M = h.actionPermissions;
|
|
1028
|
+
M != null && Object.keys(M).forEach((O) => {
|
|
1029
|
+
const E = M[O], D = k.get(O);
|
|
1029
1030
|
if (D && D.length > 0 && D[0].name === "all_fields" && D[0].canEdit === !1) E.canUpdate = !1, E.canAdd = !1;
|
|
1030
1031
|
else {
|
|
1031
1032
|
E && Object.keys(E.deleteCondition).length !== 0 || (E.deleteCondition = null), E && Object.keys(E.updateCondition).length !== 0 || (E.updateCondition = null);
|
|
1032
1033
|
const _ = E.canUpdate, V = E.updateRowIndexes;
|
|
1033
|
-
_ !== void 0 && _ === !1 && V != null && V.length > 0 &&
|
|
1034
|
+
_ !== void 0 && _ === !1 && V != null && V.length > 0 && k.set(O, [{ name: "all_fields", canEdit: !1, rowIndexes: V }]);
|
|
1034
1035
|
}
|
|
1035
|
-
|
|
1036
|
-
}),
|
|
1037
|
-
}(
|
|
1038
|
-
}(o), o.canClick = !0, re(null, o, o, "afterFormLoadData"),
|
|
1039
|
-
}).catch((
|
|
1040
|
-
o.canClick = !0, l(
|
|
1036
|
+
x.set(O, E);
|
|
1037
|
+
}), h.actionPermissionMap = x;
|
|
1038
|
+
}(N);
|
|
1039
|
+
}(o), o.canClick = !0, re(null, o, o, "afterFormLoadData"), v.setFormPageDataLoadState(!0), c(R);
|
|
1040
|
+
}).catch((R) => {
|
|
1041
|
+
o.canClick = !0, l(R);
|
|
1041
1042
|
});
|
|
1042
1043
|
});
|
|
1043
1044
|
}(e, t, s) : function(o, a, r) {
|
|
1044
1045
|
return new Promise((c, l) => {
|
|
1045
|
-
var
|
|
1046
|
+
var R;
|
|
1046
1047
|
const m = o.systemCode, u = o.code, p = o.version, d = G(o);
|
|
1047
|
-
let
|
|
1048
|
-
r === void 0 || r ? (
|
|
1049
|
-
const i = d ? d.taskId : null, f = u,
|
|
1050
|
-
if (!w.id && d && d._t_ && ie(d._t_ + "_id") && (w.id = ie(d._t_ + "_id")), T && (w.ids = Ee(T)), o.notIdInitializationList && (w.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList)), d && (w.additionalParamMap = d), o.beanName && (w.beanName = o.beanName), i && (w.taskId = i), (
|
|
1051
|
-
const
|
|
1052
|
-
o.tableUuids.forEach((
|
|
1053
|
-
const
|
|
1054
|
-
h
|
|
1055
|
-
}), w.listCodesMap =
|
|
1048
|
+
let g = a || null, T = a ? [a] : null;
|
|
1049
|
+
r === void 0 || r ? (g || (g = d && d.id ? d.id : null), T || (T = d ? d.ids : null)) : (g = null, T = null, d._id = d.id, d.id = null);
|
|
1050
|
+
const i = d ? d.taskId : null, f = u, C = P(o.backendUrl, o.isTest), w = { pageCode: u, pageVersion: p, tableName: o.tableName, formNoRuleCode: o.formNoRuleCode, id: g, systemCode: m, functionCode: f + ".gets", listCodesMap: o.listCodesMap, listCodesInitSearchForm: o.listCodesInitSearchForm };
|
|
1051
|
+
if (!w.id && d && d._t_ && ie(d._t_ + "_id") && (w.id = ie(d._t_ + "_id")), T && (w.ids = Ee(T)), o.notIdInitializationList && (w.noIdAndTaskIdInitSetting = JSON.stringify(o.notIdInitializationList)), d && (w.additionalParamMap = d), o.beanName && (w.beanName = o.beanName), i && (w.taskId = i), (R = o.props) != null && R.enableFormDataPermission && (w.withDataPermission = !0), o.listCodesMap, (!o.listCodesMap || Object.keys(o.listCodesMap).length === 0) && o.tableUuids) {
|
|
1052
|
+
const y = {};
|
|
1053
|
+
o.tableUuids.forEach((N) => {
|
|
1054
|
+
const h = Re(u, p, N);
|
|
1055
|
+
y[h] = h;
|
|
1056
|
+
}), w.listCodesMap = y;
|
|
1056
1057
|
}
|
|
1057
1058
|
o.refercePropMap && (w.refercePropMap = o.refercePropMap), w.isMobile = q();
|
|
1058
|
-
const
|
|
1059
|
+
const v = C + "/dsc/commons/gets", I = Me();
|
|
1059
1060
|
I.restorePageLoadState(), re(null, o, o, "beforeFormLoadData");
|
|
1060
|
-
const
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
const
|
|
1064
|
-
o.rules =
|
|
1065
|
-
}).catch((
|
|
1066
|
-
o.canClick = !0, l(
|
|
1061
|
+
const A = xe(o.code, w.id);
|
|
1062
|
+
U.post(v, w).then(async (y) => {
|
|
1063
|
+
y && (A && await Ue(o, w.id, y), o.entity.data = y.entity, o.initFormNo = y.formNo);
|
|
1064
|
+
const N = o.customRules, h = o.rules, k = it(o, N, h);
|
|
1065
|
+
o.rules = k, o.canClick = !0, re(null, o, o, "afterFormLoadData"), I.setFormPageDataLoadState(!0), c(y);
|
|
1066
|
+
}).catch((y) => {
|
|
1067
|
+
o.canClick = !0, l(y);
|
|
1067
1068
|
});
|
|
1068
1069
|
});
|
|
1069
1070
|
}(e, t, s)) : new Promise((o, a) => {
|
|
@@ -1072,10 +1073,10 @@ function Ct(e, t, s) {
|
|
|
1072
1073
|
}
|
|
1073
1074
|
async function Ue(e, t, s) {
|
|
1074
1075
|
try {
|
|
1075
|
-
await fe.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), s.entity =
|
|
1076
|
+
await fe.confirm("检测到您有未保存的数据,是否继续填写上次未保存的数据?", "提示", { confirmButtonText: "是", cancelButtonText: "否", type: "warning" }), s.entity = ut(e.code, t, s.entity);
|
|
1076
1077
|
} catch {
|
|
1077
1078
|
}
|
|
1078
|
-
|
|
1079
|
+
pt(e.code, t);
|
|
1079
1080
|
}
|
|
1080
1081
|
function Ee(e) {
|
|
1081
1082
|
return e && (typeof e == "string" ? e = e.split(",") : typeof e == "number" && (e = [e])), e;
|
|
@@ -1088,17 +1089,17 @@ function ve(e) {
|
|
|
1088
1089
|
}
|
|
1089
1090
|
return null;
|
|
1090
1091
|
}
|
|
1091
|
-
function
|
|
1092
|
+
function Zt(e, t) {
|
|
1092
1093
|
const s = e.entity ? e.entity : {}, n = { data: s.data, page: s.page }, o = { pageCode: e.code, queryCondition: JSON.stringify(n), name: t }, a = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
1093
|
-
return
|
|
1094
|
+
return U.post(a, o);
|
|
1094
1095
|
}
|
|
1095
|
-
function
|
|
1096
|
+
function es(e) {
|
|
1096
1097
|
const t = e.code, s = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t;
|
|
1097
|
-
return
|
|
1098
|
+
return U.get(s);
|
|
1098
1099
|
}
|
|
1099
|
-
function
|
|
1100
|
+
function ts(e) {
|
|
1100
1101
|
const t = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e;
|
|
1101
|
-
return
|
|
1102
|
+
return U.delete(t);
|
|
1102
1103
|
}
|
|
1103
1104
|
function Le(e) {
|
|
1104
1105
|
e.exportNoticeInfo && (e.exportNoticeInfo.noticeInterval && clearInterval(e.exportNoticeInfo.noticeInterval), e.exportNoticeInfo.noticeComponent = null, e.exportNoticeInfo.noticeInterval = null), e.exportNoticeInfo = {}, $e(e.exportNoticeInfo, e.backendUrl, e.code);
|
|
@@ -1106,10 +1107,10 @@ function Le(e) {
|
|
|
1106
1107
|
function Ve(e, t, s) {
|
|
1107
1108
|
e.lastFileTask && !e.noticeComponent ? e.noticeComponent = ze({ title: b().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
|
|
1108
1109
|
e.lastFileTask.taskState === "Success" || e.lastFileTask.taskState === "Fail" || e.lastFileTask.taskState === "PartSuccess" ? we(t, s, e.lastFileTask.id, e) : (e.noticeComponent = null, e.noticeInterval == null && $e(e, t, s));
|
|
1109
|
-
}, message:
|
|
1110
|
+
}, message: ct(lt, { isShow: !0, backendUrl: t, lastFileTask: e.lastFileTask, onClickMsg(n) {
|
|
1110
1111
|
n.serverPath ? function(o, a, r, c, l, m) {
|
|
1111
1112
|
we(l, m, r, c);
|
|
1112
|
-
const u = ke(), p =
|
|
1113
|
+
const u = ke(), p = P(l), d = p + "/common/super-form/downloads?jwt=" + u + "&showName=" + encodeURI(o) + "&serverPath=" + a;
|
|
1113
1114
|
window.open(d);
|
|
1114
1115
|
}(n.fileName, n.serverPath, n.id, e, t, s) : we(t, s, n.id, e), e.noticeComponent.close(), e.noticeComponent = null;
|
|
1115
1116
|
} }) }) : (e.noticeComponent != null && (e.noticeComponent.close(), e.noticeComponent = null), e.noticeInterval && (clearInterval(e.noticeInterval), e.noticeInterval = null));
|
|
@@ -1124,10 +1125,10 @@ function $e(e, t, s) {
|
|
|
1124
1125
|
}, 3e3));
|
|
1125
1126
|
}
|
|
1126
1127
|
function qe(e, t) {
|
|
1127
|
-
return
|
|
1128
|
+
return ot(e, t);
|
|
1128
1129
|
}
|
|
1129
1130
|
function we(e, t, s, n) {
|
|
1130
|
-
|
|
1131
|
+
nt(e, s).then(() => {
|
|
1131
1132
|
(function(o, a, r) {
|
|
1132
1133
|
qe(a, r).then((c) => {
|
|
1133
1134
|
o.lastFileTask = c, Ve(o, a, r);
|
|
@@ -1139,31 +1140,31 @@ export {
|
|
|
1139
1140
|
se as checkAndTipFileUploading,
|
|
1140
1141
|
J as dealAfterOperate,
|
|
1141
1142
|
Z as dealCompleteTaskParam,
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1143
|
+
ts as deleteChartCondition,
|
|
1144
|
+
$t as doAddSigner,
|
|
1145
|
+
qt as doAddTransactor,
|
|
1146
|
+
Vt as doAssign,
|
|
1147
|
+
Ht as doCreateCopyTask,
|
|
1147
1148
|
Le as doFileTaskFunc,
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1149
|
+
Bt as doImportFinally,
|
|
1150
|
+
zt as doRemoveSigners,
|
|
1151
|
+
Xt as doRemoveTransactors,
|
|
1152
|
+
Jt as doReturnTaskTo,
|
|
1153
|
+
jt as exportFormReport,
|
|
1154
|
+
gt as extractWorkflowFunc,
|
|
1154
1155
|
G as getAdditionalParamMap,
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1156
|
+
bt as getFormData,
|
|
1157
|
+
Yt as getRemoveSigner,
|
|
1158
|
+
Kt as getRemoveTransactor,
|
|
1159
|
+
mt as getSaveFormRequest,
|
|
1160
|
+
dt as getSaveFormRequestWithRow,
|
|
1161
|
+
Gt as getTaskInformitions,
|
|
1162
|
+
Qt as isVisibleWorkflowButton,
|
|
1163
|
+
Lt as judgeDataNumber,
|
|
1164
|
+
es as listChartConditions,
|
|
1165
|
+
Ft as refreshFormOrListPage,
|
|
1165
1166
|
Be as refreshPage,
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1167
|
+
Zt as saveChartConditionBase,
|
|
1168
|
+
Dt as standardEvents,
|
|
1169
|
+
Wt as updateValuesWhenCloseDialog
|
|
1169
1170
|
};
|