【修改】税额计算的bug
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
disabled
|
||||
@change="e => e.target.value = (e.target.value.replace(/[^0-9-.]/g, '')).trim()"></a-input>
|
||||
</a-form-item>
|
||||
<a-form-item label="到账金额" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-form-item label="未税金额" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<a-input placeholder="请输入未税金额"
|
||||
disabled
|
||||
v-decorator="['noTaxAmount',validatorRules.noTaxAmount]"
|
||||
|
||||
@@ -59,7 +59,7 @@ export const TaxOperateMixin = {
|
||||
},
|
||||
// 通过金额 计算 税额、未税金额
|
||||
calcOtherNumber(amount) {
|
||||
let noTaxAmount = (amount / (1 + this.taxRate)).toFixed(2) // 未税金额
|
||||
let noTaxAmount = (amount / (1 + this.taxRate * 1)).toFixed(2) // 未税金额
|
||||
let tax = (amount - noTaxAmount).toFixed(2) // 税额
|
||||
return {noTaxAmount, tax}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user