[update 标准解读流程] 重新分发去掉空数据校验

This commit is contained in:
danshihao
2024-07-17 16:28:36 +08:00
parent ee5135ad81
commit 3527f281db
3 changed files with 9 additions and 5 deletions
+2 -1
View File
@@ -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: {
+2 -1
View File
@@ -122,7 +122,8 @@ module.exports = {
pleaseSelectInterpreter: '至少选择一条数据的各涉及部门解读人',
pleaseSelectClause: '请选择条款',
interpretationDistribution: '解读分发',
interpretationTable: '解读表'
interpretationTable: '解读表',
interpretationAttributes: '解读属性'
},
// 流程配置
processConfig: {
@@ -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