{{ t('restocking.submittedOrdersDescription') }}
+| {{ t('restocking.table.sku') }} | +{{ t('orders.table.items') }} | +{{ t('restocking.totalCost') }} | +{{ t('orders.table.orderDate') }} | +{{ t('orders.table.status') }} | +
|---|---|---|---|---|
| {{ order.order_number }} | +
+
+
+ + {{ t('restocking.itemsCount', { count: order.items.length }) }} ++
+
+
+ {{ item.item_name }}
+
+
+
+ |
+ ${{ order.total_cost.toLocaleString() }} | +{{ formatDate(order.created_date) }} | ++ {{ order.status }} + | +
{{ t('restocking.description') }}
+| {{ t('restocking.table.sku') }} | +{{ t('restocking.table.itemName') }} | +{{ t('restocking.table.trend') }} | +{{ t('restocking.table.forecastedQty') }} | +{{ t('restocking.table.unitCost') }} | +{{ t('restocking.table.totalCost') }} | +{{ t('restocking.table.leadTime') }} | +
|---|---|---|---|---|---|---|
| {{ item.item_sku }} | +{{ item.item_name }} | ++ {{ item.trend }} + | +{{ item.forecasted_demand }} | +{{ formatCurrency(item.unit_cost) }} | +{{ formatCurrency(item.total_cost) }} | +{{ item.lead_time_days }} {{ t('restocking.table.days') }} | +
| {{ t('restocking.totalCost') }} | +{{ formatCurrency(recommendations.total_cost) }} | ++ | ||||
{{ t('restocking.noRecommendations') }}
+Full-stack SPA — Vue 3 frontend · Python FastAPI backend · In-memory JSON data · No database
+FilterBar.vue dropdown updates useFilters() composable reactive state (selectedPeriod, selectedLocation, selectedCategory, selectedStatus)watch() in the active view triggers, calls getCurrentFilters() which maps composable state to API params (location → warehouse, period → month)api.js builds URLSearchParams and calls e.g. GET /api/orders?warehouse=Tokyo&status=Delivered&month=2025-01main.py endpoint calls apply_filters(items, warehouse, category, status) and filter_by_month(items, month) on in-memory arraysList[Order]) and returned as JSON with HTTP 200ref with response data; computed properties recalculate; DOM updates reactivelywarehouse — "all" | "San Francisco" | "Tokyo" | "London" | "Singapore"
+ month — "2025-01"…"2025-12" | "Q1-2025"…"Q4-2025" | "all"
+ status — "Delivered" | "Shipped" | "Processing" | "Backordered" | "all"
+