itemBalanceSpread.vm 9.09 KB
$page.setTitle("当前库存分布报表")
<div class="xn-breadcrumb auto  xn-width 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="ItemBalanceSpreadReportController">
    <!--操作日志部分-->
        <!--搜索部分-->
        <div class="xn-search clearfix">
            <form class="form-horizontal clearfix xn-form"   name="searchForm" xn-form-validate  novalidate role="form">
                <div class="height-search-box auto">
                    <div class="xn-input-line  clearfix">
                        <label for="inpuName" class="xn-label">物料:</label>
                        <div class="xn-input-sm">
                            <lookup options="inventoryOptions" name="item"
                                    show-field="itemName"
                                    ng-model="vm.itemId"
                                    place-holder=请输入物料名称>
                                <table>
                                    <tbody>
                                    <tr ng-repeat="inventory in inventoryList"
                                        ng-click="selectInventory(inventory, $index)">
                                        <td>{{inventory.number}}-{{inventory.name}}<span ng-if="inventory.specCode != null && inventory.specCode != ''">-{{inventory.specCode}}</span></td>
                                    </tr>
                                    </tbody>
                                </table>
                            </lookup>
                        </div>
                        <div class="tip"></div>
                        <label for="inpuName" class="xn-label">库存组织:</label>
                        <div class="xn-input-sm">
                            #*<input type="text" class="form-control" id="inventoryOrg" placeholder="" name="inventoryOrg" ng-model="vm.inventoryOrg"
                                   data-submit-enter="false" typeahead="inventoryOrg as (inventoryOrg.name)+'('+inventoryOrg.legalPerson+')' for inventoryOrg in getInventoryOrg($viewValue)" typeahead-loading="loadingLocations" autocomplete="off">
                            <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>*#
                                <lookup options="accountOptions" name="operatingUnitId" show-field="vm.inventoryOrg.name" ng-model="vm.inventoryOrg"  place-holder="请输入库存组织名称">
                                    <table>
                                        <tbody>
                                        <tr ng-repeat="account in accountUnitList" ng-click="selectAccount(account)">
                                            <td>{{account.name}}</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </lookup>
                        </div>
                    </div>
                    <div class="tip"></div>
                    <div class="xn-input-line  clearfix">
                        <label for="inpuName" class="xn-label">库房:</label>
                        <div class="xn-input-sm">
                            #*<input type="text" class="form-control" id="storeroom" placeholder="" name="storeroom" ng-model="vm.storeroom"
                                     data-submit-enter="false" typeahead="storeroom as storeroom.name for storeroom in getStoreroom($viewValue)" typeahead-loading="loadingLocations" autocomplete="off">
                            <i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"></i>*#
                                <lookup options="accountOptions1" name="operatingUnitId1" show-field="vm.storeroom.name" ng-model="vm.storeroom"  place-holder="请输入库房名称">
                                    <table>
                                        <tbody>
                                        <tr ng-repeat="account in accountUnitList1" ng-click="selectAccount1(account)">
                                            <td>{{account.name}}</td>
                                        </tr>
                                        </tbody>
                                    </table>
                                </lookup>
                        </div>
                        <div class="tip"></div>
                        <label for="inpuName" class="xn-label">类别:</label>
                        <div class="xn-input-sm">
                            <div xn-multiple-select-tree  ng-model="category"  select-data="categoryList"  name="category"  ></div>
                        </div>

                    </div>
                    <div class="tip"></div>
                    <div class="xn-input-line  clearfix">
                        <label for="phone" class="xn-label">品牌:</label>
                        <div class="xn-input-sm">
                            <lookup options="brandOptions" name="brandUnitId2" show-field="vm.brand.name" ng-model="vm.brand"  place-holder="请输入品牌名称">
                                <table>
                                    <tbody>
                                    <tr ng-repeat="brand in brandUnitList" ng-click="selectBrand(brand)">
                                        <td>{{brand.name}}</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </lookup>
                        </div>
                        <div class="tip"></div>
                        <label for="phone" class="xn-label">关键字:</label>
                        <div class="xn-input-sm">
                            <input type="text" class="form-control" name="keywords" ng-model="vm.keywords" placeholder="请输入物料名称/物料货号" maxlength="20">
                        </div>
                    </div>
                </div>
                <div class="ware-btn">
                    <a class="btn btn-primary  w_100 mr_10 f-right " style="margin-top: 20px;margin-left: 5px;"
                       ng-click="balanceReport()">导出</a>
                    <button class="btn btn-success w_100 f-right" ng-click="doFind()" style="margin-top: 20px;margin-left: 5px;">查询</button>

                </div>
            </form>
        </div>


        <div class="xn-table-wrap">
            <table class="table table-bordered table-striped ">
                <thead>
                <tr>
                    <th class="col-sm-2" ng-click="f='name'; rev=!rev">物料名称</th>
                    <th class="col-sm-1">货号</th>
                    <th class="col-sm-1">单位</th>
                    <th class="col-sm-1">规格代码</th>
                    <th class="col-sm-1">规格名称</th>
                    <th class="col-sm-1">类别名称</th>
                    <th class="col-sm-1">品牌</th>
                    <th class="col-sm-2">库房</th>
                    <th class="col-sm-1 xn-text-right">在库数量</th>
                   #* <th class="col-sm-1">成本单价</th>*#
##                    <th class="col-sm-1 xn-text-right">采购单价</th>
                    #*<th class="col-sm-1">库存金额</th>*#
                </tr>
                </thead>
                <tbody id="tbody">
                <tr ng-repeat="itemBalance in itemBalanceList ">
                    <td>{{itemBalance.name}}</td>
                    <td>{{itemBalance.number}}</td>
                    <td>{{itemBalance.uom}}</td>
                    <td>{{itemBalance.itemSpecCode}}</td>
                    <td>{{itemBalance.itemSpecName}}</td>
                    <td>{{itemBalance.categoryName}}</td>
                    <td>{{itemBalance.brandName}}</td>
                    <td>{{itemBalance.storeroomName}}</td>
                    <td class="xn-text-right">{{itemBalance.quantityOnhand}}</td>
                    #*<td class="xn-text-right">{{itemBalance.cost}}</td>*#
##                    <td class="xn-text-right">{{itemBalance.purchasePrice}}</td>
                  #*  <td class="xn-text-right">{{itemBalance.inventoryAmount}}</td>*#
                </tr>
                <tr  ng-if="vm.totalCount == 0"><td colspan="12" 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="getList()"  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>