0
0

更新代码

This commit is contained in:
2020-08-04 10:09:42 +08:00
parent 6118b5b63b
commit c2ac5d964e
478 changed files with 34410 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
<div class="pageHeader">
<form id="searchForm_{{ uniqid() }}" rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
<div class="searchBar">
<table class="searchContent">
<tr>
<td>
发货开始时间:
<input type="text" name="start" value="{{ $start }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="00:00:00" readonly="true">
</td>
<td>
发货结束时间:
<input type="text" name="end" value="{{ $end }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</td>
@if(Admin::id() == 1)
<td>
所属商户:
<select name="seller_id">
<option value="">全部商户</option>
@foreach ($sellers as $seller)
<option value="{{ $seller['id'] }}" @if($seller['id'] == Request::get('seller_id')) selected @endif>{{ $seller['name'] }}</option>
@endforeach
</select>
</td>
@endif
<input name="type" type="hidden" value="PAID|DELIVERED">
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
<td><div class="buttonActive"><div class="buttonContent"><button type="button" class="export-data">导出数据</button></div></div></td>
</tr>
</table>
</div>
</form>
</div>
<div class="pageContent">
<table class="table" width="100%" layoutH="112">
<thead>
<tr>
<th width="250">已发货商品信息</th>
<th width="150">已发货商品总数</th>
<th width="150">支付现金总额</th>
<th width="150">消耗积分总额</th>
<th width="150">结算成本总额</th>
<th width="150">操作</th>
</tr>
</thead>
<tbody>
@foreach ($details as $detail)
<tr>
<td>{{ \App\Models\GoodsParams::find($detail->item_id)->getTitle() }}</td>
<td>{{ $detail->number_sum }}</td>
<td>{{ $detail->price_sum }}</td>
<td>{{ $detail->score_sum }}</td>
<td>{{ $detail->seller_price_sum }}</td>
<td>
<a title="订单明细" target="navTab" rel="ordershow" href="{{ route('Admin.orderData.order', ['item_id'=>$detail->item_id,'start'=>$start,'end'=>$end,'type'=>'PAID|DELIVERED']) }}">
订单明细
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" order="{{ $details->currentPage() }}" />
<input type="hidden" name="numPerPage" order="{{ $details->perPage() }}" />
<input type="hidden" name="orderField" order="{{ Request::input('orderField') }}" />
<input type="hidden" name="orderDirection" order="{{ Request::input('orderDirection') }}" />
</form>
<div class="pages">
<span>显示</span>
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.order})">
<option @if ($details->perPage() == 30) selected @endif value="30">30</option>
<option @if ($details->perPage() == 100) selected @endif value="100">100</option>
<option @if ($details->perPage() == 200) selected @endif value="200">200</option>
</select>
<span>条,共 {{ $details->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $details->total() }}" numPerPage="{{ $details->perPage() }}" pageNumShown="10" currentPage="{{ $details->currentPage() }}"></div>
</div>
</div>
<script type="text/javascript">
//点击导出
$('.export-data').click(function (event) {
location.href = "{{ route('Admin.export.report') }}?" + $(this).parents('form').serialize();
});
</script>

View File

