web.php 32 KB

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