This commit is contained in:
曹辉 2023-03-06 15:06:01 +08:00
parent fa5c5b6bcf
commit 74d4a1af4b

View File

@ -357,7 +357,7 @@
},
//
numberchange(e) {
this.totalPrice = (this.updata.goodsPrice * this.updata.goodsCount).toFixed(2)
this.totalPrice = JSON.parse(JSON.stringify((this.updata.goodsPrice * this.updata.goodsCount).toFixed(2)))
this.couponListtrue = []
this.couponListfalse = []
this.goodsDetailslist.couponList.forEach(e => {
@ -592,7 +592,13 @@
this.updata.goodsStock = item.goodsStock
this.updata.goodsAttributeId = item.goodsAttributeId
this.updata.goodsAttributeDetailsId = item.attributeDetailsId
this.totalPrice = (this.updata.goodsPrice * this.updata.goodsCount).toFixed(2)
this.updata.goodsCount = 1
if (this.updata.goodsStock == 0) {
this.updata.goodsCount = 0
this.totalPrice = this.updata.goodsPrice
} else {
this.totalPrice = this.updata.goodsPrice
}
this.couponListtrue = []
this.couponListfalse = []
this.goodsDetailslist.couponList.forEach(e => {