Compare commits
2 Commits
b69aa0df71
...
09eba5903c
Author | SHA1 | Date | |
---|---|---|---|
09eba5903c | |||
8ea479ac35 |
@ -32,7 +32,6 @@ const SupplierAnnualStatistics: React.FC = () => {
|
||||
const [searchParams, setSearchParams] =
|
||||
useState<DataStatistics.AnnualReviewStatisticsSearchParams>({});
|
||||
|
||||
|
||||
// 年审结果选项
|
||||
const annualResultOptions = Object.entries(AnnualReviewResultText).map(([key, value]) => ({
|
||||
label: value,
|
||||
@ -140,23 +139,40 @@ const SupplierAnnualStatistics: React.FC = () => {
|
||||
},
|
||||
{
|
||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessUnit' }),
|
||||
dataIndex: 'accessUnit',
|
||||
key: 'accessUnit',
|
||||
dataIndex: 'orgNameList',
|
||||
key: 'orgNameList',
|
||||
width: 180,
|
||||
ellipsis: {
|
||||
showTitle: false,
|
||||
},
|
||||
render: (text: string) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
{text}
|
||||
render: (orgNameList: supplierAnnualTaskManage.SupplierOrgNameList[]) => (
|
||||
<>
|
||||
{orgNameList && orgNameList.length > 0 ? (
|
||||
<Tooltip placement="topLeft" title={orgNameList.map((item) => item.orgName).join(',')}>
|
||||
{orgNameList[0].orgName}
|
||||
</Tooltip>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessDept' }),
|
||||
dataIndex: 'accessDept',
|
||||
key: 'accessDept',
|
||||
dataIndex: 'orgNameList',
|
||||
key: 'orgNameList',
|
||||
width: 120,
|
||||
render: (orgNameList: supplierAnnualTaskManage.SupplierOrgNameList[]) => (
|
||||
<>
|
||||
{orgNameList && orgNameList.length > 0 ? (
|
||||
<Tooltip placement="topLeft" title={orgNameList.map((item) => item.deptName).join(',')}>
|
||||
{orgNameList[0].deptName}
|
||||
</Tooltip>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: intl.formatMessage({ id: 'dataStatistics.common.year' }),
|
||||
@ -170,7 +186,7 @@ const SupplierAnnualStatistics: React.FC = () => {
|
||||
title: intl.formatMessage({ id: 'dataStatistics.annual.annualStatisticsResult' }),
|
||||
dataIndex: 'annualStatisticsResult',
|
||||
key: 'annualStatisticsResult',
|
||||
width: 100
|
||||
width: 100,
|
||||
},
|
||||
];
|
||||
|
||||
|
@ -158,23 +158,40 @@ const SupplierEvaluateStatistics: React.FC = () => {
|
||||
},
|
||||
{
|
||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessUnit' }),
|
||||
dataIndex: 'accessUnit',
|
||||
key: 'accessUnit',
|
||||
dataIndex: 'orgNameList',
|
||||
key: 'orgNameList',
|
||||
width: 180,
|
||||
ellipsis: {
|
||||
showTitle: false,
|
||||
},
|
||||
render: (text: string) => (
|
||||
<Tooltip placement="topLeft" title={text}>
|
||||
{text}
|
||||
render: (orgNameList: SupplierTaskManage.SupplierOrgNameList[]) => (
|
||||
<>
|
||||
{orgNameList && orgNameList.length > 0 ? (
|
||||
<Tooltip placement="topLeft" title={orgNameList.map((item) => item.orgName).join(',')}>
|
||||
{orgNameList[0].orgName}
|
||||
</Tooltip>
|
||||
) : (
|
||||
'-'
|
||||
)}
|
||||
</>
|
||||
),
|
||||
},
|
||||
{
|
||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessDept' }),
|
||||
dataIndex: 'accessDept',
|
||||
key: 'accessDept',
|
||||
dataIndex: 'orgNameList',
|
||||
key: 'orgNameList',
|
||||
width: 120,
|
||||
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: 'dataStatistics.evaluate.evaluateYear' }),
|
||||
|
1025
src/pages/register/supplier/CommonFormSections copy.tsx
Normal file
1025
src/pages/register/supplier/CommonFormSections copy.tsx
Normal file
File diff suppressed because it is too large
Load Diff
@ -47,8 +47,12 @@ declare namespace supplierAnnualTaskManage {
|
||||
}
|
||||
// 供应商的组织
|
||||
interface SupplierOrgNameList {
|
||||
// 准入部门
|
||||
deptId: string;
|
||||
deptName: string;
|
||||
// 准入单位
|
||||
orgName: string;
|
||||
orgId: string;
|
||||
}
|
||||
// 列表响应
|
||||
interface TaskListResponse {
|
||||
|
@ -256,8 +256,12 @@ declare namespace SupplierTaskManage {
|
||||
}
|
||||
// 供应商的组织
|
||||
interface SupplierOrgNameList {
|
||||
// 准入部门
|
||||
deptId: string;
|
||||
deptName: string;
|
||||
// 准入单位
|
||||
orgName: string;
|
||||
orgId: string;
|
||||
}
|
||||
/**
|
||||
* 品类树响应
|
||||
|
Reference in New Issue
Block a user