Ver Fonte

盖章显示条件,人脸条件修改

xuefy há 3 anos atrás
pai
commit
f6f63bf7d9

+ 62 - 44
front-vue/src/views/service/credit/credit.vue

@@ -238,25 +238,28 @@
             v-hasPermi="['finance:record:add']"
             v-if="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
           >去融资</el-button>
-          <!--核心开立+融信状态为空+核心审批通过||
-          核心开立+融信状态待签收+融资审批通过||
-          融资申请+融信待确权+核心审批通过||
-          融资申请+融信待签收+融资审批通过||
-          融资开立+融信状态为空+融资审批状态通过||
-          融资开立+融信待确权+核心审批通过
-          -->
-          <el-button
+         <!--核心开立:核心审批通过+其他状态为空||
+            补充资料:融资方通过+核心通过+平台通过+待签收||
+            融资开立:融资方通过+平台通过+其他为空||
+            确权:融资方通过+核心通过+平台通过+待确权
+         -->
+         <!--  <el-button
+            size="mini"
+            type="text"
+            icon="el-icon-edit"
+            @click="seal(scope.row)"
+            v-hasPermi="['credit:credit:seal']"
+            v-if="(scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '00')"
+          >盖章</el-button> -->
+           <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['credit:credit:seal']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '01') 
-                  ||(scope.row.zfiCreateType == '1' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01') 
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='00' &&  scope.row.zfiCoreStatus == '01')
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
           >盖章</el-button>
           <el-button
             size="mini"
@@ -509,18 +512,21 @@
             v-hasPermi="['credit:credit:goFinance']"
             v-if="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
           >去融资</el-button>
+           <!--核心开立:核心审批通过+其他状态为空||
+            补充资料:融资方通过+核心通过+平台通过+待签收||
+            融资开立:融资方通过+平台通过+其他为空||
+            确权:融资方通过+核心通过+平台通过+待确权
+         -->
           <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['credit:credit:seal']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '01') 
-                  ||(scope.row.zfiCreateType == '1' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01') 
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='00' &&  scope.row.zfiCoreStatus == '01')
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
+            v-if="(scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '00')"
           >盖章</el-button>
           <el-button
             size="mini"
@@ -773,18 +779,21 @@
             v-hasPermi="['credit:credit:goFinance']"
             v-if="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
           >去融资</el-button>
+          <!--核心开立:核心审批通过+其他状态为空||
+            补充资料:融资方通过+核心通过+平台通过+待签收||
+            融资开立:融资方通过+平台通过+其他为空||
+            确权:融资方通过+核心通过+平台通过+待确权
+         -->
           <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['credit:credit:seal']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '01') 
-                  ||(scope.row.zfiCreateType == '1' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01') 
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='00' &&  scope.row.zfiCoreStatus == '01')
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
+            v-if="(scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '00')"
           >盖章</el-button>
             <el-button
             size="mini"
@@ -1037,18 +1046,21 @@
             v-hasPermi="['credit:credit:goFinance']"
             v-if="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
           >去融资</el-button>
+         <!--核心开立:核心审批通过+其他状态为空||
+            补充资料:融资方通过+核心通过+平台通过+待签收||
+            融资开立:融资方通过+平台通过+其他为空||
+            确权:融资方通过+核心通过+平台通过+待确权
+         -->
           <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['credit:credit:seal']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '01') 
-                  ||(scope.row.zfiCreateType == '1' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01') 
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='00' &&  scope.row.zfiCoreStatus == '01')
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
+            v-if="(scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '00')"
           >盖章</el-button>
           <el-button
             size="mini"
@@ -1301,18 +1313,21 @@
             v-hasPermi="['credit:credit:goFinance']"
             v-if="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
           >去融资</el-button>
+           <!--核心开立:核心审批通过+其他状态为空||
+            补充资料:融资方通过+核心通过+平台通过+待签收||
+            融资开立:融资方通过+平台通过+其他为空||
+            确权:融资方通过+核心通过+平台通过+待确权
+         -->
           <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['credit:credit:seal']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '01') 
-                  ||(scope.row.zfiCreateType == '1' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01') 
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='00' &&  scope.row.zfiCoreStatus == '01')
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
+            v-if="(scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '00')"
           >盖章</el-button>
           <el-button
             size="mini"
