first version
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user