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