|
@@ -242,9 +242,12 @@ export default {
|
|
|
this.newActiveList = hasNewActive
|
|
|
this.showNewActiveModal=true
|
|
|
}
|
|
|
+
|
|
|
+ // 已参与活动列表
|
|
|
this.activeList = await salesPromoQueryList({ salesBillSn: this.$route.params.sn }).then(res => res.data || [])
|
|
|
this.activeList.map(item => {
|
|
|
item.isActive = true
|
|
|
+ item.disabled = item.enabledFlag == 0
|
|
|
this.activeDesKey['search-'+item.promoRuleSn] = false
|
|
|
})
|
|
|
},
|
|
@@ -452,13 +455,13 @@ export default {
|
|
|
salesDisableType: _this.disabledActiveOption
|
|
|
}).then(res => {
|
|
|
if(res.status == 200){
|
|
|
- _this.$refs['productList-'+item.promoRuleSn][0].disableActive()
|
|
|
+ _this.$refs['productList-'+item.promoRuleSn][0].disableActive(true)
|
|
|
_this.disabledActiveOption = null
|
|
|
item.disabled = true
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
|
- _this.$message.info("请选择如何禁用规则!")
|
|
|
+ _this.$message.info("请选择禁用方式!")
|
|
|
return true
|
|
|
}
|
|
|
},
|