保后bug待修复

master
e 3 years ago
parent c6226c908b
commit b2019eca67
  1. 30
      src/components/page/afterLoan/afterInsurance.vue
  2. 6
      src/components/page/afterLoan/complete.vue

@ -743,22 +743,25 @@ export default {
};
},
computed:{
computedCompensatoryBalance:function(){//
computedCompensatoryBalance(){//
/* TODO 未完成状态判断 */
// if(this.status){} // count
console.log(this.repaymentForm,'this.repaymentForm')
if(!this.repaymentForm.currentRepayment)this.repaymentForm.currentRepayment = 0
if(!this.repaymentForm.otherExpenses)this.repaymentForm.otherExpenses = 0
if(!this.repaymentForm.interest)this.repaymentForm.interest = 0
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())
console.log(count,'当前的计算')
// console.log(this.repaymentForm,'this.repaymentForm')
// if(!this.repaymentForm.currentRepayment)this.repaymentForm.currentRepayment = 0
// if(!this.repaymentForm.otherExpenses)this.repaymentForm.otherExpenses = 0
// if(!this.repaymentForm.interest)this.repaymentForm.interest = 0
// console.log(this.repaymentForm,'this.repaymentForm')
// 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 = a+b+c
// console.log(count,'')
// = -
this.comp.compensatoryBalance = (this.comp.compensationAmount - this.cash - count)||0
this.comp.compensatoryBalance = (this.comp.compensationAmount - this.cash )||0
// =
return (this.comp.compensationAmount?this.comp.compensationAmount - this.cash - count:0)||0
return (this.comp.compensationAmount?this.comp.compensationAmount - this.cash:0)||0
},
source(){//
return this.$store.state.loan.source
@ -846,9 +849,10 @@ export default {
}
if(val == 2){
console.log(this.souce,'判断是否系统流转--0')
if(this.source === 0&&this.status==="oldLoans"){//
/* TODO 未完成 */
// if(this.source === 0&&this.status==="oldLoans"){//
}
// }
console.log(this.RepaymentId,this.id,'RepaymentId,进入2页面')
this.id = this.$store.state.loan.id || this.$store.state.loan.RepaymentId
this.RepaymentId = this.$store.state.loan.RepaymentId

@ -731,7 +731,11 @@ export default {
},
personnelSelection(val){//
return personnelSelection({year:val}).then(res=>{
this.treeIds = res.data.list
console.log(res.data.list,'list')
this.treeIds = res.data.list.map(e=>{
return e.split(",").pop()
})
console.log(this.treeIds,'treeids')
this.ids = res.data.list
})

Loading…
Cancel
Save