|
|
@@ -75,6 +75,7 @@ define(['app/app'], function (app) {
|
|
|
toaster.pop('warning', '提示', '最短交期必须小于最长交期');
|
|
|
}
|
|
|
if ($scope.offer.minDay < 1 || $scope.offer.minDay > 31) {
|
|
|
+ $scope.offer.minDay = $scope.offer.minDay < 1 ? 1 : 31;
|
|
|
toaster.pop('warning', '提示', '交期只能填写1-31之间的值');
|
|
|
}
|
|
|
};
|
|
|
@@ -90,8 +91,8 @@ define(['app/app'], function (app) {
|
|
|
if ($scope.offer.minDay && $scope.offer.maxDay < $scope.offer.minDay) {
|
|
|
$scope.offer.maxDay = $scope.offer.minDay;
|
|
|
toaster.pop('warning', '提示', '最短交期必须小于最长交期');
|
|
|
- }
|
|
|
- if ($scope.offer.maxDay < 1 || $scope.offer.maxDay > 31) {
|
|
|
+ } else if ($scope.offer.maxDay < 1 || $scope.offer.maxDay > 31) {
|
|
|
+ $scope.offer.maxDay = $scope.offer.maxDay < 1 ? 1 : 31;
|
|
|
toaster.pop('warning', '提示', '交期只能填写1-31之间的值');
|
|
|
}
|
|
|
}
|