<form class="form-horizontal">
    <!--<div class="form-group">
        <rt-datetime ng-model="vm.sDate" rt-type="date" rt-title="开始时间" rt-required="true" rt-col="3" rt-label-col="2"></rt-datetime>
        <rt-datetime ng-model="vm.eDate" rt-type="date" 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.search()">查询</button>
        </div>
    </div>-->
    <div class="form-group">
        <label class="col-sm-2 control-label"><span style="color:red;"></span>季度</label>
        <div class="col-sm-3">
            <ui-select allow-clear ng-model="vm.quarterSelected" theme="bootstrap">
                <ui-select-match>{{ $select.selected.name }}</ui-select-match>
                <ui-select-choices repeat="item in vm.quarterList|filter:$select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <!--<label class="col-sm-2 control-label"><span style="color:red;"></span>药品品类</label>-->
        <div class="col-sm-5">
            <rt-lookup2 rt-title="药品品类" 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="col-sm-1">
            <button class="btn btn-primary" ng-click="vm.search()">查询</button>
        </div>
        <!--<div class="col-sm-1">
            <button class="btn btn-primary" ng-click='vm.actions.export({
                        "buidName":"事业部",
                        "bigDepIdName":"大区",
                        "BusinessUnitIdName":"地区",
                        "OwnerIdName":"代表",
                        "end_time":"日期",
                        "name":"门店",
                        "policies":"促销情况",
                        },"drugSalePolicyExport","门店药品促销情况统计明细数据")'>
                   导出
        </button>
        </div>-->
    </div>
    <!--<div class="form-group">
        <label class="col-sm-2 control-label">省区/地区</label>
        <div class="col-sm-8">
            <ui-select class="form" multiple allow-clear sortable="true" theme="bootstrap" close-on-select="false" ng-model="vm.businessUnitSelected">
                <ui-select-match>{{$item.name}}</ui-select-match>
                <ui-select-choices repeat="item in vm.businessUnitList | filter: {name: $select.search}">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
    </div>-->
</form>

<div class="row tab-pane active" style="border-top: 1px dotted #d5c4c4; padding-top: 20px" id="c2">
    <div class="col-sm-30">
        <rt-data-grid rt-page-record-count="vm.recordCount" rt-page-index="vm.pageIndex" rt-page-size="vm.pageSize" rt-get-data="vm.search()" rt-rows="vm.data"
            rt-auto-height="{{tableMaxHeight}}">
            <table class="table table-hover " style="white-space:nowrap;" id="rt-report-header">
                <thead>
                    <tr>
                        <th>医院名称</th>
                        <th class="rt-number-align">去年月均</th>
                        <th class="rt-number-align">截至本季度月均</th>
                        <th class="rt-number-align">增长率</th>
                        <th class="rt-number-align">btp月均</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.dataTable">
                        <td>{{row.accountidName}}</td>
                        <td class="rt-number-align">{{row.perMonthLastYear}}</td>
                        <td class="rt-number-align">{{row.perMonthThisYear}}</td>
                        <td class="rt-number-align">{{row.perMonthLastYear == 0 ? '-' : row.growthRate | toFixNumber:2}}%</td>
                        <td class="rt-number-align">{{row.btpPerMonth}}</td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>

</div>