super-page-runtime 2.3.38 → 2.3.39-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/eventBus.d.ts +1 -0
- package/dist/es/components/runtime/utils/eventBus.js +6 -3
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +309 -293
- package/dist/es/components/runtime/utils/events/validator-util.js +273 -233
- package/dist/es/components/runtime/utils/page-init-util.js +26 -28
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- 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 +95 -100
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- 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 +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 +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 +9 -11
- 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 +33 -33
- 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 +6 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- 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 +42 -43
- 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 +4 -6
- 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 +4 -5
- 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 +8 -10
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- 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 +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +12 -13
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage as o, isArrayFn as s, packageTemplateFiles as
|
|
1
|
+
import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage as o, isArrayFn as s, packageTemplateFiles as a, upperFirstCase as i, getListCode as r } from "../common-util.js";
|
|
2
2
|
import c from "agilebuilder-ui/src/utils/request";
|
|
3
3
|
import { getI18n as l } from "agilebuilder-ui/src/utils/util";
|
|
4
4
|
import { ElMessage as u, ElMessageBox as p, ElNotification as d } from "element-plus";
|
|
@@ -8,14 +8,14 @@ import T from "../eventBus.js";
|
|
|
8
8
|
import k from "axios";
|
|
9
9
|
import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as I } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as v, getDefaultValue as
|
|
11
|
+
import { getPermissionCodes as v, getDefaultValue as x, getModelFields as R } from "../page-init-util.js";
|
|
12
12
|
import { caculateShowCondition as S, updateChartDatasources as M, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import U from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
16
16
|
import { functions as W } from "../api/page-expose-util.js";
|
|
17
|
-
import { usePageContextStore as
|
|
18
|
-
import { isMobileBrowser as
|
|
17
|
+
import { usePageContextStore as L } from "../page-store.js";
|
|
18
|
+
import { isMobileBrowser as B } from "agilebuilder-ui/src/utils/common-util";
|
|
19
19
|
import { h as F } from "vue";
|
|
20
20
|
import V from "../../views/assemblys/common/file-task-notice.vue.js";
|
|
21
21
|
import { cacheBackfillData as $, removeCacheFillData as q, hasBackfillData as H, getRealFillData as G, removeCacheFillDataById as J } from "./data-backfill-util.js";
|
|
@@ -43,18 +43,18 @@ const Y = { save: function(e2) {
|
|
|
43
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
|
+
ae(t2, e2.configureObj, n2, o2);
|
|
47
47
|
}, delete: function(e2) {
|
|
48
48
|
return function(e3) {
|
|
49
|
-
return new Promise((s2,
|
|
50
|
-
const
|
|
51
|
-
if (!
|
|
49
|
+
return new Promise((s2, a2) => {
|
|
50
|
+
const i2 = e3.ids;
|
|
51
|
+
if (!i2 || 0 === i2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
52
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
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 = A(r2, m2);
|
|
55
55
|
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
56
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
|
-
const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, C2 = o(r2), T2 = v(l2, r2), k2 = { ids:
|
|
57
|
+
const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, C2 = o(r2), T2 = v(l2, r2), k2 = { ids: i2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: C2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
58
58
|
r2.beanName && (k2.beanName = r2.beanName);
|
|
59
59
|
const h2 = l2.props.deleteLogicSetting;
|
|
60
60
|
h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
|
|
@@ -63,49 +63,53 @@ const Y = { save: function(e2) {
|
|
|
63
63
|
const P2 = l2.props.base.isSafeDelete;
|
|
64
64
|
P2 && (k2.isSafeDelete = P2);
|
|
65
65
|
const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
66
|
-
I2 && (k2.currentOperation = I2), k2.isMobile =
|
|
66
|
+
I2 && (k2.currentOperation = I2), k2.isMobile = B(), c.delete(g2, { data: k2 }).then((e4) => {
|
|
67
67
|
const t2 = w(r2, m2);
|
|
68
68
|
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
69
69
|
}).catch((e4) => {
|
|
70
|
-
|
|
70
|
+
a2(e4);
|
|
71
71
|
});
|
|
72
72
|
}).catch(() => {
|
|
73
|
-
|
|
73
|
+
a2();
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
}(e2);
|
|
77
77
|
}, downloadTemplate: function(e2) {
|
|
78
78
|
!function(e3) {
|
|
79
79
|
var _a, _b, _c;
|
|
80
|
-
const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base,
|
|
81
|
-
let r2,
|
|
82
|
-
|
|
83
|
-
const
|
|
84
|
-
let d2 = "?1=1";
|
|
85
|
-
r2 &&
|
|
86
|
-
const
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
n2.beanName && (
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
n2.tableName && (
|
|
95
|
-
n2.code && (
|
|
96
|
-
n2.version && (
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
const
|
|
103
|
-
|
|
80
|
+
const n2 = e3.pageContext, o2 = e3.configureObj, s2 = o2.props.base, i2 = a(s2.templateFiles, n2, o2);
|
|
81
|
+
let r2, l2;
|
|
82
|
+
i2 && i2.length > 0 && (r2 = i2[0].templateUuid, l2 = i2[0].templateName);
|
|
83
|
+
const u2 = n2.systemCode, p2 = n2.backendUrl;
|
|
84
|
+
let d2 = l2, m2 = "?1=1";
|
|
85
|
+
r2 && d2 && "undefined" !== r2 && "undefined" !== d2 && "null" !== r2 && "null" !== d2 ? m2 += "&fileName=" + encodeURI(r2) + "&showName=" + encodeURI(d2) : d2 ? m2 += "&showName=" + encodeURI(d2) : n2.label && (m2 += "&showName=" + encodeURI(n2.label) + ".xlsx", d2 = n2.label + ".xlsx");
|
|
86
|
+
const b2 = (_a = o2.props.base) == null ? void 0 : _a.logSetting;
|
|
87
|
+
b2 && (m2 += "&logSettingText=" + b2.join(""));
|
|
88
|
+
u2 && (m2 += "&systemCode=" + u2);
|
|
89
|
+
const C2 = e3.listCode;
|
|
90
|
+
C2 && (m2 += "&listCode=" + C2);
|
|
91
|
+
n2.beanName && (m2 += "&beanName=" + n2.beanName);
|
|
92
|
+
const w2 = v(o2, n2);
|
|
93
|
+
w2 && (m2 += "&functionCode=" + w2);
|
|
94
|
+
n2.tableName && (m2 += "&tableName=" + n2.tableName);
|
|
95
|
+
n2.code && (m2 += "&pageCode=" + n2.code);
|
|
96
|
+
n2.version && (m2 += "&pageVersion=" + n2.version);
|
|
97
|
+
const T2 = f();
|
|
98
|
+
T2 && (m2 += "&JWT=" + T2);
|
|
99
|
+
const k2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
100
|
+
k2 && (m2 += "¤tOperation=" + encodeURI(k2));
|
|
101
|
+
m2 += "&isMobile=" + B();
|
|
102
|
+
const h2 = "_RUN_CURRENT_ROLE", y2 = g(h2);
|
|
103
|
+
y2 && (m2 += "&" + h2 + "=" + y2);
|
|
104
104
|
if (s2) {
|
|
105
|
-
|
|
105
|
+
m2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
|
|
107
|
+
const P2 = t(p2, n2.isTest);
|
|
108
|
+
c.get(P2 + "/dsc/commons/download-files" + m2, { responseType: "blob" }).then((e4) => {
|
|
109
|
+
var _a2;
|
|
110
|
+
const t2 = d2 || "template.xlsx", n3 = { xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", xls: "application/vnd.ms-excel", docx: "application/vnd.openxmlformats-officedocument.wordprocessingml.document", doc: "application/msword", pdf: "application/pdf", csv: "text/csv" }[((_a2 = t2.split(".").pop()) == null ? void 0 : _a2.toLowerCase()) ?? "xlsx"] ?? "application/octet-stream", o3 = new Blob([e4], { type: n3 }), s3 = URL.createObjectURL(o3), a2 = document.createElement("a");
|
|
111
|
+
a2.style.display = "none", a2.href = s3, a2.setAttribute("download", t2), document.body.appendChild(a2), a2.click(), document.body.removeChild(a2), URL.revokeObjectURL(s3);
|
|
112
|
+
});
|
|
109
113
|
}(e2);
|
|
110
114
|
}, import: function(e2) {
|
|
111
115
|
const t2 = e2.pageContext.code + "_";
|
|
@@ -114,14 +118,14 @@ const Y = { save: function(e2) {
|
|
|
114
118
|
return function(e3) {
|
|
115
119
|
return new Promise((t2, n2) => {
|
|
116
120
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l;
|
|
117
|
-
const o2 = e3.pageContext, s2 = e3.configureObj,
|
|
121
|
+
const o2 = e3.pageContext, s2 = e3.configureObj, a2 = s2.props.base, i2 = e3.listCode, r2 = e3.selections, c2 = {};
|
|
118
122
|
r2 && r2.length > 0 && (c2.data = r2);
|
|
119
123
|
let l2 = o2.label;
|
|
120
124
|
l2 || (l2 = o2.code);
|
|
121
125
|
let u2 = false;
|
|
122
|
-
u2 = void 0 !==
|
|
123
|
-
const p2 = void 0 ===
|
|
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,
|
|
126
|
+
u2 = void 0 !== a2.isAsync && null !== a2.isAsync && a2.isAsync;
|
|
127
|
+
const p2 = void 0 === a2.isPermission || "true" === a2.isPermission || a2.isPermission, d2 = v(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;
|
|
128
|
+
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, i2, d2, null, f2, u2, o2.code, p2), u2 && setTimeout(() => {
|
|
125
129
|
Fe(o2);
|
|
126
130
|
}, 100);
|
|
127
131
|
});
|
|
@@ -135,14 +139,14 @@ const Y = { save: function(e2) {
|
|
|
135
139
|
}, workflowSave: function(e2) {
|
|
136
140
|
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
137
141
|
return new Promise((o2, s2) => {
|
|
138
|
-
const
|
|
139
|
-
let d2 = t(p2,
|
|
140
|
-
if (d2 = n(d2, r2, p2,
|
|
142
|
+
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
143
|
+
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons";
|
|
144
|
+
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
141
145
|
const m2 = de(e3);
|
|
142
146
|
let f2;
|
|
143
|
-
f2 =
|
|
147
|
+
f2 = i2.id || i2.ID ? c.put(d2, m2) : c.post(d2, m2), $(a2.code, i2), f2.then((t2) => {
|
|
144
148
|
let n2 = true;
|
|
145
|
-
t2 && (q(
|
|
149
|
+
t2 && (q(a2.code, i2), n2 = me(t2, false, a2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSave") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
146
150
|
}).catch((e4) => {
|
|
147
151
|
s2(e4);
|
|
148
152
|
});
|
|
@@ -151,19 +155,19 @@ const Y = { save: function(e2) {
|
|
|
151
155
|
}, workflowStart: function(e2) {
|
|
152
156
|
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
153
157
|
return new Promise((o2, s2) => {
|
|
154
|
-
const
|
|
155
|
-
if (
|
|
156
|
-
const e4 =
|
|
158
|
+
const a2 = e3.pageContext, i2 = a2.entity.data, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
159
|
+
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
160
|
+
const e4 = a2.fileuploadInfo[0];
|
|
157
161
|
let t2;
|
|
158
|
-
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ?
|
|
162
|
+
t2 = e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
159
163
|
} else {
|
|
160
|
-
let d2 = t(p2,
|
|
161
|
-
if (d2 = n(d2, r2, p2,
|
|
164
|
+
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
165
|
+
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
162
166
|
const m2 = de(e3);
|
|
163
167
|
let f2;
|
|
164
|
-
|
|
168
|
+
i2.workflow_id || i2.WORKFLOW_ID ? (d2 = t(p2, a2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, a2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), $(a2.code, i2), f2.then((t2) => {
|
|
165
169
|
let n2 = true;
|
|
166
|
-
t2 && (q(
|
|
170
|
+
t2 && (q(a2.code, i2), n2 = me(t2, false, a2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
167
171
|
}).catch((e4) => {
|
|
168
172
|
s2(e4);
|
|
169
173
|
});
|
|
@@ -173,24 +177,24 @@ const Y = { save: function(e2) {
|
|
|
173
177
|
}, submitProcess: function(e2) {
|
|
174
178
|
return T.$emit("clearTableAllStartEditing"), function(e3) {
|
|
175
179
|
return new Promise((o2, s2) => {
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
178
|
-
const e4 =
|
|
180
|
+
const a2 = e3.pageContext;
|
|
181
|
+
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
182
|
+
const e4 = a2.fileuploadInfo[0];
|
|
179
183
|
let t2;
|
|
180
|
-
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ?
|
|
184
|
+
t2 = e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
181
185
|
} else {
|
|
182
|
-
const
|
|
183
|
-
let p2 = t(r2,
|
|
184
|
-
if (p2 = n(p2,
|
|
186
|
+
const i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
187
|
+
let p2 = t(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
188
|
+
if (p2 = n(p2, i2, r2, a2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
185
189
|
const d2 = de(e3);
|
|
186
|
-
$(
|
|
190
|
+
$(a2.code, a2.entity.data);
|
|
187
191
|
const m2 = c.post(p2, d2);
|
|
188
192
|
m2 ? m2.then((t2) => {
|
|
189
193
|
let n2 = true;
|
|
190
|
-
t2 && (q(
|
|
194
|
+
t2 && (q(a2.code, a2.entity.data), n2 = me(t2, false, a2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
191
195
|
}).catch((e4) => {
|
|
192
196
|
s2(e4);
|
|
193
|
-
}) : q(
|
|
197
|
+
}) : q(a2.code, a2.entity.data);
|
|
194
198
|
}
|
|
195
199
|
});
|
|
196
200
|
}(e2);
|
|
@@ -225,23 +229,23 @@ const Y = { save: function(e2) {
|
|
|
225
229
|
}(e2);
|
|
226
230
|
}, drawTask: function(e2) {
|
|
227
231
|
return function(e3) {
|
|
228
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks",
|
|
229
|
-
return Pe(e3,
|
|
232
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = de(e3);
|
|
233
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulDrawTask");
|
|
230
234
|
}(e2);
|
|
231
235
|
}, abandonReceive: function(e2) {
|
|
232
236
|
return function(e3) {
|
|
233
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives",
|
|
234
|
-
return Pe(e3,
|
|
237
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = de(e3);
|
|
238
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
235
239
|
}(e2);
|
|
236
240
|
}, returnToPreviousTask: function(e2) {
|
|
237
241
|
return function(e3) {
|
|
238
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks",
|
|
239
|
-
return Pe(e3,
|
|
242
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = de(e3);
|
|
243
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
240
244
|
}(e2);
|
|
241
245
|
}, endInstance: function(e2) {
|
|
242
246
|
return function(e3) {
|
|
243
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance",
|
|
244
|
-
return Pe(e3,
|
|
247
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/end-instance", a2 = de(e3);
|
|
248
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulEndInstance");
|
|
245
249
|
}(e2);
|
|
246
250
|
}, returnTaskTo: function(e2) {
|
|
247
251
|
return function(e3) {
|
|
@@ -255,8 +259,8 @@ const Y = { save: function(e2) {
|
|
|
255
259
|
}(e2);
|
|
256
260
|
}, retrieveTask: function(e2) {
|
|
257
261
|
return function(e3) {
|
|
258
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves",
|
|
259
|
-
return Pe(e3,
|
|
262
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/retrieves", a2 = de(e3);
|
|
263
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulRetrieve");
|
|
260
264
|
}(e2);
|
|
261
265
|
}, extractWorkflow: function(e2) {
|
|
262
266
|
return Ne(e2);
|
|
@@ -267,32 +271,31 @@ const Y = { save: function(e2) {
|
|
|
267
271
|
}(e2);
|
|
268
272
|
}, cancelExtractWorkflow: function(e2) {
|
|
269
273
|
return function(e3) {
|
|
270
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract",
|
|
271
|
-
return Pe(e3,
|
|
274
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = de(e3);
|
|
275
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
272
276
|
}(e2);
|
|
273
277
|
}, approveExtractWorkflow: function(e2) {
|
|
274
278
|
return function(e3) {
|
|
275
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract",
|
|
276
|
-
return Pe(e3,
|
|
279
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = de(e3);
|
|
280
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulOperation");
|
|
277
281
|
}(e2);
|
|
278
282
|
}, refuseExtractWorkflow: function(e2) {
|
|
279
283
|
return function(e3) {
|
|
280
|
-
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract",
|
|
281
|
-
return Pe(e3,
|
|
284
|
+
const n2 = e3.pageContext, o2 = n2.backendUrl, s2 = t(o2, n2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = de(e3);
|
|
285
|
+
return Pe(e3, a2, s2, "superPageRuntimeMessage.successfulOperation");
|
|
282
286
|
}(e2);
|
|
283
287
|
}, viewDetail: function(e2) {
|
|
284
288
|
}, lineEditCreate: function(e2) {
|
|
285
289
|
return function(e3) {
|
|
286
290
|
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = w(t2, n2);
|
|
287
|
-
o2 && (e3.getDefaultValueFunc =
|
|
291
|
+
o2 && (e3.getDefaultValueFunc = x, o2.createRow(e3.listCode, {}, e3));
|
|
288
292
|
}(e2);
|
|
289
293
|
}, printLabel: function(e2) {
|
|
290
294
|
return function(e3) {
|
|
291
295
|
let t2 = null;
|
|
292
296
|
try {
|
|
293
297
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
294
|
-
} catch (
|
|
295
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
298
|
+
} catch (e4) {
|
|
296
299
|
}
|
|
297
300
|
U.printLabel(e3, t2);
|
|
298
301
|
}(e2);
|
|
@@ -308,10 +311,10 @@ const Y = { save: function(e2) {
|
|
|
308
311
|
const n2 = e3.pageContext, o2 = n2.allChartUuids;
|
|
309
312
|
if (!o2 || 0 == o2.length) return;
|
|
310
313
|
const s2 = e3.configureObj;
|
|
311
|
-
let
|
|
312
|
-
s2 && s2.runtime && (
|
|
313
|
-
const
|
|
314
|
-
|
|
314
|
+
let a2 = null;
|
|
315
|
+
s2 && s2.runtime && (a2 = s2.runtime.props);
|
|
316
|
+
const i2 = a2 ? a2.state : void 0;
|
|
317
|
+
a2 && (a2.state = "disabled");
|
|
315
318
|
const r2 = [];
|
|
316
319
|
for (let e4 = 0; e4 < o2.length; e4++) {
|
|
317
320
|
const t2 = o2[e4], s3 = w(n2, t2);
|
|
@@ -328,14 +331,14 @@ const Y = { save: function(e2) {
|
|
|
328
331
|
u2.additionalParamMap = p2;
|
|
329
332
|
const d2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
330
333
|
d2 && (u2.currentOperation = d2);
|
|
331
|
-
u2.isMobile =
|
|
334
|
+
u2.isMobile = B(), 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("-~") : "";
|
|
332
335
|
const m2 = n2.backendUrl, f2 = t(m2, n2.isTest) + "/dsc/commons/exportChart";
|
|
333
336
|
X();
|
|
334
337
|
k.post(f2, u2, { responseType: "blob" }).then((e4) => {
|
|
335
338
|
const t2 = document.createElement("a");
|
|
336
339
|
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);
|
|
337
340
|
}).finally(() => {
|
|
338
|
-
|
|
341
|
+
a2 && (a2.state = i2);
|
|
339
342
|
});
|
|
340
343
|
}(e2);
|
|
341
344
|
}, saveQueryCharts: function(e2) {
|
|
@@ -360,36 +363,46 @@ function z(e2) {
|
|
|
360
363
|
const o2 = e2.configureObj;
|
|
361
364
|
let s2 = null;
|
|
362
365
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
363
|
-
const
|
|
366
|
+
const a2 = s2 ? s2.state : void 0;
|
|
364
367
|
s2 && (s2.state = "disabled"), M(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
365
|
-
s2 && (s2.state =
|
|
368
|
+
s2 && (s2.state = a2);
|
|
366
369
|
}).catch(() => {
|
|
367
|
-
s2 && (s2.state =
|
|
370
|
+
s2 && (s2.state = a2);
|
|
368
371
|
});
|
|
369
372
|
}
|
|
370
|
-
function K(e2, n2, s2,
|
|
373
|
+
function K(e2, n2, s2, a2) {
|
|
371
374
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
372
375
|
e2.clickUuid = n2.uuid, e2.canClick = false;
|
|
373
|
-
const
|
|
376
|
+
const i2 = 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), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, C2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: v(n2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
377
|
+
if (e2.tableUuids && e2.tableUuids.length > 0) {
|
|
378
|
+
const t2 = {};
|
|
379
|
+
e2.tableUuids.forEach((n3) => {
|
|
380
|
+
const o2 = w(e2, n3);
|
|
381
|
+
if (o2) {
|
|
382
|
+
const e3 = o2.getConfigure().code, n4 = o2.getSuperGridRef().columns;
|
|
383
|
+
n4 && n4.length > 0 && (t2[e3] = n4);
|
|
384
|
+
}
|
|
385
|
+
}), C2.subTableColumns = t2;
|
|
386
|
+
}
|
|
374
387
|
l2 && (C2.logSettingText = l2.join(""));
|
|
375
|
-
const
|
|
376
|
-
|
|
377
|
-
const
|
|
378
|
-
let
|
|
379
|
-
C2.additionalParamMap =
|
|
380
|
-
return new Promise((
|
|
388
|
+
const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
389
|
+
T2 && (C2.currentOperation = T2), C2.isMobile = B();
|
|
390
|
+
const h2 = Te(e2);
|
|
391
|
+
let y2;
|
|
392
|
+
C2.additionalParamMap = h2, C2.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) + "", C2.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 = a2 ? function(e3, n3, o2, s3) {
|
|
393
|
+
return new Promise((a3, i3) => {
|
|
381
394
|
const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
|
|
382
395
|
X();
|
|
383
396
|
const c3 = k.post(r3, o2, { headers: { "content-type": "application/json" }, responseType: "blob" });
|
|
384
397
|
window.$message.info("正在导出中..."), c3.then((t2) => {
|
|
385
398
|
const n4 = new Blob([t2.data]), o3 = document.createElement("a");
|
|
386
|
-
o3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(n4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3),
|
|
399
|
+
o3.download = e3.substring(0, e3.lastIndexOf(".")) + ".pdf", o3.style.display = "none", o3.target = "_blank", o3.href = URL.createObjectURL(n4), document.body.appendChild(o3), o3.click(), URL.revokeObjectURL(o3.href), document.body.removeChild(o3), a3(true);
|
|
387
400
|
}).catch((e4) => {
|
|
388
|
-
|
|
401
|
+
i3(e4);
|
|
389
402
|
});
|
|
390
403
|
});
|
|
391
404
|
}(r2, f2, C2, e2.isTest) : function(e3, n3, o2, s3) {
|
|
392
|
-
return new Promise((
|
|
405
|
+
return new Promise((a3, i3) => {
|
|
393
406
|
const r3 = t(n3, s3) + "/dsc/commons/export-reports";
|
|
394
407
|
X();
|
|
395
408
|
k.post(r3, o2, { responseType: "blob" }).then((t2) => {
|
|
@@ -397,12 +410,12 @@ function K(e2, n2, s2, i2) {
|
|
|
397
410
|
let o3 = "报告.xlsx";
|
|
398
411
|
e3 && (o3 = e3);
|
|
399
412
|
const s4 = document.createElement("a");
|
|
400
|
-
s4.download = o3, s4.style.display = "none", s4.target = "_blank", s4.href = URL.createObjectURL(n4), document.body.appendChild(s4), s4.click(), URL.revokeObjectURL(s4.href), document.body.removeChild(s4),
|
|
413
|
+
s4.download = o3, s4.style.display = "none", s4.target = "_blank", s4.href = URL.createObjectURL(n4), document.body.appendChild(s4), s4.click(), URL.revokeObjectURL(s4.href), document.body.removeChild(s4), a3(true);
|
|
401
414
|
}).catch((e4) => {
|
|
402
|
-
|
|
415
|
+
i3(e4);
|
|
403
416
|
});
|
|
404
417
|
});
|
|
405
|
-
}(r2, f2, C2, e2.isTest),
|
|
418
|
+
}(r2, f2, C2, e2.isTest), y2 && y2.then(() => {
|
|
406
419
|
P(e2, n2);
|
|
407
420
|
}).catch((t2) => {
|
|
408
421
|
window.$message.error("导出失败..."), P(e2, n2);
|
|
@@ -418,7 +431,7 @@ function X() {
|
|
|
418
431
|
}
|
|
419
432
|
function Q(e2, t2) {
|
|
420
433
|
return new Promise((n2, o2) => {
|
|
421
|
-
const s2 = e2.pageContext,
|
|
434
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
422
435
|
let p2 = false;
|
|
423
436
|
if (c2 && "noOperation" === c2 && (p2 = true), s2.fileuploadInfo && s2.fileuploadInfo.length > 0) {
|
|
424
437
|
const e3 = s2.fileuploadInfo[0];
|
|
@@ -426,16 +439,16 @@ function Q(e2, t2) {
|
|
|
426
439
|
t3 = e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t3, type: "warning", showClose: true }), n2(false);
|
|
427
440
|
} else {
|
|
428
441
|
$(s2.code, s2.entity.data);
|
|
429
|
-
const e3 = te(s2,
|
|
442
|
+
const e3 = te(s2, a2, "/dsc/commons", p2, i2, r2);
|
|
430
443
|
e3 ? e3.then((e4) => {
|
|
431
|
-
e4 && q(s2.code, s2.entity.data), ne(s2,
|
|
444
|
+
e4 && q(s2.code, s2.entity.data), ne(s2, a2, e4, "superPageRuntimeMessage.successfulSave", t2), n2(e4);
|
|
432
445
|
}).catch((e4) => {
|
|
433
446
|
o2(e4);
|
|
434
447
|
}) : (q(s2.code, s2.entity.data), o2("保存时request不存在"));
|
|
435
448
|
}
|
|
436
449
|
});
|
|
437
450
|
}
|
|
438
|
-
function Z(e2, t2, n2,
|
|
451
|
+
function Z(e2, t2, n2, a2, i2, r2, c2) {
|
|
439
452
|
var _a, _b, _c;
|
|
440
453
|
const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = v(t2, e2);
|
|
441
454
|
let m2 = c2;
|
|
@@ -449,41 +462,42 @@ function Z(e2, t2, n2, i2, a2, r2, c2) {
|
|
|
449
462
|
const C2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
|
|
450
463
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = u2);
|
|
451
464
|
const w2 = e2.beanName;
|
|
452
|
-
w2 && (f2.beanName = w2),
|
|
465
|
+
w2 && (f2.beanName = w2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
453
466
|
const T2 = Te(e2);
|
|
454
467
|
f2.additionalParamMap = T2, void 0 !== n2 && (f2.unControlVersion = n2);
|
|
455
468
|
const k2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
456
|
-
return k2 && (f2.currentOperation = k2), f2.isMobile =
|
|
469
|
+
return k2 && (f2.currentOperation = k2), f2.isMobile = B(), f2;
|
|
457
470
|
}
|
|
458
|
-
function ee(e2, o2, s2,
|
|
459
|
-
const d2 = e2.systemCode, m2 = e2.backendUrl, f2 = Z(e2, o2,
|
|
460
|
-
return u2 && u2.tableName && (f2.tableName = u2.tableName), p2 && (f2.isWorkflowEntity = false), function(e3, o3, s3,
|
|
471
|
+
function ee(e2, o2, s2, a2, i2, r2, l2, u2, p2) {
|
|
472
|
+
const d2 = e2.systemCode, m2 = e2.backendUrl, f2 = Z(e2, o2, a2, i2, r2, null, l2);
|
|
473
|
+
return u2 && u2.tableName && (f2.tableName = u2.tableName), p2 && (f2.isWorkflowEntity = false), function(e3, o3, s3, a3, i3, r3) {
|
|
461
474
|
const l3 = t(o3, r3);
|
|
462
|
-
let u3, p3 = l3 +
|
|
463
|
-
p3 = n(p3, e3, o3, r3), u3 =
|
|
475
|
+
let u3, p3 = l3 + a3;
|
|
476
|
+
p3 = n(p3, e3, o3, r3), u3 = i3 && (i3.id || i3.ID) ? c.put(p3, s3) : c.post(p3, s3);
|
|
464
477
|
return u3;
|
|
465
478
|
}(d2, m2, f2, s2, l2, e2.isTest);
|
|
466
479
|
}
|
|
467
|
-
function te(e2, t2, n2, o2, s2,
|
|
468
|
-
return ee(e2, t2, n2, o2, s2,
|
|
480
|
+
function te(e2, t2, n2, o2, s2, a2) {
|
|
481
|
+
return ee(e2, t2, n2, o2, s2, a2, null, null);
|
|
469
482
|
}
|
|
470
|
-
function ne(t2, n2, o2, s2,
|
|
471
|
-
const
|
|
472
|
-
if (
|
|
473
|
-
let
|
|
474
|
-
const
|
|
475
|
-
|
|
476
|
-
if ("refresh" ===
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
483
|
+
function ne(t2, n2, o2, s2, a2) {
|
|
484
|
+
const i2 = oe(t2, n2, a2);
|
|
485
|
+
if (i2 && "list" === i2) !function(t3, n3, o3, s3) {
|
|
486
|
+
let a3 = n3.props.base.successOperation;
|
|
487
|
+
const i3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
|
|
488
|
+
a3 || re.includes(n3.name) || (a3 = "refresh");
|
|
489
|
+
if ("refresh" === a3) {
|
|
490
|
+
if (r2) {
|
|
491
|
+
w(t3, r2).refresh();
|
|
492
|
+
}
|
|
493
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
480
494
|
const s4 = e(t3.entity.page);
|
|
481
|
-
let
|
|
482
|
-
|
|
495
|
+
let a4 = o3;
|
|
496
|
+
a4 || (a4 = {}), Object.assign(s4, a4), ae(t3, n3, s4, i3);
|
|
483
497
|
}
|
|
484
498
|
s3 && u({ message: l().t(s3), type: "success", showClose: true });
|
|
485
499
|
}(t2, n2, o2, s2), t2.canClick = true;
|
|
486
|
-
else if (
|
|
500
|
+
else if (i2 && "form" === i2) !function(e2, t3, n3, o3) {
|
|
487
501
|
if (n3) {
|
|
488
502
|
const o4 = n3;
|
|
489
503
|
let s3;
|
|
@@ -510,31 +524,31 @@ function se(e2, t2, n2) {
|
|
|
510
524
|
const o2 = t2.props.base.successOperation;
|
|
511
525
|
if (!o2 || null === o2) return;
|
|
512
526
|
const s2 = t2.props.base.isNeedValueMapping;
|
|
513
|
-
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? Ae(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (
|
|
527
|
+
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? Ae(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ae(e2, t2, n2, s2), e2.canClick = true);
|
|
514
528
|
}
|
|
515
|
-
function
|
|
529
|
+
function ae(e2, t2, n2, o2) {
|
|
516
530
|
const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
517
531
|
if ("openWindow" === s2 || "newTab" === s2) window.parent ? window.parent.close() : window.close();
|
|
518
532
|
else {
|
|
519
|
-
const
|
|
520
|
-
T.$
|
|
533
|
+
const a2 = e2.tableName, i2 = void 0 !== o2 && true === o2 && n2 && void 0 !== n2, r2 = (e2.entity && e2.entity.request ? e2.entity.request.parentPageCode : null) + "_close-dialog";
|
|
534
|
+
T.$has(r2) ? T.$emit(r2, { isNeedValueMapping: i2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
|
|
521
535
|
}
|
|
522
536
|
}
|
|
523
|
-
function
|
|
537
|
+
function ie(e2, t2, n2, o2, s2) {
|
|
524
538
|
var _a;
|
|
525
539
|
s2 || (s2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (s2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
526
|
-
const
|
|
540
|
+
const a2 = e2.tableName;
|
|
527
541
|
!function(e3, t3, n3) {
|
|
528
542
|
if (e3 && null !== e3 && t3) {
|
|
529
543
|
let o3 = e3;
|
|
530
544
|
Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
|
|
531
545
|
const t4 = e4.source;
|
|
532
546
|
if (!t4) return;
|
|
533
|
-
const s3 = t4.split("."),
|
|
534
|
-
O(n3.entity, r2,
|
|
547
|
+
const s3 = t4.split("."), a3 = N(o3, s3), i2 = e4.target, r2 = R(null, i2);
|
|
548
|
+
O(n3.entity, r2, a3);
|
|
535
549
|
});
|
|
536
550
|
}
|
|
537
|
-
}(n2, s2, e2), h(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName:
|
|
551
|
+
}(n2, s2, e2), h(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: a2 });
|
|
538
552
|
}
|
|
539
553
|
const re = ["dropdown"];
|
|
540
554
|
function ce(e2, t2, n2, o2) {
|
|
@@ -542,26 +556,26 @@ function ce(e2, t2, n2, o2) {
|
|
|
542
556
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
543
557
|
let s2 = o2;
|
|
544
558
|
s2 || (s2 = n2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
545
|
-
const
|
|
546
|
-
if (
|
|
547
|
-
if (
|
|
559
|
+
const a2 = oe(e2, t2);
|
|
560
|
+
if (a2 && "list" === a2 && !s2 && (s2 = "refresh"), "refresh" === s2) {
|
|
561
|
+
if (a2 && "list" === a2) {
|
|
548
562
|
const n3 = y(e2, t2);
|
|
549
563
|
if (n3) {
|
|
550
564
|
w(e2, n3).refresh();
|
|
551
|
-
}
|
|
552
|
-
} else if (
|
|
565
|
+
}
|
|
566
|
+
} else if (a2 && "form" === a2) {
|
|
553
567
|
const t3 = e2.entity.data;
|
|
554
568
|
Ae(e2, t3.ID ? t3.ID : t3.id);
|
|
555
569
|
}
|
|
556
570
|
}
|
|
557
571
|
}
|
|
558
|
-
function le(e2, o2, s2,
|
|
572
|
+
function le(e2, o2, s2, a2) {
|
|
559
573
|
return new Promise((r2, d2) => {
|
|
560
574
|
const m2 = e2.pageContext, f2 = e2.configureObj;
|
|
561
575
|
if (m2.fileuploadInfo && m2.fileuploadInfo.length > 0) {
|
|
562
576
|
const e3 = m2.fileuploadInfo[0];
|
|
563
577
|
let t2;
|
|
564
|
-
e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ?
|
|
578
|
+
t2 = e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), r2(false);
|
|
565
579
|
} else {
|
|
566
580
|
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = f2.props.base.successOperation;
|
|
567
581
|
let w2 = false;
|
|
@@ -571,14 +585,14 @@ function le(e2, o2, s2, i2) {
|
|
|
571
585
|
const t2 = f2.props.base.tableUuid ? f2.props.base.tableUuid : e2.tableUuid;
|
|
572
586
|
T2 = A(m2, t2);
|
|
573
587
|
} else $(m2.code, m2.entity.data);
|
|
574
|
-
const k2 = function(e3, o3, s3,
|
|
588
|
+
const k2 = function(e3, o3, s3, a3, r3, u3, d3, m3, f3) {
|
|
575
589
|
return new Promise((g3, b3) => {
|
|
576
|
-
const C3 = o3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" +
|
|
590
|
+
const C3 = o3.props.base.title, w3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
577
591
|
p.confirm(l().t(w3, { name: C3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
578
|
-
const
|
|
592
|
+
const i2 = e3.systemCode, l2 = e3.backendUrl, p2 = Z(e3, o3, a3, r3, u3, m3, null);
|
|
579
593
|
p2.tableName = f3;
|
|
580
594
|
let d4 = t(l2, e3.isTest) + s3;
|
|
581
|
-
d4 = n(d4,
|
|
595
|
+
d4 = n(d4, i2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
582
596
|
g3(e4);
|
|
583
597
|
}).catch((e4) => {
|
|
584
598
|
b3(e4);
|
|
@@ -587,7 +601,7 @@ function le(e2, o2, s2, i2) {
|
|
|
587
601
|
b3("点击了取消按钮");
|
|
588
602
|
});
|
|
589
603
|
});
|
|
590
|
-
}(m2, f2,
|
|
604
|
+
}(m2, f2, a2, w2, u2, g2, s2, b2, T2);
|
|
591
605
|
k2 ? k2.then((e3) => {
|
|
592
606
|
!o2 && e3 && q(m2.code, m2.entity.data), ne(m2, f2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
|
|
593
607
|
}).catch((e3) => {
|
|
@@ -598,39 +612,39 @@ function le(e2, o2, s2, i2) {
|
|
|
598
612
|
}
|
|
599
613
|
function ue(e2, s2) {
|
|
600
614
|
var _a, _b, _c;
|
|
601
|
-
const
|
|
615
|
+
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 = A(a2, d2), f2 = new FormData();
|
|
602
616
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
603
|
-
const g2 = (_b = (_a =
|
|
604
|
-
g2 && f2.append("currentOperation", g2), f2.append("isMobile",
|
|
617
|
+
const g2 = (_b = (_a = i2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
618
|
+
g2 && f2.append("currentOperation", g2), f2.append("isMobile", B()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
605
619
|
const b2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
|
|
606
620
|
b2 && f2.append("importDuplicateRule", b2);
|
|
607
|
-
const C2 =
|
|
621
|
+
const C2 = a2.judgeHeavyList;
|
|
608
622
|
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
609
|
-
const w2 = De(
|
|
623
|
+
const w2 = De(i2);
|
|
610
624
|
w2 && f2.append("autoSetValueData", w2);
|
|
611
|
-
const T2 =
|
|
625
|
+
const T2 = a2.formNoRuleCode;
|
|
612
626
|
T2 && f2.append("formNoRuleCode", T2);
|
|
613
627
|
const k2 = e2.listCode;
|
|
614
628
|
k2 && f2.append("listCode", k2);
|
|
615
629
|
let h2 = false;
|
|
616
|
-
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode",
|
|
617
|
-
const y2 = o(
|
|
630
|
+
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", a2.code);
|
|
631
|
+
const y2 = o(a2);
|
|
618
632
|
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
619
|
-
const I2 = v(
|
|
633
|
+
const I2 = v(i2, a2);
|
|
620
634
|
I2 && f2.append("functionCode", I2);
|
|
621
|
-
const
|
|
622
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
623
|
-
const
|
|
624
|
-
f2.append("isPermission",
|
|
625
|
-
const S2 =
|
|
635
|
+
const x2 = Te(a2);
|
|
636
|
+
f2.append("additionalParamMapStr", JSON.stringify(x2));
|
|
637
|
+
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
638
|
+
f2.append("isPermission", R2 + "");
|
|
639
|
+
const S2 = a2.systemCode;
|
|
626
640
|
S2 && f2.append("systemCode", S2);
|
|
627
|
-
const M2 =
|
|
628
|
-
let N2 = t(M2,
|
|
629
|
-
N2 = n(N2, S2, M2,
|
|
630
|
-
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(
|
|
641
|
+
const M2 = a2.backendUrl;
|
|
642
|
+
let N2 = t(M2, a2.isTest) + "/dsc/commons/import-data";
|
|
643
|
+
N2 = n(N2, S2, M2, a2.isTest), c.post(N2, f2).then((e3) => {
|
|
644
|
+
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
|
|
631
645
|
else {
|
|
632
646
|
let t2 = false;
|
|
633
|
-
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(
|
|
647
|
+
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(a2, i2, e3, null, true), a2.result = t2, P(a2, i2);
|
|
634
648
|
}
|
|
635
649
|
}).catch((e3) => {
|
|
636
650
|
});
|
|
@@ -646,26 +660,26 @@ function pe(e2, t2) {
|
|
|
646
660
|
}
|
|
647
661
|
function de(e2) {
|
|
648
662
|
var _a, _b, _c;
|
|
649
|
-
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data,
|
|
663
|
+
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, a2 = t2.systemCode, i2 = t2.code;
|
|
650
664
|
let r2 = v(n2, t2);
|
|
651
|
-
r2 || (r2 =
|
|
652
|
-
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode:
|
|
665
|
+
r2 || (r2 = i2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
666
|
+
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 };
|
|
653
667
|
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);
|
|
654
668
|
const l2 = n2.props.base.conversionCodes;
|
|
655
669
|
l2 && (s(l2) ? c2.dataConversionRule = l2.join(",") : "string" == typeof l2 && (c2.dataConversionRule = l2));
|
|
656
670
|
const u2 = De(n2);
|
|
657
671
|
u2 && (c2.autoSetValueData = u2), t2.beanName && (c2.beanName = t2.beanName);
|
|
658
672
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
659
|
-
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode =
|
|
673
|
+
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
660
674
|
const d2 = Te(t2);
|
|
661
|
-
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
|
|
675
|
+
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]));
|
|
662
676
|
const m2 = n2.props.base.successOperation;
|
|
663
677
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
664
678
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
665
|
-
return f2 && (c2.currentOperation = f2), c2.isMobile =
|
|
679
|
+
return f2 && (c2.currentOperation = f2), c2.isMobile = B(), c2;
|
|
666
680
|
}
|
|
667
681
|
function me(e2, t2, n2, o2, s2) {
|
|
668
|
-
const
|
|
682
|
+
const a2 = n2.code, i2 = n2.version;
|
|
669
683
|
let r2;
|
|
670
684
|
if (e2) {
|
|
671
685
|
t2 && (n2.initFormNo = e2.formNo, n2.emailTemplateCode = e2.emailTemplateCode), e2.entity && (n2.entity.data = e2.entity, function(e3, t3) {
|
|
@@ -682,21 +696,21 @@ function me(e2, t2, n2, o2, s2) {
|
|
|
682
696
|
}
|
|
683
697
|
if (e2.completeTaskParam) {
|
|
684
698
|
const t3 = e2.completeTaskParam;
|
|
685
|
-
r2 = t3.taskId, o2 && (o2.taskId = r2), I(
|
|
699
|
+
r2 = t3.taskId, o2 && (o2.taskId = r2), I(a2, i2, "_completeTaskParam", t3), n2.fieldPermissions = t3.fieldPermissions, n2.actionPermissions = t3.actionPermissions, n2.workflowButtonComponent = t3.buttonComponent, n2.completeTaskParam = t3, n2.completeTaskParam.opinion = null;
|
|
686
700
|
}
|
|
687
|
-
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap, I(
|
|
701
|
+
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap, I(a2, i2, "_currentActivityName", e2.taskName);
|
|
688
702
|
}
|
|
689
703
|
return o2 && (o2.operationResult = s2), t2 || ne(n2, o2.configureObj, e2, null, false), true;
|
|
690
704
|
}
|
|
691
705
|
async function fe(e2, o2) {
|
|
692
706
|
const s2 = await ge(e2);
|
|
693
|
-
return new Promise((
|
|
707
|
+
return new Promise((a2, i2) => {
|
|
694
708
|
var _a;
|
|
695
709
|
const r2 = e2.pageContext;
|
|
696
710
|
if (r2.fileuploadInfo && r2.fileuploadInfo.length > 0) {
|
|
697
711
|
const e3 = r2.fileuploadInfo[0];
|
|
698
712
|
let t2;
|
|
699
|
-
e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ?
|
|
713
|
+
t2 = e3.isTable && e3.tableTitle && void 0 !== e3.rowIndex ? l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e3.label, tableTitle: e3.tableTitle, rowIndex: e3.rowIndex + 1 }) : l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e3.label }), u({ message: t2, type: "warning", showClose: true }), a2(false);
|
|
700
714
|
} else if (s2) {
|
|
701
715
|
const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
702
716
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
@@ -706,11 +720,11 @@ async function fe(e2, o2) {
|
|
|
706
720
|
const b2 = c.post(f2, g2);
|
|
707
721
|
$(r2.code, r2.entity.data), b2.then((t2) => {
|
|
708
722
|
let n2 = true;
|
|
709
|
-
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") }),
|
|
723
|
+
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") }), a2(true);
|
|
710
724
|
}).catch((e3) => {
|
|
711
|
-
|
|
725
|
+
i2(e3);
|
|
712
726
|
});
|
|
713
|
-
} else
|
|
727
|
+
} else a2(true);
|
|
714
728
|
});
|
|
715
729
|
}
|
|
716
730
|
function ge(e2) {
|
|
@@ -730,18 +744,18 @@ function ge(e2) {
|
|
|
730
744
|
}
|
|
731
745
|
function be(e2, n2) {
|
|
732
746
|
if (n2) {
|
|
733
|
-
const o2 = e2.pageContext, s2 = e2.configureObj,
|
|
734
|
-
c2.assigneeId = r2, Pe(e2, c2,
|
|
747
|
+
const o2 = e2.pageContext, s2 = e2.configureObj, a2 = o2.backendUrl, i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/assigns", r2 = n2.id ? n2.id : n2.ID ? n2.ID : null, c2 = de(e2);
|
|
748
|
+
c2.assigneeId = r2, Pe(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
735
749
|
P(o2, s2);
|
|
736
750
|
});
|
|
737
751
|
}
|
|
738
752
|
}
|
|
739
753
|
function Ce(e2) {
|
|
740
754
|
var _a, _b;
|
|
741
|
-
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code,
|
|
755
|
+
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, a2 = e2.configureObj, i2 = Te(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: i2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
742
756
|
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = we(e2);
|
|
743
|
-
const l2 = (_b = (_a =
|
|
744
|
-
return l2 && (c2.currentOperation = l2), c2.isMobile =
|
|
757
|
+
const l2 = (_b = (_a = a2 == null ? void 0 : a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
758
|
+
return l2 && (c2.currentOperation = l2), c2.isMobile = B(), c2;
|
|
745
759
|
}
|
|
746
760
|
function we(e2) {
|
|
747
761
|
var _a, _b, _c;
|
|
@@ -771,27 +785,27 @@ function Te(t2) {
|
|
|
771
785
|
}
|
|
772
786
|
function ke(e2, o2) {
|
|
773
787
|
if (o2) {
|
|
774
|
-
const s2 = e2.pageContext,
|
|
788
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
775
789
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
776
|
-
if (p2 = n(p2,
|
|
790
|
+
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
777
791
|
const d2 = Ce(e2);
|
|
778
792
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
779
793
|
const m2 = c.post(p2, d2);
|
|
780
794
|
m2 && m2.then((e3) => {
|
|
781
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2,
|
|
795
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, a2, e3, null, false), P(s2, a2);
|
|
782
796
|
});
|
|
783
797
|
}
|
|
784
798
|
}
|
|
785
799
|
function he(e2, o2) {
|
|
786
800
|
if (o2) {
|
|
787
|
-
const s2 = e2.pageContext,
|
|
801
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
788
802
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
789
|
-
if (p2 = n(p2,
|
|
803
|
+
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
790
804
|
const d2 = Ce(e2);
|
|
791
805
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
792
806
|
const m2 = c.post(p2, d2);
|
|
793
807
|
m2 && m2.then((e3) => {
|
|
794
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2,
|
|
808
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && ne(s2, a2, e3, null, false), P(s2, a2);
|
|
795
809
|
});
|
|
796
810
|
}
|
|
797
811
|
}
|
|
@@ -817,105 +831,105 @@ async function ye(e2, o2) {
|
|
|
817
831
|
});
|
|
818
832
|
}(e2);
|
|
819
833
|
if (s2) {
|
|
820
|
-
const
|
|
821
|
-
let d2 = t(p2,
|
|
822
|
-
if (d2 = n(d2, r2, p2,
|
|
834
|
+
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
835
|
+
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
836
|
+
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
823
837
|
const m2 = Ce(e2);
|
|
824
838
|
m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
825
839
|
const f2 = c.post(d2, m2);
|
|
826
840
|
f2 && f2.then((e3) => {
|
|
827
841
|
var _a;
|
|
828
|
-
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), ne(
|
|
842
|
+
u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulOperation") }), ne(a2, i2, { entity: (_a = a2.entity) == null ? void 0 : _a.data }, null), P(a2, i2);
|
|
829
843
|
});
|
|
830
844
|
}
|
|
831
845
|
}
|
|
832
846
|
}
|
|
833
847
|
async function Pe(e2, t2, o2, s2) {
|
|
834
|
-
const
|
|
835
|
-
return new Promise((
|
|
848
|
+
const a2 = await ge(e2);
|
|
849
|
+
return new Promise((i2, r2) => {
|
|
836
850
|
var _a;
|
|
837
|
-
if (
|
|
851
|
+
if (a2) {
|
|
838
852
|
const p2 = e2.pageContext, d2 = p2.systemCode, m2 = p2.backendUrl;
|
|
839
853
|
if (p2.completeTaskParam) {
|
|
840
|
-
const e3 = true ===
|
|
854
|
+
const e3 = true === a2 ? (_a = p2.completeTaskParam) == null ? void 0 : _a.opinion : a2;
|
|
841
855
|
t2.completeTaskParam = { taskId: p2.completeTaskParam.taskId, opinion: e3 };
|
|
842
856
|
}
|
|
843
857
|
if (!(o2 = n(o2, d2, m2, p2.isTest))) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
844
858
|
const f2 = c.post(o2, t2);
|
|
845
859
|
f2 && f2.then((t3) => {
|
|
846
860
|
let n2 = true;
|
|
847
|
-
t3 && (n2 = me(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(s2) }),
|
|
861
|
+
t3 && (n2 = me(t3, false, p2, e2, null)), true === n2 && u({ showClose: true, type: "success", message: l().t(s2) }), i2(true);
|
|
848
862
|
}).catch((e3) => {
|
|
849
863
|
r2(e3);
|
|
850
864
|
});
|
|
851
|
-
} else
|
|
865
|
+
} else i2(true);
|
|
852
866
|
});
|
|
853
867
|
}
|
|
854
868
|
function Ie(e2) {
|
|
855
|
-
const o2 = e2.pageContext, s2 = o2.systemCode,
|
|
856
|
-
let r2 = t(
|
|
857
|
-
if (r2 = n(r2, s2,
|
|
869
|
+
const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl, i2 = o2.completeTaskParam;
|
|
870
|
+
let r2 = t(a2, o2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
871
|
+
if (r2 = n(r2, s2, a2, o2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
858
872
|
const p2 = o2.code, d2 = Te(o2), m2 = { beanName: o2.beanName, additionalParamMap: d2, tableName: o2.tableName, functionCode: p2 + ".xxx", pageCode: o2.code };
|
|
859
873
|
return c.post(r2, m2);
|
|
860
874
|
}
|
|
861
875
|
function ve(e2, n2) {
|
|
862
|
-
const o2 = e2.pageContext, s2 = e2.configureObj,
|
|
863
|
-
n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), Pe(e2, r2,
|
|
876
|
+
const o2 = e2.pageContext, s2 = e2.configureObj, a2 = o2.backendUrl, i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = de(e2);
|
|
877
|
+
n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), Pe(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
864
878
|
P(o2, s2);
|
|
865
879
|
});
|
|
866
880
|
}
|
|
867
|
-
function
|
|
868
|
-
const o2 = e2.pageContext, s2 = o2.systemCode,
|
|
869
|
-
let
|
|
881
|
+
function xe(e2) {
|
|
882
|
+
const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
|
|
883
|
+
let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
870
884
|
const r2 = de(e2);
|
|
871
|
-
if (
|
|
885
|
+
if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
|
|
872
886
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
873
887
|
}
|
|
874
|
-
function
|
|
888
|
+
function Re(e2, o2) {
|
|
875
889
|
if (o2) {
|
|
876
|
-
const s2 = e2.pageContext,
|
|
890
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
877
891
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
878
|
-
if (p2 = n(p2,
|
|
892
|
+
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
879
893
|
const d2 = o2.map((e3) => e3.id ? e3.id : e3.ID ? e3.ID : null), m2 = de(e2);
|
|
880
894
|
m2.ids = d2;
|
|
881
895
|
const f2 = c.post(p2, m2);
|
|
882
896
|
f2 && f2.then((e3) => {
|
|
883
|
-
ne(s2,
|
|
897
|
+
ne(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, a2);
|
|
884
898
|
});
|
|
885
899
|
}
|
|
886
900
|
}
|
|
887
901
|
function Se(e2) {
|
|
888
|
-
const o2 = e2.pageContext, s2 = o2.systemCode,
|
|
889
|
-
let
|
|
902
|
+
const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
|
|
903
|
+
let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
890
904
|
const r2 = de(e2);
|
|
891
|
-
if (
|
|
905
|
+
if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
|
|
892
906
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
893
907
|
}
|
|
894
908
|
function Me(e2, o2) {
|
|
895
909
|
if (o2) {
|
|
896
|
-
const s2 = e2.pageContext,
|
|
910
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
897
911
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
898
|
-
if (p2 = n(p2,
|
|
912
|
+
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
899
913
|
const d2 = o2.map((e3) => e3.taskId), m2 = de(e2);
|
|
900
914
|
m2.ids = d2;
|
|
901
915
|
const f2 = c.post(p2, m2);
|
|
902
916
|
f2 && f2.then((e3) => {
|
|
903
|
-
ne(s2,
|
|
917
|
+
ne(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), P(s2, a2);
|
|
904
918
|
});
|
|
905
919
|
}
|
|
906
920
|
}
|
|
907
921
|
function Ne(e2) {
|
|
908
922
|
const o2 = e2.pageContext, s2 = o2.backendUrl;
|
|
909
|
-
let
|
|
910
|
-
const
|
|
923
|
+
let a2 = t(s2, o2.isTest) + "/dsc/workflow-commons/initiate-extract";
|
|
924
|
+
const i2 = de(e2);
|
|
911
925
|
if (o2.completeTaskParam) {
|
|
912
926
|
const t2 = [];
|
|
913
|
-
e2._value.loginName && t2.push(e2._value.loginName),
|
|
927
|
+
e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: we(e2) };
|
|
914
928
|
}
|
|
915
929
|
return new Promise((t2, o3) => {
|
|
916
930
|
const s3 = e2.pageContext, r2 = s3.systemCode, p2 = s3.backendUrl;
|
|
917
|
-
if (
|
|
918
|
-
const d2 = c.post(
|
|
931
|
+
if (a2 = n(a2, r2, p2, s3.isTest), !a2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
932
|
+
const d2 = c.post(a2, i2);
|
|
919
933
|
d2 && d2.then((n2) => {
|
|
920
934
|
let o4 = true;
|
|
921
935
|
n2 && (o4 = me(n2, false, s3, e2, null)), true === o4 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulInitiateExtract") }), t2(true);
|
|
@@ -924,50 +938,50 @@ function Ne(e2) {
|
|
|
924
938
|
});
|
|
925
939
|
});
|
|
926
940
|
}
|
|
927
|
-
function Oe(e2, t2, n2, o2, s2,
|
|
941
|
+
function Oe(e2, t2, n2, o2, s2, a2) {
|
|
928
942
|
var _a, _b, _c, _d, _e2, _f, _g, _h;
|
|
929
|
-
let
|
|
930
|
-
if (o2 && o2.archival) return
|
|
931
|
-
t2 && n2 && ("workflowSave" === t2 ?
|
|
943
|
+
let i2 = false;
|
|
944
|
+
if (o2 && o2.archival) return i2;
|
|
945
|
+
t2 && n2 && ("workflowSave" === t2 ? i2 = function(e3) {
|
|
932
946
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
933
947
|
if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "TYPE_READ" !== e3.processingMode && e3.showButtonSave && ("WAIT_TRANSACT" === e3.active || "WAIT_DESIGNATE_TRANSACTOR" === e3.active || "WAIT_CHOICE_TACHE" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
934
948
|
return false;
|
|
935
|
-
}(n2) : "workflowStart" === t2 ?
|
|
949
|
+
}(n2) : "workflowStart" === t2 ? i2 = function(e3, t3) {
|
|
936
950
|
if (void 0 === e3.processState || null === e3.processState || t3 && !t3.workflow_id && !t3.WORKFLOW_ID) return true;
|
|
937
951
|
return false;
|
|
938
|
-
}(n2,
|
|
952
|
+
}(n2, a2) : "submitProcess" === t2 ? i2 = function(e3) {
|
|
939
953
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && true === e3.theTransactor) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
940
954
|
return false;
|
|
941
|
-
}(n2) : "submitTask" === t2 ?
|
|
955
|
+
}(n2) : "submitTask" === t2 ? i2 = function(e3) {
|
|
942
956
|
if (e3.processState && "SUBMIT" === e3.processState && true === e3.theTransactor && "WAIT_TRANSACT" === e3.active && "EDIT" === e3.processingMode) return true;
|
|
943
957
|
return false;
|
|
944
|
-
}(n2) : "drawTask" === t2 ?
|
|
958
|
+
}(n2) : "drawTask" === t2 ? i2 = function(e3) {
|
|
945
959
|
if (e3.processState && "SUBMIT" === e3.processState && e3.active && ("DRAW_WAIT" === e3.active || "DEPT_DRAW_WAIT" === e3.active) && e3.showButtonDraw) return true;
|
|
946
960
|
return false;
|
|
947
|
-
}(n2) : "abandonReceive" === t2 ?
|
|
961
|
+
}(n2) : "abandonReceive" === t2 ? i2 = function(e3) {
|
|
948
962
|
if (e3.processState && "SUBMIT" === e3.processState && (e3.drawTask && "WAIT_TRANSACT" === e3.active || e3.canAbandonDeptTask && "WAIT_TRANSACT" === e3.active) && e3.showButtonAbandon) return true;
|
|
949
963
|
return false;
|
|
950
|
-
}(n2) : "approve" === t2 || "refuse" === t2 ?
|
|
964
|
+
}(n2) : "approve" === t2 || "refuse" === t2 ? i2 = function(e3) {
|
|
951
965
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && ("APPROVE" === e3.processingMode || "COUNTERSIGN" === e3.processingMode)) return true;
|
|
952
966
|
return false;
|
|
953
|
-
}(n2) : "readed" === t2 ?
|
|
967
|
+
}(n2) : "readed" === t2 ? i2 = function(e3) {
|
|
954
968
|
if ("WAIT_TRANSACT" === e3.active && "TYPE_READ" === e3.processingMode) return true;
|
|
955
969
|
return false;
|
|
956
|
-
}(n2) : "assign" === t2 ?
|
|
970
|
+
}(n2) : "assign" === t2 ? i2 = function(e3) {
|
|
957
971
|
if (e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active)) return true;
|
|
958
972
|
return false;
|
|
959
|
-
}(n2) : "copyTask" === t2 ?
|
|
973
|
+
}(n2) : "copyTask" === t2 ? i2 = function(e3, t3) {
|
|
960
974
|
let n3 = false;
|
|
961
975
|
e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "TYPE_READ" !== e3.processingMode && e3.showButtonCopy && (n3 = true);
|
|
962
976
|
t3 && (t3.props.base.state = n3 ? "" : "hidden");
|
|
963
977
|
return true;
|
|
964
|
-
}(n2, s2) : "addSigner" === t2 ?
|
|
978
|
+
}(n2, s2) : "addSigner" === t2 ? i2 = function(e3) {
|
|
965
979
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
966
980
|
return false;
|
|
967
|
-
}(n2) : "removeSigner" === t2 ?
|
|
981
|
+
}(n2) : "removeSigner" === t2 ? i2 = function(e3) {
|
|
968
982
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
969
983
|
return false;
|
|
970
|
-
}(n2) : "retrieveTask" === t2 ?
|
|
984
|
+
}(n2) : "retrieveTask" === t2 ? i2 = function(e3) {
|
|
971
985
|
if (e3.processState && "END" !== e3.processState && "SUBMIT" === e3.processState && true === e3.showButtonGetBack && function(e4) {
|
|
972
986
|
if ("COMPLETED" !== e4.active) return false;
|
|
973
987
|
if ("TYPE_READ" === e4.processingMode) return false;
|
|
@@ -975,13 +989,13 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
975
989
|
return true;
|
|
976
990
|
}(e3)) return true;
|
|
977
991
|
return false;
|
|
978
|
-
}(n2) : "agreement" === t2 || "oppose" === t2 ?
|
|
992
|
+
}(n2) : "agreement" === t2 || "oppose" === t2 ? i2 = function(e3) {
|
|
979
993
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode) return true;
|
|
980
994
|
return false;
|
|
981
|
-
}(n2) : "kiken" === t2 ?
|
|
995
|
+
}(n2) : "kiken" === t2 ? i2 = function(e3) {
|
|
982
996
|
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "VOTE" === e3.processingMode && e3.showButtonKiken) return true;
|
|
983
997
|
return false;
|
|
984
|
-
}(n2) : "extractWorkflow" === t2 ?
|
|
998
|
+
}(n2) : "extractWorkflow" === t2 ? i2 = function(e3, t3, n3) {
|
|
985
999
|
var _a2;
|
|
986
1000
|
const o3 = m(), s3 = o3 ? o3.loginName : null;
|
|
987
1001
|
if (e3 == null ? void 0 : e3.processState) {
|
|
@@ -989,11 +1003,11 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
989
1003
|
if ("END" !== (e3 == null ? void 0 : e3.processState) && "EXTRACT" !== (e3 == null ? void 0 : e3.processState) && "MANUAL_END" !== (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
|
|
990
1004
|
}
|
|
991
1005
|
return false;
|
|
992
|
-
}(n2, o2,
|
|
1006
|
+
}(n2, o2, a2) : "cancelExtractWorkflow" === t2 ? i2 = function(e3, t3, n3) {
|
|
993
1007
|
const o3 = m(), s3 = o3 ? o3.loginName : null;
|
|
994
1008
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && n3 && (n3.creator === s3 || n3.CREATOR === s3)) return true;
|
|
995
1009
|
return false;
|
|
996
|
-
}(n2, 0,
|
|
1010
|
+
}(n2, 0, a2) : "approveExtractWorkflow" === t2 || "refuseExtractWorkflow" === t2 ? i2 = Ue(n2) : "addTransactor" === t2 || "removeTransactor" === t2 ? i2 = function(e3) {
|
|
997
1011
|
if (e3.processState && "SUBMIT" === e3.processState && ("WAIT_TRANSACT" === e3.active || "DRAW_WAIT" === e3.active) && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
998
1012
|
return false;
|
|
999
1013
|
}(n2) : function(e3, t3) {
|
|
@@ -1003,11 +1017,11 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
1003
1017
|
t4 && (n3 = t4.taskComplete);
|
|
1004
1018
|
return n3;
|
|
1005
1019
|
}(t3);
|
|
1006
|
-
}(n2, o2) && (
|
|
1020
|
+
}(n2, o2) && (i2 = "returnToPreviousTask" !== t2 || function(e3) {
|
|
1007
1021
|
if (e3.rebuttable) return true;
|
|
1008
1022
|
return false;
|
|
1009
1023
|
}(n2)));
|
|
1010
|
-
if ((s2 == null ? void 0 : s2.check) && -1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask", "returnTaskTo"].indexOf(t2) &&
|
|
1024
|
+
if ((s2 == null ? void 0 : s2.check) && -1 !== ["submitTask", "approve", "refuse", "agreement", "oppose", "kiken", "extractWorkflow", "cancelExtractWorkflow", "approveExtractWorkflow", "refuseExtractWorkflow", "returnToPreviousTask", "returnTaskTo"].indexOf(t2) && i2) {
|
|
1011
1025
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
1012
1026
|
e2.workflowOpinion.showOpinionBox = true;
|
|
1013
1027
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
@@ -1022,7 +1036,7 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
1022
1036
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1023
1037
|
}
|
|
1024
1038
|
}
|
|
1025
|
-
return
|
|
1039
|
+
return i2;
|
|
1026
1040
|
}
|
|
1027
1041
|
function Ue(e2, t2, n2) {
|
|
1028
1042
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
@@ -1033,24 +1047,25 @@ function Ae(e2, t2) {
|
|
|
1033
1047
|
});
|
|
1034
1048
|
}
|
|
1035
1049
|
function Ee(e2, n2, s2) {
|
|
1036
|
-
const
|
|
1037
|
-
if (
|
|
1050
|
+
const a2 = e2.pageType;
|
|
1051
|
+
if (a2 && "form" === a2) {
|
|
1038
1052
|
e2.canClick = false;
|
|
1039
1053
|
return o(e2) ? function(e3, n3, o2) {
|
|
1040
|
-
return new Promise((s3,
|
|
1041
|
-
|
|
1054
|
+
return new Promise((s3, a3) => {
|
|
1055
|
+
var _a;
|
|
1056
|
+
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1042
1057
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1043
1058
|
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);
|
|
1044
|
-
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode:
|
|
1045
|
-
if (
|
|
1059
|
+
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: b2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1060
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1046
1061
|
const t2 = {};
|
|
1047
1062
|
e3.tableUuids.forEach((e4) => {
|
|
1048
1063
|
const n4 = r(l2, u2, e4);
|
|
1049
1064
|
t2[n4] = n4;
|
|
1050
1065
|
}), C2.listCodesMap = t2;
|
|
1051
1066
|
}
|
|
1052
|
-
m2 && (C2.ids = je(m2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), C2.isMobile =
|
|
1053
|
-
const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 =
|
|
1067
|
+
m2 && (C2.ids = je(m2)), f2 ? C2.taskId = f2 : d2 ? C2.id = d2 : (p2 && p2._t_ && g(p2._t_ + "_id") && (C2.id = g(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (C2.withDataPermission = true), C2.isMobile = B();
|
|
1068
|
+
const w2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = L();
|
|
1054
1069
|
T2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
|
|
1055
1070
|
const k2 = H(e3.code, C2.id);
|
|
1056
1071
|
c.post(w2, C2).then(async (t2) => {
|
|
@@ -1062,11 +1077,11 @@ function Ee(e2, n2, s2) {
|
|
|
1062
1077
|
if (void 0 !== n5) for (let e6 = 0; e6 < n5.length; e6++) {
|
|
1063
1078
|
const o3 = n5[e6].name;
|
|
1064
1079
|
if (o3) if (0 === o3.indexOf("$") && o3.indexOf(".") > 0) {
|
|
1065
|
-
const s4 = n5[e6],
|
|
1066
|
-
if (
|
|
1080
|
+
const s4 = n5[e6], a4 = JSON.parse(JSON.stringify(s4)), i3 = o3.substring(1, o3.indexOf(".")), r2 = o3.substring(o3.indexOf(".") + 1);
|
|
1081
|
+
if (a4.name = r2, a4 && "all_fields" === a4.name) false === a4.canEdit ? a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: false, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: false }]) : a4.rowIndexes ? t3.set(i3, [{ name: "all_fields", canEdit: true, rowIndexes: a4.rowIndexes }]) : t3.set(i3, [{ name: "all_fields", canEdit: true }]);
|
|
1067
1082
|
else {
|
|
1068
|
-
let e7 = t3.get(
|
|
1069
|
-
e7 || (e7 = []), e7.push(
|
|
1083
|
+
let e7 = t3.get(i3);
|
|
1084
|
+
e7 || (e7 = []), e7.push(a4), t3.set(i3, e7);
|
|
1070
1085
|
}
|
|
1071
1086
|
} else t3.set(o3, n5[e6]);
|
|
1072
1087
|
}
|
|
@@ -1075,8 +1090,8 @@ function Ee(e2, n2, s2) {
|
|
|
1075
1090
|
const t3 = e5.fieldPermissionMap, n5 = /* @__PURE__ */ new Map(), o3 = e5.actionPermissions;
|
|
1076
1091
|
if (null != o3) {
|
|
1077
1092
|
Object.keys(o3).forEach((e6) => {
|
|
1078
|
-
const s4 = o3[e6],
|
|
1079
|
-
if (
|
|
1093
|
+
const s4 = o3[e6], a4 = t3.get(e6);
|
|
1094
|
+
if (a4 && a4.length > 0 && "all_fields" === a4[0].name && false === a4[0].canEdit) s4.canUpdate = false, s4.canAdd = false;
|
|
1080
1095
|
else {
|
|
1081
1096
|
s4 && 0 !== Object.keys(s4.deleteCondition).length || (s4.deleteCondition = null), s4 && 0 !== Object.keys(s4.updateCondition).length || (s4.updateCondition = null);
|
|
1082
1097
|
const n6 = s4.canUpdate, o4 = s4.updateRowIndexes;
|
|
@@ -1089,32 +1104,33 @@ function Ee(e2, n2, s2) {
|
|
|
1089
1104
|
}(e4);
|
|
1090
1105
|
}(e3), e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
|
|
1091
1106
|
}).catch((t2) => {
|
|
1092
|
-
e3.canClick = true,
|
|
1107
|
+
e3.canClick = true, a3(t2);
|
|
1093
1108
|
});
|
|
1094
1109
|
});
|
|
1095
1110
|
}(e2, n2, s2) : function(e3, n3, o2) {
|
|
1096
|
-
return new Promise((s3,
|
|
1097
|
-
|
|
1111
|
+
return new Promise((s3, a3) => {
|
|
1112
|
+
var _a;
|
|
1113
|
+
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1098
1114
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1099
1115
|
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);
|
|
1100
|
-
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode:
|
|
1101
|
-
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = je(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), e3.
|
|
1116
|
+
const f2 = p2 ? p2.taskId : null, b2 = l2, C2 = t(e3.backendUrl, e3.isTest), w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1117
|
+
if (!w2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (w2.id = g(p2._t_ + "_id")), m2 && (w2.ids = je(m2)), e3.notIdInitializationList && (w2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (w2.additionalParamMap = p2), e3.beanName && (w2.beanName = e3.beanName), f2 && (w2.taskId = f2), ((_a = e3.props) == null ? void 0 : _a.enableFormDataPermission) && (w2.withDataPermission = true), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1102
1118
|
const t2 = {};
|
|
1103
1119
|
e3.tableUuids.forEach((e4) => {
|
|
1104
1120
|
const n4 = r(l2, u2, e4);
|
|
1105
1121
|
t2[n4] = n4;
|
|
1106
1122
|
}), w2.listCodesMap = t2;
|
|
1107
1123
|
}
|
|
1108
|
-
e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile =
|
|
1109
|
-
const T2 = C2 + "/dsc/commons/gets", k2 =
|
|
1124
|
+
e3.refercePropMap && (w2.refercePropMap = e3.refercePropMap), w2.isMobile = B();
|
|
1125
|
+
const T2 = C2 + "/dsc/commons/gets", k2 = L();
|
|
1110
1126
|
k2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
|
|
1111
1127
|
const y2 = H(e3.code, w2.id);
|
|
1112
1128
|
c.post(T2, w2).then(async (t2) => {
|
|
1113
1129
|
t2 && (y2 && await _e(e3, w2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
|
|
1114
|
-
const n4 = e3.customRules, o3 = e3.rules,
|
|
1115
|
-
e3.rules =
|
|
1130
|
+
const n4 = e3.customRules, o3 = e3.rules, a4 = D(e3, n4, o3);
|
|
1131
|
+
e3.rules = a4, e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
|
|
1116
1132
|
}).catch((t2) => {
|
|
1117
|
-
e3.canClick = true,
|
|
1133
|
+
e3.canClick = true, a3(t2);
|
|
1118
1134
|
});
|
|
1119
1135
|
});
|
|
1120
1136
|
}(e2, n2, s2);
|
|
@@ -1142,14 +1158,14 @@ function De(e2) {
|
|
|
1142
1158
|
return null;
|
|
1143
1159
|
}
|
|
1144
1160
|
function We(e2, t2) {
|
|
1145
|
-
const n2 = e2.entity ? e2.entity : {}, o2 = { data: n2.data, page: n2.page }, s2 = { pageCode: e2.code, queryCondition: JSON.stringify(o2), name: t2 },
|
|
1146
|
-
return c.post(
|
|
1161
|
+
const n2 = e2.entity ? e2.entity : {}, o2 = { data: n2.data, page: n2.page }, s2 = { pageCode: e2.code, queryCondition: JSON.stringify(o2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
1162
|
+
return c.post(a2, s2);
|
|
1147
1163
|
}
|
|
1148
|
-
function
|
|
1164
|
+
function Le(e2) {
|
|
1149
1165
|
const t2 = e2.code, n2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
1150
1166
|
return c.get(n2);
|
|
1151
1167
|
}
|
|
1152
|
-
function
|
|
1168
|
+
function Be(e2) {
|
|
1153
1169
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
1154
1170
|
return c.delete(t2);
|
|
1155
1171
|
}
|
|
@@ -1160,9 +1176,9 @@ function Ve(e2, n2, o2) {
|
|
|
1160
1176
|
e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title: l().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
|
|
1161
1177
|
"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));
|
|
1162
1178
|
}, message: () => F(V, { isShow: true, backendUrl: n2, lastFileTask: e2.lastFileTask, onClickMsg(s2) {
|
|
1163
|
-
s2.serverPath ? function(e3, n3, o3, s3,
|
|
1164
|
-
He(
|
|
1165
|
-
const r2 = f(), c2 = t(
|
|
1179
|
+
s2.serverPath ? function(e3, n3, o3, s3, a2, i2) {
|
|
1180
|
+
He(a2, i2, o3, s3);
|
|
1181
|
+
const r2 = f(), c2 = t(a2), l2 = c2 + "/common/super-form/downloads?jwt=" + r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + n3;
|
|
1166
1182
|
window.open(l2);
|
|
1167
1183
|
}(s2.fileName, s2.serverPath, s2.id, e2, n2, o2) : He(n2, o2, s2.id, e2), e2.noticeComponent.close(), e2.noticeComponent = null;
|
|
1168
1184
|
} }) }) : (null != e2.noticeComponent && (e2.noticeComponent.close(), e2.noticeComponent = null), e2.noticeInterval && (clearInterval(e2.noticeInterval), e2.noticeInterval = null));
|
|
@@ -1191,31 +1207,31 @@ function He(e2, t2, n2, o2) {
|
|
|
1191
1207
|
export {
|
|
1192
1208
|
ne as dealAfterOperate,
|
|
1193
1209
|
me as dealCompleteTaskParam,
|
|
1194
|
-
|
|
1210
|
+
Be as deleteChartCondition,
|
|
1195
1211
|
ke as doAddSigner,
|
|
1196
1212
|
he as doAddTransactor,
|
|
1197
1213
|
be as doAssign,
|
|
1198
1214
|
ye as doCreateCopyTask,
|
|
1199
1215
|
Fe as doFileTaskFunc,
|
|
1200
1216
|
ue as doImportFinally,
|
|
1201
|
-
|
|
1217
|
+
Re as doRemoveSigners,
|
|
1202
1218
|
Me as doRemoveTransactors,
|
|
1203
1219
|
ve as doReturnTaskTo,
|
|
1204
1220
|
K as exportFormReport,
|
|
1205
1221
|
Ne as extractWorkflowFunc,
|
|
1206
1222
|
Te as getAdditionalParamMap,
|
|
1207
1223
|
Ee as getFormData,
|
|
1208
|
-
|
|
1224
|
+
xe as getRemoveSigner,
|
|
1209
1225
|
Se as getRemoveTransactor,
|
|
1210
1226
|
te as getSaveFormRequest,
|
|
1211
1227
|
ee as getSaveFormRequestWithRow,
|
|
1212
1228
|
Ie as getTaskInformitions,
|
|
1213
1229
|
Oe as isVisibleWorkflowButton,
|
|
1214
1230
|
pe as judgeDataNumber,
|
|
1215
|
-
|
|
1231
|
+
Le as listChartConditions,
|
|
1216
1232
|
ce as refreshFormOrListPage,
|
|
1217
1233
|
Ae as refreshPage,
|
|
1218
1234
|
We as saveChartConditionBase,
|
|
1219
1235
|
Y as standardEvents,
|
|
1220
|
-
|
|
1236
|
+
ie as updateValuesWhenCloseDialog
|
|
1221
1237
|
};
|