index.blade.php 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @extends('layouts.app')
  2. @section('title')查询-入库管理@endsection
  3. @section('content')
  4. <span id="nav2">
  5. @component('store.menu')@endcomponent
  6. @component('store.fast.menu')@endcomponent
  7. </span>
  8. <div class="d-none" id="fast">
  9. <div class="container-fluid">
  10. <table class="table table-striped table-sm text-nowrap table-hover td-min-width-80" id="table">
  11. <tr v-for="(store,i) in stores" @click="selectTr===i+1?selectTr=0:selectTr=i+1" :class="selectTr===i+1?'focusing' : ''">
  12. <td>
  13. <input class="checkItem" type="checkbox" :value="store.id">
  14. </td>
  15. <td><span>@{{ i+1 }}</span></td>
  16. <td class="text-muted"><span>@{{store.asn_code}}</span></td>
  17. <td><span>@{{store.warehouse.name}}</span></td>
  18. <td class="text-muted"><span>@{{store.owner.name}}</span></td>
  19. <td class="text-muted"><span>@{{store.stored_method}}</span></td>
  20. <td class="text-muted"><span>@{{store.status}}</span></td>
  21. <td><span>@{{store.remark}}</span></td>
  22. <td class="text-muted"><span>@{{store.created_at}}</span></td>
  23. </tr>
  24. </table>
  25. <div class="text-info h5 btn btn">{{$stores->count()}}/{{$stores->total()}}</div>
  26. {{$stores->links()}}
  27. </div>
  28. </div>
  29. @endsection
  30. @section('lastScript')
  31. <script type="text/javascript" src="{{mix('js/queryForm/header.js')}}"></script>{{--新版2--}}
  32. <script>
  33. let vue = new Vue({
  34. el:'#fast',
  35. data:{
  36. stores:[
  37. @foreach($stores as $store)
  38. {!! $store !!},
  39. @endforeach
  40. ],
  41. selectTr:''
  42. },
  43. mounted:function(){
  44. $('#fast').removeClass('d-none');
  45. let column = [
  46. {name:'cloneCheckAll',customization:true,type:'checkAll',column:'id',
  47. dom:$('#cloneCheckAll').removeClass('d-none'), neglect: true},
  48. {name:'index',value: '序号', neglect: true},
  49. {name:'asn_code',value: 'ASN编号'},
  50. {name:'warehouse_name',value: '仓库'},
  51. {name:'owner_name',value: '货主'},
  52. {name:'stored_method',value: '入库类型'},
  53. {name:'status',value: '状态'},
  54. {name:'remark',value: '备注'},
  55. {name:'created_at',value: '生成时间'},
  56. ];
  57. new Header({
  58. el: "table",
  59. name: "storeFast",
  60. column: column,
  61. data: this.stores,
  62. }).init();
  63. }
  64. });
  65. </script>
  66. @endsection