From 50f6e345f3988896c93f14097f56332fbf050871 Mon Sep 17 00:00:00 2001 From: danshihao Date: Mon, 15 Jul 2024 09:26:54 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E6=B5=81=E7=A8=8B]=20=E4=B8=BB=E8=A7=A3=E8=AF=BB=E4=BA=BA?= =?UTF-8?q?=E5=88=86=E5=8F=91=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInterpretationProcess.vue | 7 +++++-- .../modules/InterpretationLiaisonDistribute.vue | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue index cb6a3ab..eb1f85f 100644 --- a/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue +++ b/src/views/workCenter/standardInterpretationProcess/StandardInterpretationProcess.vue @@ -401,12 +401,13 @@ export default { params.data = {} // 发起节点 if (this.isInitiate) { + const standardData = compData.standardData[0] || {} // 选择的标准数据 params.data.processStandardInterpret = Object.assign({}, { // 分解单来源 - decompositionSource: compData.standardData[0] && compData.standardData[0].decompositionSource, + decompositionSource: standardData.decompositionSource, // 标准id - standardId: compData.standardData[0] && compData.standardData[0].standardId, + standardId: standardData.standardId, projectId: this.projectId }) params.data.processStandardInterpretClauseList = compData.clauseData @@ -424,7 +425,9 @@ export default { // 条款列表(分发和不分发传入的字段不一样) if (compData.isDistribute) { params.data.processStandardInterpretClauseList = compData.clauseData + params.data.processStandardInterpretClauseSublistList = [] } else { + params.data.processStandardInterpretClauseList = [] // 将条款的表格复制到完整的条款解读表,id需要处理 params.data.processStandardInterpretClauseSublistList = compData.clauseData.map(item => { item.standardInterpretClauseId = item.id diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue index 2a7e3a5..148d848 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationLiaisonDistribute.vue @@ -73,6 +73,11 @@ export default { async getData (isValidate) { const obj = {} if (isValidate) { + // 至少一条数据 + if (!this.$refs.interpretationClauseTable.getData().length) { + this.$message.warn(this.$t('addAtLeastOneRowOfData')) + this._flag = true + } obj.formData = await new Promise((resolve) => { this.form.validateFields((err, values) => { if (err) { obj._flag = true }