Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
94313bb1
Commit
94313bb1
authored
Dec 15, 2021
by
季圣华
Browse files
给单据中多账户的选择增加校验
parent
7ab8c936
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/bill/dialog/ManyAccountModal.vue
View file @
94313bb1
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment