diff --git a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue index 5f51af2e..17a72574 100644 --- a/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue +++ b/src/views/workCenter/standardEntryOrChangeProcess/StandardEntryOrChangeProcess.vue @@ -869,8 +869,14 @@ export default { if (!formData) { return } + let submitFunc + if (this.currentNode === FGEntryChangeProcessNode.initiate.value && !this.$route.query.processInstanceId) { + submitFunc = initiateStandardECProcess + } else { + submitFunc = agreeStandardECProcess + } this.loading = true - initiateStandardECProcess(formData).then(res => { + submitFunc(formData).then(res => { if (res.success) { this.$message.success(res.message) this.goBack()