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
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
12
13
|
/**
|
|
13
14
|
* @author 陈亚雄
|
|
14
15
|
* @description
|
|
@@ -17,42 +18,43 @@ import React, { useState, useCallback, useRef, useEffect } from 'react';
|
|
|
17
18
|
// redux
|
|
18
19
|
// ztxkui公共组件
|
|
19
20
|
import Table from 'components/Table';
|
|
21
|
+
import { Table as AntTable } from 'antd';
|
|
20
22
|
import EnhanceSelect from 'components/EnhanceSelect';
|
|
21
23
|
// 路由配置
|
|
22
24
|
// store
|
|
23
25
|
// 自定义组件
|
|
24
26
|
// 其他文件
|
|
25
27
|
var companyList = [
|
|
26
|
-
{ id: '100', name: '百度' },
|
|
27
|
-
{ id: '200', name: '阿里' },
|
|
28
|
-
{ id: '300', name: '腾讯' },
|
|
28
|
+
{ id: '100', name: i18next.t('百度') },
|
|
29
|
+
{ id: '200', name: i18next.t('阿里') },
|
|
30
|
+
{ id: '300', name: i18next.t('腾讯') },
|
|
29
31
|
];
|
|
30
32
|
var depListObj = {
|
|
31
33
|
'100': [
|
|
32
|
-
{ id: '100100', name: '百度-事业部' },
|
|
33
|
-
{ id: '100200', name: '百度-电商部' },
|
|
34
|
-
{ id: '100300', name: '百度-工程部' },
|
|
34
|
+
{ id: '100100', name: i18next.t('百度-事业部') },
|
|
35
|
+
{ id: '100200', name: i18next.t('百度-电商部') },
|
|
36
|
+
{ id: '100300', name: i18next.t('百度-工程部') },
|
|
35
37
|
],
|
|
36
38
|
'200': [
|
|
37
|
-
{ id: '200100', name: '阿里-事业部' },
|
|
38
|
-
{ id: '200200', name: '阿里-电商部' },
|
|
39
|
-
{ id: '200300', name: '阿里-工程部' },
|
|
39
|
+
{ id: '200100', name: i18next.t('阿里-事业部') },
|
|
40
|
+
{ id: '200200', name: i18next.t('阿里-电商部') },
|
|
41
|
+
{ id: '200300', name: i18next.t('阿里-工程部') },
|
|
40
42
|
],
|
|
41
43
|
'300': [
|
|
42
|
-
{ id: '300100', name: '腾讯-事业部' },
|
|
43
|
-
{ id: '300200', name: '腾讯-电商部' },
|
|
44
|
-
{ id: '300300', name: '腾讯-工程部' },
|
|
44
|
+
{ id: '300100', name: i18next.t('腾讯-事业部') },
|
|
45
|
+
{ id: '300200', name: i18next.t('腾讯-电商部') },
|
|
46
|
+
{ id: '300300', name: i18next.t('腾讯-工程部') },
|
|
45
47
|
],
|
|
46
48
|
all: [
|
|
47
|
-
{ id: '100100', name: '百度-事业部' },
|
|
48
|
-
{ id: '100200', name: '百度-电商部' },
|
|
49
|
-
{ id: '100300', name: '百度-工程部' },
|
|
50
|
-
{ id: '200100', name: '阿里-事业部' },
|
|
51
|
-
{ id: '200200', name: '阿里-电商部' },
|
|
52
|
-
{ id: '200300', name: '阿里-工程部' },
|
|
53
|
-
{ id: '300100', name: '腾讯-事业部' },
|
|
54
|
-
{ id: '300200', name: '腾讯-电商部' },
|
|
55
|
-
{ id: '300300', name: '腾讯-工程部' },
|
|
49
|
+
{ id: '100100', name: i18next.t('百度-事业部') },
|
|
50
|
+
{ id: '100200', name: i18next.t('百度-电商部') },
|
|
51
|
+
{ id: '100300', name: i18next.t('百度-工程部') },
|
|
52
|
+
{ id: '200100', name: i18next.t('阿里-事业部') },
|
|
53
|
+
{ id: '200200', name: i18next.t('阿里-电商部') },
|
|
54
|
+
{ id: '200300', name: i18next.t('阿里-工程部') },
|
|
55
|
+
{ id: '300100', name: i18next.t('腾讯-事业部') },
|
|
56
|
+
{ id: '300200', name: i18next.t('腾讯-电商部') },
|
|
57
|
+
{ id: '300300', name: i18next.t('腾讯-工程部') },
|
|
56
58
|
],
|
|
57
59
|
};
|
|
58
60
|
var TableDemo1 = function () {
|
|
@@ -73,7 +75,7 @@ var TableDemo1 = function () {
|
|
|
73
75
|
// 表格列配置
|
|
74
76
|
var columns = [
|
|
75
77
|
{
|
|
76
|
-
title: '序号',
|
|
78
|
+
title: i18next.t('序号'),
|
|
77
79
|
width: 62,
|
|
78
80
|
fixed: 'left',
|
|
79
81
|
align: 'center',
|
|
@@ -81,7 +83,7 @@ var TableDemo1 = function () {
|
|
|
81
83
|
render: function (_text, _record, index) { return "" + (index + 1); },
|
|
82
84
|
},
|
|
83
85
|
{
|
|
84
|
-
title: '公司',
|
|
86
|
+
title: i18next.t('公司'),
|
|
85
87
|
width: 120,
|
|
86
88
|
key: 'company',
|
|
87
89
|
dataIndex: 'company',
|
|
@@ -89,7 +91,7 @@ var TableDemo1 = function () {
|
|
|
89
91
|
return record.company !== preRecord.company;
|
|
90
92
|
},
|
|
91
93
|
render: function (_text, _record, index) {
|
|
92
|
-
console.log('公司下拉框-render', index);
|
|
94
|
+
console.log(i18next.t('公司下拉框-render'), index);
|
|
93
95
|
return (React.createElement(EnhanceSelect, { list: companyList, value: _text, onChange: function (value, option, fullData) {
|
|
94
96
|
var newRecord = {
|
|
95
97
|
company: value,
|
|
@@ -100,7 +102,7 @@ var TableDemo1 = function () {
|
|
|
100
102
|
},
|
|
101
103
|
},
|
|
102
104
|
{
|
|
103
|
-
title: '部门',
|
|
105
|
+
title: i18next.t('部门'),
|
|
104
106
|
width: 120,
|
|
105
107
|
key: 'department',
|
|
106
108
|
dataIndex: 'department',
|
|
@@ -109,7 +111,7 @@ var TableDemo1 = function () {
|
|
|
109
111
|
record.department !== preRecord.department);
|
|
110
112
|
},
|
|
111
113
|
render: function (_text, _record, index) {
|
|
112
|
-
console.log('部门下拉框-render', index);
|
|
114
|
+
console.log(i18next.t('部门下拉框-render'), index);
|
|
113
115
|
var company = _record.company;
|
|
114
116
|
var depList = depListObj.all;
|
|
115
117
|
if (company) {
|
|
@@ -124,7 +126,7 @@ var TableDemo1 = function () {
|
|
|
124
126
|
},
|
|
125
127
|
},
|
|
126
128
|
{
|
|
127
|
-
title: '输入text',
|
|
129
|
+
title: i18next.t('输入text'),
|
|
128
130
|
width: 120,
|
|
129
131
|
key: 'inText',
|
|
130
132
|
dataIndex: 'inText',
|
|
@@ -138,7 +140,7 @@ var TableDemo1 = function () {
|
|
|
138
140
|
editable: true,
|
|
139
141
|
},
|
|
140
142
|
{
|
|
141
|
-
title: '输入text1',
|
|
143
|
+
title: i18next.t('输入text1'),
|
|
142
144
|
width: 120,
|
|
143
145
|
key: 'inText1',
|
|
144
146
|
dataIndex: 'inText1',
|
|
@@ -152,7 +154,7 @@ var TableDemo1 = function () {
|
|
|
152
154
|
editable: true,
|
|
153
155
|
},
|
|
154
156
|
{
|
|
155
|
-
title: '输入number',
|
|
157
|
+
title: i18next.t('输入number'),
|
|
156
158
|
width: 120,
|
|
157
159
|
key: 'inNumber',
|
|
158
160
|
dataIndex: 'inNumber',
|
|
@@ -169,7 +171,7 @@ var TableDemo1 = function () {
|
|
|
169
171
|
},
|
|
170
172
|
},
|
|
171
173
|
{
|
|
172
|
-
title: '输入number1',
|
|
174
|
+
title: i18next.t('输入number1'),
|
|
173
175
|
width: 120,
|
|
174
176
|
key: 'inNumber1',
|
|
175
177
|
dataIndex: 'inNumber1',
|
|
@@ -186,7 +188,7 @@ var TableDemo1 = function () {
|
|
|
186
188
|
},
|
|
187
189
|
},
|
|
188
190
|
{
|
|
189
|
-
title: '下拉框1',
|
|
191
|
+
title: i18next.t('下拉框1'),
|
|
190
192
|
width: 120,
|
|
191
193
|
key: 'selector',
|
|
192
194
|
dataIndex: 'selector',
|
|
@@ -194,11 +196,56 @@ var TableDemo1 = function () {
|
|
|
194
196
|
return record.selector !== preRecord.selector;
|
|
195
197
|
},
|
|
196
198
|
render: function (_text, _record, index) {
|
|
197
|
-
console.log('下拉框1-render', index);
|
|
199
|
+
console.log(i18next.t('下拉框1-render'), index);
|
|
198
200
|
return React.createElement(EnhanceSelect, null);
|
|
199
201
|
},
|
|
200
202
|
},
|
|
201
203
|
];
|
|
204
|
+
var columns1 = [
|
|
205
|
+
{
|
|
206
|
+
title: '序号',
|
|
207
|
+
width: 62,
|
|
208
|
+
fixed: 'left',
|
|
209
|
+
align: 'center',
|
|
210
|
+
render: function (text, record, index) { return "" + (index + 1); },
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
title: '操作时间',
|
|
214
|
+
width: 160,
|
|
215
|
+
align: 'center',
|
|
216
|
+
dataIndex: 'createTime',
|
|
217
|
+
key: 'createTime',
|
|
218
|
+
sorter: function (a, b) {
|
|
219
|
+
return new Date(a.createTime).getTime() - new Date(b.createTime).getTime();
|
|
220
|
+
},
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
title: '操作平台',
|
|
224
|
+
width: 100,
|
|
225
|
+
dataIndex: 'mobile',
|
|
226
|
+
key: 'mobile',
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
title: '操作人',
|
|
230
|
+
width: 120,
|
|
231
|
+
dataIndex: 'operationName',
|
|
232
|
+
key: 'operationName',
|
|
233
|
+
render: function (text, record, index) { var _a; return text ? text : (_a = record === null || record === void 0 ? void 0 : record.createByName) !== null && _a !== void 0 ? _a : record === null || record === void 0 ? void 0 : record.createBy; },
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
title: '操作事项',
|
|
237
|
+
width: 300,
|
|
238
|
+
dataIndex: 'logData',
|
|
239
|
+
key: 'logData',
|
|
240
|
+
ellipsis: false,
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
title: '说明',
|
|
244
|
+
dataIndex: 'mark',
|
|
245
|
+
key: 'mark',
|
|
246
|
+
ellipsis: false,
|
|
247
|
+
},
|
|
248
|
+
];
|
|
202
249
|
var onEditableSaveHandle = useCallback(function (record, index, _dataIndex) {
|
|
203
250
|
var _a;
|
|
204
251
|
if (_dataIndex === void 0) { _dataIndex = ''; }
|
|
@@ -212,10 +259,13 @@ var TableDemo1 = function () {
|
|
|
212
259
|
}, []);
|
|
213
260
|
console.log('render');
|
|
214
261
|
return (React.createElement(React.Fragment, null,
|
|
215
|
-
React.createElement(Table, { columns: columns, dataSource: records, rowKey: "id", onEditableSave: onEditableSaveHandle }),
|
|
262
|
+
React.createElement(Table, { columns: columns, dataSource: records, rowKey: "id", onEditableSave: onEditableSaveHandle, scroll: { x: 1000 } }),
|
|
263
|
+
React.createElement(AntTable, { columns: columns, dataSource: records, rowKey: "id", scroll: { x: 1000 } }),
|
|
264
|
+
React.createElement(Table, { columns: columns1, dataSource: records, rowKey: "id", onEditableSave: onEditableSaveHandle }),
|
|
265
|
+
React.createElement(AntTable, { columns: columns1, dataSource: records, rowKey: "id" }),
|
|
216
266
|
React.createElement("button", { onClick: function () {
|
|
217
267
|
console.log(records);
|
|
218
|
-
} },
|
|
268
|
+
} }, i18next.t('获取数据'))));
|
|
219
269
|
};
|
|
220
270
|
export default TableDemo1;
|
|
221
271
|
// import React, { useEffect, useState } from 'react';
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author 陈亚雄
|
|
3
|
+
* @description 基础表格,充当列表
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
// redux
|
|
7
|
+
// ztxkui公共组件
|
|
8
|
+
import { Table, NumberCase } from '../index';
|
|
9
|
+
// 路由配置
|
|
10
|
+
// store
|
|
11
|
+
// 自定义组件
|
|
12
|
+
// 其他文件
|
|
13
|
+
import { dataSource } from './data';
|
|
14
|
+
import { toThousand } from 'ztxkutils/dist/tools';
|
|
15
|
+
var tableConfigInfo = {
|
|
16
|
+
test1: {
|
|
17
|
+
isDisplay: false,
|
|
18
|
+
isChangeable: true,
|
|
19
|
+
isRequired: false,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
var BasicTable = function (_a) {
|
|
23
|
+
var dynamicKey = _a.dynamicKey;
|
|
24
|
+
console.log(toThousand(10000.2312));
|
|
25
|
+
console.log(toThousand(toThousand(100.2312)));
|
|
26
|
+
var columns = [
|
|
27
|
+
{
|
|
28
|
+
title: '序号',
|
|
29
|
+
width: 62,
|
|
30
|
+
key: 'index',
|
|
31
|
+
render: function (_text, _record, index) { return "" + (index + 1); },
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: '测试111',
|
|
35
|
+
width: 100,
|
|
36
|
+
dataIndex: 'test1',
|
|
37
|
+
key: 'test1',
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
title: '测试22233',
|
|
41
|
+
width: 100,
|
|
42
|
+
dataIndex: 'test2233',
|
|
43
|
+
key: 'test2233',
|
|
44
|
+
render: function (text, record, index) {
|
|
45
|
+
return 1;
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: '地址',
|
|
50
|
+
width: 100,
|
|
51
|
+
dataIndex: 'address',
|
|
52
|
+
key: 'address',
|
|
53
|
+
render: function (text, record, index) {
|
|
54
|
+
return record.addressAll + record.address;
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
// {
|
|
58
|
+
// title: '库存总计',
|
|
59
|
+
// children: [
|
|
60
|
+
// {
|
|
61
|
+
// title: '财务库存数量',
|
|
62
|
+
// width: 120,
|
|
63
|
+
// dataIndex: 'totalFinanceAvailQuantity',
|
|
64
|
+
// key: 'totalFinanceAvailQuantity',
|
|
65
|
+
// render: (text, record, index) => {
|
|
66
|
+
// if (index % 2 === 0) {
|
|
67
|
+
// return `${index + 2}`;
|
|
68
|
+
// }
|
|
69
|
+
// return `${index + 1}/${index + 2}`;
|
|
70
|
+
// },
|
|
71
|
+
// },
|
|
72
|
+
// {
|
|
73
|
+
// title: '业务库存数量',
|
|
74
|
+
// width: 120,
|
|
75
|
+
// dataIndex: 'totalBusiAvailQuantity',
|
|
76
|
+
// key: 'totalBusiAvailQuantity',
|
|
77
|
+
// render: (text) => 2,
|
|
78
|
+
// },
|
|
79
|
+
// {
|
|
80
|
+
// title: '财务库存金额(不含税)',
|
|
81
|
+
// width: 120,
|
|
82
|
+
// dataIndex: 'totalFinanceStockAmount',
|
|
83
|
+
// key: 'totalFinanceStockAmount',
|
|
84
|
+
// },
|
|
85
|
+
// {
|
|
86
|
+
// title: '业务库存金额(不含税)',
|
|
87
|
+
// width: 120,
|
|
88
|
+
// dataIndex: 'totalBusiStockAmount',
|
|
89
|
+
// key: 'totalBusiStockAmount',
|
|
90
|
+
// },
|
|
91
|
+
// ],
|
|
92
|
+
// },
|
|
93
|
+
// {
|
|
94
|
+
// title: '库存总计1',
|
|
95
|
+
// children: [
|
|
96
|
+
// {
|
|
97
|
+
// title: '财务库存数量',
|
|
98
|
+
// width: 120,
|
|
99
|
+
// dataIndex: 'totalFinanceAvailQuantity',
|
|
100
|
+
// key: 'totalFinanceAvailQuantity',
|
|
101
|
+
// render: (text) => 1,
|
|
102
|
+
// },
|
|
103
|
+
// {
|
|
104
|
+
// title: '业务库存数量',
|
|
105
|
+
// width: 120,
|
|
106
|
+
// dataIndex: 'totalBusiAvailQuantity',
|
|
107
|
+
// key: 'totalBusiAvailQuantity',
|
|
108
|
+
// render: (text) => 2,
|
|
109
|
+
// },
|
|
110
|
+
// {
|
|
111
|
+
// title: '财务库存金额(不含税)',
|
|
112
|
+
// width: 120,
|
|
113
|
+
// dataIndex: 'totalFinanceStockAmount',
|
|
114
|
+
// key: 'totalFinanceStockAmount',
|
|
115
|
+
// },
|
|
116
|
+
// {
|
|
117
|
+
// title: '业务库存金额(不含税)',
|
|
118
|
+
// width: 120,
|
|
119
|
+
// dataIndex: 'totalBusiStockAmount',
|
|
120
|
+
// key: 'totalBusiStockAmount',
|
|
121
|
+
// },
|
|
122
|
+
// ],
|
|
123
|
+
// },
|
|
124
|
+
{
|
|
125
|
+
title: '测试2123',
|
|
126
|
+
width: 100,
|
|
127
|
+
dataIndex: 'test2',
|
|
128
|
+
key: 'test2',
|
|
129
|
+
hideColumn: true,
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
title: '测试3',
|
|
133
|
+
width: 100,
|
|
134
|
+
dataIndex: 'test3',
|
|
135
|
+
key: 'test3',
|
|
136
|
+
sorter: false,
|
|
137
|
+
onCell: function () {
|
|
138
|
+
return {
|
|
139
|
+
className: 'test',
|
|
140
|
+
};
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
title: '测试4',
|
|
145
|
+
width: 100,
|
|
146
|
+
dataIndex: 'test4',
|
|
147
|
+
key: 'test4',
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
title: '测试5',
|
|
151
|
+
width: 100,
|
|
152
|
+
dataIndex: 'test5',
|
|
153
|
+
key: 'test5',
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
title: '测试6',
|
|
157
|
+
width: 100,
|
|
158
|
+
dataIndex: 'test6',
|
|
159
|
+
key: 'test6',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
title: '测试7',
|
|
163
|
+
width: 100,
|
|
164
|
+
dataIndex: 'test7',
|
|
165
|
+
key: 'test7',
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
title: '测试8',
|
|
169
|
+
width: 100,
|
|
170
|
+
dataIndex: 'test8',
|
|
171
|
+
key: 'test8',
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
title: '测试9',
|
|
175
|
+
width: 100,
|
|
176
|
+
dataIndex: 'test9',
|
|
177
|
+
key: 'test9',
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
title: '数量',
|
|
181
|
+
width: 100,
|
|
182
|
+
dataIndex: 'test10',
|
|
183
|
+
key: 'test10',
|
|
184
|
+
align: 'center',
|
|
185
|
+
render: function (text, record, index) { return (React.createElement(NumberCase, { num: text }, text)); },
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
title: '数量11',
|
|
189
|
+
width: 100,
|
|
190
|
+
dataIndex: 'test101',
|
|
191
|
+
key: 'test101',
|
|
192
|
+
align: 'center',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
title: '测试11',
|
|
196
|
+
width: 100,
|
|
197
|
+
dataIndex: 'test11',
|
|
198
|
+
key: 'test11',
|
|
199
|
+
},
|
|
200
|
+
];
|
|
201
|
+
// const columns1: ColumnsType<any> = [
|
|
202
|
+
// {
|
|
203
|
+
// title: '流程ID',
|
|
204
|
+
// width: 80,
|
|
205
|
+
// align: 'center',
|
|
206
|
+
// dataIndex: 'associatedProcessInstId',
|
|
207
|
+
// key: 'associatedProcessInstId',
|
|
208
|
+
// },
|
|
209
|
+
// {
|
|
210
|
+
// title: '待退货款N',
|
|
211
|
+
// width: 140,
|
|
212
|
+
// dataIndex: 'pendingRefundAmountTotal',
|
|
213
|
+
// key: 'pendingRefundAmountTotal',
|
|
214
|
+
// render: (text) => toThousand(exactRound(text, 2)),
|
|
215
|
+
// },
|
|
216
|
+
// // {
|
|
217
|
+
// // title: '流程模板',
|
|
218
|
+
// // width: 300,
|
|
219
|
+
// // dataIndex: 'associatedProcessDefName',
|
|
220
|
+
// // key: 'associatedProcessDefName',
|
|
221
|
+
// // },
|
|
222
|
+
// {
|
|
223
|
+
// title: '流程申请人',
|
|
224
|
+
// width: 120,
|
|
225
|
+
// align: 'center',
|
|
226
|
+
// dataIndex: 'associatedProcessApplyPersonName',
|
|
227
|
+
// key: 'associatedProcessApplyPersonName',
|
|
228
|
+
// },
|
|
229
|
+
// {
|
|
230
|
+
// title: '流程申请时间',
|
|
231
|
+
// width: 140,
|
|
232
|
+
// align: 'center',
|
|
233
|
+
// dataIndex: 'associatedProcessApplyTime',
|
|
234
|
+
// key: 'associatedProcessApplyTime',
|
|
235
|
+
// },
|
|
236
|
+
// ];
|
|
237
|
+
return (React.createElement("div", null,
|
|
238
|
+
React.createElement("div", null,
|
|
239
|
+
"\u57FA\u7840\u5C55\u793A\u8868\u683C1\uFF1B",
|
|
240
|
+
React.createElement("br", null),
|
|
241
|
+
React.createElement("b", null, "\u52A8\u6001\u5217\u914D\u7F6E\uFF1B"),
|
|
242
|
+
"\u5982\u679C\u9700\u8981\u7F13\u5B58\u4F4F\u52A8\u6001\u5217\u914D\u7F6E\uFF0C\u9700\u8981\u4F20\u5165showColumnDynamicKey\uFF1B \u8868\u683C\u5185\u90E8\u8FDB\u884C\u4E86\u4F18\u5316\uFF0C\u6570\u636E\u5C06\u5B58\u50A8\u5728\u672C\u5730\u7F13\u5B58\u4E2D\uFF0C\u53EF\u4EE5\u4E0D\u7528\u901A\u8FC7\u5916\u754C\u4F20\u5165\u914D\u7F6E",
|
|
243
|
+
React.createElement("br", null),
|
|
244
|
+
React.createElement("b", null, "\u5217\u4F38\u7F29\uFF1B"),
|
|
245
|
+
"isResizableColumn\u5C5E\u6027\u9ED8\u8BA4\u4E3Atrue\uFF0C\u5982\u679C\u4E0D\u9700\u8981\u5217\u4F38\u7F29\u53EF\u4EE5\u4F20\u5165false"),
|
|
246
|
+
React.createElement(Table, { dataSource: dataSource, columns: columns, rowKey: "id", scroll: { y: 500 },
|
|
247
|
+
// isContextMenu
|
|
248
|
+
showColumnDynamic: true, showColumnDynamicKey: dynamicKey || 'symbol-id-1', configInfo: tableConfigInfo, isNumberInputAlignRight: true, isNumberInputThousandth: true, virtualTableKey: "virtualTableKey",
|
|
249
|
+
// isSort={false}
|
|
250
|
+
// isFilter={false}
|
|
251
|
+
summaryConfig: [
|
|
252
|
+
{
|
|
253
|
+
type: 'subtotal',
|
|
254
|
+
fields: ['test10', 'test101'],
|
|
255
|
+
title: '小计',
|
|
256
|
+
},
|
|
257
|
+
] })));
|
|
258
|
+
};
|
|
259
|
+
export default BasicTable;
|
package/dist/DemoCom/TestCom.js
CHANGED
|
@@ -45,6 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
45
45
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
48
49
|
import React, { useMemo, useEffect, useState, useImperativeHandle, useCallback, memo, useRef, } from 'react';
|
|
49
50
|
import Form from '../components/Form';
|
|
50
51
|
import SearchContainer from '../components/business/SearchContainer';
|
|
@@ -246,7 +247,7 @@ var MaterialComp = function (_a) {
|
|
|
246
247
|
}
|
|
247
248
|
})
|
|
248
249
|
.catch(function (err) {
|
|
249
|
-
message.error(
|
|
250
|
+
message.error(i18next.t('根据物料取配置信息失败,请切换重试!', {}));
|
|
250
251
|
});
|
|
251
252
|
}
|
|
252
253
|
else {
|
|
@@ -336,37 +337,37 @@ var MaterialComp = function (_a) {
|
|
|
336
337
|
}, [getKey]);
|
|
337
338
|
return onlyDetail ? (React.createElement(Row, null,
|
|
338
339
|
(value === null || value === void 0 ? void 0 : value[getKey('brand')]) ? (React.createElement(Col, { span: 8 },
|
|
339
|
-
|
|
340
|
+
i18next.t('品名:'),
|
|
340
341
|
(value === null || value === void 0 ? void 0 : value[getKey('brand')]) || '')) : (''),
|
|
341
342
|
(value === null || value === void 0 ? void 0 : value[getKey('texture')]) ? (React.createElement(Col, { span: 8 },
|
|
342
|
-
|
|
343
|
+
i18next.t('材质:'),
|
|
343
344
|
(value === null || value === void 0 ? void 0 : value[getKey('texture')]) || '')) : (''),
|
|
344
345
|
(value === null || value === void 0 ? void 0 : value[getKey('specification')]) ? (React.createElement(Col, { span: 8 },
|
|
345
|
-
|
|
346
|
+
i18next.t('规格:'),
|
|
346
347
|
(value === null || value === void 0 ? void 0 : value[getKey('specification')]) || '')) : (''),
|
|
347
348
|
(value === null || value === void 0 ? void 0 : value[getKey('placesteel')]) ? (React.createElement(Col, { span: 8 },
|
|
348
|
-
|
|
349
|
+
i18next.t('产地:'),
|
|
349
350
|
(value === null || value === void 0 ? void 0 : value[getKey('placesteel')]) || '')) : (''),
|
|
350
351
|
(value === null || value === void 0 ? void 0 : value[getKey('productModel')]) ? (React.createElement(Col, { span: 8 },
|
|
351
|
-
|
|
352
|
+
i18next.t('型号:'),
|
|
352
353
|
(value === null || value === void 0 ? void 0 : value[getKey('productModel')]) || '')) : (''),
|
|
353
354
|
(value === null || value === void 0 ? void 0 : value[getKey('workmanship')]) ? (React.createElement(Col, { span: 8 },
|
|
354
|
-
|
|
355
|
+
i18next.t('工艺:'),
|
|
355
356
|
(value === null || value === void 0 ? void 0 : value[getKey('workmanship')]) || '')) : (''),
|
|
356
357
|
(value === null || value === void 0 ? void 0 : value[getKey('packingMethod')]) ? (React.createElement(Col, { span: 8 },
|
|
357
|
-
|
|
358
|
+
i18next.t('包装方式:'),
|
|
358
359
|
(value === null || value === void 0 ? void 0 : value[getKey('packingMethod')]) || '')) : (''),
|
|
359
360
|
(value === null || value === void 0 ? void 0 : value[getKey('variety')]) ? (React.createElement(Col, { span: 8 },
|
|
360
|
-
|
|
361
|
+
i18next.t('品牌:'),
|
|
361
362
|
(value === null || value === void 0 ? void 0 : value[getKey('variety')]) || '')) : (''),
|
|
362
363
|
(value === null || value === void 0 ? void 0 : value[getKey('trademark')]) ? (React.createElement(Col, { span: 8 },
|
|
363
|
-
|
|
364
|
+
i18next.t('牌号:'),
|
|
364
365
|
(value === null || value === void 0 ? void 0 : value[getKey('trademark')]) || '')) : (''),
|
|
365
366
|
(value === null || value === void 0 ? void 0 : value[getKey('strengthGrade')]) ? (React.createElement(Col, { span: 8 },
|
|
366
|
-
|
|
367
|
+
i18next.t('强度等级:'),
|
|
367
368
|
(value === null || value === void 0 ? void 0 : value[getKey('strengthGrade')]) || '')) : (''),
|
|
368
369
|
(value === null || value === void 0 ? void 0 : value[getKey('purpose')]) ? (React.createElement(Col, { span: 8 },
|
|
369
|
-
|
|
370
|
+
i18next.t('用途:'),
|
|
370
371
|
(value === null || value === void 0 ? void 0 : value[getKey('purpose')]) || '')) : (''))) : (React.createElement(Form, { name: "test-list", form: form, className: "table-form" },
|
|
371
372
|
React.createElement(SearchContainer, null,
|
|
372
373
|
React.createElement(SearchLeft, { configInfo: configInfo }, Object.keys(aboutFieldObj).map(function (key) {
|
|
@@ -402,7 +403,7 @@ var SpecificationsComp = function (_a) {
|
|
|
402
403
|
* @description 模态框设置
|
|
403
404
|
*/
|
|
404
405
|
var dataConfig = function () {
|
|
405
|
-
console.log('当前产品层次对应的规格配置', config);
|
|
406
|
+
console.log(i18next.t('当前产品层次对应的规格配置'), config);
|
|
406
407
|
};
|
|
407
408
|
/**
|
|
408
409
|
* @description 模态框关闭隐藏
|
|
@@ -436,7 +437,7 @@ var SpecificationsComp = function (_a) {
|
|
|
436
437
|
closeModal();
|
|
437
438
|
}
|
|
438
439
|
else {
|
|
439
|
-
message.info('请填写相关信息!');
|
|
440
|
+
message.info(i18next.t('请填写相关信息!'));
|
|
440
441
|
}
|
|
441
442
|
return [3 /*break*/, 3];
|
|
442
443
|
case 2:
|
|
@@ -452,10 +453,10 @@ var SpecificationsComp = function (_a) {
|
|
|
452
453
|
}); };
|
|
453
454
|
return (React.createElement(React.Fragment, null,
|
|
454
455
|
React.createElement(EnhanceSelect, { url: listDataAbout[objKey].url, params: newParams, defaultList: defaultList, dataKey: "id", titleKey: "specificationName", mustHasParams: "materialId", disabled: disabled, value: value, onChange: onChange, dropdownMatchSelectWidth: 130, isCatch: true, method: "GET", request: request }),
|
|
455
|
-
React.createElement(Button, { type: "primary", size: "small", disabled: disabled, onClick: openModal },
|
|
456
|
-
React.createElement(Modal, { visible: visible, loading: false, onCancel: closeModal, maskClosable: false, title:
|
|
457
|
-
React.createElement(Button, { type: "default", onClick: closeModal },
|
|
458
|
-
React.createElement(Button, { type: "primary", onClick: onSureHandle },
|
|
456
|
+
React.createElement(Button, { type: "primary", size: "small", disabled: disabled, onClick: openModal }, i18next.t('新建')),
|
|
457
|
+
React.createElement(Modal, { visible: visible, loading: false, onCancel: closeModal, maskClosable: false, title: i18next.t('选择规格'), width: "60%", footer: React.createElement(React.Fragment, null,
|
|
458
|
+
React.createElement(Button, { type: "default", onClick: closeModal }, i18next.t('取消')),
|
|
459
|
+
React.createElement(Button, { type: "primary", onClick: onSureHandle }, i18next.t('添加'))) },
|
|
459
460
|
React.createElement(Form, { form: form, name: "specifications-form" },
|
|
460
461
|
React.createElement(SearchContainer, null,
|
|
461
462
|
React.createElement(SearchLeft, null, Array.isArray(config) &&
|
|
@@ -463,7 +464,9 @@ var SpecificationsComp = function (_a) {
|
|
|
463
464
|
React.createElement(SearchItem, { label: item.fieldName, name: item.fieldName, rules: [
|
|
464
465
|
{
|
|
465
466
|
required: item.isRequired === '1',
|
|
466
|
-
message:
|
|
467
|
+
message: i18next.t('{{slot0}}未填!', {
|
|
468
|
+
slot0: item.fieldName,
|
|
469
|
+
}),
|
|
467
470
|
},
|
|
468
471
|
] },
|
|
469
472
|
React.createElement(Input, { prefix: item.prefix, suffix: item.postfix && item.unit ? (React.createElement("span", null, item.postfix + " " + item.unit)) : item.postfix ? (item.postfix) : (item.unit) })),
|