Browse Source

完善间还转付记录

master
yunuo970428 1 year ago
parent
commit
4b8f5d7301
  1. 8
      anrui-riskcenter-ui/src/api/Common/dictcommons.js
  2. 53
      anrui-riskcenter-ui/src/router/index.js
  3. 246
      anrui-riskcenter-ui/src/views/alsotransfer/alsotransfer.vue
  4. 263
      anrui-riskcenter-ui/src/views/alsotransfer/pendingtransfer.vue

8
anrui-riskcenter-ui/src/api/Common/dictcommons.js

@ -160,4 +160,12 @@ export function selectStaffListss() {
})
}
// 根据分公司和账号类型获取银行账号信息
export function listByPayment(data) {
return request({
url: '/fin/v1/finmanufacturerbank/listByPayment',
method: 'get',
params: data
})
}

53
anrui-riskcenter-ui/src/router/index.js

@ -395,6 +395,38 @@ export const constantRoutes = [
}
]
},
{
path: '/alsotransfer',
component: Layout,
redirect: '/alsotransfer',
meta: {
title: '间还转付记录'
},
children: [
{
path: '/alsotransfer/pendingtransfer',
component: () => import('@/views/alsotransfer/pendingtransfer.vue'),
name: 'AlsoTransfer',
meta: { title: '间还转付记录', noCache: true }
}
]
},
{
path: '/agentbusiness',
component: Layout,
redirect: '/agentbusiness',
meta: {
title: '代收代付申请'
},
children: [
{
path: '/agentbusiness/agentbusiness',
component: () => import('@/views/agentbusiness/agentbusiness.vue'),
name: 'AgentBusiness',
meta: { title: '代收代付申请', noCache: true }
}
]
},
// 流程审批
// 金融产品政策报备--编辑
@ -595,6 +627,27 @@ export const constantRoutes = [
component: () =>
import('@/views/workFlow/diankuanFlow/advancerequestYiBan.vue'),
name: 'AdvanceRequestYiBan'
},
// 代收代付申请管理--编辑
{
path: '/daishoudaifuFlow/agentbusinessEdit',
component: () =>
import('@/views/workFlow/daishoudaifuFlow/agentbusinessEdit.vue'),
name: 'AgentBusinessEdit'
},
// 代收代付申请管理--待办
{
path: '/daishoudaifuFlow/agentbusinessDaiBan',
component: () =>
import('@/views/workFlow/daishoudaifuFlow/agentbusinessDaiBan.vue'),
name: 'AgentBusinessDaiBan'
},
// 代收代付申请管理--已办
{
path: '/daishoudaifuFlow/agentbusinessYiBan',
component: () =>
import('@/views/workFlow/daishoudaifuFlow/agentbusinessYiBan.vue'),
name: 'AgentBusinessYiBan'
},
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }

246
anrui-riskcenter-ui/src/views/alsotransfer/alsotransfer.vue

