Browse Source

完善还款计划表

master
yunuo970428 5 months ago
parent
commit
a6b95d7dc4
  1. 7
      anrui-riskcenter-ui/src/api/repaymentschedule/repaymentschedule.js
  2. 51
      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({
url: '/buscenter/v1/bussalesorderloancontract/delBySids',
url: '/riskcenter/v1/loanrepaymentschedule/deleteSchedule ',
method: 'post',
data: params,
headers: { 'Content-Type': 'application/json' }
params: data
})
},
// 生成还款计划--回显

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

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

Loading…
Cancel
Save