【修改】监控流程

This commit is contained in:
zhoulingpo
2023-04-28 23:29:35 +08:00
parent 03dc95ca36
commit 7c2b6a3b55
2 changed files with 39 additions and 15 deletions
+31 -12
View File
@@ -299,7 +299,12 @@ export default {
// 真删除接口
delDatas(){
this.$api.permissionProcess.deletReport({ids:this.delData}).then(()=>{})
return new Promise((resolve,reject)=>{
this.$api.permissionProcess.deletReport({ids:this.delData}).then(()=>{
resolve()
})
})
},
handleCheck(name) {
@@ -431,23 +436,37 @@ export default {
// 调用流程数据
console.log("发送数据")
// 处理表格数据
this.organizeData()
//如果不是第一次
if (this.initShow) {
this.JuggleSub(this.taskId).then(res=>{
if(res){
if(this.delData){
this.delDatas()
this.delDatas().then(()=>{
this.organizeData()
let dataJson = JSON.stringify(this.tableData)
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
this.completeProcess({
dataJson,
submitJson,
taskId: this.taskId,
userId: this.$store.getters.userInfo.usid,
prcType: this.prcType
})
})
}else{
this.organizeData()
let dataJson = JSON.stringify(this.tableData)
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
this.completeProcess({
dataJson,
submitJson,
taskId: this.taskId,
userId: this.$store.getters.userInfo.usid,
prcType: this.prcType
})
}
let dataJson = JSON.stringify(this.tableData)
let submitJson = JSON.stringify({...this.assignForm, userId: this.$store.getters.userInfo.usid,approvalOpinion:this.assignForm.remark})
this.completeProcess({
dataJson,
submitJson,
taskId: this.taskId,
userId: this.$store.getters.userInfo.usid,
prcType: this.prcType
})
}
})