@ -0,0 +1,246 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div v-show="viewState == 1">
<button-bar view-title="间还转付记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="switch_btn">
<el-button class="" @click="handleClick">待转付</el-button>
<el-button :class="{btn_style:viewState === 1}">已转付</el-button>
</div>
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方">
<el-input v-model="listQuery.params.bankName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方合同号">
<el-input v-model="listQuery.params.bankContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="期数">
<el-input v-model="listQuery.params.period" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="转付账户类型">
<el-select v-model="listQuery.params.accountTypekey" clearable placeholder="请选择">
<el-option v-for="item in accountType_list" :key="item.dictKey" :label="item.dictValue" :value="item.dictKey">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="应还日期">
<el-date-picker v-model="listQuery.params.dueStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.dueEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
<el-form-item label="转付日期">
<el-date-picker v-model="listQuery.params.prepareStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.prepareEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">间还已转付记录</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;">
<el-table-column width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" />
<el-table-column prop="bankName" label="资方" align="center" width="120" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="150" />
<el-table-column prop="customer" label="客户名称" align="center" width="120" />
<el-table-column prop="borrowerName" label="贷款人" align="center" min-width="120" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="dueDate" label="应还日期" align="center" width="100" />
<el-table-column prop="dueMoney" label="本期应还" align="center" width="100" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="100" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="100" />
<el-table-column prop="prepareDate" label="预转付日期" align="center" width="100" />
<el-table-column prop="transferDate" label="实际转付日期" align="center" width="100" />
<el-table-column prop="spread" label="息差" align="center" width="100" />
<el-table-column prop="transferPrincipal" label="转付本金" align="center" width="100" />
<el-table-column prop="defaultInterest" label="转付罚息" align="center" width="100" />
<el-table-column prop="accountType" label="转付账户类型" align="center" width="100" />
<el-table-column prop="account" label="转付账户" align="center" width="100" />
<el-table-column prop="accountNumber" label="转付账号" align="center" width="100" />
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- End 列表页面 -->
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import { typeValues } from '@/api/Common/dictcommons'
export default {
name: 'AlsoTransfer',
components: {
Pagination,
pageye,
ButtonBar
},
data() {
return {
viewState: 1,
btndisabled: false,
btnList: [
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
accountType_list: [],
listLoading: false,
listQuery: {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '1',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
},
rules: {}
}
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
req.transferPaymentList(this.listQuery).then((response) => {
console.log('列表查询结果:', response)
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
typeValues({ type: 'accountType' }).then((resp) => {
if (resp.success) {
this.accountType_list = resp.data
}
})
} else {
this.list = []
this.listQuery.total = 0
}
})
},
handleClick() {
this.$parent.resetState()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '1',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
}
this.getList()
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
</style>

263
anrui-riskcenter-ui/src/views/alsotransfer/pendingtransfer.vue

@ -0,0 +1,263 @@
<template>
<div class="app-container">
<!-- Start 列表页面 -->
<div v-show="viewState == 1">
<button-bar view-title="间还转付记录" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<div class="main-content">
<div class="switch_btn">
<el-button :class="{btn_style:viewState === 1}">待转付</el-button>
<el-button class="" @click="handleClick">已转付</el-button>
</div>
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="车架号">
<el-input v-model="listQuery.params.vinNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方">
<el-input v-model="listQuery.params.bankName" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="资方合同号">
<el-input v-model="listQuery.params.bankContractNo" clearable placeholder="" class="addinputw"></el-input>
</el-form-item>
<el-form-item label="应还日期">
<el-date-picker v-model="listQuery.params.dueStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.dueEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
<el-form-item label="预转付日期">
<el-date-picker v-model="listQuery.params.prepareStartDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.prepareEndDate" type="date" clearable value-format="yyyy-MM-dd" placeholder="选择日期"/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" @click="handleFilter" size="small">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" @click="handleReset" size="small">重置</el-button>
</div>
</div>
</div>
<div class="listtop">
<div class="tit">间还待转付记录</div>
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column fixed width="50" type="selection" align="center"/>
<el-table-column fixed width="60" label="序号" type="index" :index="indexMethod" align="center"/>
<el-table-column prop="paymentState" label="状态" align="center" width="80" />
<el-table-column prop="vinNo" label="车架号" align="center" width="120" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" />
<el-table-column prop="bankName" label="资方" align="center" width="150" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120" />
<el-table-column prop="customer" label="客户名称" align="center" min-width="120" />
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100" />
<el-table-column prop="period" label="期数" align="center" width="80" />
<el-table-column prop="dueDate" label="应还日期" align="center" width="100" />
<el-table-column prop="dueMoney" label="本期应还" align="center" width="100" />
<el-table-column prop="actualDate" label="实还日期" align="center" width="100" />
<el-table-column prop="actualMoney" label="实还金额" align="center" width="100" />
<el-table-column prop="prepareDate" label="预转付日期" align="center" width="100" />
</el-table>
</div>
<div class="pages">
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
</div>
</div>
<!-- End 列表页面 -->
<!-- 已选择列表 -->
<alsotransfer v-show="viewState == 2" ref="divSelect" @doback="resetState"/>
<!-- 新增 -->
<agentbusinessAdd v-show="viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
</div>
</template>
<script>
import req from '@/api/agentbusiness/agentbusiness'
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import alsotransfer from './alsotransfer'
import agentbusinessAdd from '../agentbusiness/agentbusinessAdd'
export default {
name: 'PendingTransfer',
components: {
Pagination,
pageye,
ButtonBar,
alsotransfer,
agentbusinessAdd
},
data() {
return {
viewState: 1,
btndisabled: false,
btnList: [
{
type: 'primary',
size: 'small',
icon: '',
btnKey: 'toAdd',
btnLabel: '代收代付申请'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
// -----------
tableKey: 0,
list: [],
sids: [],
listLoading: false,
listQuery: {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '0',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
},
rules: {}
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
handleSelectionChange(row) {
const aa = []
row.forEach((element) => {
aa.push(element.sid)
})
this.sids = aa
},
//
getList() {
this.listLoading = true
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
req.transferPaymentList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
toAdd() {
if (this.sids.length > 0) {
this.viewState = 3
this.$refs['divAdd'].showAdd(this.sids)
} else {
this.$message({ showClose: true, type: 'error', message: '请至少选择一条记录进行操作' })
}
},
handleClick() {
this.viewState = 2
this.$refs['divSelect'].getList()
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
handleReset() {
this.listQuery = {
params: {
userSid: '',
menuUrl: '',
loanContractNo: '',
vinNo: '',
dueStartDate: '',
dueEndDate: '',
accountTypekey: '',
prepareStartDate: '',
prepareEndDate: '',
orgPath: '',
type: '0',
bankContractNo: '',
bankName: '',
period: ''
},
current: 1,
size: 10,
total: 0
}
this.getList()
},
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
.btn_style {
background-color: #018ad2;
color: white;
font-weight: 600;
}
</style>
Loading…
Cancel
Save