| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346 | <?phpuse Illuminate\Http\Request;/*|--------------------------------------------------------------------------| API Routes|--------------------------------------------------------------------------|| Here is where you can register API routes for your application. These| routes are loaded by the RouteServiceProvider within a group which| is assigned the "api" middleware group. Enjoy building your API!|*/Route::middleware('auth:api')->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');    //基础类型    $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('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('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('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')->middleware('OrderDeal');    $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('OrderDeal')->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')->middleware('OrderDeal');    $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('inventoryList', 'Api\InventoryController@inventoryList');    $route->any('inventoryEdit', 'Api\InventoryController@inventoryEdit');    $route->any('inventoryDetail', 'Api\InventoryController@inventoryDetail');    $route->any('inventoryAdd', 'Api\InventoryController@inventoryAdd')->middleware('OrderDeal')->middleware('OrderDeal');    $route->any('inventoryDel', 'Api\InventoryController@inventoryDel');    $route->any('inventoryImport', 'Api\InventoryController@inventoryImport')->middleware('OrderDeal');    //排班设置    $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('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('getFilter','Api\TableHeadController@filterGet');    //设置默认打开筛选    $route->any('setFilter','Api\TableHeadController@filterAdd');    //获取审核单据的详情    $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');});
 |