Browse Source

信扬委托金额进行调整

hejq 7 years ago
parent
commit
aaf3ca009b
1 changed files with 8 additions and 4 deletions
  1. 8 4
      src/main/webapp/resources/js/index/app.js

+ 8 - 4
src/main/webapp/resources/js/index/app.js

@@ -17263,8 +17263,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 toaster.pop('info', '提示', '交货时间未选择');
                 toaster.pop('info', '提示', '交货时间未选择');
             }  else if (!$scope.orderCodeEnable) {
             }  else if (!$scope.orderCodeEnable) {
                 toaster.pop('info', '提示', '采购单号重复');
                 toaster.pop('info', '提示', '采购单号重复');
-            } else if ($scope.deOrder.totalpayament >= 3000000) {
-                toaster.pop('error', '提示', '单张订单委托采购总金额不得超过300万美金,');
+            } else if ($scope.deOrder.currency == 'USD' && $scope.deOrder.totalpayament >= 300 * 10000) {
+                toaster.pop('error', '提示', '单张订单委托采购总金额不得超过300万美金');
+            } else if ($scope.deOrder.currency == 'RMB' && $scope.deOrder.totalpayament >= 1000 * 10000) {
+                toaster.pop('error', '提示', '单张订单委托采购总金额不得超过1000万人民币');
             } else {
             } else {
                     angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
                     angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
                     if (orderitem.prodname == null) {
                     if (orderitem.prodname == null) {
@@ -17725,8 +17727,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 toaster.pop('info', '提示', '交货时间未选择');
                 toaster.pop('info', '提示', '交货时间未选择');
             } else if (!$scope.orderCodeEnable) {
             } else if (!$scope.orderCodeEnable) {
                 toaster.pop('info', '提示', '采购单号重复');
                 toaster.pop('info', '提示', '采购单号重复');
-            } else if ($scope.deOrder.totalpayament >= 3000000) {
-                toaster.pop('error', '提示', '单张订单委托采购总金额不得超过300万美金,');
+            } else if ($scope.deOrder.currency == 'USD' && $scope.deOrder.totalpayament >= 300 * 10000) {
+                toaster.pop('error', '提示', '单张订单委托采购总金额不得超过300万美金');
+            } else if ($scope.deOrder.currency == 'RMB' && $scope.deOrder.totalpayament >= 1000 * 10000) {
+                toaster.pop('error', '提示', '单张订单委托采购总金额不得超过1000万人民币');
             } else {
             } else {
                 angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
                 angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
                     if (orderitem.prodname == null) {
                     if (orderitem.prodname == null) {