From d4f444551658ebdef1d05e25273f372dad714dc2 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Fri, 26 Apr 2024 11:13:13 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E8=A7=A3=E5=86=B3=E4=BC=81=E6=A0=87?= =?UTF-8?q?=E5=88=B6=E4=BF=AE=E8=AE=A2=EF=BC=8C=E4=BC=81=E6=A0=87=E6=9B=B4?= =?UTF-8?q?=E6=94=B9=E6=B5=81=E7=A8=8B=E5=8F=91=E8=B5=B7=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E5=80=99=E7=82=B9=E5=9C=A8=E7=BA=BF=E7=BC=96=E8=BE=91=E4=BC=9A?= =?UTF-8?q?=E7=94=9F=E6=88=90=E5=A4=9A=E6=9D=A1=E8=8D=89=E7=A8=BF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../EnterpriseStandardChangeFlow.vue | 11 +++++++++-- .../EnterpriseStandardRevisionFlow.vue | 11 +++++++++-- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue b/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue index ac6d3fe8..ee365778 100644 --- a/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue +++ b/src/views/workCenter/enterpriseStandardChange/EnterpriseStandardChangeFlow.vue @@ -247,7 +247,8 @@ export default { personnelInfoData: [], url: { list: '' // 人员信息的右侧表格获取接口 - } + }, + tempDraftId: '' // 临时草稿id,解决发起的时候点在线编辑会生成多条草稿的问题 } }, methods: { @@ -333,6 +334,9 @@ export default { paramObj.basicTaskInfoDTO.handleFile = paramObj.basicTaskInfoDTO.commitFile paramObj.basicTaskInfoDTO.taskId = this.$route.query.taskId // 草稿id + if (this.tempDraftId) { + paramObj.draftId = this.tempDraftId + } if (this.model.infoJsonStr) { paramObj.draftId = this.model.id } @@ -382,7 +386,7 @@ export default { this.loading = false } } else if (!this.model.id) { - this.model.id = res.result + this.tempDraftId = res.result } }) }, @@ -405,6 +409,9 @@ export default { const param = {} // 需要传给后端的数据 param.common = { ...values, ...approvalValues } // 草稿id + if (this.tempDraftId) { + param.common.draftId = this.tempDraftId + } if (this.model.infoJsonStr) { param.common.draftId = this.model.id } diff --git a/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue b/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue index 64893b02..4d331473 100644 --- a/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue +++ b/src/views/workCenter/enterpriseStandardRevision/EnterpriseStandardRevisionFlow.vue @@ -370,7 +370,8 @@ export default { flowInitType: 'newProcess', // 流程发起类型,是自动发起(auto)的还是从新建流程发起的(newProcess) rejectBtnDisabled: false, // 驳回按钮是否置灰 agreeBtnDisabled: false, // 同意按钮是否置灰 - documentUrl: window._CONFIG.documentUrl + documentUrl: window._CONFIG.documentUrl, + tempDraftId: '' // 临时草稿id,解决发起的时候点在线编辑会生成多条草稿的问题 } }, methods: { @@ -483,6 +484,9 @@ export default { paramObj.basicTaskInfoDTO.handleFile = paramObj.basicTaskInfoDTO.commitFile paramObj.basicTaskInfoDTO.taskId = this.$route.query.taskId // 草稿id + if (this.tempDraftId) { + paramObj.draftId = this.tempDraftId + } if (this.model.infoJsonStr) { paramObj.draftId = this.model.id } @@ -529,7 +533,7 @@ export default { this.loading = false } } else if (!this.model.id) { - this.model.id = res.result + this.tempDraftId = res.result } }) }, @@ -550,6 +554,9 @@ export default { const param = {} // 需要传给后端的数据 param.common = { ...values, ...approvalValues } // 草稿id + if (this.tempDraftId) { + param.common.draftId = this.tempDraftId + } if (this.model.infoJsonStr) { param.common.draftId = this.model.id }