balance.vm 7.84 KB
##$page.setTitle("平台商品可售余额报表")
<title>平台商品可售余额报表</title>
<div class="xn-breadcrumb xn-width auto clearfix ">
    <ul class="breadcrumb">
        <li><a class="icon icon-home_page" href="$customizationLink.setTarget("index")"></a></li>
        <li><a href="$customizationLink.setTarget("report")">报表中心</a></li>
        <li class="active">平台商品可售余额报表</li>

    </ul>
</div>

<div class="xn-main  auto xn-width  clearfix" ng-controller="BalanceController">

    <div class="pm-task-bottom-top pm-plan-bottom-top  mt_10  mb_10 clearfix">
        <h3>平台商品可售余额报表</h3>
    </div>


        <div class="xn-form-table-wrap">

                    <div class="xn_search_box auto">
                        <div class="xn-input-line  clearfix">

                            <label class="xn-col-sm-4 l-h-34 xn-text-right  ml_25">发布渠道:</label>
                            <div class="xn-col-sm-8 mt_7">
                                <select class="xn-click-input form-control"  ng-change="selectType(type)" ng-model="type"
                                        ng-options="type.value as type.name for type in typeList">
                                    <option value="">---请选择发布渠道---</option>
                                </select>
                            </div>

                            <label class="xn-col-sm-4 l-h-34 xn-text-right  ml_25">品牌:</label>
                            <div class="xn-col-sm-8 mt_7">
                                <lookup options="brandOptions" name="brandName"
                                        show-field="vm.brandName"
                                        ng-model="vm.brandId"
                                        place-holder=请输入品牌名称 >
                                    <table>
                                        <tbody>
                                        <tr ng-repeat="brand in brandList"
                                            ng-click="selectBrand(brand)">
                                            <td>{{brand.name}}</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </lookup>
                            </div>

                            <label class="xn-col-sm-4 l-h-34 xn-text-right  ml_25">所属类目:</label>
                            <div class="xn-col-sm-8 mt_7">
                                <lookup options="categoryOptions" name="categoryName"
                                        show-field="vm.categoryName"
                                        ng-model="vm.categoryId"
                                        place-holder=请输入所属类目 >
                                    <table>
                                        <tbody>
                                        <tr ng-repeat="category in categoryList"
                                            ng-click="selectCategory(category)">
                                            <td>{{category.name}}</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </lookup>
                            </div>


                        </div>
                        <div class="xn-input-line  clearfix">
                            <label class="xn-col-sm-4 l-h-34 xn-text-right  ml_25">商品代码:</label>
                            <div class="xn-col-sm-8">
                                <input class="form-control" type="text" ng-model="vm.itemNumber">
                            </div>

                            <label class="xn-col-sm-4 l-h-34 xn-text-right  ml_25">规格代码:</label>
                            <div class="xn-col-sm-8">
                                <input class="form-control" type="text" ng-model="vm.itemSpecCode">
                            </div>

                            <label class="xn-col-sm-4 l-h-34 xn-text-right  ml_25">商品状态:</label>
                            <div class="xn-col-sm-8 mt_7">
                                <select class="xn-click-input form-control"  ng-change="selectIsShip(isShip)" ng-model="isShip"
                                        ng-options="isShip.value as isShip.name for isShip in isShipList">
                                    <option value="">---请选择商品状态---</option>
                                </select>
                            </div>


                        </div>

                        <div class="xn-input-line clearfix pt_10">
                            <div class="xn-input-line  clearfix">
                                <button class="btn btn-success btn-sm w_80 f-right ml_10"  ng-click="doExport()">批量导出</button>
                                <button type="button" class="btn btn-success btn-sm w_80 f-right"  ng-click="query()">查询</button>
                            </div>
                        </div>
                    </div>
##            <div class="xn-width mb_10 pr_10 clearfix">
##                <button class="btn btn-link btn-sm f-right mr_10"  ng-click="doExport()">批量导出</button>
##            </div>


##                <div class="xn-input-line clearfix f-right">
##                    <a class=" btn btn-primary mr_30" ng-click="query()">查询</a>
##                    <a class=" btn btn-primary mr_30" ng-click="doExport()">导出</a>
##                </div>
        </div>


    <div class="xn-table-wrap">
        <table class="table table-bordered table-striped ">
            <thead>
            <tr>
                <th class="xn-col-sm-2 ">品牌</th>
                <th class="xn-col-sm-2 ">所属类目</th>
                <th class="xn-col-sm-2 ">商品代码 </th>
                <th class="xn-col-sm-4 ">商品名称</th>
                <th class="xn-col-sm-3">规格代码</th>
                <th class="xn-col-sm-2 ">规格名称</th>
                <th class="xn-col-sm-2" >在售数量</th>
                <th class="xn-col-sm-2">当日销售数量</th>
                <th class="xn-col-sm-2" >ERP可用数量</th>
                <th class="xn-col-sm-2" >ERP安全库存</th>
##                <th class="xn-col-sm-2" >分销价</th>
##                <th class="xn-col-sm-2" >零售价</th>
                <th class="xn-col-sm-4" >上架状态</th>
            </tr>
            </thead>
            <tbody id="tbody">
            <tr ng-repeat="item in  itemList">
                <td>{{item.brandName}}</td>
                <td>{{item.categoryName}}</td>
                <td>{{item.itemNumber}}</td>
                <td>{{item.itemName}}</td>
                <td>{{item.itemSpecCode}}</td>
                <td>{{item.itemSpecName}}</td>
                <td>{{item.ebQuantity}}</td>
                <td>{{item.eoQuantity}}</td>
                <td>{{item.canUseQuantity}}</td>
                <td>{{item.safeQuantity}}</td>
##                <td>{{item.disPrice}}</td>
##                <td>{{item.retailPrice}}</td>
                <td>{{item.isShelf | isShelf}}</td>
            </tr>
            <tr  ng-if="vm.totalCount == 0"><td colspan="38" class="center">无法找到相应的记录</td></tr>
            </tbody>
        </table>
        <div class="xn-text-center clearfix" >
            <div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
            <pagination  ng-show="vm.totalCount>vm.pageSize"  ng-change="query()"  max-size="5" total-items="vm.totalCount"
                         ng-model="vm.pageNumber" items-per-page="vm.pageSize"  class="pagination-sm"  boundary-links="true"
                         previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></pagination>
        </div>
    </div>
</div>
<script type="text/javascript" src="$customizationContent.getURI('dist/scripts/report.js')"></script>