94 lines
2.8 KiB
PHP
94 lines
2.8 KiB
PHP
<!DOCTYPE html>
|
||
<html lang="zh">
|
||
<head>
|
||
<meta charset="utf-8"/>
|
||
<title>打印</title>
|
||
<style>
|
||
@media print {
|
||
@page {
|
||
margin: 0;
|
||
}
|
||
body {
|
||
margin: 1.6cm;
|
||
}
|
||
}
|
||
body {
|
||
font-family: "宋体", sans-serif;
|
||
}
|
||
.container {
|
||
/* width: 800px; */
|
||
text-align: center;
|
||
}
|
||
.tag {
|
||
overflow: hidden; /* 清除浮动 */
|
||
}
|
||
span{
|
||
display: block;
|
||
float: left;
|
||
width: 33.333%;
|
||
text-align: left;
|
||
}
|
||
span.left {
|
||
text-align: left;
|
||
}
|
||
span.right {
|
||
float: right;
|
||
text-align: left;
|
||
}
|
||
table.print-table {
|
||
width: 100%;
|
||
border-collapse:collapse;
|
||
border: 1px solid black;
|
||
margin: 0 auto;
|
||
table-layout: fixed;
|
||
}
|
||
td,th{
|
||
line-height: 35px;
|
||
border: 1px solid black;
|
||
}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<button type="button" class="print-hide" onclick="this.style.display='none';window.print();this.style.display='inline';">打印</button>
|
||
<div class="container" id="print-content">
|
||
<p style="font-size:30px;">重庆市巴南区狮子山老年公寓收据</p>
|
||
<p class="tag" style="font-size:20px;">
|
||
<span class="left">客户姓名 :{{$name}}</span>
|
||
<span class="middle">日期 :{{$time}}</span>
|
||
<span class="right">单据编号 :{{$sn}}</span>
|
||
</p>
|
||
<table class="print-table">
|
||
<tr>
|
||
<th style="width: 5%;">序号</th>
|
||
<th style="width: 25%;">费用类别</th>
|
||
<th style="width: 30%;">起止日期</th>
|
||
<th style="width: 15%;">金额</th>
|
||
<th style="width: 25%;">备注</th>
|
||
</tr>
|
||
@foreach($list as $item)
|
||
<tr>
|
||
<td>{{$loop->iteration}}</td>
|
||
<td>{{$item['fee_name']}}</td>
|
||
<td>2022-01-01至2022-01-31</td>
|
||
<td>{{$item['fee_value']}}</td>
|
||
<td>
|
||
<input type="text" style="border:none">
|
||
</td>
|
||
</tr>
|
||
@endforeach
|
||
<tr>
|
||
<td colspan="3">合计大写:</td>
|
||
<td colspan="2">{{$bigTotal}}</td>
|
||
</tr>
|
||
</table>
|
||
<p class="tag" style="font-size:20px;">
|
||
<span class="left">单位盖章 :</span>
|
||
<span class="middle"> </span>
|
||
<span class="right">收款人 :{{$adminName}}</span>
|
||
</p>
|
||
</div>
|
||
</body>
|
||
<script>
|
||
|
||
</script>
|
||
</html> |