Commit e054f77b authored by hujun's avatar hujun

费用报销审核行政审核

parent 968f50e0
...@@ -102,7 +102,14 @@ class ApplyForCost extends Basic ...@@ -102,7 +102,14 @@ class ApplyForCost extends Basic
if (!$is_check) { if (!$is_check) {
$where['a.store_id'] = $agent_data['store_id']; $where['a.store_id'] = $agent_data['store_id'];
} }
$where['a.status'] = 4;break; //财务三审 $where['a.status'] = 4;break; //财务三审-已出款
case 6 :
$get_check_user = 'index/getCostListSix/5';
$is_check = $this->checkAuth($get_check_user);
if (!$is_check) {
$where['a.store_id'] = $agent_data['store_id'];
}
$where['a.status'] = 5;break; //行政审核
default : default :
return $this->response(101, '请求错误'); return $this->response(101, '请求错误');
} }
...@@ -181,6 +188,9 @@ class ApplyForCost extends Basic ...@@ -181,6 +188,9 @@ class ApplyForCost extends Basic
case 4 : case 4 :
$check_url = 'index/checkCostFive/4'; $check_url = 'index/checkCostFive/4';
break; break;
case 5 :
$check_url = 'index/getCostListSix/5';
break;
default : default :
return $this->response(101, '请求错误'); return $this->response(101, '请求错误');
} }
......
...@@ -161,6 +161,8 @@ class Cost extends Basic ...@@ -161,6 +161,8 @@ class Cost extends Basic
$where['a.status'] = 3;break; $where['a.status'] = 3;break;
case 4 : case 4 :
$where['a.status'] = 4;break; $where['a.status'] = 4;break;
case 5 :
$where['a.status'] = 5;break;
} }
} }
...@@ -309,6 +311,8 @@ class Cost extends Basic ...@@ -309,6 +311,8 @@ class Cost extends Basic
case 4 : case 4 :
$params['img_name'] = json_decode($params['img_name'], true); $params['img_name'] = json_decode($params['img_name'], true);
$params['status'] = 4;break; $params['status'] = 4;break;
case 5 :
$params['status'] = 5;break;
default : default :
return $this->response($code, '请求链接参数错误'); return $this->response($code, '请求链接参数错误');
} }
......
...@@ -542,6 +542,7 @@ Route::group('index', [ ...@@ -542,6 +542,7 @@ Route::group('index', [
'getCostListThree/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 2]], //费用报销审核一审 'getCostListThree/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 2]], //费用报销审核一审
'getCostListFour/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 3]], //费用报销审核二审 'getCostListFour/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 3]], //费用报销审核二审
'getCostListFive/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 4]], //费用报销审核三审 'getCostListFive/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 4]], //费用报销审核三审
'getCostListSix/:check_status' => ['index/Cost/getCostList', ['method' => 'GET'], ['check_status' => 5]], //费用报销审核行政审核
'delCost' => ['index/Cost/delCost', ['method' => 'POST']], //删除费用报销审核 'delCost' => ['index/Cost/delCost', ['method' => 'POST']], //删除费用报销审核
'checkCostTwo/:check_status' => ['index/Cost/checkCost', ['method' => 'POST'], ['check_status' => 1]], //费用报销审核总监 'checkCostTwo/:check_status' => ['index/Cost/checkCost', ['method' => 'POST'], ['check_status' => 1]], //费用报销审核总监
'checkCostThree/:check_status' => ['index/Cost/checkCost', ['method' => 'POST'], ['check_status' => 2]], //费用报销审核一审 'checkCostThree/:check_status' => ['index/Cost/checkCost', ['method' => 'POST'], ['check_status' => 2]], //费用报销审核一审
......
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