Browse Source

Merge remote-tracking branch 'origin/master'

GGican 8 năm trước cách đây
mục cha
commit
e385f135da

+ 301 - 565
resources/views/admin/print/print_all.blade.php

xqd
@@ -1,605 +1,341 @@
 <!DOCTYPE html>
 <html>
 <head>
-<meta charset="utf-8">
-<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
-<title>成本审计汇总表</title>
-<meta name="description" content="">
-<meta name="keywords" content="">
-<link href="" rel="stylesheet" href="css/style.css">
-<style type="text/css">
-	.heads_tr td{font-size:11pt;font-weight:700;line-height:26px;}
-	body{
-	font-family:font-family:Micosoft YaHei,simsun,WenQuanYi MicoHei;
-	}
-</style>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <title>成本审计汇总表</title>
+    <meta name="description" content="">
+    <meta name="keywords" content="">
+    <style type="text/css">
+        .heads_tr td {
+            font-size: 11pt;
+            font-weight: 700;
+            line-height: 26px;
+        }
+
+        body {
+            font-family: font-family: Micosoft YaHei, simsun, WenQuanYi MicoHei;
+        }
+
+        .btn {
+            margin-top: 15px;
+        }
+
+        .print_button {
+            height: 40px;
+            background: #369 none repeat scroll 0 0;
+            border: 2px solid #efefef;
+            border-radius: 5px;
+            width: 100px;
+            color: #fff;
+            font-size: 13px;
+            font-weight: 700;
+        }
+    </style>
 </head>
 <body>
