Commit 7c3aa760 by 朱继来

Merge branch 'zjl_pay_type_20190701' into development

parents 8efb446f a48b36c8
...@@ -486,6 +486,7 @@ Class OrderController extends Controller ...@@ -486,6 +486,7 @@ Class OrderController extends Controller
$info['list'] = $response['data']['data']; $info['list'] = $response['data']['data'];
$info['count'] = $response['data']['count']; $info['count'] = $response['data']['count'];
$info['page'] = $show; $info['page'] = $show;
$info['credit'] = isset($response['data']['credit']) ? $response['data']['credit'] : ''; // 自营判断是否为账期会员
return $info; return $info;
} }
...@@ -764,7 +765,7 @@ Class OrderController extends Controller ...@@ -764,7 +765,7 @@ Class OrderController extends Controller
"kefu_remark" => $request->input('kefu_remark', ''), // 客服备注 "kefu_remark" => $request->input('kefu_remark', ''), // 客服备注
"freight_fee" => $request->input('freight_fee', 0), // 运费 "freight_fee" => $request->input('freight_fee', 0), // 运费
]; ];
// dd(curlApi($url, $resData, "POST"));
$temp = json_decode(curlApi($url, $resData, "POST"), true); $temp = json_decode(curlApi($url, $resData, "POST"), true);
return array('errcode'=>$temp['err_code'],'errmsg'=>$temp['err_msg']); return array('errcode'=>$temp['err_code'],'errmsg'=>$temp['err_msg']);
......
...@@ -175,8 +175,9 @@ class OrderModel extends Model ...@@ -175,8 +175,9 @@ class OrderModel extends Model
} }
}) })
->where(function ($query) use ($map) { ->where(function ($query) use ($map) {
// 线上订单 if ($map['order_goods_type'] == 2) { // 自营获取线上、京东、象牙宝订单
if (isset($map['online_order'])) { $query->whereIn('o.order_type', [1, 3, 4]);
} else if (isset($map['online_order'])) { // 线上订单
$query->where('o.order_type', '=', $map['online_order']); $query->where('o.order_type', '=', $map['online_order']);
} }
}) })
......
...@@ -104,12 +104,12 @@ ...@@ -104,12 +104,12 @@
} }
} else { // 自营 } else { // 自营
if (test_order.length) { if (test_order.length) {
if (!order_contain && !time_start && !time_end && !order_payment_mode && !order_status && !sale_type && !order_invoice_status && !order_source_pf && !order_source_adtag && !order_source_ptag && !is_new && !business_type && !test_order.is(':checked')) { if (!order_contain && !time_start && !time_end && !order_pay_type && !order_payment_mode && !order_status && !sale_type && !order_invoice_status && !order_source_pf && !order_source_adtag && !order_source_ptag && !is_new && !business_type && !test_order.is(':checked')) {
layer.msg('请选择筛选条件,再导出!'); layer.msg('请选择筛选条件,再导出!');
return false; return false;
} }
} else { } else {
if (!order_contain && !time_start && !time_end && !order_payment_mode && !order_status && !sale_type && !order_invoice_status && !order_source_pf && !order_source_adtag && !order_source_ptag && !is_new && !business_type) { if (!order_contain && !time_start && !time_end && !order_pay_type && !order_payment_mode && !order_status && !sale_type && !order_invoice_status && !order_source_pf && !order_source_adtag && !order_source_ptag && !is_new && !business_type) {
layer.msg('请选择筛选条件,再导出!'); layer.msg('请选择筛选条件,再导出!');
return false; return false;
} }
...@@ -1252,13 +1252,16 @@ ...@@ -1252,13 +1252,16 @@
// } // }
// 判断付款类型 // 判断付款类型
if (order_pay_type == 1) { if (order_pay_type == 1 || order_pay_type == 4) { // 全款和货到猎芯付款
$('.order_all_pay').attr('checked', true); $('.order_all_pay').attr('checked', true);
$('.order_advance_pay').parent('label').show(); $('.order_advance_pay').parent('label').show();
} else if (order_pay_type == 2) { } else if (order_pay_type == 2) { // 预付款
$('.order_advance_pay').attr('checked', true); $('.order_advance_pay').attr('checked', true);
$('.order_advance_pay').parent('label').show(); $('.order_advance_pay').parent('label').show();
$('.show-advance-pay').show(); // 定金模块 $('.show-advance-pay').show(); // 定金模块
} else if (order_pay_type == 3) { // 账期
$('.order_account_period').attr('checked', true);
$('.show-pay-time').hide();
} }
// 选择付款类型 // 选择付款类型
......
...@@ -75,6 +75,16 @@ ...@@ -75,6 +75,16 @@
</table> </table>
<hr/> <hr/>
@else
<table class="table table-bordered table-hover check-table">
<tr>
<td class="check-table-title" width="20%">付款类型:</td>
<td class="check-select">
<label><input class="order_all_pay" type="radio" name="order_pay_type" value="1">全额付款</label>
<label><input class="order_account_period" type="radio" name="order_pay_type" value="3">账期</label>
</td>
</tr>
</table>
@endif @endif
<!-- 调价 --> <!-- 调价 -->
......
...@@ -48,7 +48,16 @@ ...@@ -48,7 +48,16 @@
</select> </select>
</dd> </dd>
</dl> </dl>
<dl>
<dt>付款类型:</dt>
<dd>
<select id="order_pay_type" name="order_pay_type" class="form-control order_pay_type selectpicker" title="全部">
<option value="">全部</option>
<option value="1">全款</option>
<option value="3">账期</option>
</select>
</dd>
</dl>
<dl> <dl>
<dt>销售类型:</dt> <dt>销售类型:</dt>
<dd> <dd>
...@@ -207,6 +216,7 @@ ...@@ -207,6 +216,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>
<th class="pl30">客服</th> <th class="pl30">客服</th>
...@@ -219,13 +229,18 @@ ...@@ -219,13 +229,18 @@
@if (empty($list)) @if (empty($list))
<tr> <tr>
<td class="text-center" colspan="10">没有查询到相关记录~</td> <td class="text-center" colspan="12">没有查询到相关记录~</td>
</tr> </tr>
@else @else
<tbody> <tbody>
@foreach ($list as $v) @foreach ($list as $v)
<tr> <tr>
<td class="show-list"><?php print_r(App\Http\Controllers\getAccountName($v['user_id'])); ?></td> <td class="show-list">
<?php print_r(App\Http\Controllers\getAccountName($v['user_id'])); ?>
@if (isset($credit[$v['user_id']]) && $credit[$v['user_id']])
<span>(账期)</span>
@endif
</td>
<td class="show-list">{{$v['order_sn']}}</td> <td class="show-list">{{$v['order_sn']}}</td>
<td class="show-list"> <td class="show-list">
<?php <?php
...@@ -249,6 +264,8 @@ ...@@ -249,6 +264,8 @@
} }
?> ?>
</td> </td>
<td class="show-list"> {{ Config('params.order_pay_type')[$v['order_pay_type']] }} </td>
<td class="show-list">{{$v['sale_type'] == 1 ? '现卖' : '预售'}}</td> <td class="show-list">{{$v['sale_type'] == 1 ? '现卖' : '预售'}}</td>
<td class="show-list"><?php print_r(App\Http\Controllers\getPayName($v['order_id'])); ?></td> <td class="show-list"><?php print_r(App\Http\Controllers\getPayName($v['order_id'])); ?></td>
...@@ -310,7 +327,7 @@ ...@@ -310,7 +327,7 @@
<!-- 点击展示内容 --> <!-- 点击展示内容 -->
<tr class="show-other-content"> <tr class="show-other-content">
<td colspan="11"> <td colspan="12">
<table class="table table-hover table-bordered"> <table class="table table-hover table-bordered">
<tr> <tr>
<td class="table-list-title">公司名称</td> <td class="table-list-title">公司名称</td>
...@@ -425,7 +442,8 @@ ...@@ -425,7 +442,8 @@
$('.order_source_pf').selectpicker('val', order_source_pf.split(',')).trigger("change"); $('.order_source_pf').selectpicker('val', order_source_pf.split(',')).trigger("change");
$('#order_invoice_status').selectpicker('val', order_invoice_status); $('#order_invoice_status').selectpicker('val', order_invoice_status);
$('#order_send').selectpicker('val', order_send); $('#order_send').selectpicker('val', order_send);
$('.order_pay_type').selectpicker('val', order_pay_type.split(',')).trigger("change"); // $('.order_pay_type').selectpicker('val', order_pay_type.split(',')).trigger("change");
$('.order_pay_type').selectpicker('val', order_pay_type);
$('.is_new').selectpicker('val', is_new.split(',')).trigger("change"); $('.is_new').selectpicker('val', is_new.split(',')).trigger("change");
$('.business_type').selectpicker('val', business_type.split(',')).trigger("change"); $('.business_type').selectpicker('val', business_type.split(',')).trigger("change");
......
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