52547 【手机端】标准征求意见流程 前面点同意之后,pc端到意见处理节点 内容没回显

This commit is contained in:
宋伟佳
2022-04-13 16:58:09 +08:00
parent 223622650c
commit e43d6df1df
3 changed files with 79 additions and 72 deletions
@@ -253,51 +253,59 @@
this.saveLoading = false; this.saveLoading = false;
}); });
}, },
handleSubmit() { handleSubmit() {
this.$refs["bzzqyjForm"].validate((valid) => { this.$refs["bzzqyjForm"].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
var json = this.json; var json = this.json;
json.commentText = this.commentText2; json.onlyKey = this.onlyKey
json.responUserList = this.form.responUserList; json.commentText = this.commentText2;
json.responUserListName = this.form.responUserListName; json.responUserList = this.form.responUserList;
json.introduce = false; json.responUserListName = this.form.responUserListName;
this.$http.post("lawss/activiti/completeTask", { json.presidentUser = this.form.presidentUser
json: JSON.stringify(json), json.presidentUserName = this.form.presidentUserName
taskId: this.taskIds, json.introduce = false;
userId: this.$store.getters.userInfo.account this.$http.post("lawss/activiti/completeTask", {
}, {}, res => { json: JSON.stringify(json),
if (res.success) { taskId: this.taskIds,
this.$message.success("提交成功"); userId: this.$store.getters.userInfo.account
this.$router.push("/processCenter"); }, {}, res => {
} if (res.success) {
this.isSubmit = false; this.$message.success("提交成功");
}); this.$router.push("/processCenter");
} else { }
return this.$message.warning("请完善基础信息"); this.isSubmit = false;
}
}); });
}, } else {
getData() { return this.$message.warning("请完善基础信息");
return new Promise((resolve, reject) => { }
inboundLiaisonDetail({ });
taskIds: this.taskIds, },
pId: this.pId getData() {
}).then(res => { return new Promise((resolve, reject) => {
let data = JSON.parse(res.mesg) inboundLiaisonDetail({
this.commentText2 = data.commentText2 || '' taskIds: this.taskIds,
this.form.cid = data.form ? data.form.cid : data.cid pId: this.pId
this.form.endTime = data.form ? data.form.endTime : data.endTime }).then(res => {
this.form.fjList = data.form ? data.form.fjList : data.fjList let data = JSON.parse(res.mesg)
this.form.textType = data.form ? data.form.textType : data.textType this.onlyKey = data.form ? data.form.onlyKey : data.onlyKey
this.form.modelList = data.form ? data.form.modelList : data.modelList this.commentText2 = data.commentText2 || ''
this.form.responUserListName = data.form ? data.form.responUserListName : (data.responUserListName ? data.responUserListName : '') this.form.presidentUser = data.form ? data.form.presidentUser :data.presidentUser
this.form.responUserList = data.form ? data.form.responUserList : (data.responUserList ? data.responUserList : '') this.form.presidentUserName = data.form ? data.form.presidentUserName : data.presidentUserName
this.json = data this.form.startUserName = data.form ? data.form.startUserName : data.startUserName
}).catch(e => { this.form.startUser = data.form ? data.form.startUser : data.startUser
}); this.form.cid = data.form ? data.form.cid : data.cid
}); this.form.endTime = data.form ? data.form.endTime : data.endTime
} this.form.fjList = data.form ? data.form.fjList : data.fjList
this.form.textType = data.form ? data.form.textType : data.textType
this.form.modelList = data.form ? data.form.modelList : data.modelList
this.form.responUserListName = data.form ? data.form.responUserListName : (data.responUserListName ? data.responUserListName : '')
this.form.responUserList = data.form ? data.form.responUserList : (data.responUserList ? data.responUserList : '')
this.json = data
}).catch(e => {
});
});
}
}, },
mounted() { mounted() {
this.getHistoryData(); this.getHistoryData();
@@ -314,34 +314,34 @@
handleTabs(name) { handleTabs(name) {
this.active = name this.active = name
}, },
handleSubmit() { handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => { this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) { if (valid) {
this.isSubmit = true this.isSubmit = true
var json = this.json let json = this.json
json.commentText = this.commentText41 json.info = this.data
json.bzfgId = this.form.bzfgId json.commentText = this.commentText41
json.bzfgName = this.form.bzfgName json.bzfgId = this.form.bzfgId
json.spFlag = '0' json.bzfgName = this.form.bzfgName
this.$http.post('lawss/activiti/completeTask', { json.spFlag = '0'
json: JSON.stringify(json), this.$http.post('lawss/activiti/completeTask', {
taskId: this.taskIds, json: JSON.stringify(json),
userId: this.$store.getters.userInfo.account taskId: this.taskIds,
}, {}, res => { userId: this.$store.getters.userInfo.account
if (res.success) { }, {}, res => {
this.$message.success('提交成功') if (res.success) {
this.$router.push('/processCenter') this.$message.success('提交成功')
} this.$router.push('/processCenter')
this.isSubmit = false }
}) this.isSubmit = false
} else {
this.$message.warning('请选择标准法规工程师分线管理员')
}
}) })
}, } else {
this.$message.warning('请选择标准法规工程师分线管理员')
}
})
},
handleSubmitNo() { handleSubmitNo() {
if (this.commentText41) { if (this.commentText41) {
this.isSubmit = true
var json = this.json var json = this.json
json.spFlag = '1' json.spFlag = '1'
json.commentText = this.commentText41 json.commentText = this.commentText41
@@ -353,7 +353,6 @@
if (res.success) { if (res.success) {
this.$message.success('提交成功') this.$message.success('提交成功')
this.$router.push('/processCenter') this.$router.push('/processCenter')
this.isSubmit = false
} }
}) })
} else { } else {
@@ -314,7 +314,7 @@
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,
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.account
}, {}, res => { }, {}, res => {
if (res.success) { if (res.success) {
this.$message.success('提交成功') this.$message.success('提交成功')
@@ -331,7 +331,7 @@
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,
userId: this.$store.getters.userInfo.userId userId: this.$store.getters.userInfo.account
}, {}, res => { }, {}, res => {
if (res.success) { if (res.success) {
this.$message.success('提交成功') this.$message.success('提交成功')