super-page-runtime 2.3.31-sit2 → 2.3.32-cdn1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +134 -119
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +162 -161
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +41 -39
- 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 +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +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 +98 -93
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- 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 +2 -0
- 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 +5 -5
- 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 +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- 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 +35 -35
- 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 +37 -34
- 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 +38 -37
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +7 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +4 -3
- 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 +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +48 -47
- 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 +16 -14
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.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/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +32 -31
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage as o, isArrayFn as s, packageTemplateFiles as i, upperFirstCase as a, getListCode as r } from "../common-util.js";
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
|
-
import { getI18n as
|
|
4
|
-
import { ElMessage as
|
|
3
|
+
import { getI18n as l } from "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-plus";
|
|
5
5
|
import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCache as C, getRunCurrentRole as w } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import T from "../eventBus.js";
|
|
8
8
|
import k from "axios";
|
|
9
|
-
import { handleEvent as
|
|
9
|
+
import { handleEvent as y, getTableUuid as h, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as v } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as S, getDefaultValue as I, getModelFields as R } from "../page-init-util.js";
|
|
12
|
-
import { caculateShowCondition as
|
|
12
|
+
import { caculateShowCondition as M, updateChartDatasources as N, getVariableValue as x, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as E, getCurrentUserFileTasks as U, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
@@ -30,17 +30,17 @@ const Y = { save: function(e2) {
|
|
|
30
30
|
const t2 = e2.pageContext.code + "_";
|
|
31
31
|
T.$emit(t2 + "export-pdf-report", e2);
|
|
32
32
|
}, submit: function(e2) {
|
|
33
|
-
return
|
|
33
|
+
return le(e2, false, "submit", "/dsc/commons/submits");
|
|
34
34
|
}, submitList: function(e2) {
|
|
35
|
-
return
|
|
35
|
+
return le(e2, true, "submit", "/dsc/commons/batch-submits");
|
|
36
36
|
}, agree: function(e2) {
|
|
37
|
-
return
|
|
37
|
+
return le(e2, false, "agree", "/dsc/commons/approves");
|
|
38
38
|
}, agreeList: function(e2) {
|
|
39
|
-
return
|
|
39
|
+
return le(e2, true, "agree", "/dsc/commons/batch-approves");
|
|
40
40
|
}, disagree: function(e2) {
|
|
41
|
-
return
|
|
41
|
+
return le(e2, false, "disagree", "/dsc/commons/refuses");
|
|
42
42
|
}, disagreeList: function(e2) {
|
|
43
|
-
return
|
|
43
|
+
return le(e2, true, "disagree", "/dsc/commons/batch-refuses");
|
|
44
44
|
}, back: function(e2) {
|
|
45
45
|
const t2 = e2.pageContext, n2 = t2.entity ? t2.entity.data : {}, o2 = !(!e2.configureObj.props || !e2.configureObj.props.base) && e2.configureObj.props.base.isNeedValueMapping;
|
|
46
46
|
ie(t2, e2.configureObj, n2, o2);
|
|
@@ -48,24 +48,24 @@ const Y = { save: function(e2) {
|
|
|
48
48
|
return function(e3) {
|
|
49
49
|
return new Promise((s2, i2) => {
|
|
50
50
|
const a2 = e3.ids;
|
|
51
|
-
if (!a2 || 0 === a2.length) return
|
|
52
|
-
p.confirm(
|
|
51
|
+
if (!a2 || 0 === a2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
52
|
+
p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
53
53
|
var _a, _b, _c;
|
|
54
|
-
const r2 = e3.pageContext,
|
|
54
|
+
const r2 = e3.pageContext, l2 = e3.configureObj, u2 = l2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = l2.props.base.tableUuid ? l2.props.base.tableUuid : e3.tableUuid, f2 = E(r2, m2);
|
|
55
55
|
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
56
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
|
-
const C2 = void 0 ===
|
|
57
|
+
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 = S(l2, r2), k2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
58
58
|
r2.beanName && (k2.beanName = r2.beanName);
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
const P2 =
|
|
59
|
+
const y2 = l2.props.deleteLogicSetting;
|
|
60
|
+
y2 && ("object" == typeof y2 ? k2.deleteLogicSetting = JSON.stringify(y2) : "string" == typeof y2 && (k2.deleteLogicSetting = y2));
|
|
61
|
+
const h2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
|
|
62
|
+
h2 && (k2.logSettingText = h2.join(""));
|
|
63
|
+
const P2 = l2.props.base.isSafeDelete;
|
|
64
64
|
P2 && (k2.isSafeDelete = P2);
|
|
65
|
-
const v2 = (_c = (_b =
|
|
65
|
+
const v2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
66
66
|
v2 && (k2.currentOperation = v2), k2.isMobile = L(), c.delete(g2, { data: k2 }).then((e4) => {
|
|
67
67
|
const t2 = b(r2, m2);
|
|
68
|
-
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2,
|
|
68
|
+
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
69
69
|
}).catch((e4) => {
|
|
70
70
|
i2(e4);
|
|
71
71
|
});
|
|
@@ -80,12 +80,12 @@ const Y = { save: function(e2) {
|
|
|
80
80
|
const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, a2 = i(s2.templateFiles, n2, o2);
|
|
81
81
|
let r2, c2;
|
|
82
82
|
a2 && a2.length > 0 && (r2 = a2[0].templateUuid, c2 = a2[0].templateName);
|
|
83
|
-
const
|
|
83
|
+
const l2 = n2.systemCode, u2 = n2.backendUrl, p2 = c2;
|
|
84
84
|
let d2 = "?1=1";
|
|
85
85
|
r2 && p2 && "undefined" !== r2 && "undefined" !== p2 && "null" !== r2 && "null" !== p2 ? d2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(p2) : p2 ? d2 += "&showName=" + encodeURI(p2) : n2.label && (d2 += "&showName=" + encodeURI(n2.label) + ".xlsx");
|
|
86
86
|
const m2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
87
87
|
m2 && (d2 += "&logSettingText=" + m2.join(""));
|
|
88
|
-
|
|
88
|
+
l2 && (d2 += "&systemCode=" + l2);
|
|
89
89
|
const C2 = e3.listCode;
|
|
90
90
|
C2 && (d2 += "&listCode=" + C2);
|
|
91
91
|
n2.beanName && (d2 += "&beanName=" + n2.beanName);
|
|
@@ -99,13 +99,13 @@ const Y = { save: function(e2) {
|
|
|
99
99
|
const T2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
100
100
|
T2 && (d2 += "¤tOperation=" + encodeURI(T2));
|
|
101
101
|
d2 += "&isMobile=" + L();
|
|
102
|
-
const k2 = "_RUN_CURRENT_ROLE",
|
|
103
|
-
|
|
102
|
+
const k2 = "_RUN_CURRENT_ROLE", y2 = g(k2);
|
|
103
|
+
y2 && (d2 += "&" + k2 + "=" + y2);
|
|
104
104
|
if (s2) {
|
|
105
105
|
d2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
window.open(
|
|
107
|
+
const h2 = t(u2, n2.isTest);
|
|
108
|
+
window.open(h2 + "/dsc/commons/download-files" + d2);
|
|
109
109
|
}(e2);
|
|
110
110
|
}, import: function(e2) {
|
|
111
111
|
const t2 = e2.pageContext.code + "_";
|
|
@@ -116,12 +116,12 @@ const Y = { save: function(e2) {
|
|
|
116
116
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
117
117
|
const o2 = e3.pageContext, s2 = e3.configureObj, i2 = s2.props.base, a2 = e3.listCode, r2 = e3.selections, c2 = {};
|
|
118
118
|
r2 && r2.length > 0 && (c2.data = r2);
|
|
119
|
-
let
|
|
120
|
-
|
|
121
|
-
let
|
|
122
|
-
|
|
123
|
-
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 = S(s2, o2), m2 =
|
|
124
|
-
g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, a2, d2, null, f2,
|
|
119
|
+
let l2 = o2.label;
|
|
120
|
+
l2 || (l2 = o2.code);
|
|
121
|
+
let u2 = false;
|
|
122
|
+
u2 = void 0 !== i2.isAsync && null !== i2.isAsync && i2.isAsync;
|
|
123
|
+
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 = S(s2, o2), m2 = l2, f2 = { backendUrl: o2.backendUrl, pageContext: o2 }, g2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
124
|
+
g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, a2, d2, null, f2, u2, o2.code, p2), u2 && setTimeout(() => {
|
|
125
125
|
Fe(o2);
|
|
126
126
|
}, 100);
|
|
127
127
|
});
|
|
@@ -137,12 +137,12 @@ const Y = { save: function(e2) {
|
|
|
137
137
|
return new Promise((o2, s2) => {
|
|
138
138
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
139
139
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons";
|
|
140
|
-
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void
|
|
140
|
+
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
141
141
|
const m2 = de(e3);
|
|
142
142
|
let f2;
|
|
143
143
|
f2 = a2.id || a2.ID ? c.put(d2, m2) : c.post(d2, m2), $(i2.code, a2), f2.then((t2) => {
|
|
144
144
|
let n2 = true;
|
|
145
|
-
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 &&
|
|
145
|
+
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
146
146
|
}).catch((e4) => {
|
|
147
147
|
s2(e4);
|
|
148
148
|
});
|
|
@@ -153,12 +153,12 @@ const Y = { save: function(e2) {
|
|
|
153
153
|
return new Promise((o2, s2) => {
|
|
154
154
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
155
155
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/start";
|
|
156
|
-
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void
|
|
156
|
+
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
157
157
|
const m2 = de(e3);
|
|
158
158
|
let f2;
|
|
159
159
|
a2.workflow_id || a2.WORKFLOW_ID ? (d2 = t(p2, i2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, i2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), $(i2.code, a2), f2.then((t2) => {
|
|
160
160
|
let n2 = true;
|
|
161
|
-
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 &&
|
|
161
|
+
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
162
162
|
}).catch((e4) => {
|
|
163
163
|
s2(e4);
|
|
164
164
|
});
|
|
@@ -169,13 +169,13 @@ const Y = { save: function(e2) {
|
|
|
169
169
|
return new Promise((o2, s2) => {
|
|
170
170
|
const i2 = e3.pageContext, a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
171
171
|
let p2 = t(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
172
|
-
if (p2 = n(p2, a2, r2, i2.isTest), !p2) return void
|
|
172
|
+
if (p2 = n(p2, a2, r2, i2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
173
173
|
const d2 = de(e3);
|
|
174
174
|
$(i2.code, i2.entity.data);
|
|
175
175
|
const m2 = c.post(p2, d2);
|
|
176
176
|
m2 ? m2.then((t2) => {
|
|
177
177
|
let n2 = true;
|
|
178
|
-
t2 && (q(i2.code, i2.entity.data), n2 = me(t2, false, i2, e3, null)), true === n2 &&
|
|
178
|
+
t2 && (q(i2.code, i2.entity.data), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
179
179
|
}).catch((e4) => {
|
|
180
180
|
s2(e4);
|
|
181
181
|
}) : q(i2.code, i2.entity.data);
|
|
@@ -278,7 +278,8 @@ const Y = { save: function(e2) {
|
|
|
278
278
|
let t2 = null;
|
|
279
279
|
try {
|
|
280
280
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
281
|
-
} catch (
|
|
281
|
+
} catch (t3) {
|
|
282
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
282
283
|
}
|
|
283
284
|
A.printLabel(e3, t2);
|
|
284
285
|
}(e2);
|
|
@@ -307,17 +308,17 @@ const Y = { save: function(e2) {
|
|
|
307
308
|
}
|
|
308
309
|
}
|
|
309
310
|
if (!r2 || 0 == r2.length) return;
|
|
310
|
-
let c2,
|
|
311
|
-
|
|
312
|
-
c2 =
|
|
313
|
-
const
|
|
314
|
-
|
|
311
|
+
let c2, l2 = n2.label;
|
|
312
|
+
l2 || (l2 = n2.code);
|
|
313
|
+
c2 = l2;
|
|
314
|
+
const u2 = { reportDataList: r2, beanName: n2.beanName, systemCode: n2.systemCode, pageCode: n2.code }, p2 = Te(n2);
|
|
315
|
+
u2.additionalParamMap = p2;
|
|
315
316
|
const d2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
316
|
-
d2 && (
|
|
317
|
-
|
|
317
|
+
d2 && (u2.currentOperation = d2);
|
|
318
|
+
u2.isMobile = L(), u2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", u2.watermark = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "";
|
|
318
319
|
const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
|
|
319
320
|
X();
|
|
320
|
-
k.post(f2,
|
|
321
|
+
k.post(f2, u2, { responseType: "blob" }).then((e4) => {
|
|
321
322
|
const t2 = document.createElement("a");
|
|
322
323
|
t2.style.display = "none", t2.href = URL.createObjectURL(e4.data), t2.setAttribute("download", c2 + ".xlsx"), document.body.appendChild(t2), t2.click(), document.body.removeChild(t2);
|
|
323
324
|
}).finally(() => {
|
|
@@ -347,7 +348,7 @@ function z(e2) {
|
|
|
347
348
|
let s2 = null;
|
|
348
349
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
349
350
|
const i2 = s2 ? s2.state : void 0;
|
|
350
|
-
s2 && (s2.state = "disabled"),
|
|
351
|
+
s2 && (s2.state = "disabled"), N(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
351
352
|
s2 && (s2.state = i2);
|
|
352
353
|
}).catch(() => {
|
|
353
354
|
s2 && (s2.state = i2);
|
|
@@ -356,13 +357,13 @@ function z(e2) {
|
|
|
356
357
|
function K(e2, n2, s2, i2) {
|
|
357
358
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
358
359
|
e2.clickUuid = n2.uuid, e2.canClick = false;
|
|
359
|
-
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode,
|
|
360
|
-
|
|
360
|
+
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, w2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: S(n2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
361
|
+
l2 && (w2.logSettingText = l2.join(""));
|
|
361
362
|
const b2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
362
363
|
b2 && (w2.currentOperation = b2), w2.isMobile = L();
|
|
363
364
|
const T2 = Te(e2);
|
|
364
|
-
let
|
|
365
|
-
w2.additionalParamMap = T2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "",
|
|
365
|
+
let y2;
|
|
366
|
+
w2.additionalParamMap = T2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", y2 = i2 ? function(e3, n3, o2, s3) {
|
|
366
367
|
return new Promise((i3, a3) => {
|
|
367
368
|
const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
|
|
368
369
|
X();
|
|
@@ -388,7 +389,7 @@ function K(e2, n2, s2, i2) {
|
|
|
388
389
|
a3(e4);
|
|
389
390
|
});
|
|
390
391
|
});
|
|
391
|
-
}(r2, f2, w2, e2.isTest),
|
|
392
|
+
}(r2, f2, w2, e2.isTest), y2 && y2.then(() => {
|
|
392
393
|
P(e2, n2);
|
|
393
394
|
}).catch((t2) => {
|
|
394
395
|
window.$message.error("导出失败..."), P(e2, n2);
|
|
@@ -405,10 +406,10 @@ function X() {
|
|
|
405
406
|
function Q(e2, t2) {
|
|
406
407
|
return new Promise((n2, o2) => {
|
|
407
408
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
|
|
408
|
-
let
|
|
409
|
-
c2 && "noOperation" === c2 && (
|
|
410
|
-
const
|
|
411
|
-
|
|
409
|
+
let l2 = false;
|
|
410
|
+
c2 && "noOperation" === c2 && (l2 = true), $(s2.code, s2.entity.data);
|
|
411
|
+
const u2 = te(s2, i2, "/dsc/commons", l2, a2, r2);
|
|
412
|
+
u2 ? u2.then((e3) => {
|
|
412
413
|
e3 && q(s2.code, s2.entity.data), ne(s2, i2, e3, "superPageRuntimeMessage.successfulSave", t2), n2(e3);
|
|
413
414
|
}).catch((e3) => {
|
|
414
415
|
o2(e3);
|
|
@@ -417,17 +418,17 @@ function Q(e2, t2) {
|
|
|
417
418
|
}
|
|
418
419
|
function Z(e2, t2, n2, i2, a2, r2, c2) {
|
|
419
420
|
var _a, _b, _c;
|
|
420
|
-
const
|
|
421
|
+
const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = S(t2, e2);
|
|
421
422
|
let m2 = c2;
|
|
422
423
|
m2 || (m2 = e2.entity.data);
|
|
423
|
-
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity:
|
|
424
|
+
const f2 = { entity: m2, tableName: e2.tableName, formNoRuleCode: e2.formNoRuleCode, isWorkflowEntity: l2, functionCode: d2, isPermission: p2 + "", listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
424
425
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
425
426
|
const g2 = t2.props.base.conversionCodes;
|
|
426
427
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
427
428
|
const C2 = De(t2);
|
|
428
429
|
C2 && (f2.autoSetValueData = C2);
|
|
429
430
|
const w2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
|
|
430
|
-
w2 && (f2.logSettingText = w2.join("")), f2.systemCode || (f2.systemCode =
|
|
431
|
+
w2 && (f2.logSettingText = w2.join("")), f2.systemCode || (f2.systemCode = u2);
|
|
431
432
|
const b2 = e2.beanName;
|
|
432
433
|
b2 && (f2.beanName = b2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
433
434
|
const T2 = Te(e2);
|
|
@@ -435,13 +436,13 @@ function Z(e2, t2, n2, i2, a2, r2, c2) {
|
|
|
435
436
|
const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
436
437
|
return k2 && (f2.currentOperation = k2), f2.isMobile = L(), f2;
|
|
437
438
|
}
|
|
438
|
-
function ee(e2, o2, s2, i2, a2, r2,
|
|
439
|
-
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Z(e2, o2, i2, a2, r2, null,
|
|
440
|
-
return
|
|
441
|
-
const
|
|
442
|
-
let
|
|
443
|
-
p3 = n(p3, e3, o3, r3),
|
|
444
|
-
return
|
|
439
|
+
function ee(e2, o2, s2, i2, a2, r2, l2, u2) {
|
|
440
|
+
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = Z(e2, o2, i2, a2, r2, null, l2);
|
|
441
|
+
return u2 && u2.tableName && (m2.tableName = u2.tableName), function(e3, o3, s3, i3, a3, r3) {
|
|
442
|
+
const l3 = t(o3, r3);
|
|
443
|
+
let u3, p3 = l3 + i3;
|
|
444
|
+
p3 = n(p3, e3, o3, r3), u3 = a3 && (a3.id || a3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
445
|
+
return u3;
|
|
445
446
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
446
447
|
}
|
|
447
448
|
function te(e2, t2, n2, o2, s2, i2) {
|
|
@@ -451,18 +452,17 @@ function ne(t2, n2, o2, s2, i2) {
|
|
|
451
452
|
const a2 = oe(t2, n2, i2);
|
|
452
453
|
if (a2 && "list" === a2) !function(t3, n3, o3, s3) {
|
|
453
454
|
let i3 = n3.props.base.successOperation;
|
|
454
|
-
const a3 = n3.props.base.isNeedValueMapping, r2 =
|
|
455
|
+
const a3 = n3.props.base.isNeedValueMapping, r2 = h(t3, n3);
|
|
455
456
|
i3 || re.includes(n3.name) || (i3 = "refresh");
|
|
456
|
-
if ("refresh" === i3) {
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
457
|
+
if ("refresh" === i3) if (r2) {
|
|
458
|
+
b(t3, r2).refresh();
|
|
459
|
+
} else console.error("tableUuid is empty");
|
|
460
|
+
else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
461
461
|
const s4 = e(t3.entity.page);
|
|
462
462
|
let i4 = o3;
|
|
463
463
|
i4 || (i4 = {}), Object.assign(s4, i4), ie(t3, n3, s4, a3);
|
|
464
464
|
}
|
|
465
|
-
s3 &&
|
|
465
|
+
s3 && u({ message: l().t(s3), type: "success", showClose: true });
|
|
466
466
|
}(t2, n2, o2, s2), t2.canClick = true;
|
|
467
467
|
else if (a2 && "form" === a2) !function(e2, t3, n3, o3) {
|
|
468
468
|
if (n3) {
|
|
@@ -476,7 +476,7 @@ function ne(t2, n2, o2, s2, i2) {
|
|
|
476
476
|
se(e2, t3, { ...e2.entity.page });
|
|
477
477
|
} else e2.canClick = true;
|
|
478
478
|
}
|
|
479
|
-
o3 &&
|
|
479
|
+
o3 && u({ message: l().t(o3), type: "success", showClose: true });
|
|
480
480
|
}(t2, n2, o2, s2);
|
|
481
481
|
else {
|
|
482
482
|
const e2 = n2.props.base.successOperation;
|
|
@@ -515,7 +515,7 @@ function ae(e2, t2, n2, o2, s2) {
|
|
|
515
515
|
O(n3.entity, r2, i3);
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
|
-
}(n2, s2, e2),
|
|
518
|
+
}(n2, s2, e2), y(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: i2 });
|
|
519
519
|
}
|
|
520
520
|
const re = ["dropdown"];
|
|
521
521
|
function ce(e2, t2, n2, o2) {
|
|
@@ -526,18 +526,18 @@ function ce(e2, t2, n2, o2) {
|
|
|
526
526
|
const i2 = oe(e2, t2);
|
|
527
527
|
if (i2 && "list" === i2 && !s2 && (s2 = "refresh"), "refresh" === s2) {
|
|
528
528
|
if (i2 && "list" === i2) {
|
|
529
|
-
const n3 =
|
|
529
|
+
const n3 = h(e2, t2);
|
|
530
530
|
if (n3) {
|
|
531
531
|
b(e2, n3).refresh();
|
|
532
|
-
}
|
|
532
|
+
} else console.error("tableUuid is empty");
|
|
533
533
|
} else if (i2 && "form" === i2) {
|
|
534
534
|
const t3 = e2.entity.data;
|
|
535
535
|
Ee(e2, t3.ID ? t3.ID : t3.id);
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
function
|
|
540
|
-
return new Promise((r2,
|
|
539
|
+
function le(e2, o2, s2, i2) {
|
|
540
|
+
return new Promise((r2, u2) => {
|
|
541
541
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, w2 = m2.props.base.successOperation;
|
|
542
542
|
let b2 = false;
|
|
543
543
|
w2 && "noOperation" === w2 && (b2 = true);
|
|
@@ -546,14 +546,14 @@ function ue(e2, o2, s2, i2) {
|
|
|
546
546
|
const t2 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
547
547
|
T2 = E(d2, t2);
|
|
548
548
|
} else $(d2.code, d2.entity.data);
|
|
549
|
-
const k2 = function(e3, o3, s3, i3, r3,
|
|
549
|
+
const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
|
|
550
550
|
return new Promise((g3, C3) => {
|
|
551
551
|
const w3 = o3.props.base.title, b3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
552
|
-
p.confirm(
|
|
553
|
-
const a2 = e3.systemCode,
|
|
552
|
+
p.confirm(l().t(b3, { name: w3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
553
|
+
const a2 = e3.systemCode, l2 = e3.backendUrl, p2 = Z(e3, o3, i3, r3, u3, m3, null);
|
|
554
554
|
p2.tableName = f3;
|
|
555
|
-
let d4 = t(
|
|
556
|
-
d4 = n(d4, a2,
|
|
555
|
+
let d4 = t(l2, e3.isTest) + s3;
|
|
556
|
+
d4 = n(d4, a2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
557
557
|
g3(e4);
|
|
558
558
|
}).catch((e4) => {
|
|
559
559
|
C3(e4);
|
|
@@ -566,11 +566,11 @@ function ue(e2, o2, s2, i2) {
|
|
|
566
566
|
k2 ? k2.then((e3) => {
|
|
567
567
|
!o2 && e3 && q(d2.code, d2.entity.data), ne(d2, m2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
|
|
568
568
|
}).catch((e3) => {
|
|
569
|
-
|
|
570
|
-
}) : (o2 || q(d2.code, d2.entity.data),
|
|
569
|
+
u2(e3);
|
|
570
|
+
}) : (o2 || q(d2.code, d2.entity.data), u2("request不存在"));
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
|
-
function
|
|
573
|
+
function ue(e2, s2) {
|
|
574
574
|
var _a, _b, _c;
|
|
575
575
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = E(i2, d2), f2 = new FormData();
|
|
576
576
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
@@ -586,25 +586,25 @@ function le(e2, s2) {
|
|
|
586
586
|
T2 && f2.append("formNoRuleCode", T2);
|
|
587
587
|
const k2 = e2.listCode;
|
|
588
588
|
k2 && f2.append("listCode", k2);
|
|
589
|
-
let
|
|
590
|
-
|
|
591
|
-
const
|
|
592
|
-
null !=
|
|
589
|
+
let y2 = false;
|
|
590
|
+
y2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", y2 + ""), f2.append("pageCode", i2.code);
|
|
591
|
+
const h2 = o(i2);
|
|
592
|
+
null != h2 && f2.append("isWorkflowEntity", h2 + "");
|
|
593
593
|
const v2 = S(a2, i2);
|
|
594
594
|
v2 && f2.append("functionCode", v2);
|
|
595
595
|
const I2 = Te(i2);
|
|
596
596
|
f2.append("additionalParamMapStr", JSON.stringify(I2));
|
|
597
597
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
598
598
|
f2.append("isPermission", R2 + "");
|
|
599
|
-
const
|
|
600
|
-
|
|
601
|
-
const
|
|
602
|
-
let x2 = t(
|
|
603
|
-
x2 = n(x2,
|
|
604
|
-
if (
|
|
599
|
+
const M2 = i2.systemCode;
|
|
600
|
+
M2 && f2.append("systemCode", M2);
|
|
601
|
+
const N2 = i2.backendUrl;
|
|
602
|
+
let x2 = t(N2, i2.isTest) + "/dsc/commons/import-data";
|
|
603
|
+
x2 = n(x2, M2, N2, i2.isTest), c.post(x2, f2).then((e3) => {
|
|
604
|
+
if (y2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(i2);
|
|
605
605
|
else {
|
|
606
606
|
let t2 = false;
|
|
607
|
-
e3 ? (t2 = false,
|
|
607
|
+
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ne(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
|
|
608
608
|
}
|
|
609
609
|
}).catch((e3) => {
|
|
610
610
|
});
|
|
@@ -613,8 +613,8 @@ function pe(e2, t2) {
|
|
|
613
613
|
const n2 = e2.props.base;
|
|
614
614
|
if (n2.conditionsForExecution && "" !== n2.conditionsForExecution) {
|
|
615
615
|
if ("one" === n2.conditionsForExecution) {
|
|
616
|
-
if (!t2 || 1 !== t2.length) return
|
|
617
|
-
} else if ("more" === n2.conditionsForExecution && (!t2 || t2.length <= 0)) return
|
|
616
|
+
if (!t2 || 1 !== t2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.onlyOneRecordCanBeselected") }) }), false;
|
|
617
|
+
} else if ("more" === n2.conditionsForExecution && (!t2 || t2.length <= 0)) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.thePreconditionOfTheButtonTo", { message: l().t("superPageRuntimeMessage.selectAtLeastOneRecord") }) }), false;
|
|
618
618
|
}
|
|
619
619
|
return true;
|
|
620
620
|
}
|
|
@@ -625,14 +625,14 @@ function de(e2) {
|
|
|
625
625
|
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
626
626
|
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
627
627
|
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);
|
|
628
|
-
const
|
|
629
|
-
|
|
630
|
-
const
|
|
631
|
-
|
|
628
|
+
const l2 = n2.props.base.conversionCodes;
|
|
629
|
+
l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2));
|
|
630
|
+
const u2 = De(n2);
|
|
631
|
+
u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
|
|
632
632
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
633
633
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
634
634
|
const d2 = Te(t2);
|
|
635
|
-
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
|
|
635
|
+
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] : console.error("ids参数类型错误"));
|
|
636
636
|
const m2 = n2.props.base.successOperation;
|
|
637
637
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
638
638
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -651,7 +651,7 @@ function me(e2, t2, n2, o2, s2) {
|
|
|
651
651
|
const e3 = s3.completeTaskTipType;
|
|
652
652
|
if (e3 && "MESSAGE" === e3) {
|
|
653
653
|
const e4 = s3.content;
|
|
654
|
-
return
|
|
654
|
+
return u({ showClose: true, type: "warning", message: e4 }), false;
|
|
655
655
|
}
|
|
656
656
|
}
|
|
657
657
|
if (e2.completeTaskParam) {
|
|
@@ -669,13 +669,13 @@ async function fe(e2, o2) {
|
|
|
669
669
|
if (s2) {
|
|
670
670
|
const r2 = e2.pageContext, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
671
671
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
672
|
-
if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void
|
|
672
|
+
if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
673
673
|
const g2 = de(e2);
|
|
674
674
|
g2.completeTaskParam = { operationResult: o2, taskId: r2.completeTaskParam ? r2.completeTaskParam.taskId : null, opinion: m2 || null };
|
|
675
675
|
const C2 = c.post(f2, g2);
|
|
676
676
|
$(r2.code, r2.entity.data), C2.then((t2) => {
|
|
677
677
|
let n2 = true;
|
|
678
|
-
t2 && (q(r2.code, r2.entity.data), n2 = me(t2, false, r2, e2, o2)), true === n2 &&
|
|
678
|
+
t2 && (q(r2.code, r2.entity.data), n2 = me(t2, false, r2, e2, o2)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulCompleteTask") }), i2(true);
|
|
679
679
|
}).catch((e3) => {
|
|
680
680
|
a2(e3);
|
|
681
681
|
});
|
|
@@ -691,9 +691,9 @@ function ge(e2) {
|
|
|
691
691
|
let n3 = false;
|
|
692
692
|
if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
|
|
693
693
|
const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
694
|
-
n3 =
|
|
694
|
+
n3 = M(t3, s2);
|
|
695
695
|
}
|
|
696
|
-
true === n3 ? (
|
|
696
|
+
true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
697
697
|
} else t2(true);
|
|
698
698
|
});
|
|
699
699
|
}
|
|
@@ -709,8 +709,8 @@ function we(e2) {
|
|
|
709
709
|
var _a, _b;
|
|
710
710
|
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, i2 = e2.configureObj, a2 = Te(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: a2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
711
711
|
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = be(e2);
|
|
712
|
-
const
|
|
713
|
-
return
|
|
712
|
+
const l2 = (_b = (_a = i2 == null ? void 0 : i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
713
|
+
return l2 && (c2.currentOperation = l2), c2.isMobile = L(), c2;
|
|
714
714
|
}
|
|
715
715
|
function be(e2) {
|
|
716
716
|
var _a, _b, _c;
|
|
@@ -722,7 +722,7 @@ function be(e2) {
|
|
|
722
722
|
t2 = o2.config;
|
|
723
723
|
break;
|
|
724
724
|
}
|
|
725
|
-
if (
|
|
725
|
+
if (M(e2.pageContext, o2.conditions)) {
|
|
726
726
|
t2 = o2.config;
|
|
727
727
|
break;
|
|
728
728
|
}
|
|
@@ -742,29 +742,29 @@ function ke(e2, o2) {
|
|
|
742
742
|
if (o2) {
|
|
743
743
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
744
744
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
745
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
745
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
746
746
|
const d2 = we(e2);
|
|
747
747
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
748
748
|
const m2 = c.post(p2, d2);
|
|
749
749
|
m2 && m2.then((e3) => {
|
|
750
|
-
|
|
750
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, i2, e3, null, false), P(s2, i2);
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function ye(e2, o2) {
|
|
755
755
|
if (o2) {
|
|
756
756
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
757
757
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
758
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
758
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
759
759
|
const d2 = we(e2);
|
|
760
760
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
761
761
|
const m2 = c.post(p2, d2);
|
|
762
762
|
m2 && m2.then((e3) => {
|
|
763
|
-
|
|
763
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, i2, e3, null, false), P(s2, i2);
|
|
764
764
|
});
|
|
765
765
|
}
|
|
766
766
|
}
|
|
767
|
-
async function
|
|
767
|
+
async function he(e2, o2) {
|
|
768
768
|
if (o2) {
|
|
769
769
|
const s2 = await function(e3) {
|
|
770
770
|
return new Promise((t2, n2) => {
|
|
@@ -775,9 +775,9 @@ async function ye(e2, o2) {
|
|
|
775
775
|
if (void 0 === n3 || true === n3) {
|
|
776
776
|
n3 = true;
|
|
777
777
|
const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
778
|
-
n3 =
|
|
778
|
+
n3 = M(t3, s3);
|
|
779
779
|
}
|
|
780
|
-
true === n3 ? p.prompt(
|
|
780
|
+
true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
781
781
|
t2(e4);
|
|
782
782
|
}).catch(() => {
|
|
783
783
|
t2(false);
|
|
@@ -788,12 +788,13 @@ async function ye(e2, o2) {
|
|
|
788
788
|
if (s2) {
|
|
789
789
|
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
790
790
|
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/copies";
|
|
791
|
-
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void
|
|
791
|
+
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
792
792
|
const m2 = we(e2);
|
|
793
793
|
m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
794
794
|
const f2 = c.post(d2, m2);
|
|
795
795
|
f2 && f2.then((e3) => {
|
|
796
|
-
|
|
796
|
+
var _a;
|
|
797
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), ne(i2, a2, { entity: (_a = i2.entity) == null ? void 0 : _a.data }, null), P(i2, a2);
|
|
797
798
|
});
|
|
798
799
|
}
|
|
799
800
|
}
|
|
@@ -808,11 +809,11 @@ async function Pe(e2, t2, o2, s2) {
|
|
|
808
809
|
const e3 = true === i2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : i2;
|
|
809
810
|
t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
|
|
810
811
|
}
|
|
811
|
-
if (!(o2 = n(o2, d2, m2, p2.isTest))) return void
|
|
812
|
+
if (!(o2 = n(o2, d2, m2, p2.isTest))) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
812
813
|
const f2 = c.post(o2, t2);
|
|
813
814
|
f2 && f2.then((t3) => {
|
|
814
815
|
let n2 = true;
|
|
815
|
-
t3 && (n2 = me(t3, false, p2, e2, null)), true === n2 &&
|
|
816
|
+
t3 && (n2 = me(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(s2) }), a2(true);
|
|
816
817
|
}).catch((e3) => {
|
|
817
818
|
r2(e3);
|
|
818
819
|
});
|
|
@@ -822,7 +823,7 @@ async function Pe(e2, t2, o2, s2) {
|
|
|
822
823
|
function ve(e2) {
|
|
823
824
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl, a2 = o2.completeTaskParam;
|
|
824
825
|
let r2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
825
|
-
if (r2 = n(r2, s2, i2, o2.isTest), !r2) return void
|
|
826
|
+
if (r2 = n(r2, s2, i2, o2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
826
827
|
const p2 = o2.code, d2 = Te(o2), m2 = { beanName: o2.beanName, additionalParamMap: d2, tableName: o2.tableName, functionCode: p2 + ".xxx", pageCode: o2.code };
|
|
827
828
|
return c.post(r2, m2);
|
|
828
829
|
}
|
|
@@ -837,13 +838,13 @@ function Ie(e2) {
|
|
|
837
838
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
838
839
|
const r2 = de(e2);
|
|
839
840
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
840
|
-
|
|
841
|
+
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
841
842
|
}
|
|
842
843
|
function Re(e2, o2) {
|
|
843
844
|
if (o2) {
|
|
844
845
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
845
846
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
846
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
847
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
847
848
|
const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = de(e2);
|
|
848
849
|
m2.ids = d2;
|
|
849
850
|
const f2 = c.post(p2, m2);
|
|
@@ -852,18 +853,18 @@ function Re(e2, o2) {
|
|
|
852
853
|
});
|
|
853
854
|
}
|
|
854
855
|
}
|
|
855
|
-
function
|
|
856
|
+
function Me(e2) {
|
|
856
857
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
857
858
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
858
859
|
const r2 = de(e2);
|
|
859
860
|
if (a2 = n(a2, s2, i2, o2.isTest), a2) return c.post(a2, r2);
|
|
860
|
-
|
|
861
|
+
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
861
862
|
}
|
|
862
|
-
function
|
|
863
|
+
function Ne(e2, o2) {
|
|
863
864
|
if (o2) {
|
|
864
865
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
865
866
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
866
|
-
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void
|
|
867
|
+
if (p2 = n(p2, a2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
867
868
|
const d2 = o2.map((e3) => e3.taskId), m2 = de(e2);
|
|
868
869
|
m2.ids = d2;
|
|
869
870
|
const f2 = c.post(p2, m2);
|
|
@@ -882,11 +883,11 @@ function xe(e2) {
|
|
|
882
883
|
}
|
|
883
884
|
return new Promise((t2, o3) => {
|
|
884
885
|
const s3 = e2.pageContext, r2 = s3.systemCode, p2 = s3.backendUrl;
|
|
885
|
-
if (i2 = n(i2, r2, p2, s3.isTest), !i2) return void
|
|
886
|
+
if (i2 = n(i2, r2, p2, s3.isTest), !i2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
886
887
|
const d2 = c.post(i2, a2);
|
|
887
888
|
d2 && d2.then((n2) => {
|
|
888
889
|
let o4 = true;
|
|
889
|
-
n2 && (o4 = me(n2, false, s3, e2, null)), true === o4 &&
|
|
890
|
+
n2 && (o4 = me(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
|
|
890
891
|
}).catch((e3) => {
|
|
891
892
|
o3(e3);
|
|
892
893
|
});
|
|
@@ -979,18 +980,18 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
979
980
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
980
981
|
e2.workflowOpinion.showOpinionBox = true;
|
|
981
982
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
982
|
-
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox =
|
|
983
|
+
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
|
|
983
984
|
}
|
|
984
985
|
let t3 = false;
|
|
985
986
|
if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
|
|
986
987
|
if (t3 = true, true === t3) {
|
|
987
988
|
const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
|
|
988
|
-
n3 && n3.length > 0 && (t3 =
|
|
989
|
+
n3 && n3.length > 0 && (t3 = M(e2, n3));
|
|
989
990
|
}
|
|
990
991
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
991
992
|
}
|
|
992
993
|
}
|
|
993
|
-
return a2;
|
|
994
|
+
return e2.workflowOpinion, a2;
|
|
994
995
|
}
|
|
995
996
|
function Ae(e2, t2, n2) {
|
|
996
997
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
@@ -1006,20 +1007,20 @@ function Ue(e2, n2, s2) {
|
|
|
1006
1007
|
e2.canClick = false;
|
|
1007
1008
|
return o(e2) ? function(e3, n3, o2) {
|
|
1008
1009
|
return new Promise((s3, i3) => {
|
|
1009
|
-
const a2 = e3.systemCode,
|
|
1010
|
+
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1010
1011
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1011
1012
|
void 0 === o2 || o2 ? (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);
|
|
1012
|
-
const f2 = p2 ? p2.taskId : null, C2 =
|
|
1013
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1013
|
+
const f2 = p2 ? p2.taskId : null, C2 = l2, w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1014
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1014
1015
|
const t2 = {};
|
|
1015
1016
|
e3.tableUuids.forEach((e4) => {
|
|
1016
|
-
const n4 = r(
|
|
1017
|
+
const n4 = r(l2, u2, e4);
|
|
1017
1018
|
t2[n4] = n4;
|
|
1018
1019
|
}), w2.listCodesMap = t2;
|
|
1019
1020
|
}
|
|
1020
1021
|
m2 && (w2.ids = je(m2)), f2 ? w2.taskId = f2 : d2 ? w2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap);
|
|
1021
1022
|
const b2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = B();
|
|
1022
|
-
T2.restorePageLoadState(),
|
|
1023
|
+
T2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
|
|
1023
1024
|
const k2 = H(e3.code, w2.id);
|
|
1024
1025
|
c.post(b2, w2).then(async (t2) => {
|
|
1025
1026
|
k2 && await _e(e3, w2.id, t2), e3.workflowOpinion = { showOpinionBox: false }, e3.definitionId = t2.definitionId, e3.entity.task = t2.taskParamMap, e3.dataTypeMaps = t2.dataTypeMap, me(t2, true, e3), e3.workflowRules = j(e3);
|
|
@@ -1055,32 +1056,32 @@ function Ue(e2, n2, s2) {
|
|
|
1055
1056
|
}
|
|
1056
1057
|
e5.actionPermissionMap = n5;
|
|
1057
1058
|
}(e4);
|
|
1058
|
-
}(e3), e3.canClick = true,
|
|
1059
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
|
|
1059
1060
|
}).catch((t2) => {
|
|
1060
1061
|
e3.canClick = true, i3(t2);
|
|
1061
1062
|
});
|
|
1062
1063
|
});
|
|
1063
1064
|
}(e2, n2, s2) : function(e3, n3, o2) {
|
|
1064
1065
|
return new Promise((s3, i3) => {
|
|
1065
|
-
const a2 = e3.systemCode,
|
|
1066
|
+
const a2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1066
1067
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1067
1068
|
void 0 === o2 || o2 ? (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);
|
|
1068
|
-
const f2 = p2 ? p2.taskId : null, C2 =
|
|
1069
|
-
if (!b2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), m2 && (b2.ids = je(m2)), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), f2 && (b2.taskId = f2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1069
|
+
const f2 = p2 ? p2.taskId : null, C2 = l2, w2 = t(e3.backendUrl, e3.isTest), b2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1070
|
+
if (!b2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), m2 && (b2.ids = je(m2)), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), f2 && (b2.taskId = f2), e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1070
1071
|
const t2 = {};
|
|
1071
1072
|
e3.tableUuids.forEach((e4) => {
|
|
1072
|
-
const n4 = r(
|
|
1073
|
+
const n4 = r(l2, u2, e4);
|
|
1073
1074
|
t2[n4] = n4;
|
|
1074
1075
|
}), b2.listCodesMap = t2;
|
|
1075
1076
|
}
|
|
1076
1077
|
e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
|
|
1077
1078
|
const T2 = w2 + "/dsc/commons/gets", k2 = B();
|
|
1078
|
-
k2.restorePageLoadState(),
|
|
1079
|
-
const
|
|
1079
|
+
k2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData");
|
|
1080
|
+
const h2 = H(e3.code, b2.id);
|
|
1080
1081
|
c.post(T2, b2).then(async (t2) => {
|
|
1081
|
-
t2 && (
|
|
1082
|
+
t2 && (h2 && await _e(e3, b2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
|
|
1082
1083
|
const n4 = e3.customRules, o3 = e3.rules, i4 = D(e3, n4, o3);
|
|
1083
|
-
e3.rules = i4, e3.canClick = true,
|
|
1084
|
+
e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
|
|
1084
1085
|
}).catch((t2) => {
|
|
1085
1086
|
e3.canClick = true, i3(t2);
|
|
1086
1087
|
});
|
|
@@ -1125,13 +1126,13 @@ function Fe(e2) {
|
|
|
1125
1126
|
e2.exportNoticeInfo && (e2.exportNoticeInfo.noticeInterval && clearInterval(e2.exportNoticeInfo.noticeInterval), e2.exportNoticeInfo.noticeComponent = null, e2.exportNoticeInfo.noticeInterval = null), e2.exportNoticeInfo = {}, $e(e2.exportNoticeInfo, e2.backendUrl, e2.code);
|
|
1126
1127
|
}
|
|
1127
1128
|
function Ve(e2, n2, o2) {
|
|
1128
|
-
e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title:
|
|
1129
|
+
e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title: l().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
|
|
1129
1130
|
"Success" === e2.lastFileTask.taskState || "Fail" === e2.lastFileTask.taskState || "PartSuccess" === e2.lastFileTask.taskState ? He(n2, o2, e2.lastFileTask.id, e2) : (e2.noticeComponent = null, null == e2.noticeInterval && $e(e2, n2, o2));
|
|
1130
1131
|
}, message: () => F(V, { isShow: true, backendUrl: n2, lastFileTask: e2.lastFileTask, onClickMsg(s2) {
|
|
1131
1132
|
s2.serverPath ? function(e3, n3, o3, s3, i2, a2) {
|
|
1132
1133
|
He(i2, a2, o3, s3);
|
|
1133
|
-
const r2 = f(), c2 = t(i2),
|
|
1134
|
-
window.open(
|
|
1134
|
+
const r2 = f(), c2 = t(i2), l2 = c2 + "/common/super-form/downloads?jwt=" + r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + n3;
|
|
1135
|
+
window.open(l2);
|
|
1135
1136
|
}(s2.fileName, s2.serverPath, s2.id, e2, n2, o2) : He(n2, o2, s2.id, e2), e2.noticeComponent.close(), e2.noticeComponent = null;
|
|
1136
1137
|
} }) }) : (null != e2.noticeComponent && (e2.noticeComponent.close(), e2.noticeComponent = null), e2.noticeInterval && (clearInterval(e2.noticeInterval), e2.noticeInterval = null));
|
|
1137
1138
|
}
|
|
@@ -1161,20 +1162,20 @@ export {
|
|
|
1161
1162
|
me as dealCompleteTaskParam,
|
|
1162
1163
|
Le as deleteChartCondition,
|
|
1163
1164
|
ke as doAddSigner,
|
|
1164
|
-
|
|
1165
|
+
ye as doAddTransactor,
|
|
1165
1166
|
Ce as doAssign,
|
|
1166
|
-
|
|
1167
|
+
he as doCreateCopyTask,
|
|
1167
1168
|
Fe as doFileTaskFunc,
|
|
1168
|
-
|
|
1169
|
+
ue as doImportFinally,
|
|
1169
1170
|
Re as doRemoveSigners,
|
|
1170
|
-
|
|
1171
|
+
Ne as doRemoveTransactors,
|
|
1171
1172
|
Se as doReturnTaskTo,
|
|
1172
1173
|
K as exportFormReport,
|
|
1173
1174
|
xe as extractWorkflowFunc,
|
|
1174
1175
|
Te as getAdditionalParamMap,
|
|
1175
1176
|
Ue as getFormData,
|
|
1176
1177
|
Ie as getRemoveSigner,
|
|
1177
|
-
|
|
1178
|
+
Me as getRemoveTransactor,
|
|
1178
1179
|
te as getSaveFormRequest,
|
|
1179
1180
|
ee as getSaveFormRequestWithRow,
|
|
1180
1181
|
ve as getTaskInformitions,
|