年审任务和评价任务,新增修改查看时,供应商部门回显问题

This commit is contained in:
linxd
2025-08-07 09:11:21 +08:00
parent 6b85502a52
commit edad9b2cab
6 changed files with 113 additions and 49 deletions

View File

@ -61,8 +61,19 @@ const SupplierInfo: React.FC<SupplierInfoProps> = ({ taskData, onViewEvaluators
},
{
title: intl.formatMessage({ id: 'supplierTaskManage.column.deptName' }),
dataIndex: 'deptName',
key: 'deptName',
dataIndex: 'orgNameList',
key: 'orgNameList',
render: (orgNameList: SupplierTaskManage.SupplierOrgNameList[]) => (
<>
{orgNameList && orgNameList.length > 0 ? (
<Tooltip placement="topLeft" title={orgNameList.map((item) => item.deptName).join(',')}>
{orgNameList[0].deptName}
</Tooltip>
) : (
'-'
)}
</>
),
},
{
title: intl.formatMessage({ id: 'supplierTaskManage.column.categoryName' }),

View File

@ -2,6 +2,7 @@ import React, { useEffect } from 'react';
import { Table, Space, Button, Tag, Modal, Tooltip } from 'antd';
import { useIntl } from 'umi';
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
import { render } from 'react-dom';
interface SupplierTableProps {
suppliers: SupplierTaskManage.SupplierItem[]; // 供应商数据列表
@ -38,8 +39,8 @@ const SupplierTable: React.FC<SupplierTableProps> = ({
{ id: 'supplierTaskManage.modal.deleteSupplier.content' },
{
name: record.supplierName,
evaluatorCount: record.evaluatorCount || 0
}
evaluatorCount: record.evaluatorCount || 0,
},
),
okText: intl.formatMessage({ id: 'supplierTaskManage.button.confirm' }),
okType: 'danger',
@ -80,9 +81,20 @@ const SupplierTable: React.FC<SupplierTableProps> = ({
},
{
title: intl.formatMessage({ id: 'supplierTaskManage.column.deptName' }),
dataIndex: 'deptName',
key: 'deptName',
dataIndex: 'orgNameList',
key: 'orgNameList',
ellipsis: true,
render: (orgNameList: SupplierTaskManage.SupplierOrgNameList[]) => (
<>
{orgNameList && orgNameList.length > 0 ? (
<Tooltip placement="topLeft" title={orgNameList.map((item) => item.deptName).join(',')}>
{orgNameList[0].deptName}
</Tooltip>
) : (
'-'
)}
</>
),
},
{
title: intl.formatMessage({ id: 'supplierTaskManage.column.evaluatorCount' }),