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
565a2a42
Commit
565a2a42
authored
Apr 10, 2023
by
张子雨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 数字类型校验
parent
02b9c78f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
7 deletions
+17
-7
index.jsx
src/pages/businessManage/info/index.jsx
+17
-7
No files found.
src/pages/businessManage/info/index.jsx
View file @
565a2a42
...
@@ -19,7 +19,6 @@ import {
...
@@ -19,7 +19,6 @@ import {
notification
,
notification
,
Spin
,
Spin
,
Tabs
,
Tabs
,
InputNumber
,
}
from
'
antd
'
;
}
from
'
antd
'
;
import
styles
from
'
./style.less
'
;
import
styles
from
'
./style.less
'
;
import
{
import
{
...
@@ -353,6 +352,7 @@ class BusinessInfo extends Component {
...
@@ -353,6 +352,7 @@ class BusinessInfo extends Component {
}
}
onChangeBusinessModel
=
e
=>
{
onChangeBusinessModel
=
e
=>
{
console
.
log
(
'
....
'
);
this
.
getCategoryList
(
e
);
this
.
getCategoryList
(
e
);
this
.
props
.
form
.
setFieldsValue
({
this
.
props
.
form
.
setFieldsValue
({
mainCategoryId
:
''
,
mainCategoryId
:
''
,
...
@@ -980,14 +980,18 @@ class BusinessInfo extends Component {
...
@@ -980,14 +980,18 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
FormItem
label=
"银行帐号"
labelCol=
{
{
span
:
8
}
}
>
<
FormItem
label=
"银行帐号"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
bankAccount
'
,
{
{
getFieldDecorator
(
'
bankAccount
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入银行帐号!
'
}],
rules
:
[
{
required
:
true
,
message
:
'
请输入银行帐号!
'
},
{
pattern
:
/^
[
0-9
]
*$/
,
message
:
'
请输入数字
'
},
],
initialValue
:
businessInfo
.
bankAccount
,
initialValue
:
businessInfo
.
bankAccount
,
})(<
Input
Number
style=
{
{
width
:
'
100%
'
}
}
controls=
{
false
}
min=
{
1
}
/>)
}
})(<
Input
/>)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
FormItem
label=
"联行号"
labelCol=
{
{
span
:
8
}
}
>
<
FormItem
label=
"联行号"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
interbankNum
'
,
{
{
getFieldDecorator
(
'
interbankNum
'
,
{
rules
:
[{
pattern
:
/^
[
0-9
]
*$/
,
message
:
'
请输入数字
'
}],
initialValue
:
businessInfo
.
interbankNum
,
initialValue
:
businessInfo
.
interbankNum
,
})(<
Input
maxLength=
{
50
}
/>)
}
})(<
Input
maxLength=
{
50
}
/>)
}
</
FormItem
>
</
FormItem
>
...
@@ -1063,9 +1067,12 @@ class BusinessInfo extends Component {
...
@@ -1063,9 +1067,12 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
FormItem
label=
"银行帐号"
labelCol=
{
{
span
:
8
}
}
>
<
FormItem
label=
"银行帐号"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
bankAccount
'
,
{
{
getFieldDecorator
(
'
bankAccount
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入银行帐号!
'
}],
rules
:
[
{
required
:
true
,
message
:
'
请输入银行帐号!
'
},
{
pattern
:
/^
[
0-9
]
*$/
,
message
:
'
请输入数字
'
},
],
initialValue
:
businessInfo
.
bankAccount
,
initialValue
:
businessInfo
.
bankAccount
,
})(<
Input
Number
style=
{
{
width
:
'
100%
'
}
}
controls=
{
false
}
min=
{
1
}
/>)
}
})(<
Input
/>)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
@@ -1124,9 +1131,12 @@ class BusinessInfo extends Component {
...
@@ -1124,9 +1131,12 @@ class BusinessInfo extends Component {
<
Col
span=
{
12
}
>
<
Col
span=
{
12
}
>
<
FormItem
label=
"银行帐号"
labelCol=
{
{
span
:
8
}
}
>
<
FormItem
label=
"银行帐号"
labelCol=
{
{
span
:
8
}
}
>
{
getFieldDecorator
(
'
bankAccount
'
,
{
{
getFieldDecorator
(
'
bankAccount
'
,
{
rules
:
[{
required
:
true
,
message
:
'
请输入银行帐号!
'
}],
rules
:
[
{
required
:
true
,
message
:
'
请输入银行帐号!
'
},
{
pattern
:
/^
[
0-9
]
*$/
,
message
:
'
请输入数字
'
},
],
initialValue
:
businessInfo
.
bankAccount
,
initialValue
:
businessInfo
.
bankAccount
,
})(<
Input
Number
style=
{
{
width
:
'
100%
'
}
}
controls=
{
false
}
min=
{
1
}
/>)
}
})(<
Input
/>)
}
</
FormItem
>
</
FormItem
>
</
Col
>
</
Col
>
</
Row
>
</
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