修改 外部标准化协会入会流程 第二个节点不涉及 不对入会人员进行表单校验

This commit is contained in:
baoyu
2024-04-30 09:59:15 +08:00
parent da5124b1fd
commit 4f2ee3f622
@@ -381,6 +381,7 @@ export default {
}, },
// 退回按钮 // 退回按钮
handleSubmitNo() { handleSubmitNo() {
this.$refs['rh_pageData'].clearValidate('comityOpRoleId')
if (this.commentText === '') { if (this.commentText === '') {
this.$message.warning('请输入审批意见') this.$message.warning('请输入审批意见')
} else { } else {
@@ -391,22 +392,18 @@ export default {
commentText: this.commentText, commentText: this.commentText,
rh_pageData: this.rh_pageData, rh_pageData: this.rh_pageData,
} }
this.$refs['rh_pageData'].validate((valid) => { this.isSubmit = true
if (valid) { const params = new FormData();
this.isSubmit = true params.set('json', JSON.stringify(json))
const params = new FormData(); params.set('userId', this.$store.getters.userInfo.userId)
params.set('json', JSON.stringify(json)) params.set('taskId', this.taskIds)
params.set('userId', this.$store.getters.userInfo.userId) completeTask(params).then(res => {
params.set('taskId', this.taskIds) if (res.success === true) {
completeTask(params).then(res => { this.$message.success('退回成功')
if (res.success === true) { this.$router.push("/processCenter");
this.$message.success('退回成功')
this.$router.push("/processCenter");
}
}).finally(() => {
this.isSubmit = false
})
} }
}).finally(() => {
this.isSubmit = false
}) })
} }
}, },