Commit e0778d47 by lujunyi

药品必填项

parent 70c583f1
......@@ -91,14 +91,16 @@ protected function form()
{
return Form::make(new DrugRepository(), function (Form $form) {
$form->display('id')->width(4);
$form->text('name')->width(4);
$form->text('code')->width(4);
$form->text('unit')->width(4);
$form->text('spec')->width(4);
$form->text('dosage_form')->width(4);
$form->text('factory')->width(4);
$form->text('approval_no')->width(4);
$form->select('limit_buy_7')->width(4)->options([1 => 1, 2 => 2, 3 => 3]);
$form->text('name')->width(4)->required();
$form->text('code')->width(4)->required();
$form->text('unit')->width(4)->required();
$form->text('spec')->width(4)->required();
$form->text('dosage_form')->width(4)->required();
$form->text('factory')->width(4)->required();
$form->text('approval_no')->width(4)->required();
$array = range(1, 10);
$limitOption = array_combine($array, $array);
$form->select('limit_buy_7')->placeholder('请选择限购数量')->width(4)->options($limitOption)->help('限购数量');
$form->switch('is_rx')->width(4);
$form->text('tag')->width(4);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment