65 lines
2.8 KiB
HTML
65 lines
2.8 KiB
HTML
<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>
|