【修改】修改
This commit is contained in:
@@ -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中
|
||||
|
||||
Reference in New Issue
Block a user