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
102ffdff
Commit
102ffdff
authored
Mar 19, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款记录 Excel
parent
a6089334
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
4 deletions
+19
-4
Finance.php
application/index/controller/Finance.php
+19
-4
No files found.
application/index/controller/Finance.php
View file @
102ffdff
...
@@ -3077,7 +3077,7 @@ class Finance extends Basic
...
@@ -3077,7 +3077,7 @@ class Finance extends Basic
public
function
getCollectionExcel
()
{
public
function
getCollectionExcel
()
{
$pageNo
=
1
;
$pageNo
=
1
;
$pageSize
=
4
0000
;
$pageSize
=
1
0000
;
$data
=
[];
$data
=
[];
$where
[
'a.is_del'
]
=
0
;
$where
[
'a.is_del'
]
=
0
;
...
@@ -3293,10 +3293,25 @@ class Finance extends Basic
...
@@ -3293,10 +3293,25 @@ class Finance extends Basic
$excel_data_
[]
=
$v
[
'name'
];
//对应业务员
$excel_data_
[]
=
$v
[
'name'
];
//对应业务员
$excel_data_
[]
=
$v
[
'store_name'
];
//所属门店
$excel_data_
[]
=
$v
[
'store_name'
];
//所属门店
$excel_data_
[]
=
$v
[
'type'
];
//类型
$excel_data_
[]
=
$v
[
'type'
];
//类型
$excel_data_
[]
=
$v
[
'
store_name
'
];
//收款金额
$excel_data_
[]
=
$v
[
'
money
'
];
//收款金额
$excel_data_
[]
=
$v
[
'real_money'
];
//实付金额
$excel_data_
[]
=
$v
[
'real_money'
];
//实付金额
$excel_data_
[]
=
$v
[
'address'
];
//来源
$excel_data_
[]
=
$v
[
'address'
];
//状态
if
(
$v
[
'source'
]
==
2
)
{
//调整收款(调整ID:[%= it[item]['source_id'] %])
$excel_data_
[]
=
'调整收款(调整ID:'
.
$v
[
'source_id'
];
//来源
}
else
{
//正常收款
$excel_data_
[]
=
'正常收款'
;
//来源
}
if
(
$v
[
'is_refund'
]
!=
1
&&
!
$v
[
'is_adjustment'
])
{
$excel_data_
[]
=
'正常'
;
}
else
if
(
$v
[
'is_refund'
]
==
1
&&
$v
[
'is_adjustment'
])
{
$excel_data_
[]
=
'被调整+被退款'
;
}
else
if
(
$v
[
'is_refund'
]
==
1
)
{
$excel_data_
[]
=
'被退款'
;
}
else
{
$excel_data_
[]
=
'被调整'
;
}
$excel_data
[]
=
$excel_data_
;
$excel_data
[]
=
$excel_data_
;
}
}
...
...
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