评价结果和评价打分(按评价任务)列表接口增加参数selectBy

This commit is contained in:
linxd
2025-07-16 16:38:19 +08:00
parent fdd55a9036
commit 40839aadc8
9 changed files with 35 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import React from 'react';
import { Table, Space, Button, Modal, Tooltip } from 'antd';
import { useIntl, FormattedMessage } from 'umi';
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
interface SupplierTableProps {
suppliers: supplierAnnualTaskManage.SupplierItem[]; // 供应商数据列表
@ -22,7 +23,7 @@ const SupplierTable: React.FC<SupplierTableProps> = ({
mode,
}) => {
const intl = useIntl();
const supplierDetailModal = useSupplierDetailModal();
// 表格行选择配置
const rowSelection = {
selectedRowKeys,
@ -62,16 +63,24 @@ const SupplierTable: React.FC<SupplierTableProps> = ({
title: <FormattedMessage id="supplierAnnualTaskManage.supplierTable.supplierName" />,
dataIndex: 'supplierName',
key: 'supplierName',
ellipsis: true,
render: (supplierName: string, record: supplierAnnualTaskManage.SupplierItem) => (
<Tooltip placement="topLeft" title={supplierName}>
<a onClick={() => supplierDetailModal?.(record.id)}>{supplierName}</a>
</Tooltip>
),
},
{
title: <FormattedMessage id="supplierAnnualTaskManage.supplierTable.socialCreditCode" />,
dataIndex: 'socialCreditCode',
key: 'socialCreditCode',
ellipsis: true,
},
{
title: <FormattedMessage id="supplierAnnualTaskManage.supplierTable.categoryName" />,
dataIndex: 'categoryName',
key: 'categoryName',
ellipsis: true,
render: (categoryName: string) => (
<Tooltip placement="topLeft" title={categoryName}>
{categoryName || '-'}
@ -82,16 +91,19 @@ const SupplierTable: React.FC<SupplierTableProps> = ({
title: <FormattedMessage id="supplierAnnualTaskManage.supplierTable.deptName" />,
dataIndex: 'deptName',
key: 'deptName',
ellipsis: true,
},
{
title: <FormattedMessage id="supplierAnnualTaskManage.supplierTable.evaluatorCount" />,
align: 'center' as const,
dataIndex: 'evaluatorCount',
key: 'evaluatorCount',
},
{
title: <FormattedMessage id="supplierAnnualTaskManage.supplierTable.action" />,
key: 'action',
width: 250,
align: 'center' as const,
ellipsis: true,
render: (_: any, record: supplierAnnualTaskManage.SupplierItem) => (
<Space>
<Button