From 510c8944c97405561c394336cb53535c93ad7621 Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Mon, 6 Jun 2022 15:15:05 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E6=9D=83=E9=99=90=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ParameterItemCollectionList.vue | 30 +++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index 63e469f5f..5ce678cb8 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -338,7 +338,8 @@ export default { homoJurisdictionReturn() { // 定义开关 0为没有权限 1为有权限 let flag = 1 - if(this.dre) { + if(this.homo) { + console.log('认证工程师') if(this.selectedRowKeysValue.length == 0) { flag = 0 this.$message.warning(this.$t('selectLeastOne')) @@ -356,7 +357,8 @@ export default { } // 工程接口人 退回 权限 // 待工程接口人处理 填写人退回 - }else if(this.sdt){ + }else if(this.sdt && this.dre==0){ + console.log('仅仅工程接口人') if(this.selectedRowKeysValue.length == 0) { flag = 0 this.$message.warning(this.$t('selectLeastOne')) @@ -372,7 +374,8 @@ export default { this.$message.warning(this.$t('engineeringInterfacePerson')+this.$t('and')+this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('toHavePermission')) } } - } else if(this.dre){ + } else if(this.dre && this.sdt==0){ + console.log('仅仅填写人') // 填写人 // 待填写 认证工程师退回 状态 if(this.selectedRowKeysValue.length == 0) { @@ -390,7 +393,24 @@ export default { this.$message.warning(this.$t('operatethisbutton')) } } - } else { + } else if(this.dre && this.sdt) { + console.log('工程接口人+填写人') + // 工程接口人+填写人 + if(this.selectedRowKeysValue.length == 0) { + flag = 0 + this.$message.warning(this.$t('selectLeastOne')) + } else { + this.selectedRowKeysValue.forEach((item, index) => { + if(item.state !== '待工程接口人处理' && item.state !== '填写人退回' && item.state !== '待填写' && item.state !== '认证工程师退回') { + flag = 0 + } + }) + if(flag === 1) { + flag = 1 + } else { + this.$message.warning(this.$t('Statusis')+this.$t('handledInterface')+this.$t('Filledreturn')+this.$t('completed')+this.$t('ReturnedEngineer')+this.$t('toHavePermission')) + } + } this.$message.success(this.$t('operatethisbutton')) } return flag @@ -866,7 +886,7 @@ export default { console.log(res) if (res.data.success) { _this.$message.success(res.data.result) - _this.getTableList() + _this.GetgetTableList() _this.selectedRowKeysValue=[] }else{ _this.$message.warning(_this.$t('operationFailed'))