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

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

@@ -1,6 +1,14 @@
 <?php
 $type = Dever::input('search_type');
 $status = Dever::config('base')->status;
+$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']);
+}
 $config = array
 (
     # 表名
@@ -238,11 +246,7 @@ $config = array
             '导出调整明细' => 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"'),
-        ),
+        'list_button' => $button,
     ),
 
     # request 请求接口定义