Commit 9798ff45 by 杜文军

联系人不能为空

parent c746fb62
...@@ -17,6 +17,7 @@ class SupplierAccountValidator ...@@ -17,6 +17,7 @@ class SupplierAccountValidator
$account = $request->all(); $account = $request->all();
$rules = [ $rules = [
"supplier_code" => "required", "supplier_code" => "required",
"contacts_name" => "required",
"mobile" => "required|regex:/^1[0-9][0-9]{9}$/", "mobile" => "required|regex:/^1[0-9][0-9]{9}$/",
"password_raw" => "required", "password_raw" => "required",
"a_type" => "required", "a_type" => "required",
...@@ -55,6 +56,7 @@ class SupplierAccountValidator ...@@ -55,6 +56,7 @@ class SupplierAccountValidator
{ {
return [ return [
'supplier_code.required' => '请选择一个供应商', 'supplier_code.required' => '请选择一个供应商',
'contacts_name.required' => '联系人不能为空',
'a_type.required' => '类型必须勾选为芯链商家', 'a_type.required' => '类型必须勾选为芯链商家',
'mobile.required' => '登录账号不能为空', 'mobile.required' => '登录账号不能为空',
'mobile.regex' => '账号格式必须为手机号', 'mobile.regex' => '账号格式必须为手机号',
......
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