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
dd6c0265
Commit
dd6c0265
authored
Dec 19, 2018
by
duxinyuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
33c304d1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
adjustment.js
public/resource/js/adjustment.js
+4
-2
getCollection.js
public/resource/js/getCollection.js
+5
-2
No files found.
public/resource/js/adjustment.js
View file @
dd6c0265
...
@@ -9,6 +9,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -9,6 +9,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
house_fatherid
:
''
,
house_fatherid
:
''
,
collection_del_id
:
''
,
collection_del_id
:
''
,
listData
:
""
,
listData
:
""
,
moneyTotal
:
""
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -73,7 +74,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -73,7 +74,8 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
});
});
//统计
//统计
$
(
document
).
on
(
'click'
,
'#count'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#count'
,
function
(
e
){
that
.
countValue
();
// that.countValue();
$
(
'#money_total'
).
text
((
that
.
moneyTotal
-
0
>
0
)
?
(
that
.
moneyTotal
+
"元"
):
"0元"
)
});
});
//二级联动
//二级联动
...
@@ -194,7 +196,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
...
@@ -194,7 +196,7 @@ define(['doT', 'text!temp/adjustment_template_tpl.html', 'css!style/home.css', '
var
temp
=
document
.
getElementById
(
'adjustment_template_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'adjustment_template_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
that
.
moneyTotal
=
data
.
data
.
money_total
;
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
}
else
{
}
else
{
...
...
public/resource/js/getCollection.js
View file @
dd6c0265
...
@@ -20,6 +20,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -20,6 +20,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
houseNmuber
:
''
,
houseNmuber
:
''
,
pay_id
:
''
,
pay_id
:
''
,
transfer_name
:
''
,
transfer_name
:
''
,
totalCount
:
0
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -214,7 +215,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -214,7 +215,8 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
});
});
//统计
//统计
$
(
document
).
on
(
'click'
,
'#count'
,
function
(
e
){
$
(
document
).
on
(
'click'
,
'#count'
,
function
(
e
){
that
.
countValue
();
//that.countValue();
$
(
'#money_total'
).
text
((
that
.
totalCount
-
0
>
0
)
?
(
that
.
totalCount
+
"元"
):
"0元"
)
});
});
//收款详情
//收款详情
$
(
"#modal-addPic"
).
on
(
"shown.bs.modal"
,
function
(
event
){
$
(
"#modal-addPic"
).
on
(
"shown.bs.modal"
,
function
(
event
){
...
@@ -908,10 +910,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -908,10 +910,11 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
that
.
totalCount
=
data
.
data
.
money_total
;
that
.
listData
=
data
.
data
.
list
;
that
.
listData
=
data
.
data
.
list
;
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'receivables_template_tpl'
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'receivables_template_tpl'
).
innerHTML
);
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#order_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#money_total"
).
html
(
data
.
data
.
money_total
)
//
$("#money_total").html(data.data.money_total)
/*分页代码*/
/*分页代码*/
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
add_page
(
data
.
data
.
total
,
no
,
that
.
pageSize
,
that
.
getList
);
...
...
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