|
@@ -62,6 +62,7 @@
|
|
|
:ref="'productList-'+item.promoRuleSn"
|
|
|
:id="item.promoRuleSn"
|
|
|
@openCpModal="openProductModal"
|
|
|
+ @insterOk="insterActiveOk"
|
|
|
:promo="item"
|
|
|
:detailData="detailData"
|
|
|
:warehouseSn="warehouseSn"
|
|
@@ -215,6 +216,7 @@ export default {
|
|
|
this.cpCurRefId = ''
|
|
|
this.showCpModal = false
|
|
|
},
|
|
|
+ // 打开选择产品弹框
|
|
|
openProductModal(type, refId){
|
|
|
console.log(type, refId)
|
|
|
const promo = this.activeList.find(item => item.promoRuleSn == refId)
|
|
@@ -222,6 +224,11 @@ export default {
|
|
|
this.cpCurRefId = 'productList-' + refId
|
|
|
this.showCpModal = true
|
|
|
},
|
|
|
+ // 添加活动产品成功的回调
|
|
|
+ insterActiveOk(){
|
|
|
+ // 刷新正常产品列表
|
|
|
+ this.$refs.productNormalList.resetSearchForm()
|
|
|
+ },
|
|
|
// 新增产品
|
|
|
insterProduct(row, promotionFlag, type){
|
|
|
// 正常产品
|