yijia-webman/app/view/goods/edit.html

65 lines
2.8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<form class="layui-form eject-layuiBox" data-action="/goods/edit">
<div class="layui-form-item">
<label class="layui-form-label">商品</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="name" maxlength="60" value="{$goods.name??''}" />
<div class="layui-form-mid layui-word-aux">建议60个字符长度以内</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">平台价格</label>
<div class="layui-input-block">
<input class="layui-input" type="number" name="price" maxlength="60" value="{$goods.price??0}" />
<div class="layui-form-mid layui-word-aux">注:一般记录大包的价格</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">大包库存</label>
<div class="layui-input-block">
<input class="layui-input" type="number" name="stock" maxlength="60" value="{$goods.stock ?? 0}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">小包库存</label>
<div class="layui-input-block">
<input class="layui-input" type="number" name="stock_small" maxlength="60" value="{$goods.stock_small ?? 0}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">大包销量</label>
<div class="layui-input-block">
<input class="layui-input" type="number" name="sales" maxlength="60" value="{$goods.sales ?? 0}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">小包销量</label>
<div class="layui-input-block">
<input class="layui-input" type="number" name="sales_small" maxlength="60" value="{$goods.sales_small ?? 0}" />
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">大包拆小包规格</label>
<div class="layui-input-block">
<input class="layui-input" type="number" name="split_to_small" maxlength="60" value="{$goods.split_to_small ?? 1}" />
<div class="layui-form-mid layui-word-aux">每大包可拆分成多少个小包如一箱泡面24袋则填写24方便计算每一小包的进货价默认1即不可拆分</div>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">备注</label>
<div class="layui-input-block">
<input class="layui-input" type="text" name="remark" maxlength="200" vlaue="{$goods.remark ?? ''}" />
</div>
</div>
<div class="layui-input-block">
<button type="button" class="layui-btn layui-btn-sm" lay-submit lay-filter="submitAll">保存</button>
</div>
<input type="hidden" name="id" value="{$goods.id}" />
</form>