diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 65d6c5a03..dc512c442 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1690,6 +1690,10 @@ module.exports = { taskTypeMismatch:'Task Type Mismatch', taskNodeMismatch:'Task Node Mismatch', ifNot:'If not, fill in "none" or "not involved"', + designComplianceProcess:'Design Compliance Process', + validationComplianceProcess:'Validation Compliance Process', + onlyDataInTheReminderProcessBanBeProcessed:'Only data in the reminder process can be processed', + expeditionProcess:'Expedition Process', addfunction:'Add function', controllername:'Controller name', hardwaremanufacturer:'Hardware manufacturer', diff --git a/jero-web/src/common/lang/zh-cn.js b/jero-web/src/common/lang/zh-cn.js index 28f8158b6..8d7024f75 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1767,6 +1767,8 @@ module.exports = { theDataYouSelectedContainsSkip:'您所勾选的数据中包含交付物类型为空的数据;请确认是否跳过', designComplianceProcessFor:'的设计符合性流程', validationComplianceProcessFor:'的验证符合性流程', + designComplianceProcess:'设计符合性流程', + validationComplianceProcess:'验证符合性流程', thePersonResponsibleForVerifyingEmpty:'验证符合性流程的责任人不能为空', theDeadlineComplianceProcessCannotEmpty:'验证符合性流程的截止时间不能为空', theDeadlineForTheDesignCannotBeEmpty:'设计符合性流程的截止时间不能为空', @@ -1795,4 +1797,6 @@ module.exports = { hardwaremanufacturer:'硬件生产企业', softwareversion:'软件版本', returntofill:'返回填写', + onlyDataInTheReminderProcessBanBeProcessed:'只能催办流程中的数据', + expeditionProcess:'催办流程', } \ No newline at end of file diff --git a/jero-web/src/views/projectManagement/components/batSetting.vue b/jero-web/src/views/projectManagement/components/batSetting.vue index e4371c4e2..ff8a45a32 100644 --- a/jero-web/src/views/projectManagement/components/batSetting.vue +++ b/jero-web/src/views/projectManagement/components/batSetting.vue @@ -100,13 +100,26 @@ :title="$t('engineeringInterfacePerson')">{{$t('engineeringInterfacePerson')}} - + + + + {{ item.name }} + + + + + + + + + + @@ -347,7 +360,8 @@ rules: {}, ids: [], code: '', - regulatoryEngineerList: [] + regulatoryEngineerList: [], + engineeringInterfacePersonList:[], } }, mounted() { @@ -355,6 +369,7 @@ methods: { dutyTerritoryChange(event) { this.formInline.regulationOwnerId = undefined + this.formInline.engineeringInterfacePerson = undefined this.formInline = {...this.formInline} this.queryPersonByProject(event) }, @@ -366,6 +381,7 @@ getAction('/project/projectRelatedPersonnel/queryPersonByProjectId', query).then((res) => { if (res.success) { this.regulatoryEngineerList = res.result.lawEngineerList //法规工程师 + this.engineeringInterfacePersonList = res.result.engineeringInterfacePersonList //工程接口人 } }) }, @@ -375,6 +391,8 @@ }, edit(data, code) { this.visible = true + this.regulatoryEngineerList = [] + this.engineeringInterfacePersonList = [] this.getDeliverableTree() this.code = code this.$nextTick(() => { diff --git a/jero-web/src/views/projectManagement/components/listEditModel.vue b/jero-web/src/views/projectManagement/components/listEditModel.vue index 7e428bf1b..ed29e8b10 100644 --- a/jero-web/src/views/projectManagement/components/listEditModel.vue +++ b/jero-web/src/views/projectManagement/components/listEditModel.vue @@ -252,26 +252,26 @@ {{$t('engineeringInterfacePerson')}} - - - - - - - - - - - - - - + + + + + + + + + + + {{ item.name }} + + + @@ -1389,7 +1389,7 @@ this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : '' }, PersonnelSelectionChange(value, id) { - this.formInline[value + '_id'] = id + this.formInline[value] = id this.formInline = { ...this.formInline } } } diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index 48c48daf7..44946a6ed 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -472,15 +472,16 @@
* - {{ $t('roleSwitching') }} + {{ $t('expeditionProcess') }}
- - - - - - {{ item.roleName }} + + + + + {{ item.name }} @@ -547,6 +548,26 @@ visibleQuestion: false, confirmLoadingQuestion: false, roleSwitchingList: [], + formInlineQuestion: {}, + rulesRoleQuestion: { + questionStatus: [ + { + required: true, + message: this.$t('expeditionProcess') + this.$t('cannotEmpty'), + trigger: 'change' + } + ] + }, + questionList: [ + { + value: '1', + name: this.$t('designComplianceProcess') + }, + { + value: '2', + name: this.$t('validationComplianceProcess') + } + ], listTitle: '', orderBy: '1', orderByField: '', @@ -1132,7 +1153,9 @@ dataWarningList: [], completeTaskList: [], requestsNum: 0, - JTextLoading: false + JTextLoading: false, + questionIdList: [], + questionWarning: [] } }, @@ -1481,14 +1504,46 @@ }) }, + handleOkQuestion() { + this.$refs.ruleFormQuestion.validate(valid => { + let formInlineQuestion = JSON.parse(JSON.stringify(this.formInlineQuestion)) + if (formInlineQuestion.questionStatus && formInlineQuestion.questionStatus.length > 0) { + formInlineQuestion.questionStatus = formInlineQuestion.questionStatus.join(',') + } + let query = { + ids: this.questionIdList.join(','), + projectLibraryId: this.$route.query.id, + questionStatus: formInlineQuestion.questionStatus + } + this.confirmLoadingQuestion = true + postAction('project/projectLawsInventoryEO/expediting', query).then((res) => { + if (res.success) { + this.$message.success(this.$t('OperationSuccessful')) + this.selectedRowKeys = [] + this.getList() + this.visibleQuestion = false + this.confirmLoadingQuestion = false + if (this.questionWarning && this.questionWarning.length > 0) { + this.promptInformation(this.questionWarning) + } + } else { + this.$message.warning(this.$t('operationFailed')) + } + }) + }) + }, + handleCancelQuestion() { + this.visibleQuestion = false + }, //催办 questionClick() { if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) let isTrue let content = [] - let idList = [] + this.questionIdList = [] let detailedWarningList = [] + this.questionWarning = [] for (let i = 0; i < this.dataSource.length; i++) { for (let j = 0; j < selectedRowKeys.length; j++) { if (this.dataSource[i].id == selectedRowKeys[j]) { @@ -1497,72 +1552,40 @@ } } for (let i = 0; i < content.length > 0; i++) { - if (this.roleSwitchingCode == '0') { - //为studio角色时在通过判断流程状态是否为清单待校核 - if (content[i].verifyFlowStatus == 'List to be checked' || - content[i].designFlowStatus == 'List to be checked') { - idList.push(content[i].id) - } else { - detailedWarningList.push( - < div > { content[i].serialNumber + this.$t('pleaseSelectTheDataverificationVerified') } < /div> - ) - } - } else if (this.roleSwitchingCode == '1') { - if (content[i].verifyFlowStatus == 'Task to be confirmed' || - content[i].designFlowStatus == 'Task to be confirmed') { - idList.push(content[i].id) - } else { - detailedWarningList.push( - < div > { content[i].serialNumber + this.$t('pleaseSelectTheDataverificationVerified') } < /div> - ) - } - } else if (this.roleSwitchingCode == '30') { - if (content[i].verifyFlowStatus == 'List to be checked' || - content[i].designFlowStatus == 'List to be checked') { - idList.push(content[i].id) - } else { - detailedWarningList.push( - < div > { content[i].serialNumber + this.$t('pleaseSelectTheDataverificationVerified') } < /div> - ) - } + if (content[i].verifyFlowStatus == 'List to be checked' || + content[i].designFlowStatus == 'List to be checked' || + content[i].verifyFlowStatus == 'Task to be confirmed' || + content[i].designFlowStatus == 'Task to be confirmed' || + content[i].verifyFlowStatus == 'Results to be submitted' || + content[i].designFlowStatus == 'Results to be submitted' || + content[i].verifyFlowStatus == 'Results to be reviewed' || + content[i].designFlowStatus == 'Results to be reviewed') { + this.questionIdList.push(content[i].id) + } else { + detailedWarningList.push(content[i].serialNumber) } } - if (idList && idList.length > 0) { - this.questionAction(idList, detailedWarningList) + if (detailedWarningList && detailedWarningList.length > 0) { + this.questionWarning.push( + < div > { + detailedWarningList + .join(',') + this.$t('conditionsNotMet') + this.$t('onlyDataInTheReminderProcessBanBeProcessed') + } < /div>) + } + if (this.questionIdList && this.questionIdList.length > 0) { + this.visibleQuestion = true + this.$nextTick(() => { + this.formInlineQuestion = {} + this.$refs.ruleFormQuestion.clearValidate() + }) } else { - this.promptInformation(detailedWarningList) + this.promptInformation(this.questionWarning) } } else { this.$message.warning(this.$t('selectLeastOne')) } }, - //催办的接口 - questionAction(selectedRowKeys, detailedWarningList) { - let _this = this - this.$confirm({ - content: _this.$t('ConfirmQuestion'), - onOk() { - let query = { - ids: selectedRowKeys.join(','), - projectLibraryId: _this.$route.query.id - } - postAction('project/projectLawsInventoryEO/expediting', query).then((res) => { - if (res.success) { - _this.$message.success(_this.$t('OperationSuccessful')) - _this.selectedRowKeys = [] - _this.getList() - if (detailedWarningList && detailedWarningList.length > 0) { - _this.promptInformation(detailedWarningList) - } - } else { - _this.$message.warning(_this.$t('operationFailed')) - } - }) - } - }) - }, - //定版 fixedPlateClick() { if (this.dataSource && this.dataSource.length > 0) { @@ -1885,6 +1908,7 @@ } }) }, + getList() { let roleCode = this.roleSwitchingCode let queryParam = JSON.parse(JSON.stringify(this.queryParam)) @@ -1940,6 +1964,7 @@ } }) }, + onCheckAllChange(e) { this.checkedList = e.target.checked ? this.customizeList.map(item => item.field) : [] this.selectedValue = this.checkedList @@ -1985,6 +2010,7 @@ } }) }, + getPersonnelList() { this.getList() }, @@ -2174,6 +2200,7 @@ this.$message.warning(this.$t('selectLeastOne')) } }, + submitClick(dataList, num) { let content = [] let designList = [] @@ -2236,6 +2263,7 @@ _this.submitAdmin(dataList) } }, + submitAdmin(dataList) { let _this = this this.requestsNum = 0 @@ -2333,6 +2361,7 @@ postAction('/project/projectCommentEO/add', query).then((res) => { }) }, + rejectCauseAdd(rejectCause, ids) { let rejectTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss') let query = { @@ -2346,6 +2375,7 @@ }) }, + handleCancelComment() { this.visibleComment = false }, @@ -2385,9 +2415,11 @@ } }) }, + customizeClick() { this.$refs.customizeListRef.transferModel(this.columnsAll) }, + bringInRelevantPersonnelClick() { let _this = this if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {