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
1
Merge Requests
1
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
242e9004
Commit
242e9004
authored
May 06, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wyz' into 'test'
出账检核修改发布测试 See merge request
!119
parents
7df53dfa
37963fe8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
src/views/financialCenter/financialBilling.vue
+14
-14
No files found.
src/views/financialCenter/financialBilling.vue
View file @
242e9004
...
...
@@ -363,12 +363,13 @@ const getOperateItems = row => {
if
(
!
(
row
.
isPart
==
1
))
{
items
.
push
({
label
:
'分期出账'
,
value
:
'billInstallments'
})
}
// 出账状态不为已出帐的都可以修改结算汇率
if
(
row
.
status
!==
'2'
)
{
items
.
push
({
label
:
'修改结算汇率'
,
value
:
'editExchangeRate'
})
}
// 始终显示的菜单项(保持原始顺序)
items
.
push
(
{
label
:
'设置出账年月(实)'
,
value
:
'settingBillYearMonth'
},
{
label
:
'修改结算汇率'
,
value
:
'editExchangeRate'
}
)
items
.
push
({
label
:
'设置出账年月(实)'
,
value
:
'settingBillYearMonth'
})
return
items
}
...
...
@@ -805,12 +806,14 @@ const handleSplitCellChange = ({ row, col, newValue, oldValue, rowIndex, prop })
let
needUpdate
=
false
const
updatedRow
=
{
...
currentRow
}
// 联动规则1:计算原币种金额 应出账比例*应出账金额(HKD)
if
(
prop
===
'splitRatio'
&&
selectedRow
.
value
.
hkd
Amount
)
{
if
(
prop
===
'splitRatio'
&&
selectedRow
.
value
.
original
Amount
)
{
let
ratio
=
prop
===
'splitRatio'
?
newValue
:
currentRow
.
splitRatio
if
(
ratio
)
{
ratio
=
ratio
/
100
}
const
originalAmount
=
multiply
(
selectedRow
.
value
.
hkdAmount
,
ratio
,
2
)
console
.
log
(
'出账'
,
selectedRow
.
value
.
originalAmount
,
ratio
)
const
originalAmount
=
multiply
(
selectedRow
.
value
.
originalAmount
,
ratio
,
2
)
updatedRow
.
originalAmount
=
originalAmount
// 原币种金额发生变化更新港币金额
if
(
updatedRow
.
originalToHkdRate
)
{
...
...
@@ -859,11 +862,7 @@ const handleSplitCellChange = ({ row, col, newValue, oldValue, rowIndex, prop })
updatedRow
.
ruleAmount
=
ruleAmount
needUpdate
=
true
}
//出账比例发生变化,一系列得金额都会变化
// if (prop === 'splitRatio' && updatedRow.splitRatio) {
// needUpdate = true
// }
// 如果用户手动修改了 hkdAmount,不做反向联动(符合需求)
if
(
needUpdate
)
{
// 更新表格数据(整体替换,触发视图更新)
...
...
@@ -1275,18 +1274,19 @@ const handleSelect = (e, row) => {
settingBillYearMonthFlag
.
value
=
true
}
else
if
(
e
==
'editExchangeRate'
)
{
rateExchangeForm
.
value
=
{
originalAmount
:
row
.
originalAmount
?
formatCurrency
(
row
.
originalAmount
)
:
''
,
originalAmount
:
row
.
originalAmount
?
row
.
originalAmount
:
''
,
ruleCurrency
:
row
.
ruleCurrency
,
originalCurrency
:
row
.
originalCurrency
,
payoutCurrency
:
row
.
payoutCurrency
,
hkdToPayoutRate
:
row
.
hkdToPayoutRate
?
row
.
hkdToPayoutRate
:
''
,
exchangeRate
:
row
.
exchangeRate
?
row
.
exchangeRate
:
''
,
originalToHkdRate
:
row
.
originalToHkdRate
?
row
.
originalToHkdRate
:
''
,
payoutAmount
:
row
.
payoutAmount
?
formatCurrency
(
row
.
payoutAmount
)
:
''
,
payoutAmount
:
row
.
payoutAmount
?
row
.
payoutAmount
:
''
,
ruleAmount
:
row
.
ruleAmount
?
formatCurrency
(
row
.
ruleAmount
)
:
''
,
hkdAmount
:
row
.
hkdAmount
?
formatCurrency
(
row
.
hkdAmount
)
:
''
ruleAmount
:
row
.
ruleAmount
?
row
.
ruleAmount
:
''
,
hkdAmount
:
row
.
hkdAmount
?
row
.
hkdAmount
:
''
}
rateExchangeFlag
.
value
=
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