@bjsdistribution/dms-client-return 0.0.82 → 0.0.84
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/notification/ReminderTemplate.d.ts +1 -1
- package/dist/components/order-view/notification/Tabs.d.ts +1 -1
- 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-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 +1 -1
- package/dist/components/order-view/types.d.ts +2 -1
- package/dist/components/store.d.ts +3 -1
- package/dist/dms-client-return.cjs.development.js +2874 -2078
- 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 +2894 -2098
- 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/return-order-table/return-orders-filters/returnstyles.ts +1 -1
- 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 +26 -1
- package/src/components/order-view/notes/order-dropdown/NewReturnDropdown.tsx +17 -4
- package/src/components/order-view/notification/FlagTemplate.tsx +1 -1
- package/src/components/order-view/notification/ReminderTemplate.tsx +10 -11
- package/src/components/order-view/notification/Tabs.tsx +24 -6
- package/src/components/order-view/notification/index.tsx +47 -13
- 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/create-task-reminder/CreateReminderModal.tsx +3 -0
- 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/remove-from-route/RemoveFromRoute.tsx +91 -0
- 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 +7 -2
- 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/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/return-client-products/product-table/ReturnProductTable.tsx +16 -4
- package/src/components/order-view/store.ts +5 -10
- 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 +13 -1
- 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 -173
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AntTable } from '@bjsdistribution/dms-component-library';
|
|
3
|
-
import { AntSelect } from '@bjsdistribution/dms-component-library';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
|
-
import { useOrderStaticData, useProductDetails } from '../store';
|
|
6
|
-
import { capitalize } from '../utils';
|
|
7
|
-
|
|
8
|
-
const BulkUpdateProduct = () => {
|
|
9
|
-
const [orderStaticData] = useOrderStaticData();
|
|
10
|
-
const [productdata] = useProductDetails();
|
|
11
|
-
const options = [
|
|
12
|
-
{ value: 'bjsCouriers', label: 'BJS COURIERS' },
|
|
13
|
-
{ value: 'bjsSales', label: 'BJS SALES' },
|
|
14
|
-
{ value: 'test', label: 'TEST' },
|
|
15
|
-
];
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const columns = [
|
|
19
|
-
{ key: 'checkbox', title: '', isCheckbox: true },
|
|
20
|
-
{ key: 'type', title: 'Status', isSelect: true },
|
|
21
|
-
{ key: 'code', title: 'Code' },
|
|
22
|
-
{ key: 'description', title: 'Description' },
|
|
23
|
-
{ key: 'sku', title: 'SKU' },
|
|
24
|
-
];
|
|
25
|
-
|
|
26
|
-
const onChange = async (event: any) => {
|
|
27
|
-
console.log(event);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const collectionOptions = orderStaticData?.collect_reasons?.map(
|
|
31
|
-
(option: any) => ({
|
|
32
|
-
label: capitalize(option.reason),
|
|
33
|
-
value: option.id,
|
|
34
|
-
})
|
|
35
|
-
);
|
|
36
|
-
|
|
37
|
-
const returnActionOptions = orderStaticData?.order_product_return_action?.map(
|
|
38
|
-
(option: any) => ({
|
|
39
|
-
label: capitalize(option.type),
|
|
40
|
-
value: option.id,
|
|
41
|
-
})
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
const returnReasonsOptions = orderStaticData?.return_reasons?.map(
|
|
45
|
-
(option: any) => ({
|
|
46
|
-
label: option.reason,
|
|
47
|
-
value: option.id,
|
|
48
|
-
})
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
return (
|
|
52
|
-
<>
|
|
53
|
-
<GLobalPopupContent>
|
|
54
|
-
<section>
|
|
55
|
-
<div className="filterCover">
|
|
56
|
-
<div className="col">
|
|
57
|
-
<label>Collection Reason</label>
|
|
58
|
-
<AntSelect
|
|
59
|
-
options={collectionOptions || []}
|
|
60
|
-
placeholder="Select Collection Reason"
|
|
61
|
-
onChange={onChange}
|
|
62
|
-
disabled={false}
|
|
63
|
-
popupClassName={'dropDownStyle'}
|
|
64
|
-
selectWrapperClass={'rounded'}
|
|
65
|
-
defaultValue={'Select Collection Reason'}
|
|
66
|
-
/>
|
|
67
|
-
</div>
|
|
68
|
-
<div className="col">
|
|
69
|
-
<label>Return Action</label>
|
|
70
|
-
<AntSelect
|
|
71
|
-
options={returnActionOptions || []}
|
|
72
|
-
placeholder="Return Action"
|
|
73
|
-
onChange={onChange}
|
|
74
|
-
disabled={false}
|
|
75
|
-
popupClassName={'dropDownStyle'}
|
|
76
|
-
selectWrapperClass={'rounded'}
|
|
77
|
-
defaultValue={'Select Return Action'}
|
|
78
|
-
/>
|
|
79
|
-
</div>
|
|
80
|
-
<div className="col">
|
|
81
|
-
<label>Return Reason</label>
|
|
82
|
-
<AntSelect
|
|
83
|
-
options={returnReasonsOptions || []}
|
|
84
|
-
placeholder="Return Reason"
|
|
85
|
-
onChange={onChange}
|
|
86
|
-
disabled={false}
|
|
87
|
-
popupClassName={'dropDownStyle'}
|
|
88
|
-
selectWrapperClass={'rounded'}
|
|
89
|
-
defaultValue={'Select Return Reason'}
|
|
90
|
-
/>
|
|
91
|
-
</div>
|
|
92
|
-
</div>
|
|
93
|
-
</section>
|
|
94
|
-
<AntTable
|
|
95
|
-
columns={columns}
|
|
96
|
-
data={productdata}
|
|
97
|
-
selectOptions={options}
|
|
98
|
-
onSelectChange={(value: any, record: any) =>
|
|
99
|
-
console.log('Selected value:', value, 'for record:', record)
|
|
100
|
-
}
|
|
101
|
-
/>
|
|
102
|
-
</GLobalPopupContent>
|
|
103
|
-
</>
|
|
104
|
-
);
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
export default BulkUpdateProduct;
|
|
108
|
-
|
|
109
|
-
const GLobalPopupContent = styled.div`
|
|
110
|
-
section {
|
|
111
|
-
padding: 15px 15px 0;
|
|
112
|
-
.filterCover {
|
|
113
|
-
border-radius: 16px;
|
|
114
|
-
border: 1px solid var(--tonal-brown-10, #edebe8);
|
|
115
|
-
background: #f8fafc;
|
|
116
|
-
display: flex;
|
|
117
|
-
gap: 30px;
|
|
118
|
-
padding: 15px;
|
|
119
|
-
gap: 15px;
|
|
120
|
-
.col {
|
|
121
|
-
width: 21%;
|
|
122
|
-
label {
|
|
123
|
-
color: #8d8f90;
|
|
124
|
-
font-size: 14px;
|
|
125
|
-
font-weight: 500;
|
|
126
|
-
line-height: 20px;
|
|
127
|
-
display: block;
|
|
128
|
-
margin-bottom: 4px;
|
|
129
|
-
}
|
|
130
|
-
.ant-select-single {
|
|
131
|
-
width: 100%;
|
|
132
|
-
}
|
|
133
|
-
select {
|
|
134
|
-
width: 100%;
|
|
135
|
-
}
|
|
136
|
-
&:first-child {
|
|
137
|
-
width: 43%;
|
|
138
|
-
}
|
|
139
|
-
&:last-child {
|
|
140
|
-
width: 33%;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
`;
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import React, { useEffect } from 'react';
|
|
2
|
-
import { useDeleteProdsID, useProductDetails } from '../store';
|
|
3
|
-
import { Empty, Skeleton } from 'antd';
|
|
4
|
-
import {
|
|
5
|
-
EmptyDataContainer,
|
|
6
|
-
StyledTable,
|
|
7
|
-
StyledTableWrapper,
|
|
8
|
-
} from '../order-actions/actions/confirm-order/tables/ReminderStyles';
|
|
9
|
-
|
|
10
|
-
const DeleteProduct = () => {
|
|
11
|
-
const [productdata] = useProductDetails();
|
|
12
|
-
const [selectedRows, setSelectedRows] = useDeleteProdsID();
|
|
13
|
-
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
console.log('Selected rows:', selectedRows);
|
|
16
|
-
}, [selectedRows]);
|
|
17
|
-
|
|
18
|
-
const handleSelectChange = (record: any) => {
|
|
19
|
-
setSelectedRows(prevSelectedRows => {
|
|
20
|
-
const isSelected = prevSelectedRows.some(row => row.id === record.id);
|
|
21
|
-
if (isSelected) {
|
|
22
|
-
return prevSelectedRows.filter(row => row.id !== record.id);
|
|
23
|
-
} else {
|
|
24
|
-
return [
|
|
25
|
-
...prevSelectedRows,
|
|
26
|
-
{ id: record.id, order_id: record.order_id },
|
|
27
|
-
];
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const handleSelectAll = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
33
|
-
if (event.target.checked) {
|
|
34
|
-
const allRowIds = productdata
|
|
35
|
-
.filter((data: any) => !data.is_deleted)
|
|
36
|
-
.map((data: any) => ({
|
|
37
|
-
id: data.id,
|
|
38
|
-
order_id: data.order_id,
|
|
39
|
-
}));
|
|
40
|
-
setSelectedRows(allRowIds);
|
|
41
|
-
} else {
|
|
42
|
-
setSelectedRows([]);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
const isRowSelected = (id: any) => {
|
|
47
|
-
return selectedRows.some(row => row.id === id);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const loadingskeleton = false;
|
|
51
|
-
|
|
52
|
-
const filteredProductData = productdata?.filter(
|
|
53
|
-
(data: any) => !data.is_deleted
|
|
54
|
-
);
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<StyledTableWrapper id="tableScrolling">
|
|
58
|
-
<StyledTable style={{ minWidth: 'auto', width: '100%' }}>
|
|
59
|
-
<thead>
|
|
60
|
-
<tr>
|
|
61
|
-
<th>
|
|
62
|
-
<input
|
|
63
|
-
type="checkbox"
|
|
64
|
-
onChange={handleSelectAll}
|
|
65
|
-
checked={
|
|
66
|
-
filteredProductData.length > 0 &&
|
|
67
|
-
selectedRows.length === filteredProductData.length
|
|
68
|
-
}
|
|
69
|
-
/>
|
|
70
|
-
</th>
|
|
71
|
-
<th>Type</th>
|
|
72
|
-
<th>Code</th>
|
|
73
|
-
<th>Scan</th>
|
|
74
|
-
<th>Description</th>
|
|
75
|
-
<th>Barcode</th>
|
|
76
|
-
</tr>
|
|
77
|
-
</thead>
|
|
78
|
-
<tbody>
|
|
79
|
-
{loadingskeleton ? (
|
|
80
|
-
<tr>
|
|
81
|
-
<td colSpan={6}>
|
|
82
|
-
<Skeleton active />
|
|
83
|
-
</td>
|
|
84
|
-
</tr>
|
|
85
|
-
) : filteredProductData.length === 0 ? (
|
|
86
|
-
<tr>
|
|
87
|
-
<td className="emptyTd" colSpan={7}>
|
|
88
|
-
<EmptyDataContainer>
|
|
89
|
-
<Empty />
|
|
90
|
-
</EmptyDataContainer>
|
|
91
|
-
</td>
|
|
92
|
-
</tr>
|
|
93
|
-
) : (
|
|
94
|
-
filteredProductData.map((data: any) => (
|
|
95
|
-
<tr key={data.id}>
|
|
96
|
-
<td>
|
|
97
|
-
<input
|
|
98
|
-
type="checkbox"
|
|
99
|
-
checked={isRowSelected(data.id)}
|
|
100
|
-
onChange={() => handleSelectChange(data)}
|
|
101
|
-
/>
|
|
102
|
-
</td>
|
|
103
|
-
<td>{data?.order_product_type?.type}</td>
|
|
104
|
-
<td>{data?.code}</td>
|
|
105
|
-
<td>{data?.scan}</td>
|
|
106
|
-
<td>{data?.description}</td>
|
|
107
|
-
<td>{data?.sku}</td>
|
|
108
|
-
</tr>
|
|
109
|
-
))
|
|
110
|
-
)}
|
|
111
|
-
</tbody>
|
|
112
|
-
</StyledTable>
|
|
113
|
-
</StyledTableWrapper>
|
|
114
|
-
);
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export default DeleteProduct;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Tabs } from 'antd';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { useAtom } from 'jotai';
|
|
5
|
-
import QCLogs from './qclogs';
|
|
6
|
-
import UpdateProduct from './UpdateProducts';
|
|
7
|
-
import UnReceiveProduct from './UnReceiveProduct';
|
|
8
|
-
import { selectedTabKeyAtom } from '../store';
|
|
9
|
-
|
|
10
|
-
const ProductAction = () => {
|
|
11
|
-
const [, setSelectedTabKey] = useAtom(selectedTabKeyAtom);
|
|
12
|
-
|
|
13
|
-
const handleTabChange = (activeKey: string) => {
|
|
14
|
-
setSelectedTabKey(activeKey);
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<>
|
|
19
|
-
<GLobalPopupContent>
|
|
20
|
-
<Container>
|
|
21
|
-
<Tabs
|
|
22
|
-
defaultActiveKey="1"
|
|
23
|
-
onChange={handleTabChange}
|
|
24
|
-
items={[
|
|
25
|
-
{
|
|
26
|
-
label: 'Update Product Type',
|
|
27
|
-
key: '1',
|
|
28
|
-
children: <UpdateProduct />,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
label: 'Log QC Result',
|
|
32
|
-
key: '2',
|
|
33
|
-
children: <QCLogs />,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: 'Unreceive Product',
|
|
37
|
-
key: '3',
|
|
38
|
-
children: <UnReceiveProduct />,
|
|
39
|
-
},
|
|
40
|
-
]}
|
|
41
|
-
/>
|
|
42
|
-
</Container>
|
|
43
|
-
</GLobalPopupContent>
|
|
44
|
-
</>
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default ProductAction;
|
|
49
|
-
|
|
50
|
-
const GLobalPopupContent = styled.div``;
|
|
51
|
-
|
|
52
|
-
const Container = styled.div`
|
|
53
|
-
display: flex;
|
|
54
|
-
height: 50vh;
|
|
55
|
-
padding-bottom: 30px;
|
|
56
|
-
flex-direction: column;
|
|
57
|
-
align-items: flex-start;
|
|
58
|
-
gap: 20px;
|
|
59
|
-
align-self: stretch;
|
|
60
|
-
border-radius: 6px;
|
|
61
|
-
border: 1px solid #edebe8;
|
|
62
|
-
padding: 15px;
|
|
63
|
-
overflow-y: scroll;
|
|
64
|
-
.ant-tabs {
|
|
65
|
-
width: 100%;
|
|
66
|
-
}
|
|
67
|
-
.ant-tabs-tab-active {
|
|
68
|
-
.ant-tabs-tab-btn {
|
|
69
|
-
color: #3a3630 !important;
|
|
70
|
-
font-family: 'Lato', sans-serif;
|
|
71
|
-
font-size: 14px;
|
|
72
|
-
font-style: normal;
|
|
73
|
-
font-weight: 500;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
.ant-tabs-ink-bar {
|
|
77
|
-
background: #feba30;
|
|
78
|
-
}
|
|
79
|
-
`;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { AntTable } from '@bjsdistribution/dms-component-library';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { GLobalPopupContent } from '../order-actions/actions/update-product-type/UpdateProductTypeStyle';
|
|
5
|
-
import { RepackData } from '../utils';
|
|
6
|
-
|
|
7
|
-
const repackModal = () => {
|
|
8
|
-
const columns = [
|
|
9
|
-
{
|
|
10
|
-
key: 'packaging_type',
|
|
11
|
-
title: 'Packaging Type',
|
|
12
|
-
dataIndex: 'packaging_type',
|
|
13
|
-
},
|
|
14
|
-
{ key: 'products', title: 'Products', dataIndex: 'products' },
|
|
15
|
-
{ key: 'created_by', title: 'Created By', dataIndex: 'created_by' },
|
|
16
|
-
{ key: 'date', title: 'Date', dataIndex: 'date' },
|
|
17
|
-
{
|
|
18
|
-
key: 'images',
|
|
19
|
-
title: 'Images',
|
|
20
|
-
},
|
|
21
|
-
];
|
|
22
|
-
return (
|
|
23
|
-
<>
|
|
24
|
-
<GLobalPopupContent>
|
|
25
|
-
<StyledConatiner>
|
|
26
|
-
<AntTable
|
|
27
|
-
columns={columns}
|
|
28
|
-
data={RepackData}
|
|
29
|
-
onSelectChange={(value: any, record: any) =>
|
|
30
|
-
console.log('Selected value:', value, 'for record:', record)
|
|
31
|
-
}
|
|
32
|
-
/>
|
|
33
|
-
</StyledConatiner>
|
|
34
|
-
</GLobalPopupContent>
|
|
35
|
-
</>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
const StyledConatiner = styled.div`
|
|
39
|
-
/* text-wrap: nowrap; */
|
|
40
|
-
`;
|
|
41
|
-
|
|
42
|
-
export default repackModal;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { AntSelect, Label } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React, { useEffect } from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import Notes from '../order-actions/actions/log-service-refusal/Notes';
|
|
5
|
-
import {
|
|
6
|
-
useOrderStaticData,
|
|
7
|
-
useProductDetails,
|
|
8
|
-
useRecieveOrderProducts,
|
|
9
|
-
} from '../store';
|
|
10
|
-
|
|
11
|
-
function UnReceiveProduct() {
|
|
12
|
-
const [unRecieve, setUnRecieve] = useRecieveOrderProducts();
|
|
13
|
-
const [productdata] = useProductDetails();
|
|
14
|
-
const [orderStaticData] = useOrderStaticData();
|
|
15
|
-
|
|
16
|
-
console.log(productdata, 'productdataproductdataproductdataproductdata');
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
setUnRecieve((prevState: any) => ({
|
|
19
|
-
...prevState,
|
|
20
|
-
}));
|
|
21
|
-
}, [setUnRecieve]);
|
|
22
|
-
|
|
23
|
-
const handleSelectChange = (value: string) => {
|
|
24
|
-
setUnRecieve(prevState => ({
|
|
25
|
-
...prevState,
|
|
26
|
-
unrecieve_reason_id: +value,
|
|
27
|
-
}));
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const handleNotesChange = (notes: any) => {
|
|
31
|
-
setUnRecieve((prevState: any) => ({
|
|
32
|
-
...prevState,
|
|
33
|
-
unrecieve_note: notes,
|
|
34
|
-
}));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
console.log(unRecieve, 'unRecieve');
|
|
38
|
-
|
|
39
|
-
const returnActionOptions = orderStaticData?.unreceive_reasons?.map(
|
|
40
|
-
(option: any) => ({
|
|
41
|
-
label: option.reason,
|
|
42
|
-
value: option.id,
|
|
43
|
-
})
|
|
44
|
-
);
|
|
45
|
-
|
|
46
|
-
return (
|
|
47
|
-
<Container>
|
|
48
|
-
<LabelWrapper>
|
|
49
|
-
<Label label="Reason" />
|
|
50
|
-
<StyledAntSelect
|
|
51
|
-
options={returnActionOptions}
|
|
52
|
-
placeholder="Select the Reason"
|
|
53
|
-
onChange={handleSelectChange}
|
|
54
|
-
selectWrapperClass="rounded"
|
|
55
|
-
/>
|
|
56
|
-
<Notes onNotesChange={handleNotesChange} />
|
|
57
|
-
</LabelWrapper>
|
|
58
|
-
</Container>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
const Container = styled.div``;
|
|
63
|
-
|
|
64
|
-
const LabelWrapper = styled.div`
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: column;
|
|
67
|
-
gap: 10px;
|
|
68
|
-
`;
|
|
69
|
-
|
|
70
|
-
const StyledAntSelect = styled(AntSelect)``;
|
|
71
|
-
|
|
72
|
-
export default UnReceiveProduct;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { AntSelect, Label } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React, { useState } from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { ReturnData } from '../../fakeData';
|
|
5
|
-
import { useOrderStaticData, useUpdateOrderProducts } from '../store';
|
|
6
|
-
|
|
7
|
-
function UpdateProduct() {
|
|
8
|
-
const [selectedOption, setSelectedOption] = useState<string | undefined>();
|
|
9
|
-
const [orderStaticData] = useOrderStaticData();
|
|
10
|
-
|
|
11
|
-
const [updateOrderProduct, setUpdateOrderProduct] = useUpdateOrderProducts();
|
|
12
|
-
console.log(updateOrderProduct, 'updateOrderProductupdateOrderProduct');
|
|
13
|
-
|
|
14
|
-
const handleSelectChange = (value: string) => {
|
|
15
|
-
setSelectedOption(value);
|
|
16
|
-
setUpdateOrderProduct(prevState => ({
|
|
17
|
-
...prevState,
|
|
18
|
-
product_type_id: +value,
|
|
19
|
-
}));
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
const handleReturnSelectChange = (value: any) => {
|
|
23
|
-
setUpdateOrderProduct(prevState => ({
|
|
24
|
-
...prevState,
|
|
25
|
-
return_reason_id: +value,
|
|
26
|
-
}));
|
|
27
|
-
console.log('Return action or reason selected:', value);
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
const handleCollectionSelectChange = (value: any) => {
|
|
31
|
-
setUpdateOrderProduct(prevState => ({
|
|
32
|
-
...prevState,
|
|
33
|
-
collection_reason_id: +value,
|
|
34
|
-
}));
|
|
35
|
-
console.log('Collection reason selected:', value);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
const collectionOptions = orderStaticData?.collect_reasons?.map(
|
|
39
|
-
(option: any) => ({
|
|
40
|
-
label: option.reason,
|
|
41
|
-
value: option.id,
|
|
42
|
-
})
|
|
43
|
-
);
|
|
44
|
-
const returnActionOptions = orderStaticData?.order_product_return_action?.map(
|
|
45
|
-
(option: any) => ({
|
|
46
|
-
label: option.type,
|
|
47
|
-
value: option.id,
|
|
48
|
-
})
|
|
49
|
-
);
|
|
50
|
-
const returnReasonsOptions = orderStaticData?.return_reasons?.map(
|
|
51
|
-
(option: any) => ({
|
|
52
|
-
label: option.reason,
|
|
53
|
-
value: option.id,
|
|
54
|
-
})
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
const productTypeOptions = orderStaticData?.order_product_type?.map(
|
|
58
|
-
(option: any) => ({
|
|
59
|
-
label: option.type,
|
|
60
|
-
value: option.id,
|
|
61
|
-
})
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
return (
|
|
65
|
-
<Container>
|
|
66
|
-
<LabelWrapper>
|
|
67
|
-
<Label label="Product Type" />
|
|
68
|
-
<StyledAntSelect
|
|
69
|
-
options={productTypeOptions}
|
|
70
|
-
placeholder="Select Product Type"
|
|
71
|
-
onChange={handleSelectChange}
|
|
72
|
-
selectWrapperClass="rounded"
|
|
73
|
-
/>
|
|
74
|
-
</LabelWrapper>
|
|
75
|
-
{selectedOption === '1' && (
|
|
76
|
-
<ReturnBox>
|
|
77
|
-
<LabelWrapper>
|
|
78
|
-
<Label label="Return Action" />
|
|
79
|
-
<StyledAntSelect
|
|
80
|
-
options={returnActionOptions || []}
|
|
81
|
-
placeholder="Select the Return Action"
|
|
82
|
-
onChange={handleReturnSelectChange}
|
|
83
|
-
selectWrapperClass="rounded"
|
|
84
|
-
/>
|
|
85
|
-
</LabelWrapper>
|
|
86
|
-
<LabelWrapper>
|
|
87
|
-
<Label label="Return Reason" />
|
|
88
|
-
<StyledAntSelect
|
|
89
|
-
options={returnReasonsOptions || []}
|
|
90
|
-
placeholder="Select the Return Reason"
|
|
91
|
-
onChange={handleReturnSelectChange}
|
|
92
|
-
selectWrapperClass="rounded"
|
|
93
|
-
/>
|
|
94
|
-
</LabelWrapper>
|
|
95
|
-
<LabelWrapper>
|
|
96
|
-
<Label label="Return Location" />
|
|
97
|
-
<StyledAntSelect
|
|
98
|
-
options={ReturnData}
|
|
99
|
-
placeholder="Select the Return Location"
|
|
100
|
-
onChange={handleReturnSelectChange}
|
|
101
|
-
selectWrapperClass="rounded"
|
|
102
|
-
/>
|
|
103
|
-
</LabelWrapper>
|
|
104
|
-
</ReturnBox>
|
|
105
|
-
)}
|
|
106
|
-
{selectedOption === '2' && (
|
|
107
|
-
<CollectionBox>
|
|
108
|
-
<LabelWrapper>
|
|
109
|
-
<Label label="Collection Reason" />
|
|
110
|
-
<StyledAntSelect
|
|
111
|
-
options={collectionOptions || []}
|
|
112
|
-
placeholder="Select the Collection Reason"
|
|
113
|
-
onChange={handleCollectionSelectChange}
|
|
114
|
-
selectWrapperClass="rounded"
|
|
115
|
-
/>
|
|
116
|
-
</LabelWrapper>
|
|
117
|
-
</CollectionBox>
|
|
118
|
-
)}
|
|
119
|
-
</Container>
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const CollectionBox = styled.div`
|
|
124
|
-
margin-top: 32px;
|
|
125
|
-
`;
|
|
126
|
-
|
|
127
|
-
const ReturnBox = styled.div`
|
|
128
|
-
display: flex;
|
|
129
|
-
flex-direction: row;
|
|
130
|
-
gap: 10px;
|
|
131
|
-
margin-top: 32px;
|
|
132
|
-
justify-content: space-between;
|
|
133
|
-
`;
|
|
134
|
-
|
|
135
|
-
const Container = styled.div``;
|
|
136
|
-
|
|
137
|
-
const LabelWrapper = styled.div`
|
|
138
|
-
display: flex;
|
|
139
|
-
flex-direction: column;
|
|
140
|
-
gap: 10px;
|
|
141
|
-
`;
|
|
142
|
-
|
|
143
|
-
const StyledAntSelect = styled(AntSelect)``;
|
|
144
|
-
|
|
145
|
-
export default UpdateProduct;
|