|
|
@@ -16938,8 +16938,10 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
toaster.pop('info', '提示', '交货时间未选择');
|
|
|
} else if (!$scope.orderCodeEnable) {
|
|
|
toaster.pop('info', '提示', '采购单号重复');
|
|
|
- }else {
|
|
|
- angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
|
|
|
+ } else if ($scope.deOrder.totalpayament >= 3000000) {
|
|
|
+ toaster.pop('error', '提示', '单张订单委托采购总金额不得超过300万美金,');
|
|
|
+ } else {
|
|
|
+ angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
|
|
|
if (orderitem.prodname == null) {
|
|
|
toaster.pop('info', '提示', '订单明细第' + (index + 1) + '行产品名称未填写');
|
|
|
} else if (orderitem.prodcode == null) {
|
|
|
@@ -16955,7 +16957,6 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
} else if (orderitem.purcprice == null) {
|
|
|
toaster.pop('info', '提示', '订单明细第' + (index + 1) + '行订单单价未填写');
|
|
|
} else {
|
|
|
- $scope.checkresult = true;
|
|
|
$scope.checkresult = true;
|
|
|
if ($scope.deOrder.entrystatus == '保存') {
|
|
|
$scope.isSave = true;
|
|
|
@@ -16963,7 +16964,8 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
$scope.isSubmit = true;
|
|
|
}
|
|
|
}
|
|
|
- });
|
|
|
+ })
|
|
|
+ };
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -17435,7 +17437,9 @@ define(['toaster', 'charts', 'ngTable', 'common/services', 'common/directives',
|
|
|
toaster.pop('info', '提示', '交货时间未选择');
|
|
|
} else if (!$scope.orderCodeEnable) {
|
|
|
toaster.pop('info', '提示', '采购单号重复');
|
|
|
- }else {
|
|
|
+ } else if ($scope.deOrder.totalpayament >= 3000000) {
|
|
|
+ toaster.pop('error', '提示', '单张订单委托采购总金额不得超过300万美金,');
|
|
|
+ } else {
|
|
|
angular.forEach($scope.deOrder.deputyOrderItems, function (orderitem, index) {
|
|
|
if (orderitem.prodname == null) {
|
|
|
toaster.pop('info', '提示', '订单明细第' + (index + 1) + '行产品名称未填写');
|