super-page-runtime 2.2.0 → 2.2.1
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/_virtual/_plugin-vue_export-helper.js +1 -2
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
- package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
- package/dist/es/components/runtime/utils/barcode-util.js +1 -2
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
- package/dist/es/components/runtime/utils/common-util.js +7 -14
- package/dist/es/components/runtime/utils/events/event-util.js +97 -115
- package/dist/es/components/runtime/utils/events/print-label.js +20 -21
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
- package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
- package/dist/es/components/runtime/utils/global-refs.js +7 -14
- package/dist/es/components/runtime/utils/i18n-util.js +1 -2
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +65 -69
- package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +4 -8
- package/dist/es/components/runtime/utils/tree-utils.js +13 -15
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- 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.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
- package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
- package/dist/es/components/runtime/views/super-page.vue.js +171 -182
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +74 -74
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { deepCopy as e,
|
|
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
3
|
import { getI18n as u } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage as l, ElMessageBox as p } from "element-plus";
|
|
@@ -6,13 +6,13 @@ import { getToken as d, getSessionCache as m, setSessionCache as f } from "agile
|
|
|
6
6
|
import { getComponentRef as g } from "../global-refs.js";
|
|
7
7
|
import C from "../eventBus.js";
|
|
8
8
|
import b from "axios";
|
|
9
|
-
import {
|
|
9
|
+
import { handleEvent as y, getTableUuid as T, doAfterClickEvent as w } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as h } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as P, getDefaultValue as k, getModelFields as N } from "../page-init-util.js";
|
|
12
12
|
import { updateChartDatasources as v, caculateShowCondition as M, getVariableValue as R, setVariableValue as S } from "../page-helper-util.js";
|
|
13
13
|
import I from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as x } from "../table-utils.js";
|
|
15
|
-
import {
|
|
15
|
+
import { getWorkflowRules as A, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as O } from "../api/page-expose-util.js";
|
|
17
17
|
const E = { save: function(e2) {
|
|
18
18
|
return D(e2, false);
|
|
@@ -38,19 +38,18 @@ const E = { save: function(e2) {
|
|
|
38
38
|
return J(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
39
39
|
}, back: function(e2) {
|
|
40
40
|
const t2 = e2.pageContext;
|
|
41
|
-
|
|
41
|
+
F(t2, t2.entity ? t2.entity.data : {}, !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping);
|
|
42
42
|
}, delete: function(e2) {
|
|
43
43
|
return function(e3) {
|
|
44
|
-
return new Promise((
|
|
44
|
+
return new Promise((s2, i2) => {
|
|
45
45
|
const a2 = e3.ids;
|
|
46
|
-
if (!a2 || 0 === a2.length)
|
|
47
|
-
return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void n2(true);
|
|
46
|
+
if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
48
47
|
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
48
|
var _a;
|
|
50
49
|
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 = x(r2, m2);
|
|
51
|
-
let C2 =
|
|
52
|
-
C2 =
|
|
53
|
-
const b2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission,
|
|
50
|
+
let C2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
51
|
+
C2 = o(C2, p2, d2, r2.isTest);
|
|
52
|
+
const b2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, y2 = t(r2), T2 = P(u2, r2), w2 = { ids: a2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: y2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
53
|
r2.beanName && (w2.beanName = r2.beanName);
|
|
55
54
|
const h2 = u2.props.deleteLogicSetting;
|
|
56
55
|
h2 && ("object" == typeof h2 ? w2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (w2.deleteLogicSetting = h2));
|
|
@@ -59,7 +58,7 @@ const E = { save: function(e2) {
|
|
|
59
58
|
const N2 = u2.props.base.isSafeDelete;
|
|
60
59
|
N2 && (w2.isSafeDelete = N2), c.delete(C2, { data: w2 }).then((e4) => {
|
|
61
60
|
const t2 = g(r2, m2);
|
|
62
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()), W(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true),
|
|
61
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), W(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
63
62
|
}).catch((e4) => {
|
|
64
63
|
i2(e4);
|
|
65
64
|
});
|
|
@@ -71,31 +70,31 @@ const E = { save: function(e2) {
|
|
|
71
70
|
}, downloadTemplate: function(e2) {
|
|
72
71
|
!function(e3) {
|
|
73
72
|
var _a;
|
|
74
|
-
const
|
|
73
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, o2 = s2.props.base, a2 = i(o2.templateFiles);
|
|
75
74
|
let r2, c2;
|
|
76
75
|
a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
|
|
77
|
-
const u2 =
|
|
76
|
+
const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
|
|
78
77
|
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) :
|
|
80
|
-
const g2 = (_a =
|
|
78
|
+
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");
|
|
79
|
+
const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
|
|
81
80
|
g2 && (f2 += "&logSettingText=" + g2.join(""));
|
|
82
81
|
u2 && (f2 += "&systemCode=" + u2);
|
|
83
82
|
const C2 = e3.listCode;
|
|
84
83
|
C2 && (f2 += "&listCode=" + C2);
|
|
85
|
-
|
|
86
|
-
const b2 = P(
|
|
84
|
+
t2.beanName && (f2 += "&beanName=" + t2.beanName);
|
|
85
|
+
const b2 = P(s2, t2);
|
|
87
86
|
b2 && (f2 += "&functionCode=" + b2);
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
w2 && (f2 += "&" +
|
|
87
|
+
t2.tableName && (f2 += "&tableName=" + t2.tableName);
|
|
88
|
+
t2.code && (f2 += "&pageCode=" + t2.code);
|
|
89
|
+
t2.version && (f2 += "&pageVersion=" + t2.version);
|
|
90
|
+
const y2 = d();
|
|
91
|
+
y2 && (f2 += "&JWT=" + y2);
|
|
92
|
+
const T2 = "_RUN_CURRENT_ROLE", w2 = m(T2);
|
|
93
|
+
w2 && (f2 += "&" + T2 + "=" + w2);
|
|
95
94
|
if (o2) {
|
|
96
95
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
96
|
}
|
|
98
|
-
const h2 =
|
|
97
|
+
const h2 = n(l2, t2.isTest);
|
|
99
98
|
window.open(h2 + "/dsc/commons/download-files" + f2);
|
|
100
99
|
}(e2);
|
|
101
100
|
}, import: function(e2) {
|
|
@@ -122,34 +121,32 @@ const E = { save: function(e2) {
|
|
|
122
121
|
g(t2, s2).showMobileSearch();
|
|
123
122
|
}, workflowSave: function(e2) {
|
|
124
123
|
return async function(e3) {
|
|
125
|
-
return new Promise((
|
|
124
|
+
return new Promise((t2, s2) => {
|
|
126
125
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
127
|
-
let d2 =
|
|
128
|
-
if (d2 =
|
|
129
|
-
return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
126
|
+
let d2 = n(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
127
|
+
if (d2 = o(d2, r2, p2, i2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
130
128
|
const m2 = Y(e3);
|
|
131
129
|
let f2;
|
|
132
|
-
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((
|
|
133
|
-
let
|
|
134
|
-
|
|
130
|
+
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
|
|
131
|
+
let n2 = true;
|
|
132
|
+
s3 && (n2 = K(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), t2(true);
|
|
135
133
|
}).catch((e4) => {
|
|
136
|
-
|
|
134
|
+
s2(e4);
|
|
137
135
|
});
|
|
138
136
|
});
|
|
139
137
|
}(e2);
|
|
140
138
|
}, submitProcess: function(e2) {
|
|
141
139
|
return function(e3) {
|
|
142
|
-
return new Promise((
|
|
140
|
+
return new Promise((t2, s2) => {
|
|
143
141
|
const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
144
|
-
let p2 =
|
|
145
|
-
if (p2 =
|
|
146
|
-
return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
142
|
+
let p2 = n(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
143
|
+
if (p2 = o(p2, a2, r2, i2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
147
144
|
const d2 = Y(e3), m2 = c.post(p2, d2);
|
|
148
|
-
m2 && m2.then((
|
|
149
|
-
let
|
|
150
|
-
|
|
145
|
+
m2 && m2.then((s3) => {
|
|
146
|
+
let n2 = true;
|
|
147
|
+
s3 && (n2 = K(s3, false, i2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), t2(true);
|
|
151
148
|
}).catch((e4) => {
|
|
152
|
-
|
|
149
|
+
s2(e4);
|
|
153
150
|
});
|
|
154
151
|
});
|
|
155
152
|
}(e2);
|
|
@@ -184,22 +181,22 @@ const E = { save: function(e2) {
|
|
|
184
181
|
}(e2);
|
|
185
182
|
}, drawTask: function(e2) {
|
|
186
183
|
return function(e3) {
|
|
187
|
-
const
|
|
184
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", i2 = Y(e3);
|
|
188
185
|
return ne(e3, i2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
189
186
|
}(e2);
|
|
190
187
|
}, abandonReceive: function(e2) {
|
|
191
188
|
return function(e3) {
|
|
192
|
-
const
|
|
189
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", i2 = Y(e3);
|
|
193
190
|
return ne(e3, i2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
194
191
|
}(e2);
|
|
195
192
|
}, returnToPreviousTask: function(e2) {
|
|
196
193
|
return function(e3) {
|
|
197
|
-
const
|
|
194
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", i2 = Y(e3);
|
|
198
195
|
return ne(e3, i2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
199
196
|
}(e2);
|
|
200
197
|
}, endInstance: function(e2) {
|
|
201
198
|
return function(e3) {
|
|
202
|
-
const
|
|
199
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", i2 = Y(e3);
|
|
203
200
|
return ne(e3, i2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
204
201
|
}(e2);
|
|
205
202
|
}, returnTaskTo: function(e2) {
|
|
@@ -214,7 +211,7 @@ const E = { save: function(e2) {
|
|
|
214
211
|
}(e2);
|
|
215
212
|
}, retrieveTask: function(e2) {
|
|
216
213
|
return function(e3) {
|
|
217
|
-
const
|
|
214
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", i2 = Y(e3);
|
|
218
215
|
return ne(e3, i2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
219
216
|
}(e2);
|
|
220
217
|
}, viewDetail: function(e2) {
|
|
@@ -227,8 +224,7 @@ const E = { save: function(e2) {
|
|
|
227
224
|
return function(e3) {
|
|
228
225
|
let t2 = null;
|
|
229
226
|
try {
|
|
230
|
-
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2)
|
|
231
|
-
throw new Error("未找到模板");
|
|
227
|
+
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
232
228
|
} catch (e4) {
|
|
233
229
|
}
|
|
234
230
|
I.printLabel(e3, t2);
|
|
@@ -241,33 +237,31 @@ const E = { save: function(e2) {
|
|
|
241
237
|
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);
|
|
242
238
|
}, exportCharts: function(e2) {
|
|
243
239
|
!function(e3) {
|
|
244
|
-
const
|
|
245
|
-
if (!
|
|
246
|
-
return;
|
|
240
|
+
const t2 = e3.pageContext, s2 = t2.allChartUuids;
|
|
241
|
+
if (!s2 || 0 == s2.length) return;
|
|
247
242
|
const o2 = e3.configureObj;
|
|
248
243
|
let i2 = null;
|
|
249
244
|
o2 && o2.runtime && (i2 = o2.runtime.props);
|
|
250
245
|
const a2 = i2 ? i2.state : void 0;
|
|
251
246
|
i2 && (i2.state = "disabled");
|
|
252
247
|
const r2 = [];
|
|
253
|
-
for (let e4 = 0; e4 <
|
|
254
|
-
const
|
|
248
|
+
for (let e4 = 0; e4 < s2.length; e4++) {
|
|
249
|
+
const n2 = s2[e4], o3 = g(t2, n2);
|
|
255
250
|
if (o3) {
|
|
256
251
|
const e5 = o3.getConfigure();
|
|
257
|
-
e5 && e5.exportable && o3.exportChart && r2.push(o3.exportChart());
|
|
252
|
+
e5 && e5.exportable && e5._dynamicShowFlag && o3.exportChart && r2.push(o3.exportChart());
|
|
258
253
|
}
|
|
259
254
|
}
|
|
260
|
-
if (!r2 || 0 == r2.length)
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
u2 || (u2 = s2.code);
|
|
255
|
+
if (!r2 || 0 == r2.length) return;
|
|
256
|
+
let c2, u2 = t2.label;
|
|
257
|
+
u2 || (u2 = t2.code);
|
|
264
258
|
c2 = u2;
|
|
265
|
-
const l2 = { reportDataList: r2, beanName:
|
|
259
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = t2.backendUrl;
|
|
266
260
|
let m2;
|
|
267
|
-
const f2 =
|
|
261
|
+
const f2 = n(p2, t2.isTest) + "/dsc/commons/exportChart";
|
|
268
262
|
b.defaults.headers.common.Authorization = d(), m2 = b.post(f2, l2, { responseType: "blob" }), m2.then((e4) => {
|
|
269
|
-
const
|
|
270
|
-
|
|
263
|
+
const t3 = document.createElement("a");
|
|
264
|
+
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);
|
|
271
265
|
}).finally(() => {
|
|
272
266
|
i2 && (i2.state = a2);
|
|
273
267
|
});
|
|
@@ -275,8 +269,7 @@ const E = { save: function(e2) {
|
|
|
275
269
|
} };
|
|
276
270
|
function _(e2) {
|
|
277
271
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
278
|
-
if (!s2 || 0 == s2.length)
|
|
279
|
-
return;
|
|
272
|
+
if (!s2 || 0 == s2.length) return;
|
|
280
273
|
const n2 = e2.configureObj;
|
|
281
274
|
let o2 = null;
|
|
282
275
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
@@ -287,38 +280,38 @@ function _(e2) {
|
|
|
287
280
|
o2 && (o2.state = i2);
|
|
288
281
|
});
|
|
289
282
|
}
|
|
290
|
-
function j(e2, s2,
|
|
283
|
+
function j(e2, s2, o2, i2) {
|
|
291
284
|
var _a;
|
|
292
|
-
const a2 =
|
|
293
|
-
u2 && (
|
|
285
|
+
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, C2 = O.getFormViewData(e2), y2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, T2 = { entity: C2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: P(s2, e2), tableName: f2, isPermission: y2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
286
|
+
u2 && (T2.logSettingText = u2.join(""));
|
|
294
287
|
const h2 = ee(e2);
|
|
295
288
|
let k2;
|
|
296
|
-
|
|
289
|
+
T2.additionalParamMap = h2, k2 = i2 ? function(e3, t2, s3, o3) {
|
|
297
290
|
return new Promise((i3, a3) => {
|
|
298
|
-
const r3 =
|
|
291
|
+
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
299
292
|
b.defaults.headers.common.Authorization = d();
|
|
300
|
-
b.post(r3,
|
|
301
|
-
const s4 = new Blob([
|
|
302
|
-
|
|
293
|
+
b.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
294
|
+
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
295
|
+
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);
|
|
303
296
|
}).catch((e4) => {
|
|
304
297
|
a3(e4);
|
|
305
298
|
});
|
|
306
299
|
});
|
|
307
|
-
}(r2, g2,
|
|
300
|
+
}(r2, g2, T2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
308
301
|
return new Promise((i3, a3) => {
|
|
309
|
-
const r3 =
|
|
302
|
+
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
310
303
|
b.defaults.headers.common.Authorization = d();
|
|
311
|
-
b.post(r3,
|
|
312
|
-
const s4 = new Blob([
|
|
313
|
-
let
|
|
314
|
-
e3 && (
|
|
315
|
-
const
|
|
316
|
-
|
|
304
|
+
b.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
305
|
+
const s4 = new Blob([t3.data]);
|
|
306
|
+
let n2 = "报告.xlsx";
|
|
307
|
+
e3 && (n2 = e3);
|
|
308
|
+
const o4 = document.createElement("a");
|
|
309
|
+
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);
|
|
317
310
|
}).catch((e4) => {
|
|
318
311
|
a3(e4);
|
|
319
312
|
});
|
|
320
313
|
});
|
|
321
|
-
}(r2, g2,
|
|
314
|
+
}(r2, g2, T2, e2.isTest), k2 && k2.then(() => {
|
|
322
315
|
w(e2, s2);
|
|
323
316
|
});
|
|
324
317
|
}
|
|
@@ -335,32 +328,32 @@ function D(e2, t2) {
|
|
|
335
328
|
}) : n2("保存时request不存在");
|
|
336
329
|
});
|
|
337
330
|
}
|
|
338
|
-
function B(e2,
|
|
331
|
+
function B(e2, n2, o2, i2, a2, r2, c2) {
|
|
339
332
|
var _a;
|
|
340
|
-
const u2 =
|
|
333
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = P(n2, e2);
|
|
341
334
|
let m2 = c2;
|
|
342
335
|
m2 || (m2 = e2.entity.data);
|
|
343
336
|
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 };
|
|
344
|
-
r2 && (f2.ids = r2), e2.judgeHeavyList && (
|
|
345
|
-
const g2 =
|
|
346
|
-
g2 && (
|
|
347
|
-
const C2 = de(
|
|
337
|
+
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
338
|
+
const g2 = n2.props.base.conversionCodes;
|
|
339
|
+
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
340
|
+
const C2 = de(n2);
|
|
348
341
|
C2 && (f2.autoSetValueData = C2);
|
|
349
|
-
const b2 = (_a =
|
|
342
|
+
const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
350
343
|
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
351
|
-
const
|
|
352
|
-
|
|
353
|
-
const
|
|
354
|
-
return f2.additionalParamMap =
|
|
355
|
-
}
|
|
356
|
-
function L(e2,
|
|
357
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2,
|
|
358
|
-
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3,
|
|
359
|
-
const u3 =
|
|
344
|
+
const y2 = e2.beanName;
|
|
345
|
+
y2 && (f2.beanName = y2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
346
|
+
const T2 = ee(e2);
|
|
347
|
+
return f2.additionalParamMap = T2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
348
|
+
}
|
|
349
|
+
function L(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
350
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, i2, a2, r2, null, u2);
|
|
351
|
+
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, i3, a3, r3) {
|
|
352
|
+
const u3 = n(t3, r3);
|
|
360
353
|
let l3, p3 = u3 + i3;
|
|
361
|
-
p3 =
|
|
354
|
+
p3 = o(p3, e3, t3, r3), l3 = a3 && (a3.id || a3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
362
355
|
return l3;
|
|
363
|
-
}(p2, d2, m2,
|
|
356
|
+
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
364
357
|
}
|
|
365
358
|
function V(e2, t2, s2, n2, o2, i2) {
|
|
366
359
|
return L(e2, t2, s2, n2, o2, i2, null, null);
|
|
@@ -378,7 +371,7 @@ function W(t2, s2, n2, o2, i2) {
|
|
|
378
371
|
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
379
372
|
const s4 = e(t3.entity.page);
|
|
380
373
|
let o4 = n3;
|
|
381
|
-
o4 || (o4 = {}), Object.assign(s4, o4),
|
|
374
|
+
o4 || (o4 = {}), Object.assign(s4, o4), F(t3, s4, a3);
|
|
382
375
|
}
|
|
383
376
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
384
377
|
}(t2, s2, n2, o2), t2.canClick = true) : a2 && "form" === a2 ? function(e2, t3, s3, n3) {
|
|
@@ -388,13 +381,11 @@ function W(t2, s2, n2, o2, i2) {
|
|
|
388
381
|
n4.entity && (o3 = n4.entity), n4.formNo && (e2.initFormNo = n4.formNo);
|
|
389
382
|
!function(e3, t4, s4) {
|
|
390
383
|
const n5 = t4.props.base.successOperation;
|
|
391
|
-
if (!n5 || null === n5)
|
|
392
|
-
return;
|
|
384
|
+
if (!n5 || null === n5) return;
|
|
393
385
|
const o4 = t4.props.base.isNeedValueMapping;
|
|
394
|
-
"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 || (
|
|
386
|
+
"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 || (F(e3, s4, o4), e3.canClick = true);
|
|
395
387
|
}(e2, t3, { ...o3, ...e2.entity.page });
|
|
396
|
-
} else
|
|
397
|
-
e2.canClick = true;
|
|
388
|
+
} else e2.canClick = true;
|
|
398
389
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
399
390
|
}(t2, s2, n2, o2) : t2.canClick = true;
|
|
400
391
|
}
|
|
@@ -402,16 +393,15 @@ function q(e2, t2, s2) {
|
|
|
402
393
|
let n2;
|
|
403
394
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
404
395
|
}
|
|
405
|
-
function
|
|
396
|
+
function F(e2, t2, s2) {
|
|
406
397
|
const n2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
407
|
-
if ("openWindow" === n2 || "newTab" === n2)
|
|
408
|
-
window.parent ? window.parent.close() : window.close();
|
|
398
|
+
if ("openWindow" === n2 || "newTab" === n2) window.parent ? window.parent.close() : window.close();
|
|
409
399
|
else {
|
|
410
400
|
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) + "_";
|
|
411
401
|
C.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
|
|
412
402
|
}
|
|
413
403
|
}
|
|
414
|
-
function
|
|
404
|
+
function H(e2, t2, s2, n2) {
|
|
415
405
|
var _a;
|
|
416
406
|
let o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null;
|
|
417
407
|
o2 || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
@@ -421,49 +411,49 @@ function F(e2, t2, s2, n2) {
|
|
|
421
411
|
let n3 = e3;
|
|
422
412
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
423
413
|
const t4 = e4.source;
|
|
424
|
-
if (!t4)
|
|
425
|
-
return;
|
|
414
|
+
if (!t4) return;
|
|
426
415
|
const o3 = t4.split("."), i3 = R(n3, o3), a2 = e4.target, r2 = N(null, a2);
|
|
427
416
|
S(s3.entity, r2, i3);
|
|
428
417
|
});
|
|
429
418
|
}
|
|
430
419
|
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
|
|
431
420
|
}
|
|
432
|
-
function $(e2, t2, s2) {
|
|
421
|
+
function $(e2, t2, s2, n2) {
|
|
433
422
|
var _a;
|
|
434
423
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
435
|
-
let
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
424
|
+
let o2 = n2;
|
|
425
|
+
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
426
|
+
const i2 = q(e2, t2);
|
|
427
|
+
if (i2 && "list" === i2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
428
|
+
if (i2 && "list" === i2) {
|
|
439
429
|
const s3 = T(e2, t2);
|
|
440
430
|
if (s3) {
|
|
441
431
|
g(e2, s3).refresh();
|
|
442
432
|
}
|
|
443
|
-
} else if (
|
|
433
|
+
} else if (i2 && "form" === i2) {
|
|
444
434
|
const t3 = e2.entity.data;
|
|
445
435
|
ue(e2, t3.ID ? t3.ID : t3.id);
|
|
446
436
|
}
|
|
447
437
|
}
|
|
448
438
|
}
|
|
449
|
-
function J(e2,
|
|
439
|
+
function J(e2, t2, s2, i2) {
|
|
450
440
|
return new Promise((r2, l2) => {
|
|
451
441
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
|
|
452
|
-
let
|
|
453
|
-
b2 && "noOperation" === b2 && (
|
|
454
|
-
let
|
|
455
|
-
if (
|
|
456
|
-
const
|
|
457
|
-
|
|
442
|
+
let y2 = false;
|
|
443
|
+
b2 && "noOperation" === b2 && (y2 = true);
|
|
444
|
+
let T2 = d2.tableName;
|
|
445
|
+
if (t2) {
|
|
446
|
+
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
447
|
+
T2 = x(d2, t3);
|
|
458
448
|
}
|
|
459
|
-
const w2 = function(e3,
|
|
449
|
+
const w2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
|
|
460
450
|
return new Promise((g3, C3) => {
|
|
461
|
-
const b3 =
|
|
462
|
-
p.confirm(u().t(
|
|
463
|
-
const
|
|
451
|
+
const b3 = t3.props.base.title, y3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
452
|
+
p.confirm(u().t(y3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
453
|
+
const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, t3, i3, r3, l3, m3, null);
|
|
464
454
|
p2.tableName = f3;
|
|
465
|
-
let d4 =
|
|
466
|
-
d4 =
|
|
455
|
+
let d4 = n(u2, e3.isTest) + s3;
|
|
456
|
+
d4 = o(d4, a2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
467
457
|
g3(e4);
|
|
468
458
|
}).catch((e4) => {
|
|
469
459
|
C3(e4);
|
|
@@ -472,31 +462,31 @@ function J(e2, o2, i2, a2) {
|
|
|
472
462
|
C3("点击了取消按钮");
|
|
473
463
|
});
|
|
474
464
|
});
|
|
475
|
-
}(d2, m2,
|
|
465
|
+
}(d2, m2, i2, y2, f2, g2, s2, C2, T2);
|
|
476
466
|
w2 ? w2.then((e3) => {
|
|
477
|
-
W(d2, m2, e3, "superPageRuntimeMessage.successfulSave",
|
|
467
|
+
W(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
478
468
|
}).catch((e3) => {
|
|
479
469
|
l2(e3);
|
|
480
470
|
}) : l2("request不存在");
|
|
481
471
|
});
|
|
482
472
|
}
|
|
483
|
-
function G(e2,
|
|
473
|
+
function G(e2, s2) {
|
|
484
474
|
var _a;
|
|
485
475
|
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 = x(i2, d2), f2 = new FormData();
|
|
486
|
-
f2.append("multipartFile",
|
|
476
|
+
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
487
477
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
488
478
|
g2 && f2.append("importDuplicateRule", g2);
|
|
489
479
|
const C2 = i2.judgeHeavyList;
|
|
490
480
|
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
491
481
|
const b2 = de(a2);
|
|
492
482
|
b2 && f2.append("autoSetValueData", b2);
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
const
|
|
496
|
-
|
|
483
|
+
const y2 = i2.formNoRuleCode;
|
|
484
|
+
y2 && f2.append("formNoRuleCode", y2);
|
|
485
|
+
const T2 = e2.listCode;
|
|
486
|
+
T2 && f2.append("listCode", T2);
|
|
497
487
|
let h2 = false;
|
|
498
488
|
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
|
|
499
|
-
const k2 =
|
|
489
|
+
const k2 = t(i2);
|
|
500
490
|
null != k2 && f2.append("isWorkflowEntity", k2 + "");
|
|
501
491
|
const N2 = P(a2, i2);
|
|
502
492
|
N2 && f2.append("functionCode", N2);
|
|
@@ -505,10 +495,9 @@ function G(e2, n2) {
|
|
|
505
495
|
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
506
496
|
f2.append("isPermission", M2 + "");
|
|
507
497
|
const R2 = i2.systemCode, S2 = i2.backendUrl;
|
|
508
|
-
let I2 =
|
|
509
|
-
I2 =
|
|
510
|
-
if (h2)
|
|
511
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
498
|
+
let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
|
|
499
|
+
I2 = o(I2, R2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
|
|
500
|
+
if (h2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
512
501
|
else {
|
|
513
502
|
let t2 = false;
|
|
514
503
|
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), W(i2, a2, e3, null, true), i2.result = t2, w(i2, a2);
|
|
@@ -520,29 +509,27 @@ function z(e2, t2) {
|
|
|
520
509
|
const s2 = e2.props.base;
|
|
521
510
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
522
511
|
if ("one" === s2.conditionsForExecution) {
|
|
523
|
-
if (!t2 || 1 !== t2.length)
|
|
524
|
-
|
|
525
|
-
} else if ("more" === s2.conditionsForExecution && (!t2 || t2.length <= 0))
|
|
526
|
-
return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
|
|
512
|
+
if (!t2 || 1 !== t2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: u().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
|
|
513
|
+
} 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;
|
|
527
514
|
}
|
|
528
515
|
return true;
|
|
529
516
|
}
|
|
530
517
|
function Y(e2) {
|
|
531
518
|
var _a;
|
|
532
|
-
const t2 = e2.pageContext,
|
|
533
|
-
let r2 = P(
|
|
534
|
-
r2 || (r2 =
|
|
535
|
-
const c2 = { entity:
|
|
536
|
-
t2.completeTaskParam && (c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: t2.completeTaskParam.opinion }), t2.judgeHeavyList && (
|
|
537
|
-
const u2 =
|
|
538
|
-
u2 && (
|
|
539
|
-
const l2 = de(
|
|
519
|
+
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
520
|
+
let r2 = P(n2, t2);
|
|
521
|
+
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.page_code = t2.code, o2.page_version = t2.version);
|
|
522
|
+
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 };
|
|
523
|
+
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);
|
|
524
|
+
const u2 = n2.props.base.conversionCodes;
|
|
525
|
+
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
526
|
+
const l2 = de(n2);
|
|
540
527
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
541
|
-
const p2 = (_a =
|
|
542
|
-
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode =
|
|
528
|
+
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
529
|
+
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
543
530
|
const d2 = ee(t2);
|
|
544
531
|
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]));
|
|
545
|
-
const m2 =
|
|
532
|
+
const m2 = n2.props.base.successOperation;
|
|
546
533
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
547
534
|
}
|
|
548
535
|
function K(e2, t2, s2, n2, o2) {
|
|
@@ -569,50 +556,47 @@ function K(e2, t2, s2, n2, o2) {
|
|
|
569
556
|
}
|
|
570
557
|
return n2 && (n2.operationResult = o2), t2 || W(s2, n2.configureObj, e2, null, false), true;
|
|
571
558
|
}
|
|
572
|
-
async function Q(e2,
|
|
573
|
-
const
|
|
574
|
-
return new Promise((
|
|
559
|
+
async function Q(e2, t2) {
|
|
560
|
+
const s2 = await function(e3) {
|
|
561
|
+
return new Promise((t3, s3) => {
|
|
575
562
|
var _a, _b, _c, _d;
|
|
576
|
-
const
|
|
577
|
-
if (
|
|
578
|
-
let
|
|
579
|
-
if (((_b = (_a =
|
|
580
|
-
const
|
|
581
|
-
|
|
563
|
+
const n2 = e3.configureObj;
|
|
564
|
+
if (n2) {
|
|
565
|
+
let s4 = false;
|
|
566
|
+
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s4 = true), true === s4) {
|
|
567
|
+
const t4 = e3.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
568
|
+
s4 = M(t4, n2, o2);
|
|
582
569
|
}
|
|
583
|
-
true ===
|
|
584
|
-
|
|
570
|
+
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 }) => {
|
|
571
|
+
t3(e4);
|
|
585
572
|
}).catch(() => {
|
|
586
|
-
|
|
587
|
-
}) :
|
|
588
|
-
} else
|
|
589
|
-
t2(true);
|
|
573
|
+
t3(false);
|
|
574
|
+
}) : t3(true);
|
|
575
|
+
} else t3(true);
|
|
590
576
|
});
|
|
591
577
|
}(e2);
|
|
592
578
|
return new Promise((i2, a2) => {
|
|
593
579
|
var _a;
|
|
594
|
-
if (
|
|
595
|
-
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true ===
|
|
596
|
-
let f2 =
|
|
597
|
-
if (f2 =
|
|
598
|
-
return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
580
|
+
if (s2) {
|
|
581
|
+
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
582
|
+
let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
583
|
+
if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
599
584
|
const g2 = Y(e2);
|
|
600
|
-
g2.completeTaskParam = { operationResult:
|
|
601
|
-
c.post(f2, g2).then((
|
|
602
|
-
let
|
|
603
|
-
|
|
585
|
+
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
586
|
+
c.post(f2, g2).then((s3) => {
|
|
587
|
+
let n2 = true;
|
|
588
|
+
s3 && (n2 = K(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
604
589
|
}).catch((e3) => {
|
|
605
590
|
a2(e3);
|
|
606
591
|
});
|
|
607
|
-
} else
|
|
608
|
-
i2(true);
|
|
592
|
+
} else i2(true);
|
|
609
593
|
});
|
|
610
594
|
}
|
|
611
|
-
function X(e2,
|
|
612
|
-
if (
|
|
613
|
-
const
|
|
595
|
+
function X(e2, t2) {
|
|
596
|
+
if (t2) {
|
|
597
|
+
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 = Y(e2);
|
|
614
598
|
c2.assigneeId = r2, ne(e2, c2, a2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
615
|
-
w(
|
|
599
|
+
w(s2, o2);
|
|
616
600
|
});
|
|
617
601
|
}
|
|
618
602
|
}
|
|
@@ -628,151 +612,127 @@ function ee(t2) {
|
|
|
628
612
|
return n2 && Object.assign(s2, n2), s2;
|
|
629
613
|
}
|
|
630
614
|
}
|
|
631
|
-
function te(e2,
|
|
632
|
-
if (
|
|
633
|
-
const
|
|
634
|
-
let p2 =
|
|
635
|
-
if (p2 =
|
|
636
|
-
return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
615
|
+
function te(e2, t2) {
|
|
616
|
+
if (t2) {
|
|
617
|
+
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
618
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
619
|
+
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
637
620
|
const d2 = Z(e2);
|
|
638
|
-
d2.completeTaskParam.transactors =
|
|
621
|
+
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
639
622
|
const m2 = c.post(p2, d2);
|
|
640
623
|
m2 && m2.then((e3) => {
|
|
641
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && W(
|
|
624
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && W(s2, i2, e3, null, false), w(s2, i2);
|
|
642
625
|
});
|
|
643
626
|
}
|
|
644
627
|
}
|
|
645
|
-
function se(e2,
|
|
646
|
-
if (
|
|
647
|
-
const
|
|
648
|
-
let p2 =
|
|
649
|
-
if (p2 =
|
|
650
|
-
return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
628
|
+
function se(e2, t2) {
|
|
629
|
+
if (t2) {
|
|
630
|
+
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
631
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
632
|
+
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
651
633
|
const d2 = Z(e2);
|
|
652
|
-
d2.completeTaskParam.transactors =
|
|
634
|
+
d2.completeTaskParam.transactors = t2.userIds.join(",").split(",");
|
|
653
635
|
const m2 = c.post(p2, d2);
|
|
654
636
|
m2 && m2.then((e3) => {
|
|
655
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), w(
|
|
637
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), w(s2, i2);
|
|
656
638
|
});
|
|
657
639
|
}
|
|
658
640
|
}
|
|
659
|
-
function ne(e2, t2,
|
|
641
|
+
function ne(e2, t2, s2, n2) {
|
|
660
642
|
return new Promise((i2, a2) => {
|
|
661
643
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl;
|
|
662
|
-
if (!(
|
|
663
|
-
|
|
664
|
-
const m2 = c.post(n2, t2);
|
|
644
|
+
if (!(s2 = o(s2, p2, d2, r2.isTest))) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
645
|
+
const m2 = c.post(s2, t2);
|
|
665
646
|
m2 && m2.then((t3) => {
|
|
666
|
-
let
|
|
667
|
-
t3 && (
|
|
647
|
+
let s3 = true;
|
|
648
|
+
t3 && (s3 = K(t3, false, r2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
668
649
|
}).catch((e3) => {
|
|
669
650
|
a2(e3);
|
|
670
651
|
});
|
|
671
652
|
});
|
|
672
653
|
}
|
|
673
654
|
function oe(e2) {
|
|
674
|
-
const
|
|
675
|
-
let r2 =
|
|
676
|
-
if (r2 =
|
|
677
|
-
|
|
678
|
-
const p2 = n2.code, d2 = ee(n2), m2 = { beanName: n2.beanName, additionalParamMap: d2, tableName: n2.tableName, functionCode: p2 + ".xxx" };
|
|
655
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl, a2 = t2.completeTaskParam;
|
|
656
|
+
let r2 = n(i2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
657
|
+
if (r2 = o(r2, s2, i2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
658
|
+
const p2 = t2.code, d2 = ee(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
679
659
|
return c.post(r2, m2);
|
|
680
660
|
}
|
|
681
|
-
function ie(e2,
|
|
682
|
-
const
|
|
683
|
-
|
|
684
|
-
w(
|
|
661
|
+
function ie(e2, t2) {
|
|
662
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, i2 = s2.backendUrl, a2 = n(i2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = Y(e2);
|
|
663
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), ne(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
664
|
+
w(s2, o2);
|
|
685
665
|
});
|
|
686
666
|
}
|
|
687
667
|
function ae(e2) {
|
|
688
|
-
const
|
|
689
|
-
let a2 =
|
|
668
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, i2 = t2.backendUrl;
|
|
669
|
+
let a2 = n(i2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
690
670
|
const r2 = Y(e2);
|
|
691
|
-
if (a2 =
|
|
692
|
-
return c.post(a2, r2);
|
|
671
|
+
if (a2 = o(a2, s2, i2, t2.isTest), a2) return c.post(a2, r2);
|
|
693
672
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
694
673
|
}
|
|
695
|
-
function re(e2,
|
|
696
|
-
if (
|
|
697
|
-
const
|
|
698
|
-
let p2 =
|
|
699
|
-
if (p2 =
|
|
700
|
-
|
|
701
|
-
const d2 = n2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = Y(e2);
|
|
674
|
+
function re(e2, t2) {
|
|
675
|
+
if (t2) {
|
|
676
|
+
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
677
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
678
|
+
if (p2 = o(p2, a2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
679
|
+
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = Y(e2);
|
|
702
680
|
m2.ids = d2;
|
|
703
681
|
const f2 = c.post(p2, m2);
|
|
704
682
|
f2 && f2.then((e3) => {
|
|
705
|
-
W(
|
|
683
|
+
W(s2, i2, e3, "superPageRuntimeMessage.successfulOperation", false), w(s2, i2);
|
|
706
684
|
});
|
|
707
685
|
}
|
|
708
686
|
}
|
|
709
687
|
function ce(e2, t2, s2) {
|
|
710
688
|
let n2 = false;
|
|
711
689
|
return e2 && t2 && ("workflowSave" === e2 ? n2 = function(e3) {
|
|
712
|
-
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave))
|
|
713
|
-
|
|
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))
|
|
715
|
-
return true;
|
|
690
|
+
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
691
|
+
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;
|
|
716
692
|
return false;
|
|
717
693
|
}(t2) : "submitProcess" === e2 ? n2 = function(e3) {
|
|
718
|
-
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave))
|
|
719
|
-
return true;
|
|
694
|
+
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
720
695
|
return false;
|
|
721
696
|
}(t2) : "submitTask" === e2 ? n2 = function(e3) {
|
|
722
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode)
|
|
723
|
-
return true;
|
|
697
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
724
698
|
return false;
|
|
725
699
|
}(t2) : "drawTask" === e2 ? n2 = function(e3) {
|
|
726
|
-
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw)
|
|
727
|
-
return true;
|
|
700
|
+
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
728
701
|
return false;
|
|
729
702
|
}(t2) : "abandonReceive" === e2 ? n2 = function(e3) {
|
|
730
|
-
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon)
|
|
731
|
-
return true;
|
|
703
|
+
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
|
|
732
704
|
return false;
|
|
733
705
|
}(t2) : "approve" === e2 || "refuse" === e2 ? n2 = function(e3) {
|
|
734
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode))
|
|
735
|
-
return true;
|
|
706
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
|
|
736
707
|
return false;
|
|
737
708
|
}(t2) : "readed" === e2 ? n2 = function(e3) {
|
|
738
|
-
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode)
|
|
739
|
-
return true;
|
|
709
|
+
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
|
|
740
710
|
return false;
|
|
741
711
|
}(t2) : "assign" === e2 ? n2 = function(e3) {
|
|
742
|
-
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active))
|
|
743
|
-
return true;
|
|
712
|
+
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
744
713
|
return false;
|
|
745
714
|
}(t2) : "copyTask" === e2 ? n2 = function(e3) {
|
|
746
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy)
|
|
747
|
-
return true;
|
|
715
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy) return true;
|
|
748
716
|
return false;
|
|
749
717
|
}(t2) : "addSigner" === e2 ? n2 = function(e3) {
|
|
750
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter)
|
|
751
|
-
return true;
|
|
718
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
752
719
|
return false;
|
|
753
720
|
}(t2) : "removeSigner" === e2 ? n2 = function(e3) {
|
|
754
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter)
|
|
755
|
-
return true;
|
|
721
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode) && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
756
722
|
return false;
|
|
757
723
|
}(t2) : "retrieveTask" === e2 ? n2 = function(e3) {
|
|
758
724
|
if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
|
|
759
|
-
if ("COMPLETED" !== e4.active)
|
|
760
|
-
|
|
761
|
-
if (
|
|
762
|
-
return false;
|
|
763
|
-
if (!e4.showButtonGetBack)
|
|
764
|
-
return false;
|
|
765
|
-
return true;
|
|
766
|
-
}(e3))
|
|
725
|
+
if ("COMPLETED" !== e4.active) return false;
|
|
726
|
+
if ("TYPE_READ" === e4.processingMode) return false;
|
|
727
|
+
if (!e4.showButtonGetBack) return false;
|
|
767
728
|
return true;
|
|
729
|
+
}(e3)) return true;
|
|
768
730
|
return false;
|
|
769
731
|
}(t2) : "agreement" === e2 || "oppose" === e2 ? n2 = function(e3) {
|
|
770
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode)
|
|
771
|
-
return true;
|
|
732
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
|
|
772
733
|
return false;
|
|
773
734
|
}(t2) : "kiken" === e2 ? n2 = function(e3) {
|
|
774
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken)
|
|
775
|
-
return true;
|
|
735
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
776
736
|
return false;
|
|
777
737
|
}(t2) : function(e3, t3) {
|
|
778
738
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
@@ -782,8 +742,7 @@ function ce(e2, t2, s2) {
|
|
|
782
742
|
return s3;
|
|
783
743
|
}(t3);
|
|
784
744
|
}(t2, s2) && (n2 = "returnToPreviousTask" !== e2 || function(e3) {
|
|
785
|
-
if (e3.rebuttable)
|
|
786
|
-
return true;
|
|
745
|
+
if (e3.rebuttable) return true;
|
|
787
746
|
return false;
|
|
788
747
|
}(t2))), n2;
|
|
789
748
|
}
|
|
@@ -792,93 +751,94 @@ function ue(e2, t2) {
|
|
|
792
751
|
e2.isRefresh = true;
|
|
793
752
|
});
|
|
794
753
|
}
|
|
795
|
-
function le(e2, s2) {
|
|
796
|
-
const
|
|
797
|
-
if (
|
|
754
|
+
function le(e2, s2, o2) {
|
|
755
|
+
const i2 = e2.pageType;
|
|
756
|
+
if (i2 && "form" === i2) {
|
|
798
757
|
e2.canClick = false;
|
|
799
|
-
return
|
|
800
|
-
return new Promise((
|
|
801
|
-
const
|
|
758
|
+
return t(e2) ? function(e3, t2, s3) {
|
|
759
|
+
return new Promise((o3, i3) => {
|
|
760
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ee(e3);
|
|
761
|
+
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
762
|
+
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);
|
|
763
|
+
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap };
|
|
802
764
|
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
803
|
-
const
|
|
765
|
+
const t3 = {};
|
|
804
766
|
e3.tableUuids.forEach((e4) => {
|
|
805
|
-
const s4 = r(
|
|
806
|
-
|
|
807
|
-
}),
|
|
767
|
+
const s4 = r(u2, l2, e4);
|
|
768
|
+
t3[s4] = s4;
|
|
769
|
+
}), b2.listCodesMap = t3;
|
|
808
770
|
}
|
|
809
|
-
|
|
810
|
-
const
|
|
811
|
-
c.post(
|
|
812
|
-
e3.definitionId =
|
|
771
|
+
f2 && (b2.ids = pe(f2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (b2.id = m(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);
|
|
772
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets";
|
|
773
|
+
c.post(T2, b2).then((t3) => {
|
|
774
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, K(t3, true, e3), e3.workflowRules = A(e3);
|
|
813
775
|
const s4 = e3.pageType;
|
|
814
776
|
if (s4 && "form" === s4) {
|
|
815
777
|
!function(e4) {
|
|
816
778
|
(function(e5) {
|
|
817
|
-
const
|
|
818
|
-
if (void 0 !== s5)
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
} else
|
|
831
|
-
t4.set(n4, s5[e6]);
|
|
832
|
-
}
|
|
833
|
-
e5.fieldPermissionMap = t4;
|
|
779
|
+
const t5 = /* @__PURE__ */ new Map(), s5 = e5.fieldPermissions;
|
|
780
|
+
if (void 0 !== s5) for (let e6 = 0; e6 < s5.length; e6++) {
|
|
781
|
+
const n2 = s5[e6].name;
|
|
782
|
+
if (n2) if (0 === n2.indexOf("$") && n2.indexOf(".") > 0) {
|
|
783
|
+
const o4 = s5[e6], i4 = JSON.parse(JSON.stringify(o4)), a3 = n2.substring(1, n2.indexOf(".")), r2 = n2.substring(n2.indexOf(".") + 1);
|
|
784
|
+
if (i4.name = r2, i4 && "all_fields" === i4.name) false === i4.canEdit ? i4.rowIndexes ? t5.set(a3, [{ name: "all_fields", canEdit: false, rowIndexes: i4.rowIndexes }]) : t5.set(a3, [{ name: "all_fields", canEdit: false }]) : i4.rowIndexes ? t5.set(a3, [{ name: "all_fields", canEdit: true, rowIndexes: i4.rowIndexes }]) : t5.set(a3, [{ name: "all_fields", canEdit: true }]);
|
|
785
|
+
else {
|
|
786
|
+
let e7 = t5.get(a3);
|
|
787
|
+
e7 || (e7 = []), e7.push(i4), t5.set(a3, e7);
|
|
788
|
+
}
|
|
789
|
+
} else t5.set(n2, s5[e6]);
|
|
790
|
+
}
|
|
791
|
+
e5.fieldPermissionMap = t5;
|
|
834
792
|
})(e4), function(e5) {
|
|
835
|
-
const
|
|
836
|
-
if (null !=
|
|
837
|
-
Object.keys(
|
|
838
|
-
const
|
|
839
|
-
if (
|
|
840
|
-
o3.canUpdate = false, o3.canAdd = false;
|
|
793
|
+
const t5 = e5.fieldPermissionMap, s5 = /* @__PURE__ */ new Map(), n2 = e5.actionPermissions;
|
|
794
|
+
if (null != n2) {
|
|
795
|
+
Object.keys(n2).forEach((e6) => {
|
|
796
|
+
const o4 = n2[e6], i4 = t5.get(e6);
|
|
797
|
+
if (i4 && i4.length > 0 && "all_fields" === i4[0].name && false === i4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
|
|
841
798
|
else {
|
|
842
|
-
const s6 =
|
|
843
|
-
void 0 !== s6 && false === s6 && null !=
|
|
799
|
+
const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
|
|
800
|
+
void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t5.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
|
|
844
801
|
}
|
|
845
|
-
s5.set(e6,
|
|
802
|
+
s5.set(e6, o4);
|
|
846
803
|
});
|
|
847
804
|
}
|
|
848
805
|
e5.actionPermissionMap = s5;
|
|
849
806
|
}(e4);
|
|
850
807
|
}(e3);
|
|
851
|
-
const
|
|
852
|
-
y(null, e3,
|
|
808
|
+
const t4 = { runtime: { events: e3.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
809
|
+
y(null, e3, t4, "load");
|
|
853
810
|
}
|
|
854
|
-
e3.canClick = true,
|
|
855
|
-
}).catch((
|
|
856
|
-
e3.canClick = true,
|
|
811
|
+
e3.canClick = true, o3(t3);
|
|
812
|
+
}).catch((t3) => {
|
|
813
|
+
e3.canClick = true, i3(t3);
|
|
857
814
|
});
|
|
858
815
|
});
|
|
859
|
-
}(e2, s2) : function(e3, s3) {
|
|
860
|
-
return new Promise((
|
|
861
|
-
const
|
|
862
|
-
|
|
863
|
-
|
|
816
|
+
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
817
|
+
return new Promise((o3, i3) => {
|
|
818
|
+
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = ee(e3);
|
|
819
|
+
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
820
|
+
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);
|
|
821
|
+
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
822
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = pe(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
823
|
+
const t3 = {};
|
|
864
824
|
e3.tableUuids.forEach((e4) => {
|
|
865
|
-
const s4 = r(
|
|
866
|
-
|
|
867
|
-
}),
|
|
825
|
+
const s4 = r(u2, l2, e4);
|
|
826
|
+
t3[s4] = s4;
|
|
827
|
+
}), T2.listCodesMap = t3;
|
|
868
828
|
}
|
|
869
|
-
e3.refercePropMap && (
|
|
870
|
-
const
|
|
871
|
-
c.post(
|
|
872
|
-
|
|
873
|
-
const s4 = e3.customRules,
|
|
874
|
-
e3.rules =
|
|
829
|
+
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
830
|
+
const w2 = b2 + "/dsc/commons/gets";
|
|
831
|
+
c.post(w2, T2).then((t3) => {
|
|
832
|
+
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
833
|
+
const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
|
|
834
|
+
e3.rules = i4;
|
|
875
835
|
const a3 = { runtime: { events: e3.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
876
|
-
y(null, e3, a3, "load"), e3.canClick = true,
|
|
877
|
-
}).catch((
|
|
878
|
-
e3.canClick = true,
|
|
836
|
+
y(null, e3, a3, "load"), e3.canClick = true, o3(t3);
|
|
837
|
+
}).catch((t3) => {
|
|
838
|
+
e3.canClick = true, i3(t3);
|
|
879
839
|
});
|
|
880
840
|
});
|
|
881
|
-
}(e2, s2);
|
|
841
|
+
}(e2, s2, o2);
|
|
882
842
|
}
|
|
883
843
|
return new Promise((e3, t2) => {
|
|
884
844
|
e3(true);
|
|
@@ -890,10 +850,8 @@ function pe(e2) {
|
|
|
890
850
|
function de(e2) {
|
|
891
851
|
const t2 = e2.props.setValueList;
|
|
892
852
|
if (t2) {
|
|
893
|
-
if (
|
|
894
|
-
|
|
895
|
-
if ("string" == typeof t2 && "[]" !== t2)
|
|
896
|
-
return t2;
|
|
853
|
+
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
854
|
+
if ("string" == typeof t2 && "[]" !== t2) return t2;
|
|
897
855
|
}
|
|
898
856
|
return null;
|
|
899
857
|
}
|
|
@@ -918,5 +876,5 @@ export {
|
|
|
918
876
|
$ as refreshFormOrListPage,
|
|
919
877
|
ue as refreshPage,
|
|
920
878
|
E as standardEvents,
|
|
921
|
-
|
|
879
|
+
H as updateValuesWhenCloseDialog
|
|
922
880
|
};
|