12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <div class="page-header">
- <a href="{{url('admin/stock/add')}}" class="btn btn-primary">新增</a>
- </div>
- <form action="" method="get" class="form-horizontal form-line">
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="product_code" value="{{request('product_code','')}}" placeholder="请输入产品编码查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <select name="status" class="form-control">
- <option value="" >产品状态</option>
- <option value="0" @if (request('status') === '0' ) selected="selected" @endif >已上架</option>
- <option value="1" @if (request('status') === '1' ) selected="selected" @endif >已下架</option>
- </select>
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入开始时间查询" />
- </div>
- <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
- <input type="text" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束时间查询" />
- </div>
- <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
- <a href="{{url('admin/stock/index')}}" class="btn btn-sm btn-default" >重置</a>
- </form>
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <table class="table table-striped table-bordered table-hover">
- <thead>
- <tr>
- <th>入库编码</th>
- <th>产品编码</th>
- <th>产品名称</th>
- <th>规格</th>
- <th>厂家名称</th>
- <th>原价</th>
- <th>折扣价</th>
- <th>入库数量</th>
- <th>入库总价</th>
- <th>生产批号</th>
- <th>生产日期</th>
- <th>到期日期</th>
- <th>入库人员</th>
- <th>创建时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($list as $a)
- <tr>
- <td> {{$a['enter_code']}}</td>
- <td> {{$a['product_code']}}</td>
- <td> {{$a['product_name']}}</td>
- <td> {{$a['product_spec']}}</td>
- <td> {{$a['producer_name']}}</td>
- <td> ¥<del>{{$a['market_price']}}</del></td>
- <td> ¥{{$a['price']}}</td>
- <td> {{$a['quantity']}}</td>
- <td> ¥{{$a['price']*$a['quantity']}}</td>
- <td> {{$a['produce_batch']}}</td>
- <td> {{date('Y/m/d H:i:s',$a['produce_time'])}}</td>
- <td> {{date('Y/m/d H:i:s',$a['exp_time'])}}</td>
- <td> {{$a['admin_name']}}</td>
- <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
- <td>
- <!-- <a class="btn btn-sm btn-warning" href="{{url('admin/stock/edit?'.http_build_query(['id'=>$a['id']]))}}" title="查看">
- 编辑
- </a> -->
- </td>
- </tr>
- @endforeach
- <tr>
- <td colspan="20" class="page">{{$list->render()}}</td>
- </tr>
- <tr>
- <td colspan="20">总计 {{$list->total()}} 个产品</td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- @endsection
|