采购单

采购单号:{{ $purchase->purchase_no }} 采购日期:{{ $purchase->purchase_date?->format('Y-m-d') }} 预估金额:¥{{ $purchase->estimate_amount }}
@foreach ($storeNames as $storeName) @endforeach @foreach ($items as $item) @foreach ($storeNames as $storeId => $storeName) @endforeach @endforeach
序号 分类 品名 供应商 包规 单位 成本 单价 数量 实际称重 金额{{ $storeName }}(数量)
{{ $item['sort'] }} {{ $categoryNames[$item['product_id']] ?? '' }} {{ $item['product_name'] }} {{ $supplierNames[$item['supplier_id']] ?? '' }} {{ $item['product_spec'] }} {{ $item['unit'] }} {{ $item['cost_price'] }} {{ $item['unit_cost'] }} {{ $item['quantity'] }} {{ $item['weight'] }} {{ $item['amount'] }}{{ $item['store_quantities'][$storeId] ?? 0 }}
合计金额 ¥{{ $items->sum('amount') }}