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