|
|
@@ -3,6 +3,7 @@ namespace backendApi\modules\v1\models\lists\bonus;
|
|
|
|
|
|
use common\helpers\Cache;
|
|
|
use common\helpers\user\Info;
|
|
|
+use common\models\CalcBonusBSDefault;
|
|
|
use common\models\PerfMonth;
|
|
|
use common\models\User as modelUser;
|
|
|
use common\libs\dataList\column\Price;
|
|
|
@@ -28,7 +29,7 @@ class PerfMonthList extends \common\libs\dataList\DataList implements DataListIn
|
|
|
public function dataHandle()
|
|
|
{
|
|
|
$data = PerfMonth::lists($this->condition, $this->params, [
|
|
|
- 'select'=>'PM.*, U.USER_NAME, U.REAL_NAME,RU.USER_NAME REC_USER_NAME,RU.REAL_NAME REC_REAL_NAME,',
|
|
|
+ 'select'=>'PM.*, U.USER_NAME, U.REAL_NAME,RU.USER_NAME REC_USER_NAME,RU.REAL_NAME REC_REAL_NAME',
|
|
|
'from' => PerfMonth::tableName().' AS PM',
|
|
|
'join' => [
|
|
|
['LEFT JOIN', modelUser::tableName() . ' AS U', 'PM.USER_ID=U.ID'],
|
|
|
@@ -64,7 +65,7 @@ class PerfMonthList extends \common\libs\dataList\DataList implements DataListIn
|
|
|
'USER_NAME' => [
|
|
|
'header' => 'Member Code', // 会员编号
|
|
|
'headerOther' => [
|
|
|
- 'width' => '110',
|
|
|
+ 'width' => '120',
|
|
|
],
|
|
|
],
|
|
|
'REAL_NAME' => [
|
|
|
@@ -108,6 +109,17 @@ class PerfMonthList extends \common\libs\dataList\DataList implements DataListIn
|
|
|
]))->result();
|
|
|
},
|
|
|
],
|
|
|
+ 'PV_PGS' => [
|
|
|
+ 'header' => 'Director PGS Performance', // 管理奖个人小组业绩
|
|
|
+ 'headerOther' => [
|
|
|
+ 'width' => '190',
|
|
|
+ ],
|
|
|
+ 'value' => function($row) {
|
|
|
+ return (new Price([
|
|
|
+ 'value' => $row['DIRECTOR_BONUS_PGS'],
|
|
|
+ ]))->result();
|
|
|
+ },
|
|
|
+ ],
|
|
|
'VIP_PV_1L_ZC' => [
|
|
|
'header' => 'L. New Market Entry Performance', // 一市场新增报单业绩
|
|
|
'headerOther' => [
|