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