wx.php 4.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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::group(['middleware'=> ['checkWx']],function ($route){
  17. $route->any('oaCheck', 'Api\OaController@oaCheck');
  18. $route->any('oaOrderState', 'Api\OaController@oaOrderState');
  19. $route->any('checkAllOver', 'Api\OaController@checkAllOver');
  20. //不需要账号登录的
  21. //文件上传统一方法
  22. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  23. $route->any('saleOrderList', 'Api\WxController@saleOrderList');
  24. $route->any('checkAll', 'Api\CheckController@checkAll');
  25. //需要账号登录的
  26. //采购单
  27. $route->any('purchaseOrderList', 'Api\WxController@purchaseOrderList');
  28. $route->any('purchaseOrderEdit', 'Api\PurchaseOrderController@purchaseOrderEdit');
  29. $route->any('purchaseOrderDetail', 'Api\PurchaseOrderController@purchaseOrderDetail');
  30. $route->any('purchaseOrderAdd', 'Api\PurchaseOrderController@purchaseOrderAdd');
  31. $route->any('purchaseOrderDel', 'Api\PurchaseOrderController@purchaseOrderDel');
  32. //合同
  33. $route->any('salesOrderGet', 'Api\SalesOrderController@salesOrderGet');
  34. $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
  35. $route->any('salesOrderEdit', 'Api\SalesOrderController@salesOrderEdit');
  36. $route->any('salesOrderDetail', 'Api\SalesOrderController@salesOrderDetail');
  37. $route->any('salesOrderAdd', 'Api\SalesOrderController@salesOrderAdd');
  38. $route->any('salesOrderDel', 'Api\SalesOrderController@salesOrderDel');
  39. $route->any('constructionGet', 'Api\ConstructionController@constructionGet');
  40. $route->any('constructionList', 'Api\ConstructionController@constructionList');
  41. $route->any('constructionEdit', 'Api\ConstructionController@constructionEdit');
  42. $route->any('constructionDetail', 'Api\ConstructionController@constructionDetail');
  43. $route->any('constructionAdd', 'Api\ConstructionController@constructionAdd');
  44. $route->any('constructionDel', 'Api\ConstructionController@constructionDel');
  45. $route->any('deliveryNoteList', 'Api\ConstructionController@deliveryNoteList');
  46. $route->any('deliveryNoteDetail', 'Api\ConstructionController@deliveryNoteDetail');
  47. $route->any('deliveryNoteEdit', 'Api\ConstructionController@deliveryNoteEdit');
  48. $route->any('deliveryNoteDel', 'Api\ConstructionController@deliveryNoteDel');
  49. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  50. $route->any('departList', 'Api\EmployeeController@departList');
  51. $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
  52. $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
  53. $route->any('productList', 'Api\ProductController@productList');
  54. $route->any('supplierList', 'Api\SupplierController@customerList');
  55. $route->any('customerList', 'Api\CustomerController@customerList');
  56. $route->any('sportsBagOrderList', 'Api\SportsBagController@orderList');
  57. $route->any('productAdd', 'Api\ProductController@productAdd');
  58. $route->any('productCategoryList', 'Api\ProductController@productCategoryList');
  59. //退换货
  60. $route->any('ReturnExchangeOrderList', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderList');
  61. $route->any('ReturnExchangeOrderEdit', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderEdit');
  62. $route->any('ReturnExchangeOrderDetail', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDetail');
  63. $route->any('ReturnExchangeOrderAdd', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderAdd');
  64. $route->any('ReturnExchangeOrderDel', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDel');
  65. //排班设置
  66. $route->any('scheduleList', 'Api\ScheduleController@getList');
  67. $route->any('scheduleEdit', 'Api\ScheduleController@edit');
  68. $route->any('scheduleDetail', 'Api\ScheduleController@detail');
  69. $route->any('scheduleAdd', 'Api\ScheduleController@add');
  70. $route->any('scheduleDel', 'Api\ScheduleController@del');
  71. $route->any('scheduleGetForConstruction', 'Api\ScheduleController@scheduleGetForConstruction');
  72. $route->any('getScheduleSetting', 'Api\ScheduleController@getScheduleSetting');
  73. //排期
  74. $route->any('pq','Api\DeleteController@pq');
  75. $route->any('menuList', 'Api\SysMenuController@menuList');
  76. //设置列表
  77. $route->any('productInventorySetList', 'Api\ProductInventoryController@productInventorySetList');
  78. $route->any('getMySetting', 'Api\ProductInventoryController@getMySetting');
  79. });