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
1aaf36a9
Commit
1aaf36a9
authored
Apr 08, 2026
by
yuzhenWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正拆分出账
parent
dbb8c004
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
src/views/financialCenter/financialSalary.vue
+11
-6
No files found.
src/views/financialCenter/financialSalary.vue
View file @
1aaf36a9
...
...
@@ -179,7 +179,7 @@
</el-table-column>
<el-table-column
label=
"原币种金额"
prop=
"fromAmount"
width=
"150"
>
<
template
#
default=
"scope"
>
<!-- @input="val => (scope.row.fromAmount = amountInput.filterInput(val, 4))"
<!--
等生产没问题再删除
@input="val => (scope.row.fromAmount = amountInput.filterInput(val, 4))"
@blur="billInputBlur('fromAmount', scope.row)" -->
<el-input
v-model=
"scope.row.fromAmount"
...
...
@@ -212,7 +212,7 @@
</el-select>
</
template
>
</el-table-column>
<!-- @blur="billInputBlur('exchangeRate', scope.row)"
<!--
等生产没问题再删除
@blur="billInputBlur('exchangeRate', scope.row)"
@input="val => (scope.row.exchangeRate = amountInput.filterInput(val, 4))" -->
<el-table-column
label=
"汇率(%)"
prop=
"exchangeRate"
width=
"150"
>
<
template
#
default=
"scope"
>
...
...
@@ -404,11 +404,13 @@ const dropdownItems = [
]
//=============拆分出账开始================
const
clearInput
=
(
key
,
row
)
=>
{
if
(
key
==
'
fromAmount'
||
key
==
'
toCurrency'
)
{
if
(
key
==
'toCurrency'
)
{
row
.
exchangeRate
=
'0.00'
row
.
toAmount
=
'0.00'
}
else
if
(
key
==
'exchangeRate'
)
{
row
.
toAmount
=
'0.00'
}
else
if
(
key
==
'fromAmount'
)
{
row
.
toAmount
=
'0.00'
}
}
const
getDebouncedChangeRate
=
row
=>
{
...
...
@@ -470,11 +472,11 @@ const billInputBlur = (type, row) => {
// 改变汇率
const
changeRate
=
async
(
row
,
type
)
=>
{
try
{
if
(
row
.
toCurrency
&&
row
.
fromAmount
)
{
if
(
row
.
toCurrency
)
{
const
params
=
{
fortuneAccountBizId
:
currentRow
.
value
.
fortuneAccountBizId
,
//出账记录业务id(关联出账记录表)
fromCurrency
:
currentRow
.
value
.
currency
,
//原币种
fromAmount
:
row
.
fromAmount
,
//原币种金额
fromAmount
:
row
.
fromAmount
||
'0.00'
,
//原币种金额
toCurrency
:
row
.
toCurrency
//目标币种
}
const
response
=
await
billSplitRate
(
params
)
...
...
@@ -485,8 +487,11 @@ const changeRate = async (row, type) => {
?
(
response
.
data
.
exchangeRate
*
100
).
toFixed
(
4
)
:
''
}
if
(
response
.
data
.
convertedAmount
>
0
)
{
row
.
toAmount
=
Number
(
response
.
data
.
convertedAmount
).
toFixed
(
4
)
}
else
{
row
.
toAmount
=
'0.00'
}
}
}
else
{
}
...
...
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