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
陈智峰
jinfa-platform
Commits
268915a0
Commit
268915a0
authored
Jan 12, 2022
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: [19517]
parent
da59818f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
3 deletions
+27
-3
add.tsx
src/pages/balance/businessReconciliation/readyAdd/add.tsx
+27
-3
No files found.
src/pages/balance/businessReconciliation/readyAdd/add.tsx
View file @
268915a0
...
@@ -77,8 +77,32 @@ const Add = () => {
...
@@ -77,8 +77,32 @@ const Add = () => {
}
}
const
basicFormCol
=
[
const
basicFormCol
=
[
{
label
:
intl
.
formatMessage
({
id
:
'balance.danjuzhaiyao'
}),
name
:
'reconciliationAbstract'
,
placeholder
:
'请输入对账单摘要'
,
maxLength
:
60
,
rules
:
[{
required
:
true
,
message
:
'请输入对账单摘要'
}]
},
{
{
label
:
intl
.
formatMessage
({
id
:
'balance.beizhu'
}),
name
:
'remark'
,
placeholder
:
'请输入对备注'
,
maxLength
:
120
},
label
:
intl
.
formatMessage
({
id
:
'balance.danjuzhaiyao'
}),
name
:
'reconciliationAbstract'
,
placeholder
:
'请输入对账单摘要'
,
rules
:
[{
required
:
true
,
message
:
'请输入对账单摘要'
},
{
validator
:
(
_
,
value
)
=>
{
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'
})}
`
))
}
else
{
return
Promise
.
resolve
();
}
}
}]
},
{
label
:
intl
.
formatMessage
({
id
:
'balance.beizhu'
}),
name
:
'remark'
,
placeholder
:
'请输入对备注'
,
rules
:
[
{
validator
:
(
_
,
value
)
=>
{
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'
})}
`
))
}
else
{
return
Promise
.
resolve
();
}
}
}
]
},
]
]
const
basicFormColRight
=
[
const
basicFormColRight
=
[
...
@@ -371,7 +395,7 @@ const Add = () => {
...
@@ -371,7 +395,7 @@ const Add = () => {
<
Form
.
Item
<
Form
.
Item
{
...
item
}
{
...
item
}
>
>
{
_editAble
?
<
Input
placeholder=
{
item
.
placeholder
}
maxLength=
{
item
.
maxLength
}
/>
:
dataSource
[
item
.
name
]
}
{
_editAble
?
<
Input
placeholder=
{
item
.
placeholder
}
/>
:
dataSource
[
item
.
name
]
}
</
Form
.
Item
>
</
Form
.
Item
>
</
Col
>
</
Col
>
))
}
))
}
...
...
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