12-23-上传master

This commit is contained in:
xingsy
2020-12-23 11:14:35 +08:00
parent 9769f83bc8
commit b42e0c1ddd
553 changed files with 56506 additions and 0 deletions

View 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