diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index e3c4e405d..9d9ee1146 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1781,4 +1781,7 @@ module.exports = { deadlineForResponsibilityConfirmation:'Deadline for Responsibility Confirmation', checkRegulatoryCompletedBefore: "Check the implementation of regulatory requirements before product design freezes. Task delivery requirements will first be input and confirmed with the engineering team in G1, and compliance confirmation and review will be completed before G3.", checkVerificationResultsBeforeMP:'Check the verification results required by regulations before mass production of the product. Task delivery requirements will first be input and confirmed with the engineering team in G1, and compliance confirmation and review will be completed before MP.', + modifyOperator:'Modify Operator', + onlyDesignComplianceConfirmationSelected:'Only data with a design compliance confirmation process status of task to be confirmed, result to be submitted, or verification compliance confirmation process status of task to be confirmed, result to be submitted can be selected', + oneThePersonnelMustBeSelected:'One of the personnel must be selected', } \ No newline at end of file diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index b6d9de9dc..46ebe9b09 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1883,5 +1883,7 @@ module.exports = { deadlineForResponsibilityConfirmation: '责任确认截止日期', checkRegulatoryCompletedBefore: "检查法规要求在产品设计冻结前的落实,任务交付要求将首先在G1与工程团队完成输入和确认,并于G3前完成符合性确认和审查。", checkVerificationResultsBeforeMP:'检查法规要求在产品量产前的验证结果,任务交付要求将首先在G1与工程团队完成输入和确认,并于MP前完成符合性确认和审查。', - + modifyOperator:'修改操作人', + onlyDesignComplianceConfirmationSelected:'只能选择设计符合性确认流程状态为任务待确认、结果待提交或验证符合性确认流程状态为任务待确认、结果待提交的数据', + oneThePersonnelMustBeSelected:'必须选择其中一个人员', } \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index 7347094c7..f43f2672d 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -117,6 +117,12 @@ {{ $t('BatchSetting') }} + +
+ + {{ $t('modifyOperator') }} +
@@ -191,6 +197,11 @@ {{ $t('compliancereport') }} + +
+ + {{ $t('modifyOperator') }} +
@@ -595,6 +606,7 @@ + @@ -612,6 +624,7 @@ import listOfRegulationsView from './listOfRegulationsView' import viewFileModel from '@/components/viewFileModel/index' import globalAdvancedQuery from '@/components/globalAdvancedQuery/index' + import modifyOperator from './modifyOperator' import batchSettingPersonnel from './batchSettingPersonnel' import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage' import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' @@ -636,7 +649,8 @@ batchSettingPersonnel, listOfRegulationsView, viewFileModel, - designCompliance + designCompliance, + modifyOperator }, mixins: [ResizeColumnProvide, ResizeHeader], data() { @@ -1453,6 +1467,41 @@ }, methods: { ...mapGetters(['userInfo']), + modifyOperatorClick() { + if (this.selectedRowKeys.length == 0) { + this.$message.warning(this.$t('selectLeastOne')) + } else if (this.selectedRowKeys.length > 1) { + this.$message.warning(this.$t('OnlyOneSelected')) + } else { + let contentList = [] + for (let i = 0; i < this.dataSource.length; i++) { + for (let j = 0; j < this.selectedRowKeys.length; j++) { + if (this.dataSource[i].id == this.selectedRowKeys[j]) { + contentList.push(this.dataSource[i]) + } + } + } + let isVerifyFlow = false + let isDesignFlow = false + if (contentList[0].verifyFlowStatus == 'Task to be confirmed' + || contentList[0].verifyFlowStatus == 'Results to be submitted') { + isVerifyFlow = true + } + if (contentList[0].designFlowStatus == 'Task to be confirmed' + || contentList[0].designFlowStatus == 'Results to be submitted') { + isDesignFlow = true + } + if (isDesignFlow || isVerifyFlow) { + this.$refs.modifyOperatorRef.getData(contentList[0],isDesignFlow, isVerifyFlow) + } else { + this.$message.warning(this.$t('onlyDesignComplianceConfirmationSelected')) + } + } + }, + modifyOperatorForm() { + this + this.getList() + }, //收起/展开 handleToggleSearch() { this.toggleSearchStatus = !this.toggleSearchStatus @@ -2468,9 +2517,9 @@ this.updateFlowStatusBatch() } for (let i = 0; i < this.startProcessList.length; i++) { - if (this.startProcessList[i].type == 2){ + if (this.startProcessList[i].type == 2) { this.startProcessList[i].dataList.designDutyDueDate = this.formInline.designDutyDueDate - }else if(this.startProcessList[i].type == 4){ + } else if (this.startProcessList[i].type == 4) { this.startProcessList[i].dataList.verifyDutyDueDate = this.formInline.verifyDutyDueDate } this.startProcess(this.startProcessList[i].dataList, this.startProcessList[i].type, this.startProcessList[i].requestsNum) diff --git a/jero-web/src/views/projectManagement/components/modifyOperator.vue b/jero-web/src/views/projectManagement/components/modifyOperator.vue new file mode 100644 index 000000000..5fa1268de --- /dev/null +++ b/jero-web/src/views/projectManagement/components/modifyOperator.vue @@ -0,0 +1,165 @@ + + + + + \ No newline at end of file