更正贷款应用名
This commit is contained in:
35
project/xiushan/apps/finance/AppLoanAudit/AppLoanAudit.vue
Normal file
35
project/xiushan/apps/finance/AppLoanAudit/AppLoanAudit.vue
Normal file
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<section class="AppLoanAudit">
|
||||
<component :is="currentComponent" :instance="instance" :dict="dict" :permissions="permissions"/>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
import LoanDetail from "./loanDetail";
|
||||
import LoanList from "./loanList";
|
||||
|
||||
export default {
|
||||
name: "AppLoanAudit",
|
||||
components: {LoanList, LoanDetail},
|
||||
label: "贷款审核",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
computed: {
|
||||
currentComponent() {
|
||||
return !!this.$route.query.id ? LoanDetail : LoanList
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load("productRepaymentTimeline", "financialFundPurpose", "enterpriseAuditStatus", "financialLoanApplyStatus")
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.AppLoanAudit {
|
||||
}
|
||||
</style>
|
||||
176
project/xiushan/apps/finance/AppLoanAudit/loanDetail.vue
Normal file
176
project/xiushan/apps/finance/AppLoanAudit/loanDetail.vue
Normal file
@@ -0,0 +1,176 @@
|
||||
<template>
|
||||
<section class="loanDetail">
|
||||
<ai-detail>
|
||||
<ai-title slot="title" title="贷款审核详情" isShowBottomBorder isShowBack @onBackClick="$router.push({query:{}})">
|
||||
<template #rightBtn>
|
||||
<el-button v-if="isAuthing" type="primary" @click="dialog=true">审核</el-button>
|
||||
</template>
|
||||
</ai-title>
|
||||
<template #content>
|
||||
<el-form size="small" label-width="160px">
|
||||
<ai-card title="贷款申请">
|
||||
<template #content>
|
||||
<el-row type="flex" class="flexWrap">
|
||||
<el-form-item label="产品名称">
|
||||
<el-row type="flex">
|
||||
{{ detail.productName }}
|
||||
<el-link type="primary"
|
||||
@click="$router.push({name:'ef73672d0ea6427ab770ee9a31100a3b',query:{id:detail.productId}})">
|
||||
产品详情
|
||||
</el-link>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
<el-form-item label="贷款银行">{{ detail.organizationName }}</el-form-item>
|
||||
<el-form-item label="贷款金额">{{ detail.loanAmount }}</el-form-item>
|
||||
<el-form-item label="期望使用期限">{{ dict.getLabel('productRepaymentTimeline', detail.hopeLifespan) }}
|
||||
</el-form-item>
|
||||
<el-form-item label="企业主体">
|
||||
<el-row type="flex">
|
||||
{{ detail.enterpriseName }}
|
||||
<el-link type="primary"
|
||||
@click="$router.push({name:'27338cb83e77461dbd44356a6760df84',query:{id:detail.enterpriseId}})">
|
||||
企业详情
|
||||
</el-link>
|
||||
</el-row>
|
||||
</el-form-item>
|
||||
<el-form-item label="资金用途">{{ dict.getLabel('financialFundPurpose', detail.fundPurpose) }}
|
||||
</el-form-item>
|
||||
<el-form-item label="联系人">{{ detail.name }}</el-form-item>
|
||||
<el-form-item label="身份证号">{{ detail.idNumber }}</el-form-item>
|
||||
<el-form-item label="联系方式">{{ detail.phone }}</el-form-item>
|
||||
<el-form-item label="申请时间">{{ detail.createTime }}</el-form-item>
|
||||
</el-row>
|
||||
<el-form-item label="备注">{{ detail.remark }}</el-form-item>
|
||||
</template>
|
||||
</ai-card>
|
||||
<ai-card title="办理结果" v-if="!isAuthing">
|
||||
<template #content>
|
||||
<el-row type="flex" class="flexWrap">
|
||||
<el-form-item label="贷款进度">{{ detail.status }}</el-form-item>
|
||||
<el-form-item label="贷款银行">{{ detail.organizationName }}</el-form-item>
|
||||
<el-form-item label="贷款经理">{{ detail.auditUserName }}</el-form-item>
|
||||
<el-form-item label="联系方式 ">{{ detail.auditPhone }}</el-form-item>
|
||||
<template v-if="detail.status==1">
|
||||
<el-form-item label="放款金额">{{ detail.auditAmount }}</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-form-item label="操作时间">{{ detail.auditTime }}</el-form-item>
|
||||
<el-form-item v-if="detail.status==2" label="备注">{{ detail.remark }}</el-form-item>
|
||||
</el-row>
|
||||
</template>
|
||||
</ai-card>
|
||||
</el-form>
|
||||
</template>
|
||||
</ai-detail>
|
||||
<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-item label="审批结果" prop="auditStatus">
|
||||
<ai-select v-model="form.auditStatus" :selectList="dict.getDict('enterpriseAuditStatus')"/>
|
||||
</el-form-item>
|
||||
<template v-if="form.auditStatus==1">
|
||||
<el-form-item label="放款金额(万)" prop="amount">
|
||||
<el-input v-model="form.amount" placeholder="请输入"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="使用期限" prop="auditLifespan">
|
||||
<ai-select v-model="form.auditLifespan" placeholder="请选择"
|
||||
:selectList="dict.getDict('productRepaymentTimeline')"/>
|
||||
</el-form-item>
|
||||
<el-form-item label="放款日期" prop="loanDate">
|
||||
<el-date-picker v-model="form.loanDate" placeholder="请选择" clearable/>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<el-form-item v-else-if="form.auditStatus==0" label="审批意见" prop="remark">
|
||||
<el-input type="textarea" v-model="form.remark" placeholder="请输入"/>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ai-dialog>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "loanDetail",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
computed: {
|
||||
isAuthing() {
|
||||
return this.detail.status == "0"
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
dialog: false,
|
||||
detail: {},
|
||||
form: {},
|
||||
rules: {
|
||||
auditStatus: [{required: true, message: "请选择 审批结果"}],
|
||||
amount: [
|
||||
{required: true, message: "请输入 放款金额"},
|
||||
{pattern: /\d+/, message: "请输入 正确的放款金额"},
|
||||
],
|
||||
auditLifespan: [{required: true, message: "请选择 使用期限"}],
|
||||
loanDate: [{required: true, message: "请选择 放款日期"}],
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getDetail() {
|
||||
let {id} = this.$route.query
|
||||
this.instance.post("/appfinancialloanapply/queryDetailById", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.detail = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
submitAudit() {
|
||||
this.$refs.AuditForm.validate(v => {
|
||||
if (v) {
|
||||
let {id} = this.detail
|
||||
this.instance.post("/appfinancialloanapply/auditLoanApply", null, {
|
||||
params: {id, ...this.form}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
this.dialog = false
|
||||
this.$message.success("提交成功!")
|
||||
this.getDetail()
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.dict.load("auditStatus")
|
||||
this.getDetail()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.loanDetail {
|
||||
height: 100%;
|
||||
|
||||
.flexWrap {
|
||||
flex-wrap: wrap;
|
||||
|
||||
.el-form-item {
|
||||
width: 50%;
|
||||
|
||||
.el-link {
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.el-date-editor {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
93
project/xiushan/apps/finance/AppLoanAudit/loanList.vue
Normal file
93
project/xiushan/apps/finance/AppLoanAudit/loanList.vue
Normal file
@@ -0,0 +1,93 @@
|
||||
<template>
|
||||
<section class="loanList">
|
||||
<ai-list>
|
||||
<ai-title slot="title" title="贷款审核" isShowBottomBorder/>
|
||||
<template #content>
|
||||
<ai-search-bar>
|
||||
<template #left>
|
||||
<ai-select v-model="search.status" :selectList="dict.getDict('financialLoanApplyStatus')" placeholder="审批状态"
|
||||
@change="page.current=1,getTableData()"/>
|
||||
<ai-search label="申请时间">
|
||||
<el-date-picker size="small" v-model="search.applyTime" type="daterange" @change="handleFilterApplyTime"/>
|
||||
</ai-search>
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input size="small" placeholder="搜索产品名称、企业主体、贷款银行" v-model="search.enterpriseName" clearable
|
||||
@change="page.current=1,getTableData()"/>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<ai-table :tableData="tableData" :total="page.total" :current.sync="page.current" :size.sync="page.size"
|
||||
@getList="getTableData" :col-configs="colConfigs" :dict="dict">
|
||||
<el-table-column slot="options" label="操作" fixed="right" align="center">
|
||||
<template slot-scope="{row}">
|
||||
<el-button type="text" @click="showDetail(row.id)">详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-list>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {mapState} from "vuex";
|
||||
|
||||
export default {
|
||||
name: "loanList",
|
||||
props: {
|
||||
instance: Function,
|
||||
dict: Object,
|
||||
permissions: Function
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
search: {name: ""},
|
||||
page: {current: 1, size: 10, total: 0},
|
||||
tableData: [],
|
||||
colConfigs: [
|
||||
{label: "产品名称", prop: "productName"},
|
||||
{label: "企业主体", prop: "enterpriseName"},
|
||||
{label: "贷款金额(万)", prop: "loanAmount"},
|
||||
{label: "申请时间", prop: "createTime"},
|
||||
{label: "联系人", prop: "name"},
|
||||
{label: "联系方式", prop: "phone"},
|
||||
{label: "贷款银行", prop: "organizationName"},
|
||||
{label: "状态", prop: "status", align: "center", dict: "financialLoanApplyStatus"},
|
||||
{slot: "options"}
|
||||
]
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/appfinancialloanapply/list", null, {
|
||||
params: {...this.page, ...this.search}
|
||||
}).then(res => {
|
||||
if (res?.data) {
|
||||
this.tableData = res.data?.records
|
||||
this.page.total = res.data.total
|
||||
}
|
||||
})
|
||||
},
|
||||
showDetail(id) {
|
||||
this.$router.push({query: {id}})
|
||||
},
|
||||
handleFilterApplyTime() {
|
||||
this.page.current = 1
|
||||
this.search.applyStartDate = this.search.applyTime?.[0]
|
||||
this.search.applyEndDate = this.search.applyTime?.[1]
|
||||
this.getTableData()
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getTableData()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.loanList {
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user