|
|
@ -219,6 +219,16 @@ class Index extends ApiCommon
|
|
|
|
$param['end_time'] = $param['end_time'] . ' 23:59:59';
|
|
|
|
$param['end_time'] = $param['end_time'] . ' 23:59:59';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$list = $businessModel->getFunnel($param);
|
|
|
|
$list = $businessModel->getFunnel($param);
|
|
|
|
|
|
|
|
$list['list'][] = [
|
|
|
|
|
|
|
|
"name" => "赢单",
|
|
|
|
|
|
|
|
"status_id" => "10000",
|
|
|
|
|
|
|
|
"status_name" => "赢单",
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
$list['list'][] = [
|
|
|
|
|
|
|
|
"name" => "输单",
|
|
|
|
|
|
|
|
"status_id" => "10001",
|
|
|
|
|
|
|
|
"status_name" => "输单",
|
|
|
|
|
|
|
|
];
|
|
|
|
return resultArray(['data' => $list]);
|
|
|
|
return resultArray(['data' => $list]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -702,7 +712,11 @@ class Index extends ApiCommon
|
|
|
|
$userInfo = $this->userInfo;
|
|
|
|
$userInfo = $this->userInfo;
|
|
|
|
$param['user_id'] = $param['user_id'] ?: $userInfo['id'];
|
|
|
|
$param['user_id'] = $param['user_id'] ?: $userInfo['id'];
|
|
|
|
$indexModel = new IndexLogic;
|
|
|
|
$indexModel = new IndexLogic;
|
|
|
|
|
|
|
|
if ($param['status_id'] == "10000" || $param['status_id'] == "10001") {
|
|
|
|
|
|
|
|
$data['funnel'] = $param['status_id'];
|
|
|
|
|
|
|
|
}
|
|
|
|
$data = $indexModel->businessList($param);
|
|
|
|
$data = $indexModel->businessList($param);
|
|
|
|
|
|
|
|
|
|
|
|
return resultArray(['data' => $data]);
|
|
|
|
return resultArray(['data' => $data]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -754,7 +768,8 @@ class Index extends ApiCommon
|
|
|
|
* 跟进详情
|
|
|
|
* 跟进详情
|
|
|
|
* @return \think\response\Json
|
|
|
|
* @return \think\response\Json
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function activityList(){
|
|
|
|
public function activityList()
|
|
|
|
|
|
|
|
{
|
|
|
|
$param = $this->param;
|
|
|
|
$param = $this->param;
|
|
|
|
$userInfo = $this->userInfo;
|
|
|
|
$userInfo = $this->userInfo;
|
|
|
|
$param['id'] = $userInfo['id'];
|
|
|
|
$param['id'] = $userInfo['id'];
|
|
|
|