12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- @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/orders_product/add')}}" class="btn btn-primary">新增</a> -->
- </div>
- <form action="" method="get" class="form-horizontal form-line">
- <div class="form-group col col-md-1" style="margin-right: 2px;">
- <input type="text" class="form-control" name="order_code" value="{{request('order_code','')}}" placeholder="请输入订单编码查询" />
- </div>
- <div class="form-group col col-md-1" 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-md-1" 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-md-1" 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-md-1" 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-md-1" 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/orders_product/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>
- </tr>
- </thead>
- <tbody>
- @foreach ($list as $a)
- <tr>
- <td> {{$a['order_code']}}</td>
- <td> {{$a['product_code']}}</td>
- <td> {{$a['product_name']}}</td>
- <td> ¥{{$a['pay_total']}}</td>
- <td> {{$a['buy_num']}}</td>
- <td> {{$a['admin_name']}}</td>
- <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
- <td>
- @if( $a['status'] != 2 && check_auth('admin/stock_out/add') )
- <a class="btn btn-sm btn-primary" href="{{url('admin/stock_out/add?'.http_build_query(['order_code'=>$a['order_code']]))}}" title="查看">
- 出库
- </a>
- @endif
- </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
|