web.php 39 KB

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