fixed:修复总税金小数点格式超过2位小数的问题
This commit is contained in:
@@ -98,13 +98,13 @@
|
||||
<el-col :span="4">
|
||||
<el-button class="submit" @click="cancel()" >取消</el-button>
|
||||
</el-col>
|
||||
<el-col :offset="4" :span="6">
|
||||
<el-col :offset="2" :span="7">
|
||||
<!-- 总金额 -->
|
||||
<el-form-item label="总票额" style="padding:0">
|
||||
<el-input type="text" v-model="totalAmount" :readonly="true" maxlength="20" prefix-icon="el-icon-coin" ></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-col :span="7">
|
||||
<!-- 总费率 -->
|
||||
<el-form-item label="总税金" style="padding:0">
|
||||
<el-input type="text" v-model="totalFee" :readonly="true" maxlength="20" prefix-icon="el-icon-coin" ></el-input>
|
||||
@@ -368,8 +368,8 @@ export default {
|
||||
post:{address:"",contact:"",mobile:""},
|
||||
title:{abbr:"",name:"",taxNo:""},
|
||||
focusRow: {},
|
||||
totalFee: 0,
|
||||
totalAmount: 0,
|
||||
totalFee: 0.00,
|
||||
totalAmount: 0.00,
|
||||
bill: {
|
||||
postId: "",
|
||||
// postAddress: "",
|
||||
@@ -497,7 +497,9 @@ export default {
|
||||
},
|
||||
recount() {
|
||||
this.totalFee += this.focusRow.feeRate * this.focusRow.amount;
|
||||
this.totalFee = parseFloat(this.totalFee).toFixed(2);
|
||||
this.totalAmount += this.focusRow.amount;
|
||||
this.totalAmount = parseFloat(this.totalAmount).toFixed(2);
|
||||
console.info('totalAmount:' + this.totalAmount);
|
||||
console.info('totalFee:' + this.totalFee);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user