From c79962ae9b992987e98842472e91f5290facd677 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 8 Jul 2024 14:59:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=AE=A2=E6=88=B7=E8=BF=98?= =?UTF-8?q?=E6=AC=BE=E6=83=85=E5=86=B5=E7=BB=9F=E8=AE=A1=E8=A1=A8--?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=AF=BC=E5=85=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../customerrepayment/customerrepayment.js | 8 ++++++ .../customerrepayment/customerrepayment.vue | 27 ++++++++++++++++--- 2 files changed, 31 insertions(+), 4 deletions(-) diff --git a/anrui-riskcenter-ui/src/api/customerrepayment/customerrepayment.js b/anrui-riskcenter-ui/src/api/customerrepayment/customerrepayment.js index d26c2996c3..64a2318805 100644 --- a/anrui-riskcenter-ui/src/api/customerrepayment/customerrepayment.js +++ b/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({ diff --git a/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue b/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue index 602378ee8e..f2dfddf37b 100644 --- a/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue +++ b/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