api.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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::middleware('auth:api')->get('/user', function (Request $request) {
  14. return $request->user();
  15. });
  16. Route::any('login', 'Api\LoginController@login');
  17. Route::any('test', 'Api\TestController@aa');
  18. Route::any('getHeaderWord', 'Api\HeaderWordController@getHeaderWord');
  19. Route::any('deviceList', 'Api\Device\DeviceController@deviceList');
  20. Route::group(['middleware'=> ['checkLogin']],function ($route){
  21. $route->any('menuAdd', 'Api\SysMenuController@add');
  22. $route->any('menuEdit', 'Api\SysMenuController@edit');
  23. $route->any('menuDel', 'Api\SysMenuController@del');
  24. $route->any('menuList', 'Api\SysMenuController@menuList');
  25. $route->any('employeeAdd', 'Api\EmployeeController@employeeAdd');
  26. $route->any('employeeEdit', 'Api\EmployeeController@employeeEdit');
  27. $route->any('employeeDel', 'Api\EmployeeController@employeeDel');
  28. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  29. $route->any('departAdd', 'Api\EmployeeController@departAdd');
  30. $route->any('departEdit', 'Api\EmployeeController@departEdit');
  31. $route->any('departDel', 'Api\EmployeeController@departDel');
  32. $route->any('departList', 'Api\EmployeeController@departList');
  33. $route->any('roleAdd', 'Api\EmployeeController@roleAdd');
  34. $route->any('roleEdit', 'Api\EmployeeController@roleEdit');
  35. $route->any('roleDel', 'Api\EmployeeController@roleDel');
  36. $route->any('roleList', 'Api\EmployeeController@roleList');
  37. $route->any('teamAdd', 'Api\EmployeeController@teamAdd');
  38. $route->any('teamEdit', 'Api\EmployeeController@teamEdit');
  39. $route->any('teamDetail', 'Api\EmployeeController@teamDetail');
  40. $route->any('teamDel', 'Api\EmployeeController@teamDel');
  41. $route->any('teamList', 'Api\EmployeeController@teamList');
  42. $route->any('employeeDepart', 'Api\EmployeeController@employeeDepart');
  43. $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam');
  44. $route->any('employeeRole', 'Api\EmployeeController@employeeRole');
  45. $route->any('measureAdd', 'Api\MeasureController@Add');
  46. $route->any('measureEdit', 'Api\MeasureController@Edit');
  47. $route->any('measureDel', 'Api\MeasureController@Del');
  48. $route->any('measureList', 'Api\MeasureController@measureList');
  49. $route->any('basicMaterialList', 'Api\MaterialController@basicMaterialList');
  50. $route->any('basicMaterialEdit', 'Api\MaterialController@basicMaterialEdit');
  51. $route->any('basicMaterialAdd', 'Api\MaterialController@basicMaterialAdd');
  52. $route->any('basicMaterialDel', 'Api\MaterialController@basicMaterialDel');
  53. $route->any('materialList', 'Api\MaterialController@materialList');
  54. $route->any('materialDetail', 'Api\MaterialController@materialDetail');
  55. $route->any('materialEdit', 'Api\MaterialController@materialEdit');
  56. $route->any('materialAdd', 'Api\MaterialController@materialAdd');
  57. $route->any('materialDel', 'Api\MaterialController@materialDel');
  58. //工序
  59. $route->any('basicProcessList', 'Api\ProcessController@basicProcessList');
  60. $route->any('basicProcessEdit', 'Api\ProcessController@basicProcessEdit');
  61. $route->any('basicProcessAdd', 'Api\ProcessController@basicProcessAdd');
  62. $route->any('basicProcessDel', 'Api\ProcessController@basicProcessDel');
  63. $route->any('processList', 'Api\ProcessController@processList');
  64. $route->any('processDetail', 'Api\ProcessController@processDetail');
  65. $route->any('processEdit', 'Api\ProcessController@processEdit');
  66. $route->any('processAdd', 'Api\ProcessController@processAdd');
  67. $route->any('processDel', 'Api\ProcessController@processDel');
  68. //工艺
  69. $route->any('technologyList', 'Api\TechnologyController@technologyList');
  70. $route->any('technologyEdit', 'Api\TechnologyController@technologyEdit');
  71. $route->any('technologyAdd', 'Api\TechnologyController@technologyAdd');
  72. $route->any('technologyDel', 'Api\TechnologyController@technologyDel');
  73. $route->any('technologyCopy', 'Api\TechnologyController@technologyCopy');
  74. //设备档案
  75. $route->any('equipmentAdd', 'Api\EquipmentController@equipmentAdd');
  76. $route->any('equipmentEdit', 'Api\EquipmentController@equipmentEdit');
  77. $route->any('equipmentDel', 'Api\EquipmentController@equipmentDel');
  78. $route->any('equipmentList', 'Api\EquipmentController@equipmentList');
  79. //报废原因
  80. $route->any('scrappAdd', 'Api\ScrappController@scrappAdd');
  81. $route->any('scrappEdit', 'Api\ScrappController@scrappEdit');
  82. $route->any('scrappDel', 'Api\ScrappController@scrappDel');
  83. $route->any('scrappList', 'Api\ScrappController@scrappList');
  84. //福羊羊销售订单
  85. $route->any('fyyAdd', 'Api\FyyOrderController@add');
  86. $route->any('fyyEdit', 'Api\FyyOrderController@edit');
  87. $route->any('fyyDel', 'Api\FyyOrderController@del');
  88. $route->any('fyyList', 'Api\FyyOrderController@orderList');
  89. $route->any('fyyRefreshOnHandQuantity', 'Api\FyyOrderController@fyyRefreshOnHandQuantity');
  90. //生产订单
  91. $route->any('productionAdd', 'Api\ProductionOrderController@add');
  92. $route->any('productionEdit', 'Api\ProductionOrderController@edit');
  93. $route->any('productionDel', 'Api\ProductionOrderController@del');
  94. $route->any('productionList', 'Api\ProductionOrderController@orderList');
  95. //派工界面
  96. $route->any('dispatchAdd', 'Api\DispatchController@add');
  97. $route->any('dispatchEdit', 'Api\DispatchController@edit');
  98. $route->any('dispatchDel', 'Api\DispatchController@del');
  99. $route->any('dispatchList', 'Api\DispatchController@orderList');
  100. //工序派工单
  101. $route->any('dispatchOrderList', 'Api\DispatchController@dispatchOrderList');
  102. $route->any('dispatchOrderDel', 'Api\DispatchController@dispatchOrderDel');
  103. //工序完工
  104. $route->any('finishedOrderAdd', 'Api\FinishedOrderController@add');
  105. $route->any('finishedOrderEdit', 'Api\FinishedOrderController@edit');
  106. $route->any('finishedOrderDel', 'Api\FinishedOrderController@del');
  107. $route->any('finishedOrderList', 'Api\FinishedOrderController@orderList');
  108. $route->any('productList', 'Api\MaterialController@productList');
  109. $route->any('productEdit', 'Api\MaterialController@edit');
  110. $route->any('productAdd', 'Api\MaterialController@edd');
  111. $route->any('productDel', 'Api\MaterialController@del');
  112. $route->any('bomList', 'Api\BomController@bomList');
  113. $route->any('bomDetail', 'Api\BomController@bomDetail');
  114. $route->any('bomEdit', 'Api\BomController@edit');
  115. $route->any('bomAdd', 'Api\BomController@add');
  116. $route->any('bomDel', 'Api\BomController@del');
  117. $route->any('orderList', 'Api\OrderController@orderList');
  118. $route->any('orderAdd', 'Api\OrderController@add');
  119. $route->any('orderEdit', 'Api\OrderController@add');
  120. $route->any('orderDel', 'Api\OrderController@del');
  121. $route->any('orderDetail', 'Api\OrderController@orderDetail');
  122. $route->any('tagDetail', 'Api\OrderTagController@tagDetail');
  123. $route->any('transportDetail', 'Api\OrderTransportController@transportDetail');
  124. $route->any('boxTransport', 'Api\OrderTransportController@boxTransport');
  125. $route->any('transportConfirm', 'Api\OrderTransportController@transportConfirm');
  126. $route->any('deviceList', 'Api\Device\DeviceController@deviceList');
  127. //请求表头信息
  128. $route->any('getHeaderWord', 'Api\HeaderWordController@getHeaderWord');
  129. //包装相关
  130. $route->any('boxDetail', 'Api\BoxController@boxDetail');
  131. $route->any('boxIn', 'Api\BoxController@boxIn');
  132. });