评价打分传参字段修改主键
This commit is contained in:
@ -100,7 +100,7 @@ const ScoreEvaluationTable: React.FC<ScoreEvaluationTableProps> = ({
|
||||
if (typeof ndItem === 'object' && ndItem !== null) {
|
||||
flattenedData.push({
|
||||
key: `${stItem.id || stIndex}-${ndItem.id || ndIndex}`,
|
||||
stId: stItem.id,
|
||||
stId: ndItem.stId,
|
||||
ndId: ndItem.id,
|
||||
baseIndicator: stItem.baseIndicator || '',
|
||||
descIndicator: stItem.indicatorDesc || '',
|
||||
|
@ -167,7 +167,7 @@ const SupplierEvaluateScoreDetail: React.FC = () => {
|
||||
id: record.id,
|
||||
scoreVoList: scoreData.flatMap((item) => {
|
||||
return item.indicatorNdList.map((subItem: any) => ({
|
||||
id: item.id,
|
||||
id: subItem.id,
|
||||
remark: subItem.remark || item.remark || '',
|
||||
score: String(subItem.scoreNum || item.score || ''),
|
||||
}));
|
||||
|
Reference in New Issue
Block a user