lilei 4 months ago
parent
commit
91f4633d79

+ 6 - 2
src/views/salesManagement/salesQueryNew/comps/productActiveList.vue

@@ -662,12 +662,12 @@ export default {
           this.resetSearchForm(true)
           this.$emit('refash', 'promo', 'add')
         } else {
-          this.$emit('error', 'normal', 'add')
+          this.$emit('error', 'promo', 'add')
         }
         this.spinning = false
         this.isInster = false
       }).catch(err => {
-        this.$emit('error', 'normal', 'add')
+        this.$emit('error', 'promo', 'add')
         this.isInster = false
         this.spinning = false
       })
@@ -694,15 +694,19 @@ export default {
               centered: true,
               okText: '知道了'
             })
+            this.$emit('error', 'promo', 'add')
             return
           }
           this.$message.success('累计产品添加成功', 2.5)
           this.resetSearchForm(true)
           this.$emit('refash', 'promo', 'add')
+        } else {
+          this.$emit('error', 'promo', 'add')
         }
         this.spinning = false
         this.isInster = false
       }).catch(err => {
+        this.$emit('error', 'promo', 'add')
         this.isInster = false
         this.spinning = false
       })