shenjj hace 7 años
padre
commit
74e5f7924a

+ 2 - 2
src/main/webapp/resources/js/common/query/seekPurchase.js

@@ -23,11 +23,11 @@ define([ 'ngResource' ], function() {
                 method: 'POST'
             },
             saveOffer: {
-                url: 'http://218.17.158.219:24000/inquiry/sale/item/save',
+                url: 'http://10.1.51.82:24002/inquiry/sale/item/saveQuote',
                 method: 'POST'
             },
             saveOfferProd: {
-                url: 'https://api-inquiry.usoftmall.com/inquiry/sale/item/save',
+                url: 'https://api-inquiry.usoftmall.com/inquiry/sale/item/saveQuote',
                 method: 'POST'
             },
             getUserSeekPageInfo: {

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

@@ -291,6 +291,7 @@ define(['app/app'], function (app) {
                 $scope.inquiryItem.isReplace = 1;
               }
               // $scope.inquiryItem.id = $scope.inquiryItem.itemId;
+              $scope.inquiryItem.sourceId = $scope.inquiryItem.id;
               if (seekUrl == 'https://api-inquiry.usoftmall.com') {
                 seekPurchase.saveOfferProd($scope.inquiryItem, function (data) {
                   toaster.pop('success', '感谢您参与报价,敬请期待回复');

+ 6 - 6
src/main/webapp/resources/view/usercenter/forstore/bomDetail.html

@@ -590,19 +590,19 @@
                     </p>
                 </div>
                 <div class="clearfix">
-                    <div class="fl title">规格:13312314</div>
-                    <div class="title pull-right" style="font-size: 14px;color: #333;">本单共<span style="color: #fd7748;margin-right: 0px;font-size: 14px">{{bomInfo.amount}}</span>个产品,<span style="color: #fd7748;margin-right: 0px;font-size: 14px">{{bomInfo.quotedAmount || 0}}</span>个已报价(其中{{bomInfo.replaceQuotedAmount || 0}}个为替代料报价)</div>
+                    <div class="fl title">规格:{{bomInfo.spec || '-'}}</div>
+                    <div class="title pull-right" style="font-size: 14px;color: #333;">本单共<span style="color: #fd7748;margin-right: 0px;font-size: 14px">{{bomInfo.amount }}</span>个产品,<span style="color: #fd7748;margin-right: 0px;font-size: 14px">{{bomInfo.quotedAmount || 0}}</span>个已报价(其中{{bomInfo.replaceQuotedAmount || 0}}个为替代料报价)</div>
                 </div>
                 <div class="clearfix">
-                    <div class="fl title">采购数量(套):13312314</div>
-                    <div class="title pull-right">价格分析:按价格最低<span style="color: #fd7748;margin-right: 0px;font-size: 14px">30</span>个报告,合计¥:<span style="color: #008000;margin-right: 0px;font-size: 14px">50000.00</span></div>
+                    <div class="fl title">采购数量(套):{{bomInfo.count || 0}}</div>
+                    <div class="title pull-right">价格分析:按价格最低<span style="color: #fd7748;margin-right: 0px;font-size: 14px">{{bomInfo.quotedAmount || 0}}</span>个报告,合计¥:<span style="color: #008000;margin-right: 0px;font-size: 14px">{{bomInfo.minPriceSum || 0}}</span></div>
                 </div>
                 <div class="clearfix">
                     <div class="fl title">发布时间:{{bomInfo.date | date:'yyyy-MM-dd HH:mm:ss'}}</div>
-                    <div class="title pull-right">按交期最短<span style="color: #fd7748;margin-right: 0px;font-size: 14px">30</span>个报告,合计¥:<span style="color: #008000;margin-right: 0px;font-size: 14px">50000.00</span></div>
+                    <div class="title pull-right">按交期最短<span style="color: #fd7748;margin-right: 0px;font-size: 14px">{{bomInfo.quotedAmount || 0}}</span>个报告,合计¥:<span style="color: #008000;margin-right: 0px;font-size: 14px">{{bomInfo.minDeliverySum || 0}}</span></div>
                 </div>
                 <div class="clearfix">
-                    <div class="fl title">截止时间:{{bomInfo.date | date:'yyyy-MM-dd HH:mm:ss'}}</div>
+                    <div class="fl title">截止时间:{{bomInfo.endDate | date:'yyyy-MM-dd HH:mm:ss'}}</div>
                 </div>
                 <!--
                 <div class="fr">