web.php 32 KB

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