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
25b37f97
Commit
25b37f97
authored
Aug 06, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保留2微小数
parent
1ff03345
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+2
-2
Fromtable.tsx
src/pages/contract/manage/add/components/Fromtable.tsx
+2
-2
Information.tsx
src/pages/contract/manage/add/components/Information.tsx
+2
-2
No files found.
src/pages/contract/manage/add/components/FormList.tsx
View file @
25b37f97
...
...
@@ -140,7 +140,7 @@ const FormList = (props: any) => {
associatedGoods
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityAttribute'
,
''
]),
//关联
associatedMaterielNo
:
_filter
(
sourceType
,
item
,
[
''
,
'number'
,
'commodityCode'
]),
// 关联物料编号
associatedMaterielName
:
_filter
(
sourceType
,
item
,
[
''
,
'productName'
,
'commodityName'
]),
// 关联商品名称
associatedType
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityCategory'
,
''
]).
split
(
'-'
)[
1
]
,
//规格型号
associatedType
:
sourceType
==
1
?
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityCategory'
,
''
]).
split
(
'-'
)[
1
]
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityCategory'
,
''
])
,
//规格型号
associatedCategory
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityCategory'
,
''
]),
// 关联商品品类
associatedBrand
:
_filter
(
sourceType
,
item
,
[
''
,
'productBrand'
,
'commodityBrand'
,
''
]),
// 关联品牌
rowId
:
index
,
...
...
@@ -322,7 +322,7 @@ const FormList = (props: any) => {
purchaseCount
:
item
.
purchaseCount
,
price
:
Number
(
item
.
price
),
bidCount
:
item
.
bidCount
,
bidAmount
:
item
.
bidCount
&&
item
.
price
?
Number
(
item
.
bidCount
)
*
Number
(
item
.
price
)
:
''
,
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
,
associatedDataId
:
Object
.
keys
(
Row
).
length
===
0
?
''
:
item
.
associatedDataId
,
...
...
src/pages/contract/manage/add/components/Fromtable.tsx
View file @
25b37f97
...
...
@@ -91,7 +91,7 @@ const FormList = (props: any) => {
width
:
130
,
}
}
placeholder=
""
value=
{
item
.
payAmount
}
value=
{
Number
(
item
.
payAmount
).
toFixed
(
2
)
}
onChange=
{
(
e
)
=>
onSelectChange
(
e
,
'payAmount'
,
index
)
}
/>
</
div
>
...
...
@@ -224,7 +224,7 @@ const FormList = (props: any) => {
PlanList
.
map
(
item
=>
{
item
.
payNum
=
Number
(
item
.
payNum
)
item
.
payRatio
=
Number
(
item
.
payRatio
)
item
.
payAmount
=
Number
(
item
.
payAmount
)
item
.
payAmount
=
Number
(
item
.
payAmount
)
.
toFixed
(
2
)
item
.
payWay
=
Number
(
item
.
payWay
)
item
.
payParam
=
Number
(
item
.
payParam
)
// 付款方式: 1 - 账期,2 - 月结,3 - 现结
...
...
src/pages/contract/manage/add/components/Information.tsx
View file @
25b37f97
...
...
@@ -104,7 +104,7 @@ const Information = (props: any) => {
basicsVO
.
partyBName
=
Row
.
partyBName
?
Row
.
partyBName
:
''
;
basicsVO
.
sourceNo
=
Row
.
sourceNo
?
Row
.
sourceNo
:
''
;
basicsVO
.
sourceId
=
Row
.
sourceId
?
Row
.
sourceId
:
''
;
basicsVO
.
totalAmount
=
Row
.
totalAmount
?
Row
.
totalAmount
:
''
;
basicsVO
.
totalAmount
=
Row
.
totalAmount
?
Number
(
Row
.
totalAmount
).
toFixed
(
2
)
:
''
;
basicsVO
.
partyBMemberId
=
sourceType
===
'1'
?
Row
.
awardRoleId
?
Row
.
awardMemberId
:
''
:
Row
.
partyBMemberId
;
basicsVO
.
partyBRoleId
=
sourceType
===
'1'
?
Row
.
awardRoleId
?
Row
.
awardRoleId
:
''
:
Row
.
partyBRoleId
;
console
.
log
(
Row
,
basicsVO
)
...
...
@@ -183,7 +183,7 @@ const Information = (props: any) => {
default
:
break
;
}
basicsVO
.
totalAmount
=
totalAmount
;
basicsVO
.
totalAmount
=
Number
(
totalAmount
).
toFixed
(
2
)
;
basicsVO
.
sourceId
=
sourceId
;
basicsVO
.
partyBName
=
partyBName
;
basicsVO
.
partyBMemberId
=
partyBMemberId
;
...
...
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