web.php 43 KB

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