index.blade.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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/stock/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-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  11. <input type="text" class="form-control" name="product_code" value="{{request('product_code','')}}" placeholder="请输入产品编码查询" />
  12. </div>
  13. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  14. <input type="text" class="form-control" name="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
  15. </div>
  16. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  17. <select name="status" class="form-control">
  18. <option value="" >产品状态</option>
  19. <option value="0" @if (request('status') === '0' ) selected="selected" @endif >已上架</option>
  20. <option value="1" @if (request('status') === '1' ) selected="selected" @endif >已下架</option>
  21. </select>
  22. </div>
  23. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  24. <input type="text" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入开始时间查询" />
  25. </div>
  26. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  27. <input type="text" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束时间查询" />
  28. </div>
  29. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  30. <a href="{{url('admin/stock/index')}}" class="btn btn-sm btn-default" >重置</a>
  31. </form>
  32. <div class="row">
  33. <div class="col-xs-12">
  34. <div class="table-responsive">
  35. <table class="table table-striped table-bordered table-hover">
  36. <thead>
  37. <tr>
  38. <th>入库编码</th>
  39. <th>产品编码</th>
  40. <th>产品名称</th>
  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. <th>到期日期</th>
  50. <th>入库人员</th>
  51. <th>创建时间</th>
  52. <th>操作</th>
  53. </tr>
  54. </thead>
  55. <tbody>
  56. @foreach ($list as $a)
  57. <tr>
  58. <td> {{$a['enter_code']}}</td>
  59. <td> {{$a['product_code']}}</td>
  60. <td> {{$a['product_name']}}</td>
  61. <td> {{$a['product_spec']}}</td>
  62. <td> {{$a['producer_name']}}</td>
  63. <td> ¥<del>{{$a['market_price']}}</del></td>
  64. <td> ¥{{$a['price']}}</td>
  65. <td> {{$a['quantity']}}</td>
  66. <td> ¥{{$a['price']*$a['quantity']}}</td>
  67. <td> {{$a['produce_batch']}}</td>
  68. <td> {{date('Y/m/d H:i:s',$a['produce_time'])}}</td>
  69. <td> {{date('Y/m/d H:i:s',$a['exp_time'])}}</td>
  70. <td> {{$a['admin_name']}}</td>
  71. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  72. <td>
  73. <!-- <a class="btn btn-sm btn-warning" href="{{url('admin/stock/edit?'.http_build_query(['id'=>$a['id']]))}}" title="查看">
  74. 编辑
  75. </a> -->
  76. </td>
  77. </tr>
  78. @endforeach
  79. <tr>
  80. <td colspan="20" class="page">{{$list->render()}}</td>
  81. </tr>
  82. <tr>
  83. <td colspan="20">总计 {{$list->total()}} 个产品</td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. @endsection