Commit 8b534aa6 authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 处理招投标详情状态

parent ee3581ab
......@@ -220,7 +220,7 @@ const AddRemarkBidExpert:React.FC<AddRemarkBidExpertProps> = (props) => {
placeholder: '请输入所属机构'
},
},
roleName: {
jobTitle: {
type: 'string',
'x-component-props': {
placeholder: '请输入职位'
......
......@@ -23,7 +23,7 @@ export interface ReadyAddBidProps {}
const fetchTableData = async (params) => {
const { data } = await PublicApi.postPurchaseInviteTenderGetInviteTenderList({
...params,
inviteTenderOutStatusList: [BidOuterWorkState.Submitted_Invite_Tender, BidOuterWorkState.Platform_Not_Check_Invite_Tender],
inviteTenderOutStatusList: [BidOuterWorkState.Submitted_Invite_Tender, BidOuterWorkState.Platform_Not_Check_Invite_Tender, BidOuterWorkState.Platform_Check_Not_Pass],
inviteTenderInStatusList: [BidInsideWorkState.Not_Submitted_Check_Invite_Tender, BidInsideWorkState.Tender_Check_Not_Pass]
}, { ctlType: "none" })
return data
......
import React, { useContext, useEffect, useRef, useState } from 'react'
import { Table, Button, Radio, Row, Col, message } from 'antd'
import MellowCard from '@/components/MellowCard'
import { UserOutlined, DeleteOutlined } from '@ant-design/icons';
import { UserOutlined, DeleteOutlined, FileFilled } from '@ant-design/icons';
import style from './index.less'
import imgLink from '@/assets/imgs/default_avatar.png'
import level1 from '@/assets/imgs/rank1.png'
......@@ -293,7 +293,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
<Col span={4}><p className={style['card-list_title']}>附件:</p></Col>
<Col>
{
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}></a>{item.name}</p>)) : null
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}><FileFilled /> {item.name}</a></p>)) : null
}
</Col>
</Row>
......
import React, { useContext, useEffect, useRef, useState } from 'react'
import { Table, Button, Radio, Row, Col, message } from 'antd'
import MellowCard from '@/components/MellowCard'
import { UserOutlined, DeleteOutlined } from '@ant-design/icons';
import { UserOutlined, DeleteOutlined, FileFilled } from '@ant-design/icons';
import style from './index.less'
import imgLink from '@/assets/imgs/default_avatar.png'
import level1 from '@/assets/imgs/rank1.png'
......@@ -293,7 +293,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
<Col span={4}><p className={style['card-list_title']}>附件:</p></Col>
<Col>
{
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}></a>{item.name}</p>)) : null
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}><FileFilled /> {item.name}</a></p>)) : null
}
</Col>
</Row>
......
import React, { useContext, useEffect, useRef, useState } from 'react'
import { Table, Button, Radio, Row, Col, message } from 'antd'
import MellowCard from '@/components/MellowCard'
import { UserOutlined, DeleteOutlined } from '@ant-design/icons';
import { UserOutlined, DeleteOutlined, FileFilled } from '@ant-design/icons';
import style from './index.less'
import imgLink from '@/assets/imgs/default_avatar.png'
import level1 from '@/assets/imgs/rank1.png'
......@@ -293,7 +293,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
<Col span={4}><p className={style['card-list_title']}>附件:</p></Col>
<Col>
{
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}></a>{item.name}</p>)) : null
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}><FileFilled /> {item.name}</a></p>)) : null
}
</Col>
</Row>
......
import React, { useContext, useEffect, useRef, useState } from 'react'
import { Table, Button, Radio, Row, Col, message } from 'antd'
import MellowCard from '@/components/MellowCard'
import { UserOutlined, DeleteOutlined } from '@ant-design/icons';
import { UserOutlined, DeleteOutlined, FileFilled } from '@ant-design/icons';
import style from './index.less'
import imgLink from '@/assets/imgs/default_avatar.png'
import level1 from '@/assets/imgs/rank1.png'
......@@ -293,7 +293,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
<Col span={4}><p className={style['card-list_title']}>附件:</p></Col>
<Col>
{
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}></a>{item.name}</p>)) : null
data?.evaluationTenderFile.length ? data.evaluationTenderFile.map(item => (<p key={item.id}><a href={item.url}><FileFilled /> {item.name}</a></p>)) : null
}
</Col>
</Row>
......
......@@ -347,7 +347,7 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
const result = _data.isWin
const sumPrice = _data?.submitTender ? _data.submitTender.submitTenderMateriel.reduce((a, b) => a + b.price * b.inviteTenderMateriel.count, 0) : 0
const alreadyPay = _data?.submitTender ? _data.submitTender.submitTenderMateriel.reduce((a, b) => a + b.price * b.inviteTenderMateriel.count * b.awardTenderRatio/100, 0) : 0
console.log(sumPrice, alreadyPay, 'aaa')
const bidResultList = [
{
span: 8,
......@@ -464,7 +464,6 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
{ type: '已支付', value: alreadyPay, percent: Math.round(alreadyPay / sumPrice)/ 100.00 }
];
console.log(userData, 'ggg')
return <Chart placeholder={false} height={64} width={64} style={{position: "relative"}} autoFit>
<Legend visible={false} />
{/* 绘制图形 */}
......@@ -492,7 +491,7 @@ const DescriptionsInfo: React.FC<BasicInfoProps> = ({cardTitle, type}) => {
{
fieldList.length ? fieldList.map((_v, _i) => <Row key={_v.name} className={style['card-list']} style={_v.rowStyle}>
{_v?.noTitle ? null : <Col span={6} className={style['card-list_title']}>{_v.title}</Col>}
<Col>{_v.render ? _v.render(dataSource[_v.name], dataSource) : dataSource[_v.name]}</Col>
<Col><p style={{paddingRight: 20}}>{_v.render ? _v.render(dataSource[_v.name], dataSource) : dataSource[_v.name]}</p></Col>
</Row>) : null
}
</Col>))
......
import React, { useContext, useEffect, useRef, useState } from 'react'
import { Table, Button, Radio, Row, Col, message } from 'antd'
import MellowCard from '@/components/MellowCard'
import { UserOutlined, DeleteOutlined } from '@ant-design/icons';
import { UserOutlined, DeleteOutlined, FileFilled } from '@ant-design/icons';
import style from './index.less'
import imgLink from '@/assets/imgs/default_avatar.png'
import level1 from '@/assets/imgs/rank1.png'
......@@ -294,7 +294,7 @@ const RemarkBidReport: React.FC<RemarkBidReportProps> = ({cardTitle}) => {
<Col span={4}><p className={style['card-list_title']}>附件:</p></Col>
<Col>
{
data?.evaluationFile.length ? data.evaluationFile.map(item => (<p key={item.id}><a href={item.url}>{item.name}</a></p>)) : null
data?.evaluationFile.length ? data.evaluationFile.map(item => (<p key={item.id}><a href={item.url}><FileFilled /> {item.name}</a></p>)) : null
}
</Col>
</Row>
......
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