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