-  <div id="print">
-   	<table cellspacing="0" cellpadding="0" width="990" align="center"> 
-			<tbody>
-				<tr> 
-					<td colspan="4"> 
-						<table cellspacing="0" cellpadding="0" width="900" align="center">
-							<tbody>
-								<tr> 
-									<td>
-										<h2 class="orderTitle1"><center>街坊项目拆迁成本统计表</center></h2> 
-									</td> 
-									<td>
-										<span style="float:right"><h2 class="orderTitle1"></h2></span>
-									</td> 
-								</tr> 
-							</tbody>
-						</table> 
-					</td> 
-				</tr> 
-			</tbody>
-	</table>
-		<table cellspacing="0" cellpadding="0" width="900" align="center">
-			<tbody>
-				<tr> 
-					<td width="79" align="right" valign="top"></td> 
-					<td width="185" valign="top"></td> 
-					<td colspan="2"></td> 
-				</tr> 
-				<tr> 
-					<td align="right" valign="top"></td> 
-					<td valign="top"> </td> 
-					<td align="right" valign="top">  单位:㎡、元、套</td> 
-				</tr> 
-	        </tbody>
-	</table>
-
-		<table id="page_one" border="1" cellspacing="0" cellpadding="0" width="990" align="center"
-		 class="t1" style="font-size:14px; margin-top:15px;"> 
-			<tbody>
-			    <tr class="heads_tr">
-					@for($i=1;$i<12;$i++)
-						<td width="90" align="center">{{ $i }}</td>
-					@endfor
-				</tr>
-				<tr class="heads_tr">
-					@foreach($th as $value)
-					<td width="90" align="center">{{ $value }}</td>
-						@endforeach
-				</tr>
-				@foreach($table[1] as $value)
-
-				@endforeach
-
-
-				<tr id="table1" v-for="value in data">
-					<td width="100" align="center">@{{ value.num }}</td>
-					<td width="100" align="center">@{{ $value.bzc_name }}</td>
-					<td width="100" align="center">@{{ $value.bzc_addr }}</td>
-					<td width="100" align="center">@{{ $value.bzc_cardid }}</td>
-					<td width="100" align="center">@{{ $value.bzc_tel }}</td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-				</tr>
-
-
-				@foreach($table[2] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[3] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[4] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[5] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[6] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[7] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center">{{ $value->youzheng_area }}</td>
-						<td width="100" align="center">{{ $value->wuzheng_area }}</td>
-						<td width="100" align="center">{{ $value->fangbu }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->tingyuan }}</td>
-						<td width="100" align="center">{{ $value->zhuangxiu }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[8] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center">{{ $value->youzheng_area }}</td>
-						<td width="100" align="center">{{ $value->wuzheng_area }}</td>
-						<td width="100" align="center">{{ $value->fangbu }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->tingyuan }}</td>
-						<td width="100" align="center">{{ $value->zhuangxiu }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[9] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->num }}</td>
-						<td width="100" align="center">{{ $value->bzc_name }}</td>
-						<td width="100" align="center">{{ $value->bzc_addr }}</td>
-						<td width="100" align="center">{{ $value->bzc_cardid }}</td>
-						<td width="100" align="center">{{ $value->bzc_tel }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->fangbu }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->kongyuan }}</td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-
-			</tbody>
-		</table> 
-
-
-  {{--===================================================================================================================================================================--}}
-
-		<table id="page_two" border="1" cellspacing="0" cellpadding="0" width="990" align="center" class="t1" style="font-size:14px; margin-top:15px;"> 
-			<tbody>
-			    <tr class="heads_tr">
-					@for($k=12;$k<23;$k++)
-					<td width="90" align="center">{{ $k }}</td>
-						@endfor
-				</tr>
-				<tr class="heads_tr">
-					@foreach($th1 as $value)
-					<td width="90" align="center">{{$value}}</td>
-						@endforeach
-				</tr>
-				@foreach($table[1] as $value)
-				<tr>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-                    <td width="100" align="center">{{ $value->total_money }}</td>
+<div id="vue">
+    <div id="print">
+        <table cellspacing="0" cellpadding="0" width="990" align="center" min-height="350">
+            <tbody>
+            <tr>
+                <td colspan="4">
+                    <table cellspacing="0" cellpadding="0" width="900" align="center">
+                        <tbody>
+                        <tr>
+                            <td>
+                                <h2 class="orderTitle1">
+                                    <center>街坊项目拆迁成本统计表</center>
+                                </h2>
+                            </td>
+                            <td>
+                                <span style="float:right"><h2 class="orderTitle1"></h2></span>
+                            </td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </td>
+            </tr>
+            </tbody>
+        </table>
+        <table cellspacing="0" cellpadding="0" width="900" align="center">
+            <tbody>
+            <tr>
+                <td width="79" align="right" valign="top"></td>
+                <td width="185" valign="top"></td>
+                <td colspan="2"></td>
+            </tr>
+            <tr>
+                <td align="right" valign="top"></td>
+                <td valign="top"></td>
+                <td align="right" valign="top"> 单位:㎡、元、套</td>
+            </tr>
+            </tbody>
+        </table>
+
+        <table id="page_one" border="1" cellspacing="0" cellpadding="0" width="990" align="center"
+               class="t1" style="font-size:14px; margin-top:15px;min-height:580px">
+            <tbody>
+            <tr class="heads_tr">
+                @for($i=1;$i<12;$i++)
+                    <td width="90" align="center">{{ $i }}</td>
+                @endfor
+            </tr>
+            <tr class="heads_tr">
+                @foreach($th as $value)
+                    <td width="90" align="center">{{ $value }}</td>
+                @endforeach
+            </tr>
+
+            <template v-for="value of list">
+                <tr>
+                    <td width="100" align="center">@{{ value.num }}</td>
+                    <td width="100" align="center">@{{ value.bzc_name }}</td>
+                    <td width="100" align="center">@{{ value.bzc_addr }}</td>
+                    <td width="100" align="center">@{{ value.bzc_cardid }}</td>
+                    <td width="100" align="center">@{{ value.bzc_tel }}</td>
+                    <td width="100" align="center">@{{ value.youzheng_area }}</td>
+                    <td width="100" align="center">@{{ value.wuzheng_area }}</td>
+                    <td width="100" align="center">@{{ value.fangbu }}</td>
                     <td width="100" align="center"></td>
