From 7455f40c5cae1c40b80b605d43296caf34b64f2f Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 6 May 2024 10:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=BF=98=E6=AC=BE=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repaymentschedule/repaymentschedule.vue | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue b/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue index 3bfbff588c..2c66f66b1f 100644 --- a/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue +++ b/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue @@ -50,11 +50,11 @@ - - - + + + + + @@ -134,6 +134,7 @@ export default { tableKey: 0, list: [], sids: [], + state_list: [], multipleSelection: [], FormLoading: false, listLoading: false, @@ -204,11 +205,14 @@ export default { // 信息条数 获取点击时当前的sid handleSelectionChange(row) { const aa = [] + const bb = [] this.multipleSelection = row row.forEach(element => { aa.push(element.salesOrderSid) + bb.push(element.builded) }) this.sids = aa + this.state_list = bb }, // 表中序号 @@ -273,6 +277,14 @@ export default { } }, downloadRepaymentPlan() { + if (this.state_list.length > 0) { + for (var i = 0; i < this.state_list.length; i++) { + if (this.state_list[i] === '是') { + this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' }) + return + } + } + } if (this.sids.length > 0) { req.createRepaymentVoucher(this.sids).then((res) => { if (res.success) {