Browse Source

完善转诉讼科目申请

master
yunuo970428 1 week ago
parent
commit
e51730027d
  1. 111
      anrui-riskcenter-ui/src/api/transferToLitigation/transferToLitigation.js
  2. 17
      anrui-riskcenter-ui/src/router/index.js
  3. 356
      anrui-riskcenter-ui/src/views/transferToLitigation/transferToLitigation.vue
  4. 264
      anrui-riskcenter-ui/src/views/transferToLitigation/transferToLitigationAdd.vue
  5. 201
      anrui-riskcenter-ui/src/views/transferToLitigation/transferToLitigationInfo.vue

111
anrui-riskcenter-ui/src/api/transferToLitigation/transferToLitigation.js

@ -0,0 +1,111 @@
import request from '@/utils/request'
export default {
// 查询分页列表
listPage: function(params) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/listPage',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
saveOrUpdate: function(data) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/save',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
init: function(data) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/init/' + data,
method: 'get'
})
},
fetchBySid: function(data) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/fetchDetailsBySid/' + data,
method: 'get'
})
},
deleteBySids: function(data) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/delBySids',
method: 'DELETE',
data: data,
headers: { 'Content-Type': 'application/json' }
})
},
// 提交流程
submit: function(params) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/submit',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(同意)
complete: function(params) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/complete',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(加签)
delegate: function(params) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/delegate',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(驳回)
reject: function(params) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/reject',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(终止)
breakProcess: function(params) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/breakProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 流程审批(撤回)
revokeProcess: function(params) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/revokeProcess',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
})
},
// 审批流程(同意)获取下一环节
getNextNodesForSubmit: function(data) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/getNextNodesForSubmit',
method: 'get',
params: data
})
},
// 审批流程(驳回)获取上一环节
getPreviousNodesForReject: function(data) {
return request({
url: '/riskcenter/v1/loanlawsuitsubapply/getPreviousNodesForReject',
method: 'get',
params: data
})
}
}

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

@ -912,6 +912,23 @@ export const constantRoutes = [{
}
}]
},
{
path: '/transferToLitigation',
component: Layout,
redirect: '/transferToLitigation',
meta: {
title: '转诉讼科目管理'
},
children: [{
path: '/transferToLitigation/transferToLitigation',
component: () => import('@/views/transferToLitigation/transferToLitigation.vue'),
name: 'TransferToLitigation',
meta: {
title: '转诉讼科目管理',
noCache: true
}
}]
},
{
path: '/provisionoffunds',
component: Layout,

356
anrui-riskcenter-ui/src/views/transferToLitigation/transferToLitigation.vue

@ -0,0 +1,356 @@
<template>
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="转诉讼科目申请管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle"/>
<!--Start查询列表部分-->
<div class="main-content">
<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.useOrgName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="申请部门">
<el-input v-model="listQuery.params.createDept" placeholder="" clearable/>
</el-form-item>
<el-form-item label="申请人">
<el-input v-model="listQuery.params.createByName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="申请日期">
<el-date-picker v-model="listQuery.params.createTimeStart" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.createTimeEnd" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
<el-form-item label="办结日期">
<el-date-picker v-model="listQuery.params.closeStartDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.closeEndDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
<el-form-item label="客户名称">
<el-input v-model="listQuery.params.customerName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="贷款人">
<el-input v-model="listQuery.params.loanName" placeholder="" clearable/>
</el-form-item>
<el-form-item label="贷款合同编号">
<el-input v-model="listQuery.params.loanContractNo" placeholder="" clearable/>
</el-form-item>
<el-form-item label="资方合同编号">
<el-input v-model="listQuery.params.bankContractNo" placeholder="" clearable/>
</el-form-item>
<el-form-item label="资方">
<el-input v-model="listQuery.params.bankName" placeholder="" clearable/>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<!--End查询列表部分-->
<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>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;" @selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50"/>
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center"/>
<el-table-column label="操作" width="180px" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toEdit(scope.row)" :disabled="scope.row.nodeState =='发起申请' ? false : scope.row.nodeState == '待提交' ? false : true">办理</el-button>
<el-button type="primary" size="mini" @click="toInfo(scope.row)">查看</el-button>
</template>
</el-table-column>
<el-table-column label="状态" width="180px" header-align="center">
<template slot-scope="scope">
<span v-if="scope.row.nodeState=='待提交'" type="primary" size="mini">待提交</span>
<span v-else @click="flowRecord(scope.row)" class="bluezi">{{ scope.row.nodeState }}</span>
</template>
</el-table-column>
<el-table-column prop="useOrgName" label="分公司" align="center" width="130" />
<el-table-column prop="createDept" label="申请部门" align="center" width="130" />
<el-table-column prop="createByName" label="申请人" align="center" width="100" />
<el-table-column prop="createTime" label="申请日期" align="center" width="100" />
<el-table-column prop="closeDate" label="办结日期" align="center" width="100" />
<el-table-column prop="customerName" label="客户名称" align="center" width="100" />
<el-table-column prop="loanName" label="贷款人" align="center" width="100" />
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="160" />
<el-table-column prop="bankName" label="资方" align="center" width="100" />
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="160" />
<el-table-column prop="amount" label="转诉讼科目金额合计" align="center" width="190" />
<el-table-column prop="remarks" label="备注" align="center" min-width="200" />
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit"/>
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" :limit.sync="listQuery.size" class="pagination" @pagination="getList"/>
</div>
<!--End查询列表部分-->
</div>
</div>
<!--新增及修改 -->
<transferToLitigationAdd v-show="viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/>
<!--详情-->
<transferToLitigationInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
<!-- 流程审批记录 -->
<el-dialog title="" :visible.sync="centerDialogVisible" width="78%" height="1%" :before-close="closeIt" center>
<iframe frameborder="0" id="iframe" style="width:100%;" scrolling="no" :src="this.centerDialogVisible === true ? url :''"></iframe>
</el-dialog>
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/transferToLitigation/transferToLitigation'
import { getStorage } from '@/utils/auth'
import transferToLitigationAdd from './transferToLitigationAdd'
import transferToLitigationInfo from './transferToLitigationInfo'
export default {
name: 'TransferToLitigation',
components: {
Pagination,
pageye,
ButtonBar,
transferToLitigationAdd,
transferToLitigationInfo
},
data() {
return {
url: '',
dialogHeight: '80%',
centerDialogVisible: false,
btndisabled: false,
btnList: [
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4
tableKey: 0,
list: [],
sids: [], // SIDs
FormLoading: false,
listLoading: false,
//
listQuery: {
current: 1,
size: 5,
total: 0,
params: {
createDept: '',
createTimeStart: '',
createTimeEnd: '',
useOrgName: '',
createByName: '',
closeStartDate: '',
closeEndDate: '',
loanContractNo: '',
vinNo: '',
bankName: '',
bankContractNo: '',
customerName: '',
loanName: '',
orgPath: '',
menuUrl: '',
userSid: ''
}
}
}
},
created() {
//
this.getList()
},
mounted() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.procInstId,
token: getStorage()
}
this.url = '/#/flow/flowRecordForBusiness?data=' + encodeURI((JSON.stringify(params)))
},
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
// sid
handleSelectionChange(row) {
const aa = []
row.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
//
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.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
req.listPage(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
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 5,
total: 0,
params: {
createDept: '',
createTimeStart: '',
createTimeEnd: '',
useOrgName: '',
createByName: '',
closeStartDate: '',
closeEndDate: '',
loanContractNo: '',
vinNo: '',
bankName: '',
bankContractNo: '',
customerName: '',
loanName: '',
orgPath: '',
menuUrl: '',
userSid: ''
}
}
this.getList()
},
toEdit(row) {
this.viewState = 3
this.$refs['divAdd'].showEdit(row)
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showInfo(row)
},
//
doDel() {
if (this.sids.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.deleteBySids(this.sids).then(resp => {
if (resp.success) {
this.$message({ type: 'success', message: resp.msg, showClose: true })
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {
})
},
//
resetState() {
this.viewState = 1
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
}
}
}
</script>
<style scoped>
</style>

264
anrui-riskcenter-ui/src/views/transferToLitigation/transferToLitigationAdd.vue

@ -0,0 +1,264 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.createDept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">贷款人</div>
<el-form-item><span class="addinputInfo">{{ formobj.loanName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">贷款合同编号</div>
<el-form-item><span class="addinputInfo">{{ formobj.loanContractNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">资方</div>
<el-form-item><span class="addinputInfo">{{ formobj.bankName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">资方合同编号</div>
<el-form-item><span class="addinputInfo">{{ formobj.bankContractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">转诉讼科目金额合计</div>
<el-form-item><span class="addinputInfo">{{ formobj.amount }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input class="addinputInfo addinputw" v-model="formobj.remarks" clearable placeholder="" /></el-form-item>
</el-col>
</el-row>
<div class="title titleOne">
<div>转诉讼车辆列表</div>
<el-button size="mini" type="primary" class="btntopblueline" @click="lookCourse">查看案件详情</el-button>
</div>
<el-table :key="tableKey" :data="formobj.loanLawsuitSubVehList" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" min-width="120"/>
<el-table-column prop="riskState" label="风控状态" align="center" min-width="120"/>
<el-table-column label="是否已回购" align="center" min-width="140">
<template slot-scope="scope">
<span>{{ scope.row.repo == '1' ? '1' : scope.row.repo == '0' ? '否' : '' }}</span>
</template>
</el-table-column>
<el-table-column prop="currentBeMoney" label="逾期月还" align="center" min-width="160"/>
<el-table-column prop="currentNotDuePrice" label="当期未还月还" align="center" min-width="150"/>
<el-table-column prop="notDuePrice" label="未到期月还" align="center" min-width="150"/>
<el-table-column prop="bankAmount" label="回购资方费用" align="center" min-width="160"/>
<el-table-column prop="lawAomount" label="转诉讼科目金额" align="center" min-width="150"/>
</el-table>
</el-form>
</div>
</div>
<!-- 查看案件进程详情 -->
<courseofthecaseInfo v-show="viewState == 2" ref="divCourse" @doback="resetState" />
</div>
</template>
<script>
import req from '@/api/transferToLitigation/transferToLitigation'
import courseofthecaseInfo from '../courseofthecase/courseofthecaseInfo'
export default {
name: 'TransferToLitigationAdd',
components: {
courseofthecaseInfo
},
data() {
return {
viewTitle: '',
viewState: 1,
submitdisabled: false,
tableKey: 0,
index: 0,
formobj: {
sid: '',
createTime: '',
createDept: '',
createDeptSid: '',
createByName: '',
billNo: '',
customerName: '',
customerSid: '',
loanSid: '',
loanName: '',
loanContractSid: '',
loanContractNo: '',
bankSid: '',
bankName: '',
bankContractNo: '',
amount: '',
nodeState: '',
useOrgSid: '',
useOrgName: '',
closeDate: '',
procInstId: '',
lawSid: '',
ajSid: '',
loanLawsuitSubVehList: []
},
rules: {}
}
},
methods: {
showAdd(sid) {
this.viewTitle = '【新增】转诉讼科目申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
req.init(sid).then((res) => {
if (res.success) {
this.formobj = res.data
var newDate = new Date()
var date = {
year: newDate.getFullYear(),
month: newDate.getMonth() + 1,
day: newDate.getDate()
}
this.formobj.createTime = date.year + '-' + (date.month >= 10 ? date.month : '0' + date.month) + '-' + (date.day >= 10 ? date.day : '0' + date.day)
}
})
},
showEdit(row) {
this.viewTitle = '【编辑】转诉讼科目申请'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
req.fetchBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.formobj.instanceId = res.data.procInstId
}
})
},
lookCourse() {
this.viewState = 2
this.$refs['divCourse'].showInfo({ sid: this.formobj.ajSid })
},
resetState() {
this.viewState = 1
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '保存成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
submit() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
if (this.formobj.vehList.length === 0) {
this.$message({ showClose: true, type: 'error', message: '已还与欠款情况列表不能为空' })
return
}
this.submitdisabled = true
req.submit(this.formobj).then((res) => {
if (res.success) {
this.$message({ showClose: true, type: 'success', message: '操作成功' })
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
sid: '',
createTime: '',
createDept: '',
createDeptSid: '',
createByName: '',
billNo: '',
customerName: '',
customerSid: '',
loanSid: '',
loanName: '',
loanContractSid: '',
loanContractNo: '',
bankSid: '',
bankName: '',
bankContractNo: '',
amount: '',
nodeState: '',
useOrgSid: '',
useOrgName: '',
closeDate: '',
procInstId: '',
lawSid: '',
ajSid: '',
loanLawsuitSubVehList: []
}
this.submitdisabled = false
this.$refs['form_obj'].resetFields()
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 140px !important;
}
.addinputInfo {
margin-left: 130px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 130px !important;
width: calc(100% - 125px);
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
</style>

201
anrui-riskcenter-ui/src/views/transferToLitigation/transferToLitigationInfo.vue

@ -0,0 +1,201 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">申请部门</div>
<el-form-item><span class="addinputInfo">{{ formobj.createDept }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请人</div>
<el-form-item><span class="addinputInfo">{{ formobj.createByName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">申请日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.createTime }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">客户名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.customerName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">贷款人</div>
<el-form-item><span class="addinputInfo">{{ formobj.loanName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">贷款合同编号</div>
<el-form-item><span class="addinputInfo">{{ formobj.loanContractNo }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<div class="span-sty">资方</div>
<el-form-item><span class="addinputInfo">{{ formobj.bankName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">资方合同编号</div>
<el-form-item><span class="addinputInfo">{{ formobj.bankContractNo }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">转诉讼科目金额合计</div>
<el-form-item><span class="addinputInfo">{{ formobj.amount }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<div class="title titleOne">
<div>转诉讼车辆列表</div>
<el-button size="mini" type="primary" class="btntopblueline" @click="lookCourse">查看案件详情</el-button>
</div>
<el-table :key="tableKey" :data="formobj.loanLawsuitSubVehList" :index="index" border style="width: 100%">
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
<el-table-column prop="vinNo" label="车架号" align="center" min-width="120"/>
<el-table-column label="风控状态" align="center" min-width="120">
<template slot-scope="scope">
<span>{{ scope.row.riskState == '0' ? '正常' : scope.row.riskState == '1' ? '交回' : scope.row.riskState == '2' ? '赎回' : scope.row.riskState == '3' ? '转租' : '' }}</span>
</template>
</el-table-column>
<el-table-column label="是否已回购" align="center" min-width="140">
<template slot-scope="scope">
<span>{{ scope.row.repo == '1' ? '是' : scope.row.repo == '0' ? '否' : '' }}</span>
</template>
</el-table-column>
<el-table-column prop="currentBeMoney" label="逾期月还" align="center" min-width="160"/>
<el-table-column prop="currentNotDuePrice" label="当期未还月还" align="center" min-width="150"/>
<el-table-column prop="notDuePrice" label="未到期月还" align="center" min-width="150"/>
<el-table-column prop="bankAmount" label="回购资方费用" align="center" min-width="160"/>
<el-table-column prop="lawAomount" label="转诉讼科目金额" align="center" min-width="150"/>
</el-table>
</el-form>
</div>
</div>
<!-- 查看案件进程详情 -->
<courseofthecaseInfo v-show="viewState == 2" ref="divCourse" @doback="resetState" />
</div>
</template>
<script>
import req from '@/api/transferToLitigation/transferToLitigation'
import courseofthecaseInfo from '../courseofthecase/courseofthecaseInfo'
export default {
name: 'TransferToLitigationInfo',
components: {
courseofthecaseInfo
},
data() {
return {
viewTitle: '',
viewState: 1,
tableKey: 0,
index: 0,
formobj: {
sid: '',
createTime: '',
createDept: '',
createDeptSid: '',
createByName: '',
billNo: '',
customerName: '',
customerSid: '',
loanSid: '',
loanName: '',
loanContractSid: '',
loanContractNo: '',
bankSid: '',
bankName: '',
bankContractNo: '',
amount: '',
nodeState: '',
useOrgSid: '',
useOrgName: '',
closeDate: '',
procInstId: '',
lawSid: '',
ajSid: '',
loanLawsuitSubVehList: []
},
rules: {}
}
},
methods: {
showInfo(row) {
this.viewTitle = '转诉讼科目申请详情'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
req.fetchBySid(row.sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
lookCourse() {
this.viewState = 2
this.$refs['divCourse'].showInfo({ sid: this.formobj.ajSid })
},
resetState() {
this.viewState = 1
},
handleReturn() {
this.formobj = {
sid: '',
createTime: '',
createDept: '',
createDeptSid: '',
createByName: '',
billNo: '',
customerName: '',
customerSid: '',
loanSid: '',
loanName: '',
loanContractSid: '',
loanContractNo: '',
bankSid: '',
bankName: '',
bankContractNo: '',
amount: '',
nodeState: '',
useOrgSid: '',
useOrgName: '',
closeDate: '',
procInstId: '',
lawSid: '',
ajSid: '',
loanLawsuitSubVehList: []
}
this.$emit('doback')
}
}
}
</script>
<style scoped>
.span-sty {
width: 140px !important;
}
.addinputInfo {
margin-left: 130px !important;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
</style>
Loading…
Cancel
Save