fix: 流程撤回时数据结构错误
This commit is contained in:
@@ -260,8 +260,20 @@ export default {
|
||||
this.loading = true
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
this.$set(this, 'form', mes.form)
|
||||
if (mes.form) {
|
||||
// 驳回
|
||||
let mes = JSON.parse(res.mes)
|
||||
this.$set(this, 'form', mes.form)
|
||||
} else {
|
||||
// 撤回
|
||||
this.form = JSON.parse(JSON.stringify(mes))
|
||||
this.roleForm = {
|
||||
applyUserId: mes.applyUserId,
|
||||
applyUserName: mes.applyUserName,
|
||||
jlUserId: mes.jlUserId,
|
||||
jlUserName: mes.jlUserName,
|
||||
}
|
||||
}
|
||||
this.roleForm = mes.roleForm
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
|
||||
@@ -326,8 +326,20 @@ export default {
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
if (mes.form) {
|
||||
// 驳回
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
} else {
|
||||
// 撤回
|
||||
this.form = JSON.parse(JSON.stringify(mes))
|
||||
this.roleForm = {
|
||||
applyUserId: mes.applyUserId,
|
||||
applyUserName: mes.applyUserName,
|
||||
approverId: mes.approverId,
|
||||
approverName: mes.approverName
|
||||
}
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
|
||||
@@ -481,8 +481,24 @@ export default {
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
if (mes.form) {
|
||||
// 驳回
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
} else {
|
||||
// 撤回
|
||||
this.form = JSON.parse(JSON.stringify(mes))
|
||||
this.roleForm = {
|
||||
applyUserId: mes.applyUserId,
|
||||
applyUserName: mes.applyUserName,
|
||||
ministerId: mes.ministerId,
|
||||
ministerIdName: mes.ministerIdName,
|
||||
inspectorId: mes.inspectorId,
|
||||
inspectorIdName: mes.inspectorIdName,
|
||||
presidentId: mes.presidentId,
|
||||
presidentIdName: mes.presidentIdName
|
||||
}
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
|
||||
@@ -360,8 +360,24 @@ export default {
|
||||
queryTaskFirst({ bpnId }).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
if (mes.form) {
|
||||
// 驳回
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
} else {
|
||||
// 撤回
|
||||
this.form = JSON.parse(JSON.stringify(mes))
|
||||
this.roleForm = {
|
||||
applyUserId: mes.applyUserId,
|
||||
applyUserName: mes.applyUserName,
|
||||
ministerId: mes.ministerId,
|
||||
ministerIdName: mes.ministerIdName,
|
||||
inspectorId: mes.inspectorId,
|
||||
inspectorIdName: mes.inspectorIdName,
|
||||
presidentId: mes.presidentId,
|
||||
presidentIdName: mes.presidentIdName,
|
||||
}
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
|
||||
@@ -332,8 +332,20 @@ export default {
|
||||
}).then(res => {
|
||||
this.reloadForm = false
|
||||
let mes = JSON.parse(res.mes)
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
if (mes.form) {
|
||||
// 驳回
|
||||
this.$set(this, 'form', mes.form)
|
||||
this.roleForm = mes.roleForm
|
||||
} else {
|
||||
// 撤回
|
||||
this.form = JSON.parse(JSON.stringify(mes))
|
||||
this.roleForm = {
|
||||
jlUserId: mes.jlUserId,
|
||||
jlUserName: mes.jlUserName,
|
||||
prcCreateUser: mes.prcCreateUser,
|
||||
prcCreateUserName: mes.prcCreateUserName,
|
||||
}
|
||||
}
|
||||
this.$nextTick(() => {
|
||||
this.reloadForm = true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user