Commit 0c07c181 by yuzhenWang

修改汇率

parent 1aaf36a9
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
</el-table-column> </el-table-column>
<!--等生产没问题再删除 @blur="billInputBlur('exchangeRate', scope.row)" <!--等生产没问题再删除 @blur="billInputBlur('exchangeRate', scope.row)"
@input="val => (scope.row.exchangeRate = amountInput.filterInput(val, 4))" --> @input="val => (scope.row.exchangeRate = amountInput.filterInput(val, 4))" -->
<el-table-column label="汇率(%)" prop="exchangeRate" width="150"> <el-table-column label="汇率" prop="exchangeRate" width="150">
<template #default="scope"> <template #default="scope">
<el-input <el-input
v-model="scope.row.exchangeRate" v-model="scope.row.exchangeRate"
...@@ -483,9 +483,7 @@ const changeRate = async (row, type) => { ...@@ -483,9 +483,7 @@ const changeRate = async (row, type) => {
if (response.data) { if (response.data) {
if (type == 'toCurrency') { if (type == 'toCurrency') {
row.exchangeRate = response.data.exchangeRate row.exchangeRate = response.data.exchangeRate ? response.data.exchangeRate.toFixed(4) : ''
? (response.data.exchangeRate * 100).toFixed(4)
: ''
} }
if (response.data.convertedAmount > 0) { if (response.data.convertedAmount > 0) {
row.toAmount = Number(response.data.convertedAmount).toFixed(4) row.toAmount = Number(response.data.convertedAmount).toFixed(4)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment