Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-csf-front
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yuzhenWang
yd-csf-front
Commits
fee54f23
Commit
fee54f23
authored
Jul 10, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wyz' into 'test'
优化3 See merge request
!184
parents
3fc93f16
b508a24e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
src/views/financialCenter/financialBilling.vue
+23
-10
No files found.
src/views/financialCenter/financialBilling.vue
View file @
fee54f23
...
...
@@ -348,6 +348,7 @@ import {
statisticsFortune
}
from
'@/api/financial/commission'
import
useUserStore
from
'@/store/modules/user'
const
spiltDigit
=
ref
(
2
)
const
rateExchangeFormRef
=
ref
(
null
)
const
rateExchangeFlag
=
ref
(
false
)
const
rateExchangeForm
=
ref
({})
...
...
@@ -374,7 +375,7 @@ const getOperateItems = row => {
const
items
=
[]
// 条件:isPart == 1 时不显示分期出账(使用宽松相等,兼容字符串 '1')
if
(
!
(
row
.
isPart
==
1
))
{
if
(
!
(
row
.
isPart
==
1
||
row
.
status
==
'2'
))
{
items
.
push
({
label
:
'分期出账'
,
value
:
'billInstallments'
})
}
// 出账状态不为已出帐的都可以修改结算汇率
...
...
@@ -932,26 +933,34 @@ const handleSplitCellChange = ({ row, col, newValue, oldValue, rowIndex, prop })
}
console
.
log
(
'出账'
,
selectedRow
.
value
.
originalAmount
,
ratio
)
const
originalAmount
=
calculateAmount
(
selectedRow
.
value
.
originalAmount
,
ratio
,
2
)
const
originalAmount
=
calculateAmount
(
selectedRow
.
value
.
originalAmount
,
ratio
,
spiltDigit
.
value
)
updatedRow
.
originalAmount
=
originalAmount
// 原币种金额发生变化更新港币金额
if
(
updatedRow
.
originalToHkdRate
)
{
updatedRow
.
hkdAmount
=
calculateAmount
(
updatedRow
.
originalAmount
,
updatedRow
.
originalToHkdRate
,
2
spiltDigit
.
value
)
}
//港币金额发生变化 更新实际发放金额
if
(
updatedRow
.
hkdToPayoutRate
&&
updatedRow
.
hkdAmount
)
{
updatedRow
.
payoutAmount
=
calculateAmount
(
updatedRow
.
hkdAmount
,
updatedRow
.
hkdToPayoutRate
,
2
)
updatedRow
.
payoutAmount
=
calculateAmount
(
updatedRow
.
hkdAmount
,
updatedRow
.
hkdToPayoutRate
,
spiltDigit
.
value
)
}
//港币金额发生变化 更新保单币种金额
if
(
updatedRow
.
exchangeRate
&&
updatedRow
.
hkdAmount
)
{
updatedRow
.
ruleAmount
=
calculateAmount
(
updatedRow
.
hkdAmount
,
updatedRow
.
exchangeRate
,
2
,
spiltDigit
.
value
,
'Divided'
)
}
...
...
@@ -962,18 +971,22 @@ const handleSplitCellChange = ({ row, col, newValue, oldValue, rowIndex, prop })
if
(
prop
===
'originalToHkdRate'
||
prop
===
'originalAmount'
)
{
const
originalToHkdRate
=
prop
===
'originalToHkdRate'
?
newValue
:
currentRow
.
originalToHkdRate
const
originalAmount
=
prop
===
'originalAmount'
?
newValue
:
currentRow
.
originalAmount
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
2
)
const
hkdAmount
=
calculateAmount
(
originalAmount
,
originalToHkdRate
,
spiltDigit
.
value
)
updatedRow
.
hkdAmount
=
hkdAmount
//港币金额发生变化 更新实际发放金额
if
(
updatedRow
.
hkdToPayoutRate
&&
updatedRow
.
hkdAmount
)
{
updatedRow
.
payoutAmount
=
calculateAmount
(
updatedRow
.
hkdAmount
,
updatedRow
.
hkdToPayoutRate
,
2
)
updatedRow
.
payoutAmount
=
calculateAmount
(
updatedRow
.
hkdAmount
,
updatedRow
.
hkdToPayoutRate
,
spiltDigit
.
value
)
}
//港币金额发生变化 更新保单币种金额
if
(
updatedRow
.
exchangeRate
&&
updatedRow
.
hkdAmount
)
{
updatedRow
.
ruleAmount
=
calculateAmount
(
updatedRow
.
hkdAmount
,
updatedRow
.
exchangeRate
,
2
,
spiltDigit
.
value
,
'Divided'
)
}
...
...
@@ -983,7 +996,7 @@ const handleSplitCellChange = ({ row, col, newValue, oldValue, rowIndex, prop })
if
(
prop
===
'hkdToPayoutRate'
||
prop
===
'hkdAmount'
)
{
const
hkdToPayoutRate
=
prop
===
'hkdToPayoutRate'
?
newValue
:
currentRow
.
hkdToPayoutRate
const
hkdAmount
=
prop
===
'hkdAmount'
?
newValue
:
currentRow
.
hkdAmount
const
payoutAmount
=
calculateAmount
(
hkdAmount
,
hkdToPayoutRate
,
2
)
const
payoutAmount
=
calculateAmount
(
hkdAmount
,
hkdToPayoutRate
,
spiltDigit
.
value
)
updatedRow
.
payoutAmount
=
payoutAmount
needUpdate
=
true
}
...
...
@@ -991,7 +1004,7 @@ const handleSplitCellChange = ({ row, col, newValue, oldValue, rowIndex, prop })
if
(
prop
===
'exchangeRate'
||
prop
===
'hkdAmount'
)
{
const
exchangeRate
=
prop
===
'exchangeRate'
?
newValue
:
currentRow
.
exchangeRate
const
hkdAmount
=
prop
===
'hkdAmount'
?
newValue
:
currentRow
.
hkdAmount
const
ruleAmount
=
calculateAmount
(
hkdAmount
,
exchangeRate
,
2
,
'Divided'
)
const
ruleAmount
=
calculateAmount
(
hkdAmount
,
exchangeRate
,
spiltDigit
.
value
,
'Divided'
)
updatedRow
.
ruleAmount
=
ruleAmount
needUpdate
=
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