| Order Number | +Items | +Total Value | +Lead Time (days) | +Expected Delivery | +
|---|---|---|---|---|
| {{ order.order_number }} | +
+
+
+ + {{ order.items.length }} item{{ order.items.length === 1 ? '' : 's' }} ++
+
+
+ {{ item.name }}
+
+
+ |
+ {{ currencySymbol }}{{ order.total_value.toLocaleString() }} | +{{ order.lead_time_days }} | +{{ formatDate(order.expected_delivery) }} | +
Get budget-aware restocking recommendations based on demand forecasts and current inventory gaps
+| SKU | +Name | +Category | +Gap | +Recommended Qty | +Unit Cost | +Line Cost | +Lead Time (days) | +
|---|---|---|---|---|---|---|---|
| {{ rec.sku }} | +{{ rec.name }} | +{{ rec.category }} | +{{ rec.gap }} | +{{ rec.recommended_quantity }} | +${{ rec.unit_cost.toLocaleString() }} | +${{ rec.line_cost.toLocaleString() }} | +{{ rec.lead_time_days }} | +
A full-stack demo application for inventory, orders, demand forecasting, and spending analytics across factory warehouses. Vue 3 frontend, FastAPI backend, in-memory JSON data — no database.
+| Method | Path | Filters | Returns |
|---|---|---|---|
| GET | /api/inventory | warehouse, category | List of inventory items |
| GET | /api/inventory/{id} | — | Single inventory item (404 if missing) |
| GET | /api/orders | warehouse, category, status, month | List of orders |
| GET | /api/orders/{id} | — | Single order (404 if missing) |
| GET | /api/demand | none | Demand forecasts |
| GET | /api/backlog | none | Backlog items (+ computed has_purchase_order) |
| GET | /api/dashboard/summary | warehouse, category, status, month | Aggregated dashboard stats |
| GET | /api/spending/summary | none | Spending summary |
| GET | /api/spending/monthly | none | Monthly spending |
| GET | /api/spending/categories | none | Spending by category |
| GET | /api/spending/transactions | none | Recent transactions |
| GET | /api/reports/quarterly | none (unfiltered) | Per-quarter order/revenue stats |
| GET | /api/reports/monthly-trends | none (unfiltered) | Per-month order/revenue stats |
| Path | View | Notes |
|---|---|---|
| / | Dashboard.vue | Overview + key metrics |
| /inventory | Inventory.vue | Inventory listing |
| /orders | Orders.vue | Order tracking |
| /demand | Demand.vue | Demand forecasting |
| /spending | Spending.vue | Spending analytics |
| /reports | Reports.vue | Quarterly / monthly trend reports |
| — | Backlog.vue | Exists but not registered in the router — unreachable from the UI |
/api/tasks and /api/purchase-orders, but neither exists in main.py — these requests fail at runtime; task state instead falls back to local mock data in the auth composable.allow_origins=["*"]) — fine for this local demo, not production-safe.