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,392 @@
|
|
|
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
|
+
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
|
|
13
|
+
import { FILE_FIELDS_NAME, } from './interface';
|
|
14
|
+
import useMemoizedFn from '../utils/useMemoizedFn';
|
|
15
|
+
// 附件数据处理
|
|
16
|
+
import useParseRecords from './hooks/useParseRecords';
|
|
17
|
+
// 获取附件类型数据
|
|
18
|
+
import useFetchFileTypeData from './fileComponents/useFetchFileTypeData';
|
|
19
|
+
// 电子印章
|
|
20
|
+
import useFetchElectronData from './electronComponents/useFetchElectronData';
|
|
21
|
+
import useParseIsNeedElectronData from './hooks/useParseIsNeedElectronData';
|
|
22
|
+
import useParseElectronListData from './hooks/useParseElectronListData';
|
|
23
|
+
import useParseElectronSetting from './hooks/useParseElectronSetting';
|
|
24
|
+
// 群杰章
|
|
25
|
+
import useFetchQunjData from './qunjComponents/useFetchQunjData';
|
|
26
|
+
import useParseQunjListData from './hooks/useParseQunjListData';
|
|
27
|
+
// 群杰章针对每个附件都盖群杰章逻辑的控制
|
|
28
|
+
import useParseIsNeedQunjData from './hooks/useParseIsNeedQunjData';
|
|
29
|
+
import useParseQunjSingleData from './hooks/useParseQunjSingleData';
|
|
30
|
+
var ElectronSignaturesFragment = function (props) {
|
|
31
|
+
var request = props.request, isUnControlled = props.isUnControlled, contractNumFlowIds = props.contractNumFlowIds, isAllowedPatchFileType = props.isAllowedPatchFileType, fileTypeKey = props.fileTypeKey, fileTypeList = props.fileTypeList, fileTypeFilterList = props.fileTypeFilterList, useOutsideFileTypeList = props.useOutsideFileTypeList, needQys = props.needQys, needQj = props.needQj, needDg = props.needDg, isShowContractComparsion = props.isShowContractComparsion, isDefaultQunj = props.isDefaultQunj, qunjAddressList = props.qunjAddressList, qunjAddress = props.qunjAddress, _a = props.isQunjAddress, isQunjAddress = _a === void 0 ? true : _a, deptId = props.deptId, secondDepId = props.secondDepId, qunjReplaceDeptId = props.qunjReplaceDeptId, flowId = props.flowId, organizationType = props.organizationType, electronicSealIdList = props.electronicSealIdList, qunjSeal = props.qunjSeal, _b = props.isCheckedEconomic, isCheckedEconomic = _b === void 0 ? 1 : _b, docAttachMap = props.docAttachMap, contractId = props.contractId, personalSignUserIds = props.personalSignUserIds, documentIdList = props.documentIdList, onValueChange = props.onValueChange, fileList = props.fileList, _c = props.dataType, dataType = _c === void 0 ? '' : _c, dataTypeName = props.dataTypeName, isBgColor = props.isBgColor, canEdit = props.canEdit, flowStatus = props.flowStatus, onTrackChange = props.onTrackChange, setLoading = props.setLoading, apiBaseUrl = props.apiBaseUrl, fileBaseUrl = props.fileBaseUrl, fileFieldsName = props.fileFieldsName, fileSplitRules = props.fileSplitRules, fileSplitStringRules = props.fileSplitStringRules, parseCurrentUploadFile = props.parseCurrentUploadFile, isShowSaveTemplate = props.isShowSaveTemplate, isShowChioseTemplate = props.isShowChioseTemplate, companyTypes = props.companyTypes, isSingleQj = props.isSingleQj, wfProcessInstId = props.wfProcessInstId, verifyUserIds = props.verifyUserIds, isSupportNoAttachQj = props.isSupportNoAttachQj;
|
|
32
|
+
var fileFieldsNameRef = useRef(FILE_FIELDS_NAME);
|
|
33
|
+
fileFieldsNameRef.current = __assign(__assign({}, FILE_FIELDS_NAME), fileFieldsName);
|
|
34
|
+
// 代理函数
|
|
35
|
+
var isShowContractComparsionHandle = useMemoizedFn(function (record, records) {
|
|
36
|
+
// 如果需要自定义的话 那就交给用户自定义
|
|
37
|
+
if (isShowContractComparsion) {
|
|
38
|
+
return isShowContractComparsion(record, records);
|
|
39
|
+
}
|
|
40
|
+
return record.attachType === '001' ? true : false;
|
|
41
|
+
});
|
|
42
|
+
// 解析附件数据
|
|
43
|
+
var _d = useParseRecords({
|
|
44
|
+
isUnControlled: isUnControlled,
|
|
45
|
+
onValueChange: onValueChange,
|
|
46
|
+
dataType: dataType,
|
|
47
|
+
fileList: fileList,
|
|
48
|
+
fileSplitRules: fileSplitRules,
|
|
49
|
+
fileSplitStringRules: fileSplitStringRules,
|
|
50
|
+
isSingleQj: isSingleQj,
|
|
51
|
+
isSupportNoAttachQj: isSupportNoAttachQj,
|
|
52
|
+
}), records = _d.records, setRecords = _d.setRecords, innerSetRecords = _d.innerSetRecords;
|
|
53
|
+
// 电子印章列表相关数据
|
|
54
|
+
var _e = useFetchElectronData({
|
|
55
|
+
request: request,
|
|
56
|
+
needQys: needQys,
|
|
57
|
+
deptId: deptId,
|
|
58
|
+
secondDepId: secondDepId,
|
|
59
|
+
flowId: flowId,
|
|
60
|
+
organizationType: organizationType,
|
|
61
|
+
records: records,
|
|
62
|
+
canEdit: canEdit,
|
|
63
|
+
}), electronList = _e.electronList, personalSignList = _e.personalSignList, firstLevelPersonName = _e.firstLevelPersonName;
|
|
64
|
+
// 个人签署(手签章)已勾选的用户id列表
|
|
65
|
+
var _f = useState(function () {
|
|
66
|
+
return Array.isArray(personalSignUserIds) ? personalSignUserIds : [];
|
|
67
|
+
}), currentPersonalSignUserIds = _f[0], setPersonalSignUserIds = _f[1];
|
|
68
|
+
// 手签用户勾选变化
|
|
69
|
+
var onPersonalSignUserIdsChange = useCallback(function (userIds) {
|
|
70
|
+
setPersonalSignUserIds(userIds);
|
|
71
|
+
}, []);
|
|
72
|
+
// 详情数据异步加载时 props 回显同步(详情接口数据到达后覆盖本地状态)
|
|
73
|
+
var personalSignEchoRef = useRef(Array.isArray(personalSignUserIds) ? personalSignUserIds : undefined);
|
|
74
|
+
useEffect(function () {
|
|
75
|
+
if (!Array.isArray(personalSignUserIds)) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
// props 从无到有(异步详情数据到达)或内容变化时 同步到内部状态
|
|
79
|
+
var preIds = personalSignEchoRef.current;
|
|
80
|
+
var isChanged = JSON.stringify(preIds || []) !== JSON.stringify(personalSignUserIds);
|
|
81
|
+
if (preIds === undefined || isChanged) {
|
|
82
|
+
setPersonalSignUserIds(personalSignUserIds);
|
|
83
|
+
}
|
|
84
|
+
personalSignEchoRef.current = personalSignUserIds;
|
|
85
|
+
}, [personalSignUserIds]);
|
|
86
|
+
// 群杰物理章列表相关数据
|
|
87
|
+
var qunjList = useFetchQunjData({
|
|
88
|
+
request: request,
|
|
89
|
+
needQj: needQj,
|
|
90
|
+
flowId: flowId,
|
|
91
|
+
deptId: deptId,
|
|
92
|
+
companyTypes: companyTypes,
|
|
93
|
+
qunjReplaceDeptId: qunjReplaceDeptId,
|
|
94
|
+
}).qunjList;
|
|
95
|
+
// 附件类型列表相关数据
|
|
96
|
+
var fileTypeFetchList = useFetchFileTypeData({
|
|
97
|
+
request: request,
|
|
98
|
+
fileTypeKey: fileTypeKey,
|
|
99
|
+
fileTypeList: fileTypeList,
|
|
100
|
+
fileTypeFilterList: fileTypeFilterList,
|
|
101
|
+
useOutsideFileTypeList: useOutsideFileTypeList,
|
|
102
|
+
isAllowedPatchFileType: isAllowedPatchFileType,
|
|
103
|
+
}).fileTypeFetchList;
|
|
104
|
+
// 选择电子印章相关逻辑
|
|
105
|
+
var _g = useParseElectronListData({
|
|
106
|
+
isUnControlled: isUnControlled,
|
|
107
|
+
onValueChange: onValueChange,
|
|
108
|
+
dataType: dataType,
|
|
109
|
+
electronicSealIdList: electronicSealIdList,
|
|
110
|
+
isCheckedEconomic: isCheckedEconomic,
|
|
111
|
+
docAttachMap: docAttachMap,
|
|
112
|
+
}), currentCheckedElectronicSealIdList = _g.currentCheckedElectronicSealIdList, onElectronicSealIdChange = _g.onElectronicSealIdChange, currentIsCheckedEconomic = _g.currentIsCheckedEconomic, setCurrentIsCheckedEconomic = _g.setCurrentIsCheckedEconomic, onCheckedEconomicChange = _g.onCheckedEconomicChange, onClearElectronListData = _g.onClearElectronListData;
|
|
113
|
+
// 这个是整体逻辑。如果每个附件都需要选择是否盖群杰印章,走其他逻辑
|
|
114
|
+
// 群杰物理章切换数据相关逻辑
|
|
115
|
+
var _h = useParseQunjListData({
|
|
116
|
+
isUnControlled: isUnControlled,
|
|
117
|
+
onValueChange: onValueChange,
|
|
118
|
+
dataType: dataType,
|
|
119
|
+
qunjSeal: qunjSeal,
|
|
120
|
+
contractNumFlowIds: contractNumFlowIds,
|
|
121
|
+
deptId: deptId,
|
|
122
|
+
flowId: flowId,
|
|
123
|
+
isDefaultQunj: isDefaultQunj,
|
|
124
|
+
qunjAddress: qunjAddress,
|
|
125
|
+
isSingleQj: isSingleQj,
|
|
126
|
+
}), currentQunjSeal = _h.currentQunjSeal, onQunjSealChange = _h.onQunjSealChange, isContranctNum = _h.isContranctNum, qunjChecked = _h.qunjChecked, setQunjChecked = _h.setQunjChecked, currentQunjAddress = _h.currentQunjAddress, onQunjAddressChange = _h.onQunjAddressChange;
|
|
127
|
+
// 电子印章设置相关逻辑
|
|
128
|
+
var _j = useParseElectronSetting({
|
|
129
|
+
isUnControlled: isUnControlled,
|
|
130
|
+
onValueChange: onValueChange,
|
|
131
|
+
request: request,
|
|
132
|
+
setLoading: setLoading,
|
|
133
|
+
records: records,
|
|
134
|
+
dataType: dataType,
|
|
135
|
+
contractId: contractId,
|
|
136
|
+
docAttachMap: docAttachMap,
|
|
137
|
+
documentIdList: documentIdList,
|
|
138
|
+
electronicSealIdList: currentCheckedElectronicSealIdList,
|
|
139
|
+
isCheckedEconomic: currentIsCheckedEconomic,
|
|
140
|
+
setCurrentIsCheckedEconomic: setCurrentIsCheckedEconomic,
|
|
141
|
+
personalSignUserIds: currentPersonalSignUserIds,
|
|
142
|
+
setPersonalSignUserIds: setPersonalSignUserIds,
|
|
143
|
+
canEdit: canEdit,
|
|
144
|
+
flowStatus: flowStatus,
|
|
145
|
+
deptId: deptId,
|
|
146
|
+
secondDepId: secondDepId,
|
|
147
|
+
onElectronicSealIdChange: onElectronicSealIdChange,
|
|
148
|
+
qunjSeal: currentQunjSeal,
|
|
149
|
+
fileFieldsNameRef: fileFieldsNameRef,
|
|
150
|
+
}), currentContractId = _j.currentContractId, currentDocAttachMap = _j.currentDocAttachMap, currentDocumentIdList = _j.currentDocumentIdList, appointSignLocation = _j.appointSignLocation, viewSignPage = _j.viewSignPage, checkUnStampedSealList = _j.checkUnStampedSealList, unElectronicSealList = _j.unElectronicSealList, unElectronicSealIdList = _j.unElectronicSealIdList, onClearElectronSetting = _j.onClearElectronSetting, clickElectronicSealIdList = _j.clickElectronicSealIdList;
|
|
151
|
+
// 盖电子印章相关逻辑
|
|
152
|
+
var _k = useParseIsNeedElectronData({
|
|
153
|
+
isUnControlled: isUnControlled,
|
|
154
|
+
onValueChange: onValueChange,
|
|
155
|
+
dataType: dataType,
|
|
156
|
+
records: records,
|
|
157
|
+
setRecords: innerSetRecords,
|
|
158
|
+
onClearElectronListData: onClearElectronListData,
|
|
159
|
+
onClearElectronSetting: onClearElectronSetting,
|
|
160
|
+
deptId: deptId,
|
|
161
|
+
secondDepId: secondDepId,
|
|
162
|
+
electronicSealIdList: electronicSealIdList,
|
|
163
|
+
}), onIsStampElectronChange = _k.onIsStampElectronChange, isStampElectron = _k.isStampElectron, clearAllElectronDataHandler = _k.clearAllElectronDataHandler;
|
|
164
|
+
// 这个是整体逻辑。如果每个附件都需要选择是否盖群杰印章,走其他逻辑
|
|
165
|
+
// 群杰物理章切换数据相关逻辑(已提前到 useParseElectronSetting 之前调用)
|
|
166
|
+
// 是否盖群杰章相关逻辑
|
|
167
|
+
var onIsStampQunjChange = useParseIsNeedQunjData({
|
|
168
|
+
isUnControlled: isUnControlled,
|
|
169
|
+
onValueChange: onValueChange,
|
|
170
|
+
dataType: dataType,
|
|
171
|
+
records: records,
|
|
172
|
+
setRecords: innerSetRecords,
|
|
173
|
+
fileFieldsNameRef: fileFieldsNameRef,
|
|
174
|
+
}).onIsStampQunjChange;
|
|
175
|
+
// 针对每个附件加盖群杰章的逻辑
|
|
176
|
+
var _l = useParseQunjSingleData({
|
|
177
|
+
onValueChange: onValueChange,
|
|
178
|
+
dataType: dataType,
|
|
179
|
+
records: records,
|
|
180
|
+
setRecords: innerSetRecords,
|
|
181
|
+
fileFieldsNameRef: fileFieldsNameRef,
|
|
182
|
+
isContranctNum: isContranctNum,
|
|
183
|
+
isSingleQj: isSingleQj,
|
|
184
|
+
flowId: flowId,
|
|
185
|
+
}), onQunjAddressSingleChange = _l.onQunjAddressSingleChange, onQunjSealSingleChange = _l.onQunjSealSingleChange;
|
|
186
|
+
// 触发收集状态
|
|
187
|
+
useEffect(function () {
|
|
188
|
+
onTrackChange &&
|
|
189
|
+
onTrackChange(dataType, {
|
|
190
|
+
electronList: electronList,
|
|
191
|
+
firstLevelPersonName: firstLevelPersonName,
|
|
192
|
+
personalSignList: personalSignList,
|
|
193
|
+
});
|
|
194
|
+
}, [
|
|
195
|
+
dataType,
|
|
196
|
+
onTrackChange,
|
|
197
|
+
electronList,
|
|
198
|
+
firstLevelPersonName,
|
|
199
|
+
personalSignList,
|
|
200
|
+
]);
|
|
201
|
+
// 个人签署(手签章)勾选状态收集
|
|
202
|
+
useEffect(function () {
|
|
203
|
+
onTrackChange &&
|
|
204
|
+
onTrackChange(dataType, {
|
|
205
|
+
currentPersonalSignUserIds: currentPersonalSignUserIds,
|
|
206
|
+
onPersonalSignUserIdsChange: onPersonalSignUserIdsChange,
|
|
207
|
+
});
|
|
208
|
+
}, [
|
|
209
|
+
dataType,
|
|
210
|
+
onTrackChange,
|
|
211
|
+
currentPersonalSignUserIds,
|
|
212
|
+
onPersonalSignUserIdsChange,
|
|
213
|
+
]);
|
|
214
|
+
useEffect(function () {
|
|
215
|
+
onTrackChange &&
|
|
216
|
+
onTrackChange(dataType, {
|
|
217
|
+
qunjList: qunjList,
|
|
218
|
+
});
|
|
219
|
+
}, [dataType, onTrackChange, qunjList]);
|
|
220
|
+
useEffect(function () {
|
|
221
|
+
onTrackChange &&
|
|
222
|
+
onTrackChange(dataType, {
|
|
223
|
+
fileTypeFetchList: fileTypeFetchList,
|
|
224
|
+
});
|
|
225
|
+
}, [dataType, onTrackChange, fileTypeFetchList]);
|
|
226
|
+
// 电子印章列表相关操作 收集状态
|
|
227
|
+
useEffect(function () {
|
|
228
|
+
onTrackChange &&
|
|
229
|
+
onTrackChange(dataType, {
|
|
230
|
+
currentCheckedElectronicSealIdList: currentCheckedElectronicSealIdList,
|
|
231
|
+
onElectronicSealIdChange: onElectronicSealIdChange,
|
|
232
|
+
currentIsCheckedEconomic: currentIsCheckedEconomic,
|
|
233
|
+
onCheckedEconomicChange: onCheckedEconomicChange,
|
|
234
|
+
onClearElectronListData: onClearElectronListData,
|
|
235
|
+
onClearElectronSetting: onClearElectronSetting,
|
|
236
|
+
});
|
|
237
|
+
}, [
|
|
238
|
+
dataType,
|
|
239
|
+
onTrackChange,
|
|
240
|
+
currentCheckedElectronicSealIdList,
|
|
241
|
+
onElectronicSealIdChange,
|
|
242
|
+
currentIsCheckedEconomic,
|
|
243
|
+
onCheckedEconomicChange,
|
|
244
|
+
onClearElectronListData,
|
|
245
|
+
onClearElectronSetting,
|
|
246
|
+
]);
|
|
247
|
+
// 附件相关数据 收集状态
|
|
248
|
+
useEffect(function () {
|
|
249
|
+
onTrackChange &&
|
|
250
|
+
onTrackChange(dataType, {
|
|
251
|
+
records: records,
|
|
252
|
+
setRecords: setRecords,
|
|
253
|
+
fileFieldsNameRef: fileFieldsNameRef,
|
|
254
|
+
fileSplitRules: fileSplitRules,
|
|
255
|
+
fileSplitStringRules: fileSplitStringRules,
|
|
256
|
+
parseCurrentUploadFile: parseCurrentUploadFile,
|
|
257
|
+
});
|
|
258
|
+
}, [
|
|
259
|
+
dataType,
|
|
260
|
+
onTrackChange,
|
|
261
|
+
records,
|
|
262
|
+
setRecords,
|
|
263
|
+
fileSplitRules,
|
|
264
|
+
fileSplitStringRules,
|
|
265
|
+
parseCurrentUploadFile,
|
|
266
|
+
]);
|
|
267
|
+
// 选择是否加盖电子印章 收集状态
|
|
268
|
+
useEffect(function () {
|
|
269
|
+
onTrackChange &&
|
|
270
|
+
onTrackChange(dataType, {
|
|
271
|
+
onIsStampElectronChange: onIsStampElectronChange,
|
|
272
|
+
isStampElectron: isStampElectron,
|
|
273
|
+
clearAllElectronDataHandler: clearAllElectronDataHandler,
|
|
274
|
+
});
|
|
275
|
+
}, [
|
|
276
|
+
dataType,
|
|
277
|
+
onTrackChange,
|
|
278
|
+
onIsStampElectronChange,
|
|
279
|
+
isStampElectron,
|
|
280
|
+
clearAllElectronDataHandler,
|
|
281
|
+
]);
|
|
282
|
+
// 电子印章相关设置 收集状态
|
|
283
|
+
useEffect(function () {
|
|
284
|
+
onTrackChange &&
|
|
285
|
+
onTrackChange(dataType, {
|
|
286
|
+
currentContractId: currentContractId,
|
|
287
|
+
currentDocAttachMap: currentDocAttachMap,
|
|
288
|
+
currentDocumentIdList: currentDocumentIdList,
|
|
289
|
+
appointSignLocation: appointSignLocation,
|
|
290
|
+
viewSignPage: viewSignPage,
|
|
291
|
+
checkUnStampedSealList: checkUnStampedSealList,
|
|
292
|
+
unElectronicSealList: unElectronicSealList,
|
|
293
|
+
unElectronicSealIdList: unElectronicSealIdList,
|
|
294
|
+
clickElectronicSealIdList: clickElectronicSealIdList,
|
|
295
|
+
});
|
|
296
|
+
}, [
|
|
297
|
+
dataType,
|
|
298
|
+
onTrackChange,
|
|
299
|
+
currentContractId,
|
|
300
|
+
currentDocAttachMap,
|
|
301
|
+
currentDocumentIdList,
|
|
302
|
+
appointSignLocation,
|
|
303
|
+
viewSignPage,
|
|
304
|
+
checkUnStampedSealList,
|
|
305
|
+
unElectronicSealList,
|
|
306
|
+
unElectronicSealIdList,
|
|
307
|
+
clickElectronicSealIdList,
|
|
308
|
+
]);
|
|
309
|
+
// 群杰物理章相关配置
|
|
310
|
+
useEffect(function () {
|
|
311
|
+
onTrackChange &&
|
|
312
|
+
onTrackChange(dataType, {
|
|
313
|
+
currentQunjSeal: currentQunjSeal,
|
|
314
|
+
onQunjSealChange: onQunjSealChange,
|
|
315
|
+
isContranctNum: isContranctNum,
|
|
316
|
+
qunjChecked: qunjChecked,
|
|
317
|
+
setQunjChecked: setQunjChecked,
|
|
318
|
+
currentQunjAddress: currentQunjAddress,
|
|
319
|
+
onQunjAddressChange: onQunjAddressChange,
|
|
320
|
+
isShowContractComparsionHandle: isShowContractComparsionHandle,
|
|
321
|
+
isShowSaveTemplate: isShowSaveTemplate,
|
|
322
|
+
isShowChioseTemplate: isShowChioseTemplate,
|
|
323
|
+
});
|
|
324
|
+
}, [
|
|
325
|
+
dataType,
|
|
326
|
+
onTrackChange,
|
|
327
|
+
currentQunjSeal,
|
|
328
|
+
onQunjSealChange,
|
|
329
|
+
isContranctNum,
|
|
330
|
+
qunjChecked,
|
|
331
|
+
setQunjChecked,
|
|
332
|
+
currentQunjAddress,
|
|
333
|
+
onQunjAddressChange,
|
|
334
|
+
isShowContractComparsionHandle,
|
|
335
|
+
isShowSaveTemplate,
|
|
336
|
+
isShowChioseTemplate,
|
|
337
|
+
]);
|
|
338
|
+
// 选择是否加盖物理章 收集状态
|
|
339
|
+
useEffect(function () {
|
|
340
|
+
onTrackChange &&
|
|
341
|
+
onTrackChange(dataType, {
|
|
342
|
+
onIsStampQunjChange: onIsStampQunjChange,
|
|
343
|
+
onQunjAddressSingleChange: onQunjAddressSingleChange,
|
|
344
|
+
onQunjSealSingleChange: onQunjSealSingleChange,
|
|
345
|
+
});
|
|
346
|
+
}, [
|
|
347
|
+
dataType,
|
|
348
|
+
onTrackChange,
|
|
349
|
+
onIsStampQunjChange,
|
|
350
|
+
onQunjAddressSingleChange,
|
|
351
|
+
onQunjSealSingleChange,
|
|
352
|
+
]);
|
|
353
|
+
// 一些基本数据 收集状态
|
|
354
|
+
useEffect(function () {
|
|
355
|
+
onTrackChange &&
|
|
356
|
+
onTrackChange(dataType, {
|
|
357
|
+
isEdit: canEdit + '' === '1',
|
|
358
|
+
needQys: needQys + '' === '1',
|
|
359
|
+
needQj: needQj + '' === '1',
|
|
360
|
+
needDg: needDg + '' === '1',
|
|
361
|
+
qunjAddressList: qunjAddressList,
|
|
362
|
+
isQunjAddress: isQunjAddress,
|
|
363
|
+
dataTypeName: dataTypeName,
|
|
364
|
+
isBgColor: isBgColor,
|
|
365
|
+
isAllowedPatchFileType: isAllowedPatchFileType,
|
|
366
|
+
apiBaseUrl: apiBaseUrl,
|
|
367
|
+
fileBaseUrl: fileBaseUrl,
|
|
368
|
+
flowStatus: flowStatus,
|
|
369
|
+
wfProcessInstId: wfProcessInstId,
|
|
370
|
+
verifyUserIds: verifyUserIds,
|
|
371
|
+
});
|
|
372
|
+
}, [
|
|
373
|
+
dataType,
|
|
374
|
+
onTrackChange,
|
|
375
|
+
canEdit,
|
|
376
|
+
needQys,
|
|
377
|
+
needQj,
|
|
378
|
+
needDg,
|
|
379
|
+
qunjAddressList,
|
|
380
|
+
isQunjAddress,
|
|
381
|
+
dataTypeName,
|
|
382
|
+
isBgColor,
|
|
383
|
+
isAllowedPatchFileType,
|
|
384
|
+
apiBaseUrl,
|
|
385
|
+
fileBaseUrl,
|
|
386
|
+
flowStatus,
|
|
387
|
+
wfProcessInstId,
|
|
388
|
+
verifyUserIds,
|
|
389
|
+
]);
|
|
390
|
+
return React.createElement(React.Fragment, null);
|
|
391
|
+
};
|
|
392
|
+
export default memo(ElectronSignaturesFragment);
|
package/dist/components/electron-signatures/electronComponents/electron-seal-batch-download.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IElectronSignaturesItemPublic } from '../interface';
|
|
3
|
+
interface IProps {
|
|
4
|
+
/** 请求 */
|
|
5
|
+
request: IElectronSignaturesItemPublic['request'];
|
|
6
|
+
apiBaseUrl: IElectronSignaturesItemPublic['apiBaseUrl'];
|
|
7
|
+
/** 当前选中的数据 */
|
|
8
|
+
selectRows: any;
|
|
9
|
+
allData?: any;
|
|
10
|
+
/**
|
|
11
|
+
* 是否显示批量下载附件原件按钮
|
|
12
|
+
*/
|
|
13
|
+
isShowDownloadBatchBtn?: IElectronSignaturesItemPublic['isShowDownloadBatchBtn'];
|
|
14
|
+
/**
|
|
15
|
+
* 是否显示批量下载电子签章件按钮
|
|
16
|
+
*/
|
|
17
|
+
isShowElectronBatchBtn?: IElectronSignaturesItemPublic['isShowElectronBatchBtn'];
|
|
18
|
+
isShowDoubleSignedBatchBtn?: IElectronSignaturesItemPublic['isShowDoubleSignedBatchBtn'];
|
|
19
|
+
batchDownloadZipName?: IElectronSignaturesItemPublic['batchDownloadZipName'];
|
|
20
|
+
children?: any;
|
|
21
|
+
firstDataType?: any;
|
|
22
|
+
organizationId?: string;
|
|
23
|
+
/**
|
|
24
|
+
* 是否编辑状态
|
|
25
|
+
*/
|
|
26
|
+
isEdit?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 是否需要契约锁
|
|
29
|
+
*/
|
|
30
|
+
isNeedQys?: boolean;
|
|
31
|
+
records?: any;
|
|
32
|
+
setRecords?: any;
|
|
33
|
+
/** 所有数据 */
|
|
34
|
+
mergeRecords?: any;
|
|
35
|
+
/**
|
|
36
|
+
* 是否显示批量使用电子印章(这个组件内部还会判断编辑状态以及该流程是否使用了电子章)
|
|
37
|
+
*/
|
|
38
|
+
isShowBatchUseElectronicSealBtn?: IElectronSignaturesItemPublic['isShowBatchUseElectronicSealBtn'];
|
|
39
|
+
/**
|
|
40
|
+
* 是否显示批量盖户用电子章(这个组件内部还会判断编辑状态以及该流程是否使用了盖户用电子章)
|
|
41
|
+
*/
|
|
42
|
+
isShowBatchUseOpeningContractSealBtn?: IElectronSignaturesItemPublic['isShowBatchUseOpeningContractSealBtn'];
|
|
43
|
+
dataTypeSort?: any;
|
|
44
|
+
onValueChange?: any;
|
|
45
|
+
isShowOpeningContractSealNotRelyQys?: IElectronSignaturesItemPublic['isShowOpeningContractSealNotRelyQys'];
|
|
46
|
+
/**
|
|
47
|
+
* 允许下载盖章件的流程状态,逗号分隔,如 '50,60,70',默认为 '50'
|
|
48
|
+
*/
|
|
49
|
+
sealDownloadFlowStatus?: string;
|
|
50
|
+
}
|
|
51
|
+
declare const _default: React.NamedExoticComponent<IProps>;
|
|
52
|
+
export default _default;
|