From 77f5cbfdb5b6af875493742b0fae52eb1ca7c104 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Wed, 13 Mar 2024 10:11:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=B5=84=E6=96=B9=E5=88=92?= =?UTF-8?q?=E6=89=A3=E8=BF=98=E6=AC=BE=E6=98=8E=E7=BB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/monthlypayment/monthlypayment.js | 7 ++ .../views/monthlypayment/monthlypayment.vue | 73 ++++++++++++++++++- 2 files changed, 79 insertions(+), 1 deletion(-) diff --git a/anrui-riskcenter-ui/src/api/monthlypayment/monthlypayment.js b/anrui-riskcenter-ui/src/api/monthlypayment/monthlypayment.js index 49388b84d0..0af79d1ae2 100644 --- a/anrui-riskcenter-ui/src/api/monthlypayment/monthlypayment.js +++ b/anrui-riskcenter-ui/src/api/monthlypayment/monthlypayment.js @@ -25,6 +25,13 @@ export default { params: data }) }, + noImportUpdate: function(data) { + return request({ + url: '/riskcenter/v1/loanrepaymenthistory/noImportUpdate', + method: 'post', + params: data + }) + }, deleteBySids: function(data) { return request({ url: '/riskcenter/v1/loanrepaymenthistory/deleteBySids', diff --git a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue index 2248a0a582..d3da214638 100644 --- a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue +++ b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue @@ -142,6 +142,25 @@ 取消 + + + + + +
资方
+ + + + + +
+
+
+ +
@@ -150,7 +169,7 @@ import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' import req from '@/api/monthlypayment/monthlypayment' -import { typeValues, getButtonPermissions } from '@/api/Common/dictcommons' +import {typeValues, getButtonPermissions, selectListByOrgPath} from '@/api/Common/dictcommons' import adjust from './adjust' import deductAdd from '../deduct/deductAdd' @@ -165,6 +184,9 @@ export default { }, data() { return { + bankVisible: false, + bankSid: '', + bankShort_list: [], btndisabled: false, dialogVisible: false, updateAction: process.env.VUE_APP_BASE_API + '/riskcenter/v1/loanrepaymenthistory/getExcelInfo', @@ -192,6 +214,13 @@ export default { btnKey: 'toEdit', btnLabel: '调整' }, + { + type: 'primary', + size: 'small', + icon: '', + btnKey: 'toNotByUpdate', + btnLabel: '非导入数据更新' + }, { type: 'primary', size: 'small', @@ -303,6 +332,11 @@ export default { this.returnWay_list = resp.data } }) + selectListByOrgPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { + if (res.success) { + this.bankShort_list = res.data + } + }) }, // 搜索条件效果 clicksearchShow() { @@ -325,6 +359,9 @@ export default { case 'toDeduct': this.toDeduct() break + case 'toNotByUpdate': + this.toNotByUpdate() + break case 'toUpdate': this.toUpdate() break @@ -488,6 +525,40 @@ export default { this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行划扣操作' }) } }, + toNotByUpdate() { + this.bankVisible = true + this.bankSid = '' + }, + // 非导入数据更新 + bankConfirm() { + if (this.bankSid === '') { + this.$message({ showClose: true, type: 'error', message: '请选择资方' }) + return + } + 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.noImportUpdate({ bankSid: this.bankSid, orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((resp) => { + if (resp.success) { + this.bankVisible = false + this.$message({ type: 'success', message: resp.msg, showClose: true }) + } + loading.close() + }).catch(e => { + loading.close() + }) + }).catch(() => { + }) + }, // 更新 toUpdate() { if (this.list.length > 0) {