171 lines
7.3 KiB
PHP
171 lines
7.3 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[name]" id="" type="text"--}}
|
|
{{--value="{{$search['name']}}" placeholder="店铺名称">--}}
|
|
{{--</div>--}}
|
|
|
|
<div class="form-group col-xs-6 col-sm-2">
|
|
|
|
<select name='search[plugin_id]' class='form-control'>
|
|
<option value=''>订单类型</option>
|
|
<option value='0' @if($search['plugin_id'] == '0') selected @endif>自营</option>
|
|
<option value='1' @if($search['plugin_id'] == '1') selected @endif>供应商</option>
|
|
<option value='32' @if($search['plugin_id'] == '32') selected @endif>门店</option>
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="form-group col-xs-6 col-sm-2">
|
|
|
|
<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">
|
|
<label class="col-xs-12 col-sm-3 col-md-2 control-label">区域</label>
|
|
<div class="col-xs-6">
|
|
<input type="hidden" id="province_id" value="{{ $search['province_id']?:0 }}"/>
|
|
<input type="hidden" id="city_id" value="{{ $search['city_id']?:0 }}"/>
|
|
<input type="hidden" id="district_id" value="{{ $search['district_id']?:0 }}"/>
|
|
<input type="hidden" id="street_id" value="{{ $search['street_id']?:0 }}"/>
|
|
{!! app\common\helpers\AddressHelper::tplLinkedAddress(['search[province_id]','search[city_id]','search[district_id]','search[street_id]'], [])!!}
|
|
</div>
|
|
</div>
|
|
|
|
<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(empty($search['is_time']) || $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['total']}} 总金额:{{$statisti['amount']}}元
|
|
</div>
|
|
</div>
|
|
|
|
<div class='panel-body'>
|
|
<table class="table table-hover" style="overflow:visible;">
|
|
<thead>
|
|
<tr>
|
|
<th style='width:10%;'>时间</th>
|
|
<th style='width:12%;'>订单号</th>
|
|
<th style='width:12%;'>收货人<br/>手机号码</th>
|
|
<th style='width:15%;'>订单地址</th>
|
|
<th style='width:6%;'>订单类型</th>
|
|
<th style='width:6%;'>店铺名称</th>
|
|
<th style='width:8%;'>订单金额(元)</th>
|
|
<th style='width:10%;'>区域代理结算金额</th>
|
|
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach($list['data'] as $row)
|
|
<tr>
|
|
{{--<td>{{$row['id']}}</td>--}}
|
|
<td>{{ date('Y-m-d H:i:s', $row['created_at'])}}</td>
|
|
<td>{{$row['order_sn']}}</td>
|
|
<td>{{$row['address']['realname']}}<br/>{{$row['address']['mobile']}}</td>
|
|
<td>
|
|
{{$row['address']['address']}}
|
|
</td>
|
|
<td>{{$row['plugin_name']}}</td>
|
|
<td>
|
|
@if ($row['plugin_id'] == 32)
|
|
{{$row['has_one_store_order']['has_one_store']['store_name']}}
|
|
@elseif($row['plugin_id'] == 31)
|
|
{{$row['has_one_cashier_order']['has_one_store']['store_name']}}
|
|
@elseif($row['is_plugin'] == 1)
|
|
{{$row['has_one_supplier_order']['beLongs_to_supplier']['realname']}}
|
|
@else
|
|
自营
|
|
@endif
|
|
|
|
</td>
|
|
<td>{{$row['price']}}</td>
|
|
<td>
|
|
@if ($row['has_one_area_dividend'])
|
|
{{$row['has_one_area_dividend']['amount']}}
|
|
@else
|
|
无分红
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
{!! $pager !!}
|
|
</div>
|
|
</div>
|
|
<div style="width:100%;height:150px;"></div>
|
|
<script type="text/javascript" src="{{static_url('js/area/cascade_street.js')}}"></script>
|
|
<script language='javascript'>
|
|
var province_id = $('#province_id').val();
|
|
var city_id = $('#city_id').val();
|
|
var district_id = $('#district_id').val();
|
|
var street_id = $('#street_id').val();
|
|
cascdeInit(province_id, city_id, district_id, street_id);
|
|
$(function () {
|
|
$('#export').click(function () {
|
|
$('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.area.area-order.export') !!}');
|
|
$('#form1').submit();
|
|
});
|
|
$('#search').click(function () {
|
|
$('#form1').attr('action', '{!! yzWebUrl('plugin.area-dividend.area.area-order.index') !!}');
|
|
$('#form1').submit();
|
|
});
|
|
});
|
|
</script>
|
|
@endsection |