web.php 46 KB

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