|
|
|
@ -62,7 +62,9 @@ |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<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 label="工龄"> |
|
|
|
|
<el-input v-model="basicForm.totalWorkYears" /> |
|
|
|
@ -120,7 +122,7 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="起息日期" prop="interestStartDate"> |
|
|
|
|
<el-date-picker v-model="form.interestStartDate" type="date" placeholder="选择日期" format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd" @change="maturityDateCalc"></el-date-picker> |
|
|
|
|
value-format="yyyy-MM-dd" :clearable="false" @change="maturityDateCalc"></el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="计息方式"> |
|
|
|
|
<el-input value="按年浮动计息" disabled /> |
|
|
|
@ -435,8 +437,19 @@ export default { |
|
|
|
|
if (this.id) { |
|
|
|
|
// 查看及展期 |
|
|
|
|
const { data } = await personalBasicFind(this.id) |
|
|
|
|
this.basicForm = data.data |
|
|
|
|
if (data.data.bankPersonalLoanContractInfo) this.form = data.data.bankPersonalLoanContractInfo |
|
|
|
|
const form = data.data |
|
|
|
|
if (form.idType) form.idType = +form.idType |
|
|
|
|
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')) { |
|
|
|
|
// 新增 |
|
|
|
|
sessionStorage.removeItem('nomUsefulPhrasesOpenCard2') |
|
|
|
@ -496,44 +509,46 @@ export default { |
|
|
|
|
...basicForm, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
const rule = [ |
|
|
|
|
{ answerId: 847, emptyOne: 125, emptyTwo: basicForm.phoneNumber, operationIds: preId + ',847', type: 3 }, |
|
|
|
|
{ answerId: 859, emptyOne: 125, emptyTwo: basicForm.applicationDate, operationIds: preId + ',859', type: 3 }, |
|
|
|
|
] |
|
|
|
|
if (data.status === 200) { |
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
const rule = [ |
|
|
|
|
{ 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.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.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.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.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.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 }) |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
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.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.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.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.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.usagePeriod && rule.push({ answerId: 858, emptyOne: 125, emptyTwo: basicForm.usagePeriod, operationIds: preId + ',858', type: 3 }) |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.setCreditIds({ |
|
|
|
|
personalLoanId: data.personalLoanId, |
|
|
|
|
applicationDate: data.applicationDate || this.form.applicationDate, |
|
|
|
|
contractNo: data.contractNo || this.form.contractNo, |
|
|
|
|
}) |
|
|
|
|
if (data.contractNo) this.form.contractNo = data.contractNo |
|
|
|
|
this.curStep++ |
|
|
|
|
this.setCreditIds({ |
|
|
|
|
personalLoanId: data.personalLoanId, |
|
|
|
|
applicationDate: data.applicationDate || this.form.applicationDate, |
|
|
|
|
contractNo: data.contractNo || this.form.contractNo, |
|
|
|
|
}) |
|
|
|
|
if (data.contractNo) this.form.contractNo = data.contractNo |
|
|
|
|
this.curStep++ |
|
|
|
|
} |
|
|
|
|
} catch { (e) => { } } |
|
|
|
|
}, this.$refs)) |
|
|
|
|
} else { |
|
|
|
|
// 合同信息校验 |
|
|
|
|
if (!this.form.contractAmount) return this.$message.warning('请输入合同金额!') |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// this.visible = true |
|
|
|
|
this.saveContract() |
|
|
|
|
}, this.$refs)) |
|
|
|
|
} |
|
|
|
@ -549,23 +564,27 @@ export default { |
|
|
|
|
...form, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
const rule = [ |
|
|
|
|
{ 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: 862, emptyOne: 125, emptyTwo: form.interestStartDate, operationIds: preId + ',862', type: 3 }, |
|
|
|
|
{ answerId: 863, emptyOne: 125, emptyTwo: form.repaymentMethod, operationIds: preId + ',863', type: 3 }, |
|
|
|
|
{ answerId: 864, emptyOne: 125, emptyTwo: form.repaymentAccount, operationIds: preId + ',864', type: 3 }, |
|
|
|
|
] |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
if (data.status === 200) { |
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
const rule = [ |
|
|
|
|
{ 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: 862, emptyOne: 125, emptyTwo: form.interestStartDate, operationIds: preId + ',862', type: 3 }, |
|
|
|
|
{ answerId: 863, emptyOne: 125, emptyTwo: form.repaymentMethod, operationIds: preId + ',863', type: 3 }, |
|
|
|
|
{ answerId: 864, emptyOne: 125, emptyTwo: form.repaymentAccount, operationIds: preId + ',864', type: 3 }, |
|
|
|
|
] |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: rule, |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
data.status === 200 ? this.$router.push('/counter/list/manage/personalLoans') : this.$message.error(data.message) |
|
|
|
|
this.$router.push('/counter/list/manage/personalLoans') |
|
|
|
|
} else { |
|
|
|
|
this.$message.error(data.message) |
|
|
|
|
} |
|
|
|
|
} catch { (e) => { } } |
|
|
|
|
}, |
|
|
|
|
// 展示放款弹框 |
|
|
|
@ -581,16 +600,18 @@ export default { |
|
|
|
|
}) |
|
|
|
|
this.$message[data.status === 200 ? 'success' : 'error'](data.message) |
|
|
|
|
|
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: [{ answerId: 865, emptyOne: '', emptyTwo: '', operationIds: preId + ',865', type: '' }], |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
if (data.status === 200) { |
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: [{ answerId: 865, emptyOne: '', emptyTwo: '', operationIds: preId + ',865', type: '' }], |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
// 展示展期弹框 |
|
|
|
@ -606,16 +627,18 @@ export default { |
|
|
|
|
}) |
|
|
|
|
this.$message[data.status === 200 ? 'success' : 'error'](data.message) |
|
|
|
|
|
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: [{ answerId: 866, emptyOne: '', emptyTwo: '', operationIds: preId + ',866', type: '' }], |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
if (data.status === 200) { |
|
|
|
|
// 判分 |
|
|
|
|
const preId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',766,767' |
|
|
|
|
await addOperation({ |
|
|
|
|
parentId: preId, |
|
|
|
|
lcJudgmentRuleReq: [{ answerId: 866, emptyOne: '', emptyTwo: '', operationIds: preId + ',866', type: '' }], |
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
phoneListen, |
|
|
|
|