ztxkui 4.3.50 → 6.0.1
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 +4 -10
- package/dist/Demo.js +40 -48
- package/dist/DemoCom/CollapseDemo.js +1 -1
- package/dist/DemoCom/FormDemo.js +188 -45
- package/dist/DemoCom/FormDemo1.d.ts +3 -0
- package/dist/DemoCom/FormDemo1.js +95 -0
- package/dist/DemoCom/PrintContainerDemo.js +44 -121
- package/dist/DemoCom/SinaturesDemo.js +88 -99
- package/dist/DemoCom/TableDemo1.js +5 -0
- package/dist/DemoCom/TableDemo2.d.ts +14 -0
- package/dist/DemoCom/TableDemo2.js +550 -0
- package/dist/DemoCom/TestDemo.d.ts +3 -0
- package/dist/DemoCom/TestDemo.js +17 -0
- package/dist/DemoCom/diaobodan.d.ts +3 -0
- package/dist/DemoCom/diaobodan.js +310 -0
- package/dist/DemoCom/tidan.d.ts +5 -0
- package/dist/DemoCom/tidan.js +153 -0
- package/dist/TableDemo/BasicTable.js +81 -14
- package/dist/TableDemo/EditableTable.d.ts +1 -0
- package/dist/TableDemo/EditableTable.js +89 -43
- package/dist/TableDemo/ElseTable.d.ts +9 -0
- package/dist/TableDemo/ElseTable.js +58 -0
- package/dist/TableDemo/ModalTable.js +30 -33
- package/dist/TableDemo/VirtualTable.d.ts +9 -0
- package/dist/TableDemo/VirtualTable.js +127 -0
- package/dist/TableDemo/data.d.ts +29 -13
- package/dist/TableDemo/data.js +129 -17
- package/dist/TableDemo/index.js +4 -0
- package/dist/UI/Asr/index.d.ts +3 -0
- package/dist/UI/Asr/index.js +7 -0
- package/dist/UI/Basic/index.js +66 -5
- package/dist/UI/ChatRoom/data.d.ts +16 -0
- package/dist/UI/ChatRoom/data.js +52 -0
- package/dist/UI/ChatRoom/index.d.ts +3 -0
- package/dist/UI/ChatRoom/index.js +50 -0
- package/dist/UI/Form/index.js +190 -40
- package/dist/UI/OCR/index.d.ts +2 -0
- package/dist/UI/OCR/index.js +34 -0
- package/dist/UI/OCRCom/CommonOcr.d.ts +2 -0
- package/dist/UI/OCRCom/CommonOcr.js +34 -0
- package/dist/UI/OCRCom/ModalOcr.d.ts +2 -0
- package/dist/UI/OCRCom/ModalOcr.js +39 -0
- package/dist/UI/OCRCom/UserOcr.d.ts +2 -0
- package/dist/UI/OCRCom/UserOcr.js +39 -0
- package/dist/UI/OCRCom/index.d.ts +2 -0
- package/dist/UI/OCRCom/index.js +34 -0
- package/dist/UI/Table/CheckModal.d.ts +9 -0
- package/dist/UI/Table/CheckModal.js +28 -0
- package/dist/UI/Table/DefaultTable.js +174 -9
- package/dist/UI/Table/EditTable.js +43 -1
- package/dist/UI/Table/data.d.ts +9 -1
- package/dist/UI/Table/data.js +11 -2
- package/dist/UI/Table/hooks.d.ts +20 -0
- package/dist/UI/Table/hooks.js +48 -0
- package/dist/UI/index.js +29 -1
- package/dist/UploadDemo.js +4 -2
- package/dist/components/Asr/index.d.ts +8 -0
- package/dist/components/Asr/index.js +24 -0
- package/dist/components/Button/button.d.ts +2 -0
- package/dist/components/Button/button.js +66 -4
- package/dist/components/ChatRoom/components/AntModal.d.ts +8 -0
- package/dist/components/ChatRoom/components/AntModal.js +80 -0
- package/dist/components/ChatRoom/components/ChatIcon.d.ts +7 -0
- package/dist/components/ChatRoom/components/ChatIcon.js +6 -0
- package/dist/components/ChatRoom/components/ChatInput.d.ts +7 -0
- package/dist/components/ChatRoom/components/ChatInput.js +97 -0
- package/dist/components/ChatRoom/components/ChatItem.d.ts +15 -0
- package/dist/components/ChatRoom/components/ChatItem.js +13 -0
- package/dist/components/ChatRoom/components/ChatItemTime.d.ts +7 -0
- package/dist/components/ChatRoom/components/ChatItemTime.js +7 -0
- package/dist/components/ChatRoom/components/Room.d.ts +9 -0
- package/dist/components/ChatRoom/components/Room.js +17 -0
- package/dist/components/ChatRoom/components/RoomItem.d.ts +19 -0
- package/dist/components/ChatRoom/components/RoomItem.js +24 -0
- package/dist/components/ChatRoom/components/RoomOperation.d.ts +7 -0
- package/dist/components/ChatRoom/components/RoomOperation.js +6 -0
- package/dist/components/ChatRoom/components/RoomTitle.d.ts +7 -0
- package/dist/components/ChatRoom/components/RoomTitle.js +22 -0
- package/dist/components/ChatRoom/components/index.d.ts +5 -0
- package/dist/components/ChatRoom/components/index.js +5 -0
- package/dist/components/ChatRoom/hooks/index.d.ts +2 -0
- package/dist/components/ChatRoom/hooks/index.js +2 -0
- package/dist/components/ChatRoom/hooks/useRoomList.d.ts +10 -0
- package/dist/components/ChatRoom/hooks/useRoomList.js +23 -0
- package/dist/components/ChatRoom/hooks/useRoomOperation.d.ts +5 -0
- package/dist/components/ChatRoom/hooks/useRoomOperation.js +17 -0
- package/dist/components/ChatRoom/index.d.ts +4 -0
- package/dist/components/ChatRoom/index.js +42 -0
- package/dist/components/ChatRoom/interface.d.ts +46 -0
- package/dist/components/ChatRoom/interface.js +1 -0
- package/dist/components/ChatRoom/utils.d.ts +4 -0
- package/dist/components/ChatRoom/utils.js +7 -0
- package/dist/components/Collapse/collapse.d.ts +1 -0
- package/dist/components/Collapse/collapse.js +2 -2
- package/dist/components/DatePicker/data-picker.d.ts +7 -46
- package/dist/components/EnhanceSelect/index.js +6 -26
- package/dist/components/Form/form.d.ts +13 -0
- package/dist/components/Form/form.js +32 -2
- package/dist/components/Input/input.d.ts +19 -2
- package/dist/components/Input/input.js +61 -9
- package/dist/components/InputNumber/input-number.d.ts +7 -5
- package/dist/components/InputNumber/input-number.js +46 -6
- package/dist/components/Layout/layout.d.ts +4 -4
- package/dist/components/Menu/menu.d.ts +1 -1
- package/dist/components/Modal/modal.d.ts +1 -0
- package/dist/components/Modal/modal.js +43 -3
- package/dist/components/OCR/Camera/Container.d.ts +4 -0
- package/dist/components/OCR/Camera/Container.js +40 -0
- package/dist/components/OCR/Camera/Item.d.ts +7 -0
- package/dist/components/OCR/Camera/Item.js +10 -0
- package/dist/components/OCR/Camera/camera.d.ts +61 -0
- package/dist/components/OCR/Camera/camera.js +166 -0
- package/dist/components/OCR/Camera/cameraUtils.d.ts +10 -0
- package/dist/components/OCR/Camera/cameraUtils.js +109 -0
- package/dist/components/OCR/Camera/constants.d.ts +3 -0
- package/dist/components/OCR/Camera/constants.js +3 -0
- package/dist/components/OCR/Camera/hooks.d.ts +20 -0
- package/dist/components/OCR/Camera/hooks.js +129 -0
- package/dist/components/OCR/Camera/index.d.ts +10 -0
- package/dist/components/OCR/Camera/index.js +28 -0
- package/dist/components/OCR/Camera/wsCamera.d.ts +22 -0
- package/dist/components/OCR/Camera/wsCamera.js +456 -0
- package/dist/components/OCR/CanvasCom.d.ts +8 -0
- package/dist/components/OCR/CanvasCom.js +28 -0
- package/dist/components/OCR/LoadPicture.d.ts +11 -0
- package/dist/components/OCR/LoadPicture.js +56 -0
- package/dist/components/OCR/SelectTemplate.d.ts +10 -0
- package/dist/components/OCR/SelectTemplate.js +14 -0
- package/dist/components/OCR/SettingCom.d.ts +14 -0
- package/dist/components/OCR/SettingCom.js +363 -0
- package/dist/components/OCR/constants.d.ts +1 -0
- package/dist/components/OCR/constants.js +2 -0
- package/dist/components/OCR/data.d.ts +6 -0
- package/dist/components/OCR/data.js +596 -0
- package/dist/components/OCR/hooks.d.ts +21 -0
- package/dist/components/OCR/hooks.js +270 -0
- package/dist/components/OCR/index.d.ts +11 -0
- package/dist/components/OCR/index.js +52 -0
- package/dist/components/OCR/selectTemplateHooks.d.ts +9 -0
- package/dist/components/OCR/selectTemplateHooks.js +74 -0
- package/dist/components/OCR/settingHooks.d.ts +5 -0
- package/dist/components/OCR/settingHooks.js +45 -0
- package/dist/components/OCR/utils.d.ts +6 -0
- package/dist/components/OCR/utils.js +153 -0
- package/dist/components/OCR_COM/Camera/Container.d.ts +3 -0
- package/dist/components/OCR_COM/Camera/Container.js +53 -0
- package/dist/components/OCR_COM/Camera/Item.d.ts +7 -0
- package/dist/components/OCR_COM/Camera/Item.js +10 -0
- package/dist/components/OCR_COM/Camera/camera.d.ts +61 -0
- package/dist/components/OCR_COM/Camera/camera.js +170 -0
- package/dist/components/OCR_COM/Camera/cameraUtils.d.ts +10 -0
- package/dist/components/OCR_COM/Camera/cameraUtils.js +109 -0
- package/dist/components/OCR_COM/Camera/constants.d.ts +3 -0
- package/dist/components/OCR_COM/Camera/constants.js +3 -0
- package/dist/components/OCR_COM/Camera/hooks.d.ts +20 -0
- package/dist/components/OCR_COM/Camera/hooks.js +131 -0
- package/dist/components/OCR_COM/Camera/index.d.ts +11 -0
- package/dist/components/OCR_COM/Camera/index.js +51 -0
- package/dist/components/OCR_COM/Camera/wsCamera.d.ts +22 -0
- package/dist/components/OCR_COM/Camera/wsCamera.js +456 -0
- package/dist/components/OCR_COM/DrawerOcr.d.ts +8 -0
- package/dist/components/OCR_COM/DrawerOcr.js +118 -0
- package/dist/components/OCR_COM/canvasUtils.d.ts +12 -0
- package/dist/components/OCR_COM/canvasUtils.js +41 -0
- package/dist/components/OCR_COM/components/IconButton.d.ts +8 -0
- package/dist/components/OCR_COM/components/IconButton.js +8 -0
- package/dist/components/OCR_COM/components/IconGpy.d.ts +3 -0
- package/dist/components/OCR_COM/components/IconGpy.js +5 -0
- package/dist/components/OCR_COM/components/IconTop.d.ts +3 -0
- package/dist/components/OCR_COM/components/IconTop.js +5 -0
- package/dist/components/OCR_COM/components/IconUpload.d.ts +3 -0
- package/dist/components/OCR_COM/components/IconUpload.js +5 -0
- package/dist/components/OCR_COM/components/ImgPagination.d.ts +19 -0
- package/dist/components/OCR_COM/components/ImgPagination.js +54 -0
- package/dist/components/OCR_COM/components/OperationContainer.d.ts +9 -0
- package/dist/components/OCR_COM/components/OperationContainer.js +9 -0
- package/dist/components/OCR_COM/components/PaginationOcr.d.ts +2 -0
- package/dist/components/OCR_COM/components/PaginationOcr.js +20 -0
- package/dist/components/OCR_COM/components/Placeholder.d.ts +3 -0
- package/dist/components/OCR_COM/components/Placeholder.js +12 -0
- package/dist/components/OCR_COM/components/RectifyImg.d.ts +2 -0
- package/dist/components/OCR_COM/components/RectifyImg.js +102 -0
- package/dist/components/OCR_COM/components/SettingOcr.d.ts +12 -0
- package/dist/components/OCR_COM/components/SettingOcr.js +223 -0
- package/dist/components/OCR_COM/components/UploadGroup.d.ts +17 -0
- package/dist/components/OCR_COM/components/UploadGroup.js +26 -0
- package/dist/components/OCR_COM/components/UploadGroupModal.d.ts +2 -0
- package/dist/components/OCR_COM/components/UploadGroupModal.js +20 -0
- package/dist/components/OCR_COM/components/UploadOcr.d.ts +9 -0
- package/dist/components/OCR_COM/components/UploadOcr.js +115 -0
- package/dist/components/OCR_COM/components/UserList.d.ts +36 -0
- package/dist/components/OCR_COM/components/UserList.js +59 -0
- package/dist/components/OCR_COM/components/UserOcr.d.ts +14 -0
- package/dist/components/OCR_COM/components/UserOcr.js +85 -0
- package/dist/components/OCR_COM/components/UserOcrTable.d.ts +14 -0
- package/dist/components/OCR_COM/components/UserOcrTable.js +120 -0
- package/dist/components/OCR_COM/components/index.d.ts +15 -0
- package/dist/components/OCR_COM/components/index.js +15 -0
- package/dist/components/OCR_COM/constants.d.ts +1 -0
- package/dist/components/OCR_COM/constants.js +2 -0
- package/dist/components/OCR_COM/copyIndex.d.ts +30 -0
- package/dist/components/OCR_COM/copyIndex.js +154 -0
- package/dist/components/OCR_COM/hooks/index.d.ts +12 -0
- package/dist/components/OCR_COM/hooks/index.js +12 -0
- package/dist/components/OCR_COM/hooks/useCamera.d.ts +5 -0
- package/dist/components/OCR_COM/hooks/useCamera.js +12 -0
- package/dist/components/OCR_COM/hooks/useDictionary.d.ts +11 -0
- package/dist/components/OCR_COM/hooks/useDictionary.js +56 -0
- package/dist/components/OCR_COM/hooks/useDrawImgFile.d.ts +30 -0
- package/dist/components/OCR_COM/hooks/useDrawImgFile.js +242 -0
- package/dist/components/OCR_COM/hooks/useFiles.d.ts +28 -0
- package/dist/components/OCR_COM/hooks/useFiles.js +111 -0
- package/dist/components/OCR_COM/hooks/useLoading.d.ts +8 -0
- package/dist/components/OCR_COM/hooks/useLoading.js +12 -0
- package/dist/components/OCR_COM/hooks/useOcrIdentify.d.ts +8 -0
- package/dist/components/OCR_COM/hooks/useOcrIdentify.js +43 -0
- package/dist/components/OCR_COM/hooks/usePrevious.d.ts +3 -0
- package/dist/components/OCR_COM/hooks/usePrevious.js +12 -0
- package/dist/components/OCR_COM/hooks/useRectify.d.ts +13 -0
- package/dist/components/OCR_COM/hooks/useRectify.js +173 -0
- package/dist/components/OCR_COM/hooks/useRectifyServer.d.ts +6 -0
- package/dist/components/OCR_COM/hooks/useRectifyServer.js +79 -0
- package/dist/components/OCR_COM/hooks/useSetting.d.ts +27 -0
- package/dist/components/OCR_COM/hooks/useSetting.js +288 -0
- package/dist/components/OCR_COM/hooks/useUser.d.ts +14 -0
- package/dist/components/OCR_COM/hooks/useUser.js +110 -0
- package/dist/components/OCR_COM/hooks/useUserClickItem.d.ts +7 -0
- package/dist/components/OCR_COM/hooks/useUserClickItem.js +35 -0
- package/dist/components/OCR_COM/hooks/useUserClickRow.d.ts +7 -0
- package/dist/components/OCR_COM/hooks/useUserClickRow.js +38 -0
- package/dist/components/OCR_COM/index.d.ts +32 -0
- package/dist/components/OCR_COM/index.js +207 -0
- package/dist/components/OCR_COM/utils.d.ts +10 -0
- package/dist/components/OCR_COM/utils.js +73 -0
- package/dist/components/PrintContainer/handle.js +117 -47
- package/dist/components/PrintContainer/kkJSBridge.d.ts +20 -0
- package/dist/components/PrintContainer/kkJSBridge.js +97 -0
- package/dist/components/PrintContainer/print-container.d.ts +11 -0
- package/dist/components/PrintContainer/print-container.js +376 -433
- package/dist/components/PrintContainer/sealHooks.d.ts +19 -0
- package/dist/components/PrintContainer/sealHooks.js +215 -0
- package/dist/components/PrintContainer/service.d.ts +14 -0
- package/dist/components/PrintContainer/service.js +238 -2
- package/dist/components/PrintContainer/useAboutExport.d.ts +7 -0
- package/dist/components/PrintContainer/useAboutExport.js +134 -0
- package/dist/components/PrintContainer/useFont.d.ts +5 -0
- package/dist/components/PrintContainer/useFont.js +74 -0
- package/dist/components/PrintContainer/utils.js +7 -6
- package/dist/components/ProForm/hooks.js +0 -13
- package/dist/components/ProForm/index.js +21 -24
- package/dist/components/ProForm/interface.d.ts +0 -6
- package/dist/components/ProForm/setting.js +1 -1
- package/dist/components/ProModal/index.js +0 -1
- package/dist/components/ProTable/hooks.js +7 -0
- package/dist/components/ProTable/index.js +1 -0
- package/dist/components/Table/hooks/useColumns.d.ts +4 -6
- package/dist/components/Table/hooks/useColumns.js +12 -35
- package/dist/components/Table/hooks/useDropRef.js +0 -1
- package/dist/components/Table/hooks/useSelectSubtotal.d.ts +4 -0
- package/dist/components/Table/hooks/useSelectSubtotal.js +135 -0
- package/dist/components/Table/index.d.ts +2 -4
- package/dist/components/Table/table-adddel-column.d.ts +4 -6
- package/dist/components/Table/table-adddel-column.js +4 -12
- package/dist/components/Table/table-dynamic.js +65 -9
- package/dist/components/Table/table-enhance-cell.js +38 -4
- package/dist/components/Table/table.d.ts +4 -8
- package/dist/components/Table/table.js +135 -32
- package/dist/components/Table/utils/dom.d.ts +26 -0
- package/dist/components/Table/utils/dom.js +122 -0
- package/dist/components/Table/utils/validate.d.ts +1 -1
- package/dist/components/Table/utils/validate.js +5 -2
- package/dist/components/Tabs/tabs.d.ts +2 -2
- package/dist/components/TimePicker/time-picker.d.ts +1 -0
- package/dist/components/Upload/upload-table.js +28 -11
- package/dist/components/Upload/upload.d.ts +1 -0
- package/dist/components/Upload/upload.js +15 -3
- package/dist/components/Upload/utils.js +17 -1
- package/dist/components/ZtIcon/index.js +4 -1
- package/dist/components/basic/message.js +7 -6
- package/dist/components/business/CodeQuery/component/SearchForm.js +1 -1
- package/dist/components/business/CodeQuery/hooks.js +1 -1
- package/dist/components/business/Common/UserForgetPassword/index.js +19 -9
- package/dist/components/business/Common/UserInfo/index.js +5 -3
- package/dist/components/business/Common/UserPassword/index.d.ts +1 -0
- package/dist/components/business/Common/UserPassword/index.js +42 -14
- package/dist/components/business/Container/container.js +19 -19
- package/dist/components/business/Container/operation-middle.js +1 -1
- package/dist/components/business/DgColumns/index.js +1 -1
- package/dist/components/business/SearchContainer/hooks/useDynamic.js +133 -40
- package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
- package/dist/components/business/SearchContainer/hooks/useToggle.js +0 -1
- package/dist/components/business/SearchContainer/search-container.d.ts +6 -0
- package/dist/components/business/SearchContainer/search-container.js +8 -2
- package/dist/components/business/SearchContainer/search-drawer.js +1 -1
- package/dist/components/business/SearchContainer/search-item.d.ts +2 -3
- package/dist/components/business/SearchContainer/search-item.js +21 -7
- package/dist/components/business/SearchContainer/search-left.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-left.js +21 -51
- package/dist/components/business/SearchContainer/search-right.d.ts +2 -0
- package/dist/components/business/SearchContainer/search-right.js +56 -5
- package/dist/components/business/Signatures/components/AttachOperation.js +16 -1
- package/dist/components/business/Signatures/components/CodeModal.d.ts +3 -0
- package/dist/components/business/Signatures/components/CodeModal.js +144 -0
- package/dist/components/business/Signatures/components/CompareResult.js +1 -1
- package/dist/components/business/Signatures/components/DetailTable.d.ts +3 -0
- package/dist/components/business/Signatures/components/DetailTable.js +37 -17
- package/dist/components/business/Signatures/components/QunjSeal.js +2 -2
- package/dist/components/business/Signatures/components/SealCheckbox.js +1 -0
- package/dist/components/business/Signatures/hooks.js +7 -0
- package/dist/components/business/Signatures/index.js +131 -94
- package/dist/components/business/Signatures/props.d.ts +10 -0
- package/dist/components/business/Template/index.js +1 -1
- package/dist/components/utils/ZtxkContext.d.ts +7 -0
- package/dist/components/utils/ZtxkContext.js +7 -0
- package/dist/components/utils/upload.js +1 -0
- package/dist/components/utils/useAsr.d.ts +92 -0
- package/dist/components/utils/useAsr.js +508 -0
- package/dist/components/utils/useBaseContext.d.ts +5 -0
- package/dist/components/utils/useBaseContext.js +10 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/hooks/useFormatter.d.ts +4 -0
- package/dist/hooks/useFormatter.js +63 -3
- package/dist/index.css +935 -51
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.js +95 -95
- package/package.json +12 -6
- package/dist/components/EmptyText/empty-text.d.ts +0 -8
- package/dist/components/EmptyText/empty-text.js +0 -13
- package/dist/components/EmptyText/index.d.ts +0 -2
- package/dist/components/EmptyText/index.js +0 -2
- package/dist/components/Table/components/FillDown.d.ts +0 -8
- package/dist/components/Table/components/FillDown.js +0 -10
- package/dist/components/utils/fetch.d.ts +0 -14
- package/dist/components/utils/fetch.js +0 -116
- package/dist/speed.d.ts +0 -2
- package/dist/speed.js +0 -25
package/dist/App.js
CHANGED
|
@@ -1209,7 +1209,7 @@ function App() {
|
|
|
1209
1209
|
React.createElement(DetailList, { records: inspectionDetail, labelWidth: 10, labelAlign: "center", apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", previewBtnDisable: true, hasManOrDate: true, hasSignArea: true }),
|
|
1210
1210
|
React.createElement(DetailList, { records: inspectionDetail, labelWidth: 10, labelAlign: "right", apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", previewBtnDisable: true, hasManOrDate: true, hasSignArea: true }),
|
|
1211
1211
|
React.createElement(DetailList, { apiBaseUrl: "http://192.168.0.83:8888", fileBaseUrl: "http://192.168.0.83:88", hasSignArea: true, isDark: true, labelWidth: 10 }),
|
|
1212
|
-
inspectionData.map(function (item
|
|
1212
|
+
inspectionData.map(function (item) {
|
|
1213
1213
|
var inspectionDesc = [
|
|
1214
1214
|
{ title: '巡检人', content: item.inspectionMan },
|
|
1215
1215
|
{ title: '上传时间', content: item.inspectionTime },
|
|
@@ -1228,7 +1228,7 @@ function App() {
|
|
|
1228
1228
|
return itemObj;
|
|
1229
1229
|
});
|
|
1230
1230
|
}
|
|
1231
|
-
return (React.createElement(DetailCard, { title: item.inspectionName, desc: inspectionDesc, records: records
|
|
1231
|
+
return (React.createElement(DetailCard, { title: item.inspectionName, desc: inspectionDesc, records: records }));
|
|
1232
1232
|
}),
|
|
1233
1233
|
React.createElement(Upload, { method: "post", headers: {
|
|
1234
1234
|
'Zmdms-Auth': 'bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJtZW1iZXJfdHlwZSI6MSwiaGFuZGxlX2hyX3Bob25lIjpudWxsLCJpbmR1Y3Rpb25fc291cmNlX3R5cGUiOm51bGwsInJlc3VtZV9kYXRlIjpudWxsLCJ1c2VyX25hbWUiOiJZRzIxMDE0IiwiaW10X2lkIjpudWxsLCJyZWFsX25hbWUiOiLpmYjkuprpm4QiLCJjbGllbnRfdHlwZSI6IndlYiIsImRhdGFfcm9sZV9pZCI6IjEzNDM0OTA2ODYyNjAyMjgwOTcsMTM0NTk3ODUwNTMwMjA1Njk2MiIsImNsaWVudF9pZCI6InN3b3JkIiwiZW1wbG95bWVudF9mb3JtX3R5cGUiOm51bGwsInVzZXJfdHlwZSI6IndlYiIsInJvbGVfaWQiOiIxMTIzNTk4ODE2NzM4Njc1MjAxLDEzNDM0OTA0MjUwMDEyMjYyNDIiLCJwb3N0X25hbWUiOm51bGwsInNjb3BlIjpbImFsbCJdLCJpbnRlcnZpZXdfaWQiOm51bGwsImV4cCI6MTYzMjQ2NzEyNSwianRpIjoiZmNiZTYwYWEtOTJjOC00ODhjLTgxYTUtOTQ2ZDJiYzJiNDM4IiwibWVtYmVyX2lkIjoxMzQ1OTkyODc4MTYyNjQ5MDkwLCJjb21wYW55X2lkIjoxMjk1OTA4NjI3OTg0NjcwNzIyLCJzeXN0ZW1faWQiOiIyIiwiZGVwdF9uYW1lIjoi5rWL6K-V6YOo6ZeoMjIxMjEyMTIiLCJhdmF0YXIiOiIiLCJkYXRhX3JvbGVfbmFtZSI6Im51bGwsbnVsbCIsImF1dGhvcml0aWVzIjpbIuWGheWLpCIsImFkbWluaXN0cmF0b3IiXSwicm9sZV9uYW1lIjoiYWRtaW5pc3RyYXRvcizlhoXli6QiLCJsaWNlbnNlIjoicG93ZXJlZCBieSB6bWRtcyIsInBvc3RfaWQiOiIiLCJ1c2VyX2lkIjoiMTM0NTk5OTc3MDM4NTU4MDAzNCIsIm5pY2tfbmFtZSI6IumZiOS6mumbhCIsImNvbXBhbnlfbmFtZSI6Iua1meWVhuS4reaLk-mbhuWbou-8iOmHjeW6hu-8ieaciemZkOWFrOWPuGxjeSIsImRlcHRfaWQiOiIxMjk1OTA5NDg4MDAxNTQwMDk3IiwiaGFuZGxlX2hyX25hbWUiOm51bGwsImFjY291bnQiOiJZRzIxMDE0IiwicmVzdW1lX2lkIjpudWxsfQ.uWW6lWQyAPWeQmTNw9w4PMYPNWHPGvhCxquaA958J5o',
|
|
@@ -1298,17 +1298,11 @@ function App() {
|
|
|
1298
1298
|
React.createElement(Checkbox, { value: "2" }, "\u5426"))),
|
|
1299
1299
|
React.createElement(SearchItem, { name: "sss", label: "", noLabelShowBg: true },
|
|
1300
1300
|
React.createElement(Checkbox, { value: "1" }, "\u662F")),
|
|
1301
|
-
React.createElement(SearchItem, { name: "
|
|
1302
|
-
React.createElement(Checkbox, { value: "1" }, "\u662Fsa")),
|
|
1303
|
-
React.createElement(SearchItem, { name: "sssd1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6Esssd1", noLabelShowBg: true, dynamicdisabled: "1" },
|
|
1304
|
-
React.createElement(Checkbox, { value: "1" }, "\u662Fa")),
|
|
1305
|
-
React.createElement(SearchItem, { name: "sss1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true, dynamicdisabled: "1" },
|
|
1306
|
-
React.createElement(Checkbox, { value: "1" }, "\u662F")),
|
|
1307
|
-
React.createElement(SearchItem, { name: "ssss1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6Es1", noLabelShowBg: true, dynamicdisabled: "1" },
|
|
1301
|
+
React.createElement(SearchItem, { name: "sss1", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true },
|
|
1308
1302
|
React.createElement(Checkbox, { value: "1" }, "\u662F")),
|
|
1309
1303
|
React.createElement(SearchItem, { name: "sss2", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true },
|
|
1310
1304
|
React.createElement(Checkbox, { value: "1" }, "\u662F")),
|
|
1311
|
-
React.createElement(SearchItem, { name: "
|
|
1305
|
+
React.createElement(SearchItem, { name: "sss2", label: "", hiddenLabelName: "\u52A8\u6001\u8868\u5355\u914D\u7F6E", noLabelShowBg: true },
|
|
1312
1306
|
React.createElement(Radio, { value: "1" }, "\u662F")),
|
|
1313
1307
|
React.createElement(SearchItem, { name: "test2", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择仓库名称' }] },
|
|
1314
1308
|
React.createElement(Radio.Group, null,
|
package/dist/Demo.js
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
1
|
import EnhanceSelect from 'components/EnhanceSelect';
|
|
13
|
-
import {
|
|
2
|
+
import { Button } from './';
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
14
4
|
import { stringify } from 'qs';
|
|
15
5
|
import { Link } from 'react-router-dom';
|
|
16
6
|
import { token } from './constants';
|
|
@@ -32,15 +22,13 @@ function Demo() {
|
|
|
32
22
|
var _e = useState(), value2 = _e[0], setValue2 = _e[1];
|
|
33
23
|
var _f = useState(), value3 = _f[0], setValue3 = _f[1];
|
|
34
24
|
var _g = useState('0'), selectVal = _g[0], setSelectVal = _g[1];
|
|
35
|
-
var _h = useState(''), value4 = _h[0], setValue4 = _h[1];
|
|
36
|
-
var _j = useState(''), value5 = _j[0], setValue5 = _j[1];
|
|
37
25
|
var params = useState({
|
|
38
26
|
tenantId: '000000',
|
|
39
27
|
isCreateUser: 0,
|
|
40
28
|
})[0];
|
|
41
|
-
var
|
|
29
|
+
var _h = useState(JSON.stringify({
|
|
42
30
|
status: 50,
|
|
43
|
-
})), params1 =
|
|
31
|
+
})), params1 = _h[0], setParams1 = _h[1];
|
|
44
32
|
// 模拟接口请求
|
|
45
33
|
useEffect(function () {
|
|
46
34
|
var timeoutId = setTimeout(function () {
|
|
@@ -76,26 +64,14 @@ function Demo() {
|
|
|
76
64
|
}
|
|
77
65
|
};
|
|
78
66
|
}, []);
|
|
79
|
-
var
|
|
80
|
-
var preValue = useRef('');
|
|
81
|
-
var onChangeHandle = function (value, option, fullData) {
|
|
82
|
-
byChangeRef.current = true;
|
|
83
|
-
};
|
|
84
|
-
var newParams = useMemo(function () {
|
|
85
|
-
var byChange = byChangeRef.current;
|
|
86
|
-
byChangeRef.current = false;
|
|
87
|
-
try {
|
|
88
|
-
if (!byChange) {
|
|
89
|
-
preValue.current = value4 ? value4 + '' : '';
|
|
90
|
-
}
|
|
91
|
-
return JSON.stringify(__assign(__assign({}, params), { id: preValue.current }));
|
|
92
|
-
}
|
|
93
|
-
catch (err) {
|
|
94
|
-
return JSON.stringify(params);
|
|
95
|
-
}
|
|
96
|
-
}, [params, value4]);
|
|
67
|
+
var _j = useState(1), num = _j[0], setNum = _j[1];
|
|
97
68
|
return (React.createElement("div", { style: { height: 2000 } },
|
|
98
69
|
React.createElement(Link, { to: "/test" }, "test"),
|
|
70
|
+
React.createElement("div", { onClick: function () {
|
|
71
|
+
setNum(num + 1);
|
|
72
|
+
} },
|
|
73
|
+
"\u8BBE\u7F6E",
|
|
74
|
+
num),
|
|
99
75
|
React.createElement("div", null,
|
|
100
76
|
React.createElement(EnhanceSelect, { style: selectStyle, list: list, isHandAddItem: true, value: value1, showAll: true, onChange: function (value) {
|
|
101
77
|
console.log(value, typeof value);
|
|
@@ -139,28 +115,44 @@ function Demo() {
|
|
|
139
115
|
console.log(value, value3);
|
|
140
116
|
} }, "\u83B7\u53D6\u6570\u636E"),
|
|
141
117
|
React.createElement("p", null, "\u8FDC\u7A0B\u641C\u7D22"),
|
|
142
|
-
React.createElement(
|
|
143
|
-
React.createElement("button", { onClick: function () {
|
|
144
|
-
setValue4(value5);
|
|
145
|
-
} }, "\u8BBE\u7F6E\u6570\u636E"),
|
|
146
|
-
React.createElement(EnhanceSelect, { value: value4, style: selectStyle,
|
|
118
|
+
React.createElement(EnhanceSelect, { style: selectStyle,
|
|
147
119
|
// defaultList={list}
|
|
148
|
-
placeholder: "\u53EF\u8FDC\u7A0B\u6A21\u7CCA\u641C\u7D22", url: "http://192.168.0.83:8000/api/zmdms-system/employee/page", request: request, remoteSearch: true,
|
|
149
|
-
// isHandAddItem
|
|
150
|
-
isRemoteSearchDataKey: false, dataKey: "id", titleKey: "empName",
|
|
151
|
-
// showAll
|
|
120
|
+
placeholder: "\u53EF\u8FDC\u7A0B\u6A21\u7CCA\u641C\u7D22", url: "http://192.168.0.83:8000/api/zmdms-system/employee/page", request: request, remoteSearch: true, isHandAddItem: true, isRemoteSearchDataKey: false, dataKey: "id", titleKey: "empName", value: value, showAll: true,
|
|
152
121
|
// isPaste
|
|
153
122
|
onChange: function (value, option, fullData) {
|
|
154
123
|
console.log(value);
|
|
155
124
|
setValue(value);
|
|
156
|
-
}, params:
|
|
125
|
+
}, params: JSON.stringify(params),
|
|
157
126
|
// value={value}
|
|
158
|
-
|
|
159
|
-
|
|
127
|
+
mode: "multiple", isPage: true,
|
|
128
|
+
// defaultList={defaultList}
|
|
129
|
+
isClickRequest: true }),
|
|
160
130
|
React.createElement("p", null, "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E"),
|
|
161
|
-
React.createElement(EnhanceSelect, { style: selectStyle, placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E",
|
|
162
|
-
|
|
131
|
+
React.createElement(EnhanceSelect, { style: selectStyle, placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E",
|
|
132
|
+
// url="http://192.168.0.83:8000/api/zmdms-system/company/list"
|
|
133
|
+
request: request,
|
|
134
|
+
// dataKey="id"
|
|
135
|
+
// titleKey="name"
|
|
136
|
+
// isPaste
|
|
137
|
+
// mode="multiple"
|
|
138
|
+
value: value3, isCatch: true, onChange: function (value, option, fullData) {
|
|
139
|
+
console.log(value);
|
|
163
140
|
setValue3(value);
|
|
141
|
+
}, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-scm-accounting/advancepaymentoverdue/getOveStatusEnum", method: "GET",
|
|
142
|
+
// isCatch
|
|
143
|
+
// request={request}
|
|
144
|
+
transformData: function (res) {
|
|
145
|
+
var dataList = [];
|
|
146
|
+
for (var item in res.data.data) {
|
|
147
|
+
dataList.push({ key: item, name: res.data.data[item] });
|
|
148
|
+
}
|
|
149
|
+
res.data.data = dataList;
|
|
150
|
+
return res;
|
|
151
|
+
}, dropdownRenderBtns: function () {
|
|
152
|
+
return (React.createElement(Button, { onClick: function (e) {
|
|
153
|
+
e.preventDefault();
|
|
154
|
+
console.log(111);
|
|
155
|
+
} }, "\u6D4B\u8BD5"));
|
|
164
156
|
} }),
|
|
165
157
|
React.createElement("p", null, "\u5F02\u6B65\u83B7\u53D6\u6570\u636E"),
|
|
166
158
|
React.createElement("button", { onClick: function () {
|
|
@@ -2,7 +2,7 @@ import Collapse from 'components/Collapse';
|
|
|
2
2
|
import GridList from 'components/business/NewList';
|
|
3
3
|
function CollapseDemo() {
|
|
4
4
|
return (React.createElement("div", { style: { padding: 20 } },
|
|
5
|
-
React.createElement(Collapse, { showBackground: true },
|
|
5
|
+
React.createElement(Collapse, { showBackground: true, collapsible: "icon" },
|
|
6
6
|
React.createElement(Collapse.Panel, { key: "1", header: "\u4E2A\u4EBA\u4FE1\u606F" },
|
|
7
7
|
React.createElement(GridList, null,
|
|
8
8
|
React.createElement(GridList.FormItem, { span: 8, title: "\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5\u6D4B\u8BD5", showDiff: true, isBlod: true }, "\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1\u518D\u89C1"),
|
package/dist/DemoCom/FormDemo.js
CHANGED
|
@@ -9,18 +9,36 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import React, { useState, useMemo, useRef } from 'react';
|
|
12
|
+
import React, { useState, useMemo, useRef, useEffect } from 'react';
|
|
13
13
|
import SearchContainer from '../components/business/SearchContainer';
|
|
14
14
|
import Form from '../components/Form';
|
|
15
15
|
import Input from '../components/Input';
|
|
16
16
|
import Select from '../components/Select';
|
|
17
|
-
import EnhanceSelect from '../components/EnhanceSelect';
|
|
18
17
|
import DatePicker from '../components/DatePicker';
|
|
19
18
|
import Checkbox from '../components/Checkbox';
|
|
20
19
|
import Radio from '../components/Radio';
|
|
21
20
|
import InputNumber from '../components/InputNumber';
|
|
21
|
+
import EnhanceSelect from '../components/EnhanceSelect';
|
|
22
|
+
import { TreeSelect } from '../index';
|
|
23
|
+
import { stringify } from 'qs';
|
|
24
|
+
import { token } from '../constants';
|
|
25
|
+
import Button from 'components/Button';
|
|
26
|
+
import { Tooltip } from 'antd';
|
|
27
|
+
import { SwapOutlined } from '@ant-design/icons';
|
|
22
28
|
var SearchItem = SearchContainer.SearchItem, SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight;
|
|
23
29
|
var RangePicker = DatePicker.RangePicker;
|
|
30
|
+
function request(options) {
|
|
31
|
+
return fetch(options.url + "?" + stringify(options.params), {
|
|
32
|
+
headers: {
|
|
33
|
+
'Zmdms-Auth': "bearer " + token,
|
|
34
|
+
},
|
|
35
|
+
method: options.method,
|
|
36
|
+
})
|
|
37
|
+
.then(function (response) { return response.json(); })
|
|
38
|
+
.then(function (res) {
|
|
39
|
+
return { status: 200, data: res };
|
|
40
|
+
});
|
|
41
|
+
}
|
|
24
42
|
var configInfo = {
|
|
25
43
|
pwNoCopy: {
|
|
26
44
|
isRequired: 1,
|
|
@@ -47,11 +65,6 @@ var configInfo = {
|
|
|
47
65
|
isChangeable: 1,
|
|
48
66
|
isDisplay: 1,
|
|
49
67
|
},
|
|
50
|
-
type77: {
|
|
51
|
-
isRequired: 1,
|
|
52
|
-
isChangeable: 1,
|
|
53
|
-
isDisplay: 1,
|
|
54
|
-
},
|
|
55
68
|
};
|
|
56
69
|
var getCustomDom = function () {
|
|
57
70
|
return (React.createElement(React.Fragment, { key: "search-form-fragment-id" },
|
|
@@ -60,38 +73,157 @@ var getCustomDom = function () {
|
|
|
60
73
|
React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
|
|
61
74
|
React.createElement(Select, null)),
|
|
62
75
|
React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
|
|
63
|
-
React.createElement(Input.TextArea, {
|
|
76
|
+
React.createElement(Input.TextArea, { showCount: true, rows: 3, handleSize: true })),
|
|
77
|
+
React.createElement(SearchItem, { name: "type6", width: "all", label: "\u4F60\u597D" },
|
|
78
|
+
React.createElement(Input.TextArea, { showCount: {
|
|
79
|
+
formatter: function () { return '111'; },
|
|
80
|
+
}, maxLength: 10 })),
|
|
81
|
+
React.createElement(SearchItem, { name: "type611", label: "\u4F60\u597D111" },
|
|
82
|
+
React.createElement(TreeSelect, { treeData: [
|
|
83
|
+
{ key: '1', title: '小明' },
|
|
84
|
+
{ key: '2', title: '小虎' },
|
|
85
|
+
{ key: '3', title: '小明' },
|
|
86
|
+
{ key: '4', title: '小虎' },
|
|
87
|
+
{ key: '5', title: '小明' },
|
|
88
|
+
{ key: '6', title: '小虎' },
|
|
89
|
+
{ key: '7', title: '小明' },
|
|
90
|
+
{ key: '8', title: '小虎' },
|
|
91
|
+
{ key: '9', title: '小明' },
|
|
92
|
+
{ key: '10', title: '小虎' },
|
|
93
|
+
{ key: '11', title: '小明' },
|
|
94
|
+
{ key: '21', title: '小虎' },
|
|
95
|
+
{ key: '31', title: '小明' },
|
|
96
|
+
{ key: '41', title: '小虎' },
|
|
97
|
+
{ key: '51', title: '小明' },
|
|
98
|
+
{ key: '61', title: '小虎' },
|
|
99
|
+
{ key: '71', title: '小明' },
|
|
100
|
+
{ key: '81', title: '小虎' },
|
|
101
|
+
{ key: '91', title: '小明' },
|
|
102
|
+
{ key: '101', title: '小虎' },
|
|
103
|
+
], treeCheckable: true, allowClear: true })),
|
|
104
|
+
React.createElement(SearchItem, { name: "type6112", label: "\u4F60\u597D111" },
|
|
105
|
+
React.createElement(EnhanceSelect, { dataKey: "key", titleKey: "title", mode: "multiple", list: [
|
|
106
|
+
{ key: '1', title: '小明' },
|
|
107
|
+
{ key: '2', title: '小虎' },
|
|
108
|
+
{ key: '3', title: '小明' },
|
|
109
|
+
{ key: '4', title: '小虎' },
|
|
110
|
+
{ key: '5', title: '小明' },
|
|
111
|
+
{ key: '6', title: '小虎' },
|
|
112
|
+
{ key: '7', title: '小明' },
|
|
113
|
+
{ key: '8', title: '小虎' },
|
|
114
|
+
{ key: '9', title: '小明' },
|
|
115
|
+
{ key: '10', title: '小虎' },
|
|
116
|
+
{ key: '11', title: '小明' },
|
|
117
|
+
{ key: '21', title: '小虎' },
|
|
118
|
+
{ key: '31', title: '小明' },
|
|
119
|
+
{ key: '41', title: '小虎' },
|
|
120
|
+
{ key: '51', title: '小明' },
|
|
121
|
+
{ key: '61', title: '小虎' },
|
|
122
|
+
{ key: '71', title: '小明' },
|
|
123
|
+
{ key: '81', title: '小虎' },
|
|
124
|
+
{ key: '91', title: '小明' },
|
|
125
|
+
{ key: '101', title: '小虎' },
|
|
126
|
+
] })),
|
|
127
|
+
React.createElement(SearchItem, { name: "type61123", label: "\u4F60\u597D111" },
|
|
128
|
+
React.createElement(EnhanceSelect, { dataKey: "key", titleKey: "title", mode: "multiple", list: [
|
|
129
|
+
{ key: '1', title: '小明' },
|
|
130
|
+
{ key: '2', title: '小虎' },
|
|
131
|
+
{ key: '3', title: '小明' },
|
|
132
|
+
{ key: '4', title: '小虎' },
|
|
133
|
+
{ key: '5', title: '小明' },
|
|
134
|
+
{ key: '6', title: '小虎' },
|
|
135
|
+
{ key: '7', title: '小明' },
|
|
136
|
+
{ key: '8', title: '小虎' },
|
|
137
|
+
{ key: '9', title: '小明' },
|
|
138
|
+
{ key: '10', title: '小虎' },
|
|
139
|
+
{ key: '11', title: '小明' },
|
|
140
|
+
{ key: '21', title: '小虎' },
|
|
141
|
+
{ key: '31', title: '小明' },
|
|
142
|
+
{ key: '41', title: '小虎' },
|
|
143
|
+
{ key: '51', title: '小明' },
|
|
144
|
+
{ key: '61', title: '小虎' },
|
|
145
|
+
{ key: '71', title: '小明' },
|
|
146
|
+
{ key: '81', title: '小虎' },
|
|
147
|
+
{ key: '91', title: '小明' },
|
|
148
|
+
{ key: '101', title: '小虎' },
|
|
149
|
+
] }))));
|
|
64
150
|
};
|
|
65
151
|
var FormDemo = function () {
|
|
66
152
|
var form = Form.useForm()[0];
|
|
67
|
-
var _a = useState('
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
153
|
+
var _a = useState('1'), status = _a[0], setStatus = _a[1];
|
|
154
|
+
var _b = useState({}), formData = _b[0], setFormData = _b[1];
|
|
155
|
+
var _c = useState(1), num = _c[0], setNum = _c[1];
|
|
156
|
+
var _d = useState(0), drafterMode = _d[0], setDrafterMode = _d[1]; // 0 模糊匹配,普通搜索栏 1 多选匹配,用户为下拉框格式
|
|
157
|
+
useEffect(function () {
|
|
158
|
+
form.setFieldsValue(formData);
|
|
159
|
+
}, [formData, form]);
|
|
72
160
|
var configInfoMemo = useMemo(function () {
|
|
73
161
|
return __assign(__assign({}, configInfo), { startTime: __assign(__assign({}, configInfo === null || configInfo === void 0 ? void 0 : configInfo.startTime), { isDisplay: status === '1' ? true : false }) });
|
|
74
162
|
}, [status]);
|
|
75
163
|
var handleRef = useRef(null);
|
|
76
164
|
return (React.createElement(React.Fragment, null,
|
|
77
|
-
React.createElement(Form, { name: "test-list", form: form
|
|
165
|
+
React.createElement(Form, { name: "test-list", form: form, onKeyDown: function (event) {
|
|
166
|
+
if (event.key === 'Enter') {
|
|
167
|
+
event.preventDefault();
|
|
168
|
+
event.stopPropagation();
|
|
169
|
+
console.log('提交');
|
|
170
|
+
}
|
|
171
|
+
} },
|
|
78
172
|
React.createElement(SearchContainer, { dark: true },
|
|
79
|
-
React.createElement(SearchLeft
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
173
|
+
React.createElement(SearchLeft
|
|
174
|
+
// configInfo={configInfoMemo}
|
|
175
|
+
, {
|
|
176
|
+
// configInfo={configInfoMemo}
|
|
177
|
+
isDynamic: true, dynamicStorageKey: "symbol-key-00001", isToggle: true, toggleNum: 16, handleRef: handleRef },
|
|
178
|
+
React.createElement(SearchItem, { name: "applyPersonName1", label: "\u8D77\u8349\u4EBA" },
|
|
179
|
+
React.createElement(Input, { allowClear: true })),
|
|
180
|
+
React.createElement(SearchItem, { name: "applyPersonName2", label: "\u8D77\u8349\u4EBA", suffix: React.createElement(React.Fragment, null) },
|
|
181
|
+
React.createElement(Input, { allowClear: true })),
|
|
182
|
+
React.createElement(SearchItem, { name: "applyPersonName3", label: "\u8D77\u8349\u4EBA", suffix: React.createElement(React.Fragment, null, drafterMode === 0 ? (React.createElement(Tooltip, { title: "\u5207\u6362\u6210\u9009\u62E9\u6846" },
|
|
183
|
+
React.createElement(Button, { style: {
|
|
184
|
+
paddingTop: 0,
|
|
185
|
+
paddingBottom: 0,
|
|
186
|
+
}, agentClick: false, type: "text", icon: React.createElement(SwapOutlined, null), onClick: function () {
|
|
187
|
+
setDrafterMode(1);
|
|
188
|
+
} }))) : (React.createElement(Tooltip, { title: "\u5207\u6362\u6210\u641C\u7D22\u6846" },
|
|
189
|
+
React.createElement(Button, { style: {
|
|
190
|
+
paddingTop: 0,
|
|
191
|
+
paddingBottom: 0,
|
|
192
|
+
}, agentClick: false, type: "text", icon: React.createElement(SwapOutlined, null), onClick: function () {
|
|
193
|
+
setDrafterMode(0);
|
|
194
|
+
} })))) }, drafterMode === 0 ? (React.createElement(Input, { allowClear: true })) : (React.createElement(Select, { mode: "multiple", allowClear: true },
|
|
195
|
+
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
196
|
+
React.createElement(Select.Option, { value: "0" }, "\u5426"),
|
|
197
|
+
React.createElement(Select.Option, { value: "2" }, "\u542622133123"),
|
|
198
|
+
React.createElement(Select.Option, { value: "3" }, "\u5426312312"),
|
|
199
|
+
React.createElement(Select.Option, { value: "4" }, "\u5426"),
|
|
200
|
+
React.createElement(Select.Option, { value: "5" }, "\u5426"),
|
|
201
|
+
React.createElement(Select.Option, { value: "6" }, "\u662F22133123")))),
|
|
83
202
|
React.createElement(SearchItem, { width: "half", name: "pwNo", configname: "pwNoCopy", label: "\u5165\u5E93\u5355\u53F7", disabled: true, rules: [
|
|
84
203
|
{
|
|
85
204
|
required: true,
|
|
86
205
|
message: '采购基本数据-请选择入库单号',
|
|
87
206
|
},
|
|
88
207
|
] },
|
|
89
|
-
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true,
|
|
90
|
-
|
|
208
|
+
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true, onBlur: function (e) {
|
|
209
|
+
setFormData(function (preState) {
|
|
210
|
+
return __assign(__assign({}, preState), { pwNo: e.target.value });
|
|
211
|
+
});
|
|
212
|
+
} })),
|
|
213
|
+
React.createElement(SearchItem, { width: "half", name: "pwNo2", configname: "pwNoCopy1", label: "\u5165\u5E93\u5355\u53F71", disabled: true, rules: [
|
|
214
|
+
{
|
|
215
|
+
required: true,
|
|
216
|
+
message: '采购基本数据-请选择入库单号',
|
|
217
|
+
},
|
|
218
|
+
] },
|
|
219
|
+
React.createElement(Input, { allowClear: true, disabled: true, onBlur: function (e) {
|
|
220
|
+
setFormData(function (preState) {
|
|
221
|
+
return __assign(__assign({}, preState), { pwNo: e.target.value });
|
|
222
|
+
});
|
|
91
223
|
} })),
|
|
92
|
-
React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71",
|
|
224
|
+
React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71", rules: [
|
|
93
225
|
{
|
|
94
|
-
required:
|
|
226
|
+
required: true,
|
|
95
227
|
message: '采购基本数据-请选择入库单号1',
|
|
96
228
|
},
|
|
97
229
|
] },
|
|
@@ -99,20 +231,40 @@ var FormDemo = function () {
|
|
|
99
231
|
React.createElement(SearchItem, { width: "half", name: "status", label: "\u5355\u636E\u72B6\u6001" },
|
|
100
232
|
React.createElement(Select, { onChange: function (value) {
|
|
101
233
|
setStatus(value);
|
|
234
|
+
setFormData(function (preState) {
|
|
235
|
+
return __assign(__assign({}, preState), { status: value });
|
|
236
|
+
});
|
|
102
237
|
} },
|
|
103
238
|
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
104
239
|
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
105
|
-
React.createElement(SearchItem, { name: "intime",
|
|
240
|
+
React.createElement(SearchItem, { name: "intime", rules: [
|
|
241
|
+
{
|
|
242
|
+
required: true,
|
|
243
|
+
message: '采购基本数据-请选择入库单号1',
|
|
244
|
+
},
|
|
245
|
+
], configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
106
246
|
React.createElement(RangePicker, null)),
|
|
107
|
-
React.createElement(SearchItem, { name: "intime1",
|
|
247
|
+
React.createElement(SearchItem, { name: "intime1", rules: [
|
|
248
|
+
{
|
|
249
|
+
required: true,
|
|
250
|
+
message: '采购基本数据-请选择入库单号1',
|
|
251
|
+
},
|
|
252
|
+
], configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
108
253
|
React.createElement(DatePicker, null)),
|
|
109
254
|
React.createElement(SearchItem, { name: "warehouseId", label: "\u4ED3\u5E93\u540D\u79F0" },
|
|
110
255
|
React.createElement(Select, null)),
|
|
111
256
|
React.createElement(SearchItem, { name: "companyId", label: "\u516C\u53F8\u540D\u79F0" },
|
|
112
257
|
React.createElement(Select, null)),
|
|
113
258
|
React.createElement(SearchItem, { name: "companyId1", label: "\u516C\u53F8\u540D\u79F01" },
|
|
114
|
-
React.createElement(
|
|
115
|
-
|
|
259
|
+
React.createElement(EnhanceSelect, { placeholder: "\u4E00\u6B21\u6027\u52A0\u8F7D\u6570\u636E", request: request, isCatch: true, dataKey: "id", titleKey: "name", url: "http://192.168.0.83:8000/api/zmdms-scm-accounting/advancepaymentoverdue/getOveStatusEnum", method: "GET", transformData: function (res) {
|
|
260
|
+
var dataList = [];
|
|
261
|
+
for (var item in res.data.data) {
|
|
262
|
+
dataList.push({ key: item, name: res.data.data[item] });
|
|
263
|
+
}
|
|
264
|
+
res.data.data = dataList;
|
|
265
|
+
return res;
|
|
266
|
+
} })),
|
|
267
|
+
React.createElement(SearchItem, { name: "depId1", label: "\u90E8\u95E8\u540D\u79F0", width: "all", rules: [{ required: true, message: '请选择部门名称' }] },
|
|
116
268
|
React.createElement(Select, { allowClear: true },
|
|
117
269
|
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
118
270
|
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
@@ -139,27 +291,18 @@ var FormDemo = function () {
|
|
|
139
291
|
React.createElement(SearchItem, { name: "type44", width: "half", label: "\u4F60\u597D" },
|
|
140
292
|
React.createElement(Select, null)),
|
|
141
293
|
React.createElement(SearchItem, { name: "type6", width: "half", label: "\u4F60\u597D6" },
|
|
142
|
-
React.createElement(
|
|
143
|
-
{ id: '1', name: '小明' },
|
|
144
|
-
{ id: '2', name: '小红' },
|
|
145
|
-
] })),
|
|
146
|
-
React.createElement(SearchItem, { dependencies: ['type6'], noStyle: true, baseconfig: JSON.stringify({
|
|
147
|
-
name: 'type77',
|
|
148
|
-
label: '你好77',
|
|
149
|
-
}) }, function (_a) {
|
|
150
|
-
var getFieldValue = _a.getFieldValue;
|
|
151
|
-
console.log(getFieldValue('type6'));
|
|
152
|
-
return (React.createElement(SearchItem, { name: "type77", width: "all", label: "\u4F60\u597D77" },
|
|
153
|
-
React.createElement(EnhanceSelect, { list: [
|
|
154
|
-
{ id: '1', name: '小明' },
|
|
155
|
-
{ id: '2', name: '小红' },
|
|
156
|
-
] })));
|
|
157
|
-
}),
|
|
294
|
+
React.createElement(Select, null)),
|
|
158
295
|
getCustomDom()),
|
|
159
296
|
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
160
|
-
var _a;
|
|
161
|
-
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
162
297
|
console.log(form.getFieldsValue());
|
|
163
|
-
|
|
298
|
+
// handleRef.current?.setToggleHandle(false);
|
|
299
|
+
// console.log(form.getFieldsValue(), formData);
|
|
300
|
+
}, onResetHandle: function () { } }))),
|
|
301
|
+
React.createElement("button", { onClick: function () {
|
|
302
|
+
// setNum(num + 1);
|
|
303
|
+
form.validateFields();
|
|
304
|
+
} },
|
|
305
|
+
"\u8BBE\u7F6E",
|
|
306
|
+
num)));
|
|
164
307
|
};
|
|
165
308
|
export default FormDemo;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (_) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import React, { memo, useEffect } from 'react';
|
|
38
|
+
import SearchContainer from '../components/business/SearchContainer';
|
|
39
|
+
import Form from '../components/Form';
|
|
40
|
+
import Input from '../components/Input';
|
|
41
|
+
import EnhanceSelect from 'components/EnhanceSelect';
|
|
42
|
+
var SearchLeft = SearchContainer.SearchLeft, SearchRight = SearchContainer.SearchRight, Item = SearchContainer.SearchItem;
|
|
43
|
+
var options = [
|
|
44
|
+
{
|
|
45
|
+
label: '小金鱼',
|
|
46
|
+
value: '213',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: '周还会',
|
|
50
|
+
value: '333',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
for (var i = 10; i < 1000; i++) {
|
|
54
|
+
options.push({
|
|
55
|
+
label: i.toString(36) + i,
|
|
56
|
+
value: i.toString(36) + i,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
var SearchForm = function () {
|
|
60
|
+
var form = Form.useForm()[0];
|
|
61
|
+
/**
|
|
62
|
+
* 搜索数据
|
|
63
|
+
*/
|
|
64
|
+
function onSearchHandle() {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
66
|
+
return __generator(this, function (_a) {
|
|
67
|
+
console.log(form.getFieldsValue());
|
|
68
|
+
return [2 /*return*/];
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 重置表单数据
|
|
74
|
+
*/
|
|
75
|
+
function onResetHandle() {
|
|
76
|
+
form.resetFields();
|
|
77
|
+
}
|
|
78
|
+
useEffect(function () {
|
|
79
|
+
form &&
|
|
80
|
+
form.setFieldsValue({
|
|
81
|
+
type123: 12323,
|
|
82
|
+
});
|
|
83
|
+
}, [form]);
|
|
84
|
+
return (React.createElement(Form, { name: "codeQuery-making", form: form },
|
|
85
|
+
React.createElement(SearchContainer, null,
|
|
86
|
+
React.createElement(SearchLeft, null,
|
|
87
|
+
React.createElement(Item, { name: "type123", label: "\u7F16\u7801\u7C7B\u578B", width: "double", disabled: true, rules: [{ required: true, message: '请填写编码类型' }] },
|
|
88
|
+
React.createElement(Input, null)),
|
|
89
|
+
React.createElement(Item, { name: "name", label: "\u63CF\u8FF0" },
|
|
90
|
+
React.createElement(Input, { allowClear: true })),
|
|
91
|
+
React.createElement(Item, { name: "selcet", label: "\u591A\u9009\u6846" },
|
|
92
|
+
React.createElement(EnhanceSelect, { mode: "multiple", list: options, dataKey: 'value', titleKey: 'label' }))),
|
|
93
|
+
React.createElement(SearchRight, { onSearchHandle: onSearchHandle, onResetHandle: onResetHandle }))));
|
|
94
|
+
};
|
|
95
|
+
export default memo(SearchForm);
|