diff --git a/src/common/lang/workCenter/en.js b/src/common/lang/workCenter/en.js index 217f20c..fc5dbc1 100644 --- a/src/common/lang/workCenter/en.js +++ b/src/common/lang/workCenter/en.js @@ -122,7 +122,8 @@ module.exports = { pleaseSelectInterpreter: 'Select at least one piece of data for each department involved to interpret', pleaseSelectClause: 'Please select terms', interpretationDistribution: 'Interpretation and Distribution', - interpretationTable: 'Interpretation Table' + interpretationTable: 'Interpretation Table', + interpretationAttributes: 'Interpretation of attributes' }, // 流程配置 processConfig: { diff --git a/src/common/lang/workCenter/zh.js b/src/common/lang/workCenter/zh.js index 3437a8b..f427783 100644 --- a/src/common/lang/workCenter/zh.js +++ b/src/common/lang/workCenter/zh.js @@ -122,7 +122,8 @@ module.exports = { pleaseSelectInterpreter: '至少选择一条数据的各涉及部门解读人', pleaseSelectClause: '请选择条款', interpretationDistribution: '解读分发', - interpretationTable: '解读表' + interpretationTable: '解读表', + interpretationAttributes: '解读属性' }, // 流程配置 processConfig: { diff --git a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue index bbc3d72..bcce856 100644 --- a/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue +++ b/src/views/workCenter/standardInterpretationProcess/modules/InterpretationMainInterpreterDistribute.vue @@ -97,7 +97,7 @@ import UserSelection from '@comp/selection/UserSelection' import InterpretationClauseTable from '@views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable' -import { DecompositionSource, IsDistribute } from '@/enums/commonEnums' +import { DecompositionSource, IsDistribute, StandardInterpretationNodes } from '@/enums/commonEnums' export default { name: 'InterpretationMainInterpreterDistribute', components: { InterpretationClauseTable, UserSelection }, @@ -264,13 +264,15 @@ export default { obj._flag = true this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseSelectTheNextStep')) } else { + // 是否重新分发节点 + const isReDistribute = this.currentNodeId === StandardInterpretationNodes.standardInterpreterReDistribution.value // 只要下一步了,对新增的部分进行校验 obj.clauseData = this.$refs.interpretationClauseTable.getData() // 至少一条条款数据(重新分发节点可以删了代表不分发) - if (!obj.clauseData.length) { + if (!obj.clauseData.length && !isReDistribute) { this.$message.warn(this.$t('addAtLeastOneRowOfData')) obj._flag = true - } else if (this.isDistribute && !obj.clauseData.some(item => item.interpretPersonIds)) { + } else if (obj.clauseData.length && this.isDistribute && !obj.clauseData.some(item => item.interpretPersonIds)) { // 有数据且选分发时候校验 至少一条数据选择解读人 this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseSelectInterpreter')) obj._flag = true