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