fix: 流程撤回时数据结构错误
This commit is contained in:
@@ -260,8 +260,20 @@ export default {
|
|||||||
this.loading = true
|
this.loading = true
|
||||||
queryTaskFirst({ bpnId }).then(res => {
|
queryTaskFirst({ bpnId }).then(res => {
|
||||||
this.reloadForm = false
|
this.reloadForm = false
|
||||||
let mes = JSON.parse(res.mes)
|
if (mes.form) {
|
||||||
this.$set(this, 'form', 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.roleForm = mes.roleForm
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.reloadForm = true
|
this.reloadForm = true
|
||||||
|
|||||||
@@ -326,8 +326,20 @@ export default {
|
|||||||
queryTaskFirst({ bpnId }).then(res => {
|
queryTaskFirst({ bpnId }).then(res => {
|
||||||
this.reloadForm = false
|
this.reloadForm = false
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
this.$set(this, 'form', mes.form)
|
if (mes.form) {
|
||||||
this.roleForm = mes.roleForm
|
// 驳回
|
||||||
|
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.$nextTick(() => {
|
||||||
this.reloadForm = true
|
this.reloadForm = true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -481,8 +481,24 @@ export default {
|
|||||||
queryTaskFirst({ bpnId }).then(res => {
|
queryTaskFirst({ bpnId }).then(res => {
|
||||||
this.reloadForm = false
|
this.reloadForm = false
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
this.$set(this, 'form', mes.form)
|
if (mes.form) {
|
||||||
this.roleForm = mes.roleForm
|
// 驳回
|
||||||
|
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.$nextTick(() => {
|
||||||
this.reloadForm = true
|
this.reloadForm = true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -360,8 +360,24 @@ export default {
|
|||||||
queryTaskFirst({ bpnId }).then(res => {
|
queryTaskFirst({ bpnId }).then(res => {
|
||||||
this.reloadForm = false
|
this.reloadForm = false
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
this.$set(this, 'form', mes.form)
|
if (mes.form) {
|
||||||
this.roleForm = mes.roleForm
|
// 驳回
|
||||||
|
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.$nextTick(() => {
|
||||||
this.reloadForm = true
|
this.reloadForm = true
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -332,8 +332,20 @@ export default {
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.reloadForm = false
|
this.reloadForm = false
|
||||||
let mes = JSON.parse(res.mes)
|
let mes = JSON.parse(res.mes)
|
||||||
this.$set(this, 'form', mes.form)
|
if (mes.form) {
|
||||||
this.roleForm = mes.roleForm
|
// 驳回
|
||||||
|
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.$nextTick(() => {
|
||||||
this.reloadForm = true
|
this.reloadForm = true
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user