mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改表单
This commit is contained in:
parent
4e50eccdd0
commit
ac1e7cff2f
@ -345,7 +345,13 @@
|
|||||||
$rootScope.specs = angular.fromJson(angular.element('#GoodsSpecs').val() || '[{"name":"默认分组","list":[{"name":"默认规格","check":true}]}]');
|
$rootScope.specs = angular.fromJson(angular.element('#GoodsSpecs').val() || '[{"name":"默认分组","list":[{"name":"默认规格","check":true}]}]');
|
||||||
/*! 批量设置数值 */
|
/*! 批量设置数值 */
|
||||||
$rootScope.batchSet = function (name, fixed) {
|
$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 () {
|
layer.close(index), $rootScope.$apply(function () {
|
||||||
if (fixed !== null) value = (parseFloat(value) || 0).toFixed(fixed);
|
if (fixed !== null) value = (parseFloat(value) || 0).toFixed(fixed);
|
||||||
$rootScope.items.forEach(function (rows) {
|
$rootScope.items.forEach(function (rows) {
|
||||||
|
@ -89,7 +89,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
$('[data-batchset]').on('click', function () {
|
$('[data-batchset]').on('click', function () {
|
||||||
layer.prompt({title: '请输入库存数值', formType: 0}, function (value, index) {
|
layer.prompt({
|
||||||
|
title: '请输入库存数量【 取值范围:1 - 999999 】', formType: 0, value: 1, success: function ($fn) {
|
||||||
|
$fn.find('.layui-layer-input').attr({'data-value-min': 1, 'data-value-max': 999999, 'data-blur-number': 0});
|
||||||
|
}
|
||||||
|
}, function (value, index) {
|
||||||
layer.close(index), $('[name^="goods_stock"]').val(parseInt(value) || 0);
|
layer.close(index), $('[name^="goods_stock"]').val(parseInt(value) || 0);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
<label class="layui-form-item relative block">
|
<label class="layui-form-item relative block">
|
||||||
<span class="color-green font-w7">充值账户余额</span>
|
<span class="color-green font-w7">充值账户余额</span>
|
||||||
<span class="color-desc margin-left-5">Amount</span>
|
<span class="color-desc margin-left-5">Amount</span>
|
||||||
<input class="layui-input" data-blur-number="2" maxlength="10" name="amount" placeholder="请输入充值账户余额" required value="{$vo.amount|default='0.00'}">
|
<input class="layui-input" data-blur-number="2" data-value-max="999999999.99" maxlength="12" name="amount" placeholder="请输入充值账户余额" required value="{$vo.amount|default='0.00'}">
|
||||||
<span class="help-block">请输入要充值的金额,充值后可以使用此余额购买商品</span>
|
<span class="help-block">请输入要充值的金额,充值后可以使用此余额购买商品</span>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
2
vendor/services.php
vendored
2
vendor/services.php
vendored
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
// This file is automatically generated at:2021-03-27 15:02:52
|
// This file is automatically generated at:2021-03-29 10:03:48
|
||||||
declare (strict_types = 1);
|
declare (strict_types = 1);
|
||||||
return array (
|
return array (
|
||||||
0 => 'think\\admin\\Library',
|
0 => 'think\\admin\\Library',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user