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