@@ -0,0 +1,191 @@
<div class="pageHeader">
<form id="searchForm_{{ uniqid() }}" rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
<div class="searchBar">
<table class="searchContent">
<tr>
<td>
订单编号:
<input type="text" name="orderid" value="{{ Request::input('orderid') }}"/>
</td>
<td>
商品名称:
<input type="text" name="title" value="{{ Request::input('title') }}"/>
</td>
<td>
买家手机号:
<input type="text" name="mobile" value="{{ Request::input('mobile') }}"/>
</td>
<td>
买家昵称:
<input type="text" name="nickname" value="{{ Request::input('nickname') }}"/>
</td>
<input name="type" type="hidden" value="{{ $type }}">
<input name="seller_id" type="hidden" value="{{ Request::get('seller_id') }}">
</tr>
<tr>
<td>
开始时间:
<input type="text" name="start" value="{{ Request::get('start') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="00:00:00" readonly="true">
</td>
<td>
结束时间:
<input type="text" name="end" value="{{ Request::get('end') }}" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</td>
<td>
<select class="combox" name="item_type">
<option value="">订单类型</option>
<option value="GOODS" @if(Request::get('item_type') == 'GOODS') selected @endif>商品订单</option>
<option value="VIP_GIFT" @if(Request::get('item_type') == 'VIP_GIFT') selected @endif>会员赠品</option>
<option value="FULL_GIFT" @if(Request::get('item_type') == 'FULL_GIFT') selected @endif>满仓赠品</option>
<option value="ACTIVITY_GIFT" @if(Request::get('item_type') == 'ACTIVITY_GIFT') selected @endif>活动赠品</option>
</select>
</td>
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
<td><div class="buttonActive"><div class="buttonContent"><button type="button" class="export-data">导出数据</button></div></div></td>
</tr>
</table>
</div>
</form>
</div>
<div class="pageContent">
<table class="table" width="100%" layoutH="112">
<thead>
<tr>
<th width="200">订单编号</th>
<th width="200">商品信息</th>
<th width="60">商品数量</th>
<th width="60">商品总额</th>
<th width="60">商品积分</th>
<th width="60">订单金额</th>
<th width="60">订单运费</th>
<th width="60">积分抵扣</th>
<th width="60">总计支付</th>
<th width="60">总成本</th>
<th width="60">结算运费</th>
<th width="60">商家结算</th>
<th width="60">配送</th>
<th width="120">收件地址</th>
<th width="60">状态</th>
@if($type == 'DELIVERED|SIGNED')
<th width="100">发货时间</th>
<th width="100">签收时间</th>
@endif
@if($type == 'PAID|DELIVERED')
<th width="100">支付时间</th>
<th width="100">发货时间</th>
@endif
</tr>
</thead>
<tbody>
@php
$orderids = array();
@endphp
@foreach ($orders as $order)
@foreach($order->details as $detail)
<tr target="sid" rel="{{ $order->id }}">
@if(!in_array($order->id, $orderids))
<td>@switch($order->item_type)
@case('GOODS')
<span style="font-size: .6rem;padding: 0 .2rem;border:.05rem solid #39a6ad;color: #39a6ad;line-height: .9rem;margin-top: .05rem;border-radius: .2rem;margin-right: .05rem">商品</span>
@break
@case('FULL_GIFT')
<span style="font-size: .6rem;padding: 0 .2rem;border:.05rem solid #1153ff;color: #1153ff;line-height: .9rem;margin-top: .05rem;border-radius: .2rem;margin-right: .05rem">满仓</span>
@break
@case('ACTIVITY_GIFT')
<span style="font-size: .6rem;padding: 0 .2rem;border:.05rem solid #ff6417;color: #ff6417;line-height: .9rem;margin-top: .05rem;border-radius: .2rem;margin-right: .05rem">活动</span>
@break
@case('VIP_GIFT')
<span style="font-size: .6rem;padding: 0 .2rem;border:.05rem solid #ec6d64;color: #ec6d64;line-height: .9rem;margin-top: .05rem;border-radius: .2rem;margin-right: .05rem">赠品</span>
@break
@endswitch{{ $order->orderid }}
</td>
@else<td></td>
@endif
<td>{{$detail->item->getTitle() }}
</td>
<td>{{$detail->number }}
</td>
<td>{{$detail->price * $detail->number - $detail->score * $detail->number }}
</td>
<td>{{$detail->score * $detail->number }}
</td>
@if(!in_array($order->id, $orderids))
<td>{{ number_format($order->amount,2) }}</td>
<td>{{ number_format($order->freight, 2)}}</td>
<td>{{ number_format($order->score, 2) }}</td>
<td>{{ number_format($order->total - $order->score, 2) }}</td>
<td>{{ number_format($order->seller_amount, 2) }}</td>
<td>{{ number_format($order->seller_freight, 2) }}</td>
<td>{{ number_format($order->seller_freight + $order->seller_amount, 2) }}</td>
<td>{!! $order->express_type == 1 ? '快递' : '<span style="color: #ec6d64;">自提</span>' !!}</td>
<td>{{ $order->express->name ?? $order->user->info->nickname }} {{ $order->express->mobile ?? $order->user->mobile }} {{ $order->express->address ?? '' }}</td>
<td>{{ $order->state_text }}</td>
@if($type == 'DELIVERED|SIGNED')
<td>{{ $order->logs()->where('state','PAID|DELIVERED')->first()->created_at }}</td>
<td>{{ $order->logs()->where('state','DELIVERED|SIGNED')->first()->created_at }}</td>
@endif
@if($type == 'PAID|DELIVERED')
<td>{{ $order->paid_at }}</td>
<td>{{ $order->logs()->where('state','PAID|DELIVERED')->first()->created_at }}</td>
@endif
@else
<td colspan="12"></td>
@endif
</tr>
@php
array_push($orderids,$order->id);
@endphp
@endforeach
@endforeach
<tr>
<td>
{{ $orders->count() }}
</td>
<td colspan="8">
</td>
<td>
{{ number_format($orders->sum('seller_amount'),2) }}
</td>
<td>
{{ number_format($orders->sum('seller_freight'),2) }}
</td>
<td>
{{ number_format($orders->sum('seller_freight') + $orders->sum('seller_amount'),2) }}
</td>
<td colspan="5">
</td>
</tr>
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" order="{{ $orders->currentPage() }}" />
<input type="hidden" name="numPerPage" order="{{ $orders->perPage() }}" />
<input type="hidden" name="orderField" order="{{ Request::input('orderField') }}" />
<input type="hidden" name="orderDirection" order="{{ Request::input('orderDirection') }}" />
</form>
<div class="pages">
<span>显示</span>
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.order})">
<option @if ($orders->perPage() == 30) selected @endif value="30">30</option>
<option @if ($orders->perPage() == 100) selected @endif value="100">100</option>
<option @if ($orders->perPage() == 200) selected @endif value="200">200</option>
</select>
<span>条,共 {{ $orders->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $orders->total() }}" numPerPage="{{ $orders->perPage() }}" pageNumShown="10" currentPage="{{ $orders->currentPage() }}"></div>
</div>
</div>
<script type="text/javascript">
//点击导出
$('.export-data').click(function (event) {
location.href = "{{ route('Admin.export.report') }}?" + $(this).parents('form').serialize();
});
</script>

