super-page-runtime 2.3.34 → 2.3.35-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/anchor-util.js +43 -51
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +98 -96
- package/dist/es/components/runtime/utils/events/event-util.js +131 -119
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.js +154 -138
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +26 -28
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/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 +94 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- 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 +35 -35
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +68 -53
- 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 +37 -38
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +31 -22
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +14 -16
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +18 -19
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +16 -15
- package/package.json +2 -2
|
@@ -6,12 +6,12 @@ import { getCurrentUser as m, getToken as f, getSessionCache as g, setSessionCac
|
|
|
6
6
|
import { getComponentRef as b } from "../global-refs.js";
|
|
7
7
|
import T from "../eventBus.js";
|
|
8
8
|
import k from "axios";
|
|
9
|
-
import { handleEvent as
|
|
10
|
-
import { setStoreInfo as
|
|
11
|
-
import { getPermissionCodes as
|
|
9
|
+
import { handleEvent as h, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
|
|
10
|
+
import { setStoreInfo as I } from "../store-util.js";
|
|
11
|
+
import { getPermissionCodes as v, getDefaultValue as S, getModelFields as R } from "../page-init-util.js";
|
|
12
12
|
import { caculateShowCondition as M, updateChartDatasources as N, getVariableValue as x, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
14
|
+
import { getTableNameByTableUuid as U, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
16
16
|
import { functions as W } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as B } from "../page-store.js";
|
|
@@ -51,19 +51,19 @@ const Y = { save: function(e2) {
|
|
|
51
51
|
if (!a2 || 0 === a2.length) return u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
52
52
|
p.confirm(l().t("superPageRuntimeMessage.whetherToConfirmDeletion"), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
53
53
|
var _a, _b, _c;
|
|
54
|
-
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 =
|
|
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 = U(r2, m2);
|
|
55
55
|
let g2 = t(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
56
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
|
-
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 =
|
|
57
|
+
const C2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 = v(l2, r2), k2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
58
58
|
r2.beanName && (k2.beanName = r2.beanName);
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
const
|
|
62
|
-
|
|
59
|
+
const h2 = l2.props.deleteLogicSetting;
|
|
60
|
+
h2 && ("object" == typeof h2 ? k2.deleteLogicSetting = JSON.stringify(h2) : "string" == typeof h2 && (k2.deleteLogicSetting = h2));
|
|
61
|
+
const y2 = (_a = l2.props.base) == null ? void 0 : _a.logSetting;
|
|
62
|
+
y2 && (k2.logSettingText = y2.join(""));
|
|
63
63
|
const P2 = l2.props.base.isSafeDelete;
|
|
64
64
|
P2 && (k2.isSafeDelete = P2);
|
|
65
|
-
const
|
|
66
|
-
|
|
65
|
+
const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
66
|
+
I2 && (k2.currentOperation = I2), k2.isMobile = L(), c.delete(g2, { data: k2 }).then((e4) => {
|
|
67
67
|
const t2 = b(r2, m2);
|
|
68
68
|
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
69
69
|
}).catch((e4) => {
|
|
@@ -89,7 +89,7 @@ const Y = { save: function(e2) {
|
|
|
89
89
|
const C2 = e3.listCode;
|
|
90
90
|
C2 && (d2 += "&listCode=" + C2);
|
|
91
91
|
n2.beanName && (d2 += "&beanName=" + n2.beanName);
|
|
92
|
-
const w2 =
|
|
92
|
+
const w2 = v(o2, n2);
|
|
93
93
|
w2 && (d2 += "&functionCode=" + w2);
|
|
94
94
|
n2.tableName && (d2 += "&tableName=" + n2.tableName);
|
|
95
95
|
n2.code && (d2 += "&pageCode=" + n2.code);
|
|
@@ -99,13 +99,13 @@ const Y = { save: function(e2) {
|
|
|
99
99
|
const T2 = (_c = (_b = o2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
100
100
|
T2 && (d2 += "¤tOperation=" + encodeURI(T2));
|
|
101
101
|
d2 += "&isMobile=" + L();
|
|
102
|
-
const k2 = "_RUN_CURRENT_ROLE",
|
|
103
|
-
|
|
102
|
+
const k2 = "_RUN_CURRENT_ROLE", h2 = g(k2);
|
|
103
|
+
h2 && (d2 += "&" + k2 + "=" + h2);
|
|
104
104
|
if (s2) {
|
|
105
105
|
d2 += "&isPermission=" + (void 0 === s2.isPermission || "true" === s2.isPermission || s2.isPermission);
|
|
106
106
|
}
|
|
107
|
-
const
|
|
108
|
-
window.open(
|
|
107
|
+
const y2 = t(u2, n2.isTest);
|
|
108
|
+
window.open(y2 + "/dsc/commons/download-files" + d2);
|
|
109
109
|
}(e2);
|
|
110
110
|
}, import: function(e2) {
|
|
111
111
|
const t2 = e2.pageContext.code + "_";
|
|
@@ -120,7 +120,7 @@ const Y = { save: function(e2) {
|
|
|
120
120
|
l2 || (l2 = o2.code);
|
|
121
121
|
let u2 = false;
|
|
122
122
|
u2 = void 0 !== i2.isAsync && null !== i2.isAsync && i2.isAsync;
|
|
123
|
-
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 =
|
|
123
|
+
const p2 = void 0 === i2.isPermission || "true" === i2.isPermission || i2.isPermission, d2 = v(s2, o2), m2 = l2, f2 = { backendUrl: o2.backendUrl, pageContext: o2 }, g2 = (_b = (_a = s2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
124
124
|
g2 && (f2.currentOperation = g2), f2.isShowWatermark = void 0 === ((_d = (_c = s2.props) == null ? void 0 : _c.watermark) == null ? void 0 : _d.isShowWatermark) ? "true" : ((_f = (_e2 = s2.props) == null ? void 0 : _e2.watermark) == null ? void 0 : _f.isShowWatermark) + "", f2.watermarkContent = ((_h = (_g = s2.props) == null ? void 0 : _g.watermark) == null ? void 0 : _h.content) && ((_j = (_i = s2.props) == null ? void 0 : _i.watermark) == null ? void 0 : _j.content.length) > 0 ? (_l = (_k = s2.props) == null ? void 0 : _k.watermark) == null ? void 0 : _l.content.join("-~") : "", window.$vueApp.config.globalProperties.$exportDataNew(c2, m2, a2, d2, null, f2, u2, o2.code, p2), u2 && setTimeout(() => {
|
|
125
125
|
Fe(o2);
|
|
126
126
|
}, 100);
|
|
@@ -152,33 +152,40 @@ const Y = { save: function(e2) {
|
|
|
152
152
|
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
153
153
|
return new Promise((o2, s2) => {
|
|
154
154
|
const i2 = e3.pageContext, a2 = i2.entity.data, r2 = i2.systemCode, p2 = i2.backendUrl;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
let
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
155
|
+
if (i2.fileuploadInfo && i2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: i2.fileuploadInfo[0].label }), type: "warning", showClose: true }), o2(false);
|
|
156
|
+
else {
|
|
157
|
+
let d2 = t(p2, i2.isTest) + "/dsc/workflow-commons/start";
|
|
158
|
+
if (d2 = n(d2, r2, p2, i2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
159
|
+
const m2 = de(e3);
|
|
160
|
+
let f2;
|
|
161
|
+
a2.workflow_id || a2.WORKFLOW_ID ? (d2 = t(p2, i2.isTest) + "/dsc/workflow-commons", d2 = n(d2, r2, p2, i2.isTest), f2 = c.put(d2, m2)) : f2 = c.post(d2, m2), $(i2.code, a2), f2.then((t2) => {
|
|
162
|
+
let n2 = true;
|
|
163
|
+
t2 && (q(i2.code, a2), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulStart") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
164
|
+
}).catch((e4) => {
|
|
165
|
+
s2(e4);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
165
168
|
});
|
|
166
169
|
}(e2);
|
|
167
170
|
}, submitProcess: function(e2) {
|
|
168
171
|
return T.$emit("clearTableAllStartEditing"), function(e3) {
|
|
169
172
|
return new Promise((o2, s2) => {
|
|
170
|
-
const i2 = e3.pageContext
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
173
|
+
const i2 = e3.pageContext;
|
|
174
|
+
if (i2.fileuploadInfo && i2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: i2.fileuploadInfo[0].label }), type: "warning", showClose: true }), o2(false);
|
|
175
|
+
else {
|
|
176
|
+
const a2 = i2.systemCode, r2 = i2.backendUrl;
|
|
177
|
+
let p2 = t(r2, i2.isTest) + "/dsc/workflow-commons/submit";
|
|
178
|
+
if (p2 = n(p2, a2, r2, i2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
179
|
+
const d2 = de(e3);
|
|
180
|
+
$(i2.code, i2.entity.data);
|
|
181
|
+
const m2 = c.post(p2, d2);
|
|
182
|
+
m2 ? m2.then((t2) => {
|
|
183
|
+
let n2 = true;
|
|
184
|
+
t2 && (q(i2.code, i2.entity.data), n2 = me(t2, false, i2, e3, null)), true === n2 && u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulSubmit") }), T.$emit("clearTableAllEndEditing"), o2(true);
|
|
185
|
+
}).catch((e4) => {
|
|
186
|
+
s2(e4);
|
|
187
|
+
}) : q(i2.code, i2.entity.data);
|
|
188
|
+
}
|
|
182
189
|
});
|
|
183
190
|
}(e2);
|
|
184
191
|
}, submitTask: function(e2) {
|
|
@@ -271,15 +278,14 @@ const Y = { save: function(e2) {
|
|
|
271
278
|
}, lineEditCreate: function(e2) {
|
|
272
279
|
return function(e3) {
|
|
273
280
|
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = b(t2, n2);
|
|
274
|
-
o2 && (e3.getDefaultValueFunc =
|
|
281
|
+
o2 && (e3.getDefaultValueFunc = S, o2.createRow(e3.listCode, {}, e3));
|
|
275
282
|
}(e2);
|
|
276
283
|
}, printLabel: function(e2) {
|
|
277
284
|
return function(e3) {
|
|
278
285
|
let t2 = null;
|
|
279
286
|
try {
|
|
280
287
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
281
|
-
} catch (
|
|
282
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
288
|
+
} catch (e4) {
|
|
283
289
|
}
|
|
284
290
|
A.printLabel(e3, t2);
|
|
285
291
|
}(e2);
|
|
@@ -357,13 +363,13 @@ function z(e2) {
|
|
|
357
363
|
function K(e2, n2, s2, i2) {
|
|
358
364
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
359
365
|
e2.clickUuid = n2.uuid, e2.canClick = false;
|
|
360
|
-
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, w2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode:
|
|
366
|
+
const a2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), C2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, w2 = { entity: g2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: v(n2, e2), tableName: m2, isPermission: C2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
361
367
|
l2 && (w2.logSettingText = l2.join(""));
|
|
362
368
|
const b2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
363
369
|
b2 && (w2.currentOperation = b2), w2.isMobile = L();
|
|
364
370
|
const T2 = Te(e2);
|
|
365
|
-
let
|
|
366
|
-
w2.additionalParamMap = T2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "",
|
|
371
|
+
let h2;
|
|
372
|
+
w2.additionalParamMap = T2, w2.isShowWatermark = void 0 === ((_e2 = (_d = n2.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e2.isShowWatermark) ? "true" : ((_g = (_f = n2.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.isShowWatermark) + "", w2.watermark = ((_i = (_h = n2.props) == null ? void 0 : _h.watermark) == null ? void 0 : _i.content) && ((_k = (_j = n2.props) == null ? void 0 : _j.watermark) == null ? void 0 : _k.content.length) > 0 ? (_m = (_l = n2.props) == null ? void 0 : _l.watermark) == null ? void 0 : _m.content.join("-~") : "", h2 = i2 ? function(e3, n3, o2, s3) {
|
|
367
373
|
return new Promise((i3, a3) => {
|
|
368
374
|
const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
|
|
369
375
|
X();
|
|
@@ -389,7 +395,7 @@ function K(e2, n2, s2, i2) {
|
|
|
389
395
|
a3(e4);
|
|
390
396
|
});
|
|
391
397
|
});
|
|
392
|
-
}(r2, f2, w2, e2.isTest),
|
|
398
|
+
}(r2, f2, w2, e2.isTest), h2 && h2.then(() => {
|
|
393
399
|
P(e2, n2);
|
|
394
400
|
}).catch((t2) => {
|
|
395
401
|
window.$message.error("导出失败..."), P(e2, n2);
|
|
@@ -406,19 +412,22 @@ function X() {
|
|
|
406
412
|
function Q(e2, t2) {
|
|
407
413
|
return new Promise((n2, o2) => {
|
|
408
414
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = i2.props.base.successOperation;
|
|
409
|
-
let
|
|
410
|
-
c2 && "noOperation" === c2 && (
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
e3
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
415
|
+
let p2 = false;
|
|
416
|
+
if (c2 && "noOperation" === c2 && (p2 = true), s2.fileuploadInfo && s2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: s2.fileuploadInfo[0].label }), type: "warning", showClose: true }), n2(false);
|
|
417
|
+
else {
|
|
418
|
+
$(s2.code, s2.entity.data);
|
|
419
|
+
const e3 = te(s2, i2, "/dsc/commons", p2, a2, r2);
|
|
420
|
+
e3 ? e3.then((e4) => {
|
|
421
|
+
e4 && q(s2.code, s2.entity.data), ne(s2, i2, e4, "superPageRuntimeMessage.successfulSave", t2), n2(e4);
|
|
422
|
+
}).catch((e4) => {
|
|
423
|
+
o2(e4);
|
|
424
|
+
}) : (q(s2.code, s2.entity.data), o2("保存时request不存在"));
|
|
425
|
+
}
|
|
417
426
|
});
|
|
418
427
|
}
|
|
419
428
|
function Z(e2, t2, n2, i2, a2, r2, c2) {
|
|
420
429
|
var _a, _b, _c;
|
|
421
|
-
const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 =
|
|
430
|
+
const l2 = o(e2), u2 = e2.systemCode, p2 = void 0 === t2.props.base.isPermission || "true" === t2.props.base.isPermission || t2.props.base.isPermission, d2 = v(t2, e2);
|
|
422
431
|
let m2 = c2;
|
|
423
432
|
m2 || (m2 = e2.entity.data);
|
|
424
433
|
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 };
|
|
@@ -452,12 +461,13 @@ function ne(t2, n2, o2, s2, i2) {
|
|
|
452
461
|
const a2 = oe(t2, n2, i2);
|
|
453
462
|
if (a2 && "list" === a2) !function(t3, n3, o3, s3) {
|
|
454
463
|
let i3 = n3.props.base.successOperation;
|
|
455
|
-
const a3 = n3.props.base.isNeedValueMapping, r2 =
|
|
464
|
+
const a3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
|
|
456
465
|
i3 || re.includes(n3.name) || (i3 = "refresh");
|
|
457
|
-
if ("refresh" === i3)
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
466
|
+
if ("refresh" === i3) {
|
|
467
|
+
if (r2) {
|
|
468
|
+
b(t3, r2).refresh();
|
|
469
|
+
}
|
|
470
|
+
} else if ("closeWindow" === i3 || "closeWindowAndRefresh" === i3) {
|
|
461
471
|
const s4 = e(t3.entity.page);
|
|
462
472
|
let i4 = o3;
|
|
463
473
|
i4 || (i4 = {}), Object.assign(s4, i4), ie(t3, n3, s4, a3);
|
|
@@ -491,7 +501,7 @@ function se(e2, t2, n2) {
|
|
|
491
501
|
const o2 = t2.props.base.successOperation;
|
|
492
502
|
if (!o2 || null === o2) return;
|
|
493
503
|
const s2 = t2.props.base.isNeedValueMapping;
|
|
494
|
-
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ?
|
|
504
|
+
"noOperation" === o2 ? e2.canClick = true : "refresh" === o2 ? n2 && (n2.id || n2.ID) ? Ue(e2, n2.ID ? n2.ID : n2.id) : e2.canClick = true : "closeWindow" !== o2 && "closeWindowAndRefresh" !== o2 || (ie(e2, t2, n2, s2), e2.canClick = true);
|
|
495
505
|
}
|
|
496
506
|
function ie(e2, t2, n2, o2) {
|
|
497
507
|
const s2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -515,7 +525,7 @@ function ae(e2, t2, n2, o2, s2) {
|
|
|
515
525
|
O(n3.entity, r2, i3);
|
|
516
526
|
});
|
|
517
527
|
}
|
|
518
|
-
}(n2, s2, e2),
|
|
528
|
+
}(n2, s2, e2), h(null, e2, t2, "setValue", { sourceModel: n2, sourceTableName: o2, entity: e2.entity.data, targetTableName: i2 });
|
|
519
529
|
}
|
|
520
530
|
const re = ["dropdown"];
|
|
521
531
|
function ce(e2, t2, n2, o2) {
|
|
@@ -526,53 +536,57 @@ function ce(e2, t2, n2, o2) {
|
|
|
526
536
|
const i2 = oe(e2, t2);
|
|
527
537
|
if (i2 && "list" === i2 && !s2 && (s2 = "refresh"), "refresh" === s2) {
|
|
528
538
|
if (i2 && "list" === i2) {
|
|
529
|
-
const n3 =
|
|
539
|
+
const n3 = y(e2, t2);
|
|
530
540
|
if (n3) {
|
|
531
541
|
b(e2, n3).refresh();
|
|
532
|
-
}
|
|
542
|
+
}
|
|
533
543
|
} else if (i2 && "form" === i2) {
|
|
534
544
|
const t3 = e2.entity.data;
|
|
535
|
-
|
|
545
|
+
Ue(e2, t3.ID ? t3.ID : t3.id);
|
|
536
546
|
}
|
|
537
547
|
}
|
|
538
548
|
}
|
|
539
549
|
function le(e2, o2, s2, i2) {
|
|
540
|
-
return new Promise((r2,
|
|
541
|
-
const
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
T2 =
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
550
|
+
return new Promise((r2, d2) => {
|
|
551
|
+
const m2 = e2.pageContext, f2 = e2.configureObj;
|
|
552
|
+
if (m2.fileuploadInfo && m2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: m2.fileuploadInfo[0].label }), type: "warning", showClose: true }), r2(false);
|
|
553
|
+
else {
|
|
554
|
+
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, C2 = e2.ids, w2 = f2.props.base.successOperation;
|
|
555
|
+
let b2 = false;
|
|
556
|
+
w2 && "noOperation" === w2 && (b2 = true);
|
|
557
|
+
let T2 = m2.tableName;
|
|
558
|
+
if (o2) {
|
|
559
|
+
const t2 = f2.props.base.tableUuid ? f2.props.base.tableUuid : e2.tableUuid;
|
|
560
|
+
T2 = U(m2, t2);
|
|
561
|
+
} else $(m2.code, m2.entity.data);
|
|
562
|
+
const k2 = function(e3, o3, s3, i3, r3, u3, d3, m3, f3) {
|
|
563
|
+
return new Promise((g3, C3) => {
|
|
564
|
+
const w3 = o3.props.base.title, b3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
565
|
+
p.confirm(l().t(b3, { name: w3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
566
|
+
const a2 = e3.systemCode, l2 = e3.backendUrl, p2 = Z(e3, o3, i3, r3, u3, m3, null);
|
|
567
|
+
p2.tableName = f3;
|
|
568
|
+
let d4 = t(l2, e3.isTest) + s3;
|
|
569
|
+
d4 = n(d4, a2, l2, e3.isTest), c.post(d4, p2).then((e4) => {
|
|
570
|
+
g3(e4);
|
|
571
|
+
}).catch((e4) => {
|
|
572
|
+
C3(e4);
|
|
573
|
+
});
|
|
574
|
+
}).catch(() => {
|
|
575
|
+
C3("点击了取消按钮");
|
|
560
576
|
});
|
|
561
|
-
}).catch(() => {
|
|
562
|
-
C3("点击了取消按钮");
|
|
563
577
|
});
|
|
564
|
-
});
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
}
|
|
578
|
+
}(m2, f2, i2, b2, u2, g2, s2, C2, T2);
|
|
579
|
+
k2 ? k2.then((e3) => {
|
|
580
|
+
!o2 && e3 && q(m2.code, m2.entity.data), ne(m2, f2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
|
|
581
|
+
}).catch((e3) => {
|
|
582
|
+
d2(e3);
|
|
583
|
+
}) : (o2 || q(m2.code, m2.entity.data), d2("request不存在"));
|
|
584
|
+
}
|
|
571
585
|
});
|
|
572
586
|
}
|
|
573
587
|
function ue(e2, s2) {
|
|
574
588
|
var _a, _b, _c;
|
|
575
|
-
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
589
|
+
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = U(i2, d2), f2 = new FormData();
|
|
576
590
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2);
|
|
577
591
|
const g2 = (_b = (_a = a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
578
592
|
g2 && f2.append("currentOperation", g2), f2.append("isMobile", L()), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
@@ -586,14 +600,14 @@ function ue(e2, s2) {
|
|
|
586
600
|
T2 && f2.append("formNoRuleCode", T2);
|
|
587
601
|
const k2 = e2.listCode;
|
|
588
602
|
k2 && f2.append("listCode", k2);
|
|
589
|
-
let
|
|
590
|
-
|
|
591
|
-
const
|
|
592
|
-
null !=
|
|
593
|
-
const
|
|
594
|
-
|
|
595
|
-
const
|
|
596
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
603
|
+
let h2 = false;
|
|
604
|
+
h2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", h2 + ""), f2.append("pageCode", i2.code);
|
|
605
|
+
const y2 = o(i2);
|
|
606
|
+
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
607
|
+
const I2 = v(a2, i2);
|
|
608
|
+
I2 && f2.append("functionCode", I2);
|
|
609
|
+
const S2 = Te(i2);
|
|
610
|
+
f2.append("additionalParamMapStr", JSON.stringify(S2));
|
|
597
611
|
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
598
612
|
f2.append("isPermission", R2 + "");
|
|
599
613
|
const M2 = i2.systemCode;
|
|
@@ -601,7 +615,7 @@ function ue(e2, s2) {
|
|
|
601
615
|
const N2 = i2.backendUrl;
|
|
602
616
|
let x2 = t(N2, i2.isTest) + "/dsc/commons/import-data";
|
|
603
617
|
x2 = n(x2, M2, N2, i2.isTest), c.post(x2, f2).then((e3) => {
|
|
604
|
-
if (
|
|
618
|
+
if (h2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(i2);
|
|
605
619
|
else {
|
|
606
620
|
let t2 = false;
|
|
607
621
|
e3 ? (t2 = false, u({ dangerouslyUseHTMLString: true, showClose: true, type: "warning", message: e3 })) : (u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.successfulImport") }), t2 = true), ne(i2, a2, e3, null, true), i2.result = t2, P(i2, a2);
|
|
@@ -621,7 +635,7 @@ function pe(e2, t2) {
|
|
|
621
635
|
function de(e2) {
|
|
622
636
|
var _a, _b, _c;
|
|
623
637
|
const t2 = e2.pageContext, n2 = e2.configureObj, o2 = t2.entity.data, i2 = t2.systemCode, a2 = t2.code;
|
|
624
|
-
let r2 =
|
|
638
|
+
let r2 = v(n2, t2);
|
|
625
639
|
r2 || (r2 = a2 + ".xxx"), o2.id || o2.ID || (o2.PAGE_CODE = t2.code, o2.PAGE_VERSION = t2.version);
|
|
626
640
|
const c2 = { entity: o2, pageMoel: t2.entity.page, formNoRuleCode: t2.formNoRuleCode, tableName: t2.tableName, emailTemplateCode: t2.emailTemplateCode, definitionId: t2.definitionId, functionCode: r2, systemCode: i2, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
627
641
|
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);
|
|
@@ -632,7 +646,7 @@ function de(e2) {
|
|
|
632
646
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
633
647
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = i2);
|
|
634
648
|
const d2 = Te(t2);
|
|
635
|
-
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
|
|
649
|
+
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]));
|
|
636
650
|
const m2 = n2.props.base.successOperation;
|
|
637
651
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
638
652
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -656,9 +670,9 @@ function me(e2, t2, n2, o2, s2) {
|
|
|
656
670
|
}
|
|
657
671
|
if (e2.completeTaskParam) {
|
|
658
672
|
const t3 = e2.completeTaskParam;
|
|
659
|
-
r2 = t3.taskId, o2 && (o2.taskId = r2),
|
|
673
|
+
r2 = t3.taskId, o2 && (o2.taskId = r2), I(i2, a2, "_completeTaskParam", t3), n2.fieldPermissions = t3.fieldPermissions, n2.actionPermissions = t3.actionPermissions, n2.workflowButtonComponent = t3.buttonComponent, n2.completeTaskParam = t3, n2.completeTaskParam.opinion = null;
|
|
660
674
|
}
|
|
661
|
-
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap,
|
|
675
|
+
n2.entity || (n2.entity = {}), n2.entity.task = e2.taskParamMap, I(i2, a2, "_currentActivityName", e2.taskName);
|
|
662
676
|
}
|
|
663
677
|
return o2 && (o2.operationResult = s2), t2 || ne(n2, o2.configureObj, e2, null, false), true;
|
|
664
678
|
}
|
|
@@ -666,8 +680,10 @@ async function fe(e2, o2) {
|
|
|
666
680
|
const s2 = await ge(e2);
|
|
667
681
|
return new Promise((i2, a2) => {
|
|
668
682
|
var _a;
|
|
669
|
-
|
|
670
|
-
|
|
683
|
+
const r2 = e2.pageContext;
|
|
684
|
+
if (r2.fileuploadInfo && r2.fileuploadInfo.length > 0) u({ message: l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: r2.fileuploadInfo[0].label }), type: "warning", showClose: true }), i2(false);
|
|
685
|
+
else if (s2) {
|
|
686
|
+
const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
671
687
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
672
688
|
if (f2 = n(f2, p2, d2, r2.isTest), !f2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
673
689
|
const g2 = de(e2);
|
|
@@ -751,7 +767,7 @@ function ke(e2, o2) {
|
|
|
751
767
|
});
|
|
752
768
|
}
|
|
753
769
|
}
|
|
754
|
-
function
|
|
770
|
+
function he(e2, o2) {
|
|
755
771
|
if (o2) {
|
|
756
772
|
const s2 = e2.pageContext, i2 = e2.configureObj, a2 = s2.systemCode, r2 = s2.backendUrl;
|
|
757
773
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
@@ -764,7 +780,7 @@ function ye(e2, o2) {
|
|
|
764
780
|
});
|
|
765
781
|
}
|
|
766
782
|
}
|
|
767
|
-
async function
|
|
783
|
+
async function ye(e2, o2) {
|
|
768
784
|
if (o2) {
|
|
769
785
|
const s2 = await function(e3) {
|
|
770
786
|
return new Promise((t2, n2) => {
|
|
@@ -820,20 +836,20 @@ async function Pe(e2, t2, o2, s2) {
|
|
|
820
836
|
} else a2(true);
|
|
821
837
|
});
|
|
822
838
|
}
|
|
823
|
-
function
|
|
839
|
+
function Ie(e2) {
|
|
824
840
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl, a2 = o2.completeTaskParam;
|
|
825
841
|
let r2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnable-task/" + a2.taskId;
|
|
826
842
|
if (r2 = n(r2, s2, i2, o2.isTest), !r2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
827
843
|
const p2 = o2.code, d2 = Te(o2), m2 = { beanName: o2.beanName, additionalParamMap: d2, tableName: o2.tableName, functionCode: p2 + ".xxx", pageCode: o2.code };
|
|
828
844
|
return c.post(r2, m2);
|
|
829
845
|
}
|
|
830
|
-
function
|
|
846
|
+
function ve(e2, n2) {
|
|
831
847
|
const o2 = e2.pageContext, s2 = e2.configureObj, i2 = o2.backendUrl, a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = de(e2);
|
|
832
848
|
n2.nodeName && (r2.returnToNodeName = n2.nodeName), n2.nodeId && (r2.returnToNodeId = n2.nodeId), Pe(e2, r2, a2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
833
849
|
P(o2, s2);
|
|
834
850
|
});
|
|
835
851
|
}
|
|
836
|
-
function
|
|
852
|
+
function Se(e2) {
|
|
837
853
|
const o2 = e2.pageContext, s2 = o2.systemCode, i2 = o2.backendUrl;
|
|
838
854
|
let a2 = t(i2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
839
855
|
const r2 = de(e2);
|
|
@@ -991,17 +1007,17 @@ function Oe(e2, t2, n2, o2, s2, i2) {
|
|
|
991
1007
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
992
1008
|
}
|
|
993
1009
|
}
|
|
994
|
-
return
|
|
1010
|
+
return a2;
|
|
995
1011
|
}
|
|
996
1012
|
function Ae(e2, t2, n2) {
|
|
997
1013
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
998
1014
|
}
|
|
999
|
-
function
|
|
1000
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
1015
|
+
function Ue(e2, t2) {
|
|
1016
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, Ee(e2, t2).then((t3) => {
|
|
1001
1017
|
e2.isRefresh = true;
|
|
1002
1018
|
});
|
|
1003
1019
|
}
|
|
1004
|
-
function
|
|
1020
|
+
function Ee(e2, n2, s2) {
|
|
1005
1021
|
const i2 = e2.pageType;
|
|
1006
1022
|
if (i2 && "form" === i2) {
|
|
1007
1023
|
e2.canClick = false;
|
|
@@ -1011,16 +1027,16 @@ function Ue(e2, n2, s2) {
|
|
|
1011
1027
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1012
1028
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1013
1029
|
const f2 = p2 ? p2.taskId : null, C2 = l2, w2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: a2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1014
|
-
if (
|
|
1030
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1015
1031
|
const t2 = {};
|
|
1016
1032
|
e3.tableUuids.forEach((e4) => {
|
|
1017
1033
|
const n4 = r(l2, u2, e4);
|
|
1018
1034
|
t2[n4] = n4;
|
|
1019
1035
|
}), w2.listCodesMap = t2;
|
|
1020
1036
|
}
|
|
1021
|
-
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);
|
|
1037
|
+
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), w2.isMobile = L();
|
|
1022
1038
|
const b2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = B();
|
|
1023
|
-
T2.restorePageLoadState(),
|
|
1039
|
+
T2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
|
|
1024
1040
|
const k2 = H(e3.code, w2.id);
|
|
1025
1041
|
c.post(b2, w2).then(async (t2) => {
|
|
1026
1042
|
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);
|
|
@@ -1056,7 +1072,7 @@ function Ue(e2, n2, s2) {
|
|
|
1056
1072
|
}
|
|
1057
1073
|
e5.actionPermissionMap = n5;
|
|
1058
1074
|
}(e4);
|
|
1059
|
-
}(e3), e3.canClick = true,
|
|
1075
|
+
}(e3), e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), T2.setFormPageDataLoadState(true), s3(t2);
|
|
1060
1076
|
}).catch((t2) => {
|
|
1061
1077
|
e3.canClick = true, i3(t2);
|
|
1062
1078
|
});
|
|
@@ -1067,21 +1083,21 @@ function Ue(e2, n2, s2) {
|
|
|
1067
1083
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1068
1084
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1069
1085
|
const f2 = p2 ? p2.taskId : null, C2 = l2, w2 = t(e3.backendUrl, e3.isTest), b2 = { pageCode: l2, pageVersion: u2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
1070
|
-
if (!b2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), m2 && (b2.ids = je(m2)), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), f2 && (b2.taskId = f2),
|
|
1086
|
+
if (!b2.id && p2 && p2._t_ && g(p2._t_ + "_id") && (b2.id = g(p2._t_ + "_id")), m2 && (b2.ids = je(m2)), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), f2 && (b2.taskId = f2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1071
1087
|
const t2 = {};
|
|
1072
1088
|
e3.tableUuids.forEach((e4) => {
|
|
1073
1089
|
const n4 = r(l2, u2, e4);
|
|
1074
1090
|
t2[n4] = n4;
|
|
1075
1091
|
}), b2.listCodesMap = t2;
|
|
1076
1092
|
}
|
|
1077
|
-
e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
|
|
1093
|
+
e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap), b2.isMobile = L();
|
|
1078
1094
|
const T2 = w2 + "/dsc/commons/gets", k2 = B();
|
|
1079
|
-
k2.restorePageLoadState(),
|
|
1080
|
-
const
|
|
1095
|
+
k2.restorePageLoadState(), h(null, e3, e3, "beforeFormLoadData");
|
|
1096
|
+
const y2 = H(e3.code, b2.id);
|
|
1081
1097
|
c.post(T2, b2).then(async (t2) => {
|
|
1082
|
-
t2 && (
|
|
1098
|
+
t2 && (y2 && await _e(e3, b2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
|
|
1083
1099
|
const n4 = e3.customRules, o3 = e3.rules, i4 = D(e3, n4, o3);
|
|
1084
|
-
e3.rules = i4, e3.canClick = true,
|
|
1100
|
+
e3.rules = i4, e3.canClick = true, h(null, e3, e3, "afterFormLoadData"), k2.setFormPageDataLoadState(true), s3(t2);
|
|
1085
1101
|
}).catch((t2) => {
|
|
1086
1102
|
e3.canClick = true, i3(t2);
|
|
1087
1103
|
});
|
|
@@ -1146,7 +1162,7 @@ function $e(e2, t2, n2) {
|
|
|
1146
1162
|
}, 3e3));
|
|
1147
1163
|
}
|
|
1148
1164
|
function qe(e2, t2) {
|
|
1149
|
-
return
|
|
1165
|
+
return E(e2, t2);
|
|
1150
1166
|
}
|
|
1151
1167
|
function He(e2, t2, n2, o2) {
|
|
1152
1168
|
_(e2, n2).then(() => {
|
|
@@ -1162,28 +1178,28 @@ export {
|
|
|
1162
1178
|
me as dealCompleteTaskParam,
|
|
1163
1179
|
Le as deleteChartCondition,
|
|
1164
1180
|
ke as doAddSigner,
|
|
1165
|
-
|
|
1181
|
+
he as doAddTransactor,
|
|
1166
1182
|
Ce as doAssign,
|
|
1167
|
-
|
|
1183
|
+
ye as doCreateCopyTask,
|
|
1168
1184
|
Fe as doFileTaskFunc,
|
|
1169
1185
|
ue as doImportFinally,
|
|
1170
1186
|
Re as doRemoveSigners,
|
|
1171
1187
|
Ne as doRemoveTransactors,
|
|
1172
|
-
|
|
1188
|
+
ve as doReturnTaskTo,
|
|
1173
1189
|
K as exportFormReport,
|
|
1174
1190
|
xe as extractWorkflowFunc,
|
|
1175
1191
|
Te as getAdditionalParamMap,
|
|
1176
|
-
|
|
1177
|
-
|
|
1192
|
+
Ee as getFormData,
|
|
1193
|
+
Se as getRemoveSigner,
|
|
1178
1194
|
Me as getRemoveTransactor,
|
|
1179
1195
|
te as getSaveFormRequest,
|
|
1180
1196
|
ee as getSaveFormRequestWithRow,
|
|
1181
|
-
|
|
1197
|
+
Ie as getTaskInformitions,
|
|
1182
1198
|
Oe as isVisibleWorkflowButton,
|
|
1183
1199
|
pe as judgeDataNumber,
|
|
1184
1200
|
Be as listChartConditions,
|
|
1185
1201
|
ce as refreshFormOrListPage,
|
|
1186
|
-
|
|
1202
|
+
Ue as refreshPage,
|
|
1187
1203
|
We as saveChartConditionBase,
|
|
1188
1204
|
Y as standardEvents,
|
|
1189
1205
|
ae as updateValuesWhenCloseDialog
|
|
@@ -187,7 +187,7 @@ function h(e2, s2, r2) {
|
|
|
187
187
|
}), r3.includes(false) && e6(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
|
|
188
188
|
t3.includes(false) ? e6(false) : e6(true);
|
|
189
189
|
}).catch((t3) => {
|
|
190
|
-
|
|
190
|
+
e6(false);
|
|
191
191
|
}) : e6(true);
|
|
192
192
|
});
|
|
193
193
|
return null;
|