|
|
@@ -0,0 +1,93 @@
|
|
|
+<template>
|
|
|
+<div>
|
|
|
+ <el-button class="zap-button-plain" size="mini" type="text" @click="handleDetail(scope.row)" v-hasPermi="['credit:credit:query']">详情</el-button>
|
|
|
+ <!--
|
|
|
+ (核心方)核心开立+核心审批拒绝||融资/平台拒绝||
|
|
|
+ (融资方)融资申请+融资审批状态/平台审批拒绝+融信不等于待签收||
|
|
|
+ (融资方)融资开立+融资审批状态/平台审批拒绝||
|
|
|
+ -->
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="handleUpdate(scope.row)" v-hasPermi="['credit:credit:update']" v-show="(scope.row.companyType == '01' && scope.row.zfiCreateType == '1' && (scope.row.zfiCoreStatus == '02' || scope.row.zfiSupplierStatus == '02' || scope.row.zfiPlatformStatus == '02'))||
|
|
|
+ (scope.row.companyType == '02' && scope.row.zfiCreateType == '0' && (scope.row.zfiSupplierStatus == '02' || scope.row.zfiPlatformStatus == '02') && scope.row.zfiStatus != '01')||
|
|
|
+ (scope.row.companyType == '02' && scope.row.zfiCreateType == '2' && (scope.row.zfiSupplierStatus == '02' || scope.row.zfiPlatformStatus == '02'))
|
|
|
+ ">修改</el-button>
|
|
|
+ <!--融信状态待确权且为核心企业
|
|
|
+ -->
|
|
|
+ <el-button class="zap-button-confirmation" size="mini" type="text" @click="handleApprove(scope.row)" v-show="scope.row.zfiStatus == '00' && scope.row.companyType == '01'" v-hasPermi="['credit:credit:approve']">确权</el-button>
|
|
|
+ <!--原补充资料-->
|
|
|
+ <!--核心开立+融信状态为待签收+融资企业 判断内部,平台,审批中不可进入
|
|
|
+ -->
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="handleAddInformation(scope.row)" v-hasPermi="['credit:credit:addInfor']" v-show="scope.row.companyType == '02' && scope.row.zfiCreateType == '1' && (scope.row.zfiStatus=='01' || scope.row.zfiStatus=='06')">签收</el-button>
|
|
|
+ <!--融资申请+融信状态待签收+融资企业
|
|
|
+ 判断是否内部通过 审批中不可进入
|
|
|
+ -->
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="handleSignFor(scope.row)" v-hasPermi="['credit:credit:signFor']" v-show="scope.row.zfiCreateType == '0' && scope.row.zfiStatus=='01' && scope.row.companyType == '02'">签收</el-button>
|
|
|
+ <!--(融资申请+融信状态待签收+融资审批状态不是审批中并且不是审批通过)||
|
|
|
+ (核心开立+融信状态为待签收+(融资审批状态不是审批中并且不是审批通过)或者(平台审批状态不是审批中并且不是审批通过))
|
|
|
+ -->
|
|
|
+ <!--生效-->
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="handleGoFinance(scope.row)" v-hasPermi="['finance:record:add']" v-show="(scope.row.zfiCreateType == '1' ||scope.row.zfiCreateType == '0' || scope.row.zfiCreateType == '2') && scope.row.zfiStatus == '02'">去融资</el-button>
|
|
|
+ <!--(核心)核心开立:核心审批通过+其他状态为空||
|
|
|
+ (融资方)补充资料:融资方通过+核心通过+平台通过+待签收||
|
|
|
+ (融资方)融资开立:融资方通过+平台通过+其他为空||
|
|
|
+ (核心)确权:融资方通过+核心通过+平台通过+待确权
|
|
|
+ -->
|
|
|
+ <!--核心开立
|
|
|
+ 类型为核心开立,状态为空,并且核心企业
|
|
|
+ -->
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="seal(scope.row)" v-hasPermi="['credit:credit:seal']" v-show="scope.row.companyType == '01' && scope.row.zfiCreateType == '1' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null)">开立融信</el-button>
|
|
|
+ <el-button class="zap-button-info" size="mini" type="text" @click="refuse(scope.row)" v-show="(scope.row.companyType == '01' || scope.row.companyType == '02')
|
|
|
+ && (scope.row.zfiCreateType == '1' || scope.row.zfiCreateType == '2')
|
|
|
+ && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null)">作废</el-button>
|
|
|
+ <!--供应商开立
|
|
|
+ 类型为供应商开立,状态为空,并且融资企业
|
|
|
+ -->
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="seal(scope.row)" v-hasPermi="['credit:credit:seal']" v-show="scope.row.companyType == '02' && scope.row.zfiCreateType == '2' && (scope.row.zfiStatus == '' || scope.row.zfiStatus == 'null' || scope.row.zfiStatus == null)">融信开立</el-button>
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="handleDelete(scope.row)" v-hasPermi="['credit:credit:del']" v-show="(scope.row.companyType == '01' && scope.row.zfiCreateType == '1' && (scope.row.zfiCoreStatus == '02' || scope.row.zfiSupplierStatus == '02' || scope.row.zfiPlatformStatus == '02'))||
|
|
|
+ (scope.row.companyType == '02' && scope.row.zfiCreateType == '0' && (scope.row.zfiSupplierStatus == '02' || scope.row.zfiPlatformStatus == '02') && scope.row.zfiStatus != '01')||
|
|
|
+ (scope.row.companyType == '02' && scope.row.zfiCreateType == '2' && (scope.row.zfiSupplierStatus == '02' || scope.row.zfiPlatformStatus == '02'))">删除</el-button>
|
|
|
+ <el-button class="zap-button-primary" size="mini" type="text" @click="handleFlowable(scope.row)">查看流程</el-button>
|
|
|
+</div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+export default {
|
|
|
+ name: "ButtonsGroup",
|
|
|
+ props: ['scope'],
|
|
|
+ methods: {
|
|
|
+ handleDetail(row) {
|
|
|
+ this.$emit("handleDetail", row)
|
|
|
+ },
|
|
|
+ handleUpdate(row) {
|
|
|
+ this.$emit("handleUpdate", row)
|
|
|
+ },
|
|
|
+ handleApprove(row) {
|
|
|
+ this.$emit("handleApprove", row)
|
|
|
+ },
|
|
|
+ handleAddInformation(row) {
|
|
|
+ this.$emit("handleAddInformation", row)
|
|
|
+ },
|
|
|
+ handleSignFor (row) {
|
|
|
+ this.$emit("handleSignFor", row)
|
|
|
+ },
|
|
|
+ handleGoFinance (row) {
|
|
|
+ this.$emit("handleGoFinance", row)
|
|
|
+ },
|
|
|
+ seal (row) {
|
|
|
+ this.$emit("seal", row)
|
|
|
+ },
|
|
|
+ refuse (row) {
|
|
|
+ this.$emit("refuse", row)
|
|
|
+ },
|
|
|
+ handleDelete (row) {
|
|
|
+ this.$emit('handleDelete', row)
|
|
|
+ },
|
|
|
+ handleFlowable (row) {
|
|
|
+ this.$emit("handleFlowable", row)
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style>
|
|
|
+
|
|
|
+</style>
|