super-page-runtime 2.2.80 → 2.2.86
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/charts/chart-columnline-util.js +74 -74
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
- package/dist/es/components/runtime/utils/events/standard-event.js +211 -214
- package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
- package/dist/es/components/runtime/utils/page-init-util.js +6 -5
- package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +127 -113
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +87 -53
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +38 -33
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +9 -8
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +61 -59
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +76 -72
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +8 -3
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +11 -11
- package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +9 -7
- package/dist/es/index.js +1 -0
- package/dist/es/style.css +225 -99
- package/package.json +2 -2
|
@@ -5,20 +5,20 @@ import { ElMessage as u, ElMessageBox as p } from "element-plus";
|
|
|
5
5
|
import { getToken as d, getSessionCache as m, setSessionCache as g } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as f } from "../global-refs.js";
|
|
7
7
|
import b from "../eventBus.js";
|
|
8
|
-
import
|
|
9
|
-
import { handleEvent as
|
|
8
|
+
import "axios";
|
|
9
|
+
import { handleEvent as C, getTableUuid as T, doAfterClickEvent as y } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import { updateChartDatasources as
|
|
13
|
-
import
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
15
|
-
import { getWorkflowRules as
|
|
16
|
-
import { functions as
|
|
17
|
-
import { usePageContextStore as
|
|
18
|
-
const
|
|
19
|
-
return console.log("表单标准事件保存save--params=", e2),
|
|
11
|
+
import { getPermissionCodes as h, getDefaultValue as w, getModelFields as k } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as v, caculateShowCondition as M, getVariableValue as R, setVariableValue as N } from "../page-helper-util.js";
|
|
13
|
+
import S from "./print-label.js";
|
|
14
|
+
import { getTableNameByTableUuid as I } from "../table-utils.js";
|
|
15
|
+
import { getWorkflowRules as x, packageCustomRules as A } from "./validator-util.js";
|
|
16
|
+
import { functions as O } from "../api/page-expose-util.js";
|
|
17
|
+
import { usePageContextStore as U } from "../page-store.js";
|
|
18
|
+
const E = { save: function(e2) {
|
|
19
|
+
return console.log("表单标准事件保存save--params=", e2), D(e2, false);
|
|
20
20
|
}, saveList: function(e2) {
|
|
21
|
-
return console.log("列表标准事件保存saveList--params=", e2),
|
|
21
|
+
return console.log("列表标准事件保存saveList--params=", e2), D(e2, true);
|
|
22
22
|
}, exportForm: function(e2) {
|
|
23
23
|
console.log("表单标准事件导出报告exportForm--params=", e2);
|
|
24
24
|
const t2 = e2.pageContext.code + "_";
|
|
@@ -28,21 +28,21 @@ const _ = { save: function(e2) {
|
|
|
28
28
|
const t2 = e2.pageContext.code + "_";
|
|
29
29
|
b.$emit(t2 + "export-pdf-report", e2);
|
|
30
30
|
}, submit: function(e2) {
|
|
31
|
-
return console.log("表单标准事件提交submit--params=", e2),
|
|
31
|
+
return console.log("表单标准事件提交submit--params=", e2), G(e2, false, "submit", "/dsc/commons/submits");
|
|
32
32
|
}, submitList: function(e2) {
|
|
33
|
-
return console.log("列表标准事件提交submitList--params=", e2),
|
|
33
|
+
return console.log("列表标准事件提交submitList--params=", e2), G(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
34
34
|
}, agree: function(e2) {
|
|
35
|
-
return console.log("表单标准事件同意agree--params=", e2),
|
|
35
|
+
return console.log("表单标准事件同意agree--params=", e2), G(e2, false, "agree", "/dsc/commons/approves");
|
|
36
36
|
}, agreeList: function(e2) {
|
|
37
|
-
return console.log("列表标准事件同意agreeList--params=", e2),
|
|
37
|
+
return console.log("列表标准事件同意agreeList--params=", e2), G(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
38
38
|
}, disagree: function(e2) {
|
|
39
|
-
return console.log("表单标准事件不同意disagree--params=", e2),
|
|
39
|
+
return console.log("表单标准事件不同意disagree--params=", e2), G(e2, false, "disagree", "/dsc/commons/refuses");
|
|
40
40
|
}, disagreeList: function(e2) {
|
|
41
|
-
return console.log("列表标准事件不同意disagreeList--params=", e2),
|
|
41
|
+
return console.log("列表标准事件不同意disagreeList--params=", e2), G(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
42
42
|
}, back: function(e2) {
|
|
43
43
|
console.log("表单标准事件返回back--params=", e2);
|
|
44
44
|
const t2 = e2.pageContext;
|
|
45
|
-
|
|
45
|
+
$(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
|
|
46
46
|
}, delete: function(e2) {
|
|
47
47
|
return console.log("列表标准事件删除delete--params=", e2), function(e3) {
|
|
48
48
|
return new Promise((s2, a2) => {
|
|
@@ -50,19 +50,19 @@ const _ = { save: function(e2) {
|
|
|
50
50
|
if (!i2 || 0 === i2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
51
51
|
p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
52
52
|
var _a;
|
|
53
|
-
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, g2 =
|
|
53
|
+
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, g2 = I(r2, m2);
|
|
54
54
|
let b2 = o(d2, r2.isTest) + "/dsc/commons/" + g2;
|
|
55
55
|
b2 = n(b2, p2, d2, r2.isTest);
|
|
56
|
-
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, T2 = t(r2), y2 =
|
|
57
|
-
r2.beanName && (
|
|
58
|
-
const
|
|
59
|
-
|
|
56
|
+
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, T2 = t(r2), y2 = h(l2, r2), P2 = { ids: i2, functionCode: y2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
57
|
+
r2.beanName && (P2.beanName = r2.beanName);
|
|
58
|
+
const w2 = l2.props.deleteLogicSetting;
|
|
59
|
+
w2 && ("object" == typeof w2 ? P2.deleteLogicSetting = JSON.stringify(w2) : "string" == typeof w2 && (P2.deleteLogicSetting = w2));
|
|
60
60
|
const k2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
|
|
61
|
-
k2 && (
|
|
61
|
+
k2 && (P2.logSettingText = k2.join(""));
|
|
62
62
|
const v2 = l2.props.base.isSafeDelete;
|
|
63
|
-
v2 && (
|
|
63
|
+
v2 && (P2.isSafeDelete = v2), c.delete(b2, { data: P2 }).then((e4) => {
|
|
64
64
|
const t2 = f(r2, m2);
|
|
65
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()),
|
|
65
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), F(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
66
66
|
}).catch((e4) => {
|
|
67
67
|
a2(e4);
|
|
68
68
|
});
|
|
@@ -86,20 +86,20 @@ const _ = { save: function(e2) {
|
|
|
86
86
|
const b2 = e3.listCode;
|
|
87
87
|
b2 && (g2 += "&listCode=" + b2);
|
|
88
88
|
t2.beanName && (g2 += "&beanName=" + t2.beanName);
|
|
89
|
-
const C2 =
|
|
89
|
+
const C2 = h(s2, t2);
|
|
90
90
|
C2 && (g2 += "&functionCode=" + C2);
|
|
91
91
|
t2.tableName && (g2 += "&tableName=" + t2.tableName);
|
|
92
92
|
t2.code && (g2 += "&pageCode=" + t2.code);
|
|
93
93
|
t2.version && (g2 += "&pageVersion=" + t2.version);
|
|
94
94
|
const T2 = d();
|
|
95
95
|
T2 && (g2 += "&JWT=" + T2);
|
|
96
|
-
const y2 = "_RUN_CURRENT_ROLE",
|
|
97
|
-
|
|
96
|
+
const y2 = "_RUN_CURRENT_ROLE", P2 = m(y2);
|
|
97
|
+
P2 && (g2 += "&" + y2 + "=" + P2);
|
|
98
98
|
if (n2) {
|
|
99
99
|
g2 += "&isPermission=" + (void 0 === n2.isPermission || "true" === n2.isPermission || n2.isPermission);
|
|
100
100
|
}
|
|
101
|
-
const
|
|
102
|
-
window.open(
|
|
101
|
+
const w2 = o(u2, t2.isTest);
|
|
102
|
+
window.open(w2 + "/dsc/commons/download-files" + g2);
|
|
103
103
|
}(e2);
|
|
104
104
|
}, import: function(e2) {
|
|
105
105
|
console.log("列表标准事件 导入import--params=", e2);
|
|
@@ -114,7 +114,7 @@ const _ = { save: function(e2) {
|
|
|
114
114
|
c2 || (c2 = o2.code);
|
|
115
115
|
let l2 = false;
|
|
116
116
|
l2 = void 0 !== n2.isAsync && null !== n2.isAsync && n2.isAsync;
|
|
117
|
-
const u2 = void 0 === n2.isPermission || "true" === n2.isPermission || n2.isPermission, p2 =
|
|
117
|
+
const u2 = void 0 === n2.isPermission || "true" === n2.isPermission || n2.isPermission, p2 = h(e3.configureObj, o2), d2 = c2, m2 = { backendUrl: o2.backendUrl, pageContext: o2 };
|
|
118
118
|
console.log("exportFunc======exportOptions=", m2), window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, a2, p2, null, m2, l2, o2.code, u2);
|
|
119
119
|
});
|
|
120
120
|
}(e2);
|
|
@@ -127,50 +127,51 @@ const _ = { save: function(e2) {
|
|
|
127
127
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
128
128
|
f(t2, s2).showMobileSearch();
|
|
129
129
|
}, workflowSave: function(e2) {
|
|
130
|
-
return console.log("流程表单标准事件 暂存workflowSave--params=", e2), async function(e3) {
|
|
130
|
+
return b.$emit("clearTableAllStartEditing"), console.log("流程表单标准事件 暂存workflowSave--params=", e2), async function(e3) {
|
|
131
131
|
return new Promise((t2, s2) => {
|
|
132
132
|
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
133
133
|
let d2 = o(p2, a2.isTest) + "/dsc/workflow-commons";
|
|
134
134
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
135
|
-
const m2 =
|
|
135
|
+
const m2 = z(e3);
|
|
136
136
|
let g2;
|
|
137
137
|
g2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), g2.then((s3) => {
|
|
138
138
|
let o2 = true;
|
|
139
|
-
s3 && (o2 =
|
|
139
|
+
s3 && (o2 = K(s3, false, a2, e3, null)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), b.$emit("clearTableAllEndEditing"), t2(true);
|
|
140
140
|
}).catch((e4) => {
|
|
141
141
|
s2(e4);
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
}(e2);
|
|
145
145
|
}, submitProcess: function(e2) {
|
|
146
|
-
|
|
146
|
+
var _a;
|
|
147
|
+
return b.$emit("clearTableAllStartEditing"), console.log("流程表单标准事件 提交流程submitProcess--params=", e2), (_a = $agilebuilderUIStore == null ? void 0 : $agilebuilderUIStore.dispatch) == null ? void 0 : _a.call($agilebuilderUIStore, "clearAllEditing"), function(e3) {
|
|
147
148
|
return new Promise((t2, s2) => {
|
|
148
149
|
const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
149
150
|
let p2 = o(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
150
151
|
if (p2 = n(p2, i2, r2, a2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
151
|
-
const d2 =
|
|
152
|
+
const d2 = z(e3), m2 = c.post(p2, d2);
|
|
152
153
|
m2 && m2.then((s3) => {
|
|
153
154
|
let o2 = true;
|
|
154
|
-
s3 && (o2 =
|
|
155
|
+
s3 && (o2 = K(s3, false, a2, e3, null)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), b.$emit("clearTableAllEndEditing"), t2(true);
|
|
155
156
|
}).catch((e4) => {
|
|
156
157
|
s2(e4);
|
|
157
158
|
});
|
|
158
159
|
});
|
|
159
160
|
}(e2);
|
|
160
161
|
}, submitTask: function(e2) {
|
|
161
|
-
return console.log("流程表单标准事件 提交任务submitTask--params=", e2),
|
|
162
|
+
return console.log("流程表单标准事件 提交任务submitTask--params=", e2), Q(e2, "SUBMIT");
|
|
162
163
|
}, approve: function(e2) {
|
|
163
|
-
return console.log("流程表单标准事件 同意approve--params=", e2),
|
|
164
|
+
return console.log("流程表单标准事件 同意approve--params=", e2), Q(e2, "APPROVE");
|
|
164
165
|
}, refuse: function(e2) {
|
|
165
|
-
return console.log("流程表单标准事件 不同意refuse--params=", e2),
|
|
166
|
+
return console.log("流程表单标准事件 不同意refuse--params=", e2), Q(e2, "REFUSE");
|
|
166
167
|
}, readed: function(e2) {
|
|
167
|
-
return console.log("流程表单标准事件 已阅readed--params=", e2),
|
|
168
|
+
return console.log("流程表单标准事件 已阅readed--params=", e2), Q(e2, "READED");
|
|
168
169
|
}, agreement: function(e2) {
|
|
169
|
-
return console.log("流程表单标准事件 赞成agreement--params=", e2),
|
|
170
|
+
return console.log("流程表单标准事件 赞成agreement--params=", e2), Q(e2, "AGREEMENT");
|
|
170
171
|
}, oppose: function(e2) {
|
|
171
|
-
return console.log("流程表单标准事件 反对oppose--params=", e2),
|
|
172
|
+
return console.log("流程表单标准事件 反对oppose--params=", e2), Q(e2, "OPPOSE");
|
|
172
173
|
}, kiken: function(e2) {
|
|
173
|
-
return console.log("流程表单标准事件 弃权kiken--params=", e2),
|
|
174
|
+
return console.log("流程表单标准事件 弃权kiken--params=", e2), Q(e2, "KIKEN");
|
|
174
175
|
}, assign: function(e2) {
|
|
175
176
|
return console.log("流程表单标准事件 指派assign--params=", e2), function(e3) {
|
|
176
177
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
@@ -188,23 +189,23 @@ const _ = { save: function(e2) {
|
|
|
188
189
|
}(e2);
|
|
189
190
|
}, drawTask: function(e2) {
|
|
190
191
|
return console.log("流程表单标准事件 领取drawTask--params=", e2), function(e3) {
|
|
191
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 =
|
|
192
|
-
return
|
|
192
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = z(e3);
|
|
193
|
+
return oe(e3, a2, n2, "superPageRuntimeMessage.successfulDrawTask");
|
|
193
194
|
}(e2);
|
|
194
195
|
}, abandonReceive: function(e2) {
|
|
195
196
|
return console.log("流程表单标准事件 放弃领取abandonReceive--params=", e2), function(e3) {
|
|
196
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 =
|
|
197
|
-
return
|
|
197
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = z(e3);
|
|
198
|
+
return oe(e3, a2, n2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
198
199
|
}(e2);
|
|
199
200
|
}, returnToPreviousTask: function(e2) {
|
|
200
201
|
return console.log("流程表单标准事件 驳回returnToPreviousTask--params=", e2), function(e3) {
|
|
201
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 =
|
|
202
|
-
return
|
|
202
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = z(e3);
|
|
203
|
+
return oe(e3, a2, n2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
203
204
|
}(e2);
|
|
204
205
|
}, endInstance: function(e2) {
|
|
205
206
|
return console.log("流程表单标准事件 强制结束endInstance--params=", e2), function(e3) {
|
|
206
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 =
|
|
207
|
-
return
|
|
207
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = z(e3);
|
|
208
|
+
return oe(e3, a2, n2, "superPageRuntimeMessage.successfulEndInstance");
|
|
208
209
|
}(e2);
|
|
209
210
|
}, returnTaskTo: function(e2) {
|
|
210
211
|
return console.log("流程表单标准事件 退回returnTaskTo--params=", e2), function(e3) {
|
|
@@ -218,14 +219,14 @@ const _ = { save: function(e2) {
|
|
|
218
219
|
}(e2);
|
|
219
220
|
}, retrieveTask: function(e2) {
|
|
220
221
|
return console.log("流程表单标准事件 取回retrieveTask--params=", e2), function(e3) {
|
|
221
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 =
|
|
222
|
-
return
|
|
222
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, n2 = o(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = z(e3);
|
|
223
|
+
return oe(e3, a2, n2, "superPageRuntimeMessage.successfulRetrieve");
|
|
223
224
|
}(e2);
|
|
224
225
|
}, viewDetail: function(e2) {
|
|
225
226
|
}, lineEditCreate: function(e2) {
|
|
226
227
|
return console.log("列表行编辑 新建lineEditCreate--params=", e2), function(e3) {
|
|
227
228
|
const t2 = e3.pageContext, s2 = e3.tableUuid, o2 = f(t2, s2);
|
|
228
|
-
o2 && (e3.getDefaultValueFunc =
|
|
229
|
+
o2 && (e3.getDefaultValueFunc = w, o2.createRow(e3.listCode, {}, e3));
|
|
229
230
|
}(e2);
|
|
230
231
|
}, printLabel: function(e2) {
|
|
231
232
|
return console.log("打印标签 打印标签事件--params=", e2), function(e3) {
|
|
@@ -235,15 +236,15 @@ const _ = { save: function(e2) {
|
|
|
235
236
|
} catch (t3) {
|
|
236
237
|
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
237
238
|
}
|
|
238
|
-
|
|
239
|
+
S.printLabel(e3, t2);
|
|
239
240
|
}(e2);
|
|
240
241
|
}, queryCharts: function(e2) {
|
|
241
|
-
console.log("查询统计图--params=", e2),
|
|
242
|
+
console.log("查询统计图--params=", e2), _(e2);
|
|
242
243
|
}, resetCharts: function(t2) {
|
|
243
244
|
var _a, _b;
|
|
244
245
|
console.log("重置统计图--params=", t2);
|
|
245
246
|
const s2 = t2.pageContext;
|
|
246
|
-
s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true,
|
|
247
|
+
s2.entity.data = e((_a = s2.initChartData) == null ? void 0 : _a.data), s2.entity.page = e((_b = s2.initChartData) == null ? void 0 : _b.page), t2.isInitChart = true, _(t2);
|
|
247
248
|
}, exportCharts: function(e2) {
|
|
248
249
|
console.log("导出统计图--params=", e2), function(e3) {
|
|
249
250
|
const t2 = e3.pageContext, s2 = t2.allChartUuids;
|
|
@@ -262,15 +263,13 @@ const _ = { save: function(e2) {
|
|
|
262
263
|
}
|
|
263
264
|
}
|
|
264
265
|
if (!r2 || 0 == r2.length) return void console.log("无需要导出的统计图数据");
|
|
265
|
-
let
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
const
|
|
269
|
-
|
|
270
|
-
const g2 = o(p2, t2.isTest) + "/dsc/commons/exportChart";
|
|
271
|
-
C.defaults.headers.common.Authorization = d(), m2 = C.post(g2, u2, { responseType: "blob" }), m2.then((e4) => {
|
|
266
|
+
let l2, u2 = t2.label;
|
|
267
|
+
u2 || (u2 = t2.code);
|
|
268
|
+
l2 = u2;
|
|
269
|
+
const p2 = { reportDataList: r2, beanName: t2.beanName }, d2 = t2.backendUrl, m2 = o(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
270
|
+
c.post(m2, p2, { responseType: "blob" }).then((e4) => {
|
|
272
271
|
const t3 = document.createElement("a");
|
|
273
|
-
t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download",
|
|
272
|
+
t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", l2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
|
|
274
273
|
}).finally(() => {
|
|
275
274
|
a2 && (a2.state = i2);
|
|
276
275
|
});
|
|
@@ -281,43 +280,41 @@ const _ = { save: function(e2) {
|
|
|
281
280
|
b.$emit(o2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
282
281
|
}(e2);
|
|
283
282
|
} };
|
|
284
|
-
function
|
|
283
|
+
function _(e2) {
|
|
285
284
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
286
285
|
if (!s2 || 0 == s2.length) return void console.log("无需要查询的统计图数据");
|
|
287
286
|
const o2 = e2.configureObj;
|
|
288
287
|
let n2 = null;
|
|
289
288
|
o2 && o2.runtime && (n2 = o2.runtime.props);
|
|
290
289
|
const a2 = n2 ? n2.state : void 0;
|
|
291
|
-
n2 && (n2.state = "disabled"),
|
|
290
|
+
n2 && (n2.state = "disabled"), v(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
292
291
|
n2 && (n2.state = a2);
|
|
293
292
|
}).catch(() => {
|
|
294
293
|
n2 && (n2.state = a2);
|
|
295
294
|
});
|
|
296
295
|
}
|
|
297
|
-
function
|
|
296
|
+
function j(e2, s2, n2, a2) {
|
|
298
297
|
var _a;
|
|
299
|
-
const i2 = n2.templateUuid, r2 = n2.templateName,
|
|
298
|
+
const i2 = n2.templateUuid, r2 = n2.templateName, l2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, p2 = t(e2), d2 = e2.beanName, m2 = s2.props.base, g2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, b2 = O.getFormViewData(e2);
|
|
300
299
|
console.log("exportFormReport----viewModels=", b2);
|
|
301
|
-
const
|
|
302
|
-
|
|
303
|
-
const P2 =
|
|
304
|
-
let
|
|
305
|
-
|
|
300
|
+
const C2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, T2 = { entity: b2, fileName: i2, showName: r2, beanName: d2, isWorkflowForm: p2, functionCode: h(s2, e2), tableName: g2, isPermission: C2 + "", systemCode: l2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
301
|
+
u2 && (T2.logSettingText = u2.join(""));
|
|
302
|
+
const P2 = ee(e2);
|
|
303
|
+
let w2;
|
|
304
|
+
T2.additionalParamMap = P2, w2 = a2 ? function(e3, t2, s3, n3) {
|
|
306
305
|
return new Promise((a3, i3) => {
|
|
307
306
|
const r3 = o(t2, n3) + "/dsc/commons/export-pdf";
|
|
308
|
-
|
|
309
|
-
C.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
307
|
+
c.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
310
308
|
const s4 = new Blob([t3.data]), o2 = document.createElement("a");
|
|
311
309
|
o2.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o2.style.display = "none", o2.target = "_blank", o2.href = URL.createObjectURL(s4), document.body.appendChild(o2), o2.click(), URL.revokeObjectURL(o2.href), document.body.removeChild(o2), a3(true);
|
|
312
310
|
}).catch((e4) => {
|
|
313
311
|
i3(e4);
|
|
314
312
|
});
|
|
315
313
|
});
|
|
316
|
-
}(r2, f2,
|
|
314
|
+
}(r2, f2, T2, e2.isTest) : function(e3, t2, s3, n3) {
|
|
317
315
|
return new Promise((a3, i3) => {
|
|
318
316
|
const r3 = o(t2, n3) + "/dsc/commons/export-reports";
|
|
319
|
-
|
|
320
|
-
C.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
317
|
+
c.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
321
318
|
const s4 = new Blob([t3.data]);
|
|
322
319
|
let o2 = "报告.xlsx";
|
|
323
320
|
e3 && (o2 = e3);
|
|
@@ -327,43 +324,43 @@ function D(e2, s2, n2, a2) {
|
|
|
327
324
|
i3(e4);
|
|
328
325
|
});
|
|
329
326
|
});
|
|
330
|
-
}(r2, f2,
|
|
331
|
-
|
|
327
|
+
}(r2, f2, T2, e2.isTest), w2 && w2.then(() => {
|
|
328
|
+
y(e2, s2);
|
|
332
329
|
});
|
|
333
330
|
}
|
|
334
|
-
function
|
|
331
|
+
function D(e2, t2) {
|
|
335
332
|
return new Promise((s2, o2) => {
|
|
336
333
|
const n2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
337
334
|
let l2 = false;
|
|
338
335
|
c2 && "noOperation" === c2 && (l2 = true);
|
|
339
|
-
const u2 =
|
|
336
|
+
const u2 = W(n2, a2, "/dsc/commons", l2, i2, r2);
|
|
340
337
|
u2 ? u2.then((e3) => {
|
|
341
|
-
|
|
338
|
+
F(n2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
342
339
|
}).catch((e3) => {
|
|
343
340
|
o2(e3);
|
|
344
341
|
}) : o2("保存时request不存在");
|
|
345
342
|
});
|
|
346
343
|
}
|
|
347
|
-
function
|
|
344
|
+
function L(e2, o2, n2, a2, i2, r2, c2) {
|
|
348
345
|
var _a;
|
|
349
|
-
const l2 = t(e2), u2 = e2.systemCode, p2 = void 0 === o2.props.base.isPermission || "true" === o2.props.base.isPermission || o2.props.base.isPermission, d2 =
|
|
346
|
+
const l2 = t(e2), u2 = e2.systemCode, p2 = void 0 === o2.props.base.isPermission || "true" === o2.props.base.isPermission || o2.props.base.isPermission, d2 = h(o2, e2);
|
|
350
347
|
let m2 = c2;
|
|
351
348
|
m2 || (m2 = e2.entity.data);
|
|
352
349
|
const g2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: l2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
353
350
|
r2 && (g2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? g2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : g2.judgeHeavyList = e2.judgeHeavyList);
|
|
354
351
|
const f2 = o2.props.base.conversionCodes;
|
|
355
352
|
f2 && (s(f2) ? g2.dataConversionRule = f2.join(",") : "string" == typeof f2 && (g2.dataConversionRule = f2)), console.log("getCommonFormRequestParam--------configureObj----", o2);
|
|
356
|
-
const b2 =
|
|
353
|
+
const b2 = de(o2);
|
|
357
354
|
b2 && (g2.autoSetValueData = b2);
|
|
358
355
|
const C2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
359
356
|
C2 && (g2.logSettingText = C2.join("")), g2.systemCode || (g2.systemCode = u2);
|
|
360
357
|
const T2 = e2.beanName;
|
|
361
358
|
T2 && (g2.beanName = T2), i2 && (g2.dynamicColumnInfo = i2), a2 && (g2.mainDefaultValueColumns = a2);
|
|
362
|
-
const y2 =
|
|
359
|
+
const y2 = ee(e2);
|
|
363
360
|
return g2.additionalParamMap = y2, void 0 !== n2 && (g2.unControlVersion = n2), g2;
|
|
364
361
|
}
|
|
365
|
-
function
|
|
366
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 =
|
|
362
|
+
function B(e2, t2, s2, a2, i2, r2, l2, u2) {
|
|
363
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = L(e2, t2, a2, i2, r2, null, l2);
|
|
367
364
|
return u2 && u2.tableName && (m2.tableName = u2.tableName), function(e3, t3, s3, a3, i3, r3) {
|
|
368
365
|
const l3 = o(t3, r3);
|
|
369
366
|
let u3, p3 = l3 + a3;
|
|
@@ -371,14 +368,14 @@ function W(e2, t2, s2, a2, i2, r2, l2, u2) {
|
|
|
371
368
|
return u3;
|
|
372
369
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
373
370
|
}
|
|
374
|
-
function
|
|
375
|
-
return
|
|
371
|
+
function W(e2, t2, s2, o2, n2, a2) {
|
|
372
|
+
return B(e2, t2, s2, o2, n2, a2, null, null);
|
|
376
373
|
}
|
|
377
|
-
function
|
|
378
|
-
const i2 =
|
|
374
|
+
function F(t2, s2, o2, n2, a2) {
|
|
375
|
+
const i2 = V(t2, s2, a2);
|
|
379
376
|
i2 && "list" === i2 ? (!function(t3, s3, o3, n3) {
|
|
380
377
|
let a3 = s3.props.base.successOperation;
|
|
381
|
-
const i3 = s3.props.base.isNeedValueMapping, r2 =
|
|
378
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = T(t3, s3);
|
|
382
379
|
a3 || (a3 = "refresh");
|
|
383
380
|
if ("refresh" === a3) if (r2) {
|
|
384
381
|
f(t3, r2).refresh();
|
|
@@ -386,7 +383,7 @@ function V(t2, s2, o2, n2, a2) {
|
|
|
386
383
|
else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
387
384
|
const s4 = e(t3.entity.page);
|
|
388
385
|
let n4 = o3;
|
|
389
|
-
n4 || (n4 = {}), Object.assign(s4, n4),
|
|
386
|
+
n4 || (n4 = {}), Object.assign(s4, n4), $(t3, s4, i3);
|
|
390
387
|
}
|
|
391
388
|
n3 && u({ message: l().t(n3), type: "success", showClose: true });
|
|
392
389
|
}(t2, s2, o2, n2), t2.canClick = true) : i2 && "form" === i2 ? function(e2, t3, s3, o3) {
|
|
@@ -398,17 +395,17 @@ function V(t2, s2, o2, n2, a2) {
|
|
|
398
395
|
const o5 = t4.props.base.successOperation;
|
|
399
396
|
if (!o5 || null === o5) return;
|
|
400
397
|
const n4 = t4.props.base.isNeedValueMapping;
|
|
401
|
-
"noOperation" === o5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === o5 ? s4 && (s4.id || s4.ID) ?
|
|
398
|
+
"noOperation" === o5 ? (s4 && (e3.entity.data = s4), e3.canClick = true) : "refresh" === o5 ? s4 && (s4.id || s4.ID) ? le(e3, s4.ID ? s4.ID : s4.id) : e3.canClick = true : "closeWindow" !== o5 && "closeWindowAndRefresh" !== o5 || ($(e3, s4, n4), e3.canClick = true, console.log("afterSuccessOperateInForm--successOperation=--", o5));
|
|
402
399
|
}(e2, t3, { ...n3, ...e2.entity.page });
|
|
403
400
|
} else e2.canClick = true;
|
|
404
401
|
o3 && u({ message: l().t(o3), type: "success", showClose: true });
|
|
405
402
|
}(t2, s2, o2, n2) : t2.canClick = true;
|
|
406
403
|
}
|
|
407
|
-
function
|
|
404
|
+
function V(e2, t2, s2) {
|
|
408
405
|
let o2;
|
|
409
406
|
return void 0 === s2 ? o2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (o2 = "form"), o2 || (o2 = e2.pageType), o2;
|
|
410
407
|
}
|
|
411
|
-
function
|
|
408
|
+
function $(e2, t2, s2) {
|
|
412
409
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
413
410
|
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
414
411
|
else {
|
|
@@ -416,7 +413,7 @@ function H(e2, t2, s2) {
|
|
|
416
413
|
b.$emit(i2 + "close-dialog", { isNeedValueMapping: a2, dataModel: t2, sourceTableName: n2, jumpMode: o2 });
|
|
417
414
|
}
|
|
418
415
|
}
|
|
419
|
-
function
|
|
416
|
+
function q(e2, t2, s2, o2, n2) {
|
|
420
417
|
var _a;
|
|
421
418
|
n2 || (n2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (n2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
422
419
|
const a2 = e2.tableName;
|
|
@@ -426,31 +423,31 @@ function $(e2, t2, s2, o2, n2) {
|
|
|
426
423
|
Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
|
|
427
424
|
const t4 = e4.source;
|
|
428
425
|
if (!t4) return;
|
|
429
|
-
const n3 = t4.split("."), a3 =
|
|
430
|
-
|
|
426
|
+
const n3 = t4.split("."), a3 = R(o3, n3), i2 = e4.target, r2 = k(null, i2);
|
|
427
|
+
N(s3.entity, r2, a3);
|
|
431
428
|
});
|
|
432
429
|
}
|
|
433
|
-
}(s2, n2, e2),
|
|
430
|
+
}(s2, n2, e2), C(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: o2, entity: e2.entity.data, targetTableName: a2 });
|
|
434
431
|
}
|
|
435
|
-
function
|
|
432
|
+
function H(e2, t2, s2, o2) {
|
|
436
433
|
var _a;
|
|
437
434
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
438
435
|
let n2 = o2;
|
|
439
436
|
n2 || (n2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation), console.log("refreshFormOrListPage22=====successOperation=", n2, "isRefreshWhenClosePopup=", s2);
|
|
440
|
-
const a2 =
|
|
437
|
+
const a2 = V(e2, t2);
|
|
441
438
|
if (console.log("refreshFormOrListPage22=====buttonForPageType=", a2), a2 && "list" === a2 && !n2 && (n2 = "refresh"), console.log("refreshFormOrListPage33=====successOperation=", n2), "refresh" === n2) {
|
|
442
439
|
if (a2 && "list" === a2) {
|
|
443
|
-
const s3 =
|
|
440
|
+
const s3 = T(e2, t2);
|
|
444
441
|
if (s3) {
|
|
445
442
|
f(e2, s3).refresh();
|
|
446
443
|
} else console.error("tableUuid is empty");
|
|
447
444
|
} else if (a2 && "form" === a2) {
|
|
448
445
|
const t3 = e2.entity.data;
|
|
449
|
-
|
|
446
|
+
le(e2, t3.ID ? t3.ID : t3.id);
|
|
450
447
|
}
|
|
451
448
|
}
|
|
452
449
|
}
|
|
453
|
-
function
|
|
450
|
+
function G(e2, t2, s2, a2) {
|
|
454
451
|
return new Promise((r2, u2) => {
|
|
455
452
|
const d2 = e2.pageContext, m2 = e2.configureObj, g2 = e2.mainDefaultValueColumns, f2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
456
453
|
let T2 = false;
|
|
@@ -458,13 +455,13 @@ function J(e2, t2, s2, a2) {
|
|
|
458
455
|
let y2 = d2.tableName;
|
|
459
456
|
if (t2) {
|
|
460
457
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
461
|
-
y2 =
|
|
458
|
+
y2 = I(d2, t3);
|
|
462
459
|
}
|
|
463
|
-
const
|
|
460
|
+
const P2 = function(e3, t3, s3, a3, r3, u3, d3, m3, g3) {
|
|
464
461
|
return new Promise((f3, b3) => {
|
|
465
462
|
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
466
463
|
p.confirm(l().t(T3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
467
|
-
const i2 = e3.systemCode, l2 = e3.backendUrl, p2 =
|
|
464
|
+
const i2 = e3.systemCode, l2 = e3.backendUrl, p2 = L(e3, t3, a3, r3, u3, m3, null);
|
|
468
465
|
p2.tableName = g3;
|
|
469
466
|
let d4 = o(l2, e3.isTest) + s3;
|
|
470
467
|
d4 = n(d4, i2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
@@ -477,46 +474,46 @@ function J(e2, t2, s2, a2) {
|
|
|
477
474
|
});
|
|
478
475
|
});
|
|
479
476
|
}(d2, m2, a2, T2, g2, f2, s2, b2, y2);
|
|
480
|
-
|
|
481
|
-
|
|
477
|
+
P2 ? P2.then((e3) => {
|
|
478
|
+
F(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
482
479
|
}).catch((e3) => {
|
|
483
480
|
u2(e3);
|
|
484
481
|
}) : u2("request不存在");
|
|
485
482
|
});
|
|
486
483
|
}
|
|
487
|
-
function
|
|
484
|
+
function J(e2, s2) {
|
|
488
485
|
var _a;
|
|
489
|
-
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
486
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = I(a2, d2), g2 = new FormData();
|
|
490
487
|
g2.append("multipartFile", s2), m2 && g2.append("tableName", m2), a2.importBeanName && g2.append("importBeanName", a2.importBeanName), a2.beanName && g2.append("beanName", a2.beanName);
|
|
491
488
|
const f2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
492
489
|
f2 && g2.append("importDuplicateRule", f2);
|
|
493
490
|
const b2 = a2.judgeHeavyList;
|
|
494
491
|
b2 && g2.append("judgeHeavyList", JSON.stringify(b2));
|
|
495
|
-
const C2 =
|
|
492
|
+
const C2 = de(i2);
|
|
496
493
|
C2 && g2.append("autoSetValueData", C2);
|
|
497
494
|
const T2 = a2.formNoRuleCode;
|
|
498
495
|
T2 && g2.append("formNoRuleCode", T2);
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
let
|
|
502
|
-
|
|
496
|
+
const P2 = e2.listCode;
|
|
497
|
+
P2 && g2.append("listCode", P2);
|
|
498
|
+
let w2 = false;
|
|
499
|
+
w2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, g2.append("isAsync", w2 + ""), g2.append("pageCode", a2.code);
|
|
503
500
|
const k2 = t(a2);
|
|
504
501
|
null != k2 && g2.append("isWorkflowEntity", k2 + "");
|
|
505
|
-
const v2 =
|
|
502
|
+
const v2 = h(i2, a2);
|
|
506
503
|
v2 && g2.append("functionCode", v2);
|
|
507
|
-
const M2 =
|
|
504
|
+
const M2 = ee(a2);
|
|
508
505
|
g2.append("additionalParamMapStr", JSON.stringify(M2));
|
|
509
506
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
510
507
|
g2.append("isPermission", R2 + "");
|
|
511
508
|
const N2 = a2.systemCode;
|
|
512
509
|
N2 && g2.append("systemCode", N2);
|
|
513
510
|
const S2 = a2.backendUrl;
|
|
514
|
-
let
|
|
515
|
-
|
|
516
|
-
if (
|
|
511
|
+
let x2 = o(S2, a2.isTest) + "/dsc/commons/import-data";
|
|
512
|
+
x2 = n(x2, N2, S2, a2.isTest), c.post(x2, g2).then((e3) => {
|
|
513
|
+
if (w2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") });
|
|
517
514
|
else {
|
|
518
515
|
let t2 = false;
|
|
519
|
-
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true),
|
|
516
|
+
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), F(a2, i2, e3, null, true), a2.result = t2, y(a2, i2);
|
|
520
517
|
}
|
|
521
518
|
}).catch((e3) => {
|
|
522
519
|
console.log("error==", e3);
|
|
@@ -531,30 +528,30 @@ function Y(e2, t2) {
|
|
|
531
528
|
}
|
|
532
529
|
return true;
|
|
533
530
|
}
|
|
534
|
-
function
|
|
531
|
+
function z(e2) {
|
|
535
532
|
var _a;
|
|
536
533
|
const t2 = e2.pageContext, o2 = e2.configureObj, n2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
537
|
-
let r2 =
|
|
534
|
+
let r2 = h(o2, t2);
|
|
538
535
|
r2 || (r2 = i2 + ".xxx"), n2.id || n2.ID || (n2.PAGE_CODE = t2.code, n2.PAGE_VERSION = t2.version);
|
|
539
536
|
const c2 = { entity: n2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
540
537
|
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);
|
|
541
538
|
const l2 = o2.props.base.conversionCodes;
|
|
542
539
|
l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2)), console.log("getWorkflowSaveParams----configureObj=", o2);
|
|
543
|
-
const u2 =
|
|
540
|
+
const u2 = de(o2);
|
|
544
541
|
u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
|
|
545
542
|
const p2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
546
543
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
547
|
-
const d2 =
|
|
544
|
+
const d2 = ee(t2);
|
|
548
545
|
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参数类型错误"));
|
|
549
546
|
const m2 = o2.props.base.successOperation;
|
|
550
547
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
551
548
|
}
|
|
552
|
-
function
|
|
549
|
+
function K(e2, t2, s2, o2, n2) {
|
|
553
550
|
const a2 = s2.code, i2 = s2.version;
|
|
554
551
|
let r2;
|
|
555
552
|
if (e2) {
|
|
556
553
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
557
|
-
const s3 =
|
|
554
|
+
const s3 = ee(t3);
|
|
558
555
|
e3 && s3 && g(s3._t_ + "_id", e3);
|
|
559
556
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
560
557
|
const n3 = e2.completeTaskResult;
|
|
@@ -571,9 +568,9 @@ function Q(e2, t2, s2, o2, n2) {
|
|
|
571
568
|
}
|
|
572
569
|
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(a2, i2, "_currentActivityName", e2.taskName);
|
|
573
570
|
}
|
|
574
|
-
return o2 && (o2.operationResult = n2), t2 ||
|
|
571
|
+
return o2 && (o2.operationResult = n2), t2 || F(s2, o2.configureObj, e2, null, false), true;
|
|
575
572
|
}
|
|
576
|
-
async function
|
|
573
|
+
async function Q(e2, t2) {
|
|
577
574
|
const s2 = await function(e3) {
|
|
578
575
|
return new Promise((t3, s3) => {
|
|
579
576
|
var _a, _b, _c, _d;
|
|
@@ -582,7 +579,7 @@ async function X(e2, t2) {
|
|
|
582
579
|
let s4 = false;
|
|
583
580
|
if (((_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
584
581
|
const t4 = e3.pageContext, n2 = (_d = (_c = o2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
585
|
-
s4 =
|
|
582
|
+
s4 = M(t4, o2, n2);
|
|
586
583
|
}
|
|
587
584
|
true === s4 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputOpinion"), l().t("superPageRuntimeMessage.opinion"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e4 }) => {
|
|
588
585
|
t3(e4);
|
|
@@ -598,30 +595,30 @@ async function X(e2, t2) {
|
|
|
598
595
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
599
596
|
let g2 = o(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
600
597
|
if (g2 = n(g2, p2, d2, r2.isTest), !g2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
601
|
-
const f2 =
|
|
598
|
+
const f2 = z(e2);
|
|
602
599
|
f2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
603
600
|
c.post(g2, f2).then((s3) => {
|
|
604
601
|
let o2 = true;
|
|
605
|
-
s3 && (o2 =
|
|
602
|
+
s3 && (o2 = K(s3, false, r2, e2, t2)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
|
|
606
603
|
}).catch((e3) => {
|
|
607
604
|
i2(e3);
|
|
608
605
|
});
|
|
609
606
|
} else a2(true);
|
|
610
607
|
});
|
|
611
608
|
}
|
|
612
|
-
function
|
|
609
|
+
function X(e2, t2) {
|
|
613
610
|
if (t2) {
|
|
614
|
-
const s2 = e2.pageContext, n2 = e2.configureObj, a2 = s2.backendUrl, i2 = o(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 =
|
|
615
|
-
c2.assigneeId = r2,
|
|
616
|
-
|
|
611
|
+
const s2 = e2.pageContext, n2 = e2.configureObj, a2 = s2.backendUrl, i2 = o(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = z(e2);
|
|
612
|
+
c2.assigneeId = r2, oe(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
613
|
+
y(s2, n2);
|
|
617
614
|
});
|
|
618
615
|
}
|
|
619
616
|
}
|
|
620
|
-
function
|
|
621
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, o2 = t2.systemCode, n2 = t2.code, a2 =
|
|
617
|
+
function Z(e2) {
|
|
618
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, o2 = t2.systemCode, n2 = t2.code, a2 = ee(t2), i2 = void 0 !== s2.ID && null !== s2.ID ? s2.ID : s2.id, r2 = { beanName: t2.beanName, id: i2, entity: s2, additionalParamMap: a2, tableName: t2.tableName, functionCode: n2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
622
619
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, r2;
|
|
623
620
|
}
|
|
624
|
-
function
|
|
621
|
+
function ee(t2) {
|
|
625
622
|
if (t2.entity) {
|
|
626
623
|
let s2 = e(t2.entity.page);
|
|
627
624
|
s2 || (s2 = {});
|
|
@@ -629,20 +626,20 @@ function te(t2) {
|
|
|
629
626
|
return o2 && Object.assign(s2, o2), s2;
|
|
630
627
|
}
|
|
631
628
|
}
|
|
632
|
-
function
|
|
629
|
+
function te(e2, t2) {
|
|
633
630
|
if (t2) {
|
|
634
631
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
635
632
|
let p2 = o(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
636
633
|
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
637
|
-
const d2 =
|
|
634
|
+
const d2 = Z(e2);
|
|
638
635
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
639
636
|
const m2 = c.post(p2, d2);
|
|
640
637
|
m2 && m2.then((e3) => {
|
|
641
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
638
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && F(s2, a2, e3, null, false), y(s2, a2);
|
|
642
639
|
});
|
|
643
640
|
}
|
|
644
641
|
}
|
|
645
|
-
async function
|
|
642
|
+
async function se(e2, t2) {
|
|
646
643
|
if (t2) {
|
|
647
644
|
const s2 = await function(e3) {
|
|
648
645
|
return new Promise((t3, s3) => {
|
|
@@ -652,7 +649,7 @@ async function oe(e2, t2) {
|
|
|
652
649
|
let s4 = (_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
653
650
|
if (true === s4) {
|
|
654
651
|
const t4 = e3.pageContext, n2 = (_d = (_c = o2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
655
|
-
s4 =
|
|
652
|
+
s4 = M(t4, o2, n2);
|
|
656
653
|
}
|
|
657
654
|
true === s4 ? 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 }) => {
|
|
658
655
|
t3(e4);
|
|
@@ -666,62 +663,62 @@ async function oe(e2, t2) {
|
|
|
666
663
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
667
664
|
let d2 = o(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
668
665
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
669
|
-
const m2 =
|
|
666
|
+
const m2 = Z(e2);
|
|
670
667
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
671
668
|
const g2 = c.post(d2, m2);
|
|
672
669
|
g2 && g2.then((e3) => {
|
|
673
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }),
|
|
670
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), y(a2, i2);
|
|
674
671
|
});
|
|
675
672
|
}
|
|
676
673
|
}
|
|
677
674
|
}
|
|
678
|
-
function
|
|
675
|
+
function oe(e2, t2, s2, o2) {
|
|
679
676
|
return new Promise((a2, i2) => {
|
|
680
677
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
681
678
|
if (!(s2 = n(s2, p2, d2, r2.isTest))) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
682
679
|
const m2 = c.post(s2, t2);
|
|
683
680
|
m2 && m2.then((t3) => {
|
|
684
681
|
let s3 = true;
|
|
685
|
-
t3 && (s3 =
|
|
682
|
+
t3 && (s3 = K(t3, false, r2, e2, null)), true === s3 && u({ showClose: true, type: "success", message: l().t(o2) }), a2(true);
|
|
686
683
|
}).catch((e3) => {
|
|
687
684
|
i2(e3);
|
|
688
685
|
});
|
|
689
686
|
});
|
|
690
687
|
}
|
|
691
|
-
function
|
|
688
|
+
function ne(e2) {
|
|
692
689
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
693
690
|
let r2 = o(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
694
691
|
if (r2 = n(r2, s2, a2, t2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
695
|
-
const p2 = t2.code, d2 =
|
|
692
|
+
const p2 = t2.code, d2 = ee(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
696
693
|
return c.post(r2, m2);
|
|
697
694
|
}
|
|
698
|
-
function
|
|
699
|
-
const s2 = e2.pageContext, n2 = e2.configureObj, a2 = s2.backendUrl, i2 = o(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 =
|
|
700
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
701
|
-
|
|
695
|
+
function ae(e2, t2) {
|
|
696
|
+
const s2 = e2.pageContext, n2 = e2.configureObj, a2 = s2.backendUrl, i2 = o(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = z(e2);
|
|
697
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), oe(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
698
|
+
y(s2, n2);
|
|
702
699
|
});
|
|
703
700
|
}
|
|
704
|
-
function
|
|
701
|
+
function ie(e2) {
|
|
705
702
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
706
703
|
let i2 = o(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
707
|
-
const r2 =
|
|
704
|
+
const r2 = z(e2);
|
|
708
705
|
if (i2 = n(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
709
706
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
710
707
|
}
|
|
711
|
-
function
|
|
708
|
+
function re(e2, t2) {
|
|
712
709
|
if (t2) {
|
|
713
710
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
714
711
|
let p2 = o(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
715
712
|
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
716
|
-
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 =
|
|
713
|
+
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = z(e2);
|
|
717
714
|
m2.ids = d2;
|
|
718
715
|
const g2 = c.post(p2, m2);
|
|
719
716
|
g2 && g2.then((e3) => {
|
|
720
|
-
|
|
717
|
+
F(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), y(s2, a2);
|
|
721
718
|
});
|
|
722
719
|
}
|
|
723
720
|
}
|
|
724
|
-
function
|
|
721
|
+
function ce(e2, t2, s2) {
|
|
725
722
|
let o2 = false;
|
|
726
723
|
return e2 && t2 && ("workflowSave" === e2 ? o2 = function(e3) {
|
|
727
724
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -783,32 +780,32 @@ function le(e2, t2, s2) {
|
|
|
783
780
|
return false;
|
|
784
781
|
}(t2))), o2;
|
|
785
782
|
}
|
|
786
|
-
function
|
|
787
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
783
|
+
function le(e2, t2) {
|
|
784
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, ue(e2, t2).then((t3) => {
|
|
788
785
|
e2.isRefresh = true;
|
|
789
786
|
});
|
|
790
787
|
}
|
|
791
|
-
function
|
|
788
|
+
function ue(e2, s2, n2) {
|
|
792
789
|
const a2 = e2.pageType;
|
|
793
790
|
if (a2 && "form" === a2) {
|
|
794
791
|
console.log("获取表单数据getData--pageContext=", e2), e2.canClick = false;
|
|
795
792
|
return t(e2) ? function(e3, t2, s3) {
|
|
796
793
|
return new Promise((n3, a3) => {
|
|
797
|
-
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 =
|
|
794
|
+
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ee(e3);
|
|
798
795
|
let d2 = t2 || null, g2 = t2 ? [t2] : null;
|
|
799
796
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), g2 || (g2 = p2 ? p2.ids : null)) : (d2 = null, g2 = null, p2._id = p2.id, p2.id = null);
|
|
800
|
-
const f2 = p2 ? p2.taskId : null, b2 = l2,
|
|
797
|
+
const f2 = p2 ? p2.taskId : null, b2 = l2, T2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
801
798
|
if (console.log("getWorkflowFormData---listCodesMap=", e3.listCodesMap), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
802
799
|
const t3 = {};
|
|
803
800
|
e3.tableUuids.forEach((e4) => {
|
|
804
801
|
const s4 = r(l2, u2, e4);
|
|
805
802
|
t3[s4] = s4;
|
|
806
|
-
}),
|
|
803
|
+
}), T2.listCodesMap = t3;
|
|
807
804
|
}
|
|
808
|
-
g2 && (
|
|
809
|
-
const y2 = o(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets",
|
|
810
|
-
|
|
811
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap,
|
|
805
|
+
g2 && (T2.ids = pe(g2)), f2 ? T2.taskId = f2 : d2 ? T2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
806
|
+
const y2 = o(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", P2 = U();
|
|
807
|
+
P2.restorePageLoadState(), C(null, e3, e3, "beforeFormLoadData"), c.post(y2, T2).then((t3) => {
|
|
808
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, K(t3, true, e3), e3.workflowRules = x(e3);
|
|
812
809
|
const s4 = e3.pageType;
|
|
813
810
|
s4 && "form" === s4 && function(e4) {
|
|
814
811
|
(function(e5) {
|
|
@@ -840,20 +837,20 @@ function pe(e2, s2, n2) {
|
|
|
840
837
|
}
|
|
841
838
|
e5.actionPermissionMap = s5;
|
|
842
839
|
}(e4);
|
|
843
|
-
}(e3), e3.canClick = true,
|
|
840
|
+
}(e3), e3.canClick = true, C(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), n3(t3);
|
|
844
841
|
}).catch((t3) => {
|
|
845
842
|
e3.canClick = true, a3(t3);
|
|
846
843
|
});
|
|
847
844
|
});
|
|
848
845
|
}(e2, s2, n2) : function(e3, t2, s3) {
|
|
849
846
|
return new Promise((n3, a3) => {
|
|
850
|
-
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 =
|
|
847
|
+
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ee(e3);
|
|
851
848
|
let d2 = t2 || null, g2 = t2 ? [t2] : null;
|
|
852
849
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), g2 || (g2 = p2 ? p2.ids : null)) : (d2 = null, g2 = null, p2._id = p2.id, p2.id = null);
|
|
853
850
|
const f2 = p2 ? p2.taskId : null, b2 = l2;
|
|
854
851
|
console.log("getCommonFormData-----pageContext=", e3);
|
|
855
|
-
const
|
|
856
|
-
if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), g2 && (y2.ids =
|
|
852
|
+
const T2 = o(e3.backendUrl, e3.isTest), y2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
853
|
+
if (!y2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (y2.id = m(p2._t_ + "_id")), g2 && (y2.ids = pe(g2)), e3.notIdInitializationList && (y2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (y2.additionalParamMap = p2), e3.beanName && (y2.beanName = e3.beanName), f2 && (y2.taskId = f2), console.log("getCommonFormData---listCodesMap=", e3.listCodesMap), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
857
854
|
const t3 = {};
|
|
858
855
|
e3.tableUuids.forEach((e4) => {
|
|
859
856
|
const s4 = r(l2, u2, e4);
|
|
@@ -861,11 +858,11 @@ function pe(e2, s2, n2) {
|
|
|
861
858
|
}), y2.listCodesMap = t3;
|
|
862
859
|
}
|
|
863
860
|
e3.refercePropMap && (y2.refercePropMap = e3.refercePropMap);
|
|
864
|
-
const
|
|
865
|
-
|
|
861
|
+
const P2 = T2 + "/dsc/commons/gets", h2 = U();
|
|
862
|
+
h2.restorePageLoadState(), C(null, e3, e3, "beforeFormLoadData"), c.post(P2, y2).then((t3) => {
|
|
866
863
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
867
|
-
const s4 = e3.customRules, o2 = e3.rules, a4 =
|
|
868
|
-
e3.rules = a4, e3.canClick = true,
|
|
864
|
+
const s4 = e3.customRules, o2 = e3.rules, a4 = A(s4, o2);
|
|
865
|
+
e3.rules = a4, e3.canClick = true, C(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), n3(t3);
|
|
869
866
|
}).catch((t3) => {
|
|
870
867
|
e3.canClick = true, a3(t3);
|
|
871
868
|
});
|
|
@@ -876,10 +873,10 @@ function pe(e2, s2, n2) {
|
|
|
876
873
|
e3(true);
|
|
877
874
|
});
|
|
878
875
|
}
|
|
879
|
-
function
|
|
876
|
+
function pe(e2) {
|
|
880
877
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
881
878
|
}
|
|
882
|
-
function
|
|
879
|
+
function de(e2) {
|
|
883
880
|
const t2 = e2.props.setValueList;
|
|
884
881
|
if (t2) {
|
|
885
882
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -887,41 +884,41 @@ function me(e2) {
|
|
|
887
884
|
}
|
|
888
885
|
return null;
|
|
889
886
|
}
|
|
890
|
-
function
|
|
887
|
+
function me(e2, t2) {
|
|
891
888
|
const s2 = e2.entity ? e2.entity : {}, o2 = { data: s2.data, page: s2.page }, n2 = { pageCode: e2.code, queryCondition: JSON.stringify(o2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
892
889
|
return c.post(a2, n2);
|
|
893
890
|
}
|
|
894
|
-
function
|
|
891
|
+
function ge(e2) {
|
|
895
892
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
896
893
|
return c.get(s2);
|
|
897
894
|
}
|
|
898
|
-
function
|
|
895
|
+
function fe(e2) {
|
|
899
896
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
900
897
|
return c.delete(t2);
|
|
901
898
|
}
|
|
902
899
|
export {
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
900
|
+
F as dealAfterOperate,
|
|
901
|
+
K as dealCompleteTaskParam,
|
|
902
|
+
fe as deleteChartCondition,
|
|
903
|
+
te as doAddSigner,
|
|
904
|
+
X as doAssign,
|
|
905
|
+
se as doCreateCopyTask,
|
|
906
|
+
J as doImportFinally,
|
|
907
|
+
re as doRemoveSigners,
|
|
908
|
+
ae as doReturnTaskTo,
|
|
909
|
+
j as exportFormReport,
|
|
910
|
+
ee as getAdditionalParamMap,
|
|
911
|
+
ue as getFormData,
|
|
912
|
+
ie as getRemoveSigner,
|
|
913
|
+
W as getSaveFormRequest,
|
|
914
|
+
B as getSaveFormRequestWithRow,
|
|
915
|
+
ne as getTaskInformitions,
|
|
916
|
+
ce as isVisibleWorkflowButton,
|
|
920
917
|
Y as judgeDataNumber,
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
918
|
+
ge as listChartConditions,
|
|
919
|
+
H as refreshFormOrListPage,
|
|
920
|
+
le as refreshPage,
|
|
921
|
+
me as saveChartConditionBase,
|
|
922
|
+
E as standardEvents,
|
|
923
|
+
q as updateValuesWhenCloseDialog
|
|
927
924
|
};
|