|
|
@ -1,10 +1,7 @@ |
|
|
|
<!-- 代收电费 --> |
|
|
|
<!-- 代收电费 --> |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="wrap"> |
|
|
|
<div class="flex j-between a-center"> |
|
|
|
<MyTitle :titleArr="['个人贷款', '新增贷款申请']" /> |
|
|
|
<MyTitle :titleArr="['个人贷款', '新增贷款申请']" /> |
|
|
|
|
|
|
|
<el-button size="small" @click="$router.back()">返回</el-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
<el-form v-if="curStep === 1 || isDetail" ref="basicForm" :model="basicForm" label-width="120px" |
|
|
|
<el-form v-if="curStep === 1 || isDetail" ref="basicForm" :model="basicForm" label-width="120px" |
|
|
|
:rules="basicRules" :disabled="isDetail"> |
|
|
|
:rules="basicRules" :disabled="isDetail"> |
|
|
@ -65,9 +62,7 @@ |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
<el-form-item label="薪酬"> |
|
|
|
<el-form-item label="薪酬"> |
|
|
|
<el-input v-model="basicForm.salary"> |
|
|
|
<el-input v-model="basicForm.salary" /> |
|
|
|
<template slot="append">万/年</template> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="工龄"> |
|
|
|
<el-form-item label="工龄"> |
|
|
|
<el-input v-model="basicForm.totalWorkYears" /> |
|
|
|
<el-input v-model="basicForm.totalWorkYears" /> |
|
|
@ -121,11 +116,11 @@ |
|
|
|
<el-input value="个人住房贷款" disabled /> |
|
|
|
<el-input value="个人住房贷款" disabled /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="合同金额" prop="contractAmount"> |
|
|
|
<el-form-item label="合同金额" prop="contractAmount"> |
|
|
|
<el-input v-model="form.contractAmount" @change="interestCalc" /> |
|
|
|
<el-input v-model="form.contractAmount" /> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="起息日期" prop="interestStartDate"> |
|
|
|
<el-form-item label="起息日期" prop="interestStartDate"> |
|
|
|
<el-date-picker v-model="form.interestStartDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" |
|
|
|
<el-date-picker v-model="form.interestStartDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" |
|
|
|
value-format="yyyy-MM-dd" :clearable="false" @change="maturityDateCalc"></el-date-picker> |
|
|
|
value-format="yyyy-MM-dd" @change="maturityDateCalc"></el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="计息方式"> |
|
|
|
<el-form-item label="计息方式"> |
|
|
|
<el-input value="按年浮动计息" disabled /> |
|
|
|
<el-input value="按年浮动计息" disabled /> |
|
|
@ -190,35 +185,19 @@ |
|
|
|
}}</el-button> |
|
|
|
}}</el-button> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="loanVisible" z-index="6000" width="500px" append-to-body :show-close="false" |
|
|
|
<el-dialog title="放款" :visible.sync="loanVisible" width="300px" z-index="6000" :append-to-body="true"> |
|
|
|
custom-class="dia"> |
|
|
|
<el-date-picker v-model="disbursementDate" type="date" placeholder="请选择放款日期" format="yyyy-MM-dd" |
|
|
|
<div class="data-dia23"> |
|
|
|
value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
|
|
|
<div slot="title" class="dia-header"> |
|
|
|
|
|
|
|
<div class="data-title">放款</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="padding: 30px 0;"> |
|
|
|
|
|
|
|
<el-date-picker v-model="disbursementDate" type="date" placeholder="请选择放款日期" format="yyyy-MM-dd" |
|
|
|
|
|
|
|
value-format="yyyy-MM-dd" style="width: 100%;"></el-date-picker> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="loanVisible = false">取消</el-button> |
|
|
|
<el-button @click="loanVisible = false">取消</el-button> |
|
|
|
<el-button type="primary" @click="loanSubmit">确定</el-button> |
|
|
|
<el-button type="primary" @click="loanSubmit">确定</el-button> |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="extensionVisible" width="500px" z-index="6000" append-to-body :show-close="false" |
|
|
|
<el-dialog title="请选择展期期限" :visible.sync="extensionVisible" width="300px" z-index="6000" :append-to-body="true"> |
|
|
|
custom-class="dia"> |
|
|
|
<el-select v-model="extensionPeriod" placeholder="请选择" size="small" style="width: 100%;"> |
|
|
|
<div class="data-dia23"> |
|
|
|
<el-option v-for="(item, i) in extensions" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
<div slot="title" class="dia-header"> |
|
|
|
</el-select> |
|
|
|
<div class="data-title">请选择展期期限</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div style="padding: 30px 0;"> |
|
|
|
|
|
|
|
<el-select v-model="extensionPeriod" placeholder="请选择" size="small" style="width: 100%;"> |
|
|
|
|
|
|
|
<el-option v-for="(item, i) in extensions" :key="i" :label="item.name" :value="item.id"></el-option> |
|
|
|
|
|
|
|
</el-select> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<span slot="footer" class="dialog-footer"> |
|
|
|
<el-button @click="extensionVisible = false">取消</el-button> |
|
|
|
<el-button @click="extensionVisible = false">取消</el-button> |
|
|
@ -230,7 +209,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { phoneListen, myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; |
|
|
|
import { phoneListen, myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, inputListen, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'; |
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
import { addOperation, personalBasicSave, loanContractSave, personalBasicFind, grantALoan, operationExtension, calculateTheReturnInterestSum } from '@/api/http' |
|
|
|
import { addOperation, personalBasicSave, loanContractSave, personalBasicFind, grantALoan, operationExtension } from '@/api/http' |
|
|
|
import Util from '@/libs/util' |
|
|
|
import Util from '@/libs/util' |
|
|
|
|
|
|
|
|
|
|
|
const moduleName = 'personalLoans/detail' |
|
|
|
const moduleName = 'personalLoans/detail' |
|
|
@ -383,6 +362,7 @@ export default { |
|
|
|
], |
|
|
|
], |
|
|
|
}, |
|
|
|
}, |
|
|
|
submited: 0, |
|
|
|
submited: 0, |
|
|
|
|
|
|
|
curRoute: '', |
|
|
|
curStep: 1, |
|
|
|
curStep: 1, |
|
|
|
disbursementDate: '', |
|
|
|
disbursementDate: '', |
|
|
|
loanVisible: false, |
|
|
|
loanVisible: false, |
|
|
@ -392,58 +372,53 @@ export default { |
|
|
|
extensions: [ |
|
|
|
extensions: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 1, |
|
|
|
id: 1, |
|
|
|
name: '1个月', |
|
|
|
name: '1个月' |
|
|
|
pointId: 278, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 2, |
|
|
|
id: 2, |
|
|
|
name: '2个月', |
|
|
|
name: '2个月' |
|
|
|
pointId: 279, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 3, |
|
|
|
id: 3, |
|
|
|
name: '3个月', |
|
|
|
name: '3个月' |
|
|
|
pointId: 280, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 4, |
|
|
|
id: 4, |
|
|
|
name: '4个月', |
|
|
|
name: '4个月' |
|
|
|
pointId: 281, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 5, |
|
|
|
id: 5, |
|
|
|
name: '5个月', |
|
|
|
name: '5个月' |
|
|
|
pointId: 282, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 6, |
|
|
|
id: 6, |
|
|
|
name: '6个月', |
|
|
|
name: '6个月' |
|
|
|
pointId: 283, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 7, |
|
|
|
id: 7, |
|
|
|
name: '7个月', |
|
|
|
name: '7个月' |
|
|
|
pointId: 284, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 8, |
|
|
|
id: 8, |
|
|
|
name: '8个月', |
|
|
|
name: '8个月' |
|
|
|
pointId: 285, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 9, |
|
|
|
id: 9, |
|
|
|
name: '9个月', |
|
|
|
name: '9个月' |
|
|
|
pointId: 286, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
{ |
|
|
|
id: 10, |
|
|
|
id: 10, |
|
|
|
name: '10个月', |
|
|
|
name: '10个月' |
|
|
|
pointId: 287, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
beforeDestroy () { |
|
|
|
|
|
|
|
sessionStorage.setItem('computerPath', this.curRoute) |
|
|
|
|
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
mounted () { |
|
|
|
|
|
|
|
this.curRoute = this.$route.path |
|
|
|
|
|
|
|
|
|
|
|
this.getDetail() |
|
|
|
this.getDetail() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
@ -460,19 +435,8 @@ export default { |
|
|
|
if (this.id) { |
|
|
|
if (this.id) { |
|
|
|
// 查看及展期 |
|
|
|
// 查看及展期 |
|
|
|
const { data } = await personalBasicFind(this.id) |
|
|
|
const { data } = await personalBasicFind(this.id) |
|
|
|
const form = data.data |
|
|
|
this.basicForm = data.data |
|
|
|
if (form.idType) form.idType = +form.idType |
|
|
|
if (data.data.bankPersonalLoanContractInfo) this.form = data.data.bankPersonalLoanContractInfo |
|
|
|
if (form.gender) form.gender = +form.gender |
|
|
|
|
|
|
|
this.idNumberJudge = true |
|
|
|
|
|
|
|
this.basicForm = form |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 贷款合同 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const contract = data.data.bankPersonalLoanContractInfo |
|
|
|
|
|
|
|
if (contract) { |
|
|
|
|
|
|
|
if (contract.loanTerm) contract.loanTerm = +contract.loanTerm |
|
|
|
|
|
|
|
this.form = contract |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) { |
|
|
|
} else if (sessionStorage.getItem('nomUsefulPhrasesOpenCard2')) { |
|
|
|
// 新增 |
|
|
|
// 新增 |
|
|
|
sessionStorage.removeItem('nomUsefulPhrasesOpenCard2') |
|
|
|
sessionStorage.removeItem('nomUsefulPhrasesOpenCard2') |
|
|
@ -502,7 +466,7 @@ export default { |
|
|
|
popUp1 (text) { |
|
|
|
popUp1 (text) { |
|
|
|
this.setTipsOperate('请刷身份证'); |
|
|
|
this.setTipsOperate('请刷身份证'); |
|
|
|
this.setPopId('1399') |
|
|
|
this.setPopId('1399') |
|
|
|
sessionStorage.setItem('creditPath', this.$route.fullPath) |
|
|
|
sessionStorage.setItem('computerPath', this.$route.fullPath) |
|
|
|
this.$router.push('/counter/list/') |
|
|
|
this.$router.push('/counter/list/') |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 到期日期计算 |
|
|
|
// 到期日期计算 |
|
|
@ -513,15 +477,6 @@ export default { |
|
|
|
date.setMonth(date.getMonth() + loanTerm) |
|
|
|
date.setMonth(date.getMonth() + loanTerm) |
|
|
|
this.form.maturityDate = Util.formatDate('yyyy-MM-dd', date) |
|
|
|
this.form.maturityDate = Util.formatDate('yyyy-MM-dd', date) |
|
|
|
} |
|
|
|
} |
|
|
|
this.interestCalc() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 计算利息总额 |
|
|
|
|
|
|
|
async interestCalc () { |
|
|
|
|
|
|
|
const { form } = this |
|
|
|
|
|
|
|
if (form.contractAmount && form.maturityDate) { |
|
|
|
|
|
|
|
const { data } = await calculateTheReturnInterestSum(form) |
|
|
|
|
|
|
|
form.interestTotal = data.interestTotal || '' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
// 下一步 |
|
|
|
// 下一步 |
|
|
|
async next () { |
|
|
|
async next () { |
|
|
@ -541,47 +496,44 @@ export default { |
|
|
|
...basicForm, |
|
|
|
...basicForm, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if (data.status === 200) { |
|
|
|
// 判分 |
|
|
|
// 判分 |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
const rule = [ |
|
|
|
const rule = [ |
|
|
|
{ answerId: 847, emptyOne: 125, emptyTwo: basicForm.phoneNumber, operationIds: preId + ',847', type: 3 }, |
|
|
|
{ answerId: 902, emptyOne: '', emptyTwo: '', operationIds: preId + ',902', type: '' }, |
|
|
|
{ answerId: 859, emptyOne: 125, emptyTwo: basicForm.applicationDate, operationIds: preId + ',859', type: 3 }, |
|
|
|
{ answerId: 847, emptyOne: 125, emptyTwo: basicForm.phoneNumber, operationIds: preId + ',847', type: 3 }, |
|
|
|
] |
|
|
|
{ answerId: 859, emptyOne: 125, emptyTwo: basicForm.applicationDate, operationIds: preId + ',859', type: 3 }, |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
basicForm.position && rule.push({ answerId: 848, emptyOne: 125, emptyTwo: basicForm.position, operationIds: preId + ',848', type: 3 }) |
|
|
|
basicForm.position && rule.push({ answerId: 848, emptyOne: 125, emptyTwo: basicForm.position, operationIds: preId + ',848', type: 3 }) |
|
|
|
basicForm.salary && rule.push({ answerId: 849, emptyOne: 125, emptyTwo: basicForm.salary, operationIds: preId + ',849', type: 3 }) |
|
|
|
basicForm.salary && rule.push({ answerId: 849, emptyOne: 125, emptyTwo: basicForm.salary, operationIds: preId + ',849', type: 3 }) |
|
|
|
basicForm.currentWorkYears && rule.push({ answerId: 850, emptyOne: 125, emptyTwo: basicForm.currentWorkYears, operationIds: preId + ',850', type: 3 }) |
|
|
|
basicForm.currentWorkYears && rule.push({ answerId: 850, emptyOne: 125, emptyTwo: basicForm.currentWorkYears, operationIds: preId + ',850', type: 3 }) |
|
|
|
basicForm.totalWorkYears && rule.push({ answerId: 851, emptyOne: 125, emptyTwo: basicForm.totalWorkYears, operationIds: preId + ',851', type: 3 }) |
|
|
|
basicForm.totalWorkYears && rule.push({ answerId: 851, emptyOne: 125, emptyTwo: basicForm.totalWorkYears, operationIds: preId + ',851', type: 3 }) |
|
|
|
basicForm.propertyOwner && rule.push({ answerId: 852, emptyOne: 125, emptyTwo: basicForm.propertyOwner, operationIds: preId + ',852', type: 3 }) |
|
|
|
basicForm.propertyOwner && rule.push({ answerId: 852, emptyOne: 125, emptyTwo: basicForm.propertyOwner, operationIds: preId + ',852', type: 3 }) |
|
|
|
basicForm.propertyCertificateNo && rule.push({ answerId: 853, emptyOne: 125, emptyTwo: basicForm.propertyCertificateNo, operationIds: preId + ',853', type: 3 }) |
|
|
|
basicForm.propertyCertificateNo && rule.push({ answerId: 853, emptyOne: 125, emptyTwo: basicForm.propertyCertificateNo, operationIds: preId + ',853', type: 3 }) |
|
|
|
basicForm.coOwnership && rule.push({ answerId: 854, emptyOne: 125, emptyTwo: basicForm.coOwnership, operationIds: preId + ',854', type: 3 }) |
|
|
|
basicForm.coOwnership && rule.push({ answerId: 854, emptyOne: 125, emptyTwo: basicForm.coOwnership, operationIds: preId + ',854', type: 3 }) |
|
|
|
basicForm.location && rule.push({ answerId: 855, emptyOne: 125, emptyTwo: basicForm.location, operationIds: preId + ',855', type: 3 }) |
|
|
|
basicForm.location && rule.push({ answerId: 855, emptyOne: 125, emptyTwo: basicForm.location, operationIds: preId + ',855', type: 3 }) |
|
|
|
basicForm.propertyRightNature && rule.push({ answerId: 856, emptyOne: 125, emptyTwo: basicForm.propertyRightNature, operationIds: preId + ',856', type: 3 }) |
|
|
|
basicForm.propertyRightNature && rule.push({ answerId: 856, emptyOne: 125, emptyTwo: basicForm.propertyRightNature, operationIds: preId + ',856', type: 3 }) |
|
|
|
basicForm.area && rule.push({ answerId: 857, emptyOne: 125, emptyTwo: basicForm.area, operationIds: preId + ',857', type: 3 }) |
|
|
|
basicForm.area && rule.push({ answerId: 857, emptyOne: 125, emptyTwo: basicForm.area, operationIds: preId + ',857', type: 3 }) |
|
|
|
basicForm.usagePeriod && rule.push({ answerId: 858, emptyOne: 125, emptyTwo: basicForm.usagePeriod, operationIds: preId + ',858', type: 3 }) |
|
|
|
basicForm.usagePeriod && rule.push({ answerId: 858, emptyOne: 125, emptyTwo: basicForm.usagePeriod, operationIds: preId + ',858', type: 3 }) |
|
|
|
await addOperation({ |
|
|
|
await addOperation({ |
|
|
|
parentId: preId, |
|
|
|
parentId: preId, |
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.setCreditIds({ |
|
|
|
this.setCreditIds({ |
|
|
|
personalLoanId: data.personalLoanId, |
|
|
|
personalLoanId: data.personalLoanId, |
|
|
|
applicationDate: data.applicationDate || this.form.applicationDate, |
|
|
|
applicationDate: data.applicationDate || this.form.applicationDate, |
|
|
|
contractNo: data.contractNo || this.form.contractNo, |
|
|
|
contractNo: data.contractNo || this.form.contractNo, |
|
|
|
}) |
|
|
|
}) |
|
|
|
if (data.contractNo) this.form.contractNo = data.contractNo |
|
|
|
if (data.contractNo) this.form.contractNo = data.contractNo |
|
|
|
this.curStep++ |
|
|
|
this.curStep++ |
|
|
|
} |
|
|
|
|
|
|
|
} catch { (e) => { } } |
|
|
|
} catch { (e) => { } } |
|
|
|
}, this.$refs)) |
|
|
|
}, this.$refs)) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// 合同信息校验 |
|
|
|
// 合同信息校验 |
|
|
|
if (!this.form.contractAmount) return this.$message.warning('请输入合同金额!') |
|
|
|
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
|
|
|
// this.visible = true |
|
|
|
this.saveContract() |
|
|
|
this.saveContract() |
|
|
|
}, this.$refs)) |
|
|
|
}, this.$refs)) |
|
|
|
} |
|
|
|
} |
|
|
@ -597,27 +549,23 @@ export default { |
|
|
|
...form, |
|
|
|
...form, |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
if (data.status === 200) { |
|
|
|
// 判分 |
|
|
|
// 判分 |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
const rule = [ |
|
|
|
const rule = [ |
|
|
|
{ answerId: 860, emptyOne: 125, emptyTwo: form.contractAmount, operationIds: preId + ',860', type: 3 }, |
|
|
|
{ answerId: 860, emptyOne: 125, emptyTwo: form.contractAmount, operationIds: preId + ',860', type: 3 }, |
|
|
|
{ answerId: 861, emptyOne: 141, emptyTwo: this.loanTerms.find(e => e.id === form.loanTerm).pointId, operationIds: preId + ',861', type: 1 }, |
|
|
|
{ answerId: 861, emptyOne: 141, emptyTwo: this.loanTerms.find(e => e.id === form.loanTerm).pointId, operationIds: preId + ',861', type: 1 }, |
|
|
|
{ answerId: 862, emptyOne: 125, emptyTwo: form.interestStartDate, operationIds: preId + ',862', type: 3 }, |
|
|
|
{ answerId: 862, emptyOne: 125, emptyTwo: form.interestStartDate, operationIds: preId + ',862', type: 3 }, |
|
|
|
{ answerId: 863, emptyOne: 125, emptyTwo: form.repaymentMethod, operationIds: preId + ',863', type: 3 }, |
|
|
|
{ answerId: 863, emptyOne: 125, emptyTwo: form.repaymentMethod, operationIds: preId + ',863', type: 1 }, |
|
|
|
{ answerId: 864, emptyOne: 125, emptyTwo: form.repaymentAccount, operationIds: preId + ',864', type: 3 }, |
|
|
|
{ answerId: 864, emptyOne: 125, emptyTwo: form.repaymentAccount, operationIds: preId + ',864', type: 3 }, |
|
|
|
] |
|
|
|
] |
|
|
|
await addOperation({ |
|
|
|
await addOperation({ |
|
|
|
parentId: preId, |
|
|
|
parentId: preId, |
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$router.push('/counter/list/manage/personalLoans') |
|
|
|
data.status === 200 ? this.$router.push('/counter/list/manage/personalLoans') : this.$message.error(data.message) |
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error(data.message) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} catch { (e) => { } } |
|
|
|
} catch { (e) => { } } |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 展示放款弹框 |
|
|
|
// 展示放款弹框 |
|
|
@ -633,18 +581,16 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$message[data.status === 200 ? 'success' : 'error'](data.message) |
|
|
|
this.$message[data.status === 200 ? 'success' : 'error'](data.message) |
|
|
|
|
|
|
|
|
|
|
|
if (data.status === 200) { |
|
|
|
// 判分 |
|
|
|
// 判分 |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
await addOperation({ |
|
|
|
await addOperation({ |
|
|
|
parentId: preId, |
|
|
|
parentId: preId, |
|
|
|
lcJudgmentRuleReq: [{ answerId: 865, emptyOne: '', emptyTwo: '', operationIds: preId + ',865', type: '' }], |
|
|
|
lcJudgmentRuleReq: [{ answerId: 865, emptyOne: 151, emptyTwo: this.disbursementDate, operationIds: preId + ',865', type: 3 }], |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 展示展期弹框 |
|
|
|
// 展示展期弹框 |
|
|
@ -660,18 +606,16 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.$message[data.status === 200 ? 'success' : 'error'](data.message) |
|
|
|
this.$message[data.status === 200 ? 'success' : 'error'](data.message) |
|
|
|
|
|
|
|
|
|
|
|
if (data.status === 200) { |
|
|
|
// 判分 |
|
|
|
// 判分 |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
await addOperation({ |
|
|
|
await addOperation({ |
|
|
|
parentId: preId, |
|
|
|
parentId: preId, |
|
|
|
lcJudgmentRuleReq: [{ answerId: 866, emptyOne: '', emptyTwo: '', operationIds: preId + ',866', type: '' }], |
|
|
|
lcJudgmentRuleReq: [{ answerId: 866, emptyOne: 152, emptyTwo: this.extensions.find(e => e.id === this.extensionPeriod).pointId, operationIds: preId + ',866', type: 1 }], |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
phoneListen, |
|
|
|
phoneListen, |
|
|
@ -693,8 +637,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style lang='scss' scoped> |
|
|
|
<style lang='scss' scoped> |
|
|
|
@import '@/styles/dialog.scss'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.wrap { |
|
|
|
.wrap { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: calc(90vh - 27px); |
|
|
|
height: calc(90vh - 27px); |
|
|
|