get('/user', function (Request $request) { return $request->user(); }); Route::any('login', 'Api\LoginController@login'); Route::any('test', 'Api\TestController@aa'); 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'); $route->any('menuDel', 'Api\SysMenuController@del'); $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('departSetIndex', 'Api\EmployeeController@departSetIndex'); $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('getTopMessage', 'Api\EmployeeController@getTopMessage'); $route->any('employeeDepart', 'Api\EmployeeController@employeeDepart'); $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam'); $route->any('employeeRole', 'Api\EmployeeController@employeeRole'); $route->any('employeeEditImg', 'Api\EmployeeController@employeeEditImg')->middleware('OssFileDeal'); $route->any('getEmployeeImg', 'Api\EmployeeController@getEmployeeImg'); //仓库档案 $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')->middleware('OssFileDeal'); //基础类型 $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('followUpRecordBatchAdd', 'Api\FollowUpRecordController@followUpRecordBatchAdd')->middleware('OssFileDeal'); //客户 $route->any('customerList', 'Api\CustomerController@customerList'); $route->any('customerCapitalList', 'Api\CustomerController@customerList2'); $route->any('customerRepeatList', 'Api\CustomerController@customerRepeatList'); $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('customerImportanceEdit', 'Api\CustomerController@customerImportanceEdit'); $route->any('customerSendWx', 'Api\CustomerController@customerSendWx'); //供应商 $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('setIsEditUnitPrice', 'Api\ProductController@setIsEditUnitPrice'); $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('productListIndex', 'Api\ProductController@productListIndex');//列表页 $route->any('productList', 'Api\ProductController@productList');//选择列表页 $route->any('productGroupByList', 'Api\ProductController@productGroupByList');//选择列表页 $route->any('productGroupByListDetail', 'Api\ProductController@productGroupByListDetail');//选择列表页详情 $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('batchUploadImg', 'Api\ProductController@batchUploadImg')->middleware('OssFileDeal'); $route->any('batchBuildFee', 'Api\ProductController@batchBuildFee'); $route->any('updateTopStock', 'Api\ProductController@updateTopStock'); $route->any('productUpdateByItemCode', 'Api\ProductController@productUpdateByItemCode'); $route->any('productUpdateProductBasicInfo', 'Api\ProductController@productUpdateProductBasicInfo'); //采购单 $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('purchaseOrderSpecialEdit', 'Api\PurchaseOrderSpecialController@purchaseOrderEdit'); $route->any('purchaseOrderSubmit', 'Api\PurchaseOrderSpecialController@purchaseOrderSubmit'); //发货单 $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('outBoundOrderList', 'Api\OutBoundOrderController@getList'); $route->any('outBoundOrderEdit', 'Api\OutBoundOrderController@edit'); $route->any('outBoundOrderDetail', 'Api\OutBoundOrderController@detail'); $route->any('outBoundOrderAdd', 'Api\OutBoundOrderController@add'); $route->any('outBoundOrderDel', 'Api\OutBoundOrderController@del'); $route->any('outBoundGetProduct', 'Api\OutBoundOrderController@outBoundGetProduct'); //收货单 $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('salesOrderBatchDispatchCompany', 'Api\SalesOrderController@salesOrderBatchDispatchCompany'); $route->any('salesOrderGetBuildFee', 'Api\SalesOrderController@salesOrderGetBuildFee'); $route->any('salesOrderClose', 'Api\SalesOrderController@salesOrderClose'); $route->any('salesClickOut', 'Api\SalesOrderController@salesClickOut'); $route->any('salesOrderPdf', 'Api\SalesOrderController@salesOrderPdf'); //施工单 $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('constructionEditOther', 'Api\ConstructionController@constructionEditOther'); $route->any('constructionEditSn', 'Api\ConstructionController@constructionEditSn'); //交车单 $route->any('deliveryNoteList', 'Api\ConstructionController@deliveryNoteList'); $route->any('deliveryNoteDetail', 'Api\ConstructionController@deliveryNoteDetail'); $route->any('deliveryNoteEdit', 'Api\ConstructionController@deliveryNoteEdit')->middleware('OssFileDeal'); $route->any('deliveryNoteDel', 'Api\ConstructionController@deliveryNoteDel')->middleware('OssFileDeal'); //退换货 $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('sportsBagSendWx', 'Api\SportsBagController@sportsBagSendWx'); //活动价列表 单品活动包 $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('inventoryList', 'Api\InventoryController@inventoryList'); $route->any('inventoryEdit', 'Api\InventoryController@inventoryEdit'); $route->any('inventoryDetail', 'Api\InventoryController@inventoryDetail'); $route->any('inventoryAdd', 'Api\InventoryController@inventoryAdd'); $route->any('inventoryDel', 'Api\InventoryController@inventoryDel'); //产品金额调整单 $route->any('productAdjustmentList', 'Api\ProductAdjustmentController@productAdjustmentList'); $route->any('productAdjustmentEdit', 'Api\ProductAdjustmentController@productAdjustmentEdit'); $route->any('productAdjustmentDetail', 'Api\ProductAdjustmentController@productAdjustmentDetail'); $route->any('productAdjustmentAdd', 'Api\ProductAdjustmentController@productAdjustmentAdd'); $route->any('productAdjustmentDel', 'Api\ProductAdjustmentController@productAdjustmentDel'); //排班设置 $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('statisticsBt', 'Api\StatisticsController@statisticsBt'); $route->any('statisticsJc', 'Api\StatisticsController@statisticsJc'); $route->any('statisticsProvince', 'Api\StatisticsController@statisticsProvince'); $route->any('statisticsArea', 'Api\StatisticsController@statisticsArea'); $route->any('statisticsAreaDepart', 'Api\StatisticsController@statisticsAreaDepart'); $route->any('statisticsAreaDepartProduct', 'Api\StatisticsController@statisticsAreaDepartProduct'); $route->any('statisticsCustomer', 'Api\StatisticsController@statisticsCustomer'); $route->any('statisticsModelTypeOne', 'Api\StatisticsController@statisticsModelTypeOne'); $route->any('statisticsModelTypeFour', 'Api\StatisticsController@statisticsModelTypeFour'); //设置开关 $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('getTableSearch','Api\TableHeadController@tableSearchGet'); //设置搜索项 $route->any('setTableSearch','Api\TableHeadController@tableSearchAdd'); //获取默认打开筛选 $route->any('getFilter','Api\TableHeadController@filterGet'); //设置默认打开筛选 $route->any('setFilter','Api\TableHeadController@filterAdd'); //获取审核单据的详情 $route->any('checkDetail', 'Api\CheckController@getOrderDetail'); //数据同步到U8 $route->any('dataToU8','Api\DataSyncToU8Controller@add'); //u8获取sn码 $route->any('snListAccording','Api\DataSyncToU8Controller@snListAccording'); $route->any('getSnFromU8','Api\DataSyncToU8Controller@getSnFromU8'); //TSpace首页设置 $route->any('tSpaceEdit', 'Api\TSpaceController@edit')->middleware('OssFileDeal'); $route->any('tSpaceDetail', 'Api\TSpaceController@detail'); //生成质保信息 $route->any('warrantyAdd', 'Api\TSpaceController@warrantyAdd'); //获取下载模板 $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'); });