@bjsdistribution/dms-client-return 0.0.83 → 0.0.85
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/components/order-daily-overview/common/interface.d.ts +0 -80
- package/dist/components/order-view/hooks/AddResources.d.ts +2 -0
- package/dist/components/order-view/notes/logs/helper.d.ts +1 -2
- package/dist/components/order-view/order-actions/actions/add-resources/DocFileUpload.d.ts +3 -0
- package/dist/components/order-view/order-actions/actions/clear-booking-status/ClearBookingStatus.d.ts +3 -0
- package/dist/components/order-view/order-actions/actions/create-task-reminder/TaskModal.d.ts +4 -0
- package/dist/components/order-view/order-actions/actions/remove-from-route/RemoveFromRoute.d.ts +3 -0
- package/dist/components/order-view/order-actions/store.d.ts +15 -0
- package/dist/components/order-view/order-details/expanded-content/orders-section/Depot.d.ts +2 -0
- package/dist/components/order-view/order-resources/columns/actions/index.d.ts +12 -2
- package/dist/components/order-view/order-resources/columns/index.d.ts +1 -0
- package/dist/components/order-view/order-resources/helper.d.ts +2 -2
- package/dist/components/order-view/store.d.ts +2 -1
- package/dist/components/order-view/types.d.ts +2 -1
- package/dist/components/store.d.ts +1 -0
- package/dist/dms-client-return.cjs.development.js +2267 -1842
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +2302 -1877
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/order-daily-overview/common/interface.ts +0 -85
- package/src/components/order-daily-overview/filters/Filters.tsx +0 -56
- package/src/components/order-daily-overview/header/input/dropdown/index.tsx +0 -1
- package/src/components/order-daily-overview/header/route-header/RouterHeader.tsx +1 -35
- package/src/components/order-daily-overview/header/table-filter/TableFilter.tsx +3 -4
- package/src/components/order-daily-overview/header-filters/HeaderFilter.tsx +0 -65
- package/src/components/order-daily-overview/return-after-table/table-filters/TableFilters.tsx +1 -106
- package/src/components/order-daily-overview/store/store.ts +0 -13
- package/src/components/order-view/details-filters/left-side-filters/ActionsMenu.tsx +0 -2
- package/src/components/order-view/details-filters/left-side-filters/actions/Actions.tsx +0 -13
- package/src/components/order-view/fakedata.ts +14 -5
- package/src/components/order-view/hooks/AddResources.tsx +54 -0
- package/src/components/order-view/index.tsx +44 -3
- package/src/components/order-view/notification/FlagTemplate.tsx +1 -1
- package/src/components/order-view/notification/Tabs.tsx +0 -2
- package/src/components/order-view/order-actions/actions/add-resources/CategoryDropdown.tsx +24 -9
- package/src/components/order-view/order-actions/actions/add-resources/DocFileUpload.tsx +141 -49
- package/src/components/order-view/order-actions/actions/add-resources/DocumentTypeDropdown.tsx +28 -5
- package/src/components/order-view/order-actions/actions/add-resources/Visibility.tsx +31 -14
- package/src/components/order-view/order-actions/actions/add-resources/index.tsx +99 -11
- package/src/components/order-view/order-actions/actions/cancel-order/index.tsx +0 -4
- package/src/components/order-view/order-actions/actions/clear-booking-status/ClearBookingStatus.tsx +113 -0
- package/src/components/order-view/order-actions/actions/confirm-order/index.tsx +6 -31
- package/src/components/order-view/order-actions/actions/create-task-reminder/CreateTaskModal.tsx +3 -3
- package/src/components/order-view/order-actions/actions/create-task-reminder/TaskModal.tsx +149 -0
- package/src/components/order-view/order-actions/actions/order-lock/index.tsx +13 -1
- package/src/components/order-view/order-actions/actions/remove-from-route/RemoveFromRoute.tsx +91 -0
- package/src/components/order-view/order-actions/actions/split-order/index.tsx +15 -20
- package/src/components/order-view/order-actions/hooks/useCreateReminder.ts +0 -5
- package/src/components/order-view/order-actions/index.tsx +10 -9
- package/src/components/order-view/order-actions/store.ts +6 -0
- package/src/components/order-view/order-details/expanded-content/footer/index.tsx +6 -0
- package/src/components/order-view/order-details/expanded-content/orders-section/Carrier.tsx +29 -10
- package/src/components/order-view/order-details/expanded-content/orders-section/Depot.tsx +5 -3
- package/src/components/order-view/order-details/expanded-content/orders-section/ScheduleAfter.tsx +2 -1
- package/src/components/order-view/order-details/expanded-content/orders-section/VehicleType.tsx +3 -2
- package/src/components/order-view/order-details/expanded-content/orders-section/index.tsx +0 -3
- package/src/components/order-view/order-resources/collapsed-content/index.tsx +2 -2
- package/src/components/order-view/order-resources/columns/Date.tsx +2 -1
- package/src/components/order-view/order-resources/columns/actions/index.tsx +133 -5
- package/src/components/order-view/order-resources/columns/index.tsx +1 -0
- package/src/components/order-view/order-resources/expanded-content/index.tsx +11 -11
- package/src/components/order-view/order-resources/helper.ts +7 -1
- package/src/components/order-view/store.ts +10 -8
- package/src/components/order-view/system-event-logs/columns/index.tsx +0 -1
- package/src/components/order-view/types.ts +6 -3
- package/src/components/order-view/utils.ts +17 -1
- package/src/components/store.ts +6 -0
- package/dist/assets/PostCodeIcon.d.ts +0 -3
- package/dist/assets/icons/ArrivalIcon.d.ts +0 -3
- package/dist/assets/icons/ArrowIcon.d.ts +0 -3
- package/dist/assets/icons/AssemblyIcons.d.ts +0 -3
- package/dist/assets/icons/BarCode.d.ts +0 -3
- package/dist/assets/icons/BoxIcon.d.ts +0 -3
- package/dist/assets/icons/BoxTickIcon.d.ts +0 -3
- package/dist/assets/icons/CallIcon.d.ts +0 -3
- package/dist/assets/icons/CarIcon.d.ts +0 -3
- package/dist/assets/icons/CardsIcon.d.ts +0 -3
- package/dist/assets/icons/CbmIcon.d.ts +0 -3
- package/dist/assets/icons/ClockIcon.d.ts +0 -3
- package/dist/assets/icons/Complete.d.ts +0 -3
- package/dist/assets/icons/CompleteIcon.d.ts +0 -3
- package/dist/assets/icons/CompletedIcon.d.ts +0 -3
- package/dist/assets/icons/DeleteIcon.d.ts +0 -3
- package/dist/assets/icons/DownArrowIcon.d.ts +0 -3
- package/dist/assets/icons/DownloadIcon.d.ts +0 -3
- package/dist/assets/icons/DriverIcon.d.ts +0 -3
- package/dist/assets/icons/DropDownLarge.d.ts +0 -3
- package/dist/assets/icons/EditIcon.d.ts +0 -3
- package/dist/assets/icons/ExportIcon.d.ts +0 -3
- package/dist/assets/icons/EyeIcon.d.ts +0 -3
- package/dist/assets/icons/FailedIcon.d.ts +0 -3
- package/dist/assets/icons/HeavyItemIcon.d.ts +0 -3
- package/dist/assets/icons/InComplete.d.ts +0 -3
- package/dist/assets/icons/LargeItemIcon.d.ts +0 -3
- package/dist/assets/icons/LateIcon.d.ts +0 -3
- package/dist/assets/icons/LineIcon.d.ts +0 -3
- package/dist/assets/icons/LockIcon.d.ts +0 -3
- package/dist/assets/icons/MapIcon.d.ts +0 -3
- package/dist/assets/icons/OctaIcon.d.ts +0 -3
- package/dist/assets/icons/OntimeTrackingIcons.d.ts +0 -3
- package/dist/assets/icons/PaperIcon.d.ts +0 -3
- package/dist/assets/icons/PendingIcon.d.ts +0 -3
- package/dist/assets/icons/PersonIcon.d.ts +0 -3
- package/dist/assets/icons/PointIcon.d.ts +0 -3
- package/dist/assets/icons/PrintIcon.d.ts +0 -3
- package/dist/assets/icons/PrivateIcon.d.ts +0 -3
- package/dist/assets/icons/RecipientIcon.d.ts +0 -3
- package/dist/assets/icons/ReminderIcon.d.ts +0 -3
- package/dist/assets/icons/RightArrowIcon.d.ts +0 -3
- package/dist/assets/icons/RoundCheckbox.d.ts +0 -3
- package/dist/assets/icons/StartIcon.d.ts +0 -3
- package/dist/assets/icons/TableIcon.d.ts +0 -3
- package/dist/assets/icons/TextIcon.d.ts +0 -3
- package/dist/assets/icons/ThreeIcon.d.ts +0 -3
- package/dist/assets/icons/TickIon.d.ts +0 -3
- package/dist/assets/icons/TomtomIcon.d.ts +0 -3
- package/dist/assets/icons/TotalOrderIcon.d.ts +0 -3
- package/dist/assets/icons/TrackIcon.d.ts +0 -3
- package/dist/assets/icons/TruckIcon.d.ts +0 -3
- package/dist/assets/icons/UnlockIcon.d.ts +0 -3
- package/dist/assets/icons/UserIcon.d.ts +0 -3
- package/dist/assets/icons/VehicleIcon.d.ts +0 -3
- package/dist/assets/icons/WeightIcon.d.ts +0 -3
- package/dist/assets/icons/ZigZagIcon.d.ts +0 -3
- package/dist/components/order-daily-overview/common/PrintDropDown.d.ts +0 -8
- package/dist/components/order-daily-overview/common/css/TableStyle.d.ts +0 -21
- package/dist/components/order-daily-overview/common/css/mediaQuery.d.ts +0 -4
- package/dist/components/order-daily-overview/store/filterStore.d.ts +0 -16
- package/dist/components/order-daily-overview/store/initialValues.d.ts +0 -16
- package/dist/components/order-daily-overview/table/table-data/Fakedata.d.ts +0 -144
- package/dist/components/order-view/ProductData.d.ts +0 -14
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDownItem.d.ts +0 -8
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDownMenu.d.ts +0 -10
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropdownStyles.d.ts +0 -3
- package/dist/components/order-view/general-information/LockOrder.d.ts +0 -4
- package/dist/components/order-view/general-information/dropdowns/BjsMenu.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/CreateTask.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/SendEmail.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/SendSms.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/Tasks.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/Videos.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/ViewEpod.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/helper.d.ts +0 -1
- package/dist/components/order-view/general-information/dropdowns/index.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/AddProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/BulkUpdateProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/DeleteProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/ProductAction.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/RepackModal.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/UnReceiveProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/UpdateProducts.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/AddDefect.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/DefetcDetails.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/OtherDamage.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/RepackDetails.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/RepackProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/index.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/logsTable.d.ts +0 -3
- package/dist/components/order-view/notes/logs/columns/Details.d.ts +0 -3
- package/dist/components/order-view/notes/logs/columns/index.d.ts +0 -2
- package/dist/components/order-view/notification/OrderTemplate.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelationNote.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelationReason.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/charge-log/DeleteLogModal.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/charge-log/index.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/Dropdowns.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/EscalationModal.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/NewEscalation.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/Notes.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/index.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/upgrade/index.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/restore-products/RestoreProducts.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/update-product-type/UpdateProductType.d.ts +0 -7
- package/dist/components/order-view/order-actions/actions/update-product-type/UpdateProductTypeStyle.d.ts +0 -9
- package/dist/components/order-view/order-actions/hooks/useFetchSingleReminder.d.ts +0 -2
- package/dist/components/order-view/order-actions/hooks/useUpdateReminder.d.ts +0 -3
- package/dist/components/order-view/order-details/expanded-content/orders-section/ValueField.d.ts +0 -3
- package/dist/components/order-view/order-resources/columns/Id.d.ts +0 -3
- package/dist/components/order-view/products-info/expanded-content/productList.d.ts +0 -0
- package/dist/components/order-view/products-info/expanded-content/products/Badge.d.ts +0 -6
- package/dist/components/order-view/products-info/expanded-content/products/index.d.ts +0 -7
- package/dist/components/order-view/products-info/types.d.ts +0 -1
- package/dist/components/order-view/products-info/utils.d.ts +0 -2
- package/dist/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.d.ts +0 -3
- package/dist/components/order-view/toolbox-resources/collapsed-content/index.d.ts +0 -3
- package/dist/components/order-view/toolbox-resources/expanded-content/index.d.ts +0 -3
- package/dist/components/order-view/view-reminder/AssigneeDropdown.d.ts +0 -3
- package/dist/components/order-view/view-reminder/ViewReminder.d.ts +0 -3
- package/dist/components/order-view/view-reminder/reminder-styles.d.ts +0 -25
- package/src/assets/PostCodeIcon.tsx +0 -32
- package/src/assets/icons/ArrivalIcon.tsx +0 -11
- package/src/assets/icons/ArrowIcon.tsx +0 -11
- package/src/assets/icons/AssemblyIcons.tsx +0 -11
- package/src/assets/icons/BarCode.tsx +0 -11
- package/src/assets/icons/BoxIcon.tsx +0 -19
- package/src/assets/icons/BoxTickIcon.tsx +0 -19
- package/src/assets/icons/CallIcon.tsx +0 -9
- package/src/assets/icons/CarIcon.tsx +0 -10
- package/src/assets/icons/CardsIcon.tsx +0 -12
- package/src/assets/icons/CbmIcon.tsx +0 -11
- package/src/assets/icons/ClockIcon.tsx +0 -10
- package/src/assets/icons/Complete.tsx +0 -15
- package/src/assets/icons/CompleteIcon.tsx +0 -34
- package/src/assets/icons/CompletedIcon.tsx +0 -11
- package/src/assets/icons/DeleteIcon.tsx +0 -20
- package/src/assets/icons/DownArrowIcon.tsx +0 -18
- package/src/assets/icons/DownloadIcon.tsx +0 -26
- package/src/assets/icons/DriverIcon.tsx +0 -28
- package/src/assets/icons/DropDownLarge.tsx +0 -25
- package/src/assets/icons/EditIcon.tsx +0 -34
- package/src/assets/icons/ExportIcon.tsx +0 -14
- package/src/assets/icons/EyeIcon.tsx +0 -10
- package/src/assets/icons/FailedIcon.tsx +0 -44
- package/src/assets/icons/HeavyItemIcon.tsx +0 -36
- package/src/assets/icons/InComplete.tsx +0 -15
- package/src/assets/icons/LargeItemIcon.tsx +0 -60
- package/src/assets/icons/LateIcon.tsx +0 -12
- package/src/assets/icons/LineIcon.tsx +0 -10
- package/src/assets/icons/LockIcon.tsx +0 -35
- package/src/assets/icons/MapIcon.tsx +0 -11
- package/src/assets/icons/OctaIcon.tsx +0 -10
- package/src/assets/icons/OntimeTrackingIcons.tsx +0 -19
- package/src/assets/icons/PaperIcon.tsx +0 -10
- package/src/assets/icons/PendingIcon.tsx +0 -32
- package/src/assets/icons/PersonIcon.tsx +0 -27
- package/src/assets/icons/PointIcon.tsx +0 -10
- package/src/assets/icons/PrintIcon.tsx +0 -10
- package/src/assets/icons/PrivateIcon.tsx +0 -29
- package/src/assets/icons/RecipientIcon.tsx +0 -10
- package/src/assets/icons/ReminderIcon.tsx +0 -35
- package/src/assets/icons/RightArrowIcon.tsx +0 -15
- package/src/assets/icons/RoundCheckbox.tsx +0 -11
- package/src/assets/icons/StartIcon.tsx +0 -10
- package/src/assets/icons/TableIcon.tsx +0 -12
- package/src/assets/icons/TextIcon.tsx +0 -10
- package/src/assets/icons/ThreeIcon.tsx +0 -19
- package/src/assets/icons/TickIon.tsx +0 -10
- package/src/assets/icons/TomtomIcon.tsx +0 -23
- package/src/assets/icons/TotalOrderIcon.tsx +0 -12
- package/src/assets/icons/TrackIcon.tsx +0 -12
- package/src/assets/icons/TruckIcon.tsx +0 -20
- package/src/assets/icons/UnlockIcon.tsx +0 -35
- package/src/assets/icons/UserIcon.tsx +0 -10
- package/src/assets/icons/VehicleIcon.tsx +0 -11
- package/src/assets/icons/WeightIcon.tsx +0 -11
- package/src/assets/icons/ZigZagIcon.tsx +0 -10
- package/src/components/order-daily-overview/common/PrintDropDown.tsx +0 -100
- package/src/components/order-daily-overview/common/css/TableStyle.tsx +0 -202
- package/src/components/order-daily-overview/common/css/mediaQuery.ts +0 -13
- package/src/components/order-daily-overview/store/filterStore.ts +0 -100
- package/src/components/order-daily-overview/store/initialValues.ts +0 -16
- package/src/components/order-daily-overview/table/table-data/Fakedata.tsx +0 -432
- package/src/components/order-view/ProductData.tsx +0 -81
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/DropDownItem.tsx +0 -33
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/DropDownMenu.tsx +0 -42
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/DropdownStyles.tsx +0 -25
- package/src/components/order-view/general-information/LockOrder.tsx +0 -113
- package/src/components/order-view/general-information/dropdowns/BjsMenu.tsx +0 -66
- package/src/components/order-view/general-information/dropdowns/CreateTask.tsx +0 -34
- package/src/components/order-view/general-information/dropdowns/SendEmail.tsx +0 -14
- package/src/components/order-view/general-information/dropdowns/SendSms.tsx +0 -14
- package/src/components/order-view/general-information/dropdowns/Tasks.tsx +0 -8
- package/src/components/order-view/general-information/dropdowns/Videos.tsx +0 -8
- package/src/components/order-view/general-information/dropdowns/ViewEpod.tsx +0 -8
- package/src/components/order-view/general-information/dropdowns/helper.tsx +0 -17
- package/src/components/order-view/general-information/dropdowns/index.tsx +0 -46
- package/src/components/order-view/modalsPopup/AddProduct.tsx +0 -234
- package/src/components/order-view/modalsPopup/BulkUpdateProduct.tsx +0 -145
- package/src/components/order-view/modalsPopup/DeleteProduct.tsx +0 -117
- package/src/components/order-view/modalsPopup/ProductAction.tsx +0 -79
- package/src/components/order-view/modalsPopup/RepackModal.tsx +0 -42
- package/src/components/order-view/modalsPopup/UnReceiveProduct.tsx +0 -72
- package/src/components/order-view/modalsPopup/UpdateProducts.tsx +0 -145
- package/src/components/order-view/modalsPopup/qclogs/AddDefect.tsx +0 -135
- package/src/components/order-view/modalsPopup/qclogs/DefetcDetails.tsx +0 -97
- package/src/components/order-view/modalsPopup/qclogs/OtherDamage.tsx +0 -125
- package/src/components/order-view/modalsPopup/qclogs/RepackDetails.tsx +0 -118
- package/src/components/order-view/modalsPopup/qclogs/RepackProduct.tsx +0 -63
- package/src/components/order-view/modalsPopup/qclogs/index.tsx +0 -62
- package/src/components/order-view/modalsPopup/qclogs/logsTable.tsx +0 -74
- package/src/components/order-view/notes/logs/columns/Details.tsx +0 -56
- package/src/components/order-view/notes/logs/columns/index.tsx +0 -2
- package/src/components/order-view/notification/OrderTemplate.tsx +0 -108
- package/src/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.tsx +0 -95
- package/src/components/order-view/order-actions/actions/cancel-order/CancelationNote.tsx +0 -28
- package/src/components/order-view/order-actions/actions/cancel-order/CancelationReason.tsx +0 -18
- package/src/components/order-view/order-actions/actions/charge-log/DeleteLogModal.tsx +0 -39
- package/src/components/order-view/order-actions/actions/charge-log/index.tsx +0 -171
- package/src/components/order-view/order-actions/actions/escalation/Dropdowns.tsx +0 -95
- package/src/components/order-view/order-actions/actions/escalation/EscalationModal.tsx +0 -28
- package/src/components/order-view/order-actions/actions/escalation/NewEscalation.tsx +0 -139
- package/src/components/order-view/order-actions/actions/escalation/Notes.tsx +0 -36
- package/src/components/order-view/order-actions/actions/escalation/index.tsx +0 -31
- package/src/components/order-view/order-actions/actions/escalation/upgrade/index.tsx +0 -198
- package/src/components/order-view/order-actions/actions/restore-products/RestoreProducts.tsx +0 -139
- package/src/components/order-view/order-actions/actions/update-product-type/UpdateProductType.tsx +0 -365
- package/src/components/order-view/order-actions/actions/update-product-type/UpdateProductTypeStyle.tsx +0 -251
- package/src/components/order-view/order-actions/hooks/useFetchSingleReminder.ts +0 -60
- package/src/components/order-view/order-actions/hooks/useUpdateReminder.ts +0 -54
- package/src/components/order-view/order-details/expanded-content/orders-section/ValueField.tsx +0 -36
- package/src/components/order-view/order-resources/columns/Id.tsx +0 -17
- package/src/components/order-view/products-info/expanded-content/productList.tsx +0 -28
- package/src/components/order-view/products-info/expanded-content/products/Badge.tsx +0 -34
- package/src/components/order-view/products-info/expanded-content/products/index.tsx +0 -305
- package/src/components/order-view/products-info/types.ts +0 -1
- package/src/components/order-view/products-info/utils.ts +0 -14
- package/src/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.tsx +0 -37
- package/src/components/order-view/toolbox-resources/collapsed-content/index.tsx +0 -16
- package/src/components/order-view/toolbox-resources/expanded-content/index.tsx +0 -84
- package/src/components/order-view/view-reminder/AssigneeDropdown.tsx +0 -34
- package/src/components/order-view/view-reminder/ViewReminder.tsx +0 -315
- package/src/components/order-view/view-reminder/reminder-styles.tsx +0 -174
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.85",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"testEnvironment": "jest-environment-jsdom-sixteen"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@bjsdistribution/dms-component-library": "0.1.
|
|
62
|
+
"@bjsdistribution/dms-component-library": "0.1.78",
|
|
63
63
|
"@size-limit/preset-small-lib": "^11.0.1",
|
|
64
64
|
"@tippyjs/react": "^4.2.6",
|
|
65
65
|
"@types/react": "^18.2.47",
|
|
@@ -4,74 +4,6 @@ export interface TableColumn {
|
|
|
4
4
|
alwaysVisible?: boolean;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export interface TableBodyItem {
|
|
8
|
-
startFinish: {
|
|
9
|
-
status: string;
|
|
10
|
-
startTime: string;
|
|
11
|
-
endTime: string;
|
|
12
|
-
};
|
|
13
|
-
routeDetails: {
|
|
14
|
-
name: string;
|
|
15
|
-
lockRoute: boolean;
|
|
16
|
-
overnight: boolean;
|
|
17
|
-
};
|
|
18
|
-
tomtom: {
|
|
19
|
-
id: string;
|
|
20
|
-
allEventCompleted: boolean;
|
|
21
|
-
};
|
|
22
|
-
vehicle: {
|
|
23
|
-
name: string;
|
|
24
|
-
};
|
|
25
|
-
driver: {
|
|
26
|
-
pdaId: string;
|
|
27
|
-
name: string;
|
|
28
|
-
};
|
|
29
|
-
mate: {
|
|
30
|
-
pdaId: string;
|
|
31
|
-
name: string;
|
|
32
|
-
};
|
|
33
|
-
asset: {
|
|
34
|
-
id: string;
|
|
35
|
-
};
|
|
36
|
-
orders: {
|
|
37
|
-
countOrdersInRoute: number;
|
|
38
|
-
collection: boolean;
|
|
39
|
-
assembly: boolean;
|
|
40
|
-
};
|
|
41
|
-
weight: {
|
|
42
|
-
totalWeight: string;
|
|
43
|
-
overweighted: string;
|
|
44
|
-
overweightedIcon: boolean;
|
|
45
|
-
heavyItems: boolean;
|
|
46
|
-
};
|
|
47
|
-
distance: {
|
|
48
|
-
totalDistance: number;
|
|
49
|
-
};
|
|
50
|
-
duration: {
|
|
51
|
-
totalDuration: string;
|
|
52
|
-
};
|
|
53
|
-
escalations: {
|
|
54
|
-
numberOfEscalations: number;
|
|
55
|
-
};
|
|
56
|
-
crewInstructions: {
|
|
57
|
-
deliveryTeamMessage: string;
|
|
58
|
-
};
|
|
59
|
-
action: {
|
|
60
|
-
print: boolean;
|
|
61
|
-
trackerPage: boolean;
|
|
62
|
-
deBriefing: boolean;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export interface TableDataInterface {
|
|
67
|
-
tableHead: TableColumn[];
|
|
68
|
-
tableBody: TableBodyItem[];
|
|
69
|
-
}
|
|
70
|
-
export interface FilterRoute {
|
|
71
|
-
icon: string;
|
|
72
|
-
label: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
7
|
// types
|
|
76
8
|
|
|
77
9
|
export type PrintData = {
|
|
@@ -79,23 +11,6 @@ export type PrintData = {
|
|
|
79
11
|
label: string;
|
|
80
12
|
};
|
|
81
13
|
|
|
82
|
-
//route details
|
|
83
|
-
export interface TableBodyVal {
|
|
84
|
-
created: {
|
|
85
|
-
auditid: string;
|
|
86
|
-
date: string;
|
|
87
|
-
};
|
|
88
|
-
notesDetails: {
|
|
89
|
-
info: string;
|
|
90
|
-
IP: string;
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export interface NotesDataInterface {
|
|
95
|
-
tableHead: TableColumn[];
|
|
96
|
-
tableBody: TableBodyVal[];
|
|
97
|
-
}
|
|
98
|
-
|
|
99
14
|
export interface ClientData {
|
|
100
15
|
trading_as: string;
|
|
101
16
|
customer_name: string;
|
|
@@ -5,64 +5,8 @@ import {
|
|
|
5
5
|
StyledTableFilter,
|
|
6
6
|
} from './FilterStyle';
|
|
7
7
|
import BulkFilter from './BulkFilter';
|
|
8
|
-
// import { TableRowType } from '../shared/interface';
|
|
9
|
-
// import { filtersReducerAtom } from '../header-filters/filterStore';
|
|
10
|
-
// import { useApiHook } from '@bjsdistribution/dms-component-library';
|
|
11
|
-
|
|
12
|
-
// import {
|
|
13
|
-
// UsePaginationData,
|
|
14
|
-
// useCountData,
|
|
15
|
-
// useRoutesTable,
|
|
16
|
-
// } from '../store/store';
|
|
17
|
-
// import { notification } from 'antd';
|
|
18
|
-
// import { useAtom } from 'jotai';
|
|
19
8
|
|
|
20
9
|
const Filters = () => {
|
|
21
|
-
// const [, setData] = useRoutesTable();
|
|
22
|
-
// const [state] = useAtom(filtersReducerAtom);
|
|
23
|
-
// const [, setPaginationObject] = UsePaginationData();
|
|
24
|
-
// const [, setCount] = useCountData();
|
|
25
|
-
|
|
26
|
-
// Hooks
|
|
27
|
-
// const { 'x-filters': filters, 'x-pagination': pagination } = state;
|
|
28
|
-
// const {
|
|
29
|
-
// data: fetchedData,
|
|
30
|
-
// loading: apiLoading,
|
|
31
|
-
// paginationData,
|
|
32
|
-
// } = useApiHook<{
|
|
33
|
-
// data: TableRowType[];
|
|
34
|
-
// }>({
|
|
35
|
-
// endpoint: 'orders/',
|
|
36
|
-
// method: 'GET',
|
|
37
|
-
// // pagination: pagination,
|
|
38
|
-
// // filters: filters,
|
|
39
|
-
// });
|
|
40
|
-
|
|
41
|
-
// useEffect(() => {
|
|
42
|
-
// if (fetchedData && fetchedData.data) {
|
|
43
|
-
// const data = fetchedData.data;
|
|
44
|
-
// setData(data);
|
|
45
|
-
// if (paginationData !== null) {
|
|
46
|
-
// const { count, ...rest } = JSON.parse(paginationData);
|
|
47
|
-
// setPaginationObject(rest);
|
|
48
|
-
// setCount(count);
|
|
49
|
-
// } else {
|
|
50
|
-
// // console.error('Pagination data is null');
|
|
51
|
-
|
|
52
|
-
// notification.error({
|
|
53
|
-
// message: 'Error',
|
|
54
|
-
// description: 'Pagination data is null',
|
|
55
|
-
// });
|
|
56
|
-
// }
|
|
57
|
-
// }
|
|
58
|
-
// }, [apiLoading]);
|
|
59
|
-
|
|
60
|
-
// const [] = useState(true);
|
|
61
|
-
|
|
62
|
-
// const ToggleView = () => {
|
|
63
|
-
// setDataView(!DataView);
|
|
64
|
-
// };
|
|
65
|
-
|
|
66
10
|
return (
|
|
67
11
|
<>
|
|
68
12
|
<StyledFiter>
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
// import DatePicker from 'react-datepicker';
|
|
3
2
|
import 'react-datepicker/dist/react-datepicker.css';
|
|
4
|
-
import {
|
|
5
|
-
HeaderWrapper,
|
|
6
|
-
StyledFlex,
|
|
7
|
-
// GlobalFilterWrapper,
|
|
8
|
-
// DatePickerWrap,
|
|
9
|
-
} from './RouterHeaderStyle';
|
|
10
|
-
// import { useAtom } from 'jotai';
|
|
11
|
-
// import { filtersReducerAtom, usedate } from '../../store/filterStore';
|
|
3
|
+
import { HeaderWrapper, StyledFlex } from './RouterHeaderStyle';
|
|
12
4
|
import HeaderTitle from './title/HeaderTitle';
|
|
13
5
|
import Breadcrumb from './breadCrumb/BreadCrumb';
|
|
14
|
-
// import DatePickerIcon from '../../../../assets/icons/DatePickerIcon';
|
|
15
6
|
|
|
16
7
|
interface RouterHeaderProps {
|
|
17
8
|
breadcrumbTitle?: string;
|
|
@@ -24,13 +15,7 @@ const RouterHeader: React.FC<RouterHeaderProps> = ({
|
|
|
24
15
|
breadcrumbTitle = 'Clients >', // Default value
|
|
25
16
|
breadcrumbSubtitle = ' Return', // Default value
|
|
26
17
|
breadcrumbSubPart, // Optional
|
|
27
|
-
// showDateFilter = true,
|
|
28
18
|
}) => {
|
|
29
|
-
// const [, dispatch] = useAtom(filtersReducerAtom);
|
|
30
|
-
// const [today, setToday] = usedate();
|
|
31
|
-
|
|
32
|
-
// const maxDate = new Date();
|
|
33
|
-
|
|
34
19
|
return (
|
|
35
20
|
<>
|
|
36
21
|
<HeaderWrapper className="headerWrap">
|
|
@@ -43,25 +28,6 @@ const RouterHeader: React.FC<RouterHeaderProps> = ({
|
|
|
43
28
|
subPart={breadcrumbSubPart}
|
|
44
29
|
/>
|
|
45
30
|
</div>
|
|
46
|
-
{/* <GlobalFilterWrapper>
|
|
47
|
-
{showDateFilter && (
|
|
48
|
-
<DatePickerWrap>
|
|
49
|
-
<DatePicker
|
|
50
|
-
dateFormat="EEE, dd MMM yyyy"
|
|
51
|
-
selected={today}
|
|
52
|
-
onChange={(date: Date) => {
|
|
53
|
-
setToday(date);
|
|
54
|
-
dispatch({
|
|
55
|
-
type: 'SET_DATE_FILTER',
|
|
56
|
-
payload: date,
|
|
57
|
-
});
|
|
58
|
-
}}
|
|
59
|
-
maxDate={maxDate} // Disable future dates
|
|
60
|
-
/>
|
|
61
|
-
<DatePickerIcon />
|
|
62
|
-
</DatePickerWrap>
|
|
63
|
-
)}
|
|
64
|
-
</GlobalFilterWrapper> */}
|
|
65
31
|
</StyledFlex>
|
|
66
32
|
</HeaderWrapper>
|
|
67
33
|
</>
|
|
@@ -16,7 +16,6 @@ import {
|
|
|
16
16
|
} from './TableFilterStyle';
|
|
17
17
|
|
|
18
18
|
// Componets
|
|
19
|
-
// import BulkFilterIcon from '../../../assets/icons/BulkFilterIcon';
|
|
20
19
|
import CheckBoxWrapper from '../checkbox-wrapper/CheckBoxWrapper';
|
|
21
20
|
import BulkFilterIcon from '../../../../assets/icons/BulkFilterIcon';
|
|
22
21
|
|
|
@@ -62,15 +61,15 @@ const StyledTableFilter: React.FC<TableFilterProps> = ({ tableData }) => {
|
|
|
62
61
|
|
|
63
62
|
// Functions
|
|
64
63
|
const handleColumnVisibilityChange = (key: string) => {
|
|
65
|
-
setVisibleColumns((prevState
|
|
64
|
+
setVisibleColumns((prevState: any) =>
|
|
66
65
|
prevState.includes(key)
|
|
67
|
-
? prevState.filter((col:any) => col !== key)
|
|
66
|
+
? prevState.filter((col: any) => col !== key)
|
|
68
67
|
: [...prevState, key]
|
|
69
68
|
);
|
|
70
69
|
};
|
|
71
70
|
|
|
72
71
|
const toggleMenu = () => {
|
|
73
|
-
setIsDropdownOpen((prevState:any) => !prevState);
|
|
72
|
+
setIsDropdownOpen((prevState: any) => !prevState);
|
|
74
73
|
};
|
|
75
74
|
|
|
76
75
|
return (
|
|
@@ -1,73 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { CoverPage } from './Styledfilters';
|
|
3
3
|
import SelectionFilter from './SelectionFilter';
|
|
4
|
-
// import { ApiResponse } from '../../types';
|
|
5
|
-
// import { useApiHook } from '@bjsdistribution/dms-component-library';
|
|
6
|
-
// import {
|
|
7
|
-
// useActionType,
|
|
8
|
-
// useCustomerData,
|
|
9
|
-
// useLocationData,
|
|
10
|
-
// useStatusOrderData,
|
|
11
|
-
// } from '../../store';
|
|
12
4
|
|
|
13
5
|
function HeaderFilter() {
|
|
14
|
-
// const [, setCustomers] = useCustomerData();
|
|
15
|
-
// const [, setActionType] = useActionType();
|
|
16
|
-
// const [, setLocationData] = useLocationData();
|
|
17
|
-
// const [, setStatusOfOrders] = useStatusOrderData();
|
|
18
|
-
|
|
19
|
-
//API for client data
|
|
20
|
-
// const { data: fetchedCustomerData, loading: loading } = useApiHook<
|
|
21
|
-
// ApiResponse
|
|
22
|
-
// >({
|
|
23
|
-
// endpoint: `/customers/`,
|
|
24
|
-
// method: 'GET',
|
|
25
|
-
// // pagination: { page: 1, per_page: 50 },
|
|
26
|
-
// });
|
|
27
|
-
|
|
28
|
-
// //API for action type
|
|
29
|
-
// const { data: fetchedStaticData, loading: actionLoading } = useApiHook<
|
|
30
|
-
// ApiResponse
|
|
31
|
-
// >({
|
|
32
|
-
// endpoint: `/orders/getStaticData/all/`,
|
|
33
|
-
// method: 'GET',
|
|
34
|
-
// // pagination: { page: 1, per_page: 50 },
|
|
35
|
-
// });
|
|
36
|
-
|
|
37
|
-
// //API for return locations
|
|
38
|
-
// const { data: fetchedLocationData, loading: locationloading } = useApiHook<
|
|
39
|
-
// ApiResponse
|
|
40
|
-
// >({
|
|
41
|
-
// endpoint: `/return_locations/`,
|
|
42
|
-
// method: 'GET',
|
|
43
|
-
// pagination: { page: 1, per_page: 50 },
|
|
44
|
-
// });
|
|
45
|
-
|
|
46
|
-
// useEffect(() => {
|
|
47
|
-
// if (fetchedCustomerData && fetchedCustomerData?.data) {
|
|
48
|
-
// setCustomers(fetchedCustomerData?.data);
|
|
49
|
-
// }
|
|
50
|
-
// }, [loading]);
|
|
51
|
-
|
|
52
|
-
// useEffect(() => {
|
|
53
|
-
// if (fetchedStaticData && fetchedStaticData?.data) {
|
|
54
|
-
// setActionType(
|
|
55
|
-
// fetchedStaticData?.data?.flatMap(
|
|
56
|
-
// (i: any) => i?.order_product_return_action
|
|
57
|
-
// )
|
|
58
|
-
// );
|
|
59
|
-
// setStatusOfOrders(
|
|
60
|
-
// fetchedStaticData?.data?.flatMap((i: any) => i?.order_stock_alias)
|
|
61
|
-
// );
|
|
62
|
-
// }
|
|
63
|
-
// }, [actionLoading]);
|
|
64
|
-
|
|
65
|
-
// useEffect(() => {
|
|
66
|
-
// if (fetchedLocationData && fetchedLocationData?.data) {
|
|
67
|
-
// setLocationData(fetchedLocationData?.data);
|
|
68
|
-
// }
|
|
69
|
-
// }, [locationloading]);
|
|
70
|
-
|
|
71
6
|
return (
|
|
72
7
|
<CoverPage>
|
|
73
8
|
<SelectionFilter />
|
package/src/components/order-daily-overview/return-after-table/table-filters/TableFilters.tsx
CHANGED
|
@@ -1,117 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
// import { StyledBulkItem } from '../../filters/BulkFilterStyle';
|
|
4
|
-
// import SearchType from '../../header/route-header/search/SearchType';
|
|
5
2
|
import styled from 'styled-components';
|
|
6
|
-
// import DownloadIcon from '../../../../assets/icons/DownloadIcon';
|
|
7
3
|
|
|
8
4
|
const TableFilters = () => {
|
|
9
|
-
return
|
|
10
|
-
<Container>
|
|
11
|
-
{/* <TextConatiner>
|
|
12
|
-
<Text>Create Return</Text>
|
|
13
|
-
</TextConatiner> */}
|
|
14
|
-
|
|
15
|
-
{/* <StyledBulkItem>
|
|
16
|
-
<SearchType />
|
|
17
|
-
</StyledBulkItem> */}
|
|
18
|
-
{/* <IconConatiner>
|
|
19
|
-
<Mid>
|
|
20
|
-
<IconText>Export</IconText>
|
|
21
|
-
<DownloadIcon />
|
|
22
|
-
</Mid>
|
|
23
|
-
</IconConatiner> */}
|
|
24
|
-
</Container>
|
|
25
|
-
);
|
|
26
|
-
|
|
27
|
-
// return (
|
|
28
|
-
// // <StyledBulkFilterCover>
|
|
29
|
-
|
|
30
|
-
// <StyledBulkItem>
|
|
31
|
-
// <SearchType />
|
|
32
|
-
// </StyledBulkItem>
|
|
33
|
-
// /* {showTableFilter && (
|
|
34
|
-
// <StyledBulkItem>
|
|
35
|
-
// <TableFilter tableData={TableData[0].tableHead} />
|
|
36
|
-
// </StyledBulkItem>
|
|
37
|
-
// )} */
|
|
38
|
-
// // </StyledBulkFilterCover>
|
|
39
|
-
// );
|
|
5
|
+
return <Container></Container>;
|
|
40
6
|
};
|
|
41
7
|
const Container = styled.div`
|
|
42
8
|
display: flex;
|
|
43
|
-
/* align-items: flex-start; */
|
|
44
9
|
gap: 16px;
|
|
45
10
|
align-items: center;
|
|
46
11
|
`;
|
|
47
|
-
// const Mid = styled.div`
|
|
48
|
-
// display: flex;
|
|
49
|
-
// padding: 10px 10px 10px 10px;
|
|
50
|
-
// align-items: center;
|
|
51
|
-
// gap: 8px;
|
|
52
|
-
// align-self: stretch;
|
|
53
|
-
// /* border-radius: 15px 15px 15px 15px; */
|
|
54
|
-
// `;
|
|
55
|
-
|
|
56
|
-
// const TextConatiner = styled.div`
|
|
57
|
-
// display: flex;
|
|
58
|
-
// padding: 7px 12px;
|
|
59
|
-
// justify-content: center;
|
|
60
|
-
// align-items: center;
|
|
61
|
-
// gap: 2px;
|
|
62
|
-
// border-radius: 15px;
|
|
63
|
-
// background: rgba(136, 128, 117, 0.35);
|
|
64
|
-
// `;
|
|
65
|
-
// const Text = styled.div`
|
|
66
|
-
// color: #888075;
|
|
67
|
-
// font-family: "'Lato";
|
|
68
|
-
// font-size: 14px;
|
|
69
|
-
// font-style: normal;
|
|
70
|
-
// font-weight: 600;
|
|
71
|
-
// line-height: 20px;
|
|
72
|
-
// `;
|
|
73
|
-
|
|
74
|
-
// const IconConatiner = styled.div`
|
|
75
|
-
// /* display: flex;
|
|
76
|
-
// height: 34px;
|
|
77
|
-
// padding: 4px 10px;
|
|
78
|
-
// align-items: flex-start;
|
|
79
|
-
// border-radius: 8px 8px 8px 8px; */
|
|
80
|
-
|
|
81
|
-
// ///working
|
|
82
|
-
// /* box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
83
|
-
// background: #f0f2f2;
|
|
84
|
-
// border: 1px solid #e2e0db;
|
|
85
|
-
// display: flex;
|
|
86
|
-
// padding: 7px 12px;
|
|
87
|
-
// justify-content: center;
|
|
88
|
-
// align-items: center;
|
|
89
|
-
// gap: 2px;
|
|
90
|
-
// border-radius: 15px;
|
|
91
|
-
// height: 34px; */
|
|
92
|
-
// ///////
|
|
93
|
-
|
|
94
|
-
// display: flex;
|
|
95
|
-
// height: 34px;
|
|
96
|
-
// padding: 1px;
|
|
97
|
-
// align-items: flex-start;
|
|
98
|
-
// background: #f0f2f2;
|
|
99
|
-
// border: 1px solid #e2e0db;
|
|
100
|
-
// border-radius: 20px 20px 20px 20px;
|
|
101
|
-
|
|
102
|
-
// /* shadow/shadow-xs */
|
|
103
|
-
// box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
104
|
-
// `;
|
|
105
|
-
|
|
106
|
-
// const IconText = styled.div`
|
|
107
|
-
// color: #3a3630;
|
|
108
|
-
// text-align: center;
|
|
109
|
-
|
|
110
|
-
// /* body/captions */
|
|
111
|
-
// font-family: 'Lato';
|
|
112
|
-
// font-size: 13px;
|
|
113
|
-
// font-style: normal;
|
|
114
|
-
// font-weight: 400;
|
|
115
|
-
// line-height: 16px;
|
|
116
|
-
// `;
|
|
117
12
|
export default TableFilters;
|
|
@@ -117,16 +117,3 @@ const countStatus = atom<any>([]);
|
|
|
117
117
|
export const useCountData = () => {
|
|
118
118
|
return useAtom(countStatus);
|
|
119
119
|
};
|
|
120
|
-
|
|
121
|
-
//
|
|
122
|
-
// ROUTE DETAILS PAGE STATES ->
|
|
123
|
-
|
|
124
|
-
// const orderId = atom<number | undefined>(undefined);
|
|
125
|
-
// export const useOrderId = () => {
|
|
126
|
-
// return useAtom(orderId);
|
|
127
|
-
// };
|
|
128
|
-
|
|
129
|
-
// const routeInfoState = atom<OrderRecipientData>(routeInfoInitialValue);
|
|
130
|
-
// export const useRouteInfo = () => {
|
|
131
|
-
// return useAtom(routeInfoState);
|
|
132
|
-
// };
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import DropDowns from './dropdowns/DropDowns';
|
|
4
|
-
// import Actions from './actions/Actions';
|
|
5
4
|
|
|
6
5
|
const ActionsMenu = () => {
|
|
7
6
|
return (
|
|
8
7
|
<Flex>
|
|
9
8
|
<DropDowns />
|
|
10
|
-
{/* <Actions /> */}
|
|
11
9
|
</Flex>
|
|
12
10
|
);
|
|
13
11
|
};
|
|
@@ -20,19 +20,6 @@ const Actions: React.FC = () => {
|
|
|
20
20
|
name="SEND SMS"
|
|
21
21
|
onClick={() => console.log('ROUTING MAP clicked')}
|
|
22
22
|
/>
|
|
23
|
-
{/* <ActionItem
|
|
24
|
-
name="TomTom"
|
|
25
|
-
onClick={() => console.log('TomTom clicked')}
|
|
26
|
-
// icon={<TomtomIcon />}
|
|
27
|
-
/>
|
|
28
|
-
<ActionItem
|
|
29
|
-
name="Tracker"
|
|
30
|
-
onClick={() => console.log('Tracker clicked')}
|
|
31
|
-
/>
|
|
32
|
-
<ActionItem
|
|
33
|
-
name="Videos"
|
|
34
|
-
onClick={() => console.log('Videos clicked')}
|
|
35
|
-
/> */}
|
|
36
23
|
</Flex>
|
|
37
24
|
</>
|
|
38
25
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChargeLogData } from './types';
|
|
2
2
|
|
|
3
3
|
export const bjsMenu = [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
{
|
|
5
|
+
label: 'Add Order Resources',
|
|
6
|
+
value: 'add-resources',
|
|
7
|
+
},
|
|
8
8
|
{
|
|
9
9
|
label: 'Split Order',
|
|
10
10
|
value: 'split-order',
|
|
@@ -12,15 +12,24 @@ export const bjsMenu = [
|
|
|
12
12
|
];
|
|
13
13
|
|
|
14
14
|
export const optionsMenu = [
|
|
15
|
-
{ label: 'Create Reminder', value: 'create-
|
|
15
|
+
{ label: 'Create Reminder', value: 'create-reminder' },
|
|
16
|
+
{ label: 'Create Task', value: 'create-task' },
|
|
16
17
|
{ label: 'Confirm', value: 'confirm-order' },
|
|
17
18
|
{ label: 'Hold', value: 'hold-order' },
|
|
18
19
|
{ label: 'Cancel', value: 'cancel-order' },
|
|
19
20
|
{ label: 'Un Hold', value: 'unhold-order' },
|
|
21
|
+
{
|
|
22
|
+
label: 'Remove from Route',
|
|
23
|
+
value: 'remove-from-route',
|
|
24
|
+
},
|
|
20
25
|
{
|
|
21
26
|
label: 'Un-Cancel',
|
|
22
27
|
value: 'uncancel-order',
|
|
23
28
|
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Clear Booking Status',
|
|
31
|
+
value: 'clear-date',
|
|
32
|
+
},
|
|
24
33
|
// { label: 'Charge Log', value: 'charge-log' },
|
|
25
34
|
];
|
|
26
35
|
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { getBaseEndpoint } from '@bjsdistribution/dms-component-library';
|
|
2
|
+
import { notification } from 'antd';
|
|
3
|
+
import { getCookie } from '../utils';
|
|
4
|
+
import {
|
|
5
|
+
selectedCategoryIdAtom,
|
|
6
|
+
selectedDocumentTypeAtom,
|
|
7
|
+
selectedTypeAtom,
|
|
8
|
+
selectedVisibilityAtom,
|
|
9
|
+
} from '../order-actions/store';
|
|
10
|
+
import { useAtom } from 'jotai';
|
|
11
|
+
import { useOrderId } from '../store';
|
|
12
|
+
|
|
13
|
+
function useUploadFiles() {
|
|
14
|
+
const ssoToken = getCookie('id_token');
|
|
15
|
+
|
|
16
|
+
const [selectedCategoryId] = useAtom(selectedCategoryIdAtom);
|
|
17
|
+
const [selectedDocumentType] = useAtom(selectedDocumentTypeAtom);
|
|
18
|
+
const [selectedType] = useAtom(selectedTypeAtom);
|
|
19
|
+
const [orderId] = useOrderId();
|
|
20
|
+
const [selectedVisibility] = useAtom(selectedVisibilityAtom);
|
|
21
|
+
|
|
22
|
+
const create = async (formData: FormData) => {
|
|
23
|
+
const endpoint = `${getBaseEndpoint()}/orders/${orderId}/order_resources/?document_type=${selectedDocumentType}&type=${selectedType}&category=${selectedCategoryId}&visibility=${selectedVisibility}`;
|
|
24
|
+
|
|
25
|
+
try {
|
|
26
|
+
const requestOptions = {
|
|
27
|
+
headers: {
|
|
28
|
+
Authorization: `Bearer ${ssoToken}`,
|
|
29
|
+
},
|
|
30
|
+
method: 'POST',
|
|
31
|
+
body: formData,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const response = await fetch(endpoint, requestOptions);
|
|
35
|
+
if (!response.ok) {
|
|
36
|
+
throw new Error('Failed to upload files');
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const json = await response.json();
|
|
40
|
+
return json;
|
|
41
|
+
} catch (err) {
|
|
42
|
+
notification.error({
|
|
43
|
+
message: 'Error',
|
|
44
|
+
//@ts-ignore
|
|
45
|
+
description: `${err.message}` || 'Upload error:', // Using err.message for clearer output
|
|
46
|
+
});
|
|
47
|
+
throw err;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return create;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export default useUploadFiles;
|