| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -55,7 +55,7 @@ class IndustryProductController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										ProductStatus::REFUSE => 'danger', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
										ProductStatus::SOLD_OUT => 'warning', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									], 'primary'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('single_deposit'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('single_deposit')->editable(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('min_sale'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('created_at'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -111,13 +111,8 @@ class IndustryProductController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$form->disableDeleteButton(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->display('id'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->select('status')->options(ProductStatus::array()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        })->saving(function (Form $form) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        	if (!is_null($form->status) && array_key_exists($form->status, ProductStatus::array())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									$form->model()->update(['status' => $form->status]); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									return $form->response()->success('操作成功!')->script('history.go(-1)'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								return $form->response()->error('操作禁止!')->refresh(); //禁止编辑,如果非要编辑的话,记录冻结和解决交易金
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->select('status')->options(ProductStatus::array())->required(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$form->number('single_deposit')->min(0)->required(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							})->deleting(function (Form $form) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								return $form->response()->error('操作禁止!')->refresh(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
							}); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |