index.blade.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. <div class="page-header">
  7. <!-- <a href="{{url('admin/orders_product/add')}}" class="btn btn-primary">新增</a> -->
  8. </div>
  9. <form action="" method="get" class="form-horizontal form-line">
  10. <div class="form-group col col-md-1" style="margin-right: 2px;">
  11. <input type="text" class="form-control" name="order_code" value="{{request('order_code','')}}" placeholder="请输入订单编码查询" />
  12. </div>
  13. <div class="form-group col col-md-1" style="margin-right: 2px;">
  14. <input type="text" class="form-control" name="product_code" value="{{request('product_code','')}}" placeholder="请输入产品编码查询" />
  15. </div>
  16. <div class="form-group col col-md-1" style="margin-right: 2px;">
  17. <input type="text" class="form-control" name="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
  18. </div>
  19. <div class="form-group col col-md-1" style="margin-right: 2px;">
  20. <select name="status" class="form-control">
  21. <option value="" >产品状态</option>
  22. <option value="0" @if (request('status') === '0' ) selected="selected" @endif >已上架</option>
  23. <option value="1" @if (request('status') === '1' ) selected="selected" @endif >已下架</option>
  24. </select>
  25. </div>
  26. <div class="form-group col col-md-1" style="margin-right: 2px;">
  27. <input type="text" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入开始时间查询" />
  28. </div>
  29. <div class="form-group col col-md-1" style="margin-right: 2px;">
  30. <input type="text" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束时间查询" />
  31. </div>
  32. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  33. <a href="{{url('admin/orders_product/index')}}" class="btn btn-sm btn-default" >重置</a>
  34. </form>
  35. <div class="row">
  36. <div class="col-xs-12">
  37. <div class="table-responsive">
  38. <table class="table table-striped table-bordered table-hover">
  39. <thead>
  40. <tr>
  41. <th>订单编码</th>
  42. <th>产品编码</th>
  43. <th>产品名称</th>
  44. <th>成交价格</th>
  45. <th>出库数量</th>
  46. <th>出库人员</th>
  47. <th>创建时间</th>
  48. <th>操作</th>
  49. </tr>
  50. </thead>
  51. <tbody>
  52. @foreach ($list as $a)
  53. <tr>
  54. <td> {{$a['order_code']}}</td>
  55. <td> {{$a['product_code']}}</td>
  56. <td> {{$a['product_name']}}</td>
  57. <td> ¥{{$a['pay_total']}}</td>
  58. <td> {{$a['buy_num']}}</td>
  59. <td> {{$a['admin_name']}}</td>
  60. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  61. <td>
  62. @if( $a['status'] != 2 && check_auth('admin/stock_out/add') )
  63. <a class="btn btn-sm btn-primary" href="{{url('admin/stock_out/add?'.http_build_query(['order_code'=>$a['order_code']]))}}" title="查看">
  64. 出库
  65. </a>
  66. @endif
  67. </td>
  68. </tr>
  69. @endforeach
  70. <tr>
  71. <td colspan="20" class="page">{{$list->render()}}</td>
  72. </tr>
  73. <tr>
  74. <td colspan="20">总计 {{$list->total()}} 个产品</td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. </div>
  79. </div>
  80. </div>
  81. @endsection