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
linweijiong
jinfa-platform
Commits
1600cb34
Commit
1600cb34
authored
Aug 19, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
213dc193
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
index.tsx
src/pages/contract/contractexecution/details/index.tsx
+1
-1
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+5
-3
No files found.
src/pages/contract/contractexecution/details/index.tsx
View file @
1600cb34
...
...
@@ -178,7 +178,7 @@ const Details = (props: any) => {
return
(
<
div
>
<
EyePreview
url=
{
`/memberCenter/
tranactionAbility/purchaseOrder/readyAddOrder/preview
?id=${record.orderId}`
}
url=
{
`/memberCenter/
afterService/returnApplication/returnQuery/detail
?id=${record.orderId}`
}
>
{
text
}
</
EyePreview
>
...
...
src/pages/contract/manage/add/components/FormList.tsx
View file @
1600cb34
...
...
@@ -24,7 +24,9 @@ const FormList = (props: any) => {
let
list
=
RowCtl
.
selectRow
;
list
.
map
((
item
:
any
,
index
:
number
)
=>
{
item
.
rowId
=
index
+
1
item
.
price
=
''
;
})
console
.
log
(
list
)
setData
(
list
)
setIsModalVisible
(
false
);
};
...
...
@@ -238,7 +240,7 @@ const FormList = (props: any) => {
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<
Form
.
Item
name=
{
`price${index}`
}
initialValue=
{
Number
(
text
).
toFixed
(
2
)
}
initialValue=
{
text
!=
''
?
Number
(
text
).
toFixed
(
2
)
:
''
}
rules=
{
[{
required
:
true
,
message
:
'请输入'
}]
}
>
<
Input
...
...
@@ -247,7 +249,7 @@ const FormList = (props: any) => {
}
}
onChange=
{
(
e
)
=>
setInput
(
e
,
'price'
,
index
)
}
addonBefore=
"¥"
defaultValue=
{
Number
(
text
).
toFixed
(
2
)
}
defaultValue=
{
text
!=
''
?
Number
(
text
).
toFixed
(
2
)
:
''
}
disabled=
{
Object
.
keys
(
Row
).
length
!=
0
?
true
:
false
}
/>
</
Form
.
Item
>
...
...
@@ -274,7 +276,7 @@ const FormList = (props: any) => {
dataIndex
:
'bidAmount'
,
key
:
'bidAmount'
,
align
:
'center'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
¥
{
Number
(
record
.
bidAmount
).
toFixed
(
2
)
}
</
Text
>
render
:
(
text
:
any
,
record
:
any
)
=>
<
Text
>
¥
{
record
.
bidAmount
?
Number
(
record
.
bidAmount
).
toFixed
(
2
)
:
'0.00'
}
</
Text
>
},
];
...
...
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