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