api.php 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. //站点获取
  18. Route::any('getSite', 'Api\JRFIDController@getSite');
  19. Route::any('getPrintData', 'Api\JRFIDController@getPrintData');
  20. Route::any('getSepOrderDtData', 'Api\JRFIDController@getPrintData2');
  21. Route::any('screenPrint', 'Api\JRFIDController@screenPrint');
  22. Route::any('screenPrintSepData', 'Api\JRFIDController@screenPrintSepData');
  23. Route::any('pdfLogo', 'Api\ThirdController@pdfLogo');
  24. Route::any('pdfData', 'Api\ThirdController@pdfData');
  25. Route::any('testdwy','Api\TestController@testdwy');
  26. Route::any('testdwyget','Api\TestController@testdwyget');
  27. Route::any('testdwyput','Api\TestController@testdwyput');
  28. Route::group(['middleware'=> ['CheckJRFIDLogin']],function ($route){
  29. //站点获取登录后
  30. $route->any('getSiteByLogin', 'Api\JRFIDController@getSite2');
  31. //工艺流程单
  32. $route->any('getFlowByProduce', 'Api\JRFIDController@getFlowByProduce');
  33. //生产订单
  34. $route->any('getProduceByContract', 'Api\JRFIDController@getProduceByContract');
  35. //获取班组
  36. $route->any('getTeam', 'Api\JRFIDController@getTeam');
  37. //获取部门
  38. $route->any('getDepart', 'Api\JRFIDController@getDepart');
  39. //获取工序分类
  40. $route->any('getProcedureClass', 'Api\JRFIDController@getProcedureClass');
  41. //生产进度报表
  42. $route->any('furnProduceScheduleList', 'Api\JRFIDController@furnProduceScheduleList');
  43. //完工
  44. $route->any('completionOrders', 'Api\JRFIDController@completionOrders');
  45. //扫码完工
  46. $route->any('scanScreenCompleted', 'Api\JRFIDController@scanScreenCompleted');
  47. //(根据芯片id、type、合同号、图号、工序查询派工单及其详情数据)
  48. $route->any('screenGetDispatchDtData', 'Api\JRFIDController@screenGetDispatchDtData');
  49. //质检
  50. $route->any('qualityOrders', 'Api\JRFIDController@qualityOrders');
  51. //(查询合同号、图号、房间号)
  52. $route->any('getContractDrawRoom', 'Api\JRFIDController@getContractDrawRoom');
  53. // 批量派工单—查询合同编号,图号,房间号、工序
  54. $route->any('getDispatchContractDrawRoom', 'Api\JRFIDController@getDispatchContractDrawRoom');
  55. //(根据合同号、图号、房间号查询工艺流程单数据)
  56. $route->any('screenGetProFlow', 'Api\JRFIDController@screenGetProFlow');
  57. //收发货
  58. $route->any('screenSend', 'Api\JRFIDController@screenSend');
  59. //包装
  60. $route->any('screenPackage', 'Api\JRFIDController@screenPackage');
  61. //(根据合同号、图号、房间号查询包装单数据)
  62. $route->any('screenGetPackageData', 'Api\JRFIDController@screenGetPackageData');
  63. //(查询工艺流程单详情信息)
  64. $route->any('screenGetProDtData', 'Api\JRFIDController@screenGetProDtData');
  65. //根据组件id、type和合同号查询工艺流程单详情数据
  66. $route->any('screenGetPackageAssem', 'Api\JRFIDController@screenGetPackageAssem');
  67. });