【修改】修改bug

This commit is contained in:
zhoulingpo
2023-05-12 17:03:28 +08:00
parent 30d0ce64b9
commit aeb3f37d4d
12 changed files with 137 additions and 69 deletions
+13 -11
View File
@@ -316,6 +316,7 @@ export default {
console.log("发送数据")
// 处理表格数据
//如果不是第一次
if (this.initShow) {
let flag= this.JuggleSub(this.taskId)
@@ -324,23 +325,24 @@ export default {
this.completeProcess(this.params[0])
}
} else {
// 先判断数据完整
if(this.JuggleTableAll()){
this.organizeData()
this.startProcess()
// 完整判断草稿发起的在不在流程
if(this.$route.query.isDraft){
this.isSendDraft().then((res)=>{
this.organizeData()
this.startProcess()
})
}else{
this.organizeData()
this.startProcess()
}
}else{
this.$message.warning("请把表格数据填写完整")
}
// this.isSendDraft().then(()=>{
// })
}
}
},
//修改参数
changeParam() {
},
// 草稿发起 需要先调用这个接口
isSendDraft(){
@@ -348,7 +350,7 @@ export default {
return item.reportId
})
return new Promise((resolve,reject)=>{
this.$api.permissionProcess.selectReport({ids:ids}).then((res)=>{
this.$api.process.selectReport({usid:this.userId,ids:ids}).then((res)=>{
if(res.data.length==0){
resolve(true)
}else{