Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
4b477051
Commit
4b477051
authored
Sep 03, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码 自动计算手续费
parent
a203a272
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
addReceivablesDocuments.vue
src/components/FinancialModule/addReceivablesDocuments.vue
+20
-12
No files found.
src/components/FinancialModule/addReceivablesDocuments.vue
View file @
4b477051
...
...
@@ -612,6 +612,7 @@ export default {
resultCode
:
null
,
templateType
:
1
,
setCode
:
''
,
shouxufei
:
0
,
}
},
methods
:{
...
...
@@ -883,6 +884,12 @@ export default {
})
}
})
if
(
this
.
bankType
==
13
)
{
this
.
apipost
(
'Financial_post_GetQRCodeServiceCharge'
,{
AccountId
:
i
},
res
=>
{
console
.
log
(
res
)
this
.
shouxufei
=
res
.
data
.
data
},
err
=>
{})
}
},
clearAccBank
(){
// 选择账户类型清空数据
this
.
msg
.
BankList
[
0
].
Type
=
''
;
...
...
@@ -912,18 +919,7 @@ export default {
}
}
},
err
=>
{})
// if(i==1){
// this.bankaccount_post_GetList()
// }
// if(i==2){
// this.BankAccount_post_GetPlatformList()
// }
// if(i==3){
// this.BankAccount_post_GetCashAccountList()
// }
// if(i==4){
// this.BankAccount_post_GetCashPoolList()
// }
},
BankAccount_post_GetPlatformList
(
i
){
//获取平台账户
let
msg
=
{
...
...
@@ -1183,6 +1179,9 @@ export default {
ybFee
:
0
,
bbFee
:
0
,
};
if
(
this
.
shouxufei
>
0
)
{
this
.
shouxufeiJiSuan
()
}
this
.
countFee
();
},
Calculation
(
t
,
i
){
// 计算原币 本位币
...
...
@@ -1285,8 +1284,17 @@ export default {
}
}
this
.
msg
.
BankList
[
0
].
Fee
=
parseFloat
(
this
.
msg
.
BankList
[
0
].
ybFee
);
this
.
$forceUpdate
();
},
shouxufeiJiSuan
:
function
(){
let
price
=
0
;
this
.
msg
.
detailList
.
forEach
(
y
=>
{
price
=
price
+
y
.
bTotalPrice
});
console
.
log
(
price
)
this
.
msg
.
OriginalFee
=
Math
.
round
((
price
*
this
.
shouxufei
)
*
100
)
/
100
;
},
getCostTypeName
(
i
,
t
){
// 根据支出费用类型获取费用类型名称 列表展示用
this
.
GetCostTypeList
.
forEach
(
x
=>
{
if
(
x
.
ID
==
i
){
...
...
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