Commit cbd805a7 authored by chenwei's avatar chenwei

fix🐛: 银行实收明细更改

parent f3f107e5
......@@ -455,7 +455,7 @@ export default {
}
}
}
this.$set(this.bankReceiptDetails, "writeOffAmount", Math.round(NP.times(this.bankReceiptDetails.rate || 0, this.bankReceiptDetails.amount || 0)), 2)
this.$set(this.bankReceiptDetails, "writeOffAmount", NP.round(NP.times(this.bankReceiptDetails.rate || 0, this.bankReceiptDetails.amount || 0), 2))
//已填写核销金额
this.$set(this.bankReceiptDetails, "currentWriteOffAmount", 0)
// 剩余核销金额
......
......@@ -583,7 +583,7 @@
</el-form-item>
<el-form-item v-if="showCurrencyId != addForm.currencyId">
<template slot="label"> {{ $t("兑核销基准币种金额") }}{{ getCurrencyLabel(showCurrencyId) }} </template>
<span>{{ addForm.writeOffAmount ? parseFloat(addForm.writeOffAmount).toFixed(2) : "" }}</span>
<span>{{ addForm.writeOffAmount }}</span>
</el-form-item>
<el-form-item :label="$t('水单附件')" prop="attr">
<el-upload v-if="!isView" class="upload-demo" :action="uploadFileUrl" :headers="headers" :on-success="handleUploadSuccess" :before-upload="handleBeforeUpload" :on-error="handleUploadError" :before-remove="beforeRemove" :file-list="addForm.attr" multiple>
......@@ -1269,7 +1269,7 @@ export default {
}
}
}
this.$set(this.addForm, "writeOffAmount", Math.round(NP.times(this.addForm.rate || 0, this.addForm.amount || 0)), 2)
this.$set(this.addForm, "writeOffAmount", NP.round(NP.times(this.addForm.rate || 0, this.addForm.amount || 0), 2))
//已填写核销金额
this.$set(this.addForm, "currentWriteOffAmount", 0)
// 剩余核销金额
......
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