修改流程

This commit is contained in:
zyx.net
2022-11-20 13:00:49 +08:00
parent d6c25cced6
commit 80ff6deb1e
3 changed files with 39 additions and 29 deletions
@@ -3084,7 +3084,11 @@ export default {
json.applyUpdUserId = this.form.applyUpdUserId
json.prcCreateUser = this.form.prcCreateUser
json.prcCreateUserName = this.form.prcCreateUserName
json.standCode = this.tableData.standardData[0].standCode
if(this.form.reviseStatus == '1' || this.form.reviseStatus == '2'){
json.nowEsId = this.tableData.standardData[0].id
}else if(this.form.reviseStatus == '3'){
json.standCode = this.tableData.standardData[0].standCode
}
this.$http.post('lawss/activiti/completeTask', {
taskIds: this.$route.query.taskIds,
userId : this.$store.getters.userInfo.userId,
@@ -3087,8 +3087,11 @@ export default {
json.applyUpdUserId = this.form.applyUpdUserId
json.prcCreateUser = this.form.prcCreateUser
json.prcCreateUserName = this.form.prcCreateUserName
json.standCode = this.standardCheckedList[0].standCode
json.id = this.standardCheckedList[0].id
if(this.form.reviseStatus == '3'){
json.standCode = this.standardCheckedList[0].standCode
json.id = this.standardCheckedList[0].id
}
this.$http.post('lawss/activiti/startProcessRollBack', {
createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName,
@@ -1230,33 +1230,36 @@
this.addDrawer = false
this.$message.success(tips + '成功')
this.getData()
this.addForm.addFlag = '1'
this.addForm.prcCreateUser = this.$store.getters.userInfo.userId
this.addForm.prcCreateUserName = this.$store.getters.userInfo.userName
this.addForm.type = '5'
var json = Object.assign(this.addForm)
this.$http.post('lawss/activiti/startProcessRollBack', {
createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName,
type: '25',
json: JSON.stringify({
qbfsForm: this.addForm
})
}, {}, res => {
if (res.ok) {
this.$http.post('lawss/activiti/completeTask', {
taskIds: res.data,
userId : this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
// this.$message.success(res.message)
}
})
}
if(this.DrawerType === 'add'){
this.addForm.addFlag = '1'
this.addForm.prcCreateUser = this.$store.getters.userInfo.userId
this.addForm.prcCreateUserName = this.$store.getters.userInfo.userName
this.addForm.esId = res.message
this.addForm.type = '5'
var json = Object.assign(this.addForm)
this.$http.post('lawss/activiti/startProcessRollBack', {
createUser: this.$store.getters.userInfo.userId,
createUserName: this.$store.getters.userInfo.userName,
type: '25',
json: JSON.stringify({
qbfsForm: this.addForm
})
}, {}, res => {
if (res.ok) {
this.$http.post('lawss/activiti/completeTask', {
taskIds: res.data,
userId : this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
// this.$message.success(res.message)
}
})
}
})
}
} else {
this.addDrawer = false
this.$message.warning(res.data)