Browse Source

Merge remote-tracking branch 'origin/master'

master
God 1 year ago
parent
commit
84ceed5778
  1. 130
      anrui-riskcenter-ui/src/api/remotedecontrol/remotedecontrol.js
  2. 37
      anrui-riskcenter-ui/src/router/index.js
  3. 2
      anrui-riskcenter-ui/src/views/collectionmeasures/collectionmeasures.vue
  4. 204
      anrui-riskcenter-ui/src/views/remotedecontrol/relation/selectvehicle.vue
  5. 361
      anrui-riskcenter-ui/src/views/remotedecontrol/remotedecontrol.vue
  6. 312
      anrui-riskcenter-ui/src/views/remotedecontrol/remotedecontrolAdd.vue
  7. 218
      anrui-riskcenter-ui/src/views/remotedecontrol/remotedecontrolInfo.vue
  8. 204
      anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/relation/selectvehicle.vue
  9. 478
      anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/remotedecontrolDaiBan.vue
  10. 303
      anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/remotedecontrolEdit.vue
  11. 264
      anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/remotedecontrolYiBan.vue

130
anrui-riskcenter-ui/src/api/remotedecontrol/remotedecontrol.js

@ -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
})
}
}

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

@ -519,6 +519,22 @@ export const constantRoutes = [
}
]
},
{
path: '/remotedecontrol',
component: Layout,
redirect: '/remotedecontrol',
meta: {
title: '车辆远程解控申请'
},
children: [
{
path: '/remotedecontrol/remotedecontrol',
component: () => import('@/views/remotedecontrol/remotedecontrol.vue'),
name: 'RemotedeControl',
meta: { title: '车辆远程解控申请', noCache: true }
}
]
},
// 流程审批
// 金融产品政策报备--编辑
@ -782,6 +798,27 @@ export const constantRoutes = [
component: () =>
import('@/views/workFlow/cuishoucuoshiFlow/collectionmeasuresYiBan.vue'),
name: 'CollectionMeasuresYiBan'
},
// 车辆远程解控申请管理--编辑
{
path: '/yuanchengjiekongFlow/remotedecontrolEdit',
component: () =>
import('@/views/workFlow/yuanchengjiekongFlow/remotedecontrolEdit.vue'),
name: 'RemotedeControlEdit'
},
// 车辆远程解控申请管理--待办
{
path: '/yuanchengjiekongFlow/remotedecontrolDaiBan',
component: () =>
import('@/views/workFlow/yuanchengjiekongFlow/remotedecontrolDaiBan.vue'),
name: 'RemotedeControlDaiBan'
},
// 车辆远程解控申请管理--已办
{
path: '/yuanchengjiekongFlow/remotedecontrolYiBan',
component: () =>
import('@/views/workFlow/yuanchengjiekongFlow/remotedecontrolYiBan.vue'),
name: 'RemotedeControlYiBan'
},
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }

2
anrui-riskcenter-ui/src/views/collectionmeasures/collectionmeasures.vue

@ -79,7 +79,7 @@
</el-table-column>
<el-table-column label="办结日期" align="center" width="100">
<template slot-scope="scope">
<span>{{ scope.row.createTime }}</span>
<span>{{ scope.row.modifyTime }}</span>
</template>
</el-table-column>
<el-table-column label="措施" align="center">

204
anrui-riskcenter-ui/src/views/remotedecontrol/relation/selectvehicle.vue

@ -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>

361
anrui-riskcenter-ui/src/views/remotedecontrol/remotedecontrol.vue

@ -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() {
// vuewindowpostMessagehandleMessage
window.addEventListener('message', this.handleMessage)
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
async handleMessage(event) {
var code = ''
if (event.data.params !== null && event.data.params !== undefined) {
code = event.data.params.code
}
if (code === 1) {
this.centerDialogVisible = false
} else if (code === 2) {
this.dialogHeight = event.data.params.data
this.setIframeHeight(document.getElementById('iframe'))
}
},
closeIt() {
this.url = ''
this.centerDialogVisible = false
},
setIframeHeight(iframe) {
iframe.height = this.dialogHeight
},
flowRecord(row) {
this.centerDialogVisible = true
var params = {
deployId: row.procDefId,
procInsId: row.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>

312
anrui-riskcenter-ui/src/views/remotedecontrol/remotedecontrolAdd.vue

@ -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>

218
anrui-riskcenter-ui/src/views/remotedecontrol/remotedecontrolInfo.vue

@ -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>

204
anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/relation/selectvehicle.vue

@ -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>

478
anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/remotedecontrolDaiBan.vue

@ -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) // urlunescape()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>

303
anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/remotedecontrolEdit.vue

@ -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) // urlunescape()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>

264
anrui-riskcenter-ui/src/views/workFlow/yuanchengjiekongFlow/remotedecontrolYiBan.vue

@ -0,0 +1,264 @@
<template>
<div class="app-container">
<div v-show="viewState == 1">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="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) // urlunescape()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>
Loading…
Cancel
Save