Procházet zdrojové kódy

旅程 =》 客户

cqpCow před 11 měsíci
rodič
revize
aa8930f6da
2 změnil soubory, kde provedl 56 přidání a 1 odebrání
  1. 6 1
      app/Http/Controllers/Api/OaController.php
  2. 50 0
      config/oa.php

+ 6 - 1
app/Http/Controllers/Api/OaController.php

@@ -356,7 +356,12 @@ class OaController extends BaseController
     }
 
     public function oaParamGet(Request $request){
-        return $this->json_return(200,'', config('oa'));
+        $oa = config('oa');
+        foreach ($oa as $key => $value){
+            if($value['menu_id'] == 16) unset($oa[$key]);
+        }
+
+        return $this->json_return(200,'', $oa);
     }
 
 

+ 50 - 0
config/oa.php

@@ -563,5 +563,55 @@ return [
             ],
         ]
     ],
+    [
+        'menu_id' => 16,
+        'menu_title' => '客户管理',
+        'children' => [
+            [
+                'key' => 'title',
+                'title' => '客户名称',
+            ],
+            [
+                'key' => 'customer_intention_title',
+                'title' => '客户意向',
+            ],
+            [
+                'key' => 'customer_from_title',
+                'title' => '客户来源',
+            ],
+            [
+                'key' => 'customer_type_title',
+                'title' => '客户类别',
+            ],
+            [
+                'key' => 'car_type_title',
+                'title' => '车型',
+            ],
+            [
+                'key' => 'consulting_product',
+                'title' => '咨询产品',
+            ],
+            [
+                'key' => 'intention_product_title',
+                'title' => '意向产品',
+            ],
+            [
+                'key' => 'progress_stage_title',
+                'title' => '进展阶段',
+            ],
+            [
+                'key' => 'state_type_title',
+                'title' => '状态类型',
+            ],
+            [
+                'key' => 'crt_time',
+                'title' => '创建时间',
+            ],
+            [
+                'key' => 'mark',
+                'title' => '备注',
+            ],
+        ]
+    ],
 ];