super-page-runtime 2.3.40-sit1 → 2.3.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
- package/dist/es/components/runtime/utils/events/event-util.js +114 -114
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +8 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +104 -104
- package/dist/es/components/runtime/utils/events/validator-util.js +72 -69
- package/dist/es/components/runtime/utils/page-helper-util.d.ts +7 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +4 -0
- package/dist/es/components/runtime/utils/page-init-util.js +28 -26
- package/dist/es/components/runtime/utils/page-store.js +9 -9
- 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/common/task-informition-dialog.vue.js +7 -7
- 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 +39 -37
- 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 +49 -47
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +90 -89
- 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.vue.js +1 -1
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +115 -114
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -2,14 +2,14 @@ import { deepCopy as e, getBaseUrl as t, getRealRestApiPath as n, isWorkflowPage
|
|
|
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 h from "axios";
|
|
9
9
|
import { handleEvent as k, getTableUuid as y, doAfterClickEvent as P } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as I } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as v, getDefaultValue as
|
|
12
|
-
import { caculateShowCondition as
|
|
11
|
+
import { getPermissionCodes as v, getDefaultValue as x, getModelFields as R } from "../page-init-util.js";
|
|
12
|
+
import { caculateShowCondition as M, updateChartDatasources as S, getVariableValue as N, setVariableValue as O } from "../page-helper-util.js";
|
|
13
13
|
import U from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as A, getCurrentUserFileTasks as E, setFileTaskRead as _ } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as j, packageCustomRules as D } from "./validator-util.js";
|
|
@@ -54,7 +54,7 @@ const Y = { save: function(e2) {
|
|
|
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
56
|
g2 = n(g2, p2, d2, r2.isTest);
|
|
57
|
-
const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission,
|
|
57
|
+
const b2 = void 0 === u2.isPermission || "true" === u2.isPermission || u2.isPermission, w2 = o(r2), T2 = v(l2, r2), h2 = { ids: i2, functionCode: T2, isPermission: b2 + "", systemCode: p2, isWorkflowEntity: w2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
58
58
|
r2.beanName && (h2.beanName = r2.beanName);
|
|
59
59
|
const k2 = l2.props.deleteLogicSetting;
|
|
60
60
|
k2 && ("object" == typeof k2 ? h2.deleteLogicSetting = JSON.stringify(k2) : "string" == typeof k2 && (h2.deleteLogicSetting = k2));
|
|
@@ -64,7 +64,7 @@ const Y = { save: function(e2) {
|
|
|
64
64
|
P2 && (h2.isSafeDelete = P2);
|
|
65
65
|
const I2 = (_c = (_b = l2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
66
66
|
I2 && (h2.currentOperation = I2), h2.isMobile = B(), c.delete(g2, { data: h2 }).then((e4) => {
|
|
67
|
-
const t2 =
|
|
67
|
+
const t2 = C(r2, m2);
|
|
68
68
|
t2 && (t2.isDeleteChange(true), t2.clearSelections()), ne(r2, l2, e4, "superPageRuntimeMessage.successfulDelete", true), s2(true);
|
|
69
69
|
}).catch((e4) => {
|
|
70
70
|
a2(e4);
|
|
@@ -89,13 +89,13 @@ const Y = { save: function(e2) {
|
|
|
89
89
|
const b2 = e3.listCode;
|
|
90
90
|
b2 && (d2 += "&listCode=" + b2);
|
|
91
91
|
n2.beanName && (d2 += "&beanName=" + n2.beanName);
|
|
92
|
-
const
|
|
93
|
-
|
|
92
|
+
const w2 = v(o2, n2);
|
|
93
|
+
w2 && (d2 += "&functionCode=" + w2);
|
|
94
94
|
n2.tableName && (d2 += "&tableName=" + n2.tableName);
|
|
95
95
|
n2.code && (d2 += "&pageCode=" + n2.code);
|
|
96
96
|
n2.version && (d2 += "&pageVersion=" + n2.version);
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
const C2 = f();
|
|
98
|
+
C2 && (d2 += "&JWT=" + C2);
|
|
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=" + B();
|
|
@@ -131,10 +131,10 @@ const Y = { save: function(e2) {
|
|
|
131
131
|
}(e2);
|
|
132
132
|
}, search: function(e2) {
|
|
133
133
|
const t2 = e2.pageContext, n2 = e2.tableUuid;
|
|
134
|
-
|
|
134
|
+
C(t2, n2).refresh();
|
|
135
135
|
}, showSearch: function(e2) {
|
|
136
136
|
const t2 = e2.pageContext, n2 = e2.tableUuid;
|
|
137
|
-
|
|
137
|
+
C(t2, n2).showMobileSearch();
|
|
138
138
|
}, workflowSave: function(e2) {
|
|
139
139
|
return T.$emit("clearTableAllStartEditing"), async function(e3) {
|
|
140
140
|
return new Promise((o2, s2) => {
|
|
@@ -143,7 +143,7 @@ const Y = { save: function(e2) {
|
|
|
143
143
|
if (e4.fileuploadInfo && e4.fileuploadInfo.length > 0) {
|
|
144
144
|
const t2 = e4.fileuploadInfo[0];
|
|
145
145
|
let n2;
|
|
146
|
-
return
|
|
146
|
+
return t2.isTable && t2.tableTitle && void 0 !== t2.rowIndex ? (t2.rowIndex, t2.rowIndex, n2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: t2.label, tableTitle: t2.tableTitle, rowIndex: t2.rowIndex + 1 })) : n2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: t2.label }), u({ message: n2, type: "warning", showClose: true }), true;
|
|
147
147
|
}
|
|
148
148
|
return false;
|
|
149
149
|
}(a2)) return void o2(false);
|
|
@@ -167,7 +167,7 @@ const Y = { save: function(e2) {
|
|
|
167
167
|
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
168
168
|
const e4 = a2.fileuploadInfo[0];
|
|
169
169
|
let t2;
|
|
170
|
-
|
|
170
|
+
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? (e4.rowIndex, e4.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
171
171
|
} else {
|
|
172
172
|
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/start";
|
|
173
173
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
@@ -189,7 +189,7 @@ const Y = { save: function(e2) {
|
|
|
189
189
|
if (a2.fileuploadInfo && a2.fileuploadInfo.length > 0) {
|
|
190
190
|
const e4 = a2.fileuploadInfo[0];
|
|
191
191
|
let t2;
|
|
192
|
-
|
|
192
|
+
e4.isTable && e4.tableTitle && void 0 !== e4.rowIndex ? (e4.rowIndex, e4.rowIndex, t2 = l().t("superPageRuntimeMessage.fileUploadUnCompleteTable", { label: e4.label, tableTitle: e4.tableTitle, rowIndex: e4.rowIndex + 1 })) : t2 = l().t("superPageRuntimeMessage.fileUploadUnComplete", { label: e4.label }), u({ message: t2, type: "warning", showClose: true }), o2(false);
|
|
193
193
|
} else {
|
|
194
194
|
const i2 = a2.systemCode, r2 = a2.backendUrl;
|
|
195
195
|
let p2 = t(r2, a2.isTest) + "/dsc/workflow-commons/submit";
|
|
@@ -295,15 +295,16 @@ const Y = { save: function(e2) {
|
|
|
295
295
|
}, viewDetail: function(e2) {
|
|
296
296
|
}, lineEditCreate: function(e2) {
|
|
297
297
|
return function(e3) {
|
|
298
|
-
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 =
|
|
299
|
-
o2 && (e3.getDefaultValueFunc =
|
|
298
|
+
const t2 = e3.pageContext, n2 = e3.tableUuid, o2 = C(t2, n2);
|
|
299
|
+
o2 && (e3.getDefaultValueFunc = x, o2.createRow(e3.listCode, {}, e3));
|
|
300
300
|
}(e2);
|
|
301
301
|
}, printLabel: function(e2) {
|
|
302
302
|
return function(e3) {
|
|
303
303
|
let t2 = null;
|
|
304
304
|
try {
|
|
305
305
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
306
|
-
} catch (
|
|
306
|
+
} catch (t3) {
|
|
307
|
+
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
307
308
|
}
|
|
308
309
|
U.printLabel(e3, t2);
|
|
309
310
|
}(e2);
|
|
@@ -325,7 +326,7 @@ const Y = { save: function(e2) {
|
|
|
325
326
|
a2 && (a2.state = "disabled");
|
|
326
327
|
const r2 = [];
|
|
327
328
|
for (let e4 = 0; e4 < o2.length; e4++) {
|
|
328
|
-
const t2 = o2[e4], s3 =
|
|
329
|
+
const t2 = o2[e4], s3 = C(n2, t2);
|
|
329
330
|
if (s3) {
|
|
330
331
|
const e5 = s3.getConfigure();
|
|
331
332
|
e5 && e5.exportable && e5._dynamicShowFlag && s3.exportChart && r2.push(s3.exportChart());
|
|
@@ -372,7 +373,7 @@ function z(e2) {
|
|
|
372
373
|
let s2 = null;
|
|
373
374
|
o2 && o2.runtime && (s2 = o2.runtime.props);
|
|
374
375
|
const a2 = s2 ? s2.state : void 0;
|
|
375
|
-
s2 && (s2.state = "disabled"),
|
|
376
|
+
s2 && (s2.state = "disabled"), S(t2, n2, void 0, e2.isInitChart).then(() => {
|
|
376
377
|
s2 && (s2.state = a2);
|
|
377
378
|
}).catch(() => {
|
|
378
379
|
s2 && (s2.state = a2);
|
|
@@ -381,23 +382,23 @@ function z(e2) {
|
|
|
381
382
|
function K(e2, n2, s2, a2) {
|
|
382
383
|
var _a, _b, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
383
384
|
e2.clickUuid = n2.uuid, e2.canClick = false;
|
|
384
|
-
const i2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission,
|
|
385
|
+
const i2 = s2.templateUuid, r2 = s2.templateName, c2 = e2.systemCode, l2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting, u2 = o(e2), p2 = e2.beanName, d2 = n2.props.base, m2 = n2.tableName ? n2.tableName : e2.tableName, f2 = e2.backendUrl, g2 = W.getFormViewData(e2), b2 = void 0 === d2.isPermission || "true" === d2.isPermission || d2.isPermission, w2 = { entity: g2, fileName: i2, showName: r2, beanName: p2, isWorkflowForm: u2, functionCode: v(n2, e2), tableName: m2, isPermission: b2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version, listCodesInitSearchForm: e2.listCodesInitSearchForm };
|
|
385
386
|
if (e2.tableUuids && e2.tableUuids.length > 0) {
|
|
386
387
|
const t2 = {};
|
|
387
388
|
e2.tableUuids.forEach((n3) => {
|
|
388
|
-
const o2 =
|
|
389
|
+
const o2 = C(e2, n3);
|
|
389
390
|
if (o2) {
|
|
390
391
|
const e3 = o2.getConfigure().code, n4 = o2.getSuperGridRef().columns;
|
|
391
392
|
n4 && n4.length > 0 && (t2[e3] = n4);
|
|
392
393
|
}
|
|
393
|
-
}),
|
|
394
|
+
}), w2.subTableColumns = t2;
|
|
394
395
|
}
|
|
395
|
-
l2 && (
|
|
396
|
+
l2 && (w2.logSettingText = l2.join(""));
|
|
396
397
|
const T2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
397
|
-
T2 && (
|
|
398
|
+
T2 && (w2.currentOperation = T2), w2.isMobile = B();
|
|
398
399
|
const k2 = Te(e2);
|
|
399
400
|
let y2;
|
|
400
|
-
|
|
401
|
+
w2.additionalParamMap = k2, 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("-~") : "", y2 = a2 ? function(e3, n3, o2, s3) {
|
|
401
402
|
return new Promise((a3, i3) => {
|
|
402
403
|
const r3 = t(n3, s3) + "/dsc/commons/export-pdf";
|
|
403
404
|
X();
|
|
@@ -409,7 +410,7 @@ function K(e2, n2, s2, a2) {
|
|
|
409
410
|
i3(e4);
|
|
410
411
|
});
|
|
411
412
|
});
|
|
412
|
-
}(r2, f2,
|
|
413
|
+
}(r2, f2, w2, e2.isTest) : function(e3, n3, o2, s3) {
|
|
413
414
|
return new Promise((a3, i3) => {
|
|
414
415
|
const r3 = t(n3, s3) + "/dsc/commons/export-reports";
|
|
415
416
|
X();
|
|
@@ -423,7 +424,7 @@ function K(e2, n2, s2, a2) {
|
|
|
423
424
|
i3(e4);
|
|
424
425
|
});
|
|
425
426
|
});
|
|
426
|
-
}(r2, f2,
|
|
427
|
+
}(r2, f2, w2, e2.isTest), y2 && y2.then(() => {
|
|
427
428
|
P(e2, n2);
|
|
428
429
|
}).catch((t2) => {
|
|
429
430
|
window.$message.error("导出失败..."), P(e2, n2);
|
|
@@ -431,7 +432,7 @@ function K(e2, n2, s2, a2) {
|
|
|
431
432
|
}
|
|
432
433
|
function X() {
|
|
433
434
|
h.defaults.headers.common.Authorization = f();
|
|
434
|
-
const e2 =
|
|
435
|
+
const e2 = w();
|
|
435
436
|
if (e2) {
|
|
436
437
|
const t2 = "_RUN_CURRENT_ROLE";
|
|
437
438
|
h.defaults.headers.common[t2] = e2;
|
|
@@ -467,10 +468,10 @@ function Z(e2, t2, n2, a2, i2, r2, c2) {
|
|
|
467
468
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
468
469
|
const b2 = De(t2);
|
|
469
470
|
b2 && (f2.autoSetValueData = b2);
|
|
470
|
-
const
|
|
471
|
-
|
|
472
|
-
const
|
|
473
|
-
|
|
471
|
+
const w2 = (_a = t2.props.base) == null ? void 0 : _a.logSetting;
|
|
472
|
+
w2 && (f2.logSettingText = w2.join("")), f2.systemCode || (f2.systemCode = u2);
|
|
473
|
+
const C2 = e2.beanName;
|
|
474
|
+
C2 && (f2.beanName = C2), i2 && (f2.dynamicColumnInfo = i2), a2 && (f2.mainDefaultValueColumns = a2);
|
|
474
475
|
const T2 = Te(e2);
|
|
475
476
|
f2.additionalParamMap = T2, void 0 !== n2 && (f2.unControlVersion = n2);
|
|
476
477
|
const h2 = (_c = (_b = t2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -494,11 +495,10 @@ function ne(t2, n2, o2, s2, a2) {
|
|
|
494
495
|
let a3 = n3.props.base.successOperation;
|
|
495
496
|
const i3 = n3.props.base.isNeedValueMapping, r2 = y(t3, n3);
|
|
496
497
|
a3 || re.includes(n3.name) || (a3 = "refresh");
|
|
497
|
-
if ("refresh" === a3) {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
498
|
+
if ("refresh" === a3) if (r2) {
|
|
499
|
+
C(t3, r2).refresh();
|
|
500
|
+
} else console.error("tableUuid is empty");
|
|
501
|
+
else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
502
502
|
const s4 = e(t3.entity.page);
|
|
503
503
|
let a4 = o3;
|
|
504
504
|
a4 || (a4 = {}), Object.assign(s4, a4), ae(t3, n3, s4, i3);
|
|
@@ -542,21 +542,21 @@ function ae(e2, t2, n2, o2) {
|
|
|
542
542
|
T.$has(r2) ? T.$emit(r2, { isNeedValueMapping: i2, dataModel: n2, sourceConfigureObj: t2, sourceTableName: a2, jumpMode: s2 }) : "refresh" === s2 && window.history.back();
|
|
543
543
|
}
|
|
544
544
|
}
|
|
545
|
-
function ie(e2, t2, n2, o2, s2) {
|
|
545
|
+
function ie({ parentPageContext: e2, parentEventParams: t2, parentConfigureObj: n2, sourceModel: o2, sourceTableName: s2, valueMappings: a2 }) {
|
|
546
546
|
var _a;
|
|
547
|
-
|
|
548
|
-
const
|
|
547
|
+
a2 || (a2 = n2.runtime && n2.runtime.linkPage && n2.runtime.linkPage.valueMappings ? n2.runtime.linkPage.valueMappings : null) || (a2 = (_a = n2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
548
|
+
const i2 = e2.tableName;
|
|
549
549
|
!function(e3, t3, n3) {
|
|
550
550
|
if (e3 && null !== e3 && t3) {
|
|
551
551
|
let o3 = e3;
|
|
552
552
|
Array.isArray(e3) && e3.length > 0 && (o3 = e3[0]), t3.forEach((e4) => {
|
|
553
553
|
const t4 = e4.source;
|
|
554
554
|
if (!t4) return;
|
|
555
|
-
const s3 = t4.split("."), a3 = N(o3, s3),
|
|
555
|
+
const s3 = t4.split("."), a3 = N(o3, s3), i3 = e4.target, r2 = R(null, i3);
|
|
556
556
|
O(n3.entity, r2, a3);
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
}(
|
|
559
|
+
}(o2, a2, e2), k(null, e2, n2, "setValue", { sourceModel: o2, sourceTableName: s2, entity: e2.entity.data, targetTableName: i2, eventParams: t2 });
|
|
560
560
|
}
|
|
561
561
|
const re = ["dropdown"];
|
|
562
562
|
function ce(e2, t2, n2, o2) {
|
|
@@ -569,8 +569,8 @@ function ce(e2, t2, n2, o2) {
|
|
|
569
569
|
if (a2 && "list" === a2) {
|
|
570
570
|
const n3 = y(e2, t2);
|
|
571
571
|
if (n3) {
|
|
572
|
-
|
|
573
|
-
}
|
|
572
|
+
C(e2, n3).refresh();
|
|
573
|
+
} else console.error("tableUuid is empty");
|
|
574
574
|
} else if (a2 && "form" === a2) {
|
|
575
575
|
const t3 = e2.entity.data;
|
|
576
576
|
Ae(e2, t3.ID ? t3.ID : t3.id);
|
|
@@ -583,11 +583,11 @@ function le(e2, o2, s2, a2) {
|
|
|
583
583
|
if (m2.fileuploadInfo && m2.fileuploadInfo.length > 0) {
|
|
584
584
|
const e3 = m2.fileuploadInfo[0];
|
|
585
585
|
let t2;
|
|
586
|
-
|
|
586
|
+
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);
|
|
587
587
|
} else {
|
|
588
|
-
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids,
|
|
589
|
-
let
|
|
590
|
-
|
|
588
|
+
const u2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, w2 = f2.props.base.successOperation;
|
|
589
|
+
let C2 = false;
|
|
590
|
+
w2 && "noOperation" === w2 && (C2 = true);
|
|
591
591
|
let T2 = m2.tableName;
|
|
592
592
|
if (o2) {
|
|
593
593
|
const t2 = f2.props.base.tableUuid ? f2.props.base.tableUuid : e2.tableUuid;
|
|
@@ -595,8 +595,8 @@ function le(e2, o2, s2, a2) {
|
|
|
595
595
|
} else $(m2.code, m2.entity.data);
|
|
596
596
|
const h2 = function(e3, o3, s3, a3, r3, u3, d3, m3, f3) {
|
|
597
597
|
return new Promise((g3, b3) => {
|
|
598
|
-
const
|
|
599
|
-
p.confirm(l().t(
|
|
598
|
+
const w3 = o3.props.base.title, C3 = "superPageRuntimeMessage.whetherToConfirm" + i(d3);
|
|
599
|
+
p.confirm(l().t(C3, { name: w3 }), l().t("superPageRuntimeMessage.tips"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
600
600
|
const i2 = e3.systemCode, l2 = e3.backendUrl, p2 = Z(e3, o3, a3, r3, u3, m3, null);
|
|
601
601
|
p2.tableName = f3;
|
|
602
602
|
let d4 = t(l2, e3.isTest) + s3;
|
|
@@ -609,7 +609,7 @@ function le(e2, o2, s2, a2) {
|
|
|
609
609
|
b3("点击了取消按钮");
|
|
610
610
|
});
|
|
611
611
|
});
|
|
612
|
-
}(m2, f2, a2,
|
|
612
|
+
}(m2, f2, a2, C2, u2, g2, s2, b2, T2);
|
|
613
613
|
h2 ? h2.then((e3) => {
|
|
614
614
|
!o2 && e3 && q(m2.code, m2.entity.data), ne(m2, f2, e3, "superPageRuntimeMessage.successfulSave", o2), r2(e3);
|
|
615
615
|
}).catch((e3) => {
|
|
@@ -626,10 +626,10 @@ function ue(e2, s2) {
|
|
|
626
626
|
g2 && f2.append("currentOperation", g2), f2.append("isMobile", B()), a2.importBeanName && f2.append("importBeanName", a2.importBeanName), a2.beanName && f2.append("beanName", a2.beanName);
|
|
627
627
|
const b2 = (_c = r2.props.importSetting) == null ? void 0 : _c.listViewImportDuplicate;
|
|
628
628
|
b2 && f2.append("importDuplicateRule", b2);
|
|
629
|
-
const
|
|
630
|
-
|
|
631
|
-
const
|
|
632
|
-
|
|
629
|
+
const w2 = a2.judgeHeavyList;
|
|
630
|
+
w2 && f2.append("judgeHeavyList", JSON.stringify(w2));
|
|
631
|
+
const C2 = De(i2);
|
|
632
|
+
C2 && f2.append("autoSetValueData", C2);
|
|
633
633
|
const T2 = a2.formNoRuleCode;
|
|
634
634
|
T2 && f2.append("formNoRuleCode", T2);
|
|
635
635
|
const h2 = e2.listCode;
|
|
@@ -640,15 +640,15 @@ function ue(e2, s2) {
|
|
|
640
640
|
null != y2 && f2.append("isWorkflowEntity", y2 + "");
|
|
641
641
|
const I2 = v(i2, a2);
|
|
642
642
|
I2 && f2.append("functionCode", I2);
|
|
643
|
-
const
|
|
644
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
645
|
-
const
|
|
646
|
-
f2.append("isPermission",
|
|
647
|
-
const
|
|
648
|
-
|
|
649
|
-
const
|
|
650
|
-
let N2 = t(
|
|
651
|
-
N2 = n(N2,
|
|
643
|
+
const x2 = Te(a2);
|
|
644
|
+
f2.append("additionalParamMapStr", JSON.stringify(x2));
|
|
645
|
+
const R2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
646
|
+
f2.append("isPermission", R2 + "");
|
|
647
|
+
const M2 = a2.systemCode;
|
|
648
|
+
M2 && f2.append("systemCode", M2);
|
|
649
|
+
const S2 = a2.backendUrl;
|
|
650
|
+
let N2 = t(S2, a2.isTest) + "/dsc/commons/import-data";
|
|
651
|
+
N2 = n(N2, M2, S2, a2.isTest), c.post(N2, f2).then((e3) => {
|
|
652
652
|
if (k2) u({ showClose: true, type: "success", message: l().t("superPageRuntimeMessage.asyncImport") }), Fe(a2);
|
|
653
653
|
else {
|
|
654
654
|
let t2 = false;
|
|
@@ -680,7 +680,7 @@ function de(e2) {
|
|
|
680
680
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
681
681
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
682
682
|
const d2 = Te(t2);
|
|
683
|
-
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids
|
|
683
|
+
c2.additionalParamMap = d2, d2.ids && d2.ids.length > 0 && ("string" == typeof d2.ids ? c2.ids = d2.ids.split(",") : Array.isArray(d2.ids) ? c2.ids = d2.ids : "number" == typeof ids ? c2.ids = [d2.ids] : console.error("ids参数类型错误"));
|
|
684
684
|
const m2 = n2.props.base.successOperation;
|
|
685
685
|
m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true;
|
|
686
686
|
const f2 = (_c = (_b = n2.runtime) == null ? void 0 : _b.props) == null ? void 0 : _c.title;
|
|
@@ -718,7 +718,7 @@ async function fe(e2, o2) {
|
|
|
718
718
|
if (r2.fileuploadInfo && r2.fileuploadInfo.length > 0) {
|
|
719
719
|
const e3 = r2.fileuploadInfo[0];
|
|
720
720
|
let t2;
|
|
721
|
-
|
|
721
|
+
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);
|
|
722
722
|
} else if (s2) {
|
|
723
723
|
const p2 = r2.systemCode, d2 = r2.backendUrl, m2 = true === s2 ? (_a = r2.completeTaskParam) == null ? void 0 : _a.opinion : s2;
|
|
724
724
|
let f2 = t(d2, r2.isTest) + "/dsc/workflow-commons/complete-tasks";
|
|
@@ -744,7 +744,7 @@ function ge(e2) {
|
|
|
744
744
|
let n3 = false;
|
|
745
745
|
if (((_c = (_b = o2.props) == null ? void 0 : _b.base) == null ? void 0 : _c.isMustOpinion) && (n3 = true), true === n3) {
|
|
746
746
|
const t3 = e2.pageContext, s2 = (_e2 = (_d = o2.props) == null ? void 0 : _d.base) == null ? void 0 : _e2.mustOpinionConditions;
|
|
747
|
-
n3 =
|
|
747
|
+
n3 = M(t3, s2);
|
|
748
748
|
}
|
|
749
749
|
true === n3 ? (u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.pleaseInputOpinion") }), e2.pageContext.workflowOpinion.focusOpinionInput = true, t2(false)) : t2(true);
|
|
750
750
|
} else t2(true);
|
|
@@ -758,14 +758,14 @@ function be(e2, n2) {
|
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
}
|
|
761
|
-
function
|
|
761
|
+
function we(e2) {
|
|
762
762
|
var _a, _b;
|
|
763
763
|
const t2 = e2.pageContext, n2 = t2.entity.data, o2 = t2.systemCode, s2 = t2.code, a2 = e2.configureObj, i2 = Te(t2), r2 = void 0 !== n2.ID && null !== n2.ID ? n2.ID : n2.id, c2 = { beanName: t2.beanName, id: r2, entity: n2, additionalParamMap: i2, tableName: t2.tableName, functionCode: s2 + ".xxx", isWorkflowEntity: true, listCodesMap: t2.listCodesMap, pageCode: t2.code, pageVersion: t2.version, listCodesInitSearchForm: t2.listCodesInitSearchForm };
|
|
764
|
-
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle =
|
|
764
|
+
c2.completeTaskParam = { taskId: t2.completeTaskParam.taskId, systemCode: o2 }, c2.completeTaskParam.customTaskTitle = Ce(e2);
|
|
765
765
|
const l2 = (_b = (_a = a2 == null ? void 0 : a2.runtime) == null ? void 0 : _a.props) == null ? void 0 : _b.title;
|
|
766
766
|
return l2 && (c2.currentOperation = l2), c2.isMobile = B(), c2;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function Ce(e2) {
|
|
769
769
|
var _a, _b, _c;
|
|
770
770
|
let t2 = null;
|
|
771
771
|
if (((_b = (_a = e2.configureObj.props.task) == null ? void 0 : _a.title) == null ? void 0 : _b.length) > 0) for (let n2 = 0; n2 < e2.configureObj.props.task.title.length; n2++) {
|
|
@@ -775,7 +775,7 @@ function we(e2) {
|
|
|
775
775
|
t2 = o2.config;
|
|
776
776
|
break;
|
|
777
777
|
}
|
|
778
|
-
if (
|
|
778
|
+
if (M(e2.pageContext, o2.conditions)) {
|
|
779
779
|
t2 = o2.config;
|
|
780
780
|
break;
|
|
781
781
|
}
|
|
@@ -796,7 +796,7 @@ function he(e2, o2) {
|
|
|
796
796
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
797
797
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-signers";
|
|
798
798
|
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
799
|
-
const d2 =
|
|
799
|
+
const d2 = we(e2);
|
|
800
800
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
801
801
|
const m2 = c.post(p2, d2);
|
|
802
802
|
m2 && m2.then((e3) => {
|
|
@@ -809,7 +809,7 @@ function ke(e2, o2) {
|
|
|
809
809
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
810
810
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
811
811
|
if (p2 = n(p2, i2, r2, s2.isTest), !p2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
812
|
-
const d2 =
|
|
812
|
+
const d2 = we(e2);
|
|
813
813
|
d2.completeTaskParam.transactors = o2.loginNames.join(",").split(",");
|
|
814
814
|
const m2 = c.post(p2, d2);
|
|
815
815
|
m2 && m2.then((e3) => {
|
|
@@ -828,7 +828,7 @@ async function ye(e2, o2) {
|
|
|
828
828
|
if (void 0 === n3 || true === n3) {
|
|
829
829
|
n3 = true;
|
|
830
830
|
const t3 = e3.pageContext, s3 = (_d = (_c = o3.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustRemarkConditions;
|
|
831
|
-
n3 =
|
|
831
|
+
n3 = M(t3, s3);
|
|
832
832
|
}
|
|
833
833
|
true === n3 ? p.prompt(l().t("superPageRuntimeMessage.pleaseInputRemark"), l().t("superPageRuntimeMessage.remark"), { confirmButtonText: l().t("superPageRuntimeMessage.sure"), cancelButtonText: l().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e4) => !(!e4 || !e4.trim()) || l().t("superPageRuntimeMessage.pleaseInputRemark") }).then(({ value: e4 }) => {
|
|
834
834
|
t2(e4);
|
|
@@ -842,7 +842,7 @@ async function ye(e2, o2) {
|
|
|
842
842
|
const a2 = e2.pageContext, i2 = e2.configureObj, r2 = a2.systemCode, p2 = a2.backendUrl;
|
|
843
843
|
let d2 = t(p2, a2.isTest) + "/dsc/workflow-commons/copies";
|
|
844
844
|
if (d2 = n(d2, r2, p2, a2.isTest), !d2) return void u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
845
|
-
const m2 =
|
|
845
|
+
const m2 = we(e2);
|
|
846
846
|
m2.completeTaskParam.transactors = o2.loginNames.join(",").split(","), true !== s2 && (m2.completeTaskParam.remark = s2);
|
|
847
847
|
const f2 = c.post(d2, m2);
|
|
848
848
|
f2 && f2.then((e3) => {
|
|
@@ -886,14 +886,14 @@ function ve(e2, n2) {
|
|
|
886
886
|
P(o2, s2);
|
|
887
887
|
});
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function xe(e2) {
|
|
890
890
|
const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
|
|
891
891
|
let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
892
892
|
const r2 = de(e2);
|
|
893
893
|
if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
|
|
894
894
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function Re(e2, o2) {
|
|
897
897
|
if (o2) {
|
|
898
898
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
899
899
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -906,14 +906,14 @@ function xe(e2, o2) {
|
|
|
906
906
|
});
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
function
|
|
909
|
+
function Me(e2) {
|
|
910
910
|
const o2 = e2.pageContext, s2 = o2.systemCode, a2 = o2.backendUrl;
|
|
911
911
|
let i2 = t(a2, o2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
912
912
|
const r2 = de(e2);
|
|
913
913
|
if (i2 = n(i2, s2, a2, o2.isTest), i2) return c.post(i2, r2);
|
|
914
914
|
u({ showClose: true, type: "warning", message: l().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Se(e2, o2) {
|
|
917
917
|
if (o2) {
|
|
918
918
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
919
919
|
let p2 = t(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
@@ -932,7 +932,7 @@ function Ne(e2) {
|
|
|
932
932
|
const i2 = de(e2);
|
|
933
933
|
if (o2.completeTaskParam) {
|
|
934
934
|
const t2 = [];
|
|
935
|
-
e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle:
|
|
935
|
+
e2._value.loginName && t2.push(e2._value.loginName), i2.completeTaskParam = { taskId: o2.completeTaskParam.taskId, opinion: e2._value.opinion, transactors: t2, customTaskTitle: Ce(e2) };
|
|
936
936
|
}
|
|
937
937
|
return new Promise((t2, o3) => {
|
|
938
938
|
const s3 = e2.pageContext, r2 = s3.systemCode, p2 = s3.backendUrl;
|
|
@@ -1033,18 +1033,18 @@ function Oe(e2, t2, n2, o2, s2, a2) {
|
|
|
1033
1033
|
if (e2.workflowOpinion || (e2.workflowOpinion = { showOpinionBox: false }), (_b = (_a = s2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.showOpinionBox) {
|
|
1034
1034
|
e2.workflowOpinion.showOpinionBox = true;
|
|
1035
1035
|
const t4 = (_d = (_c = s2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.showOpinionBoxConditions;
|
|
1036
|
-
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox =
|
|
1036
|
+
t4 && t4.length > 0 && (e2.workflowOpinion.showOpinionBox = M(e2, t4));
|
|
1037
1037
|
}
|
|
1038
1038
|
let t3 = false;
|
|
1039
1039
|
if ((_f = (_e2 = s2.props) == null ? void 0 : _e2.base) == null ? void 0 : _f.isMustOpinion) {
|
|
1040
1040
|
if (t3 = true, true === t3) {
|
|
1041
1041
|
const n3 = (_h = (_g = s2.props) == null ? void 0 : _g.base) == null ? void 0 : _h.mustOpinionConditions;
|
|
1042
|
-
n3 && n3.length > 0 && (t3 =
|
|
1042
|
+
n3 && n3.length > 0 && (t3 = M(e2, n3));
|
|
1043
1043
|
}
|
|
1044
1044
|
e2.workflowOpinion.isRequired = t3, t3 && (e2.workflowOpinion.showOpinionBox = true);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
return i2;
|
|
1047
|
+
return e2.workflowOpinion, i2;
|
|
1048
1048
|
}
|
|
1049
1049
|
function Ue(e2, t2, n2) {
|
|
1050
1050
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
@@ -1064,20 +1064,20 @@ function Ee(e2, n2, s2) {
|
|
|
1064
1064
|
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1065
1065
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1066
1066
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1067
|
-
const f2 = p2 ? p2.taskId : null, b2 = l2,
|
|
1068
|
-
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1067
|
+
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 };
|
|
1068
|
+
if (e3.listCodesMap, (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
1069
1069
|
const t2 = {};
|
|
1070
1070
|
e3.tableUuids.forEach((e4) => {
|
|
1071
1071
|
const n4 = r(l2, u2, e4);
|
|
1072
1072
|
t2[n4] = n4;
|
|
1073
|
-
}),
|
|
1073
|
+
}), w2.listCodesMap = t2;
|
|
1074
1074
|
}
|
|
1075
|
-
m2 && (
|
|
1076
|
-
const
|
|
1075
|
+
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();
|
|
1076
|
+
const C2 = t(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", T2 = L();
|
|
1077
1077
|
T2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
|
|
1078
|
-
const h2 = H(e3.code,
|
|
1079
|
-
c.post(
|
|
1080
|
-
h2 && await _e(e3,
|
|
1078
|
+
const h2 = H(e3.code, w2.id);
|
|
1079
|
+
c.post(C2, w2).then(async (t2) => {
|
|
1080
|
+
h2 && 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);
|
|
1081
1081
|
const n4 = e3.pageType;
|
|
1082
1082
|
n4 && "form" === n4 && function(e4) {
|
|
1083
1083
|
(function(e5) {
|
|
@@ -1121,20 +1121,20 @@ function Ee(e2, n2, s2) {
|
|
|
1121
1121
|
const i2 = e3.systemCode, l2 = e3.code, u2 = e3.version, p2 = Te(e3);
|
|
1122
1122
|
let d2 = n3 || null, m2 = n3 ? [n3] : null;
|
|
1123
1123
|
void 0 === o2 || o2 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), m2 || (m2 = p2 ? p2.ids : null)) : (d2 = null, m2 = null, p2._id = p2.id, p2.id = null);
|
|
1124
|
-
const f2 = p2 ? p2.taskId : null, b2 = l2,
|
|
1125
|
-
if (!
|
|
1124
|
+
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 };
|
|
1125
|
+
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) {
|
|
1126
1126
|
const t2 = {};
|
|
1127
1127
|
e3.tableUuids.forEach((e4) => {
|
|
1128
1128
|
const n4 = r(l2, u2, e4);
|
|
1129
1129
|
t2[n4] = n4;
|
|
1130
|
-
}),
|
|
1130
|
+
}), C2.listCodesMap = t2;
|
|
1131
1131
|
}
|
|
1132
|
-
e3.refercePropMap && (
|
|
1133
|
-
const T2 =
|
|
1132
|
+
e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap), C2.isMobile = B();
|
|
1133
|
+
const T2 = w2 + "/dsc/commons/gets", h2 = L();
|
|
1134
1134
|
h2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData");
|
|
1135
|
-
const y2 = H(e3.code,
|
|
1136
|
-
c.post(T2,
|
|
1137
|
-
t2 && (y2 && await _e(e3,
|
|
1135
|
+
const y2 = H(e3.code, C2.id);
|
|
1136
|
+
c.post(T2, C2).then(async (t2) => {
|
|
1137
|
+
t2 && (y2 && await _e(e3, C2.id, t2), e3.entity.data = t2.entity, e3.initFormNo = t2.formNo);
|
|
1138
1138
|
const n4 = e3.customRules, o3 = e3.rules, a4 = D(e3, n4, o3);
|
|
1139
1139
|
e3.rules = a4, e3.canClick = true, k(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), s3(t2);
|
|
1140
1140
|
}).catch((t2) => {
|
|
@@ -1222,15 +1222,15 @@ export {
|
|
|
1222
1222
|
ye as doCreateCopyTask,
|
|
1223
1223
|
Fe as doFileTaskFunc,
|
|
1224
1224
|
ue as doImportFinally,
|
|
1225
|
-
|
|
1226
|
-
|
|
1225
|
+
Re as doRemoveSigners,
|
|
1226
|
+
Se as doRemoveTransactors,
|
|
1227
1227
|
ve as doReturnTaskTo,
|
|
1228
1228
|
K as exportFormReport,
|
|
1229
1229
|
Ne as extractWorkflowFunc,
|
|
1230
1230
|
Te as getAdditionalParamMap,
|
|
1231
1231
|
Ee as getFormData,
|
|
1232
|
-
|
|
1233
|
-
|
|
1232
|
+
xe as getRemoveSigner,
|
|
1233
|
+
Me as getRemoveTransactor,
|
|
1234
1234
|
te as getSaveFormRequest,
|
|
1235
1235
|
ee as getSaveFormRequestWithRow,
|
|
1236
1236
|
Ie as getTaskInformitions,
|