<div class="row rt-margin-bottom-before-box">
</div>

<div class="box box-primary">
    <div class="box box-widget">
        <!-- /.box-header -->
        <!-- form start -->
        <form class="form-horizontal">
            <div class="box-body">
                <div class="form-group">
                    <rt-lookup4 rt-title="省份" ng-model="vm.provinceSelected" rt-interface="Hospital/GetAllProvince" rt-order-by="province.code asc"
                        rt-col-list="[{Code:'name',Name:'省份名称'},{Code:'code',Name:'省份编码'}]" rt-col="3"></rt-lookup4>
                    <rt-lookup4 rt-title="城市" ng-model="vm.citySelected" rt-interface="Hospital/GetAllCity" rt-order-by="city.code asc" rt-param-string="provinceid={{vm.provinceSelected ? vm.provinceSelected.Id :''}}"
                        rt-col-list="[{Code:'name',Name:'城市名称'},{Code:'code',Name:'城市编码'}]" rt-col="3"></rt-lookup4>
                    <div class="btn-group" class="col-sm-2">
                        <button class="btn btn-primary" ng-click="vm.getDataList()">查询</button>
                    </div>
                </div>
                <div class="form-group">
                    <rt-lookup4 rt-title="区县" ng-model="vm.countySelected" rt-interface="Hospital/GetAllCounty" rt-order-by="county.code asc"
                        rt-param-string="cityid={{vm.citySelected ? vm.citySelected.Id :''}}" rt-col-list="[{Code:'name',Name:'区县名称'},{Code:'code',Name:'区县编码'}]"
                        rt-col="3"></rt-lookup4>
                    <rt-input rt-type="text" rt-title="门店名称" rt-col="3" ng-model="vm.drugstore"></rt-input>
                </div>
                <!-- <div class="form-group">
                    <rt-checkbox rt-title="只显示未开发的门店" rt-label-col="3" rt-col="1" ng-model="vm.isUndevelop"></rt-checkbox>
                </div> -->
            </div>
        </form>
    </div>

    <div class="nav-tabs-custom">
        <div class="tab-content">
            <rt-data-grid rt-page-record-count="vm.recordCount" rt-page-index="vm.pageIndex" rt-page-size="vm.pageSize" rt-get-data="vm.getDataList()"
                rt-rows="vm.data" rt-auto-height="{{tableMaxHeight}}">
                <table class="table table-condensed table-hover">
                    <thead>
                        <tr>
                            <!-- @@ 视图表头 -->
                            <th>省市</th>
                            <th>门店名称</th>
                            <th>电话</th>
                            <th>地址</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr ng-repeat="row in vm.data track by $index">
                            <!-- @@ 视图列表值 -->
                            <td> {{row.provinceidName}}
                                <span ng-show="row.cityidName!='市辖区'||row.cityidName!='县'">{{row.cityidName}} </span> {{row.countyidName}}
                            </td>
                            <td> {{row.name}} </td>
                            <td> {{row.telephone}} </td>
                            <td> {{row.address}} </td>
                        </tr>
                    </tbody>
                </table>
            </rt-data-grid>
        </div>
    </div>
</div>