|  | @@ -1,5 +1,7 @@
 | 
	
		
			
				|  |  |  <!-- include '../header' -->
 | 
	
		
			
				|  |  |  <script src="<?= receipt ?>"></script>
 | 
	
		
			
				|  |  | +<script src="<?= WEB_SITE_GLOBAL ?>js/echarts.common.min.js"> </script>
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  <body>
 | 
	
		
			
				|  |  |  	<div class="mainLayout">
 | 
	
		
			
				|  |  |  		<div class="mainMenu">
 | 
	
	
		
			
				|  | @@ -39,15 +41,24 @@
 | 
	
		
			
				|  |  |  									<legend>收款未完成</legend>
 | 
	
		
			
				|  |  |  									<table class="table table-bordered table-condensed">
 | 
	
		
			
				|  |  |  										<tbody>
 | 
	
		
			
				|  |  | -										<tr><th class="taC">培训班名称</th><th class="taC">开班时间</th><th class="taC">完成结算</th><th class="taC">开票金额</th><th class="taC">收款金额</th><th class="taC">应收款总额</th></tr>
 | 
	
		
			
				|  |  |  										<tr>
 | 
	
		
			
				|  |  | -											<th><a href="saea-train-detail.html">XXX培训班</a></th>
 | 
	
		
			
				|  |  | -											<td class="taC">2019-05-01</td>
 | 
	
		
			
				|  |  | -											<td class="taC">2019-05-16</td>
 | 
	
		
			
				|  |  | -											<td class="taR">¥300000.00</td>
 | 
	
		
			
				|  |  | -											<td class="taR">¥270000.00</td>
 | 
	
		
			
				|  |  | -											<td class="taR colRed">¥30000.00</td>
 | 
	
		
			
				|  |  | +											<th class="taC">培训班名称</th>
 | 
	
		
			
				|  |  | +											<th class="taC">开班时间</th>
 | 
	
		
			
				|  |  | +											<th class="taC">完成结算</th>
 | 
	
		
			
				|  |  | +											<th class="taC">开票金额</th>
 | 
	
		
			
				|  |  | +											<th class="taC">实际收款金额</th>
 | 
	
		
			
				|  |  | +											<th class="taC">应收款总额</th>
 | 
	
		
			
				|  |  |  										</tr>
 | 
	
		
			
				|  |  | +										<!-- loop unpaid -->
 | 
	
		
			
				|  |  | +										<tr>
 | 
	
		
			
				|  |  | +											<th><a href="/receiptTrain/approval/{{unpaid' value.ridKey}}.html">{{unpaid' value.trainName}}</a></th>
 | 
	
		
			
				|  |  | +											<td class="taC">{{unpaid' value.trainStartDate}}</td>
 | 
	
		
			
				|  |  | +											<td class="taC">{{unpaid' value.trainEndDate}}</td>
 | 
	
		
			
				|  |  | +											<td class="taR">¥{{unpaid' value.iTrain.invoiceTotalAmount}}</td>
 | 
	
		
			
				|  |  | +											<td class="taR">¥{{unpaid' value.iTrain.invoiceArriveAmount}}</td>
 | 
	
		
			
				|  |  | +											<td class="taR colRed">¥{{unpaid' value.iTrain.receivablesAmount}}</td>
 | 
	
		
			
				|  |  | +										</tr>
 | 
	
		
			
				|  |  | +										<!-- endloop -->
 | 
	
		
			
				|  |  |  										</tbody>
 | 
	
		
			
				|  |  |  									</table>
 | 
	
		
			
				|  |  |  								</div>
 | 
	
	
		
			
				|  | @@ -55,15 +66,24 @@
 | 
	
		
			
				|  |  |  									<legend><div class="fR"><a href="saea-train-all.html">所有培训班</a></div>最近收款完成</legend>
 | 
	
		
			
				|  |  |  									<table class="table table-bordered table-condensed">
 | 
	
		
			
				|  |  |  										<tbody>
 | 
	
		
			
				|  |  | -										<tr><th class="taC">培训班名称</th><th class="taC">开班时间</th><th class="taC">完成结算</th><th class="taC">收入</th><th class="taC">支出</th><th class="taC">利润</th></tr>
 | 
	
		
			
				|  |  |  										<tr>
 | 
	
		
			
				|  |  | -											<th><a href="saea-train-detail.html">XXX培训班</a></th>
 | 
	
		
			
				|  |  | -											<td class="taC">2019-05-01</td>
 | 
	
		
			
				|  |  | -											<td class="taC">2019-05-16</td>
 | 
	
		
			
				|  |  | -											<td class="taR">¥300000.00</td>
 | 
	
		
			
				|  |  | -											<td class="taR">¥70000.00</td>
 | 
	
		
			
				|  |  | -											<td class="taR">¥130000.00</td>
 | 
	
		
			
				|  |  | +											<th class="taC">培训班名称</th>
 | 
	
		
			
				|  |  | +											<th class="taC">开班时间</th>
 | 
	
		
			
				|  |  | +											<th class="taC">完成结算</th>
 | 
	
		
			
				|  |  | +											<th class="taC">收入</th>
 | 
	
		
			
				|  |  | +											<th class="taC">支出</th>
 | 
	
		
			
				|  |  | +											<th class="taC">利润</th>
 | 
	
		
			
				|  |  | +										</tr>
 | 
	
		
			
				|  |  | +										<!-- loop paid -->
 | 
	
		
			
				|  |  | +										<tr>
 | 
	
		
			
				|  |  | +											<th><a href="/receiptTrain/approval/{{unpaid' value.ridKey}}.html">{{unpaid' value.trainName}}</a></th>
 | 
	
		
			
				|  |  | +											<td class="taC">{{unpaid' value.trainStartDate}}</td>
 | 
	
		
			
				|  |  | +											<td class="taC">{{unpaid' value.trainEndDate}}</td>
 | 
	
		
			
				|  |  | +											<td class="taR">¥{{unpaid' value.iTrain.invoiceTotalAmount}}</td>
 | 
	
		
			
				|  |  | +											<td class="taR">¥{{unpaid' value.iTrain.expendAmount}}</td>
 | 
	
		
			
				|  |  | +											<td class="taR">¥{{unpaid' value.iTrain.profit}}</td>
 | 
	
		
			
				|  |  |  										</tr>
 | 
	
		
			
				|  |  | +										<!-- endloop -->
 | 
	
		
			
				|  |  |  										</tbody>
 | 
	
		
			
				|  |  |  									</table>
 | 
	
		
			
				|  |  |  								</div>
 | 
	
	
		
			
				|  | @@ -101,9 +121,7 @@
 | 
	
		
			
				|  |  |  	        xAxis: [{
 | 
	
		
			
				|  |  |  	            type: 'category',
 | 
	
		
			
				|  |  |  	            boundaryGap: true,
 | 
	
		
			
				|  |  | -	            data: [
 | 
	
		
			
				|  |  | -	                '2017-02', '2017-03', '2017-04', '2017-05', '2017-06', '2017-07', '2017-08', '2017-09', '2017-10'
 | 
	
		
			
				|  |  | -	            ]
 | 
	
		
			
				|  |  | +	            data: {{month}}
 | 
	
		
			
				|  |  |  	        }],
 | 
	
		
			
				|  |  |  	        yAxis: [{
 | 
	
		
			
				|  |  |  	            type: 'value',
 | 
	
	
		
			
				|  | @@ -125,7 +143,7 @@
 | 
	
		
			
				|  |  |  	                        }
 | 
	
		
			
				|  |  |  	                    }
 | 
	
		
			
				|  |  |  	                },
 | 
	
		
			
				|  |  | -	                data: [30, 40, 30, 40, 50, 60, 40, 55, 40]
 | 
	
		
			
				|  |  | +	                data: {{pay}}
 | 
	
		
			
				|  |  |  	            },
 | 
	
		
			
				|  |  |  	            {
 | 
	
		
			
				|  |  |  	                name: '收入',
 | 
	
	
		
			
				|  | @@ -140,7 +158,7 @@
 | 
	
		
			
				|  |  |  	                        }
 | 
	
		
			
				|  |  |  	                    }
 | 
	
		
			
				|  |  |  	                },
 | 
	
		
			
				|  |  | -	                data: [10, 20, 20, 10, 10, 10, 10, 5, 15]
 | 
	
		
			
				|  |  | +	                data: {{income}}
 | 
	
		
			
				|  |  |  	            },
 | 
	
		
			
				|  |  |  	            {
 | 
	
		
			
				|  |  |  	                name: '利润',
 | 
	
	
		
			
				|  | @@ -155,7 +173,7 @@
 | 
	
		
			
				|  |  |  	                        }
 | 
	
		
			
				|  |  |  	                    }
 | 
	
		
			
				|  |  |  	                },
 | 
	
		
			
				|  |  | -	                data: [20, 20, 10, 30, 40, 50, 30, 50, 25]
 | 
	
		
			
				|  |  | +	                data: {{profit}}
 | 
	
		
			
				|  |  |  	            }
 | 
	
		
			
				|  |  |  	        ]
 | 
	
		
			
				|  |  |  	    };
 |