import { Modal, Table } from 'antd'; import type { ProColumns } from '@ant-design/pro-components'; import { ProDescriptions } from '@ant-design/pro-components'; import React, { useEffect } from 'react'; export type StorageFormProps = { onCancel: (flag?: boolean, formVals?: unknown) => void; open: boolean; values?: Partial; }; const ViewStorageDetail: React.FC = (props) => { const detailColumns: ProColumns[] = [ // { // title: '详情ID', // dataIndex: 'detailId', // key: 'detailId', // width: 80, // ellipsis: true, // }, { title: '入库来源网站名称', dataIndex: 'websiteName', key: 'websiteName', width: 150, }, { title: '入库成功数量', dataIndex: 'successNumber', key: 'successNumber', width: 120, align: 'center', }, { title: '入库失败数量', dataIndex: 'failedNumber', key: 'failedNumber', width: 120, align: 'center', }, { title: '入库数据详情', dataIndex: 'storageDetail', key: 'storageDetail', width: 200, ellipsis: true, }, { title: '入库具体时间', dataIndex: 'storageTime', key: 'storageTime', width: 180, }, ]; const handleCancel = () => { props.onCancel(); }; return ( {/* 基本信息 */}

基本信息

column={2} dataSource={props.values || {}} bordered > {/* */}
{/* 入库数据来源详情列表 */}

入库数据来源详情

columns={detailColumns} dataSource={props.values?.details || []} rowKey="detailId" pagination={false} bordered size="middle" scroll={{ x: 800 }} />
); }; export default ViewStorageDetail;