View File

@@ -0,0 +1,127 @@
<div class="pageHeader">
<form id="searchForm_{{ uniqid() }}" rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
<div class="searchBar">
<table class="searchContent">
<tr>
<td>
发货开始时间:
<input type="text" name="start" value="" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="00:00:00" readonly="true">
</td>
<td>
发货结束时间:
<input type="text" name="end" value="" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</td>
@if(Admin::id() == 1)
<td>
所属商户:
<select name="seller_id">
<option value="">全部商户</option>
@foreach ($sellers as $seller)
<option value="{{ $seller['id'] }}" @if($seller['id'] == Request::get('seller_id')) selected @endif>{{ $seller['name'] }}</option>
@endforeach
</select>
</td>
@endif
<input type="hidden" name="type" value="DELIVERED">
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
<td><div class="buttonActive"><div class="buttonContent"><button type="button" class="export-data">导出数据</button></div></div></td>
</tr>
</table>
</div>
</form>
</div>
<div class="pageContent">
<table class="table" width="100%" layoutH="112">
<thead>
<tr>
<th width="250">发货商户</th>
<th width="150">日期</th>
<th width="150">商品总数</th>
<th width="150">订单总数</th>
<th width="150">商品现金总额</th>
<th width="150">商品积分总额</th>
<th width="150">支付现金总额</th>
<th width="150">消耗积分总额</th>
<th width="150">订单运费总额</th>
<th width="150">结算成本</th>
<th width="150">结算运费</th>
<th width="150">结算总额</th>
<th width="240">操作</th>
</tr>
</thead>
<tbody>
@foreach ($reports as $report)
<tr>
<td>{{ $report->seller->name }}</td>
<td>{{ $report->action_time }}</td>
<td>{{ $report->goods_total }}</td>
<td>{{ $report->orders_total }}</td>
<td>{{ $report->goods_price_total - $report->goods_score_total}}</td>
<td>{{ $report->goods_score_total }}</td>
<td>{{ $report->orders_price - $report->orders_score }}</td>
<td>{{ $report->orders_score }}</td>
<td>{{ $report->orders_freight }}</td>
<td>{{ $report->seller_total }}</td>
<td>{{ $report->seller_freight }}</td>
<td>{{ number_format($report->seller_total + $report->seller_freight,2) }}</td>
<td>
<a title="订单明细" target="navTab" rel="ordershow" href="{{ route('Admin.orderData.order', ['seller_id'=>$report->seller_id,'start'=>$report->action_time,'end'=>$report->action_time,'type'=>'PAID|DELIVERED']) }}">
明细
</a>
</td>
</tr>
@endforeach
<tr>
<td colspan="2">
</td>
<td>
{{ $reports->sum('goods_total') }}
</td>
<td>
{{ $reports->sum('orders_total') }}
</td>
<td colspan="5">
</td>
<td>
{{ number_format($reports->sum('seller_total'),2) }}
</td>
<td>
{{ number_format($reports->sum('seller_freight'),2) }}
</td>
<td>
{{ number_format($reports->sum('seller_freight') + $reports->sum('seller_total'),2) }}
</td>
<td>
</td>
</tr>
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" order="{{ $reports->currentPage() }}" />
<input type="hidden" name="numPerPage" order="{{ $reports->perPage() }}" />
<input type="hidden" name="orderField" order="{{ Request::input('orderField') }}" />
<input type="hidden" name="orderDirection" order="{{ Request::input('orderDirection') }}" />
</form>
<div class="pages">
<span>显示</span>
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.order})">
<option @if ($reports->perPage() == 30) selected @endif value="30">30</option>
<option @if ($reports->perPage() == 100) selected @endif value="100">100</option>
<option @if ($reports->perPage() == 200) selected @endif value="200">200</option>
</select>
<span>条,共 {{ $reports->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $reports->total() }}" numPerPage="{{ $reports->perPage() }}" pageNumShown="10" currentPage="{{ $reports->currentPage() }}"></div>
</div>
</div>
<script type="text/javascript">
//点击导出
$('.export-data').click(function (event) {
location.href = "{{ route('Admin.export.dataReport') }}?" + $(this).parents('form').serialize();
});
</script>

