web.php 42 KB

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