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.
553 lines
21 KiB
553 lines
21 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="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" 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.applyDeptName }}</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="12">
|
|
<div class="span-sty">车型</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.modelName }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="12">
|
|
<div class="span-sty">客户类型</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.custTypeValue }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row v-if="formobj.loanPreloanCreditApplyDetailsVo.custTypeKey != '1'">
|
|
<el-col :span="24">
|
|
<div class="span-sty">企业</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.qyName }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title">
|
|
<span v-if="formobj.loanPreloanCreditApplyDetailsVo.custTypeKey != '1'">法人信息</span>
|
|
<span v-else>贷款人信息</span>
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="8">
|
|
<div class="span-sty">身份证号码</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.idCard }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">姓名</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.custName }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="8">
|
|
<div class="span-sty">手机号码</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.phone }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>身份证正反面</span></div>
|
|
<el-form-item>
|
|
<el-form-item>
|
|
<el-image class="addinputInfo" v-for="(item, index) in formobj.loanPreloanCreditApplyDetailsVo.idCardImages" :key="index" :src="item" :preview-src-list="formobj.loanPreloanCreditApplyDetailsVo.idCardImages"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title">
|
|
<div>风控要求的其他人员</div>
|
|
</div>
|
|
<el-table :key="tableKey" :data="formobj.loanPreloanCreditApplyDetailsVo.loanPreloanCreditPeos" :index="index" border style="width: 100%">
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
|
|
<el-table-column label="人员身份" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.peoTypeValue }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="身份证号码" align="center" width="220">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.idCard }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="姓名" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.peoName }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="手机号码" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.phone }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="身份证正反面照片" align="center" width="140">
|
|
<template slot-scope="scope">
|
|
<el-button type="primary" size="mini" style="padding-left: 5px" v-show="scope.row.idCardImages.length > 0" @click="handleLook(scope.row.idCardImages)">查看</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="备注" align="center" min-width="200">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.remarks }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<div class="title">
|
|
公司风控
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>要求附件</span></div>
|
|
<el-form-item>
|
|
<el-image class="addinputInfo" v-for="(item, index) in formobj.loanPreloanCreditApplyDetailsVo.comFkFiles" :key="index" :src="item" :preview-src-list="formobj.loanPreloanCreditApplyDetailsVo.comFkFiles"/>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>查询结果截图</span></div>
|
|
<el-form-item>
|
|
<el-image class="addinputInfo" v-for="(item, index) in formobj.loanPreloanCreditApplyDetailsVo.gsQueryResults" :key="index" :src="item" :preview-src-list="formobj.loanPreloanCreditApplyDetailsVo.gsQueryResults"/>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>审核结果</span></div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.gsfkjg }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>审核日期</span></div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.gsshDate }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>备注</span></div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.gsshRemarks }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title">
|
|
资方风控
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">资方名称</div>
|
|
<el-form-item>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.capitalName }}</span></el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>查询结果截图</span></div>
|
|
<el-form-item>
|
|
<el-image class="addinputInfo" v-for="(item, index) in formobj.loanPreloanCreditApplyDetailsVo.zfQueryResults" :key="index" :src="item" :preview-src-list="formobj.loanPreloanCreditApplyDetailsVo.zfQueryResults"/>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>审核结果</span></div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.zffkjg }}</span></el-form-item>
|
|
</el-col>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>审核日期</span></div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.zfshDate }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty" style="display: flex;flex-direction: row;justify-content: flex-end;align-items: center"><span>备注</span></div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.loanPreloanCreditApplyDetailsVo.zfshRemarks }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title titleOne">
|
|
<div>申诉</div>
|
|
<el-button type="primary" size="mini" @click="handleSales">销售订单查看</el-button>
|
|
</div>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<div class="span-sty">申诉原因</div>
|
|
<el-form-item><span class="addinputInfo">{{ formobj.appealReason }}</span></el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
<div class="title titleOne">
|
|
<div>担保人</div>
|
|
</div>
|
|
<el-table :key="ensureKey" :data="formobj.loanCreditAppealPeos" :index="index" border style="width: 100%">
|
|
<el-table-column fixed width="60" label="序号" type="index" :index="index + 1" align="center"/>
|
|
<el-table-column label="姓名" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.name }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="身份证号码" align="center" width="220">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.idCard }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="手机号码" align="center" width="180">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.phone }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="备注" align="center" min-width="200">
|
|
<template slot-scope="scope">
|
|
<span>{{ scope.row.remarks }}</span>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<div class="title">资方证明</div>
|
|
<el-row>
|
|
<el-col :span="24">
|
|
<el-form-item>
|
|
<el-image v-for="(item, index) in formobj.ssImages" :key="index" :src="item" :preview-src-list="formobj.ssImages"/>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-row>
|
|
</el-form>
|
|
</div>
|
|
</div>
|
|
<salesOrder v-show="viewState == 2" ref="divSales" @doback="resetState"/>
|
|
<!-- 身份证 -->
|
|
<el-dialog :visible.sync="dialogVisible">
|
|
<el-image 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="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/creditauditappeal/creditauditappeal'
|
|
import salesOrder from '@/components/publicPage/salesOrder'
|
|
|
|
export default {
|
|
name: 'CreditAuditAppealDaiBan',
|
|
components: {
|
|
salesOrder
|
|
},
|
|
data() {
|
|
return {
|
|
viewTitle: '',
|
|
viewState: 1,
|
|
dialogVisible: false,
|
|
list: [],
|
|
image_list1: [],
|
|
submitdisabled: false,
|
|
tableKey: 0,
|
|
ensureKey: 1,
|
|
index: 0,
|
|
formobj: {
|
|
appealReason: '',
|
|
applyDeptName: '',
|
|
applyDeptSid: '',
|
|
billNo: '',
|
|
createByName: '',
|
|
createBySid: '',
|
|
creditApplySid: '',
|
|
loanCreditAppealPeos: [],
|
|
loanPreloanCreditApplyDetailsVo: {
|
|
applyDeptName: '',
|
|
applyDeptSid: '',
|
|
capitalBalance: '',
|
|
capitalName: '',
|
|
capitalSid: '',
|
|
comFkFiles: [],
|
|
createByName: '',
|
|
createBySid: '',
|
|
custName: '',
|
|
custSid: '',
|
|
custTypeKey: '',
|
|
custTypeValue: '',
|
|
gsQueryResults: [],
|
|
gsfkjg: '',
|
|
gsfkjgKey: '',
|
|
gsshDate: '',
|
|
gsshRemarks: '',
|
|
idCard: '',
|
|
idCardImages: [],
|
|
loanPreloanCreditPeos: [],
|
|
modelName: '',
|
|
modelSid: '',
|
|
orgSidPath: '',
|
|
phone: '',
|
|
qyName: '',
|
|
qySid: '',
|
|
sid: '',
|
|
ssjg: '',
|
|
type: '',
|
|
useOrgName: '',
|
|
useOrgSid: '',
|
|
zfQueryResults: [],
|
|
zffkjg: '',
|
|
zffkjgKey: '',
|
|
zfshDate: '',
|
|
zfshRemarks: ''
|
|
},
|
|
orgSidPath: '',
|
|
sid: '',
|
|
procDefId: '',
|
|
procInstSid: '',
|
|
saleOrderSid: '',
|
|
ssImages: [],
|
|
useOrgName: '',
|
|
useOrgSid: ''
|
|
},
|
|
rules: {},
|
|
operation: '', // 点击操作按钮
|
|
dialogList: {
|
|
comment: ''
|
|
},
|
|
startTask: true,
|
|
current: {
|
|
taskDefKey: '',
|
|
taskName: '' // 当前环节名称
|
|
},
|
|
nextNode: {}, // 下一环节
|
|
nodeDialogVisible: false,
|
|
currentLink: true,
|
|
// 环节所需参数
|
|
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.orgSidPath = window.sessionStorage.getItem('orgSidPath')
|
|
this.linkByParameter.userSid = window.sessionStorage.getItem('userSid')
|
|
this.current.taskDefKey = obj.taskDefKey
|
|
this.current.taskName = obj.taskName
|
|
// 加载表单数据
|
|
this.showInfo(obj.businessSid)
|
|
},
|
|
mounted() {
|
|
window.parent.postMessage({
|
|
cmd: 'returnHeight',
|
|
params: {
|
|
// 告诉父级页面,子页面的弹框高度。
|
|
code: 2,
|
|
data: 400 + 'px'
|
|
}
|
|
}, '*')
|
|
},
|
|
methods: {
|
|
showInfo(sid) {
|
|
this.viewTitle = '贷前信用审核申诉详情'
|
|
req.fetchBySid(sid).then((res) => {
|
|
if (res.success) {
|
|
this.formobj = res.data
|
|
}
|
|
})
|
|
},
|
|
handleLook(row) {
|
|
this.dialogVisible = true
|
|
this.list = row
|
|
},
|
|
handleSales() {
|
|
if (this.formobj.saleOrderSid !== '' && this.formobj.saleOrderSid !== null) {
|
|
this.viewState = 2
|
|
this.$refs['divSales'].showInfo(this.formobj.saleOrderSid)
|
|
} else {
|
|
this.$message({ showClose: true, type: 'error', message: '无销售订单' })
|
|
}
|
|
},
|
|
resetState() {
|
|
this.viewState = 1
|
|
},
|
|
// 同意
|
|
openAgree(val) {
|
|
this.operation = val
|
|
this.currentLink = 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
|
|
})
|
|
},
|
|
// 驳回
|
|
openReject(val) {
|
|
this.operation = val
|
|
this.currentLink = true
|
|
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.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()
|
|
}
|
|
}
|
|
},
|
|
/** 同意任务 */
|
|
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>
|
|
.span-sty {
|
|
width: 130px !important;
|
|
}
|
|
.addinputInfo {
|
|
margin-left: 120px !important;
|
|
}
|
|
.titleOne {
|
|
padding: 7px;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
.rowClass{
|
|
border-top: 1px solid #E0E3EB;
|
|
}
|
|
</style>
|
|
|