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,321 @@
|
|
|
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 QunjList, { isFilterAreaType } from './qunj-list';
|
|
15
|
+
import QunjDetail, { NoUseQj } from './qunj-detail';
|
|
16
|
+
import QunjCheck from './qunj-check';
|
|
17
|
+
import { getColumnMergeProp } from '../hooks/useParseRecords';
|
|
18
|
+
import { ElectronSignaturesContext } from '..';
|
|
19
|
+
import { Button } from '../../../index';
|
|
20
|
+
function WorkflowIdButton(props) {
|
|
21
|
+
var children = props.children, wfProcessInstId = props.wfProcessInstId, isShowSealApply = props.isShowSealApply, isEdit = props.isEdit, goWorkflowSeal = props.goWorkflowSeal;
|
|
22
|
+
var onGoWorkflowSeal = function () {
|
|
23
|
+
if (!wfProcessInstId) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
goWorkflowSeal && goWorkflowSeal(wfProcessInstId);
|
|
27
|
+
};
|
|
28
|
+
return (React.createElement("div", { style: {
|
|
29
|
+
// color: 'rgb(255, 102, 102)',
|
|
30
|
+
fontSize: '15px',
|
|
31
|
+
} },
|
|
32
|
+
children,
|
|
33
|
+
isShowSealApply && !isEdit ? (React.createElement(Button, { type: "link", onClick: onGoWorkflowSeal }, i18next.t('用印增加申请'))) : null));
|
|
34
|
+
}
|
|
35
|
+
// 群杰印章的clomuns
|
|
36
|
+
export default function useQunjColumns(options) {
|
|
37
|
+
var records = options.records, dataTypeSort = options.dataTypeSort, allData = options.allData, contractNumFlowIds = options.contractNumFlowIds, refreshCode = options.refreshCode, request = options.request, isSingleQj = options.isSingleQj, isQjUseModal = options.isQjUseModal, apiBaseUrl = options.apiBaseUrl, caseId = options.caseId, qjVerifyCodeData = options.qjVerifyCodeData, getQjVerifyCodeHandle = options.getQjVerifyCodeHandle, isShowSealApply = options.isShowSealApply, goWorkflowSeal = options.goWorkflowSeal, qunjListRenderFilter = options.qunjListRenderFilter;
|
|
38
|
+
var _a = useContext(ElectronSignaturesContext), isNewQys = _a.isNewQys, isNewQunjSealStyle = _a.isNewQunjSealStyle;
|
|
39
|
+
var useSealTitle = isNewQunjSealStyle
|
|
40
|
+
? i18next.t('选择群杰印章')
|
|
41
|
+
: isNewQys
|
|
42
|
+
? i18next.t('已选群杰印章')
|
|
43
|
+
: i18next.t('申请用章情况');
|
|
44
|
+
var qjColumn = isSingleQj
|
|
45
|
+
? [
|
|
46
|
+
{
|
|
47
|
+
title: i18next.t('盖群杰印章'),
|
|
48
|
+
dataIndex: 'isStampQunj',
|
|
49
|
+
key: 'isStampQunj',
|
|
50
|
+
width: 100,
|
|
51
|
+
align: 'center',
|
|
52
|
+
render: function (text, record, index) {
|
|
53
|
+
// 需要合并
|
|
54
|
+
var _a = getColumnMergeProp({
|
|
55
|
+
record: record,
|
|
56
|
+
index: index,
|
|
57
|
+
records: records,
|
|
58
|
+
dataTypeSort: dataTypeSort,
|
|
59
|
+
}), currentDataType = _a.currentDataType, preDataTypeRecordsLength = _a.preDataTypeRecordsLength;
|
|
60
|
+
var _b = allData[currentDataType] || {}, isEdit = _b.isEdit, fileFieldsNameRef = _b.fileFieldsNameRef, onIsStampQunjChange = _b.onIsStampQunjChange,
|
|
61
|
+
// 当前流程下的群杰章信息
|
|
62
|
+
qunjList = _b.qunjList,
|
|
63
|
+
// 是否显示合同分数
|
|
64
|
+
isContranctNum = _b.isContranctNum,
|
|
65
|
+
// 是否显示群杰章地址
|
|
66
|
+
isQunjAddress = _b.isQunjAddress, onQunjAddressSingleChange = _b.onQunjAddressSingleChange, onQunjSealSingleChange = _b.onQunjSealSingleChange, wfProcessInstId = _b.wfProcessInstId;
|
|
67
|
+
var _c = (fileFieldsNameRef === null || fileFieldsNameRef === void 0 ? void 0 : fileFieldsNameRef.current) || {}, isQunj = _c.isQunj, qunjSeal = _c.qunjSeal, qunjAddress = _c.qunjAddress;
|
|
68
|
+
// 是否显示群杰印章信息
|
|
69
|
+
var isShowQunjDetail = isQunj
|
|
70
|
+
? record[isQunj] + '' === '1'
|
|
71
|
+
: false;
|
|
72
|
+
// 因为数据是按照类型来归类了,那么这个索引的长度 实际应该减去之前的所有数据类型的长度
|
|
73
|
+
var dataTypeIndex = index - preDataTypeRecordsLength;
|
|
74
|
+
// 当前选中的群杰章信息
|
|
75
|
+
var currentQunjSeal = qunjSeal ? record[qunjSeal] : null;
|
|
76
|
+
// 当前选中的盖章地址信息
|
|
77
|
+
var currentQunjAddress = qunjAddress ? record[qunjAddress] : null;
|
|
78
|
+
return (React.createElement(React.Fragment, null,
|
|
79
|
+
React.createElement(QunjCheck, { disabled: !isEdit, checked: isShowQunjDetail, onChange: function (checked) {
|
|
80
|
+
onIsStampQunjChange === null || onIsStampQunjChange === void 0 ? void 0 : onIsStampQunjChange(checked, dataTypeIndex);
|
|
81
|
+
}, qunjList: qunjList, currentQunjSeal: currentQunjSeal, currentQunjAddress: currentQunjAddress, isContranctNum: isContranctNum, isQunjAddress: isQunjAddress, onQunjAddressSingleChange: function (data) {
|
|
82
|
+
var _a, _b, _c;
|
|
83
|
+
// 如果切换了盖章地点,需要将非当前地点的数据删除
|
|
84
|
+
var copyDetails = ((_c = (_b = (_a = currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) === null || _a === void 0 ? void 0 : _a.slice()) === null || _b === void 0 ? void 0 : _b.map) === null || _c === void 0 ? void 0 : _c.call(_b, function (detail) { return (__assign({}, detail)); })) || [];
|
|
85
|
+
var newDetails = copyDetails.filter(function (qunjItem) {
|
|
86
|
+
return isFilterAreaType(data === null || data === void 0 ? void 0 : data.id, qunjItem.areaType);
|
|
87
|
+
});
|
|
88
|
+
var qunjSeal = {};
|
|
89
|
+
if (copyDetails.length !== newDetails.length) {
|
|
90
|
+
qunjSeal.details = newDetails;
|
|
91
|
+
}
|
|
92
|
+
onQunjAddressSingleChange === null || onQunjAddressSingleChange === void 0 ? void 0 : onQunjAddressSingleChange(data, dataTypeIndex, qunjSeal);
|
|
93
|
+
}, onQunjSealSingleChange: function (data) {
|
|
94
|
+
onQunjSealSingleChange === null || onQunjSealSingleChange === void 0 ? void 0 : onQunjSealSingleChange(data, dataTypeIndex);
|
|
95
|
+
}, qunjListRenderFilter: qunjListRenderFilter }),
|
|
96
|
+
wfProcessInstId ? (React.createElement(WorkflowIdButton, { wfProcessInstId: wfProcessInstId, isShowSealApply: isShowSealApply, isEdit: isEdit, goWorkflowSeal: goWorkflowSeal }, wfProcessInstId)) : ('')));
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: useSealTitle,
|
|
101
|
+
dataIndex: 'qunjDetail',
|
|
102
|
+
key: 'qunjDetail',
|
|
103
|
+
width: 260,
|
|
104
|
+
align: 'center',
|
|
105
|
+
render: function (text, record, index) {
|
|
106
|
+
// 需要合并
|
|
107
|
+
var currentDataType = getColumnMergeProp({
|
|
108
|
+
record: record,
|
|
109
|
+
index: index,
|
|
110
|
+
records: records,
|
|
111
|
+
dataTypeSort: dataTypeSort,
|
|
112
|
+
}).currentDataType;
|
|
113
|
+
var _a = allData[currentDataType] || {}, fileFieldsNameRef = _a.fileFieldsNameRef, wfProcessInstId = _a.wfProcessInstId, verifyUserIds = _a.verifyUserIds;
|
|
114
|
+
var _b = (fileFieldsNameRef === null || fileFieldsNameRef === void 0 ? void 0 : fileFieldsNameRef.current) || {}, isQunj = _b.isQunj, qunjSeal = _b.qunjSeal, qunjAddress = _b.qunjAddress;
|
|
115
|
+
// 是否显示群杰印章信息
|
|
116
|
+
var isShowQunjDetail = isQunj
|
|
117
|
+
? record[isQunj] + '' === '1'
|
|
118
|
+
: false;
|
|
119
|
+
// 当前选中的群杰章信息
|
|
120
|
+
var currentQunjSeal = qunjSeal ? record[qunjSeal] : null;
|
|
121
|
+
// 当前选中的盖章地址信息
|
|
122
|
+
var currentQunjAddress = qunjAddress ? record[qunjAddress] : null;
|
|
123
|
+
// 公用信息获取
|
|
124
|
+
var _c = allData[currentDataType] || {}, isEdit = _c.isEdit,
|
|
125
|
+
// 当前流程下的群杰章信息
|
|
126
|
+
qunjList = _c.qunjList,
|
|
127
|
+
// 是否显示合同分数
|
|
128
|
+
isContranctNum = _c.isContranctNum,
|
|
129
|
+
// 是否显示群杰章地址
|
|
130
|
+
isQunjAddress = _c.isQunjAddress, flowStatus = _c.flowStatus;
|
|
131
|
+
return isShowQunjDetail ? (React.createElement(QunjDetail, { qunjList: qunjList, qunjSeal: currentQunjSeal, isContranctNum: isContranctNum, isQunjAddress: isQunjAddress, currentQunjAddress: currentQunjAddress, isEdit: isEdit, refreshCode: refreshCode, request: request, wfProcessInstId: wfProcessInstId, verifyUserIds: verifyUserIds, qjVerifyCodeData: qjVerifyCodeData, getQjVerifyCodeHandle: getQjVerifyCodeHandle, flowStatus: flowStatus })) : null;
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
]
|
|
135
|
+
: isQjUseModal
|
|
136
|
+
? // 新版模式:合并为单列"选择群杰印章";旧版模式:两列(盖群杰印章 + 已选群杰印章)
|
|
137
|
+
isNewQunjSealStyle
|
|
138
|
+
? [
|
|
139
|
+
{
|
|
140
|
+
title: i18next.t('选择群杰印章'),
|
|
141
|
+
dataIndex: 'qunjDetail',
|
|
142
|
+
key: 'qunjDetail',
|
|
143
|
+
width: 344,
|
|
144
|
+
align: 'center',
|
|
145
|
+
// 固定列宽(scroll.x=max-content 时 width 会被内容撑开)
|
|
146
|
+
onHeaderCell: function () { return ({
|
|
147
|
+
style: { width: 344, minWidth: 344, maxWidth: 344 },
|
|
148
|
+
}); },
|
|
149
|
+
onCell: function () { return ({
|
|
150
|
+
// 内容从顶部往下排,避免切换公司时因印章数量不同导致内容垂直居中抖动
|
|
151
|
+
style: {
|
|
152
|
+
width: 326,
|
|
153
|
+
minWidth: 326,
|
|
154
|
+
maxWidth: 326,
|
|
155
|
+
verticalAlign: 'top',
|
|
156
|
+
},
|
|
157
|
+
}); },
|
|
158
|
+
render: function (text, record, index) {
|
|
159
|
+
var _a;
|
|
160
|
+
var _b = getColumnMergeProp({
|
|
161
|
+
record: record,
|
|
162
|
+
index: index,
|
|
163
|
+
records: records,
|
|
164
|
+
dataTypeSort: dataTypeSort,
|
|
165
|
+
}), props = _b.props, currentDataType = _b.currentDataType;
|
|
166
|
+
var _c = allData[currentDataType] || {}, isEdit = _c.isEdit, qunjList = _c.qunjList, isContranctNum = _c.isContranctNum, isQunjAddress = _c.isQunjAddress, currentQunjSeal = _c.currentQunjSeal, onQunjSealChange = _c.onQunjSealChange, qunjChecked = _c.qunjChecked, setQunjChecked = _c.setQunjChecked, qunjAddressList = _c.qunjAddressList, currentQunjAddress = _c.currentQunjAddress, onQunjAddressChange = _c.onQunjAddressChange, needQj = _c.needQj, wfProcessInstId = _c.wfProcessInstId, verifyUserIds = _c.verifyUserIds, flowStatus = _c.flowStatus;
|
|
167
|
+
return {
|
|
168
|
+
children: !needQj ? (React.createElement(NoUseQj, null)) : isEdit ? (React.createElement(QunjList, { qunjList: qunjList, qunjSeal: currentQunjSeal, onChange: onQunjSealChange, isContranctNum: isContranctNum, isQunjAddress: isQunjAddress, qunjAddressList: qunjAddressList, currentQunjAddress: currentQunjAddress, onQunjAddressChange: onQunjAddressChange, qunjChecked: qunjChecked, setQunjChecked: setQunjChecked, qunjListRenderFilter: qunjListRenderFilter })) : ((_a = currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) === null || _a === void 0 ? void 0 : _a.length) !== 0 ? (React.createElement(QunjDetail, { qunjList: qunjList, qunjSeal: currentQunjSeal, isContranctNum: isContranctNum, isQunjAddress: isQunjAddress, currentQunjAddress: currentQunjAddress, isEdit: isEdit, refreshCode: refreshCode, request: request, apiBaseUrl: apiBaseUrl, caseId: caseId, wfProcessInstId: wfProcessInstId, verifyUserIds: verifyUserIds, qjVerifyCodeData: qjVerifyCodeData, getQjVerifyCodeHandle: getQjVerifyCodeHandle, flowStatus: flowStatus, isShowSealApply: isShowSealApply, goWorkflowSeal: goWorkflowSeal })) : (React.createElement(NoUseQj, null)),
|
|
169
|
+
props: props,
|
|
170
|
+
};
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
]
|
|
174
|
+
: // 旧版模式:两列(盖群杰印章 + 已选群杰印章)
|
|
175
|
+
[
|
|
176
|
+
{
|
|
177
|
+
title: i18next.t('盖群杰印章'),
|
|
178
|
+
dataIndex: 'isStampQunj',
|
|
179
|
+
key: 'isStampQunj',
|
|
180
|
+
width: 100,
|
|
181
|
+
align: 'center',
|
|
182
|
+
render: function (text, record, index) {
|
|
183
|
+
var _a;
|
|
184
|
+
// 需要合并
|
|
185
|
+
var _b = getColumnMergeProp({
|
|
186
|
+
record: record,
|
|
187
|
+
index: index,
|
|
188
|
+
records: records,
|
|
189
|
+
dataTypeSort: dataTypeSort,
|
|
190
|
+
}), props = _b.props, currentDataType = _b.currentDataType;
|
|
191
|
+
var _c = allData[currentDataType] || {}, isEdit = _c.isEdit, qunjList = _c.qunjList, currentQunjSeal = _c.currentQunjSeal, onQunjSealChange = _c.onQunjSealChange, needQj = _c.needQj, isContranctNum = _c.isContranctNum, qunjChecked = _c.qunjChecked, setQunjChecked = _c.setQunjChecked, currentQunjAddress = _c.currentQunjAddress, onQunjAddressChange = _c.onQunjAddressChange, isQunjAddress = _c.isQunjAddress, wfProcessInstId = _c.wfProcessInstId;
|
|
192
|
+
// 是否显示群杰印章信息 如果非编辑状态下,使用数据中的字段来判断是否选择了群杰印章
|
|
193
|
+
var isShowQunjDetail = !isEdit
|
|
194
|
+
? (currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) &&
|
|
195
|
+
((_a = currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) === null || _a === void 0 ? void 0 : _a.length) !== 0
|
|
196
|
+
: qunjChecked;
|
|
197
|
+
return {
|
|
198
|
+
children: !needQj ? (React.createElement(React.Fragment, null,
|
|
199
|
+
React.createElement(NoUseQj, null),
|
|
200
|
+
wfProcessInstId ? (React.createElement(WorkflowIdButton, { wfProcessInstId: wfProcessInstId, isShowSealApply: isShowSealApply, isEdit: isEdit, goWorkflowSeal: goWorkflowSeal }, wfProcessInstId)) : (''))) : (React.createElement(React.Fragment, null,
|
|
201
|
+
React.createElement(QunjCheck, { disabled: !isEdit, checked: isShowQunjDetail, onChange: function (checked) {
|
|
202
|
+
setQunjChecked && setQunjChecked(checked);
|
|
203
|
+
}, qunjList: qunjList, currentQunjSeal: currentQunjSeal, currentQunjAddress: currentQunjAddress, isContranctNum: isContranctNum, isQunjAddress: isQunjAddress, onQunjAddressSingleChange: function (data) {
|
|
204
|
+
var _a, _b, _c;
|
|
205
|
+
// 如果切换了盖章地点,需要将非当前地点的数据删除
|
|
206
|
+
var copyDetails = ((_c = (_b = (_a = currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) === null || _a === void 0 ? void 0 : _a.slice()) === null || _b === void 0 ? void 0 : _b.map) === null || _c === void 0 ? void 0 : _c.call(_b, function (detail) { return (__assign({}, detail)); })) || [];
|
|
207
|
+
var newDetails = copyDetails.filter(function (qunjItem) {
|
|
208
|
+
return isFilterAreaType(data === null || data === void 0 ? void 0 : data.id, qunjItem.areaType);
|
|
209
|
+
});
|
|
210
|
+
var qunjSeal = {};
|
|
211
|
+
if (copyDetails.length !== newDetails.length) {
|
|
212
|
+
qunjSeal.details = newDetails;
|
|
213
|
+
}
|
|
214
|
+
onQunjAddressChange &&
|
|
215
|
+
onQunjAddressChange(data, { qunjSeal: qunjSeal });
|
|
216
|
+
}, onQunjSealSingleChange: function (data) {
|
|
217
|
+
onQunjSealChange && onQunjSealChange(data);
|
|
218
|
+
}, qunjListRenderFilter: qunjListRenderFilter }),
|
|
219
|
+
wfProcessInstId ? (React.createElement(WorkflowIdButton, { wfProcessInstId: wfProcessInstId, isShowSealApply: isShowSealApply, isEdit: isEdit, goWorkflowSeal: goWorkflowSeal }, wfProcessInstId)) : (''))),
|
|
220
|
+
props: props,
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
title: useSealTitle,
|
|
226
|
+
dataIndex: 'qunjDetail',
|
|
227
|
+
key: 'qunjDetail',
|
|
228
|
+
width: 260,
|
|
229
|
+
align: 'center',
|
|
230
|
+
render: function (text, record, index) {
|
|
231
|
+
var _a;
|
|
232
|
+
// 需要合并
|
|
233
|
+
var _b = getColumnMergeProp({
|
|
234
|
+
record: record,
|
|
235
|
+
index: index,
|
|
236
|
+
records: records,
|
|
237
|
+
dataTypeSort: dataTypeSort,
|
|
238
|
+
}), props = _b.props, currentDataType = _b.currentDataType;
|
|
239
|
+
// 公用信息获取
|
|
240
|
+
var _c = allData[currentDataType] || {}, isEdit = _c.isEdit,
|
|
241
|
+
// 当前流程下的群杰章信息
|
|
242
|
+
qunjList = _c.qunjList,
|
|
243
|
+
// 是否显示合同分数
|
|
244
|
+
isContranctNum = _c.isContranctNum,
|
|
245
|
+
// 是否显示群杰章地址
|
|
246
|
+
isQunjAddress = _c.isQunjAddress, currentQunjSeal = _c.currentQunjSeal, qunjChecked = _c.qunjChecked, currentQunjAddress = _c.currentQunjAddress, wfProcessInstId = _c.wfProcessInstId, verifyUserIds = _c.verifyUserIds, flowStatus = _c.flowStatus;
|
|
247
|
+
// 是否显示群杰印章信息 如果非编辑状态下,使用数据中的字段来判断是否选择了群杰印章
|
|
248
|
+
var isShowQunjDetail = !isEdit
|
|
249
|
+
? (currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) &&
|
|
250
|
+
((_a = currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) === null || _a === void 0 ? void 0 : _a.length) !== 0
|
|
251
|
+
: qunjChecked;
|
|
252
|
+
return {
|
|
253
|
+
children: isShowQunjDetail ? (React.createElement(QunjDetail, { qunjList: qunjList, qunjSeal: currentQunjSeal, isContranctNum: isContranctNum, isQunjAddress: isQunjAddress, currentQunjAddress: currentQunjAddress, isEdit: isEdit, refreshCode: refreshCode, request: request, apiBaseUrl: apiBaseUrl, caseId: caseId, wfProcessInstId: wfProcessInstId, verifyUserIds: verifyUserIds, qjVerifyCodeData: qjVerifyCodeData, getQjVerifyCodeHandle: getQjVerifyCodeHandle, flowStatus: flowStatus })) : null,
|
|
254
|
+
props: props,
|
|
255
|
+
};
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
]
|
|
259
|
+
: [
|
|
260
|
+
{
|
|
261
|
+
title: React.createElement("div", null, i18next.t('群杰用印申请')),
|
|
262
|
+
dataIndex: 'isStampQunj',
|
|
263
|
+
key: 'isStampQunj',
|
|
264
|
+
width: 330,
|
|
265
|
+
align: 'center',
|
|
266
|
+
// 固定列宽(scroll.x=max-content 时 width 会被内容撑开)
|
|
267
|
+
onHeaderCell: function () { return ({
|
|
268
|
+
style: { width: 330, minWidth: 330, maxWidth: 330 },
|
|
269
|
+
}); },
|
|
270
|
+
onCell: function () { return ({
|
|
271
|
+
// 内容从顶部往下排,避免切换公司时因印章数量不同导致内容垂直居中抖动
|
|
272
|
+
style: {
|
|
273
|
+
width: 330,
|
|
274
|
+
minWidth: 330,
|
|
275
|
+
maxWidth: 330,
|
|
276
|
+
verticalAlign: 'top',
|
|
277
|
+
},
|
|
278
|
+
}); },
|
|
279
|
+
render: function (text, record, index) {
|
|
280
|
+
// 需要合并
|
|
281
|
+
var _a = getColumnMergeProp({
|
|
282
|
+
record: record,
|
|
283
|
+
index: index,
|
|
284
|
+
records: records,
|
|
285
|
+
dataTypeSort: dataTypeSort,
|
|
286
|
+
}), props = _a.props, currentDataType = _a.currentDataType;
|
|
287
|
+
var _b = allData[currentDataType] || {}, isEdit = _b.isEdit, qunjList = _b.qunjList, currentQunjSeal = _b.currentQunjSeal, onQunjSealChange = _b.onQunjSealChange, needQj = _b.needQj, isContranctNum = _b.isContranctNum, qunjChecked = _b.qunjChecked, setQunjChecked = _b.setQunjChecked, qunjAddressList = _b.qunjAddressList, currentQunjAddress = _b.currentQunjAddress, onQunjAddressChange = _b.onQunjAddressChange, isQunjAddress = _b.isQunjAddress, wfProcessInstId = _b.wfProcessInstId, verifyUserIds = _b.verifyUserIds, flowStatus = _b.flowStatus;
|
|
288
|
+
return {
|
|
289
|
+
children: !needQj ? (React.createElement(NoUseQj, null)) : isEdit ? (React.createElement(QunjList, { qunjList: qunjList, contractNumFlowIds: contractNumFlowIds, qunjSeal: currentQunjSeal, onChange: onQunjSealChange, isContranctNum: isContranctNum, qunjChecked: qunjChecked, setQunjChecked: setQunjChecked, qunjAddressList: qunjAddressList, currentQunjAddress: currentQunjAddress, onQunjAddressChange: function (data) {
|
|
290
|
+
var _a, _b, _c;
|
|
291
|
+
// 如果切换了盖章地点,需要将非当前地点的数据删除
|
|
292
|
+
var copyDetails = ((_c = (_b = (_a = currentQunjSeal === null || currentQunjSeal === void 0 ? void 0 : currentQunjSeal.details) === null || _a === void 0 ? void 0 : _a.slice()) === null || _b === void 0 ? void 0 : _b.map) === null || _c === void 0 ? void 0 : _c.call(_b, function (detail) { return (__assign({}, detail)); })) || [];
|
|
293
|
+
var newDetails = copyDetails.filter(function (qunjItem) {
|
|
294
|
+
return isFilterAreaType(data === null || data === void 0 ? void 0 : data.id, qunjItem.areaType);
|
|
295
|
+
});
|
|
296
|
+
var qunjSeal = {};
|
|
297
|
+
if (copyDetails.length !== newDetails.length) {
|
|
298
|
+
qunjSeal.details = newDetails;
|
|
299
|
+
}
|
|
300
|
+
onQunjAddressChange &&
|
|
301
|
+
onQunjAddressChange(data, { qunjSeal: qunjSeal });
|
|
302
|
+
}, isQunjAddress: isQunjAddress, qunjListRenderFilter: qunjListRenderFilter })) : (React.createElement(QunjDetail, { qunjList: qunjList, qunjSeal: currentQunjSeal, isContranctNum: isContranctNum, isQunjAddress: isQunjAddress, currentQunjAddress: currentQunjAddress, refreshCode: refreshCode, request: request, wfProcessInstId: wfProcessInstId, verifyUserIds: verifyUserIds, qjVerifyCodeData: qjVerifyCodeData, getQjVerifyCodeHandle: getQjVerifyCodeHandle, flowStatus: flowStatus })),
|
|
303
|
+
props: props,
|
|
304
|
+
};
|
|
305
|
+
},
|
|
306
|
+
},
|
|
307
|
+
];
|
|
308
|
+
var qunjColumns = isNewQys
|
|
309
|
+
? qjColumn
|
|
310
|
+
: // 下面是最初设计的模式
|
|
311
|
+
[
|
|
312
|
+
{
|
|
313
|
+
title: i18next.t('群杰印章'),
|
|
314
|
+
align: 'center',
|
|
315
|
+
children: qjColumn,
|
|
316
|
+
},
|
|
317
|
+
];
|
|
318
|
+
return {
|
|
319
|
+
qunjColumns: qunjColumns,
|
|
320
|
+
};
|
|
321
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare function TranslationButtonComponents({ isTranslation, previewUrl, request, record, realIndex, setRecords, }: {
|
|
3
|
+
isTranslation: any;
|
|
4
|
+
previewUrl: any;
|
|
5
|
+
request: any;
|
|
6
|
+
record: any;
|
|
7
|
+
realIndex: any;
|
|
8
|
+
setRecords: any;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
export default TranslationButtonComponents;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { TranslationButton } from '../../../index';
|
|
14
|
+
function TranslationButtonComponents(_a) {
|
|
15
|
+
var isTranslation = _a.isTranslation, previewUrl = _a.previewUrl, request = _a.request, record = _a.record, realIndex = _a.realIndex, setRecords = _a.setRecords;
|
|
16
|
+
var attachId = record.attachId, attachName = record.attachName;
|
|
17
|
+
// 翻译的任务id改变时触发
|
|
18
|
+
var tidChange = function (tid) {
|
|
19
|
+
// 更新tid 如果需要 将任务id存储
|
|
20
|
+
if (typeof realIndex === 'number') {
|
|
21
|
+
setRecords(function (preRecords) {
|
|
22
|
+
var copyRecords = preRecords.slice();
|
|
23
|
+
var item = copyRecords[realIndex];
|
|
24
|
+
copyRecords.splice(realIndex, 1, __assign(__assign({}, item), { tid: tid }));
|
|
25
|
+
return copyRecords;
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
// 翻译组件
|
|
30
|
+
var transaltionCom = isTranslation && attachId && attachName && previewUrl ? (
|
|
31
|
+
// <div
|
|
32
|
+
// style={{
|
|
33
|
+
// display: 'flex',
|
|
34
|
+
// justifyContent: 'space-between',
|
|
35
|
+
// alignItems: 'center',
|
|
36
|
+
// }}
|
|
37
|
+
// >
|
|
38
|
+
React.createElement(TranslationButton, { request: request, attachId: attachId, attachName: attachName, tidChange: tidChange, previewUrl: previewUrl,
|
|
39
|
+
// 如果业务存储了tid的话
|
|
40
|
+
tid: record === null || record === void 0 ? void 0 : record.tid })) : // </div>
|
|
41
|
+
null;
|
|
42
|
+
return transaltionCom;
|
|
43
|
+
}
|
|
44
|
+
export default TranslationButtonComponents;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ColumnsType } from 'antd/es/table';
|
|
2
|
+
import { ITrackAllData, IFileItem } from '../interface';
|
|
3
|
+
interface IOptions {
|
|
4
|
+
/** 所有数据类型合并之后的数据 */
|
|
5
|
+
records: IFileItem[];
|
|
6
|
+
/** 所有数据类型的排序规则 */
|
|
7
|
+
dataTypeSort: string[];
|
|
8
|
+
/** 所有数据类型的相关操作 */
|
|
9
|
+
allData: ITrackAllData;
|
|
10
|
+
isTranslation?: boolean;
|
|
11
|
+
request?: any;
|
|
12
|
+
/**预览地址 */
|
|
13
|
+
previewUrl?: string;
|
|
14
|
+
/**文件id */
|
|
15
|
+
attachId?: string;
|
|
16
|
+
/**文件名称 */
|
|
17
|
+
attachName?: string;
|
|
18
|
+
}
|
|
19
|
+
declare function useTranslateCom({ isTranslation, previewUrl, request, records, dataTypeSort, allData, }: IOptions): {
|
|
20
|
+
translateColumns: ColumnsType<any>;
|
|
21
|
+
};
|
|
22
|
+
export default useTranslateCom;
|
|
@@ -0,0 +1,50 @@
|
|
|
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 TranslationButton from './TranslateButton';
|
|
15
|
+
import { getColumnMergeProp } from '../hooks/useParseRecords';
|
|
16
|
+
import { Checkbox } from '../../../index';
|
|
17
|
+
import { ElectronSignaturesContext } from '..';
|
|
18
|
+
function useTranslateCom(_a) {
|
|
19
|
+
var isTranslation = _a.isTranslation, previewUrl = _a.previewUrl, request = _a.request, records = _a.records, dataTypeSort = _a.dataTypeSort, allData = _a.allData;
|
|
20
|
+
var isNewQys = useContext(ElectronSignaturesContext).isNewQys;
|
|
21
|
+
var translateColumns = [
|
|
22
|
+
__assign(__assign({ title: i18next.t('附件扩展功能'), dataIndex: 'translatedFile', key: 'translatedFile', width: 180, align: 'center' }, (isNewQys
|
|
23
|
+
? {
|
|
24
|
+
onHeaderCell: function () { return ({
|
|
25
|
+
style: { width: 180, minWidth: 180, maxWidth: 180 },
|
|
26
|
+
}); },
|
|
27
|
+
onCell: function () { return ({
|
|
28
|
+
style: { width: 180, minWidth: 180, maxWidth: 180 },
|
|
29
|
+
}); },
|
|
30
|
+
}
|
|
31
|
+
: {})), { render: function (text, record, index) {
|
|
32
|
+
var currentDataType = getColumnMergeProp({
|
|
33
|
+
record: record,
|
|
34
|
+
index: index,
|
|
35
|
+
records: records,
|
|
36
|
+
dataTypeSort: dataTypeSort,
|
|
37
|
+
}).currentDataType;
|
|
38
|
+
var _a = allData[currentDataType] || {}, setSameTypeRecords = _a.setRecords, isShowSaveTemplate = _a.isShowSaveTemplate;
|
|
39
|
+
// 是否存模板
|
|
40
|
+
var isCustomerReference = (record === null || record === void 0 ? void 0 : record.isCustomerReference) + '' === '1' ? true : false;
|
|
41
|
+
return (React.createElement(React.Fragment, null,
|
|
42
|
+
!record.isHideSaveCustomerReference && isShowSaveTemplate ? (React.createElement(Checkbox, { checked: isCustomerReference, disabled: true }, i18next.t('存样板'))) : null,
|
|
43
|
+
React.createElement(TranslationButton, { request: request, previewUrl: previewUrl, isTranslation: isTranslation, record: record, realIndex: index, setRecords: setSameTypeRecords })));
|
|
44
|
+
} }),
|
|
45
|
+
];
|
|
46
|
+
return {
|
|
47
|
+
translateColumns: translateColumns,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export default useTranslateCom;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** 需要存样板合同类型 采购合同 销售合同 双边合同 */
|
|
2
|
+
export declare const NEED_SAVE_TEMPLATE: string[];
|
|
3
|
+
/** 采购合同 销售合同 双边合同 部门间交易合同 */
|
|
4
|
+
export declare const FLOW_IDS: string[];
|
|
5
|
+
/** 如果仅需要群杰印章的话 */
|
|
6
|
+
export declare const onlyQunjAttachId = "123456789";
|
|
7
|
+
export declare const detailOnlyQunjAttachId = "1234567891";
|
|
8
|
+
export declare function currentRecordIsOnlyQunj(record: any): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* 判断流程状态是否在允许的状态列表中
|
|
11
|
+
* @param flowStatus 当前流程状态
|
|
12
|
+
* @param allowedStatus 允许的状态列表,逗号分隔的字符串,如 '50,60,70',默认为 '50'
|
|
13
|
+
*/
|
|
14
|
+
export declare function isFlowCompleted(flowStatus: string, allowedStatus?: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* 将字节数加上合适的单位
|
|
17
|
+
* @param numBytes 字节数
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
export declare function formatUnit(numBytes: number): string | number;
|
|
21
|
+
/**
|
|
22
|
+
* 获取文件名中的后缀 返回文件名 + 后缀
|
|
23
|
+
* @param fileName 文件名
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function getFileExtension(fileName: string): [string, string];
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** 需要存样板合同类型 采购合同 销售合同 双边合同 */
|
|
2
|
+
export var NEED_SAVE_TEMPLATE = [
|
|
3
|
+
'scm_order_contract_cght',
|
|
4
|
+
'scm_order_contract_xsht',
|
|
5
|
+
'scm_order_contract_sbht',
|
|
6
|
+
];
|
|
7
|
+
/** 采购合同 销售合同 双边合同 部门间交易合同 */
|
|
8
|
+
export var FLOW_IDS = [
|
|
9
|
+
'scm_order_contract_cght',
|
|
10
|
+
'scm_order_contract_xsht',
|
|
11
|
+
'scm_order_contract_sbht',
|
|
12
|
+
'scm_order_contract_bjjyht',
|
|
13
|
+
];
|
|
14
|
+
/** 如果仅需要群杰印章的话 */
|
|
15
|
+
export var onlyQunjAttachId = '123456789';
|
|
16
|
+
export var detailOnlyQunjAttachId = '1234567891';
|
|
17
|
+
export function currentRecordIsOnlyQunj(record) {
|
|
18
|
+
return ((record === null || record === void 0 ? void 0 : record.attachId) + '' === onlyQunjAttachId ||
|
|
19
|
+
(record === null || record === void 0 ? void 0 : record.attachId) + '' === detailOnlyQunjAttachId);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 判断流程状态是否在允许的状态列表中
|
|
23
|
+
* @param flowStatus 当前流程状态
|
|
24
|
+
* @param allowedStatus 允许的状态列表,逗号分隔的字符串,如 '50,60,70',默认为 '50'
|
|
25
|
+
*/
|
|
26
|
+
export function isFlowCompleted(flowStatus, allowedStatus) {
|
|
27
|
+
if (allowedStatus === void 0) { allowedStatus = '50'; }
|
|
28
|
+
console.log('当前流程状态:', flowStatus);
|
|
29
|
+
console.log('允许的状态列表:', allowedStatus);
|
|
30
|
+
var statusList = allowedStatus.split(',').map(function (s) { return s.trim(); });
|
|
31
|
+
return statusList.includes(flowStatus + '');
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 将字节数加上合适的单位
|
|
35
|
+
* @param numBytes 字节数
|
|
36
|
+
* @returns
|
|
37
|
+
*/
|
|
38
|
+
export function formatUnit(numBytes) {
|
|
39
|
+
var _numBytes = Number(numBytes);
|
|
40
|
+
if (isNaN(_numBytes)) {
|
|
41
|
+
return numBytes;
|
|
42
|
+
}
|
|
43
|
+
var units = ['B', 'KB', 'MB', 'GB', 'TB'];
|
|
44
|
+
var unitIndex = 0;
|
|
45
|
+
while (_numBytes >= 1024 && unitIndex < units.length - 1) {
|
|
46
|
+
_numBytes /= 1024;
|
|
47
|
+
unitIndex++;
|
|
48
|
+
}
|
|
49
|
+
return _numBytes.toFixed(2) + units[unitIndex];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* 获取文件名中的后缀 返回文件名 + 后缀
|
|
53
|
+
* @param fileName 文件名
|
|
54
|
+
* @returns
|
|
55
|
+
*/
|
|
56
|
+
export function getFileExtension(fileName) {
|
|
57
|
+
if (!fileName) {
|
|
58
|
+
return ['', ''];
|
|
59
|
+
}
|
|
60
|
+
var lastPointIndex = fileName.lastIndexOf('.'); // 从最后取点
|
|
61
|
+
if (lastPointIndex === -1) {
|
|
62
|
+
return [fileName, ''];
|
|
63
|
+
}
|
|
64
|
+
var filePreName = fileName.substring(0, lastPointIndex); // 前面的名字
|
|
65
|
+
var fileExtension = fileName.substring(lastPointIndex + 1).toLowerCase(); // 后面的文件后缀
|
|
66
|
+
return [filePreName, fileExtension];
|
|
67
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import localforage from 'localforage';
|
|
2
|
+
interface IOptions {
|
|
3
|
+
tableKey: string;
|
|
4
|
+
}
|
|
5
|
+
export default class MyStorage {
|
|
6
|
+
/**
|
|
7
|
+
* 存储实例
|
|
8
|
+
*/
|
|
9
|
+
storageInstance?: typeof localforage;
|
|
10
|
+
constructor(option: IOptions);
|
|
11
|
+
/**
|
|
12
|
+
* 设置存储值
|
|
13
|
+
*/
|
|
14
|
+
setItem(key: string, value: any): Promise<any>;
|
|
15
|
+
/**
|
|
16
|
+
* 获取存储值
|
|
17
|
+
*/
|
|
18
|
+
getItem(key: string): Promise<unknown>;
|
|
19
|
+
/**
|
|
20
|
+
* 获取表中的所有数据
|
|
21
|
+
*/
|
|
22
|
+
getAllItems(): Promise<{}>;
|
|
23
|
+
/**
|
|
24
|
+
* 删除表中的所有数据
|
|
25
|
+
*/
|
|
26
|
+
clear(): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* 删除表中的指定数据
|
|
29
|
+
*/
|
|
30
|
+
removeItem(key: string): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* 获取所有的keys
|
|
33
|
+
*/
|
|
34
|
+
keys(): Promise<string[]>;
|
|
35
|
+
}
|
|
36
|
+
export {};
|