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