150 lines
5.1 KiB
PHP
150 lines
5.1 KiB
PHP
@php
|
|
$rows = $statement['rows'] ?? [];
|
|
@endphp
|
|
<div class="kuka-lingshan-sheet" data-kuka-lingshan-statement-sheet>
|
|
<h2 class="kuka-lingshan-sheet__title">{{ $statement['title'] ?? '常州灵珊家居有限公司对账单' }}</h2>
|
|
|
|
<table class="kuka-lingshan-sheet__table">
|
|
<colgroup>
|
|
<col class="is-serial">
|
|
<col class="is-code">
|
|
<col class="is-product">
|
|
<col class="is-specification">
|
|
<col class="is-unit">
|
|
<col class="is-quantity">
|
|
<col class="is-price">
|
|
<col class="is-amount">
|
|
<col class="is-address">
|
|
<col class="is-status">
|
|
</colgroup>
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">序号</th>
|
|
<th scope="col">代码</th>
|
|
<th scope="col">产品名称</th>
|
|
<th scope="col">商品规格</th>
|
|
<th scope="col">单位</th>
|
|
<th scope="col">数量</th>
|
|
<th scope="col">单价</th>
|
|
<th scope="col">金额</th>
|
|
<th scope="col">交货地址</th>
|
|
<th scope="col">状态</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@forelse ($rows as $row)
|
|
<tr>
|
|
<td class="is-center">{{ $row['serial'] }}</td>
|
|
<td class="is-center">{{ $row['code'] }}</td>
|
|
<td>{{ $row['product_name'] }}</td>
|
|
<td>{{ $row['specification'] }}</td>
|
|
<td class="is-center">{{ $row['unit'] }}</td>
|
|
<td class="is-number">{{ $row['quantity'] }}</td>
|
|
<td class="is-number">{{ number_format((float) $row['unit_price'], 2, '.', ',') }}</td>
|
|
<td class="is-number">{{ number_format((float) $row['amount'], 2, '.', ',') }}</td>
|
|
<td>{{ $row['delivery_address'] }}</td>
|
|
<td class="is-center">{{ $row['status'] }}</td>
|
|
</tr>
|
|
@empty
|
|
<tr>
|
|
<td colspan="10" class="is-empty">当前账期没有可生成的对账单数据。</td>
|
|
</tr>
|
|
@endforelse
|
|
<tr class="kuka-lingshan-sheet__total">
|
|
<td colspan="5">总金额:</td>
|
|
<td class="is-number">{{ $statement['quantity_total'] ?? '0' }}</td>
|
|
<td></td>
|
|
<td class="is-number">{{ number_format((float) ($statement['amount_total'] ?? 0), 2, '.', ',') }}</td>
|
|
<td></td>
|
|
<td></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="kuka-lingshan-sheet__stamp">
|
|
<span>公司盖章:</span>
|
|
<span class="kuka-lingshan-sheet__stamp-box" aria-label="公司盖章区域"></span>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.kuka-lingshan-sheet {
|
|
width: 1120px;
|
|
min-width: 1120px;
|
|
padding: 24px;
|
|
background: #fff;
|
|
color: #111;
|
|
font-family: "Firefly Sung", "CaiWu CJK", serif;
|
|
}
|
|
.kuka-lingshan-sheet__title {
|
|
margin: 0 0 12px;
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
line-height: 1.35;
|
|
text-align: center;
|
|
}
|
|
.kuka-lingshan-sheet__table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
table-layout: fixed;
|
|
font-size: 11px;
|
|
}
|
|
.kuka-lingshan-sheet__table col.is-serial { width: 4%; }
|
|
.kuka-lingshan-sheet__table col.is-code { width: 10%; }
|
|
.kuka-lingshan-sheet__table col.is-product { width: 26%; }
|
|
.kuka-lingshan-sheet__table col.is-specification { width: 10%; }
|
|
.kuka-lingshan-sheet__table col.is-unit { width: 4%; }
|
|
.kuka-lingshan-sheet__table col.is-quantity { width: 5%; }
|
|
.kuka-lingshan-sheet__table col.is-price { width: 7%; }
|
|
.kuka-lingshan-sheet__table col.is-amount { width: 9%; }
|
|
.kuka-lingshan-sheet__table col.is-address { width: 20%; }
|
|
.kuka-lingshan-sheet__table col.is-status { width: 5%; }
|
|
.kuka-lingshan-sheet__table th,
|
|
.kuka-lingshan-sheet__table td {
|
|
padding: 6px 7px;
|
|
border: 1px solid #222;
|
|
vertical-align: middle;
|
|
line-height: 1.35;
|
|
overflow-wrap: anywhere;
|
|
}
|
|
.kuka-lingshan-sheet__table th {
|
|
background: #f6f4ef;
|
|
font-weight: 700;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
.kuka-lingshan-sheet__table .is-center {
|
|
text-align: center;
|
|
}
|
|
.kuka-lingshan-sheet__table .is-number {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
white-space: nowrap;
|
|
}
|
|
.kuka-lingshan-sheet__table .is-empty {
|
|
height: 120px;
|
|
text-align: center;
|
|
color: #595959;
|
|
}
|
|
.kuka-lingshan-sheet__total td {
|
|
background: #eeeae2;
|
|
font-weight: 700;
|
|
}
|
|
.kuka-lingshan-sheet__stamp {
|
|
display: flex;
|
|
min-height: 72px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
padding-top: 22px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
}
|
|
.kuka-lingshan-sheet__stamp-box {
|
|
display: block;
|
|
width: 58mm;
|
|
height: 12mm;
|
|
border: 1px solid #222;
|
|
}
|
|
</style>
|