[fix 87359] 解读流程发起节点,来源选择不带入,条款可为空

This commit is contained in:
danshihao
2024-07-26 15:42:47 +08:00
parent 8dbd874f0c
commit 8cb3552f84
@@ -167,20 +167,6 @@ export default {
// 校验失败就标记true
obj._flag = true
}
// 如果来源选择不带入,至少选择一条条款信息
const isNoInput = this.dataSource.length && (this.dataSource[0].decompositionSource === DecompositionSource.NO_INPUT.value)
// 是否没有条款数据
const isClauseNotData = !this.showClauseTable || !this.$refs.interpretationClauseTable.getData().length
if (isNoInput && isClauseNotData) {
this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseSelectClause'))
obj._flag = true
}
// 选择条款后来源选择其他,没有条款数据提示至少一条数据
if (this.showClauseTable && !isNoInput && isClauseNotData) {
this.$message.warn(this.$t('addAtLeastOneRowOfData'))
// 校验失败就标记true
obj._flag = true
}
}
// 选择的标准列表
obj.standardData = this.dataSource