| 
					
				 | 
			
			
				@@ -207,6 +207,7 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   salesDetailList, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   salesDetailUpdateQty, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   salesDetailInsert, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  salesDetailInsertBatchBorrow, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   salesDetailDel, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   salesDetailBatchDel, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   deleteAll, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -446,6 +447,49 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 累计产品到活动 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    accumulateProduct (row, promo, promoProductClz) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 防止多次添加产品 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (this.isInster) { return } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.$message.loading('正在添加产品...', 1) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.isInster = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      this.spinning = true 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      const params = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        salesPromoSn: promo.salesPromoSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promoRuleSn: promo.promoRuleSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promoSn: promo.promoSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promoProductClz: promoProductClz, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        packQty: row.productPackQty, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        productSn: row.productSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        showCost: row.lastStockCost, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        price: row.productPrice, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        origPrice: row.origPrice, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promotionGiftsAmount: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        usePromotionGiftsAmount: 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        qty: row.salesNums, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        salesBillSn: this.detailData.salesBillSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        salesBillNo: this.detailData.salesBillNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        purchaseBillSn: this.detailData.purchaseBillSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        purchaseBillNo: this.detailData.purchaseBillNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        priceLevel: row.priceLevel, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        stockSn: row.stockSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promotableFlag: row.isJoinActivityProduct || 0, // 可促销标记 有活动的传1,没活动的传0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        promotionFlag: 0, // 促销标记 正品传0,促销品传1 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        warehouseSn: row.warehouseSn 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      salesDetailInsertBatchBorrow(params).then(res => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (res.status == 200) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$message.success('产品添加成功', 2.5) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.resetSearchForm(true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.$emit('refash', 'promo') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.isInster = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }).catch(err => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.isInster = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.spinning = false 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 批量取消出现产品 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     handleBatchCancelActive () { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       const _this = this 
			 |