付款单修改

product
Vayne 2 years ago
parent 442fa7a797
commit 6f645a58c1

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

Loading…
Cancel
Save