ship.vm 11.2 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="ShipReportController">
    <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-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">
                        <div class="input-group openData">
                            <input type="text" class="form-control h_34 l-h-34" id="startDate2" placeholder="开始日期"
                                   ng-model="vm.startShipTime" name="regularDate"
                                   datepicker-popup="yyyy-MM-dd" is-open="startDate2" 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 padding-top-bottom h_34 l-h-14" type="button" ng-click="openStart($event,2)">
                                        <i class="glyphicon glyphicon-calendar"></i></button>
                                </span>
                        </div>
                    </div>
                    <label class="xn-col-sm-4 l-h-34 xn-text-center">至</label>
                    <div class="xn-col-sm-8">
                        <div class="input-group openData">
                            <input type="text" class="form-control h_34 l-h-34" id="endDate2" placeholder="结束日期"
                                   ng-model="vm.endShipTime" name="regularDate"
                                   datepicker-popup="yyyy-MM-dd" is-open="endDate2" 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 padding-top-bottom h_34 l-h-14" type="button"
                                                ng-click="openEnd($event,2)"><i
                                                class="glyphicon glyphicon-calendar"></i></button>
                                    </span>
                        </div>
                    </div>
                    <label class="xn-col-sm-4 l-h-34 xn-text-right">店铺名称:</label>
                    <div class="xn-col-sm-8">
                        <lookup options="storeOptions" name="storeName"
                                show-field="vm.storeName"
                                ng-model="vm.storeId"
                                place-holder=请输入店铺名称 >
                            <table>
                                <tbody>
                                <tr ng-repeat="store in storeList"
                                    ng-click="selectStore(store)">
                                    <td>{{store.name}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </lookup>
    ##                                <input class="form-control" type="text" ng-model="vm.storeName">
                    </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 mt_7">
                        <lookup options="roomOptions" name="storeroomName"
                                show-field="vm.storeroomName"
                                ng-model="vm.storeroomId"
                                place-holder=请输入发货仓库名称 >
                            <table>
                                <tbody>
                                <tr ng-repeat="storeroom in storeroomList"
                                    ng-click="selectStoreroom(storeroom)">
                                    <td>{{storeroom.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="carrierOptions" name="carrierName"
                                show-field="vm.carrierName"
                                ng-model="vm.carrierId"
                                place-holder=请输入物流公司名称 >
                            <table>
                                <tbody>
                                <tr ng-repeat="carrier in carrierList"
                                    ng-click="selectCarrier(carrier)">
                                    <td>{{carrier.name}}</td>
                                </tr>
                                </tbody>
                            </table>
                        </lookup>
                    </div>
##
##                    <label class="xn-col-sm-4 l-h-34 xn-text-right">物流单号:</label>
##                    <div class="xn-col-sm-5">
##                        <input class="form-control" type="text" ng-model="vm.freightNumber">
##                    </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>

                    <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="userOptions" name="userName"
                                show-field="vm.userName"
                                ng-model="vm.userId"
                                place-holder=请输入业务员名称 >
                            <table>
                                <tbody>
                                <tr ng-repeat="user in userList"
                                    ng-click="selectUser(user)">
                                    <td>{{user.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="doExport()">批量导出</button>
                        <button type="button" class="btn btn-success btn-sm w_80 f-right"  ng-click="query()">查询</button>
                    </div>
                </div>

##                <div class="xn-input-line clearfix pt_10">
##                    <div class="xn-input-line  clearfix">
##                        <button type="button" class="btn btn-success btn-sm w_80 f-right"  ng-click="query()">查询</button>
##                    </div>
##                </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>
    </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-table-wrap">
        <table class="table table-bordered table-striped ">
            <thead>
            <tr>
                <th class="xn-col-sm-3 ">发货时间</th>
                <th class="xn-col-sm-3 ">物流公司<br />物流单号</th>
                <th class="xn-col-sm-3 ">店铺名称</th>
                <th class="xn-col-sm-3 ">发货仓库 </th>
                <th class="xn-col-sm-3">来源单号</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" >标准重量</th>
                <th class="xn-col-sm-2" >物流运费</th>
                <th class="xn-col-sm-4" >地址<br />收货人</th>
            </tr>
            </thead>
            <tbody id="tbody">
            <tr ng-repeat="package in packageList">
                <td>{{package.shipTime|timeReturnFormat}}</td>
                <td>{{package.carrierName}}<br />{{package.freightNumber}}</td>
                <td>{{package.storeName}}</td>
                <td>{{package.storeroomName}}</td>
                <td>{{package.sourceNumber}}</td>
                <td>{{package.memberName}}</td>
                <td>{{package.totalAmount}}</td>
                <td>{{package.totalCount}}</td>
                <td>{{package.freightWeight}}</td>
                <td>{{package.standardWeight}}</td>
                <td>{{package.freightFee}}</td>
                <td>{{package.provinceName}}{{package.cityName}}<br />{{package.contactName}}</td>
            </tr>
            <tr  ng-if="vm.totalCount == 0"><td colspan="39" 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>