From a84efecf9f0086b97b0193c5642af9915d9fddc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Wed, 22 Mar 2023 10:19:24 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95=E7=9A=84=E5=88=97=E8=A1=A8=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/listOfRegulations.vue | 96 +------------------ .../components/SentList.vue | 12 +-- .../components/circulationHistory.vue | 2 +- .../components/confirmationDrawer.vue | 4 +- .../components/designCompliance.vue | 1 + .../components/doneList.vue | 6 +- .../reviewedByThePersonInCharge.vue | 2 +- 7 files changed, 11 insertions(+), 112 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/listOfRegulations.vue b/jero-web/src/views/projectManagement/components/listOfRegulations.vue index 587a44a6b..1d30390c7 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -863,7 +863,7 @@ headFieldEn: 'Process Status', field: 'designFlowStatusName', affirmFlag: '1', - key: 24 , + key: 24, moduleFlag: '法规清单' }, { @@ -1496,6 +1496,7 @@ this.visibleRoleSwitching = false this.confirmLoadingRoleSwitching = false this.$emit('getRoleSwitch', this.formInlineRoleSwitching.roleSwitchingCode) + this.selectedRowKeys = [] this.getList() } else { this.confirmLoadingRoleSwitching = false @@ -1868,97 +1869,6 @@ } }, - initiateTaskConfirmationClick(name) { - this.timeName = name - this.listTitle = this.$t('taskConfirmationDeadline') - if (this.selectedRowKeys && this.selectedRowKeys.length > 0) { - let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys)) - let isTrue = true - this.TaskSuccessList = [] - this.TaskWarningList = [] - let dataList = [] - for (let i = 0; i < this.dataSource.length; i++) { - for (let j = 0; j < selectedRowKeys.length; j++) { - if (this.dataSource[i].id == selectedRowKeys[j]) { - dataList.push(this.dataSource[i]) - } - } - } - for (let i = 0; i < dataList.length; i++) { - if ((dataList[i].taskAffirmStatus == 'Not started' || dataList[i].taskAffirmStatus == 'Rejected') && - dataList[i].inventoryAffirmStatus == 'Accepted') { - if (dataList[i].engineeringInterfacePerson) { - if (dataList[i].verifyDeliverableType) { - if (dataList[i].verifyDueDate && dataList[i].verifyDutyId - && dataList[i].verifyInitiatorId) { - } else { - this.TaskWarningList.push( - < div > { dataList[i].serialNumber + this.$t('pleaseConformityVerification') } < /div>) - continue - // isTrue = false - // this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('pleaseConformityVerification')) - // return - } - } - - if (dataList[i].prehomoDeliverableType) { - if (dataList[i].prehomoDueDate && dataList[i].prehomoDutyId - && dataList[i].prehomoInitiatorId) { - } else { - this.TaskWarningList.push( - < div > { dataList[i].serialNumber + this.$t('pleaseConfirmedByPrehomo') } < /div>) - continue - // isTrue = false - // this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('pleaseConfirmedByPrehomo')) - // return - } - } - - if (dataList[i].designDeliverableType) { - if (dataList[i].designDueDate && dataList[i].designDutyId - && dataList[i].designInitiatorId) { - } else { - this.TaskWarningList.push( - < div > { dataList[i].serialNumber + this.$t('pleaseDesignConformityConfirmation') } < /div>) - continue - // isTrue = false - // this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('pleaseDesignConformityConfirmation')) - // return - } - } - this.TaskSuccessList.push(dataList[i]) - } else { - this.TaskWarningList.push( < div > { dataList[i].serialNumber + this.$t('theProjectContactEmpty') } < /div>) - // isTrue = false - // this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('theProjectContactEmpty')) - // return - } - } else { - this.TaskWarningList.push( - < div > { dataList[i].serialNumber + this.$t('PleaseTaskConfirmationRejected') } < /div>) - // isTrue = false - // this.$message.warning(this.dataSource[i].serialNumber + ',' + this.$t('PleaseTaskConfirmationRejected')) - // return - } - } - if (this.TaskSuccessList && this.TaskSuccessList.length > 0) { - this.visible = true - this.formInline = {} - } else { - let that = this - this.$warning({ - content: ( - < div > - { that.TaskWarningList } - < /div> - ) - }) - } - } else { - this.$message.warning(this.$t('selectLeastOne')) - } - }, - handleOk() { this.$refs.ruleForm.validate(valid => { if (valid) { @@ -2198,7 +2108,7 @@ if (dataList[i].verifyFlowStatus == 'List to be checked') { if (dataList[i].verifyDeliverableType && dataList[i].verifyDutyId && dataList[i].verifyDueDate) { this.requestsNum++ - _this.startProcess(dataList[i], 2, this.requestsNum) + _this.startProcess(dataList[i], 4, this.requestsNum) } } else { _this.detailedWarningList.push( diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/SentList.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/SentList.vue index 60efd4260..11bef884b 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/SentList.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/SentList.vue @@ -272,11 +272,7 @@ primaryKeyId: row.primaryKeyId, PersonChargeFeedback: row.personChargeFeedback } - let newUrl = this.$router.resolve({ - path: '/taskListProcess', - query: query - }) - window.open(newUrl.href, '_blank') + this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), this.$t('designComplianceReview')) } else if (row.flowType == '4') { row.taskId = row.taskId + '' if (row.taskId.length > 30) { @@ -306,11 +302,7 @@ primaryKeyId: row.primaryKeyId, PersonChargeFeedback: row.personChargeFeedback } - let newUrl = this.$router.resolve({ - path: '/taskListProcess', - query: query - }) - window.open(newUrl.href, '_blank') + this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), this.$t('verificationComplianceReview')) } }, searchQuery(value) { diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/circulationHistory.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/circulationHistory.vue index f8dc8a8e5..6440c1f4d 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/circulationHistory.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/circulationHistory.vue @@ -109,7 +109,7 @@ }, { title: this.$t('Tasknode'), - dataIndex: 'taskDefinitionKeyName', + dataIndex: 'name', align: 'left', width: 180, ellipsis: true diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue index bf3c6a7d6..9b060963e 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/confirmationDrawer.vue @@ -160,7 +160,7 @@ { title: this.$t('areaOfResponsibility'), align: 'left', - dataIndex: '', + dataIndex: 'dutyTerritoryName', ellipsis: true, width: 120 }, @@ -204,7 +204,7 @@ { title: this.$t('areaOfResponsibility'), align: 'left', - dataIndex: '', + dataIndex: 'dutyTerritoryName', ellipsis: true, width: 120 }, diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue index cf6340b07..5c50f1ab1 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/designCompliance.vue @@ -178,6 +178,7 @@ }) }, getList(row, title) { + console.log(row) this.queryData = row this.queryData.isDisplay = JSON.parse(this.queryData.isDisplay) this.loading = true diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/doneList.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/doneList.vue index eb4af51f0..2e44fdfd3 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/doneList.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/doneList.vue @@ -296,11 +296,7 @@ primaryKeyId: row.primaryKeyId, PersonChargeFeedback: row.personChargeFeedback } - let newUrl = this.$router.resolve({ - path: '/taskListProcess', - query: query - }) - window.open(newUrl.href, '_blank') + this.$refs.designComplianceRef.getList(JSON.parse(JSON.stringify(query)), this.$t('verificationComplianceReview')) } }, searchQuery(value) { diff --git a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/reviewedByThePersonInCharge.vue b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/reviewedByThePersonInCharge.vue index f6f2f86e0..c5972a464 100644 --- a/jero-web/src/views/toDoCenter/projectRegulationTasks/components/reviewedByThePersonInCharge.vue +++ b/jero-web/src/views/toDoCenter/projectRegulationTasks/components/reviewedByThePersonInCharge.vue @@ -4,7 +4,7 @@