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

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

parent 64c80fd0
......@@ -209,6 +209,7 @@
margin-bottom: 24px;
background-color: #FFF;
border-radius: 8px;
padding: 24px;
&:last-child {
margin-bottom: 0px;
......
import React, { useState, useEffect, ReactNode } from 'react';
import style from './index.less'
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 { ColumnType } from 'antd/lib/table/interface';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
......@@ -226,7 +226,7 @@ const Details: React.FC<{}> = (props) => {
</div >
}
>
<Card className={style.item_wrap}>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>外部流转</div>
<Steps
style={{ padding: '20px 0' }}
......@@ -243,12 +243,12 @@ const Details: React.FC<{}> = (props) => {
);
})}
</Steps>
</Card>
<Card className={style.item_wrap}>
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title} style={view === 2 ? { paddingBottom: '0px' } : { paddingBottom: '24px' }}>询价商品</div>
<Table columns={inquiryGoods} pagination={false} rowKey='id' dataSource={data.inquiryListProductRequests} />
</Card>
<Card className={style.item_wrap}>
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>{infoTem['base'].title}</div>
<div className={style['mainCol-rows']}>
<div className={style['mainCol-rows-cols']}>
......@@ -298,8 +298,8 @@ const Details: React.FC<{}> = (props) => {
)}
</div>
</div>
</Card>
<Card className={style.item_wrap}>
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>附件</div>
<div className={style.upload_data}>
{
......@@ -314,11 +314,11 @@ const Details: React.FC<{}> = (props) => {
))
}
</div>
</Card>
<Card className={style.item_wrap}>
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>外部流转记录</div>
<Table columns={flowRecord.external} rowKey='id' pagination={false} dataSource={data.externalInquiryListLogResponses} />
</Card>
</div>
</PageHeaderWrapper >
)
}
......
......@@ -209,6 +209,7 @@
margin-bottom: 24px;
background-color: #FFF;
border-radius: 8px;
padding: 24px;
&:last-child {
margin-bottom: 0px;
......
import React, { useState, useEffect, ReactNode, useRef } from 'react';
import style from './index.less'
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 { ColumnType } from 'antd/lib/table/interface';
import { PageHeaderWrapper } from '@ant-design/pro-layout';
......@@ -156,14 +156,14 @@ const Details: React.FC<{}> = (props) => {
return component;
}
//询价商品
// const fetchData = (params:any) => {
// return new Promise(resolve => {
// PublicApi.getOrderInquiryDetails({...params,id}).then(res => {
// console.log(res, 10086)
// resolve(res.data)
// })
// })
// }
const fetchData = (params:any) => {
return new Promise(resolve => {
PublicApi.getOrderInquiryDetails({...params,id}).then(res => {
console.log(res, 10086)
resolve(res.data)
})
})
}
/**下载 */
const onDownload = (file: any) => {
......@@ -216,7 +216,7 @@ const Details: React.FC<{}> = (props) => {
</div >
}
>
<Card className={style.item_wrap}>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>外部流转</div>
<Steps
style={{ padding: '20px 0' }}
......@@ -233,18 +233,18 @@ const Details: React.FC<{}> = (props) => {
);
})}
</Steps>
</Card>
<Card className={style.item_wrap}>
<div className={style.mainCol_title} style={view === 2 ? { paddingBottom: '0px' } : { paddingBottom: '24px' }}>价商品</div>
{/* <StandardTable
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title} style={view === 2 ? { paddingBottom: '0px' } : { paddingBottom: '24px' }}>价商品</div>
<StandardTable
currentRef={ref}
columns={inquiryGoods}
tableProps={{ rowKew: 'id' }}
fetchTableData={(params: any) => fetchData(params)}
/> */}
<Table columns={inquiryGoods} pagination={false} rowKey='id' dataSource={data.inquiryListProductRequests} />
</Card>
<Card className={style.item_wrap}>
/>
{/* <Table columns={inquiryGoods} pagination={false} rowKey='id' dataSource={data.inquiryListProductRequests} /> */}
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>{infoTem['freight'].title}</div>
<div className={style['mainCol-rows']}>
<div className={style['mainCol-rows-cols']}>
......@@ -294,8 +294,8 @@ const Details: React.FC<{}> = (props) => {
)}
</div>
</div>
</Card>
<Card className={style.item_wrap}>
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>附件</div>
<div className={style.upload_data}>
{
......@@ -310,11 +310,11 @@ const Details: React.FC<{}> = (props) => {
))
}
</div>
</Card>
<Card className={style.item_wrap}>
</div>
<div className={style.item_wrap}>
<div className={style.mainCol_title}>外部流转记录</div>
<Table columns={flowRecord.external} rowKey='id' pagination={false} dataSource={data.externalRequisitionFormResponses} />
</Card>
</div>
</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