super-page-runtime 2.3.13 → 2.3.14-sit1
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/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +4 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +307 -270
- package/dist/es/components/runtime/utils/events/validator-util.js +77 -72
- package/dist/es/components/runtime/utils/page-init-util.js +108 -91
- package/dist/es/components/runtime/utils/page-permission-util.js +12 -12
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +15 -14
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +18 -18
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +53 -42
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -17
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +37 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +12 -12
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +185 -182
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +82 -79
- package/package.json +2 -2
|
@@ -2,29 +2,29 @@ import { deepCopy as e, isWorkflowPage as t, isArrayFn as s, getBaseUrl as n, ge
|
|
|
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";
|
|
5
|
-
import {
|
|
5
|
+
import { getCurrentUser as d, getToken as m, getSessionCache as f, getRunCurrentRole as g, setSessionCache as C } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { handleEvent as
|
|
10
|
-
import { setStoreInfo as
|
|
11
|
-
import { getPermissionCodes as
|
|
12
|
-
import { updateChartDatasources as
|
|
7
|
+
import T from "../eventBus.js";
|
|
8
|
+
import w from "axios";
|
|
9
|
+
import { handleEvent as k, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
|
|
10
|
+
import { setStoreInfo as P } from "../store-util.js";
|
|
11
|
+
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as I } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as M, caculateShowCondition as N, getVariableValue as v, setVariableValue as x } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
14
|
+
import { getTableNameByTableUuid as E } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
16
|
-
import { functions as
|
|
17
|
-
import { usePageContextStore as
|
|
18
|
-
const
|
|
19
|
-
return
|
|
16
|
+
import { functions as _ } from "../api/page-expose-util.js";
|
|
17
|
+
import { usePageContextStore as j } from "../page-store.js";
|
|
18
|
+
const D = { save: function(e2) {
|
|
19
|
+
return F(e2, false);
|
|
20
20
|
}, saveList: function(e2) {
|
|
21
|
-
return
|
|
21
|
+
return F(e2, true);
|
|
22
22
|
}, exportForm: function(e2) {
|
|
23
23
|
const t2 = e2.pageContext.code + "_";
|
|
24
|
-
|
|
24
|
+
T.$emit(t2 + "export-form-report", e2);
|
|
25
25
|
}, exportPDF: function(e2) {
|
|
26
26
|
const t2 = e2.pageContext.code + "_";
|
|
27
|
-
|
|
27
|
+
T.$emit(t2 + "export-pdf-report", e2);
|
|
28
28
|
}, submit: function(e2) {
|
|
29
29
|
return Q(e2, false, "submit", "/dsc/commons/submits");
|
|
30
30
|
}, submitList: function(e2) {
|
|
@@ -39,7 +39,7 @@ const j = { save: function(e2) {
|
|
|
39
39
|
return Q(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
40
40
|
}, back: function(e2) {
|
|
41
41
|
const t2 = e2.pageContext, s2 = t2.entity ? t2.entity.data : {}, n2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
42
|
-
|
|
42
|
+
Y(t2, e2.configureObj, s2, n2);
|
|
43
43
|
}, delete: function(e2) {
|
|
44
44
|
return function(e3) {
|
|
45
45
|
return new Promise((s2, a2) => {
|
|
@@ -47,19 +47,19 @@ const j = { save: function(e2) {
|
|
|
47
47
|
if (!i2 || 0 === i2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
48
48
|
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
49
|
var _a;
|
|
50
|
-
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
50
|
+
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = E(r2, m2);
|
|
51
51
|
let g2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
52
|
g2 = o(g2, p2, d2, r2.isTest);
|
|
53
|
-
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 =
|
|
54
|
-
r2.beanName && (
|
|
55
|
-
const
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
const
|
|
60
|
-
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, T2 = t(r2), w2 = S(u2, r2), k2 = { ids: i2, functionCode: w2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: T2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
|
+
r2.beanName && (k2.beanName = r2.beanName);
|
|
55
|
+
const y2 = u2.props.deleteLogicSetting;
|
|
56
|
+
y2 && ("object" == typeof y2 ? k2.deleteLogicSetting = JSON.stringify(y2) : "string" == typeof y2 && (k2.deleteLogicSetting = y2));
|
|
57
|
+
const h2 = (_a = u2.props.base) == null ? void 0 : _a.logSetting;
|
|
58
|
+
h2 && (k2.logSettingText = h2.join(""));
|
|
59
|
+
const P2 = u2.props.base.isSafeDelete;
|
|
60
|
+
P2 && (k2.isSafeDelete = P2), c.delete(g2, { data: k2 }).then((e4) => {
|
|
61
61
|
const t2 = b(r2, m2);
|
|
62
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()),
|
|
62
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), H(r2, u2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
63
63
|
}).catch((e4) => {
|
|
64
64
|
a2(e4);
|
|
65
65
|
});
|
|
@@ -75,32 +75,32 @@ const j = { save: function(e2) {
|
|
|
75
75
|
let r2, c2;
|
|
76
76
|
i2 && i2.length > 0 && (r2 = i2[0].templateUuid, c2 = i2[0].templateName);
|
|
77
77
|
const u2 = t2.systemCode, l2 = t2.backendUrl, p2 = c2;
|
|
78
|
-
let
|
|
79
|
-
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ?
|
|
78
|
+
let d2 = "?1=1";
|
|
79
|
+
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : t2.label && (d2 += "&showName=" + encodeURI(t2.label) + ".xlsx");
|
|
80
80
|
const g2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting;
|
|
81
|
-
g2 && (
|
|
82
|
-
u2 && (
|
|
83
|
-
const
|
|
84
|
-
|
|
85
|
-
t2.beanName && (
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
t2.tableName && (
|
|
89
|
-
t2.code && (
|
|
90
|
-
t2.version && (
|
|
91
|
-
const T2 =
|
|
92
|
-
T2 && (
|
|
93
|
-
const w2 = "_RUN_CURRENT_ROLE",
|
|
94
|
-
|
|
81
|
+
g2 && (d2 += "&logSettingText=" + g2.join(""));
|
|
82
|
+
u2 && (d2 += "&systemCode=" + u2);
|
|
83
|
+
const C2 = e3.listCode;
|
|
84
|
+
C2 && (d2 += "&listCode=" + C2);
|
|
85
|
+
t2.beanName && (d2 += "&beanName=" + t2.beanName);
|
|
86
|
+
const b2 = S(s2, t2);
|
|
87
|
+
b2 && (d2 += "&functionCode=" + b2);
|
|
88
|
+
t2.tableName && (d2 += "&tableName=" + t2.tableName);
|
|
89
|
+
t2.code && (d2 += "&pageCode=" + t2.code);
|
|
90
|
+
t2.version && (d2 += "&pageVersion=" + t2.version);
|
|
91
|
+
const T2 = m();
|
|
92
|
+
T2 && (d2 += "&JWT=" + T2);
|
|
93
|
+
const w2 = "_RUN_CURRENT_ROLE", k2 = f(w2);
|
|
94
|
+
k2 && (d2 += "&" + w2 + "=" + k2);
|
|
95
95
|
if (o2) {
|
|
96
|
-
|
|
96
|
+
d2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
window.open(
|
|
98
|
+
const y2 = n(l2, t2.isTest);
|
|
99
|
+
window.open(y2 + "/dsc/commons/download-files" + d2);
|
|
100
100
|
}(e2);
|
|
101
101
|
}, import: function(e2) {
|
|
102
102
|
const t2 = e2.pageContext.code + "_";
|
|
103
|
-
|
|
103
|
+
T.$emit(t2 + "import-file", e2);
|
|
104
104
|
}, export: function(e2) {
|
|
105
105
|
return function(e3) {
|
|
106
106
|
return new Promise((t2, s2) => {
|
|
@@ -111,7 +111,7 @@ const j = { save: function(e2) {
|
|
|
111
111
|
u2 || (u2 = n2.code);
|
|
112
112
|
let l2 = false;
|
|
113
113
|
l2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
|
|
114
|
-
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 =
|
|
114
|
+
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = S(o2, n2), m2 = u2, f2 = { backendUrl: n2.backendUrl, pageContext: n2 };
|
|
115
115
|
f2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", f2.watermarkContent = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, i2, d2, null, f2, l2, n2.code, p2);
|
|
116
116
|
});
|
|
117
117
|
}(e2);
|
|
@@ -122,115 +122,136 @@ const j = { save: function(e2) {
|
|
|
122
122
|
const t2 = e2.pageContext, s2 = e2.tableUuid;
|
|
123
123
|
b(t2, s2).showMobileSearch();
|
|
124
124
|
}, workflowSave: function(e2) {
|
|
125
|
-
return
|
|
125
|
+
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
126
126
|
return new Promise((t2, s2) => {
|
|
127
127
|
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
128
128
|
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons";
|
|
129
129
|
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
130
|
-
const m2 =
|
|
130
|
+
const m2 = te(e3);
|
|
131
131
|
let f2;
|
|
132
132
|
f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), f2.then((s3) => {
|
|
133
133
|
let n2 = true;
|
|
134
|
-
s3 && (n2 =
|
|
134
|
+
s3 && (n2 = se(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSave") }), T.$emit("clearTableAllEndEditing"), t2(true);
|
|
135
135
|
}).catch((e4) => {
|
|
136
136
|
s2(e4);
|
|
137
137
|
});
|
|
138
138
|
});
|
|
139
139
|
}(e2);
|
|
140
140
|
}, workflowStart: function(e2) {
|
|
141
|
-
return
|
|
141
|
+
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
142
142
|
return new Promise((t2, s2) => {
|
|
143
143
|
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
144
144
|
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
145
145
|
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
146
|
-
const m2 =
|
|
146
|
+
const m2 = te(e3);
|
|
147
147
|
let f2;
|
|
148
148
|
i2.workflow_id || i2.WORKFLOW_ID ? (d2 = n(p2, a2.isTest) + "/dsc/workflow-commons", d2 = o(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), f2.then((s3) => {
|
|
149
149
|
let n2 = true;
|
|
150
|
-
s3 && (n2 =
|
|
150
|
+
s3 && (n2 = se(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), t2(true);
|
|
151
151
|
}).catch((e4) => {
|
|
152
152
|
s2(e4);
|
|
153
153
|
});
|
|
154
154
|
});
|
|
155
155
|
}(e2);
|
|
156
156
|
}, submitProcess: function(e2) {
|
|
157
|
-
return
|
|
157
|
+
return T.$emit("clearTableAllStartEditing"), function(e3) {
|
|
158
158
|
return new Promise((t2, s2) => {
|
|
159
159
|
const a2 = e3.pageContext, i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
160
160
|
let p2 = n(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
161
161
|
if (p2 = o(p2, i2, r2, a2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
162
|
-
const d2 =
|
|
162
|
+
const d2 = te(e3), m2 = c.post(p2, d2);
|
|
163
163
|
m2 && m2.then((s3) => {
|
|
164
164
|
let n2 = true;
|
|
165
|
-
s3 && (n2 =
|
|
165
|
+
s3 && (n2 = se(s3, false, a2, e3, null)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), t2(true);
|
|
166
166
|
}).catch((e4) => {
|
|
167
167
|
s2(e4);
|
|
168
168
|
});
|
|
169
169
|
});
|
|
170
170
|
}(e2);
|
|
171
171
|
}, submitTask: function(e2) {
|
|
172
|
-
return
|
|
172
|
+
return ne(e2, "SUBMIT");
|
|
173
173
|
}, approve: function(e2) {
|
|
174
|
-
return
|
|
174
|
+
return ne(e2, "APPROVE");
|
|
175
175
|
}, refuse: function(e2) {
|
|
176
|
-
return
|
|
176
|
+
return ne(e2, "REFUSE");
|
|
177
177
|
}, readed: function(e2) {
|
|
178
|
-
return
|
|
178
|
+
return ne(e2, "READED");
|
|
179
179
|
}, agreement: function(e2) {
|
|
180
|
-
return
|
|
180
|
+
return ne(e2, "AGREEMENT");
|
|
181
181
|
}, oppose: function(e2) {
|
|
182
|
-
return
|
|
182
|
+
return ne(e2, "OPPOSE");
|
|
183
183
|
}, kiken: function(e2) {
|
|
184
|
-
return
|
|
184
|
+
return ne(e2, "KIKEN");
|
|
185
185
|
}, assign: function(e2) {
|
|
186
186
|
return function(e3) {
|
|
187
187
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
188
|
-
|
|
188
|
+
T.$emit(s2 + "assign-task", e3);
|
|
189
189
|
}(e2);
|
|
190
190
|
}, copyTask: function(e2) {
|
|
191
191
|
return function(e3) {
|
|
192
192
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
193
|
-
|
|
193
|
+
T.$emit(s2 + "copy-task", e3);
|
|
194
194
|
}(e2);
|
|
195
195
|
}, addSigner: function(e2) {
|
|
196
196
|
return function(e3) {
|
|
197
197
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
198
|
-
|
|
198
|
+
T.$emit(s2 + "add-signer", e3);
|
|
199
199
|
}(e2);
|
|
200
200
|
}, drawTask: function(e2) {
|
|
201
201
|
return function(e3) {
|
|
202
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 =
|
|
203
|
-
return
|
|
202
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = te(e3);
|
|
203
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
204
204
|
}(e2);
|
|
205
205
|
}, abandonReceive: function(e2) {
|
|
206
206
|
return function(e3) {
|
|
207
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 =
|
|
208
|
-
return
|
|
207
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = te(e3);
|
|
208
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
209
209
|
}(e2);
|
|
210
210
|
}, returnToPreviousTask: function(e2) {
|
|
211
211
|
return function(e3) {
|
|
212
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 =
|
|
213
|
-
return
|
|
212
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = te(e3);
|
|
213
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
214
214
|
}(e2);
|
|
215
215
|
}, endInstance: function(e2) {
|
|
216
216
|
return function(e3) {
|
|
217
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 =
|
|
218
|
-
return
|
|
217
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = te(e3);
|
|
218
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
219
219
|
}(e2);
|
|
220
220
|
}, returnTaskTo: function(e2) {
|
|
221
221
|
return function(e3) {
|
|
222
222
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
223
|
-
|
|
223
|
+
T.$emit(s2 + "choose-return-node", e3);
|
|
224
224
|
}(e2);
|
|
225
225
|
}, removeSigner: function(e2) {
|
|
226
226
|
return function(e3) {
|
|
227
227
|
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
228
|
-
|
|
228
|
+
T.$emit(s2 + "remove-signer", e3);
|
|
229
229
|
}(e2);
|
|
230
230
|
}, retrieveTask: function(e2) {
|
|
231
231
|
return function(e3) {
|
|
232
|
-
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 =
|
|
233
|
-
return
|
|
232
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = te(e3);
|
|
233
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
234
|
+
}(e2);
|
|
235
|
+
}, extractWorkflow: function(e2) {
|
|
236
|
+
return function(e3) {
|
|
237
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/initiate-extract", a2 = te(e3);
|
|
238
|
+
t2.completeTaskParam && (a2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: [e3._value.loginName] });
|
|
239
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulInitiateExtract");
|
|
240
|
+
}(e2);
|
|
241
|
+
}, cancelExtractWorkflow: function(e2) {
|
|
242
|
+
return function(e3) {
|
|
243
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = te(e3);
|
|
244
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
245
|
+
}(e2);
|
|
246
|
+
}, approveExtractWorkflow: function(e2) {
|
|
247
|
+
return function(e3) {
|
|
248
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = te(e3);
|
|
249
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
250
|
+
}(e2);
|
|
251
|
+
}, refuseExtractWorkflow: function(e2) {
|
|
252
|
+
return function(e3) {
|
|
253
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = te(e3);
|
|
254
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
234
255
|
}(e2);
|
|
235
256
|
}, viewDetail: function(e2) {
|
|
236
257
|
}, lineEditCreate: function(e2) {
|
|
@@ -243,17 +264,16 @@ const j = { save: function(e2) {
|
|
|
243
264
|
let t2 = null;
|
|
244
265
|
try {
|
|
245
266
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
246
|
-
} catch (
|
|
247
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
267
|
+
} catch (e4) {
|
|
248
268
|
}
|
|
249
269
|
A.printLabel(e3, t2);
|
|
250
270
|
}(e2);
|
|
251
271
|
}, queryCharts: function(e2) {
|
|
252
|
-
|
|
272
|
+
W(e2);
|
|
253
273
|
}, resetCharts: function(t2) {
|
|
254
274
|
var _a, _b;
|
|
255
275
|
const s2 = t2.pageContext;
|
|
256
|
-
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,
|
|
276
|
+
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);
|
|
257
277
|
}, exportCharts: function(e2) {
|
|
258
278
|
!function(e3) {
|
|
259
279
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
@@ -276,11 +296,11 @@ const j = { save: function(e2) {
|
|
|
276
296
|
let c2, u2 = t2.label;
|
|
277
297
|
u2 || (u2 = t2.code);
|
|
278
298
|
c2 = u2;
|
|
279
|
-
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 =
|
|
299
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = re(t2);
|
|
280
300
|
l2.additionalParamMap = p2, l2.isShowWatermark = void 0 === ((_b = (_a = o2.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_d = (_c = o2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) + "", l2.watermark = ((_f = (_e = o2.props) == null ? void 0 : _e.watermark) == null ? void 0 : _f.content) && ((_h = (_g = o2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content.length) > 0 ? (_j = (_i = o2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.join("-~") : "";
|
|
281
301
|
const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
282
|
-
|
|
283
|
-
|
|
302
|
+
B();
|
|
303
|
+
w.post(m2, l2, { responseType: "blob" }).then((e4) => {
|
|
284
304
|
const t3 = document.createElement("a");
|
|
285
305
|
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);
|
|
286
306
|
}).finally(() => {
|
|
@@ -290,17 +310,17 @@ const j = { save: function(e2) {
|
|
|
290
310
|
}, saveQueryCharts: function(e2) {
|
|
291
311
|
!function(e3) {
|
|
292
312
|
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
293
|
-
|
|
313
|
+
T.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
294
314
|
}(e2);
|
|
295
315
|
} };
|
|
296
|
-
function
|
|
316
|
+
function W(e2) {
|
|
297
317
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
298
318
|
if (!s2 || 0 == s2.length) return;
|
|
299
319
|
const n2 = e2.configureObj;
|
|
300
320
|
let o2 = null;
|
|
301
321
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
302
322
|
const a2 = o2 ? o2.state : void 0;
|
|
303
|
-
o2 && (o2.state = "disabled"),
|
|
323
|
+
o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
304
324
|
o2 && (o2.state = a2);
|
|
305
325
|
}).catch(() => {
|
|
306
326
|
o2 && (o2.state = a2);
|
|
@@ -309,26 +329,26 @@ function D(e2) {
|
|
|
309
329
|
function L(e2, s2, o2, a2) {
|
|
310
330
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
311
331
|
e2.clickUuid = s2.uuid;
|
|
312
|
-
const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 =
|
|
313
|
-
u2 && (
|
|
314
|
-
const
|
|
315
|
-
let
|
|
316
|
-
|
|
332
|
+
const i2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, d2 = s2.props.base, m2 = s2.tableName ? s2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = _.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, b2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: S(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
333
|
+
u2 && (b2.logSettingText = u2.join(""));
|
|
334
|
+
const T2 = re(e2);
|
|
335
|
+
let k2;
|
|
336
|
+
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, o3) {
|
|
317
337
|
return new Promise((a3, i3) => {
|
|
318
338
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
319
|
-
|
|
320
|
-
|
|
339
|
+
B();
|
|
340
|
+
w.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
321
341
|
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
322
342
|
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), a3(true);
|
|
323
343
|
}).catch((e4) => {
|
|
324
344
|
i3(e4);
|
|
325
345
|
});
|
|
326
346
|
});
|
|
327
|
-
}(r2, f2,
|
|
347
|
+
}(r2, f2, b2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
328
348
|
return new Promise((a3, i3) => {
|
|
329
349
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
330
|
-
|
|
331
|
-
|
|
350
|
+
B();
|
|
351
|
+
w.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
332
352
|
const s4 = new Blob([t3.data]);
|
|
333
353
|
let n2 = "报告.xlsx";
|
|
334
354
|
e3 && (n2 = e3);
|
|
@@ -338,27 +358,27 @@ function L(e2, s2, o2, a2) {
|
|
|
338
358
|
i3(e4);
|
|
339
359
|
});
|
|
340
360
|
});
|
|
341
|
-
}(r2, f2,
|
|
361
|
+
}(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
|
|
342
362
|
h(e2, s2);
|
|
343
363
|
}).catch((e3) => {
|
|
344
364
|
});
|
|
345
365
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
348
|
-
const e2 =
|
|
366
|
+
function B() {
|
|
367
|
+
w.defaults.headers.common.Authorization = m();
|
|
368
|
+
const e2 = g();
|
|
349
369
|
if (e2) {
|
|
350
370
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
351
|
-
|
|
371
|
+
w.defaults.headers.common[t2] = e2;
|
|
352
372
|
}
|
|
353
373
|
}
|
|
354
|
-
function
|
|
374
|
+
function F(e2, t2) {
|
|
355
375
|
return new Promise((s2, n2) => {
|
|
356
376
|
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
357
377
|
let u2 = false;
|
|
358
378
|
c2 && "noOperation" === c2 && (u2 = true);
|
|
359
|
-
const l2 =
|
|
379
|
+
const l2 = q(o2, a2, "/dsc/commons", u2, i2, r2);
|
|
360
380
|
l2 ? l2.then((e3) => {
|
|
361
|
-
|
|
381
|
+
H(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
362
382
|
}).catch((e3) => {
|
|
363
383
|
n2(e3);
|
|
364
384
|
}) : n2("保存时request不存在");
|
|
@@ -366,23 +386,23 @@ function B(e2, t2) {
|
|
|
366
386
|
}
|
|
367
387
|
function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
368
388
|
var _a;
|
|
369
|
-
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 =
|
|
389
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = S(n2, e2);
|
|
370
390
|
let m2 = c2;
|
|
371
391
|
m2 || (m2 = e2.entity.data);
|
|
372
|
-
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 };
|
|
392
|
+
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, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
373
393
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
374
394
|
const g2 = n2.props.base.conversionCodes;
|
|
375
395
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
|
|
396
|
+
const C2 = ke(n2);
|
|
397
|
+
C2 && (f2.autoSetValueData = C2);
|
|
398
|
+
const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
399
|
+
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
380
400
|
const T2 = e2.beanName;
|
|
381
401
|
T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
382
|
-
const w2 =
|
|
402
|
+
const w2 = re(e2);
|
|
383
403
|
return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
384
404
|
}
|
|
385
|
-
function
|
|
405
|
+
function $(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
386
406
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
387
407
|
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
|
|
388
408
|
const u3 = n(t3, r3);
|
|
@@ -391,22 +411,23 @@ function F(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
|
391
411
|
return l3;
|
|
392
412
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
393
413
|
}
|
|
394
|
-
function
|
|
395
|
-
return
|
|
414
|
+
function q(e2, t2, s2, n2, o2, a2) {
|
|
415
|
+
return $(e2, t2, s2, n2, o2, a2, null, null);
|
|
396
416
|
}
|
|
397
|
-
function
|
|
398
|
-
const i2 =
|
|
417
|
+
function H(t2, s2, n2, o2, a2) {
|
|
418
|
+
const i2 = G(t2, s2, a2);
|
|
399
419
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
400
420
|
let a3 = s3.props.base.successOperation;
|
|
401
421
|
const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
|
|
402
|
-
a3 ||
|
|
403
|
-
if ("refresh" === a3)
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
422
|
+
a3 || K.includes(s3.name) || (a3 = "refresh");
|
|
423
|
+
if ("refresh" === a3) {
|
|
424
|
+
if (r2) {
|
|
425
|
+
b(t3, r2).refresh();
|
|
426
|
+
}
|
|
427
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
407
428
|
const o4 = e(t3.entity.page);
|
|
408
429
|
let a4 = n3;
|
|
409
|
-
a4 || (a4 = {}), Object.assign(o4, a4),
|
|
430
|
+
a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
|
|
410
431
|
}
|
|
411
432
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
412
433
|
}(t2, s2, n2, o2), t2.canClick = true;
|
|
@@ -415,39 +436,39 @@ function q(t2, s2, n2, o2, a2) {
|
|
|
415
436
|
const n4 = s3;
|
|
416
437
|
let o3;
|
|
417
438
|
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
418
|
-
|
|
439
|
+
J(e2, t3, { ...o3, ...e2.entity.page });
|
|
419
440
|
} else {
|
|
420
441
|
const s4 = t3.props.base.successOperation;
|
|
421
442
|
if (s4 && null !== s4) {
|
|
422
|
-
|
|
443
|
+
J(e2, t3, { ...e2.entity.page });
|
|
423
444
|
} else e2.canClick = true;
|
|
424
445
|
}
|
|
425
446
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
426
447
|
}(t2, s2, n2, o2);
|
|
427
448
|
else {
|
|
428
449
|
const e2 = s2.props.base.successOperation;
|
|
429
|
-
e2 && null !== e2 ?
|
|
450
|
+
e2 && null !== e2 ? J(t2, s2, null) : t2.canClick = true;
|
|
430
451
|
}
|
|
431
452
|
}
|
|
432
|
-
function
|
|
453
|
+
function G(e2, t2, s2) {
|
|
433
454
|
let n2;
|
|
434
455
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
435
456
|
}
|
|
436
|
-
function
|
|
457
|
+
function J(e2, t2, s2) {
|
|
437
458
|
const n2 = t2.props.base.successOperation;
|
|
438
459
|
if (!n2 || null === n2) return;
|
|
439
460
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
440
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
461
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? be(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (Y(e2, t2, s2, o2), e2.canClick = true);
|
|
441
462
|
}
|
|
442
|
-
function
|
|
463
|
+
function Y(e2, t2, s2, n2) {
|
|
443
464
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
444
465
|
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
445
466
|
else {
|
|
446
467
|
const a2 = e2.tableName, i2 = void 0 !== n2 && true === n2 && s2 && void 0 !== s2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_";
|
|
447
|
-
|
|
468
|
+
T.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
|
|
448
469
|
}
|
|
449
470
|
}
|
|
450
|
-
function
|
|
471
|
+
function z(e2, t2, s2, n2, o2) {
|
|
451
472
|
var _a;
|
|
452
473
|
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
453
474
|
const a2 = e2.tableName;
|
|
@@ -457,103 +478,103 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
457
478
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
458
479
|
const t4 = e4.source;
|
|
459
480
|
if (!t4) return;
|
|
460
|
-
const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 =
|
|
461
|
-
|
|
481
|
+
const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = I(null, i2);
|
|
482
|
+
x(s3.entity, r2, a3);
|
|
462
483
|
});
|
|
463
484
|
}
|
|
464
|
-
}(s2, o2, e2),
|
|
485
|
+
}(s2, o2, e2), k(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
|
|
465
486
|
}
|
|
466
|
-
const
|
|
467
|
-
function
|
|
487
|
+
const K = ["dropdown"];
|
|
488
|
+
function X(e2, t2, s2, n2) {
|
|
468
489
|
var _a;
|
|
469
490
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
470
491
|
let o2 = n2;
|
|
471
492
|
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
472
|
-
const a2 =
|
|
493
|
+
const a2 = G(e2, t2);
|
|
473
494
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
474
495
|
if (a2 && "list" === a2) {
|
|
475
496
|
const s3 = y(e2, t2);
|
|
476
497
|
if (s3) {
|
|
477
498
|
b(e2, s3).refresh();
|
|
478
|
-
}
|
|
499
|
+
}
|
|
479
500
|
} else if (a2 && "form" === a2) {
|
|
480
501
|
const t3 = e2.entity.data;
|
|
481
|
-
|
|
502
|
+
be(e2, t3.ID ? t3.ID : t3.id);
|
|
482
503
|
}
|
|
483
504
|
}
|
|
484
505
|
}
|
|
485
506
|
function Q(e2, t2, s2, a2) {
|
|
486
507
|
return new Promise((r2, l2) => {
|
|
487
|
-
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo,
|
|
508
|
+
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
|
|
488
509
|
let T2 = false;
|
|
489
|
-
|
|
510
|
+
b2 && "noOperation" === b2 && (T2 = true);
|
|
490
511
|
let w2 = d2.tableName;
|
|
491
512
|
if (t2) {
|
|
492
513
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
493
|
-
w2 =
|
|
514
|
+
w2 = E(d2, t3);
|
|
494
515
|
}
|
|
495
|
-
const
|
|
496
|
-
return new Promise((g3,
|
|
497
|
-
const
|
|
498
|
-
p.confirm(u().t(T3, { name:
|
|
516
|
+
const k2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
|
|
517
|
+
return new Promise((g3, C3) => {
|
|
518
|
+
const b3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
519
|
+
p.confirm(u().t(T3, { name: b3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
499
520
|
const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
|
|
500
521
|
p2.tableName = f3;
|
|
501
522
|
let d4 = n(u2, e3.isTest) + s3;
|
|
502
523
|
d4 = o(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
503
524
|
g3(e4);
|
|
504
525
|
}).catch((e4) => {
|
|
505
|
-
|
|
526
|
+
C3(e4);
|
|
506
527
|
});
|
|
507
528
|
}).catch(() => {
|
|
508
|
-
|
|
529
|
+
C3("点击了取消按钮");
|
|
509
530
|
});
|
|
510
531
|
});
|
|
511
|
-
}(d2, m2, a2, T2, f2, g2, s2,
|
|
512
|
-
|
|
513
|
-
|
|
532
|
+
}(d2, m2, a2, T2, f2, g2, s2, C2, w2);
|
|
533
|
+
k2 ? k2.then((e3) => {
|
|
534
|
+
H(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
514
535
|
}).catch((e3) => {
|
|
515
536
|
l2(e3);
|
|
516
537
|
}) : l2("request不存在");
|
|
517
538
|
});
|
|
518
539
|
}
|
|
519
|
-
function
|
|
540
|
+
function Z(e2, s2) {
|
|
520
541
|
var _a;
|
|
521
|
-
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
542
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = e2.tableConfigure, p2 = i2.props.base, d2 = i2.props.base.tableUuid ? i2.props.base.tableUuid : e2.tableUuid, m2 = E(a2, d2), f2 = new FormData();
|
|
522
543
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
523
544
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
524
545
|
g2 && f2.append("importDuplicateRule", g2);
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
const
|
|
528
|
-
|
|
546
|
+
const C2 = a2.judgeHeavyList;
|
|
547
|
+
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
548
|
+
const b2 = ke(i2);
|
|
549
|
+
b2 && f2.append("autoSetValueData", b2);
|
|
529
550
|
const T2 = a2.formNoRuleCode;
|
|
530
551
|
T2 && f2.append("formNoRuleCode", T2);
|
|
531
552
|
const w2 = e2.listCode;
|
|
532
553
|
w2 && f2.append("listCode", w2);
|
|
533
|
-
let
|
|
534
|
-
|
|
535
|
-
const
|
|
536
|
-
null !=
|
|
537
|
-
const
|
|
538
|
-
|
|
539
|
-
const
|
|
540
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
541
|
-
const
|
|
542
|
-
f2.append("isPermission",
|
|
543
|
-
const
|
|
544
|
-
|
|
545
|
-
const
|
|
546
|
-
let
|
|
547
|
-
|
|
548
|
-
if (
|
|
554
|
+
let k2 = false;
|
|
555
|
+
k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
|
|
556
|
+
const y2 = t(a2);
|
|
557
|
+
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
558
|
+
const P2 = S(i2, a2);
|
|
559
|
+
P2 && f2.append("functionCode", P2);
|
|
560
|
+
const R2 = re(a2);
|
|
561
|
+
f2.append("additionalParamMapStr", JSON.stringify(R2));
|
|
562
|
+
const I2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
563
|
+
f2.append("isPermission", I2 + "");
|
|
564
|
+
const M2 = a2.systemCode;
|
|
565
|
+
M2 && f2.append("systemCode", M2);
|
|
566
|
+
const N2 = a2.backendUrl;
|
|
567
|
+
let v2 = n(N2, a2.isTest) + "/dsc/commons/import-data";
|
|
568
|
+
v2 = o(v2, M2, N2, a2.isTest), c.post(v2, f2).then((e3) => {
|
|
569
|
+
if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
549
570
|
else {
|
|
550
571
|
let t2 = false;
|
|
551
|
-
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true),
|
|
572
|
+
e3 ? (t2 = false, l({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulImport") }), t2 = true), H(a2, i2, e3, null, true), a2.result = t2, h(a2, i2);
|
|
552
573
|
}
|
|
553
574
|
}).catch((e3) => {
|
|
554
575
|
});
|
|
555
576
|
}
|
|
556
|
-
function
|
|
577
|
+
function ee(e2, t2) {
|
|
557
578
|
const s2 = e2.props.base;
|
|
558
579
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
559
580
|
if ("one" === s2.conditionsForExecution) {
|
|
@@ -562,31 +583,31 @@ function Z(e2, t2) {
|
|
|
562
583
|
}
|
|
563
584
|
return true;
|
|
564
585
|
}
|
|
565
|
-
function
|
|
586
|
+
function te(e2) {
|
|
566
587
|
var _a;
|
|
567
588
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
568
|
-
let r2 =
|
|
589
|
+
let r2 = S(n2, t2);
|
|
569
590
|
r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
570
|
-
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version };
|
|
591
|
+
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: a2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
571
592
|
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);
|
|
572
593
|
const u2 = n2.props.base.conversionCodes;
|
|
573
594
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
574
|
-
const l2 =
|
|
595
|
+
const l2 = ke(n2);
|
|
575
596
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
576
597
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
577
598
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
578
|
-
const d2 =
|
|
579
|
-
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
|
|
599
|
+
const d2 = re(t2);
|
|
600
|
+
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]));
|
|
580
601
|
const m2 = n2.props.base.successOperation;
|
|
581
602
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
582
603
|
}
|
|
583
|
-
function
|
|
604
|
+
function se(e2, t2, s2, n2, o2) {
|
|
584
605
|
const a2 = s2.code, i2 = s2.version;
|
|
585
606
|
let r2;
|
|
586
607
|
if (e2) {
|
|
587
608
|
t2 && (s2.initFormNo = e2.formNo, s2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (s2.entity.data = e2.entity, function(e3, t3) {
|
|
588
|
-
const s3 =
|
|
589
|
-
e3 && s3 &&
|
|
609
|
+
const s3 = re(t3);
|
|
610
|
+
e3 && s3 && C(s3._t_ + "_id", e3);
|
|
590
611
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
591
612
|
const o3 = e2.completeTaskResult;
|
|
592
613
|
if (o3) {
|
|
@@ -598,32 +619,32 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
598
619
|
}
|
|
599
620
|
if (e2.completeTaskParam) {
|
|
600
621
|
const t3 = e2.completeTaskParam;
|
|
601
|
-
r2 = t3.taskId, n2 && (n2.taskId = r2),
|
|
622
|
+
r2 = t3.taskId, n2 && (n2.taskId = r2), P(a2, i2, "_completeTaskParam", t3), s2.fieldPermissions = t3.fieldPermissions, s2.actionPermissions = t3.actionPermissions, s2.workflowButtonComponent = t3.buttonComponent, s2.completeTaskParam = t3, s2.completeTaskParam.opinion = null;
|
|
602
623
|
}
|
|
603
|
-
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap,
|
|
624
|
+
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(a2, i2, "_currentActivityName", e2.taskName);
|
|
604
625
|
}
|
|
605
|
-
return n2 && (n2.operationResult = o2), t2 ||
|
|
626
|
+
return n2 && (n2.operationResult = o2), t2 || H(s2, n2.configureObj, e2, null, false), true;
|
|
606
627
|
}
|
|
607
|
-
async function
|
|
608
|
-
const s2 = await
|
|
628
|
+
async function ne(e2, t2) {
|
|
629
|
+
const s2 = await oe(e2);
|
|
609
630
|
return new Promise((a2, i2) => {
|
|
610
631
|
var _a;
|
|
611
632
|
if (s2) {
|
|
612
633
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
613
634
|
let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
614
635
|
if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
615
|
-
const g2 =
|
|
636
|
+
const g2 = te(e2);
|
|
616
637
|
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
617
638
|
c.post(f2, g2).then((s3) => {
|
|
618
639
|
let n2 = true;
|
|
619
|
-
s3 && (n2 =
|
|
640
|
+
s3 && (n2 = se(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
|
|
620
641
|
}).catch((e3) => {
|
|
621
642
|
i2(e3);
|
|
622
643
|
});
|
|
623
644
|
} else a2(true);
|
|
624
645
|
});
|
|
625
646
|
}
|
|
626
|
-
function
|
|
647
|
+
function oe(e2) {
|
|
627
648
|
return new Promise((t2, s2) => {
|
|
628
649
|
var _a, _b, _c, _d;
|
|
629
650
|
const n2 = e2.configureObj;
|
|
@@ -641,19 +662,19 @@ function ne(e2) {
|
|
|
641
662
|
} else t2(true);
|
|
642
663
|
});
|
|
643
664
|
}
|
|
644
|
-
function
|
|
665
|
+
function ae(e2, t2) {
|
|
645
666
|
if (t2) {
|
|
646
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 =
|
|
647
|
-
c2.assigneeId = r2,
|
|
667
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = te(e2);
|
|
668
|
+
c2.assigneeId = r2, le(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
648
669
|
h(s2, o2);
|
|
649
670
|
});
|
|
650
671
|
}
|
|
651
672
|
}
|
|
652
|
-
function
|
|
653
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 =
|
|
673
|
+
function ie(e2) {
|
|
674
|
+
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 = re(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 };
|
|
654
675
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
655
676
|
}
|
|
656
|
-
function
|
|
677
|
+
function re(t2) {
|
|
657
678
|
if (t2.entity) {
|
|
658
679
|
let s2 = e(t2.entity.page);
|
|
659
680
|
s2 || (s2 = {});
|
|
@@ -661,20 +682,20 @@ function ie(t2) {
|
|
|
661
682
|
return n2 && Object.assign(s2, n2), s2;
|
|
662
683
|
}
|
|
663
684
|
}
|
|
664
|
-
function
|
|
685
|
+
function ce(e2, t2) {
|
|
665
686
|
if (t2) {
|
|
666
687
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
667
688
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
668
689
|
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
669
|
-
const d2 =
|
|
690
|
+
const d2 = ie(e2);
|
|
670
691
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
671
692
|
const m2 = c.post(p2, d2);
|
|
672
693
|
m2 && m2.then((e3) => {
|
|
673
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
694
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), h(s2, a2);
|
|
674
695
|
});
|
|
675
696
|
}
|
|
676
697
|
}
|
|
677
|
-
async function
|
|
698
|
+
async function ue(e2, t2) {
|
|
678
699
|
if (t2) {
|
|
679
700
|
const s2 = await function(e3) {
|
|
680
701
|
return new Promise((t3, s3) => {
|
|
@@ -699,7 +720,7 @@ async function ce(e2, t2) {
|
|
|
699
720
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
700
721
|
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
701
722
|
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
702
|
-
const m2 =
|
|
723
|
+
const m2 = ie(e2);
|
|
703
724
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
704
725
|
const f2 = c.post(d2, m2);
|
|
705
726
|
f2 && f2.then((e3) => {
|
|
@@ -708,8 +729,8 @@ async function ce(e2, t2) {
|
|
|
708
729
|
}
|
|
709
730
|
}
|
|
710
731
|
}
|
|
711
|
-
async function
|
|
712
|
-
const a2 = await
|
|
732
|
+
async function le(e2, t2, s2, n2) {
|
|
733
|
+
const a2 = await oe(e2);
|
|
713
734
|
return new Promise((i2, r2) => {
|
|
714
735
|
var _a;
|
|
715
736
|
if (a2) {
|
|
@@ -722,47 +743,47 @@ async function ue(e2, t2, s2, n2) {
|
|
|
722
743
|
const f2 = c.post(s2, t2);
|
|
723
744
|
f2 && f2.then((t3) => {
|
|
724
745
|
let s3 = true;
|
|
725
|
-
t3 && (s3 =
|
|
746
|
+
t3 && (s3 = se(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
726
747
|
}).catch((e3) => {
|
|
727
748
|
r2(e3);
|
|
728
749
|
});
|
|
729
750
|
} else i2(true);
|
|
730
751
|
});
|
|
731
752
|
}
|
|
732
|
-
function
|
|
753
|
+
function pe(e2) {
|
|
733
754
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
734
755
|
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
735
756
|
if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
736
|
-
const p2 = t2.code, d2 =
|
|
757
|
+
const p2 = t2.code, d2 = re(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
737
758
|
return c.post(r2, m2);
|
|
738
759
|
}
|
|
739
|
-
function
|
|
740
|
-
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 =
|
|
741
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
760
|
+
function de(e2, t2) {
|
|
761
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
|
|
762
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), le(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
742
763
|
h(s2, o2);
|
|
743
764
|
});
|
|
744
765
|
}
|
|
745
|
-
function
|
|
766
|
+
function me(e2) {
|
|
746
767
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
747
768
|
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
748
|
-
const r2 =
|
|
769
|
+
const r2 = te(e2);
|
|
749
770
|
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
750
771
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
751
772
|
}
|
|
752
|
-
function
|
|
773
|
+
function fe(e2, t2) {
|
|
753
774
|
if (t2) {
|
|
754
775
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
755
776
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
756
777
|
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
757
|
-
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 =
|
|
778
|
+
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = te(e2);
|
|
758
779
|
m2.ids = d2;
|
|
759
780
|
const f2 = c.post(p2, m2);
|
|
760
781
|
f2 && f2.then((e3) => {
|
|
761
|
-
|
|
782
|
+
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
|
|
762
783
|
});
|
|
763
784
|
}
|
|
764
785
|
}
|
|
765
|
-
function
|
|
786
|
+
function ge(e2, t2, s2, n2, o2) {
|
|
766
787
|
let a2 = false;
|
|
767
788
|
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
768
789
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -817,7 +838,19 @@ function fe(e2, t2, s2, n2, o2) {
|
|
|
817
838
|
}(t2) : "kiken" === e2 ? a2 = function(e3) {
|
|
818
839
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
819
840
|
return false;
|
|
820
|
-
}(t2) : function(e3, t3) {
|
|
841
|
+
}(t2) : "extractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
|
|
842
|
+
var _a;
|
|
843
|
+
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
844
|
+
if (e3 == null ? void 0 : e3.processState) {
|
|
845
|
+
if (((_a = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
|
|
846
|
+
if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
847
|
+
}
|
|
848
|
+
return false;
|
|
849
|
+
}(t2, s2, o2) : "cancelExtractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
|
|
850
|
+
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
851
|
+
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
852
|
+
return false;
|
|
853
|
+
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = Ce(t2) : function(e3, t3) {
|
|
821
854
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
822
855
|
const t4 = e4;
|
|
823
856
|
let s3 = true;
|
|
@@ -829,32 +862,35 @@ function fe(e2, t2, s2, n2, o2) {
|
|
|
829
862
|
return false;
|
|
830
863
|
}(t2))), a2;
|
|
831
864
|
}
|
|
832
|
-
function
|
|
833
|
-
e2.
|
|
865
|
+
function Ce(e2, t2, s2) {
|
|
866
|
+
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
867
|
+
}
|
|
868
|
+
function be(e2, t2) {
|
|
869
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Te(e2, t2).then((t3) => {
|
|
834
870
|
e2.isRefresh = true;
|
|
835
871
|
});
|
|
836
872
|
}
|
|
837
|
-
function
|
|
873
|
+
function Te(e2, s2, o2) {
|
|
838
874
|
const a2 = e2.pageType;
|
|
839
875
|
if (a2 && "form" === a2) {
|
|
840
876
|
e2.canClick = false;
|
|
841
877
|
return t(e2) ? function(e3, t2, s3) {
|
|
842
878
|
return new Promise((o3, a3) => {
|
|
843
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
844
|
-
let d2 = t2 || null,
|
|
845
|
-
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null),
|
|
846
|
-
const g2 = p2 ? p2.taskId : null,
|
|
847
|
-
if (
|
|
879
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = re(e3);
|
|
880
|
+
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
881
|
+
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
882
|
+
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
883
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
848
884
|
const t3 = {};
|
|
849
885
|
e3.tableUuids.forEach((e4) => {
|
|
850
886
|
const s4 = r(u2, l2, e4);
|
|
851
887
|
t3[s4] = s4;
|
|
852
|
-
}),
|
|
888
|
+
}), b2.listCodesMap = t3;
|
|
853
889
|
}
|
|
854
|
-
|
|
855
|
-
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets",
|
|
856
|
-
|
|
857
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap,
|
|
890
|
+
m2 && (b2.ids = we(m2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (b2.id = f(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);
|
|
891
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = j();
|
|
892
|
+
w2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(T2, b2).then((t3) => {
|
|
893
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, e3.dataTypeMaps = t3.dataTypeMap, se(t3, true, e3), e3.workflowRules = O(e3);
|
|
858
894
|
const s4 = e3.pageType;
|
|
859
895
|
s4 && "form" === s4 && function(e4) {
|
|
860
896
|
(function(e5) {
|
|
@@ -878,6 +914,7 @@ function be(e2, s2, o2) {
|
|
|
878
914
|
const o4 = n2[e6], a4 = t4.get(e6);
|
|
879
915
|
if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
|
|
880
916
|
else {
|
|
917
|
+
o4 && 0 !== Object.keys(o4.deleteCondition).length || (o4.deleteCondition = null), o4 && 0 !== Object.keys(o4.updateCondition).length || (o4.updateCondition = null);
|
|
881
918
|
const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
|
|
882
919
|
void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
|
|
883
920
|
}
|
|
@@ -886,18 +923,18 @@ function be(e2, s2, o2) {
|
|
|
886
923
|
}
|
|
887
924
|
e5.actionPermissionMap = s5;
|
|
888
925
|
}(e4);
|
|
889
|
-
}(e3), e3.canClick = true,
|
|
926
|
+
}(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), w2.setFormPageDataLoadState(true), o3(t3);
|
|
890
927
|
}).catch((t3) => {
|
|
891
928
|
e3.canClick = true, a3(t3);
|
|
892
929
|
});
|
|
893
930
|
});
|
|
894
931
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
895
932
|
return new Promise((o3, a3) => {
|
|
896
|
-
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 =
|
|
897
|
-
let d2 = t2 || null,
|
|
898
|
-
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null),
|
|
899
|
-
const g2 = p2 ? p2.taskId : null,
|
|
900
|
-
if (!T2.id && p2 && p2._t_ &&
|
|
933
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = re(e3);
|
|
934
|
+
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
935
|
+
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
936
|
+
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: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
937
|
+
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = we(m2)), 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) {
|
|
901
938
|
const t3 = {};
|
|
902
939
|
e3.tableUuids.forEach((e4) => {
|
|
903
940
|
const s4 = r(u2, l2, e4);
|
|
@@ -905,11 +942,11 @@ function be(e2, s2, o2) {
|
|
|
905
942
|
}), T2.listCodesMap = t3;
|
|
906
943
|
}
|
|
907
944
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
908
|
-
const
|
|
909
|
-
|
|
945
|
+
const w2 = b2 + "/dsc/commons/gets", y2 = j();
|
|
946
|
+
y2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
|
|
910
947
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
911
948
|
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
912
|
-
e3.rules = a4, e3.canClick = true,
|
|
949
|
+
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
|
|
913
950
|
}).catch((t3) => {
|
|
914
951
|
e3.canClick = true, a3(t3);
|
|
915
952
|
});
|
|
@@ -920,10 +957,10 @@ function be(e2, s2, o2) {
|
|
|
920
957
|
e3(true);
|
|
921
958
|
});
|
|
922
959
|
}
|
|
923
|
-
function
|
|
960
|
+
function we(e2) {
|
|
924
961
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
925
962
|
}
|
|
926
|
-
function
|
|
963
|
+
function ke(e2) {
|
|
927
964
|
const t2 = e2.props.setValueList;
|
|
928
965
|
if (t2) {
|
|
929
966
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -931,41 +968,41 @@ function Te(e2) {
|
|
|
931
968
|
}
|
|
932
969
|
return null;
|
|
933
970
|
}
|
|
934
|
-
function
|
|
971
|
+
function ye(e2, t2) {
|
|
935
972
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
936
973
|
return c.post(a2, o2);
|
|
937
974
|
}
|
|
938
|
-
function
|
|
975
|
+
function he(e2) {
|
|
939
976
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
940
977
|
return c.get(s2);
|
|
941
978
|
}
|
|
942
|
-
function
|
|
979
|
+
function Pe(e2) {
|
|
943
980
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
944
981
|
return c.delete(t2);
|
|
945
982
|
}
|
|
946
983
|
export {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
984
|
+
H as dealAfterOperate,
|
|
985
|
+
se as dealCompleteTaskParam,
|
|
986
|
+
Pe as deleteChartCondition,
|
|
987
|
+
ce as doAddSigner,
|
|
988
|
+
ae as doAssign,
|
|
989
|
+
ue as doCreateCopyTask,
|
|
990
|
+
Z as doImportFinally,
|
|
991
|
+
fe as doRemoveSigners,
|
|
992
|
+
de as doReturnTaskTo,
|
|
956
993
|
L as exportFormReport,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
994
|
+
re as getAdditionalParamMap,
|
|
995
|
+
Te as getFormData,
|
|
996
|
+
me as getRemoveSigner,
|
|
997
|
+
q as getSaveFormRequest,
|
|
998
|
+
$ as getSaveFormRequestWithRow,
|
|
999
|
+
pe as getTaskInformitions,
|
|
1000
|
+
ge as isVisibleWorkflowButton,
|
|
1001
|
+
ee as judgeDataNumber,
|
|
1002
|
+
he as listChartConditions,
|
|
1003
|
+
X as refreshFormOrListPage,
|
|
1004
|
+
be as refreshPage,
|
|
1005
|
+
ye as saveChartConditionBase,
|
|
1006
|
+
D as standardEvents,
|
|
1007
|
+
z as updateValuesWhenCloseDialog
|
|
971
1008
|
};
|