|
|
@@ -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) {
|