去掉控制器方法的后缀名
This commit is contained in:
@@ -17,7 +17,7 @@ class AdjustController extends AuditController
|
||||
{
|
||||
public $permission = [];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_cost_adjust',
|
||||
@@ -82,7 +82,7 @@ class AdjustController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -100,17 +100,17 @@ class AdjustController extends AuditController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class CategoryController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_cost_category',
|
||||
@@ -64,7 +64,7 @@ class CategoryController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction()
|
||||
public function create()
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'customer_cost_category', 'id' => $id]);
|
||||
@@ -73,12 +73,12 @@ class CategoryController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$search = search_form([], [
|
||||
['text','customer_cost_category.name','名称'],
|
||||
@@ -101,7 +101,7 @@ class CategoryController extends DefaultController
|
||||
}
|
||||
|
||||
// 删除
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -17,7 +17,7 @@ class CompenController extends AuditController
|
||||
{
|
||||
public $permission = ['importExcel'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_cost_compen',
|
||||
@@ -78,7 +78,7 @@ class CompenController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -96,17 +96,17 @@ class CompenController extends AuditController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function importExcelAction()
|
||||
public function importExcel()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$file = Request::file('file');
|
||||
@@ -150,7 +150,7 @@ class CompenController extends AuditController
|
||||
return view('importExcel');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -17,7 +17,7 @@ class CostController extends AuditController
|
||||
{
|
||||
public $permission = ['dialog', 'serviceSaleOrder', 'useCount'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_cost',
|
||||
@@ -88,7 +88,7 @@ class CostController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -106,18 +106,18 @@ class CostController extends AuditController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
// 费用参照到订单
|
||||
public function serviceSaleOrderAction()
|
||||
public function serviceSaleOrder()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_cost',
|
||||
@@ -183,7 +183,7 @@ class CostController extends AuditController
|
||||
}
|
||||
|
||||
// 可用列表
|
||||
public function useCountAction()
|
||||
public function useCount()
|
||||
{
|
||||
$customer_id = Request::get('customer_id');
|
||||
$count = DB::table('customer_cost_data')
|
||||
@@ -194,7 +194,7 @@ class CostController extends AuditController
|
||||
}
|
||||
|
||||
// 批量编辑
|
||||
public function batchEditAction()
|
||||
public function batchEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -215,7 +215,7 @@ class CostController extends AuditController
|
||||
}
|
||||
|
||||
// 费用关闭
|
||||
public function closeAction()
|
||||
public function close()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -233,7 +233,7 @@ class CostController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -17,7 +17,7 @@ class RebateController extends AuditController
|
||||
{
|
||||
public $permission = ['importExcel'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'customer_cost_rebate',
|
||||
@@ -78,7 +78,7 @@ class RebateController extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
|
||||
@@ -96,17 +96,17 @@ class RebateController extends AuditController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function importExcelAction()
|
||||
public function importExcel()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$file = Request::file('file');
|
||||
@@ -146,7 +146,7 @@ class RebateController extends AuditController
|
||||
return view('importExcel');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -12,7 +12,7 @@ class ReportController extends DefaultController
|
||||
/**
|
||||
* 费用使用统计
|
||||
*/
|
||||
public function saleOrderDetailAction()
|
||||
public function saleOrderDetail()
|
||||
{
|
||||
$sdate = date('Y-m-01');
|
||||
$edate = date('Y-m-d');
|
||||
|
||||
Reference in New Issue
Block a user