From 0e380f6fdf890b64f04ea65990b2aa502760bf87 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Fri, 29 Dec 2023 13:56:50 +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
---
.../views/monthlypayment/monthlypayment.vue | 26 ++++++++++++-------
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue
index 63f4d41a0c..4ff10b26c3 100644
--- a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue
+++ b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue
@@ -122,8 +122,8 @@
:data="uploadData"
:headers="headers"
>
- 选取文件
下载模板
+ 选取文件
上传
@@ -446,17 +446,25 @@ export default {
},
// 划扣
toDeduct() {
- this.viewState = 3
- this.$refs['divDeduct'].showAdd()
+ if (this.list.length > 0) {
+ this.viewState = 3
+ this.$refs['divDeduct'].showAdd()
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行划扣操作' })
+ }
},
// 更新
toUpdate() {
- req.updateState({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
- if (res.success) {
- this.$message({ showClose: true, type: 'success', message: '更新成功' })
- this.getList()
- }
- })
+ if (this.list.length > 0) {
+ req.updateState({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => {
+ if (res.success) {
+ this.$message({ showClose: true, type: 'success', message: '更新成功' })
+ this.getList()
+ }
+ })
+ } else {
+ this.$message({ showClose: true, type: 'error', message: '资方划扣还款明细列表数据为空,无需执行更新操作' })
+ }
},
// 删除
doDel() {