feat(loan): 适配贷款业务流程
- 修改投保单号为贷款合同号 - 更新相关 API 路径 -调整表格列和搜索条件以适应贷款业务 - 优化耳标号筛选功能 - 更新字典加载项
This commit is contained in:
@@ -3,14 +3,13 @@ import {mapState} from "vuex"
|
||||
|
||||
const columns = [
|
||||
{label: "序号", type: "index"},
|
||||
{label: "投保单号", prop: "orderNo"},
|
||||
{label: "贷款合同号", prop: "contractNo"},
|
||||
{label: "所属养殖户", prop: "applyName"},
|
||||
{label: "所属养殖场", prop: "farmName"},
|
||||
{label: "投保类型", prop: "insureType", dict: "insureType"},
|
||||
{label: "承保公司", prop: "companyName"},
|
||||
{label: "投保时间", prop: "createTime"},
|
||||
{label: "投保状态", prop: "status", width: 160, dict: "insureStatus"},
|
||||
{label: "贷款金额(万元)", prop: "loanAmount"},
|
||||
{label: "贷款状态", prop: "status", width: 160, dict: "loanStatus"},
|
||||
{label: "审核状态", prop: "auditStatus", width: 120, dict: "auditStatus"},
|
||||
{label: "申请人", prop: "applyName", width: 120},
|
||||
{label: "贷款时间", prop: "createTime", width: 160},
|
||||
]
|
||||
export default {
|
||||
name: "loanList",
|
||||
@@ -45,7 +44,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getTableData() {
|
||||
this.instance.post("/api/insurance/apply/page", {...this.page, ...this.search}).then(res => {
|
||||
this.instance.post("/api/loan/apply/page", {...this.page, ...this.search}).then(res => {
|
||||
if (res?.data) {
|
||||
this.tableData = res.data?.records.map(e => ({...e, permit: `${e.status}` + e.auditStatus}))
|
||||
this.page.total = res.data.total
|
||||
@@ -54,7 +53,7 @@ export default {
|
||||
},
|
||||
handleDelete(id) {
|
||||
this.$confirm("确定删除该条数据?").then(() => {
|
||||
this.instance.post("/api/insurance/apply/del", null, {
|
||||
this.instance.post("/api/loan/apply/del", null, {
|
||||
params: {id}
|
||||
}).then(res => {
|
||||
if (res?.code == 0) {
|
||||
@@ -74,21 +73,21 @@ export default {
|
||||
<ai-page class="loanList" :title="pageTitle">
|
||||
<ai-search-bar>
|
||||
<template #left>
|
||||
<ai-select placeholder="全部养殖场" v-model="search.farmId" :instance="instance" :action="`/api/siteUser/querySiteByUserId?userId=${userinfo.id}`" :prop="{label:'name'}"/>
|
||||
<ai-input placeholder="投保订单号" v-model="search.orderNo"/>
|
||||
<ai-select placeholder="全部投保类型" v-model="search.insureType" dict="insureType"/>
|
||||
<ai-select placeholder="全部投保状态" v-model="search.status" dict="insureStatus"/>
|
||||
<ai-input placeholder="贷款合同号" v-model="search.contractNo"/>
|
||||
<ai-select placeholder="全部贷款状态" v-model="search.status" dict="loanStatus"/>
|
||||
<ai-select placeholder="全部审批状态" v-model="search.auditStatus" dict="auditStatus"/>
|
||||
<ai-search label="投保日期">
|
||||
<ai-search label="贷款日期">
|
||||
<el-date-picker v-model="search.beginDate" type="datetime" placeholder="开始日期" size="small"/>
|
||||
<el-date-picker v-model="search.endDate" type="datetime" placeholder="结束日期" size="small"/>
|
||||
</ai-search>
|
||||
<ai-input placeholder="养殖户" v-model="search.applyName"/>
|
||||
<ai-input placeholder="养殖场" v-model="search.farmName"/>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<ai-search-bar>
|
||||
<template #left>
|
||||
<el-button type="primary" icon="iconfont iconAdd" @click="$router.push({hash:'#add'})">新增</el-button>
|
||||
<ai-download :instance="instance" url="/api/insurance/apply/export" :params="{...search,...page}" :fileName="`投保申请导出表-${Date.now()}`"/>
|
||||
<ai-download :instance="instance" url="/api/loan/apply/export" :params="{...search,...page}" :fileName="`${pageTitle}导出表-${Date.now()}`"/>
|
||||
</template>
|
||||
</ai-search-bar>
|
||||
<ai-table :tableData="tableData" :colConfigs="columns" :dict="dict" @getList="getTableData"
|
||||
|
||||
Reference in New Issue
Block a user