Răsfoiți Sursa

内部使用oa后台

gogs 1 an în urmă
părinte
comite
60632b0fa6

+ 1 - 1
app/Http/Controllers/Api/LoginController.php

@@ -20,6 +20,6 @@ class LoginController extends BaseController
         //生成token
         $jwtToken = TokenService::getToken($return['id']);
 
-        return $this->json_return(200,'', ['id' => $return['id'],'token' => $jwtToken, 'emp_name'=>$return['name'], 'all_top' => $return['all_top']]);
+        return $this->json_return(200,'', ['id' => $return['id'],'token' => $jwtToken, 'emp_name'=>$return['name']]);
     }
 }

+ 0 - 17
app/Http/Controllers/Api/SysMenuController.php

@@ -69,21 +69,4 @@ class SysMenuController extends BaseController
             return $this->json_return(201,$data);
         }
     }
-
-    public function menuExport(Request $request){
-        $service = new SysMenuService();
-        list($status,$data) = $service->export($request->all());
-
-        if($status){
-            return $this->json_return(200,'',['file'=>$data]);
-        }else{
-            return $this->json_return(201,$data);
-        }
-    }
-
-    //获取文件的位置
-    public function getExport($file_name){
-        $path = storage_path() . "/app/public/export/".$file_name;
-        return response()->file($path)->deleteFileAfterSend(true);
-    }
 }

+ 0 - 52
app/Http/Middleware/CheckLogin.php

@@ -41,58 +41,6 @@ class CheckLogin
         //角色里特殊的按钮
         $data['special_button'] = EmployeeService::getSpecialButton($data['role'],$result);
 
-        //当前门店
-        $userSetTopDepartId = $request->header('userSetTopDepartId');
-        if(empty($userSetTopDepartId)) return response()->json(['code'=>1,'msg'=>'当前门店信息缺失','data'=>null]);
-
-        //获取人员门店部门相关信息
-        $return = EmployeeService::getLoginDepart($result, $userSetTopDepartId);
-
-        //所属部门
-        $data['rule_depart'] = $return[0] ?? [];
-        //顶级公司
-        $data['depart_top'] = $return[1] ?? [];
-        //部门对应的顶级公司
-        $data['depart_map'] = $return[2] ?? [];
-        //权限范围内的部门以及公司
-        $data['depart_range'] = $return[3] ?? [];
-        //是否有所有的部门权限
-        $data['is_all_depart'] = $return[4] ?? 0;
-        //总公司
-        $data['head'] = $return[5] ?? [];
-        //当前部门
-        $data['depart_select'] = $return[6] ?? [];
-        //是否库存校验(默认校验)
-        $my_top = $data['depart_top'][0] ?? [];
-        $is_check_stock = empty($my_top['is_stock']) ? ProductInventorySet::type_one : $my_top['is_stock'];
-        $data['is_check_stock'] = $is_check_stock;
-
-        $query = config('morequery');
-        $url = $request->path();
-
-        //菜单ID
-        $menu = $query['menu'] ?? [];
-        if(isset($menu[$url])){
-            $param = $menu[$url];
-            if(is_array($param)){
-                $key = $param['key'];
-                $get = $request->input($key);
-                $menu_id = $param['array'][$get] ?? 0;
-            }else{
-                $menu_id = $param ?? 0;
-            }
-            $request->merge(['menu_id' => $menu_id]);
-        }
-
-        $menu2 = $query['is_list_search'] ?? [];
-        if(in_array($url, $menu2)) {
-            if(! empty($query['is_list_search']) && ! empty($request->is_list_search)){//列表页呈现
-                $request->merge(['get_my_top_depart_data' => 0]);
-            }else{//建单据选择
-                $request->merge(['get_my_top_depart_data' => 1]);
-            }
-        }
-
         //写入user信息
         $request->userData = $data;
 

+ 0 - 13
app/Model/Contacts.php

@@ -1,13 +0,0 @@
-<?php
-
-namespace App\Model;
-
-use Illuminate\Database\Eloquent\Model;
-
-class Contacts extends Model
-{
-    protected $table = "contacts"; //指定表
-    const CREATED_AT = 'crt_time';
-    const UPDATED_AT = 'upd_time';
-    protected $dateFormat = 'U';
-}

+ 0 - 23
app/Model/ContactsInfo.php

@@ -1,23 +0,0 @@
-<?php
-
-namespace App\Model;
-
-use Illuminate\Database\Eloquent\Model;
-
-class ContactsInfo extends Model
-{
-    protected $table = "contacts_info"; //指定表
-    const CREATED_AT = 'crt_time';
-    const UPDATED_AT = 'upd_time';
-    protected $dateFormat = 'U';
-    const type_one = 1; // 联系方式
-    const type_two = 2; // 关联客户
-    const type_three = 3; // 负责人
-    const type_four = 4; // 协同人
-    public static $type = [
-        self::type_one,
-        self::type_two,
-        self::type_three,
-        self::type_four,
-    ];
-}

+ 0 - 32
app/Model/Customer.php

@@ -1,32 +0,0 @@
-<?php
-
-namespace App\Model;
-
-class Customer extends UseScopeBaseModel
-{
-    protected $table = "customer"; //指定表
-    const CREATED_AT = 'crt_time';
-    const UPDATED_AT = 'upd_time';
-    protected $dateFormat = 'U';
-    const Model_type_one = 1; // 基础模板
-    const Model_type_two = 2; // T9二手车客户模板
-    const special_id = -1;
-    public static $model_type = [
-        self::Model_type_one,
-        self::Model_type_two
-    ];
-    const dk = [
-        'T9改装' => self::Model_type_one,
-        'T9二手车' => self::Model_type_two
-    ];
-    const dk2 = [
-        self::Model_type_one => 'T9改装',
-        self::Model_type_two => 'T9二手车',
-    ];
-
-    public static $user = [];
-    public static $search = [];
-    public static $limitKey = "customerPondState";
-    const range_function = 'customerRange';
-    public static $order_number = "customerTravelOrderNumber";
-}

+ 0 - 42
app/Model/CustomerInfo.php

@@ -1,42 +0,0 @@
-<?php
-
-namespace App\Model;
-
-use Illuminate\Database\Eloquent\Model;
-
-class CustomerInfo extends Model
-{
-    protected $table = "customer_info"; //指定表
-    const CREATED_AT = 'crt_time';
-    const UPDATED_AT = 'upd_time';
-    protected $dateFormat = 'U';
-    const type_one = 1; // 客户联系方式
-    const type_two = 2; // 负责人
-    const type_three = 3; // 协同人
-    const type_four = 4; // 联系人
-    const type_five = 5; // 图片
-    const type_six = 6; // 文件
-    const type_nine = 9; //前负责人
-    public static $type = [
-        self::type_one,
-        self::type_two,
-        self::type_three,
-        self::type_four,
-        self::type_five,
-        self::type_six,
-    ];
-    public static $see_man = [
-        self::type_two,
-        self::type_three,
-    ];
-    public static $man = [
-        self::type_two,
-        self::type_three,
-        self::type_nine,
-    ];
-    public static $man2 = [
-        self::type_two,
-        self::type_three,
-        self::type_nine,
-    ];
-}

+ 10 - 166
app/Service/EmployeeService.php

@@ -155,6 +155,9 @@ class EmployeeService extends Service
             $model->crt_id = $user['id'];
             $model->is_admin = $data['is_admin'];
             $model->account = $data['number'];
