index.blade.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <form action="" method="get" class="form-horizontal form-line" name="thisform">
  7. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  8. <input type="text" class="form-control" name="code" value="{{request('code','')}}" placeholder="请输入活动编码" />
  9. </div>
  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="name" value="{{request('name','')}}" 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. <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
  18. </div>
  19. <div class="form-group col col-lg-2 col-md-4 col-sm-6 col-xs-12" style="margin-right: 2px;">
  20. <input type="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
  21. </div>
  22. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  23. <a href="{{url('admin/regiment_record/index')}}" class="btn btn-sm btn-default" >重置</a>
  24. @if( check_auth('admin/regiment_record/down_excel') )
  25. <button type="button" onclick="alter_from_attr({'method':'get','action':`{{url('admin/regiment_record/down_excel')}}`})" class="btn btn-sm btn-primary"> 下载</button>
  26. @endif
  27. </form>
  28. <div class="row">
  29. <div class="col-xs-12">
  30. <div class="table-responsive">
  31. <table class="table table-striped table-bordered table-hover">
  32. <thead>
  33. <tr>
  34. <th>拼团记录ID</th>
  35. <th>团单ID</th>
  36. <th>订单编码</th>
  37. <th>客户昵称/编码</th>
  38. <th>参与活动/活动编码</th>
  39. <th>产品名称/产品编码</th>
  40. <th>发起客户昵称/发起客户编码</th>
  41. <th>店铺</th>
  42. <th>拼团状态</th>
  43. <th>订单生成时间</th>
  44. </tr>
  45. </thead>
  46. <tbody>
  47. @foreach ($list as $a)
  48. <tr>
  49. <th>{{$a['id']}}</th>
  50. <th>{{$a['regiment_id']}}</th>
  51. <th>{{$a['order_code']}}</th>
  52. <th>{{$a['username']}}<br/>{{$a['custom_code']}}</th>
  53. <td>{{$a['active_name']}}<br/>{{$a['active_code']}}</td>
  54. <td style="white-space:pre">{{$a['product_name']}}<br/>{{$a['product_code']}}</td>
  55. <td>{{$a['regiment_username']}}<br/>{{$a['regiment_uid_code']}}</td>
  56. <td>{{$a['business_name']}}</td>
  57. <td>
  58. @if( $a['status'] == 0 )
  59. 拼团中
  60. @endif
  61. @if( $a['status'] == 1 )
  62. 取消拼团
  63. @endif
  64. @if( $a['status'] == 2 )
  65. 拼团成功
  66. @endif
  67. @if( $a['status'] == 3 )
  68. 拼团失败
  69. @endif
  70. @if( $a['status'] == 4 )
  71. 拼团待支付
  72. @endif
  73. </td>
  74. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  75. </tr>
  76. @endforeach
  77. <tr>
  78. <td colspan="20" class="page">{{$list->render()}}</td>
  79. </tr>
  80. <tr>
  81. <td colspan="20">总计 {{$list->total()}} 个记录</td>
  82. </tr>
  83. </tbody>
  84. </table>
  85. </div>
  86. </div>
  87. </div>
  88. @endsection
  89. @section('javascript')
  90. <script src="/static/fileupload/jquery.ui.widget.js"></script>
  91. <script src="/static/fileupload/jquery.fileupload.js"></script>
  92. <script type="text/javascript">
  93. $(function(){
  94. $('.upload').on('click', function() {
  95. $('#form-upload').remove();
  96. $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input osctype="btn_upload_file" type="file" name="order_file" multiple="multiple" /></form>');
  97. $('#form-upload input[name=\'clockin_record_file\']').trigger('click');
  98. $('[osctype="btn_upload_file"]').fileupload({
  99. dataType: 'json',
  100. url: "{{url('admin/custom_clockin_record/import_execl')}}",
  101. singleFileUploads: false,
  102. beforeSend: function() {
  103. art.dialog({
  104. id: 'loading',
  105. lock: true,
  106. title: '文件上传中'
  107. });
  108. },
  109. done: function(e, data) {
  110. art.dialog.list['loading'].close();
  111. var result = data.result;
  112. if (result.code == 'error') {
  113. art.dialog({
  114. content: result.msg,
  115. lock: true,
  116. ok: function() {}
  117. });
  118. }
  119. if (result.code == 'success') {
  120. art.dialog({
  121. content: result.msg,
  122. lock: true,
  123. ok: function() {
  124. location.reload();
  125. }
  126. });
  127. }
  128. },
  129. fail: function(e,c) {
  130. art.dialog.list['loading'].close();
  131. art.dialog({
  132. content: '<p>'+c.jqXHR.status+'=>'+c.jqXHR.statusText+'</p>',
  133. lock: true,
  134. ok: function() {}
  135. });
  136. }
  137. });
  138. });
  139. })
  140. </script>
  141. @endsection