web.php 52 KB

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