Commit 94313bb1 authored by 季圣华's avatar 季圣华
Browse files

给单据中多账户的选择增加校验

parent 7ab8c936
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment