|
|
@ -291,11 +291,15 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="本次还款(元)" prop="currentRepayment" > |
|
|
|
<el-form-item label="本次还款(元)" prop="currentRepayment" > |
|
|
|
<el-input v-model="repaymentForm.currentRepayment" placeholder="请输入本次还款的本金金额" type="text" maxlength="10" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input> |
|
|
|
<el-input v-model="repaymentForm.currentRepayment" placeholder="请输入本次还款的本金金额" type="text" maxlength="10" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(repaymentForm.currentRepayment)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="其他费用(元)"> |
|
|
|
<el-form-item label="其他费用(元)"> |
|
|
|
<el-input v-model="repaymentForm.otherExpenses" placeholder="请输入其他费用" type="text" maxlength="8" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input> |
|
|
|
<el-input v-model="repaymentForm.otherExpenses" placeholder="请输入其他费用" type="text" maxlength="8" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(repaymentForm.otherExpenses)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
@ -314,34 +318,46 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="本次还款总额(元)"> |
|
|
|
<el-form-item label="本次还款总额(元)"> |
|
|
|
<el-input v-model="totalRepayment" disabled placeholder="还款总额" maxlength="8" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input> |
|
|
|
<el-input v-model="totalRepayment" disabled placeholder="还款总额" maxlength="8" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(totalRepayment)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="利息(元)" prop="interest"> |
|
|
|
<el-form-item label="利息(元)" prop="interest"> |
|
|
|
<el-input v-model="repaymentForm.interest" placeholder="请输入利息" type="text" maxlength="8" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"></el-input> |
|
|
|
<el-input v-model="repaymentForm.interest" placeholder="请输入利息" type="text" maxlength="8" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(repaymentForm.interest)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="减免金额(元)"> |
|
|
|
<el-form-item label="减免金额(元)"> |
|
|
|
<el-input v-model="repaymentForm.deductionAmount" maxlength="10" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" placeholder="请输入减免金额"></el-input> |
|
|
|
<el-input v-model="repaymentForm.deductionAmount" maxlength="10" oninput="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" placeholder="请输入减免金额"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(repaymentForm.deductionAmount)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item label="清偿方式" required> |
|
|
|
<el-form-item label="清偿方式" required> |
|
|
|
<div class="df"> |
|
|
|
<div class="df"> |
|
|
|
<span style="margin-right:20px">(1)现金</span> |
|
|
|
<span style="margin-right:20px">(1)现金</span> |
|
|
|
<el-input style="width:20%;min-width:250px" oninput="value=value.replace(/[^\d.]/g,'')" v-model="repaymentForm.repaymentCash" placeholder="请输入金额"></el-input> |
|
|
|
<el-input style="width:20%;min-width:250px" oninput="value=value.replace(/[^\d.]/g,'')" v-model="repaymentForm.repaymentCash" placeholder="请输入金额"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(repaymentForm.repaymentCash)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
<span style="margin-left:15px">元</span> |
|
|
|
<span style="margin-left:15px">元</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="df" style="margin-top:23px"> |
|
|
|
<div class="df" style="margin-top:23px"> |
|
|
|
<span style="margin-right:20px">(2)资产</span> |
|
|
|
<span style="margin-right:20px">(2)资产</span> |
|
|
|
<el-input style="width:40%;min-width:250px;" v-model="repaymentForm.repaymentAssetsName" placeholder="请输入资产名称"></el-input> |
|
|
|
<el-input style="width:40%;min-width:250px;" v-model="repaymentForm.repaymentAssetsName" placeholder="请输入资产名称"></el-input> |
|
|
|
<el-input style="width:20%;min-width:250px;margin-left:20px" :disabled="!repaymentForm.repaymentAssetsName" oninput="value=value.replace(/[^\d.]/g,'')" v-model="repaymentForm.repaymentAssetsAmount" placeholder="请输入金额"></el-input> |
|
|
|
<el-input style="width:20%;min-width:250px;margin-left:20px" :disabled="!repaymentForm.repaymentAssetsName" oninput="value=value.replace(/[^\d.]/g,'')" v-model="repaymentForm.repaymentAssetsAmount" placeholder="请输入金额"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(repaymentForm.repaymentAssetsAmount)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
<span style="margin-left:15px">元</span> |
|
|
|
<span style="margin-left:15px">元</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="df" style="margin-top:23px"> |
|
|
|
<div class="df" style="margin-top:23px"> |
|
|
|
<span style="margin-right:20px">(3)其他</span> |
|
|
|
<span style="margin-right:20px">(3)其他</span> |
|
|
|
<el-input style="width:40%;min-width:250px;" v-model="repaymentForm.repaymentOtherName" placeholder="请输入其他方式"></el-input> |
|
|
|
<el-input style="width:40%;min-width:250px;" v-model="repaymentForm.repaymentOtherName" placeholder="请输入其他方式"></el-input> |
|
|
|
<el-input style="width:20%;min-width:250px;margin-left:20px" :disabled="!repaymentForm.repaymentOtherName" oninput="value=value.replace(/[^\d.]/g,'')" v-model="repaymentForm.repaymentOtherAmount" placeholder="请输入金额"></el-input> |
|
|
|
<el-input style="width:20%;min-width:250px;margin-left:20px" :disabled="!repaymentForm.repaymentOtherName" oninput="value=value.replace(/[^\d.]/g,'')" v-model="repaymentForm.repaymentOtherAmount" placeholder="请输入金额"> |
|
|
|
|
|
|
|
<i slot="suffix" style="margin-right:10px" class="el-input__icon">{{ChinaCost(repaymentForm.repaymentOtherAmount)}}</i> |
|
|
|
|
|
|
|
</el-input> |
|
|
|
<span style="margin-left:15px">元</span> |
|
|
|
<span style="margin-left:15px">元</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
@ -763,17 +779,17 @@ export default { |
|
|
|
computedCompensatoryBalance(){// 代偿余额计算 |
|
|
|
computedCompensatoryBalance(){// 代偿余额计算 |
|
|
|
/* 转为后端计算 */ |
|
|
|
/* 转为后端计算 */ |
|
|
|
// if(this.status){} // 如果是处于录入状态才减去count |
|
|
|
// if(this.status){} // 如果是处于录入状态才减去count |
|
|
|
// console.log(this.repaymentForm,'this.repaymentForm') |
|
|
|
console.log(this.repaymentForm,'this.repaymentForm') |
|
|
|
// if(!this.repaymentForm.currentRepayment)this.repaymentForm.currentRepayment = 0 |
|
|
|
// if(!this.repaymentForm.currentRepayment)this.repaymentForm.currentRepayment = 0 |
|
|
|
// if(!this.repaymentForm.otherExpenses)this.repaymentForm.otherExpenses = 0 |
|
|
|
// if(!this.repaymentForm.otherExpenses)this.repaymentForm.otherExpenses = 0 |
|
|
|
// if(!this.repaymentForm.interest)this.repaymentForm.interest = 0 |
|
|
|
// if(!this.repaymentForm.interest)this.repaymentForm.interest = 0 |
|
|
|
// console.log(this.repaymentForm,'this.repaymentForm') |
|
|
|
console.log(this.repaymentForm,'this.repaymentForm') |
|
|
|
// let a = this.repaymentForm.currentRepayment , b = this.repaymentForm.otherExpenses , c = this.repaymentForm.interest |
|
|
|
// let a = this.repaymentForm.currentRepayment , b = this.repaymentForm.otherExpenses , c = this.repaymentForm.interest |
|
|
|
|
|
|
|
|
|
|
|
// let count = math.format(math.chain(math.bignumber(a)).add(math.bignumber(b)).add(math.bignumber(c)).done()) |
|
|
|
// let count = math.format(math.chain(math.bignumber(a)).add(math.bignumber(b)).add(math.bignumber(c)).done()) |
|
|
|
// 减去当前的已还款金额之类的 |
|
|
|
// 减去当前的已还款金额之类的 |
|
|
|
// let count = a+b+c |
|
|
|
// let count = a+b+c |
|
|
|
// console.log(count,'当前的计算') |
|
|
|
console.log(count,'当前的计算') |
|
|
|
// 余额 = 代偿总额 - 代偿日后还款总额 |
|
|
|
// 余额 = 代偿总额 - 代偿日后还款总额 |
|
|
|
this.comp.compensatoryBalance = (this.comp.compensationAmount - this.cash )||0 |
|
|
|
this.comp.compensatoryBalance = (this.comp.compensationAmount - this.cash )||0 |
|
|
|
// 当前代偿余额 = 额外减去 本次还款,利息,其他费用 |
|
|
|
// 当前代偿余额 = 额外减去 本次还款,利息,其他费用 |
|
|
@ -875,13 +891,13 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
if(val == 2){// 进入录入页面 |
|
|
|
if(val == 2){// 进入录入页面 |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.RepaymentId,this.id,'RepaymentId,进入2页面') |
|
|
|
// console.log(this.RepaymentId,this.id,'RepaymentId,进入2页面') |
|
|
|
// 进入详情,默认调一次取得代偿时间后的金额接口 |
|
|
|
// 进入详情,默认调一次取得代偿时间后的金额接口 |
|
|
|
if(this.comp.compensationAmount&&this.comp.compensatoryTime){ |
|
|
|
if(this.comp.compensationAmount&&this.comp.compensatoryTime){ |
|
|
|
this.compensatoryTimeChange(this.comp.compensatoryTime) |
|
|
|
this.compensatoryTimeChange(this.comp.compensatoryTime) |
|
|
|
} |
|
|
|
} |
|
|
|
// 此处存疑,未知为何如此赋值 |
|
|
|
// 此处存疑,未知为何如此赋值 |
|
|
|
console.log(this.hisId,'hisid,loanid,repayid',this.$store.state.loan.id,this.$store.state.loan.RepaymentId) |
|
|
|
// console.log(this.hisId,'hisid,loanid,repayid',this.$store.state.loan.id,this.$store.state.loan.RepaymentId) |
|
|
|
this.id = this.$store.state.loan.id || this.$store.state.loan.RepaymentId |
|
|
|
this.id = this.$store.state.loan.id || this.$store.state.loan.RepaymentId |
|
|
|
this.RepaymentId = this.$store.state.loan.RepaymentId |
|
|
|
this.RepaymentId = this.$store.state.loan.RepaymentId |
|
|
|
this.loanbackStatus = this.$store.state.loan.loanbackStatus |
|
|
|
this.loanbackStatus = this.$store.state.loan.loanbackStatus |
|
|
@ -892,16 +908,19 @@ export default { |
|
|
|
otherExpenses: '', |
|
|
|
otherExpenses: '', |
|
|
|
overdueDays: 0 |
|
|
|
overdueDays: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.loanbackStatus,'什么状态') |
|
|
|
// console.log(this.loanbackStatus,'什么状态') |
|
|
|
// 处于编辑状态,额外添加一个编辑中的状态判断 |
|
|
|
// 处于编辑状态,额外添加一个编辑中的状态判断 |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) this.getDetail() |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) await this.getDetail() |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
await this.getRepaymentDetail() |
|
|
|
await this.getRepaymentDetail() |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(this.souce,'判断是否系统流转--0') |
|
|
|
// console.log(this.guaranteeForm.loanStartTime,'this.guaranteeForm.loanStartTime') |
|
|
|
/* TODO 未测试该判断 */ |
|
|
|
/* TODO 未测试该判断 */ |
|
|
|
|
|
|
|
|
|
|
|
if(this.source === 0&&this.status==="oldLoans"&&!this.guaranteeForm.loanStartTime){ // 判断系统流转,且是否进行过编辑,判断贷款时间以及当前的编辑状态 |
|
|
|
if(this.source === 0&&this.status==="oldLoans"&&!this.guaranteeForm.loanStartTime){ // 判断系统流转,且是否进行过编辑,判断贷款时间以及当前的编辑状态 |
|
|
|
return this.$confirm('业务数据需补充完善,请先在编辑处完善必填项后再进行还款录入。','提示', { |
|
|
|
// console.log(this.repaymentForm , this.souce,this.guaranteeForm.loanStartTime,this.guaranteeForm.loanStartTime,'判断是否系统流转--2') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.$confirm('业务数据需补充完善,请先在编辑处完善必填项后再进行还款录入。','提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
confirmButtonText: '确定', |
|
|
|
showCancelButton:false, |
|
|
|
showCancelButton:false, |
|
|
|
type: 'warning' |
|
|
|
type: 'warning' |
|
|
@ -911,6 +930,7 @@ export default { |
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
}).catch(()=>{ |
|
|
|
}).catch(()=>{ |
|
|
|
|
|
|
|
// console.log('进入错误') |
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
this.loanStatus = 1 // 切页面到保后页面 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 1 }); |
|
|
|
|
|
|
|
|
|
|
@ -949,6 +969,7 @@ export default { |
|
|
|
this.liquidateList() |
|
|
|
this.liquidateList() |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
this.organizationArrs = [] |
|
|
|
this.organizationArrs = [] |
|
|
|
|
|
|
|
this.liquidateList() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
@ -957,10 +978,10 @@ export default { |
|
|
|
let c = a.concat(b).filter((cur, i, arr) => { |
|
|
|
let c = a.concat(b).filter((cur, i, arr) => { |
|
|
|
return arr.indexOf(cur) === arr.lastIndexOf(cur); |
|
|
|
return arr.indexOf(cur) === arr.lastIndexOf(cur); |
|
|
|
}); |
|
|
|
}); |
|
|
|
console.log(c,'比不同',a,b) |
|
|
|
// console.log(c,'比不同',a,b) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(this.loanbackStatus,'this.loanbackStatus') |
|
|
|
// console.log(this.loanbackStatus,'this.loanbackStatus') |
|
|
|
this.liquidateList() |
|
|
|
this.liquidateList() |
|
|
|
if(this.bankSelect.length===0){// 请求银行数据 |
|
|
|
if(this.bankSelect.length===0){// 请求银行数据 |
|
|
|
allBankName().then(res=>{ |
|
|
|
allBankName().then(res=>{ |
|
|
@ -988,8 +1009,8 @@ export default { |
|
|
|
overdueDays: 0 |
|
|
|
overdueDays: 0 |
|
|
|
} |
|
|
|
} |
|
|
|
// 处于编辑状态 |
|
|
|
// 处于编辑状态 |
|
|
|
console.log(this.status,'处于什么状态') |
|
|
|
// console.log(this.status,'处于什么状态') |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) this.getDetail() |
|
|
|
if(this.status!=='newLoans'||this.discernEdit) await this.getDetail() |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
if(this.loanbackStatus == '查看' || this.loanbackStatus == '编辑'){ |
|
|
|
await this.getRepaymentDetail() |
|
|
|
await this.getRepaymentDetail() |
|
|
|
} |
|
|
|
} |
|
|
@ -1064,7 +1085,7 @@ export default { |
|
|
|
// if(this.insMultipleSelection.length != ''){ |
|
|
|
// if(this.insMultipleSelection.length != ''){ |
|
|
|
let exportIds = this.insMultipleSelection.map(e => e.id).join() |
|
|
|
let exportIds = this.insMultipleSelection.map(e => e.id).join() |
|
|
|
let url = `${excelInsurance}?ids=${exportIds}` |
|
|
|
let url = `${excelInsurance}?ids=${exportIds}` |
|
|
|
console.log(url,'导出的URL') |
|
|
|
// console.log(url,'导出的URL') |
|
|
|
window.location.href = url |
|
|
|
window.location.href = url |
|
|
|
// }else{ |
|
|
|
// }else{ |
|
|
|
// this.$message.error('请先选择担保列表数据 !'); |
|
|
|
// this.$message.error('请先选择担保列表数据 !'); |
|
|
@ -1075,7 +1096,7 @@ export default { |
|
|
|
edit(row,val){ |
|
|
|
edit(row,val){ |
|
|
|
this.$store.commit('disabledAll',false)// 取消禁用全部, |
|
|
|
this.$store.commit('disabledAll',false)// 取消禁用全部, |
|
|
|
if(!row){// 没有row传值,进入新建业务界面--录入无关 |
|
|
|
if(!row){// 没有row传值,进入新建业务界面--录入无关 |
|
|
|
console.log('进入新建业务',val) |
|
|
|
// console.log('进入新建业务',val) |
|
|
|
this.loanStatus = 2 |
|
|
|
this.loanStatus = 2 |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '' });// 判断按钮状态 |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '' });// 判断按钮状态 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 }); |
|
|
@ -1101,7 +1122,7 @@ export default { |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '录入' }); |
|
|
|
this.$store.commit("loanbackStatusData", { loanbackStatus: '录入' }); |
|
|
|
this.$store.commit('fromOne',false)// 从保后进入还款录入,用于后退判断 |
|
|
|
this.$store.commit('fromOne',false)// 从保后进入还款录入,用于后退判断 |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
console.log('进入录入界面') |
|
|
|
// console.log('进入录入界面') |
|
|
|
// 进入还款录入,添加个额外判断进入编辑界面 |
|
|
|
// 进入还款录入,添加个额外判断进入编辑界面 |
|
|
|
this.$store.commit('wanderEdit',true) |
|
|
|
this.$store.commit('wanderEdit',true) |
|
|
|
this.$store.commit('entering',false) // 不可编辑-业务编辑区域 |
|
|
|
this.$store.commit('entering',false) // 不可编辑-业务编辑区域 |
|
|
@ -1231,13 +1252,13 @@ export default { |
|
|
|
// if(!this.isReimbursement()){ |
|
|
|
// if(!this.isReimbursement()){ |
|
|
|
// return this.$message.warning('清偿总额需等于本次还款!') |
|
|
|
// return this.$message.warning('清偿总额需等于本次还款!') |
|
|
|
// } |
|
|
|
// } |
|
|
|
console.log(this.status,'newL为新增业务') |
|
|
|
// console.log(this.status,'newL为新增业务') |
|
|
|
// 判断是否新增业务 |
|
|
|
// 判断是否新增业务 |
|
|
|
if(this.status==='newLoans'||this.status=="oldLoansEdit"){ |
|
|
|
if(this.status==='newLoans'||this.status=="oldLoansEdit"){ |
|
|
|
console.log('进入新增业务') |
|
|
|
// console.log('进入新增业务') |
|
|
|
this.saveInsurance() |
|
|
|
this.saveInsurance() |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
console.log('进入录入环节') |
|
|
|
// console.log('进入录入环节') |
|
|
|
// 处于编辑/新增录入,需要判断该业务是否新增的,或是流转的,有不同处理方式 |
|
|
|
// 处于编辑/新增录入,需要判断该业务是否新增的,或是流转的,有不同处理方式 |
|
|
|
// 担保信息 |
|
|
|
// 担保信息 |
|
|
|
const form1 = new Promise((resolve,reject)=>{ |
|
|
|
const form1 = new Promise((resolve,reject)=>{ |
|
|
@ -1251,7 +1272,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
console.log(this.$refs["repaymentForm"],'值') |
|
|
|
// console.log(this.$refs["repaymentForm"],'值') |
|
|
|
// 清收信息 |
|
|
|
// 清收信息 |
|
|
|
const form3 = new Promise((resolve,reject)=>{ |
|
|
|
const form3 = new Promise((resolve,reject)=>{ |
|
|
|
this.$refs['liquidate'].validate((valid) => { |
|
|
|
this.$refs['liquidate'].validate((valid) => { |
|
|
@ -1275,10 +1296,10 @@ export default { |
|
|
|
let that = this |
|
|
|
let that = this |
|
|
|
function fn (){ |
|
|
|
function fn (){ |
|
|
|
if(that.RepaymentId == ''){// 新增录入 |
|
|
|
if(that.RepaymentId == ''){// 新增录入 |
|
|
|
console.log('新增录入') |
|
|
|
// console.log('新增录入') |
|
|
|
that.repaymentForm.insuranceId = that.id |
|
|
|
that.repaymentForm.insuranceId = that.id |
|
|
|
that.$store.commit('hisId',that.id) |
|
|
|
that.$store.commit('hisId',that.id) |
|
|
|
console.log(that.id,'id') |
|
|
|
// console.log(that.id,'id') |
|
|
|
that.repaymentForm.totalRepayment = that.totalRepayment |
|
|
|
that.repaymentForm.totalRepayment = that.totalRepayment |
|
|
|
that.repaymentForm.overdueDays = that.overdueDays |
|
|
|
that.repaymentForm.overdueDays = that.overdueDays |
|
|
|
let obj ={} |
|
|
|
let obj ={} |
|
|
@ -1318,7 +1339,7 @@ export default { |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
console.log('正在执行录入') |
|
|
|
// console.log('正在执行录入') |
|
|
|
if(this.repaymentForm.repaymentCash!==0&&!this.repaymentForm.repaymentCash&&this.repaymentForm.repaymentAssetsAmount!==0&&!this.repaymentForm.repaymentAssetsAmount&&this.repaymentForm.repaymentOtherAmount!==0&&!this.repaymentForm.repaymentOtherAmount){ |
|
|
|
if(this.repaymentForm.repaymentCash!==0&&!this.repaymentForm.repaymentCash&&this.repaymentForm.repaymentAssetsAmount!==0&&!this.repaymentForm.repaymentAssetsAmount&&this.repaymentForm.repaymentOtherAmount!==0&&!this.repaymentForm.repaymentOtherAmount){ |
|
|
|
return this.$message.error('至少输入一种清偿方式!') |
|
|
|
return this.$message.error('至少输入一种清偿方式!') |
|
|
|
} |
|
|
|
} |
|
|
@ -1335,14 +1356,14 @@ export default { |
|
|
|
}).then(()=>{ |
|
|
|
}).then(()=>{ |
|
|
|
fn() |
|
|
|
fn() |
|
|
|
}).catch(err=>{ |
|
|
|
}).catch(err=>{ |
|
|
|
console.log('此处报错') |
|
|
|
// console.log('此处报错') |
|
|
|
return '我是错误信息' |
|
|
|
return '我是错误信息' |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
|
fn() |
|
|
|
fn() |
|
|
|
} |
|
|
|
} |
|
|
|
}).catch(err=>{ |
|
|
|
}).catch(err=>{ |
|
|
|
console.log(err,'err') |
|
|
|
// console.log(err,'err') |
|
|
|
this.$message.error('请输入必填信息!') |
|
|
|
this.$message.error('请输入必填信息!') |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
@ -1383,7 +1404,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 还款记录列表 |
|
|
|
// 还款记录列表 |
|
|
|
async repaymentList(){ |
|
|
|
async repaymentList(){ |
|
|
|
console.log(this.hisidId,'当前传的id值') |
|
|
|
// console.log(this.hisidId,'当前传的id值') |
|
|
|
let res = await repaymentList({ |
|
|
|
let res = await repaymentList({ |
|
|
|
page: this.hisPage, |
|
|
|
page: this.hisPage, |
|
|
|
size: this.pageNumber, |
|
|
|
size: this.pageNumber, |
|
|
@ -1446,7 +1467,7 @@ export default { |
|
|
|
addRepayment(){ |
|
|
|
addRepayment(){ |
|
|
|
this.loanStatus = 2 // 切页面,保存 |
|
|
|
this.loanStatus = 2 // 切页面,保存 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 }); |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 }); |
|
|
|
console.log(this.$store.state.loan.hisidId) |
|
|
|
// console.log(this.$store.state.loan.hisidId) |
|
|
|
// 新增判断 |
|
|
|
// 新增判断 |
|
|
|
this.RepaymentId = '' |
|
|
|
this.RepaymentId = '' |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: this.RepaymentId }); |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: this.RepaymentId }); |
|
|
@ -1456,19 +1477,19 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
this.$store.commit('setNewOrOld','newRecord') // 判断新增还款记录 |
|
|
|
this.$store.commit('setNewOrOld','newRecord') // 判断新增还款记录 |
|
|
|
|
|
|
|
|
|
|
|
console.log(this.status,'是否是新增数据') |
|
|
|
// console.log(this.status,'是否是新增数据') |
|
|
|
this.$store.commit('disabledAll',false) |
|
|
|
this.$store.commit('disabledAll',false) |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 还款记录:查看/编辑 |
|
|
|
// 还款记录:查看/编辑 |
|
|
|
goRepaymentDetail(row,type){ |
|
|
|
goRepaymentDetail(row,type){ |
|
|
|
console.log(row,type,'点击查看业务,') |
|
|
|
// console.log(row,type,'点击查看业务,') |
|
|
|
this.loanStatus = 2 |
|
|
|
this.loanStatus = 2 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 });// 跳查看 |
|
|
|
this.$store.commit("loanStatusData", { loanStatus: 2 });// 跳查看 |
|
|
|
this.RepaymentId = row.id |
|
|
|
this.RepaymentId = row.id |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: row.id });// 业务ID |
|
|
|
this.$store.commit("RepaymentIdData", { RepaymentId: row.id });// 业务ID |
|
|
|
this.id = row.insuranceId |
|
|
|
this.id = row.insuranceId |
|
|
|
this.$store.commit("idData", { id: row.insuranceId });// 这是loan.id用于记录业务id的 */ |
|
|
|
this.$store.commit("idData", { id: row.insuranceId });// 这是loan.id用于记录业务id的 */ |
|
|
|
console.log(this.id,'rowid',row,'新增还款记录错误') |
|
|
|
// console.log(this.id,'rowid',row,'新增还款记录错误') |
|
|
|
this.loanbackStatus = type |
|
|
|
this.loanbackStatus = type |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1486,7 +1507,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 取得录入页面数据详情 |
|
|
|
// 取得录入页面数据详情 |
|
|
|
async getRepaymentDetail(){ |
|
|
|
async getRepaymentDetail(){ |
|
|
|
console.log(this.RepaymentId,'调用详情接口使用的id') |
|
|
|
// console.log(this.RepaymentId,'调用详情接口使用的id') |
|
|
|
let res = await repaymentDetail({ |
|
|
|
let res = await repaymentDetail({ |
|
|
|
id: this.RepaymentId |
|
|
|
id: this.RepaymentId |
|
|
|
}); |
|
|
|
}); |
|
|
@ -1706,7 +1727,7 @@ export default { |
|
|
|
alInsuranceList:this.guaranteeForm,// 担保信息 |
|
|
|
alInsuranceList:this.guaranteeForm,// 担保信息 |
|
|
|
alReimbursement:obj// 代偿清收相关 |
|
|
|
alReimbursement:obj// 代偿清收相关 |
|
|
|
} |
|
|
|
} |
|
|
|
console.log(param,'编辑传值') |
|
|
|
// console.log(param,'编辑传值') |
|
|
|
if(this.discernEdit){// 处于编辑状态下,且 |
|
|
|
if(this.discernEdit){// 处于编辑状态下,且 |
|
|
|
editInsurance(param).then(res=>{ |
|
|
|
editInsurance(param).then(res=>{ |
|
|
|
if(this.entering){ |
|
|
|
if(this.entering){ |
|
|
@ -1744,7 +1765,7 @@ export default { |
|
|
|
compensatoryTimeChange(val){// 代偿时间处理,取得已偿还金额 |
|
|
|
compensatoryTimeChange(val){// 代偿时间处理,取得已偿还金额 |
|
|
|
compensationSituation({data:val,insuranceId:this.id}).then(res=>{ |
|
|
|
compensationSituation({data:val,insuranceId:this.id}).then(res=>{ |
|
|
|
this.cash = res.data.amount |
|
|
|
this.cash = res.data.amount |
|
|
|
console.log('取得当前的cash',this.cash) |
|
|
|
// console.log('取得当前的cash',this.cash) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
@ -1777,17 +1798,17 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
modifyReimbursement(){// 查清收组 |
|
|
|
modifyReimbursement(){// 查清收组 |
|
|
|
console.log('触发查询原本') |
|
|
|
// console.log('触发查询原本') |
|
|
|
console.log(this.liquidate.personLiableId,this.liquidate.collectionGroupId,this.qszId,'三个值') |
|
|
|
// console.log(this.liquidate.personLiableId,this.liquidate.collectionGroupId,this.qszId,'三个值') |
|
|
|
if(this.liquidate.personLiableId&&this.liquidate.collectionGroupId&&this.qszId){ |
|
|
|
if(this.liquidate.personLiableId&&this.liquidate.collectionGroupId&&this.qszId){ |
|
|
|
console.log('进入接口') |
|
|
|
// console.log('进入接口') |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
id:this.qszId,// reimbursement的id |
|
|
|
id:this.qszId,// reimbursement的id |
|
|
|
collectionGroupId:this.liquidate.collectionGroupId,// 组id |
|
|
|
collectionGroupId:this.liquidate.collectionGroupId,// 组id |
|
|
|
personLiableId:this.liquidate.personLiableId,// 人id |
|
|
|
personLiableId:this.liquidate.personLiableId,// 人id |
|
|
|
} |
|
|
|
} |
|
|
|
modifyReimbursement(params).then(res=>{ |
|
|
|
modifyReimbursement(params).then(res=>{ |
|
|
|
console.log(res,'chashou123') |
|
|
|
// console.log(res,'chashou123') |
|
|
|
if(res.message!="成功"){ |
|
|
|
if(res.message!="成功"){ |
|
|
|
return this.$message.warning(res.message) |
|
|
|
return this.$message.warning(res.message) |
|
|
|
} |
|
|
|
} |
|
|
@ -1795,6 +1816,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
ChinaCost(numberValue){ |
|
|
|
ChinaCost(numberValue){ |
|
|
|
|
|
|
|
if(!numberValue) return "零元" |
|
|
|
var numberValue=new String(Math.round(numberValue*100)); // 数字金额 |
|
|
|
var numberValue=new String(Math.round(numberValue*100)); // 数字金额 |
|
|
|
var chineseValue=""; // 转换后的汉字金额 |
|
|
|
var chineseValue=""; // 转换后的汉字金额 |
|
|
|
var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 |
|
|
|
var String1 = "零壹贰叁肆伍陆柒捌玖"; // 汉字数字 |
|
|
|