@bjsdistribution/dms-client-return 0.0.83 → 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/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 +1 -0
- package/dist/dms-client-return.cjs.development.js +2644 -2227
- 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 +3062 -2645
- 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 +23 -1
- 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/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 +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/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 +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 +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
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AntSelect,
|
|
3
|
-
Label,
|
|
4
|
-
Button,
|
|
5
|
-
} from '@bjsdistribution/dms-component-library';
|
|
6
|
-
import React, { useState } from 'react';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
import { DefectConfirm } from '../../../fakeData';
|
|
9
|
-
import DefetcDetails from './DefetcDetails';
|
|
10
|
-
import RepackDetails from './RepackDetails';
|
|
11
|
-
import OtherDamage from './OtherDamage';
|
|
12
|
-
|
|
13
|
-
const AddDefect = () => {
|
|
14
|
-
const [state, setState] = useState({
|
|
15
|
-
actionDuring: '',
|
|
16
|
-
productDamage: '',
|
|
17
|
-
productRepacked: '',
|
|
18
|
-
defectDetails: [{}],
|
|
19
|
-
productChecked: '',
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const handleChange = (key: any) => (value: any) => {
|
|
23
|
-
setState(prevState => ({ ...prevState, [key]: value }));
|
|
24
|
-
console.log(`${key} option selected:`, value);
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
const addDefectDetail = () => {
|
|
28
|
-
setState(prevState => ({
|
|
29
|
-
...prevState,
|
|
30
|
-
defectDetails: [...prevState.defectDetails, {}],
|
|
31
|
-
}));
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
return (
|
|
35
|
-
<>
|
|
36
|
-
<Container>
|
|
37
|
-
<Flex>
|
|
38
|
-
<LabelWrapper>
|
|
39
|
-
<Label label="Does the packaging have any damage?" />
|
|
40
|
-
<StyledAntSelect
|
|
41
|
-
options={DefectConfirm}
|
|
42
|
-
placeholder="Select"
|
|
43
|
-
onChange={handleChange('actionDuring')}
|
|
44
|
-
selectWrapperClass="rounded"
|
|
45
|
-
/>
|
|
46
|
-
</LabelWrapper>
|
|
47
|
-
{state.actionDuring === 'yes' && (
|
|
48
|
-
<AddButton onClick={addDefectDetail}>Add Defect Detail</AddButton>
|
|
49
|
-
)}
|
|
50
|
-
</Flex>
|
|
51
|
-
{state.actionDuring === 'yes' &&
|
|
52
|
-
state.defectDetails.map((_, index) => <DefetcDetails key={index} />)}
|
|
53
|
-
</Container>
|
|
54
|
-
|
|
55
|
-
<Container>
|
|
56
|
-
<Flex>
|
|
57
|
-
<LabelWrapper>
|
|
58
|
-
<Label label="Has the product been checked?" />
|
|
59
|
-
<StyledAntSelect
|
|
60
|
-
options={DefectConfirm}
|
|
61
|
-
placeholder="Select"
|
|
62
|
-
onChange={handleChange('productChecked')}
|
|
63
|
-
selectWrapperClass="rounded"
|
|
64
|
-
/>
|
|
65
|
-
</LabelWrapper>
|
|
66
|
-
|
|
67
|
-
{state.productChecked === 'yes' && (
|
|
68
|
-
<LabelWrapper>
|
|
69
|
-
<Label label="Does the product have any damage?" />
|
|
70
|
-
<StyledAntSelect
|
|
71
|
-
options={DefectConfirm}
|
|
72
|
-
placeholder="Select"
|
|
73
|
-
onChange={handleChange('productDamage')}
|
|
74
|
-
selectWrapperClass="rounded"
|
|
75
|
-
/>
|
|
76
|
-
</LabelWrapper>
|
|
77
|
-
)}
|
|
78
|
-
</Flex>
|
|
79
|
-
|
|
80
|
-
{state.productDamage === 'yes' && state.productChecked === 'yes' && (
|
|
81
|
-
<OtherDamage />
|
|
82
|
-
)}
|
|
83
|
-
</Container>
|
|
84
|
-
|
|
85
|
-
<Container>
|
|
86
|
-
<Flex>
|
|
87
|
-
<LabelWrapper>
|
|
88
|
-
<Label label="Has the product been repacked?" />
|
|
89
|
-
<StyledAntSelect
|
|
90
|
-
options={DefectConfirm}
|
|
91
|
-
placeholder="Select"
|
|
92
|
-
onChange={handleChange('productRepacked')}
|
|
93
|
-
selectWrapperClass="rounded"
|
|
94
|
-
/>
|
|
95
|
-
</LabelWrapper>
|
|
96
|
-
</Flex>
|
|
97
|
-
{state.productRepacked === 'yes' && <RepackDetails />}
|
|
98
|
-
</Container>
|
|
99
|
-
</>
|
|
100
|
-
);
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export default AddDefect;
|
|
104
|
-
|
|
105
|
-
const StyledAntSelect = styled(AntSelect)`
|
|
106
|
-
width: 20vw;
|
|
107
|
-
`;
|
|
108
|
-
|
|
109
|
-
const Container = styled.div`
|
|
110
|
-
display: flex;
|
|
111
|
-
gap: 15px;
|
|
112
|
-
flex-direction: column;
|
|
113
|
-
border: 1px solid #e6e6e6;
|
|
114
|
-
border-radius: 15px;
|
|
115
|
-
padding: 10px;
|
|
116
|
-
`;
|
|
117
|
-
|
|
118
|
-
const Flex = styled.div`
|
|
119
|
-
display: flex;
|
|
120
|
-
flex-direction: row;
|
|
121
|
-
gap: 10px;
|
|
122
|
-
/* justify-content: space-between; */
|
|
123
|
-
`;
|
|
124
|
-
|
|
125
|
-
const LabelWrapper = styled.div`
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
gap: 10px;
|
|
129
|
-
width: 20vw;
|
|
130
|
-
`;
|
|
131
|
-
|
|
132
|
-
const AddButton = styled(Button)`
|
|
133
|
-
margin-top: 10px;
|
|
134
|
-
border-radius: 30px;
|
|
135
|
-
`;
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { AntSelect, Label } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { TaskType } from '../../../fakeData';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
|
-
|
|
6
|
-
const DefetcDetails = () => {
|
|
7
|
-
const handleSelectChange = () => {
|
|
8
|
-
console.log('Option selected');
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<Container>
|
|
13
|
-
<Flex>
|
|
14
|
-
<LabelWrapper>
|
|
15
|
-
<Label label="What is the defect" />
|
|
16
|
-
<StyledAntSelect
|
|
17
|
-
options={TaskType}
|
|
18
|
-
placeholder="Select defect"
|
|
19
|
-
onChange={handleSelectChange}
|
|
20
|
-
selectWrapperClass="rounded"
|
|
21
|
-
/>
|
|
22
|
-
</LabelWrapper>
|
|
23
|
-
<LabelWrapper>
|
|
24
|
-
<Label label="What is the size of the defect?(cm)" />
|
|
25
|
-
<StyledAntSelect
|
|
26
|
-
options={TaskType}
|
|
27
|
-
placeholder="Select Category"
|
|
28
|
-
onChange={handleSelectChange}
|
|
29
|
-
selectWrapperClass="rounded"
|
|
30
|
-
/>
|
|
31
|
-
</LabelWrapper>
|
|
32
|
-
</Flex>
|
|
33
|
-
<Flex>
|
|
34
|
-
<LabelWrapper>
|
|
35
|
-
<Label label="Where is the primary defect located?" />
|
|
36
|
-
<StyledAntSelect
|
|
37
|
-
options={TaskType}
|
|
38
|
-
placeholder="Select located"
|
|
39
|
-
onChange={handleSelectChange}
|
|
40
|
-
selectWrapperClass="rounded"
|
|
41
|
-
/>
|
|
42
|
-
</LabelWrapper>
|
|
43
|
-
</Flex>
|
|
44
|
-
<Flex>
|
|
45
|
-
<LabelWrapper>
|
|
46
|
-
<Label label="Where is the secondary defect located?" />
|
|
47
|
-
<StyledAntSelect
|
|
48
|
-
options={TaskType}
|
|
49
|
-
placeholder="Select secondary defect"
|
|
50
|
-
onChange={handleSelectChange}
|
|
51
|
-
selectWrapperClass="rounded"
|
|
52
|
-
/>
|
|
53
|
-
</LabelWrapper>
|
|
54
|
-
<LabelWrapper>
|
|
55
|
-
<Label label="Defect Images" />
|
|
56
|
-
<StyledAntSelect
|
|
57
|
-
options={TaskType}
|
|
58
|
-
placeholder="Select Category"
|
|
59
|
-
onChange={handleSelectChange}
|
|
60
|
-
selectWrapperClass="rounded"
|
|
61
|
-
/>
|
|
62
|
-
</LabelWrapper>
|
|
63
|
-
</Flex>
|
|
64
|
-
</Container>
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
export default DefetcDetails;
|
|
69
|
-
|
|
70
|
-
const StyledAntSelect = styled(AntSelect)`
|
|
71
|
-
width: 20vw;
|
|
72
|
-
`;
|
|
73
|
-
|
|
74
|
-
const Container = styled.div`
|
|
75
|
-
display: flex;
|
|
76
|
-
gap: 15px;
|
|
77
|
-
border: 1px solid #ccc;
|
|
78
|
-
border-radius: 15px;
|
|
79
|
-
padding: 10px;
|
|
80
|
-
white-space: nowrap;
|
|
81
|
-
`;
|
|
82
|
-
|
|
83
|
-
const Flex = styled.div`
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-wrap: wrap;
|
|
86
|
-
gap: 10px;
|
|
87
|
-
|
|
88
|
-
@media (max-width: 768px) {
|
|
89
|
-
flex-direction: column;
|
|
90
|
-
}
|
|
91
|
-
`;
|
|
92
|
-
|
|
93
|
-
const LabelWrapper = styled.div`
|
|
94
|
-
display: flex;
|
|
95
|
-
flex-direction: column;
|
|
96
|
-
gap: 10px;
|
|
97
|
-
`;
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { AntSelect, Label } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { TaskType } from '../../../fakeData';
|
|
5
|
-
|
|
6
|
-
const OtherDamage = () => {
|
|
7
|
-
const handleSelectChange = () => {
|
|
8
|
-
console.log('Option selected');
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<Container>
|
|
13
|
-
<Flex>
|
|
14
|
-
<LabelWrapper>
|
|
15
|
-
<Label label="What is the primary defect?" />
|
|
16
|
-
<StyledAntSelect
|
|
17
|
-
options={TaskType}
|
|
18
|
-
placeholder="Select defect"
|
|
19
|
-
onChange={handleSelectChange}
|
|
20
|
-
selectWrapperClass="rounded"
|
|
21
|
-
/>
|
|
22
|
-
</LabelWrapper>
|
|
23
|
-
<LabelWrapper>
|
|
24
|
-
<Label label="Where is the Primary defect located?" />
|
|
25
|
-
<StyledAntSelect
|
|
26
|
-
options={TaskType}
|
|
27
|
-
placeholder="Select secondary defect"
|
|
28
|
-
onChange={handleSelectChange}
|
|
29
|
-
selectWrapperClass="rounded"
|
|
30
|
-
/>
|
|
31
|
-
</LabelWrapper>
|
|
32
|
-
</Flex>
|
|
33
|
-
|
|
34
|
-
<Flex>
|
|
35
|
-
<LabelWrapper>
|
|
36
|
-
<Label label="What is the secondary defect?" />
|
|
37
|
-
<StyledAntSelect
|
|
38
|
-
options={TaskType}
|
|
39
|
-
placeholder="Select Category"
|
|
40
|
-
onChange={handleSelectChange}
|
|
41
|
-
selectWrapperClass="rounded"
|
|
42
|
-
/>
|
|
43
|
-
</LabelWrapper>
|
|
44
|
-
|
|
45
|
-
<LabelWrapper>
|
|
46
|
-
<Label label="Where is the secondary defect located?" />
|
|
47
|
-
<StyledAntSelect
|
|
48
|
-
options={TaskType}
|
|
49
|
-
placeholder="Select Category"
|
|
50
|
-
onChange={handleSelectChange}
|
|
51
|
-
selectWrapperClass="rounded"
|
|
52
|
-
/>
|
|
53
|
-
</LabelWrapper>
|
|
54
|
-
</Flex>
|
|
55
|
-
<Flex>
|
|
56
|
-
<LabelWrapper>
|
|
57
|
-
<Label
|
|
58
|
-
label="Where is the tertiary defect located?
|
|
59
|
-
"
|
|
60
|
-
/>
|
|
61
|
-
<StyledAntSelect
|
|
62
|
-
options={TaskType}
|
|
63
|
-
placeholder="Select Category"
|
|
64
|
-
onChange={handleSelectChange}
|
|
65
|
-
selectWrapperClass="rounded"
|
|
66
|
-
/>
|
|
67
|
-
</LabelWrapper>
|
|
68
|
-
<LabelWrapper>
|
|
69
|
-
<Label
|
|
70
|
-
label="Defect Images
|
|
71
|
-
"
|
|
72
|
-
/>
|
|
73
|
-
<StyledAntSelect
|
|
74
|
-
options={TaskType}
|
|
75
|
-
placeholder="Select secondary defect"
|
|
76
|
-
onChange={handleSelectChange}
|
|
77
|
-
selectWrapperClass="rounded"
|
|
78
|
-
/>
|
|
79
|
-
</LabelWrapper>
|
|
80
|
-
</Flex>
|
|
81
|
-
<Flex>
|
|
82
|
-
<LabelWrapper>
|
|
83
|
-
<Label label="What is the size of the defect?(cm)" />
|
|
84
|
-
<StyledAntSelect
|
|
85
|
-
options={TaskType}
|
|
86
|
-
placeholder="Select located"
|
|
87
|
-
onChange={handleSelectChange}
|
|
88
|
-
selectWrapperClass="rounded"
|
|
89
|
-
/>
|
|
90
|
-
</LabelWrapper>
|
|
91
|
-
</Flex>
|
|
92
|
-
</Container>
|
|
93
|
-
);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export default OtherDamage;
|
|
97
|
-
|
|
98
|
-
const StyledAntSelect = styled(AntSelect)`
|
|
99
|
-
width: 20vw;
|
|
100
|
-
`;
|
|
101
|
-
|
|
102
|
-
const Container = styled.div`
|
|
103
|
-
display: flex;
|
|
104
|
-
gap: 15px;
|
|
105
|
-
border: 1px solid #ccc;
|
|
106
|
-
border-radius: 15px;
|
|
107
|
-
padding: 10px;
|
|
108
|
-
white-space: nowrap;
|
|
109
|
-
`;
|
|
110
|
-
|
|
111
|
-
const Flex = styled.div`
|
|
112
|
-
display: flex;
|
|
113
|
-
flex-wrap: wrap;
|
|
114
|
-
gap: 10px;
|
|
115
|
-
|
|
116
|
-
@media (max-width: 768px) {
|
|
117
|
-
flex-direction: column;
|
|
118
|
-
}
|
|
119
|
-
`;
|
|
120
|
-
|
|
121
|
-
const LabelWrapper = styled.div`
|
|
122
|
-
display: flex;
|
|
123
|
-
flex-direction: column;
|
|
124
|
-
gap: 10px;
|
|
125
|
-
`;
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { AntSelect, Label } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React, { useState } from 'react';
|
|
3
|
-
import { TaskType } from '../../../fakeData';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
|
-
import { Checkbox, Input } from 'antd';
|
|
6
|
-
import RepackProduct from './RepackProduct';
|
|
7
|
-
|
|
8
|
-
const RepackDetails = () => {
|
|
9
|
-
const [isAdditionalBoxChecked, setIsAdditionalBoxChecked] = useState(false);
|
|
10
|
-
const [isRepacked, setIsRepacked] = useState(false);
|
|
11
|
-
const handleSelectChange = () => {
|
|
12
|
-
console.log('Option selected');
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<>
|
|
17
|
-
<Container>
|
|
18
|
-
<Flex>
|
|
19
|
-
<Flex>
|
|
20
|
-
<LabelWrapper>
|
|
21
|
-
<Label label="Who repacked it?" />
|
|
22
|
-
<StyledAntSelect
|
|
23
|
-
options={TaskType}
|
|
24
|
-
placeholder="Select Category"
|
|
25
|
-
onChange={handleSelectChange}
|
|
26
|
-
selectWrapperClass="rounded"
|
|
27
|
-
/>
|
|
28
|
-
</LabelWrapper>
|
|
29
|
-
</Flex>
|
|
30
|
-
<Flex>
|
|
31
|
-
<LabelWrapper>
|
|
32
|
-
<Label label="Packaging Type" />
|
|
33
|
-
<StyledAntSelect
|
|
34
|
-
options={TaskType}
|
|
35
|
-
placeholder="Select located"
|
|
36
|
-
onChange={handleSelectChange}
|
|
37
|
-
selectWrapperClass="rounded"
|
|
38
|
-
/>
|
|
39
|
-
</LabelWrapper>
|
|
40
|
-
</Flex>
|
|
41
|
-
<Flex>
|
|
42
|
-
<LabelWrapper>
|
|
43
|
-
<Label label="Repack Images" />
|
|
44
|
-
<StyledAntSelect
|
|
45
|
-
options={TaskType}
|
|
46
|
-
placeholder="Select secondary defect"
|
|
47
|
-
onChange={handleSelectChange}
|
|
48
|
-
selectWrapperClass="rounded"
|
|
49
|
-
/>
|
|
50
|
-
</LabelWrapper>
|
|
51
|
-
</Flex>
|
|
52
|
-
</Flex>
|
|
53
|
-
|
|
54
|
-
<Flex>
|
|
55
|
-
<CheckboxContainer>
|
|
56
|
-
<Checkbox
|
|
57
|
-
onChange={e => setIsAdditionalBoxChecked(e.target.checked)}
|
|
58
|
-
>
|
|
59
|
-
Has this been repacked into any additional boxes?
|
|
60
|
-
</Checkbox>
|
|
61
|
-
{isAdditionalBoxChecked && (
|
|
62
|
-
<InputWrapper>
|
|
63
|
-
<Label label="Number of boxes" />
|
|
64
|
-
<Input type="number" placeholder="Enter number of boxes" />
|
|
65
|
-
</InputWrapper>
|
|
66
|
-
)}
|
|
67
|
-
<Checkbox onChange={e => setIsRepacked(e.target.checked)}>
|
|
68
|
-
Have any other boxes repacked into this one?
|
|
69
|
-
</Checkbox>
|
|
70
|
-
{isRepacked && <RepackProduct />}
|
|
71
|
-
</CheckboxContainer>
|
|
72
|
-
</Flex>
|
|
73
|
-
</Container>
|
|
74
|
-
</>
|
|
75
|
-
);
|
|
76
|
-
};
|
|
77
|
-
export default RepackDetails;
|
|
78
|
-
|
|
79
|
-
const StyledAntSelect = styled(AntSelect)`
|
|
80
|
-
width: 20vw;
|
|
81
|
-
`;
|
|
82
|
-
const CheckboxContainer = styled.div`
|
|
83
|
-
display: flex;
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
gap: 10px;
|
|
86
|
-
margin-top: 10px;
|
|
87
|
-
`;
|
|
88
|
-
|
|
89
|
-
const InputWrapper = styled.div`
|
|
90
|
-
display: flex;
|
|
91
|
-
gap: 5px;
|
|
92
|
-
margin-left: 24px; // Indent input field to align with the checkbox
|
|
93
|
-
`;
|
|
94
|
-
const Container = styled.div`
|
|
95
|
-
display: flex;
|
|
96
|
-
flex-direction: column;
|
|
97
|
-
gap: 15px;
|
|
98
|
-
border: 1px solid #ccc;
|
|
99
|
-
border-radius: 15px;
|
|
100
|
-
padding: 10px;
|
|
101
|
-
white-space: nowrap;
|
|
102
|
-
`;
|
|
103
|
-
|
|
104
|
-
const Flex = styled.div`
|
|
105
|
-
display: flex;
|
|
106
|
-
flex-wrap: wrap;
|
|
107
|
-
gap: 10px;
|
|
108
|
-
|
|
109
|
-
@media (max-width: 768px) {
|
|
110
|
-
flex-direction: column;
|
|
111
|
-
}
|
|
112
|
-
`;
|
|
113
|
-
|
|
114
|
-
const LabelWrapper = styled.div`
|
|
115
|
-
display: flex;
|
|
116
|
-
flex-direction: column;
|
|
117
|
-
gap: 10px;
|
|
118
|
-
`;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { AntTable } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
const RepackProduct = () => {
|
|
6
|
-
const options = [
|
|
7
|
-
{ value: 'bjsCouriers', label: 'BJS COURIERS' },
|
|
8
|
-
{ value: 'bjsSales', label: 'BJS SALES' },
|
|
9
|
-
{ value: 'test', label: 'TEST' },
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
const data = [
|
|
13
|
-
{
|
|
14
|
-
type: 'Deliver',
|
|
15
|
-
code: 'WDB10953',
|
|
16
|
-
scan: 'Delivered',
|
|
17
|
-
description: '2000 HYBRID/DOUBLE COXMOOR NEST OF 3 TABLES - OAK',
|
|
18
|
-
barcode: '006997824015370739',
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
type: 'Deliver',
|
|
22
|
-
code: 'WDB10953',
|
|
23
|
-
scan: 'Delivered',
|
|
24
|
-
description: '2000 HYBRID/DOUBLE COXMOOR NEST OF 3 TABLES - OAK',
|
|
25
|
-
barcode: '006997824015370739',
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
type: 'Deliver',
|
|
29
|
-
code: 'WDB10953',
|
|
30
|
-
scan: 'Delivered',
|
|
31
|
-
description: '2000 HYBRID/DOUBLE COXMOOR NEST OF 3 TABLES - OAK',
|
|
32
|
-
barcode: '006997824015370739',
|
|
33
|
-
},
|
|
34
|
-
];
|
|
35
|
-
|
|
36
|
-
const columns = [
|
|
37
|
-
{ key: 'checkbox', title: '', isCheckbox: true },
|
|
38
|
-
{ key: 'type', title: 'Type' },
|
|
39
|
-
{ key: 'code', title: 'Code' },
|
|
40
|
-
{ key: 'scan', title: 'Scan' },
|
|
41
|
-
{ key: 'description', title: 'Description' },
|
|
42
|
-
{ key: 'barcode', title: 'Barcode' },
|
|
43
|
-
];
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<>
|
|
47
|
-
<GLobalPopupContent>
|
|
48
|
-
<AntTable
|
|
49
|
-
columns={columns}
|
|
50
|
-
data={data}
|
|
51
|
-
selectOptions={options}
|
|
52
|
-
onSelectChange={(value: any, record: any) =>
|
|
53
|
-
console.log('Selected value:', value, 'for record:', record)
|
|
54
|
-
}
|
|
55
|
-
/>
|
|
56
|
-
</GLobalPopupContent>
|
|
57
|
-
</>
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export default RepackProduct;
|
|
62
|
-
|
|
63
|
-
const GLobalPopupContent = styled.div``;
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { AntSelect, Label } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import { TaskType } from '../../../fakeData';
|
|
5
|
-
import AddDefect from './AddDefect';
|
|
6
|
-
|
|
7
|
-
const QCLogs = () => {
|
|
8
|
-
const handleSelectChange = () => {
|
|
9
|
-
console.log('Option selected');
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<Container>
|
|
14
|
-
<Flex>
|
|
15
|
-
<LabelWrapper>
|
|
16
|
-
<Label label="Action During" />
|
|
17
|
-
<StyledAntSelect
|
|
18
|
-
options={TaskType}
|
|
19
|
-
placeholder="Select"
|
|
20
|
-
onChange={handleSelectChange}
|
|
21
|
-
selectWrapperClass="rounded"
|
|
22
|
-
/>
|
|
23
|
-
</LabelWrapper>
|
|
24
|
-
<LabelWrapper>
|
|
25
|
-
<Label label="Product Category" />
|
|
26
|
-
<StyledAntSelect
|
|
27
|
-
options={TaskType}
|
|
28
|
-
placeholder="Select Category"
|
|
29
|
-
onChange={handleSelectChange}
|
|
30
|
-
selectWrapperClass="rounded"
|
|
31
|
-
/>
|
|
32
|
-
</LabelWrapper>
|
|
33
|
-
</Flex>
|
|
34
|
-
{<AddDefect />}
|
|
35
|
-
</Container>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default QCLogs;
|
|
40
|
-
|
|
41
|
-
const StyledAntSelect = styled(AntSelect)`
|
|
42
|
-
width: 20vw;
|
|
43
|
-
`;
|
|
44
|
-
|
|
45
|
-
const Container = styled.div`
|
|
46
|
-
display: flex;
|
|
47
|
-
gap: 15px;
|
|
48
|
-
flex-direction: column;
|
|
49
|
-
`;
|
|
50
|
-
|
|
51
|
-
const Flex = styled.div`
|
|
52
|
-
display: flex;
|
|
53
|
-
flex-direction: row;
|
|
54
|
-
gap: 10px;
|
|
55
|
-
`;
|
|
56
|
-
|
|
57
|
-
const LabelWrapper = styled.div`
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
gap: 10px;
|
|
61
|
-
width: 20vw;
|
|
62
|
-
`;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { AntTable } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
const LogsTable = () => {
|
|
6
|
-
const options = [
|
|
7
|
-
{ value: 'bjsCouriers', label: 'BJS COURIERS' },
|
|
8
|
-
{ value: 'bjsSales', label: 'BJS SALES' },
|
|
9
|
-
{ value: 'test', label: 'TEST' },
|
|
10
|
-
];
|
|
11
|
-
|
|
12
|
-
const data = [
|
|
13
|
-
{
|
|
14
|
-
PackagingType: 'Original Packaging',
|
|
15
|
-
PackagingStatus: 'No Issues',
|
|
16
|
-
QCCompleted: 'Delivered',
|
|
17
|
-
ProductStatus: '2000 HYBRID/DOUBLE COXMOOR NEST OF 3 TABLES - OAK',
|
|
18
|
-
CreatedBy: '006997824015370739',
|
|
19
|
-
Date: '',
|
|
20
|
-
Images: '',
|
|
21
|
-
Actions: '',
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
PackagingType: 'Original Packaging',
|
|
25
|
-
PackagingStatus: 'No Issues',
|
|
26
|
-
QCCompleted: 'Delivered',
|
|
27
|
-
ProductStatus: '2000 HYBRID/DOUBLE COXMOOR NEST OF 3 TABLES - OAK',
|
|
28
|
-
CreatedBy: '006997824015370739',
|
|
29
|
-
Date: '',
|
|
30
|
-
Images: '',
|
|
31
|
-
Actions: '',
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
PackagingType: 'Original Packaging',
|
|
35
|
-
PackagingStatus: 'No Issues',
|
|
36
|
-
QCCompleted: 'Delivered',
|
|
37
|
-
ProductStatus: '2000 HYBRID/DOUBLE COXMOOR NEST OF 3 TABLES - OAK',
|
|
38
|
-
CreatedBy: '006997824015370739',
|
|
39
|
-
Date: '',
|
|
40
|
-
Images: '',
|
|
41
|
-
Actions: '',
|
|
42
|
-
},
|
|
43
|
-
];
|
|
44
|
-
|
|
45
|
-
const columns = [
|
|
46
|
-
{ key: 'PackagingType', title: 'Packaging Type', isCheckbox: true },
|
|
47
|
-
{ key: 'PackagingStatus', title: 'Packaging Status' },
|
|
48
|
-
{ key: 'QCCompleted', title: 'QC Completed' },
|
|
49
|
-
{ key: 'ProductStatus', title: 'Product Status' },
|
|
50
|
-
{ key: 'CreatedBy', title: 'Created By' },
|
|
51
|
-
{ key: 'Date', title: 'Date' },
|
|
52
|
-
{ key: 'Images', title: 'Images' },
|
|
53
|
-
{ key: 'Actions', title: 'Actions' },
|
|
54
|
-
];
|
|
55
|
-
|
|
56
|
-
return (
|
|
57
|
-
<>
|
|
58
|
-
<GlobalPopupContent>
|
|
59
|
-
<AntTable
|
|
60
|
-
columns={columns}
|
|
61
|
-
data={data}
|
|
62
|
-
selectOptions={options}
|
|
63
|
-
onSelectChange={(value: any, record: any) =>
|
|
64
|
-
console.log('Selected value:', value, 'for record:', record)
|
|
65
|
-
}
|
|
66
|
-
/>
|
|
67
|
-
</GlobalPopupContent>
|
|
68
|
-
</>
|
|
69
|
-
);
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export default LogsTable;
|
|
73
|
-
|
|
74
|
-
const GlobalPopupContent = styled.div``;
|