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
f2d7b7c3
Commit
f2d7b7c3
authored
Oct 22, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交成交报告修改
parent
0a7b63cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
4 deletions
+43
-4
submit_report_pc.html
application/app_broker/view/index/submit_report_pc.html
+1
-1
submit_report_pc.js
public/app/js/submit_report_pc.js
+42
-3
No files found.
application/app_broker/view/index/submit_report_pc.html
View file @
f2d7b7c3
...
...
@@ -83,7 +83,7 @@
<li>
<div>
应收佣金:
</div>
<div
class=
"flex-center"
>
<input
type=
"number"
v-model
.
trim=
"commission"
placeholder=
"请输入"
/>
<input
type=
"number"
v-model
.
trim=
"commission"
id=
"commission_input"
placeholder=
"请输入"
/>
</div>
<div>
元
</div>
</li>
...
...
public/app/js/submit_report_pc.js
View file @
f2d7b7c3
...
...
@@ -27,6 +27,7 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct
var
_thisV
=
this
;
_thisV
.
$nextTick
(
function
(){
var
_commissionObj
=
$
(
'#commission_input'
);
var
_ajaxObjTel
=
null
;
_doc
.
on
(
'input'
,
'.add_input_ywy'
,
function
()
{
var
_$this
=
$
(
this
);
...
...
@@ -93,16 +94,54 @@ require(['vue', 'css!style/submit_report_pc.css', 'jquery0325', 'common'], funct
var
_this
=
$
(
this
);
var
_parObj
=
_this
.
closest
(
'.fenyong-li'
);
_parObj
.
find
(
'.fenyong-rate'
).
val
(
''
);
//先置空
//
_parObj.find('.yingfen-yongjin').val('');//先置空
_parObj
.
find
(
'.yingfen-yongjin'
).
val
(
''
);
//先置空
if
(
_this
.
val
()
===
''
){
}
else
{
var
_rateTemp
=
_thisV
.
getDefaultRadio
(
_this
.
val
());
_parObj
.
find
(
'.fenyong-rate'
).
val
(
_rateTemp
);
//_parObj.find('.yingfen-yongjin').val(dealJineNum(_rateTemp*bargain.maidTotalCommission/100));
var
_tempValCommission
=
_commissionObj
.
val
();
if
(
_tempValCommission
==
''
){
}
else
{
_parObj
.
find
(
'.yingfen-yongjin'
).
val
(
dealJineNum
(
_tempValCommission
*
_rateTemp
/
100
));
}
}
});
//填写分佣比例后自动填写
_doc
.
on
(
'input'
,
'.fenyong-rate'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
var
_parObj
=
_this
.
closest
(
'.fenyong-li'
);
if
(
_this
.
val
()
===
''
){
_parObj
.
find
(
'.yingfen-yongjin'
).
val
(
''
);
//先置空
}
else
{
var
_tempValCommission
=
_commissionObj
.
val
();
if
(
_tempValCommission
==
''
){
_parObj
.
find
(
'.yingfen-yongjin'
).
val
(
''
);
//先置空
}
else
{
_parObj
.
find
(
'.yingfen-yongjin'
).
val
(
dealJineNum
(
_tempValCommission
*
(
_this
.
val
())
/
100
));
}
}
});
//应收佣金的输入监听事件
_commissionObj
.
on
(
'input'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
$
.
each
(
$
(
'.fenyong-li'
),
function
(
i
,
v
){
var
_$v
=
$
(
v
);
var
_tempRate
=
_$v
.
find
(
'.fenyong-rate'
).
val
();
if
(
_tempRate
==
''
){
_$v
.
find
(
'.yingfen-yongjin'
).
val
(
''
);
}
else
{
_$v
.
find
(
'.yingfen-yongjin'
).
val
(
dealJineNum
(
_this
.
val
()
*
_tempRate
/
100
));
}
});
});
//增加符号点击事件
...
...
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