【修改】修改

This commit is contained in:
zhoulingpo
2023-04-28 19:23:13 +08:00
parent 5475ee1ccd
commit e0d0d5457f
3 changed files with 29 additions and 21 deletions
+20 -1
View File
@@ -434,7 +434,9 @@ export default {
})
} else {
this.startProcess()
this.isSendDraft().then(()=>{
this.startProcess()
})
}
}
} else {
@@ -447,6 +449,23 @@ export default {
//修改参数
changeParam() {
},
// 草稿发起 需要先调用这个接口
isSendDraft(){
let ids=this.tableData.map(item=>{
return item.reportId
})
return new Promise((resolve,reject)=>{
this.$api.permissionProcess.selectReport({ids:ids}).then((res)=>{
if(res.data.length==0){
resolve(true)
}else{
this.$message.warning("报告"+res.data.join(',')+"已经在流程中")
reject()
}
})
})
},
startProcess() {
//把表单都整合到form中