update 强制撤回
This commit is contained in:
+15
-11
@@ -265,13 +265,16 @@ export default {
|
||||
|
||||
// 草稿状态回显
|
||||
if (draftId) {
|
||||
const { draftData, personInfo } = JSON.parse(data.infoJsonStr || '{}')
|
||||
console.log('草稿回显', JSON.parse(data.infoJsonStr || '{}'), draftData, personInfo)
|
||||
const infoJson = JSON.parse(data.infoJsonStr || '{}')
|
||||
console.log('草稿回显', JSON.parse(data.infoJsonStr || '{}'), infoJson)
|
||||
// 节点1 回显人员信息
|
||||
if (this.isInitiate) {
|
||||
this.draftInitPersonInfo(personInfo)
|
||||
this.draftInitPersonInfo(infoJson.personInfo)
|
||||
}
|
||||
// 回显业务信息,如果有标识属性就是强制撤回
|
||||
if (Object.hasOwnProperty.call(infoJson, 'revocation')) {
|
||||
this.$refs.inspectionProcessTable.setData(infoJson.draftData)
|
||||
}
|
||||
// 回显业务信息(需要等后端调整)
|
||||
}
|
||||
}
|
||||
}).finally(() => {
|
||||
@@ -382,6 +385,14 @@ export default {
|
||||
params.processApprovalRecord = Object.assign({}, this.info.processApprovalRecord, formDataList[1], {
|
||||
projectId: this.projectId
|
||||
})
|
||||
|
||||
// 保存草稿信息
|
||||
params.infoJsonStr = JSON.stringify({
|
||||
// 人员信息(要重新获取,流程里的信息不能直接用,后端需要多选人员处理成数组了)
|
||||
personInfo: this.$refs.personnelInfo.getDataObj(),
|
||||
// 业务表格数据,用于强制撤回后回显
|
||||
draftData: params.processEsInspectList
|
||||
})
|
||||
return params
|
||||
},
|
||||
/**
|
||||
@@ -418,13 +429,6 @@ export default {
|
||||
if (this.loading) return
|
||||
this.loading = true
|
||||
this.getPageParams(false).then(res => {
|
||||
// 保存草稿信息
|
||||
res.infoJsonStr = JSON.stringify({
|
||||
// 人员信息(要重新获取,流程里的信息不能直接用,后端需要多选人员处理成数组了)
|
||||
personInfo: this.$refs.personnelInfo.getDataObj()
|
||||
// 业务数据(需要等后端调整)
|
||||
// draftData:
|
||||
})
|
||||
// 1待办 2草稿
|
||||
res.saveSource = (this.$route.query.draftId || !this.$route.query.projectId) ? 2 : 1
|
||||
console.log(res)
|
||||
|
||||
Reference in New Issue
Block a user