修改供应商弹框样式
This commit is contained in:
@ -251,7 +251,7 @@ const SupplierSelector: React.FC<SupplierSelectorProps> = ({
|
|||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
render: (supplierName: string, record: SupplierItem) => (
|
render: (supplierName: string, record: SupplierItem) => (
|
||||||
<Tooltip placement="topLeft" title={supplierName}>
|
<Tooltip placement="topLeft" title={supplierName}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.id)}>{supplierName}</Button>
|
<a onClick={() => supplierDetailModal?.(record.id)}>{supplierName}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -117,7 +117,7 @@ const SupplierAnnualStatistics: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (text: string, record: DataStatistics.AnnualReviewStatisticsRecord) => (
|
render: (text: string, record: DataStatistics.AnnualReviewStatisticsRecord) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -129,7 +129,7 @@ const SupplierAnnualStatistics: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (text: string, record: DataStatistics.AnnualReviewStatisticsRecord) => (
|
render: (text: string, record: DataStatistics.AnnualReviewStatisticsRecord) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -149,7 +149,7 @@ const SupplierEvaluateStatistics: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (text: string, record: DataStatistics.EvaluateStatisticsRecord) => (
|
render: (text: string, record: DataStatistics.EvaluateStatisticsRecord) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.id)}>{text}</Button>
|
<a onClick={() => supplierDetailModal?.(record.id)}>{text}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -121,7 +121,7 @@ const SupplierExitStatistics: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (text: string, record: DataStatistics.ExitStatisticsRecord) => (
|
render: (text: string, record: DataStatistics.ExitStatisticsRecord) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -149,7 +149,7 @@ const SupplierQualificationWarningStatistics: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (text: string, record: DataStatistics.QualificationExpireRecord) => (
|
render: (text: string, record: DataStatistics.QualificationExpireRecord) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -135,7 +135,7 @@ const SupplierAnnualResultDetail: React.FC = () => {
|
|||||||
<Card title={intl.formatMessage({ id: 'supplierAnnualResult.detail.basicInfo' })} bordered={false} className={styles['detail-card']}>
|
<Card title={intl.formatMessage({ id: 'supplierAnnualResult.detail.basicInfo' })} bordered={false} className={styles['detail-card']}>
|
||||||
<Descriptions column={2} bordered>
|
<Descriptions column={2} bordered>
|
||||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualResult.detail.supplierName' })}>
|
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualResult.detail.supplierName' })}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{supplierName || reviewDetail.name}</Button>
|
<a onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{supplierName || reviewDetail.name}</a>
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualResult.detail.annualTheme' })}>
|
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualResult.detail.annualTheme' })}>
|
||||||
{annualTheme}
|
{annualTheme}
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
Select,
|
Select,
|
||||||
Typography,
|
Typography,
|
||||||
DatePicker,
|
DatePicker,
|
||||||
|
Tooltip,
|
||||||
} from 'antd';
|
} from 'antd';
|
||||||
import { ArrowLeftOutlined, SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
import { ArrowLeftOutlined, SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||||
import { getAnnualResultSupplierList } from '@/servers/api/supplierAnnual';
|
import { getAnnualResultSupplierList } from '@/servers/api/supplierAnnual';
|
||||||
@ -165,7 +166,9 @@ const SupplierAnnualResultQuery: React.FC = () => {
|
|||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
render: (text: string, record: supplierAnnualResult.SupplierRecord) => (
|
render: (text: string, record: supplierAnnualResult.SupplierRecord) => (
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -11,7 +11,8 @@ import {
|
|||||||
Select,
|
Select,
|
||||||
Typography,
|
Typography,
|
||||||
Tag,
|
Tag,
|
||||||
DatePicker
|
DatePicker,
|
||||||
|
Tooltip,
|
||||||
} from 'antd';
|
} from 'antd';
|
||||||
import { ArrowLeftOutlined, SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
import { ArrowLeftOutlined, SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||||
import { getAnnualResultReviewList } from '@/servers/api/supplierAnnual';
|
import { getAnnualResultReviewList } from '@/servers/api/supplierAnnual';
|
||||||
@ -187,7 +188,9 @@ const SupplierAnnualResultQuery2: React.FC = () => {
|
|||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
render: (text: string, record: supplierAnnualResult.ReviewRecord) => (
|
render: (text: string, record: supplierAnnualResult.ReviewRecord) => (
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -185,7 +185,7 @@ const SupplierAnnualReview: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (text: string, record: supplierAnnualReview.ReviewRecord) => (
|
render: (text: string, record: supplierAnnualReview.ReviewRecord) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -189,7 +189,7 @@ const SupplierAnnualReviewScore: React.FC = () => {
|
|||||||
{reviewDetail.annualreviewTheme}
|
{reviewDetail.annualreviewTheme}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.supplierName' })}>
|
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.supplierName' })}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</Button>
|
<a onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</a>
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.department' })}>
|
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.department' })}>
|
||||||
{reviewDetail.deptName || '-'}
|
{reviewDetail.deptName || '-'}
|
||||||
|
@ -153,7 +153,7 @@ const SupplierAnnualReviewDetail: React.FC = () => {
|
|||||||
{reviewDetail.annualreviewTheme}
|
{reviewDetail.annualreviewTheme}
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.supplierName' })}>
|
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.supplierName' })}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</Button>
|
<a onClick={() => supplierDetailModal?.(reviewDetail.supplierId)}>{reviewDetail.name}</a>
|
||||||
</Descriptions.Item>
|
</Descriptions.Item>
|
||||||
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.department' })}>
|
<Descriptions.Item label={intl.formatMessage({ id: 'supplierAnnualReview.list.department' })}>
|
||||||
{reviewDetail.deptName || '-'}
|
{reviewDetail.deptName || '-'}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Card, Table, Button, message } from 'antd';
|
import { Card, Table, Button, message, Tooltip } from 'antd';
|
||||||
import { useIntl, FormattedMessage } from 'umi';
|
import { useIntl, FormattedMessage } from 'umi';
|
||||||
import styles from '../../supplierAnnualTaskManageDetail.less';
|
import styles from '../../supplierAnnualTaskManageDetail.less';
|
||||||
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
||||||
@ -37,7 +37,9 @@ const SupplierInfo: React.FC<SupplierInfoProps> = ({ taskData, onViewEvaluators
|
|||||||
dataIndex: 'supplierName',
|
dataIndex: 'supplierName',
|
||||||
key: 'supplierName',
|
key: 'supplierName',
|
||||||
render: (text: string, record: any) => (
|
render: (text: string, record: any) => (
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -205,7 +205,7 @@ const SupplierEvaluateResultInfo: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (supplierName: string, record: SupplierEvaluateResult.EvaluateSupplierItem) => (
|
render: (supplierName: string, record: SupplierEvaluateResult.EvaluateSupplierItem) => (
|
||||||
<Tooltip placement="topLeft" title={supplierName}>
|
<Tooltip placement="topLeft" title={supplierName}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{supplierName}</Button>
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{supplierName}</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -210,9 +210,9 @@ const SupplierEvaluateResultScoreByList: React.FC = () => {
|
|||||||
},
|
},
|
||||||
render: (supplierName: string, rowData: SupplierEvaluateResult.ScoreDataItem) => (
|
render: (supplierName: string, rowData: SupplierEvaluateResult.ScoreDataItem) => (
|
||||||
<Tooltip placement="topLeft" title={supplierName}>
|
<Tooltip placement="topLeft" title={supplierName}>
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(rowData.supplierId)}>
|
<a onClick={() => supplierDetailModal?.(rowData.supplierId)}>
|
||||||
{supplierName}
|
{supplierName}
|
||||||
</Button>
|
</a>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
@ -11,6 +11,7 @@ import {
|
|||||||
DatePicker,
|
DatePicker,
|
||||||
Select,
|
Select,
|
||||||
Table,
|
Table,
|
||||||
|
Tooltip,
|
||||||
} from 'antd';
|
} from 'antd';
|
||||||
import { SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
import { SearchOutlined, DeleteOutlined } from '@ant-design/icons';
|
||||||
import { history, useIntl } from 'umi';
|
import { history, useIntl } from 'umi';
|
||||||
@ -268,7 +269,9 @@ status:状态
|
|||||||
dataIndex: 'name',
|
dataIndex: 'name',
|
||||||
key: 'name',
|
key: 'name',
|
||||||
render: (text: string, record: any) => (
|
render: (text: string, record: any) => (
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Card, Table, Button, message } from 'antd';
|
import { Card, Table, Button, message, Tooltip } from 'antd';
|
||||||
import styles from '../../supplierTaskManageDetail.less';
|
import styles from '../../supplierTaskManageDetail.less';
|
||||||
import { useIntl } from 'umi';
|
import { useIntl } from 'umi';
|
||||||
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
import { useSupplierDetailModal } from '@/components/SupplierDetailModalContext/SupplierDetailModalContext';
|
||||||
@ -54,7 +54,9 @@ const SupplierInfo: React.FC<SupplierInfoProps> = ({ taskData, onViewEvaluators
|
|||||||
dataIndex: 'supplierName',
|
dataIndex: 'supplierName',
|
||||||
key: 'supplierName',
|
key: 'supplierName',
|
||||||
render: (text: string, record: any) => (
|
render: (text: string, record: any) => (
|
||||||
<Button type="link" onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</Button>
|
<Tooltip placement="topLeft" title={text}>
|
||||||
|
<a onClick={() => supplierDetailModal?.(record.supplierId)}>{text}</a>
|
||||||
|
</Tooltip>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user