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)) }