|
@@ -16,6 +16,7 @@ use common\helpers\Tool;
|
|
|
use common\helpers\user\Info;
|
|
use common\helpers\user\Info;
|
|
|
use common\helpers\user\Perf;
|
|
use common\helpers\user\Perf;
|
|
|
use common\models\CalcBonus;
|
|
use common\models\CalcBonus;
|
|
|
|
|
+use common\models\CalcBonusBSDefault;
|
|
|
use common\models\CalcBonusBT;
|
|
use common\models\CalcBonusBT;
|
|
|
use common\models\CalcBonusFL;
|
|
use common\models\CalcBonusFL;
|
|
|
use common\models\DealType;
|
|
use common\models\DealType;
|
|
@@ -28,6 +29,7 @@ use common\models\FlowTourismPoints;
|
|
|
use common\models\FlowVillaPoints;
|
|
use common\models\FlowVillaPoints;
|
|
|
use common\models\FlowWallet;
|
|
use common\models\FlowWallet;
|
|
|
use common\models\PerfMonth;
|
|
use common\models\PerfMonth;
|
|
|
|
|
+use common\models\PerfPeriod;
|
|
|
use common\models\Period;
|
|
use common\models\Period;
|
|
|
use common\models\DecRole;
|
|
use common\models\DecRole;
|
|
|
use common\models\EmployLevel;
|
|
use common\models\EmployLevel;
|
|
@@ -408,7 +410,12 @@ class BonusController extends BaseController {
|
|
|
$data['SURPLUS_2L'] = ['name' => '二市场结余业绩', 'value' => Tool::formatFrontPerf($calcBonus['SURPLUS_2L'])];
|
|
$data['SURPLUS_2L'] = ['name' => '二市场结余业绩', 'value' => Tool::formatFrontPerf($calcBonus['SURPLUS_2L'])];
|
|
|
// $data['SURPLUS_3L'] = ['name' => '三市场结余业绩', 'value' => Tool::formatFrontPerf($calcBonus['SURPLUS_3L'])];
|
|
// $data['SURPLUS_3L'] = ['name' => '三市场结余业绩', 'value' => Tool::formatFrontPerf($calcBonus['SURPLUS_3L'])];
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // 是否活跃
|
|
|
|
|
+ $perfPeriod = PerfPeriod::find()->where('USER_ID=:USER_ID AND PERIOD_NUM = :PERIOD_NUM', [':USER_ID' => \Yii::$app->user->id, ':PERIOD_NUM' => $periodNum])->asArray()->one();
|
|
|
|
|
+ $data['IS_ACTIVE'] = ['name' => '是否活跃', 'value' => ($perfPeriod['IS_ACTIVE'] ?? 0)];
|
|
|
|
|
+ // 管理奖个人小组业绩
|
|
|
|
|
+ $calcBonusBS = CalcBonusBSDefault::findOneAsArray('USER_ID=:USER_ID AND PERIOD_NUM=:PERIOD_NUM', [':USER_ID' => \Yii::$app->user->id, ':PERIOD_NUM' => $periodNum], 'GPV10');
|
|
|
|
|
+ $data['DIRECTOR_BONUS_PGS'] = ['name' => '个人小组业绩', 'value' => ($calcBonusBS['GPV10'] ?? 0)];
|
|
|
|
|
|
|
|
// if ($sysConfig['openYC']['VALUE']) {
|
|
// if ($sysConfig['openYC']['VALUE']) {
|
|
|
// $data[] = ['name' => '荣衔奖', 'value' => Tool::formatPrice($calcBonus['ORI_BONUS_YC'])];
|
|
// $data[] = ['name' => '荣衔奖', 'value' => Tool::formatPrice($calcBonus['ORI_BONUS_YC'])];
|