Commit eb70972b by 朱继来

1. 添加预付款金额展示;

2. ERP订单添加来源筛选;
parent cd3b5a11
...@@ -244,10 +244,12 @@ Class OrderController extends Controller ...@@ -244,10 +244,12 @@ Class OrderController extends Controller
$map['time_end'] = $request->input('time_end', ''); $map['time_end'] = $request->input('time_end', '');
$map['order_status'] = $request->input('order_status', ''); $map['order_status'] = $request->input('order_status', '');
$map['order_send'] = $request->input('order_send', ''); $map['order_send'] = $request->input('order_send', '');
$map['order_source'] = $request->input('order_source', '');
} }
/* 查看ERP订单 */ /* 查看ERP订单 */
$map['online_order'] = 2; // $map['online_order'] = 2;
$map['offline_order'] = [2, 3]; // 2-ERP, 3-JD
// 获取所有的业务员 (包括经理和交易员) // 获取所有的业务员 (包括经理和交易员)
$perm = new PermController; $perm = new PermController;
......
...@@ -206,6 +206,7 @@ ...@@ -206,6 +206,7 @@
time_end = $('input[name="time_end"]').val(), time_end = $('input[name="time_end"]').val(),
order_status = $('#order_status').data('default'), order_status = $('#order_status').data('default'),
order_send = $('#order_send').data('default'), order_send = $('#order_send').data('default'),
order_source = $('#order_source').data('default'),
listUrl = '/erp_order'; listUrl = '/erp_order';
listUrl += '?order_type=' + order_type; listUrl += '?order_type=' + order_type;
...@@ -234,6 +235,10 @@ ...@@ -234,6 +235,10 @@
listUrl += '&order_send=' + order_send; listUrl += '&order_send=' + order_send;
} }
if (order_source) {
listUrl += '&order_source=' + order_source;
}
location.href = listUrl; location.href = listUrl;
}) })
}, },
...@@ -619,13 +624,19 @@ ...@@ -619,13 +624,19 @@
var order_id = $('input[name=order_id]').val(); var order_id = $('input[name=order_id]').val();
if (tags) {
var url = '/details/'+order_id+'?tags='+tags;
} else {
var url = '/details/'+order_id;
}
$('form').on('submit', function(){ $('form').on('submit', function(){
$(this).ajaxSubmit({ $(this).ajaxSubmit({
data: {order_id: order_id}, data: {order_id: order_id},
dataType:'json', dataType:'json',
success:function(resp){ success:function(resp){
if(resp.errcode == 0){ if(resp.errcode == 0){
location.href = '/details/'+order_id; location.href = url;
} else { } else {
layer.alert(resp.errmsg || '网络异常') layer.alert(resp.errmsg || '网络异常')
} }
...@@ -651,13 +662,19 @@ ...@@ -651,13 +662,19 @@
} }
}) })
if (tags) {
var url = '/details/'+order_id+'?tags='+tags;
} else {
var url = '/details/'+order_id;
}
$('form').on('submit', function(){ $('form').on('submit', function(){
$(this).ajaxSubmit({ $(this).ajaxSubmit({
data: {order_id: order_id}, data: {order_id: order_id},
dataType:'json', dataType:'json',
success:function(resp){ success:function(resp){
if(resp.errcode == 0){ if(resp.errcode == 0){
location.href = '/details/'+order_id; location.href = url;
} else { } else {
layer.alert(resp.errmsg || '网络异常') layer.alert(resp.errmsg || '网络异常')
} }
......
<div class="page-content order-details"> <div class="page-content order-details">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="{{URL('list')}}">订单列表</a></li> @if (isset($_REQUEST['tags']))
<li><a href="{{URL('details', ['order_id'=>$detail['order_id']])}}">订单详情</a></li> <li><a href="{{URL('erp_order')}}">ERP订单</a></li>
<li><a href="/details/{{$detail['order_id']}}?tags={{$_REQUEST['tags']}}">订单详情</a></li>
@else
<li><a href="{{URL('list')}}">平台订单</a></li>
<li><a href="{{URL('details', ['order_id'=>$detail['order_id']])}}">订单详情</a></li>
@endif
<li class="active"><a href="javascript:;">订单发票信息</a></li> <li class="active"><a href="javascript:;">订单发票信息</a></li>
</ul> </ul>
<?php <?php
...@@ -81,6 +87,8 @@ ...@@ -81,6 +87,8 @@
</div> </div>
<script> <script>
var tags = "{{isset($_REQUEST['tags']) ? $_REQUEST['tags'] : ''}}";
$.lie.order.details(); $.lie.order.details();
var inv_type = '{{$detail['inv_type']}}'; var inv_type = '{{$detail['inv_type']}}';
......
<div class="page-content order-details"> <div class="page-content order-details">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li><a href="{{URL('list')}}">订单列表</a></li> @if (isset($_REQUEST['tags']))
<li><a href="{{URL('details', ['order_id'=>$detail['order_id']])}}">订单详情</a></li> <li><a href="{{URL('erp_order')}}">ERP订单</a></li>
<li><a href="/details/{{$detail['order_id']}}?tags={{$_REQUEST['tags']}}">订单详情</a></li>
@else
<li><a href="{{URL('list')}}">平台订单</a></li>
<li><a href="{{URL('details', ['order_id'=>$detail['order_id']])}}">订单详情</a></li>
@endif
<li class="active"><a href="javascript:;">订单收货信息</a></li> <li class="active"><a href="javascript:;">订单收货信息</a></li>
</ul> </ul>
<?php <?php
...@@ -45,5 +51,7 @@ ...@@ -45,5 +51,7 @@
</div> </div>
<script> <script>
var tags = "{{isset($_REQUEST['tags']) ? $_REQUEST['tags'] : ''}}";
$.lie.order.details(); $.lie.order.details();
</script> </script>
\ No newline at end of file
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="page-content"> <div class="page-content">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">ERP订单列表</a></li> <li class="active"><a href="javascript:;">ERP订单</a></li>
</ul> </ul>
<div class="tabs-box"> <div class="tabs-box">
...@@ -47,7 +47,18 @@ ...@@ -47,7 +47,18 @@
</div> </div>
</dd> </dd>
</dl> </dl>
<dl>
<dt>订单来源:</dt>
<dd>
<div class="droplist" data-default="{{$condition['order_source']}}" id="order_source" name="order_source">
<ul class="dropdown-menu">
<li data-val="" class="active">全部</li>
<li data-val="2">ERP</li>
<li data-val="3">京东</li>
</ul>
</div>
</dd>
</dl>
<dl> <dl>
<dt>推送业务员:</dt> <dt>推送业务员:</dt>
<dd> <dd>
...@@ -83,6 +94,7 @@ ...@@ -83,6 +94,7 @@
<th class="pl30">推送业务员</th> <th class="pl30">推送业务员</th>
<th class="pl30">发货状态</th> <th class="pl30">发货状态</th>
<th class="pl30">配送方式</th> <th class="pl30">配送方式</th>
<th class="pl30">订单来源</th>
<th class="pl30">下单时间</th> <th class="pl30">下单时间</th>
<th class="pl30">操作</th> <th class="pl30">操作</th>
</tr> </tr>
...@@ -98,11 +110,11 @@ ...@@ -98,11 +110,11 @@
<tr> <tr>
<td class="show-list">{{$v['mobile'] ? $v['mobile'] : $v['email']}}</td> <td class="show-list">{{$v['mobile'] ? $v['mobile'] : $v['email']}}</td>
<td class="show-list"> <td class="show-list">
@if ($v['currency'] == '1') <?php
{{'¥'.$v['order_amount']}} $currencySign = $v['currency'] == 1 ? '¥' : '$';
@else
{{'$ '.$v['order_amount']}} echo $currencySign.$v['order_amount'];
@endif ?>
</td> </td>
<td class="show-list"> <td class="show-list">
<?php <?php
...@@ -173,10 +185,17 @@ ...@@ -173,10 +185,17 @@
自提 自提
@endif @endif
</td> </td>
<td>
@if ($v['order_type'] == 2)
ERP
@else
京东
@endif
</td>
<td class="show-list">{{date('Y-m-d H:i:s', $v['create_time'])}}</td> <td class="show-list">{{date('Y-m-d H:i:s', $v['create_time'])}}</td>
<td> <td>
<div class="btn-group btn-group-xs"> <div class="btn-group btn-group-xs">
<a class="btn btn-primary" href="{{URL('details', ['order_id'=>$v['order_id']])}}">详情</a> <a class="btn btn-primary" href="/details/{{$v['order_id']}}?tags=erp">详情</a>
</div> </div>
</td> </td>
</tr> </tr>
...@@ -190,7 +209,15 @@ ...@@ -190,7 +209,15 @@
<td class="table-list-content">{{$v['order_sn']}}</td> <td class="table-list-content">{{$v['order_sn']}}</td>
<td class="table-list-title">公司名称</td> <td class="table-list-title">公司名称</td>
<td class="table-list-content">{{$v['com_name']}}</td> <td class="table-list-content">{{$v['com_name']}}</td>
</tr> </tr>
@if ($v['order_pay_type'] == 2)
<tr>
<td class="table-list-title">预付款</td>
<td class="table-list-content">{{$currencySign.$v['advance_amount']}}</td>
<td class="table-list-title">尾款</td>
<td class="table-list-content">{{$currencySign.number_format($v['order_amount'] - $v['advance_amount'], 2, '.', '')}}</td>
</tr>
@endif
<tr> <tr>
<td class="table-list-title">支付时间</td> <td class="table-list-title">支付时间</td>
<td class="table-list-content"> <td class="table-list-content">
......
<div class="wrapper wrapper-content"> <div class="wrapper wrapper-content">
<div class="page-content"> <div class="page-content">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">订单列表</a></li> <li class="active"><a href="javascript:;">平台订单</a></li>
</ul> </ul>
<div class="tabs-box"> <div class="tabs-box">
...@@ -179,11 +179,11 @@ ...@@ -179,11 +179,11 @@
<tr> <tr>
<td class="show-list">{{$v['mobile'] ? $v['mobile'] : $v['email']}}</td> <td class="show-list">{{$v['mobile'] ? $v['mobile'] : $v['email']}}</td>
<td class="show-list"> <td class="show-list">
@if ($v['currency'] == '1') <?php
{{'¥'.$v['order_amount']}} $currencySign = $v['currency'] == 1 ? '¥' : '$';
@else
{{'$ '.$v['order_amount']}} echo $currencySign.$v['order_amount'];
@endif ?>
</td> </td>
<td class="show-list"> <td class="show-list">
<?php <?php
...@@ -279,6 +279,14 @@ ...@@ -279,6 +279,14 @@
<p class="show-title" title="{{$v['com_name']}}">{{$v['com_name']}}</p> <p class="show-title" title="{{$v['com_name']}}">{{$v['com_name']}}</p>
</td> </td>
</tr> </tr>
@if ($v['order_pay_type'] == 2)
<tr>
<td class="table-list-title">预付款</td>
<td class="table-list-content">{{$currencySign.$v['advance_amount']}}</td>
<td class="table-list-title">尾款</td>
<td class="table-list-content">{{$currencySign.number_format($v['order_amount'] - $v['advance_amount'], 2, '.', '')}}</td>
</tr>
@endif
<tr> <tr>
<td class="table-list-title">支付时间</td> <td class="table-list-title">支付时间</td>
<td class="table-list-content"> <td class="table-list-content">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment