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
c18fd1c4
Commit
c18fd1c4
authored
Jul 10, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(): 修复采购询价bug
parent
660b333d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
64 additions
and
20 deletions
+64
-20
index.tsx
...lity/components/detail/components/bidInfoLayout/index.tsx
+6
-4
index.tsx
...ty/components/detail/components/bidResultLayout/index.tsx
+12
-3
index.tsx
...saction/purchaseAbility/components/detailDrawer/index.tsx
+9
-5
basic.tsx
...ion/purchaseAbility/offter/addOffter/components/basic.tsx
+1
-4
file.tsx
...tion/purchaseAbility/offter/addOffter/components/file.tsx
+9
-1
crossSellProducts.tsx
...chaseAbility/offter/addOffter/modal/crossSellProducts.tsx
+9
-1
file.tsx
...aseAbility/purchaseInquiry/addInquiry/components/file.tsx
+9
-1
drawerWrite.tsx
...eAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
+9
-1
No files found.
src/pages/transaction/purchaseAbility/components/detail/components/bidInfoLayout/index.tsx
View file @
c18fd1c4
...
...
@@ -89,15 +89,16 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
render
:
(
text
:
any
,
record
:
any
)
=>
(
<>
<
Typography
.
Text
>
{
text
?
'是'
:
'否'
}
</
Typography
.
Text
>
<
Typography
.
Text
type=
"secondary"
>
{
`(${record.taxProbability}
)`
}
</
Typography
.
Text
>
/
<
Typography
.
Text
>
{
`(${record.taxProbability}%
)`
}
</
Typography
.
Text
>
</>
)
},
{
title
:
'单价(含税)'
,
key
:
'taxUnitPrice'
,
dataIndex
:
'taxUnitPrice'
dataIndex
:
'taxUnitPrice'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Typography
.
Text
>
¥
{
text
.
toFixed
(
2
)
}
</
Typography
.
Text
>
},
{
title
:
(
...
...
@@ -107,7 +108,8 @@ const BidInfoLayout: React.FC<BidInfoProps> = (props: any) => {
</
Space
>
),
key
:
'taxPrice'
,
dataIndex
:
'taxPrice'
dataIndex
:
'taxPrice'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Typography
.
Text
>
¥
{
text
.
toFixed
(
2
)
}
</
Typography
.
Text
>
}
]
...
...
src/pages/transaction/purchaseAbility/components/detail/components/bidResultLayout/index.tsx
View file @
c18fd1c4
...
...
@@ -51,12 +51,20 @@ const BidResultLayout: React.FC<BidResultProps> = (props: any) => {
{
title
:
'含税/税率'
,
key
:
'isTax'
,
dataIndex
:
'isTax'
dataIndex
:
'isTax'
,
render
:
(
text
:
any
,
record
:
any
)
=>
(
<>
<
Typography
.
Text
>
{
text
?
'是'
:
'否'
}
</
Typography
.
Text
>
/
<
Typography
.
Text
>
{
`(${record.taxProbability}%)`
}
</
Typography
.
Text
>
</>
)
},
{
title
:
'单价(含税)'
,
key
:
'taxUnitPrice'
,
dataIndex
:
'taxUnitPrice'
dataIndex
:
'taxUnitPrice'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Typography
.
Text
>
¥
{
text
.
toFixed
(
2
)
}
</
Typography
.
Text
>
},
{
title
:
(
...
...
@@ -66,7 +74,8 @@ const BidResultLayout: React.FC<BidResultProps> = (props: any) => {
</
Space
>
),
key
:
'taxPrice'
,
dataIndex
:
'taxPrice'
dataIndex
:
'taxPrice'
,
render
:
(
text
:
any
,
record
:
any
)
=>
<
Typography
.
Text
>
¥
{
text
.
toFixed
(
2
)
}
</
Typography
.
Text
>
}
]
...
...
src/pages/transaction/purchaseAbility/components/detailDrawer/index.tsx
View file @
c18fd1c4
...
...
@@ -47,10 +47,10 @@ const DetailDrawer: React.FC<IProps> = (props: any) => {
<
Divider
type=
"vertical"
className=
{
style
.
dividerStyle
}
/>
{
item
.
linkTitle
}
</
div
>
{
item
.
linkContent
.
map
((
items
,
keys
)
=>
(
{
item
.
linkContent
.
map
((
items
,
keys
)
=>
(
<
div
key=
{
`content${keys + 1}`
}
className=
{
style
.
list
}
>
<
h5
className=
{
style
.
listLable
}
style=
{
{
flex
:
'0 0 100px'
}
}
>
{
items
.
label
}
:
</
h5
>
{
!
items
.
file
&&
<
h5
className=
{
style
.
listContent
}
>
{
items
.
content
}
</
h5
>
}
{
!
items
.
file
&&
<
h5
className=
{
style
.
listContent
}
>
{
items
.
content
}
</
h5
>
}
{
items
.
file
&&
(
...
...
@@ -58,9 +58,13 @@ const DetailDrawer: React.FC<IProps> = (props: any) => {
{
items
.
content
.
length
>
0
&&
items
.
content
.
map
((
v
,
index
)
=>
(
<
div
key=
{
index
}
className=
{
style
.
upload_item
}
>
<
div
className=
{
style
.
upload_left
}
>
<
Typography
.
Link
href=
{
v
.
url
}
target=
"_blank"
>
<
LinkOutlined
/>
{
v
.
name
}
<
Typography
.
Link
target=
"_blank"
key=
{
`link_${index + 1}`
}
href=
{
`/api/contract/contractTemplate/downloadContract?contractName=${item.name}&contractUrl=${item.url}`
}
>
<
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
item
.
name
}
</
Typography
.
Link
>
</
div
>
</
div
>
...
...
src/pages/transaction/purchaseAbility/offter/addOffter/components/basic.tsx
View file @
c18fd1c4
...
...
@@ -171,10 +171,7 @@ const BasicInfo: React.FC<IProps> = (props: any) => {
<
Form
.
Item
label=
'内部状态'
name=
'interiorState'
>
{
fetchdata
&&
<
Badge
status=
{
OFFTER_INTERNALSTATE_COLOR
[
fetchdata
.
interiorState
]
}
text=
{
fetchdata
.
interiorStateName
}
/>
}
</
Form
.
Item
>
/>
</
Form
>
)
}
...
...
src/pages/transaction/purchaseAbility/offter/addOffter/components/file.tsx
View file @
c18fd1c4
...
...
@@ -107,7 +107,15 @@ const File: React.FC<IProps> = (props) => {
{
fileForEach
().
length
>
0
&&
fileForEach
().
map
((
v
,
index
)
=>
(
<
div
key=
{
index
}
className=
{
styles
.
upload_item
}
>
<
div
className=
{
styles
.
upload_left
}
>
<
Typography
.
Link
href=
{
v
.
url
}
target=
"_blank"
><
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
<
Typography
.
Link
style=
{
{
display
:
'block'
,
paddingBottom
:
'8px'
}
}
key=
{
`link_${index + 1}`
}
href=
{
`/api/contract/contractTemplate/downloadContract?contractName=${v.name}&contractUrl=${v.url}`
}
target=
"_blank"
>
<
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
</
div
>
{
checkRound
===
round
&&
(
<
div
className=
{
styles
.
upload_right
}
onClick=
{
()
=>
removeFiles
(
index
)
}
>
...
...
src/pages/transaction/purchaseAbility/offter/addOffter/modal/crossSellProducts.tsx
View file @
c18fd1c4
...
...
@@ -377,7 +377,15 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
{
files
.
length
>
0
&&
files
.
map
((
v
,
index
)
=>
(
<
div
key=
{
index
}
className=
{
style
.
upload_item
}
>
<
div
className=
{
style
.
upload_left
}
>
<
Typography
.
Link
href=
{
v
.
url
}
target=
"_blank"
><
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
<
Typography
.
Link
style=
{
{
display
:
'block'
,
paddingBottom
:
'8px'
}
}
key=
{
`link_${index + 1}`
}
href=
{
`/api/contract/contractTemplate/downloadContract?contractName=${v.name}&contractUrl=${v.url}`
}
target=
"_blank"
>
<
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
</
div
>
{
!
preview
&&
(
<
div
className=
{
style
.
upload_right
}
onClick=
{
()
=>
removeFiles
(
index
)
}
>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/components/file.tsx
View file @
c18fd1c4
...
...
@@ -85,7 +85,15 @@ const File: React.FC<IProps> = (props) => {
{
files
.
length
>
0
&&
files
.
map
((
v
,
index
)
=>
(
<
div
key=
{
index
}
className=
{
styles
.
upload_item
}
>
<
div
className=
{
styles
.
upload_left
}
>
<
Typography
.
Link
href=
{
v
.
url
}
target=
"_blank"
><
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
<
Typography
.
Link
style=
{
{
display
:
'block'
,
paddingBottom
:
'8px'
}
}
key=
{
`link_${index + 1}`
}
href=
{
`/api/contract/contractTemplate/downloadContract?contractName=${v.name}&contractUrl=${v.url}`
}
target=
"_blank"
>
<
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
</
div
>
<
div
className=
{
styles
.
upload_right
}
onClick=
{
()
=>
removeFiles
(
index
)
}
>
<
DeleteOutlined
/>
...
...
src/pages/transaction/purchaseAbility/purchaseInquiry/addInquiry/modal/drawerWrite.tsx
View file @
c18fd1c4
...
...
@@ -425,7 +425,15 @@ const DrawerWrite: React.FC<Iprops> = (props: any) => {
{
files
.
length
>
0
&&
files
.
map
((
v
,
index
)
=>
(
<
div
key=
{
index
}
className=
{
style
.
upload_item
}
>
<
div
className=
{
style
.
upload_left
}
>
<
Typography
.
Link
href=
{
v
.
url
}
target=
"_blank"
><
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
<
Typography
.
Link
style=
{
{
display
:
'block'
,
paddingBottom
:
'8px'
}
}
key=
{
`link_${index + 1}`
}
href=
{
`/api/contract/contractTemplate/downloadContract?contractName=${v.name}&contractUrl=${v.url}`
}
target=
"_blank"
>
<
LinkOutlined
style=
{
{
marginRight
:
'5px'
}
}
/>
{
v
.
name
}
</
Typography
.
Link
>
</
div
>
{
!
preview
&&
<
div
className=
{
style
.
upload_right
}
>
<
DeleteOutlined
/>
...
...
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