[update 标准解读流程] 完善
This commit is contained in:
+1
-1
@@ -734,7 +734,7 @@ export default {
|
||||
title: this.$t('confirmDeletion'),
|
||||
content: this.$t('areYouSure'),
|
||||
onOk: () => {
|
||||
this.processAllDelIds.push(id)
|
||||
that.processAllDelIds.push(id)
|
||||
that.dataSource = that.dataSource.filter(item => item[this.rowKey] !== id)
|
||||
// 判断当前删除的数据是否是最后一页的最后一条数据,如果是的话页码减一
|
||||
if (that.ipagination.current > 1 && ((that.ipagination.current - 1) * that.ipagination.pageSize) + 1 === that.ipagination.total) {
|
||||
|
||||
+1
-6
@@ -185,11 +185,6 @@ export default {
|
||||
this.$message.warn(this.$t('workCenter.standardInterpretationProcess.pleaseAddStandard'))
|
||||
return
|
||||
}
|
||||
// 请选择分解单来源
|
||||
if (!this.dataSource[0].decompositionSource) {
|
||||
this.$message.warn(this.$t('pleaseSelect') + this.$t('workCenter.standardInterpretationProcess.decompositionOrderSource'))
|
||||
return
|
||||
}
|
||||
// 如果有条款的表格,就清空然后隐藏
|
||||
this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.setData([])
|
||||
this.showClauseTable = true
|
||||
@@ -214,11 +209,11 @@ export default {
|
||||
handleAddStandardCallback (list) {
|
||||
console.log(list)
|
||||
this.dataSource = list || []
|
||||
this.dataSource[0].standardId = this.dataSource[0].id
|
||||
// 如果有条款的表格,就清空然后隐藏
|
||||
this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.setData([])
|
||||
this.showClauseTable = false
|
||||
if (this.dataSource.length) {
|
||||
this.dataSource[0].standardId = this.dataSource[0].id
|
||||
this.initInterpretGetFileByStandardId(this.dataSource[0].id)
|
||||
}
|
||||
},
|
||||
|
||||
+1
-1
@@ -120,7 +120,7 @@ export default {
|
||||
const obj = {}
|
||||
if (isValidate) {
|
||||
if (!this.$refs.interpretationClauseTable.getData().length) {
|
||||
this.$message.warn('addAtLeastOneRowOfData')
|
||||
this.$message.warn(this.$t('addAtLeastOneRowOfData'))
|
||||
obj._flag = true
|
||||
}
|
||||
// 汇总节点,处理表单
|
||||
|
||||
+1
-1
@@ -237,7 +237,7 @@ export default {
|
||||
obj.clauseData = this.$refs.interpretationClauseTable.getData()
|
||||
// 至少一条条款数据
|
||||
if (!obj.clauseData.length) {
|
||||
this.$message.warn('addAtLeastOneRowOfData')
|
||||
this.$message.warn(this.$t('addAtLeastOneRowOfData'))
|
||||
obj._flag = true
|
||||
} else if (this.isDistribute && !obj.clauseData.some(item => item.interpretPersonIds)) {
|
||||
// 有数据且选分发时候校验 至少一条数据选择解读人
|
||||
|
||||
Reference in New Issue
Block a user