wx.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <?php
  2. use Illuminate\Http\Request;
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API Routes
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here is where you can register API routes for your application. These
  9. | routes are loaded by the RouteServiceProvider within a group which
  10. | is assigned the "api" middleware group. Enjoy building your API!
  11. |
  12. */
  13. Route::any('wxSetUser', 'Api\WxController@setUser');
  14. Route::any('wxSetMobile', 'Api\WxController@setMobile');
  15. Route::any('wxLogin', 'Api\WxController@login');
  16. Route::any('wxH5', 'Api\WxController@wxH5');
  17. Route::any('ttt', 'Api\WxController@ttt');
  18. Route::group(['middleware'=> ['checkWx']],function ($route){
  19. $route->any('oaCheck', 'Api\OaController@oaCheck');
  20. $route->any('oaOrderState', 'Api\OaController@oaOrderState');
  21. $route->any('checkAllOver', 'Api\OaController@checkAllOver');
  22. //不需要账号登录的
  23. //文件上传统一方法
  24. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  25. $route->any('saleOrderList', 'Api\WxController@saleOrderList');
  26. $route->any('checkAll', 'Api\CheckController@checkAll');
  27. //需要账号登录的
  28. //采购单
  29. $route->any('purchaseOrderList', 'Api\WxController@purchaseOrderList');
  30. $route->any('purchaseOrderEdit', 'Api\PurchaseOrderController@purchaseOrderEdit');
  31. $route->any('purchaseOrderDetail', 'Api\PurchaseOrderController@purchaseOrderDetail');
  32. $route->any('purchaseOrderAdd', 'Api\PurchaseOrderController@purchaseOrderAdd');
  33. $route->any('purchaseOrderDel', 'Api\PurchaseOrderController@purchaseOrderDel');
  34. //合同
  35. $route->any('salesOrderGet', 'Api\SalesOrderController@salesOrderGet');
  36. $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
  37. $route->any('salesOrderEdit', 'Api\SalesOrderController@salesOrderEdit');
  38. $route->any('salesOrderDetail', 'Api\SalesOrderController@salesOrderDetail');
  39. $route->any('salesOrderAdd', 'Api\SalesOrderController@salesOrderAdd');
  40. $route->any('salesOrderDel', 'Api\SalesOrderController@salesOrderDel');
  41. $route->any('constructionGet', 'Api\ConstructionController@constructionGet');
  42. $route->any('constructionList', 'Api\ConstructionController@constructionList');
  43. $route->any('constructionEdit', 'Api\ConstructionController@constructionEdit');
  44. $route->any('constructionDetail', 'Api\ConstructionController@constructionDetail');
  45. $route->any('constructionAdd', 'Api\ConstructionController@constructionAdd');
  46. $route->any('constructionDel', 'Api\ConstructionController@constructionDel');
  47. $route->any('deliveryNoteList', 'Api\ConstructionController@deliveryNoteList');
  48. $route->any('deliveryNoteDetail', 'Api\ConstructionController@deliveryNoteDetail');
  49. $route->any('deliveryNoteEdit', 'Api\ConstructionController@deliveryNoteEdit');
  50. $route->any('deliveryNoteDel', 'Api\ConstructionController@deliveryNoteDel');
  51. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  52. $route->any('departList', 'Api\EmployeeController@departList');
  53. $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
  54. $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
  55. $route->any('productList', 'Api\ProductController@productList');
  56. $route->any('supplierList', 'Api\SupplierController@customerList');
  57. $route->any('customerList', 'Api\CustomerController@customerList');
  58. $route->any('sportsBagOrderList', 'Api\SportsBagController@orderList');
  59. $route->any('productAdd', 'Api\ProductController@productAdd');
  60. $route->any('productCategoryList', 'Api\ProductController@productCategoryList');
  61. //退换货
  62. $route->any('ReturnExchangeOrderList', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderList');
  63. $route->any('ReturnExchangeOrderEdit', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderEdit');
  64. $route->any('ReturnExchangeOrderDetail', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDetail');
  65. $route->any('ReturnExchangeOrderAdd', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderAdd');
  66. $route->any('ReturnExchangeOrderDel', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDel');
  67. //排班设置
  68. $route->any('scheduleList', 'Api\ScheduleController@getList');
  69. $route->any('scheduleEdit', 'Api\ScheduleController@edit');
  70. $route->any('scheduleDetail', 'Api\ScheduleController@detail');
  71. $route->any('scheduleAdd', 'Api\ScheduleController@add');
  72. $route->any('scheduleDel', 'Api\ScheduleController@del');
  73. $route->any('scheduleGetForConstruction', 'Api\ScheduleController@scheduleGetForConstruction');
  74. $route->any('getScheduleSetting', 'Api\ScheduleController@getScheduleSetting');
  75. //排期
  76. $route->any('pq','Api\DeleteController@pq');
  77. $route->any('menuList', 'Api\SysMenuController@menuList');
  78. //设置列表
  79. $route->any('productInventorySetList', 'Api\ProductInventoryController@productInventorySetList');
  80. $route->any('getMySetting', 'Api\ProductInventoryController@getMySetting');
  81. $route->any('getSettingTotal', 'Api\ScheduleController@getSettingTotal');
  82. $route->any('getSettingGetDetail', 'Api\ScheduleController@getSettingGetDetail');
  83. });