Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
shenshaokai
jinfa-platform
Commits
1faf6ec5
Commit
1faf6ec5
authored
Jan 12, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: [19553] 修改提示语
parent
e0cda034
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
add.tsx
src/pages/balance/businessReconciliation/readyAdd/add.tsx
+2
-2
index.tsx
...nciliationCollaboration/components/modalOperate/index.tsx
+1
-1
No files found.
src/pages/balance/businessReconciliation/readyAdd/add.tsx
View file @
1faf6ec5
...
...
@@ -85,7 +85,7 @@ const Add = () => {
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
30
*
2
)
{
return
Promise
.
reject
(
new
Error
(
`
${
intl
.
formatMessage
({
id
:
'detail.purchase.tips19'
})}${
30
*
2
}${
intl
.
formatMessage
({
id
:
'detail.purchase.tips20'
})}${
30
}${
intl
.
formatMessage
({
id
:
'detail.purchase.tips18'
})}
`
))
return
Promise
.
reject
(
new
Error
(
`
最长60个字符,30个汉字
`
))
}
else
{
return
Promise
.
resolve
();
}
...
...
@@ -99,7 +99,7 @@ const Add = () => {
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
value
.
length
>
60
*
2
)
{
return
Promise
.
reject
(
new
Error
(
`
${
intl
.
formatMessage
({
id
:
'detail.purchase.tips19'
})}${
60
*
2
}${
intl
.
formatMessage
({
id
:
'detail.purchase.tips20'
})}
`
))
return
Promise
.
reject
(
new
Error
(
`
最长120个字符
`
))
}
else
{
return
Promise
.
resolve
();
}
...
...
src/pages/balance/businessReconciliationCollaboration/components/modalOperate/index.tsx
View file @
1faf6ec5
...
...
@@ -138,7 +138,7 @@ const ModalOperate: React.FC<IProps> = (props: any) => {
let
_str
=
value
;
_str
=
_str
.
replace
(
/
[\u
4E00-
\u
9FA5
]
/g
,
"AA"
);
if
(
_str
.
length
>
maxNumber
*
2
)
{
return
{
type
:
'error'
,
message
:
`
${intl.formatMessage({ id: 'detail.purchase.tips19' })}${maxNumber * 2}${intl.formatMessage({ id: 'detail.purchase.tips20' })},${maxNumber}${intl.formatMessage({ id: 'detail.purchase.tips18' })}
`
};
return
{
type
:
'error'
,
message
:
`
最长${maxNumber * 2}个字符,${maxNumber}个汉字
`
};
}
else
{
return
null
;
}
...
...
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