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
f41ceb34
Commit
f41ceb34
authored
Jul 22, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实收汇总默认时间
parent
f1c9571f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
commissionTotal.js
public/resource/js/commissionTotal.js
+18
-3
No files found.
public/resource/js/commissionTotal.js
View file @
f41ceb34
...
...
@@ -51,11 +51,26 @@ define(['doT', 'text!temp/commissionTotal_template_tpl.html', 'css!style/home.cs
var
d
=
myDate
.
getDate
();
var
day_end
=
y
+
'-'
+
(
m
<
10
?
(
'0'
+
m
)
:
m
)
+
'-'
+
(
d
<
10
?
(
'0'
+
d
)
:
d
);
var
day_start
=
getPreMonth
(
day_end
);
$
(
'#create_time'
).
val
(
day_start
);
$
(
'#end_time'
).
val
(
day_end
);
//初始化收佣日期
$
(
'#confirm_commission'
).
val
(
day_end
);
//初始化收佣日期
//收佣日期 默认上月一号 上月末
var
nowdays
=
new
Date
();
var
year
=
nowdays
.
getFullYear
();
var
month
=
nowdays
.
getMonth
();
if
(
month
==
0
){
month
=
12
;
year
=
year
-
1
;
}
if
(
month
<
10
)
{
month
=
"0"
+
month
;
}
var
firstDay
=
year
+
"-"
+
month
+
"-"
+
"01"
;
//上个月的第一天
var
myDate
=
new
Date
(
year
,
month
,
0
);
var
lastDay
=
year
+
"-"
+
month
+
"-"
+
myDate
.
getDate
();
//上个月的最后一天
$
(
'#create_time'
).
val
(
firstDay
);
$
(
'#end_time'
).
val
(
lastDay
);
business
.
getList
(
1
);
business
.
event
();
business
.
getDistrict
();
...
...
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