|
|
@ -666,8 +666,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
submitprice() {
|
|
|
|
submitprice() {
|
|
|
|
if (
|
|
|
|
if (
|
|
|
|
!this.multipleSelectionItem.length ||
|
|
|
|
!this.multipleSelectionItem.length
|
|
|
|
this.multipleSelectionItem.length > 1
|
|
|
|
|
|
|
|
) {
|
|
|
|
) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: "error",
|
|
|
@ -676,7 +675,21 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
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({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: "error",
|
|
|
|
message: "已提交,无需再次提交",
|
|
|
|
message: "已提交,无需再次提交",
|
|
|
@ -684,7 +697,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.multipleSelectionItem[0].status == 2) {
|
|
|
|
if (!statusfalg) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: "error",
|
|
|
|
message: "已认款,无需再次提交",
|
|
|
|
message: "已认款,无需再次提交",
|
|
|
@ -692,7 +705,7 @@ export default {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (this.multipleSelectionItem[0].paymentamount <= 0) {
|
|
|
|
if (!amountFalg) {
|
|
|
|
this.$message({
|
|
|
|
this.$message({
|
|
|
|
type: "error",
|
|
|
|
type: "error",
|
|
|
|
message: "请先输入付款金额",
|
|
|
|
message: "请先输入付款金额",
|
|
|
|