|
|
@@ -222,10 +222,6 @@ define(["app/app", 'jquery-summernote'], function(app) {
|
|
|
$scope.blurNum = function (c) {
|
|
|
c.inputError = 0;
|
|
|
c.noInputError = 0;
|
|
|
- console.log(c.goods.minBuyQty)
|
|
|
- console.log(c.goods.minPackQty)
|
|
|
- console.log(c.goods.reserve)
|
|
|
- console.log(c.goods.breakUp)
|
|
|
if(isNaN(c.number)) {
|
|
|
toaster.pop('info','提示','请输入数字');
|
|
|
c.number = c.goods.minBuyQty;
|
|
|
@@ -241,7 +237,7 @@ define(["app/app", 'jquery-summernote'], function(app) {
|
|
|
}, 3000);
|
|
|
} else {
|
|
|
c.inputError = 1;
|
|
|
- c.number = Number(NumberService.sub(c.goods.minBuyQty, c.goods.minBuyQty % c.goods.minPackQty));
|
|
|
+ c.number = c.goods.minBuyQty;
|
|
|
$timeout(function () {
|
|
|
c.inputError = 0;
|
|
|
}, 3000);
|