From b0438d32a01402bd203c5dc30104cf234b783957 Mon Sep 17 00:00:00 2001 From: zhao_lei Date: Fri, 28 Jun 2019 00:05:36 +0800 Subject: [PATCH] =?UTF-8?q?fixed:=E4=BF=AE=E5=A4=8D=E6=80=BB=E7=A8=8E?= =?UTF-8?q?=E9=87=91=E5=B0=8F=E6=95=B0=E7=82=B9=E6=A0=BC=E5=BC=8F=E8=B6=85?= =?UTF-8?q?=E8=BF=872=E4=BD=8D=E5=B0=8F=E6=95=B0=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/vue/bill/src/views/Bill.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/vue/bill/src/views/Bill.vue b/src/main/vue/bill/src/views/Bill.vue index 3b6a46f..4b7eeb1 100644 --- a/src/main/vue/bill/src/views/Bill.vue +++ b/src/main/vue/bill/src/views/Bill.vue @@ -98,13 +98,13 @@ 取消 - + - + @@ -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); },