52501 标准调研流程:会签节点,首次流转会签节点 数据驳回,再次流转到会签节点的时候 数据直接消失

This commit is contained in:
宋伟佳
2022-04-22 15:26:07 +08:00
parent 2d7c444a4e
commit 9466e2205b
@@ -275,6 +275,7 @@
] ]
}, },
json: {}, json: {},
jsonData: {},
fileUrl: 'api/att/attFile/upload', fileUrl: 'api/att/attFile/upload',
fileMadel: false, fileMadel: false,
} }
@@ -401,11 +402,12 @@
this.$refs['qbkwForm'].validate((valid) => { this.$refs['qbkwForm'].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
var json = this.json let json = this.jsonData
json.commentText = this.commentText5 json.commentText = this.commentText5
json.hzfileId = this.form.hzfileId json.hzfileId = this.form.hzfileId
json.hzfileName = this.form.hzfileName json.hzfileName = this.form.hzfileName
json.docUser = this.newDocUser json.docUser = this.newDocUser
json.responUserList = this.tableData
this.$http.post('lawss/activiti/completeTask', { this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json), json: JSON.stringify(json),
taskId: this.taskIds, taskId: this.taskIds,
@@ -427,6 +429,8 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
let jsonData = JSON.parse(res.mesg)
this.jsonData = jsonData.form ? jsonData.form : jsonData
this.commentText5 = data.commentText5 || '' this.commentText5 = data.commentText5 || ''
this.form.title = data.title || data.form.title this.form.title = data.title || data.form.title
this.form.processName = data.processName || data.form.processName this.form.processName = data.processName || data.form.processName