From ac1e7cff2fbefc36ba6d52e670ac0a99db4e650a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Mon, 29 Mar 2021 10:27:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/view/shop/goods/form.html | 8 +++++++- app/data/view/shop/goods/stock.html | 6 +++++- app/data/view/user/balance/form.html | 2 +- vendor/services.php | 2 +- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/app/data/view/shop/goods/form.html b/app/data/view/shop/goods/form.html index 516b07a9f..d2aabf40c 100644 --- a/app/data/view/shop/goods/form.html +++ b/app/data/view/shop/goods/form.html @@ -345,7 +345,13 @@ $rootScope.specs = angular.fromJson(angular.element('#GoodsSpecs').val() || '[{"name":"默认分组","list":[{"name":"默认规格","check":true}]}]'); /*! 批量设置数值 */ $rootScope.batchSet = function (name, fixed) { - layer.prompt({title: '请输入数值', formType: 0}, function (value, index) { + layer.prompt({ + title: '请输入数量【 取值范围:1 - 999999 】', + formType: 0, value: (1).toFixed(fixed), success: function ($fn) { + var min = (1).toFixed(fixed), max = (999999).toFixed(fixed); + $fn.find('.layui-layer-input').attr({'data-value-min': min, 'data-value-max': max, 'data-blur-number': fixed}); + } + }, function (value, index) { layer.close(index), $rootScope.$apply(function () { if (fixed !== null) value = (parseFloat(value) || 0).toFixed(fixed); $rootScope.items.forEach(function (rows) { diff --git a/app/data/view/shop/goods/stock.html b/app/data/view/shop/goods/stock.html index 0e7a2771c..6c1b1f2f5 100644 --- a/app/data/view/shop/goods/stock.html +++ b/app/data/view/shop/goods/stock.html @@ -89,7 +89,11 @@