import React, { useState } from 'react'; import { Table, Button, Space, Form, Radio, Select, Input, InputNumber, Upload } from 'antd'; import { TableListItem } from './data'; import '@/assets/ld_style.less' const { Option } = Select; const { TextArea } = Input; const formItemLayout = { labelCol: { span: 6 }, wrapperCol: { span: 14 }, }; const columns: any[] = [ // 列表数据 { title: '投标人名称', dataIndex: 'name', key: 'name' }, { title: '最新不含税总价', dataIndex: 'price', key: 'price' }, { title: '调整类别', dataIndex: 'type', key: 'type' }, { title: '调价说明', dataIndex: 'explain', key: 'explain' }, { title: '调价附件', dataIndex: 'enclosure', key: 'enclosure' }, ]; const dataSource: TableListItem[] = [ { key: '1', name: '华为技术股份有限公司', price: '300.00', type: '小薇', explain: '9988', enclosure: '' }, { key: '2', name: '中兴通讯股份有限公司', price: '1000.00', type: '小薇', explain: '9988', enclosure: '' }, ]; const Index: React.FC<{}> = () => { const [dateList] = useState(dataSource); const [adjustForm] = Form.useForm(); const onSelectChange = (selectedRowKeys, selectedRows) => { // 单选中回执列表数据 console.log(selectedRowKeys) console.log(selectedRows[0].price) adjustForm.setFieldsValue({ adjust: selectedRows[0].price }); } const formOnFinish = (data: any) => { console.log(data); } const normFile = (e: any) => { console.log('Upload event:', e); if (Array.isArray(e)) { return e; } return e && e.fileList; } return ( <>