年审任务和评价任务,新增修改查看时,供应商部门回显问题
This commit is contained in:
@ -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' }),
|
||||
|
@ -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' }),
|
||||
|
Reference in New Issue
Block a user