wx.php 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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::any('getTopMessage', 'Api\WxController@getTopMessage');
  19. Route::group(['middleware'=> ['checkWx']],function ($route){
  20. $route->any('oaCheck', 'Api\OaController@oaCheck');
  21. $route->any('oaOrderState', 'Api\OaController@oaOrderState');
  22. $route->any('checkAllOver', 'Api\OaController@checkAllOver');
  23. //不需要账号登录的
  24. //文件上传统一方法
  25. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  26. $route->any('saleOrderList', 'Api\WxController@saleOrderList');
  27. $route->any('checkAll', 'Api\CheckController@checkAll')->middleware('OssFileDeal');
  28. //可见范围
  29. $route->any('seeRange', 'Api\RangeController@seeRange');
  30. //需要账号登录的
  31. //采购单
  32. $route->any('purchaseOrderList', 'Api\WxController@purchaseOrderList');
  33. $route->any('purchaseOrderEdit', 'Api\PurchaseOrderController@purchaseOrderEdit')->middleware('OssFileDeal');
  34. $route->any('purchaseOrderDetail', 'Api\PurchaseOrderController@purchaseOrderDetail');
  35. $route->any('purchaseOrderAdd', 'Api\PurchaseOrderController@purchaseOrderAdd')->middleware('OssFileDeal');
  36. $route->any('purchaseOrderDel', 'Api\PurchaseOrderController@purchaseOrderDel')->middleware('OssFileDeal');
  37. //合同
  38. $route->any('salesOrderGet', 'Api\SalesOrderController@salesOrderGet');
  39. $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
  40. $route->any('salesOrderEdit', 'Api\SalesOrderController@salesOrderEdit');
  41. $route->any('salesOrderDetail', 'Api\SalesOrderController@salesOrderDetail');
  42. $route->any('salesOrderAdd', 'Api\SalesOrderController@salesOrderAdd');
  43. $route->any('salesOrderDel', 'Api\SalesOrderController@salesOrderDel');
  44. $route->any('salesOrderDispatchCompany', 'Api\SalesOrderController@salesOrderDispatchCompany');
  45. $route->any('salesOrderGetBuildFee', 'Api\SalesOrderController@salesOrderGetBuildFee');
  46. $route->any('constructionOperation', 'Api\ConstructionController@constructionOperation');
  47. $route->any('constructionGet', 'Api\ConstructionController@constructionGet');
  48. $route->any('constructionList', 'Api\ConstructionController@constructionList');
  49. $route->any('constructionEdit', 'Api\ConstructionController@constructionEdit')->middleware('OssFileDeal');
  50. $route->any('constructionDetail', 'Api\ConstructionController@constructionDetail');
  51. $route->any('constructionAdd', 'Api\ConstructionController@constructionAdd')->middleware('OssFileDeal');
  52. $route->any('constructionDel', 'Api\ConstructionController@constructionDel')->middleware('OssFileDeal');
  53. $route->any('deliveryNoteList', 'Api\ConstructionController@deliveryNoteList');
  54. $route->any('deliveryNoteDetail', 'Api\ConstructionController@deliveryNoteDetail');
  55. $route->any('deliveryNoteEdit', 'Api\ConstructionController@deliveryNoteEdit')->middleware('OssFileDeal');
  56. $route->any('deliveryNoteDel', 'Api\ConstructionController@deliveryNoteDel')->middleware('OssFileDeal');
  57. $route->any('constructionEditOther', 'Api\ConstructionController@constructionEditOther');
  58. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  59. $route->any('departList', 'Api\EmployeeController@departList');
  60. $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
  61. $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
  62. $route->any('basicTypeCustomerList', 'Api\BasicTypeController@basicTypeCustomerList');
  63. $route->any('productList', 'Api\ProductController@productList');
  64. $route->any('supplierList', 'Api\SupplierController@customerList');
  65. $route->any('customerCapitalList', 'Api\CustomerController@customerList2');
  66. $route->any('sportsBagOrderList', 'Api\SportsBagController@orderList');
  67. $route->any('productAdd', 'Api\ProductController@productAdd')->middleware('OssFileDeal');
  68. $route->any('productCategoryList', 'Api\ProductController@productCategoryList');
  69. $route->any('productList2', 'Api\ProductController@productList2');
  70. //退换货
  71. $route->any('ReturnExchangeOrderList', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderList');
  72. $route->any('ReturnExchangeOrderEdit', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderEdit');
  73. $route->any('ReturnExchangeOrderDetail', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDetail');
  74. $route->any('ReturnExchangeOrderAdd', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderAdd');
  75. $route->any('ReturnExchangeOrderDel', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDel');
  76. //盘点单
  77. $route->any('inventoryList', 'Api\InventoryController@inventoryList');
  78. $route->any('inventoryEdit', 'Api\InventoryController@inventoryEdit');
  79. $route->any('inventoryDetail', 'Api\InventoryController@inventoryDetail');
  80. $route->any('inventoryAdd', 'Api\InventoryController@inventoryAdd');
  81. $route->any('inventoryDel', 'Api\InventoryController@inventoryDel');
  82. //排班设置
  83. $route->any('scheduleList', 'Api\ScheduleController@getList');
  84. $route->any('scheduleEdit', 'Api\ScheduleController@edit');
  85. $route->any('scheduleDetail', 'Api\ScheduleController@detail');
  86. $route->any('scheduleAdd', 'Api\ScheduleController@add');
  87. $route->any('scheduleDel', 'Api\ScheduleController@del');
  88. $route->any('scheduleGetForConstruction', 'Api\ScheduleController@scheduleGetForConstruction');
  89. $route->any('getScheduleSetting', 'Api\ScheduleController@getScheduleSetting');
  90. //排期
  91. $route->any('pq','Api\DeleteController@pq');
  92. $route->any('fpMan','Api\DeleteController@fp');
  93. $route->any('menuList', 'Api\SysMenuController@menuList');
  94. //设置列表
  95. $route->any('productInventorySetList', 'Api\ProductInventoryController@productInventorySetList');
  96. $route->any('getMySetting', 'Api\ProductInventoryController@getMySetting');
  97. $route->any('getSettingTotal', 'Api\ScheduleController@getSettingTotal');
  98. $route->any('getSettingGetDetail', 'Api\ScheduleController@getSettingGetDetail');
  99. $route->any('getSettingTotal2', 'Api\ScheduleController@getSettingTotal2');
  100. $route->any('getSettingGetDetail2', 'Api\ScheduleController@getSettingGetDetail2');
  101. //客户
  102. $route->any('customerList', 'Api\CustomerController@customerList');
  103. $route->any('customerEdit', 'Api\CustomerController@customerEdit')->middleware('OssFileDeal');
  104. $route->any('customerAdd', 'Api\CustomerController@customerAdd')->middleware('OssFileDeal');
  105. $route->any('customerDel', 'Api\CustomerController@customerDel')->middleware('OssFileDeal');
  106. $route->any('customerDetail', 'Api\CustomerController@customerDetail');
  107. $route->any('customerGrabbing', 'Api\CustomerController@customerGrabbing');
  108. //收付款
  109. $route->any('paymentReceiptGet', 'Api\PaymentReceiptController@paymentReceiptGet');
  110. $route->any('paymentReceiptList', 'Api\PaymentReceiptController@paymentReceiptList');
  111. $route->any('paymentReceiptAdd', 'Api\PaymentReceiptController@paymentReceiptAdd')->middleware('OssFileDeal');
  112. $route->any('paymentReceiptEdit', 'Api\PaymentReceiptController@paymentReceiptEdit')->middleware('OssFileDeal');
  113. $route->any('paymentReceiptDel', 'Api\PaymentReceiptController@paymentReceiptDel')->middleware('OssFileDeal');
  114. $route->any('paymentReceiptDetail', 'Api\PaymentReceiptController@paymentReceiptDetail');
  115. //跟进记录
  116. $route->any('followUpRecordAdd', 'Api\FollowUpRecordController@followUpRecordAdd')->middleware('OssFileDeal');
  117. $route->any('productCategoryList2', 'Api\ProductController@productCategoryList2');
  118. $route->any('getLoginMan','Api\EmployeeController@getLoginMan');
  119. $route->any('followUpRecordList', 'Api\FollowUpRecordController@followUpRecordList');
  120. $route->any('followUpRecordDetail', 'Api\FollowUpRecordController@followUpRecordDetail');
  121. $route->any('productGroupByList', 'Api\ProductController@productGroupByList');//选择列表页
  122. $route->any('productGroupByListDetail', 'Api\ProductController@productGroupByListDetail');//选择列表页详情
  123. });