企标计划 新增流程 非立项操作 删除待办任务

This commit is contained in:
gaojiabao
2023-05-11 17:03:46 +08:00
parent 7d11475659
commit 1337208e4c
2 changed files with 45 additions and 15 deletions
@@ -524,21 +524,48 @@ export default {
}
this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId,
json: json,
}, {
_this: this
}, res => {
if (res.success) {
this.addLog(this.qbfsForm)
this.$message.success(res.message)
this.$router.push('/processCenter')
}
this.isSubmit = false
}, e => {
});
if(this.type !== '5'){
let params = {
json,
sort:this.qbfsForm.bussSort[0],
prcName:this.qbfsForm.esName
}
this.endPrcName(params).then((res)=>{
if(res){
this.completeTask()
}
})
}else{
this.completeTask()
}
},
completeTask(){
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId,
json: json,
}, {
_this: this
}, res => {
if (res.success) {
this.addLog(this.qbfsForm)
this.$message.success(res.message)
this.$router.push('/processCenter')
}
this.isSubmit = false
}, e => {
});
},
endPrcName(params){
return new Promise((resolve, reject)=>{
this.$http._getData('lawss/activiti/endPrcName',params,{}).then(res => {
resolve(res)
}).catch(e=>{
reject(e)
})
})
},
addLog(qbzxdFrom){
let json = Object.assign(qbzxdFrom);
@@ -1261,6 +1261,9 @@
if (res.ok) {
if (res.message === '操作成功') {
this.$message.success(tips + '成功')
if(this.DrawerType === 'add'){
this.addForm.esId = res.data
}
this.getData()
if(this.DrawerType === 'add'){
this.addForm.addFlag = '1'