From 493d4f81fdef9f6e3bc80c223b73c5ca7c9643f9 Mon Sep 17 00:00:00 2001 From: tczjx58520 <2283600185@qq.com> Date: Wed, 18 Sep 2019 18:17:10 +0800 Subject: [PATCH] comiit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改bug --- src/views/SaleOut/AddSaleOut.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/SaleOut/AddSaleOut.vue b/src/views/SaleOut/AddSaleOut.vue index eeca074f..2d598eb2 100644 --- a/src/views/SaleOut/AddSaleOut.vue +++ b/src/views/SaleOut/AddSaleOut.vue @@ -323,7 +323,7 @@ :precision="2" :controls="false" v-model="scope.row.discountRate" - @input="getdiscountRate(scope.row)"/> + @change="getdiscountRate(scope.row)"/> @@ -332,7 +332,7 @@ :precision="2" :controls="false" v-model="scope.row.discountMoney" - @input="getdiscountMoney(scope.row)"/> + @change="getdiscountMoney(scope.row)"/> @@ -1388,7 +1388,7 @@ export default { getdiscountMoney(row) { console.log(row) if (row.taxprice !== 0 && row.quantity !== 0 && row.discountMoney !== 0) { - row.discountRate = ((1 - (row.discountMoney / row.includeTaxCostMoney).toFixed(2)) * 100).toFixed(2) + row.discountRate = ((1 - (row.discountMoney / row.includeTaxCostMoney)) * 100).toFixed(2) } }, // 计算金额