Commit 56a9954c by fanyj

修改bug

parent 87f9bf0f
......@@ -164,15 +164,16 @@ const FlowAcceptDetail:React.FC<any>=(props)=>{
form.validateFields().then((data)=>{
if((data?.nextAuditUsers||[]).length===0){
let allow = true;
dataSource.forEach((item)=>{
const list = dataSource.map((item)=>{
Object.values(item.responsibilityAttributeMap).forEach((i:any)=>{
if(!i.value){
allow=false
}
})
return {...item,auditStatus:1}
})
if(allow){
const playload = {...detail,...data,submitItems:dataSource}
const playload = {...detail,...data,submitItems:list}
saveQuestionItemFinal(playload,()=>{
showMessage("success",'操作成功')
})
......
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