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 }