|
|
@ -161,79 +161,71 @@ |
|
|
|
} |
|
|
|
this.dataListLoading = false |
|
|
|
}) |
|
|
|
},approveHandle(id){ |
|
|
|
}, |
|
|
|
approveHandle(id){ |
|
|
|
this.id = id |
|
|
|
this.dialogVisible = true |
|
|
|
},showFlowHandle(procInsId){ |
|
|
|
this.dialogVisible = true |
|
|
|
}, |
|
|
|
showFlowHandle(procInsId){ |
|
|
|
this.procInsId = procInsId |
|
|
|
// 通过流程实例id查询对应的流转记录 |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl(`/flw/instance/getHiTaskInstance/${this.procInsId}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dialogActiveVisible = true |
|
|
|
this.hiTasks = data.data |
|
|
|
} |
|
|
|
}) |
|
|
|
},submitFlowComplete(){ |
|
|
|
url: this.$http.adornUrl(`/flw/instance/getHiTaskInstance/${this.procInsId}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dialogActiveVisible = true |
|
|
|
this.hiTasks = data.data |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
submitFlowComplete(){ |
|
|
|
// 做审批通过的操作 |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dialogVisible = false |
|
|
|
this.getDataList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
},claimHandle(id){ |
|
|
|
|
|
|
|
url: this.$http.adornUrl(`/flw/instance/completeFlow/${this.id}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.dialogVisible = false |
|
|
|
this.getDataList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
claimHandle(id){ |
|
|
|
this.$confirm('确定要拾取当前的任务吗?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl(`/flw/instance/claimTask/${id}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'info', |
|
|
|
message: '已取消删除' |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
},unclaimHandle(id){ |
|
|
|
url: this.$http.adornUrl(`/flw/instance/claimTask/${id}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
unclaimHandle(id){ |
|
|
|
this.$confirm('确定要归还当前的任务吗?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.$http({ |
|
|
|
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
this.$message({ |
|
|
|
type: 'info', |
|
|
|
message: '已取消删除' |
|
|
|
}); |
|
|
|
}); |
|
|
|
url: this.$http.adornUrl(`/flw/instance/unclaimTask/${id}`), |
|
|
|
method: 'get', |
|
|
|
params: this.$http.adornParams() |
|
|
|
}).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.getDataList(); |
|
|
|
} |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
// 每页数 |
|
|
|
sizeChangeHandle (val) { |
|
|
@ -278,7 +270,7 @@ |
|
|
|
this.$message.error(data.msg) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}).catch(() => {}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|