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

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,6 +524,24 @@ export default {
} }
this.qbfsForm.commentText = this.commentText this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm); let json = JSON.stringify(this.qbfsForm);
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', { this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
userId: this.$store.getters.userInfo.userId, userId: this.$store.getters.userInfo.userId,
@@ -540,6 +558,15 @@ export default {
}, e => { }, 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){ addLog(qbzxdFrom){
let json = Object.assign(qbzxdFrom); let json = Object.assign(qbzxdFrom);
this.$http.post("esRevisePlanLog/log/addLog", { this.$http.post("esRevisePlanLog/log/addLog", {
@@ -1261,6 +1261,9 @@
if (res.ok) { if (res.ok) {
if (res.message === '操作成功') { if (res.message === '操作成功') {
this.$message.success(tips + '成功') this.$message.success(tips + '成功')
if(this.DrawerType === 'add'){
this.addForm.esId = res.data
}
this.getData() this.getData()
if(this.DrawerType === 'add'){ if(this.DrawerType === 'add'){
this.addForm.addFlag = '1' this.addForm.addFlag = '1'