<div ng-controller="collectctr" class="container">
	<div class="title"><i class="title-line"></i>查询条件</div>
	<div  class="searchForm row" style="margin:0px;margin-left: 20px;">
		<form class="form-horizontal">
			<div class="form-group">
	            <label for="channel2" class="col-md-1 control-label" style="font-weight: normal;color: #666666;">业务来源</label>
	            <div class="col-sm-3">
				    <select ng-model="channel2" class="form-control" ng-change="branch()" ng-options="m.value as  m.policyname for m in model"  id='channel2'ng-required="true" name="channelDress" >
				    </select>
				</div>
				<label for="branchName2" class="col-md-1 control-label"  style="font-weight: normal;color: #666666;">分公司</label>
				<div class="col-sm-3">
					<select ng-model="branchName2" class="form-control" id="branchName2" ng-options="m.branchid as  m.branchname for m in branchs" ng-required="true" name="branchNameDress" >
					<!--	<option>北京分公司</option>-->
					</select>
				</div>

				<label for="policyHolder2" class="col-md-1 control-label" style="font-weight: normal;color: #666666;">投保人</label>
				<div class="col-sm-3">
	              	<input ng-model="policyHolder2" type="text" class="form-control" id="policyHolder2" placeholder="" ng-required="true" name="policyHolderDress" />
	            </div>

	        </div>
	        <div class="form-group">

	            <label for="policyNumber2" class="col-md-1 control-label" style="font-weight: normal;color: #666666;">保单号</label>
	            <div class="col-sm-3">
	              	<input ng-model="policyNumber2" type="text" class="form-control" id="policyNumber2" placeholder=""/>
	            </div>
				<label class="col-md-1 control-label" style="font-weight: normal;color: #666666;padding-left: 0px;padding-right: 0px;">结案起止日期</label>
				<div class="col-sm-5">
					<input ng-model="date1" id="date1" type="text"  class="form-control" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM'})"  style="display: inline-block;width: auto;" >-<input ng-model="date2" id="date2" type="text" class="form-control"  onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM'})" style="display: inline-block;width: auto;" >
				</div>
			</div>
		</form>
		<div class="line"></div>
		<div class="submitBtn">
			<button ng-click="Summaryquery()" type="button" class="btn btn-primary" >查询</button>
			<button type="button" id="play2" disabled="disabled" ng-click="exportExcel()" class="btn btn-default">导出</button>
		</div>
	</div>
	<div class="title"><i class="title-line"></i>查询结果</div>
	<div class="tableList row" style="margin:0px;margin-left: 20px;">

		<table  class="table table-bordered" width="98%;margin0 auto">
			<thead>
				<tr align="center">
					<td rowspan="2" style="vertical-align:middle" >统计月份</td>
					<td colspan="2">高风险等级</td>
					<td colspan="2">中风险等级</td>
					<td colspan="2">低风险等级</td>
					<td rowspan="2"  style="vertical-align:middle" >合计案件数</td>
				</tr>
				<tr align="center">
					<td>案件量</td>
					<td>占比</td>
					<td>案件量</td>
					<td>占比</td>
					<td>案件量</td>
					<td>占比</td>
				</tr>
			</thead>
			<tbody>
			<tr align="center" ng-repeat="a in items" on-finish-render-filters>
				<td>{{a.month}}</td>
				<td>{{a.highcase}}</td>
				<td>{{a.highproportion}}</td>
				<td>{{a.middlecase}}</td>
				<td>{{a.middleproportion}}</td>
				<td>{{a.lowcase}}</td>
				<td>{{a.lowproportion}}</td>
				<td>{{a.total}}</td>
			</tr>
			<tr align="center">
				<td>汇总</td>
				<td>{{highcaseSummary}}</td>
				<td>{{highproportionSummary}}</td>
				<td>{{middlecaseSummary}}</td>
				<td>{{middleproportionSummary}}</td>
				<td>{{lowcaseSummary}}</td>
				<td>{{lowproportionSummary}}</td>
				<td>{{totalcase}}</td>
			</tr>
			</tbody>
		</table>
	</div>
</div>
