web.php 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749
  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}','WaybillPriceModelsController@getCities');
  80. });
  81. Route::resource('waybillPriceModel','WaybillPriceModelsController');
  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::group(['prefix'=>'unit'],function(){
  166. Route::post('getUnits','UnitsController@getUnits');
  167. });
  168. Route::group(['prefix'=>'province'],function(){
  169. Route::post('get','ProvincesController@get');
  170. });
  171. Route::group(['prefix'=>'city'],function(){
  172. Route::post('get','CitiesController@get');
  173. });
  174. Route::group(['prefix'=>'carType'],function (){
  175. Route::post('get','CarTypesController@get');
  176. });
  177. Route::group(['prefix'=>"log"],function (){
  178. Route::get("exception",'LogController@exception');
  179. });
  180. Route::group(['prefix'=>"logistic"],function (){
  181. Route::post("get",'LogisticController@get');
  182. });
  183. Route::group(['prefix'=>"region"],function (){
  184. Route::post("get",'RegionController@get');
  185. Route::post("store",'RegionController@store');
  186. });
  187. /** 耗材 */
  188. Route::get('material','MaterialController@index');;
  189. /** 项目耗材 */
  190. Route::get('ownerMaterial','OwnerMaterialController@index');
  191. /** 供应商 */
  192. Route::get('supplier','SupplierController@index');
  193. /** 系统配置 */
  194. Route::get('configuration','ConfigurationController@index');
  195. Route::get('syncRedisLogs','LogController@syncRedisLogs');
  196. Route::get('region', 'RegionController@index');
  197. Route::resource('log', 'LogController');
  198. Route::resource('user', 'UserController');
  199. Route::resource('role', 'RoleController');
  200. Route::resource('authority', 'AuthorityController');
  201. Route::resource('owner', 'OwnerController');
  202. Route::resource('logistic', 'LogisticController');
  203. Route::resource('qualityLabel', 'QualityLabelController');
  204. Route::resource('carrier', 'CarriersController');
  205. Route::resource('carType','CarTypesController');
  206. Route::resource('unit','UnitsController');
  207. Route::resource('province','ProvincesController');
  208. Route::resource('city','CitiesController');
  209. Route::resource('commodity', 'CommodityController');
  210. Route::resource('measuringMachine', 'MeasuringMachineController');
  211. Route::resource('userWorkgroup', 'UserWorkgroupController');
  212. Route::resource('laborCompany', 'LaborCompanyController');
  213. Route::resource('warehouse', 'WarehouseController');
  214. Route::resource('tutorial', 'TutorialController');
  215. Route::resource('userLabor','UserLaborController');
  216. Route::resource('paperBox', 'PaperBoxController');
  217. Route::resource('userOwnerGroup', 'UserOwnerGroupController');
  218. Route::resource('processMethod', 'ProcessMethodController');
  219. Route::resource('feature', 'FeatureController');
  220. Route::resource('mail', 'SendEmailsController');
  221. Route::post('mail/addRole', 'SendEmailsController@addRole')->name('mail.addRole');
  222. Route::post('mail/deleteRole', 'SendEmailsController@deleteRole')->name('mail.deleteRole');
  223. Route::post('mail/updateTemplate', 'SendEmailsController@updateTemplate')->name('mail.updateTemplate');
  224. Route::post('mail/updateRemark', 'SendEmailsController@updateRemark')->name('mail.updateRemark');
  225. Route::post('mail/active', 'SendEmailsController@active')->name('mail.active');
  226. });
  227. Route::get('maintenance', function () {return view('maintenance.index');});
  228. /** 运输 */
  229. Route::group(['prefix'=>'waybill'],function(){
  230. /** 置顶 */
  231. Route::group(['prefix'=>'ontop'],function(){
  232. Route::post('top','WaybillController@waybillOnTop');
  233. Route::post('cancel','WaybillController@cancelOnTop');
  234. });
  235. /** 判断 */
  236. Route::group(['prefix'=>'is'],function(){
  237. Route::post('waybillPriceModel','WaybillController@isWaybillPriceModel');
  238. });
  239. Route::post('deleteImg','WaybillController@deleteImg');
  240. Route::post('upload','WaybillController@upload');
  241. Route::get('relating',function (){return view('waybill.menuWaybill');});
  242. Route::get('recycle', 'WaybillController@recycle');
  243. Route::post('refreshWaveHouseWeight','WaybillController@refreshWaveHouseWeight');
  244. Route::get('index','WaybillController@index');
  245. Route::get('delivering','WaybillController@delivering');
  246. Route::any('deliveringExport','WaybillController@deliveringExport');
  247. Route::post('storeCarrierBill','WaybillController@storeCarrierBill');
  248. Route::post('addCounty','WaybillController@addCounty');
  249. Route::any('waybillAudit','WaybillController@waybillAudit');
  250. Route::any('waybillEdit/{id}','WaybillController@waybillEdit');
  251. Route::any('waybillRetreatAudit','WaybillController@waybillRetreatAudit');
  252. Route::any('waybillEndAudit','WaybillController@waybillEndAudit');
  253. Route::any('export','WaybillController@export');
  254. Route::any('waybillUpdate/{id}','WaybillController@waybillUpdate');
  255. Route::post('batchUploadImages','WaybillController@batchUploadImages');
  256. Route::resource('waybillFinancialSnapshot','WaybillFinancialSnapshotsController');
  257. Route::resource('waybillFinancialExcepted','WaybillFinancialExceptedController');
  258. });
  259. Route::resource('waybill','WaybillController');
  260. /** 运输财务 */
  261. Route::group(['prefix'=>'waybillFinancialSnapshot'],function(){
  262. Route::any('export','WaybillFinancialSnapshotsController@export');
  263. });
  264. /** 运输计费模型 */
  265. Route::group(['prefix'=>'waybillPriceModel'],function(){
  266. /** excel */
  267. Route::group(['prefix'=>'excel'],function(){
  268. Route::post('import','WaybillPriceModelsController@import');
  269. });
  270. });
  271. /** 退货明细 */
  272. Route::group(['prefix'=>'rejectedBill'],function(){
  273. Route::post('{rejectedBill}/edit', 'RejectedBillController@edit');
  274. });
  275. Route::resource('rejectedBill', 'RejectedBillController');
  276. /** 退货 */
  277. Route::group(['prefix'=>'rejected'],function(){
  278. /** 导出 */
  279. Route::group(['prefix'=>'import'],function(){
  280. Route::post('excel', 'RejectedController@importExcel');
  281. });
  282. /** 主页 */
  283. Route::group(['prefix'=>'index'],function(){
  284. Route::any('general','RejectedController@index');
  285. Route::any('analyze','RejectedController@indexAnalyze');
  286. });
  287. /** 分析 */
  288. Route::group(['prefix'=>'analyze'],function(){
  289. Route::post('exportExcelOnParams', 'RejectedController@exportExcelOnParams');
  290. Route::post('exportAllExcelOnParams', 'RejectedController@exportAllExcelOnParams');
  291. });
  292. Route::get('relating', function () {return view('rejected.relating');});
  293. Route::get('recycle', 'RejectedController@recycle');
  294. Route::post('ajaxCheck', 'RejectedController@ajaxCheck');
  295. Route::post('ajaxCheckAll', 'RejectedController@ajaxCheckAll');
  296. Route::post('ajaxFinishAll', 'RejectedController@ajaxFinishAll');
  297. Route::get('import', 'RejectedController@import');
  298. Route::any('export', 'RejectedController@export');
  299. Route::any('exportAnalyze', 'RejectedController@exportAnalyze');
  300. Route::post('ajaxGetRejected', 'RejectedController@ajaxGetRejected');
  301. Route::post('changeRejectedBillRemark', 'RejectedController@changeRejectedBillRemark');
  302. Route::get('importRejectedNumber','RejectedBillController@importRejectedNumber');
  303. });
  304. Route::resource('rejected', 'RejectedController');
  305. /** 包裹 */
  306. Route::group(['prefix'=>'package'],function(){
  307. /** 设备 */
  308. Route::group(['prefix'=>'measureMonitor'],function(){
  309. Route::any('speech','MeasureMonitorController@speech');
  310. Route::post('data','MeasureMonitorController@data');
  311. });
  312. /** 统计 */
  313. Route::group(['prefix'=>'statistics'],function(){
  314. Route::any('export','WeighController@statisticsExport');
  315. });
  316. /** 异常 */
  317. Route::group(['prefix'=>'weightExcepted'],function(){
  318. Route::get('indexCreate','WeighExceptedController@indexCreate');
  319. Route::get('indexIssued','WeighExceptedController@indexIssued');
  320. Route::any('export/{type}','WeighExceptedController@export');
  321. });
  322. Route::any('export','WeighController@export');
  323. Route::get('statistics','WeighController@statistics');
  324. Route::get('relating', function () {return view('package.measureMonitor.menu');});
  325. Route::resource('measureMonitor','MeasureMonitorController');
  326. Route::group(['prefix' => 'weigh'], function () {
  327. Route::get('statistics','WeighController@statistics');
  328. /** 设备 */
  329. Route::group(['prefix'=>'measureMonitor'],function(){
  330. Route::any('speech','MeasureMonitorController@speech');
  331. Route::post('data','MeasureMonitorController@data');
  332. });
  333. /** 统计 */
  334. Route::group(['prefix'=>'statistics'],function(){
  335. Route::any('export','WeighController@statisticsExport');
  336. });
  337. Route::resource('measureMonitor','MeasureMonitorController');
  338. });
  339. Route::get('weigh/index','WeighController@index');
  340. Route::resource('weigh','WeighController');
  341. Route::resource('logistic','PackageLogisticController');
  342. });
  343. Route::resource('package','WeighController');
  344. /** 入库 */
  345. Route::group(['prefix'=>'store'],function(){
  346. Route::group(['prefix'=>'inStorage'],function() {
  347. Route::get('index','StoreController@storage');
  348. });
  349. Route::group(['prefix'=>'fast'],function() {
  350. Route::resource('storeItem','StoreItemsController');
  351. });
  352. Route::resource('fast',"StoreController");
  353. /** 盲收 */
  354. Route::group(['prefix'=>'blindReceive'],function(){
  355. Route::get('/', function () { return view('store.blindReceive.index');});
  356. Route::get('excels', 'StoreBlindReceiveController@index');
  357. Route::post('excels/apiStore', 'StoreBlindReceiveController@apiStore');
  358. });
  359. /** 盘收 */
  360. Route::group(['prefix'=>'checkingReceive'],function(){
  361. Route::group(['prefix'=>'mission'],function(){
  362. Route::post('import','StoreCheckingReceiveController@import');
  363. Route::get('export','StoreCheckingReceiveController@export');
  364. Route::post('resetAmount','StoreCheckingReceiveController@resetAmount');
  365. Route::post('matchASN','StoreCheckingReceiveController@matchASN');
  366. Route::post('receipt','StoreCheckingReceiveController@receipt');
  367. Route::get('{id}','StoreCheckingReceiveController@show');
  368. });
  369. Route::post('updateCountedAmount','StoreCheckingReceiveController@updateCountedAmount');
  370. Route::post('insertItem','StoreCheckingReceiveController@insertItem');
  371. Route::get('mission','StoreCheckingReceiveController@mission');
  372. Route::post('destroyItem','StoreCheckingReceiveController@destroyItem');
  373. });
  374. });
  375. /** 二次加工 */
  376. Route::group(['prefix'=>'process'],function(){
  377. /** 统计 */
  378. Route::group(['prefix'=>'statistic'],function(){
  379. Route::any("export",'ProcessStatisticController@export');
  380. });
  381. Route::get('relating',function (){return view('process.menuProcess');});
  382. Route::get("statistic",'ProcessStatisticController@index');
  383. Route::post('getDailyParticipant','ProcessController@getDailyParticipant');
  384. Route::post('reject/{id}','ProcessController@reject');
  385. Route::post('receive/{id}','ProcessController@receive');
  386. Route::post('accomplish','ProcessController@accomplish');
  387. Route::post('updateDailyOutput','ProcessController@updateDailyOutput');
  388. Route::post('storeProcessDailyParticipant','ProcessController@storeProcessDailyParticipant');
  389. Route::post('verifyUserName','ProcessController@verifyUserName');
  390. Route::post('updateProcessDailyParticipant','ProcessController@updateProcessDailyParticipant');
  391. Route::post('processDailyParticipantAudit/{id}','ProcessController@processDailyParticipantAudit');
  392. Route::post('getTutorials/{id}','ProcessController@getTutorials');
  393. Route::post('selectedTutorial','ProcessController@selectedTutorial');
  394. Route::post('deleteTutorial','ProcessController@deleteTutorial');
  395. Route::post('ownerGetTutorials/{owner_id}','ProcessController@ownerGetTutorials');
  396. Route::post('rollback','ProcessController@rollback');
  397. Route::get('recycle','ProcessController@recycle');
  398. Route::post('recover','ProcessController@recover');
  399. Route::post('audit','ProcessController@audit');
  400. Route::post('processAccomplish','ProcessController@processAccomplish');
  401. Route::post('checkAndAccept','ProcessController@checkAndAccept');
  402. Route::post('updateUnitPrice','ProcessController@updateUnitPrice');
  403. Route::post('workGroupVerify','ProcessController@workGroupVerify');
  404. Route::post('accountantVerify','ProcessController@accountantVerify');
  405. Route::post('updateStartDate','ProcessController@updateStartDate');
  406. Route::post('updateEndDate','ProcessController@updateEndDate');
  407. Route::delete('destroyDailyParticipant/{id}','ProcessController@destroyDailyParticipant');
  408. Route::post('importPasteData','ProcessController@importPasteData');
  409. Route::any('export','ProcessController@export');
  410. Route::post('deleteProcessContent/{id}','ProcessController@deleteProcessContent');
  411. });
  412. Route::resource('process','ProcessController');
  413. /** 人事 */
  414. Route::group(['prefix'=>'personnel'],function(){
  415. /** 打卡 */
  416. Route::group(['prefix'=>'checking-in'],function(){
  417. /** 打卡记录 */
  418. Route::group(['prefix'=>'userDutyCheck'],function(){
  419. Route::get('importAndExportClock','UserDutyCheckController@importAndExportClock');
  420. Route::get('clock','UserDutyCheckController@clock');
  421. Route::post('storeClock','UserDutyCheckController@storeClock');
  422. Route::post('绑定临时工并进组','UserDutyCheckController@绑定临时工并进组');
  423. Route::post('importGroupClock','UserDutyCheckController@importGroupClock');
  424. Route::get('createUserDetail/{mobile_phone}','UserDutyCheckController@createUserDetail');
  425. Route::get('updateUserLaborCompanies/{mobile_phone}','UserDutyCheckController@updateUserLaborCompanies');
  426. Route::post('storeUserDetail','UserDutyCheckController@storeUserDetail');
  427. Route::post('storeUpdateUserLaborCompanies','UserDutyCheckController@storeUpdateUserLaborCompanies');
  428. });
  429. Route::get('goGetQRCode','QRCodeController@goGetQRCode');
  430. Route::get('QRCode','QRCodeController@QRCode');
  431. Route::get('importAndExportQRCode','QRCodeController@importAndExportQRCode');
  432. Route::post('refreshQRCode','QRCodeController@refreshQRCode');
  433. Route::get('createReplenishClock','PersonnelController@createReplenishClock');
  434. Route::post('checkUserLabors','PersonnelController@checkUserLabors');
  435. Route::post('storeReplenishClock','PersonnelController@storeReplenishClock');
  436. Route::get('clockAudit','PersonnelController@clockAudit');
  437. Route::get('missionAudit','PersonnelController@missionAudit');
  438. Route::post('storeClockAudit','PersonnelController@storeClockAudit');
  439. Route::post('updateDutyCheckType','PersonnelController@updateDutyCheckType');
  440. Route::post('storeGroupAudit','PersonnelController@storeGroupAudit');
  441. Route::post('isException','PersonnelController@isException');
  442. Route::post('storeMissionAudit','PersonnelController@storeMissionAudit');
  443. });
  444. Route::get('relating',function (){return view('personnel/menuPersonnel');});
  445. Route::resource('laborReport','LaborReportController');
  446. });
  447. Route::get('getLaborReport','LaborReportController@getDailyLabor');
  448. /** 临时工报表 */
  449. Route::group(['prefix'=>'laborReport'],function(){
  450. Route::post('recover','LaborReportController@recover');
  451. Route::get('recycle','LaborReportController@recycle');
  452. Route::post('guardClockAudit','LaborReportController@guardClockAudit');
  453. Route::post('groupClockAudit','LaborReportController@groupClockAudit');
  454. Route::post('addRemarkAndGroupClock','LaborReportController@addRemarkAndGroupClock');
  455. Route::post('groupExport','LaborReportController@groupExport');
  456. Route::post('groupExportEnsure','LaborReportController@groupExportEnsure');
  457. Route::any('export','LaborReportController@export');
  458. Route::post('updateLaborCompany','LaborReportController@updateLaborCompany');
  459. Route::any('删除/{id}','LaborReportController@删除');
  460. Route::post('changeLaborReportRemark', 'LaborReportController@changeLaborReportRemark');
  461. });
  462. /** 库存 */
  463. Route::group(['prefix'=>'inventory'],function(){
  464. /** 说明 */
  465. Route::group(['prefix'=>'statement'],function(){
  466. /** 动库报表 */
  467. Route::group(['prefix'=>'changeInventory'],function(){
  468. Route::any('export','InventoryController@exportData');
  469. Route::get('downLoadExcel','InventoryController@downLoadExcel');
  470. Route::post('deleteExcel','InventoryController@deleteExcel');
  471. });
  472. Route::get('changeInventory','InventoryController@changeInventory');
  473. /** 全部库存 */
  474. Route::group(['prefix'=>'allInventory'],function(){
  475. Route::any('export','InventoryController@exportAllInventory');
  476. });
  477. Route::get('allInventory','InventoryController@allInventory');
  478. /** 每日记录 */
  479. Route::group(['prefix'=>'dailyLog'],function(){
  480. Route::any('export','InventoryController@exportDailyLog');
  481. Route::post('getLoggingOwner','InventoryController@getLoggingOwner');
  482. Route::post('addLoggingOwner','InventoryController@addLoggingOwner');
  483. });
  484. Route::get('dailyLog','InventoryController@dailyLog');
  485. Route::get('inventoryCompare','InventoryCompareController@inventoryCompare');
  486. Route::any('inventoryCompare/export','InventoryCompareController@exportInventoryCompare');
  487. });
  488. /** 库存盘点 */
  489. Route::group(['prefix'=>'stockInventory'],function(){
  490. Route::get('mission','InventoryAccountController@mission');
  491. Route::any('enterStockInventory/{id}','InventoryAccountController@enterStockInventory');
  492. Route::any('inventoryAccountMission/export','InventoryAccountController@exportInventoryAccountMission');
  493. Route::get('mission','InventoryAccountController@mission');
  494. Route::post('createStockInventoryMission','InventoryAccountController@createStockInventoryMission');
  495. Route::post('searchCommodityByBarcode','InventoryAccountController@searchCommodityByBarcode');
  496. Route::get('blindReceive/{id}','InventoryAccountController@enterBlindReceive');
  497. Route::post('baseOnBlindReceive','InventoryAccountController@baseOnBlindReceive');
  498. Route::post('batchStockByLocation','InventoryAccountController@batchStockByLocation');
  499. });
  500. /** 库存比对 */
  501. Route::group(['prefix'=>'inventoryCompare'],function(){
  502. /** excel */
  503. Route::group(['prefix'=>'import'],function(){
  504. Route::post('excel','InventoryCompareController@importExcel');
  505. });
  506. });
  507. Route::get('syncOwners','InventoryAccountController@syncOwners');
  508. Route::post('inventoryChecked','InventoryAccountController@inventoryChecked');
  509. Route::any('删除盘点记录','InventoryAccountController@删除盘点记录');
  510. Route::post('跳过盘点记录','InventoryAccountController@跳过盘点记录');
  511. Route::post('确认盘点差异','InventoryAccountController@确认盘点差异');
  512. Route::post('批量跳过或确认差异','InventoryAccountController@批量跳过或确认差异');
  513. Route::get('完结盘点任务/{id}','InventoryAccountController@完结盘点任务');
  514. Route::post('修改质量状态','InventoryAccountController@修改质量状态');
  515. Route::post('增加系统之外的盘点记录','InventoryAccountController@增加系统之外的盘点记录');
  516. Route::post('盘点选中任务','InventoryAccountController@盘点选中任务');
  517. Route::post('stockInventoryEnd','InventoryAccountController@stockInventoryEnd');
  518. Route::any('deleteStockInventoryMission/{id}','InventoryAccountController@deleteStockInventoryMission');
  519. Route::any('stockInventoryExport','InventoryAccountController@stockInventoryExport');
  520. Route::any('stockInventory','InventoryAccountController@stockInventory');
  521. Route::post('searchStockInventoryRecord','InventoryAccountController@searchStockInventoryRecord');
  522. });
  523. /** 订单 */
  524. Route::group(['prefix'=>'order'],function(){
  525. /** 主页 */
  526. Route::group(['prefix'=>'index'],function(){
  527. Route::get('delivering','OrderController@delivering');
  528. Route::get('commodityAssign','OrderCommodityAssignController@index');
  529. Route::match(['get','post'],'export','OrderController@export');
  530. Route::group(['prefix'=>'commodityAssign'],function(){
  531. Route::post('import','OrderCommodityAssignController@import');
  532. });
  533. Route::group(['prefix'=>'freeze'],function(){
  534. Route::post('delFreeze','OrderFreezeController@delFreeze');
  535. });
  536. Route::resource('freeze','OrderFreezeController');
  537. });
  538. /** 创建 */
  539. Route::group(['prefix'=>'create'],function(){
  540. Route::post('batchComments','OrderController@batchComments');
  541. });
  542. /** 波次 */
  543. Route::group(['prefix'=>'wave'],function(){
  544. Route::get('index','WaveController@index');
  545. Route::post('cancelPrinting','WaveController@cancelPrinting');
  546. Route::any('exportExcel','WaveController@exportExcelOnParams');
  547. });
  548. /** 问题件 */
  549. Route::group(['prefix'=>'issue'],function(){
  550. /** 工作量 */
  551. Route::group(['prefix'=>'workLoad'],function(){
  552. Route::get('index','OrderIssuePerformanceController@workLoadPage');
  553. Route::any('export','OrderIssuePerformanceController@exportWorkLoad');
  554. });
  555. /** 绩效 */
  556. Route::group(['prefix'=>'orderIssuePerformance'],function(){
  557. Route::get('index','OrderIssuePerformanceController@index');
  558. Route::any('export','OrderIssuePerformanceController@export');
  559. });
  560. Route::get('index','OrderIssueController@index');
  561. Route::get('create','OrderIssueController@create');
  562. Route::post('store','OrderIssueController@store');
  563. Route::post('batchImport','OrderIssueController@batchImport');
  564. Route::get('excelImport','OrderIssueController@excelImport');
  565. Route::get('edit/{id}','OrderIssueController@edit');
  566. Route::get('recycle','OrderIssueController@recycleBin');
  567. // Route::match(['get','post'],'export','OrderIssueController@exportOrderIssue');
  568. Route::match(['get','post'],'export','OrderIssueController@exportJsonExcel');
  569. });
  570. /** 跟踪 */
  571. Route::group(['prefix'=>'tracking'],function(){
  572. Route::get('index',"OrderTrackingController@index");
  573. Route::any('export',"OrderTrackingController@export");
  574. Route::get('update','OrderTrackingController@updateApi');
  575. Route::post('upload','OrderTrackingController@upload');
  576. Route::post('destroyImg','OrderTrackingController@destroyImg');
  577. });
  578. Route::post('freeze','OrderController@freeze');
  579. Route::post('freezeAll','OrderController@freezeAll');
  580. Route::post('thaw','OrderController@thaw');
  581. Route::post('deAllocation','OrderController@deAllocation');
  582. Route::post('deAllocationAll','OrderController@deAllocationAll');
  583. Route::post('resetLogisticsGetMark','OrderController@resetLogisticsGetMark');
  584. Route::post('createRejectedBill','OrderController@createRejectedBill');
  585. Route::post('isRejectedBillExist','OrderController@isRejectedBillExist');
  586. });
  587. /** 客户 */
  588. Route::group(['prefix'=>'customer'],function(){
  589. /** 项目 */
  590. Route::group(['prefix'=>'project'],function(){
  591. Route::group(['prefix'=>'report'],function(){
  592. Route::match(['GET','POST'],'export','CustomerController@projectReportExport');
  593. });
  594. Route::group(['prefix'=>'index'],function(){
  595. Route::match(['GET','POST'],'export','CustomerController@projectIndexExport');
  596. });
  597. Route::get('report','CustomerController@projectReport');
  598. Route::get('index','CustomerController@projectIndex');
  599. Route::get('create','CustomerController@projectCreate');
  600. Route::group(['prefix'=>'area'],function(){
  601. Route::match(['GET','POST'],'export','CustomerController@projectAreaExport');
  602. });
  603. Route::get('area','CustomerController@projectArea');
  604. Route::get('{id}/edit','CustomerController@projectEdit');
  605. Route::post('projectUpdate','CustomerController@projectUpdate');
  606. Route::post('getOwnerPriceModel','CustomerController@getOwnerPriceModel');
  607. Route::post('updateArea','CustomerController@updateArea');
  608. Route::post('verify','CustomerController@verifyProject');
  609. //获取现有计费模型
  610. Route::post('getPriceModel','PriceModelController@getPriceModel');
  611. //手动生成账单
  612. Route::post("createReport","CustomerController@createReport");
  613. Route::post("createAreaReport","CustomerController@createAreaReport");
  614. });
  615. Route::group(['prefix'=>'finance'],function(){
  616. Route::group(['prefix'=>'instantBill'],function(){
  617. Route::match(['GET','POST'],'export','CustomerController@financeInstantBillExport');
  618. });
  619. Route::get('instantBill','CustomerController@financeInstantBill');
  620. Route::group(['prefix'=>'billConfirmation'],function(){
  621. Route::match(['GET','POST'],'export','CustomerController@financeBillConfirmationExport');
  622. });
  623. Route::get('billConfirmation','CustomerController@financeBillConfirmation');
  624. Route::post('updateBillReport','CustomerController@updateBillReport');
  625. Route::post('billConfirm','CustomerController@billConfirm');
  626. });
  627. Route::get('relating',function (){return view('customer.relating');});
  628. Route::group(['prefix' => 'customer'], function () {
  629. Route::get('customerLogStatus', 'CustomerLogStatusController@index');
  630. Route::post('getLog', 'CustomerLogController@get');
  631. Route::post('editLog', 'CustomerLogController@update');
  632. Route::post('getLogStatus', 'CustomerLogStatusController@get');
  633. Route::post('storeLog', 'CustomerLogController@store');
  634. Route::post('relatedOwner', 'CustomerBaseController@relatedOwner');
  635. Route::post('addTag', 'CustomerBaseController@addTag');
  636. Route::post('delTag', 'CustomerBaseController@delTag');
  637. Route::post('destroyLog', 'CustomerBaseController@destroyLog');
  638. Route::group(['prefix' => 'customerLogStatus'], function () {
  639. Route::post('save', 'CustomerLogStatusController@save');
  640. Route::post('destroy', 'CustomerLogStatusController@destroy');
  641. });
  642. Route::group(['prefix' => 'customerTag'], function () {
  643. Route::post('save', 'CustomerTagController@save');
  644. Route::post('get', 'CustomerTagController@get');
  645. });
  646. Route::resource('customerTag', 'CustomerTagController',['only' => ['index',"destroy"]]);
  647. Route::resource('customerLog', 'CustomerLogController', ['only' => ['index', 'show', 'create', 'store', 'update', 'edit', 'destroy']]);
  648. });
  649. Route::group(['prefix' => 'ownerContract'], function () {
  650. Route::post('store', 'OwnerContractController@store');
  651. Route::get('down', 'OwnerContractController@downFile');
  652. });
  653. Route::resource('customer', 'CustomerBaseController');
  654. });
  655. /** 站管理 */
  656. Route::group(['prefix'=>'station'],function(){
  657. Route::get('index','StationController@monitorIndex');
  658. Route::group(['prefix'=>'monitor'],function(){
  659. Route::get('/','StationController@monitorIndex');
  660. Route::get('/index','StationController@monitorIndex');
  661. Route::get('/{station}','StationController@monitorShow');
  662. });
  663. });
  664. /** 控制台 */
  665. Route::group(['prefix'=>'control'],function () {
  666. Route::get('panel/menu','ControlPanelController@index') ;
  667. });
  668. /** 采购管理 */
  669. Route::group(['prefix'=>'procurement'],function () {
  670. /** 采购 */
  671. Route::group(['prefix'=>'procurement'],function(){
  672. Route::get('index','ProcurementController@index');
  673. Route::get('create','ProcurementController@create');
  674. Route::post('store','ProcurementController@store');
  675. Route::post('getOwnerMaterial','ProcurementController@getOwnerMaterial');
  676. Route::post('createProcurement','ProcurementController@createProcurement');
  677. Route::post('createEnquiry','ProcurementController@createEnquiry');
  678. Route::post('createProof','ProcurementController@createProof');
  679. Route::any('procurementExport','ProcurementController@procurementExport');
  680. Route::get('cancel/{id}','ProcurementController@cancel');
  681. Route::post('initiateProcurement','ProcurementController@initiateProcurement');
  682. Route::post('submitProcurement','ProcurementController@submitProcurement');
  683. });
  684. /** 财务 */
  685. Route::group(['prefix'=>'finance'],function(){
  686. Route::get('checkBill','ProcurementController@checkBill');
  687. Route::get('procurementBill','ProcurementController@procurementBill');
  688. Route::get('monthlyBillReport','ProcurementController@monthlyBillReport');
  689. Route::post('fillInvoice','ProcurementController@fillInvoice');
  690. Route::any('procurementTotalBillExport','ProcurementController@procurementTotalBillExport');
  691. Route::any('procurementBillExport','ProcurementController@procurementBillExport');
  692. Route::any('checkBillExport','ProcurementController@checkBillExport');
  693. });
  694. Route::get('relating',function (){return view('procurement.menuProcurement');});
  695. });