xuefy 4 лет назад
Родитель
Сommit
7948bead00
1 измененных файлов с 8 добавлено и 6 удалено
  1. 8 6
      front-vue/src/views/service/credit/confirmationAudit.vue

+ 8 - 6
front-vue/src/views/service/credit/confirmationAudit.vue

@@ -488,6 +488,8 @@ export default {
             pdfShowDialogs : false,
             pdfFileLists : [],
             parents : this,
+            //确权审批开启
+            result:false
         };
     },
     watch:{
@@ -1062,9 +1064,9 @@ export default {
          var confirmParam = {};
          confirmParam.menuId = "1000000007";
          isOpenApproval(confirmParam).then((response) => {
-             var result = response.data.isOpen;
+              this.result = response.data.isOpen;
             //有确权内部审批
-            if(true == result){
+            if(true == this.result){
                 //获取核心审批状态(拒绝或者状态为空时显示内部审批按钮)
                 if(this.zfiCoreStatus == "02" || this.zfiCoreStatus == "" || this.zfiCoreStatus == "null" || this.zfiCoreStatus == null ){
                     this.isHas = true;
@@ -1086,11 +1088,11 @@ export default {
     },
     //确权
     confirmApproval(){
-        //核心确权通过,直接盖章
-        /* if(this.form.zfiCoreStatus == '01'){
+        //核心确权通过并且开启确权审批,直接盖章
+         if(this.form.zfiCoreStatus == '01' && true == this.result){
             //预览文件
             this.getContractFile(false);
-        }else{ */
+        }else{
             this.$refs["form"].validate(valid => {
 
                 if(!this.form.zfiCoreQuotaId){
@@ -1159,7 +1161,7 @@ export default {
                         });
                 }
             });
-        //}
+        }
 
 
     },