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
e9ffdf8b
Commit
e9ffdf8b
authored
Aug 06, 2021
by
alwayOnlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改字段
parent
391b5ad1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
addList.tsx
src/pages/contract/manage/add/addList.tsx
+3
-2
FormList.tsx
src/pages/contract/manage/add/components/FormList.tsx
+5
-6
index.tsx
src/pages/contract/manage/details/index.tsx
+2
-2
No files found.
src/pages/contract/manage/add/addList.tsx
View file @
e9ffdf8b
...
...
@@ -128,6 +128,7 @@ const addList = () => {
// 甲方不同意签订合同都可以修改
return
(
<
div
>
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
submit
(
record
.
id
)
}
>
提交
</
span
>
{
record
.
innerStatus
==
'1'
||
record
.
outerStatus
==
'1'
||
record
.
outerStatus
==
'3'
||
record
.
outerStatus
==
'5'
?
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
edit
(
record
)
}
>
修改
</
span
>
:
''
}
...
...
@@ -141,12 +142,12 @@ const addList = () => {
cancelText=
"否"
>
<
Button
style=
{
{
marginRight
:
10
}
}
// style=
{{
margin
:
10
}}
type=
"link"
>
删除
</
Button
>
</
Popconfirm
>
}
<
span
style=
{
{
color
:
'#00B37A'
,
cursor
:
'pointer'
,
marginRight
:
10
}
}
onClick=
{
()
=>
submit
(
record
.
id
)
}
>
提交
</
span
>
</
div
>
)
}
...
...
src/pages/contract/manage/add/components/FormList.tsx
View file @
e9ffdf8b
...
...
@@ -136,14 +136,13 @@ const FormList = (props: any) => {
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
,
// productBrand
associatedType
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityCategory'
,
''
]).
split
(
'-'
)[
1
],
associatedBrand
:
_filter
(
sourceType
,
item
,
[
''
,
'productBrand'
,
'commodityBrand'
,
''
]),
associatedDataId
:
_filter
(
sourceType
,
item
,
[
''
,
'productId'
,
'commoditySkuId'
]),
// 关联商品id
associatedGoods
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityAttribute'
,
''
]),
//关联
associatedMaterielNo
:
_filter
(
sourceType
,
item
,
[
''
,
'number'
,
'commodityCode'
]),
// 关联物料编号
associatedMaterielName
:
_filter
(
sourceType
,
item
,
[
''
,
'productName'
,
'commodityName'
]),
// 关联商品名称
associated
Goods
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityAttribute'
,
''
]),
//关联规格
// associatedMaterielName: sourceType == '1' ? item.productName : sourceType == '2' ? item.commodityName : '',
// associatedGoods: sourceType == '1' ? item.productAttributeJson : sourceType == '2' ? item.commodityBrand : ''
,// 关联品牌
associated
Type
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityCategory'
,
''
]).
split
(
'-'
)[
1
],
//规格型号
associatedCategory
:
_filter
(
sourceType
,
item
,
[
''
,
'productAttributeJson'
,
'commodityCategory'
,
''
]),
// 关联商品品类
associatedBrand
:
_filter
(
sourceType
,
item
,
[
''
,
'productBrand'
,
'commodityBrand'
,
''
])
,
// 关联品牌
rowId
:
index
,
}
})
...
...
@@ -358,7 +357,7 @@ const FormList = (props: any) => {
</
div
>
<
div
className=
{
styles
.
text
}
>
<
p
>
规格:
{
record
.
associatedGoods
}
</
p
>
<
p
>
品类:
{
record
.
associated
Type
}
</
p
>
<
p
>
品类:
{
record
.
associated
Category
}
</
p
>
</
div
>
<
div
className=
{
styles
.
text
}
>
<
p
>
品牌:
{
record
.
associatedBrand
}
</
p
>
...
...
src/pages/contract/manage/details/index.tsx
View file @
e9ffdf8b
...
...
@@ -292,10 +292,10 @@ const Details = (props: any) => {
</
div
>
<
div
className=
{
style
.
text
}
>
<
p
>
商品编号:
{
record
.
associatedMaterielNo
}
</
p
>
<
p
className=
{
style
.
nowrap
}
>
商品名称:
{
record
.
associated
Goods
}
</
p
>
<
p
className=
{
style
.
nowrap
}
>
商品名称:
{
record
.
associated
MaterielName
}
</
p
>
</
div
>
<
div
className=
{
style
.
text
}
>
<
p
>
规格型号:
{
record
.
associated
Type
}
</
p
>
<
p
>
规格型号:
{
record
.
associated
Goods
}
</
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