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() {