xuefy 3 vuotta sitten
vanhempi
commit
b38f97c47a
1 muutettua tiedostoa jossa 69 lisäystä ja 62 poistoa
  1. 69 62
      front-vue/src/views/service/credit/confirmationAudit.vue

+ 69 - 62
front-vue/src/views/service/credit/confirmationAudit.vue

@@ -1014,75 +1014,82 @@ export default {
     },
     //确权
     confirmApproval(){
+        //核心确权通过,直接盖章
+        if(this.form.zfiCoreStatus == '01'){
+            //预览文件
+            this.getContractFile();
+        }else{
+                this.$refs["form"].validate(valid => {
+                
+                if(!this.form.zfiCoreQuotaId){
+                        this.$message({
+                            message: '请选择授信额度',
+                            type: 'warning'
+                        });
+                        return;
+                }
 
-         this.$refs["form"].validate(valid => {
-              
-            if(!this.form.zfiCoreQuotaId){
-                    this.$message({
-                        message: '请选择授信额度',
-                        type: 'warning'
-                    });
-                    return;
-            }
-
-            if(!this.form.zfiEffectiveDate){
-                    this.$message({
-                        message: '请选择签发有效期',
-                        type: 'warning'
-                    });
-                    return;
-            }
-
-            if(!this.form.zfiExpireDate){
-                    this.$message({
-                        message: '请选择承诺还款日',
-                        type: 'warning'
-                    });
-                    return;
-            }
+                if(!this.form.zfiEffectiveDate){
+                        this.$message({
+                            message: '请选择签发有效期',
+                            type: 'warning'
+                        });
+                        return;
+                }
 
-            //融信申请
-            if(this.zfiCreateType == '0'){
-                    if(parseFloat(this.form.zfiAmount) < parseFloat(this.zfpMinimumAmount)){
+                if(!this.form.zfiExpireDate){
                         this.$message({
-                                message: '签发金额不可小于产品的最小融资金额',
-                                type: 'warning'
-                            });
-                            return;
-                    }
-                if(parseFloat(this.form.zfiAmount) > parseFloat(this.availableAmt)){
+                            message: '请选择承诺还款日',
+                            type: 'warning'
+                        });
+                        return;
+                }
+
+                //融信申请
+                if(this.zfiCreateType == '0'){
+                        if(parseFloat(this.form.zfiAmount) < parseFloat(this.zfpMinimumAmount)){
                             this.$message({
-                                    message: '签发金额不可大于可用金额',
+                                    message: '签发金额不可小于产品的最小融资金额',
                                     type: 'warning'
                                 });
                                 return;
-                        }   
-            }
-                   
-            if (valid) {
-               const loading = this.$loading({
-                        lock: true,
-                        text: 'Loading',
-                        background: 'rgba(0, 0, 0,0)'
-                    });
-                    this.form.flag = '00';
-                    //产品
-                    this.form.zfpId = this.zfpId;
-                    //利率
-                    this.form.zfiRate = this.zfpcrRate;
-                    //最小融资金额
-                    this.form.zfpMinimumAmount = this.zfpMinimumAmount;
-                    //可用金额
-                    this.form.availableAmt = this.availableAmt;
-                    approveCredit(this.form).then(response => {
-                        loading.close();
-                        //预览文件
-                        this.getContractFile();
-                    }).catch((response)=>{
-                        loading.close();
-                    });
-            }
-        });
+                        }
+                    if(parseFloat(this.form.zfiAmount) > parseFloat(this.availableAmt)){
+                                this.$message({
+                                        message: '签发金额不可大于可用金额',
+                                        type: 'warning'
+                                    });
+                                    return;
+                            }   
+                }
+                    
+                if (valid) {
+                const loading = this.$loading({
+                            lock: true,
+                            text: 'Loading',
+                            background: 'rgba(0, 0, 0,0)'
+                        });
+                        this.form.flag = '00';
+                        //产品
+                        this.form.zfpId = this.zfpId;
+                        //利率
+                        this.form.zfiRate = this.zfpcrRate;
+                        //最小融资金额
+                        this.form.zfpMinimumAmount = this.zfpMinimumAmount;
+                        //可用金额
+                        this.form.availableAmt = this.availableAmt;
+                        approveCredit(this.form).then(response => {
+                            loading.close();
+                            //预览文件
+                            this.getContractFile();
+                        }).catch((response)=>{
+                            loading.close();
+                        });
+                }
+            });
+        }
+
+         
     },
     //获取合同文件
     getContractFile(){