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

🐞 fix(采购门户): 修复下载bug

parent 7a1facde
......@@ -111,8 +111,18 @@ const InquirySearch = () => {
key: 'options',
dataIndex: 'options',
render: (_text: any, record: any) => <>
{record.isShowQuote && (
<Button disabled={record.isQuoted === 1} onClick={() => history.push(`/memberCenter/tranactionAbility/inquiryOffer/waitAddOffer/offer?id=${record.id}`)} type='link'>报价</Button>
{(record.isShowQuote && record.isQuoted !== 1) && (
<Button onClick={() => history.push(`/memberCenter/tranactionAbility/inquiryOffer/waitAddOffer/offer?id=${record.id}`)} type='link'>报价</Button>
)}
{(record.isShowQuote && record.isQuoted === 1) && (
<Button
type='link'
onClick={() => Modal.info({
content: '当前询价单商品已报价,请勿重复报价!'
})}
>
报价
</Button>
)}
{(record.isShowSecondInquiry === true) && (
<Button type='link' onClick={() => secondInquiry(record.id, record.inquiryListNo)}>二次询价</Button>
......
......@@ -523,7 +523,7 @@ const PurchasInfo: React.FC<PurchasInfoPropsType> = (props) => {
<div className={styles.upload_left}>
<LinkOutlined style={{ marginRight: '5px' }} />
<Typography.Link
href={`/api/contract/contractTemplate/downloadContract?contractName=${file.albumName}&contractUrl=${file.albumURL}`}
href={`/api/contract/contractTemplate/downloadContract?contractName=${file.albumName}&contractUrl=${file.albumUrl}`}
target="_blank"
>
{file.albumName}
......
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