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
8816823e
Commit
8816823e
authored
Dec 01, 2021
by
季圣华
Browse files
给计量单位增加录入判断
parent
95561f8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
jshERP-web/src/views/system/modules/UnitModal.vue
View file @
8816823e
...
...
@@ -116,18 +116,23 @@
that
.
confirmLoading
=
false
;
return
;
}
if
(
!
formData
.
ratio
)
{
that
.
$message
.
warning
(
'
抱歉,
此时
比例不能为空!
'
);
if
(
formData
.
otherUnit
&&
!
formData
.
ratio
)
{
that
.
$message
.
warning
(
'
抱歉,比例不能为空!
'
);
that
.
confirmLoading
=
false
;
return
;
}
if
(
formData
.
otherUnitTwo
&&
!
formData
.
ratioTwo
)
{
that
.
$message
.
warning
(
'
抱歉,
此时
比例2不能为空!
'
);
that
.
$message
.
warning
(
'
抱歉,比例2不能为空!
'
);
that
.
confirmLoading
=
false
;
return
;
}
if
(
formData
.
otherUnitThree
&&
!
formData
.
ratioThree
)
{
that
.
$message
.
warning
(
'
抱歉,此时比例3不能为空!
'
);
that
.
$message
.
warning
(
'
抱歉,比例3不能为空!
'
);
that
.
confirmLoading
=
false
;
return
;
}
if
(
!
formData
.
otherUnitTwo
&&
formData
.
otherUnitThree
)
{
that
.
$message
.
warning
(
'
抱歉,需要先输入副单位2再输入副单位3!
'
);
that
.
confirmLoading
=
false
;
return
;
}
...
...
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