super-page-runtime 2.3.14 → 2.3.15-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/ai-chat-util.js +16 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.js +50 -50
- package/dist/es/components/runtime/utils/events/event-util.js +29 -29
- package/dist/es/components/runtime/utils/events/print-label.js +25 -26
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +5 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +128 -79
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +109 -92
- package/dist/es/components/runtime/utils/page-permission-util.js +1 -1
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- 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 +93 -98
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +2 -3
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +11 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +26 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +23 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +35 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.js +4 -0
- 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 +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 +1 -1
- 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 +18 -18
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
- 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 +53 -42
- 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 +4 -4
- 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 +3 -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 +14 -15
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +65 -56
- 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 +17 -17
- 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.vue.d.ts +2 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +200 -185
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +76 -76
- package/package.json +3 -2
|
@@ -8,8 +8,8 @@ import T from "../eventBus.js";
|
|
|
8
8
|
import w from "axios";
|
|
9
9
|
import { handleEvent as k, getTableUuid as y, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
|
-
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as
|
|
12
|
-
import { updateChartDatasources as
|
|
11
|
+
import { getPermissionCodes as S, getDefaultValue as R, getModelFields as v } from "../page-init-util.js";
|
|
12
|
+
import { updateChartDatasources as M, caculateShowCondition as I, getVariableValue as N, setVariableValue as x } from "../page-helper-util.js";
|
|
13
13
|
import A from "./print-label.js";
|
|
14
14
|
import { getTableNameByTableUuid as E } from "../table-utils.js";
|
|
15
15
|
import { getWorkflowRules as O, packageCustomRules as U } from "./validator-util.js";
|
|
@@ -200,22 +200,22 @@ const D = { save: function(e2) {
|
|
|
200
200
|
}, drawTask: function(e2) {
|
|
201
201
|
return function(e3) {
|
|
202
202
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/draw-tasks", a2 = te(e3);
|
|
203
|
-
return
|
|
203
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulDrawTask");
|
|
204
204
|
}(e2);
|
|
205
205
|
}, abandonReceive: function(e2) {
|
|
206
206
|
return function(e3) {
|
|
207
207
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/abandon-receives", a2 = te(e3);
|
|
208
|
-
return
|
|
208
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulAbandonReceive");
|
|
209
209
|
}(e2);
|
|
210
210
|
}, returnToPreviousTask: function(e2) {
|
|
211
211
|
return function(e3) {
|
|
212
212
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/return-to-previous-tasks", a2 = te(e3);
|
|
213
|
-
return
|
|
213
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulReturnToPreviousTask");
|
|
214
214
|
}(e2);
|
|
215
215
|
}, endInstance: function(e2) {
|
|
216
216
|
return function(e3) {
|
|
217
217
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/end-instance", a2 = te(e3);
|
|
218
|
-
return
|
|
218
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulEndInstance");
|
|
219
219
|
}(e2);
|
|
220
220
|
}, returnTaskTo: function(e2) {
|
|
221
221
|
return function(e3) {
|
|
@@ -230,7 +230,7 @@ const D = { save: function(e2) {
|
|
|
230
230
|
}, retrieveTask: function(e2) {
|
|
231
231
|
return function(e3) {
|
|
232
232
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/retrieves", a2 = te(e3);
|
|
233
|
-
return
|
|
233
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulRetrieve");
|
|
234
234
|
}(e2);
|
|
235
235
|
}, extractWorkflow: function(e2) {
|
|
236
236
|
return function(e3) {
|
|
@@ -256,17 +256,17 @@ const D = { save: function(e2) {
|
|
|
256
256
|
}, cancelExtractWorkflow: function(e2) {
|
|
257
257
|
return function(e3) {
|
|
258
258
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/cancel-extract", a2 = te(e3);
|
|
259
|
-
return
|
|
259
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulCancelExtract");
|
|
260
260
|
}(e2);
|
|
261
261
|
}, approveExtractWorkflow: function(e2) {
|
|
262
262
|
return function(e3) {
|
|
263
263
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/approve-extract", a2 = te(e3);
|
|
264
|
-
return
|
|
264
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
265
265
|
}(e2);
|
|
266
266
|
}, refuseExtractWorkflow: function(e2) {
|
|
267
267
|
return function(e3) {
|
|
268
268
|
const t2 = e3.pageContext, s2 = t2.backendUrl, o2 = n(s2, t2.isTest) + "/dsc/workflow-commons/refuse-extract", a2 = te(e3);
|
|
269
|
-
return
|
|
269
|
+
return de(e3, a2, o2, "superPageRuntimeMessage.successfulOperation");
|
|
270
270
|
}(e2);
|
|
271
271
|
}, viewDetail: function(e2) {
|
|
272
272
|
}, lineEditCreate: function(e2) {
|
|
@@ -279,8 +279,7 @@ const D = { save: function(e2) {
|
|
|
279
279
|
let t2 = null;
|
|
280
280
|
try {
|
|
281
281
|
if (t2 = e3.menuItem ? e3.menuItem.templateUuid : e3.configureObj.props.base.template[0].templateUuid, !t2) throw new Error("未找到模板");
|
|
282
|
-
} catch (
|
|
283
|
-
console.error("打印标签失败,未在配置中找到找到模板", t3, e3);
|
|
282
|
+
} catch (e4) {
|
|
284
283
|
}
|
|
285
284
|
A.printLabel(e3, t2);
|
|
286
285
|
}(e2);
|
|
@@ -328,6 +327,16 @@ const D = { save: function(e2) {
|
|
|
328
327
|
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
329
328
|
T.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
330
329
|
}(e2);
|
|
330
|
+
}, addTransactor: function(e2) {
|
|
331
|
+
return function(e3) {
|
|
332
|
+
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
333
|
+
T.$emit(s2 + "add-transactor", e3);
|
|
334
|
+
}(e2);
|
|
335
|
+
}, removeTransactor: function(e2) {
|
|
336
|
+
return function(e3) {
|
|
337
|
+
const t2 = e3.pageContext, s2 = t2.code + "_";
|
|
338
|
+
T.$emit(s2 + "remove-transactor", e3);
|
|
339
|
+
}(e2);
|
|
331
340
|
} };
|
|
332
341
|
function W(e2) {
|
|
333
342
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
@@ -336,7 +345,7 @@ function W(e2) {
|
|
|
336
345
|
let o2 = null;
|
|
337
346
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
338
347
|
const a2 = o2 ? o2.state : void 0;
|
|
339
|
-
o2 && (o2.state = "disabled"),
|
|
348
|
+
o2 && (o2.state = "disabled"), M(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
340
349
|
o2 && (o2.state = a2);
|
|
341
350
|
}).catch(() => {
|
|
342
351
|
o2 && (o2.state = a2);
|
|
@@ -392,7 +401,7 @@ function F(e2, t2) {
|
|
|
392
401
|
const o2 = e2.pageContext, a2 = e2.configureObj, i2 = e2.mainDefaultValueColumns, r2 = e2.dynamicColumnInfo, c2 = a2.props.base.successOperation;
|
|
393
402
|
let u2 = false;
|
|
394
403
|
c2 && "noOperation" === c2 && (u2 = true);
|
|
395
|
-
const l2 =
|
|
404
|
+
const l2 = $(o2, a2, "/dsc/commons", u2, i2, r2);
|
|
396
405
|
l2 ? l2.then((e3) => {
|
|
397
406
|
H(o2, a2, e3, "superPageRuntimeMessage.successfulSave", t2), s2(e3);
|
|
398
407
|
}).catch((e3) => {
|
|
@@ -409,7 +418,7 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
|
409
418
|
r2 && (f2.ids = r2), e2.judgeHeavyList && (s(e2.judgeHeavyList) ? f2.judgeHeavyList = JSON.stringify(e2.judgeHeavyList) : f2.judgeHeavyList = e2.judgeHeavyList);
|
|
410
419
|
const g2 = n2.props.base.conversionCodes;
|
|
411
420
|
g2 && (s(g2) ? f2.dataConversionRule = g2.join(",") : "string" == typeof g2 && (f2.dataConversionRule = g2));
|
|
412
|
-
const C2 =
|
|
421
|
+
const C2 = Se(n2);
|
|
413
422
|
C2 && (f2.autoSetValueData = C2);
|
|
414
423
|
const b2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
415
424
|
b2 && (f2.logSettingText = b2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
@@ -418,7 +427,7 @@ function V(e2, n2, o2, a2, i2, r2, c2) {
|
|
|
418
427
|
const w2 = ce(e2);
|
|
419
428
|
return f2.additionalParamMap = w2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
420
429
|
}
|
|
421
|
-
function
|
|
430
|
+
function q(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
422
431
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = V(e2, t2, a2, i2, r2, null, u2);
|
|
423
432
|
return l2 && l2.tableName && (m2.tableName = l2.tableName), function(e3, t3, s3, a3, i3, r3) {
|
|
424
433
|
const u3 = n(t3, r3);
|
|
@@ -427,19 +436,20 @@ function $(e2, t2, s2, a2, i2, r2, u2, l2) {
|
|
|
427
436
|
return l3;
|
|
428
437
|
}(p2, d2, m2, s2, e2.entity.data, e2.isTest);
|
|
429
438
|
}
|
|
430
|
-
function
|
|
431
|
-
return
|
|
439
|
+
function $(e2, t2, s2, n2, o2, a2) {
|
|
440
|
+
return q(e2, t2, s2, n2, o2, a2, null, null);
|
|
432
441
|
}
|
|
433
442
|
function H(t2, s2, n2, o2, a2) {
|
|
434
|
-
const i2 =
|
|
443
|
+
const i2 = J(t2, s2, a2);
|
|
435
444
|
if (i2 && "list" === i2) !function(t3, s3, n3, o3) {
|
|
436
445
|
let a3 = s3.props.base.successOperation;
|
|
437
446
|
const i3 = s3.props.base.isNeedValueMapping, r2 = y(t3, s3);
|
|
438
447
|
a3 || K.includes(s3.name) || (a3 = "refresh");
|
|
439
|
-
if ("refresh" === a3)
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
448
|
+
if ("refresh" === a3) {
|
|
449
|
+
if (r2) {
|
|
450
|
+
b(t3, r2).refresh();
|
|
451
|
+
}
|
|
452
|
+
} else if ("closeWindow" === a3 || "closeWindowAndRefresh" === a3) {
|
|
443
453
|
const o4 = e(t3.entity.page);
|
|
444
454
|
let a4 = n3;
|
|
445
455
|
a4 || (a4 = {}), Object.assign(o4, a4), Y(t3, s3, o4, i3);
|
|
@@ -451,29 +461,29 @@ function H(t2, s2, n2, o2, a2) {
|
|
|
451
461
|
const n4 = s3;
|
|
452
462
|
let o3;
|
|
453
463
|
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
454
|
-
|
|
464
|
+
G(e2, t3, { ...o3, ...e2.entity.page });
|
|
455
465
|
} else {
|
|
456
466
|
const s4 = t3.props.base.successOperation;
|
|
457
467
|
if (s4 && null !== s4) {
|
|
458
|
-
|
|
468
|
+
G(e2, t3, { ...e2.entity.page });
|
|
459
469
|
} else e2.canClick = true;
|
|
460
470
|
}
|
|
461
471
|
n3 && l({ message: u().t(n3), type: "success", showClose: true });
|
|
462
472
|
}(t2, s2, n2, o2);
|
|
463
473
|
else {
|
|
464
474
|
const e2 = s2.props.base.successOperation;
|
|
465
|
-
e2 && null !== e2 ?
|
|
475
|
+
e2 && null !== e2 ? G(t2, s2, null) : t2.canClick = true;
|
|
466
476
|
}
|
|
467
477
|
}
|
|
468
|
-
function
|
|
478
|
+
function J(e2, t2, s2) {
|
|
469
479
|
let n2;
|
|
470
480
|
return void 0 === s2 ? n2 = t2.props.base.tableUuid ? "list" : null : false === s2 && (n2 = "form"), n2 || (n2 = e2.pageType), n2;
|
|
471
481
|
}
|
|
472
|
-
function
|
|
482
|
+
function G(e2, t2, s2) {
|
|
473
483
|
const n2 = t2.props.base.successOperation;
|
|
474
484
|
if (!n2 || null === n2) return;
|
|
475
485
|
const o2 = t2.props.base.isNeedValueMapping;
|
|
476
|
-
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ?
|
|
486
|
+
"noOperation" === n2 ? e2.canClick = true : "refresh" === n2 ? s2 && (s2.id || s2.ID) ? ye(e2, s2.ID ? s2.ID : s2.id) : e2.canClick = true : "closeWindow" !== n2 && "closeWindowAndRefresh" !== n2 || (Y(e2, t2, s2, o2), e2.canClick = true);
|
|
477
487
|
}
|
|
478
488
|
function Y(e2, t2, s2, n2) {
|
|
479
489
|
const o2 = e2.entity && e2.entity.request ? e2.entity.request.jumpMode : null;
|
|
@@ -493,7 +503,7 @@ function z(e2, t2, s2, n2, o2) {
|
|
|
493
503
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
494
504
|
const t4 = e4.source;
|
|
495
505
|
if (!t4) return;
|
|
496
|
-
const o3 = t4.split("."), a3 =
|
|
506
|
+
const o3 = t4.split("."), a3 = N(n3, o3), i2 = e4.target, r2 = v(null, i2);
|
|
497
507
|
x(s3.entity, r2, a3);
|
|
498
508
|
});
|
|
499
509
|
}
|
|
@@ -505,16 +515,16 @@ function X(e2, t2, s2, n2) {
|
|
|
505
515
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
506
516
|
let o2 = n2;
|
|
507
517
|
o2 || (o2 = s2 ? "refresh" : (_a = t2.props.base) == null ? void 0 : _a.successOperation);
|
|
508
|
-
const a2 =
|
|
518
|
+
const a2 = J(e2, t2);
|
|
509
519
|
if (a2 && "list" === a2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
510
520
|
if (a2 && "list" === a2) {
|
|
511
521
|
const s3 = y(e2, t2);
|
|
512
522
|
if (s3) {
|
|
513
523
|
b(e2, s3).refresh();
|
|
514
|
-
}
|
|
524
|
+
}
|
|
515
525
|
} else if (a2 && "form" === a2) {
|
|
516
526
|
const t3 = e2.entity.data;
|
|
517
|
-
|
|
527
|
+
ye(e2, t3.ID ? t3.ID : t3.id);
|
|
518
528
|
}
|
|
519
529
|
}
|
|
520
530
|
}
|
|
@@ -560,7 +570,7 @@ function Z(e2, s2) {
|
|
|
560
570
|
g2 && f2.append("importDuplicateRule", g2);
|
|
561
571
|
const C2 = a2.judgeHeavyList;
|
|
562
572
|
C2 && f2.append("judgeHeavyList", JSON.stringify(C2));
|
|
563
|
-
const b2 =
|
|
573
|
+
const b2 = Se(i2);
|
|
564
574
|
b2 && f2.append("autoSetValueData", b2);
|
|
565
575
|
const T2 = a2.formNoRuleCode;
|
|
566
576
|
T2 && f2.append("formNoRuleCode", T2);
|
|
@@ -574,13 +584,13 @@ function Z(e2, s2) {
|
|
|
574
584
|
P2 && f2.append("functionCode", P2);
|
|
575
585
|
const R2 = ce(a2);
|
|
576
586
|
f2.append("additionalParamMapStr", JSON.stringify(R2));
|
|
577
|
-
const
|
|
578
|
-
f2.append("isPermission",
|
|
579
|
-
const
|
|
580
|
-
|
|
587
|
+
const v2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
588
|
+
f2.append("isPermission", v2 + "");
|
|
589
|
+
const M2 = a2.systemCode;
|
|
590
|
+
M2 && f2.append("systemCode", M2);
|
|
581
591
|
const I2 = a2.backendUrl;
|
|
582
|
-
let
|
|
583
|
-
|
|
592
|
+
let N2 = n(I2, a2.isTest) + "/dsc/commons/import-data";
|
|
593
|
+
N2 = o(N2, M2, I2, a2.isTest), c.post(N2, f2).then((e3) => {
|
|
584
594
|
if (k2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
585
595
|
else {
|
|
586
596
|
let t2 = false;
|
|
@@ -607,12 +617,12 @@ function te(e2) {
|
|
|
607
617
|
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);
|
|
608
618
|
const u2 = n2.props.base.conversionCodes;
|
|
609
619
|
u2 && (s(u2) ? c2.dataConversionRule = u2.join(",") : "string" == typeof u2 && (c2.dataConversionRule = u2));
|
|
610
|
-
const l2 =
|
|
620
|
+
const l2 = Se(n2);
|
|
611
621
|
l2 && (c2.autoSetValueData = l2), t2.beanName && (c2.beanName = t2.beanName);
|
|
612
622
|
const p2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
613
623
|
p2 && (c2.logSettingText = p2.join("")), c2.systemCode || (c2.systemCode = a2);
|
|
614
624
|
const d2 = ce(t2);
|
|
615
|
-
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
|
|
625
|
+
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]));
|
|
616
626
|
const m2 = n2.props.base.successOperation;
|
|
617
627
|
return m2 && "noOperation" === m2 && (c2.unControlVersion = true), c2.isWorkflowEntity = true, c2;
|
|
618
628
|
}
|
|
@@ -680,7 +690,7 @@ function oe(e2) {
|
|
|
680
690
|
function ae(e2, t2) {
|
|
681
691
|
if (t2) {
|
|
682
692
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/assigns", r2 = t2.id ? t2.id : t2.ID ? t2.ID : null, c2 = te(e2);
|
|
683
|
-
c2.assigneeId = r2,
|
|
693
|
+
c2.assigneeId = r2, de(e2, c2, i2, "superPageRuntimeMessage.successfulAssign").then((e3) => {
|
|
684
694
|
h(s2, o2);
|
|
685
695
|
});
|
|
686
696
|
}
|
|
@@ -728,7 +738,20 @@ function ue(e2, t2) {
|
|
|
728
738
|
});
|
|
729
739
|
}
|
|
730
740
|
}
|
|
731
|
-
|
|
741
|
+
function le(e2, t2) {
|
|
742
|
+
if (t2) {
|
|
743
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
744
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/add-transactors";
|
|
745
|
+
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
746
|
+
const d2 = ie(e2);
|
|
747
|
+
d2.completeTaskParam.transactors = t2.loginNames.join(",").split(",");
|
|
748
|
+
const m2 = c.post(p2, d2);
|
|
749
|
+
m2 && m2.then((e3) => {
|
|
750
|
+
l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.successfulOperation") }), e3.entity && H(s2, a2, e3, null, false), h(s2, a2);
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
async function pe(e2, t2) {
|
|
732
755
|
if (t2) {
|
|
733
756
|
const s2 = await function(e3) {
|
|
734
757
|
return new Promise((t3, s3) => {
|
|
@@ -762,7 +785,7 @@ async function le(e2, t2) {
|
|
|
762
785
|
}
|
|
763
786
|
}
|
|
764
787
|
}
|
|
765
|
-
async function
|
|
788
|
+
async function de(e2, t2, s2, n2) {
|
|
766
789
|
const a2 = await oe(e2);
|
|
767
790
|
return new Promise((i2, r2) => {
|
|
768
791
|
var _a;
|
|
@@ -783,27 +806,27 @@ async function pe(e2, t2, s2, n2) {
|
|
|
783
806
|
} else i2(true);
|
|
784
807
|
});
|
|
785
808
|
}
|
|
786
|
-
function
|
|
809
|
+
function me(e2) {
|
|
787
810
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl, i2 = t2.completeTaskParam;
|
|
788
811
|
let r2 = n(a2, t2.isTest) + "/dsc/workflow-commons/returnable-task/" + i2.taskId;
|
|
789
812
|
if (r2 = o(r2, s2, a2, t2.isTest), !r2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
790
813
|
const p2 = t2.code, d2 = ce(t2), m2 = { beanName: t2.beanName, additionalParamMap: d2, tableName: t2.tableName, functionCode: p2 + ".xxx" };
|
|
791
814
|
return c.post(r2, m2);
|
|
792
815
|
}
|
|
793
|
-
function
|
|
816
|
+
function fe(e2, t2) {
|
|
794
817
|
const s2 = e2.pageContext, o2 = e2.configureObj, a2 = s2.backendUrl, i2 = n(a2, s2.isTest) + "/dsc/workflow-commons/returnTaskTo", r2 = te(e2);
|
|
795
|
-
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId),
|
|
818
|
+
t2.nodeName && (r2.returnToNodeName = t2.nodeName), t2.nodeId && (r2.returnToNodeId = t2.nodeId), de(e2, r2, i2, "superPageRuntimeMessage.successfulReturnTaskTo").then((e3) => {
|
|
796
819
|
h(s2, o2);
|
|
797
820
|
});
|
|
798
821
|
}
|
|
799
|
-
function
|
|
822
|
+
function ge(e2) {
|
|
800
823
|
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
801
824
|
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-signers";
|
|
802
825
|
const r2 = te(e2);
|
|
803
826
|
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
804
827
|
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
805
828
|
}
|
|
806
|
-
function
|
|
829
|
+
function Ce(e2, t2) {
|
|
807
830
|
if (t2) {
|
|
808
831
|
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
809
832
|
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-signers";
|
|
@@ -816,7 +839,27 @@ function ge(e2, t2) {
|
|
|
816
839
|
});
|
|
817
840
|
}
|
|
818
841
|
}
|
|
819
|
-
function
|
|
842
|
+
function be(e2) {
|
|
843
|
+
const t2 = e2.pageContext, s2 = t2.systemCode, a2 = t2.backendUrl;
|
|
844
|
+
let i2 = n(a2, t2.isTest) + "/dsc/workflow-commons/get-remove-transactors";
|
|
845
|
+
const r2 = te(e2);
|
|
846
|
+
if (i2 = o(i2, s2, a2, t2.isTest), i2) return c.post(i2, r2);
|
|
847
|
+
l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
848
|
+
}
|
|
849
|
+
function Te(e2, t2) {
|
|
850
|
+
if (t2) {
|
|
851
|
+
const s2 = e2.pageContext, a2 = e2.configureObj, i2 = s2.systemCode, r2 = s2.backendUrl;
|
|
852
|
+
let p2 = n(r2, s2.isTest) + "/dsc/workflow-commons/remove-transactors";
|
|
853
|
+
if (p2 = o(p2, i2, r2, s2.isTest), !p2) return void l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.requestPathEmpty") });
|
|
854
|
+
const d2 = t2.map((e3) => e3.taskId), m2 = te(e2);
|
|
855
|
+
m2.ids = d2;
|
|
856
|
+
const f2 = c.post(p2, m2);
|
|
857
|
+
f2 && f2.then((e3) => {
|
|
858
|
+
H(s2, a2, e3, "superPageRuntimeMessage.successfulOperation", false), h(s2, a2);
|
|
859
|
+
});
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
function we(e2, t2, s2, n2, o2) {
|
|
820
863
|
let a2 = false;
|
|
821
864
|
return e2 && t2 && ("workflowSave" === e2 ? a2 = function(e3) {
|
|
822
865
|
if ((void 0 === e3.processState || null === e3.processState || "UNSUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active) && (void 0 === e3.processState || true === e3.showButtonSave)) return true;
|
|
@@ -852,10 +895,10 @@ function Ce(e2, t2, s2, n2, o2) {
|
|
|
852
895
|
t3 && (t3.props.base.state = s3 ? "" : "hidden");
|
|
853
896
|
return true;
|
|
854
897
|
}(t2, n2) : "addSigner" === e2 ? a2 = function(e3) {
|
|
855
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active &&
|
|
898
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonAddCounter) return true;
|
|
856
899
|
return false;
|
|
857
900
|
}(t2) : "removeSigner" === e2 ? a2 = function(e3) {
|
|
858
|
-
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active &&
|
|
901
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" === e3.processingMode && e3.showButtonDelCounter) return true;
|
|
859
902
|
return false;
|
|
860
903
|
}(t2) : "retrieveTask" === e2 ? a2 = function(e3) {
|
|
861
904
|
if (e3.processState && "SUBMIT" === e3.processState && function(e4) {
|
|
@@ -883,7 +926,10 @@ function Ce(e2, t2, s2, n2, o2) {
|
|
|
883
926
|
const n3 = d(), o3 = n3 ? n3.loginName : null;
|
|
884
927
|
if ("EXTRACT" === (e3 == null ? void 0 : e3.processState) && s3 && (s3.creator === o3 || s3.CREATOR === o3)) return true;
|
|
885
928
|
return false;
|
|
886
|
-
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 =
|
|
929
|
+
}(t2, 0, o2) : "approveExtractWorkflow" === e2 || "refuseExtractWorkflow" === e2 ? a2 = ke(t2) : "addTransactor" === e2 || "removeTransactor" === e2 ? a2 = function(e3) {
|
|
930
|
+
if (e3.processState && "SUBMIT" === e3.processState && "WAIT_TRANSACT" === e3.active && "COUNTERSIGN" !== e3.processingMode) return true;
|
|
931
|
+
return false;
|
|
932
|
+
}(t2) : function(e3, t3) {
|
|
887
933
|
return e3.processState && "SUBMIT" === e3.processState && "TYPE_READ" !== e3.processingMode && !function(e4) {
|
|
888
934
|
const t4 = e4;
|
|
889
935
|
let s3 = true;
|
|
@@ -895,15 +941,15 @@ function Ce(e2, t2, s2, n2, o2) {
|
|
|
895
941
|
return false;
|
|
896
942
|
}(t2))), a2;
|
|
897
943
|
}
|
|
898
|
-
function
|
|
944
|
+
function ke(e2, t2, s2) {
|
|
899
945
|
return !(!e2.processState || "EXTRACT" !== e2.processState || "WAIT_TRANSACT" !== e2.active);
|
|
900
946
|
}
|
|
901
|
-
function
|
|
902
|
-
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true,
|
|
947
|
+
function ye(e2, t2) {
|
|
948
|
+
e2.entity.page || (e2.entity.page = {}), e2.entity.page._isRefresh = true, he(e2, t2).then((t3) => {
|
|
903
949
|
e2.isRefresh = true;
|
|
904
950
|
});
|
|
905
951
|
}
|
|
906
|
-
function
|
|
952
|
+
function he(e2, s2, o2) {
|
|
907
953
|
const a2 = e2.pageType;
|
|
908
954
|
if (a2 && "form" === a2) {
|
|
909
955
|
e2.canClick = false;
|
|
@@ -913,14 +959,14 @@ function we(e2, s2, o2) {
|
|
|
913
959
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
914
960
|
void 0 === s3 || s3 ? (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);
|
|
915
961
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, isWorkflowEntity: true, systemCode: i2, functionCode: C2 + ".workflowGets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
916
|
-
if (
|
|
962
|
+
if ((!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
917
963
|
const t3 = {};
|
|
918
964
|
e3.tableUuids.forEach((e4) => {
|
|
919
965
|
const s4 = r(u2, l2, e4);
|
|
920
966
|
t3[s4] = s4;
|
|
921
967
|
}), b2.listCodesMap = t3;
|
|
922
968
|
}
|
|
923
|
-
m2 && (b2.ids =
|
|
969
|
+
m2 && (b2.ids = Pe(m2)), g2 ? b2.taskId = g2 : d2 ? b2.id = d2 : (p2 && p2._t_ && f(p2._t_ + "_id") && (b2.id = f(p2._t_ + "_id")), e3.notIdInitializationList && (b2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (b2.additionalParamMap = p2), e3.beanName && (b2.beanName = e3.beanName), e3.refercePropMap && (b2.refercePropMap = e3.refercePropMap);
|
|
924
970
|
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", w2 = j();
|
|
925
971
|
w2.restorePageLoadState(), k(null, e3, e3, "beforeFormLoadData"), c.post(T2, b2).then((t3) => {
|
|
926
972
|
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, e3.dataTypeMaps = t3.dataTypeMap, se(t3, true, e3), e3.workflowRules = O(e3);
|
|
@@ -967,7 +1013,7 @@ function we(e2, s2, o2) {
|
|
|
967
1013
|
let d2 = t2 || null, m2 = t2 ? [t2] : null;
|
|
968
1014
|
void 0 === s3 || s3 ? (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);
|
|
969
1015
|
const g2 = p2 ? p2.taskId : null, C2 = u2, b2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: i2, functionCode: C2 + ".gets", listCodesMap: e3.listCodesMap, listCodesInitSearchForm: e3.listCodesInitSearchForm };
|
|
970
|
-
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids =
|
|
1016
|
+
if (!T2.id && p2 && p2._t_ && f(p2._t_ + "_id") && (T2.id = f(p2._t_ + "_id")), m2 && (T2.ids = Pe(m2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
971
1017
|
const t3 = {};
|
|
972
1018
|
e3.tableUuids.forEach((e4) => {
|
|
973
1019
|
const s4 = r(u2, l2, e4);
|
|
@@ -990,10 +1036,10 @@ function we(e2, s2, o2) {
|
|
|
990
1036
|
e3(true);
|
|
991
1037
|
});
|
|
992
1038
|
}
|
|
993
|
-
function
|
|
1039
|
+
function Pe(e2) {
|
|
994
1040
|
return e2 && ("string" == typeof e2 ? e2 = e2.split(",") : "number" == typeof e2 && (e2 = [e2])), e2;
|
|
995
1041
|
}
|
|
996
|
-
function
|
|
1042
|
+
function Se(e2) {
|
|
997
1043
|
const t2 = e2.props.setValueList;
|
|
998
1044
|
if (t2) {
|
|
999
1045
|
if (s(t2) && t2.length > 0) return JSON.stringify(t2);
|
|
@@ -1001,41 +1047,44 @@ function ye(e2) {
|
|
|
1001
1047
|
}
|
|
1002
1048
|
return null;
|
|
1003
1049
|
}
|
|
1004
|
-
function
|
|
1050
|
+
function Re(e2, t2) {
|
|
1005
1051
|
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
1006
1052
|
return c.post(a2, o2);
|
|
1007
1053
|
}
|
|
1008
|
-
function
|
|
1054
|
+
function ve(e2) {
|
|
1009
1055
|
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
1010
1056
|
return c.get(s2);
|
|
1011
1057
|
}
|
|
1012
|
-
function
|
|
1058
|
+
function Me(e2) {
|
|
1013
1059
|
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
1014
1060
|
return c.delete(t2);
|
|
1015
1061
|
}
|
|
1016
1062
|
export {
|
|
1017
1063
|
H as dealAfterOperate,
|
|
1018
1064
|
se as dealCompleteTaskParam,
|
|
1019
|
-
|
|
1065
|
+
Me as deleteChartCondition,
|
|
1020
1066
|
ue as doAddSigner,
|
|
1067
|
+
le as doAddTransactor,
|
|
1021
1068
|
ae as doAssign,
|
|
1022
|
-
|
|
1069
|
+
pe as doCreateCopyTask,
|
|
1023
1070
|
Z as doImportFinally,
|
|
1024
|
-
|
|
1025
|
-
|
|
1071
|
+
Ce as doRemoveSigners,
|
|
1072
|
+
Te as doRemoveTransactors,
|
|
1073
|
+
fe as doReturnTaskTo,
|
|
1026
1074
|
L as exportFormReport,
|
|
1027
1075
|
ce as getAdditionalParamMap,
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
$ as
|
|
1032
|
-
|
|
1033
|
-
|
|
1076
|
+
he as getFormData,
|
|
1077
|
+
ge as getRemoveSigner,
|
|
1078
|
+
be as getRemoveTransactor,
|
|
1079
|
+
$ as getSaveFormRequest,
|
|
1080
|
+
q as getSaveFormRequestWithRow,
|
|
1081
|
+
me as getTaskInformitions,
|
|
1082
|
+
we as isVisibleWorkflowButton,
|
|
1034
1083
|
ee as judgeDataNumber,
|
|
1035
|
-
|
|
1084
|
+
ve as listChartConditions,
|
|
1036
1085
|
X as refreshFormOrListPage,
|
|
1037
|
-
|
|
1038
|
-
|
|
1086
|
+
ye as refreshPage,
|
|
1087
|
+
Re as saveChartConditionBase,
|
|
1039
1088
|
D as standardEvents,
|
|
1040
1089
|
z as updateValuesWhenCloseDialog
|
|
1041
1090
|
};
|
|
@@ -182,7 +182,7 @@ function h(e2, n2, r2) {
|
|
|
182
182
|
}), r3.includes(false) && e6(false), s2.length > 0 ? Promise.all(s2).then((t3) => {
|
|
183
183
|
t3.includes(false) ? e6(false) : e6(true);
|
|
184
184
|
}).catch((t3) => {
|
|
185
|
-
|
|
185
|
+
e6(false);
|
|
186
186
|
}) : e6(true);
|
|
187
187
|
});
|
|
188
188
|
return null;
|