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
56d43d58
Commit
56d43d58
authored
Jul 27, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG修复
parent
81d43e9a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
8 deletions
+10
-8
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+10
-8
No files found.
src/pages/contract/manage/add/components/FormList.tsx
View file @
56d43d58
...
...
@@ -16,8 +16,8 @@ const FormList = (props: any) => {
console
.
log
(
sourceType
)
const
refs
=
useRef
({});
/* 显示模态框 */
const
[
isModalVisible
,
setIsModalVisible
]
=
useState
(
false
);
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
string
>>
([])
const
[
isModalVisible
,
setIsModalVisible
]
=
useState
(
false
);
// 显示模态框
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
string
>>
([])
// 选中的
const
[
selectRow
,
setSelectRow
]
=
useState
<
any
[]
>
([])
// 模态框选择的行数据
const
[
dataList
,
setData
]
=
useState
<
Array
<
any
>>
([])
// 列表数据
/* 选中 */
...
...
@@ -39,7 +39,6 @@ const FormList = (props: any) => {
setData
(
dataArr
)
setIsModalVisible
(
false
);
};
/* 获取商品 */
const
getGoodsList
=
(
params
)
=>
{
return
new
Promise
(
resolve
=>
{
...
...
@@ -146,12 +145,15 @@ const FormList = (props: any) => {
price
:
_filter
(
sourceType
,
item
,
[
''
,
'taxUnitPrice'
,
'price'
,
'price'
]),
//单价
bidCount
:
sourceType
==
'1'
?
item
.
awardTaxProbability
*
item
.
purchaseCount
/
100
:
sourceType
==
'2'
?
item
.
awardTenderRatio
*
item
.
inviteTenderMateriel
.
count
/
100
:
item
.
purchaseCount
,
bidAmount
:
sourceType
==
'1'
?
item
.
awardTaxProbability
*
item
.
purchaseCount
/
100
*
item
.
taxUnitPrice
:
sourceType
==
'2'
?
item
.
awardTenderRatio
*
item
.
inviteTenderMateriel
.
count
/
100
*
item
.
price
:
item
.
price
,
associatedType
:
_filter
(
sourceType
,
item
,
[
''
,
'productBrand'
,
''
,
''
]),
// productBrand
associatedType
:
_filter
(
sourceType
,
item
,
[
''
,
''
,
''
,
''
]),
associatedBrand
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
''
,
''
]),
associatedDataId
:
sourceType
==
'1'
?
item
.
productId
:
sourceType
==
'2'
?
item
.
commodityId
:
''
,
// 关联商品id
associatedMaterielNo
:
sourceType
==
'1'
?
item
.
number
:
sourceType
==
'2'
?
item
.
commodityAttribute
:
''
,
// 关联物料编号
associatedMaterielName
:
sourceType
==
'1'
?
item
.
productName
:
sourceType
==
'2'
?
item
.
commodityName
:
''
,
// 关联商品名称
associatedGoods
:
sourceType
==
'1'
?
item
.
productAttributeJson
:
sourceType
==
'2'
?
item
.
commodityBrand
:
''
,
// 关联品牌
associatedDataId
:
_filter
(
sourceType
,
item
,
[
''
,
'number'
,
'commodityAttribute'
]),
// 关联商品id
associatedMaterielNo
:
_filter
(
sourceType
,
item
,
[
''
,
'number'
,
'commodityAttribute'
]),
// 关联物料编号
associatedMaterielName
:
_filter
(
sourceType
,
item
,
[
''
,
'productName'
,
'commodityName'
]),
// 关联商品名称
associatedGoods
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityBrand'
]),
//关联品牌
// associatedMaterielName: sourceType == '1' ? item.productName : sourceType == '2' ? item.commodityName : '',
// associatedGoods: sourceType == '1' ? item.productAttributeJson : sourceType == '2' ? item.commodityBrand : '',// 关联品牌
rowId
:
index
,
}
})
...
...
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