|
@@ -35,7 +35,7 @@ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
</div>
|
|
|
<div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
|
|
|
<select name="business_id" class="form-control">
|
|
|
- <option value="" >店铺</option>
|
|
|
+ <option value="" >商业公司</option>
|
|
|
@foreach ($businessList as $business)
|
|
|
<option value="{{$business['id']}}" @if (request('business_id') === $business['id'] ) selected="selected" @endif >{{$business['name']}}</option>
|
|
|
@endforeach
|
|
@@ -60,11 +60,11 @@ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
<th>剩余库存</th>
|
|
|
<th>产品销量</th>
|
|
|
<th>产品库存</th>
|
|
|
- <th>产品状态</th>
|
|
|
<th>服务城市</th>
|
|
|
- <th>店铺</th>
|
|
|
+ <th>商业公司</th>
|
|
|
<th>排序</th>
|
|
|
<th>限购数量</th>
|
|
|
+ <th>产品状态</th>
|
|
|
<th>修改时间</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
@@ -79,7 +79,6 @@ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
<td>{{$a['stock']}}</td>
|
|
|
<td>{{$a['sales_total']}}</td>
|
|
|
<td>{{$a['stock_total']}}</td>
|
|
|
- <td> {{$a['status']?'已下架':'已上架'}} </td>
|
|
|
<td> {{$a['city_name']}}</td>
|
|
|
<td> {{$a['business_name']}}</td>
|
|
|
<td>
|
|
@@ -90,11 +89,33 @@ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
@endif
|
|
|
</td>
|
|
|
<td> {{$a['quota']}} </td>
|
|
|
+ <td>
|
|
|
+ @switch($a['status'])
|
|
|
+ @case(1)
|
|
|
+ 编辑中
|
|
|
+ @break
|
|
|
+ @case(0)
|
|
|
+ 已上架
|
|
|
+ @break
|
|
|
+ @case(2)
|
|
|
+ 预上架
|
|
|
+ @break
|
|
|
+ @case(3)
|
|
|
+ 已中止
|
|
|
+ @break
|
|
|
+ @case(4)
|
|
|
+ 已结束
|
|
|
+ @break
|
|
|
+ @default
|
|
|
+ 无
|
|
|
+ @break
|
|
|
+ @endswitch
|
|
|
+ </td>
|
|
|
<td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
|
|
|
<td>
|
|
|
@if(check_auth('admin/product/edit'))
|
|
|
<a class="btn btn-sm btn-warning" href="{{url('admin/product/edit?'.http_build_query(['id'=>$a['id']]))}}" title="查看">
|
|
|
- 编辑
|
|
|
+ @if ($a['status']) 编辑 @else 查看 @endif
|
|
|
</a>
|
|
|
@endif
|
|
|
@if(check_auth('admin/product/copy'))
|
|
@@ -104,12 +125,19 @@ style="margin: 0 auto;width: 96%;padding: 30px 0px;"
|
|
|
@endif
|
|
|
@if(check_auth('admin/product/set_status'))
|
|
|
@if ($a['status'])
|
|
|
+ <!-- 判断是不是有上架时间 -->
|
|
|
+ @if ( $a['puton_time'] )
|
|
|
+ <a class="delete btn btn-sm btn-success" data-url="{{url('admin/product/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'2']))}}">
|
|
|
+ 预上架
|
|
|
+ </a>
|
|
|
+ @else
|
|
|
<a class="delete btn btn-sm btn-success" data-url="{{url('admin/product/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'0']))}}">
|
|
|
上架
|
|
|
</a>
|
|
|
+ @endif
|
|
|
@else
|
|
|
- <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/product/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'1']))}}">
|
|
|
- 下架
|
|
|
+ <a class="delete btn btn-sm btn-danger" data-url="{{url('admin/product/set_status?'.http_build_query(['id'=>$a['id'],'status'=>'3']))}}">
|
|
|
+ 中止
|
|
|
</a>
|
|
|
@endif
|
|
|
@endif
|