Commit 8e660053 by chenwq

定向礼包bug

1 parent 772845ba
...@@ -329,7 +329,7 @@ export default { ...@@ -329,7 +329,7 @@ export default {
this.editForm.couponList.forEach(item => { this.editForm.couponList.forEach(item => {
this.couponObj[this.numToCoupon[item.discountType]].list.push(item) this.couponObj[this.numToCoupon[item.discountType]].list.push(item)
}) })
console.log(this.couponObj,'this.couponObj') // console.log(this.couponObj, 'this.couponObj')
this.currentCoupons = this.$common.utils.deepClone(this.editForm.couponList) this.currentCoupons = this.$common.utils.deepClone(this.editForm.couponList)
this.currentPeople = this.$common.utils.deepClone(this.editForm.staffList) this.currentPeople = this.$common.utils.deepClone(this.editForm.staffList)
this.hasCouponBlock(false) this.hasCouponBlock(false)
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
this.couponObj[item].list.forEach(subItem => { this.couponObj[item].list.forEach(subItem => {
// 失效券不加入预估成本 // 失效券不加入预估成本
if (subItem.status != '3') { if (subItem.status != '3') {
this.totalEstimatedCost = this.totalEstimatedCost + parseInt(subItem.couponAnticipatedCost) * parseInt(subItem.couponAmount) this.totalEstimatedCost = this.totalEstimatedCost + parseInt(subItem.couponAnticipatedCost || 0) * parseInt(subItem.couponAmount)
} }
}) })
}) })
...@@ -387,7 +387,7 @@ export default { ...@@ -387,7 +387,7 @@ export default {
}, },
handleGiftAdd() { handleGiftAdd() {
console.log(this.couponObj,'') // console.log(this.couponObj, '')
this.selectedGiftList = JSON.parse(JSON.stringify(this.couponObj)) this.selectedGiftList = JSON.parse(JSON.stringify(this.couponObj))
this.handleGiftClose() this.handleGiftClose()
}, },
...@@ -471,7 +471,7 @@ export default { ...@@ -471,7 +471,7 @@ export default {
.then(() => { .then(() => {
this.insertHttp(params) this.insertHttp(params)
}) })
.catch(() => {}) .catch(() => { })
} else { } else {
this.insertHttp(params) this.insertHttp(params)
} }
...@@ -512,7 +512,7 @@ export default { ...@@ -512,7 +512,7 @@ export default {
.then(() => { .then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => { })
} else { } else {
this.cancelJump() this.cancelJump()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!