- Generate — Pick an item and room. The tool builds a URL with query params.
- Print QR — Post the QR code on the supply cabinet, shelf, or room door.
- Scan & Submit — Staff scan the QR, the supply form opens pre-filled with the item and location. Tap submit.
URL format
southeast-requestSupply.html?item=Gloves&room=Room3&qty=1box
Required changes to supply form
The requestSupply.js handler reads URLSearchParams on init:
// In SupplyRequestHandler.initialize():
const params = new URLSearchParams(location.search);
if (params.has('item')) {
this.itemInput.value = params.get('item');
// trigger autocomplete or set field
}
if (params.has('room')) {
this.roomInput.value = params.get('room');
}
if (params.has('qty')) {
this.qtyInput.value = params.get('qty');
}
Files
toolQuickRestock.html → This page (wireframe)
src/js/quickRestock.js → QR generation logic (future)
src/js/requestSupply.js → + param parsing (~6 lines)
public/data/supplyItems.json → Items list (already exists)