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,57 @@
|
|
|
1
|
+
var FILE_FIELDS_NAME = {
|
|
2
|
+
/** 附件id */
|
|
3
|
+
attachId: 'attachId',
|
|
4
|
+
/** 附件名 */
|
|
5
|
+
attachName: 'attachName',
|
|
6
|
+
/** 上一版附件id */
|
|
7
|
+
oldVersionId: 'oldVersionId',
|
|
8
|
+
/** 上一版附件名 */
|
|
9
|
+
oldVersionName: 'oldVersionName',
|
|
10
|
+
/** 附件大小 bite */
|
|
11
|
+
attachSize: 'attachSize',
|
|
12
|
+
/** 附件类型code */
|
|
13
|
+
attachType: 'attachType',
|
|
14
|
+
/** 附件类型名 */
|
|
15
|
+
attachTypeName: 'attachTypeName',
|
|
16
|
+
/** 是否存入样板 */
|
|
17
|
+
isCustomerReference: 'isCustomerReference',
|
|
18
|
+
/** 模板附件id */
|
|
19
|
+
templateAttachId: 'templateAttachId',
|
|
20
|
+
/** 模板附件名 */
|
|
21
|
+
templateAttachName: 'templateAttachName',
|
|
22
|
+
/** 模板附件大小 */
|
|
23
|
+
templateAttachSize: 'templateAttachSize',
|
|
24
|
+
/** 比对结果附件id */
|
|
25
|
+
compareAttachId: 'compareAttachId',
|
|
26
|
+
/** 比对结果附件名 */
|
|
27
|
+
compareAttachName: 'compareAttachName',
|
|
28
|
+
/** 比对结果附件大小 */
|
|
29
|
+
compareAttachSize: 'compareAttachSize',
|
|
30
|
+
/** 是否添加水印 */
|
|
31
|
+
isWatermark: 'isWatermark',
|
|
32
|
+
/** 是否加盖电子印章 */
|
|
33
|
+
isElectronicSeal: 'isElectronicSeal',
|
|
34
|
+
/** 样板号 */
|
|
35
|
+
templateCrNo: 'templateCrNo',
|
|
36
|
+
/** 外部客户产融平台电子印章是否勾选 1表示勾选,0表示未勾选 */
|
|
37
|
+
fmsIsElectronicSeal: 'fmsIsElectronicSeal',
|
|
38
|
+
/** 是否展示外部客户产融平台电子印章勾选框 这个字段需要调用开发自行传入。用来控制是否显示勾选框逻辑 */
|
|
39
|
+
showFmsIsElectronicSeal: 'showFmsIsElectronicSeal',
|
|
40
|
+
/** 是否推送银行是否勾选 */
|
|
41
|
+
fmsIsPushBank: 'fmsIsPushBank',
|
|
42
|
+
/** 是否展示推送银行按钮,这个字段也需要开发自行传入 */
|
|
43
|
+
showFmsIsPushBank: 'showFmsIsPushBank',
|
|
44
|
+
/** 是否盖户用合同章是否勾选 */
|
|
45
|
+
openingContractSeal: 'openingContractSeal',
|
|
46
|
+
/** 是否展示盖户用合同章,这个字段也需要开发自行传入 */
|
|
47
|
+
showOpeningContractSeal: 'showOpeningContractSeal',
|
|
48
|
+
/** 双签件 */
|
|
49
|
+
doubleSignedSealInfoDTOList: 'doubleSignedSealInfoDTOList',
|
|
50
|
+
/** 是否添加群杰印章信息 */
|
|
51
|
+
isQunj: 'isQunj',
|
|
52
|
+
/** 群杰印章盖章地点 */
|
|
53
|
+
qunjAddress: 'qunjAddress',
|
|
54
|
+
/** 群杰印章信息 */
|
|
55
|
+
qunjSeal: 'qunjSeal',
|
|
56
|
+
};
|
|
57
|
+
export { FILE_FIELDS_NAME };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Button } from '../../../index';
|
|
4
|
+
var QunjApply = function (props) {
|
|
5
|
+
var wfProcessInstId = props.wfProcessInstId;
|
|
6
|
+
return React.createElement(Button, { type: "link" }, i18next.t('用印增加申请'));
|
|
7
|
+
};
|
|
8
|
+
export default QunjApply;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 是否加盖群杰印章
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { IElectronSignaturesItem, ITrackItem } from '../interface';
|
|
6
|
+
interface IQunjCheck {
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onChange?: (checked: boolean, event: any) => void;
|
|
10
|
+
qunjList?: any;
|
|
11
|
+
currentQunjSeal?: IElectronSignaturesItem['qunjSeal'];
|
|
12
|
+
currentQunjAddress?: ITrackItem['currentQunjAddress'];
|
|
13
|
+
onQunjSealSingleChange?: any;
|
|
14
|
+
onQunjAddressSingleChange?: ITrackItem['onQunjAddressSingleChange'];
|
|
15
|
+
isContranctNum?: boolean;
|
|
16
|
+
isQunjAddress?: boolean;
|
|
17
|
+
/** 群杰印章列表显示过滤方法 */
|
|
18
|
+
qunjListRenderFilter?: IElectronSignaturesItem['qunjListRenderFilter'];
|
|
19
|
+
}
|
|
20
|
+
declare const QunjCheck: React.FC<IQunjCheck>;
|
|
21
|
+
export default QunjCheck;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
+
t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
+
t[p[i]] = s[p[i]];
|
|
20
|
+
}
|
|
21
|
+
return t;
|
|
22
|
+
};
|
|
23
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
24
|
+
/**
|
|
25
|
+
* 是否加盖群杰印章
|
|
26
|
+
*/
|
|
27
|
+
import React, { useState } from 'react';
|
|
28
|
+
import { Button, Modal } from '../../../index';
|
|
29
|
+
import { Switch } from 'antd';
|
|
30
|
+
import QunjList from './qunj-list';
|
|
31
|
+
var QunjCheck = function (props) {
|
|
32
|
+
var qunjList = props.qunjList, currentQunjSeal = props.currentQunjSeal, currentQunjAddress = props.currentQunjAddress, onQunjSealSingleChange = props.onQunjSealSingleChange, onQunjAddressSingleChange = props.onQunjAddressSingleChange, isContranctNum = props.isContranctNum, isQunjAddress = props.isQunjAddress, qunjListRenderFilter = props.qunjListRenderFilter, resetProps = __rest(props, ["qunjList", "currentQunjSeal", "currentQunjAddress", "onQunjSealSingleChange", "onQunjAddressSingleChange", "isContranctNum", "isQunjAddress", "qunjListRenderFilter"]);
|
|
33
|
+
var _a = useState(), visible = _a[0], setVisible = _a[1];
|
|
34
|
+
return (React.createElement(React.Fragment, null,
|
|
35
|
+
resetProps.disabled ? (resetProps.checked ? (React.createElement(Switch, __assign({}, resetProps))) : (React.createElement(Switch, __assign({}, resetProps)))) : (React.createElement(Switch, __assign({}, resetProps))),
|
|
36
|
+
resetProps.checked && !resetProps.disabled ? (React.createElement("div", { style: { marginTop: 4 } },
|
|
37
|
+
React.createElement(Button, { type: "link", onClick: function () { return setVisible(true); } }, i18next.t('印章指定')))) : null,
|
|
38
|
+
React.createElement(Modal, { title: i18next.t('群杰印章'), loading: false, visible: visible, onCancel: function () { return setVisible(false); }, getContainer: false, footer: null },
|
|
39
|
+
React.createElement(QunjList, { isShowChecked: false, qunjList: qunjList, qunjChecked: resetProps.checked, qunjSeal: currentQunjSeal, currentQunjAddress: currentQunjAddress, onQunjAddressChange: onQunjAddressSingleChange, onChange: onQunjSealSingleChange, isQunjAddress: isQunjAddress, isContranctNum: isContranctNum, qunjListRenderFilter: qunjListRenderFilter }))));
|
|
40
|
+
};
|
|
41
|
+
export default QunjCheck;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IElectronSignaturesItem, IElectronSignaturesItemPublic, IElectronSignaturesProps, ITrackItem } from '../interface';
|
|
3
|
+
import { IQjVerifyCode } from '../hooks/useGetQjVerifyCode';
|
|
4
|
+
interface IProps {
|
|
5
|
+
qunjList?: any;
|
|
6
|
+
qunjSeal?: IElectronSignaturesItem['qunjSeal'];
|
|
7
|
+
/** 是否显示合同份数 */
|
|
8
|
+
isContranctNum?: ITrackItem['isContranctNum'];
|
|
9
|
+
isQunjAddress?: ITrackItem['isQunjAddress'];
|
|
10
|
+
currentQunjAddress?: ITrackItem['currentQunjAddress'];
|
|
11
|
+
refreshCode?: IElectronSignaturesProps['refreshCode'];
|
|
12
|
+
request?: IElectronSignaturesProps['request'];
|
|
13
|
+
isEdit?: boolean;
|
|
14
|
+
apiBaseUrl?: IElectronSignaturesItemPublic['apiBaseUrl'];
|
|
15
|
+
caseId?: IElectronSignaturesItemPublic['caseId'];
|
|
16
|
+
/**
|
|
17
|
+
* 当前数据的流程id。用来获取群杰验证码的。
|
|
18
|
+
*/
|
|
19
|
+
wfProcessInstId?: ITrackItem['wfProcessInstId'];
|
|
20
|
+
/**
|
|
21
|
+
* 能查看当前数据的群杰验证码的用户id列表。
|
|
22
|
+
* 多个用户用逗号隔开
|
|
23
|
+
*/
|
|
24
|
+
verifyUserIds?: ITrackItem['verifyUserIds'];
|
|
25
|
+
qjVerifyCodeData?: IQjVerifyCode[];
|
|
26
|
+
getQjVerifyCodeHandle?: (params: any) => Promise<any>;
|
|
27
|
+
flowStatus?: ITrackItem['flowStatus'];
|
|
28
|
+
/** 是否显示用印增加申请 */
|
|
29
|
+
isShowSealApply?: boolean;
|
|
30
|
+
/** 前往流程中心用印申请 */
|
|
31
|
+
goWorkflowSeal?: (wfProcessInstId: string) => void;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: React.NamedExoticComponent<IProps>;
|
|
34
|
+
export default _default;
|
|
35
|
+
export declare const NoUseQj: React.FC;
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (_) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
38
|
+
import React, { memo, useMemo, useRef, useContext, useState, useEffect, useCallback, } from 'react';
|
|
39
|
+
import { unstable_batchedUpdates } from 'react-dom';
|
|
40
|
+
import { Button } from '../../../index';
|
|
41
|
+
import CodeModal from '../../business/Signatures/components/CodeModal';
|
|
42
|
+
import { getToken } from 'ztxkutils/dist/authority';
|
|
43
|
+
import { ElectronSignaturesContext } from '..';
|
|
44
|
+
import { comparePermission } from '../hooks/useGetQjVerifyCode';
|
|
45
|
+
import dayjs from 'dayjs';
|
|
46
|
+
/** 获取公司名称(fallback companyType) */
|
|
47
|
+
function getCompanyName(item) {
|
|
48
|
+
return (item === null || item === void 0 ? void 0 : item.companyTypeName) || (item === null || item === void 0 ? void 0 : item.companyType) || '';
|
|
49
|
+
}
|
|
50
|
+
/** 获取印章简称(fallback sealName) */
|
|
51
|
+
function getSealShortName(item) {
|
|
52
|
+
return (item === null || item === void 0 ? void 0 : item.sealShortName) || (item === null || item === void 0 ? void 0 : item.sealName) || '';
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* 群杰详情列表
|
|
56
|
+
*/
|
|
57
|
+
var QunjDetail = function (_a) {
|
|
58
|
+
var _b;
|
|
59
|
+
var qunjList = _a.qunjList, qunjSeal = _a.qunjSeal, isContranctNum = _a.isContranctNum, isQunjAddress = _a.isQunjAddress, currentQunjAddress = _a.currentQunjAddress, refreshCode = _a.refreshCode, request = _a.request, isEdit = _a.isEdit, apiBaseUrl = _a.apiBaseUrl, caseId = _a.caseId, wfProcessInstId = _a.wfProcessInstId, verifyUserIds = _a.verifyUserIds, qjVerifyCodeData = _a.qjVerifyCodeData, getQjVerifyCodeHandle = _a.getQjVerifyCodeHandle, flowStatus = _a.flowStatus, isShowSealApply = _a.isShowSealApply, goWorkflowSeal = _a.goWorkflowSeal;
|
|
60
|
+
// 新版本的群杰验证码是通过接口获取的
|
|
61
|
+
var _c = useState(), vertifyCode = _c[0], setVerifyCode = _c[1];
|
|
62
|
+
var _d = useState(false), isError = _d[0], setIsError = _d[1]; // 接口调用是否报错
|
|
63
|
+
var _e = useState(false), isExpire = _e[0], setIsExpire = _e[1]; // 验证码是否过期
|
|
64
|
+
var _f = useState(false), loading = _f[0], setLoading = _f[1]; // 验证码是否过期;
|
|
65
|
+
var codeModalRef = useRef();
|
|
66
|
+
// 原版的群杰验证码是在数据里面直接获取的,这部分逻辑暂时保留。
|
|
67
|
+
var code = useMemo(function () {
|
|
68
|
+
return padWithZeroes((qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.code) || (qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.vertifyCode), 6);
|
|
69
|
+
}, [qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.code, qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.vertifyCode]);
|
|
70
|
+
var _g = useContext(ElectronSignaturesContext), isNewQys = _g.isNewQys, isNewQunjSealStyle = _g.isNewQunjSealStyle;
|
|
71
|
+
/**
|
|
72
|
+
* 更新当前组件状态
|
|
73
|
+
*/
|
|
74
|
+
var refreshStatus = useCallback(function (qjVerifyCodeData) {
|
|
75
|
+
// 说明当前数据有权限查看
|
|
76
|
+
// 如果一条数据都没有找到,那么当成验证码是过期了。
|
|
77
|
+
if (qjVerifyCodeData === null || qjVerifyCodeData === void 0 ? void 0 : qjVerifyCodeData.length) {
|
|
78
|
+
var item = qjVerifyCodeData === null || qjVerifyCodeData === void 0 ? void 0 : qjVerifyCodeData.find(function (item) { return item.processId + '' === wfProcessInstId + ''; });
|
|
79
|
+
var myCode = item === null || item === void 0 ? void 0 : item.qjVerificationCode;
|
|
80
|
+
var isError_1 = item === null || item === void 0 ? void 0 : item.isError;
|
|
81
|
+
var endDate = item === null || item === void 0 ? void 0 : item.endDate;
|
|
82
|
+
// 如果有过期时间。并且过期时间早于当前时间,那么当成验证码过期了。
|
|
83
|
+
if (endDate && dayjs(endDate).isBefore(dayjs())) {
|
|
84
|
+
setIsExpire(true);
|
|
85
|
+
setIsError(false);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (typeof isError_1 === 'boolean' && isError_1) {
|
|
89
|
+
setIsExpire(false);
|
|
90
|
+
setIsError(isError_1);
|
|
91
|
+
}
|
|
92
|
+
else if (myCode) {
|
|
93
|
+
setVerifyCode(padWithZeroes(myCode, 6));
|
|
94
|
+
setIsExpire(false);
|
|
95
|
+
setIsError(false);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
setIsError(false);
|
|
99
|
+
setIsExpire(false);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
setIsError(false);
|
|
104
|
+
// 没有查到数据时,显示空白
|
|
105
|
+
setIsExpire(false);
|
|
106
|
+
// setIsExpire(true);
|
|
107
|
+
}
|
|
108
|
+
}, [wfProcessInstId]);
|
|
109
|
+
useEffect(function () {
|
|
110
|
+
// 20251016 这里去掉流程状态为50的判断
|
|
111
|
+
if (!isNewQys) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
// 只有当流程状态是50时,才采用最新版本的验证码显示逻辑
|
|
115
|
+
// if (!isNewQys || !isFlowCompleted(flowStatus)) {
|
|
116
|
+
// return;
|
|
117
|
+
// }
|
|
118
|
+
// 如果没有权限,不用做后续的处理
|
|
119
|
+
if (!comparePermission(verifyUserIds)) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
refreshStatus(qjVerifyCodeData);
|
|
123
|
+
}, [isNewQys, qjVerifyCodeData, refreshStatus, verifyUserIds, flowStatus]);
|
|
124
|
+
/** 查询用印状态 */
|
|
125
|
+
var querySealStatus = function () {
|
|
126
|
+
var _a, _b;
|
|
127
|
+
var token = getToken();
|
|
128
|
+
var myCaseId = caseId;
|
|
129
|
+
try {
|
|
130
|
+
if (!caseId) {
|
|
131
|
+
myCaseId = JSON.parse((_a = qunjSeal) === null || _a === void 0 ? void 0 : _a.qjCaseId);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
catch (err) {
|
|
135
|
+
myCaseId = caseId || ((_b = qunjSeal) === null || _b === void 0 ? void 0 : _b.qjCaseId);
|
|
136
|
+
}
|
|
137
|
+
var url = (apiBaseUrl ? apiBaseUrl : '') + "/api/zmdms-esb-outer/outer/qj/view-stamp?caseId=" + myCaseId + "&systemId=1493475945847648257&Zmdms-Auth=bearer " + token;
|
|
138
|
+
window.open(url);
|
|
139
|
+
};
|
|
140
|
+
// 没有权限查看
|
|
141
|
+
var NoAuthCom = (React.createElement("span", { style: {
|
|
142
|
+
color: 'rgb(238, 63, 63)',
|
|
143
|
+
fontSize: '13px',
|
|
144
|
+
marginLeft: '5px',
|
|
145
|
+
} }, i18next.t('无权限查看')));
|
|
146
|
+
// 当前验证码过期
|
|
147
|
+
var ExpireCom = (React.createElement("span", { style: {
|
|
148
|
+
color: 'rgb(238, 63, 63)',
|
|
149
|
+
fontSize: '13px',
|
|
150
|
+
marginLeft: '5px',
|
|
151
|
+
} }, i18next.t('已过期')));
|
|
152
|
+
var CodeCom = (React.createElement("span", { style: {
|
|
153
|
+
color: 'rgb(255, 102, 102)',
|
|
154
|
+
fontSize: '16px',
|
|
155
|
+
marginLeft: '10px',
|
|
156
|
+
} }, isNewQys ? vertifyCode : code));
|
|
157
|
+
// 重新获取验证码
|
|
158
|
+
var RetryCom = isError ? (React.createElement(Button, { type: "link", style: {
|
|
159
|
+
fontSize: '13px',
|
|
160
|
+
marginLeft: '5px',
|
|
161
|
+
}, loading: loading, onClick: function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
162
|
+
var res_1, err_1;
|
|
163
|
+
return __generator(this, function (_a) {
|
|
164
|
+
switch (_a.label) {
|
|
165
|
+
case 0:
|
|
166
|
+
if (!wfProcessInstId) {
|
|
167
|
+
return [2 /*return*/];
|
|
168
|
+
}
|
|
169
|
+
_a.label = 1;
|
|
170
|
+
case 1:
|
|
171
|
+
_a.trys.push([1, 3, , 4]);
|
|
172
|
+
setLoading(true);
|
|
173
|
+
return [4 /*yield*/, (getQjVerifyCodeHandle === null || getQjVerifyCodeHandle === void 0 ? void 0 : getQjVerifyCodeHandle(wfProcessInstId))];
|
|
174
|
+
case 2:
|
|
175
|
+
res_1 = _a.sent();
|
|
176
|
+
unstable_batchedUpdates(function () {
|
|
177
|
+
setLoading(false);
|
|
178
|
+
if (res_1.status === 200 && res_1.data.code === 200 && res_1.data.data) {
|
|
179
|
+
refreshStatus(res_1.data.data);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
return [3 /*break*/, 4];
|
|
183
|
+
case 3:
|
|
184
|
+
err_1 = _a.sent();
|
|
185
|
+
setLoading(false);
|
|
186
|
+
console.log(err_1);
|
|
187
|
+
return [3 /*break*/, 4];
|
|
188
|
+
case 4: return [2 /*return*/];
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}); } }, i18next.t('重新获取'))) : null;
|
|
192
|
+
return (React.createElement("div", { className: "qunj-detail--wrap" },
|
|
193
|
+
isEdit ? null : (React.createElement("div", null,
|
|
194
|
+
React.createElement("div", { className: "qunj-detail--title" },
|
|
195
|
+
React.createElement("div", { className: "qunj-detail--code" },
|
|
196
|
+
i18next.t('群杰验证码'),
|
|
197
|
+
isNewQys ? (!comparePermission(verifyUserIds) ? (NoAuthCom) : isExpire ? (ExpireCom) : (React.createElement(React.Fragment, null, isError ? RetryCom : CodeCom))) : (React.createElement(React.Fragment, null, CodeCom))),
|
|
198
|
+
refreshCode && (React.createElement(Button, { type: "link", onClick: function () {
|
|
199
|
+
var _a;
|
|
200
|
+
if (refreshCode) {
|
|
201
|
+
(_a = codeModalRef.current) === null || _a === void 0 ? void 0 : _a.open({ formNo: wfProcessInstId });
|
|
202
|
+
}
|
|
203
|
+
} }, i18next.t('刷新验证码'))),
|
|
204
|
+
isShowSealApply && goWorkflowSeal && wfProcessInstId ? (React.createElement(Button, { style: { marginLeft: 'auto' }, type: "link", onClick: function () { return goWorkflowSeal(wfProcessInstId); } }, i18next.t('用印增加申请'))) : null),
|
|
205
|
+
(qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.code) || (qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.vertifyCode) ? (React.createElement("div", null,
|
|
206
|
+
React.createElement(Button, { type: "link", onClick: function () {
|
|
207
|
+
querySealStatus();
|
|
208
|
+
} }, i18next.t('查询用印状态')))) : null)),
|
|
209
|
+
React.createElement("div", { className: "qunj-detail--info" },
|
|
210
|
+
React.createElement("div", { style: {
|
|
211
|
+
display: 'flex',
|
|
212
|
+
alignItems: 'center',
|
|
213
|
+
justifyContent: 'space-between',
|
|
214
|
+
} },
|
|
215
|
+
isContranctNum && (React.createElement("div", null,
|
|
216
|
+
i18next.t('盖章文件数量:'),
|
|
217
|
+
React.createElement("span", null, qunjSeal === null || qunjSeal === void 0 ? void 0 :
|
|
218
|
+
qunjSeal.contranctNum,
|
|
219
|
+
i18next.t('份')))),
|
|
220
|
+
isNewQunjSealStyle && wfProcessInstId ? (React.createElement("div", null,
|
|
221
|
+
"\u6D41\u7A0Bid:",
|
|
222
|
+
' ',
|
|
223
|
+
React.createElement("span", { style: { fontSize: '15px' } }, wfProcessInstId))) : null),
|
|
224
|
+
React.createElement("div", { className: "qunj-detail--address" },
|
|
225
|
+
React.createElement("div", { className: "qunj-detail--type" },
|
|
226
|
+
i18next.t('用印类型:'),
|
|
227
|
+
React.createElement("span", null, (qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.isTakeOut) + '' === '0'
|
|
228
|
+
? i18next.t('内部用印')
|
|
229
|
+
: (qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.isTakeOut) + '' === '1'
|
|
230
|
+
? i18next.t('外部用印')
|
|
231
|
+
: '')),
|
|
232
|
+
isQunjAddress && (qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.isTakeOut) + '' === '1' && (React.createElement("div", null,
|
|
233
|
+
i18next.t('盖章地点:'),
|
|
234
|
+
React.createElement("span", null, currentQunjAddress === null || currentQunjAddress === void 0 ? void 0 : currentQunjAddress.name))))),
|
|
235
|
+
React.createElement("div", { className: "qunj-detail--list" }, (_b = qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.details) === null || _b === void 0 ? void 0 : _b.map(function (detail) {
|
|
236
|
+
var _a;
|
|
237
|
+
var item = (_a = qunjList === null || qunjList === void 0 ? void 0 : qunjList.find) === null || _a === void 0 ? void 0 : _a.call(qunjList, function (qunj) { return (qunj === null || qunj === void 0 ? void 0 : qunj.sealNo) === (detail === null || detail === void 0 ? void 0 : detail.sealNo); });
|
|
238
|
+
return (React.createElement("div", { className: "qunj-detail--item", key: detail === null || detail === void 0 ? void 0 : detail.sealNo },
|
|
239
|
+
React.createElement("div", null, isNewQunjSealStyle
|
|
240
|
+
? getCompanyName(item || detail) + " " + getSealShortName(item || detail)
|
|
241
|
+
: item === null || item === void 0 ? void 0 : item.sealName),
|
|
242
|
+
React.createElement("div", null,
|
|
243
|
+
i18next.t('用印'),
|
|
244
|
+
React.createElement("span", null, detail === null || detail === void 0 ? void 0 : detail.sealCount),
|
|
245
|
+
i18next.t('次'))));
|
|
246
|
+
})),
|
|
247
|
+
React.createElement(CodeModal, { details: qunjSeal === null || qunjSeal === void 0 ? void 0 : qunjSeal.details, request: request, ref: codeModalRef })));
|
|
248
|
+
};
|
|
249
|
+
export default memo(QunjDetail);
|
|
250
|
+
export var NoUseQj = function () {
|
|
251
|
+
return (React.createElement("div", { style: {
|
|
252
|
+
height: '100%',
|
|
253
|
+
display: 'flex',
|
|
254
|
+
alignItems: 'center',
|
|
255
|
+
justifyContent: 'center',
|
|
256
|
+
} }, i18next.t('本次流程未使用群杰印章')));
|
|
257
|
+
};
|
|
258
|
+
function padWithZeroes(str, targetLength) {
|
|
259
|
+
if (!str) {
|
|
260
|
+
return '';
|
|
261
|
+
}
|
|
262
|
+
var _str = str + '';
|
|
263
|
+
while (_str.length < targetLength) {
|
|
264
|
+
_str = '0' + _str;
|
|
265
|
+
}
|
|
266
|
+
return _str;
|
|
267
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IElectronSignaturesItem, IElectronSignaturesProps, ITrackItem } from '../interface';
|
|
3
|
+
interface IProps {
|
|
4
|
+
qunjList?: any;
|
|
5
|
+
contractNumFlowIds?: IElectronSignaturesProps['contractNumFlowIds'];
|
|
6
|
+
qunjSeal?: IElectronSignaturesItem['qunjSeal'];
|
|
7
|
+
onChange?: ITrackItem['onQunjSealChange'];
|
|
8
|
+
/** 是否显示合同份数 */
|
|
9
|
+
isContranctNum?: ITrackItem['isContranctNum'];
|
|
10
|
+
/** 是否勾选群杰印章-用印申请 */
|
|
11
|
+
qunjChecked?: ITrackItem['qunjChecked'];
|
|
12
|
+
/** 切换是否勾选群杰印章-用印申请 */
|
|
13
|
+
setQunjChecked?: ITrackItem['setQunjChecked'];
|
|
14
|
+
qunjAddressList?: ITrackItem['qunjAddressList'];
|
|
15
|
+
currentQunjAddress?: ITrackItem['currentQunjAddress'];
|
|
16
|
+
onQunjAddressChange?: ITrackItem['onQunjAddressChange'];
|
|
17
|
+
isQunjAddress?: ITrackItem['isQunjAddress'];
|
|
18
|
+
isShowChecked?: boolean;
|
|
19
|
+
/** 群杰印章列表显示过滤方法 */
|
|
20
|
+
qunjListRenderFilter?: IElectronSignaturesItem['qunjListRenderFilter'];
|
|
21
|
+
}
|
|
22
|
+
export declare function isFilterAreaType(currentAreaType: any, itemAreaType: any): boolean;
|
|
23
|
+
declare const _default: React.NamedExoticComponent<IProps>;
|
|
24
|
+
export default _default;
|