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
70855836
Commit
70855836
authored
Jan 10, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改财务
parent
16af8da2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
25 deletions
+39
-25
BasicDocuments.vue
src/components/FinancialModule/BasicDocuments.vue
+39
-25
No files found.
src/components/FinancialModule/BasicDocuments.vue
View file @
70855836
...
...
@@ -1948,15 +1948,23 @@ export default {
let
fee
=
this
.
payMsgList
[
index
].
Fee
,
Rate
=
this
.
payMsgList
[
index
].
Rate
==
0
?
1
:
this
.
payMsgList
[
index
].
Rate
,
Money
=
this
.
payMsgList
[
index
].
OriginalMoney
;
Rate
=
Rate
*
100
;
let
newmoney
=
Money
*
Rate
+
fee
;
let
NewRate
=
Rate
;
if
(
Rate
.
toString
().
split
(
"."
)[
1
]
&&
Rate
.
toString
().
split
(
"."
)[
1
].
length
<
5
){
NewRate
=
Rate
*
100
;
}
let
newmoney
=
Money
*
NewRate
+
fee
;
if
(
newmoney
.
toString
().
split
(
"."
)[
1
]){
let
num
=
newmoney
.
toString
().
split
(
"."
)[
1
].
length
;
if
(
num
==
1
){
newmoney
=
`
${
newmoney
}
1`
;
}
}
this
.
payMsgList
[
index
].
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
/
100
;
if
(
Rate
.
toString
().
split
(
"."
)[
1
]
&&
Rate
.
toString
().
split
(
"."
)[
1
].
length
<
5
){
this
.
payMsgList
[
index
].
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
/
100
;
}
else
{
this
.
payMsgList
[
index
].
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
;
}
}
else
{
this
.
payMsg
.
Fee
=
isNaN
(
parseFloat
(
this
.
payMsg
.
Fee
))?
0
:
parseFloat
(
this
.
payMsg
.
Fee
);
this
.
payMsg
.
Rate
=
isNaN
(
parseFloat
(
this
.
payMsg
.
Rate
))?
0
:
parseFloat
(
this
.
payMsg
.
Rate
);
...
...
@@ -1964,16 +1972,22 @@ export default {
let
fee
=
this
.
payMsg
.
Fee
,
Rate
=
this
.
payMsg
.
Rate
==
0
?
1
:
this
.
payMsg
.
Rate
,
Money
=
this
.
payMsg
.
OriginalMoney
;
Rate
=
Rate
*
100
;
let
newmoney
=
Money
*
Rate
+
fee
;
let
NewRate
=
Rate
;
if
(
Rate
.
toString
().
split
(
"."
)[
1
]
&&
Rate
.
toString
().
split
(
"."
)[
1
].
length
<
5
){
NewRate
=
Rate
*
100
;
}
let
newmoney
=
Money
*
NewRate
+
fee
;
if
(
newmoney
.
toString
().
split
(
"."
)[
1
]){
let
num
=
newmoney
.
toString
().
split
(
"."
)[
1
].
length
;
if
(
num
==
1
){
newmoney
=
`
${
newmoney
}
1`
;
}
}
this
.
payMsg
.
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
/
100
;
}
if
(
Rate
.
toString
().
split
(
"."
)[
1
]
&&
Rate
.
toString
().
split
(
"."
)[
1
].
length
<
5
){
this
.
payMsgList
[
index
].
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
/
100
;
}
else
{
this
.
payMsgList
[
index
].
allMoney
=
Math
.
round
(
newmoney
*
100
)
/
100
;
}
}
},
...
...
@@ -2161,29 +2175,29 @@ export default {
},
err
=>
{})
},
AuditOrRefund
(){
// 保存
let
that
=
this
;
that
.
benMoney
=
Math
.
round
(
that
.
benMoney
*
100
)
/
100
;
if
(
that
.
Ststus
==
1
){
if
(
this
.
AuditOrRefundMsg
.
Status
==
'5'
){
if
(
that
.
GetDetail
.
AccountNumber
&&
that
.
GetDetail
.
AccountNumber
.
indexOf
(
"东航平台"
)
!=-
1
){
if
(
this
.
allMoney
==
0
){
this
.
Error
(
"请将信息填写完整!"
)
return
;
let
that
=
this
;
that
.
benMoney
=
Math
.
round
(
that
.
benMoney
*
100
)
/
100
;
if
(
that
.
Ststus
==
1
){
if
(
this
.
AuditOrRefundMsg
.
Status
==
'5'
){
if
(
that
.
GetDetail
.
AccountNumber
&&
that
.
GetDetail
.
AccountNumber
.
indexOf
(
"东航平台"
)
!=-
1
){
if
(
this
.
allMoney
==
0
){
this
.
Error
(
"请将信息填写完整!"
)
return
;
}
else
{
if
(
this
.
allMoney
>
parseFloat
(
that
.
benMoney
)
+
5
||
this
.
allMoney
<
parseFloat
(
that
.
benMoney
)
-
5
){
this
.
Error
(
"请检查实付金额是否在范围内!"
)
return
;
}
}
}
else
{
if
(
this
.
allMoney
>
parseFloat
(
that
.
benMoney
)
+
5
||
this
.
allMoney
<
parseFloat
(
that
.
benMoney
)
-
5
){
this
.
Error
(
"请检查
实付金额是否在范围内
!"
)
if
(
this
.
allMoney
!=
parseFloat
(
that
.
benMoney
)
){
this
.
Error
(
"请检查
金额是否一致
!"
)
return
;
}
}
}
else
{
if
(
this
.
allMoney
!=
parseFloat
(
that
.
benMoney
)){
this
.
Error
(
"请检查金额是否一致!"
)
return
;
}
}
}
}
let
imgArr
=
[];
...
...
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