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

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

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