-				</tr>
-				@endforeach
-				@foreach($table[2] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->chaichuje }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[3] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->linshibu }}</td>
-						<td width="100" align="center">{{ $value->banqianbu }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->canbu }}</td>
-						<td width="100" align="center">{{ $value->total }}</td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[4] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->quanj }}</td>
-						<td width="100" align="center">{{ $value->chaj }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->zongj }}</td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[5] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->yuqij }}</td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[6] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->anzhi }}</td>
-						<td width="100" align="center">{{ $value->banqian }}</td>
-						<td width="100" align="center">{{ $value->dibu }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->other }}</td>
-						<td width="100" align="center">{{ $value->total }}</td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[7] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->gouzhu }}</td>
-						<td width="100" align="center">{{ $value->tingchan }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->chaiqian }}</td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				@foreach($table[8] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->gouzhu }}</td>
-						<td width="100" align="center">{{ $value->tingchan }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->chaiqian }}</td>
-						<td width="100" align="center">{{ $value->hours }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[9] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->gouzhu }}</td>
-						<td width="100" align="center">{{ $value->tingye }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->other }}</td>
-						<td width="100" align="center">{{ $value->chaiqian }}</td>
-						<td width="100" align="center"></td>
-					</tr>
-				@endforeach
-				
-			</tbody>
-		</table>
-
-  {{--===================================================================================================================================================================--}}
-
-		<table id="page_three" border="1" cellspacing="0" cellpadding="0" width="990" align="center" class="t1" style="font-size:14px; margin-top:15px;"> 
-			<tbody>
-			    <tr class="heads_tr">
-					@for($j=23;$j<32;$j++)
-						<td width="90" align="center">{{ $j }}</td>
-					@endfor
-				</tr>
-				<tr class="heads_tr">
-					@foreach($th2 as $value)
-					<td width="90" align="center">{{ $value }}</td>
-					@endforeach
-				</tr>
-
-				@foreach($table[1] as $value)
-				<tr>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center">{{ $value->money_home_jchae }}</td>
-					<td width="100" align="center">{{ $value->money_home_tchae }}</td>
-					<td width="100" align="center">{{ $value->created_at }}</td>
-					<td width="100" align="center"></td>
-					<td width="100" align="center">{{ $value->sub_description }}</td>
-				</tr>
-					@endforeach
-				@foreach($table[2] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"> </td>
-						<td width="100" align="center"> </td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[3] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[4] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[5] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[6] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[7] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[8] as $value)
-					<tr>
-						<td width="100" align="center">{{ $value->huiqian_area }}</td>
-						<td width="100" align="center">{{ $value->huiqian_home_area }}</td>
-						<td width="100" align="center">{{ $value->huiqian_shang_area }}</td>
-						<td width="100" align="center">{{ $value->huiqian }}</td>
-						<td width="100" align="center">{{ $value->yingjiao }}</td>
-						<td width="100" align="center">{{ $value->yingtui }}</td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-				@foreach($table[9] as $value)
-					<tr>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->created_at }}</td>
-						<td width="100" align="center"></td>
-						<td width="100" align="center">{{ $value->sub_description }}</td>
-					</tr>
-				@endforeach
-			</tbody>
-		</table> 
-  </div>
-
-  <div align="center" class="btn">
-	  <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed('print')">
-  </div>
-  <style>
-  .btn{
-  	margin-top:15px;
-  }
-    .print_button{height:40px;background:#369 none repeat scroll 0 0;border:2px solid #efefef;border-radius:5px;width:100px;color:#fff;font-size:13px;font-weight:700;}
-  </style>
-
-  <script src="{{ asset('js/jQuery-2.2.0.min.js') }}"></script>
-  <script src="{{ asset('js/vue.min.js') }}"></script>
-  <script type="text/javascript">
-       var rootel=document.documentElement; //XHTMlvar bto=document.getElementById('divTest');
-
-        function printed(printpage)
-            {
-                var headstr = "<html><head><title></title></head><body>";
-                var footstr = "</body>";
-                var newstr = document.all.item(printpage).innerHTML;
-                var oldstr = document.body.innerHTML;
-                document.body.innerHTML = headstr+newstr+footstr;
-                window.print();
-                document.body.innerHTML = oldstr;
-                return false;
-            }
+                    <td width="100" align="center">@{{ value.tingyuan }} @{{value.kongyuan}}</td>
+                    <td width="100" align="center">@{{ value.zhuangxiu }}</td>
+                </tr>
+            </template>
+
+            </tbody>
+        </table>
+
+
+         <table cellspacing="0" cellpadding="0" width="990" align="center" min-height="350" style=" margin-top: 97px;">
+            <tbody>
+            <tr>
+                <td colspan="4">
+                    <table cellspacing="0" cellpadding="0" width="900" align="center">
+                        <tbody>
+                        <tr>
+                            <td>
+                                <h2 class="orderTitle1">
+                                    <center>街坊项目拆迁成本统计表</center>
+                                </h2>
+                            </td>
+                            <td>
+                                <span style="float:right"><h2 class="orderTitle1"></h2></span>
+                            </td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </td>
+            </tr>
+            </tbody>
+        </table>
+          <table cellspacing="0" cellpadding="0" width="900" align="center" >
+            <tbody>
+            <tr>
+                <td width="79" align="right" valign="top"></td>
+                <td width="185" valign="top"></td>
+                <td colspan="2"></td>
+            </tr>
+            <tr>
+                <td align="right" valign="top"></td>
+                <td valign="top"></td>
+                <td align="right" valign="top"> 单位:㎡、元、套</td>
+            </tr>
+            </tbody>
+        </table>
+        <table id="page_two" border="1" cellspacing="0" cellpadding="0" width="990" align="center" class="t1"
+               style="font-size:14px;min-height: 560px;">
+            <tbody>
+            <tr class="heads_tr">
+                @for($k=12;$k<23;$k++)
+                    <td width="90" align="center">{{ $k }}</td>
+                @endfor
+            </tr>
+            <tr class="heads_tr">
+                @foreach($th1 as $value)
+                    <td width="90" align="center">{{$value}}</td>
+                @endforeach
+            </tr>
+            <template v-for="value of list">
+                <tr>
+                    <td width="100" align="center">@{{ value.gouzhu}}</td>
+                    <td width="100" align="center">@{{ value.tingchan }} @{{ value.tingye }}</td>
+                    <td width="100" align="center">@{{ value.linshibu }} @{{ value.anzhi }}</td>
+                    <td width="100" align="center">@{{ value.banqianbu }} @{{ value.anzhi }}</td>
+                    <td width="100" align="center">@{{ value.dibu }}</td>
+                    <td width="100" align="center">@{{ value.quanj }}</td>
+                    <td width="100" align="center">@{{ value.chaj }}</td>
+                    <td width="100" align="center">@{{ value.chaichuje }}</td>
+                    <td width="100" align="center">@{{ value.canbu }} @{{ value.other }}</td>
+                    <td width="100"
+                        align="center">@{{ value.total_money }} @{{ value.total }} @{{ value.zongj }} @{{ value.yuqij }} @{{ value.chaiqian }}</td>
+                    <td width="100" align="center">@{{ value.hours }}</td>
+                </tr>
+            </template>
+
+            </tbody>
+        </table>
+
+
+
+
+
+            <table cellspacing="0" cellpadding="0" width="990" align="center" min-height="350" style=" margin-top: 97px;">
+            <tbody>
+            <tr>
+                <td colspan="4">
+                    <table cellspacing="0" cellpadding="0" width="900" align="center">
+                        <tbody>
+                        <tr>
+                            <td>
+                                <h2 class="orderTitle1">
+                                    <center>街坊项目拆迁成本统计表</center>
+                                </h2>
+                            </td>
+                            <td>
+                                <span style="float:right"><h2 class="orderTitle1"></h2></span>
+                            </td>
+                        </tr>
+                        </tbody>
+                    </table>
+                </td>
+            </tr>
+            </tbody>
+        </table>
+          <table cellspacing="0" cellpadding="0" width="900" align="center" >
+            <tbody>
+            <tr>
+                <td width="79" align="right" valign="top"></td>
+                <td width="185" valign="top"></td>
+                <td colspan="2"></td>
+            </tr>
+            <tr>
+                <td align="right" valign="top"></td>
+                <td valign="top"></td>
+                <td align="right" valign="top"> 单位:㎡、元、套</td>
+            </tr>
+            </tbody>
+        </table>
+
+        <table id="page_three" border="1" cellspacing="0" cellpadding="0" width="990" align="center" class="t1"
+               style="font-size:14px; min-height: 560px;">
+            <tbody>
+            <tr class="heads_tr">
+                @for($j=23;$j<32;$j++)
+                    <td width="90" align="center">{{ $j }}</td>
+                @endfor
+            </tr>
+            <tr class="heads_tr">
+                @foreach($th2 as $value)
+                    <td width="90" align="center">{{ $value }}</td>
+                @endforeach
+            </tr>
+
+            <template v-for="value of list">
+
+                <tr>
+                    <td width="100" align="center">@{{ value.huiqian_area }}</td>
+                    <td width="100" align="center">@{{ value.huiqian_home_area }}</td>
+                    <td width="100" align="center">@{{ value.huiqian_shang_area }}</td>
+                    <td width="100" align="center">@{{ value.huiqian }}</td>
+                    <td width="100" align="center">@{{ value.money_home_jchae }} @{{ value.yingjiao }}</td>
+                    <td width="100" align="center">@{{ value.money_home_tchae }} @{{ value.yingtui }}</td>
+                    <td width="100" align="center">@{{ value.created_at }}</td>
+                    <td width="100" align="center"></td>
+                    <td width="100" align="center">@{{ value.sub_description }}</td>
+                </tr>
+            </template>
+
+            </tbody>
+        </table>
+    </div>
+
+    <div align="center" class="btn">
+        <input class="print_button" type="button" value="上一页" v-on:click="prev()" v-if="has_prev">
+        <input class="print_button" type="button" id="datasubmit" value="确认打印" name="submit" onclick="printed()">
+        <input class="print_button" type="button" value="下一页" v-on:click="next()" v-if="has_next">
+    </div>
+</div>
 
-	  	{{--var total = '{!! json_encode($table) !!}';--}}
+<iframe id="print_frame" style="display: none"></iframe>
 
-	    {{--total = $.parseJSON(total);--}}
-	    {{--console.log(total);--}}
 
-	{{----}}
+<script type="text/javascript">
 
-  </script>
+    function printed() {
+        var head = "<html><head><title></title></head><body>";
+        var foot = "</body>";
+        var news = document.all.item('print').innerHTML;
+        document.getElementById('print_frame').contentWindow.document.body.innerHTML = head + news + foot;
+        document.getElementById('print_frame').contentWindow.print();
+        return false;
+    }
 
-	<script>
+</script>
 
-		var table = '{!! json_encode($table) !!}';
+<script src="{{ asset('js/vue.min.js') }}"></script>
 
-		table = $.parseJSON(table);
+<script>
 
-		var vm1 = new Vue({
+    var table = JSON.parse('{!! json_encode($table) !!}');
 
-			el:'#table1',
-			data:{table:table[1]}
+    var count_list = [], show_list = [], state = 0;
 
-		});
+    for (var t in table)for (var v in table[t])count_list.push(table[t][v]);
 
-		var vm2 = new Vue({
+    var vm = new Vue({
 
-			'el':'#table2',
-			'data':{table:table[2]}
+        el: '#vue',
+        data: {
+            list: show_list,
+            has_prev: false,
+            has_next: false
+        },
+        methods: {
 
-		});
-		var vm3 = new Vue({
+            next: function () {
 
-			'el':'#table3',
-			'data':{table:table[3]}
+                vm.has_prev = true;
 
-		});
-		var vm4 = new Vue({
+                if (state % 20 == 0 && state != 0) {
 
-			'el':'#table4',
-			'data':{table:table[4]}
+                    show_list.splice(0, show_list.length);
+                }
 
-		});
-		var vm5 = new Vue({
+                for (var i = 0; i < 20 && state < count_list.length - 1; i++) {
 
-			'el':'#table5',
-			'data':{table:table[5]}
+                    state++;
 
-		});
-		var vm6 = new Vue({
+                    show_list.push(count_list[state]);
 
-			'el':'#table6',
-			'data':{table:table[6]}
+                }
 
-		});
-		var vm7 = new Vue({
+                if (count_list.length > 20)vm.has_next = true;
 
-			'el':'#table7',
-			'data':{table:table[7]}
+            },
 
-		});
-		var vm8 = new Vue({
+            prev: function () {
 
-			'el':'#table8',
-			'data':{table:table[8]}
+                if(state<=20)return ;
 
-		});
+                show_list.splice(0, show_list.length);
 
+                for (var i = 0; i < 20 && state >= 0; i++) {
 
-		var vm9 = new Vue({
+                    state--;
 
-			'el':'#table9',
-			'data':{table:table[9]}
+                    show_list.push(count_list[state]);
+
+                }
+
+            }
+        }
 
-		});
+    });
 
-	</script>
+    vm.next();
 
+</script>
 
 
 </body>

+ 4 - 4
resources/views/admin/sta/sta_all.blade.php

xqd
@@ -20,12 +20,12 @@
                     <div class="box-header with-border" style="text-align: center">
                         <h1 class="box-title">成本审计汇总表</h1>
                     </div>
-                    <div class="box-body" style="overflow-y: scroll;">
+                    <div class="box-body" style="overflow: scroll;height: 600px;">
                         <table class="table table-bordered table-striped" style="width: 3500px;">
                             <thead>
-                            <tr>
-                                <td colspan="31" style="font-size: 25px; text-align: center">街坊项目拆迁统计表</td>
-                            </tr>
+                            {{--<tr>--}}
+                                {{--<td colspan="31" style="font-size: 25px; text-align: center">街坊项目拆迁统计表</td>--}}
+                            {{--</tr>--}}
                             <tr>
                                 @for($i=1;$i<32;$i++)
                                     <td>{{ $i }}</td>