Commit 4ad2d48d by 杨树贤

日期选择

parent e5827e34
<script>
layui.use(['table', 'form', 'element', 'table', 'layer', 'admin', 'xmSelect'], function () {
layui.use(['table', 'form', 'element', 'table', 'layer', 'admin', 'xmSelect','laydate'], function () {
let admin = layui.admin;
let form = layui.form;
let element = layui.element;
let laydate = layui.laydate;
let xmSelect = layui.xmSelect;
laydate.render({
elem: '#examine_time'
, type: 'date'
, format: 'yyyy-MM-dd'
});
laydate.render({
elem: '#stock_in_date'
, type: 'date'
, format: 'yyyy-MM-dd'
});
form.on('submit(addSupplierExamination)', function (data) {
layer.confirm('是否确认新增IQC检测资料?', function (index) {
let url = '/api/supplier_examination/AddSupplierExamination';
......
......@@ -53,8 +53,10 @@
</div>
<div class="layui-form-item">
<div class="layui-col-xs6">
@inject('datePresenter','App\Presenters\DatePresenter')
{!! $datePresenter->render('examine_time','检货时间 : ','',['required'=>true]) !!}
<label class="layui-form-label"> <span class="require">*</span> 检货时间 : </label>
<div class="layui-input-inline" style="margin-top: 0px">
<input type="text" id="examine_time" name="examine_time" placeholder="请输入检货时间 : " class="layui-input " value="">
</div>
</div>
<div class="layui-col-xs6">
<label class="layui-form-label">A/B单 : </label>
......@@ -126,9 +128,15 @@
</div>
</div>
<div class="layui-form-item">
{{-- <div class="layui-col-xs6">--}}
{{-- @inject('datePresenter','App\Presenters\DatePresenter')--}}
{{-- {!! $datePresenter->render('stock_in_date','入库日期 : ','') !!}--}}
{{-- </div>--}}
<div class="layui-col-xs6">
@inject('datePresenter','App\Presenters\DatePresenter')
{!! $datePresenter->render('stock_in_date','入库日期 : ','') !!}
<label class="layui-form-label"> 入库日期 : </label>
<div class="layui-input-inline" style="margin-top: 0px">
<input type="text" id="stock_in_date" name="stock_in_date" placeholder="请输入入库日期 : " class="layui-input " value="">
</div>
</div>
<div class="layui-col-xs6">
<label class="layui-form-label">来货单号 : </label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment