Browse Source

历史报价数据绑定,报价数量修改为9位

liusw 8 years ago
parent
commit
013f9f17ab

+ 2 - 2
src/main/webapp/resources/js/vendor/controllers/forstore/seek_purchase_ctrl.js

@@ -313,8 +313,8 @@ define(['app/app'], function (app) {
           }
           $scope.onReplyLapQtyInput = function (index) {
             var lapQty =  $scope.inquiryItem.replies[index].lapQty.toString();
-            if (lapQty.length >= 9) {
-              $scope.inquiryItem.replies[index].lapQty = Number(lapQty.substring(0, 8));
+            if (lapQty.length >= 10) {
+              $scope.inquiryItem.replies[index].lapQty = Number(lapQty.substring(0, 9));
             }
           }
 

+ 12 - 43
src/main/webapp/resources/view/vendor/forstore/purchaseOffer.html

@@ -289,6 +289,7 @@
         -webkit-transition: height 1s; /* Safari 和 Chrome */
         -o-transition: height 1s; /* Opera */
         opacity: 0;
+        z-index: 10;
     }
     .seek-purchase .seek-purchase-content >table tbody tr.default-row td.operate .is-say-price .say-price-history p {
         color: #020202;
@@ -312,7 +313,7 @@
         text-align: left;
     }
     .seek-purchase .seek-purchase-content >table tbody tr.default-row td.operate .is-say-price .say-price-history > div > div:nth-child(1) {
-        float: left;
+        /*float: left;*/
     }
     .seek-purchase .seek-purchase-content >table tbody tr.default-row td.operate .is-say-price .say-price-history > div > div:nth-child(2) {
         margin-left: 32px;
@@ -662,27 +663,19 @@
                             <p class="price-title">历史报价</p>
                             <div>
                                 <div>
-                                    <span>交期:</span><span class="red-text">6 天</span>
-                                </div>
-                                <div>
-                                    <span>附件:</span><a href="">下载</a>
-                                </div>
-                                <div class="pre-line">
-                                    <span>规格:</span>2016-05-21
+                                    <span>交期:</span><span class="red-text" ng-bind="seek.leadtime + '天'">6 天</span>
                                 </div>
+                                <!--<div>-->
+                                    <!--<span>附件:</span><a href="">下载</a>-->
+                                <!--</div>-->
+                                <!--<div class="pre-line">-->
+                                    <!--<span>:</span>2016-05-21-->
+                                <!--</div>-->
                                 <p class="price-level">价格梯度</p>
                                 <ul>
-                                    <li>
-                                        <span>1333+</span>
-                                        <span>$123123</span>
-                                    </li>
-                                    <li>
-                                        <span>1333+</span>
-                                        <span>$123123</span>
-                                    </li>
-                                    <li>
-                                        <span>1333+</span>
-                                        <span>$123123</span>
+                                    <li ng-repeat="re in seek.replies">
+                                        <span ng-bind="re.lapQty + '+'">1333+</span>
+                                        <span title="{{seek.currency + re.price | currencyStr}}">{{seek.currency + re.price | currencyStr}}</span>
                                     </li>
                                 </ul>
                             </div>
@@ -691,30 +684,6 @@
                     <img ng-if="seek.agreed == 1" src="static/img/seekPurchase/recieved.png" alt="">
                 </td>
             </tr>
-            <div class="say-price-history" ng-show="hover">
-                <p class="price-title">历史报价</p>
-                <div>
-                    <div>
-                        <span>交期:</span><span class="red-text" ng-bind="leadtime + '天'"></span>
-                    </div>
-                    <!--
-                    <div>
-                        <span>附件:</span><a href="">下载</a>
-                    </div>
-                    -->
-                    <!--
-                    <div class="pre-line">
-                        <span>:</span>2016-05-21
-                    </div>-->
-                    <p class="price-level">价格梯度</p>
-                    <ul>
-                        <li ng-repeat="re in replies">
-                            <span ng-bind="re.lapQty"></span>
-                            <span title="{{of.currency + re.price | currencyStr}}">{{of.currency + re.price | currencyStr}}</span>
-                        </li>
-                    </ul>
-                </div>
-            </div>
             <!--
             <tr class="expand-row">
                 <td colspan="10">