|
...
|
...
|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Aside\Project; |
|
|
|
|
|
|
|
use App\Helper\Arr;
|
|
|
|
use App\Http\Controllers\Aside\BaseController;
|
|
|
|
use App\Http\Logic\Aside\Project\OnlineCheckLogic;
|
|
|
|
use App\Http\Logic\Aside\Project\ProcessRecordsLogic;
|
|
|
|
use App\Http\Logic\Aside\Project\ProjectLogic;
|
|
|
|
use App\Http\Requests\Aside\Project\ProcessRecordsRequest;
|
|
...
|
...
|
@@ -170,4 +171,45 @@ class ProjectController extends BaseController |
|
|
|
$data = $payment->makeVisible(['contract', 'bill']);
|
|
|
|
return $this->success($data ? $data->toArray() : []);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 提交审核
|
|
|
|
* @author zbj
|
|
|
|
* @date 2023/6/29
|
|
|
|
*/
|
|
|
|
public function submit_check(Request $request, OnlineCheckLogic $logic){
|
|
|
|
$request->validate([
|
|
|
|
'id'=>'required'
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空'
|
|
|
|
]);
|
|
|
|
$data = [
|
|
|
|
'project_id' => $this->param['id'],
|
|
|
|
'created_manage_id' => $this->manage['id'],
|
|
|
|
];
|
|
|
|
$logic->save($data);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 上线审核
|
|
|
|
* @author zbj
|
|
|
|
* @date 2023/6/29
|
|
|
|
*/
|
|
|
|
public function online_check(Request $request, OnlineCheckLogic $logic){
|
|
|
|
$request->validate([
|
|
|
|
'id'=>'required',
|
|
|
|
'type'=>'required|in:optimist,qa',
|
|
|
|
'status'=>'required|in:1,2'
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空',
|
|
|
|
'type.required' => '请选择审核类型',
|
|
|
|
'type.in' => '审核类型值无效',
|
|
|
|
'status.required' => '请选择审核状态',
|
|
|
|
'status.in' => '审核状态值无效',
|
|
|
|
]);
|
|
|
|
$this->param['manage_id'] = $this->manage['id'];
|
|
|
|
$logic->onlineCheck($this->param);
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|