<div class="box box-primary">
    <div class="box box-widget">
        <form class="form-horizontal">
            <div class="box-body">
                <div class="form-group">
                    <rt-picklist rt-title="省份" rt-col="3" ng-model="vm.provinceid" rt-options="vm.provinceList"></rt-picklist>
                    <rt-picklist rt-title="城市" rt-col="3" ng-model="vm.cityid" rt-options="vm.cityList"></rt-picklist>
                    <div class="btn-group" class="col-sm-1">
                        <button class="btn btn-primary" ng-click="vm.view.search(1)">查询</button>
                    </div>
                    <div class="btn-group" class="col-sm-1">
                        <button class="btn btn-primary" ng-click="vm.handle()">数据清洗</button>
                    </div>
                </div>
                <div class="form-group">
                    <rt-input rt-title="门店名称" rt-type="text" rt-col="3" ng-model="vm.drugStoreName"></rt-input>
                </div>
            </div>
        </form>
    </div>

    <div class="nav-tabs-custom">
        <rt-data-grid rt-page-record-count="vm.page.recordCount"  rt-page-index="vm.page.index" rt-page-size="vm.page.size" rt-get-data="vm.view.search()" rt-sort-field="vm.view.sortField"
              rt-rows="vm.data" rt-selected-ids="vm.view.selectedIds" rt-auto-height="{{vm.view.autoHeight}}">
            <table class="table table-condensed table-hover">
                <thead>
                    <tr>
                        <th>数据来源</th>
                        <th>省市县（标准）</th>
                        <th>省市县（原始）</th>
                        <th>门店名称（标准）</th>
                        <th>门店别名（原始名称）</th>
                        <th>GPS编号</th>
                        <th>GSP发证日期</th>
                        <th>GSP有效期至</th>
                        <th>电话</th>
                        <th>地址</th>
                        <th>备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data">
                        <td>
                            {{row.odp_data_source}}
                        </td>
                        <td>
                            {{row.std_provinceidName}}{{row.std_cityidName}}{{row.std_countyidName}}
                        </td>
                        <td>
                            {{row.provinceidName}}{{row.cityidName}}{{row.countyidName}}
                        </td>
                        <td>
                            {{row.name}}
                        </td>
                        <td>
                            {{row.drugstoreidName}}
                        </td>
                        <td>
                            {{row.gsp_code}}
                        </td>
                        <td>
                            {{row.gsp_release_date|date:'yyyy-MM-dd HH:mm:ss'}}
                        </td>
                        <td>
                            {{row.gsp_expire_date|date:'yyyy-MM-dd HH:mm:ss'}}
                        </td>
                        <td>
                            {{row.telephone}}
                        </td>
                        <td>
                            {{row.address}}
                        </td>
                        <td>
                            {{row.remarks}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
    </div>
</div>