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
494e29e7
Commit
494e29e7
authored
Apr 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计
parent
e0f495f2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
15 deletions
+35
-15
Finance.php
application/index/controller/Finance.php
+0
-0
daily_total.html
application/index/view/finance/daily_total.html
+9
-3
daily_total.js
public/resource/js/daily_total.js
+26
-12
No files found.
application/index/controller/Finance.php
View file @
494e29e7
This diff is collapsed.
Click to expand it.
application/index/view/finance/daily_total.html
View file @
494e29e7
...
...
@@ -21,11 +21,17 @@
<td
colspan=
"15"
>
<form
id=
"form_search"
>
<span
class=
"fore-span ld-Marheight"
>
入账日期:
</span>
<input
id=
"comit_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
<input
id=
"comit_time_start"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"comit_time_end"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})"
>
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})"
>
<span
class=
"fore-span ld-Marheight"
>
收款的提交时间(财务日报日期):
</span>
<input
id=
"create_start_time"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"开始时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',maxDate:'#F{ $dp.$D(\'comit_time_end\')||\'%y-%M-%d\'}',readOnly:'readonly' })"
>
<span
class=
"fore-span ld-Marheight"
>
-
</span>
<input
id=
"create_end_time"
class=
"form-control btn4 ld-Marheight"
type=
"text"
placeholder=
"结束时间"
onClick=
"WdatePicker({el:this,dateFmt:'yyyy-MM-dd',minDate:'#F{ $dp.$D(\'comit_time_start\' )}',maxDate:'%y-%M-%d',readOnly:'readOnly'})"
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
style=
"float:left"
>
统计
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
style=
"float:left"
>
重置
</span>
...
...
public/resource/js/daily_total.js
View file @
494e29e7
...
...
@@ -15,12 +15,11 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
adjustment
.
getList
();
adjustment
.
event
();
},
event
:
function
()
{
var
that
=
adjustment
;
var
_doc
=
$
(
document
);
//
var _doc = $(document);
//搜索
$
(
document
).
on
(
'click'
,
'#search'
,
function
(
e
){
...
...
@@ -33,15 +32,31 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
});
},
getList
:
function
(
no
){
buildParams
:
function
()
{
var
start_time
=
$
(
'#comit_time_start'
).
val
();
var
end_time
=
$
(
'#comit_time_end'
).
val
();
var
create_start_time
=
$
(
'#create_start_time'
).
val
();
var
create_end_time
=
$
(
'#create_end_time'
).
val
();
var
params_string
=
""
;
if
(
start_time
)
{
params_string
+=
"start_time="
+
start_time
+
"&"
;
}
if
(
end_time
)
{
params_string
+=
"end_time="
+
end_time
+
"&"
;
}
if
(
create_start_time
)
{
params_string
+=
"create_start_time="
+
create_start_time
+
"&"
;
}
if
(
create_end_time
)
{
params_string
+=
"create_end_time="
+
create_end_time
+
"&"
;
}
return
params_string
;
},
getList
:
function
(){
$
.
ajax
({
url
:
'/index/getPaylogTotalPrice
'
,
url
:
'/index/getPaylogTotalPrice
?'
+
adjustment
.
buildParams
()
,
type
:
'GET'
,
async
:
true
,
data
:
{
"start_time"
:
$
(
'#comit_time_start'
).
val
(),
"end_time"
:
$
(
'#comit_time_end'
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
...
...
@@ -52,15 +67,14 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
$
(
'.intention_recorded'
).
html
(
data
.
data
.
intention_recorded
);
$
(
'.intention_adjustment'
).
html
(
data
.
data
.
intention_adjustment
);
$
(
'.intention_refund'
).
html
(
data
.
data
.
intention_refund
);
$
(
'.total_custody_recorded'
).
html
(
data
.
data
.
total_custody_recorded
);
$
(
'.custody_recorded'
).
html
(
data
.
data
.
custody_recorded
);
$
(
'.custody_adjustment'
).
html
(
data
.
data
.
custody_adjustment
);
$
(
'.custody_refund'
).
html
(
data
.
data
.
custody_refund
);
$
(
'.wait_total_fee'
).
html
(
data
.
data
.
wait_total_fee
);
}
}
else
{
alert
(
data
.
msg
);
}
}
});
},
...
...
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