super-page-runtime 2.3.13 → 2.3.14-sit2
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 +322 -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 +40 -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 R, getDefaultValue as S, getModelFields as M } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as I, 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 = R(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 = R(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 = R(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,138 +122,173 @@ 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;
|
|
238
|
+
let a2 = n(s2, t2.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
239
|
+
const i2 = te(e3);
|
|
240
|
+
if (t2.completeTaskParam) {
|
|
241
|
+
const s3 = [];
|
|
242
|
+
e3._value.loginName && s3.push(e3._value.loginName), i2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, opinion: e3._value.opinion, transactors: s3 };
|
|
243
|
+
}
|
|
244
|
+
return new Promise((t3, s3) => {
|
|
245
|
+
const n2 = e3.pageContext, r2 = n2.systemCode, p2 = n2.backendUrl;
|
|
246
|
+
if (a2 = o(a2, r2, p2, n2.isTest), !a2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
247
|
+
const d2 = c.post(a2, i2);
|
|
248
|
+
d2 && d2.then((s4) => {
|
|
249
|
+
let o2 = true;
|
|
250
|
+
s4 && (o2 = se(s4, false, n2, e3, null)), true === o2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulInitiateExtract") }), t3(true);
|
|
251
|
+
}).catch((e4) => {
|
|
252
|
+
s3(e4);
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
}(e2);
|
|
256
|
+
}, cancelExtractWorkflow: function(e2) {
|
|
257
|
+
return function(e3) {
|
|
258
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = te(e3);
|
|
259
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
260
|
+
}(e2);
|
|
261
|
+
}, approveExtractWorkflow: function(e2) {
|
|
262
|
+
return function(e3) {
|
|
263
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = te(e3);
|
|
264
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
265
|
+
}(e2);
|
|
266
|
+
}, refuseExtractWorkflow: function(e2) {
|
|
267
|
+
return function(e3) {
|
|
268
|
+
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = te(e3);
|
|
269
|
+
return le(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
234
270
|
}(e2);
|
|
235
271
|
}, viewDetail: function(e2) {
|
|
236
272
|
}, lineEditCreate: function(e2) {
|
|
237
273
|
return function(e3) {
|
|
238
274
|
const t2 = e3.pageContext, s2 = e3.tableUuid, n2 = b(t2, s2);
|
|
239
|
-
n2 && (e3.getDefaultValueFunc =
|
|
275
|
+
n2 && (e3.getDefaultValueFunc = S, n2.createRow(e3.listCode, {}, e3));
|
|
240
276
|
}(e2);
|
|
241
277
|
}, printLabel: function(e2) {
|
|
242
278
|
return function(e3) {
|
|
243
279
|
let t2 = null;
|
|
244
280
|
try {
|
|
245
281
|
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);
|
|
282
|
+
} catch (e4) {
|
|
248
283
|
}
|
|
249
284
|
A.printLabel(e3, t2);
|
|
250
285
|
}(e2);
|
|
251
286
|
}, queryCharts: function(e2) {
|
|
252
|
-
|
|
287
|
+
W(e2);
|
|
253
288
|
}, resetCharts: function(t2) {
|
|
254
289
|
var _a, _b;
|
|
255
290
|
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,
|
|
291
|
+
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
292
|
}, exportCharts: function(e2) {
|
|
258
293
|
!function(e3) {
|
|
259
294
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
@@ -276,11 +311,11 @@ const j = { save: function(e2) {
|
|
|
276
311
|
let c2, u2 = t2.label;
|
|
277
312
|
u2 || (u2 = t2.code);
|
|
278
313
|
c2 = u2;
|
|
279
|
-
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 =
|
|
314
|
+
const l2 = { reportDataList: r2, beanName: t2.beanName }, p2 = re(t2);
|
|
280
315
|
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
316
|
const d2 = t2.backendUrl, m2 = n(d2, t2.isTest) + "/dsc/commons/exportChart";
|
|
282
|
-
|
|
283
|
-
|
|
317
|
+
B();
|
|
318
|
+
w.post(m2, l2, { responseType: "blob" }).then((e4) => {
|
|
284
319
|
const t3 = document.createElement("a");
|
|
285
320
|
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
321
|
}).finally(() => {
|
|
@@ -290,17 +325,17 @@ const j = { save: function(e2) {
|
|
|
290
325
|
}, saveQueryCharts: function(e2) {
|
|
291
326
|
!function(e3) {
|
|
292
327
|
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
293
|
-
|
|
328
|
+
T.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
294
329
|
}(e2);
|
|
295
330
|
} };
|
|
296
|
-
function
|
|
331
|
+
function W(e2) {
|
|
297
332
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
298
333
|
if (!s2 || 0 == s2.length) return;
|
|
299
334
|
const n2 = e2.configureObj;
|
|
300
335
|
let o2 = null;
|
|
301
336
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
302
337
|
const a2 = o2 ? o2.state : void 0;
|
|
303
|
-
o2 && (o2.state = "disabled"),
|
|
338
|
+
o2 && (o2.state = "disabled"), I(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
304
339
|
o2 && (o2.state = a2);
|
|
305
340
|
}).catch(() => {
|
|
306
341
|
o2 && (o2.state = a2);
|
|
@@ -309,26 +344,26 @@ function D(e2) {
|
|
|
309
344
|
function L(e2, s2, o2, a2) {
|
|
310
345
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
|
311
346
|
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
|
-
|
|
347
|
+
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: R(s2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
348
|
+
u2 && (b2.logSettingText = u2.join(""));
|
|
349
|
+
const T2 = re(e2);
|
|
350
|
+
let k2;
|
|
351
|
+
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
352
|
return new Promise((a3, i3) => {
|
|
318
353
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
319
|
-
|
|
320
|
-
|
|
354
|
+
B();
|
|
355
|
+
w.post(r3, s3, { headers: { "content-type": "application/json" }, responseType: "blob" }).then((t3) => {
|
|
321
356
|
const s4 = new Blob([t3.data]), n2 = document.createElement("a");
|
|
322
357
|
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
358
|
}).catch((e4) => {
|
|
324
359
|
i3(e4);
|
|
325
360
|
});
|
|
326
361
|
});
|
|
327
|
-
}(r2, f2,
|
|
362
|
+
}(r2, f2, b2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
328
363
|
return new Promise((a3, i3) => {
|
|
329
364
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
330
|
-
|
|
331
|
-
|
|
365
|
+
B();
|
|
366
|
+
w.post(r3, s3, { responseType: "blob" }).then((t3) => {
|
|
332
367
|
const s4 = new Blob([t3.data]);
|
|
333
368
|
let n2 = "报告.xlsx";
|
|
334
369
|
e3 && (n2 = e3);
|
|
@@ -338,27 +373,27 @@ function L(e2, s2, o2, a2) {
|
|
|
338
373
|
i3(e4);
|
|
339
374
|
});
|
|
340
375
|
});
|
|
341
|
-
}(r2, f2,
|
|
376
|
+
}(r2, f2, b2, e2.isTest), k2 && k2.then(() => {
|
|
342
377
|
h(e2, s2);
|
|
343
378
|
}).catch((e3) => {
|
|
344
379
|
});
|
|
345
380
|
}
|
|
346
|
-
function
|
|
347
|
-
|
|
348
|
-
const e2 =
|
|
381
|
+
function B() {
|
|
382
|
+
w.defaults.headers.common.Authorization = m();
|
|
383
|
+
const e2 = g();
|
|
349
384
|
if (e2) {
|
|
350
385
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
351
|
-
|
|
386
|
+
w.defaults.headers.common[t2] = e2;
|
|
352
387
|
}
|
|
353
388
|
}
|
|
354
|
-
function
|
|
389
|
+
function F(e2, t2) {
|
|
355
390
|
return new Promise((s2, n2) => {
|
|
356
391
|
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
357
392
|
let u2 = false;
|
|
358
393
|
c2 && "noOperation" === c2 && (u2 = true);
|
|
359
|
-
const l2 =
|
|
394
|
+
const l2 = q(o2, a2, "/dsc/commons", u2, i2, r2);
|
|
360
395
|
l2 ? l2.then((e3) => {
|
|
361
|
-
|
|
396
|
+
H(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
362
397
|
}).catch((e3) => {
|
|
363
398
|
n2(e3);
|
|
364
399
|
}) : n2("保存时request不存在");
|
|
@@ -366,23 +401,23 @@ function B(e2, t2) {
|
|
|
366
401
|
}
|
|
367
402
|
function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
368
403
|
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 =
|
|
404
|
+
const u2 = t(e2), l2 = e2.systemCode, p2 = void 0 === n2.props.base.isPermission || "true" === n2.props.base.isPermission || n2.props.base.isPermission, d2 = R(n2, e2);
|
|
370
405
|
let m2 = c2;
|
|
371
406
|
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 };
|
|
407
|
+
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
408
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
374
409
|
const g2 = n2.props.base.conversionCodes;
|
|
375
410
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
376
|
-
const
|
|
377
|
-
|
|
378
|
-
const
|
|
379
|
-
|
|
411
|
+
const C2 = ke(n2);
|
|
412
|
+
C2 && (f2.autoSetValueData = C2);
|
|
413
|
+
const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
414
|
+
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
380
415
|
const T2 = e2.beanName;
|
|
381
416
|
T2 && (f2.beanName = T2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
382
|
-
const w2 =
|
|
417
|
+
const w2 = re(e2);
|
|
383
418
|
return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
384
419
|
}
|
|
385
|
-
function
|
|
420
|
+
function $(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
386
421
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
387
422
|
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
|
|
388
423
|
const u3 = n(t3, r3);
|
|
@@ -391,22 +426,23 @@ function F(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
|
391
426
|
return l3;
|
|
392
427
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
393
428
|
}
|
|
394
|
-
function
|
|
395
|
-
return
|
|
429
|
+
function q(e2, t2, s2, n2, o2, a2) {
|
|
430
|
+
return $(e2, t2, s2, n2, o2, a2, null, null);
|
|
396
431
|
}
|
|
397
|
-
function
|
|
398
|
-
const i2 =
|
|
432
|
+
function H(t2, s2, n2, o2, a2) {
|
|
433
|
+
const i2 = G(t2, s2, a2);
|
|
399
434
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
400
435
|
let a3 = s3.props.base.successOperation;
|
|
401
436
|
const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
|
|
402
|
-
a3 ||
|
|
403
|
-
if ("refresh" === a3)
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
437
|
+
a3 || K.includes(s3.name) || (a3 = "refresh");
|
|
438
|
+
if ("refresh" === a3) {
|
|
439
|
+
if (r2) {
|
|
440
|
+
b(t3, r2).refresh();
|
|
441
|
+
}
|
|
442
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
407
443
|
const o4 = e(t3.entity.page);
|
|
408
444
|
let a4 = n3;
|
|
409
|
-
a4 || (a4 = {}), Object.assign(o4, a4),
|
|
445
|
+
a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
|
|
410
446
|
}
|
|
411
447
|
o3 && l({ message: u().t(o3), type: "success", showClose: true });
|
|
412
448
|
}(t2, s2, n2, o2), t2.canClick = true;
|
|
@@ -415,39 +451,39 @@ function q(t2, s2, n2, o2, a2) {
|
|
|
415
451
|
const n4 = s3;
|
|
416
452
|
let o3;
|
|
417
453
|
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
418
|
-
|
|
454
|
+
J(e2, t3, { ...o3, ...e2.entity.page });
|
|
419
455
|
} else {
|
|
420
456
|
const s4 = t3.props.base.successOperation;
|
|
421
457
|
if (s4 && null !== s4) {
|
|
422
|
-
|
|
458
|
+
J(e2, t3, { ...e2.entity.page });
|
|
423
459
|
} else e2.canClick = true;
|
|
424
460
|
}
|
|
425
461
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
426
462
|
}(t2, s2, n2, o2);
|
|
427
463
|
else {
|
|
428
464
|
const e2 = s2.props.base.successOperation;
|
|
429
|
-
e2 && null !== e2 ?
|
|
465
|
+
e2 && null !== e2 ? J(t2, s2, null) : t2.canClick = true;
|
|
430
466
|
}
|
|
431
467
|
}
|
|
432
|
-
function
|
|
468
|
+
function G(e2, t2, s2) {
|
|
433
469
|
let n2;
|
|
434
470
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
435
471
|
}
|
|
436
|
-
function
|
|
472
|
+
function J(e2, t2, s2) {
|
|
437
473
|
const n2 = t2.props.base.successOperation;
|
|
438
474
|
if (!n2 || null === n2) return;
|
|
439
475
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
440
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
476
|
+
"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
477
|
}
|
|
442
|
-
function
|
|
478
|
+
function Y(e2, t2, s2, n2) {
|
|
443
479
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
444
480
|
if ("openWindow" === o2 || "newTab" === o2) window.parent ? window.parent.close() : window.close();
|
|
445
481
|
else {
|
|
446
482
|
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
|
-
|
|
483
|
+
T.$emit(r2 + "close-dialog", { isNeedValueMapping: i2, dataModel: s2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: o2 });
|
|
448
484
|
}
|
|
449
485
|
}
|
|
450
|
-
function
|
|
486
|
+
function z(e2, t2, s2, n2, o2) {
|
|
451
487
|
var _a;
|
|
452
488
|
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
489
|
const a2 = e2.tableName;
|
|
@@ -458,102 +494,102 @@ function Y(e2, t2, s2, n2, o2) {
|
|
|
458
494
|
const t4 = e4.source;
|
|
459
495
|
if (!t4) return;
|
|
460
496
|
const o3 = t4.split("."), a3 = v(n3, o3), i2 = e4.target, r2 = M(null, i2);
|
|
461
|
-
|
|
497
|
+
x(s3.entity, r2, a3);
|
|
462
498
|
});
|
|
463
499
|
}
|
|
464
|
-
}(s2, o2, e2),
|
|
500
|
+
}(s2, o2, e2), k(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: a2 });
|
|
465
501
|
}
|
|
466
|
-
const
|
|
467
|
-
function
|
|
502
|
+
const K = ["dropdown"];
|
|
503
|
+
function X(e2, t2, s2, n2) {
|
|
468
504
|
var _a;
|
|
469
505
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
470
506
|
let o2 = n2;
|
|
471
507
|
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
472
|
-
const a2 =
|
|
508
|
+
const a2 = G(e2, t2);
|
|
473
509
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
474
510
|
if (a2 && "list" === a2) {
|
|
475
511
|
const s3 = y(e2, t2);
|
|
476
512
|
if (s3) {
|
|
477
513
|
b(e2, s3).refresh();
|
|
478
|
-
}
|
|
514
|
+
}
|
|
479
515
|
} else if (a2 && "form" === a2) {
|
|
480
516
|
const t3 = e2.entity.data;
|
|
481
|
-
|
|
517
|
+
be(e2, t3.ID ? t3.ID : t3.id);
|
|
482
518
|
}
|
|
483
519
|
}
|
|
484
520
|
}
|
|
485
521
|
function Q(e2, t2, s2, a2) {
|
|
486
522
|
return new Promise((r2, l2) => {
|
|
487
|
-
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo,
|
|
523
|
+
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, b2 = m2.props.base.successOperation;
|
|
488
524
|
let T2 = false;
|
|
489
|
-
|
|
525
|
+
b2 && "noOperation" === b2 && (T2 = true);
|
|
490
526
|
let w2 = d2.tableName;
|
|
491
527
|
if (t2) {
|
|
492
528
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
493
|
-
w2 =
|
|
529
|
+
w2 = E(d2, t3);
|
|
494
530
|
}
|
|
495
|
-
const
|
|
496
|
-
return new Promise((g3,
|
|
497
|
-
const
|
|
498
|
-
p.confirm(u().t(T3, { name:
|
|
531
|
+
const k2 = function(e3, t3, s3, a3, r3, l3, d3, m3, f3) {
|
|
532
|
+
return new Promise((g3, C3) => {
|
|
533
|
+
const b3 = t3.props.base.title, T3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
534
|
+
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
535
|
const i2 = e3.systemCode, u2 = e3.backendUrl, p2 = V(e3, t3, a3, r3, l3, m3, null);
|
|
500
536
|
p2.tableName = f3;
|
|
501
537
|
let d4 = n(u2, e3.isTest) + s3;
|
|
502
538
|
d4 = o(d4, i2, u2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
503
539
|
g3(e4);
|
|
504
540
|
}).catch((e4) => {
|
|
505
|
-
|
|
541
|
+
C3(e4);
|
|
506
542
|
});
|
|
507
543
|
}).catch(() => {
|
|
508
|
-
|
|
544
|
+
C3("点击了取消按钮");
|
|
509
545
|
});
|
|
510
546
|
});
|
|
511
|
-
}(d2, m2, a2, T2, f2, g2, s2,
|
|
512
|
-
|
|
513
|
-
|
|
547
|
+
}(d2, m2, a2, T2, f2, g2, s2, C2, w2);
|
|
548
|
+
k2 ? k2.then((e3) => {
|
|
549
|
+
H(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
514
550
|
}).catch((e3) => {
|
|
515
551
|
l2(e3);
|
|
516
552
|
}) : l2("request不存在");
|
|
517
553
|
});
|
|
518
554
|
}
|
|
519
|
-
function
|
|
555
|
+
function Z(e2, s2) {
|
|
520
556
|
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 =
|
|
557
|
+
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
558
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
523
559
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
524
560
|
g2 && f2.append("importDuplicateRule", g2);
|
|
525
|
-
const
|
|
526
|
-
|
|
527
|
-
const
|
|
528
|
-
|
|
561
|
+
const C2 = a2.judgeHeavyList;
|
|
562
|
+
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
563
|
+
const b2 = ke(i2);
|
|
564
|
+
b2 && f2.append("autoSetValueData", b2);
|
|
529
565
|
const T2 = a2.formNoRuleCode;
|
|
530
566
|
T2 && f2.append("formNoRuleCode", T2);
|
|
531
567
|
const w2 = e2.listCode;
|
|
532
568
|
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 (
|
|
569
|
+
let k2 = false;
|
|
570
|
+
k2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", k2 + ""), f2.append("pageCode", a2.code);
|
|
571
|
+
const y2 = t(a2);
|
|
572
|
+
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
573
|
+
const P2 = R(i2, a2);
|
|
574
|
+
P2 && f2.append("functionCode", P2);
|
|
575
|
+
const S2 = re(a2);
|
|
576
|
+
f2.append("additionalParamMapStr", JSON.stringify(S2));
|
|
577
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
578
|
+
f2.append("isPermission", M2 + "");
|
|
579
|
+
const I2 = a2.systemCode;
|
|
580
|
+
I2 && f2.append("systemCode", I2);
|
|
581
|
+
const N2 = a2.backendUrl;
|
|
582
|
+
let v2 = n(N2, a2.isTest) + "/dsc/commons/import-data";
|
|
583
|
+
v2 = o(v2, I2, N2, a2.isTest), c.post(v2, f2).then((e3) => {
|
|
584
|
+
if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
549
585
|
else {
|
|
550
586
|
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),
|
|
587
|
+
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
588
|
}
|
|
553
589
|
}).catch((e3) => {
|
|
554
590
|
});
|
|
555
591
|
}
|
|
556
|
-
function
|
|
592
|
+
function ee(e2, t2) {
|
|
557
593
|
const s2 = e2.props.base;
|
|
558
594
|
if (s2.conditionsForExecution && "" !== s2.conditionsForExecution) {
|
|
559
595
|
if ("one" === s2.conditionsForExecution) {
|
|
@@ -562,31 +598,31 @@ function Z(e2, t2) {
|
|
|
562
598
|
}
|
|
563
599
|
return true;
|
|
564
600
|
}
|
|
565
|
-
function
|
|
601
|
+
function te(e2) {
|
|
566
602
|
var _a;
|
|
567
603
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
568
|
-
let r2 =
|
|
604
|
+
let r2 = R(n2, t2);
|
|
569
605
|
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 };
|
|
606
|
+
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
607
|
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
608
|
const u2 = n2.props.base.conversionCodes;
|
|
573
609
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
574
|
-
const l2 =
|
|
610
|
+
const l2 = ke(n2);
|
|
575
611
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
576
612
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
577
613
|
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
|
|
614
|
+
const d2 = re(t2);
|
|
615
|
+
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
616
|
const m2 = n2.props.base.successOperation;
|
|
581
617
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
582
618
|
}
|
|
583
|
-
function
|
|
619
|
+
function se(e2, t2, s2, n2, o2) {
|
|
584
620
|
const a2 = s2.code, i2 = s2.version;
|
|
585
621
|
let r2;
|
|
586
622
|
if (e2) {
|
|
587
623
|
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 &&
|
|
624
|
+
const s3 = re(t3);
|
|
625
|
+
e3 && s3 && C(s3._t_ + "_id", e3);
|
|
590
626
|
}(e2.entity.id || e2.entity.ID, s2));
|
|
591
627
|
const o3 = e2.completeTaskResult;
|
|
592
628
|
if (o3) {
|
|
@@ -598,32 +634,32 @@ function te(e2, t2, s2, n2, o2) {
|
|
|
598
634
|
}
|
|
599
635
|
if (e2.completeTaskParam) {
|
|
600
636
|
const t3 = e2.completeTaskParam;
|
|
601
|
-
r2 = t3.taskId, n2 && (n2.taskId = r2),
|
|
637
|
+
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
638
|
}
|
|
603
|
-
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap,
|
|
639
|
+
s2.entity || (s2.entity = {}), s2.entity.task = e2.taskParamMap, P(a2, i2, "_currentActivityName", e2.taskName);
|
|
604
640
|
}
|
|
605
|
-
return n2 && (n2.operationResult = o2), t2 ||
|
|
641
|
+
return n2 && (n2.operationResult = o2), t2 || H(s2, n2.configureObj, e2, null, false), true;
|
|
606
642
|
}
|
|
607
|
-
async function
|
|
608
|
-
const s2 = await
|
|
643
|
+
async function ne(e2, t2) {
|
|
644
|
+
const s2 = await oe(e2);
|
|
609
645
|
return new Promise((a2, i2) => {
|
|
610
646
|
var _a;
|
|
611
647
|
if (s2) {
|
|
612
648
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
613
649
|
let f2 = n(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
614
650
|
if (f2 = o(f2, p2, d2, r2.isTest), !f2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
615
|
-
const g2 =
|
|
651
|
+
const g2 = te(e2);
|
|
616
652
|
g2.completeTaskParam = { operationResult: t2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
617
653
|
c.post(f2, g2).then((s3) => {
|
|
618
654
|
let n2 = true;
|
|
619
|
-
s3 && (n2 =
|
|
655
|
+
s3 && (n2 = se(s3, false, r2, e2, t2)), true === n2 && l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulCompleteTask") }), a2(true);
|
|
620
656
|
}).catch((e3) => {
|
|
621
657
|
i2(e3);
|
|
622
658
|
});
|
|
623
659
|
} else a2(true);
|
|
624
660
|
});
|
|
625
661
|
}
|
|
626
|
-
function
|
|
662
|
+
function oe(e2) {
|
|
627
663
|
return new Promise((t2, s2) => {
|
|
628
664
|
var _a, _b, _c, _d;
|
|
629
665
|
const n2 = e2.configureObj;
|
|
@@ -641,19 +677,19 @@ function ne(e2) {
|
|
|
641
677
|
} else t2(true);
|
|
642
678
|
});
|
|
643
679
|
}
|
|
644
|
-
function
|
|
680
|
+
function ae(e2, t2) {
|
|
645
681
|
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,
|
|
682
|
+
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);
|
|
683
|
+
c2.assigneeId = r2, le(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
648
684
|
h(s2, o2);
|
|
649
685
|
});
|
|
650
686
|
}
|
|
651
687
|
}
|
|
652
|
-
function
|
|
653
|
-
const t2 = e2.pageContext, s2 = t2.entity.data, n2 = t2.systemCode, o2 = t2.code, a2 =
|
|
688
|
+
function ie(e2) {
|
|
689
|
+
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
690
|
return r2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: n2 }, r2;
|
|
655
691
|
}
|
|
656
|
-
function
|
|
692
|
+
function re(t2) {
|
|
657
693
|
if (t2.entity) {
|
|
658
694
|
let s2 = e(t2.entity.page);
|
|
659
695
|
s2 || (s2 = {});
|
|
@@ -661,20 +697,20 @@ function ie(t2) {
|
|
|
661
697
|
return n2 && Object.assign(s2, n2), s2;
|
|
662
698
|
}
|
|
663
699
|
}
|
|
664
|
-
function
|
|
700
|
+
function ce(e2, t2) {
|
|
665
701
|
if (t2) {
|
|
666
702
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
667
703
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
668
704
|
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
669
|
-
const d2 =
|
|
705
|
+
const d2 = ie(e2);
|
|
670
706
|
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
671
707
|
const m2 = c.post(p2, d2);
|
|
672
708
|
m2 && m2.then((e3) => {
|
|
673
|
-
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity &&
|
|
709
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), h(s2, a2);
|
|
674
710
|
});
|
|
675
711
|
}
|
|
676
712
|
}
|
|
677
|
-
async function
|
|
713
|
+
async function ue(e2, t2) {
|
|
678
714
|
if (t2) {
|
|
679
715
|
const s2 = await function(e3) {
|
|
680
716
|
return new Promise((t3, s3) => {
|
|
@@ -699,7 +735,7 @@ async function ce(e2, t2) {
|
|
|
699
735
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
700
736
|
let d2 = n(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
701
737
|
if (d2 = o(d2, r2, p2, a2.isTest), !d2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
702
|
-
const m2 =
|
|
738
|
+
const m2 = ie(e2);
|
|
703
739
|
m2.completeTaskParam.transactors = t2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
704
740
|
const f2 = c.post(d2, m2);
|
|
705
741
|
f2 && f2.then((e3) => {
|
|
@@ -708,8 +744,8 @@ async function ce(e2, t2) {
|
|
|
708
744
|
}
|
|
709
745
|
}
|
|
710
746
|
}
|
|
711
|
-
async function
|
|
712
|
-
const a2 = await
|
|
747
|
+
async function le(e2, t2, s2, n2) {
|
|
748
|
+
const a2 = await oe(e2);
|
|
713
749
|
return new Promise((i2, r2) => {
|
|
714
750
|
var _a;
|
|
715
751
|
if (a2) {
|
|
@@ -722,47 +758,47 @@ async function ue(e2, t2, s2, n2) {
|
|
|
722
758
|
const f2 = c.post(s2, t2);
|
|
723
759
|
f2 && f2.then((t3) => {
|
|
724
760
|
let s3 = true;
|
|
725
|
-
t3 && (s3 =
|
|
761
|
+
t3 && (s3 = se(t3, false, p2, e2, null)), true === s3 && l({ showClose: true, type: "success", message: u().t(n2) }), i2(true);
|
|
726
762
|
}).catch((e3) => {
|
|
727
763
|
r2(e3);
|
|
728
764
|
});
|
|
729
765
|
} else i2(true);
|
|
730
766
|
});
|
|
731
767
|
}
|
|
732
|
-
function
|
|
768
|
+
function pe(e2) {
|
|
733
769
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
734
770
|
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
735
771
|
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 =
|
|
772
|
+
const p2 = t2.code, d2 = re(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
737
773
|
return c.post(r2, m2);
|
|
738
774
|
}
|
|
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),
|
|
775
|
+
function de(e2, t2) {
|
|
776
|
+
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
|
|
777
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), le(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
742
778
|
h(s2, o2);
|
|
743
779
|
});
|
|
744
780
|
}
|
|
745
|
-
function
|
|
781
|
+
function me(e2) {
|
|
746
782
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
747
783
|
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
748
|
-
const r2 =
|
|
784
|
+
const r2 = te(e2);
|
|
749
785
|
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
750
786
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
751
787
|
}
|
|
752
|
-
function
|
|
788
|
+
function fe(e2, t2) {
|
|
753
789
|
if (t2) {
|
|
754
790
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
755
791
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
756
792
|
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 =
|
|
793
|
+
const d2 = t2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = te(e2);
|
|
758
794
|
m2.ids = d2;
|
|
759
795
|
const f2 = c.post(p2, m2);
|
|
760
796
|
f2 && f2.then((e3) => {
|
|
761
|
-
|
|
797
|
+
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
|
|
762
798
|
});
|
|
763
799
|
}
|
|
764
800
|
}
|
|
765
|
-
function
|
|
801
|
+
function ge(e2, t2, s2, n2, o2) {
|
|
766
802
|
let a2 = false;
|
|
767
803
|
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
768
804
|
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 +853,19 @@ function fe(e2, t2, s2, n2, o2) {
|
|
|
817
853
|
}(t2) : "kiken" === e2 ? a2 = function(e3) {
|
|
818
854
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
819
855
|
return false;
|
|
820
|
-
}(t2) : function(e3, t3) {
|
|
856
|
+
}(t2) : "extractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
|
|
857
|
+
var _a;
|
|
858
|
+
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
859
|
+
if (e3 == null ? void 0 : e3.processState) {
|
|
860
|
+
if (((_a = t3 == null ? void 0 : t3.firstNodeInfo) == null ? void 0 : _a.nodeId) === (s3 == null ? void 0 : s3.CURRENT_ACTIVITY_ID)) return false;
|
|
861
|
+
if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
862
|
+
}
|
|
863
|
+
return false;
|
|
864
|
+
}(t2, s2, o2) : "cancelExtractWorkflow" === e2 ? a2 = function(e3, t3, s3) {
|
|
865
|
+
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
866
|
+
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
867
|
+
return false;
|
|
868
|
+
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = Ce(t2) : function(e3, t3) {
|
|
821
869
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
822
870
|
const t4 = e4;
|
|
823
871
|
let s3 = true;
|
|
@@ -829,32 +877,35 @@ function fe(e2, t2, s2, n2, o2) {
|
|
|
829
877
|
return false;
|
|
830
878
|
}(t2))), a2;
|
|
831
879
|
}
|
|
832
|
-
function
|
|
833
|
-
e2.
|
|
880
|
+
function Ce(e2, t2, s2) {
|
|
881
|
+
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
882
|
+
}
|
|
883
|
+
function be(e2, t2) {
|
|
884
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Te(e2, t2).then((t3) => {
|
|
834
885
|
e2.isRefresh = true;
|
|
835
886
|
});
|
|
836
887
|
}
|
|
837
|
-
function
|
|
888
|
+
function Te(e2, s2, o2) {
|
|
838
889
|
const a2 = e2.pageType;
|
|
839
890
|
if (a2 && "form" === a2) {
|
|
840
891
|
e2.canClick = false;
|
|
841
892
|
return t(e2) ? function(e3, t2, s3) {
|
|
842
893
|
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 (
|
|
894
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = re(e3);
|
|
895
|
+
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
896
|
+
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);
|
|
897
|
+
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 };
|
|
898
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
848
899
|
const t3 = {};
|
|
849
900
|
e3.tableUuids.forEach((e4) => {
|
|
850
901
|
const s4 = r(u2, l2, e4);
|
|
851
902
|
t3[s4] = s4;
|
|
852
|
-
}),
|
|
903
|
+
}), b2.listCodesMap = t3;
|
|
853
904
|
}
|
|
854
|
-
|
|
855
|
-
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets",
|
|
856
|
-
|
|
857
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap,
|
|
905
|
+
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);
|
|
906
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = j();
|
|
907
|
+
w2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(T2, b2).then((t3) => {
|
|
908
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, e3.dataTypeMaps = t3.dataTypeMap, se(t3, true, e3), e3.workflowRules = O(e3);
|
|
858
909
|
const s4 = e3.pageType;
|
|
859
910
|
s4 && "form" === s4 && function(e4) {
|
|
860
911
|
(function(e5) {
|
|
@@ -878,6 +929,7 @@ function be(e2, s2, o2) {
|
|
|
878
929
|
const o4 = n2[e6], a4 = t4.get(e6);
|
|
879
930
|
if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) o4.canUpdate = false, o4.canAdd = false;
|
|
880
931
|
else {
|
|
932
|
+
o4 && 0 !== Object.keys(o4.deleteCondition).length || (o4.deleteCondition = null), o4 && 0 !== Object.keys(o4.updateCondition).length || (o4.updateCondition = null);
|
|
881
933
|
const s6 = o4.canUpdate, n3 = o4.updateRowIndexes;
|
|
882
934
|
void 0 !== s6 && false === s6 && null != n3 && n3.length > 0 && t4.set(e6, [{ name: "all_fields", canEdit: false, rowIndexes: n3 }]);
|
|
883
935
|
}
|
|
@@ -886,18 +938,18 @@ function be(e2, s2, o2) {
|
|
|
886
938
|
}
|
|
887
939
|
e5.actionPermissionMap = s5;
|
|
888
940
|
}(e4);
|
|
889
|
-
}(e3), e3.canClick = true,
|
|
941
|
+
}(e3), e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), w2.setFormPageDataLoadState(true), o3(t3);
|
|
890
942
|
}).catch((t3) => {
|
|
891
943
|
e3.canClick = true, a3(t3);
|
|
892
944
|
});
|
|
893
945
|
});
|
|
894
946
|
}(e2, s2, o2) : function(e3, t2, s3) {
|
|
895
947
|
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_ &&
|
|
948
|
+
const i2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = re(e3);
|
|
949
|
+
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
950
|
+
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);
|
|
951
|
+
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 };
|
|
952
|
+
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
953
|
const t3 = {};
|
|
902
954
|
e3.tableUuids.forEach((e4) => {
|
|
903
955
|
const s4 = r(u2, l2, e4);
|
|
@@ -905,11 +957,11 @@ function be(e2, s2, o2) {
|
|
|
905
957
|
}), T2.listCodesMap = t3;
|
|
906
958
|
}
|
|
907
959
|
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
908
|
-
const
|
|
909
|
-
|
|
960
|
+
const w2 = b2 + "/dsc/commons/gets", y2 = j();
|
|
961
|
+
y2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(w2, T2).then((t3) => {
|
|
910
962
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
911
963
|
const s4 = e3.customRules, n2 = e3.rules, a4 = U(s4, n2);
|
|
912
|
-
e3.rules = a4, e3.canClick = true,
|
|
964
|
+
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), y2.setFormPageDataLoadState(true), o3(t3);
|
|
913
965
|
}).catch((t3) => {
|
|
914
966
|
e3.canClick = true, a3(t3);
|
|
915
967
|
});
|
|
@@ -920,10 +972,10 @@ function be(e2, s2, o2) {
|
|
|
920
972
|
e3(true);
|
|
921
973
|
});
|
|
922
974
|
}
|
|
923
|
-
function
|
|
975
|
+
function we(e2) {
|
|
924
976
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
925
977
|
}
|
|
926
|
-
function
|
|
978
|
+
function ke(e2) {
|
|
927
979
|
const t2 = e2.props.setValueList;
|
|
928
980
|
if (t2) {
|
|
929
981
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -931,41 +983,41 @@ function Te(e2) {
|
|
|
931
983
|
}
|
|
932
984
|
return null;
|
|
933
985
|
}
|
|
934
|
-
function
|
|
986
|
+
function ye(e2, t2) {
|
|
935
987
|
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
988
|
return c.post(a2, o2);
|
|
937
989
|
}
|
|
938
|
-
function
|
|
990
|
+
function he(e2) {
|
|
939
991
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
940
992
|
return c.get(s2);
|
|
941
993
|
}
|
|
942
|
-
function
|
|
994
|
+
function Pe(e2) {
|
|
943
995
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
944
996
|
return c.delete(t2);
|
|
945
997
|
}
|
|
946
998
|
export {
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
999
|
+
H as dealAfterOperate,
|
|
1000
|
+
se as dealCompleteTaskParam,
|
|
1001
|
+
Pe as deleteChartCondition,
|
|
1002
|
+
ce as doAddSigner,
|
|
1003
|
+
ae as doAssign,
|
|
1004
|
+
ue as doCreateCopyTask,
|
|
1005
|
+
Z as doImportFinally,
|
|
1006
|
+
fe as doRemoveSigners,
|
|
1007
|
+
de as doReturnTaskTo,
|
|
956
1008
|
L as exportFormReport,
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1009
|
+
re as getAdditionalParamMap,
|
|
1010
|
+
Te as getFormData,
|
|
1011
|
+
me as getRemoveSigner,
|
|
1012
|
+
q as getSaveFormRequest,
|
|
1013
|
+
$ as getSaveFormRequestWithRow,
|
|
1014
|
+
pe as getTaskInformitions,
|
|
1015
|
+
ge as isVisibleWorkflowButton,
|
|
1016
|
+
ee as judgeDataNumber,
|
|
1017
|
+
he as listChartConditions,
|
|
1018
|
+
X as refreshFormOrListPage,
|
|
1019
|
+
be as refreshPage,
|
|
1020
|
+
ye as saveChartConditionBase,
|
|
1021
|
+
D as standardEvents,
|
|
1022
|
+
z as updateValuesWhenCloseDialog
|
|
971
1023
|
};
|