|
|
|
|
@ -11,8 +11,7 @@ class AskSubmitForm extends Form
|
|
|
|
|
{
|
|
|
|
|
public function buildForm()
|
|
|
|
|
{
|
|
|
|
|
$this->add("project_id", Field::HIDDEN, ["label" => "所属项目/医院", "rules" => "required"]);
|
|
|
|
|
|
|
|
|
|
$this->add("project_id", Field::SELECT, ["label" => "所属项目/医院", "empty_value" => "请选择", "choices" => (new Project())->get()->pluck("name", "id")->toArray()]);
|
|
|
|
|
$this->add("visit", Field::TEXT, ["label" => "拜访人员", "rules" => "required"]);
|
|
|
|
|
$this->add("date", Field::DATE, ["label" => "考核日期", "rules" => "required"]);
|
|
|
|
|
$this->add("department", Field::TEXT, ["label" => "科室", "rules" => "required"]);
|
|
|
|
|
|