Commit 8fe78b9a authored by 卢均锐's avatar 卢均锐

feat: 在线竞价&采购竞价详情调整

parent 5368354a
...@@ -15,7 +15,6 @@ import BidCommonLayout from '../../components/detail/components/bidCommonLayout' ...@@ -15,7 +15,6 @@ import BidCommonLayout from '../../components/detail/components/bidCommonLayout'
import TableCommonLayout from '../../components/detail/components/tableCommonLayout'; import TableCommonLayout from '../../components/detail/components/tableCommonLayout';
import LowestQuotationRecordLayout from '../../components/detail/components/lowestQuotationRecordLayout'; import LowestQuotationRecordLayout from '../../components/detail/components/lowestQuotationRecordLayout';
import BidProgressDrawer from '../../components/detail/components/bidProgressDrawer'; import BidProgressDrawer from '../../components/detail/components/bidProgressDrawer';
import QuotationDetailsDrawer from '../../components/detail/components/quotationDetailsDrawer';
import ThankModal from './components/thank'; import ThankModal from './components/thank';
...@@ -55,12 +54,10 @@ const SearchDetail = () => { ...@@ -55,12 +54,10 @@ const SearchDetail = () => {
} = history.location; } = history.location;
const [path] = useState(pathname.split('/')[pathname.split('/').length - 1]); const [path] = useState(pathname.split('/')[pathname.split('/').length - 1]);
const [pathPci] = useState(pathname.split('/')[pathname.split('/').length - 2]); const [pathPci] = useState(pathname.split('/')[pathname.split('/').length - 2]);
// 报价明细
const [quotationDetailsVisible, setQuotationDetailsVisible] = useState<boolean>(false);
const [quotationDetailsId, setQuotationDetailsId] = useState<number>();
// 竞价过程 // 竞价过程
const [progressVisible, setProgressVisible] = useState<boolean>(false); const [progressVisible, setProgressVisible] = useState<boolean>(false);
const [progressData, setProgressData] = useState<any>([]); const [progressData, setProgressData] = useState<any>([]);
// 详情数据
const [dataSource, setDataSource] = useState<any>({}); const [dataSource, setDataSource] = useState<any>({});
// 流转数据数据 // 流转数据数据
const [progressEffect, setProgressEffect] = useState<any>([]); const [progressEffect, setProgressEffect] = useState<any>([]);
...@@ -74,8 +71,7 @@ const SearchDetail = () => { ...@@ -74,8 +71,7 @@ const SearchDetail = () => {
const [signUpEffect, setSignUpEffect] = useState<any>([]); const [signUpEffect, setSignUpEffect] = useState<any>([]);
// 交易条件 // 交易条件
const [conditionEffect, setConditionEffect] = useState<any>([]); const [conditionEffect, setConditionEffect] = useState<any>([]);
// 授标结果 // 感谢函
const [awardResult, setAwardResult] = useState<any>({});
const [thankVisAble, seTthankVisAble] = useState<boolean>(false); const [thankVisAble, seTthankVisAble] = useState<boolean>(false);
...@@ -117,7 +113,7 @@ const SearchDetail = () => { ...@@ -117,7 +113,7 @@ const SearchDetail = () => {
setResultEffect([ setResultEffect([
{ {
col: [ col: [
{ label: '中标金额(含税)', extra: priceFormat(data?.sumAwardPrice), type: 'text' }, { label: '中标金额(含税)', extra: data?.sumAwardPrice ? priceFormat(data?.sumAwardPrice) : '-', type: 'text' },
{ label: '中标理由', extra: '价格最低', type: 'text' }, { label: '中标理由', extra: '价格最低', type: 'text' },
] ]
}, },
...@@ -194,15 +190,6 @@ const SearchDetail = () => { ...@@ -194,15 +190,6 @@ const SearchDetail = () => {
]) ])
} }
const handleAwardResult = (data: any) => {
setAwardResult(
{
list: data.awardsFruits || [],
signUpIdea: data.signUpIdea
}
)
}
const fetchDataSource = async () => { const fetchDataSource = async () => {
const params = { const params = {
id, id,
...@@ -222,9 +209,8 @@ const SearchDetail = () => { ...@@ -222,9 +209,8 @@ const SearchDetail = () => {
handleRulesEffect(data); handleRulesEffect(data);
handleSignUpEffect(data); handleSignUpEffect(data);
handleConditionEffect(data); handleConditionEffect(data);
// handleAwardResult(data)
handleResultEffect(data); handleResultEffect(data);
if (data.externalState === 999 && isPrize !== 0 && isPrize) { if (data.externalState === 99 && isPrize != 1 && isPrize) {
seTthankVisAble(true) seTthankVisAble(true)
} }
}) })
...@@ -310,12 +296,6 @@ const SearchDetail = () => { ...@@ -310,12 +296,6 @@ const SearchDetail = () => {
) )
} }
const _openQuotationDetailsDrawer = (id: number) => {
setQuotationDetailsId(id);
setQuotationDetailsVisible(true);
}
return ( return (
<Context.Provider value={dataSource}> <Context.Provider value={dataSource}>
...@@ -343,15 +323,6 @@ const SearchDetail = () => { ...@@ -343,15 +323,6 @@ const SearchDetail = () => {
visible={progressVisible} visible={progressVisible}
onClose={() => { setProgressVisible(false) }} onClose={() => { setProgressVisible(false) }}
/> />
<QuotationDetailsDrawer
fetch={PublicApi.getPurchaseBiddingQuotedPriceDetaild}
quotationDetailsId={quotationDetailsId}
number={number}
effects='id'
title="报价明细"
visible={quotationDetailsVisible}
onClose={() => setQuotationDetailsVisible(false)}
/>
<ThankModal <ThankModal
visible={thankVisAble} visible={thankVisAble}
detail={dataSource} detail={dataSource}
......
...@@ -240,7 +240,7 @@ const SearchDetail = () => { ...@@ -240,7 +240,7 @@ const SearchDetail = () => {
pageSize: '1' pageSize: '1'
} }
const _fetch = pathPci === 'readySubmitExaminResult' ? PublicApi.getPurchaseBiddingStaySubmitDetails : PublicApi.getPurchaseBiddingDetails const _fetch = pathPci === 'readySubmitExamineResult' ? PublicApi.getPurchaseBiddingStaySubmitDetails : PublicApi.getPurchaseBiddingDetails
await _fetch({ ...params }).then(res => { await _fetch({ ...params }).then(res => {
if (res.code !== 1000) { if (res.code !== 1000) {
......
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