web.php 36 KB

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