Commit e262bc03 authored by 332784038@qq.com's avatar 332784038@qq.com

收款单收款账号设置的基准汇率与应收单基准汇率修改未联动bug修复

parent 5d5df9a7
......@@ -1145,10 +1145,19 @@ export default {
this.list.forEach((item) => {
if (item.currencyId == row.currencyId) {
item.exchangeRate = row.writeOffRate
item.sourceCurrencyCode = row.sourceCurrencyCode
item.sourceAmount = row.sourceAmount
item.targetCurrencyCode = row.targetCurrencyCode
item.targetAmount = row.targetAmount
item.baseAmount = NP.round(NP.divide(NP.times(row.targetAmount || 0, item.actualAmount), row.sourceAmount || 1), 2)
}
})
// this.list[index].exchangeRate = row.writeOffRate
// this.list[index].sourceCurrencyCode = row.sourceCurrencyCode
// this.list[index].sourceAmount = row.sourceAmount
// this.list[index].targetCurrencyCode = row.targetCurrencyCode
// this.list[index].targetAmount = row.targetAmount
// this.list[index].baseAmount = row.writeOffAmount
// console.log("listdd", this.list)
......@@ -1176,6 +1185,11 @@ export default {
this.list.forEach((item) => {
if (item.currencyId == row.currencyId) {
item.exchangeRate = row.writeOffRate
item.sourceCurrencyCode = row.sourceCurrencyCode
item.sourceAmount = row.sourceAmount
item.targetCurrencyCode = row.targetCurrencyCode
item.targetAmount = row.targetAmount
item.baseAmount = NP.round(NP.divide(NP.times(row.targetAmount || 0, item.actualAmount), row.sourceAmount || 1), 2)
}
})
......
......@@ -183,7 +183,7 @@
<el-table-column align="center" width="220">
<template #header> {{ $t("基准币种") }}{{ getCurrencyLabel(showCurrencyId) }}{{ $t("汇率") }} </template>
<template slot-scope="scope">
<template v-if="scope.row.type !== 'total'"> {{ scope.row.sourceCurrencyCode }} {{ scope.row.sourceAmount }}: {{ scope.row.targetCurrencyCode }}{{ scope.row.targetAmount }} </template>
<template v-if="scope.row.type !== 'total'"> {{ scope.row.sourceCurrencyCode }} {{ scope.row.sourceAmount }}: {{ scope.row.targetAmount }} {{ scope.row.targetCurrencyCode }}</template>
<template v-else> {{ $t("应核销总金额") }}{{ getCurrencyLabel(showCurrencyId) }} </template>
</template>
</el-table-column>
......
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