Преглед на файлове

修改商品规格列表

shensong преди 5 години
родител
ревизия
c5eab7a167
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 2 2
      app/Http/Controllers/Admin/GoodsController.php
  2. 2 0
      resources/views/goods/goodsindex.blade.php

+ 2 - 2
app/Http/Controllers/Admin/GoodsController.php

@@ -1221,8 +1221,8 @@ class GoodsController extends Controller
1221 1221
         }
1222 1222
 
1223 1223
         //将数据查询结果通过导出excel方法导出到浏览器
1224
-        $indexKey = ['goodsCategoryName','name','propsName','code','outPrice','status','createTime','real_quantity','total_quantity','pre_quantity'];
1225
-        $title = ['商品分类', '商品名称', '商品规格', '规格编码','分销商价格','上架状态','上架时间','可用库存','总库存','预占用库存'];
1224
+        $indexKey = ['goodsCategoryName','name','propsName','code','price','outPrice','status','createTime','real_quantity','total_quantity','pre_quantity'];
1225
+        $title = ['商品分类', '商品名称', '商品规格', '规格编码','建议零售价','分销商价格','上架状态','上架时间','可用库存','总库存','预占用库存'];
1226 1226
         $filename = 'goods_sku_export_'.date('Y-m-d_H').'.xlsx';
1227 1227
         return Order::export_excel($result, $filename, $indexKey, $title);
1228 1228
     }

+ 2 - 0
resources/views/goods/goodsindex.blade.php

@@ -46,6 +46,7 @@
46 46
                     <th width="5%">商品名称</th>
47 47
                     <th width="8%">商品规格</th>
48 48
                     <th width="5%">规格编码</th>
49
+                    <th width="8%">建议零售价</th>
49 50
                     <th width="5%">分销商价格</th>
50 51
                     <th width="5%">上架状态</th>
51 52
                     <th width="8%">上架时间</th>
@@ -63,6 +64,7 @@
63 64
                             <td class="text-c">{{$a['name']}}</td>
64 65
                             <td class="text-c">{{$a['propsName']}}{{$a['is_weigh'] == 1 ? '【按半斤称重】' : ''}}</td>
65 66
                             <td class="text-c">{{$a['code']}}</td>
67
+                            <td class="text-c">{{$a['price']}}</td>
66 68
                             <td class="text-c">{{$a['outPrice']}}</td>
67 69
                             {{--<td class ="change_logistics_id">--}}
68 70
                                 {{--<p id="referenceCost_1{{$a['id']}}">{{$a['referenceCost']}}</p>--}}