Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
1908d8ee
Commit
1908d8ee
authored
Nov 30, 2020
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
询价报价详情里的报价商品接口接入
parent
64c80fd0
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
34 deletions
+36
-34
index.less
src/pages/rfq/details/index.less
+1
-0
index.tsx
src/pages/rfq/details/index.tsx
+11
-11
index.less
src/pages/rfqOffer/details/index.less
+1
-0
index.tsx
src/pages/rfqOffer/details/index.tsx
+23
-23
No files found.
src/pages/rfq/details/index.less
View file @
1908d8ee
...
@@ -209,6 +209,7 @@
...
@@ -209,6 +209,7 @@
margin-bottom: 24px;
margin-bottom: 24px;
background-color: #FFF;
background-color: #FFF;
border-radius: 8px;
border-radius: 8px;
padding: 24px;
&:last-child {
&:last-child {
margin-bottom: 0px;
margin-bottom: 0px;
...
...
src/pages/rfq/details/index.tsx
View file @
1908d8ee
import
React
,
{
useState
,
useEffect
,
ReactNode
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
ReactNode
}
from
'react'
;
import
style
from
'./index.less'
import
style
from
'./index.less'
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
Card
,
Tabs
,
Steps
,
Table
,
Tag
}
from
'antd'
;
import
{
Tabs
,
Steps
,
Table
,
Tag
}
from
'antd'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
...
@@ -226,7 +226,7 @@ const Details: React.FC<{}> = (props) => {
...
@@ -226,7 +226,7 @@ const Details: React.FC<{}> = (props) => {
</
div
>
</
div
>
}
}
>
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转
</
div
>
<
Steps
<
Steps
style=
{
{
padding
:
'20px 0'
}
}
style=
{
{
padding
:
'20px 0'
}
}
...
@@ -243,12 +243,12 @@ const Details: React.FC<{}> = (props) => {
...
@@ -243,12 +243,12 @@ const Details: React.FC<{}> = (props) => {
);
);
})
}
})
}
</
Steps
>
</
Steps
>
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
style=
{
view
===
2
?
{
paddingBottom
:
'0px'
}
:
{
paddingBottom
:
'24px'
}
}
>
询价商品
</
div
>
<
div
className=
{
style
.
mainCol_title
}
style=
{
view
===
2
?
{
paddingBottom
:
'0px'
}
:
{
paddingBottom
:
'24px'
}
}
>
询价商品
</
div
>
<
Table
columns=
{
inquiryGoods
}
pagination=
{
false
}
rowKey=
'id'
dataSource=
{
data
.
inquiryListProductRequests
}
/>
<
Table
columns=
{
inquiryGoods
}
pagination=
{
false
}
rowKey=
'id'
dataSource=
{
data
.
inquiryListProductRequests
}
/>
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
{
infoTem
[
'base'
].
title
}
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
{
infoTem
[
'base'
].
title
}
</
div
>
<
div
className=
{
style
[
'mainCol-rows'
]
}
>
<
div
className=
{
style
[
'mainCol-rows'
]
}
>
<
div
className=
{
style
[
'mainCol-rows-cols'
]
}
>
<
div
className=
{
style
[
'mainCol-rows-cols'
]
}
>
...
@@ -298,8 +298,8 @@ const Details: React.FC<{}> = (props) => {
...
@@ -298,8 +298,8 @@ const Details: React.FC<{}> = (props) => {
)
}
)
}
</
div
>
</
div
>
</
div
>
</
div
>
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
附件
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
附件
</
div
>
<
div
className=
{
style
.
upload_data
}
>
<
div
className=
{
style
.
upload_data
}
>
{
{
...
@@ -314,11 +314,11 @@ const Details: React.FC<{}> = (props) => {
...
@@ -314,11 +314,11 @@ const Details: React.FC<{}> = (props) => {
))
))
}
}
</
div
>
</
div
>
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转记录
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转记录
</
div
>
<
Table
columns=
{
flowRecord
.
external
}
rowKey=
'id'
pagination=
{
false
}
dataSource=
{
data
.
externalInquiryListLogResponses
}
/>
<
Table
columns=
{
flowRecord
.
external
}
rowKey=
'id'
pagination=
{
false
}
dataSource=
{
data
.
externalInquiryListLogResponses
}
/>
</
Card
>
</
div
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
)
)
}
}
...
...
src/pages/rfqOffer/details/index.less
View file @
1908d8ee
...
@@ -209,6 +209,7 @@
...
@@ -209,6 +209,7 @@
margin-bottom: 24px;
margin-bottom: 24px;
background-color: #FFF;
background-color: #FFF;
border-radius: 8px;
border-radius: 8px;
padding: 24px;
&:last-child {
&:last-child {
margin-bottom: 0px;
margin-bottom: 0px;
...
...
src/pages/rfqOffer/details/index.tsx
View file @
1908d8ee
import
React
,
{
useState
,
useEffect
,
ReactNode
,
useRef
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
ReactNode
,
useRef
}
from
'react'
;
import
style
from
'./index.less'
import
style
from
'./index.less'
import
{
history
}
from
'umi'
;
import
{
history
}
from
'umi'
;
import
{
Card
,
Tabs
,
Steps
,
Table
,
Tag
}
from
'antd'
;
import
{
Tabs
,
Steps
,
Table
,
Tag
}
from
'antd'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
LinkOutlined
}
from
'@ant-design/icons'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
;
...
@@ -156,14 +156,14 @@ const Details: React.FC<{}> = (props) => {
...
@@ -156,14 +156,14 @@ const Details: React.FC<{}> = (props) => {
return
component
;
return
component
;
}
}
//询价商品
//询价商品
//
const fetchData = (params:any) => {
const
fetchData
=
(
params
:
any
)
=>
{
//
return new Promise(resolve => {
return
new
Promise
(
resolve
=>
{
//
PublicApi.getOrderInquiryDetails({...params,id}).then(res => {
PublicApi
.
getOrderInquiryDetails
({...
params
,
id
}).
then
(
res
=>
{
//
console.log(res, 10086)
console
.
log
(
res
,
10086
)
//
resolve(res.data)
resolve
(
res
.
data
)
//
})
})
//
})
})
//
}
}
/**下载 */
/**下载 */
const
onDownload
=
(
file
:
any
)
=>
{
const
onDownload
=
(
file
:
any
)
=>
{
...
@@ -216,7 +216,7 @@ const Details: React.FC<{}> = (props) => {
...
@@ -216,7 +216,7 @@ const Details: React.FC<{}> = (props) => {
</
div
>
</
div
>
}
}
>
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转
</
div
>
<
Steps
<
Steps
style=
{
{
padding
:
'20px 0'
}
}
style=
{
{
padding
:
'20px 0'
}
}
...
@@ -233,18 +233,18 @@ const Details: React.FC<{}> = (props) => {
...
@@ -233,18 +233,18 @@ const Details: React.FC<{}> = (props) => {
);
);
})
}
})
}
</
Steps
>
</
Steps
>
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
style=
{
view
===
2
?
{
paddingBottom
:
'0px'
}
:
{
paddingBottom
:
'24px'
}
}
>
询
价商品
</
div
>
<
div
className=
{
style
.
mainCol_title
}
style=
{
view
===
2
?
{
paddingBottom
:
'0px'
}
:
{
paddingBottom
:
'24px'
}
}
>
报
价商品
</
div
>
{
/*
<StandardTable
<
StandardTable
currentRef=
{
ref
}
currentRef=
{
ref
}
columns=
{
inquiryGoods
}
columns=
{
inquiryGoods
}
tableProps=
{
{
rowKew
:
'id'
}
}
tableProps=
{
{
rowKew
:
'id'
}
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
fetchTableData=
{
(
params
:
any
)
=>
fetchData
(
params
)
}
/>
*/
}
/>
<
Table
columns=
{
inquiryGoods
}
pagination=
{
false
}
rowKey=
'id'
dataSource=
{
data
.
inquiryListProductRequests
}
/>
{
/* <Table columns={inquiryGoods} pagination={false} rowKey='id' dataSource={data.inquiryListProductRequests} /> */
}
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
{
infoTem
[
'freight'
].
title
}
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
{
infoTem
[
'freight'
].
title
}
</
div
>
<
div
className=
{
style
[
'mainCol-rows'
]
}
>
<
div
className=
{
style
[
'mainCol-rows'
]
}
>
<
div
className=
{
style
[
'mainCol-rows-cols'
]
}
>
<
div
className=
{
style
[
'mainCol-rows-cols'
]
}
>
...
@@ -294,8 +294,8 @@ const Details: React.FC<{}> = (props) => {
...
@@ -294,8 +294,8 @@ const Details: React.FC<{}> = (props) => {
)
}
)
}
</
div
>
</
div
>
</
div
>
</
div
>
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
附件
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
附件
</
div
>
<
div
className=
{
style
.
upload_data
}
>
<
div
className=
{
style
.
upload_data
}
>
{
{
...
@@ -310,11 +310,11 @@ const Details: React.FC<{}> = (props) => {
...
@@ -310,11 +310,11 @@ const Details: React.FC<{}> = (props) => {
))
))
}
}
</
div
>
</
div
>
</
Card
>
</
div
>
<
Card
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
item_wrap
}
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转记录
</
div
>
<
div
className=
{
style
.
mainCol_title
}
>
外部流转记录
</
div
>
<
Table
columns=
{
flowRecord
.
external
}
rowKey=
'id'
pagination=
{
false
}
dataSource=
{
data
.
externalRequisitionFormResponses
}
/>
<
Table
columns=
{
flowRecord
.
external
}
rowKey=
'id'
pagination=
{
false
}
dataSource=
{
data
.
externalRequisitionFormResponses
}
/>
</
Card
>
</
div
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
)
)
}
}
...
...
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