Browse Source

完善客户还款情况统计表--增加导入功能

master
yunuo970428 10 months ago
parent
commit
c79962ae9b
  1. 8
      anrui-riskcenter-ui/src/api/customerrepayment/customerrepayment.js
  2. 27
      anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue

8
anrui-riskcenter-ui/src/api/customerrepayment/customerrepayment.js

@ -19,6 +19,14 @@ export default {
headers: { 'Content-Type': 'application/json' }
})
},
// 客户还款情况计划表 -- 生成休眠还款记录
importSleepHistoryData: function(params) {
return request({
url: '/riskcenter/v1/loanrepaymentschedule/importSleepHistoryData',
method: 'post',
params: params
})
},
// 客户还款情况计划表 -- 导出
exportExcel(data) {
return request({

27
anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue

@ -421,10 +421,29 @@ export default {
this.uploadResultMesssage = ''
},
recordImport() {
this.dialogVisible = true
this.updateAction = process.env.VUE_APP_BASE_API + '/riskcenter/v1/loanrepaymentschedule/importSleepHistoryData'
this.fileList = []
this.uploadResultMesssage = ''
const tip = '请确认是否生成生成休眠还款记录'
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.importSleepHistoryData({ userSid: window.sessionStorage.getItem('userSid') }).then((resp) => {
if (resp.success) {
this.$message({ type: 'success', message: resp.msg, showClose: true })
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {
})
},
handleChange(file) {
this.uploadData.fileName = file.name

Loading…
Cancel
Save