<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="qty">数量</th>
                        <th rt-field-code="cause">原因</th>
                        <th>照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <!-- @@ 视图列表值 -->
                        <td>
                            {{row.productIdName}}
                        </td>
                        <td>
                            {{row.qty}}
                        </td>
                        <td style="white-space:normal;">
                            {{ row.cause}}
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.showImage(row.Id)" style="color: #09f;">浏览</a>
                        </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] -->