| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -21,7 +21,7 @@ class GuideController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					     */ | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    protected function grid() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return Grid::make(new Guide(), function (Grid $grid) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return Grid::make(new Guide(['settledOrder']), function (Grid $grid) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->disableDeleteButton(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->disableRowSelector(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -33,12 +33,17 @@ class GuideController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('id')->sortable(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('username'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('name'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('photo')->image('', 60, 60); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('license_pic')->image('', 60, 60); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('company_name'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('对公账号')->display(fn() => $this->corporate_account . ' / ' . $this->deposit_bank)->limit(15); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('license')->image('', 60, 60); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('business_license')->image('', 60, 60); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('director'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('contact_phone'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								//$grid->column('rate')->editable()->help('分成百分比,如10%,则输入10');
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('created_at'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('cost', '入驻费') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									->help('该地接已支付的入驻费(入驻时微信支付的费用)') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									->if(fn() => !empty($this->settledOrder->paid_money) && floatval($this->settledOrder->paid_money) != 0) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									->display(fn() => $this->settledOrder->paid_money ?? 0)->label('success'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $grid->column('created_at', '注册时间'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$grid->column('status', '状态') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
									->if(fn() => $this->status == UserStatus::UNAUDITED) | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -80,12 +85,20 @@ class GuideController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('id'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('username'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('name'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('name'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('company_name'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('address'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('credit_codes'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('license')->image('', 80, 80); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('business_license')->image('', 80, 80); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('director'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('contact_phone'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('status')->using(UserStatus::array()); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('photo')->image('', 80, 80); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('license_pic')->image('', 80, 80); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('contact_phone'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								//$show->field('rate');
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('corporate_account'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('deposit_bank'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('contract')->image('', 80, 80); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$show->field('photo')->image('', 80, 80); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('created_at'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $show->field('updated_at'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        }); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -114,10 +127,17 @@ class GuideController extends AdminController | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$form->select('status')->options(UserStatus::array())->default(UserStatus::NORMAL); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('name'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('company_name'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('address'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('credit_codes'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								$form->distpicker(['province_id', 'city_id', 'area_id'], '请选择区域')->required(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->image('photo')->removable(false)->uniqueName(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->image('license_pic')->removable(false)->uniqueName(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->multipleImage('license')->removable(false)->uniqueName(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->image('business_license')->removable(false)->uniqueName(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('director'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('contact_phone'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('corporate_account'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            $form->text('deposit_bank'); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
								//$form->number('rate')->min(0)->max(100)->help('分成百分比,如10%,则输入10');
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        })->saving(function (Form $form) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        	//判断账号是否唯一
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |