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,30 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColumnsType } from 'antd/es/table';
|
|
3
|
+
import type { SpinProps } from 'antd/es/spin';
|
|
4
|
+
import { IElectronSignaturesItemPublic, IFileItem, ITrackAllData } from '../interface';
|
|
5
|
+
interface IOptions {
|
|
6
|
+
/** 请求 */
|
|
7
|
+
request: IElectronSignaturesItemPublic['request'];
|
|
8
|
+
/** 所有数据类型合并之后的数据 */
|
|
9
|
+
records: IFileItem[];
|
|
10
|
+
/** 所有数据类型的排序规则 */
|
|
11
|
+
dataTypeSort: string[];
|
|
12
|
+
/** 所有数据类型的相关操作 */
|
|
13
|
+
allData: ITrackAllData;
|
|
14
|
+
/** 表格的加载状态 */
|
|
15
|
+
setLoading?: React.Dispatch<React.SetStateAction<SpinProps | undefined>>;
|
|
16
|
+
/** 需要盖外部客户电子章吗?如果需要的话 可以更改这个文本内容 */
|
|
17
|
+
fmsIsElectronicSealLabel?: IElectronSignaturesItemPublic['fmsIsElectronicSealLabel'];
|
|
18
|
+
fmsIsElectronicSealPushLabel?: IElectronSignaturesItemPublic['fmsIsElectronicSealPushLabel'];
|
|
19
|
+
openingContractSealLabel?: IElectronSignaturesItemPublic['openingContractSealLabel'];
|
|
20
|
+
isDeleteAllFileWhenJustUseQj?: IElectronSignaturesItemPublic['isDeleteAllFileWhenJustUseQj'];
|
|
21
|
+
isShowOpeningContractSeal?: IElectronSignaturesItemPublic['isShowOpeningContractSeal'];
|
|
22
|
+
isShowOpeningContractSealNotRelyQys?: IElectronSignaturesItemPublic['isShowOpeningContractSealNotRelyQys'];
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 生成电子印章列
|
|
26
|
+
*/
|
|
27
|
+
export default function useElectronColumns(options: IOptions): {
|
|
28
|
+
electronColumns: ColumnsType<any>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,398 @@
|
|
|
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 i18next from 'ztxkutils/dist/i18next';
|
|
13
|
+
import React, { useContext } from 'react';
|
|
14
|
+
import { DATA_TYPE_KEY, getColumnMergeProp } from '../hooks/useParseRecords';
|
|
15
|
+
// import ElectronSealDownload from './electron-seal-download';
|
|
16
|
+
import ElectronSealItemDetail from './electron-seal-item-detail';
|
|
17
|
+
import ElectronSealItem from './electron-seal-item';
|
|
18
|
+
import ElectronSealList from './electron-seal-list';
|
|
19
|
+
import ElectronSealDetail, { NoUseElectronSeal } from './electron-seal-detail';
|
|
20
|
+
import ElectronSealFirstLevelPerson from './electron-seal-firstLevelPerson';
|
|
21
|
+
import ElectronSealPersonalSign from './electron-seal-personal-sign';
|
|
22
|
+
import ElectronSealSetting from './electron-seal-setting';
|
|
23
|
+
import { currentRecordIsOnlyQunj } from '../utils';
|
|
24
|
+
import { ElectronSignaturesContext } from '..';
|
|
25
|
+
/**
|
|
26
|
+
* 生成电子印章列
|
|
27
|
+
*/
|
|
28
|
+
export default function useElectronColumns(options) {
|
|
29
|
+
var request = options.request, records = options.records, dataTypeSort = options.dataTypeSort, allData = options.allData, fmsIsElectronicSealLabel = options.fmsIsElectronicSealLabel, fmsIsElectronicSealPushLabel = options.fmsIsElectronicSealPushLabel, openingContractSealLabel = options.openingContractSealLabel, isDeleteAllFileWhenJustUseQj = options.isDeleteAllFileWhenJustUseQj, isShowOpeningContractSealHand = options.isShowOpeningContractSeal, isShowOpeningContractSealNotRelyQys = options.isShowOpeningContractSealNotRelyQys;
|
|
30
|
+
var isNewQys = useContext(ElectronSignaturesContext).isNewQys;
|
|
31
|
+
var currentDataType = dataTypeSort === null || dataTypeSort === void 0 ? void 0 : dataTypeSort[0];
|
|
32
|
+
var _a = allData[currentDataType] || {}, isStampElectron = _a.isStampElectron, needQys = _a.needQys, currentContractId = _a.currentContractId, appointSignLocation = _a.appointSignLocation, viewSignPage = _a.viewSignPage, isEdit = _a.isEdit;
|
|
33
|
+
var currentOnlyQunj = currentRecordIsOnlyQunj(records === null || records === void 0 ? void 0 : records[0]);
|
|
34
|
+
// 盖电子印章逻辑
|
|
35
|
+
var checkElectronColumn = {
|
|
36
|
+
title: i18next.t('盖电子印章'),
|
|
37
|
+
dataIndex: 'isStampElectron',
|
|
38
|
+
key: 'isStampElectron',
|
|
39
|
+
width: 135,
|
|
40
|
+
align: 'center',
|
|
41
|
+
render: function (text, record, index) {
|
|
42
|
+
var currentOnlyQunj = currentRecordIsOnlyQunj(record);
|
|
43
|
+
if (currentOnlyQunj) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
var _a = getColumnMergeProp({
|
|
47
|
+
record: record,
|
|
48
|
+
index: index,
|
|
49
|
+
records: records,
|
|
50
|
+
dataTypeSort: dataTypeSort,
|
|
51
|
+
}), currentDataType = _a.currentDataType, preDataTypeRecordsLength = _a.preDataTypeRecordsLength;
|
|
52
|
+
var _b = allData[currentDataType] || {}, isEdit = _b.isEdit, onIsStampElectronChange = _b.onIsStampElectronChange, setSameTypeRecords = _b.setRecords, currentDocAttachMap = _b.currentDocAttachMap, fileFieldsNameRef = _b.fileFieldsNameRef, flowStatus = _b.flowStatus, needQys = _b.needQys;
|
|
53
|
+
var _c = (fileFieldsNameRef === null || fileFieldsNameRef === void 0 ? void 0 : fileFieldsNameRef.current) || {}, _d = _c.fmsIsPushBank, fmsIsPushBankKey = _d === void 0 ? 'fmsIsPushBank' : _d, _e = _c.fmsIsElectronicSeal, fmsIsElectronicSealKey = _e === void 0 ? 'fmsIsElectronicSeal' : _e, _f = _c.openingContractSeal, openingContractSealKey = _f === void 0 ? 'openingContractSeal' : _f;
|
|
54
|
+
// 是否显示产融平台复选框
|
|
55
|
+
var isShowFms = (record === null || record === void 0 ? void 0 : record.showFmsIsElectronicSeal) &&
|
|
56
|
+
(record === null || record === void 0 ? void 0 : record[fmsIsElectronicSealKey]) != null &&
|
|
57
|
+
(record === null || record === void 0 ? void 0 : record.attachType) === '001' &&
|
|
58
|
+
(record === null || record === void 0 ? void 0 : record.isElectronicSeal);
|
|
59
|
+
// 20250526 这里的加盖产融章逻辑之前是与是否勾选盖章件有关的
|
|
60
|
+
// 如果产品再次提出这个需求,可以使用这个属性
|
|
61
|
+
// const isDetialShowFms =
|
|
62
|
+
// record?.showFmsIsElectronicSeal &&
|
|
63
|
+
// record?.[fmsIsElectronicSealKey] != null &&
|
|
64
|
+
// record?.attachType === '001';
|
|
65
|
+
// 是否显示推送银行复选框
|
|
66
|
+
var isShowBank = (record === null || record === void 0 ? void 0 : record.showFmsIsPushBank) &&
|
|
67
|
+
(record === null || record === void 0 ? void 0 : record[fmsIsPushBankKey]) != null &&
|
|
68
|
+
(record === null || record === void 0 ? void 0 : record.attachType) === '001' &&
|
|
69
|
+
(record === null || record === void 0 ? void 0 : record.isElectronicSeal);
|
|
70
|
+
// 是否显示户用合同章复选框
|
|
71
|
+
var getShowOpeningContractSeal = isShowOpeningContractSealHand
|
|
72
|
+
? isShowOpeningContractSealHand(record, {
|
|
73
|
+
dataTypeIndex: index - preDataTypeRecordsLength,
|
|
74
|
+
dataType: currentDataType,
|
|
75
|
+
})
|
|
76
|
+
: false;
|
|
77
|
+
var isShowOpeningContractSeal = isShowOpeningContractSealHand
|
|
78
|
+
? getShowOpeningContractSeal
|
|
79
|
+
: record === null || record === void 0 ? void 0 : record.showOpeningContractSeal;
|
|
80
|
+
// 20250416这个条件是多余的,如果默认盖电子印章已经勾选了,这个值不会被赋值。
|
|
81
|
+
// 上面的产融和银行,有同样的问题。但是为了防止对现有代码做出改造,还是不做任何处理。
|
|
82
|
+
// record?.[openingContractSealKey] != null &&
|
|
83
|
+
// 户用合同章显示与否,跟附件类型无关。
|
|
84
|
+
// && record?.attachType === '001';
|
|
85
|
+
// 户用合同章的显示与否,只跟自身相关。
|
|
86
|
+
// && record?.isElectronicSeal;
|
|
87
|
+
// 是否盖产融平台
|
|
88
|
+
var fmsIsElectronicSeal = (record === null || record === void 0 ? void 0 : record[fmsIsElectronicSealKey]) + '' === '1' ? true : false;
|
|
89
|
+
// 是否推送银行
|
|
90
|
+
var fmsIsPushBank = (record === null || record === void 0 ? void 0 : record[fmsIsPushBankKey]) + '' === '1' ? true : false;
|
|
91
|
+
// 是否盖户用合同章
|
|
92
|
+
var openingContractSeal = (record === null || record === void 0 ? void 0 : record[openingContractSealKey]) + '' === '1' ? true : false;
|
|
93
|
+
// 是否盖电子印章
|
|
94
|
+
var isElectronicSeal = (record === null || record === void 0 ? void 0 : record.isElectronicSeal) + '' === '1' ? true : false;
|
|
95
|
+
// 处理能否切换是否盖电子印章逻辑
|
|
96
|
+
return !needQys &&
|
|
97
|
+
!isShowOpeningContractSealNotRelyQys ? null : isEdit ? (React.createElement(ElectronSealItem, { disabled: !isEdit, checked: record === null || record === void 0 ? void 0 : record.isElectronicSeal, needQys: needQys, onChange: function (checked) {
|
|
98
|
+
// 因为数据是按照类型来归类了,那么这个索引的长度 实际应该减去之前的所有数据类型的长度
|
|
99
|
+
var dataTypeIndex = index - preDataTypeRecordsLength;
|
|
100
|
+
onIsStampElectronChange(checked, dataTypeIndex);
|
|
101
|
+
}, isShowFms: isShowFms, isShowBank: isShowBank, fmsIsElectronicSealPushLabel: fmsIsElectronicSealPushLabel, fmsIsPushBank: fmsIsPushBank, fmsIsElectronicSealLabel: fmsIsElectronicSealLabel, fmsIsElectronicSeal: fmsIsElectronicSeal, isShowOpeningContractSeal: isShowOpeningContractSeal, openingContractSeal: openingContractSeal, openingContractSealLabel: openingContractSealLabel, onFmsIsElectronicSealChange: function (checked, type) {
|
|
102
|
+
// 因为数据是按照类型来归类了,那么这个索引的长度 实际应该减去之前的所有数据类型的长度
|
|
103
|
+
var dataTypeIndex = index - preDataTypeRecordsLength;
|
|
104
|
+
setSameTypeRecords(function (preRecords) {
|
|
105
|
+
var _a;
|
|
106
|
+
var copyRecords = preRecords.slice();
|
|
107
|
+
var item = copyRecords[dataTypeIndex];
|
|
108
|
+
var key = '';
|
|
109
|
+
var clearItem = {};
|
|
110
|
+
switch (type) {
|
|
111
|
+
case 'fmsElectron':
|
|
112
|
+
key = fmsIsElectronicSealKey;
|
|
113
|
+
break;
|
|
114
|
+
case 'fmsPush':
|
|
115
|
+
key = fmsIsPushBankKey;
|
|
116
|
+
break;
|
|
117
|
+
// 户用合同章的逻辑与盖电子印章的逻辑互斥
|
|
118
|
+
case 'openingContractSeal':
|
|
119
|
+
// 如果当前选中 并且盖电子印章也选中了 那么需要清空盖电子印章的逻辑
|
|
120
|
+
if (checked && item.isElectronicSeal + '' === '1') {
|
|
121
|
+
clearItem.isElectronicSeal = 0;
|
|
122
|
+
// 因为数据是按照类型来归类了,那么这个索引的长度 实际应该减去之前的所有数据类型的长度
|
|
123
|
+
var dataTypeIndex_1 = index - preDataTypeRecordsLength;
|
|
124
|
+
onIsStampElectronChange(false, dataTypeIndex_1);
|
|
125
|
+
}
|
|
126
|
+
key = openingContractSealKey;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
copyRecords.splice(dataTypeIndex, 1, __assign(__assign(__assign({}, item), clearItem), (_a = {}, _a[key] = checked ? 1 : 0, _a[DATA_TYPE_KEY] = currentDataType, _a)));
|
|
130
|
+
return copyRecords;
|
|
131
|
+
});
|
|
132
|
+
} })) : (React.createElement(ElectronSealItemDetail, { isElectronicSeal: isElectronicSeal, isShowFms: isShowFms, fmsIsElectronicSeal: fmsIsElectronicSeal, fmsIsElectronicSealLabel: fmsIsElectronicSealLabel, isShowBank: isShowBank, fmsIsPushBank: fmsIsPushBank, fmsIsElectronicSealPushLabel: fmsIsElectronicSealPushLabel, isShowOpeningContractSeal: isShowOpeningContractSeal, openingContractSeal: openingContractSeal, openingContractSealLabel: openingContractSealLabel }));
|
|
133
|
+
// (
|
|
134
|
+
// // 这里按照最新的逻辑,不在显示下载按钮,只显示勾选了哪些印章(是否盖电子印章、是否加盖产融平台章、是否盖户用合同章)
|
|
135
|
+
// <ElectronSealDownload
|
|
136
|
+
// docAttachMap={currentDocAttachMap}
|
|
137
|
+
// record={record}
|
|
138
|
+
// fileFieldsNameRef={fileFieldsNameRef}
|
|
139
|
+
// request={request}
|
|
140
|
+
// flowStatus={flowStatus}
|
|
141
|
+
// checked={record?.isElectronicSeal}
|
|
142
|
+
// />
|
|
143
|
+
// );
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
// 选择电子印章逻辑
|
|
147
|
+
var selectElectronRender = function (text, record, index) {
|
|
148
|
+
// 需要合并
|
|
149
|
+
var _a = getColumnMergeProp({
|
|
150
|
+
record: record,
|
|
151
|
+
index: index,
|
|
152
|
+
records: records,
|
|
153
|
+
dataTypeSort: dataTypeSort,
|
|
154
|
+
}), props = _a.props, currentDataType = _a.currentDataType;
|
|
155
|
+
var currentOnlyQunj = currentRecordIsOnlyQunj(record);
|
|
156
|
+
if (currentOnlyQunj && isDeleteAllFileWhenJustUseQj) {
|
|
157
|
+
return {
|
|
158
|
+
children: null,
|
|
159
|
+
props: props,
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
var _b = allData[currentDataType] || {}, isEdit = _b.isEdit, needQys = _b.needQys, firstLevelPersonName = _b.firstLevelPersonName, currentCheckedElectronicSealIdList = _b.currentCheckedElectronicSealIdList, currentContractId = _b.currentContractId, currentIsCheckedEconomic = _b.currentIsCheckedEconomic, onCheckedEconomicChange = _b.onCheckedEconomicChange, electronList = _b.electronList, onElectronicSealIdChange = _b.onElectronicSealIdChange, isStampElectron = _b.isStampElectron, appointSignLocation = _b.appointSignLocation, personalSignList = _b.personalSignList, currentPersonalSignUserIds = _b.currentPersonalSignUserIds, onPersonalSignUserIdsChange = _b.onPersonalSignUserIdsChange;
|
|
163
|
+
// 1. 处理当前类型的数据需不需要契约锁
|
|
164
|
+
// 2. 处理当前类型的数据处不处于编辑状态
|
|
165
|
+
return {
|
|
166
|
+
children: !needQys ? (React.createElement(NoUseElectronSeal, null)) : isEdit ? (React.createElement(React.Fragment, null,
|
|
167
|
+
React.createElement(ElectronSealFirstLevelPerson, { firstLevelPersonName: firstLevelPersonName, checked: currentIsCheckedEconomic, isEdit: !!isStampElectron, onChange: function (e) {
|
|
168
|
+
// 如果此时已经选了电子印章的话,更改是否切换一级责任人
|
|
169
|
+
// 将重新调用 指定签署位置的 逻辑(因为指定签署位置 需要传递是否选中一级责任人 如果这个一级责任人是否选中更改了的话 需要重新告诉后端 处理一些逻辑)
|
|
170
|
+
// 前提是已经去契约锁盖过章了(已经产生合同ID了)
|
|
171
|
+
if ((currentCheckedElectronicSealIdList === null || currentCheckedElectronicSealIdList === void 0 ? void 0 : currentCheckedElectronicSealIdList.length) > 0 &&
|
|
172
|
+
currentContractId) {
|
|
173
|
+
appointSignLocation === null || appointSignLocation === void 0 ? void 0 : appointSignLocation({
|
|
174
|
+
otherParams: {
|
|
175
|
+
needYjzrr: e.target.checked,
|
|
176
|
+
},
|
|
177
|
+
isCheckUnStampedSeal: true,
|
|
178
|
+
spinningTip: i18next.t('接口调用中...'),
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
onCheckedEconomicChange(e);
|
|
183
|
+
}
|
|
184
|
+
} }),
|
|
185
|
+
React.createElement(ElectronSealPersonalSign, { personalSignList: personalSignList, value: currentPersonalSignUserIds, isEdit: !!isStampElectron, onChange: function (userIds) {
|
|
186
|
+
// 已指定签署位置时 与一级责任人一致 重新调用指定签署位置接口
|
|
187
|
+
if ((currentCheckedElectronicSealIdList === null || currentCheckedElectronicSealIdList === void 0 ? void 0 : currentCheckedElectronicSealIdList.length) > 0 &&
|
|
188
|
+
currentContractId) {
|
|
189
|
+
appointSignLocation === null || appointSignLocation === void 0 ? void 0 : appointSignLocation({
|
|
190
|
+
otherParams: { personalSignUserIds: userIds },
|
|
191
|
+
isCheckUnStampedSeal: true,
|
|
192
|
+
spinningTip: i18next.t('接口调用中...'),
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
onPersonalSignUserIdsChange === null || onPersonalSignUserIdsChange === void 0 ? void 0 : onPersonalSignUserIdsChange(userIds);
|
|
197
|
+
}
|
|
198
|
+
} }),
|
|
199
|
+
React.createElement(ElectronSealList, { sealList: electronList, value: currentCheckedElectronicSealIdList, onChange: onElectronicSealIdChange, isEdit: !!isStampElectron, style: { marginBottom: '30px' } }))) : (React.createElement(React.Fragment, null,
|
|
200
|
+
React.createElement(ElectronSealFirstLevelPerson, { firstLevelPersonName: firstLevelPersonName, checked: currentIsCheckedEconomic, isEdit: false, onChange: function () { } }),
|
|
201
|
+
React.createElement(ElectronSealPersonalSign, { personalSignList: personalSignList, value: currentPersonalSignUserIds, isEdit: false, onChange: function () { } }),
|
|
202
|
+
React.createElement(ElectronSealDetail, { sealList: electronList, value: currentCheckedElectronicSealIdList }))),
|
|
203
|
+
props: props,
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
// 契约锁相关配置
|
|
207
|
+
var electronColumns = isNewQys
|
|
208
|
+
? [
|
|
209
|
+
checkElectronColumn,
|
|
210
|
+
{
|
|
211
|
+
title: (React.createElement("div", { className: "file-title" },
|
|
212
|
+
React.createElement("div", { className: "file-label" }, i18next.t('选择电子印章')),
|
|
213
|
+
React.createElement("div", { className: "file-upload" }, currentOnlyQunj ? null : !needQys ? null : isStampElectron ? (React.createElement(ElectronSealSetting, { contractId: currentContractId, appointSignLocation: appointSignLocation, viewSignPage: viewSignPage, isEdit: isEdit })) : null))),
|
|
214
|
+
dataIndex: 'electronList',
|
|
215
|
+
key: 'electronList',
|
|
216
|
+
width: 320,
|
|
217
|
+
align: 'center',
|
|
218
|
+
render: selectElectronRender,
|
|
219
|
+
// 新版三段式布局下固定列宽(scroll.x=max-content 时 width 会被内容撑开)
|
|
220
|
+
onHeaderCell: function () { return ({
|
|
221
|
+
style: { width: 320, minWidth: 320, maxWidth: 320 },
|
|
222
|
+
}); },
|
|
223
|
+
onCell: function () { return ({
|
|
224
|
+
// 内容从顶部往下排,避免切换公司时因印章数量不同导致内容垂直居中抖动
|
|
225
|
+
style: {
|
|
226
|
+
width: 320,
|
|
227
|
+
minWidth: 320,
|
|
228
|
+
maxWidth: 320,
|
|
229
|
+
verticalAlign: 'top',
|
|
230
|
+
},
|
|
231
|
+
}); },
|
|
232
|
+
},
|
|
233
|
+
]
|
|
234
|
+
: // 下面是最初设计的模式
|
|
235
|
+
[
|
|
236
|
+
{
|
|
237
|
+
// title: '电子印章',
|
|
238
|
+
title: (React.createElement("div", { className: "file-title" },
|
|
239
|
+
React.createElement("div", { className: "file-label" }, i18next.t('电子印章')),
|
|
240
|
+
React.createElement("div", { className: "file-upload" }, currentOnlyQunj ? null : !needQys ? null : isStampElectron ? (React.createElement(ElectronSealSetting, { contractId: currentContractId, appointSignLocation: appointSignLocation, viewSignPage: viewSignPage, isEdit: isEdit })) : null))),
|
|
241
|
+
children: [
|
|
242
|
+
checkElectronColumn,
|
|
243
|
+
// {
|
|
244
|
+
// title: '盖电子印章',
|
|
245
|
+
// dataIndex: 'isStampElectron',
|
|
246
|
+
// key: 'isStampElectron',
|
|
247
|
+
// width: 100,
|
|
248
|
+
// align: 'center',
|
|
249
|
+
// render: (text, record, index) => {
|
|
250
|
+
// const currentOnlyQunj = currentRecordIsOnlyQunj(record);
|
|
251
|
+
// if (currentOnlyQunj) {
|
|
252
|
+
// return null;
|
|
253
|
+
// }
|
|
254
|
+
// const { currentDataType, preDataTypeRecordsLength } =
|
|
255
|
+
// getColumnMergeProp({
|
|
256
|
+
// record,
|
|
257
|
+
// index,
|
|
258
|
+
// records,
|
|
259
|
+
// dataTypeSort,
|
|
260
|
+
// });
|
|
261
|
+
// const {
|
|
262
|
+
// isEdit,
|
|
263
|
+
// onIsStampElectronChange,
|
|
264
|
+
// setRecords: setSameTypeRecords,
|
|
265
|
+
// currentDocAttachMap,
|
|
266
|
+
// fileFieldsNameRef,
|
|
267
|
+
// flowStatus,
|
|
268
|
+
// needQys,
|
|
269
|
+
// } = allData[currentDataType] || {};
|
|
270
|
+
// const {
|
|
271
|
+
// fmsIsPushBank: fmsIsPushBankKey = 'fmsIsPushBank',
|
|
272
|
+
// fmsIsElectronicSeal:
|
|
273
|
+
// fmsIsElectronicSealKey = 'fmsIsElectronicSeal',
|
|
274
|
+
// } = fileFieldsNameRef?.current || {};
|
|
275
|
+
// // 是否显示产融平台相关逻辑
|
|
276
|
+
// const isShowFms =
|
|
277
|
+
// record?.showFmsIsElectronicSeal &&
|
|
278
|
+
// record?.[fmsIsElectronicSealKey] != null &&
|
|
279
|
+
// record?.attachType === '001' &&
|
|
280
|
+
// record?.isElectronicSeal;
|
|
281
|
+
// // 是否推送银行
|
|
282
|
+
// const isShowBank =
|
|
283
|
+
// record?.showFmsIsPushBank &&
|
|
284
|
+
// record?.[fmsIsPushBankKey] != null &&
|
|
285
|
+
// record?.attachType === '001' &&
|
|
286
|
+
// record?.isElectronicSeal;
|
|
287
|
+
// // 是否盖产融平台
|
|
288
|
+
// const fmsIsElectronicSeal =
|
|
289
|
+
// record?.[fmsIsElectronicSealKey] + '' === '1' ? true : false;
|
|
290
|
+
// // 是否推送银行
|
|
291
|
+
// const fmsIsPushBank =
|
|
292
|
+
// record?.[fmsIsPushBankKey] + '' === '1' ? true : false;
|
|
293
|
+
// // 处理能否切换是否盖电子印章逻辑
|
|
294
|
+
// return !needQys ? null : isEdit ? (
|
|
295
|
+
// <ElectronSealItem
|
|
296
|
+
// disabled={!isEdit}
|
|
297
|
+
// checked={record?.isElectronicSeal}
|
|
298
|
+
// onChange={(checked) => {
|
|
299
|
+
// // 因为数据是按照类型来归类了,那么这个索引的长度 实际应该减去之前的所有数据类型的长度
|
|
300
|
+
// const dataTypeIndex = index - preDataTypeRecordsLength;
|
|
301
|
+
// onIsStampElectronChange(checked, dataTypeIndex);
|
|
302
|
+
// }}
|
|
303
|
+
// isShowFms={isShowFms}
|
|
304
|
+
// isShowBank={isShowBank}
|
|
305
|
+
// fmsIsElectronicSealPushLabel={fmsIsElectronicSealPushLabel}
|
|
306
|
+
// fmsIsPushBank={fmsIsPushBank}
|
|
307
|
+
// fmsIsElectronicSealLabel={fmsIsElectronicSealLabel}
|
|
308
|
+
// fmsIsElectronicSeal={fmsIsElectronicSeal}
|
|
309
|
+
// onFmsIsElectronicSealChange={(checked, type) => {
|
|
310
|
+
// // 因为数据是按照类型来归类了,那么这个索引的长度 实际应该减去之前的所有数据类型的长度
|
|
311
|
+
// const dataTypeIndex = index - preDataTypeRecordsLength;
|
|
312
|
+
// setSameTypeRecords((preRecords) => {
|
|
313
|
+
// const copyRecords = preRecords.slice();
|
|
314
|
+
// const item = copyRecords[dataTypeIndex];
|
|
315
|
+
// copyRecords.splice(dataTypeIndex, 1, {
|
|
316
|
+
// ...item,
|
|
317
|
+
// [type === 'fmsElectron'
|
|
318
|
+
// ? fmsIsElectronicSealKey
|
|
319
|
+
// : fmsIsPushBankKey]: checked ? 1 : 0,
|
|
320
|
+
// [DATA_TYPE_KEY]: currentDataType,
|
|
321
|
+
// });
|
|
322
|
+
// return copyRecords;
|
|
323
|
+
// });
|
|
324
|
+
// }}
|
|
325
|
+
// />
|
|
326
|
+
// ) : (
|
|
327
|
+
// <ElectronSealDownload
|
|
328
|
+
// docAttachMap={currentDocAttachMap}
|
|
329
|
+
// record={record}
|
|
330
|
+
// fileFieldsNameRef={fileFieldsNameRef}
|
|
331
|
+
// request={request}
|
|
332
|
+
// flowStatus={flowStatus}
|
|
333
|
+
// checked={record?.isElectronicSeal}
|
|
334
|
+
// />
|
|
335
|
+
// );
|
|
336
|
+
// },
|
|
337
|
+
// },
|
|
338
|
+
{
|
|
339
|
+
title: i18next.t('选择电子印章'),
|
|
340
|
+
dataIndex: 'electronList',
|
|
341
|
+
key: 'electronList',
|
|
342
|
+
width: 260,
|
|
343
|
+
align: 'center',
|
|
344
|
+
render: selectElectronRender,
|
|
345
|
+
},
|
|
346
|
+
// 2024-07-30
|
|
347
|
+
// 产品要求去掉每种类型的指定位置 预览盖章效果等字样
|
|
348
|
+
// {
|
|
349
|
+
// title: '电子印章设置',
|
|
350
|
+
// dataIndex: 'isElectronSetting',
|
|
351
|
+
// key: 'isElectronSetting',
|
|
352
|
+
// width: 100,
|
|
353
|
+
// align: 'center',
|
|
354
|
+
// render: (text, record, index) => {
|
|
355
|
+
// // 需要合并
|
|
356
|
+
// const { currentDataType, props } = getColumnMergeProp({
|
|
357
|
+
// record,
|
|
358
|
+
// index,
|
|
359
|
+
// records,
|
|
360
|
+
// dataTypeSort,
|
|
361
|
+
// });
|
|
362
|
+
// const {
|
|
363
|
+
// isStampElectron,
|
|
364
|
+
// needQys,
|
|
365
|
+
// currentContractId,
|
|
366
|
+
// appointSignLocation,
|
|
367
|
+
// viewSignPage,
|
|
368
|
+
// isEdit,
|
|
369
|
+
// } = allData[currentDataType] || {};
|
|
370
|
+
// const currentOnlyQunj = currentRecordIsOnlyQunj(record);
|
|
371
|
+
// if (currentOnlyQunj) {
|
|
372
|
+
// return {
|
|
373
|
+
// children: null,
|
|
374
|
+
// props,
|
|
375
|
+
// };
|
|
376
|
+
// }
|
|
377
|
+
// return {
|
|
378
|
+
// children: !needQys ? (
|
|
379
|
+
// '暂不需要契约锁数据'
|
|
380
|
+
// ) : isStampElectron ? (
|
|
381
|
+
// <ElectronSealSetting
|
|
382
|
+
// contractId={currentContractId}
|
|
383
|
+
// appointSignLocation={appointSignLocation}
|
|
384
|
+
// viewSignPage={viewSignPage}
|
|
385
|
+
// isEdit={isEdit}
|
|
386
|
+
// />
|
|
387
|
+
// ) : null,
|
|
388
|
+
// props,
|
|
389
|
+
// };
|
|
390
|
+
// },
|
|
391
|
+
// },
|
|
392
|
+
],
|
|
393
|
+
},
|
|
394
|
+
];
|
|
395
|
+
return {
|
|
396
|
+
electronColumns: electronColumns,
|
|
397
|
+
};
|
|
398
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IElectronSignaturesProps, IElectronSignaturesItem } from '../interface';
|
|
2
|
+
interface IOptions {
|
|
3
|
+
request?: IElectronSignaturesProps['request'];
|
|
4
|
+
needQys?: IElectronSignaturesItem['needQys'];
|
|
5
|
+
deptId?: IElectronSignaturesItem['deptId'];
|
|
6
|
+
secondDepId?: IElectronSignaturesItem['secondDepId'];
|
|
7
|
+
flowId?: IElectronSignaturesItem['flowId'];
|
|
8
|
+
/** 个人签署配置的组织机构类型 1=业务组织机构(默认) 2=行政组织机构 4=人事范围 */
|
|
9
|
+
organizationType?: number | string;
|
|
10
|
+
records?: any;
|
|
11
|
+
canEdit?: any;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* 获取电子印章远程数据
|
|
15
|
+
*/
|
|
16
|
+
export default function useFetchElectronData(options: IOptions): {
|
|
17
|
+
/** 当前印章列表数据 */
|
|
18
|
+
electronList: any;
|
|
19
|
+
/** 个人签署(手签章)配置列表 后端已展开最终签署用户 signUsers */
|
|
20
|
+
personalSignList: any[];
|
|
21
|
+
/** 当前经济责任人(一级责任人)数据 */
|
|
22
|
+
firstLevelPersonName: string;
|
|
23
|
+
};
|
|
24
|
+
export {};
|