未符合项回退问题

This commit is contained in:
shenyanpei
2021-09-02 16:17:00 +08:00
parent bb2e4b92b0
commit ef96c620dc
2 changed files with 11 additions and 16 deletions
@@ -240,6 +240,7 @@ export default {
name: "wfhxzgStep2",
data() {
return {
passInfo: 0,
detailData: [],
loading: false,
textarea: '', // 意见
@@ -336,6 +337,9 @@ export default {
},
getFormFieldList (item) {
this.$nextTick(() => {
if (item.passInfo !== undefined) {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
}
this.dataList = JSON.parse(JSON.stringify(item)).standardInfoList
this.textarea = JSON.parse(JSON.stringify(item)).commentText
})
@@ -406,6 +410,7 @@ export default {
}
let json = {
dockUserList: list,
passInfo: this.passInfo
}
let flag=false
this.dataList.forEach(item => {
@@ -247,6 +247,7 @@ export default {
name: "wfhxzgStep3",
data() {
return {
passInfo: 0,
detailData: [],
loading: false,
commentText: '', // 意见
@@ -320,6 +321,9 @@ export default {
},
getFormFieldList (item) {
this.$nextTick(() => {
if (item.passInfo !== undefined) {
this.passInfo = JSON.parse(JSON.stringify(item)).passInfo
}
let fileData = JSON.parse(JSON.stringify(item)).dockUserList
for (let i = 0; i<fileData.length; i++) {
if (fileData[i].name === this.$store.getters.userInfo.userName) {
@@ -358,11 +362,11 @@ export default {
if (this.commentText) {
var json = {
passInfo: 1,
actionFlag: 1,
commentText: this.commentText,
standardInfoList: this.standardInfoList,
}
this.isSubmit = true
const params = new FormData();
params.set('json', JSON.stringify(json))
params.set('userId', this.$store.getters.userInfo.userId)
@@ -372,25 +376,10 @@ export default {
this.$message.success('驳回成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}
/* this.$http.post('lawss/activiti/completeTask', {
json: JSON.stringify(json),
taskId: this.taskIds,
userId: this.$store.getters.userInfo.userId
}, {}, res => {
if (res.success) {
this.$message.success('驳回成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
} else {
this.$message.warning('请输入反馈意见')
}*/
},
// 点击查看
handlePreview (item) {
@@ -468,6 +457,7 @@ export default {
list.push(item[1])
}
let json = {
passInfo: this.passInfo,
responUserList: list,
actionFlag: 0
}