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