purOrderLine.vm 10.9 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="ReportOrderLineController2">
    <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="operatingOptions" name="operatingUnitId" show-field="operatingUnit.name" ng-model="operatingUnit.id"  place-holder=请输入经营单元名称>
                        <table>
                            <tbody>
                            <tr ng-repeat="operatingUnit in operatingUnitList" ng-click="selectOperatingUnit(operatingUnit)">
                                <td>{{operatingUnit.name}}</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">
                    <lookup options="supplierOptions" name="supplierId" show-field="supplier.name" ng-model="supplier.id"  place-holder=请输入供应商名称>
                        <table>
                            <tbody>
                            <tr ng-repeat="supplier in supplierList" ng-click="selectSupplier(supplier)">
                                <td>{{supplier.name}}</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">
                    <lookup options="buyerOptions" name="buyerId" show-field="buyer.name" ng-model="buyer.userId"  place-holder=请输入采购员名称>
                        <table>
                            <tbody>
                            <tr ng-repeat="buyer in buyerList" ng-click="selectBuyer(buyer)">
                                <td>{{buyer.name}}</td>
                            </tr>
                            </tbody>
                        </table>
                    </lookup>
                </div>
            </div>
            <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">
                    <input type="text" class="form-control" id="orderNumber" name="orderNumber" ng-model="vm.orderNumber">
                </div>
                <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.itemName"
                            place-holder=请输入物料名称>
                        <table>
                            <tbody>
                            <tr ng-repeat="inventory in inventoryList"
                                ng-click="selectInventory(inventory, $index)">
                                <td>{{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">
                    <input type="text" class="form-control" id="itemNumber" name="number" ng-model="vm.itemNumber">
                </div>
            </div>
            <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">
                    <div class="input-group openData">
                        <input type="text" class="form-control" id="startDate"  placeholder="开始日期"  ng-model="vm.startSubmitTime" name="regularDate"
                               datepicker-popup="yyyy-MM-dd" is-open="startDate" min-date="minDate"  datepicker-options="dateOptions"
                               date-disabled="disabled(date, mode)"  close-text="关闭" current-text="今天"  clear-text="清除">
                        <span class="input-group-btn">
                            <button class="btn btn-default" type="button"  ng-click="openStart($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                        </span>
                    </div>
                </div>
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">&nbsp;</label>
                <div class="xn-col-sm-8">
                    <div class="input-group openData">
                        <input type="text" class="form-control" id="endDate"  placeholder="结束日期"  ng-model="vm.endSubmitTime" name="regularDate"
                               datepicker-popup="yyyy-MM-dd" is-open="endDate" min-date="minDate"  datepicker-options="dateOptions"
                               date-disabled="disabled(date, mode)"  close-text="关闭" current-text="今天"  clear-text="清除">
                        <span class="input-group-btn">
                                <button class="btn btn-default" type="button"  ng-click="openEnd($event)"><i class="glyphicon glyphicon-calendar"></i></button>
                            </span>
                    </div>
                </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">
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right">收货状态:</label>
                <div class="xn-col-sm-15">
                    <div class="xn-input" xn-checkbox-list  ng-model="processState" data-checkbox-list="processStateList"></div>
                </div>
                <label class="xn-col-sm-4 l-h-34 34 xn-text-right" ng-show="processStateList[1].state || processStateList[2].state">到货状态:</label>
                <div class="xn-col-sm-10" ng-show="processStateList[1].state || processStateList[2].state">
                    <div  xn-checkbox-list  ng-model="overdueState" data-checkbox-list="overdueStatelist"></div>
                </div>
            </div>
            <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-15">
                    <div  xn-checkbox-list  ng-model="checkbox" data-checkbox-list="checkboxlist"></div>
                </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="reportExport()">批量导出</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-md-1">订单时间</th>
                <th class="col-md-1">采购订单</th>
                <th class="col-md-1">供应商</th>
                <th class="col-md-2">商品代码<br/>商品名称</th>
                <th class="col-md-1">单位</th>
                <th class="col-md-1">品牌</th>
                <th class="col-md-1">规格代码
                    <br/>规格名称</th>
                <th class="col-md-1">订单数量
                    <br/>已收数量</th>
                <th class="col-md-1">未到货数量
                    <br/>交货日期</th>
                <th class="col-md-1">单价</th>
                <th class="col-md-1">订单金额</th>
            </tr>
            </thead>
            <tbody id="tbody" >
            <tr ng-repeat= "line in orderLineList" >
                <td>{{line.submitTime | timeReturnFormat:"YMDHms"}}</td>
                <td>{{line.orderNumber}}</td>
                <td >{{line.supplierName}}</td>
                <td >{{line.itemNumber}}<br/>{{line.itemName}}</td>
                <td>{{line.itemUom}}</td>
                <td>{{line.brandName}}</td>
                <td>{{line.itemSpecCode}}<br/>
                    {{line.itemSpec}}</td>
                <td class="xn-text-right">{{line.quantityOrder| number }}
                    <br/>{{line.quantityReceived| number}}</td>
                <td class="xn-text-right">{{line.quantityNotReceived |number}}
                    <br/><span>{{line.needDate | dateFormat}}
                        <span ng-show="!line.needDate">--</span></td>
                <td class="xn-text-right">{{line.unitPrice}}</td>
                <td class="xn-text-right">{{line.amount|money:2:0:line.currencyCode}}</td>
            </tr>
            <tr  ng-if="!vm.totalCount  || vm.totalCount == 0"><td colspan="12" class="center">无法找到相应的记录</td></tr>
            </tbody>
        </table>
        <div class="xn-text-center" 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>