Commit 1908d8ee authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

询价报价详情里的报价商品接口接入

parent 64c80fd0
...@@ -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;
......
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 >
) )
} }
......
...@@ -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;
......
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 >
) )
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment