dividend-list.blade.php 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. @extends('layouts.base')
  2. @section('content')
  3. @section('title', trans('区域分红列表'))
  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-2">
  14. <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">会员信息</label>-->
  15. <!--<div class="col-xs-12 col-sm-8 col-lg-9">-->
  16. <input class="form-control" name="search[member]" id="" type="text"
  17. value="{{$search['member']}}" placeholder="会员ID/昵称/姓名/手机">
  18. <!--</div>-->
  19. </div>
  20. <div class="form-group col-xs-12 col-sm-2">
  21. <input class="form-control" name="search[area_name]" id="" type="text"
  22. value="{{$search['area_name']}}" placeholder="区域名称">
  23. </div>
  24. <div class="form-group col-xs-12 col-sm-3">
  25. <select name='search[area_level]' class='form-control'>
  26. <option value=''>区域等级</option>
  27. <option value='1' @if($search['area_level'] == '1') selected @endif>省</option>
  28. <option value='2' @if($search['area_level'] == '2') selected @endif>市</option>
  29. <option value='3' @if($search['area_level'] == '3') selected @endif>区/县</option>
  30. <option value='4' @if($search['area_level'] == '4') selected @endif>街道/乡镇</option>
  31. </select>
  32. </div>
  33. <div class="form-group col-xs-12 col-sm-2">
  34. <input class="form-control" name="search[order_sn]" id="" type="text"
  35. value="{{$search['order_sn']}}" placeholder="请输入订单编号">
  36. </div>
  37. <div class="form-group col-xs-12 col-sm-3">
  38. <select name='search[status]' class='form-control'>
  39. <option value=''>分红状态</option>
  40. <option value='0' @if($search['status'] == '0') selected @endif>未结算</option>
  41. <option value='1' @if($search['status'] == '1') selected @endif>已结算</option>
  42. <option value='-1' @if($search['status'] == '-1') selected @endif>已失效</option>
  43. </select>
  44. </div>
  45. <div class="form-group col-xs-12 col-sm-3">
  46. <select name='search[statistics]' class='form-control'>
  47. <option value='2' @if($search['statistics'] == '2') selected @endif>不统计</option>
  48. <option value='1' @if($search['statistics'] == '1') selected @endif>统计</option>
  49. </select>
  50. </div>
  51. <div class="form-group col-xs-12 col-sm-3">
  52. <select name='search[is_pay]' class='form-control'>
  53. <option value='0' @if($search['is_pay'] == '0') selected @endif>全部</option>
  54. <option value='1' @if($search['is_pay'] == '1') selected @endif>已支付</option>
  55. <option value='2' @if($search['is_pay'] == '2') selected @endif>未支付</option>
  56. </select>
  57. </div>
  58. @if($appointment)
  59. <div class="form-group col-xs-12 col-sm-3">
  60. <select name='search[extra_plugin_id]' class='form-control'>
  61. <option value='0' @if($search['extra_plugin_id'] == '0') selected @endif>全部</option>
  62. <option value='101' @if($search['extra_plugin_id'] == '101') selected @endif>门店预约分润</option>
  63. </select>
  64. </div>
  65. @endif
  66. <div class="form-group col-xs-12 col-sm-8">
  67. <div class="col-sm-3">
  68. <label class='radio-inline'>
  69. <input type='radio' value='0' name='search[is_time]'
  70. @if($search['is_time'] == '0') checked @endif>不搜索
  71. </label>
  72. <label class='radio-inline'>
  73. <input type='radio' value='1' name='search[is_time]'
  74. @if($search['is_time'] == '1') checked @endif>搜索
  75. </label>
  76. </div>
  77. {!! app\common\helpers\DateRange::tplFormFieldDateRange(
  78. 'search[time]',
  79. [
  80. 'starttime'=>$search['time']['start'],
  81. 'endtime'=>$search['time']['end'],
  82. 'start'=>$search['time']['start'],
  83. 'end'=>$search['time']['end']
  84. ],
  85. true
  86. ) !!}
  87. </div>
  88. <div class="form-group col-xs-12 col-sm-4">
  89. <input type="button" class="btn btn-success" id="export" value="导出">
  90. <input type="button" class="btn btn-success" id="search" value="搜索">
  91. </div>
  92. </div>
  93. </div>
  94. </form>
  95. </div>
  96. <div class='panel panel-default'>
  97. <div class='panel-heading'>
  98. <div @if ($search['statistics'] != 1) hidden="hidden" @endif>
  99. 分红统计 未结算分红:{{$statisti['unsettled']}}元 已结算分红:{{$statisti['settled']}}元 分红总金额:{{$statisti['total']}}元
  100. </div>
  101. </div>
  102. <div class='panel-body'>
  103. <table class="table table-hover" style="overflow:visible;">
  104. <thead>
  105. <tr>
  106. <th style='width:6%;'>ID</th>
  107. <th style='width:15%;'>分红时间</th>
  108. <th style='width:8%;'>区域代理</th>
  109. <th style='width:10%;'>姓名<br>手机</th>
  110. <th style='width:6%;'>区域等级</th>
  111. <th style='width:15%;'>代理区域</th>
  112. <th style='width:20%;'>订单号</th>
  113. <th style='width:8%;'>订单金额</th>
  114. <th style='width:10%;'>分红结算金额</th>
  115. <th style='width:8%;'>分红比例</th>
  116. <th style='width:10%;'>下级分红比例</th>
  117. <th style='width:10%;'>分红金额</th>
  118. <th style='width:10%;'>分红状态</th>
  119. </tr>
  120. </thead>
  121. <tbody>
  122. @foreach($list['data'] as $row)
  123. <tr>
  124. <td>{{$row['id']}}</td>
  125. <td>{{$row['created_at']}}</td>
  126. <td>
  127. <a target="_blank"
  128. href="{{yzWebUrl('member.member.detail',['id'=>$row['has_one_member']['uid']])}}">
  129. <img src="{{tomedia($row['has_one_member']['avatar'])}}"
  130. style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
  131. </br>
  132. {{$row['has_one_member']['nickname']}}
  133. </a>
  134. </td>
  135. <td>
  136. <a target="_blank"
  137. href="{{yzWebUrl('member.member.detail',['id'=>$row['has_one_member']['uid']])}}">
  138. {{$row['has_one_member']['realname']}}</br>
  139. {{$row['has_one_member']['mobile']}}
  140. </a>
  141. </td>
  142. <td>{{$row['level_name']}}</td>
  143. <td>{{$row['agent_area']}}</td>
  144. <td>
  145. <a target="_blank"
  146. href="{{yzWebUrl('order.detail.vue-index',['id' => $row['has_one_order']['id']])}}">
  147. {{$row['order_sn']}}
  148. </a>
  149. </td>
  150. <td>{{$row['order_amount']}}</td>
  151. <td>{{$row['amount']}}</td>
  152. <td>{{$row['dividend_rate']}}%</td>
  153. <td>{{$row['lower_level_rate']}}%</td>
  154. <td>
  155. <a href="{{yzWebUrl('plugin.area-dividend.admin.dividend.get-detail',['id'=>$row['id']])}}">
  156. {{$row['dividend_amount']}}
  157. </a>
  158. </td>
  159. <td>{{$row['status_name']}}</td>
  160. </tr>
  161. @endforeach
  162. </tbody>
  163. </table>
  164. {!! $pager !!}
  165. </div>
  166. </div>
  167. <div style="width:100%;height:150px;"></div>
  168. <script language='javascript'>
  169. $(function () {
  170. $('#export').click(function () {
  171. $('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.admin.dividend.export') !!}');
  172. $('#form1').submit();
  173. });
  174. $('#search').click(function () {
  175. $('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.admin.dividend.get-list') !!}');
  176. $('#form1').submit();
  177. });
  178. });
  179. </script>
  180. @endsection