diff --git a/app/AdminAgent/Forms/AgentInfo.php b/app/AdminAgent/Forms/AgentInfo.php index a29ea0f..2dc6780 100644 --- a/app/AdminAgent/Forms/AgentInfo.php +++ b/app/AdminAgent/Forms/AgentInfo.php @@ -1,6 +1,7 @@ radio('type') + ->options(AgentType::array()) + ->required() + ->disable(); $this->text('name')->required(); - $this->text('company_name')->required(); - $this->text('credit_codes')->required(); - $this->text('address')->required(); + $this->text('company_name')->required()->disable(); + $this->text('credit_codes')->required()->disable(); + $this->text('address')->required()->disable(); $this->text('director')->required(); $this->text('contact_phone')->required(); $this->image('logo')->required(); $this->image('avatar'); - $this->image('license_pic')->required(); - $this->text('legal_persona_name')->required(); + $this->image('license_pic')->required()->disable(); + $this->text('legal_persona_name')->required()->disable(); $this->text('legal_persona_wechat')->required(); $this->editor('agentInfo.about')->required(); diff --git a/app/AdminSupplier/Forms/SupplierInfo.php b/app/AdminSupplier/Forms/SupplierInfo.php index 9203051..1a7ecfd 100644 --- a/app/AdminSupplier/Forms/SupplierInfo.php +++ b/app/AdminSupplier/Forms/SupplierInfo.php @@ -44,13 +44,13 @@ class SupplierInfo extends Form Admin::translation('supplier'); $this->text('name')->required(); - $this->text('company_name')->required(); - $this->text('address')->required(); + $this->text('company_name')->required()->disable(); + $this->text('address')->required()->disable(); $this->text('director')->required(); $this->text('contact_phone')->required(); $this->image('avatar'); $this->image('logo')->required(); - $this->image('license_pic')->required(); + $this->image('license_pic')->required()->disable(); $this->confirm('编辑确认', '编辑内容需要管理员重新审核,确定要提交吗?'); }