54 lines
1.8 KiB
HTML
54 lines
1.8 KiB
HTML
<form class="layui-form eject-layuiBox" data-action="/goods/editReceipt">
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">商品</label>
|
|
<div class="layui-input-block">
|
|
<select lay-filter="goods" id="goods" name="goods_id">
|
|
{foreach $goodsList as $goods}
|
|
<option value="{$goods.id}">{$goods.name}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">进货日期</label>
|
|
<div class="layui-input-block">
|
|
<input type="text" name="bought_at" class="layui-input" id="bought_at" placeholder="yyyy-MM-dd">
|
|
</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="num" maxlength="60" />
|
|
</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="total_price" maxlength="60" />
|
|
</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" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-input-block">
|
|
<button type="button" class="layui-btn layui-btn-sm" lay-submit lay-filter="submitAll">保存</button>
|
|
</div>
|
|
</form>
|
|
|
|
<script>
|
|
$(document).ready(function(){
|
|
var laydate = layui.laydate;
|
|
|
|
laydate.render({
|
|
elem: '#bought_at'
|
|
});
|
|
});
|
|
</script> |