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
c0348083
Commit
c0348083
authored
Jul 01, 2022
by
wzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 25504-删除价格覆盖问题
parent
111d88ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+2
-2
No files found.
src/pages/contract/manage/add/components/FormList.tsx
View file @
c0348083
...
...
@@ -431,7 +431,7 @@ const FormList = (props: any) => {
key
:
'price'
+
refresh
,
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<
Form
.
Item
name=
{
`price${
index
}`
}
name=
{
`price${
record.id
}`
}
// initialValue={text != '' ? Number(text).toFixed(2) : ''}
initialValue=
{
text
!=
''
?
String
(
text
).
replace
(
/^
(
.*
\.
.{4}
)
.*$/
,
"$1"
)
:
''
}
rules=
{
[{
...
...
@@ -447,7 +447,7 @@ const FormList = (props: any) => {
}
}
onChange=
{
(
e
)
=>
setInput
(
e
,
'price'
,
index
)
}
// addonBefore={intl.formatMessage({ id: 'common.money' })}
defaultValue=
{
text
!=
''
?
Number
(
text
)
:
''
}
//
defaultValue={text != '' ? Number(text) : ''}
disabled=
{
(
Object
.
keys
(
Row
).
length
!=
0
&&
sourceWay
!=
'purchase'
)
?
true
:
false
}
defaultValue=
{
text
!=
''
?
String
(
text
).
replace
(
/^
(
.*
\.
.{4}
)
.*$/
,
"$1"
)
:
''
}
/>
...
...
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