Commit ce02c6bd authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 招标,抽取专家,按条件抽取专家时保存,报服务内部错误

parent cd90bd38
......@@ -146,12 +146,22 @@ const AddRemarkBidCommittee: React.FC<AddRemarkBidCommitteeProps> = (props) => {
const inviteTenderId = value['inviteTender']['id']
let _value = omit(value, ['code', 'createTime', 'openTenderTime', 'projectName', 'remarkTime', 'status', 'inviteTender'])
_value.inviteTender = { id: inviteTenderId }
_value.expertExtractRecordList = value?.expertExtractRecordList?.length ? value.expertExtractRecordList.map(item => ({
_value.expertExtractRecordList = value?.expertExtractRecordList?.length ? value.expertExtractRecordList.map(item => {
if(pageStatus === PageStatus.ADD) {
return {
expert: { id: item.expert.id },
source: item.source,
status: item.status
}
} else {
return {
id: item.id,
expert: { id: item.expert.id },
source: item.source,
status: item.status
})) : []
}
}
}) : []
_value.expertExtractQueryList = value.expertExtractQueryList.map(item => omit(item, ['excludeArea', 'needArea']))
if (_value.expertExtractRecordList?.length) {
postPurchaseExpertExtractSaveOrUpdateExpertExtract(_value).then(res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment