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
|
@@ -50,6 +50,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
50
50
|
to[j] = from[i];
|
|
51
51
|
return to;
|
|
52
52
|
};
|
|
53
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
53
54
|
/**
|
|
54
55
|
* @author 陈亚雄
|
|
55
56
|
* @description
|
|
@@ -94,7 +95,7 @@ function downloadFontTTF(_a) {
|
|
|
94
95
|
fontTTF = res === null || res === void 0 ? void 0 : res.default;
|
|
95
96
|
}
|
|
96
97
|
else {
|
|
97
|
-
throw Error('字体包下载失败');
|
|
98
|
+
throw Error(i18next.t('字体包下载失败'));
|
|
98
99
|
}
|
|
99
100
|
});
|
|
100
101
|
// return request({
|
|
@@ -109,7 +110,7 @@ function downloadFontTTF(_a) {
|
|
|
109
110
|
// });
|
|
110
111
|
}
|
|
111
112
|
var PrintContainer = function (_a) {
|
|
112
|
-
var children = _a.children, waterText = _a.waterText, onFonsizeChange = _a.onFonsizeChange, hiddenClassName = _a.hiddenClassName, _b = _a.isAddExportPage, isAddExportPage = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, _d = _a.pdfName, pdfName = _d === void 0 ? 'pdf文件' : _d, request = _a.request, sealIdList = _a.sealIdList, _e = _a.showHandSeal, showHandSeal = _e === void 0 ? true : _e, _f = _a.showAutoSeal, showAutoSeal = _f === void 0 ? true : _f, _g = _a.needWatermark, needWatermark = _g === void 0 ? 0 : _g, fileId = _a.fileId, deptId = _a.deptId, flowId = _a.flowId, imgWaterBg = _a.imgWaterBg, onPrintCallback = _a.onPrintCallback, showPrintMessage = _a.showPrintMessage, onPrintBeforeCallback = _a.onPrintBeforeCallback, _h = _a.showPrintBtn, showPrintBtn = _h === void 0 ? true : _h, _j = _a.showPluginPrintBtn, showPluginPrintBtn = _j === void 0 ? true : _j, isUseXy = _a.isUseXy, localKey = _a.localKey, _k = _a.showExportBtn, showExportBtn = _k === void 0 ? true : _k, showSetFontBtn = _a.showSetFontBtn, isSetPosition = _a.isSetPosition, // 默认不需要偏移
|
|
113
|
+
var children = _a.children, waterText = _a.waterText, onFonsizeChange = _a.onFonsizeChange, hiddenClassName = _a.hiddenClassName, _b = _a.isAddExportPage, isAddExportPage = _b === void 0 ? false : _b, _c = _a.loading, loading = _c === void 0 ? false : _c, _d = _a.pdfName, pdfName = _d === void 0 ? i18next.t('pdf文件') : _d, request = _a.request, sealIdList = _a.sealIdList, _e = _a.showHandSeal, showHandSeal = _e === void 0 ? true : _e, _f = _a.showAutoSeal, showAutoSeal = _f === void 0 ? true : _f, _g = _a.needWatermark, needWatermark = _g === void 0 ? 0 : _g, fileId = _a.fileId, deptId = _a.deptId, flowId = _a.flowId, imgWaterBg = _a.imgWaterBg, onPrintCallback = _a.onPrintCallback, showPrintMessage = _a.showPrintMessage, onPrintBeforeCallback = _a.onPrintBeforeCallback, _h = _a.showPrintBtn, showPrintBtn = _h === void 0 ? true : _h, _j = _a.showPluginPrintBtn, showPluginPrintBtn = _j === void 0 ? true : _j, isUseXy = _a.isUseXy, localKey = _a.localKey, _k = _a.showExportBtn, showExportBtn = _k === void 0 ? true : _k, showSetFontBtn = _a.showSetFontBtn, isSetPosition = _a.isSetPosition, // 默认不需要偏移
|
|
113
114
|
showAddSeal = _a.showAddSeal, apiUrl = _a.apiUrl, defaultAddWater = _a.defaultAddWater, fileBaseUrl = _a.fileBaseUrl, ecPrintFn = _a.ecPrintFn, clickCreatePdfHandlePre = _a.clickCreatePdfHandlePre, clickCreatePdfHandleNext = _a.clickCreatePdfHandleNext, handleRef = _a.handleRef;
|
|
114
115
|
var _l = useState(false), showWater = _l[0], setShowWater = _l[1];
|
|
115
116
|
var _m = useState(false), showSeal = _m[0], setShowSeal = _m[1];
|
|
@@ -185,15 +186,15 @@ var PrintContainer = function (_a) {
|
|
|
185
186
|
.map(function (item) { return (__assign({}, item)); }));
|
|
186
187
|
return;
|
|
187
188
|
}
|
|
188
|
-
message.info('当前部门、流程下未找到对应的印章!');
|
|
189
|
+
message.info(i18next.t('当前部门、流程下未找到对应的印章!'));
|
|
189
190
|
}
|
|
190
191
|
else {
|
|
191
|
-
message.error(((_c = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.msg) || '获取印章失败!');
|
|
192
|
+
message.error(((_c = (_b = res === null || res === void 0 ? void 0 : res.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.msg) || i18next.t('获取印章失败!'));
|
|
192
193
|
}
|
|
193
194
|
})
|
|
194
195
|
.catch(function (err) {
|
|
195
196
|
var _a, _b;
|
|
196
|
-
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '获取印章失败!');
|
|
197
|
+
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('获取印章失败!'));
|
|
197
198
|
});
|
|
198
199
|
}
|
|
199
200
|
}, [deptId, flowId, request]);
|
|
@@ -290,7 +291,7 @@ var PrintContainer = function (_a) {
|
|
|
290
291
|
function addSealHandle(loading) {
|
|
291
292
|
if (!showSeal) {
|
|
292
293
|
if (!Array.isArray(sealFileIdList) || sealFileIdList.length === 0) {
|
|
293
|
-
message.info(
|
|
294
|
+
message.info(i18next.t('当前部门、流程下未配置印章图片,无法再页面上添加印章,请联系管理员配置!', {}));
|
|
294
295
|
return;
|
|
295
296
|
}
|
|
296
297
|
if (apiUrl) {
|
|
@@ -394,9 +395,9 @@ var PrintContainer = function (_a) {
|
|
|
394
395
|
if (showPrintMessage) {
|
|
395
396
|
isOkSure_1 = false;
|
|
396
397
|
Modal.confirm({
|
|
397
|
-
title: '打印提示',
|
|
398
|
-
content: '点击确认按钮后,将作为一次成功的打印,并记录到系统!你确认要打印吗?',
|
|
399
|
-
okText: '确认',
|
|
398
|
+
title: i18next.t('打印提示'),
|
|
399
|
+
content: i18next.t('点击确认按钮后,将作为一次成功的打印,并记录到系统!你确认要打印吗?'),
|
|
400
|
+
okText: i18next.t('确认'),
|
|
400
401
|
onOk: function () {
|
|
401
402
|
if (onPrintCallback) {
|
|
402
403
|
var result_1 = onPrintCallback();
|
|
@@ -450,12 +451,12 @@ var PrintContainer = function (_a) {
|
|
|
450
451
|
switch (_a.label) {
|
|
451
452
|
case 0:
|
|
452
453
|
LODOP = createTask({
|
|
453
|
-
taskName: '测试',
|
|
454
|
+
taskName: i18next.t('测试'),
|
|
454
455
|
width: '1',
|
|
455
456
|
height: '1',
|
|
456
457
|
});
|
|
457
458
|
if (!LODOP) {
|
|
458
|
-
message.info('请先按提示安装或启动打印插件!');
|
|
459
|
+
message.info(i18next.t('请先按提示安装或启动打印插件!'));
|
|
459
460
|
return [2 /*return*/];
|
|
460
461
|
}
|
|
461
462
|
result = true;
|
|
@@ -478,9 +479,9 @@ var PrintContainer = function (_a) {
|
|
|
478
479
|
if (showPrintMessage) {
|
|
479
480
|
isOkSure_2 = false;
|
|
480
481
|
Modal.confirm({
|
|
481
|
-
title: '打印提示',
|
|
482
|
-
content: '点击确认按钮后,将作为一次成功的打印,并记录到系统!你确认要打印吗?',
|
|
483
|
-
okText: '确认',
|
|
482
|
+
title: i18next.t('打印提示'),
|
|
483
|
+
content: i18next.t('点击确认按钮后,将作为一次成功的打印,并记录到系统!你确认要打印吗?'),
|
|
484
|
+
okText: i18next.t('确认'),
|
|
484
485
|
onOk: function () {
|
|
485
486
|
if (onPrintCallback) {
|
|
486
487
|
var result_2 = onPrintCallback();
|
|
@@ -538,7 +539,7 @@ var PrintContainer = function (_a) {
|
|
|
538
539
|
// lodop插件打印
|
|
539
540
|
function ecPrintHandle() {
|
|
540
541
|
var LODOP = createTask({
|
|
541
|
-
taskName: '测试',
|
|
542
|
+
taskName: i18next.t('测试'),
|
|
542
543
|
width: '1',
|
|
543
544
|
height: '1',
|
|
544
545
|
});
|
|
@@ -649,7 +650,7 @@ var PrintContainer = function (_a) {
|
|
|
649
650
|
// 确认盖章位置
|
|
650
651
|
var onSurePositionHandle = function (options) {
|
|
651
652
|
if (!Array.isArray(_sealIdList) || _sealIdList.length === 0) {
|
|
652
|
-
message.info(
|
|
653
|
+
message.info(i18next.t('当前部门、流程下未配置印章,请联系管理员配置!', {}));
|
|
653
654
|
return;
|
|
654
655
|
}
|
|
655
656
|
setSpinning(true);
|
|
@@ -664,7 +665,7 @@ var PrintContainer = function (_a) {
|
|
|
664
665
|
})
|
|
665
666
|
.catch(function (err) {
|
|
666
667
|
// 出错了,重新下载
|
|
667
|
-
console.log('出错了,重新下载字体文件');
|
|
668
|
+
console.log(i18next.t('出错了,重新下载字体文件'));
|
|
668
669
|
if (loadFontTTFNum <= loadFontTTFMaxNum) {
|
|
669
670
|
loadFontTTFNum++;
|
|
670
671
|
setTimeout(function () {
|
|
@@ -676,7 +677,7 @@ var PrintContainer = function (_a) {
|
|
|
676
677
|
}, 2000);
|
|
677
678
|
}
|
|
678
679
|
else {
|
|
679
|
-
message.error('生成pdf所需要的字体文件下载失败!');
|
|
680
|
+
message.error(i18next.t('生成pdf所需要的字体文件下载失败!'));
|
|
680
681
|
loadFontTTFNum = 0;
|
|
681
682
|
setSpinning(false);
|
|
682
683
|
}
|
|
@@ -698,7 +699,7 @@ var PrintContainer = function (_a) {
|
|
|
698
699
|
var _a, _b;
|
|
699
700
|
var title = ((_b = (_a = allDom[index]) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
700
701
|
pdfName ||
|
|
701
|
-
|
|
702
|
+
i18next.t('单据{{slot0}}', { slot0: index + 1 });
|
|
702
703
|
return dataURLtoFile(base64, title + ".pdf");
|
|
703
704
|
})
|
|
704
705
|
: [];
|
|
@@ -737,17 +738,17 @@ var PrintContainer = function (_a) {
|
|
|
737
738
|
window.open(data === null || data === void 0 ? void 0 : data.preSignUrl);
|
|
738
739
|
}
|
|
739
740
|
else {
|
|
740
|
-
message.info(
|
|
741
|
+
message.info(i18next.t('未能返回盖章链接!', {}));
|
|
741
742
|
}
|
|
742
743
|
}
|
|
743
744
|
else {
|
|
744
|
-
message.info(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.msg) || '接口请求失败!');
|
|
745
|
+
message.info(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.msg) || i18next.t('接口请求失败!'));
|
|
745
746
|
}
|
|
746
747
|
})
|
|
747
748
|
.catch(function (err) {
|
|
748
749
|
var _a, _b;
|
|
749
750
|
setSpinning(false);
|
|
750
|
-
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '接口调用失败!');
|
|
751
|
+
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('接口调用失败!'));
|
|
751
752
|
});
|
|
752
753
|
},
|
|
753
754
|
options: options,
|
|
@@ -783,23 +784,23 @@ var PrintContainer = function (_a) {
|
|
|
783
784
|
window.open(data === null || data === void 0 ? void 0 : data.viewUrl);
|
|
784
785
|
}
|
|
785
786
|
else {
|
|
786
|
-
message.info(
|
|
787
|
+
message.info(i18next.t('未能返回盖章链接!', {}));
|
|
787
788
|
}
|
|
788
789
|
}
|
|
789
790
|
else {
|
|
790
|
-
message.info(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.msg) || '接口请求失败!');
|
|
791
|
+
message.info(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.msg) || i18next.t('接口请求失败!'));
|
|
791
792
|
}
|
|
792
793
|
})
|
|
793
794
|
.catch(function (err) {
|
|
794
795
|
var _a, _b;
|
|
795
796
|
setSpinning(false);
|
|
796
|
-
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '接口调用失败!');
|
|
797
|
+
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('接口调用失败!'));
|
|
797
798
|
});
|
|
798
799
|
};
|
|
799
800
|
// 自动盖章
|
|
800
801
|
var onAutoSealHandle = function (options) {
|
|
801
802
|
if (!Array.isArray(autoSealList) || autoSealList.length === 0) {
|
|
802
|
-
message.info(
|
|
803
|
+
message.info(i18next.t('当前部门、流程下未配置自动盖章相关印章,请联系管理员配置!', {}));
|
|
803
804
|
return;
|
|
804
805
|
}
|
|
805
806
|
setSpinning(true);
|
|
@@ -813,7 +814,7 @@ var PrintContainer = function (_a) {
|
|
|
813
814
|
})
|
|
814
815
|
.catch(function (err) {
|
|
815
816
|
// 出错了,重新下载
|
|
816
|
-
console.log('出错了,重新下载字体文件');
|
|
817
|
+
console.log(i18next.t('出错了,重新下载字体文件'));
|
|
817
818
|
if (loadFontTTFNum <= loadFontTTFMaxNum) {
|
|
818
819
|
loadFontTTFNum++;
|
|
819
820
|
setTimeout(function () {
|
|
@@ -825,7 +826,7 @@ var PrintContainer = function (_a) {
|
|
|
825
826
|
}, 2000);
|
|
826
827
|
}
|
|
827
828
|
else {
|
|
828
|
-
message.error('生成pdf所需要的字体文件下载失败!');
|
|
829
|
+
message.error(i18next.t('生成pdf所需要的字体文件下载失败!'));
|
|
829
830
|
loadFontTTFNum = 0;
|
|
830
831
|
setSpinning(false);
|
|
831
832
|
}
|
|
@@ -847,7 +848,7 @@ var PrintContainer = function (_a) {
|
|
|
847
848
|
var _a, _b;
|
|
848
849
|
var title = ((_b = (_a = allDom[index]) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
849
850
|
pdfName ||
|
|
850
|
-
|
|
851
|
+
i18next.t('单据{{slot0}}', { slot0: index + 1 });
|
|
851
852
|
return dataURLtoFile(base64, title + ".pdf");
|
|
852
853
|
})
|
|
853
854
|
: [];
|
|
@@ -891,17 +892,17 @@ var PrintContainer = function (_a) {
|
|
|
891
892
|
window.open(data === null || data === void 0 ? void 0 : data.viewUrl);
|
|
892
893
|
}
|
|
893
894
|
else {
|
|
894
|
-
message.info(
|
|
895
|
+
message.info(i18next.t('未能返回盖章链接!', {}));
|
|
895
896
|
}
|
|
896
897
|
}
|
|
897
898
|
else {
|
|
898
|
-
message.info(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.msg) || '接口请求失败!');
|
|
899
|
+
message.info(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.msg) || i18next.t('接口请求失败!'));
|
|
899
900
|
}
|
|
900
901
|
})
|
|
901
902
|
.catch(function (err) {
|
|
902
903
|
var _a, _b;
|
|
903
904
|
setSpinning(false);
|
|
904
|
-
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '接口调用失败!');
|
|
905
|
+
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('接口调用失败!'));
|
|
905
906
|
});
|
|
906
907
|
},
|
|
907
908
|
options: options,
|
|
@@ -940,7 +941,7 @@ var PrintContainer = function (_a) {
|
|
|
940
941
|
};
|
|
941
942
|
var onExportSealFileHandle = function (options, isZip) {
|
|
942
943
|
if (!Array.isArray(autoSealList) || autoSealList.length === 0) {
|
|
943
|
-
message.info(
|
|
944
|
+
message.info(i18next.t('当前部门、流程下未配置自动盖章相关印章,请联系管理员配置!', {}));
|
|
944
945
|
return;
|
|
945
946
|
}
|
|
946
947
|
setSpinning(true);
|
|
@@ -954,7 +955,7 @@ var PrintContainer = function (_a) {
|
|
|
954
955
|
})
|
|
955
956
|
.catch(function (err) {
|
|
956
957
|
// 出错了,重新下载
|
|
957
|
-
console.log('出错了,重新下载字体文件');
|
|
958
|
+
console.log(i18next.t('出错了,重新下载字体文件'));
|
|
958
959
|
if (loadFontTTFNum <= loadFontTTFMaxNum) {
|
|
959
960
|
loadFontTTFNum++;
|
|
960
961
|
setTimeout(function () {
|
|
@@ -966,7 +967,7 @@ var PrintContainer = function (_a) {
|
|
|
966
967
|
}, 2000);
|
|
967
968
|
}
|
|
968
969
|
else {
|
|
969
|
-
message.error('生成pdf所需要的字体文件下载失败!');
|
|
970
|
+
message.error(i18next.t('生成pdf所需要的字体文件下载失败!'));
|
|
970
971
|
loadFontTTFNum = 0;
|
|
971
972
|
setSpinning(false);
|
|
972
973
|
}
|
|
@@ -980,7 +981,7 @@ var PrintContainer = function (_a) {
|
|
|
980
981
|
};
|
|
981
982
|
var onExportSealFileHandlePhoto = function (options, isZip) {
|
|
982
983
|
if (!Array.isArray(autoSealList) || autoSealList.length === 0) {
|
|
983
|
-
message.info(
|
|
984
|
+
message.info(i18next.t('当前部门、流程下未配置自动盖章相关印章,请联系管理员配置!', {}));
|
|
984
985
|
return;
|
|
985
986
|
}
|
|
986
987
|
setSpinning(true);
|
|
@@ -1023,10 +1024,10 @@ var PrintContainer = function (_a) {
|
|
|
1023
1024
|
if (downloadFailIndexArr.length > 0) {
|
|
1024
1025
|
// 提示下载失败的附件,然后弹框提示用户下载
|
|
1025
1026
|
Modal.confirm({
|
|
1026
|
-
title: '以下文件盖章下载失败',
|
|
1027
|
-
content:
|
|
1028
|
-
okText: '确认',
|
|
1029
|
-
cancelText: '取消',
|
|
1027
|
+
title: i18next.t('以下文件盖章下载失败'),
|
|
1028
|
+
content: i18next.t('第 {{slot0}} 单据盖章下载失败,点击确定重新尝试!', { slot0: downloadFailIndexArr.join('、') }),
|
|
1029
|
+
okText: i18next.t('确认'),
|
|
1030
|
+
cancelText: i18next.t('取消'),
|
|
1030
1031
|
onOk: function () {
|
|
1031
1032
|
setSpinning(true);
|
|
1032
1033
|
var newFiles = downloadFailIndexArr.map(function (i) { return files[i]; });
|
|
@@ -1065,7 +1066,7 @@ var PrintContainer = function (_a) {
|
|
|
1065
1066
|
var _a, _b;
|
|
1066
1067
|
var title = ((_b = (_a = allDom[index]) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
1067
1068
|
pdfName ||
|
|
1068
|
-
|
|
1069
|
+
i18next.t('单据{{slot0}}', { slot0: index + 1 });
|
|
1069
1070
|
return dataURLtoFile(base64, title + ".pdf");
|
|
1070
1071
|
})
|
|
1071
1072
|
: [];
|
|
@@ -1105,7 +1106,7 @@ var PrintContainer = function (_a) {
|
|
|
1105
1106
|
var _a, _b;
|
|
1106
1107
|
var title = ((_b = (_a = allDom[index]) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.title) ||
|
|
1107
1108
|
pdfName ||
|
|
1108
|
-
|
|
1109
|
+
i18next.t('单据{{slot0}}', { slot0: index + 1 });
|
|
1109
1110
|
return dataURLtoFile(base64, title + ".pdf");
|
|
1110
1111
|
})
|
|
1111
1112
|
: [];
|
|
@@ -1138,13 +1139,13 @@ var PrintContainer = function (_a) {
|
|
|
1138
1139
|
return (React.createElement(Spin, { spinning: spinning },
|
|
1139
1140
|
React.createElement("div", { className: "print-container--header" },
|
|
1140
1141
|
React.createElement("div", { className: "print-container--header__content" },
|
|
1141
|
-
showSetFontBtn && (React.createElement(Button, { type: "primary", onClick: function () { return onFontsizeHandle('add'); } },
|
|
1142
|
-
showSetFontBtn && (React.createElement(Button, { type: "primary", onClick: function () { return onFontsizeHandle('reduce'); } },
|
|
1143
|
-
React.createElement(Button, { type: "primary", onClick: function () { return onAdjustPadding(); } },
|
|
1144
|
-
React.createElement(Button, { type: "primary", onClick: onWaterHandle }, !showWater ? '添加水印' : '移除水印'),
|
|
1145
|
-
showAddSeal && (React.createElement(Button, { type: "primary", onClick: onAddSealHandle }, !showSeal ? '添加印章' : '移除印章')),
|
|
1146
|
-
showPrintBtn && (React.createElement(Button, { type: "primary", onClick: onPrintHandle },
|
|
1147
|
-
showPrintBtn && showPluginPrintBtn && (React.createElement(Button, { type: "primary", onClick: onECPrintHandle },
|
|
1142
|
+
showSetFontBtn && (React.createElement(Button, { type: "primary", onClick: function () { return onFontsizeHandle('add'); } }, i18next.t('放大文字'))),
|
|
1143
|
+
showSetFontBtn && (React.createElement(Button, { type: "primary", onClick: function () { return onFontsizeHandle('reduce'); } }, i18next.t('缩小文字'))),
|
|
1144
|
+
React.createElement(Button, { type: "primary", onClick: function () { return onAdjustPadding(); } }, i18next.t('调整边距')),
|
|
1145
|
+
React.createElement(Button, { type: "primary", onClick: onWaterHandle }, !showWater ? i18next.t('添加水印') : i18next.t('移除水印')),
|
|
1146
|
+
showAddSeal && (React.createElement(Button, { type: "primary", onClick: onAddSealHandle }, !showSeal ? i18next.t('添加印章') : i18next.t('移除印章'))),
|
|
1147
|
+
showPrintBtn && (React.createElement(Button, { type: "primary", onClick: onPrintHandle }, i18next.t('打印'))),
|
|
1148
|
+
showPrintBtn && showPluginPrintBtn && (React.createElement(Button, { type: "primary", onClick: onECPrintHandle }, i18next.t('插件打印'))),
|
|
1148
1149
|
showExportBtn && (React.createElement(Dropdown, { overlay: function () { return (React.createElement(Menu, { onClick: function (e) {
|
|
1149
1150
|
if (e.key === 'l') {
|
|
1150
1151
|
onPdfHandle({
|
|
@@ -1164,9 +1165,9 @@ var PrintContainer = function (_a) {
|
|
|
1164
1165
|
});
|
|
1165
1166
|
}
|
|
1166
1167
|
} },
|
|
1167
|
-
React.createElement(Menu.Item, { key: "l" },
|
|
1168
|
-
React.createElement(Menu.Item, { key: "p" },
|
|
1169
|
-
React.createElement(Button, { type: "primary" },
|
|
1168
|
+
React.createElement(Menu.Item, { key: "l" }, i18next.t('横向')),
|
|
1169
|
+
React.createElement(Menu.Item, { key: "p" }, i18next.t('纵向')))); }, placement: "bottomLeft" },
|
|
1170
|
+
React.createElement(Button, { type: "primary" }, i18next.t('导出PDF')))),
|
|
1170
1171
|
showAutoSeal && (React.createElement(Dropdown, { overlay: function () { return (React.createElement(Menu, { onClick: function (e) {
|
|
1171
1172
|
if (e.key === 'zip') {
|
|
1172
1173
|
onExportSealFileHandle({
|
|
@@ -1201,15 +1202,15 @@ var PrintContainer = function (_a) {
|
|
|
1201
1202
|
}, false);
|
|
1202
1203
|
}
|
|
1203
1204
|
} },
|
|
1204
|
-
React.createElement(Menu.Item, { key: "zip-photo" },
|
|
1205
|
-
React.createElement(Menu.Item, { key: "nozip-photo" },
|
|
1206
|
-
React.createElement(Menu.Item, { key: "zip" },
|
|
1207
|
-
React.createElement(Menu.Item, { key: "nozip" },
|
|
1208
|
-
React.createElement(Button, { type: "primary" },
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1205
|
+
React.createElement(Menu.Item, { key: "zip-photo" }, i18next.t('图片压缩版')),
|
|
1206
|
+
React.createElement(Menu.Item, { key: "nozip-photo" }, i18next.t('图片不压缩版')),
|
|
1207
|
+
React.createElement(Menu.Item, { key: "zip" }, i18next.t('压缩')),
|
|
1208
|
+
React.createElement(Menu.Item, { key: "nozip" }, i18next.t('不压缩')))); }, placement: "bottomLeft" },
|
|
1209
|
+
React.createElement(Button, { type: "primary" }, i18next.t('导出盖章件'))))
|
|
1210
|
+
// <Button type="primary" onClick={onAutoSealHandle}>
|
|
1211
|
+
// 自动盖章
|
|
1212
|
+
// </Button>
|
|
1213
|
+
,
|
|
1213
1214
|
showHandSeal && (React.createElement(React.Fragment, null,
|
|
1214
1215
|
React.createElement(Dropdown, { overlay: function () { return (React.createElement(Menu, { onClick: function (e) {
|
|
1215
1216
|
if (e.key === 'l') {
|
|
@@ -1229,10 +1230,10 @@ var PrintContainer = function (_a) {
|
|
|
1229
1230
|
});
|
|
1230
1231
|
}
|
|
1231
1232
|
} },
|
|
1232
|
-
React.createElement(Menu.Item, { key: "l" },
|
|
1233
|
-
React.createElement(Menu.Item, { key: "p" },
|
|
1234
|
-
React.createElement(Button, { type: "primary" },
|
|
1235
|
-
currentContractId && (React.createElement(Button, { type: "primary", onClick: onSealHandle },
|
|
1233
|
+
React.createElement(Menu.Item, { key: "l" }, i18next.t('横向')),
|
|
1234
|
+
React.createElement(Menu.Item, { key: "p" }, i18next.t('纵向')))); }, placement: "bottomLeft" },
|
|
1235
|
+
React.createElement(Button, { type: "primary" }, i18next.t('确认盖章位置'))),
|
|
1236
|
+
currentContractId && (React.createElement(Button, { type: "primary", onClick: onSealHandle }, i18next.t('盖章'))))),
|
|
1236
1237
|
showAutoSeal && (React.createElement(Dropdown, { overlay: function () { return (React.createElement(Menu, { onClick: function (e) {
|
|
1237
1238
|
if (e.key === 'l') {
|
|
1238
1239
|
onAutoSealHandle({
|
|
@@ -1251,14 +1252,14 @@ var PrintContainer = function (_a) {
|
|
|
1251
1252
|
});
|
|
1252
1253
|
}
|
|
1253
1254
|
} },
|
|
1254
|
-
React.createElement(Menu.Item, { key: "l" },
|
|
1255
|
-
React.createElement(Menu.Item, { key: "p" },
|
|
1256
|
-
React.createElement(Button, { type: "primary" },
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
React.createElement(Button, { type: "primary", onClick: onCloseHandle },
|
|
1255
|
+
React.createElement(Menu.Item, { key: "l" }, i18next.t('横向')),
|
|
1256
|
+
React.createElement(Menu.Item, { key: "p" }, i18next.t('纵向')))); }, placement: "bottomLeft" },
|
|
1257
|
+
React.createElement(Button, { type: "primary" }, i18next.t('自动盖章'))))
|
|
1258
|
+
// <Button type="primary" onClick={onAutoSealHandle}>
|
|
1259
|
+
// 自动盖章
|
|
1260
|
+
// </Button>
|
|
1261
|
+
,
|
|
1262
|
+
React.createElement(Button, { type: "primary", onClick: onCloseHandle }, i18next.t('关闭')))),
|
|
1262
1263
|
React.createElement("div", { className: "print-container--content" },
|
|
1263
1264
|
React.createElement("div", { ref: containerRef }, children)),
|
|
1264
1265
|
React.createElement(PrintModal, { loading: loading, visible: visible, onCancel: function () { return setVisible(false); }, value: value, setValue: setValue, onChange: function (value) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @author 陈亚雄
|
|
3
4
|
* @description 打印组件相关接口调用
|
|
@@ -30,7 +31,7 @@ export function autoSealThenDownloadFilesHandle(request, formData, options) {
|
|
|
30
31
|
type: 'application/vnd.ms-excel',
|
|
31
32
|
});
|
|
32
33
|
if (blob.size < 1) {
|
|
33
|
-
message.warning('下载失败,下载的内容为空!');
|
|
34
|
+
message.warning(i18next.t('下载失败,下载的内容为空!'));
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
37
|
var aLink = document.createElement('a');
|
|
@@ -50,15 +51,15 @@ export function autoSealThenDownloadFilesHandle(request, formData, options) {
|
|
|
50
51
|
.text()
|
|
51
52
|
.then(function (data) {
|
|
52
53
|
var result = JSON.parse(data);
|
|
53
|
-
message.error((result === null || result === void 0 ? void 0 : result.msg) || '接口调用失败!');
|
|
54
|
+
message.error((result === null || result === void 0 ? void 0 : result.msg) || i18next.t('接口调用失败!'));
|
|
54
55
|
})
|
|
55
56
|
.catch(function () {
|
|
56
57
|
var _a, _b;
|
|
57
|
-
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '接口调用失败!');
|
|
58
|
+
message.error(((_b = (_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('接口调用失败!'));
|
|
58
59
|
});
|
|
59
60
|
}
|
|
60
61
|
catch (e) {
|
|
61
|
-
message.error(((_c = (_b = err === null || err === void 0 ? void 0 : err.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.msg) || '接口调用失败!');
|
|
62
|
+
message.error(((_c = (_b = err === null || err === void 0 ? void 0 : err.response) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.msg) || i18next.t('接口调用失败!'));
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
65
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ISearchLayout, IFormItem } from './interface';
|
|
3
|
+
export declare function getCurrentDynamicItems(showDynamic?: boolean, showDynamicKey?: string, items?: IFormItem[]): ISearchLayout[];
|
|
4
|
+
/**
|
|
5
|
+
* @description 将动态配置存在本地存储中
|
|
6
|
+
* @param dynamicStorageKey 保留的key值
|
|
7
|
+
* @param value 值
|
|
8
|
+
*/
|
|
9
|
+
export declare function setDynamicKey(dynamicStorageKey: string, value: any): void;
|
|
10
|
+
export declare function useDynamic(showDynamic?: boolean, showDynamicKey?: string, items?: IFormItem[]): {
|
|
11
|
+
initDynamicList: ISearchLayout[];
|
|
12
|
+
currentDynamicList: ISearchLayout[];
|
|
13
|
+
setCurrentDynamicList: import("react").Dispatch<import("react").SetStateAction<ISearchLayout[]>>;
|
|
14
|
+
currentItems: IFormItem[];
|
|
15
|
+
};
|
|
16
|
+
export declare function getItems(currentDynamicList: ISearchLayout[], items: IFormItem[]): IFormItem[];
|
|
17
|
+
export declare function useDrawer(initList: any, setCurrentDynamicList: any, showDynamicKey: any): {
|
|
18
|
+
visible: boolean;
|
|
19
|
+
setVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
20
|
+
onClose: () => void;
|
|
21
|
+
onReset: () => void;
|
|
22
|
+
onSure: (newList: ISearchLayout[]) => void;
|
|
23
|
+
};
|