Browse Source

完善还款计划表

master
yunuo970428 12 months ago
parent
commit
22a57c30be
  1. 28
      anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

28
anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

@ -266,25 +266,27 @@ export default {
},
toEdit() {
if (this.sids.length === 1) {
if (this.multipleSelection[0].handleBtn) {
this.viewState = 2
this.$refs['divAdd'].showEdit(this.sids[0])
} else {
this.$message({ showClose: true, type: 'error', message: '该记录资方合同号为空或已生成还款计划表且已存在还款记录' })
// if (this.multipleSelection[0].handleBtn) {
// this.viewState = 2
// this.$refs['divAdd'].showEdit(this.sids[0])
// } else {
// this.$message({ showClose: true, type: 'error', message: '' })
// }
if (this.state_list.length > 0) {
for (var i = 0; i < this.state_list.length; i++) {
if (this.state_list[i] === '是') {
this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' })
return
}
}
}
this.viewState = 2
this.$refs['divAdd'].showEdit(this.sids[0])
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' })
}
},
downloadRepaymentPlan() {
if (this.state_list.length > 0) {
for (var i = 0; i < this.state_list.length; i++) {
if (this.state_list[i] === '是') {
this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' })
return
}
}
}
if (this.sids.length > 0) {
req.createRepaymentVoucher(this.sids).then((res) => {
if (res.success) {

Loading…
Cancel
Save