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
4c170e55
Commit
4c170e55
authored
Jun 15, 2023
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
27163d0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
addFinancialDocuments.vue
src/components/FinancialModule/addFinancialDocuments.vue
+17
-8
No files found.
src/components/FinancialModule/addFinancialDocuments.vue
View file @
4c170e55
...
...
@@ -1432,24 +1432,33 @@
this
.
Error
(
`成本月结数据不能为空!`
)
return
}
// 台湾提成汇率 验证总金额是否一致
if
(
this
.
orderObj
&&
this
.
orderObj
.
Money
&&
(
this
.
orderObj
.
Rate
||
this
.
orderObj
.
isVerifyMoney
)
)
{
// 台湾提成汇率 验证
原币
总金额是否一致
if
(
this
.
orderObj
&&
this
.
orderObj
.
Money
&&
this
.
orderObj
.
Rate
)
{
let
yballPrice
=
0
let
totalAmount
this
.
msg
&&
this
.
msg
.
detailList
&&
this
.
msg
.
detailList
.
forEach
((
item
,
i
)
=>
{
yballPrice
+=
(
Number
(
item
.
UnitPrice
)
*
100
)
})
this
.
yballPriceTo
=
yballPrice
/
100
if
(
this
.
orderObj
.
Money
!=
this
.
yballPriceTo
)
{
totalAmount
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
orderObj
.
Money
*
100
)
/
100
)
if
(
totalAmount
!=
this
.
yballPriceTo
)
{
this
.
Error
(
`原币总金额需等于
${
this
.
orderObj
.
Money
}
!`
)
return
}
}
if
(
this
.
commissionObj
)
{
this
.
msg
.
OtherType
=
this
.
commissionObj
.
OtherType
?
this
.
commissionObj
.
OtherType
:
0
;
this
.
msg
.
ReFinanceId
=
this
.
commissionObj
.
PeroidsId
?
this
.
commissionObj
.
PeroidsId
:
0
;
this
.
msg
.
RelevanceFrId
=
this
.
commissionObj
.
EmpIds
?
this
.
commissionObj
.
EmpIds
:
0
;
let
totalAmount
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
commissionObj
.
totalAmount
*
100
)
/
100
)
//验证总金额是否一致
if
(
this
.
commissionObj
||
(
this
.
orderObj
&&
this
.
orderObj
.
isVerifyMoney
))
{
let
totalAmount
if
(
this
.
commissionObj
){
this
.
msg
.
OtherType
=
this
.
commissionObj
.
OtherType
?
this
.
commissionObj
.
OtherType
:
0
;
this
.
msg
.
ReFinanceId
=
this
.
commissionObj
.
PeroidsId
?
this
.
commissionObj
.
PeroidsId
:
0
;
this
.
msg
.
RelevanceFrId
=
this
.
commissionObj
.
EmpIds
?
this
.
commissionObj
.
EmpIds
:
0
;
totalAmount
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
commissionObj
.
totalAmount
*
100
)
/
100
)
}
if
(
this
.
orderObj
&&
this
.
orderObj
.
Money
&&
this
.
orderObj
.
isVerifyMoney
)
{
totalAmount
=
this
.
$commonUtils
.
addCommas
(
Math
.
round
(
this
.
orderObj
.
Money
*
100
)
/
100
)
}
if
(
this
.
allPriceTo
!=
totalAmount
)
{
this
.
Error
(
`实付金额必须等于
${
totalAmount
}
!`
)
return
...
...
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