Files
juipphp/enum/user/User.php
“wanyongkang” dcf0a909f6 跟进维护
2023-08-10 17:34:39 +08:00

67 lines
1.7 KiB
PHP

<?php
/*
* @Descripttion:
* @version:
* @Author: kangkang
* @Date: 2020-10-22 15:35:49
* @LastEditors: “wanyongkang” “937888580@qq.com”
* @LastEditTime: 2023-08-10 16:36:40
*/
namespace enum\user;
class User
{
// 1待跟进-未购买 2跟进超时-未购买 3待跟进-消费减少 4跟进超时-消费减少 5流失-需求减少 6流失-暂时不用 7流失-价格问题 8流失-产品问题 9流失-也可自定义 10高意向客户 11已完成
public static $FollowStatus = [
1 => '待跟进',
2 => '跟进中',
3 => '跟进完成',
];
public static $UnfollowNotBuy = 1;
public static $FollowOverTimeNotBuy = 2;
public static $UnfollowBuyReduce = 3;
public static $FollowOverTimeBuyReduce = 4;
public static $LostReduce = 5;
public static $LostNotUsed = 6;
public static $LostPrice = 7;
public static $LostProduct = 8;
public static $LostAuto = 9;
public static $HighUser = 10;
public static $Finish = 11;
public static $LostContact = 12;
//待跟进
public static $Unfollow = [1, 3];
//流失
public static $Lost = [5, 6, 7, 8, 9];
/**
* @description: 格式化方便选择处理
* @param {*}
* @return {*}
*/
public static function getFormatList($arr)
{
$format_list = [];
foreach ($arr as $k => $v) {
$data['value'] = $k;
$data['label'] = $v;
$format_list[] = $data;
}
return $format_list;
}
/**
* @description: 通过值获取状态
* @param {*}
* @return {*}
*/
public static function getStatusByName($arr, $str)
{
$data = array_flip($arr);
return $data[$str];
}
}