lilei 1 gadu atpakaļ
vecāks
revīzija
121562ef3b

+ 1 - 0
src/views/salesManagement/salesQueryNew/comps/productList.vue

@@ -617,6 +617,7 @@
           if (res.status == 200) {
             this.resetSearchForm()
             this.$message.success('产品添加成功', 2.5)
+            this.$emit('insterOk')
           }
           this.spinning = false
           this.isInster = false

+ 7 - 0
src/views/salesManagement/salesQueryNew/edit.vue

@@ -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){
       // 正常产品