Ver código fonte

融资企业申请审批

ch 3 anos atrás
pai
commit
29b995ac10

+ 9 - 1
front-vue/src/api/service/credit/credit.js

@@ -119,4 +119,12 @@ export function coreApproval(row) {
    method: 'put',
    data: row
  })
-}
+}
+///融资企业申请融信提交审批
+export function approval(data){
+    return request({
+      url: '/sc-service/financeInf/submitApproval',
+      method: 'put',
+      data: data
+    })
+  }

+ 40 - 5
front-vue/src/views/service/credit/credit.vue

@@ -215,14 +215,22 @@
             v-hasPermi="['credit:credit:seal']"
           >盖章</el-button>
           <el-button
-            v-if="(scope.row.zfiCreateType == '1') &&
-                  (scope.row.zfiStatus == null || scope.row.zfiStatus == '' || scope.row.zfiStatus == '03' || scope.row.zfiStatus == '06')
-                  && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02')"
+           v-if="(scope.row.zfiCreateType == '1') &&
+            (scope.row.zfiStatus == null || scope.row.zfiStatus == '')
+            && (scope.row.zfiCoreStatus == '03' || scope.row.zfiCoreStatus == '02')"
             size="mini"
             type="text"
             @click="handleExam(scope.row)"
             v-hasPermi="['service:financeApply:coreApproval']"
-          >提交审批</el-button>
+          >核心开立审批</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>
         </template>
       </el-table-column>
     </el-table>
@@ -499,7 +507,7 @@ export default {
         Cookies.set("/credit/creditSeal/"+zfiId + "/", this.$route.fullPath)
         this.$router.push({ path: "/credit/creditSeal/"+zfiId + "/" });
     },
-    /**提交审批按钮操作*/
+    /**核心开立审批按钮操作*/
     handleExam(row){
       this.$confirm("是否确认提交开立审批?", "警告", {
           confirmButtonText: "确定",
@@ -518,6 +526,33 @@ export default {
           });
         });
     },
+    //融资申请提交审批按钮
+    handleApproval(row) {
+      const zfiNumber = row.zfiNumber;
+      this.$confirm(
+        '是否确认提交审批融信编号为"' + zfiNumber + '"的数据项?',
+        "警告",
+        {
+          confirmButtonText: "确定",
+          cancelButtonText: "取消",
+          type: "warning"
+        }
+      )
+        .then(function() {
+          //提交审批
+          return approval(row);
+        })
+        .then(() => {
+          this.getList();
+          this.msgSuccess("提交审批成功");
+        })
+        .catch(() => {
+          this.$message({
+            type: "warning",
+            message: "已取消提交审批"
+          });
+        });
+    },
     //格式化类型
     typeFormat(row, column) {
       return this.selectDictLabel(this.typeOptions, row.zfiCreateType);