api.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. //文件获取
  20. Route::any('uploadFiles/{file_name}', 'Api\FileUploadController@getFile');
  21. Route::group(['middleware'=> ['checkLogin']],function ($route){
  22. //oa
  23. $route->any('oaGetData', 'Api\OaController@oaGetData');
  24. $route->any('getOperationList', 'Api\OperationLogController@getOperationList');
  25. $route->any('createOaOrder', 'Api\OaController@createOaOrder');
  26. $route->any('oaCheck', 'Api\OaController@oaCheck');
  27. $route->any('oaOrderList', 'Api\OaController@oaOrderList');
  28. $route->any('oaList', 'Api\OaController@oaList');
  29. $route->any('oaDel', 'Api\OaController@oaDel');
  30. $route->any('oaEdit', 'Api\OaController@oaEdit');
  31. $route->any('oaDetail', 'Api\OaController@oaDetail');
  32. $route->any('setOperationList', 'Api\OperationLogController@setOperationList');
  33. $route->any('oaOrderState', 'Api\OaController@oaOrderState');
  34. $route->any('oaGetTeamDetail', 'Api\OaController@oaGetTeamDetail');
  35. $route->any('checkAllOver', 'Api\OaController@checkAllOver');
  36. $route->any('oaCheckMove', 'Api\OaController@oaCheckMove');
  37. $route->any('oaSubUserDetail', 'Api\OaController@oaSubUserDetail');
  38. $route->any('oaSubRemark', 'Api\OaController@oaSubRemark');
  39. $route->any('reportList', 'Api\OaController@reportList');
  40. $route->any('reportCount', 'Api\OaController@reportCount');
  41. $route->any('reportCheck', 'Api\OaController@reportCheck');
  42. $route->any('reportTime', 'Api\OaController@reportTime');
  43. //审批流参数
  44. $route->any('oaParamGet','Api\OaController@oaParamGet');
  45. $route->any('getHeaderSetting', 'Api\HeaderWordController@getHeaderSettings');
  46. $route->any('excelExport', 'Api\ExcelController@excelExport');
  47. $route->any('HeaderSettingsAdd', 'Api\HeaderWordController@add');
  48. $route->any('HeaderSettingsDetail', 'Api\HeaderWordController@detail');
  49. //文件上传统一方法
  50. $route->any('uploadFile', 'Api\FileUploadController@uploadFile');
  51. $route->any('menuAdd', 'Api\SysMenuController@add');
  52. $route->any('menuEdit', 'Api\SysMenuController@edit');
  53. $route->any('menuDel', 'Api\SysMenuController@del');
  54. $route->any('menuList', 'Api\SysMenuController@menuList');
  55. $route->any('menuMove', 'Api\SysMenuController@menuMove');
  56. $route->any('employeeAdd', 'Api\EmployeeController@employeeAdd');
  57. $route->any('employeeEdit', 'Api\EmployeeController@employeeEdit');
  58. $route->any('employeeDel', 'Api\EmployeeController@employeeDel');
  59. $route->any('employeeList', 'Api\EmployeeController@employeeList');
  60. $route->any('departAdd', 'Api\EmployeeController@departAdd');
  61. $route->any('departEdit', 'Api\EmployeeController@departEdit');
  62. $route->any('departDel', 'Api\EmployeeController@departDel');
  63. $route->any('departList', 'Api\EmployeeController@departList');
  64. $route->any('roleAdd', 'Api\EmployeeController@roleAdd');
  65. $route->any('roleEdit', 'Api\EmployeeController@roleEdit');
  66. $route->any('roleDel', 'Api\EmployeeController@roleDel');
  67. $route->any('roleList', 'Api\EmployeeController@roleList');
  68. $route->any('roleDetail', 'Api\EmployeeController@roleDetail');
  69. $route->any('roleMenu', 'Api\EmployeeController@roleMenu');
  70. $route->any('teamAdd', 'Api\EmployeeController@teamAdd');
  71. $route->any('teamEdit', 'Api\EmployeeController@teamEdit');
  72. $route->any('teamDel', 'Api\EmployeeController@teamDel');
  73. $route->any('teamList', 'Api\EmployeeController@teamList');
  74. $route->any('teamDetail', 'Api\EmployeeController@teamDetail');
  75. $route->any('employeeDepart', 'Api\EmployeeController@employeeDepart');
  76. $route->any('employeeTeam', 'Api\EmployeeController@employeeTeam');
  77. $route->any('employeeRole', 'Api\EmployeeController@employeeRole');
  78. //仓库档案
  79. $route->any('storehouseList', 'Api\StorehouseController@storehouseList');
  80. $route->any('storehouseDetail', 'Api\StorehouseController@storehouseDetail');
  81. $route->any('storehouseAdd', 'Api\StorehouseController@add');
  82. $route->any('storehouseEdit', 'Api\StorehouseController@edit');
  83. $route->any('storehouseDel', 'Api\StorehouseController@del');
  84. //单据状态变动
  85. $route->any('checkAll', 'Api\CheckController@checkAll');
  86. //基础类型
  87. $route->any('basicTypeList', 'Api\BasicTypeController@basicTypeList');
  88. $route->any('basicTypeEdit', 'Api\BasicTypeController@basicTypeEdit');
  89. $route->any('basicTypeAdd', 'Api\BasicTypeController@basicTypeAdd');
  90. $route->any('basicTypeDel', 'Api\BasicTypeController@basicTypeDel');
  91. //跟进记录
  92. $route->any('followUpRecordList', 'Api\FollowUpRecordController@followUpRecordList');
  93. $route->any('followUpRecordEdit', 'Api\FollowUpRecordController@followUpRecordEdit');
  94. $route->any('followUpRecordAdd', 'Api\FollowUpRecordController@followUpRecordAdd');
  95. $route->any('followUpRecordDetail', 'Api\FollowUpRecordController@followUpRecordDetail');
  96. $route->any('followUpRecordDel', 'Api\FollowUpRecordController@followUpRecordDel');
  97. //客户
  98. $route->any('customerList', 'Api\CustomerController@customerList');
  99. $route->any('customerEdit', 'Api\CustomerController@customerEdit');
  100. $route->any('customerAdd', 'Api\CustomerController@customerAdd');
  101. $route->any('customerDel', 'Api\CustomerController@customerDel');
  102. $route->any('customerDetail', 'Api\CustomerController@customerDetail');
  103. $route->any('customerGrabbing', 'Api\CustomerController@customerGrabbing');
  104. //供应商
  105. $route->any('supplierList', 'Api\SupplierController@customerList');
  106. $route->any('supplierEdit', 'Api\SupplierController@customerEdit');
  107. $route->any('supplierAdd', 'Api\SupplierController@customerAdd');
  108. $route->any('supplierDel', 'Api\SupplierController@customerDel');
  109. $route->any('supplierDetail', 'Api\SupplierController@customerDetail');
  110. //联系人
  111. $route->any('contactsList', 'Api\ContactsController@contactsList');
  112. $route->any('contactsEdit', 'Api\ContactsController@contactsEdit');
  113. $route->any('contactsAdd', 'Api\ContactsController@contactsAdd');
  114. $route->any('contactsDel', 'Api\ContactsController@contactsDel');
  115. $route->any('contactsDetail', 'Api\ContactsController@contactsDetail');
  116. //产品分类
  117. $route->any('productCategoryList', 'Api\ProductController@productCategoryList');
  118. $route->any('productCategoryEdit', 'Api\ProductController@productCategoryEdit');
  119. $route->any('productCategoryAdd', 'Api\ProductController@productCategoryAdd');
  120. $route->any('productCategoryDel', 'Api\ProductController@productCategoryDel');
  121. //产品名称
  122. $route->any('productList', 'Api\ProductController@productList');
  123. $route->any('productEdit', 'Api\ProductController@productEdit');
  124. $route->any('productAdd', 'Api\ProductController@productAdd');
  125. $route->any('productDel', 'Api\ProductController@productDel');
  126. $route->any('productDetail', 'Api\ProductController@productDetail');
  127. $route->any('productList2', 'Api\ProductController@productList2');
  128. //采购单
  129. $route->any('purchaseOrderList', 'Api\PurchaseOrderController@purchaseOrderList');
  130. $route->any('purchaseOrderEdit', 'Api\PurchaseOrderController@purchaseOrderEdit');
  131. $route->any('purchaseOrderDetail', 'Api\PurchaseOrderController@purchaseOrderDetail');
  132. $route->any('purchaseOrderAdd', 'Api\PurchaseOrderController@purchaseOrderAdd');
  133. $route->any('purchaseOrderDel', 'Api\PurchaseOrderController@purchaseOrderDel');
  134. //特殊采购单
  135. $route->any('purchaseOrderSpecialList', 'Api\PurchaseOrderSpecialController@purchaseOrderList');
  136. $route->any('purchaseOrderSpecialDetail', 'Api\PurchaseOrderSpecialController@purchaseOrderDetail');
  137. //发货单
  138. $route->any('invoiceOrderList', 'Api\InvoiceOrderController@invoiceOrderList');
  139. $route->any('invoiceOrderEdit', 'Api\InvoiceOrderController@invoiceOrderEdit');
  140. $route->any('invoiceOrderDetail', 'Api\InvoiceOrderController@invoiceOrderDetail');
  141. $route->any('invoiceOrderAdd', 'Api\InvoiceOrderController@invoiceOrderAdd');
  142. $route->any('invoiceOrderDel', 'Api\InvoiceOrderController@invoiceOrderDel');
  143. //收货单
  144. $route->any('takeOrderList', 'Api\TakeOrderController@takeOrderList');
  145. $route->any('takeOrderEdit', 'Api\TakeOrderController@takeOrderEdit');
  146. $route->any('takeOrderDetail', 'Api\TakeOrderController@takeOrderDetail');
  147. $route->any('takeOrderAdd', 'Api\TakeOrderController@takeOrderAdd');
  148. $route->any('takeOrderDel', 'Api\TakeOrderController@takeOrderDel');
  149. //合同
  150. $route->any('salesOrderGet', 'Api\SalesOrderController@salesOrderGet');
  151. $route->any('salesOrderList', 'Api\SalesOrderController@salesOrderList');
  152. $route->any('salesOrderEdit', 'Api\SalesOrderController@salesOrderEdit');
  153. $route->any('salesOrderDetail', 'Api\SalesOrderController@salesOrderDetail');
  154. $route->any('salesOrderAdd', 'Api\SalesOrderController@salesOrderAdd');
  155. $route->any('salesOrderDel', 'Api\SalesOrderController@salesOrderDel');
  156. //派单销售
  157. $route->any('salesOrderDispatchSale', 'Api\SalesOrderController@salesOrderDispatchSale');
  158. //派单总部或分社
  159. $route->any('salesOrderDispatchCompany', 'Api\SalesOrderController@salesOrderDispatchCompany');
  160. //施工单
  161. $route->any('constructionGet', 'Api\ConstructionController@constructionGet');
  162. $route->any('constructionList', 'Api\ConstructionController@constructionList');
  163. $route->any('constructionEdit', 'Api\ConstructionController@constructionEdit');
  164. $route->any('constructionDetail', 'Api\ConstructionController@constructionDetail');
  165. $route->any('constructionAdd', 'Api\ConstructionController@constructionAdd');
  166. $route->any('constructionDel', 'Api\ConstructionController@constructionDel');
  167. //退换货
  168. $route->any('ReturnExchangeOrderList', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderList');
  169. $route->any('ReturnExchangeOrderEdit', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderEdit');
  170. $route->any('ReturnExchangeOrderDetail', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDetail');
  171. $route->any('ReturnExchangeOrderAdd', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderAdd');
  172. $route->any('ReturnExchangeOrderDel', 'Api\ReturnExchangeOrderController@ReturnExchangeOrderDel');
  173. //活动包
  174. $route->any('sportsBagOrderList', 'Api\SportsBagController@orderList');
  175. $route->any('sportsBagEdit', 'Api\SportsBagController@edit');
  176. $route->any('sportsBagDetail', 'Api\SportsBagController@detail');
  177. $route->any('sportsBagAdd', 'Api\SportsBagController@add');
  178. $route->any('sportsBagDel', 'Api\SportsBagController@del');
  179. //活动价列表
  180. $route->any('productActivityList', 'Api\ProductActivityController@productList');
  181. $route->any('productActivityEdit', 'Api\ProductActivityController@productEdit');
  182. $route->any('productActivityAdd', 'Api\ProductActivityController@productAdd');
  183. $route->any('productActivityDel', 'Api\ProductActivityController@productDel');
  184. $route->any('productActivityDetail', 'Api\ProductActivityController@productDetail');
  185. //金额记账
  186. $route->any('BookingList', 'Api\BookingListController@customerList');
  187. $route->any('BookingAdd', 'Api\BookingListController@customerAdd');
  188. $route->any('BookingEdit', 'Api\BookingListController@customerEdit');
  189. $route->any('BookingDel', 'Api\BookingListController@customerDel');
  190. $route->any('BookingDetail', 'Api\BookingListController@customerDetail');
  191. $route->any('BookingConfirm', 'Api\BookingListController@customerConfirm');
  192. //排班设置
  193. $route->any('scheduleList', 'Api\ScheduleController@getList');
  194. $route->any('scheduleEdit', 'Api\ScheduleController@edit');
  195. $route->any('scheduleDetail', 'Api\ScheduleController@detail');
  196. $route->any('scheduleAdd', 'Api\ScheduleController@add');
  197. $route->any('scheduleDel', 'Api\ScheduleController@del');
  198. //现存量
  199. $route->any('productInventoryList', 'Api\ProductInventoryController@productInventoryList');
  200. //库存台账
  201. $route->any('productInventoryStockList', 'Api\ProductInventoryController@productInventoryStockList');
  202. //收发存汇总
  203. $route->any('productInAndOutList', 'Api\ProductInventoryController@productInAndOutList');
  204. //设置列表
  205. $route->any('productInventorySetList', 'Api\ProductInventoryController@productInventorySetList');
  206. //设置开关
  207. $route->any('productInventorySet', 'Api\ProductInventoryController@productInventorySet');
  208. //可见范围
  209. $route->any('seeRange', 'Api\RangeController@seeRange');
  210. //删除人
  211. $route->any('getMan','Api\DeleteController@getMan');
  212. $route->any('delMan','Api\DeleteController@delete');
  213. //移交 分配
  214. $route->any('fpMan','Api\DeleteController@fp');
  215. $route->any('yjMan','Api\DeleteController@yj');
  216. //导入
  217. $route->any('import','Api\ImportController@import');
  218. //获取默认表头
  219. $route->any('getTableHead','Api\TableHeadController@tableHeadGet');
  220. //设置表头
  221. $route->any('setTableHead','Api\TableHeadController@tableHeadAdd');
  222. //获取审核单据的详情
  223. $route->any('checkDetail', 'Api\CheckController@getOrderDetail');
  224. //数据同步到U8
  225. $route->any('dataToU8','Api\DataSyncToU8Controller@add');
  226. });