Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
38bbf726
authored
Sep 05, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整联营订单列表
parent
01e24d17
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
app/Http/Controllers/OrderController.php
resources/views/orderlist/content.blade.php
app/Http/Controllers/OrderController.php
View file @
38bbf726
...
...
@@ -261,6 +261,16 @@ function handleOrderSource($order_source)
return
implode
(
','
,
$source
);
}
// 获取订单收货人
function
getOrderAddress
(
$order_id
)
{
$order
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_address'
)
->
where
(
'order_id'
,
$order_id
)
->
select
(
'consignee'
)
->
first
();
if
(
!
$order
)
return
false
;
return
$order
->
consignee
;
}
Class
OrderController
extends
Controller
{
// 首页
...
...
resources/views/orderlist/content.blade.php
View file @
38bbf726
...
...
@@ -183,6 +183,7 @@
<thead>
<tr>
<th
class=
"pl30"
>
会员账号
</th>
<th
class=
"pl30"
>
订单编号
</th>
<th
class=
"pl30"
>
应付金额
</th>
<th
class=
"pl30"
>
订单状态
</th>
<th
class=
"pl30"
>
订单类型
</th>
...
...
@@ -190,6 +191,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>
</tr>
...
...
@@ -203,7 +205,8 @@
<tbody>
@foreach ($list as $v)
<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"
>
{{$v['order_sn']}}
</td>
<td
class=
"show-list"
>
<?php
$currencySign
=
$v
[
'currency'
]
==
1
?
'¥'
:
'$'
;
...
...
@@ -273,6 +276,7 @@
}
?>
</td>
<td>
<?php
echo
App\Http\Controllers\getOrderAddress
(
$v
[
'order_id'
]);
?>
</td>
<td
class=
"show-list"
>
{{$username != 'vpadmin@ichunt.com' ? date('Y-m-d H:i:s', $v['create_time']) : date('Y-m-d', $v['create_time'])}}
</td>
<td>
<div
class=
"btn-group btn-group-xs"
>
...
...
@@ -304,15 +308,17 @@
<!-- 点击展示内容 -->
<tr
class=
"show-other-content"
>
<td
colspan=
"1
0
"
>
<td
colspan=
"1
2
"
>
<table
class=
"table table-hover table-bordered"
>
<tr>
<td
class=
"table-list-title"
>
订单编号
</td>
<td
class=
"table-list-content"
>
{{$v['order_sn']}}
</td>
<td
class=
"table-list-title"
>
公司名称
</td>
<td
class=
"table-list-content"
>
<p
class=
"show-title"
title=
"{{App\Http\Controllers\getCompanyName($v['user_id'])}}"
>
{{App\Http\Controllers\getCompanyName($v['user_id'])}}
</p>
</td>
<td
class=
"table-list-title"
>
Adtag或其它
</td>
<td
class=
"table-list-content"
colspan=
"3"
>
<p
class=
"show-title"
title=
"
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
"
>
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
</p>
</td>
</tr>
@if ($v['order_pay_type'] == 2)
<tr>
...
...
@@ -383,12 +389,6 @@
<?php
echo
App\Http\Controllers\getOrderSource
(
$v
[
'order_id'
]);
?>
</td>
</tr>
<tr>
<td
class=
"table-list-title"
>
Adtag或其它
</td>
<td
class=
"table-list-content"
colspan=
"3"
>
<p
class=
"show-title"
title=
"
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
"
>
<?php
echo
App\Http\Controllers\handleOrderSource
(
$v
[
'order_source'
]);
?>
</p>
</td>
</tr>
</table>
</td>
</tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment