|
|
@@ -72,7 +72,7 @@ class SalesController extends AdminBaseController
|
|
|
// 获取分页显示
|
|
|
$page = $list->render();
|
|
|
$datas = $list ? $list->toArray() : [];
|
|
|
- $tags = ['无','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
+ $tags = ['新分配','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
$agencys = ['无','今天需跟进','明天需跟进','到期未跟进','今天坠海','明天坠海','一礼拜后坠海','其他'];
|
|
|
if ($datas) {
|
|
|
$educations = config('weixin.educations');
|
|
|
@@ -132,7 +132,7 @@ class SalesController extends AdminBaseController
|
|
|
}else if($time>=$dayTime+86400 && $time < $dayTime + 2 * 86400){
|
|
|
$item['expire_text'] = '明天坠海';
|
|
|
$item['is_expired'] = 1;
|
|
|
- }else if($time>=$dayTime+7*86400 && $time < $dayTime + 15 * 86400){
|
|
|
+ }else if($time>=$dayTime+7*86400 && $time < $dayTime + 8 * 86400){
|
|
|
$item['expire_text'] = '一礼拜后坠海';
|
|
|
}else if($expireTime <= 0 ){
|
|
|
$item['mobile'] = formatStr($item['mobile']);
|
|
|
@@ -141,7 +141,7 @@ class SalesController extends AdminBaseController
|
|
|
}
|
|
|
|
|
|
$intention = isset($item['intention'])? $item['intention'] : 0;
|
|
|
- $item['intention_text'] = $intention && isset($tags[$intention])? $tags[$intention] : '';
|
|
|
+ $item['intention_text'] = $intention>=0 && isset($tags[$intention])? $tags[$intention] : '';
|
|
|
$item['reg_time'] = $item['reg_time']? date('Y-m-d H:i:s', $item['reg_time']) : '';
|
|
|
|
|
|
}
|
|
|
@@ -174,7 +174,7 @@ class SalesController extends AdminBaseController
|
|
|
|
|
|
$params = input();
|
|
|
$params['sort'] = isset($params['sort'])? $params['sort'] : 0;
|
|
|
- $params['intention'] = isset($params['intention'])? $params['intention'] : 0;
|
|
|
+ $params['intention'] = isset($params['intention'])? $params['intention'] : -1;
|
|
|
$params['sort_type'] = isset($params['sort_type'])? $params['sort_type'] : 'desc';
|
|
|
$sort = $params['sort']==1? "p.create_time {$params['sort_type']}" : ($params['sort']==2? "p.expire_at {$params['sort_type']}" : ($params['sort'] == 4? "u.create_time {$params['sort_type']}" : "p.last_follow_time {$params['sort_type']}"));
|
|
|
$list = PoolModel::alias('p')
|
|
|
@@ -189,8 +189,8 @@ class SalesController extends AdminBaseController
|
|
|
$query->where(['u.id'=> $uid]);
|
|
|
}
|
|
|
|
|
|
- $intention = isset($params['intention'])? intval($params['intention']) : 0;
|
|
|
- if($intention){
|
|
|
+ $intention = isset($params['intention'])? intval($params['intention']) : -1;
|
|
|
+ if($intention>=0){
|
|
|
$query->where('p.intention',$intention);
|
|
|
}
|
|
|
|
|
|
@@ -216,7 +216,7 @@ class SalesController extends AdminBaseController
|
|
|
// 获取分页显示
|
|
|
$page = $list->render();
|
|
|
$datas = $list ? $list->toArray() : [];
|
|
|
- $tags = ['无','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
+ $tags = ['新分配','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
$agencys = ['无','今天需跟进','明天需跟进','到期未跟进','今天坠海','明天坠海','一礼拜后坠海','其他'];
|
|
|
if ($datas) {
|
|
|
$educations = config('weixin.educations');
|
|
|
@@ -276,7 +276,7 @@ class SalesController extends AdminBaseController
|
|
|
}else if($time>=$dayTime+86400 && $time < $dayTime + 2 * 86400){
|
|
|
$item['expire_text'] = '明天坠海';
|
|
|
$item['is_expired'] = 1;
|
|
|
- }else if($time>=$dayTime+7*86400 && $time < $dayTime + 15 * 86400){
|
|
|
+ }else if($time>=$dayTime+7*86400 && $time < $dayTime + 8 * 86400){
|
|
|
$item['expire_text'] = '一礼拜后坠海';
|
|
|
}else if($expireTime <= 0 ){
|
|
|
$item['mobile'] = formatStr($item['mobile']);
|
|
|
@@ -285,7 +285,7 @@ class SalesController extends AdminBaseController
|
|
|
}
|
|
|
|
|
|
$intention = isset($item['intention'])? $item['intention'] : 0;
|
|
|
- $item['intention_text'] = $intention && isset($tags[$intention])? $tags[$intention] : '';
|
|
|
+ $item['intention_text'] = $intention>=0 && isset($tags[$intention])? $tags[$intention] : '';
|
|
|
$item['reg_time'] = $item['reg_time']? date('Y-m-d H:i:s', $item['reg_time']) : '';
|
|
|
|
|
|
}
|
|
|
@@ -379,7 +379,7 @@ class SalesController extends AdminBaseController
|
|
|
// 获取分页显示
|
|
|
$page = $list->render();
|
|
|
$datas = $list ? $list->toArray() : [];
|
|
|
- $tags = ['无','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
+ $tags = ['新分配','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
$agencys = ['无','今天需跟进','明天需跟进','到期未跟进','今天坠海','明天坠海','一礼拜后坠海','其他'];
|
|
|
if ($datas) {
|
|
|
$educations = config('weixin.educations');
|
|
|
@@ -439,7 +439,7 @@ class SalesController extends AdminBaseController
|
|
|
}else if($time>=$dayTime+86400 && $time < $dayTime + 2 * 86400){
|
|
|
$item['expire_text'] = '明天坠海';
|
|
|
$item['is_expired'] = 1;
|
|
|
- }else if($time>=$dayTime+7*86400 && $time < $dayTime + 15 * 86400){
|
|
|
+ }else if($time>=$dayTime+7*86400 && $time < $dayTime + 8 * 86400){
|
|
|
$item['expire_text'] = '一礼拜后坠海';
|
|
|
}else if($expireTime <= 0 ){
|
|
|
$item['mobile'] = formatStr($item['mobile']);
|
|
|
@@ -448,7 +448,7 @@ class SalesController extends AdminBaseController
|
|
|
}
|
|
|
|
|
|
$intention = isset($item['intention'])? $item['intention'] : 0;
|
|
|
- $item['intention_text'] = $intention && isset($tags[$intention])? $tags[$intention] : '';
|
|
|
+ $item['intention_text'] = $intention>=0 && isset($tags[$intention])? $tags[$intention] : '';
|
|
|
$item['reg_time'] = $item['reg_time']? date('Y-m-d H:i:s', $item['reg_time']) : '';
|
|
|
$item['follow_time'] = $item['follow_time'] && $item['follow_time'] != '0000-00-00 00:00:00'? date('Y/m/d', strtotime($item['follow_time'])) : date('Y/m/d');
|
|
|
|
|
|
@@ -526,7 +526,7 @@ class SalesController extends AdminBaseController
|
|
|
->field('u.id,u.openid,u.avatar,u.sex,u.birthday,u.user_nickname,u.real_name,p.follow_time,p.id as pool_id,p.intention,p.remark')
|
|
|
->where(['p.id'=> $id, 'u.user_type'=> 2])
|
|
|
->find();
|
|
|
- $tags = ['无','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
+ $tags = ['新分配','意向强','有意向','完全不考虑','已到店','已成交','待沟通','其他'];
|
|
|
if($info){
|
|
|
$info['follow_time'] = $info['follow_time'] && $info['follow_time'] != '0000-00-00 00:00:00'? date('Y-m-d', strtotime($info['follow_time'])) : date('Y-m-d');
|
|
|
}
|