From 3950ead75642ab4f9ee1d95d2627bba963566b7b Mon Sep 17 00:00:00 2001 From: shawn Date: Tue, 4 Feb 2020 15:45:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BC=98=E6=83=A0=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改优惠卷 --- src/views/SaleOut/AddSaleOut.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/SaleOut/AddSaleOut.vue b/src/views/SaleOut/AddSaleOut.vue index 14e30d8b..62dfb75c 100644 --- a/src/views/SaleOut/AddSaleOut.vue +++ b/src/views/SaleOut/AddSaleOut.vue @@ -197,7 +197,7 @@ - + @@ -1103,15 +1103,19 @@ export default { console.log('this.heji3', this.heji3) console.log('this.heji4', this.heji4) console.log('this.personalForm.couponMoney', this.personalForm.couponMoney) - this.personalForm.receivableMoney = (this.heji3 - this.heji4 - Number(this.personalForm.pointSupport) - Number(this.personalForm.couponSupport) - Number(this.personalForm.ridMoney) - Number(this.personalForm.ridBikeMoney) - Number(this.personalForm.advanceMoney) - this.personalForm.couponMoney) + const needmoney = (this.heji3 - this.heji4 - Number(this.personalForm.pointSupport) - Number(this.personalForm.ridMoney) - Number(this.personalForm.ridBikeMoney) - Number(this.personalForm.advanceMoney) - Number(this.personalForm.couponMoney)) + this.$set(this.personalForm, 'receivableMoney', needmoney) // const mon = this.personalForm.receivableMoney - this.personalForm.couponMoney // this.$set(this.personalForm, 'receivableMoney', mon) } else if (this.$store.getters.newsaleoutdata.firstMoney) { + console.log('123', 123) this.personalForm.receivableMoney = this.$store.getters.newsaleoutdata.firstMoney } else if (this.receivableMoney !== '' || this.receivableMoney !== null || this.receivableMoney !== undefined) { console.log('是否是销售合同带入过来') + console.log('234', 234) this.personalForm.receivableMoney = this.receivableMoney } else { + console.log('456', 456) this.personalForm.receivableMoney = (this.heji3 - this.heji4 - Number(this.personalForm.pointSupport) - Number(this.personalForm.couponSupport) - Number(this.personalForm.ridMoney) - Number(this.personalForm.ridBikeMoney) - Number(this.personalForm.advanceMoney)) }