web.php 44 KB

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