修改库存管理

This commit is contained in:
邹景立 2021-03-19 17:11:13 +08:00
parent ecac347860
commit ae9a3a3bd2
2 changed files with 12 additions and 2 deletions

View File

@ -30,7 +30,9 @@
<th class="text-center nowrap">总销统计</th>
<th class="text-center nowrap">库存剩余</th>
<th class="text-center nowrap">入库数量</th>
<th class="padding-0 nowrap"></th>
<th class="padding-0 nowrap">
<a data-batchset data-tips-text="批量设置" class="layui-icon" style="color:#FFF">&#xe63c;</a>
</th>
</tr>
</thead>
</table>
@ -77,3 +79,11 @@
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消入库吗?" data-close>取消入库</button>
</div>
</form>
<script>
$('[data-batchset]').on('click', function () {
layer.prompt({title: '请输入数值', formType: 0}, function (value, index) {
layer.close(index), $('[name^="goods_stock"]').val(parseInt(value) || 0);
});
});
</script>

View File

@ -30,7 +30,7 @@
<span class="color-desc margin-left-5">Transfer Status</span>
<div class="layui-textarea" style="min-height:auto;padding:10px 0 13px 18px">
{php} $data['status'] = $data['status'] ?? 0; {/php}
{foreach ['关闭用户提现', '开启用户提现'] as $k => $v}
{foreach ['关闭返利提现', '开启返利提现'] as $k => $v}
{if $data.status eq $k}
<input checked class="layui-input layui-bg-gray" type="radio" title="{$v}" name="status" value="{$k}">
{else}