'待跟进', 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]; } }