Просмотр исходного кода

Merge remote-tracking branch 'origin/feature-wangcz-201814' into feature-wangcz-201814

Hu Jie 7 лет назад
Родитель
Сommit
0f99b2e802

BIN
src/main/resources/jxls-tpl/trade/releaseByBatch-rmb.xls


BIN
src/main/resources/jxls-tpl/trade/releasebyBatch-usd.xls


+ 12 - 0
src/main/webapp/resources/js/usercenter/controllers/forstore/seek_purchase_ctrl.js

@@ -29,10 +29,20 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
             } else {
             } else {
                 $scope.tab = 'waitOffer';
                 $scope.tab = 'waitOffer';
             }
             }
+          // 更换待报价状态
+          $scope.vendorType = 'all'
+          $scope.onVendorTypeChange = function () {
+            $scope.keyword = '';
+            $scope.startDate = null;
+            $scope.endDate = null;
+            $scope.seekPurchaseTableParams.page(1);
+            $scope.seekPurchaseTableParams.reload();
+          }
           seekPurchase.getSeekUrl({}, function(data) {
           seekPurchase.getSeekUrl({}, function(data) {
             var seekUrl = data.url;
             var seekUrl = data.url;
             /*$scope.tab = 'waitOffer';*/
             /*$scope.tab = 'waitOffer';*/
             $scope.toogleTab = function (tab) {
             $scope.toogleTab = function (tab) {
+              $scope.vendorType = 'all'
                 $scope.tab = tab;
                 $scope.tab = tab;
               $scope.seekPurchaseTableParams = new ngTableParams({
               $scope.seekPurchaseTableParams = new ngTableParams({
                 pageNumber: 1,
                 pageNumber: 1,
@@ -61,6 +71,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
                         ? $scope.startDate.getTime() : null;
                         ? $scope.startDate.getTime() : null;
                     param.endDate = $scope.endDate ? $scope.endDate.getTime()
                     param.endDate = $scope.endDate ? $scope.endDate.getTime()
                         : null;
                         : null;
+                    param.overdue = $scope.vendorType === 'all' ? '' : ($scope.vendorType === 'self' ? '0' : '1')
                     $http({
                     $http({
                       method: 'get',
                       method: 'get',
                       dataType: 'json',
                       dataType: 'json',
@@ -85,6 +96,7 @@ define(['app/app', 'clipboard', 'QRCode'], function (app, clipboard, QRCode) {
                         ? $scope.startDate.getTime() : null;
                         ? $scope.startDate.getTime() : null;
                     param.endDate = $scope.endDate ? $scope.endDate.getTime()
                     param.endDate = $scope.endDate ? $scope.endDate.getTime()
                         : null;
                         : null;
+                    param.overdue = $scope.vendorType === 'all' ? '' : ($scope.vendorType === 'self' ? '0' : '1')
                     $http({
                     $http({
                       method: 'get',
                       method: 'get',
                       dataType: 'json',
                       dataType: 'json',

+ 16 - 0
src/main/webapp/resources/view/usercenter/forstore/seekPurchase.html

@@ -900,6 +900,16 @@
         color: #f15601;
         color: #f15601;
         border-bottom: 1px solid #fff;
         border-bottom: 1px solid #fff;
     }
     }
+    .vendor-type {
+        display: inline-block;
+        width: 111px;
+        float: left;
+        margin-right: 20px;
+        margin-left: 10px;
+        text-align: center;
+        border: 1px solid #4290f7;
+        color: #333;
+    }
 </style>
 </style>
 <div class="user_right fr seek-purchase">
 <div class="user_right fr seek-purchase">
     <!--求购询价-->
     <!--求购询价-->
@@ -1004,6 +1014,12 @@
                 -->
                 -->
             </div>
             </div>
             <div class="sreach fr">
             <div class="sreach fr">
+                <span>求购筛选</span>
+                <select class="form-control select-adder vendor-type" ng-model="vendorType" ng-change="onVendorTypeChange(vendorType)">
+                    <option value="all">全部</option>
+                    <option value="self">未截止</option>
+                    <option value="end">已截止</option>
+                </select>
                 <span>发布时间&nbsp;</span>
                 <span>发布时间&nbsp;</span>
                 <div class="date fl">
                 <div class="date fl">
                     <div class="data-input">
                     <div class="data-input">