Commit d2e3468b by 朱继来

自营订单详情添加型号

parent cfab0595
...@@ -203,6 +203,14 @@ function clientSource($user_id) ...@@ -203,6 +203,14 @@ function clientSource($user_id)
return $user->client_source; 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 Class OrderController extends Controller
{ {
// 首页 // 首页
......
...@@ -375,7 +375,10 @@ ...@@ -375,7 +375,10 @@
<table class="table"> <table class="table">
<thead> <thead>
<tr class="caption"> <tr class="caption">
<th>商品名</th>
@if ($order_info['order_goods_type'] == 2)
<th>型号</th> <th>型号</th>
@endif
<th>制造商</th> <th>制造商</th>
<th>采购数量</th> <th>采购数量</th>
<th>采购单价</th> <th>采购单价</th>
...@@ -394,13 +397,13 @@ ...@@ -394,13 +397,13 @@
@if (!empty($order_items_info)) @if (!empty($order_items_info))
@foreach ($order_items_info as $v) @foreach ($order_items_info as $v)
<tr> <tr>
<td>
@if ($order_info['order_goods_type'] == 1) @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 @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 @endif
</td>
<td>{{$v['brand_name']}}</td> <td>{{$v['brand_name']}}</td>
<td id="goods_number_{{$v['rec_id']}}">{{$v['goods_number']}}</td> <td id="goods_number_{{$v['rec_id']}}">{{$v['goods_number']}}</td>
<td> <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