| 
					
				 | 
			
			
				@@ -849,16 +849,27 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 更改经销商 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     async changeDealer(index) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      console.log(444, index, this.goodsList, this.goodsList[index].customerNumber) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.goodsList[index].customerNumber) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let obj = this.dealerList.find(o => o.number == this.goodsList[index].customerNumber) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goodsList[index].customerName = obj.name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goodsList[index].customerId = obj.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goodsList[index].warehouseList = await this.getListStock(obj.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.goodsList.splice(index, 1, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          ...this.goodsList[index], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          customerName: obj.name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          customerId: obj.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          warehouseList: await this.getListStock(obj.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.goodsList[index].customerName = obj.name 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.goodsList[index].customerId = obj.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.goodsList[index].warehouseList = await this.getListStock(obj.id) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goodsList[index].customerName = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goodsList[index].customerId = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.goodsList[index].warehouseList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.goodsList.splice(index, 1, { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          ...this.goodsList[index], 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          customerName: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          customerId: '', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          warehouseList: [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.goodsList[index].customerName = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.goodsList[index].customerId = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // this.goodsList[index].warehouseList = [] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |