From 0b11d8b4ba753b5179990b00bb2ede728dde2f54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Thu, 18 May 2023 10:29:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B3=95=E8=A7=84=E6=B8=85?= =?UTF-8?q?=E5=8D=95=E9=87=8D=E6=96=B0=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/common/lang/en-us.js | 3 + jero-web/src/common/lang/zh-cn.js | 3 + .../components/listOfRegulations.vue | 44 +- .../components/toResubmitForm.vue | 452 ++++++++++++++++++ 4 files changed, 501 insertions(+), 1 deletion(-) create mode 100644 jero-web/src/views/projectManagement/components/toResubmitForm.vue diff --git a/jero-web/src/common/lang/en-us.js b/jero-web/src/common/lang/en-us.js index 83b73c96f..b0712dada 100644 --- a/jero-web/src/common/lang/en-us.js +++ b/jero-web/src/common/lang/en-us.js @@ -1835,4 +1835,7 @@ module.exports = { expectedDeliveryTime:'Expected Delivery Time', changeAuthor:'Change Author', theProcessThatNeedsToBeReset:'The process that needs to be reset', + toResubmit:'To Resubmit', + selectDesignConformanceAsConformance:'Select Design Conformance verification process state as Conformance or Verify conformance verification process state as conformance obtained data', + submissionProcess:'Submission Process', } \ 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 1b65de92b..b6fe2be81 100644 --- a/jero-web/src/common/lang/zh-cn.js +++ b/jero-web/src/common/lang/zh-cn.js @@ -1936,4 +1936,7 @@ module.exports = { expectedDeliveryTime:'预计交付时间', changeAuthor:'更改作者', theProcessThatNeedsToBeReset:'需要重置的流程', + toResubmit:'重新提交', + selectDesignConformanceAsConformance:'请选择设计符合性确认流程状态为符合或验证符合性确认流程状态为符合的数据', + submissionProcess:'提交流程', } \ 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 f4e1bfebc..08feba3fc 100644 --- a/jero-web/src/views/projectManagement/components/listOfRegulations.vue +++ b/jero-web/src/views/projectManagement/components/listOfRegulations.vue @@ -199,6 +199,12 @@ {{ $t('customize') }} + +
+ + {{ $t('toResubmit') }} +
@@ -712,6 +719,7 @@ import viewFileModel from '@/components/viewFileModel/index' import globalAdvancedQuery from '@/components/globalAdvancedQuery/index' import modifyOperator from './modifyOperator' + import toResubmitForm from './toResubmitForm' import batchSettingPersonnel from './batchSettingPersonnel' import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage' import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' @@ -737,7 +745,8 @@ listOfRegulationsView, viewFileModel, designCompliance, - modifyOperator + modifyOperator, + toResubmitForm }, mixins: [ResizeColumnProvide, ResizeHeader], data() { @@ -3217,6 +3226,39 @@ }, download(item) { downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id, userName: this.userInfo().username }) + }, + toResubmitClick() { + let _this = this + if (this.selectedRowKeys.length == 0) { + this.$message.warning(this.$t('selectLeastOne')) + } else if (this.selectedRowKeys.length > 1) { + this.$message.warning(this.$t('OnlyOneSelected')) + } else if (this.selectedRowKeys.length == 1) { + let dataSource = [] + 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]) { + dataSource.push(this.dataSource[i]) + } + } + } + let isDesign = false + let isVerify = false + if (dataSource[0].designFlowStatus == 'Compliance') { + isDesign = true + } + if (dataSource[0].verifyFlowStatus == 'Compliance') { + isVerify = true + } + if (isDesign || isVerify) { + this.$refs.toResubmitFormRef.getData(dataSource[0], isDesign, isVerify) + } else { + this.$message.warning(this.$t('selectDesignConformanceAsConformance')) + } + } + }, + toResubmitFormForm() { + this.getList() } // profileClick() { // let _this = this diff --git a/jero-web/src/views/projectManagement/components/toResubmitForm.vue b/jero-web/src/views/projectManagement/components/toResubmitForm.vue new file mode 100644 index 000000000..15d25240e --- /dev/null +++ b/jero-web/src/views/projectManagement/components/toResubmitForm.vue @@ -0,0 +1,452 @@ + + + + + \ No newline at end of file