cloud-web-corejs 1.0.54-dev.30 → 1.0.54-dev.301
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/package.json +8 -3
- package/src/components/Qrcode/fileParse.vue +0 -1
- package/src/components/VabUpload/index.vue +2 -1
- package/src/components/VabUpload/mixins.js +1 -1
- package/src/components/VabUpload/propertiesDialog.vue +1 -1
- package/src/components/VabUpload/view.vue +135 -119
- package/src/components/advancedSearchDialog/mixins.js +1 -1
- package/src/components/baseAttachment/index.vue +49 -40
- package/src/components/baseAttachment/mixins.js +1 -1
- package/src/components/errorMsg/mixins.js +89 -5
- package/src/components/excelExport/button.vue +57 -4
- package/src/components/excelExport/exportFieldDialog.vue +16 -6
- package/src/components/excelExport/index.js +48 -5
- package/src/components/excelExport/index.vue +64 -8
- package/src/components/excelExport/mixins.js +937 -2
- package/src/components/fileLibrary/fileObjAuthEditDialog.vue +6 -0
- package/src/components/fileLibrary/fileObjNotifyEdit.vue +72 -31
- package/src/components/fileLibrary/filterDialog.vue +383 -0
- package/src/components/fileLibrary/index.vue +23 -24
- package/src/components/fileLibrary/mixins/categoryMoveDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileCategoryDialogMixins.js +1 -1
- package/src/components/fileLibrary/mixins/fileHistoryDialogMixins.js +2 -2
- package/src/components/fileLibrary/mixins/fileObjAuthDialogMixin.js +335 -212
- package/src/components/fileLibrary/mixins/fileObjAuthEditDialogMixin.js +31 -27
- package/src/components/fileLibrary/mixins/fileObjAuthEditMixin.js +4 -4
- package/src/components/fileLibrary/mixins/indexMixins.js +69 -26
- package/src/components/fileLibrary/mixins/propertiesDialogMixins.js +63 -3
- package/src/components/fileLibrary/mixins/recycleBinDialogMixins.js +1 -1
- package/src/components/fileLibrary/propertiesDialog.vue +18 -0
- package/src/components/fileLibrary/shareDialog.vue +1 -1
- package/src/components/formOplog/mixins.js +77 -1
- package/src/components/jsonImport/index.js +1 -1
- package/src/components/jsonImport/mixins.js +1 -1
- package/src/components/statusTag/mixins.js +66 -1
- package/src/components/table/CellSlot.vue +1 -0
- package/src/components/table/index.js +12 -10
- package/src/components/table/tableForm.vue +99 -63
- package/src/components/table/tableFormMixin.js +1 -1
- package/src/components/table/util/index.js +331 -0
- package/src/components/table/vxeFilter/mixin.js +6 -6
- package/src/components/tempStorage/index.vue +9 -6
- package/src/components/tempStorage/tempStorageDialog.vue +1 -1
- package/src/components/vb-tabs/x-tabs.vue +3 -2
- package/src/components/wf/content.vue +125 -28
- package/src/components/wf/mixins/setCandidateDialog.js +218 -1
- package/src/components/wf/setCandidateDialog.vue +10 -0
- package/src/components/wf/setCandidateDialog2.vue +320 -0
- package/src/components/wf/wf.js +2062 -1
- package/src/components/wf/wfStartDialog.vue +70 -42
- package/src/components/wf/wfTaskUserRangeDialog.vue +136 -0
- package/src/components/wf/wfUtil.js +279 -1
- package/src/components/xform/form-designer/designer.js +1543 -2
- package/src/components/xform/form-designer/form-widget/container-widget/data-table-mixin.js +2 -1
- package/src/components/xform/form-designer/form-widget/container-widget/detail-widget.vue +3 -3
- package/src/components/xform/form-designer/form-widget/dialog/exportDialog.vue +13 -0
- package/src/components/xform/form-designer/form-widget/dialog/fileReferenceDialog.vue +301 -0
- package/src/components/xform/form-designer/form-widget/dialog/formDialog.vue +16 -4
- package/src/components/xform/form-designer/form-widget/dialog/formDrawer.vue +5 -1
- package/src/components/xform/form-designer/form-widget/dialog/importDialog.vue +37 -6
- package/src/components/xform/form-designer/form-widget/dialog/importDialogMixin.js +3 -1
- package/src/components/xform/form-designer/form-widget/dialog/searchFormDialog.vue +26 -7
- package/src/components/xform/form-designer/form-widget/field-widget/a-link-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/a-text-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +34 -5
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/checkbox-widget.vue +14 -6
- package/src/components/xform/form-designer/form-widget/field-widget/copy_button-widget.vue +89 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-range-widget.vue +1 -0
- package/src/components/xform/form-designer/form-widget/field-widget/date-widget.vue +21 -2
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-item-widget.vue +77 -0
- package/src/components/xform/form-designer/form-widget/field-widget/dropdown-menu-widget.vue +106 -0
- package/src/components/xform/form-designer/form-widget/field-widget/echart-bar-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-category-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/echart-pie-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +1520 -16
- package/src/components/xform/form-designer/form-widget/field-widget/form-item-wrapper.vue +632 -379
- package/src/components/xform/form-designer/form-widget/field-widget/import-button-widget.vue +6 -8
- package/src/components/xform/form-designer/form-widget/field-widget/import2-button-widget.vue +81 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-bar-mixin.js +49 -8
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-category-mixin.js +61 -88
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/echart-pie-mixin.js +13 -0
- package/src/components/xform/form-designer/form-widget/field-widget/mixins/vabsearch-mixin.js +176 -0
- package/src/components/xform/form-designer/form-widget/field-widget/multiSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/number-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/project-tag-widget.vue +70 -3
- package/src/components/xform/form-designer/form-widget/field-widget/radio-widget.vue +21 -5
- package/src/components/xform/form-designer/form-widget/field-widget/search_button-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/select-export-button-widget.vue +86 -0
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +17 -5
- package/src/components/xform/form-designer/form-widget/field-widget/singerSearch-widget.vue +53 -0
- package/src/components/xform/form-designer/form-widget/field-widget/static-content-wrapper.vue +2 -1
- package/src/components/xform/form-designer/form-widget/field-widget/status-widget.vue +22 -17
- package/src/components/xform/form-designer/form-widget/field-widget/table-export-button-widget.vue +6 -1
- package/src/components/xform/form-designer/form-widget/field-widget/tableexportbuttonwidget.vue +99 -0
- package/src/components/xform/form-designer/form-widget/field-widget/tempStorage-widget.vue +127 -0
- package/src/components/xform/form-designer/form-widget/field-widget/text-widget.vue +46 -34
- package/src/components/xform/form-designer/form-widget/field-widget/time-range-widget.vue +2 -2
- package/src/components/xform/form-designer/form-widget/field-widget/vabSearch-widget.vue +2 -170
- package/src/components/xform/form-designer/form-widget/field-widget/vabUpload-widget.vue +88 -8
- package/src/components/xform/form-designer/indexMixin.js +820 -1
- package/src/components/xform/form-designer/setting-panel/form-setting.vue +880 -158
- package/src/components/xform/form-designer/setting-panel/index.vue +4 -0
- package/src/components/xform/form-designer/setting-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/setting-panel/option-items-setting.vue +71 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/a-link-editor.vue +4 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/a-text-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/autoValueEnabled-editor.vue +38 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/censusClass-editor.vue +6 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/colorClass-editor.vue +28 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/commonAttributeEnabled-editor.vue +41 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/columnRenderDialog.vue +126 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/data-table-editor.vue +1077 -1042
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/onCheckboxChange-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-data-table/table-column-dialog.vue +1183 -500
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail/detail-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/container-detail-pane/detail-pane-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-offset-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-pull-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-grid-col/grid-col-push-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/container-list-h5/list-h5-editor.vue +0 -8
- package/src/components/xform/form-designer/setting-panel/property-editor/copyButton-editor.vue +36 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/eventMixin.js +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onAfterConfirmFile-editor.vue +32 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/event-handler/onClick-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/clickBindEvent-editor.vue +35 -20
- package/src/components/xform/form-designer/setting-panel/property-editor/field-button/search-dialog-event-editor.vue +64 -5
- package/src/components/xform/form-designer/setting-panel/property-editor/field-date-range/date-range-defaultTime-editor.vue +27 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-item-editor.vue +21 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-dropdown-menu/dropdown-menu-editor.vue +59 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-bar-editor.vue +185 -69
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-category-editor.vue +188 -86
- package/src/components/xform/form-designer/setting-panel/property-editor/field-echart/echart-pie-editor.vue +84 -39
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import-button-editor.vue +26 -10
- package/src/components/xform/form-designer/setting-panel/property-editor/field-import-button/import2-button-editor.vue +86 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-rate/rate-defaultValue-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-status/field-status-editor.vue +47 -28
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/select-export-button-editor.vue +56 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/field-table-export-button/table-export-button-editor.vue +26 -7
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabSearch/vabSearchName-editor.vue +13 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/field-vabUpload/field-vabUpload-editor.vue +30 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/formScriptEnabled-editor.vue +46 -4
- package/src/components/xform/form-designer/setting-panel/property-editor/formula-editor.vue +721 -466
- package/src/components/xform/form-designer/setting-panel/property-editor/labelColor-editor.vue +20 -11
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconClass-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelIconPosition-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/labelTooltip-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/limit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/multiple-editor.vue +19 -14
- package/src/components/xform/form-designer/setting-panel/property-editor/multipleLimit-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/placeholder-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/precision-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/project-tag-editor.vue +318 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/required-editor.vue +10 -6
- package/src/components/xform/form-designer/setting-panel/property-editor/requiredHint-editor.vue +3 -3
- package/src/components/xform/form-designer/setting-panel/property-editor/showRuleFlag-editor.vue +1 -1
- package/src/components/xform/form-designer/setting-panel/property-editor/tempStorage-editor.vue +23 -0
- package/src/components/xform/form-designer/setting-panel/property-editor/textFlag-editor.vue +305 -19
- package/src/components/xform/form-designer/setting-panel/property-editor/validation-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/validationHint-editor.vue +2 -2
- package/src/components/xform/form-designer/setting-panel/property-editor/wfFlag-editor.vue +384 -53
- package/src/components/xform/form-designer/setting-panel/property-editor/widgetShowRuleFlag-editor.vue +263 -0
- package/src/components/xform/form-designer/setting-panel/propertyRegister.js +25 -10
- package/src/components/xform/form-designer/toolbar-panel/index.vue +12 -11
- package/src/components/xform/form-designer/toolbar-panel/indexMixin.js +1 -1
- package/src/components/xform/form-designer/widget-panel/index.vue +21 -1
- package/src/components/xform/form-designer/widget-panel/indexMixin.js +3 -2
- package/src/components/xform/form-designer/widget-panel/widgetsConfig.js +1428 -865
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1 -1
- package/src/components/xform/form-render/container-item/data-table-item.vue +86 -42
- package/src/components/xform/form-render/container-item/data-table-mixin.js +2433 -18
- package/src/components/xform/form-render/container-item/detail-pane-item.vue +17 -3
- package/src/components/xform/form-render/container-item/grid-col-item.vue +10 -3
- package/src/components/xform/form-render/container-item/grid-item.vue +1 -1
- package/src/components/xform/form-render/container-item/list-h5-item.vue +1 -9
- package/src/components/xform/form-render/container-item/list-h5-item2.vue +1 -8
- package/src/components/xform/form-render/container-item/tab-item.vue +11 -6
- package/src/components/xform/form-render/container-item/table-cell-item.vue +38 -32
- package/src/components/xform/form-render/container-item/table-item.vue +4 -2
- package/src/components/xform/form-render/index.vue +4 -1
- package/src/components/xform/form-render/indexMixin.js +3018 -3
- package/src/components/xform/lang/zh-CN.js +17 -3
- package/src/components/xform/mixins/defaultHandle.js +330 -1
- package/src/components/xform/mixins/scriptHttp.js +174 -1
- package/src/components/xform/utils/emitter.js +4 -4
- package/src/components/xform/utils/format.js +21 -30
- package/src/components/xform/utils/formula-util.js +669 -0
- package/src/components/xform/utils/util.js +1450 -1
- package/src/components/xform/utils/validators.js +1 -5
- package/src/index.js +2 -2
- package/src/layout/components/AppMain.vue +5 -1
- package/src/layout/components/Sidebar/default.vue +50 -6
- package/src/layout/components/TagsView/index.vue +37 -12
- package/src/layout/components/extractedCode/createDialog.vue +92 -0
- package/src/layout/components/extractedCode/queryDialog.vue +96 -0
- package/src/layout/components/extractedCode/viewDialog.vue +193 -0
- package/src/layout/components/watermark/index.vue +83 -0
- package/src/layout/defaultLayout.vue +1 -1
- package/src/mixins/selectDialog/index.js +1 -1
- package/src/mixins/tableTree/index.js +1 -1
- package/src/router/modules/customer.js +61 -8
- package/src/store/config/index.js +1 -1
- package/src/store/modules/permission.js +1 -1
- package/src/store/modules/settings.js +1 -1
- package/src/store/modules/tagsView.js +1 -14
- package/src/store/modules/user.js +1 -1
- package/src/utils/index.js +575 -3
- package/src/utils/pddLog.js +103 -0
- package/src/utils/pdfUtil.js +71 -0
- package/src/utils/request.js +324 -1
- package/src/utils/vab.js +19 -27
- package/src/views/bd/setting/bd_attach_setting/edit.vue +5 -5
- package/src/views/bd/setting/bd_attach_setting/list.vue +28 -55
- package/src/views/bd/setting/bd_attach_setting/mixins/edit.js +4 -5
- package/src/views/bd/setting/bd_attach_setting/mixins/list.js +239 -1
- package/src/views/bd/setting/bd_company_env/dialog.vue +174 -0
- package/src/views/bd/setting/bd_company_env/edit.vue +163 -0
- package/src/views/bd/setting/bd_company_env/list.vue +175 -0
- package/src/views/bd/setting/config_manage/list.vue +51 -0
- package/src/views/bd/setting/form_import_log/edit.vue +127 -0
- package/src/views/bd/setting/form_import_log/list.vue +206 -0
- package/src/views/bd/setting/form_script/edit.vue +9 -0
- package/src/views/bd/setting/form_script/edit1.vue +36 -3
- package/src/views/bd/setting/form_script/form_list.vue +1 -1
- package/src/views/bd/setting/form_script/list1.vue +4 -4
- package/src/views/bd/setting/form_script/mixins/dialog.js +130 -1
- package/src/views/bd/setting/form_script/mixins/edit.js +201 -1
- package/src/views/bd/setting/form_script/mixins/edit1.js +193 -1
- package/src/views/bd/setting/form_script/mixins/form_list.js +1 -1
- package/src/views/bd/setting/form_script/mixins/list.js +236 -1
- package/src/views/bd/setting/form_script/mixins/list1.js +422 -14
- package/src/views/bd/setting/form_script/mixins/otherAuthDialog.js +194 -0
- package/src/views/bd/setting/form_script/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/batchWfObjConfigDialog.vue +105 -0
- package/src/views/bd/setting/form_template/edit.vue +22 -1
- package/src/views/bd/setting/form_template/editWfObjConfigDialog.vue +2 -2
- package/src/views/bd/setting/form_template/list.vue +5 -5
- package/src/views/bd/setting/form_template/mixins/batchWfObjConfigDialog.js +4 -0
- package/src/views/bd/setting/form_template/mixins/edit.js +234 -9
- package/src/views/bd/setting/form_template/mixins/list.js +688 -22
- package/src/views/bd/setting/form_template/mixins/otherAuthDialog.js +193 -0
- package/src/views/bd/setting/form_template/mixins/wf_list.js +12 -0
- package/src/views/bd/setting/form_template/otherAuthDialog.vue +83 -0
- package/src/views/bd/setting/form_template/wfObjConfigDialog.vue +254 -0
- package/src/views/bd/setting/form_template/wf_list.vue +127 -0
- package/src/views/bd/setting/menu_kind/list.vue +4 -0
- package/src/views/bd/setting/menu_kind/mixins/authDialog.js +1 -1
- package/src/views/bd/setting/menu_kind/mixins/list.js +201 -1
- package/src/views/bd/setting/push_data/edit.vue +139 -0
- package/src/views/bd/setting/push_data/list.vue +283 -0
- package/src/views/bd/setting/push_data_h/edit.vue +153 -0
- package/src/views/bd/setting/push_data_h/list.vue +293 -0
- package/src/views/bd/setting/request_async_setting/edit.vue +279 -0
- package/src/views/bd/setting/request_async_setting/list.vue +297 -0
- package/src/views/bd/setting/request_setting/edit.vue +258 -0
- package/src/views/bd/setting/request_setting/list.vue +248 -0
- package/src/views/bd/setting/table_model/edit.vue +875 -426
- package/src/views/bd/setting/table_model/list.vue +4 -4
- package/src/views/bd/setting/table_model/mixins/dialog.js +1 -1
- package/src/views/bd/setting/table_model/mixins/edit.js +1202 -13
- package/src/views/bd/setting/table_model/mixins/list.js +439 -14
- package/src/views/bd/setting/table_model/mixins/otherAuthDialog.js +201 -0
- package/src/views/bd/setting/table_model/otherAuthDialog.vue +83 -0
- package/src/views/user/area/dialog.vue +21 -9
- package/src/views/user/bill_setting/edit.vue +1 -1
- package/src/views/user/bill_setting/list.vue +1 -1
- package/src/views/user/common_attribute/itemEdit.vue +2 -2
- package/src/views/user/common_attribute/list.vue +1 -1
- package/src/views/user/common_script/edit.vue +1 -1
- package/src/views/user/common_script/list.vue +1 -1
- package/src/views/user/company_info/dialog.vue +164 -154
- package/src/views/user/company_info/edit.vue +1 -1
- package/src/views/user/extend_datasource/dialog.vue +1 -0
- package/src/views/user/extend_datasource/edit.vue +3 -0
- package/src/views/user/extend_datasource/list.vue +2 -1
- package/src/views/user/fieldTranslation/editDialog.vue +7 -7
- package/src/views/user/fieldTranslation/list.vue +32 -32
- package/src/views/user/form/vform/designer.vue +775 -749
- package/src/views/user/form/vform/out_render.vue +1 -1
- package/src/views/user/form/vform/render.vue +8 -4
- package/src/views/user/form/view/edit.vue +38 -37
- package/src/views/user/form/view/list.vue +68 -15
- package/src/views/user/groups/edit.vue +2 -0
- package/src/views/user/groups/list.vue +1 -0
- package/src/views/user/home/default.vue +1024 -979
- package/src/views/user/home/dev.vue +29 -0
- package/src/views/user/home/index.vue +16 -6
- package/src/views/user/login/default.vue +32 -3
- package/src/views/user/login/indexMixin.js +117 -3
- package/src/views/user/notify_message/dialog.vue +1 -1
- package/src/views/user/notify_template/edit.vue +188 -187
- package/src/views/user/notify_template/edit2.vue +176 -0
- package/src/views/user/notify_template/list.vue +4 -1
- package/src/views/user/notify_template/list2.vue +190 -0
- package/src/views/user/outLink/form_view.vue +39 -12
- package/src/views/user/outLink/index.vue +17 -0
- package/src/views/user/outLink/view.vue +28 -23
- package/src/views/user/position/edit.vue +55 -54
- package/src/views/user/position/list.vue +4 -4
- package/src/views/user/project_tag/dialog.vue +9 -4
- package/src/views/user/project_tag/edit.vue +2 -2
- package/src/views/user/project_tag/list.vue +9 -4
- package/src/views/user/push_setting/list.vue +2 -2
- package/src/views/user/request_setting/edit.vue +258 -0
- package/src/views/user/request_setting/list.vue +248 -0
- package/src/views/user/role/dialog.vue +1 -1
- package/src/views/user/role/list.vue +4 -4
- package/src/views/user/sale_org/dialog.vue +1 -1
- package/src/views/user/sale_org/list.vue +4 -1
- package/src/views/user/system_notice/edit.vue +1 -1
- package/src/views/user/user/dialog.vue +46 -23
- package/src/views/user/user/edit.vue +1059 -1021
- package/src/views/user/user/form_dialog.vue +158 -0
- package/src/views/user/user/form_edit.vue +63 -2
- package/src/views/user/user/form_info.vue +210 -0
- package/src/views/user/user/form_list.vue +1 -0
- package/src/views/user/user/list.vue +22 -3
- package/src/views/user/wf/wf_auto_submit_data/list.vue +2 -0
- package/src/views/user/wf/wf_manage/list.vue +30 -1
- package/src/views/user/wf/wf_manage/wfContentDialog.vue +1 -1
- package/src/views/user/wf/wf_obj_config/importItemDialog.vue +109 -0
- package/src/views/user/wf/wf_obj_config/itemEdit.vue +25 -1
- package/src/views/user/wf/wf_obj_config/list.vue +114 -9
- package/src/views/user/wf/wf_obj_config/wfBizDataSettingDialog.vue +2 -2
@@ -11,7 +11,7 @@ export default {
|
|
11
11
|
},
|
12
12
|
designer: {
|
13
13
|
componentLib: "组件库",
|
14
|
-
metadataLib: "
|
14
|
+
metadataLib: "通用组件",
|
15
15
|
formLib: "表单模板",
|
16
16
|
containerTitle: "容器",
|
17
17
|
dragHandlerHint: "鼠标拖拽容器组件或字段组件并放置于表单中",
|
@@ -69,7 +69,9 @@ export default {
|
|
69
69
|
"export_button": "导出按钮",
|
70
70
|
"import_button": "导入按钮",
|
71
71
|
"import-button": "导入按钮",
|
72
|
+
"import2-button": "明细导入按钮",
|
72
73
|
"print-button": "导出/打印按钮",
|
74
|
+
"copy_button": "复制按钮",
|
73
75
|
"rich-editor": "富文本",
|
74
76
|
cascader: "级联选择",
|
75
77
|
slot: "插槽",
|
@@ -93,10 +95,22 @@ export default {
|
|
93
95
|
'h5-table': "h5表格",
|
94
96
|
tree: "树形",
|
95
97
|
"table-export-button": "列表导出",
|
98
|
+
"select-export-button": "明细导出",
|
96
99
|
status: "状态",
|
97
100
|
"a-link": "超链接按钮",
|
98
101
|
"a-text": "超链接文本",
|
99
|
-
'project-tag': '
|
102
|
+
'project-tag': '标签',
|
103
|
+
'dropdown-menu': '下拉菜单',
|
104
|
+
|
105
|
+
"create_by-text": "创建人",
|
106
|
+
"modify_by-text": "更新人",
|
107
|
+
"create_date-text": "创建时间",
|
108
|
+
"modify_date-text": "更新时间",
|
109
|
+
"user-vabsearch": "用户(单选)",
|
110
|
+
"saleOrg-vabsearch": "机构(单选)",
|
111
|
+
"user-project-tag": "用户(多选)",
|
112
|
+
"saleOrg-project-tag": "机构(多选)",
|
113
|
+
"tempStorage": "暂存按钮",
|
100
114
|
},
|
101
115
|
hint: {
|
102
116
|
formulaSetting: "公式设置",
|
@@ -587,7 +601,7 @@ export default {
|
|
587
601
|
enterForQuery: "输入关键字进行过滤",
|
588
602
|
add: "添加",
|
589
603
|
delete: "删除",
|
590
|
-
censusClass:'统计样式'
|
604
|
+
censusClass: '统计样式'
|
591
605
|
}
|
592
606
|
}
|
593
607
|
}
|
@@ -1,5 +1,334 @@
|
|
1
1
|
import dayjs from "dayjs";
|
2
2
|
|
3
3
|
let modules = {};
|
4
|
-
function _0x25f2(_0x24184a,_0x42906c){const _0x15c338=_0x4290();_0x25f2=function(_0xd3324,_0x6c3fbc){_0xd3324=_0xd3324-0x0;let _0x489436=_0x15c338[_0xd3324];if(_0x25f2["\u0072\u0069\u0061\u0064\u004b\u006f"]===undefined){var _0x1b9211=function(_0x39b5a3){const _0x4cc9c7="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0xe42976='';let _0x5ce54b='';for(let _0x1df35f=0x0,_0xabae5e,_0x4fb806,_0x398103=0x0;_0x4fb806=_0x39b5a3['charAt'](_0x398103++);~_0x4fb806&&(_0xabae5e=_0x1df35f%0x4?_0xabae5e*0x40+_0x4fb806:_0x4fb806,_0x1df35f++%0x4)?_0xe42976+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](0xff&_0xabae5e>>(-0x2*_0x1df35f&0x6)):0x0){_0x4fb806=_0x4cc9c7["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x4fb806);}for(let _0x3801af=0x0,_0x27f844=_0xe42976["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x3801af<_0x27f844;_0x3801af++){_0x5ce54b+="\u0025"+("\u0030\u0030"+_0xe42976["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x3801af)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x5ce54b);};const _0x2828d5=function(_0x1420b1,_0x3415c3){let _0x39317c=[],_0xf47c87=0x0,_0x1fdf86,_0x1d9466='';_0x1420b1=_0x1b9211(_0x1420b1);let _0x23a8ba;for(_0x23a8ba=0x0;_0x23a8ba<0x100;_0x23a8ba++){_0x39317c[_0x23a8ba]=_0x23a8ba;}for(_0x23a8ba=0x0;_0x23a8ba<0x100;_0x23a8ba++){_0xf47c87=(_0xf47c87+_0x39317c[_0x23a8ba]+_0x3415c3["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x23a8ba%_0x3415c3["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x1fdf86=_0x39317c[_0x23a8ba];_0x39317c[_0x23a8ba]=_0x39317c[_0xf47c87];_0x39317c[_0xf47c87]=_0x1fdf86;}_0x23a8ba=0x0;_0xf47c87=0x0;for(let _0x43fde7=0x0;_0x43fde7<_0x1420b1["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x43fde7++){_0x23a8ba=(_0x23a8ba+0x1)%0x100;_0xf47c87=(_0xf47c87+_0x39317c[_0x23a8ba])%0x100;_0x1fdf86=_0x39317c[_0x23a8ba];_0x39317c[_0x23a8ba]=_0x39317c[_0xf47c87];_0x39317c[_0xf47c87]=_0x1fdf86;_0x1d9466+=String['fromCharCode'](_0x1420b1["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x43fde7)^_0x39317c[(_0x39317c[_0x23a8ba]+_0x39317c[_0xf47c87])%0x100]);}return _0x1d9466;};_0x25f2['mzPwkc']=_0x2828d5;_0x24184a=arguments;_0x25f2['riadKo']=!![];}const _0x5c6e12=_0x15c338[0x0];const _0x131af9=_0xd3324+_0x5c6e12;const _0x25f278=_0x24184a[_0x131af9];if(!_0x25f278){if(_0x25f2["\u007a\u0043\u0076\u0062\u0066\u0066"]===undefined){_0x25f2['zCvbff']=!![];}_0x489436=_0x25f2['mzPwkc'](_0x489436,_0x6c3fbc);_0x24184a[_0x131af9]=_0x489436;}else{_0x489436=_0x25f278;}return _0x489436;};return _0x25f2(_0x24184a,_0x42906c);}function bFPhYq(_0xc3081,_0x413480){if(!![]!=![])return;bFPhYq=function(_0x4e6383,_0x109a3b){_0x4e6383=_0x4e6383-(0x973c9^0x973c9);var _0x38f465=_0x5e50e6[_0x4e6383];return _0x38f465;};return bFPhYq(_0xc3081,_0x413480);}bFPhYq();(function(_0x34a4fd,_0x34983f){function _0x92a6a8(_0x3217ad,_0x377efc,_0x501d43,_0x335513,_0x1590ae){return _0x25f2(_0x377efc- -0x178,_0x501d43);}function _0x17a201(_0x4c1262,_0x482a5f,_0x3aa661,_0x3ceedb,_0xb8120e){return _0x25f2(_0x482a5f- -0x26c,_0x4c1262);}function _0x28f12a(_0x464767,_0x226665,_0x4dc9f3,_0x36ea48,_0x2155c9){return _0x15c3(_0x464767-0x27e,_0x4dc9f3);}function _0x569c6c(_0x3bcd10,_0x6b4b04,_0x419666,_0x11c9fe,_0x3150c7){return _0x25f2(_0x11c9fe- -0xee,_0x6b4b04);}function _0x2bb230(_0x5095e9,_0x52457a,_0x39eabb,_0x545a34,_0x4b24d9){return _0x15c3(_0x5095e9-0x1c5,_0x52457a);}const _0x40d1a3=_0x34a4fd();function _0x51e5ab(_0xf778c4,_0x4010a0,_0x4a7dd8,_0x101309,_0x380045){return _0x15c3(_0x4010a0- -0x359,_0x101309);}function _0x38d15d(_0x4ae0f9,_0x112d83,_0x32e238,_0x50b870,_0x592311){return _0x15c3(_0x50b870-0x27d,_0x32e238);}function _0x3fc8b7(_0x42edd0,_0x27aa6f,_0x18c4d9,_0x5668ed,_0x504b04){return _0x15c3(_0x42edd0- -0xa4,_0x504b04);}do{try{const _0x21ba5f=parseInt(_0x569c6c(-0xa2,"TF09".split("").reverse().join(""),-0x8d,-0xaf,-0xae))/0x1*(parseInt(_0x3fc8b7(-0x9d,-0x92,-0x90,-0xb4,-0x80))/0x2)+parseInt(_0x92a6a8(-0x15b,-0x135,"\u0028\u0041\u0032\u0065",-0x141,-0x115))/0x3*(parseInt(_0x28f12a(0x2b1,0x2c4,0x2c6,0x2a6,0x2d5))/0x4)+parseInt(_0x28f12a(0x2ba,0x29c,0x294,0x2cb,0x2c2))/0x5*(parseInt(_0x38d15d(0x288,0x28b,0x2b1,0x2a1,0x285))/0x6)+-parseInt(_0x38d15d(0x2ad,0x2b1,0x294,0x2bd,0x2a3))/0x7+parseInt(_0x28f12a(0x29f,0x294,0x29c,0x28e,0x28f))/0x8*(-parseInt(_0x28f12a(0x2c6,0x2d5,0x2ad,0x2ae,0x2c5))/0x9)+parseInt(_0x2bb230(0x1eb,0x212,0x1e3,0x1df,0x1dd))/0xa+-parseInt(_0x569c6c(-0xbd,"\u0072\u0051\u0050\u0029",-0xd3,-0xc3,-0xe3))/0xb;if(_0x21ba5f===_0x34983f){break;}else{_0x40d1a3['push'](_0x40d1a3['shift']());}}catch(_0x15942c){_0x40d1a3['push'](_0x40d1a3["\u0073\u0068\u0069\u0066\u0074"]());}}while(!![]);})(_0x4290,0x1cdac);function _0x15c3(_0x24184a,_0x42906c){const _0x15c338=_0x4290();_0x15c3=function(_0xd3324,_0x6c3fbc){_0xd3324=_0xd3324-0x0;let _0x489436=_0x15c338[_0xd3324];if(_0x15c3['CgaoUU']===undefined){var _0x1b9211=function(_0x2828d5){const _0x39b5a3="\u0061\u0062\u0063\u0064\u0065\u0066\u0067\u0068\u0069\u006a\u006b\u006c\u006d\u006e\u006f\u0070\u0071\u0072\u0073\u0074\u0075\u0076\u0077\u0078\u0079\u007a\u0041\u0042\u0043\u0044\u0045\u0046\u0047\u0048\u0049\u004a\u004b\u004c\u004d\u004e\u004f\u0050\u0051\u0052\u0053\u0054\u0055\u0056\u0057\u0058\u0059\u005a\u0030\u0031\u0032\u0033\u0034\u0035\u0036\u0037\u0038\u0039\u002b\u002f\u003d";let _0x4cc9c7='';let _0xe42976='';for(let _0x5ce54b=0x0,_0x1df35f,_0xabae5e,_0x4fb806=0x0;_0xabae5e=_0x2828d5["\u0063\u0068\u0061\u0072\u0041\u0074"](_0x4fb806++);~_0xabae5e&&(_0x1df35f=_0x5ce54b%0x4?_0x1df35f*0x40+_0xabae5e:_0xabae5e,_0x5ce54b++%0x4)?_0x4cc9c7+=String['fromCharCode'](0xff&_0x1df35f>>(-0x2*_0x5ce54b&0x6)):0x0){_0xabae5e=_0x39b5a3["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0xabae5e);}for(let _0x398103=0x0,_0x3801af=_0x4cc9c7['length'];_0x398103<_0x3801af;_0x398103++){_0xe42976+="\u0025"+("00".split("").reverse().join("")+_0x4cc9c7['charCodeAt'](_0x398103)["\u0074\u006f\u0053\u0074\u0072\u0069\u006e\u0067"](0x10))['slice'](-0x2);}return decodeURIComponent(_0xe42976);};_0x15c3['yVRgBC']=_0x1b9211;_0x24184a=arguments;_0x15c3['CgaoUU']=!![];}const _0x5c6e12=_0x15c338[0x0];const _0x131af9=_0xd3324+_0x5c6e12;const _0x25f278=_0x24184a[_0x131af9];if(!_0x25f278){_0x489436=_0x15c3["\u0079\u0056\u0052\u0067\u0042\u0043"](_0x489436);_0x24184a[_0x131af9]=_0x489436;}else{_0x489436=_0x25f278;}return _0x489436;};return _0x15c3(_0x24184a,_0x42906c);}function adNpYk(_0x27f844,_0x1420b1){if(!![]!=![])return;adNpYk=function(_0x3415c3,_0x39317c){_0x3415c3=_0x3415c3-(0x973c9^0x973c9);var _0xf47c87=_0x5e50e6[_0x3415c3];return _0xf47c87;};return adNpYk(_0x27f844,_0x1420b1);}adNpYk();function _0x45116d(_0x253a64,_0x3c5e08,_0x1d1826,_0x16515c,_0x3307ee){return _0x25f2(_0x3c5e08-0x2f4,_0x16515c);}function _0x4290(){const _0x2a9f98=["WKcRJk9CRWzkCSctRWPkmo".split("").reverse().join(""),"WNdN6WxomeRmQWoomVcpPWMbdSdRNr0k8QdR6W0o8g".split("").reverse().join(""),"\u0057\u0034\u005a\u0063\u004f\u0061\u002f\u0064\u0055\u0038\u006b\u0073\u006b\u0048\u0034\u006b\u0071\u0043\u006f\u0068\u0057\u004f\u0078\u0064\u0055\u0066\u0062\u0050","ehDtPLA".split("").reverse().join(""),"\u006c\u0075\u0066\u007a\u0057\u0034\u0042\u0063\u0055\u004c\u006c\u0063\u004a\u006d\u006f\u002f\u0057\u0052\u0044\u0067","42BPnNCLzvBY9Mz".split("").reverse().join(""),"\u0073\u0067\u007a\u004f\u0042\u0065\u0057","\u006e\u004e\u0044\u0031\u007a\u0032\u004c\u0066\u007a\u0061","\u0057\u0050\u004a\u0064\u0055\u0038\u006f\u0054\u0057\u0052\u0078\u0063\u0050\u0064\u0039\u0069\u0057\u0037\u006c\u0063\u0047\u006d\u006b\u0055","RzdVd74WWomxtkSuoPxz".split("").reverse().join(""),"Hrxye1MCVzeBHvMu0v2z".split("").reverse().join(""),"qMA1fLA".split("").reverse().join(""),"\u007a\u0067\u0066\u0030\u0079\u0075\u004c\u004b","aElj0zRLemYaZn5etm".split("").reverse().join(""),"\u0077\u0059\u0039\u0055\u0057\u0050\u0069\u0056\u0057\u0037\u0046\u0064\u0052\u0078\u006c\u0063\u0056\u0057","\u0078\u0032\u0031\u0056\u007a\u0067\u004c\u004d\u0045\u0075\u006a\u0035","\u006d\u0074\u0061\u0030\u006f\u0074\u0047\u0033\u006d\u004b\u0072\u0059\u0077\u0065\u0039\u0031\u0041\u0071","a7W4kSDNSMCzoCKdtfkCo8IdFrm".split("").reverse().join(""),"\u0074\u0053\u006b\u0051\u0057\u004f\u004f\u0031\u0067\u004d\u0057\u0072\u0057\u0034\u004a\u0064\u0052\u0038\u006f\u006b","qzcDusUfeo3iJn2atm".split("").reverse().join(""),"GKc/RWuaLraKKBmaQWukCjok8b".split("").reverse().join(""),"\u006e\u0064\u0065\u0033\u006f\u0074\u0062\u0066\u0076\u0067\u006a\u004f\u0076\u0075\u0038","\u007a\u004d\u0039\u0059\u0042\u0075\u006e\u0056\u0042\u004d\u007a\u0050\u007a\u0057","\u0057\u0050\u0044\u004f\u0072\u006d\u006b\u0077\u0057\u0036\u0071","\u0070\u0047\u0038\u004e\u0057\u0037\u004b\u0064\u0063\u006d\u006f\u0033\u0057\u0036\u0033\u0063\u0049\u0038\u006b\u0042\u006e\u004b\u0037\u0063\u0054\u0057","\u0035\u004f\u0067\u0066\u0035\u0036\u006f\u0071\u0035\u0041\u0036\u0055\u0036\u006b\u0041\u0062\u0035\u006c\u0059\u0072\u0035\u0041\u002b\u0039\u0035\u007a\u0067\u006d\u0037\u0037\u0036\u0035","\u0057\u0035\u005a\u0063\u004a\u0057\u0030\u0033\u0057\u0037\u005a\u0063\u004c\u0032\u0056\u0064\u0052\u0032\u0033\u0064\u004c\u0043\u006b\u0036\u0057\u0051\u0042\u0064\u0056\u0057","qmDzPWDkCa".split("").reverse().join(""),"ugDHrwASfMD".split("").reverse().join(""),"\u0076\u0053\u006f\u005a\u0057\u0051\u0071\u0068\u0057\u0035\u0048\u006c\u0075\u006d\u006b\u0045\u0068\u004e\u0038","G2CHr2Bmv2CHjgj".split("").reverse().join(""),"PoSGdpOWY4eDbeQWCkCC".split("").reverse().join(""),"\u007a\u004d\u0039\u0059\u0042\u0077\u0066\u0030","qebk8HdtGw".split("").reverse().join(""),"\u006d\u004a\u0069\u0032\u006d\u0074\u0065\u0059\u0072\u004b\u004c\u0052\u0073\u0078\u006e\u004d","5juz0fwzYn2x".split("").reverse().join(""),"\u0079\u0032\u0058\u004c\u0079\u0078\u006a\u006a\u0042\u004e\u0072\u004c\u0043\u004e\u007a\u0048\u0042\u0061","axynjxzTLgD".split("").reverse().join(""),"\u006a\u0038\u006f\u0064\u0057\u0034\u0046\u0064\u004d\u0038\u006f\u0054\u0043\u0047","2oCHd/3lE4GCzomkl4NOcV4W".split("").reverse().join(""),"GzLjvBY9Mr0v2z".split("").reverse().join(""),"\u007a\u004d\u0039\u0059\u0042\u0075\u0048\u0030\u0044\u0068\u0061","\u007a\u0065\u0078\u0063\u0052\u0038\u006f\u0069","aEZjKBgzun".split("").reverse().join(""),"\u0061\u006d\u006b\u0055\u0057\u0036\u007a\u0035\u0057\u0036\u007a\u0051\u0078\u0038\u006b\u0067\u006b\u0075\u004f","ybMcdRWskCv".split("").reverse().join(""),"\u0075\u0053\u006f\u0079\u0041\u0043\u006b\u0077\u0057\u0051\u004f\u005a\u0078\u0076\u0069\u0042","\u006d\u0074\u0065\u0058\u006d\u004a\u004b\u0034\u006e\u004e\u0062\u0031\u0074\u004c\u006e\u005a\u0076\u0047","uuqQfuy".split("").reverse().join(""),"\u0057\u0050\u0056\u0064\u0056\u0038\u006f\u0054\u0057\u0050\u0069","axXomHcVrVcFZw".split("").reverse().join(""),"\u0043\u004d\u0076\u0057\u0042\u0033\u006a\u0030\u0076\u0067\u0076\u0054\u0043\u0067\u0058\u0048\u0044\u0067\u0075","\u0072\u0053\u006b\u0046\u0057\u0051\u0046\u0063\u004d\u0061\u004c\u0079\u0057\u0052\u0042\u0063\u0051\u0057\u005a\u0063\u0056\u0049\u0068\u0063\u0050\u0053\u006f\u0066","NLMzU92y".split("").reverse().join(""),"\u0043\u0032\u0066\u0032\u007a\u0076\u0076\u0057\u007a\u0067\u0066\u0030\u007a\u0071","WDqDLvgnwo".split("").reverse().join(""),"WLd/GozoCu".split("").reverse().join(""),"\u0057\u0037\u0042\u0064\u004c\u004a\u0033\u0063\u0047\u0030\u0047","\u0068\u006d\u006b\u0061\u0065\u0053\u006f\u0033\u0045\u0073\u0065\u0033\u0057\u0050\u0078\u0064\u004b\u0057\u0042\u0063\u0053\u004d\u0075","\u0043\u004d\u0076\u0053\u0042\u0032\u0066\u004b\u0072\u004d\u0039\u0059\u0042\u0071","\u0041\u004d\u0039\u0051\u007a\u0067\u0054\u004b","\u0068\u0053\u006f\u0065\u0061\u0053\u006f\u0044\u0057\u0037\u006d\u0064\u0057\u0036\u0044\u0053\u0057\u0052\u0053\u0064\u0057\u0034\u0058\u006a\u0057\u0034\u0061","zomkd4NRcl7W".split("").reverse().join(""),"\u0073\u0066\u004c\u0036\u0074\u0031\u004b","\u0057\u0034\u0052\u0064\u004d\u006d\u006f\u0046\u0057\u0050\u0033\u0063\u0049\u0074\u0035\u0044","GkyusEcoScd4NRcl7W".split("").reverse().join(""),"\u006b\u0043\u006b\u0046\u0064\u004c\u0056\u0063\u004f\u0033\u0052\u0064\u0056\u0043\u006b\u0043","\u0057\u0037\u005a\u0063\u0049\u0038\u006b\u0073\u006b\u0043\u006b\u0053\u0075\u0038\u006f\u0047\u0072\u004e\u0056\u0064\u004b\u0043\u006b\u0069\u0063\u006d\u006f\u0069","\u006c\u0038\u006b\u0048\u0057\u0035\u006d","0oSm/TPW6DOWlkCsfvOW".split("").reverse().join(""),"KWPWboSRd/sx".split("").reverse().join(""),"\u0057\u0034\u0037\u0063\u0052\u0053\u006b\u0056\u0057\u0034\u0078\u0064\u0055\u0078\u004f\u0044\u0057\u0036\u0068\u0063\u0049\u0038\u006b\u0062\u006d\u006d\u006f\u0067\u0069\u0057","\u0066\u006d\u006f\u0052\u0057\u0035\u0056\u0064\u0055\u0043\u006f\u006c","qSdJQW/GrQdV5WYo8Qd/PW".split("").reverse().join(""),"\u0057\u0051\u0039\u006f\u0057\u0052\u0061\u0034\u0057\u0051\u0070\u0064\u004b\u0061","\u0062\u0053\u006b\u0065\u0069\u0038\u006b\u0052\u0057\u0051\u0071\u006a","MSZtdkmDLSZd".split("").reverse().join(""),"\u006d\u0074\u0047\u0032\u006f\u0066\u0066\u0074\u0079\u004b\u0050\u0073\u0075\u0057","\u007a\u0067\u0066\u0035","\u0078\u0032\u006e\u0059\u007a\u0077\u0066\u0030\u007a\u0075\u0035\u0050\u0079\u0032\u0054\u006f\u0079\u0077\u0031\u004c","CPWtkmn4kmd".split("").reverse().join(""),"\u0057\u004f\u0048\u006f\u0057\u0052\u0046\u0064\u0050\u0038\u006f\u0065\u0042\u0059\u0056\u0063\u004e\u0059\u0030\u0043","\u0079\u0033\u0052\u0063\u004d\u0043\u006b\u0069\u0057\u0036\u0037\u0064\u0047\u0053\u006b\u0074\u0064\u0061","eo8PdJZr1kSp".split("").reverse().join(""),"\u0076\u0043\u006b\u0078\u0057\u0036\u0037\u0064\u004c\u0053\u006b\u0063\u0057\u0035\u0047\u006a\u0057\u0036\u0079\u0061\u0070\u0030\u0076\u0071\u0057\u0052\u0074\u0063\u004f\u004c\u0034","ugzVnuBY9Mz".split("").reverse().join(""),"gj7WvX5W54RW1nQWyLPWkkCrukmx".split("").reverse().join("")];_0x4290=function(){return _0x2a9f98;};return _0x4290();}modules={'data'(){return{"\u0074\u0069\u006d\u0065\u0072\u004d\u0061\u0070":{},"\u0064\u0061\u0079\u006a\u0073":dayjs};},"\u0062\u0065\u0066\u006f\u0072\u0065\u0044\u0065\u0073\u0074\u0072\u006f\u0079"(){function _0x21ea80(_0x4653f8,_0x231262,_0x3ef118,_0x58919a,_0x19c46a){return _0x25f2(_0x3ef118-0x3c0,_0x19c46a);}function _0x1788d9(_0x4902fe,_0xf6617,_0x43c274,_0x16b0fd,_0x22bd96){return _0x15c3(_0x4902fe- -0xca,_0x22bd96);}const _0xa89358={'jQujd':_0x21ea80(0x3eb,0x40f,0x3f0,0x3d6,"\u0043\u0041\u0056\u005e"),'VFhKR':_0x1788d9(-0x89,-0x70,-0x68,-0x80,-0x69)};function _0x2fe6ab(_0x221a2e,_0x45e711,_0xe21a67,_0x496d1d,_0x240133){return _0x15c3(_0x221a2e- -0x24,_0xe21a67);}for(let _0x4d20c2 in this['timerMap']){if(_0x1788d9(-0x89,-0x89,-0x9c,-0x60,-0x7c)!==_0xa89358["\u0056\u0046\u0068\u004b\u0052"]){if(!_0x370325)return _0x5ed0d5;return _0x7a9cde(_0x308fdb)["\u0066\u006f\u0072\u006d\u0061\u0074"](_0xa89358["\u006a\u0051\u0075\u006a\u0064"]);}else{this["\u0063\u006c\u0065\u0061\u0072\u0049\u006e\u0074\u0065\u0072\u0076\u0061\u006c"](_0x4d20c2);}}},"\u006d\u0065\u0074\u0068\u006f\u0064\u0073":{"\u0061\u0064\u0064\u0046\u006f\u0072\u006d\u0061\u0074\u0044\u0061\u0074\u0065"(_0x3f9cdc,_0x1f3232){function _0x5e9d86(_0x110553,_0x39ef6c,_0x30e39c,_0x27e400,_0x576d42){return _0x25f2(_0x110553-0x2f5,_0x39ef6c);}function _0x44e07e(_0x8a6275,_0x1a9f82,_0x4910b7,_0x20c87f,_0x26a167){return _0x15c3(_0x8a6275- -0x8c,_0x4910b7);}if(!_0x3f9cdc)return _0x3f9cdc;return dayjs(_0x3f9cdc)['add'](_0x1f3232,_0x44e07e(-0x84,-0xac,-0xa3,-0x89,-0x7f))["\u0066\u006f\u0072\u006d\u0061\u0074"](_0x5e9d86(0x34b,"\u0028\u006a\u006b\u0069",0x348,0x36d,0x329));},'formatDate'(_0x5b810b){const _0x256bbe={'Tydkj':_0x32dd11(0xe8,"\u0031\u0065\u006f\u0057",0x105,0xd7,0xc9)};function _0x32dd11(_0x58e44b,_0x19a205,_0x9b9fdd,_0x289675,_0x372219){return _0x25f2(_0x58e44b-0xdd,_0x19a205);}if(!_0x5b810b)return _0x5b810b;return dayjs(_0x5b810b)['format'](_0x256bbe["\u0054\u0079\u0064\u006b\u006a"]);},"\u0066\u006f\u0072\u006d\u0061\u0074\u0044\u0061\u0074\u0065\u0054\u0069\u006d\u0065"(_0x1b360b,_0x25fbbc=_0x45116d(0x319,0x306,0x303,"\u0031\u0038\u006f\u0025",0x321)){if(!_0x1b360b)return _0x1b360b;return dayjs(_0x1b360b)["\u0066\u006f\u0072\u006d\u0061\u0074"](_0x25fbbc);},"\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0045\u006e\u0074\u0069\u0074\u0079\u0044\u0061\u0074\u0061"(_0x10e502){let _0x4703d8=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']():this;let _0x1fd7b7;let _0x2db91c=this["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"];_0x1fd7b7=0x2+0x2;let _0x30ab8c;let _0x33485f=_0x2db91c["\u0065\u006e\u0074\u0069\u0074\u0079"];_0x30ab8c=0x4+0x8;if(!_0x10e502)_0x10e502=this['getReqFormData']();return _0x10e502["\u0064\u0061\u0074\u0061"][_0x33485f];},"\u0067\u0065\u0074\u0052\u0065\u0071\u0046\u006f\u0072\u006d\u0044\u0061\u0074\u0061"(){let _0xec02d3=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']():this;let _0xd0db59;let _0x1eab7f=this["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"];_0xd0db59=0x8+0x8;let _0x140fed;let _0x26f48c=_0x1eab7f["\u0065\u006e\u0074\u0069\u0074\u0079"];_0x140fed=0x4;if(!_0x26f48c)return;let _0x387bd0=_0xec02d3?.["\u0064\u0061\u0074\u0061\u0049\u0064"];let _0x5e8f8a=_0xec02d3?.["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"];let _0x5736e8;let _0x141a7f=_0x5e8f8a?.["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"];_0x5736e8=0x2+0x9;let _0x49d72f=this["\u0024\u0062\u0061\u0073\u0065\u004c\u006f\u0064\u0061\u0073\u0068"]['cloneDeep'](_0xec02d3["\u0067\u0065\u0074\u0052\u0065\u0061\u006c\u0046\u006f\u0072\u006d\u0044\u0061\u0074\u0061"]());var _0x7363f0=0x1+0x7;let _0x59f81f=_0x49d72f[_0x141a7f]||{};_0x7363f0=0x4+0x8;delete _0x49d72f[_0x141a7f];_0x49d72f[_0x26f48c]=_0x59f81f;delete _0x59f81f['_createNickName'];delete _0x59f81f["\u005f\u0063\u0072\u0065\u0061\u0074\u0065\u004d\u006f\u0062\u0069\u006c\u0065"];delete _0x59f81f['_modifyNickName'];delete _0x59f81f['_modifyMobile'];delete _0x59f81f['_createBy'];delete _0x59f81f["\u005f\u006d\u006f\u0064\u0069\u0066\u0079\u0042\u0079"];let _0x47d528={'formCode':_0x141a7f,'formVersion':_0x5e8f8a['formVersion'],"\u0074\u0061\u0042\u006d":_0x26f48c,"\u0064\u0061\u0074\u0061":_0x49d72f};return _0x47d528;},"\u0073\u0061\u0076\u0065\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0048\u0061\u006e\u0064\u006c\u0065"(_0x492e8f){const _0xc2db76={"\u0048\u0066\u0068\u006c\u004c":function(_0x37f35f,_0x4ad688){return _0x37f35f!==_0x4ad688;},"\u006c\u0053\u0065\u0055\u0052":_0x17ee12(-0x386,-0x372,"\u0072\u0051\u0050\u0029",-0x388,-0x397),"\u004b\u0074\u0054\u0044\u004e":_0x319b88(0x219,0x1ec,0x223,0x214,0x213)};let _0x34452d=this['getFormRef']?this['getFormRef']():this;let _0x55e1a7=this["\u0066\u006f\u0072\u006d\u0043\u006f\u006e\u0066\u0069\u0067"];var _0xecde22=0x6+0x7;function _0x17ee12(_0x4a4b53,_0xd12bbf,_0x1be95b,_0x5e6ea3,_0x27000d){return _0x25f2(_0x4a4b53- -0x3b0,_0x1be95b);}let _0x54d7aa=_0x55e1a7['entity'];_0xecde22=0x5;if(!_0x54d7aa)return;let _0x6fec8b;let _0x589004=_0x34452d?.["dIatad".split("").reverse().join("")];_0x6fec8b=0x0;let _0x307cbc=_0x34452d?.["etalpmeTtroper".split("").reverse().join("")];let _0x3abebb=_0x307cbc?.["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"];let _0x3c4ce0=_0x55e1a7['saveScriptCode']||_0xc2db76["\u004b\u0074\u0054\u0044\u004e"];function _0x319b88(_0x5de1c7,_0xc6eddd,_0xc77d25,_0x5d7851,_0x4afe7c){return _0x15c3(_0x4afe7c-0x1cc,_0xc77d25);}let _0x7c1d86;let _0x2267c4=_0x492e8f?.["gifnoc".split("").reverse().join("")];_0x7c1d86=0x1+0x3;_0x34452d['validate'](_0x2e6f0e=>{function _0x25c0c6(_0x454020,_0x1eb7a7,_0x34ec26,_0x5c67a0,_0x8bbfd4){return _0x25f2(_0x454020-0x28c,_0x34ec26);}const _0x1fa2ab={"\u0049\u006e\u0066\u0072\u006f":function(_0x24ca40,_0x207c91){return _0xc2db76['HfhlL'](_0x24ca40,_0x207c91);},'jZStq':_0x25c0c6(0x2d6,0x2e3,"\u0063\u005d\u0048\u005a",0x2ff,0x2aa)};function _0x48466f(_0x3464fc,_0x151842,_0x76ed4a,_0x3e4e55,_0x45dfed){return _0x15c3(_0x151842-0x380,_0x76ed4a);}if(_0x2e6f0e){var _0x2a27fa=0x9+0x1;let _0x375221=this['getReqFormData']();_0x2a27fa=_0x48466f(0x3d7,0x3cd,0x3f0,0x3b9,0x3d4);this["\u0066\u006f\u0072\u006d\u0048\u0074\u0074\u0070"]({'scriptCode':_0x3c4ce0,"\u0064\u0061\u0074\u0061":_0x375221,"\u0073\u0075\u0063\u0063\u0065\u0073\u0073\u004d\u0073\u0067":!![],"\u0069\u0073\u0043\u006f\u006e\u0066\u0069\u0072\u006d":!![],'confirmText':_0xc2db76["\u006c\u0053\u0065\u0055\u0052"],'success':_0x57e58b=>{function _0x48b070(_0x5b8cbe,_0x1734b1,_0x4e0724,_0x12979b,_0x3db0e1){return _0x15c3(_0x3db0e1- -0x178,_0x12979b);}if(_0x1fa2ab['Infro'](_0x48b070(-0x10d,-0x14f,-0x103,-0x104,-0x128),_0x1fa2ab['jZStq'])){for(let _0x27cd73 in this["\u0074\u0069\u006d\u0065\u0072\u004d\u0061\u0070"]){this["\u0063\u006c\u0065\u0061\u0072\u0049\u006e\u0074\u0065\u0072\u0076\u0061\u006c"](_0x27cd73);}}else{_0x34452d["\u0072\u0065\u006c\u006f\u0061\u0064\u0046\u006f\u0072\u006d"]({'updateParam':{"\u0064\u0061\u0074\u0061\u0049\u0064":_0x57e58b["\u006f\u0062\u006a\u0078"]}});}},..._0x2267c4});}});},'setInterval'(_0x583b9b,_0x338f1d){const _0x184638={"\u0069\u0055\u0079\u0072\u004f":function(_0x400ad1,_0x179bc3,_0x100d25){return _0x400ad1(_0x179bc3,_0x100d25);}};let _0x576abc=_0x184638["\u0069\u0055\u0079\u0072\u004f"](setInterval,_0x583b9b,_0x338f1d);this["\u0074\u0069\u006d\u0065\u0072\u004d\u0061\u0070"][_0x576abc]=_0x576abc;},'clearInterval'(_0x2d0229){clearInterval(_0x2d0229);delete this['timerMap'][_0x2d0229];},"\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0050\u0061\u0072\u0061\u006d"(){let _0x13f20c=this['getFormRef']?this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]():this;return _0x13f20c["\u0070\u0061\u0072\u0061\u006d"];}}};
|
4
|
+
modules = {
|
5
|
+
data() {
|
6
|
+
return {
|
7
|
+
timerMap: {},
|
8
|
+
dayjs: dayjs
|
9
|
+
}
|
10
|
+
},
|
11
|
+
beforeDestroy() {
|
12
|
+
for (let timer in this.timerMap) {
|
13
|
+
this.clearInterval(timer)
|
14
|
+
}
|
15
|
+
},
|
16
|
+
methods: {
|
17
|
+
addFormatDate(date, num) {
|
18
|
+
if (!date) return date;
|
19
|
+
return dayjs(date).add(num, "day").format("YYYY-MM-DD");
|
20
|
+
},
|
21
|
+
formatDate(date) {
|
22
|
+
if (!date) return date;
|
23
|
+
return dayjs(date).format("YYYY-MM-DD");
|
24
|
+
},
|
25
|
+
formatDateTime(date, format = "YYYY-MM-DD HH:mm:ss") {
|
26
|
+
if (!date) return date
|
27
|
+
return dayjs(date).format(format);
|
28
|
+
},
|
29
|
+
getFormEntityData(reqFormData) {
|
30
|
+
let formRef = this.getFormRef ? this.getFormRef() : this;
|
31
|
+
let formConfig = this.formConfig;
|
32
|
+
let entity = formConfig.entity;
|
33
|
+
if (!reqFormData) reqFormData = this.getReqFormData();
|
34
|
+
return reqFormData.data[entity];
|
35
|
+
},
|
36
|
+
getReqFormData() {
|
37
|
+
let formRef = this.getFormRef ? this.getFormRef() : this;
|
38
|
+
let formConfig = this.formConfig;
|
39
|
+
let entity = formConfig.entity;
|
40
|
+
if (!entity) return
|
41
|
+
let dataId = formRef?.dataId;
|
42
|
+
let reportTemplate = formRef?.reportTemplate;
|
43
|
+
let formCode = reportTemplate?.formCode;
|
44
|
+
|
45
|
+
let formData = this.$baseLodash.cloneDeep(formRef.getRealFormData());
|
46
|
+
let mainData = formData[formCode] || {};
|
47
|
+
delete formData[formCode];
|
48
|
+
formData[entity] = mainData;
|
49
|
+
|
50
|
+
delete mainData._createNickName;
|
51
|
+
delete mainData._createMobile;
|
52
|
+
delete mainData._modifyNickName;
|
53
|
+
delete mainData._modifyMobile;
|
54
|
+
delete mainData._createBy;
|
55
|
+
delete mainData._modifyBy;
|
56
|
+
|
57
|
+
let reqData = {
|
58
|
+
formCode: formCode,
|
59
|
+
formVersion: reportTemplate.formVersion,
|
60
|
+
taBm: entity,
|
61
|
+
data: formData
|
62
|
+
};
|
63
|
+
return reqData;
|
64
|
+
},
|
65
|
+
saveDefaultHandle(option) {
|
66
|
+
let formRef = this.getFormRef ? this.getFormRef() : this;
|
67
|
+
let formConfig = this.formConfig;
|
68
|
+
let entity = formConfig.entity;
|
69
|
+
if (!entity) return
|
70
|
+
let dataId = formRef?.dataId;
|
71
|
+
let reportTemplate = formRef?.reportTemplate;
|
72
|
+
let formCode = reportTemplate?.formCode;
|
73
|
+
let scriptCode = formConfig.saveScriptCode || "saveUpdate"
|
74
|
+
let config = option?.config;
|
75
|
+
// formRef.clearValidate();
|
76
|
+
// formRef.$forceUpdate();
|
77
|
+
// let formDataModel = formRef.formDataModel;
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
formRef.validate(valid => {
|
82
|
+
if (valid) {
|
83
|
+
let reqData = this.getReqFormData();
|
84
|
+
this.formHttp({
|
85
|
+
// url: "/" + reportTemplate.serviceName + "/form_ins/saveUpdate",
|
86
|
+
scriptCode: scriptCode,
|
87
|
+
data: reqData,
|
88
|
+
successMsg: true,
|
89
|
+
isConfirm: true,
|
90
|
+
confirmText: this.$t1("您确定要保存吗?"),
|
91
|
+
success: res => {
|
92
|
+
let editFormCode = formConfig.editFormCode
|
93
|
+
let updateParam = {
|
94
|
+
dataId: res.objx
|
95
|
+
}
|
96
|
+
if(editFormCode){
|
97
|
+
updateParam.formCode = editFormCode;
|
98
|
+
}
|
99
|
+
|
100
|
+
formRef.reloadForm({
|
101
|
+
updateParam
|
102
|
+
});
|
103
|
+
},
|
104
|
+
...config
|
105
|
+
});
|
106
|
+
}
|
107
|
+
});
|
108
|
+
},
|
109
|
+
setInterval(callback, millis) {
|
110
|
+
let timer = setInterval(callback, millis);
|
111
|
+
this.timerMap[timer] = timer;
|
112
|
+
},
|
113
|
+
clearInterval(timer) {
|
114
|
+
clearInterval(timer)
|
115
|
+
delete this.timerMap[timer];
|
116
|
+
},
|
117
|
+
getFormParam() {
|
118
|
+
let that = this.getFormRef ? this.getFormRef() : this;
|
119
|
+
return that.param;
|
120
|
+
},
|
121
|
+
setGlobalParam(key, value) {
|
122
|
+
let that = this.getFormRef ? this.getFormRef() : this;
|
123
|
+
that.globalParam[key] = value;
|
124
|
+
},
|
125
|
+
getGlobalParam(key) {
|
126
|
+
let that = this.getFormRef ? this.getFormRef() : this;
|
127
|
+
return that.globalParam[key];
|
128
|
+
},
|
129
|
+
|
130
|
+
//1个数组的行号处理 begin
|
131
|
+
/**
|
132
|
+
* 删除列表中的行并刷新序列
|
133
|
+
* @param {Array} list - 数据数组
|
134
|
+
* @param {number} deleteIndex - 要删除的索引
|
135
|
+
* @param {string} [seqField='seq'] - 序列字段名
|
136
|
+
* @returns {Array} 更新后的数组
|
137
|
+
*/
|
138
|
+
deleteNumRows(list, deleteIndex, seqField = 'seq') {
|
139
|
+
if (deleteIndex < 0 || deleteIndex >= list.length) {
|
140
|
+
return [...list]; // 返回副本
|
141
|
+
}
|
142
|
+
|
143
|
+
// 创建副本避免修改原数组
|
144
|
+
const newList = [...list];
|
145
|
+
|
146
|
+
// 删除指定行
|
147
|
+
newList.splice(deleteIndex, 1);
|
148
|
+
|
149
|
+
// 重新计算序列
|
150
|
+
newList.forEach((item, index) => {
|
151
|
+
item[seqField] = index + 1;
|
152
|
+
});
|
153
|
+
|
154
|
+
return newList;
|
155
|
+
},
|
156
|
+
|
157
|
+
/**
|
158
|
+
* 在列表中插入新行并刷新序列
|
159
|
+
* @param {Array} list - 数据数组
|
160
|
+
* @param {Array|Object} newItems - 要插入的新项(单个或多个)
|
161
|
+
* @param {number} [insertIndex] - 插入位置(默认末尾)
|
162
|
+
* @param {string} [seqField='seq'] - 序列字段名
|
163
|
+
* @returns {Array} 更新后的数组
|
164
|
+
*/
|
165
|
+
insertNumRows(list, newItems, insertIndex = list.length, seqField = 'seq') {
|
166
|
+
// 参数标准化
|
167
|
+
const itemsArray = Array.isArray(newItems) ? newItems : [newItems];
|
168
|
+
|
169
|
+
// 边界检查
|
170
|
+
insertIndex = Math.max(0, Math.min(insertIndex, list.length));
|
171
|
+
|
172
|
+
// 创建副本
|
173
|
+
const newList = [...list];
|
174
|
+
|
175
|
+
// 准备要插入的项(移除可能的旧序列)
|
176
|
+
const itemsToInsert = itemsArray.map(item => {
|
177
|
+
const newItem = {...item};
|
178
|
+
if (newItem[seqField] !== undefined) {
|
179
|
+
delete newItem[seqField];
|
180
|
+
}
|
181
|
+
return newItem;
|
182
|
+
});
|
183
|
+
|
184
|
+
// 插入新项
|
185
|
+
newList.splice(insertIndex, 0, ...itemsToInsert);
|
186
|
+
|
187
|
+
// 重新计算所有序列
|
188
|
+
newList.forEach((item, index) => {
|
189
|
+
item[seqField] = index + 1;
|
190
|
+
});
|
191
|
+
|
192
|
+
return newList;
|
193
|
+
},
|
194
|
+
//1个数组的行号处理 end
|
195
|
+
|
196
|
+
//2个数组的行号处理 begin
|
197
|
+
/**
|
198
|
+
* 通用新增方法(支持单条/多条)
|
199
|
+
* @param {Array} list1 - 主数据数组
|
200
|
+
* @param {Array} list2 - 关联数据数组
|
201
|
+
* @param {Array|Object} newItems - 要插入的新项(单个对象或多个对象的数组)
|
202
|
+
* @param {Array|Array[]} subItems - 关联数据(单个数组或多个数组的数组)
|
203
|
+
* @param {number} [insertIndex] - 插入位置(默认末尾)
|
204
|
+
* @param {string} [seqField='seq'] - list1中的序列字段名
|
205
|
+
* @param {string} [superSeqField='super_seq'] - list2中的关联字段名
|
206
|
+
* @returns {Object} 包含更新后的list1和list2
|
207
|
+
*/
|
208
|
+
insertRelRows(list1, list2, newItems, subItems = [], insertIndex, seqField = 'seq', superSeqField = 'super_seq') {
|
209
|
+
// 参数标准化
|
210
|
+
const itemsArray = Array.isArray(newItems) ? newItems : [newItems];
|
211
|
+
const subItemsArray = Array.isArray(subItems) && subItems.length > 0 && Array.isArray(subItems[0])
|
212
|
+
? subItems
|
213
|
+
: [subItems];
|
214
|
+
|
215
|
+
|
216
|
+
if (insertIndex === null || insertIndex === undefined) {
|
217
|
+
insertIndex = list1.length
|
218
|
+
}
|
219
|
+
// 边界检查
|
220
|
+
insertIndex = Math.max(0, Math.min(insertIndex, list1.length));
|
221
|
+
|
222
|
+
// 创建副本
|
223
|
+
const newList1 = [...list1];
|
224
|
+
const newList2 = [...list2];
|
225
|
+
|
226
|
+
// 1. 插入新项(不设置序列)
|
227
|
+
const itemsToInsert = itemsArray.map(item => {
|
228
|
+
const newItem = {...item};
|
229
|
+
if (newItem[seqField] !== undefined) {
|
230
|
+
delete newItem[seqField]; // 确保不保留旧序列
|
231
|
+
}
|
232
|
+
return newItem;
|
233
|
+
});
|
234
|
+
|
235
|
+
newList1.splice(insertIndex, 0, ...itemsToInsert);
|
236
|
+
|
237
|
+
// 2. 重新计算序列并创建映射表
|
238
|
+
const seqMapping = {};
|
239
|
+
newList1.forEach((item, index) => {
|
240
|
+
const newSeq = index + 1;
|
241
|
+
const oldSeq = item[seqField];
|
242
|
+
|
243
|
+
// 记录旧序列到新序列的映射
|
244
|
+
if (oldSeq !== undefined) {
|
245
|
+
seqMapping[oldSeq] = newSeq;
|
246
|
+
}
|
247
|
+
|
248
|
+
// 更新当前项序列
|
249
|
+
item[seqField] = newSeq;
|
250
|
+
});
|
251
|
+
|
252
|
+
// 3. 获取新插入项的序列
|
253
|
+
const newSeqs = [];
|
254
|
+
for (let i = 0; i < itemsArray.length; i++) {
|
255
|
+
newSeqs.push(insertIndex + i + 1);
|
256
|
+
}
|
257
|
+
|
258
|
+
// 4. 更新现有关联字段
|
259
|
+
newList2.forEach(item => {
|
260
|
+
const currentSuperSeq = item[superSeqField];
|
261
|
+
if (seqMapping[currentSuperSeq] !== undefined) {
|
262
|
+
item[superSeqField] = seqMapping[currentSuperSeq];
|
263
|
+
}
|
264
|
+
});
|
265
|
+
|
266
|
+
// 5. 添加新关联数据
|
267
|
+
subItemsArray.forEach((subItems, idx) => {
|
268
|
+
const superSeq = newSeqs[idx];
|
269
|
+
if (Array.isArray(subItems) && subItems.length > 0) {
|
270
|
+
subItems.forEach(item => {
|
271
|
+
const newItem = {...item};
|
272
|
+
newItem[superSeqField] = superSeq;
|
273
|
+
newList2.push(newItem);
|
274
|
+
});
|
275
|
+
}
|
276
|
+
});
|
277
|
+
|
278
|
+
return {list1: newList1, list2: newList2};
|
279
|
+
},
|
280
|
+
|
281
|
+
/**
|
282
|
+
* 删除关联行(从属数据打平传参)
|
283
|
+
* @param {Array} masters - 主数据数组
|
284
|
+
* @param {Array} slaves - 从属数据数组(打平的一维数组)
|
285
|
+
* @param {number} rowIdx - 要删除的主数据行索引
|
286
|
+
* @param {string} [seqField='seq'] - 行号字段名
|
287
|
+
* @param {string} [refField='super_seq'] - 关联字段名
|
288
|
+
* @returns {Object} 包含更新后的masters和slaves
|
289
|
+
*/
|
290
|
+
deleteRelRows(masters, slaves, rowIdx, seqField = 'seq', refField = 'super_seq') {
|
291
|
+
// 边界检查
|
292
|
+
if (rowIdx < 0 || rowIdx >= masters.length) {
|
293
|
+
return {masters: [...masters], slaves: [...slaves]};
|
294
|
+
}
|
295
|
+
|
296
|
+
// 创建副本
|
297
|
+
const newMasters = [...masters];
|
298
|
+
const newSlaves = [...slaves];
|
299
|
+
|
300
|
+
// 1. 删除主行并获取序列值
|
301
|
+
const [deleted] = newMasters.splice(rowIdx, 1);
|
302
|
+
const deletedSeq = deleted[seqField];
|
303
|
+
|
304
|
+
// 2. 删除关联的从属行
|
305
|
+
for (let i = newSlaves.length - 1; i >= 0; i--) {
|
306
|
+
if (newSlaves[i][refField] === deletedSeq) {
|
307
|
+
newSlaves.splice(i, 1);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
// 3. 重新计算主数据序列
|
312
|
+
const seqMap = {};
|
313
|
+
newMasters.forEach((master, idx) => {
|
314
|
+
const oldSeq = master[seqField];
|
315
|
+
const newSeq = idx + 1;
|
316
|
+
seqMap[oldSeq] = newSeq;
|
317
|
+
master[seqField] = newSeq;
|
318
|
+
});
|
319
|
+
|
320
|
+
// 4. 更新从属数据引用
|
321
|
+
newSlaves.forEach(slave => {
|
322
|
+
const ref = slave[refField];
|
323
|
+
if (seqMap[ref] !== undefined) {
|
324
|
+
slave[refField] = seqMap[ref];
|
325
|
+
}
|
326
|
+
});
|
327
|
+
|
328
|
+
return {list1: newMasters, list2: newSlaves};
|
329
|
+
}
|
330
|
+
//2个数组的行号处理 end
|
331
|
+
|
332
|
+
}
|
333
|
+
}
|
5
334
|
export default modules;
|
@@ -1,6 +1,179 @@
|
|
1
1
|
import {initWf} from '../../../components/wf/wfUtil'
|
2
2
|
import {getReportGlobalMap} from "../../../components/xform/utils/util";
|
3
|
+
import {decrypt} from "@base/utils/aes";
|
4
|
+
|
3
5
|
|
4
6
|
let modules = {};
|
5
|
-
(function(_0x3c9b8e,_0x53a347){function _0x4352df(_0x190f53,_0x4e2656,_0x2c033a,_0x392833,_0x596715){return _0x1851(_0x4e2656-0x1a8,_0x2c033a);}function _0x46c003(_0x2c837e,_0x3103cb,_0x5a71e7,_0x3dfae5,_0x5ed495){return _0x1a26(_0x5a71e7- -0x332,_0x3103cb);}const _0x3e393b=_0x3c9b8e();function _0x5b026b(_0x681e6e,_0x19aa7c,_0x101d2d,_0x44f448,_0x593e8f){return _0x1851(_0x681e6e-0x23d,_0x19aa7c);}function _0x51e3b2(_0x573413,_0x29f74d,_0x174653,_0x11cf30,_0x1cf7f1){return _0x1851(_0x573413- -0x15a,_0x11cf30);}function _0x238dba(_0x4453a0,_0x194f7e,_0x46d44c,_0xd242a7,_0x1f683e){return _0x1a26(_0x46d44c- -0x1a0,_0x4453a0);}function _0x3ac262(_0x249871,_0x4419d0,_0x5b1131,_0x3e8037,_0x2d2db4){return _0x1a26(_0x5b1131- -0x5d,_0x2d2db4);}function _0x4ad5d3(_0x1f82d0,_0x8b8e6f,_0x38972b,_0x300b3f,_0x2b4eaf){return _0x1a26(_0x8b8e6f-0xd1,_0x1f82d0);}function _0x232887(_0x29a94b,_0x3e9f68,_0x5bf0b8,_0xd32682,_0x1f058e){return _0x1851(_0x1f058e- -0x1a3,_0x5bf0b8);}function _0x4aa7db(_0x5577d7,_0x389508,_0x3278dc,_0x1cc6fc,_0x5d3201){return _0x1851(_0x389508- -0x6b,_0x1cc6fc);}function _0x1896d2(_0x723a63,_0x1d3fb9,_0x2af89e,_0x349928,_0x107089){return _0x1a26(_0x2af89e- -0x14c,_0x349928);}do{try{const _0x12b00e=-parseInt(_0x1896d2(-0x128,-0xfe,-0x117,"rPza".split("").reverse().join(""),-0x138))/0x1*(-parseInt(_0x232887(-0x166,-0x16c,-0x160,-0x168,-0x16f))/0x2)+-parseInt(_0x1896d2(-0xff,-0x127,-0x11c,"\u0062\u0041\u0070\u005e",-0x104))/0x3+-parseInt(_0x232887(-0x19f,-0x184,-0x196,-0x1b1,-0x1a0))/0x4*(-parseInt(_0x232887(-0x168,-0x17b,-0x16a,-0x18d,-0x16c))/0x5)+parseInt(_0x238dba("\u006e\u0034\u0067\u0039",-0x17f,-0x18b,-0x1a0,-0x180))/0x6*(parseInt(_0x5b026b(0x25e,0x266,0x26d,0x27f,0x270))/0x7)+parseInt(_0x3ac262(-0x47,-0x2c,-0x43,-0x62,"\u0067\u0069\u0024\u0028"))/0x8*(parseInt(_0x4352df(0x1b0,0x1b3,0x1bc,0x1a6,0x19e))/0x9)+parseInt(_0x51e3b2(-0x142,-0x161,-0x157,-0x137,-0x13f))/0xa*(-parseInt(_0x1896d2(-0x150,-0x151,-0x145,"#pFj".split("").reverse().join(""),-0x129))/0xb)+-parseInt(_0x4ad5d3("o]eP".split("").reverse().join(""),0xf1,0xe3,0x10c,0x110))/0xc;if(_0x12b00e===_0x53a347){break;}else{_0x3e393b["\u0070\u0075\u0073\u0068"](_0x3e393b['shift']());}}catch(_0x45caec){_0x3e393b['push'](_0x3e393b['shift']());}}while(!![]);})(_0x2cf5,0x3b680);function _0x1a26(_0x4e3ff3,_0x2cf552){const _0x1851ba=_0x2cf5();_0x1a26=function(_0x319628,_0x1255da){_0x319628=_0x319628-0x0;let _0x1645ba=_0x1851ba[_0x319628];if(_0x1a26["\u0050\u0043\u004c\u004f\u0074\u0049"]===undefined){var _0x3b81c7=function(_0x32d091){const _0x22e693="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x126b1f='';let _0x45b9b9='';for(let _0x5f32b6=0x0,_0x46ce0d,_0x3b4f8d,_0xb6b467=0x0;_0x3b4f8d=_0x32d091['charAt'](_0xb6b467++);~_0x3b4f8d&&(_0x46ce0d=_0x5f32b6%0x4?_0x46ce0d*0x40+_0x3b4f8d:_0x3b4f8d,_0x5f32b6++%0x4)?_0x126b1f+=String['fromCharCode'](0xff&_0x46ce0d>>(-0x2*_0x5f32b6&0x6)):0x0){_0x3b4f8d=_0x22e693["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x3b4f8d);}for(let _0x241637=0x0,_0x275dcd=_0x126b1f["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x241637<_0x275dcd;_0x241637++){_0x45b9b9+="\u0025"+("\u0030\u0030"+_0x126b1f["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x241637)['toString'](0x10))["\u0073\u006c\u0069\u0063\u0065"](-0x2);}return decodeURIComponent(_0x45b9b9);};const _0x24758c=function(_0x3f0be7,_0x15375d){let _0xfc920d=[],_0x3e69f6=0x0,_0x411e2b,_0x37c118='';_0x3f0be7=_0x3b81c7(_0x3f0be7);let _0x1a3266;for(_0x1a3266=0x0;_0x1a3266<0x100;_0x1a3266++){_0xfc920d[_0x1a3266]=_0x1a3266;}for(_0x1a3266=0x0;_0x1a3266<0x100;_0x1a3266++){_0x3e69f6=(_0x3e69f6+_0xfc920d[_0x1a3266]+_0x15375d["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x1a3266%_0x15375d["\u006c\u0065\u006e\u0067\u0074\u0068"]))%0x100;_0x411e2b=_0xfc920d[_0x1a3266];_0xfc920d[_0x1a3266]=_0xfc920d[_0x3e69f6];_0xfc920d[_0x3e69f6]=_0x411e2b;}_0x1a3266=0x0;_0x3e69f6=0x0;for(let _0x390916=0x0;_0x390916<_0x3f0be7["\u006c\u0065\u006e\u0067\u0074\u0068"];_0x390916++){_0x1a3266=(_0x1a3266+0x1)%0x100;_0x3e69f6=(_0x3e69f6+_0xfc920d[_0x1a3266])%0x100;_0x411e2b=_0xfc920d[_0x1a3266];_0xfc920d[_0x1a3266]=_0xfc920d[_0x3e69f6];_0xfc920d[_0x3e69f6]=_0x411e2b;_0x37c118+=String["\u0066\u0072\u006f\u006d\u0043\u0068\u0061\u0072\u0043\u006f\u0064\u0065"](_0x3f0be7["\u0063\u0068\u0061\u0072\u0043\u006f\u0064\u0065\u0041\u0074"](_0x390916)^_0xfc920d[(_0xfc920d[_0x1a3266]+_0xfc920d[_0x3e69f6])%0x100]);}return _0x37c118;};_0x1a26["\u004b\u0076\u0062\u0046\u0047\u0054"]=_0x24758c;_0x4e3ff3=arguments;_0x1a26["\u0050\u0043\u004c\u004f\u0074\u0049"]=!![];}const _0x186812=_0x1851ba[0x0];const _0x5c75b4=_0x319628+_0x186812;const _0x1a2608=_0x4e3ff3[_0x5c75b4];if(!_0x1a2608){if(_0x1a26["\u0053\u004c\u0066\u0072\u0079\u0078"]===undefined){_0x1a26['SLfryx']=!![];}_0x1645ba=_0x1a26['KvbFGT'](_0x1645ba,_0x1255da);_0x4e3ff3[_0x5c75b4]=_0x1645ba;}else{_0x1645ba=_0x1a2608;}return _0x1645ba;};return _0x1a26(_0x4e3ff3,_0x2cf552);}function tBtkMZ(_0x18f269,_0x45c6cd){if(!![]!=![])return;tBtkMZ=function(_0x56a98d,_0x1a6e29){_0x56a98d=_0x56a98d-(0x973c9^0x973c9);var _0x20dcf0=_0x5e50e6[_0x56a98d];return _0x20dcf0;};return tBtkMZ(_0x18f269,_0x45c6cd);}tBtkMZ();function _0x1851(_0x4e3ff3,_0x2cf552){const _0x1851ba=_0x2cf5();_0x1851=function(_0x319628,_0x1255da){_0x319628=_0x319628-0x0;let _0x1645ba=_0x1851ba[_0x319628];if(_0x1851["\u0076\u0046\u0063\u0049\u0066\u004d"]===undefined){var _0x3b81c7=function(_0x24758c){const _0x32d091="=/+9876543210ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba".split("").reverse().join("");let _0x22e693='';let _0x126b1f='';for(let _0x45b9b9=0x0,_0x5f32b6,_0x46ce0d,_0x3b4f8d=0x0;_0x46ce0d=_0x24758c['charAt'](_0x3b4f8d++);~_0x46ce0d&&(_0x5f32b6=_0x45b9b9%0x4?_0x5f32b6*0x40+_0x46ce0d:_0x46ce0d,_0x45b9b9++%0x4)?_0x22e693+=String['fromCharCode'](0xff&_0x5f32b6>>(-0x2*_0x45b9b9&0x6)):0x0){_0x46ce0d=_0x32d091["\u0069\u006e\u0064\u0065\u0078\u004f\u0066"](_0x46ce0d);}for(let _0xb6b467=0x0,_0x241637=_0x22e693['length'];_0xb6b467<_0x241637;_0xb6b467++){_0x126b1f+="\u0025"+("00".split("").reverse().join("")+_0x22e693['charCodeAt'](_0xb6b467)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x126b1f);};_0x1851['sSzkqM']=_0x3b81c7;_0x4e3ff3=arguments;_0x1851['vFcIfM']=!![];}const _0x186812=_0x1851ba[0x0];const _0x5c75b4=_0x319628+_0x186812;const _0x1a2608=_0x4e3ff3[_0x5c75b4];if(!_0x1a2608){_0x1645ba=_0x1851["\u0073\u0053\u007a\u006b\u0071\u004d"](_0x1645ba);_0x4e3ff3[_0x5c75b4]=_0x1645ba;}else{_0x1645ba=_0x1a2608;}return _0x1645ba;};return _0x1851(_0x4e3ff3,_0x2cf552);}function BjmGnY(_0x275dcd,_0x3f0be7){if(!![]!=![])return;BjmGnY=function(_0x15375d,_0xfc920d){_0x15375d=_0x15375d-(0x973c9^0x973c9);var _0x3e69f6=_0x5e50e6[_0x15375d];return _0x3e69f6;};return BjmGnY(_0x275dcd,_0x3f0be7);}BjmGnY();function _0x2cf5(){const _0x1685c9=["\u0067\u0071\u0071\u0048\u0057\u004f\u0053\u0073\u0065\u006d\u006f\u006b\u006b\u0038\u006b\u0078\u0057\u0034\u006d\u004b\u0063\u006d\u006b\u002b","\u006d\u0074\u0065\u0030\u006d\u004a\u0065\u0059\u0075\u0031\u006e\u005a\u007a\u004d\u0076\u0041","6kStFk8RcJxB9bRW".split("").reverse().join(""),"\u0042\u0032\u0048\u0053\u007a\u0032\u0072\u0052","\u0043\u0032\u0076\u0059\u0044\u004d\u004c\u004a\u007a\u0075\u0035\u0048\u0042\u0077\u0075","\u007a\u0033\u006a\u0069\u0043\u0067\u0043","\u0057\u0037\u0079\u004f\u0076\u004c\u0037\u0063\u0052\u0043\u006b\u0072\u0077\u0043\u006b\u004f\u0057\u004f\u0030\u0042\u0057\u0050\u006d\u006c\u0057\u0052\u0078\u0064\u0050\u0061","\u0057\u0051\u0076\u0054\u0044\u0043\u006f\u007a\u0079\u0057","i4WX5IA7nhPdJPWvKPW".split("").reverse().join(""),"\u0044\u0076\u006e\u0067\u0074\u0068\u006d","\u0057\u0051\u0043\u0069\u0062\u0059\u0056\u0064\u0050\u0053\u006f\u0071\u0075\u0074\u0056\u0064\u004a\u0074\u0069","\u0046\u0033\u0047\u006a\u0078\u0053\u006b\u0072\u0057\u0051\u006c\u0063\u0047\u004d\u0062\u006b\u0072\u0071","\u007a\u0067\u0066\u0030\u0079\u0071","qOWFomwjkCrTk8RdpOW".split("").reverse().join(""),"jCJzUk8Vdp1GcF7W".split("").reverse().join(""),"aRdV5WSkCRd34W".split("").reverse().join(""),"WkSHd7fhlkCQd/rIdttmJkms".split("").reverse().join(""),"\u006d\u0074\u0075\u0057\u0044\u0065\u0035\u006d\u0073\u0068\u006e\u0052","\u0057\u0050\u004b\u0074\u0057\u0050\u004a\u0064\u0055\u0032\u0050\u0053\u0074\u0061\u0039\u0030\u0057\u0034\u0050\u0032","\u0057\u0037\u0066\u0044\u0071\u0058\u0033\u0064\u004f\u0053\u006f\u006e\u0072\u0064\u002f\u0064\u004f\u0061","WAsv0yMHfo5Ctn".split("").reverse().join(""),"\u0057\u0052\u004e\u0063\u0054\u0043\u006f\u007a\u0072\u006d\u006b\u0056\u0042\u0032\u0076\u0052\u0057\u0035\u0075","GzLjvBY9Mr0v2z".split("").reverse().join(""),"\u006d\u004a\u0069\u0031\u006e\u0064\u0069\u0034\u006e\u0076\u007a\u0076\u0045\u0076\u006e\u0072\u0073\u0061","\u0079\u0075\u006a\u006c\u0074\u0030\u0069","\u0076\u0048\u0074\u0063\u004d\u0038\u006f\u006d\u0073\u0071","\u0057\u0034\u0070\u0064\u0048\u0048\u0079\u0035\u0057\u0050\u0076\u006a\u0057\u0034\u006c\u0063\u004c\u0057","\u0057\u0050\u005a\u0064\u0047\u0043\u006b\u006e\u0057\u0050\u0033\u0063\u0053\u0038\u006b\u0031\u0057\u004f\u0056\u0064\u0050\u0038\u006f\u0068\u0046\u0043\u006b\u0068\u0046\u0030\u004f","WOdteGd77Wyk8TdN4W".split("").reverse().join(""),"\u0057\u0035\u0078\u0064\u0048\u0048\u0043\u0047","u2zHn3CL1gj".split("").reverse().join(""),"4WGdZ6Wm87WlkCQcpRWfvRW".split("").reverse().join(""),"u1zvvxA".split("").reverse().join(""),"\u007a\u004d\u0039\u0059\u0042\u0075\u006e\u0056\u007a\u0067\u0075","ayQWau7WDomhfoCn".split("").reverse().join(""),"qEK9My".split("").reverse().join(""),"WCZv2yJv3C".split("").reverse().join(""),"\u006e\u0066\u0066\u0066\u0044\u004c\u0066\u0066\u0072\u0057","\u0043\u004d\u0076\u0057\u0042\u0033\u006a\u0030\u0076\u0067\u0076\u0054\u0043\u0067\u0058\u0048\u0044\u0067\u0075","GBLHgD".split("").reverse().join(""),"TjxAM52BdnxA".split("").reverse().join(""),"\u0064\u004c\u0070\u0064\u0056\u006d\u006b\u0079\u006b\u0073\u004e\u0064\u004a\u0066\u0038\u0066\u0057\u0034\u0068\u0063\u0049\u0047\u0062\u0079","O7WkSfUcJ4W".split("").reverse().join(""),"\u006f\u0031\u0064\u0064\u0050\u0049\u0033\u0063\u004a\u0030\u0064\u0064\u0055\u0048\u006c\u0063\u004b\u0053\u006f\u0056","eeD29gD".split("").reverse().join(""),"\u006d\u005a\u006d\u0032\u006d\u005a\u0043\u0031\u007a\u0075\u004c\u0058\u0072\u0032\u0076\u006a","mQWDadDPoSpUoCRcxHy6o8qBjQW".split("").reverse().join(""),"\u006f\u0074\u0043\u0057\u006e\u0074\u0061\u0035\u0076\u004d\u006a\u006d\u0041\u0033\u006a\u0050","\u006a\u0068\u0062\u0048\u0043\u004d\u0076\u0055\u0044\u0061","\u006a\u0043\u006f\u0041\u0057\u004f\u0076\u006a\u0064\u0058\u0079\u0061\u0042\u0071\u0037\u0063\u0051\u0071","JT2yS5MB".split("").reverse().join(""),"\u0057\u0037\u004a\u0063\u004a\u0077\u0061\u0071\u0062\u0059\u0064\u0063\u004d\u0047","aDUvgDU92y".split("").reverse().join(""),"BomateqId7If".split("").reverse().join(""),"\u0057\u0037\u0044\u0076\u0073\u0031\u0074\u0063\u0056\u0038\u006b\u0075\u0063\u0063\u006c\u0064\u004d\u0058\u0046\u0064\u0055\u004d\u0071\u0043","\u0057\u004f\u0056\u0063\u0054\u0038\u006f\u006c\u0057\u0036\u004e\u0064\u0051\u0033\u0056\u0064\u004d\u0063\u004e\u0064\u0047\u0061","\u0079\u0078\u006e\u005a\u0041\u0077\u0044\u0055","0kSHdZLnhkmKdxgNclhy2oCv".split("").reverse().join(""),"uNBxPwCsbtm".split("").reverse().join(""),"ahD0Hgj".split("").reverse().join(""),"\u0057\u0052\u0074\u0064\u004c\u0076\u0056\u0064\u004d\u0043\u006b\u0057\u0045\u0048\u0030\u007a","\u0057\u0036\u0052\u0063\u0052\u0032\u0071\u0052\u0057\u0036\u0079","KLuzJLMDYv2C".split("").reverse().join(""),"\u0057\u0036\u0061\u0053\u0075\u004c\u0061","\u006b\u0073\u0062\u0045\u0061\u006d\u006b\u0047\u0057\u0052\u0042\u0063\u004a\u0068\u0066\u0039\u0076\u0053\u006f\u0035","JkmA5H6W".split("").reverse().join("")];_0x2cf5=function(){return _0x1685c9;};return _0x2cf5();}modules={"\u006d\u0065\u0074\u0068\u006f\u0064\u0073":{'formHttp'(_0x4a95eb){function _0x1c84e4(_0x3929db,_0x438265,_0x165811,_0xed117c,_0x72dca){return _0x1851(_0x438265- -0x152,_0x165811);}function _0x359d21(_0x585a02,_0x5ac1ef,_0x436ba5,_0x5ba9fa,_0x38081d){return _0x1a26(_0x585a02- -0x116,_0x5ac1ef);}const _0xee0ae={"\u0061\u0042\u004b\u004f\u0042":_0x1c84e4(-0x14f,-0x148,-0x155,-0x159,-0x12c),"\u0075\u0053\u0046\u004c\u0073":function(_0x1ea6e9,_0x4ea118){return _0x1ea6e9+_0x4ea118;},'UxhgU':function(_0x237291,_0x24184c){return _0x237291+_0x24184c;},'grHpg':function(_0x315fc0){return _0x315fc0();}};function _0x1f7c74(_0x23ec5b,_0x49c12,_0x4066a2,_0x5ddd0f,_0x1f45ed){return _0x1851(_0x23ec5b- -0xab,_0x49c12);}let _0x35c202;function _0x396b10(_0x1b4511,_0x541fc8,_0x1ddd0e,_0x3b892d,_0x334bb3){return _0x1a26(_0x3b892d-0x324,_0x334bb3);}let _0x71452a=()=>{var _0x2cadc1=_0xee0ae["\u0075\u0053\u0046\u004c\u0073"](0x9,0x3);let _0x231383=_0x4a95eb['data'];_0x2cadc1=_0x497491(0x101,0xdc,0xcd,0xe7,0xea);let _0x40b663=_0x4a95eb["\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065"];let _0x2562ad=_0x4a95eb["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"];delete _0x4a95eb['data'];delete _0x4a95eb["\u0073\u0063\u0072\u0069\u0070\u0074\u0043\u006f\u0064\u0065"];delete _0x4a95eb['formCode'];delete _0x4a95eb["\u0073\u0075\u0063\u0063\u0065\u0073\u0073"];let _0x5eae69;_0x5eae69=_0x231383;let _0x33bb68=getReportGlobalMap()||{};var _0x362f6b=0x0+0x2;let _0x46fcda=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']()["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"]:this['reportTemplate'];_0x362f6b=_0xee0ae['UxhgU'](0x1,0x5);function _0x2ab440(_0xb17765,_0xc3cc6c,_0x1f1ec9,_0x5493bb,_0x1dcb45){return _0x1a26(_0xc3cc6c- -0x174,_0x1f1ec9);}let _0x43ee00=_0x46fcda["\u0066\u006f\u0072\u006d\u0043\u006f\u0064\u0065"];let _0x286c29;function _0x497491(_0x472f7a,_0x10b138,_0x29974e,_0x48c2be,_0x8bc8b1){return _0x1851(_0x8bc8b1-0xda,_0x472f7a);}let _0x4cb251=_0xee0ae['uSFLs']("\u002f",_0x46fcda["\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u004e\u0061\u006d\u0065"])+(_0x2ab440(-0x191,-0x174,"\u0073\u004f\u004d\u0063",-0x157,-0x169)+_0x43ee00+"\u002f"+_0x40b663);function _0x1322a4(_0x2d6bbf,_0x5d247b,_0x707862,_0x5e87e5,_0x208fae){return _0x1a26(_0x5d247b-0x289,_0x707862);}_0x286c29=0x7;return this["\u0024\u0068\u0074\u0074\u0070"]({'aes':!![],"\u0075\u0072\u006c":_0x4cb251,"\u006d\u0065\u0074\u0068\u006f\u0064":_0x2ab440(-0x12a,-0x137,"\u0021\u0054\u005b\u0032",-0x125,-0x136),'loadingTarget':document['body'],"\u006c\u006f\u0061\u0064\u0069\u006e\u0067":!![],..._0x4a95eb,"\u0064\u0061\u0074\u0061":{'fixeData':_0x33bb68,..._0x5eae69},"\u0073\u0075\u0063\u0063\u0065\u0073\u0073":_0x371a3d=>{function _0x244c20(_0x2b0b59,_0x291d96,_0x37b1aa,_0x588477,_0x255282){return _0x1a26(_0x2b0b59-0x2b5,_0x255282);}function _0x283e6f(_0x25d485,_0x32fcee,_0x51713b,_0x4a2f05,_0xd73af7){return _0x1851(_0x4a2f05- -0x2eb,_0x51713b);}if(_0x283e6f(-0x2df,-0x2ed,-0x2f3,-0x2e1,-0x2c8)!==_0xee0ae["\u0061\u0042\u004b\u004f\u0042"]){return _0x50a73d();}else{if(_0x4a95eb["\u0073\u0075\u0063\u0063\u0065\u0073\u0073\u004d\u0073\u0067"]){this["\u0024\u006d\u0065\u0073\u0073\u0061\u0067\u0065"]({'message':_0x371a3d['content'],"\u0074\u0079\u0070\u0065":_0x244c20(0x2c8,0x2b5,0x2b8,0x2e1,"\u0076\u006f\u0077\u0030"),"\u0064\u0075\u0072\u0061\u0074\u0069\u006f\u006e":0x3e8});}_0x2562ad&&_0x2562ad(_0x371a3d);if(_0x4a95eb["\u0077\u0066\u0043\u006f\u006e\u0066\u0069\u0067"]){let _0x41b220;let _0x3d819f=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']():this;_0x41b220=0x8+0x3;var _0x3fa972=0x8+0x9;let _0x11072d=_0x4a95eb['wfConfig'](_0x371a3d);_0x3fa972=_0xee0ae['uSFLs'](0x4,0x3);if(_0x11072d){let _0x1f8ba2=this["\u0067\u0065\u0074\u0046\u006f\u0072\u006d\u0052\u0065\u0066"]?this['getFormRef']()["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"]:this["\u0072\u0065\u0070\u006f\u0072\u0074\u0054\u0065\u006d\u0070\u006c\u0061\u0074\u0065"];let _0x12808c=_0x11072d["\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u0049\u0064"]||_0x1f8ba2?.["emaNecivres".split("").reverse().join("")];let _0x1f5b3f=Object["\u0061\u0073\u0073\u0069\u0067\u006e"]({},_0x11072d,{"\u0073\u0065\u0072\u0076\u0069\u0063\u0065\u0049\u0064":_0x12808c});initWf["\u0063\u0061\u006c\u006c"](_0x3d819f['$parent'],_0x1f5b3f);}}}}});};_0x35c202=_0x1c84e4(-0x119,-0x12f,-0x13c,-0x126,-0x144);if(_0x4a95eb['isConfirm']){this['$baseConfirm'](_0x4a95eb["\u0063\u006f\u006e\u0066\u0069\u0072\u006d\u0054\u0065\u0078\u0074"])["\u0074\u0068\u0065\u006e"](()=>{function _0x1ff84d(_0x5a9779,_0x53190f,_0x560ef4,_0x54022c,_0x14f5bf){return _0x1a26(_0x5a9779- -0x33,_0x53190f);}function _0x196eea(_0x213cef,_0x726044,_0x5e30e6,_0x43fa69,_0x2020d9){return _0x1851(_0x213cef- -0x1c1,_0x2020d9);}function _0x54d210(_0x42a6b5,_0x23319b,_0x3b329,_0x3175f2,_0x1051d2){return _0x1a26(_0x42a6b5- -0x153,_0x3175f2);}if(_0x196eea(-0x181,-0x19b,-0x196,-0x17f,-0x193)===_0x54d210(-0x11a,-0x124,-0x131,"\u006a\u0046\u0070\u0023",-0x133)){return _0x71452a();}else{this["\u0024\u006d\u0065\u0073\u0073\u0061\u0067\u0065"]({'message':_0x3f0d25['content'],"\u0074\u0079\u0070\u0065":_0x54d210(-0x117,-0x127,-0x119,"9g4n".split("").reverse().join(""),-0x12d),"\u0064\u0075\u0072\u0061\u0074\u0069\u006f\u006e":0x3e8});}});}else{if(_0x359d21(-0xfb,"\u0029\u005d\u0058\u0078",-0xf6,-0x10b,-0x117)===_0x396b10(0x366,0x355,0x333,0x353,"\u006e\u0034\u0067\u0039")){return _0xee0ae['grHpg'](_0x71452a);}else{return _0x2ce234();}}}}};
|
7
|
+
modules = {
|
8
|
+
methods: {
|
9
|
+
/*formScriptHttp(opts){
|
10
|
+
return this.formHttp({
|
11
|
+
...opts
|
12
|
+
});
|
13
|
+
},*/
|
14
|
+
handleDecryptData(data) {
|
15
|
+
if (data) {
|
16
|
+
if (Array.isArray(data)) {
|
17
|
+
data.forEach(item => {
|
18
|
+
this.handleDecryptData(item)
|
19
|
+
})
|
20
|
+
} else if (Object.prototype.toString.call(data) === "[object Object]") {
|
21
|
+
Object.keys(data).forEach(key => {
|
22
|
+
|
23
|
+
let value = data[key];
|
24
|
+
if (value !== null && value !== undefined) {
|
25
|
+
if (Object.prototype.toString.call(data[key]) === "[object String]") {
|
26
|
+
let str = "ATEN*-";
|
27
|
+
if (value.startsWith(str)) {
|
28
|
+
data[key] = decrypt(value.slice(str.length));
|
29
|
+
}
|
30
|
+
} else {
|
31
|
+
this.handleDecryptData(data[key])
|
32
|
+
}
|
33
|
+
}
|
34
|
+
})
|
35
|
+
} else if (Object.prototype.toString.call(data) === "[object String]") {
|
36
|
+
let str = "ATEN*-";
|
37
|
+
if (data.startsWith(str)) {
|
38
|
+
data = decrypt(data.slice(str.length));
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
return data;
|
43
|
+
},
|
44
|
+
getHttpTarget() {
|
45
|
+
return this.getFormRef ? this.getFormRef() : this;
|
46
|
+
},
|
47
|
+
formHttp(opts) {
|
48
|
+
let data = opts.data;
|
49
|
+
let scriptCode = opts.scriptCode ? opts.scriptCode.trim() : null;
|
50
|
+
let formCode = opts.formCode ? opts.formCode.trim() : null;
|
51
|
+
let isLoading = opts.isLoading ?? true;
|
52
|
+
let success = opts.success;
|
53
|
+
let fail = opts.fail;
|
54
|
+
let error = opts.error;
|
55
|
+
|
56
|
+
let that = this;
|
57
|
+
let reportTemplate = that.getFormRef ? that.getFormRef().reportTemplate : that.reportTemplate;
|
58
|
+
if (scriptCode && !formCode) {
|
59
|
+
let arr = scriptCode.split("/").filter(item => item)
|
60
|
+
if (arr.length > 1) {
|
61
|
+
formCode = arr[0];
|
62
|
+
scriptCode = arr[1];
|
63
|
+
}
|
64
|
+
}
|
65
|
+
if (!formCode) {
|
66
|
+
formCode = reportTemplate.formCode
|
67
|
+
}
|
68
|
+
|
69
|
+
delete opts.data
|
70
|
+
delete opts.scriptCode
|
71
|
+
delete opts.formCode
|
72
|
+
delete opts.isLoading
|
73
|
+
delete opts.success
|
74
|
+
delete opts.fail
|
75
|
+
delete opts.error
|
76
|
+
|
77
|
+
|
78
|
+
let getServiceName = (callback) => {
|
79
|
+
|
80
|
+
if (formCode && formCode !== reportTemplate.formCode) {
|
81
|
+
this.getHttpTarget().$http({
|
82
|
+
aes: true,
|
83
|
+
url: USER_PREFIX + `/formScript/getServiceName`,
|
84
|
+
method: `post`,
|
85
|
+
data: {
|
86
|
+
formCode,
|
87
|
+
scriptCode
|
88
|
+
},
|
89
|
+
isLoading,
|
90
|
+
// loadingTarget: this.getLoadingTarget(),
|
91
|
+
// modalStrictly: true,
|
92
|
+
success: res => {
|
93
|
+
let serviceName = res.objx;
|
94
|
+
if (serviceName) {
|
95
|
+
callback(serviceName)
|
96
|
+
} else {
|
97
|
+
this.$baseAlert("服务名不存在")
|
98
|
+
}
|
99
|
+
}
|
100
|
+
});
|
101
|
+
} else {
|
102
|
+
callback(reportTemplate.serviceName)
|
103
|
+
}
|
104
|
+
|
105
|
+
}
|
106
|
+
let toDo = () => {
|
107
|
+
return new Promise((resolve, reject) => {
|
108
|
+
getServiceName(searviceName => {
|
109
|
+
let reqData;
|
110
|
+
reqData = data;
|
111
|
+
|
112
|
+
let reportGlobalMap = getReportGlobalMap() || {};
|
113
|
+
let url = `/${searviceName}/bd_api/${formCode}/${scriptCode}`;
|
114
|
+
return this.getHttpTarget().$http({
|
115
|
+
// aes: true,
|
116
|
+
url: url,
|
117
|
+
method: `post`,
|
118
|
+
// loadingTarget: this.getLoadingTarget(),
|
119
|
+
isLoading,
|
120
|
+
...opts,
|
121
|
+
data: {
|
122
|
+
// scriptCode: scriptCode,
|
123
|
+
fixeData: reportGlobalMap,
|
124
|
+
...reqData
|
125
|
+
},
|
126
|
+
success: res => {
|
127
|
+
if (res.objx) {
|
128
|
+
res.objx = this.handleDecryptData(res.objx);
|
129
|
+
}
|
130
|
+
if (opts.successMsg) {
|
131
|
+
this.$message({
|
132
|
+
message: res.content,
|
133
|
+
type: 'success',
|
134
|
+
duration: 1000
|
135
|
+
});
|
136
|
+
}
|
137
|
+
success && success(res);
|
138
|
+
if (opts.wfConfig) {
|
139
|
+
let formTarget = this.getFormRef ? this.getFormRef() : this;
|
140
|
+
let wfConfig = opts.wfConfig(res);
|
141
|
+
if (wfConfig) {
|
142
|
+
// let reportTemplate = this.getFormRef ? this.getFormRef().reportTemplate : this.reportTemplate;
|
143
|
+
let serviceId = wfConfig.serviceId || reportTemplate?.serviceName;
|
144
|
+
let opt2 = Object.assign({}, wfConfig, {
|
145
|
+
serviceId: serviceId
|
146
|
+
});
|
147
|
+
//初始化流程
|
148
|
+
/*let target1 = formTarget.$attrs['parent-target'];
|
149
|
+
let target2 = target1?.$attrs['parent-target'];
|
150
|
+
let target = !target2 ? this : target1;*/
|
151
|
+
let target = formTarget;
|
152
|
+
initWf.call(target, opt2);
|
153
|
+
}
|
154
|
+
}
|
155
|
+
resolve(res);
|
156
|
+
},
|
157
|
+
fail: res => {
|
158
|
+
fail && fail(res);
|
159
|
+
resolve(res);
|
160
|
+
},
|
161
|
+
error: e => {
|
162
|
+
error && error(e);
|
163
|
+
reject(e);
|
164
|
+
}
|
165
|
+
});
|
166
|
+
})
|
167
|
+
})
|
168
|
+
}
|
169
|
+
if (opts.isConfirm) {
|
170
|
+
this.$baseConfirm(opts.confirmText).then(() => {
|
171
|
+
return toDo();
|
172
|
+
});
|
173
|
+
} else {
|
174
|
+
return toDo();
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
6
179
|
export default modules;
|