Commit a48b36c8 by 朱继来

添加自营账期会员展示

parent d7b554dc
...@@ -481,11 +481,12 @@ Class OrderController extends Controller ...@@ -481,11 +481,12 @@ Class OrderController extends Controller
$page->setConfig('theme', '%FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END% %HEADER%'); $page->setConfig('theme', '%FIRST% %UP_PAGE% %LINK_PAGE% %DOWN_PAGE% %END% %HEADER%');
$show = $page->show(); $show = $page->show();
$info['condition'] = $info['map']; $info['condition'] = $info['map'];
$info['sale_list'] = isset($sale_list) ? $sale_list : ''; $info['sale_list'] = isset($sale_list) ? $sale_list : '';
$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;
} }
......
...@@ -229,13 +229,18 @@ ...@@ -229,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
...@@ -322,7 +327,7 @@ ...@@ -322,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>
......
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