ソースを参照

信扬委托金额进行调整

hejq 7 年 前
コミット
aaf3ca009b
1 ファイル変更8 行追加4 行削除
  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', '提示', '交货时间未选择');
             }  else if (!$scope.orderCodeEnable) {
                 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 {
                     angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
                     if (orderitem.prodname == null) {
@@ -17725,8 +17727,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
                 toaster.pop('info', '提示', '交货时间未选择');
             } else if (!$scope.orderCodeEnable) {
                 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 {
                 angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
                     if (orderitem.prodname == null) {