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

🐞fix: 修改报价轮次问题

parent f60b8ef0
......@@ -107,7 +107,7 @@ const ToComparePrices = () => {
record.confirmInteriorState === OFFTER_CONFIRMINTERNALSTATE_TYPE.AUDITNOPASS2_TYPE
) && <Button type='link'>修改授标结果</Button>
}
<Button type='link' onClick={() => history.push(`/memberCenter/procurementAbility/confirmOffer/preview?id=${record.id}&turn=${record.turn}`)}>查看</Button>
<Button type='link' onClick={() => history.push(`/memberCenter/procurementAbility/confirmOffer/toComparePrices/preview?id=${record.id}&turn=${record.turn}`)}>查看</Button>
</>
}];
......
......@@ -208,18 +208,22 @@ const OfferInfo: React.FC<IProps> = (props: any) => {
current: '1',
pageSize: '100',
}
const param = { ...data };
if (name === 'quote') {
param[index] = fetchdata.materiels;
setData({ ...param });
} else {
PublicApi.getPurchaseQuotedPriceMaterielDetailed({ ...params }).then((res: any) => {
if (res.code !== 1000) {
return
}
const param = { ...data };
param[index] = [...res.data.data];
console.log(param, 10086)
setData({ ...param });
setDataSource(res.data.data)
})
}
}
useEffect(() => {
if (fetchdata.id) {
const isTurn = fetchdata.count ? fetchdata.count : 1;
......@@ -259,7 +263,7 @@ const OfferInfo: React.FC<IProps> = (props: any) => {
productId: item.productId,
goodsId: item.goodsId,
productBrand: item.productBrand,
productAttributeJson: item.productAttributeJson,
productAttributeJson: `${item.productAttributeJson}-${item.customerCategoryName}`,
})
})
resolve({
......
......@@ -114,6 +114,8 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
setFiles(arr);
}
console.log(record, 10086)
return (
<>
<Drawer
......
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