Commit e6a4ae3f authored by hujun's avatar hujun

备份

parent 6c5c4e1e
...@@ -435,8 +435,23 @@ class Auth extends Basic ...@@ -435,8 +435,23 @@ class Auth extends Basic
} }
public function getMenu() { public function getMenu() {
$menu_data = Session::get('user_info'); $where_rule['status'] = 0;
return $this->response(200, '取值', $menu_data); $where_rule['is_menu'] = 1;
//超级管理员
$auth = new AuthRule();
$nav = $auth->getRule('',$where_rule);
$menu_data = [];
foreach ($nav as $k=>$v) {
$menu_data[$k]['id'] = $v['id'];
$menu_data[$k]['name'] = $v['name'];
$menu_data[$k]['title'] = $v['title'];
$menu_data[$k]['pid'] = $v['pid'];
}
$data = list_to_tree($menu_data);
return $this->response(200, '', $data);
} }
......
...@@ -43,7 +43,7 @@ class Finance extends Basic ...@@ -43,7 +43,7 @@ class Finance extends Basic
$where['e.audit_level'] = 0; $where['e.audit_level'] = 0;
$where['a.status'] = 10; $where['a.status'] = 10;
$check_status = [1,2,3,4]; $check_status = [0,1,2,3,4];
if (in_array($this->params['check_status'], $check_status)) { if (in_array($this->params['check_status'], $check_status)) {
switch ($this->params['check_status']) { switch ($this->params['check_status']) {
case 1 : case 1 :
...@@ -374,4 +374,13 @@ class Finance extends Basic ...@@ -374,4 +374,13 @@ class Finance extends Basic
return $this->response($data['code'], $data['msg']); return $this->response($data['code'], $data['msg']);
} }
/**
* 退款列表和已退款列表
*
* @return \think\response\View
*/
public function refundList() {
return view('refundList');
}
} }
\ No newline at end of file
{layout name="global/frame_tpl" /} {layout name="global/frame_tpl" /}
退款列表 退款列表 和 已退款列表
\ No newline at end of file \ No newline at end of file
...@@ -178,6 +178,7 @@ class AuthRule extends BaseModel ...@@ -178,6 +178,7 @@ class AuthRule extends BaseModel
public function getRule($field = 'id,name,title,pid,is_menu', $where) { public function getRule($field = 'id,name,title,pid,is_menu', $where) {
return $this->field($field) return $this->field($field)
->where($where) ->where($where)
->order('sort ASC')
->select(); ->select();
} }
......
...@@ -192,7 +192,8 @@ Route::group('index', [ ...@@ -192,7 +192,8 @@ Route::group('index', [
'reportListStatement/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>4]], //财务 成交报告-已结单 'reportListStatement/:check_status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['check_status'=>4]], //财务 成交报告-已结单
'reportListBackout/:status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['status'=>5]], //财务 成交报告-待撤销 'reportListBackout/:status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['status'=>5]], //财务 成交报告-待撤销
'reportListUndone/:status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['status'=>6]], //财务 成交报告-已撤销 'reportListUndone/:status' => ['index/Finance/reportList', [ 'method' => 'get' ] ,['status'=>6]], //财务 成交报告-已撤销
'refundList' => ['index/Finance/refundList', [ 'method' => 'get|post' ] ], //财务 退款 'refundList/:status' => ['index/Finance/refundList', [ 'method' => 'get|post' ], ['status'=>1] ], //财务 退款
'refundList/:status' => ['index/Finance/refundList', [ 'method' => 'get|post' ], ['status'=>2] ], //财务 已退款
'accountList' => ['index/Finance/accountList', [ 'method' => 'get|post' ] ], //财务 账户列表 'accountList' => ['index/Finance/accountList', [ 'method' => 'get|post' ] ], //财务 账户列表
'checkReportAttache/:check_status' => ['index/Finance/checkReport', [ 'method' => 'post' ], ['check_status'=>0]], //审核成交报告-专员审核 'checkReportAttache/:check_status' => ['index/Finance/checkReport', [ 'method' => 'post' ], ['check_status'=>0]], //审核成交报告-专员审核
'checkReportManager/:check_status' => ['index/Finance/checkReport', [ 'method' => 'post' ], ['check_status'=>1]], //审核成交报告-经理审核 'checkReportManager/:check_status' => ['index/Finance/checkReport', [ 'method' => 'post' ], ['check_status'=>1]], //审核成交报告-经理审核
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
[% for(var item in it){ %] [% for(var item in it){ %]
<li class="dropdown"> <li class="dropdown">
[% if(it[item]["_child"] == undefined || it[item]["_child"].length == 0) { %] [% if(it[item]["_child"] == undefined || it[item]["_child"].length == 0) { %]
<a href="/[%= it[item]['name'] %]" ><span class="glyphicon glyphicon-credit-card" aria-hidden="true"></span> <span class="span-list">[%= it[item]["title"] %]</span></a> <a href="javascript:;" ><span class="glyphicon glyphicon-credit-card" aria-hidden="true"></span> <span class="span-list">[%= it[item]["title"] %]</span></a>
[% } else { %] [% } else { %]
<a href="" class="dropdown-toggle" data-toggle="dropdown"> <span class="glyphicon glyphicon-credit-card" aria-hidden="true"></span><span class="span-list">[%= it[item]["title"] %]</span> <a href="" class="dropdown-toggle" data-toggle="dropdown"> <span class="glyphicon glyphicon-credit-card" aria-hidden="true"></span><span class="span-list">[%= it[item]["title"] %]</span>
<span class="glyphicon glyphicon-hand-down" aria-hidden="true"></span></a> <span class="glyphicon glyphicon-hand-down" aria-hidden="true"></span></a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment