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

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 this.qbfsForm.commentText = this.commentText
let json = JSON.stringify(this.qbfsForm); let json = JSON.stringify(this.qbfsForm);
this.$http.post('lawss/activiti/completeTask', { if(this.type !== '5'){
taskIds: this.$route.query.taskIds, let params = {
userId: this.$store.getters.userInfo.userId, json,
json: json, sort:this.qbfsForm.bussSort[0],
}, { prcName:this.qbfsForm.esName
_this: this
}, res => { }
if (res.success) { this.endPrcName(params).then((res)=>{
this.addLog(this.qbfsForm) if(res){
this.$message.success(res.message) this.completeTask()
this.$router.push('/processCenter') }
} })
this.isSubmit = false }else{
}, e => { 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){ addLog(qbzxdFrom){
let json = Object.assign(qbzxdFrom); let json = Object.assign(qbzxdFrom);
@@ -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'