From 94313bb177e71178170f474bd6cf8cb5bf897a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Wed, 15 Dec 2021 21:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E5=8D=95=E6=8D=AE=E4=B8=AD=E5=A4=9A?= =?UTF-8?q?=E8=B4=A6=E6=88=B7=E7=9A=84=E9=80=89=E6=8B=A9=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/bill/dialog/ManyAccountModal.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jshERP-web/src/views/bill/dialog/ManyAccountModal.vue b/jshERP-web/src/views/bill/dialog/ManyAccountModal.vue index 3558e96b..fb064f81 100644 --- a/jshERP-web/src/views/bill/dialog/ManyAccountModal.vue +++ b/jshERP-web/src/views/bill/dialog/ManyAccountModal.vue @@ -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();