其他任务提交接口新增视频列表,详情接口新增审批状态和拒绝原因
This commit is contained in:
parent
eef03ce4f7
commit
cceb393646
@ -213,9 +213,12 @@ class TaskController extends BaseApiController
|
|||||||
public function other_task_detail(){
|
public function other_task_detail(){
|
||||||
$parmas = $this->request->param();
|
$parmas = $this->request->param();
|
||||||
$task = TaskLogic::detail($parmas);
|
$task = TaskLogic::detail($parmas);
|
||||||
$approve = Approve::where(['task_id' =>$task['id']])->find();
|
$extend = $task['extend'];
|
||||||
$task['approve_status'] = $approve['check_status']; //审核状态
|
if ($extend['other']['is_commit'] == 1) {
|
||||||
$task['deny_notes'] = $approve['remark']; // 拒绝原因
|
$approve = Approve::where(['task_id' =>$task['id']])->find();
|
||||||
|
$task['approve_status'] = $approve['check_status']; //审核状态
|
||||||
|
$task['deny_notes'] = $approve['remark']; // 拒绝原因
|
||||||
|
}
|
||||||
return $this->success('ok', $task);
|
return $this->success('ok', $task);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -236,6 +239,7 @@ class TaskController extends BaseApiController
|
|||||||
|
|
||||||
// 片区经理
|
// 片区经理
|
||||||
$areaManagerId = User::where(['id' => $this->userId])->with('company')->value('area_manager');
|
$areaManagerId = User::where(['id' => $this->userId])->with('company')->value('area_manager');
|
||||||
|
dd($areaManagerId);
|
||||||
|
|
||||||
// 创建审批任务
|
// 创建审批任务
|
||||||
$approveModel = new Approve();
|
$approveModel = new Approve();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user