给单据中多账户的选择增加校验
This commit is contained in:
parent
7ab8c93647
commit
94313bb177
@ -150,6 +150,18 @@
|
||||
that.accountMoneyList.push(formData.threeAccountPrice)
|
||||
allPrice = allPrice + formData.threeAccountPrice
|
||||
}
|
||||
if(that.accountIdList.length<2 || that.accountMoneyList.length<2) {
|
||||
this.$message.warning('抱歉,多账户结算必须选择两个以上账户和金额!');
|
||||
that.confirmLoading = false;
|
||||
return;
|
||||
}
|
||||
if((formData.oneAccountId && !formData.oneAccountPrice)||
|
||||
(formData.twoAccountId && !formData.twoAccountPrice)||
|
||||
(formData.threeAccountId && !formData.threeAccountPrice)) {
|
||||
this.$message.warning('抱歉,请填写结算金额!');
|
||||
that.confirmLoading = false;
|
||||
return;
|
||||
}
|
||||
that.$emit('ok', that.accountIdList, that.accountMoneyList, allPrice);
|
||||
that.confirmLoading = false;
|
||||
that.close();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user