web.php 51 KB

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