cost.vm 5.34 KB
$page.setTitle("物料当前成本报表")
<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="CostController">
    <div class="pm-task-bottom-top pm-plan-bottom-top  mt_10  mb_10 clearfix">
        <h3>物料成本报表</h3>
    </div>

    <!--操作日志部分-->
    <!--搜索部分-->
    <div class="xn-input-line clearfix">
        <div class="xn_search_box auto">
            <div class="xn-input-line  clearfix">
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">商品名称:</label>
                <div class="xn-col-sm-8">
                    <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>
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">类别:</label>
                <div class="xn-col-sm-8">
                    <div xn-multiple-select-tree  ng-model="category"  select-data="categoryList"  name="category" ></div>
                </div>
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">公司:</label>
                <div class="xn-col-sm-8">
                    <select class="xn-click-input form-control"  name="operatingUnitId"    id="operatingUnitId" ng-model="vm.inventoryOrgId"
                            ng-options="legalEntity.id as legalEntity.name for legalEntity in legalEntityList" >
                        <option value="">-----请选择公司-----</option>
                    </select>
                </div>
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">品牌:</label>
                <div class="xn-col-sm-8">
                    <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>
            <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="exportReport()">批量导出</button>
                    <button type="button" class="btn btn-success btn-sm w_80 f-right"  ng-click="doFind()">查询</button>
                </div>
            </div>
        </div>
    </div>

    <div class="xn-table-wrap">
        <table class="table table-bordered table-striped ">
            <thead>
            <tr>
                <th class="col-sm-3">商品名称</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-1">成本</th>
            </tr>
            </thead>
            <tbody id="tbody">
            <tr ng-repeat="item in itemDetailList ">
                <td> {{item.itemName}}</td>
                <td> {{item.itemNumber}}</td>
                <td> {{item.itemUom}}</td>
                <td> {{item.itemSpecCode}}</td>
                <td> {{item.categoryName}}</td>
                <td> {{item.brandName}}</td>
                <td> {{item.legalEntityName}}</td>
                <td> {{item.cost | moneySingle:5}}</td>
            </tr>
            <tr  ng-if="!vm.totalCount || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
            </tbody>
        </table>
        <div class="xn-text-center clearfix" ng-if="vm.totalCount ">
            <div class="f-left mt_20 mb_10">共{{vm.totalCount}}条</div>
            <pagination  ng-show="vm.totalCount>vm.pageSize"  ng-change="getList()"  max-size="maxPageSize" 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>