View File

@@ -0,0 +1,128 @@
<div class="pageHeader">
<form id="searchForm_{{ uniqid() }}" rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
<div class="searchBar">
<table class="searchContent">
<tr>
<td>
发货开始时间:
<input type="text" name="start" value="" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="00:00:00" readonly="true">
</td>
<td>
发货结束时间:
<input type="text" name="end" value="" class="date textInput readonly valid" datefmt="yyyy-MM-dd HH:mm:ss" defaulttime="23:59:59" readonly="true">
</td>
@if(Admin::id() == 1)
<td>
所属商户:
<select name="seller_id">
<option value="">全部商户</option>
@foreach ($sellers as $seller)
<option value="{{ $seller['id'] }}" @if($seller['id'] == Request::get('seller_id')) selected @endif>{{ $seller['name'] }}</option>
@endforeach
</select>
</td>
@endif
<input type="hidden" name="type" value="SIGNED">
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
<td><div class="buttonActive"><div class="buttonContent"><button type="button" class="export-data">导出数据</button></div></div></td>
</tr>
</table>
</div>
</form>
</div>
<div class="pageContent">
<table class="table" width="100%" layoutH="112">
<thead>
<tr>
<th width="250">签收商户</th>
<th width="150">签收日期</th>
<th width="150">商品总数</th>
<th width="150">订单总数</th>
<th width="150">商品现金总额</th>
<th width="150">商品积分总额</th>
<th width="150">支付现金总额</th>
<th width="150">消耗积分总额</th>
<th width="150">订单运费总额</th>
<th width="150">结算成本</th>
<th width="150">结算运费</th>
<th width="150">结算总额</th>
<th width="240">操作</th>
</tr>
</thead>
<tbody>
@foreach ($reports as $report)
<tr>
<td>{{ $report->seller->name }}</td>
<td>{{ $report->action_time }}</td>
<td>{{ $report->goods_total }}</td>
<td>{{ $report->orders_total }}</td>
<td>{{ $report->goods_price_total - $report->goods_score_total}}</td>
<td>{{ $report->goods_score_total }}</td>
<td>{{ $report->orders_price - $report->orders_score }}</td>
<td>{{ $report->orders_score }}</td>
<td>{{ $report->orders_freight }}</td>
<td>{{ $report->seller_total }}</td>
<td>{{ $report->seller_freight }}</td>
<td>{{ number_format($report->seller_total + $report->seller_freight,2) }}</td>
<td>
<a title="订单明细" target="navTab" rel="ordershow" href="{{ route('Admin.orderData.order', ['seller_id'=>$report->seller_id,'start'=>$report->action_time,'end'=>$report->action_time,'type'=>'DELIVERED|SIGNED']) }}">
明细
</a>
</td>
</tr>
@endforeach
<tr>
<td colspan="2">
</td>
<td>
{{ $reports->sum('goods_total') }}
</td>
<td>
{{ $reports->sum('orders_total') }}
</td>
<td colspan="5">
</td>
<td>
{{ number_format($reports->sum('seller_total'),2) }}
</td>
<td>
{{ number_format($reports->sum('seller_freight'),2) }}
</td>
<td>
{{ number_format($reports->sum('seller_freight') + $reports->sum('seller_total'),2) }}
</td>
<td>
</td>
</tr>
</tbody>
</table>
<div class="panelBar">
<form id="pagerForm" method="post" action="#rel#">
<input type="hidden" name="page" order="{{ $reports->currentPage() }}" />
<input type="hidden" name="numPerPage" order="{{ $reports->perPage() }}" />
<input type="hidden" name="orderField" order="{{ Request::input('orderField') }}" />
<input type="hidden" name="orderDirection" order="{{ Request::input('orderDirection') }}" />
</form>
<div class="pages">
<span>显示</span>
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.order})">
<option @if ($reports->perPage() == 30) selected @endif value="30">30</option>
<option @if ($reports->perPage() == 100) selected @endif value="100">100</option>
<option @if ($reports->perPage() == 200) selected @endif value="200">200</option>
</select>
<span>条,共 {{ $reports->total() }} </span>
</div>
<div class="pagination" targetType="navTab" totalCount="{{ $reports->total() }}" numPerPage="{{ $reports->perPage() }}" pageNumShown="10" currentPage="{{ $reports->currentPage() }}"></div>
</div>
</div>
<script type="text/javascript">
//点击导出
$('.export-data').click(function (event) {
location.href = "{{ route('Admin.export.dataReport') }}?" + $(this).parents('form').serialize();
});
</script>