name('systemMerchantCategoryLst')->option([ '_alias' => '商户分类列表', ]); // Route::get('category_lst', '/lst')->option([ // '_alias' => '商户分类列表', // '_auth' => false, // ]); Route::post('add', '/create')->name('systemMerchantCategoryCreate')->option([ '_alias' => '商户分类添加', ]); Route::get('form', '/createForm')->name('systemMerchantCategoryCreateForm')->option([ '_alias' => '商户分类添加表单', '_auth' => false, '_form' => 'systemMerchantCategoryCreate', ]); Route::delete('del/:id', '/delete')->name('systemMerchantCategoryDelete')->option([ '_alias' => '商户分类删除', ]); Route::post('edit/:id', '/update')->name('systemMerchantCategoryUpdate')->option([ '_alias' => '商户分类编辑', ]); Route::get('edit/form/:id', '/updateForm')->name('systemMerchantCategoryUpdateForm')->option([ '_alias' => '商户分类编辑表单', '_auth' => false, '_form' => 'systemMerchantCategoryUpdate', ]); Route::get('options', '/getOptions')->option([ '_alias' => '商户分类筛选', '_auth' => false, ]); })->prefix('merchant.system.merchant.MerchantCategory')->option([ '_path' => '/merchant/classify', '_auth' => true, ]); // 店铺类型 Route::group('/merchant/type',function(){ Route::get('index', '/index')->name('systemMerchantTypeLst')->option([ '_alias' => '列表', ]); Route::get('lst', '/lst')->name('systemMerchantTypeLst')->option([ '_alias' => '列表', ]); Route::get('read', '/read')->name('systemMerchantTypeDetail')->option([ '_alias' => '详情', ]); Route::get('form', '/form')->name('systemMerchantTypeAdd')->option([ '_alias' => '添加/编辑页', ]); Route::post('add', '/add')->name('systemMerchantTypeAdd')->option([ '_alias' => '添加', ]); Route::put('edit', '/edit')->name('systemMerchantTypeUpdate')->option([ '_alias' => '编辑', ]); Route::delete('del', '/del')->name('systemMerchantTypeDelete')->option([ '_alias' => '删除', ]); Route::get('mark/:id', '/markForm')->name('systemMerchantTypeMarkForm')->option([ '_alias' => '备注', '_auth' => false, '_form' => 'systemMerchantTypeMark', ]); Route::post('mark', '/mark')->name('systemMerchantTypeMark')->option([ '_alias' => '备注', ]); Route::get('descr', '/description')->name('systemMerchantTypeDescrForm')->option([ '_alias' => '店铺类型说明', ]); Route::post('description', '/description')->name('systemMerchantTypeDescr')->option([ '_alias' => '店铺类型说明', ]); })->prefix('merchant.system.merchant.MerchantType')->option([ '_path' => '/merchant/type', '_auth' => true, ]); //店铺保证金 Route::group('/margin', function(){ //缴纳记录 Route::get('lst', '/lst')->name('systemMerchantMarginLst')->option([ '_alias' => '缴纳记录', ]); //扣费记录 Route::get('list/:id', '/getMarginLst')->name('systemMarginList')->option([ '_alias' => '扣费记录', ]); //扣除保证金 Route::get('set/:id/form', '/setMarginForm')->name('systemMarginSetForm')->option([ '_alias' => '扣除保证金表单', '_auth' => false, '_form' => 'systemMarginSet', ]); Route::post('set', '/setMargin')->name('systemMarginSet')->option([ '_alias' => '扣除保证金', ]); })->prefix('merchant.system.merchant.MerchantMargin')->option([ '_path' => '/margin', '_auth' => true, ]); // 保证金退还 Route::group('margin/refund', function(){ //退款申请 Route::get('refund/lst', 'financial.Financial/getMarginLst')->name('systemMarginRefundList')->option([ '_alias' => '退款申请列表', ]); Route::get('refund/show/:id', 'financial.Financial/refundShow')->name('systemMarginRefundShow')->option([ '_alias' => '退款申请详情', ]); // //审核 Route::get('refund/status/:id/form', 'financial.Financial/statusForm')->name('systemMarginRefundSwitchStatusForm')->option([ '_alias' => '审核表单', '_auth' => false, '_form' => 'systemMarginRefundSwitchStatus', ]); Route::post('refund/status/:id', 'financial.Financial/switchStatus')->name('systemMarginRefundSwitchStatus')->append(['type' => 1])->option([ '_alias' => '审核', ]); // //备注 Route::get('refund/mark/:id/form', 'financial.Financial/markMarginForm')->name('systemMarginRefundMarkForm')->option([ '_alias' => '备注表单', '_auth' => false, '_form' => 'systemMarginRefundMark', ]); Route::post('refund/mark/:id', 'financial.Financial/mark')->name('systemMarginRefundMark')->option([ '_alias' => '备注', ]); }); });