feat: There is no way the, bug #52106

This commit is contained in:
super_liu
2022-03-29 16:46:58 +08:00
parent c68bb6860b
commit 15265c6fc1
3 changed files with 42 additions and 1 deletions
@@ -1633,6 +1633,27 @@
this.roleForm.hqUserName=nameList; this.roleForm.hqUserName=nameList;
} }
}, },
checkedRoleTransfer (data) {
this.isSubmit = true
this.saveLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
this.isSubmit = false
this.saveLoading = false
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
this.processNum()
} else {
this.$message.warning(res.message)
}
})
},
checkedRole (data) { checkedRole (data) {
if (this.type === 0) { if (this.type === 0) {
this.roleForm.deptUserId = data[0].id this.roleForm.deptUserId = data[0].id
@@ -1259,6 +1259,27 @@
} }
}, },
checkedRoleTransfer (data) {
this.isSubmit = true
this.saveLoading = true
changeAssigneeNew({
taskId: this.$route.query.taskIds, // 任务id
userId:this.$store.getters.userInfo.userId, // 委托人
assignee: data[0].id, // 被委托人
pId: this.$route.query.prcId, // 流程实例
}).then(res => {
this.isSubmit = false
this.saveLoading = false
if (res.success) {
this.drawerModal = false
this.$message.success('调整成功')
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
this.processNum()
} else {
this.$message.warning(res.message)
}
})
},
drawerCheckZRBM(data) { drawerCheckZRBM(data) {
let idList = '' let idList = ''
let nameList = '' let nameList = ''
@@ -1484,7 +1484,6 @@
return data.name.indexOf(value) !== -1; return data.name.indexOf(value) !== -1;
}, },
getTaskId (mesg) { getTaskId (mesg) {
this.verifySarStandard = this.$route.query.verifySarStandard
this.form = mesg.form this.form = mesg.form
this.form.date = new Date(this.$moment(mesg.form.date).format('YYYY-MM-DD')) this.form.date = new Date(this.$moment(mesg.form.date).format('YYYY-MM-DD'))
this.form['SYCXCLASS'] = this.filterObj(this.form['SYCXCLASS']) this.form['SYCXCLASS'] = this.filterObj(this.form['SYCXCLASS'])