|
|
@@ -444,8 +444,9 @@ define([ 'app/app' ], function(app) {
|
|
|
});
|
|
|
commodity.editPrices[commodity.editPrices.length - 1].end = $scope.maxReserve;
|
|
|
commodity.editPrices[commodity.editPrices.length - 1].endPre = $scope.maxReserve;
|
|
|
- commodity.editPrices[0].start = $scope.minReserve;
|
|
|
- commodity.editPrices[0].startPre = $scope.minReserve;
|
|
|
+ // commodity.editPrices[0].start = $scope.minReserve;
|
|
|
+ // commodity.editPrices[0].startPre = $scope.minReserve;
|
|
|
+ commodity.editPrices[0].startPre = commodity.editPrices[0].start;
|
|
|
|
|
|
commodity.editReserve = commodity.reserve;
|
|
|
commodity.editReservePre = commodity.reserve;
|
|
|
@@ -711,8 +712,18 @@ define([ 'app/app' ], function(app) {
|
|
|
*/
|
|
|
$scope.changeMinBuyQty = function (commodity) {
|
|
|
commodity.editMinBuyQtyInValid = true;
|
|
|
+ if(typeof commodity.editMinBuyQty == 'undefined') {
|
|
|
+ return ;
|
|
|
+ }
|
|
|
if(!commodity.editMinBuyQty) {
|
|
|
commodity.editMinBuyQtyInValid = false;
|
|
|
+ toaster.pop('warning', '提示', '起拍量必须是正整数');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ //加入临时逻辑,起拍量必须增加
|
|
|
+ if(parseInt(commodity.editMinBuyQty) < parseInt(commodity.minBuyQty)) {
|
|
|
+ commodity.editMinBuyQtyInValid = false;
|
|
|
+ toaster.pop('warning', '提示', '起拍量只能增加');
|
|
|
return false;
|
|
|
}
|
|
|
if(!$scope.isInt.test(commodity.editMinBuyQty)) {
|
|
|
@@ -954,7 +965,12 @@ define([ 'app/app' ], function(app) {
|
|
|
}
|
|
|
if(!$scope.isInt.test(commodity.editMinBuyQty)) {
|
|
|
commodity.editMinBuyQtyInValid = true;
|
|
|
- toaster.pop('warning', '提示', '最小起拍量必须是正整数');
|
|
|
+ toaster.pop('warning', '提示', '起拍量必须是正整数');
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+ if(parseInt(commodity.editMinBuyQty) < parseInt(commodity.minBuyQty)) {
|
|
|
+ commodity.editMinBuyQtyInValid = true;
|
|
|
+ toaster.pop('warning', '提示', '起拍量只能增加');
|
|
|
return result;
|
|
|
}
|
|
|
if(commodity.editReserve < commodity.editMinBuyQty) {
|