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
672857a1
Commit
672857a1
authored
Aug 12, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
3dc815b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+4
-4
index.tsx
src/pages/contract/manage/details/index.tsx
+2
-2
No files found.
src/pages/contract/manage/add/components/FormList.tsx
View file @
672857a1
...
...
@@ -238,7 +238,7 @@ const FormList = (props: any) => {
render
:
(
text
:
any
,
record
:
any
,
index
:
number
)
=>
<
Form
.
Item
name=
{
`price${index}`
}
initialValue=
{
text
}
initialValue=
{
Number
(
text
).
toFixed
(
2
)
}
rules=
{
[{
required
:
true
,
message
:
'请输入'
}]
}
>
<
Input
...
...
@@ -247,7 +247,7 @@ const FormList = (props: any) => {
}
}
onChange=
{
(
e
)
=>
setInput
(
e
,
'price'
,
index
)
}
addonBefore=
"¥"
defaultValue=
{
text
}
defaultValue=
{
Number
(
text
).
toFixed
(
2
)
}
disabled=
{
Object
.
keys
(
Row
).
length
!=
0
?
true
:
false
}
/>
</
Form
.
Item
>
...
...
@@ -320,8 +320,8 @@ const FormList = (props: any) => {
isHasTax
:
item
.
isHasTax
,
taxRate
:
item
.
taxRate
,
purchaseCount
:
item
.
purchaseCount
,
price
:
Number
(
item
.
price
),
bidCount
:
item
.
bidCount
,
price
:
Number
(
item
.
price
)
.
toFixed
(
2
)
,
bidCount
:
Number
(
item
.
bidCount
).
toFixed
(
2
)
,
bidAmount
:
item
.
bidCount
&&
item
.
price
?
(
Number
(
item
.
bidCount
)
*
Number
(
item
.
price
)).
toFixed
(
2
)
:
''
,
associatedMaterielName
:
Object
.
keys
(
Row
).
length
===
0
?
''
:
item
.
associatedMaterielName
,
associatedGoods
:
Object
.
keys
(
Row
).
length
===
0
?
''
:
item
.
associatedGoods
,
...
...
src/pages/contract/manage/details/index.tsx
View file @
672857a1
...
...
@@ -273,10 +273,10 @@ const Details = (props: any) => {
</
div
>
<
div
className=
{
style
.
text
}
>
<
p
>
商品ID:
{
record
.
associatedDataId
}
</
p
>
<
p
className=
{
style
.
nowrap
}
>
商品名称:
{
record
.
associated
MaterielName
}
</
p
>
<
p
className=
{
style
.
nowrap
}
>
商品名称:
{
record
.
associated
Goods
}
</
p
>
</
div
>
<
div
className=
{
style
.
text
}
>
<
p
>
规格型号:
{
record
.
associated
Goods
}
</
p
>
<
p
>
规格型号:
{
record
.
associated
Type
}
</
p
>
<
p
>
品类:
{
record
.
associatedCategory
}
</
p
>
</
div
>
<
div
className=
{
style
.
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