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
653ea1f0
Commit
653ea1f0
authored
Mar 24, 2025
by
332784038@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应收请款时获取汇率bug修复
parent
cfcf5bc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
creatCollection.vue
src/views/ecw/financial/creatCollection.vue
+5
-2
No files found.
src/views/ecw/financial/creatCollection.vue
View file @
653ea1f0
...
...
@@ -782,7 +782,7 @@ export default {
await
getUserProfile
().
then
((
res
)
=>
(
this
.
userInfo
=
res
.
data
))
// 获取汇率
await
getCurrencyPage
(
this
.
params
).
then
((
res
)
=>
(
this
.
currencyList
=
res
.
data
.
list
))
await
getCurrencyRateAllAvailable
().
then
((
res
)
=>
(
this
.
rateList
=
res
.
data
.
list
))
await
getCurrencyRateAllAvailable
().
then
((
res
)
=>
(
this
.
rateList
=
res
.
data
))
getWarehouseList
().
then
((
res
)
=>
(
this
.
warehouseList
=
res
.
data
))
let
that
=
this
if
(
that
.
$route
.
query
.
orderId
)
{
...
...
@@ -1101,14 +1101,17 @@ export default {
// if (row.currencyId == 2 && val == 1) row.collectionRate = this.NANtoUS()
// if (row.currencyId == 2 && val == 3) row.collectionRate = this.NANtoRMB()
// row.collectionRate = NP.times(this.currencyList.find(v => v.id === row.currencyId).huilv/100, this.currencyList.find(v => v.id === val).exchangeToFc/100).toFixed(6)
console
.
log
(
"
原期望币种:
"
,
row
.
currencyId
)
console
.
log
(
"
当前期望币种:
"
,
val
)
var
rate
=
this
.
getRate
(
row
.
currencyId
,
val
);
console
.
log
(
"
期望币种变更:
"
,
rate
)
if
(
rate
){
row
.
collectionSourceAmount
=
rate
.
sourceAmount
row
.
collectionSourceCurrencyCode
=
this
.
getCurrencySymbol
(
row
.
currencyId
)
row
.
collectionTargetAmount
=
rate
.
targetAmount
row
.
collectionTargetCurrencyCode
=
this
.
getCurrencySymbol
(
val
)
}
else
{
this
.
$modal
.
msgError
(
this
.
$t
(
"
汇率设置不能为空
"
))
row
.
collectionSourceAmount
=
1
row
.
collectionSourceCurrencyCode
=
this
.
getCurrencySymbol
(
row
.
currencyId
)
row
.
collectionTargetAmount
=
1
...
...
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