|
|
@@ -30,6 +30,7 @@ use common\models\DecRole;
|
|
|
use common\models\EmployLevel;
|
|
|
use common\models\FlowExchangePoints;
|
|
|
use common\models\PerfMonthPrepare;
|
|
|
+use common\models\PeriodPrepare;
|
|
|
use common\models\ScoreMonth;
|
|
|
use common\models\UserBonus;
|
|
|
use common\models\UserRelation;
|
|
|
@@ -113,6 +114,11 @@ class BonusController extends BaseController {
|
|
|
if ($w != '0' || $isCalcMonth != 1) {
|
|
|
return static::notice(['user' => [],'team'=>[]]);
|
|
|
}
|
|
|
+ // 判断此业绩期是否已经完成生成了预计算业绩单,生成完毕才能看到
|
|
|
+ $isPerfed = PeriodPrepare::isPerfed($periodNum);
|
|
|
+ if (!$isPerfed) {
|
|
|
+ return static::notice(['user' => [],'team'=>[]]);
|
|
|
+ }
|
|
|
|
|
|
// 达标规则,小组底下有一个大于等于一万.或者个人情况里的合计大于等于一万
|
|
|
$data = PerfMonthPrepare::getMonthPerfPrepare($userId, $month);
|