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: "请先输入付款金额",