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.
 
 
 
 
 
 

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