|
|
@@ -0,0 +1,545 @@
|
|
|
+<style>
|
|
|
+.order-table .header>th {
|
|
|
+ height: 38px;
|
|
|
+ text-align: center;
|
|
|
+ background: #f5f5f5;
|
|
|
+ border-top: 1px solid #e8e8e8;
|
|
|
+ border-bottom: 1px solid #e8e8e8;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .sep-row {
|
|
|
+ height: 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .selector {
|
|
|
+ vertical-align: middle;
|
|
|
+ margin: 0 0 2px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.toolbar label {
|
|
|
+ margin-right: 10px;
|
|
|
+ margin-bottom: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.toolbar .select_all {
|
|
|
+ margin: 0 6px 0 10px;
|
|
|
+ line-height: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.toolbar .btn {
|
|
|
+ -moz-border-radius: 2px;
|
|
|
+ margin-right: 5px;
|
|
|
+ border: 1px solid #dcdcdc;
|
|
|
+ border-radius: 2px;
|
|
|
+ -webkit-border-radius: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-hd {
|
|
|
+ background: #f5f5f5;
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-hd td.first {
|
|
|
+ padding-left: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-hd .order-main span {
|
|
|
+ margin-right: 8px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-hd .order-code {
|
|
|
+ font-style: normal;
|
|
|
+ font-family: verdana;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-hd .order-sum {
|
|
|
+ padding: 0 5px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-hd .dropdown-toggle {
|
|
|
+ line-height: 40px;
|
|
|
+ display: block;
|
|
|
+ padding: 0 10px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table>tbody {
|
|
|
+ border: 1px solid transparent;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table>tbody:hover {
|
|
|
+ border-color: #56a022;
|
|
|
+ border-width: 2px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .operates {
|
|
|
+ display: none;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table>tbody:hover .operates {
|
|
|
+ display: block;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-bd {
|
|
|
+ border-bottom: 1px solid #e6e6e6;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-bd>td {
|
|
|
+ padding: 10px 5px;
|
|
|
+ vertical-align: top;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+
|
|
|
+.order-table .order-bd .product {
|
|
|
+ padding-left: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.input-xs,.input-group-xs>.form-control,.input-group-xs>.input-group-addon,.input-group-xs>.input-group-btn>.btn
|
|
|
+ {
|
|
|
+ height: 26px;
|
|
|
+ padding: 0 5px;
|
|
|
+ font-size: 12px;
|
|
|
+ line-height: 1.5;
|
|
|
+ border-radius: 3px;
|
|
|
+}
|
|
|
+
|
|
|
+.order-snapshot .title {
|
|
|
+ border-top: 1px dashed #ddd;
|
|
|
+}
|
|
|
+
|
|
|
+.order-snapshot .dl-horizontal dt {
|
|
|
+ width: 60px;
|
|
|
+ text-align: left;
|
|
|
+ font-weight: normal;
|
|
|
+ color: #999;
|
|
|
+ padding: 4px 0;
|
|
|
+}
|
|
|
+
|
|
|
+.order-snapshot .dl-horizontal dd {
|
|
|
+ margin-left: 80px;
|
|
|
+ padding: 4px 0;
|
|
|
+}
|
|
|
+/*arrow*/
|
|
|
+.order-send {
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+
|
|
|
+.order-send.arrow-border:before,.arrow-border:after {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ top: 20px;
|
|
|
+ width: 0;
|
|
|
+ height: 0;
|
|
|
+ border: 7px solid transparent;
|
|
|
+}
|
|
|
+
|
|
|
+.order-send.arrow-border.arrow-bottom-right:before {
|
|
|
+ content: '';
|
|
|
+ position: absolute;
|
|
|
+ left: -13px;
|
|
|
+ border-bottom-color: #fff;
|
|
|
+ border-right-color: #fff;
|
|
|
+ margin-top: -10px;
|
|
|
+}
|
|
|
+.padding-20 {
|
|
|
+ padding: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+/* 动画 */
|
|
|
+.repeat.ng-enter,
|
|
|
+.repeat.ng-leave {
|
|
|
+ -webkit-transition: 0.5s linear all;
|
|
|
+ transition: 0.5s linear all;
|
|
|
+}
|
|
|
+
|
|
|
+.repeat.ng-enter,
|
|
|
+.repeat.ng-leave.ng-leave-active {
|
|
|
+ opacity: 0;
|
|
|
+}
|
|
|
+
|
|
|
+.repeat.ng-leave,
|
|
|
+.repeat.ng-enter.ng-enter-active {
|
|
|
+ opacity: 1;
|
|
|
+}
|
|
|
+
|
|
|
+/* 固定表头 */
|
|
|
+.fixedHeader {
|
|
|
+ background-color: #f5f5f5;
|
|
|
+ position: relative;
|
|
|
+}
|
|
|
+
|
|
|
+</style>
|
|
|
+<div class="block">
|
|
|
+<div class="loading in" ng-class="{'in': loading}">
|
|
|
+ <i></i>
|
|
|
+</div>
|
|
|
+<div class="condition block">
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-xs-4">
|
|
|
+ <div class="btn-group btn-group-sm btn-group-justified">
|
|
|
+ <div class="btn-group btn-group-sm">
|
|
|
+ <button type="button" class="btn btn-default btn-line"
|
|
|
+ ng-class="{'btn-info':active=='all'}" ng-click="setActive('all')">全部</button>
|
|
|
+ </div>
|
|
|
+ <div class="btn-group btn-group-sm">
|
|
|
+ <button type="button" class="btn btn-default btn-line"
|
|
|
+ ng-class="{'btn-info':active=='done'}" ng-click="setActive('done')">已发货</button>
|
|
|
+ </div>
|
|
|
+ <div class="btn-group btn-group-sm">
|
|
|
+ <button type="button" class="btn btn-default btn-line"
|
|
|
+ ng-class="{'btn-info':active=='todo'}" ng-click="setActive('todo')">待发货</button>
|
|
|
+ </div>
|
|
|
+ <div class="btn-group btn-group-sm" title="暂时还未到可发货日期">
|
|
|
+ <button type="button" class="btn btn-default btn-line"
|
|
|
+ ng-class="{'btn-info':active=='waiting'}" ng-click="setActive('waiting')">备料中</button>
|
|
|
+ </div>
|
|
|
+ <div class="btn-group btn-group-sm">
|
|
|
+ <button type="button" class="btn btn-default btn-line"
|
|
|
+ ng-class="{'btn-info':active=='end'}" ng-click="setActive('end')">已取消</button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-6">
|
|
|
+ <div class="search">
|
|
|
+ <div class="form-group form-group-sm has-feedback">
|
|
|
+ <input type="search" class="form-control input-sm" ng-model="keyword" ng-search="onSearch()" placeholder="输入商品、客户名称或单据流水号搜索" /><span
|
|
|
+ class="form-control-feedback text-simple"><i
|
|
|
+ class="fa fa-search"></i></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="col-xs-2 toggle">
|
|
|
+ <a ng-click="condition.$open=!condition.$open" class="text-simple"><span ng-bind="condition.$open ? '简化筛选条件' : '更多筛选条件'"></span><i class="fa fa-fw" ng-class="{'fa-angle-up': condition.$open, 'fa-angle-down': !condition.$open}"></i></a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="more" ng-class="{'open': condition.$open}">
|
|
|
+ <form class="form-inline">
|
|
|
+ <div class="form-group ">
|
|
|
+ <label>交货日期:</label>
|
|
|
+ <div class="btn-group btn-menu" dropdown is-open="condition.$dateZoneOpen">
|
|
|
+ <button type="button" dropdown-toggle style="width: 85px;" class="btn btn-default btn-xs dropdown-toggle">
|
|
|
+ {{dateZoneText}}<i class="fa fa-fw fa-angle-down icon-right"></i></span>
|
|
|
+ </button>
|
|
|
+ <ul class="dropdown-menu">
|
|
|
+ <li><a ng-click="changeDateZone(1)">一个月内</a></li>
|
|
|
+ <li><a ng-click="changeDateZone(6)">半年内</a></li>
|
|
|
+ <li><a ng-click="changeDateZone()">半年前</a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div class="form-group input-group input-group-xs input-trigger">
|
|
|
+ <input type="text" ng-model="condition.dateFrom"
|
|
|
+ class="form-control" placeholder="点击选择起始日期" readonly="readonly"
|
|
|
+ datepicker-popup="yyyy-MM-dd" is-open="condition.$fromOpened"
|
|
|
+ ng-required="true" max-date="condition.dateTo"
|
|
|
+ current-text="今天" clear-text="清除" close-text="关闭"
|
|
|
+ datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
+ ng-click="openDatePicker($event, condition, '$fromOpened')"
|
|
|
+ ng-change="onDateCondition()">
|
|
|
+ <span class="input-group-btn">
|
|
|
+ <button type="button" class="btn btn-default"
|
|
|
+ ng-click="openDatePicker($event, condition, '$fromOpened')">
|
|
|
+ <i class="fa fa-calendar"></i>
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="form-group input-group input-group-xs input-trigger">
|
|
|
+ <input type="text" ng-model="condition.dateTo"
|
|
|
+ class="form-control" placeholder="点击选择截止日期" readonly="readonly"
|
|
|
+ datepicker-popup="yyyy-MM-dd" is-open="condition.$toOpened"
|
|
|
+ ng-required="true" min-date="condition.dateFrom"
|
|
|
+ current-text="今天" clear-text="清除" close-text="关闭"
|
|
|
+ datepicker-options="{formatDayTitle: 'yyyy年M月', formatMonth: 'M月', showWeeks: false}"
|
|
|
+ ng-click="openDatePicker($event, condition, '$toOpened')"
|
|
|
+ ng-change="onDateCondition()">
|
|
|
+ <span class="input-group-btn">
|
|
|
+ <button type="button" class="btn btn-default"
|
|
|
+ ng-click="openDatePicker($event, condition, '$toOpened')">
|
|
|
+ <i class="fa fa-calendar"></i>
|
|
|
+ </button>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+<table class="order-table block" ng-table="tableParams">
|
|
|
+ <thead>
|
|
|
+ <tr class="header">
|
|
|
+ <th width="280">商品</th>
|
|
|
+ <th width="120">备注</th>
|
|
|
+ <th width="240">数量</th>
|
|
|
+ <th width="90">价格</th>
|
|
|
+ <th width="120">交货日期</th>
|
|
|
+ <th width="60">操作</th>
|
|
|
+ </tr>
|
|
|
+ <tr class="sep-row">
|
|
|
+ <td colspan="6"></td>
|
|
|
+ </tr>
|
|
|
+ <tr class="toolbar toolbar-top">
|
|
|
+ <td colspan="5">
|
|
|
+ <div>
|
|
|
+ <label><input type="checkbox" class="selector select_all"
|
|
|
+ ng-model="checkboxes.checked" ng-click="checkAll()">全选</label> <a href="javascript:void(0)"
|
|
|
+ ng-disabled="active!='todo'" ng-click="sendByBatch()" class="btn btn-default btn-xs">批量发货</a>
|
|
|
+ <span class="text-muted">
|
|
|
+ <i class="fa fa-exclamation-triangle"></i>批量发货要求对应订单的客户相同、币别相同、收款方式相同。
|
|
|
+
|
|
|
+ </span>
|
|
|
+ </div> <!-- 分页 -->
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <a href="sale/notice/xls?_state={{active}}&keyword={{keywordXls}}&fromDate={{fromDateXls}}&endDate={{endDateXls}}" target="_self" class="text-simple" title="导出Excel表格"><i class="fa fa-file-excel-o fa-fw"></i>导出</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr class="sep-row">
|
|
|
+ <td colspan="6"></td>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody ng-repeat="notice in $data track by notice.id">
|
|
|
+ <tr class="order-hd">
|
|
|
+ <td class="first">
|
|
|
+ <div class="order-main">
|
|
|
+ <span> <input type="checkbox" ng-disabled="notice.waiting" class="selector"
|
|
|
+ ng-model="notice.$selected" ng-click="checkOne(notice)">
|
|
|
+ </span> <span class="text-num text-bold"
|
|
|
+ ng-bind="::notice.date | date:'yyyy-MM-dd'"></span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td colspan="2"><a
|
|
|
+ ng-bind="notice.orderItem.order.enterprise.enName"></a></td>
|
|
|
+ <td class="text-right dropdown" colspan="2" class="order-sum"><a
|
|
|
+ class="dropdown-toggle" ui-sref="sale.order_detail({id:notice.orderItem.order.id})" target="_self"> <span
|
|
|
+ class="text-num text-bold" ng-bind="::notice.orderItem.order.code"></span>
|
|
|
+ 第{{notice.orderItem.number}}行 <i class="fa fa-fw fa-angle-down"></i>
|
|
|
+ </a>
|
|
|
+ <div class="dropdown-menu order-snapshot" style="padding: 10px 15px">
|
|
|
+ <div class="text-center text-bold title">订单快照</div>
|
|
|
+ <dl class="dl-horizontal">
|
|
|
+ <dt>日期</dt>
|
|
|
+ <dd>{{::notice.orderItem.order.date | date : 'yyyy-MM-dd'}}</dd>
|
|
|
+ <dt>采购员</dt>
|
|
|
+ <dd>{{::notice.orderItem.order.user.userName}}</dd>
|
|
|
+ <dt>付款条件</dt>
|
|
|
+ <dd>{{::notice.orderItem.order.payments}}</dd>
|
|
|
+ <dt>付款币别</dt>
|
|
|
+ <dd>{{::notice.orderItem.order.currency}}</dd>
|
|
|
+ <dt>交货地址</dt>
|
|
|
+ <dd>{{::notice.orderItem.order.shipAddress}}</dd>
|
|
|
+ <dt>备注</dt>
|
|
|
+ <dd>{{::notice.orderItem.order.remark}}</dd>
|
|
|
+ </dl>
|
|
|
+ </div></td>
|
|
|
+ <td class="text-center">
|
|
|
+ <div class="operates">
|
|
|
+ <!-- <a ng-click="print(notice)" class="text-muted" title="打印"><i
|
|
|
+ class="fa fa-print fa-lg"></i></a> -->
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr class="order-bd">
|
|
|
+ <td class="product">
|
|
|
+ <div class="text-num text-bold">
|
|
|
+ <a ng-bind="::notice.orderItem.product.code"></a>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <a ng-bind="::notice.orderItem.product.title"></a>
|
|
|
+ </div>
|
|
|
+ <div class="text-muted text-ellipsis"
|
|
|
+ ng-bind="::notice.orderItem.product.spec"></div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <div ng-show="!notice.$editing">{{notice.remark}}</div>
|
|
|
+ <div ng-if="notice.$editing">
|
|
|
+ <input type="text" class="form-control input-xs"
|
|
|
+ ng-model="notice.send.code" placeholder="送货单号">
|
|
|
+ </div>
|
|
|
+ <div style="margin: 5px auto" ng-if="notice.$editing" ng-click="autoCode(notice)">
|
|
|
+ <button style="width: 100%;" class="btn btn-default btn-xs">生成随机单号</button>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="br-l">
|
|
|
+ <div ng-show="notice.endQty >= notice.qty" class="text-center dropdown">
|
|
|
+ <a href="javascript:void(0);" class="dropdown-toggle text-default" ng-mouseenter="getSends(notice)">发货记录<i class="fa fa-fw fa-angle-down"></i></a>
|
|
|
+ <div class="dropdown-menu order-send arrow-border arrow-bottom-right" style="padding: 10px 15px">
|
|
|
+ <span ng-if="notice.endQty ==0" class="text-muted">还未发货</span>
|
|
|
+ <span ng-show="notice.getSendsing" class="text-muted">加载中...</span>
|
|
|
+ <span ng-show="notice.getSendsError" class="text-muted">加载失败</span>
|
|
|
+ <ul class="list-unstyled list-menu" ng-if="notice.sends">
|
|
|
+ <li ng-repeat="send in notice.sends">
|
|
|
+ <div ng-class="{'text-inverse': $index==0}">
|
|
|
+ {{::send.send.date | date:'MM-dd HH:mm'}}
|
|
|
+ </div>
|
|
|
+ <div class="text-muted">{{::send.send.recorder}} 发货 {{::send.qty}} {{::send.orderItem.product.unit}}</div>
|
|
|
+ <div class="text-muted">单号:{{::send.send.code}}
|
|
|
+ <i class="fa fa-truck fa-flip-horizontal pull-right text-muted"></i>
|
|
|
+ </div>
|
|
|
+ <code ng-if="send.replyRemark"><i class="fa fa-fw fa-warning"></i><span ng-bind="::send.replyRemark"></span></code>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ng-show="!notice.endQty || notice.endQty < notice.qty">
|
|
|
+ <div ng-show="!notice.$editing">
|
|
|
+ <ul>
|
|
|
+ <li>本次需求:{{::notice.qty}}<span class="text-muted pull-right">[订单数:{{::notice.orderItem.qty}}]</span></li>
|
|
|
+ <li class="dropdown dropdown-submenu">剩余未发:<span
|
|
|
+ class="text-num text-inverse"
|
|
|
+ ng-bind="notice.qty-(notice.endQty || 0)"></span> <a ng-click="" class="pull-right dropdown-toggle" ng-mouseenter="getSends(notice)"><span
|
|
|
+ ng-class="{'text-muted' : notice.endQty == null || notice.endQty == 0,'text-default': notice.endQty > 0}">[已发货:{{notice.endQty}}]</span></a>
|
|
|
+ <div class="dropdown-menu order-send arrow-border arrow-bottom-right"
|
|
|
+ style="padding: 10px 15px; width: 240px;">
|
|
|
+ <span ng-if="notice.endQty ==0" class="text-muted">还未发货</span>
|
|
|
+ <span ng-show="notice.getSendsing" class="text-muted">加载中...</span>
|
|
|
+ <span ng-show="notice.getSendsError" class="text-muted">加载失败</span>
|
|
|
+ <ul class="list-unstyled list-menu" ng-if="notice.sends">
|
|
|
+ <li ng-repeat="send in notice.sends">
|
|
|
+ <div ng-class="{'text-inverse': $index==0}">
|
|
|
+ {{::send.send.date | date:'MM-dd HH:mm'}}
|
|
|
+ </div>
|
|
|
+ <div class="text-muted">{{::send.send.recorder}} 发货 {{::send.qty}} {{::send.orderItem.product.unit}}</div>
|
|
|
+ <div class="text-muted">单号:{{::send.send.code}}
|
|
|
+ <i class="fa fa-truck fa-flip-horizontal pull-right text-muted"></i>
|
|
|
+ </div>
|
|
|
+ <code ng-if="send.replyRemark"><i class="fa fa-fw fa-warning"></i><span ng-bind="::send.replyRemark"></span></code>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <div style="margin: 0 auto" ng-if="notice.$editing"
|
|
|
+ ng-init="notice.send.qty=notice.qty-(notice.endQty || 0)">
|
|
|
+ <input type="text" class="form-control input-xs"
|
|
|
+ ng-model="notice.send.qty" placeholder="数量">
|
|
|
+ </div>
|
|
|
+ <div style="margin: 5px auto" ng-if="notice.$editing" >
|
|
|
+ <textarea cols="2" type="text" class="form-control input-xs"
|
|
|
+ ng-model="notice.send.remark" placeholder="备注"></textarea>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center br-l text-num">{{::currency(notice.orderItem.order.currency)}}{{::notice.orderItem.price | number:6}}</td>
|
|
|
+ <td class="text-center br-l">
|
|
|
+ <div><span ng-bind="::notice.delivery | date : 'yyyy-MM-dd'"></span></div>
|
|
|
+ <div style="margin-top: 10px;" ng-if="notice.waiting" class="text-inverse">
|
|
|
+ 可发货日期<br>
|
|
|
+ <span ng-bind="::sendDate(notice) | date : 'yyyy-MM-dd'"></span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center br-l">
|
|
|
+ <div ng-if="notice.endQty>=notice.qty" class="block">
|
|
|
+ <span class="text-trans success">已发货</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="notice.end" class="block">
|
|
|
+ <span class="text-trans warning">已取消</span>
|
|
|
+ </div>
|
|
|
+ <div ng-if="(!notice.endQty || notice.endQty<notice.qty) && !notice.end && !notice.waiting">
|
|
|
+ <div ng-show="!notice.$editing">
|
|
|
+ <div ng-show="!isInTruck(notice.id)">
|
|
|
+ <div class="br-b">
|
|
|
+ <a ng-click="notice.$editing=!notice.$editing"><i class="fa fa-send-o fa-lg"></i><br>发 货</a>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <a ng-click="addtoTruck(notice)" class="text-simple"><i class="fa fa-ambulance fa-lg"></i><br>加入货车</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ng-show="isInTruck(notice.id)">
|
|
|
+ <div class="text-inverse">已加入<br>货车</div>
|
|
|
+ <div><a ng-click="delFromTruck(notice)" class="text-simple">取出<i class="fa fa-fw fa-share"></i></a></div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ng-show="notice.$editing">
|
|
|
+ <div>
|
|
|
+ <a ng-click="notice.$editing=!notice.$editing">取消</a>
|
|
|
+ </div>
|
|
|
+ <br>
|
|
|
+ <div>
|
|
|
+ <a ng-click="onReplyClick(notice)" class="text-inverse">确认发货</a>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div ng-if="(!notice.endQty || notice.endQty<notice.qty) && !notice.end && notice.waiting" class="text-muted">
|
|
|
+ <div title="暂时不可发货"><i class="fa fa-cog fa-lg"></i><br>备料中</div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+</table>
|
|
|
+</div>
|
|
|
+ <script type="text/ng-template" id="sendByBatch.html">
|
|
|
+ <div class="modal-header">
|
|
|
+ <h3 class="modal-title">批量发货</h3>
|
|
|
+ </div>
|
|
|
+ <form class="sampleSend" name="sampleSendForm" ng-submit="ok(sampleSendForm)">
|
|
|
+ <div class="modal-body">
|
|
|
+ <div class="row" style="margin-bottom:10px;line-height:30px;">
|
|
|
+ <label class="col-md-3 col-sm-3 text-right"><span class="text-inverse">*</span> 发货单号:</label>
|
|
|
+ <div class="col-md-6 col-sm-6">
|
|
|
+ <input class="form-control input-sm" ng-model="saleSend.code" required type="text" placeholder="请输入发货单号"></div>
|
|
|
+ </div>
|
|
|
+ <div class="row" style="margin-bottom:10px;line-height:30px;">
|
|
|
+ <label class="col-md-3 col-sm-3 text-right">备注:</label>
|
|
|
+ <div class="col-md-6 col-sm-6">
|
|
|
+ <input class="form-control input-sm" ng-model="saleSend.remark" type="text" placeholder="备注"></div>
|
|
|
+ </div>
|
|
|
+ <div id="batchContainer" style="height:450px;overflow-y :scroll;border-collapse: collapse; ">
|
|
|
+ <table class="table table-bordered table-hover">
|
|
|
+ <tbody id="fixedHeader" class="fixedHeader">
|
|
|
+ <tr class="text-center">
|
|
|
+ <th width="30px"></th>
|
|
|
+ <th>商品</th>
|
|
|
+ <th width="90px">剩余未发</th>
|
|
|
+ <th width="100px">本次发货</th>
|
|
|
+ <th width="120px">单价</th>
|
|
|
+ <th width="120px">交货日期</th>
|
|
|
+ <th width="120px">订单</th>
|
|
|
+ <th width="50px" class="text-center">操作</th>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tbody>
|
|
|
+ <tr class="repeat" ng-repeat="notice in notices | orderBy: 'notice.orderItem.product.code'" ng-if="notice.$selected">
|
|
|
+ <td>
|
|
|
+ {{$index+1}}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div ng-bind="::notice.orderItem.product.code"></div>
|
|
|
+ <div ng-bind="::notice.orderItem.product.title"></div>
|
|
|
+ <div class="text-muted" ng-bind="::notice.orderItem.product.spec"></div>
|
|
|
+ </td>
|
|
|
+ <td valign="middle" >
|
|
|
+ <div>
|
|
|
+ <span class="text-num" ng-bind="notice.qty-notice.endQty"></span>
|
|
|
+ <span ng-bind="notice.orderItem.product.unit"></span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <input style="width:80px;" ng-model="notice.thisSendQty"
|
|
|
+ ng-init="notice.thisSendQty = notice.qty-notice.endQty" class="form-control input-sm" type="number">
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div class="text-num">
|
|
|
+ <span ng-bind="::currency(notice.orderItem.order.currency)"></span>
|
|
|
+ <span ng-bind="::notice.orderItem.price|number:6"></span>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div ng-bind="::notice.delivery | date: 'yyyy-MM-dd'"></div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div ng-bind="::notice.orderItem.order.code"></div>
|
|
|
+ <div>第 <span ng-bind="::notice.orderItem.number"></span> 行</div>
|
|
|
+ </td>
|
|
|
+ <td class="text-center">
|
|
|
+ <a ng-click="removeOne($index)"><i class="fa fa-trash-o fa-lg"></i></a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="modal-footer">
|
|
|
+ <button class="btn btn-primary" ng-click="sendByBatch()" type="button">确认发货</button>
|
|
|
+ <button class="btn btn-warning" ng-click="cancel()" type="button">取消</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </script>
|