Browse Source

处理公共询价页增加税率展示问题

wangcz 7 years ago
parent
commit
4a6f7fa260

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

@@ -740,6 +740,29 @@ define(['app/app'], function (app) {
           $scope.setLinkBoxIndex = function (index) {
             $scope.linkBoxIndex = index;
           }
+
+          $scope.loadQuotationData = function (seek) {
+              if (seek.quotation) {
+                  console.log(3)
+                  return
+              }
+              var param = {
+                  id: seek.quteId,
+                  enuu: $scope.userInfo.enterprise.uu,
+                  useruu: $scope.userInfo.userUU
+              }
+              $http({
+                  method: 'get',
+                  dataType: 'json',
+                  url: seekUrl + '/inquiry/public/quotation/one',
+                  params: param
+              }).success(function (data) {
+                  seek.quotation = data
+              }).error(function (response) {
+                  toaster.pop('error', response);
+              });
+          }
+
           });
         }]);
 });

+ 6 - 2
src/main/webapp/resources/view/vendor/forstore/purchaseOffer.html

@@ -916,8 +916,12 @@
                                     <div class="replace-param" ng-if="seek.isReplace == 1">
                                         <span>规格:</span><span ng-bind="seek.replaceSpec || '-'"></span>
                                     </div>
-                                    <span>交期:</span><span class="red-text" ng-bind="seek.leadtime + '天'">6 天</span>
-                                    <span>税率%:</span><span class="red-text" ng-bind="seek.taxrate">6 天</span>
+                                    <div class="replace-param">
+                                        <span>交期:</span><span class="red-text" ng-bind="seek.leadtime + '天'">6 天</span><br/>
+                                    </div>
+                                    <div class="replace-param">
+                                        <span>税率%:</span><span class="red-text" ng-bind="seek.taxrate || 0">6 天</span>
+                                    </div>
                                 </div>
                                 <!--<div>-->
                                     <!--<span>附件:</span><a href="">下载</a>-->

+ 5 - 2
src/main/webapp/resources/view/vendor/forstore/seekPurchase.html

@@ -1027,7 +1027,7 @@
                         <div ng-if="!seek.newId && userInfo.enterprise.uu != seek.inquiry.enUU && seek.quoted != 1 && seek.remainingTime > 0" ng-click="setSeekActive(seek, true, index)">我要报价</div>
                         <div class="disable" ng-if="userInfo.enterprise.uu == seek.inquiry.enUU && seek.quoted != 1 && seek.remainingTime > 0" title="此为贵公司的求购" ng-disabled="true">我要报价</div>
                         <!--<span ng-if="seek.quoted == 1 || seek.newId">已报价 <img src="static/img/seekPurchase/check.png" alt=""></span>-->
-                        <div class="is-say-price" ng-if="seek.quoted == 1 || seek.newId">已报价 <img src="static/img/seekPurchase/check.png" alt="">
+                        <div ng-mouseenter="loadQuotationData(seek)" class="is-say-price" ng-if="seek.quoted == 1 || seek.newId">已报价 <img src="static/img/seekPurchase/check.png">
                             <div class="say-price-history">
                                 <p class="price-title">{{seek.quotation.isReplace == 1 ? '替代型号报价' : '当前型号报价'}}</p>
                                 <div>
@@ -1038,11 +1038,14 @@
                                         <span>型号:</span><span ng-bind="seek.quotation.replaceCmpCode || '-'"></span>
                                     </div>
                                     <div class="replace-param" ng-if="seek.quotation.isReplace == 1">
-                                        <span>规格:</span><span ng-bind="seek.quotation.replaceSpec || '-'"></span>
+                                          <span>规格:</span><span ng-bind="seek.quotation.replaceSpec || '-'"></span>
                                     </div>
                                     <div class="replace-param">
                                         <span>交期:</span><span class="red-text" ng-bind="seek.quotation.leadtime + '天'"></span>
                                     </div>
+                                    <div class="replace-param">
+                                        <span>税率%:</span><span class="red-text" ng-bind="seek.quotation.taxrate || 0">6 天</span>
+                                    </div>
                                     <!--<div>-->
                                     <!--<span>附件:</span><a href="">下载</a>-->
                                     <!--</div>-->