web.php 32 KB

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