Browse Source

bom求购列表管理

liusw 8 years ago
parent
commit
fcaf1915cb

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

@@ -555,6 +555,7 @@ define(['app/app'], function (app) {
 
 
           $scope.showUseFlag = false;
           $scope.showUseFlag = false;
           $scope.setShowUseFlag = function (flag, offer) {
           $scope.setShowUseFlag = function (flag, offer) {
+            $scope.purchaseQuantity = null;
             if (flag) {
             if (flag) {
               $scope.currentOffer = offer;
               $scope.currentOffer = offer;
             }
             }
@@ -606,7 +607,7 @@ define(['app/app'], function (app) {
               file: file,
               file: file,
               method: 'POST'
               method: 'POST'
             }).success(function(data) {
             }).success(function(data) {
-              window.open("http://10.1.51.90:3000/applyPurchase/" + data.data);
+              window.open("applyPurchase/" + data.data);
             }).error(function(response) {
             }).error(function(response) {
             });
             });
           };
           };

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

@@ -505,7 +505,7 @@
                 </td>
                 </td>
                 <td ng-bind="seek.encapsulation || '-'" title="{{seek.encapsulation}}">盘装</td>
                 <td ng-bind="seek.encapsulation || '-'" title="{{seek.encapsulation}}">盘装</td>
                 <td ng-bind="seek.produceDate || '-'" title="{{seek.produceDate}}">2012-12-12</td>
                 <td ng-bind="seek.produceDate || '-'" title="{{seek.produceDate}}">2012-12-12</td>
-                <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)" class="red-text"></span>&nbsp;天&nbsp;<span ng-bind="getHours(seek.remainingTime)" class="red-text">5</span>&nbsp;小时</td>
+                <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)" ng-if="getDay(seek.remainingTime) > 0" class="red-text"></span><i ng-if="getDay(seek.remainingTime) > 0">&nbsp;天&nbsp;</i><span ng-if="getDay(seek.remainingTime) <= 0" ng-bind="getHours(seek.remainingTime)" class="red-text">5</span><i ng-if="getDay(seek.remainingTime) <= 0">&nbsp;小时</i></td>
                 <td class="left-time" ng-if="seek.remainingTime <= 0"><span style="color: red;">已截止</span></td>
                 <td class="left-time" ng-if="seek.remainingTime <= 0"><span style="color: red;">已截止</span></td>
                 <td ng-switch="seek.status">
                 <td ng-switch="seek.status">
                     <span ng-switch-when="200" style="color:red;">待报价</span>
                     <span ng-switch-when="200" style="color:red;">待报价</span>

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

@@ -706,7 +706,7 @@
                 </td>
                 </td>
                 <td ng-bind="seek.encapsulation || '-'" title="{{seek.encapsulation}}">盘装</td>
                 <td ng-bind="seek.encapsulation || '-'" title="{{seek.encapsulation}}">盘装</td>
                 <td ng-bind="seek.produceDate || '-'" title="{{seek.produceDate}}">2012-12-12</td>
                 <td ng-bind="seek.produceDate || '-'" title="{{seek.produceDate}}">2012-12-12</td>
-                <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)" class="red-text"></span>&nbsp;天&nbsp;<span ng-bind="getHours(seek.remainingTime)" class="red-text">5</span>&nbsp;小时</td>
+                <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)" ng-if="getDay(seek.remainingTime) > 0" class="red-text"></span><i ng-if="getDay(seek.remainingTime) > 0">&nbsp;天&nbsp;</i><span ng-if="getDay(seek.remainingTime) <= 0" ng-bind="getHours(seek.remainingTime)" class="red-text">5</span><i ng-if="getDay(seek.remainingTime) <= 0">&nbsp;小时</i></td>
                 <td class="left-time" ng-if="seek.remainingTime <= 0"><span style="color: red;">已截止</span></td>
                 <td class="left-time" ng-if="seek.remainingTime <= 0"><span style="color: red;">已截止</span></td>
                 <td ng-switch="seek.status">
                 <td ng-switch="seek.status">
                     <span ng-switch-when="200" style="color:red;">待报价</span>
                     <span ng-switch-when="200" style="color:red;">待报价</span>

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

@@ -536,7 +536,7 @@
                 <td class="unit-price">
                 <td class="unit-price">
                     <span>{{seek.currency + seek.unitPrice | currencyStr}}</span>
                     <span>{{seek.currency + seek.unitPrice | currencyStr}}</span>
                 </td>
                 </td>
-                <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)"></span>&nbsp;天&nbsp;<span ng-bind="getHours(seek.remainingTime)">5</span>&nbsp;小时</td>
+                <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)" ng-if="getDay(seek.remainingTime) > 0" class="red-text"></span><i ng-if="getDay(seek.remainingTime) > 0">&nbsp;天&nbsp;</i><span ng-if="getDay(seek.remainingTime) <= 0" ng-bind="getHours(seek.remainingTime)" class="red-text">5</span><i ng-if="getDay(seek.remainingTime) <= 0">&nbsp;小时</i></td>
                 <td class="left-time" ng-if="seek.remainingTime <= 0"><span>已截止</span></td>
                 <td class="left-time" ng-if="seek.remainingTime <= 0"><span>已截止</span></td>
                 <td class="operate" ng-switch="seek.status">
                 <td class="operate" ng-switch="seek.status">
                     <a>联系买家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
                     <a>联系买家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>

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

@@ -470,7 +470,7 @@
                     <td class="unit-price">
                     <td class="unit-price">
                         <span>{{seek.currency + seek.unitPrice | currencyStr}}</span>
                         <span>{{seek.currency + seek.unitPrice | currencyStr}}</span>
                     </td>
                     </td>
-                    <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)"></span>&nbsp;天&nbsp;<span ng-bind="getHours(seek.remainingTime)">5</span>&nbsp;小时</td>
+                    <td class="left-time" ng-if="seek.remainingTime > 0">剩余&nbsp;<span ng-bind="getDay(seek.remainingTime)" ng-if="getDay(seek.remainingTime) > 0" class="red-text"></span><i ng-if="getDay(seek.remainingTime) > 0">&nbsp;天&nbsp;</i><span ng-if="getDay(seek.remainingTime) <= 0" ng-bind="getHours(seek.remainingTime)" class="red-text">5</span><i ng-if="getDay(seek.remainingTime) <= 0">&nbsp;小时</i></td>
                     <td class="left-time" ng-if="seek.remainingTime <= 0"><span>已截止</span></td>
                     <td class="left-time" ng-if="seek.remainingTime <= 0"><span>已截止</span></td>
                     <td class="operate">
                     <td class="operate">
                         <a>联系买家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>
                         <a>联系买家 <img src="static/img/seekPurchase/link-buyer.png" alt=""></a>