فهرست منبع

融信增加删除,盖章新增拒签,审批挪到后台

xuefy 3 سال پیش
والد
کامیت
22764ce859

+ 19 - 0
front-vue/src/api/service/credit/creditHandle.js

@@ -44,4 +44,23 @@ export function creditRefuse(data){
       method: 'put',
       data: data
     })
+  }
+
+
+//删除
+export function creditDel(data){
+    return request({
+      url: '/sc-service/ownCreditHandle/creditDel',
+      method: 'put',
+      data: data
+    })
+  }
+
+//盖章拒签
+export function sealRefuse(data){
+    return request({
+      url: '/sc-service/ownCreditHandle/sealRefuse',
+      method: 'put',
+      data: data
+    })
   }

+ 150 - 285
front-vue/src/views/service/credit/credit.vue

@@ -171,19 +171,28 @@
             @click="handleDetail(scope.row)"
             v-hasPermi="['credit:credit:query']"
           >详情</el-button>
+          <!--
+            融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
+            融资状态审批通过+核心状态为空+平台状态审批通过+融信平台退回||
+            融资审批通过+核心审批拒绝+平台审批通过+融信待确权
+            融资审批状态空+核心审批拒绝+平台空+融信空||
+            融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
+            融资审批审批通过+核心审批通过+平台拒绝+融信待签收
+          -->
            <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['credit:credit:update']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '03') 
