<form class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-1 control-label"><span style="color:red;">*</span>药品名称</label>
        <div class="col-sm-3">
            <ui-select allow-clear ng-model="vm.productSelected" theme="bootstrap" ng-click="vm.getProductID">
                <ui-select-match>{{$select.selected.Name}}</ui-select-match>
                <ui-select-choices repeat="item in vm.productList | filter: $select.search">
                    <span ng-bind-html="item.Name | highlight: $select.search"></span>
                </ui-select-choices>
            </ui-select>
        </div>
        <rt-input ng-model="vm.batchNoSelected"
                     rt-type="text"
                     rt-title="药品批号" rt-required="true" rt-col="3" rt-label-col="1"></rt-input>

        <!--<label class="col-sm-1 control-label"><span style="color:red;">*</span>药品批号</label>-->
        <!--<div class="col-sm-3">-->
            <!--<ui-select allow-clear ng-model="vm.batchNoSelected" theme="bootstrap"  ng-disabled="disabled"-->
                       <!--reset-search-input="false">-->
                <!--<ui-select-match>{{$select.selected.TEXT}}</ui-select-match>-->
                <!--<ui-select-choices repeat="item in vm.batchNoList | filter: $select.search"-->
                                   <!--refresh="getBatchNo($select.search)"-->
                                   <!--refresh-delay="500">-->
                    <!--<span ng-bind-html="item.TEXT | highlight: $select.search"></span>-->
                <!--</ui-select-choices>-->
            <!--</ui-select>-->
        <!--</div>-->
        <!--<label class="col-sm-1 control-label"><span style="color:red;">*</span>药品规格</label>-->
        <!--<div class="col-sm-3">-->
            <!--<ui-select allow-clear ng-model="vm.productIDSelected" theme="bootstrap">-->
                <!--<ui-select-match>{{$select.selected.TEXT}}</ui-select-match>-->
                <!--<ui-select-choices repeat="item in vm.productIDList | filter: $select.search">-->
                    <!--<span ng-bind-html="item.TEXT | highlight: $select.search"></span>-->
                <!--</ui-select-choices>-->
            <!--</ui-select>-->
        <!--</div>-->

        <div class="col-sm-1">
            <button class="btn btn-primary" ng-click="vm.showReportButton()">查询</button>
        </div>
    </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">
            <thead>
            <tr>
                <th>#</th>
                <th>商业级别</th>
                <th>省份</th>
                <th>发货企业名称</th>
                <th>发货地址</th>
                <th>收货企业名称</th>
                <th>收货地址</th>
                <th>入库数量</th>
                <!--<th>出库数量</th>
                <th>库存数量</th> -->
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="row in vm.reportData">
                <td>
                    {{$index+1}}
                </td>
                 <td>
                    {{row.acc_levelName}}
                </td>
                <td>
                    {{row.fromprovinceidName}}
                </td>
                <td>
                    {{row.fromaccountidName}}
                </td>
                <td>
                    {{row.fromprovinceidName+row.fromcityidName+row.fromcountyidName}}
                </td>
                <td>
                    {{row.saleto_entname}}
                </td>
                <td>
                    {{row.toprovinceidName+row.tocityidName+row.tocountyidName}}
                </td>
                <td>
                    {{row.saleto_count}}
                </td>
                <!-- <td>
                    {{row.code_out_count}}
                </td>
                <td>
                    {{row.code_stock_count}}
                </td> -->
            </tr>
            </tbody>
        </table>
        </rt-data-grid>
    </div>
</div>