web.php 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. use Illuminate\Support\Facades\Auth;
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Web Routes
  7. |--------------------------------------------------------------------------
  8. |
  9. | Here is where you can register web routes for your application. These
  10. | routes are loaded by the RouteServiceProvider within a group which
  11. | contains the "web" middleware group. Now create something great!
  12. |
  13. */
  14. Route::get('/', function () {
  15. return redirect('login');
  16. });
  17. Route::any('test/{method}', 'TestController@method'); //测试
  18. Auth::routes();
  19. Route::get('/home', 'HomeController@index')->name('home');
  20. Route::get('/homeTemp', 'HomeController@home');
  21. /** 密码 */
  22. Route::group(['prefix'=>'password'],function(){
  23. Route::get('change', 'Auth\PasswordController@change');
  24. Route::post('update', 'Auth\PasswordController@update');
  25. });
  26. /** 全局 */
  27. Route::get('denied',function (){return view('exception.authority');});
  28. /** 基础设置 */
  29. Route::group(['prefix'=>'maintenance'],function(){
  30. /** 商品 */
  31. Route::group(['prefix'=>'commodity'],function(){
  32. /** 导出 */
  33. Route::group(['prefix'=>'import'],function(){
  34. Route::post('excel', 'CommodityController@importExcel');
  35. });
  36. Route::get('import', 'CommodityController@import');
  37. Route::post('syncWMS','CommodityController@syncWMS');
  38. Route::post('isExist','CommodityController@isExist');
  39. });
  40. /** 货主 */
  41. Route::group(['prefix'=>'owners'],function(){
  42. Route::get('recycle','OwnerController@recycle');
  43. Route::post('restoreSelected', 'OwnerController@restoreSelected');
  44. });
  45. Route::group(['prefix'=>'owner'],function (){
  46. Route::post("get","OwnerController@get");
  47. Route::post("apiStore","OwnerController@apiStore");
  48. });
  49. /** 教程 */
  50. Route::group(['prefix'=>'tutorial'],function(){
  51. Route::post('showContent/{id}', 'TutorialController@showContent');
  52. });
  53. /** 临时工 */
  54. Route::group(['prefix'=>'userLabor'],function(){
  55. Route::post('getWorkRecord', 'UserLaborController@getWorkRecord');
  56. Route::post('getClockRecord', 'UserLaborController@getClockRecord');
  57. Route::post('relieve', 'UserLaborController@relieve');
  58. });
  59. /** 纸箱 */
  60. Route::group(['prefix'=>'paperBox'],function(){
  61. /** 首页 */
  62. Route::group(['prefix'=>'index'],function(){
  63. Route::get('model', 'PaperBoxController@indexModel');
  64. Route::get('owner', 'PaperBoxController@indexOwner');
  65. });
  66. /** excel */
  67. Route::group(['prefix'=>'excel'],function(){
  68. Route::post('import','PaperBoxController@import');
  69. Route::get('goImport',function (){return view('maintenance.paperBox.import');});
  70. });
  71. });
  72. /** 计费模型 */
  73. Route::group(['prefix'=>'priceModel'],function() {
  74. Route::group(['prefix'=>'waybillPriceModel'],function(){
  75. /** excel */
  76. Route::group(['prefix'=>'excel'],function(){
  77. Route::get('goImport',function (){return view('maintenance.priceModel.waybillPriceModel.import');});
  78. });
  79. Route::get('cities/{province_id}','WaybillPriceModelsController@getCities');
  80. });
  81. Route::resource('waybillPriceModel','WaybillPriceModelsController');
  82. Route::group(['prefix'=>'storage'],function(){
  83. Route::get('create','PriceModelController@storageCreate');
  84. Route::post('store','PriceModelController@storageStore');
  85. Route::get('{id}/edit','PriceModelController@storageEdit');
  86. Route::delete("{id}","PriceModelController@storageDestroy");
  87. Route::post('update','PriceModelController@storageUpdate');
  88. });
  89. Route::get('storage','PriceModelController@storageIndex');
  90. Route::group(['prefix'=>'operation'],function(){
  91. Route::get('create','PriceModelController@operationCreate');
  92. Route::post('getItems','PriceModelController@getItems');
  93. Route::post('updateItem','PriceModelController@updateItem');
  94. Route::post('createItem','PriceModelController@createItem');
  95. Route::post('getFeatures','PriceModelController@getFeatures');
  96. Route::post('addFeature','PriceModelController@addFeature');
  97. Route::post('getFeature','PriceModelController@getFeature');
  98. Route::delete('{id}','PriceModelController@operationDestroy');
  99. Route::get('{id}/edit','PriceModelController@operationEdit');
  100. Route::post('{id}/edit','PriceModelController@operationUpdate');
  101. });
  102. Route::get('operation','PriceModelController@operationIndex');
  103. Route::post('operation','PriceModelController@operationStore');
  104. Route::group(['prefix'=>'express'],function(){
  105. Route::get('create','PriceModelController@expressCreate');
  106. Route::post('getDetail','PriceModelController@expressGetDetail');
  107. Route::post('import','PriceModelController@expressImport');
  108. Route::post('updateDetail','PriceModelController@expressUpdateDetail');
  109. Route::post('destroyDetail','PriceModelController@expressDestroyDetail');
  110. Route::delete('{id}','PriceModelController@expressDestroy');
  111. Route::get('{id}/edit','PriceModelController@expressEdit');
  112. Route::post('{id}/edit','PriceModelController@expressUpdate');
  113. Route::get('export/{id}','PriceModelController@expressExport');
  114. });
  115. Route::get('express','PriceModelController@expressIndex');
  116. Route::post('express','PriceModelController@expressStore');
  117. Route::group(['prefix'=>'logistic'],function(){
  118. Route::get('create','PriceModelController@logisticCreate');
  119. Route::delete('{id}','PriceModelController@logisticDestroy');
  120. Route::get('{id}/edit','PriceModelController@logisticEdit');
  121. Route::post('{id}/edit','PriceModelController@logisticUpdate');
  122. Route::post('getDetail','PriceModelController@logisticGetDetail');
  123. Route::post('import','PriceModelController@logisticImport');
  124. Route::post('updateDetail','PriceModelController@logisticUpdateDetail');
  125. Route::post('destroyDetail','PriceModelController@logisticDestroyDetail');
  126. Route::get('export/{id}','PriceModelController@logisticExport');
  127. });
  128. Route::get('logistic','PriceModelController@logisticIndex');
  129. Route::post('logistic','PriceModelController@logisticStore');
  130. Route::group(['prefix'=>'directLogistic'],function(){
  131. Route::get('create','PriceModelController@directLogisticCreate');
  132. Route::delete('{id}','PriceModelController@directLogisticDestroy');
  133. Route::get('{id}/edit','PriceModelController@directLogisticEdit');
  134. Route::post('{id}/edit','PriceModelController@directLogisticUpdate');
  135. Route::post('getDetail','PriceModelController@directLogisticGetDetail');
  136. Route::post('import','PriceModelController@directLogisticImport');
  137. Route::post('updateDetail','PriceModelController@directLogisticUpdateDetail');
  138. Route::post('destroyDetail','PriceModelController@directLogisticDestroyDetail');
  139. });
  140. Route::get('directLogistic','PriceModelController@directLogisticIndex');
  141. Route::post('directLogistic','PriceModelController@directLogisticStore');
  142. //api 录入计费模型
  143. Route::post('apiStoreStorage','PriceModelController@apiStoreStorage');
  144. Route::post('apiStoreOperation','PriceModelController@apiStoreOperation');
  145. Route::post('apiStoreExpress','PriceModelController@apiStoreExpress');
  146. Route::post('apiStoreLogistic','PriceModelController@apiStoreLogistic');
  147. Route::post('apiStoreDirectLogistic','PriceModelController@apiStoreDirectLogistic');
  148. //api 获取计费模型
  149. Route::post('apiGetStorage','PriceModelController@apiGetStorage');
  150. Route::post('apiGetOperation','PriceModelController@apiGetOperation');
  151. Route::post('apiGetExpress','PriceModelController@apiGetExpress');
  152. Route::post('apiGetLogistic','PriceModelController@apiGetLogistic');
  153. Route::post('apiGetDirectLogistic','PriceModelController@apiGetDirectLogistic');
  154. //api 删除计费模型
  155. Route::post('apiDelStorage','PriceModelController@apiDelStorage');
  156. Route::post('apiDelOperation','PriceModelController@apiDelOperation');
  157. Route::post('apiDelOperationItem','PriceModelController@apiDelOperationItem');
  158. Route::post('apiDelExpress','PriceModelController@apiDelExpress');
  159. Route::post('apiDelExpressItem','PriceModelController@apiDelExpressItem');
  160. Route::post('apiDelLogistic','PriceModelController@apiDelLogistic');
  161. Route::post('apiDelLogisticItem','PriceModelController@apiDelLogisticItem');
  162. Route::post('apiDelDirectLogistic','PriceModelController@apiDelDirectLogistic');
  163. Route::post('apiDelDirectLogisticItem','PriceModelController@apiDelDirectLogisticItem');
  164. });
  165. Route::group(['prefix'=>'unit'],function(){
  166. Route::post('getUnits','UnitsController@getUnits');
  167. });
  168. Route::group(['prefix'=>'province'],function(){
  169. Route::post('get','ProvincesController@get');
  170. });
  171. Route::group(['prefix'=>'city'],function(){
  172. Route::post('get','CitiesController@get');
  173. });
  174. Route::group(['prefix'=>'carType'],function (){
  175. Route::post('get','CarTypesController@get');
  176. });
  177. Route::group(['prefix'=>"log"],function (){
  178. Route::get("exception",'LogController@exception');
  179. });
  180. Route::group(['prefix'=>"logistic"],function (){
  181. Route::post("get",'LogisticController@get');
  182. });
  183. Route::group(['prefix'=>"region"],function (){
  184. Route::post("get",'RegionController@get');
  185. Route::post("store",'RegionController@store');
  186. });
  187. Route::get('syncRedisLogs','LogController@syncRedisLogs');
  188. Route::get('region', 'RegionController@index');
  189. Route::resource('log', 'LogController');
  190. Route::resource('user', 'UserController');
  191. Route::resource('role', 'RoleController');
  192. Route::resource('authority', 'AuthorityController');
  193. Route::resource('owner', 'OwnerController');
  194. Route::resource('logistic', 'LogisticController');
  195. Route::resource('qualityLabel', 'QualityLabelController');
  196. Route::resource('carrier', 'CarriersController');
  197. Route::resource('carType','CarTypesController');
  198. Route::resource('unit','UnitsController');
  199. Route::resource('province','ProvincesController');
  200. Route::resource('city','CitiesController');
  201. Route::resource('commodity', 'CommodityController');
  202. Route::resource('measuringMachine', 'MeasuringMachineController');
  203. Route::resource('userWorkgroup', 'UserWorkgroupController');
  204. Route::resource('laborCompany', 'LaborCompanyController');
  205. Route::resource('warehouse', 'WarehouseController');
  206. Route::resource('tutorial', 'TutorialController');
  207. Route::resource('userLabor','UserLaborController');
  208. Route::resource('paperBox', 'PaperBoxController');
  209. Route::resource('userOwnerGroup', 'UserOwnerGroupController');
  210. Route::resource('processMethod', 'ProcessMethodController');
  211. Route::resource('feature', 'FeatureController');
  212. });
  213. Route::get('maintenance', function () {return view('maintenance.index');});
  214. /** 运输 */
  215. Route::group(['prefix'=>'waybill'],function(){
  216. /** 置顶 */
  217. Route::group(['prefix'=>'ontop'],function(){
  218. Route::post('top','WaybillController@waybillOnTop');
  219. Route::post('cancel','WaybillController@cancelOnTop');
  220. });
  221. /** 判断 */
  222. Route::group(['prefix'=>'is'],function(){
  223. Route::post('waybillPriceModel','WaybillController@isWaybillPriceModel');
  224. });
  225. Route::post('deleteImg','WaybillController@deleteImg');
  226. Route::post('upload','WaybillController@upload');
  227. Route::get('relating',function (){return view('waybill.menuWaybill');});
  228. Route::get('recycle', 'WaybillController@recycle');
  229. Route::post('refreshWaveHouseWeight','WaybillController@refreshWaveHouseWeight');
  230. Route::get('index','WaybillController@index');
  231. Route::get('delivering','WaybillController@delivering');
  232. Route::any('deliveringExport','WaybillController@deliveringExport');
  233. Route::post('storeCarrierBill','WaybillController@storeCarrierBill');
  234. Route::post('addCounty','WaybillController@addCounty');
  235. Route::any('waybillAudit','WaybillController@waybillAudit');
  236. Route::any('waybillEdit/{id}','WaybillController@waybillEdit');
  237. Route::any('waybillRetreatAudit','WaybillController@waybillRetreatAudit');
  238. Route::any('waybillEndAudit','WaybillController@waybillEndAudit');
  239. Route::any('export','WaybillController@export');
  240. Route::any('waybillUpdate/{id}','WaybillController@waybillUpdate');
  241. Route::post('batchUploadImages','WaybillController@batchUploadImages');
  242. Route::resource('waybillFinancialSnapshot','WaybillFinancialSnapshotsController');
  243. Route::resource('waybillFinancialExcepted','WaybillFinancialExceptedController');
  244. });
  245. Route::resource('waybill','WaybillController');
  246. /** 运输财务 */
  247. Route::group(['prefix'=>'waybillFinancialSnapshot'],function(){
  248. Route::any('export','WaybillFinancialSnapshotsController@export');
  249. });
  250. /** 运输计费模型 */
  251. Route::group(['prefix'=>'waybillPriceModel'],function(){
  252. /** excel */
  253. Route::group(['prefix'=>'excel'],function(){
  254. Route::post('import','WaybillPriceModelsController@import');
  255. });
  256. });
  257. /** 退货明细 */
  258. Route::group(['prefix'=>'rejectedBill'],function(){
  259. Route::post('{rejectedBill}/edit', 'RejectedBillController@edit');
  260. });
  261. Route::resource('rejectedBill', 'RejectedBillController');
  262. /** 退货 */
  263. Route::group(['prefix'=>'rejected'],function(){
  264. /** 导出 */
  265. Route::group(['prefix'=>'import'],function(){
  266. Route::post('excel', 'RejectedController@importExcel');
  267. });
  268. /** 主页 */
  269. Route::group(['prefix'=>'index'],function(){
  270. Route::any('general','RejectedController@index');
  271. Route::any('analyze','RejectedController@indexAnalyze');
  272. });
  273. /** 分析 */
  274. Route::group(['prefix'=>'analyze'],function(){
  275. Route::post('exportExcelOnParams', 'RejectedController@exportExcelOnParams');
  276. Route::post('exportAllExcelOnParams', 'RejectedController@exportAllExcelOnParams');
  277. });
  278. Route::get('relating', function () {return view('rejected.relating');});
  279. Route::get('recycle', 'RejectedController@recycle');
  280. Route::post('ajaxCheck', 'RejectedController@ajaxCheck');
  281. Route::post('ajaxCheckAll', 'RejectedController@ajaxCheckAll');
  282. Route::post('ajaxFinishAll', 'RejectedController@ajaxFinishAll');
  283. Route::get('import', 'RejectedController@import');
  284. Route::any('export', 'RejectedController@export');
  285. Route::any('exportAnalyze', 'RejectedController@exportAnalyze');
  286. Route::post('ajaxGetRejected', 'RejectedController@ajaxGetRejected');
  287. Route::post('changeRejectedBillRemark', 'RejectedController@changeRejectedBillRemark');
  288. Route::get('importRejectedNumber','RejectedBillController@importRejectedNumber');
  289. });
  290. Route::resource('rejected', 'RejectedController');
  291. /** 包裹 */
  292. Route::group(['prefix'=>'package'],function(){
  293. /** 设备 */
  294. Route::group(['prefix'=>'measureMonitor'],function(){
  295. Route::any('speech','MeasureMonitorController@speech');
  296. Route::post('data','MeasureMonitorController@data');
  297. });
  298. /** 统计 */
  299. Route::group(['prefix'=>'statistics'],function(){
  300. Route::any('export','PackageController@statisticsExport');
  301. });
  302. /** 异常 */
  303. Route::group(['prefix'=>'weightExcepted'],function(){
  304. Route::get('indexCreate','WeighExceptedController@indexCreate');
  305. Route::get('indexIssued','WeighExceptedController@indexIssued');
  306. Route::any('export/{type}','WeighExceptedController@export');
  307. });
  308. Route::any('export','PackageController@export');
  309. Route::get('statistics','PackageController@statistics');
  310. Route::get('relating', function () {return view('weight.menuWeight');});
  311. Route::resource('measureMonitor','MeasureMonitorController');
  312. });
  313. Route::resource('package','PackageController');
  314. /** 入库 */
  315. Route::group(['prefix'=>'store'],function(){
  316. Route::group(['prefix'=>'inStorage'],function() {
  317. Route::get('index','StoreController@storage');
  318. });
  319. Route::group(['prefix'=>'fast'],function() {
  320. Route::resource('storeItem','StoreItemsController');
  321. });
  322. Route::resource('fast',"StoreController");
  323. /** 盲收 */
  324. Route::group(['prefix'=>'blindReceive'],function(){
  325. Route::get('/', function () { return view('store.blindReceive.index');});
  326. Route::get('excels', 'StoreBlindReceiveController@index');
  327. Route::post('excels/apiStore', 'StoreBlindReceiveController@apiStore');
  328. });
  329. /** 盘收 */
  330. Route::group(['prefix'=>'checkingReceive'],function(){
  331. Route::group(['prefix'=>'mission'],function(){
  332. Route::post('import','StoreCheckingReceiveController@import');
  333. Route::get('export','StoreCheckingReceiveController@export');
  334. Route::post('resetAmount','StoreCheckingReceiveController@resetAmount');
  335. Route::post('matchASN','StoreCheckingReceiveController@matchASN');
  336. Route::post('receipt','StoreCheckingReceiveController@receipt');
  337. Route::get('{id}','StoreCheckingReceiveController@show');
  338. });
  339. Route::post('updateCountedAmount','StoreCheckingReceiveController@updateCountedAmount');
  340. Route::post('insertItem','StoreCheckingReceiveController@insertItem');
  341. Route::get('mission','StoreCheckingReceiveController@mission');
  342. Route::post('destroyItem','StoreCheckingReceiveController@destroyItem');
  343. });
  344. });
  345. /** 二次加工 */
  346. Route::group(['prefix'=>'process'],function(){
  347. /** 统计 */
  348. Route::group(['prefix'=>'statistic'],function(){
  349. Route::any("export",'ProcessStatisticController@export');
  350. });
  351. Route::get('relating',function (){return view('process.menuProcess');});
  352. Route::get("statistic",'ProcessStatisticController@index');
  353. Route::post('getDailyParticipant','ProcessController@getDailyParticipant');
  354. Route::post('reject/{id}','ProcessController@reject');
  355. Route::post('receive/{id}','ProcessController@receive');
  356. Route::post('accomplish','ProcessController@accomplish');
  357. Route::post('updateDailyOutput','ProcessController@updateDailyOutput');
  358. Route::post('storeProcessDailyParticipant','ProcessController@storeProcessDailyParticipant');
  359. Route::post('verifyUserName','ProcessController@verifyUserName');
  360. Route::post('updateProcessDailyParticipant','ProcessController@updateProcessDailyParticipant');
  361. Route::post('processDailyParticipantAudit/{id}','ProcessController@processDailyParticipantAudit');
  362. Route::post('getTutorials/{id}','ProcessController@getTutorials');
  363. Route::post('selectedTutorial','ProcessController@selectedTutorial');
  364. Route::post('deleteTutorial','ProcessController@deleteTutorial');
  365. Route::post('ownerGetTutorials/{owner_id}','ProcessController@ownerGetTutorials');
  366. Route::post('rollback','ProcessController@rollback');
  367. Route::get('recycle','ProcessController@recycle');
  368. Route::post('recover','ProcessController@recover');
  369. Route::post('audit','ProcessController@audit');
  370. Route::post('processAccomplish','ProcessController@processAccomplish');
  371. Route::post('checkAndAccept','ProcessController@checkAndAccept');
  372. Route::post('updateUnitPrice','ProcessController@updateUnitPrice');
  373. Route::post('workGroupVerify','ProcessController@workGroupVerify');
  374. Route::post('accountantVerify','ProcessController@accountantVerify');
  375. Route::post('updateStartDate','ProcessController@updateStartDate');
  376. Route::post('updateEndDate','ProcessController@updateEndDate');
  377. Route::delete('destroyDailyParticipant/{id}','ProcessController@destroyDailyParticipant');
  378. Route::post('importPasteData','ProcessController@importPasteData');
  379. Route::any('export','ProcessController@export');
  380. Route::post('deleteProcessContent/{id}','ProcessController@deleteProcessContent');
  381. });
  382. Route::resource('process','ProcessController');
  383. /** 人事 */
  384. Route::group(['prefix'=>'personnel'],function(){
  385. /** 打卡 */
  386. Route::group(['prefix'=>'checking-in'],function(){
  387. /** 打卡记录 */
  388. Route::group(['prefix'=>'userDutyCheck'],function(){
  389. Route::get('importAndExportClock','UserDutyCheckController@importAndExportClock');
  390. Route::get('clock','UserDutyCheckController@clock');
  391. Route::post('storeClock','UserDutyCheckController@storeClock');
  392. Route::post('绑定临时工并进组','UserDutyCheckController@绑定临时工并进组');
  393. Route::post('importGroupClock','UserDutyCheckController@importGroupClock');
  394. Route::get('createUserDetail/{mobile_phone}','UserDutyCheckController@createUserDetail');
  395. Route::get('updateUserLaborCompanies/{mobile_phone}','UserDutyCheckController@updateUserLaborCompanies');
  396. Route::post('storeUserDetail','UserDutyCheckController@storeUserDetail');
  397. Route::post('storeUpdateUserLaborCompanies','UserDutyCheckController@storeUpdateUserLaborCompanies');
  398. });
  399. Route::get('goGetQRCode','QRCodeController@goGetQRCode');
  400. Route::get('QRCode','QRCodeController@QRCode');
  401. Route::get('importAndExportQRCode','QRCodeController@importAndExportQRCode');
  402. Route::post('refreshQRCode','QRCodeController@refreshQRCode');
  403. Route::get('createReplenishClock','PersonnelController@createReplenishClock');
  404. Route::post('checkUserLabors','PersonnelController@checkUserLabors');
  405. Route::post('storeReplenishClock','PersonnelController@storeReplenishClock');
  406. Route::get('clockAudit','PersonnelController@clockAudit');
  407. Route::get('missionAudit','PersonnelController@missionAudit');
  408. Route::post('storeClockAudit','PersonnelController@storeClockAudit');
  409. Route::post('updateDutyCheckType','PersonnelController@updateDutyCheckType');
  410. Route::post('storeGroupAudit','PersonnelController@storeGroupAudit');
  411. Route::post('isException','PersonnelController@isException');
  412. Route::post('storeMissionAudit','PersonnelController@storeMissionAudit');
  413. });
  414. Route::get('relating',function (){return view('personnel/menuPersonnel');});
  415. Route::resource('laborReport','LaborReportController');
  416. });
  417. Route::get('getLaborReport','LaborReportController@getDailyLabor');
  418. /** 临时工报表 */
  419. Route::group(['prefix'=>'laborReport'],function(){
  420. Route::post('recover','LaborReportController@recover');
  421. Route::get('recycle','LaborReportController@recycle');
  422. Route::post('guardClockAudit','LaborReportController@guardClockAudit');
  423. Route::post('groupClockAudit','LaborReportController@groupClockAudit');
  424. Route::post('addRemarkAndGroupClock','LaborReportController@addRemarkAndGroupClock');
  425. Route::post('groupExport','LaborReportController@groupExport');
  426. Route::post('groupExportEnsure','LaborReportController@groupExportEnsure');
  427. Route::any('export','LaborReportController@export');
  428. Route::post('updateLaborCompany','LaborReportController@updateLaborCompany');
  429. Route::any('删除/{id}','LaborReportController@删除');
  430. Route::post('changeLaborReportRemark', 'LaborReportController@changeLaborReportRemark');
  431. });
  432. /** 库存 */
  433. Route::group(['prefix'=>'inventory'],function(){
  434. /** 说明 */
  435. Route::group(['prefix'=>'statement'],function(){
  436. /** 动库报表 */
  437. Route::group(['prefix'=>'changeInventory'],function(){
  438. Route::any('export','InventoryController@exportData');
  439. Route::get('downLoadExcel','InventoryController@downLoadExcel');
  440. Route::post('deleteExcel','InventoryController@deleteExcel');
  441. });
  442. Route::get('changeInventory','InventoryController@changeInventory');
  443. /** 全部库存 */
  444. Route::group(['prefix'=>'allInventory'],function(){
  445. Route::any('export','InventoryController@exportAllInventory');
  446. });
  447. Route::get('allInventory','InventoryController@allInventory');
  448. /** 每日记录 */
  449. Route::group(['prefix'=>'dailyLog'],function(){
  450. Route::any('export','InventoryController@exportDailyLog');
  451. Route::post('getLoggingOwner','InventoryController@getLoggingOwner');
  452. Route::post('addLoggingOwner','InventoryController@addLoggingOwner');
  453. });
  454. Route::get('dailyLog','InventoryController@dailyLog');
  455. Route::get('inventoryCompare','InventoryCompareController@inventoryCompare');
  456. Route::any('inventoryCompare/export','InventoryCompareController@exportInventoryCompare');
  457. });
  458. /** 库存盘点 */
  459. Route::group(['prefix'=>'stockInventory'],function(){
  460. Route::get('mission','InventoryAccountController@mission');
  461. Route::any('enterStockInventory/{id}','InventoryAccountController@enterStockInventory');
  462. Route::any('inventoryAccountMission/export','InventoryAccountController@exportInventoryAccountMission');
  463. Route::get('mission','InventoryAccountController@mission');
  464. Route::post('createStockInventoryMission','InventoryAccountController@createStockInventoryMission');
  465. Route::post('searchCommodityByBarcode','InventoryAccountController@searchCommodityByBarcode');
  466. Route::get('blindReceive/{id}','InventoryAccountController@enterBlindReceive');
  467. Route::post('baseOnBlindReceive','InventoryAccountController@baseOnBlindReceive');
  468. Route::post('batchStockByLocation','InventoryAccountController@batchStockByLocation');
  469. });
  470. /** 库存比对 */
  471. Route::group(['prefix'=>'inventoryCompare'],function(){
  472. /** excel */
  473. Route::group(['prefix'=>'import'],function(){
  474. Route::post('excel','InventoryCompareController@importExcel');
  475. });
  476. });
  477. Route::get('syncOwners','InventoryAccountController@syncOwners');
  478. Route::post('inventoryChecked','InventoryAccountController@inventoryChecked');
  479. Route::any('删除盘点记录','InventoryAccountController@删除盘点记录');
  480. Route::post('跳过盘点记录','InventoryAccountController@跳过盘点记录');
  481. Route::post('确认盘点差异','InventoryAccountController@确认盘点差异');
  482. Route::post('批量跳过或确认差异','InventoryAccountController@批量跳过或确认差异');
  483. Route::get('完结盘点任务/{id}','InventoryAccountController@完结盘点任务');
  484. Route::post('修改质量状态','InventoryAccountController@修改质量状态');
  485. Route::post('增加系统之外的盘点记录','InventoryAccountController@增加系统之外的盘点记录');
  486. Route::post('盘点选中任务','InventoryAccountController@盘点选中任务');
  487. Route::post('stockInventoryEnd','InventoryAccountController@stockInventoryEnd');
  488. Route::any('deleteStockInventoryMission/{id}','InventoryAccountController@deleteStockInventoryMission');
  489. Route::any('stockInventoryExport','InventoryAccountController@stockInventoryExport');
  490. Route::any('stockInventory','InventoryAccountController@stockInventory');
  491. Route::post('searchStockInventoryRecord','InventoryAccountController@searchStockInventoryRecord');
  492. });
  493. /** 订单 */
  494. Route::group(['prefix'=>'order'],function(){
  495. /** 主页 */
  496. Route::group(['prefix'=>'index'],function(){
  497. Route::get('delivering','OrderController@delivering');
  498. Route::get('commodityAssign','OrderCommodityAssignController@index');
  499. Route::match(['get','post'],'export','OrderController@export');
  500. Route::group(['prefix'=>'commodityAssign'],function(){
  501. Route::post('import','OrderCommodityAssignController@import');
  502. });
  503. Route::group(['prefix'=>'freeze'],function(){
  504. Route::post('delFreeze','OrderFreezeController@delFreeze');
  505. });
  506. Route::resource('freeze','OrderFreezeController');
  507. });
  508. /** 创建 */
  509. Route::group(['prefix'=>'create'],function(){
  510. Route::post('batchComments','OrderController@batchComments');
  511. });
  512. /** 波次 */
  513. Route::group(['prefix'=>'wave'],function(){
  514. Route::get('index','WaveController@index');
  515. Route::post('cancelPrinting','WaveController@cancelPrinting');
  516. Route::any('exportExcel','WaveController@exportExcelOnParams');
  517. });
  518. /** 问题件 */
  519. Route::group(['prefix'=>'issue'],function(){
  520. /** 工作量 */
  521. Route::group(['prefix'=>'workLoad'],function(){
  522. Route::get('index','OrderIssuePerformanceController@workLoadPage');
  523. Route::any('export','OrderIssuePerformanceController@exportWorkLoad');
  524. });
  525. /** 绩效 */
  526. Route::group(['prefix'=>'orderIssuePerformance'],function(){
  527. Route::get('index','OrderIssuePerformanceController@index');
  528. Route::any('export','OrderIssuePerformanceController@export');
  529. });
  530. Route::get('index','OrderIssueController@index');
  531. Route::get('create','OrderIssueController@create');
  532. Route::post('store','OrderIssueController@store');
  533. Route::post('batchImport','OrderIssueController@batchImport');
  534. Route::get('excelImport','OrderIssueController@excelImport');
  535. Route::get('edit/{id}','OrderIssueController@edit');
  536. Route::get('recycle','OrderIssueController@recycleBin');
  537. // Route::match(['get','post'],'export','OrderIssueController@exportOrderIssue');
  538. Route::match(['get','post'],'export','OrderIssueController@exportJsonExcel');
  539. });
  540. /** 跟踪 */
  541. Route::group(['prefix'=>'tracking'],function(){
  542. Route::get('index',"OrderTrackingController@index");
  543. Route::any('export',"OrderTrackingController@export");
  544. Route::get('update','OrderTrackingController@updateApi');
  545. Route::post('upload','OrderTrackingController@upload');
  546. Route::post('destroyImg','OrderTrackingController@destroyImg');
  547. });
  548. Route::post('freeze','OrderController@freeze');
  549. Route::post('freezeAll','OrderController@freezeAll');
  550. Route::post('thaw','OrderController@thaw');
  551. Route::post('deAllocation','OrderController@deAllocation');
  552. Route::post('deAllocationAll','OrderController@deAllocationAll');
  553. Route::post('resetLogisticsGetMark','OrderController@resetLogisticsGetMark');
  554. Route::post('createRejectedBill','OrderController@createRejectedBill');
  555. Route::post('isRejectedBillExist','OrderController@isRejectedBillExist');
  556. });
  557. /** 客户 */
  558. Route::group(['prefix'=>'customer'],function(){
  559. /** 项目 */
  560. Route::group(['prefix'=>'project'],function(){
  561. Route::group(['prefix'=>'report'],function(){
  562. Route::match(['GET','POST'],'export','CustomerController@projectReportExport');
  563. });
  564. Route::group(['prefix'=>'index'],function(){
  565. Route::match(['GET','POST'],'export','CustomerController@projectIndexExport');
  566. });
  567. Route::get('report','CustomerController@projectReport');
  568. Route::get('index','CustomerController@projectIndex');
  569. Route::get('create','CustomerController@projectCreate');
  570. Route::group(['prefix'=>'area'],function(){
  571. Route::match(['GET','POST'],'export','CustomerController@projectAreaExport');
  572. });
  573. Route::get('area','CustomerController@projectArea');
  574. Route::get('{id}/edit','CustomerController@projectEdit');
  575. Route::post('projectUpdate','CustomerController@projectUpdate');
  576. Route::post('getOwnerPriceModel','CustomerController@getOwnerPriceModel');
  577. Route::post('updateArea','CustomerController@updateArea');
  578. Route::post('verify','CustomerController@verifyProject');
  579. //获取现有计费模型
  580. Route::post('getPriceModel','PriceModelController@getPriceModel');
  581. });
  582. Route::group(['prefix'=>'finance'],function(){
  583. Route::group(['prefix'=>'instantBill'],function(){
  584. Route::match(['GET','POST'],'export','CustomerController@financeInstantBillExport');
  585. });
  586. Route::get('instantBill','CustomerController@financeInstantBill');
  587. Route::group(['prefix'=>'billConfirmation'],function(){
  588. Route::match(['GET','POST'],'export','CustomerController@financeBillConfirmationExport');
  589. });
  590. Route::get('billConfirmation','CustomerController@financeBillConfirmation');
  591. Route::post('updateBillReport','CustomerController@updateBillReport');
  592. Route::post('billConfirm','CustomerController@billConfirm');
  593. });
  594. Route::get('relating',function (){return view('customer.relating');});
  595. Route::group(['prefix' => 'customer'], function () {
  596. Route::get('customerLogStatus', 'CustomerLogStatusController@index');
  597. Route::post('getLog', 'CustomerLogController@get');
  598. Route::post('editLog', 'CustomerLogController@update');
  599. Route::post('getLogStatus', 'CustomerLogStatusController@get');
  600. Route::post('storeLog', 'CustomerLogController@store');
  601. Route::post('relatedOwner', 'CustomerBaseController@relatedOwner');
  602. Route::post('addTag', 'CustomerBaseController@addTag');
  603. Route::post('delTag', 'CustomerBaseController@delTag');
  604. Route::post('destroyLog', 'CustomerBaseController@destroyLog');
  605. Route::group(['prefix' => 'customerLogStatus'], function () {
  606. Route::post('save', 'CustomerLogStatusController@save');
  607. Route::post('destroy', 'CustomerLogStatusController@destroy');
  608. });
  609. Route::group(['prefix' => 'customerTag'], function () {
  610. Route::post('save', 'CustomerTagController@save');
  611. Route::post('get', 'CustomerTagController@get');
  612. });
  613. Route::resource('customerTag', 'CustomerTagController',['only' => ['index',"destroy"]]);
  614. Route::resource('customerLog', 'CustomerLogController', ['only' => ['index', 'show', 'create', 'store', 'update', 'edit', 'destroy']]);
  615. });
  616. Route::group(['prefix' => 'ownerContract'], function () {
  617. Route::post('store', 'OwnerContractController@store');
  618. Route::get('down', 'OwnerContractController@downFile');
  619. });
  620. Route::resource('customer', 'CustomerBaseController');
  621. });
  622. /** 站管理 */
  623. Route::group(['prefix'=>'station'],function(){
  624. Route::get('index','StationController@monitorIndex');
  625. Route::group(['prefix'=>'monitor'],function(){
  626. Route::get('/','StationController@monitorIndex');
  627. Route::get('/index','StationController@monitorIndex');
  628. Route::get('/{station}','StationController@monitorShow');
  629. });
  630. });
  631. /** 控制台 */
  632. Route::group(['prefix'=>'control'],function () {
  633. Route::get('panel/menu','ControlPanelController@index') ;
  634. });