Ver código fonte

Merge remote-tracking branch 'origin/release-201845-wangcz' into release-201845-wangcz

hejq 7 anos atrás
pai
commit
3cf74cd4f3

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

@@ -62,7 +62,6 @@ define(['app/app'], function (app) {
                   replaceCmpCode: false,
                   replaceSpec: true
                 };
-                $scope.inquiryItem = {};
               }
               init();
               initInquiryItem();
@@ -446,6 +445,7 @@ define(['app/app'], function (app) {
                 $scope.inquiryItem.leadtime = '';
             } else {
               $scope.validSayPrice.leadtime = true;
+                $scope.inquiryItem.leadtime = Number($scope.inquiryItem.leadtime)
             }
           };
 
@@ -462,6 +462,7 @@ define(['app/app'], function (app) {
                   $scope.inquiryItem.taxrate = '';
               } else {
                   $scope.validSayPrice.taxrate = true;
+                  $scope.inquiryItem.taxrate = Number($scope.inquiryItem.taxrate)
               }
           };
 
@@ -506,6 +507,7 @@ define(['app/app'], function (app) {
               $scope.validSayPrice.repliesLapQty = false;
             } else {
               $scope.validSayPrice.repliesLapQty = true;
+              $scope.inquiryItem.replies[index].lapQty = Number($scope.inquiryItem.replies[index].lapQty)
             }
           }
           $scope.onReplyLapQtyInput = function (index) {
@@ -554,6 +556,7 @@ define(['app/app'], function (app) {
               $scope.validSayPrice.repliesPrice = false;
             } else {
               $scope.validSayPrice.repliesPrice = true;
+                $scope.inquiryItem.replies[index].price = Number(price)
             }
           }
 /*