Commit 5c25b3bb authored by shenshaokai's avatar shenshaokai

fix: 合同详情页-附件区分供应商和采购商

parent 85b9c50a
......@@ -107,7 +107,7 @@ const PaymentCard: React.FC<Iprops> = ({
<div className='ant-card-head-wrapper'>
{title ? title : intl.formatMessage({id: 'contract.fukuanjihua'})}
</div>
{oldPayPlanList.length &&
{oldPayPlanList?.length &&
!isEqual(handlePayPlanList(payPlanList), handlePayPlanList(oldPayPlanList)) ? (
<div className={style.changeBtn}>
<div
......
......@@ -274,7 +274,7 @@ const Details = (props: any) => {
setOldPayPlanList(oldContractManageDetailVO?.payPlanList)
}
}).catch((err) => {
console.log("错误??",err)
console.log("错误??", err)
});
}
useEffect(() => {
......@@ -722,16 +722,20 @@ const Details = (props: any) => {
isContractNew
? contractText?.contractName
: oldContractCoordinationDetailVOData?.contractText?.contractName
) ? <div className={style.upload_item} style={{ width: 680 }}>
) ?
<>
<div className={style.upload_item} style={{ width: 680 }}>
<div className='ant-card-head-wrapper'>
{contractText.isUseElectronicContract != 1 ? intl.formatMessage({ id: 'contract.zhizhihetong' }) : intl.formatMessage({ id: 'contract.dianzihetong' })}
</div>
<FileHt contractText={isContractNew
? contractText?.contractName
: oldContractCoordinationDetailVOData?.contractText?.contractName} name_='contractName' url_='contractUrl' />
</div>
<div className={style.upload_item} style={{ width: 680 }}>
<div className='ant-card-head-wrapper'>
附件
附件(供应商)
</div>
<div>
{
......@@ -742,8 +746,20 @@ const Details = (props: any) => {
</div>
</div>
<div className={style.upload_item} style={{ width: 680 }}>
<div className='ant-card-head-wrapper'>
附件(采购商)
</div>
<div>
{
FileFj(isContractNew
? contractText?.buyerContractLis
: oldContractCoordinationDetailVOData?.contractText?.buyerContractLis)
}
</div>
</div>
</>
: null}
</div>
......
......@@ -782,7 +782,7 @@ const Details = (props: any) => {
<div className={style.upload_item} style={{ width: 680 }}>
<div className='ant-card-head-wrapper'>
附件
附件(供应商)
</div>
<div>
{
......@@ -792,6 +792,18 @@ const Details = (props: any) => {
}
</div>
</div>
<div className={style.upload_item} style={{ width: 680 }}>
<div className='ant-card-head-wrapper'>
附件(采购商)
</div>
<div>
{
FileFj(isContractNew
? contractText.buyerContractLis
: oldContractText?.buyerContractLis)
}
</div>
</div>
</>
) : null}
......
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