web.php 46 KB

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