176 lines
8.7 KiB
PHP
176 lines
8.7 KiB
PHP
@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">
|
|
<input class="form-control" name="search[member_id]" id="" type="text"
|
|
value="{{$search['member_id']}}" placeholder="会员ID">
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-2">
|
|
<input class="form-control" name="search[parent_id]" id="" type="text"
|
|
value="{{$search['parent_id']}}" placeholder="上级会员ID">
|
|
</div>
|
|
<div class="form-group col-xs-12 col-sm-2">
|
|
<input class="form-control" name="search[goods_id]" id="" type="text"
|
|
value="{{$search['goods_id']}}" placeholder="商品ID">
|
|
</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-2">
|
|
|
|
<select name='search[order_status]' class='form-control'>
|
|
<option value=''>订单状态</option>
|
|
<option value="0" @if($search['order_status'] === '0') selected @endif>待付款</option>
|
|
<option value="1" @if($search['order_status'] == '1') selected @endif>待发货</option>
|
|
<option value="2" @if($search['order_status'] == '2') selected @endif>待收货</option>
|
|
<option value="3" @if($search['order_status'] == '3') selected @endif>已完成</option>
|
|
<option value="-1" @if($search['order_status'] == '-1') selected @endif>已关闭</option>
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-2">
|
|
<select name='search[unique_order]' class='form-control'>
|
|
<option value='0' @if(empty($search['unique_order'])) selected @endif>不排除重复订单</option>
|
|
<option value="1" @if($search['unique_order'] === '1') selected @endif>排除重复订单</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="form-group col-xs-12 col-sm-6">
|
|
<div class="col-sm-3">
|
|
<select name='search[time_field]' class='form-control'>
|
|
<option value=''>不搜索时间</option>
|
|
<option value="create_time" @if($search['time_field'] === 'create_time') selected @endif>创建时间</option>
|
|
<option value="pay_time" @if($search['time_field'] == 'pay_time') selected @endif>支付时间</option>
|
|
<option value="send_time" @if($search['time_field'] == 'send_time') selected @endif>发货时间</option>
|
|
<option value="finish_time" @if($search['time_field'] == 'finish_time') selected @endif>完成时间</option>
|
|
<option value="cancel_time" @if($search['time_field'] == 'cancel_time') selected @endif>关闭时间</option>
|
|
</select>
|
|
</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-2">
|
|
<input type="button" class="btn btn-success pull-right" id="search" value="搜索">
|
|
</div>
|
|
<div class="form-group col-xs-12 col-sm-2">
|
|
<input type="button" class="btn btn-primary" id="export" value="导出">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class='panel panel-default'>
|
|
<div class="panel-heading">
|
|
<span>订单总金额:{{ $orderAmount }}</span>
|
|
</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:6%;'>会员ID</th>
|
|
<th style='width:8%;'>会员</th>
|
|
<th style='width:20%;'>订单号</th>
|
|
<th style='width:15%;'>商品</th>
|
|
<th style='width:8%;'>订单金额</th>
|
|
<th style='width:8%;'>订单状态</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list['data'] as $row)
|
|
<tr>
|
|
<td>{{$row['id']}}</td>
|
|
<td>{{$row['created_at']}}</td>
|
|
<td>{{$row['uid']}}</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('order.list',['search'=>['ambiguous'=>['field'=>'order']],'order_sn'=> $row['order_sn']])}}">
|
|
{{$row['has_one_order']['order_sn']}}
|
|
</a>
|
|
</td>
|
|
<td>
|
|
<a target="_blank" href="{{yzWebUrl('goods.goods.edit',['id'=>$row['goods_id']])}}">
|
|
<img src="{{tomedia($row['thumb'])}}"
|
|
style="width: 30px; height: 30px;border:1px solid #ccc;padding:1px;">
|
|
</br>
|
|
{{$row['goods_title']}}
|
|
</a>
|
|
</td>
|
|
<td>{{$row['has_one_order']['price']}}</td>
|
|
@switch($row['has_one_order']['status'])
|
|
@case(-1)
|
|
<td>已关闭</td>
|
|
@break
|
|
@case(0)
|
|
<td>待支付</td>
|
|
@break
|
|
@case(1)
|
|
<td>待发货</td>
|
|
@break
|
|
@case(2)
|
|
<td>待收货</td>
|
|
@break
|
|
@case(3)
|
|
<td>已完成</td>
|
|
@break
|
|
@case(11)
|
|
<td>已退款</td>
|
|
@break
|
|
@endswitch
|
|
</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.team-dividend.admin.statistics.export') !!}');
|
|
$('#form1').submit();
|
|
});
|
|
$('#search').click(function () {
|
|
$('#form1').attr('action', '{!! yzWebUrl('plugin.team-dividend.admin.statistics.index') !!}');
|
|
$('#form1').submit();
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |