Storage navigator
The objective of this tools is to allow users to easily navigate inventory data according to storageLocation1-4
. The tool has two tabs: Browse and Assign. These tabs are not enabled until the user configures the storage location (StorageLocationFilter
)
StorageLocationFilter
needs to start with selecting site
(required, dropdown), then storageLocation1
(single text string), then storageLocation2
(single text), etc. If storageLocation?
is blank, then the generated filter must filter for NULL
value!
Browse tab
The Browse tab displays the <Table
of inventories at the selected storage location. If site
filter is not provided, the component should display a message "Please select the storage location."
Assign tab
The Assign tab has a <Table
of "selected inventories" and a Assign to this location button.
- The user populates their list of "selected inventories" (in component state) by using Add inventory by filtering dialog (we have that in order requests) or with a new Add inventory by barcode dialog. The "selected inventories" list contains unique items.
- The
<Table
displays the usual columns, just that inventory name and the currentstorageLocation1-4
are the first columns. -
Assign to this location prompts the user to confirm
Assign {{count, number}} inventories to location {{storageLocation1}} {{storageLocation2}} {{storageLocation3}} {{storageLocation4}}?
.
A new API call /i/assign-location
receives { "location": { "site": siteId, "storageLocation1": "string", ... }, "inventories": [ { "id": inventoryId, "lastModifiedDate": "date" }, ... ] }
data -- we only want to send the id
and lastModifiedDate
(for versioning).
Add inventory by barcode dialog
This dialog has the "scan inventory input". After a value is entered, the component fetches the inventory from the API and fires a onInventorySelected
event. The parent component adds the inventory to its "selected inventories" list and the <Table
has one more inventory. When done scanning, the user can close the dialog.
Updating the location filter
The user can change the values of the storage location filter. The browse tab loads inventories for that location, but the "Assign" tab keeps the current list.
This UI is available under menu Inventory > Storage navigator.