dever 3 years ago
parent
commit
b90b6a7aef
1 changed files with 9 additions and 7 deletions
  1. 9 7
      app/store/database/goods_sku.php

+ 9 - 7
app/store/database/goods_sku.php

@@ -2,12 +2,18 @@
 $type = Dever::input('search_type');
 $status = Dever::config('base')->status;
 $button = array
+(
+    '新增仓库商品' => array('location', Dever::url('lib/set.home?id=' . Dever::input('search_option_store_id'), 'store')),
+    '导出调整明细' => array('excel', 'shop/excel.goods_log'),
+);
+$list_button = array
 (
     'list' => array('查看详情', '"goods_log&search_option_store_id={store_id}&earch_option_goods_id={goods_id}&earch_option_sku_id={sku_id}&oper_table=goods_sku&top_table=info"'),
     'fast_list' => array('库存设置', '"info_sku&project=goods&goods_id={goods_id}&other=store&other_id={store_id}&page_type=1"'),
 );
 if ($type != 1) {
-    unset($button['fast_list']);
+    unset($button['新增仓库商品']);
+    unset($list_button['fast_list']);
 }
 $config = array
 (
@@ -240,13 +246,9 @@ $config = array
         'page_list_table' => 'sku',
 
         # 自定义快捷新增和编辑
-        'button' => array
-        (
-            '新增仓库商品' => array('location', Dever::url('lib/set.home?id=' . Dever::input('search_option_store_id'), 'store')),
-            '导出调整明细' => array('excel', 'shop/excel.goods_log'),
-        ),
+        'button' => $button,
 
-        'list_button' => $button,
+        'list_button' => $list_button,
     ),
 
     # request 请求接口定义