Warehouse Inventory Grid
blocklogisticsWMS warehouse inventory and bin locator grid: facility selector, 4 summary metric cards for SKUs, capacity, low-stock triggers, and inbound shipments, searchable inventory table with multi-rack bin badges, on-hand/allocated/ATP counts, barcode scanning support, and slide-over bin relocation and receiving drawer.
Installation
$pnpm dlx shadcn-vue@latest add https://uipkge.dev/r/vue/warehouse-inventory-grid.json$npx shadcn-vue@latest add https://uipkge.dev/r/vue/warehouse-inventory-grid.json$yarn dlx shadcn-vue@latest add https://uipkge.dev/r/vue/warehouse-inventory-grid.json$bunx shadcn-vue@latest add https://uipkge.dev/r/vue/warehouse-inventory-grid.jsonNamed registry:
npx shadcn-vue@latest add @uipkge/warehouse-inventory-gridInstalls to:app/components/blocks/Variants
Loading interactive previews…
Loading interactive previews…
Props
| Name | Type / Values | Default | Required |
|---|---|---|---|
class | HTMLAttributes['class'] | — | optional |
Schema
Type aliases exported from this item's source. Use these to shape the data you pass in.
WarehouseIteminterface WarehouseItem {
id: string
sku: string
barcode: string
name: string
category: string
palletId: string
zone: string
binLocation: string
aisle: string
rack: string
shelf: string
onHand: number
allocated: number
available: number
reorderThreshold: number
unitVolume: string
status: StockStatus
lastCycleCount: string
}Files installed (1)
app/components/blocks/WarehouseInventoryGrid.vue34.5 kB
<script setup lang="ts"> import type { HTMLAttributes } from 'vue' import { computed, ref } from 'vue' import { AlertTriangle, ArrowDownToLine, ArrowRightLeft, ArrowUpRight, Barcode, Boxes, Building2, Check, CheckCircle2, ClipboardCheck, MoreHorizontal, Package, PackagePlus, Printer, QrCode, Search, Tag, Truck, Warehouse, X, } from 'lucide-vue-next' import { cn } from '@/lib/utils' import { Badge } from '@/components/ui/badge' import { Button } from '@/components/ui/button' import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card' import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger, } from '@/components/ui/dropdown-menu' import { Input } from '@/components/ui/input' import { Progress } from '@/components/ui/progress' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' import { Separator } from '@/components/ui/separator' import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, } from '@/components/ui/sheet' import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from '@/components/ui/table' export type StockStatus = 'in_stock' | 'low_stock' export interface WarehouseItem { id: string sku: string barcode: string name: string category: string palletId: string zone: string binLocation: string aisle: string rack: string shelf: string onHand: number allocated: number available: number reorderThreshold: number unitVolume: string status: StockStatus lastCycleCount: string } const props = defineProps<{ class?: HTMLAttributes['class'] }>() const facility = ref('bay-area') const searchQuery = ref('') const categoryFilter = ref('all') const statusFilter = ref('all') const zoneFilter = ref('all') const drawerOpen = ref(false) const drawerMode = ref<'transfer' | 'receive'>('transfer') const selectedItem = ref<WarehouseItem | null>(null) const transferDestination = ref('bin-dest-1') const transferQty = ref(50) const transferPalletId = ref('PLT-84920-04') const transferReason = ref('reslotting') const receivePo = ref('po-8910') const receiveSku = ref('SKU-84920') const receiveQty = ref(250) const receiveBin = ref('bay-02') const actionFeedback = ref<string | null>(null) const warehouseItems: WarehouseItem[] = [ { id: 'wh-1', sku: '#SKU-84920', barcode: 'UPC-018249', name: 'Aero Runner 10.5 Matte Black', category: 'Footwear & Apparel', palletId: 'PLT-84920-04', zone: 'Zone A-West (High-Velocity)', binLocation: 'Aisle 04 · Rack B · Shelf 02', aisle: 'Aisle 04', rack: 'Rack B', shelf: 'Shelf 02', onHand: 450, allocated: 85, available: 365, reorderThreshold: 100, unitVolume: '0.04 m³', status: 'in_stock', lastCycleCount: '2 days ago', }, { id: 'wh-2', sku: '#SKU-84921', barcode: 'UPC-029481', name: 'Technical Shell Jacket L', category: 'Outerwear', palletId: 'PLT-84921-02', zone: 'Zone A-North (Apparel Pick)', binLocation: 'Aisle 02 · Rack D · Shelf 01', aisle: 'Aisle 02', rack: 'Rack D', shelf: 'Shelf 01', onHand: 38, allocated: 30, available: 8, reorderThreshold: 50, unitVolume: '0.02 m³', status: 'low_stock', lastCycleCount: 'Yesterday', }, { id: 'wh-3', sku: '#SKU-77210', barcode: 'UPC-093812', name: 'Heavy Duty Pallet Straps (50m)', category: 'Packaging & Materials', palletId: 'PLT-77210-09', zone: 'Zone B-Bulk (Industrial)', binLocation: 'Aisle 07 · Rack A · Shelf 04', aisle: 'Aisle 07', rack: 'Rack A', shelf: 'Shelf 04', onHand: 820, allocated: 140, available: 680, reorderThreshold: 200, unitVolume: '0.08 m³', status: 'in_stock', lastCycleCount: '5 days ago', }, { id: 'wh-4', sku: '#SKU-99341', barcode: 'UPC-048201', name: 'Thermal Packaging Liner 24x24', category: 'Cold Chain Supplies', palletId: 'PLT-99341-01', zone: 'Zone C-Cold (Temp Controlled)', binLocation: 'Aisle 01 · Rack C · Shelf 03', aisle: 'Aisle 01', rack: 'Rack C', shelf: 'Shelf 03', onHand: 24, allocated: 18, available: 6, reorderThreshold: 60, unitVolume: '0.05 m³', status: 'low_stock', lastCycleCount: 'Today', }, { id: 'wh-5', sku: '#SKU-65239', barcode: 'UPC-067194', name: 'Industrial Barcode Scanner BT', category: 'WMS Equipment', palletId: 'PLT-65239-03', zone: 'Zone D-Secure (High-Value)', binLocation: 'Aisle 09 · Rack A · Shelf 01', aisle: 'Aisle 09', rack: 'Rack A', shelf: 'Shelf 01', onHand: 115, allocated: 15, available: 100, reorderThreshold: 30, unitVolume: '0.01 m³', status: 'in_stock', lastCycleCount: '3 days ago', }, { id: 'wh-6', sku: '#SKU-54018', barcode: 'UPC-081924', name: 'Anti-Static Bubble Wrap Roll', category: 'Packaging & Materials', palletId: 'PLT-54018-05', zone: 'Zone B-Bulk (Packaging Bay)', binLocation: 'Aisle 06 · Rack E · Shelf 02', aisle: 'Aisle 06', rack: 'Rack E', shelf: 'Shelf 02', onHand: 190, allocated: 45, available: 145, reorderThreshold: 75, unitVolume: '0.12 m³', status: 'in_stock', lastCycleCount: '1 week ago', }, ] const filteredItems = computed(() => { return warehouseItems.filter((item) => { const q = searchQuery.value.trim().toLowerCase() const matchesSearch = !q || item.name.toLowerCase().includes(q) || item.sku.toLowerCase().includes(q) || item.barcode.toLowerCase().includes(q) || item.binLocation.toLowerCase().includes(q) || item.category.toLowerCase().includes(q) const matchesCategory = categoryFilter.value === 'all' || item.category === categoryFilter.value const matchesStatus = statusFilter.value === 'all' || item.status === statusFilter.value const matchesZone = zoneFilter.value === 'all' || item.zone.toLowerCase().includes(zoneFilter.value.toLowerCase()) return matchesSearch && matchesCategory && matchesStatus && matchesZone }) }) function openTransferDrawer(item?: WarehouseItem) { selectedItem.value = item || warehouseItems[0] transferPalletId.value = selectedItem.value.palletId transferQty.value = Math.min(50, selectedItem.value.available) drawerMode.value = 'transfer' drawerOpen.value = true } function openReceiveDrawer() { drawerMode.value = 'receive' drawerOpen.value = true } function handleConfirmTransfer() { if (!selectedItem.value) return actionFeedback.value = `Successfully relocated ${transferQty.value} units of ${selectedItem.value.sku} to destination bin.` drawerOpen.value = false setTimeout(() => { actionFeedback.value = null }, 4000) } function handleConfirmReceive() { actionFeedback.value = `Received ${receiveQty.value} units for ${receivePo.value.toUpperCase()} staged into Bay 02.` drawerOpen.value = false setTimeout(() => { actionFeedback.value = null }, 4000) } function handlePrintBarcode(item: WarehouseItem) { actionFeedback.value = `Barcode label queued for ${item.sku} (${item.barcode}) on Zebra Printer #2.` setTimeout(() => { actionFeedback.value = null }, 3500) } function handleCycleCount(item: WarehouseItem) { actionFeedback.value = `Cycle count logged and verified for bin ${item.binLocation}.` setTimeout(() => { actionFeedback.value = null }, 3500) } </script> <template> <div data-slot="warehouse-inventory-grid" :class="cn('w-full space-y-6', props.class)"> <!-- Header Section --> <div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between"> <div class="space-y-1"> <div class="flex flex-wrap items-center gap-2.5"> <div class="bg-primary/10 text-primary flex size-8 shrink-0 items-center justify-center rounded-lg"> <Warehouse class="size-4.5 shrink-0" /> </div> <h1 class="text-foreground text-xl font-bold tracking-tight sm:text-2xl"> Warehouse Inventory & Bin Locations </h1> <Badge wrap variant="outline" class="border-success/30 bg-success/10 text-success gap-1.5"> <span class="bg-success size-1.5 shrink-0 animate-pulse rounded-full" /> WMS Live </Badge> </div> <p class="text-muted-foreground text-xs sm:text-sm"> Real-time multi-bin locator, safety stock reorder thresholds, and pallet relocation manifests. </p> </div> <div class="flex flex-wrap items-center gap-2.5"> <!-- Warehouse Facility Select --> <Select v-model="facility"> <SelectTrigger class="w-full sm:w-[320px]"> <Building2 class="text-muted-foreground size-4 shrink-0" /> <SelectValue placeholder="Select warehouse facility" class="min-w-0 truncate" /> </SelectTrigger> <SelectContent> <SelectItem value="bay-area">Bay Area Fulfillment Center #04 · Aisle A-D</SelectItem> <SelectItem value="seattle">Seattle Logistics Hub #02 · High-Bay B</SelectItem> <SelectItem value="dallas">Dallas Central Depot #01 · Mezzanine C</SelectItem> <SelectItem value="newark">Newark Cold Chain #03 · Zone Free-01</SelectItem> </SelectContent> </Select> <Button variant="outline" class="gap-1.5" @click="openTransferDrawer()"> <ArrowRightLeft class="size-4 shrink-0" /> Relocate Bin </Button> <Button class="gap-1.5 shadow-xs" @click="openReceiveDrawer"> <PackagePlus class="size-4 shrink-0" /> Receive Inventory </Button> </div> </div> <!-- Notification / Action Feedback Banner --> <div v-if="actionFeedback" class="border-primary/20 bg-primary/5 text-foreground flex items-center justify-between rounded-lg border px-4 py-3 text-sm shadow-xs transition-colors" > <div class="flex items-center gap-2.5"> <CheckCircle2 class="text-success size-4 shrink-0" /> <span class="text-xs font-medium sm:text-sm">{{ actionFeedback }}</span> </div> <Button variant="ghost" size="xs" class="h-6 w-6 shrink-0 p-0" aria-label="Dismiss notification" @click="actionFeedback = null" > <X class="size-3.5 shrink-0" /> </Button> </div> <!-- 4 WMS Inventory Metric Cards --> <div class="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4"> <!-- Metric 1: Total SKUs --> <Card class="shadow-xs"> <CardHeader class="flex flex-row items-center justify-between space-y-0 pb-2"> <CardTitle class="text-muted-foreground text-xs font-medium tracking-wider uppercase"> Total SKUs in Stock </CardTitle> <div class="bg-primary/10 text-primary flex size-8 shrink-0 items-center justify-center rounded-md"> <Package class="size-4 shrink-0" /> </div> </CardHeader> <CardContent class="space-y-1"> <div class="text-foreground text-2xl font-bold tracking-tight tabular-nums"> 1,842 <span class="text-muted-foreground text-sm font-normal">SKUs</span> </div> <p class="text-muted-foreground flex items-center gap-1.5 pt-1 text-xs"> <span class="text-success flex items-center font-medium"> <ArrowUpRight class="mr-0.5 inline size-3 shrink-0" />+48 SKUs </span> <span>· 99.4% count accuracy</span> </p> </CardContent> </Card> <!-- Metric 2: Warehouse Capacity --> <Card class="shadow-xs"> <CardHeader class="flex flex-row items-center justify-between space-y-0 pb-2"> <CardTitle class="text-muted-foreground text-xs font-medium tracking-wider uppercase"> Warehouse Capacity </CardTitle> <div class="bg-info/10 text-info flex size-8 shrink-0 items-center justify-center rounded-md"> <Boxes class="size-4 shrink-0" /> </div> </CardHeader> <CardContent class="space-y-2"> <div class="flex flex-wrap items-baseline justify-between gap-x-2 gap-y-0.5"> <div class="text-foreground text-2xl font-bold tracking-tight tabular-nums">84.5%</div> <span class="text-muted-foreground text-xs tabular-nums">12,400 / 14,800 pallets</span> </div> <Progress :model-value="84.5" class="h-1.5" /> <p class="text-muted-foreground text-xs">2,400 available slots in High-Bay & Bulk</p> </CardContent> </Card> <!-- Metric 3: Low Stock Alerts --> <Card class="shadow-xs"> <CardHeader class="flex flex-row items-center justify-between space-y-0 pb-2"> <CardTitle class="text-muted-foreground text-xs font-medium tracking-wider uppercase"> Low Stock Alerts </CardTitle> <div class="bg-warning/10 text-warning flex size-8 shrink-0 items-center justify-center rounded-md"> <AlertTriangle class="size-4 shrink-0" /> </div> </CardHeader> <CardContent class="space-y-1"> <div class="flex items-center gap-2"> <div class="text-warning text-warning text-2xl font-bold tracking-tight tabular-nums">12</div> <Badge wrap variant="warning" class="text-xs font-normal"> Action required </Badge> </div> <p class="text-muted-foreground pt-1 text-xs">Below safety stock threshold · 4 POs in transit</p> </CardContent> </Card> <!-- Metric 4: Inbound Shipments Today --> <Card class="shadow-xs"> <CardHeader class="flex flex-row items-center justify-between space-y-0 pb-2"> <CardTitle class="text-muted-foreground text-xs font-medium tracking-wider uppercase"> Inbound Shipments Today </CardTitle> <div class="bg-success/10 text-success flex size-8 shrink-0 items-center justify-center rounded-md"> <Truck class="size-4 shrink-0" /> </div> </CardHeader> <CardContent class="space-y-1"> <div class="text-foreground text-2xl font-bold tracking-tight tabular-nums"> 4 <span class="text-muted-foreground text-sm font-normal">POs arriving</span> </div> <p class="text-muted-foreground pt-1 text-xs">2,450 units expected by 16:00 · Bay 02 & 05</p> </CardContent> </Card> </div> <!-- Inventory Filter & Search Toolbar --> <Card class="shadow-xs"> <CardHeader class="border-border border-b pb-3"> <div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between"> <div class="flex flex-1 flex-wrap items-center gap-2"> <div class="relative w-full min-w-0 md:max-w-sm"> <Search class="text-muted-foreground absolute top-1/2 left-3 size-4 shrink-0 -translate-y-1/2" /> <Input v-model="searchQuery" placeholder="Search SKU or product" class="h-9 pl-9 text-xs sm:text-sm" /> </div> <!-- Category Filter --> <Select v-model="categoryFilter"> <SelectTrigger class="h-9 w-[160px] text-xs"> <SelectValue placeholder="All Categories" /> </SelectTrigger> <SelectContent> <SelectItem value="all">All Categories</SelectItem> <SelectItem value="Footwear & Apparel">Footwear & Apparel</SelectItem> <SelectItem value="Outerwear">Outerwear</SelectItem> <SelectItem value="Packaging & Materials">Packaging & Materials</SelectItem> <SelectItem value="Cold Chain Supplies">Cold Chain Supplies</SelectItem> <SelectItem value="WMS Equipment">WMS Equipment</SelectItem> </SelectContent> </Select> <!-- Status Filter --> <Select v-model="statusFilter"> <SelectTrigger class="h-9 w-[140px] text-xs"> <SelectValue placeholder="All Stock Status" /> </SelectTrigger> <SelectContent> <SelectItem value="all">All Statuses</SelectItem> <SelectItem value="in_stock">In Stock</SelectItem> <SelectItem value="low_stock">Low Stock (Reorder)</SelectItem> </SelectContent> </Select> </div> <div class="text-muted-foreground flex items-center gap-2 text-xs"> <span >Showing <strong class="text-foreground tabular-nums">{{ filteredItems.length }}</strong> of {{ warehouseItems.length }} inventory items</span > </div> </div> </CardHeader> <CardContent class="p-0"> <!-- Inventory Table --> <div class="overflow-x-auto"> <Table> <TableHeader> <TableRow class="hover:bg-transparent"> <TableHead class="w-[180px] text-xs font-semibold">SKU & Barcode</TableHead> <TableHead class="min-w-[220px] text-xs font-semibold">Item & Category</TableHead> <TableHead class="min-w-[210px] text-xs font-semibold">Bin / Rack Location</TableHead> <TableHead class="text-right text-xs font-semibold">On Hand</TableHead> <TableHead class="text-right text-xs font-semibold">Allocated</TableHead> <TableHead class="text-right text-xs font-semibold">Available (ATP)</TableHead> <TableHead class="min-w-[160px] text-xs font-semibold">Reorder & Status</TableHead> <TableHead class="w-[60px] text-right text-xs font-semibold">Actions</TableHead> </TableRow> </TableHeader> <TableBody> <TableRow v-for="item in filteredItems" :key="item.id" class="hover:bg-muted/40 transition-colors"> <!-- SKU & Barcode --> <TableCell class="py-3"> <div class="space-y-0.5"> <div class="text-foreground font-mono text-xs font-semibold"> {{ item.sku }} </div> <div class="text-muted-foreground flex items-center gap-1 font-mono text-xs"> <Barcode class="text-muted-foreground/70 size-3 shrink-0" /> <span>{{ item.barcode }}</span> </div> </div> </TableCell> <!-- Item Name & Category --> <TableCell class="py-3"> <div class="space-y-0.5"> <div class="text-foreground text-sm font-medium"> {{ item.name }} </div> <div class="text-muted-foreground flex items-center gap-1.5 text-xs"> <span>{{ item.category }}</span> <span>·</span> <span class="font-mono text-xs">{{ item.palletId }}</span> </div> </div> </TableCell> <!-- Bin / Rack Location Badge --> <TableCell class="py-3"> <div class="space-y-1"> <Badge wrap variant="outline" class="bg-muted/30 gap-1.5 font-mono text-xs font-medium"> <Tag class="text-primary size-3 shrink-0" /> {{ item.binLocation }} </Badge> <div class="text-muted-foreground text-xs"> {{ item.zone }} </div> </div> </TableCell> <!-- On Hand --> <TableCell class="py-3 text-right"> <div class="text-foreground text-sm font-semibold tabular-nums"> {{ item.onHand.toLocaleString() }} <span class="text-muted-foreground text-xs font-normal">units</span> </div> <div class="text-muted-foreground text-xs tabular-nums"> {{ item.unitVolume }} </div> </TableCell> <!-- Allocated --> <TableCell class="py-3 text-right"> <div class="text-muted-foreground text-sm font-medium tabular-nums"> {{ item.allocated.toLocaleString() }} <span class="text-muted-foreground text-xs font-normal">units</span> </div> <div class="text-muted-foreground text-xs tabular-nums"> {{ Math.round((item.allocated / item.onHand) * 100) }}% reserved </div> </TableCell> <!-- Available (ATP) --> <TableCell class="py-3 text-right"> <div class="text-foreground text-sm font-bold tabular-nums"> {{ item.available.toLocaleString() }} <span class="text-muted-foreground text-xs font-normal">units</span> </div> <div class="text-success text-xs font-medium">Ready to pick</div> </TableCell> <!-- Reorder Threshold & Status --> <TableCell class="py-3"> <div class="space-y-1"> <Badge v-if="item.status === 'in_stock'" variant="success" class="gap-1 text-xs whitespace-normal"> <CheckCircle2 class="size-3 shrink-0" /> In Stock </Badge> <Badge wrap v-else variant="warning" class="gap-1 text-xs"> <AlertTriangle class="size-3 shrink-0" /> Low Stock - Reorder </Badge> <div class="text-muted-foreground text-xs tabular-nums"> Min safety: {{ item.reorderThreshold }} units </div> </div> </TableCell> <!-- Actions Menu --> <TableCell class="py-3 text-right"> <DropdownMenu> <DropdownMenuTrigger as-child> <Button variant="ghost" size="icon-sm" class="size-8 shrink-0"> <MoreHorizontal class="size-4 shrink-0" /> <span class="sr-only">Open menu</span> </Button> </DropdownMenuTrigger> <DropdownMenuContent align="end" class="w-48"> <DropdownMenuLabel class="text-muted-foreground text-xs">Bin Actions</DropdownMenuLabel> <DropdownMenuItem class="cursor-pointer gap-2" @click="openTransferDrawer(item)"> <ArrowRightLeft class="text-muted-foreground size-4 shrink-0" /> Transfer / Relocate Bin </DropdownMenuItem> <DropdownMenuItem class="cursor-pointer gap-2" @click="handlePrintBarcode(item)"> <Printer class="text-muted-foreground size-4 shrink-0" /> Print Barcode Label </DropdownMenuItem> <DropdownMenuItem class="cursor-pointer gap-2" @click="handleCycleCount(item)"> <ClipboardCheck class="text-muted-foreground size-4 shrink-0" /> Log Cycle Count </DropdownMenuItem> <DropdownMenuSeparator /> <DropdownMenuItem class="text-warning cursor-pointer gap-2" @click="openReceiveDrawer"> <PackagePlus class="size-4 shrink-0" /> Receive Restock Batch </DropdownMenuItem> </DropdownMenuContent> </DropdownMenu> </TableCell> </TableRow> <TableRow v-if="filteredItems.length === 0"> <TableCell colspan="8" class="text-muted-foreground h-32 text-center text-sm"> No warehouse inventory items found matching your criteria. </TableCell> </TableRow> </TableBody> </Table> </div> </CardContent> </Card> <!-- Quick Transfer / Relocate Bin Drawer (Sheet) --> <Sheet v-model:open="drawerOpen"> <SheetContent side="right" class="w-full space-y-6 overflow-y-auto p-6 sm:max-w-md"> <!-- Drawer Header --> <SheetHeader class="space-y-1 text-left"> <div class="flex items-center gap-2"> <div class="bg-primary/10 text-primary flex size-8 shrink-0 items-center justify-center rounded-md"> <ArrowRightLeft v-if="drawerMode === 'transfer'" class="size-4 shrink-0" /> <PackagePlus v-else class="size-4 shrink-0" /> </div> <SheetTitle class="text-lg font-bold"> {{ drawerMode === 'transfer' ? 'Relocate Bin / Pallet Transfer' : 'Receive Inventory Inbound' }} </SheetTitle> </div> <SheetDescription class="text-muted-foreground text-xs"> {{ drawerMode === 'transfer' ? 'Relocate inventory pallets between rack coordinates and generate WMS transfer manifests.' : 'Process inbound freight shipments, inspect UPC barcodes, and assign initial staging bins.' }} </SheetDescription> </SheetHeader> <!-- Mode: Transfer Bin --> <template v-if="drawerMode === 'transfer' && selectedItem"> <!-- Item Card Summary --> <div class="border-border bg-muted/20 space-y-3 rounded-lg border p-4"> <div class="flex items-start justify-between gap-2"> <div> <div class="text-primary font-mono text-xs font-semibold">{{ selectedItem.sku }}</div> <div class="text-foreground text-sm font-medium">{{ selectedItem.name }}</div> <div class="text-muted-foreground text-xs">{{ selectedItem.category }}</div> </div> <Badge wrap variant="outline" class="font-mono text-xs">{{ selectedItem.palletId }}</Badge> </div> <Separator /> <div class="grid grid-cols-1 gap-2 text-xs sm:grid-cols-2"> <div> <span class="text-muted-foreground">Current Bin:</span> <p class="text-foreground mt-0.5 font-mono text-xs font-medium">{{ selectedItem.binLocation }}</p> </div> <div> <span class="text-muted-foreground">Available to Move:</span> <p class="text-success text-success mt-0.5 font-bold tabular-nums"> {{ selectedItem.available }} units </p> </div> </div> </div> <!-- Transfer Form Fields --> <div class="space-y-4"> <div class="space-y-1.5"> <label class="text-foreground text-xs font-medium">Destination Rack / Bin Location</label> <Select v-model="transferDestination"> <SelectTrigger class="w-full text-xs"> <SelectValue placeholder="Select target bin location" /> </SelectTrigger> <SelectContent> <SelectItem value="bin-dest-1" >Aisle 01 · Rack A · Shelf 03 (Zone A-North · Standard Rack)</SelectItem > <SelectItem value="bin-dest-2">Aisle 03 · Rack B · Shelf 01 (Zone A-West · Fast-Pick)</SelectItem> <SelectItem value="bin-dest-3">Aisle 08 · Rack C · Shelf 04 (Zone B-Bulk · High-Bay)</SelectItem> <SelectItem value="bin-dest-4">Aisle 05 · Rack D · Shelf 02 (Zone C-Cold · Cold Bay)</SelectItem> </SelectContent> </Select> </div> <div class="space-y-1.5"> <div class="flex items-center justify-between"> <label class="text-foreground text-xs font-medium">Transfer Quantity (Units)</label> <span class="text-muted-foreground text-xs tabular-nums">Max: {{ selectedItem.available }} units</span> </div> <Input v-model.number="transferQty" type="number" :min="1" :max="selectedItem.available" class="text-xs tabular-nums sm:text-sm" /> <div class="flex gap-1.5 pt-1"> <Button type="button" variant="outline" size="xs" class="flex-1 text-xs" @click="transferQty = Math.min(25, selectedItem.available)" > 25 </Button> <Button type="button" variant="outline" size="xs" class="flex-1 text-xs" @click="transferQty = Math.min(50, selectedItem.available)" > 50 </Button> <Button type="button" variant="outline" size="xs" class="flex-1 text-xs" @click="transferQty = Math.min(100, selectedItem.available)" > 100 </Button> <Button type="button" variant="outline" size="xs" class="flex-1 text-xs" @click="transferQty = selectedItem.available" > All ({{ selectedItem.available }}) </Button> </div> </div> <div class="space-y-1.5"> <label class="text-foreground text-xs font-medium">Pallet ID / Batch Lot</label> <Input v-model="transferPalletId" class="font-mono text-xs" /> </div> <div class="space-y-1.5"> <label class="text-foreground text-xs font-medium">Transfer Reason</label> <Select v-model="transferReason"> <SelectTrigger class="w-full text-xs"> <SelectValue placeholder="Select transfer reason" /> </SelectTrigger> <SelectContent> <SelectItem value="reslotting">Zone Re-slotting (Velocity Optimization)</SelectItem> <SelectItem value="consolidation">Consolidation & Space Reclamation</SelectItem> <SelectItem value="staging">Fast-Pick Outbound Wave Staging</SelectItem> <SelectItem value="rack-repair">Damaged Rack Maintenance Relocation</SelectItem> <SelectItem value="quarantine">Quarantine & Quality Audit Transfer</SelectItem> </SelectContent> </Select> </div> <!-- Verified Scanner / Operator Badge --> <div class="border-border bg-muted/40 space-y-1 rounded-md border p-3 text-xs"> <div class="text-muted-foreground flex items-center justify-between"> <span class="flex items-center gap-1.5"> <QrCode class="text-primary size-3.5 shrink-0" /> WMS Scanner Terminal </span> <span class="text-foreground font-mono font-medium">TC57-OP44</span> </div> <p class="text-muted-foreground">Operator: Marcus Vance (Badge #OP-921)</p> </div> </div> </template> <!-- Mode: Receive Inbound PO --> <template v-else> <div class="space-y-4"> <div class="space-y-1.5"> <label class="text-foreground text-xs font-medium">Inbound Purchase Order</label> <Select v-model="receivePo"> <SelectTrigger class="w-full text-xs"> <SelectValue placeholder="Select purchase order" /> </SelectTrigger> <SelectContent> <SelectItem value="po-8910">PO-2026-8910 · Acme Footwear Corp (500 units)</SelectItem> <SelectItem value="po-8914">PO-2026-8914 · Pacific Packaging Ltd (1,200 units)</SelectItem> <SelectItem value="po-8919">PO-2026-8919 · Thermal Supply Chain Co (750 units)</SelectItem> </SelectContent> </Select> </div> <div class="space-y-1.5"> <label class="text-foreground text-xs font-medium">Target SKU / Barcode</label> <Input v-model="receiveSku" placeholder="#SKU-84920 or UPC code" class="font-mono text-xs" /> </div> <div class="space-y-1.5"> <label class="text-foreground text-xs font-medium">Received Quantity (Units)</label> <Input v-model.number="receiveQty" type="number" class="text-xs tabular-nums" /> </div> <div class="space-y-1.5"> <label class="text-foreground text-xs font-medium">Assigned Inbound Staging Bay</label> <Select v-model="receiveBin"> <SelectTrigger class="w-full text-xs"> <SelectValue placeholder="Select staging bin" /> </SelectTrigger> <SelectContent> <SelectItem value="bay-02">Staging Bay Inbound-02 (Aisle 00 · Cross-Dock)</SelectItem> <SelectItem value="bay-05">Staging Bay Inbound-05 (Cold Holding)</SelectItem> <SelectItem value="bay-08">Bulk Floor Staging Area B</SelectItem> </SelectContent> </Select> </div> <div class="text-foreground border-success/20 bg-success/5 space-y-1 rounded-md border p-3 text-xs"> <div class="text-success flex items-center gap-1.5 font-medium"> <Check class="size-3.5 shrink-0" /> Inbound Freight Scan Ready </div> <p class="text-muted-foreground"> Pallet tags will be generated and printed automatically upon receipt confirmation. </p> </div> </div> </template> <!-- Drawer Footer --> <SheetFooter class="border-border flex flex-col-reverse gap-2 border-t pt-4 sm:flex-row sm:justify-end"> <SheetClose as-child> <Button variant="outline" class="w-full sm:w-auto">Cancel</Button> </SheetClose> <Button v-if="drawerMode === 'transfer'" class="w-full gap-1.5 sm:w-auto" @click="handleConfirmTransfer"> <ArrowRightLeft class="size-4 shrink-0" /> Confirm Bin Transfer </Button> <Button v-else class="w-full gap-1.5 sm:w-auto" @click="handleConfirmReceive"> <ArrowDownToLine class="size-4 shrink-0" /> Confirm Receipt </Button> </SheetFooter> </SheetContent> </Sheet> </div> </template>
Raw manifest:https://uipkge.dev/r/vue/warehouse-inventory-grid.json