Browse Source

询价转主动报价增加价格信息自动录入

hejq 8 years ago
parent
commit
8576863889
1 changed files with 11 additions and 0 deletions
  1. 11 0
      src/main/webapp/resources/js/index/app.js

+ 11 - 0
src/main/webapp/resources/js/index/app.js

@@ -7041,6 +7041,17 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 toaster.pop('info', '暂未匹配到物料信息,请手动选择');
             } else {
                 $scope.item.product = item.product;
+                if (item.replies.length > 0) {
+                    $scope.item.prices = item.replies;
+                    angular.forEach($scope.item.prices, function(price) {
+                        price.id = null;
+                    });
+                }
+                $scope.item.quotation.taxrate = item.taxrate;
+                $scope.item.minPackQty = item.minPackQty;
+                $scope.item.minOrderQty = item.minOrderQty;
+                $scope.item.leadtime = item.leadtime;
+                $scope.item.quotation.currency = item.currency;
             }
         }