super-page-runtime 2.3.3 → 2.3.4
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 -45
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
- package/dist/es/components/runtime/utils/charts/chart-util.js +26 -24
- package/dist/es/components/runtime/utils/events/event-util.js +116 -116
- package/dist/es/components/runtime/utils/events/print-label.js +1 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +475 -463
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +47 -44
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +30 -30
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
- 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 +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +12 -11
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +18 -17
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +19 -18
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +21 -19
- 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.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +55 -55
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +37 -35
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +123 -120
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +58 -57
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +27 -27
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +27 -27
- 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 +1 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/home-chart.vue.js +25 -23
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +131 -130
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -1,228 +1,234 @@
|
|
|
1
|
-
import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as
|
|
1
|
+
import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as o, getRealRestApiPath as n, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
|
-
import { getI18n as
|
|
4
|
-
import { ElMessage as
|
|
5
|
-
import { getToken as d, getSessionCache as m, getRunCurrentRole as
|
|
3
|
+
import { getI18n as l } from "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { ElMessage as u, ElMessageBox as p } from "element-plus";
|
|
5
|
+
import { getToken as d, getSessionCache as m, getRunCurrentRole as g, setSessionCache as f } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import C from "../eventBus.js";
|
|
8
8
|
import T from "axios";
|
|
9
|
-
import { handleEvent as y, getTableUuid as
|
|
9
|
+
import { handleEvent as y, getTableUuid as P, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as w } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as
|
|
12
|
-
import { updateChartDatasources as
|
|
11
|
+
import { getPermissionCodes as k, getDefaultValue as R, getModelFields as v } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as S, setVariableValue as I } from "../page-helper-util.js";
|
|
13
13
|
import x from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as E } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as _ } from "../page-store.js";
|
|
18
18
|
const j = { save: function(e2) {
|
|
19
|
-
return W(e2, false);
|
|
19
|
+
return console.log("表单标准事件保存save--params=", e2), W(e2, false);
|
|
20
20
|
}, saveList: function(e2) {
|
|
21
|
-
return W(e2, true);
|
|
21
|
+
return console.log("列表标准事件保存saveList--params=", e2), W(e2, true);
|
|
22
22
|
}, exportForm: function(e2) {
|
|
23
|
+
console.log("表单标准事件导出报告exportForm--params=", e2);
|
|
23
24
|
const t2 = e2.pageContext.code + "_";
|
|
24
25
|
C.$emit(t2 + "export-form-report", e2);
|
|
25
26
|
}, exportPDF: function(e2) {
|
|
27
|
+
console.log("表单标准事件导出报告exportPDF--params=", e2);
|
|
26
28
|
const t2 = e2.pageContext.code + "_";
|
|
27
29
|
C.$emit(t2 + "export-pdf-report", e2);
|
|
28
30
|
}, submit: function(e2) {
|
|
29
|
-
return Q(e2, false, "submit", "/dsc/commons/submits");
|
|
31
|
+
return console.log("表单标准事件提交submit--params=", e2), Q(e2, false, "submit", "/dsc/commons/submits");
|
|
30
32
|
}, submitList: function(e2) {
|
|
31
|
-
return Q(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
33
|
+
return console.log("列表标准事件提交submitList--params=", e2), Q(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
32
34
|
}, agree: function(e2) {
|
|
33
|
-
return Q(e2, false, "agree", "/dsc/commons/approves");
|
|
35
|
+
return console.log("表单标准事件同意agree--params=", e2), Q(e2, false, "agree", "/dsc/commons/approves");
|
|
34
36
|
}, agreeList: function(e2) {
|
|
35
|
-
return Q(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
37
|
+
return console.log("列表标准事件同意agreeList--params=", e2), Q(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
36
38
|
}, disagree: function(e2) {
|
|
37
|
-
return Q(e2, false, "disagree", "/dsc/commons/refuses");
|
|
39
|
+
return console.log("表单标准事件不同意disagree--params=", e2), Q(e2, false, "disagree", "/dsc/commons/refuses");
|
|
38
40
|
}, disagreeList: function(e2) {
|
|
39
|
-
return Q(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
41
|
+
return console.log("列表标准事件不同意disagreeList--params=", e2), Q(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
40
42
|
}, back: function(e2) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
+
console.log("表单标准事件返回back--params=", e2);
|
|
44
|
+
const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, o2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
45
|
+
J(t2, e2.configureObj, s2, o2);
|
|
43
46
|
}, delete: function(e2) {
|
|
44
|
-
return function(e3) {
|
|
45
|
-
return new Promise((s2,
|
|
46
|
-
const
|
|
47
|
-
if (!
|
|
48
|
-
p.confirm(
|
|
47
|
+
return console.log("列表标准事件删除delete--params=", e2), function(e3) {
|
|
48
|
+
return new Promise((s2, a2) => {
|
|
49
|
+
const i2 = e3.ids;
|
|
50
|
+
if (!i2 || 0 === i2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
51
|
+
p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
52
|
var _a;
|
|
50
|
-
const r2 = e3.pageContext,
|
|
51
|
-
let
|
|
52
|
-
|
|
53
|
-
const C2 = void 0 ===
|
|
54
|
-
r2.beanName && (
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const w2 = (_a =
|
|
58
|
-
w2 && (
|
|
59
|
-
const R2 =
|
|
60
|
-
R2 && (
|
|
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 = A(r2, m2);
|
|
54
|
+
let f2 = o(d2, r2.isTest) + "/dsc/commons/" + g2;
|
|
55
|
+
f2 = n(f2, p2, d2, r2.isTest);
|
|
56
|
+
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, T2 = t(r2), y2 = k(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 h2 = l2.props.deleteLogicSetting;
|
|
59
|
+
h2 && ("object" == typeof h2 ? P2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (P2.deleteLogicSetting = h2));
|
|
60
|
+
const w2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
|
|
61
|
+
w2 && (P2.logSettingText = w2.join(""));
|
|
62
|
+
const R2 = l2.props.base.isSafeDelete;
|
|
63
|
+
R2 && (P2.isSafeDelete = R2), c.delete(f2, { data: P2 }).then((e4) => {
|
|
61
64
|
const t2 = b(r2, m2);
|
|
62
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()),
|
|
65
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), $(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
63
66
|
}).catch((e4) => {
|
|
64
|
-
|
|
67
|
+
a2(e4);
|
|
65
68
|
});
|
|
66
69
|
}).catch(() => {
|
|
67
|
-
|
|
70
|
+
a2();
|
|
68
71
|
});
|
|
69
72
|
});
|
|
70
73
|
}(e2);
|
|
71
74
|
}, downloadTemplate: function(e2) {
|
|
72
|
-
|
|
75
|
+
console.log("列表标准事件下载导入模板downloadTemplate--params=", e2), function(e3) {
|
|
73
76
|
var _a;
|
|
74
|
-
const t2 = e3.pageContext, s2 = e3.configureObj,
|
|
77
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = s2.props.base, i2 = a(n2.templateFiles);
|
|
75
78
|
let r2, c2;
|
|
76
|
-
|
|
77
|
-
const
|
|
78
|
-
let
|
|
79
|
-
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ?
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
|
|
80
|
+
const l2 = t2.systemCode, u2 = t2.backendUrl, p2 = c2;
|
|
81
|
+
let g2 = "?1=1";
|
|
82
|
+
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? g2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? g2 += "&showName=" + encodeURI(p2) : t2.label && (g2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
|
|
83
|
+
const f2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
|
|
84
|
+
f2 && (g2 += "&logSettingText=" + f2.join(""));
|
|
85
|
+
l2 && (g2 += "&systemCode=" + l2);
|
|
83
86
|
const b2 = e3.listCode;
|
|
84
|
-
b2 && (
|
|
85
|
-
t2.beanName && (
|
|
87
|
+
b2 && (g2 += "&listCode=" + b2);
|
|
88
|
+
t2.beanName && (g2 += "&beanName=" + t2.beanName);
|
|
86
89
|
const C2 = k(s2, t2);
|
|
87
|
-
C2 && (
|
|
88
|
-
t2.tableName && (
|
|
89
|
-
t2.code && (
|
|
90
|
-
t2.version && (
|
|
90
|
+
C2 && (g2 += "&functionCode=" + C2);
|
|
91
|
+
t2.tableName && (g2 += "&tableName=" + t2.tableName);
|
|
92
|
+
t2.code && (g2 += "&pageCode=" + t2.code);
|
|
93
|
+
t2.version && (g2 += "&pageVersion=" + t2.version);
|
|
91
94
|
const T2 = d();
|
|
92
|
-
T2 && (
|
|
93
|
-
const y2 = "_RUN_CURRENT_ROLE",
|
|
94
|
-
|
|
95
|
-
if (
|
|
96
|
-
|
|
95
|
+
T2 && (g2 += "&JWT=" + T2);
|
|
96
|
+
const y2 = "_RUN_CURRENT_ROLE", P2 = m(y2);
|
|
97
|
+
P2 && (g2 += "&" + y2 + "=" + P2);
|
|
98
|
+
if (n2) {
|
|
99
|
+
g2 += "&isPermission=" + (void 0 === n2.isPermission || "true" === n2.isPermission || n2.isPermission);
|
|
97
100
|
}
|
|
98
|
-
const
|
|
99
|
-
window.open(
|
|
101
|
+
const h2 = o(u2, t2.isTest);
|
|
102
|
+
window.open(h2 + "/dsc/commons/download-files" + g2);
|
|
100
103
|
}(e2);
|
|
101
104
|
}, import: function(e2) {
|
|
105
|
+
console.log("列表标准事件 导入import--params=", e2);
|
|
102
106
|
const t2 = e2.pageContext.code + "_";
|
|
103
107
|
C.$emit(t2 + "import-file", e2);
|
|
104
108
|
}, export: function(e2) {
|
|
105
|
-
return function(e3) {
|
|
109
|
+
return console.log("列表标准事件 导出export--params=", e2), function(e3) {
|
|
106
110
|
return new Promise((t2, s2) => {
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
let c2 =
|
|
110
|
-
c2 || (c2 =
|
|
111
|
-
let
|
|
112
|
-
|
|
113
|
-
const
|
|
114
|
-
window.$vueApp.config.globalProperties.$exportDataNew(r2, d2,
|
|
111
|
+
const o2 = e3.pageContext, n2 = e3.configureObj.props.base, a2 = e3.listCode, i2 = e3.selections, r2 = {};
|
|
112
|
+
i2 && i2.length > 0 && (r2.data = i2);
|
|
113
|
+
let c2 = o2.label;
|
|
114
|
+
c2 || (c2 = o2.code);
|
|
115
|
+
let l2 = false;
|
|
116
|
+
l2 = void 0 !== n2.isAsync && null !== n2.isAsync && n2.isAsync;
|
|
117
|
+
const u2 = void 0 === n2.isPermission || "true" === n2.isPermission || n2.isPermission, p2 = k(e3.configureObj, o2), d2 = c2, m2 = { backendUrl: o2.backendUrl, pageContext: o2 };
|
|
118
|
+
console.log("exportFunc======exportOptions=", m2), window.$vueApp.config.globalProperties.$exportDataNew(r2, d2, a2, p2, null, m2, l2, o2.code, u2);
|
|
115
119
|
});
|
|
116
120
|
}(e2);
|
|
117
121
|
}, search: function(e2) {
|
|
122
|
+
console.log("列表标准事件 刷新列表 search--params=", e2);
|
|
118
123
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
119
124
|
b(t2, s2).refresh();
|
|
120
125
|
}, showSearch: function(e2) {
|
|
126
|
+
console.log("列表标准事件 显示查询区域 showSearch--params=", e2);
|
|
121
127
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
122
128
|
b(t2, s2).showMobileSearch();
|
|
123
129
|
}, workflowSave: function(e2) {
|
|
124
|
-
return C.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
130
|
+
return C.$emit("clearTableAllStartEditing"), console.log("流程表单标准事件 暂存workflowSave--params=", e2), async function(e3) {
|
|
125
131
|
return new Promise((t2, s2) => {
|
|
126
|
-
const
|
|
127
|
-
let d2 =
|
|
128
|
-
if (d2 =
|
|
132
|
+
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
133
|
+
let d2 = o(p2, a2.isTest) + "/dsc/workflow-commons";
|
|
134
|
+
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
129
135
|
const m2 = ee(e3);
|
|
130
|
-
let
|
|
131
|
-
|
|
132
|
-
let
|
|
133
|
-
s3 && (
|
|
136
|
+
let g2;
|
|
137
|
+
g2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), g2.then((s3) => {
|
|
138
|
+
let o2 = true;
|
|
139
|
+
s3 && (o2 = te(s3, false, a2, e3, null)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
134
140
|
}).catch((e4) => {
|
|
135
141
|
s2(e4);
|
|
136
142
|
});
|
|
137
143
|
});
|
|
138
144
|
}(e2);
|
|
139
145
|
}, submitProcess: function(e2) {
|
|
140
|
-
return C.$emit("clearTableAllStartEditing"), function(e3) {
|
|
146
|
+
return C.$emit("clearTableAllStartEditing"), console.log("流程表单标准事件 提交流程submitProcess--params=", e2), function(e3) {
|
|
141
147
|
return new Promise((t2, s2) => {
|
|
142
|
-
const
|
|
143
|
-
let p2 =
|
|
144
|
-
if (p2 =
|
|
148
|
+
const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
149
|
+
let p2 = o(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
150
|
+
if (p2 = n(p2, i2, r2, a2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
145
151
|
const d2 = ee(e3), m2 = c.post(p2, d2);
|
|
146
152
|
m2 && m2.then((s3) => {
|
|
147
|
-
let
|
|
148
|
-
s3 && (
|
|
153
|
+
let o2 = true;
|
|
154
|
+
s3 && (o2 = te(s3, false, a2, e3, null)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), C.$emit("clearTableAllEndEditing"), t2(true);
|
|
149
155
|
}).catch((e4) => {
|
|
150
156
|
s2(e4);
|
|
151
157
|
});
|
|
152
158
|
});
|
|
153
159
|
}(e2);
|
|
154
160
|
}, submitTask: function(e2) {
|
|
155
|
-
return se(e2, "SUBMIT");
|
|
161
|
+
return console.log("流程表单标准事件 提交任务submitTask--params=", e2), se(e2, "SUBMIT");
|
|
156
162
|
}, approve: function(e2) {
|
|
157
|
-
return se(e2, "APPROVE");
|
|
163
|
+
return console.log("流程表单标准事件 同意approve--params=", e2), se(e2, "APPROVE");
|
|
158
164
|
}, refuse: function(e2) {
|
|
159
|
-
return se(e2, "REFUSE");
|
|
165
|
+
return console.log("流程表单标准事件 不同意refuse--params=", e2), se(e2, "REFUSE");
|
|
160
166
|
}, readed: function(e2) {
|
|
161
|
-
return se(e2, "READED");
|
|
167
|
+
return console.log("流程表单标准事件 已阅readed--params=", e2), se(e2, "READED");
|
|
162
168
|
}, agreement: function(e2) {
|
|
163
|
-
return se(e2, "AGREEMENT");
|
|
169
|
+
return console.log("流程表单标准事件 赞成agreement--params=", e2), se(e2, "AGREEMENT");
|
|
164
170
|
}, oppose: function(e2) {
|
|
165
|
-
return se(e2, "OPPOSE");
|
|
171
|
+
return console.log("流程表单标准事件 反对oppose--params=", e2), se(e2, "OPPOSE");
|
|
166
172
|
}, kiken: function(e2) {
|
|
167
|
-
return se(e2, "KIKEN");
|
|
173
|
+
return console.log("流程表单标准事件 弃权kiken--params=", e2), se(e2, "KIKEN");
|
|
168
174
|
}, assign: function(e2) {
|
|
169
|
-
return function(e3) {
|
|
175
|
+
return console.log("流程表单标准事件 指派assign--params=", e2), function(e3) {
|
|
170
176
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
171
177
|
C.$emit(s2 + "assign-task", e3);
|
|
172
178
|
}(e2);
|
|
173
179
|
}, copyTask: function(e2) {
|
|
174
|
-
return function(e3) {
|
|
180
|
+
return console.log("流程表单标准事件 抄送copyTask--params=", e2), function(e3) {
|
|
175
181
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
176
182
|
C.$emit(s2 + "copy-task", e3);
|
|
177
183
|
}(e2);
|
|
178
184
|
}, addSigner: function(e2) {
|
|
179
|
-
return function(e3) {
|
|
185
|
+
return console.log("流程表单标准事件 加签addSigner--params=", e2), function(e3) {
|
|
180
186
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
181
187
|
C.$emit(s2 + "add-signer", e3);
|
|
182
188
|
}(e2);
|
|
183
189
|
}, drawTask: function(e2) {
|
|
184
|
-
return function(e3) {
|
|
185
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
186
|
-
return ce(e3,
|
|
190
|
+
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 = ee(e3);
|
|
192
|
+
return ce(e3, a2, n2, "superPageRuntimeMessage.successfulDrawTask");
|
|
187
193
|
}(e2);
|
|
188
194
|
}, abandonReceive: function(e2) {
|
|
189
|
-
return function(e3) {
|
|
190
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
191
|
-
return ce(e3,
|
|
195
|
+
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 = ee(e3);
|
|
197
|
+
return ce(e3, a2, n2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
192
198
|
}(e2);
|
|
193
199
|
}, returnToPreviousTask: function(e2) {
|
|
194
|
-
return function(e3) {
|
|
195
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
196
|
-
return ce(e3,
|
|
200
|
+
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 = ee(e3);
|
|
202
|
+
return ce(e3, a2, n2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
197
203
|
}(e2);
|
|
198
204
|
}, endInstance: function(e2) {
|
|
199
|
-
return function(e3) {
|
|
200
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
201
|
-
return ce(e3,
|
|
205
|
+
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 = ee(e3);
|
|
207
|
+
return ce(e3, a2, n2, "superPageRuntimeMessage.successfulEndInstance");
|
|
202
208
|
}(e2);
|
|
203
209
|
}, returnTaskTo: function(e2) {
|
|
204
|
-
return function(e3) {
|
|
210
|
+
return console.log("流程表单标准事件 退回returnTaskTo--params=", e2), function(e3) {
|
|
205
211
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
206
212
|
C.$emit(s2 + "choose-return-node", e3);
|
|
207
213
|
}(e2);
|
|
208
214
|
}, removeSigner: function(e2) {
|
|
209
|
-
return function(e3) {
|
|
215
|
+
return console.log("流程表单标准事件 减签removeSigner--params=", e2), function(e3) {
|
|
210
216
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
211
217
|
C.$emit(s2 + "remove-signer", e3);
|
|
212
218
|
}(e2);
|
|
213
219
|
}, retrieveTask: function(e2) {
|
|
214
|
-
return function(e3) {
|
|
215
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl,
|
|
216
|
-
return ce(e3,
|
|
220
|
+
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 = ee(e3);
|
|
222
|
+
return ce(e3, a2, n2, "superPageRuntimeMessage.successfulRetrieve");
|
|
217
223
|
}(e2);
|
|
218
224
|
}, viewDetail: function(e2) {
|
|
219
225
|
}, lineEditCreate: function(e2) {
|
|
220
|
-
return function(e3) {
|
|
221
|
-
const t2 = e3.pageContext, s2 = e3.tableUuid,
|
|
222
|
-
|
|
226
|
+
return console.log("列表行编辑 新建lineEditCreate--params=", e2), function(e3) {
|
|
227
|
+
const t2 = e3.pageContext, s2 = e3.tableUuid, o2 = b(t2, s2);
|
|
228
|
+
o2 && (e3.getDefaultValueFunc = R, o2.createRow(e3.listCode, {}, e3));
|
|
223
229
|
}(e2);
|
|
224
230
|
}, printLabel: function(e2) {
|
|
225
|
-
return function(e3) {
|
|
231
|
+
return console.log("打印标签 打印标签事件--params=", e2), function(e3) {
|
|
226
232
|
let t2 = null;
|
|
227
233
|
try {
|
|
228
234
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
@@ -232,237 +238,240 @@ const j = { save: function(e2) {
|
|
|
232
238
|
x.printLabel(e3, t2);
|
|
233
239
|
}(e2);
|
|
234
240
|
}, queryCharts: function(e2) {
|
|
235
|
-
D(e2);
|
|
241
|
+
console.log("查询统计图--params=", e2), D(e2);
|
|
236
242
|
}, resetCharts: function(t2) {
|
|
237
243
|
var _a, _b;
|
|
244
|
+
console.log("重置统计图--params=", t2);
|
|
238
245
|
const s2 = t2.pageContext;
|
|
239
246
|
Object.assign(s2.entity.data, e((_a = s2.initChartData) == null ? void 0 : _a.data)), Object.assign(s2.entity.page, e((_b = s2.initChartData) == null ? void 0 : _b.page)), t2.isInitChart = true, D(t2);
|
|
240
247
|
}, exportCharts: function(e2) {
|
|
241
|
-
|
|
248
|
+
console.log("导出统计图--params=", e2), function(e3) {
|
|
242
249
|
const t2 = e3.pageContext, s2 = t2.allChartUuids;
|
|
243
|
-
if (!s2 || 0 == s2.length) return;
|
|
244
|
-
const
|
|
245
|
-
let
|
|
246
|
-
|
|
247
|
-
const
|
|
248
|
-
|
|
250
|
+
if (!s2 || 0 == s2.length) return void console.log("无需要导出的统计图数据");
|
|
251
|
+
const n2 = e3.configureObj;
|
|
252
|
+
let a2 = null;
|
|
253
|
+
n2 && n2.runtime && (a2 = n2.runtime.props);
|
|
254
|
+
const i2 = a2 ? a2.state : void 0;
|
|
255
|
+
a2 && (a2.state = "disabled");
|
|
249
256
|
const r2 = [];
|
|
250
257
|
for (let e4 = 0; e4 < s2.length; e4++) {
|
|
251
|
-
const
|
|
252
|
-
if (
|
|
253
|
-
const e5 =
|
|
254
|
-
e5 && e5.exportable && e5._dynamicShowFlag &&
|
|
258
|
+
const o2 = s2[e4], n3 = b(t2, o2);
|
|
259
|
+
if (n3) {
|
|
260
|
+
const e5 = n3.getConfigure();
|
|
261
|
+
e5 && e5.exportable && e5._dynamicShowFlag && n3.exportChart && r2.push(n3.exportChart());
|
|
255
262
|
}
|
|
256
263
|
}
|
|
257
|
-
if (!r2 || 0 == r2.length) return;
|
|
258
|
-
let c2,
|
|
259
|
-
|
|
260
|
-
c2 =
|
|
261
|
-
const
|
|
264
|
+
if (!r2 || 0 == r2.length) return void console.log("无需要导出的统计图数据");
|
|
265
|
+
let c2, l2 = t2.label;
|
|
266
|
+
l2 || (l2 = t2.code);
|
|
267
|
+
c2 = l2;
|
|
268
|
+
const u2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl, d2 = o(p2, t2.isTest) + "/dsc/commons/exportChart";
|
|
262
269
|
B();
|
|
263
|
-
T.post(d2,
|
|
270
|
+
T.post(d2, u2, { responseType: "blob" }).then((e4) => {
|
|
264
271
|
const t3 = document.createElement("a");
|
|
265
272
|
t3.style.display = "none", t3.href = URL.createObjectURL(e4.data), t3.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t3), t3.click(), document.body.removeChild(t3);
|
|
266
273
|
}).finally(() => {
|
|
267
|
-
|
|
274
|
+
a2 && (a2.state = i2);
|
|
268
275
|
});
|
|
269
276
|
}(e2);
|
|
270
277
|
}, saveQueryCharts: function(e2) {
|
|
271
|
-
|
|
272
|
-
const t2 = e3.pageContext, s2 = e3.configureObj,
|
|
273
|
-
C.$emit(
|
|
278
|
+
console.log("保存统计图条件--params=", e2), function(e3) {
|
|
279
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, o2 = t2.code + "_";
|
|
280
|
+
C.$emit(o2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
274
281
|
}(e2);
|
|
275
282
|
} };
|
|
276
283
|
function D(e2) {
|
|
277
284
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
278
|
-
if (!s2 || 0 == s2.length) return;
|
|
279
|
-
const
|
|
280
|
-
let
|
|
281
|
-
|
|
282
|
-
const
|
|
283
|
-
|
|
284
|
-
|
|
285
|
+
if (!s2 || 0 == s2.length) return void console.log("无需要查询的统计图数据");
|
|
286
|
+
const o2 = e2.configureObj;
|
|
287
|
+
let n2 = null;
|
|
288
|
+
o2 && o2.runtime && (n2 = o2.runtime.props);
|
|
289
|
+
const a2 = n2 ? n2.state : void 0;
|
|
290
|
+
n2 && (n2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
291
|
+
n2 && (n2.state = a2);
|
|
285
292
|
}).catch(() => {
|
|
286
|
-
|
|
293
|
+
n2 && (n2.state = a2);
|
|
287
294
|
});
|
|
288
295
|
}
|
|
289
|
-
function L(e2, s2,
|
|
296
|
+
function L(e2, s2, n2, a2) {
|
|
290
297
|
var _a;
|
|
291
|
-
const
|
|
292
|
-
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
+
const i2 = n2.templateUuid, r2 = n2.templateName, c2 = e2.systemCode, l2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, u2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, f2 = E.getFormViewData(e2);
|
|
299
|
+
console.log("exportFormReport----viewModels=", f2);
|
|
300
|
+
const b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: f2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: k(s2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
301
|
+
l2 && (C2.logSettingText = l2.join(""));
|
|
302
|
+
const y2 = ae(e2);
|
|
303
|
+
let P2;
|
|
304
|
+
C2.additionalParamMap = y2, P2 = a2 ? function(e3, t2, s3, n3) {
|
|
305
|
+
return new Promise((a3, i3) => {
|
|
306
|
+
const r3 = o(t2, n3) + "/dsc/commons/export-pdf";
|
|
298
307
|
B();
|
|
299
308
|
T.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
300
|
-
const s4 = new Blob([t3.data]),
|
|
301
|
-
|
|
309
|
+
const s4 = new Blob([t3.data]), o2 = document.createElement("a");
|
|
310
|
+
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);
|
|
302
311
|
}).catch((e4) => {
|
|
303
|
-
|
|
312
|
+
i3(e4);
|
|
304
313
|
});
|
|
305
314
|
});
|
|
306
|
-
}(r2,
|
|
307
|
-
return new Promise((
|
|
308
|
-
const r3 =
|
|
315
|
+
}(r2, g2, C2, e2.isTest) : function(e3, t2, s3, n3) {
|
|
316
|
+
return new Promise((a3, i3) => {
|
|
317
|
+
const r3 = o(t2, n3) + "/dsc/commons/export-reports";
|
|
309
318
|
B();
|
|
310
319
|
T.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
311
320
|
const s4 = new Blob([t3.data]);
|
|
312
|
-
let
|
|
313
|
-
e3 && (
|
|
314
|
-
const
|
|
315
|
-
|
|
321
|
+
let o2 = "报告.xlsx";
|
|
322
|
+
e3 && (o2 = e3);
|
|
323
|
+
const n4 = document.createElement("a");
|
|
324
|
+
n4.download = o2, n4.style.display = "none", n4.target = "_blank", n4.href = URL.createObjectURL(s4), document.body.appendChild(n4), n4.click(), URL.revokeObjectURL(n4.href), document.body.removeChild(n4), a3(true);
|
|
316
325
|
}).catch((e4) => {
|
|
317
|
-
|
|
326
|
+
i3(e4);
|
|
318
327
|
});
|
|
319
328
|
});
|
|
320
|
-
}(r2,
|
|
321
|
-
|
|
329
|
+
}(r2, g2, C2, e2.isTest), P2 && P2.then(() => {
|
|
330
|
+
h(e2, s2);
|
|
322
331
|
});
|
|
323
332
|
}
|
|
324
333
|
function B() {
|
|
325
334
|
T.defaults.headers.common.Authorization = d();
|
|
326
|
-
const e2 =
|
|
335
|
+
const e2 = g();
|
|
327
336
|
if (e2) {
|
|
328
337
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
329
338
|
T.defaults.headers.common[t2] = e2;
|
|
330
339
|
}
|
|
331
340
|
}
|
|
332
341
|
function W(e2, t2) {
|
|
333
|
-
return new Promise((s2,
|
|
334
|
-
const
|
|
335
|
-
let
|
|
336
|
-
c2 && "noOperation" === c2 && (
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
|
|
342
|
+
return new Promise((s2, o2) => {
|
|
343
|
+
const n2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
344
|
+
let l2 = false;
|
|
345
|
+
c2 && "noOperation" === c2 && (l2 = true);
|
|
346
|
+
const u2 = q(n2, a2, "/dsc/commons", l2, i2, r2);
|
|
347
|
+
u2 ? u2.then((e3) => {
|
|
348
|
+
$(n2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
340
349
|
}).catch((e3) => {
|
|
341
|
-
|
|
342
|
-
}) :
|
|
350
|
+
o2(e3);
|
|
351
|
+
}) : o2("保存时request不存在");
|
|
343
352
|
});
|
|
344
353
|
}
|
|
345
|
-
function V(e2, n2,
|
|
354
|
+
function V(e2, o2, n2, a2, i2, r2, c2) {
|
|
346
355
|
var _a;
|
|
347
|
-
const
|
|
356
|
+
const l2 = t(e2), u2 = e2.systemCode, p2 = void 0 === o2.props.base.isPermission || "true" === o2.props.base.isPermission || o2.props.base.isPermission, d2 = k(o2, e2);
|
|
348
357
|
let m2 = c2;
|
|
349
358
|
m2 || (m2 = e2.entity.data);
|
|
350
|
-
const
|
|
351
|
-
r2 && (
|
|
352
|
-
const
|
|
353
|
-
|
|
354
|
-
const b2 = Ce(
|
|
355
|
-
b2 && (
|
|
356
|
-
const C2 = (_a =
|
|
357
|
-
C2 && (
|
|
359
|
+
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 };
|
|
360
|
+
r2 && (g2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? g2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : g2.judgeHeavyList = e2.judgeHeavyList);
|
|
361
|
+
const f2 = o2.props.base.conversionCodes;
|
|
362
|
+
f2 && (s(f2) ? g2.dataConversionRule = f2.join(",") : "string" == typeof f2 && (g2.dataConversionRule = f2)), console.log("getCommonFormRequestParam--------configureObj----", o2);
|
|
363
|
+
const b2 = Ce(o2);
|
|
364
|
+
b2 && (g2.autoSetValueData = b2);
|
|
365
|
+
const C2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
366
|
+
C2 && (g2.logSettingText = C2.join("")), g2.systemCode || (g2.systemCode = u2);
|
|
358
367
|
const T2 = e2.beanName;
|
|
359
|
-
T2 && (
|
|
360
|
-
const y2 =
|
|
361
|
-
return
|
|
362
|
-
}
|
|
363
|
-
function F(e2, t2, s2,
|
|
364
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2,
|
|
365
|
-
return
|
|
366
|
-
const
|
|
367
|
-
let
|
|
368
|
-
p3 =
|
|
369
|
-
return
|
|
368
|
+
T2 && (g2.beanName = T2), i2 && (g2.dynamicColumnInfo = i2), a2 && (g2.mainDefaultValueColumns = a2);
|
|
369
|
+
const y2 = ae(e2);
|
|
370
|
+
return g2.additionalParamMap = y2, void 0 !== n2 && (g2.unControlVersion = n2), g2;
|
|
371
|
+
}
|
|
372
|
+
function F(e2, t2, s2, a2, i2, r2, l2, u2) {
|
|
373
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, l2);
|
|
374
|
+
return u2 && u2.tableName && (m2.tableName = u2.tableName), function(e3, t3, s3, a3, i3, r3) {
|
|
375
|
+
const l3 = o(t3, r3);
|
|
376
|
+
let u3, p3 = l3 + a3;
|
|
377
|
+
p3 = n(p3, e3, t3, r3), u3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
378
|
+
return u3;
|
|
370
379
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
371
380
|
}
|
|
372
|
-
function
|
|
373
|
-
return F(e2, t2, s2,
|
|
381
|
+
function q(e2, t2, s2, o2, n2, a2) {
|
|
382
|
+
return F(e2, t2, s2, o2, n2, a2, null, null);
|
|
374
383
|
}
|
|
375
|
-
function
|
|
376
|
-
const
|
|
377
|
-
if (
|
|
378
|
-
let
|
|
379
|
-
const
|
|
380
|
-
|
|
381
|
-
if ("refresh" ===
|
|
384
|
+
function $(t2, s2, o2, n2, a2) {
|
|
385
|
+
const i2 = H(t2, s2, a2);
|
|
386
|
+
if (i2 && "list" === i2) !function(t3, s3, o3, n3) {
|
|
387
|
+
let a3 = s3.props.base.successOperation;
|
|
388
|
+
const i3 = s3.props.base.isNeedValueMapping, r2 = P(t3, s3);
|
|
389
|
+
a3 || z.includes(s3.name) || (a3 = "refresh");
|
|
390
|
+
if ("refresh" === a3) if (r2) {
|
|
382
391
|
b(t3, r2).refresh();
|
|
383
392
|
} else console.error("tableUuid is empty");
|
|
384
|
-
else if ("closeWindow" ===
|
|
385
|
-
const
|
|
386
|
-
let
|
|
387
|
-
|
|
393
|
+
else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
394
|
+
const n4 = e(t3.entity.page);
|
|
395
|
+
let a4 = o3;
|
|
396
|
+
a4 || (a4 = {}), Object.assign(n4, a4), J(t3, s3, n4, i3);
|
|
388
397
|
}
|
|
389
|
-
|
|
390
|
-
}(t2, s2,
|
|
391
|
-
else if (
|
|
398
|
+
n3 && u({ message: l().t(n3), type: "success", showClose: true });
|
|
399
|
+
}(t2, s2, o2, n2), t2.canClick = true;
|
|
400
|
+
else if (i2 && "form" === i2) !function(e2, t3, s3, o3) {
|
|
392
401
|
if (s3) {
|
|
393
|
-
const
|
|
394
|
-
let
|
|
395
|
-
|
|
396
|
-
G(e2, t3, { ...
|
|
402
|
+
const o4 = s3;
|
|
403
|
+
let n3;
|
|
404
|
+
n3 = o4.entity ? o4.entity : o4, o4.formNo && (e2.initFormNo = o4.formNo);
|
|
405
|
+
G(e2, t3, { ...n3, ...e2.entity.page });
|
|
397
406
|
} else {
|
|
398
407
|
const s4 = t3.props.base.successOperation;
|
|
399
408
|
if (s4 && null !== s4) {
|
|
400
409
|
G(e2, t3, { ...e2.entity.page });
|
|
401
410
|
} else e2.canClick = true;
|
|
402
411
|
}
|
|
403
|
-
|
|
404
|
-
}(t2, s2,
|
|
412
|
+
o3 && u({ message: l().t(o3), type: "success", showClose: true });
|
|
413
|
+
}(t2, s2, o2, n2);
|
|
405
414
|
else {
|
|
406
415
|
const e2 = s2.props.base.successOperation;
|
|
407
416
|
e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
|
|
408
417
|
}
|
|
409
418
|
}
|
|
410
419
|
function H(e2, t2, s2) {
|
|
411
|
-
let
|
|
412
|
-
return void 0 === s2 ?
|
|
420
|
+
let o2;
|
|
421
|
+
return void 0 === s2 ? o2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (o2 = "form"), o2 || (o2 = e2.pageType), o2;
|
|
413
422
|
}
|
|
414
423
|
function G(e2, t2, s2) {
|
|
415
|
-
const
|
|
416
|
-
if (!
|
|
417
|
-
const
|
|
418
|
-
"noOperation" ===
|
|
419
|
-
}
|
|
420
|
-
function J(e2, t2, s2,
|
|
421
|
-
const
|
|
422
|
-
if ("openWindow" ===
|
|
424
|
+
const o2 = t2.props.base.successOperation;
|
|
425
|
+
if (!o2 || null === o2) return;
|
|
426
|
+
const n2 = t2.props.base.isNeedValueMapping;
|
|
427
|
+
"noOperation" === o2 ? (s2 && (e2.entity.data = s2), e2.canClick = true) : "refresh" === o2 ? s2 && (s2.id || s2.ID) ? ge(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (J(e2, t2, s2, n2), e2.canClick = true);
|
|
428
|
+
}
|
|
429
|
+
function J(e2, t2, s2, o2) {
|
|
430
|
+
const n2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
431
|
+
if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
|
|
423
432
|
else {
|
|
424
|
-
const
|
|
425
|
-
C.$emit(r2 + "close-dialog", { isNeedValueMapping:
|
|
433
|
+
const a2 = e2.tableName, i2 = void 0 !== o2 && true === o2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
|
|
434
|
+
C.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: n2 });
|
|
426
435
|
}
|
|
427
436
|
}
|
|
428
|
-
function Y(e2, t2, s2,
|
|
437
|
+
function Y(e2, t2, s2, o2, n2) {
|
|
429
438
|
var _a;
|
|
430
|
-
|
|
431
|
-
const
|
|
432
|
-
|
|
439
|
+
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);
|
|
440
|
+
const a2 = e2.tableName;
|
|
441
|
+
console.log("update-value66-", s2, o2), function(e3, t3, s3) {
|
|
433
442
|
if (e3 && null !== e3 && t3) {
|
|
434
|
-
let
|
|
435
|
-
Array.isArray(e3) && e3.length > 0 && (
|
|
443
|
+
let o3 = e3;
|
|
444
|
+
Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
|
|
436
445
|
const t4 = e4.source;
|
|
437
446
|
if (!t4) return;
|
|
438
|
-
const
|
|
439
|
-
I(s3.entity, r2,
|
|
447
|
+
const n3 = t4.split("."), a3 = S(o3, n3), i2 = e4.target, r2 = v(null, i2);
|
|
448
|
+
I(s3.entity, r2, a3);
|
|
440
449
|
});
|
|
441
450
|
}
|
|
442
|
-
}(s2,
|
|
451
|
+
}(s2, n2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: o2, entity: e2.entity.data, targetTableName: a2 });
|
|
443
452
|
}
|
|
444
453
|
const z = ["dropdown"];
|
|
445
|
-
function K(e2, t2, s2,
|
|
454
|
+
function K(e2, t2, s2, o2) {
|
|
446
455
|
var _a;
|
|
447
456
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
448
|
-
let
|
|
449
|
-
|
|
450
|
-
const
|
|
451
|
-
if (
|
|
452
|
-
if (
|
|
453
|
-
const s3 =
|
|
457
|
+
let n2 = o2;
|
|
458
|
+
n2 || (n2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation), console.log("refreshFormOrListPage22=====successOperation=", n2, "isRefreshWhenClosePopup=", s2);
|
|
459
|
+
const a2 = H(e2, t2);
|
|
460
|
+
if (console.log("refreshFormOrListPage22=====buttonForPageType=", a2), a2 && "list" === a2 && !n2 && (n2 = "refresh"), console.log("refreshFormOrListPage33=====successOperation=", n2), "refresh" === n2) {
|
|
461
|
+
if (a2 && "list" === a2) {
|
|
462
|
+
const s3 = P(e2, t2);
|
|
454
463
|
if (s3) {
|
|
455
464
|
b(e2, s3).refresh();
|
|
456
465
|
} else console.error("tableUuid is empty");
|
|
457
|
-
} else if (
|
|
466
|
+
} else if (a2 && "form" === a2) {
|
|
458
467
|
const t3 = e2.entity.data;
|
|
459
|
-
|
|
468
|
+
ge(e2, t3.ID ? t3.ID : t3.id);
|
|
460
469
|
}
|
|
461
470
|
}
|
|
462
471
|
}
|
|
463
|
-
function Q(e2, t2, s2,
|
|
464
|
-
return new Promise((r2,
|
|
465
|
-
const d2 = e2.pageContext, m2 = e2.configureObj,
|
|
472
|
+
function Q(e2, t2, s2, a2) {
|
|
473
|
+
return new Promise((r2, u2) => {
|
|
474
|
+
const d2 = e2.pageContext, m2 = e2.configureObj, g2 = e2.mainDefaultValueColumns, f2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
466
475
|
let T2 = false;
|
|
467
476
|
C2 && "noOperation" === C2 && (T2 = true);
|
|
468
477
|
let y2 = d2.tableName;
|
|
@@ -470,15 +479,15 @@ function Q(e2, t2, s2, i2) {
|
|
|
470
479
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
471
480
|
y2 = A(d2, t3);
|
|
472
481
|
}
|
|
473
|
-
const
|
|
474
|
-
return new Promise((
|
|
475
|
-
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" +
|
|
476
|
-
p.confirm(
|
|
477
|
-
const
|
|
478
|
-
p2.tableName =
|
|
479
|
-
let d4 =
|
|
480
|
-
d4 =
|
|
481
|
-
|
|
482
|
+
const P2 = function(e3, t3, s3, a3, r3, u3, d3, m3, g3) {
|
|
483
|
+
return new Promise((f3, b3) => {
|
|
484
|
+
const C3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
485
|
+
p.confirm(l().t(T3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
486
|
+
const i2 = e3.systemCode, l2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, u3, m3, null);
|
|
487
|
+
p2.tableName = g3;
|
|
488
|
+
let d4 = o(l2, e3.isTest) + s3;
|
|
489
|
+
d4 = n(d4, i2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
490
|
+
f3(e4);
|
|
482
491
|
}).catch((e4) => {
|
|
483
492
|
b3(e4);
|
|
484
493
|
});
|
|
@@ -486,114 +495,115 @@ function Q(e2, t2, s2, i2) {
|
|
|
486
495
|
b3("点击了取消按钮");
|
|
487
496
|
});
|
|
488
497
|
});
|
|
489
|
-
}(d2, m2,
|
|
490
|
-
|
|
491
|
-
|
|
498
|
+
}(d2, m2, a2, T2, g2, f2, s2, b2, y2);
|
|
499
|
+
P2 ? P2.then((e3) => {
|
|
500
|
+
$(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
492
501
|
}).catch((e3) => {
|
|
493
|
-
|
|
494
|
-
}) :
|
|
502
|
+
u2(e3);
|
|
503
|
+
}) : u2("request不存在");
|
|
495
504
|
});
|
|
496
505
|
}
|
|
497
506
|
function X(e2, s2) {
|
|
498
507
|
var _a;
|
|
499
|
-
const
|
|
500
|
-
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
const b2 =
|
|
504
|
-
b2 &&
|
|
505
|
-
const C2 = Ce(
|
|
506
|
-
C2 &&
|
|
507
|
-
const T2 =
|
|
508
|
-
T2 &&
|
|
508
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = A(a2, d2), g2 = new FormData();
|
|
509
|
+
g2.append("multipartFile", s2), m2 && g2.append("tableName", m2), a2.importBeanName && g2.append("importBeanName", a2.importBeanName), a2.beanName && g2.append("beanName", a2.beanName);
|
|
510
|
+
const f2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
511
|
+
f2 && g2.append("importDuplicateRule", f2);
|
|
512
|
+
const b2 = a2.judgeHeavyList;
|
|
513
|
+
b2 && g2.append("judgeHeavyList", JSON.stringify(b2));
|
|
514
|
+
const C2 = Ce(i2);
|
|
515
|
+
C2 && g2.append("autoSetValueData", C2);
|
|
516
|
+
const T2 = a2.formNoRuleCode;
|
|
517
|
+
T2 && g2.append("formNoRuleCode", T2);
|
|
509
518
|
const y2 = e2.listCode;
|
|
510
|
-
y2 &&
|
|
511
|
-
let
|
|
512
|
-
|
|
513
|
-
const w2 = t(
|
|
514
|
-
null != w2 &&
|
|
515
|
-
const R2 = k(
|
|
516
|
-
R2 &&
|
|
517
|
-
const
|
|
518
|
-
|
|
519
|
-
const
|
|
520
|
-
|
|
521
|
-
const
|
|
522
|
-
|
|
523
|
-
const S2 =
|
|
524
|
-
let I2 =
|
|
525
|
-
I2 =
|
|
526
|
-
if (
|
|
519
|
+
y2 && g2.append("listCode", y2);
|
|
520
|
+
let P2 = false;
|
|
521
|
+
P2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, g2.append("isAsync", P2 + ""), g2.append("pageCode", a2.code);
|
|
522
|
+
const w2 = t(a2);
|
|
523
|
+
null != w2 && g2.append("isWorkflowEntity", w2 + "");
|
|
524
|
+
const R2 = k(i2, a2);
|
|
525
|
+
R2 && g2.append("functionCode", R2);
|
|
526
|
+
const v2 = ae(a2);
|
|
527
|
+
g2.append("additionalParamMapStr", JSON.stringify(v2));
|
|
528
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
529
|
+
g2.append("isPermission", M2 + "");
|
|
530
|
+
const N2 = a2.systemCode;
|
|
531
|
+
N2 && g2.append("systemCode", N2);
|
|
532
|
+
const S2 = a2.backendUrl;
|
|
533
|
+
let I2 = o(S2, a2.isTest) + "/dsc/commons/import-data";
|
|
534
|
+
I2 = n(I2, N2, S2, a2.isTest), c.post(I2, g2).then((e3) => {
|
|
535
|
+
if (P2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") });
|
|
527
536
|
else {
|
|
528
537
|
let t2 = false;
|
|
529
|
-
e3 ? (t2 = false,
|
|
538
|
+
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), $(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
|
|
530
539
|
}
|
|
531
540
|
}).catch((e3) => {
|
|
541
|
+
console.log("error==", e3);
|
|
532
542
|
});
|
|
533
543
|
}
|
|
534
544
|
function Z(e2, t2) {
|
|
535
545
|
const s2 = e2.props.base;
|
|
536
546
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
537
547
|
if ("one" === s2.conditionsForExecution) {
|
|
538
|
-
if (!t2 || 1 !== t2.length) return
|
|
539
|
-
} else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return
|
|
548
|
+
if (!t2 || 1 !== t2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
|
|
549
|
+
} else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0)) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
|
|
540
550
|
}
|
|
541
551
|
return true;
|
|
542
552
|
}
|
|
543
553
|
function ee(e2) {
|
|
544
554
|
var _a;
|
|
545
|
-
const t2 = e2.pageContext,
|
|
546
|
-
let r2 = k(
|
|
547
|
-
r2 || (r2 =
|
|
548
|
-
const c2 = { entity:
|
|
555
|
+
const t2 = e2.pageContext, o2 = e2.configureObj, n2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
556
|
+
let r2 = k(o2, t2);
|
|
557
|
+
r2 || (r2 = i2 + ".xxx"), n2.id || n2.ID || (n2.PAGE_CODE = t2.code, n2.PAGE_VERSION = t2.version);
|
|
558
|
+
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 };
|
|
549
559
|
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);
|
|
550
|
-
const
|
|
551
|
-
|
|
552
|
-
const
|
|
553
|
-
|
|
554
|
-
const p2 = (_a =
|
|
555
|
-
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode =
|
|
556
|
-
const d2 =
|
|
560
|
+
const l2 = o2.props.base.conversionCodes;
|
|
561
|
+
l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2)), console.log("getWorkflowSaveParams----configureObj=", o2);
|
|
562
|
+
const u2 = Ce(o2);
|
|
563
|
+
u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
|
|
564
|
+
const p2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
565
|
+
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
566
|
+
const d2 = ae(t2);
|
|
557
567
|
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参数类型错误"));
|
|
558
|
-
const m2 =
|
|
568
|
+
const m2 = o2.props.base.successOperation;
|
|
559
569
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
560
570
|
}
|
|
561
|
-
function te(e2, t2, s2,
|
|
562
|
-
const
|
|
571
|
+
function te(e2, t2, s2, o2, n2) {
|
|
572
|
+
const a2 = s2.code, i2 = s2.version;
|
|
563
573
|
let r2;
|
|
564
574
|
if (e2) {
|
|
565
575
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
566
|
-
const s3 =
|
|
567
|
-
e3 && s3 &&
|
|
576
|
+
const s3 = ae(t3);
|
|
577
|
+
e3 && s3 && f(s3._t_ + "_id", e3);
|
|
568
578
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
569
|
-
const
|
|
570
|
-
if (
|
|
571
|
-
const e3 =
|
|
579
|
+
const n3 = e2.completeTaskResult;
|
|
580
|
+
if (n3) {
|
|
581
|
+
const e3 = n3.completeTaskTipType;
|
|
572
582
|
if (e3 && "MESSAGE" === e3) {
|
|
573
|
-
const e4 =
|
|
574
|
-
return
|
|
583
|
+
const e4 = n3.content;
|
|
584
|
+
return u({ showClose: true, type: "warning", message: e4 }), false;
|
|
575
585
|
}
|
|
576
586
|
}
|
|
577
587
|
if (e2.completeTaskParam) {
|
|
578
588
|
const t3 = e2.completeTaskParam;
|
|
579
|
-
r2 = t3.taskId,
|
|
589
|
+
r2 = t3.taskId, o2 && (o2.taskId = r2), w(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3;
|
|
580
590
|
}
|
|
581
|
-
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, w(
|
|
591
|
+
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, w(a2, i2, "_currentActivityName", e2.taskName);
|
|
582
592
|
}
|
|
583
|
-
return
|
|
593
|
+
return o2 && (o2.operationResult = n2), t2 || $(s2, o2.configureObj, e2, null, false), true;
|
|
584
594
|
}
|
|
585
595
|
async function se(e2, t2) {
|
|
586
596
|
const s2 = await function(e3) {
|
|
587
597
|
return new Promise((t3, s3) => {
|
|
588
598
|
var _a, _b, _c, _d;
|
|
589
|
-
const
|
|
590
|
-
if (
|
|
599
|
+
const o2 = e3.configureObj;
|
|
600
|
+
if (o2) {
|
|
591
601
|
let s4 = false;
|
|
592
|
-
if (((_b = (_a =
|
|
593
|
-
const t4 = e3.pageContext,
|
|
594
|
-
s4 =
|
|
602
|
+
if (((_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
603
|
+
const t4 = e3.pageContext, n2 = (_d = (_c = o2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
604
|
+
s4 = N(t4, o2, n2);
|
|
595
605
|
}
|
|
596
|
-
true === s4 ? p.prompt(
|
|
606
|
+
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 }) => {
|
|
597
607
|
t3(e4);
|
|
598
608
|
}).catch(() => {
|
|
599
609
|
t3(false);
|
|
@@ -601,53 +611,53 @@ async function se(e2, t2) {
|
|
|
601
611
|
} else t3(true);
|
|
602
612
|
});
|
|
603
613
|
}(e2);
|
|
604
|
-
return new Promise((
|
|
614
|
+
return new Promise((a2, i2) => {
|
|
605
615
|
var _a;
|
|
606
616
|
if (s2) {
|
|
607
617
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
608
|
-
let
|
|
609
|
-
if (
|
|
610
|
-
const
|
|
611
|
-
|
|
612
|
-
c.post(
|
|
613
|
-
let
|
|
614
|
-
s3 && (
|
|
618
|
+
let g2 = o(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
619
|
+
if (g2 = n(g2, p2, d2, r2.isTest), !g2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
620
|
+
const f2 = ee(e2);
|
|
621
|
+
f2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
622
|
+
c.post(g2, f2).then((s3) => {
|
|
623
|
+
let o2 = true;
|
|
624
|
+
s3 && (o2 = te(s3, false, r2, e2, t2)), true === o2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
|
|
615
625
|
}).catch((e3) => {
|
|
616
|
-
|
|
626
|
+
i2(e3);
|
|
617
627
|
});
|
|
618
|
-
} else
|
|
628
|
+
} else a2(true);
|
|
619
629
|
});
|
|
620
630
|
}
|
|
621
|
-
function
|
|
631
|
+
function oe(e2, t2) {
|
|
622
632
|
if (t2) {
|
|
623
|
-
const s2 = e2.pageContext,
|
|
624
|
-
c2.assigneeId = r2, ce(e2, c2,
|
|
625
|
-
|
|
633
|
+
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 = ee(e2);
|
|
634
|
+
c2.assigneeId = r2, ce(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
635
|
+
h(s2, n2);
|
|
626
636
|
});
|
|
627
637
|
}
|
|
628
638
|
}
|
|
629
|
-
function
|
|
630
|
-
const t2 = e2.pageContext, s2 = t2.entity.data,
|
|
631
|
-
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode:
|
|
639
|
+
function ne(e2) {
|
|
640
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, o2 = t2.systemCode, n2 = t2.code, a2 = ae(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 };
|
|
641
|
+
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, r2;
|
|
632
642
|
}
|
|
633
|
-
function
|
|
643
|
+
function ae(t2) {
|
|
634
644
|
if (t2.entity) {
|
|
635
645
|
let s2 = e(t2.entity.page);
|
|
636
646
|
s2 || (s2 = {});
|
|
637
|
-
const
|
|
638
|
-
return
|
|
647
|
+
const o2 = t2.entity.request;
|
|
648
|
+
return o2 && Object.assign(s2, o2), s2;
|
|
639
649
|
}
|
|
640
650
|
}
|
|
641
|
-
function
|
|
651
|
+
function ie(e2, t2) {
|
|
642
652
|
if (t2) {
|
|
643
|
-
const s2 = e2.pageContext,
|
|
644
|
-
let p2 =
|
|
645
|
-
if (p2 =
|
|
646
|
-
const d2 =
|
|
653
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
654
|
+
let p2 = o(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
655
|
+
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
656
|
+
const d2 = ne(e2);
|
|
647
657
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
648
658
|
const m2 = c.post(p2, d2);
|
|
649
659
|
m2 && m2.then((e3) => {
|
|
650
|
-
|
|
660
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && $(s2, a2, e3, null, false), h(s2, a2);
|
|
651
661
|
});
|
|
652
662
|
}
|
|
653
663
|
}
|
|
@@ -656,14 +666,14 @@ async function re(e2, t2) {
|
|
|
656
666
|
const s2 = await function(e3) {
|
|
657
667
|
return new Promise((t3, s3) => {
|
|
658
668
|
var _a, _b, _c, _d;
|
|
659
|
-
const
|
|
660
|
-
if (
|
|
661
|
-
let s4 = (_b = (_a =
|
|
669
|
+
const o2 = e3.configureObj;
|
|
670
|
+
if (o2) {
|
|
671
|
+
let s4 = (_b = (_a = o2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustRemark;
|
|
662
672
|
if (true === s4) {
|
|
663
|
-
const t4 = e3.pageContext,
|
|
664
|
-
s4 =
|
|
673
|
+
const t4 = e3.pageContext, n2 = (_d = (_c = o2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
674
|
+
s4 = N(t4, o2, n2);
|
|
665
675
|
}
|
|
666
|
-
true === s4 ? p.prompt(
|
|
676
|
+
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 }) => {
|
|
667
677
|
t3(e4);
|
|
668
678
|
}).catch(() => {
|
|
669
679
|
t3(false);
|
|
@@ -672,101 +682,101 @@ async function re(e2, t2) {
|
|
|
672
682
|
});
|
|
673
683
|
}(e2);
|
|
674
684
|
if (s2) {
|
|
675
|
-
const
|
|
676
|
-
let d2 =
|
|
677
|
-
if (d2 =
|
|
678
|
-
const m2 =
|
|
685
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
686
|
+
let d2 = o(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
687
|
+
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
688
|
+
const m2 = ne(e2);
|
|
679
689
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
680
|
-
const
|
|
681
|
-
|
|
682
|
-
|
|
690
|
+
const g2 = c.post(d2, m2);
|
|
691
|
+
g2 && g2.then((e3) => {
|
|
692
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), h(a2, i2);
|
|
683
693
|
});
|
|
684
694
|
}
|
|
685
695
|
}
|
|
686
696
|
}
|
|
687
|
-
function ce(e2, t2, s2,
|
|
688
|
-
return new Promise((
|
|
697
|
+
function ce(e2, t2, s2, o2) {
|
|
698
|
+
return new Promise((a2, i2) => {
|
|
689
699
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
690
|
-
if (!(s2 =
|
|
700
|
+
if (!(s2 = n(s2, p2, d2, r2.isTest))) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
691
701
|
const m2 = c.post(s2, t2);
|
|
692
702
|
m2 && m2.then((t3) => {
|
|
693
703
|
let s3 = true;
|
|
694
|
-
t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 &&
|
|
704
|
+
t3 && (s3 = te(t3, false, r2, e2, null)), true === s3 && u({ showClose: true, type: "success", message: l().t(o2) }), a2(true);
|
|
695
705
|
}).catch((e3) => {
|
|
696
|
-
|
|
706
|
+
i2(e3);
|
|
697
707
|
});
|
|
698
708
|
});
|
|
699
709
|
}
|
|
700
|
-
function
|
|
701
|
-
const t2 = e2.pageContext, s2 = t2.systemCode,
|
|
702
|
-
let r2 =
|
|
703
|
-
if (r2 =
|
|
704
|
-
const p2 = t2.code, d2 =
|
|
710
|
+
function le(e2) {
|
|
711
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
712
|
+
let r2 = o(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
713
|
+
if (r2 = n(r2, s2, a2, t2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
714
|
+
const p2 = t2.code, d2 = ae(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
705
715
|
return c.post(r2, m2);
|
|
706
716
|
}
|
|
707
|
-
function
|
|
708
|
-
const s2 = e2.pageContext,
|
|
709
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2,
|
|
710
|
-
|
|
717
|
+
function ue(e2, t2) {
|
|
718
|
+
const s2 = e2.pageContext, n2 = e2.configureObj, a2 = s2.backendUrl, i2 = o(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = ee(e2);
|
|
719
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ce(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
720
|
+
h(s2, n2);
|
|
711
721
|
});
|
|
712
722
|
}
|
|
713
723
|
function pe(e2) {
|
|
714
|
-
const t2 = e2.pageContext, s2 = t2.systemCode,
|
|
715
|
-
let
|
|
724
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
725
|
+
let i2 = o(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
716
726
|
const r2 = ee(e2);
|
|
717
|
-
if (
|
|
718
|
-
|
|
727
|
+
if (i2 = n(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
728
|
+
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
719
729
|
}
|
|
720
730
|
function de(e2, t2) {
|
|
721
731
|
if (t2) {
|
|
722
|
-
const s2 = e2.pageContext,
|
|
723
|
-
let p2 =
|
|
724
|
-
if (p2 =
|
|
732
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
733
|
+
let p2 = o(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
734
|
+
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
725
735
|
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = ee(e2);
|
|
726
736
|
m2.ids = d2;
|
|
727
|
-
const
|
|
728
|
-
|
|
729
|
-
|
|
737
|
+
const g2 = c.post(p2, m2);
|
|
738
|
+
g2 && g2.then((e3) => {
|
|
739
|
+
$(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
|
|
730
740
|
});
|
|
731
741
|
}
|
|
732
742
|
}
|
|
733
743
|
function me(e2, t2, s2) {
|
|
734
|
-
let
|
|
735
|
-
return e2 && t2 && ("workflowSave" === e2 ?
|
|
744
|
+
let o2 = false;
|
|
745
|
+
return e2 && t2 && ("workflowSave" === e2 ? o2 = function(e3) {
|
|
736
746
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
737
747
|
if (e3.processState && "SUBMIT" === e3.processState && "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;
|
|
738
748
|
return false;
|
|
739
|
-
}(t2) : "submitProcess" === e2 ?
|
|
749
|
+
}(t2) : "submitProcess" === e2 ? o2 = function(e3) {
|
|
740
750
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
741
751
|
return false;
|
|
742
|
-
}(t2) : "submitTask" === e2 ?
|
|
752
|
+
}(t2) : "submitTask" === e2 ? o2 = function(e3) {
|
|
743
753
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
744
754
|
return false;
|
|
745
|
-
}(t2) : "drawTask" === e2 ?
|
|
755
|
+
}(t2) : "drawTask" === e2 ? o2 = function(e3) {
|
|
746
756
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
747
757
|
return false;
|
|
748
|
-
}(t2) : "abandonReceive" === e2 ?
|
|
758
|
+
}(t2) : "abandonReceive" === e2 ? o2 = function(e3) {
|
|
749
759
|
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
|
|
750
760
|
return false;
|
|
751
|
-
}(t2) : "approve" === e2 || "refuse" === e2 ?
|
|
761
|
+
}(t2) : "approve" === e2 || "refuse" === e2 ? o2 = function(e3) {
|
|
752
762
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
|
|
753
763
|
return false;
|
|
754
|
-
}(t2) : "readed" === e2 ?
|
|
764
|
+
}(t2) : "readed" === e2 ? o2 = function(e3) {
|
|
755
765
|
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
|
|
756
766
|
return false;
|
|
757
|
-
}(t2) : "assign" === e2 ?
|
|
767
|
+
}(t2) : "assign" === e2 ? o2 = function(e3) {
|
|
758
768
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
759
769
|
return false;
|
|
760
|
-
}(t2) : "copyTask" === e2 ?
|
|
770
|
+
}(t2) : "copyTask" === e2 ? o2 = function(e3) {
|
|
761
771
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy) return true;
|
|
762
772
|
return false;
|
|
763
|
-
}(t2) : "addSigner" === e2 ?
|
|
773
|
+
}(t2) : "addSigner" === e2 ? o2 = function(e3) {
|
|
764
774
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
765
775
|
return false;
|
|
766
|
-
}(t2) : "removeSigner" === e2 ?
|
|
776
|
+
}(t2) : "removeSigner" === e2 ? o2 = function(e3) {
|
|
767
777
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
768
778
|
return false;
|
|
769
|
-
}(t2) : "retrieveTask" === e2 ?
|
|
779
|
+
}(t2) : "retrieveTask" === e2 ? o2 = function(e3) {
|
|
770
780
|
if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
|
|
771
781
|
if ("COMPLETED" !== e4.active) return false;
|
|
772
782
|
if ("TYPE_READ" === e4.processingMode) return false;
|
|
@@ -774,10 +784,10 @@ function me(e2, t2, s2) {
|
|
|
774
784
|
return true;
|
|
775
785
|
}(e3)) return true;
|
|
776
786
|
return false;
|
|
777
|
-
}(t2) : "agreement" === e2 || "oppose" === e2 ?
|
|
787
|
+
}(t2) : "agreement" === e2 || "oppose" === e2 ? o2 = function(e3) {
|
|
778
788
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
|
|
779
789
|
return false;
|
|
780
|
-
}(t2) : "kiken" === e2 ?
|
|
790
|
+
}(t2) : "kiken" === e2 ? o2 = function(e3) {
|
|
781
791
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
782
792
|
return false;
|
|
783
793
|
}(t2) : function(e3, t3) {
|
|
@@ -787,97 +797,99 @@ function me(e2, t2, s2) {
|
|
|
787
797
|
t4 && (s3 = t4.taskComplete);
|
|
788
798
|
return s3;
|
|
789
799
|
}(t3);
|
|
790
|
-
}(t2, s2) && (
|
|
800
|
+
}(t2, s2) && (o2 = "returnToPreviousTask" !== e2 || function(e3) {
|
|
791
801
|
if (e3.rebuttable) return true;
|
|
792
802
|
return false;
|
|
793
|
-
}(t2))),
|
|
803
|
+
}(t2))), o2;
|
|
794
804
|
}
|
|
795
|
-
function
|
|
796
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
805
|
+
function ge(e2, t2) {
|
|
806
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, fe(e2, t2).then((t3) => {
|
|
797
807
|
e2.isRefresh = true;
|
|
798
808
|
});
|
|
799
809
|
}
|
|
800
|
-
function
|
|
801
|
-
const
|
|
802
|
-
if (
|
|
803
|
-
e2.canClick = false;
|
|
810
|
+
function fe(e2, s2, n2) {
|
|
811
|
+
const a2 = e2.pageType;
|
|
812
|
+
if (a2 && "form" === a2) {
|
|
813
|
+
console.log("获取表单数据getData--pageContext=", e2), e2.canClick = false;
|
|
804
814
|
return t(e2) ? function(e3, t2, s3) {
|
|
805
|
-
return new Promise((
|
|
806
|
-
const
|
|
807
|
-
let d2 = t2 || null,
|
|
808
|
-
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null),
|
|
809
|
-
const
|
|
810
|
-
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
815
|
+
return new Promise((n3, a3) => {
|
|
816
|
+
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ae(e3);
|
|
817
|
+
let d2 = t2 || null, g2 = t2 ? [t2] : null;
|
|
818
|
+
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);
|
|
819
|
+
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
820
|
+
if (console.log("getWorkflowFormData---listCodesMap=", e3.listCodesMap), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
811
821
|
const t3 = {};
|
|
812
822
|
e3.tableUuids.forEach((e4) => {
|
|
813
|
-
const s4 = r(
|
|
823
|
+
const s4 = r(l2, u2, e4);
|
|
814
824
|
t3[s4] = s4;
|
|
815
825
|
}), C2.listCodesMap = t3;
|
|
816
826
|
}
|
|
817
|
-
|
|
818
|
-
const T2 =
|
|
819
|
-
|
|
827
|
+
g2 && (C2.ids = be(g2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
828
|
+
const T2 = o(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", P2 = _();
|
|
829
|
+
P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
820
830
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, te(t3, true, e3), e3.workflowRules = O(e3);
|
|
821
831
|
const s4 = e3.pageType;
|
|
822
832
|
s4 && "form" === s4 && function(e4) {
|
|
823
833
|
(function(e5) {
|
|
824
834
|
const t4 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
|
|
825
835
|
if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
|
|
826
|
-
const
|
|
827
|
-
if (
|
|
828
|
-
const
|
|
829
|
-
if (
|
|
836
|
+
const o2 = s5[e6].name;
|
|
837
|
+
if (o2) if (0 === o2.indexOf("$") && o2.indexOf(".") > 0) {
|
|
838
|
+
const n4 = s5[e6], a4 = JSON.parse(JSON.stringify(n4)), i3 = o2.substring(1, o2.indexOf(".")), r2 = o2.substring(o2.indexOf(".") + 1);
|
|
839
|
+
if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t4.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t4.set(i3, [{ name: "all_fields", canEdit: true }]);
|
|
830
840
|
else {
|
|
831
|
-
let e7 = t4.get(
|
|
832
|
-
e7 || (e7 = []), e7.push(
|
|
841
|
+
let e7 = t4.get(i3);
|
|
842
|
+
e7 || (e7 = []), e7.push(a4), t4.set(i3, e7);
|
|
833
843
|
}
|
|
834
|
-
} else t4.set(
|
|
844
|
+
} else t4.set(o2, s5[e6]);
|
|
835
845
|
}
|
|
836
846
|
e5.fieldPermissionMap = t4;
|
|
837
847
|
})(e4), function(e5) {
|
|
838
|
-
const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(),
|
|
839
|
-
if (null !=
|
|
840
|
-
Object.keys(
|
|
841
|
-
const
|
|
842
|
-
if (
|
|
848
|
+
const t4 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), o2 = e5.actionPermissions;
|
|
849
|
+
if (null != o2) {
|
|
850
|
+
Object.keys(o2).forEach((e6) => {
|
|
851
|
+
const n4 = o2[e6], a4 = t4.get(e6);
|
|
852
|
+
if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) n4.canUpdate = false, n4.canAdd = false;
|
|
843
853
|
else {
|
|
844
|
-
const s6 =
|
|
845
|
-
void 0 !== s6 && false === s6 && null !=
|
|
854
|
+
const s6 = n4.canUpdate, o3 = n4.updateRowIndexes;
|
|
855
|
+
void 0 !== s6 && false === s6 && null != o3 && o3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: o3 }]);
|
|
846
856
|
}
|
|
847
|
-
s5.set(e6,
|
|
857
|
+
s5.set(e6, n4);
|
|
848
858
|
});
|
|
849
859
|
}
|
|
850
860
|
e5.actionPermissionMap = s5;
|
|
851
861
|
}(e4);
|
|
852
|
-
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"),
|
|
862
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), n3(t3);
|
|
853
863
|
}).catch((t3) => {
|
|
854
|
-
e3.canClick = true,
|
|
864
|
+
e3.canClick = true, a3(t3);
|
|
855
865
|
});
|
|
856
866
|
});
|
|
857
|
-
}(e2, s2,
|
|
858
|
-
return new Promise((
|
|
859
|
-
const
|
|
860
|
-
let d2 = t2 || null,
|
|
861
|
-
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null),
|
|
862
|
-
const
|
|
863
|
-
|
|
867
|
+
}(e2, s2, n2) : function(e3, t2, s3) {
|
|
868
|
+
return new Promise((n3, a3) => {
|
|
869
|
+
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = ae(e3);
|
|
870
|
+
let d2 = t2 || null, g2 = t2 ? [t2] : null;
|
|
871
|
+
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);
|
|
872
|
+
const f2 = p2 ? p2.taskId : null, b2 = l2;
|
|
873
|
+
console.log("getCommonFormData-----pageContext=", e3);
|
|
874
|
+
const C2 = o(e3.backendUrl, e3.isTest), T2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
875
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), g2 && (T2.ids = be(g2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), f2 && (T2.taskId = f2), console.log("getCommonFormData---listCodesMap=", e3.listCodesMap), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
864
876
|
const t3 = {};
|
|
865
877
|
e3.tableUuids.forEach((e4) => {
|
|
866
|
-
const s4 = r(
|
|
878
|
+
const s4 = r(l2, u2, e4);
|
|
867
879
|
t3[s4] = s4;
|
|
868
880
|
}), T2.listCodesMap = t3;
|
|
869
881
|
}
|
|
870
882
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
871
|
-
const
|
|
872
|
-
|
|
883
|
+
const P2 = C2 + "/dsc/commons/gets", h2 = _();
|
|
884
|
+
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(P2, T2).then((t3) => {
|
|
873
885
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
874
|
-
const s4 = e3.customRules,
|
|
875
|
-
e3.rules =
|
|
886
|
+
const s4 = e3.customRules, o2 = e3.rules, a4 = U(s4, o2);
|
|
887
|
+
e3.rules = a4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), n3(t3);
|
|
876
888
|
}).catch((t3) => {
|
|
877
|
-
e3.canClick = true,
|
|
889
|
+
e3.canClick = true, a3(t3);
|
|
878
890
|
});
|
|
879
891
|
});
|
|
880
|
-
}(e2, s2,
|
|
892
|
+
}(e2, s2, n2);
|
|
881
893
|
}
|
|
882
894
|
return new Promise((e3, t2) => {
|
|
883
895
|
e3(true);
|
|
@@ -895,39 +907,39 @@ function Ce(e2) {
|
|
|
895
907
|
return null;
|
|
896
908
|
}
|
|
897
909
|
function Te(e2, t2) {
|
|
898
|
-
const s2 = e2.entity ? e2.entity : {},
|
|
899
|
-
return c.post(
|
|
910
|
+
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";
|
|
911
|
+
return c.post(a2, n2);
|
|
900
912
|
}
|
|
901
913
|
function ye(e2) {
|
|
902
914
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
903
915
|
return c.get(s2);
|
|
904
916
|
}
|
|
905
|
-
function
|
|
917
|
+
function Pe(e2) {
|
|
906
918
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
907
919
|
return c.delete(t2);
|
|
908
920
|
}
|
|
909
921
|
export {
|
|
910
|
-
|
|
922
|
+
$ as dealAfterOperate,
|
|
911
923
|
te as dealCompleteTaskParam,
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
924
|
+
Pe as deleteChartCondition,
|
|
925
|
+
ie as doAddSigner,
|
|
926
|
+
oe as doAssign,
|
|
915
927
|
re as doCreateCopyTask,
|
|
916
928
|
X as doImportFinally,
|
|
917
929
|
de as doRemoveSigners,
|
|
918
|
-
|
|
930
|
+
ue as doReturnTaskTo,
|
|
919
931
|
L as exportFormReport,
|
|
920
|
-
|
|
921
|
-
|
|
932
|
+
ae as getAdditionalParamMap,
|
|
933
|
+
fe as getFormData,
|
|
922
934
|
pe as getRemoveSigner,
|
|
923
|
-
|
|
935
|
+
q as getSaveFormRequest,
|
|
924
936
|
F as getSaveFormRequestWithRow,
|
|
925
|
-
|
|
937
|
+
le as getTaskInformitions,
|
|
926
938
|
me as isVisibleWorkflowButton,
|
|
927
939
|
Z as judgeDataNumber,
|
|
928
940
|
ye as listChartConditions,
|
|
929
941
|
K as refreshFormOrListPage,
|
|
930
|
-
|
|
942
|
+
ge as refreshPage,
|
|
931
943
|
Te as saveChartConditionBase,
|
|
932
944
|
j as standardEvents,
|
|
933
945
|
Y as updateValuesWhenCloseDialog
|