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
1c772b85
Commit
1c772b85
authored
Apr 07, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/constructionOne' into feature/20230327_public_takeaway
* feat/constructionOne: feat: 增加校验规则
parents
16e7beae
8d2dd0b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
index.jsx
src/pages/businessManage/info/index.jsx
+18
-8
No files found.
src/pages/businessManage/info/index.jsx
View file @
1c772b85
...
...
@@ -19,6 +19,7 @@ import {
notification
,
Spin
,
Tabs
,
InputNumber
,
}
from
'
antd
'
;
import
styles
from
'
./style.less
'
;
import
{
...
...
@@ -453,9 +454,12 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
FormItem
label=
"联系人姓名"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
contactName
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入联系人姓名!
'
}],
rules
:
[
{
required
:
true
,
message
:
'
请输入联系人姓名!
'
},
{
pattern
:
/^
[
A-Za-z
\u
4e00-
\u
9fa5
]
+$/
,
message
:
'
请输入汉字或字母!
'
},
],
initialValue
:
businessInfo
.
contactName
,
})(<
Input
maxLength=
{
8
}
/>)
}
})(<
Input
/>)
}
</
FormItem
>
</
Col
>
<
Col
span=
{
12
}
>
...
...
@@ -608,9 +612,12 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
FormItem
label=
"统一社会信用代码"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
socialCode
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入统一社会信用代码!
'
}],
rules
:
[
{
required
:
true
,
message
:
'
请输入统一社会信用代码!
'
},
{
pattern
:
/^
[
A-Za-z0-9
]
*$/
,
message
:
'
仅支持输入数字和字母
'
},
],
initialValue
:
businessInfo
.
socialCode
,
})(<
Input
maxLength=
{
32
}
/>)
}
})(<
Input
maxLength=
{
18
}
/>)
}
</
FormItem
>
</
Col
>
{
(
!
companyNamedis
&&
...
...
@@ -813,7 +820,10 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
FormItem
label=
"身份证号码"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
legalPersonIdCard
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入身份证号码!
'
}],
rules
:
[
{
required
:
true
,
message
:
'
请输入身份证号码!
'
},
{
pattern
:
/^
[
A-Za-z0-9
]
*$/
,
message
:
'
请输入数字或字母
'
},
],
initialValue
:
businessInfo
.
legalPersonIdCard
,
})(<
Input
maxLength=
{
18
}
/>)
}
</
FormItem
>
...
...
@@ -970,7 +980,7 @@ class BusinessInfo extends Component {
{
getFieldDecorator
(
'
bankAccount
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入银行帐号!
'
}],
initialValue
:
businessInfo
.
bankAccount
,
})(<
Input
maxLength=
{
20
}
/>)
}
})(<
Input
Number
style=
{
{
width
:
'
100%
'
}
}
controls=
{
false
}
min=
{
1
}
/>)
}
</
FormItem
>
</
Col
>
<
Col
span=
{
12
}
>
...
...
@@ -1053,7 +1063,7 @@ class BusinessInfo extends Component {
{
getFieldDecorator
(
'
bankAccount
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入银行帐号!
'
}],
initialValue
:
businessInfo
.
bankAccount
,
})(<
Input
maxLength=
{
20
}
/>)
}
})(<
Input
Number
style=
{
{
width
:
'
100%
'
}
}
controls=
{
false
}
min=
{
1
}
/>)
}
</
FormItem
>
</
Col
>
</
Row
>
...
...
@@ -1114,7 +1124,7 @@ class BusinessInfo extends Component {
{
getFieldDecorator
(
'
bankAccount
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入银行帐号!
'
}],
initialValue
:
businessInfo
.
bankAccount
,
})(<
Input
maxLength=
{
20
}
/>)
}
})(<
Input
Number
style=
{
{
width
:
'
100%
'
}
}
controls=
{
false
}
min=
{
1
}
/>)
}
</
FormItem
>
</
Col
>
</
Row
>
...
...
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