|
|
@@ -144,7 +144,7 @@
|
|
|
<div>
|
|
|
<label><input type="checkbox" class="selector select_all"
|
|
|
ng-model="selectAll">全选</label> <a href="javascript:void(0)"
|
|
|
- class="btn btn-default btn-xs">批量回复</a>
|
|
|
+ class="btn btn-default btn-xs">批量报价</a>
|
|
|
</div> <!-- 分页 -->
|
|
|
</td>
|
|
|
</tr>
|
|
|
@@ -152,21 +152,21 @@
|
|
|
<td colspan="6"></td>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
- <tbody ng-repeat="order in $data">
|
|
|
+ <tbody ng-repeat="inquiryItem in $data">
|
|
|
<tr class="order-hd">
|
|
|
<td class="first">
|
|
|
<div class="order-main">
|
|
|
<span> <input type="checkbox" class="selector"
|
|
|
- ng-model="order.$selected">
|
|
|
- </span> <span class="text-num text-bold" title="{{order.date}}"
|
|
|
- ng-bind="order.date | date:'yyyy-MM-dd'"></span> <span>订单号:<a
|
|
|
- class="text-num" ng-bind="order.code" href="#"></a></span>
|
|
|
+ ng-model="inquiryItem.$selected">
|
|
|
+ </span> <span class="text-num text-bold" title="{{inquiryItem.inquiry.date}}"
|
|
|
+ ng-bind="inquiryItem.inquiry.date | date:'yyyy-MM-dd'"></span> <span>流水号:<a
|
|
|
+ class="text-num" ng-bind="inquiryItem.inquiry.code" href="#"></a></span>
|
|
|
</div>
|
|
|
</td>
|
|
|
- <td colspan="3"><a href="#" ng-bind="order.enterprise.enName"></a></td>
|
|
|
- <td colspan="1" class="order-sum">{{order.currency}}: <span
|
|
|
- ng-bind="getOrderTotal(order.orderItems) | number : 2"
|
|
|
- class="text-num text-bold"></span>
|
|
|
+ <td colspan="3"><a href="#" ng-bind="inquiryItem.inquiry.enterprise.enName"></a></td>
|
|
|
+ <td class="order-sum">
|
|
|
+ 截止到:<span class="text-num" ng-bind="inquiryItem.inquiry.endDate | date:'yyyy-MM-dd'"></span>
|
|
|
+ <br>
|
|
|
</td>
|
|
|
<td colspan="1" class="text-center">
|
|
|
<div class="operates">
|
|
|
@@ -175,30 +175,21 @@
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
- <tr class="order-bd" ng-repeat="item in order.orderItems">
|
|
|
+ <tr class="order-bd">
|
|
|
<td class="product">
|
|
|
<div class="text-num text-bold">
|
|
|
- <a href="#" ng-bind="item.product.code"></a>
|
|
|
+ <a href="#" ng-bind="inquiryItem.product.code"></a>
|
|
|
</div>
|
|
|
<div>
|
|
|
- <a href="#" ng-bind="item.product.title"></a>
|
|
|
- </div>
|
|
|
- <div class="text-muted" title="{{item.product.spec}}"
|
|
|
- ng-bind="item.product.spec"></div>
|
|
|
- </td>
|
|
|
- <td class="text-center text-num" title="{{item.price}}"
|
|
|
- ng-bind="item.price"></td>
|
|
|
- <td class="text-center">
|
|
|
- <div class="text-num" title="{{item.qty}}" ng-bind="item.qty"></div>
|
|
|
- <div class="text-muted" ng-bind="item.product.unit"></div>
|
|
|
- <div style="margin: 0 auto" ng-show="item.$editing">
|
|
|
- <input type="text" ng-model="item.reply.qty"
|
|
|
- ng-init="item.reply.qty=item.qty-item.replyQty"
|
|
|
- class="form-control input-xs" placeholder="回复数量">
|
|
|
+ <a href="#" ng-bind="inquiryItem.product.title"></a>
|
|
|
</div>
|
|
|
+ <div class="text-muted" title="{{inquiryItem.product.spec}}"
|
|
|
+ ng-bind="inquiryItem.product.spec"></div>
|
|
|
</td>
|
|
|
+ <td class="text-center" title="{{inquiryItem.currency}}"
|
|
|
+ ng-bind="item.currency"></td>
|
|
|
+ <td class="text-center"></td>
|
|
|
<td class="text-center br-l">
|
|
|
- <div class="text-num" ng-bind="item.delivery | date:'yyyy-MM-dd'"></div>
|
|
|
<br>
|
|
|
<div style="margin: 0 auto"
|
|
|
class="input-group input-group-xs input-trigger"
|
|
|
@@ -220,24 +211,22 @@
|
|
|
</div>
|
|
|
</td>
|
|
|
<td class="text-center br-l">
|
|
|
- <div>数量完成48%</div>
|
|
|
- <div>交期未达标</div>
|
|
|
- <div style="margin: 0 auto" ng-show="item.$editing">
|
|
|
+ <div style="margin: 0 auto" ng-show="inquiryItem.$editing">
|
|
|
<input type="text" ng-model="item.reply.remark"
|
|
|
class="form-control input-xs" placeholder="回复备注">
|
|
|
</div>
|
|
|
</td>
|
|
|
<td class="text-center br-l">
|
|
|
- <div ng-show="!item.$editing">
|
|
|
- <a ng-click="item.$editing=!item.$editing">回复</a>
|
|
|
+ <div ng-show="!inquiryItem.$editing">
|
|
|
+ <a ng-click="inquiryItem.$editing=!inquiryItem.$editing">报价</a>
|
|
|
</div>
|
|
|
- <div ng-show="item.$editing">
|
|
|
+ <div ng-show="inquiryItem.$editing">
|
|
|
<div>
|
|
|
- <a ng-click="item.$editing=!item.$editing">取消</a>
|
|
|
+ <a ng-click="inquiryItem.$editing=!inquiryItem.$editing">取消</a>
|
|
|
</div>
|
|
|
<br>
|
|
|
<div>
|
|
|
- <a ng-click="onReplyClick(item)" class="text-inverse">确认回复</a>
|
|
|
+ <a ng-click="onReplyClick(inquiryItem)" class="text-inverse">确认报价</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
</td>
|