抢单记录完成
This commit is contained in:
@@ -84,7 +84,7 @@ export default {
|
|||||||
return this.detail.status == "0"
|
return this.detail.status == "0"
|
||||||
},
|
},
|
||||||
isAdmin() {
|
isAdmin() {
|
||||||
return this.user.financeUser.type == 1
|
return this.user.financeUser.userRole == 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
isFinanceUser() {
|
isFinanceUser() {
|
||||||
return this.user.financeUser?.type != null
|
return !!this.user.financeUser?.id
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
|
|||||||
@@ -23,11 +23,8 @@ export default {
|
|||||||
return !!this.$route.query.id ? GrabDetail : GrabList
|
return !!this.$route.query.id ? GrabDetail : GrabList
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data() {
|
|
||||||
return {}
|
|
||||||
},
|
|
||||||
created() {
|
created() {
|
||||||
this.dict.load("enterpriseName")
|
this.dict.load("financingDemandStatus", "productRepaymentTimeline", "financialFundPurpose")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="grabDetail">
|
<section class="grabDetail">
|
||||||
<ai-detail>
|
<ai-detail>
|
||||||
<ai-title slot="title" title="融资详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})">
|
<ai-title slot="title" title="融资详情" isShowBottomBorder isShowBack @onBackClick="back">
|
||||||
<template #rightBtn>
|
<template v-if="isFinanceUser" #rightBtn>
|
||||||
<el-button type="danger" @click="handleCancel">回退订单</el-button>
|
<el-button type="danger" @click="handleCancel">回退订单</el-button>
|
||||||
<el-button type="primary" @click="dialog=true">放款</el-button>
|
<el-button type="primary" @click="dialog=true">放款</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -12,29 +12,37 @@
|
|||||||
<ai-card title="融资需求">
|
<ai-card title="融资需求">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-row type="flex" class="flexWrap">
|
<el-row type="flex" class="flexWrap">
|
||||||
<el-form-item label="意向金额">{{ detail.enterpriseName }}</el-form-item>
|
<el-form-item label="意向金额">{{ detail.loanAmount }}</el-form-item>
|
||||||
<el-form-item label="期望使用期限">{{ detail.enterpriseName }}</el-form-item>
|
<el-form-item label="期望使用期限">
|
||||||
<el-form-item label="资金用途">{{ detail.unifiedCode }}</el-form-item>
|
{{ dict.getLabel('productRepaymentTimeline', detail.hopeLifespan) }}
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="资金用途">
|
||||||
|
{{ dict.getLabel('financialFundPurpose', detail.fundPurpose) }}
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="企业主体">{{ detail.enterpriseName }}</el-form-item>
|
<el-form-item label="企业主体">{{ detail.enterpriseName }}</el-form-item>
|
||||||
<el-form-item label="联系人">{{ dict.getLabel('enterpriseType', detail.enterpriseType) }}</el-form-item>
|
<el-form-item label="联系人">{{ detail.createUserName }}</el-form-item>
|
||||||
<el-form-item label="所在地区">{{ detail.address }}</el-form-item>
|
<el-form-item label="所在地区">{{ detail.areaName }}</el-form-item>
|
||||||
<el-form-item label="联系方式">{{ detail.phone }}</el-form-item>
|
<el-form-item label="联系方式">{{ detail.phone }}</el-form-item>
|
||||||
<el-form-item label="身份证号">{{ detail.idNumber }}</el-form-item>
|
<el-form-item label="身份证号">{{ detail.idNumber }}</el-form-item>
|
||||||
<el-form-item label="发布时间">{{ detail.address }}</el-form-item>
|
<el-form-item label="发布时间">{{ detail.createTime }}</el-form-item>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-form-item label="备注">{{ detail.operationPeriod }}</el-form-item>
|
<el-form-item label="备注">{{ detail.remark }}</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
<ai-card title="融资进度">
|
<ai-card title="融资进度">
|
||||||
<template #content>
|
<template #content>
|
||||||
<el-row type="flex" class="flexWrap">
|
<el-row type="flex" class="flexWrap">
|
||||||
<el-form-item label="融资进度">{{ detail.enterpriseName }}</el-form-item>
|
<el-form-item label="融资进度">{{ dict.getLabel('financingDemandStatus', detail.status) }}</el-form-item>
|
||||||
<el-form-item label="贷款银行">{{ detail.enterpriseName }}</el-form-item>
|
<el-form-item label="贷款银行">{{ detail.organizationName }}</el-form-item>
|
||||||
<el-form-item label="贷款经理">{{ detail.unifiedCode }}</el-form-item>
|
<el-form-item label="贷款经理">{{ detail.auditUserName }}</el-form-item>
|
||||||
<el-form-item label="联系方式">{{ detail.phone }}</el-form-item>
|
<el-form-item label="联系方式">{{ detail.phone }}</el-form-item>
|
||||||
<el-form-item label="放款金额">{{ detail.enterpriseName }}</el-form-item>
|
<template v-if="detail.status==2">
|
||||||
<el-form-item label="放款日期">{{ dict.getLabel('enterpriseType', detail.enterpriseType) }}</el-form-item>
|
<el-form-item label="放款金额">{{ detail.auditAmount }}</el-form-item>
|
||||||
<el-form-item label="使用期限">{{ detail.address }}</el-form-item>
|
<el-form-item label="放款日期">{{ detail.loanDate }}</el-form-item>
|
||||||
|
<el-form-item label="使用期限">
|
||||||
|
{{ dict.getLabel('productRepaymentTimeline', detail.auditLifespan) }}
|
||||||
|
</el-form-item>
|
||||||
|
</template>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
</ai-card>
|
</ai-card>
|
||||||
@@ -43,14 +51,14 @@
|
|||||||
</ai-detail>
|
</ai-detail>
|
||||||
<ai-dialog :visible.sync="dialog" title="放款" @closed="form={}" @onConfirm="submitAudit" width="560px">
|
<ai-dialog :visible.sync="dialog" title="放款" @closed="form={}" @onConfirm="submitAudit" width="560px">
|
||||||
<el-form :model="form" :rules="rules" ref="AuditForm" size="small" label-width="120px">
|
<el-form :model="form" :rules="rules" ref="AuditForm" size="small" label-width="120px">
|
||||||
<el-form-item label="放款金额(万)" prop="auditStatus">
|
<el-form-item label="放款金额(万)" prop="auditAmount">
|
||||||
<el-input v-model="form.auditDescription" placeholder="请输入"/>
|
<el-input v-model="form.auditAmount" placeholder="请输入"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="使用期限(月)" prop="auditStatus">
|
<el-form-item label="使用期限" prop="auditLifespan">
|
||||||
<ai-select v-model="form.auditStatus" :selectList="dict.getDict('auditStatus')"/>
|
<ai-select v-model="form.auditLifespan" :selectList="dict.getDict('productRepaymentTimeline')"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="放款日期" prop="auditStatus">
|
<el-form-item label="放款日期" prop="loanDate">
|
||||||
<el-date-picker v-model="form.time" placeholder="请选择"/>
|
<el-date-picker v-model="form.loanDate" placeholder="请选择"/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</ai-dialog>
|
</ai-dialog>
|
||||||
@@ -58,6 +66,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import {mapState} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "grabDetail",
|
name: "grabDetail",
|
||||||
props: {
|
props: {
|
||||||
@@ -65,20 +75,28 @@ export default {
|
|||||||
dict: Object,
|
dict: Object,
|
||||||
permissions: Function
|
permissions: Function
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
isFinanceUser() {
|
||||||
|
return !!this.user.financeUser?.id
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
dialog: false,
|
dialog: false,
|
||||||
detail: {},
|
detail: {},
|
||||||
form: {},
|
form: {},
|
||||||
rules: {
|
rules: {
|
||||||
auditStatus: [{required: true, message: "请选择审批结果"}]
|
auditAmount: [{required: true, message: "请输入 放款金额"}],
|
||||||
|
auditLifespan: [{required: true, message: "请选择 使用期限"}],
|
||||||
|
loanDate: [{required: true, message: "请选择 放款日期"}],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getDetail() {
|
getDetail() {
|
||||||
let {id} = this.$route.query
|
let {id} = this.$route.query
|
||||||
this.instance.post("/appportaluserenterprise/queryDetailById", null, {
|
this.instance.post("/appfinancingdemand/queryDetailById", null, {
|
||||||
params: {id}
|
params: {id}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
@@ -88,14 +106,21 @@ export default {
|
|||||||
},
|
},
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.$confirm("是否要回退本次融资需求订单?").then(() => {
|
this.$confirm("是否要回退本次融资需求订单?").then(() => {
|
||||||
|
this.instance.post("/appfinancingdemand/cancelObtain", null, {
|
||||||
|
params: {id: this.detail.id}
|
||||||
|
}).then(res => {
|
||||||
|
if (res?.code == 0) {
|
||||||
|
this.$message.success("回退成功")
|
||||||
|
this.back()
|
||||||
|
}
|
||||||
|
})
|
||||||
}).catch(() => 0)
|
}).catch(() => 0)
|
||||||
},
|
},
|
||||||
submitAudit() {
|
submitAudit() {
|
||||||
this.$refs.AuditForm.validate(v => {
|
this.$refs.AuditForm.validate(v => {
|
||||||
if (v) {
|
if (v) {
|
||||||
let {id} = this.detail
|
let {id} = this.detail
|
||||||
this.instance.post("/appportaluserenterprise/auditEnterprise", null, {
|
this.instance.post("/appfinancingdemand/confirmLoan", null, {
|
||||||
params: {id, ...this.form}
|
params: {id, ...this.form}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.code == 0) {
|
if (res?.code == 0) {
|
||||||
@@ -106,10 +131,12 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
back() {
|
||||||
|
this.$router.push({})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.dict.load("auditStatus")
|
|
||||||
this.getDetail()
|
this.getDetail()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,14 +5,14 @@
|
|||||||
<template #content>
|
<template #content>
|
||||||
<ai-search-bar>
|
<ai-search-bar>
|
||||||
<template #left>
|
<template #left>
|
||||||
<ai-select placeholder="订单状态" v-model="search.status" @change="page.current=1,getTableData()"/>
|
<ai-select placeholder="订单状态" v-model="search.status" @change="page.current=1,getTableData()"
|
||||||
|
:selectList="dict.getDict('financingDemandStatus')"/>
|
||||||
<ai-search label="申请时间">
|
<ai-search label="申请时间">
|
||||||
<el-date-picker size="small" v-model="search.applyTime" type="daterange"
|
<el-date-picker size="small" v-model="search.applyTime" type="daterange" @change="handleFilterApplyTime"/>
|
||||||
@change="page.current=1,getTableData()"/>
|
|
||||||
</ai-search>
|
</ai-search>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<el-input size="small" placeholder="搜索产品名称、企业主体、贷款银行" v-model="search.name" clearable
|
<el-input size="small" placeholder="搜索企业主体、客户经理、贷款银行" v-model="search.name" clearable
|
||||||
@change="page.current=1,getTableData()"/>
|
@change="page.current=1,getTableData()"/>
|
||||||
</template>
|
</template>
|
||||||
</ai-search-bar>
|
</ai-search-bar>
|
||||||
@@ -49,23 +49,23 @@ export default {
|
|||||||
tableData: [],
|
tableData: [],
|
||||||
colConfigs: [
|
colConfigs: [
|
||||||
{label: "企业名称", prop: "enterpriseName"},
|
{label: "企业名称", prop: "enterpriseName"},
|
||||||
{label: "意向金额(万)", prop: "legalPersonName"},
|
{label: "意向金额(万)", prop: "loanAmount"},
|
||||||
{label: "申请时间", prop: "legalPersonName"},
|
{label: "申请时间", prop: "createTime"},
|
||||||
{label: "联系人", prop: "phone"},
|
{label: "联系人", prop: "name"},
|
||||||
{label: "联系方式", prop: "phone"},
|
{label: "联系方式", prop: "phone"},
|
||||||
{label: "客户经理", prop: "phone"},
|
{label: "客户经理", prop: "auditUserName"},
|
||||||
{label: "贷款银行", prop: "phone"},
|
{label: "贷款银行", prop: "organizationName"},
|
||||||
{label: "放款金额", prop: "phone"},
|
{label: "放款金额", prop: "auditAmount"},
|
||||||
{label: "状态", prop: "status"},
|
{label: "状态", prop: "status", dict: "financingDemandStatus"},
|
||||||
{label: "备注", prop: "loginAccount"},
|
{label: "备注", prop: "remark"},
|
||||||
{slot: "options"}
|
{slot: "options"}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getTableData() {
|
getTableData() {
|
||||||
this.instance.post("/appportaluserenterprise/list", null, {
|
this.instance.post("/appfinancingdemand/list", null, {
|
||||||
params: {...this.page, ...this.search, status: 1}
|
params: {...this.page, ...this.search, organizationId: this.user.financeUser?.organizationId}
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.tableData = res.data?.records
|
this.tableData = res.data?.records
|
||||||
@@ -75,12 +75,16 @@ export default {
|
|||||||
},
|
},
|
||||||
showDetail(id) {
|
showDetail(id) {
|
||||||
this.$router.push({query: {id}})
|
this.$router.push({query: {id}})
|
||||||
|
},
|
||||||
|
handleFilterApplyTime() {
|
||||||
|
this.page.current = 1
|
||||||
|
this.search.createTimeStart = this.search.applyTime?.[0]
|
||||||
|
this.search.createTimeEnd = this.search.applyTime?.[1]
|
||||||
|
this.getTableData()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.dict.load("enterpriseName")
|
|
||||||
this.getTableData()
|
this.getTableData()
|
||||||
this.search.areaId = this.user.info.areaId
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user