Commit 97fd25a6 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix(询价报价): 修改报价历史接口请求问题

parent fe38770f
...@@ -296,7 +296,7 @@ const InquiryOfferDetail = () => { ...@@ -296,7 +296,7 @@ const InquiryOfferDetail = () => {
return fetchSoure return fetchSoure
} }
const fetchTableData = useCallback((params: any) => { const fetchTableData = (params: any) => {
return new Promise(resolve => { return new Promise(resolve => {
PublicApi.getTransactionProductQuotationHistoryList({ ...params, commoditySkuId }).then(res => { PublicApi.getTransactionProductQuotationHistoryList({ ...params, commoditySkuId }).then(res => {
if (res.code !== 1000) { if (res.code !== 1000) {
...@@ -305,7 +305,7 @@ const InquiryOfferDetail = () => { ...@@ -305,7 +305,7 @@ const InquiryOfferDetail = () => {
resolve(res.data); resolve(res.data);
}) })
}) })
}, [commoditySkuId]) }
return ( return (
<Context.Provider value={dataSource}> <Context.Provider value={dataSource}>
...@@ -367,6 +367,7 @@ const InquiryOfferDetail = () => { ...@@ -367,6 +367,7 @@ const InquiryOfferDetail = () => {
title='历史报价' title='历史报价'
visible={historyVisible} visible={historyVisible}
onClose={() => setHistoryVisible(false)} onClose={() => setHistoryVisible(false)}
destroyOnClose
> >
<StandardTable <StandardTable
columns={hitoryColumns} columns={hitoryColumns}
......
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