super-page-runtime 2.3.47-sit2 → 2.3.47
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 +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/{button-runtime2.vue.js → button-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/{buttongroup-runtime2.vue.js → buttongroup-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/{dropdown-runtime2.vue.js → dropdown-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/{exportpdf-runtime2.vue.js → exportpdf-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/{printlabel-runtime2.vue.js → printlabel-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/{column-line-runtime2.vue.js → column-line-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- 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 +9 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/{common-homepage-search2.vue.js → common-homepage-search.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/{gauge-runtime2.vue.js → gauge-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/{pie-runtime2.vue.js → pie-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/{radar-runtime2.vue.js → radar-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/{scatter-runtime2.vue.js → scatter-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/{table-runtime2.vue.js → table-runtime.vue2.js} +9 -9
- 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/file-task-notice.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- 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-runtime2.vue.js → card-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/collapse/{collapse-runtime2.vue.js → collapse-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/{container-runtime2.vue.js → container-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{FixedBox2.vue.js → FixedBox.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{YxAffix2.vue.js → YxAffix.vue2.js} +4 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/{flex-runtime2.vue.js → flex-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/{form-runtime2.vue.js → form-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/{iframe-runtime2.vue.js → iframe-runtime.vue2.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/{tabs-runtime2.vue.js → tabs-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/{tools-runtime2.vue.js → tools-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/{barcode-runtime2.vue.js → barcode-runtime.vue2.js} +11 -9
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/{table-runtime2.vue.js → table-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/{tree-runtime2.vue.js → tree-runtime.vue2.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/{checkbox-runtime2.vue.js → checkbox-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/{custom-runtime2.vue.js → custom-runtime.vue2.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/{depttree-runtime2.vue.js → depttree-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/divider/{divider-runtime2.vue.js → divider-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/{fileupload-runtime2.vue.js → fileupload-runtime.vue2.js} +7 -5
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/image-upload/{imageupload-runtime2.vue.js → imageupload-runtime.vue2.js} +5 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/{input-number-runtime2.vue.js → input-number-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +81 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/{label-runtime2.vue.js → label-runtime.vue2.js} +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/link/{link-runtime2.vue.js → link-runtime.vue2.js} +8 -6
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/{placeholder-runtime2.vue.js → placeholder-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/{radio-runtime2.vue.js → radio-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/{richtext-runtime2.vue.js → richtext-runtime.vue2.js} +4 -4
- 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-runtime2.vue.js → select-runtime.vue2.js} +8 -7
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/{separatelabel-runtime2.vue.js → separatelabel-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/{switch-runtime2.vue.js → switch-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/{tag-runtime2.vue.js → tag-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/{textarea-runtime2.vue.js → textarea-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +12 -10
- 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-box2.vue.js → workflow-opinion-box.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime-dialog2.vue.js → extract-workflow-runtime-dialog.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime2.vue.js → extract-workflow-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/{pictureflow-runtime2.vue.js → pictureflow-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/{textflow-runtime2.vue.js → textflow-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/{workflowbutton-runtime2.vue.js → workflowbutton-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/{workflownode-runtime2.vue.js → workflownode-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +7 -6
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/{super-page2.vue.js → super-page.vue2.js} +99 -98
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +0 -80
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb2.vue.js → common-chart-header-breadcrumb.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group2.vue.js → common-chart-header-group.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header2.vue.js → common-chart-header.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render2.vue.js → home-chart-condition-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item2.vue.js → group-column-item.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column2.vue.js → group-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column2.vue.js → normal-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination2.vue.js → table-pageination.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{event-call-component2.vue.js → event-call-component.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog2.vue.js → export-form-report-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice2.vue.js → file-task-notice.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message2.vue.js → format-file-task-notice-message.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog2.vue.js → remove-signer-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table2.vue.js → remove-signer-table.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog2.vue.js → remove-transactor-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog2.vue.js → save-chart-condition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog2.vue.js → task-informition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime2.vue.js → main-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime2.vue.js → sub-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{error-render2.vue.js → error-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element2.vue.js → title-suffix-element.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{home-chart-render2.vue.js → home-chart-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{object-render2.vue.js → object-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{page-bottom2.vue.js → page-bottom.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{home-chart2.vue.js → home-chart.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{super-page-dialog3.vue.js → super-page-dialog.vue3.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import e from "async-validator";
|
|
2
2
|
import { ElMessage as t } from "element-plus";
|
|
3
|
-
import { getComponentRefByCode as
|
|
4
|
-
import { getI18n as
|
|
5
|
-
import { getAdditionalParamMap as
|
|
3
|
+
import { getComponentRefByCode as r, getComponentRef as n, getAllComponentRefs as s } from "../global-refs.js";
|
|
4
|
+
import { getI18n as o } from "agilebuilder-ui/src/utils/util";
|
|
5
|
+
import { getAdditionalParamMap as i } from "./standard-event.js";
|
|
6
6
|
import { isPromise as l } from "agilebuilder-ui/src/utils/common-util";
|
|
7
7
|
import { parseSubTablePermissionCondition as a } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
8
8
|
import { isWorkflowPage as u, getListCode as f } from "../common-util.js";
|
|
@@ -14,181 +14,182 @@ function p(e2, t2 = /* @__PURE__ */ new WeakMap()) {
|
|
|
14
14
|
} catch (e3) {
|
|
15
15
|
}
|
|
16
16
|
if (null === e2 || "object" != typeof e2) return e2;
|
|
17
|
-
const
|
|
18
|
-
if (t2.has(
|
|
17
|
+
const r2 = e2;
|
|
18
|
+
if (t2.has(r2)) return t2.get(r2);
|
|
19
19
|
if (Array.isArray(e2)) {
|
|
20
|
-
const
|
|
21
|
-
return t2.set(
|
|
22
|
-
r3
|
|
23
|
-
}),
|
|
20
|
+
const n3 = [];
|
|
21
|
+
return t2.set(r2, n3), e2.forEach((e3, r3) => {
|
|
22
|
+
n3[r3] = p(e3, t2);
|
|
23
|
+
}), n3;
|
|
24
24
|
}
|
|
25
25
|
if (e2 instanceof Date) return new Date(e2.getTime());
|
|
26
26
|
if (e2 instanceof RegExp) return new RegExp(e2.source, e2.flags);
|
|
27
27
|
if (e2 instanceof Map) {
|
|
28
|
-
const
|
|
29
|
-
return t2.set(
|
|
30
|
-
|
|
31
|
-
}),
|
|
28
|
+
const n3 = /* @__PURE__ */ new Map();
|
|
29
|
+
return t2.set(r2, n3), e2.forEach((e3, r3) => {
|
|
30
|
+
n3.set(p(r3, t2), p(e3, t2));
|
|
31
|
+
}), n3;
|
|
32
32
|
}
|
|
33
33
|
if (e2 instanceof Set) {
|
|
34
|
-
const
|
|
35
|
-
return t2.set(
|
|
36
|
-
|
|
37
|
-
}),
|
|
34
|
+
const n3 = /* @__PURE__ */ new Set();
|
|
35
|
+
return t2.set(r2, n3), e2.forEach((e3) => {
|
|
36
|
+
n3.add(p(e3, t2));
|
|
37
|
+
}), n3;
|
|
38
38
|
}
|
|
39
|
-
const
|
|
40
|
-
return t2.set(
|
|
41
|
-
|
|
42
|
-
}),
|
|
39
|
+
const n2 = {};
|
|
40
|
+
return t2.set(r2, n2), Object.keys(e2).forEach((r3) => {
|
|
41
|
+
n2[r3] = p(e2[r3], t2);
|
|
42
|
+
}), n2;
|
|
43
43
|
}
|
|
44
|
-
function g(e2, t2,
|
|
45
|
-
const
|
|
44
|
+
function g(e2, t2, r2) {
|
|
45
|
+
const n2 = {};
|
|
46
46
|
t2 || (t2 = {});
|
|
47
47
|
let s2 = 0;
|
|
48
|
-
const
|
|
49
|
-
return
|
|
50
|
-
let
|
|
51
|
-
if (s2 ===
|
|
52
|
-
let
|
|
53
|
-
for (let s3 = 0; s3 < t3.length; s3++) if (
|
|
54
|
-
if (t3[s3 + 1] ===
|
|
48
|
+
const o2 = e2.split(".");
|
|
49
|
+
return o2.forEach((e3) => {
|
|
50
|
+
let i2;
|
|
51
|
+
if (s2 === o2.length - 1) i2 = function(e4, t3, r3) {
|
|
52
|
+
let n3;
|
|
53
|
+
for (let s3 = 0; s3 < t3.length; s3++) if (n3 = 0 === s3 ? e4[t3[s3]] : n3.fields[t3[s3]], s3 !== t3.length - 1) {
|
|
54
|
+
if (t3[s3 + 1] === r3) break;
|
|
55
55
|
}
|
|
56
|
-
return
|
|
57
|
-
}(
|
|
56
|
+
return n3;
|
|
57
|
+
}(n2, o2, e3), i2.fields[e3] = r2;
|
|
58
58
|
else {
|
|
59
|
-
let
|
|
60
|
-
0 === s2 ?
|
|
61
|
-
let
|
|
59
|
+
let r3;
|
|
60
|
+
0 === s2 ? i2 = t2 : (r3 = function(e4, t3, r4) {
|
|
61
|
+
let n3;
|
|
62
62
|
for (let s3 = 0; s3 < t3.length; s3++) {
|
|
63
|
-
const
|
|
64
|
-
if (
|
|
63
|
+
const o3 = t3[s3];
|
|
64
|
+
if (n3 = 0 === s3 ? e4[o3] : n3.fields[t3[s3]], o3 === r4) break;
|
|
65
65
|
}
|
|
66
|
-
return
|
|
67
|
-
}(
|
|
66
|
+
return n3;
|
|
67
|
+
}(n2, o2, o2[s2 - 1]), i2 = r3.fields), i2[e3] || (i2[e3] = { type: "object", required: true, fields: {} }), 0 === s2 ? n2[e3] = i2[e3] : r3.fields[e3] = i2[e3];
|
|
68
68
|
}
|
|
69
69
|
s2++;
|
|
70
|
-
}),
|
|
70
|
+
}), n2;
|
|
71
71
|
}
|
|
72
|
-
function b(e2, t2,
|
|
73
|
-
return y(e2, t2,
|
|
72
|
+
function b(e2, t2, r2, n2, s2, o2) {
|
|
73
|
+
return y(e2, t2, r2, n2, true, s2, o2);
|
|
74
74
|
}
|
|
75
75
|
function h(e2) {
|
|
76
76
|
if (e2) return Object.keys(e2).forEach((t2) => {
|
|
77
77
|
if (t2.indexOf(".") >= 0) {
|
|
78
|
-
let
|
|
79
|
-
|
|
78
|
+
let r2 = [];
|
|
79
|
+
r2 = t2.split("."), e2[r2[0]] ? e2[r2[0]].fields[r2[1]] = e2[t2][0] : (e2[r2[0]] = new Object(), e2[r2[0]].fields = new Object(), e2[r2[0]].fields[r2[1]] = e2[t2][0], e2[r2[0]].type = "object"), delete e2[t2];
|
|
80
80
|
}
|
|
81
81
|
}), e2;
|
|
82
82
|
}
|
|
83
|
-
function y(
|
|
83
|
+
function y(n2, s2, i2, l2, a2, u2, f2) {
|
|
84
84
|
var _a;
|
|
85
85
|
let d2 = h(s2);
|
|
86
|
-
if (s2 && null !== s2 || !
|
|
86
|
+
if (s2 && null !== s2 || !i2 || (d2 = {}), !d2 || 0 === Object.keys(d2).length) return n2.validateErrorField = "", true;
|
|
87
87
|
const m2 = ((_a = f2.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
88
88
|
let p2;
|
|
89
|
-
return new e(d2).validate(
|
|
89
|
+
return new e(d2).validate(n2, { first: !m2 }, (e2, g2) => {
|
|
90
90
|
if (m2) {
|
|
91
91
|
if (p2 = e2 || true, true === p2 && true === a2 && d2) {
|
|
92
92
|
const e3 = /[A-Z]+/, t2 = Object.keys(d2);
|
|
93
|
-
if (t2.some((t3) => e3.test(t3) && void 0 !==
|
|
94
|
-
const
|
|
93
|
+
if (t2.some((t3) => e3.test(t3) && void 0 !== n2[t3.toLowerCase()])) {
|
|
94
|
+
const r2 = JSON.parse(JSON.stringify(n2));
|
|
95
95
|
t2.forEach((t3) => {
|
|
96
|
-
e3.test(t3) && void 0 !==
|
|
97
|
-
}), p2 = y(
|
|
96
|
+
e3.test(t3) && void 0 !== n2[t3.toLowerCase()] && (r2[t3.toUpperCase()] = n2[t3.toLowerCase()], delete r2[t3.toLowerCase()]);
|
|
97
|
+
}), p2 = y(r2, s2, i2, l2, false, u2, f2);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
true !== p2 && t({ showClose: true, message:
|
|
100
|
+
true !== p2 && t({ showClose: true, message: o().t("superPageRuntimeMessage.pleaseInputRequiredInfo"), type: "warning" });
|
|
101
101
|
} else {
|
|
102
|
-
let
|
|
102
|
+
let o2;
|
|
103
103
|
if (e2) {
|
|
104
|
-
p2 = e2[0].message,
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
107
|
-
|
|
104
|
+
p2 = e2[0].message, o2 = e2[0].field, t({ message: p2, showClose: true, type: "warning", duration: 3e3 });
|
|
105
|
+
const n3 = r(f2, o2);
|
|
106
|
+
if (n3 && n3.addRequiredClass) {
|
|
107
|
+
n3.addRequiredClass();
|
|
108
108
|
try {
|
|
109
|
-
c(f2,
|
|
109
|
+
c(f2, o2);
|
|
110
110
|
} catch (e3) {
|
|
111
|
+
console.error("滚动失败", e3);
|
|
111
112
|
}
|
|
112
113
|
}
|
|
113
114
|
} else p2 = true;
|
|
114
|
-
if (
|
|
115
|
-
if (/[A-Z]+/.test(
|
|
116
|
-
const e3 = JSON.parse(JSON.stringify(
|
|
117
|
-
e3[
|
|
115
|
+
if (o2 && true === a2) {
|
|
116
|
+
if (/[A-Z]+/.test(o2) && void 0 !== n2[o2.toLowerCase()]) {
|
|
117
|
+
const e3 = JSON.parse(JSON.stringify(n2));
|
|
118
|
+
e3[o2.toUpperCase()] = n2[o2.toLowerCase()], delete e3[o2.toLowerCase()], p2 = y(e3, s2, i2, l2, false, u2, f2);
|
|
118
119
|
}
|
|
119
120
|
}
|
|
120
121
|
}
|
|
121
122
|
}), p2;
|
|
122
123
|
}
|
|
123
|
-
function w(e2,
|
|
124
|
+
function w(e2, n2, s2, l2) {
|
|
124
125
|
if (s2) {
|
|
125
126
|
if (J(s2.isStandard, s2.event)) return new Promise((e3, t2) => {
|
|
126
127
|
e3(true);
|
|
127
128
|
});
|
|
128
129
|
}
|
|
129
|
-
const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 =
|
|
130
|
-
return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3,
|
|
130
|
+
const f2 = e2.entity.data, c2 = { ...e2.entity.page, ...f2 }, d2 = e2.rules, m2 = n2.props.base ? n2.props.base.isEnableRequired : null;
|
|
131
|
+
return null != m2 && (l2 = m2), null == l2 && (l2 = false), function(e3, n3, s3, l3) {
|
|
131
132
|
if (e3) {
|
|
132
|
-
return u(l3) ? function(e4,
|
|
133
|
+
return u(l3) ? function(e4, n4, s4) {
|
|
133
134
|
return new Promise((l4, u2) => {
|
|
134
135
|
var _a;
|
|
135
|
-
const f3 =
|
|
136
|
-
N(e4,
|
|
136
|
+
const f3 = i(n4), c3 = n4.entity.context, d3 = n4.entity.task, m3 = true, g2 = n4.subTablePageInfo, b2 = ((_a = n4.props) == null ? void 0 : _a.highlightAllRequiredField) || false;
|
|
137
|
+
N(e4, n4, s4).then((s5) => {
|
|
137
138
|
if (s5) {
|
|
138
|
-
let
|
|
139
|
-
const u3 =
|
|
139
|
+
let i2 = s5;
|
|
140
|
+
const u3 = n4.workflowRules;
|
|
140
141
|
let h2 = null, y2 = null;
|
|
141
142
|
if (u3) {
|
|
142
|
-
if (!function(e5,
|
|
143
|
+
if (!function(e5, n5) {
|
|
143
144
|
var _a2, _b, _c, _d;
|
|
144
145
|
if (!e5.actionPermissions) return true;
|
|
145
146
|
const s7 = Object.keys(e5.actionPermissions);
|
|
146
|
-
for (let
|
|
147
|
-
const l5 = s7[
|
|
147
|
+
for (let i3 = 0; i3 < s7.length; i3++) {
|
|
148
|
+
const l5 = s7[i3], u4 = e5.actionPermissions[l5];
|
|
148
149
|
if (u4 && u4.notEmpty) {
|
|
149
150
|
if ((_a2 = e5.hiddenNotValidatorCodes) == null ? void 0 : _a2.has(l5)) continue;
|
|
150
151
|
let s8 = false;
|
|
151
|
-
if (
|
|
152
|
-
const s9 =
|
|
152
|
+
if (n5[l5] ? Array.isArray(n5[l5]) && 0 === n5[l5].length && (s8 = true) : s8 = true, s8) {
|
|
153
|
+
const s9 = r(e5, l5);
|
|
153
154
|
if (!s9) return true;
|
|
154
|
-
const
|
|
155
|
+
const i4 = s9.getConfigure();
|
|
155
156
|
if ((_b = u4.notEmptyCondition) == null ? void 0 : _b.parentCondition) {
|
|
156
|
-
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps,
|
|
157
|
+
if (false === a(u4.notEmptyCondition.parentCondition.replaceAll("${field[", "${parent["), e5.dataTypeMaps, n5, {}, (_c = e5.entity) == null ? void 0 : _c.request, (_d = e5.entity) == null ? void 0 : _d.task, e5.contextParam)) return true;
|
|
157
158
|
}
|
|
158
|
-
return t({ showClose: true, message:
|
|
159
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: i4.title ? i4.title : l5 }), type: "warning" }), false;
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
}
|
|
162
163
|
return true;
|
|
163
|
-
}(
|
|
164
|
+
}(n4, e4)) return void l4(false);
|
|
164
165
|
const s6 = true;
|
|
165
166
|
h2 = function(e5, t2) {
|
|
166
|
-
const
|
|
167
|
+
const r2 = p(e5);
|
|
167
168
|
t2 && t2.size > 0 && t2.forEach((e6) => {
|
|
168
|
-
delete
|
|
169
|
+
delete r2[e6], r2.subRules && delete r2.subRules[e6], r2.rules && delete r2.rules[e6];
|
|
169
170
|
});
|
|
170
|
-
|
|
171
|
-
return
|
|
172
|
-
}(u3,
|
|
173
|
-
} else
|
|
174
|
-
true !==
|
|
175
|
-
} else u2(new Error(
|
|
171
|
+
r2.subRules && (Object.keys(r2.subRules).length > 0 ? r2.totalSubRules || (r2.totalSubRules = {}) : delete r2.subRules);
|
|
172
|
+
return r2;
|
|
173
|
+
}(u3, n4.hiddenNotValidatorCodes), y2 = window.$vueApp.config.globalProperties.$formValidator(e4, h2, m3, f3, d3, c3, g2, s6, { returnAllErrors: b2 }), i2 = y2 && Array.isArray(y2) ? 1 === y2.length && y2[0].message ? y2[0].message : 0 === y2.length || o().t("superPageRuntimeMessage.pleaseInputRequiredInfo") : !y2 || y2.msg;
|
|
174
|
+
} else i2 = true;
|
|
175
|
+
true !== i2 ? (console.error("流程表单验证失败", h2, e4), t({ showClose: true, message: i2 + "", type: "warning" }), y2 && Array.isArray(y2) && y2.length > 0 ? (C(n4, y2), k(n4, P(n4, y2))) : y2.listCode ? (R(n4, y2), v(n4, y2)) : (R(n4, y2), E(n4, y2.field)), l4(false)) : (Object.keys(e4).indexOf("validateErrorField") >= 0 && delete e4.validateErrorField, l4(e4));
|
|
176
|
+
} else u2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
176
177
|
}).catch((e5) => {
|
|
177
178
|
u2(e5);
|
|
178
179
|
});
|
|
179
180
|
});
|
|
180
|
-
}(
|
|
181
|
-
return new Promise((
|
|
182
|
-
N(e4, t2,
|
|
181
|
+
}(n3, l3, s3) : function(e4, t2, r2) {
|
|
182
|
+
return new Promise((n4, s4) => {
|
|
183
|
+
N(e4, t2, r2).then((t3) => {
|
|
183
184
|
if (t3) {
|
|
184
185
|
const t4 = JSON.parse(JSON.stringify(e4));
|
|
185
|
-
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField,
|
|
186
|
-
} else
|
|
186
|
+
Object.keys(t4).indexOf("validateErrorField") >= 0 && delete t4.validateErrorField, n4(t4);
|
|
187
|
+
} else n4(false);
|
|
187
188
|
}).catch((e5) => {
|
|
188
189
|
s4(e5);
|
|
189
190
|
});
|
|
190
191
|
});
|
|
191
|
-
}(
|
|
192
|
+
}(n3, l3, s3);
|
|
192
193
|
}
|
|
193
194
|
return new Promise((e4, t2) => {
|
|
194
195
|
e4(true);
|
|
@@ -197,130 +198,132 @@ function w(e2, r2, s2, l2) {
|
|
|
197
198
|
}
|
|
198
199
|
function R(e2, t2) {
|
|
199
200
|
if (t2.listCode) {
|
|
200
|
-
const
|
|
201
|
-
(
|
|
201
|
+
const n2 = r(e2, t2.listCode);
|
|
202
|
+
(n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass(t2.field, t2.rowIndex, t2.pageNum);
|
|
202
203
|
} else if (t2.field) {
|
|
203
|
-
const
|
|
204
|
-
(
|
|
204
|
+
const n2 = r(e2, t2.field);
|
|
205
|
+
(n2 == null ? void 0 : n2.addRequiredClass) && n2.addRequiredClass();
|
|
205
206
|
}
|
|
206
207
|
}
|
|
207
|
-
function
|
|
208
|
+
function C(e2, t2) {
|
|
208
209
|
t2.forEach((t3) => R(e2, t3));
|
|
209
210
|
}
|
|
210
|
-
function
|
|
211
|
+
function v(e2, t2) {
|
|
211
212
|
try {
|
|
212
213
|
c(e2, t2.listCode);
|
|
213
|
-
const
|
|
214
|
-
(
|
|
214
|
+
const n2 = r(e2, t2.listCode);
|
|
215
|
+
(n2 == null ? void 0 : n2.scrollToCell) && n2.scrollToCell({ fieldName: t2.field, rowIndex: t2.rowIndex, pageNum: t2.pageNum });
|
|
215
216
|
} catch (e3) {
|
|
217
|
+
console.error("滚动到验证失败的子表字段失败,可能是表格组件版本较低没有scrollToCell方法", e3);
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
function E(e2, t2) {
|
|
219
221
|
try {
|
|
220
222
|
c(e2, t2);
|
|
221
223
|
} catch (e3) {
|
|
224
|
+
console.error("滚动失败", e3);
|
|
222
225
|
}
|
|
223
226
|
}
|
|
224
227
|
function P(e2, t2) {
|
|
225
|
-
let
|
|
228
|
+
let n2 = null, s2 = 1 / 0;
|
|
226
229
|
return t2.forEach((t3) => {
|
|
227
|
-
const
|
|
228
|
-
if (!
|
|
229
|
-
const
|
|
230
|
+
const o2 = t3.listCode || t3.field;
|
|
231
|
+
if (!o2) return;
|
|
232
|
+
const i2 = r(e2, o2), l2 = (i2 == null ? void 0 : i2.$el) || i2;
|
|
230
233
|
if (l2 == null ? void 0 : l2.getBoundingClientRect) {
|
|
231
234
|
const e3 = l2.getBoundingClientRect();
|
|
232
|
-
e3.top < s2 && (s2 = e3.top,
|
|
235
|
+
e3.top < s2 && (s2 = e3.top, n2 = t3);
|
|
233
236
|
}
|
|
234
|
-
}),
|
|
237
|
+
}), n2;
|
|
235
238
|
}
|
|
236
239
|
function k(e2, t2) {
|
|
237
|
-
t2 && (t2.listCode ?
|
|
240
|
+
t2 && (t2.listCode ? v(e2, t2) : t2.field && E(e2, t2.field));
|
|
238
241
|
}
|
|
239
242
|
function O(e2) {
|
|
240
|
-
return new Promise((t2,
|
|
241
|
-
const s2 = [],
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
|
|
243
|
+
return new Promise((t2, r2) => {
|
|
244
|
+
const s2 = [], o2 = e2.customValidatorUuids;
|
|
245
|
+
o2 && o2.forEach((t3) => {
|
|
246
|
+
const r3 = n(e2, t3);
|
|
247
|
+
r3 && r3.validator && s2.push(r3.validator());
|
|
245
248
|
}), s2 && s2.length > 0 ? Promise.all(s2).then((e3) => {
|
|
246
249
|
e3.includes(false) ? t2(false) : t2(true);
|
|
247
250
|
}) : t2(true);
|
|
248
251
|
});
|
|
249
252
|
}
|
|
250
|
-
function N(e2, t2,
|
|
251
|
-
return new Promise((
|
|
253
|
+
function N(e2, t2, r2) {
|
|
254
|
+
return new Promise((n2, s2) => {
|
|
252
255
|
var _a;
|
|
253
|
-
const
|
|
256
|
+
const i2 = JSON.parse(JSON.stringify(e2)), a2 = p(r2), u2 = t2.hiddenNotValidatorCodes;
|
|
254
257
|
if (a2 && u2 && u2.size > 0 && u2.forEach((e3) => {
|
|
255
258
|
delete a2[e3];
|
|
256
259
|
}), a2 && 0 !== Object.keys(a2).length) {
|
|
257
|
-
const e3 = b(
|
|
258
|
-
if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (
|
|
260
|
+
const e3 = b(i2, a2, null, null, true, t2);
|
|
261
|
+
if (((_a = t2.props) == null ? void 0 : _a.highlightAllRequiredField) && e3 && Array.isArray(e3) && e3.length > 0 && (C(t2, e3), k(t2, P(t2, e3)), n2(false)), true === e3) {
|
|
259
262
|
if (true === x(t2)) {
|
|
260
263
|
const e4 = q(t2);
|
|
261
264
|
e4 && l(e4) ? e4.then((e5) => {
|
|
262
265
|
e5 ? O(t2).then((e6) => {
|
|
263
|
-
|
|
264
|
-
}) :
|
|
266
|
+
n2(e6);
|
|
267
|
+
}) : n2(false);
|
|
265
268
|
}) : O(t2).then((e5) => {
|
|
266
|
-
|
|
269
|
+
n2(e5);
|
|
267
270
|
});
|
|
268
|
-
} else s2(new Error(
|
|
269
|
-
} else s2(new Error(
|
|
271
|
+
} else s2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
272
|
+
} else s2(new Error(o().t("superPageRuntimeMessage.formDataVerificationFailed")).message);
|
|
270
273
|
} else {
|
|
271
274
|
if (true === x(t2)) {
|
|
272
275
|
const e3 = q(t2);
|
|
273
276
|
e3 && l(e3) ? e3.then((e4) => {
|
|
274
277
|
e4 ? O(t2).then((e5) => {
|
|
275
|
-
|
|
276
|
-
}) :
|
|
278
|
+
n2(e5);
|
|
279
|
+
}) : n2(false);
|
|
277
280
|
}) : O(t2).then((e4) => {
|
|
278
|
-
|
|
281
|
+
n2(e4);
|
|
279
282
|
});
|
|
280
|
-
} else s2(new Error(
|
|
283
|
+
} else s2(new Error(o().t("superPageRuntimeMessage.tableListSubTableDataVerificationFailed")).message);
|
|
281
284
|
}
|
|
282
285
|
});
|
|
283
286
|
}
|
|
284
|
-
function j(e2, t2,
|
|
285
|
-
if (!t2) return
|
|
286
|
-
|
|
287
|
-
const
|
|
287
|
+
function j(e2, t2, r2) {
|
|
288
|
+
if (!t2) return r2;
|
|
289
|
+
r2 || (r2 = {});
|
|
290
|
+
const n2 = u(e2), s2 = Object.keys(t2), o2 = t2;
|
|
288
291
|
return s2.forEach((e3) => {
|
|
289
292
|
if ("__subRules" === e3) {
|
|
290
|
-
const e4 =
|
|
293
|
+
const e4 = o2.__subRules;
|
|
291
294
|
Object.keys(e4).forEach((t3) => {
|
|
292
|
-
|
|
295
|
+
r2.subRules || (r2.subRules = {}), r2.subRules[t3] ? Object.assign(r2.subRules[t3], e4[t3]) : r2.subRules[t3] = e4[t3];
|
|
293
296
|
});
|
|
294
|
-
} else _(
|
|
295
|
-
}), h(
|
|
297
|
+
} else _(o2[e3]), n2 ? (r2.rules[e3] = o2[e3], r2[e3] && (r2[e3] = o2[e3])) : r2[e3] = o2[e3];
|
|
298
|
+
}), h(r2);
|
|
296
299
|
}
|
|
297
300
|
function x(e2) {
|
|
298
301
|
var _a;
|
|
299
302
|
if (!e2) return true;
|
|
300
303
|
if (u(e2)) return true;
|
|
301
|
-
const
|
|
302
|
-
if (!
|
|
303
|
-
for (let s2 = 0; s2 <
|
|
304
|
-
const
|
|
305
|
-
if (l2 && l2.size > 0 && l2.has(
|
|
306
|
-
const a2 =
|
|
304
|
+
const r2 = e2.tableUuids;
|
|
305
|
+
if (!r2) return true;
|
|
306
|
+
for (let s2 = 0; s2 < r2.length; s2++) {
|
|
307
|
+
const i2 = r2[s2], l2 = e2.hiddenNotValidatorCodes;
|
|
308
|
+
if (l2 && l2.size > 0 && l2.has(i2)) continue;
|
|
309
|
+
const a2 = n(e2, i2);
|
|
307
310
|
if (a2) {
|
|
308
311
|
if (a2.getConfigure()) {
|
|
309
|
-
const
|
|
310
|
-
if ((_a =
|
|
311
|
-
const
|
|
312
|
-
if (!
|
|
312
|
+
const r3 = a2.getConfigure();
|
|
313
|
+
if ((_a = r3 == null ? void 0 : r3.verification) == null ? void 0 : _a.notEmpty) {
|
|
314
|
+
const n2 = a2.getTableData();
|
|
315
|
+
if (!n2 || !Array.isArray(n2) || 0 === n2.length) {
|
|
313
316
|
try {
|
|
314
|
-
d(e2,
|
|
317
|
+
d(e2, i2);
|
|
315
318
|
} catch (e3) {
|
|
316
319
|
}
|
|
317
|
-
return t({ showClose: true, message:
|
|
320
|
+
return t({ showClose: true, message: o().t("superPageRuntimeMessage.xxxNotEmpty", { label: r3.title ? r3.title : r3.code }), type: "warning" }), false;
|
|
318
321
|
}
|
|
319
322
|
}
|
|
320
323
|
}
|
|
321
324
|
if (false === a2.validatorSunTableListData()) {
|
|
322
325
|
try {
|
|
323
|
-
d(e2,
|
|
326
|
+
d(e2, i2);
|
|
324
327
|
} catch (e3) {
|
|
325
328
|
}
|
|
326
329
|
return false;
|
|
@@ -329,67 +332,67 @@ function x(e2) {
|
|
|
329
332
|
}
|
|
330
333
|
return true;
|
|
331
334
|
}
|
|
332
|
-
function
|
|
335
|
+
function T(e2) {
|
|
333
336
|
if (!e2 || 0 === Object.keys(e2).length) return;
|
|
334
|
-
const t2 = {},
|
|
335
|
-
for (let
|
|
336
|
-
const s2 = n2
|
|
337
|
-
|
|
337
|
+
const t2 = {}, r2 = Object.keys(e2);
|
|
338
|
+
for (let n2 = 0; n2 < r2.length; n2++) {
|
|
339
|
+
const s2 = r2[n2], o2 = e2[s2];
|
|
340
|
+
M(o2), s2.indexOf(".") > 0 ? g(s2, t2, o2) : o2 && o2.length > 0 && (t2[s2] = [...o2]);
|
|
338
341
|
}
|
|
339
342
|
return t2;
|
|
340
343
|
}
|
|
341
|
-
function
|
|
344
|
+
function M(e2, t2) {
|
|
342
345
|
e2.forEach((e3) => {
|
|
343
346
|
e3.message;
|
|
344
|
-
const t3 = e3.label,
|
|
345
|
-
e3.required && (e3.message =
|
|
347
|
+
const t3 = e3.label, r2 = o().t(t3);
|
|
348
|
+
e3.required && (e3.message = o().t("superPageRuntimeMessage.required", { label: r2 })), e3.myType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: r2 })), e3.patternType && (e3.message = o().t("superPageRuntimeMessage.formatMismatch", { label: r2 })), void 0 !== e3.max && null !== e3.max && (e3.message = o().t("superPageRuntimeMessage.overMaxLength", { label: r2, value: e3.max })), void 0 !== e3.min && null !== e3.min && (e3.message = o().t("superPageRuntimeMessage.limitMinLength", { label: r2, value: e3.min }));
|
|
346
349
|
});
|
|
347
350
|
}
|
|
348
351
|
function A(e2) {
|
|
349
|
-
const t2 = e2.entity.data,
|
|
352
|
+
const t2 = e2.entity.data, r2 = { ...e2.entity.page, ...t2 }, n2 = i(e2), s2 = e2.entity.context, o2 = e2.entity.task;
|
|
350
353
|
e2.formPropTiltleMap && Object.keys(e2.formPropTiltleMap).length > 0 && e2.completeTaskParam.fieldPermissions && e2.completeTaskParam.fieldPermissions.length > 0 && e2.completeTaskParam.fieldPermissions.forEach((t3) => {
|
|
351
354
|
t3.name && e2.formPropTiltleMap[t3.name] && (t3.label = e2.formPropTiltleMap[t3.name]);
|
|
352
355
|
});
|
|
353
|
-
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions,
|
|
356
|
+
let l2 = window.$vueApp.config.globalProperties.$getValidator(e2.completeTaskParam.fieldPermissions, r2, true, n2, o2, s2);
|
|
354
357
|
const a2 = e2.customRules;
|
|
355
358
|
return l2 = j(e2, a2, l2), l2 && (l2.rules || (l2.rules = {}), l2.subRules || (l2.subRules = {})), l2;
|
|
356
359
|
}
|
|
357
360
|
function q(e2) {
|
|
358
361
|
const t2 = [];
|
|
359
|
-
return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((
|
|
360
|
-
|
|
361
|
-
const s2 = e2.customEvents[
|
|
362
|
-
t2.push(s2.apply(s2, [{ prop:
|
|
362
|
+
return e2.customRuleEvents && e2.customRuleEvents.length > 0 && e2.customRuleEvents.forEach((r2) => {
|
|
363
|
+
r2.events.forEach((n2) => {
|
|
364
|
+
const s2 = e2.customEvents[n2];
|
|
365
|
+
t2.push(s2.apply(s2, [{ prop: r2.prop, pageContext: e2 }]));
|
|
363
366
|
});
|
|
364
|
-
}), t2 && t2.length > 0 ? new Promise((e3,
|
|
365
|
-
const
|
|
367
|
+
}), t2 && t2.length > 0 ? new Promise((e3, r2) => {
|
|
368
|
+
const n2 = [], s2 = [];
|
|
366
369
|
t2.forEach((e4) => {
|
|
367
|
-
l(e4) ?
|
|
368
|
-
}), s2.includes(false) && e3(false),
|
|
370
|
+
l(e4) ? n2.push(e4) : s2.push(e4);
|
|
371
|
+
}), s2.includes(false) && e3(false), n2.length > 0 ? Promise.all(n2).then((t3) => {
|
|
369
372
|
t3.includes(false) ? e3(false) : e3(true);
|
|
370
373
|
}).catch((t3) => {
|
|
371
|
-
e3(false);
|
|
374
|
+
console.error(t3), e3(false);
|
|
372
375
|
}) : e3(true);
|
|
373
376
|
}) : null;
|
|
374
377
|
}
|
|
375
378
|
function S(e2, t2) {
|
|
376
379
|
if (!t2) return;
|
|
377
|
-
const
|
|
380
|
+
const n2 = {};
|
|
378
381
|
if (t2.forEach((e3) => {
|
|
379
|
-
const { name: t3, rules:
|
|
380
|
-
|
|
382
|
+
const { name: t3, rules: r2 } = e3;
|
|
383
|
+
r2 ? n2[t3] = r2 : false === e3.required && (n2[t3] = []);
|
|
381
384
|
}), u(e2)) {
|
|
382
385
|
let t3 = e2.workflowRules ? e2.workflowRules : { rules: {}, subRules: {} };
|
|
383
|
-
t3 = j(e2,
|
|
386
|
+
t3 = j(e2, n2, t3), e2.workflowRules = t3;
|
|
384
387
|
} else {
|
|
385
388
|
let t3 = e2.rules ? e2.rules : {};
|
|
386
|
-
t3 = j(e2,
|
|
389
|
+
t3 = j(e2, n2, t3), e2.rules = t3;
|
|
387
390
|
}
|
|
388
391
|
const s2 = t2.filter((e3) => "_all_fields" === e3.name);
|
|
389
392
|
s2 && s2.length > 0 && L(e2, s2[0]), t2.forEach((t3) => {
|
|
390
393
|
if ("_all_fields" !== t3.name) {
|
|
391
|
-
const
|
|
392
|
-
D(e2,
|
|
394
|
+
const n3 = r(e2, t3.name);
|
|
395
|
+
D(e2, n3, t3);
|
|
393
396
|
}
|
|
394
397
|
});
|
|
395
398
|
}
|
|
@@ -397,33 +400,33 @@ function F(e2) {
|
|
|
397
400
|
L(e2, { disabled: true });
|
|
398
401
|
}
|
|
399
402
|
function L(e2, t2) {
|
|
400
|
-
const
|
|
401
|
-
if (
|
|
402
|
-
const s2 = n2
|
|
403
|
+
const r2 = s(e2);
|
|
404
|
+
if (r2) for (const n2 in r2) {
|
|
405
|
+
const s2 = r2[n2];
|
|
403
406
|
D(e2, s2 ? s2.value : s2, t2);
|
|
404
407
|
}
|
|
405
408
|
}
|
|
406
409
|
function V(e2, t2, s2) {
|
|
407
410
|
var _a;
|
|
408
|
-
let
|
|
409
|
-
if (s2 ? (
|
|
410
|
-
const l2 = e2.code, a2 = e2.version, u2 = f(l2, a2,
|
|
411
|
+
let o2, i2;
|
|
412
|
+
if (s2 ? (o2 = r(e2, s2), i2 = o2 ? o2.getTableUuid() : null) : (i2 = e2.tableUuids && e2.tableUuids.length > 0 ? e2.tableUuids[0] : null, o2 = i2 ? n(e2, i2) : null), !o2) return;
|
|
413
|
+
const l2 = e2.code, a2 = e2.version, u2 = f(l2, a2, i2);
|
|
411
414
|
if (e2.workflowRules || (e2.workflowRules = { rules: {}, subRules: {} }), e2.workflowRules.subRules || (e2.workflowRules.subRules = {}), e2.workflowRules.subRules[s2] || (e2.workflowRules.subRules[s2] = {}), ((_a = e2.workflowRules) == null ? void 0 : _a.subRules) && e2.workflowRules.subRules[s2]) {
|
|
412
|
-
const
|
|
415
|
+
const r2 = e2.workflowRules.subRules[s2];
|
|
413
416
|
t2.forEach((e3) => {
|
|
414
|
-
|
|
417
|
+
r2[e3.name] = e3;
|
|
415
418
|
});
|
|
416
419
|
}
|
|
417
|
-
|
|
420
|
+
o2.dynamicControlTableEdit(e2, t2, u2);
|
|
418
421
|
}
|
|
419
|
-
function D(e2, t2,
|
|
422
|
+
function D(e2, t2, r2) {
|
|
420
423
|
var _a, _b, _c;
|
|
421
424
|
if (t2) {
|
|
422
|
-
const
|
|
423
|
-
if (void 0 !==
|
|
425
|
+
const n2 = t2.getConfigure();
|
|
426
|
+
if (void 0 !== r2.show && (r2.show ? t2.show() : t2.hide()), void 0 !== r2.required && ((_a = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _a.props) && (n2.runtime.props.required = r2.required), void 0 !== r2.readonly && ((_b = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _b.props) && (r2.readonly ? n2.runtime.props.state = "readonly" : n2.runtime.props.state = "enabled"), void 0 !== r2.disabled && n2 && (((_c = n2 == null ? void 0 : n2.runtime) == null ? void 0 : _c.props) && (r2.disabled ? n2.runtime.props.state = "disabled" : n2.runtime.props.state = "enabled"), "table" === n2.name)) {
|
|
424
427
|
t2.changeOperationAddState(false);
|
|
425
|
-
const
|
|
426
|
-
t2.dynamicControlTableEdit(e2,
|
|
428
|
+
const r3 = t2 ? t2.getTableUuid() : null, n3 = e2.code, s2 = e2.version, o2 = f(n3, s2, r3), i2 = [{ name: "_all_fields", disabled: true }];
|
|
429
|
+
t2.dynamicControlTableEdit(e2, i2, o2);
|
|
427
430
|
}
|
|
428
431
|
}
|
|
429
432
|
}
|
|
@@ -431,35 +434,35 @@ function _(t2) {
|
|
|
431
434
|
if ((t2 == null ? void 0 : t2.pattern) && "object" == typeof t2.pattern && 0 === Object.keys(t2.pattern).length && delete t2.pattern, !t2) return;
|
|
432
435
|
if (!t2.type) return void function(t3) {
|
|
433
436
|
var _a;
|
|
434
|
-
const
|
|
435
|
-
if ("function" != typeof
|
|
436
|
-
t3.validator = function(e2, t4,
|
|
437
|
-
if (null == t4 || "string" == typeof t4) return
|
|
437
|
+
const r3 = (_a = e.validators) == null ? void 0 : _a.string;
|
|
438
|
+
if ("function" != typeof r3) return;
|
|
439
|
+
t3.validator = function(e2, t4, n2, s2, o2) {
|
|
440
|
+
if (null == t4 || "string" == typeof t4) return r3(e2, t4, n2, s2, o2);
|
|
438
441
|
if (Array.isArray(t4) && 0 === t4.length) return !e2.required;
|
|
439
|
-
const
|
|
442
|
+
const i2 = e2.type;
|
|
440
443
|
e2.type = void 0;
|
|
441
|
-
const l2 =
|
|
442
|
-
return e2.type =
|
|
444
|
+
const l2 = r3(e2, t4, n2, s2, o2);
|
|
445
|
+
return e2.type = i2, l2;
|
|
443
446
|
};
|
|
444
447
|
}(t2);
|
|
445
|
-
const
|
|
446
|
-
|
|
448
|
+
const r2 = I[t2.type];
|
|
449
|
+
r2 && (t2.validator = r2.validator);
|
|
447
450
|
}
|
|
448
|
-
const I = { boolean: { validator: function(e2, t2,
|
|
451
|
+
const I = { boolean: { validator: function(e2, t2, r2) {
|
|
449
452
|
return true === U(e2, t2) && ("number" == typeof t2 && (1 === t2 || 0 === t2) || "boolean" == typeof t2 && (true === t2 || false === t2));
|
|
450
|
-
} }, date: { validator: function(e2, t2,
|
|
453
|
+
} }, date: { validator: function(e2, t2, r2) {
|
|
451
454
|
if (true !== U(e2, t2)) return false;
|
|
452
|
-
const
|
|
453
|
-
return !isNaN(
|
|
454
|
-
} }, number: { validator: function(e2, t2,
|
|
455
|
+
const n2 = new Date(t2);
|
|
456
|
+
return !isNaN(n2.getTime());
|
|
457
|
+
} }, number: { validator: function(e2, t2, r2) {
|
|
455
458
|
return true === U(e2, t2) && (("string" != typeof t2 || "" !== t2.trim()) && ("number" == typeof t2 || !isNaN(Number(t2))));
|
|
456
|
-
} }, float: { validator: function(e2, t2,
|
|
459
|
+
} }, float: { validator: function(e2, t2, r2) {
|
|
457
460
|
return true === U(e2, t2) && function(e3) {
|
|
458
461
|
if ("number" == typeof e3) return !isNaN(e3);
|
|
459
462
|
if ("string" == typeof e3 && "" !== e3.trim()) return !isNaN(Number(e3));
|
|
460
463
|
return false;
|
|
461
464
|
}(t2);
|
|
462
|
-
} }, integer: { validator: function(e2, t2,
|
|
465
|
+
} }, integer: { validator: function(e2, t2, r2) {
|
|
463
466
|
return true === U(e2, t2) && ("number" == typeof t2 ? Number.isInteger(t2) : "string" == typeof t2 && "" !== t2.trim() && /^-?\d+$/.test(t2.trim()));
|
|
464
467
|
} } };
|
|
465
468
|
const U = (e2, t2) => null != t2 && "" !== t2 || !e2.required;
|
|
@@ -470,8 +473,8 @@ export {
|
|
|
470
473
|
F as disabledAllFields,
|
|
471
474
|
V as dynamicControlTableEdit,
|
|
472
475
|
A as getWorkflowRules,
|
|
473
|
-
|
|
474
|
-
|
|
476
|
+
M as i18nValidatePropRulesMessage,
|
|
477
|
+
T as i18nValidateRulesMessage,
|
|
475
478
|
J as isNotNeedValidateRequired,
|
|
476
479
|
j as packageCustomRules,
|
|
477
480
|
_ as packageCustomValidator,
|