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
64a97395
authored
Sep 10, 2019
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调整列表公司展示
parent
df495fe8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletions
app/Http/Controllers/OrderController.php
resources/views/orderlist/content.blade.php
resources/views/selfOrder/content.blade.php
app/Http/Controllers/OrderController.php
View file @
64a97395
...
...
@@ -94,7 +94,7 @@ function getCompanyName($order_id, $user_id)
{
$order_invoice
=
DB
::
connection
(
'order'
)
->
table
(
'lie_order_invoice'
)
->
where
([
'order_id'
=>
$order_id
])
->
select
(
'tax_title'
,
'inv_type'
)
->
first
();
if
(
$order_invoice
->
inv_type
!=
1
)
return
$order_invoice
->
tax_title
;
if
(
$order_invoice
&&
$order_invoice
->
inv_type
!=
1
)
return
$order_invoice
->
tax_title
;
$company
=
DB
::
connection
(
'order'
)
->
table
(
'lie_user_company'
)
->
where
([
'user_id'
=>
$user_id
])
->
select
(
'com_name'
)
->
first
();
...
...
resources/views/orderlist/content.blade.php
View file @
64a97395
...
...
@@ -255,7 +255,9 @@
<tr
data-oid=
"{{ $v['order_id'] }}"
data-type=
"1"
>
<td
class=
"show-list"
>
<?php
print_r
(
App\Http\Controllers\getAccountName
(
$v
[
'user_id'
]));
?>
</td>
<td
class=
"show-list"
>
@if ($v['order_type'] == 1)
<p
class=
"show-title"
title=
"{{App\Http\Controllers\getCompanyName($v['order_id'], $v['user_id'])}}"
style=
"width: 200px;"
>
{{App\Http\Controllers\getCompanyName($v['order_id'], $v['user_id'])}}
</p>
@endif
</td>
<td
class=
"show-list"
>
{{$v['order_sn']}}
</td>
<?php
$order_extend
=
App\Http\Controllers\getOrderExtend
(
$v
[
'order_id'
]);
?>
...
...
resources/views/selfOrder/content.blade.php
View file @
64a97395
...
...
@@ -244,7 +244,9 @@
@endif
</td>
<td
class=
"show-list"
>
@if ($v['order_type'] == 1)
<p
class=
"show-title"
title=
"{{App\Http\Controllers\getCompanyName($v['order_id'], $v['user_id'])}}"
style=
"width: 200px;"
>
{{App\Http\Controllers\getCompanyName($v['order_id'], $v['user_id'])}}
</p>
@endif
</td>
<td
class=
"show-list"
>
{{$v['order_sn']}}
</td>
<td
class=
"show-list"
>
...
...
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