Commit d2e3468b by 朱继来

自营订单详情添加型号

parent cfab0595
......@@ -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
{
// 首页
......
......@@ -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>
......
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