import React from 'react'; import { Card, Table, Button, message } from 'antd'; import styles from '../../supplierAnnualTaskManageDetail.less'; interface SupplierInfoProps { taskData: supplierAnnualTaskManage.TaskDetailData; onViewEvaluators: (supplier: any) => void; } const SupplierInfo: React.FC = ({ taskData, onViewEvaluators }) => { // 查看供应商评价人员 const handleViewSupplierEvaluators = (record: supplierAnnualTaskManage.TaskDetailData) => { if (record.userList && record.userList.length > 0) { onViewEvaluators({ ...record, userList: record.userList, }); } else { message.error('未找到该供应商的年审人员信息'); } }; const columns = [ { title: '序号', dataIndex: 'index', key: 'index', render: (_: any, __: any, index: number) => index + 1, width: 80, }, { title: '供应商名称', dataIndex: 'supplierName', key: 'supplierName', }, { title: '部门', dataIndex: 'deptName', key: 'deptName', }, { title: '品类', dataIndex: 'categoryName', key: 'categoryName', render: (text: string) => text || '--', }, { title: '操作', key: 'action', render: (record: any) => ( ), }, ]; if (!taskData || !taskData.blackSupplierVos || taskData.blackSupplierVos.length === 0) { return
暂无供应商数据
; } return ( ); }; export default SupplierInfo;