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