From 6f645a58c19bbca0e4dba39b1789f91fd2918383 Mon Sep 17 00:00:00 2001 From: Vayne Date: Thu, 27 Apr 2023 10:11:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=98=E6=AC=BE=E5=8D=95=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../scm/basicInformation/payment/index.vue | 23 +++++++++++++++---- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/SC-web/src/views/scm/basicInformation/payment/index.vue b/SC-web/src/views/scm/basicInformation/payment/index.vue index f44e958a..ae5ca4d0 100644 --- a/SC-web/src/views/scm/basicInformation/payment/index.vue +++ b/SC-web/src/views/scm/basicInformation/payment/index.vue @@ -666,8 +666,7 @@ export default { }, submitprice() { if ( - !this.multipleSelectionItem.length || - this.multipleSelectionItem.length > 1 + !this.multipleSelectionItem.length ) { this.$message({ type: "error", @@ -676,7 +675,21 @@ export default { }); return; } - if (this.multipleSelectionItem[0].status == 1) { + var statusFalg = true; + var statusfalg = true; + var amountFalg = true; + this.multipleSelectionItem.forEach((item,index) => { + if(item.status == 1){ + statusFalg = false + } + if(item.status == 2){ + statusfalg = false + } + if(item.paymentamount <= 0){ + amountFalg = false + } + }) + if (!statusFalg) { this.$message({ type: "error", message: "已提交,无需再次提交", @@ -684,7 +697,7 @@ export default { }); return; } - if (this.multipleSelectionItem[0].status == 2) { + if (!statusfalg) { this.$message({ type: "error", message: "已认款,无需再次提交", @@ -692,7 +705,7 @@ export default { }); return; } - if (this.multipleSelectionItem[0].paymentamount <= 0) { + if (!amountFalg) { this.$message({ type: "error", message: "请先输入付款金额",