web.php 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  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. });
  186. Route::get('syncRedisLogs','LogController@syncRedisLogs');
  187. Route::get('region', 'RegionController@index');
  188. Route::resource('log', 'LogController');
  189. Route::resource('user', 'UserController');
  190. Route::resource('role', 'RoleController');
  191. Route::resource('authority', 'AuthorityController');
  192. Route::resource('owner', 'OwnerController');
  193. Route::resource('logistic', 'LogisticController');
  194. Route::resource('qualityLabel', 'QualityLabelController');
  195. Route::resource('carrier', 'CarriersController');
  196. Route::resource('carType','CarTypesController');
  197. Route::resource('unit','UnitsController');
  198. Route::resource('province','ProvincesController');
  199. Route::resource('city','CitiesController');
  200. Route::resource('commodity', 'CommodityController');
  201. Route::resource('measuringMachine', 'MeasuringMachineController');
  202. Route::resource('userWorkgroup', 'UserWorkgroupController');
  203. Route::resource('laborCompany', 'LaborCompanyController');
  204. Route::resource('warehouse', 'WarehouseController');
  205. Route::resource('tutorial', 'TutorialController');
  206. Route::resource('userLabor','UserLaborController');
  207. Route::resource('paperBox', 'PaperBoxController');
  208. Route::resource('userOwnerGroup', 'UserOwnerGroupController');
  209. Route::resource('processMethod', 'ProcessMethodController');
  210. Route::resource('feature', 'FeatureController');
  211. Route::resource('mail', 'SendEmailsController');
  212. Route::post('mail/addRole', 'SendEmailsController@addRole')->name('mail.addRole');
  213. Route::post('mail/deleteRole', 'SendEmailsController@deleteRole')->name('mail.deleteRole');
  214. Route::post('mail/updateTemplate', 'SendEmailsController@updateTemplate')->name('mail.updateTemplate');
  215. Route::post('mail/updateRemark', 'SendEmailsController@updateRemark')->name('mail.updateRemark');
  216. Route::post('mail/active', 'SendEmailsController@active')->name('mail.active');
  217. });
  218. Route::get('maintenance', function () {return view('maintenance.index');});
  219. /** 运输 */
  220. Route::group(['prefix'=>'waybill'],function(){
  221. /** 置顶 */
  222. Route::group(['prefix'=>'ontop'],function(){
  223. Route::post('top','WaybillController@waybillOnTop');
  224. Route::post('cancel','WaybillController@cancelOnTop');
  225. });
  226. /** 判断 */
  227. Route::group(['prefix'=>'is'],function(){
  228. Route::post('waybillPriceModel','WaybillController@isWaybillPriceModel');
  229. });
  230. Route::post('deleteImg','WaybillController@deleteImg');
  231. Route::post('upload','WaybillController@upload');
  232. Route::get('relating',function (){return view('waybill.menuWaybill');});
  233. Route::get('recycle', 'WaybillController@recycle');
  234. Route::post('refreshWaveHouseWeight','WaybillController@refreshWaveHouseWeight');
  235. Route::get('index','WaybillController@index');
  236. Route::get('delivering','WaybillController@delivering');
  237. Route::any('deliveringExport','WaybillController@deliveringExport');
  238. Route::post('storeCarrierBill','WaybillController@storeCarrierBill');
  239. Route::post('addCounty','WaybillController@addCounty');
  240. Route::any('waybillAudit','WaybillController@waybillAudit');
  241. Route::any('waybillEdit/{id}','WaybillController@waybillEdit');
  242. Route::any('waybillRetreatAudit','WaybillController@waybillRetreatAudit');
  243. Route::any('waybillEndAudit','WaybillController@waybillEndAudit');
  244. Route::any('export','WaybillController@export');
  245. Route::any('waybillUpdate/{id}','WaybillController@waybillUpdate');
  246. Route::post('batchUploadImages','WaybillController@batchUploadImages');
  247. Route::resource('waybillFinancialSnapshot','WaybillFinancialSnapshotsController');
  248. Route::resource('waybillFinancialExcepted','WaybillFinancialExceptedController');
  249. });
  250. Route::resource('waybill','WaybillController');
  251. /** 运输财务 */
  252. Route::group(['prefix'=>'waybillFinancialSnapshot'],function(){
  253. Route::any('export','WaybillFinancialSnapshotsController@export');
  254. });
  255. /** 运输计费模型 */
  256. Route::group(['prefix'=>'waybillPriceModel'],function(){
  257. /** excel */
  258. Route::group(['prefix'=>'excel'],function(){
  259. Route::post('import','WaybillPriceModelsController@import');
  260. });
  261. });
  262. /** 退货明细 */
  263. Route::group(['prefix'=>'rejectedBill'],function(){
  264. Route::post('{rejectedBill}/edit', 'RejectedBillController@edit');
  265. });
  266. Route::resource('rejectedBill', 'RejectedBillController');
  267. /** 退货 */
  268. Route::group(['prefix'=>'rejected'],function(){
  269. /** 导出 */
  270. Route::group(['prefix'=>'import'],function(){
  271. Route::post('excel', 'RejectedController@importExcel');
  272. });
  273. /** 主页 */
  274. Route::group(['prefix'=>'index'],function(){
  275. Route::any('general','RejectedController@index');
  276. Route::any('analyze','RejectedController@indexAnalyze');
  277. });
  278. /** 分析 */
  279. Route::group(['prefix'=>'analyze'],function(){
  280. Route::post('exportExcelOnParams', 'RejectedController@exportExcelOnParams');
  281. Route::post('exportAllExcelOnParams', 'RejectedController@exportAllExcelOnParams');
  282. });
  283. Route::get('relating', function () {return view('rejected.relating');});
  284. Route::get('recycle', 'RejectedController@recycle');
  285. Route::post('ajaxCheck', 'RejectedController@ajaxCheck');
  286. Route::post('ajaxCheckAll', 'RejectedController@ajaxCheckAll');
  287. Route::post('ajaxFinishAll', 'RejectedController@ajaxFinishAll');
  288. Route::get('import', 'RejectedController@import');
  289. Route::any('export', 'RejectedController@export');
  290. Route::any('exportAnalyze', 'RejectedController@exportAnalyze');
  291. Route::post('ajaxGetRejected', 'RejectedController@ajaxGetRejected');
  292. Route::post('changeRejectedBillRemark', 'RejectedController@changeRejectedBillRemark');
  293. Route::get('importRejectedNumber','RejectedBillController@importRejectedNumber');
  294. });
  295. Route::resource('rejected', 'RejectedController');
  296. /** 包裹 */
  297. Route::group(['prefix'=>'package'],function(){
  298. /** 设备 */
  299. Route::group(['prefix'=>'measureMonitor'],function(){
  300. Route::any('speech','MeasureMonitorController@speech');
  301. Route::post('data','MeasureMonitorController@data');
  302. });
  303. /** 统计 */
  304. Route::group(['prefix'=>'statistics'],function(){
  305. Route::any('export','WeighController@statisticsExport');
  306. });
  307. /** 异常 */
  308. Route::group(['prefix'=>'weightExcepted'],function(){
  309. Route::get('indexCreate','WeighExceptedController@indexCreate');
  310. Route::get('indexIssued','WeighExceptedController@indexIssued');
  311. Route::any('export/{type}','WeighExceptedController@export');
  312. });
  313. Route::any('export','WeighController@export');
  314. Route::get('statistics','WeighController@statistics');
  315. Route::get('relating', function () {return view('package.measureMonitor.menu');});
  316. Route::resource('measureMonitor','MeasureMonitorController');
  317. Route::group(['prefix' => 'weigh'], function () {
  318. Route::get('statistics','WeighController@statistics');
  319. /** 设备 */
  320. Route::group(['prefix'=>'measureMonitor'],function(){
  321. Route::any('speech','MeasureMonitorController@speech');
  322. Route::post('data','MeasureMonitorController@data');
  323. });
  324. /** 统计 */
  325. Route::group(['prefix'=>'statistics'],function(){
  326. Route::any('export','WeighController@statisticsExport');
  327. });
  328. Route::resource('measureMonitor','MeasureMonitorController');
  329. });
  330. Route::get('weigh/index','WeighController@index');
  331. Route::resource('weigh','WeighController');
  332. Route::resource('logistic','PackageLogisticController');
  333. });
  334. Route::resource('package','WeighController');
  335. /** 入库 */
  336. Route::group(['prefix'=>'store'],function(){
  337. Route::group(['prefix'=>'inStorage'],function() {
  338. Route::get('index','StoreController@storage');
  339. });
  340. Route::group(['prefix'=>'fast'],function() {
  341. Route::resource('storeItem','StoreItemsController');
  342. });
  343. Route::resource('fast',"StoreController");
  344. /** 盲收 */
  345. Route::group(['prefix'=>'blindReceive'],function(){
  346. Route::get('/', function () { return view('store.blindReceive.index');});
  347. Route::get('excels', 'StoreBlindReceiveController@index');
  348. Route::post('excels/apiStore', 'StoreBlindReceiveController@apiStore');
  349. });
  350. /** 盘收 */
  351. Route::group(['prefix'=>'checkingReceive'],function(){
  352. Route::group(['prefix'=>'mission'],function(){
  353. Route::post('import','StoreCheckingReceiveController@import');
  354. Route::get('export','StoreCheckingReceiveController@export');
  355. Route::post('resetAmount','StoreCheckingReceiveController@resetAmount');
  356. Route::post('matchASN','StoreCheckingReceiveController@matchASN');
  357. Route::post('receipt','StoreCheckingReceiveController@receipt');
  358. Route::get('{id}','StoreCheckingReceiveController@show');
  359. });
  360. Route::post('updateCountedAmount','StoreCheckingReceiveController@updateCountedAmount');
  361. Route::post('insertItem','StoreCheckingReceiveController@insertItem');
  362. Route::get('mission','StoreCheckingReceiveController@mission');
  363. Route::post('destroyItem','StoreCheckingReceiveController@destroyItem');
  364. });
  365. });
  366. /** 二次加工 */
  367. Route::group(['prefix'=>'process'],function(){
  368. /** 统计 */
  369. Route::group(['prefix'=>'statistic'],function(){
  370. Route::any("export",'ProcessStatisticController@export');
  371. });
  372. Route::get('relating',function (){return view('process.menuProcess');});
  373. Route::get("statistic",'ProcessStatisticController@index');
  374. Route::post('getDailyParticipant','ProcessController@getDailyParticipant');
  375. Route::post('reject/{id}','ProcessController@reject');
  376. Route::post('receive/{id}','ProcessController@receive');
  377. Route::post('accomplish','ProcessController@accomplish');
  378. Route::post('updateDailyOutput','ProcessController@updateDailyOutput');
  379. Route::post('storeProcessDailyParticipant','ProcessController@storeProcessDailyParticipant');
  380. Route::post('verifyUserName','ProcessController@verifyUserName');
  381. Route::post('updateProcessDailyParticipant','ProcessController@updateProcessDailyParticipant');
  382. Route::post('processDailyParticipantAudit/{id}','ProcessController@processDailyParticipantAudit');
  383. Route::post('getTutorials/{id}','ProcessController@getTutorials');
  384. Route::post('selectedTutorial','ProcessController@selectedTutorial');
  385. Route::post('deleteTutorial','ProcessController@deleteTutorial');
  386. Route::post('ownerGetTutorials/{owner_id}','ProcessController@ownerGetTutorials');
  387. Route::post('rollback','ProcessController@rollback');
  388. Route::get('recycle','ProcessController@recycle');
  389. Route::post('recover','ProcessController@recover');
  390. Route::post('audit','ProcessController@audit');
  391. Route::post('processAccomplish','ProcessController@processAccomplish');
  392. Route::post('checkAndAccept','ProcessController@checkAndAccept');
  393. Route::post('updateUnitPrice','ProcessController@updateUnitPrice');
  394. Route::post('workGroupVerify','ProcessController@workGroupVerify');
  395. Route::post('accountantVerify','ProcessController@accountantVerify');
  396. Route::post('updateStartDate','ProcessController@updateStartDate');
  397. Route::post('updateEndDate','ProcessController@updateEndDate');
  398. Route::delete('destroyDailyParticipant/{id}','ProcessController@destroyDailyParticipant');
  399. Route::post('importPasteData','ProcessController@importPasteData');
  400. Route::any('export','ProcessController@export');
  401. Route::post('deleteProcessContent/{id}','ProcessController@deleteProcessContent');
  402. });
  403. Route::resource('process','ProcessController');
  404. /** 人事 */
  405. Route::group(['prefix'=>'personnel'],function(){
  406. /** 打卡 */
  407. Route::group(['prefix'=>'checking-in'],function(){
  408. /** 打卡记录 */
  409. Route::group(['prefix'=>'userDutyCheck'],function(){
  410. Route::get('importAndExportClock','UserDutyCheckController@importAndExportClock');
  411. Route::get('clock','UserDutyCheckController@clock');
  412. Route::post('storeClock','UserDutyCheckController@storeClock');
  413. Route::post('绑定临时工并进组','UserDutyCheckController@绑定临时工并进组');
  414. Route::post('importGroupClock','UserDutyCheckController@importGroupClock');
  415. Route::get('createUserDetail/{mobile_phone}','UserDutyCheckController@createUserDetail');
  416. Route::get('updateUserLaborCompanies/{mobile_phone}','UserDutyCheckController@updateUserLaborCompanies');
  417. Route::post('storeUserDetail','UserDutyCheckController@storeUserDetail');
  418. Route::post('storeUpdateUserLaborCompanies','UserDutyCheckController@storeUpdateUserLaborCompanies');
  419. });
  420. Route::get('goGetQRCode','QRCodeController@goGetQRCode');
  421. Route::get('QRCode','QRCodeController@QRCode');
  422. Route::get('importAndExportQRCode','QRCodeController@importAndExportQRCode');
  423. Route::post('refreshQRCode','QRCodeController@refreshQRCode');
  424. Route::get('createReplenishClock','PersonnelController@createReplenishClock');
  425. Route::post('checkUserLabors','PersonnelController@checkUserLabors');
  426. Route::post('storeReplenishClock','PersonnelController@storeReplenishClock');
  427. Route::get('clockAudit','PersonnelController@clockAudit');
  428. Route::get('missionAudit','PersonnelController@missionAudit');
  429. Route::post('storeClockAudit','PersonnelController@storeClockAudit');
  430. Route::post('updateDutyCheckType','PersonnelController@updateDutyCheckType');
  431. Route::post('storeGroupAudit','PersonnelController@storeGroupAudit');
  432. Route::post('isException','PersonnelController@isException');
  433. Route::post('storeMissionAudit','PersonnelController@storeMissionAudit');
  434. });
  435. Route::get('relating',function (){return view('personnel/menuPersonnel');});
  436. Route::resource('laborReport','LaborReportController');
  437. });
  438. Route::get('getLaborReport','LaborReportController@getDailyLabor');
  439. /** 临时工报表 */
  440. Route::group(['prefix'=>'laborReport'],function(){
  441. Route::post('recover','LaborReportController@recover');
  442. Route::get('recycle','LaborReportController@recycle');
  443. Route::post('guardClockAudit','LaborReportController@guardClockAudit');
  444. Route::post('groupClockAudit','LaborReportController@groupClockAudit');
  445. Route::post('addRemarkAndGroupClock','LaborReportController@addRemarkAndGroupClock');
  446. Route::post('groupExport','LaborReportController@groupExport');
  447. Route::post('groupExportEnsure','LaborReportController@groupExportEnsure');
  448. Route::any('export','LaborReportController@export');
  449. Route::post('updateLaborCompany','LaborReportController@updateLaborCompany');
  450. Route::any('删除/{id}','LaborReportController@删除');
  451. Route::post('changeLaborReportRemark', 'LaborReportController@changeLaborReportRemark');
  452. });
  453. /** 库存 */
  454. Route::group(['prefix'=>'inventory'],function(){
  455. /** 说明 */
  456. Route::group(['prefix'=>'statement'],function(){
  457. /** 动库报表 */
  458. Route::group(['prefix'=>'changeInventory'],function(){
  459. Route::any('export','InventoryController@exportData');
  460. Route::get('downLoadExcel','InventoryController@downLoadExcel');
  461. Route::post('deleteExcel','InventoryController@deleteExcel');
  462. });
  463. Route::get('changeInventory','InventoryController@changeInventory');
  464. /** 全部库存 */
  465. Route::group(['prefix'=>'allInventory'],function(){
  466. Route::any('export','InventoryController@exportAllInventory');
  467. });
  468. Route::get('allInventory','InventoryController@allInventory');
  469. /** 每日记录 */
  470. Route::group(['prefix'=>'dailyLog'],function(){
  471. Route::any('export','InventoryController@exportDailyLog');
  472. Route::post('getLoggingOwner','InventoryController@getLoggingOwner');
  473. Route::post('addLoggingOwner','InventoryController@addLoggingOwner');
  474. });
  475. Route::get('dailyLog','InventoryController@dailyLog');
  476. Route::get('inventoryCompare','InventoryCompareController@inventoryCompare');
  477. Route::any('inventoryCompare/export','InventoryCompareController@exportInventoryCompare');
  478. });
  479. /** 库存盘点 */
  480. Route::group(['prefix'=>'stockInventory'],function(){
  481. Route::get('mission','InventoryAccountController@mission');
  482. Route::any('enterStockInventory/{id}','InventoryAccountController@enterStockInventory');
  483. Route::any('inventoryAccountMission/export','InventoryAccountController@exportInventoryAccountMission');
  484. Route::get('mission','InventoryAccountController@mission');
  485. Route::post('createStockInventoryMission','InventoryAccountController@createStockInventoryMission');
  486. Route::post('searchCommodityByBarcode','InventoryAccountController@searchCommodityByBarcode');
  487. Route::get('blindReceive/{id}','InventoryAccountController@enterBlindReceive');
  488. Route::post('baseOnBlindReceive','InventoryAccountController@baseOnBlindReceive');
  489. Route::post('batchStockByLocation','InventoryAccountController@batchStockByLocation');
  490. });
  491. /** 库存比对 */
  492. Route::group(['prefix'=>'inventoryCompare'],function(){
  493. /** excel */
  494. Route::group(['prefix'=>'import'],function(){
  495. Route::post('excel','InventoryCompareController@importExcel');
  496. });
  497. });
  498. Route::get('syncOwners','InventoryAccountController@syncOwners');
  499. Route::post('inventoryChecked','InventoryAccountController@inventoryChecked');
  500. Route::any('删除盘点记录','InventoryAccountController@删除盘点记录');
  501. Route::post('跳过盘点记录','InventoryAccountController@跳过盘点记录');
  502. Route::post('确认盘点差异','InventoryAccountController@确认盘点差异');
  503. Route::post('批量跳过或确认差异','InventoryAccountController@批量跳过或确认差异');
  504. Route::get('完结盘点任务/{id}','InventoryAccountController@完结盘点任务');
  505. Route::post('修改质量状态','InventoryAccountController@修改质量状态');
  506. Route::post('增加系统之外的盘点记录','InventoryAccountController@增加系统之外的盘点记录');
  507. Route::post('盘点选中任务','InventoryAccountController@盘点选中任务');
  508. Route::post('stockInventoryEnd','InventoryAccountController@stockInventoryEnd');
  509. Route::any('deleteStockInventoryMission/{id}','InventoryAccountController@deleteStockInventoryMission');
  510. Route::any('stockInventoryExport','InventoryAccountController@stockInventoryExport');
  511. Route::any('stockInventory','InventoryAccountController@stockInventory');
  512. Route::post('searchStockInventoryRecord','InventoryAccountController@searchStockInventoryRecord');
  513. });
  514. /** 订单 */
  515. Route::group(['prefix'=>'order'],function(){
  516. /** 主页 */
  517. Route::group(['prefix'=>'index'],function(){
  518. Route::get('delivering','OrderController@delivering');
  519. Route::get('commodityAssign','OrderCommodityAssignController@index');
  520. Route::match(['get','post'],'export','OrderController@export');
  521. Route::group(['prefix'=>'commodityAssign'],function(){
  522. Route::post('import','OrderCommodityAssignController@import');
  523. });
  524. Route::group(['prefix'=>'freeze'],function(){
  525. Route::post('delFreeze','OrderFreezeController@delFreeze');
  526. });
  527. Route::resource('freeze','OrderFreezeController');
  528. });
  529. /** 创建 */
  530. Route::group(['prefix'=>'create'],function(){
  531. Route::post('batchComments','OrderController@batchComments');
  532. });
  533. /** 波次 */
  534. Route::group(['prefix'=>'wave'],function(){
  535. Route::get('index','WaveController@index');
  536. Route::post('cancelPrinting','WaveController@cancelPrinting');
  537. Route::any('exportExcel','WaveController@exportExcelOnParams');
  538. });
  539. /** 问题件 */
  540. Route::group(['prefix'=>'issue'],function(){
  541. /** 工作量 */
  542. Route::group(['prefix'=>'workLoad'],function(){
  543. Route::get('index','OrderIssuePerformanceController@workLoadPage');
  544. Route::any('export','OrderIssuePerformanceController@exportWorkLoad');
  545. });
  546. /** 绩效 */
  547. Route::group(['prefix'=>'orderIssuePerformance'],function(){
  548. Route::get('index','OrderIssuePerformanceController@index');
  549. Route::any('export','OrderIssuePerformanceController@export');
  550. });
  551. Route::get('index','OrderIssueController@index');
  552. Route::get('create','OrderIssueController@create');
  553. Route::post('store','OrderIssueController@store');
  554. Route::post('batchImport','OrderIssueController@batchImport');
  555. Route::get('excelImport','OrderIssueController@excelImport');
  556. Route::get('edit/{id}','OrderIssueController@edit');
  557. Route::get('recycle','OrderIssueController@recycleBin');
  558. // Route::match(['get','post'],'export','OrderIssueController@exportOrderIssue');
  559. Route::match(['get','post'],'export','OrderIssueController@exportJsonExcel');
  560. });
  561. /** 跟踪 */
  562. Route::group(['prefix'=>'tracking'],function(){
  563. Route::get('index',"OrderTrackingController@index");
  564. Route::any('export',"OrderTrackingController@export");
  565. Route::get('update','OrderTrackingController@updateApi');
  566. Route::post('upload','OrderTrackingController@upload');
  567. Route::post('destroyImg','OrderTrackingController@destroyImg');
  568. });
  569. Route::post('freeze','OrderController@freeze');
  570. Route::post('freezeAll','OrderController@freezeAll');
  571. Route::post('thaw','OrderController@thaw');
  572. Route::post('deAllocation','OrderController@deAllocation');
  573. Route::post('deAllocationAll','OrderController@deAllocationAll');
  574. Route::post('resetLogisticsGetMark','OrderController@resetLogisticsGetMark');
  575. Route::post('createRejectedBill','OrderController@createRejectedBill');
  576. Route::post('isRejectedBillExist','OrderController@isRejectedBillExist');
  577. });
  578. /** 客户 */
  579. Route::group(['prefix'=>'customer'],function(){
  580. /** 项目 */
  581. Route::group(['prefix'=>'project'],function(){
  582. Route::group(['prefix'=>'report'],function(){
  583. Route::match(['GET','POST'],'export','CustomerController@projectReportExport');
  584. });
  585. Route::group(['prefix'=>'index'],function(){
  586. Route::match(['GET','POST'],'export','CustomerController@projectIndexExport');
  587. });
  588. Route::get('report','CustomerController@projectReport');
  589. Route::get('index','CustomerController@projectIndex');
  590. Route::get('create','CustomerController@projectCreate');
  591. Route::group(['prefix'=>'area'],function(){
  592. Route::match(['GET','POST'],'export','CustomerController@projectAreaExport');
  593. });
  594. Route::get('area','CustomerController@projectArea');
  595. Route::get('{id}/edit','CustomerController@projectEdit');
  596. Route::post('projectUpdate','CustomerController@projectUpdate');
  597. Route::post('getOwnerPriceModel','CustomerController@getOwnerPriceModel');
  598. Route::post('updateArea','CustomerController@updateArea');
  599. Route::post('verify','CustomerController@verifyProject');
  600. //获取现有计费模型
  601. Route::post('getPriceModel','PriceModelController@getPriceModel');
  602. });
  603. Route::group(['prefix'=>'finance'],function(){
  604. Route::group(['prefix'=>'instantBill'],function(){
  605. Route::match(['GET','POST'],'export','CustomerController@financeInstantBillExport');
  606. });
  607. Route::get('instantBill','CustomerController@financeInstantBill');
  608. Route::group(['prefix'=>'billConfirmation'],function(){
  609. Route::match(['GET','POST'],'export','CustomerController@financeBillConfirmationExport');
  610. });
  611. Route::get('billConfirmation','CustomerController@financeBillConfirmation');
  612. Route::post('updateBillReport','CustomerController@updateBillReport');
  613. Route::post('billConfirm','CustomerController@billConfirm');
  614. });
  615. Route::get('relating',function (){return view('customer.relating');});
  616. Route::group(['prefix' => 'customer'], function () {
  617. Route::get('customerLogStatus', 'CustomerLogStatusController@index');
  618. Route::post('getLog', 'CustomerLogController@get');
  619. Route::post('editLog', 'CustomerLogController@update');
  620. Route::post('getLogStatus', 'CustomerLogStatusController@get');
  621. Route::post('storeLog', 'CustomerLogController@store');
  622. Route::post('relatedOwner', 'CustomerBaseController@relatedOwner');
  623. Route::post('addTag', 'CustomerBaseController@addTag');
  624. Route::post('delTag', 'CustomerBaseController@delTag');
  625. Route::post('destroyLog', 'CustomerBaseController@destroyLog');
  626. Route::group(['prefix' => 'customerLogStatus'], function () {
  627. Route::post('save', 'CustomerLogStatusController@save');
  628. Route::post('destroy', 'CustomerLogStatusController@destroy');
  629. });
  630. Route::group(['prefix' => 'customerTag'], function () {
  631. Route::post('save', 'CustomerTagController@save');
  632. Route::post('get', 'CustomerTagController@get');
  633. });
  634. Route::resource('customerTag', 'CustomerTagController',['only' => ['index',"destroy"]]);
  635. Route::resource('customerLog', 'CustomerLogController', ['only' => ['index', 'show', 'create', 'store', 'update', 'edit', 'destroy']]);
  636. });
  637. Route::group(['prefix' => 'ownerContract'], function () {
  638. Route::post('store', 'OwnerContractController@store');
  639. Route::get('down', 'OwnerContractController@downFile');
  640. });
  641. Route::resource('customer', 'CustomerBaseController');
  642. });
  643. /** 站管理 */
  644. Route::group(['prefix'=>'station'],function(){
  645. Route::get('index','StationController@monitorIndex');
  646. Route::group(['prefix'=>'monitor'],function(){
  647. Route::get('/','StationController@monitorIndex');
  648. Route::get('/index','StationController@monitorIndex');
  649. Route::get('/{station}','StationController@monitorShow');
  650. });
  651. });
  652. /** 控制台 */
  653. Route::group(['prefix'=>'control'],function () {
  654. Route::get('panel/menu','ControlPanelController@index') ;
  655. });