Browse Source

编辑

master
lemon 4 years ago
parent
commit
18d65a714c
  1. 16
      app/AdminAgent/Forms/AgentInfo.php
  2. 6
      app/AdminSupplier/Forms/SupplierInfo.php

16
app/AdminAgent/Forms/AgentInfo.php

@ -1,6 +1,7 @@
<?php <?php
namespace App\AdminAgent\Forms; namespace App\AdminAgent\Forms;
use App\Common\AgentType;
use App\Common\UserStatus; use App\Common\UserStatus;
use App\Models\Agent; use App\Models\Agent;
use Dcat\Admin\Admin; use Dcat\Admin\Admin;
@ -49,17 +50,20 @@ class AgentInfo extends Form
public function form() public function form()
{ {
Admin::translation('agent'); Admin::translation('agent');
$this->radio('type')
->options(AgentType::array())
->required()
->disable();
$this->text('name')->required(); $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('director')->required();
$this->text('contact_phone')->required(); $this->text('contact_phone')->required();
$this->image('logo')->required(); $this->image('logo')->required();
$this->image('avatar'); $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->text('legal_persona_wechat')->required();
$this->editor('agentInfo.about')->required(); $this->editor('agentInfo.about')->required();

6
app/AdminSupplier/Forms/SupplierInfo.php

@ -44,13 +44,13 @@ class SupplierInfo extends Form
Admin::translation('supplier'); Admin::translation('supplier');
$this->text('name')->required(); $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('director')->required();
$this->text('contact_phone')->required(); $this->text('contact_phone')->required();
$this->image('avatar'); $this->image('avatar');
$this->image('logo')->required(); $this->image('logo')->required();
$this->image('license_pic')->required();
$this->image('license_pic')->required()->disable();
$this->confirm('编辑确认', '编辑内容需要管理员重新审核,确定要提交吗?'); $this->confirm('编辑确认', '编辑内容需要管理员重新审核,确定要提交吗?');
} }

Loading…
Cancel
Save