| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220 |
- @extends('layouts.base')
- @section('content')
- @section('title', trans('区域分红列表'))
- <div class="right-titpos">
- <ul class="add-snav">
- <li class="active"><a href="#">区域分红列表</a></li>
- </ul>
- </div>
- <div class='panel panel-default'>
- <form action="" method="post" class="form-horizontal" id="form1">
- <div class="panel panel-info">
- <div class="panel-body">
- <div class="form-group col-xs-12 col-sm-2">
- <!--<label class="col-xs-12 col-sm-2 col-md-2 col-lg-2 control-label">会员信息</label>-->
- <!--<div class="col-xs-12 col-sm-8 col-lg-9">-->
- <input class="form-control" name="search[member]" id="" type="text"
- value="{{$search['member']}}" placeholder="会员ID/昵称/姓名/手机">
- <!--</div>-->
- </div>
- <div class="form-group col-xs-12 col-sm-2">
-
- <input class="form-control" name="search[area_name]" id="" type="text"
- value="{{$search['area_name']}}" placeholder="区域名称">
-
- </div>
- <div class="form-group col-xs-12 col-sm-3">
-
- <select name='search[area_level]' class='form-control'>
- <option value=''>区域等级</option>
- <option value='1' @if($search['area_level'] == '1') selected @endif>省</option>
- <option value='2' @if($search['area_level'] == '2') selected @endif>市</option>
- <option value='3' @if($search['area_level'] == '3') selected @endif>区/县</option>
- <option value='4' @if($search['area_level'] == '4') selected @endif>街道/乡镇</option>
- </select>
-
- </div>
- <div class="form-group col-xs-12 col-sm-2">
-
- <input class="form-control" name="search[order_sn]" id="" type="text"
- value="{{$search['order_sn']}}" placeholder="请输入订单编号">
-
- </div>
- <div class="form-group col-xs-12 col-sm-3">
-
- <select name='search[status]' class='form-control'>
- <option value=''>分红状态</option>
- <option value='0' @if($search['status'] == '0') selected @endif>未结算</option>
- <option value='1' @if($search['status'] == '1') selected @endif>已结算</option>
- <option value='-1' @if($search['status'] == '-1') selected @endif>已失效</option>
- </select>
-
- </div>
- <div class="form-group col-xs-12 col-sm-3">
- <select name='search[statistics]' class='form-control'>
- <option value='2' @if($search['statistics'] == '2') selected @endif>不统计</option>
- <option value='1' @if($search['statistics'] == '1') selected @endif>统计</option>
- </select>
- </div>
- <div class="form-group col-xs-12 col-sm-3">
- <select name='search[is_pay]' class='form-control'>
- <option value='0' @if($search['is_pay'] == '0') selected @endif>全部</option>
- <option value='1' @if($search['is_pay'] == '1') selected @endif>已支付</option>
- <option value='2' @if($search['is_pay'] == '2') selected @endif>未支付</option>
- </select>
- </div>
- @if($appointment)
- <div class="form-group col-xs-12 col-sm-3">
- <select name='search[extra_plugin_id]' class='form-control'>
- <option value='0' @if($search['extra_plugin_id'] == '0') selected @endif>全部</option>
- <option value='101' @if($search['extra_plugin_id'] == '101') selected @endif>门店预约分润</option>
- </select>
- </div>
- @endif
- <div class="form-group col-xs-12 col-sm-8">
-
- <div class="col-sm-3">
- <label class='radio-inline'>
- <input type='radio' value='0' name='search[is_time]'
- @if($search['is_time'] == '0') checked @endif>不搜索
- </label>
- <label class='radio-inline'>
- <input type='radio' value='1' name='search[is_time]'
- @if($search['is_time'] == '1') checked @endif>搜索
- </label>
- </div>
- {!! app\common\helpers\DateRange::tplFormFieldDateRange(
- 'search[time]',
- [
- 'starttime'=>$search['time']['start'],
- 'endtime'=>$search['time']['end'],
- 'start'=>$search['time']['start'],
- 'end'=>$search['time']['end']
- ],
- true
- ) !!}
- </div>
- <div class="form-group col-xs-12 col-sm-4">
-
- <input type="button" class="btn btn-success" id="export" value="导出">
- <input type="button" class="btn btn-success" id="search" value="搜索">
-
- </div>
- </div>
- </div>
- </form>
- </div>
- <div class='panel panel-default'>
- <div class='panel-heading'>
- <div @if ($search['statistics'] != 1) hidden="hidden" @endif>
- 分红统计 未结算分红:{{$statisti['unsettled']}}元 已结算分红:{{$statisti['settled']}}元 分红总金额:{{$statisti['total']}}元
- </div>
- </div>
-
- <div class='panel-body'>
- <table class="table table-hover" style="overflow:visible;">
- <thead>
- <tr>
- <th style='width:6%;'>ID</th>
- <th style='width:15%;'>分红时间</th>
- <th style='width:8%;'>区域代理</th>
- <th style='width:10%;'>姓名<br>手机</th>
- <th style='width:6%;'>区域等级</th>
- <th style='width:15%;'>代理区域</th>
- <th style='width:20%;'>订单号</th>
- <th style='width:8%;'>订单金额</th>
- <th style='width:10%;'>分红结算金额</th>
- <th style='width:8%;'>分红比例</th>
- <th style='width:10%;'>下级分红比例</th>
- <th style='width:10%;'>分红金额</th>
- <th style='width:10%;'>分红状态</th>
- </tr>
- </thead>
- <tbody>
- @foreach($list['data'] as $row)
- <tr>
- <td>{{$row['id']}}</td>
- <td>{{$row['created_at']}}</td>
- <td>
- <a target="_blank"
- href="{{yzWebUrl('member.member.detail',['id'=>$row['has_one_member']['uid']])}}">
- <img src="{{tomedia($row['has_one_member']['avatar'])}}"
- style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
- </br>
- {{$row['has_one_member']['nickname']}}
- </a>
- </td>
- <td>
- <a target="_blank"
- href="{{yzWebUrl('member.member.detail',['id'=>$row['has_one_member']['uid']])}}">
- {{$row['has_one_member']['realname']}}</br>
- {{$row['has_one_member']['mobile']}}
- </a>
- </td>
- <td>{{$row['level_name']}}</td>
- <td>{{$row['agent_area']}}</td>
- <td>
- <a target="_blank"
- href="{{yzWebUrl('order.detail.vue-index',['id' => $row['has_one_order']['id']])}}">
- {{$row['order_sn']}}
- </a>
- </td>
- <td>{{$row['order_amount']}}</td>
- <td>{{$row['amount']}}</td>
- <td>{{$row['dividend_rate']}}%</td>
- <td>{{$row['lower_level_rate']}}%</td>
- <td>
- <a href="{{yzWebUrl('plugin.area-dividend.admin.dividend.get-detail',['id'=>$row['id']])}}">
- {{$row['dividend_amount']}}
- </a>
- </td>
- <td>{{$row['status_name']}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- {!! $pager !!}
- </div>
- </div>
- <div style="width:100%;height:150px;"></div>
- <script language='javascript'>
- $(function () {
- $('#export').click(function () {
- $('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.admin.dividend.export') !!}');
- $('#form1').submit();
- });
- $('#search').click(function () {
- $('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.admin.dividend.get-list') !!}');
- $('#form1').submit();
- });
- });
- </script>
- @endsection
|