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
b7446e85
Commit
b7446e85
authored
Mar 20, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
09e410bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
getCollection.js
public/resource/js/getCollection.js
+10
-5
No files found.
public/resource/js/getCollection.js
View file @
b7446e85
...
@@ -25,6 +25,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -25,6 +25,10 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
agent_id_phone
:
''
,
agent_id_phone
:
''
,
houseNumber_new
:
''
,
houseNumber_new
:
''
,
buildSearchParamsLiu
:
''
,
buildSearchParamsLiu
:
''
,
receivedMoneyLiu
:
''
,
payment_details_price
:
''
,
payment_details_money
:
''
,
receivedMoneyLiu
:
''
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -175,15 +179,14 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -175,15 +179,14 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//中介费类型显示 隐藏 中介费
//中介费类型显示 隐藏 中介费
if
(
$
(
this
).
val
()
*
1
==
1
){
if
(
$
(
this
).
val
()
*
1
==
1
){
var
persent_liu
=
0
;
var
persent_liu
=
0
;
console
.
log
(
1
)
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
0
;
}
else
{
}
else
{
var
persent_liu
=
0.7
;
var
persent_liu
=
0.7
;
console
.
log
(
2
)
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
1
;
};
};
$
(
"#getPrice"
).
text
((
Math
.
floor
(((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#getPrice"
).
text
((
Math
.
floor
(((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#morePrice"
).
text
((
Math
.
floor
((
receiv
.
payment_details_money
-
((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#morePrice"
).
text
((
Math
.
floor
((
receiv
.
payment_details_money
-
((
receiv
.
payment_details_price
-
0
)
*
persent_liu
)
+
receiv
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
});
});
//图片删除,已有的则调用接口删除
//图片删除,已有的则调用接口删除
...
@@ -1333,6 +1336,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1333,6 +1336,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
//切换 中介费类型 多收金额 应收金额相应的改变
//切换 中介费类型 多收金额 应收金额相应的改变
receiv
.
payment_details_price
=
data
.
price
;
receiv
.
payment_details_price
=
data
.
price
;
receiv
.
payment_details_money
=
data
.
money
;
receiv
.
payment_details_money
=
data
.
money
;
receiv
.
receivedMoneyLiu
=
data
.
received_money
*
1
;
var
persent
=
0.7
;
var
persent
=
0.7
;
$
(
'.zhzd'
).
show
();
$
(
'.zhzd'
).
show
();
$
(
'.zjcon'
).
hide
();
$
(
'.zjcon'
).
hide
();
...
@@ -1382,6 +1386,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1382,6 +1386,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
$
(
'.agency-fees-liu'
).
show
();
$
(
'.agency-fees-liu'
).
show
();
if
(
doc
.
find
(
'#agency_fees_type'
).
val
()
==
1
){
if
(
doc
.
find
(
'#agency_fees_type'
).
val
()
==
1
){
persent
=
0
;
persent
=
0
;
receiv
.
receivedMoneyLiu
=
receiv
.
receivedMoneyLiu
*
0
;
}
}
$
(
'.zhzd'
).
hide
();
$
(
'.zhzd'
).
hide
();
}
else
if
(
data
.
type
==
92
)
{
//案场费
}
else
if
(
data
.
type
==
92
)
{
//案场费
...
@@ -1403,7 +1408,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
...
@@ -1403,7 +1408,7 @@ define(['doT', 'text!temp/receivables_template_tpl.html', 'css!style/home.css',
doc
.
find
(
"#realPrice"
).
val
(
data
.
real_money
);
doc
.
find
(
"#realPrice"
).
val
(
data
.
real_money
);
//保留两位小数
//保留两位小数
doc
.
find
(
"#getPrice"
).
text
((
Math
.
floor
(((
data
.
price
-
0
)
*
persent
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
doc
.
find
(
"#getPrice"
).
text
((
Math
.
floor
(((
data
.
price
-
0
)
*
persent
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
doc
.
find
(
"#morePrice"
).
text
((
Math
.
floor
((
data
.
money
-
((
data
.
price
-
0
)
*
persent
)
+
data
.
received_money
*
1
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
doc
.
find
(
"#morePrice"
).
text
((
Math
.
floor
((
data
.
money
-
((
data
.
price
-
0
)
*
persent
)
+
receiv
.
receivedMoneyLiu
)
*
100
)
/
100
).
toFixed
(
2
)
+
"元"
);
$
(
"#person"
).
text
(
data
.
current_agent_name
);
$
(
"#person"
).
text
(
data
.
current_agent_name
);
$
(
"#belongT"
).
text
(
data
.
store_name
);
$
(
"#belongT"
).
text
(
data
.
store_name
);
doc
.
find
(
"#payType"
).
val
(
data
.
pay_type
);
doc
.
find
(
"#payType"
).
val
(
data
.
pay_type
);
...
...
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