Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
26b7299c
Commit
26b7299c
authored
Feb 26, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩导出角色
parent
a0bdef93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
PerformanceInfo.php
application/index/controller/PerformanceInfo.php
+5
-2
No files found.
application/index/controller/PerformanceInfo.php
View file @
26b7299c
...
@@ -223,7 +223,8 @@ class PerformanceInfo extends Basic
...
@@ -223,7 +223,8 @@ class PerformanceInfo extends Basic
$field
.=
'District.district_name,'
;
$field
.=
'District.district_name,'
;
$field
.=
'Obargain.scale,'
;
$field
.=
'Obargain.scale,'
;
$field
.=
'Obargain.scale_fee,'
;
$field
.=
'Obargain.scale_fee,'
;
$field
.=
'PartialCommission.practical_fee'
;
$field
.=
'PartialCommission.practical_fee,'
;
$field
.=
'Obargain.role'
;
$return
=
$this
->
oBargainModel
->
performancelInfoExcel
(
$where
,
$field
);
$return
=
$this
->
oBargainModel
->
performancelInfoExcel
(
$where
,
$field
);
if
(
!
$return
){
if
(
!
$return
){
...
@@ -232,6 +233,7 @@ class PerformanceInfo extends Basic
...
@@ -232,6 +233,7 @@ class PerformanceInfo extends Basic
$export
=
new
ExportExcelUntil
();
$export
=
new
ExportExcelUntil
();
$e_data_new
=
[];
$e_data_new
=
[];
$role_arr
=
[
1
=>
'盘方'
,
2
=>
'客方'
,
3
=>
'反签'
,
4
=>
'独家'
,
5
=>
'合作方'
,
6
=>
'APP盘下载方'
,
7
=>
'APP客下载方'
];
foreach
(
$return
as
$key
=>
$v
)
{
foreach
(
$return
as
$key
=>
$v
)
{
$e_data_old
[
'bargain_id'
]
=
$v
[
"father_id"
]
==
0
?
$v
[
"id"
]
:
$v
[
"father_id"
];
$e_data_old
[
'bargain_id'
]
=
$v
[
"father_id"
]
==
0
?
$v
[
"id"
]
:
$v
[
"father_id"
];
...
@@ -260,6 +262,7 @@ class PerformanceInfo extends Basic
...
@@ -260,6 +262,7 @@ class PerformanceInfo extends Basic
$e_data_old
[
'landmark'
]
=
$landmark
;
//商铺地址
$e_data_old
[
'landmark'
]
=
$landmark
;
//商铺地址
$e_data_old
[
'house_id'
]
=
$v
[
'house_id'
];
//商铺编号
$e_data_old
[
'house_id'
]
=
$v
[
'house_id'
];
//商铺编号
//$e_data_old['name_phone'] = $v['name'].'-'.$v['phone'];//分佣提成方
//$e_data_old['name_phone'] = $v['name'].'-'.$v['phone'];//分佣提成方
$e_data_old
[
'role_name'
]
=
$role_arr
[
$v
[
'role'
]];
//分佣提成方
$e_data_old
[
'name_phone'
]
=
$v
[
'name'
];
//分佣提成方
$e_data_old
[
'name_phone'
]
=
$v
[
'name'
];
//分佣提成方
//$e_data_old['district_name'] = $v['district_name'].'-'.$v['store_name'];//所属部门
//$e_data_old['district_name'] = $v['district_name'].'-'.$v['store_name'];//所属部门
$e_data_old
[
'district_name'
]
=
$v
[
'store_name'
];
//所属部门
$e_data_old
[
'district_name'
]
=
$v
[
'store_name'
];
//所属部门
...
@@ -270,7 +273,7 @@ class PerformanceInfo extends Basic
...
@@ -270,7 +273,7 @@ class PerformanceInfo extends Basic
$e_data_new
[]
=
$e_data_old
;
$e_data_new
[]
=
$e_data_old
;
}
}
$title
=
[
'成交报告ID'
,
'分佣ID'
,
'提交时间'
,
'成交类型'
,
'商铺地址'
,
'商铺编号'
,
'分佣提成方'
,
'所属部门门店'
,
'分佣比例'
,
'应分佣金'
,
'实收佣金'
,
'成交价'
];
$title
=
[
'成交报告ID'
,
'分佣ID'
,
'提交时间'
,
'成交类型'
,
'商铺地址'
,
'商铺编号'
,
'角色'
,
'分佣提成方'
,
'所属部门门店'
,
'分佣比例'
,
'应分佣金'
,
'实收佣金'
,
'成交价'
];
$export
->
exportTable
(
'业绩明细'
,
$e_data_new
,
count
(
$e_data_new
[
0
]),
'业绩明细表'
,
$title
);
$export
->
exportTable
(
'业绩明细'
,
$e_data_new
,
count
(
$e_data_new
[
0
]),
'业绩明细表'
,
$title
);
return
''
;
return
''
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment