rabin 6 months ago
parent
commit
a0fb9b13b9
3 changed files with 51 additions and 2 deletions
  1. 34 0
      src/place/manage/core.php
  2. 14 2
      src/place/table/seller.php
  3. 3 0
      src/resource/goods/lib/Info.php

+ 34 - 0
src/place/manage/core.php

@@ -112,5 +112,39 @@ return array
             'icon'      => 'user-star-line',
             'sort'      => '3',
         ),
+
+        # 销售渠道
+        'seller_manage' => array
+        (
+            'parent'    => 'sector_place_channel',
+            'name'      => '销售渠道',
+            'icon'      => 'e-bike-2-line',
+            'sort'      => '1',
+        ),
+
+        'seller' => array
+        (
+            'parent'    => 'seller_manage',
+            'name'      => '网店列表',
+            'icon'      => 'file-shield-2-line',
+            'sort'      => '1',
+        ),
+
+        # 供应商渠道
+        'supplier_manage' => array
+        (
+            'parent'    => 'sector_place_channel',
+            'name'      => '供应商渠道',
+            'icon'      => 'earth-line',
+            'sort'      => '100',
+        ),
+
+        'supplier' => array
+        (
+            'parent'    => 'supplier_manage',
+            'name'      => '供应商列表',
+            'icon'      => 'earthquake-line',
+            'sort'      => '1',
+        ),
     ),
 );

+ 14 - 2
src/place/table/seller.php

@@ -1,14 +1,14 @@
 <?php
 return array
 (
-    'name' => '销售渠道',
+    'name' => '销售网店渠道',
     'partition' => 'Dever::call("manage/common.system")',
     'order' => 'sort asc',
     'struct' => array
     (
         'name' => array
         (
-            'name'      => '渠道名称',
+            'name'      => '网店名称',
             'type'      => 'varchar(50)',
         ),
 
@@ -28,6 +28,18 @@ return array
             ),
         ),
 
+        'status' => array
+        (
+            'name'      => '授权状态',
+            'type'      => 'tinyint(1)',
+            'default'   => 2,
+            'value'     => array
+            (
+                1 => '已授权',
+                2 => '未授权',
+            ),
+        ),
+
         'sort' => array
         (
             'name'      => '排序',

+ 3 - 0
src/resource/goods/lib/Info.php

@@ -22,6 +22,9 @@ class Info
         if (!$sku) {
             return false;
         }
+        if (!$sku['key']) {
+            return false;
+        }
         $info['price'] = $sku['price'];
         $info['sku_name'] = $sku['name'];
         $info['sku_id'] = $sku['id'];