ztxkui 4.2.18-21 → 4.2.18-220
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/App.js +315 -291
- package/dist/Demo.js +64 -43
- package/dist/DemoCom/BasicDemo.js +57 -56
- package/dist/DemoCom/CodeQueryDemo.js +3 -2
- package/dist/DemoCom/CollapseDemo.js +28 -27
- package/dist/DemoCom/DragSort.js +11 -10
- package/dist/DemoCom/FormDemo.js +36 -30
- package/dist/DemoCom/PrintContainerDemo.js +151 -150
- package/dist/DemoCom/PrintDemo.js +15 -14
- package/dist/DemoCom/SinaturesDemo.js +9 -8
- package/dist/DemoCom/SyhDemo.js +21 -20
- package/dist/DemoCom/TableAnalyse.js +34 -33
- package/dist/DemoCom/TableDemo.js +73 -69
- package/dist/DemoCom/TableDemo1.js +84 -34
- package/dist/DemoCom/TableDetail.d.ts +9 -0
- package/dist/DemoCom/TableDetail.js +259 -0
- package/dist/DemoCom/TestCom.js +22 -19
- package/dist/DemoCom/data.d.ts +110 -0
- package/dist/DemoCom/data.js +2308 -0
- package/dist/TableDemo/BasicTable.js +225 -25
- package/dist/TableDemo/EditableTable.js +146 -72
- package/dist/TableDemo/ModalTable.js +25 -24
- package/dist/TableDemo/ProEditableTable.js +30 -29
- package/dist/TableDemo/data.d.ts +34 -0
- package/dist/TableDemo/data.js +387 -10
- package/dist/TableDemo/index.js +3 -3
- package/dist/TreeDemo.js +8 -7
- package/dist/TreeSelectDemo.js +12 -8
- package/dist/UI/Form/index.d.ts +3 -0
- package/dist/UI/Form/index.js +347 -0
- package/dist/UI/Input/index.d.ts +17 -0
- package/dist/UI/Input/index.js +74 -0
- package/dist/UI/InputNumber/index.d.ts +3 -0
- package/dist/UI/InputNumber/index.js +45 -0
- package/dist/UI/OldForm/index.d.ts +9 -0
- package/dist/UI/OldForm/index.js +302 -0
- package/dist/UI/Select/EmpForQuitDemo.d.ts +15 -0
- package/dist/UI/Select/EmpForQuitDemo.js +120 -0
- package/dist/UI/Select/index.d.ts +10 -0
- package/dist/UI/Select/index.js +207 -0
- package/dist/UI/Table/BusinessListDemo.d.ts +15 -0
- package/dist/UI/Table/BusinessListDemo.js +227 -0
- package/dist/UI/Table/BusinessMemberDemo.d.ts +18 -0
- package/dist/UI/Table/BusinessMemberDemo.js +181 -0
- package/dist/UI/Table/index.d.ts +10 -0
- package/dist/UI/Table/index.js +850 -0
- package/dist/UI/TreeSelect/index.d.ts +3 -0
- package/dist/UI/TreeSelect/index.js +120 -0
- package/dist/UI/index.d.ts +2 -0
- package/dist/UI/index.js +34 -0
- package/dist/UploadDemo.js +27 -23
- package/dist/components/Button/button.d.ts +6 -0
- package/dist/components/Button/button.js +11 -4
- package/dist/components/Collapse/collapse.js +2 -1
- package/dist/components/DatePicker/data-picker.d.ts +3 -1
- package/dist/components/EnhanceSelect/index.d.ts +11 -1
- package/dist/components/EnhanceSelect/index.js +231 -49
- package/dist/components/EnhanceTree/index.js +4 -3
- package/dist/components/EnhanceTreeSelect/index.d.ts +5 -1
- package/dist/components/EnhanceTreeSelect/index.js +57 -7
- package/dist/components/Export/export.js +5 -4
- package/dist/components/Form/form.d.ts +11 -1
- package/dist/components/Form/form.js +5 -3
- package/dist/components/Input/input.d.ts +5 -3
- package/dist/components/Input/input.js +72 -3
- package/dist/components/InputNumber/input-number.js +3 -2
- package/dist/components/Layout/layout.d.ts +4 -4
- package/dist/components/Menu/menu.d.ts +1 -1
- package/dist/components/NumberCase/index.js +9 -7
- package/dist/components/Print/print.js +4 -3
- package/dist/components/PrintContainer/AttachPreviewModal.js +3 -2
- package/dist/components/PrintContainer/PrintModal.js +4 -3
- package/dist/components/PrintContainer/handle.d.ts +2 -4
- package/dist/components/PrintContainer/handle.js +3 -2
- package/dist/components/PrintContainer/lodop.js +2 -1
- package/dist/components/PrintContainer/print-container.js +74 -73
- package/dist/components/PrintContainer/service.js +5 -4
- package/dist/components/ProForm/hooks.d.ts +23 -0
- package/dist/components/ProForm/hooks.js +209 -0
- package/dist/components/ProForm/index.d.ts +9 -0
- package/dist/components/ProForm/index.js +168 -0
- package/dist/components/ProForm/interface.d.ts +200 -0
- package/dist/components/ProForm/interface.js +1 -0
- package/dist/components/ProForm/item.d.ts +13 -0
- package/dist/components/ProForm/item.js +222 -0
- package/dist/components/ProForm/items.d.ts +5 -0
- package/dist/components/ProForm/items.js +36 -0
- package/dist/components/ProForm/record-common-list.d.ts +18 -0
- package/dist/components/ProForm/record-common-list.js +83 -0
- package/dist/components/ProForm/search-drawer.d.ts +14 -0
- package/dist/components/ProForm/search-drawer.js +237 -0
- package/dist/components/ProForm/setting.d.ts +5 -0
- package/dist/components/ProForm/setting.js +12 -0
- package/dist/components/ProForm/useCommonSearch.d.ts +35 -0
- package/dist/components/ProForm/useCommonSearch.js +352 -0
- package/dist/components/ProFormList/index.d.ts +12 -0
- package/dist/components/ProFormList/index.js +34 -0
- package/dist/components/RangePicker/range-picker.js +5 -2
- package/dist/components/SortableCancel/sortable-cancel.d.ts +1 -0
- package/dist/components/SortableCancel/sortable-cancel.js +2 -2
- package/dist/components/Table/components/FillDown.js +2 -1
- package/dist/components/Table/components/FilterDropdown.d.ts +1 -0
- package/dist/components/Table/components/FilterDropdown.js +36 -12
- package/dist/components/Table/hooks/useColumns.d.ts +5 -0
- package/dist/components/Table/hooks/useColumns.js +396 -22
- package/dist/components/Table/hooks/useDropRef.js +2 -1
- package/dist/components/Table/hooks/useScuRfresh.d.ts +3 -0
- package/dist/components/Table/hooks/useScuRfresh.js +22 -0
- package/dist/components/Table/hooks/useSelectSubtotal.js +5 -1
- package/dist/components/Table/hooks/useVituralScrollBar.d.ts +10 -0
- package/dist/components/Table/hooks/useVituralScrollBar.js +234 -0
- package/dist/components/Table/index.d.ts +4 -0
- package/dist/components/Table/table-adddel-column.js +4 -3
- package/dist/components/Table/table-dynamic.d.ts +1 -0
- package/dist/components/Table/table-dynamic.js +447 -60
- package/dist/components/Table/table-enhance-cell.d.ts +3 -0
- package/dist/components/Table/table-enhance-cell.js +28 -8
- package/dist/components/Table/table-menu.d.ts +7 -0
- package/dist/components/Table/table-menu.js +359 -0
- package/dist/components/Table/table-resizable-title.js +1 -0
- package/dist/components/Table/table-sort.js +4 -3
- package/dist/components/Table/table.d.ts +16 -0
- package/dist/components/Table/table.js +241 -65
- package/dist/components/Table/utils/dom.js +2 -1
- package/dist/components/Table/utils/filterHandle.d.ts +1 -1
- package/dist/components/Table/utils/filterHandle.js +27 -12
- package/dist/components/Table/utils/getSummaryData.d.ts +1 -1
- package/dist/components/Table/utils/getSummaryData.js +279 -24
- package/dist/components/Table/utils/shallowEqual.js +2 -1
- package/dist/components/Table/utils/validate.js +25 -6
- package/dist/components/Tabs/tabs.d.ts +2 -0
- package/dist/components/Tabs/tabs.js +3 -1
- package/dist/components/TranslationButton/DownFile.d.ts +7 -0
- package/dist/components/TranslationButton/DownFile.js +95 -0
- package/dist/components/TranslationButton/PreviewFile.d.ts +5 -0
- package/dist/components/TranslationButton/PreviewFile.js +73 -0
- package/dist/components/TranslationButton/TranslationButton.d.ts +34 -0
- package/dist/components/TranslationButton/TranslationButton.js +245 -0
- package/dist/components/TranslationButton/hooks.d.ts +8 -0
- package/dist/components/TranslationButton/hooks.js +139 -0
- package/dist/components/TranslationButton/index.d.ts +4 -0
- package/dist/components/TranslationButton/index.js +4 -0
- package/dist/components/TreeSelect/index.d.ts +19 -0
- package/dist/components/TreeSelect/index.js +88 -0
- package/dist/components/Upload/upload-table.js +31 -26
- package/dist/components/Upload/upload.d.ts +20 -1
- package/dist/components/Upload/upload.js +172 -27
- package/dist/components/Upload/utils.d.ts +9 -2
- package/dist/components/Upload/utils.js +153 -38
- package/dist/components/UploadCustom/hooks/useDg.d.ts +6 -0
- package/dist/components/UploadCustom/hooks/useDg.js +55 -0
- package/dist/components/UploadSingle/upload-single.js +5 -4
- package/dist/components/Watermark/index.d.ts +2 -0
- package/dist/components/Watermark/index.js +2 -0
- package/dist/components/Watermark/interface.d.ts +20 -0
- package/dist/components/Watermark/interface.js +1 -0
- package/dist/components/Watermark/utils.d.ts +1 -0
- package/dist/components/Watermark/utils.js +70 -0
- package/dist/components/Watermark/water.d.ts +50 -0
- package/dist/components/Watermark/water.js +66 -0
- package/dist/components/Watermark/watermark-div.d.ts +4 -0
- package/dist/components/Watermark/watermark-div.js +41 -0
- package/dist/components/Watermark/watermark-shadow.d.ts +6 -0
- package/dist/components/Watermark/watermark-shadow.js +116 -0
- package/dist/components/Watermark/watermark.d.ts +3 -0
- package/dist/components/Watermark/watermark.js +102 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
- package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/Header.js +109 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +243 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +75 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +38 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.js +95 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.js +88 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +60 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +50 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +282 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
- package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/images.js +2 -0
- package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/index.js +2 -0
- package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/service.js +101 -0
- package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.js +236 -0
- package/dist/components/ZtIcon/index.js +2 -0
- package/dist/components/business/Analyse/index.js +12 -11
- package/dist/components/business/CodeQuery/component/SearchForm.js +3 -2
- package/dist/components/business/CodeQuery/component/TableList.js +5 -4
- package/dist/components/business/CodeQuery/hooks.js +2 -1
- package/dist/components/business/CodeQuery/index.js +2 -1
- package/dist/components/business/Common/UserForgetPassword/index.js +36 -28
- package/dist/components/business/Common/UserInfo/component/MakingForm.js +11 -10
- package/dist/components/business/Common/UserInfo/index.js +5 -4
- package/dist/components/business/Common/UserPassword/index.js +14 -11
- package/dist/components/business/Common/validatePassword.d.ts +1 -1
- package/dist/components/business/Common/validatePassword.js +17 -7
- package/dist/components/business/DetailCard/index.js +7 -6
- package/dist/components/business/DetailHeader/index.js +7 -6
- package/dist/components/business/DetailList/index.js +5 -4
- package/dist/components/business/DgColumns/index.js +12 -11
- package/dist/components/business/ExportButton/index.js +6 -5
- package/dist/components/business/Footer/index.js +4 -1
- package/dist/components/business/GridList/item.d.ts +1 -1
- package/dist/components/business/List/item.d.ts +1 -1
- package/dist/components/business/NewList/item.d.ts +1 -1
- package/dist/components/business/NewList/item.js +1 -1
- package/dist/components/business/OperationBtnGroup/index.js +17 -16
- package/dist/components/business/SearchContainer/hooks/useDynamic.d.ts +2 -1
- package/dist/components/business/SearchContainer/hooks/useDynamic.js +6 -3
- package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
- package/dist/components/business/SearchContainer/hooks/useToggle.js +31 -12
- package/dist/components/business/SearchContainer/record-common-item.d.ts +14 -0
- package/dist/components/business/SearchContainer/record-common-item.js +83 -0
- package/dist/components/business/SearchContainer/record-common-list.d.ts +3 -0
- package/dist/components/business/SearchContainer/record-common-list.js +95 -0
- package/dist/components/business/SearchContainer/search-container.d.ts +22 -0
- package/dist/components/business/SearchContainer/search-container.js +66 -3
- package/dist/components/business/SearchContainer/search-drawer.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-drawer.js +167 -13
- package/dist/components/business/SearchContainer/search-item.js +48 -5
- package/dist/components/business/SearchContainer/search-left.d.ts +8 -0
- package/dist/components/business/SearchContainer/search-left.js +105 -68
- package/dist/components/business/SearchContainer/search-right.d.ts +4 -0
- package/dist/components/business/SearchContainer/search-right.js +62 -5
- package/dist/components/business/SearchContainer/useRecordCommonInit.d.ts +18 -0
- package/dist/components/business/SearchContainer/useRecordCommonInit.js +258 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.d.ts +8 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.js +145 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.d.ts +37 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.js +8 -0
- package/dist/components/business/SearchContainer/useTemplate.d.ts +20 -0
- package/dist/components/business/SearchContainer/useTemplate.js +347 -0
- package/dist/components/business/Signatures/components/AttachOperation.js +7 -6
- package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
- package/dist/components/business/Signatures/components/CodeModal.js +157 -0
- package/dist/components/business/Signatures/components/CompareResult.js +7 -6
- package/dist/components/business/Signatures/components/DetailTable.js +37 -34
- package/dist/components/business/Signatures/components/QunjSeal.js +5 -4
- package/dist/components/business/Signatures/components/SealCheckbox.js +3 -2
- package/dist/components/business/Signatures/components/TemplateAttach.js +2 -1
- package/dist/components/business/Signatures/index.js +64 -53
- package/dist/components/business/SortList/sort-drawer.js +5 -4
- package/dist/components/business/Template/index.js +11 -10
- package/dist/components/electron-signatures/content.d.ts +9 -0
- package/dist/components/electron-signatures/content.js +1146 -0
- package/dist/components/electron-signatures/demoComponents/coUseDetail.d.ts +8 -0
- package/dist/components/electron-signatures/demoComponents/coUseDetail.js +255 -0
- package/dist/components/electron-signatures/demoComponents/data.d.ts +58 -0
- package/dist/components/electron-signatures/demoComponents/data.js +1307 -0
- package/dist/components/electron-signatures/demoComponents/detail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/detail.js +283 -0
- package/dist/components/electron-signatures/demoComponents/index.d.ts +2 -0
- package/dist/components/electron-signatures/demoComponents/index.js +30 -0
- package/dist/components/electron-signatures/demoComponents/jgqrd.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/jgqrd.js +135 -0
- package/dist/components/electron-signatures/demoComponents/making.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/making.js +211 -0
- package/dist/components/electron-signatures/demoComponents/makingData.d.ts +675 -0
- package/dist/components/electron-signatures/demoComponents/makingData.js +1178 -0
- package/dist/components/electron-signatures/demoComponents/newDetail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/newDetail.js +283 -0
- package/dist/components/electron-signatures/demoComponents/preview.d.ts +3 -0
- package/dist/components/electron-signatures/demoComponents/preview.js +9 -0
- package/dist/components/electron-signatures/demoComponents/singleQjDetail.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/singleQjDetail.js +530 -0
- package/dist/components/electron-signatures/demoComponents/singleQjMaking.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/singleQjMaking.js +219 -0
- package/dist/components/electron-signatures/demoComponents/test.d.ts +6 -0
- package/dist/components/electron-signatures/demoComponents/test.js +119 -0
- package/dist/components/electron-signatures/dgComponents/contract-comparison.d.ts +39 -0
- package/dist/components/electron-signatures/dgComponents/contract-comparison.js +53 -0
- package/dist/components/electron-signatures/dgComponents/file-comparison-btn.d.ts +11 -0
- package/dist/components/electron-signatures/dgComponents/file-comparison-btn.js +180 -0
- package/dist/components/electron-signatures/dgComponents/new-contract-comparison.d.ts +45 -0
- package/dist/components/electron-signatures/dgComponents/new-contract-comparison.js +68 -0
- package/dist/components/electron-signatures/dgComponents/useContractColumns.d.ts +21 -0
- package/dist/components/electron-signatures/dgComponents/useContractColumns.js +171 -0
- package/dist/components/electron-signatures/electron-signatures-fragment.d.ts +8 -0
- package/dist/components/electron-signatures/electron-signatures-fragment.js +392 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts +52 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.js +509 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-detail.d.ts +8 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-detail.js +59 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-download.d.ts +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-download.js +85 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.d.ts +9 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-firstLevelPerson.js +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.d.ts +15 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item-detail.js +16 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item.d.ts +20 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-item.js +47 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-list.d.ts +11 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-list.js +191 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.d.ts +35 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-personal-sign.js +39 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-setting.d.ts +15 -0
- package/dist/components/electron-signatures/electronComponents/electron-seal-setting.js +10 -0
- package/dist/components/electron-signatures/electronComponents/last-qys-modal.d.ts +7 -0
- package/dist/components/electron-signatures/electronComponents/last-qys-modal.js +42 -0
- package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.d.ts +3 -0
- package/dist/components/electron-signatures/electronComponents/useCheckedSealInfoList.js +43 -0
- package/dist/components/electron-signatures/electronComponents/useElectronColumns.d.ts +30 -0
- package/dist/components/electron-signatures/electronComponents/useElectronColumns.js +398 -0
- package/dist/components/electron-signatures/electronComponents/useFetchElectronData.d.ts +24 -0
- package/dist/components/electron-signatures/electronComponents/useFetchElectronData.js +254 -0
- package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.d.ts +3 -0
- package/dist/components/electron-signatures/electronComponents/useGetDeptInfo.js +35 -0
- package/dist/components/electron-signatures/fileComponents/file-operation.d.ts +7 -0
- package/dist/components/electron-signatures/fileComponents/file-operation.js +67 -0
- package/dist/components/electron-signatures/fileComponents/file-type-select.d.ts +12 -0
- package/dist/components/electron-signatures/fileComponents/file-type-select.js +10 -0
- package/dist/components/electron-signatures/fileComponents/file-upload.d.ts +11 -0
- package/dist/components/electron-signatures/fileComponents/file-upload.js +146 -0
- package/dist/components/electron-signatures/fileComponents/fileUtils.d.ts +17 -0
- package/dist/components/electron-signatures/fileComponents/fileUtils.js +36 -0
- package/dist/components/electron-signatures/fileComponents/new-file-operation.d.ts +10 -0
- package/dist/components/electron-signatures/fileComponents/new-file-operation.js +73 -0
- package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.d.ts +13 -0
- package/dist/components/electron-signatures/fileComponents/useFetchFileTypeData.js +43 -0
- package/dist/components/electron-signatures/fileComponents/useFileColumns.d.ts +38 -0
- package/dist/components/electron-signatures/fileComponents/useFileColumns.js +329 -0
- package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.d.ts +19 -0
- package/dist/components/electron-signatures/fileComponents/useFileTypeColumns.js +72 -0
- package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.d.ts +30 -0
- package/dist/components/electron-signatures/hooks/useGetQjVerifyCode.js +132 -0
- package/dist/components/electron-signatures/hooks/useMergeRecords.d.ts +17 -0
- package/dist/components/electron-signatures/hooks/useMergeRecords.js +49 -0
- package/dist/components/electron-signatures/hooks/useParseElectronListData.d.ts +49 -0
- package/dist/components/electron-signatures/hooks/useParseElectronListData.js +111 -0
- package/dist/components/electron-signatures/hooks/useParseElectronSetting.d.ts +111 -0
- package/dist/components/electron-signatures/hooks/useParseElectronSetting.js +436 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.d.ts +40 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedElectronData.js +139 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.d.ts +36 -0
- package/dist/components/electron-signatures/hooks/useParseIsNeedQunjData.js +48 -0
- package/dist/components/electron-signatures/hooks/useParseQunjListData.d.ts +56 -0
- package/dist/components/electron-signatures/hooks/useParseQunjListData.js +204 -0
- package/dist/components/electron-signatures/hooks/useParseQunjSingleData.d.ts +34 -0
- package/dist/components/electron-signatures/hooks/useParseQunjSingleData.js +110 -0
- package/dist/components/electron-signatures/hooks/useParseRecords.d.ts +65 -0
- package/dist/components/electron-signatures/hooks/useParseRecords.js +165 -0
- package/dist/components/electron-signatures/index.d.ts +15 -0
- package/dist/components/electron-signatures/index.js +63 -0
- package/dist/components/electron-signatures/interface.d.ts +865 -0
- package/dist/components/electron-signatures/interface.js +57 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-apply.d.ts +6 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-apply.js +8 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-check.d.ts +21 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-check.js +41 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-detail.d.ts +35 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-detail.js +267 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-list.d.ts +24 -0
- package/dist/components/electron-signatures/qunjComponents/qunj-list.js +355 -0
- package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.d.ts +20 -0
- package/dist/components/electron-signatures/qunjComponents/useFetchQunjData.js +66 -0
- package/dist/components/electron-signatures/qunjComponents/useQunjColumns.d.ts +36 -0
- package/dist/components/electron-signatures/qunjComponents/useQunjColumns.js +321 -0
- package/dist/components/electron-signatures/translateComponents/TranslateButton.d.ts +10 -0
- package/dist/components/electron-signatures/translateComponents/TranslateButton.js +44 -0
- package/dist/components/electron-signatures/translateComponents/useTranslateCom.d.ts +22 -0
- package/dist/components/electron-signatures/translateComponents/useTranslateCom.js +50 -0
- package/dist/components/electron-signatures/utils.d.ts +26 -0
- package/dist/components/electron-signatures/utils.js +67 -0
- package/dist/components/utils/MyStorage.d.ts +36 -0
- package/dist/components/utils/MyStorage.js +120 -0
- package/dist/components/utils/ZtxkContext.d.ts +67 -0
- package/dist/components/utils/ZtxkContext.js +20 -0
- package/dist/components/utils/checkSealCoUse.d.ts +16 -0
- package/dist/components/utils/checkSealCoUse.js +83 -0
- package/dist/components/utils/fetch.d.ts +10 -0
- package/dist/components/utils/fetch.js +119 -0
- package/dist/components/utils/index.d.ts +9 -0
- package/dist/components/utils/index.js +11 -0
- package/dist/components/utils/processNumber.d.ts +12 -0
- package/dist/components/utils/processNumber.js +106 -0
- package/dist/components/utils/upload.js +6 -3
- package/dist/components/utils/useBaseContext.d.ts +23 -0
- package/dist/components/utils/useBaseContext.js +31 -0
- package/dist/components/utils/useMemoizedFn.d.ts +4 -0
- package/dist/components/utils/useMemoizedFn.js +19 -0
- package/dist/components/utils/usePrevious.d.ts +3 -0
- package/dist/components/utils/usePrevious.js +13 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.css +2205 -58
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +255 -86
- package/dist/locales/en-US.json +828 -0
- package/dist/locales/zh-CN.json +828 -0
- package/dist/request.js +7 -6
- package/package.json +13 -4
|
@@ -0,0 +1,302 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
+
function step(op) {
|
|
26
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
+
while (_) try {
|
|
28
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
+
switch (op[0]) {
|
|
31
|
+
case 0: case 1: t = op; break;
|
|
32
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
+
default:
|
|
36
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
+
if (t[2]) _.ops.pop();
|
|
41
|
+
_.trys.pop(); continue;
|
|
42
|
+
}
|
|
43
|
+
op = body.call(thisArg, _);
|
|
44
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
import React, { useState, useEffect, useMemo, useRef, useCallback, } from 'react';
|
|
49
|
+
// 注意:不要从 '../../index' 导入——那会经过入口文件形成循环依赖
|
|
50
|
+
// (index → UI → OldForm → index),导致模块顶层拿到的导出还是 undefined。
|
|
51
|
+
// 直接从组件源文件导入,与 DemoCom/FormDemo.tsx 的做法一致。
|
|
52
|
+
import Form from '../../components/Form';
|
|
53
|
+
import Input from '../../components/Input';
|
|
54
|
+
import Select from '../../components/Select';
|
|
55
|
+
import DatePicker from '../../components/DatePicker';
|
|
56
|
+
import Checkbox from '../../components/Checkbox';
|
|
57
|
+
import Radio from '../../components/Radio';
|
|
58
|
+
import InputNumber from '../../components/InputNumber';
|
|
59
|
+
import EnhanceSelect from '../../components/EnhanceSelect';
|
|
60
|
+
import SearchContainer from '../../components/business/SearchContainer';
|
|
61
|
+
import message from '../../components/basic/message';
|
|
62
|
+
var SearchItem = SearchContainer.SearchItem, SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight;
|
|
63
|
+
var RangePicker = DatePicker.RangePicker;
|
|
64
|
+
var sectionStyle = { margin: '32px 0 8px' };
|
|
65
|
+
var titleStyle = { fontSize: 16, fontWeight: 600 };
|
|
66
|
+
var descStyle = {
|
|
67
|
+
margin: '4px 0 12px',
|
|
68
|
+
fontSize: 12,
|
|
69
|
+
color: '#999',
|
|
70
|
+
lineHeight: '20px',
|
|
71
|
+
};
|
|
72
|
+
/* ==================== 一、查询表单模板 ==================== */
|
|
73
|
+
// 动态列表单配置(配合 SearchItem 的 configname 使用)
|
|
74
|
+
var SEARCH_CONFIG_INFO = {
|
|
75
|
+
pwNo: { isRequired: 1, isChangeable: 1, isDisplay: 1 },
|
|
76
|
+
status: { isRequired: 1, isChangeable: 1, isDisplay: 1 },
|
|
77
|
+
intime: { isRequired: 1, isChangeable: 1, isDisplay: 1 },
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* 查询表单模板(列表页查询区)
|
|
81
|
+
*
|
|
82
|
+
* - SearchRight:右侧查询/重置按钮;
|
|
83
|
+
* - isDynamic + dynamicStorageKey:用户自定义显示列并本地持久化;
|
|
84
|
+
* - isToggle + handleRef:查询条件展开/收起(查询后自动收起);
|
|
85
|
+
* - configInfo + SearchItem 的 configname:动态控制字段必填/可编辑/显示。
|
|
86
|
+
*/
|
|
87
|
+
var SearchFormDemo = function () {
|
|
88
|
+
var form = Form.useForm()[0];
|
|
89
|
+
var handleRef = useRef(null);
|
|
90
|
+
return (React.createElement(Form, { name: "old-search-form", form: form },
|
|
91
|
+
React.createElement(SearchContainer, null,
|
|
92
|
+
React.createElement(SearchLeft, { configInfo: SEARCH_CONFIG_INFO, isDynamic: true, dynamicStorageKey: "ui-old-form-search", isToggle: true, handleRef: handleRef },
|
|
93
|
+
React.createElement(SearchItem, { name: "pwNo", configname: "pwNo", label: "\u5165\u5E93\u5355\u53F7", width: "half" },
|
|
94
|
+
React.createElement(Input, { allowClear: true })),
|
|
95
|
+
React.createElement(SearchItem, { name: "status", label: "\u5355\u636E\u72B6\u6001", width: "half" },
|
|
96
|
+
React.createElement(Select, { allowClear: true },
|
|
97
|
+
React.createElement(Select.Option, { value: "1" }, "\u5DF2\u63D0\u4EA4"),
|
|
98
|
+
React.createElement(Select.Option, { value: "0" }, "\u8349\u7A3F"))),
|
|
99
|
+
React.createElement(SearchItem, { name: "intime", configname: "intime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
100
|
+
React.createElement(RangePicker, null)),
|
|
101
|
+
React.createElement(SearchItem, { name: "createTime", label: "\u521B\u5EFA\u65F6\u95F4" },
|
|
102
|
+
React.createElement(DatePicker, null)),
|
|
103
|
+
React.createElement(SearchItem, { name: "num", label: "\u4EF6\u6570" },
|
|
104
|
+
React.createElement(InputNumber, null)),
|
|
105
|
+
React.createElement(SearchItem, { name: "flag", label: "\u662F\u5426\u52A0\u6025" },
|
|
106
|
+
React.createElement(Radio.Group, null,
|
|
107
|
+
React.createElement(Radio, { value: "1" }, "\u662F"),
|
|
108
|
+
React.createElement(Radio, { value: "0" }, "\u5426"))),
|
|
109
|
+
React.createElement(SearchItem, { name: "types", label: "\u5355\u636E\u7C7B\u578B" },
|
|
110
|
+
React.createElement(Checkbox.Group, null,
|
|
111
|
+
React.createElement(Checkbox, { value: "1" }, "\u91C7\u8D2D\u5165\u5E93"),
|
|
112
|
+
React.createElement(Checkbox, { value: "2" }, "\u9500\u552E\u51FA\u5E93"))),
|
|
113
|
+
React.createElement(SearchItem, { name: "remark", label: "\u5907\u6CE8", width: "all" },
|
|
114
|
+
React.createElement(Input.TextArea, { autoSize: true }))),
|
|
115
|
+
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
116
|
+
var _a;
|
|
117
|
+
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
118
|
+
console.log('查询条件:', form.getFieldsValue());
|
|
119
|
+
}, onResetHandle: function () { } }))));
|
|
120
|
+
};
|
|
121
|
+
/* ==================== 二、编辑(制单)表单模板 ==================== */
|
|
122
|
+
// 模拟字典数据(业务中一般通过 dictionaryRequest 按 code 获取)
|
|
123
|
+
var PRIORITY_OPTIONS = [
|
|
124
|
+
{ dictKey: '1', dictValue: '一般' },
|
|
125
|
+
{ dictKey: '2', dictValue: '紧急' },
|
|
126
|
+
{ dictKey: '3', dictValue: '特急' },
|
|
127
|
+
];
|
|
128
|
+
/**
|
|
129
|
+
* 编辑(制单)表单模板
|
|
130
|
+
*
|
|
131
|
+
* 与查询区的区别:
|
|
132
|
+
* 1. 只有 SearchLeft,没有 SearchRight(无查询/重置按钮);
|
|
133
|
+
* 2. 操作按钮统一放到底部 Footer,通过 footerDom 配置(返回/暂存/提交);
|
|
134
|
+
* 3. 整页用 Container 包裹,loading 控制详情加载中的遮罩;
|
|
135
|
+
* 4. 提交前 form.validateFields() 统一校验,失败 message.warning 第一条错误。
|
|
136
|
+
*/
|
|
137
|
+
var EditFormDemo = function () {
|
|
138
|
+
var form = Form.useForm()[0];
|
|
139
|
+
// 详情加载中(业务中:请求详情前 setLoading(true),完成后 setLoading(false))
|
|
140
|
+
var loading = useState(false)[0];
|
|
141
|
+
// 按钮提交中
|
|
142
|
+
var _a = useState(false), btnLoading = _a[0], setBtnLoading = _a[1];
|
|
143
|
+
// 联动条件:勾选后"编制说明"变为必填
|
|
144
|
+
var _b = useState(false), overStaffing = _b[0], setOverStaffing = _b[1];
|
|
145
|
+
/**
|
|
146
|
+
* @description 初始化默认值
|
|
147
|
+
* 业务中:新增时带出当前登录人信息,修改时用详情接口数据回填
|
|
148
|
+
*/
|
|
149
|
+
useEffect(function () {
|
|
150
|
+
form.setFieldsValue({
|
|
151
|
+
applyUserName: '张三',
|
|
152
|
+
applyDepName: '人力资源部',
|
|
153
|
+
applyTime: '2026-10-13',
|
|
154
|
+
priority: '1',
|
|
155
|
+
});
|
|
156
|
+
}, [form]);
|
|
157
|
+
/**
|
|
158
|
+
* @description 构建提交 DTO
|
|
159
|
+
*/
|
|
160
|
+
var buildDTO = useCallback(function () {
|
|
161
|
+
return __assign({}, form.getFieldsValue());
|
|
162
|
+
}, [form]);
|
|
163
|
+
/**
|
|
164
|
+
* @description 校验并提交(暂存/提交共用一套校验逻辑)
|
|
165
|
+
*/
|
|
166
|
+
var onSubmitHandle = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
167
|
+
var err_1, errorFields;
|
|
168
|
+
return __generator(this, function (_a) {
|
|
169
|
+
switch (_a.label) {
|
|
170
|
+
case 0:
|
|
171
|
+
_a.trys.push([0, 2, , 3]);
|
|
172
|
+
return [4 /*yield*/, form.validateFields()];
|
|
173
|
+
case 1:
|
|
174
|
+
_a.sent();
|
|
175
|
+
return [3 /*break*/, 3];
|
|
176
|
+
case 2:
|
|
177
|
+
err_1 = _a.sent();
|
|
178
|
+
errorFields = err_1.errorFields;
|
|
179
|
+
if (errorFields === null || errorFields === void 0 ? void 0 : errorFields.length) {
|
|
180
|
+
message.warning(errorFields[0].errors + '');
|
|
181
|
+
}
|
|
182
|
+
return [2 /*return*/];
|
|
183
|
+
case 3:
|
|
184
|
+
setBtnLoading(true);
|
|
185
|
+
try {
|
|
186
|
+
// const res = await saveRequest(buildDTO());
|
|
187
|
+
console.log('提交数据:', buildDTO());
|
|
188
|
+
message.success('提交成功');
|
|
189
|
+
}
|
|
190
|
+
catch (err) {
|
|
191
|
+
// message.warning(err?.response?.data?.msg || '提交失败');
|
|
192
|
+
}
|
|
193
|
+
finally {
|
|
194
|
+
setBtnLoading(false);
|
|
195
|
+
}
|
|
196
|
+
return [2 /*return*/];
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
}); }, [form, buildDTO]);
|
|
200
|
+
/**
|
|
201
|
+
* @description 底部操作按钮
|
|
202
|
+
*/
|
|
203
|
+
var footerDom = useMemo(function () { return [
|
|
204
|
+
{
|
|
205
|
+
DOMType: 'button',
|
|
206
|
+
type: 'default',
|
|
207
|
+
text: '返回',
|
|
208
|
+
onClick: function () { },
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
DOMType: 'button',
|
|
212
|
+
type: 'primary',
|
|
213
|
+
text: '暂存',
|
|
214
|
+
loading: btnLoading,
|
|
215
|
+
onClick: onSubmitHandle,
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
DOMType: 'button',
|
|
219
|
+
type: 'primary',
|
|
220
|
+
text: '提交',
|
|
221
|
+
loading: btnLoading,
|
|
222
|
+
onClick: onSubmitHandle,
|
|
223
|
+
},
|
|
224
|
+
]; }, [btnLoading, onSubmitHandle]);
|
|
225
|
+
return (React.createElement(React.Fragment, null,
|
|
226
|
+
React.createElement(Form, { name: "old-edit-form", form: form },
|
|
227
|
+
React.createElement(SearchContainer, null,
|
|
228
|
+
React.createElement(SearchLeft, null,
|
|
229
|
+
React.createElement(SearchItem, { name: "title1", label: "\u4E3B\u9898", rules: [
|
|
230
|
+
{ required: true, message: '请输入主题' },
|
|
231
|
+
{ max: 50, message: '主题不能超过50字' },
|
|
232
|
+
], width: "all" },
|
|
233
|
+
React.createElement(Input, { placeholder: "\u81EA\u52A8\u751F\u6210\u53EF\u4FEE\u6539", allowClear: true, maxLength: 50, showCount: true })),
|
|
234
|
+
React.createElement(SearchItem, { name: "title", label: "\u4E3B\u9898", rules: [
|
|
235
|
+
{ required: true, message: '请输入主题' },
|
|
236
|
+
{ max: 50, message: '主题不能超过50字' },
|
|
237
|
+
] },
|
|
238
|
+
React.createElement(Input, { placeholder: "\u81EA\u52A8\u751F\u6210\u53EF\u4FEE\u6539", allowClear: true, maxLength: 50, showCount: true })),
|
|
239
|
+
React.createElement(SearchItem, { name: "applyUserName", label: "\u7533\u8BF7\u4EBA", disabled: true },
|
|
240
|
+
React.createElement(Input, { disabled: true })),
|
|
241
|
+
React.createElement(SearchItem, { name: "applyDepName", label: "\u7533\u8BF7\u90E8\u95E8", disabled: true },
|
|
242
|
+
React.createElement(Input, { disabled: true })),
|
|
243
|
+
React.createElement(SearchItem, { name: "applyTime", label: "\u7533\u8BF7\u65F6\u95F4", disabled: true },
|
|
244
|
+
React.createElement(Input, { disabled: true })),
|
|
245
|
+
React.createElement(SearchItem, { name: "priority", label: "\u7D27\u6025\u7A0B\u5EA6", rules: [{ required: true, message: '请选择紧急程度' }] },
|
|
246
|
+
React.createElement(EnhanceSelect, { list: PRIORITY_OPTIONS, dataKey: "dictKey", titleKey: "dictValue", placeholder: "\u8BF7\u9009\u62E9\u7D27\u6025\u7A0B\u5EA6", allowClear: true })),
|
|
247
|
+
React.createElement(SearchItem, { name: "expectDate", label: "\u671F\u671B\u5230\u5C97\u65E5\u671F", rules: [{ required: true, message: '请选择期望到岗日期' }] },
|
|
248
|
+
React.createElement(DatePicker, null)),
|
|
249
|
+
React.createElement(SearchItem, { name: "overStaffing", label: "\u662F\u5426\u8D85\u7F16\u5236", valuePropName: "checked" },
|
|
250
|
+
React.createElement(Checkbox, { onChange: function (e) {
|
|
251
|
+
setOverStaffing(e.target.checked);
|
|
252
|
+
// 条件变化后立即重校验,切换必填提示
|
|
253
|
+
form.validateFields(['staffingDesc']).catch(function () { });
|
|
254
|
+
} }, "\u662F")),
|
|
255
|
+
React.createElement(SearchItem, { name: "staffingDesc", label: "\u7F16\u5236\u8BF4\u660E", width: "double", rules: [
|
|
256
|
+
{
|
|
257
|
+
validator: function (_, value) {
|
|
258
|
+
if (overStaffing && !value) {
|
|
259
|
+
return Promise.reject(new Error('已超编制,请填写编制说明'));
|
|
260
|
+
}
|
|
261
|
+
if (value && (value === null || value === void 0 ? void 0 : value.length) > 500) {
|
|
262
|
+
return Promise.reject(new Error('编制说明不能超过500字'));
|
|
263
|
+
}
|
|
264
|
+
return Promise.resolve();
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
] },
|
|
268
|
+
React.createElement(Input.TextArea, { placeholder: "\u8BF7\u8F93\u5165\u7F16\u5236\u8BF4\u660E", rows: 3, maxLength: 500, isModalInput: true, showCount: true })),
|
|
269
|
+
React.createElement(SearchItem, { name: "staffingDesc1", label: "\u7F16\u5236\u8BF4\u660E", width: "all", rules: [
|
|
270
|
+
{
|
|
271
|
+
validator: function (_, value) {
|
|
272
|
+
if (overStaffing && !value) {
|
|
273
|
+
return Promise.reject(new Error('已超编制,请填写编制说明'));
|
|
274
|
+
}
|
|
275
|
+
if (value && (value === null || value === void 0 ? void 0 : value.length) > 500) {
|
|
276
|
+
return Promise.reject(new Error('编制说明不能超过500字'));
|
|
277
|
+
}
|
|
278
|
+
return Promise.resolve();
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
] },
|
|
282
|
+
React.createElement(Input.TextArea, { placeholder: "\u8BF7\u8F93\u5165\u7F16\u5236\u8BF4\u660E", rows: 3, maxLength: 500, isModalInput: true, showCount: true })))))));
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* 旧表单组件(SearchContainer 体系)模板
|
|
286
|
+
* 与 /ui/form(ProForm 新表单)对应,覆盖两类场景:
|
|
287
|
+
* 1. 列表页查询区(SearchLeft + SearchRight);
|
|
288
|
+
* 2. 制单/编辑页(Container + SearchLeft + Footer)。
|
|
289
|
+
*/
|
|
290
|
+
var OldFormDemo = function () {
|
|
291
|
+
return (React.createElement("div", { style: { padding: '10px 0 60px' } },
|
|
292
|
+
React.createElement("h2", null, "\u65E7\u8868\u5355"),
|
|
293
|
+
React.createElement("div", { style: sectionStyle },
|
|
294
|
+
React.createElement("div", { style: titleStyle }, "\u4E00\u3001\u67E5\u8BE2\u8868\u5355\u6A21\u677F\uFF08\u5217\u8868\u9875\u67E5\u8BE2\u533A\uFF09"),
|
|
295
|
+
React.createElement("div", { style: descStyle }, "\u7ED3\u6784\uFF1AForm > SearchContainer > SearchLeft\uFF08\u67E5\u8BE2\u6761\u4EF6\uFF09+ SearchRight\uFF08\u67E5\u8BE2/\u91CD\u7F6E\u6309\u94AE\uFF09\u3002isDynamic \u652F\u6301\u7528\u6237\u81EA\u5B9A\u4E49\u663E\u793A\u5217\u5E76\u672C\u5730\u6301\u4E45\u5316\uFF0CisToggle \u652F\u6301\u5C55\u5F00/\u6536\u8D77\uFF0CconfigInfo \u914D\u5408 SearchItem \u7684 configname \u52A8\u6001\u63A7\u5236\u5B57\u6BB5\u5FC5\u586B/\u53EF\u7F16\u8F91/\u663E\u793A\u3002"),
|
|
296
|
+
React.createElement(SearchFormDemo, null)),
|
|
297
|
+
React.createElement("div", { style: sectionStyle },
|
|
298
|
+
React.createElement("div", { style: titleStyle }, "\u4E8C\u3001\u7F16\u8F91\uFF08\u5236\u5355\uFF09\u8868\u5355\u6A21\u677F"),
|
|
299
|
+
React.createElement("div", { style: descStyle }, "\u7ED3\u6784\uFF1AContainer\uFF08loading \u906E\u7F69\uFF09> Form > SearchContainer > SearchLeft\uFF0C\u65E0 SearchRight\uFF1B\u64CD\u4F5C\u6309\u94AE\u7EDF\u4E00\u653E\u5E95\u90E8 Footer\uFF08footerDom \u914D\u7F6E\uFF09\uFF1B\u63D0\u4EA4\u524D form.validateFields() \u7EDF\u4E00\u6821\u9A8C\uFF0C\u5931\u8D25 message.warning \u7B2C\u4E00\u6761\u9519\u8BEF\u3002"),
|
|
300
|
+
React.createElement(EditFormDemo, null))));
|
|
301
|
+
};
|
|
302
|
+
export default OldFormDemo;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 业务还原:员工下拉框(发起离职申请用)
|
|
3
|
+
* 复刻 zmdms-zthr-front components/Select/components/EmpForQuitSelect.tsx 的完整配置,
|
|
4
|
+
* 仅将真实 request 替换为 mock(支持 empName 远程搜索 + current/size 分页)。
|
|
5
|
+
*
|
|
6
|
+
* 业务侧关键写法:
|
|
7
|
+
* 1. remoteSearch + remoteSearchKey="empName":输入时按 empName 字段远程搜索;
|
|
8
|
+
* 2. joinKey="fullDepName"(字符串形式):下拉项显示「姓名-部门全路径」,
|
|
9
|
+
* 部门缺失时不拼连接符;
|
|
10
|
+
* 3. params 动态 stringify,params 变化时生成时间戳 key 强制重渲染下拉框;
|
|
11
|
+
* 4. isPage:滚动到底部按 current/size 加载下一页。
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
declare const _default: React.NamedExoticComponent<{}>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* 业务还原:员工下拉框(发起离职申请用)
|
|
25
|
+
* 复刻 zmdms-zthr-front components/Select/components/EmpForQuitSelect.tsx 的完整配置,
|
|
26
|
+
* 仅将真实 request 替换为 mock(支持 empName 远程搜索 + current/size 分页)。
|
|
27
|
+
*
|
|
28
|
+
* 业务侧关键写法:
|
|
29
|
+
* 1. remoteSearch + remoteSearchKey="empName":输入时按 empName 字段远程搜索;
|
|
30
|
+
* 2. joinKey="fullDepName"(字符串形式):下拉项显示「姓名-部门全路径」,
|
|
31
|
+
* 部门缺失时不拼连接符;
|
|
32
|
+
* 3. params 动态 stringify,params 变化时生成时间戳 key 强制重渲染下拉框;
|
|
33
|
+
* 4. isPage:滚动到底部按 current/size 加载下一页。
|
|
34
|
+
*/
|
|
35
|
+
import React, { memo, useCallback, useEffect, useState } from 'react';
|
|
36
|
+
import Button from '../../components/Button';
|
|
37
|
+
import EnhanceSelect from '../../components/EnhanceSelect';
|
|
38
|
+
/** 模拟员工数据:部分员工没有部门(fullDepName 缺失),验证 joinKey 空值不拼连接符 */
|
|
39
|
+
var ALL_EMPLOYEES = Array.from({ length: 45 }, function (_, i) {
|
|
40
|
+
var no = String(i + 1).padStart(2, '0');
|
|
41
|
+
return {
|
|
42
|
+
id: String(i + 1),
|
|
43
|
+
userName: "\u5458\u5DE5" + no,
|
|
44
|
+
empName: "\u5458\u5DE5" + no,
|
|
45
|
+
// 每 5 人中有 1 人无部门
|
|
46
|
+
fullDepName: (i + 1) % 5 === 0
|
|
47
|
+
? undefined
|
|
48
|
+
: "\u4E2D\u62D3\u96C6\u56E2/\u4E8B\u4E1A\u90E8" + ((i % 3) + 1) + "/\u90E8\u95E8" + ((i % 4) + 1),
|
|
49
|
+
dept: ['人事部', '财务部', '技术部'][i % 3],
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
/**
|
|
53
|
+
* 模拟离职员工分页接口:请求参数由 EnhanceSelect 拼装
|
|
54
|
+
* { size, current, deptName(params 展开), empName: 搜索关键字 }
|
|
55
|
+
* 返回结构与业务侧真实接口一致(axios 外层再包一层 code/success):
|
|
56
|
+
* { data: { code: 200, success: true, data: { records, total } } }
|
|
57
|
+
*/
|
|
58
|
+
function mockQuitPageRequest(options) {
|
|
59
|
+
var _a = (options === null || options === void 0 ? void 0 : options.params) || {}, _b = _a.current, current = _b === void 0 ? 1 : _b, _c = _a.size, size = _c === void 0 ? 10 : _c, _d = _a.empName, empName = _d === void 0 ? '' : _d, _e = _a.deptName, deptName = _e === void 0 ? '' : _e;
|
|
60
|
+
// 调试日志:观察滚动分页时是否发出 current=2 的请求
|
|
61
|
+
console.log("[mock\u79BB\u804C\u5458\u5DE5] current=" + current + " size=" + size + " empName=" + empName + " deptName=" + deptName);
|
|
62
|
+
var filtered = ALL_EMPLOYEES.filter(function (item) {
|
|
63
|
+
return item.empName.indexOf(empName) >= 0 &&
|
|
64
|
+
(!deptName || item.dept === deptName);
|
|
65
|
+
});
|
|
66
|
+
var start = (current - 1) * size;
|
|
67
|
+
var records = filtered.slice(start, start + size);
|
|
68
|
+
return new Promise(function (resolve) {
|
|
69
|
+
return setTimeout(function () {
|
|
70
|
+
return resolve({
|
|
71
|
+
// 模拟 axios 响应:res.data 是接口 body,records/total 在 res.data.data 里
|
|
72
|
+
data: {
|
|
73
|
+
code: 200,
|
|
74
|
+
success: true,
|
|
75
|
+
data: { records: records, total: filtered.length },
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}, 300);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
/** 与业务侧 EmpForQuitSelect 结构一致的封装(request 换成 mock) */
|
|
82
|
+
var EmpForQuitSelect = function (_a) {
|
|
83
|
+
var params = _a.params, dataKey = _a.dataKey, titleKey = _a.titleKey, restProps = __rest(_a, ["params", "dataKey", "titleKey"]);
|
|
84
|
+
var _b = useState(Date.now()), key = _b[0], setKey = _b[1]; // 使用时间戳作为唯一键
|
|
85
|
+
var _c = useState(params), newParams = _c[0], setNewParams = _c[1];
|
|
86
|
+
useEffect(function () {
|
|
87
|
+
try {
|
|
88
|
+
setNewParams(JSON.stringify(__assign({}, params)));
|
|
89
|
+
}
|
|
90
|
+
catch (_a) {
|
|
91
|
+
setNewParams(params);
|
|
92
|
+
}
|
|
93
|
+
setKey(Date.now()); // params 更新时生成新的 key 强制重新渲染
|
|
94
|
+
}, [params]);
|
|
95
|
+
return (React.createElement(EnhanceSelect, __assign({ key: key, request: mockQuitPageRequest, url: "/mock/employeebaseinfo/resign-auth-page", dataKey: dataKey || 'id', titleKey: titleKey || 'userName', remoteSearch: true, remoteSearchKey: "empName", joinKey: "fullDepName", params: newParams }, restProps, { isPage: true })));
|
|
96
|
+
};
|
|
97
|
+
/** 演示:含 params 动态切换(部门过滤)的完整效果 */
|
|
98
|
+
var EmpForQuitDemo = function () {
|
|
99
|
+
var _a = useState(), value = _a[0], setValue = _a[1];
|
|
100
|
+
// 模拟业务侧动态 params:点击按钮切换部门过滤条件
|
|
101
|
+
var _b = useState(''), filterDept = _b[0], setFilterDept = _b[1];
|
|
102
|
+
var onToggleDept = useCallback(function () {
|
|
103
|
+
setFilterDept(function (prev) {
|
|
104
|
+
return prev === '' ? '技术部' : prev === '技术部' ? '人事部' : '';
|
|
105
|
+
});
|
|
106
|
+
}, []);
|
|
107
|
+
return (React.createElement("div", null,
|
|
108
|
+
React.createElement("div", { style: { marginBottom: 8 } },
|
|
109
|
+
React.createElement(Button, { onClick: onToggleDept },
|
|
110
|
+
"\u5207\u6362 params \u8FC7\u6EE4\uFF08\u5F53\u524D\uFF1A",
|
|
111
|
+
filterDept === '' ? '全部' : filterDept,
|
|
112
|
+
"\uFF09")),
|
|
113
|
+
React.createElement(EmpForQuitSelect, { style: { width: 320 }, allowClear: true, placeholder: "\u8F93\u5165\u59D3\u540D\u8FDC\u7A0B\u641C\u7D22\uFF0C\u6EDA\u52A8\u5230\u5E95\u90E8\u52A0\u8F7D\u4E0B\u4E00\u9875", params: filterDept ? { deptName: filterDept } : {},
|
|
114
|
+
// 每页条数默认 30,mock 单个部门只有 15 条,不调小的话第一页就拉完了、看不到翻页
|
|
115
|
+
currentSize: 10, value: value, onChange: function (val) { return setValue(val); } }),
|
|
116
|
+
React.createElement("div", { style: { marginTop: 4, fontSize: 12, color: '#999' } },
|
|
117
|
+
"\u5F53\u524D\u9009\u4E2D\uFF1A",
|
|
118
|
+
value || '未选择')));
|
|
119
|
+
};
|
|
120
|
+
export default memo(EmpForQuitDemo);
|