<form class="form-horizontal">
    <div class="form-group">
        <rt-datetime ng-model="vm.yM" rt-type="year" rt-title="查询年份" rt-required="true" rt-col="3" rt-label-col="2">
        </rt-datetime>
        <div class="col-sm-1">
            <button class="btn btn-primary" ng-click="vm.showReportButton()">查询</button>
        </div>
        <div class="col-sm-1">
            <button class="btn btn-primary" ng-click='vm.actions.export({},"HospitalCoveragereportExport","医院覆盖率分析")'>导出
            </button>
        </div>
        <div class="col-sm-1">
            <button class="btn btn-clear btn-small" ng-click="vm.isShowMoreSearch=!vm.isShowMoreSearch;complateTableheight();">
                    <i ng-if="!vm.isShowMoreSearch" class="fa fa-angle-double-down" style="color:#0099ff;" title="更多查询条件"></i>
<i ng-if="vm.isShowMoreSearch" class="fa fa-angle-double-up" style="color:#0099ff;" title="隐藏"></i>
</button>
</div>
</div>

<div class="form-group" ng-hide="!vm.isShowMoreSearch">
    <rt-lookup2 rt-title="药品品类" rt-multiple="true" ng-model="vm.proSelected" rt-get-data-name="Product.GetProductCategory" rt-order-by="name asc"
        rt-col-list="[{Code:'name',Name:'药品品类'}]" rt-col="8"></rt-lookup2>
</div>
<div class="form-group" ng-hide="!vm.isShowMoreSearch">
    <rt-lookup2 rt-title="省份" rt-multiple="true" ng-model="vm.priSelected" rt-get-data-name="Province.GetProvince" rt-order-by="name asc"
        rt-col-list="[{Code:'name',Name:'省份'}]" rt-col="8"></rt-lookup2>
</div>
</form>
<div class="row" style="border-top: 1px dotted #d5c4c4; padding-top: 20px">

<div class="col-sm-30">
    <rt-data-grid rt-page-record-count="vm.recordCount" rt-get-data="vm.showReport()" rt-page-index="vm.index" rt-page-size="vm.pageSize" rt-rows="vm.reportData">
        <table class="table table-hover" style="white-space:nowrap;" id="rt-report-header">
<thead>
    <tr id="rt-report-header">
        <th class="rt-text-align">省份</th>
        <th class="rt-text-align">医院级别</th>
        <th class="rt-text-align">医院数量</th>
        <th class="rt-text-align">已覆盖数量</th>
        <th class="rt-text-align">覆盖率</th>
    </tr>
</thead>
<tbody>
    <tr ng-repeat="row in vm.reportData">
        <!-- 判断数据为空时，将数据设置为“-” -->
        <td class="rt-text-align">
            {{row.provinceidName==null ? "-" : row.provinceidName}}
        </td>
        <td class="rt-text-align">
            {{row.account_gradeName==null ? "-" : row.account_gradeName}}
        </td>
        <td class="rt-text-align">
            {{row.qty==null ? "-" : row.qty}}
        </td>
        <td class="rt-text-align">{{row.cover_count==null ? "-" : row.cover_count}}</td>
        <td class="rt-text-align">{{row.coverage==null ? "-" : (row.coverage+"%")}}</td>
    </tr>
</tbody>
</table>
</rt-data-grid>
</div>
</div>