<div class="listview">
    <div class="viewlist">
        <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-hover">
                <thead>
                    <tr>
                        <!-- @@ 视图表头 -->
                        <th rt-field-code="productIdName">产品</th>
                        <th rt-field-code="retail_price">零售价</th>
                        <th>进货</th>
                        <th rt-field-code="sale_count">销售</th>
                        <th>库存</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <!-- @@ 视图列表值 -->
                        <td>
                            {{row.productIdName}}
                        </td>
                        <td>
                            {{row.retail_price}}
                        </td>
                        <td>
                            {{ row.purchase_count}}
                        </td>
                        <td>
                            {{row.sale_count}}
                        </td>
                        <td>
                            {{row.store_count}}
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
        <!-- rt-data-grid  -->
    </div>
    <!-- div[.panel-default] -->
</div>
<!-- div[.listview] -->

<div class="sidebar sidebar-right sidebar-animate rt-shadow-border-left content-wrapper" ng-if="vm.view.type=='default'">
    <div ui-view class="content"></div>
</div>
<!-- div[.editview] -->