修改评价打分详情table组件引用的页面中的数据处理
This commit is contained in:
@ -84,15 +84,17 @@ const SupplierEvaluateResultByZb: React.FC = () => {
|
|||||||
return indicatorDetail.taskIndicatorVo.map(indicator => {
|
return indicatorDetail.taskIndicatorVo.map(indicator => {
|
||||||
return {
|
return {
|
||||||
baseIndicator: indicator.baseIndicator,
|
baseIndicator: indicator.baseIndicator,
|
||||||
descIndicator: indicator.indicatorDesc,
|
// 注意:ScoreEvaluationTable组件内部期望接收indicatorDesc字段
|
||||||
|
indicatorDesc: indicator.indicatorDesc,
|
||||||
score: indicator.score,
|
score: indicator.score,
|
||||||
indicatorNdList: indicator.subIndicator?.map(subItem => {
|
indicatorNdList: indicator.subIndicator?.map(subItem => {
|
||||||
return {
|
return {
|
||||||
subIndicator: subItem.subIndicator,
|
subIndicator: subItem.subIndicator,
|
||||||
score: subItem.subScore,
|
score: subItem.score,
|
||||||
|
scoreNum: subItem.score || '',
|
||||||
|
subScore: subItem.subScore,
|
||||||
isStar: subItem.starIndicator,
|
isStar: subItem.starIndicator,
|
||||||
id: subItem.id,
|
id: subItem.id,
|
||||||
actualScore: subItem.scoreNum || '',
|
|
||||||
remark: subItem.remark || ''
|
remark: subItem.remark || ''
|
||||||
};
|
};
|
||||||
}) || []
|
}) || []
|
||||||
|
@ -263,8 +263,8 @@ const SupplierEvaluateResultScoreByList: React.FC = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: intl.formatMessage({ id: 'supplierEvaluateResult.column.score' }),
|
title: intl.formatMessage({ id: 'supplierEvaluateResult.column.score' }),
|
||||||
dataIndex: 'score',
|
dataIndex: 'suScore',
|
||||||
key: 'score',
|
key: 'suScore',
|
||||||
align: 'center' as const,
|
align: 'center' as const,
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user