@@ -1565,18 +1580,21 @@
             v-hasPermi="['credit:credit:goFinance']"
             v-if="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'"
           >去融资</el-button>
+         <!--核心开立:核心审批通过+其他状态为空||
+            补充资料:融资方通过+核心通过+平台通过+待签收||
+            融资开立:融资方通过+平台通过+其他为空||
+            确权:融资方通过+核心通过+平台通过+待确权
+         -->
           <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="seal(scope.row)"
             v-hasPermi="['credit:credit:seal']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '01') 
-                  ||(scope.row.zfiCreateType == '1' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01') 
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='00' &&  scope.row.zfiCoreStatus == '01')
-                  ||(scope.row.zfiCreateType == '0' &&  scope.row.zfiStatus =='01' &&  scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '01')
-                  ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
+            v-if="(scope.row.zfiCoreStatus == '01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == null || scope.row.zfiPlatformStatus == 'null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiPlatformStatus == '01' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null') && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' ||  scope.row.zfiStatus == null))||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '01' &&  scope.row.zfiStatus == '00')"
           >盖章</el-button>
           <el-button
             size="mini"

+ 28 - 13
front-vue/src/views/service/credit/creditSeal.vue

@@ -243,10 +243,6 @@ export default {
             isShow:false,
             //获取类型
             createType:'',
-            //获取融信的类型
-            zfiStatus:'',
-            //融资方审批状态
-            zfiSupplierStatus:'',
             //合同附件
             contractFileList:[],
             //发票附件
@@ -281,7 +277,15 @@ export default {
             wordUrl: "",
             show:false,
             heid:false,
-            auth_timer : null
+            auth_timer : null,
+            //融资方审批状态
+            zfiSupplierStatus:'',
+            //核心审批状态
+            zfiCoreStatus:'',
+            //平台审批状态
+            zfiPlatformStatus:'',
+            //融信状态
+            zfiStatus:''
         };
     },
     activated() {
@@ -296,6 +300,10 @@ export default {
                  this.zfiStatus = response.data.financeInf.zfiStatus;
                  //融资方审批状态
                  this.zfiSupplierStatus =  response.data.financeInf.zfiSupplierStatus;
+                 //平台审批状态
+                 this.zfiPlatformStatus =  response.data.financeInf.zfiPlatformStatus;
+                 //核心审批状态
+                 this.zfiCoreStatus = response.data.financeInf.zfiCoreStatus;
                 //意愿类型
                 this.zfpAuthType = response.data.zfpAuthType;
                 this.zfpAuthTypeInit = response.data.zfpAuthType;
@@ -507,19 +515,26 @@ export default {
     //选择类型
     selectType(){
         this.resetUpdate();
-
-        //可以直接盖章的
-        if( (this.zfiCreateType =='0' && this.zfiStatus =='01' && this.zfiSupplierStatus =='01')
-            || (this.zfiCreateType =='1' && this.zfiStatus =='01' && this.zfiSupplierStatus =='01')){
-                //直接盖章
-                this.contractSigning();
-        }else{
-             //选择签署意愿
+        /**
+         * 申请确权:融资审批通过+核心通过+平台通过+融信待确权||
+         * 核心开立:核心审批通过+其余状态为空
+         * 融资开立:融资通过+平台通过+其余状态为空
+         * 
+         */
+        //调用人脸
+        if( (this.zfiSupplierStatus == '01' && this.zfiCoreStatus == '01' && this.zfiPlatformStatus == '01' && this.zfiStatus == '00') ||
+            (this.zfiCoreStatus == '01' && (this.zfiSupplierStatus == '' || this.zfiSupplierStatus == null || this.zfiSupplierStatus == 'null') && (this.zfiPlatformStatus == '' || this.zfiPlatformStatus == null || this.zfiPlatformStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))||
+            (this.zfiSupplierStatus == '01' && this.zfiPlatformStatus == '01' && (this.zfiCoreStatus == '' || this.zfiCoreStatus == null || this.zfiCoreStatus == 'null') && (this.zfiStatus == '' || this.zfiStatus == null || this.zfiStatus == 'null'))){
+            //选择签署意愿
               if(this.zfpAuthType == "00"){
                      this.confirmIsShow = true;
                 }else{
                     this.checking();
                 }
+
+        }else{
+            //直接盖章
+            this.contractSigning();     
         }
     },
     //文件下载