first version

This commit is contained in:
liu
2026-07-23 20:41:25 +08:00
parent 00a0938a1b
commit 10cff754a4
211 changed files with 11577 additions and 842 deletions
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<style>
body { font-family: SimHei, sans-serif; font-size: 12px; color: #333; }
h2 { text-align: center; margin: 0 0 12px; }
.meta { margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #999; padding: 4px 6px; }
th { background: #f0f0f0; }
.text-right { text-align: right; }
tfoot td { font-weight: bold; background: #fafafa; }
</style>
</head>
<body>
<h2>采购单</h2>
<div class="meta">
采购单号:{{ $purchase->purchase_no }}
采购日期:{{ $purchase->purchase_date?->format('Y-m-d') }}
预估金额:¥{{ $purchase->estimate_amount }}
</div>
<table>
<thead>
<tr>
<th>序号</th>
<th>分类</th>
<th>品名</th>
<th>规格/包规</th>
<th>单价</th>
<th>数量</th>
<th>实际称重</th>
<th>金额</th>
<th>供应商</th>
</tr>
</thead>
<tbody>
@foreach ($items as $item)
<tr>
<td>{{ $item->sort }}</td>
<td>{{ $categoryNames[$item->product_id] ?? '' }}</td>
<td>{{ $item->product_name }}</td>
<td>{{ $item->product_spec }}</td>
<td class="text-right">{{ $item->price }}</td>
<td class="text-right">{{ $item->quantity }}</td>
<td class="text-right">{{ $item->weight }}</td>
<td class="text-right">{{ $item->amount }}</td>
<td>{{ $supplierNames[$item->supplier_id] ?? '' }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="7" class="text-right">合计金额</td>
<td class="text-right">¥{{ $items->sum('amount') }}</td>
<td></td>
</tr>
</tfoot>
</table>
</body>
</html>
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<style>
body { font-family: SimHei, sans-serif; font-size: 12px; color: #333; }
h2 { text-align: center; margin: 0 0 12px; }
.meta { margin-bottom: 10px; line-height: 1.8; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #999; padding: 4px 6px; }
th { background: #f0f0f0; }
.text-right { text-align: right; }
tfoot td { font-weight: bold; background: #fafafa; }
</style>
</head>
<body>
<h2>结算表</h2>
<div class="meta">
结算单号:{{ $settlement->settlement_no }}  门店:{{ $storeName }}  来源对账单:{{ $reconNo }}<br>
结算周期:{{ $settlement->period_start?->format('Y-m-d') }} {{ $settlement->period_end?->format('Y-m-d') }}
结算时间:{{ $settlement->settled_at?->format('Y-m-d H:i') }}
</div>
<table>
<thead>
<tr>
<th>品名</th>
<th>数量</th>
<th>称重</th>
<th>公布金额</th>
<th>实际金额</th>
<th>差额</th>
<th>对账状态</th>
<th>门店备注</th>
</tr>
</thead>
<tbody>
@foreach ($items as $item)
<tr>
<td>{{ $item->product_name }}</td>
<td class="text-right">{{ $item->quantity }}</td>
<td class="text-right">{{ $item->weight }}</td>
<td class="text-right">{{ $item->publish_amount }}</td>
<td class="text-right">{{ $item->actual_amount }}</td>
<td class="text-right">{{ $item->diff_amount }}</td>
<td>{{ $item->is_reconciled ? '已对账' : '未对账' }}</td>
<td>{{ $item->store_remark }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="3" class="text-right">合计</td>
<td class="text-right">¥{{ $settlement->total_amount }}</td>
<td class="text-right">¥{{ $settlement->actual_amount }}</td>
<td class="text-right">¥{{ $settlement->diff_amount }}</td>
<td colspan="2"></td>
</tr>
</tfoot>
</table>
</body>
</html>
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<style>
body { font-family: SimHei, sans-serif; font-size: 12px; color: #333; }
h2 { text-align: center; margin: 0 0 12px; }
.meta { margin-bottom: 10px; line-height: 1.8; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #999; padding: 4px 6px; }
th { background: #f0f0f0; }
.text-right { text-align: right; }
tfoot td { font-weight: bold; background: #fafafa; }
</style>
</head>
<body>
<h2>门店对账单</h2>
<div class="meta">
对账单号:{{ $statement->statement_no }}  门店:{{ $storeName }}<br>
对账周期:{{ $statement->period_start?->format('Y-m-d') }} {{ $statement->period_end?->format('Y-m-d') }}
回款周期:{{ $statement->payment_cycle_days }}
应结算日期:{{ $statement->settlement_date?->format('Y-m-d') }}
</div>
<table>
<thead>
<tr>
<th>品名</th>
<th>单价</th>
<th>数量</th>
<th>重量</th>
<th>金额</th>
<th>对账状态</th>
<th>备注</th>
</tr>
</thead>
<tbody>
@foreach ($items as $item)
<tr>
<td>{{ $item->product_name }}</td>
<td class="text-right">{{ $item->price }}</td>
<td class="text-right">{{ $item->quantity }}</td>
<td class="text-right">{{ $item->weight }}</td>
<td class="text-right">{{ $item->amount }}</td>
<td>{{ $item->is_reconciled ? '已对账' : '未对账' }}</td>
<td>{{ $item->store_remark }}</td>
</tr>
@endforeach
</tbody>
<tfoot>
<tr>
<td colspan="4" class="text-right">合计金额</td>
<td class="text-right">¥{{ $statement->total_amount }}</td>
<td colspan="2"></td>
</tr>
</tfoot>
</table>
</body>
</html>