Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9130444f
authored
Jul 17, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
ssh://git.ichunt.net:22611/mushishixian/liexin_supplier
parents
97584e83
b779eb93
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
app/Http/Validators/SupplierAccountValidator.php
resources/views/web/AddSupplierAccount.blade.php
resources/views/web/UpdateSupplierAccount.blade.php
app/Http/Validators/SupplierAccountValidator.php
View file @
9130444f
...
...
@@ -17,6 +17,7 @@ class SupplierAccountValidator
$account
=
$request
->
all
();
$rules
=
[
"supplier_code"
=>
"required"
,
"contacts_name"
=>
"required"
,
"mobile"
=>
"required|regex:/^1[0-9][0-9]
{
9
}
$/"
,
"password_raw"
=>
"required"
,
"a_type"
=>
"required"
,
...
...
@@ -55,6 +56,7 @@ class SupplierAccountValidator
{
return
[
'supplier_code.required'
=>
'请选择一个供应商'
,
'contacts_name.required'
=>
'联系人不能为空'
,
'a_type.required'
=>
'类型必须勾选为芯链商家'
,
'mobile.required'
=>
'登录账号不能为空'
,
'mobile.regex'
=>
'账号格式必须为手机号'
,
...
...
resources/views/web/AddSupplierAccount.blade.php
View file @
9130444f
...
...
@@ -23,7 +23,7 @@
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
<span
class=
"require"
>
*
</span>
邮箱 :
</label>
<label
class=
"layui-form-label"
>
邮箱 :
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"email"
id=
"email"
placeholder=
"请输入邮箱"
class=
"layui-input"
value=
"{{$account['email'] or ''}}"
>
</div>
...
...
resources/views/web/UpdateSupplierAccount.blade.php
View file @
9130444f
...
...
@@ -24,7 +24,7 @@
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
<span
class=
"require"
>
*
</span>
邮箱 :
</label>
<label
class=
"layui-form-label"
>
邮箱 :
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
name=
"email"
id=
"email"
placeholder=
"请输入邮箱"
class=
"layui-input"
value=
"{{$account['email'] or ''}}"
>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment