|
|
@ -206,31 +206,12 @@ |
|
|
|
<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" |
|
|
|
|
|
|
|
custom-class="dia"> |
|
|
|
|
|
|
|
<div class="data-dia23"> |
|
|
|
|
|
|
|
<div slot="title" class="dia-header"> |
|
|
|
|
|
|
|
<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"> |
|
|
|
|
|
|
|
<el-button @click="extensionVisible = false">取消</el-button> |
|
|
|
|
|
|
|
<el-button type="primary" @click="extensionSubmit">确定</el-button> |
|
|
|
|
|
|
|
</span> |
|
|
|
|
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<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, calculateTheReturnInterestSum } from '@/api/http' |
|
|
|
import Util from '@/libs/util' |
|
|
|
import Util from '@/libs/util' |
|
|
|
|
|
|
|
|
|
|
|
const moduleName = 'personalLoans/detail' |
|
|
|
const moduleName = 'personalLoans/detail' |
|
|
@ -386,61 +367,6 @@ export default { |
|
|
|
curStep: 1, |
|
|
|
curStep: 1, |
|
|
|
disbursementDate: '', |
|
|
|
disbursementDate: '', |
|
|
|
loanVisible: false, |
|
|
|
loanVisible: false, |
|
|
|
|
|
|
|
|
|
|
|
extensionVisible: false, |
|
|
|
|
|
|
|
extensionPeriod: 1, |
|
|
|
|
|
|
|
extensions: [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 1, |
|
|
|
|
|
|
|
name: '1个月', |
|
|
|
|
|
|
|
pointId: 278, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 2, |
|
|
|
|
|
|
|
name: '2个月', |
|
|
|
|
|
|
|
pointId: 279, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 3, |
|
|
|
|
|
|
|
name: '3个月', |
|
|
|
|
|
|
|
pointId: 280, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 4, |
|
|
|
|
|
|
|
name: '4个月', |
|
|
|
|
|
|
|
pointId: 281, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 5, |
|
|
|
|
|
|
|
name: '5个月', |
|
|
|
|
|
|
|
pointId: 282, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 6, |
|
|
|
|
|
|
|
name: '6个月', |
|
|
|
|
|
|
|
pointId: 283, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 7, |
|
|
|
|
|
|
|
name: '7个月', |
|
|
|
|
|
|
|
pointId: 284, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 8, |
|
|
|
|
|
|
|
name: '8个月', |
|
|
|
|
|
|
|
pointId: 285, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 9, |
|
|
|
|
|
|
|
name: '9个月', |
|
|
|
|
|
|
|
pointId: 286, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
id: 10, |
|
|
|
|
|
|
|
name: '10个月', |
|
|
|
|
|
|
|
pointId: 287, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted () { |
|
|
|
mounted () { |
|
|
@ -652,28 +578,6 @@ export default { |
|
|
|
showExtension () { |
|
|
|
showExtension () { |
|
|
|
this.extensionVisible = true |
|
|
|
this.extensionVisible = true |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 展期 |
|
|
|
|
|
|
|
async extensionSubmit () { |
|
|
|
|
|
|
|
if (!this.extensionPeriod) return this.$message.error('请选择展期期限!') |
|
|
|
|
|
|
|
const { data } = await operationExtension({ |
|
|
|
|
|
|
|
id: this.form.contractId, |
|
|
|
|
|
|
|
extensionPeriod: this.extensionPeriod, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
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' |
|
|
|
|
|
|
|
await addOperation({ |
|
|
|
|
|
|
|
parentId: preId, |
|
|
|
|
|
|
|
lcJudgmentRuleReq: [{ answerId: 866, emptyOne: 152, emptyTwo: this.extensions.find(e => e.id === this.extensionPeriod).pointId, operationIds: preId + ',866', type: 1 }], |
|
|
|
|
|
|
|
projectId: +sessionStorage.getItem('projectId'), |
|
|
|
|
|
|
|
startTime: sessionStorage.getItem('startTime') |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setTimeout(this.$router.push('/counter/list/manage/personalLoans'), 1500) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
phoneListen, |
|
|
|
phoneListen, |
|
|
|
checkName, |
|
|
|
checkName, |
|
|
|