Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-app-operator-master
Commits
0db4acd0
Commit
0db4acd0
authored
Nov 05, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款单修复
parent
9f8dd866
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
12 deletions
+16
-12
receiptDetail.vue
src/views/ecw/financial/receiptDetail.vue
+16
-12
No files found.
src/views/ecw/financial/receiptDetail.vue
View file @
0db4acd0
...
...
@@ -514,14 +514,15 @@ export default {
}
,
WriteOffProportion
(){
let
total
=
0
let
amountTotal
=
0
let
amountTotal
=
this
.
form
.
receiptAccountList
.
find
(
item
=>
item
.
type
==
'
total
'
).
writeOffAmount
this
.
detailed
.
forEach
(
item
=>
{
if
(
item
.
status
){
amountTotal
=
NP
.
plus
(
amountTotal
,
item
.
writeOffAmount
)
}
//
if(item.status)
{
//
amountTotal = NP.plus(amountTotal, item.writeOffAmount)
//
}
total
=
NP
.
plus
(
total
,
item
.
writeOffAmount
)
}
)
let
portion
=
NP
.
divide
(
amountTotal
,
t
otal
)
let
portion
=
NP
.
divide
(
total
,
amountT
otal
)
return
(
portion
*
100
).
toFixed
(
2
)
}
}
,
...
...
@@ -623,7 +624,7 @@ export default {
}
)
this
.
form
.
receiptAccountList
[
this
.
form
.
receiptAccountList
.
length
-
1
].
collectionAmount
=
amountList
this
.
$set
(
this
.
form
,
'
receiptAccountList
'
,
[...
this
.
form
.
receiptAccountList
])
this
.
$nextTick
(()
=>
{
this
.
form
.
receiptAccountList
.
forEach
((
item
,
index
)
=>
{
...
...
@@ -896,7 +897,7 @@ export default {
}
}
)
console
.
log
(
'
collom
'
,
collom
)
if
(
recepted
.
length
>
collom
.
length
){
//
if(recepted.length>collom.length)
{
recepted
.
forEach
((
amount
,
currency
)
=>
{
if
(
amount
){
if
(
collom
[
currency
]){
...
...
@@ -907,17 +908,20 @@ export default {
}
}
)
}
else
{
//
}
else
{
collom
.
forEach
((
amount
,
currency
)
=>
{
if
(
amount
){
if
(
recepted
[
currency
]){
if
((
amount
-
recepted
[
currency
])
!=
0
)
this
.
surplusData
[
currency
]
=
+
parseFloat
((
amount
-
recepted
[
currency
]).
toPrecision
(
12
))
}
else
{
if
(
!
this
.
surplusData
[
currency
]){
if
(
recepted
[
currency
]){
if
((
amount
-
recepted
[
currency
])
!=
0
)
this
.
surplusData
[
currency
]
=
+
parseFloat
((
amount
-
recepted
[
currency
]).
toPrecision
(
12
))
}
else
{
this
.
surplusData
[
currency
]
=
amount
}
}
}
}
)
}
//
}
console
.
log
(
this
.
surplusData
)
this
.
addForm
=
{
}
this
.
openAddDialog
=
true
...
...
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