...
|
...
|
@@ -21,7 +21,7 @@ class InformationController extends RestBaseController |
|
|
{
|
|
|
|
|
|
/**
|
|
|
* @title 甲方领导消息审批列表
|
|
|
* @title 甲方领导消息审批列表(月检,培训演习)
|
|
|
* @description 接口说明
|
|
|
* @author 开发者
|
|
|
* @url /api/home/information/informationAList
|
...
|
...
|
@@ -29,11 +29,11 @@ class InformationController extends RestBaseController |
|
|
*
|
|
|
* @header name:token require:1 default: desc:header
|
|
|
* @param name:page type:inter require:1 default: other desc:分页页码
|
|
|
* @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:维修改造,3:培训演习)
|
|
|
* @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:培训演习)
|
|
|
*
|
|
|
* @return data:列表@
|
|
|
* @data id:列表id project_id:项目id project_name:项目名称 ins_m_time:月检时间 user_group:项目组
|
|
|
* @return type:工作类型 (1:月检,2:维修改造,3:培训演习)
|
|
|
* @return type:工作类型 (1:月检,2:培训演习)
|
|
|
* @return page:当前页数
|
|
|
* @return total_page:总页数
|
|
|
*/
|
...
|
...
|
@@ -58,8 +58,6 @@ class InformationController extends RestBaseController |
|
|
$b_company_id = $common->getCompany(['pid'=>$user['company_id']],'id');
|
|
|
$res['data'] = $common->getCheckByCompanyBId($b_company_id['id'],$page);
|
|
|
$res['total_page'] = $common->getCheckByCompanyBPage($b_company_id['id']);
|
|
|
}else if($type == 2){
|
|
|
//维修改造
|
|
|
}else{
|
|
|
//培训演习
|
|
|
$b_company_id = $common->getCompany(['pid'=>$user['company_id']],'id');
|
...
|
...
|
@@ -136,7 +134,7 @@ class InformationController extends RestBaseController |
|
|
*
|
|
|
* @header name:token require:1 default: desc:header
|
|
|
* @param name:id type:inter require:1 default: other desc:列表id
|
|
|
* @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:维修改造,3:培训演习)
|
|
|
* @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:培训演习)
|
|
|
*/
|
|
|
public function confirmA(){
|
|
|
if($this->request->isGet()){
|
...
|
...
|
@@ -157,8 +155,6 @@ class InformationController extends RestBaseController |
|
|
//月检
|
|
|
$checkModel = new CheckModel();
|
|
|
$res = $checkModel->where(['id'=>$id,'status'=>0])->update(['a_leader'=>$this->userId,'status'=>2,'l_confirm_time'=>time()]);
|
|
|
}else if($type == 2){
|
|
|
//维修改造
|
|
|
}else{
|
|
|
//培新演习
|
|
|
$trainModel = new TrainModel();
|
...
|
...
|
@@ -229,7 +225,7 @@ class InformationController extends RestBaseController |
|
|
*
|
|
|
* @header name:token require:1 default: desc:header
|
|
|
* @param name:id type:inter require:1 default: other desc:列表id
|
|
|
* @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:维修改造,3:培训演习)
|
|
|
* @param name:type type:inter require:1 default: other desc:工作类型(1:月检,2:培训演习)
|
|
|
*/
|
|
|
public function rejectA(){
|
|
|
if($this->request->isGet()){
|
...
|
...
|
@@ -255,8 +251,6 @@ class InformationController extends RestBaseController |
|
|
'reject_time'=>time()
|
|
|
];
|
|
|
$res = $checkModel->where(['id'=>$id,'status'=>0])->update($data);
|
|
|
}else if($type == 2){
|
|
|
//维修改造
|
|
|
}else{
|
|
|
//培新演习
|
|
|
$trainModel = new TrainModel();
|
...
|
...
|
|