Commit 83d3cb8c by yuzhenWang

Merge branch 'feature-20260408-拆分出账' into 'test'

修改汇率

See merge request !108
parents 6c6463c1 0c07c181
......@@ -214,7 +214,7 @@
</el-table-column>
<!--等生产没问题再删除 @blur="billInputBlur('exchangeRate', scope.row)"
@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">
<el-input
v-model="scope.row.exchangeRate"
......@@ -483,9 +483,7 @@ const changeRate = async (row, type) => {
if (response.data) {
if (type == 'toCurrency') {
row.exchangeRate = response.data.exchangeRate
? (response.data.exchangeRate * 100).toFixed(4)
: ''
row.exchangeRate = response.data.exchangeRate ? response.data.exchangeRate.toFixed(4) : ''
}
if (response.data.convertedAmount > 0) {
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