
45 changed files with 3970 additions and 37 deletions
@ -0,0 +1,130 @@ |
|||
import request from '@/utils/request' |
|||
|
|||
export default { |
|||
// 查询分页列表
|
|||
listPage: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/listPage', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 选择逾期车辆--远程控制状态为控制成功的
|
|||
lockCarList: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/lockCarList', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
saveOrUpdate: function(data) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/save', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
init: function(data) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/init', |
|||
method: 'post', |
|||
data: data, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 销售订单 -- 金融方案初始化
|
|||
selectDetailss: function(data) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loansolutions/selectDetailss', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
}, |
|||
fetchBySid: function(data) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/fetchDetailsBySid/' + data, |
|||
method: 'get' |
|||
}) |
|||
}, |
|||
deleteBySids: function(data) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/delBySids', |
|||
method: 'DELETE', |
|||
data: data, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 提交流程
|
|||
submit: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/submit', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 流程审批(同意)
|
|||
complete: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/complete', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 流程审批(加签)
|
|||
delegate: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/delegate', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 流程审批(驳回)
|
|||
reject: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/reject', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 流程审批(终止)
|
|||
breakProcess: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/breakProcess', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 流程审批(撤回)
|
|||
revokeProcess: function(params) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/revokeProcess', |
|||
method: 'post', |
|||
data: params, |
|||
headers: { 'Content-Type': 'application/json' } |
|||
}) |
|||
}, |
|||
// 审批流程(同意)获取下一环节
|
|||
getNextNodesForSubmit: function(data) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/getNextNodesForSubmit', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
}, |
|||
// 审批流程(驳回)获取上一环节
|
|||
getPreviousNodesForReject: function(data) { |
|||
return request({ |
|||
url: '/riskcenter/v1/loanvehclearanceapply/getPreviousNodesForReject', |
|||
method: 'get', |
|||
params: data |
|||
}) |
|||
} |
|||
} |
@ -0,0 +1,204 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<div class="tab-header webtop"> |
|||
<div>选择车辆页面</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<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" label-width="120px" class="tab-header"> |
|||
<el-form-item label="客户名称" class="searchlist"> |
|||
<el-input v-model="listQuery.params.custName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="贷款人" class="searchlist"> |
|||
<el-input v-model="listQuery.params.borrowerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号" class="searchlist"> |
|||
<el-input v-model="listQuery.params.carNum" placeholder="" clearable /> |
|||
</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" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column width="50px" type="selection" align="center"/> |
|||
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/> |
|||
<el-table-column label="贷款合同编号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.loanContractNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车牌号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.carNum }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="资方" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.bankName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="资方合同编号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.bankContractNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="客户名称" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.custName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="贷款人" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.borrowerName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<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> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import req from '@/api/remotedecontrol/remotedecontrol' |
|||
|
|||
export default { |
|||
name: 'SelectVehicle', |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
isSearchShow: false, |
|||
searchxianshitit: '隐藏查询条件', |
|||
tableKey: 0, |
|||
sids: [], |
|||
list: [], |
|||
number: '', |
|||
listLoading: false, |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
params: { |
|||
custName: '', |
|||
borrowerName: '', |
|||
carNum: '', |
|||
useOrgSid: '', |
|||
saleVehSids: [] |
|||
}, |
|||
total: 0 |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 返回 |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
req.lockCarList(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
this.listQuery.total = response.data.total |
|||
this.list = response.data.records |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
// 重置按钮 |
|||
handleReset() { |
|||
this.listQuery.current = 1 |
|||
this.listQuery.size = 5 |
|||
this.listQuery.total = 0 |
|||
this.listQuery.params.custName = '' |
|||
this.listQuery.params.carNum = '' |
|||
this.listQuery.params.borrowerName = '' |
|||
this.getList() |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.saleVehSid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
showData(value, createOrgSid) { |
|||
const aa = [] |
|||
if (value.length > 0) { |
|||
for (var i = 0; i < value.length; i++) { |
|||
aa.push(value[i].saleVehSid) |
|||
} |
|||
this.listQuery.params.saleVehSids = aa |
|||
} else { |
|||
this.listQuery.params.saleVehSids = [] |
|||
}`` |
|||
this.listQuery.params.useOrgSid = createOrgSid |
|||
this.listQuery.current = 1 |
|||
this.listQuery.size = 5 |
|||
this.listQuery.total = 0 |
|||
this.getList() |
|||
}, |
|||
// 添加修改返回 |
|||
AddUpdateReturn() { |
|||
if (this.sids.length > 0) { |
|||
this.$emit('backData', this.sids) |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '请选择至少一条记录!', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,361 @@ |
|||
<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" label-width="100px" 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.createByName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="申请部门"> |
|||
<el-input v-model="listQuery.params.deptName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="申请日期"> |
|||
<el-date-picker v-model="listQuery.params.createStartTime" 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.createEndTime" 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.modifyStartTime" 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.modifyEndTime" value-format="yyyy-MM-dd" format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker> |
|||
</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 label="分公司" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.useOrgName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="申请部门" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.deptName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="申请人" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createByName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="申请日期" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.createTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="办结日期" align="center" width="100"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.modifyTime }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="备注" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.remarks }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</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> |
|||
<!--新增及修改 --> |
|||
<remotedecontrolAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState" @reloadlist="getList"/> |
|||
<!--详情--> |
|||
<remotedecontrolInfo 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/remotedecontrol/remotedecontrol' |
|||
import { getStorage } from '@/utils/auth' |
|||
import remotedecontrolAdd from './remotedecontrolAdd' |
|||
import remotedecontrolInfo from './remotedecontrolInfo' |
|||
|
|||
export default { |
|||
name: 'RemotedeControl', |
|||
components: { |
|||
Pagination, |
|||
pageye, |
|||
ButtonBar, |
|||
remotedecontrolAdd, |
|||
remotedecontrolInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
url: '', |
|||
dialogHeight: '80%', |
|||
centerDialogVisible: false, |
|||
btndisabled: false, |
|||
btnList: [ |
|||
{ |
|||
type: 'primary', |
|||
size: 'small', |
|||
icon: 'plus', |
|||
btnKey: 'toAdd', |
|||
btnLabel: '新增' |
|||
}, |
|||
{ |
|||
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: { |
|||
createByName: '', |
|||
createEndTime: '', |
|||
createStartTime: '', |
|||
deptName: '', |
|||
menuUrl: '', |
|||
modifyEndTime: '', |
|||
modifyStartTime: '', |
|||
orgPath: '', |
|||
useOrgName: '', |
|||
userSid: '' |
|||
} |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
// 初始化变量 |
|||
this.getList() |
|||
}, |
|||
mounted() { |
|||
// 在外部vue的window上添加postMessage的监听,而且绑定处理函数handleMessage |
|||
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.procInstSid, |
|||
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 'toAdd': |
|||
this.toAdd() |
|||
break |
|||
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: { |
|||
createByName: '', |
|||
createEndTime: '', |
|||
createStartTime: '', |
|||
deptName: '', |
|||
menuUrl: '', |
|||
modifyEndTime: '', |
|||
modifyStartTime: '', |
|||
orgPath: '', |
|||
useOrgName: '', |
|||
userSid: '' |
|||
} |
|||
} |
|||
this.getList() |
|||
}, |
|||
toAdd() { |
|||
this.viewState = 2 |
|||
this.$refs['divAdd'].showAdd() |
|||
}, |
|||
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> |
@ -0,0 +1,312 @@ |
|||
<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="toSelect">选择车辆</el-button> |
|||
<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.deptName }}</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="24"> |
|||
<div class="span-sty">备注</div> |
|||
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder="" class="addinputInfo addinputw" /></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="24"> |
|||
<div class="span-sty">附件</div> |
|||
<el-form-item> |
|||
<upload-img ref="uploadImg" class="addinputInfo" v-model="formobj.files" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>逾期车辆列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.loanVehClearanceVehList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column fixed label="操作" align="center" width="80"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="danger" size="small" @click="toDelete(scope.$index)">删除</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100"/> |
|||
<el-table-column prop="carNum" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="bankName" label="资方" align="center" width="100" /> |
|||
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120"/> |
|||
<el-table-column prop="customerName" label="客户名称" align="center" width="100" /> |
|||
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100"/> |
|||
<el-table-column prop="firstBeDate" label="首次逾期日期" align="center" width="120"/> |
|||
<el-table-column prop="beOverduePeriod" label="逾期期数" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoney" label="逾期金额" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoneyAndPeriod" label="换算期数" align="center" width="100" /> |
|||
<el-table-column prop="lockCarMoney" label="远程控制费用" align="center" width="120"/> |
|||
<el-table-column label="远程控制费实收" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<el-input v-model="scope.row.lockCarRealityMoney" clearable placeholder=""/> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="查看相关资料" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<el-select v-model="scope.row.name" @change="dataChange($event, scope.row, scope.row.sids)" placeholder="请选择" clearable> |
|||
<el-option v-for="item in scope.row.sids" :key="item.name" :label="item.name" :value="item.name"></el-option> |
|||
</el-select> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!-- 查看担保人详情 --> |
|||
<cautionerInfo v-show="viewState == 2" ref="divCautioner" @doback="resetState" /> |
|||
<!-- 查看月还明细 --> |
|||
<monthlyreturnInfo v-show="viewState == 4" ref="divMonthlyReturn" @doback="resetState"/> |
|||
<!-- 查看销售订单--金融方案 --> |
|||
<financialschemeInfo v-show="viewState == 5" ref="divFinancial" @doback="resetState"/> |
|||
<!-- 查看家访考察报告 --> |
|||
<homevisitreport v-show="viewState == 6" ref="divReport" @doback="resetState"/> |
|||
<!-- 查看家访资料 --> |
|||
<materialInfo v-show="viewState == 7" ref="divMterial" @doback="resetState"/> |
|||
<!-- 批量选择车辆 --> |
|||
<selectvehicle v-show="viewState == 8" ref="divVehicle" @backData="backData" @doback="resetState"/> |
|||
<!-- 还款协议查看 --> |
|||
<el-dialog :visible.sync="dialogVisible"> |
|||
<el-image style="width: 150px; height: 150px" v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/remotedecontrol/remotedecontrol' |
|||
import uploadImg from '@/components/uploadFile/uploadImg' |
|||
import { getOrgSidByPath } from '@/api/Common/dictcommons' |
|||
import cautionerInfo from '@/views/collectionmeasures/relation/cautionerInfo' |
|||
import monthlyreturnInfo from '@/views/overduevehicle/relation/monthlyreturnInfo' |
|||
import financialschemeInfo from '@/components/publicPage/financialschemeInfo' |
|||
import homevisitreport from '@/views/overduevehicle/relation/homevisitreport' |
|||
import materialInfo from '@/views/overduevehicle/relation/materialInfo' |
|||
import selectvehicle from './relation/selectvehicle' |
|||
|
|||
export default { |
|||
name: 'RemotedeControlAdd', |
|||
components: { |
|||
uploadImg, |
|||
cautionerInfo, |
|||
monthlyreturnInfo, |
|||
financialschemeInfo, |
|||
homevisitreport, |
|||
materialInfo, |
|||
selectvehicle |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
submitdisabled: false, |
|||
dialogVisible: false, |
|||
list: [], |
|||
tableKey: 0, |
|||
index: 0, |
|||
formobj: { |
|||
billNo: '', |
|||
createByName: '', |
|||
createBySid: '', |
|||
createTime: '', |
|||
deptName: '', |
|||
deptSid: '', |
|||
files: [], |
|||
loanVehClearanceVehList: [], |
|||
nodeSid: '', |
|||
nodeState: '', |
|||
orgPath: '', |
|||
procDefId: '', |
|||
procInstSid: '', |
|||
remarks: '', |
|||
sid: '', |
|||
taskId: '', |
|||
useOrgName: '', |
|||
useOrgSid: '' |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
methods: { |
|||
showAdd() { |
|||
this.viewTitle = '【新增】车辆远程解控申请' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { |
|||
if (resp.success) { |
|||
this.formobj.useOrgSid = resp.data |
|||
} |
|||
}) |
|||
}, |
|||
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.procInstSid |
|||
} |
|||
}) |
|||
}, |
|||
toSelect() { |
|||
this.viewState = 8 |
|||
this.$refs['divVehicle'].showData(this.formobj.loanVehClearanceVehList, this.formobj.useOrgSid) |
|||
}, |
|||
toDelete(index) { |
|||
this.formobj.loanVehClearanceVehList.splice(index, 1) |
|||
}, |
|||
// 批量选择车辆后返回数据 |
|||
backData(value) { |
|||
this.viewState = 1 |
|||
console.log(value, 88888) |
|||
const params = { |
|||
saleVehSids: [], |
|||
orgPath: '', |
|||
userSid: '' |
|||
} |
|||
if (value.length > 0) { |
|||
params.saleVehSids = value |
|||
params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
params.userSid = window.sessionStorage.getItem('userSid') |
|||
req.init(params).then((res) => { |
|||
if (res.success) { |
|||
this.formobj = res.data |
|||
} |
|||
}) |
|||
} |
|||
}, |
|||
dataChange(value, row, list) { |
|||
const choose = list.filter((item) => item.name === value) |
|||
if (value === '担保人' && choose[0].sid !== '') { |
|||
this.viewState = 2 |
|||
this.$refs['divCautioner'].showInfo(choose[0].sid) |
|||
} else if (value === '还款协议' && choose[0].files.length > 0 && choose[0].files !== null) { |
|||
this.dialogVisible = true |
|||
this.list = [] |
|||
this.list = choose[0].files |
|||
} else if (value === '月还明细' && choose[0].sid !== '') { |
|||
this.viewState = 4 |
|||
this.$refs['divMonthlyReturn'].showInfo({ saleVehSid: choose[0].sid }) |
|||
} else if (value === '金融方案' && choose[0].sid !== '') { |
|||
req.selectDetailss({ businessSid: choose[0].sid }).then((res) => { |
|||
if (res.success) { |
|||
this.viewState = 5 |
|||
this.$refs['divFinancial'].showInfo(res.data, '03') |
|||
} |
|||
}) |
|||
} else if (value === '家访考察报告' && choose[0].sid !== '') { |
|||
this.viewState = 6 |
|||
this.$refs['divReport'].showInfo({ kcbgSid: choose[0].sid }) |
|||
} else if (value === '家访考察资料' && choose[0].sid !== '') { |
|||
this.viewState = 7 |
|||
this.$refs['divMterial'].showInfo({ kczlSid: choose[0].sid }) |
|||
} else {} |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
saveOrUpdate() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
if (this.formobj.loanVehClearanceVehList.length === 0) { |
|||
this.$message({ showClose: true, type: 'error', message: '逾期车辆列表不能为空' }) |
|||
return |
|||
} |
|||
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.loanVehClearanceVehList.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 = { |
|||
billNo: '', |
|||
createByName: '', |
|||
createBySid: '', |
|||
createTime: '', |
|||
deptName: '', |
|||
deptSid: '', |
|||
files: [], |
|||
loanVehClearanceVehList: [], |
|||
nodeSid: '', |
|||
nodeState: '', |
|||
orgPath: '', |
|||
procDefId: '', |
|||
procInstSid: '', |
|||
remarks: '', |
|||
sid: '', |
|||
taskId: '', |
|||
useOrgName: '', |
|||
useOrgSid: '' |
|||
} |
|||
this.list = [] |
|||
this.dialogVisible = false |
|||
this.submitdisabled = false |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.addinputInfo { |
|||
margin-left: 60px !important; |
|||
} |
|||
</style> |
@ -0,0 +1,218 @@ |
|||
<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.deptName }}</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="24"> |
|||
<div class="span-sty">备注</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="24"> |
|||
<div class="span-sty">附件</div> |
|||
<el-form-item> |
|||
<el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in formobj.files" :key="index" :src="item" :preview-src-list="formobj.files"/> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>逾期车辆列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.loanVehClearanceVehList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100"/> |
|||
<el-table-column prop="carNum" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="bankName" label="资方" align="center" width="100" /> |
|||
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120"/> |
|||
<el-table-column prop="customerName" label="客户名称" align="center" width="100" /> |
|||
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100"/> |
|||
<el-table-column prop="firstBeDate" label="首次逾期日期" align="center" width="120"/> |
|||
<el-table-column prop="beOverduePeriod" label="逾期期数" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoney" label="逾期金额" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoneyAndPeriod" label="换算期数" align="center" width="100" /> |
|||
<el-table-column prop="lockCarMoney" label="远程控制费用" align="center" width="120" /> |
|||
<el-table-column prop="lockCarRealityMoney" label="远程控制费实收" align="center" width="120" /> |
|||
<el-table-column label="查看相关资料" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<el-select v-model="scope.row.name" @change="dataChange($event, scope.row, scope.row.sids)" placeholder="请选择" clearable> |
|||
<el-option v-for="item in scope.row.sids" :key="item.name" :label="item.name" :value="item.name"></el-option> |
|||
</el-select> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!-- 查看担保人详情 --> |
|||
<cautionerInfo v-show="viewState == 2" ref="divCautioner" @doback="resetState" /> |
|||
<!-- 查看月还明细 --> |
|||
<monthlyreturnInfo v-show="viewState == 4" ref="divMonthlyReturn" @doback="resetState"/> |
|||
<!-- 查看销售订单--金融方案 --> |
|||
<financialschemeInfo v-show="viewState == 5" ref="divFinancial" @doback="resetState"/> |
|||
<!-- 查看家访考察报告 --> |
|||
<homevisitreport v-show="viewState == 6" ref="divReport" @doback="resetState"/> |
|||
<!-- 查看家访资料 --> |
|||
<materialInfo v-show="viewState == 7" ref="divMterial" @doback="resetState"/> |
|||
<!-- 还款协议查看 --> |
|||
<el-dialog :visible.sync="dialogVisible"> |
|||
<el-image style="width: 150px; height: 150px" v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/remotedecontrol/remotedecontrol' |
|||
import cautionerInfo from '@/views/collectionmeasures/relation/cautionerInfo' |
|||
import monthlyreturnInfo from '@/views/overduevehicle/relation/monthlyreturnInfo' |
|||
import financialschemeInfo from '@/components/publicPage/financialschemeInfo' |
|||
import homevisitreport from '@/views/overduevehicle/relation/homevisitreport' |
|||
import materialInfo from '@/views/overduevehicle/relation/materialInfo' |
|||
|
|||
export default { |
|||
name: 'RemotedeControlInfo', |
|||
components: { |
|||
cautionerInfo, |
|||
monthlyreturnInfo, |
|||
financialschemeInfo, |
|||
homevisitreport, |
|||
materialInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
submitdisabled: false, |
|||
dialogVisible: false, |
|||
list: [], |
|||
tableKey: 0, |
|||
index: 0, |
|||
formobj: { |
|||
billNo: '', |
|||
createByName: '', |
|||
createBySid: '', |
|||
createTime: '', |
|||
deptName: '', |
|||
deptSid: '', |
|||
files: [], |
|||
loanVehClearanceVehList: [], |
|||
nodeSid: '', |
|||
nodeState: '', |
|||
orgPath: '', |
|||
procDefId: '', |
|||
procInstSid: '', |
|||
remarks: '', |
|||
sid: '', |
|||
taskId: '', |
|||
useOrgName: '', |
|||
useOrgSid: '' |
|||
}, |
|||
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 |
|||
if (this.formobj.files.length > 0) { |
|||
const aa = [] |
|||
this.formobj.files.forEach((e) => { |
|||
aa.push(e.url) |
|||
}) |
|||
this.formobj.files = aa |
|||
} |
|||
} |
|||
}) |
|||
}, |
|||
dataChange(value, row, list) { |
|||
const choose = list.filter((item) => item.name === value) |
|||
if (value === '担保人' && choose[0].sid !== '') { |
|||
this.viewState = 2 |
|||
this.$refs['divCautioner'].showInfo(choose[0].sid) |
|||
} else if (value === '还款协议' && choose[0].files.length > 0 && choose[0].files !== null) { |
|||
this.dialogVisible = true |
|||
this.list = [] |
|||
this.list = choose[0].files |
|||
} else if (value === '月还明细' && choose[0].sid !== '') { |
|||
this.viewState = 4 |
|||
this.$refs['divMonthlyReturn'].showInfo({ saleVehSid: choose[0].sid }) |
|||
} else if (value === '金融方案' && choose[0].sid !== '') { |
|||
req.selectDetailss({ businessSid: choose[0].sid }).then((res) => { |
|||
if (res.success) { |
|||
this.viewState = 5 |
|||
this.$refs['divFinancial'].showInfo(res.data, '03') |
|||
} |
|||
}) |
|||
} else if (value === '家访考察报告' && choose[0].sid !== '') { |
|||
this.viewState = 6 |
|||
this.$refs['divReport'].showInfo({ kcbgSid: choose[0].sid }) |
|||
} else if (value === '家访考察资料' && choose[0].sid !== '') { |
|||
this.viewState = 7 |
|||
this.$refs['divMterial'].showInfo({ kczlSid: choose[0].sid }) |
|||
} else {} |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
handleReturn() { |
|||
this.formobj = { |
|||
billNo: '', |
|||
createByName: '', |
|||
createBySid: '', |
|||
createTime: '', |
|||
deptName: '', |
|||
deptSid: '', |
|||
files: [], |
|||
loanVehClearanceVehList: [], |
|||
nodeSid: '', |
|||
nodeState: '', |
|||
orgPath: '', |
|||
procDefId: '', |
|||
procInstSid: '', |
|||
remarks: '', |
|||
sid: '', |
|||
taskId: '', |
|||
useOrgName: '', |
|||
useOrgSid: '' |
|||
} |
|||
this.list = [] |
|||
this.dialogVisible = false |
|||
this.submitdisabled = false |
|||
this.$emit('doback') |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.addinputInfo { |
|||
margin-left: 60px !important; |
|||
} |
|||
</style> |
@ -0,0 +1,204 @@ |
|||
<template> |
|||
<div class="app-container"> |
|||
<div> |
|||
<div class="tab-header webtop"> |
|||
<div>选择车辆页面</div> |
|||
<div> |
|||
<el-button type="primary" size="small" @click="AddUpdateReturn">确定</el-button> |
|||
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<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" label-width="120px" class="tab-header"> |
|||
<el-form-item label="客户名称" class="searchlist"> |
|||
<el-input v-model="listQuery.params.custName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="贷款人" class="searchlist"> |
|||
<el-input v-model="listQuery.params.borrowerName" placeholder="" clearable/> |
|||
</el-form-item> |
|||
<el-form-item label="车牌号" class="searchlist"> |
|||
<el-input v-model="listQuery.params.carNum" placeholder="" clearable /> |
|||
</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" ref="multipleTable" v-loading="listLoading" :data="list" border style="width: 100%" @selection-change="handleSelectionChange"> |
|||
<el-table-column width="50px" type="selection" align="center"/> |
|||
<el-table-column width="80px" label="序号" type="index" :index="indexMethod" align="center"/> |
|||
<el-table-column label="贷款合同编号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.loanContractNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车架号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.vinNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="车牌号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.carNum }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="资方" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.bankName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="资方合同编号" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.bankContractNo }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="客户名称" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.custName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="贷款人" align="center"> |
|||
<template slot-scope="scope"> |
|||
<span>{{ scope.row.borrowerName }}</span> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
<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> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Pagination from '@/components/pagination' |
|||
import req from '@/api/remotedecontrol/remotedecontrol' |
|||
|
|||
export default { |
|||
name: 'SelectVehicle', |
|||
components: { |
|||
Pagination |
|||
}, |
|||
data() { |
|||
return { |
|||
isSearchShow: false, |
|||
searchxianshitit: '隐藏查询条件', |
|||
tableKey: 0, |
|||
sids: [], |
|||
list: [], |
|||
number: '', |
|||
listLoading: false, |
|||
listQuery: { |
|||
current: 1, |
|||
size: 5, |
|||
params: { |
|||
custName: '', |
|||
borrowerName: '', |
|||
carNum: '', |
|||
useOrgSid: '', |
|||
saleVehSids: [] |
|||
}, |
|||
total: 0 |
|||
} |
|||
} |
|||
}, |
|||
methods: { |
|||
// 搜索条件效果 |
|||
clicksearchShow() { |
|||
this.isSearchShow = !this.isSearchShow |
|||
if (this.isSearchShow) { |
|||
this.searchxianshitit = '隐藏查询条件' |
|||
} else { |
|||
this.searchxianshitit = '显示查询条件' |
|||
} |
|||
}, |
|||
indexMethod(index) { |
|||
var pagestart = (this.listQuery.current - 1) * this.listQuery.size |
|||
var pageindex = index + 1 + pagestart |
|||
return pageindex |
|||
}, |
|||
// 返回 |
|||
handleReturn() { |
|||
this.$emit('doback') |
|||
}, |
|||
// 查询列表信息 |
|||
getList() { |
|||
this.listLoading = true |
|||
req.lockCarList(this.listQuery).then((response) => { |
|||
this.listLoading = false |
|||
if (response.success) { |
|||
this.listQuery.total = response.data.total |
|||
this.list = response.data.records |
|||
} |
|||
}) |
|||
}, |
|||
// 查询按钮 |
|||
handleFilter() { |
|||
this.listQuery.current = 1 |
|||
this.getList() |
|||
}, |
|||
// 重置按钮 |
|||
handleReset() { |
|||
this.listQuery.current = 1 |
|||
this.listQuery.size = 5 |
|||
this.listQuery.total = 0 |
|||
this.listQuery.params.custName = '' |
|||
this.listQuery.params.carNum = '' |
|||
this.listQuery.params.borrowerName = '' |
|||
this.getList() |
|||
}, |
|||
handleSelectionChange(row) { |
|||
const aa = [] |
|||
row.forEach((element) => { |
|||
aa.push(element.saleVehSid) |
|||
}) |
|||
this.sids = aa |
|||
}, |
|||
showData(value, createOrgSid) { |
|||
const aa = [] |
|||
if (value.length > 0) { |
|||
for (var i = 0; i < value.length; i++) { |
|||
aa.push(value[i].saleVehSid) |
|||
} |
|||
this.listQuery.params.saleVehSids = aa |
|||
} else { |
|||
this.listQuery.params.saleVehSids = [] |
|||
}`` |
|||
this.listQuery.params.useOrgSid = createOrgSid |
|||
this.listQuery.current = 1 |
|||
this.listQuery.size = 5 |
|||
this.listQuery.total = 0 |
|||
this.getList() |
|||
}, |
|||
// 添加修改返回 |
|||
AddUpdateReturn() { |
|||
if (this.sids.length > 0) { |
|||
this.$emit('backData', this.sids) |
|||
} else { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '请选择至少一条记录!', |
|||
type: 'error', |
|||
duration: 2000 |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
<style scoped> |
|||
</style> |
@ -0,0 +1,478 @@ |
|||
<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" @click="openCountersign('加签')">加 签</el-button> |
|||
<el-button type="primary" size="small" @click="openAgree('同意')">同 意</el-button> |
|||
<el-button type="danger" size="small" @click="openReject('驳回')">驳 回</el-button> |
|||
<el-button type="danger" size="small" @click="openStop('终止')">终 止</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<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.deptName }}</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="24"> |
|||
<div class="span-sty">备注</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="24"> |
|||
<div class="span-sty">附件</div> |
|||
<el-form-item> |
|||
<el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in formobj.files" :key="index" :src="item" :preview-src-list="formobj.files"/> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>逾期车辆列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.loanVehClearanceVehList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100"/> |
|||
<el-table-column prop="carNum" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="bankName" label="资方" align="center" width="100" /> |
|||
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120"/> |
|||
<el-table-column prop="customerName" label="客户名称" align="center" width="100" /> |
|||
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100"/> |
|||
<el-table-column prop="firstBeDate" label="首次逾期日期" align="center" width="120"/> |
|||
<el-table-column prop="beOverduePeriod" label="逾期期数" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoney" label="逾期金额" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoneyAndPeriod" label="换算期数" align="center" width="100" /> |
|||
<el-table-column prop="lockCarMoney" label="远程控制费用" align="center" width="120" /> |
|||
<el-table-column prop="lockCarRealityMoney" label="远程控制费实收" align="center" width="120" /> |
|||
<el-table-column label="查看相关资料" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<el-select v-model="scope.row.name" @change="dataChange($event, scope.row, scope.row.sids)" placeholder="请选择" clearable> |
|||
<el-option v-for="item in scope.row.sids" :key="item.name" :label="item.name" :value="item.name"></el-option> |
|||
</el-select> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!-- 查看担保人详情 --> |
|||
<cautionerInfo v-show="viewState == 2" ref="divCautioner" @doback="resetState" /> |
|||
<!-- 查看月还明细 --> |
|||
<monthlyreturnInfo v-show="viewState == 4" ref="divMonthlyReturn" @doback="resetState"/> |
|||
<!-- 查看销售订单--金融方案 --> |
|||
<financialschemeInfo v-show="viewState == 5" ref="divFinancial" @doback="resetState"/> |
|||
<!-- 查看家访考察报告 --> |
|||
<homevisitreport v-show="viewState == 6" ref="divReport" @doback="resetState"/> |
|||
<!-- 查看家访资料 --> |
|||
<materialInfo v-show="viewState == 7" ref="divMterial" @doback="resetState"/> |
|||
<!-- 还款协议查看 --> |
|||
<el-dialog :visible.sync="dialogVisible"> |
|||
<el-image style="width: 150px; height: 150px" v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/> |
|||
</el-dialog> |
|||
<!-- 选择待办人 的弹出框--> |
|||
<el-dialog title="填写审批意见" :visible.sync="nodeDialogVisible" width="80%"> |
|||
<el-form class="formadd" > |
|||
<el-row v-show="countersignLink" style="border-top: 1px solid #e0e3eb"> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span class="icon">*</span>加签人员: |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item> |
|||
<el-select v-model="countersign.assignee" placeholder="请选择" filterable> |
|||
<el-option v-for="item in options" :key="item.userSid" :label="item.staffName" :value="item.userSid"> |
|||
</el-option> |
|||
</el-select> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row v-show="currentLink" style="border-top: 1px solid #e0e3eb"> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>当前环节:</span> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item><span>{{ current.taskName }}->{{ nextNode.name }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row :class="{rowClass:!currentLink}"> |
|||
<el-col :span="4" class="tleftb"> |
|||
<span>意见:</span> |
|||
</el-col> |
|||
<el-col :span="20"> |
|||
<el-form-item><el-input size="small" v-model="dialogList.comment" placeholder="审批意见" class="addinputw" type="textarea" :autosize="{ minRows: 1, maxRows: 10}" clearable ></el-input></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div style="text-align:center;margin-top: 20px;"> |
|||
<el-button type="primary" size="mini" @click="reject">确 定</el-button> |
|||
<el-button type="info " size="mini" @click="nodeDialogVisible = false">取 消</el-button> |
|||
</div> |
|||
</el-form> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/remotedecontrol/remotedecontrol' |
|||
import cautionerInfo from '../cuishoucuoshiFlow/relation/cautionerInfo' |
|||
import monthlyreturnInfo from '../cuishoucuoshiFlow/relation/monthlyreturnInfo' |
|||
import financialschemeInfo from '../publicPage/financialschemeInfo' |
|||
import homevisitreport from '../cuishoucuoshiFlow/relation/homevisitreport' |
|||
import materialInfo from '../cuishoucuoshiFlow/relation/materialInfo' |
|||
import { selectStaffListss } from '@/api/Common/dictcommons' |
|||
|
|||
export default { |
|||
name: 'RemotedeControlDaiBan', |
|||
components: { |
|||
cautionerInfo, |
|||
monthlyreturnInfo, |
|||
financialschemeInfo, |
|||
homevisitreport, |
|||
materialInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
submitdisabled: false, |
|||
dialogVisible: false, |
|||
list: [], |
|||
tableKey: 0, |
|||
index: 0, |
|||
formobj: { |
|||
billNo: '', |
|||
createByName: '', |
|||
createBySid: '', |
|||
createTime: '', |
|||
deptName: '', |
|||
deptSid: '', |
|||
files: [], |
|||
loanVehClearanceVehList: [], |
|||
nodeSid: '', |
|||
nodeState: '', |
|||
orgPath: '', |
|||
procDefId: '', |
|||
procInstSid: '', |
|||
remarks: '', |
|||
sid: '', |
|||
taskId: '', |
|||
useOrgName: '', |
|||
useOrgSid: '' |
|||
}, |
|||
rules: {}, |
|||
options: [], |
|||
operation: '', // 点击操作按钮 |
|||
dialogList: { |
|||
comment: '' |
|||
}, |
|||
startTask: true, |
|||
current: { |
|||
taskDefKey: '', |
|||
taskName: '' // 当前环节名称 |
|||
}, |
|||
nextNode: {}, // 下一环节 |
|||
nodeDialogVisible: false, |
|||
currentLink: true, |
|||
countersignLink: false, |
|||
// 环节所需参数 |
|||
linkByParameter: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
orgSidPath: '', |
|||
taskDefKey: '', |
|||
userSid: '' |
|||
}, |
|||
// 加签按钮所需参数 |
|||
countersign: { |
|||
taskId: '', |
|||
assignee: '', |
|||
userSid: '', |
|||
instanceId: '', |
|||
views: '' |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
console.log('url:' + window.location.href) |
|||
var one = window.location.href.indexOf('&data') + 6 |
|||
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用 |
|||
const obj = JSON.parse(decodeURIComponent(data)) |
|||
console.log('iframe页面获取的obj:', obj) |
|||
// 点击(同意、终止、驳回、驳回)操作时所需的参数 |
|||
this.linkByParameter.businessSid = obj.businessSid |
|||
this.linkByParameter.instanceId = obj.instanceId |
|||
this.linkByParameter.taskId = obj.taskId |
|||
this.linkByParameter.taskDefKey = obj.taskDefKey |
|||
// this.linkByParameter.orgSidPath = window.sessionStorage.getItem('orgSidPath') |
|||
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid') |
|||
this.current.taskDefKey = obj.taskDefKey |
|||
this.current.taskName = obj.taskName |
|||
// 加签参数 |
|||
this.countersign.taskId = obj.taskId |
|||
this.countersign.userSid = window.sessionStorage.getItem('userSid') |
|||
this.countersign.instanceId = obj.instanceId |
|||
// 加载表单数据 |
|||
this.showInfo(obj.businessSid) |
|||
}, |
|||
mounted() { |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 告诉父级页面,子页面的弹框高度。 |
|||
code: 2, |
|||
data: 400 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
this.viewTitle = '车辆远程解控申请详情' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
req.fetchBySid(sid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj = res.data |
|||
if (this.formobj.files.length > 0) { |
|||
const aa = [] |
|||
this.formobj.files.forEach((e) => { |
|||
aa.push(e.url) |
|||
}) |
|||
this.formobj.files = aa |
|||
} |
|||
} |
|||
}) |
|||
selectStaffListss().then((res) => { |
|||
if (res.success) { |
|||
this.options = res.data |
|||
} |
|||
}) |
|||
}, |
|||
dataChange(value, row, list) { |
|||
const choose = list.filter((item) => item.name === value) |
|||
if (value === '担保人' && choose[0].sid !== '') { |
|||
this.viewState = 2 |
|||
this.$refs['divCautioner'].showInfo(choose[0].sid) |
|||
} else if (value === '还款协议' && choose[0].files.length > 0 && choose[0].files !== null) { |
|||
this.dialogVisible = true |
|||
this.list = [] |
|||
this.list = choose[0].files |
|||
} else if (value === '月还明细' && choose[0].sid !== '') { |
|||
this.viewState = 4 |
|||
this.$refs['divMonthlyReturn'].showInfo({ saleVehSid: choose[0].sid }) |
|||
} else if (value === '金融方案' && choose[0].sid !== '') { |
|||
req.selectDetailss({ businessSid: choose[0].sid }).then((res) => { |
|||
if (res.success) { |
|||
this.viewState = 5 |
|||
this.$refs['divFinancial'].showInfo(res.data, '03') |
|||
} |
|||
}) |
|||
} else if (value === '家访考察报告' && choose[0].sid !== '') { |
|||
this.viewState = 6 |
|||
this.$refs['divReport'].showInfo({ kcbgSid: choose[0].sid }) |
|||
} else if (value === '家访考察资料' && choose[0].sid !== '') { |
|||
this.viewState = 7 |
|||
this.$refs['divMterial'].showInfo({ kczlSid: choose[0].sid }) |
|||
} else {} |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
// 加签 |
|||
openCountersign(val) { |
|||
this.operation = val |
|||
this.currentLink = true |
|||
this.countersignLink = true |
|||
this.dialogList.comment = '' |
|||
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => { |
|||
if (resp.success) { |
|||
var arr = resp.data |
|||
this.nextNode = arr[0] |
|||
this.nodeDialogVisible = true |
|||
} |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// 同意 |
|||
openAgree(val) { |
|||
this.operation = val |
|||
this.currentLink = true |
|||
this.countersignLink = false |
|||
this.dialogList.comment = '同意' |
|||
req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => { |
|||
if (resp.success) { |
|||
var arr = resp.data |
|||
this.nextNode = arr[0] |
|||
this.nodeDialogVisible = true |
|||
} |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// 驳回 |
|||
openReject(val) { |
|||
this.operation = val |
|||
this.currentLink = true |
|||
this.countersignLink = false |
|||
this.dialogList.comment = '' |
|||
req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, businessSid: this.linkByParameter.businessSid }).then((resp) => { |
|||
if (resp.success) { |
|||
var arr = resp.data |
|||
this.nextNode = arr[0] |
|||
this.nodeDialogVisible = true |
|||
} |
|||
this.submitdisabled = false |
|||
}) |
|||
}, |
|||
// 终止 |
|||
openStop(val) { |
|||
this.operation = val |
|||
this.currentLink = false |
|||
this.countersignLink = false |
|||
this.dialogList.comment = '' |
|||
this.nodeDialogVisible = true |
|||
}, |
|||
reject() { |
|||
if (this.operation === '同意') { |
|||
this.handleAgree() |
|||
} else if (this.operation === '驳回') { |
|||
if (this.dialogList.comment === '') { |
|||
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' }) |
|||
} else { |
|||
this.handleReject() |
|||
} |
|||
} else if (this.operation === '终止') { |
|||
if (this.dialogList.comment === '') { |
|||
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' }) |
|||
} else { |
|||
this.handleStop() |
|||
} |
|||
} else if (this.operation === '加签') { |
|||
this.handleCountersign() |
|||
} |
|||
}, |
|||
/** 加签 */ |
|||
handleCountersign() { |
|||
if (this.countersign.assignee === '') { |
|||
this.$message({ showClose: true, type: 'error', message: '请选择加签人员' }) |
|||
return |
|||
} |
|||
if (this.dialogList.comment === '') { |
|||
this.$message({ showClose: true, type: 'error', message: '请填写审批意见' }) |
|||
return |
|||
} |
|||
this.countersign.views = this.dialogList.comment |
|||
req.delegate(this.countersign).then((response) => { |
|||
if (response.success) { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行成功', |
|||
type: 'success', |
|||
duration: 2000 |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
/** 同意任务 */ |
|||
handleAgree() { |
|||
this.linkByParameter.comment = this.dialogList.comment |
|||
req.complete(this.linkByParameter).then((response) => { |
|||
if (response.success) { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行成功', |
|||
type: 'success', |
|||
duration: 2000 |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
/** 驳回任务 */ |
|||
handleReject() { |
|||
this.linkByParameter.comment = this.dialogList.comment |
|||
req.reject(this.linkByParameter).then((response) => { |
|||
if (response.success) { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行成功', |
|||
type: 'success', |
|||
duration: 2000 |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
}, |
|||
/** 终止任务 */ |
|||
handleStop() { |
|||
this.linkByParameter.comment = this.dialogList.comment |
|||
req.breakProcess(this.linkByParameter).then((response) => { |
|||
if (response.success) { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行成功', |
|||
type: 'success', |
|||
duration: 2000 |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.addinputInfo { |
|||
margin-left: 60px !important; |
|||
} |
|||
.rowClass{ |
|||
border-top: 1px solid #E0E3EB; |
|||
} |
|||
</style> |
@ -0,0 +1,303 @@ |
|||
<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="toSelect">选择车辆</el-button> |
|||
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button> |
|||
<el-button type="primary" size="small" :disabled="submitdisabled" @click="submit()">提交</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<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.deptName }}</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="24"> |
|||
<div class="span-sty">备注</div> |
|||
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder="" class="addinputInfo addinputw" /></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="24"> |
|||
<div class="span-sty">附件</div> |
|||
<el-form-item> |
|||
<upload-img ref="uploadImg" class="addinputInfo" v-model="formobj.files" :limit="50" bucket="map" :upload-data="{ type: '0001' }"/> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>逾期车辆列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.loanVehClearanceVehList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column fixed label="操作" align="center" width="80"> |
|||
<template slot-scope="scope"> |
|||
<el-button type="danger" size="small" @click="toDelete(scope.$index)">删除</el-button> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100"/> |
|||
<el-table-column prop="carNum" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="bankName" label="资方" align="center" width="100" /> |
|||
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120"/> |
|||
<el-table-column prop="customerName" label="客户名称" align="center" width="100" /> |
|||
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100"/> |
|||
<el-table-column prop="firstBeDate" label="首次逾期日期" align="center" width="120"/> |
|||
<el-table-column prop="beOverduePeriod" label="逾期期数" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoney" label="逾期金额" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoneyAndPeriod" label="换算期数" align="center" width="100" /> |
|||
<el-table-column prop="lockCarMoney" label="远程控制费用" align="center" width="120"/> |
|||
<el-table-column label="远程控制费实收" align="center" width="120"> |
|||
<template slot-scope="scope"> |
|||
<el-input v-model="scope.row.lockCarRealityMoney" clearable placeholder=""/> |
|||
</template> |
|||
</el-table-column> |
|||
<el-table-column label="查看相关资料" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<el-select v-model="scope.row.name" @change="dataChange($event, scope.row, scope.row.sids)" placeholder="请选择" clearable> |
|||
<el-option v-for="item in scope.row.sids" :key="item.name" :label="item.name" :value="item.name"></el-option> |
|||
</el-select> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!-- 查看担保人详情 --> |
|||
<cautionerInfo v-show="viewState == 2" ref="divCautioner" @doback="resetState" /> |
|||
<!-- 查看月还明细 --> |
|||
<monthlyreturnInfo v-show="viewState == 4" ref="divMonthlyReturn" @doback="resetState"/> |
|||
<!-- 查看销售订单--金融方案 --> |
|||
<financialschemeInfo v-show="viewState == 5" ref="divFinancial" @doback="resetState"/> |
|||
<!-- 查看家访考察报告 --> |
|||
<homevisitreport v-show="viewState == 6" ref="divReport" @doback="resetState"/> |
|||
<!-- 查看家访资料 --> |
|||
<materialInfo v-show="viewState == 7" ref="divMterial" @doback="resetState"/> |
|||
<!-- 批量选择车辆 --> |
|||
<selectvehicle v-show="viewState == 8" ref="divVehicle" @backData="backData" @doback="resetState"/> |
|||
<!-- 还款协议查看 --> |
|||
<el-dialog :visible.sync="dialogVisible"> |
|||
<el-image style="width: 150px; height: 150px" v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/remotedecontrol/remotedecontrol' |
|||
import uploadImg from '@/components/uploadFile/uploadImg' |
|||
import { getOrgSidByPath } from '@/api/Common/dictcommons' |
|||
import cautionerInfo from '../cuishoucuoshiFlow/relation/cautionerInfo' |
|||
import monthlyreturnInfo from '../cuishoucuoshiFlow/relation/monthlyreturnInfo' |
|||
import financialschemeInfo from '../publicPage/financialschemeInfo' |
|||
import homevisitreport from '../cuishoucuoshiFlow/relation/homevisitreport' |
|||
import materialInfo from '../cuishoucuoshiFlow/relation/materialInfo' |
|||
import selectvehicle from './relation/selectvehicle' |
|||
|
|||
export default { |
|||
name: 'RemotedeControlEdit', |
|||
components: { |
|||
uploadImg, |
|||
cautionerInfo, |
|||
monthlyreturnInfo, |
|||
financialschemeInfo, |
|||
homevisitreport, |
|||
materialInfo, |
|||
selectvehicle |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
submitdisabled: false, |
|||
dialogVisible: false, |
|||
list: [], |
|||
tableKey: 0, |
|||
index: 0, |
|||
formobj: { |
|||
billNo: '', |
|||
createByName: '', |
|||
createBySid: '', |
|||
createTime: '', |
|||
deptName: '', |
|||
deptSid: '', |
|||
files: [], |
|||
loanVehClearanceVehList: [], |
|||
nodeSid: '', |
|||
nodeState: '', |
|||
orgPath: '', |
|||
procDefId: '', |
|||
procInstSid: '', |
|||
remarks: '', |
|||
sid: '', |
|||
taskId: '', |
|||
useOrgName: '', |
|||
useOrgSid: '' |
|||
}, |
|||
rules: {} |
|||
} |
|||
}, |
|||
created() { |
|||
console.log('url:' + window.location.href) |
|||
var one = window.location.href.indexOf('&data') + 6 |
|||
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用 |
|||
const obj = JSON.parse(decodeURIComponent(data)) |
|||
this.showInfo(obj.businessSid) |
|||
}, |
|||
mounted() { |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 告诉父级页面,子页面的弹框高度。 |
|||
code: 2, |
|||
data: 500 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
this.viewTitle = '【编辑】车辆远程解控申请' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
req.fetchBySid(sid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj = res.data |
|||
this.formobj.instanceId = res.data.procInstSid |
|||
} |
|||
}) |
|||
}, |
|||
toSelect() { |
|||
this.viewState = 8 |
|||
this.$refs['divVehicle'].showData(this.formobj.loanVehClearanceVehList, this.formobj.useOrgSid) |
|||
}, |
|||
toDelete(index) { |
|||
this.formobj.loanVehClearanceVehList.splice(index, 1) |
|||
}, |
|||
// 批量选择车辆后返回数据 |
|||
backData(value) { |
|||
this.viewState = 1 |
|||
const params = { |
|||
saleVehSids: [], |
|||
orgPath: '', |
|||
userSid: '' |
|||
} |
|||
if (value.length > 0) { |
|||
params.saleVehSids = value |
|||
params.orgPath = window.sessionStorage.getItem('defaultOrgPath') |
|||
params.userSid = window.sessionStorage.getItem('userSid') |
|||
req.init(params).then((res) => { |
|||
if (res.success) { |
|||
this.formobj = res.data |
|||
} |
|||
}) |
|||
} |
|||
}, |
|||
dataChange(value, row, list) { |
|||
const choose = list.filter((item) => item.name === value) |
|||
if (value === '担保人' && choose[0].sid !== '') { |
|||
this.viewState = 2 |
|||
this.$refs['divCautioner'].showInfo(choose[0].sid) |
|||
} else if (value === '还款协议' && choose[0].files.length > 0 && choose[0].files !== null) { |
|||
this.dialogVisible = true |
|||
this.list = [] |
|||
this.list = choose[0].files |
|||
} else if (value === '月还明细' && choose[0].sid !== '') { |
|||
this.viewState = 4 |
|||
this.$refs['divMonthlyReturn'].showInfo({ saleVehSid: choose[0].sid }) |
|||
} else if (value === '金融方案' && choose[0].sid !== '') { |
|||
req.selectDetailss({ businessSid: choose[0].sid }).then((res) => { |
|||
if (res.success) { |
|||
this.viewState = 5 |
|||
this.$refs['divFinancial'].showInfo(res.data, '03') |
|||
} |
|||
}) |
|||
} else if (value === '家访考察报告' && choose[0].sid !== '') { |
|||
this.viewState = 6 |
|||
this.$refs['divReport'].showInfo({ kcbgSid: choose[0].sid }) |
|||
} else if (value === '家访考察资料' && choose[0].sid !== '') { |
|||
this.viewState = 7 |
|||
this.$refs['divMterial'].showInfo({ kczlSid: choose[0].sid }) |
|||
} else {} |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
saveOrUpdate() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
if (this.formobj.loanVehClearanceVehList.length === 0) { |
|||
this.$message({ showClose: true, type: 'error', message: '逾期车辆列表不能为空' }) |
|||
return |
|||
} |
|||
this.submitdisabled = true |
|||
req.saveOrUpdate(this.formobj).then((res) => { |
|||
if (res.success) { |
|||
this.$message({ showClose: true, type: 'success', message: '保存成功' }) |
|||
// 子页面向父级页面传递值(关闭弹框) |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} else { |
|||
this.submitdisabled = false |
|||
} |
|||
}).catch(() => { |
|||
this.submitdisabled = false |
|||
}) |
|||
} |
|||
}) |
|||
}, |
|||
submit() { |
|||
this.$refs['form_obj'].validate((valid) => { |
|||
if (valid) { |
|||
if (this.formobj.loanVehClearanceVehList.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: '操作成功' }) |
|||
// 子页面向父级页面传递值(关闭弹框) |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} else { |
|||
this.submitdisabled = false |
|||
} |
|||
}).catch(() => { |
|||
this.submitdisabled = false |
|||
}) |
|||
} |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.addinputInfo { |
|||
margin-left: 60px !important; |
|||
} |
|||
</style> |
@ -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="danger" size="small" @click="openRevoke()">撤回</el-button> |
|||
</div> |
|||
</div> |
|||
<div class=""> |
|||
<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.deptName }}</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="24"> |
|||
<div class="span-sty">备注</div> |
|||
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<el-row> |
|||
<el-col :span="24"> |
|||
<div class="span-sty">附件</div> |
|||
<el-form-item> |
|||
<el-image class="addinputInfo" style="width: 150px;height: 150px" v-for="(item, index) in formobj.files" :key="index" :src="item" :preview-src-list="formobj.files"/> |
|||
</el-form-item> |
|||
</el-col> |
|||
</el-row> |
|||
<div class="title"> |
|||
<div>逾期车辆列表</div> |
|||
</div> |
|||
<el-table :key="tableKey" :data="formobj.loanVehClearanceVehList" :index="index" border style="width: 100%"> |
|||
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/> |
|||
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="120" /> |
|||
<el-table-column prop="vinNo" label="车架号" align="center" width="100"/> |
|||
<el-table-column prop="carNum" label="车牌号" align="center" width="100" /> |
|||
<el-table-column prop="bankName" label="资方" align="center" width="100" /> |
|||
<el-table-column prop="bankContractNo" label="资方合同编号" align="center" width="120"/> |
|||
<el-table-column prop="customerName" label="客户名称" align="center" width="100" /> |
|||
<el-table-column prop="borrowerName" label="贷款人" align="center" width="100"/> |
|||
<el-table-column prop="firstBeDate" label="首次逾期日期" align="center" width="120"/> |
|||
<el-table-column prop="beOverduePeriod" label="逾期期数" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoney" label="逾期金额" align="center" width="100" /> |
|||
<el-table-column prop="beOverdueMoneyAndPeriod" label="换算期数" align="center" width="100" /> |
|||
<el-table-column prop="lockCarMoney" label="远程控制费用" align="center" width="120" /> |
|||
<el-table-column prop="lockCarRealityMoney" label="远程控制费实收" align="center" width="120" /> |
|||
<el-table-column label="查看相关资料" align="center" width="150"> |
|||
<template slot-scope="scope"> |
|||
<el-select v-model="scope.row.name" @change="dataChange($event, scope.row, scope.row.sids)" placeholder="请选择" clearable> |
|||
<el-option v-for="item in scope.row.sids" :key="item.name" :label="item.name" :value="item.name"></el-option> |
|||
</el-select> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</el-form> |
|||
</div> |
|||
</div> |
|||
<!-- 查看担保人详情 --> |
|||
<cautionerInfo v-show="viewState == 2" ref="divCautioner" @doback="resetState" /> |
|||
<!-- 查看月还明细 --> |
|||
<monthlyreturnInfo v-show="viewState == 4" ref="divMonthlyReturn" @doback="resetState"/> |
|||
<!-- 查看销售订单--金融方案 --> |
|||
<financialschemeInfo v-show="viewState == 5" ref="divFinancial" @doback="resetState"/> |
|||
<!-- 查看家访考察报告 --> |
|||
<homevisitreport v-show="viewState == 6" ref="divReport" @doback="resetState"/> |
|||
<!-- 查看家访资料 --> |
|||
<materialInfo v-show="viewState == 7" ref="divMterial" @doback="resetState"/> |
|||
<!-- 还款协议查看 --> |
|||
<el-dialog :visible.sync="dialogVisible"> |
|||
<el-image style="width: 150px; height: 150px" v-for="(item, index) in list" :key="index" :src="item" :preview-src-list="list"/> |
|||
</el-dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import req from '@/api/remotedecontrol/remotedecontrol' |
|||
import cautionerInfo from '../cuishoucuoshiFlow/relation/cautionerInfo' |
|||
import monthlyreturnInfo from '../cuishoucuoshiFlow/relation/monthlyreturnInfo' |
|||
import financialschemeInfo from '../publicPage/financialschemeInfo' |
|||
import homevisitreport from '../cuishoucuoshiFlow/relation/homevisitreport' |
|||
import materialInfo from '../cuishoucuoshiFlow/relation/materialInfo' |
|||
|
|||
export default { |
|||
name: 'RemotedeControlYiBan', |
|||
components: { |
|||
cautionerInfo, |
|||
monthlyreturnInfo, |
|||
financialschemeInfo, |
|||
homevisitreport, |
|||
materialInfo |
|||
}, |
|||
data() { |
|||
return { |
|||
viewTitle: '', |
|||
viewState: 1, |
|||
submitdisabled: false, |
|||
dialogVisible: false, |
|||
list: [], |
|||
tableKey: 0, |
|||
index: 0, |
|||
formobj: { |
|||
billNo: '', |
|||
createByName: '', |
|||
createBySid: '', |
|||
createTime: '', |
|||
deptName: '', |
|||
deptSid: '', |
|||
files: [], |
|||
loanVehClearanceVehList: [], |
|||
nodeSid: '', |
|||
nodeState: '', |
|||
orgPath: '', |
|||
procDefId: '', |
|||
procInstSid: '', |
|||
remarks: '', |
|||
sid: '', |
|||
taskId: '', |
|||
useOrgName: '', |
|||
useOrgSid: '' |
|||
}, |
|||
rules: {}, |
|||
// 环节所需参数 |
|||
linkByParameter: { |
|||
businessSid: '', |
|||
comment: '', |
|||
instanceId: '', |
|||
taskId: '', |
|||
orgSidPath: '', |
|||
taskDefKey: '', |
|||
userSid: '' |
|||
} |
|||
} |
|||
}, |
|||
created() { |
|||
console.log('url:' + window.location.href) |
|||
var one = window.location.href.indexOf('&data') + 6 |
|||
const data = window.location.href.substr(one) // url解码unescape()已从web中移除,尽量不使用 |
|||
const obj = JSON.parse(decodeURIComponent(data)) |
|||
console.log('iframe页面获取的obj:', obj) |
|||
// 点击(同意、终止、驳回、驳回)操作时所需的参数 |
|||
this.linkByParameter.businessSid = obj.businessSid |
|||
this.linkByParameter.instanceId = obj.instanceId |
|||
this.linkByParameter.taskId = obj.taskId |
|||
this.linkByParameter.taskDefKey = obj.taskDefKey |
|||
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid') |
|||
// 加载表单数据 |
|||
this.showInfo(obj.businessSid) |
|||
}, |
|||
mounted() { |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 告诉父级页面,子页面的弹框高度。 |
|||
code: 2, |
|||
data: 400 + 'px' |
|||
} |
|||
}, '*') |
|||
}, |
|||
methods: { |
|||
showInfo(sid) { |
|||
this.viewTitle = '车辆远程解控申请详情' |
|||
this.$nextTick(() => { |
|||
this.$refs['form_obj'].clearValidate() |
|||
}) |
|||
req.fetchBySid(sid).then((res) => { |
|||
if (res.success) { |
|||
this.formobj = res.data |
|||
if (this.formobj.files.length > 0) { |
|||
const aa = [] |
|||
this.formobj.files.forEach((e) => { |
|||
aa.push(e.url) |
|||
}) |
|||
this.formobj.files = aa |
|||
} |
|||
} |
|||
}) |
|||
}, |
|||
dataChange(value, row, list) { |
|||
const choose = list.filter((item) => item.name === value) |
|||
if (value === '担保人' && choose[0].sid !== '') { |
|||
this.viewState = 2 |
|||
this.$refs['divCautioner'].showInfo(choose[0].sid) |
|||
} else if (value === '还款协议' && choose[0].files.length > 0 && choose[0].files !== null) { |
|||
this.dialogVisible = true |
|||
this.list = [] |
|||
this.list = choose[0].files |
|||
} else if (value === '月还明细' && choose[0].sid !== '') { |
|||
this.viewState = 4 |
|||
this.$refs['divMonthlyReturn'].showInfo({ saleVehSid: choose[0].sid }) |
|||
} else if (value === '金融方案' && choose[0].sid !== '') { |
|||
req.selectDetailss({ businessSid: choose[0].sid }).then((res) => { |
|||
if (res.success) { |
|||
this.viewState = 5 |
|||
this.$refs['divFinancial'].showInfo(res.data, '03') |
|||
} |
|||
}) |
|||
} else if (value === '家访考察报告' && choose[0].sid !== '') { |
|||
this.viewState = 6 |
|||
this.$refs['divReport'].showInfo({ kcbgSid: choose[0].sid }) |
|||
} else if (value === '家访考察资料' && choose[0].sid !== '') { |
|||
this.viewState = 7 |
|||
this.$refs['divMterial'].showInfo({ kczlSid: choose[0].sid }) |
|||
} else {} |
|||
}, |
|||
resetState() { |
|||
this.viewState = 1 |
|||
}, |
|||
/** 确认撤回任务 */ |
|||
openRevoke() { |
|||
this.$confirm('是否确认执行撤回操作', '提示', { |
|||
confirmButtonText: '确定', |
|||
cancelButtonText: '取消', |
|||
type: 'warning' |
|||
}).then(() => { |
|||
this.handleRevoke() |
|||
}).catch(() => { |
|||
this.$message({ |
|||
type: 'info', |
|||
message: '已取消撤回' |
|||
}) |
|||
}) |
|||
}, |
|||
/** 撤回任务 */ |
|||
handleRevoke() { |
|||
req.revokeProcess(this.linkByParameter).then((response) => { |
|||
if (response.success) { |
|||
this.$notify({ |
|||
title: '提示', |
|||
message: '执行成功', |
|||
type: 'success', |
|||
duration: 2000 |
|||
}) |
|||
this.nodeDialogVisible = false |
|||
// 子页面向父级页面传递值 |
|||
window.parent.postMessage({ |
|||
cmd: 'returnHeight', |
|||
params: { |
|||
// 操作成功,告诉父级页面关闭弹框 |
|||
code: 1 |
|||
} |
|||
}, '*') |
|||
} |
|||
}) |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
.addinputInfo { |
|||
margin-left: 60px !important; |
|||
} |
|||
</style> |
@ -0,0 +1,37 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply.flowable; |
|||
|
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/6 14:57 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class LoanVehClearanceApplyCompleteDto implements Dto { |
|||
private static final long serialVersionUID = 6378752532534735663L; |
|||
|
|||
@ApiModelProperty(value = "用户sid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id(PC)") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "流程id(移动)") |
|||
private String procInsId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
|
|||
private String orgPath; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply.flowable; |
|||
|
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/28 9:28 |
|||
*/ |
|||
@Data |
|||
public class LoanVehClearanceApplyDelegateQuery { |
|||
@ApiModelProperty |
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
// @JsonProperty("procInsId")
|
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
|
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/6 15:04 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class LoanVehClearanceApplyNodeQuery implements Query { |
|||
private static final long serialVersionUID = 9117613683840483366L; |
|||
|
|||
@ApiModelProperty(value = "环节定义id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "0 上一环节 1下一环节") |
|||
private Integer next; |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply.flowable; |
|||
|
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/6 15:03 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class LoanVehClearanceApplyNodeVo implements Vo { |
|||
private static final long serialVersionUID = -833419512294877848L; |
|||
|
|||
@ApiModelProperty(value = "节点名称") |
|||
private String name; |
|||
@ApiModelProperty(value = "节点id") |
|||
private String id; |
|||
@ApiModelProperty(value = "审批组") |
|||
private List<String> candidateGroups; |
|||
@ApiModelProperty(value = "是否是最后环节") |
|||
private String endTask; |
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
/** |
|||
* @Author dimengzhe |
|||
* @Date 2022/9/6 15:06 |
|||
* @Description |
|||
*/ |
|||
@Data |
|||
public class LoanVehClearanceApplyTaskQuery implements Query { |
|||
private static final long serialVersionUID = 1288615499873178778L; |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("任务Id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
/** |
|||
* 终止、驳回 |
|||
*/ |
|||
@ApiModelProperty("任务意见") |
|||
private String comment; |
|||
/** |
|||
* 终止、撤回、驳回 |
|||
*/ |
|||
@ApiModelProperty("用户Sid") |
|||
private String userSid; |
|||
/** |
|||
* 终止 |
|||
*/ |
|||
@ApiModelProperty("流程实例Id(PC)") |
|||
private String instanceId; |
|||
|
|||
@ApiModelProperty("流程实例Id(移动)") |
|||
private String procInsId; |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.riskcenter.api.loanvehclearanceapply.flowable; |
|||
|
|||
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyDto; |
|||
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDto; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author liuguohui |
|||
* @version 1.0 |
|||
* @description |
|||
* @date 2022/04/13 |
|||
*/ |
|||
@ApiModel("提交") |
|||
@Data |
|||
public class SubmitLoanVehClearanceApplyDto extends LoanVehClearanceApplyDto { |
|||
|
|||
@ApiModelProperty("意见") |
|||
private String comment; |
|||
@ApiModelProperty("流程实例id") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
} |
@ -0,0 +1,72 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance; |
|||
|
|||
|
|||
import com.yxt.anrui.terminal.api.risk.becollection.AppBeCollectionVehDetailsVo; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(催收措施申请) <br/> |
|||
* File: LoanBeCollectionApplyVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionapply.LoanBeCollectionApplyVo <br/> |
|||
* Description: 逾期催收申请 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-12 16:06:20 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "逾期催收申请 视图数据详情", description = "逾期催收申请 视图数据详情") |
|||
public class AppVehClearanceApplyDetailsVo implements Vo { |
|||
|
|||
private String sid; // sid
|
|||
|
|||
@ApiModelProperty("申请部门-申请人") |
|||
private String publishInfo; |
|||
@ApiModelProperty("申请日期") |
|||
private String time; |
|||
@ApiModelProperty("备注") |
|||
private String remarks; |
|||
@ApiModelProperty("附件") |
|||
private List<String> files = new ArrayList<>(); |
|||
@ApiModelProperty("任务id") |
|||
private String taskId; |
|||
@ApiModelProperty("流程实例的sid") |
|||
private String procInsId; |
|||
|
|||
@ApiModelProperty("逾期车辆列表") |
|||
private List<AppVehClearanceVehDetailsVo> records; |
|||
} |
@ -0,0 +1,99 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance; |
|||
|
|||
|
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate.AppLoanHomeVisitVo; |
|||
import com.yxt.common.core.vo.Vo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* Project: anrui-riskcenter(催收措施申请) <br/> |
|||
* File: LoanBeCollectionVehVo.java <br/> |
|||
* Class: com.yxt.anrui.riskcenter.api.loanbecollectionveh.LoanBeCollectionVehVo <br/> |
|||
* Description: 逾期催收车辆 视图数据对象. <br/> |
|||
* Copyright: Copyright (c) 2011 <br/> |
|||
* Company: https://gitee.com/liuzp315 <br/>
|
|||
* Makedate: 2023-12-12 16:06:20 <br/> |
|||
* |
|||
* @author liupopo |
|||
* @version 1.0 |
|||
* @since 1.0 |
|||
*/ |
|||
@Data |
|||
@ApiModel(value = "逾期催收车辆 视图数据详情", description = "逾期催收车辆 视图数据详情") |
|||
public class AppVehClearanceVehDetailsVo implements Vo { |
|||
|
|||
@ApiModelProperty("是否有担保人") |
|||
private Boolean showDbr = false; |
|||
@ApiModelProperty("销售订单车辆sid") |
|||
private String saleVehSid; |
|||
@ApiModelProperty("贷款合同编号") |
|||
private String contractId; |
|||
@ApiModelProperty("车架号") |
|||
private String vin; |
|||
@ApiModelProperty("车牌号") |
|||
private String carNum; |
|||
@ApiModelProperty("资方") |
|||
private String zf; |
|||
@ApiModelProperty("资方合同号") |
|||
private String zfNo; |
|||
@ApiModelProperty("客户名称") |
|||
private String cusName; |
|||
@ApiModelProperty("联系电话") |
|||
private String cusPhone; |
|||
@ApiModelProperty("贷款人") |
|||
private String loanName; |
|||
@ApiModelProperty("首次逾期日期") |
|||
@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
|||
private Date firstBeDate; |
|||
@ApiModelProperty("逾期期数") |
|||
private String instalments; |
|||
@ApiModelProperty("逾期金额") |
|||
private String beOverdueMoney; |
|||
@ApiModelProperty("逾期金额换算期数") |
|||
private String beOverdueMoneyAndPeriod; |
|||
@ApiModelProperty("远程控制费用") |
|||
private String lockCarMoney; |
|||
@ApiModelProperty("实收") |
|||
private String lockCarRealMoney; |
|||
@ApiModelProperty("还款协议附件") |
|||
private List<String> appHkxy = new ArrayList<>(); |
|||
|
|||
@ApiModelProperty("月还明细sid") |
|||
private String yhmxSid; |
|||
@ApiModelProperty("家访考察sid") |
|||
private String jfkcSid; |
|||
@ApiModelProperty("金融方案详情页面") |
|||
private AppLoanHomeVisitVo jrfa; |
|||
} |
@ -0,0 +1,68 @@ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.becollection.*; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.AppBeCollectionDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.BeCollectionQuery; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.BeCollectionTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.CompleteBeCollectionDto; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.AppVehClearanceDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.CompleteVehClearanceDto; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.VehClearanceQuery; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.VehClearanceTaskQuery; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.cloud.openfeign.FeignClient; |
|||
import org.springframework.cloud.openfeign.SpringQueryMap; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
/** |
|||
* @Author |
|||
* @Date |
|||
* @Description |
|||
*/ |
|||
@Api(tags = "逾期垫款催收") |
|||
@FeignClient( |
|||
contextId = "terminal-VehClearance", |
|||
name = "anrui-terminal", |
|||
path = "riskcenter/v1/vehClearance", |
|||
fallback = VehClearanceFeignFallback.class) |
|||
public interface VehClearanceFeign { |
|||
|
|||
@ApiOperation("办理") |
|||
@PutMapping("/agreeCreditInfo") |
|||
@ResponseBody |
|||
ResultBean agreeCreditInfo(@RequestBody CompleteVehClearanceDto dto); |
|||
|
|||
@ApiOperation("驳回") |
|||
@PutMapping("/rejectCreditInfo") |
|||
@ResponseBody |
|||
ResultBean rejectCreditInfo(@RequestBody VehClearanceTaskQuery query); |
|||
|
|||
@ApiOperation("撤回") |
|||
@PutMapping("/recallCreditInfo") |
|||
@ResponseBody |
|||
ResultBean recallCreditInfo(@RequestBody VehClearanceTaskQuery query); |
|||
|
|||
@ApiOperation("终止") |
|||
@PutMapping("/stopCreditInfo") |
|||
@ResponseBody |
|||
ResultBean stopCreditInfo(@RequestBody VehClearanceTaskQuery query); |
|||
|
|||
@ApiOperation("获取流程操作标题") |
|||
@GetMapping("/getFlowOperateTitle") |
|||
@ResponseBody |
|||
ResultBean<String> getFlowOperateTitle(@SpringQueryMap VehClearanceQuery query); |
|||
|
|||
@ApiOperation(value = "加签") |
|||
@PutMapping(value = "/delegate") |
|||
@ResponseBody |
|||
public ResultBean delegate(@RequestBody AppVehClearanceDelegateQuery delegateQuery); |
|||
|
|||
@ApiOperation("远程解控详情") |
|||
@GetMapping("/details/{sid}") |
|||
@ResponseBody |
|||
public ResultBean<AppVehClearanceApplyDetailsVo> collectionDetail(@PathVariable("sid") String sid); |
|||
} |
@ -0,0 +1,12 @@ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance; |
|||
|
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: dimengzhe |
|||
* @date: 2023/8/8 |
|||
**/ |
|||
@Component |
|||
public class VehClearanceFeignFallback { |
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author Administrator |
|||
* @description |
|||
* @date 2023/9/28 10:16 |
|||
*/ |
|||
@Data |
|||
public class AppVehClearanceDelegateQuery { |
|||
@ApiModelProperty |
|||
private String userSid; |
|||
@ApiModelProperty("流程实例id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty("任务Id") |
|||
private String taskId; |
|||
@ApiModelProperty("审批人sid") |
|||
private String assignee; |
|||
@ApiModelProperty("填写意见") |
|||
private String views; |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.dto.Dto; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
@Data |
|||
public class CompleteVehClearanceDto implements Dto { |
|||
private static final long serialVersionUID = 7978653524636034916L; |
|||
|
|||
@ApiModelProperty(value = "任务id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
@ApiModelProperty(value = "流程id") |
|||
@NotBlank(message = "参数错误:procInsId") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
@ApiModelProperty(value = "意见") |
|||
private String comment; |
|||
@ApiModelProperty(value = "业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "用户sid") |
|||
@NotBlank(message = "参数错误:userSid") |
|||
private String userSid; |
|||
@ApiModelProperty(value = "节点id") |
|||
@NotBlank(message = "参数错误:taskDefKey") |
|||
private String taskDefKey; |
|||
|
|||
private String orgPath; |
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance.flowable; |
|||
|
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class VehClearanceQuery implements Query { |
|||
private static final long serialVersionUID = -3563282658560745370L; |
|||
|
|||
@ApiModelProperty(value = "节点key") |
|||
private String taskDefKey; |
|||
@ApiModelProperty(value = "业务sid") |
|||
private String businessSid; |
|||
@ApiModelProperty(value = "0 上一环节 1下一环节") |
|||
private Integer next; |
|||
} |
@ -0,0 +1,42 @@ |
|||
package com.yxt.anrui.terminal.api.risk.vehclearance.flowable; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonProperty; |
|||
import com.yxt.common.core.query.Query; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
|
|||
@Data |
|||
public class VehClearanceTaskQuery implements Query { |
|||
private static final long serialVersionUID = -6952737531036706114L; |
|||
|
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("任务Id") |
|||
@NotBlank(message = "参数错误:taskId") |
|||
private String taskId; |
|||
/** |
|||
* 终止、驳回、撤回 |
|||
*/ |
|||
@ApiModelProperty("业务sid") |
|||
@NotBlank(message = "参数错误:businessSid") |
|||
private String businessSid; |
|||
/** |
|||
* 终止、驳回 |
|||
*/ |
|||
@ApiModelProperty("任务意见") |
|||
private String comment; |
|||
/** |
|||
* 终止、撤回、驳回 |
|||
*/ |
|||
@ApiModelProperty("用户Sid") |
|||
private String userSid; |
|||
/** |
|||
* 终止 |
|||
*/ |
|||
@ApiModelProperty("流程实例Id") |
|||
@JsonProperty("procInsId") |
|||
private String instanceId; |
|||
} |
@ -0,0 +1,87 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.vehclearance; |
|||
|
|||
import com.yxt.anrui.terminal.api.risk.becollection.*; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.AppBeCollectionDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.BeCollectionQuery; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.BeCollectionTaskQuery; |
|||
import com.yxt.anrui.terminal.api.risk.becollection.flowable.CompleteBeCollectionDto; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.AppVehClearanceApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.VehClearanceFeign; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.AppVehClearanceDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.CompleteVehClearanceDto; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.VehClearanceQuery; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.VehClearanceTaskQuery; |
|||
import com.yxt.common.core.query.PagerQuery; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import com.yxt.common.core.vo.PagerVo; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
@RestController("车辆远程解控") |
|||
@RequestMapping("riskcenter/v1/vehClearance") |
|||
public class VehClearanceRest implements VehClearanceFeign { |
|||
|
|||
@Autowired |
|||
private VehClearanceService beCollectionService; |
|||
|
|||
@Override |
|||
public ResultBean agreeCreditInfo(CompleteVehClearanceDto dto) { |
|||
return beCollectionService.agreeCreditInfo(dto); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean rejectCreditInfo(VehClearanceTaskQuery query) { |
|||
return beCollectionService.rejectCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean recallCreditInfo(VehClearanceTaskQuery query) { |
|||
return beCollectionService.recallCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean stopCreditInfo(VehClearanceTaskQuery query) { |
|||
return beCollectionService.stopCreditInfo(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<String> getFlowOperateTitle(VehClearanceQuery query) { |
|||
return beCollectionService.getFlowOperateTitle(query); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean delegate(AppVehClearanceDelegateQuery delegateQuery) { |
|||
return beCollectionService.delegate(delegateQuery); |
|||
} |
|||
|
|||
@Override |
|||
public ResultBean<AppVehClearanceApplyDetailsVo> collectionDetail(String sid) { |
|||
return beCollectionService.collectionDetail(sid); |
|||
} |
|||
} |
@ -0,0 +1,212 @@ |
|||
/********************************************************* |
|||
********************************************************* |
|||
******************** ******************* |
|||
************* ************ |
|||
******* _oo0oo_ ******* |
|||
*** o8888888o *** |
|||
* 88" . "88 * |
|||
* (| -_- |) * |
|||
* 0\ = /0 * |
|||
* ___/`---'\___ * |
|||
* .' \\| |// '. *
|
|||
* / \\||| : |||// \ *
|
|||
* / _||||| -:- |||||- \ * |
|||
* | | \\\ - /// | | *
|
|||
* | \_| ''\---/'' |_/ | * |
|||
* \ .-\__ '-' ___/-. / * |
|||
* ___'. .' /--.--\ `. .'___ * |
|||
* ."" '< `.___\_<|>_/___.' >' "". * |
|||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | * |
|||
* \ \ `_. \_ __\ /__ _/ .-` / / * |
|||
* =====`-.____`.___ \_____/___.-`___.-'===== * |
|||
* `=---=' * |
|||
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * |
|||
*********__佛祖保佑__永无BUG__验收通过__钞票多多__********* |
|||
*********************************************************/ |
|||
package com.yxt.anrui.terminal.biz.risk.vehclearance; |
|||
|
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import com.yxt.anrui.riskcenter.api.loanbecollectionapply.flowable.*; |
|||
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutions; |
|||
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutionsFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceApplyFeign; |
|||
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.LoanVehClearanceFileVo; |
|||
import com.yxt.anrui.riskcenter.api.loanvehclearanceapply.flowable.*; |
|||
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehDetailsVo; |
|||
import com.yxt.anrui.riskcenter.api.loanvehclearanceveh.LoanVehClearanceVehFile; |
|||
import com.yxt.anrui.terminal.api.base.common.CarModelVo; |
|||
import com.yxt.anrui.terminal.api.risk.loanhomevisitinvestigate.AppLoanHomeVisitVo; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.AppVehClearanceApplyDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.AppVehClearanceVehDetailsVo; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.AppVehClearanceDelegateQuery; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.CompleteVehClearanceDto; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.VehClearanceQuery; |
|||
import com.yxt.anrui.terminal.api.risk.vehclearance.flowable.VehClearanceTaskQuery; |
|||
import com.yxt.anrui.terminal.biz.base.common.CommonService; |
|||
import com.yxt.common.core.result.ResultBean; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Collections; |
|||
import java.util.List; |
|||
|
|||
@Service |
|||
public class VehClearanceService { |
|||
|
|||
@Autowired |
|||
private LoanVehClearanceApplyFeign loanVehClearanceApplyFeign; |
|||
@Autowired |
|||
private LoanSolutionsFeign loanSolutionsFeign; |
|||
@Autowired |
|||
private CommonService commonService; |
|||
|
|||
public ResultBean agreeCreditInfo(CompleteVehClearanceDto dto) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanVehClearanceApplyCompleteDto loanVehClearanceApplyCompleteDto = new LoanVehClearanceApplyCompleteDto(); |
|||
BeanUtil.copyProperties(dto, loanVehClearanceApplyCompleteDto); |
|||
loanVehClearanceApplyFeign.complete(loanVehClearanceApplyCompleteDto); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean rejectCreditInfo(VehClearanceTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanVehClearanceApplyTaskQuery taskQuery = new LoanVehClearanceApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanVehClearanceApplyFeign.reject(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean recallCreditInfo(VehClearanceTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanVehClearanceApplyTaskQuery taskQuery = new LoanVehClearanceApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanVehClearanceApplyFeign.revokeProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean stopCreditInfo(VehClearanceTaskQuery query) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanVehClearanceApplyTaskQuery taskQuery = new LoanVehClearanceApplyTaskQuery(); |
|||
BeanUtil.copyProperties(query, taskQuery); |
|||
ResultBean resultBean = loanVehClearanceApplyFeign.breakProcess(taskQuery); |
|||
if (!resultBean.getSuccess()) { |
|||
return rb.setMsg(resultBean.getMsg()); |
|||
} |
|||
return rb.success().setData(resultBean.getData()); |
|||
} |
|||
|
|||
public ResultBean<String> getFlowOperateTitle(VehClearanceQuery query) { |
|||
ResultBean<String> rb = ResultBean.fireFail(); |
|||
//0 上一环节 1下一环节
|
|||
int next = query.getNext(); |
|||
LoanVehClearanceApplyNodeQuery getNodeQuery = new LoanVehClearanceApplyNodeQuery(); |
|||
BeanUtil.copyProperties(query, getNodeQuery); |
|||
String data = ""; |
|||
if (next == 0) { |
|||
ResultBean<List<LoanVehClearanceApplyNodeVo>> previousNodesForReject = loanVehClearanceApplyFeign.getPreviousNodesForReject(getNodeQuery); |
|||
if (previousNodesForReject.getSuccess()) { |
|||
previousNodesForReject.getData().removeAll(Collections.singleton(null)); |
|||
data = previousNodesForReject.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(previousNodesForReject.getMsg()); |
|||
} |
|||
} else if (next == 1) { |
|||
ResultBean<List<LoanVehClearanceApplyNodeVo>> nextNodesForSubmit = loanVehClearanceApplyFeign.getNextNodesForSubmit(getNodeQuery); |
|||
if (nextNodesForSubmit.getSuccess()) { |
|||
nextNodesForSubmit.getData().removeAll(Collections.singleton(null)); |
|||
data = nextNodesForSubmit.getData().get(0).getName(); |
|||
} else { |
|||
return rb.setMsg(nextNodesForSubmit.getMsg()); |
|||
} |
|||
} else { |
|||
return rb.setMsg("参数错误:next"); |
|||
} |
|||
return rb.success().setData(data); |
|||
} |
|||
|
|||
public ResultBean delegate(AppVehClearanceDelegateQuery delegateQuery) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanVehClearanceApplyDelegateQuery delegateQuery1 = new |
|||
LoanVehClearanceApplyDelegateQuery(); |
|||
BeanUtil.copyProperties(delegateQuery, delegateQuery1); |
|||
loanVehClearanceApplyFeign.delegate(delegateQuery1); |
|||
return rb.success(); |
|||
} |
|||
|
|||
public ResultBean<AppVehClearanceApplyDetailsVo> collectionDetail(String sid) { |
|||
ResultBean rb = ResultBean.fireFail(); |
|||
LoanVehClearanceApplyDetailsVo loanVehClearanceApplyDetailsVo = loanVehClearanceApplyFeign.fetchDetailsBySid(sid).getData(); |
|||
AppVehClearanceApplyDetailsVo appVehClearanceApplyDetailsVo = new AppVehClearanceApplyDetailsVo(); |
|||
appVehClearanceApplyDetailsVo.setPublishInfo(loanVehClearanceApplyDetailsVo.getDeptName() + "-" + loanVehClearanceApplyDetailsVo.getCreateByName()); |
|||
appVehClearanceApplyDetailsVo.setTime(loanVehClearanceApplyDetailsVo.getCreateTime()); |
|||
appVehClearanceApplyDetailsVo.setRemarks(loanVehClearanceApplyDetailsVo.getRemarks()); |
|||
List<LoanVehClearanceFileVo> files = loanVehClearanceApplyDetailsVo.getFiles(); |
|||
List<String> appFiles = new ArrayList<>(); |
|||
if (files != null && files.size() > 0){ |
|||
for (LoanVehClearanceFileVo file : files) { |
|||
appFiles.add(file.getUrl()); |
|||
} |
|||
} |
|||
appVehClearanceApplyDetailsVo.setFiles(appFiles); |
|||
appVehClearanceApplyDetailsVo.setTaskId(loanVehClearanceApplyDetailsVo.getTaskId()); |
|||
appVehClearanceApplyDetailsVo.setProcInsId(loanVehClearanceApplyDetailsVo.getProcInstSid()); |
|||
List<LoanVehClearanceVehDetailsVo> loanVehClearanceVehList = loanVehClearanceApplyDetailsVo.getLoanVehClearanceVehList(); |
|||
List<AppVehClearanceVehDetailsVo> appVehClearanceVehDetailsVos = new ArrayList<>(); |
|||
for (LoanVehClearanceVehDetailsVo loanVehClearanceVehDetailsVo : loanVehClearanceVehList) { |
|||
AppVehClearanceVehDetailsVo appVehClearanceVehDetailsVo = new AppVehClearanceVehDetailsVo(); |
|||
appVehClearanceVehDetailsVo.setShowDbr(true); |
|||
appVehClearanceVehDetailsVo.setSaleVehSid(loanVehClearanceVehDetailsVo.getSaleVehSid()); |
|||
appVehClearanceVehDetailsVo.setContractId(loanVehClearanceVehDetailsVo.getLoanContractNo()); |
|||
appVehClearanceVehDetailsVo.setVin(loanVehClearanceVehDetailsVo.getVinNo()); |
|||
appVehClearanceVehDetailsVo.setCarNum(loanVehClearanceVehDetailsVo.getCarNum()); |
|||
appVehClearanceVehDetailsVo.setZf(loanVehClearanceVehDetailsVo.getBankName()); |
|||
appVehClearanceVehDetailsVo.setZfNo(loanVehClearanceVehDetailsVo.getLoanContractNo()); |
|||
appVehClearanceVehDetailsVo.setCusName(loanVehClearanceVehDetailsVo.getCustomerName()); |
|||
appVehClearanceVehDetailsVo.setLoanName(loanVehClearanceVehDetailsVo.getBorrowerName()); |
|||
appVehClearanceVehDetailsVo.setFirstBeDate(loanVehClearanceVehDetailsVo.getFirstBeDate()); |
|||
appVehClearanceVehDetailsVo.setInstalments(loanVehClearanceVehDetailsVo.getBeOverduePeriod()); |
|||
appVehClearanceVehDetailsVo.setBeOverdueMoney(loanVehClearanceVehDetailsVo.getBeOverdueMoney()); |
|||
appVehClearanceVehDetailsVo.setBeOverdueMoneyAndPeriod(loanVehClearanceVehDetailsVo.getBeOverdueMoneyAndPeriod()); |
|||
appVehClearanceVehDetailsVo.setLockCarMoney(loanVehClearanceVehDetailsVo.getLockCarMoney()); |
|||
appVehClearanceVehDetailsVo.setLockCarRealMoney(loanVehClearanceVehDetailsVo.getLockCarRealityMoney()); |
|||
List<LoanVehClearanceVehFile> sids = loanVehClearanceVehDetailsVo.getSids(); |
|||
List<String> appHkxy = new ArrayList<>(); |
|||
for (LoanVehClearanceVehFile loanVehClearanceVehFile : sids) { |
|||
if ("还款协议".equals(loanVehClearanceVehFile.getName())){ |
|||
List<String> pcFiles = loanVehClearanceVehFile.getFiles(); |
|||
if (pcFiles != null && pcFiles.size() > 0){ |
|||
for (String file : pcFiles) { |
|||
appHkxy.add(file); |
|||
} |
|||
} |
|||
} |
|||
if ("月还明细".equals(loanVehClearanceVehFile.getName())){ |
|||
appVehClearanceVehDetailsVo.setYhmxSid(loanVehClearanceVehFile.getSid()); |
|||
} |
|||
if ("金融方案".equals(loanVehClearanceVehFile.getName())){ |
|||
LoanSolutions loanSolutions = loanSolutionsFeign.fetchBySid(loanVehClearanceVehFile.getSid()).getData(); |
|||
CarModelVo finPage1 = commonService.getLoanSolution(loanSolutions.getSalesOrderSid()).getData(); |
|||
AppLoanHomeVisitVo finPage2 = new AppLoanHomeVisitVo(); |
|||
BeanUtil.copyProperties(finPage1, finPage2); |
|||
appVehClearanceVehDetailsVo.setJrfa(finPage2); |
|||
} |
|||
if ("家访考察报告".equals(loanVehClearanceVehFile.getName())){ |
|||
appVehClearanceVehDetailsVo.setJfkcSid(loanVehClearanceVehFile.getSid()); |
|||
} |
|||
} |
|||
appVehClearanceVehDetailsVo.setAppHkxy(appHkxy); |
|||
appVehClearanceVehDetailsVos.add(appVehClearanceVehDetailsVo); |
|||
} |
|||
appVehClearanceApplyDetailsVo.setRecords(appVehClearanceVehDetailsVos); |
|||
return rb.success().setData(appVehClearanceApplyDetailsVo); |
|||
} |
|||
} |
Loading…
Reference in new issue