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

调试问题

parent 541297c5
......@@ -184,8 +184,8 @@
}}
</span>
<span v-else >
{{ scope.row.sourceCurrencyCode }}<el-input v-model="scope.row.sourceAmount" style="width: 100px" @input="() => sourceAmountChange(scope.row, scope.$index)"/>:
<el-input v-model="scope.row.targetAmount " style="width: 100px" @input="() => targetAmountChange(scope.row, scope.$index)"/>{{ scope.row.targetCurrencyCode }}
{{ scope.row.sourceCurrencyCode }}<el-input v-model="scope.row.sourceAmount" style="width: 60px" @input="() => sourceAmountChange(scope.row, scope.$index)"/>:
<el-input v-model="scope.row.targetAmount " style="width: 60px" @input="() => targetAmountChange(scope.row, scope.$index)"/>{{ scope.row.targetCurrencyCode }}
</span>
</template>
<template v-else>
......@@ -246,8 +246,9 @@
<el-form-item v-if="scope.row.type !== 'total'" label="" label-width="0" style="margin-bottom: 0">
<!-- <el-input v-model="scope.row.collectionRate"-->
<!-- @input="() => rateChange(scope.row, scope.$index)"></el-input>-->
{{ scope.row.collectionSourceCurrencyCode }}<el-input v-model="scope.row.collectionSourceAmount" style="width: 100px" @input="() => collectionSourceAmountChange(scope.row, scope.$index)"/>:
<el-input v-model="scope.row.collectionTargetAmount" style="width: 100px" @input="() => collectionTargetAmountChange(scope.row, scope.$index)"/>{{ scope.row.targetCurrencyCode }}
{{ scope.row.collectionSourceCurrencyCode }}<el-input v-model="scope.row.collectionSourceAmount" style="width: 60px" @input="() => collectionSourceAmountChange(scope.row, scope.$index)"/>
:
<el-input v-model="scope.row.collectionTargetAmount" style="width: 60px" @input="() => collectionTargetAmountChange(scope.row, scope.$index)"/>{{ scope.row.targetCurrencyCode }}
</el-form-item>
<span v-else>{{ $t("期望收费金额") }}</span>
</template>
......@@ -1115,7 +1116,6 @@ export default {
row.collectionTargetCurrencyCode = this.getCurrencySymbol(row.currencyId)
}
}
this.rateChange(row, index)
},
//获取汇率
......@@ -1128,15 +1128,13 @@ export default {
if (!row.targetAmount) {
var rate = this.getRate(row.currencyId, this.showCurrencyId)
if (!rate) {
// this.$modal.msgError(this.$t("11汇率不能为0,请输入正确的汇率"))
this.$modal.msgError("11汇率不能为0,请输入正确的汇率")
this.$modal.msgError(this.$t("汇率设置不能为空"))
}
row.targetAmount = rate.targetAmount
row.targetCurrencyCode = rate.targetCurrencyCode
}
if (row.targetAmount == 0 && parseInt(row.targetAmount) === 0) {
// this.$modal.msgError(this.$t("22汇率不能为0,请输入正确的汇率"))
this.$modal.msgError("22汇率不能为0,请输入正确的汇率")
this.$modal.msgError(this.$t("汇率不能为0,请输入正确的汇率"))
}
if (row.targetAmount) {
row.writeOffAmount = NP.divide(NP.times(row.targetAmount || 0, NP.minus(row.receivableAmount, row.discountTotal || 0)), row.sourceAmount || 1).toFixed(2)
......@@ -1161,15 +1159,13 @@ export default {
if (!row.sourceAmount) {
var rate = this.getRate(row.currencyId, this.showCurrencyId)
if (!rate) {
// this.$modal.msgError(this.$t("33汇率不能为0,请输入正确的汇率"))
this.$modal.msgError("33汇率不能为0,请输入正确的汇率")
this.$modal.msgError(this.$t("汇率设置不能为空"))
}
row.sourceAmount = rate.sourceAmount
row.sourceCurrencyCode = rate.sourceCurrencyCode
}
if (row.sourceAmount == 0 && parseInt(row.sourceAmount) === 0) {
// this.$modal.msgError(this.$t("44汇率不能为0,请输入正确的汇率"))
this.$modal.msgError("44汇率不能为0,请输入正确的汇率")
this.$modal.msgError(this.$t("汇率不能为0,请输入正确的汇率"))
}
if (row.sourceAmount) {
row.writeOffAmount = NP.divide(NP.times(row.targetAmount || 0, NP.minus(row.receivableAmount, row.discountTotal || 0)), row.sourceAmount || 1).toFixed(2)
......
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