Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
merchant-manage-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
merchant-manage-ui
Commits
00c8a0f2
Commit
00c8a0f2
authored
Feb 22, 2022
by
侯絮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(audit): 收货地址增加校验
parent
493dc5a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
audit.jsx
src/pages/afterSale/components/audit.jsx
+7
-5
No files found.
src/pages/afterSale/components/audit.jsx
View file @
00c8a0f2
...
@@ -136,20 +136,22 @@ const AuditModal = props => {
...
@@ -136,20 +136,22 @@ const AuditModal = props => {
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'
请填写退货地址!
'
,
message
:
'
请填写正确退货地址!
'
,
pattern
:
/^
[
A-Za-z0-9
\u
4e00-
\u
9fa5
]
+$/
,
},
},
],
],
})(<
Input
placeholder=
"
请填写退货地址
"
allowClear
/>)
}
})(<
Input
placeholder=
"
最多输入50个字符"
maxLength=
"50
"
allowClear
/>)
}
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"收件人"
>
<
FormItem
label=
"收件人"
>
{
getFieldDecorator
(
'
receiverName
'
,
{
{
getFieldDecorator
(
'
receiverName
'
,
{
rules
:
[
rules
:
[
{
{
required
:
true
,
required
:
true
,
message
:
'
请填写收件人!
'
,
message
:
'
请填写正确收件人!
'
,
pattern
:
/^
[
A-Za-z0-9
\u
4e00-
\u
9fa5
]
+$/
,
},
},
],
],
})(<
Input
placeholder=
"
请填写收件人
"
allowClear
/>)
}
})(<
Input
placeholder=
"
最多输入25个字符"
maxLength=
"25
"
allowClear
/>)
}
</
FormItem
>
</
FormItem
>
<
FormItem
label=
"手机号码"
>
<
FormItem
label=
"手机号码"
>
{
getFieldDecorator
(
'
receiverPhone
'
,
{
{
getFieldDecorator
(
'
receiverPhone
'
,
{
...
@@ -163,7 +165,7 @@ const AuditModal = props => {
...
@@ -163,7 +165,7 @@ const AuditModal = props => {
message
:
'
请填写手机号码!
'
,
message
:
'
请填写手机号码!
'
,
},
},
],
],
})(<
Input
placeholder=
"
请填写手机号码
"
allowClear
/>)
}
})(<
Input
placeholder=
"
11位数字"
maxLength=
"11
"
allowClear
/>)
}
</
FormItem
>
</
FormItem
>
</
div
>
</
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