withdraw-list.blade.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', '提现记录')
  4. <div class="right-titpos">
  5. <ul class="add-snav">
  6. <li class="active"><a href="#">提现记录</a></li>
  7. </ul>
  8. </div>
  9. <div class='panel panel-default'>
  10. <form action="" method="post" class="form-horizontal" id="form1">
  11. <div class="panel panel-info">
  12. <div class="panel-body">
  13. <div class="form-group col-xs-12 col-sm-3">
  14. <input class="form-control" name="search[order_sn]" type="text"
  15. value="{{$search['order_sn']}}" placeholder="提现单号">
  16. </div>
  17. <div class="form-group col-xs-12 col-sm-3">
  18. <input class="form-control" name="search[member_id]" type="text"
  19. value="{{$search['member_id']}}" placeholder="请输入会员ID">
  20. </div>
  21. <div class="form-group col-xs-12 col-sm-3">
  22. <input class="form-control" name="search[member]" type="text"
  23. value="{{$search['member']}}" placeholder="请输入会员昵称/姓名/手机号">
  24. </div>
  25. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2">
  26. <div class="">
  27. <select name="search[status]" class="form-control">
  28. <option value="">提现状态</option>
  29. <option value="0" @if (isset($search['status']) && $search['status'] == 0) selected @endif >处理中</option>
  30. <option value="1" @if ($search['status'] == 1) selected @endif>成功</option>
  31. <option value="-1" @if ($search['status'] == -1) selected @endif>失败</option>
  32. </select>
  33. </div>
  34. </div>
  35. <div class="form-group col-xs-12 col-sm-8">
  36. <div class="col-sm-2">
  37. <label class='radio-inline'>
  38. <input type='checkbox' value='1' name='search[is_time]'
  39. @if($search['is_time'] == '1') checked @endif>时间搜索
  40. </label>
  41. </div>
  42. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  43. 'starttime'=>$search['time']['start'],
  44. 'endtime'=>$search['time']['end'],
  45. 'start'=>$search['time']['start'],
  46. 'end'=>$search['time']['end']
  47. ], true) !!}
  48. </div>
  49. <div class="form-group col-xs-12 col-sm-7 col-lg-4">
  50. <div class="">
  51. <button type="button" id="search" class="btn btn-success "><i class="fa fa-search"></i>搜索</button>
  52. {{--<button type="button" id="export" class="btn btn-info">导出 Excel</button>--}}
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </form>
  58. </div>
  59. <div class='panel panel-default'>
  60. <div class='panel panel-heading'>
  61. <!-- <a class="btn btn-info" style="color: white" href="#"></a> -->
  62. <span>总数:{{$list->total()}}</span>
  63. </div>
  64. <div class='panel panel-body'>
  65. <table class="table table-hover" style="overflow:visible;">
  66. <thead>
  67. <tr>
  68. <th style='width:3%;text-align: center;'>ID</th>
  69. <th style='width:6%;text-align: center;'>创建时间</th>
  70. <th style='width:8%;text-align: center;'>提现单号</th>
  71. <th style='width:8%;text-align: center;'>请求号</th>
  72. <th style='width:3%;text-align: center;'>会员</th>
  73. <th style='width:4%;text-align: center;'>提现金额(元)</th>
  74. <th style='width:4%;text-align: center;'>状态</th>
  75. <th style='width:8%;text-align: center;'>信息描述</th>
  76. <th style='width:3%;text-align: center;'>操作</th>
  77. </tr>
  78. </thead>
  79. <tbody>
  80. @foreach($list as $row)
  81. <tr>
  82. <td style="text-align: center;">{{$row->id}}</td>
  83. <td style="text-align: center;">{{$row->created_at}}</td>
  84. <td style="text-align: center;">{{$row->withdraw_sn}}</td>
  85. <td style="text-align: center;">{{$row->merchantOrderNo}}</td>
  86. <td style="text-align: center;">
  87. <img src='{{$row->hasOneMember->avatar}}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc' />
  88. <br/>
  89. <a href="{!! yzWebUrl('member.member.detail',['id' => $row->hasOneMember->uid])!!}">@if ($row->hasOneMember->nickname) {{$row->hasOneMember->nickname}} @else {{$row->hasOneMember->mobile}} @endif</a>
  90. </td>
  91. <td style="text-align: center;">{{$row->paidAmount}}</td>
  92. <td style="text-align: center;">{{$row->status_name}}</td>
  93. <td style="white-space: normal;word-break:break-all">{{$row->desc}}</td>
  94. <td style="text-align: center;overflow:visible;">
  95. @if ($row->status == '0')
  96. <a title="跟新提现状态" class='btn btn-primary btn-sm' href="{{yzWebUrl('plugin.converge_pay.admin.withdraw.select-log',['id'=>$row['id']])}}"
  97. style="margin-bottom:5px;">查询跟新</a>
  98. @endif
  99. </td>
  100. </tr>
  101. @endforeach
  102. </tbody>
  103. </table>
  104. {!! $pager !!}
  105. </div>
  106. </div>
  107. <script language="javascript">
  108. $(function () {
  109. $('#export').click(function () {
  110. $('#form1').attr('action', '{!! yzWebUrl('plugin.converge_pay.admin.withdraw.export') !!}');
  111. $('#form1').submit();
  112. });
  113. $('#search').click(function () {
  114. $('#form1').attr('action', '{!! yzWebUrl('plugin.converge_pay.admin.withdraw.index') !!}');
  115. $('#form1').submit();
  116. });
  117. });
  118. </script>
  119. @endsection