-                  || (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null'))
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '03')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')"
+            v-if="(scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == 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 == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
+                  ((scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' ||  scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (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 == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' ||  scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
           >修改</el-button>
+          <!--融资申请+融信状态待确权+核心审批状态为空-->
            <el-button
             size="mini"
             type="text"
@@ -193,6 +202,7 @@
             v-if="scope.row.zfiCreateType == '0' && scope.row.zfiStatus == '00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null')"
           >确权</el-button>
           <!--原补充资料-->
+          <!--核心开立+融信状态为待签收+融资审批状态为空-->
           <el-button
             size="mini"
             type="text"
@@ -201,6 +211,7 @@
             v-hasPermi="['credit:credit:addInfor']"
             v-if="scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null')"
           >签收</el-button>
+          <!--融资申请+融信状态待签收+融资审批状态为空-->
           <el-button
             size="mini"
             type="text"
@@ -209,6 +220,7 @@
             v-hasPermi="['credit:credit:signFor']"
             v-if="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') "
           >签收</el-button>
+          <!--融资申请+融信状态待签收+融资审批状态为空-->
           <el-button
             size="mini"
             type="text"
@@ -217,6 +229,7 @@
             v-hasPermi="['credit:credit:refuse']"
             v-if="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' && (scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == null || scope.row.zfiSupplierStatus == 'null') "
           >拒签</el-button>
+          <!--生效-->
           <el-button
             size="mini"
             type="text"
@@ -225,6 +238,13 @@
             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
             size="mini"
             type="text"
@@ -239,49 +259,12 @@
                   ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
           >盖章</el-button>
           <el-button
-           v-if="(scope.row.zfiCreateType == '1') &&
-            (scope.row.zfiStatus == null || scope.row.zfiStatus == '')
-            && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02') 
-            && (scope.row.zfiCoreId == companyId)"
             size="mini"
             type="text"
-            icon="el-icon-s-check"
-            @click="handleExam(scope.row)"
-            v-hasPermi="['service:financeApply:coreApproval']"
-          >核心开立审批</el-button>
-          <el-button
-            v-if="scope.row.zfiStatus == '03' && scope.row.zfiCoreId == companyId 
-            && (scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2')"
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleConfirmationExam(scope.row)"
-            v-hasPermi="['service:financeApply:confirmationApproval']"
-          >确权审批</el-button>
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="handleApproval(scope.row)"
-            v-hasPermi="['credit:credit:approval']"
-            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiSupplierStatus =='03'"
-          >融资申请审批</el-button>
-     <!--      <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleApprovals(scope.row)"
-            v-hasPermi="['credit:information:approval']"
-            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiSupplierStatus=='03'"
-          >补充资料审批</el-button> -->
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="openApproval(scope.row)"
-            v-hasPermi="['credit:finance:approval']"
-            v-if="scope.row.zfiCreateType == '2' && scope.row.zfiSupplierStatus =='03'"
-          >融资开立审批</el-button>
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['credit:credit:del']"
+          >删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -464,18 +447,26 @@
             @click="handleDetail(scope.row)"
             v-hasPermi="['credit:credit:query']"
           >详情</el-button>
+           <!--
+            融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
+            融资状态审批通过+核心状态为空+平台状态审批通过+融信平台退回||
+            融资审批通过+核心审批拒绝+平台审批通过+融信待确权
+            融资审批状态空+核心审批拒绝+平台空+融信空||
+            融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
+            融资审批审批通过+核心审批通过+平台拒绝+融信待签收
+          -->
            <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['credit:credit:update']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '03') 
-                  || (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null'))
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '03')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')"
+            v-if="(scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == 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 == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
+                  ((scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' ||  scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (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 == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' ||  scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
           >修改</el-button>
            <el-button
             size="mini"
@@ -532,49 +523,12 @@
                   ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
           >盖章</el-button>
           <el-button
-           v-if="(scope.row.zfiCreateType == '1') &&
-            (scope.row.zfiStatus == null || scope.row.zfiStatus == '')
-            && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02') 
-            && (scope.row.zfiCoreId == companyId)"
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleExam(scope.row)"
-            v-hasPermi="['service:financeApply:coreApproval']"
-          >核心开立审批</el-button>
-          <el-button
-            v-if="scope.row.zfiStatus == '03' && scope.row.zfiCoreId == companyId 
-            && (scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2')"
             size="mini"
             type="text"
-            icon="el-icon-s-check"
-            @click="handleConfirmationExam(scope.row)"
-            v-hasPermi="['service:financeApply:confirmationApproval']"
-          >确权审批</el-button>
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="handleApproval(scope.row)"
-            v-hasPermi="['credit:credit:approval']"
-            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiSupplierStatus =='03'"
-          >融资申请审批</el-button>
-      <!--     <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleApprovals(scope.row)"
-            v-hasPermi="['credit:information:approval']"
-            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiSupplierStatus=='03'"
-          >补充资料审批</el-button> -->
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="openApproval(scope.row)"
-            v-hasPermi="['credit:finance:approval']"
-            v-if="scope.row.zfiCreateType == '2' && scope.row.zfiSupplierStatus =='03'"
-          >融资开立审批</el-button>
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['credit:credit:del']"
+          >删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -757,18 +711,26 @@
             @click="handleDetail(scope.row)"
             v-hasPermi="['credit:credit:query']"
           >详情</el-button>
+         <!--
+            融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
+            融资状态审批通过+核心状态为空+平台状态审批通过+融信平台退回||
+            融资审批通过+核心审批拒绝+平台审批通过+融信待确权
+            融资审批状态空+核心审批拒绝+平台空+融信空||
+            融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
+            融资审批审批通过+核心审批通过+平台拒绝+融信待签收
+          -->
            <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['credit:credit:update']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '03') 
-                  || (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null'))
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '03')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')"
+            v-if="(scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == 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 == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
+                  ((scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' ||  scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (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 == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' ||  scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
           >修改</el-button>
            <el-button
             size="mini"
@@ -824,50 +786,13 @@
                   ||(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
-           v-if="(scope.row.zfiCreateType == '1') &&
-            (scope.row.zfiStatus == null || scope.row.zfiStatus == '')
-            && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02') 
-            && (scope.row.zfiCoreId == companyId)"
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleExam(scope.row)"
-            v-hasPermi="['service:financeApply:coreApproval']"
-          >核心开立审批</el-button>
-          <el-button
-            v-if="scope.row.zfiStatus == '03' && scope.row.zfiCoreId == companyId 
-            && (scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2')"
+            <el-button
             size="mini"
             type="text"
-            icon="el-icon-s-check"
-            @click="handleConfirmationExam(scope.row)"
-            v-hasPermi="['service:financeApply:confirmationApproval']"
-          >确权审批</el-button>
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="handleApproval(scope.row)"
-            v-hasPermi="['credit:credit:approval']"
-            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiSupplierStatus =='03'"
-          >融资申请审批</el-button>
-       <!--    <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleApprovals(scope.row)"
-            v-hasPermi="['credit:information:approval']"
-            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiSupplierStatus=='03'"
-          >补充资料审批</el-button> -->
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="openApproval(scope.row)"
-            v-hasPermi="['credit:finance:approval']"
-            v-if="scope.row.zfiCreateType == '2' && scope.row.zfiSupplierStatus =='03'"
-          >融资开立审批</el-button>
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['credit:credit:del']"
+          >删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -1050,18 +975,26 @@
             @click="handleDetail(scope.row)"
             v-hasPermi="['credit:credit:query']"
           >详情</el-button>
+         <!--
+            融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
+            融资状态审批通过+核心状态为空+平台状态审批通过+融信平台退回||
+            融资审批通过+核心审批拒绝+平台审批通过+融信待确权
+            融资审批状态空+核心审批拒绝+平台空+融信空||
+            融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
+            融资审批审批通过+核心审批通过+平台拒绝+融信待签收
+          -->
            <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['credit:credit:update']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '03') 
-                  || (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null'))
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '03')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')"
+            v-if="(scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == 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 == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
+                  ((scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' ||  scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (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 == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' ||  scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
           >修改</el-button>
            <el-button
             size="mini"
@@ -1118,49 +1051,12 @@
                   ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
           >盖章</el-button>
           <el-button
-           v-if="(scope.row.zfiCreateType == '1') &&
-            (scope.row.zfiStatus == null || scope.row.zfiStatus == '')
-            && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02') 
-            && (scope.row.zfiCoreId == companyId)"
             size="mini"
             type="text"
-            icon="el-icon-s-check"
-            @click="handleExam(scope.row)"
-            v-hasPermi="['service:financeApply:coreApproval']"
-          >核心开立审批</el-button>
-          <el-button
-            v-if="scope.row.zfiStatus == '03' && scope.row.zfiCoreId == companyId 
-            && (scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2')"
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleConfirmationExam(scope.row)"
-            v-hasPermi="['service:financeApply:confirmationApproval']"
-          >确权审批</el-button>
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="handleApproval(scope.row)"
-            v-hasPermi="['credit:credit:approval']"
-            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiSupplierStatus =='03'"
-          >融资申请审批</el-button>
-       <!--    <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleApprovals(scope.row)"
-            v-hasPermi="['credit:information:approval']"
-            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiSupplierStatus=='03'"
-          >补充资料审批</el-button> -->
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="openApproval(scope.row)"
-            v-hasPermi="['credit:finance:approval']"
-            v-if="scope.row.zfiCreateType == '2' && scope.row.zfiSupplierStatus =='03'"
-          >融资开立审批</el-button>
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['credit:credit:del']"
+          >删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -1343,18 +1239,26 @@
             @click="handleDetail(scope.row)"
             v-hasPermi="['credit:credit:query']"
           >详情</el-button>
+         <!--
+            融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
+            融资状态审批通过+核心状态为空+平台状态审批通过+融信平台退回||
+            融资审批通过+核心审批拒绝+平台审批通过+融信待确权
+            融资审批状态空+核心审批拒绝+平台空+融信空||
+            融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
+            融资审批审批通过+核心审批通过+平台拒绝+融信待签收
+          -->
            <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['credit:credit:update']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '03') 
-                  || (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null'))
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '03')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')"
+            v-if="(scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == 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 == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
+                  ((scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' ||  scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (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 == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' ||  scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
           >修改</el-button>
            <el-button
             size="mini"
@@ -1411,49 +1315,12 @@
                   ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
           >盖章</el-button>
           <el-button
-           v-if="(scope.row.zfiCreateType == '1') &&
-            (scope.row.zfiStatus == null || scope.row.zfiStatus == '')
-            && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02') 
-            && (scope.row.zfiCoreId == companyId)"
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleExam(scope.row)"
-            v-hasPermi="['service:financeApply:coreApproval']"
-          >核心开立审批</el-button>
-          <el-button
-            v-if="scope.row.zfiStatus == '03' && scope.row.zfiCoreId == companyId 
-            && (scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2')"
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleConfirmationExam(scope.row)"
-            v-hasPermi="['service:financeApply:confirmationApproval']"
-          >确权审批</el-button>
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="handleApproval(scope.row)"
-            v-hasPermi="['credit:credit:approval']"
-            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiSupplierStatus =='03'"
-          >融资申请审批</el-button>
-       <!--    <el-button
             size="mini"
             type="text"
-            icon="el-icon-s-check"
-            @click="handleApprovals(scope.row)"
-            v-hasPermi="['credit:information:approval']"
-            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiSupplierStatus=='03'"
-          >补充资料审批</el-button> -->
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="openApproval(scope.row)"
-            v-hasPermi="['credit:finance:approval']"
-            v-if="scope.row.zfiCreateType == '2' && scope.row.zfiSupplierStatus =='03'"
-          >融资开立审批</el-button>
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['credit:credit:del']"
+          >删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -1636,18 +1503,26 @@
             @click="handleDetail(scope.row)"
             v-hasPermi="['credit:credit:query']"
           >详情</el-button>
+         <!--
+            融资状态审批拒绝+核心状态为空+平台状态为空+融信状态为空||
+            融资状态审批通过+核心状态为空+平台状态审批通过+融信平台退回||
+            融资审批通过+核心审批拒绝+平台审批通过+融信待确权
+            融资审批状态空+核心审批拒绝+平台空+融信空||
+            融资审批状态审批拒绝+核心审批通过+平台空+融信待签收||
+            融资审批审批通过+核心审批通过+平台拒绝+融信待签收
+          -->
            <el-button
             size="mini"
             type="text"
             icon="el-icon-edit"
             @click="handleUpdate(scope.row)"
             v-hasPermi="['credit:credit:update']"
-            v-if="(scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiCoreStatus == '03') 
-                  || (scope.row.zfiCreateType == '1' && scope.row.zfiStatus=='01' && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == null || scope.row.zfiCoreStatus =='null'))
-                  ||(scope.row.zfiCreateType == '0' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '03')
-                  ||(scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == null || scope.row.zfiStatus =='null') && scope.row.zfiSupplierStatus == '03')"
+            v-if="(scope.row.zfiSupplierStatus == '02' && (scope.row.zfiCoreStatus == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == 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 == '' || scope.row.zfiCoreStatus == 'null' ||  scope.row.zfiCoreStatus == null) && scope.row.zfiPlatformStatus == '02' && scope.row.zfiStatus == '06')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '02' && scope.row.zfiPlatformStatus == '01' && scope.row.zfiStatus == '00')||
+                  ((scope.row.zfiSupplierStatus == '' || scope.row.zfiSupplierStatus == 'null' ||  scope.row.zfiSupplierStatus == null) && scope.row.zfiCoreStatus == '02' && (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 == '02' && scope.row.zfiCoreStatus == '01' && (scope.row.zfiPlatformStatus == '' || scope.row.zfiPlatformStatus == 'null' ||  scope.row.zfiPlatformStatus == null) && scope.row.zfiStatus == '01')||
+                  (scope.row.zfiSupplierStatus == '01' && scope.row.zfiCoreStatus == '01' && scope.row.zfiPlatformStatus == '02'&& scope.row.zfiStatus == '01')"
           >修改</el-button>
            <el-button
             size="mini"
@@ -1704,49 +1579,12 @@
                   ||(scope.row.zfiCreateType == '2' && scope.row.zfiStatus =='00' && scope.row.zfiCoreStatus == '01')"
           >盖章</el-button>
           <el-button
-           v-if="(scope.row.zfiCreateType == '1') &&
-            (scope.row.zfiStatus == null || scope.row.zfiStatus == '')
-            && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02') 
-            && (scope.row.zfiCoreId == companyId)"
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleExam(scope.row)"
-            v-hasPermi="['service:financeApply:coreApproval']"
-          >核心开立审批</el-button>
-          <el-button
-            v-if="scope.row.zfiStatus == '03' && scope.row.zfiCoreId == companyId 
-            && (scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2')"
             size="mini"
             type="text"
-            icon="el-icon-s-check"
-            @click="handleConfirmationExam(scope.row)"
-            v-hasPermi="['service:financeApply:confirmationApproval']"
-          >确权审批</el-button>
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="handleApproval(scope.row)"
-            v-hasPermi="['credit:credit:approval']"
-            v-if="scope.row.zfiCreateType == '0' && scope.row.zfiSupplierStatus =='03'"
-          >融资申请审批</el-button>
-       <!--    <el-button
-            size="mini"
-            type="text"
-            icon="el-icon-s-check"
-            @click="handleApprovals(scope.row)"
-            v-hasPermi="['credit:information:approval']"
-            v-if="scope.row.zfiCreateType == '1' && scope.row.zfiSupplierStatus=='03'"
-          >补充资料审批</el-button> -->
-          <el-button
-            type="text"
-            size="mini"
-            icon="el-icon-s-check"
-            @click="openApproval(scope.row)"
-            v-hasPermi="['credit:finance:approval']"
-            v-if="scope.row.zfiCreateType == '2' && scope.row.zfiSupplierStatus =='03'"
-          >融资开立审批</el-button>
+            icon="el-icon-delete"
+            @click="handleDelete(scope.row)"
+            v-hasPermi="['credit:credit:del']"
+          >删除</el-button>
         </template>
       </el-table-column>
     </el-table>
@@ -1763,7 +1601,7 @@
 
 <script>
 import { listCredit, coreApproval, confirmationApproval, informationApproval,approval,openApproval, getUser } from "@/api/service/credit/credit";
-import {creditRefuse} from "@/api/service/credit/creditHandle";
+import {creditRefuse,creditDel} from "@/api/service/credit/creditHandle";
 import Editor from '@/components/Editor';
 import Cookies from 'js-cookie'
 export default {
@@ -2338,7 +2176,7 @@ export default {
     //拒签
     handleRefuse(row){
       const zfiNumber = row.zfiNumber ;
-      this.$confirm('是否拒签审批融信编号为"' + zfiNumber + '"的数据项?', "警告",{
+      this.$confirm('是否拒签融信编号为"' + zfiNumber + '"的数据项?', "警告",{
           confirmButtonText: "确定",
           cancelButtonText: "取消",
           type: "warning"
@@ -2362,6 +2200,33 @@ export default {
           });
         });
     },
+    //删除
+    handleDelete(row){
+        const zfiNumber = row.zfiNumber ;
+        this.$confirm('是否删除融信编号为"' + zfiNumber + '"的数据项?', "警告",{
+            confirmButtonText: "确定",
+            cancelButtonText: "取消",
+            type: "warning"
+          }).then(function() {
+            //删除
+            return creditDel(row); 
+          }).then(() => {
+            this.getList();
+            this.getListSign();
+            this.getListFinancing();
+            this.getListOpening();
+            this.getListFinanced();
+            this.getListInvalid();
+            this.msgSuccess("删除成功");
+          })
+          .catch(() => {
+            this.$message({
+              type: "warning",
+              message: "已取消",
+            
+            });
+          });
+    },
     //列表格式化金额
     moneyFormat(row, column, cellValue) {
         if(cellValue == null || cellValue== undefined || cellValue == ''){

+ 22 - 4
front-vue/src/views/service/credit/creditSeal.vue

@@ -152,6 +152,7 @@
         <div class="footer" style="float: right;
             margin-bottom:2px;">
             <el-button type="success" @click="getContractFile">预览文件</el-button>
+            <el-button type="info" @click="refuse">拒签</el-button>
             <el-button type="primary" @click="selectType">签署</el-button>
             <el-button @click="cancel">取消</el-button>
         </div>
@@ -208,7 +209,7 @@
 <script>
 import {getCreditDetail,getFile} from "@/api/service/credit/credit";
 import {accAdd} from "@/utils/calculation";
-import {getContractFile} from "@/api/service/credit/creditHandle";
+import {getContractFile,sealRefuse} from "@/api/service/credit/creditHandle";
 import {sendMessage,checkCode,faceAuth,checkFaceAuth,contractSigning} from "@/api/service/credit/message";
 import pdfShow from "./pdfShow";
 import {getToken} from "@/utils/auth";
@@ -738,9 +739,26 @@ export default {
         }
         this.openFile = true;
     },
-
-
-
+    //盖章拒签
+    refuse(){
+           this.$refs["form"].validate(valid => {
+            if (valid) {
+               const loading = this.$loading({
+                        lock: true,
+                        text: 'Loading',
+                        background: 'rgba(0, 0, 0,0)'
+                    });
+                    sealRefuse(this.form).then(response => {
+                        loading.close();
+                        this.msgSuccess("拒签成功");
+                        this.$store.dispatch("tagsView/delView", this.$route);
+                        this.$router.go(-1);
+                    }).catch((response)=>{
+                        loading.close();
+                    });
+            }
+        });
+    }
     }
 };
 </script>