+            $model->sex = $data['sex']??'男';
+            $model->birth_date = $data['birth_date']??'';
+            $model->pic = $data['pic']??'';
             if($model->is_admin == 1){
                 if($data['password'] !== '********'){
                     $model->password = Hash::make($data['password']);
@@ -221,7 +224,7 @@ class EmployeeService extends Service
      */
     public function employeeList($data,$user){
         $model = Employee::where('del_time',0)
-            ->select('number','mobile','emp_name','id','entry_time','leave_time','is_admin','state')
+            ->select('number','mobile','emp_name','id','entry_time','leave_time','is_admin','state','is_device','sex','birth_date','pic')
             ->orderBy('id','desc');
 
         if(! empty($data['depart'])) {
@@ -589,79 +592,17 @@ class EmployeeService extends Service
 
         try {
             DB::beginTransaction();
-
-            $time = time();
-
             foreach ($msg['data'] as $value){
                 $model = new Depart();
                 $model->parent_id = $value['parent_id'];
                 $model->title = $value['title'];
                 $model->code = $value['code'];
-                $model->is_main = $value['is_main'];
-                $model->basic_type_id = $value['basic_type_id'] ?? 0;
-                $model->rate = $value['rate'] ?? 0;
-                $model->notify_id = $value['notify_id'] ?? 0;
                 $model->save();
                 $depart_id = $model->id;
                 if(empty($depart_id)) {
                     DB::rollBack();
                     return [false,'部门新建失败'];
                 }
-
-                if(empty($value['parent_id'])){
-                    $m = new Storehouse();
-                    $m->title = $value['title'];
-                    $m->depart_id = $depart_id;
-                    $m->top_depart_id = $depart_id;
-                    $m->crt_id = $user['id'];
-                    $m->save();
-                    if(empty($m->id)) {
-                        DB::rollBack();
-                        return [false,'仓库生成失败'];
-                    }
-
-                    $employee = new Employee();
-                    $number = "admin" . $value['code'];
-                    $employee->number = $number;
-                    $employee->emp_name = $value['title'] . "管理员账号";
-                    $employee->entry_time = date('Y-m-d');
-                    $employee->state = 1;
-                    $employee->crt_id = $user['id'];
-                    $employee->is_admin = 1;
-                    $employee->account = $number;
-                    $employee->password = Hash::make("password");
-                    $employee->is_manager = 1;
-                    $employee->save();
-                    if(empty($employee->id)) {
-                        DB::rollBack();
-                        return [false,'管理员账号生成失败'];
-                    }
-
-                    $depart = new EmployeeDepartPermission();
-                    $depart->employee_id = $employee->id;
-                    $depart->depart_id = $depart_id;
-                    $depart->save();
-
-                    if(empty($depart->id)) {
-                        DB::rollBack();
-                        return [false,'管理员账号部门关联生成失败'];
-                    }
-
-                    //公司系统设置
-                    ProductInventorySet::insert(['top_depart_id' => $depart_id, 'param_one' => 1, 'crt_time' => $time]);
-
-//                    if(! empty($value['is_main'])){
-//                        //总供应商 所有分社可见
-//                        Supplier::insert([
-//                            'title' => $value['title'],
-//                            'crt_id' => $user['id'],
-//                            'crt_time' => $time,
-//                            'depart_id' => $depart_id,
-//                            'top_depart_id' => $depart_id,
-//                            'is_main' => Supplier::is_main,
-//                        ]);
-//                    }
-                }
             }
 
             DB::commit();
@@ -701,10 +642,6 @@ class EmployeeService extends Service
         if($bool) return [false,'部门下有子部门!'];
 
         if($this->checkDepartHasPerson($data['id'])) return [false,'部门下有人员档案!'];
-
-        $bool = ProductInventory::where('top_depart_id',$data['id'])->where('del_time',0)->exists();
-        if($bool) return [false,'部门下的仓库有产品信息!'];
-
         return [true, ''];
     }
 
@@ -716,26 +653,15 @@ class EmployeeService extends Service
      */
     public function departList($data,$user){
         $model = Depart::where('del_time',0)
-            ->select('title','id','code','parent_id','is_main','basic_type_id','rate','notify_id','channel_id')
+            ->select('title','id','code','parent_id')
             ->orderby('id', 'asc');
 
-        if(! empty($data['get_top']) && $data['get_top'] == 1){
-            //指派销售
-            $depart_id = $this->getDepartIdListOfMySales($user);
-            $model->whereIn('id', $depart_id);
-        }else{
-            if(! $user['is_all_depart']){
-                $depart_id = $this->getDepartIdList($user);
-                $model->whereIn('id',$depart_id);
-            }
-        }
 
         if(isset($data['parent_id'])) $model->where('parent_id', $data['parent_id']);
         if(! empty($data['title'])) $model->where('title', 'LIKE', '%'.$data['title'].'%');
         if(! empty($data['code'])) $model->where('code', 'LIKE', '%'.$data['code'].'%');
 
         $list = $model->get()->toArray();
-        $list = $this->fillDepartList($list, $user);
         $list_tree = $list;
         if(! empty($list_tree)) {
             $list_tree = $this->makeTree(0,$list_tree);
@@ -745,55 +671,8 @@ class EmployeeService extends Service
         return [200,['data' => $list,'tree' => $list_tree]];
     }
 
-    public function fillDepartList($list,$user){
-        if(empty($list)) return $list;
-
-        $basic = BasicType::where('del_time',0)
-            ->whereIn('id', array_unique(array_column($list,'basic_type_id')))
-            ->pluck('title','id')->toArray();
-        $emp_id = array_unique(array_merge_recursive(array_column($list,'notify_id'),array_column($list,'channel_id')));
-        $emp_map = Employee::whereIn('id',$emp_id)
-            ->pluck('emp_name','id')
-            ->toArray();
-
-        foreach ($list as $key => $value){
-            $list[$key]['basic_type_title'] = $basic[$value['basic_type_id']] ?? '';
-            $list[$key]['is_show_basic_type'] = $user['is_all_depart'];
-            $list[$key]['notify_name'] = $emp_map[$value['notify_id']] ?? '';
-            $list[$key]['channel_name'] = $emp_map[$value['channel_id']] ?? '';
-        }
 
-        return $list;
-    }
 
-    //获取可见的部门范围
-    public function getDepartIdList($user){
-        $list = Depart::where('del_time',0)->select('id','parent_id')->get()->toArray();
-        $result = [];
-        foreach ($user['depart_range'] as $v){
-            // 查找所有父级id
-            $parentIds = $this->findParentIds($v, $list);
-            // 查找所有子级id
-            $childIds = $this->findChildIds($v, $list);
-            // 合并父级和子级id
-            $tmp = array_merge($parentIds, $childIds, [$v]);
-            $result = array_merge($result,$tmp);
-        }
-
-        return array_unique($result);
-    }
-
-    //获取指派销售时的部门
-    public function getDepartIdListOfMySales($user){
-        $top = $user['depart_top'][0] ?? [];
-        $top = $top['depart_id'] ?? 0;
-        $list = Depart::where('del_time',0)->select('id','parent_id')->get()->toArray();
-        // 查找所有子级id
-        $childIds = $this->findChildIds($top, $list);
-        $result = array_merge($childIds, [$top]);
-
-        return $result;
-    }
 
     /**
      * 部门参数规则
@@ -822,44 +701,11 @@ class EmployeeService extends Service
             if(empty($value)) return [false,'名称不能为空!'];
             if($title_count[$value] > 1) return [false,'名称不能重复'];
         }
-
-        $count = 0;
-        foreach ($data['data'] as $value){
-            if(empty($value['parent_id']) && ! empty($value['is_main'])) $count ++;
-        }
-        if($count > 1) return [false,'总社已存在!'];
-        if($count == 1){
-            $id = $data['id'] ?? 0;
-            $bool = Depart::where('del_time',0)
-                ->where('parent_id',0)
-                ->where('is_main',1)
-                ->when(! empty($id), function ($query) use ($id) {
-                    return $query->where('id', '<>',$id);
-                })
-                ->exists();
-            if($bool) return [false,'总社已存在!'];
-        }
-
         foreach ($data['data'] as $key => $value){
-            if(empty($value['parent_id'])) $data['data'][$key]['parent_id'] = 0;
-
-            $data['data'][$key]['upd_time'] = time();
-
-            //Depart::whereRaw("(binary code = '{$value['code']}' OR title = '{$value['title']}')")
-            if($is_check){
-                if(empty($user['is_all_depart']) && empty($value['parent_id'])) return [false,'上级部门必须选择'];
-                $data['data'][$key]['crt_time'] = time();
-                $bool = Depart::whereRaw("binary code = '{$value['code']}'")
-                    ->where('del_time',0)
-                    ->exists();
-            }else{
-                if($this->isEmpty($data,'id')) return [false,'id不能为空!'];
-                if($data['id'] == $user['head']['id'] && empty($data['is_main'])) return [false,'总社不支持变更!'];
-                $bool = Depart::whereRaw("binary code = '{$value['code']}'")
-                    ->where('id','<>',$data['id'])
-                    ->where('del_time',0)
-                    ->exists();
-            }
+            $bool = Depart::whereRaw("binary code = '{$value['code']}'")
+                ->where('id','<>',$data['id'])
+                ->where('del_time',0)
+                ->exists();
             if($bool) return [false,'编码不能重复'];
         }
 
@@ -1117,10 +963,8 @@ class EmployeeService extends Service
         if($res['is_admin'] != Employee::IS_ADMIN) return [false,'该账号不能登录!'];
         if($res['state'] == Employee::NOT_USE) return [false,'账号停用!'];
 
-        //门店的信息
-        $login_message = EmployeeService::getLoginMessage($res['id']);
 
-        return [true, ['id'=>$res['id'],'name'=>$res['emp_name'],'all_top'=> $login_message]];
+        return [true, ['id'=>$res['id'],'name'=>$res['emp_name']]];
     }
 
     /**

+ 0 - 82
app/Service/SysMenuService.php

@@ -2,7 +2,6 @@
 
 namespace App\Service;
 
-use App\Exports\ExportRule;
 use App\Exports\MultiSheetExport;
 use App\Exports\MyExport;
 use App\Model\Employee;
@@ -269,85 +268,4 @@ class SysMenuService extends Service
         return $data;
     }
 
-    public function export($data){
-        //(共有的)  菜单 =》 按钮
-        $sys_menu = SysMenu::where('del_time',0)
-            ->select('title','uri','parent_id','sort','id','is_authority')
-            ->orderBy('sort','desc')
-            ->get()->toArray();
-        $sys_menu_button = $this->fillMenuButton($sys_menu);
-
-        $role = Role::where('del_time',0)
-            ->select('id','title')
-            ->orderBy('id','desc')
-            ->get()->toArray();
-        $role_menu = RoleMenu::where('del_time',0)
-            ->whereIn('role_id',array_column($role,'id'))
-            ->select('menu_id','role_id','type')
-            ->get()->toArray();
-        $role_menu_map = [];
-        foreach ($role_menu as $value){
-            $role_menu_map[$value['role_id']][] = $value;
-        }
-
-        $role_menu_button = RoleMenuButton::where('del_time',0)
-            ->whereIn('role_id',array_column($role,'id'))
-            ->select('menu_id','role_id','button_id')
-            ->get()->toArray();
-        $role_menu_button_map = [];
-        foreach ($role_menu_button as $value){
-            $role_menu_button_map[$value['role_id']][] = $value;
-        }
-
-        $result = [];
-        foreach ($role as $value){
-            $tmp = $sys_menu_button;
-            $role_menu_tmp = $role_menu_map[$value['id']] ?? [];
-            $role_menu_button_tmp = $role_menu_button_map[$value['id']] ?? [];
-            $menu_button = [];
-            $data_array = [];
-            $data_array[] = ['菜单名称','是否勾选菜单','菜单按钮','数据范围'];
-            foreach ($role_menu_button_tmp as $v){
-                $menu_button[$v['menu_id']][] = $v['button_id'];
-            }
-            foreach ($tmp as $k => $v){
-                $v['has_menu'] = 0;
-                $v['type'] = 0;
-                foreach ($role_menu_tmp as $v2){
-                    //菜单
-                    if($v2['menu_id'] == $v['id']) {
-                        $v['has_menu'] = 1;
-                        $v['type'] = $v2['type'];
-                    }
-
-                    //菜单下的按钮
-                    if(! empty($tmp[$k]['button'])){
-                        $button_tmp = $menu_button[$v['id']] ?? [];
-                        $str = "";
-                        foreach ($tmp[$k]['button'] as $v_b){
-                            if(in_array($v_b['id'],$button_tmp)){
-                                $str .= $v_b['title'] . ",";
-                            }
-                        }
-                        $v['button'] = rtrim($str,',');
-                    }else{
-                        $v['button'] = "";
-                    }
-                }
-
-                $rule = RoleMenu::$type_name[$v['type']] ?? "";
-                $data_array[] = [
-                    $v['title'],
-                    $v['has_menu'] ? "√" : "×",
-                    $v['button'],
-                    $rule
-                ];
-            }
-            $result[$value['title']] = $data_array;
-        }
-
-        $filename = date("Ymd").time().rand(1000,9999) . ".xlsx";
-        \Maatwebsite\Excel\Facades\Excel::store(new MultiSheetExport($result),"/public/export/{$filename}", null, 'Xlsx', []);
-        return [true,$filename];
-    }
 }

+ 0 - 277
routes/api.php

@@ -25,40 +25,8 @@ Route::any('getHeaderWord', 'Api\HeaderWordController@getHeaderWord');
 Route::any('uploadFiles/{file_name}', 'Api\FileUploadController@getFile');
 //获取导出规则
 Route::any('getExport/{file_name}','Api\SysMenuController@getExport');
-Route::any('show','Api\ConstructionController@show');
 
 Route::group(['middleware'=> ['checkLogin']],function ($route){
-    //oa
-    $route->any('oaGetData', 'Api\OaController@oaGetData');
-    $route->any('getOperationList', 'Api\OperationLogController@getOperationList');
-    $route->any('createOaOrder', 'Api\OaController@createOaOrder');
-    $route->any('oaCheck', 'Api\OaController@oaCheck');
-    $route->any('oaOrderList', 'Api\OaController@oaOrderList');
-    $route->any('oaList', 'Api\OaController@oaList');
-    $route->any('oaDel', 'Api\OaController@oaDel');
-    $route->any('oaEdit', 'Api\OaController@oaEdit');
-    $route->any('oaDetail', 'Api\OaController@oaDetail');
-    $route->any('setOperationList', 'Api\OperationLogController@setOperationList');
-    $route->any('oaOrderState', 'Api\OaController@oaOrderState');
-    $route->any('oaGetTeamDetail', 'Api\OaController@oaGetTeamDetail');
-    $route->any('checkAllOver', 'Api\OaController@checkAllOver');
-    $route->any('oaCheckMove', 'Api\OaController@oaCheckMove');
-    $route->any('oaSubUserDetail', 'Api\OaController@oaSubUserDetail');
-    $route->any('oaSubRemark', 'Api\OaController@oaSubRemark');
-    $route->any('reportList', 'Api\OaController@reportList');
-    $route->any('reportCount', 'Api\OaController@reportCount');
-    $route->any('reportCheck', 'Api\OaController@reportCheck');
-    $route->any('reportTime', 'Api\OaController@reportTime');
-    //审批流参数
-    $route->any('oaParamGet','Api\OaController@oaParamGet');
-
-    $route->any('getHeaderSetting', 'Api\HeaderWordController@getHeaderSettings');
-    $route->any('excelExport', 'Api\ExcelController@excelExport');
-    $route->any('HeaderSettingsAdd', 'Api\HeaderWordController@add');
-    $route->any('HeaderSettingsDetail', 'Api\HeaderWordController@detail');
-
-    //文件上传统一方法
-    $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
 
     $route->any('menuAdd', 'Api\SysMenuController@add');
     $route->any('menuEdit', 'Api\SysMenuController@edit');
@@ -66,250 +34,5 @@ Route::group(['middleware'=> ['checkLogin']],function ($route){
     $route->any('menuList', 'Api\SysMenuController@menuList');
     $route->any('menuMove', 'Api\SysMenuController@menuMove');
 
-    $route->any('employeeAdd', 'Api\EmployeeController@employeeAdd');
-    $route->any('employeeEdit', 'Api\EmployeeController@employeeEdit');
-    $route->any('employeeEditOther', 'Api\EmployeeController@employeeEditOther');
-    $route->any('employeeDel', 'Api\EmployeeController@employeeDel');
-    $route->any('employeeList', 'Api\EmployeeController@employeeList');
-
-    $route->any('departAdd', 'Api\EmployeeController@departAdd');
-    $route->any('departEdit', 'Api\EmployeeController@departEdit');
-    $route->any('departDel', 'Api\EmployeeController@departDel');
-    $route->any('departList', 'Api\EmployeeController@departList');
-
-    $route->any('roleAdd', 'Api\EmployeeController@roleAdd');
-    $route->any('roleEdit', 'Api\EmployeeController@roleEdit');
-    $route->any('roleDel', 'Api\EmployeeController@roleDel');
-    $route->any('roleList', 'Api\EmployeeController@roleList');
-    $route->any('roleDetail', 'Api\EmployeeController@roleDetail');
-    $route->any('roleMenu', 'Api\EmployeeController@roleMenu');
-
-    $route->any('teamAdd', 'Api\EmployeeController@teamAdd');
-    $route->any('teamEdit', 'Api\EmployeeController@teamEdit');
-    $route->any('teamDel', 'Api\EmployeeController@teamDel');
-    $route->any('teamList', 'Api\EmployeeController@teamList');
-    $route->any('teamDetail', 'Api\EmployeeController@teamDetail');
-
-    $route->any('employeeDepart', 'Api\EmployeeController@employeeDepart');
-    $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam');
-    $route->any('employeeRole', 'Api\EmployeeController@employeeRole');
-
-    //仓库档案
-    $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
-    $route->any('storehouseDetail', 'Api\StorehouseController@storehouseDetail');
-    $route->any('storehouseAdd', 'Api\StorehouseController@add');
-    $route->any('storehouseEdit', 'Api\StorehouseController@edit');
-    $route->any('storehouseDel', 'Api\StorehouseController@del');
-
-    //单据状态变动
-    $route->any('checkAll', 'Api\CheckController@checkAll');
-
-    //基础类型
-    $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
-    $route->any('basicTypeEdit', 'Api\BasicTypeController@basicTypeEdit');
-    $route->any('basicTypeAdd', 'Api\BasicTypeController@basicTypeAdd');
-    $route->any('basicTypeDel', 'Api\BasicTypeController@basicTypeDel');
-    $route->any('basicTypeCustomerList', 'Api\BasicTypeController@basicTypeCustomerList');
-
-    //跟进记录
-    $route->any('followUpRecordList', 'Api\FollowUpRecordController@followUpRecordList');
-    $route->any('followUpRecordEdit', 'Api\FollowUpRecordController@followUpRecordEdit')->middleware('OssFileDeal');
-    $route->any('followUpRecordAdd', 'Api\FollowUpRecordController@followUpRecordAdd')->middleware('OssFileDeal');
-    $route->any('followUpRecordDetail', 'Api\FollowUpRecordController@followUpRecordDetail');
-    $route->any('followUpRecordDel', 'Api\FollowUpRecordController@followUpRecordDel')->middleware('OssFileDeal');
-
-    //客户
-    $route->any('customerList', 'Api\CustomerController@customerList');
-    $route->any('customerCapitalList', 'Api\CustomerController@customerList2');
-    $route->any('customerEdit', 'Api\CustomerController@customerEdit')->middleware('OssFileDeal');
-    $route->any('customerAdd', 'Api\CustomerController@customerAdd')->middleware('OssFileDeal');
-    $route->any('customerDel', 'Api\CustomerController@customerDel')->middleware('OssFileDeal');
-    $route->any('customerDetail', 'Api\CustomerController@customerDetail');
-    $route->any('customerGrabbing', 'Api\CustomerController@customerGrabbing');
-
-    //供应商
-    $route->any('supplierList', 'Api\SupplierController@customerList');
-    $route->any('supplierEdit', 'Api\SupplierController@customerEdit');
-    $route->any('supplierAdd', 'Api\SupplierController@customerAdd');
-    $route->any('supplierDel', 'Api\SupplierController@customerDel');
-    $route->any('supplierDetail', 'Api\SupplierController@customerDetail');
-
-    //联系人
-    $route->any('contactsList', 'Api\ContactsController@contactsList');
-    $route->any('contactsEdit', 'Api\ContactsController@contactsEdit');
-    $route->any('contactsAdd', 'Api\ContactsController@contactsAdd');
-    $route->any('contactsDel', 'Api\ContactsController@contactsDel');
-    $route->any('contactsDetail', 'Api\ContactsController@contactsDetail');
-
-    //产品分类
-    $route->any('productCategoryList', 'Api\ProductController@productCategoryList');
-    $route->any('productCategoryEdit', 'Api\ProductController@productCategoryEdit');
-    $route->any('productCategoryAdd', 'Api\ProductController@productCategoryAdd');
-    $route->any('productCategoryDel', 'Api\ProductController@productCategoryDel');
-    $route->any('productCategoryList2', 'Api\ProductController@productCategoryList2');
-
-    //产品名称
-    $route->any('productList', 'Api\ProductController@productList');
-    $route->any('productEdit', 'Api\ProductController@productEdit')->middleware('OssFileDeal');
-    $route->any('productAdd', 'Api\ProductController@productAdd')->middleware('OssFileDeal');
-    $route->any('productDel', 'Api\ProductController@productDel')->middleware('OssFileDeal');
-    $route->any('productDetail', 'Api\ProductController@productDetail');
-    $route->any('productList2', 'Api\ProductController@productList2');
-
-    //采购单
-    $route->any('purchaseOrderList', 'Api\PurchaseOrderController@purchaseOrderList');
-    $route->any('purchaseOrderEdit', 'Api\PurchaseOrderController@purchaseOrderEdit')->middleware('OssFileDeal');
-    $route->any('purchaseOrderDetail', 'Api\PurchaseOrderController@purchaseOrderDetail');
-    $route->any('purchaseOrderAdd', 'Api\PurchaseOrderController@purchaseOrderAdd')->middleware('OssFileDeal');
-    $route->any('purchaseOrderDel', 'Api\PurchaseOrderController@purchaseOrderDel')->middleware('OssFileDeal');
-
-    //特殊采购单
-    $route->any('purchaseOrderSpecialList', 'Api\PurchaseOrderSpecialController@purchaseOrderList');
-    $route->any('purchaseOrderSpecialDetail', 'Api\PurchaseOrderSpecialController@purchaseOrderDetail');
-
-    //发货单
-    $route->any('invoiceOrderList', 'Api\InvoiceOrderController@invoiceOrderList');
-    $route->any('invoiceOrderEdit', 'Api\InvoiceOrderController@invoiceOrderEdit');
-    $route->any('invoiceOrderDetail', 'Api\InvoiceOrderController@invoiceOrderDetail');
-    $route->any('invoiceOrderAdd', 'Api\InvoiceOrderController@invoiceOrderAdd');
-    $route->any('invoiceOrderDel', 'Api\InvoiceOrderController@invoiceOrderDel');
-
-    //收货单
-    $route->any('takeOrderList', 'Api\TakeOrderController@takeOrderList');
-    $route->any('takeOrderEdit', 'Api\TakeOrderController@takeOrderEdit');
-    $route->any('takeOrderDetail', 'Api\TakeOrderController@takeOrderDetail');
-    $route->any('takeOrderAdd', 'Api\TakeOrderController@takeOrderAdd');
-    $route->any('takeOrderDel', 'Api\TakeOrderController@takeOrderDel');
-
-    //合同
-    $route->any('batchConfirm', 'Api\SalesOrderController@batchConfirm');
-    $route->any('salesOrderGet', 'Api\SalesOrderController@salesOrderGet');
-    $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
-    $route->any('salesOrderEdit', 'Api\SalesOrderController@salesOrderEdit');
-    $route->any('salesOrderDetail', 'Api\SalesOrderController@salesOrderDetail');
-    $route->any('salesOrderAdd', 'Api\SalesOrderController@salesOrderAdd');
-    $route->any('salesOrderDel', 'Api\SalesOrderController@salesOrderDel');
-    //派单销售
-    $route->any('salesOrderDispatchSale', 'Api\SalesOrderController@salesOrderDispatchSale');
-    //派单总部或分社
-    $route->any('salesOrderDispatchCompany', 'Api\SalesOrderController@salesOrderDispatchCompany');
-
-    //施工单
-    $route->any('constructionGet', 'Api\ConstructionController@constructionGet');
-    $route->any('constructionList', 'Api\ConstructionController@constructionList');
-    $route->any('constructionEdit', 'Api\ConstructionController@constructionEdit')->middleware('OssFileDeal');
-    $route->any('constructionDetail', 'Api\ConstructionController@constructionDetail');
-    $route->any('constructionAdd', 'Api\ConstructionController@constructionAdd')->middleware('OssFileDeal');
-    $route->any('constructionDel', 'Api\ConstructionController@constructionDel')->middleware('OssFileDeal');
-    $route->any('constructionPdf', 'Api\ConstructionController@constructionPdf');
-    $route->any('constructionOperation', 'Api\ConstructionController@constructionOperation');
-
-    //交车单
-    $route->any('deliveryNoteList', 'Api\ConstructionController@deliveryNoteList');
-    $route->any('deliveryNoteDetail', 'Api\ConstructionController@deliveryNoteDetail');
-    $route->any('deliveryNoteEdit', 'Api\ConstructionController@deliveryNoteEdit');
-    $route->any('deliveryNoteDel', 'Api\ConstructionController@deliveryNoteDel');
-
-    //退换货
-    $route->any('ReturnExchangeOrderList', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderList');
-    $route->any('ReturnExchangeOrderEdit', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderEdit');
-    $route->any('ReturnExchangeOrderDetail', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDetail');
-    $route->any('ReturnExchangeOrderAdd', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderAdd');
-    $route->any('ReturnExchangeOrderDel', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDel');
-
-    //活动包 组合活动包
-    $route->any('sportsBagOrderList', 'Api\SportsBagController@orderList');
-    $route->any('sportsBagEdit', 'Api\SportsBagController@edit');
-    $route->any('sportsBagDetail', 'Api\SportsBagController@detail');
-    $route->any('sportsBagAdd', 'Api\SportsBagController@add');
-    $route->any('sportsBagDel', 'Api\SportsBagController@del');
-
-    //活动价列表 单品活动包
-    $route->any('productActivityList', 'Api\ProductActivityController@productList');
-    $route->any('productActivityEdit', 'Api\ProductActivityController@productEdit');
-    $route->any('productActivityAdd', 'Api\ProductActivityController@productAdd');
-    $route->any('productActivityDel', 'Api\ProductActivityController@productDel');
-    $route->any('productActivityDetail', 'Api\ProductActivityController@productDetail');
-
-    //金额记账
-    $route->any('BookingList', 'Api\BookingListController@customerList');
-    $route->any('BookingAdd', 'Api\BookingListController@customerAdd');
-    $route->any('BookingEdit', 'Api\BookingListController@customerEdit');
-    $route->any('BookingDel', 'Api\BookingListController@customerDel');
-    $route->any('BookingDetail', 'Api\BookingListController@customerDetail');
-    $route->any('BookingConfirm', 'Api\BookingListController@customerConfirm');
-
-    //收付款
-    $route->any('paymentReceiptGet', 'Api\PaymentReceiptController@paymentReceiptGet');
-    $route->any('paymentReceiptList', 'Api\PaymentReceiptController@paymentReceiptList');
-    $route->any('paymentReceiptAdd', 'Api\PaymentReceiptController@paymentReceiptAdd')->middleware('OssFileDeal');
-    $route->any('paymentReceiptEdit', 'Api\PaymentReceiptController@paymentReceiptEdit')->middleware('OssFileDeal');
-    $route->any('paymentReceiptDel', 'Api\PaymentReceiptController@paymentReceiptDel')->middleware('OssFileDeal');
-    $route->any('paymentReceiptDetail', 'Api\PaymentReceiptController@paymentReceiptDetail');
-
-    //排班设置
-    $route->any('scheduleList', 'Api\ScheduleController@getList');
-    $route->any('scheduleEdit', 'Api\ScheduleController@edit');
-    $route->any('scheduleDetail', 'Api\ScheduleController@detail');
-    $route->any('scheduleAdd', 'Api\ScheduleController@add');
-    $route->any('scheduleDel', 'Api\ScheduleController@del');
-    $route->any('scheduleGetForConstruction', 'Api\ScheduleController@scheduleGetForConstruction');
-    $route->any('getScheduleSetting', 'Api\ScheduleController@getScheduleSetting');
-    $route->any('getSettingTotal', 'Api\ScheduleController@getSettingTotal');
-    $route->any('getSettingGetDetail', 'Api\ScheduleController@getSettingGetDetail');
-    $route->any('getSettingTotal2', 'Api\ScheduleController@getSettingTotal2');
-    $route->any('getSettingGetDetail2', 'Api\ScheduleController@getSettingGetDetail2');
-
-    //现存量
-    $route->any('productInventoryList', 'Api\ProductInventoryController@productInventoryList');
-    //库存台账
-    $route->any('productInventoryStockList', 'Api\ProductInventoryController@productInventoryStockList');
-    //收发存汇总
-    $route->any('productInAndOutList', 'Api\ProductInventoryController@productInAndOutList');
-    //设置列表
-    $route->any('productInventorySetList', 'Api\ProductInventoryController@productInventorySetList');
-    $route->any('getMySetting', 'Api\ProductInventoryController@getMySetting');
-
-    //设置开关
-    $route->any('productInventorySet', 'Api\ProductInventoryController@productInventorySet');
-    //可见范围
-    $route->any('seeRange', 'Api\RangeController@seeRange');
-    //删除人
-    $route->any('getMan','Api\DeleteController@getMan');
-    $route->any('delMan','Api\DeleteController@delete');
-    //移交 分配
-    $route->any('fpMan','Api\DeleteController@fp');
-    $route->any('yjMan','Api\DeleteController@yj');
-    //排期
-    $route->any('pq','Api\DeleteController@pq');
-
-    //导入
-    $route->any('import','Api\ImportController@import');
-    //保存规则
-    $route->any('menuExport','Api\SysMenuController@menuExport');
-
-    //获取默认表头
-    $route->any('getTableHead','Api\TableHeadController@tableHeadGet');
-    //设置表头
-    $route->any('setTableHead','Api\TableHeadController@tableHeadAdd');
-
-    //获取审核单据的详情
-    $route->any('checkDetail', 'Api\CheckController@getOrderDetail');
-
-    //数据同步到U8
-    $route->any('dataToU8','Api\DataSyncToU8Controller@add');
-
-    //获取下载模板
-    $route->any('getTableTitleXls','Api\ImportController@getTableTitleXls');
-    //导入
-    $route->any('importAll','Api\ImportController@importAll');
-
-    //导出统一方法
-    $route->any('exportFile', 'Api\ExportFileController@exportFile');
-
-    //抖店
-    $route->any('douShopOrderList', 'Api\DouShopController@douShopOrderList');
-    $route->any('douShopOrderDetail', 'Api\DouShopController@douShopOrderDetail');
-    $route->any('insertDouOrder', 'Api\DouShopController@insertDouOrder');
 
 });