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
d2e3468b
authored
Jul 31, 2018
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
自营订单详情添加型号
parent
cfab0595
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
app/Http/Controllers/OrderController.php
resources/views/detail/content.blade.php
app/Http/Controllers/OrderController.php
View file @
d2e3468b
...
...
@@ -203,6 +203,14 @@ function clientSource($user_id)
return
$user
->
client_source
;
}
// 获取自营商品型号
function
getGoodsName
(
$goods_id
)
{
$goods_info
=
json_decode
(
Redis
::
hget
(
'Self_SelfGoods'
,
$goods_id
),
true
);
return
$goods_info
[
'goods_name'
];
}
Class
OrderController
extends
Controller
{
// 首页
...
...
resources/views/detail/content.blade.php
View file @
d2e3468b
...
...
@@ -375,7 +375,10 @@
<table
class=
"table"
>
<thead>
<tr
class=
"caption"
>
<th>
商品名
</th>
@if ($order_info['order_goods_type'] == 2)
<th>
型号
</th>
@endif
<th>
制造商
</th>
<th>
采购数量
</th>
<th>
采购单价
</th>
...
...
@@ -393,14 +396,14 @@
<tbody>
@if (!empty($order_items_info))
@foreach ($order_items_info as $v)
<tr>
<td>
<tr>
@if ($order_info['order_goods_type'] == 1)
<
a
href=
"{{Config('website.main_url').'goods_'.$v['goods_id'].'.html?ptag=order'}}"
target=
"_blank"
>
{{$v['goods_name']}}
</a
>
<
td><a
href=
"{{Config('website.main_url').'goods_'.$v['goods_id'].'.html?ptag=order'}}"
target=
"_blank"
>
{{$v['goods_name']}}
</a></td
>
@else
<a
href=
"{{Config('website.main_url').'item/'.$v['goods_id'].'.html?ptag=order'}}"
target=
"_blank"
>
{{$v['goods_name']}}
</a>
<td><a
href=
"{{Config('website.main_url').'item/'.$v['goods_id'].'.html?ptag=order'}}"
target=
"_blank"
>
{{$v['goods_name']}}
</a></td>
<td>
{{ App\Http\Controllers\getGoodsName($v['goods_id']) }}
</td>
@endif
</td>
<td>
{{$v['brand_name']}}
</td>
<td
id=
"goods_number_{{$v['rec_id']}}"
>
{{$v['goods_number']}}
</td>
<td>
...
...
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