lilei 4 meses atrás
pai
commit
0a98817c68

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

@@ -685,6 +685,8 @@ export default {
         salesBillDetailList: chooseData
       }
       salesDetailInsertBatchBorrow(params).then(res => {
+        this.spinning = false
+        this.isInster = false
         if (res.status == 200) {
           if (res.data && res.data.length) {
             const tipInfo = res.data.map((item, i) => { return <p>{item},无法添加!</p> })
@@ -695,16 +697,14 @@ export default {
               okText: '知道了'
             })
             this.$emit('error', 'promo', 'add')
-            return
+          } else {
+            this.$message.success('累计产品添加成功', 2.5)
+            this.resetSearchForm(true)
+            this.$emit('refash', 'promo', 'add')
           }
-          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