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,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>