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
827a90c5
Commit
827a90c5
authored
Jun 19, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务汇总表
parent
ebf579c7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
Finance.php
application/index/controller/Finance.php
+3
-3
commissionTotal.js
public/resource/js/commissionTotal.js
+6
-6
commissionTotal_template_tpl.html
public/resource/template/commissionTotal_template_tpl.html
+2
-2
No files found.
application/index/controller/Finance.php
View file @
827a90c5
...
@@ -1003,7 +1003,7 @@ class Finance extends Basic
...
@@ -1003,7 +1003,7 @@ class Finance extends Basic
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$where
[
'c.is_del'
]
=
0
;
//订单状态
$where
[
'c.is_del'
]
=
0
;
//订单状态
$where
[
'a.status'
]
=
[
'in'
,
'10,11'
];
//10已提交 11审核成功
$where
[
'a.status'
]
=
[
'in'
,
'10,11
,13
'
];
//10已提交 11审核成功
$where
[
'b.father_id'
]
=
[
'<>'
,
0
];
//去除税费总佣金
$where
[
'b.father_id'
]
=
[
'<>'
,
0
];
//去除税费总佣金
$where
[
'c.confirm_status'
]
=
1
;
//确认分佣
$where
[
'c.confirm_status'
]
=
1
;
//确认分佣
...
@@ -1032,7 +1032,7 @@ class Finance extends Basic
...
@@ -1032,7 +1032,7 @@ class Finance extends Basic
if
(
!
empty
(
$this
->
params
[
'income_start_date'
])
&&
!
empty
(
$this
->
params
[
'income_end_date'
])){
if
(
!
empty
(
$this
->
params
[
'income_start_date'
])
&&
!
empty
(
$this
->
params
[
'income_end_date'
])){
$where
[
'f.income_time'
]
=
[
'between time'
,
[
$this
->
params
[
'income_start_date'
],
$this
->
params
[
'income_end_date'
]]];
$where
[
'f.income_time'
]
=
[
'between time'
,
[
$this
->
params
[
'income_start_date'
],
$this
->
params
[
'income_end_date'
]]];
$income_date
=
date
(
'Y.m.d'
,
strtotime
(
$this
->
params
[
'income_start_date'
]))
.
'-'
.
date
(
'Y.m.d'
,
$this
->
params
[
'income_end_date'
]
);
$income_date
=
date
(
'Y.m.d'
,
strtotime
(
$this
->
params
[
'income_start_date'
]))
.
'-'
.
date
(
'Y.m.d'
,
strtotime
(
$this
->
params
[
'income_end_date'
])
);
}
else
{
}
else
{
// $where['f.income_time'] = [ 'between time', [ date('Y-m-d',strtotime($month_start)), date('Y-m-d',strtotime($month_end))]];
// $where['f.income_time'] = [ 'between time', [ date('Y-m-d',strtotime($month_start)), date('Y-m-d',strtotime($month_end))]];
// $income_date = $month_start_dot .'-'. $month_end_dot;
// $income_date = $month_start_dot .'-'. $month_end_dot;
...
@@ -1041,7 +1041,7 @@ class Finance extends Basic
...
@@ -1041,7 +1041,7 @@ class Finance extends Basic
/**收佣日期 end**/
/**收佣日期 end**/
/**提交成交报告日期 start**/
/**提交成交报告日期 start**/
if
(
!
empty
(
$this
->
params
[
'bargain_
start_date'
])
&&
empty
(
$this
->
params
[
'bargain
_end_date'
]))
{
if
(
!
empty
(
$this
->
params
[
'bargain_
end_date'
])
&&
empty
(
$this
->
params
[
'income
_end_date'
]))
{
$where
[
'a.create_time'
]
=
[
'> time'
,
$this
->
params
[
'bargain_start_date'
]
]
.
' 00:00:00'
;
$where
[
'a.create_time'
]
=
[
'> time'
,
$this
->
params
[
'bargain_start_date'
]
]
.
' 00:00:00'
;
}
}
...
...
public/resource/js/commissionTotal.js
View file @
827a90c5
...
@@ -318,12 +318,12 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
...
@@ -318,12 +318,12 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
params
.
pageSize
=
business
.
pageSize
;
params
.
pageSize
=
business
.
pageSize
;
params
.
name
=
$
(
'#user_name'
).
val
();
params
.
name
=
$
(
'#user_name'
).
val
();
params
.
phone
=
$
(
'#user_phone'
).
val
();
params
.
phone
=
$
(
'#user_phone'
).
val
();
params
.
commission
_start_date
=
$
(
'#create_time'
).
val
();
params
.
income
_start_date
=
$
(
'#create_time'
).
val
();
params
.
commission
_end_date
=
$
(
'#end_time'
).
val
();
params
.
income
_end_date
=
$
(
'#end_time'
).
val
();
params
.
deal
_start_date
=
$
(
'#create_dealtime'
).
val
();
params
.
bargain
_start_date
=
$
(
'#create_dealtime'
).
val
();
params
.
deal
_end_date
=
$
(
'#end_dealtime'
).
val
();
params
.
bargain
_end_date
=
$
(
'#end_dealtime'
).
val
();
params
.
operation
_start_date
=
$
(
'#create_ticketTime'
).
val
();
params
.
deal
_start_date
=
$
(
'#create_ticketTime'
).
val
();
params
.
operation
_end_date
=
$
(
'#end_ticketTime'
).
val
();
params
.
deal
_end_date
=
$
(
'#end_ticketTime'
).
val
();
params
.
district_id
=
$
(
"#qx-store option:selected"
).
val
();
//部门id 添加字段
params
.
district_id
=
$
(
"#qx-store option:selected"
).
val
();
//部门id 添加字段
params
.
store_name
=
$
(
'#store_name'
).
val
();
params
.
store_name
=
$
(
'#store_name'
).
val
();
...
...
public/resource/template/commissionTotal_template_tpl.html
View file @
827a90c5
<script
id=
"commissionTotal_list_tpl"
type=
"text/template"
>
<script
id=
"commissionTotal_list_tpl"
type=
"text/template"
>
[
%
if
(
it
)
{
%
]
[
%
if
(
it
[
0
]
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'income_date'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'income_date'
]
%
]
<
/td
>
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
tr
>
<
tr
>
<
td
colspan
=
"
8
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"
9
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
...
...
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