去掉控制器方法的后缀名
This commit is contained in:
@@ -18,7 +18,7 @@ class AllocationController extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog', 'logistics', 'stockSelect'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_allocation',
|
||||
@@ -69,7 +69,7 @@ class AllocationController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -83,22 +83,22 @@ class AllocationController extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -139,7 +139,7 @@ class AllocationController extends WorkflowController
|
||||
}
|
||||
|
||||
// 选择库存
|
||||
public function stockSelectAction()
|
||||
public function stockSelect()
|
||||
{
|
||||
$search = search_form(['advanced' => ''], [
|
||||
['form_type' => 'text', 'name' => '产品名称', 'field' => 'name'],
|
||||
@@ -167,7 +167,7 @@ class AllocationController extends WorkflowController
|
||||
}
|
||||
|
||||
// 物流信息
|
||||
public function logisticsAction()
|
||||
public function logistics()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$gets = Request::get('stock_allocation');
|
||||
@@ -195,7 +195,7 @@ class AllocationController extends WorkflowController
|
||||
}
|
||||
|
||||
// 删除
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class CancelController extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_cancel',
|
||||
@@ -71,7 +71,7 @@ class CancelController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -85,22 +85,22 @@ class CancelController extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -146,7 +146,7 @@ class CancelController extends WorkflowController
|
||||
}
|
||||
|
||||
// 批量编辑
|
||||
public function batchEditAction()
|
||||
public function batchEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -166,7 +166,7 @@ class CancelController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
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' => 'stock_type',
|
||||
@@ -65,7 +65,7 @@ class CategoryController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction()
|
||||
public function create()
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'stock_type', 'id' => $id]);
|
||||
@@ -74,12 +74,12 @@ class CategoryController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_type',
|
||||
@@ -112,7 +112,7 @@ class CategoryController extends DefaultController
|
||||
], 'dialog');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -33,7 +33,7 @@ class DeliveryController extends WorkflowController
|
||||
'autoSave'
|
||||
];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_delivery',
|
||||
@@ -111,7 +111,7 @@ class DeliveryController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function detailAction()
|
||||
public function detail()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_delivery',
|
||||
@@ -178,7 +178,7 @@ class DeliveryController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function autoSaveAction()
|
||||
public function autoSave()
|
||||
{
|
||||
$gets = Request::all();
|
||||
$master = $gets['master'];
|
||||
@@ -234,10 +234,10 @@ class DeliveryController extends WorkflowController
|
||||
$url = url($master['uri'].'/show', ['id' => $id, 'client' => $master['client']]);
|
||||
return $this->json($bill['name'].'保存成功', $url);
|
||||
}
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -260,23 +260,23 @@ class DeliveryController extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
// 批量编辑
|
||||
public function batchEditAction()
|
||||
public function batchEdit()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -296,7 +296,7 @@ class DeliveryController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -333,12 +333,12 @@ class DeliveryController extends WorkflowController
|
||||
}
|
||||
|
||||
// 默认模板
|
||||
$tpl = $this->createAction('print');
|
||||
$tpl = $this->create('print');
|
||||
return $print_type == 'pdf' ? print_prince($tpl) : $tpl;
|
||||
}
|
||||
|
||||
// 物流信息
|
||||
public function logisticsAction()
|
||||
public function logistics()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$gets = Request::get('stock_delivery');
|
||||
@@ -367,7 +367,7 @@ class DeliveryController extends WorkflowController
|
||||
}
|
||||
|
||||
// 获取库存
|
||||
public function getBatchSelectAction()
|
||||
public function getBatchSelect()
|
||||
{
|
||||
$search = search_form(['advanced' => ''], [
|
||||
['form_type' => 'text', 'name' => '产品名称', 'field' => 'name'],
|
||||
@@ -384,7 +384,7 @@ class DeliveryController extends WorkflowController
|
||||
}
|
||||
|
||||
// 获取库存(直营)
|
||||
public function getBatchSelectZYAction()
|
||||
public function getBatchSelectZY()
|
||||
{
|
||||
$search = search_form(['advanced' => ''], [
|
||||
['form_type' => 'text', 'name' => '产品名称', 'field' => 'name'],
|
||||
@@ -401,7 +401,7 @@ class DeliveryController extends WorkflowController
|
||||
}
|
||||
|
||||
// 获取库存(全部)
|
||||
public function getBatchSelectAllAction()
|
||||
public function getBatchSelectAll()
|
||||
{
|
||||
$search = search_form(['advanced' => ''], [
|
||||
['form_type' => 'text', 'name' => '产品名称', 'field' => 'name'],
|
||||
@@ -417,7 +417,7 @@ class DeliveryController extends WorkflowController
|
||||
], 'getBatchSelect');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class DirectController extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog', 'importExcel'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_direct',
|
||||
@@ -66,7 +66,7 @@ class DirectController extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -80,22 +80,22 @@ class DirectController extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -153,7 +153,7 @@ class DirectController extends WorkflowController
|
||||
], 'print/'.$template_id);
|
||||
}
|
||||
|
||||
public function importExcelAction()
|
||||
public function importExcel()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$customer_id = Request::get('customer_id');
|
||||
@@ -228,7 +228,7 @@ class DirectController extends WorkflowController
|
||||
return view('importExcel');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class LocationController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog', 'dialog2', 'serviceWarehouse'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'warehouse_location',
|
||||
@@ -65,7 +65,7 @@ class LocationController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'warehouse_location', 'id' => $id, 'action' => $action]);
|
||||
@@ -74,12 +74,12 @@ class LocationController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'warehouse_location',
|
||||
@@ -115,7 +115,7 @@ class LocationController extends DefaultController
|
||||
/**
|
||||
* 获取现存量
|
||||
*/
|
||||
public function dialog2Action()
|
||||
public function dialog2()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'warehouse_location',
|
||||
@@ -151,7 +151,7 @@ class LocationController extends DefaultController
|
||||
/**
|
||||
* 获取仓库货位
|
||||
*/
|
||||
public function serviceWarehouseAction()
|
||||
public function serviceWarehouse()
|
||||
{
|
||||
$warehouse_id = Request::get('warehouse_id');
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -163,7 +163,7 @@ class LocationController extends DefaultController
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class Record01Controller extends AuditController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_record01',
|
||||
@@ -67,7 +67,7 @@ class Record01Controller extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -81,23 +81,23 @@ class Record01Controller extends AuditController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
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 printAction()
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
print_prince($this->createAction('print'));
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class Record08Controller extends AuditController
|
||||
{
|
||||
public $permission = ['dialog', 'importExcel'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_record08',
|
||||
@@ -67,7 +67,7 @@ class Record08Controller extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -81,23 +81,23 @@ class Record08Controller extends AuditController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
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 printAction()
|
||||
public function print()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
print_prince($this->createAction('print'));
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
public function importExcelAction()
|
||||
public function importExcel()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$file = Request::file('file');
|
||||
@@ -148,7 +148,7 @@ class Record08Controller extends AuditController
|
||||
return view('importExcel');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class Record09Controller extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_record09',
|
||||
@@ -67,7 +67,7 @@ class Record09Controller extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -81,22 +81,22 @@ class Record09Controller extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -138,7 +138,7 @@ class Record09Controller extends WorkflowController
|
||||
return $tpl;
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class Record10Controller extends WorkflowController
|
||||
{
|
||||
public $permission = ['dialog', 'print3'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_record10',
|
||||
@@ -67,7 +67,7 @@ class Record10Controller extends WorkflowController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -82,30 +82,30 @@ class Record10Controller extends WorkflowController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function auditAction()
|
||||
public function audit()
|
||||
{
|
||||
return $this->createAction('audit');
|
||||
return $this->create('audit');
|
||||
}
|
||||
|
||||
public function showAction()
|
||||
public function show()
|
||||
{
|
||||
return $this->createAction('show');
|
||||
return $this->create('show');
|
||||
}
|
||||
|
||||
public function print2Action()
|
||||
public function print2()
|
||||
{
|
||||
$this->layout = 'layouts.print2';
|
||||
$view = $this->createAction('print');
|
||||
$view = $this->create('print');
|
||||
$viewData = $view->getData();
|
||||
print_prince($this->createAction('print'));
|
||||
print_prince($this->create('print'));
|
||||
}
|
||||
|
||||
public function printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -149,12 +149,12 @@ class Record10Controller extends WorkflowController
|
||||
|
||||
} else {
|
||||
$this->layout = 'layouts.print2';
|
||||
$tpl = $this->createAction('print');
|
||||
$tpl = $this->create('print');
|
||||
print_prince($tpl);
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -16,7 +16,7 @@ class Record11Controller extends AuditController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'stock_record11',
|
||||
@@ -66,7 +66,7 @@ class Record11Controller extends AuditController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction($action = 'edit')
|
||||
public function create($action = 'edit')
|
||||
{
|
||||
$id = (int) Request::get('id');
|
||||
$header['action'] = $action;
|
||||
@@ -80,17 +80,17 @@ class Record11Controller extends AuditController
|
||||
], $tpl);
|
||||
}
|
||||
|
||||
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 printAction()
|
||||
public function print()
|
||||
{
|
||||
$id = Request::get('id');
|
||||
$template_id = Request::get('template_id');
|
||||
@@ -135,12 +135,12 @@ class Record11Controller extends AuditController
|
||||
|
||||
} else {
|
||||
$this->layout = 'layouts.print2';
|
||||
$tpl = $this->createAction('print');
|
||||
$tpl = $this->create('print');
|
||||
print_prince($tpl);
|
||||
}
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -21,7 +21,7 @@ class ReportController extends DefaultController
|
||||
public $permission = [];
|
||||
|
||||
// 库存明细表
|
||||
public function stockDetailAction()
|
||||
public function stockDetail()
|
||||
{
|
||||
$sdate = date('Y-m-01');
|
||||
$edate = date('Y-m-d');
|
||||
@@ -77,7 +77,7 @@ class ReportController extends DefaultController
|
||||
}
|
||||
|
||||
// 库存汇总表
|
||||
public function stockTotalAction()
|
||||
public function stockTotal()
|
||||
{
|
||||
$search = search_form([
|
||||
'advanced' => 0,
|
||||
@@ -120,7 +120,7 @@ class ReportController extends DefaultController
|
||||
}
|
||||
|
||||
// 进销存库存汇总表
|
||||
public function stockInOutAction()
|
||||
public function stockInOut()
|
||||
{
|
||||
$sdate = date('Y-m-01');
|
||||
$edate = date('Y-m-d');
|
||||
|
||||
@@ -15,7 +15,7 @@ class TypeController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'sale_type',
|
||||
@@ -66,7 +66,7 @@ class TypeController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction()
|
||||
public function create()
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'sale_type', 'id' => $id]);
|
||||
@@ -75,12 +75,12 @@ class TypeController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'sale_type',
|
||||
@@ -113,7 +113,7 @@ class TypeController extends DefaultController
|
||||
], 'dialog');
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
@@ -15,7 +15,7 @@ class WarehouseController extends DefaultController
|
||||
{
|
||||
public $permission = ['dialog', 'permission'];
|
||||
|
||||
public function indexAction()
|
||||
public function index()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'warehouse',
|
||||
@@ -67,7 +67,7 @@ class WarehouseController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function createAction()
|
||||
public function create()
|
||||
{
|
||||
$id = (int)Request::get('id');
|
||||
$form = Form::make(['code' => 'warehouse', 'id' => $id]);
|
||||
@@ -76,12 +76,12 @@ class WarehouseController extends DefaultController
|
||||
], 'create');
|
||||
}
|
||||
|
||||
public function editAction()
|
||||
public function edit()
|
||||
{
|
||||
return $this->createAction();
|
||||
return $this->create();
|
||||
}
|
||||
|
||||
public function dialogAction()
|
||||
public function dialog()
|
||||
{
|
||||
$header = Grid::header([
|
||||
'code' => 'warehouse',
|
||||
@@ -127,7 +127,7 @@ class WarehouseController extends DefaultController
|
||||
/**
|
||||
* 权限设置
|
||||
*/
|
||||
public function permissionAction()
|
||||
public function permission()
|
||||
{
|
||||
$gets = Request::all();
|
||||
if (Request::method() == 'POST') {
|
||||
@@ -159,7 +159,7 @@ class WarehouseController extends DefaultController
|
||||
]);
|
||||
}
|
||||
|
||||
public function deleteAction()
|
||||
public function delete()
|
||||
{
|
||||
if (Request::method() == 'POST') {
|
||||
$ids = Request::get('id');
|
||||
|
||||
Reference in New Issue
Block a user