数据统计中列表中更改获取准入单位和准入部门逻辑
This commit is contained in:
@ -32,7 +32,6 @@ const SupplierAnnualStatistics: React.FC = () => {
|
|||||||
const [searchParams, setSearchParams] =
|
const [searchParams, setSearchParams] =
|
||||||
useState<DataStatistics.AnnualReviewStatisticsSearchParams>({});
|
useState<DataStatistics.AnnualReviewStatisticsSearchParams>({});
|
||||||
|
|
||||||
|
|
||||||
// 年审结果选项
|
// 年审结果选项
|
||||||
const annualResultOptions = Object.entries(AnnualReviewResultText).map(([key, value]) => ({
|
const annualResultOptions = Object.entries(AnnualReviewResultText).map(([key, value]) => ({
|
||||||
label: value,
|
label: value,
|
||||||
@ -140,23 +139,40 @@ const SupplierAnnualStatistics: React.FC = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessUnit' }),
|
title: intl.formatMessage({ id: 'dataStatistics.common.accessUnit' }),
|
||||||
dataIndex: 'accessUnit',
|
dataIndex: 'orgNameList',
|
||||||
key: 'accessUnit',
|
key: 'orgNameList',
|
||||||
width: 180,
|
width: 180,
|
||||||
ellipsis: {
|
ellipsis: {
|
||||||
showTitle: false,
|
showTitle: false,
|
||||||
},
|
},
|
||||||
render: (text: string) => (
|
render: (orgNameList: supplierAnnualTaskManage.SupplierOrgNameList[]) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<>
|
||||||
{text}
|
{orgNameList && orgNameList.length > 0 ? (
|
||||||
</Tooltip>
|
<Tooltip placement="topLeft" title={orgNameList.map((item) => item.orgName).join(',')}>
|
||||||
|
{orgNameList[0].orgName}
|
||||||
|
</Tooltip>
|
||||||
|
) : (
|
||||||
|
'-'
|
||||||
|
)}
|
||||||
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessDept' }),
|
title: intl.formatMessage({ id: 'dataStatistics.common.accessDept' }),
|
||||||
dataIndex: 'accessDept',
|
dataIndex: 'orgNameList',
|
||||||
key: 'accessDept',
|
key: 'orgNameList',
|
||||||
width: 120,
|
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' }),
|
title: intl.formatMessage({ id: 'dataStatistics.common.year' }),
|
||||||
@ -170,7 +186,7 @@ const SupplierAnnualStatistics: React.FC = () => {
|
|||||||
title: intl.formatMessage({ id: 'dataStatistics.annual.annualStatisticsResult' }),
|
title: intl.formatMessage({ id: 'dataStatistics.annual.annualStatisticsResult' }),
|
||||||
dataIndex: 'annualStatisticsResult',
|
dataIndex: 'annualStatisticsResult',
|
||||||
key: 'annualStatisticsResult',
|
key: 'annualStatisticsResult',
|
||||||
width: 100
|
width: 100,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -158,23 +158,40 @@ const SupplierEvaluateStatistics: React.FC = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessUnit' }),
|
title: intl.formatMessage({ id: 'dataStatistics.common.accessUnit' }),
|
||||||
dataIndex: 'accessUnit',
|
dataIndex: 'orgNameList',
|
||||||
key: 'accessUnit',
|
key: 'orgNameList',
|
||||||
width: 180,
|
width: 180,
|
||||||
ellipsis: {
|
ellipsis: {
|
||||||
showTitle: false,
|
showTitle: false,
|
||||||
},
|
},
|
||||||
render: (text: string) => (
|
render: (orgNameList: SupplierTaskManage.SupplierOrgNameList[]) => (
|
||||||
<Tooltip placement="topLeft" title={text}>
|
<>
|
||||||
{text}
|
{orgNameList && orgNameList.length > 0 ? (
|
||||||
</Tooltip>
|
<Tooltip placement="topLeft" title={orgNameList.map((item) => item.orgName).join(',')}>
|
||||||
|
{orgNameList[0].orgName}
|
||||||
|
</Tooltip>
|
||||||
|
) : (
|
||||||
|
'-'
|
||||||
|
)}
|
||||||
|
</>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'dataStatistics.common.accessDept' }),
|
title: intl.formatMessage({ id: 'dataStatistics.common.accessDept' }),
|
||||||
dataIndex: 'accessDept',
|
dataIndex: 'orgNameList',
|
||||||
key: 'accessDept',
|
key: 'orgNameList',
|
||||||
width: 120,
|
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' }),
|
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 {
|
interface SupplierOrgNameList {
|
||||||
|
// 准入部门
|
||||||
deptId: string;
|
deptId: string;
|
||||||
deptName: string;
|
deptName: string;
|
||||||
|
// 准入单位
|
||||||
|
orgName: string;
|
||||||
|
orgId: string;
|
||||||
}
|
}
|
||||||
// 列表响应
|
// 列表响应
|
||||||
interface TaskListResponse {
|
interface TaskListResponse {
|
||||||
|
@ -256,8 +256,12 @@ declare namespace SupplierTaskManage {
|
|||||||
}
|
}
|
||||||
// 供应商的组织
|
// 供应商的组织
|
||||||
interface SupplierOrgNameList {
|
interface SupplierOrgNameList {
|
||||||
|
// 准入部门
|
||||||
deptId: string;
|
deptId: string;
|
||||||
deptName: string;
|
deptName: string;
|
||||||
|
// 准入单位
|
||||||
|
orgName: string;
|
||||||
|
orgId: string;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 品类树响应
|
* 品类树响应
|
||||||
|
Reference in New Issue
Block a user