You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
537 lines
20 KiB
537 lines
20 KiB
<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.collMeasures }}</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.loanBeCollectionVehDetails" :index="index" border style="width: 100%">
|
|
<el-table-column fixed width="80" label="序号" type="index" :index="index + 1" align="center"/>
|
|
<el-table-column prop="loanContractNo" label="贷款合同编号" align="center" width="160" />
|
|
<el-table-column prop="vinNo" label="车架号" align="center" width="120"/>
|
|
<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="160"/>
|
|
<el-table-column prop="custName" label="客户名称" align="center" width="100" />
|
|
<!-- <el-table-column prop="custPhone" label="联系电话" align="center" width="100"/>-->
|
|
<el-table-column prop="borrowerName" label="贷款人" align="center" min-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 v-if="yckzVisible" prop="lockCarMoney" label="远程控制费用" align="center" width="120"/>
|
|
<el-table-column prop="lockCarState" label="远程控制状态" align="center" width="120"/>
|
|
<el-table-column v-if="dbrVisible" label="担保人" align="center" width="140">
|
|
<template slot-scope="scope">
|
|
<span class="bluezi" @click="cautionerLook(scope.row)">查看</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column v-if="hkxyVisible" label="还款协议" align="center" width="140">
|
|
<template slot-scope="scope">
|
|
<el-button type="primary" size="mini" style="padding-left: 5px" v-show="scope.row.hkxyFiles.length > 0" @click="handleLook(scope.row.hkxyFiles)">查看</el-button>
|
|
</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-row v-if="formobj.lockCarRemarks !== '' && yckzVisible">
|
|
<el-col :span="24">
|
|
<span style="color: red;font-weight: bold">{{ formobj.lockCarRemarks }}</span>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<!-- 查看车辆历史催收记录 -->
|
|
<vehiclecollectionrecords v-show="viewState == 2" ref="divCollection" @doback="resetState" />
|
|
<!-- 查看车辆历史催收记录 -->
|
|
<billingInfo v-show="viewState == 3" ref="divBilling" @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"/>
|
|
<!-- 查看担保人信息 -->
|
|
<cautionerInfo v-show="viewState == 8" ref="divCautioner" @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/collectionmeasures/collectionmeasures'
|
|
import vehiclecollectionrecords from './relation/vehiclecollectionrecords'
|
|
import billingInfo from './relation/billingInfo'
|
|
import monthlyreturnInfo from './relation/monthlyreturnInfo'
|
|
import financialschemeInfo from '../publicPage/financialschemeInfo'
|
|
import homevisitreport from './relation/homevisitreport'
|
|
import materialInfo from './relation/materialInfo'
|
|
import cautionerInfo from './relation/cautionerInfo'
|
|
import { selectStaffListss } from '@/api/Common/dictcommons'
|
|
|
|
export default {
|
|
name: 'CollectionMeasuresDaiBan',
|
|
components: {
|
|
vehiclecollectionrecords,
|
|
billingInfo,
|
|
monthlyreturnInfo,
|
|
financialschemeInfo,
|
|
homevisitreport,
|
|
materialInfo,
|
|
cautionerInfo
|
|
},
|
|
data() {
|
|
return {
|
|
viewTitle: '',
|
|
viewState: 1,
|
|
dialogVisible: false,
|
|
hkxyVisible: false,
|
|
dbrVisible: false,
|
|
yckzVisible: false,
|
|
list: [],
|
|
tableKey: 0,
|
|
index: 0,
|
|
formobj: {
|
|
billNo: '',
|
|
collMeasures: [],
|
|
createByName: '',
|
|
createBySid: '',
|
|
createTime: '',
|
|
deptName: '',
|
|
deptSid: '',
|
|
files: [],
|
|
loanBeCollectionVehDetails: [],
|
|
lockCarRemarks: '',
|
|
nodeSid: '',
|
|
nodeState: '',
|
|
orgPath: '',
|
|
procDefId: '',
|
|
procInstSid: '',
|
|
sid: '',
|
|
taskId: '',
|
|
useOrgName: '',
|
|
useOrgSid: '',
|
|
remarks: ''
|
|
},
|
|
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: 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.collMeasures = this.formobj.collMeasures.join(',')
|
|
if (this.formobj.collMeasures.indexOf('签订还款协议') !== -1) {
|
|
this.hkxyVisible = true
|
|
}
|
|
if (this.formobj.collMeasures.indexOf('增加担保人') !== -1) {
|
|
this.dbrVisible = true
|
|
}
|
|
if (this.formobj.collMeasures.indexOf('远程控制') !== -1) {
|
|
this.yckzVisible = true
|
|
}
|
|
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
|
|
}
|
|
})
|
|
},
|
|
cautionerLook(row) {
|
|
this.viewState = 8
|
|
this.$refs['divCautioner'].showInfo(row.saleVehSid)
|
|
},
|
|
handleLook(row) {
|
|
this.dialogVisible = true
|
|
if (row.length > 0) {
|
|
const aa = []
|
|
row.forEach((e) => {
|
|
aa.push(e.url)
|
|
})
|
|
this.list = aa
|
|
}
|
|
},
|
|
dataChange(value, row, list) {
|
|
const choose = list.filter((item) => item.name === value)
|
|
if (value === '催收记录' && choose[0].sid !== '') {
|
|
this.viewState = 2
|
|
this.$refs['divCollection'].showInfo({ saleVehSid: choose[0].sid })
|
|
} else if (value === '开票信息' && choose[0].sid !== '') {
|
|
this.viewState = 3
|
|
this.$refs['divBilling'].showInfo({ kpglSid: choose[0].sid })
|
|
} 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>
|
|
|