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
|
@@ -61,6 +61,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
61
61
|
to[j] = from[i];
|
|
62
62
|
return to;
|
|
63
63
|
};
|
|
64
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
64
65
|
/**
|
|
65
66
|
* @author 陈亚雄
|
|
66
67
|
* @description 电子签章组件
|
|
@@ -271,12 +272,12 @@ var Sinatures = function (_a) {
|
|
|
271
272
|
setElectronicList(((_c = (_b = (_a = res.data.data) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.sealInfoList) || []);
|
|
272
273
|
}
|
|
273
274
|
else {
|
|
274
|
-
message.error(res.data.msg || '出错了');
|
|
275
|
+
message.error(res.data.msg || i18next.t('出错了'));
|
|
275
276
|
}
|
|
276
277
|
})
|
|
277
278
|
.catch(function (error) {
|
|
278
279
|
var _a, _b;
|
|
279
|
-
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
|
|
280
|
+
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
|
|
280
281
|
});
|
|
281
282
|
}, [deptId, flowId, request]);
|
|
282
283
|
/** 获取一级责任人名字 */
|
|
@@ -291,7 +292,7 @@ var Sinatures = function (_a) {
|
|
|
291
292
|
setYjzrr(((_b = res.data.data) === null || _b === void 0 ? void 0 : _b.userName) || '');
|
|
292
293
|
}
|
|
293
294
|
else {
|
|
294
|
-
message.error(((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.msg) || '出错了');
|
|
295
|
+
message.error(((_c = res === null || res === void 0 ? void 0 : res.data) === null || _c === void 0 ? void 0 : _c.msg) || i18next.t('出错了'));
|
|
295
296
|
}
|
|
296
297
|
})
|
|
297
298
|
.catch(function (error) {
|
|
@@ -313,12 +314,12 @@ var Sinatures = function (_a) {
|
|
|
313
314
|
}); }));
|
|
314
315
|
}
|
|
315
316
|
else {
|
|
316
|
-
message.error(res.data.msg || '出错了');
|
|
317
|
+
message.error(res.data.msg || i18next.t('出错了'));
|
|
317
318
|
}
|
|
318
319
|
})
|
|
319
320
|
.catch(function (error) {
|
|
320
321
|
var _a, _b;
|
|
321
|
-
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
|
|
322
|
+
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
|
|
322
323
|
});
|
|
323
324
|
}, [flowId, request]);
|
|
324
325
|
useEffect(function () {
|
|
@@ -352,7 +353,9 @@ var Sinatures = function (_a) {
|
|
|
352
353
|
records === null || records === void 0 ? void 0 : records.forEach(function (item, index) {
|
|
353
354
|
if (!!item.isElectronicSeal) {
|
|
354
355
|
if (!item.attachId && !isError) {
|
|
355
|
-
message.error(
|
|
356
|
+
message.error(i18next.t('第{{slot0}}行附件没有附件id,无法盖章!', {
|
|
357
|
+
slot0: index + 1,
|
|
358
|
+
}));
|
|
356
359
|
isError = true;
|
|
357
360
|
}
|
|
358
361
|
else {
|
|
@@ -364,7 +367,7 @@ var Sinatures = function (_a) {
|
|
|
364
367
|
return;
|
|
365
368
|
}
|
|
366
369
|
if (innerElectronicSeal.length === 0) {
|
|
367
|
-
message.info('请勾选电子印章!');
|
|
370
|
+
message.info(i18next.t('请勾选电子印章!'));
|
|
368
371
|
return;
|
|
369
372
|
}
|
|
370
373
|
setLoading(true);
|
|
@@ -432,13 +435,13 @@ var Sinatures = function (_a) {
|
|
|
432
435
|
}
|
|
433
436
|
}
|
|
434
437
|
else {
|
|
435
|
-
message.error(res.data.msg || '出错了');
|
|
438
|
+
message.error(res.data.msg || i18next.t('出错了'));
|
|
436
439
|
}
|
|
437
440
|
})
|
|
438
441
|
.catch(function (error) {
|
|
439
442
|
var _a, _b;
|
|
440
443
|
setLoading(false);
|
|
441
|
-
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
|
|
444
|
+
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
|
|
442
445
|
});
|
|
443
446
|
};
|
|
444
447
|
/** 查询未确认盖章位置的印章信息列表 */
|
|
@@ -472,7 +475,7 @@ var Sinatures = function (_a) {
|
|
|
472
475
|
.catch(function (error) {
|
|
473
476
|
var _a, _b;
|
|
474
477
|
resolve(false);
|
|
475
|
-
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
|
|
478
|
+
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
|
|
476
479
|
});
|
|
477
480
|
});
|
|
478
481
|
};
|
|
@@ -491,21 +494,21 @@ var Sinatures = function (_a) {
|
|
|
491
494
|
window.open(res.data.data.viewUrl);
|
|
492
495
|
}
|
|
493
496
|
else {
|
|
494
|
-
message.error(res.data.msg || '出错了');
|
|
497
|
+
message.error(res.data.msg || i18next.t('出错了'));
|
|
495
498
|
}
|
|
496
499
|
})
|
|
497
500
|
.catch(function (error) {
|
|
498
501
|
var _a, _b;
|
|
499
|
-
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
|
|
502
|
+
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || i18next.t('请求失败!'));
|
|
500
503
|
});
|
|
501
504
|
}
|
|
502
505
|
else {
|
|
503
|
-
message.error('缺少合同id');
|
|
506
|
+
message.error(i18next.t('缺少合同id'));
|
|
504
507
|
}
|
|
505
508
|
};
|
|
506
509
|
var columns = [
|
|
507
510
|
{
|
|
508
|
-
title: '序号',
|
|
511
|
+
title: i18next.t('序号'),
|
|
509
512
|
key: 'orderNum',
|
|
510
513
|
dataIndex: 'orderNum',
|
|
511
514
|
width: 62,
|
|
@@ -513,14 +516,14 @@ var Sinatures = function (_a) {
|
|
|
513
516
|
render: function (text, record, index) { return "" + (index + 1); },
|
|
514
517
|
},
|
|
515
518
|
{
|
|
516
|
-
title: '附件',
|
|
519
|
+
title: i18next.t('附件'),
|
|
517
520
|
key: 'attach',
|
|
518
521
|
dataIndex: 'attach',
|
|
519
522
|
children: __spreadArray(__spreadArray([], (isOnlyQj
|
|
520
523
|
? []
|
|
521
524
|
: [
|
|
522
525
|
{
|
|
523
|
-
title: '类型',
|
|
526
|
+
title: i18next.t('类型'),
|
|
524
527
|
key: 'attachTypeName',
|
|
525
528
|
dataIndex: 'attachTypeName',
|
|
526
529
|
width: 100,
|
|
@@ -529,11 +532,11 @@ var Sinatures = function (_a) {
|
|
|
529
532
|
{
|
|
530
533
|
title: function () {
|
|
531
534
|
return (React.createElement("div", { className: "seal-file-upload" },
|
|
532
|
-
React.createElement("span", null,
|
|
535
|
+
React.createElement("span", null, i18next.t('名称')),
|
|
533
536
|
React.createElement("span", null, isUpload && (React.createElement(Upload, { apiBaseUrl: ZT_API_BASEURL, method: "post", showTable: false, showTip: false, headers: {
|
|
534
537
|
'Zmdms-Auth': authToken,
|
|
535
538
|
}, data: uploadData, authToken: authToken, callback: uploadCallbackFn, originFileList: originFileList, style: { margin: 0 } },
|
|
536
|
-
React.createElement(Button, { type: "link" },
|
|
539
|
+
React.createElement(Button, { type: "link" }, i18next.t('添加附件'))))),
|
|
537
540
|
isUpload && (React.createElement(Button, { type: "link", onClick: function () {
|
|
538
541
|
setIsOnlyQj(true);
|
|
539
542
|
var onlyQjRecords = [
|
|
@@ -545,7 +548,7 @@ var Sinatures = function (_a) {
|
|
|
545
548
|
onSigValuesChange(sigValuesChange('fileList', onlyQjRecords));
|
|
546
549
|
}
|
|
547
550
|
setRecords(onlyQjRecords);
|
|
548
|
-
} },
|
|
551
|
+
} }, i18next.t('仅需要群杰印章')))));
|
|
549
552
|
},
|
|
550
553
|
key: 'attachId',
|
|
551
554
|
dataIndex: 'attachId',
|
|
@@ -556,7 +559,9 @@ var Sinatures = function (_a) {
|
|
|
556
559
|
var deleteFile = function () {
|
|
557
560
|
var fileName = record === null || record === void 0 ? void 0 : record.attachName;
|
|
558
561
|
if (!fileName) {
|
|
559
|
-
console.error('没有找到需要删除的文件名!',
|
|
562
|
+
console.error(i18next.t('没有找到需要删除的文件名!'), i18next.t('serverFileName 为 {{fileName}}', {
|
|
563
|
+
fileName: fileName,
|
|
564
|
+
}));
|
|
560
565
|
return;
|
|
561
566
|
}
|
|
562
567
|
setTbLoading(true);
|
|
@@ -580,7 +585,7 @@ var Sinatures = function (_a) {
|
|
|
580
585
|
return getNewRecord_1(preRecords);
|
|
581
586
|
});
|
|
582
587
|
setContractId(null);
|
|
583
|
-
message.success('文件删除成功!');
|
|
588
|
+
message.success(i18next.t('文件删除成功!'));
|
|
584
589
|
}
|
|
585
590
|
else {
|
|
586
591
|
setTbLoading(false);
|
|
@@ -601,37 +606,37 @@ var Sinatures = function (_a) {
|
|
|
601
606
|
React.createElement(AttachOperation, { ZT_API_BASEURL: ZT_API_BASEURL, ZT_FILE_BASEURL: ZT_FILE_BASEURL, token: authToken, attachId: record === null || record === void 0 ? void 0 : record.attachId, attachName: record === null || record === void 0 ? void 0 : record.attachName, attachSize: record === null || record === void 0 ? void 0 : record.attachSize, showDeleteBtn: showDeleteBtn, onDeleteFile: deleteFile })));
|
|
602
607
|
}
|
|
603
608
|
else {
|
|
604
|
-
return React.createElement(React.Fragment, null,
|
|
609
|
+
return React.createElement(React.Fragment, null, i18next.t('群杰'));
|
|
605
610
|
}
|
|
606
611
|
},
|
|
607
612
|
},
|
|
608
613
|
]),
|
|
609
614
|
},
|
|
610
615
|
{
|
|
611
|
-
title: '合同',
|
|
616
|
+
title: i18next.t('合同'),
|
|
612
617
|
key: 'needDg',
|
|
613
618
|
dataIndex: 'needDg',
|
|
614
619
|
children: [
|
|
615
620
|
{
|
|
616
|
-
title: '合同比对模板',
|
|
621
|
+
title: i18next.t('合同比对模板'),
|
|
617
622
|
key: 'templateAttachId',
|
|
618
623
|
dataIndex: 'templateAttachId',
|
|
619
624
|
width: 150,
|
|
620
625
|
render: function (text, record, index) {
|
|
621
|
-
return record.attachTypeName === '合同本身' ? (React.createElement(TemplateAttach, { record: record, index: index, openCustomerModalHandle: openCustomerModalHandle, isEdit: isEdit })) : ('');
|
|
626
|
+
return record.attachTypeName === i18next.t('合同本身') ? (React.createElement(TemplateAttach, { record: record, index: index, openCustomerModalHandle: openCustomerModalHandle, isEdit: isEdit })) : ('');
|
|
622
627
|
},
|
|
623
628
|
},
|
|
624
629
|
{
|
|
625
|
-
title: '合同比对结果',
|
|
630
|
+
title: i18next.t('合同比对结果'),
|
|
626
631
|
key: 'compareAttachId',
|
|
627
632
|
dataIndex: 'compareAttachId',
|
|
628
633
|
width: 150,
|
|
629
634
|
render: function (text, record, index) {
|
|
630
|
-
return record.attachTypeName === '合同本身' ? (React.createElement(CompareResult, { record: record, index: index, request: request })) : ('');
|
|
635
|
+
return record.attachTypeName === i18next.t('合同本身') ? (React.createElement(CompareResult, { record: record, index: index, request: request })) : ('');
|
|
631
636
|
},
|
|
632
637
|
},
|
|
633
638
|
{
|
|
634
|
-
title: '保存为模板',
|
|
639
|
+
title: i18next.t('保存为模板'),
|
|
635
640
|
key: 'templateAttachId',
|
|
636
641
|
dataIndex: 'templateAttachId',
|
|
637
642
|
width: 110,
|
|
@@ -644,7 +649,7 @@ var Sinatures = function (_a) {
|
|
|
644
649
|
],
|
|
645
650
|
},
|
|
646
651
|
{
|
|
647
|
-
title: isEdit ? '添加水印' : '水印',
|
|
652
|
+
title: isEdit ? i18next.t('添加水印') : i18next.t('水印'),
|
|
648
653
|
key: 'isWatermark',
|
|
649
654
|
dataIndex: 'isWatermark',
|
|
650
655
|
width: 60,
|
|
@@ -655,13 +660,13 @@ var Sinatures = function (_a) {
|
|
|
655
660
|
},
|
|
656
661
|
},
|
|
657
662
|
{
|
|
658
|
-
title: '电子印章',
|
|
663
|
+
title: i18next.t('电子印章'),
|
|
659
664
|
key: 'needQys',
|
|
660
665
|
dataIndex: 'needQys',
|
|
661
666
|
width: 610,
|
|
662
667
|
children: [
|
|
663
668
|
{
|
|
664
|
-
title: '盖电子印章',
|
|
669
|
+
title: i18next.t('盖电子印章'),
|
|
665
670
|
key: 'isElectronicSeal',
|
|
666
671
|
dataIndex: 'isElectronicSeal',
|
|
667
672
|
width: 110,
|
|
@@ -672,14 +677,16 @@ var Sinatures = function (_a) {
|
|
|
672
677
|
},
|
|
673
678
|
},
|
|
674
679
|
{
|
|
675
|
-
title: '选择电子印章',
|
|
680
|
+
title: i18next.t('选择电子印章'),
|
|
676
681
|
key: 'electronicSeal',
|
|
677
682
|
dataIndex: 'electronicSeal',
|
|
678
683
|
width: 360,
|
|
679
684
|
render: function (value, row, index) {
|
|
680
685
|
// 是否有勾选加盖电子印章
|
|
681
686
|
var hasElectronicSeal = records === null || records === void 0 ? void 0 : records.some(function (item) { return !!item.isElectronicSeal; });
|
|
682
|
-
var _label =
|
|
687
|
+
var _label = i18next.t('是否加盖经济责任人手签章{{slot0}}', {
|
|
688
|
+
slot0: yjzrr ? "\uFF08\u7ECF\u6D4E\u8D23\u4EFB\u4EBA: " + yjzrr + "\uFF09" : '',
|
|
689
|
+
});
|
|
683
690
|
var obj = {
|
|
684
691
|
children: (React.createElement("div", { style: { height: '100%' } },
|
|
685
692
|
React.createElement("div", { style: __assign({ height: '36px', borderBottom: '1px solid #EBEBEB', marginBottom: '5px', paddingLeft: '8px', lineHeight: '36px' }, (yjzrr ? {} : { display: 'none' })), title: _label },
|
|
@@ -698,7 +705,7 @@ var Sinatures = function (_a) {
|
|
|
698
705
|
},
|
|
699
706
|
},
|
|
700
707
|
{
|
|
701
|
-
title: '电子印章设置',
|
|
708
|
+
title: i18next.t('电子印章设置'),
|
|
702
709
|
key: 'setElectronicSeal',
|
|
703
710
|
dataIndex: 'setElectronicSeal',
|
|
704
711
|
width: 180,
|
|
@@ -712,8 +719,8 @@ var Sinatures = function (_a) {
|
|
|
712
719
|
} },
|
|
713
720
|
React.createElement(Button, { type: "link", style: __assign({}, (checkSealVisible && isEdit
|
|
714
721
|
? {}
|
|
715
|
-
: { display: 'none' })), size: "small", loading: loading, onClick: checkSealFn },
|
|
716
|
-
React.createElement(Button, { type: "link", style: __assign({}, (contractId ? {} : { display: 'none' })), size: "small", onClick: viewSealPageFn },
|
|
722
|
+
: { display: 'none' })), size: "small", loading: loading, onClick: checkSealFn }, i18next.t('指定签署位置')),
|
|
723
|
+
React.createElement(Button, { type: "link", style: __assign({}, (contractId ? {} : { display: 'none' })), size: "small", onClick: viewSealPageFn }, i18next.t('预览盖章效果')))) : (React.createElement(React.Fragment, null));
|
|
717
724
|
};
|
|
718
725
|
var obj = {
|
|
719
726
|
children: React.createElement(Comp, null),
|
|
@@ -726,14 +733,14 @@ var Sinatures = function (_a) {
|
|
|
726
733
|
],
|
|
727
734
|
},
|
|
728
735
|
{
|
|
729
|
-
title: function () { return (React.createElement("div", { style: { width: '100%', textAlign: 'center' } },
|
|
736
|
+
title: function () { return (React.createElement("div", { style: { width: '100%', textAlign: 'center' } }, i18next.t('群杰印章'))); },
|
|
730
737
|
key: 'qunJ',
|
|
731
738
|
dataIndex: 'qunJ',
|
|
732
739
|
width: 620,
|
|
733
740
|
children: [
|
|
734
741
|
{
|
|
735
742
|
title: function () {
|
|
736
|
-
return (React.createElement(Checkbox, { checked: checked, disabled: !isEdit, onChange: function (e) { return needQjSealFn(e); } },
|
|
743
|
+
return (React.createElement(Checkbox, { checked: checked, disabled: !isEdit, onChange: function (e) { return needQjSealFn(e); } }, i18next.t('群杰印章-用印申请')));
|
|
737
744
|
},
|
|
738
745
|
key: 'qunjSeal',
|
|
739
746
|
dataIndex: 'qunjSeal',
|
|
@@ -862,7 +869,7 @@ var Sinatures = function (_a) {
|
|
|
862
869
|
}
|
|
863
870
|
}
|
|
864
871
|
if (filelist.every(function (item) { return item.status === 'error'; })) {
|
|
865
|
-
message.error('文件上传失败!');
|
|
872
|
+
message.error(i18next.t('文件上传失败!'));
|
|
866
873
|
}
|
|
867
874
|
}, [records, setRecords, sigValuesChange]);
|
|
868
875
|
/** 群杰印章修改 */
|
|
@@ -875,18 +882,18 @@ var Sinatures = function (_a) {
|
|
|
875
882
|
if (typeof contractNum === 'number' && showContranctNum) {
|
|
876
883
|
if (totalSealNum > contractNum * 4) {
|
|
877
884
|
setIsTotalSealNumTooMore(true);
|
|
878
|
-
message.warning('您的用印次数远超超过合理次数范围,请修改。');
|
|
885
|
+
message.warning(i18next.t('您的用印次数远超超过合理次数范围,请修改。'));
|
|
879
886
|
return;
|
|
880
887
|
}
|
|
881
888
|
else {
|
|
882
889
|
setIsTotalSealNumTooMore(false);
|
|
883
890
|
}
|
|
884
891
|
if (totalSealNum > contractNum * 3) {
|
|
885
|
-
message.warning('您的用印次数超过合理次数范围,请慎重确认!');
|
|
892
|
+
message.warning(i18next.t('您的用印次数超过合理次数范围,请慎重确认!'));
|
|
886
893
|
return;
|
|
887
894
|
}
|
|
888
895
|
if (totalSealNum > contractNum * 2) {
|
|
889
|
-
message.warning('您的用印次数已超过2倍合同数量,请确认用印数量是否正确。');
|
|
896
|
+
message.warning(i18next.t('您的用印次数已超过2倍合同数量,请确认用印数量是否正确。'));
|
|
890
897
|
return;
|
|
891
898
|
}
|
|
892
899
|
}
|
|
@@ -987,10 +994,10 @@ var Sinatures = function (_a) {
|
|
|
987
994
|
!isSure &&
|
|
988
995
|
!isOnlyQj) {
|
|
989
996
|
Modal.confirm({
|
|
990
|
-
title: '当前所勾选的电子印章信息与上一次盖章时有差异,请确认是否继续?',
|
|
991
|
-
okText: '是',
|
|
997
|
+
title: i18next.t('当前所勾选的电子印章信息与上一次盖章时有差异,请确认是否继续?'),
|
|
998
|
+
okText: i18next.t('是'),
|
|
992
999
|
okType: 'danger',
|
|
993
|
-
cancelText: '否',
|
|
1000
|
+
cancelText: i18next.t('否'),
|
|
994
1001
|
onOk: function () {
|
|
995
1002
|
setIsSure(true);
|
|
996
1003
|
},
|
|
@@ -1007,30 +1014,32 @@ var Sinatures = function (_a) {
|
|
|
1007
1014
|
(innerElectronicSeal === null || innerElectronicSeal === void 0 ? void 0 : innerElectronicSeal.length) === 0 &&
|
|
1008
1015
|
hasElectronicSeal &&
|
|
1009
1016
|
!isOnlyQj) {
|
|
1010
|
-
message.warning('请勾选加盖电子印章所需要的印章列表!');
|
|
1017
|
+
message.warning(i18next.t('请勾选加盖电子印章所需要的印章列表!'));
|
|
1011
1018
|
return [2 /*return*/, false];
|
|
1012
1019
|
}
|
|
1013
1020
|
// 超过4倍禁止提交审批
|
|
1014
1021
|
if (isEdit && needQj && isTotalSealNumTooMore && showContranctNum) {
|
|
1015
|
-
message.warning('您的用印次数远超超过合理次数范围,请修改。');
|
|
1022
|
+
message.warning(i18next.t('您的用印次数远超超过合理次数范围,请修改。'));
|
|
1016
1023
|
return [2 /*return*/, false];
|
|
1017
1024
|
}
|
|
1018
1025
|
// 没有确认盖章
|
|
1019
1026
|
if (isEdit && needQys && hasElectronicSeal && !contractId && !isOnlyQj) {
|
|
1020
|
-
message.warning('请点击确认盖章按钮,确认盖章位置后方可提交!');
|
|
1027
|
+
message.warning(i18next.t('请点击确认盖章按钮,确认盖章位置后方可提交!'));
|
|
1021
1028
|
return [2 /*return*/, false];
|
|
1022
1029
|
}
|
|
1023
1030
|
if (isEdit && checked && needQj) {
|
|
1024
1031
|
// 合同份数为空
|
|
1025
1032
|
if (!(innerQunjSeal === null || innerQunjSeal === void 0 ? void 0 : innerQunjSeal.contranctNum) && showContranctNum) {
|
|
1026
|
-
message.warning('请填写合同份数!');
|
|
1033
|
+
message.warning(i18next.t('请填写合同份数!'));
|
|
1027
1034
|
return [2 /*return*/, false];
|
|
1028
1035
|
}
|
|
1029
1036
|
// 勾选的群杰印章 没有填用印次数
|
|
1030
1037
|
if (((_a = innerQunjSeal === null || innerQunjSeal === void 0 ? void 0 : innerQunjSeal.details) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
1031
1038
|
innerQunjSeal.details.forEach(function (item) {
|
|
1032
1039
|
if (!item.sealCount) {
|
|
1033
|
-
message.warning(
|
|
1040
|
+
message.warning(i18next.t('请填写{{slot0}} 的用印次数!', {
|
|
1041
|
+
slot0: item.sealName,
|
|
1042
|
+
}));
|
|
1034
1043
|
}
|
|
1035
1044
|
});
|
|
1036
1045
|
if (innerQunjSeal.details.filter(function (item) { return !item.sealCount; }).length > 0) {
|
|
@@ -1038,7 +1047,7 @@ var Sinatures = function (_a) {
|
|
|
1038
1047
|
}
|
|
1039
1048
|
}
|
|
1040
1049
|
else {
|
|
1041
|
-
message.warning('请选择群杰用印!');
|
|
1050
|
+
message.warning(i18next.t('请选择群杰用印!'));
|
|
1042
1051
|
return [2 /*return*/, false];
|
|
1043
1052
|
}
|
|
1044
1053
|
}
|
|
@@ -1074,12 +1083,14 @@ var Sinatures = function (_a) {
|
|
|
1074
1083
|
};
|
|
1075
1084
|
return (React.createElement(React.Fragment, null,
|
|
1076
1085
|
isEdit ? (React.createElement(Table, { columns: columnsLast, rowKey: "attachId", loading: tbloading, dataSource: records, scroll: { x: 'max-content', y: 400 } })) : (React.createElement(DetailTable, __assign({}, detail, { batchDownloadZipName: batchDownloadZipName }))),
|
|
1077
|
-
React.createElement(Modal, { title:
|
|
1086
|
+
React.createElement(Modal, { title: i18next.t('下列印章未确认盖章位置,如不需要请取消勾选。'), width: 800, closable: false, visible: visible, loading: false, onCancel: function () {
|
|
1078
1087
|
setVisible(false);
|
|
1079
1088
|
}, footer: React.createElement(React.Fragment, null,
|
|
1080
1089
|
React.createElement(Button, { type: "primary", onClick: function () {
|
|
1081
1090
|
checkSealFn('needReSeal');
|
|
1082
|
-
} }, needReSealList.length > 0
|
|
1091
|
+
} }, needReSealList.length > 0
|
|
1092
|
+
? i18next.t('指定签署位置')
|
|
1093
|
+
: i18next.t('确定'))) },
|
|
1083
1094
|
React.createElement(Checkbox.Group, { defaultValue: unSealList.map(function (item) { return item.sealId; }), value: needReSealList, onChange: needReSealChange, className: "flex-checkbox-group" }, unSealList.map(function (item) {
|
|
1084
1095
|
return (React.createElement(Checkbox, { key: item.sealId, value: item.sealId, style: { width: '100%', margin: '0 8px' } }, item.sealName));
|
|
1085
1096
|
})))));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
import React, { memo, useCallback } from 'react';
|
|
2
3
|
import { Drawer, Button, Sortable } from '../../../index';
|
|
3
4
|
import { DndProvider } from 'react-dnd';
|
|
@@ -22,10 +23,10 @@ var SortDrawer = function (_a) {
|
|
|
22
23
|
}, [onSure, dynamicList]);
|
|
23
24
|
/**底部按钮 */
|
|
24
25
|
var renderFooter = function () { return (React.createElement(React.Fragment, null,
|
|
25
|
-
React.createElement(Button, { type: "default", onClick: onClose },
|
|
26
|
-
React.createElement(Button, { type: "default", onClick: onReset },
|
|
27
|
-
React.createElement(Button, { type: "primary", onClick: onSureHandle },
|
|
28
|
-
return (React.createElement(Drawer, { className: "sort-drawer", title:
|
|
26
|
+
React.createElement(Button, { type: "default", onClick: onClose }, i18next.t('取消')),
|
|
27
|
+
React.createElement(Button, { type: "default", onClick: onReset }, i18next.t('重置')),
|
|
28
|
+
React.createElement(Button, { type: "primary", onClick: onSureHandle }, i18next.t('确定')))); };
|
|
29
|
+
return (React.createElement(Drawer, { className: "sort-drawer", title: i18next.t('子项排序'), placement: "right", visible: visible, closable: false, maskClosable: false, footer: renderFooter() },
|
|
29
30
|
React.createElement(DndProvider, { backend: HTML5Backend, context: window }, dynamicList.map(function (item, index) { return (React.createElement(Sortable, { key: item.sortKey, type: "sort-list-drawer", index: index, onMoveItem: onMoveItem }, item.sortTitle)); }))));
|
|
30
31
|
};
|
|
31
32
|
export default memo(SortDrawer);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @author zyh
|
|
3
4
|
* @description 客户样板
|
|
@@ -23,24 +24,24 @@ var Template = function (_a) {
|
|
|
23
24
|
var _d = useState([]), data = _d[0], setData = _d[1];
|
|
24
25
|
var columns = [
|
|
25
26
|
{
|
|
26
|
-
title: '序号',
|
|
27
|
+
title: i18next.t('序号'),
|
|
27
28
|
width: 52,
|
|
28
29
|
render: function (text, record, index) { return "" + (index + 1); },
|
|
29
30
|
},
|
|
30
31
|
{
|
|
31
|
-
title: '创建时间',
|
|
32
|
+
title: i18next.t('创建时间'),
|
|
32
33
|
dataIndex: 'createTime',
|
|
33
34
|
},
|
|
34
35
|
{
|
|
35
|
-
title: '合同号',
|
|
36
|
+
title: i18next.t('合同号'),
|
|
36
37
|
dataIndex: 'contractNo',
|
|
37
38
|
},
|
|
38
39
|
{
|
|
39
|
-
title: '创建人',
|
|
40
|
+
title: i18next.t('创建人'),
|
|
40
41
|
dataIndex: 'createUserName',
|
|
41
42
|
},
|
|
42
43
|
{
|
|
43
|
-
title: '样板号',
|
|
44
|
+
title: i18next.t('样板号'),
|
|
44
45
|
dataIndex: 'crNo',
|
|
45
46
|
},
|
|
46
47
|
];
|
|
@@ -87,21 +88,21 @@ var Template = function (_a) {
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
else {
|
|
90
|
-
message.error(res.data.msg || '出错了');
|
|
91
|
+
message.error(res.data.msg || i18next.t('出错了'));
|
|
91
92
|
}
|
|
92
93
|
});
|
|
93
94
|
}, [request, memberId, deptId, form]);
|
|
94
|
-
return (React.createElement(Modal, { visible: visible, title:
|
|
95
|
+
return (React.createElement(Modal, { visible: visible, title: i18next.t('选择客户样板'), width: "70%", maskClosable: false, loading: false, onCancel: openOrCloseModal, onOk: onSure },
|
|
95
96
|
React.createElement(Form, { name: "contract-compare", form: form },
|
|
96
97
|
React.createElement(Row, null,
|
|
97
98
|
React.createElement(Col, { span: 8 },
|
|
98
|
-
React.createElement(Form.Item, { name: "Customer", label:
|
|
99
|
+
React.createElement(Form.Item, { name: "Customer", label: i18next.t('客商名称') },
|
|
99
100
|
React.createElement(Input, { bordered: false, disabled: true }))),
|
|
100
101
|
React.createElement(Col, { span: 8 },
|
|
101
|
-
React.createElement(Form.Item, { name: "company", label:
|
|
102
|
+
React.createElement(Form.Item, { name: "company", label: i18next.t('公司名称') },
|
|
102
103
|
React.createElement(Input, { bordered: false, disabled: true }))),
|
|
103
104
|
React.createElement(Col, { span: 8 },
|
|
104
|
-
React.createElement(Form.Item, { name: "departMent", label:
|
|
105
|
+
React.createElement(Form.Item, { name: "departMent", label: i18next.t('部门名称') },
|
|
105
106
|
React.createElement(Input, { bordered: false, disabled: true })))),
|
|
106
107
|
React.createElement(Table, { rowSelection: rowSelection, columns: columns, dataSource: data, rowKey: "id", scroll: { x: undefined } }))));
|
|
107
108
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IElectronSignaturesProps } from './interface';
|
|
3
|
+
interface IElectronSignaturesContext {
|
|
4
|
+
isQjVerifyCode?: boolean;
|
|
5
|
+
isNewQys?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const ElectronSignaturesContext: React.Context<IElectronSignaturesContext>;
|
|
8
|
+
declare const _default: React.NamedExoticComponent<IElectronSignaturesProps>;
|
|
9
|
+
export default _default;
|