[update 标准解读流程] 选择稿件增加不带入
This commit is contained in:
@@ -116,7 +116,8 @@ module.exports = {
|
|||||||
reviewersPerson: 'Reviewer',
|
reviewersPerson: 'Reviewer',
|
||||||
approvedPerson: 'Approved personnel',
|
approvedPerson: 'Approved personnel',
|
||||||
batchEdit: 'Bulk edit',
|
batchEdit: 'Bulk edit',
|
||||||
pleaseSelectInterpreter: 'Select at least one piece of data for each department involved to interpret'
|
pleaseSelectInterpreter: 'Select at least one piece of data for each department involved to interpret',
|
||||||
|
pleaseSelectClause: 'Please select terms'
|
||||||
},
|
},
|
||||||
// 流程配置
|
// 流程配置
|
||||||
processConfig: {
|
processConfig: {
|
||||||
|
|||||||
@@ -116,7 +116,8 @@ module.exports = {
|
|||||||
reviewersPerson: '审核人员',
|
reviewersPerson: '审核人员',
|
||||||
approvedPerson: '批准人员',
|
approvedPerson: '批准人员',
|
||||||
batchEdit: '批量编辑',
|
batchEdit: '批量编辑',
|
||||||
pleaseSelectInterpreter: '至少选择一条数据的各涉及部门解读人'
|
pleaseSelectInterpreter: '至少选择一条数据的各涉及部门解读人',
|
||||||
|
pleaseSelectClause: '请选择条款'
|
||||||
},
|
},
|
||||||
// 流程配置
|
// 流程配置
|
||||||
processConfig: {
|
processConfig: {
|
||||||
|
|||||||
@@ -257,3 +257,8 @@ export const IsDistribute = {
|
|||||||
DISTRIBUTE: { text: '是', value: '1' },
|
DISTRIBUTE: { text: '是', value: '1' },
|
||||||
NOT_DISTRIBUTE: { text: '否', value: '2' }
|
NOT_DISTRIBUTE: { text: '否', value: '2' }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 标准解读流程-分解单来源
|
||||||
|
export const DecompositionSource = {
|
||||||
|
NO_INPUT: { text: '不带入', value: 'noncarry' }
|
||||||
|
}
|
||||||
|
|||||||
+17
-1
@@ -62,7 +62,7 @@
|
|||||||
import StandardSelectionModal from '@comp/selection/StandardSelectionModal'
|
import StandardSelectionModal from '@comp/selection/StandardSelectionModal'
|
||||||
import { interpretGetClauseList, interpretGetFileByStandardId } from '@api/workCenter'
|
import { interpretGetClauseList, interpretGetFileByStandardId } from '@api/workCenter'
|
||||||
import { randomUUID } from '@/utils/util'
|
import { randomUUID } from '@/utils/util'
|
||||||
import { StandardSource } from '@/enums/commonEnums'
|
import { DecompositionSource, StandardSource } from '@/enums/commonEnums'
|
||||||
import InterpretationClauseTable
|
import InterpretationClauseTable
|
||||||
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable'
|
from '@views/workCenter/standardInterpretationProcess/modules/InterpretationClauseTable'
|
||||||
export default {
|
export default {
|
||||||
@@ -165,6 +165,11 @@ export default {
|
|||||||
// 校验失败就标记true
|
// 校验失败就标记true
|
||||||
obj._flag = true
|
obj._flag = true
|
||||||
}
|
}
|
||||||
|
// 如果是不带入,就提示选择条款
|
||||||
|
if (this.dataSource.length && (this.dataSource[0].decompositionSource === DecompositionSource.NO_INPUT.value)) {
|
||||||
|
this.$message.warn('workCenter.standardInterpretationProcess.pleaseSelectClause')
|
||||||
|
obj._flag = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// 选择的标准列表
|
// 选择的标准列表
|
||||||
obj.standardData = this.dataSource
|
obj.standardData = this.dataSource
|
||||||
@@ -205,6 +210,16 @@ export default {
|
|||||||
// 如果有条款的表格,就清空然后隐藏
|
// 如果有条款的表格,就清空然后隐藏
|
||||||
this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.setData([])
|
this.$refs.interpretationClauseTable && this.$refs.interpretationClauseTable.setData([])
|
||||||
this.showClauseTable = true
|
this.showClauseTable = true
|
||||||
|
// 如果是不带入,不需要请求,直接将标准数据带入
|
||||||
|
if (this.dataSource[0].decompositionSource === DecompositionSource.NO_INPUT.value) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.interpretationClauseTable.setData([{
|
||||||
|
itemTitle: this.dataSource[0].standardName,
|
||||||
|
itemNum: this.dataSource[0].standardNumber
|
||||||
|
}])
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
interpretGetClauseList({
|
interpretGetClauseList({
|
||||||
standardId: this.dataSource[0].id,
|
standardId: this.dataSource[0].id,
|
||||||
@@ -231,6 +246,7 @@ export default {
|
|||||||
this.showClauseTable = false
|
this.showClauseTable = false
|
||||||
if (this.dataSource.length) {
|
if (this.dataSource.length) {
|
||||||
this.dataSource[0].standardId = this.dataSource[0].id
|
this.dataSource[0].standardId = this.dataSource[0].id
|
||||||
|
this.dataSource[0].decompositionSource = DecompositionSource.NO_INPUT.value
|
||||||
this.initInterpretGetFileByStandardId(this.dataSource[0].id)
|
this.initInterpretGetFileByStandardId(this.dataSource[0].id)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user