| 
					
					
						
							
						
					
					
				 | 
				@ -249,7 +249,7 @@ class AgentProductController extends AdminController | 
			
		
		
	
		
			
				 | 
				 | 
									$count = Product::where([['status', '=', ProductStatus::ON_SALE], ['stock', '>=', $form->model()->stock]]) | 
				 | 
				 | 
									$count = Product::where([['status', '=', ProductStatus::ON_SALE], ['stock', '>=', $form->model()->stock]]) | 
			
		
		
	
		
			
				 | 
				 | 
										->whereIn('id', $ids)->count(); | 
				 | 
				 | 
										->whereIn('id', $ids)->count(); | 
			
		
		
	
		
			
				 | 
				 | 
									if (count($ids) != $count) { | 
				 | 
				 | 
									if (count($ids) != $count) { | 
			
		
		
	
		
			
				 | 
				 | 
										return $form->response()->success('供应商产品已下架或库存不足!'); | 
				 | 
				 | 
				 | 
			
		
		
	
		
			
				 | 
				 | 
				 | 
				 | 
				 | 
										return $form->response()->error('供应商产品已下架或库存不足!'); | 
			
		
		
	
		
			
				 | 
				 | 
									} | 
				 | 
				 | 
									} | 
			
		
		
	
		
			
				 | 
				 | 
				
 | 
				 | 
				 | 
				
 | 
			
		
		
	
		
			
				 | 
				 | 
									//修改库存
 | 
				 | 
				 | 
									//修改库存
 | 
			
		
		
	
	
		
			
				| 
					
						
							
						
					
					
					
				 | 
				
  |