diff --git a/src/components/page/afterLoan/afterInsurance.vue b/src/components/page/afterLoan/afterInsurance.vue index c1d7dfc..696353b 100644 --- a/src/components/page/afterLoan/afterInsurance.vue +++ b/src/components/page/afterLoan/afterInsurance.vue @@ -474,7 +474,7 @@ - + @@ -562,8 +562,8 @@
{{index+1}}
- - + +
保存 编辑 @@ -1254,6 +1254,7 @@ export default { // console.log('进入录入环节') // 处于编辑/新增录入,需要判断该业务是否新增的,或是流转的,有不同处理方式 // 担保信息 + let has = false const form1 = new Promise((resolve,reject)=>{ this.$refs['refGuaranteeForm'].validate((valid) => { if (valid) { @@ -1319,7 +1320,7 @@ export default { } that.repaymentForm.totalRepayment = that.totalRepayment that.repaymentForm.overdueDays = that.overdueDays - Promise.all([updateRepayment(that.repaymentForm),editInsurance(param)]).then((res1,res2)=>{ + Promise.all([editInsurance(param),updateRepayment(that.repaymentForm)]).then((res1,res2)=>{ that.$message.success("编辑成功!"); that.loanStatus = 3 that.$store.commit("loanStatusData", { loanStatus: 3 }); @@ -1447,6 +1448,7 @@ export default { .then(() => { delRepayment(delIds).then(res=>{ this.hisMultipleSelection = []; + this.$refs.repaymentTable.clearSelection(); this.$message.success('删除成功'); this.statisticsSearch() }).catch(err=>{ @@ -1489,13 +1491,13 @@ export default { this.$store.commit('setNewOrOld','oldLoans')// 区分进入还款或者新建 // 不可编辑 - type==='编辑'?this.$store.commit('discernEdit',false):this.$store.commit('discernEdit',false) + type==='编辑'?this.$store.commit('discernEdit',true):this.$store.commit('discernEdit',false) if (type==='查看') { this.$store.commit('disabledAll',true) }else{ this.$store.commit('disabledAll',false) } - + this.$store.commit("loanbackStatusData", { loanbackStatus: type }); }, // 取得录入页面数据详情