Browse Source

完善还款计划表

zhanglei
yunuo970428 7 months ago
parent
commit
a6b95d7dc4
  1. 7
      anrui-riskcenter-ui/src/api/repaymentschedule/repaymentschedule.js
  2. 11
      anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

7
anrui-riskcenter-ui/src/api/repaymentschedule/repaymentschedule.js

@ -11,12 +11,11 @@ export default {
}) })
}, },
// 查询分页列表 // 查询分页列表
deleteBySids: function(params) { deleteBySids: function(data) {
return request({ return request({
url: '/buscenter/v1/bussalesorderloancontract/delBySids', url: '/riskcenter/v1/loanrepaymentschedule/deleteSchedule ',
method: 'post', method: 'post',
data: params, params: data
headers: { 'Content-Type': 'application/json' }
}) })
}, },
// 生成还款计划--回显 // 生成还款计划--回显

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

@ -412,10 +412,7 @@ export default {
}) })
}, },
doDel() { doDel() {
if (this.sids.length === 0) { if (this.sids.length === 1) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?' const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', { this.$confirm(tip, '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
@ -428,7 +425,7 @@ export default {
spinner: 'el-icon-loading', spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)' background: 'rgba(0, 0, 0, 0.7)'
}) })
req.deleteBySids(this.sids).then(resp => { req.deleteBySids({ bankContractNo: this.multipleSelection[0].bankContractNo }).then(resp => {
if (resp.success) { if (resp.success) {
this.$message({ type: 'success', message: resp.msg, showClose: true }) this.$message({ type: 'success', message: resp.msg, showClose: true })
} }
@ -439,6 +436,10 @@ export default {
}) })
}).catch(() => { }).catch(() => {
}) })
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行删除操作' })
return
}
}, },
toInfo(row) { toInfo(row) {
this.viewState = 3 this.viewState = 3

Loading…
Cancel
Save