Commit a8e56a0d by lujunyi

必填

parent 6ea285f5
...@@ -129,7 +129,7 @@ protected function form() ...@@ -129,7 +129,7 @@ protected function form()
$form->text('approval_no')->width(4)->required()->maxLength(64, '最多输入64个字符'); $form->text('approval_no')->width(4)->required()->maxLength(64, '最多输入64个字符');
$array = range(1, 10); $array = range(1, 10);
$limitOption = array_combine($array, $array); $limitOption = array_combine($array, $array);
$form->select('limit_buy_7')->placeholder('请选择限购数量')->width(4)->options($limitOption)->help('限购数量'); $form->select('limit_buy_7')->placeholder('请选择限购数量')->width(4)->options($limitOption)->help('限购数量')->required();
$form->switch('is_rx')->width(4); $form->switch('is_rx')->width(4);
$form->text('standard_code')->width(4)->required()->rules(function (Form $form) { $form->text('standard_code')->width(4)->required()->rules(function (Form $form) {
// 如果不是编辑状态,则添加字段唯一验证 // 如果不是编辑状态,则添加字段唯一验证
......
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