12-23-上传master
This commit is contained in:
169
src/pages/Calibration/BidAssessmentResults/index.tsx
Normal file
169
src/pages/Calibration/BidAssessmentResults/index.tsx
Normal file
@ -0,0 +1,169 @@
|
||||
import React, {useEffect, useState} from 'react';
|
||||
import {Button, Card, Collapse, Divider, List} from "antd";
|
||||
import style from "@/pages/BiddingAnnouncement/components/style.less";
|
||||
import ProTable from "@ant-design/pro-table";
|
||||
import {DownloadOutlined, UnorderedListOutlined} from "@ant-design/icons/lib";
|
||||
import {getBidAssessmentResultsList} from "./service"
|
||||
|
||||
interface BiddingDocumentsDecryptProps {
|
||||
projectId: "1331563848498413568";/*?项目id*/
|
||||
}
|
||||
|
||||
const BidAssessmentResults: React.FC<BiddingDocumentsDecryptProps> = (props) => {
|
||||
const [pageloading, setPageloading] = useState<boolean>(false);
|
||||
const [ListData, setListData] = useState<any>();
|
||||
const [activeKey, setActiveKey] = useState<any>([]);
|
||||
|
||||
const columns: any = [
|
||||
{
|
||||
title: '排名',
|
||||
dataIndex: 'xuhao',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '供应商名称',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '报价(元)',
|
||||
dataIndex: 'xuhao',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '评审价(元)',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '商务分',
|
||||
dataIndex: 'xuhao',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '技术分',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '服务分',
|
||||
dataIndex: 'xuhao',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '价格分',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '综合得分',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '拟签约金额(不含增值税)(元)',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '增值税金额(元)',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '是否中标候选人',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '是否通过初步评审',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
dataIndex: 'mingcheng',
|
||||
valueType: 'index'
|
||||
},
|
||||
|
||||
]
|
||||
const data: any = [
|
||||
{
|
||||
mingcheng: "ddddd",
|
||||
},
|
||||
{
|
||||
mingcheng: "ssss",
|
||||
}
|
||||
|
||||
]
|
||||
const changeActiveKey=(param:string)=>{
|
||||
console.log(activeKey);
|
||||
|
||||
let arr=activeKey.concat();
|
||||
|
||||
if(arr.indexOf(param) > -1){
|
||||
arr.splice(arr.indexOf(param), 1);
|
||||
} else{
|
||||
arr.push(param);
|
||||
}
|
||||
setActiveKey([...arr]);
|
||||
|
||||
}
|
||||
useEffect(()=>{
|
||||
getBidAssessmentResultsList("1111111").then(res=>{
|
||||
console.log(res)
|
||||
})
|
||||
},[props.projectId])
|
||||
|
||||
const {Panel} = Collapse;
|
||||
|
||||
return (
|
||||
<>
|
||||
<List
|
||||
grid={{
|
||||
gutter: 16,
|
||||
xs: 1,
|
||||
sm: 1,
|
||||
md: 1,
|
||||
lg: 1,
|
||||
xl: 1,
|
||||
xxl: 1,
|
||||
}}
|
||||
itemLayout="vertical"
|
||||
dataSource={[{"pdid": "11"}, {"pdid": "22"}]}
|
||||
renderItem={item => (
|
||||
<List.Item>
|
||||
<Card
|
||||
title={"标段名-第几次评审"}
|
||||
extra={
|
||||
<>
|
||||
<Button type="primary"> 推送评标结果 </Button>
|
||||
<Button> 推送列表</Button>
|
||||
<Button onClick={() => changeActiveKey(item.pdid)}> 展开/折叠</Button>
|
||||
</>
|
||||
}
|
||||
>
|
||||
<Collapse
|
||||
activeKey={activeKey}
|
||||
bordered={false}
|
||||
ghost={true}
|
||||
>
|
||||
<Panel
|
||||
header={""} showArrow={false} key={item.pdid}>
|
||||
<ProTable
|
||||
loading={pageloading}
|
||||
search={false}
|
||||
options={false}
|
||||
columns={columns}
|
||||
dataSource={data}
|
||||
/>
|
||||
</Panel>
|
||||
</Collapse>
|
||||
</Card>
|
||||
</List.Item>
|
||||
)}
|
||||
/>
|
||||
</>
|
||||
)
|
||||
}
|
||||
export default BidAssessmentResults
|
Reference in New Issue
Block a user